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
|
@@ -1,335 +0,0 @@
|
|
|
1
|
-
/*! firebase-admin v13.10.0 */
|
|
2
|
-
"use strict";
|
|
3
|
-
/*!
|
|
4
|
-
* @license
|
|
5
|
-
* Copyright 2017 Google LLC
|
|
6
|
-
*
|
|
7
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
-
* you may not use this file except in compliance with the License.
|
|
9
|
-
* You may obtain a copy of the License at
|
|
10
|
-
*
|
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
-
*
|
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
-
* See the License for the specific language governing permissions and
|
|
17
|
-
* limitations under the License.
|
|
18
|
-
*/
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.defaultNamespace = exports.FirebaseNamespace = exports.FirebaseNamespaceInternals = void 0;
|
|
21
|
-
const lifecycle_1 = require("./lifecycle");
|
|
22
|
-
const credential_factory_1 = require("./credential-factory");
|
|
23
|
-
const index_1 = require("../utils/index");
|
|
24
|
-
/**
|
|
25
|
-
* Internals of a FirebaseNamespace instance.
|
|
26
|
-
*/
|
|
27
|
-
class FirebaseNamespaceInternals {
|
|
28
|
-
constructor(appStore) {
|
|
29
|
-
this.appStore = appStore;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Initializes the App instance.
|
|
33
|
-
*
|
|
34
|
-
* @param options - Optional options for the App instance. If none present will try to initialize
|
|
35
|
-
* from the FIREBASE_CONFIG environment variable. If the environment variable contains a string
|
|
36
|
-
* that starts with '{' it will be parsed as JSON, otherwise it will be assumed to be pointing
|
|
37
|
-
* to a file.
|
|
38
|
-
* @param appName - Optional name of the FirebaseApp instance.
|
|
39
|
-
*
|
|
40
|
-
* @returns A new App instance.
|
|
41
|
-
*/
|
|
42
|
-
initializeApp(options, appName) {
|
|
43
|
-
const app = this.appStore.initializeApp(options, appName);
|
|
44
|
-
return extendApp(app);
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Returns the App instance with the provided name (or the default App instance
|
|
48
|
-
* if no name is provided).
|
|
49
|
-
*
|
|
50
|
-
* @param appName - Optional name of the FirebaseApp instance to return.
|
|
51
|
-
* @returns The App instance which has the provided name.
|
|
52
|
-
*/
|
|
53
|
-
app(appName) {
|
|
54
|
-
const app = this.appStore.getApp(appName);
|
|
55
|
-
return extendApp(app);
|
|
56
|
-
}
|
|
57
|
-
/*
|
|
58
|
-
* Returns an array of all the non-deleted App instances.
|
|
59
|
-
*/
|
|
60
|
-
get apps() {
|
|
61
|
-
return this.appStore.getApps().map((app) => extendApp(app));
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
exports.FirebaseNamespaceInternals = FirebaseNamespaceInternals;
|
|
65
|
-
const firebaseCredential = {
|
|
66
|
-
cert: credential_factory_1.cert, refreshToken: credential_factory_1.refreshToken, applicationDefault: credential_factory_1.applicationDefault
|
|
67
|
-
};
|
|
68
|
-
/**
|
|
69
|
-
* Global Firebase context object.
|
|
70
|
-
*/
|
|
71
|
-
class FirebaseNamespace {
|
|
72
|
-
/* tslint:enable */
|
|
73
|
-
constructor(appStore) {
|
|
74
|
-
// Hack to prevent Babel from modifying the object returned as the default admin namespace.
|
|
75
|
-
/* tslint:disable:variable-name */
|
|
76
|
-
this.__esModule = true;
|
|
77
|
-
/* tslint:enable:variable-name */
|
|
78
|
-
this.credential = firebaseCredential;
|
|
79
|
-
this.SDK_VERSION = (0, index_1.getSdkVersion)();
|
|
80
|
-
/* tslint:disable */
|
|
81
|
-
// TODO(jwenger): Database is the only consumer of firebase.Promise. We should update it to use
|
|
82
|
-
// use the native Promise and then remove this.
|
|
83
|
-
this.Promise = Promise;
|
|
84
|
-
this.INTERNAL = new FirebaseNamespaceInternals(appStore ?? new lifecycle_1.AppStore());
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Gets the `Auth` service namespace. The returned namespace can be used to get the
|
|
88
|
-
* `Auth` service for the default app or an explicitly specified app.
|
|
89
|
-
*/
|
|
90
|
-
get auth() {
|
|
91
|
-
const fn = (app) => {
|
|
92
|
-
return this.ensureApp(app).auth();
|
|
93
|
-
};
|
|
94
|
-
const auth = require('../auth/auth').Auth;
|
|
95
|
-
return Object.assign(fn, { Auth: auth });
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Gets the `Database` service namespace. The returned namespace can be used to get the
|
|
99
|
-
* `Database` service for the default app or an explicitly specified app.
|
|
100
|
-
*/
|
|
101
|
-
get database() {
|
|
102
|
-
const fn = (app) => {
|
|
103
|
-
return this.ensureApp(app).database();
|
|
104
|
-
};
|
|
105
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
106
|
-
return Object.assign(fn, require('@firebase/database-compat/standalone'));
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Gets the `Messaging` service namespace. The returned namespace can be used to get the
|
|
110
|
-
* `Messaging` service for the default app or an explicitly specified app.
|
|
111
|
-
*/
|
|
112
|
-
get messaging() {
|
|
113
|
-
const fn = (app) => {
|
|
114
|
-
return this.ensureApp(app).messaging();
|
|
115
|
-
};
|
|
116
|
-
const messaging = require('../messaging/messaging').Messaging;
|
|
117
|
-
return Object.assign(fn, { Messaging: messaging });
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Gets the `Storage` service namespace. The returned namespace can be used to get the
|
|
121
|
-
* `Storage` service for the default app or an explicitly specified app.
|
|
122
|
-
*/
|
|
123
|
-
get storage() {
|
|
124
|
-
const fn = (app) => {
|
|
125
|
-
return this.ensureApp(app).storage();
|
|
126
|
-
};
|
|
127
|
-
const storage = require('../storage/storage').Storage;
|
|
128
|
-
return Object.assign(fn, { Storage: storage });
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Gets the `Firestore` service namespace. The returned namespace can be used to get the
|
|
132
|
-
* `Firestore` service for the default app or an explicitly specified app.
|
|
133
|
-
*/
|
|
134
|
-
get firestore() {
|
|
135
|
-
let fn = (app) => {
|
|
136
|
-
return this.ensureApp(app).firestore();
|
|
137
|
-
};
|
|
138
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
139
|
-
const firestore = require('@google-cloud/firestore');
|
|
140
|
-
fn = Object.assign(fn, firestore.Firestore);
|
|
141
|
-
// `v1beta1` and `v1` are lazy-loaded in the Firestore SDK. We use the same trick here
|
|
142
|
-
// to avoid triggering this lazy-loading upon initialization.
|
|
143
|
-
Object.defineProperty(fn, 'v1beta1', {
|
|
144
|
-
get: () => {
|
|
145
|
-
return firestore.v1beta1;
|
|
146
|
-
},
|
|
147
|
-
});
|
|
148
|
-
Object.defineProperty(fn, 'v1', {
|
|
149
|
-
get: () => {
|
|
150
|
-
return firestore.v1;
|
|
151
|
-
},
|
|
152
|
-
});
|
|
153
|
-
return fn;
|
|
154
|
-
}
|
|
155
|
-
/**
|
|
156
|
-
* Gets the `MachineLearning` service namespace. The returned namespace can be
|
|
157
|
-
* used to get the `MachineLearning` service for the default app or an
|
|
158
|
-
* explicityly specified app.
|
|
159
|
-
*/
|
|
160
|
-
get machineLearning() {
|
|
161
|
-
const fn = (app) => {
|
|
162
|
-
return this.ensureApp(app).machineLearning();
|
|
163
|
-
};
|
|
164
|
-
const machineLearning = require('../machine-learning/machine-learning').MachineLearning;
|
|
165
|
-
return Object.assign(fn, { MachineLearning: machineLearning });
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* Gets the `Installations` service namespace. The returned namespace can be used to get the
|
|
169
|
-
* `Installations` service for the default app or an explicitly specified app.
|
|
170
|
-
*/
|
|
171
|
-
get installations() {
|
|
172
|
-
const fn = (app) => {
|
|
173
|
-
return this.ensureApp(app).installations();
|
|
174
|
-
};
|
|
175
|
-
const installations = require('../installations/installations').Installations;
|
|
176
|
-
return Object.assign(fn, { Installations: installations });
|
|
177
|
-
}
|
|
178
|
-
/**
|
|
179
|
-
* Gets the `InstanceId` service namespace. The returned namespace can be used to get the
|
|
180
|
-
* `Instance` service for the default app or an explicitly specified app.
|
|
181
|
-
*/
|
|
182
|
-
get instanceId() {
|
|
183
|
-
const fn = (app) => {
|
|
184
|
-
return this.ensureApp(app).instanceId();
|
|
185
|
-
};
|
|
186
|
-
const instanceId = require('../instance-id/instance-id').InstanceId;
|
|
187
|
-
return Object.assign(fn, { InstanceId: instanceId });
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* Gets the `ProjectManagement` service namespace. The returned namespace can be used to get the
|
|
191
|
-
* `ProjectManagement` service for the default app or an explicitly specified app.
|
|
192
|
-
*/
|
|
193
|
-
get projectManagement() {
|
|
194
|
-
const fn = (app) => {
|
|
195
|
-
return this.ensureApp(app).projectManagement();
|
|
196
|
-
};
|
|
197
|
-
const projectManagement = require('../project-management/project-management').ProjectManagement;
|
|
198
|
-
return Object.assign(fn, { ProjectManagement: projectManagement });
|
|
199
|
-
}
|
|
200
|
-
/**
|
|
201
|
-
* Gets the `SecurityRules` service namespace. The returned namespace can be used to get the
|
|
202
|
-
* `SecurityRules` service for the default app or an explicitly specified app.
|
|
203
|
-
*/
|
|
204
|
-
get securityRules() {
|
|
205
|
-
const fn = (app) => {
|
|
206
|
-
return this.ensureApp(app).securityRules();
|
|
207
|
-
};
|
|
208
|
-
const securityRules = require('../security-rules/security-rules').SecurityRules;
|
|
209
|
-
return Object.assign(fn, { SecurityRules: securityRules });
|
|
210
|
-
}
|
|
211
|
-
/**
|
|
212
|
-
* Gets the `RemoteConfig` service namespace. The returned namespace can be used to get the
|
|
213
|
-
* `RemoteConfig` service for the default app or an explicitly specified app.
|
|
214
|
-
*/
|
|
215
|
-
get remoteConfig() {
|
|
216
|
-
const fn = (app) => {
|
|
217
|
-
return this.ensureApp(app).remoteConfig();
|
|
218
|
-
};
|
|
219
|
-
const remoteConfig = require('../remote-config/remote-config').RemoteConfig;
|
|
220
|
-
return Object.assign(fn, { RemoteConfig: remoteConfig });
|
|
221
|
-
}
|
|
222
|
-
/**
|
|
223
|
-
* Gets the `AppCheck` service namespace. The returned namespace can be used to get the
|
|
224
|
-
* `AppCheck` service for the default app or an explicitly specified app.
|
|
225
|
-
*/
|
|
226
|
-
get appCheck() {
|
|
227
|
-
const fn = (app) => {
|
|
228
|
-
return this.ensureApp(app).appCheck();
|
|
229
|
-
};
|
|
230
|
-
const appCheck = require('../app-check/app-check').AppCheck;
|
|
231
|
-
return Object.assign(fn, { AppCheck: appCheck });
|
|
232
|
-
}
|
|
233
|
-
// TODO: Change the return types to app.App in the following methods.
|
|
234
|
-
/**
|
|
235
|
-
* Initializes the FirebaseApp instance.
|
|
236
|
-
*
|
|
237
|
-
* @param options - Optional options for the FirebaseApp instance.
|
|
238
|
-
* If none present will try to initialize from the FIREBASE_CONFIG environment variable.
|
|
239
|
-
* If the environment variable contains a string that starts with '{' it will be parsed as JSON,
|
|
240
|
-
* otherwise it will be assumed to be pointing to a file.
|
|
241
|
-
* @param appName - Optional name of the FirebaseApp instance.
|
|
242
|
-
*
|
|
243
|
-
* @returns A new FirebaseApp instance.
|
|
244
|
-
*/
|
|
245
|
-
initializeApp(options, appName) {
|
|
246
|
-
return this.INTERNAL.initializeApp(options, appName);
|
|
247
|
-
}
|
|
248
|
-
/**
|
|
249
|
-
* Returns the FirebaseApp instance with the provided name (or the default FirebaseApp instance
|
|
250
|
-
* if no name is provided).
|
|
251
|
-
*
|
|
252
|
-
* @param appName - Optional name of the FirebaseApp instance to return.
|
|
253
|
-
* @returns The FirebaseApp instance which has the provided name.
|
|
254
|
-
*/
|
|
255
|
-
app(appName) {
|
|
256
|
-
return this.INTERNAL.app(appName);
|
|
257
|
-
}
|
|
258
|
-
/*
|
|
259
|
-
* Returns an array of all the non-deleted FirebaseApp instances.
|
|
260
|
-
*/
|
|
261
|
-
get apps() {
|
|
262
|
-
return this.INTERNAL.apps;
|
|
263
|
-
}
|
|
264
|
-
ensureApp(app) {
|
|
265
|
-
if (typeof app === 'undefined') {
|
|
266
|
-
app = this.app();
|
|
267
|
-
}
|
|
268
|
-
return app;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
exports.FirebaseNamespace = FirebaseNamespace;
|
|
272
|
-
/**
|
|
273
|
-
* In order to maintain backward compatibility, we instantiate a default namespace instance in
|
|
274
|
-
* this module, and delegate all app lifecycle operations to it. In a future implementation where
|
|
275
|
-
* the old admin namespace is no longer supported, we should remove this.
|
|
276
|
-
*
|
|
277
|
-
* @internal
|
|
278
|
-
*/
|
|
279
|
-
exports.defaultNamespace = new FirebaseNamespace(lifecycle_1.defaultAppStore);
|
|
280
|
-
function extendApp(app) {
|
|
281
|
-
const result = app;
|
|
282
|
-
if (result.__extended) {
|
|
283
|
-
return result;
|
|
284
|
-
}
|
|
285
|
-
result.auth = () => {
|
|
286
|
-
const fn = require('../auth/index').getAuth;
|
|
287
|
-
return fn(app);
|
|
288
|
-
};
|
|
289
|
-
result.appCheck = () => {
|
|
290
|
-
const fn = require('../app-check/index').getAppCheck;
|
|
291
|
-
return fn(app);
|
|
292
|
-
};
|
|
293
|
-
result.database = (url) => {
|
|
294
|
-
const fn = require('../database/index').getDatabaseWithUrl;
|
|
295
|
-
return fn(url, app);
|
|
296
|
-
};
|
|
297
|
-
result.messaging = () => {
|
|
298
|
-
const fn = require('../messaging/index').getMessaging;
|
|
299
|
-
return fn(app);
|
|
300
|
-
};
|
|
301
|
-
result.storage = () => {
|
|
302
|
-
const fn = require('../storage/index').getStorage;
|
|
303
|
-
return fn(app);
|
|
304
|
-
};
|
|
305
|
-
result.firestore = () => {
|
|
306
|
-
const fn = require('../firestore/index').getFirestore;
|
|
307
|
-
return fn(app);
|
|
308
|
-
};
|
|
309
|
-
result.instanceId = () => {
|
|
310
|
-
const fn = require('../instance-id/index').getInstanceId;
|
|
311
|
-
return fn(app);
|
|
312
|
-
};
|
|
313
|
-
result.installations = () => {
|
|
314
|
-
const fn = require('../installations/index').getInstallations;
|
|
315
|
-
return fn(app);
|
|
316
|
-
};
|
|
317
|
-
result.machineLearning = () => {
|
|
318
|
-
const fn = require('../machine-learning/index').getMachineLearning;
|
|
319
|
-
return fn(app);
|
|
320
|
-
};
|
|
321
|
-
result.projectManagement = () => {
|
|
322
|
-
const fn = require('../project-management/index').getProjectManagement;
|
|
323
|
-
return fn(app);
|
|
324
|
-
};
|
|
325
|
-
result.securityRules = () => {
|
|
326
|
-
const fn = require('../security-rules/index').getSecurityRules;
|
|
327
|
-
return fn(app);
|
|
328
|
-
};
|
|
329
|
-
result.remoteConfig = () => {
|
|
330
|
-
const fn = require('../remote-config/index').getRemoteConfig;
|
|
331
|
-
return fn(app);
|
|
332
|
-
};
|
|
333
|
-
result.__extended = true;
|
|
334
|
-
return result;
|
|
335
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/*! firebase-admin v13.10.0 */
|
|
2
|
-
/*!
|
|
3
|
-
* Copyright 2021 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
import { App } from '../app';
|
|
18
|
-
import { AppCheckToken as TAppCheckToken, AppCheckTokenOptions as TAppCheckTokenOptions, DecodedAppCheckToken as TDecodedAppCheckToken, VerifyAppCheckTokenOptions as TVerifyAppCheckTokenOptions, VerifyAppCheckTokenResponse as TVerifyAppCheckTokenResponse } from './app-check-api';
|
|
19
|
-
import { AppCheck as TAppCheck } from './app-check';
|
|
20
|
-
/**
|
|
21
|
-
* Gets the {@link firebase-admin.app-check#AppCheck} service for the default app or a given app.
|
|
22
|
-
*
|
|
23
|
-
* `admin.appCheck()` can be called with no arguments to access the default
|
|
24
|
-
* app's `AppCheck` service or as `admin.appCheck(app)` to access the
|
|
25
|
-
* `AppCheck` service associated with a specific app.
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* ```javascript
|
|
29
|
-
* // Get the `AppCheck` service for the default app
|
|
30
|
-
* var defaultAppCheck = admin.appCheck();
|
|
31
|
-
* ```
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```javascript
|
|
35
|
-
* // Get the `AppCheck` service for a given app
|
|
36
|
-
* var otherAppCheck = admin.appCheck(otherApp);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @param app - Optional app for which to return the `AppCheck` service.
|
|
40
|
-
* If not provided, the default `AppCheck` service is returned.
|
|
41
|
-
*
|
|
42
|
-
* @returns The default `AppCheck` service if no
|
|
43
|
-
* app is provided, or the `AppCheck` service associated with the provided
|
|
44
|
-
* app.
|
|
45
|
-
*/
|
|
46
|
-
export declare function appCheck(app?: App): appCheck.AppCheck;
|
|
47
|
-
export declare namespace appCheck {
|
|
48
|
-
/**
|
|
49
|
-
* Type alias to {@link firebase-admin.app-check#AppCheck}.
|
|
50
|
-
*/
|
|
51
|
-
type AppCheck = TAppCheck;
|
|
52
|
-
/**
|
|
53
|
-
* Type alias to {@link firebase-admin.app-check#AppCheckToken}.
|
|
54
|
-
*/
|
|
55
|
-
type AppCheckToken = TAppCheckToken;
|
|
56
|
-
/**
|
|
57
|
-
* Type alias to {@link firebase-admin.app-check#DecodedAppCheckToken}.
|
|
58
|
-
*/
|
|
59
|
-
type DecodedAppCheckToken = TDecodedAppCheckToken;
|
|
60
|
-
/**
|
|
61
|
-
* Type alias to {@link firebase-admin.app-check#VerifyAppCheckTokenResponse}.
|
|
62
|
-
*/
|
|
63
|
-
type VerifyAppCheckTokenResponse = TVerifyAppCheckTokenResponse;
|
|
64
|
-
/**
|
|
65
|
-
* Type alias to {@link firebase-admin.app-check#AppCheckTokenOptions}.
|
|
66
|
-
*/
|
|
67
|
-
type AppCheckTokenOptions = TAppCheckTokenOptions;
|
|
68
|
-
/**
|
|
69
|
-
* Type alias to {@link firebase-admin.app-check#VerifyAppCheckTokenOptions}.
|
|
70
|
-
*/
|
|
71
|
-
type VerifyAppCheckTokenOptions = TVerifyAppCheckTokenOptions;
|
|
72
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/*! firebase-admin v13.10.0 */
|
|
2
|
-
"use strict";
|
|
3
|
-
/*!
|
|
4
|
-
* Copyright 2021 Google LLC
|
|
5
|
-
*
|
|
6
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
-
* you may not use this file except in compliance with the License.
|
|
8
|
-
* You may obtain a copy of the License at
|
|
9
|
-
*
|
|
10
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
*
|
|
12
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
* See the License for the specific language governing permissions and
|
|
16
|
-
* limitations under the License.
|
|
17
|
-
*/
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
/*! firebase-admin v13.10.0 */
|
|
2
|
-
/*!
|
|
3
|
-
* Copyright 2021 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
import { App } from '../app/index';
|
|
18
|
-
import { ActionCodeSettings as TActionCodeSettings } from './action-code-settings-builder';
|
|
19
|
-
import { Auth as TAuth } from './auth';
|
|
20
|
-
import { AuthFactorType as TAuthFactorType, AuthProviderConfig as TAuthProviderConfig, AuthProviderConfigFilter as TAuthProviderConfigFilter, CreateRequest as TCreateRequest, CreateMultiFactorInfoRequest as TCreateMultiFactorInfoRequest, CreatePhoneMultiFactorInfoRequest as TCreatePhoneMultiFactorInfoRequest, EmailSignInProviderConfig as TEmailSignInProviderConfig, ListProviderConfigResults as TListProviderConfigResults, MultiFactorCreateSettings as TMultiFactorCreateSettings, MultiFactorConfig as TMultiFactorConfig, MultiFactorConfigState as TMultiFactorConfigState, MultiFactorUpdateSettings as TMultiFactorUpdateSettings, OIDCAuthProviderConfig as TOIDCAuthProviderConfig, OIDCUpdateAuthProviderRequest as TOIDCUpdateAuthProviderRequest, SAMLAuthProviderConfig as TSAMLAuthProviderConfig, SAMLUpdateAuthProviderRequest as TSAMLUpdateAuthProviderRequest, UpdateAuthProviderRequest as TUpdateAuthProviderRequest, UpdateMultiFactorInfoRequest as TUpdateMultiFactorInfoRequest, UpdatePhoneMultiFactorInfoRequest as TUpdatePhoneMultiFactorInfoRequest, UpdateRequest as TUpdateRequest } from './auth-config';
|
|
21
|
-
import { BaseAuth as TBaseAuth, DeleteUsersResult as TDeleteUsersResult, GetUsersResult as TGetUsersResult, ListUsersResult as TListUsersResult, SessionCookieOptions as TSessionCookieOptions } from './base-auth';
|
|
22
|
-
import { EmailIdentifier as TEmailIdentifier, PhoneIdentifier as TPhoneIdentifier, ProviderIdentifier as TProviderIdentifier, UserIdentifier as TUserIdentifier, UidIdentifier as TUidIdentifier } from './identifier';
|
|
23
|
-
import { CreateTenantRequest as TCreateTenantRequest, Tenant as TTenant, UpdateTenantRequest as TUpdateTenantRequest } from './tenant';
|
|
24
|
-
import { ListTenantsResult as TListTenantsResult, TenantAwareAuth as TTenantAwareAuth, TenantManager as TTenantManager } from './tenant-manager';
|
|
25
|
-
import { DecodedIdToken as TDecodedIdToken, DecodedAuthBlockingToken as TDecodedAuthBlockingToken } from './token-verifier';
|
|
26
|
-
import { HashAlgorithmType as THashAlgorithmType, UserImportOptions as TUserImportOptions, UserImportRecord as TUserImportRecord, UserImportResult as TUserImportResult, UserMetadataRequest as TUserMetadataRequest, UserProviderRequest as TUserProviderRequest } from './user-import-builder';
|
|
27
|
-
import { MultiFactorInfo as TMultiFactorInfo, MultiFactorSettings as TMultiFactorSettings, PhoneMultiFactorInfo as TPhoneMultiFactorInfo, UserInfo as TUserInfo, UserMetadata as TUserMetadata, UserRecord as TUserRecord } from './user-record';
|
|
28
|
-
/**
|
|
29
|
-
* Gets the {@link firebase-admin.auth#Auth} service for the default app or a
|
|
30
|
-
* given app.
|
|
31
|
-
*
|
|
32
|
-
* `admin.auth()` can be called with no arguments to access the default app's
|
|
33
|
-
* {@link firebase-admin.auth#Auth} service or as `admin.auth(app)` to access the
|
|
34
|
-
* {@link firebase-admin.auth#Auth} service associated with a specific app.
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```javascript
|
|
38
|
-
* // Get the Auth service for the default app
|
|
39
|
-
* var defaultAuth = admin.auth();
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* ```javascript
|
|
44
|
-
* // Get the Auth service for a given app
|
|
45
|
-
* var otherAuth = admin.auth(otherApp);
|
|
46
|
-
* ```
|
|
47
|
-
*
|
|
48
|
-
*/
|
|
49
|
-
export declare function auth(app?: App): auth.Auth;
|
|
50
|
-
export declare namespace auth {
|
|
51
|
-
/**
|
|
52
|
-
* Type alias to {@link firebase-admin.auth#ActionCodeSettings}.
|
|
53
|
-
*/
|
|
54
|
-
type ActionCodeSettings = TActionCodeSettings;
|
|
55
|
-
/**
|
|
56
|
-
* Type alias to {@link firebase-admin.auth#Auth}.
|
|
57
|
-
*/
|
|
58
|
-
type Auth = TAuth;
|
|
59
|
-
/**
|
|
60
|
-
* Type alias to {@link firebase-admin.auth#AuthFactorType}.
|
|
61
|
-
*/
|
|
62
|
-
type AuthFactorType = TAuthFactorType;
|
|
63
|
-
/**
|
|
64
|
-
* Type alias to {@link firebase-admin.auth#AuthProviderConfig}.
|
|
65
|
-
*/
|
|
66
|
-
type AuthProviderConfig = TAuthProviderConfig;
|
|
67
|
-
/**
|
|
68
|
-
* Type alias to {@link firebase-admin.auth#AuthProviderConfigFilter}.
|
|
69
|
-
*/
|
|
70
|
-
type AuthProviderConfigFilter = TAuthProviderConfigFilter;
|
|
71
|
-
/**
|
|
72
|
-
* Type alias to {@link firebase-admin.auth#BaseAuth}.
|
|
73
|
-
*/
|
|
74
|
-
type BaseAuth = TBaseAuth;
|
|
75
|
-
/**
|
|
76
|
-
* Type alias to {@link firebase-admin.auth#CreateMultiFactorInfoRequest}.
|
|
77
|
-
*/
|
|
78
|
-
type CreateMultiFactorInfoRequest = TCreateMultiFactorInfoRequest;
|
|
79
|
-
/**
|
|
80
|
-
* Type alias to {@link firebase-admin.auth#CreatePhoneMultiFactorInfoRequest}.
|
|
81
|
-
*/
|
|
82
|
-
type CreatePhoneMultiFactorInfoRequest = TCreatePhoneMultiFactorInfoRequest;
|
|
83
|
-
/**
|
|
84
|
-
* Type alias to {@link firebase-admin.auth#CreateRequest}.
|
|
85
|
-
*/
|
|
86
|
-
type CreateRequest = TCreateRequest;
|
|
87
|
-
/**
|
|
88
|
-
* Type alias to {@link firebase-admin.auth#CreateTenantRequest}.
|
|
89
|
-
*/
|
|
90
|
-
type CreateTenantRequest = TCreateTenantRequest;
|
|
91
|
-
/**
|
|
92
|
-
* Type alias to {@link firebase-admin.auth#DecodedIdToken}.
|
|
93
|
-
*/
|
|
94
|
-
type DecodedIdToken = TDecodedIdToken;
|
|
95
|
-
/** @alpha */
|
|
96
|
-
type DecodedAuthBlockingToken = TDecodedAuthBlockingToken;
|
|
97
|
-
/**
|
|
98
|
-
* Type alias to {@link firebase-admin.auth#DeleteUsersResult}.
|
|
99
|
-
*/
|
|
100
|
-
type DeleteUsersResult = TDeleteUsersResult;
|
|
101
|
-
/**
|
|
102
|
-
* Type alias to {@link firebase-admin.auth#EmailIdentifier}.
|
|
103
|
-
*/
|
|
104
|
-
type EmailIdentifier = TEmailIdentifier;
|
|
105
|
-
/**
|
|
106
|
-
* Type alias to {@link firebase-admin.auth#EmailSignInProviderConfig}.
|
|
107
|
-
*/
|
|
108
|
-
type EmailSignInProviderConfig = TEmailSignInProviderConfig;
|
|
109
|
-
/**
|
|
110
|
-
* Type alias to {@link firebase-admin.auth#GetUsersResult}.
|
|
111
|
-
*/
|
|
112
|
-
type GetUsersResult = TGetUsersResult;
|
|
113
|
-
/**
|
|
114
|
-
* Type alias to {@link firebase-admin.auth#HashAlgorithmType}.
|
|
115
|
-
*/
|
|
116
|
-
type HashAlgorithmType = THashAlgorithmType;
|
|
117
|
-
/**
|
|
118
|
-
* Type alias to {@link firebase-admin.auth#ListProviderConfigResults}.
|
|
119
|
-
*/
|
|
120
|
-
type ListProviderConfigResults = TListProviderConfigResults;
|
|
121
|
-
/**
|
|
122
|
-
* Type alias to {@link firebase-admin.auth#ListTenantsResult}.
|
|
123
|
-
*/
|
|
124
|
-
type ListTenantsResult = TListTenantsResult;
|
|
125
|
-
/**
|
|
126
|
-
* Type alias to {@link firebase-admin.auth#ListUsersResult}.
|
|
127
|
-
*/
|
|
128
|
-
type ListUsersResult = TListUsersResult;
|
|
129
|
-
/**
|
|
130
|
-
* Type alias to {@link firebase-admin.auth#MultiFactorCreateSettings}.
|
|
131
|
-
*/
|
|
132
|
-
type MultiFactorCreateSettings = TMultiFactorCreateSettings;
|
|
133
|
-
/**
|
|
134
|
-
* Type alias to {@link firebase-admin.auth#MultiFactorConfig}.
|
|
135
|
-
*/
|
|
136
|
-
type MultiFactorConfig = TMultiFactorConfig;
|
|
137
|
-
/**
|
|
138
|
-
* Type alias to {@link firebase-admin.auth#MultiFactorConfigState}.
|
|
139
|
-
*/
|
|
140
|
-
type MultiFactorConfigState = TMultiFactorConfigState;
|
|
141
|
-
/**
|
|
142
|
-
* Type alias to {@link firebase-admin.auth#MultiFactorInfo}.
|
|
143
|
-
*/
|
|
144
|
-
type MultiFactorInfo = TMultiFactorInfo;
|
|
145
|
-
/**
|
|
146
|
-
* Type alias to {@link firebase-admin.auth#MultiFactorUpdateSettings}.
|
|
147
|
-
*/
|
|
148
|
-
type MultiFactorUpdateSettings = TMultiFactorUpdateSettings;
|
|
149
|
-
/**
|
|
150
|
-
* Type alias to {@link firebase-admin.auth#MultiFactorSettings}.
|
|
151
|
-
*/
|
|
152
|
-
type MultiFactorSettings = TMultiFactorSettings;
|
|
153
|
-
/**
|
|
154
|
-
* Type alias to {@link firebase-admin.auth#OIDCAuthProviderConfig}.
|
|
155
|
-
*/
|
|
156
|
-
type OIDCAuthProviderConfig = TOIDCAuthProviderConfig;
|
|
157
|
-
/**
|
|
158
|
-
* Type alias to {@link firebase-admin.auth#OIDCUpdateAuthProviderRequest}.
|
|
159
|
-
*/
|
|
160
|
-
type OIDCUpdateAuthProviderRequest = TOIDCUpdateAuthProviderRequest;
|
|
161
|
-
/**
|
|
162
|
-
* Type alias to {@link firebase-admin.auth#PhoneIdentifier}.
|
|
163
|
-
*/
|
|
164
|
-
type PhoneIdentifier = TPhoneIdentifier;
|
|
165
|
-
/**
|
|
166
|
-
* Type alias to {@link firebase-admin.auth#PhoneMultiFactorInfo}.
|
|
167
|
-
*/
|
|
168
|
-
type PhoneMultiFactorInfo = TPhoneMultiFactorInfo;
|
|
169
|
-
/**
|
|
170
|
-
* Type alias to {@link firebase-admin.auth#ProviderIdentifier}.
|
|
171
|
-
*/
|
|
172
|
-
type ProviderIdentifier = TProviderIdentifier;
|
|
173
|
-
/**
|
|
174
|
-
* Type alias to {@link firebase-admin.auth#SAMLAuthProviderConfig}.
|
|
175
|
-
*/
|
|
176
|
-
type SAMLAuthProviderConfig = TSAMLAuthProviderConfig;
|
|
177
|
-
/**
|
|
178
|
-
* Type alias to {@link firebase-admin.auth#SAMLUpdateAuthProviderRequest}.
|
|
179
|
-
*/
|
|
180
|
-
type SAMLUpdateAuthProviderRequest = TSAMLUpdateAuthProviderRequest;
|
|
181
|
-
/**
|
|
182
|
-
* Type alias to {@link firebase-admin.auth#SessionCookieOptions}.
|
|
183
|
-
*/
|
|
184
|
-
type SessionCookieOptions = TSessionCookieOptions;
|
|
185
|
-
/**
|
|
186
|
-
* Type alias to {@link firebase-admin.auth#Tenant}.
|
|
187
|
-
*/
|
|
188
|
-
type Tenant = TTenant;
|
|
189
|
-
/**
|
|
190
|
-
* Type alias to {@link firebase-admin.auth#TenantAwareAuth}.
|
|
191
|
-
*/
|
|
192
|
-
type TenantAwareAuth = TTenantAwareAuth;
|
|
193
|
-
/**
|
|
194
|
-
* Type alias to {@link firebase-admin.auth#TenantManager}.
|
|
195
|
-
*/
|
|
196
|
-
type TenantManager = TTenantManager;
|
|
197
|
-
/**
|
|
198
|
-
* Type alias to {@link firebase-admin.auth#UidIdentifier}.
|
|
199
|
-
*/
|
|
200
|
-
type UidIdentifier = TUidIdentifier;
|
|
201
|
-
/**
|
|
202
|
-
* Type alias to {@link firebase-admin.auth#UpdateAuthProviderRequest}.
|
|
203
|
-
*/
|
|
204
|
-
type UpdateAuthProviderRequest = TUpdateAuthProviderRequest;
|
|
205
|
-
/**
|
|
206
|
-
* Type alias to {@link firebase-admin.auth#UpdateMultiFactorInfoRequest}.
|
|
207
|
-
*/
|
|
208
|
-
type UpdateMultiFactorInfoRequest = TUpdateMultiFactorInfoRequest;
|
|
209
|
-
/**
|
|
210
|
-
* Type alias to {@link firebase-admin.auth#UpdatePhoneMultiFactorInfoRequest}.
|
|
211
|
-
*/
|
|
212
|
-
type UpdatePhoneMultiFactorInfoRequest = TUpdatePhoneMultiFactorInfoRequest;
|
|
213
|
-
/**
|
|
214
|
-
* Type alias to {@link firebase-admin.auth#UpdateRequest}.
|
|
215
|
-
*/
|
|
216
|
-
type UpdateRequest = TUpdateRequest;
|
|
217
|
-
/**
|
|
218
|
-
* Type alias to {@link firebase-admin.auth#UpdateTenantRequest}.
|
|
219
|
-
*/
|
|
220
|
-
type UpdateTenantRequest = TUpdateTenantRequest;
|
|
221
|
-
/**
|
|
222
|
-
* Type alias to {@link firebase-admin.auth#UserIdentifier}.
|
|
223
|
-
*/
|
|
224
|
-
type UserIdentifier = TUserIdentifier;
|
|
225
|
-
/**
|
|
226
|
-
* Type alias to {@link firebase-admin.auth#UserImportOptions}.
|
|
227
|
-
*/
|
|
228
|
-
type UserImportOptions = TUserImportOptions;
|
|
229
|
-
/**
|
|
230
|
-
* Type alias to {@link firebase-admin.auth#UserImportRecord}.
|
|
231
|
-
*/
|
|
232
|
-
type UserImportRecord = TUserImportRecord;
|
|
233
|
-
/**
|
|
234
|
-
* Type alias to {@link firebase-admin.auth#UserImportResult}.
|
|
235
|
-
*/
|
|
236
|
-
type UserImportResult = TUserImportResult;
|
|
237
|
-
/**
|
|
238
|
-
* Type alias to {@link firebase-admin.auth#UserInfo}.
|
|
239
|
-
*/
|
|
240
|
-
type UserInfo = TUserInfo;
|
|
241
|
-
/**
|
|
242
|
-
* Type alias to {@link firebase-admin.auth#UserMetadata}.
|
|
243
|
-
*/
|
|
244
|
-
type UserMetadata = TUserMetadata;
|
|
245
|
-
/**
|
|
246
|
-
* Type alias to {@link firebase-admin.auth#UserMetadataRequest}.
|
|
247
|
-
*/
|
|
248
|
-
type UserMetadataRequest = TUserMetadataRequest;
|
|
249
|
-
/**
|
|
250
|
-
* Type alias to {@link firebase-admin.auth#UserProviderRequest}.
|
|
251
|
-
*/
|
|
252
|
-
type UserProviderRequest = TUserProviderRequest;
|
|
253
|
-
/**
|
|
254
|
-
* Type alias to {@link firebase-admin.auth#UserRecord}.
|
|
255
|
-
*/
|
|
256
|
-
type UserRecord = TUserRecord;
|
|
257
|
-
}
|