123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594 |
- /*! firebase-admin v12.1.1 */
- /*!
- * @license
- * Copyright 2017 Google Inc.
- *
- * 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 as FirebaseErrorInterface } from '../app';
- /**
- * Defines error info type. This includes a code and message string.
- */
- export interface ErrorInfo {
- code: string;
- message: string;
- }
- /**
- * Firebase error code structure. This extends Error.
- */
- export declare class FirebaseError extends Error implements FirebaseErrorInterface {
- private errorInfo;
- /** @returns The error code. */
- get code(): string;
- /** @returns The error message. */
- get message(): string;
- /** @returns The object representation of the error. */
- toJSON(): object;
- }
- /**
- * A FirebaseError with a prefix in front of the error code.
- */
- export declare class PrefixedFirebaseError extends FirebaseError {
- private codePrefix;
- /**
- * Allows the error type to be checked without needing to know implementation details
- * of the code prefixing.
- *
- * @param code - The non-prefixed error code to test against.
- * @returns True if the code matches, false otherwise.
- */
- hasCode(code: string): boolean;
- }
- /**
- * Firebase App error code structure. This extends PrefixedFirebaseError.
- */
- export declare class FirebaseAppError extends PrefixedFirebaseError {
- }
- /**
- * Firebase Auth error code structure. This extends PrefixedFirebaseError.
- */
- export declare class FirebaseAuthError extends PrefixedFirebaseError {
- }
- /**
- * Firebase Database error code structure. This extends FirebaseError.
- */
- export declare class FirebaseDatabaseError extends FirebaseError {
- }
- /**
- * Firebase Firestore error code structure. This extends FirebaseError.
- */
- export declare class FirebaseFirestoreError extends FirebaseError {
- }
- /**
- * Firebase instance ID error code structure. This extends FirebaseError.
- */
- export declare class FirebaseInstanceIdError extends FirebaseError {
- }
- /**
- * Firebase Installations service error code structure. This extends `FirebaseError`.
- */
- export declare class FirebaseInstallationsError extends FirebaseError {
- }
- /**
- * Firebase Messaging error code structure. This extends PrefixedFirebaseError.
- */
- export declare class FirebaseMessagingError extends PrefixedFirebaseError {
- }
- /**
- * Firebase project management error code structure. This extends PrefixedFirebaseError.
- */
- export declare class FirebaseProjectManagementError extends PrefixedFirebaseError {
- }
- /**
- * App client error codes and their default messages.
- */
- export declare class AppErrorCodes {
- static APP_DELETED: string;
- static DUPLICATE_APP: string;
- static INVALID_ARGUMENT: string;
- static INTERNAL_ERROR: string;
- static INVALID_APP_NAME: string;
- static INVALID_APP_OPTIONS: string;
- static INVALID_CREDENTIAL: string;
- static NETWORK_ERROR: string;
- static NETWORK_TIMEOUT: string;
- static NO_APP: string;
- static UNABLE_TO_PARSE_RESPONSE: string;
- }
- /**
- * Auth client error codes and their default messages.
- */
- export declare class AuthClientErrorCode {
- static AUTH_BLOCKING_TOKEN_EXPIRED: {
- code: string;
- message: string;
- };
- static BILLING_NOT_ENABLED: {
- code: string;
- message: string;
- };
- static CLAIMS_TOO_LARGE: {
- code: string;
- message: string;
- };
- static CONFIGURATION_EXISTS: {
- code: string;
- message: string;
- };
- static CONFIGURATION_NOT_FOUND: {
- code: string;
- message: string;
- };
- static ID_TOKEN_EXPIRED: {
- code: string;
- message: string;
- };
- static INVALID_ARGUMENT: {
- code: string;
- message: string;
- };
- static INVALID_CONFIG: {
- code: string;
- message: string;
- };
- static EMAIL_ALREADY_EXISTS: {
- code: string;
- message: string;
- };
- static EMAIL_NOT_FOUND: {
- code: string;
- message: string;
- };
- static FORBIDDEN_CLAIM: {
- code: string;
- message: string;
- };
- static INVALID_ID_TOKEN: {
- code: string;
- message: string;
- };
- static ID_TOKEN_REVOKED: {
- code: string;
- message: string;
- };
- static INTERNAL_ERROR: {
- code: string;
- message: string;
- };
- static INVALID_CLAIMS: {
- code: string;
- message: string;
- };
- static INVALID_CONTINUE_URI: {
- code: string;
- message: string;
- };
- static INVALID_CREATION_TIME: {
- code: string;
- message: string;
- };
- static INVALID_CREDENTIAL: {
- code: string;
- message: string;
- };
- static INVALID_DISABLED_FIELD: {
- code: string;
- message: string;
- };
- static INVALID_DISPLAY_NAME: {
- code: string;
- message: string;
- };
- static INVALID_DYNAMIC_LINK_DOMAIN: {
- code: string;
- message: string;
- };
- static INVALID_EMAIL_VERIFIED: {
- code: string;
- message: string;
- };
- static INVALID_EMAIL: {
- code: string;
- message: string;
- };
- static INVALID_NEW_EMAIL: {
- code: string;
- message: string;
- };
- static INVALID_ENROLLED_FACTORS: {
- code: string;
- message: string;
- };
- static INVALID_ENROLLMENT_TIME: {
- code: string;
- message: string;
- };
- static INVALID_HASH_ALGORITHM: {
- code: string;
- message: string;
- };
- static INVALID_HASH_BLOCK_SIZE: {
- code: string;
- message: string;
- };
- static INVALID_HASH_DERIVED_KEY_LENGTH: {
- code: string;
- message: string;
- };
- static INVALID_HASH_KEY: {
- code: string;
- message: string;
- };
- static INVALID_HASH_MEMORY_COST: {
- code: string;
- message: string;
- };
- static INVALID_HASH_PARALLELIZATION: {
- code: string;
- message: string;
- };
- static INVALID_HASH_ROUNDS: {
- code: string;
- message: string;
- };
- static INVALID_HASH_SALT_SEPARATOR: {
- code: string;
- message: string;
- };
- static INVALID_LAST_SIGN_IN_TIME: {
- code: string;
- message: string;
- };
- static INVALID_NAME: {
- code: string;
- message: string;
- };
- static INVALID_OAUTH_CLIENT_ID: {
- code: string;
- message: string;
- };
- static INVALID_PAGE_TOKEN: {
- code: string;
- message: string;
- };
- static INVALID_PASSWORD: {
- code: string;
- message: string;
- };
- static INVALID_PASSWORD_HASH: {
- code: string;
- message: string;
- };
- static INVALID_PASSWORD_SALT: {
- code: string;
- message: string;
- };
- static INVALID_PHONE_NUMBER: {
- code: string;
- message: string;
- };
- static INVALID_PHOTO_URL: {
- code: string;
- message: string;
- };
- static INVALID_PROJECT_ID: {
- code: string;
- message: string;
- };
- static INVALID_PROVIDER_DATA: {
- code: string;
- message: string;
- };
- static INVALID_PROVIDER_ID: {
- code: string;
- message: string;
- };
- static INVALID_PROVIDER_UID: {
- code: string;
- message: string;
- };
- static INVALID_OAUTH_RESPONSETYPE: {
- code: string;
- message: string;
- };
- static INVALID_SESSION_COOKIE_DURATION: {
- code: string;
- message: string;
- };
- static INVALID_TENANT_ID: {
- code: string;
- message: string;
- };
- static INVALID_TENANT_TYPE: {
- code: string;
- message: string;
- };
- static INVALID_TESTING_PHONE_NUMBER: {
- code: string;
- message: string;
- };
- static INVALID_UID: {
- code: string;
- message: string;
- };
- static INVALID_USER_IMPORT: {
- code: string;
- message: string;
- };
- static INVALID_TOKENS_VALID_AFTER_TIME: {
- code: string;
- message: string;
- };
- static MISMATCHING_TENANT_ID: {
- code: string;
- message: string;
- };
- static MISSING_ANDROID_PACKAGE_NAME: {
- code: string;
- message: string;
- };
- static MISSING_CONFIG: {
- code: string;
- message: string;
- };
- static MISSING_CONTINUE_URI: {
- code: string;
- message: string;
- };
- static MISSING_DISPLAY_NAME: {
- code: string;
- message: string;
- };
- static MISSING_EMAIL: {
- code: string;
- message: string;
- };
- static MISSING_IOS_BUNDLE_ID: {
- code: string;
- message: string;
- };
- static MISSING_ISSUER: {
- code: string;
- message: string;
- };
- static MISSING_HASH_ALGORITHM: {
- code: string;
- message: string;
- };
- static MISSING_OAUTH_CLIENT_ID: {
- code: string;
- message: string;
- };
- static MISSING_OAUTH_CLIENT_SECRET: {
- code: string;
- message: string;
- };
- static MISSING_PROVIDER_ID: {
- code: string;
- message: string;
- };
- static MISSING_SAML_RELYING_PARTY_CONFIG: {
- code: string;
- message: string;
- };
- static MAXIMUM_TEST_PHONE_NUMBER_EXCEEDED: {
- code: string;
- message: string;
- };
- static MAXIMUM_USER_COUNT_EXCEEDED: {
- code: string;
- message: string;
- };
- static MISSING_UID: {
- code: string;
- message: string;
- };
- static OPERATION_NOT_ALLOWED: {
- code: string;
- message: string;
- };
- static PHONE_NUMBER_ALREADY_EXISTS: {
- code: string;
- message: string;
- };
- static PROJECT_NOT_FOUND: {
- code: string;
- message: string;
- };
- static INSUFFICIENT_PERMISSION: {
- code: string;
- message: string;
- };
- static QUOTA_EXCEEDED: {
- code: string;
- message: string;
- };
- static SECOND_FACTOR_LIMIT_EXCEEDED: {
- code: string;
- message: string;
- };
- static SECOND_FACTOR_UID_ALREADY_EXISTS: {
- code: string;
- message: string;
- };
- static SESSION_COOKIE_EXPIRED: {
- code: string;
- message: string;
- };
- static SESSION_COOKIE_REVOKED: {
- code: string;
- message: string;
- };
- static TENANT_NOT_FOUND: {
- code: string;
- message: string;
- };
- static UID_ALREADY_EXISTS: {
- code: string;
- message: string;
- };
- static UNAUTHORIZED_DOMAIN: {
- code: string;
- message: string;
- };
- static UNSUPPORTED_FIRST_FACTOR: {
- code: string;
- message: string;
- };
- static UNSUPPORTED_SECOND_FACTOR: {
- code: string;
- message: string;
- };
- static UNSUPPORTED_TENANT_OPERATION: {
- code: string;
- message: string;
- };
- static UNVERIFIED_EMAIL: {
- code: string;
- message: string;
- };
- static USER_NOT_FOUND: {
- code: string;
- message: string;
- };
- static NOT_FOUND: {
- code: string;
- message: string;
- };
- static USER_DISABLED: {
- code: string;
- message: string;
- };
- static USER_NOT_DISABLED: {
- code: string;
- message: string;
- };
- static INVALID_RECAPTCHA_ACTION: {
- code: string;
- message: string;
- };
- static INVALID_RECAPTCHA_ENFORCEMENT_STATE: {
- code: string;
- message: string;
- };
- static RECAPTCHA_NOT_ENABLED: {
- code: string;
- message: string;
- };
- }
- /**
- * Messaging client error codes and their default messages.
- */
- export declare class MessagingClientErrorCode {
- static INVALID_ARGUMENT: {
- code: string;
- message: string;
- };
- static INVALID_RECIPIENT: {
- code: string;
- message: string;
- };
- static INVALID_PAYLOAD: {
- code: string;
- message: string;
- };
- static INVALID_DATA_PAYLOAD_KEY: {
- code: string;
- message: string;
- };
- static PAYLOAD_SIZE_LIMIT_EXCEEDED: {
- code: string;
- message: string;
- };
- static INVALID_OPTIONS: {
- code: string;
- message: string;
- };
- static INVALID_REGISTRATION_TOKEN: {
- code: string;
- message: string;
- };
- static REGISTRATION_TOKEN_NOT_REGISTERED: {
- code: string;
- message: string;
- };
- static MISMATCHED_CREDENTIAL: {
- code: string;
- message: string;
- };
- static INVALID_PACKAGE_NAME: {
- code: string;
- message: string;
- };
- static DEVICE_MESSAGE_RATE_EXCEEDED: {
- code: string;
- message: string;
- };
- static TOPICS_MESSAGE_RATE_EXCEEDED: {
- code: string;
- message: string;
- };
- static MESSAGE_RATE_EXCEEDED: {
- code: string;
- message: string;
- };
- static THIRD_PARTY_AUTH_ERROR: {
- code: string;
- message: string;
- };
- static TOO_MANY_TOPICS: {
- code: string;
- message: string;
- };
- static AUTHENTICATION_ERROR: {
- code: string;
- message: string;
- };
- static SERVER_UNAVAILABLE: {
- code: string;
- message: string;
- };
- static INTERNAL_ERROR: {
- code: string;
- message: string;
- };
- static UNKNOWN_ERROR: {
- code: string;
- message: string;
- };
- }
- export declare class InstallationsClientErrorCode {
- static INVALID_ARGUMENT: {
- code: string;
- message: string;
- };
- static INVALID_PROJECT_ID: {
- code: string;
- message: string;
- };
- static INVALID_INSTALLATION_ID: {
- code: string;
- message: string;
- };
- static API_ERROR: {
- code: string;
- message: string;
- };
- }
- export declare class InstanceIdClientErrorCode extends InstallationsClientErrorCode {
- static INVALID_INSTANCE_ID: {
- code: string;
- message: string;
- };
- }
- export type ProjectManagementErrorCode = 'already-exists' | 'authentication-error' | 'internal-error' | 'invalid-argument' | 'invalid-project-id' | 'invalid-server-response' | 'not-found' | 'service-unavailable' | 'unknown-error';
|