@statelyai/sdk 0.34.2 → 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.
- package/README.md +17 -34
- package/dist/assetStorage.d.mts +1 -1
- package/dist/auth.d.mts +14 -1
- package/dist/bin.mjs +1 -3
- package/dist/editor-sync-types-DNFk7Xtj.d.mts +53 -0
- package/dist/editorHostProtocol.d.mts +197 -0
- package/dist/{editorHostProtocol-B2_t3Le7.mjs → editorHostProtocol.mjs} +1 -1
- package/dist/embed.d.mts +3 -3
- package/dist/embed.mjs +2 -2
- package/dist/{graph-DVfx7FwN.d.mts → graph-B6xUxqR5.d.mts} +1 -1
- package/dist/graph.d.mts +1 -1
- package/dist/{index-A5CMACoO.d.mts → index-CoxF4Saw.d.mts} +8 -255
- package/dist/index.d.mts +8 -31
- package/dist/index.mjs +5 -9
- package/dist/{inspect-DBH9oOAd.d.mts → inspect-DCdu0ST3.d.mts} +1 -1
- package/dist/{inspect-ZVDq9tK2.mjs → inspect-GSXRhzOx.mjs} +1 -1
- package/dist/inspect.d.mts +2 -2
- package/dist/inspect.mjs +2 -2
- package/dist/patchTypes.d.mts +1 -1
- package/dist/{protocol-CCf9j_SZ.d.mts → protocol-nOWsz3UV.d.mts} +3 -3
- package/dist/protocol.d.mts +1 -1
- package/dist/relay.d.mts +1 -1
- package/dist/{studio-CFN3-0-2.d.mts → studio-3ujfe2z0.d.mts} +2 -2
- package/dist/{openapi-BTDjYWXd.mjs → studio-Bn3alVku.mjs} +637 -1
- package/dist/studio.d.mts +1 -1
- package/dist/studio.mjs +2 -2
- package/dist/{version-CUFh-PYe.mjs → version-DECst76A.mjs} +1 -1
- package/package.json +18 -14
- package/dist/auth-CVFc85uF.d.mts +0 -15
- package/dist/dist-DsOTTfYv.mjs +0 -8361
- package/dist/editor-sync-types-D7YYz6fb.d.mts +0 -98
- package/dist/editorHostSession-DCTHhBqC.mjs +0 -912
- package/dist/editorHostSession-yGUKdLjq.d.mts +0 -325
- package/dist/editorHostSession.d.mts +0 -2
- package/dist/editorHostSession.mjs +0 -6
- package/dist/statelyPragma-YtVaBuIe.mjs +0 -102
- package/dist/studio-BZP6DaIO.mjs +0 -638
- package/dist/sync.d.mts +0 -86
- package/dist/sync.mjs +0 -4646
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@statelyai/sdk",
|
|
3
|
-
"version": "0.
|
|
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,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",
|
|
89
|
+
"typescript": "^5.9.3",
|
|
90
|
+
"ws": "^8.19.0",
|
|
91
|
+
"xstate": "^5.0.0",
|
|
96
92
|
"@statelyai/api-contract": "0.5.2",
|
|
97
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",
|
package/dist/auth-CVFc85uF.d.mts
DELETED
|
@@ -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 };
|