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.
Files changed (229) hide show
  1. package/README.md +2 -1
  2. package/lib/app/core.d.ts +1 -1
  3. package/lib/app/core.js +1 -1
  4. package/lib/app/credential-factory.d.ts +1 -1
  5. package/lib/app/credential-factory.js +1 -1
  6. package/lib/app/credential-internal.d.ts +1 -1
  7. package/lib/app/credential-internal.js +1 -1
  8. package/lib/app/credential.d.ts +1 -1
  9. package/lib/app/credential.js +1 -1
  10. package/lib/app/firebase-app.d.ts +1 -1
  11. package/lib/app/firebase-app.js +1 -1
  12. package/lib/app/firebase-namespace.d.ts +1 -1
  13. package/lib/app/firebase-namespace.js +1 -1
  14. package/lib/app/index.d.ts +1 -1
  15. package/lib/app/index.js +1 -1
  16. package/lib/app/lifecycle.d.ts +1 -1
  17. package/lib/app/lifecycle.js +1 -1
  18. package/lib/app-check/app-check-api-client-internal.d.ts +1 -1
  19. package/lib/app-check/app-check-api-client-internal.js +1 -1
  20. package/lib/app-check/app-check-api.d.ts +1 -1
  21. package/lib/app-check/app-check-api.js +1 -1
  22. package/lib/app-check/app-check-namespace.d.ts +1 -1
  23. package/lib/app-check/app-check-namespace.js +1 -1
  24. package/lib/app-check/app-check.d.ts +1 -1
  25. package/lib/app-check/app-check.js +1 -1
  26. package/lib/app-check/index.d.ts +1 -1
  27. package/lib/app-check/index.js +1 -1
  28. package/lib/app-check/token-generator.d.ts +1 -1
  29. package/lib/app-check/token-generator.js +1 -1
  30. package/lib/app-check/token-verifier.d.ts +1 -1
  31. package/lib/app-check/token-verifier.js +1 -1
  32. package/lib/auth/action-code-settings-builder.d.ts +1 -1
  33. package/lib/auth/action-code-settings-builder.js +1 -1
  34. package/lib/auth/auth-api-request.d.ts +1 -1
  35. package/lib/auth/auth-api-request.js +1 -1
  36. package/lib/auth/auth-config.d.ts +1 -1
  37. package/lib/auth/auth-config.js +1 -1
  38. package/lib/auth/auth-namespace.d.ts +1 -1
  39. package/lib/auth/auth-namespace.js +1 -1
  40. package/lib/auth/auth.d.ts +1 -1
  41. package/lib/auth/auth.js +1 -1
  42. package/lib/auth/base-auth.d.ts +1 -1
  43. package/lib/auth/base-auth.js +1 -1
  44. package/lib/auth/identifier.d.ts +1 -1
  45. package/lib/auth/identifier.js +1 -1
  46. package/lib/auth/index.d.ts +1 -1
  47. package/lib/auth/index.js +1 -1
  48. package/lib/auth/project-config-manager.d.ts +1 -1
  49. package/lib/auth/project-config-manager.js +1 -1
  50. package/lib/auth/project-config.d.ts +1 -1
  51. package/lib/auth/project-config.js +1 -1
  52. package/lib/auth/tenant-manager.d.ts +1 -1
  53. package/lib/auth/tenant-manager.js +1 -1
  54. package/lib/auth/tenant.d.ts +1 -1
  55. package/lib/auth/tenant.js +1 -1
  56. package/lib/auth/token-generator.d.ts +1 -1
  57. package/lib/auth/token-generator.js +1 -1
  58. package/lib/auth/token-verifier.d.ts +1 -1
  59. package/lib/auth/token-verifier.js +1 -1
  60. package/lib/auth/user-import-builder.d.ts +1 -1
  61. package/lib/auth/user-import-builder.js +1 -1
  62. package/lib/auth/user-record.d.ts +1 -1
  63. package/lib/auth/user-record.js +1 -1
  64. package/lib/credential/index.d.ts +1 -1
  65. package/lib/credential/index.js +1 -1
  66. package/lib/data-connect/data-connect-api-client-internal.d.ts +1 -1
  67. package/lib/data-connect/data-connect-api-client-internal.js +1 -1
  68. package/lib/data-connect/data-connect-api.d.ts +1 -1
  69. package/lib/data-connect/data-connect-api.js +1 -1
  70. package/lib/data-connect/data-connect.d.ts +1 -1
  71. package/lib/data-connect/data-connect.js +1 -1
  72. package/lib/data-connect/index.d.ts +1 -1
  73. package/lib/data-connect/index.js +1 -1
  74. package/lib/data-connect/validate-admin-args.d.ts +1 -1
  75. package/lib/data-connect/validate-admin-args.js +1 -1
  76. package/lib/database/database-namespace.d.ts +1 -1
  77. package/lib/database/database-namespace.js +1 -1
  78. package/lib/database/database.d.ts +1 -1
  79. package/lib/database/database.js +1 -1
  80. package/lib/database/index.d.ts +1 -1
  81. package/lib/database/index.js +1 -1
  82. package/lib/default-namespace.d.ts +1 -1
  83. package/lib/default-namespace.js +1 -1
  84. package/lib/esm/phone-number-verification/index.js +4 -0
  85. package/lib/eventarc/cloudevent.d.ts +1 -1
  86. package/lib/eventarc/cloudevent.js +1 -1
  87. package/lib/eventarc/eventarc-client-internal.d.ts +1 -1
  88. package/lib/eventarc/eventarc-client-internal.js +1 -1
  89. package/lib/eventarc/eventarc-utils.d.ts +1 -1
  90. package/lib/eventarc/eventarc-utils.js +1 -1
  91. package/lib/eventarc/eventarc.d.ts +1 -1
  92. package/lib/eventarc/eventarc.js +1 -1
  93. package/lib/eventarc/index.d.ts +1 -1
  94. package/lib/eventarc/index.js +1 -1
  95. package/lib/extensions/extensions-api-client-internal.d.ts +1 -1
  96. package/lib/extensions/extensions-api-client-internal.js +1 -1
  97. package/lib/extensions/extensions-api.d.ts +1 -1
  98. package/lib/extensions/extensions-api.js +1 -1
  99. package/lib/extensions/extensions.d.ts +1 -1
  100. package/lib/extensions/extensions.js +1 -1
  101. package/lib/extensions/index.d.ts +1 -1
  102. package/lib/extensions/index.js +1 -1
  103. package/lib/firebase-namespace-api.d.ts +1 -1
  104. package/lib/firebase-namespace-api.js +1 -1
  105. package/lib/firestore/firestore-internal.d.ts +1 -1
  106. package/lib/firestore/firestore-internal.js +1 -1
  107. package/lib/firestore/firestore-namespace.d.ts +1 -1
  108. package/lib/firestore/firestore-namespace.js +1 -1
  109. package/lib/firestore/index.d.ts +1 -1
  110. package/lib/firestore/index.js +1 -1
  111. package/lib/functions/functions-api-client-internal.d.ts +1 -1
  112. package/lib/functions/functions-api-client-internal.js +1 -1
  113. package/lib/functions/functions-api.d.ts +1 -1
  114. package/lib/functions/functions-api.js +1 -1
  115. package/lib/functions/functions.d.ts +1 -1
  116. package/lib/functions/functions.js +1 -1
  117. package/lib/functions/index.d.ts +1 -1
  118. package/lib/functions/index.js +1 -1
  119. package/lib/index.d.ts +1 -1
  120. package/lib/index.js +1 -1
  121. package/lib/installations/index.d.ts +1 -1
  122. package/lib/installations/index.js +1 -1
  123. package/lib/installations/installations-namespace.d.ts +1 -1
  124. package/lib/installations/installations-namespace.js +1 -1
  125. package/lib/installations/installations-request-handler.d.ts +1 -1
  126. package/lib/installations/installations-request-handler.js +1 -1
  127. package/lib/installations/installations.d.ts +1 -1
  128. package/lib/installations/installations.js +1 -1
  129. package/lib/instance-id/index.d.ts +1 -1
  130. package/lib/instance-id/index.js +1 -1
  131. package/lib/instance-id/instance-id-namespace.d.ts +1 -1
  132. package/lib/instance-id/instance-id-namespace.js +1 -1
  133. package/lib/instance-id/instance-id.d.ts +1 -1
  134. package/lib/instance-id/instance-id.js +1 -1
  135. package/lib/machine-learning/index.d.ts +1 -1
  136. package/lib/machine-learning/index.js +1 -1
  137. package/lib/machine-learning/machine-learning-api-client.d.ts +1 -1
  138. package/lib/machine-learning/machine-learning-api-client.js +1 -1
  139. package/lib/machine-learning/machine-learning-namespace.d.ts +1 -1
  140. package/lib/machine-learning/machine-learning-namespace.js +1 -1
  141. package/lib/machine-learning/machine-learning-utils.d.ts +1 -1
  142. package/lib/machine-learning/machine-learning-utils.js +1 -1
  143. package/lib/machine-learning/machine-learning.d.ts +1 -1
  144. package/lib/machine-learning/machine-learning.js +1 -1
  145. package/lib/messaging/index.d.ts +1 -1
  146. package/lib/messaging/index.js +1 -1
  147. package/lib/messaging/messaging-api-request-internal.d.ts +1 -1
  148. package/lib/messaging/messaging-api-request-internal.js +1 -1
  149. package/lib/messaging/messaging-api.d.ts +11 -1
  150. package/lib/messaging/messaging-api.js +1 -1
  151. package/lib/messaging/messaging-errors-internal.d.ts +1 -1
  152. package/lib/messaging/messaging-errors-internal.js +1 -1
  153. package/lib/messaging/messaging-internal.d.ts +1 -1
  154. package/lib/messaging/messaging-internal.js +3 -1
  155. package/lib/messaging/messaging-namespace.d.ts +1 -1
  156. package/lib/messaging/messaging-namespace.js +1 -1
  157. package/lib/messaging/messaging.d.ts +1 -1
  158. package/lib/messaging/messaging.js +1 -1
  159. package/lib/phone-number-verification/index.d.ts +50 -0
  160. package/lib/phone-number-verification/index.js +60 -0
  161. package/lib/phone-number-verification/phone-number-verification-api-client-internal.d.ts +48 -0
  162. package/lib/phone-number-verification/phone-number-verification-api-client-internal.js +52 -0
  163. package/lib/phone-number-verification/phone-number-verification-api.d.ts +72 -0
  164. package/lib/phone-number-verification/phone-number-verification-api.js +22 -0
  165. package/lib/phone-number-verification/phone-number-verification.d.ts +39 -0
  166. package/lib/phone-number-verification/phone-number-verification.js +54 -0
  167. package/lib/phone-number-verification/token-verifier.d.ts +35 -0
  168. package/lib/phone-number-verification/token-verifier.js +170 -0
  169. package/lib/project-management/android-app.d.ts +1 -1
  170. package/lib/project-management/android-app.js +1 -1
  171. package/lib/project-management/app-metadata.d.ts +1 -1
  172. package/lib/project-management/app-metadata.js +1 -1
  173. package/lib/project-management/index.d.ts +1 -1
  174. package/lib/project-management/index.js +1 -1
  175. package/lib/project-management/ios-app.d.ts +1 -1
  176. package/lib/project-management/ios-app.js +1 -1
  177. package/lib/project-management/project-management-api-request-internal.d.ts +1 -1
  178. package/lib/project-management/project-management-api-request-internal.js +1 -1
  179. package/lib/project-management/project-management-namespace.d.ts +1 -1
  180. package/lib/project-management/project-management-namespace.js +1 -1
  181. package/lib/project-management/project-management.d.ts +1 -1
  182. package/lib/project-management/project-management.js +1 -1
  183. package/lib/remote-config/condition-evaluator-internal.d.ts +1 -1
  184. package/lib/remote-config/condition-evaluator-internal.js +1 -1
  185. package/lib/remote-config/index.d.ts +2 -2
  186. package/lib/remote-config/index.js +1 -1
  187. package/lib/remote-config/internal/value-impl.d.ts +1 -1
  188. package/lib/remote-config/internal/value-impl.js +1 -1
  189. package/lib/remote-config/remote-config-api-client-internal.d.ts +1 -1
  190. package/lib/remote-config/remote-config-api-client-internal.js +1 -1
  191. package/lib/remote-config/remote-config-api.d.ts +115 -2
  192. package/lib/remote-config/remote-config-api.js +1 -1
  193. package/lib/remote-config/remote-config-namespace.d.ts +38 -2
  194. package/lib/remote-config/remote-config-namespace.js +1 -1
  195. package/lib/remote-config/remote-config.d.ts +1 -1
  196. package/lib/remote-config/remote-config.js +4 -2
  197. package/lib/security-rules/index.d.ts +1 -1
  198. package/lib/security-rules/index.js +1 -1
  199. package/lib/security-rules/security-rules-api-client-internal.d.ts +1 -1
  200. package/lib/security-rules/security-rules-api-client-internal.js +1 -1
  201. package/lib/security-rules/security-rules-internal.d.ts +1 -1
  202. package/lib/security-rules/security-rules-internal.js +1 -1
  203. package/lib/security-rules/security-rules-namespace.d.ts +1 -1
  204. package/lib/security-rules/security-rules-namespace.js +1 -1
  205. package/lib/security-rules/security-rules.d.ts +1 -1
  206. package/lib/security-rules/security-rules.js +1 -1
  207. package/lib/storage/index.d.ts +1 -1
  208. package/lib/storage/index.js +1 -1
  209. package/lib/storage/storage-namespace.d.ts +1 -1
  210. package/lib/storage/storage-namespace.js +1 -1
  211. package/lib/storage/storage.d.ts +1 -1
  212. package/lib/storage/storage.js +1 -1
  213. package/lib/storage/utils.d.ts +1 -1
  214. package/lib/storage/utils.js +1 -1
  215. package/lib/utils/api-request.d.ts +1 -1
  216. package/lib/utils/api-request.js +8 -2
  217. package/lib/utils/crypto-signer.d.ts +1 -1
  218. package/lib/utils/crypto-signer.js +1 -1
  219. package/lib/utils/deep-copy.d.ts +1 -1
  220. package/lib/utils/deep-copy.js +1 -1
  221. package/lib/utils/error.d.ts +1 -1
  222. package/lib/utils/error.js +1 -1
  223. package/lib/utils/index.d.ts +1 -1
  224. package/lib/utils/index.js +1 -1
  225. package/lib/utils/jwt.d.ts +2 -1
  226. package/lib/utils/jwt.js +4 -3
  227. package/lib/utils/validator.d.ts +1 -1
  228. package/lib/utils/validator.js +1 -1
  229. package/package.json +16 -8
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  /*!
3
3
  * Copyright 2024 Google LLC
4
4
  *
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  /*!
3
3
  * Copyright 2024 Google LLC
4
4
  *
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
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.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * Copyright 2020 Google LLC
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  /*!
3
3
  * Copyright 2024 Google LLC
4
4
  *
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  /*!
3
3
  * Copyright 2024 Google LLC
4
4
  *
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  /*!
3
3
  * Copyright 2020 Google LLC
4
4
  *
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * Copyright 2020 Google LLC
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
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.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * Copyright 2021 Google LLC
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
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.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * Copyright 2021 Google LLC
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  /*!
3
3
  * Copyright 2020 Google LLC
4
4
  *
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
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
- configValues[key] = new value_impl_1.ValueImpl('remote', parameterValue);
316
+ if (parameterValue !== undefined) {
317
+ configValues[key] = new value_impl_1.ValueImpl('remote', parameterValue);
318
+ }
317
319
  continue;
318
320
  }
319
321
  if (!defaultValue) {
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  /*!
3
3
  * Copyright 2020 Google LLC
4
4
  *
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * Copyright 2020 Google LLC
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  /*!
3
3
  * Copyright 2019 Google LLC
4
4
  *
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * Copyright 2019 Google LLC
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  /*!
3
3
  * Copyright 2019 Google LLC
4
4
  *
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * Copyright 2019 Google LLC
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  /*!
3
3
  * Copyright 2021 Google LLC
4
4
  *
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * Copyright 2021 Google LLC
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  /*!
3
3
  * Copyright 2019 Google LLC
4
4
  *
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * Copyright 2019 Google LLC
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  /*!
3
3
  * Copyright 2020 Google LLC
4
4
  *
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * Copyright 2020 Google LLC
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  /*!
3
3
  * Copyright 2021 Google LLC
4
4
  *
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * Copyright 2021 Google LLC
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  /*!
3
3
  * @license
4
4
  * Copyright 2017 Google LLC
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * @license
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  import { File } from '@google-cloud/storage';
3
3
  export interface FirebaseMetadata {
4
4
  name: string;
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.getFirebaseMetadata = getFirebaseMetadata;
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  /*!
3
3
  * @license
4
4
  * Copyright 2017 Google LLC
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
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((error) => error.message).join(', ')}]`;
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} `;
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  /*!
3
3
  * @license
4
4
  * Copyright 2021 Google LLC
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * @license
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  /*!
3
3
  * @license
4
4
  * Copyright 2017 Google LLC
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * @license
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  /*!
3
3
  * @license
4
4
  * Copyright 2017 Google LLC
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * @license
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  /*!
3
3
  * @license
4
4
  * Copyright 2017 Google LLC
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * @license
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
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.6.1 */
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.
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  /*!
3
3
  * @license
4
4
  * Copyright 2017 Google LLC
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.6.1 */
1
+ /*! firebase-admin v13.8.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * @license