firebase-admin 13.10.0 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -2
- package/lib/app/core.d.ts +2 -38
- package/lib/app/core.js +1 -1
- package/lib/app/credential-factory.d.ts +1 -1
- package/lib/app/credential-factory.js +1 -1
- package/lib/app/credential-internal.d.ts +1 -1
- package/lib/app/credential-internal.js +45 -14
- package/lib/app/credential.d.ts +1 -1
- package/lib/app/credential.js +1 -1
- package/lib/app/error.d.ts +47 -0
- package/lib/app/error.js +57 -0
- package/lib/app/firebase-app.d.ts +1 -1
- package/lib/app/firebase-app.js +28 -12
- package/lib/app/index.d.ts +4 -3
- package/lib/app/index.js +6 -4
- package/lib/app/lifecycle.d.ts +2 -2
- package/lib/app/lifecycle.js +46 -21
- package/lib/app-check/app-check-api-client-internal.d.ts +2 -16
- package/lib/app-check/app-check-api-client-internal.js +57 -48
- package/lib/app-check/app-check-api.d.ts +1 -1
- package/lib/app-check/app-check-api.js +1 -1
- package/lib/app-check/app-check.d.ts +1 -1
- package/lib/app-check/app-check.js +6 -2
- package/lib/app-check/error.d.ts +47 -0
- package/lib/app-check/error.js +65 -0
- package/lib/app-check/index.d.ts +2 -1
- package/lib/app-check/index.js +5 -2
- package/lib/app-check/token-generator.d.ts +1 -1
- package/lib/app-check/token-generator.js +43 -13
- package/lib/app-check/token-verifier.d.ts +1 -1
- package/lib/app-check/token-verifier.js +39 -11
- package/lib/auth/action-code-settings-builder.d.ts +1 -1
- package/lib/auth/action-code-settings-builder.js +16 -16
- package/lib/auth/auth-api-request.d.ts +6 -4
- package/lib/auth/auth-api-request.js +277 -166
- package/lib/auth/auth-config.d.ts +31 -2
- package/lib/auth/auth-config.js +103 -103
- package/lib/auth/auth.d.ts +1 -1
- package/lib/auth/auth.js +1 -1
- package/lib/auth/base-auth.d.ts +2 -1
- package/lib/auth/base-auth.js +29 -27
- package/lib/auth/error.d.ts +137 -0
- package/lib/auth/error.js +690 -0
- package/lib/auth/identifier.d.ts +1 -1
- package/lib/auth/identifier.js +1 -1
- package/lib/auth/index.d.ts +2 -2
- package/lib/auth/index.js +4 -4
- package/lib/auth/project-config-manager.d.ts +1 -1
- package/lib/auth/project-config-manager.js +1 -1
- package/lib/auth/project-config.d.ts +1 -1
- package/lib/auth/project-config.js +4 -4
- package/lib/auth/tenant-manager.d.ts +2 -1
- package/lib/auth/tenant-manager.js +13 -10
- package/lib/auth/tenant.d.ts +1 -1
- package/lib/auth/tenant.js +7 -7
- package/lib/auth/token-generator.d.ts +1 -1
- package/lib/auth/token-generator.js +13 -13
- package/lib/auth/token-verifier.d.ts +1 -1
- package/lib/auth/token-verifier.js +22 -22
- package/lib/auth/user-import-builder.d.ts +1 -1
- package/lib/auth/user-import-builder.js +22 -22
- package/lib/auth/user-record.d.ts +1 -1
- package/lib/auth/user-record.js +6 -6
- package/lib/credential/index.d.ts +1 -1
- package/lib/credential/index.js +1 -1
- package/lib/data-connect/data-connect-api-client-internal.d.ts +1 -16
- package/lib/data-connect/data-connect-api-client-internal.js +122 -65
- package/lib/data-connect/data-connect-api.d.ts +1 -1
- package/lib/data-connect/data-connect-api.js +1 -1
- package/lib/data-connect/data-connect.d.ts +1 -1
- package/lib/data-connect/data-connect.js +1 -1
- package/lib/data-connect/error.d.ts +47 -0
- package/lib/data-connect/error.js +66 -0
- package/lib/data-connect/index.d.ts +2 -1
- package/lib/data-connect/index.js +5 -2
- package/lib/data-connect/validate-admin-args.d.ts +1 -1
- package/lib/data-connect/validate-admin-args.js +6 -3
- package/lib/database/database.d.ts +1 -1
- package/lib/database/database.js +11 -6
- package/lib/database/error.d.ts +39 -0
- package/lib/database/error.js +49 -0
- package/lib/database/index.d.ts +2 -2
- package/lib/database/index.js +4 -3
- package/lib/esm/app/index.js +2 -1
- package/lib/esm/app-check/index.js +2 -0
- package/lib/esm/auth/index.js +1 -1
- package/lib/esm/data-connect/index.js +2 -0
- package/lib/esm/database/index.js +1 -0
- package/lib/esm/eventarc/index.js +2 -0
- package/lib/esm/extensions/index.js +2 -0
- package/lib/esm/firebase-admin/index.js +13 -0
- package/lib/esm/firestore/index.js +1 -0
- package/lib/esm/functions/index.js +2 -0
- package/lib/esm/installations/index.js +1 -1
- package/lib/esm/machine-learning/index.js +2 -0
- package/lib/esm/messaging/index.js +1 -1
- package/lib/esm/phone-number-verification/index.js +2 -0
- package/lib/esm/project-management/index.js +1 -0
- package/lib/esm/remote-config/index.js +2 -0
- package/lib/esm/security-rules/index.js +2 -0
- package/lib/esm/storage/index.js +2 -0
- package/lib/eventarc/cloudevent.d.ts +1 -1
- package/lib/eventarc/cloudevent.js +1 -1
- package/lib/eventarc/error.d.ts +38 -0
- package/lib/eventarc/error.js +47 -0
- package/lib/eventarc/eventarc-client-internal.d.ts +1 -1
- package/lib/eventarc/eventarc-client-internal.js +24 -9
- package/lib/eventarc/eventarc-utils.d.ts +1 -13
- package/lib/eventarc/eventarc-utils.js +34 -24
- package/lib/eventarc/eventarc.d.ts +1 -1
- package/lib/eventarc/eventarc.js +18 -6
- package/lib/eventarc/index.d.ts +2 -1
- package/lib/eventarc/index.js +5 -2
- package/lib/extensions/error.d.ts +41 -0
- package/lib/extensions/error.js +50 -0
- package/lib/extensions/extensions-api-client-internal.d.ts +1 -13
- package/lib/extensions/extensions-api-client-internal.js +40 -28
- package/lib/extensions/extensions-api.d.ts +1 -1
- package/lib/extensions/extensions-api.js +1 -1
- package/lib/extensions/extensions.d.ts +1 -1
- package/lib/extensions/extensions.js +18 -5
- package/lib/extensions/index.d.ts +2 -1
- package/lib/extensions/index.js +5 -2
- package/lib/firestore/error.d.ts +41 -0
- package/lib/firestore/error.js +51 -0
- package/lib/firestore/firestore-internal.d.ts +2 -1
- package/lib/firestore/firestore-internal.js +6 -6
- package/lib/firestore/index.d.ts +2 -2
- package/lib/firestore/index.js +7 -7
- package/lib/functions/error.d.ts +48 -0
- package/lib/functions/error.js +67 -0
- package/lib/functions/functions-api-client-internal.d.ts +1 -16
- package/lib/functions/functions-api-client-internal.js +111 -71
- package/lib/functions/functions-api.d.ts +1 -1
- package/lib/functions/functions-api.js +1 -1
- package/lib/functions/functions.d.ts +1 -1
- package/lib/functions/functions.js +14 -4
- package/lib/functions/index.d.ts +2 -1
- package/lib/functions/index.js +5 -2
- package/lib/index.d.ts +13 -8
- package/lib/index.js +19 -3
- package/lib/installations/error.d.ts +48 -0
- package/lib/installations/error.js +73 -0
- package/lib/installations/index.d.ts +2 -2
- package/lib/installations/index.js +4 -4
- package/lib/installations/installations-request-handler.d.ts +1 -1
- package/lib/installations/installations-request-handler.js +11 -5
- package/lib/installations/installations.d.ts +1 -1
- package/lib/installations/installations.js +3 -3
- package/lib/machine-learning/error.d.ts +53 -0
- package/lib/machine-learning/error.js +84 -0
- package/lib/machine-learning/index.d.ts +2 -1
- package/lib/machine-learning/index.js +5 -2
- package/lib/machine-learning/machine-learning-api-client.d.ts +1 -1
- package/lib/machine-learning/machine-learning-api-client.js +61 -24
- package/lib/machine-learning/machine-learning.d.ts +1 -1
- package/lib/machine-learning/machine-learning.js +21 -9
- package/lib/messaging/error.d.ts +63 -0
- package/lib/messaging/error.js +286 -0
- package/lib/messaging/index.d.ts +3 -3
- package/lib/messaging/index.js +4 -4
- package/lib/messaging/messaging-api-request-internal.d.ts +1 -1
- package/lib/messaging/messaging-api-request-internal.js +1 -1
- package/lib/messaging/messaging-api.d.ts +1 -280
- package/lib/messaging/messaging-api.js +1 -1
- package/lib/messaging/messaging-errors-internal.d.ts +2 -2
- package/lib/messaging/messaging-errors-internal.js +11 -8
- package/lib/messaging/messaging-internal.d.ts +1 -1
- package/lib/messaging/messaging-internal.js +48 -48
- package/lib/messaging/messaging.d.ts +1 -1
- package/lib/messaging/messaging.js +47 -50
- package/lib/phone-number-verification/error.d.ts +43 -0
- package/lib/phone-number-verification/error.js +48 -0
- package/lib/phone-number-verification/index.d.ts +2 -1
- package/lib/phone-number-verification/index.js +5 -2
- package/lib/phone-number-verification/phone-number-verification-api-client-internal.d.ts +1 -18
- package/lib/phone-number-verification/phone-number-verification-api-client-internal.js +2 -26
- package/lib/phone-number-verification/phone-number-verification-api.d.ts +2 -2
- package/lib/phone-number-verification/phone-number-verification-api.js +5 -4
- package/lib/phone-number-verification/phone-number-verification.d.ts +1 -1
- package/lib/phone-number-verification/phone-number-verification.js +1 -1
- package/lib/phone-number-verification/token-verifier.d.ts +1 -1
- package/lib/phone-number-verification/token-verifier.js +68 -20
- package/lib/project-management/android-app.d.ts +1 -1
- package/lib/project-management/android-app.js +15 -6
- package/lib/project-management/app-metadata.d.ts +1 -1
- package/lib/project-management/app-metadata.js +1 -1
- package/lib/project-management/error.d.ts +45 -0
- package/lib/project-management/error.js +55 -0
- package/lib/project-management/index.d.ts +2 -2
- package/lib/project-management/index.js +4 -3
- package/lib/project-management/ios-app.d.ts +1 -1
- package/lib/project-management/ios-app.js +6 -3
- package/lib/project-management/project-management-api-request-internal.d.ts +1 -1
- package/lib/project-management/project-management-api-request-internal.js +18 -6
- package/lib/project-management/project-management.d.ts +1 -1
- package/lib/project-management/project-management.js +13 -7
- package/lib/remote-config/condition-evaluator-internal.d.ts +1 -1
- package/lib/remote-config/condition-evaluator-internal.js +2 -2
- package/lib/remote-config/error.d.ts +49 -0
- package/lib/remote-config/error.js +70 -0
- package/lib/remote-config/index.d.ts +2 -1
- package/lib/remote-config/index.js +5 -2
- package/lib/remote-config/internal/value-impl.d.ts +1 -1
- package/lib/remote-config/internal/value-impl.js +1 -1
- package/lib/remote-config/remote-config-api-client-internal.d.ts +2 -13
- package/lib/remote-config/remote-config-api-client-internal.js +80 -52
- package/lib/remote-config/remote-config-api.d.ts +1 -1
- package/lib/remote-config/remote-config-api.js +1 -1
- package/lib/remote-config/remote-config.d.ts +1 -1
- package/lib/remote-config/remote-config.js +92 -23
- package/lib/security-rules/error.d.ts +45 -0
- package/lib/security-rules/error.js +54 -0
- package/lib/security-rules/index.d.ts +2 -1
- package/lib/security-rules/index.js +5 -2
- package/lib/security-rules/security-rules-api-client-internal.d.ts +1 -1
- package/lib/security-rules/security-rules-api-client-internal.js +50 -18
- package/lib/security-rules/security-rules.d.ts +1 -1
- package/lib/security-rules/security-rules.js +32 -11
- package/lib/storage/error.d.ts +41 -0
- package/lib/storage/error.js +50 -0
- package/lib/storage/index.d.ts +2 -1
- package/lib/storage/index.js +8 -5
- package/lib/storage/storage.d.ts +1 -1
- package/lib/storage/storage.js +12 -12
- package/lib/storage/utils.d.ts +1 -1
- package/lib/storage/utils.js +1 -1
- package/lib/utils/api-request.d.ts +12 -12
- package/lib/utils/api-request.js +97 -55
- package/lib/utils/crypto-signer.d.ts +1 -1
- package/lib/utils/crypto-signer.js +2 -7
- package/lib/utils/deep-copy.d.ts +1 -1
- package/lib/utils/deep-copy.js +1 -1
- package/lib/utils/error.d.ts +75 -570
- package/lib/utils/error.js +53 -1047
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/index.js +2 -2
- package/lib/utils/jwt.d.ts +1 -1
- package/lib/utils/jwt.js +1 -2
- package/lib/utils/validator.d.ts +1 -1
- package/lib/utils/validator.js +1 -1
- package/package.json +24 -29
- package/lib/app/firebase-namespace.d.ts +0 -163
- package/lib/app/firebase-namespace.js +0 -335
- package/lib/app-check/app-check-namespace.d.ts +0 -72
- package/lib/app-check/app-check-namespace.js +0 -18
- package/lib/auth/auth-namespace.d.ts +0 -257
- package/lib/auth/auth-namespace.js +0 -18
- package/lib/database/database-namespace.d.ts +0 -95
- package/lib/database/database-namespace.js +0 -23
- package/lib/default-namespace.d.ts +0 -24
- package/lib/default-namespace.js +0 -30
- package/lib/esm/instance-id/index.js +0 -6
- package/lib/firebase-namespace-api.d.ts +0 -91
- package/lib/firebase-namespace-api.js +0 -58
- package/lib/firestore/firestore-namespace.d.ts +0 -71
- package/lib/firestore/firestore-namespace.js +0 -52
- package/lib/installations/installations-namespace.d.ts +0 -55
- package/lib/installations/installations-namespace.js +0 -18
- package/lib/instance-id/index.d.ts +0 -62
- package/lib/instance-id/index.js +0 -74
- package/lib/instance-id/instance-id-namespace.d.ts +0 -38
- package/lib/instance-id/instance-id-namespace.js +0 -3
- package/lib/instance-id/instance-id.d.ts +0 -47
- package/lib/instance-id/instance-id.js +0 -77
- package/lib/machine-learning/machine-learning-namespace.d.ts +0 -81
- package/lib/machine-learning/machine-learning-namespace.js +0 -18
- package/lib/machine-learning/machine-learning-utils.d.ts +0 -22
- package/lib/machine-learning/machine-learning-utils.js +0 -47
- package/lib/messaging/messaging-namespace.d.ts +0 -161
- package/lib/messaging/messaging-namespace.js +0 -18
- package/lib/project-management/project-management-namespace.d.ts +0 -82
- package/lib/project-management/project-management-namespace.js +0 -18
- package/lib/remote-config/remote-config-namespace.d.ts +0 -141
- package/lib/remote-config/remote-config-namespace.js +0 -18
- package/lib/security-rules/security-rules-internal.d.ts +0 -21
- package/lib/security-rules/security-rules-internal.js +0 -26
- package/lib/security-rules/security-rules-namespace.d.ts +0 -69
- package/lib/security-rules/security-rules-namespace.js +0 -18
- package/lib/storage/storage-namespace.d.ts +0 -45
- package/lib/storage/storage-namespace.js +0 -18
package/lib/utils/deep-copy.d.ts
CHANGED
package/lib/utils/deep-copy.js
CHANGED
package/lib/utils/error.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin
|
|
1
|
+
/*! firebase-admin v14.0.0 */
|
|
2
2
|
/*!
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
@@ -15,590 +15,95 @@
|
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Represents the raw HTTP response object.
|
|
20
|
+
*/
|
|
21
|
+
export interface HttpResponse {
|
|
22
|
+
/** The HTTP status code of the response. */
|
|
23
|
+
status: number;
|
|
24
|
+
/** The HTTP headers of the response. */
|
|
25
|
+
headers: {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
};
|
|
28
|
+
/** The response data payload. */
|
|
29
|
+
data?: string | object;
|
|
30
|
+
}
|
|
20
31
|
/**
|
|
21
32
|
* Defines error info type. This includes a code and message string.
|
|
22
33
|
*/
|
|
23
34
|
export interface ErrorInfo {
|
|
35
|
+
/** The string error code. */
|
|
24
36
|
code: string;
|
|
37
|
+
/** The error message. */
|
|
25
38
|
message: string;
|
|
39
|
+
/** The HTTP response associated with this error, if any. */
|
|
40
|
+
httpResponse?: HttpResponse;
|
|
41
|
+
/** The original wrapped error that triggered this error, if any. */
|
|
42
|
+
cause?: Error;
|
|
26
43
|
}
|
|
27
44
|
/**
|
|
28
|
-
*
|
|
29
|
-
|
|
30
|
-
export declare class FirebaseError extends Error implements FirebaseErrorInterface {
|
|
31
|
-
private errorInfo;
|
|
32
|
-
/** @returns The error code. */
|
|
33
|
-
get code(): string;
|
|
34
|
-
/** @returns The error message. */
|
|
35
|
-
get message(): string;
|
|
36
|
-
/** @returns The object representation of the error. */
|
|
37
|
-
toJSON(): object;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* A FirebaseError with a prefix in front of the error code.
|
|
45
|
+
* `FirebaseError` is a subclass of the standard JavaScript `Error` object. In
|
|
46
|
+
* addition to a message string and stack trace, it contains a string code.
|
|
41
47
|
*/
|
|
42
|
-
export
|
|
43
|
-
|
|
48
|
+
export interface FirebaseError {
|
|
49
|
+
/**
|
|
50
|
+
* Error codes are strings using the following format: `"service/string-code"`.
|
|
51
|
+
* Some examples include `"auth/invalid-uid"` and
|
|
52
|
+
* `"messaging/invalid-recipient"`.
|
|
53
|
+
*
|
|
54
|
+
* While the message for a given error can change, the code will remain the same
|
|
55
|
+
* between backward-compatible versions of the Firebase SDK.
|
|
56
|
+
*/
|
|
57
|
+
code: string;
|
|
58
|
+
/**
|
|
59
|
+
* An explanatory message for the error that just occurred.
|
|
60
|
+
*
|
|
61
|
+
* This message is designed to be helpful to you, the developer. Because
|
|
62
|
+
* it generally does not convey meaningful information to end users,
|
|
63
|
+
* this message should not be displayed in your application.
|
|
64
|
+
*/
|
|
65
|
+
message: string;
|
|
66
|
+
/**
|
|
67
|
+
* A string value containing the execution backtrace when the error originally
|
|
68
|
+
* occurred.
|
|
69
|
+
*
|
|
70
|
+
* This information can be useful for troubleshooting the cause of the error with
|
|
71
|
+
* {@link https://firebase.google.com/support | Firebase Support}.
|
|
72
|
+
*/
|
|
73
|
+
stack?: string;
|
|
74
|
+
/**
|
|
75
|
+
* The HTTP response associated with this error, if any.
|
|
76
|
+
*/
|
|
77
|
+
httpResponse?: HttpResponse;
|
|
78
|
+
/**
|
|
79
|
+
* The original wrapped error that triggered this error, if any.
|
|
80
|
+
*/
|
|
81
|
+
cause?: Error;
|
|
44
82
|
/**
|
|
45
|
-
*
|
|
46
|
-
*
|
|
83
|
+
* Checks if this error matches the specified error code.
|
|
84
|
+
*
|
|
85
|
+
* This method enables checking the error type without needing to account for
|
|
86
|
+
* service-specific code prefixes. For example, if this error has the code
|
|
87
|
+
* `"auth/invalid-uid"`, calling `err.hasCode('invalid-uid')` or
|
|
88
|
+
* `err.hasCode('auth/invalid-uid')` will both return `true`.
|
|
47
89
|
*
|
|
48
|
-
* @param code - The
|
|
49
|
-
* @returns True if the code matches, false otherwise.
|
|
90
|
+
* @param code - The error code to test against (either non-prefixed or fully qualified).
|
|
91
|
+
* @returns True if the error code matches, false otherwise.
|
|
50
92
|
*/
|
|
51
93
|
hasCode(code: string): boolean;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Firebase Auth error code structure. This extends PrefixedFirebaseError.
|
|
60
|
-
*/
|
|
61
|
-
export declare class FirebaseAuthError extends PrefixedFirebaseError {
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Firebase Database error code structure. This extends FirebaseError.
|
|
65
|
-
*/
|
|
66
|
-
export declare class FirebaseDatabaseError extends FirebaseError {
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Firebase Firestore error code structure. This extends FirebaseError.
|
|
70
|
-
*/
|
|
71
|
-
export declare class FirebaseFirestoreError extends FirebaseError {
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Firebase instance ID error code structure. This extends FirebaseError.
|
|
75
|
-
*/
|
|
76
|
-
export declare class FirebaseInstanceIdError extends FirebaseError {
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Firebase Installations service error code structure. This extends `FirebaseError`.
|
|
80
|
-
*/
|
|
81
|
-
export declare class FirebaseInstallationsError extends FirebaseError {
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Firebase Messaging error code structure. This extends PrefixedFirebaseError.
|
|
85
|
-
*/
|
|
86
|
-
export declare class FirebaseMessagingError extends PrefixedFirebaseError {
|
|
87
|
-
}
|
|
88
|
-
export declare class FirebaseMessagingSessionError extends FirebaseMessagingError {
|
|
89
|
-
pendingBatchResponse?: Promise<BatchResponse>;
|
|
90
|
-
/** @returns The object representation of the error. */
|
|
94
|
+
/**
|
|
95
|
+
* Returns a JSON-serializable object representation of this error.
|
|
96
|
+
*
|
|
97
|
+
* @returns A JSON-serializable representation of this object.
|
|
98
|
+
*/
|
|
91
99
|
toJSON(): object;
|
|
92
100
|
}
|
|
93
101
|
/**
|
|
94
|
-
* Firebase
|
|
95
|
-
*/
|
|
96
|
-
export declare class FirebaseProjectManagementError extends PrefixedFirebaseError {
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* App client error codes and their default messages.
|
|
100
|
-
*/
|
|
101
|
-
export declare class AppErrorCodes {
|
|
102
|
-
static APP_DELETED: string;
|
|
103
|
-
static DUPLICATE_APP: string;
|
|
104
|
-
static INVALID_ARGUMENT: string;
|
|
105
|
-
static INTERNAL_ERROR: string;
|
|
106
|
-
static INVALID_APP_NAME: string;
|
|
107
|
-
static INVALID_APP_OPTIONS: string;
|
|
108
|
-
static INVALID_CREDENTIAL: string;
|
|
109
|
-
static NETWORK_ERROR: string;
|
|
110
|
-
static NETWORK_TIMEOUT: string;
|
|
111
|
-
static NO_APP: string;
|
|
112
|
-
static UNABLE_TO_PARSE_RESPONSE: string;
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Auth client error codes and their default messages.
|
|
116
|
-
*/
|
|
117
|
-
export declare class AuthClientErrorCode {
|
|
118
|
-
static AUTH_BLOCKING_TOKEN_EXPIRED: {
|
|
119
|
-
code: string;
|
|
120
|
-
message: string;
|
|
121
|
-
};
|
|
122
|
-
static BILLING_NOT_ENABLED: {
|
|
123
|
-
code: string;
|
|
124
|
-
message: string;
|
|
125
|
-
};
|
|
126
|
-
static CLAIMS_TOO_LARGE: {
|
|
127
|
-
code: string;
|
|
128
|
-
message: string;
|
|
129
|
-
};
|
|
130
|
-
static CONFIGURATION_EXISTS: {
|
|
131
|
-
code: string;
|
|
132
|
-
message: string;
|
|
133
|
-
};
|
|
134
|
-
static CONFIGURATION_NOT_FOUND: {
|
|
135
|
-
code: string;
|
|
136
|
-
message: string;
|
|
137
|
-
};
|
|
138
|
-
static ID_TOKEN_EXPIRED: {
|
|
139
|
-
code: string;
|
|
140
|
-
message: string;
|
|
141
|
-
};
|
|
142
|
-
static INVALID_ARGUMENT: {
|
|
143
|
-
code: string;
|
|
144
|
-
message: string;
|
|
145
|
-
};
|
|
146
|
-
static INVALID_CONFIG: {
|
|
147
|
-
code: string;
|
|
148
|
-
message: string;
|
|
149
|
-
};
|
|
150
|
-
static EMAIL_ALREADY_EXISTS: {
|
|
151
|
-
code: string;
|
|
152
|
-
message: string;
|
|
153
|
-
};
|
|
154
|
-
static EMAIL_NOT_FOUND: {
|
|
155
|
-
code: string;
|
|
156
|
-
message: string;
|
|
157
|
-
};
|
|
158
|
-
static FORBIDDEN_CLAIM: {
|
|
159
|
-
code: string;
|
|
160
|
-
message: string;
|
|
161
|
-
};
|
|
162
|
-
static INVALID_ID_TOKEN: {
|
|
163
|
-
code: string;
|
|
164
|
-
message: string;
|
|
165
|
-
};
|
|
166
|
-
static ID_TOKEN_REVOKED: {
|
|
167
|
-
code: string;
|
|
168
|
-
message: string;
|
|
169
|
-
};
|
|
170
|
-
static INTERNAL_ERROR: {
|
|
171
|
-
code: string;
|
|
172
|
-
message: string;
|
|
173
|
-
};
|
|
174
|
-
static INVALID_CLAIMS: {
|
|
175
|
-
code: string;
|
|
176
|
-
message: string;
|
|
177
|
-
};
|
|
178
|
-
static INVALID_CONTINUE_URI: {
|
|
179
|
-
code: string;
|
|
180
|
-
message: string;
|
|
181
|
-
};
|
|
182
|
-
static INVALID_CREATION_TIME: {
|
|
183
|
-
code: string;
|
|
184
|
-
message: string;
|
|
185
|
-
};
|
|
186
|
-
static INVALID_CREDENTIAL: {
|
|
187
|
-
code: string;
|
|
188
|
-
message: string;
|
|
189
|
-
};
|
|
190
|
-
static INVALID_DISABLED_FIELD: {
|
|
191
|
-
code: string;
|
|
192
|
-
message: string;
|
|
193
|
-
};
|
|
194
|
-
static INVALID_DISPLAY_NAME: {
|
|
195
|
-
code: string;
|
|
196
|
-
message: string;
|
|
197
|
-
};
|
|
198
|
-
static INVALID_DYNAMIC_LINK_DOMAIN: {
|
|
199
|
-
code: string;
|
|
200
|
-
message: string;
|
|
201
|
-
};
|
|
202
|
-
static INVALID_HOSTING_LINK_DOMAIN: {
|
|
203
|
-
code: string;
|
|
204
|
-
message: string;
|
|
205
|
-
};
|
|
206
|
-
static INVALID_EMAIL_VERIFIED: {
|
|
207
|
-
code: string;
|
|
208
|
-
message: string;
|
|
209
|
-
};
|
|
210
|
-
static INVALID_EMAIL: {
|
|
211
|
-
code: string;
|
|
212
|
-
message: string;
|
|
213
|
-
};
|
|
214
|
-
static INVALID_NEW_EMAIL: {
|
|
215
|
-
code: string;
|
|
216
|
-
message: string;
|
|
217
|
-
};
|
|
218
|
-
static INVALID_ENROLLED_FACTORS: {
|
|
219
|
-
code: string;
|
|
220
|
-
message: string;
|
|
221
|
-
};
|
|
222
|
-
static INVALID_ENROLLMENT_TIME: {
|
|
223
|
-
code: string;
|
|
224
|
-
message: string;
|
|
225
|
-
};
|
|
226
|
-
static INVALID_HASH_ALGORITHM: {
|
|
227
|
-
code: string;
|
|
228
|
-
message: string;
|
|
229
|
-
};
|
|
230
|
-
static INVALID_HASH_BLOCK_SIZE: {
|
|
231
|
-
code: string;
|
|
232
|
-
message: string;
|
|
233
|
-
};
|
|
234
|
-
static INVALID_HASH_DERIVED_KEY_LENGTH: {
|
|
235
|
-
code: string;
|
|
236
|
-
message: string;
|
|
237
|
-
};
|
|
238
|
-
static INVALID_HASH_KEY: {
|
|
239
|
-
code: string;
|
|
240
|
-
message: string;
|
|
241
|
-
};
|
|
242
|
-
static INVALID_HASH_MEMORY_COST: {
|
|
243
|
-
code: string;
|
|
244
|
-
message: string;
|
|
245
|
-
};
|
|
246
|
-
static INVALID_HASH_PARALLELIZATION: {
|
|
247
|
-
code: string;
|
|
248
|
-
message: string;
|
|
249
|
-
};
|
|
250
|
-
static INVALID_HASH_ROUNDS: {
|
|
251
|
-
code: string;
|
|
252
|
-
message: string;
|
|
253
|
-
};
|
|
254
|
-
static INVALID_HASH_SALT_SEPARATOR: {
|
|
255
|
-
code: string;
|
|
256
|
-
message: string;
|
|
257
|
-
};
|
|
258
|
-
static INVALID_LAST_SIGN_IN_TIME: {
|
|
259
|
-
code: string;
|
|
260
|
-
message: string;
|
|
261
|
-
};
|
|
262
|
-
static INVALID_NAME: {
|
|
263
|
-
code: string;
|
|
264
|
-
message: string;
|
|
265
|
-
};
|
|
266
|
-
static INVALID_OAUTH_CLIENT_ID: {
|
|
267
|
-
code: string;
|
|
268
|
-
message: string;
|
|
269
|
-
};
|
|
270
|
-
static INVALID_PAGE_TOKEN: {
|
|
271
|
-
code: string;
|
|
272
|
-
message: string;
|
|
273
|
-
};
|
|
274
|
-
static INVALID_PASSWORD: {
|
|
275
|
-
code: string;
|
|
276
|
-
message: string;
|
|
277
|
-
};
|
|
278
|
-
static INVALID_PASSWORD_HASH: {
|
|
279
|
-
code: string;
|
|
280
|
-
message: string;
|
|
281
|
-
};
|
|
282
|
-
static INVALID_PASSWORD_SALT: {
|
|
283
|
-
code: string;
|
|
284
|
-
message: string;
|
|
285
|
-
};
|
|
286
|
-
static INVALID_PHONE_NUMBER: {
|
|
287
|
-
code: string;
|
|
288
|
-
message: string;
|
|
289
|
-
};
|
|
290
|
-
static INVALID_PHOTO_URL: {
|
|
291
|
-
code: string;
|
|
292
|
-
message: string;
|
|
293
|
-
};
|
|
294
|
-
static INVALID_PROJECT_ID: {
|
|
295
|
-
code: string;
|
|
296
|
-
message: string;
|
|
297
|
-
};
|
|
298
|
-
static INVALID_PROVIDER_DATA: {
|
|
299
|
-
code: string;
|
|
300
|
-
message: string;
|
|
301
|
-
};
|
|
302
|
-
static INVALID_PROVIDER_ID: {
|
|
303
|
-
code: string;
|
|
304
|
-
message: string;
|
|
305
|
-
};
|
|
306
|
-
static INVALID_PROVIDER_UID: {
|
|
307
|
-
code: string;
|
|
308
|
-
message: string;
|
|
309
|
-
};
|
|
310
|
-
static INVALID_OAUTH_RESPONSETYPE: {
|
|
311
|
-
code: string;
|
|
312
|
-
message: string;
|
|
313
|
-
};
|
|
314
|
-
static INVALID_SESSION_COOKIE_DURATION: {
|
|
315
|
-
code: string;
|
|
316
|
-
message: string;
|
|
317
|
-
};
|
|
318
|
-
static INVALID_TENANT_ID: {
|
|
319
|
-
code: string;
|
|
320
|
-
message: string;
|
|
321
|
-
};
|
|
322
|
-
static INVALID_TENANT_TYPE: {
|
|
323
|
-
code: string;
|
|
324
|
-
message: string;
|
|
325
|
-
};
|
|
326
|
-
static INVALID_TESTING_PHONE_NUMBER: {
|
|
327
|
-
code: string;
|
|
328
|
-
message: string;
|
|
329
|
-
};
|
|
330
|
-
static INVALID_UID: {
|
|
331
|
-
code: string;
|
|
332
|
-
message: string;
|
|
333
|
-
};
|
|
334
|
-
static INVALID_USER_IMPORT: {
|
|
335
|
-
code: string;
|
|
336
|
-
message: string;
|
|
337
|
-
};
|
|
338
|
-
static INVALID_TOKENS_VALID_AFTER_TIME: {
|
|
339
|
-
code: string;
|
|
340
|
-
message: string;
|
|
341
|
-
};
|
|
342
|
-
static MISMATCHING_TENANT_ID: {
|
|
343
|
-
code: string;
|
|
344
|
-
message: string;
|
|
345
|
-
};
|
|
346
|
-
static MISSING_ANDROID_PACKAGE_NAME: {
|
|
347
|
-
code: string;
|
|
348
|
-
message: string;
|
|
349
|
-
};
|
|
350
|
-
static MISSING_CONFIG: {
|
|
351
|
-
code: string;
|
|
352
|
-
message: string;
|
|
353
|
-
};
|
|
354
|
-
static MISSING_CONTINUE_URI: {
|
|
355
|
-
code: string;
|
|
356
|
-
message: string;
|
|
357
|
-
};
|
|
358
|
-
static MISSING_DISPLAY_NAME: {
|
|
359
|
-
code: string;
|
|
360
|
-
message: string;
|
|
361
|
-
};
|
|
362
|
-
static MISSING_EMAIL: {
|
|
363
|
-
code: string;
|
|
364
|
-
message: string;
|
|
365
|
-
};
|
|
366
|
-
static MISSING_IOS_BUNDLE_ID: {
|
|
367
|
-
code: string;
|
|
368
|
-
message: string;
|
|
369
|
-
};
|
|
370
|
-
static MISSING_ISSUER: {
|
|
371
|
-
code: string;
|
|
372
|
-
message: string;
|
|
373
|
-
};
|
|
374
|
-
static MISSING_HASH_ALGORITHM: {
|
|
375
|
-
code: string;
|
|
376
|
-
message: string;
|
|
377
|
-
};
|
|
378
|
-
static MISSING_OAUTH_CLIENT_ID: {
|
|
379
|
-
code: string;
|
|
380
|
-
message: string;
|
|
381
|
-
};
|
|
382
|
-
static MISSING_OAUTH_CLIENT_SECRET: {
|
|
383
|
-
code: string;
|
|
384
|
-
message: string;
|
|
385
|
-
};
|
|
386
|
-
static MISSING_PROVIDER_ID: {
|
|
387
|
-
code: string;
|
|
388
|
-
message: string;
|
|
389
|
-
};
|
|
390
|
-
static MISSING_SAML_RELYING_PARTY_CONFIG: {
|
|
391
|
-
code: string;
|
|
392
|
-
message: string;
|
|
393
|
-
};
|
|
394
|
-
static MAXIMUM_TEST_PHONE_NUMBER_EXCEEDED: {
|
|
395
|
-
code: string;
|
|
396
|
-
message: string;
|
|
397
|
-
};
|
|
398
|
-
static MAXIMUM_USER_COUNT_EXCEEDED: {
|
|
399
|
-
code: string;
|
|
400
|
-
message: string;
|
|
401
|
-
};
|
|
402
|
-
static MISSING_UID: {
|
|
403
|
-
code: string;
|
|
404
|
-
message: string;
|
|
405
|
-
};
|
|
406
|
-
static OPERATION_NOT_ALLOWED: {
|
|
407
|
-
code: string;
|
|
408
|
-
message: string;
|
|
409
|
-
};
|
|
410
|
-
static PHONE_NUMBER_ALREADY_EXISTS: {
|
|
411
|
-
code: string;
|
|
412
|
-
message: string;
|
|
413
|
-
};
|
|
414
|
-
static PROJECT_NOT_FOUND: {
|
|
415
|
-
code: string;
|
|
416
|
-
message: string;
|
|
417
|
-
};
|
|
418
|
-
static INSUFFICIENT_PERMISSION: {
|
|
419
|
-
code: string;
|
|
420
|
-
message: string;
|
|
421
|
-
};
|
|
422
|
-
static QUOTA_EXCEEDED: {
|
|
423
|
-
code: string;
|
|
424
|
-
message: string;
|
|
425
|
-
};
|
|
426
|
-
static SECOND_FACTOR_LIMIT_EXCEEDED: {
|
|
427
|
-
code: string;
|
|
428
|
-
message: string;
|
|
429
|
-
};
|
|
430
|
-
static SECOND_FACTOR_UID_ALREADY_EXISTS: {
|
|
431
|
-
code: string;
|
|
432
|
-
message: string;
|
|
433
|
-
};
|
|
434
|
-
static SESSION_COOKIE_EXPIRED: {
|
|
435
|
-
code: string;
|
|
436
|
-
message: string;
|
|
437
|
-
};
|
|
438
|
-
static SESSION_COOKIE_REVOKED: {
|
|
439
|
-
code: string;
|
|
440
|
-
message: string;
|
|
441
|
-
};
|
|
442
|
-
static TENANT_NOT_FOUND: {
|
|
443
|
-
code: string;
|
|
444
|
-
message: string;
|
|
445
|
-
};
|
|
446
|
-
static UID_ALREADY_EXISTS: {
|
|
447
|
-
code: string;
|
|
448
|
-
message: string;
|
|
449
|
-
};
|
|
450
|
-
static UNAUTHORIZED_DOMAIN: {
|
|
451
|
-
code: string;
|
|
452
|
-
message: string;
|
|
453
|
-
};
|
|
454
|
-
static UNSUPPORTED_FIRST_FACTOR: {
|
|
455
|
-
code: string;
|
|
456
|
-
message: string;
|
|
457
|
-
};
|
|
458
|
-
static UNSUPPORTED_SECOND_FACTOR: {
|
|
459
|
-
code: string;
|
|
460
|
-
message: string;
|
|
461
|
-
};
|
|
462
|
-
static UNSUPPORTED_TENANT_OPERATION: {
|
|
463
|
-
code: string;
|
|
464
|
-
message: string;
|
|
465
|
-
};
|
|
466
|
-
static UNVERIFIED_EMAIL: {
|
|
467
|
-
code: string;
|
|
468
|
-
message: string;
|
|
469
|
-
};
|
|
470
|
-
static USER_NOT_FOUND: {
|
|
471
|
-
code: string;
|
|
472
|
-
message: string;
|
|
473
|
-
};
|
|
474
|
-
static NOT_FOUND: {
|
|
475
|
-
code: string;
|
|
476
|
-
message: string;
|
|
477
|
-
};
|
|
478
|
-
static USER_DISABLED: {
|
|
479
|
-
code: string;
|
|
480
|
-
message: string;
|
|
481
|
-
};
|
|
482
|
-
static USER_NOT_DISABLED: {
|
|
483
|
-
code: string;
|
|
484
|
-
message: string;
|
|
485
|
-
};
|
|
486
|
-
static INVALID_RECAPTCHA_ACTION: {
|
|
487
|
-
code: string;
|
|
488
|
-
message: string;
|
|
489
|
-
};
|
|
490
|
-
static INVALID_RECAPTCHA_ENFORCEMENT_STATE: {
|
|
491
|
-
code: string;
|
|
492
|
-
message: string;
|
|
493
|
-
};
|
|
494
|
-
static RECAPTCHA_NOT_ENABLED: {
|
|
495
|
-
code: string;
|
|
496
|
-
message: string;
|
|
497
|
-
};
|
|
498
|
-
}
|
|
499
|
-
/**
|
|
500
|
-
* Messaging client error codes and their default messages.
|
|
102
|
+
* Firebase error code structure. This extends Error.
|
|
501
103
|
*/
|
|
502
|
-
export declare class
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
static INVALID_RECIPIENT: {
|
|
508
|
-
code: string;
|
|
509
|
-
message: string;
|
|
510
|
-
};
|
|
511
|
-
static INVALID_PAYLOAD: {
|
|
512
|
-
code: string;
|
|
513
|
-
message: string;
|
|
514
|
-
};
|
|
515
|
-
static INVALID_DATA_PAYLOAD_KEY: {
|
|
516
|
-
code: string;
|
|
517
|
-
message: string;
|
|
518
|
-
};
|
|
519
|
-
static PAYLOAD_SIZE_LIMIT_EXCEEDED: {
|
|
520
|
-
code: string;
|
|
521
|
-
message: string;
|
|
522
|
-
};
|
|
523
|
-
static INVALID_OPTIONS: {
|
|
524
|
-
code: string;
|
|
525
|
-
message: string;
|
|
526
|
-
};
|
|
527
|
-
static INVALID_REGISTRATION_TOKEN: {
|
|
528
|
-
code: string;
|
|
529
|
-
message: string;
|
|
530
|
-
};
|
|
531
|
-
static REGISTRATION_TOKEN_NOT_REGISTERED: {
|
|
532
|
-
code: string;
|
|
533
|
-
message: string;
|
|
534
|
-
};
|
|
535
|
-
static MISMATCHED_CREDENTIAL: {
|
|
536
|
-
code: string;
|
|
537
|
-
message: string;
|
|
538
|
-
};
|
|
539
|
-
static INVALID_PACKAGE_NAME: {
|
|
540
|
-
code: string;
|
|
541
|
-
message: string;
|
|
542
|
-
};
|
|
543
|
-
static DEVICE_MESSAGE_RATE_EXCEEDED: {
|
|
544
|
-
code: string;
|
|
545
|
-
message: string;
|
|
546
|
-
};
|
|
547
|
-
static TOPICS_MESSAGE_RATE_EXCEEDED: {
|
|
548
|
-
code: string;
|
|
549
|
-
message: string;
|
|
550
|
-
};
|
|
551
|
-
static MESSAGE_RATE_EXCEEDED: {
|
|
552
|
-
code: string;
|
|
553
|
-
message: string;
|
|
554
|
-
};
|
|
555
|
-
static THIRD_PARTY_AUTH_ERROR: {
|
|
556
|
-
code: string;
|
|
557
|
-
message: string;
|
|
558
|
-
};
|
|
559
|
-
static TOO_MANY_TOPICS: {
|
|
560
|
-
code: string;
|
|
561
|
-
message: string;
|
|
562
|
-
};
|
|
563
|
-
static AUTHENTICATION_ERROR: {
|
|
564
|
-
code: string;
|
|
565
|
-
message: string;
|
|
566
|
-
};
|
|
567
|
-
static SERVER_UNAVAILABLE: {
|
|
568
|
-
code: string;
|
|
569
|
-
message: string;
|
|
570
|
-
};
|
|
571
|
-
static INTERNAL_ERROR: {
|
|
572
|
-
code: string;
|
|
573
|
-
message: string;
|
|
574
|
-
};
|
|
575
|
-
static UNKNOWN_ERROR: {
|
|
576
|
-
code: string;
|
|
577
|
-
message: string;
|
|
578
|
-
};
|
|
579
|
-
}
|
|
580
|
-
export declare class InstallationsClientErrorCode {
|
|
581
|
-
static INVALID_ARGUMENT: {
|
|
582
|
-
code: string;
|
|
583
|
-
message: string;
|
|
584
|
-
};
|
|
585
|
-
static INVALID_PROJECT_ID: {
|
|
586
|
-
code: string;
|
|
587
|
-
message: string;
|
|
588
|
-
};
|
|
589
|
-
static INVALID_INSTALLATION_ID: {
|
|
590
|
-
code: string;
|
|
591
|
-
message: string;
|
|
592
|
-
};
|
|
593
|
-
static API_ERROR: {
|
|
594
|
-
code: string;
|
|
595
|
-
message: string;
|
|
596
|
-
};
|
|
597
|
-
}
|
|
598
|
-
export declare class InstanceIdClientErrorCode extends InstallationsClientErrorCode {
|
|
599
|
-
static INVALID_INSTANCE_ID: {
|
|
600
|
-
code: string;
|
|
601
|
-
message: string;
|
|
602
|
-
};
|
|
104
|
+
export declare class FirebaseError extends Error implements FirebaseError {
|
|
105
|
+
/**
|
|
106
|
+
* @param errorInfo - The error information (code and message).
|
|
107
|
+
*/
|
|
108
|
+
constructor(errorInfo: ErrorInfo);
|
|
603
109
|
}
|
|
604
|
-
export type ProjectManagementErrorCode = 'already-exists' | 'authentication-error' | 'internal-error' | 'invalid-argument' | 'invalid-project-id' | 'invalid-server-response' | 'not-found' | 'service-unavailable' | 'unknown-error';
|