@statelyai/sdk 0.20.0 → 0.20.2
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/dist/{editor-sync-types-D8_EZm0A.d.mts → editor-sync-types-C-zWaaVk.d.mts} +1 -0
- package/dist/{editorHostSession-CZHd22pZ.mjs → editorHostSession-CCTwvUOB.mjs} +2 -1
- package/dist/{editorHostSession-jnC5mQDN.d.mts → editorHostSession-lL7wPLnL.d.mts} +1 -1
- package/dist/editorHostSession.d.mts +1 -1
- package/dist/editorHostSession.mjs +1 -1
- package/dist/embed.d.mts +1 -1
- package/dist/embed.mjs +1 -1
- package/dist/{graph-DxeqWHC3.d.mts → graph-yDK-MM3G.d.mts} +6 -4
- package/dist/graph.d.mts +1 -1
- package/dist/{index-CKFbG_Ix.d.mts → index-BAkQThnl.d.mts} +9 -9
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +5 -5
- package/dist/{inspect-CWwLGwLq.mjs → inspect-CwN52e61.mjs} +1 -1
- package/dist/inspect.mjs +2 -2
- package/dist/oauth.mjs +1 -0
- package/dist/patchTypes.d.mts +1 -1
- package/dist/protocol.d.mts +2 -2
- package/dist/{schemas-C2raUv-n.mjs → schemas-b9wG-zYl.mjs} +15 -1
- package/dist/{statelyPragma-GN-bfuC_.mjs → statelyPragma-Cnj58Rua.mjs} +1064 -1187
- package/dist/{studio-EKd7cQN7.mjs → studio-DHGspwII.mjs} +1 -1
- package/dist/{studio-DLduJRSp.d.mts → studio-YSppd-am.d.mts} +1 -1
- package/dist/studio.d.mts +1 -1
- package/dist/studio.mjs +1 -1
- package/dist/sync.d.mts +2 -2
- package/dist/sync.mjs +12 -5
- package/dist/{version-TY9EZF0F.mjs → version-C-1n7MoR.mjs} +1 -1
- package/package.json +4 -4
|
@@ -44,6 +44,7 @@ interface EditorSyncStateSourceLocation extends EditorSyncSourceLocation {
|
|
|
44
44
|
interface MachineSourceLocations {
|
|
45
45
|
version: 1;
|
|
46
46
|
profile?: 'xstate-v5' | 'xstate-v6-alpha';
|
|
47
|
+
profileRef?: `@statelyai/xstate@${string}`;
|
|
47
48
|
root?: EditorSyncSourceLocation;
|
|
48
49
|
statesObject?: EditorSyncStateSourceLocation;
|
|
49
50
|
states: EditorSyncStateSourceLocation[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as EDITOR_PROTOCOL_VERSION } from "./editorHostProtocol-D_h4y3rX.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { c as object, f as unknown, i as custom, l as record, n as array, o as literal, r as boolean, s as number, t as _enum, u as string } from "./schemas-b9wG-zYl.mjs";
|
|
3
3
|
|
|
4
4
|
//#region ../api-contract/dist/editor-sync.mjs
|
|
5
5
|
const EDITOR_SYNC_PROTOCOL_VERSION = 1;
|
|
@@ -56,6 +56,7 @@ const editorSyncStateSourceLocationSchema = editorSyncSourceLocationSchema.exten
|
|
|
56
56
|
const machineSourceLocationsSchema = object({
|
|
57
57
|
version: literal(1),
|
|
58
58
|
profile: _enum(["xstate-v5", "xstate-v6-alpha"]).optional(),
|
|
59
|
+
profileRef: custom((value) => typeof value === "string" && value.startsWith("@statelyai/xstate@")).optional(),
|
|
59
60
|
root: editorSyncSourceLocationSchema.optional(),
|
|
60
61
|
statesObject: editorSyncStateSourceLocationSchema.optional(),
|
|
61
62
|
states: array(editorSyncStateSourceLocationSchema),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as EditorSyncParseRequest, d as EditorSyncTextReplacement, f as MachineSourceLocations, i as EditorSyncApplyResponse, n as EditorSyncAccess, o as EditorSyncParseResponse, r as EditorSyncApplyRequest, s as EditorSyncSourceDocument, t as EditorCapabilities } from "./editor-sync-types-
|
|
1
|
+
import { a as EditorSyncParseRequest, d as EditorSyncTextReplacement, f as MachineSourceLocations, i as EditorSyncApplyResponse, n as EditorSyncAccess, o as EditorSyncParseResponse, r as EditorSyncApplyRequest, s as EditorSyncSourceDocument, t as EditorCapabilities } from "./editor-sync-types-C-zWaaVk.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/editorHostProtocol.d.ts
|
|
4
4
|
declare const EDITOR_PROTOCOL_VERSION = 1;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as RemoteEditorSyncBackendOptions, c as EDITOR_PROTOCOL_VERSION, d as EditorHostInitOptions, f as EditorHostOutboundMessage, i as EditorSyncBackend, l as EditorHostExportFormat, n as EditorHostSessionOptions, o as createRemoteEditorSyncBackend, p as EditorHostValidationIssue, r as EditorSourceHost, s as fetchEditorSyncAccess, t as EditorHostSession, u as EditorHostInboundMessage } from "./editorHostSession-
|
|
1
|
+
import { a as RemoteEditorSyncBackendOptions, c as EDITOR_PROTOCOL_VERSION, d as EditorHostInitOptions, f as EditorHostOutboundMessage, i as EditorSyncBackend, l as EditorHostExportFormat, n as EditorHostSessionOptions, o as createRemoteEditorSyncBackend, p as EditorHostValidationIssue, r as EditorSourceHost, s as fetchEditorSyncAccess, t as EditorHostSession, u as EditorHostInboundMessage } from "./editorHostSession-lL7wPLnL.mjs";
|
|
2
2
|
export { EDITOR_PROTOCOL_VERSION, EditorHostExportFormat, EditorHostInboundMessage, EditorHostInitOptions, EditorHostOutboundMessage, EditorHostSession, EditorHostSessionOptions, EditorHostValidationIssue, EditorSourceHost, EditorSyncBackend, RemoteEditorSyncBackendOptions, createRemoteEditorSyncBackend, fetchEditorSyncAccess };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { t as EDITOR_PROTOCOL_VERSION } from "./editorHostProtocol-D_h4y3rX.mjs";
|
|
2
|
-
import { n as createRemoteEditorSyncBackend, r as fetchEditorSyncAccess, t as EditorHostSession } from "./editorHostSession-
|
|
2
|
+
import { n as createRemoteEditorSyncBackend, r as fetchEditorSyncAccess, t as EditorHostSession } from "./editorHostSession-CCTwvUOB.mjs";
|
|
3
3
|
|
|
4
4
|
export { EDITOR_PROTOCOL_VERSION, EditorHostSession, createRemoteEditorSyncBackend, fetchEditorSyncAccess };
|
package/dist/embed.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as StatelyGraph } from "./graph-
|
|
1
|
+
import { i as StatelyGraph } from "./graph-yDK-MM3G.mjs";
|
|
2
2
|
import { CapabilityDeniedEvent, CommentsConfig, EditorCapabilities, EmbedDocument, EmbedDocumentLanguage, EmbedEventHandler, EmbedEventMap, EmbedEventName, EmbedMode, ExportCallOptions, ExportFormat, ExportFormatMap, InitOptions, MachineInitOptions, MachineSourceLocations, ProjectEmbedMachine, UploadResult } from "./protocol.mjs";
|
|
3
3
|
import { AssetUploadAdapter } from "./assetStorage.mjs";
|
|
4
4
|
|
package/dist/embed.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as createEventRegistry, o as createPendingExportManager, r as createPostMessageTransport, s as toInitMessage, t as SDK_VERSION } from "./version-
|
|
1
|
+
import { a as createEventRegistry, o as createPendingExportManager, r as createPostMessageTransport, s as toInitMessage, t as SDK_VERSION } from "./version-C-1n7MoR.mjs";
|
|
2
2
|
import { t as EDITOR_PROTOCOL_VERSION } from "./editorHostProtocol-D_h4y3rX.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/embed.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as CodeExpression } from "./index-
|
|
1
|
+
import { r as CodeExpression } from "./index-BAkQThnl.mjs";
|
|
2
2
|
import * as _statelyai_graph0 from "@statelyai/graph";
|
|
3
3
|
import { Graph } from "@statelyai/graph";
|
|
4
4
|
|
|
@@ -204,7 +204,7 @@ interface DigraphData {
|
|
|
204
204
|
}
|
|
205
205
|
interface DigraphConfig {
|
|
206
206
|
id: string;
|
|
207
|
-
profile?: 'xstate-v5' | 'xstate-v6-alpha';
|
|
207
|
+
profile?: `@${string}/${string}@${string}` | 'xstate-v5' | 'xstate-v6-alpha';
|
|
208
208
|
rootNode: DigraphNodeConfig;
|
|
209
209
|
edges: DigraphEdgeConfig[];
|
|
210
210
|
context: Record<string, JsonItem> | JsonExpressionString;
|
|
@@ -335,7 +335,7 @@ interface StatelyEdgeData {
|
|
|
335
335
|
meta?: Record<string, unknown> | null;
|
|
336
336
|
}
|
|
337
337
|
interface StatelyGraphData {
|
|
338
|
-
profile?: 'xstate-v5' | 'xstate-v6-alpha';
|
|
338
|
+
profile?: `@${string}/${string}@${string}` | 'xstate-v5' | 'xstate-v6-alpha';
|
|
339
339
|
schemas?: {
|
|
340
340
|
context?: Record<string, SimpleJsonSchema> | null;
|
|
341
341
|
events?: Record<string, SimpleJsonSchemaObject> | null;
|
|
@@ -385,7 +385,9 @@ interface StatelyTagImplementation {
|
|
|
385
385
|
icon?: string;
|
|
386
386
|
color?: string;
|
|
387
387
|
}
|
|
388
|
-
type StatelyGraph = Graph<StatelyNodeData, StatelyEdgeData, StatelyGraphData
|
|
388
|
+
type StatelyGraph = Graph<StatelyNodeData, StatelyEdgeData, StatelyGraphData> & {
|
|
389
|
+
xgraphSchemaVersion?: '1.0.0';
|
|
390
|
+
};
|
|
389
391
|
type StudioMachine = DigraphConfig;
|
|
390
392
|
type StudioNode = DigraphNodeConfig;
|
|
391
393
|
type StudioEdge = DigraphEdgeConfig;
|
package/dist/graph.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as studioMachineConverter, a as StatelyGraphData, c as StatelyInvoke, d as StudioAction, f as StudioEdge, g as fromStudioMachine, h as StudioNode, i as StatelyGraph, l as StatelyNodeData, m as StudioMachine, n as StatelyActorImplementation, o as StatelyGuard, p as StudioEventTypeData, r as StatelyEdgeData, s as StatelyImplementation, t as StatelyAction, u as StatelyTagImplementation, v as toStudioMachine } from "./graph-
|
|
1
|
+
import { _ as studioMachineConverter, a as StatelyGraphData, c as StatelyInvoke, d as StudioAction, f as StudioEdge, g as fromStudioMachine, h as StudioNode, i as StatelyGraph, l as StatelyNodeData, m as StudioMachine, n as StatelyActorImplementation, o as StatelyGuard, p as StudioEventTypeData, r as StatelyEdgeData, s as StatelyImplementation, t as StatelyAction, u as StatelyTagImplementation, v as toStudioMachine } from "./graph-yDK-MM3G.mjs";
|
|
2
2
|
export { StatelyAction, StatelyActorImplementation, StatelyEdgeData, StatelyGraph, StatelyGraphData, StatelyGuard, StatelyImplementation, StatelyInvoke, StatelyNodeData, StatelyTagImplementation, StudioAction, StudioEdge, StudioEventTypeData, StudioMachine, StudioNode, fromStudioMachine, studioMachineConverter, toStudioMachine };
|
|
@@ -2276,10 +2276,14 @@ interface JSONSchema7 {
|
|
|
2276
2276
|
}
|
|
2277
2277
|
//#endregion
|
|
2278
2278
|
//#region ../graph-tools/dist/index.d.mts
|
|
2279
|
+
declare const LEGACY_MACHINE_PROFILES: readonly ["xstate-v5", "xstate-v6-alpha"];
|
|
2280
|
+
type LegacyMachineProfile = (typeof LEGACY_MACHINE_PROFILES)[number];
|
|
2279
2281
|
//#endregion
|
|
2280
|
-
//#region src/
|
|
2281
|
-
|
|
2282
|
-
type
|
|
2282
|
+
//#region src/profiles/profileRefs.d.ts
|
|
2283
|
+
type ProfileName = `@${string}/${string}`;
|
|
2284
|
+
type ProfileSpecifier = `${ProfileName}@${string}`;
|
|
2285
|
+
type ResolvedProfileRef = ProfileSpecifier;
|
|
2286
|
+
type ProfileRefInput = ResolvedProfileRef | LegacyMachineProfile;
|
|
2283
2287
|
//#endregion
|
|
2284
2288
|
//#region src/codegenTypes.d.ts
|
|
2285
2289
|
interface CodeGenAction {
|
|
@@ -2384,7 +2388,7 @@ interface CodeGenActorImplementation {
|
|
|
2384
2388
|
} | null;
|
|
2385
2389
|
}
|
|
2386
2390
|
interface CodeGenGraphData {
|
|
2387
|
-
profile?:
|
|
2391
|
+
profile?: ProfileRefInput;
|
|
2388
2392
|
context?: Record<string, unknown> | CodeExpression | null;
|
|
2389
2393
|
schemas?: {
|
|
2390
2394
|
context?: Record<string, JSONSchema7> | null;
|
|
@@ -2445,11 +2449,7 @@ declare class RawCode {
|
|
|
2445
2449
|
}
|
|
2446
2450
|
declare function raw(code: string): RawCode;
|
|
2447
2451
|
declare function serializeJS(value: unknown, indent?: number, step?: number): string; //#endregion
|
|
2448
|
-
//#region src/
|
|
2449
|
-
/**
|
|
2450
|
-
* Adapts Viz's serializable choice projection to XState v6's executable
|
|
2451
|
-
* `choice` function. Other v6 config stays untouched.
|
|
2452
|
-
*/
|
|
2452
|
+
//#region src/profiles/xgraphMetadata.d.ts
|
|
2453
2453
|
//#endregion
|
|
2454
2454
|
//#region src/graphToXStateTS.d.ts
|
|
2455
2455
|
interface XStateTSOptions extends MachineConfigOptions {
|
package/dist/index.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { StatelyApiClientOptions, StatelyApiError, StatelyApiUrlOptions, createStatelyApiClient, createStatelyApiUrl } from "./api.mjs";
|
|
2
|
-
import { _ as serializeJS, c as MachineConfigOptions, d as contextSchemaToTSType, f as eventsSchemaToTSType, g as raw, h as jsonSchemaToTSType, i as CodeGenGraph, l as RawCode, m as graphToXStateTS, o as GraphPatch, p as graphToMachineConfig, t as ActionLocation, u as XStateTSOptions } from "./index-
|
|
3
|
-
import { C as EventTypeData, S as DigraphNodeConfig, _ as studioMachineConverter, a as StatelyGraphData, b as DigraphConfig, c as StatelyInvoke, d as StudioAction, f as StudioEdge, g as fromStudioMachine, h as StudioNode, i as StatelyGraph, l as StatelyNodeData, m as StudioMachine, o as StatelyGuard, r as StatelyEdgeData, t as StatelyAction, v as toStudioMachine, w as StateNodeJSONData, x as DigraphEdgeConfig, y as DigraphAction } from "./graph-
|
|
2
|
+
import { _ as serializeJS, c as MachineConfigOptions, d as contextSchemaToTSType, f as eventsSchemaToTSType, g as raw, h as jsonSchemaToTSType, i as CodeGenGraph, l as RawCode, m as graphToXStateTS, o as GraphPatch, p as graphToMachineConfig, t as ActionLocation, u as XStateTSOptions } from "./index-BAkQThnl.mjs";
|
|
3
|
+
import { C as EventTypeData, S as DigraphNodeConfig, _ as studioMachineConverter, a as StatelyGraphData, b as DigraphConfig, c as StatelyInvoke, d as StudioAction, f as StudioEdge, g as fromStudioMachine, h as StudioNode, i as StatelyGraph, l as StatelyNodeData, m as StudioMachine, o as StatelyGuard, r as StatelyEdgeData, t as StatelyAction, v as toStudioMachine, w as StateNodeJSONData, x as DigraphEdgeConfig, y as DigraphAction } from "./graph-yDK-MM3G.mjs";
|
|
4
4
|
import { CapabilityDeniedCapability, CapabilityDeniedEvent, CommentsConfig, EMBED_DOCUMENT_LANGUAGES, EMBED_DOCUMENT_LIMITS, EditorCapabilities, EmbedDocument, EmbedDocumentLanguage, EmbedEventHandler, EmbedEventMap, EmbedEventName, EmbedMode, ExportCallOptions, ExportFormat, ExportFormatMap, INSPECTION_PROTOCOL_VERSION, INSPECTION_ROOM_QUERY_PARAM, InitOptions, InspectionAction, InspectionSentEvent, InspectionTakenTransition, ProjectEmbedMachine, UploadResult, createInspectionActorId, createInspectionRoomUrls, getInspectionRoomId } from "./protocol.mjs";
|
|
5
5
|
import { AssetUploadAdapter, AssetUploadContext, AssetUploadRequest, CreateS3AssetUploadAdapterOptions, CreateSupabaseAssetUploadAdapterOptions, S3UploadTarget, SupabaseStorageClient, createS3AssetUploadAdapter, createSupabaseAssetUploadAdapter } from "./assetStorage.mjs";
|
|
6
6
|
import { i as getCredentialToken, n as StatelyCredential, r as createAuthorizationHeader, t as StatelyAuthMode } from "./auth-B0ZTKri2.mjs";
|
|
7
|
-
import { a as RemoteEditorSyncBackendOptions, c as EDITOR_PROTOCOL_VERSION, d as EditorHostInitOptions, f as EditorHostOutboundMessage, i as EditorSyncBackend, l as EditorHostExportFormat, n as EditorHostSessionOptions, o as createRemoteEditorSyncBackend, p as EditorHostValidationIssue, r as EditorSourceHost, s as fetchEditorSyncAccess, t as EditorHostSession, u as EditorHostInboundMessage } from "./editorHostSession-
|
|
7
|
+
import { a as RemoteEditorSyncBackendOptions, c as EDITOR_PROTOCOL_VERSION, d as EditorHostInitOptions, f as EditorHostOutboundMessage, i as EditorSyncBackend, l as EditorHostExportFormat, n as EditorHostSessionOptions, o as createRemoteEditorSyncBackend, p as EditorHostValidationIssue, r as EditorSourceHost, s as fetchEditorSyncAccess, t as EditorHostSession, u as EditorHostInboundMessage } from "./editorHostSession-lL7wPLnL.mjs";
|
|
8
8
|
import { AssetConfig, StatelyEmbed, StatelyEmbedOptions, createStatelyEmbed } from "./embed.mjs";
|
|
9
9
|
import { a as InspectedTransition, c as InspectorInspectionEvent, d as createStatelyInspector, f as Transport, h as createWebSocketTransport, i as InspectedSnapshot, l as ManualActorOptions, m as createPostMessageTransport, n as CreateInspectorOptions, o as Inspector, p as TransportFailure, r as InspectedEvent, s as InspectorEvents, t as AdoptedActor, u as createInspector } from "./inspect-CGJR4iZK.mjs";
|
|
10
|
-
import { A as Machine, C as StudioMachineRecord, D as VerifyApiKeyResponse, E as UpdateProjectInput, F as ProjectVisibility, I as VerifyResult, L as XStateVersion, M as Project, N as ProjectMachineSummary, O as createStatelyClient, P as ProjectSummary, R as ResourceErrorCode, S as StudioClientOptions, T as UpdateMachineInput, _ as ProjectMachine, a as CreateMachineTemplate, b as StudioApiErrorOptions, c as EnsureProjectInput, d as ExtractedMachine, f as GetMachineOptions, g as ProjectData, h as LegacyUpdateMachineInput, i as CreateMachineInput, j as MachineVersion, k as ExtractedMachines, l as ExtractMachinesInput, m as LegacyProjectVisibility, n as CreateMachineFromDefinitionInput, o as CreateProjectInput, r as CreateMachineFromTemplateInput, s as DEFAULT_STATELY_BASE_URL, t as ConnectedRepo, u as ExtractMachinesResponse, v as RepoType, w as StudioRequestOptions, x as StudioClient, y as StudioApiError } from "./studio-
|
|
10
|
+
import { A as Machine, C as StudioMachineRecord, D as VerifyApiKeyResponse, E as UpdateProjectInput, F as ProjectVisibility, I as VerifyResult, L as XStateVersion, M as Project, N as ProjectMachineSummary, O as createStatelyClient, P as ProjectSummary, R as ResourceErrorCode, S as StudioClientOptions, T as UpdateMachineInput, _ as ProjectMachine, a as CreateMachineTemplate, b as StudioApiErrorOptions, c as EnsureProjectInput, d as ExtractedMachine, f as GetMachineOptions, g as ProjectData, h as LegacyUpdateMachineInput, i as CreateMachineInput, j as MachineVersion, k as ExtractedMachines, l as ExtractMachinesInput, m as LegacyProjectVisibility, n as CreateMachineFromDefinitionInput, o as CreateProjectInput, r as CreateMachineFromTemplateInput, s as DEFAULT_STATELY_BASE_URL, t as ConnectedRepo, u as ExtractMachinesResponse, v as RepoType, w as StudioRequestOptions, x as StudioClient, y as StudioApiError } from "./studio-YSppd-am.mjs";
|
|
11
11
|
import { OAuthAuthorizationServerMetadata, OAuthClientRegistrationResponse, OAuthProtectedResourceMetadata, OAuthTokenResponse, PkcePair, buildAuthorizeUrl, createPkcePair, discoverAuthorizationServer, discoverProtectedResource, exchangeCodeForToken, refreshToken, registerOAuthClient } from "./oauth.mjs";
|
|
12
12
|
import { PlanSyncOptions, PullSyncResult, PushLocalMachineLinksResult, PushSyncOptions, PushSyncProjectOptions, PushSyncResult, ResolvedSyncInput, SyncInputFormat, SyncPlan, SyncPlanSummary } from "./sync.mjs";
|
|
13
13
|
import { CreateInspectionRelayOptions, InspectionRelay, InspectionRelayEffect, InspectionRelayPeer, InspectionRelayRole, InspectionRelaySnapshot, createInspectionRelay } from "./relay.mjs";
|
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { EMBED_DOCUMENT_LANGUAGES, EMBED_DOCUMENT_LIMITS, INSPECTION_PROTOCOL_VERSION, INSPECTION_ROOM_QUERY_PARAM, createInspectionActorId, createInspectionRoomUrls, getInspectionRoomId } from "./protocol.mjs";
|
|
2
|
-
import { i as createWebSocketTransport, r as createPostMessageTransport } from "./version-
|
|
2
|
+
import { i as createWebSocketTransport, r as createPostMessageTransport } from "./version-C-1n7MoR.mjs";
|
|
3
3
|
import { t as EDITOR_PROTOCOL_VERSION } from "./editorHostProtocol-D_h4y3rX.mjs";
|
|
4
4
|
import { createStatelyEmbed } from "./embed.mjs";
|
|
5
|
-
import { n as createRemoteEditorSyncBackend, r as fetchEditorSyncAccess, t as EditorHostSession } from "./editorHostSession-
|
|
6
|
-
import { n as StudioApiError, r as createStatelyClient, t as DEFAULT_STATELY_BASE_URL } from "./studio-
|
|
7
|
-
import { a as RawCode, c as eventsSchemaToTSType, d as jsonSchemaToTSType,
|
|
5
|
+
import { n as createRemoteEditorSyncBackend, r as fetchEditorSyncAccess, t as EditorHostSession } from "./editorHostSession-CCTwvUOB.mjs";
|
|
6
|
+
import { n as StudioApiError, r as createStatelyClient, t as DEFAULT_STATELY_BASE_URL } from "./studio-DHGspwII.mjs";
|
|
7
|
+
import { a as RawCode, c as eventsSchemaToTSType, d as jsonSchemaToTSType, l as graphToMachineConfig, m as serializeJS, n as getStatelyPragma, o as contextSchemaToTSType, p as raw, r as upsertStatelyPragma, t as findStatelyPragmaAttachments, u as graphToXStateTS } from "./statelyPragma-Cnj58Rua.mjs";
|
|
8
8
|
import { createS3AssetUploadAdapter, createSupabaseAssetUploadAdapter } from "./assetStorage.mjs";
|
|
9
|
-
import { n as createStatelyInspector, t as createInspector } from "./inspect-
|
|
9
|
+
import { n as createStatelyInspector, t as createInspector } from "./inspect-CwN52e61.mjs";
|
|
10
10
|
import { createAuthorizationHeader, getCredentialToken } from "./auth.mjs";
|
|
11
11
|
import { buildAuthorizeUrl, createPkcePair, discoverAuthorizationServer, discoverProtectedResource, exchangeCodeForToken, refreshToken, registerOAuthClient } from "./oauth.mjs";
|
|
12
12
|
import { StatelyApiError, createStatelyApiClient, createStatelyApiUrl } from "./api.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { INSPECTION_PROTOCOL_VERSION, createInspectionRoomUrls, getInspectionRoomId } from "./protocol.mjs";
|
|
2
|
-
import { a as createEventRegistry, i as createWebSocketTransport, n as inspectionRuntime, o as createPendingExportManager, t as SDK_VERSION } from "./version-
|
|
2
|
+
import { a as createEventRegistry, i as createWebSocketTransport, n as inspectionRuntime, o as createPendingExportManager, t as SDK_VERSION } from "./version-C-1n7MoR.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/openBrowser.ts
|
|
5
5
|
async function openBrowser(url) {
|
package/dist/inspect.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./version-
|
|
2
|
-
import { n as createStatelyInspector, t as createInspector } from "./inspect-
|
|
1
|
+
import "./version-C-1n7MoR.mjs";
|
|
2
|
+
import { n as createStatelyInspector, t as createInspector } from "./inspect-CwN52e61.mjs";
|
|
3
3
|
|
|
4
4
|
export { createInspector, createStatelyInspector };
|
package/dist/oauth.mjs
CHANGED
|
@@ -27,6 +27,7 @@ async function createOAuthTokenRequestError(response, message) {
|
|
|
27
27
|
try {
|
|
28
28
|
const parsed = JSON.parse(body);
|
|
29
29
|
if (typeof parsed.error === "string") oauthError = parsed.error;
|
|
30
|
+
else if (typeof parsed.error_code === "string") oauthError = parsed.error_code;
|
|
30
31
|
} catch {}
|
|
31
32
|
const detail = body.trim() ? `: ${body.trim()}` : "";
|
|
32
33
|
return new OAuthTokenRequestError(`${message} with HTTP ${response.status}${detail}`, response.status, oauthError);
|
package/dist/patchTypes.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as EditorStateType, n as CanvasColor, o as GraphPatch, s as ImplementationSourceType, t as ActionLocation } from "./index-
|
|
1
|
+
import { a as EditorStateType, n as CanvasColor, o as GraphPatch, s as ImplementationSourceType, t as ActionLocation } from "./index-BAkQThnl.mjs";
|
|
2
2
|
export { type ActionLocation, type CanvasColor, type EditorStateType, type GraphPatch, type ImplementationSourceType };
|
package/dist/protocol.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as StatelyGraph } from "./graph-
|
|
2
|
-
import { c as EditorSyncSourceLocation, f as MachineSourceLocations$1, l as EditorSyncSourceRange, t as EditorCapabilities$1, u as EditorSyncStateSourceLocation } from "./editor-sync-types-
|
|
1
|
+
import { i as StatelyGraph } from "./graph-yDK-MM3G.mjs";
|
|
2
|
+
import { c as EditorSyncSourceLocation, f as MachineSourceLocations$1, l as EditorSyncSourceRange, t as EditorCapabilities$1, u as EditorSyncStateSourceLocation } from "./editor-sync-types-C-zWaaVk.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/protocol.d.ts
|
|
5
5
|
/** Query parameter carrying the unguessable inspection room capability. */
|
|
@@ -2828,6 +2828,17 @@ function _array(Class, element, params) {
|
|
|
2828
2828
|
});
|
|
2829
2829
|
}
|
|
2830
2830
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2831
|
+
function _custom(Class, fn, _params) {
|
|
2832
|
+
const norm = normalizeParams(_params);
|
|
2833
|
+
norm.abort ?? (norm.abort = true);
|
|
2834
|
+
return new Class({
|
|
2835
|
+
type: "custom",
|
|
2836
|
+
check: "custom",
|
|
2837
|
+
fn,
|
|
2838
|
+
...norm
|
|
2839
|
+
});
|
|
2840
|
+
}
|
|
2841
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2831
2842
|
function _refine(Class, fn, _params) {
|
|
2832
2843
|
return new Class({
|
|
2833
2844
|
type: "custom",
|
|
@@ -4317,6 +4328,9 @@ const ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
|
|
|
4317
4328
|
ZodType.init(inst, def);
|
|
4318
4329
|
inst._zod.processJSONSchema = (ctx, json, params) => customProcessor(inst, ctx, json, params);
|
|
4319
4330
|
});
|
|
4331
|
+
function custom(fn, _params) {
|
|
4332
|
+
return _custom(ZodCustom, fn ?? (() => true), _params);
|
|
4333
|
+
}
|
|
4320
4334
|
function refine(fn, _params = {}) {
|
|
4321
4335
|
return _refine(ZodCustom, fn, _params);
|
|
4322
4336
|
}
|
|
@@ -4327,4 +4341,4 @@ const describe = describe$1;
|
|
|
4327
4341
|
const meta = meta$1;
|
|
4328
4342
|
|
|
4329
4343
|
//#endregion
|
|
4330
|
-
export {
|
|
4344
|
+
export { discriminatedUnion as a, object as c, union as d, unknown as f, custom as i, record as l, array as n, literal as o, boolean as r, number as s, _enum as t, string as u };
|