@opencode-ai/schema 0.0.0-next-14798 → 0.0.0-next-14801
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/agent.d.ts +6 -28
- package/dist/agent.js +2 -2
- package/dist/catalog.d.ts +6 -28
- package/dist/catalog.js +2 -2
- package/dist/command.d.ts +6 -28
- package/dist/command.js +2 -2
- package/dist/durable-event-manifest.d.ts +254 -8301
- package/dist/durable-event-manifest.js +2 -5
- package/dist/event-manifest.d.ts +994 -2747
- package/dist/event-manifest.js +2 -2
- package/dist/event.d.ts +65 -19
- package/dist/event.js +24 -5
- package/dist/filesystem-watcher.d.ts +6 -28
- package/dist/filesystem-watcher.js +2 -2
- package/dist/filesystem.d.ts +6 -28
- package/dist/filesystem.js +2 -2
- package/dist/form.d.ts +18 -84
- package/dist/form.js +4 -4
- package/dist/ide-event.d.ts +6 -28
- package/dist/ide-event.js +1 -1
- package/dist/installation-event.d.ts +12 -56
- package/dist/installation-event.js +2 -2
- package/dist/integration.d.ts +12 -56
- package/dist/integration.js +3 -3
- package/dist/lsp-event.d.ts +6 -28
- package/dist/lsp-event.js +1 -1
- package/dist/mcp-event.d.ts +18 -84
- package/dist/mcp-event.js +3 -3
- package/dist/models-dev.d.ts +6 -28
- package/dist/models-dev.js +2 -2
- package/dist/permission.d.ts +12 -56
- package/dist/permission.js +3 -3
- package/dist/plugin.d.ts +6 -28
- package/dist/plugin.js +2 -2
- package/dist/project-directories.d.ts +6 -28
- package/dist/project-directories.js +2 -2
- package/dist/project.d.ts +6 -28
- package/dist/project.js +2 -2
- package/dist/pty.d.ts +24 -112
- package/dist/pty.js +5 -5
- package/dist/question.d.ts +18 -84
- package/dist/question.js +4 -4
- package/dist/reference.d.ts +6 -28
- package/dist/reference.js +2 -2
- package/dist/server-event.d.ts +12 -56
- package/dist/server-event.js +2 -2
- package/dist/session-compaction-event.d.ts +6 -28
- package/dist/session-compaction-event.js +1 -1
- package/dist/session-event.d.ts +1900 -2530
- package/dist/session-event.js +37 -37
- package/dist/session-status-event.d.ts +12 -56
- package/dist/session-status-event.js +2 -2
- package/dist/session-todo.d.ts +6 -28
- package/dist/session-todo.js +2 -2
- package/dist/shell.d.ts +18 -84
- package/dist/shell.js +4 -4
- package/dist/skill.d.ts +6 -28
- package/dist/skill.js +2 -2
- package/dist/tui-event.d.ts +24 -112
- package/dist/tui-event.js +4 -4
- package/dist/v1/legacy-event.d.ts +6 -28
- package/dist/v1/legacy-event.js +2 -2
- package/dist/v1/permission.d.ts +12 -56
- package/dist/v1/permission.js +3 -3
- package/dist/v1/question.d.ts +18 -84
- package/dist/v1/question.js +4 -4
- package/dist/v1/session.d.ts +139 -280
- package/dist/v1/session.js +11 -11
- package/dist/vcs-event.d.ts +6 -28
- package/dist/vcs-event.js +1 -1
- package/dist/workspace-event.d.ts +18 -84
- package/dist/workspace-event.js +3 -3
- package/dist/worktree-event.d.ts +12 -56
- package/dist/worktree-event.js +2 -2
- package/package.json +1 -1
package/dist/pty.d.ts
CHANGED
|
@@ -27,15 +27,6 @@ export declare const Event: {
|
|
|
27
27
|
};
|
|
28
28
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
29
29
|
readonly type: Schema.Literal<"pty.created">;
|
|
30
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
31
|
-
readonly aggregateID: Schema.String;
|
|
32
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
33
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
34
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
35
|
-
readonly aggregateID: Schema.String;
|
|
36
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
37
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
38
|
-
}>>, never, never>;
|
|
39
30
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
40
31
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
41
32
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -71,6 +62,9 @@ export declare const Event: {
|
|
|
71
62
|
}>;
|
|
72
63
|
}>;
|
|
73
64
|
}> & {
|
|
65
|
+
type: "pty.created";
|
|
66
|
+
durability: "ephemeral";
|
|
67
|
+
durable: undefined;
|
|
74
68
|
data: Schema.Struct<{
|
|
75
69
|
readonly info: Schema.Struct<{
|
|
76
70
|
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
@@ -86,11 +80,6 @@ export declare const Event: {
|
|
|
86
80
|
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
87
81
|
}>;
|
|
88
82
|
}>;
|
|
89
|
-
durable?: {
|
|
90
|
-
readonly version: number;
|
|
91
|
-
readonly aggregate: string;
|
|
92
|
-
} | undefined;
|
|
93
|
-
type: "pty.created";
|
|
94
83
|
};
|
|
95
84
|
Updated: Schema.Struct<{
|
|
96
85
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
@@ -98,15 +87,6 @@ export declare const Event: {
|
|
|
98
87
|
};
|
|
99
88
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
100
89
|
readonly type: Schema.Literal<"pty.updated">;
|
|
101
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
102
|
-
readonly aggregateID: Schema.String;
|
|
103
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
104
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
105
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
106
|
-
readonly aggregateID: Schema.String;
|
|
107
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
108
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
109
|
-
}>>, never, never>;
|
|
110
90
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
111
91
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
112
92
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -142,6 +122,9 @@ export declare const Event: {
|
|
|
142
122
|
}>;
|
|
143
123
|
}>;
|
|
144
124
|
}> & {
|
|
125
|
+
type: "pty.updated";
|
|
126
|
+
durability: "ephemeral";
|
|
127
|
+
durable: undefined;
|
|
145
128
|
data: Schema.Struct<{
|
|
146
129
|
readonly info: Schema.Struct<{
|
|
147
130
|
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
@@ -157,11 +140,6 @@ export declare const Event: {
|
|
|
157
140
|
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
158
141
|
}>;
|
|
159
142
|
}>;
|
|
160
|
-
durable?: {
|
|
161
|
-
readonly version: number;
|
|
162
|
-
readonly aggregate: string;
|
|
163
|
-
} | undefined;
|
|
164
|
-
type: "pty.updated";
|
|
165
143
|
};
|
|
166
144
|
Exited: Schema.Struct<{
|
|
167
145
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
@@ -169,15 +147,6 @@ export declare const Event: {
|
|
|
169
147
|
};
|
|
170
148
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
171
149
|
readonly type: Schema.Literal<"pty.exited">;
|
|
172
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
173
|
-
readonly aggregateID: Schema.String;
|
|
174
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
175
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
176
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
177
|
-
readonly aggregateID: Schema.String;
|
|
178
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
179
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
180
|
-
}>>, never, never>;
|
|
181
150
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
182
151
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
183
152
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -205,6 +174,9 @@ export declare const Event: {
|
|
|
205
174
|
readonly exitCode: Schema.Int;
|
|
206
175
|
}>;
|
|
207
176
|
}> & {
|
|
177
|
+
type: "pty.exited";
|
|
178
|
+
durability: "ephemeral";
|
|
179
|
+
durable: undefined;
|
|
208
180
|
data: Schema.Struct<{
|
|
209
181
|
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
210
182
|
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
@@ -212,11 +184,6 @@ export declare const Event: {
|
|
|
212
184
|
};
|
|
213
185
|
readonly exitCode: Schema.Int;
|
|
214
186
|
}>;
|
|
215
|
-
durable?: {
|
|
216
|
-
readonly version: number;
|
|
217
|
-
readonly aggregate: string;
|
|
218
|
-
} | undefined;
|
|
219
|
-
type: "pty.exited";
|
|
220
187
|
};
|
|
221
188
|
Deleted: Schema.Struct<{
|
|
222
189
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
@@ -224,15 +191,6 @@ export declare const Event: {
|
|
|
224
191
|
};
|
|
225
192
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
226
193
|
readonly type: Schema.Literal<"pty.deleted">;
|
|
227
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
228
|
-
readonly aggregateID: Schema.String;
|
|
229
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
230
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
231
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
232
|
-
readonly aggregateID: Schema.String;
|
|
233
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
234
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
235
|
-
}>>, never, never>;
|
|
236
194
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
237
195
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
238
196
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -259,17 +217,15 @@ export declare const Event: {
|
|
|
259
217
|
};
|
|
260
218
|
}>;
|
|
261
219
|
}> & {
|
|
220
|
+
type: "pty.deleted";
|
|
221
|
+
durability: "ephemeral";
|
|
222
|
+
durable: undefined;
|
|
262
223
|
data: Schema.Struct<{
|
|
263
224
|
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
264
225
|
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
265
226
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
266
227
|
};
|
|
267
228
|
}>;
|
|
268
|
-
durable?: {
|
|
269
|
-
readonly version: number;
|
|
270
|
-
readonly aggregate: string;
|
|
271
|
-
} | undefined;
|
|
272
|
-
type: "pty.deleted";
|
|
273
229
|
};
|
|
274
230
|
Definitions: readonly [Schema.Struct<{
|
|
275
231
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
@@ -277,15 +233,6 @@ export declare const Event: {
|
|
|
277
233
|
};
|
|
278
234
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
279
235
|
readonly type: Schema.Literal<"pty.created">;
|
|
280
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
281
|
-
readonly aggregateID: Schema.String;
|
|
282
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
283
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
284
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
285
|
-
readonly aggregateID: Schema.String;
|
|
286
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
287
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
288
|
-
}>>, never, never>;
|
|
289
236
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
290
237
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
291
238
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -321,6 +268,9 @@ export declare const Event: {
|
|
|
321
268
|
}>;
|
|
322
269
|
}>;
|
|
323
270
|
}> & {
|
|
271
|
+
type: "pty.created";
|
|
272
|
+
durability: "ephemeral";
|
|
273
|
+
durable: undefined;
|
|
324
274
|
data: Schema.Struct<{
|
|
325
275
|
readonly info: Schema.Struct<{
|
|
326
276
|
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
@@ -336,26 +286,12 @@ export declare const Event: {
|
|
|
336
286
|
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
337
287
|
}>;
|
|
338
288
|
}>;
|
|
339
|
-
durable?: {
|
|
340
|
-
readonly version: number;
|
|
341
|
-
readonly aggregate: string;
|
|
342
|
-
} | undefined;
|
|
343
|
-
type: "pty.created";
|
|
344
289
|
}, Schema.Struct<{
|
|
345
290
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
346
291
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
347
292
|
};
|
|
348
293
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
349
294
|
readonly type: Schema.Literal<"pty.updated">;
|
|
350
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
351
|
-
readonly aggregateID: Schema.String;
|
|
352
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
353
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
354
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
355
|
-
readonly aggregateID: Schema.String;
|
|
356
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
357
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
358
|
-
}>>, never, never>;
|
|
359
295
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
360
296
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
361
297
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -391,6 +327,9 @@ export declare const Event: {
|
|
|
391
327
|
}>;
|
|
392
328
|
}>;
|
|
393
329
|
}> & {
|
|
330
|
+
type: "pty.updated";
|
|
331
|
+
durability: "ephemeral";
|
|
332
|
+
durable: undefined;
|
|
394
333
|
data: Schema.Struct<{
|
|
395
334
|
readonly info: Schema.Struct<{
|
|
396
335
|
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
@@ -406,26 +345,12 @@ export declare const Event: {
|
|
|
406
345
|
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
407
346
|
}>;
|
|
408
347
|
}>;
|
|
409
|
-
durable?: {
|
|
410
|
-
readonly version: number;
|
|
411
|
-
readonly aggregate: string;
|
|
412
|
-
} | undefined;
|
|
413
|
-
type: "pty.updated";
|
|
414
348
|
}, Schema.Struct<{
|
|
415
349
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
416
350
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
417
351
|
};
|
|
418
352
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
419
353
|
readonly type: Schema.Literal<"pty.exited">;
|
|
420
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
421
|
-
readonly aggregateID: Schema.String;
|
|
422
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
423
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
424
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
425
|
-
readonly aggregateID: Schema.String;
|
|
426
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
427
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
428
|
-
}>>, never, never>;
|
|
429
354
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
430
355
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
431
356
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -453,6 +378,9 @@ export declare const Event: {
|
|
|
453
378
|
readonly exitCode: Schema.Int;
|
|
454
379
|
}>;
|
|
455
380
|
}> & {
|
|
381
|
+
type: "pty.exited";
|
|
382
|
+
durability: "ephemeral";
|
|
383
|
+
durable: undefined;
|
|
456
384
|
data: Schema.Struct<{
|
|
457
385
|
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
458
386
|
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
@@ -460,26 +388,12 @@ export declare const Event: {
|
|
|
460
388
|
};
|
|
461
389
|
readonly exitCode: Schema.Int;
|
|
462
390
|
}>;
|
|
463
|
-
durable?: {
|
|
464
|
-
readonly version: number;
|
|
465
|
-
readonly aggregate: string;
|
|
466
|
-
} | undefined;
|
|
467
|
-
type: "pty.exited";
|
|
468
391
|
}, Schema.Struct<{
|
|
469
392
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
470
393
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
471
394
|
};
|
|
472
395
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
473
396
|
readonly type: Schema.Literal<"pty.deleted">;
|
|
474
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
475
|
-
readonly aggregateID: Schema.String;
|
|
476
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
477
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
478
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
479
|
-
readonly aggregateID: Schema.String;
|
|
480
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
481
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
482
|
-
}>>, never, never>;
|
|
483
397
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
484
398
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
485
399
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -506,17 +420,15 @@ export declare const Event: {
|
|
|
506
420
|
};
|
|
507
421
|
}>;
|
|
508
422
|
}> & {
|
|
423
|
+
type: "pty.deleted";
|
|
424
|
+
durability: "ephemeral";
|
|
425
|
+
durable: undefined;
|
|
509
426
|
data: Schema.Struct<{
|
|
510
427
|
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
511
428
|
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
512
429
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
513
430
|
};
|
|
514
431
|
}>;
|
|
515
|
-
durable?: {
|
|
516
|
-
readonly version: number;
|
|
517
|
-
readonly aggregate: string;
|
|
518
|
-
} | undefined;
|
|
519
|
-
type: "pty.deleted";
|
|
520
432
|
}];
|
|
521
433
|
};
|
|
522
434
|
export declare const CreateInput: Schema.Struct<{
|
package/dist/pty.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * as Pty from "./pty.js";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
import { optional } from "./schema.js";
|
|
4
|
-
import {
|
|
4
|
+
import { ephemeral, inventory } from "./event.js";
|
|
5
5
|
import { ascending } from "./identifier.js";
|
|
6
6
|
import { NonNegativeInt, PositiveInt, statics } from "./schema.js";
|
|
7
7
|
const IDSchema = Schema.String.check(Schema.isStartsWith("pty")).pipe(Schema.brand("PtyID"));
|
|
@@ -22,10 +22,10 @@ export const Info = Schema.Struct({
|
|
|
22
22
|
pid: NonNegativeInt,
|
|
23
23
|
exitCode: optional(NonNegativeInt),
|
|
24
24
|
}).annotate({ identifier: "Pty" });
|
|
25
|
-
const Created =
|
|
26
|
-
const Updated =
|
|
27
|
-
const Exited =
|
|
28
|
-
const Deleted =
|
|
25
|
+
const Created = ephemeral({ type: "pty.created", schema: { info: Info } });
|
|
26
|
+
const Updated = ephemeral({ type: "pty.updated", schema: { info: Info } });
|
|
27
|
+
const Exited = ephemeral({ type: "pty.exited", schema: { id: ID, exitCode: NonNegativeInt } });
|
|
28
|
+
const Deleted = ephemeral({ type: "pty.deleted", schema: { id: ID } });
|
|
29
29
|
export const Event = { Created, Updated, Exited, Deleted, Definitions: inventory(Created, Updated, Exited, Deleted) };
|
|
30
30
|
export const CreateInput = Schema.Struct({
|
|
31
31
|
command: optional(Schema.String),
|
package/dist/question.d.ts
CHANGED
|
@@ -83,15 +83,6 @@ export declare const Event: {
|
|
|
83
83
|
};
|
|
84
84
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
85
85
|
readonly type: Schema.Literal<"question.v2.asked">;
|
|
86
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
87
|
-
readonly aggregateID: Schema.String;
|
|
88
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
89
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
90
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
91
|
-
readonly aggregateID: Schema.String;
|
|
92
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
93
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
94
|
-
}>>, never, never>;
|
|
95
86
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
96
87
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
97
88
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -139,6 +130,9 @@ export declare const Event: {
|
|
|
139
130
|
}>>, never, never>;
|
|
140
131
|
}>;
|
|
141
132
|
}> & {
|
|
133
|
+
type: "question.v2.asked";
|
|
134
|
+
durability: "ephemeral";
|
|
135
|
+
durable: undefined;
|
|
142
136
|
data: Schema.Struct<{
|
|
143
137
|
readonly id: Schema.brand<Schema.String, "QuestionV2.ID"> & {
|
|
144
138
|
create: () => string & import("effect/Brand").Brand<"QuestionV2.ID">;
|
|
@@ -166,11 +160,6 @@ export declare const Event: {
|
|
|
166
160
|
readonly callID: Schema.String;
|
|
167
161
|
}>>, never, never>;
|
|
168
162
|
}>;
|
|
169
|
-
durable?: {
|
|
170
|
-
readonly version: number;
|
|
171
|
-
readonly aggregate: string;
|
|
172
|
-
} | undefined;
|
|
173
|
-
type: "question.v2.asked";
|
|
174
163
|
};
|
|
175
164
|
Replied: Schema.Struct<{
|
|
176
165
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
@@ -178,15 +167,6 @@ export declare const Event: {
|
|
|
178
167
|
};
|
|
179
168
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
180
169
|
readonly type: Schema.Literal<"question.v2.replied">;
|
|
181
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
182
|
-
readonly aggregateID: Schema.String;
|
|
183
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
184
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
185
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
186
|
-
readonly aggregateID: Schema.String;
|
|
187
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
188
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
189
|
-
}>>, never, never>;
|
|
190
170
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
191
171
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
192
172
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -218,6 +198,9 @@ export declare const Event: {
|
|
|
218
198
|
readonly answers: Schema.$Array<Schema.$Array<Schema.String>>;
|
|
219
199
|
}>;
|
|
220
200
|
}> & {
|
|
201
|
+
type: "question.v2.replied";
|
|
202
|
+
durability: "ephemeral";
|
|
203
|
+
durable: undefined;
|
|
221
204
|
data: Schema.Struct<{
|
|
222
205
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
223
206
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -229,11 +212,6 @@ export declare const Event: {
|
|
|
229
212
|
};
|
|
230
213
|
readonly answers: Schema.$Array<Schema.$Array<Schema.String>>;
|
|
231
214
|
}>;
|
|
232
|
-
durable?: {
|
|
233
|
-
readonly version: number;
|
|
234
|
-
readonly aggregate: string;
|
|
235
|
-
} | undefined;
|
|
236
|
-
type: "question.v2.replied";
|
|
237
215
|
};
|
|
238
216
|
Rejected: Schema.Struct<{
|
|
239
217
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
@@ -241,15 +219,6 @@ export declare const Event: {
|
|
|
241
219
|
};
|
|
242
220
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
243
221
|
readonly type: Schema.Literal<"question.v2.rejected">;
|
|
244
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
245
|
-
readonly aggregateID: Schema.String;
|
|
246
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
247
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
248
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
249
|
-
readonly aggregateID: Schema.String;
|
|
250
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
251
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
252
|
-
}>>, never, never>;
|
|
253
222
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
254
223
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
255
224
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -280,6 +249,9 @@ export declare const Event: {
|
|
|
280
249
|
};
|
|
281
250
|
}>;
|
|
282
251
|
}> & {
|
|
252
|
+
type: "question.v2.rejected";
|
|
253
|
+
durability: "ephemeral";
|
|
254
|
+
durable: undefined;
|
|
283
255
|
data: Schema.Struct<{
|
|
284
256
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
285
257
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -290,11 +262,6 @@ export declare const Event: {
|
|
|
290
262
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"QuestionV2.ID">;
|
|
291
263
|
};
|
|
292
264
|
}>;
|
|
293
|
-
durable?: {
|
|
294
|
-
readonly version: number;
|
|
295
|
-
readonly aggregate: string;
|
|
296
|
-
} | undefined;
|
|
297
|
-
type: "question.v2.rejected";
|
|
298
265
|
};
|
|
299
266
|
Definitions: readonly [Schema.Struct<{
|
|
300
267
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
@@ -302,15 +269,6 @@ export declare const Event: {
|
|
|
302
269
|
};
|
|
303
270
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
304
271
|
readonly type: Schema.Literal<"question.v2.asked">;
|
|
305
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
306
|
-
readonly aggregateID: Schema.String;
|
|
307
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
308
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
309
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
310
|
-
readonly aggregateID: Schema.String;
|
|
311
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
312
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
313
|
-
}>>, never, never>;
|
|
314
272
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
315
273
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
316
274
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -358,6 +316,9 @@ export declare const Event: {
|
|
|
358
316
|
}>>, never, never>;
|
|
359
317
|
}>;
|
|
360
318
|
}> & {
|
|
319
|
+
type: "question.v2.asked";
|
|
320
|
+
durability: "ephemeral";
|
|
321
|
+
durable: undefined;
|
|
361
322
|
data: Schema.Struct<{
|
|
362
323
|
readonly id: Schema.brand<Schema.String, "QuestionV2.ID"> & {
|
|
363
324
|
create: () => string & import("effect/Brand").Brand<"QuestionV2.ID">;
|
|
@@ -385,26 +346,12 @@ export declare const Event: {
|
|
|
385
346
|
readonly callID: Schema.String;
|
|
386
347
|
}>>, never, never>;
|
|
387
348
|
}>;
|
|
388
|
-
durable?: {
|
|
389
|
-
readonly version: number;
|
|
390
|
-
readonly aggregate: string;
|
|
391
|
-
} | undefined;
|
|
392
|
-
type: "question.v2.asked";
|
|
393
349
|
}, Schema.Struct<{
|
|
394
350
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
395
351
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
396
352
|
};
|
|
397
353
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
398
354
|
readonly type: Schema.Literal<"question.v2.replied">;
|
|
399
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
400
|
-
readonly aggregateID: Schema.String;
|
|
401
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
402
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
403
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
404
|
-
readonly aggregateID: Schema.String;
|
|
405
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
406
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
407
|
-
}>>, never, never>;
|
|
408
355
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
409
356
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
410
357
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -436,6 +383,9 @@ export declare const Event: {
|
|
|
436
383
|
readonly answers: Schema.$Array<Schema.$Array<Schema.String>>;
|
|
437
384
|
}>;
|
|
438
385
|
}> & {
|
|
386
|
+
type: "question.v2.replied";
|
|
387
|
+
durability: "ephemeral";
|
|
388
|
+
durable: undefined;
|
|
439
389
|
data: Schema.Struct<{
|
|
440
390
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
441
391
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -447,26 +397,12 @@ export declare const Event: {
|
|
|
447
397
|
};
|
|
448
398
|
readonly answers: Schema.$Array<Schema.$Array<Schema.String>>;
|
|
449
399
|
}>;
|
|
450
|
-
durable?: {
|
|
451
|
-
readonly version: number;
|
|
452
|
-
readonly aggregate: string;
|
|
453
|
-
} | undefined;
|
|
454
|
-
type: "question.v2.replied";
|
|
455
400
|
}, Schema.Struct<{
|
|
456
401
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
457
402
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
458
403
|
};
|
|
459
404
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
460
405
|
readonly type: Schema.Literal<"question.v2.rejected">;
|
|
461
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
462
|
-
readonly aggregateID: Schema.String;
|
|
463
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
464
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
465
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
466
|
-
readonly aggregateID: Schema.String;
|
|
467
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
468
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
469
|
-
}>>, never, never>;
|
|
470
406
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
471
407
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
472
408
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -497,6 +433,9 @@ export declare const Event: {
|
|
|
497
433
|
};
|
|
498
434
|
}>;
|
|
499
435
|
}> & {
|
|
436
|
+
type: "question.v2.rejected";
|
|
437
|
+
durability: "ephemeral";
|
|
438
|
+
durable: undefined;
|
|
500
439
|
data: Schema.Struct<{
|
|
501
440
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
502
441
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -507,10 +446,5 @@ export declare const Event: {
|
|
|
507
446
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"QuestionV2.ID">;
|
|
508
447
|
};
|
|
509
448
|
}>;
|
|
510
|
-
durable?: {
|
|
511
|
-
readonly version: number;
|
|
512
|
-
readonly aggregate: string;
|
|
513
|
-
} | undefined;
|
|
514
|
-
type: "question.v2.rejected";
|
|
515
449
|
}];
|
|
516
450
|
};
|
package/dist/question.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * as Question from "./question.js";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
import { optional } from "./schema.js";
|
|
4
|
-
import {
|
|
4
|
+
import { ephemeral, inventory } from "./event.js";
|
|
5
5
|
import { ascending } from "./identifier.js";
|
|
6
6
|
import { SessionID } from "./session-id.js";
|
|
7
7
|
import { statics } from "./schema.js";
|
|
@@ -45,8 +45,8 @@ export const Reply = Schema.Struct({
|
|
|
45
45
|
description: "User answers in order of questions (each answer is an array of selected labels)",
|
|
46
46
|
}),
|
|
47
47
|
}).annotate({ identifier: "QuestionV2.Reply" });
|
|
48
|
-
const Asked =
|
|
49
|
-
const Replied =
|
|
48
|
+
const Asked = ephemeral({ type: "question.v2.asked", schema: Request.fields });
|
|
49
|
+
const Replied = ephemeral({
|
|
50
50
|
type: "question.v2.replied",
|
|
51
51
|
schema: {
|
|
52
52
|
sessionID: SessionID,
|
|
@@ -54,7 +54,7 @@ const Replied = define({
|
|
|
54
54
|
answers: Schema.Array(Answer),
|
|
55
55
|
},
|
|
56
56
|
});
|
|
57
|
-
const Rejected =
|
|
57
|
+
const Rejected = ephemeral({
|
|
58
58
|
type: "question.v2.rejected",
|
|
59
59
|
schema: {
|
|
60
60
|
sessionID: SessionID,
|
package/dist/reference.d.ts
CHANGED
|
@@ -7,15 +7,6 @@ export declare const Event: {
|
|
|
7
7
|
};
|
|
8
8
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
9
9
|
readonly type: Schema.Literal<"reference.updated">;
|
|
10
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11
|
-
readonly aggregateID: Schema.String;
|
|
12
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
13
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
14
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
15
|
-
readonly aggregateID: Schema.String;
|
|
16
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
17
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
18
|
-
}>>, never, never>;
|
|
19
10
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
20
11
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
21
12
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -37,12 +28,10 @@ export declare const Event: {
|
|
|
37
28
|
}>>, never, never>;
|
|
38
29
|
readonly data: Schema.Struct<{}>;
|
|
39
30
|
}> & {
|
|
40
|
-
data: Schema.Struct<{}>;
|
|
41
|
-
durable?: {
|
|
42
|
-
readonly version: number;
|
|
43
|
-
readonly aggregate: string;
|
|
44
|
-
} | undefined;
|
|
45
31
|
type: "reference.updated";
|
|
32
|
+
durability: "ephemeral";
|
|
33
|
+
durable: undefined;
|
|
34
|
+
data: Schema.Struct<{}>;
|
|
46
35
|
};
|
|
47
36
|
Definitions: readonly [Schema.Struct<{
|
|
48
37
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
@@ -50,15 +39,6 @@ export declare const Event: {
|
|
|
50
39
|
};
|
|
51
40
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
52
41
|
readonly type: Schema.Literal<"reference.updated">;
|
|
53
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
54
|
-
readonly aggregateID: Schema.String;
|
|
55
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
56
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
57
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
58
|
-
readonly aggregateID: Schema.String;
|
|
59
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
60
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
61
|
-
}>>, never, never>;
|
|
62
42
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
63
43
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
64
44
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -80,12 +60,10 @@ export declare const Event: {
|
|
|
80
60
|
}>>, never, never>;
|
|
81
61
|
readonly data: Schema.Struct<{}>;
|
|
82
62
|
}> & {
|
|
83
|
-
data: Schema.Struct<{}>;
|
|
84
|
-
durable?: {
|
|
85
|
-
readonly version: number;
|
|
86
|
-
readonly aggregate: string;
|
|
87
|
-
} | undefined;
|
|
88
63
|
type: "reference.updated";
|
|
64
|
+
durability: "ephemeral";
|
|
65
|
+
durable: undefined;
|
|
66
|
+
data: Schema.Struct<{}>;
|
|
89
67
|
}];
|
|
90
68
|
};
|
|
91
69
|
export interface LocalSource extends Schema.Schema.Type<typeof LocalSource> {
|
package/dist/reference.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export * as Reference from "./reference.js";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
import { optional } from "./schema.js";
|
|
4
|
-
import {
|
|
4
|
+
import { ephemeral, inventory } from "./event.js";
|
|
5
5
|
import { AbsolutePath } from "./schema.js";
|
|
6
|
-
const Updated =
|
|
6
|
+
const Updated = ephemeral({ type: "reference.updated", schema: {} });
|
|
7
7
|
export const Event = { Updated, Definitions: inventory(Updated) };
|
|
8
8
|
export const LocalSource = Schema.Struct({
|
|
9
9
|
type: Schema.Literal("local"),
|