@nocha/cli 4.6.1 → 4.13.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/CHANGELOG.md +32 -0
- package/dist/NOCHA.schema.json +1670 -3
- package/dist/build-info.json +4 -4
- package/dist/dev-offline-compiler.js +682 -7
- package/dist/dev-offline-runner.js +48 -6
- package/dist/development-live-host.js +13 -1
- package/dist/nocha.js +804 -60
- package/dist/reference-integrity.json +135 -101
- package/dist/references/api/README.md +24 -23
- package/dist/references/api/signatures.md +23 -2
- package/dist/references/base/server/tooling/sdk-sources.ts +2 -2
- package/dist/references/base/src/platform/failure.ts +1 -1
- package/dist/references/base/src/types/nocha/assets-media.d.ts +8 -0
- package/dist/references/base/src/types/nocha/assets-operations.d.ts +3 -0
- package/dist/references/base/src/types/nocha/capability-deadlines.d.ts +6 -0
- package/dist/references/base/src/types/nocha/capability-needs.d.ts +7 -0
- package/dist/references/base/src/types/nocha/capability-operations.d.ts +3 -1
- package/dist/references/base/src/types/nocha/drive-operations.d.ts +56 -0
- package/dist/references/base/src/types/nocha/drive-types.d.ts +77 -0
- package/dist/references/base/src/types/nocha/drive.d.ts +54 -0
- package/dist/references/base/src/types/nocha/error-codes.d.ts +9 -0
- package/dist/references/base/src/types/nocha/execution.d.ts +1 -1
- package/dist/references/base/src/types/nocha/index.d.ts +4 -0
- package/dist/references/base/src/types/nocha/media-read.d.ts +29 -0
- package/dist/references/base/src/types/nocha/operation-waiting.d.ts +8 -0
- package/dist/references/base/src/types/nocha/operation-wire-types.d.ts +30 -2
- package/dist/references/base/src/types/nocha/protocol.d.ts +7 -3
- package/dist/references/base/src/types/nocha/types/ai-wire.d.ts +40 -1
- package/dist/references/base/src/types/nocha/types/ai.d.ts +1 -1
- package/dist/references/base/src/types/nocha/types/assets-wire.d.ts +9 -1
- package/dist/references/base/src/types/nocha/types/assets.d.ts +22 -5
- package/dist/references/base/src/types/nocha/types/video-sdk-wire.d.ts +174 -13
- package/dist/references/base/src/types/nocha/types/video-wire.d.ts +120 -7
- package/dist/references/base/src/types/nocha/types/video.d.ts +5 -2
- package/dist/references/base/src/types/nocha/video-analysis.d.ts +10 -0
- package/dist/references/base/src/types/nocha/video-media.d.ts +1 -3
- package/dist/references/duel/server/tooling/sdk-sources.ts +2 -2
- package/dist/references/duel/src/types/nocha/assets-media.d.ts +8 -0
- package/dist/references/duel/src/types/nocha/assets-operations.d.ts +3 -0
- package/dist/references/duel/src/types/nocha/capability-deadlines.d.ts +6 -0
- package/dist/references/duel/src/types/nocha/capability-needs.d.ts +7 -0
- package/dist/references/duel/src/types/nocha/capability-operations.d.ts +3 -1
- package/dist/references/duel/src/types/nocha/drive-operations.d.ts +56 -0
- package/dist/references/duel/src/types/nocha/drive-types.d.ts +77 -0
- package/dist/references/duel/src/types/nocha/drive.d.ts +54 -0
- package/dist/references/duel/src/types/nocha/error-codes.d.ts +9 -0
- package/dist/references/duel/src/types/nocha/execution.d.ts +1 -1
- package/dist/references/duel/src/types/nocha/index.d.ts +4 -0
- package/dist/references/duel/src/types/nocha/media-read.d.ts +29 -0
- package/dist/references/duel/src/types/nocha/operation-waiting.d.ts +8 -0
- package/dist/references/duel/src/types/nocha/operation-wire-types.d.ts +30 -2
- package/dist/references/duel/src/types/nocha/protocol.d.ts +7 -3
- package/dist/references/duel/src/types/nocha/types/ai-wire.d.ts +40 -1
- package/dist/references/duel/src/types/nocha/types/ai.d.ts +1 -1
- package/dist/references/duel/src/types/nocha/types/assets-wire.d.ts +9 -1
- package/dist/references/duel/src/types/nocha/types/assets.d.ts +22 -5
- package/dist/references/duel/src/types/nocha/types/video-sdk-wire.d.ts +174 -13
- package/dist/references/duel/src/types/nocha/types/video-wire.d.ts +120 -7
- package/dist/references/duel/src/types/nocha/types/video.d.ts +5 -2
- package/dist/references/duel/src/types/nocha/video-analysis.d.ts +10 -0
- package/dist/references/duel/src/types/nocha/video-media.d.ts +1 -3
- package/dist/references/recipes/README.md +1 -0
- package/dist/references/recipes/backend-transaction/src/platform/failure.ts +1 -1
- package/dist/references/recipes/drive/NOCHA.json +24 -0
- package/dist/references/recipes/drive/README.md +15 -0
- package/dist/references/recipes/drive/SKILL.md +24 -0
- package/dist/references/recipes/drive/recipe.ts +34 -0
- package/dist/references/recipes/music/README.md +1 -1
- package/dist/references/recipes/types/nocha/assets-media.d.ts +8 -0
- package/dist/references/recipes/types/nocha/assets-operations.d.ts +3 -0
- package/dist/references/recipes/types/nocha/capability-deadlines.d.ts +6 -0
- package/dist/references/recipes/types/nocha/capability-needs.d.ts +7 -0
- package/dist/references/recipes/types/nocha/capability-operations.d.ts +3 -1
- package/dist/references/recipes/types/nocha/drive-operations.d.ts +56 -0
- package/dist/references/recipes/types/nocha/drive-types.d.ts +77 -0
- package/dist/references/recipes/types/nocha/drive.d.ts +54 -0
- package/dist/references/recipes/types/nocha/error-codes.d.ts +9 -0
- package/dist/references/recipes/types/nocha/execution.d.ts +1 -1
- package/dist/references/recipes/types/nocha/index.d.ts +4 -0
- package/dist/references/recipes/types/nocha/media-read.d.ts +29 -0
- package/dist/references/recipes/types/nocha/operation-waiting.d.ts +8 -0
- package/dist/references/recipes/types/nocha/operation-wire-types.d.ts +30 -2
- package/dist/references/recipes/types/nocha/protocol.d.ts +7 -3
- package/dist/references/recipes/types/nocha/types/ai-wire.d.ts +40 -1
- package/dist/references/recipes/types/nocha/types/ai.d.ts +1 -1
- package/dist/references/recipes/types/nocha/types/assets-wire.d.ts +9 -1
- package/dist/references/recipes/types/nocha/types/assets.d.ts +22 -5
- package/dist/references/recipes/types/nocha/types/video-sdk-wire.d.ts +174 -13
- package/dist/references/recipes/types/nocha/types/video-wire.d.ts +120 -7
- package/dist/references/recipes/types/nocha/types/video.d.ts +5 -2
- package/dist/references/recipes/types/nocha/video-analysis.d.ts +10 -0
- package/dist/references/recipes/types/nocha/video-media.d.ts +1 -3
- package/dist/references/stage/server/tooling/sdk-sources.ts +2 -2
- package/dist/references/stage/src/types/nocha/assets-media.d.ts +8 -0
- package/dist/references/stage/src/types/nocha/assets-operations.d.ts +3 -0
- package/dist/references/stage/src/types/nocha/capability-deadlines.d.ts +6 -0
- package/dist/references/stage/src/types/nocha/capability-needs.d.ts +7 -0
- package/dist/references/stage/src/types/nocha/capability-operations.d.ts +3 -1
- package/dist/references/stage/src/types/nocha/drive-operations.d.ts +56 -0
- package/dist/references/stage/src/types/nocha/drive-types.d.ts +77 -0
- package/dist/references/stage/src/types/nocha/drive.d.ts +54 -0
- package/dist/references/stage/src/types/nocha/error-codes.d.ts +9 -0
- package/dist/references/stage/src/types/nocha/execution.d.ts +1 -1
- package/dist/references/stage/src/types/nocha/index.d.ts +4 -0
- package/dist/references/stage/src/types/nocha/media-read.d.ts +29 -0
- package/dist/references/stage/src/types/nocha/operation-waiting.d.ts +8 -0
- package/dist/references/stage/src/types/nocha/operation-wire-types.d.ts +30 -2
- package/dist/references/stage/src/types/nocha/protocol.d.ts +7 -3
- package/dist/references/stage/src/types/nocha/types/ai-wire.d.ts +40 -1
- package/dist/references/stage/src/types/nocha/types/ai.d.ts +1 -1
- package/dist/references/stage/src/types/nocha/types/assets-wire.d.ts +9 -1
- package/dist/references/stage/src/types/nocha/types/assets.d.ts +22 -5
- package/dist/references/stage/src/types/nocha/types/video-sdk-wire.d.ts +174 -13
- package/dist/references/stage/src/types/nocha/types/video-wire.d.ts +120 -7
- package/dist/references/stage/src/types/nocha/types/video.d.ts +5 -2
- package/dist/references/stage/src/types/nocha/video-analysis.d.ts +10 -0
- package/dist/references/stage/src/types/nocha/video-media.d.ts +1 -3
- package/dist/references/workshop/server/tooling/sdk-sources.ts +2 -2
- package/dist/references/workshop/src/types/nocha/assets-media.d.ts +8 -0
- package/dist/references/workshop/src/types/nocha/assets-operations.d.ts +3 -0
- package/dist/references/workshop/src/types/nocha/capability-deadlines.d.ts +6 -0
- package/dist/references/workshop/src/types/nocha/capability-needs.d.ts +7 -0
- package/dist/references/workshop/src/types/nocha/capability-operations.d.ts +3 -1
- package/dist/references/workshop/src/types/nocha/drive-operations.d.ts +56 -0
- package/dist/references/workshop/src/types/nocha/drive-types.d.ts +77 -0
- package/dist/references/workshop/src/types/nocha/drive.d.ts +54 -0
- package/dist/references/workshop/src/types/nocha/error-codes.d.ts +9 -0
- package/dist/references/workshop/src/types/nocha/execution.d.ts +1 -1
- package/dist/references/workshop/src/types/nocha/index.d.ts +4 -0
- package/dist/references/workshop/src/types/nocha/media-read.d.ts +29 -0
- package/dist/references/workshop/src/types/nocha/operation-waiting.d.ts +8 -0
- package/dist/references/workshop/src/types/nocha/operation-wire-types.d.ts +30 -2
- package/dist/references/workshop/src/types/nocha/protocol.d.ts +7 -3
- package/dist/references/workshop/src/types/nocha/types/ai-wire.d.ts +40 -1
- package/dist/references/workshop/src/types/nocha/types/ai.d.ts +1 -1
- package/dist/references/workshop/src/types/nocha/types/assets-wire.d.ts +9 -1
- package/dist/references/workshop/src/types/nocha/types/assets.d.ts +22 -5
- package/dist/references/workshop/src/types/nocha/types/video-sdk-wire.d.ts +174 -13
- package/dist/references/workshop/src/types/nocha/types/video-wire.d.ts +120 -7
- package/dist/references/workshop/src/types/nocha/types/video.d.ts +5 -2
- package/dist/references/workshop/src/types/nocha/video-analysis.d.ts +10 -0
- package/dist/references/workshop/src/types/nocha/video-media.d.ts +1 -3
- package/dist/sdk-versions.json +1 -1
- package/dist/sdks/@nocha/sdk/dist/assets-operations.d.ts +3 -0
- package/dist/sdks/@nocha/sdk/dist/bridge.js +3 -3
- package/dist/sdks/@nocha/sdk/dist/capabilities.js +2 -2
- package/dist/sdks/@nocha/sdk/dist/capability-deadlines.d.ts +6 -0
- package/dist/sdks/@nocha/sdk/dist/capability-needs.d.ts +7 -0
- package/dist/sdks/@nocha/sdk/dist/capability-operations.d.ts +3 -1
- package/dist/sdks/@nocha/sdk/dist/{chunk-A3QFRV4K.js → chunk-7SH7NNX6.js} +2 -2
- package/dist/sdks/@nocha/sdk/dist/{chunk-3ULBSRGX.js → chunk-B34FPFNB.js} +1 -1
- package/dist/sdks/@nocha/sdk/dist/{chunk-MNRQELK7.js → chunk-EAC27UOG.js} +152 -7
- package/dist/sdks/{@watchirl/experience-sdk/dist/nocha/network-operations.d.ts → @nocha/sdk/dist/drive-operations.d.ts} +21 -18
- package/dist/sdks/@nocha/sdk/dist/drive-types.d.ts +76 -0
- package/dist/sdks/@nocha/sdk/dist/drive.d.ts +53 -0
- package/dist/sdks/@nocha/sdk/dist/error-codes.d.ts +9 -0
- package/dist/sdks/@nocha/sdk/dist/execution.d.ts +1 -1
- package/dist/sdks/@nocha/sdk/dist/host.js +1 -1
- package/dist/sdks/@nocha/sdk/dist/index.d.ts +4 -0
- package/dist/sdks/@nocha/sdk/dist/index.js +521 -125
- package/dist/sdks/@nocha/sdk/dist/operation-wire-types.d.ts +30 -2
- package/dist/sdks/@nocha/sdk/dist/protocol.d.ts +7 -3
- package/dist/sdks/@nocha/sdk/dist/protocol.js +19 -1
- package/dist/sdks/@nocha/sdk/dist/types/ai-wire.d.ts +40 -1
- package/dist/sdks/@nocha/sdk/dist/types/ai.d.ts +1 -1
- package/dist/sdks/@nocha/sdk/dist/types/assets-wire.d.ts +9 -1
- package/dist/sdks/@nocha/sdk/dist/types/assets.d.ts +22 -5
- package/dist/sdks/@nocha/sdk/dist/types/video-sdk-wire.d.ts +174 -13
- package/dist/sdks/@nocha/sdk/dist/types/video-wire.d.ts +120 -7
- package/dist/sdks/@nocha/sdk/dist/types/video.d.ts +5 -2
- package/dist/sdks/@nocha/sdk/dist/video-analysis.d.ts +9 -0
- package/dist/sdks/@nocha/sdk/dist/vite.js +3 -1
- package/dist/sdks/@nocha/sdk/package.json +1 -1
- package/dist/sdks/@watchirl/experience-sdk/dist/index.d.ts +2 -2
- package/dist/sdks/@watchirl/experience-sdk/dist/index.js +339 -4523
- package/dist/sdks/@watchirl/experience-sdk/dist/legacy-video.d.ts +2 -2
- package/dist/sdks/@watchirl/experience-sdk/dist/types.d.ts +1 -1
- package/dist/watchirl-sdk.js +333 -4515
- package/package.json +1 -1
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/access.d.ts +0 -23
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/ai-operations.d.ts +0 -252
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/assets-operations.d.ts +0 -102
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/assistant-contract.d.ts +0 -29
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/assistant-controls.d.ts +0 -11
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/assistant.d.ts +0 -57
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/automations-operations.d.ts +0 -377
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/automations-types.d.ts +0 -156
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/automations.d.ts +0 -27
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/backend-database.d.ts +0 -17
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/backend-operations.d.ts +0 -71
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/backend-requests.d.ts +0 -57
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/backend-runtime.d.ts +0 -106
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/backend-transactions.d.ts +0 -53
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/bridge.d.ts +0 -6
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/capability-deadlines.d.ts +0 -63
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/capability-needs.d.ts +0 -154
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/capability-operations.d.ts +0 -73
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/clipping-types.d.ts +0 -134
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/connectors-operations.d.ts +0 -103
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/connectors-types.d.ts +0 -10
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/connectors.d.ts +0 -14
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/context.d.ts +0 -18
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/device-operations.d.ts +0 -452
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/device-types.d.ts +0 -53
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/email-operations.d.ts +0 -30
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/email.d.ts +0 -9
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/error-codes.d.ts +0 -299
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/errors.d.ts +0 -36
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/execution.d.ts +0 -15
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/experience-context-types.d.ts +0 -12
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/experience-context.d.ts +0 -8
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/inbox-operations.d.ts +0 -58
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/inbox.d.ts +0 -23
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/index.d.ts +0 -101
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/multiplayer-facade.d.ts +0 -44
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/multiplayer-operations.d.ts +0 -80
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/multiplayer.d.ts +0 -16
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/navigation.d.ts +0 -16
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/network.d.ts +0 -13
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/notifications-operations.d.ts +0 -29
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/notifications.d.ts +0 -9
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/operation-metadata.d.ts +0 -67
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/operation-wire-types.d.ts +0 -319
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/outirl-operations.d.ts +0 -352
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/outirl.d.ts +0 -31
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/presence-operations.d.ts +0 -24
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/protocol.d.ts +0 -378
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/state.d.ts +0 -13
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/storage-operation-types.d.ts +0 -49
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/storage-operations.d.ts +0 -229
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/storage.d.ts +0 -32
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/transport.d.ts +0 -36
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/ai-wire.d.ts +0 -337
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/ai.d.ts +0 -20
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/assets-wire.d.ts +0 -27
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/assets.d.ts +0 -40
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/json.d.ts +0 -8
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/network.d.ts +0 -16
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/outirl.d.ts +0 -326
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/storage.d.ts +0 -74
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/video-sdk-wire.d.ts +0 -460
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/video-wire.d.ts +0 -440
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/video.d.ts +0 -164
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/voice-wire.d.ts +0 -17
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/video-operations.d.ts +0 -646
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/video-properties.d.ts +0 -6
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/viewport-types.d.ts +0 -14
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/viewport.d.ts +0 -7
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/voice.d.ts +0 -13
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/workspace.d.ts +0 -7
|
@@ -1,378 +0,0 @@
|
|
|
1
|
-
export { isExperienceContext } from './experience-context-types.js';
|
|
2
|
-
export type { ExperienceContext, ExperienceDevice } from './experience-context-types.js';
|
|
3
|
-
import type { JsonValue } from './types/json.js';
|
|
4
|
-
export { experienceTriggerErrorCodes, isNochaErrorCode, nochaErrorClasses } from './error-codes.js';
|
|
5
|
-
export type { NochaErrorClass, NochaErrorCode } from './error-codes.js';
|
|
6
|
-
export type * from './types/json.js';
|
|
7
|
-
export type * from './backend-runtime.js';
|
|
8
|
-
export type * from './backend-requests.js';
|
|
9
|
-
export type * from './backend-database.js';
|
|
10
|
-
export type { BackendTransactionRead, BackendTransactionCollectionRead, BackendTransactionMutation, BackendTransactionInput, BackendTransactionCommitResult } from './backend-transactions.js';
|
|
11
|
-
export { EXPERIENCE_BACKEND_PROFILE, EXPERIENCE_BACKEND_RUNNER_ABI } from './backend-runtime.js';
|
|
12
|
-
export { experienceBackendErrorCodes } from './error-codes.js';
|
|
13
|
-
export type * from './types/outirl.js';
|
|
14
|
-
export type * from './types/storage.js';
|
|
15
|
-
export type * from './storage-operation-types.js';
|
|
16
|
-
export * from './storage-operations.js';
|
|
17
|
-
/** Video results and workflows (`VideoGeneration`, `VideoWorkflow`…), for hosts that present them. */
|
|
18
|
-
export type * from './types/video-sdk-wire.js';
|
|
19
|
-
export { videoLocales } from './types/video-sdk-wire.js';
|
|
20
|
-
/** Generated Tripirl transport contracts, before Nocha's stable SDK presentation. */
|
|
21
|
-
export type * from './types/video-wire.js';
|
|
22
|
-
export { tripirlVideoStepIds as videoStepIds } from './types/video-wire.js';
|
|
23
|
-
export { readEffectiveVideoProperties, readVideoProperties, readVideoPropertyDefinition, videoStepIdPattern } from './video-properties.js';
|
|
24
|
-
/** Iframe transport between an experience and its Nocha host. */
|
|
25
|
-
export declare const NOCHA_BRIDGE_PROTOCOL: "nocha.bridge.v4";
|
|
26
|
-
export type BridgeRequest = {
|
|
27
|
-
protocol: typeof NOCHA_BRIDGE_PROTOCOL;
|
|
28
|
-
sdkVersion: 4;
|
|
29
|
-
type: 'invoke';
|
|
30
|
-
requestId: string;
|
|
31
|
-
capability: string;
|
|
32
|
-
operation: string;
|
|
33
|
-
idempotencyKey: string;
|
|
34
|
-
input: unknown;
|
|
35
|
-
usageId?: string;
|
|
36
|
-
};
|
|
37
|
-
export type BridgeReply = {
|
|
38
|
-
protocol: typeof NOCHA_BRIDGE_PROTOCOL;
|
|
39
|
-
requestId: string;
|
|
40
|
-
} & ({
|
|
41
|
-
type: 'result';
|
|
42
|
-
result: unknown;
|
|
43
|
-
} | {
|
|
44
|
-
type: 'error';
|
|
45
|
-
error: {
|
|
46
|
-
code: string;
|
|
47
|
-
message: string;
|
|
48
|
-
retryable?: boolean;
|
|
49
|
-
trace_id?: string;
|
|
50
|
-
correlation_id?: string;
|
|
51
|
-
/** Structured details of the failure, such as `{ workflow_id, reason }` for `workflow_unsupported`: a plain JSON object. */
|
|
52
|
-
details?: Record<string, unknown>;
|
|
53
|
-
};
|
|
54
|
-
});
|
|
55
|
-
export type BridgeEvent = {
|
|
56
|
-
type: string;
|
|
57
|
-
payload: unknown;
|
|
58
|
-
sequence?: number;
|
|
59
|
-
};
|
|
60
|
-
/** Availability is descriptive. Every call is still authorized by the host. */
|
|
61
|
-
export declare const experienceCapabilities: readonly ["presence", "multiplayer", "state", "ai", "assets", "video", "outirl", "memory", "database", "device", "network", "notifications", "inbox", "email", "backend", "automations", "connectors"];
|
|
62
|
-
export type ExperienceCapability = typeof experienceCapabilities[number];
|
|
63
|
-
export declare const browserCapabilities: readonly ["presence", "state", "ai", "assets", "video", "outirl", "memory", "database", "multiplayer", "device", "network", "notifications", "inbox", "email", "backend", "automations", "connectors"];
|
|
64
|
-
export declare const generatedCapabilities: readonly ["presence", "state", "ai", "assets", "video", "outirl", "memory", "database", "multiplayer", "device", "network", "notifications", "inbox", "email", "backend", "automations", "connectors"];
|
|
65
|
-
export declare const assistantVoices: readonly ["alloy", "ash", "ballad", "coral", "echo", "sage", "shimmer", "verse", "marin", "cedar"];
|
|
66
|
-
export type AssistantVoice = typeof assistantVoices[number];
|
|
67
|
-
export * from './capability-needs.js';
|
|
68
|
-
/** Bounded generation dimensions; ratios describe pixels, never a crop hint. */
|
|
69
|
-
export declare const imageSizes: readonly ["1024x1024", "1536x1024", "1024x1536", "1536x864", "864x1536", "1536x1152", "1152x1536"];
|
|
70
|
-
export declare const imageQualities: readonly ["low", "medium", "high"];
|
|
71
|
-
export declare const imageAspectRatios: readonly ["1:1", "3:2", "2:3", "16:9", "9:16", "4:3", "3:4"];
|
|
72
|
-
export declare const imageSizeByAspectRatio: {
|
|
73
|
-
readonly '1:1': "1024x1024";
|
|
74
|
-
readonly '3:2': "1536x1024";
|
|
75
|
-
readonly '2:3': "1024x1536";
|
|
76
|
-
readonly '16:9': "1536x864";
|
|
77
|
-
readonly '9:16': "864x1536";
|
|
78
|
-
readonly '4:3': "1536x1152";
|
|
79
|
-
readonly '3:4': "1152x1536";
|
|
80
|
-
};
|
|
81
|
-
export * from './capability-operations.js';
|
|
82
|
-
export { capabilityDeadlines } from './capability-deadlines.js';
|
|
83
|
-
/** Logical experience address. It never changes the document's asset/API base. */
|
|
84
|
-
export type ExperienceLocation = {
|
|
85
|
-
pathname: string;
|
|
86
|
-
search: string;
|
|
87
|
-
hash: string;
|
|
88
|
-
};
|
|
89
|
-
export declare const NOCHA_NAVIGATION_PROTOCOL: "nocha.navigation.v1";
|
|
90
|
-
export type NavigationIntent = {
|
|
91
|
-
protocol: typeof NOCHA_NAVIGATION_PROTOCOL;
|
|
92
|
-
type: 'intent';
|
|
93
|
-
documentId: string;
|
|
94
|
-
requestId: string;
|
|
95
|
-
} & ({
|
|
96
|
-
action: 'navigate' | 'replace';
|
|
97
|
-
location: ExperienceLocation;
|
|
98
|
-
} | {
|
|
99
|
-
action: 'back';
|
|
100
|
-
});
|
|
101
|
-
export type NavigationReady = {
|
|
102
|
-
protocol: typeof NOCHA_NAVIGATION_PROTOCOL;
|
|
103
|
-
type: 'ready';
|
|
104
|
-
documentId: string;
|
|
105
|
-
};
|
|
106
|
-
export type NavigationSnapshot = {
|
|
107
|
-
protocol: typeof NOCHA_NAVIGATION_PROTOCOL;
|
|
108
|
-
type: 'snapshot';
|
|
109
|
-
documentId: string;
|
|
110
|
-
revision: number;
|
|
111
|
-
location: ExperienceLocation;
|
|
112
|
-
canGoBack: boolean;
|
|
113
|
-
requestId?: string;
|
|
114
|
-
};
|
|
115
|
-
export type NavigationTarget = string | ExperienceLocation;
|
|
116
|
-
/** Only local experience destinations; reader parameters and paths are reserved. */
|
|
117
|
-
export declare function normalizeExperienceLocation(target: NavigationTarget, base?: ExperienceLocation): ExperienceLocation;
|
|
118
|
-
export declare function isExperienceLocation(value: unknown): value is ExperienceLocation;
|
|
119
|
-
/** Safe workspace presentation. Identity and authorization proofs remain in the host. */
|
|
120
|
-
export type WorkspaceView = {
|
|
121
|
-
id: string;
|
|
122
|
-
kind: 'public' | 'personal' | 'team';
|
|
123
|
-
environment: 'play' | 'development';
|
|
124
|
-
revisionId: string;
|
|
125
|
-
participantId: string | null;
|
|
126
|
-
permissions: {
|
|
127
|
-
read: boolean;
|
|
128
|
-
contribute: boolean;
|
|
129
|
-
manage: boolean;
|
|
130
|
-
};
|
|
131
|
-
};
|
|
132
|
-
export type LiveIdentity = {
|
|
133
|
-
user: string;
|
|
134
|
-
role: 'participant' | 'observer';
|
|
135
|
-
display_name: string;
|
|
136
|
-
};
|
|
137
|
-
export type LivePresenceSnapshot = {
|
|
138
|
-
self: LiveIdentity;
|
|
139
|
-
members: LiveIdentity[];
|
|
140
|
-
count: number;
|
|
141
|
-
};
|
|
142
|
-
export type LivePresenceEvent = {
|
|
143
|
-
type: 'join' | 'leave';
|
|
144
|
-
member: LiveIdentity;
|
|
145
|
-
snapshot: LivePresenceSnapshot;
|
|
146
|
-
} | {
|
|
147
|
-
type: 'reconcile';
|
|
148
|
-
snapshot: LivePresenceSnapshot;
|
|
149
|
-
};
|
|
150
|
-
export type LiveEvent<T = unknown> = {
|
|
151
|
-
topic: string;
|
|
152
|
-
data: T;
|
|
153
|
-
sender: LiveIdentity | {
|
|
154
|
-
user: 'system';
|
|
155
|
-
role: 'system';
|
|
156
|
-
display_name: 'Nocha';
|
|
157
|
-
};
|
|
158
|
-
delivery: 'ephemeral' | 'durable';
|
|
159
|
-
eventId: string;
|
|
160
|
-
publishedAt: string;
|
|
161
|
-
recovered: boolean;
|
|
162
|
-
};
|
|
163
|
-
export type LiveConnection = {
|
|
164
|
-
status: 'connecting' | 'connected' | 'recovering' | 'unavailable' | 'closed';
|
|
165
|
-
reason?: string;
|
|
166
|
-
attempt?: number;
|
|
167
|
-
};
|
|
168
|
-
export type LiveRecoveryRequired = {
|
|
169
|
-
topic: string;
|
|
170
|
-
reason: 'history_lost';
|
|
171
|
-
};
|
|
172
|
-
export type DeviceFeature = 'camera' | 'photos' | 'audio' | 'motion' | 'haptics' | 'location' | 'share' | 'notifications' | 'alarms';
|
|
173
|
-
/** Answered by the native players; the web reader refuses device operations (`native_host_required`). */
|
|
174
|
-
export type DeviceAvailability = {
|
|
175
|
-
platform: 'ios' | 'android' | 'web';
|
|
176
|
-
capabilities: Record<DeviceFeature, {
|
|
177
|
-
available: boolean;
|
|
178
|
-
reason?: string;
|
|
179
|
-
/** Reported for notifications and alarms. */
|
|
180
|
-
permission?: 'granted' | 'undetermined' | 'denied';
|
|
181
|
-
/** Reported for haptics by recent hosts; an older native binary omits them and refuses `haptics.pattern`. */
|
|
182
|
-
styles?: DeviceHapticStyle[];
|
|
183
|
-
pattern?: boolean;
|
|
184
|
-
}>;
|
|
185
|
-
};
|
|
186
|
-
/** Captures accept images up to 12 MiB. They are not automatically uploaded or persisted. */
|
|
187
|
-
export type DeviceMediaResult = {
|
|
188
|
-
cancelled: true;
|
|
189
|
-
} | {
|
|
190
|
-
cancelled: false;
|
|
191
|
-
file: {
|
|
192
|
-
dataUrl: string;
|
|
193
|
-
mimeType: string;
|
|
194
|
-
name: string;
|
|
195
|
-
};
|
|
196
|
-
};
|
|
197
|
-
export type DeviceLiveVideoInput = {
|
|
198
|
-
facingMode?: 'user' | 'environment';
|
|
199
|
-
width?: number;
|
|
200
|
-
height?: number;
|
|
201
|
-
frameRate?: number;
|
|
202
|
-
};
|
|
203
|
-
export type DeviceLiveAudioInput = {
|
|
204
|
-
echoCancellation?: boolean;
|
|
205
|
-
noiseSuppression?: boolean;
|
|
206
|
-
autoGainControl?: boolean;
|
|
207
|
-
};
|
|
208
|
-
export type DeviceCameraStreamInput = {
|
|
209
|
-
video: DeviceLiveVideoInput;
|
|
210
|
-
audio?: DeviceLiveAudioInput | false;
|
|
211
|
-
};
|
|
212
|
-
export type DeviceMicrophoneStreamInput = {
|
|
213
|
-
audio: DeviceLiveAudioInput;
|
|
214
|
-
};
|
|
215
|
-
export type DeviceLiveMediaResult = {
|
|
216
|
-
session: string;
|
|
217
|
-
video: {
|
|
218
|
-
width: number;
|
|
219
|
-
height: number;
|
|
220
|
-
frameRate: number;
|
|
221
|
-
facingMode: 'user' | 'environment';
|
|
222
|
-
} | null;
|
|
223
|
-
audio: {
|
|
224
|
-
sampleRate: number;
|
|
225
|
-
channelCount: 1;
|
|
226
|
-
} | null;
|
|
227
|
-
};
|
|
228
|
-
export type DeviceMotionInput = {
|
|
229
|
-
id: string;
|
|
230
|
-
sensor: 'accelerometer' | 'gyroscope';
|
|
231
|
-
intervalMs?: number;
|
|
232
|
-
};
|
|
233
|
-
export type DeviceMotionEvent = {
|
|
234
|
-
id: string;
|
|
235
|
-
sensor: 'accelerometer' | 'gyroscope';
|
|
236
|
-
x: number;
|
|
237
|
-
y: number;
|
|
238
|
-
z: number;
|
|
239
|
-
timestamp: number;
|
|
240
|
-
};
|
|
241
|
-
/** A stable id replaces/reconciles the same scheduled item within this experience. */
|
|
242
|
-
export type DeviceScheduleInput = {
|
|
243
|
-
id: string;
|
|
244
|
-
title: string;
|
|
245
|
-
body?: string;
|
|
246
|
-
at: string;
|
|
247
|
-
};
|
|
248
|
-
export type DeviceScheduledItem = DeviceScheduleInput & {
|
|
249
|
-
kind: 'notification' | 'alarm';
|
|
250
|
-
};
|
|
251
|
-
export declare const deviceHapticStyles: readonly ["selection", "light", "medium", "heavy", "soft", "rigid", "success", "warning", "error"];
|
|
252
|
-
export type DeviceHapticStyle = typeof deviceHapticStyles[number];
|
|
253
|
-
export type DeviceHapticsInput = {
|
|
254
|
-
style?: DeviceHapticStyle;
|
|
255
|
-
};
|
|
256
|
-
/** Haptic pattern bounds: each `delayMs` counts from the previous step. */
|
|
257
|
-
export declare const DEVICE_HAPTIC_PATTERN_MAX_STEPS = 16;
|
|
258
|
-
export declare const DEVICE_HAPTIC_PATTERN_MAX_DELAY_MS = 1000;
|
|
259
|
-
export declare const DEVICE_HAPTIC_PATTERN_MIN_INTERVAL_MS = 40;
|
|
260
|
-
export declare const DEVICE_HAPTIC_PATTERN_MAX_DURATION_MS = 3000;
|
|
261
|
-
export declare const DEVICE_HAPTIC_PATTERNS_PER_SECOND = 4;
|
|
262
|
-
export type DeviceHapticStep = {
|
|
263
|
-
style: DeviceHapticStyle;
|
|
264
|
-
delayMs: number;
|
|
265
|
-
};
|
|
266
|
-
/** One active pattern per document: a new one replaces it; `completed: false` reports an interruption. */
|
|
267
|
-
export type DeviceHapticPatternInput = {
|
|
268
|
-
steps: DeviceHapticStep[];
|
|
269
|
-
};
|
|
270
|
-
export type DeviceShareInput = {
|
|
271
|
-
title?: string;
|
|
272
|
-
message?: string;
|
|
273
|
-
url?: string;
|
|
274
|
-
file?: {
|
|
275
|
-
dataUrl: string;
|
|
276
|
-
name: string;
|
|
277
|
-
};
|
|
278
|
-
};
|
|
279
|
-
export type DeviceLocation = {
|
|
280
|
-
latitude: number;
|
|
281
|
-
longitude: number;
|
|
282
|
-
accuracy: number | null;
|
|
283
|
-
};
|
|
284
|
-
/** One notification to the calling player, delivered by the product that owns their devices.
|
|
285
|
-
* `dedupeKey` reconciles the same finished work; `destination` reopens this experience's own play address. */
|
|
286
|
-
export type NotificationSendInput = {
|
|
287
|
-
title: string;
|
|
288
|
-
body?: string;
|
|
289
|
-
destination?: ExperienceLocation;
|
|
290
|
-
dedupeKey: string;
|
|
291
|
-
};
|
|
292
|
-
export type NotificationSendResult = {
|
|
293
|
-
status: 'queued' | 'suppressed' | 'duplicate';
|
|
294
|
-
reason?: string;
|
|
295
|
-
};
|
|
296
|
-
/** Where an inbox event came from: an API call, the experience mail address, a Studio schedule, a Studio
|
|
297
|
-
* « run now », or a Studio test. Triggers are configured by the owner, never by the experience. */
|
|
298
|
-
export type InboxEventSource = 'api' | 'email' | 'schedule' | 'manual' | 'test';
|
|
299
|
-
/** Attachments are described, not stored: their content never reaches the inbox. */
|
|
300
|
-
export type InboxEmailAttachment = {
|
|
301
|
-
name: string;
|
|
302
|
-
type: string;
|
|
303
|
-
size: number;
|
|
304
|
-
};
|
|
305
|
-
/** A received mail, normalized by the host. `authenticated` is a DMARC pass, or a DKIM signature of the From
|
|
306
|
-
* domain or a parent of it, as checked on receipt; `tag` is the `+tag` part of the address it was sent to;
|
|
307
|
-
* `truncated` marks a text or HTML body cut at its bound (64 KiB, 256 KiB). `html` is the sender's markup: render
|
|
308
|
-
* it sandboxed or not at all. */
|
|
309
|
-
export type InboxEmail = {
|
|
310
|
-
from: string;
|
|
311
|
-
to: string[];
|
|
312
|
-
cc: string[];
|
|
313
|
-
subject: string;
|
|
314
|
-
text?: string;
|
|
315
|
-
html?: string;
|
|
316
|
-
date?: string;
|
|
317
|
-
messageId?: string;
|
|
318
|
-
inReplyTo?: string;
|
|
319
|
-
references?: string[];
|
|
320
|
-
attachments: InboxEmailAttachment[];
|
|
321
|
-
authenticated: boolean;
|
|
322
|
-
tag?: string;
|
|
323
|
-
truncated?: boolean;
|
|
324
|
-
};
|
|
325
|
-
export type InboxTriggerRef = {
|
|
326
|
-
id: string;
|
|
327
|
-
slug: string;
|
|
328
|
-
name: string;
|
|
329
|
-
};
|
|
330
|
-
/** One event of the execution workspace inbox, kept 30 days. `task` and `payload` come from the trigger or
|
|
331
|
-
* the caller; `email` is set for received mail and the Studio test mail only. Acknowledge what you handled so it
|
|
332
|
-
* leaves the pending list. */
|
|
333
|
-
export type InboxEvent = {
|
|
334
|
-
id: string;
|
|
335
|
-
source: InboxEventSource;
|
|
336
|
-
trigger: InboxTriggerRef | null;
|
|
337
|
-
task: string | null;
|
|
338
|
-
payload: JsonValue | null;
|
|
339
|
-
email: InboxEmail | null;
|
|
340
|
-
status: 'pending' | 'acked';
|
|
341
|
-
createdAt: string;
|
|
342
|
-
};
|
|
343
|
-
/** Oldest first. `after` is the id of the last event already read; `limit` is at most 50 (default 20);
|
|
344
|
-
* `status` defaults to `pending`. */
|
|
345
|
-
export type InboxListInput = {
|
|
346
|
-
after?: string;
|
|
347
|
-
limit?: number;
|
|
348
|
-
status?: 'pending' | 'acked' | 'all';
|
|
349
|
-
};
|
|
350
|
-
export type InboxListResult = {
|
|
351
|
-
items: InboxEvent[];
|
|
352
|
-
next: string | null;
|
|
353
|
-
};
|
|
354
|
-
/** At most 50 ids; acknowledging an acknowledged or unknown event is not an error. */
|
|
355
|
-
export type InboxAckInput = {
|
|
356
|
-
ids: string[];
|
|
357
|
-
};
|
|
358
|
-
export type InboxAckResult = {
|
|
359
|
-
acked: number;
|
|
360
|
-
};
|
|
361
|
-
/** One message from this experience, sent for a signed-in player. `to` is `me` (the calling player's verified
|
|
362
|
-
* address), `owner`, or an address the owner allowed; `replyToEventId` answers the authenticated sender of a mail
|
|
363
|
-
* received less than 7 days ago in the same workspace and environment, in its thread. The host never sends to any
|
|
364
|
-
* other address. */
|
|
365
|
-
export type EmailSendInput = {
|
|
366
|
-
to?: string;
|
|
367
|
-
replyToEventId?: string;
|
|
368
|
-
subject: string;
|
|
369
|
-
text: string;
|
|
370
|
-
html?: string;
|
|
371
|
-
};
|
|
372
|
-
/** `sent`: handed to the transport. `queued`: the transport was unavailable and the host retries it, at most three
|
|
373
|
-
* attempts in all, without another charge. `duplicate`: this player already used the key here; nothing new is sent. */
|
|
374
|
-
export type EmailSendResult = {
|
|
375
|
-
id: string;
|
|
376
|
-
status: 'queued' | 'sent' | 'duplicate';
|
|
377
|
-
};
|
|
378
|
-
export type * from './automations-types.js';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { NochaError } from './errors.js';
|
|
2
|
-
import { type BridgeEvent } from './transport.js';
|
|
3
|
-
import type { Invoke, RequestOptions } from './context.js';
|
|
4
|
-
import type { LiveConnection } from './multiplayer.js';
|
|
5
|
-
import type { StateSnapshot } from './types/storage.js';
|
|
6
|
-
export type StateObservation = {
|
|
7
|
-
status: 'loading' | 'synchronized' | 'recovering' | 'unavailable' | 'closed';
|
|
8
|
-
snapshot: StateSnapshot | null;
|
|
9
|
-
error?: NochaError;
|
|
10
|
-
};
|
|
11
|
-
export declare function createStateWatch(invoke: Invoke, subscribeEvents: (listener: (event: BridgeEvent) => void) => () => void, subscribeConnection: (listener: (event: LiveConnection) => void) => () => void): (listener: (observation: StateObservation) => void, options?: RequestOptions) => (() => void);
|
|
12
|
-
/** `{ sequence, state }` from state.get/state.set and `state.set` events. */
|
|
13
|
-
export declare function isStateSnapshot(value: unknown): value is StateSnapshot;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import type { BackendTransactionInput, BackendTransactionCommitResult } from './backend-transactions.js';
|
|
2
|
-
import type * as Storage from './types/storage.js';
|
|
3
|
-
/** Names are emitted in the reference; their values remain the existing wire types. */
|
|
4
|
-
export type StorageWireTypes = {
|
|
5
|
-
BackendTransactionInput: BackendTransactionInput;
|
|
6
|
-
BackendTransactionCommitResult: BackendTransactionCommitResult;
|
|
7
|
-
StateGetInput: Storage.StateGetInput;
|
|
8
|
-
StateSetInput: Storage.StateSetInput;
|
|
9
|
-
StateSnapshot: Storage.StateSnapshot;
|
|
10
|
-
MemoryGetInput: Storage.MemoryGetInput;
|
|
11
|
-
MemorySetInput: Storage.MemorySetInput;
|
|
12
|
-
MemoryValue: Storage.MemoryValue;
|
|
13
|
-
DatabaseInsertInput: Storage.DatabaseInsertInput;
|
|
14
|
-
DatabaseInsertOutput: Storage.DatabaseInsertOutput;
|
|
15
|
-
DatabaseGetInput: Storage.DatabaseGetInput;
|
|
16
|
-
DatabaseGetOutput: Storage.DatabaseGetOutput;
|
|
17
|
-
DatabaseQueryInput: Storage.DatabaseQueryInput;
|
|
18
|
-
DatabaseQueryOutput: Storage.DatabaseQueryOutput;
|
|
19
|
-
DatabaseUpdateInput: Storage.DatabaseUpdateInput;
|
|
20
|
-
DatabaseUpdateOutput: Storage.DatabaseUpdateOutput;
|
|
21
|
-
DatabaseRemoveInput: Storage.DatabaseRemoveInput;
|
|
22
|
-
DatabaseRemoveOutput: Storage.DatabaseRemoveOutput;
|
|
23
|
-
};
|
|
24
|
-
export type StorageOperationMetadata = {
|
|
25
|
-
capability: 'state' | 'memory' | 'database';
|
|
26
|
-
operation: string;
|
|
27
|
-
facades: readonly {
|
|
28
|
-
path: string;
|
|
29
|
-
kind: 'direct' | 'composite';
|
|
30
|
-
live?: 'state';
|
|
31
|
-
}[];
|
|
32
|
-
input: keyof StorageWireTypes;
|
|
33
|
-
output: keyof StorageWireTypes;
|
|
34
|
-
access: 'read' | 'contribute';
|
|
35
|
-
resource: 'key' | 'collection' | null;
|
|
36
|
-
/** Eligibility only. Revision declarations, grants, workspace and resource rights still decide. */
|
|
37
|
-
observer: 'declared-public-read' | 'denied';
|
|
38
|
-
publicRead: 'eligible' | 'denied';
|
|
39
|
-
spend: 'none';
|
|
40
|
-
idempotency: 'read' | 'durable-receipt' | 'compare-and-set';
|
|
41
|
-
/** No uniform server deadline/margin exists for storage. Do not invent one. */
|
|
42
|
-
deadlineMs: null;
|
|
43
|
-
sdkMarginMs: null;
|
|
44
|
-
sdkTimeoutMs: number;
|
|
45
|
-
/** Current published playback route; other transports keep their own admission. */
|
|
46
|
-
rateBucket: 'public-playback';
|
|
47
|
-
};
|
|
48
|
-
export type StorageOperationInput<D extends StorageOperationMetadata> = StorageWireTypes[D['input']];
|
|
49
|
-
export type StorageOperationOutput<D extends StorageOperationMetadata> = StorageWireTypes[D['output']];
|
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
/** Closed storage protocol inventory. Metadata neither grants rights, creates keys nor retries calls.
|
|
2
|
-
* A composite facade declares its wire dependency here; state.watch is never a server operation. */
|
|
3
|
-
export declare const storageOperations: {
|
|
4
|
-
readonly state: {
|
|
5
|
-
readonly get: {
|
|
6
|
-
readonly capability: "state";
|
|
7
|
-
readonly operation: "get";
|
|
8
|
-
readonly input: "StateGetInput";
|
|
9
|
-
readonly output: "StateSnapshot";
|
|
10
|
-
readonly resource: null;
|
|
11
|
-
readonly facades: readonly [{
|
|
12
|
-
readonly path: "state.get";
|
|
13
|
-
readonly kind: "direct";
|
|
14
|
-
}, {
|
|
15
|
-
readonly path: "state.watch";
|
|
16
|
-
readonly kind: "composite";
|
|
17
|
-
readonly live: "state";
|
|
18
|
-
}];
|
|
19
|
-
readonly access: "read";
|
|
20
|
-
readonly observer: "declared-public-read";
|
|
21
|
-
readonly publicRead: "eligible";
|
|
22
|
-
readonly idempotency: "read";
|
|
23
|
-
readonly spend: "none";
|
|
24
|
-
readonly deadlineMs: null;
|
|
25
|
-
readonly sdkMarginMs: null;
|
|
26
|
-
readonly sdkTimeoutMs: 15000;
|
|
27
|
-
readonly rateBucket: "public-playback";
|
|
28
|
-
};
|
|
29
|
-
readonly set: {
|
|
30
|
-
readonly capability: "state";
|
|
31
|
-
readonly operation: "set";
|
|
32
|
-
readonly input: "StateSetInput";
|
|
33
|
-
readonly output: "StateSnapshot";
|
|
34
|
-
readonly resource: null;
|
|
35
|
-
readonly idempotency: "durable-receipt";
|
|
36
|
-
readonly facades: readonly [{
|
|
37
|
-
readonly path: "state.set";
|
|
38
|
-
readonly kind: "direct";
|
|
39
|
-
}];
|
|
40
|
-
readonly access: "contribute";
|
|
41
|
-
readonly observer: "denied";
|
|
42
|
-
readonly publicRead: "denied";
|
|
43
|
-
readonly spend: "none";
|
|
44
|
-
readonly deadlineMs: null;
|
|
45
|
-
readonly sdkMarginMs: null;
|
|
46
|
-
readonly sdkTimeoutMs: 15000;
|
|
47
|
-
readonly rateBucket: "public-playback";
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
readonly memory: {
|
|
51
|
-
readonly get: {
|
|
52
|
-
readonly capability: "memory";
|
|
53
|
-
readonly operation: "get";
|
|
54
|
-
readonly input: "MemoryGetInput";
|
|
55
|
-
readonly output: "MemoryValue";
|
|
56
|
-
readonly resource: "key";
|
|
57
|
-
readonly facades: readonly [{
|
|
58
|
-
readonly path: "memory.get";
|
|
59
|
-
readonly kind: "direct";
|
|
60
|
-
}];
|
|
61
|
-
readonly access: "read";
|
|
62
|
-
readonly observer: "declared-public-read";
|
|
63
|
-
readonly publicRead: "eligible";
|
|
64
|
-
readonly idempotency: "read";
|
|
65
|
-
readonly spend: "none";
|
|
66
|
-
readonly deadlineMs: null;
|
|
67
|
-
readonly sdkMarginMs: null;
|
|
68
|
-
readonly sdkTimeoutMs: 15000;
|
|
69
|
-
readonly rateBucket: "public-playback";
|
|
70
|
-
};
|
|
71
|
-
readonly set: {
|
|
72
|
-
readonly capability: "memory";
|
|
73
|
-
readonly operation: "set";
|
|
74
|
-
readonly input: "MemorySetInput";
|
|
75
|
-
readonly output: "MemoryValue";
|
|
76
|
-
readonly resource: "key";
|
|
77
|
-
readonly idempotency: "compare-and-set";
|
|
78
|
-
readonly facades: readonly [{
|
|
79
|
-
readonly path: "memory.set";
|
|
80
|
-
readonly kind: "direct";
|
|
81
|
-
}];
|
|
82
|
-
readonly access: "contribute";
|
|
83
|
-
readonly observer: "denied";
|
|
84
|
-
readonly publicRead: "denied";
|
|
85
|
-
readonly spend: "none";
|
|
86
|
-
readonly deadlineMs: null;
|
|
87
|
-
readonly sdkMarginMs: null;
|
|
88
|
-
readonly sdkTimeoutMs: 15000;
|
|
89
|
-
readonly rateBucket: "public-playback";
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
readonly database: {
|
|
93
|
-
readonly insert: {
|
|
94
|
-
readonly capability: "database";
|
|
95
|
-
readonly operation: "insert";
|
|
96
|
-
readonly input: "DatabaseInsertInput";
|
|
97
|
-
readonly output: "DatabaseInsertOutput";
|
|
98
|
-
readonly resource: "collection";
|
|
99
|
-
readonly idempotency: "durable-receipt";
|
|
100
|
-
readonly facades: readonly [{
|
|
101
|
-
readonly path: "database.insert";
|
|
102
|
-
readonly kind: "direct";
|
|
103
|
-
}];
|
|
104
|
-
readonly access: "contribute";
|
|
105
|
-
readonly observer: "denied";
|
|
106
|
-
readonly publicRead: "denied";
|
|
107
|
-
readonly spend: "none";
|
|
108
|
-
readonly deadlineMs: null;
|
|
109
|
-
readonly sdkMarginMs: null;
|
|
110
|
-
readonly sdkTimeoutMs: 15000;
|
|
111
|
-
readonly rateBucket: "public-playback";
|
|
112
|
-
};
|
|
113
|
-
readonly get: {
|
|
114
|
-
readonly capability: "database";
|
|
115
|
-
readonly operation: "get";
|
|
116
|
-
readonly input: "DatabaseGetInput";
|
|
117
|
-
readonly output: "DatabaseGetOutput";
|
|
118
|
-
readonly resource: "collection";
|
|
119
|
-
readonly facades: readonly [{
|
|
120
|
-
readonly path: "database.get";
|
|
121
|
-
readonly kind: "direct";
|
|
122
|
-
}];
|
|
123
|
-
readonly access: "read";
|
|
124
|
-
readonly observer: "declared-public-read";
|
|
125
|
-
readonly publicRead: "eligible";
|
|
126
|
-
readonly idempotency: "read";
|
|
127
|
-
readonly spend: "none";
|
|
128
|
-
readonly deadlineMs: null;
|
|
129
|
-
readonly sdkMarginMs: null;
|
|
130
|
-
readonly sdkTimeoutMs: 15000;
|
|
131
|
-
readonly rateBucket: "public-playback";
|
|
132
|
-
};
|
|
133
|
-
readonly query: {
|
|
134
|
-
readonly capability: "database";
|
|
135
|
-
readonly operation: "query";
|
|
136
|
-
readonly input: "DatabaseQueryInput";
|
|
137
|
-
readonly output: "DatabaseQueryOutput";
|
|
138
|
-
readonly resource: "collection";
|
|
139
|
-
readonly facades: readonly [{
|
|
140
|
-
readonly path: "database.query";
|
|
141
|
-
readonly kind: "direct";
|
|
142
|
-
}];
|
|
143
|
-
readonly access: "read";
|
|
144
|
-
readonly observer: "declared-public-read";
|
|
145
|
-
readonly publicRead: "eligible";
|
|
146
|
-
readonly idempotency: "read";
|
|
147
|
-
readonly spend: "none";
|
|
148
|
-
readonly deadlineMs: null;
|
|
149
|
-
readonly sdkMarginMs: null;
|
|
150
|
-
readonly sdkTimeoutMs: 15000;
|
|
151
|
-
readonly rateBucket: "public-playback";
|
|
152
|
-
};
|
|
153
|
-
readonly update: {
|
|
154
|
-
readonly capability: "database";
|
|
155
|
-
readonly operation: "update";
|
|
156
|
-
readonly input: "DatabaseUpdateInput";
|
|
157
|
-
readonly output: "DatabaseUpdateOutput";
|
|
158
|
-
readonly resource: "collection";
|
|
159
|
-
readonly idempotency: "compare-and-set";
|
|
160
|
-
readonly facades: readonly [{
|
|
161
|
-
readonly path: "database.update";
|
|
162
|
-
readonly kind: "direct";
|
|
163
|
-
}];
|
|
164
|
-
readonly access: "contribute";
|
|
165
|
-
readonly observer: "denied";
|
|
166
|
-
readonly publicRead: "denied";
|
|
167
|
-
readonly spend: "none";
|
|
168
|
-
readonly deadlineMs: null;
|
|
169
|
-
readonly sdkMarginMs: null;
|
|
170
|
-
readonly sdkTimeoutMs: 15000;
|
|
171
|
-
readonly rateBucket: "public-playback";
|
|
172
|
-
};
|
|
173
|
-
readonly remove: {
|
|
174
|
-
readonly capability: "database";
|
|
175
|
-
readonly operation: "remove";
|
|
176
|
-
readonly input: "DatabaseRemoveInput";
|
|
177
|
-
readonly output: "DatabaseRemoveOutput";
|
|
178
|
-
readonly resource: "collection";
|
|
179
|
-
readonly idempotency: "compare-and-set";
|
|
180
|
-
readonly facades: readonly [{
|
|
181
|
-
readonly path: "database.remove";
|
|
182
|
-
readonly kind: "direct";
|
|
183
|
-
}];
|
|
184
|
-
readonly access: "contribute";
|
|
185
|
-
readonly observer: "denied";
|
|
186
|
-
readonly publicRead: "denied";
|
|
187
|
-
readonly spend: "none";
|
|
188
|
-
readonly deadlineMs: null;
|
|
189
|
-
readonly sdkMarginMs: null;
|
|
190
|
-
readonly sdkTimeoutMs: 15000;
|
|
191
|
-
readonly rateBucket: "public-playback";
|
|
192
|
-
};
|
|
193
|
-
readonly transact: {
|
|
194
|
-
readonly capability: "database";
|
|
195
|
-
readonly operation: "transact";
|
|
196
|
-
readonly input: "BackendTransactionInput";
|
|
197
|
-
readonly output: "BackendTransactionCommitResult";
|
|
198
|
-
readonly resource: null;
|
|
199
|
-
readonly idempotency: "durable-receipt";
|
|
200
|
-
readonly facades: readonly [];
|
|
201
|
-
readonly access: "contribute";
|
|
202
|
-
readonly observer: "denied";
|
|
203
|
-
readonly publicRead: "denied";
|
|
204
|
-
readonly spend: "none";
|
|
205
|
-
readonly deadlineMs: null;
|
|
206
|
-
readonly sdkMarginMs: null;
|
|
207
|
-
readonly sdkTimeoutMs: 15000;
|
|
208
|
-
readonly rateBucket: "public-playback";
|
|
209
|
-
};
|
|
210
|
-
};
|
|
211
|
-
};
|
|
212
|
-
export type StorageCapability = keyof typeof storageOperations;
|
|
213
|
-
export declare const storageCapabilities: readonly StorageCapability[];
|
|
214
|
-
export type StorageOperation = {
|
|
215
|
-
[C in StorageCapability]: (typeof storageOperations)[C][keyof (typeof storageOperations)[C]];
|
|
216
|
-
}[StorageCapability];
|
|
217
|
-
export declare const storageOperationList: readonly StorageOperation[];
|
|
218
|
-
export type StorageOperationId = {
|
|
219
|
-
[C in StorageCapability]: `${C}.${keyof typeof storageOperations[C] & string}`;
|
|
220
|
-
}[StorageCapability];
|
|
221
|
-
export declare const storageReadOperations: readonly Extract<StorageOperation, {
|
|
222
|
-
access: 'read';
|
|
223
|
-
}>[];
|
|
224
|
-
export declare const databaseOperations: readonly ["insert", "get", "query", "update", "remove", "transact"];
|
|
225
|
-
export declare const stateOperations: readonly (keyof typeof storageOperations.state)[];
|
|
226
|
-
export declare const memoryOperations: readonly (keyof typeof storageOperations.memory)[];
|
|
227
|
-
export declare function findStorageOperation(capability: string, operation: string): StorageOperation | undefined;
|
|
228
|
-
export declare function isStorageOperationId(capability: StorageCapability, operation: string): boolean;
|
|
229
|
-
export declare function isStoragePublicReadId(capability: StorageCapability, operation: string): boolean;
|