Customize MFA factors with Post Login action returns error for 'push-notification' factor type

I tried out the example in Actions Triggers: post-login - API Object that has below code.

api.authentication.enrollWith({
  type: 'otp'
}, {
  additionalFactors: [{
    type: 'push-notification'
  }, {
    type: 'phone'
  }]
})

When ‘push-notification’ is added as a type of a factor, it is giving the below error.

No overload matches this call.
  Overload 1 of 2, '(factor: EnrollmentFactorSelector, options?: EnrollWithOptions | undefined): void', gave the following error.
    Type '"push-notification"' is not assignable to type '"otp" | "webauthn-platform" | "webauthn-roaming" | "recovery-code" | "phone"'.
  Overload 2 of 2, '(factor: EnrollmentFactorSelector, options?: EnrollWithOptions | undefined): void', gave the following error.
    Type '"push-notification"' is not assignable to type '"otp" | "webauthn-platform" | "webauthn-roaming" | "recovery-code" | "phone"'.(2769)
post-login_v3.d.ts(153, 7): The expected type comes from property 'type' which is declared here on type 'EnrollmentFactorSelector'
post-login_v3.d.ts(153, 7): The expected type comes from property 'type' which is declared here on type 'EnrollmentFactorSelector'

It happens even with ‘email’ type. I believe the documentation is not up to date.