foldkit 0.156.0 → 0.157.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 +3 -3
- package/dist/asyncData/asyncData.d.ts +7 -7
- package/dist/asyncData/asyncData.d.ts.map +1 -1
- package/dist/asyncData/asyncData.js +12 -12
- package/dist/calendar/calendarDate.d.ts +15 -15
- package/dist/calendar/calendarDate.d.ts.map +1 -1
- package/dist/calendar/calendarDate.js +14 -14
- package/dist/calendar/comparison.d.ts +2 -2
- package/dist/calendar/comparison.d.ts.map +1 -1
- package/dist/calendar/comparison.js +5 -5
- package/dist/calendar/info.d.ts +2 -2
- package/dist/calendar/info.d.ts.map +1 -1
- package/dist/calendar/info.js +2 -2
- package/dist/calendar/locale.d.ts +7 -7
- package/dist/calendar/locale.d.ts.map +1 -1
- package/dist/calendar/locale.js +23 -23
- package/dist/canvas/shape.d.ts +89 -89
- package/dist/canvas/shape.d.ts.map +1 -1
- package/dist/canvas/shape.js +65 -53
- package/dist/command/index.d.ts +3 -3
- package/dist/customElement/index.d.ts +2 -2
- package/dist/customElement/index.js +2 -2
- package/dist/devTools/protocol.d.ts +278 -278
- package/dist/devTools/protocol.d.ts.map +1 -1
- package/dist/devTools/protocol.js +98 -92
- package/dist/devTools/schemaSummarize.d.ts.map +1 -1
- package/dist/devTools/schemaSummarize.js +24 -24
- package/dist/devTools/serialize.d.ts +1 -1
- package/dist/devTools/serialize.d.ts.map +1 -1
- package/dist/devTools/serialize.js +10 -10
- package/dist/devTools/store.d.ts.map +1 -1
- package/dist/devTools/store.js +52 -28
- package/dist/devTools/submodelPath.d.ts.map +1 -1
- package/dist/devTools/submodelPath.js +3 -3
- package/dist/devTools/summarize.d.ts +6 -6
- package/dist/devTools/summarize.d.ts.map +1 -1
- package/dist/devTools/summarize.js +13 -13
- package/dist/devTools/webSocketBridge.d.ts +3 -3
- package/dist/devTools/webSocketBridge.d.ts.map +1 -1
- package/dist/devTools/webSocketBridge.js +8 -8
- package/dist/dom/dom.d.ts +2 -0
- package/dist/dom/dom.d.ts.map +1 -1
- package/dist/dom/dom.js +47 -13
- package/dist/experimental/machine/machine.d.ts +29 -6
- package/dist/experimental/machine/machine.d.ts.map +1 -1
- package/dist/experimental/machine/machine.js +9 -8
- package/dist/experimental/server/entry.js +2 -2
- package/dist/experimental/server/serialize.js +2 -2
- package/dist/experimental/server/server.js +4 -4
- package/dist/fieldValidation/fieldValidation.d.ts +12 -12
- package/dist/fieldValidation/fieldValidation.d.ts.map +1 -1
- package/dist/fieldValidation/fieldValidation.js +9 -9
- package/dist/fieldValidation/rule.d.ts +2 -2
- package/dist/fieldValidation/rule.d.ts.map +1 -1
- package/dist/fieldValidation/rule.js +6 -6
- package/dist/file/file.d.ts +3 -3
- package/dist/file/file.d.ts.map +1 -1
- package/dist/file/file.js +3 -3
- package/dist/html/boundary.d.ts +93 -36
- package/dist/html/boundary.d.ts.map +1 -1
- package/dist/html/boundary.js +242 -75
- package/dist/html/childAttribute.d.ts +6 -4
- package/dist/html/childAttribute.d.ts.map +1 -1
- package/dist/html/childAttribute.js +7 -1
- package/dist/html/index.d.ts +31 -16
- package/dist/html/index.d.ts.map +1 -1
- package/dist/html/index.js +97 -40
- package/dist/html/lazy.d.ts +6 -6
- package/dist/html/lazy.d.ts.map +1 -1
- package/dist/html/lazy.js +37 -15
- package/dist/html/public.d.ts +1 -1
- package/dist/html/public.d.ts.map +1 -1
- package/dist/html/runtimeSingleton.d.ts +27 -6
- package/dist/html/runtimeSingleton.d.ts.map +1 -1
- package/dist/html/runtimeSingleton.js +46 -29
- package/dist/html/submodel.d.ts.map +1 -1
- package/dist/html/submodel.js +28 -39
- package/dist/http/http.d.ts +1 -1
- package/dist/http/http.js +1 -1
- package/dist/managedResource/managedResource.d.ts +5 -5
- package/dist/managedResource/managedResource.js +3 -3
- package/dist/mount/index.d.ts +92 -39
- package/dist/mount/index.d.ts.map +1 -1
- package/dist/mount/index.js +28 -8
- package/dist/mount/public.d.ts +1 -1
- package/dist/mount/public.d.ts.map +1 -1
- package/dist/mount/public.js +1 -1
- package/dist/navigation/urlRequest.d.ts +9 -9
- package/dist/navigation/urlRequest.d.ts.map +1 -1
- package/dist/navigation/urlRequest.js +2 -2
- package/dist/onUnmountModule.d.ts +19 -0
- package/dist/onUnmountModule.d.ts.map +1 -0
- package/dist/onUnmountModule.js +80 -0
- package/dist/port/port.d.ts +5 -5
- package/dist/port/port.js +5 -5
- package/dist/route/parser.d.ts +2 -2
- package/dist/route/parser.js +2 -2
- package/dist/runtime/hmrProtocol.d.ts +10 -10
- package/dist/runtime/hmrProtocol.d.ts.map +1 -1
- package/dist/runtime/hmrProtocol.js +10 -10
- package/dist/runtime/runtime.d.ts +4 -4
- package/dist/runtime/runtime.d.ts.map +1 -1
- package/dist/runtime/runtime.js +168 -51
- package/dist/schema/index.d.ts +41 -29
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/schema/index.js +9 -9
- package/dist/snabbdom/init.d.ts +1 -1
- package/dist/snabbdom/init.d.ts.map +1 -1
- package/dist/snabbdom/init.js +5 -1
- package/dist/snabbdom/vnode.d.ts +1 -0
- package/dist/snabbdom/vnode.d.ts.map +1 -1
- package/dist/snabbdom/vnode.js +1 -0
- package/dist/subscription/animationFrame.d.ts +3 -3
- package/dist/subscription/animationFrame.d.ts.map +1 -1
- package/dist/subscription/animationFrame.js +2 -2
- package/dist/subscription/fromEvent.d.ts +2 -2
- package/dist/subscription/fromEvent.js +2 -2
- package/dist/subscription/subscription.d.ts +3 -3
- package/dist/subscription/subscription.js +1 -1
- package/dist/test/apps/bubbling.d.ts +6 -6
- package/dist/test/apps/bubbling.d.ts.map +1 -1
- package/dist/test/apps/bubbling.js +6 -6
- package/dist/test/apps/colorPicker.d.ts +7 -7
- package/dist/test/apps/colorPicker.d.ts.map +1 -1
- package/dist/test/apps/colorPicker.js +5 -5
- package/dist/test/apps/contextMenu.d.ts +5 -5
- package/dist/test/apps/contextMenu.d.ts.map +1 -1
- package/dist/test/apps/contextMenu.js +4 -4
- package/dist/test/apps/counter.d.ts +8 -8
- package/dist/test/apps/counter.d.ts.map +1 -1
- package/dist/test/apps/counter.js +8 -8
- package/dist/test/apps/crashOnRender.d.ts +18 -18
- package/dist/test/apps/crashOnRender.d.ts.map +1 -1
- package/dist/test/apps/crashOnRender.js +11 -11
- package/dist/test/apps/drafts.d.ts +9 -9
- package/dist/test/apps/drafts.d.ts.map +1 -1
- package/dist/test/apps/drafts.js +6 -6
- package/dist/test/apps/feedSocket.d.ts +6 -6
- package/dist/test/apps/feedSocket.d.ts.map +1 -1
- package/dist/test/apps/feedSocket.js +8 -8
- package/dist/test/apps/fileUpload.d.ts +2 -2
- package/dist/test/apps/fileUpload.d.ts.map +1 -1
- package/dist/test/apps/fileUpload.js +2 -2
- package/dist/test/apps/focusBoundary.d.ts +3 -3
- package/dist/test/apps/focusBoundary.d.ts.map +1 -1
- package/dist/test/apps/focusBoundary.js +3 -3
- package/dist/test/apps/formChild.d.ts +11 -11
- package/dist/test/apps/formChild.d.ts.map +1 -1
- package/dist/test/apps/formChild.js +13 -12
- package/dist/test/apps/interactions.d.ts +8 -8
- package/dist/test/apps/interactions.d.ts.map +1 -1
- package/dist/test/apps/interactions.js +8 -8
- package/dist/test/apps/keypress.d.ts +6 -6
- package/dist/test/apps/keypress.d.ts.map +1 -1
- package/dist/test/apps/keypress.js +6 -6
- package/dist/test/apps/login.d.ts +11 -11
- package/dist/test/apps/login.d.ts.map +1 -1
- package/dist/test/apps/login.js +15 -15
- package/dist/test/apps/logoutButton.d.ts +3 -3
- package/dist/test/apps/logoutButton.d.ts.map +1 -1
- package/dist/test/apps/logoutButton.js +2 -2
- package/dist/test/apps/mountPanel.d.ts +9 -9
- package/dist/test/apps/mountPanel.d.ts.map +1 -1
- package/dist/test/apps/mountPanel.js +9 -9
- package/dist/test/apps/multiRole.d.ts +3 -3
- package/dist/test/apps/multiRole.d.ts.map +1 -1
- package/dist/test/apps/multiRole.js +2 -2
- package/dist/test/apps/pointer.d.ts +7 -7
- package/dist/test/apps/pointer.d.ts.map +1 -1
- package/dist/test/apps/pointer.js +7 -7
- package/dist/test/apps/resumeUpload.d.ts +8 -8
- package/dist/test/apps/resumeUpload.d.ts.map +1 -1
- package/dist/test/apps/resumeUpload.js +7 -7
- package/dist/test/apps/scorePanel.d.ts +3 -3
- package/dist/test/apps/scorePanel.d.ts.map +1 -1
- package/dist/test/apps/scorePanel.js +2 -2
- package/dist/test/apps/selectiveKeys.d.ts +3 -3
- package/dist/test/apps/selectiveKeys.d.ts.map +1 -1
- package/dist/test/apps/selectiveKeys.js +3 -3
- package/dist/test/apps/uploads.d.ts +18 -18
- package/dist/test/apps/uploads.d.ts.map +1 -1
- package/dist/test/apps/uploads.js +13 -13
- package/dist/test/matchers.d.ts.map +1 -1
- package/dist/test/matchers.js +4 -4
- package/dist/test/query.d.ts.map +1 -1
- package/dist/test/query.js +28 -28
- package/dist/test/scene.d.ts +37 -8
- package/dist/test/scene.d.ts.map +1 -1
- package/dist/test/scene.js +58 -15
- package/dist/test/story.d.ts +35 -8
- package/dist/test/story.d.ts.map +1 -1
- package/dist/test/story.js +44 -22
- package/dist/update/update.d.ts +17 -20
- package/dist/update/update.d.ts.map +1 -1
- package/dist/url/index.d.ts +8 -8
- package/dist/url/index.d.ts.map +1 -1
- package/dist/url/index.js +19 -19
- package/dist/vdom.d.ts +3 -2
- package/dist/vdom.d.ts.map +1 -1
- package/dist/vdom.js +16 -6
- package/package.json +1 -1
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { Schema
|
|
1
|
+
import { Schema } from 'effect';
|
|
2
2
|
/** A serialized Command produced during a Message dispatch (or `init`). `args` is `Some` when the Command's definition declared an args record, and carries the runtime values used to construct the Command instance. */
|
|
3
|
-
export declare const SerializedCommand:
|
|
4
|
-
readonly name:
|
|
5
|
-
readonly args:
|
|
3
|
+
export declare const SerializedCommand: Schema.Struct<{
|
|
4
|
+
readonly name: Schema.String;
|
|
5
|
+
readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
6
6
|
}>;
|
|
7
7
|
/** A serialized Command suitable for transmission over the WS protocol. */
|
|
8
8
|
export type SerializedCommand = typeof SerializedCommand.Type;
|
|
9
9
|
/** A serialized Mount lifecycle event (start or end). `args` is `Some` when the Mount's definition declared an args record, and carries the runtime values used to construct the MountAction instance. */
|
|
10
|
-
export declare const SerializedMount:
|
|
11
|
-
readonly name:
|
|
12
|
-
readonly args:
|
|
10
|
+
export declare const SerializedMount: Schema.Struct<{
|
|
11
|
+
readonly name: Schema.String;
|
|
12
|
+
readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
13
13
|
}>;
|
|
14
14
|
/** A serialized Mount lifecycle event suitable for transmission over the WS protocol. */
|
|
15
15
|
export type SerializedMount = typeof SerializedMount.Type;
|
|
16
16
|
/** A serialized history entry as it appears on the wire. `submodelPath` lists `Got<Child>Message` wrapper tags from outer to inner when the entry came up through a Submodel chain; `maybeLeafTag` is `Some` with the innermost child Message tag when one exists. `mountStarts` lists Mounts that fired during the render after this Message; `mountEnds` lists Mounts whose elements were unmounted during that render. The Messages dispatched by mount Effects appear as their own entries elsewhere in history. */
|
|
17
|
-
export declare const SerializedEntry:
|
|
18
|
-
readonly index:
|
|
19
|
-
readonly tag:
|
|
20
|
-
readonly message:
|
|
21
|
-
readonly commands:
|
|
22
|
-
readonly name:
|
|
23
|
-
readonly args:
|
|
17
|
+
export declare const SerializedEntry: Schema.Struct<{
|
|
18
|
+
readonly index: Schema.Number;
|
|
19
|
+
readonly tag: Schema.String;
|
|
20
|
+
readonly message: Schema.Unknown;
|
|
21
|
+
readonly commands: Schema.$Array<Schema.Struct<{
|
|
22
|
+
readonly name: Schema.String;
|
|
23
|
+
readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
24
24
|
}>>;
|
|
25
|
-
readonly mountStarts:
|
|
26
|
-
readonly name:
|
|
27
|
-
readonly args:
|
|
25
|
+
readonly mountStarts: Schema.$Array<Schema.Struct<{
|
|
26
|
+
readonly name: Schema.String;
|
|
27
|
+
readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
28
28
|
}>>;
|
|
29
|
-
readonly mountEnds:
|
|
30
|
-
readonly name:
|
|
31
|
-
readonly args:
|
|
29
|
+
readonly mountEnds: Schema.$Array<Schema.Struct<{
|
|
30
|
+
readonly name: Schema.String;
|
|
31
|
+
readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
32
32
|
}>>;
|
|
33
|
-
readonly timestamp:
|
|
34
|
-
readonly isModelChanged:
|
|
35
|
-
readonly changedPaths:
|
|
36
|
-
readonly affectedPaths:
|
|
37
|
-
readonly submodelPath:
|
|
38
|
-
readonly maybeLeafTag:
|
|
33
|
+
readonly timestamp: Schema.Number;
|
|
34
|
+
readonly isModelChanged: Schema.Boolean;
|
|
35
|
+
readonly changedPaths: Schema.$Array<Schema.String>;
|
|
36
|
+
readonly affectedPaths: Schema.$Array<Schema.String>;
|
|
37
|
+
readonly submodelPath: Schema.$Array<Schema.String>;
|
|
38
|
+
readonly maybeLeafTag: Schema.OptionFromNullOr<Schema.String>;
|
|
39
39
|
}>;
|
|
40
40
|
/** A serialized history entry suitable for transmission over the WS protocol. */
|
|
41
41
|
export type SerializedEntry = typeof SerializedEntry.Type;
|
|
42
42
|
/** Metadata about a single keyframe. The index identifies the point in history where the runtime can replay back to. */
|
|
43
|
-
export declare const KeyframeInfo:
|
|
44
|
-
readonly index:
|
|
43
|
+
export declare const KeyframeInfo: Schema.Struct<{
|
|
44
|
+
readonly index: Schema.Number;
|
|
45
45
|
}>;
|
|
46
46
|
/** Metadata about a single keyframe. */
|
|
47
47
|
export type KeyframeInfo = typeof KeyframeInfo.Type;
|
|
48
48
|
/** Metadata about a connected browser runtime. */
|
|
49
|
-
export declare const RuntimeInfo:
|
|
50
|
-
readonly connectionId:
|
|
51
|
-
readonly url:
|
|
52
|
-
readonly title:
|
|
49
|
+
export declare const RuntimeInfo: Schema.Struct<{
|
|
50
|
+
readonly connectionId: Schema.String;
|
|
51
|
+
readonly url: Schema.String;
|
|
52
|
+
readonly title: Schema.String;
|
|
53
53
|
}>;
|
|
54
54
|
/** Metadata about a connected browser runtime. */
|
|
55
55
|
export type RuntimeInfo = typeof RuntimeInfo.Type;
|
|
@@ -60,56 +60,56 @@ export declare const MAX_DISPATCH_BATCH_SIZE = 100;
|
|
|
60
60
|
* runtime. */
|
|
61
61
|
export declare const Request: import("../schema/index.js").TaggedUnion<{
|
|
62
62
|
readonly RequestGetModel: {
|
|
63
|
-
maybePath:
|
|
64
|
-
expand:
|
|
63
|
+
maybePath: Schema.OptionFromNullOr<Schema.String>;
|
|
64
|
+
expand: Schema.Boolean;
|
|
65
65
|
};
|
|
66
66
|
readonly RequestGetModelAt: {
|
|
67
|
-
index:
|
|
68
|
-
maybePath:
|
|
69
|
-
expand:
|
|
67
|
+
index: Schema.Number;
|
|
68
|
+
maybePath: Schema.OptionFromNullOr<Schema.String>;
|
|
69
|
+
expand: Schema.Boolean;
|
|
70
70
|
};
|
|
71
71
|
readonly RequestListMessages: {
|
|
72
|
-
limit:
|
|
73
|
-
maybeSinceIndex:
|
|
74
|
-
maybeChangedPathsMatch:
|
|
75
|
-
fromEnd:
|
|
72
|
+
limit: Schema.Number;
|
|
73
|
+
maybeSinceIndex: Schema.OptionFromNullOr<Schema.Number>;
|
|
74
|
+
maybeChangedPathsMatch: Schema.withDecodingDefault<Schema.OptionFromNullOr<Schema.$Array<Schema.String>>, never>;
|
|
75
|
+
fromEnd: Schema.withDecodingDefault<Schema.Boolean, never>;
|
|
76
76
|
};
|
|
77
77
|
readonly RequestCountMessagesByTag: {
|
|
78
|
-
maybeSinceIndex:
|
|
79
|
-
maybeChangedPathsMatch:
|
|
78
|
+
maybeSinceIndex: Schema.OptionFromNullOr<Schema.Number>;
|
|
79
|
+
maybeChangedPathsMatch: Schema.OptionFromNullOr<Schema.$Array<Schema.String>>;
|
|
80
80
|
};
|
|
81
81
|
readonly RequestDiffModels: {
|
|
82
|
-
fromIndex:
|
|
83
|
-
toIndex:
|
|
84
|
-
maybeChangedPathsMatch:
|
|
82
|
+
fromIndex: Schema.Number;
|
|
83
|
+
toIndex: Schema.Number;
|
|
84
|
+
maybeChangedPathsMatch: Schema.OptionFromNullOr<Schema.$Array<Schema.String>>;
|
|
85
85
|
};
|
|
86
86
|
readonly RequestGetMessage: {
|
|
87
|
-
index:
|
|
87
|
+
index: Schema.Number;
|
|
88
88
|
};
|
|
89
89
|
readonly RequestListKeyframes: {};
|
|
90
90
|
readonly RequestReplayToKeyframe: {
|
|
91
|
-
keyframeIndex:
|
|
91
|
+
keyframeIndex: Schema.Number;
|
|
92
92
|
};
|
|
93
93
|
readonly RequestResume: {};
|
|
94
94
|
readonly RequestDispatchMessage: {
|
|
95
|
-
message:
|
|
95
|
+
message: Schema.Unknown;
|
|
96
96
|
};
|
|
97
97
|
readonly RequestDispatchMessages: {
|
|
98
|
-
messages:
|
|
98
|
+
messages: Schema.$Array<Schema.Unknown>;
|
|
99
99
|
};
|
|
100
100
|
readonly RequestListRuntimes: {};
|
|
101
101
|
readonly RequestGetInit: {};
|
|
102
102
|
readonly RequestGetRuntimeState: {};
|
|
103
103
|
readonly RequestGetMessageSchema: {
|
|
104
|
-
maybeVariantTag:
|
|
104
|
+
maybeVariantTag: Schema.OptionFromNullOr<Schema.String>;
|
|
105
105
|
};
|
|
106
106
|
}>;
|
|
107
107
|
/** A request from the MCP server. */
|
|
108
108
|
export type Request = typeof Request.Type;
|
|
109
109
|
/** One row of a Message-tag histogram. */
|
|
110
|
-
export declare const MessageTagCount:
|
|
111
|
-
readonly tag:
|
|
112
|
-
readonly count:
|
|
110
|
+
export declare const MessageTagCount: Schema.Struct<{
|
|
111
|
+
readonly tag: Schema.String;
|
|
112
|
+
readonly count: Schema.Number;
|
|
113
113
|
}>;
|
|
114
114
|
/** One row of a Message-tag histogram. */
|
|
115
115
|
export type MessageTagCount = typeof MessageTagCount.Type;
|
|
@@ -119,43 +119,43 @@ export type MessageTagCount = typeof MessageTagCount.Type;
|
|
|
119
119
|
export declare const DiffValue: import("../schema/index.js").TaggedUnion<{
|
|
120
120
|
readonly Absent: {};
|
|
121
121
|
readonly Present: {
|
|
122
|
-
value:
|
|
122
|
+
value: Schema.Unknown;
|
|
123
123
|
};
|
|
124
124
|
}>;
|
|
125
125
|
/** The value on one side of a Model diff path. */
|
|
126
126
|
export type DiffValue = typeof DiffValue.Type;
|
|
127
127
|
/** One changed path in a Model diff. `before` is the value at `fromIndex`, `after` the value at `toIndex`. */
|
|
128
|
-
export declare const ModelDiffChange:
|
|
129
|
-
readonly path:
|
|
128
|
+
export declare const ModelDiffChange: Schema.Struct<{
|
|
129
|
+
readonly path: Schema.String;
|
|
130
130
|
readonly before: import("../schema/index.js").TaggedUnion<{
|
|
131
131
|
readonly Absent: {};
|
|
132
132
|
readonly Present: {
|
|
133
|
-
value:
|
|
133
|
+
value: Schema.Unknown;
|
|
134
134
|
};
|
|
135
135
|
}>;
|
|
136
136
|
readonly after: import("../schema/index.js").TaggedUnion<{
|
|
137
137
|
readonly Absent: {};
|
|
138
138
|
readonly Present: {
|
|
139
|
-
value:
|
|
139
|
+
value: Schema.Unknown;
|
|
140
140
|
};
|
|
141
141
|
}>;
|
|
142
142
|
}>;
|
|
143
143
|
/** One changed path in a Model diff. */
|
|
144
144
|
export type ModelDiffChange = typeof ModelDiffChange.Type;
|
|
145
145
|
/** One variant entry in a `MessageSchemaIndex`. `payloadFields` lists the variant's payload property names (excluding `_tag`); `unionFields` lists the subset of those properties whose schemas are themselves `_tag`-discriminated unions. A Submodel-wrapper variant always shows up with `unionFields: ['message']`, but the same flag also catches plain tagged-union value types like `UrlRequest = Internal | External`. Either way, the agent will need to pick a variant when filling these fields. */
|
|
146
|
-
export declare const MessageSchemaIndexEntry:
|
|
147
|
-
readonly tag:
|
|
148
|
-
readonly payloadFields:
|
|
149
|
-
readonly unionFields:
|
|
146
|
+
export declare const MessageSchemaIndexEntry: Schema.Struct<{
|
|
147
|
+
readonly tag: Schema.String;
|
|
148
|
+
readonly payloadFields: Schema.$Array<Schema.String>;
|
|
149
|
+
readonly unionFields: Schema.$Array<Schema.String>;
|
|
150
150
|
}>;
|
|
151
151
|
/** One variant entry in a `MessageSchemaIndex`. */
|
|
152
152
|
export type MessageSchemaIndexEntry = typeof MessageSchemaIndexEntry.Type;
|
|
153
153
|
/** A flat directory of every top-level Message variant the runtime accepts, designed to fit in an agent context regardless of Message-union size. Use the tag names to make a follow-up `RequestGetMessageSchema` with `maybeVariantTag` set to fetch the full JSON Schema for one variant. */
|
|
154
|
-
export declare const MessageSchemaIndex:
|
|
155
|
-
readonly variants:
|
|
156
|
-
readonly tag:
|
|
157
|
-
readonly payloadFields:
|
|
158
|
-
readonly unionFields:
|
|
154
|
+
export declare const MessageSchemaIndex: Schema.Struct<{
|
|
155
|
+
readonly variants: Schema.$Array<Schema.Struct<{
|
|
156
|
+
readonly tag: Schema.String;
|
|
157
|
+
readonly payloadFields: Schema.$Array<Schema.String>;
|
|
158
|
+
readonly unionFields: Schema.$Array<Schema.String>;
|
|
159
159
|
}>>;
|
|
160
160
|
}>;
|
|
161
161
|
/** A flat directory of every top-level Message variant. */
|
|
@@ -164,16 +164,16 @@ export type MessageSchemaIndex = typeof MessageSchemaIndex.Type;
|
|
|
164
164
|
* index of Message variants or the JSON Schema document for one variant. */
|
|
165
165
|
export declare const MessageSchemaResult: import("../schema/index.js").TaggedUnion<{
|
|
166
166
|
readonly MessageSchemaIndexResult: {
|
|
167
|
-
index:
|
|
168
|
-
readonly variants:
|
|
169
|
-
readonly tag:
|
|
170
|
-
readonly payloadFields:
|
|
171
|
-
readonly unionFields:
|
|
167
|
+
index: Schema.Struct<{
|
|
168
|
+
readonly variants: Schema.$Array<Schema.Struct<{
|
|
169
|
+
readonly tag: Schema.String;
|
|
170
|
+
readonly payloadFields: Schema.$Array<Schema.String>;
|
|
171
|
+
readonly unionFields: Schema.$Array<Schema.String>;
|
|
172
172
|
}>>;
|
|
173
173
|
}>;
|
|
174
174
|
};
|
|
175
175
|
readonly MessageSchemaDocumentResult: {
|
|
176
|
-
document:
|
|
176
|
+
document: Schema.Unknown;
|
|
177
177
|
};
|
|
178
178
|
}>;
|
|
179
179
|
/** The result of requesting the app's Message Schema. */
|
|
@@ -181,148 +181,148 @@ export type MessageSchemaResult = typeof MessageSchemaResult.Type;
|
|
|
181
181
|
/** A response replying to a Request. */
|
|
182
182
|
export declare const Response: import("../schema/index.js").TaggedUnion<{
|
|
183
183
|
readonly ResponseModel: {
|
|
184
|
-
value:
|
|
185
|
-
atPath:
|
|
186
|
-
summarized:
|
|
184
|
+
value: Schema.Unknown;
|
|
185
|
+
atPath: Schema.String;
|
|
186
|
+
summarized: Schema.Boolean;
|
|
187
187
|
};
|
|
188
188
|
readonly ResponseMessages: {
|
|
189
|
-
entries:
|
|
190
|
-
readonly index:
|
|
191
|
-
readonly tag:
|
|
192
|
-
readonly message:
|
|
193
|
-
readonly commands:
|
|
194
|
-
readonly name:
|
|
195
|
-
readonly args:
|
|
189
|
+
entries: Schema.$Array<Schema.Struct<{
|
|
190
|
+
readonly index: Schema.Number;
|
|
191
|
+
readonly tag: Schema.String;
|
|
192
|
+
readonly message: Schema.Unknown;
|
|
193
|
+
readonly commands: Schema.$Array<Schema.Struct<{
|
|
194
|
+
readonly name: Schema.String;
|
|
195
|
+
readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
196
196
|
}>>;
|
|
197
|
-
readonly mountStarts:
|
|
198
|
-
readonly name:
|
|
199
|
-
readonly args:
|
|
197
|
+
readonly mountStarts: Schema.$Array<Schema.Struct<{
|
|
198
|
+
readonly name: Schema.String;
|
|
199
|
+
readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
200
200
|
}>>;
|
|
201
|
-
readonly mountEnds:
|
|
202
|
-
readonly name:
|
|
203
|
-
readonly args:
|
|
201
|
+
readonly mountEnds: Schema.$Array<Schema.Struct<{
|
|
202
|
+
readonly name: Schema.String;
|
|
203
|
+
readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
204
204
|
}>>;
|
|
205
|
-
readonly timestamp:
|
|
206
|
-
readonly isModelChanged:
|
|
207
|
-
readonly changedPaths:
|
|
208
|
-
readonly affectedPaths:
|
|
209
|
-
readonly submodelPath:
|
|
210
|
-
readonly maybeLeafTag:
|
|
205
|
+
readonly timestamp: Schema.Number;
|
|
206
|
+
readonly isModelChanged: Schema.Boolean;
|
|
207
|
+
readonly changedPaths: Schema.$Array<Schema.String>;
|
|
208
|
+
readonly affectedPaths: Schema.$Array<Schema.String>;
|
|
209
|
+
readonly submodelPath: Schema.$Array<Schema.String>;
|
|
210
|
+
readonly maybeLeafTag: Schema.OptionFromNullOr<Schema.String>;
|
|
211
211
|
}>>;
|
|
212
|
-
maybeNextIndex:
|
|
212
|
+
maybeNextIndex: Schema.OptionFromNullOr<Schema.Number>;
|
|
213
213
|
};
|
|
214
214
|
readonly ResponseMessage: {
|
|
215
|
-
entry:
|
|
216
|
-
readonly index:
|
|
217
|
-
readonly tag:
|
|
218
|
-
readonly message:
|
|
219
|
-
readonly commands:
|
|
220
|
-
readonly name:
|
|
221
|
-
readonly args:
|
|
215
|
+
entry: Schema.Struct<{
|
|
216
|
+
readonly index: Schema.Number;
|
|
217
|
+
readonly tag: Schema.String;
|
|
218
|
+
readonly message: Schema.Unknown;
|
|
219
|
+
readonly commands: Schema.$Array<Schema.Struct<{
|
|
220
|
+
readonly name: Schema.String;
|
|
221
|
+
readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
222
222
|
}>>;
|
|
223
|
-
readonly mountStarts:
|
|
224
|
-
readonly name:
|
|
225
|
-
readonly args:
|
|
223
|
+
readonly mountStarts: Schema.$Array<Schema.Struct<{
|
|
224
|
+
readonly name: Schema.String;
|
|
225
|
+
readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
226
226
|
}>>;
|
|
227
|
-
readonly mountEnds:
|
|
228
|
-
readonly name:
|
|
229
|
-
readonly args:
|
|
227
|
+
readonly mountEnds: Schema.$Array<Schema.Struct<{
|
|
228
|
+
readonly name: Schema.String;
|
|
229
|
+
readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
230
230
|
}>>;
|
|
231
|
-
readonly timestamp:
|
|
232
|
-
readonly isModelChanged:
|
|
233
|
-
readonly changedPaths:
|
|
234
|
-
readonly affectedPaths:
|
|
235
|
-
readonly submodelPath:
|
|
236
|
-
readonly maybeLeafTag:
|
|
231
|
+
readonly timestamp: Schema.Number;
|
|
232
|
+
readonly isModelChanged: Schema.Boolean;
|
|
233
|
+
readonly changedPaths: Schema.$Array<Schema.String>;
|
|
234
|
+
readonly affectedPaths: Schema.$Array<Schema.String>;
|
|
235
|
+
readonly submodelPath: Schema.$Array<Schema.String>;
|
|
236
|
+
readonly maybeLeafTag: Schema.OptionFromNullOr<Schema.String>;
|
|
237
237
|
}>;
|
|
238
238
|
};
|
|
239
239
|
readonly ResponseMessageCounts: {
|
|
240
|
-
counts:
|
|
241
|
-
readonly tag:
|
|
242
|
-
readonly count:
|
|
240
|
+
counts: Schema.$Array<Schema.Struct<{
|
|
241
|
+
readonly tag: Schema.String;
|
|
242
|
+
readonly count: Schema.Number;
|
|
243
243
|
}>>;
|
|
244
|
-
totalCount:
|
|
245
|
-
scannedFromIndex:
|
|
246
|
-
scannedToIndex:
|
|
244
|
+
totalCount: Schema.Number;
|
|
245
|
+
scannedFromIndex: Schema.Number;
|
|
246
|
+
scannedToIndex: Schema.Number;
|
|
247
247
|
};
|
|
248
248
|
readonly ResponseModelDiff: {
|
|
249
|
-
fromIndex:
|
|
250
|
-
toIndex:
|
|
251
|
-
changes:
|
|
252
|
-
readonly path:
|
|
249
|
+
fromIndex: Schema.Number;
|
|
250
|
+
toIndex: Schema.Number;
|
|
251
|
+
changes: Schema.$Array<Schema.Struct<{
|
|
252
|
+
readonly path: Schema.String;
|
|
253
253
|
readonly before: import("../schema/index.js").TaggedUnion<{
|
|
254
254
|
readonly Absent: {};
|
|
255
255
|
readonly Present: {
|
|
256
|
-
value:
|
|
256
|
+
value: Schema.Unknown;
|
|
257
257
|
};
|
|
258
258
|
}>;
|
|
259
259
|
readonly after: import("../schema/index.js").TaggedUnion<{
|
|
260
260
|
readonly Absent: {};
|
|
261
261
|
readonly Present: {
|
|
262
|
-
value:
|
|
262
|
+
value: Schema.Unknown;
|
|
263
263
|
};
|
|
264
264
|
}>;
|
|
265
265
|
}>>;
|
|
266
266
|
};
|
|
267
267
|
readonly ResponseKeyframes: {
|
|
268
|
-
keyframes:
|
|
269
|
-
readonly index:
|
|
268
|
+
keyframes: Schema.$Array<Schema.Struct<{
|
|
269
|
+
readonly index: Schema.Number;
|
|
270
270
|
}>>;
|
|
271
271
|
};
|
|
272
272
|
readonly ResponseReplayed: {
|
|
273
|
-
model:
|
|
273
|
+
model: Schema.Unknown;
|
|
274
274
|
};
|
|
275
275
|
readonly ResponseResumed: {};
|
|
276
276
|
readonly ResponseDispatched: {
|
|
277
|
-
acceptedAtIndex:
|
|
277
|
+
acceptedAtIndex: Schema.Number;
|
|
278
278
|
};
|
|
279
279
|
readonly ResponseDispatchedBatch: {
|
|
280
|
-
acceptedAtIndices:
|
|
280
|
+
acceptedAtIndices: Schema.$Array<Schema.Number>;
|
|
281
281
|
};
|
|
282
282
|
readonly ResponseRuntimes: {
|
|
283
|
-
runtimes:
|
|
284
|
-
readonly connectionId:
|
|
285
|
-
readonly url:
|
|
286
|
-
readonly title:
|
|
283
|
+
runtimes: Schema.$Array<Schema.Struct<{
|
|
284
|
+
readonly connectionId: Schema.String;
|
|
285
|
+
readonly url: Schema.String;
|
|
286
|
+
readonly title: Schema.String;
|
|
287
287
|
}>>;
|
|
288
288
|
};
|
|
289
289
|
readonly ResponseInit: {
|
|
290
|
-
maybeModel:
|
|
291
|
-
commands:
|
|
292
|
-
readonly name:
|
|
293
|
-
readonly args:
|
|
290
|
+
maybeModel: Schema.OptionFromNullOr<Schema.Unknown>;
|
|
291
|
+
commands: Schema.$Array<Schema.Struct<{
|
|
292
|
+
readonly name: Schema.String;
|
|
293
|
+
readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
294
294
|
}>>;
|
|
295
|
-
mountStarts:
|
|
296
|
-
readonly name:
|
|
297
|
-
readonly args:
|
|
295
|
+
mountStarts: Schema.$Array<Schema.Struct<{
|
|
296
|
+
readonly name: Schema.String;
|
|
297
|
+
readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
298
298
|
}>>;
|
|
299
299
|
};
|
|
300
300
|
readonly ResponseRuntimeState: {
|
|
301
|
-
currentIndex:
|
|
302
|
-
startIndex:
|
|
303
|
-
totalEntries:
|
|
304
|
-
isPaused:
|
|
305
|
-
maybePausedAtIndex:
|
|
306
|
-
hasInitModel:
|
|
301
|
+
currentIndex: Schema.Number;
|
|
302
|
+
startIndex: Schema.Number;
|
|
303
|
+
totalEntries: Schema.Number;
|
|
304
|
+
isPaused: Schema.Boolean;
|
|
305
|
+
maybePausedAtIndex: Schema.OptionFromNullOr<Schema.Number>;
|
|
306
|
+
hasInitModel: Schema.Boolean;
|
|
307
307
|
};
|
|
308
308
|
readonly ResponseMessageSchema: {
|
|
309
|
-
maybeResult:
|
|
309
|
+
maybeResult: Schema.OptionFromNullOr<import("../schema/index.js").TaggedUnion<{
|
|
310
310
|
readonly MessageSchemaIndexResult: {
|
|
311
|
-
index:
|
|
312
|
-
readonly variants:
|
|
313
|
-
readonly tag:
|
|
314
|
-
readonly payloadFields:
|
|
315
|
-
readonly unionFields:
|
|
311
|
+
index: Schema.Struct<{
|
|
312
|
+
readonly variants: Schema.$Array<Schema.Struct<{
|
|
313
|
+
readonly tag: Schema.String;
|
|
314
|
+
readonly payloadFields: Schema.$Array<Schema.String>;
|
|
315
|
+
readonly unionFields: Schema.$Array<Schema.String>;
|
|
316
316
|
}>>;
|
|
317
317
|
}>;
|
|
318
318
|
};
|
|
319
319
|
readonly MessageSchemaDocumentResult: {
|
|
320
|
-
document:
|
|
320
|
+
document: Schema.Unknown;
|
|
321
321
|
};
|
|
322
322
|
}>>;
|
|
323
323
|
};
|
|
324
324
|
readonly ResponseError: {
|
|
325
|
-
reason:
|
|
325
|
+
reason: Schema.String;
|
|
326
326
|
};
|
|
327
327
|
}>;
|
|
328
328
|
/** A response replying to a Request. */
|
|
@@ -330,236 +330,236 @@ export type Response = typeof Response.Type;
|
|
|
330
330
|
/** A runtime lifecycle event used by the Vite plugin to track which browser tabs are connected. Not forwarded to MCP clients. */
|
|
331
331
|
export declare const Event: import("../schema/index.js").TaggedUnion<{
|
|
332
332
|
readonly EventConnected: {
|
|
333
|
-
runtime:
|
|
334
|
-
readonly connectionId:
|
|
335
|
-
readonly url:
|
|
336
|
-
readonly title:
|
|
333
|
+
runtime: Schema.Struct<{
|
|
334
|
+
readonly connectionId: Schema.String;
|
|
335
|
+
readonly url: Schema.String;
|
|
336
|
+
readonly title: Schema.String;
|
|
337
337
|
}>;
|
|
338
338
|
};
|
|
339
339
|
readonly EventDisconnected: {
|
|
340
|
-
connectionId:
|
|
340
|
+
connectionId: Schema.String;
|
|
341
341
|
};
|
|
342
342
|
}>;
|
|
343
343
|
/** A runtime lifecycle event. */
|
|
344
344
|
export type Event = typeof Event.Type;
|
|
345
345
|
/** A wire frame carrying a Request from the MCP server. The id is opaque, used only by the MCP server to correlate the matching Response. The maybeConnectionId routes the request to a specific runtime when present. */
|
|
346
|
-
export declare const RequestFrame:
|
|
347
|
-
readonly id:
|
|
348
|
-
readonly maybeConnectionId:
|
|
346
|
+
export declare const RequestFrame: Schema.Struct<{
|
|
347
|
+
readonly id: Schema.String;
|
|
348
|
+
readonly maybeConnectionId: Schema.OptionFromNullOr<Schema.String>;
|
|
349
349
|
readonly request: import("../schema/index.js").TaggedUnion<{
|
|
350
350
|
readonly RequestGetModel: {
|
|
351
|
-
maybePath:
|
|
352
|
-
expand:
|
|
351
|
+
maybePath: Schema.OptionFromNullOr<Schema.String>;
|
|
352
|
+
expand: Schema.Boolean;
|
|
353
353
|
};
|
|
354
354
|
readonly RequestGetModelAt: {
|
|
355
|
-
index:
|
|
356
|
-
maybePath:
|
|
357
|
-
expand:
|
|
355
|
+
index: Schema.Number;
|
|
356
|
+
maybePath: Schema.OptionFromNullOr<Schema.String>;
|
|
357
|
+
expand: Schema.Boolean;
|
|
358
358
|
};
|
|
359
359
|
readonly RequestListMessages: {
|
|
360
|
-
limit:
|
|
361
|
-
maybeSinceIndex:
|
|
362
|
-
maybeChangedPathsMatch:
|
|
363
|
-
fromEnd:
|
|
360
|
+
limit: Schema.Number;
|
|
361
|
+
maybeSinceIndex: Schema.OptionFromNullOr<Schema.Number>;
|
|
362
|
+
maybeChangedPathsMatch: Schema.withDecodingDefault<Schema.OptionFromNullOr<Schema.$Array<Schema.String>>, never>;
|
|
363
|
+
fromEnd: Schema.withDecodingDefault<Schema.Boolean, never>;
|
|
364
364
|
};
|
|
365
365
|
readonly RequestCountMessagesByTag: {
|
|
366
|
-
maybeSinceIndex:
|
|
367
|
-
maybeChangedPathsMatch:
|
|
366
|
+
maybeSinceIndex: Schema.OptionFromNullOr<Schema.Number>;
|
|
367
|
+
maybeChangedPathsMatch: Schema.OptionFromNullOr<Schema.$Array<Schema.String>>;
|
|
368
368
|
};
|
|
369
369
|
readonly RequestDiffModels: {
|
|
370
|
-
fromIndex:
|
|
371
|
-
toIndex:
|
|
372
|
-
maybeChangedPathsMatch:
|
|
370
|
+
fromIndex: Schema.Number;
|
|
371
|
+
toIndex: Schema.Number;
|
|
372
|
+
maybeChangedPathsMatch: Schema.OptionFromNullOr<Schema.$Array<Schema.String>>;
|
|
373
373
|
};
|
|
374
374
|
readonly RequestGetMessage: {
|
|
375
|
-
index:
|
|
375
|
+
index: Schema.Number;
|
|
376
376
|
};
|
|
377
377
|
readonly RequestListKeyframes: {};
|
|
378
378
|
readonly RequestReplayToKeyframe: {
|
|
379
|
-
keyframeIndex:
|
|
379
|
+
keyframeIndex: Schema.Number;
|
|
380
380
|
};
|
|
381
381
|
readonly RequestResume: {};
|
|
382
382
|
readonly RequestDispatchMessage: {
|
|
383
|
-
message:
|
|
383
|
+
message: Schema.Unknown;
|
|
384
384
|
};
|
|
385
385
|
readonly RequestDispatchMessages: {
|
|
386
|
-
messages:
|
|
386
|
+
messages: Schema.$Array<Schema.Unknown>;
|
|
387
387
|
};
|
|
388
388
|
readonly RequestListRuntimes: {};
|
|
389
389
|
readonly RequestGetInit: {};
|
|
390
390
|
readonly RequestGetRuntimeState: {};
|
|
391
391
|
readonly RequestGetMessageSchema: {
|
|
392
|
-
maybeVariantTag:
|
|
392
|
+
maybeVariantTag: Schema.OptionFromNullOr<Schema.String>;
|
|
393
393
|
};
|
|
394
394
|
}>;
|
|
395
395
|
}>;
|
|
396
396
|
/** A wire frame carrying a Request from the MCP server. */
|
|
397
397
|
export type RequestFrame = typeof RequestFrame.Type;
|
|
398
398
|
/** A wire frame carrying a Response, correlated to a Request by id. */
|
|
399
|
-
export declare const ResponseFrame:
|
|
400
|
-
readonly id:
|
|
399
|
+
export declare const ResponseFrame: Schema.Struct<{
|
|
400
|
+
readonly id: Schema.String;
|
|
401
401
|
readonly response: import("../schema/index.js").TaggedUnion<{
|
|
402
402
|
readonly ResponseModel: {
|
|
403
|
-
value:
|
|
404
|
-
atPath:
|
|
405
|
-
summarized:
|
|
403
|
+
value: Schema.Unknown;
|
|
404
|
+
atPath: Schema.String;
|
|
405
|
+
summarized: Schema.Boolean;
|
|
406
406
|
};
|
|
407
407
|
readonly ResponseMessages: {
|
|
408
|
-
entries:
|
|
409
|
-
readonly index:
|
|
410
|
-
readonly tag:
|
|
411
|
-
readonly message:
|
|
412
|
-
readonly commands:
|
|
413
|
-
readonly name:
|
|
414
|
-
readonly args:
|
|
408
|
+
entries: Schema.$Array<Schema.Struct<{
|
|
409
|
+
readonly index: Schema.Number;
|
|
410
|
+
readonly tag: Schema.String;
|
|
411
|
+
readonly message: Schema.Unknown;
|
|
412
|
+
readonly commands: Schema.$Array<Schema.Struct<{
|
|
413
|
+
readonly name: Schema.String;
|
|
414
|
+
readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
415
415
|
}>>;
|
|
416
|
-
readonly mountStarts:
|
|
417
|
-
readonly name:
|
|
418
|
-
readonly args:
|
|
416
|
+
readonly mountStarts: Schema.$Array<Schema.Struct<{
|
|
417
|
+
readonly name: Schema.String;
|
|
418
|
+
readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
419
419
|
}>>;
|
|
420
|
-
readonly mountEnds:
|
|
421
|
-
readonly name:
|
|
422
|
-
readonly args:
|
|
420
|
+
readonly mountEnds: Schema.$Array<Schema.Struct<{
|
|
421
|
+
readonly name: Schema.String;
|
|
422
|
+
readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
423
423
|
}>>;
|
|
424
|
-
readonly timestamp:
|
|
425
|
-
readonly isModelChanged:
|
|
426
|
-
readonly changedPaths:
|
|
427
|
-
readonly affectedPaths:
|
|
428
|
-
readonly submodelPath:
|
|
429
|
-
readonly maybeLeafTag:
|
|
424
|
+
readonly timestamp: Schema.Number;
|
|
425
|
+
readonly isModelChanged: Schema.Boolean;
|
|
426
|
+
readonly changedPaths: Schema.$Array<Schema.String>;
|
|
427
|
+
readonly affectedPaths: Schema.$Array<Schema.String>;
|
|
428
|
+
readonly submodelPath: Schema.$Array<Schema.String>;
|
|
429
|
+
readonly maybeLeafTag: Schema.OptionFromNullOr<Schema.String>;
|
|
430
430
|
}>>;
|
|
431
|
-
maybeNextIndex:
|
|
431
|
+
maybeNextIndex: Schema.OptionFromNullOr<Schema.Number>;
|
|
432
432
|
};
|
|
433
433
|
readonly ResponseMessage: {
|
|
434
|
-
entry:
|
|
435
|
-
readonly index:
|
|
436
|
-
readonly tag:
|
|
437
|
-
readonly message:
|
|
438
|
-
readonly commands:
|
|
439
|
-
readonly name:
|
|
440
|
-
readonly args:
|
|
434
|
+
entry: Schema.Struct<{
|
|
435
|
+
readonly index: Schema.Number;
|
|
436
|
+
readonly tag: Schema.String;
|
|
437
|
+
readonly message: Schema.Unknown;
|
|
438
|
+
readonly commands: Schema.$Array<Schema.Struct<{
|
|
439
|
+
readonly name: Schema.String;
|
|
440
|
+
readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
441
441
|
}>>;
|
|
442
|
-
readonly mountStarts:
|
|
443
|
-
readonly name:
|
|
444
|
-
readonly args:
|
|
442
|
+
readonly mountStarts: Schema.$Array<Schema.Struct<{
|
|
443
|
+
readonly name: Schema.String;
|
|
444
|
+
readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
445
445
|
}>>;
|
|
446
|
-
readonly mountEnds:
|
|
447
|
-
readonly name:
|
|
448
|
-
readonly args:
|
|
446
|
+
readonly mountEnds: Schema.$Array<Schema.Struct<{
|
|
447
|
+
readonly name: Schema.String;
|
|
448
|
+
readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
449
449
|
}>>;
|
|
450
|
-
readonly timestamp:
|
|
451
|
-
readonly isModelChanged:
|
|
452
|
-
readonly changedPaths:
|
|
453
|
-
readonly affectedPaths:
|
|
454
|
-
readonly submodelPath:
|
|
455
|
-
readonly maybeLeafTag:
|
|
450
|
+
readonly timestamp: Schema.Number;
|
|
451
|
+
readonly isModelChanged: Schema.Boolean;
|
|
452
|
+
readonly changedPaths: Schema.$Array<Schema.String>;
|
|
453
|
+
readonly affectedPaths: Schema.$Array<Schema.String>;
|
|
454
|
+
readonly submodelPath: Schema.$Array<Schema.String>;
|
|
455
|
+
readonly maybeLeafTag: Schema.OptionFromNullOr<Schema.String>;
|
|
456
456
|
}>;
|
|
457
457
|
};
|
|
458
458
|
readonly ResponseMessageCounts: {
|
|
459
|
-
counts:
|
|
460
|
-
readonly tag:
|
|
461
|
-
readonly count:
|
|
459
|
+
counts: Schema.$Array<Schema.Struct<{
|
|
460
|
+
readonly tag: Schema.String;
|
|
461
|
+
readonly count: Schema.Number;
|
|
462
462
|
}>>;
|
|
463
|
-
totalCount:
|
|
464
|
-
scannedFromIndex:
|
|
465
|
-
scannedToIndex:
|
|
463
|
+
totalCount: Schema.Number;
|
|
464
|
+
scannedFromIndex: Schema.Number;
|
|
465
|
+
scannedToIndex: Schema.Number;
|
|
466
466
|
};
|
|
467
467
|
readonly ResponseModelDiff: {
|
|
468
|
-
fromIndex:
|
|
469
|
-
toIndex:
|
|
470
|
-
changes:
|
|
471
|
-
readonly path:
|
|
468
|
+
fromIndex: Schema.Number;
|
|
469
|
+
toIndex: Schema.Number;
|
|
470
|
+
changes: Schema.$Array<Schema.Struct<{
|
|
471
|
+
readonly path: Schema.String;
|
|
472
472
|
readonly before: import("../schema/index.js").TaggedUnion<{
|
|
473
473
|
readonly Absent: {};
|
|
474
474
|
readonly Present: {
|
|
475
|
-
value:
|
|
475
|
+
value: Schema.Unknown;
|
|
476
476
|
};
|
|
477
477
|
}>;
|
|
478
478
|
readonly after: import("../schema/index.js").TaggedUnion<{
|
|
479
479
|
readonly Absent: {};
|
|
480
480
|
readonly Present: {
|
|
481
|
-
value:
|
|
481
|
+
value: Schema.Unknown;
|
|
482
482
|
};
|
|
483
483
|
}>;
|
|
484
484
|
}>>;
|
|
485
485
|
};
|
|
486
486
|
readonly ResponseKeyframes: {
|
|
487
|
-
keyframes:
|
|
488
|
-
readonly index:
|
|
487
|
+
keyframes: Schema.$Array<Schema.Struct<{
|
|
488
|
+
readonly index: Schema.Number;
|
|
489
489
|
}>>;
|
|
490
490
|
};
|
|
491
491
|
readonly ResponseReplayed: {
|
|
492
|
-
model:
|
|
492
|
+
model: Schema.Unknown;
|
|
493
493
|
};
|
|
494
494
|
readonly ResponseResumed: {};
|
|
495
495
|
readonly ResponseDispatched: {
|
|
496
|
-
acceptedAtIndex:
|
|
496
|
+
acceptedAtIndex: Schema.Number;
|
|
497
497
|
};
|
|
498
498
|
readonly ResponseDispatchedBatch: {
|
|
499
|
-
acceptedAtIndices:
|
|
499
|
+
acceptedAtIndices: Schema.$Array<Schema.Number>;
|
|
500
500
|
};
|
|
501
501
|
readonly ResponseRuntimes: {
|
|
502
|
-
runtimes:
|
|
503
|
-
readonly connectionId:
|
|
504
|
-
readonly url:
|
|
505
|
-
readonly title:
|
|
502
|
+
runtimes: Schema.$Array<Schema.Struct<{
|
|
503
|
+
readonly connectionId: Schema.String;
|
|
504
|
+
readonly url: Schema.String;
|
|
505
|
+
readonly title: Schema.String;
|
|
506
506
|
}>>;
|
|
507
507
|
};
|
|
508
508
|
readonly ResponseInit: {
|
|
509
|
-
maybeModel:
|
|
510
|
-
commands:
|
|
511
|
-
readonly name:
|
|
512
|
-
readonly args:
|
|
509
|
+
maybeModel: Schema.OptionFromNullOr<Schema.Unknown>;
|
|
510
|
+
commands: Schema.$Array<Schema.Struct<{
|
|
511
|
+
readonly name: Schema.String;
|
|
512
|
+
readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
513
513
|
}>>;
|
|
514
|
-
mountStarts:
|
|
515
|
-
readonly name:
|
|
516
|
-
readonly args:
|
|
514
|
+
mountStarts: Schema.$Array<Schema.Struct<{
|
|
515
|
+
readonly name: Schema.String;
|
|
516
|
+
readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
517
517
|
}>>;
|
|
518
518
|
};
|
|
519
519
|
readonly ResponseRuntimeState: {
|
|
520
|
-
currentIndex:
|
|
521
|
-
startIndex:
|
|
522
|
-
totalEntries:
|
|
523
|
-
isPaused:
|
|
524
|
-
maybePausedAtIndex:
|
|
525
|
-
hasInitModel:
|
|
520
|
+
currentIndex: Schema.Number;
|
|
521
|
+
startIndex: Schema.Number;
|
|
522
|
+
totalEntries: Schema.Number;
|
|
523
|
+
isPaused: Schema.Boolean;
|
|
524
|
+
maybePausedAtIndex: Schema.OptionFromNullOr<Schema.Number>;
|
|
525
|
+
hasInitModel: Schema.Boolean;
|
|
526
526
|
};
|
|
527
527
|
readonly ResponseMessageSchema: {
|
|
528
|
-
maybeResult:
|
|
528
|
+
maybeResult: Schema.OptionFromNullOr<import("../schema/index.js").TaggedUnion<{
|
|
529
529
|
readonly MessageSchemaIndexResult: {
|
|
530
|
-
index:
|
|
531
|
-
readonly variants:
|
|
532
|
-
readonly tag:
|
|
533
|
-
readonly payloadFields:
|
|
534
|
-
readonly unionFields:
|
|
530
|
+
index: Schema.Struct<{
|
|
531
|
+
readonly variants: Schema.$Array<Schema.Struct<{
|
|
532
|
+
readonly tag: Schema.String;
|
|
533
|
+
readonly payloadFields: Schema.$Array<Schema.String>;
|
|
534
|
+
readonly unionFields: Schema.$Array<Schema.String>;
|
|
535
535
|
}>>;
|
|
536
536
|
}>;
|
|
537
537
|
};
|
|
538
538
|
readonly MessageSchemaDocumentResult: {
|
|
539
|
-
document:
|
|
539
|
+
document: Schema.Unknown;
|
|
540
540
|
};
|
|
541
541
|
}>>;
|
|
542
542
|
};
|
|
543
543
|
readonly ResponseError: {
|
|
544
|
-
reason:
|
|
544
|
+
reason: Schema.String;
|
|
545
545
|
};
|
|
546
546
|
}>;
|
|
547
547
|
}>;
|
|
548
548
|
/** A wire frame carrying a Response, correlated to a Request by id. */
|
|
549
549
|
export type ResponseFrame = typeof ResponseFrame.Type;
|
|
550
550
|
/** A wire frame carrying a runtime lifecycle event from the bridge to the Vite plugin. */
|
|
551
|
-
export declare const EventFrame:
|
|
552
|
-
readonly maybeConnectionId:
|
|
551
|
+
export declare const EventFrame: Schema.Struct<{
|
|
552
|
+
readonly maybeConnectionId: Schema.OptionFromNullOr<Schema.String>;
|
|
553
553
|
readonly event: import("../schema/index.js").TaggedUnion<{
|
|
554
554
|
readonly EventConnected: {
|
|
555
|
-
runtime:
|
|
556
|
-
readonly connectionId:
|
|
557
|
-
readonly url:
|
|
558
|
-
readonly title:
|
|
555
|
+
runtime: Schema.Struct<{
|
|
556
|
+
readonly connectionId: Schema.String;
|
|
557
|
+
readonly url: Schema.String;
|
|
558
|
+
readonly title: Schema.String;
|
|
559
559
|
}>;
|
|
560
560
|
};
|
|
561
561
|
readonly EventDisconnected: {
|
|
562
|
-
connectionId:
|
|
562
|
+
connectionId: Schema.String;
|
|
563
563
|
};
|
|
564
564
|
}>;
|
|
565
565
|
}>;
|