@pyric/cli 0.1.0-alpha.11 → 0.1.0-alpha.12
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/dist/conformance/.generated/can-i-use-browser.d.ts.map +1 -1
- package/dist/conformance/.generated/can-i-use-browser.js +1 -1
- package/dist/conformance/.generated/can-i-use-browser.js.map +1 -1
- package/dist/conformance/.generated/can-i-use.d.ts.map +1 -1
- package/dist/conformance/.generated/can-i-use.js +2 -2
- package/dist/conformance/.generated/can-i-use.js.map +1 -1
- package/dist/serve/docs-ui/docs/_rhythm/index.html +1 -1
- package/dist/serve/docs-ui/docs/agent/set-up-your-agent/index.html +1 -1
- package/dist/serve/docs-ui/docs/agent/watch-and-review/index.html +1 -1
- package/dist/serve/docs-ui/docs/agent/work-with-an-agent/index.html +1 -1
- package/dist/serve/docs-ui/docs/ai-compat/index.html +1 -1
- package/dist/serve/docs-ui/docs/api-reference/index.html +2 -2
- package/dist/serve/docs-ui/docs/api-reference.md +1 -1
- package/dist/serve/docs-ui/docs/app-compat/index.html +1 -1
- package/dist/serve/docs-ui/docs/auth-compat/index.html +1 -1
- package/dist/serve/docs-ui/docs/build/ai-logic/index.html +1 -1
- package/dist/serve/docs-ui/docs/build/authentication/index.html +1 -1
- package/dist/serve/docs-ui/docs/build/cloud-firestore/index.html +1 -1
- package/dist/serve/docs-ui/docs/build/cloud-messaging/index.html +1 -1
- package/dist/serve/docs-ui/docs/build/cloud-storage/index.html +1 -1
- package/dist/serve/docs-ui/docs/build/realtime-database/index.html +1 -1
- package/dist/serve/docs-ui/docs/conformance-scores/index.html +1 -1
- package/dist/serve/docs-ui/docs/create-pyric-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/database-compat/index.html +1 -1
- package/dist/serve/docs-ui/docs/firestore-compat/index.html +1 -1
- package/dist/serve/docs-ui/docs/functions-rtdb-compat/index.html +1 -1
- package/dist/serve/docs-ui/docs/get-started/how-the-swap-works/index.html +1 -1
- package/dist/serve/docs-ui/docs/get-started/start-building/index.html +1 -1
- package/dist/serve/docs-ui/docs/index.json +200 -25
- package/dist/serve/docs-ui/docs/messaging-compat/index.html +1 -1
- package/dist/serve/docs-ui/docs/observe/see-whats-happening/index.html +1 -1
- package/dist/serve/docs-ui/docs/observe/shape-your-data/index.html +1 -1
- package/dist/serve/docs-ui/docs/overview/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-admin-app-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-admin-auth-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-admin-database-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-admin-firestore-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-admin-messaging-reference-api/index.html +916 -0
- package/dist/serve/docs-ui/docs/pyric-admin-messaging-reference-api.md +706 -0
- package/dist/serve/docs-ui/docs/pyric-admin-storage-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-ai-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-ai-scripting-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-app-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-auth-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-cli-assurance-browser-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-cli-assurance-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-cli-bridge-client-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-cli-bridge-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-cli-conformance-browser-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-cli-conformance-docs-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-cli-conformance-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-cli-credentials-node-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-cli-discover-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-cli-register-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-cli-remote-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-cli-serve-worker-reference-api/index.html +131 -66
- package/dist/serve/docs-ui/docs/pyric-cli-serve-worker-reference-api.md +130 -65
- package/dist/serve/docs-ui/docs/pyric-cli-verify-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-cli-vite-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-database-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-firestore-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-messaging-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-messaging-sw-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-rules-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-sandbox-database-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-sandbox-firestore-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-sandbox-reference-api/index.html +37 -14
- package/dist/serve/docs-ui/docs/pyric-sandbox-reference-api.md +28 -8
- package/dist/serve/docs-ui/docs/pyric-storage-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-ui-agents-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-ui-auth-hooks-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-ui-auth-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-ui-events-hooks-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-ui-events-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-ui-firestore-hooks-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-ui-firestore-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-ui-primitives-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-ui-rtdb-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-ui-rules-hooks-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-ui-rules-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-ui-storage-hooks-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-ui-storage-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-ui-traffic-hooks-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/pyric-ui-traffic-reference-api/index.html +1 -1
- package/dist/serve/docs-ui/docs/rules-compat/index.html +1 -1
- package/dist/serve/docs-ui/docs/secure/audit-your-rules/index.html +1 -1
- package/dist/serve/docs-ui/docs/secure/firestore-rules-limits/index.html +1 -1
- package/dist/serve/docs-ui/docs/secure/read-a-denial/index.html +1 -1
- package/dist/serve/docs-ui/docs/secure/rtdb-rules-in-typescript/index.html +1 -1
- package/dist/serve/docs-ui/docs/secure/rules-standard-library/index.html +1 -1
- package/dist/serve/docs-ui/docs/secure/secure-it-with-rules/index.html +1 -1
- package/dist/serve/docs-ui/docs/secure/simulate-and-lint/index.html +1 -1
- package/dist/serve/docs-ui/docs/secure/write-a-rules-test-suite/index.html +1 -1
- package/dist/serve/docs-ui/docs/ship/ship-to-production/index.html +1 -1
- package/dist/serve/docs-ui/docs/ship/test-in-node/index.html +1 -1
- package/dist/serve/docs-ui/docs/storage-compat/index.html +1 -1
- package/dist/serve/docs-ui/docs/trust/how-we-know-it-matches-firebase/index.html +1 -1
- package/dist/serve/docs-ui/docs/trust/versioning-and-compatibility/index.html +1 -1
- package/dist/serve/docs-ui/llms.txt +1 -1
- package/dist/serve/worker/host/core.js +1 -1
- package/dist/serve/worker/host/core.js.map +1 -1
- package/dist/serve/worker/host/firestore-writes.d.ts.map +1 -1
- package/dist/serve/worker/host/firestore-writes.js +3 -2
- package/dist/serve/worker/host/firestore-writes.js.map +1 -1
- package/dist/serve/worker/index.d.ts +2 -1
- package/dist/serve/worker/index.d.ts.map +1 -1
- package/dist/serve/worker/index.js +2 -1
- package/dist/serve/worker/index.js.map +1 -1
- package/dist/serve/worker/protocol.js +2 -2
- package/dist/serve/worker/protocol.js.map +1 -1
- package/package.json +5 -4
- package/src/assurance/.generated/conformance-verdicts.ts +1090 -0
- package/src/assurance/attachment.ts +211 -0
- package/src/assurance/browser.ts +80 -0
- package/src/assurance/campaign.ts +496 -0
- package/src/assurance/capabilities.ts +446 -0
- package/src/assurance/cases.ts +43 -0
- package/src/assurance/index.ts +75 -0
- package/src/assurance/runner.ts +885 -0
- package/src/assurance/tool-names.ts +15 -0
- package/src/assurance/tools.ts +830 -0
- package/src/assurance/types.ts +352 -0
- package/src/assurance/validation.ts +434 -0
- package/src/bridge/client/bridge.ts +550 -0
- package/src/bridge/client/dispatch.ts +137 -0
- package/src/bridge/client.ts +45 -0
- package/src/bridge/protocol.ts +351 -0
- package/src/bridge/server/audit.ts +53 -0
- package/src/bridge/server/bridge.ts +597 -0
- package/src/bridge/server/headless.ts +160 -0
- package/src/bridge/server/json-schema-to-zod.ts +108 -0
- package/src/bridge/server/local-bridge.ts +66 -0
- package/src/bridge/server/logger.ts +50 -0
- package/src/bridge/server/mcp-contract.ts +93 -0
- package/src/bridge/server/mcp.ts +129 -0
- package/src/bridge/server/peer.ts +232 -0
- package/src/bridge/server/standalone.ts +347 -0
- package/src/bridge/server/tool-metadata.ts +99 -0
- package/src/bridge/server.ts +28 -0
- package/src/cli/can-i-use.ts +50 -0
- package/src/cli/cli.test.ts +493 -0
- package/src/cli/database-rules.ts +329 -0
- package/src/cli/dev-runner.ts +282 -0
- package/src/cli/firebase-json.ts +100 -0
- package/src/cli/firestore-indexes.ts +70 -0
- package/src/cli/index.ts +425 -0
- package/src/cli/init.ts +260 -0
- package/src/cli/mcp-proxy.ts +196 -0
- package/src/cli/parse-args.ts +80 -0
- package/src/cli/rules.ts +259 -0
- package/src/cli/scope.ts +67 -0
- package/src/cli/serve.ts +996 -0
- package/src/cli/service-commands.ts +73 -0
- package/src/cli/snapshot.ts +164 -0
- package/src/cli/storage-rules.ts +172 -0
- package/src/cli/verify.ts +416 -0
- package/src/conformance/.generated/can-i-use-browser.ts +113 -0
- package/src/conformance/.generated/can-i-use.ts +117 -0
- package/src/conformance/.generated/conformance-docs.ts +14 -0
- package/src/conformance/browser.ts +24 -0
- package/src/conformance/can-i-use-tool.ts +51 -0
- package/src/conformance/can-i-use.ts +18 -0
- package/src/conformance/docs.ts +8 -0
- package/src/conformance/index.ts +20 -0
- package/src/conformance/tools.ts +16 -0
- package/src/credentials/core/memoize-ttl.ts +142 -0
- package/src/credentials/core/types.ts +10 -0
- package/src/credentials/node/from-adc.ts +96 -0
- package/src/credentials/node/from-service-account.ts +133 -0
- package/src/credentials/node/index.ts +6 -0
- package/src/discover/concurrency.ts +127 -0
- package/src/discover/crawler-adapter.ts +142 -0
- package/src/discover/crawler.ts +1127 -0
- package/src/discover/credential-free.ts +27 -0
- package/src/discover/findCollectionGroup.ts +131 -0
- package/src/discover/firestore-source.ts +59 -0
- package/src/discover/index.ts +5 -0
- package/src/discover/merge.ts +523 -0
- package/src/discover/session.ts +402 -0
- package/src/discover/tools.ts +201 -0
- package/src/discover/types.ts +187 -0
- package/src/discover/wire.ts +324 -0
- package/src/functions-rtdb/child.ts +382 -0
- package/src/functions-rtdb/delivery.ts +7 -0
- package/src/functions-rtdb/discovery.ts +136 -0
- package/src/functions-rtdb/event.ts +64 -0
- package/src/functions-rtdb/execution.ts +111 -0
- package/src/functions-rtdb/in-memory-delivery.ts +40 -0
- package/src/functions-rtdb/project.ts +74 -0
- package/src/functions-rtdb/projection.ts +104 -0
- package/src/functions-rtdb/reference-pattern.ts +20 -0
- package/src/functions-rtdb/remote-delivery.ts +23 -0
- package/src/pkg-version.ts +49 -0
- package/src/register/esm-exports.ts +63 -0
- package/src/register/hooks.ts +30 -0
- package/src/register/index.ts +150 -0
- package/src/register/mapping.ts +33 -0
- package/src/remote/index.ts +1050 -0
- package/src/rtdb/crawl-snapshot.ts +118 -0
- package/src/rtdb/inspection.ts +137 -0
- package/src/rtdb/load-rules-document.ts +56 -0
- package/src/rtdb/rules-generation-tool.ts +38 -0
- package/src/rtdb/rules-json.ts +29 -0
- package/src/serve/activity-guard.ts +29 -0
- package/src/serve/activity-route.ts +164 -0
- package/src/serve/activity-warning.ts +26 -0
- package/src/serve/bridge-mount.ts +200 -0
- package/src/serve/bundler.ts +493 -0
- package/src/serve/capture-store.ts +65 -0
- package/src/serve/discovery.ts +199 -0
- package/src/serve/entries/ai.ts +292 -0
- package/src/serve/entries/app-backend.ts +4 -0
- package/src/serve/entries/app-client.ts +26 -0
- package/src/serve/entries/app-session-store.ts +47 -0
- package/src/serve/entries/app.ts +11 -0
- package/src/serve/entries/auth-helper-core.ts +181 -0
- package/src/serve/entries/auth-helper-dom.ts +134 -0
- package/src/serve/entries/auth-helper-runtime.ts +20 -0
- package/src/serve/entries/auth.ts +255 -0
- package/src/serve/entries/bridge-url.ts +31 -0
- package/src/serve/entries/database.ts +129 -0
- package/src/serve/entries/firestore.ts +232 -0
- package/src/serve/entries/init.ts +46 -0
- package/src/serve/entries/keepalive.ts +46 -0
- package/src/serve/entries/messaging-sw.ts +75 -0
- package/src/serve/entries/messaging.ts +96 -0
- package/src/serve/entries/runtime.ts +540 -0
- package/src/serve/entries/session-store.ts +97 -0
- package/src/serve/entries/storage.ts +92 -0
- package/src/serve/entries/tab-sync-wiring.ts +274 -0
- package/src/serve/entries/worker-runtime.ts +75 -0
- package/src/serve/init-payload.ts +42 -0
- package/src/serve/namespace.ts +675 -0
- package/src/serve/open-browser.ts +68 -0
- package/src/serve/rules.ts +272 -0
- package/src/serve/sandbox-marker.ts +31 -0
- package/src/serve/server.ts +428 -0
- package/src/serve/standalone-assets.ts +180 -0
- package/src/serve/state-store.ts +166 -0
- package/src/serve/studio/disk-project-store.ts +185 -0
- package/src/serve/studio/disk-workspace.ts +162 -0
- package/src/serve/studio/index.ts +20 -0
- package/src/serve/studio/routes.ts +237 -0
- package/src/serve/studio/store-types.ts +48 -0
- package/src/serve/studio/studio-storage.test.ts +289 -0
- package/src/serve/vite-plugin.ts +1102 -0
- package/src/serve/worker/activity-bootstrap.ts +24 -0
- package/src/serve/worker/client/admin-firestore.ts +38 -0
- package/src/serve/worker/client/ai.ts +124 -0
- package/src/serve/worker/client/auth.ts +489 -0
- package/src/serve/worker/client/connection.ts +202 -0
- package/src/serve/worker/client/core.ts +350 -0
- package/src/serve/worker/client/disconnect.ts +45 -0
- package/src/serve/worker/client/firestore-reads.ts +181 -0
- package/src/serve/worker/client/firestore-refs.ts +226 -0
- package/src/serve/worker/client/firestore-writes.ts +232 -0
- package/src/serve/worker/client/handles.ts +91 -0
- package/src/serve/worker/client/messaging.ts +119 -0
- package/src/serve/worker/client/presence.ts +174 -0
- package/src/serve/worker/client/rtdb.ts +311 -0
- package/src/serve/worker/client/rules.ts +63 -0
- package/src/serve/worker/client/service-worker-connection.ts +59 -0
- package/src/serve/worker/client/snapshots.ts +86 -0
- package/src/serve/worker/client/storage.ts +195 -0
- package/src/serve/worker/client/studio.ts +88 -0
- package/src/serve/worker/client.ts +57 -0
- package/src/serve/worker/durable-persistence.ts +137 -0
- package/src/serve/worker/entry.ts +179 -0
- package/src/serve/worker/host/admin-firestore.ts +88 -0
- package/src/serve/worker/host/connection.ts +179 -0
- package/src/serve/worker/host/core.ts +387 -0
- package/src/serve/worker/host/dispatch.ts +316 -0
- package/src/serve/worker/host/firestore-reads.ts +117 -0
- package/src/serve/worker/host/firestore-writes.ts +456 -0
- package/src/serve/worker/host/presence.ts +312 -0
- package/src/serve/worker/host/rtdb.ts +136 -0
- package/src/serve/worker/host/rules.ts +128 -0
- package/src/serve/worker/host/storage.ts +312 -0
- package/src/serve/worker/host/studio.ts +75 -0
- package/src/serve/worker/host/subscriptions.ts +238 -0
- package/src/serve/worker/host-ai.ts +165 -0
- package/src/serve/worker/host-auth.ts +469 -0
- package/src/serve/worker/host-context.ts +273 -0
- package/src/serve/worker/host-events.ts +94 -0
- package/src/serve/worker/host-messaging.ts +240 -0
- package/src/serve/worker/host.ts +47 -0
- package/src/serve/worker/index.ts +196 -0
- package/src/serve/worker/presence-timing.ts +15 -0
- package/src/serve/worker/protocol.ts +1112 -0
- package/src/serve/worker/serve-init.ts +606 -0
- package/src/serve/worker/service-worker-channel.ts +33 -0
- package/src/serve/worker/service-worker-relay.ts +86 -0
- package/src/serve/writer-lock.ts +53 -0
- package/src/verify/cases.ts +233 -0
- package/src/verify/fixture.ts +258 -0
- package/src/verify/index.ts +519 -0
- package/src/verify/tools.ts +108 -0
- package/src/version/compat-target.ts +17 -0
- package/src/vite.ts +17 -0
- package/dist/serve/docs-ui/docs/pyric-firestore-values-reference-api/index.html +0 -31
- package/dist/serve/docs-ui/docs/pyric-firestore-values-reference-api.md +0 -29
|
@@ -0,0 +1,706 @@
|
|
|
1
|
+
<!-- Generated from published package declarations via TypeDoc. Rendered by the api-reference content loader. -->
|
|
2
|
+
|
|
3
|
+
## Classes
|
|
4
|
+
|
|
5
|
+
<a id="firebasemessagingerror"></a>
|
|
6
|
+
|
|
7
|
+
### FirebaseMessagingError
|
|
8
|
+
|
|
9
|
+
#### Extends
|
|
10
|
+
|
|
11
|
+
- `Error`
|
|
12
|
+
|
|
13
|
+
#### Constructors
|
|
14
|
+
|
|
15
|
+
<a id="constructor"></a>
|
|
16
|
+
|
|
17
|
+
##### Constructor
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
new FirebaseMessagingError(info: ErrorCodeInfo, message?: string): FirebaseMessagingError;
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
###### Parameters
|
|
24
|
+
|
|
25
|
+
| Parameter | Type |
|
|
26
|
+
| :------ | :------ |
|
|
27
|
+
| `info` | `ErrorCodeInfo` |
|
|
28
|
+
| `message?` | `string` |
|
|
29
|
+
|
|
30
|
+
###### Returns
|
|
31
|
+
|
|
32
|
+
[`FirebaseMessagingError`](#firebasemessagingerror)
|
|
33
|
+
|
|
34
|
+
###### Overrides
|
|
35
|
+
|
|
36
|
+
```ts
|
|
37
|
+
Error.constructor
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
#### Properties
|
|
41
|
+
|
|
42
|
+
| Property | Modifier | Type |
|
|
43
|
+
| :------ | :------ | :------ |
|
|
44
|
+
| <a id="code"></a> `code` | `readonly` | `string` |
|
|
45
|
+
|
|
46
|
+
***
|
|
47
|
+
|
|
48
|
+
<a id="messaging"></a>
|
|
49
|
+
|
|
50
|
+
### Messaging
|
|
51
|
+
|
|
52
|
+
The sandbox `Messaging` service mirror, implementing the send plane over
|
|
53
|
+
the broker.
|
|
54
|
+
|
|
55
|
+
#### Constructors
|
|
56
|
+
|
|
57
|
+
<a id="constructor-1"></a>
|
|
58
|
+
|
|
59
|
+
##### Constructor
|
|
60
|
+
|
|
61
|
+
```ts
|
|
62
|
+
new Messaging(app: SandboxAdminApp): Messaging;
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
###### Parameters
|
|
66
|
+
|
|
67
|
+
| Parameter | Type |
|
|
68
|
+
| :------ | :------ |
|
|
69
|
+
| `app` | [`SandboxAdminApp`](pyric-admin-app-reference-api.md#sandboxadminapp) |
|
|
70
|
+
|
|
71
|
+
###### Returns
|
|
72
|
+
|
|
73
|
+
[`Messaging`](#messaging)
|
|
74
|
+
|
|
75
|
+
#### Accessors
|
|
76
|
+
|
|
77
|
+
<a id="app"></a>
|
|
78
|
+
|
|
79
|
+
##### app
|
|
80
|
+
|
|
81
|
+
###### Get Signature
|
|
82
|
+
|
|
83
|
+
```ts
|
|
84
|
+
get app(): SandboxAdminApp;
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
The app this `Messaging` instance is bound to (upstream `get app(): App`).
|
|
88
|
+
|
|
89
|
+
###### Returns
|
|
90
|
+
|
|
91
|
+
[`SandboxAdminApp`](pyric-admin-app-reference-api.md#sandboxadminapp)
|
|
92
|
+
|
|
93
|
+
#### Methods
|
|
94
|
+
|
|
95
|
+
<a id="enablelegacyhttptransport"></a>
|
|
96
|
+
|
|
97
|
+
##### enableLegacyHttpTransport()
|
|
98
|
+
|
|
99
|
+
```ts
|
|
100
|
+
enableLegacyHttpTransport(): void;
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Force HTTP/1.1 for batch sends — deprecated upstream; the sandbox has
|
|
104
|
+
no HTTP transport, so this is a recorded no-op.
|
|
105
|
+
|
|
106
|
+
###### Returns
|
|
107
|
+
|
|
108
|
+
`void`
|
|
109
|
+
|
|
110
|
+
<a id="send"></a>
|
|
111
|
+
|
|
112
|
+
##### send()
|
|
113
|
+
|
|
114
|
+
```ts
|
|
115
|
+
send(message: Message, dryRun?: boolean): Promise<string>;
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
Send one message. Resolves the FCM resource name
|
|
119
|
+
`projects/<projectId>/messages/<id>` — numeric id for topic/condition
|
|
120
|
+
targets, UUID-form for token targets. `dryRun` validates on the
|
|
121
|
+
identical path and returns the SAME shape with a fake id (captured
|
|
122
|
+
`dryRunSameShapeAsReal` / `realSendEnvelopeIdentical` parity).
|
|
123
|
+
|
|
124
|
+
###### Parameters
|
|
125
|
+
|
|
126
|
+
| Parameter | Type |
|
|
127
|
+
| :------ | :------ |
|
|
128
|
+
| `message` | [`Message`](#message) |
|
|
129
|
+
| `dryRun?` | `boolean` |
|
|
130
|
+
|
|
131
|
+
###### Returns
|
|
132
|
+
|
|
133
|
+
`Promise`\<`string`\>
|
|
134
|
+
|
|
135
|
+
<a id="sendeach"></a>
|
|
136
|
+
|
|
137
|
+
##### sendEach()
|
|
138
|
+
|
|
139
|
+
```ts
|
|
140
|
+
sendEach(messages: Message[], dryRun?: boolean): Promise<BatchResponse>;
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
Send up to 500 messages; the resolved `BatchResponse.responses` array is
|
|
144
|
+
ordered to match the input, one entry per message.
|
|
145
|
+
|
|
146
|
+
###### Parameters
|
|
147
|
+
|
|
148
|
+
| Parameter | Type |
|
|
149
|
+
| :------ | :------ |
|
|
150
|
+
| `messages` | [`Message`](#message)[] |
|
|
151
|
+
| `dryRun?` | `boolean` |
|
|
152
|
+
|
|
153
|
+
###### Returns
|
|
154
|
+
|
|
155
|
+
`Promise`\<[`BatchResponse`](#batchresponse)\>
|
|
156
|
+
|
|
157
|
+
<a id="sendeachformulticast"></a>
|
|
158
|
+
|
|
159
|
+
##### sendEachForMulticast()
|
|
160
|
+
|
|
161
|
+
```ts
|
|
162
|
+
sendEachForMulticast(message: MulticastMessage, dryRun?: boolean): Promise<BatchResponse>;
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
Fan a `MulticastMessage` (up to 500 tokens) out through [sendEach](#sendeach).
|
|
166
|
+
|
|
167
|
+
###### Parameters
|
|
168
|
+
|
|
169
|
+
| Parameter | Type |
|
|
170
|
+
| :------ | :------ |
|
|
171
|
+
| `message` | [`MulticastMessage`](#multicastmessage) |
|
|
172
|
+
| `dryRun?` | `boolean` |
|
|
173
|
+
|
|
174
|
+
###### Returns
|
|
175
|
+
|
|
176
|
+
`Promise`\<[`BatchResponse`](#batchresponse)\>
|
|
177
|
+
|
|
178
|
+
<a id="subscribetotopic"></a>
|
|
179
|
+
|
|
180
|
+
##### subscribeToTopic()
|
|
181
|
+
|
|
182
|
+
```ts
|
|
183
|
+
subscribeToTopic(tokenOrTokens: string | string[], topic: string): Promise<MessagingTopicManagementResponse>;
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
Subscribe one or many registration tokens to a topic.
|
|
187
|
+
|
|
188
|
+
###### Parameters
|
|
189
|
+
|
|
190
|
+
| Parameter | Type |
|
|
191
|
+
| :------ | :------ |
|
|
192
|
+
| `tokenOrTokens` | `string` \| `string`[] |
|
|
193
|
+
| `topic` | `string` |
|
|
194
|
+
|
|
195
|
+
###### Returns
|
|
196
|
+
|
|
197
|
+
`Promise`\<[`MessagingTopicManagementResponse`](#messagingtopicmanagementresponse)\>
|
|
198
|
+
|
|
199
|
+
<a id="unsubscribefromtopic"></a>
|
|
200
|
+
|
|
201
|
+
##### unsubscribeFromTopic()
|
|
202
|
+
|
|
203
|
+
```ts
|
|
204
|
+
unsubscribeFromTopic(tokenOrTokens: string | string[], topic: string): Promise<MessagingTopicManagementResponse>;
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
Unsubscribe one or many registration tokens from a topic.
|
|
208
|
+
|
|
209
|
+
###### Parameters
|
|
210
|
+
|
|
211
|
+
| Parameter | Type |
|
|
212
|
+
| :------ | :------ |
|
|
213
|
+
| `tokenOrTokens` | `string` \| `string`[] |
|
|
214
|
+
| `topic` | `string` |
|
|
215
|
+
|
|
216
|
+
###### Returns
|
|
217
|
+
|
|
218
|
+
`Promise`\<[`MessagingTopicManagementResponse`](#messagingtopicmanagementresponse)\>
|
|
219
|
+
|
|
220
|
+
***
|
|
221
|
+
|
|
222
|
+
<a id="messagingclienterrorcode"></a>
|
|
223
|
+
|
|
224
|
+
### MessagingClientErrorCode
|
|
225
|
+
|
|
226
|
+
#### Constructors
|
|
227
|
+
|
|
228
|
+
<a id="constructor-2"></a>
|
|
229
|
+
|
|
230
|
+
##### Constructor
|
|
231
|
+
|
|
232
|
+
```ts
|
|
233
|
+
new MessagingClientErrorCode(): MessagingClientErrorCode;
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
###### Returns
|
|
237
|
+
|
|
238
|
+
[`MessagingClientErrorCode`](#messagingclienterrorcode)
|
|
239
|
+
|
|
240
|
+
#### Properties
|
|
241
|
+
|
|
242
|
+
| Property | Modifier | Type |
|
|
243
|
+
| :------ | :------ | :------ |
|
|
244
|
+
| <a id="invalid_argument"></a> `INVALID_ARGUMENT` | `readonly` | \{ `code`: `string`; `message`: `string`; \} |
|
|
245
|
+
| `INVALID_ARGUMENT.code` | `public` | `string` |
|
|
246
|
+
| `INVALID_ARGUMENT.message` | `public` | `string` |
|
|
247
|
+
| <a id="invalid_registration_token"></a> `INVALID_REGISTRATION_TOKEN` | `readonly` | \{ `code`: `string`; `message`: `string`; \} |
|
|
248
|
+
| `INVALID_REGISTRATION_TOKEN.code` | `public` | `string` |
|
|
249
|
+
| `INVALID_REGISTRATION_TOKEN.message` | `public` | `string` |
|
|
250
|
+
| <a id="registration_token_not_registered"></a> `REGISTRATION_TOKEN_NOT_REGISTERED` | `readonly` | \{ `code`: `string`; `message`: `string`; \} |
|
|
251
|
+
| `REGISTRATION_TOKEN_NOT_REGISTERED.code` | `public` | `string` |
|
|
252
|
+
| `REGISTRATION_TOKEN_NOT_REGISTERED.message` | `public` | `string` |
|
|
253
|
+
|
|
254
|
+
## Interfaces
|
|
255
|
+
|
|
256
|
+
<a id="basemessage"></a>
|
|
257
|
+
|
|
258
|
+
### BaseMessage
|
|
259
|
+
|
|
260
|
+
#### Extends
|
|
261
|
+
|
|
262
|
+
- `Omit`\<`BrokerMessage`, `"token"` \| `"topic"` \| `"condition"`\>
|
|
263
|
+
|
|
264
|
+
#### Extended by
|
|
265
|
+
|
|
266
|
+
- [`TokenMessage`](#tokenmessage)
|
|
267
|
+
- [`TopicMessage`](#topicmessage)
|
|
268
|
+
- [`ConditionMessage`](#conditionmessage)
|
|
269
|
+
- [`MulticastMessage`](#multicastmessage)
|
|
270
|
+
|
|
271
|
+
#### Properties
|
|
272
|
+
|
|
273
|
+
| Property | Type |
|
|
274
|
+
| :------ | :------ |
|
|
275
|
+
| <a id="android"></a> `android?` | `Record`\<`string`, `unknown`\> |
|
|
276
|
+
| <a id="apns"></a> `apns?` | `Record`\<`string`, `unknown`\> |
|
|
277
|
+
| <a id="data"></a> `data?` | `Record`\<`string`, `string`\> |
|
|
278
|
+
| <a id="fcmoptions"></a> `fcmOptions?` | \{ `analyticsLabel?`: `string`; \} |
|
|
279
|
+
| `fcmOptions.analyticsLabel?` | `string` |
|
|
280
|
+
| <a id="notification"></a> `notification?` | \{ `body?`: `string`; `imageUrl?`: `string`; `title?`: `string`; \} |
|
|
281
|
+
| `notification.body?` | `string` |
|
|
282
|
+
| `notification.imageUrl?` | `string` |
|
|
283
|
+
| `notification.title?` | `string` |
|
|
284
|
+
| <a id="webpush"></a> `webpush?` | \{ `data?`: `Record`\<`string`, `string`\>; `fcmOptions?`: \{ `link?`: `string`; \}; `headers?`: `Record`\<`string`, `string`\>; `notification?`: `Record`\<`string`, `unknown`\>; \} |
|
|
285
|
+
| `webpush.data?` | `Record`\<`string`, `string`\> |
|
|
286
|
+
| `webpush.fcmOptions?` | \{ `link?`: `string`; \} |
|
|
287
|
+
| `webpush.fcmOptions.link?` | `string` |
|
|
288
|
+
| `webpush.headers?` | `Record`\<`string`, `string`\> |
|
|
289
|
+
| `webpush.notification?` | `Record`\<`string`, `unknown`\> |
|
|
290
|
+
|
|
291
|
+
***
|
|
292
|
+
|
|
293
|
+
<a id="batchresponse"></a>
|
|
294
|
+
|
|
295
|
+
### BatchResponse
|
|
296
|
+
|
|
297
|
+
#### Properties
|
|
298
|
+
|
|
299
|
+
| Property | Type |
|
|
300
|
+
| :------ | :------ |
|
|
301
|
+
| <a id="failurecount"></a> `failureCount` | `number` |
|
|
302
|
+
| <a id="responses"></a> `responses` | [`SendResponse`](#sendresponse)[] |
|
|
303
|
+
| <a id="successcount"></a> `successCount` | `number` |
|
|
304
|
+
|
|
305
|
+
***
|
|
306
|
+
|
|
307
|
+
<a id="conditionmessage"></a>
|
|
308
|
+
|
|
309
|
+
### ConditionMessage
|
|
310
|
+
|
|
311
|
+
#### Extends
|
|
312
|
+
|
|
313
|
+
- [`BaseMessage`](#basemessage)
|
|
314
|
+
|
|
315
|
+
#### Properties
|
|
316
|
+
|
|
317
|
+
| Property | Type |
|
|
318
|
+
| :------ | :------ |
|
|
319
|
+
| <a id="android-1"></a> `android?` | `Record`\<`string`, `unknown`\> |
|
|
320
|
+
| <a id="apns-1"></a> `apns?` | `Record`\<`string`, `unknown`\> |
|
|
321
|
+
| <a id="condition"></a> `condition` | `string` |
|
|
322
|
+
| <a id="data-1"></a> `data?` | `Record`\<`string`, `string`\> |
|
|
323
|
+
| <a id="fcmoptions-1"></a> `fcmOptions?` | \{ `analyticsLabel?`: `string`; \} |
|
|
324
|
+
| `fcmOptions.analyticsLabel?` | `string` |
|
|
325
|
+
| <a id="notification-1"></a> `notification?` | \{ `body?`: `string`; `imageUrl?`: `string`; `title?`: `string`; \} |
|
|
326
|
+
| `notification.body?` | `string` |
|
|
327
|
+
| `notification.imageUrl?` | `string` |
|
|
328
|
+
| `notification.title?` | `string` |
|
|
329
|
+
| <a id="webpush-1"></a> `webpush?` | \{ `data?`: `Record`\<`string`, `string`\>; `fcmOptions?`: \{ `link?`: `string`; \}; `headers?`: `Record`\<`string`, `string`\>; `notification?`: `Record`\<`string`, `unknown`\>; \} |
|
|
330
|
+
| `webpush.data?` | `Record`\<`string`, `string`\> |
|
|
331
|
+
| `webpush.fcmOptions?` | \{ `link?`: `string`; \} |
|
|
332
|
+
| `webpush.fcmOptions.link?` | `string` |
|
|
333
|
+
| `webpush.headers?` | `Record`\<`string`, `string`\> |
|
|
334
|
+
| `webpush.notification?` | `Record`\<`string`, `unknown`\> |
|
|
335
|
+
|
|
336
|
+
***
|
|
337
|
+
|
|
338
|
+
<a id="messagingtopicmanagementresponse"></a>
|
|
339
|
+
|
|
340
|
+
### MessagingTopicManagementResponse
|
|
341
|
+
|
|
342
|
+
#### Properties
|
|
343
|
+
|
|
344
|
+
| Property | Type |
|
|
345
|
+
| :------ | :------ |
|
|
346
|
+
| <a id="errors"></a> `errors` | \{ `error`: [`FirebaseMessagingError`](#firebasemessagingerror); `index`: `number`; \}[] |
|
|
347
|
+
| <a id="failurecount-1"></a> `failureCount` | `number` |
|
|
348
|
+
| <a id="successcount-1"></a> `successCount` | `number` |
|
|
349
|
+
|
|
350
|
+
***
|
|
351
|
+
|
|
352
|
+
<a id="multicastmessage"></a>
|
|
353
|
+
|
|
354
|
+
### MulticastMessage
|
|
355
|
+
|
|
356
|
+
#### Extends
|
|
357
|
+
|
|
358
|
+
- [`BaseMessage`](#basemessage)
|
|
359
|
+
|
|
360
|
+
#### Properties
|
|
361
|
+
|
|
362
|
+
| Property | Type |
|
|
363
|
+
| :------ | :------ |
|
|
364
|
+
| <a id="android-2"></a> `android?` | `Record`\<`string`, `unknown`\> |
|
|
365
|
+
| <a id="apns-2"></a> `apns?` | `Record`\<`string`, `unknown`\> |
|
|
366
|
+
| <a id="data-2"></a> `data?` | `Record`\<`string`, `string`\> |
|
|
367
|
+
| <a id="fcmoptions-2"></a> `fcmOptions?` | \{ `analyticsLabel?`: `string`; \} |
|
|
368
|
+
| `fcmOptions.analyticsLabel?` | `string` |
|
|
369
|
+
| <a id="notification-2"></a> `notification?` | \{ `body?`: `string`; `imageUrl?`: `string`; `title?`: `string`; \} |
|
|
370
|
+
| `notification.body?` | `string` |
|
|
371
|
+
| `notification.imageUrl?` | `string` |
|
|
372
|
+
| `notification.title?` | `string` |
|
|
373
|
+
| <a id="tokens"></a> `tokens` | `string`[] |
|
|
374
|
+
| <a id="webpush-2"></a> `webpush?` | \{ `data?`: `Record`\<`string`, `string`\>; `fcmOptions?`: \{ `link?`: `string`; \}; `headers?`: `Record`\<`string`, `string`\>; `notification?`: `Record`\<`string`, `unknown`\>; \} |
|
|
375
|
+
| `webpush.data?` | `Record`\<`string`, `string`\> |
|
|
376
|
+
| `webpush.fcmOptions?` | \{ `link?`: `string`; \} |
|
|
377
|
+
| `webpush.fcmOptions.link?` | `string` |
|
|
378
|
+
| `webpush.headers?` | `Record`\<`string`, `string`\> |
|
|
379
|
+
| `webpush.notification?` | `Record`\<`string`, `unknown`\> |
|
|
380
|
+
|
|
381
|
+
***
|
|
382
|
+
|
|
383
|
+
<a id="sendresponse"></a>
|
|
384
|
+
|
|
385
|
+
### SendResponse
|
|
386
|
+
|
|
387
|
+
#### Properties
|
|
388
|
+
|
|
389
|
+
| Property | Type |
|
|
390
|
+
| :------ | :------ |
|
|
391
|
+
| <a id="error"></a> `error?` | [`FirebaseMessagingError`](#firebasemessagingerror) |
|
|
392
|
+
| <a id="messageid"></a> `messageId?` | `string` |
|
|
393
|
+
| <a id="success"></a> `success` | `boolean` |
|
|
394
|
+
|
|
395
|
+
***
|
|
396
|
+
|
|
397
|
+
<a id="tokenmessage"></a>
|
|
398
|
+
|
|
399
|
+
### TokenMessage
|
|
400
|
+
|
|
401
|
+
#### Extends
|
|
402
|
+
|
|
403
|
+
- [`BaseMessage`](#basemessage)
|
|
404
|
+
|
|
405
|
+
#### Properties
|
|
406
|
+
|
|
407
|
+
| Property | Type |
|
|
408
|
+
| :------ | :------ |
|
|
409
|
+
| <a id="android-3"></a> `android?` | `Record`\<`string`, `unknown`\> |
|
|
410
|
+
| <a id="apns-3"></a> `apns?` | `Record`\<`string`, `unknown`\> |
|
|
411
|
+
| <a id="data-3"></a> `data?` | `Record`\<`string`, `string`\> |
|
|
412
|
+
| <a id="fcmoptions-3"></a> `fcmOptions?` | \{ `analyticsLabel?`: `string`; \} |
|
|
413
|
+
| `fcmOptions.analyticsLabel?` | `string` |
|
|
414
|
+
| <a id="notification-3"></a> `notification?` | \{ `body?`: `string`; `imageUrl?`: `string`; `title?`: `string`; \} |
|
|
415
|
+
| `notification.body?` | `string` |
|
|
416
|
+
| `notification.imageUrl?` | `string` |
|
|
417
|
+
| `notification.title?` | `string` |
|
|
418
|
+
| <a id="token"></a> `token` | `string` |
|
|
419
|
+
| <a id="webpush-3"></a> `webpush?` | \{ `data?`: `Record`\<`string`, `string`\>; `fcmOptions?`: \{ `link?`: `string`; \}; `headers?`: `Record`\<`string`, `string`\>; `notification?`: `Record`\<`string`, `unknown`\>; \} |
|
|
420
|
+
| `webpush.data?` | `Record`\<`string`, `string`\> |
|
|
421
|
+
| `webpush.fcmOptions?` | \{ `link?`: `string`; \} |
|
|
422
|
+
| `webpush.fcmOptions.link?` | `string` |
|
|
423
|
+
| `webpush.headers?` | `Record`\<`string`, `string`\> |
|
|
424
|
+
| `webpush.notification?` | `Record`\<`string`, `unknown`\> |
|
|
425
|
+
|
|
426
|
+
***
|
|
427
|
+
|
|
428
|
+
<a id="topicmessage"></a>
|
|
429
|
+
|
|
430
|
+
### TopicMessage
|
|
431
|
+
|
|
432
|
+
#### Extends
|
|
433
|
+
|
|
434
|
+
- [`BaseMessage`](#basemessage)
|
|
435
|
+
|
|
436
|
+
#### Properties
|
|
437
|
+
|
|
438
|
+
| Property | Type |
|
|
439
|
+
| :------ | :------ |
|
|
440
|
+
| <a id="android-4"></a> `android?` | `Record`\<`string`, `unknown`\> |
|
|
441
|
+
| <a id="apns-4"></a> `apns?` | `Record`\<`string`, `unknown`\> |
|
|
442
|
+
| <a id="data-4"></a> `data?` | `Record`\<`string`, `string`\> |
|
|
443
|
+
| <a id="fcmoptions-4"></a> `fcmOptions?` | \{ `analyticsLabel?`: `string`; \} |
|
|
444
|
+
| `fcmOptions.analyticsLabel?` | `string` |
|
|
445
|
+
| <a id="notification-4"></a> `notification?` | \{ `body?`: `string`; `imageUrl?`: `string`; `title?`: `string`; \} |
|
|
446
|
+
| `notification.body?` | `string` |
|
|
447
|
+
| `notification.imageUrl?` | `string` |
|
|
448
|
+
| `notification.title?` | `string` |
|
|
449
|
+
| <a id="topic"></a> `topic` | `string` |
|
|
450
|
+
| <a id="webpush-4"></a> `webpush?` | \{ `data?`: `Record`\<`string`, `string`\>; `fcmOptions?`: \{ `link?`: `string`; \}; `headers?`: `Record`\<`string`, `string`\>; `notification?`: `Record`\<`string`, `unknown`\>; \} |
|
|
451
|
+
| `webpush.data?` | `Record`\<`string`, `string`\> |
|
|
452
|
+
| `webpush.fcmOptions?` | \{ `link?`: `string`; \} |
|
|
453
|
+
| `webpush.fcmOptions.link?` | `string` |
|
|
454
|
+
| `webpush.headers?` | `Record`\<`string`, `string`\> |
|
|
455
|
+
| `webpush.notification?` | `Record`\<`string`, `unknown`\> |
|
|
456
|
+
|
|
457
|
+
## Type Aliases
|
|
458
|
+
|
|
459
|
+
<a id="androidconfig"></a>
|
|
460
|
+
|
|
461
|
+
### AndroidConfig
|
|
462
|
+
|
|
463
|
+
```ts
|
|
464
|
+
type AndroidConfig = Record<string, unknown>;
|
|
465
|
+
```
|
|
466
|
+
|
|
467
|
+
***
|
|
468
|
+
|
|
469
|
+
<a id="androidfcmoptions"></a>
|
|
470
|
+
|
|
471
|
+
### AndroidFcmOptions
|
|
472
|
+
|
|
473
|
+
```ts
|
|
474
|
+
type AndroidFcmOptions = Record<string, unknown>;
|
|
475
|
+
```
|
|
476
|
+
|
|
477
|
+
***
|
|
478
|
+
|
|
479
|
+
<a id="androidnotification"></a>
|
|
480
|
+
|
|
481
|
+
### AndroidNotification
|
|
482
|
+
|
|
483
|
+
```ts
|
|
484
|
+
type AndroidNotification = Record<string, unknown>;
|
|
485
|
+
```
|
|
486
|
+
|
|
487
|
+
***
|
|
488
|
+
|
|
489
|
+
<a id="apnsconfig"></a>
|
|
490
|
+
|
|
491
|
+
### ApnsConfig
|
|
492
|
+
|
|
493
|
+
```ts
|
|
494
|
+
type ApnsConfig = Record<string, unknown>;
|
|
495
|
+
```
|
|
496
|
+
|
|
497
|
+
***
|
|
498
|
+
|
|
499
|
+
<a id="apnsfcmoptions"></a>
|
|
500
|
+
|
|
501
|
+
### ApnsFcmOptions
|
|
502
|
+
|
|
503
|
+
```ts
|
|
504
|
+
type ApnsFcmOptions = Record<string, unknown>;
|
|
505
|
+
```
|
|
506
|
+
|
|
507
|
+
***
|
|
508
|
+
|
|
509
|
+
<a id="apnspayload"></a>
|
|
510
|
+
|
|
511
|
+
### ApnsPayload
|
|
512
|
+
|
|
513
|
+
```ts
|
|
514
|
+
type ApnsPayload = Record<string, unknown>;
|
|
515
|
+
```
|
|
516
|
+
|
|
517
|
+
***
|
|
518
|
+
|
|
519
|
+
<a id="aps"></a>
|
|
520
|
+
|
|
521
|
+
### Aps
|
|
522
|
+
|
|
523
|
+
```ts
|
|
524
|
+
type Aps = Record<string, unknown>;
|
|
525
|
+
```
|
|
526
|
+
|
|
527
|
+
***
|
|
528
|
+
|
|
529
|
+
<a id="apsalert"></a>
|
|
530
|
+
|
|
531
|
+
### ApsAlert
|
|
532
|
+
|
|
533
|
+
```ts
|
|
534
|
+
type ApsAlert = string | Record<string, unknown>;
|
|
535
|
+
```
|
|
536
|
+
|
|
537
|
+
***
|
|
538
|
+
|
|
539
|
+
<a id="criticalsound"></a>
|
|
540
|
+
|
|
541
|
+
### CriticalSound
|
|
542
|
+
|
|
543
|
+
```ts
|
|
544
|
+
type CriticalSound = Record<string, unknown>;
|
|
545
|
+
```
|
|
546
|
+
|
|
547
|
+
***
|
|
548
|
+
|
|
549
|
+
<a id="datamessagepayload"></a>
|
|
550
|
+
|
|
551
|
+
### DataMessagePayload
|
|
552
|
+
|
|
553
|
+
```ts
|
|
554
|
+
type DataMessagePayload = Record<string, string>;
|
|
555
|
+
```
|
|
556
|
+
|
|
557
|
+
***
|
|
558
|
+
|
|
559
|
+
<a id="fcmoptions-5"></a>
|
|
560
|
+
|
|
561
|
+
### FcmOptions
|
|
562
|
+
|
|
563
|
+
```ts
|
|
564
|
+
type FcmOptions = NonNullable<BrokerMessage["fcmOptions"]>;
|
|
565
|
+
```
|
|
566
|
+
|
|
567
|
+
***
|
|
568
|
+
|
|
569
|
+
<a id="lightsettings"></a>
|
|
570
|
+
|
|
571
|
+
### LightSettings
|
|
572
|
+
|
|
573
|
+
```ts
|
|
574
|
+
type LightSettings = Record<string, unknown>;
|
|
575
|
+
```
|
|
576
|
+
|
|
577
|
+
***
|
|
578
|
+
|
|
579
|
+
<a id="message"></a>
|
|
580
|
+
|
|
581
|
+
### Message
|
|
582
|
+
|
|
583
|
+
```ts
|
|
584
|
+
type Message =
|
|
585
|
+
| TokenMessage
|
|
586
|
+
| TopicMessage
|
|
587
|
+
| ConditionMessage;
|
|
588
|
+
```
|
|
589
|
+
|
|
590
|
+
***
|
|
591
|
+
|
|
592
|
+
<a id="messagingoptions"></a>
|
|
593
|
+
|
|
594
|
+
### MessagingOptions
|
|
595
|
+
|
|
596
|
+
```ts
|
|
597
|
+
type MessagingOptions = Record<string, unknown>;
|
|
598
|
+
```
|
|
599
|
+
|
|
600
|
+
***
|
|
601
|
+
|
|
602
|
+
<a id="messagingpayload"></a>
|
|
603
|
+
|
|
604
|
+
### MessagingPayload
|
|
605
|
+
|
|
606
|
+
```ts
|
|
607
|
+
type MessagingPayload = Record<string, unknown>;
|
|
608
|
+
```
|
|
609
|
+
|
|
610
|
+
***
|
|
611
|
+
|
|
612
|
+
<a id="notification-5"></a>
|
|
613
|
+
|
|
614
|
+
### Notification
|
|
615
|
+
|
|
616
|
+
```ts
|
|
617
|
+
type Notification = NonNullable<BrokerMessage["notification"]>;
|
|
618
|
+
```
|
|
619
|
+
|
|
620
|
+
Mirror-owned structural messaging types.
|
|
621
|
+
|
|
622
|
+
***
|
|
623
|
+
|
|
624
|
+
<a id="notificationmessagepayload"></a>
|
|
625
|
+
|
|
626
|
+
### NotificationMessagePayload
|
|
627
|
+
|
|
628
|
+
```ts
|
|
629
|
+
type NotificationMessagePayload = Record<string, string>;
|
|
630
|
+
```
|
|
631
|
+
|
|
632
|
+
***
|
|
633
|
+
|
|
634
|
+
<a id="webpushconfig"></a>
|
|
635
|
+
|
|
636
|
+
### WebpushConfig
|
|
637
|
+
|
|
638
|
+
```ts
|
|
639
|
+
type WebpushConfig = NonNullable<BrokerMessage["webpush"]>;
|
|
640
|
+
```
|
|
641
|
+
|
|
642
|
+
***
|
|
643
|
+
|
|
644
|
+
<a id="webpushfcmoptions"></a>
|
|
645
|
+
|
|
646
|
+
### WebpushFcmOptions
|
|
647
|
+
|
|
648
|
+
```ts
|
|
649
|
+
type WebpushFcmOptions = NonNullable<WebpushConfig["fcmOptions"]>;
|
|
650
|
+
```
|
|
651
|
+
|
|
652
|
+
***
|
|
653
|
+
|
|
654
|
+
<a id="webpushnotification"></a>
|
|
655
|
+
|
|
656
|
+
### WebpushNotification
|
|
657
|
+
|
|
658
|
+
```ts
|
|
659
|
+
type WebpushNotification = Record<string, unknown>;
|
|
660
|
+
```
|
|
661
|
+
|
|
662
|
+
## Functions
|
|
663
|
+
|
|
664
|
+
<a id="getmessaging"></a>
|
|
665
|
+
|
|
666
|
+
### getMessaging()
|
|
667
|
+
|
|
668
|
+
```ts
|
|
669
|
+
function getMessaging(app?: SandboxAdminApp): Messaging;
|
|
670
|
+
```
|
|
671
|
+
|
|
672
|
+
Return the broker-backed `Messaging` service for the default or given
|
|
673
|
+
sandbox admin app.
|
|
674
|
+
|
|
675
|
+
#### Parameters
|
|
676
|
+
|
|
677
|
+
| Parameter | Type |
|
|
678
|
+
| :------ | :------ |
|
|
679
|
+
| `app?` | [`SandboxAdminApp`](pyric-admin-app-reference-api.md#sandboxadminapp) |
|
|
680
|
+
|
|
681
|
+
#### Returns
|
|
682
|
+
|
|
683
|
+
[`Messaging`](#messaging)
|
|
684
|
+
|
|
685
|
+
***
|
|
686
|
+
|
|
687
|
+
<a id="messaging-1"></a>
|
|
688
|
+
|
|
689
|
+
### messaging()
|
|
690
|
+
|
|
691
|
+
```ts
|
|
692
|
+
function messaging(app?: SandboxAdminApp): Messaging;
|
|
693
|
+
```
|
|
694
|
+
|
|
695
|
+
Namespaced / legacy accessor — the `admin.messaging(app?)` equivalent of
|
|
696
|
+
[getMessaging](#getmessaging).
|
|
697
|
+
|
|
698
|
+
#### Parameters
|
|
699
|
+
|
|
700
|
+
| Parameter | Type |
|
|
701
|
+
| :------ | :------ |
|
|
702
|
+
| `app?` | [`SandboxAdminApp`](pyric-admin-app-reference-api.md#sandboxadminapp) |
|
|
703
|
+
|
|
704
|
+
#### Returns
|
|
705
|
+
|
|
706
|
+
[`Messaging`](#messaging)
|