From 8eff962cab608341a6f2fedc640a0e32d96f26e2 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Sun, 9 Nov 2025 11:15:19 +0800 Subject: pain --- .../auth-compat/dist/esm/auth-compat/src/auth.d.ts | 72 ++++++++++++++++++++++ .../dist/esm/auth-compat/src/auth.test.d.ts | 17 +++++ .../dist/esm/auth-compat/src/persistence.d.ts | 29 +++++++++ .../esm/auth-compat/src/phone_auth_provider.d.ts | 29 +++++++++ .../dist/esm/auth-compat/src/platform.d.ts | 39 ++++++++++++ .../dist/esm/auth-compat/src/popup_redirect.d.ts | 34 ++++++++++ .../esm/auth-compat/src/popup_redirect.test.d.ts | 17 +++++ .../esm/auth-compat/src/recaptcha_verifier.d.ts | 28 +++++++++ .../auth-compat/dist/esm/auth-compat/src/user.d.ts | 64 +++++++++++++++++++ .../dist/esm/auth-compat/src/user_credential.d.ts | 20 ++++++ .../auth-compat/dist/esm/auth-compat/src/wrap.d.ts | 26 ++++++++ 11 files changed, 375 insertions(+) create mode 100644 frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/auth.d.ts create mode 100644 frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/auth.test.d.ts create mode 100644 frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/persistence.d.ts create mode 100644 frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/phone_auth_provider.d.ts create mode 100644 frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/platform.d.ts create mode 100644 frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/popup_redirect.d.ts create mode 100644 frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/popup_redirect.test.d.ts create mode 100644 frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/recaptcha_verifier.d.ts create mode 100644 frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/user.d.ts create mode 100644 frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/user_credential.d.ts create mode 100644 frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/wrap.d.ts (limited to 'frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src') diff --git a/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/auth.d.ts b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/auth.d.ts new file mode 100644 index 0000000..9a838dd --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/auth.d.ts @@ -0,0 +1,72 @@ +/** + * @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 { FirebaseApp, _FirebaseService } from '@firebase/app-compat'; +import * as exp from '@firebase/auth/internal'; +import * as compat from '@firebase/auth-types'; +import { Provider } from '@firebase/component'; +import { Observer, Unsubscribe } from '@firebase/util'; +import { Wrapper } from './wrap'; +export declare class Auth implements compat.FirebaseAuth, Wrapper, _FirebaseService { + readonly app: FirebaseApp; + static Persistence: { + LOCAL: string; + NONE: string; + SESSION: string; + }; + readonly _delegate: exp.AuthImpl; + constructor(app: FirebaseApp, provider: Provider<'auth'>); + get emulatorConfig(): compat.EmulatorConfig | null; + get currentUser(): compat.User | null; + get languageCode(): string | null; + set languageCode(languageCode: string | null); + get settings(): compat.AuthSettings; + get tenantId(): string | null; + set tenantId(tid: string | null); + useDeviceLanguage(): void; + signOut(): Promise; + useEmulator(url: string, options?: { + disableWarnings: boolean; + }): void; + applyActionCode(code: string): Promise; + checkActionCode(code: string): Promise; + confirmPasswordReset(code: string, newPassword: string): Promise; + createUserWithEmailAndPassword(email: string, password: string): Promise; + fetchProvidersForEmail(email: string): Promise; + fetchSignInMethodsForEmail(email: string): Promise; + isSignInWithEmailLink(emailLink: string): boolean; + getRedirectResult(): Promise; + addFrameworkForLogging(framework: string): void; + onAuthStateChanged(nextOrObserver: Observer | ((a: compat.User | null) => unknown), errorFn?: (error: compat.Error) => unknown, completed?: Unsubscribe): Unsubscribe; + onIdTokenChanged(nextOrObserver: Observer | ((a: compat.User | null) => unknown), errorFn?: (error: compat.Error) => unknown, completed?: Unsubscribe): Unsubscribe; + sendSignInLinkToEmail(email: string, actionCodeSettings: compat.ActionCodeSettings): Promise; + sendPasswordResetEmail(email: string, actionCodeSettings?: compat.ActionCodeSettings | null): Promise; + setPersistence(persistence: string): Promise; + signInAndRetrieveDataWithCredential(credential: compat.AuthCredential): Promise; + signInAnonymously(): Promise; + signInWithCredential(credential: compat.AuthCredential): Promise; + signInWithCustomToken(token: string): Promise; + signInWithEmailAndPassword(email: string, password: string): Promise; + signInWithEmailLink(email: string, emailLink?: string): Promise; + signInWithPhoneNumber(phoneNumber: string, applicationVerifier: compat.ApplicationVerifier): Promise; + signInWithPopup(provider: compat.AuthProvider): Promise; + signInWithRedirect(provider: compat.AuthProvider): Promise; + updateCurrentUser(user: compat.User | null): Promise; + verifyPasswordResetCode(code: string): Promise; + unwrap(): exp.Auth; + _delete(): Promise; + private linkUnderlyingAuth; +} diff --git a/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/auth.test.d.ts b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/auth.test.d.ts new file mode 100644 index 0000000..731d2d9 --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/auth.test.d.ts @@ -0,0 +1,17 @@ +/** + * @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. + */ +export {}; diff --git a/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/persistence.d.ts b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/persistence.d.ts new file mode 100644 index 0000000..354f8d0 --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/persistence.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 * as exp from '@firebase/auth/internal'; +export declare const Persistence: { + LOCAL: string; + NONE: string; + SESSION: string; +}; +/** + * Validates that an argument is a valid persistence value. If an invalid type + * is specified, an error is thrown synchronously. + */ +export declare function _validatePersistenceArgument(auth: exp.Auth, persistence: string): void; +export declare function _savePersistenceForRedirect(auth: exp.AuthInternal): Promise; +export declare function _getPersistencesFromRedirect(apiKey: string, appName: string): exp.Persistence[]; diff --git a/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/phone_auth_provider.d.ts b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/phone_auth_provider.d.ts new file mode 100644 index 0000000..17318cf --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/phone_auth_provider.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 * as exp from '@firebase/auth/internal'; +import * as compat from '@firebase/auth-types'; +import { Compat } from '@firebase/util'; +export declare class PhoneAuthProvider implements compat.PhoneAuthProvider, Compat { + providerId: string; + readonly _delegate: exp.PhoneAuthProvider; + static PHONE_SIGN_IN_METHOD: "phone"; + static PROVIDER_ID: "phone"; + static credential(verificationId: string, verificationCode: string): compat.AuthCredential; + constructor(); + verifyPhoneNumber(phoneInfoOptions: string | compat.PhoneSingleFactorInfoOptions | compat.PhoneMultiFactorEnrollInfoOptions | compat.PhoneMultiFactorSignInInfoOptions, applicationVerifier: compat.ApplicationVerifier): Promise; + unwrap(): exp.PhoneAuthProvider; +} diff --git a/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/platform.d.ts b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/platform.d.ts new file mode 100644 index 0000000..e5b3923 --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/platform.d.ts @@ -0,0 +1,39 @@ +/** + * @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. + */ +declare global { + interface Document { + documentMode?: number; + } +} +/** + * @param {?string=} ua The user agent. + * @return {boolean} Whether the app is rendered in a mobile iOS or Android + * Cordova environment. + */ +export declare function _isAndroidOrIosCordovaScheme(ua?: string): boolean; +/** @return {boolean} Whether web storage is supported. */ +export declare function _isWebStorageSupported(): boolean; +/** + * @param {?Object=} global The optional global scope. + * @return {boolean} Whether current environment is a worker. + */ +export declare function _isWorker(): boolean; +export declare function _isPopupRedirectSupported(): boolean; +/** Quick check that indicates the platform *may* be Cordova */ +export declare function _isLikelyCordova(): boolean; +export declare function _isCordova(): Promise; +export declare function _getSelfWindow(): Window | null; diff --git a/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/popup_redirect.d.ts b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/popup_redirect.d.ts new file mode 100644 index 0000000..db392ce --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/popup_redirect.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 * as exp from '@firebase/auth/internal'; +/** Platform-agnostic popup-redirect resolver */ +export declare class CompatPopupRedirectResolver implements exp.PopupRedirectResolverInternal { + private readonly browserResolver; + private readonly cordovaResolver; + private underlyingResolver; + _redirectPersistence: exp.Persistence; + _completeRedirectFn: (auth: exp.Auth, resolver: exp.PopupRedirectResolver, bypassAuthState: boolean) => Promise; + _overrideRedirectResult: typeof exp._overrideRedirectResult; + _initialize(auth: exp.AuthImpl): Promise; + _openPopup(auth: exp.AuthImpl, provider: exp.AuthProvider, authType: exp.AuthEventType, eventId?: string): Promise; + _openRedirect(auth: exp.AuthImpl, provider: exp.AuthProvider, authType: exp.AuthEventType, eventId?: string): Promise; + _isIframeWebStorageSupported(auth: exp.AuthImpl, cb: (support: boolean) => unknown): void; + _originValidation(auth: exp.Auth): Promise; + get _shouldInitProactively(): boolean; + private get assertedUnderlyingResolver(); + private selectUnderlyingResolver; +} diff --git a/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/popup_redirect.test.d.ts b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/popup_redirect.test.d.ts new file mode 100644 index 0000000..731d2d9 --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/popup_redirect.test.d.ts @@ -0,0 +1,17 @@ +/** + * @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. + */ +export {}; diff --git a/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/recaptcha_verifier.d.ts b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/recaptcha_verifier.d.ts new file mode 100644 index 0000000..19385c9 --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/recaptcha_verifier.d.ts @@ -0,0 +1,28 @@ +/** + * @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 { FirebaseApp } from '@firebase/app-compat'; +import * as exp from '@firebase/auth/internal'; +import * as compat from '@firebase/auth-types'; +import { Compat } from '@firebase/util'; +export declare class RecaptchaVerifier implements compat.RecaptchaVerifier, Compat { + readonly _delegate: exp.RecaptchaVerifier; + type: string; + constructor(container: HTMLElement | string, parameters?: object | null, app?: FirebaseApp); + clear(): void; + render(): Promise; + verify(): Promise; +} diff --git a/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/user.d.ts b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/user.d.ts new file mode 100644 index 0000000..127ed22 --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/user.d.ts @@ -0,0 +1,64 @@ +/** + * @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 * as exp from '@firebase/auth/internal'; +import * as compat from '@firebase/auth-types'; +import { Compat } from '@firebase/util'; +export declare class User implements compat.User, Compat { + readonly _delegate: exp.User; + private static readonly USER_MAP; + readonly multiFactor: compat.MultiFactorUser; + private constructor(); + static getOrCreate(user: exp.User): User; + delete(): Promise; + reload(): Promise; + toJSON(): object; + getIdTokenResult(forceRefresh?: boolean): Promise; + getIdToken(forceRefresh?: boolean): Promise; + linkAndRetrieveDataWithCredential(credential: compat.AuthCredential): Promise; + linkWithCredential(credential: compat.AuthCredential): Promise; + linkWithPhoneNumber(phoneNumber: string, applicationVerifier: compat.ApplicationVerifier): Promise; + linkWithPopup(provider: compat.AuthProvider): Promise; + linkWithRedirect(provider: compat.AuthProvider): Promise; + reauthenticateAndRetrieveDataWithCredential(credential: compat.AuthCredential): Promise; + reauthenticateWithCredential(credential: compat.AuthCredential): Promise; + reauthenticateWithPhoneNumber(phoneNumber: string, applicationVerifier: compat.ApplicationVerifier): Promise; + reauthenticateWithPopup(provider: compat.AuthProvider): Promise; + reauthenticateWithRedirect(provider: compat.AuthProvider): Promise; + sendEmailVerification(actionCodeSettings?: compat.ActionCodeSettings | null): Promise; + unlink(providerId: string): Promise; + updateEmail(newEmail: string): Promise; + updatePassword(newPassword: string): Promise; + updatePhoneNumber(phoneCredential: compat.AuthCredential): Promise; + updateProfile(profile: { + displayName?: string | null; + photoURL?: string | null; + }): Promise; + verifyBeforeUpdateEmail(newEmail: string, actionCodeSettings?: compat.ActionCodeSettings | null): Promise; + get emailVerified(): boolean; + get isAnonymous(): boolean; + get metadata(): compat.UserMetadata; + get phoneNumber(): string | null; + get providerData(): Array; + get refreshToken(): string; + get tenantId(): string | null; + get displayName(): string | null; + get email(): string | null; + get photoURL(): string | null; + get providerId(): string; + get uid(): string; + private get auth(); +} diff --git a/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/user_credential.d.ts b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/user_credential.d.ts new file mode 100644 index 0000000..336406e --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/user_credential.d.ts @@ -0,0 +1,20 @@ +/** + * @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 * as exp from '@firebase/auth/internal'; +import * as compat from '@firebase/auth-types'; +export declare function convertCredential(auth: exp.Auth, credentialPromise: Promise): Promise; +export declare function convertConfirmationResult(auth: exp.Auth, confirmationResultPromise: Promise): Promise; diff --git a/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/wrap.d.ts b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/wrap.d.ts new file mode 100644 index 0000000..7a247c5 --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/wrap.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. + */ +/** Forward direction wrapper from Compat --unwrap-> Exp */ +export interface Wrapper { + unwrap(): T; +} +/** Reverse direction wrapper from Exp --wrapped--> Compat */ +export interface ReverseWrapper { + wrapped(): T; +} +export declare function unwrap(object: unknown): T; +export declare function wrapped(object: unknown): T; -- cgit v1.2.3