From 8eff962cab608341a6f2fedc640a0e32d96f26e2 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Sun, 9 Nov 2025 11:15:19 +0800 Subject: pain --- .../node/src/api/account_management/account.d.ts | 59 ++++++++++ .../api/account_management/email_and_password.d.ts | 49 ++++++++ .../dist/node/src/api/account_management/mfa.d.ts | 107 +++++++++++++++++ .../node/src/api/account_management/profile.d.ts | 29 +++++ .../src/api/authentication/create_auth_uri.d.ts | 26 +++++ .../node/src/api/authentication/custom_token.d.ts | 26 +++++ .../src/api/authentication/email_and_password.d.ts | 86 ++++++++++++++ .../node/src/api/authentication/email_link.d.ts | 32 +++++ .../auth/dist/node/src/api/authentication/idp.d.ts | 40 +++++++ .../auth/dist/node/src/api/authentication/mfa.d.ts | 73 ++++++++++++ .../node/src/api/authentication/recaptcha.d.ts | 34 ++++++ .../dist/node/src/api/authentication/sign_up.d.ts | 34 ++++++ .../auth/dist/node/src/api/authentication/sms.d.ts | 54 +++++++++ .../dist/node/src/api/authentication/token.d.ts | 37 ++++++ .../@firebase/auth/dist/node/src/api/errors.d.ts | 129 +++++++++++++++++++++ .../@firebase/auth/dist/node/src/api/index.d.ts | 101 ++++++++++++++++ .../api/password_policy/get_password_policy.d.ts | 48 ++++++++ .../src/api/project_config/get_project_config.d.ts | 25 ++++ 18 files changed, 989 insertions(+) create mode 100644 frontend-old/node_modules/@firebase/auth/dist/node/src/api/account_management/account.d.ts create mode 100644 frontend-old/node_modules/@firebase/auth/dist/node/src/api/account_management/email_and_password.d.ts create mode 100644 frontend-old/node_modules/@firebase/auth/dist/node/src/api/account_management/mfa.d.ts create mode 100644 frontend-old/node_modules/@firebase/auth/dist/node/src/api/account_management/profile.d.ts create mode 100644 frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/create_auth_uri.d.ts create mode 100644 frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/custom_token.d.ts create mode 100644 frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/email_and_password.d.ts create mode 100644 frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/email_link.d.ts create mode 100644 frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/idp.d.ts create mode 100644 frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/mfa.d.ts create mode 100644 frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/recaptcha.d.ts create mode 100644 frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/sign_up.d.ts create mode 100644 frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/sms.d.ts create mode 100644 frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/token.d.ts create mode 100644 frontend-old/node_modules/@firebase/auth/dist/node/src/api/errors.d.ts create mode 100644 frontend-old/node_modules/@firebase/auth/dist/node/src/api/index.d.ts create mode 100644 frontend-old/node_modules/@firebase/auth/dist/node/src/api/password_policy/get_password_policy.d.ts create mode 100644 frontend-old/node_modules/@firebase/auth/dist/node/src/api/project_config/get_project_config.d.ts (limited to 'frontend-old/node_modules/@firebase/auth/dist/node/src/api') diff --git a/frontend-old/node_modules/@firebase/auth/dist/node/src/api/account_management/account.d.ts b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/account_management/account.d.ts new file mode 100644 index 0000000..f106e93 --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/account_management/account.d.ts @@ -0,0 +1,59 @@ +/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { MfaEnrollment } from './mfa'; +import { Auth } from '../../model/public_types'; +export interface DeleteAccountRequest { + idToken: string; +} +export declare function deleteAccount(auth: Auth, request: DeleteAccountRequest): Promise; +export interface ProviderUserInfo { + providerId: string; + rawId?: string; + email?: string; + displayName?: string; + photoUrl?: string; + phoneNumber?: string; +} +export interface DeleteLinkedAccountsRequest { + idToken: string; + deleteProvider: string[]; +} +export interface DeleteLinkedAccountsResponse { + providerUserInfo: ProviderUserInfo[]; +} +export declare function deleteLinkedAccounts(auth: Auth, request: DeleteLinkedAccountsRequest): Promise; +export interface APIUserInfo { + localId?: string; + displayName?: string; + photoUrl?: string; + email?: string; + emailVerified?: boolean; + phoneNumber?: string; + lastLoginAt?: number; + createdAt?: number; + tenantId?: string; + passwordHash?: string; + providerUserInfo?: ProviderUserInfo[]; + mfaInfo?: MfaEnrollment[]; +} +export interface GetAccountInfoRequest { + idToken: string; +} +export interface GetAccountInfoResponse { + users: APIUserInfo[]; +} +export declare function getAccountInfo(auth: Auth, request: GetAccountInfoRequest): Promise; diff --git a/frontend-old/node_modules/@firebase/auth/dist/node/src/api/account_management/email_and_password.d.ts b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/account_management/email_and_password.d.ts new file mode 100644 index 0000000..5a3bb06 --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/account_management/email_and_password.d.ts @@ -0,0 +1,49 @@ +/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { ActionCodeOperation, Auth } from '../../model/public_types'; +import { IdTokenResponse } from '../../model/id_token'; +import { MfaEnrollment } from './mfa'; +import { SignUpRequest, SignUpResponse } from '../authentication/sign_up'; +export interface ResetPasswordRequest { + oobCode: string; + newPassword?: string; + tenantId?: string; +} +export interface ResetPasswordResponse { + email: string; + newEmail?: string; + requestType?: ActionCodeOperation; + mfaInfo?: MfaEnrollment; +} +export declare function resetPassword(auth: Auth, request: ResetPasswordRequest): Promise; +export interface UpdateEmailPasswordRequest { + idToken: string; + returnSecureToken?: boolean; + email?: string; + password?: string; +} +export interface UpdateEmailPasswordResponse extends IdTokenResponse { +} +export declare function updateEmailPassword(auth: Auth, request: UpdateEmailPasswordRequest): Promise; +export declare function linkEmailPassword(auth: Auth, request: SignUpRequest): Promise; +export interface ApplyActionCodeRequest { + oobCode: string; + tenantId?: string; +} +export interface ApplyActionCodeResponse { +} +export declare function applyActionCode(auth: Auth, request: ApplyActionCodeRequest): Promise; diff --git a/frontend-old/node_modules/@firebase/auth/dist/node/src/api/account_management/mfa.d.ts b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/account_management/mfa.d.ts new file mode 100644 index 0000000..8db0c0d --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/account_management/mfa.d.ts @@ -0,0 +1,107 @@ +/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { RecaptchaClientType, RecaptchaVersion } from '../index'; +import { SignInWithPhoneNumberRequest } from '../authentication/sms'; +import { FinalizeMfaResponse } from '../authentication/mfa'; +import { AuthInternal } from '../../model/auth'; +/** + * MFA Info as returned by the API. + */ +interface BaseMfaEnrollment { + mfaEnrollmentId: string; + enrolledAt: number; + displayName?: string; +} +/** + * An MFA provided by SMS verification. + */ +export interface PhoneMfaEnrollment extends BaseMfaEnrollment { + phoneInfo: string; +} +/** + * An MFA provided by TOTP (Time-based One Time Password). + */ +export interface TotpMfaEnrollment extends BaseMfaEnrollment { +} +/** + * MfaEnrollment can be any subtype of BaseMfaEnrollment, currently only PhoneMfaEnrollment and TotpMfaEnrollment are supported. + */ +export type MfaEnrollment = PhoneMfaEnrollment | TotpMfaEnrollment; +export interface StartPhoneMfaEnrollmentRequest { + idToken: string; + phoneEnrollmentInfo: { + phoneNumber: string; + recaptchaToken?: string; + captchaResponse?: string; + clientType?: RecaptchaClientType; + recaptchaVersion?: RecaptchaVersion; + }; + tenantId?: string; +} +export interface StartPhoneMfaEnrollmentResponse { + phoneSessionInfo: { + sessionInfo: string; + }; +} +export declare function startEnrollPhoneMfa(auth: AuthInternal, request: StartPhoneMfaEnrollmentRequest): Promise; +export interface FinalizePhoneMfaEnrollmentRequest { + idToken: string; + phoneVerificationInfo: SignInWithPhoneNumberRequest; + displayName?: string | null; + tenantId?: string; +} +export interface FinalizePhoneMfaEnrollmentResponse extends FinalizeMfaResponse { +} +export declare function finalizeEnrollPhoneMfa(auth: AuthInternal, request: FinalizePhoneMfaEnrollmentRequest): Promise; +export interface StartTotpMfaEnrollmentRequest { + idToken: string; + totpEnrollmentInfo: {}; + tenantId?: string; +} +export interface StartTotpMfaEnrollmentResponse { + totpSessionInfo: { + sharedSecretKey: string; + verificationCodeLength: number; + hashingAlgorithm: string; + periodSec: number; + sessionInfo: string; + finalizeEnrollmentTime: number; + }; +} +export declare function startEnrollTotpMfa(auth: AuthInternal, request: StartTotpMfaEnrollmentRequest): Promise; +export interface TotpVerificationInfo { + sessionInfo: string; + verificationCode: string; +} +export interface FinalizeTotpMfaEnrollmentRequest { + idToken: string; + totpVerificationInfo: TotpVerificationInfo; + displayName?: string | null; + tenantId?: string; +} +export interface FinalizeTotpMfaEnrollmentResponse extends FinalizeMfaResponse { +} +export declare function finalizeEnrollTotpMfa(auth: AuthInternal, request: FinalizeTotpMfaEnrollmentRequest): Promise; +export interface WithdrawMfaRequest { + idToken: string; + mfaEnrollmentId: string; + tenantId?: string; +} +export interface WithdrawMfaResponse extends FinalizeMfaResponse { +} +export declare function withdrawMfa(auth: AuthInternal, request: WithdrawMfaRequest): Promise; +export {}; diff --git a/frontend-old/node_modules/@firebase/auth/dist/node/src/api/account_management/profile.d.ts b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/account_management/profile.d.ts new file mode 100644 index 0000000..9b1d591 --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/account_management/profile.d.ts @@ -0,0 +1,29 @@ +/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { IdTokenResponse } from '../../model/id_token'; +import { Auth } from '../../model/public_types'; +export interface UpdateProfileRequest { + idToken: string; + displayName?: string | null; + photoUrl?: string | null; + returnSecureToken: boolean; +} +export interface UpdateProfileResponse extends IdTokenResponse { + displayName?: string | null; + photoUrl?: string | null; +} +export declare function updateProfile(auth: Auth, request: UpdateProfileRequest): Promise; diff --git a/frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/create_auth_uri.d.ts b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/create_auth_uri.d.ts new file mode 100644 index 0000000..8c2db00 --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/create_auth_uri.d.ts @@ -0,0 +1,26 @@ +/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { Auth } from '../../model/public_types'; +export interface CreateAuthUriRequest { + identifier: string; + continueUri: string; + tenantId?: string; +} +export interface CreateAuthUriResponse { + signinMethods: string[]; +} +export declare function createAuthUri(auth: Auth, request: CreateAuthUriRequest): Promise; diff --git a/frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/custom_token.d.ts b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/custom_token.d.ts new file mode 100644 index 0000000..ad776c7 --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/custom_token.d.ts @@ -0,0 +1,26 @@ +/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { IdTokenResponse } from '../../model/id_token'; +import { Auth } from '../../model/public_types'; +export interface SignInWithCustomTokenRequest { + token: string; + returnSecureToken: boolean; + tenantId?: string; +} +export interface SignInWithCustomTokenResponse extends IdTokenResponse { +} +export declare function signInWithCustomToken(auth: Auth, request: SignInWithCustomTokenRequest): Promise; diff --git a/frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/email_and_password.d.ts b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/email_and_password.d.ts new file mode 100644 index 0000000..90028bd --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/email_and_password.d.ts @@ -0,0 +1,86 @@ +/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { ActionCodeOperation, Auth } from '../../model/public_types'; +import { RecaptchaClientType, RecaptchaVersion } from '../index'; +import { IdToken, IdTokenResponse } from '../../model/id_token'; +export interface SignInWithPasswordRequest { + returnSecureToken?: boolean; + email: string; + password: string; + tenantId?: string; + captchaResponse?: string; + clientType?: RecaptchaClientType; + recaptchaVersion?: RecaptchaVersion; +} +export interface SignInWithPasswordResponse extends IdTokenResponse { + email: string; + displayName: string; +} +export declare function signInWithPassword(auth: Auth, request: SignInWithPasswordRequest): Promise; +export interface GetOobCodeRequest { + email?: string; + continueUrl?: string; + iOSBundleId?: string; + iosAppStoreId?: string; + androidPackageName?: string; + androidInstallApp?: boolean; + androidMinimumVersionCode?: string; + canHandleCodeInApp?: boolean; + dynamicLinkDomain?: string; + tenantId?: string; + targetProjectid?: string; + linkDomain?: string; +} +export interface VerifyEmailRequest extends GetOobCodeRequest { + requestType: ActionCodeOperation.VERIFY_EMAIL; + idToken: IdToken; +} +export interface PasswordResetRequest extends GetOobCodeRequest { + requestType: ActionCodeOperation.PASSWORD_RESET; + email: string; + captchaResp?: string; + clientType?: RecaptchaClientType; + recaptchaVersion?: RecaptchaVersion; +} +export interface EmailSignInRequest extends GetOobCodeRequest { + requestType: ActionCodeOperation.EMAIL_SIGNIN; + email: string; + captchaResp?: string; + clientType?: RecaptchaClientType; + recaptchaVersion?: RecaptchaVersion; +} +export interface VerifyAndChangeEmailRequest extends GetOobCodeRequest { + requestType: ActionCodeOperation.VERIFY_AND_CHANGE_EMAIL; + idToken: IdToken; + newEmail: string; +} +interface GetOobCodeResponse { + email: string; +} +export interface VerifyEmailResponse extends GetOobCodeResponse { +} +export interface PasswordResetResponse extends GetOobCodeResponse { +} +export interface EmailSignInResponse extends GetOobCodeResponse { +} +export interface VerifyAndChangeEmailResponse extends GetOobCodeRequest { +} +export declare function sendEmailVerification(auth: Auth, request: VerifyEmailRequest): Promise; +export declare function sendPasswordResetEmail(auth: Auth, request: PasswordResetRequest): Promise; +export declare function sendSignInLinkToEmail(auth: Auth, request: EmailSignInRequest): Promise; +export declare function verifyAndChangeEmail(auth: Auth, request: VerifyAndChangeEmailRequest): Promise; +export {}; diff --git a/frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/email_link.d.ts b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/email_link.d.ts new file mode 100644 index 0000000..eef24a5 --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/email_link.d.ts @@ -0,0 +1,32 @@ +/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { IdTokenResponse } from '../../model/id_token'; +import { Auth } from '../../model/public_types'; +export interface SignInWithEmailLinkRequest { + email: string; + oobCode: string; + tenantId?: string; +} +export interface SignInWithEmailLinkResponse extends IdTokenResponse { + email: string; + isNewUser: boolean; +} +export declare function signInWithEmailLink(auth: Auth, request: SignInWithEmailLinkRequest): Promise; +export interface SignInWithEmailLinkForLinkingRequest extends SignInWithEmailLinkRequest { + idToken: string; +} +export declare function signInWithEmailLinkForLinking(auth: Auth, request: SignInWithEmailLinkForLinkingRequest): Promise; diff --git a/frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/idp.d.ts b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/idp.d.ts new file mode 100644 index 0000000..dd75832 --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/idp.d.ts @@ -0,0 +1,40 @@ +/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { IdToken, IdTokenResponse } from '../../model/id_token'; +import { Auth } from '../../model/public_types'; +export interface SignInWithIdpRequest { + requestUri: string; + postBody?: string; + sessionId?: string; + tenantId?: string; + returnSecureToken: boolean; + returnIdpCredential?: boolean; + idToken?: IdToken; + autoCreate?: boolean; + pendingToken?: string; +} +/** + * @internal + */ +export interface SignInWithIdpResponse extends IdTokenResponse { + oauthAccessToken?: string; + oauthTokenSecret?: string; + nonce?: string; + oauthIdToken?: string; + pendingToken?: string; +} +export declare function signInWithIdp(auth: Auth, request: SignInWithIdpRequest): Promise; diff --git a/frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/mfa.d.ts b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/mfa.d.ts new file mode 100644 index 0000000..0d2abed --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/mfa.d.ts @@ -0,0 +1,73 @@ +/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { RecaptchaClientType, RecaptchaVersion } from '../index'; +import { Auth } from '../../model/public_types'; +import { IdTokenResponse } from '../../model/id_token'; +import { MfaEnrollment } from '../account_management/mfa'; +import { SignInWithIdpResponse } from './idp'; +import { SignInWithPhoneNumberRequest, SignInWithPhoneNumberResponse } from './sms'; +export interface FinalizeMfaResponse { + idToken: string; + refreshToken: string; +} +/** + * @internal + */ +export interface IdTokenMfaResponse extends IdTokenResponse { + mfaPendingCredential?: string; + mfaInfo?: MfaEnrollment[]; +} +export interface StartPhoneMfaSignInRequest { + mfaPendingCredential: string; + mfaEnrollmentId: string; + phoneSignInInfo: { + recaptchaToken?: string; + captchaResponse?: string; + clientType?: RecaptchaClientType; + recaptchaVersion?: RecaptchaVersion; + }; + tenantId?: string; +} +export interface StartPhoneMfaSignInResponse { + phoneResponseInfo: { + sessionInfo: string; + }; +} +export declare function startSignInPhoneMfa(auth: Auth, request: StartPhoneMfaSignInRequest): Promise; +export interface FinalizePhoneMfaSignInRequest { + mfaPendingCredential: string; + phoneVerificationInfo: SignInWithPhoneNumberRequest; + tenantId?: string; +} +export interface FinalizeTotpMfaSignInRequest { + mfaPendingCredential: string; + totpVerificationInfo: { + verificationCode: string; + }; + tenantId?: string; + mfaEnrollmentId: string; +} +export interface FinalizePhoneMfaSignInResponse extends FinalizeMfaResponse { +} +export interface FinalizeTotpMfaSignInResponse extends FinalizeMfaResponse { +} +export declare function finalizeSignInPhoneMfa(auth: Auth, request: FinalizePhoneMfaSignInRequest): Promise; +export declare function finalizeSignInTotpMfa(auth: Auth, request: FinalizeTotpMfaSignInRequest): Promise; +/** + * @internal + */ +export type PhoneOrOauthTokenResponse = SignInWithPhoneNumberResponse | SignInWithIdpResponse | IdTokenResponse; diff --git a/frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/recaptcha.d.ts b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/recaptcha.d.ts new file mode 100644 index 0000000..e324d6d --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/recaptcha.d.ts @@ -0,0 +1,34 @@ +/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { RecaptchaClientType, RecaptchaVersion } from '../index'; +import { Auth } from '../../model/public_types'; +export declare function getRecaptchaParams(auth: Auth): Promise; +interface GetRecaptchaConfigRequest { + tenantId?: string; + clientType?: RecaptchaClientType; + version?: RecaptchaVersion; +} +export interface RecaptchaEnforcementProviderState { + provider: string; + enforcementState: string; +} +export interface GetRecaptchaConfigResponse { + recaptchaKey: string; + recaptchaEnforcementState: RecaptchaEnforcementProviderState[]; +} +export declare function getRecaptchaConfig(auth: Auth, request: GetRecaptchaConfigRequest): Promise; +export {}; diff --git a/frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/sign_up.d.ts b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/sign_up.d.ts new file mode 100644 index 0000000..78f0838 --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/sign_up.d.ts @@ -0,0 +1,34 @@ +/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { RecaptchaClientType, RecaptchaVersion } from '../index'; +import { IdTokenResponse } from '../../model/id_token'; +import { Auth } from '../../model/public_types'; +export interface SignUpRequest { + idToken?: string; + returnSecureToken?: boolean; + email?: string; + password?: string; + tenantId?: string; + captchaResponse?: string; + clientType?: RecaptchaClientType; + recaptchaVersion?: RecaptchaVersion; +} +export interface SignUpResponse extends IdTokenResponse { + displayName?: string; + email?: string; +} +export declare function signUp(auth: Auth, request: SignUpRequest): Promise; diff --git a/frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/sms.d.ts b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/sms.d.ts new file mode 100644 index 0000000..617aa64 --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/sms.d.ts @@ -0,0 +1,54 @@ +/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { RecaptchaClientType, RecaptchaVersion } from '../index'; +import { IdTokenResponse } from '../../model/id_token'; +import { Auth } from '../../model/public_types'; +export interface SendPhoneVerificationCodeRequest { + phoneNumber: string; + recaptchaToken?: string; + tenantId?: string; + captchaResponse?: string; + clientType?: RecaptchaClientType; + recaptchaVersion?: RecaptchaVersion; +} +export interface SendPhoneVerificationCodeResponse { + sessionInfo: string; +} +export declare function sendPhoneVerificationCode(auth: Auth, request: SendPhoneVerificationCodeRequest): Promise; +/** + * @internal + */ +export interface SignInWithPhoneNumberRequest { + temporaryProof?: string; + phoneNumber?: string; + sessionInfo?: string; + code?: string; + tenantId?: string; +} +export interface LinkWithPhoneNumberRequest extends SignInWithPhoneNumberRequest { + idToken: string; +} +/** + * @internal + */ +export interface SignInWithPhoneNumberResponse extends IdTokenResponse { + temporaryProof?: string; + phoneNumber?: string; +} +export declare function signInWithPhoneNumber(auth: Auth, request: SignInWithPhoneNumberRequest): Promise; +export declare function linkWithPhoneNumber(auth: Auth, request: LinkWithPhoneNumberRequest): Promise; +export declare function verifyPhoneNumberForExisting(auth: Auth, request: SignInWithPhoneNumberRequest): Promise; diff --git a/frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/token.d.ts b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/token.d.ts new file mode 100644 index 0000000..1433eae --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/authentication/token.d.ts @@ -0,0 +1,37 @@ +/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { Auth } from '../../model/public_types'; +export declare const enum TokenType { + REFRESH_TOKEN = "REFRESH_TOKEN", + ACCESS_TOKEN = "ACCESS_TOKEN" +} +export interface RequestStsTokenResponse { + accessToken: string; + expiresIn: string; + refreshToken: string; +} +export interface RevokeTokenRequest { + providerId: string; + tokenType: TokenType; + token: string; + idToken: string; + tenantId?: string; +} +export interface RevokeTokenResponse { +} +export declare function requestStsToken(auth: Auth, refreshToken: string): Promise; +export declare function revokeToken(auth: Auth, request: RevokeTokenRequest): Promise; diff --git a/frontend-old/node_modules/@firebase/auth/dist/node/src/api/errors.d.ts b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/errors.d.ts new file mode 100644 index 0000000..208e19d --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/errors.d.ts @@ -0,0 +1,129 @@ +/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { AuthErrorCode } from '../core/errors'; +/** + * Errors that can be returned by the backend + */ +export declare const enum ServerError { + ADMIN_ONLY_OPERATION = "ADMIN_ONLY_OPERATION", + BLOCKING_FUNCTION_ERROR_RESPONSE = "BLOCKING_FUNCTION_ERROR_RESPONSE", + CAPTCHA_CHECK_FAILED = "CAPTCHA_CHECK_FAILED", + CORS_UNSUPPORTED = "CORS_UNSUPPORTED", + CREDENTIAL_MISMATCH = "CREDENTIAL_MISMATCH", + CREDENTIAL_TOO_OLD_LOGIN_AGAIN = "CREDENTIAL_TOO_OLD_LOGIN_AGAIN", + DYNAMIC_LINK_NOT_ACTIVATED = "DYNAMIC_LINK_NOT_ACTIVATED", + EMAIL_CHANGE_NEEDS_VERIFICATION = "EMAIL_CHANGE_NEEDS_VERIFICATION", + EMAIL_EXISTS = "EMAIL_EXISTS", + EMAIL_NOT_FOUND = "EMAIL_NOT_FOUND", + EXPIRED_OOB_CODE = "EXPIRED_OOB_CODE", + FEDERATED_USER_ID_ALREADY_LINKED = "FEDERATED_USER_ID_ALREADY_LINKED", + INVALID_APP_CREDENTIAL = "INVALID_APP_CREDENTIAL", + INVALID_APP_ID = "INVALID_APP_ID", + INVALID_CERT_HASH = "INVALID_CERT_HASH", + INVALID_CODE = "INVALID_CODE", + INVALID_CONTINUE_URI = "INVALID_CONTINUE_URI", + INVALID_CUSTOM_TOKEN = "INVALID_CUSTOM_TOKEN", + INVALID_DYNAMIC_LINK_DOMAIN = "INVALID_DYNAMIC_LINK_DOMAIN", + INVALID_EMAIL = "INVALID_EMAIL", + INVALID_ID_TOKEN = "INVALID_ID_TOKEN", + INVALID_IDP_RESPONSE = "INVALID_IDP_RESPONSE", + INVALID_IDENTIFIER = "INVALID_IDENTIFIER", + INVALID_LOGIN_CREDENTIALS = "INVALID_LOGIN_CREDENTIALS", + INVALID_MESSAGE_PAYLOAD = "INVALID_MESSAGE_PAYLOAD", + INVALID_MFA_PENDING_CREDENTIAL = "INVALID_MFA_PENDING_CREDENTIAL", + INVALID_OAUTH_CLIENT_ID = "INVALID_OAUTH_CLIENT_ID", + INVALID_OOB_CODE = "INVALID_OOB_CODE", + INVALID_PASSWORD = "INVALID_PASSWORD", + INVALID_PENDING_TOKEN = "INVALID_PENDING_TOKEN", + INVALID_PHONE_NUMBER = "INVALID_PHONE_NUMBER", + INVALID_PROVIDER_ID = "INVALID_PROVIDER_ID", + INVALID_RECIPIENT_EMAIL = "INVALID_RECIPIENT_EMAIL", + INVALID_SENDER = "INVALID_SENDER", + INVALID_SESSION_INFO = "INVALID_SESSION_INFO", + INVALID_TEMPORARY_PROOF = "INVALID_TEMPORARY_PROOF", + INVALID_TENANT_ID = "INVALID_TENANT_ID", + MFA_ENROLLMENT_NOT_FOUND = "MFA_ENROLLMENT_NOT_FOUND", + MISSING_ANDROID_PACKAGE_NAME = "MISSING_ANDROID_PACKAGE_NAME", + MISSING_APP_CREDENTIAL = "MISSING_APP_CREDENTIAL", + MISSING_CODE = "MISSING_CODE", + MISSING_CONTINUE_URI = "MISSING_CONTINUE_URI", + MISSING_CUSTOM_TOKEN = "MISSING_CUSTOM_TOKEN", + MISSING_IOS_BUNDLE_ID = "MISSING_IOS_BUNDLE_ID", + MISSING_MFA_ENROLLMENT_ID = "MISSING_MFA_ENROLLMENT_ID", + MISSING_MFA_PENDING_CREDENTIAL = "MISSING_MFA_PENDING_CREDENTIAL", + MISSING_OOB_CODE = "MISSING_OOB_CODE", + MISSING_OR_INVALID_NONCE = "MISSING_OR_INVALID_NONCE", + MISSING_PASSWORD = "MISSING_PASSWORD", + MISSING_REQ_TYPE = "MISSING_REQ_TYPE", + MISSING_PHONE_NUMBER = "MISSING_PHONE_NUMBER", + MISSING_SESSION_INFO = "MISSING_SESSION_INFO", + OPERATION_NOT_ALLOWED = "OPERATION_NOT_ALLOWED", + PASSWORD_LOGIN_DISABLED = "PASSWORD_LOGIN_DISABLED", + QUOTA_EXCEEDED = "QUOTA_EXCEEDED", + RESET_PASSWORD_EXCEED_LIMIT = "RESET_PASSWORD_EXCEED_LIMIT", + REJECTED_CREDENTIAL = "REJECTED_CREDENTIAL", + SECOND_FACTOR_EXISTS = "SECOND_FACTOR_EXISTS", + SECOND_FACTOR_LIMIT_EXCEEDED = "SECOND_FACTOR_LIMIT_EXCEEDED", + SESSION_EXPIRED = "SESSION_EXPIRED", + TENANT_ID_MISMATCH = "TENANT_ID_MISMATCH", + TOKEN_EXPIRED = "TOKEN_EXPIRED", + TOO_MANY_ATTEMPTS_TRY_LATER = "TOO_MANY_ATTEMPTS_TRY_LATER", + UNSUPPORTED_FIRST_FACTOR = "UNSUPPORTED_FIRST_FACTOR", + UNSUPPORTED_TENANT_OPERATION = "UNSUPPORTED_TENANT_OPERATION", + UNAUTHORIZED_DOMAIN = "UNAUTHORIZED_DOMAIN", + UNVERIFIED_EMAIL = "UNVERIFIED_EMAIL", + USER_CANCELLED = "USER_CANCELLED", + USER_DISABLED = "USER_DISABLED", + USER_NOT_FOUND = "USER_NOT_FOUND", + WEAK_PASSWORD = "WEAK_PASSWORD", + RECAPTCHA_NOT_ENABLED = "RECAPTCHA_NOT_ENABLED", + MISSING_RECAPTCHA_TOKEN = "MISSING_RECAPTCHA_TOKEN", + INVALID_RECAPTCHA_TOKEN = "INVALID_RECAPTCHA_TOKEN", + INVALID_RECAPTCHA_ACTION = "INVALID_RECAPTCHA_ACTION", + MISSING_CLIENT_TYPE = "MISSING_CLIENT_TYPE", + MISSING_RECAPTCHA_VERSION = "MISSING_RECAPTCHA_VERSION", + INVALID_RECAPTCHA_VERSION = "INVALID_RECAPTCHA_VERSION", + INVALID_REQ_TYPE = "INVALID_REQ_TYPE", + PASSWORD_DOES_NOT_MEET_REQUIREMENTS = "PASSWORD_DOES_NOT_MEET_REQUIREMENTS", + INVALID_HOSTING_LINK_DOMAIN = "INVALID_HOSTING_LINK_DOMAIN" +} +/** + * API Response in the event of an error + */ +export interface JsonError { + error: { + code: number; + message: string; + errors?: [ + { + message: ServerError; + domain: string; + reason: string; + } + ]; + }; +} +/** + * Type definition for a map from server errors to developer visible errors + */ +export declare type ServerErrorMap = { + readonly [K in ApiError]: AuthErrorCode; +}; +/** + * Map from errors returned by the server to errors to developer visible errors + */ +export declare const SERVER_ERROR_MAP: Partial>; diff --git a/frontend-old/node_modules/@firebase/auth/dist/node/src/api/index.d.ts b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/index.d.ts new file mode 100644 index 0000000..1df9f79 --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/index.d.ts @@ -0,0 +1,101 @@ +/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { FirebaseError } from '@firebase/util'; +import { AuthErrorCode } from '../core/errors'; +import { Delay } from '../core/util/delay'; +import { Auth } from '../model/public_types'; +import { IdTokenResponse } from '../model/id_token'; +import { ServerError, ServerErrorMap } from './errors'; +export declare const enum HttpMethod { + POST = "POST", + GET = "GET" +} +export declare const enum HttpHeader { + CONTENT_TYPE = "Content-Type", + X_FIREBASE_LOCALE = "X-Firebase-Locale", + X_CLIENT_VERSION = "X-Client-Version", + X_FIREBASE_GMPID = "X-Firebase-gmpid", + X_FIREBASE_CLIENT = "X-Firebase-Client", + X_FIREBASE_APP_CHECK = "X-Firebase-AppCheck" +} +export declare const enum Endpoint { + CREATE_AUTH_URI = "/v1/accounts:createAuthUri", + DELETE_ACCOUNT = "/v1/accounts:delete", + RESET_PASSWORD = "/v1/accounts:resetPassword", + SIGN_UP = "/v1/accounts:signUp", + SIGN_IN_WITH_CUSTOM_TOKEN = "/v1/accounts:signInWithCustomToken", + SIGN_IN_WITH_EMAIL_LINK = "/v1/accounts:signInWithEmailLink", + SIGN_IN_WITH_IDP = "/v1/accounts:signInWithIdp", + SIGN_IN_WITH_PASSWORD = "/v1/accounts:signInWithPassword", + SIGN_IN_WITH_PHONE_NUMBER = "/v1/accounts:signInWithPhoneNumber", + SEND_VERIFICATION_CODE = "/v1/accounts:sendVerificationCode", + SEND_OOB_CODE = "/v1/accounts:sendOobCode", + SET_ACCOUNT_INFO = "/v1/accounts:update", + GET_ACCOUNT_INFO = "/v1/accounts:lookup", + GET_RECAPTCHA_PARAM = "/v1/recaptchaParams", + START_MFA_ENROLLMENT = "/v2/accounts/mfaEnrollment:start", + FINALIZE_MFA_ENROLLMENT = "/v2/accounts/mfaEnrollment:finalize", + START_MFA_SIGN_IN = "/v2/accounts/mfaSignIn:start", + FINALIZE_MFA_SIGN_IN = "/v2/accounts/mfaSignIn:finalize", + WITHDRAW_MFA = "/v2/accounts/mfaEnrollment:withdraw", + GET_PROJECT_CONFIG = "/v1/projects", + GET_RECAPTCHA_CONFIG = "/v2/recaptchaConfig", + GET_PASSWORD_POLICY = "/v2/passwordPolicy", + TOKEN = "/v1/token", + REVOKE_TOKEN = "/v2/accounts:revokeToken" +} +export declare const enum RecaptchaClientType { + WEB = "CLIENT_TYPE_WEB", + ANDROID = "CLIENT_TYPE_ANDROID", + IOS = "CLIENT_TYPE_IOS" +} +export declare const enum RecaptchaVersion { + ENTERPRISE = "RECAPTCHA_ENTERPRISE" +} +export declare const enum RecaptchaActionName { + SIGN_IN_WITH_PASSWORD = "signInWithPassword", + GET_OOB_CODE = "getOobCode", + SIGN_UP_PASSWORD = "signUpPassword", + SEND_VERIFICATION_CODE = "sendVerificationCode", + MFA_SMS_ENROLLMENT = "mfaSmsEnrollment", + MFA_SMS_SIGNIN = "mfaSmsSignIn" +} +export declare const enum EnforcementState { + ENFORCE = "ENFORCE", + AUDIT = "AUDIT", + OFF = "OFF", + ENFORCEMENT_STATE_UNSPECIFIED = "ENFORCEMENT_STATE_UNSPECIFIED" +} +export declare const enum RecaptchaAuthProvider { + EMAIL_PASSWORD_PROVIDER = "EMAIL_PASSWORD_PROVIDER", + PHONE_PROVIDER = "PHONE_PROVIDER" +} +export declare const DEFAULT_API_TIMEOUT_MS: Delay; +export declare function _addTidIfNecessary(auth: Auth, request: T): T; +export declare function _performApiRequest(auth: Auth, method: HttpMethod, path: Endpoint, request?: T, customErrorMap?: Partial>): Promise; +export declare function _performFetchWithErrorHandling(auth: Auth, customErrorMap: Partial>, fetchFn: () => Promise): Promise; +export declare function _performSignInRequest(auth: Auth, method: HttpMethod, path: Endpoint, request?: T, customErrorMap?: Partial>): Promise; +export declare function _getFinalTarget(auth: Auth, host: string, path: string, query: string): Promise; +export declare function _parseEnforcementState(enforcementStateStr: string): EnforcementState; +interface PotentialResponse extends IdTokenResponse { + email?: string; + phoneNumber?: string; +} +export declare function _makeTaggedError(auth: Auth, code: AuthErrorCode, response: PotentialResponse): FirebaseError; +export {}; diff --git a/frontend-old/node_modules/@firebase/auth/dist/node/src/api/password_policy/get_password_policy.d.ts b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/password_policy/get_password_policy.d.ts new file mode 100644 index 0000000..f8a90e9 --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/password_policy/get_password_policy.d.ts @@ -0,0 +1,48 @@ +/** + * @license + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { Auth } from '../../model/public_types'; +/** + * Request object for fetching the password policy. + */ +export interface GetPasswordPolicyRequest { + tenantId?: string; +} +/** + * Response object for fetching the password policy. + */ +export interface GetPasswordPolicyResponse { + customStrengthOptions: { + minPasswordLength?: number; + maxPasswordLength?: number; + containsLowercaseCharacter?: boolean; + containsUppercaseCharacter?: boolean; + containsNumericCharacter?: boolean; + containsNonAlphanumericCharacter?: boolean; + }; + allowedNonAlphanumericCharacters?: string[]; + enforcementState: string; + forceUpgradeOnSignin?: boolean; + schemaVersion: number; +} +/** + * Fetches the password policy for the currently set tenant or the project if no tenant is set. + * + * @param auth Auth object. + * @param request Password policy request. + * @returns Password policy response. + */ +export declare function _getPasswordPolicy(auth: Auth, request?: GetPasswordPolicyRequest): Promise; diff --git a/frontend-old/node_modules/@firebase/auth/dist/node/src/api/project_config/get_project_config.d.ts b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/project_config/get_project_config.d.ts new file mode 100644 index 0000000..c7a881a --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth/dist/node/src/api/project_config/get_project_config.d.ts @@ -0,0 +1,25 @@ +/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { Auth } from '../../model/public_types'; +export interface GetProjectConfigRequest { + androidPackageName?: string; + iosBundleId?: string; +} +export interface GetProjectConfigResponse { + authorizedDomains: string[]; +} +export declare function _getProjectConfig(auth: Auth, request?: GetProjectConfigRequest): Promise; -- cgit v1.2.3