@statelyai/sdk 0.21.0 → 0.22.1
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 +7 -0
- package/dist/{editorHostSession-CCTwvUOB.mjs → editorHostSession-BZE_Wm0m.mjs} +24 -11
- package/dist/{editorHostSession-lL7wPLnL.d.mts → editorHostSession-CMwC9KKh.d.mts} +6 -1
- package/dist/editorHostSession.d.mts +2 -2
- package/dist/editorHostSession.mjs +4 -3
- package/dist/embed.d.mts +5 -2
- package/dist/embed.mjs +14 -2
- package/dist/{graph-B4WM_nYg.d.mts → graph-1fwR0Ynl.d.mts} +1 -1
- package/dist/graph.d.mts +1 -1
- package/dist/{index-BABex8NE.d.mts → index-D_pO_Pr8.d.mts} +488 -486
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +7 -6
- package/dist/{inspect-CnOHdMYX.mjs → inspect-CXkNcKu4.mjs} +1 -1
- package/dist/inspect.mjs +2 -2
- package/dist/openapi-BTDjYWXd.mjs +13950 -0
- package/dist/patchTypes.d.mts +1 -1
- package/dist/protocol.d.mts +13 -4
- package/dist/{statelyPragma-mii-qTXd.mjs → statelyPragma-DfKQ-kPr.mjs} +46 -418
- package/dist/{studio-CjnsqD8j.d.mts → studio-CkrbMK00.d.mts} +1 -1
- package/dist/{studio-DHGspwII.mjs → studio-iNSHtNmP.mjs} +1 -1
- package/dist/studio.d.mts +1 -1
- package/dist/studio.mjs +2 -1
- package/dist/sync.d.mts +2 -2
- package/dist/sync.mjs +7 -3
- package/dist/{version-CNeiHhaT.mjs → version-yzel-kpS.mjs} +3 -1
- package/package.json +3 -3
- package/dist/schemas-b9wG-zYl.mjs +0 -4344
- /package/dist/{editorHostProtocol-D_h4y3rX.mjs → editorHostProtocol-Bko7wge8.mjs} +0 -0
package/dist/patchTypes.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as GraphPatch, g as EditorStateType, h as CanvasColor, m as ActionLocation, v as ImplementationSourceType } from "./index-D_pO_Pr8.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 {
|
|
2
|
-
import { i as StatelyGraph } from "./graph-
|
|
1
|
+
import { i as ProfileManifest } from "./index-D_pO_Pr8.mjs";
|
|
2
|
+
import { i as StatelyGraph } from "./graph-1fwR0Ynl.mjs";
|
|
3
3
|
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";
|
|
4
4
|
|
|
5
5
|
//#region src/protocol.d.ts
|
|
@@ -171,6 +171,10 @@ interface EmbedEventMap {
|
|
|
171
171
|
machineSelected: {
|
|
172
172
|
machineId: string;
|
|
173
173
|
};
|
|
174
|
+
viewModeChanged: {
|
|
175
|
+
viewMode: 'graph' | 'list';
|
|
176
|
+
machineId?: string;
|
|
177
|
+
};
|
|
174
178
|
}
|
|
175
179
|
type EmbedEventName = keyof EmbedEventMap;
|
|
176
180
|
type EmbedEventHandler<K extends EmbedEventName> = (data: EmbedEventMap[K]) => void;
|
|
@@ -506,6 +510,11 @@ interface ProjectMachineSelectedMessage {
|
|
|
506
510
|
type: '@statelyai.project.machineSelected';
|
|
507
511
|
machineId: string;
|
|
508
512
|
}
|
|
513
|
+
interface ViewModeChangedMessage {
|
|
514
|
+
type: '@statelyai.viewModeChanged';
|
|
515
|
+
viewMode: 'graph' | 'list';
|
|
516
|
+
machineId?: string;
|
|
517
|
+
}
|
|
509
518
|
interface RetrievedMessage {
|
|
510
519
|
type: '@statelyai.retrieved';
|
|
511
520
|
requestId: string;
|
|
@@ -576,7 +585,7 @@ interface ExtensionResultMessage {
|
|
|
576
585
|
/** All messages a client (embed/inspector) can send to the viz. */
|
|
577
586
|
type ClientMessage = InitMessage | SetApiKeyMessage | EditorHandshakeMessage | SavedMessage | ClipboardReadResponseMessage | ClipboardWriteResponseMessage | ProjectInitMessage | ProjectUpdateMessage | ProjectSelectMachineMessage | UpdateMessage | SetModeMessage | SetThemeMessage | SetSettingsMessage | RetrieveMessage | ToastMessage | InspectSnapshotMessage | SystemInitMessage | SystemSelectActorMessage | SystemActorRegisteredMessage | SystemActorEventMessage | SystemActorSnapshotMessage | SystemActorStoppedMessage | UploadCapabilitiesMessage | UploadResponseMessage | ExtensionResultMessage | ErrorMessage;
|
|
578
587
|
/** All messages the viz can send back to a client. */
|
|
579
|
-
type VizMessage = ReadyMessage | LoadedMessage | ChangeMessage | SaveMessage | ProjectMachineSelectedMessage | RetrievedMessage | ErrorMessage | CapabilityDeniedMessage | ClipboardReadMessage | ClipboardWriteMessage | UploadRequestMessage | ExtensionCallMessage;
|
|
588
|
+
type VizMessage = ReadyMessage | LoadedMessage | ChangeMessage | SaveMessage | ProjectMachineSelectedMessage | ViewModeChangedMessage | RetrievedMessage | ErrorMessage | CapabilityDeniedMessage | ClipboardReadMessage | ClipboardWriteMessage | UploadRequestMessage | ExtensionCallMessage;
|
|
580
589
|
interface InspectionClientMetadata {
|
|
581
590
|
name?: string;
|
|
582
591
|
machineId?: string;
|
|
@@ -605,4 +614,4 @@ declare const PREFIX = "@statelyai.";
|
|
|
605
614
|
/** Current WebSocket inspection protocol version. */
|
|
606
615
|
declare const INSPECTION_PROTOCOL_VERSION = 2;
|
|
607
616
|
//#endregion
|
|
608
|
-
export { ActorSystemEntry, CapabilityDeniedCapability, CapabilityDeniedEvent, CapabilityDeniedMessage, ChangeMessage, ClientMessage, ClipboardReadMessage, ClipboardReadResponseMessage, ClipboardWriteMessage, ClipboardWriteResponseMessage, CommentsConfig, EMBED_DOCUMENT_LANGUAGES, EMBED_DOCUMENT_LIMITS, EditorCapabilities, EditorHandshakeMessage, EmbedDocument, EmbedDocumentLanguage, EmbedEventHandler, EmbedEventMap, EmbedEventName, EmbedExtensionsManifest, EmbedFormatManifest, EmbedMode, ErrorMessage, ExportCallOptions, ExportFormat, ExportFormatMap, ExtensionCallMessage, ExtensionResultMessage, INSPECTION_PROTOCOL_VERSION, INSPECTION_ROOM_QUERY_PARAM, InitMessage, InitOptions, InspectSnapshotMessage, InspectionAction, InspectionClientMetadata, InspectionRoomUrls, InspectionSentEvent, InspectionTakenTransition, LoadedMessage, MachineInitOptions, MachineSourceLocations, PREFIX, ProjectEmbedMachine, ProjectInitMessage, ProjectInitOptions, ProjectMachineSelectedMessage, ProjectSelectMachineMessage, ProjectUpdateMessage, ProtocolMessage, ReadOnlyReason, ReadyMessage, RegisterMessage, RegisteredMessage, RetrieveMessage, RetrievedMessage, SaveMessage, SavedMessage, SessionMessage, SetApiKeyMessage, SetModeMessage, SetSettingsMessage, SetThemeMessage, SourceLocation, SourceRange, StateSourceLocation, SystemActorEventMessage, SystemActorRegisteredMessage, SystemActorSnapshotMessage, SystemActorStoppedMessage, SystemInitMessage, SystemSelectActorMessage, ToastMessage, UpdateMessage, UploadCapabilitiesMessage, UploadFileInfo, UploadRequestMessage, UploadResponseMessage, UploadResult, ValidationIssue, VizMessage, createInspectionActorId, createInspectionRoomUrls, getInspectionRoomId };
|
|
617
|
+
export { ActorSystemEntry, CapabilityDeniedCapability, CapabilityDeniedEvent, CapabilityDeniedMessage, ChangeMessage, ClientMessage, ClipboardReadMessage, ClipboardReadResponseMessage, ClipboardWriteMessage, ClipboardWriteResponseMessage, CommentsConfig, EMBED_DOCUMENT_LANGUAGES, EMBED_DOCUMENT_LIMITS, EditorCapabilities, EditorHandshakeMessage, EmbedDocument, EmbedDocumentLanguage, EmbedEventHandler, EmbedEventMap, EmbedEventName, EmbedExtensionsManifest, EmbedFormatManifest, EmbedMode, ErrorMessage, ExportCallOptions, ExportFormat, ExportFormatMap, ExtensionCallMessage, ExtensionResultMessage, INSPECTION_PROTOCOL_VERSION, INSPECTION_ROOM_QUERY_PARAM, InitMessage, InitOptions, InspectSnapshotMessage, InspectionAction, InspectionClientMetadata, InspectionRoomUrls, InspectionSentEvent, InspectionTakenTransition, LoadedMessage, MachineInitOptions, MachineSourceLocations, PREFIX, ProjectEmbedMachine, ProjectInitMessage, ProjectInitOptions, ProjectMachineSelectedMessage, ProjectSelectMachineMessage, ProjectUpdateMessage, ProtocolMessage, ReadOnlyReason, ReadyMessage, RegisterMessage, RegisteredMessage, RetrieveMessage, RetrievedMessage, SaveMessage, SavedMessage, SessionMessage, SetApiKeyMessage, SetModeMessage, SetSettingsMessage, SetThemeMessage, SourceLocation, SourceRange, StateSourceLocation, SystemActorEventMessage, SystemActorRegisteredMessage, SystemActorSnapshotMessage, SystemActorStoppedMessage, SystemInitMessage, SystemSelectActorMessage, ToastMessage, UpdateMessage, UploadCapabilitiesMessage, UploadFileInfo, UploadRequestMessage, UploadResponseMessage, UploadResult, ValidationIssue, ViewModeChangedMessage, VizMessage, createInspectionActorId, createInspectionRoomUrls, getInspectionRoomId };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as discriminatedUnion, c as object, d as union, 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 "./
|
|
1
|
+
import { a as discriminatedUnion, c as object, d as union, 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 "./openapi-BTDjYWXd.mjs";
|
|
2
2
|
import ts from "typescript";
|
|
3
3
|
import "xstate/graph";
|
|
4
4
|
|
|
@@ -2471,7 +2471,7 @@ function stripExportDefault(code) {
|
|
|
2471
2471
|
return trimmed;
|
|
2472
2472
|
}
|
|
2473
2473
|
const XSTATE_V5_PROFILE = "@statelyai/xstate@5.30.0";
|
|
2474
|
-
const XSTATE_V6_PROFILE = "@statelyai/xstate@6.0.0-alpha.
|
|
2474
|
+
const XSTATE_V6_PROFILE = "@statelyai/xstate@6.0.0-alpha.47";
|
|
2475
2475
|
const LEGACY_MACHINE_PROFILES = ["xstate-v5", "xstate-v6-alpha"];
|
|
2476
2476
|
function normalizeMachineProfile(profile) {
|
|
2477
2477
|
return profile === "xstate-v5" ? XSTATE_V5_PROFILE : profile === "xstate-v6-alpha" ? XSTATE_V6_PROFILE : profile;
|
|
@@ -2867,10 +2867,11 @@ function graphToMachineConfig(graph, options = {}) {
|
|
|
2867
2867
|
Object.assign(nodeConfig, {
|
|
2868
2868
|
id: resolvedNodeId,
|
|
2869
2869
|
type: nodeType === "normal" ? void 0 : nodeType ?? void 0,
|
|
2870
|
-
initial: initialNode ? node.data.initialInput !== void 0 ? {
|
|
2870
|
+
initial: initialNode ? nodeType === "history" ? void 0 : node.data.initialInput !== void 0 ? {
|
|
2871
2871
|
target: initialNode.data.key,
|
|
2872
2872
|
input: node.data.initialInput
|
|
2873
2873
|
} : initialNode.data.key : void 0,
|
|
2874
|
+
target: nodeType === "history" && initialNode ? initialNode.data.key : void 0,
|
|
2874
2875
|
...node.data.timeout !== void 0 ? { timeout: node.data.timeout } : void 0,
|
|
2875
2876
|
...node.data.route !== void 0 ? { route: node.data.route } : void 0,
|
|
2876
2877
|
...node.data.entry?.length ? { entry: node.data.entry.map(serializeActionItem) } : void 0,
|
|
@@ -3816,10 +3817,28 @@ function guardParams(fn) {
|
|
|
3816
3817
|
if (!param) return "()";
|
|
3817
3818
|
return `(${param.getText()})`;
|
|
3818
3819
|
}
|
|
3820
|
+
function transitionContextIdentity(fn) {
|
|
3821
|
+
const parameter = fn.parameters[0]?.name;
|
|
3822
|
+
if (!parameter) return null;
|
|
3823
|
+
if (ts.isIdentifier(parameter)) return `${parameter.text}.context`;
|
|
3824
|
+
if (!ts.isObjectBindingPattern(parameter)) return null;
|
|
3825
|
+
for (const element of parameter.elements) {
|
|
3826
|
+
if (!ts.isIdentifier(element.name)) continue;
|
|
3827
|
+
if ((element.propertyName ? propName(element.propertyName) : element.name.text) === "context") return element.name.text;
|
|
3828
|
+
}
|
|
3829
|
+
return null;
|
|
3830
|
+
}
|
|
3831
|
+
function omitIdentityTransitionContext(transition, identity) {
|
|
3832
|
+
const context = transition.context;
|
|
3833
|
+
if (!identity || !context || typeof context !== "object" || context["@type"] !== "code" || context.expr !== identity) return transition;
|
|
3834
|
+
const { context: _context, ...rest } = transition;
|
|
3835
|
+
return rest;
|
|
3836
|
+
}
|
|
3819
3837
|
function normalizeFunctionTransition(fn, bindings, depth) {
|
|
3820
3838
|
if (fn.body && ts.isBlock(fn.body) && hasUnsafeVariableInitializer(fn.body)) return fallbackFunctionTransition(fn);
|
|
3821
3839
|
const branches = ts.isArrowFunction(fn) && !ts.isBlock(fn.body) ? expressionBranches(fn.body, bindings, depth + 1) : fn.body && ts.isBlock(fn.body) ? statementBranches(fn.body.statements, bindings, enqueueParamName(fn)) : [];
|
|
3822
3840
|
if (branches.some((branch) => branch.unknown)) return fallbackFunctionTransition(fn);
|
|
3841
|
+
const contextIdentity = transitionContextIdentity(fn);
|
|
3823
3842
|
const transitions = branches.map((branch) => {
|
|
3824
3843
|
const transition = transitionFromValue(branch.result, branch.actions);
|
|
3825
3844
|
if (!transition) return null;
|
|
@@ -3831,10 +3850,10 @@ function normalizeFunctionTransition(fn, bindings, depth) {
|
|
|
3831
3850
|
} : transition;
|
|
3832
3851
|
}
|
|
3833
3852
|
const guard = guardFromConditions(branch.conds, guardParams(fn));
|
|
3834
|
-
return guard ? {
|
|
3853
|
+
return omitIdentityTransitionContext(guard ? {
|
|
3835
3854
|
...transition,
|
|
3836
3855
|
guard
|
|
3837
|
-
} : transition;
|
|
3856
|
+
} : transition, contextIdentity);
|
|
3838
3857
|
}).filter((transition) => Boolean(transition));
|
|
3839
3858
|
if (transitions.length === 1) return transitions[0];
|
|
3840
3859
|
if (transitions.length > 1) return transitions;
|
|
@@ -4966,7 +4985,7 @@ const actionLocationSchema$1 = union([object({
|
|
|
4966
4985
|
edgeId: string(),
|
|
4967
4986
|
group: literal("transition")
|
|
4968
4987
|
})]);
|
|
4969
|
-
const createStatePatchSchema
|
|
4988
|
+
const createStatePatchSchema = object({
|
|
4970
4989
|
op: literal("createState"),
|
|
4971
4990
|
description: string().optional(),
|
|
4972
4991
|
id: string().optional(),
|
|
@@ -4978,7 +4997,7 @@ const createStatePatchSchema$1 = object({
|
|
|
4978
4997
|
color: colorSchema.nullable().optional(),
|
|
4979
4998
|
initial: boolean().optional()
|
|
4980
4999
|
});
|
|
4981
|
-
const updateStatePatchSchema
|
|
5000
|
+
const updateStatePatchSchema = object({
|
|
4982
5001
|
op: literal("updateState"),
|
|
4983
5002
|
description: string().optional(),
|
|
4984
5003
|
stateId: string(),
|
|
@@ -4990,7 +5009,7 @@ const updateStatePatchSchema$1 = object({
|
|
|
4990
5009
|
meta: record(string(), unknown()).nullable().optional(),
|
|
4991
5010
|
history: _enum(["shallow", "deep"]).nullable().optional()
|
|
4992
5011
|
});
|
|
4993
|
-
const deleteStatePatchSchema
|
|
5012
|
+
const deleteStatePatchSchema = object({
|
|
4994
5013
|
op: literal("deleteState"),
|
|
4995
5014
|
description: string().optional(),
|
|
4996
5015
|
stateId: string()
|
|
@@ -5000,7 +5019,7 @@ const guardSchema = object({
|
|
|
5000
5019
|
code: string().optional(),
|
|
5001
5020
|
params: record(string(), unknown()).optional()
|
|
5002
5021
|
});
|
|
5003
|
-
const createTransitionPatchSchema
|
|
5022
|
+
const createTransitionPatchSchema = object({
|
|
5004
5023
|
op: literal("createTransition"),
|
|
5005
5024
|
description: string().optional(),
|
|
5006
5025
|
id: string().optional(),
|
|
@@ -5017,7 +5036,7 @@ const createTransitionPatchSchema$1 = object({
|
|
|
5017
5036
|
color: colorSchema.nullable().optional(),
|
|
5018
5037
|
transitionDescription: string().nullable().optional()
|
|
5019
5038
|
});
|
|
5020
|
-
const updateTransitionPatchSchema
|
|
5039
|
+
const updateTransitionPatchSchema = object({
|
|
5021
5040
|
op: literal("updateTransition"),
|
|
5022
5041
|
description: string().optional(),
|
|
5023
5042
|
transitionId: string(),
|
|
@@ -5034,12 +5053,12 @@ const updateTransitionPatchSchema$1 = object({
|
|
|
5034
5053
|
color: colorSchema.nullable().optional(),
|
|
5035
5054
|
meta: record(string(), unknown()).nullable().optional()
|
|
5036
5055
|
});
|
|
5037
|
-
const deleteTransitionPatchSchema
|
|
5056
|
+
const deleteTransitionPatchSchema = object({
|
|
5038
5057
|
op: literal("deleteTransition"),
|
|
5039
5058
|
description: string().optional(),
|
|
5040
5059
|
transitionId: string()
|
|
5041
5060
|
});
|
|
5042
|
-
const createActionPatchSchema
|
|
5061
|
+
const createActionPatchSchema = object({
|
|
5043
5062
|
op: literal("createAction"),
|
|
5044
5063
|
description: string().optional(),
|
|
5045
5064
|
location: actionLocationSchema$1,
|
|
@@ -5050,7 +5069,7 @@ const createActionPatchSchema$1 = object({
|
|
|
5050
5069
|
}),
|
|
5051
5070
|
index: number().optional()
|
|
5052
5071
|
});
|
|
5053
|
-
const updateActionPatchSchema
|
|
5072
|
+
const updateActionPatchSchema = object({
|
|
5054
5073
|
op: literal("updateAction"),
|
|
5055
5074
|
description: string().optional(),
|
|
5056
5075
|
location: actionLocationSchema$1,
|
|
@@ -5060,35 +5079,35 @@ const updateActionPatchSchema$1 = object({
|
|
|
5060
5079
|
params: record(string(), unknown()).optional()
|
|
5061
5080
|
})
|
|
5062
5081
|
});
|
|
5063
|
-
const deleteActionPatchSchema
|
|
5082
|
+
const deleteActionPatchSchema = object({
|
|
5064
5083
|
op: literal("deleteAction"),
|
|
5065
5084
|
description: string().optional(),
|
|
5066
5085
|
location: actionLocationSchema$1,
|
|
5067
5086
|
actionId: string()
|
|
5068
5087
|
});
|
|
5069
|
-
const setGuardPatchSchema
|
|
5088
|
+
const setGuardPatchSchema = object({
|
|
5070
5089
|
op: literal("setGuard"),
|
|
5071
5090
|
description: string().optional(),
|
|
5072
5091
|
edgeId: string(),
|
|
5073
5092
|
guard: guardSchema
|
|
5074
5093
|
});
|
|
5075
|
-
const deleteGuardPatchSchema
|
|
5094
|
+
const deleteGuardPatchSchema = object({
|
|
5076
5095
|
op: literal("deleteGuard"),
|
|
5077
5096
|
description: string().optional(),
|
|
5078
5097
|
edgeId: string()
|
|
5079
5098
|
});
|
|
5080
5099
|
const machinePatchSchema = discriminatedUnion("op", [
|
|
5081
|
-
createStatePatchSchema
|
|
5082
|
-
updateStatePatchSchema
|
|
5083
|
-
deleteStatePatchSchema
|
|
5084
|
-
createTransitionPatchSchema
|
|
5085
|
-
updateTransitionPatchSchema
|
|
5086
|
-
deleteTransitionPatchSchema
|
|
5087
|
-
createActionPatchSchema
|
|
5088
|
-
updateActionPatchSchema
|
|
5089
|
-
deleteActionPatchSchema
|
|
5090
|
-
setGuardPatchSchema
|
|
5091
|
-
deleteGuardPatchSchema
|
|
5100
|
+
createStatePatchSchema,
|
|
5101
|
+
updateStatePatchSchema,
|
|
5102
|
+
deleteStatePatchSchema,
|
|
5103
|
+
createTransitionPatchSchema,
|
|
5104
|
+
updateTransitionPatchSchema,
|
|
5105
|
+
deleteTransitionPatchSchema,
|
|
5106
|
+
createActionPatchSchema,
|
|
5107
|
+
updateActionPatchSchema,
|
|
5108
|
+
deleteActionPatchSchema,
|
|
5109
|
+
setGuardPatchSchema,
|
|
5110
|
+
deleteGuardPatchSchema
|
|
5092
5111
|
]);
|
|
5093
5112
|
const validationLevelSchema = _enum([
|
|
5094
5113
|
"info",
|
|
@@ -5224,397 +5243,6 @@ const simulateMachineStepInputSchema = machineInputSchema.extend({
|
|
|
5224
5243
|
event: object({ type: string() }).passthrough(),
|
|
5225
5244
|
guardState: record(string(), boolean()).optional()
|
|
5226
5245
|
});
|
|
5227
|
-
const pointSchema = object({
|
|
5228
|
-
x: number(),
|
|
5229
|
-
y: number()
|
|
5230
|
-
});
|
|
5231
|
-
const canvasColorSchema = _enum([
|
|
5232
|
-
"green",
|
|
5233
|
-
"red",
|
|
5234
|
-
"purple",
|
|
5235
|
-
"blue",
|
|
5236
|
-
"orange",
|
|
5237
|
-
"yellow",
|
|
5238
|
-
"pink",
|
|
5239
|
-
"teal"
|
|
5240
|
-
]);
|
|
5241
|
-
const editorStateTypeSchema = _enum([
|
|
5242
|
-
"normal",
|
|
5243
|
-
"parallel",
|
|
5244
|
-
"history",
|
|
5245
|
-
"final",
|
|
5246
|
-
"choice"
|
|
5247
|
-
]).nullable();
|
|
5248
|
-
const actionLocationSchema = union([object({
|
|
5249
|
-
nodeId: string(),
|
|
5250
|
-
group: _enum(["entry", "exit"])
|
|
5251
|
-
}), object({
|
|
5252
|
-
edgeId: string(),
|
|
5253
|
-
group: literal("transition")
|
|
5254
|
-
})]);
|
|
5255
|
-
const implementationSourceTypeSchema = _enum([
|
|
5256
|
-
"action",
|
|
5257
|
-
"guard",
|
|
5258
|
-
"actor",
|
|
5259
|
-
"delay"
|
|
5260
|
-
]);
|
|
5261
|
-
const createNodePatchSchema = object({
|
|
5262
|
-
op: literal("createNode"),
|
|
5263
|
-
description: string().optional(),
|
|
5264
|
-
id: string().optional(),
|
|
5265
|
-
parentId: string(),
|
|
5266
|
-
key: string(),
|
|
5267
|
-
type: editorStateTypeSchema.optional(),
|
|
5268
|
-
x: number().optional(),
|
|
5269
|
-
y: number().optional()
|
|
5270
|
-
});
|
|
5271
|
-
const updateNodePatchSchema = object({
|
|
5272
|
-
op: literal("updateNode"),
|
|
5273
|
-
description: string().optional(),
|
|
5274
|
-
nodeId: string(),
|
|
5275
|
-
data: object({
|
|
5276
|
-
key: string().optional(),
|
|
5277
|
-
type: editorStateTypeSchema.optional(),
|
|
5278
|
-
description: string().optional(),
|
|
5279
|
-
initialId: string().nullable().optional(),
|
|
5280
|
-
initialInput: unknown().optional(),
|
|
5281
|
-
timeout: unknown().optional(),
|
|
5282
|
-
route: unknown().optional()
|
|
5283
|
-
})
|
|
5284
|
-
});
|
|
5285
|
-
const deleteNodePatchSchema = object({
|
|
5286
|
-
op: literal("deleteNode"),
|
|
5287
|
-
description: string().optional(),
|
|
5288
|
-
nodeId: string()
|
|
5289
|
-
});
|
|
5290
|
-
const createEdgePatchSchema = object({
|
|
5291
|
-
op: literal("createEdge"),
|
|
5292
|
-
description: string().optional(),
|
|
5293
|
-
id: string().optional(),
|
|
5294
|
-
sourceId: string(),
|
|
5295
|
-
targetId: string(),
|
|
5296
|
-
eventType: string(),
|
|
5297
|
-
matches: record(string(), unknown()).optional(),
|
|
5298
|
-
transitionType: _enum([
|
|
5299
|
-
"normal",
|
|
5300
|
-
"targetless",
|
|
5301
|
-
"reenter"
|
|
5302
|
-
]).optional()
|
|
5303
|
-
});
|
|
5304
|
-
const updateEdgePatchSchema = object({
|
|
5305
|
-
op: literal("updateEdge"),
|
|
5306
|
-
description: string().optional(),
|
|
5307
|
-
edgeId: string(),
|
|
5308
|
-
data: object({
|
|
5309
|
-
sourceId: string().optional(),
|
|
5310
|
-
targetId: string().optional(),
|
|
5311
|
-
eventType: string().optional(),
|
|
5312
|
-
matches: record(string(), unknown()).optional(),
|
|
5313
|
-
transitionType: _enum([
|
|
5314
|
-
"normal",
|
|
5315
|
-
"targetless",
|
|
5316
|
-
"reenter"
|
|
5317
|
-
]).optional(),
|
|
5318
|
-
description: string().nullable().optional(),
|
|
5319
|
-
input: unknown().optional()
|
|
5320
|
-
})
|
|
5321
|
-
});
|
|
5322
|
-
const deleteEdgePatchSchema = object({
|
|
5323
|
-
op: literal("deleteEdge"),
|
|
5324
|
-
description: string().optional(),
|
|
5325
|
-
edgeId: string()
|
|
5326
|
-
});
|
|
5327
|
-
const createStatePatchSchema = object({
|
|
5328
|
-
op: literal("createState"),
|
|
5329
|
-
description: string().optional(),
|
|
5330
|
-
id: string().optional(),
|
|
5331
|
-
parentId: string(),
|
|
5332
|
-
key: string(),
|
|
5333
|
-
type: editorStateTypeSchema.optional(),
|
|
5334
|
-
x: number().optional(),
|
|
5335
|
-
y: number().optional(),
|
|
5336
|
-
color: canvasColorSchema.nullable().optional(),
|
|
5337
|
-
initial: boolean().optional()
|
|
5338
|
-
});
|
|
5339
|
-
const updateStatePatchSchema = object({
|
|
5340
|
-
op: literal("updateState"),
|
|
5341
|
-
description: string().optional(),
|
|
5342
|
-
stateId: string(),
|
|
5343
|
-
key: string().optional(),
|
|
5344
|
-
type: editorStateTypeSchema.optional(),
|
|
5345
|
-
stateDescription: string().optional(),
|
|
5346
|
-
initialId: string().nullable().optional(),
|
|
5347
|
-
initialInput: unknown().optional(),
|
|
5348
|
-
timeout: unknown().optional(),
|
|
5349
|
-
route: unknown().optional(),
|
|
5350
|
-
color: canvasColorSchema.nullable().optional(),
|
|
5351
|
-
meta: record(string(), unknown()).nullable().optional(),
|
|
5352
|
-
history: _enum(["shallow", "deep"]).nullable().optional()
|
|
5353
|
-
});
|
|
5354
|
-
const deleteStatePatchSchema = object({
|
|
5355
|
-
op: literal("deleteState"),
|
|
5356
|
-
description: string().optional(),
|
|
5357
|
-
stateId: string()
|
|
5358
|
-
});
|
|
5359
|
-
const createTransitionPatchSchema = object({
|
|
5360
|
-
op: literal("createTransition"),
|
|
5361
|
-
description: string().optional(),
|
|
5362
|
-
id: string().optional(),
|
|
5363
|
-
sourceId: string(),
|
|
5364
|
-
targetId: string(),
|
|
5365
|
-
eventType: string(),
|
|
5366
|
-
matches: record(string(), unknown()).optional(),
|
|
5367
|
-
transitionType: _enum([
|
|
5368
|
-
"normal",
|
|
5369
|
-
"targetless",
|
|
5370
|
-
"reenter"
|
|
5371
|
-
]).optional(),
|
|
5372
|
-
guard: object({
|
|
5373
|
-
type: string(),
|
|
5374
|
-
code: string().optional(),
|
|
5375
|
-
params: record(string(), unknown()).optional()
|
|
5376
|
-
}).optional(),
|
|
5377
|
-
color: canvasColorSchema.nullable().optional(),
|
|
5378
|
-
transitionDescription: string().nullable().optional(),
|
|
5379
|
-
input: unknown().optional()
|
|
5380
|
-
});
|
|
5381
|
-
const updateTransitionPatchSchema = object({
|
|
5382
|
-
op: literal("updateTransition"),
|
|
5383
|
-
description: string().optional(),
|
|
5384
|
-
transitionId: string(),
|
|
5385
|
-
sourceId: string().optional(),
|
|
5386
|
-
targetId: string().optional(),
|
|
5387
|
-
eventType: string().optional(),
|
|
5388
|
-
matches: record(string(), unknown()).optional(),
|
|
5389
|
-
transitionType: _enum([
|
|
5390
|
-
"normal",
|
|
5391
|
-
"targetless",
|
|
5392
|
-
"reenter"
|
|
5393
|
-
]).optional(),
|
|
5394
|
-
transitionDescription: string().nullable().optional(),
|
|
5395
|
-
input: unknown().optional(),
|
|
5396
|
-
color: canvasColorSchema.nullable().optional(),
|
|
5397
|
-
meta: record(string(), unknown()).nullable().optional()
|
|
5398
|
-
});
|
|
5399
|
-
const deleteTransitionPatchSchema = object({
|
|
5400
|
-
op: literal("deleteTransition"),
|
|
5401
|
-
description: string().optional(),
|
|
5402
|
-
transitionId: string()
|
|
5403
|
-
});
|
|
5404
|
-
const createActionPatchSchema = object({
|
|
5405
|
-
op: literal("createAction"),
|
|
5406
|
-
description: string().optional(),
|
|
5407
|
-
location: actionLocationSchema,
|
|
5408
|
-
action: object({
|
|
5409
|
-
id: string().optional(),
|
|
5410
|
-
type: string(),
|
|
5411
|
-
params: record(string(), unknown()).optional()
|
|
5412
|
-
}),
|
|
5413
|
-
index: number().optional()
|
|
5414
|
-
});
|
|
5415
|
-
const updateActionPatchSchema = object({
|
|
5416
|
-
op: literal("updateAction"),
|
|
5417
|
-
description: string().optional(),
|
|
5418
|
-
location: actionLocationSchema,
|
|
5419
|
-
actionId: string(),
|
|
5420
|
-
data: object({
|
|
5421
|
-
type: string().optional(),
|
|
5422
|
-
params: record(string(), unknown()).optional()
|
|
5423
|
-
})
|
|
5424
|
-
});
|
|
5425
|
-
const deleteActionPatchSchema = object({
|
|
5426
|
-
op: literal("deleteAction"),
|
|
5427
|
-
description: string().optional(),
|
|
5428
|
-
location: actionLocationSchema,
|
|
5429
|
-
actionId: string()
|
|
5430
|
-
});
|
|
5431
|
-
const createInvokePatchSchema = object({
|
|
5432
|
-
op: literal("createInvoke"),
|
|
5433
|
-
description: string().optional(),
|
|
5434
|
-
nodeId: string(),
|
|
5435
|
-
invoke: object({
|
|
5436
|
-
id: string().optional(),
|
|
5437
|
-
invocationId: string().optional(),
|
|
5438
|
-
src: string(),
|
|
5439
|
-
srcExpression: unknown().optional(),
|
|
5440
|
-
code: string().optional(),
|
|
5441
|
-
registryKey: string().optional(),
|
|
5442
|
-
timeout: unknown().optional(),
|
|
5443
|
-
input: unknown().optional(),
|
|
5444
|
-
output: unknown().optional()
|
|
5445
|
-
})
|
|
5446
|
-
});
|
|
5447
|
-
const updateInvokePatchSchema = object({
|
|
5448
|
-
op: literal("updateInvoke"),
|
|
5449
|
-
description: string().optional(),
|
|
5450
|
-
nodeId: string(),
|
|
5451
|
-
invokeId: string(),
|
|
5452
|
-
data: object({
|
|
5453
|
-
invocationId: string().optional(),
|
|
5454
|
-
src: string().optional(),
|
|
5455
|
-
srcExpression: unknown().optional(),
|
|
5456
|
-
code: string().optional(),
|
|
5457
|
-
registryKey: string().optional(),
|
|
5458
|
-
timeout: unknown().optional(),
|
|
5459
|
-
input: unknown().optional(),
|
|
5460
|
-
output: unknown().optional()
|
|
5461
|
-
})
|
|
5462
|
-
});
|
|
5463
|
-
const deleteInvokePatchSchema = object({
|
|
5464
|
-
op: literal("deleteInvoke"),
|
|
5465
|
-
description: string().optional(),
|
|
5466
|
-
nodeId: string(),
|
|
5467
|
-
invokeId: string()
|
|
5468
|
-
});
|
|
5469
|
-
const implementationPatchDataSchema = object({
|
|
5470
|
-
id: string(),
|
|
5471
|
-
name: string().optional(),
|
|
5472
|
-
code: string().optional()
|
|
5473
|
-
});
|
|
5474
|
-
const createImplementationPatchSchema = object({
|
|
5475
|
-
op: literal("createImplementation"),
|
|
5476
|
-
description: string().optional(),
|
|
5477
|
-
sourceType: implementationSourceTypeSchema,
|
|
5478
|
-
implementation: implementationPatchDataSchema
|
|
5479
|
-
});
|
|
5480
|
-
const updateImplementationPatchSchema = object({
|
|
5481
|
-
op: literal("updateImplementation"),
|
|
5482
|
-
description: string().optional(),
|
|
5483
|
-
sourceType: implementationSourceTypeSchema,
|
|
5484
|
-
implementationId: string(),
|
|
5485
|
-
data: object({
|
|
5486
|
-
name: string().optional(),
|
|
5487
|
-
code: string().optional()
|
|
5488
|
-
})
|
|
5489
|
-
});
|
|
5490
|
-
const deleteImplementationPatchSchema = object({
|
|
5491
|
-
op: literal("deleteImplementation"),
|
|
5492
|
-
description: string().optional(),
|
|
5493
|
-
sourceType: implementationSourceTypeSchema,
|
|
5494
|
-
implementationId: string()
|
|
5495
|
-
});
|
|
5496
|
-
const setGuardPatchSchema = object({
|
|
5497
|
-
op: literal("setGuard"),
|
|
5498
|
-
description: string().optional(),
|
|
5499
|
-
edgeId: string(),
|
|
5500
|
-
guard: object({
|
|
5501
|
-
type: string(),
|
|
5502
|
-
code: string().optional(),
|
|
5503
|
-
params: record(string(), unknown()).optional()
|
|
5504
|
-
})
|
|
5505
|
-
});
|
|
5506
|
-
const deleteGuardPatchSchema = object({
|
|
5507
|
-
op: literal("deleteGuard"),
|
|
5508
|
-
description: string().optional(),
|
|
5509
|
-
edgeId: string()
|
|
5510
|
-
});
|
|
5511
|
-
const createTagPatchSchema = object({
|
|
5512
|
-
op: literal("createTag"),
|
|
5513
|
-
description: string().optional(),
|
|
5514
|
-
nodeId: string(),
|
|
5515
|
-
tag: object({ name: string() })
|
|
5516
|
-
});
|
|
5517
|
-
const deleteTagPatchSchema = object({
|
|
5518
|
-
op: literal("deleteTag"),
|
|
5519
|
-
description: string().optional(),
|
|
5520
|
-
nodeId: string(),
|
|
5521
|
-
tagName: string()
|
|
5522
|
-
});
|
|
5523
|
-
const createAnnotationPatchSchema = object({
|
|
5524
|
-
op: literal("createAnnotation"),
|
|
5525
|
-
description: string().optional(),
|
|
5526
|
-
id: string().optional(),
|
|
5527
|
-
parentId: string().nullable(),
|
|
5528
|
-
content: string(),
|
|
5529
|
-
x: number().optional(),
|
|
5530
|
-
y: number().optional()
|
|
5531
|
-
});
|
|
5532
|
-
const updateAnnotationPatchSchema = object({
|
|
5533
|
-
op: literal("updateAnnotation"),
|
|
5534
|
-
description: string().optional(),
|
|
5535
|
-
annotationId: string(),
|
|
5536
|
-
data: object({ content: string().optional() })
|
|
5537
|
-
});
|
|
5538
|
-
const deleteAnnotationPatchSchema = object({
|
|
5539
|
-
op: literal("deleteAnnotation"),
|
|
5540
|
-
description: string().optional(),
|
|
5541
|
-
annotationId: string()
|
|
5542
|
-
});
|
|
5543
|
-
const setContextPatchSchema = object({
|
|
5544
|
-
op: literal("setContext"),
|
|
5545
|
-
description: string().optional(),
|
|
5546
|
-
context: record(string(), unknown())
|
|
5547
|
-
});
|
|
5548
|
-
const updateSchemasPatchSchema = object({
|
|
5549
|
-
op: literal("updateSchemas"),
|
|
5550
|
-
description: string().optional(),
|
|
5551
|
-
schemas: object({
|
|
5552
|
-
context: record(string(), unknown()).nullable().optional(),
|
|
5553
|
-
events: record(string(), unknown()).nullable().optional(),
|
|
5554
|
-
input: unknown().nullable().optional(),
|
|
5555
|
-
output: unknown().nullable().optional()
|
|
5556
|
-
})
|
|
5557
|
-
});
|
|
5558
|
-
/** Full union: generic graph ops + semantic state machine ops */
|
|
5559
|
-
const graphPatchSchema = discriminatedUnion("op", [
|
|
5560
|
-
createNodePatchSchema,
|
|
5561
|
-
updateNodePatchSchema,
|
|
5562
|
-
deleteNodePatchSchema,
|
|
5563
|
-
createEdgePatchSchema,
|
|
5564
|
-
updateEdgePatchSchema,
|
|
5565
|
-
deleteEdgePatchSchema,
|
|
5566
|
-
createStatePatchSchema,
|
|
5567
|
-
updateStatePatchSchema,
|
|
5568
|
-
deleteStatePatchSchema,
|
|
5569
|
-
createTransitionPatchSchema,
|
|
5570
|
-
updateTransitionPatchSchema,
|
|
5571
|
-
deleteTransitionPatchSchema,
|
|
5572
|
-
createActionPatchSchema,
|
|
5573
|
-
updateActionPatchSchema,
|
|
5574
|
-
deleteActionPatchSchema,
|
|
5575
|
-
createInvokePatchSchema,
|
|
5576
|
-
updateInvokePatchSchema,
|
|
5577
|
-
deleteInvokePatchSchema,
|
|
5578
|
-
createImplementationPatchSchema,
|
|
5579
|
-
updateImplementationPatchSchema,
|
|
5580
|
-
deleteImplementationPatchSchema,
|
|
5581
|
-
setGuardPatchSchema,
|
|
5582
|
-
deleteGuardPatchSchema,
|
|
5583
|
-
createTagPatchSchema,
|
|
5584
|
-
deleteTagPatchSchema,
|
|
5585
|
-
createAnnotationPatchSchema,
|
|
5586
|
-
updateAnnotationPatchSchema,
|
|
5587
|
-
deleteAnnotationPatchSchema,
|
|
5588
|
-
setContextPatchSchema,
|
|
5589
|
-
updateSchemasPatchSchema
|
|
5590
|
-
]);
|
|
5591
|
-
/** AI-only schema: semantic ops + shared ops (no generic graph ops) */
|
|
5592
|
-
const aiPatchSchema = discriminatedUnion("op", [
|
|
5593
|
-
createStatePatchSchema,
|
|
5594
|
-
updateStatePatchSchema,
|
|
5595
|
-
deleteStatePatchSchema,
|
|
5596
|
-
createTransitionPatchSchema,
|
|
5597
|
-
updateTransitionPatchSchema,
|
|
5598
|
-
deleteTransitionPatchSchema,
|
|
5599
|
-
createActionPatchSchema,
|
|
5600
|
-
updateActionPatchSchema,
|
|
5601
|
-
deleteActionPatchSchema,
|
|
5602
|
-
createInvokePatchSchema,
|
|
5603
|
-
updateInvokePatchSchema,
|
|
5604
|
-
deleteInvokePatchSchema,
|
|
5605
|
-
createImplementationPatchSchema,
|
|
5606
|
-
updateImplementationPatchSchema,
|
|
5607
|
-
deleteImplementationPatchSchema,
|
|
5608
|
-
setGuardPatchSchema,
|
|
5609
|
-
deleteGuardPatchSchema,
|
|
5610
|
-
createTagPatchSchema,
|
|
5611
|
-
deleteTagPatchSchema,
|
|
5612
|
-
createAnnotationPatchSchema,
|
|
5613
|
-
updateAnnotationPatchSchema,
|
|
5614
|
-
deleteAnnotationPatchSchema,
|
|
5615
|
-
setContextPatchSchema,
|
|
5616
|
-
updateSchemasPatchSchema
|
|
5617
|
-
]);
|
|
5618
5246
|
|
|
5619
5247
|
//#endregion
|
|
5620
5248
|
//#region src/statelyPragma.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as output, C as ZodNumber, D as ZodString, E as ZodRecord, O as ZodUnion, S as ZodNullable, T as ZodOptional, b as ZodEnum, j as $strip, k as ZodUnknown, w as ZodObject, x as ZodLiteral, y as ZodArray } from "./index-
|
|
1
|
+
import { A as output, C as ZodNumber, D as ZodString, E as ZodRecord, O as ZodUnion, S as ZodNullable, T as ZodOptional, b as ZodEnum, j as $strip, k as ZodUnknown, w as ZodObject, x as ZodLiteral, y as ZodArray } from "./index-D_pO_Pr8.mjs";
|
|
2
2
|
import { n as StatelyCredential, t as StatelyAuthMode } from "./auth-B0ZTKri2.mjs";
|
|
3
3
|
|
|
4
4
|
//#region ../api-contract/dist/errors.d.mts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as object, d as union, f as unknown, l as record, n as array, o as literal, r as boolean, s as number, t as _enum, u as string } from "./
|
|
1
|
+
import { c as object, d as union, f as unknown, l as record, n as array, o as literal, r as boolean, s as number, t as _enum, u as string } from "./openapi-BTDjYWXd.mjs";
|
|
2
2
|
import { createAuthorizationHeader, getCredentialToken } from "./auth.mjs";
|
|
3
3
|
|
|
4
4
|
//#region ../api-contract/dist/errors.mjs
|
package/dist/studio.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
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, p as LegacyExtractMachinesOptions, 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-
|
|
1
|
+
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, p as LegacyExtractMachinesOptions, 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-CkrbMK00.mjs";
|
|
2
2
|
export { ConnectedRepo, CreateMachineFromDefinitionInput, CreateMachineFromTemplateInput, CreateMachineInput, CreateMachineTemplate, CreateProjectInput, DEFAULT_STATELY_BASE_URL, EnsureProjectInput, ExtractMachinesInput, ExtractMachinesResponse, ExtractedMachine, ExtractedMachines, GetMachineOptions, LegacyExtractMachinesOptions, LegacyProjectVisibility, LegacyUpdateMachineInput, Machine, MachineVersion, Project, ProjectData, ProjectMachine, ProjectMachineSummary, ProjectSummary, ProjectVisibility, RepoType, ResourceErrorCode, StudioApiError, StudioApiErrorOptions, StudioClient, StudioClientOptions, StudioMachineRecord, StudioRequestOptions, UpdateMachineInput, UpdateProjectInput, VerifyApiKeyResponse, VerifyResult, XStateVersion, createStatelyClient };
|
package/dist/studio.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./openapi-BTDjYWXd.mjs";
|
|
2
|
+
import { n as StudioApiError, r as createStatelyClient, t as DEFAULT_STATELY_BASE_URL } from "./studio-iNSHtNmP.mjs";
|
|
2
3
|
|
|
3
4
|
export { DEFAULT_STATELY_BASE_URL, StudioApiError, createStatelyClient };
|
package/dist/sync.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as DigraphConfig, i as StatelyGraph } from "./graph-
|
|
2
|
-
import { C as StudioMachineRecord, L as XStateVersion, g as ProjectData, o as CreateProjectInput, x as StudioClient } from "./studio-
|
|
1
|
+
import { b as DigraphConfig, i as StatelyGraph } from "./graph-1fwR0Ynl.mjs";
|
|
2
|
+
import { C as StudioMachineRecord, L as XStateVersion, g as ProjectData, o as CreateProjectInput, x as StudioClient } from "./studio-CkrbMK00.mjs";
|
|
3
3
|
import { GraphDiff } from "@statelyai/graph";
|
|
4
4
|
|
|
5
5
|
//#region src/sync.d.ts
|