@statelyai/sdk 0.34.2 → 0.36.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.
Files changed (39) hide show
  1. package/README.md +20 -34
  2. package/dist/assetStorage.d.mts +1 -1
  3. package/dist/auth.d.mts +14 -1
  4. package/dist/bin.mjs +1 -3
  5. package/dist/editor-sync-types-U5uryWOk.d.mts +55 -0
  6. package/dist/editorHostProtocol.d.mts +203 -0
  7. package/dist/{editorHostProtocol-B2_t3Le7.mjs → editorHostProtocol.mjs} +1 -1
  8. package/dist/embed.d.mts +3 -3
  9. package/dist/embed.mjs +2 -2
  10. package/dist/{graph-DVfx7FwN.d.mts → graph-B6xUxqR5.d.mts} +1 -1
  11. package/dist/graph.d.mts +1 -1
  12. package/dist/{index-A5CMACoO.d.mts → index-CoxF4Saw.d.mts} +8 -255
  13. package/dist/index.d.mts +8 -31
  14. package/dist/index.mjs +5 -9
  15. package/dist/{inspect-ZVDq9tK2.mjs → inspect-BoMln78S.mjs} +1 -1
  16. package/dist/{inspect-DBH9oOAd.d.mts → inspect-Douvt5k_.d.mts} +1 -1
  17. package/dist/inspect.d.mts +2 -2
  18. package/dist/inspect.mjs +2 -2
  19. package/dist/patchTypes.d.mts +1 -1
  20. package/dist/{protocol-CCf9j_SZ.d.mts → protocol-CP3DSl5u.d.mts} +27 -5
  21. package/dist/protocol.d.mts +1 -1
  22. package/dist/relay.d.mts +1 -1
  23. package/dist/{openapi-BTDjYWXd.mjs → studio-DhzM6zFx.mjs} +639 -1
  24. package/dist/{studio-CFN3-0-2.d.mts → studio-DvEgrtk1.d.mts} +4 -2
  25. package/dist/studio.d.mts +1 -1
  26. package/dist/studio.mjs +2 -2
  27. package/dist/{version-CUFh-PYe.mjs → version-DS2izNeF.mjs} +1 -1
  28. package/package.json +20 -16
  29. package/dist/auth-CVFc85uF.d.mts +0 -15
  30. package/dist/dist-DsOTTfYv.mjs +0 -8361
  31. package/dist/editor-sync-types-D7YYz6fb.d.mts +0 -98
  32. package/dist/editorHostSession-DCTHhBqC.mjs +0 -912
  33. package/dist/editorHostSession-yGUKdLjq.d.mts +0 -325
  34. package/dist/editorHostSession.d.mts +0 -2
  35. package/dist/editorHostSession.mjs +0 -6
  36. package/dist/statelyPragma-YtVaBuIe.mjs +0 -102
  37. package/dist/studio-BZP6DaIO.mjs +0 -638
  38. package/dist/sync.d.mts +0 -86
  39. package/dist/sync.mjs +0 -4646
package/dist/sync.d.mts DELETED
@@ -1,86 +0,0 @@
1
- import { b as DigraphConfig, i as StatelyGraph } from "./graph-DVfx7FwN.mjs";
2
- import { C as StudioMachineRecord, L as XStateVersion, g as ProjectData, o as CreateProjectInput, x as StudioClient } from "./studio-CFN3-0-2.mjs";
3
- import { GraphDiff } from "@statelyai/graph";
4
-
5
- //#region src/sync.d.ts
6
- interface PlanSyncOptions {
7
- source: string;
8
- target: string;
9
- apiKey?: string;
10
- baseUrl?: string;
11
- fetch?: typeof fetch;
12
- client?: StudioClient;
13
- cwd?: string;
14
- }
15
- interface PullSyncOptions extends PlanSyncOptions {
16
- force?: boolean;
17
- machineIndex?: number;
18
- }
19
- declare class PullSourceReconciliationError extends Error {
20
- readonly code = "source_reconciliation_failed";
21
- constructor(message: string);
22
- }
23
- type ResolvedSyncInputKind = 'local-file' | 'studio-machine-id' | 'studio-url';
24
- type SyncInputFormat = 'digraph' | 'graph' | 'xstate';
25
- interface ResolvedSyncInput {
26
- kind: ResolvedSyncInputKind;
27
- locator: string;
28
- format: SyncInputFormat;
29
- graph: StatelyGraph;
30
- remoteMachineId?: string;
31
- }
32
- interface SyncPlanSummary {
33
- hasChanges: boolean;
34
- nodeChanges: number;
35
- edgeChanges: number;
36
- }
37
- interface SyncPlan {
38
- source: ResolvedSyncInput;
39
- target: ResolvedSyncInput;
40
- diff: GraphDiff;
41
- summary: SyncPlanSummary;
42
- warnings: string[];
43
- }
44
- interface PullSyncResult {
45
- source: ResolvedSyncInput;
46
- target: ResolvedSyncInput;
47
- outputPath: string;
48
- }
49
- interface PushSyncProjectOptions extends CreateProjectInput {
50
- projectId?: string;
51
- projectVersionId?: string;
52
- }
53
- interface PushSyncOptions extends Omit<PlanSyncOptions, 'target'> {
54
- project?: PushSyncProjectOptions;
55
- xstateVersion?: XStateVersion;
56
- relink?: boolean;
57
- }
58
- interface PushSyncResult {
59
- source: ResolvedSyncInput;
60
- project: ProjectData;
61
- machine: StudioMachineRecord<DigraphConfig>;
62
- outputPath?: string;
63
- }
64
- interface PushLocalMachineLinksResult {
65
- sourcePath: string;
66
- project: ProjectData;
67
- created: Array<{
68
- machineIndex: number;
69
- machine: StudioMachineRecord<DigraphConfig>;
70
- }>;
71
- updated: Array<{
72
- machineIndex: number;
73
- machine: StudioMachineRecord<DigraphConfig>;
74
- }>;
75
- skipped: Array<{
76
- machineIndex: number;
77
- reason: string;
78
- }>;
79
- outputPath?: string;
80
- }
81
- declare function pushLocalMachineLinks(options: PushSyncOptions): Promise<PushLocalMachineLinksResult>;
82
- declare function planSync(options: PlanSyncOptions): Promise<SyncPlan>;
83
- declare function pullSync(options: PullSyncOptions): Promise<PullSyncResult>;
84
- declare function pushSync(options: PushSyncOptions): Promise<PushSyncResult>;
85
- //#endregion
86
- export { PlanSyncOptions, PullSourceReconciliationError, PullSyncOptions, PullSyncResult, PushLocalMachineLinksResult, PushSyncOptions, PushSyncProjectOptions, PushSyncResult, ResolvedSyncInput, SyncInputFormat, SyncPlan, SyncPlanSummary, planSync, pullSync, pushLocalMachineLinks, pushSync };