firebase-admin 13.9.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 +48 -17
- 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 +71 -47
- package/lib/app-check/app-check-api.d.ts +19 -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 +7 -3
- 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 +36 -26
- 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 +4 -4
- 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 +25 -33
- 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,18 +0,0 @@
|
|
|
1
|
-
/*! firebase-admin v13.9.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,141 +0,0 @@
|
|
|
1
|
-
/*! firebase-admin v13.9.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 { ExplicitParameterValue as TExplicitParameterValue, InAppDefaultValue as TInAppDefaultValue, RolloutValue as TRolloutValue, PersonalizationValue as TPersonalizationValue, ExperimentVariantExplicitValue as TExperimentVariantExplicitValue, ExperimentVariantNoChange as TExperimentVariantNoChange, ExperimentVariantValue as TExperimentVariantValue, ExperimentValue as TExperimentValue, RolloutParameterValue as TRolloutParameterValue, PersonalizationParameterValue as TPersonalizationParameterValue, ExperimentParameterValue as TExperimentParameterValue, ListVersionsOptions as TListVersionsOptions, ListVersionsResult as TListVersionsResult, ParameterValueType as TParameterValueType, RemoteConfigCondition as TRemoteConfigCondition, RemoteConfigParameter as TRemoteConfigParameter, RemoteConfigParameterGroup as TRemoteConfigParameterGroup, RemoteConfigParameterValue as TRemoteConfigParameterValue, RemoteConfigTemplate as TRemoteConfigTemplate, RemoteConfigUser as TRemoteConfigUser, TagColor as TTagColor, Version as TVersion } from './remote-config-api';
|
|
19
|
-
import { RemoteConfig as TRemoteConfig } from './remote-config';
|
|
20
|
-
/**
|
|
21
|
-
* Gets the {@link firebase-admin.remote-config#RemoteConfig} service for the
|
|
22
|
-
* default app or a given app.
|
|
23
|
-
*
|
|
24
|
-
* `admin.remoteConfig()` can be called with no arguments to access the default
|
|
25
|
-
* app's `RemoteConfig` service or as `admin.remoteConfig(app)` to access the
|
|
26
|
-
* `RemoteConfig` service associated with a specific app.
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```javascript
|
|
30
|
-
* // Get the `RemoteConfig` service for the default app
|
|
31
|
-
* var defaultRemoteConfig = admin.remoteConfig();
|
|
32
|
-
* ```
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* ```javascript
|
|
36
|
-
* // Get the `RemoteConfig` service for a given app
|
|
37
|
-
* var otherRemoteConfig = admin.remoteConfig(otherApp);
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* @param app - Optional app for which to return the `RemoteConfig` service.
|
|
41
|
-
* If not provided, the default `RemoteConfig` service is returned.
|
|
42
|
-
*
|
|
43
|
-
* @returns The default `RemoteConfig` service if no
|
|
44
|
-
* app is provided, or the `RemoteConfig` service associated with the provided
|
|
45
|
-
* app.
|
|
46
|
-
*/
|
|
47
|
-
export declare function remoteConfig(app?: App): remoteConfig.RemoteConfig;
|
|
48
|
-
export declare namespace remoteConfig {
|
|
49
|
-
/**
|
|
50
|
-
* Type alias to {@link firebase-admin.remote-config#ExplicitParameterValue}.
|
|
51
|
-
*/
|
|
52
|
-
type ExplicitParameterValue = TExplicitParameterValue;
|
|
53
|
-
/**
|
|
54
|
-
* Type alias to {@link firebase-admin.remote-config#InAppDefaultValue}.
|
|
55
|
-
*/
|
|
56
|
-
type InAppDefaultValue = TInAppDefaultValue;
|
|
57
|
-
/**
|
|
58
|
-
* Type alias to {@link firebase-admin.remote-config#RolloutValue}.
|
|
59
|
-
*/
|
|
60
|
-
type RolloutValue = TRolloutValue;
|
|
61
|
-
/**
|
|
62
|
-
* Type alias to {@link firebase-admin.remote-config#PersonalizationValue}.
|
|
63
|
-
*/
|
|
64
|
-
type PersonalizationValue = TPersonalizationValue;
|
|
65
|
-
/**
|
|
66
|
-
* Type alias to {@link firebase-admin.remote-config#ExperimentVariantExplicitValue}.
|
|
67
|
-
*/
|
|
68
|
-
type ExperimentVariantExplicitValue = TExperimentVariantExplicitValue;
|
|
69
|
-
/**
|
|
70
|
-
* Type alias to {@link firebase-admin.remote-config#ExperimentVariantNoChange}.
|
|
71
|
-
*/
|
|
72
|
-
type ExperimentVariantNoChange = TExperimentVariantNoChange;
|
|
73
|
-
/**
|
|
74
|
-
* Type alias to {@link firebase-admin.remote-config#ExperimentVariantValue}.
|
|
75
|
-
*/
|
|
76
|
-
type ExperimentVariantValue = TExperimentVariantValue;
|
|
77
|
-
/**
|
|
78
|
-
* Type alias to {@link firebase-admin.remote-config#ExperimentValue}.
|
|
79
|
-
*/
|
|
80
|
-
type ExperimentValue = TExperimentValue;
|
|
81
|
-
/**
|
|
82
|
-
* Type alias to {@link firebase-admin.remote-config#RolloutParameterValue}.
|
|
83
|
-
*/
|
|
84
|
-
type RolloutParameterValue = TRolloutParameterValue;
|
|
85
|
-
/**
|
|
86
|
-
* Type alias to {@link firebase-admin.remote-config#PersonalizationParameterValue}.
|
|
87
|
-
*/
|
|
88
|
-
type PersonalizationParameterValue = TPersonalizationParameterValue;
|
|
89
|
-
/**
|
|
90
|
-
* Type alias to {@link firebase-admin.remote-config#ExperimentParameterValue}.
|
|
91
|
-
*/
|
|
92
|
-
type ExperimentParameterValue = TExperimentParameterValue;
|
|
93
|
-
/**
|
|
94
|
-
* Type alias to {@link firebase-admin.remote-config#ListVersionsOptions}.
|
|
95
|
-
*/
|
|
96
|
-
type ListVersionsOptions = TListVersionsOptions;
|
|
97
|
-
/**
|
|
98
|
-
* Type alias to {@link firebase-admin.remote-config#ListVersionsResult}.
|
|
99
|
-
*/
|
|
100
|
-
type ListVersionsResult = TListVersionsResult;
|
|
101
|
-
/**
|
|
102
|
-
* Type alias to {@link firebase-admin.remote-config#ParameterValueType}.
|
|
103
|
-
*/
|
|
104
|
-
type ParameterValueType = TParameterValueType;
|
|
105
|
-
/**
|
|
106
|
-
* Type alias to {@link firebase-admin.remote-config#RemoteConfig}.
|
|
107
|
-
*/
|
|
108
|
-
type RemoteConfig = TRemoteConfig;
|
|
109
|
-
/**
|
|
110
|
-
* Type alias to {@link firebase-admin.remote-config#RemoteConfigCondition}.
|
|
111
|
-
*/
|
|
112
|
-
type RemoteConfigCondition = TRemoteConfigCondition;
|
|
113
|
-
/**
|
|
114
|
-
* Type alias to {@link firebase-admin.remote-config#RemoteConfigParameter}.
|
|
115
|
-
*/
|
|
116
|
-
type RemoteConfigParameter = TRemoteConfigParameter;
|
|
117
|
-
/**
|
|
118
|
-
* Type alias to {@link firebase-admin.remote-config#RemoteConfigParameterGroup}.
|
|
119
|
-
*/
|
|
120
|
-
type RemoteConfigParameterGroup = TRemoteConfigParameterGroup;
|
|
121
|
-
/**
|
|
122
|
-
* Type alias to {@link firebase-admin.remote-config#RemoteConfigParameterValue}.
|
|
123
|
-
*/
|
|
124
|
-
type RemoteConfigParameterValue = TRemoteConfigParameterValue;
|
|
125
|
-
/**
|
|
126
|
-
* Type alias to {@link firebase-admin.remote-config#RemoteConfigTemplate}.
|
|
127
|
-
*/
|
|
128
|
-
type RemoteConfigTemplate = TRemoteConfigTemplate;
|
|
129
|
-
/**
|
|
130
|
-
* Type alias to {@link firebase-admin.remote-config#RemoteConfigUser}.
|
|
131
|
-
*/
|
|
132
|
-
type RemoteConfigUser = TRemoteConfigUser;
|
|
133
|
-
/**
|
|
134
|
-
* Type alias to {@link firebase-admin.remote-config#TagColor}.
|
|
135
|
-
*/
|
|
136
|
-
type TagColor = TTagColor;
|
|
137
|
-
/**
|
|
138
|
-
* Type alias to {@link firebase-admin.remote-config#Version}.
|
|
139
|
-
*/
|
|
140
|
-
type Version = TVersion;
|
|
141
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/*! firebase-admin v13.9.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,21 +0,0 @@
|
|
|
1
|
-
/*! firebase-admin v13.9.0 */
|
|
2
|
-
/*!
|
|
3
|
-
* Copyright 2019 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 { PrefixedFirebaseError } from '../utils/error';
|
|
18
|
-
export type SecurityRulesErrorCode = 'already-exists' | 'authentication-error' | 'internal-error' | 'invalid-argument' | 'invalid-server-response' | 'not-found' | 'resource-exhausted' | 'service-unavailable' | 'unknown-error';
|
|
19
|
-
export declare class FirebaseSecurityRulesError extends PrefixedFirebaseError {
|
|
20
|
-
constructor(code: SecurityRulesErrorCode, message: string);
|
|
21
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/*! firebase-admin v13.9.0 */
|
|
2
|
-
"use strict";
|
|
3
|
-
/*!
|
|
4
|
-
* Copyright 2019 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 });
|
|
19
|
-
exports.FirebaseSecurityRulesError = void 0;
|
|
20
|
-
const error_1 = require("../utils/error");
|
|
21
|
-
class FirebaseSecurityRulesError extends error_1.PrefixedFirebaseError {
|
|
22
|
-
constructor(code, message) {
|
|
23
|
-
super('security-rules', code, message);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
exports.FirebaseSecurityRulesError = FirebaseSecurityRulesError;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/*! firebase-admin v13.9.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 { RulesFile as TRulesFile, Ruleset as TRuleset, RulesetMetadata as TRulesetMetadata, RulesetMetadataList as TRulesetMetadataList, SecurityRules as TSecurityRules } from './security-rules';
|
|
19
|
-
/**
|
|
20
|
-
* Gets the {@link firebase-admin.security-rules#SecurityRules} service for the default
|
|
21
|
-
* app or a given app.
|
|
22
|
-
*
|
|
23
|
-
* `admin.securityRules()` can be called with no arguments to access the
|
|
24
|
-
* default app's {@link firebase-admin.security-rules#SecurityRules}
|
|
25
|
-
* service, or as `admin.securityRules(app)` to access
|
|
26
|
-
* the {@link firebase-admin.security-rules#SecurityRules}
|
|
27
|
-
* service associated with a specific app.
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```javascript
|
|
31
|
-
* // Get the SecurityRules service for the default app
|
|
32
|
-
* var defaultSecurityRules = admin.securityRules();
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* ```javascript
|
|
37
|
-
* // Get the SecurityRules service for a given app
|
|
38
|
-
* var otherSecurityRules = admin.securityRules(otherApp);
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* @param app - Optional app to return the `SecurityRules` service
|
|
42
|
-
* for. If not provided, the default `SecurityRules` service
|
|
43
|
-
* is returned.
|
|
44
|
-
* @returns The default `SecurityRules` service if no app is provided, or the
|
|
45
|
-
* `SecurityRules` service associated with the provided app.
|
|
46
|
-
*/
|
|
47
|
-
export declare function securityRules(app?: App): securityRules.SecurityRules;
|
|
48
|
-
export declare namespace securityRules {
|
|
49
|
-
/**
|
|
50
|
-
* Type alias to {@link firebase-admin.security-rules#RulesFile}.
|
|
51
|
-
*/
|
|
52
|
-
type RulesFile = TRulesFile;
|
|
53
|
-
/**
|
|
54
|
-
* Type alias to {@link firebase-admin.security-rules#Ruleset}.
|
|
55
|
-
*/
|
|
56
|
-
type Ruleset = TRuleset;
|
|
57
|
-
/**
|
|
58
|
-
* Type alias to {@link firebase-admin.security-rules#RulesetMetadata}.
|
|
59
|
-
*/
|
|
60
|
-
type RulesetMetadata = TRulesetMetadata;
|
|
61
|
-
/**
|
|
62
|
-
* Type alias to {@link firebase-admin.security-rules#RulesetMetadataList}.
|
|
63
|
-
*/
|
|
64
|
-
type RulesetMetadataList = TRulesetMetadataList;
|
|
65
|
-
/**
|
|
66
|
-
* Type alias to {@link firebase-admin.security-rules#SecurityRules}.
|
|
67
|
-
*/
|
|
68
|
-
type SecurityRules = TSecurityRules;
|
|
69
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/*! firebase-admin v13.9.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,45 +0,0 @@
|
|
|
1
|
-
/*! firebase-admin v13.9.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 { Storage as TStorage } from './storage';
|
|
19
|
-
/**
|
|
20
|
-
* Gets the {@link firebase-admin.storage#Storage} service for the
|
|
21
|
-
* default app or a given app.
|
|
22
|
-
*
|
|
23
|
-
* `admin.storage()` can be called with no arguments to access the default
|
|
24
|
-
* app's `Storage` service or as `admin.storage(app)` to access the
|
|
25
|
-
* `Storage` service associated with a specific app.
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* ```javascript
|
|
29
|
-
* // Get the Storage service for the default app
|
|
30
|
-
* var defaultStorage = admin.storage();
|
|
31
|
-
* ```
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```javascript
|
|
35
|
-
* // Get the Storage service for a given app
|
|
36
|
-
* var otherStorage = admin.storage(otherApp);
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
export declare function storage(app?: App): storage.Storage;
|
|
40
|
-
export declare namespace storage {
|
|
41
|
-
/**
|
|
42
|
-
* Type alias to {@link firebase-admin.storage#Storage}.
|
|
43
|
-
*/
|
|
44
|
-
type Storage = TStorage;
|
|
45
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/*! firebase-admin v13.9.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 });
|