@lute-lang/runtime 0.0.0-stage → 0.39.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/dist/Bundle.d.ts +17 -0
- package/dist/BundleSource.d.ts +21 -0
- package/dist/Errors.d.ts +115 -0
- package/dist/InputLog.d.ts +388 -0
- package/dist/LuteRuntime.d.ts +20 -0
- package/dist/LuteWasm.d.ts +26 -0
- package/dist/Program.d.ts +47 -0
- package/dist/Replay.d.ts +17 -0
- package/dist/Session.d.ts +55 -0
- package/dist/browser.d.ts +25 -0
- package/dist/browser.js +28 -0
- package/dist/bun.d.ts +21 -0
- package/dist/bun.js +28 -0
- package/dist/generated/Contract.d.ts +1556 -0
- package/dist/index-eqt12qy0.js +857 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +40 -0
- package/dist/wasm/lute_runtime_wasm.d.ts +162 -0
- package/dist/wasm/lute_runtime_wasm.js +606 -0
- package/dist/wasm/lute_runtime_wasm_bg.wasm +0 -0
- package/dist/wasm/lute_runtime_wasm_bg.wasm.d.ts +34 -0
- package/package.json +63 -4
- package/README.md +0 -3
|
@@ -0,0 +1,1556 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const parseOptions: {
|
|
3
|
+
readonly onExcessProperty: "error";
|
|
4
|
+
};
|
|
5
|
+
export declare const AdvanceBy: Schema.Union<readonly [Schema.String, Schema.Int, Schema.Struct<{
|
|
6
|
+
readonly to: Schema.String;
|
|
7
|
+
}>, Schema.Struct<{
|
|
8
|
+
readonly to: Schema.suspend<Schema.Struct<{
|
|
9
|
+
readonly slot: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
10
|
+
readonly weekday: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
11
|
+
}>>;
|
|
12
|
+
}>]>;
|
|
13
|
+
export type AdvanceBy = typeof AdvanceBy.Type;
|
|
14
|
+
/**
|
|
15
|
+
* A single leaf condition flattened out of a `PrereqFormula` by `atoms`
|
|
16
|
+
* (edge-extraction helper for later connectivity tasks).
|
|
17
|
+
*/
|
|
18
|
+
export declare const Atom: Schema.Union<readonly [Schema.Struct<{
|
|
19
|
+
readonly visited: Schema.String;
|
|
20
|
+
}>, Schema.Struct<{
|
|
21
|
+
readonly completed: Schema.String;
|
|
22
|
+
}>, Schema.Struct<{
|
|
23
|
+
readonly active: Schema.String;
|
|
24
|
+
}>]>;
|
|
25
|
+
export type Atom = typeof Atom.Type;
|
|
26
|
+
export declare const Await: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
27
|
+
readonly menu: Schema.suspend<Schema.Struct<{
|
|
28
|
+
readonly construct: Schema.String;
|
|
29
|
+
readonly document: Schema.String;
|
|
30
|
+
readonly id: Schema.String;
|
|
31
|
+
readonly options: Schema.$Array<Schema.suspend<Schema.Struct<{
|
|
32
|
+
readonly exit: Schema.Boolean;
|
|
33
|
+
readonly id: Schema.String;
|
|
34
|
+
readonly once: Schema.Boolean;
|
|
35
|
+
readonly verdict: Schema.String;
|
|
36
|
+
}>>>;
|
|
37
|
+
readonly position: Schema.String;
|
|
38
|
+
readonly presentation: Schema.Int;
|
|
39
|
+
readonly prompt: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
40
|
+
readonly timeout: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
41
|
+
}>>;
|
|
42
|
+
readonly request: Schema.Int;
|
|
43
|
+
readonly type: Schema.Literal<"awaitChoice">;
|
|
44
|
+
}>, Schema.Struct<{
|
|
45
|
+
readonly document: Schema.String;
|
|
46
|
+
readonly fields: Schema.$Record<Schema.String, Schema.String>;
|
|
47
|
+
readonly position: Schema.String;
|
|
48
|
+
readonly request: Schema.Int;
|
|
49
|
+
readonly tag: Schema.String;
|
|
50
|
+
readonly type: Schema.Literal<"awaitBridge">;
|
|
51
|
+
}>, Schema.Struct<{
|
|
52
|
+
readonly type: Schema.Literal<"idle">;
|
|
53
|
+
}>, Schema.Struct<{
|
|
54
|
+
readonly reason: Schema.String;
|
|
55
|
+
readonly type: Schema.Literal<"ended">;
|
|
56
|
+
}>, Schema.Struct<{
|
|
57
|
+
readonly kind: Schema.String;
|
|
58
|
+
readonly message: Schema.String;
|
|
59
|
+
readonly site: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
60
|
+
readonly type: Schema.Literal<"halted">;
|
|
61
|
+
}>]>;
|
|
62
|
+
export type Await = typeof Await.Type;
|
|
63
|
+
/**
|
|
64
|
+
* What a `ProjectIndex::beats` row declares (dsl 0.21.0 §8): a scene beat
|
|
65
|
+
* (`SceneMeta.beat`), an entry beat (`EntryCmd.on`), or a bundle beat (a
|
|
66
|
+
* lore document's `beat` record, dsl 0.23.0 §4).
|
|
67
|
+
*/
|
|
68
|
+
export declare const BeatKind: Schema.Literals<readonly ["scene", "entry", "bundle"]>;
|
|
69
|
+
export type BeatKind = typeof BeatKind.Type;
|
|
70
|
+
export declare const BeatOnce: Schema.String;
|
|
71
|
+
export type BeatOnce = typeof BeatOnce.Type;
|
|
72
|
+
export declare const Candidate: Schema.Struct<{
|
|
73
|
+
readonly also: Schema.Boolean;
|
|
74
|
+
readonly document: Schema.String;
|
|
75
|
+
readonly forMember: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
76
|
+
readonly id: Schema.String;
|
|
77
|
+
readonly kind: Schema.suspend<Schema.Literals<readonly ["scene", "entry", "bundle"]>>;
|
|
78
|
+
readonly priority: Schema.Int;
|
|
79
|
+
readonly read: Schema.Boolean;
|
|
80
|
+
readonly rejudged: Schema.Boolean;
|
|
81
|
+
readonly verdict: Schema.suspend<Schema.toTaggedUnion<"verdict", readonly [Schema.Struct<{
|
|
82
|
+
readonly verdict: Schema.Literal<"eligible">;
|
|
83
|
+
}>, Schema.Struct<{
|
|
84
|
+
readonly premise: Schema.suspend<Schema.toTaggedUnion<"premise", readonly [Schema.Struct<{
|
|
85
|
+
readonly once: Schema.optionalKey<Schema.NullOr<Schema.suspend<Schema.String>>>;
|
|
86
|
+
readonly premise: Schema.Literal<"spent">;
|
|
87
|
+
readonly reason: Schema.String;
|
|
88
|
+
}>, Schema.Struct<{
|
|
89
|
+
readonly chapters: Schema.Boolean;
|
|
90
|
+
readonly premise: Schema.Literal<"after">;
|
|
91
|
+
readonly raw: Schema.String;
|
|
92
|
+
readonly unmet: Schema.$Array<Schema.suspend<Schema.Union<readonly [Schema.Struct<{
|
|
93
|
+
readonly visited: Schema.String;
|
|
94
|
+
}>, Schema.Struct<{
|
|
95
|
+
readonly completed: Schema.String;
|
|
96
|
+
}>, Schema.Struct<{
|
|
97
|
+
readonly active: Schema.String;
|
|
98
|
+
}>]>>>;
|
|
99
|
+
}>, Schema.Struct<{
|
|
100
|
+
readonly premise: Schema.Literal<"spentBy">;
|
|
101
|
+
readonly raw: Schema.String;
|
|
102
|
+
}>, Schema.Struct<{
|
|
103
|
+
readonly premise: Schema.Literal<"when">;
|
|
104
|
+
readonly raw: Schema.String;
|
|
105
|
+
}>, Schema.Struct<{
|
|
106
|
+
readonly occasion: Schema.String;
|
|
107
|
+
readonly premise: Schema.Literal<"gate">;
|
|
108
|
+
readonly raw: Schema.String;
|
|
109
|
+
readonly reads: Schema.$Array<Schema.suspend<Schema.toTaggedUnion<"kind", readonly [Schema.Struct<{
|
|
110
|
+
readonly kind: Schema.Literal<"path">;
|
|
111
|
+
readonly value: Schema.Tuple<readonly [Schema.String, Schema.suspend<Schema.toTaggedUnion<"kind", readonly [Schema.Struct<{
|
|
112
|
+
readonly kind: Schema.Literal<"bool">;
|
|
113
|
+
readonly value: Schema.Boolean;
|
|
114
|
+
}>, Schema.Struct<{
|
|
115
|
+
readonly kind: Schema.Literal<"int">;
|
|
116
|
+
readonly value: Schema.Int;
|
|
117
|
+
}>, Schema.Struct<{
|
|
118
|
+
readonly kind: Schema.Literal<"double">;
|
|
119
|
+
readonly value: Schema.Number;
|
|
120
|
+
}>, Schema.Struct<{
|
|
121
|
+
readonly kind: Schema.Literal<"str">;
|
|
122
|
+
readonly value: Schema.String;
|
|
123
|
+
}>, Schema.Struct<{
|
|
124
|
+
readonly kind: Schema.Literal<"unknown">;
|
|
125
|
+
}>, Schema.Struct<{
|
|
126
|
+
readonly kind: Schema.Literal<"error">;
|
|
127
|
+
readonly value: Schema.String;
|
|
128
|
+
}>]>>]>;
|
|
129
|
+
}>, Schema.Struct<{
|
|
130
|
+
readonly kind: Schema.Literal<"fact">;
|
|
131
|
+
readonly value: Schema.String;
|
|
132
|
+
}>, Schema.Struct<{
|
|
133
|
+
readonly kind: Schema.Literal<"derived">;
|
|
134
|
+
readonly value: Schema.Struct<{
|
|
135
|
+
readonly base: Schema.$Array<Schema.String>;
|
|
136
|
+
readonly fact: Schema.String;
|
|
137
|
+
readonly rules: Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.$Array<Schema.String>]>>;
|
|
138
|
+
}>;
|
|
139
|
+
}>, Schema.Struct<{
|
|
140
|
+
readonly kind: Schema.Literal<"visited">;
|
|
141
|
+
readonly value: Schema.String;
|
|
142
|
+
}>, Schema.Struct<{
|
|
143
|
+
readonly kind: Schema.Literal<"holds">;
|
|
144
|
+
readonly value: Schema.String;
|
|
145
|
+
}>, Schema.Struct<{
|
|
146
|
+
readonly kind: Schema.Literal<"seen">;
|
|
147
|
+
readonly value: Schema.String;
|
|
148
|
+
}>]>>>;
|
|
149
|
+
}>, Schema.Struct<{
|
|
150
|
+
readonly occasion: Schema.String;
|
|
151
|
+
readonly premise: Schema.Literal<"terminal">;
|
|
152
|
+
readonly raw: Schema.String;
|
|
153
|
+
}>]>>;
|
|
154
|
+
readonly verdict: Schema.Literal<"ineligible">;
|
|
155
|
+
}>, Schema.Struct<{
|
|
156
|
+
readonly verdict: Schema.Literal<"unknown">;
|
|
157
|
+
readonly why: Schema.String;
|
|
158
|
+
}>]>>;
|
|
159
|
+
}>;
|
|
160
|
+
export type Candidate = typeof Candidate.Type;
|
|
161
|
+
/**
|
|
162
|
+
* A position on the clock: a day and the index of a slot in `slots`.
|
|
163
|
+
*/
|
|
164
|
+
export declare const ClockAt: Schema.Struct<{
|
|
165
|
+
readonly day: Schema.Int;
|
|
166
|
+
readonly slot: Schema.Int;
|
|
167
|
+
}>;
|
|
168
|
+
export type ClockAt = typeof ClockAt.Type;
|
|
169
|
+
export declare const ClockPosition: Schema.Struct<{
|
|
170
|
+
readonly slot: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
171
|
+
readonly weekday: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
172
|
+
}>;
|
|
173
|
+
export type ClockPosition = typeof ClockPosition.Type;
|
|
174
|
+
/**
|
|
175
|
+
* Where the declared clock stands (dsl 0.26.0 §7, T2-5: step
|
|
176
|
+
* `expect.clock`).
|
|
177
|
+
*/
|
|
178
|
+
export declare const ClockView: Schema.Struct<{
|
|
179
|
+
readonly day: Schema.Int;
|
|
180
|
+
readonly ended: Schema.optionalKey<Schema.NullOr<Schema.Boolean>>;
|
|
181
|
+
readonly last: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
182
|
+
readonly slot: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
183
|
+
readonly weekday: Schema.optionalKey<Schema.NullOr<Schema.Int>>;
|
|
184
|
+
readonly weekdayLabel: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
185
|
+
}>;
|
|
186
|
+
export type ClockView = typeof ClockView.Type;
|
|
187
|
+
/**
|
|
188
|
+
* An execution record or session-level notification.
|
|
189
|
+
*/
|
|
190
|
+
export declare const Event: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
191
|
+
readonly document: Schema.String;
|
|
192
|
+
readonly record: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
193
|
+
readonly type: Schema.Literal<"record">;
|
|
194
|
+
}>, Schema.Struct<{
|
|
195
|
+
readonly beat: Schema.String;
|
|
196
|
+
readonly document: Schema.String;
|
|
197
|
+
readonly kind: Schema.String;
|
|
198
|
+
readonly occasion: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
199
|
+
readonly target: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
200
|
+
readonly type: Schema.Literal<"presentation">;
|
|
201
|
+
}>, Schema.Struct<{
|
|
202
|
+
readonly beat: Schema.String;
|
|
203
|
+
readonly document: Schema.String;
|
|
204
|
+
readonly reason: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
205
|
+
readonly type: Schema.Literal<"presentationEnd">;
|
|
206
|
+
}>, Schema.Struct<{
|
|
207
|
+
readonly commands: Schema.$Array<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
208
|
+
readonly document: Schema.String;
|
|
209
|
+
readonly type: Schema.Literal<"quest">;
|
|
210
|
+
}>, Schema.Struct<{
|
|
211
|
+
readonly from: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
212
|
+
readonly passed: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
213
|
+
readonly to: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
214
|
+
readonly type: Schema.Literal<"clock">;
|
|
215
|
+
}>]>;
|
|
216
|
+
export type Event = typeof Event.Type;
|
|
217
|
+
/**
|
|
218
|
+
* One read of a guard that decided false, as the premise a refusal names
|
|
219
|
+
* (round-5 T3-12): a state path (with the value it held), a fact pattern
|
|
220
|
+
* that does not hold, a scene `visited(…)` has not seen — or, under a
|
|
221
|
+
* negation (OT-F-10), a fact that holds, a scene that is visited.
|
|
222
|
+
*/
|
|
223
|
+
export declare const GuardRead: Schema.toTaggedUnion<"kind", readonly [Schema.Struct<{
|
|
224
|
+
readonly kind: Schema.Literal<"path">;
|
|
225
|
+
readonly value: Schema.Tuple<readonly [Schema.String, Schema.suspend<Schema.toTaggedUnion<"kind", readonly [Schema.Struct<{
|
|
226
|
+
readonly kind: Schema.Literal<"bool">;
|
|
227
|
+
readonly value: Schema.Boolean;
|
|
228
|
+
}>, Schema.Struct<{
|
|
229
|
+
readonly kind: Schema.Literal<"int">;
|
|
230
|
+
readonly value: Schema.Int;
|
|
231
|
+
}>, Schema.Struct<{
|
|
232
|
+
readonly kind: Schema.Literal<"double">;
|
|
233
|
+
readonly value: Schema.Number;
|
|
234
|
+
}>, Schema.Struct<{
|
|
235
|
+
readonly kind: Schema.Literal<"str">;
|
|
236
|
+
readonly value: Schema.String;
|
|
237
|
+
}>, Schema.Struct<{
|
|
238
|
+
readonly kind: Schema.Literal<"unknown">;
|
|
239
|
+
}>, Schema.Struct<{
|
|
240
|
+
readonly kind: Schema.Literal<"error">;
|
|
241
|
+
readonly value: Schema.String;
|
|
242
|
+
}>]>>]>;
|
|
243
|
+
}>, Schema.Struct<{
|
|
244
|
+
readonly kind: Schema.Literal<"fact">;
|
|
245
|
+
readonly value: Schema.String;
|
|
246
|
+
}>, Schema.Struct<{
|
|
247
|
+
readonly kind: Schema.Literal<"derived">;
|
|
248
|
+
readonly value: Schema.Struct<{
|
|
249
|
+
readonly base: Schema.$Array<Schema.String>;
|
|
250
|
+
readonly fact: Schema.String;
|
|
251
|
+
readonly rules: Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.$Array<Schema.String>]>>;
|
|
252
|
+
}>;
|
|
253
|
+
}>, Schema.Struct<{
|
|
254
|
+
readonly kind: Schema.Literal<"visited">;
|
|
255
|
+
readonly value: Schema.String;
|
|
256
|
+
}>, Schema.Struct<{
|
|
257
|
+
readonly kind: Schema.Literal<"holds">;
|
|
258
|
+
readonly value: Schema.String;
|
|
259
|
+
}>, Schema.Struct<{
|
|
260
|
+
readonly kind: Schema.Literal<"seen">;
|
|
261
|
+
readonly value: Schema.String;
|
|
262
|
+
}>]>;
|
|
263
|
+
export type GuardRead = typeof GuardRead.Type;
|
|
264
|
+
/**
|
|
265
|
+
* The seven inputs in §5.1.
|
|
266
|
+
*/
|
|
267
|
+
export declare const Input: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
268
|
+
readonly occasion: Schema.String;
|
|
269
|
+
readonly payload: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
270
|
+
readonly pick: Schema.optionalKey<Schema.NullOr<Schema.suspend<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
271
|
+
readonly beat: Schema.String;
|
|
272
|
+
}>]>>>>;
|
|
273
|
+
readonly target: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
274
|
+
readonly type: Schema.Literal<"raiseOccasion">;
|
|
275
|
+
readonly writes: Schema.optionalKey<Schema.suspend<Schema.Struct<{
|
|
276
|
+
readonly accept: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
277
|
+
readonly facts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
278
|
+
readonly retract: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
279
|
+
readonly state: Schema.optionalKey<Schema.$Array<Schema.suspend<Schema.Struct<{
|
|
280
|
+
readonly add: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
281
|
+
readonly path: Schema.String;
|
|
282
|
+
readonly value: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
283
|
+
}>>>>;
|
|
284
|
+
}>>>;
|
|
285
|
+
}>, Schema.Struct<{
|
|
286
|
+
readonly option: Schema.String;
|
|
287
|
+
readonly request: Schema.Int;
|
|
288
|
+
readonly type: Schema.Literal<"choose">;
|
|
289
|
+
}>, Schema.Struct<{
|
|
290
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
291
|
+
readonly request: Schema.Int;
|
|
292
|
+
readonly type: Schema.Literal<"bridgeResult">;
|
|
293
|
+
}>, Schema.Struct<{
|
|
294
|
+
readonly by: Schema.suspend<Schema.Union<readonly [Schema.String, Schema.Int, Schema.Struct<{
|
|
295
|
+
readonly to: Schema.String;
|
|
296
|
+
}>, Schema.Struct<{
|
|
297
|
+
readonly to: Schema.suspend<Schema.Struct<{
|
|
298
|
+
readonly slot: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
299
|
+
readonly weekday: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
300
|
+
}>>;
|
|
301
|
+
}>]>>;
|
|
302
|
+
readonly pick: Schema.optionalKey<Schema.NullOr<Schema.suspend<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
303
|
+
readonly beat: Schema.String;
|
|
304
|
+
}>]>>>>;
|
|
305
|
+
readonly type: Schema.Literal<"advanceClock">;
|
|
306
|
+
readonly writes: Schema.optionalKey<Schema.suspend<Schema.Struct<{
|
|
307
|
+
readonly accept: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
308
|
+
readonly facts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
309
|
+
readonly retract: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
310
|
+
readonly state: Schema.optionalKey<Schema.$Array<Schema.suspend<Schema.Struct<{
|
|
311
|
+
readonly add: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
312
|
+
readonly path: Schema.String;
|
|
313
|
+
readonly value: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
314
|
+
}>>>>;
|
|
315
|
+
}>>>;
|
|
316
|
+
}>, Schema.Struct<{
|
|
317
|
+
readonly type: Schema.Literal<"hostWrite">;
|
|
318
|
+
readonly writes: Schema.suspend<Schema.Struct<{
|
|
319
|
+
readonly accept: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
320
|
+
readonly facts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
321
|
+
readonly retract: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
322
|
+
readonly state: Schema.optionalKey<Schema.$Array<Schema.suspend<Schema.Struct<{
|
|
323
|
+
readonly add: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
324
|
+
readonly path: Schema.String;
|
|
325
|
+
readonly value: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
326
|
+
}>>>>;
|
|
327
|
+
}>>;
|
|
328
|
+
}>, Schema.Struct<{
|
|
329
|
+
readonly name: Schema.String;
|
|
330
|
+
readonly type: Schema.Literal<"worldEvent">;
|
|
331
|
+
}>, Schema.Struct<{
|
|
332
|
+
readonly type: Schema.Literal<"newRun">;
|
|
333
|
+
readonly writes: Schema.optionalKey<Schema.suspend<Schema.Struct<{
|
|
334
|
+
readonly accept: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
335
|
+
readonly facts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
336
|
+
readonly retract: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
337
|
+
readonly state: Schema.optionalKey<Schema.$Array<Schema.suspend<Schema.Struct<{
|
|
338
|
+
readonly add: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
339
|
+
readonly path: Schema.String;
|
|
340
|
+
readonly value: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
341
|
+
}>>>>;
|
|
342
|
+
}>>>;
|
|
343
|
+
}>]>;
|
|
344
|
+
export type Input = typeof Input.Type;
|
|
345
|
+
export declare const MenuAwait: Schema.Struct<{
|
|
346
|
+
readonly construct: Schema.String;
|
|
347
|
+
readonly document: Schema.String;
|
|
348
|
+
readonly id: Schema.String;
|
|
349
|
+
readonly options: Schema.$Array<Schema.suspend<Schema.Struct<{
|
|
350
|
+
readonly exit: Schema.Boolean;
|
|
351
|
+
readonly id: Schema.String;
|
|
352
|
+
readonly once: Schema.Boolean;
|
|
353
|
+
readonly verdict: Schema.String;
|
|
354
|
+
}>>>;
|
|
355
|
+
readonly position: Schema.String;
|
|
356
|
+
readonly presentation: Schema.Int;
|
|
357
|
+
readonly prompt: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
358
|
+
readonly timeout: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
359
|
+
}>;
|
|
360
|
+
export type MenuAwait = typeof MenuAwait.Type;
|
|
361
|
+
export declare const MenuOptionAwait: Schema.Struct<{
|
|
362
|
+
readonly exit: Schema.Boolean;
|
|
363
|
+
readonly id: Schema.String;
|
|
364
|
+
readonly once: Schema.Boolean;
|
|
365
|
+
readonly verdict: Schema.String;
|
|
366
|
+
}>;
|
|
367
|
+
export type MenuOptionAwait = typeof MenuOptionAwait.Type;
|
|
368
|
+
export declare const Output: Schema.Struct<{
|
|
369
|
+
readonly await: Schema.suspend<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
370
|
+
readonly menu: Schema.suspend<Schema.Struct<{
|
|
371
|
+
readonly construct: Schema.String;
|
|
372
|
+
readonly document: Schema.String;
|
|
373
|
+
readonly id: Schema.String;
|
|
374
|
+
readonly options: Schema.$Array<Schema.suspend<Schema.Struct<{
|
|
375
|
+
readonly exit: Schema.Boolean;
|
|
376
|
+
readonly id: Schema.String;
|
|
377
|
+
readonly once: Schema.Boolean;
|
|
378
|
+
readonly verdict: Schema.String;
|
|
379
|
+
}>>>;
|
|
380
|
+
readonly position: Schema.String;
|
|
381
|
+
readonly presentation: Schema.Int;
|
|
382
|
+
readonly prompt: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
383
|
+
readonly timeout: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
384
|
+
}>>;
|
|
385
|
+
readonly request: Schema.Int;
|
|
386
|
+
readonly type: Schema.Literal<"awaitChoice">;
|
|
387
|
+
}>, Schema.Struct<{
|
|
388
|
+
readonly document: Schema.String;
|
|
389
|
+
readonly fields: Schema.$Record<Schema.String, Schema.String>;
|
|
390
|
+
readonly position: Schema.String;
|
|
391
|
+
readonly request: Schema.Int;
|
|
392
|
+
readonly tag: Schema.String;
|
|
393
|
+
readonly type: Schema.Literal<"awaitBridge">;
|
|
394
|
+
}>, Schema.Struct<{
|
|
395
|
+
readonly type: Schema.Literal<"idle">;
|
|
396
|
+
}>, Schema.Struct<{
|
|
397
|
+
readonly reason: Schema.String;
|
|
398
|
+
readonly type: Schema.Literal<"ended">;
|
|
399
|
+
}>, Schema.Struct<{
|
|
400
|
+
readonly kind: Schema.String;
|
|
401
|
+
readonly message: Schema.String;
|
|
402
|
+
readonly site: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
403
|
+
readonly type: Schema.Literal<"halted">;
|
|
404
|
+
}>]>>;
|
|
405
|
+
readonly eventVersion: Schema.String;
|
|
406
|
+
readonly events: Schema.$Array<Schema.suspend<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
407
|
+
readonly document: Schema.String;
|
|
408
|
+
readonly record: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
409
|
+
readonly type: Schema.Literal<"record">;
|
|
410
|
+
}>, Schema.Struct<{
|
|
411
|
+
readonly beat: Schema.String;
|
|
412
|
+
readonly document: Schema.String;
|
|
413
|
+
readonly kind: Schema.String;
|
|
414
|
+
readonly occasion: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
415
|
+
readonly target: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
416
|
+
readonly type: Schema.Literal<"presentation">;
|
|
417
|
+
}>, Schema.Struct<{
|
|
418
|
+
readonly beat: Schema.String;
|
|
419
|
+
readonly document: Schema.String;
|
|
420
|
+
readonly reason: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
421
|
+
readonly type: Schema.Literal<"presentationEnd">;
|
|
422
|
+
}>, Schema.Struct<{
|
|
423
|
+
readonly commands: Schema.$Array<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
424
|
+
readonly document: Schema.String;
|
|
425
|
+
readonly type: Schema.Literal<"quest">;
|
|
426
|
+
}>, Schema.Struct<{
|
|
427
|
+
readonly from: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
428
|
+
readonly passed: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
429
|
+
readonly to: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
430
|
+
readonly type: Schema.Literal<"clock">;
|
|
431
|
+
}>]>>>;
|
|
432
|
+
}>;
|
|
433
|
+
export type Output = typeof Output.Type;
|
|
434
|
+
export declare const PickInput: Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
435
|
+
readonly beat: Schema.String;
|
|
436
|
+
}>]>;
|
|
437
|
+
export type PickInput = typeof PickInput.Type;
|
|
438
|
+
export declare const Premise: Schema.toTaggedUnion<"premise", readonly [Schema.Struct<{
|
|
439
|
+
readonly once: Schema.optionalKey<Schema.NullOr<Schema.suspend<Schema.String>>>;
|
|
440
|
+
readonly premise: Schema.Literal<"spent">;
|
|
441
|
+
readonly reason: Schema.String;
|
|
442
|
+
}>, Schema.Struct<{
|
|
443
|
+
readonly chapters: Schema.Boolean;
|
|
444
|
+
readonly premise: Schema.Literal<"after">;
|
|
445
|
+
readonly raw: Schema.String;
|
|
446
|
+
readonly unmet: Schema.$Array<Schema.suspend<Schema.Union<readonly [Schema.Struct<{
|
|
447
|
+
readonly visited: Schema.String;
|
|
448
|
+
}>, Schema.Struct<{
|
|
449
|
+
readonly completed: Schema.String;
|
|
450
|
+
}>, Schema.Struct<{
|
|
451
|
+
readonly active: Schema.String;
|
|
452
|
+
}>]>>>;
|
|
453
|
+
}>, Schema.Struct<{
|
|
454
|
+
readonly premise: Schema.Literal<"spentBy">;
|
|
455
|
+
readonly raw: Schema.String;
|
|
456
|
+
}>, Schema.Struct<{
|
|
457
|
+
readonly premise: Schema.Literal<"when">;
|
|
458
|
+
readonly raw: Schema.String;
|
|
459
|
+
}>, Schema.Struct<{
|
|
460
|
+
readonly occasion: Schema.String;
|
|
461
|
+
readonly premise: Schema.Literal<"gate">;
|
|
462
|
+
readonly raw: Schema.String;
|
|
463
|
+
readonly reads: Schema.$Array<Schema.suspend<Schema.toTaggedUnion<"kind", readonly [Schema.Struct<{
|
|
464
|
+
readonly kind: Schema.Literal<"path">;
|
|
465
|
+
readonly value: Schema.Tuple<readonly [Schema.String, Schema.suspend<Schema.toTaggedUnion<"kind", readonly [Schema.Struct<{
|
|
466
|
+
readonly kind: Schema.Literal<"bool">;
|
|
467
|
+
readonly value: Schema.Boolean;
|
|
468
|
+
}>, Schema.Struct<{
|
|
469
|
+
readonly kind: Schema.Literal<"int">;
|
|
470
|
+
readonly value: Schema.Int;
|
|
471
|
+
}>, Schema.Struct<{
|
|
472
|
+
readonly kind: Schema.Literal<"double">;
|
|
473
|
+
readonly value: Schema.Number;
|
|
474
|
+
}>, Schema.Struct<{
|
|
475
|
+
readonly kind: Schema.Literal<"str">;
|
|
476
|
+
readonly value: Schema.String;
|
|
477
|
+
}>, Schema.Struct<{
|
|
478
|
+
readonly kind: Schema.Literal<"unknown">;
|
|
479
|
+
}>, Schema.Struct<{
|
|
480
|
+
readonly kind: Schema.Literal<"error">;
|
|
481
|
+
readonly value: Schema.String;
|
|
482
|
+
}>]>>]>;
|
|
483
|
+
}>, Schema.Struct<{
|
|
484
|
+
readonly kind: Schema.Literal<"fact">;
|
|
485
|
+
readonly value: Schema.String;
|
|
486
|
+
}>, Schema.Struct<{
|
|
487
|
+
readonly kind: Schema.Literal<"derived">;
|
|
488
|
+
readonly value: Schema.Struct<{
|
|
489
|
+
readonly base: Schema.$Array<Schema.String>;
|
|
490
|
+
readonly fact: Schema.String;
|
|
491
|
+
readonly rules: Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.$Array<Schema.String>]>>;
|
|
492
|
+
}>;
|
|
493
|
+
}>, Schema.Struct<{
|
|
494
|
+
readonly kind: Schema.Literal<"visited">;
|
|
495
|
+
readonly value: Schema.String;
|
|
496
|
+
}>, Schema.Struct<{
|
|
497
|
+
readonly kind: Schema.Literal<"holds">;
|
|
498
|
+
readonly value: Schema.String;
|
|
499
|
+
}>, Schema.Struct<{
|
|
500
|
+
readonly kind: Schema.Literal<"seen">;
|
|
501
|
+
readonly value: Schema.String;
|
|
502
|
+
}>]>>>;
|
|
503
|
+
}>, Schema.Struct<{
|
|
504
|
+
readonly occasion: Schema.String;
|
|
505
|
+
readonly premise: Schema.Literal<"terminal">;
|
|
506
|
+
readonly raw: Schema.String;
|
|
507
|
+
}>]>;
|
|
508
|
+
export type Premise = typeof Premise.Type;
|
|
509
|
+
export declare const Rejected: Schema.Struct<{
|
|
510
|
+
readonly code: Schema.String;
|
|
511
|
+
readonly message: Schema.String;
|
|
512
|
+
}>;
|
|
513
|
+
export type Rejected = typeof Rejected.Type;
|
|
514
|
+
export declare const SaveInput: Schema.Struct<{
|
|
515
|
+
readonly entriesRead: Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Array<Schema.String>>>;
|
|
516
|
+
readonly presented: Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Array<Schema.String>>>;
|
|
517
|
+
readonly questInstances: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Int>>;
|
|
518
|
+
readonly quests: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
519
|
+
readonly visited: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
520
|
+
}>;
|
|
521
|
+
export type SaveInput = typeof SaveInput.Type;
|
|
522
|
+
/**
|
|
523
|
+
* The initial world seed (§5.1).
|
|
524
|
+
*/
|
|
525
|
+
export declare const Seed: Schema.Struct<{
|
|
526
|
+
readonly derive: Schema.optionalKey<Schema.Boolean>;
|
|
527
|
+
readonly facts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
528
|
+
readonly save: Schema.optionalKey<Schema.suspend<Schema.Struct<{
|
|
529
|
+
readonly entriesRead: Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Array<Schema.String>>>;
|
|
530
|
+
readonly presented: Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Array<Schema.String>>>;
|
|
531
|
+
readonly questInstances: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Int>>;
|
|
532
|
+
readonly quests: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
533
|
+
readonly visited: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
534
|
+
}>>>;
|
|
535
|
+
readonly state: Schema.optionalKey<Schema.$Array<Schema.suspend<Schema.Struct<{
|
|
536
|
+
readonly add: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
537
|
+
readonly path: Schema.String;
|
|
538
|
+
readonly value: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
539
|
+
}>>>>;
|
|
540
|
+
}>;
|
|
541
|
+
export type Seed = typeof Seed.Type;
|
|
542
|
+
export declare const StateWrite: Schema.Struct<{
|
|
543
|
+
readonly add: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
544
|
+
readonly path: Schema.String;
|
|
545
|
+
readonly value: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
546
|
+
}>;
|
|
547
|
+
export type StateWrite = typeof StateWrite.Type;
|
|
548
|
+
/**
|
|
549
|
+
* One line of the `--events` JSONL stream.
|
|
550
|
+
*/
|
|
551
|
+
export declare const StreamLine: Schema.Union<readonly [Schema.Struct<{
|
|
552
|
+
readonly output: Schema.suspend<Schema.Struct<{
|
|
553
|
+
readonly await: Schema.suspend<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
554
|
+
readonly menu: Schema.suspend<Schema.Struct<{
|
|
555
|
+
readonly construct: Schema.String;
|
|
556
|
+
readonly document: Schema.String;
|
|
557
|
+
readonly id: Schema.String;
|
|
558
|
+
readonly options: Schema.$Array<Schema.suspend<Schema.Struct<{
|
|
559
|
+
readonly exit: Schema.Boolean;
|
|
560
|
+
readonly id: Schema.String;
|
|
561
|
+
readonly once: Schema.Boolean;
|
|
562
|
+
readonly verdict: Schema.String;
|
|
563
|
+
}>>>;
|
|
564
|
+
readonly position: Schema.String;
|
|
565
|
+
readonly presentation: Schema.Int;
|
|
566
|
+
readonly prompt: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
567
|
+
readonly timeout: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
568
|
+
}>>;
|
|
569
|
+
readonly request: Schema.Int;
|
|
570
|
+
readonly type: Schema.Literal<"awaitChoice">;
|
|
571
|
+
}>, Schema.Struct<{
|
|
572
|
+
readonly document: Schema.String;
|
|
573
|
+
readonly fields: Schema.$Record<Schema.String, Schema.String>;
|
|
574
|
+
readonly position: Schema.String;
|
|
575
|
+
readonly request: Schema.Int;
|
|
576
|
+
readonly tag: Schema.String;
|
|
577
|
+
readonly type: Schema.Literal<"awaitBridge">;
|
|
578
|
+
}>, Schema.Struct<{
|
|
579
|
+
readonly type: Schema.Literal<"idle">;
|
|
580
|
+
}>, Schema.Struct<{
|
|
581
|
+
readonly reason: Schema.String;
|
|
582
|
+
readonly type: Schema.Literal<"ended">;
|
|
583
|
+
}>, Schema.Struct<{
|
|
584
|
+
readonly kind: Schema.String;
|
|
585
|
+
readonly message: Schema.String;
|
|
586
|
+
readonly site: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
587
|
+
readonly type: Schema.Literal<"halted">;
|
|
588
|
+
}>]>>;
|
|
589
|
+
readonly eventVersion: Schema.String;
|
|
590
|
+
readonly events: Schema.$Array<Schema.suspend<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
591
|
+
readonly document: Schema.String;
|
|
592
|
+
readonly record: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
593
|
+
readonly type: Schema.Literal<"record">;
|
|
594
|
+
}>, Schema.Struct<{
|
|
595
|
+
readonly beat: Schema.String;
|
|
596
|
+
readonly document: Schema.String;
|
|
597
|
+
readonly kind: Schema.String;
|
|
598
|
+
readonly occasion: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
599
|
+
readonly target: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
600
|
+
readonly type: Schema.Literal<"presentation">;
|
|
601
|
+
}>, Schema.Struct<{
|
|
602
|
+
readonly beat: Schema.String;
|
|
603
|
+
readonly document: Schema.String;
|
|
604
|
+
readonly reason: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
605
|
+
readonly type: Schema.Literal<"presentationEnd">;
|
|
606
|
+
}>, Schema.Struct<{
|
|
607
|
+
readonly commands: Schema.$Array<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
608
|
+
readonly document: Schema.String;
|
|
609
|
+
readonly type: Schema.Literal<"quest">;
|
|
610
|
+
}>, Schema.Struct<{
|
|
611
|
+
readonly from: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
612
|
+
readonly passed: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
613
|
+
readonly to: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
614
|
+
readonly type: Schema.Literal<"clock">;
|
|
615
|
+
}>]>>>;
|
|
616
|
+
}>>;
|
|
617
|
+
readonly seed: Schema.suspend<Schema.Struct<{
|
|
618
|
+
readonly derive: Schema.optionalKey<Schema.Boolean>;
|
|
619
|
+
readonly facts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
620
|
+
readonly save: Schema.optionalKey<Schema.suspend<Schema.Struct<{
|
|
621
|
+
readonly entriesRead: Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Array<Schema.String>>>;
|
|
622
|
+
readonly presented: Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Array<Schema.String>>>;
|
|
623
|
+
readonly questInstances: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Int>>;
|
|
624
|
+
readonly quests: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
625
|
+
readonly visited: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
626
|
+
}>>>;
|
|
627
|
+
readonly state: Schema.optionalKey<Schema.$Array<Schema.suspend<Schema.Struct<{
|
|
628
|
+
readonly add: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
629
|
+
readonly path: Schema.String;
|
|
630
|
+
readonly value: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
631
|
+
}>>>>;
|
|
632
|
+
}>>;
|
|
633
|
+
}>, Schema.Struct<{
|
|
634
|
+
readonly input: Schema.suspend<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
635
|
+
readonly occasion: Schema.String;
|
|
636
|
+
readonly payload: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
637
|
+
readonly pick: Schema.optionalKey<Schema.NullOr<Schema.suspend<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
638
|
+
readonly beat: Schema.String;
|
|
639
|
+
}>]>>>>;
|
|
640
|
+
readonly target: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
641
|
+
readonly type: Schema.Literal<"raiseOccasion">;
|
|
642
|
+
readonly writes: Schema.optionalKey<Schema.suspend<Schema.Struct<{
|
|
643
|
+
readonly accept: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
644
|
+
readonly facts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
645
|
+
readonly retract: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
646
|
+
readonly state: Schema.optionalKey<Schema.$Array<Schema.suspend<Schema.Struct<{
|
|
647
|
+
readonly add: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
648
|
+
readonly path: Schema.String;
|
|
649
|
+
readonly value: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
650
|
+
}>>>>;
|
|
651
|
+
}>>>;
|
|
652
|
+
}>, Schema.Struct<{
|
|
653
|
+
readonly option: Schema.String;
|
|
654
|
+
readonly request: Schema.Int;
|
|
655
|
+
readonly type: Schema.Literal<"choose">;
|
|
656
|
+
}>, Schema.Struct<{
|
|
657
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
658
|
+
readonly request: Schema.Int;
|
|
659
|
+
readonly type: Schema.Literal<"bridgeResult">;
|
|
660
|
+
}>, Schema.Struct<{
|
|
661
|
+
readonly by: Schema.suspend<Schema.Union<readonly [Schema.String, Schema.Int, Schema.Struct<{
|
|
662
|
+
readonly to: Schema.String;
|
|
663
|
+
}>, Schema.Struct<{
|
|
664
|
+
readonly to: Schema.suspend<Schema.Struct<{
|
|
665
|
+
readonly slot: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
666
|
+
readonly weekday: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
667
|
+
}>>;
|
|
668
|
+
}>]>>;
|
|
669
|
+
readonly pick: Schema.optionalKey<Schema.NullOr<Schema.suspend<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
670
|
+
readonly beat: Schema.String;
|
|
671
|
+
}>]>>>>;
|
|
672
|
+
readonly type: Schema.Literal<"advanceClock">;
|
|
673
|
+
readonly writes: Schema.optionalKey<Schema.suspend<Schema.Struct<{
|
|
674
|
+
readonly accept: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
675
|
+
readonly facts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
676
|
+
readonly retract: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
677
|
+
readonly state: Schema.optionalKey<Schema.$Array<Schema.suspend<Schema.Struct<{
|
|
678
|
+
readonly add: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
679
|
+
readonly path: Schema.String;
|
|
680
|
+
readonly value: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
681
|
+
}>>>>;
|
|
682
|
+
}>>>;
|
|
683
|
+
}>, Schema.Struct<{
|
|
684
|
+
readonly type: Schema.Literal<"hostWrite">;
|
|
685
|
+
readonly writes: Schema.suspend<Schema.Struct<{
|
|
686
|
+
readonly accept: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
687
|
+
readonly facts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
688
|
+
readonly retract: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
689
|
+
readonly state: Schema.optionalKey<Schema.$Array<Schema.suspend<Schema.Struct<{
|
|
690
|
+
readonly add: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
691
|
+
readonly path: Schema.String;
|
|
692
|
+
readonly value: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
693
|
+
}>>>>;
|
|
694
|
+
}>>;
|
|
695
|
+
}>, Schema.Struct<{
|
|
696
|
+
readonly name: Schema.String;
|
|
697
|
+
readonly type: Schema.Literal<"worldEvent">;
|
|
698
|
+
}>, Schema.Struct<{
|
|
699
|
+
readonly type: Schema.Literal<"newRun">;
|
|
700
|
+
readonly writes: Schema.optionalKey<Schema.suspend<Schema.Struct<{
|
|
701
|
+
readonly accept: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
702
|
+
readonly facts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
703
|
+
readonly retract: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
704
|
+
readonly state: Schema.optionalKey<Schema.$Array<Schema.suspend<Schema.Struct<{
|
|
705
|
+
readonly add: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
706
|
+
readonly path: Schema.String;
|
|
707
|
+
readonly value: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
708
|
+
}>>>>;
|
|
709
|
+
}>>>;
|
|
710
|
+
}>]>>;
|
|
711
|
+
readonly output: Schema.suspend<Schema.Struct<{
|
|
712
|
+
readonly await: Schema.suspend<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
713
|
+
readonly menu: Schema.suspend<Schema.Struct<{
|
|
714
|
+
readonly construct: Schema.String;
|
|
715
|
+
readonly document: Schema.String;
|
|
716
|
+
readonly id: Schema.String;
|
|
717
|
+
readonly options: Schema.$Array<Schema.suspend<Schema.Struct<{
|
|
718
|
+
readonly exit: Schema.Boolean;
|
|
719
|
+
readonly id: Schema.String;
|
|
720
|
+
readonly once: Schema.Boolean;
|
|
721
|
+
readonly verdict: Schema.String;
|
|
722
|
+
}>>>;
|
|
723
|
+
readonly position: Schema.String;
|
|
724
|
+
readonly presentation: Schema.Int;
|
|
725
|
+
readonly prompt: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
726
|
+
readonly timeout: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
727
|
+
}>>;
|
|
728
|
+
readonly request: Schema.Int;
|
|
729
|
+
readonly type: Schema.Literal<"awaitChoice">;
|
|
730
|
+
}>, Schema.Struct<{
|
|
731
|
+
readonly document: Schema.String;
|
|
732
|
+
readonly fields: Schema.$Record<Schema.String, Schema.String>;
|
|
733
|
+
readonly position: Schema.String;
|
|
734
|
+
readonly request: Schema.Int;
|
|
735
|
+
readonly tag: Schema.String;
|
|
736
|
+
readonly type: Schema.Literal<"awaitBridge">;
|
|
737
|
+
}>, Schema.Struct<{
|
|
738
|
+
readonly type: Schema.Literal<"idle">;
|
|
739
|
+
}>, Schema.Struct<{
|
|
740
|
+
readonly reason: Schema.String;
|
|
741
|
+
readonly type: Schema.Literal<"ended">;
|
|
742
|
+
}>, Schema.Struct<{
|
|
743
|
+
readonly kind: Schema.String;
|
|
744
|
+
readonly message: Schema.String;
|
|
745
|
+
readonly site: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
746
|
+
readonly type: Schema.Literal<"halted">;
|
|
747
|
+
}>]>>;
|
|
748
|
+
readonly eventVersion: Schema.String;
|
|
749
|
+
readonly events: Schema.$Array<Schema.suspend<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
750
|
+
readonly document: Schema.String;
|
|
751
|
+
readonly record: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
752
|
+
readonly type: Schema.Literal<"record">;
|
|
753
|
+
}>, Schema.Struct<{
|
|
754
|
+
readonly beat: Schema.String;
|
|
755
|
+
readonly document: Schema.String;
|
|
756
|
+
readonly kind: Schema.String;
|
|
757
|
+
readonly occasion: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
758
|
+
readonly target: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
759
|
+
readonly type: Schema.Literal<"presentation">;
|
|
760
|
+
}>, Schema.Struct<{
|
|
761
|
+
readonly beat: Schema.String;
|
|
762
|
+
readonly document: Schema.String;
|
|
763
|
+
readonly reason: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
764
|
+
readonly type: Schema.Literal<"presentationEnd">;
|
|
765
|
+
}>, Schema.Struct<{
|
|
766
|
+
readonly commands: Schema.$Array<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
767
|
+
readonly document: Schema.String;
|
|
768
|
+
readonly type: Schema.Literal<"quest">;
|
|
769
|
+
}>, Schema.Struct<{
|
|
770
|
+
readonly from: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
771
|
+
readonly passed: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
772
|
+
readonly to: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
773
|
+
readonly type: Schema.Literal<"clock">;
|
|
774
|
+
}>]>>>;
|
|
775
|
+
}>>;
|
|
776
|
+
}>, Schema.Struct<{
|
|
777
|
+
readonly input: Schema.suspend<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
778
|
+
readonly occasion: Schema.String;
|
|
779
|
+
readonly payload: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
780
|
+
readonly pick: Schema.optionalKey<Schema.NullOr<Schema.suspend<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
781
|
+
readonly beat: Schema.String;
|
|
782
|
+
}>]>>>>;
|
|
783
|
+
readonly target: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
784
|
+
readonly type: Schema.Literal<"raiseOccasion">;
|
|
785
|
+
readonly writes: Schema.optionalKey<Schema.suspend<Schema.Struct<{
|
|
786
|
+
readonly accept: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
787
|
+
readonly facts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
788
|
+
readonly retract: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
789
|
+
readonly state: Schema.optionalKey<Schema.$Array<Schema.suspend<Schema.Struct<{
|
|
790
|
+
readonly add: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
791
|
+
readonly path: Schema.String;
|
|
792
|
+
readonly value: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
793
|
+
}>>>>;
|
|
794
|
+
}>>>;
|
|
795
|
+
}>, Schema.Struct<{
|
|
796
|
+
readonly option: Schema.String;
|
|
797
|
+
readonly request: Schema.Int;
|
|
798
|
+
readonly type: Schema.Literal<"choose">;
|
|
799
|
+
}>, Schema.Struct<{
|
|
800
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
801
|
+
readonly request: Schema.Int;
|
|
802
|
+
readonly type: Schema.Literal<"bridgeResult">;
|
|
803
|
+
}>, Schema.Struct<{
|
|
804
|
+
readonly by: Schema.suspend<Schema.Union<readonly [Schema.String, Schema.Int, Schema.Struct<{
|
|
805
|
+
readonly to: Schema.String;
|
|
806
|
+
}>, Schema.Struct<{
|
|
807
|
+
readonly to: Schema.suspend<Schema.Struct<{
|
|
808
|
+
readonly slot: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
809
|
+
readonly weekday: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
810
|
+
}>>;
|
|
811
|
+
}>]>>;
|
|
812
|
+
readonly pick: Schema.optionalKey<Schema.NullOr<Schema.suspend<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
813
|
+
readonly beat: Schema.String;
|
|
814
|
+
}>]>>>>;
|
|
815
|
+
readonly type: Schema.Literal<"advanceClock">;
|
|
816
|
+
readonly writes: Schema.optionalKey<Schema.suspend<Schema.Struct<{
|
|
817
|
+
readonly accept: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
818
|
+
readonly facts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
819
|
+
readonly retract: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
820
|
+
readonly state: Schema.optionalKey<Schema.$Array<Schema.suspend<Schema.Struct<{
|
|
821
|
+
readonly add: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
822
|
+
readonly path: Schema.String;
|
|
823
|
+
readonly value: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
824
|
+
}>>>>;
|
|
825
|
+
}>>>;
|
|
826
|
+
}>, Schema.Struct<{
|
|
827
|
+
readonly type: Schema.Literal<"hostWrite">;
|
|
828
|
+
readonly writes: Schema.suspend<Schema.Struct<{
|
|
829
|
+
readonly accept: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
830
|
+
readonly facts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
831
|
+
readonly retract: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
832
|
+
readonly state: Schema.optionalKey<Schema.$Array<Schema.suspend<Schema.Struct<{
|
|
833
|
+
readonly add: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
834
|
+
readonly path: Schema.String;
|
|
835
|
+
readonly value: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
836
|
+
}>>>>;
|
|
837
|
+
}>>;
|
|
838
|
+
}>, Schema.Struct<{
|
|
839
|
+
readonly name: Schema.String;
|
|
840
|
+
readonly type: Schema.Literal<"worldEvent">;
|
|
841
|
+
}>, Schema.Struct<{
|
|
842
|
+
readonly type: Schema.Literal<"newRun">;
|
|
843
|
+
readonly writes: Schema.optionalKey<Schema.suspend<Schema.Struct<{
|
|
844
|
+
readonly accept: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
845
|
+
readonly facts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
846
|
+
readonly retract: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
847
|
+
readonly state: Schema.optionalKey<Schema.$Array<Schema.suspend<Schema.Struct<{
|
|
848
|
+
readonly add: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
849
|
+
readonly path: Schema.String;
|
|
850
|
+
readonly value: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
851
|
+
}>>>>;
|
|
852
|
+
}>>>;
|
|
853
|
+
}>]>>;
|
|
854
|
+
readonly rejected: Schema.suspend<Schema.Struct<{
|
|
855
|
+
readonly code: Schema.String;
|
|
856
|
+
readonly message: Schema.String;
|
|
857
|
+
}>>;
|
|
858
|
+
}>, Schema.Struct<{
|
|
859
|
+
readonly rejected: Schema.suspend<Schema.Struct<{
|
|
860
|
+
readonly code: Schema.String;
|
|
861
|
+
readonly message: Schema.String;
|
|
862
|
+
}>>;
|
|
863
|
+
readonly seed: Schema.suspend<Schema.Struct<{
|
|
864
|
+
readonly derive: Schema.optionalKey<Schema.Boolean>;
|
|
865
|
+
readonly facts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
866
|
+
readonly save: Schema.optionalKey<Schema.suspend<Schema.Struct<{
|
|
867
|
+
readonly entriesRead: Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Array<Schema.String>>>;
|
|
868
|
+
readonly presented: Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Array<Schema.String>>>;
|
|
869
|
+
readonly questInstances: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Int>>;
|
|
870
|
+
readonly quests: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
871
|
+
readonly visited: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
872
|
+
}>>>;
|
|
873
|
+
readonly state: Schema.optionalKey<Schema.$Array<Schema.suspend<Schema.Struct<{
|
|
874
|
+
readonly add: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
875
|
+
readonly path: Schema.String;
|
|
876
|
+
readonly value: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
877
|
+
}>>>>;
|
|
878
|
+
}>>;
|
|
879
|
+
}>]>;
|
|
880
|
+
export type StreamLine = typeof StreamLine.Type;
|
|
881
|
+
/**
|
|
882
|
+
* Three-valued trace value (§4.3). The explicit tag preserves CEL integer
|
|
883
|
+
* versus double values in JSON.
|
|
884
|
+
*/
|
|
885
|
+
export declare const Value: Schema.toTaggedUnion<"kind", readonly [Schema.Struct<{
|
|
886
|
+
readonly kind: Schema.Literal<"bool">;
|
|
887
|
+
readonly value: Schema.Boolean;
|
|
888
|
+
}>, Schema.Struct<{
|
|
889
|
+
readonly kind: Schema.Literal<"int">;
|
|
890
|
+
readonly value: Schema.Int;
|
|
891
|
+
}>, Schema.Struct<{
|
|
892
|
+
readonly kind: Schema.Literal<"double">;
|
|
893
|
+
readonly value: Schema.Number;
|
|
894
|
+
}>, Schema.Struct<{
|
|
895
|
+
readonly kind: Schema.Literal<"str">;
|
|
896
|
+
readonly value: Schema.String;
|
|
897
|
+
}>, Schema.Struct<{
|
|
898
|
+
readonly kind: Schema.Literal<"unknown">;
|
|
899
|
+
}>, Schema.Struct<{
|
|
900
|
+
readonly kind: Schema.Literal<"error">;
|
|
901
|
+
readonly value: Schema.String;
|
|
902
|
+
}>]>;
|
|
903
|
+
export type Value = typeof Value.Type;
|
|
904
|
+
export declare const Verdict: Schema.toTaggedUnion<"verdict", readonly [Schema.Struct<{
|
|
905
|
+
readonly verdict: Schema.Literal<"eligible">;
|
|
906
|
+
}>, Schema.Struct<{
|
|
907
|
+
readonly premise: Schema.suspend<Schema.toTaggedUnion<"premise", readonly [Schema.Struct<{
|
|
908
|
+
readonly once: Schema.optionalKey<Schema.NullOr<Schema.suspend<Schema.String>>>;
|
|
909
|
+
readonly premise: Schema.Literal<"spent">;
|
|
910
|
+
readonly reason: Schema.String;
|
|
911
|
+
}>, Schema.Struct<{
|
|
912
|
+
readonly chapters: Schema.Boolean;
|
|
913
|
+
readonly premise: Schema.Literal<"after">;
|
|
914
|
+
readonly raw: Schema.String;
|
|
915
|
+
readonly unmet: Schema.$Array<Schema.suspend<Schema.Union<readonly [Schema.Struct<{
|
|
916
|
+
readonly visited: Schema.String;
|
|
917
|
+
}>, Schema.Struct<{
|
|
918
|
+
readonly completed: Schema.String;
|
|
919
|
+
}>, Schema.Struct<{
|
|
920
|
+
readonly active: Schema.String;
|
|
921
|
+
}>]>>>;
|
|
922
|
+
}>, Schema.Struct<{
|
|
923
|
+
readonly premise: Schema.Literal<"spentBy">;
|
|
924
|
+
readonly raw: Schema.String;
|
|
925
|
+
}>, Schema.Struct<{
|
|
926
|
+
readonly premise: Schema.Literal<"when">;
|
|
927
|
+
readonly raw: Schema.String;
|
|
928
|
+
}>, Schema.Struct<{
|
|
929
|
+
readonly occasion: Schema.String;
|
|
930
|
+
readonly premise: Schema.Literal<"gate">;
|
|
931
|
+
readonly raw: Schema.String;
|
|
932
|
+
readonly reads: Schema.$Array<Schema.suspend<Schema.toTaggedUnion<"kind", readonly [Schema.Struct<{
|
|
933
|
+
readonly kind: Schema.Literal<"path">;
|
|
934
|
+
readonly value: Schema.Tuple<readonly [Schema.String, Schema.suspend<Schema.toTaggedUnion<"kind", readonly [Schema.Struct<{
|
|
935
|
+
readonly kind: Schema.Literal<"bool">;
|
|
936
|
+
readonly value: Schema.Boolean;
|
|
937
|
+
}>, Schema.Struct<{
|
|
938
|
+
readonly kind: Schema.Literal<"int">;
|
|
939
|
+
readonly value: Schema.Int;
|
|
940
|
+
}>, Schema.Struct<{
|
|
941
|
+
readonly kind: Schema.Literal<"double">;
|
|
942
|
+
readonly value: Schema.Number;
|
|
943
|
+
}>, Schema.Struct<{
|
|
944
|
+
readonly kind: Schema.Literal<"str">;
|
|
945
|
+
readonly value: Schema.String;
|
|
946
|
+
}>, Schema.Struct<{
|
|
947
|
+
readonly kind: Schema.Literal<"unknown">;
|
|
948
|
+
}>, Schema.Struct<{
|
|
949
|
+
readonly kind: Schema.Literal<"error">;
|
|
950
|
+
readonly value: Schema.String;
|
|
951
|
+
}>]>>]>;
|
|
952
|
+
}>, Schema.Struct<{
|
|
953
|
+
readonly kind: Schema.Literal<"fact">;
|
|
954
|
+
readonly value: Schema.String;
|
|
955
|
+
}>, Schema.Struct<{
|
|
956
|
+
readonly kind: Schema.Literal<"derived">;
|
|
957
|
+
readonly value: Schema.Struct<{
|
|
958
|
+
readonly base: Schema.$Array<Schema.String>;
|
|
959
|
+
readonly fact: Schema.String;
|
|
960
|
+
readonly rules: Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.$Array<Schema.String>]>>;
|
|
961
|
+
}>;
|
|
962
|
+
}>, Schema.Struct<{
|
|
963
|
+
readonly kind: Schema.Literal<"visited">;
|
|
964
|
+
readonly value: Schema.String;
|
|
965
|
+
}>, Schema.Struct<{
|
|
966
|
+
readonly kind: Schema.Literal<"holds">;
|
|
967
|
+
readonly value: Schema.String;
|
|
968
|
+
}>, Schema.Struct<{
|
|
969
|
+
readonly kind: Schema.Literal<"seen">;
|
|
970
|
+
readonly value: Schema.String;
|
|
971
|
+
}>]>>>;
|
|
972
|
+
}>, Schema.Struct<{
|
|
973
|
+
readonly occasion: Schema.String;
|
|
974
|
+
readonly premise: Schema.Literal<"terminal">;
|
|
975
|
+
readonly raw: Schema.String;
|
|
976
|
+
}>]>>;
|
|
977
|
+
readonly verdict: Schema.Literal<"ineligible">;
|
|
978
|
+
}>, Schema.Struct<{
|
|
979
|
+
readonly verdict: Schema.Literal<"unknown">;
|
|
980
|
+
readonly why: Schema.String;
|
|
981
|
+
}>]>;
|
|
982
|
+
export type Verdict = typeof Verdict.Type;
|
|
983
|
+
/**
|
|
984
|
+
* The world at one moment of a play: the effective state, every fact that
|
|
985
|
+
* holds after derivation (rendered `rel(a, b)`), every declared quest's
|
|
986
|
+
* status, and the declared clock's position.
|
|
987
|
+
*/
|
|
988
|
+
export declare const WorldView: Schema.Struct<{
|
|
989
|
+
readonly clock: Schema.optionalKey<Schema.NullOr<Schema.suspend<Schema.Struct<{
|
|
990
|
+
readonly day: Schema.Int;
|
|
991
|
+
readonly ended: Schema.optionalKey<Schema.NullOr<Schema.Boolean>>;
|
|
992
|
+
readonly last: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
993
|
+
readonly slot: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
994
|
+
readonly weekday: Schema.optionalKey<Schema.NullOr<Schema.Int>>;
|
|
995
|
+
readonly weekdayLabel: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
996
|
+
}>>>>;
|
|
997
|
+
readonly facts: Schema.optionalKey<Schema.UniqueArray<Schema.String>>;
|
|
998
|
+
readonly quests: Schema.$Record<Schema.String, Schema.String>;
|
|
999
|
+
readonly state: Schema.$Record<Schema.String, Schema.suspend<Schema.toTaggedUnion<"kind", readonly [Schema.Struct<{
|
|
1000
|
+
readonly kind: Schema.Literal<"bool">;
|
|
1001
|
+
readonly value: Schema.Boolean;
|
|
1002
|
+
}>, Schema.Struct<{
|
|
1003
|
+
readonly kind: Schema.Literal<"int">;
|
|
1004
|
+
readonly value: Schema.Int;
|
|
1005
|
+
}>, Schema.Struct<{
|
|
1006
|
+
readonly kind: Schema.Literal<"double">;
|
|
1007
|
+
readonly value: Schema.Number;
|
|
1008
|
+
}>, Schema.Struct<{
|
|
1009
|
+
readonly kind: Schema.Literal<"str">;
|
|
1010
|
+
readonly value: Schema.String;
|
|
1011
|
+
}>, Schema.Struct<{
|
|
1012
|
+
readonly kind: Schema.Literal<"unknown">;
|
|
1013
|
+
}>, Schema.Struct<{
|
|
1014
|
+
readonly kind: Schema.Literal<"error">;
|
|
1015
|
+
readonly value: Schema.String;
|
|
1016
|
+
}>]>>>;
|
|
1017
|
+
}>;
|
|
1018
|
+
export type WorldView = typeof WorldView.Type;
|
|
1019
|
+
export declare const WritesInput: Schema.Struct<{
|
|
1020
|
+
readonly accept: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1021
|
+
readonly facts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1022
|
+
readonly retract: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1023
|
+
readonly state: Schema.optionalKey<Schema.$Array<Schema.suspend<Schema.Struct<{
|
|
1024
|
+
readonly add: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
1025
|
+
readonly path: Schema.String;
|
|
1026
|
+
readonly value: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1027
|
+
}>>>>;
|
|
1028
|
+
}>;
|
|
1029
|
+
export type WritesInput = typeof WritesInput.Type;
|
|
1030
|
+
export declare const Answer: Schema.Union<readonly [Schema.Struct<{
|
|
1031
|
+
readonly choice: Schema.Struct<{
|
|
1032
|
+
readonly id: Schema.String;
|
|
1033
|
+
readonly option: Schema.String;
|
|
1034
|
+
}>;
|
|
1035
|
+
}>, Schema.Struct<{
|
|
1036
|
+
readonly bridge: Schema.Struct<{
|
|
1037
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1038
|
+
readonly tag: Schema.String;
|
|
1039
|
+
}>;
|
|
1040
|
+
}>]>;
|
|
1041
|
+
export type Answer = typeof Answer.Type;
|
|
1042
|
+
/**
|
|
1043
|
+
* The cadence memory a playthrough carries between steps.
|
|
1044
|
+
*/
|
|
1045
|
+
export declare const Cadence: Schema.Struct<{
|
|
1046
|
+
readonly latched: Schema.$Record<Schema.String, Schema.NullOr<Schema.suspend<Schema.Struct<{
|
|
1047
|
+
readonly day: Schema.Int;
|
|
1048
|
+
readonly slot: Schema.Int;
|
|
1049
|
+
}>>>>;
|
|
1050
|
+
readonly live: Schema.$Record<Schema.String, Schema.Boolean>;
|
|
1051
|
+
readonly rearm: Schema.$Record<Schema.String, Schema.Boolean>;
|
|
1052
|
+
readonly spentSeason: Schema.UniqueArray<Schema.String>;
|
|
1053
|
+
readonly windows: Schema.UniqueArray<Schema.String>;
|
|
1054
|
+
}>;
|
|
1055
|
+
export type Cadence = typeof Cadence.Type;
|
|
1056
|
+
export declare const Continuation: Schema.Struct<{
|
|
1057
|
+
readonly answers: Schema.$Array<Schema.suspend<Schema.Union<readonly [Schema.Struct<{
|
|
1058
|
+
readonly choice: Schema.Struct<{
|
|
1059
|
+
readonly id: Schema.String;
|
|
1060
|
+
readonly option: Schema.String;
|
|
1061
|
+
}>;
|
|
1062
|
+
}>, Schema.Struct<{
|
|
1063
|
+
readonly bridge: Schema.Struct<{
|
|
1064
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1065
|
+
readonly tag: Schema.String;
|
|
1066
|
+
}>;
|
|
1067
|
+
}>]>>>;
|
|
1068
|
+
readonly before: Schema.suspend<Schema.Struct<{
|
|
1069
|
+
readonly accepts: Schema.$Array<Schema.String>;
|
|
1070
|
+
readonly advanceCascadeDepth: Schema.Int;
|
|
1071
|
+
readonly cadence: Schema.suspend<Schema.Struct<{
|
|
1072
|
+
readonly latched: Schema.$Record<Schema.String, Schema.NullOr<Schema.suspend<Schema.Struct<{
|
|
1073
|
+
readonly day: Schema.Int;
|
|
1074
|
+
readonly slot: Schema.Int;
|
|
1075
|
+
}>>>>;
|
|
1076
|
+
readonly live: Schema.$Record<Schema.String, Schema.Boolean>;
|
|
1077
|
+
readonly rearm: Schema.$Record<Schema.String, Schema.Boolean>;
|
|
1078
|
+
readonly spentSeason: Schema.UniqueArray<Schema.String>;
|
|
1079
|
+
readonly windows: Schema.UniqueArray<Schema.String>;
|
|
1080
|
+
}>>;
|
|
1081
|
+
readonly clockAdvancedByBeat: Schema.Boolean;
|
|
1082
|
+
readonly deferBy: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1083
|
+
readonly deferHandlers: Schema.Boolean;
|
|
1084
|
+
readonly deferredHandlers: Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.String]>>;
|
|
1085
|
+
readonly derive: Schema.optionalKey<Schema.NullOr<Schema.Boolean>>;
|
|
1086
|
+
readonly facts: Schema.UniqueArray<Schema.Tuple<readonly [Schema.String, Schema.$Array<Schema.String>]>>;
|
|
1087
|
+
readonly failedObjectives: Schema.UniqueArray<Schema.String>;
|
|
1088
|
+
readonly nextRunAccepts: Schema.$Array<Schema.String>;
|
|
1089
|
+
readonly questInstances: Schema.$Record<Schema.String, Schema.Int>;
|
|
1090
|
+
readonly quests: Schema.$Record<Schema.String, Schema.String>;
|
|
1091
|
+
readonly shareSpentBy: Schema.$Record<Schema.String, Schema.String>;
|
|
1092
|
+
readonly spentAt: Schema.$Record<Schema.String, Schema.suspend<Schema.Struct<{
|
|
1093
|
+
readonly day: Schema.Int;
|
|
1094
|
+
readonly slot: Schema.Int;
|
|
1095
|
+
}>>>;
|
|
1096
|
+
readonly spentRun: Schema.UniqueArray<Schema.String>;
|
|
1097
|
+
readonly spentUser: Schema.UniqueArray<Schema.String>;
|
|
1098
|
+
readonly state: Schema.$Record<Schema.String, Schema.suspend<Schema.toTaggedUnion<"kind", readonly [Schema.Struct<{
|
|
1099
|
+
readonly kind: Schema.Literal<"bool">;
|
|
1100
|
+
readonly value: Schema.Boolean;
|
|
1101
|
+
}>, Schema.Struct<{
|
|
1102
|
+
readonly kind: Schema.Literal<"int">;
|
|
1103
|
+
readonly value: Schema.Int;
|
|
1104
|
+
}>, Schema.Struct<{
|
|
1105
|
+
readonly kind: Schema.Literal<"double">;
|
|
1106
|
+
readonly value: Schema.Number;
|
|
1107
|
+
}>, Schema.Struct<{
|
|
1108
|
+
readonly kind: Schema.Literal<"str">;
|
|
1109
|
+
readonly value: Schema.String;
|
|
1110
|
+
}>, Schema.Struct<{
|
|
1111
|
+
readonly kind: Schema.Literal<"unknown">;
|
|
1112
|
+
}>, Schema.Struct<{
|
|
1113
|
+
readonly kind: Schema.Literal<"error">;
|
|
1114
|
+
readonly value: Schema.String;
|
|
1115
|
+
}>]>>>;
|
|
1116
|
+
readonly visited: Schema.UniqueArray<Schema.String>;
|
|
1117
|
+
}>>;
|
|
1118
|
+
readonly delivered: Schema.Int;
|
|
1119
|
+
readonly input: Schema.suspend<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
1120
|
+
readonly occasion: Schema.String;
|
|
1121
|
+
readonly payload: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1122
|
+
readonly pick: Schema.optionalKey<Schema.NullOr<Schema.suspend<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1123
|
+
readonly beat: Schema.String;
|
|
1124
|
+
}>]>>>>;
|
|
1125
|
+
readonly target: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1126
|
+
readonly type: Schema.Literal<"raiseOccasion">;
|
|
1127
|
+
readonly writes: Schema.optionalKey<Schema.suspend<Schema.Struct<{
|
|
1128
|
+
readonly accept: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1129
|
+
readonly facts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1130
|
+
readonly retract: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1131
|
+
readonly state: Schema.optionalKey<Schema.$Array<Schema.suspend<Schema.Struct<{
|
|
1132
|
+
readonly add: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
1133
|
+
readonly path: Schema.String;
|
|
1134
|
+
readonly value: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1135
|
+
}>>>>;
|
|
1136
|
+
}>>>;
|
|
1137
|
+
}>, Schema.Struct<{
|
|
1138
|
+
readonly option: Schema.String;
|
|
1139
|
+
readonly request: Schema.Int;
|
|
1140
|
+
readonly type: Schema.Literal<"choose">;
|
|
1141
|
+
}>, Schema.Struct<{
|
|
1142
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1143
|
+
readonly request: Schema.Int;
|
|
1144
|
+
readonly type: Schema.Literal<"bridgeResult">;
|
|
1145
|
+
}>, Schema.Struct<{
|
|
1146
|
+
readonly by: Schema.suspend<Schema.Union<readonly [Schema.String, Schema.Int, Schema.Struct<{
|
|
1147
|
+
readonly to: Schema.String;
|
|
1148
|
+
}>, Schema.Struct<{
|
|
1149
|
+
readonly to: Schema.suspend<Schema.Struct<{
|
|
1150
|
+
readonly slot: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1151
|
+
readonly weekday: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1152
|
+
}>>;
|
|
1153
|
+
}>]>>;
|
|
1154
|
+
readonly pick: Schema.optionalKey<Schema.NullOr<Schema.suspend<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1155
|
+
readonly beat: Schema.String;
|
|
1156
|
+
}>]>>>>;
|
|
1157
|
+
readonly type: Schema.Literal<"advanceClock">;
|
|
1158
|
+
readonly writes: Schema.optionalKey<Schema.suspend<Schema.Struct<{
|
|
1159
|
+
readonly accept: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1160
|
+
readonly facts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1161
|
+
readonly retract: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1162
|
+
readonly state: Schema.optionalKey<Schema.$Array<Schema.suspend<Schema.Struct<{
|
|
1163
|
+
readonly add: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
1164
|
+
readonly path: Schema.String;
|
|
1165
|
+
readonly value: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1166
|
+
}>>>>;
|
|
1167
|
+
}>>>;
|
|
1168
|
+
}>, Schema.Struct<{
|
|
1169
|
+
readonly type: Schema.Literal<"hostWrite">;
|
|
1170
|
+
readonly writes: Schema.suspend<Schema.Struct<{
|
|
1171
|
+
readonly accept: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1172
|
+
readonly facts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1173
|
+
readonly retract: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1174
|
+
readonly state: Schema.optionalKey<Schema.$Array<Schema.suspend<Schema.Struct<{
|
|
1175
|
+
readonly add: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
1176
|
+
readonly path: Schema.String;
|
|
1177
|
+
readonly value: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1178
|
+
}>>>>;
|
|
1179
|
+
}>>;
|
|
1180
|
+
}>, Schema.Struct<{
|
|
1181
|
+
readonly name: Schema.String;
|
|
1182
|
+
readonly type: Schema.Literal<"worldEvent">;
|
|
1183
|
+
}>, Schema.Struct<{
|
|
1184
|
+
readonly type: Schema.Literal<"newRun">;
|
|
1185
|
+
readonly writes: Schema.optionalKey<Schema.suspend<Schema.Struct<{
|
|
1186
|
+
readonly accept: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1187
|
+
readonly facts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1188
|
+
readonly retract: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1189
|
+
readonly state: Schema.optionalKey<Schema.$Array<Schema.suspend<Schema.Struct<{
|
|
1190
|
+
readonly add: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
1191
|
+
readonly path: Schema.String;
|
|
1192
|
+
readonly value: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1193
|
+
}>>>>;
|
|
1194
|
+
}>>>;
|
|
1195
|
+
}>]>>;
|
|
1196
|
+
readonly pending: Schema.suspend<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
1197
|
+
readonly menu: Schema.suspend<Schema.Struct<{
|
|
1198
|
+
readonly construct: Schema.String;
|
|
1199
|
+
readonly document: Schema.String;
|
|
1200
|
+
readonly id: Schema.String;
|
|
1201
|
+
readonly options: Schema.$Array<Schema.suspend<Schema.Struct<{
|
|
1202
|
+
readonly exit: Schema.Boolean;
|
|
1203
|
+
readonly id: Schema.String;
|
|
1204
|
+
readonly once: Schema.Boolean;
|
|
1205
|
+
readonly verdict: Schema.String;
|
|
1206
|
+
}>>>;
|
|
1207
|
+
readonly position: Schema.String;
|
|
1208
|
+
readonly presentation: Schema.Int;
|
|
1209
|
+
readonly prompt: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1210
|
+
readonly timeout: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
1211
|
+
}>>;
|
|
1212
|
+
readonly request: Schema.Int;
|
|
1213
|
+
readonly type: Schema.Literal<"awaitChoice">;
|
|
1214
|
+
}>, Schema.Struct<{
|
|
1215
|
+
readonly document: Schema.String;
|
|
1216
|
+
readonly fields: Schema.$Record<Schema.String, Schema.String>;
|
|
1217
|
+
readonly position: Schema.String;
|
|
1218
|
+
readonly request: Schema.Int;
|
|
1219
|
+
readonly tag: Schema.String;
|
|
1220
|
+
readonly type: Schema.Literal<"awaitBridge">;
|
|
1221
|
+
}>, Schema.Struct<{
|
|
1222
|
+
readonly type: Schema.Literal<"idle">;
|
|
1223
|
+
}>, Schema.Struct<{
|
|
1224
|
+
readonly reason: Schema.String;
|
|
1225
|
+
readonly type: Schema.Literal<"ended">;
|
|
1226
|
+
}>, Schema.Struct<{
|
|
1227
|
+
readonly kind: Schema.String;
|
|
1228
|
+
readonly message: Schema.String;
|
|
1229
|
+
readonly site: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1230
|
+
readonly type: Schema.Literal<"halted">;
|
|
1231
|
+
}>]>>;
|
|
1232
|
+
}>;
|
|
1233
|
+
export type Continuation = typeof Continuation.Type;
|
|
1234
|
+
export declare const World: Schema.Struct<{
|
|
1235
|
+
readonly accepts: Schema.$Array<Schema.String>;
|
|
1236
|
+
readonly advanceCascadeDepth: Schema.Int;
|
|
1237
|
+
readonly cadence: Schema.suspend<Schema.Struct<{
|
|
1238
|
+
readonly latched: Schema.$Record<Schema.String, Schema.NullOr<Schema.suspend<Schema.Struct<{
|
|
1239
|
+
readonly day: Schema.Int;
|
|
1240
|
+
readonly slot: Schema.Int;
|
|
1241
|
+
}>>>>;
|
|
1242
|
+
readonly live: Schema.$Record<Schema.String, Schema.Boolean>;
|
|
1243
|
+
readonly rearm: Schema.$Record<Schema.String, Schema.Boolean>;
|
|
1244
|
+
readonly spentSeason: Schema.UniqueArray<Schema.String>;
|
|
1245
|
+
readonly windows: Schema.UniqueArray<Schema.String>;
|
|
1246
|
+
}>>;
|
|
1247
|
+
readonly clockAdvancedByBeat: Schema.Boolean;
|
|
1248
|
+
readonly deferBy: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1249
|
+
readonly deferHandlers: Schema.Boolean;
|
|
1250
|
+
readonly deferredHandlers: Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.String]>>;
|
|
1251
|
+
readonly derive: Schema.optionalKey<Schema.NullOr<Schema.Boolean>>;
|
|
1252
|
+
readonly facts: Schema.UniqueArray<Schema.Tuple<readonly [Schema.String, Schema.$Array<Schema.String>]>>;
|
|
1253
|
+
readonly failedObjectives: Schema.UniqueArray<Schema.String>;
|
|
1254
|
+
readonly nextRunAccepts: Schema.$Array<Schema.String>;
|
|
1255
|
+
readonly questInstances: Schema.$Record<Schema.String, Schema.Int>;
|
|
1256
|
+
readonly quests: Schema.$Record<Schema.String, Schema.String>;
|
|
1257
|
+
readonly shareSpentBy: Schema.$Record<Schema.String, Schema.String>;
|
|
1258
|
+
readonly spentAt: Schema.$Record<Schema.String, Schema.suspend<Schema.Struct<{
|
|
1259
|
+
readonly day: Schema.Int;
|
|
1260
|
+
readonly slot: Schema.Int;
|
|
1261
|
+
}>>>;
|
|
1262
|
+
readonly spentRun: Schema.UniqueArray<Schema.String>;
|
|
1263
|
+
readonly spentUser: Schema.UniqueArray<Schema.String>;
|
|
1264
|
+
readonly state: Schema.$Record<Schema.String, Schema.suspend<Schema.toTaggedUnion<"kind", readonly [Schema.Struct<{
|
|
1265
|
+
readonly kind: Schema.Literal<"bool">;
|
|
1266
|
+
readonly value: Schema.Boolean;
|
|
1267
|
+
}>, Schema.Struct<{
|
|
1268
|
+
readonly kind: Schema.Literal<"int">;
|
|
1269
|
+
readonly value: Schema.Int;
|
|
1270
|
+
}>, Schema.Struct<{
|
|
1271
|
+
readonly kind: Schema.Literal<"double">;
|
|
1272
|
+
readonly value: Schema.Number;
|
|
1273
|
+
}>, Schema.Struct<{
|
|
1274
|
+
readonly kind: Schema.Literal<"str">;
|
|
1275
|
+
readonly value: Schema.String;
|
|
1276
|
+
}>, Schema.Struct<{
|
|
1277
|
+
readonly kind: Schema.Literal<"unknown">;
|
|
1278
|
+
}>, Schema.Struct<{
|
|
1279
|
+
readonly kind: Schema.Literal<"error">;
|
|
1280
|
+
readonly value: Schema.String;
|
|
1281
|
+
}>]>>>;
|
|
1282
|
+
readonly visited: Schema.UniqueArray<Schema.String>;
|
|
1283
|
+
}>;
|
|
1284
|
+
export type World = typeof World.Type;
|
|
1285
|
+
/**
|
|
1286
|
+
* A serialized, resumable runtime state.
|
|
1287
|
+
*/
|
|
1288
|
+
export declare const Snapshot: Schema.Struct<{
|
|
1289
|
+
readonly await: Schema.suspend<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
1290
|
+
readonly menu: Schema.suspend<Schema.Struct<{
|
|
1291
|
+
readonly construct: Schema.String;
|
|
1292
|
+
readonly document: Schema.String;
|
|
1293
|
+
readonly id: Schema.String;
|
|
1294
|
+
readonly options: Schema.$Array<Schema.suspend<Schema.Struct<{
|
|
1295
|
+
readonly exit: Schema.Boolean;
|
|
1296
|
+
readonly id: Schema.String;
|
|
1297
|
+
readonly once: Schema.Boolean;
|
|
1298
|
+
readonly verdict: Schema.String;
|
|
1299
|
+
}>>>;
|
|
1300
|
+
readonly position: Schema.String;
|
|
1301
|
+
readonly presentation: Schema.Int;
|
|
1302
|
+
readonly prompt: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1303
|
+
readonly timeout: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
1304
|
+
}>>;
|
|
1305
|
+
readonly request: Schema.Int;
|
|
1306
|
+
readonly type: Schema.Literal<"awaitChoice">;
|
|
1307
|
+
}>, Schema.Struct<{
|
|
1308
|
+
readonly document: Schema.String;
|
|
1309
|
+
readonly fields: Schema.$Record<Schema.String, Schema.String>;
|
|
1310
|
+
readonly position: Schema.String;
|
|
1311
|
+
readonly request: Schema.Int;
|
|
1312
|
+
readonly tag: Schema.String;
|
|
1313
|
+
readonly type: Schema.Literal<"awaitBridge">;
|
|
1314
|
+
}>, Schema.Struct<{
|
|
1315
|
+
readonly type: Schema.Literal<"idle">;
|
|
1316
|
+
}>, Schema.Struct<{
|
|
1317
|
+
readonly reason: Schema.String;
|
|
1318
|
+
readonly type: Schema.Literal<"ended">;
|
|
1319
|
+
}>, Schema.Struct<{
|
|
1320
|
+
readonly kind: Schema.String;
|
|
1321
|
+
readonly message: Schema.String;
|
|
1322
|
+
readonly site: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1323
|
+
readonly type: Schema.Literal<"halted">;
|
|
1324
|
+
}>]>>;
|
|
1325
|
+
readonly continuation: Schema.optionalKey<Schema.NullOr<Schema.suspend<Schema.Struct<{
|
|
1326
|
+
readonly answers: Schema.$Array<Schema.suspend<Schema.Union<readonly [Schema.Struct<{
|
|
1327
|
+
readonly choice: Schema.Struct<{
|
|
1328
|
+
readonly id: Schema.String;
|
|
1329
|
+
readonly option: Schema.String;
|
|
1330
|
+
}>;
|
|
1331
|
+
}>, Schema.Struct<{
|
|
1332
|
+
readonly bridge: Schema.Struct<{
|
|
1333
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1334
|
+
readonly tag: Schema.String;
|
|
1335
|
+
}>;
|
|
1336
|
+
}>]>>>;
|
|
1337
|
+
readonly before: Schema.suspend<Schema.Struct<{
|
|
1338
|
+
readonly accepts: Schema.$Array<Schema.String>;
|
|
1339
|
+
readonly advanceCascadeDepth: Schema.Int;
|
|
1340
|
+
readonly cadence: Schema.suspend<Schema.Struct<{
|
|
1341
|
+
readonly latched: Schema.$Record<Schema.String, Schema.NullOr<Schema.suspend<Schema.Struct<{
|
|
1342
|
+
readonly day: Schema.Int;
|
|
1343
|
+
readonly slot: Schema.Int;
|
|
1344
|
+
}>>>>;
|
|
1345
|
+
readonly live: Schema.$Record<Schema.String, Schema.Boolean>;
|
|
1346
|
+
readonly rearm: Schema.$Record<Schema.String, Schema.Boolean>;
|
|
1347
|
+
readonly spentSeason: Schema.UniqueArray<Schema.String>;
|
|
1348
|
+
readonly windows: Schema.UniqueArray<Schema.String>;
|
|
1349
|
+
}>>;
|
|
1350
|
+
readonly clockAdvancedByBeat: Schema.Boolean;
|
|
1351
|
+
readonly deferBy: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1352
|
+
readonly deferHandlers: Schema.Boolean;
|
|
1353
|
+
readonly deferredHandlers: Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.String]>>;
|
|
1354
|
+
readonly derive: Schema.optionalKey<Schema.NullOr<Schema.Boolean>>;
|
|
1355
|
+
readonly facts: Schema.UniqueArray<Schema.Tuple<readonly [Schema.String, Schema.$Array<Schema.String>]>>;
|
|
1356
|
+
readonly failedObjectives: Schema.UniqueArray<Schema.String>;
|
|
1357
|
+
readonly nextRunAccepts: Schema.$Array<Schema.String>;
|
|
1358
|
+
readonly questInstances: Schema.$Record<Schema.String, Schema.Int>;
|
|
1359
|
+
readonly quests: Schema.$Record<Schema.String, Schema.String>;
|
|
1360
|
+
readonly shareSpentBy: Schema.$Record<Schema.String, Schema.String>;
|
|
1361
|
+
readonly spentAt: Schema.$Record<Schema.String, Schema.suspend<Schema.Struct<{
|
|
1362
|
+
readonly day: Schema.Int;
|
|
1363
|
+
readonly slot: Schema.Int;
|
|
1364
|
+
}>>>;
|
|
1365
|
+
readonly spentRun: Schema.UniqueArray<Schema.String>;
|
|
1366
|
+
readonly spentUser: Schema.UniqueArray<Schema.String>;
|
|
1367
|
+
readonly state: Schema.$Record<Schema.String, Schema.suspend<Schema.toTaggedUnion<"kind", readonly [Schema.Struct<{
|
|
1368
|
+
readonly kind: Schema.Literal<"bool">;
|
|
1369
|
+
readonly value: Schema.Boolean;
|
|
1370
|
+
}>, Schema.Struct<{
|
|
1371
|
+
readonly kind: Schema.Literal<"int">;
|
|
1372
|
+
readonly value: Schema.Int;
|
|
1373
|
+
}>, Schema.Struct<{
|
|
1374
|
+
readonly kind: Schema.Literal<"double">;
|
|
1375
|
+
readonly value: Schema.Number;
|
|
1376
|
+
}>, Schema.Struct<{
|
|
1377
|
+
readonly kind: Schema.Literal<"str">;
|
|
1378
|
+
readonly value: Schema.String;
|
|
1379
|
+
}>, Schema.Struct<{
|
|
1380
|
+
readonly kind: Schema.Literal<"unknown">;
|
|
1381
|
+
}>, Schema.Struct<{
|
|
1382
|
+
readonly kind: Schema.Literal<"error">;
|
|
1383
|
+
readonly value: Schema.String;
|
|
1384
|
+
}>]>>>;
|
|
1385
|
+
readonly visited: Schema.UniqueArray<Schema.String>;
|
|
1386
|
+
}>>;
|
|
1387
|
+
readonly delivered: Schema.Int;
|
|
1388
|
+
readonly input: Schema.suspend<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
1389
|
+
readonly occasion: Schema.String;
|
|
1390
|
+
readonly payload: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1391
|
+
readonly pick: Schema.optionalKey<Schema.NullOr<Schema.suspend<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1392
|
+
readonly beat: Schema.String;
|
|
1393
|
+
}>]>>>>;
|
|
1394
|
+
readonly target: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1395
|
+
readonly type: Schema.Literal<"raiseOccasion">;
|
|
1396
|
+
readonly writes: Schema.optionalKey<Schema.suspend<Schema.Struct<{
|
|
1397
|
+
readonly accept: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1398
|
+
readonly facts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1399
|
+
readonly retract: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1400
|
+
readonly state: Schema.optionalKey<Schema.$Array<Schema.suspend<Schema.Struct<{
|
|
1401
|
+
readonly add: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
1402
|
+
readonly path: Schema.String;
|
|
1403
|
+
readonly value: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1404
|
+
}>>>>;
|
|
1405
|
+
}>>>;
|
|
1406
|
+
}>, Schema.Struct<{
|
|
1407
|
+
readonly option: Schema.String;
|
|
1408
|
+
readonly request: Schema.Int;
|
|
1409
|
+
readonly type: Schema.Literal<"choose">;
|
|
1410
|
+
}>, Schema.Struct<{
|
|
1411
|
+
readonly fields: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1412
|
+
readonly request: Schema.Int;
|
|
1413
|
+
readonly type: Schema.Literal<"bridgeResult">;
|
|
1414
|
+
}>, Schema.Struct<{
|
|
1415
|
+
readonly by: Schema.suspend<Schema.Union<readonly [Schema.String, Schema.Int, Schema.Struct<{
|
|
1416
|
+
readonly to: Schema.String;
|
|
1417
|
+
}>, Schema.Struct<{
|
|
1418
|
+
readonly to: Schema.suspend<Schema.Struct<{
|
|
1419
|
+
readonly slot: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1420
|
+
readonly weekday: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1421
|
+
}>>;
|
|
1422
|
+
}>]>>;
|
|
1423
|
+
readonly pick: Schema.optionalKey<Schema.NullOr<Schema.suspend<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
1424
|
+
readonly beat: Schema.String;
|
|
1425
|
+
}>]>>>>;
|
|
1426
|
+
readonly type: Schema.Literal<"advanceClock">;
|
|
1427
|
+
readonly writes: Schema.optionalKey<Schema.suspend<Schema.Struct<{
|
|
1428
|
+
readonly accept: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1429
|
+
readonly facts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1430
|
+
readonly retract: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1431
|
+
readonly state: Schema.optionalKey<Schema.$Array<Schema.suspend<Schema.Struct<{
|
|
1432
|
+
readonly add: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
1433
|
+
readonly path: Schema.String;
|
|
1434
|
+
readonly value: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1435
|
+
}>>>>;
|
|
1436
|
+
}>>>;
|
|
1437
|
+
}>, Schema.Struct<{
|
|
1438
|
+
readonly type: Schema.Literal<"hostWrite">;
|
|
1439
|
+
readonly writes: Schema.suspend<Schema.Struct<{
|
|
1440
|
+
readonly accept: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1441
|
+
readonly facts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1442
|
+
readonly retract: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1443
|
+
readonly state: Schema.optionalKey<Schema.$Array<Schema.suspend<Schema.Struct<{
|
|
1444
|
+
readonly add: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
1445
|
+
readonly path: Schema.String;
|
|
1446
|
+
readonly value: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1447
|
+
}>>>>;
|
|
1448
|
+
}>>;
|
|
1449
|
+
}>, Schema.Struct<{
|
|
1450
|
+
readonly name: Schema.String;
|
|
1451
|
+
readonly type: Schema.Literal<"worldEvent">;
|
|
1452
|
+
}>, Schema.Struct<{
|
|
1453
|
+
readonly type: Schema.Literal<"newRun">;
|
|
1454
|
+
readonly writes: Schema.optionalKey<Schema.suspend<Schema.Struct<{
|
|
1455
|
+
readonly accept: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1456
|
+
readonly facts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1457
|
+
readonly retract: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1458
|
+
readonly state: Schema.optionalKey<Schema.$Array<Schema.suspend<Schema.Struct<{
|
|
1459
|
+
readonly add: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
1460
|
+
readonly path: Schema.String;
|
|
1461
|
+
readonly value: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1462
|
+
}>>>>;
|
|
1463
|
+
}>>>;
|
|
1464
|
+
}>]>>;
|
|
1465
|
+
readonly pending: Schema.suspend<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
1466
|
+
readonly menu: Schema.suspend<Schema.Struct<{
|
|
1467
|
+
readonly construct: Schema.String;
|
|
1468
|
+
readonly document: Schema.String;
|
|
1469
|
+
readonly id: Schema.String;
|
|
1470
|
+
readonly options: Schema.$Array<Schema.suspend<Schema.Struct<{
|
|
1471
|
+
readonly exit: Schema.Boolean;
|
|
1472
|
+
readonly id: Schema.String;
|
|
1473
|
+
readonly once: Schema.Boolean;
|
|
1474
|
+
readonly verdict: Schema.String;
|
|
1475
|
+
}>>>;
|
|
1476
|
+
readonly position: Schema.String;
|
|
1477
|
+
readonly presentation: Schema.Int;
|
|
1478
|
+
readonly prompt: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1479
|
+
readonly timeout: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
1480
|
+
}>>;
|
|
1481
|
+
readonly request: Schema.Int;
|
|
1482
|
+
readonly type: Schema.Literal<"awaitChoice">;
|
|
1483
|
+
}>, Schema.Struct<{
|
|
1484
|
+
readonly document: Schema.String;
|
|
1485
|
+
readonly fields: Schema.$Record<Schema.String, Schema.String>;
|
|
1486
|
+
readonly position: Schema.String;
|
|
1487
|
+
readonly request: Schema.Int;
|
|
1488
|
+
readonly tag: Schema.String;
|
|
1489
|
+
readonly type: Schema.Literal<"awaitBridge">;
|
|
1490
|
+
}>, Schema.Struct<{
|
|
1491
|
+
readonly type: Schema.Literal<"idle">;
|
|
1492
|
+
}>, Schema.Struct<{
|
|
1493
|
+
readonly reason: Schema.String;
|
|
1494
|
+
readonly type: Schema.Literal<"ended">;
|
|
1495
|
+
}>, Schema.Struct<{
|
|
1496
|
+
readonly kind: Schema.String;
|
|
1497
|
+
readonly message: Schema.String;
|
|
1498
|
+
readonly site: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1499
|
+
readonly type: Schema.Literal<"halted">;
|
|
1500
|
+
}>]>>;
|
|
1501
|
+
}>>>>;
|
|
1502
|
+
readonly project: Schema.String;
|
|
1503
|
+
readonly request: Schema.Int;
|
|
1504
|
+
readonly snapshotVersion: Schema.String;
|
|
1505
|
+
readonly world: Schema.suspend<Schema.Struct<{
|
|
1506
|
+
readonly accepts: Schema.$Array<Schema.String>;
|
|
1507
|
+
readonly advanceCascadeDepth: Schema.Int;
|
|
1508
|
+
readonly cadence: Schema.suspend<Schema.Struct<{
|
|
1509
|
+
readonly latched: Schema.$Record<Schema.String, Schema.NullOr<Schema.suspend<Schema.Struct<{
|
|
1510
|
+
readonly day: Schema.Int;
|
|
1511
|
+
readonly slot: Schema.Int;
|
|
1512
|
+
}>>>>;
|
|
1513
|
+
readonly live: Schema.$Record<Schema.String, Schema.Boolean>;
|
|
1514
|
+
readonly rearm: Schema.$Record<Schema.String, Schema.Boolean>;
|
|
1515
|
+
readonly spentSeason: Schema.UniqueArray<Schema.String>;
|
|
1516
|
+
readonly windows: Schema.UniqueArray<Schema.String>;
|
|
1517
|
+
}>>;
|
|
1518
|
+
readonly clockAdvancedByBeat: Schema.Boolean;
|
|
1519
|
+
readonly deferBy: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
1520
|
+
readonly deferHandlers: Schema.Boolean;
|
|
1521
|
+
readonly deferredHandlers: Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.String]>>;
|
|
1522
|
+
readonly derive: Schema.optionalKey<Schema.NullOr<Schema.Boolean>>;
|
|
1523
|
+
readonly facts: Schema.UniqueArray<Schema.Tuple<readonly [Schema.String, Schema.$Array<Schema.String>]>>;
|
|
1524
|
+
readonly failedObjectives: Schema.UniqueArray<Schema.String>;
|
|
1525
|
+
readonly nextRunAccepts: Schema.$Array<Schema.String>;
|
|
1526
|
+
readonly questInstances: Schema.$Record<Schema.String, Schema.Int>;
|
|
1527
|
+
readonly quests: Schema.$Record<Schema.String, Schema.String>;
|
|
1528
|
+
readonly shareSpentBy: Schema.$Record<Schema.String, Schema.String>;
|
|
1529
|
+
readonly spentAt: Schema.$Record<Schema.String, Schema.suspend<Schema.Struct<{
|
|
1530
|
+
readonly day: Schema.Int;
|
|
1531
|
+
readonly slot: Schema.Int;
|
|
1532
|
+
}>>>;
|
|
1533
|
+
readonly spentRun: Schema.UniqueArray<Schema.String>;
|
|
1534
|
+
readonly spentUser: Schema.UniqueArray<Schema.String>;
|
|
1535
|
+
readonly state: Schema.$Record<Schema.String, Schema.suspend<Schema.toTaggedUnion<"kind", readonly [Schema.Struct<{
|
|
1536
|
+
readonly kind: Schema.Literal<"bool">;
|
|
1537
|
+
readonly value: Schema.Boolean;
|
|
1538
|
+
}>, Schema.Struct<{
|
|
1539
|
+
readonly kind: Schema.Literal<"int">;
|
|
1540
|
+
readonly value: Schema.Int;
|
|
1541
|
+
}>, Schema.Struct<{
|
|
1542
|
+
readonly kind: Schema.Literal<"double">;
|
|
1543
|
+
readonly value: Schema.Number;
|
|
1544
|
+
}>, Schema.Struct<{
|
|
1545
|
+
readonly kind: Schema.Literal<"str">;
|
|
1546
|
+
readonly value: Schema.String;
|
|
1547
|
+
}>, Schema.Struct<{
|
|
1548
|
+
readonly kind: Schema.Literal<"unknown">;
|
|
1549
|
+
}>, Schema.Struct<{
|
|
1550
|
+
readonly kind: Schema.Literal<"error">;
|
|
1551
|
+
readonly value: Schema.String;
|
|
1552
|
+
}>]>>>;
|
|
1553
|
+
readonly visited: Schema.UniqueArray<Schema.String>;
|
|
1554
|
+
}>>;
|
|
1555
|
+
}>;
|
|
1556
|
+
export type Snapshot = typeof Snapshot.Type;
|