@statelyai/sdk 0.34.1 → 0.35.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 (40) hide show
  1. package/README.md +32 -26
  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-DNFk7Xtj.d.mts +53 -0
  6. package/dist/editorHostProtocol.d.mts +197 -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-Ciocekxl.d.mts → graph-B6xUxqR5.d.mts} +1 -1
  11. package/dist/graph.d.mts +1 -1
  12. package/dist/{index-DZivqh0u.d.mts → index-CoxF4Saw.d.mts} +36 -252
  13. package/dist/index.d.mts +8 -31
  14. package/dist/index.mjs +5 -9
  15. package/dist/{inspect-BbvfH0Q1.d.mts → inspect-DCdu0ST3.d.mts} +1 -1
  16. package/dist/{inspect-DW30GMge.mjs → inspect-GSXRhzOx.mjs} +48 -32
  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-B7q2lWj_.d.mts → protocol-nOWsz3UV.d.mts} +3 -3
  21. package/dist/protocol.d.mts +1 -1
  22. package/dist/relay.d.mts +1 -1
  23. package/dist/relay.mjs +40 -1
  24. package/dist/{studio-CKdEPGKY.d.mts → studio-3ujfe2z0.d.mts} +2 -2
  25. package/dist/{openapi-BTDjYWXd.mjs → studio-Bn3alVku.mjs} +637 -1
  26. package/dist/studio.d.mts +1 -1
  27. package/dist/studio.mjs +2 -2
  28. package/dist/{version-BEfUEyPL.mjs → version-DECst76A.mjs} +1 -1
  29. package/package.json +21 -17
  30. package/dist/auth-CVFc85uF.d.mts +0 -15
  31. package/dist/dist-NJFkDQjK.mjs +0 -8134
  32. package/dist/editor-sync-types-D7YYz6fb.d.mts +0 -98
  33. package/dist/editorHostSession-Bj5YcijC.mjs +0 -912
  34. package/dist/editorHostSession-DBLSyHJs.d.mts +0 -325
  35. package/dist/editorHostSession.d.mts +0 -2
  36. package/dist/editorHostSession.mjs +0 -6
  37. package/dist/statelyPragma-YtVaBuIe.mjs +0 -102
  38. package/dist/studio-BZP6DaIO.mjs +0 -638
  39. package/dist/sync.d.mts +0 -86
  40. 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-Ciocekxl.mjs";
2
- import { C as StudioMachineRecord, L as XStateVersion, g as ProjectData, o as CreateProjectInput, x as StudioClient } from "./studio-CKdEPGKY.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 };