@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
@@ -378,7 +378,7 @@ function createWebSocketTransport(options) {
378
378
 
379
379
  //#endregion
380
380
  //#region src/version.ts
381
- const SDK_VERSION = "0.34.2";
381
+ const SDK_VERSION = "0.36.0";
382
382
  function inspectionRuntime() {
383
383
  if (typeof window !== "undefined") return "browser";
384
384
  if (typeof process !== "undefined" && process.versions?.node) return "node";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@statelyai/sdk",
3
- "version": "0.34.2",
3
+ "version": "0.36.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,13 +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
- "typescript": "^5.9.3",
86
- "ws": "^8.19.0",
87
- "xstate": "^5.0.0"
80
+ "@statelyai/graph": "^2.1.0"
88
81
  },
89
82
  "devDependencies": {
90
83
  "@types/json-schema": "^7.0.15",
@@ -93,12 +86,23 @@
93
86
  "tsdown": "0.21.0-beta.2",
94
87
  "vitest": "^3.2.4",
95
88
  "xstate-v6": "npm:xstate@6.0.0-alpha.51",
96
- "@statelyai/api-contract": "0.5.2",
97
- "@statelyai/graph-tools": "0.9.0"
89
+ "typescript": "^5.9.3",
90
+ "ws": "^8.19.0",
91
+ "xstate": "^5.0.0",
92
+ "@statelyai/graph-tools": "0.9.1",
93
+ "@statelyai/api-contract": "0.5.3"
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 };