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/index.d.ts
CHANGED
package/lib/utils/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin
|
|
1
|
+
/*! firebase-admin v14.0.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
4
|
* @license
|
|
@@ -36,7 +36,7 @@ let sdkVersion;
|
|
|
36
36
|
// TODO: Move to firebase-admin/app as an internal member.
|
|
37
37
|
function getSdkVersion() {
|
|
38
38
|
if (!sdkVersion) {
|
|
39
|
-
const { version } = require('../../package.json');
|
|
39
|
+
const { version } = require('../../package.json');
|
|
40
40
|
sdkVersion = version;
|
|
41
41
|
}
|
|
42
42
|
return sdkVersion;
|
package/lib/utils/jwt.d.ts
CHANGED
package/lib/utils/jwt.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin
|
|
1
|
+
/*! firebase-admin v14.0.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
4
|
* Copyright 2021 Google LLC
|
|
@@ -312,7 +312,6 @@ class JwtError extends Error {
|
|
|
312
312
|
super(message);
|
|
313
313
|
this.code = code;
|
|
314
314
|
this.message = message;
|
|
315
|
-
this.__proto__ = JwtError.prototype;
|
|
316
315
|
}
|
|
317
316
|
}
|
|
318
317
|
exports.JwtError = JwtError;
|
package/lib/utils/validator.d.ts
CHANGED
package/lib/utils/validator.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "firebase-admin",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.0.0",
|
|
4
4
|
"description": "Firebase admin SDK for Node.js",
|
|
5
5
|
"author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"homepage": "https://firebase.google.com/",
|
|
8
8
|
"engines": {
|
|
9
|
-
"node": ">=
|
|
9
|
+
"node": ">=22"
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|
|
12
12
|
"build": "gulp build",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"test:unit": "mocha test/unit/*.spec.ts --require ts-node/register",
|
|
19
19
|
"test:integration": "mocha test/integration/*.ts --slow 5000 --timeout 20000 --require ts-node/register",
|
|
20
20
|
"test:coverage": "nyc npm run test:unit",
|
|
21
|
-
"lint:src": "eslint src/
|
|
22
|
-
"lint:src:fix": "eslint src/ --
|
|
23
|
-
"lint:test": "eslint test/
|
|
24
|
-
"lint:test:fix": "eslint test/ --
|
|
21
|
+
"lint:src": "eslint src/",
|
|
22
|
+
"lint:src:fix": "eslint src/ --fix",
|
|
23
|
+
"lint:test": "eslint test/",
|
|
24
|
+
"lint:test:fix": "eslint test/ --fix",
|
|
25
25
|
"apidocs": "run-s api-extractor:local api-documenter",
|
|
26
26
|
"api-extractor": "node generate-reports.js",
|
|
27
27
|
"api-extractor:local": "npm run build && node generate-reports.js --local",
|
|
@@ -97,9 +97,6 @@
|
|
|
97
97
|
"installations": [
|
|
98
98
|
"lib/installations"
|
|
99
99
|
],
|
|
100
|
-
"instance-id": [
|
|
101
|
-
"lib/instance-id"
|
|
102
|
-
],
|
|
103
100
|
"machine-learning": [
|
|
104
101
|
"lib/machine-learning"
|
|
105
102
|
],
|
|
@@ -177,11 +174,6 @@
|
|
|
177
174
|
"require": "./lib/installations/index.js",
|
|
178
175
|
"import": "./lib/esm/installations/index.js"
|
|
179
176
|
},
|
|
180
|
-
"./instance-id": {
|
|
181
|
-
"types": "./lib/instance-id/index.d.ts",
|
|
182
|
-
"require": "./lib/instance-id/index.js",
|
|
183
|
-
"import": "./lib/esm/instance-id/index.js"
|
|
184
|
-
},
|
|
185
177
|
"./machine-learning": {
|
|
186
178
|
"types": "./lib/machine-learning/index.d.ts",
|
|
187
179
|
"require": "./lib/machine-learning/index.js",
|
|
@@ -215,23 +207,24 @@
|
|
|
215
207
|
},
|
|
216
208
|
"dependencies": {
|
|
217
209
|
"@fastify/busboy": "^3.0.0",
|
|
218
|
-
"@firebase/database-compat": "^2.
|
|
219
|
-
"@firebase/database-types": "^1.0.
|
|
210
|
+
"@firebase/database-compat": "^2.1.4",
|
|
211
|
+
"@firebase/database-types": "^1.0.20",
|
|
220
212
|
"farmhash-modern": "^1.1.0",
|
|
221
213
|
"fast-deep-equal": "^3.1.1",
|
|
222
|
-
"google-auth-library": "^10.6.
|
|
214
|
+
"google-auth-library": "^10.6.2",
|
|
223
215
|
"jsonwebtoken": "^9.0.0",
|
|
224
|
-
"jwks-rsa": "^
|
|
216
|
+
"jwks-rsa": "^4.0.1"
|
|
225
217
|
},
|
|
226
218
|
"optionalDependencies": {
|
|
227
|
-
"@google-cloud/firestore": "^
|
|
219
|
+
"@google-cloud/firestore": "^8.6.0",
|
|
228
220
|
"@google-cloud/storage": "^7.19.0"
|
|
229
221
|
},
|
|
230
222
|
"devDependencies": {
|
|
223
|
+
"@eslint/js": "^10.0.1",
|
|
231
224
|
"@firebase/api-documenter": "^0.5.0",
|
|
232
|
-
"@firebase/app-compat": "^0.
|
|
233
|
-
"@firebase/auth-compat": "^0.6.
|
|
234
|
-
"@firebase/auth-types": "^0.13.
|
|
225
|
+
"@firebase/app-compat": "^0.5.12",
|
|
226
|
+
"@firebase/auth-compat": "^0.6.6",
|
|
227
|
+
"@firebase/auth-types": "^0.13.1",
|
|
235
228
|
"@microsoft/api-extractor": "^7.11.2",
|
|
236
229
|
"@types/bcrypt": "^6.0.0",
|
|
237
230
|
"@types/chai": "^4.0.0",
|
|
@@ -242,13 +235,13 @@
|
|
|
242
235
|
"@types/minimist": "^1.2.2",
|
|
243
236
|
"@types/mocha": "^10.0.0",
|
|
244
237
|
"@types/nock": "^11.1.0",
|
|
245
|
-
"@types/node": "^25.
|
|
238
|
+
"@types/node": "^25.7.0",
|
|
246
239
|
"@types/request": "^2.47.0",
|
|
247
240
|
"@types/request-promise": "^4.1.41",
|
|
248
|
-
"@types/sinon": "^
|
|
241
|
+
"@types/sinon": "^21.0.1",
|
|
249
242
|
"@types/sinon-chai": "^3.0.0",
|
|
250
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
251
|
-
"@typescript-eslint/parser": "^8.
|
|
243
|
+
"@typescript-eslint/eslint-plugin": "^8.59.3",
|
|
244
|
+
"@typescript-eslint/parser": "^8.59.3",
|
|
252
245
|
"bcrypt": "^6.0.0",
|
|
253
246
|
"chai": "^4.2.0",
|
|
254
247
|
"chai-as-promised": "^7.0.0",
|
|
@@ -256,8 +249,9 @@
|
|
|
256
249
|
"chalk": "^4.1.1",
|
|
257
250
|
"child-process-promise": "^2.2.1",
|
|
258
251
|
"del": "^6.0.0",
|
|
259
|
-
"eslint": "^
|
|
252
|
+
"eslint": "^10.3.0",
|
|
260
253
|
"firebase-token-generator": "^2.0.0",
|
|
254
|
+
"globals": "^17.6.0",
|
|
261
255
|
"gulp": "^5.0.0",
|
|
262
256
|
"gulp-filter": "^7.0.0",
|
|
263
257
|
"gulp-header": "^2.0.9",
|
|
@@ -267,16 +261,17 @@
|
|
|
267
261
|
"minimist": "^1.2.6",
|
|
268
262
|
"mocha": "^11.0.0",
|
|
269
263
|
"mz": "^2.7.0",
|
|
270
|
-
"nock": "^
|
|
264
|
+
"nock": "^14.0.15",
|
|
271
265
|
"npm-run-all": "^4.1.5",
|
|
272
266
|
"nyc": "^17.0.0",
|
|
273
267
|
"request": "^2.75.0",
|
|
274
268
|
"request-promise": "^4.1.1",
|
|
275
269
|
"run-sequence": "^2.2.1",
|
|
276
|
-
"sinon": "^
|
|
270
|
+
"sinon": "^22.0.0",
|
|
277
271
|
"sinon-chai": "^3.0.0",
|
|
278
272
|
"ts-node": "^10.2.0",
|
|
279
273
|
"typescript": "^5.7.3",
|
|
274
|
+
"typescript-eslint": "^8.59.3",
|
|
280
275
|
"yargs": "^17.0.1"
|
|
281
276
|
}
|
|
282
277
|
}
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
/*! firebase-admin v13.10.0 */
|
|
2
|
-
/*!
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright 2017 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
|
-
import { AppStore } from './lifecycle';
|
|
19
|
-
import { app, appCheck, auth, messaging, machineLearning, storage, firestore, database, instanceId, installations, projectManagement, securityRules, remoteConfig, AppOptions } from '../firebase-namespace-api';
|
|
20
|
-
import { cert, refreshToken, applicationDefault } from './credential-factory';
|
|
21
|
-
import App = app.App;
|
|
22
|
-
import AppCheck = appCheck.AppCheck;
|
|
23
|
-
import Auth = auth.Auth;
|
|
24
|
-
import Database = database.Database;
|
|
25
|
-
import Firestore = firestore.Firestore;
|
|
26
|
-
import Installations = installations.Installations;
|
|
27
|
-
import InstanceId = instanceId.InstanceId;
|
|
28
|
-
import MachineLearning = machineLearning.MachineLearning;
|
|
29
|
-
import Messaging = messaging.Messaging;
|
|
30
|
-
import ProjectManagement = projectManagement.ProjectManagement;
|
|
31
|
-
import RemoteConfig = remoteConfig.RemoteConfig;
|
|
32
|
-
import SecurityRules = securityRules.SecurityRules;
|
|
33
|
-
import Storage = storage.Storage;
|
|
34
|
-
export interface FirebaseServiceNamespace<T> {
|
|
35
|
-
(app?: App): T;
|
|
36
|
-
[key: string]: any;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Internals of a FirebaseNamespace instance.
|
|
40
|
-
*/
|
|
41
|
-
export declare class FirebaseNamespaceInternals {
|
|
42
|
-
private readonly appStore;
|
|
43
|
-
constructor(appStore: AppStore);
|
|
44
|
-
/**
|
|
45
|
-
* Initializes the App instance.
|
|
46
|
-
*
|
|
47
|
-
* @param options - Optional options for the App instance. If none present will try to initialize
|
|
48
|
-
* from the FIREBASE_CONFIG environment variable. If the environment variable contains a string
|
|
49
|
-
* that starts with '{' it will be parsed as JSON, otherwise it will be assumed to be pointing
|
|
50
|
-
* to a file.
|
|
51
|
-
* @param appName - Optional name of the FirebaseApp instance.
|
|
52
|
-
*
|
|
53
|
-
* @returns A new App instance.
|
|
54
|
-
*/
|
|
55
|
-
initializeApp(options?: AppOptions, appName?: string): App;
|
|
56
|
-
/**
|
|
57
|
-
* Returns the App instance with the provided name (or the default App instance
|
|
58
|
-
* if no name is provided).
|
|
59
|
-
*
|
|
60
|
-
* @param appName - Optional name of the FirebaseApp instance to return.
|
|
61
|
-
* @returns The App instance which has the provided name.
|
|
62
|
-
*/
|
|
63
|
-
app(appName?: string): App;
|
|
64
|
-
get apps(): App[];
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Global Firebase context object.
|
|
68
|
-
*/
|
|
69
|
-
export declare class FirebaseNamespace {
|
|
70
|
-
__esModule: boolean;
|
|
71
|
-
credential: {
|
|
72
|
-
cert: typeof cert;
|
|
73
|
-
refreshToken: typeof refreshToken;
|
|
74
|
-
applicationDefault: typeof applicationDefault;
|
|
75
|
-
};
|
|
76
|
-
SDK_VERSION: string;
|
|
77
|
-
INTERNAL: FirebaseNamespaceInternals;
|
|
78
|
-
Promise: any;
|
|
79
|
-
constructor(appStore?: AppStore);
|
|
80
|
-
/**
|
|
81
|
-
* Gets the `Auth` service namespace. The returned namespace can be used to get the
|
|
82
|
-
* `Auth` service for the default app or an explicitly specified app.
|
|
83
|
-
*/
|
|
84
|
-
get auth(): FirebaseServiceNamespace<Auth>;
|
|
85
|
-
/**
|
|
86
|
-
* Gets the `Database` service namespace. The returned namespace can be used to get the
|
|
87
|
-
* `Database` service for the default app or an explicitly specified app.
|
|
88
|
-
*/
|
|
89
|
-
get database(): FirebaseServiceNamespace<Database>;
|
|
90
|
-
/**
|
|
91
|
-
* Gets the `Messaging` service namespace. The returned namespace can be used to get the
|
|
92
|
-
* `Messaging` service for the default app or an explicitly specified app.
|
|
93
|
-
*/
|
|
94
|
-
get messaging(): FirebaseServiceNamespace<Messaging>;
|
|
95
|
-
/**
|
|
96
|
-
* Gets the `Storage` service namespace. The returned namespace can be used to get the
|
|
97
|
-
* `Storage` service for the default app or an explicitly specified app.
|
|
98
|
-
*/
|
|
99
|
-
get storage(): FirebaseServiceNamespace<Storage>;
|
|
100
|
-
/**
|
|
101
|
-
* Gets the `Firestore` service namespace. The returned namespace can be used to get the
|
|
102
|
-
* `Firestore` service for the default app or an explicitly specified app.
|
|
103
|
-
*/
|
|
104
|
-
get firestore(): FirebaseServiceNamespace<Firestore>;
|
|
105
|
-
/**
|
|
106
|
-
* Gets the `MachineLearning` service namespace. The returned namespace can be
|
|
107
|
-
* used to get the `MachineLearning` service for the default app or an
|
|
108
|
-
* explicityly specified app.
|
|
109
|
-
*/
|
|
110
|
-
get machineLearning(): FirebaseServiceNamespace<MachineLearning>;
|
|
111
|
-
/**
|
|
112
|
-
* Gets the `Installations` service namespace. The returned namespace can be used to get the
|
|
113
|
-
* `Installations` service for the default app or an explicitly specified app.
|
|
114
|
-
*/
|
|
115
|
-
get installations(): FirebaseServiceNamespace<Installations>;
|
|
116
|
-
/**
|
|
117
|
-
* Gets the `InstanceId` service namespace. The returned namespace can be used to get the
|
|
118
|
-
* `Instance` service for the default app or an explicitly specified app.
|
|
119
|
-
*/
|
|
120
|
-
get instanceId(): FirebaseServiceNamespace<InstanceId>;
|
|
121
|
-
/**
|
|
122
|
-
* Gets the `ProjectManagement` service namespace. The returned namespace can be used to get the
|
|
123
|
-
* `ProjectManagement` service for the default app or an explicitly specified app.
|
|
124
|
-
*/
|
|
125
|
-
get projectManagement(): FirebaseServiceNamespace<ProjectManagement>;
|
|
126
|
-
/**
|
|
127
|
-
* Gets the `SecurityRules` service namespace. The returned namespace can be used to get the
|
|
128
|
-
* `SecurityRules` service for the default app or an explicitly specified app.
|
|
129
|
-
*/
|
|
130
|
-
get securityRules(): FirebaseServiceNamespace<SecurityRules>;
|
|
131
|
-
/**
|
|
132
|
-
* Gets the `RemoteConfig` service namespace. The returned namespace can be used to get the
|
|
133
|
-
* `RemoteConfig` service for the default app or an explicitly specified app.
|
|
134
|
-
*/
|
|
135
|
-
get remoteConfig(): FirebaseServiceNamespace<RemoteConfig>;
|
|
136
|
-
/**
|
|
137
|
-
* Gets the `AppCheck` service namespace. The returned namespace can be used to get the
|
|
138
|
-
* `AppCheck` service for the default app or an explicitly specified app.
|
|
139
|
-
*/
|
|
140
|
-
get appCheck(): FirebaseServiceNamespace<AppCheck>;
|
|
141
|
-
/**
|
|
142
|
-
* Initializes the FirebaseApp instance.
|
|
143
|
-
*
|
|
144
|
-
* @param options - Optional options for the FirebaseApp instance.
|
|
145
|
-
* If none present will try to initialize from the FIREBASE_CONFIG environment variable.
|
|
146
|
-
* If the environment variable contains a string that starts with '{' it will be parsed as JSON,
|
|
147
|
-
* otherwise it will be assumed to be pointing to a file.
|
|
148
|
-
* @param appName - Optional name of the FirebaseApp instance.
|
|
149
|
-
*
|
|
150
|
-
* @returns A new FirebaseApp instance.
|
|
151
|
-
*/
|
|
152
|
-
initializeApp(options?: AppOptions, appName?: string): App;
|
|
153
|
-
/**
|
|
154
|
-
* Returns the FirebaseApp instance with the provided name (or the default FirebaseApp instance
|
|
155
|
-
* if no name is provided).
|
|
156
|
-
*
|
|
157
|
-
* @param appName - Optional name of the FirebaseApp instance to return.
|
|
158
|
-
* @returns The FirebaseApp instance which has the provided name.
|
|
159
|
-
*/
|
|
160
|
-
app(appName?: string): App;
|
|
161
|
-
get apps(): App[];
|
|
162
|
-
private ensureApp;
|
|
163
|
-
}
|