firebase-admin 13.0.2 → 13.1.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 (215) hide show
  1. package/lib/app/core.d.ts +1 -1
  2. package/lib/app/core.js +1 -1
  3. package/lib/app/credential-factory.d.ts +1 -1
  4. package/lib/app/credential-factory.js +1 -1
  5. package/lib/app/credential-internal.d.ts +1 -1
  6. package/lib/app/credential-internal.js +1 -1
  7. package/lib/app/credential.d.ts +1 -1
  8. package/lib/app/credential.js +1 -1
  9. package/lib/app/firebase-app.d.ts +1 -1
  10. package/lib/app/firebase-app.js +1 -1
  11. package/lib/app/firebase-namespace.d.ts +1 -1
  12. package/lib/app/firebase-namespace.js +1 -1
  13. package/lib/app/index.d.ts +1 -1
  14. package/lib/app/index.js +1 -1
  15. package/lib/app/lifecycle.d.ts +1 -1
  16. package/lib/app/lifecycle.js +1 -1
  17. package/lib/app-check/app-check-api-client-internal.d.ts +1 -1
  18. package/lib/app-check/app-check-api-client-internal.js +1 -1
  19. package/lib/app-check/app-check-api.d.ts +1 -1
  20. package/lib/app-check/app-check-api.js +1 -1
  21. package/lib/app-check/app-check-namespace.d.ts +1 -1
  22. package/lib/app-check/app-check-namespace.js +1 -1
  23. package/lib/app-check/app-check.d.ts +1 -1
  24. package/lib/app-check/app-check.js +1 -1
  25. package/lib/app-check/index.d.ts +1 -1
  26. package/lib/app-check/index.js +1 -1
  27. package/lib/app-check/token-generator.d.ts +1 -1
  28. package/lib/app-check/token-generator.js +1 -1
  29. package/lib/app-check/token-verifier.d.ts +1 -1
  30. package/lib/app-check/token-verifier.js +1 -1
  31. package/lib/auth/action-code-settings-builder.d.ts +10 -1
  32. package/lib/auth/action-code-settings-builder.js +7 -1
  33. package/lib/auth/auth-api-request.d.ts +1 -1
  34. package/lib/auth/auth-api-request.js +1 -1
  35. package/lib/auth/auth-config.d.ts +15 -1
  36. package/lib/auth/auth-config.js +28 -2
  37. package/lib/auth/auth-namespace.d.ts +1 -1
  38. package/lib/auth/auth-namespace.js +1 -1
  39. package/lib/auth/auth.d.ts +1 -1
  40. package/lib/auth/auth.js +1 -1
  41. package/lib/auth/base-auth.d.ts +4 -4
  42. package/lib/auth/base-auth.js +4 -4
  43. package/lib/auth/identifier.d.ts +1 -1
  44. package/lib/auth/identifier.js +1 -1
  45. package/lib/auth/index.d.ts +2 -2
  46. package/lib/auth/index.js +1 -1
  47. package/lib/auth/project-config-manager.d.ts +1 -1
  48. package/lib/auth/project-config-manager.js +1 -1
  49. package/lib/auth/project-config.d.ts +12 -2
  50. package/lib/auth/project-config.js +16 -1
  51. package/lib/auth/tenant-manager.d.ts +1 -1
  52. package/lib/auth/tenant-manager.js +1 -1
  53. package/lib/auth/tenant.d.ts +1 -1
  54. package/lib/auth/tenant.js +1 -1
  55. package/lib/auth/token-generator.d.ts +1 -1
  56. package/lib/auth/token-generator.js +1 -1
  57. package/lib/auth/token-verifier.d.ts +1 -1
  58. package/lib/auth/token-verifier.js +1 -1
  59. package/lib/auth/user-import-builder.d.ts +1 -1
  60. package/lib/auth/user-import-builder.js +1 -1
  61. package/lib/auth/user-record.d.ts +1 -1
  62. package/lib/auth/user-record.js +1 -1
  63. package/lib/credential/index.d.ts +1 -1
  64. package/lib/credential/index.js +1 -1
  65. package/lib/data-connect/data-connect-api-client-internal.d.ts +1 -1
  66. package/lib/data-connect/data-connect-api-client-internal.js +1 -1
  67. package/lib/data-connect/data-connect-api.d.ts +1 -1
  68. package/lib/data-connect/data-connect-api.js +1 -1
  69. package/lib/data-connect/data-connect.d.ts +1 -1
  70. package/lib/data-connect/data-connect.js +1 -1
  71. package/lib/data-connect/index.d.ts +1 -1
  72. package/lib/data-connect/index.js +1 -1
  73. package/lib/database/database-namespace.d.ts +1 -1
  74. package/lib/database/database-namespace.js +1 -1
  75. package/lib/database/database.d.ts +1 -1
  76. package/lib/database/database.js +1 -1
  77. package/lib/database/index.d.ts +1 -1
  78. package/lib/database/index.js +1 -1
  79. package/lib/default-namespace.d.ts +1 -1
  80. package/lib/default-namespace.js +1 -1
  81. package/lib/eventarc/cloudevent.d.ts +1 -1
  82. package/lib/eventarc/cloudevent.js +1 -1
  83. package/lib/eventarc/eventarc-client-internal.d.ts +1 -1
  84. package/lib/eventarc/eventarc-client-internal.js +1 -1
  85. package/lib/eventarc/eventarc-utils.d.ts +1 -1
  86. package/lib/eventarc/eventarc-utils.js +1 -1
  87. package/lib/eventarc/eventarc.d.ts +1 -1
  88. package/lib/eventarc/eventarc.js +1 -1
  89. package/lib/eventarc/index.d.ts +1 -1
  90. package/lib/eventarc/index.js +1 -1
  91. package/lib/extensions/extensions-api-client-internal.d.ts +1 -1
  92. package/lib/extensions/extensions-api-client-internal.js +1 -1
  93. package/lib/extensions/extensions-api.d.ts +1 -1
  94. package/lib/extensions/extensions-api.js +1 -1
  95. package/lib/extensions/extensions.d.ts +1 -1
  96. package/lib/extensions/extensions.js +1 -1
  97. package/lib/extensions/index.d.ts +1 -1
  98. package/lib/extensions/index.js +1 -1
  99. package/lib/firebase-namespace-api.d.ts +1 -1
  100. package/lib/firebase-namespace-api.js +1 -1
  101. package/lib/firestore/firestore-internal.d.ts +1 -1
  102. package/lib/firestore/firestore-internal.js +1 -1
  103. package/lib/firestore/firestore-namespace.d.ts +1 -1
  104. package/lib/firestore/firestore-namespace.js +1 -1
  105. package/lib/firestore/index.d.ts +1 -1
  106. package/lib/firestore/index.js +1 -1
  107. package/lib/functions/functions-api-client-internal.d.ts +1 -1
  108. package/lib/functions/functions-api-client-internal.js +1 -1
  109. package/lib/functions/functions-api.d.ts +1 -1
  110. package/lib/functions/functions-api.js +1 -1
  111. package/lib/functions/functions.d.ts +1 -1
  112. package/lib/functions/functions.js +1 -1
  113. package/lib/functions/index.d.ts +1 -1
  114. package/lib/functions/index.js +1 -1
  115. package/lib/index.d.ts +1 -1
  116. package/lib/index.js +1 -1
  117. package/lib/installations/index.d.ts +1 -1
  118. package/lib/installations/index.js +1 -1
  119. package/lib/installations/installations-namespace.d.ts +1 -1
  120. package/lib/installations/installations-namespace.js +1 -1
  121. package/lib/installations/installations-request-handler.d.ts +1 -1
  122. package/lib/installations/installations-request-handler.js +1 -1
  123. package/lib/installations/installations.d.ts +1 -1
  124. package/lib/installations/installations.js +1 -1
  125. package/lib/instance-id/index.d.ts +1 -1
  126. package/lib/instance-id/index.js +1 -1
  127. package/lib/instance-id/instance-id-namespace.d.ts +1 -1
  128. package/lib/instance-id/instance-id-namespace.js +1 -1
  129. package/lib/instance-id/instance-id.d.ts +1 -1
  130. package/lib/instance-id/instance-id.js +1 -1
  131. package/lib/machine-learning/index.d.ts +1 -1
  132. package/lib/machine-learning/index.js +1 -1
  133. package/lib/machine-learning/machine-learning-api-client.d.ts +1 -1
  134. package/lib/machine-learning/machine-learning-api-client.js +1 -1
  135. package/lib/machine-learning/machine-learning-namespace.d.ts +1 -1
  136. package/lib/machine-learning/machine-learning-namespace.js +1 -1
  137. package/lib/machine-learning/machine-learning-utils.d.ts +1 -1
  138. package/lib/machine-learning/machine-learning-utils.js +1 -1
  139. package/lib/machine-learning/machine-learning.d.ts +1 -1
  140. package/lib/machine-learning/machine-learning.js +1 -1
  141. package/lib/messaging/index.d.ts +1 -1
  142. package/lib/messaging/index.js +1 -1
  143. package/lib/messaging/messaging-api-request-internal.d.ts +1 -1
  144. package/lib/messaging/messaging-api-request-internal.js +1 -1
  145. package/lib/messaging/messaging-api.d.ts +1 -1
  146. package/lib/messaging/messaging-api.js +1 -1
  147. package/lib/messaging/messaging-errors-internal.d.ts +1 -1
  148. package/lib/messaging/messaging-errors-internal.js +1 -1
  149. package/lib/messaging/messaging-internal.d.ts +1 -1
  150. package/lib/messaging/messaging-internal.js +1 -1
  151. package/lib/messaging/messaging-namespace.d.ts +1 -1
  152. package/lib/messaging/messaging-namespace.js +1 -1
  153. package/lib/messaging/messaging.d.ts +1 -1
  154. package/lib/messaging/messaging.js +1 -1
  155. package/lib/project-management/android-app.d.ts +1 -1
  156. package/lib/project-management/android-app.js +1 -1
  157. package/lib/project-management/app-metadata.d.ts +1 -1
  158. package/lib/project-management/app-metadata.js +1 -1
  159. package/lib/project-management/index.d.ts +1 -1
  160. package/lib/project-management/index.js +1 -1
  161. package/lib/project-management/ios-app.d.ts +1 -1
  162. package/lib/project-management/ios-app.js +1 -1
  163. package/lib/project-management/project-management-api-request-internal.d.ts +1 -1
  164. package/lib/project-management/project-management-api-request-internal.js +1 -1
  165. package/lib/project-management/project-management-namespace.d.ts +1 -1
  166. package/lib/project-management/project-management-namespace.js +1 -1
  167. package/lib/project-management/project-management.d.ts +1 -1
  168. package/lib/project-management/project-management.js +1 -1
  169. package/lib/remote-config/condition-evaluator-internal.d.ts +1 -1
  170. package/lib/remote-config/condition-evaluator-internal.js +1 -1
  171. package/lib/remote-config/index.d.ts +1 -1
  172. package/lib/remote-config/index.js +1 -1
  173. package/lib/remote-config/internal/value-impl.d.ts +1 -1
  174. package/lib/remote-config/internal/value-impl.js +1 -1
  175. package/lib/remote-config/remote-config-api-client-internal.d.ts +1 -1
  176. package/lib/remote-config/remote-config-api-client-internal.js +1 -1
  177. package/lib/remote-config/remote-config-api.d.ts +1 -1
  178. package/lib/remote-config/remote-config-api.js +1 -1
  179. package/lib/remote-config/remote-config-namespace.d.ts +1 -1
  180. package/lib/remote-config/remote-config-namespace.js +1 -1
  181. package/lib/remote-config/remote-config.d.ts +1 -1
  182. package/lib/remote-config/remote-config.js +1 -1
  183. package/lib/security-rules/index.d.ts +1 -1
  184. package/lib/security-rules/index.js +1 -1
  185. package/lib/security-rules/security-rules-api-client-internal.d.ts +1 -1
  186. package/lib/security-rules/security-rules-api-client-internal.js +1 -1
  187. package/lib/security-rules/security-rules-internal.d.ts +1 -1
  188. package/lib/security-rules/security-rules-internal.js +1 -1
  189. package/lib/security-rules/security-rules-namespace.d.ts +1 -1
  190. package/lib/security-rules/security-rules-namespace.js +1 -1
  191. package/lib/security-rules/security-rules.d.ts +1 -1
  192. package/lib/security-rules/security-rules.js +1 -1
  193. package/lib/storage/index.d.ts +1 -1
  194. package/lib/storage/index.js +1 -1
  195. package/lib/storage/storage-namespace.d.ts +1 -1
  196. package/lib/storage/storage-namespace.js +1 -1
  197. package/lib/storage/storage.d.ts +1 -1
  198. package/lib/storage/storage.js +1 -1
  199. package/lib/storage/utils.d.ts +1 -1
  200. package/lib/storage/utils.js +1 -1
  201. package/lib/utils/api-request.d.ts +1 -1
  202. package/lib/utils/api-request.js +1 -1
  203. package/lib/utils/crypto-signer.d.ts +1 -1
  204. package/lib/utils/crypto-signer.js +1 -1
  205. package/lib/utils/deep-copy.d.ts +1 -1
  206. package/lib/utils/deep-copy.js +1 -1
  207. package/lib/utils/error.d.ts +5 -1
  208. package/lib/utils/error.js +8 -1
  209. package/lib/utils/index.d.ts +1 -1
  210. package/lib/utils/index.js +1 -1
  211. package/lib/utils/jwt.d.ts +1 -1
  212. package/lib/utils/jwt.js +1 -1
  213. package/lib/utils/validator.d.ts +1 -1
  214. package/lib/utils/validator.js +1 -1
  215. package/package.json +1 -1
