@statelyai/sdk 0.29.1 → 0.31.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/README.md +6 -0
- package/dist/assetStorage.d.mts +1 -1
- package/dist/auth.d.mts +1 -1
- package/dist/{statelyPragma-p1vu8PmH.mjs → dist-BQEaIgBI.mjs} +113 -134
- package/dist/{editor-sync-types-DB1N6QUK.d.mts → editor-sync-types-CPpzTSnT.d.mts} +4 -0
- package/dist/{editorHostSession-vSt07IJV.d.mts → editorHostSession-BHr3WBHT.d.mts} +105 -6
- package/dist/{editorHostSession-DNpXPNAc.mjs → editorHostSession-Dm5i4mg_.mjs} +380 -20
- package/dist/editorHostSession.d.mts +2 -2
- package/dist/editorHostSession.mjs +3 -2
- package/dist/embed.d.mts +3 -4
- package/dist/embed.mjs +5 -2
- package/dist/{graph-C8E1Exad.d.mts → graph-CehpcL7P.d.mts} +1 -1
- package/dist/graph.d.mts +1 -1
- package/dist/{index-D4pdeDpT.d.mts → index-ZlKF1x_z.d.mts} +80 -1
- package/dist/index.d.mts +8 -9
- package/dist/index.mjs +6 -5
- package/dist/{inspect-dmCvrIl1.mjs → inspect-BD6fDWzd.mjs} +1 -1
- package/dist/{inspect-D61HS-t7.d.mts → inspect-BgYRNJF9.d.mts} +1 -2
- package/dist/inspect.d.mts +2 -2
- package/dist/inspect.mjs +2 -2
- package/dist/patchTypes.d.mts +1 -1
- package/dist/protocol-DOt1Vz-5.d.mts +842 -0
- package/dist/protocol.d.mts +2 -821
- package/dist/relay.d.mts +1 -1
- package/dist/statelyPragma-D46lczJR.mjs +102 -0
- package/dist/{studio-D-yqFd0u.d.mts → studio-GZ6E_xns.d.mts} +2 -2
- package/dist/studio.d.mts +1 -1
- package/dist/sync.d.mts +2 -2
- package/dist/sync.mjs +65 -18
- package/dist/{version-DC3yW9Dk.mjs → version-DbnY8nLV.mjs} +1 -1
- package/package.json +3 -3
- package/schemas/statelyai.schema.json +6 -0
- package/dist/embedPanel-Bpbq4sfJ.d.mts +0 -13
- /package/dist/{auth-BPyCCHYo.d.mts → auth-Dg7prjeL.d.mts} +0 -0
package/dist/protocol.d.mts
CHANGED
|
@@ -1,821 +1,2 @@
|
|
|
1
|
-
import { i as
|
|
2
|
-
|
|
3
|
-
import { n as EmbedPanelPosition, t as EmbedPanelConfig } from "./embedPanel-Bpbq4sfJ.mjs";
|
|
4
|
-
import { c as EditorSyncSourceLocation, f as MachineSourceLocations$1, l as EditorSyncSourceRange, t as EditorCapabilities$1, u as EditorSyncStateSourceLocation } from "./editor-sync-types-DB1N6QUK.mjs";
|
|
5
|
-
|
|
6
|
-
//#region src/protocol.d.ts
|
|
7
|
-
/** Query parameter carrying the unguessable inspection room capability. */
|
|
8
|
-
declare const INSPECTION_ROOM_QUERY_PARAM = "r";
|
|
9
|
-
/**
|
|
10
|
-
* Create the room-global identity for one producer-local actor session.
|
|
11
|
-
* Runtime and producer-resolved session ids may use different uniqueness
|
|
12
|
-
* domains; the producer id supplies a stable room namespace.
|
|
13
|
-
*/
|
|
14
|
-
declare function createInspectionActorId(producerId: string, sessionId: string): string;
|
|
15
|
-
interface InspectionRoomUrls {
|
|
16
|
-
roomId: string;
|
|
17
|
-
relayUrl: string;
|
|
18
|
-
inspectorUrl: string;
|
|
19
|
-
}
|
|
20
|
-
/** Resolve the transport and browser URLs required by the inspection protocol. */
|
|
21
|
-
declare function createInspectionRoomUrls(options: {
|
|
22
|
-
url: string;
|
|
23
|
-
roomId: string;
|
|
24
|
-
inspectorBaseUrl?: string;
|
|
25
|
-
}): InspectionRoomUrls;
|
|
26
|
-
/** Read a room capability from a conforming relay or inspector URL. */
|
|
27
|
-
declare function getInspectionRoomId(value: string | URL): string | null;
|
|
28
|
-
type EmbedMode = 'editing' | 'viewing' | 'simulating' | 'inspecting';
|
|
29
|
-
interface CommentsConfig {
|
|
30
|
-
roomId: string;
|
|
31
|
-
userId?: string | null;
|
|
32
|
-
publicApiKey?: string;
|
|
33
|
-
authEndpoint?: string;
|
|
34
|
-
baseUrl?: string;
|
|
35
|
-
}
|
|
36
|
-
interface ProjectEmbedMachine {
|
|
37
|
-
id: string;
|
|
38
|
-
name?: string;
|
|
39
|
-
/** Optional host project scope for machine-to-machine references. */
|
|
40
|
-
projectId?: string;
|
|
41
|
-
createdAt?: number;
|
|
42
|
-
updatedAt?: number;
|
|
43
|
-
origin?: ProjectWorkspaceMachineOrigin;
|
|
44
|
-
machine: unknown;
|
|
45
|
-
}
|
|
46
|
-
type ProjectWorkspaceActionIcon = 'arrow-left' | 'copy' | 'fork' | 'history';
|
|
47
|
-
interface ProjectWorkspaceAction {
|
|
48
|
-
id: string;
|
|
49
|
-
label: string;
|
|
50
|
-
icon?: ProjectWorkspaceActionIcon;
|
|
51
|
-
disabled?: boolean;
|
|
52
|
-
}
|
|
53
|
-
interface ProjectWorkspaceMachineOrigin {
|
|
54
|
-
parentMachineId: string;
|
|
55
|
-
type: 'version' | 'fork';
|
|
56
|
-
createdBy?: {
|
|
57
|
-
type: string;
|
|
58
|
-
id?: string;
|
|
59
|
-
name?: string;
|
|
60
|
-
};
|
|
61
|
-
captureType?: string;
|
|
62
|
-
}
|
|
63
|
-
/** Opt-in host-facing automatic version capture policy. */
|
|
64
|
-
interface MachineVersionAutoSaveOptions {
|
|
65
|
-
/** Minimum time between automatic versions, in milliseconds. */
|
|
66
|
-
intervalMs: number;
|
|
67
|
-
createdBy?: {
|
|
68
|
-
type: string;
|
|
69
|
-
id?: string;
|
|
70
|
-
name?: string;
|
|
71
|
-
};
|
|
72
|
-
captureType?: string;
|
|
73
|
-
}
|
|
74
|
-
interface ProjectWorkspaceMachine {
|
|
75
|
-
id: string;
|
|
76
|
-
name?: string;
|
|
77
|
-
createdAt?: number;
|
|
78
|
-
updatedAt?: number;
|
|
79
|
-
origin?: ProjectWorkspaceMachineOrigin;
|
|
80
|
-
/** Optional editor target supplied by a hosted workspace. */
|
|
81
|
-
editor?: 'legacy' | 'beta';
|
|
82
|
-
/** Action emitted instead of selecting the machine when it is clicked. */
|
|
83
|
-
openAction?: ProjectWorkspaceAction;
|
|
84
|
-
}
|
|
85
|
-
interface ProjectWorkspaceProject {
|
|
86
|
-
id: string;
|
|
87
|
-
name: string;
|
|
88
|
-
machines: ProjectWorkspaceMachine[];
|
|
89
|
-
rootMachineId?: string;
|
|
90
|
-
}
|
|
91
|
-
/** Host-backed operations for the built-in workspace controls. */
|
|
92
|
-
interface ProjectWorkspaceCapabilities {
|
|
93
|
-
renameProject?: ProjectWorkspaceAction;
|
|
94
|
-
createMachine?: ProjectWorkspaceAction;
|
|
95
|
-
createMachineVersion?: ProjectWorkspaceAction;
|
|
96
|
-
restoreMachineVersion?: ProjectWorkspaceAction;
|
|
97
|
-
renameMachine?: ProjectWorkspaceAction;
|
|
98
|
-
copyMachine?: ProjectWorkspaceAction;
|
|
99
|
-
deleteMachine?: ProjectWorkspaceAction;
|
|
100
|
-
setRootMachine?: ProjectWorkspaceAction;
|
|
101
|
-
}
|
|
102
|
-
interface ProjectWorkspaceConfigBase {
|
|
103
|
-
defaultProjectId?: string;
|
|
104
|
-
/** Optional navigation action shown above the workspace. Set to null to hide it. */
|
|
105
|
-
backAction?: ProjectWorkspaceAction | null;
|
|
106
|
-
userAvatarUrl?: string;
|
|
107
|
-
machineSelectionDisabled?: boolean;
|
|
108
|
-
/** Optional host-backed operations for the built-in workspace controls. */
|
|
109
|
-
workspaceCapabilities?: ProjectWorkspaceCapabilities;
|
|
110
|
-
/** Actions rendered from the workspace options menu. */
|
|
111
|
-
workspaceActions?: ProjectWorkspaceAction[];
|
|
112
|
-
/** Optional actions keyed by project or machine id. */
|
|
113
|
-
projectActions?: Record<string, ProjectWorkspaceAction[]>;
|
|
114
|
-
machineActions?: Record<string, ProjectWorkspaceAction[]>;
|
|
115
|
-
}
|
|
116
|
-
/** Serializable workspace tree rendered by project-mode embeds. */
|
|
117
|
-
type ProjectWorkspaceConfig = (ProjectWorkspaceConfigBase & {
|
|
118
|
-
/** Single-project mode: hides project CRUD for this project. */project: ProjectWorkspaceProject;
|
|
119
|
-
projects?: never;
|
|
120
|
-
}) | (ProjectWorkspaceConfigBase & {
|
|
121
|
-
/** Multi-project mode: renders a collapsible project tree. */projects: ProjectWorkspaceProject[];
|
|
122
|
-
project?: never;
|
|
123
|
-
});
|
|
124
|
-
declare const EMBED_DOCUMENT_LANGUAGES: readonly ["markdown", "typescript", "javascript", "json", "xml", "mermaid", "text"];
|
|
125
|
-
type EmbedDocumentLanguage = (typeof EMBED_DOCUMENT_LANGUAGES)[number];
|
|
126
|
-
declare const EMBED_DOCUMENT_LIMITS: {
|
|
127
|
-
readonly maxDocuments: 100;
|
|
128
|
-
readonly maxDocumentLength: number;
|
|
129
|
-
readonly maxTotalLength: number;
|
|
130
|
-
};
|
|
131
|
-
/** Read-only text supplied by an embed host for display beside a machine. */
|
|
132
|
-
interface EmbedDocument {
|
|
133
|
-
/** Relative POSIX path used as the document's stable identity. */
|
|
134
|
-
path: string;
|
|
135
|
-
content: string;
|
|
136
|
-
/** Overrides renderer detection from the path's file extension. */
|
|
137
|
-
language?: EmbedDocumentLanguage;
|
|
138
|
-
}
|
|
139
|
-
interface ValidationIssue {
|
|
140
|
-
nodeIds: string[];
|
|
141
|
-
edgeIds: string[];
|
|
142
|
-
level: 'info' | 'warning' | 'error';
|
|
143
|
-
message: string;
|
|
144
|
-
}
|
|
145
|
-
type EditorCapabilities = EditorCapabilities$1;
|
|
146
|
-
type ReadOnlyReason = 'free-plan' | 'access-unverified';
|
|
147
|
-
type CapabilityDeniedCapability = 'edit' | 'export' | 'ai' | 'simulate' | 'inspect' | 'panel' | 'mode';
|
|
148
|
-
interface CapabilityDeniedEvent {
|
|
149
|
-
capability: CapabilityDeniedCapability;
|
|
150
|
-
action: 'openPanel' | 'openDialog' | 'editSource' | 'setMode' | 'simulationStart' | 'inspectStart' | 'retrieve';
|
|
151
|
-
requested?: string;
|
|
152
|
-
message: string;
|
|
153
|
-
dedupeKey: string;
|
|
154
|
-
}
|
|
155
|
-
type SourceRange = EditorSyncSourceRange;
|
|
156
|
-
type SourceLocation = EditorSyncSourceLocation;
|
|
157
|
-
type StateSourceLocation = EditorSyncStateSourceLocation;
|
|
158
|
-
type MachineSourceLocations = MachineSourceLocations$1;
|
|
159
|
-
interface ExportFormatMap {
|
|
160
|
-
xstate: {
|
|
161
|
-
options: {
|
|
162
|
-
version?: 4 | 5;
|
|
163
|
-
addTSTypes?: boolean;
|
|
164
|
-
showIds?: boolean;
|
|
165
|
-
showDescriptions?: boolean;
|
|
166
|
-
};
|
|
167
|
-
result: string;
|
|
168
|
-
};
|
|
169
|
-
async: {
|
|
170
|
-
options: object;
|
|
171
|
-
result: string;
|
|
172
|
-
};
|
|
173
|
-
'xstate-json': {
|
|
174
|
-
options: {
|
|
175
|
-
version?: 4 | 5;
|
|
176
|
-
};
|
|
177
|
-
result: Record<string, unknown>;
|
|
178
|
-
};
|
|
179
|
-
xgraph: {
|
|
180
|
-
options: object;
|
|
181
|
-
result: Record<string, unknown>;
|
|
182
|
-
};
|
|
183
|
-
digraph: {
|
|
184
|
-
options: object;
|
|
185
|
-
result: Record<string, unknown>;
|
|
186
|
-
};
|
|
187
|
-
d2: {
|
|
188
|
-
options: {
|
|
189
|
-
includeLayout?: boolean;
|
|
190
|
-
};
|
|
191
|
-
result: string;
|
|
192
|
-
};
|
|
193
|
-
mermaid: {
|
|
194
|
-
options: object;
|
|
195
|
-
result: string;
|
|
196
|
-
};
|
|
197
|
-
redux: {
|
|
198
|
-
options: object;
|
|
199
|
-
result: string;
|
|
200
|
-
};
|
|
201
|
-
zustand: {
|
|
202
|
-
options: object;
|
|
203
|
-
result: string;
|
|
204
|
-
};
|
|
205
|
-
'asl-json': {
|
|
206
|
-
options: object;
|
|
207
|
-
result: string;
|
|
208
|
-
};
|
|
209
|
-
'asl-yaml': {
|
|
210
|
-
options: object;
|
|
211
|
-
result: string;
|
|
212
|
-
};
|
|
213
|
-
scxml: {
|
|
214
|
-
options: object;
|
|
215
|
-
result: string;
|
|
216
|
-
};
|
|
217
|
-
}
|
|
218
|
-
type ExportFormat = keyof ExportFormatMap;
|
|
219
|
-
type ExportCallOptions<F extends ExportFormat> = ExportFormatMap[F]['options'] & {
|
|
220
|
-
timeout?: number;
|
|
221
|
-
};
|
|
222
|
-
interface EmbedEventMap {
|
|
223
|
-
ready: {
|
|
224
|
-
version: string;
|
|
225
|
-
};
|
|
226
|
-
loaded: {
|
|
227
|
-
graph: StatelyGraph;
|
|
228
|
-
machineId?: string;
|
|
229
|
-
sourceLocations?: MachineSourceLocations;
|
|
230
|
-
};
|
|
231
|
-
change: {
|
|
232
|
-
graph: StatelyGraph;
|
|
233
|
-
machineConfig: unknown;
|
|
234
|
-
machineId?: string;
|
|
235
|
-
patches?: unknown[];
|
|
236
|
-
sourceLocations?: MachineSourceLocations;
|
|
237
|
-
};
|
|
238
|
-
save: {
|
|
239
|
-
requestId?: string;
|
|
240
|
-
graph: StatelyGraph;
|
|
241
|
-
machineConfig: unknown;
|
|
242
|
-
machineId?: string;
|
|
243
|
-
patches?: unknown[];
|
|
244
|
-
validations?: ValidationIssue[];
|
|
245
|
-
sourceLocations?: MachineSourceLocations;
|
|
246
|
-
};
|
|
247
|
-
versionSaveRequested: {
|
|
248
|
-
graph: StatelyGraph;
|
|
249
|
-
machineConfig: unknown;
|
|
250
|
-
machineId?: string;
|
|
251
|
-
patches?: unknown[];
|
|
252
|
-
createdBy: NonNullable<MachineVersionAutoSaveOptions['createdBy']>;
|
|
253
|
-
captureType: string;
|
|
254
|
-
sourceLocations?: MachineSourceLocations;
|
|
255
|
-
};
|
|
256
|
-
error: {
|
|
257
|
-
code: ErrorCode;
|
|
258
|
-
message: string;
|
|
259
|
-
machineId?: string;
|
|
260
|
-
details?: string[];
|
|
261
|
-
};
|
|
262
|
-
capabilityDenied: CapabilityDeniedEvent;
|
|
263
|
-
snapshot: {
|
|
264
|
-
snapshot: unknown;
|
|
265
|
-
event: unknown | null;
|
|
266
|
-
};
|
|
267
|
-
machineSelected: {
|
|
268
|
-
machineId: string;
|
|
269
|
-
};
|
|
270
|
-
projectWorkspaceAction: {
|
|
271
|
-
actionId: string;
|
|
272
|
-
projectId?: string;
|
|
273
|
-
machineId?: string;
|
|
274
|
-
data?: unknown;
|
|
275
|
-
};
|
|
276
|
-
projectWorkspaceOpenChanged: {
|
|
277
|
-
open: boolean;
|
|
278
|
-
};
|
|
279
|
-
viewModeChanged: {
|
|
280
|
-
viewMode: 'graph' | 'list';
|
|
281
|
-
machineId?: string;
|
|
282
|
-
};
|
|
283
|
-
panelChanged: {
|
|
284
|
-
side: 'left' | 'right' | 'bottom';
|
|
285
|
-
id: string | null;
|
|
286
|
-
activePanels: string[];
|
|
287
|
-
machineId?: string;
|
|
288
|
-
};
|
|
289
|
-
modeChanged: {
|
|
290
|
-
mode: EmbedMode;
|
|
291
|
-
machineId?: string;
|
|
292
|
-
};
|
|
293
|
-
}
|
|
294
|
-
type EmbedEventName = keyof EmbedEventMap;
|
|
295
|
-
type EmbedEventHandler<K extends EmbedEventName> = (data: EmbedEventMap[K]) => void;
|
|
296
|
-
interface EmbedFormatManifest {
|
|
297
|
-
id: string;
|
|
298
|
-
name: string;
|
|
299
|
-
file?: {
|
|
300
|
-
extension?: string;
|
|
301
|
-
mediaType?: string;
|
|
302
|
-
};
|
|
303
|
-
editorLanguage?: string;
|
|
304
|
-
detect?: boolean;
|
|
305
|
-
import?: boolean;
|
|
306
|
-
export?: boolean;
|
|
307
|
-
}
|
|
308
|
-
interface EmbedExtensionsManifest {
|
|
309
|
-
profiles: ProfileManifest[];
|
|
310
|
-
formats: EmbedFormatManifest[];
|
|
311
|
-
defaultProfile?: string;
|
|
312
|
-
defaultFormat?: string;
|
|
313
|
-
}
|
|
314
|
-
/** Host-provided examples shown in the editor's Get started launchpad. */
|
|
315
|
-
interface EmbedExample {
|
|
316
|
-
id: string;
|
|
317
|
-
title: string;
|
|
318
|
-
description: string;
|
|
319
|
-
category: string;
|
|
320
|
-
machine: unknown;
|
|
321
|
-
}
|
|
322
|
-
/** Check whether an example machine has a shape supported by the editor. */
|
|
323
|
-
declare function isEmbedExampleMachine(value: unknown): value is Record<string, unknown>;
|
|
324
|
-
/** Check whether an unknown value is a valid serialized embed example. */
|
|
325
|
-
declare function isEmbedExample(value: unknown): value is EmbedExample;
|
|
326
|
-
/** Reject malformed host-provided examples before creating an init message. */
|
|
327
|
-
declare function assertEmbedExamples(examples: readonly EmbedExample[] | undefined): void;
|
|
328
|
-
interface MachineInitOptions {
|
|
329
|
-
machine: unknown;
|
|
330
|
-
/** Ephemeral, read-only reference documents owned by the embed host. */
|
|
331
|
-
documents?: EmbedDocument[];
|
|
332
|
-
format?: string;
|
|
333
|
-
extensions?: EmbedExtensionsManifest;
|
|
334
|
-
mode?: EmbedMode;
|
|
335
|
-
theme?: 'light' | 'dark';
|
|
336
|
-
readOnly?: boolean;
|
|
337
|
-
readOnlyReason?: ReadOnlyReason;
|
|
338
|
-
depth?: number;
|
|
339
|
-
capabilities?: EditorCapabilities;
|
|
340
|
-
examples?: readonly EmbedExample[];
|
|
341
|
-
panels?: EmbedPanelConfig[];
|
|
342
|
-
comments?: CommentsConfig;
|
|
343
|
-
sourceLocations?: MachineSourceLocations;
|
|
344
|
-
settings?: Record<string, unknown>;
|
|
345
|
-
/**
|
|
346
|
-
* Show a persistent "Save to apply" pill in the embed whenever Viz has
|
|
347
|
-
* local edits that have not yet been saved. Intended for contexts like
|
|
348
|
-
* editor extensions where Viz edits don't reach the source until the user
|
|
349
|
-
* saves.
|
|
350
|
-
*
|
|
351
|
-
* - `enabled` — whether to show the pill at all. Defaults to `false`.
|
|
352
|
-
* - `mode` — `'structural'` (default) only triggers on graph-structural
|
|
353
|
-
* changes (state/transition/action/invoke/schema edits). Pure visual
|
|
354
|
-
* changes like drag-to-position, color, and layout are ignored.
|
|
355
|
-
* `'all'` triggers on any graph change.
|
|
356
|
-
*/
|
|
357
|
-
unsavedIndicator?: {
|
|
358
|
-
enabled?: boolean;
|
|
359
|
-
mode?: 'structural' | 'all';
|
|
360
|
-
};
|
|
361
|
-
/** Omit to disable automatic version requests. */
|
|
362
|
-
versionAutoSave?: MachineVersionAutoSaveOptions;
|
|
363
|
-
}
|
|
364
|
-
interface ProjectInitOptions {
|
|
365
|
-
machines: ProjectEmbedMachine[];
|
|
366
|
-
/** Ephemeral, read-only reference documents shared across the project. */
|
|
367
|
-
documents?: EmbedDocument[];
|
|
368
|
-
currentMachineId?: string;
|
|
369
|
-
mode?: EmbedMode;
|
|
370
|
-
theme?: 'light' | 'dark';
|
|
371
|
-
readOnly?: boolean;
|
|
372
|
-
readOnlyReason?: ReadOnlyReason;
|
|
373
|
-
depth?: number;
|
|
374
|
-
capabilities?: EditorCapabilities;
|
|
375
|
-
examples?: readonly EmbedExample[];
|
|
376
|
-
panels?: EmbedPanelConfig[];
|
|
377
|
-
commentsByMachineId?: Record<string, CommentsConfig>;
|
|
378
|
-
projectWorkspace?: ProjectWorkspaceConfig;
|
|
379
|
-
projectWorkspaceOpen?: boolean;
|
|
380
|
-
settings?: Record<string, unknown>;
|
|
381
|
-
unsavedIndicator?: {
|
|
382
|
-
enabled?: boolean;
|
|
383
|
-
mode?: 'structural' | 'all';
|
|
384
|
-
};
|
|
385
|
-
/** Omit to disable automatic version requests. */
|
|
386
|
-
versionAutoSave?: MachineVersionAutoSaveOptions;
|
|
387
|
-
}
|
|
388
|
-
type InitOptions = MachineInitOptions | ProjectInitOptions;
|
|
389
|
-
interface InitMessage {
|
|
390
|
-
type: '@statelyai.init';
|
|
391
|
-
machine: unknown;
|
|
392
|
-
documents?: EmbedDocument[];
|
|
393
|
-
format?: string;
|
|
394
|
-
extensions?: EmbedExtensionsManifest;
|
|
395
|
-
mode?: EmbedMode;
|
|
396
|
-
theme?: 'light' | 'dark';
|
|
397
|
-
readOnly?: boolean;
|
|
398
|
-
readOnlyReason?: ReadOnlyReason;
|
|
399
|
-
depth?: number;
|
|
400
|
-
capabilities?: EditorCapabilities;
|
|
401
|
-
examples?: readonly EmbedExample[];
|
|
402
|
-
panels?: EmbedPanelConfig[];
|
|
403
|
-
/** @deprecated Use `panels`. */
|
|
404
|
-
leftPanels?: string[];
|
|
405
|
-
/** @deprecated Use `panels`. */
|
|
406
|
-
rightPanels?: string[];
|
|
407
|
-
/** @deprecated Use `panels[].initiallyOpen`. */
|
|
408
|
-
activePanels?: string[];
|
|
409
|
-
comments?: CommentsConfig;
|
|
410
|
-
sourceLocations?: MachineSourceLocations;
|
|
411
|
-
settings?: Record<string, unknown>;
|
|
412
|
-
/** Mirror of `InitOptions.unsavedIndicator`. */
|
|
413
|
-
unsavedIndicator?: {
|
|
414
|
-
enabled?: boolean;
|
|
415
|
-
mode?: 'structural' | 'all';
|
|
416
|
-
};
|
|
417
|
-
versionAutoSave?: MachineVersionAutoSaveOptions;
|
|
418
|
-
}
|
|
419
|
-
interface SetApiKeyMessage {
|
|
420
|
-
type: '@statelyai.setApiKey';
|
|
421
|
-
apiKey: string;
|
|
422
|
-
}
|
|
423
|
-
interface SavedMessage {
|
|
424
|
-
type: '@statelyai.saved';
|
|
425
|
-
requestId?: string;
|
|
426
|
-
graph: unknown;
|
|
427
|
-
}
|
|
428
|
-
interface ClipboardReadResponseMessage {
|
|
429
|
-
type: '@statelyai.clipboardReadResponse';
|
|
430
|
-
requestId: string;
|
|
431
|
-
text: string;
|
|
432
|
-
}
|
|
433
|
-
interface ClipboardWriteResponseMessage {
|
|
434
|
-
type: '@statelyai.clipboardWriteResponse';
|
|
435
|
-
requestId: string;
|
|
436
|
-
ok: boolean;
|
|
437
|
-
}
|
|
438
|
-
interface ClipboardReadMessage {
|
|
439
|
-
type: '@statelyai.clipboardRead';
|
|
440
|
-
requestId: string;
|
|
441
|
-
}
|
|
442
|
-
interface ClipboardWriteMessage {
|
|
443
|
-
type: '@statelyai.clipboardWrite';
|
|
444
|
-
requestId: string;
|
|
445
|
-
text: string;
|
|
446
|
-
}
|
|
447
|
-
interface ProjectInitMessage {
|
|
448
|
-
type: '@statelyai.project.init';
|
|
449
|
-
machines: ProjectEmbedMachine[];
|
|
450
|
-
documents?: EmbedDocument[];
|
|
451
|
-
currentMachineId?: string;
|
|
452
|
-
mode?: EmbedMode;
|
|
453
|
-
theme?: 'light' | 'dark';
|
|
454
|
-
readOnly?: boolean;
|
|
455
|
-
readOnlyReason?: ReadOnlyReason;
|
|
456
|
-
depth?: number;
|
|
457
|
-
capabilities?: EditorCapabilities;
|
|
458
|
-
examples?: readonly EmbedExample[];
|
|
459
|
-
panels?: EmbedPanelConfig[];
|
|
460
|
-
/** @deprecated Use `panels`. */
|
|
461
|
-
leftPanels?: string[];
|
|
462
|
-
/** @deprecated Use `panels`. */
|
|
463
|
-
rightPanels?: string[];
|
|
464
|
-
/** @deprecated Use `panels[].initiallyOpen`. */
|
|
465
|
-
activePanels?: string[];
|
|
466
|
-
commentsByMachineId?: Record<string, CommentsConfig>;
|
|
467
|
-
projectWorkspace?: ProjectWorkspaceConfig;
|
|
468
|
-
projectWorkspaceOpen?: boolean;
|
|
469
|
-
settings?: Record<string, unknown>;
|
|
470
|
-
unsavedIndicator?: {
|
|
471
|
-
enabled?: boolean;
|
|
472
|
-
mode?: 'structural' | 'all';
|
|
473
|
-
};
|
|
474
|
-
versionAutoSave?: MachineVersionAutoSaveOptions;
|
|
475
|
-
sessionId?: string;
|
|
476
|
-
}
|
|
477
|
-
interface ProjectUpdateMessage {
|
|
478
|
-
type: '@statelyai.project.update';
|
|
479
|
-
machines: ProjectEmbedMachine[];
|
|
480
|
-
currentMachineId?: string;
|
|
481
|
-
commentsByMachineId?: Record<string, CommentsConfig>;
|
|
482
|
-
projectWorkspace?: ProjectWorkspaceConfig;
|
|
483
|
-
projectWorkspaceOpen?: boolean;
|
|
484
|
-
}
|
|
485
|
-
interface ProjectSelectMachineMessage {
|
|
486
|
-
type: '@statelyai.project.selectMachine';
|
|
487
|
-
machineId: string;
|
|
488
|
-
}
|
|
489
|
-
interface ProjectSetWorkspaceOpenMessage {
|
|
490
|
-
type: '@statelyai.project.setWorkspaceOpen';
|
|
491
|
-
open: boolean;
|
|
492
|
-
}
|
|
493
|
-
interface UpdateMessage {
|
|
494
|
-
type: '@statelyai.update';
|
|
495
|
-
machine: unknown;
|
|
496
|
-
format?: string;
|
|
497
|
-
sourceLocations?: MachineSourceLocations;
|
|
498
|
-
}
|
|
499
|
-
interface SetModeMessage {
|
|
500
|
-
type: '@statelyai.setMode';
|
|
501
|
-
mode: EmbedMode;
|
|
502
|
-
}
|
|
503
|
-
interface SetThemeMessage {
|
|
504
|
-
type: '@statelyai.setTheme';
|
|
505
|
-
theme: 'light' | 'dark';
|
|
506
|
-
}
|
|
507
|
-
interface SetSettingsMessage {
|
|
508
|
-
type: '@statelyai.setSettings';
|
|
509
|
-
settings: Record<string, unknown>;
|
|
510
|
-
}
|
|
511
|
-
interface RetrieveMessage {
|
|
512
|
-
type: '@statelyai.retrieve';
|
|
513
|
-
requestId: string;
|
|
514
|
-
format: ExportFormat;
|
|
515
|
-
options?: Record<string, unknown>;
|
|
516
|
-
}
|
|
517
|
-
interface ToastMessage {
|
|
518
|
-
type: '@statelyai.toast';
|
|
519
|
-
message: string;
|
|
520
|
-
toastType?: 'success' | 'error' | 'info' | 'warning';
|
|
521
|
-
}
|
|
522
|
-
interface InspectSnapshotMessage {
|
|
523
|
-
type: '@statelyai.inspectSnapshot';
|
|
524
|
-
snapshot: unknown;
|
|
525
|
-
event: unknown | null;
|
|
526
|
-
/** Producer-local actor session id, when this snapshot belongs to an actor. */
|
|
527
|
-
sessionId?: string;
|
|
528
|
-
}
|
|
529
|
-
interface ActorSystemEntry {
|
|
530
|
-
/** XState process-local `actor.sessionId`; pair with relay `producerId`. */
|
|
531
|
-
sessionId: string;
|
|
532
|
-
/** System-local xstate `actor.id`. */
|
|
533
|
-
actorId: string;
|
|
534
|
-
/** Parent actor's sessionId, or `null` for the root. */
|
|
535
|
-
parentSessionId: string | null;
|
|
536
|
-
/** Machine configuration used to render the state chart. */
|
|
537
|
-
machine: unknown;
|
|
538
|
-
/** Optional current snapshot (`{value, status, ...}`). */
|
|
539
|
-
snapshot?: unknown;
|
|
540
|
-
/** Whether this actor stopped before this checkpoint was sent. */
|
|
541
|
-
stopped?: boolean;
|
|
542
|
-
}
|
|
543
|
-
/** JSON-safe record of an action executed during an inspected transition. */
|
|
544
|
-
interface InspectionAction {
|
|
545
|
-
type: string;
|
|
546
|
-
params?: unknown;
|
|
547
|
-
}
|
|
548
|
-
/** JSON-safe identity of a state transition taken during a macrostep. */
|
|
549
|
-
interface InspectionTakenTransition {
|
|
550
|
-
sourceStateId: string | null;
|
|
551
|
-
targetStateIds: string[];
|
|
552
|
-
eventType?: string;
|
|
553
|
-
reenter?: boolean;
|
|
554
|
-
}
|
|
555
|
-
/** JSON-safe record of an event sent or scheduled during a transition. */
|
|
556
|
-
interface InspectionSentEvent {
|
|
557
|
-
targetSessionId?: string;
|
|
558
|
-
targetId: string;
|
|
559
|
-
event: unknown;
|
|
560
|
-
delay?: number;
|
|
561
|
-
id?: string;
|
|
562
|
-
}
|
|
563
|
-
interface SystemInitMessage {
|
|
564
|
-
type: '@statelyai.system.init';
|
|
565
|
-
protocolVersion: number;
|
|
566
|
-
/** All known actors at the moment the system is first streamed. */
|
|
567
|
-
actors: ActorSystemEntry[];
|
|
568
|
-
/** Actor session id the viz should focus first. Defaults to the root. */
|
|
569
|
-
selectedSessionId?: string;
|
|
570
|
-
documents?: EmbedDocument[];
|
|
571
|
-
mode?: EmbedMode;
|
|
572
|
-
theme?: 'light' | 'dark';
|
|
573
|
-
readOnly?: boolean;
|
|
574
|
-
depth?: number;
|
|
575
|
-
capabilities?: EditorCapabilities;
|
|
576
|
-
panels?: EmbedPanelConfig[];
|
|
577
|
-
/** @deprecated Use `panels`. */
|
|
578
|
-
leftPanels?: string[];
|
|
579
|
-
/** @deprecated Use `panels`. */
|
|
580
|
-
rightPanels?: string[];
|
|
581
|
-
/** @deprecated Use `panels[].initiallyOpen`. */
|
|
582
|
-
activePanels?: string[];
|
|
583
|
-
comments?: CommentsConfig;
|
|
584
|
-
}
|
|
585
|
-
/** Change the focused actor without re-initializing the system. */
|
|
586
|
-
interface SystemSelectActorMessage {
|
|
587
|
-
type: '@statelyai.system.selectActor';
|
|
588
|
-
sessionId: string;
|
|
589
|
-
}
|
|
590
|
-
/** A new actor joined the system after init. */
|
|
591
|
-
interface SystemActorRegisteredMessage {
|
|
592
|
-
type: '@statelyai.system.actorRegistered';
|
|
593
|
-
sessionId: string;
|
|
594
|
-
actorId: string;
|
|
595
|
-
parentSessionId: string | null;
|
|
596
|
-
machine: unknown;
|
|
597
|
-
snapshot?: unknown;
|
|
598
|
-
}
|
|
599
|
-
/** An event was observed targeting an actor, before processing completed. */
|
|
600
|
-
interface SystemActorEventMessage {
|
|
601
|
-
type: '@statelyai.system.actorEvent';
|
|
602
|
-
sessionId: string;
|
|
603
|
-
event: unknown;
|
|
604
|
-
/** Global session id of the actor that sent the event, if known. */
|
|
605
|
-
sourceSessionId?: string | null;
|
|
606
|
-
}
|
|
607
|
-
/** An actor's snapshot updated. */
|
|
608
|
-
interface SystemActorSnapshotMessage {
|
|
609
|
-
type: '@statelyai.system.actorSnapshot';
|
|
610
|
-
sessionId: string;
|
|
611
|
-
/** Snapshot before the event was processed. */
|
|
612
|
-
previousSnapshot?: unknown | null;
|
|
613
|
-
snapshot: unknown;
|
|
614
|
-
event?: unknown | null;
|
|
615
|
-
/** Global session id of the actor that sent the triggering event, if known. */
|
|
616
|
-
sourceSessionId?: string | null;
|
|
617
|
-
/** Actions executed while processing the event. */
|
|
618
|
-
actions?: InspectionAction[];
|
|
619
|
-
/** State transitions taken across every microstep. */
|
|
620
|
-
transitions?: InspectionTakenTransition[];
|
|
621
|
-
/** Events sent or scheduled while processing the event. */
|
|
622
|
-
sent?: InspectionSentEvent[];
|
|
623
|
-
}
|
|
624
|
-
/** An actor reached a final state / was stopped. */
|
|
625
|
-
interface SystemActorStoppedMessage {
|
|
626
|
-
type: '@statelyai.system.actorStopped';
|
|
627
|
-
sessionId: string;
|
|
628
|
-
}
|
|
629
|
-
interface ReadyMessage {
|
|
630
|
-
type: '@statelyai.ready';
|
|
631
|
-
version: string;
|
|
632
|
-
protocolVersion?: number;
|
|
633
|
-
}
|
|
634
|
-
interface EditorHandshakeMessage {
|
|
635
|
-
type: '@statelyai.handshake';
|
|
636
|
-
protocolVersion: number;
|
|
637
|
-
client?: {
|
|
638
|
-
name: string;
|
|
639
|
-
version: string;
|
|
640
|
-
};
|
|
641
|
-
}
|
|
642
|
-
interface LoadedMessage {
|
|
643
|
-
type: '@statelyai.loaded';
|
|
644
|
-
graph: StatelyGraph;
|
|
645
|
-
machineId?: string;
|
|
646
|
-
sourceLocations?: MachineSourceLocations;
|
|
647
|
-
}
|
|
648
|
-
interface ChangeMessage {
|
|
649
|
-
type: '@statelyai.change';
|
|
650
|
-
graph: StatelyGraph;
|
|
651
|
-
machineConfig: unknown;
|
|
652
|
-
machineId?: string;
|
|
653
|
-
patches?: unknown[];
|
|
654
|
-
sourceLocations?: MachineSourceLocations;
|
|
655
|
-
}
|
|
656
|
-
interface SaveMessage {
|
|
657
|
-
type: '@statelyai.save';
|
|
658
|
-
requestId?: string;
|
|
659
|
-
graph: StatelyGraph;
|
|
660
|
-
machineConfig: unknown;
|
|
661
|
-
machineId?: string;
|
|
662
|
-
patches?: unknown[];
|
|
663
|
-
validations?: ValidationIssue[];
|
|
664
|
-
sourceLocations?: MachineSourceLocations;
|
|
665
|
-
}
|
|
666
|
-
interface VersionSaveRequestedMessage {
|
|
667
|
-
type: '@statelyai.versionSaveRequested';
|
|
668
|
-
graph: StatelyGraph;
|
|
669
|
-
machineConfig: unknown;
|
|
670
|
-
machineId?: string;
|
|
671
|
-
patches?: unknown[];
|
|
672
|
-
createdBy: NonNullable<MachineVersionAutoSaveOptions['createdBy']>;
|
|
673
|
-
captureType: string;
|
|
674
|
-
sourceLocations?: MachineSourceLocations;
|
|
675
|
-
}
|
|
676
|
-
interface ProjectMachineSelectedMessage {
|
|
677
|
-
type: '@statelyai.project.machineSelected';
|
|
678
|
-
machineId: string;
|
|
679
|
-
}
|
|
680
|
-
interface ProjectWorkspaceActionMessage {
|
|
681
|
-
type: '@statelyai.project.workspaceAction';
|
|
682
|
-
actionId: string;
|
|
683
|
-
projectId?: string;
|
|
684
|
-
machineId?: string;
|
|
685
|
-
data?: unknown;
|
|
686
|
-
}
|
|
687
|
-
interface ProjectWorkspaceOpenChangedMessage {
|
|
688
|
-
type: '@statelyai.project.workspaceOpenChanged';
|
|
689
|
-
open: boolean;
|
|
690
|
-
}
|
|
691
|
-
interface ViewModeChangedMessage {
|
|
692
|
-
type: '@statelyai.viewModeChanged';
|
|
693
|
-
viewMode: 'graph' | 'list';
|
|
694
|
-
machineId?: string;
|
|
695
|
-
}
|
|
696
|
-
interface PanelChangedMessage {
|
|
697
|
-
type: '@statelyai.panelChanged';
|
|
698
|
-
side: 'left' | 'right' | 'bottom';
|
|
699
|
-
id: string | null;
|
|
700
|
-
activePanels: string[];
|
|
701
|
-
machineId?: string;
|
|
702
|
-
}
|
|
703
|
-
interface ModeChangedMessage {
|
|
704
|
-
type: '@statelyai.modeChanged';
|
|
705
|
-
mode: EmbedMode;
|
|
706
|
-
machineId?: string;
|
|
707
|
-
}
|
|
708
|
-
interface RetrievedMessage {
|
|
709
|
-
type: '@statelyai.retrieved';
|
|
710
|
-
requestId: string;
|
|
711
|
-
data: unknown;
|
|
712
|
-
}
|
|
713
|
-
/**
|
|
714
|
-
* Error codes the editor emits. Open-ended (`string`) so an older SDK keeps
|
|
715
|
-
* forwarding codes a newer editor adds.
|
|
716
|
-
*
|
|
717
|
-
* - `unsupported_protocol` — editor/SDK protocol versions disagree.
|
|
718
|
-
* - `conversion_failed` — a machine source could not be converted to a graph.
|
|
719
|
-
* - `invalid_graph` — a host-supplied graph is structurally invalid; see `details`.
|
|
720
|
-
* - `render_failed` — the editor threw while rendering a machine.
|
|
721
|
-
*/
|
|
722
|
-
type ErrorCode = 'unsupported_protocol' | 'conversion_failed' | 'invalid_graph' | 'render_failed' | (string & {});
|
|
723
|
-
interface ErrorMessage {
|
|
724
|
-
type: '@statelyai.error';
|
|
725
|
-
code: ErrorCode;
|
|
726
|
-
message: string;
|
|
727
|
-
/** Machine the error belongs to, when the editor knows which one failed. */
|
|
728
|
-
machineId?: string;
|
|
729
|
-
/** Per-problem explanations, e.g. one line per structural graph error. */
|
|
730
|
-
details?: string[];
|
|
731
|
-
requestId?: string;
|
|
732
|
-
}
|
|
733
|
-
interface CapabilityDeniedMessage extends CapabilityDeniedEvent {
|
|
734
|
-
type: '@statelyai.capabilityDenied';
|
|
735
|
-
}
|
|
736
|
-
/** File metadata sent from viz to SDK when a file needs uploading. */
|
|
737
|
-
interface UploadFileInfo {
|
|
738
|
-
/** Original filename (e.g. "screenshot.png") */
|
|
739
|
-
name: string;
|
|
740
|
-
/** MIME type (e.g. "image/png") */
|
|
741
|
-
mimeType: string;
|
|
742
|
-
/** File size in bytes */
|
|
743
|
-
size: number;
|
|
744
|
-
/** File content as base64-encoded string */
|
|
745
|
-
data: string;
|
|
746
|
-
}
|
|
747
|
-
/** The result the consumer returns after uploading. */
|
|
748
|
-
interface UploadResult {
|
|
749
|
-
/** The publicly accessible URL of the uploaded file */
|
|
750
|
-
url: string;
|
|
751
|
-
/** Optional display name (defaults to original filename) */
|
|
752
|
-
name?: string;
|
|
753
|
-
/** Optional metadata stored on the asset */
|
|
754
|
-
metadata?: Record<string, unknown>;
|
|
755
|
-
}
|
|
756
|
-
/** Viz requests the parent to upload a file. */
|
|
757
|
-
interface UploadRequestMessage {
|
|
758
|
-
type: '@statelyai.uploadRequest';
|
|
759
|
-
requestId: string;
|
|
760
|
-
file: UploadFileInfo;
|
|
761
|
-
stateNodeId: string;
|
|
762
|
-
}
|
|
763
|
-
/** Parent tells the viz the upload capabilities on init. */
|
|
764
|
-
interface UploadCapabilitiesMessage {
|
|
765
|
-
type: '@statelyai.uploadCapabilities';
|
|
766
|
-
enabled: boolean;
|
|
767
|
-
accept?: string[];
|
|
768
|
-
maxFileSize?: number;
|
|
769
|
-
}
|
|
770
|
-
/** Parent sends the upload result back to the viz. */
|
|
771
|
-
interface UploadResponseMessage {
|
|
772
|
-
type: '@statelyai.uploadResponse';
|
|
773
|
-
requestId: string;
|
|
774
|
-
result: UploadResult;
|
|
775
|
-
}
|
|
776
|
-
interface ExtensionCallMessage {
|
|
777
|
-
type: '@statelyai.extension.call';
|
|
778
|
-
requestId: string;
|
|
779
|
-
extensionId: string;
|
|
780
|
-
method: 'detect' | 'import' | 'export' | 'validate';
|
|
781
|
-
payload: unknown;
|
|
782
|
-
}
|
|
783
|
-
interface ExtensionResultMessage {
|
|
784
|
-
type: '@statelyai.extension.result';
|
|
785
|
-
requestId: string;
|
|
786
|
-
result?: unknown;
|
|
787
|
-
error?: string;
|
|
788
|
-
}
|
|
789
|
-
/** All messages a client (embed/inspector) can send to the viz. */
|
|
790
|
-
type ClientMessage = InitMessage | SetApiKeyMessage | EditorHandshakeMessage | SavedMessage | ClipboardReadResponseMessage | ClipboardWriteResponseMessage | ProjectInitMessage | ProjectUpdateMessage | ProjectSelectMachineMessage | ProjectSetWorkspaceOpenMessage | UpdateMessage | SetModeMessage | SetThemeMessage | SetSettingsMessage | RetrieveMessage | ToastMessage | InspectSnapshotMessage | SystemInitMessage | SystemSelectActorMessage | SystemActorRegisteredMessage | SystemActorEventMessage | SystemActorSnapshotMessage | SystemActorStoppedMessage | UploadCapabilitiesMessage | UploadResponseMessage | ExtensionResultMessage | ErrorMessage;
|
|
791
|
-
/** All messages the viz can send back to a client. */
|
|
792
|
-
type VizMessage = ReadyMessage | LoadedMessage | ChangeMessage | SaveMessage | VersionSaveRequestedMessage | ProjectMachineSelectedMessage | ProjectWorkspaceActionMessage | ProjectWorkspaceOpenChangedMessage | ViewModeChangedMessage | PanelChangedMessage | ModeChangedMessage | RetrievedMessage | ErrorMessage | CapabilityDeniedMessage | ClipboardReadMessage | ClipboardWriteMessage | UploadRequestMessage | ExtensionCallMessage;
|
|
793
|
-
interface InspectionClientMetadata {
|
|
794
|
-
name?: string;
|
|
795
|
-
machineId?: string;
|
|
796
|
-
sdkVersion?: string;
|
|
797
|
-
runtime?: 'browser' | 'node' | 'unknown';
|
|
798
|
-
}
|
|
799
|
-
interface RegisterMessage {
|
|
800
|
-
type: '@statelyai.register';
|
|
801
|
-
protocolVersion: number;
|
|
802
|
-
role: 'producer' | 'viewer';
|
|
803
|
-
producerId?: string;
|
|
804
|
-
metadata?: InspectionClientMetadata;
|
|
805
|
-
}
|
|
806
|
-
interface RegisteredMessage {
|
|
807
|
-
type: '@statelyai.registered';
|
|
808
|
-
protocolVersion: number;
|
|
809
|
-
producerId?: string;
|
|
810
|
-
}
|
|
811
|
-
/** All registration messages for the WebSocket relay. */
|
|
812
|
-
type SessionMessage = RegisterMessage | RegisteredMessage;
|
|
813
|
-
/** Any valid protocol message. Relays add/consume `producerId` as an envelope. */
|
|
814
|
-
type ProtocolMessage = (ClientMessage | VizMessage | SessionMessage) & {
|
|
815
|
-
producerId?: string;
|
|
816
|
-
};
|
|
817
|
-
declare const PREFIX = "@statelyai.";
|
|
818
|
-
/** Current WebSocket inspection protocol version. */
|
|
819
|
-
declare const INSPECTION_PROTOCOL_VERSION = 2;
|
|
820
|
-
//#endregion
|
|
821
|
-
export { ActorSystemEntry, CapabilityDeniedCapability, CapabilityDeniedEvent, CapabilityDeniedMessage, ChangeMessage, ClientMessage, ClipboardReadMessage, ClipboardReadResponseMessage, ClipboardWriteMessage, ClipboardWriteResponseMessage, CommentsConfig, EMBED_DOCUMENT_LANGUAGES, EMBED_DOCUMENT_LIMITS, EditorCapabilities, EditorHandshakeMessage, EmbedDocument, EmbedDocumentLanguage, EmbedEventHandler, EmbedEventMap, EmbedEventName, EmbedExample, EmbedExtensionsManifest, EmbedFormatManifest, EmbedMode, type EmbedPanelConfig, type EmbedPanelPosition, ErrorCode, ErrorMessage, ExportCallOptions, ExportFormat, ExportFormatMap, ExtensionCallMessage, ExtensionResultMessage, INSPECTION_PROTOCOL_VERSION, INSPECTION_ROOM_QUERY_PARAM, InitMessage, InitOptions, InspectSnapshotMessage, InspectionAction, InspectionClientMetadata, InspectionRoomUrls, InspectionSentEvent, InspectionTakenTransition, LoadedMessage, MachineInitOptions, MachineSourceLocations, MachineVersionAutoSaveOptions, ModeChangedMessage, PREFIX, PanelChangedMessage, ProjectEmbedMachine, ProjectInitMessage, ProjectInitOptions, ProjectMachineSelectedMessage, ProjectSelectMachineMessage, ProjectSetWorkspaceOpenMessage, ProjectUpdateMessage, ProjectWorkspaceAction, ProjectWorkspaceActionIcon, ProjectWorkspaceActionMessage, ProjectWorkspaceCapabilities, ProjectWorkspaceConfig, ProjectWorkspaceMachine, ProjectWorkspaceMachineOrigin, ProjectWorkspaceOpenChangedMessage, ProjectWorkspaceProject, ProtocolMessage, ReadOnlyReason, ReadyMessage, RegisterMessage, RegisteredMessage, RetrieveMessage, RetrievedMessage, SaveMessage, SavedMessage, SessionMessage, SetApiKeyMessage, SetModeMessage, SetSettingsMessage, SetThemeMessage, SourceLocation, SourceRange, StateSourceLocation, SystemActorEventMessage, SystemActorRegisteredMessage, SystemActorSnapshotMessage, SystemActorStoppedMessage, SystemInitMessage, SystemSelectActorMessage, ToastMessage, UpdateMessage, UploadCapabilitiesMessage, UploadFileInfo, UploadRequestMessage, UploadResponseMessage, UploadResult, ValidationIssue, VersionSaveRequestedMessage, ViewModeChangedMessage, VizMessage, assertEmbedExamples, createInspectionActorId, createInspectionRoomUrls, getInspectionRoomId, isEmbedExample, isEmbedExampleMachine };
|
|
1
|
+
import { $ as ProjectSelectMachineMessage, A as ExtensionCallMessage, At as SystemActorSnapshotMessage, B as InspectionSentEvent, Bt as UploadResult, C as EmbedFormatManifest, Ct as SetSettingsMessage, D as ExportCallOptions, Dt as StateSourceLocation, E as ErrorMessage, Et as SourceRange, F as InitOptions, Ft as UpdateMessage, G as MachineVersionAutoSaveOptions, Gt as assertEmbedExamples, H as LoadedMessage, Ht as VersionSaveRequestedMessage, I as InspectSnapshotMessage, It as UploadCapabilitiesMessage, J as PanelChangedMessage, Jt as getInspectionRoomId, K as ModeChangedMessage, Kt as createInspectionActorId, L as InspectionAction, Lt as UploadFileInfo, M as INSPECTION_PROTOCOL_VERSION, Mt as SystemInitMessage, N as INSPECTION_ROOM_QUERY_PARAM, Nt as SystemSelectActorMessage, O as ExportFormat, Ot as SystemActorEventMessage, P as InitMessage, Pt as ToastMessage, Q as ProjectMachineSelectedMessage, Qt as EmbedPanelPosition, R as InspectionClientMetadata, Rt as UploadRequestMessage, S as EmbedExtensionsManifest, St as SetModeMessage, T as ErrorCode, Tt as SourceLocation, U as MachineInitOptions, Ut as ViewModeChangedMessage, V as InspectionTakenTransition, Vt as ValidationIssue, W as MachineSourceLocations, Wt as VizMessage, X as ProjectInitMessage, Xt as isEmbedExampleMachine, Y as ProjectEmbedMachine, Yt as isEmbedExample, Z as ProjectInitOptions, Zt as EmbedPanelConfig, _ as EmbedDocumentLanguage, _t as RetrievedMessage, a as ChangeMessage, at as ProjectWorkspaceCapabilities, b as EmbedEventName, bt as SessionMessage, c as ClipboardReadResponseMessage, ct as ProjectWorkspaceMachineOrigin, d as CommentsConfig, dt as ProtocolMessage, et as ProjectSetWorkspaceOpenMessage, f as EMBED_DOCUMENT_LANGUAGES, ft as ReadOnlyReason, g as EmbedDocument, gt as RetrieveMessage, h as EditorHandshakeMessage, ht as RegisteredMessage, i as CapabilityDeniedMessage, it as ProjectWorkspaceActionMessage, j as ExtensionResultMessage, jt as SystemActorStoppedMessage, k as ExportFormatMap, kt as SystemActorRegisteredMessage, l as ClipboardWriteMessage, lt as ProjectWorkspaceOpenChangedMessage, m as EditorCapabilities, mt as RegisterMessage, n as CapabilityDeniedCapability, nt as ProjectWorkspaceAction, o as ClientMessage, ot as ProjectWorkspaceConfig, p as EMBED_DOCUMENT_LIMITS, pt as ReadyMessage, q as PREFIX, qt as createInspectionRoomUrls, r as CapabilityDeniedEvent, rt as ProjectWorkspaceActionIcon, s as ClipboardReadMessage, st as ProjectWorkspaceMachine, t as ActorSystemEntry, tt as ProjectUpdateMessage, u as ClipboardWriteResponseMessage, ut as ProjectWorkspaceProject, v as EmbedEventHandler, vt as SaveMessage, w as EmbedMode, wt as SetThemeMessage, x as EmbedExample, xt as SetApiKeyMessage, y as EmbedEventMap, yt as SavedMessage, z as InspectionRoomUrls, zt as UploadResponseMessage } from "./protocol-DOt1Vz-5.mjs";
|
|
2
|
+
export { ActorSystemEntry, CapabilityDeniedCapability, CapabilityDeniedEvent, CapabilityDeniedMessage, ChangeMessage, ClientMessage, ClipboardReadMessage, ClipboardReadResponseMessage, ClipboardWriteMessage, ClipboardWriteResponseMessage, CommentsConfig, EMBED_DOCUMENT_LANGUAGES, EMBED_DOCUMENT_LIMITS, EditorCapabilities, EditorHandshakeMessage, EmbedDocument, EmbedDocumentLanguage, EmbedEventHandler, EmbedEventMap, EmbedEventName, EmbedExample, EmbedExtensionsManifest, EmbedFormatManifest, EmbedMode, EmbedPanelConfig, EmbedPanelPosition, ErrorCode, ErrorMessage, ExportCallOptions, ExportFormat, ExportFormatMap, ExtensionCallMessage, ExtensionResultMessage, INSPECTION_PROTOCOL_VERSION, INSPECTION_ROOM_QUERY_PARAM, InitMessage, InitOptions, InspectSnapshotMessage, InspectionAction, InspectionClientMetadata, InspectionRoomUrls, InspectionSentEvent, InspectionTakenTransition, LoadedMessage, MachineInitOptions, MachineSourceLocations, MachineVersionAutoSaveOptions, ModeChangedMessage, PREFIX, PanelChangedMessage, ProjectEmbedMachine, ProjectInitMessage, ProjectInitOptions, ProjectMachineSelectedMessage, ProjectSelectMachineMessage, ProjectSetWorkspaceOpenMessage, ProjectUpdateMessage, ProjectWorkspaceAction, ProjectWorkspaceActionIcon, ProjectWorkspaceActionMessage, ProjectWorkspaceCapabilities, ProjectWorkspaceConfig, ProjectWorkspaceMachine, ProjectWorkspaceMachineOrigin, ProjectWorkspaceOpenChangedMessage, ProjectWorkspaceProject, ProtocolMessage, ReadOnlyReason, ReadyMessage, RegisterMessage, RegisteredMessage, RetrieveMessage, RetrievedMessage, SaveMessage, SavedMessage, SessionMessage, SetApiKeyMessage, SetModeMessage, SetSettingsMessage, SetThemeMessage, SourceLocation, SourceRange, StateSourceLocation, SystemActorEventMessage, SystemActorRegisteredMessage, SystemActorSnapshotMessage, SystemActorStoppedMessage, SystemInitMessage, SystemSelectActorMessage, ToastMessage, UpdateMessage, UploadCapabilitiesMessage, UploadFileInfo, UploadRequestMessage, UploadResponseMessage, UploadResult, ValidationIssue, VersionSaveRequestedMessage, ViewModeChangedMessage, VizMessage, assertEmbedExamples, createInspectionActorId, createInspectionRoomUrls, getInspectionRoomId, isEmbedExample, isEmbedExampleMachine };
|