firebase-admin 13.6.1 → 13.8.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 +2 -1
- package/lib/app/core.d.ts +1 -1
- 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 +1 -1
- package/lib/app/credential.d.ts +1 -1
- package/lib/app/credential.js +1 -1
- package/lib/app/firebase-app.d.ts +1 -1
- package/lib/app/firebase-app.js +1 -1
- package/lib/app/firebase-namespace.d.ts +1 -1
- package/lib/app/firebase-namespace.js +1 -1
- package/lib/app/index.d.ts +1 -1
- package/lib/app/index.js +1 -1
- package/lib/app/lifecycle.d.ts +1 -1
- package/lib/app/lifecycle.js +1 -1
- package/lib/app-check/app-check-api-client-internal.d.ts +1 -1
- package/lib/app-check/app-check-api-client-internal.js +1 -1
- 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-namespace.d.ts +1 -1
- package/lib/app-check/app-check-namespace.js +1 -1
- package/lib/app-check/app-check.d.ts +1 -1
- package/lib/app-check/app-check.js +1 -1
- package/lib/app-check/index.d.ts +1 -1
- package/lib/app-check/index.js +1 -1
- package/lib/app-check/token-generator.d.ts +1 -1
- package/lib/app-check/token-generator.js +1 -1
- package/lib/app-check/token-verifier.d.ts +1 -1
- package/lib/app-check/token-verifier.js +1 -1
- package/lib/auth/action-code-settings-builder.d.ts +1 -1
- package/lib/auth/action-code-settings-builder.js +1 -1
- package/lib/auth/auth-api-request.d.ts +1 -1
- package/lib/auth/auth-api-request.js +1 -1
- package/lib/auth/auth-config.d.ts +1 -1
- package/lib/auth/auth-config.js +1 -1
- package/lib/auth/auth-namespace.d.ts +1 -1
- package/lib/auth/auth-namespace.js +1 -1
- package/lib/auth/auth.d.ts +1 -1
- package/lib/auth/auth.js +1 -1
- package/lib/auth/base-auth.d.ts +1 -1
- package/lib/auth/base-auth.js +1 -1
- package/lib/auth/identifier.d.ts +1 -1
- package/lib/auth/identifier.js +1 -1
- package/lib/auth/index.d.ts +1 -1
- package/lib/auth/index.js +1 -1
- 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 +1 -1
- package/lib/auth/tenant-manager.d.ts +1 -1
- package/lib/auth/tenant-manager.js +1 -1
- package/lib/auth/tenant.d.ts +1 -1
- package/lib/auth/tenant.js +1 -1
- package/lib/auth/token-generator.d.ts +1 -1
- package/lib/auth/token-generator.js +1 -1
- package/lib/auth/token-verifier.d.ts +1 -1
- package/lib/auth/token-verifier.js +1 -1
- package/lib/auth/user-import-builder.d.ts +1 -1
- package/lib/auth/user-import-builder.js +1 -1
- package/lib/auth/user-record.d.ts +1 -1
- package/lib/auth/user-record.js +1 -1
- 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 -1
- package/lib/data-connect/data-connect-api-client-internal.js +1 -1
- 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/index.d.ts +1 -1
- package/lib/data-connect/index.js +1 -1
- package/lib/data-connect/validate-admin-args.d.ts +1 -1
- package/lib/data-connect/validate-admin-args.js +1 -1
- package/lib/database/database-namespace.d.ts +1 -1
- package/lib/database/database-namespace.js +1 -1
- package/lib/database/database.d.ts +1 -1
- package/lib/database/database.js +1 -1
- package/lib/database/index.d.ts +1 -1
- package/lib/database/index.js +1 -1
- package/lib/default-namespace.d.ts +1 -1
- package/lib/default-namespace.js +1 -1
- package/lib/esm/phone-number-verification/index.js +4 -0
- package/lib/eventarc/cloudevent.d.ts +1 -1
- package/lib/eventarc/cloudevent.js +1 -1
- package/lib/eventarc/eventarc-client-internal.d.ts +1 -1
- package/lib/eventarc/eventarc-client-internal.js +1 -1
- package/lib/eventarc/eventarc-utils.d.ts +1 -1
- package/lib/eventarc/eventarc-utils.js +1 -1
- package/lib/eventarc/eventarc.d.ts +1 -1
- package/lib/eventarc/eventarc.js +1 -1
- package/lib/eventarc/index.d.ts +1 -1
- package/lib/eventarc/index.js +1 -1
- package/lib/extensions/extensions-api-client-internal.d.ts +1 -1
- package/lib/extensions/extensions-api-client-internal.js +1 -1
- 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 +1 -1
- package/lib/extensions/index.d.ts +1 -1
- package/lib/extensions/index.js +1 -1
- package/lib/firebase-namespace-api.d.ts +1 -1
- package/lib/firebase-namespace-api.js +1 -1
- package/lib/firestore/firestore-internal.d.ts +1 -1
- package/lib/firestore/firestore-internal.js +1 -1
- package/lib/firestore/firestore-namespace.d.ts +1 -1
- package/lib/firestore/firestore-namespace.js +1 -1
- package/lib/firestore/index.d.ts +1 -1
- package/lib/firestore/index.js +1 -1
- package/lib/functions/functions-api-client-internal.d.ts +1 -1
- package/lib/functions/functions-api-client-internal.js +1 -1
- 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 +1 -1
- package/lib/functions/index.d.ts +1 -1
- package/lib/functions/index.js +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/installations/index.d.ts +1 -1
- package/lib/installations/index.js +1 -1
- package/lib/installations/installations-namespace.d.ts +1 -1
- package/lib/installations/installations-namespace.js +1 -1
- package/lib/installations/installations-request-handler.d.ts +1 -1
- package/lib/installations/installations-request-handler.js +1 -1
- package/lib/installations/installations.d.ts +1 -1
- package/lib/installations/installations.js +1 -1
- package/lib/instance-id/index.d.ts +1 -1
- package/lib/instance-id/index.js +1 -1
- package/lib/instance-id/instance-id-namespace.d.ts +1 -1
- package/lib/instance-id/instance-id-namespace.js +1 -1
- package/lib/instance-id/instance-id.d.ts +1 -1
- package/lib/instance-id/instance-id.js +1 -1
- package/lib/machine-learning/index.d.ts +1 -1
- package/lib/machine-learning/index.js +1 -1
- package/lib/machine-learning/machine-learning-api-client.d.ts +1 -1
- package/lib/machine-learning/machine-learning-api-client.js +1 -1
- package/lib/machine-learning/machine-learning-namespace.d.ts +1 -1
- package/lib/machine-learning/machine-learning-namespace.js +1 -1
- package/lib/machine-learning/machine-learning-utils.d.ts +1 -1
- package/lib/machine-learning/machine-learning-utils.js +1 -1
- package/lib/machine-learning/machine-learning.d.ts +1 -1
- package/lib/machine-learning/machine-learning.js +1 -1
- package/lib/messaging/index.d.ts +1 -1
- package/lib/messaging/index.js +1 -1
- 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 +11 -1
- package/lib/messaging/messaging-api.js +1 -1
- package/lib/messaging/messaging-errors-internal.d.ts +1 -1
- package/lib/messaging/messaging-errors-internal.js +1 -1
- package/lib/messaging/messaging-internal.d.ts +1 -1
- package/lib/messaging/messaging-internal.js +3 -1
- package/lib/messaging/messaging-namespace.d.ts +1 -1
- package/lib/messaging/messaging-namespace.js +1 -1
- package/lib/messaging/messaging.d.ts +1 -1
- package/lib/messaging/messaging.js +1 -1
- package/lib/phone-number-verification/index.d.ts +50 -0
- package/lib/phone-number-verification/index.js +60 -0
- package/lib/phone-number-verification/phone-number-verification-api-client-internal.d.ts +48 -0
- package/lib/phone-number-verification/phone-number-verification-api-client-internal.js +52 -0
- package/lib/phone-number-verification/phone-number-verification-api.d.ts +72 -0
- package/lib/phone-number-verification/phone-number-verification-api.js +22 -0
- package/lib/phone-number-verification/phone-number-verification.d.ts +39 -0
- package/lib/phone-number-verification/phone-number-verification.js +54 -0
- package/lib/phone-number-verification/token-verifier.d.ts +35 -0
- package/lib/phone-number-verification/token-verifier.js +170 -0
- package/lib/project-management/android-app.d.ts +1 -1
- package/lib/project-management/android-app.js +1 -1
- package/lib/project-management/app-metadata.d.ts +1 -1
- package/lib/project-management/app-metadata.js +1 -1
- package/lib/project-management/index.d.ts +1 -1
- package/lib/project-management/index.js +1 -1
- package/lib/project-management/ios-app.d.ts +1 -1
- package/lib/project-management/ios-app.js +1 -1
- package/lib/project-management/project-management-api-request-internal.d.ts +1 -1
- package/lib/project-management/project-management-api-request-internal.js +1 -1
- package/lib/project-management/project-management-namespace.d.ts +1 -1
- package/lib/project-management/project-management-namespace.js +1 -1
- package/lib/project-management/project-management.d.ts +1 -1
- package/lib/project-management/project-management.js +1 -1
- package/lib/remote-config/condition-evaluator-internal.d.ts +1 -1
- package/lib/remote-config/condition-evaluator-internal.js +1 -1
- package/lib/remote-config/index.d.ts +2 -2
- package/lib/remote-config/index.js +1 -1
- 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 +1 -1
- package/lib/remote-config/remote-config-api-client-internal.js +1 -1
- package/lib/remote-config/remote-config-api.d.ts +115 -2
- package/lib/remote-config/remote-config-api.js +1 -1
- package/lib/remote-config/remote-config-namespace.d.ts +38 -2
- package/lib/remote-config/remote-config-namespace.js +1 -1
- package/lib/remote-config/remote-config.d.ts +1 -1
- package/lib/remote-config/remote-config.js +4 -2
- package/lib/security-rules/index.d.ts +1 -1
- package/lib/security-rules/index.js +1 -1
- package/lib/security-rules/security-rules-api-client-internal.d.ts +1 -1
- package/lib/security-rules/security-rules-api-client-internal.js +1 -1
- package/lib/security-rules/security-rules-internal.d.ts +1 -1
- package/lib/security-rules/security-rules-internal.js +1 -1
- package/lib/security-rules/security-rules-namespace.d.ts +1 -1
- package/lib/security-rules/security-rules-namespace.js +1 -1
- package/lib/security-rules/security-rules.d.ts +1 -1
- package/lib/security-rules/security-rules.js +1 -1
- package/lib/storage/index.d.ts +1 -1
- package/lib/storage/index.js +1 -1
- package/lib/storage/storage-namespace.d.ts +1 -1
- package/lib/storage/storage-namespace.js +1 -1
- package/lib/storage/storage.d.ts +1 -1
- package/lib/storage/storage.js +1 -1
- package/lib/storage/utils.d.ts +1 -1
- package/lib/storage/utils.js +1 -1
- package/lib/utils/api-request.d.ts +1 -1
- package/lib/utils/api-request.js +8 -2
- package/lib/utils/crypto-signer.d.ts +1 -1
- package/lib/utils/crypto-signer.js +1 -1
- package/lib/utils/deep-copy.d.ts +1 -1
- package/lib/utils/deep-copy.js +1 -1
- package/lib/utils/error.d.ts +1 -1
- package/lib/utils/error.js +1 -1
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/index.js +1 -1
- package/lib/utils/jwt.d.ts +2 -1
- package/lib/utils/jwt.js +4 -3
- package/lib/utils/validator.d.ts +1 -1
- package/lib/utils/validator.js +1 -1
- package/package.json +16 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.8.0 */
|
|
2
2
|
/*!
|
|
3
3
|
* Copyright 2020 Google LLC
|
|
4
4
|
*
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
*/
|
|
22
22
|
import { App } from '../app';
|
|
23
23
|
import { RemoteConfig } from './remote-config';
|
|
24
|
-
export { AndCondition, CustomSignalCondition, CustomSignalOperator, DefaultConfig, EvaluationContext, ExplicitParameterValue, FetchResponseData, GetServerTemplateOptions, InAppDefaultValue, InitServerTemplateOptions, ListVersionsOptions, ListVersionsResult, MicroPercentRange, NamedCondition, OneOfCondition, OrCondition, ParameterValueType, PercentConditionOperator, PercentCondition, PredefinedSignals, RemoteConfigCondition, RemoteConfigParameter, RemoteConfigParameterGroup, RemoteConfigParameterValue, RemoteConfigTemplate, RemoteConfigUser, ServerConfig, ServerTemplate, ServerTemplateData, ServerTemplateDataType, TagColor, UserProvidedSignals, Value, ValueSource, Version, } from './remote-config-api';
|
|
24
|
+
export { AndCondition, CustomSignalCondition, CustomSignalOperator, DefaultConfig, EvaluationContext, ExplicitParameterValue, FetchResponseData, GetServerTemplateOptions, InAppDefaultValue, InitServerTemplateOptions, ListVersionsOptions, ListVersionsResult, MicroPercentRange, NamedCondition, OneOfCondition, OrCondition, ParameterValueType, PercentConditionOperator, PercentCondition, PredefinedSignals, RemoteConfigCondition, RemoteConfigParameter, ExperimentParameterValue, ExperimentValue, ExperimentVariantExplicitValue, ExperimentVariantNoChange, ExperimentVariantValue, PersonalizationParameterValue, PersonalizationValue, RolloutParameterValue, RolloutValue, RemoteConfigParameterGroup, RemoteConfigParameterValue, RemoteConfigTemplate, RemoteConfigUser, ServerConfig, ServerTemplate, ServerTemplateData, ServerTemplateDataType, TagColor, UserProvidedSignals, Value, ValueSource, Version, } from './remote-config-api';
|
|
25
25
|
export { RemoteConfig, RemoteConfigFetchResponse } from './remote-config';
|
|
26
26
|
/**
|
|
27
27
|
* Gets the {@link RemoteConfig} service for the default app or a given app.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.8.0 */
|
|
2
2
|
/*!
|
|
3
3
|
* Copyright 2021 Google LLC
|
|
4
4
|
*
|
|
@@ -296,12 +296,125 @@ export interface InAppDefaultValue {
|
|
|
296
296
|
*/
|
|
297
297
|
useInAppDefault: boolean;
|
|
298
298
|
}
|
|
299
|
+
/**
|
|
300
|
+
* Interface representing a value that is linked to a Rollout.
|
|
301
|
+
*/
|
|
302
|
+
export interface RolloutValue {
|
|
303
|
+
/**
|
|
304
|
+
* The ID of the Rollout to which the value is linked.
|
|
305
|
+
*/
|
|
306
|
+
rolloutId: string;
|
|
307
|
+
/**
|
|
308
|
+
* The value that is being rolled out.
|
|
309
|
+
*/
|
|
310
|
+
value: string;
|
|
311
|
+
/**
|
|
312
|
+
* The rollout percentage representing the exposure of the rollout value in
|
|
313
|
+
* the target audience.
|
|
314
|
+
*/
|
|
315
|
+
percent: number;
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* Interface representing a value returned by Personalization.
|
|
319
|
+
*/
|
|
320
|
+
export interface PersonalizationValue {
|
|
321
|
+
/**
|
|
322
|
+
* The ID of the Personalization to which the value is linked.
|
|
323
|
+
*/
|
|
324
|
+
personalizationId: string;
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* Interface representing a specific variant value within an Experiment.
|
|
328
|
+
*/
|
|
329
|
+
export interface ExperimentVariantExplicitValue {
|
|
330
|
+
/**
|
|
331
|
+
* ID of the variant value within an Experiment.
|
|
332
|
+
*/
|
|
333
|
+
variantId: string;
|
|
334
|
+
/**
|
|
335
|
+
* Value of the variant within an Experiment.
|
|
336
|
+
*/
|
|
337
|
+
value: string;
|
|
338
|
+
/**
|
|
339
|
+
* Represents an unset `noChange` value. To set `noChange`, use
|
|
340
|
+
* `ExperimentVariantNoChange` instead.
|
|
341
|
+
*/
|
|
342
|
+
noChange?: never;
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* Represents a no-change variant value within an Experiment.
|
|
346
|
+
*/
|
|
347
|
+
export interface ExperimentVariantNoChange {
|
|
348
|
+
/**
|
|
349
|
+
* ID of the variant value within an Experiment.
|
|
350
|
+
*/
|
|
351
|
+
variantId: string;
|
|
352
|
+
/**
|
|
353
|
+
* Represents an unset value as only one of `noChange` or `value` can be set.
|
|
354
|
+
* To set a variant value, use `ExperimentVariantExplicitValue` instead.
|
|
355
|
+
*/
|
|
356
|
+
value?: never;
|
|
357
|
+
/**
|
|
358
|
+
* Represents a no-change variant value within an Experiment. If `true`,
|
|
359
|
+
* the variant served to the client is equal to the value against the
|
|
360
|
+
* next condition in the evaluation order (or the default value if no
|
|
361
|
+
* conditions are applicable).
|
|
362
|
+
*/
|
|
363
|
+
noChange: true;
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* Type representing an Experiment variant value.
|
|
367
|
+
* An `ExperimentVariantValue` could be either an
|
|
368
|
+
* `ExperimentVariantExplicitValue` or an `ExperimentVariantNoChange`.
|
|
369
|
+
*/
|
|
370
|
+
export type ExperimentVariantValue = ExperimentVariantExplicitValue | ExperimentVariantNoChange;
|
|
371
|
+
/**
|
|
372
|
+
* Represents an Experiment value.
|
|
373
|
+
*/
|
|
374
|
+
export interface ExperimentValue {
|
|
375
|
+
/**
|
|
376
|
+
* ID of the Experiment to which the value is linked.
|
|
377
|
+
*/
|
|
378
|
+
experimentId: string;
|
|
379
|
+
/**
|
|
380
|
+
* Collection of `ExperimentVariantValue`s that represents the variants
|
|
381
|
+
* served by the Experiment.
|
|
382
|
+
*/
|
|
383
|
+
variantValue: ExperimentVariantValue[];
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* Interface representing a parameter value linked to a Rollout.
|
|
387
|
+
*/
|
|
388
|
+
export interface RolloutParameterValue {
|
|
389
|
+
/**
|
|
390
|
+
* The value returned by a Rollout.
|
|
391
|
+
*/
|
|
392
|
+
rolloutValue: RolloutValue;
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* Interface representing a parameter value linked to a Personalization.
|
|
396
|
+
*/
|
|
397
|
+
export interface PersonalizationParameterValue {
|
|
398
|
+
/**
|
|
399
|
+
* The value returned by a Personalization.
|
|
400
|
+
*/
|
|
401
|
+
personalizationValue: PersonalizationValue;
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* Interface representing a parameter value linked to an Experiment.
|
|
405
|
+
*/
|
|
406
|
+
export interface ExperimentParameterValue {
|
|
407
|
+
/**
|
|
408
|
+
* The value returned by an Experiment.
|
|
409
|
+
*/
|
|
410
|
+
experimentValue: ExperimentValue;
|
|
411
|
+
}
|
|
299
412
|
/**
|
|
300
413
|
* Type representing a Remote Config parameter value.
|
|
301
414
|
* A `RemoteConfigParameterValue` could be either an `ExplicitParameterValue` or
|
|
302
415
|
* an `InAppDefaultValue`.
|
|
303
416
|
*/
|
|
304
|
-
export type RemoteConfigParameterValue = ExplicitParameterValue | InAppDefaultValue;
|
|
417
|
+
export type RemoteConfigParameterValue = ExplicitParameterValue | InAppDefaultValue | RolloutParameterValue | PersonalizationParameterValue | ExperimentParameterValue;
|
|
305
418
|
/**
|
|
306
419
|
* Interface representing a Remote Config parameter.
|
|
307
420
|
* At minimum, a `defaultValue` or a `conditionalValues` entry must be present for the
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.8.0 */
|
|
2
2
|
/*!
|
|
3
3
|
* Copyright 2021 Google LLC
|
|
4
4
|
*
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import { App } from '../app';
|
|
18
|
-
import { ExplicitParameterValue as TExplicitParameterValue, InAppDefaultValue as TInAppDefaultValue, 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';
|
|
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
19
|
import { RemoteConfig as TRemoteConfig } from './remote-config';
|
|
20
20
|
/**
|
|
21
21
|
* Gets the {@link firebase-admin.remote-config#RemoteConfig} service for the
|
|
@@ -54,6 +54,42 @@ export declare namespace remoteConfig {
|
|
|
54
54
|
* Type alias to {@link firebase-admin.remote-config#InAppDefaultValue}.
|
|
55
55
|
*/
|
|
56
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;
|
|
57
93
|
/**
|
|
58
94
|
* Type alias to {@link firebase-admin.remote-config#ListVersionsOptions}.
|
|
59
95
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.8.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
4
|
* Copyright 2020 Google LLC
|
|
@@ -313,7 +313,9 @@ class ServerTemplateImpl {
|
|
|
313
313
|
}
|
|
314
314
|
if (parameterValueWrapper) {
|
|
315
315
|
const parameterValue = parameterValueWrapper.value;
|
|
316
|
-
|
|
316
|
+
if (parameterValue !== undefined) {
|
|
317
|
+
configValues[key] = new value_impl_1.ValueImpl('remote', parameterValue);
|
|
318
|
+
}
|
|
317
319
|
continue;
|
|
318
320
|
}
|
|
319
321
|
if (!defaultValue) {
|
package/lib/storage/index.d.ts
CHANGED
package/lib/storage/index.js
CHANGED
package/lib/storage/storage.d.ts
CHANGED
package/lib/storage/storage.js
CHANGED
package/lib/storage/utils.d.ts
CHANGED
package/lib/storage/utils.js
CHANGED
package/lib/utils/api-request.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.8.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
4
|
* @license
|
|
@@ -490,6 +490,9 @@ class AsyncHttpCall extends AsyncRequestCall {
|
|
|
490
490
|
try {
|
|
491
491
|
this.httpConfigImpl = httpConfigImpl;
|
|
492
492
|
this.options = this.httpConfigImpl.buildRequestOptions();
|
|
493
|
+
if (!validator.isNonNullObject(this.options.headers)) {
|
|
494
|
+
this.options.headers = {};
|
|
495
|
+
}
|
|
493
496
|
this.entity = this.httpConfigImpl.buildEntity(this.options.headers);
|
|
494
497
|
this.promise = new Promise((resolve, reject) => {
|
|
495
498
|
this.resolve = resolve;
|
|
@@ -575,6 +578,9 @@ class AsyncHttp2Call extends AsyncRequestCall {
|
|
|
575
578
|
try {
|
|
576
579
|
this.http2ConfigImpl = http2ConfigImpl;
|
|
577
580
|
this.options = this.http2ConfigImpl.buildRequestOptions();
|
|
581
|
+
if (!validator.isNonNullObject(this.options.headers)) {
|
|
582
|
+
this.options.headers = {};
|
|
583
|
+
}
|
|
578
584
|
this.entity = this.http2ConfigImpl.buildEntity(this.options.headers);
|
|
579
585
|
this.promise = new Promise((resolve, reject) => {
|
|
580
586
|
this.resolve = resolve;
|
|
@@ -1021,7 +1027,7 @@ class Http2SessionHandler {
|
|
|
1021
1027
|
let errorMessage;
|
|
1022
1028
|
if (error.name == 'AggregateError' && error.errors) {
|
|
1023
1029
|
errorMessage = `Session error while making requests: ${error.code} - ${error.name}: ` +
|
|
1024
|
-
`[${error.errors.map((
|
|
1030
|
+
`[${error.errors.map((e) => e.message).join(', ')}]`;
|
|
1025
1031
|
}
|
|
1026
1032
|
else {
|
|
1027
1033
|
errorMessage = `Session error while making requests: ${error.code} - ${error.message} `;
|
package/lib/utils/deep-copy.d.ts
CHANGED
package/lib/utils/deep-copy.js
CHANGED
package/lib/utils/error.d.ts
CHANGED
package/lib/utils/error.js
CHANGED
package/lib/utils/index.d.ts
CHANGED
package/lib/utils/index.js
CHANGED
package/lib/utils/jwt.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.8.0 */
|
|
2
2
|
/*!
|
|
3
3
|
* Copyright 2021 Google LLC
|
|
4
4
|
*
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
import * as jwt from 'jsonwebtoken';
|
|
18
18
|
import { Agent } from 'http';
|
|
19
19
|
export declare const ALGORITHM_RS256: jwt.Algorithm;
|
|
20
|
+
export declare const ALGORITHM_ES256: jwt.Algorithm;
|
|
20
21
|
export type Dictionary = {
|
|
21
22
|
[key: string]: any;
|
|
22
23
|
};
|
package/lib/utils/jwt.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.8.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
4
|
* Copyright 2021 Google LLC
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.JwtErrorCode = exports.JwtError = exports.EmulatorSignatureVerifier = exports.PublicKeySignatureVerifier = exports.UrlKeyFetcher = exports.JwksFetcher = exports.ALGORITHM_RS256 = void 0;
|
|
19
|
+
exports.JwtErrorCode = exports.JwtError = exports.EmulatorSignatureVerifier = exports.PublicKeySignatureVerifier = exports.UrlKeyFetcher = exports.JwksFetcher = exports.ALGORITHM_ES256 = exports.ALGORITHM_RS256 = void 0;
|
|
20
20
|
exports.verifyJwtSignature = verifyJwtSignature;
|
|
21
21
|
exports.decodeJwt = decodeJwt;
|
|
22
22
|
const validator = require("./validator");
|
|
@@ -24,6 +24,7 @@ const jwt = require("jsonwebtoken");
|
|
|
24
24
|
const jwks = require("jwks-rsa");
|
|
25
25
|
const api_request_1 = require("../utils/api-request");
|
|
26
26
|
exports.ALGORITHM_RS256 = 'RS256';
|
|
27
|
+
exports.ALGORITHM_ES256 = 'ES256';
|
|
27
28
|
// `jsonwebtoken` converts errors from the `getKey` callback to its own `JsonWebTokenError` type
|
|
28
29
|
// and prefixes the error message with the following. Use the prefix to identify errors thrown
|
|
29
30
|
// from the key provider callback.
|
|
@@ -170,7 +171,7 @@ class PublicKeySignatureVerifier {
|
|
|
170
171
|
if (!validator.isString(token)) {
|
|
171
172
|
return Promise.reject(new JwtError(JwtErrorCode.INVALID_ARGUMENT, 'The provided token must be a string.'));
|
|
172
173
|
}
|
|
173
|
-
return verifyJwtSignature(token, getKeyCallback(this.keyFetcher), { algorithms: [exports.ALGORITHM_RS256] })
|
|
174
|
+
return verifyJwtSignature(token, getKeyCallback(this.keyFetcher), { algorithms: [exports.ALGORITHM_RS256, exports.ALGORITHM_ES256] })
|
|
174
175
|
.catch((error) => {
|
|
175
176
|
if (error.code === JwtErrorCode.NO_KID_IN_HEADER) {
|
|
176
177
|
// No kid in JWT header. Try with all the public keys.
|
package/lib/utils/validator.d.ts
CHANGED
package/lib/utils/validator.js
CHANGED