package/lib/app/core.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  /*!
3
3
  * @license
4
4
  * Copyright 2021 Google Inc.
package/lib/app/core.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * @license
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  /*!
3
3
  * @license
4
4
  * Copyright 2021 Google Inc.
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * @license
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  /*!
3
3
  * @license
4
4
  * Copyright 2020 Google Inc.
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * @license
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  /*!
3
3
  * @license
4
4
  * Copyright 2021 Google Inc.
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * @license
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  /*!
3
3
  * @license
4
4
  * Copyright 2017 Google Inc.
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * @license
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  /*!
3
3
  * @license
4
4
  * Copyright 2017 Google Inc.
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * @license
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  /*!
3
3
  * @license
4
4
  * Copyright 2021 Google Inc.
package/lib/app/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * @license
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  /*!
3
3
  * @license
4
4
  * Copyright 2021 Google Inc.
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * @license
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  /*!
3
3
  * @license
4
4
  * Copyright 2021 Google Inc.
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * @license
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  /*!
3
3
  * @license
4
4
  * Copyright 2021 Google Inc.
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * @license
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  /*!
3
3
  * Copyright 2021 Google Inc.
4
4
  *
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * Copyright 2021 Google Inc.
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  /*!
3
3
  * @license
4
4
  * Copyright 2021 Google Inc.
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * @license
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  /*!
3
3
  * @license
4
4
  * Copyright 2021 Google Inc.
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * @license
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  /*!
3
3
  * @license
4
4
  * Copyright 2021 Google Inc.
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * @license
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  /*!
3
3
  * Copyright 2021 Google Inc.
4
4
  *
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * Copyright 2021 Google Inc.
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  /*!
3
3
  * Copyright 2018 Google Inc.
4
4
  *
@@ -82,6 +82,15 @@ export interface ActionCodeSettings {
82
82
  * configured per project. This field provides the ability to explicitly choose
83
83
  * configured per project. This fields provides the ability explicitly choose
84
84
  * one. If none is provided, the oldest domain is used by default.
85
+ * @deprecated use `linkDomain` instead
85
86
  */
