@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@statelyai/sdk",
3
- "version": "0.34.1",
3
+ "version": "0.35.0",
4
4
  "license": "MIT",
5
5
  "bin": {
6
6
  "stately-sdk": "./dist/bin.mjs"
@@ -33,10 +33,6 @@
33
33
  "types": "./dist/patchTypes.d.mts",
34
34
  "import": "./dist/patchTypes.mjs"
35
35
  },
36
- "./sync": {
37
- "types": "./dist/sync.d.mts",
38
- "import": "./dist/sync.mjs"
39
- },
40
36
  "./studio": {
41
37
  "types": "./dist/studio.d.mts",
42
38
  "import": "./dist/studio.mjs"
@@ -61,10 +57,6 @@
61
57
  "types": "./dist/protocol.d.mts",
62
58
  "import": "./dist/protocol.mjs"
63
59
  },
64
- "./editor-host": {
65
- "types": "./dist/editorHostSession.d.mts",
66
- "import": "./dist/editorHostSession.mjs"
67
- },
68
60
  "./relay": {
69
61
  "types": "./dist/relay.d.mts",
70
62
  "import": "./dist/relay.mjs"
@@ -78,14 +70,14 @@
78
70
  "./xstate.schema.json": "./schemas/xstate.schema.json",
79
71
  "./schemas/xstate.schema.json": "./schemas/xstate.schema.json",
80
72
  "./xstate-json.schema.json": "./schemas/xstate.schema.json",
81
- "./schemas/xstate-json.schema.json": "./schemas/xstate.schema.json"
73
+ "./schemas/xstate-json.schema.json": "./schemas/xstate.schema.json",
74
+ "./editor-host-protocol": {
75
+ "types": "./dist/editorHostProtocol.d.mts",
76
+ "import": "./dist/editorHostProtocol.mjs"
77
+ }
82
78
  },
83
79
  "dependencies": {
84
- "@statelyai/graph": "^2.1.0",
85
- "esbuild": "^0.27.0",
86
- "typescript": "^5.9.3",
87
- "ws": "^8.19.0",
88
- "xstate": "^5.0.0"
80
+ "@statelyai/graph": "^2.1.0"
89
81
  },
90
82
  "devDependencies": {
91
83
  "@types/json-schema": "^7.0.15",
@@ -93,12 +85,24 @@
93
85
  "jsdom": "^27.4.0",
94
86
  "tsdown": "0.21.0-beta.2",
95
87
  "vitest": "^3.2.4",
96
- "@statelyai/api-contract": "0.5.1",
97
- "@statelyai/graph-tools": "0.8.4"
88
+ "xstate-v6": "npm:xstate@6.0.0-alpha.51",
89
+ "typescript": "^5.9.3",
90
+ "ws": "^8.19.0",
91
+ "xstate": "^5.0.0",
92
+ "@statelyai/api-contract": "0.5.2",
93
+ "@statelyai/graph-tools": "0.9.0"
98
94
  },
99
95
  "engines": {
100
96
  "node": ">=22.4"
101
97
  },
98
+ "peerDependencies": {
99
+ "ws": "^8.19.0"
100
+ },
101
+ "peerDependenciesMeta": {
102
+ "ws": {
103
+ "optional": true
104
+ }
105
+ },
102
106
  "scripts": {
103
107
  "build": "tsdown",
104
108
  "test": "vitest run",
@@ -1,15 +0,0 @@
1
- //#region src/auth.d.ts
2
- type StatelyCredential = {
3
- type: 'api_key';
4
- token: string;
5
- } | {
6
- type: 'oauth';
7
- accessToken: string;
8
- refreshToken?: string;
9
- expiresAt?: number;
10
- };
11
- type StatelyAuthMode = 'auto' | 'none' | 'bearer';
12
- declare function getCredentialToken(credential: StatelyCredential | string | null | undefined): string | undefined;
13
- declare function createAuthorizationHeader(credential: StatelyCredential | string): string;
14
- //#endregion
15
- export { getCredentialToken as i, StatelyCredential as n, createAuthorizationHeader as r, StatelyAuthMode as t };