firebase-admin 13.4.0 → 13.6.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/lib/app/core.d.ts +2 -2
- package/lib/app/core.js +2 -2
- package/lib/app/credential-factory.d.ts +2 -2
- package/lib/app/credential-factory.js +2 -2
- package/lib/app/credential-internal.d.ts +2 -2
- package/lib/app/credential-internal.js +2 -2
- package/lib/app/credential.d.ts +2 -2
- package/lib/app/credential.js +2 -2
- package/lib/app/firebase-app.d.ts +2 -2
- package/lib/app/firebase-app.js +24 -3
- package/lib/app/firebase-namespace.d.ts +2 -2
- package/lib/app/firebase-namespace.js +2 -2
- package/lib/app/index.d.ts +2 -2
- package/lib/app/index.js +2 -2
- package/lib/app/lifecycle.d.ts +58 -2
- package/lib/app/lifecycle.js +142 -24
- package/lib/app-check/app-check-api-client-internal.d.ts +2 -2
- package/lib/app-check/app-check-api-client-internal.js +2 -2
- package/lib/app-check/app-check-api.d.ts +2 -2
- package/lib/app-check/app-check-api.js +2 -2
- package/lib/app-check/app-check-namespace.d.ts +2 -2
- package/lib/app-check/app-check-namespace.js +2 -2
- package/lib/app-check/app-check.d.ts +2 -2
- package/lib/app-check/app-check.js +2 -2
- package/lib/app-check/index.d.ts +2 -2
- package/lib/app-check/index.js +2 -2
- package/lib/app-check/token-generator.d.ts +2 -2
- package/lib/app-check/token-generator.js +2 -2
- package/lib/app-check/token-verifier.d.ts +2 -2
- package/lib/app-check/token-verifier.js +2 -2
- package/lib/auth/action-code-settings-builder.d.ts +2 -2
- package/lib/auth/action-code-settings-builder.js +2 -2
- package/lib/auth/auth-api-request.d.ts +2 -2
- package/lib/auth/auth-api-request.js +2 -2
- package/lib/auth/auth-config.d.ts +2 -2
- package/lib/auth/auth-config.js +2 -2
- package/lib/auth/auth-namespace.d.ts +2 -2
- package/lib/auth/auth-namespace.js +2 -2
- package/lib/auth/auth.d.ts +2 -2
- package/lib/auth/auth.js +2 -2
- package/lib/auth/base-auth.d.ts +2 -2
- package/lib/auth/base-auth.js +2 -2
- package/lib/auth/identifier.d.ts +2 -2
- package/lib/auth/identifier.js +2 -2
- package/lib/auth/index.d.ts +2 -2
- package/lib/auth/index.js +2 -2
- 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 +2 -2
- package/lib/auth/tenant-manager.d.ts +2 -2
- package/lib/auth/tenant-manager.js +2 -2
- package/lib/auth/tenant.d.ts +2 -2
- package/lib/auth/tenant.js +2 -2
- package/lib/auth/token-generator.d.ts +2 -2
- package/lib/auth/token-generator.js +2 -2
- package/lib/auth/token-verifier.d.ts +2 -2
- package/lib/auth/token-verifier.js +2 -2
- package/lib/auth/user-import-builder.d.ts +2 -2
- package/lib/auth/user-import-builder.js +2 -2
- package/lib/auth/user-record.d.ts +2 -2
- package/lib/auth/user-record.js +2 -2
- package/lib/credential/index.d.ts +2 -2
- package/lib/credential/index.js +2 -2
- package/lib/data-connect/data-connect-api-client-internal.d.ts +2 -2
- package/lib/data-connect/data-connect-api-client-internal.js +181 -52
- package/lib/data-connect/data-connect-api.d.ts +30 -5
- package/lib/data-connect/data-connect-api.js +2 -2
- package/lib/data-connect/data-connect.d.ts +56 -10
- package/lib/data-connect/data-connect.js +22 -9
- package/lib/data-connect/index.d.ts +3 -18
- package/lib/data-connect/index.js +16 -10
- package/lib/data-connect/validate-admin-args.d.ts +18 -0
- package/lib/data-connect/validate-admin-args.js +79 -0
- package/lib/database/database-namespace.d.ts +2 -2
- package/lib/database/database-namespace.js +2 -2
- package/lib/database/database.d.ts +2 -2
- package/lib/database/database.js +2 -2
- package/lib/database/index.d.ts +2 -2
- package/lib/database/index.js +2 -2
- package/lib/default-namespace.d.ts +2 -2
- package/lib/default-namespace.js +2 -2
- package/lib/esm/data-connect/index.js +1 -0
- package/lib/eventarc/cloudevent.d.ts +2 -2
- package/lib/eventarc/cloudevent.js +2 -2
- package/lib/eventarc/eventarc-client-internal.d.ts +2 -2
- package/lib/eventarc/eventarc-client-internal.js +2 -2
- package/lib/eventarc/eventarc-utils.d.ts +2 -2
- package/lib/eventarc/eventarc-utils.js +2 -2
- package/lib/eventarc/eventarc.d.ts +2 -2
- package/lib/eventarc/eventarc.js +2 -2
- package/lib/eventarc/index.d.ts +2 -2
- package/lib/eventarc/index.js +2 -2
- package/lib/extensions/extensions-api-client-internal.d.ts +2 -2
- package/lib/extensions/extensions-api-client-internal.js +2 -2
- package/lib/extensions/extensions-api.d.ts +2 -2
- package/lib/extensions/extensions-api.js +2 -2
- package/lib/extensions/extensions.d.ts +2 -2
- package/lib/extensions/extensions.js +2 -2
- package/lib/extensions/index.d.ts +2 -2
- package/lib/extensions/index.js +2 -2
- package/lib/firebase-namespace-api.d.ts +2 -2
- package/lib/firebase-namespace-api.js +2 -2
- package/lib/firestore/firestore-internal.d.ts +2 -2
- package/lib/firestore/firestore-internal.js +2 -2
- package/lib/firestore/firestore-namespace.d.ts +2 -2
- package/lib/firestore/firestore-namespace.js +2 -2
- package/lib/firestore/index.d.ts +2 -2
- package/lib/firestore/index.js +2 -2
- package/lib/functions/functions-api-client-internal.d.ts +2 -2
- package/lib/functions/functions-api-client-internal.js +2 -2
- package/lib/functions/functions-api.d.ts +2 -2
- package/lib/functions/functions-api.js +2 -2
- package/lib/functions/functions.d.ts +2 -2
- package/lib/functions/functions.js +2 -2
- package/lib/functions/index.d.ts +2 -2
- package/lib/functions/index.js +2 -2
- package/lib/index.d.ts +2 -2
- package/lib/index.js +2 -2
- package/lib/installations/index.d.ts +2 -2
- package/lib/installations/index.js +2 -2
- package/lib/installations/installations-namespace.d.ts +2 -2
- package/lib/installations/installations-namespace.js +2 -2
- package/lib/installations/installations-request-handler.d.ts +2 -2
- package/lib/installations/installations-request-handler.js +2 -2
- package/lib/installations/installations.d.ts +2 -2
- package/lib/installations/installations.js +2 -2
- package/lib/instance-id/index.d.ts +2 -2
- package/lib/instance-id/index.js +2 -2
- 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 +2 -2
- package/lib/instance-id/instance-id.js +2 -2
- package/lib/machine-learning/index.d.ts +2 -2
- package/lib/machine-learning/index.js +2 -2
- package/lib/machine-learning/machine-learning-api-client.d.ts +2 -2
- package/lib/machine-learning/machine-learning-api-client.js +2 -2
- package/lib/machine-learning/machine-learning-namespace.d.ts +2 -2
- package/lib/machine-learning/machine-learning-namespace.js +2 -2
- package/lib/machine-learning/machine-learning-utils.d.ts +2 -2
- package/lib/machine-learning/machine-learning-utils.js +2 -2
- package/lib/machine-learning/machine-learning.d.ts +2 -2
- package/lib/machine-learning/machine-learning.js +2 -2
- package/lib/messaging/index.d.ts +2 -2
- package/lib/messaging/index.js +2 -2
- package/lib/messaging/messaging-api-request-internal.d.ts +2 -2
- package/lib/messaging/messaging-api-request-internal.js +2 -2
- package/lib/messaging/messaging-api.d.ts +6 -2
- package/lib/messaging/messaging-api.js +2 -2
- package/lib/messaging/messaging-errors-internal.d.ts +2 -2
- package/lib/messaging/messaging-errors-internal.js +2 -2
- package/lib/messaging/messaging-internal.d.ts +2 -2
- package/lib/messaging/messaging-internal.js +18 -2
- package/lib/messaging/messaging-namespace.d.ts +2 -2
- package/lib/messaging/messaging-namespace.js +2 -2
- package/lib/messaging/messaging.d.ts +2 -2
- package/lib/messaging/messaging.js +2 -2
- package/lib/project-management/android-app.d.ts +2 -2
- package/lib/project-management/android-app.js +2 -2
- package/lib/project-management/app-metadata.d.ts +2 -2
- package/lib/project-management/app-metadata.js +2 -2
- package/lib/project-management/index.d.ts +2 -2
- package/lib/project-management/index.js +2 -2
- package/lib/project-management/ios-app.d.ts +2 -2
- package/lib/project-management/ios-app.js +2 -2
- package/lib/project-management/project-management-api-request-internal.d.ts +2 -2
- package/lib/project-management/project-management-api-request-internal.js +2 -2
- package/lib/project-management/project-management-namespace.d.ts +2 -2
- package/lib/project-management/project-management-namespace.js +2 -2
- package/lib/project-management/project-management.d.ts +2 -2
- package/lib/project-management/project-management.js +2 -2
- package/lib/remote-config/condition-evaluator-internal.d.ts +2 -2
- package/lib/remote-config/condition-evaluator-internal.js +2 -2
- package/lib/remote-config/index.d.ts +2 -2
- package/lib/remote-config/index.js +2 -2
- package/lib/remote-config/internal/value-impl.d.ts +2 -2
- package/lib/remote-config/internal/value-impl.js +2 -2
- package/lib/remote-config/remote-config-api-client-internal.d.ts +2 -2
- package/lib/remote-config/remote-config-api-client-internal.js +2 -2
- package/lib/remote-config/remote-config-api.d.ts +2 -2
- package/lib/remote-config/remote-config-api.js +2 -2
- package/lib/remote-config/remote-config-namespace.d.ts +2 -2
- package/lib/remote-config/remote-config-namespace.js +2 -2
- package/lib/remote-config/remote-config.d.ts +2 -2
- package/lib/remote-config/remote-config.js +2 -2
- package/lib/security-rules/index.d.ts +2 -2
- package/lib/security-rules/index.js +2 -2
- package/lib/security-rules/security-rules-api-client-internal.d.ts +2 -2
- package/lib/security-rules/security-rules-api-client-internal.js +2 -2
- package/lib/security-rules/security-rules-internal.d.ts +2 -2
- package/lib/security-rules/security-rules-internal.js +2 -2
- package/lib/security-rules/security-rules-namespace.d.ts +2 -2
- package/lib/security-rules/security-rules-namespace.js +2 -2
- package/lib/security-rules/security-rules.d.ts +2 -2
- package/lib/security-rules/security-rules.js +2 -2
- package/lib/storage/index.d.ts +2 -2
- package/lib/storage/index.js +2 -2
- package/lib/storage/storage-namespace.d.ts +2 -2
- package/lib/storage/storage-namespace.js +2 -2
- package/lib/storage/storage.d.ts +2 -2
- package/lib/storage/storage.js +2 -2
- package/lib/storage/utils.d.ts +1 -1
- package/lib/storage/utils.js +1 -1
- package/lib/utils/api-request.d.ts +2 -2
- package/lib/utils/api-request.js +8 -4
- package/lib/utils/crypto-signer.d.ts +2 -2
- package/lib/utils/crypto-signer.js +2 -2
- package/lib/utils/deep-copy.d.ts +2 -2
- package/lib/utils/deep-copy.js +2 -2
- package/lib/utils/error.d.ts +2 -2
- package/lib/utils/error.js +2 -2
- package/lib/utils/index.d.ts +2 -2
- package/lib/utils/index.js +2 -2
- package/lib/utils/jwt.d.ts +2 -2
- package/lib/utils/jwt.js +2 -2
- package/lib/utils/validator.d.ts +2 -2
- package/lib/utils/validator.js +2 -2
- package/package.json +8 -5
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
4
|
* @license
|
|
5
|
-
* Copyright 2021 Google
|
|
5
|
+
* Copyright 2021 Google LLC
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
8
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2021 Google
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
|
-
* Copyright 2021 Google
|
|
4
|
+
* Copyright 2021 Google LLC
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2020 Google
|
|
3
|
+
* Copyright 2020 Google LLC
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
package/lib/instance-id/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
|
-
* Copyright 2020 Google
|
|
4
|
+
* Copyright 2020 Google LLC
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2020 Google
|
|
3
|
+
* Copyright 2020 Google LLC
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
|
-
* Copyright 2020 Google
|
|
4
|
+
* Copyright 2020 Google LLC
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2020 Google
|
|
3
|
+
* Copyright 2020 Google LLC
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
|
-
* Copyright 2020 Google
|
|
4
|
+
* Copyright 2020 Google LLC
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2020 Google
|
|
3
|
+
* Copyright 2020 Google LLC
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
|
-
* Copyright 2020 Google
|
|
4
|
+
* Copyright 2020 Google LLC
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2021 Google
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
|
-
* Copyright 2021 Google
|
|
4
|
+
* Copyright 2021 Google LLC
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2020 Google
|
|
3
|
+
* Copyright 2020 Google LLC
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
|
-
* Copyright 2020 Google
|
|
4
|
+
* Copyright 2020 Google LLC
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2020 Google
|
|
3
|
+
* Copyright 2020 Google LLC
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
|
-
* Copyright 2020 Google
|
|
4
|
+
* Copyright 2020 Google LLC
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
package/lib/messaging/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2020 Google
|
|
3
|
+
* Copyright 2020 Google LLC
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
package/lib/messaging/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
|
-
* Copyright 2020 Google
|
|
4
|
+
* Copyright 2020 Google LLC
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
/*!
|
|
3
3
|
* @license
|
|
4
|
-
* Copyright 2017 Google
|
|
4
|
+
* Copyright 2017 Google LLC
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
4
|
* @license
|
|
5
|
-
* Copyright 2017 Google
|
|
5
|
+
* Copyright 2017 Google LLC
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
8
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
/*!
|
|
3
3
|
* @license
|
|
4
|
-
* Copyright 2021 Google
|
|
4
|
+
* Copyright 2021 Google LLC
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -212,6 +212,10 @@ export interface WebpushNotification {
|
|
|
212
212
|
* Apple documentation} for various headers and payload fields supported by APNs.
|
|
213
213
|
*/
|
|
214
214
|
export interface ApnsConfig {
|
|
215
|
+
/**
|
|
216
|
+
* APN `pushToStartToken` or `pushToken` to start or update live activities.
|
|
217
|
+
*/
|
|
218
|
+
liveActivityToken?: string;
|
|
215
219
|
/**
|
|
216
220
|
* A collection of APNs headers. Header values must be strings.
|
|
217
221
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
4
|
* @license
|
|
5
|
-
* Copyright 2021 Google
|
|
5
|
+
* Copyright 2021 Google LLC
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
8
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2019 Google
|
|
3
|
+
* Copyright 2019 Google LLC
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
|
-
* Copyright 2019 Google
|
|
4
|
+
* Copyright 2019 Google LLC
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2020 Google
|
|
3
|
+
* Copyright 2020 Google LLC
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
|
-
* Copyright 2020 Google
|
|
4
|
+
* Copyright 2020 Google LLC
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -107,9 +107,25 @@ function validateApnsConfig(config) {
|
|
|
107
107
|
else if (!validator.isNonNullObject(config)) {
|
|
108
108
|
throw new error_1.FirebaseMessagingError(error_1.MessagingClientErrorCode.INVALID_PAYLOAD, 'apns must be a non-null object');
|
|
109
109
|
}
|
|
110
|
+
validateApnsLiveActivityToken(config.liveActivityToken);
|
|
110
111
|
validateStringMap(config.headers, 'apns.headers');
|
|
111
112
|
validateApnsPayload(config.payload);
|
|
112
113
|
validateApnsFcmOptions(config.fcmOptions);
|
|
114
|
+
const propertyMappings = {
|
|
115
|
+
liveActivityToken: 'live_activity_token'
|
|
116
|
+
};
|
|
117
|
+
(0, index_1.renameProperties)(config, propertyMappings);
|
|
118
|
+
}
|
|
119
|
+
function validateApnsLiveActivityToken(liveActivityToken) {
|
|
120
|
+
if (typeof liveActivityToken === 'undefined') {
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
else if (!validator.isString(liveActivityToken)) {
|
|
124
|
+
throw new error_1.FirebaseMessagingError(error_1.MessagingClientErrorCode.INVALID_PAYLOAD, 'apns.liveActivityToken must be a string value');
|
|
125
|
+
}
|
|
126
|
+
else if (!validator.isNonEmptyString(liveActivityToken)) {
|
|
127
|
+
throw new error_1.FirebaseMessagingError(error_1.MessagingClientErrorCode.INVALID_PAYLOAD, 'apns.liveActivityToken must be a non-empty string');
|
|
128
|
+
}
|
|
113
129
|
}
|
|
114
130
|
/**
|
|
115
131
|
* Checks if the given ApnsFcmOptions object is valid.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2021 Google
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
|
-
* Copyright 2021 Google
|
|
4
|
+
* Copyright 2021 Google LLC
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
/*!
|
|
3
3
|
* @license
|
|
4
|
-
* Copyright 2017 Google
|
|
4
|
+
* Copyright 2017 Google LLC
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
4
|
* @license
|
|
5
|
-
* Copyright 2017 Google
|
|
5
|
+
* Copyright 2017 Google LLC
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
8
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2018 Google
|
|
3
|
+
* Copyright 2018 Google LLC
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
|
-
* Copyright 2018 Google
|
|
4
|
+
* Copyright 2018 Google LLC
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2021 Google
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
|
-
* Copyright 2021 Google
|
|
4
|
+
* Copyright 2021 Google LLC
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2020 Google
|
|
3
|
+
* Copyright 2020 Google LLC
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
|
-
* Copyright 2020 Google
|
|
4
|
+
* Copyright 2020 Google LLC
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2018 Google
|
|
3
|
+
* Copyright 2018 Google LLC
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
|
-
* Copyright 2018 Google
|
|
4
|
+
* Copyright 2018 Google LLC
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2018 Google
|
|
3
|
+
* Copyright 2018 Google LLC
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
|
-
* Copyright 2018 Google
|
|
4
|
+
* Copyright 2018 Google LLC
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2021 Google
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
|
-
* Copyright 2021 Google
|
|
4
|
+
* Copyright 2021 Google LLC
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2018 Google
|
|
3
|
+
* Copyright 2018 Google LLC
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
|
-
* Copyright 2018 Google
|
|
4
|
+
* Copyright 2018 Google LLC
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2024 Google
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2024 Google
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2020 Google
|
|
3
|
+
* Copyright 2020 Google LLC
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
|
-
* Copyright 2020 Google
|
|
4
|
+
* Copyright 2020 Google LLC
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2024 Google
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2024 Google
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2020 Google
|
|
3
|
+
* Copyright 2020 Google LLC
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
|
-
* Copyright 2020 Google
|
|
4
|
+
* Copyright 2020 Google LLC
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.6.0 */
|
|
2
2
|
/*!
|
|
3
|
-
* Copyright 2021 Google
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|