firebase-admin 11.5.0 → 11.7.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 +1 -1
- package/lib/app/core.js +1 -1
- package/lib/app/credential-factory.d.ts +1 -1
- package/lib/app/credential-factory.js +1 -1
- package/lib/app/credential-internal.d.ts +1 -1
- package/lib/app/credential-internal.js +36 -36
- package/lib/app/credential.d.ts +1 -1
- package/lib/app/credential.js +1 -1
- package/lib/app/firebase-app.d.ts +1 -1
- package/lib/app/firebase-app.js +1 -1
- package/lib/app/firebase-namespace.d.ts +1 -1
- package/lib/app/firebase-namespace.js +1 -1
- package/lib/app/index.d.ts +1 -1
- package/lib/app/index.js +1 -1
- package/lib/app/lifecycle.d.ts +1 -1
- package/lib/app/lifecycle.js +1 -1
- package/lib/app-check/app-check-api-client-internal.d.ts +2 -2
- package/lib/app-check/app-check-api-client-internal.js +1 -1
- package/lib/app-check/app-check-api.d.ts +1 -1
- package/lib/app-check/app-check-api.js +1 -1
- package/lib/app-check/app-check-namespace.d.ts +1 -1
- package/lib/app-check/app-check-namespace.js +1 -1
- package/lib/app-check/app-check.d.ts +1 -1
- package/lib/app-check/app-check.js +1 -1
- package/lib/app-check/index.d.ts +1 -1
- package/lib/app-check/index.js +1 -1
- package/lib/app-check/token-generator.d.ts +1 -1
- package/lib/app-check/token-generator.js +1 -1
- package/lib/app-check/token-verifier.d.ts +1 -1
- package/lib/app-check/token-verifier.js +1 -1
- package/lib/auth/action-code-settings-builder.d.ts +1 -1
- package/lib/auth/action-code-settings-builder.js +1 -1
- package/lib/auth/auth-api-request.d.ts +1 -1
- package/lib/auth/auth-api-request.js +12 -12
- package/lib/auth/auth-config.d.ts +120 -21
- package/lib/auth/auth-config.js +279 -112
- package/lib/auth/auth-namespace.d.ts +1 -1
- package/lib/auth/auth-namespace.js +1 -1
- package/lib/auth/auth.d.ts +1 -1
- package/lib/auth/auth.js +1 -1
- package/lib/auth/base-auth.d.ts +1 -1
- package/lib/auth/base-auth.js +1 -1
- package/lib/auth/identifier.d.ts +2 -2
- package/lib/auth/identifier.js +1 -1
- package/lib/auth/index.d.ts +2 -2
- package/lib/auth/index.js +1 -1
- package/lib/auth/project-config-manager.d.ts +2 -5
- package/lib/auth/project-config-manager.js +2 -5
- package/lib/auth/project-config.d.ts +39 -6
- package/lib/auth/project-config.js +58 -11
- package/lib/auth/tenant-manager.d.ts +1 -1
- package/lib/auth/tenant-manager.js +1 -1
- package/lib/auth/tenant.d.ts +23 -3
- package/lib/auth/tenant.js +56 -35
- package/lib/auth/token-generator.d.ts +1 -1
- package/lib/auth/token-generator.js +1 -1
- package/lib/auth/token-verifier.d.ts +1 -1
- package/lib/auth/token-verifier.js +1 -1
- package/lib/auth/user-import-builder.d.ts +3 -3
- package/lib/auth/user-import-builder.js +1 -1
- package/lib/auth/user-record.d.ts +1 -1
- package/lib/auth/user-record.js +11 -11
- package/lib/credential/index.d.ts +1 -1
- package/lib/credential/index.js +1 -1
- package/lib/database/database-namespace.d.ts +1 -1
- package/lib/database/database-namespace.js +1 -1
- package/lib/database/database.d.ts +1 -1
- package/lib/database/database.js +1 -1
- package/lib/database/index.d.ts +1 -1
- package/lib/database/index.js +1 -1
- package/lib/default-namespace.d.ts +1 -1
- package/lib/default-namespace.js +1 -1
- package/lib/eventarc/cloudevent.d.ts +2 -2
- package/lib/eventarc/cloudevent.js +1 -1
- package/lib/eventarc/eventarc-client-internal.d.ts +1 -1
- package/lib/eventarc/eventarc-client-internal.js +1 -1
- package/lib/eventarc/eventarc-utils.d.ts +2 -2
- package/lib/eventarc/eventarc-utils.js +1 -1
- package/lib/eventarc/eventarc.d.ts +1 -1
- package/lib/eventarc/eventarc.js +1 -1
- package/lib/eventarc/index.d.ts +1 -1
- package/lib/eventarc/index.js +1 -1
- package/lib/extensions/extensions-api-client-internal.d.ts +2 -2
- package/lib/extensions/extensions-api-client-internal.js +1 -1
- package/lib/extensions/extensions-api.d.ts +2 -2
- package/lib/extensions/extensions-api.js +1 -1
- package/lib/extensions/extensions.d.ts +1 -1
- package/lib/extensions/extensions.js +1 -1
- package/lib/extensions/index.d.ts +1 -1
- package/lib/extensions/index.js +1 -1
- package/lib/firebase-namespace-api.d.ts +1 -1
- package/lib/firebase-namespace-api.js +1 -1
- package/lib/firestore/firestore-internal.d.ts +1 -1
- package/lib/firestore/firestore-internal.js +1 -1
- package/lib/firestore/firestore-namespace.d.ts +1 -1
- package/lib/firestore/firestore-namespace.js +1 -1
- package/lib/firestore/index.d.ts +1 -1
- package/lib/firestore/index.js +1 -1
- package/lib/functions/functions-api-client-internal.d.ts +2 -2
- package/lib/functions/functions-api-client-internal.js +1 -1
- package/lib/functions/functions-api.d.ts +3 -3
- package/lib/functions/functions-api.js +1 -1
- package/lib/functions/functions.d.ts +1 -1
- package/lib/functions/functions.js +1 -1
- package/lib/functions/index.d.ts +1 -1
- package/lib/functions/index.js +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/installations/index.d.ts +1 -1
- package/lib/installations/index.js +1 -1
- package/lib/installations/installations-namespace.d.ts +1 -1
- package/lib/installations/installations-namespace.js +1 -1
- package/lib/installations/installations-request-handler.d.ts +1 -1
- package/lib/installations/installations-request-handler.js +1 -1
- package/lib/installations/installations.d.ts +1 -1
- package/lib/installations/installations.js +1 -1
- package/lib/instance-id/index.d.ts +1 -1
- package/lib/instance-id/index.js +1 -1
- package/lib/instance-id/instance-id-namespace.d.ts +1 -1
- package/lib/instance-id/instance-id-namespace.js +1 -1
- package/lib/instance-id/instance-id.d.ts +1 -1
- package/lib/instance-id/instance-id.js +1 -1
- package/lib/machine-learning/index.d.ts +1 -1
- package/lib/machine-learning/index.js +1 -1
- package/lib/machine-learning/machine-learning-api-client.d.ts +3 -3
- package/lib/machine-learning/machine-learning-api-client.js +1 -1
- package/lib/machine-learning/machine-learning-namespace.d.ts +1 -1
- package/lib/machine-learning/machine-learning-namespace.js +1 -1
- package/lib/machine-learning/machine-learning-utils.d.ts +2 -2
- package/lib/machine-learning/machine-learning-utils.js +1 -1
- package/lib/machine-learning/machine-learning.d.ts +1 -1
- package/lib/machine-learning/machine-learning.js +1 -1
- package/lib/messaging/batch-request-internal.d.ts +1 -1
- package/lib/messaging/batch-request-internal.js +1 -1
- package/lib/messaging/index.d.ts +1 -1
- package/lib/messaging/index.js +1 -1
- package/lib/messaging/messaging-api-request-internal.d.ts +12 -2
- package/lib/messaging/messaging-api-request-internal.js +34 -1
- package/lib/messaging/messaging-api.d.ts +11 -2
- package/lib/messaging/messaging-api.js +1 -1
- package/lib/messaging/messaging-errors-internal.d.ts +1 -1
- package/lib/messaging/messaging-errors-internal.js +1 -1
- package/lib/messaging/messaging-internal.d.ts +1 -1
- package/lib/messaging/messaging-internal.js +1 -1
- package/lib/messaging/messaging-namespace.d.ts +1 -1
- package/lib/messaging/messaging-namespace.js +1 -1
- package/lib/messaging/messaging.d.ts +52 -6
- package/lib/messaging/messaging.js +120 -6
- package/lib/project-management/android-app.d.ts +1 -1
- package/lib/project-management/android-app.js +1 -1
- package/lib/project-management/app-metadata.d.ts +1 -1
- package/lib/project-management/app-metadata.js +1 -1
- package/lib/project-management/index.d.ts +1 -1
- package/lib/project-management/index.js +1 -1
- package/lib/project-management/ios-app.d.ts +1 -1
- package/lib/project-management/ios-app.js +1 -1
- package/lib/project-management/project-management-api-request-internal.d.ts +1 -1
- package/lib/project-management/project-management-api-request-internal.js +10 -10
- package/lib/project-management/project-management-namespace.d.ts +1 -1
- package/lib/project-management/project-management-namespace.js +1 -1
- package/lib/project-management/project-management.d.ts +1 -1
- package/lib/project-management/project-management.js +1 -1
- package/lib/remote-config/index.d.ts +1 -1
- package/lib/remote-config/index.js +1 -1
- package/lib/remote-config/remote-config-api-client-internal.d.ts +2 -2
- package/lib/remote-config/remote-config-api-client-internal.js +1 -1
- package/lib/remote-config/remote-config-api.d.ts +4 -4
- package/lib/remote-config/remote-config-api.js +1 -1
- package/lib/remote-config/remote-config-namespace.d.ts +1 -1
- package/lib/remote-config/remote-config-namespace.js +1 -1
- package/lib/remote-config/remote-config.d.ts +1 -1
- package/lib/remote-config/remote-config.js +1 -1
- package/lib/security-rules/index.d.ts +1 -1
- package/lib/security-rules/index.js +1 -1
- package/lib/security-rules/security-rules-api-client-internal.d.ts +1 -1
- package/lib/security-rules/security-rules-api-client-internal.js +1 -1
- package/lib/security-rules/security-rules-internal.d.ts +2 -2
- package/lib/security-rules/security-rules-internal.js +1 -1
- package/lib/security-rules/security-rules-namespace.d.ts +1 -1
- package/lib/security-rules/security-rules-namespace.js +1 -1
- package/lib/security-rules/security-rules.d.ts +1 -1
- package/lib/security-rules/security-rules.js +1 -1
- package/lib/storage/index.d.ts +1 -1
- package/lib/storage/index.js +1 -1
- package/lib/storage/storage-namespace.d.ts +1 -1
- package/lib/storage/storage-namespace.js +1 -1
- package/lib/storage/storage.d.ts +1 -1
- package/lib/storage/storage.js +1 -1
- package/lib/utils/api-request.d.ts +3 -3
- package/lib/utils/api-request.js +7 -7
- package/lib/utils/crypto-signer.d.ts +1 -1
- package/lib/utils/crypto-signer.js +1 -1
- package/lib/utils/deep-copy.d.ts +1 -1
- package/lib/utils/deep-copy.js +1 -1
- package/lib/utils/error.d.ts +14 -2
- package/lib/utils/error.js +19 -1
- package/lib/utils/index.d.ts +2 -2
- package/lib/utils/index.js +1 -1
- package/lib/utils/jwt.d.ts +3 -3
- package/lib/utils/jwt.js +1 -1
- package/lib/utils/validator.d.ts +1 -1
- package/lib/utils/validator.js +1 -1
- package/package.json +10 -10
package/lib/eventarc/eventarc.js
CHANGED
package/lib/eventarc/index.d.ts
CHANGED
package/lib/eventarc/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v11.
|
|
1
|
+
/*! firebase-admin v11.7.0 */
|
|
2
2
|
/*!
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2022 Google Inc.
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
import { PrefixedFirebaseError } from '../utils/error';
|
|
19
|
-
|
|
19
|
+
type ExtensionsErrorCode = 'invalid-argument' | 'not-found' | 'forbidden' | 'internal-error' | 'unknown-error';
|
|
20
20
|
/**
|
|
21
21
|
* Firebase Extensions error code structure. This extends PrefixedFirebaseError.
|
|
22
22
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v11.
|
|
1
|
+
/*! firebase-admin v11.7.0 */
|
|
2
2
|
/*!
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2022 Google Inc.
|
|
@@ -41,4 +41,4 @@
|
|
|
41
41
|
* To report the ongoing status of an extension's function, use `console.log`
|
|
42
42
|
* or the Cloud Functions logger SDK.
|
|
43
43
|
*/
|
|
44
|
-
export
|
|
44
|
+
export type SettableProcessingState = 'NONE' | 'PROCESSING_COMPLETE' | 'PROCESSING_WARNING' | 'PROCESSING_FAILED';
|
package/lib/extensions/index.js
CHANGED
package/lib/firestore/index.d.ts
CHANGED
package/lib/firestore/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v11.
|
|
1
|
+
/*! firebase-admin v11.7.0 */
|
|
2
2
|
/*!
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2021 Google Inc.
|
|
@@ -37,7 +37,7 @@ export interface Task {
|
|
|
37
37
|
export declare const FUNCTIONS_ERROR_CODE_MAPPING: {
|
|
38
38
|
[key: string]: FunctionsErrorCode;
|
|
39
39
|
};
|
|
40
|
-
export
|
|
40
|
+
export type FunctionsErrorCode = 'aborted' | 'invalid-argument' | 'invalid-credential' | 'internal-error' | 'failed-precondition' | 'permission-denied' | 'unauthenticated' | 'not-found' | 'unknown-error';
|
|
41
41
|
/**
|
|
42
42
|
* Firebase Functions error code structure. This extends PrefixedFirebaseError.
|
|
43
43
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v11.
|
|
1
|
+
/*! firebase-admin v11.7.0 */
|
|
2
2
|
/*!
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2021 Google Inc.
|
|
@@ -42,11 +42,11 @@ export interface AbsoluteDelivery {
|
|
|
42
42
|
* Type representing delivery schedule options.
|
|
43
43
|
* `DeliverySchedule` is a union type of {@link DelayDelivery} and {@link AbsoluteDelivery} types.
|
|
44
44
|
*/
|
|
45
|
-
export
|
|
45
|
+
export type DeliverySchedule = DelayDelivery | AbsoluteDelivery;
|
|
46
46
|
/**
|
|
47
47
|
* Type representing task options.
|
|
48
48
|
*/
|
|
49
|
-
export
|
|
49
|
+
export type TaskOptions = DeliverySchedule & TaskOptionsExperimental & {
|
|
50
50
|
/**
|
|
51
51
|
* The deadline for requests sent to the worker. If the worker does not respond by this deadline
|
|
52
52
|
* then the request is cancelled and the attempt is marked as a DEADLINE_EXCEEDED failure.
|
package/lib/functions/index.d.ts
CHANGED
package/lib/functions/index.js
CHANGED
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
package/lib/instance-id/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v11.
|
|
1
|
+
/*! firebase-admin v11.7.0 */
|
|
2
2
|
/*!
|
|
3
3
|
* Copyright 2020 Google Inc.
|
|
4
4
|
*
|
|
@@ -34,7 +34,7 @@ export interface AutoMLTfliteModelOptions extends ModelOptionsBase {
|
|
|
34
34
|
automlModel: string;
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
export
|
|
37
|
+
export type ModelOptions = ModelOptionsBase | GcsTfliteModelOptions | AutoMLTfliteModelOptions;
|
|
38
38
|
/**
|
|
39
39
|
* Interface representing options for listing Models.
|
|
40
40
|
*/
|
|
@@ -63,7 +63,7 @@ export interface StatusErrorResponse {
|
|
|
63
63
|
readonly code: number;
|
|
64
64
|
readonly message: string;
|
|
65
65
|
}
|
|
66
|
-
export
|
|
66
|
+
export type ModelUpdateOptions = ModelOptions & {
|
|
67
67
|
state?: {
|
|
68
68
|
published?: boolean;
|
|
69
69
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v11.
|
|
1
|
+
/*! firebase-admin v11.7.0 */
|
|
2
2
|
/*!
|
|
3
3
|
* Copyright 2020 Google Inc.
|
|
4
4
|
*
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import { PrefixedFirebaseError } from '../utils/error';
|
|
18
|
-
export
|
|
18
|
+
export type MachineLearningErrorCode = 'already-exists' | 'authentication-error' | 'internal-error' | 'invalid-argument' | 'invalid-server-response' | 'not-found' | 'resource-exhausted' | 'service-unavailable' | 'unknown-error' | 'cancelled' | 'deadline-exceeded' | 'permission-denied' | 'failed-precondition' | 'aborted' | 'out-of-range' | 'data-loss' | 'unauthenticated';
|
|
19
19
|
export declare class FirebaseMachineLearningError extends PrefixedFirebaseError {
|
|
20
20
|
static fromOperationError(code: number, message: string): FirebaseMachineLearningError;
|
|
21
21
|
constructor(code: MachineLearningErrorCode, message: string);
|
package/lib/messaging/index.d.ts
CHANGED
package/lib/messaging/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v11.
|
|
1
|
+
/*! firebase-admin v11.7.0 */
|
|
2
2
|
/*!
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2017 Google Inc.
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*/
|
|
18
18
|
import { App } from '../app';
|
|
19
19
|
import { SubRequest } from './batch-request-internal';
|
|
20
|
-
import { BatchResponse } from './messaging-api';
|
|
20
|
+
import { SendResponse, BatchResponse } from './messaging-api';
|
|
21
21
|
/**
|
|
22
22
|
* Class that provides a mechanism to send requests to the Firebase Cloud Messaging backend.
|
|
23
23
|
*/
|
|
@@ -38,6 +38,15 @@ export declare class FirebaseMessagingRequestHandler {
|
|
|
38
38
|
* @returns A promise that resolves with the response.
|
|
39
39
|
*/
|
|
40
40
|
invokeRequestHandler(host: string, path: string, requestData: object): Promise<object>;
|
|
41
|
+
/**
|
|
42
|
+
* Invokes the request handler with the provided request data.
|
|
43
|
+
*
|
|
44
|
+
* @param host - The host to which to send the request.
|
|
45
|
+
* @param path - The path to which to send the request.
|
|
46
|
+
* @param requestData - The request data.
|
|
47
|
+
* @returns A promise that resolves with the {@link SendResponse}.
|
|
48
|
+
*/
|
|
49
|
+
invokeRequestHandlerForSendResponse(host: string, path: string, requestData: object): Promise<SendResponse>;
|
|
41
50
|
/**
|
|
42
51
|
* Sends the given array of sub requests as a single batch to FCM, and parses the result into
|
|
43
52
|
* a BatchResponse object.
|
|
@@ -47,4 +56,5 @@ export declare class FirebaseMessagingRequestHandler {
|
|
|
47
56
|
*/
|
|
48
57
|
sendBatchRequest(requests: SubRequest[]): Promise<BatchResponse>;
|
|
49
58
|
private buildSendResponse;
|
|
59
|
+
private buildSendResponseFromError;
|
|
50
60
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v11.
|
|
1
|
+
/*! firebase-admin v11.7.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
4
|
* @license
|
|
@@ -82,6 +82,33 @@ class FirebaseMessagingRequestHandler {
|
|
|
82
82
|
throw err;
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* Invokes the request handler with the provided request data.
|
|
87
|
+
*
|
|
88
|
+
* @param host - The host to which to send the request.
|
|
89
|
+
* @param path - The path to which to send the request.
|
|
90
|
+
* @param requestData - The request data.
|
|
91
|
+
* @returns A promise that resolves with the {@link SendResponse}.
|
|
92
|
+
*/
|
|
93
|
+
invokeRequestHandlerForSendResponse(host, path, requestData) {
|
|
94
|
+
const request = {
|
|
95
|
+
method: FIREBASE_MESSAGING_HTTP_METHOD,
|
|
96
|
+
url: `https://${host}${path}`,
|
|
97
|
+
data: requestData,
|
|
98
|
+
headers: LEGACY_FIREBASE_MESSAGING_HEADERS,
|
|
99
|
+
timeout: FIREBASE_MESSAGING_TIMEOUT,
|
|
100
|
+
};
|
|
101
|
+
return this.httpClient.send(request).then((response) => {
|
|
102
|
+
return this.buildSendResponse(response);
|
|
103
|
+
})
|
|
104
|
+
.catch((err) => {
|
|
105
|
+
if (err instanceof api_request_1.HttpError) {
|
|
106
|
+
return this.buildSendResponseFromError(err);
|
|
107
|
+
}
|
|
108
|
+
// Re-throw the error if it already has the proper format.
|
|
109
|
+
throw err;
|
|
110
|
+
});
|
|
111
|
+
}
|
|
85
112
|
/**
|
|
86
113
|
* Sends the given array of sub requests as a single batch to FCM, and parses the result into
|
|
87
114
|
* a BatchResponse object.
|
|
@@ -122,5 +149,11 @@ class FirebaseMessagingRequestHandler {
|
|
|
122
149
|
}
|
|
123
150
|
return result;
|
|
124
151
|
}
|
|
152
|
+
buildSendResponseFromError(err) {
|
|
153
|
+
return {
|
|
154
|
+
success: false,
|
|
155
|
+
error: (0, messaging_errors_internal_1.createFirebaseError)(err)
|
|
156
|
+
};
|
|
157
|
+
}
|
|
125
158
|
}
|
|
126
159
|
exports.FirebaseMessagingRequestHandler = FirebaseMessagingRequestHandler;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v11.
|
|
1
|
+
/*! firebase-admin v11.7.0 */
|
|
2
2
|
/*!
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2021 Google Inc.
|
|
@@ -39,7 +39,7 @@ export interface ConditionMessage extends BaseMessage {
|
|
|
39
39
|
* Payload for the {@link Messaging.send} operation. The payload contains all the fields
|
|
40
40
|
* in the BaseMessage type, and exactly one of token, topic or condition.
|
|
41
41
|
*/
|
|
42
|
-
export
|
|
42
|
+
export type Message = TokenMessage | TopicMessage | ConditionMessage;
|
|
43
43
|
/**
|
|
44
44
|
* Payload for the {@link Messaging.sendMulticast} method. The payload contains all the fields
|
|
45
45
|
* in the BaseMessage type, and a list of tokens.
|
|
@@ -830,6 +830,11 @@ export interface MessagingOptions {
|
|
|
830
830
|
restrictedPackageName?: string;
|
|
831
831
|
[key: string]: any | undefined;
|
|
832
832
|
}
|
|
833
|
+
/**
|
|
834
|
+
* Individual status response payload from single devices
|
|
835
|
+
*
|
|
836
|
+
* @deprecated Returned by {@link Messaging#sendToDevice}, which is also deprecated.
|
|
837
|
+
*/
|
|
833
838
|
export interface MessagingDeviceResult {
|
|
834
839
|
/**
|
|
835
840
|
* The error that occurred when processing the message for the recipient.
|
|
@@ -853,6 +858,8 @@ export interface MessagingDeviceResult {
|
|
|
853
858
|
* See
|
|
854
859
|
* {@link https://firebase.google.com/docs/cloud-messaging/admin/send-messages#send_to_individual_devices |
|
|
855
860
|
* Send to individual devices} for code samples and detailed documentation.
|
|
861
|
+
*
|
|
862
|
+
* @deprecated Returned by {@link Messaging.sendToDevice}, which is also deprecated.
|
|
856
863
|
*/
|
|
857
864
|
export interface MessagingDevicesResponse {
|
|
858
865
|
canonicalRegistrationTokenCount: number;
|
|
@@ -868,6 +875,8 @@ export interface MessagingDevicesResponse {
|
|
|
868
875
|
* See
|
|
869
876
|
* {@link https://firebase.google.com/docs/cloud-messaging/send-message?authuser=0#send_messages_to_device_groups |
|
|
870
877
|
* Send messages to device groups} for code samples and detailed documentation.
|
|
878
|
+
*
|
|
879
|
+
* @deprecated Returned by {@link Messaging.sendToDeviceGroup}, which is also deprecated.
|
|
871
880
|
*/
|
|
872
881
|
export interface MessagingDeviceGroupResponse {
|
|
873
882
|
/**
|