86
87
  dynamicLinkDomain?: string;
88
+ /**
89
+ * Defines the custom Firebase Hosting domain to use when the link is to be opened
90
+ * via a specified mobile app,
91
+ * This is a replacement of Firebase Dynamic Link.
92
+ * If none is provided,
93
+ * a default hosting domain will be used (for example, `example.firebaseapp.com`)
94
+ */
95
+ linkDomain?: string;
87
96
  }
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * Copyright 2018 Google Inc.
@@ -54,6 +54,11 @@ class ActionCodeSettingsBuilder {
54
54
  throw new error_1.FirebaseAuthError(error_1.AuthClientErrorCode.INVALID_DYNAMIC_LINK_DOMAIN);
55
55
  }
56
56
  this.dynamicLinkDomain = actionCodeSettings.dynamicLinkDomain;
57
+ if (typeof actionCodeSettings.linkDomain !== 'undefined' &&
58
+ !validator.isNonEmptyString(actionCodeSettings.linkDomain)) {
59
+ throw new error_1.FirebaseAuthError(error_1.AuthClientErrorCode.INVALID_HOSTING_LINK_DOMAIN);
60
+ }
61
+ this.linkDomain = actionCodeSettings.linkDomain;
57
62
  if (typeof actionCodeSettings.iOS !== 'undefined') {
58
63
  if (!validator.isNonNullObject(actionCodeSettings.iOS)) {
59
64
  throw new error_1.FirebaseAuthError(error_1.AuthClientErrorCode.INVALID_ARGUMENT, '"ActionCodeSettings.iOS" must be a valid non-null object.');
@@ -100,6 +105,7 @@ class ActionCodeSettingsBuilder {
100
105
  continueUrl: this.continueUrl,
101
106
  canHandleCodeInApp: this.canHandleCodeInApp,
102
107
  dynamicLinkDomain: this.dynamicLinkDomain,
108
+ linkDomain: this.linkDomain,
103
109
  androidPackageName: this.apn,
104
110
  androidMinimumVersion: this.amv,
105
111
  androidInstallApp: this.installApp,
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  /*!
3
3
  * @license
4
4
  * Copyright 2017 Google Inc.
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * @license
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  /*!
3
3
  * Copyright 2018 Google Inc.
4
4
  *
@@ -767,6 +767,20 @@ export interface PasswordPolicyConfig {
767
767
  */
768
768
  constraints?: CustomStrengthOptionsConfig;
769
769
  }
770
+ /**
771
+ * Configuration for settings related to univeral links (iOS)
772
+ * and app links (Android).
773
+ */
774
+ export interface MobileLinksConfig {
775
+ /**
776
+ * Use Firebase Hosting or dynamic link domain as the out-of-band code domain.
777
+ */
778
+ domain?: MobileLinksDomain;
779
+ }
780
+ /**
781
+ * Open code in app domain to use for app links and universal links.
782
+ */
783
+ export type MobileLinksDomain = 'HOSTING_DOMAIN' | 'FIREBASE_DYNAMIC_LINK_DOMAIN';
770
784
  /**
771
785
  * A password policy's enforcement state.
772
786
  */
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * Copyright 2018 Google Inc.
@@ -16,7 +16,7 @@
16
16
  * limitations under the License.
17
17
  */
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.EmailPrivacyAuthConfig = exports.PasswordPolicyAuthConfig = exports.RecaptchaAuthConfig = exports.SmsRegionsAuthConfig = exports.OIDCConfig = exports.SAMLConfig = exports.EmailSignInConfig = exports.MultiFactorAuthConfig = exports.MAXIMUM_TEST_PHONE_NUMBERS = void 0;
19
+ exports.EmailPrivacyAuthConfig = exports.PasswordPolicyAuthConfig = exports.MobileLinksAuthConfig = exports.RecaptchaAuthConfig = exports.SmsRegionsAuthConfig = exports.OIDCConfig = exports.SAMLConfig = exports.EmailSignInConfig = exports.MultiFactorAuthConfig = exports.MAXIMUM_TEST_PHONE_NUMBERS = void 0;
20
20
  exports.validateTestPhoneNumbers = validateTestPhoneNumbers;
21
21
  const validator = require("../utils/validator");
22
22
  const deep_copy_1 = require("../utils/deep-copy");
@@ -943,6 +943,32 @@ class RecaptchaAuthConfig {
943
943
  }
944
944
  }
945
945
  exports.RecaptchaAuthConfig = RecaptchaAuthConfig;
946
+ /**
947
+ * Defines the MobileLinksAuthConfig class used for validation.
948
+ *
949
+ * @internal
950
+ */
951
+ class MobileLinksAuthConfig {
952
+ static validate(options) {
953
+ if (!validator.isNonNullObject(options)) {
954
+ throw new error_1.FirebaseAuthError(error_1.AuthClientErrorCode.INVALID_CONFIG, '"MobileLinksConfig" must be a non-null object.');
955
+ }
956
+ const validKeys = {
957
+ domain: true,
958
+ };
959
+ for (const key in options) {
960
+ if (!(key in validKeys)) {
961
+ throw new error_1.FirebaseAuthError(error_1.AuthClientErrorCode.INVALID_CONFIG, `"${key}" is not a valid "MobileLinksConfig" parameter.`);
962
+ }
963
+ }
964
+ if (typeof options.domain !== 'undefined'
965
+ && options.domain !== 'HOSTING_DOMAIN'
966
+ && options.domain !== 'FIREBASE_DYNAMIC_LINK_DOMAIN') {
967
+ throw new error_1.FirebaseAuthError(error_1.AuthClientErrorCode.INVALID_CONFIG, '"MobileLinksConfig.domain" must be either "HOSTING_DOMAIN" or "FIREBASE_DYNAMIC_LINK_DOMAIN".');
968
+ }
969
+ }
970
+ }
971
+ exports.MobileLinksAuthConfig = MobileLinksAuthConfig;
946
972
  /**
947
973
  * Defines the password policy config class used to convert client side PasswordPolicyConfig
948
974
  * to a format that is understood by the Auth server.
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  /*!
3
3
  * Copyright 2021 Google Inc.
4
4
  *
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * Copyright 2021 Google Inc.
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  /*!
3
3
  * @license
4
4
  * Copyright 2017 Google Inc.
package/lib/auth/auth.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * @license
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  /*!
3
3
  * Copyright 2021 Google Inc.
4
4
  *
@@ -400,7 +400,7 @@ export declare abstract class BaseAuth {
400
400
  * minimumVersion: '12'
401
401
  * },
402
402
  * handleCodeInApp: true,
403
- * dynamicLinkDomain: 'custom.page.link'
403
+ * linkDomain: 'project-id.firebaseapp.com'
404
404
  * };
405
405
  * admin.auth()
406
406
  * .generatePasswordResetLink('user@example.com', actionCodeSettings)
@@ -450,7 +450,7 @@ export declare abstract class BaseAuth {
450
450
  * minimumVersion: '12'
451
451
  * },
452
452
  * handleCodeInApp: true,
453
- * dynamicLinkDomain: 'custom.page.link'
453
+ * linkDomain: 'project-id.firebaseapp.com'
454
454
  * };
455
455
  * admin.auth()
456
456
  * .generateEmailVerificationLink('user@example.com', actionCodeSettings)
@@ -524,7 +524,7 @@ export declare abstract class BaseAuth {
524
524
  * minimumVersion: '12'
525
525
  * },
526
526
  * handleCodeInApp: true,
527
- * dynamicLinkDomain: 'custom.page.link'
527
+ * linkDomain: 'project-id.firebaseapp.com'
528
528
  * };
529
529
  * admin.auth()
530
530
  * .generateEmailVerificationLink('user@example.com', actionCodeSettings)
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * Copyright 2021 Google Inc.
@@ -609,7 +609,7 @@ class BaseAuth {
609
609
  * minimumVersion: '12'
610
610
  * },
611
611
  * handleCodeInApp: true,
612
- * dynamicLinkDomain: 'custom.page.link'
612
+ * linkDomain: 'project-id.firebaseapp.com'
613
613
  * };
614
614
  * admin.auth()
615
615
  * .generatePasswordResetLink('user@example.com', actionCodeSettings)
@@ -661,7 +661,7 @@ class BaseAuth {
661
661
  * minimumVersion: '12'
662
662
  * },
663
663
  * handleCodeInApp: true,
664
- * dynamicLinkDomain: 'custom.page.link'
664
+ * linkDomain: 'project-id.firebaseapp.com'
665
665
  * };
666
666
  * admin.auth()
667
667
  * .generateEmailVerificationLink('user@example.com', actionCodeSettings)
@@ -739,7 +739,7 @@ class BaseAuth {
739
739
  * minimumVersion: '12'
740
740
  * },
741
741
  * handleCodeInApp: true,
742
- * dynamicLinkDomain: 'custom.page.link'
742
+ * linkDomain: 'project-id.firebaseapp.com'
743
743
  * };
744
744
  * admin.auth()
745
745
  * .generateEmailVerificationLink('user@example.com', actionCodeSettings)
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  /*!
3
3
  * Copyright 2020 Google Inc.
4
4
  *
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * Copyright 2020 Google Inc.
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  /*!
3
3
  * Copyright 2020 Google Inc.
4
4
  *
@@ -45,7 +45,7 @@ import { Auth } from './auth';
45
45
  export declare function getAuth(app?: App): Auth;
46
46
  export { ActionCodeSettings } from './action-code-settings-builder';
47
47
  export { Auth, } from './auth';
48
- export { AllowByDefault, AllowByDefaultWrap, AllowlistOnly, AllowlistOnlyWrap, AuthFactorType, AuthProviderConfig, AuthProviderConfigFilter, BaseAuthProviderConfig, BaseCreateMultiFactorInfoRequest, BaseUpdateMultiFactorInfoRequest, CreateMultiFactorInfoRequest, CreatePhoneMultiFactorInfoRequest, CreateRequest, EmailSignInProviderConfig, ListProviderConfigResults, MultiFactorConfig, MultiFactorConfigState, MultiFactorCreateSettings, MultiFactorUpdateSettings, MultiFactorProviderConfig, OAuthResponseType, OIDCAuthProviderConfig, OIDCUpdateAuthProviderRequest, RecaptchaAction, RecaptchaConfig, RecaptchaKey, RecaptchaKeyClientType, RecaptchaManagedRule, RecaptchaTollFraudManagedRule, RecaptchaProviderEnforcementState, SAMLAuthProviderConfig, SAMLUpdateAuthProviderRequest, SmsRegionConfig, UserProvider, UpdateAuthProviderRequest, UpdateMultiFactorInfoRequest, UpdatePhoneMultiFactorInfoRequest, UpdateRequest, TotpMultiFactorProviderConfig, PasswordPolicyConfig, PasswordPolicyEnforcementState, CustomStrengthOptionsConfig, EmailPrivacyConfig, } from './auth-config';
48
+ export { AllowByDefault, AllowByDefaultWrap, AllowlistOnly, AllowlistOnlyWrap, AuthFactorType, AuthProviderConfig, AuthProviderConfigFilter, BaseAuthProviderConfig, BaseCreateMultiFactorInfoRequest, BaseUpdateMultiFactorInfoRequest, CreateMultiFactorInfoRequest, CreatePhoneMultiFactorInfoRequest, CreateRequest, EmailSignInProviderConfig, ListProviderConfigResults, MultiFactorConfig, MultiFactorConfigState, MultiFactorCreateSettings, MultiFactorUpdateSettings, MultiFactorProviderConfig, OAuthResponseType, OIDCAuthProviderConfig, OIDCUpdateAuthProviderRequest, RecaptchaAction, RecaptchaConfig, RecaptchaKey, RecaptchaKeyClientType, RecaptchaManagedRule, RecaptchaTollFraudManagedRule, RecaptchaProviderEnforcementState, SAMLAuthProviderConfig, SAMLUpdateAuthProviderRequest, SmsRegionConfig, UserProvider, UpdateAuthProviderRequest, UpdateMultiFactorInfoRequest, UpdatePhoneMultiFactorInfoRequest, UpdateRequest, TotpMultiFactorProviderConfig, PasswordPolicyConfig, PasswordPolicyEnforcementState, CustomStrengthOptionsConfig, EmailPrivacyConfig, MobileLinksConfig, MobileLinksDomain, } from './auth-config';
49
49
  export { BaseAuth, DeleteUsersResult, GetUsersResult, ListUsersResult, SessionCookieOptions, } from './base-auth';
50
50
  export { EmailIdentifier, PhoneIdentifier, ProviderIdentifier, UidIdentifier, UserIdentifier, } from './identifier';
51
51
  export { CreateTenantRequest, Tenant, UpdateTenantRequest, } from './tenant';
package/lib/auth/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * Copyright 2020 Google Inc.
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  import { ProjectConfig, UpdateProjectConfigRequest } from './project-config';
3
3
  /**
4
4
  * Manages (gets and updates) the current project config.
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.ProjectConfigManager = void 0;
@@ -1,5 +1,5 @@
1
- /*! firebase-admin v13.0.2 */
2
- import { SmsRegionConfig, MultiFactorConfig, MultiFactorAuthServerConfig, RecaptchaConfig, RecaptchaAuthServerConfig, PasswordPolicyAuthServerConfig, PasswordPolicyConfig, EmailPrivacyConfig } from './auth-config';
1
+ /*! firebase-admin v13.1.0 */
2
+ import { SmsRegionConfig, MultiFactorConfig, MultiFactorAuthServerConfig, RecaptchaConfig, RecaptchaAuthServerConfig, PasswordPolicyAuthServerConfig, PasswordPolicyConfig, EmailPrivacyConfig, MobileLinksConfig } from './auth-config';
3
3
  /**
4
4
  * Interface representing the properties to update on the provided project config.
5
5
  */
@@ -27,6 +27,10 @@ export interface UpdateProjectConfigRequest {
27
27
  * The email privacy configuration to update on the project
28
28
  */
29
29
  emailPrivacyConfig?: EmailPrivacyConfig;
30
+ /**
31
+ * The mobile links configuration for the project
32
+ */
33
+ mobileLinksConfig?: MobileLinksConfig;
30
34
  }
31
35
  /**
32
36
  * Response received when getting or updating the project config.
@@ -37,6 +41,7 @@ export interface ProjectConfigServerResponse {
37
41
  recaptchaConfig?: RecaptchaAuthServerConfig;
38
42
  passwordPolicyConfig?: PasswordPolicyAuthServerConfig;
39
43
  emailPrivacyConfig?: EmailPrivacyConfig;
44
+ mobileLinksConfig?: MobileLinksConfig;
40
45
  }
41
46
  /**
42
47
  * Request to update the project config.
@@ -47,6 +52,7 @@ export interface ProjectConfigClientRequest {
47
52
  recaptchaConfig?: RecaptchaAuthServerConfig;
48
53
  passwordPolicyConfig?: PasswordPolicyAuthServerConfig;
49
54
  emailPrivacyConfig?: EmailPrivacyConfig;
55
+ mobileLinksConfig?: MobileLinksConfig;
50
56
  }
51
57
  /**
52
58
  * Represents a project configuration.
@@ -86,6 +92,10 @@ export declare class ProjectConfig {
86
92
  * The email privacy configuration for the project
87
93
  */
88
94
  readonly emailPrivacyConfig?: EmailPrivacyConfig;
95
+ /**
96
+ * The mobile links configuration for the project
97
+ */
98
+ readonly mobileLinksConfig?: MobileLinksConfig;
89
99
  /**
90
100
  * Validates a project config options object. Throws an error on failure.
91
101
  *
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.ProjectConfig = void 0;
@@ -52,6 +52,7 @@ class ProjectConfig {
52
52
  recaptchaConfig: true,
53
53
  passwordPolicyConfig: true,
54
54
  emailPrivacyConfig: true,
55
+ mobileLinksConfig: true,
55
56
  };
56
57
  // Check for unsupported top level attributes.
57
58
  for (const key in request) {
@@ -79,6 +80,10 @@ class ProjectConfig {
79
80
  if (typeof request.emailPrivacyConfig !== 'undefined') {
80
81
  auth_config_1.EmailPrivacyAuthConfig.validate(request.emailPrivacyConfig);
81
82
  }
83
+ // Validate Mobile Links Config if provided.
84
+ if (typeof request.mobileLinksConfig !== 'undefined') {
85
+ auth_config_1.MobileLinksAuthConfig.validate(request.mobileLinksConfig);
86
+ }
82
87
  }
83
88
  /**
84
89
  * Build the corresponding server request for a UpdateProjectConfigRequest object.
@@ -105,6 +110,9 @@ class ProjectConfig {
105
110
  if (typeof configOptions.emailPrivacyConfig !== 'undefined') {
106
111
  request.emailPrivacyConfig = configOptions.emailPrivacyConfig;
107
112
  }
113
+ if (typeof configOptions.mobileLinksConfig !== 'undefined') {
114
+ request.mobileLinksConfig = configOptions.mobileLinksConfig;
115
+ }
108
116
  return request;
109
117
  }
110
118
  /**
@@ -132,6 +140,9 @@ class ProjectConfig {
132
140
  if (typeof response.emailPrivacyConfig !== 'undefined') {
133
141
  this.emailPrivacyConfig = response.emailPrivacyConfig;
134
142
  }
143
+ if (typeof response.mobileLinksConfig !== 'undefined') {
144
+ this.mobileLinksConfig = response.mobileLinksConfig;
145
+ }
135
146
  }
136
147
  /**
137
148
  * Returns a JSON-serializable representation of this object.
@@ -146,6 +157,7 @@ class ProjectConfig {
146
157
  recaptchaConfig: (0, deep_copy_1.deepCopy)(this.recaptchaConfig),
147
158
  passwordPolicyConfig: (0, deep_copy_1.deepCopy)(this.passwordPolicyConfig),
148
159
  emailPrivacyConfig: (0, deep_copy_1.deepCopy)(this.emailPrivacyConfig),
160
+ mobileLinksConfig: (0, deep_copy_1.deepCopy)(this.mobileLinksConfig),
149
161
  };
150
162
  if (typeof json.smsRegionConfig === 'undefined') {
151
163
  delete json.smsRegionConfig;
@@ -162,6 +174,9 @@ class ProjectConfig {
162
174
  if (typeof json.emailPrivacyConfig === 'undefined') {
163
175
  delete json.emailPrivacyConfig;
164
176
  }
177
+ if (typeof json.mobileLinksConfig === 'undefined') {
178
+ delete json.mobileLinksConfig;
179
+ }
165
180
  return json;
166
181
  }
167
182
  }
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  /*!
3
3
  * Copyright 2019 Google Inc.
4
4
  *
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * Copyright 2019 Google Inc.
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  /*!
3
3
  * Copyright 2019 Google Inc.
4
4
  *
@@ -1,4 +1,4 @@
1
- /*! firebase-admin v13.0.2 */
1
+ /*! firebase-admin v13.1.0 */
2
2
  "use strict";
3
3
  /*!
4
4
  * Copyright 2019 Google Inc.