@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
|
@@ -6,15 +6,6 @@ export declare const CommandExecuted: Schema.Struct<{
|
|
|
6
6
|
};
|
|
7
7
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
8
8
|
readonly type: Schema.Literal<"command.executed">;
|
|
9
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10
|
-
readonly aggregateID: Schema.String;
|
|
11
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
12
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
13
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
14
|
-
readonly aggregateID: Schema.String;
|
|
15
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
16
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
17
|
-
}>>, never, never>;
|
|
18
9
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
19
10
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
20
11
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -46,6 +37,9 @@ export declare const CommandExecuted: Schema.Struct<{
|
|
|
46
37
|
};
|
|
47
38
|
}>;
|
|
48
39
|
}> & {
|
|
40
|
+
type: "command.executed";
|
|
41
|
+
durability: "ephemeral";
|
|
42
|
+
durable: undefined;
|
|
49
43
|
data: Schema.Struct<{
|
|
50
44
|
readonly name: Schema.String;
|
|
51
45
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
@@ -57,11 +51,6 @@ export declare const CommandExecuted: Schema.Struct<{
|
|
|
57
51
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"MessageID">;
|
|
58
52
|
};
|
|
59
53
|
}>;
|
|
60
|
-
durable?: {
|
|
61
|
-
readonly version: number;
|
|
62
|
-
readonly aggregate: string;
|
|
63
|
-
} | undefined;
|
|
64
|
-
type: "command.executed";
|
|
65
54
|
};
|
|
66
55
|
export declare const Definitions: readonly [Schema.Struct<{
|
|
67
56
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
@@ -69,15 +58,6 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
69
58
|
};
|
|
70
59
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
71
60
|
readonly type: Schema.Literal<"command.executed">;
|
|
72
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
73
|
-
readonly aggregateID: Schema.String;
|
|
74
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
75
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
76
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
77
|
-
readonly aggregateID: Schema.String;
|
|
78
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
79
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
80
|
-
}>>, never, never>;
|
|
81
61
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
82
62
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
83
63
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -109,6 +89,9 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
109
89
|
};
|
|
110
90
|
}>;
|
|
111
91
|
}> & {
|
|
92
|
+
type: "command.executed";
|
|
93
|
+
durability: "ephemeral";
|
|
94
|
+
durable: undefined;
|
|
112
95
|
data: Schema.Struct<{
|
|
113
96
|
readonly name: Schema.String;
|
|
114
97
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
@@ -120,9 +103,4 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
120
103
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"MessageID">;
|
|
121
104
|
};
|
|
122
105
|
}>;
|
|
123
|
-
durable?: {
|
|
124
|
-
readonly version: number;
|
|
125
|
-
readonly aggregate: string;
|
|
126
|
-
} | undefined;
|
|
127
|
-
type: "command.executed";
|
|
128
106
|
}];
|
package/dist/v1/legacy-event.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export * as LegacyEvent from "./legacy-event.js";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
|
-
import {
|
|
3
|
+
import { ephemeral, inventory } from "../event.js";
|
|
4
4
|
import { SessionID } from "../session-id.js";
|
|
5
5
|
import { SessionV1 } from "./session.js";
|
|
6
|
-
export const CommandExecuted =
|
|
6
|
+
export const CommandExecuted = ephemeral({
|
|
7
7
|
type: "command.executed",
|
|
8
8
|
schema: {
|
|
9
9
|
name: Schema.String,
|
package/dist/v1/permission.d.ts
CHANGED
|
@@ -88,15 +88,6 @@ export declare const Event: {
|
|
|
88
88
|
};
|
|
89
89
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
90
90
|
readonly type: Schema.Literal<"permission.asked">;
|
|
91
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
92
|
-
readonly aggregateID: Schema.String;
|
|
93
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
94
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
95
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
96
|
-
readonly aggregateID: Schema.String;
|
|
97
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
98
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
99
|
-
}>>, never, never>;
|
|
100
91
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
101
92
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
102
93
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -134,6 +125,9 @@ export declare const Event: {
|
|
|
134
125
|
}>>;
|
|
135
126
|
}>;
|
|
136
127
|
}> & {
|
|
128
|
+
type: "permission.asked";
|
|
129
|
+
durability: "ephemeral";
|
|
130
|
+
durable: undefined;
|
|
137
131
|
data: Schema.Struct<{
|
|
138
132
|
readonly id: Schema.brand<Schema.String, "PermissionID"> & {
|
|
139
133
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"PermissionID">;
|
|
@@ -151,11 +145,6 @@ export declare const Event: {
|
|
|
151
145
|
readonly callID: Schema.String;
|
|
152
146
|
}>>;
|
|
153
147
|
}>;
|
|
154
|
-
durable?: {
|
|
155
|
-
readonly version: number;
|
|
156
|
-
readonly aggregate: string;
|
|
157
|
-
} | undefined;
|
|
158
|
-
type: "permission.asked";
|
|
159
148
|
};
|
|
160
149
|
Replied: Schema.Struct<{
|
|
161
150
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
@@ -163,15 +152,6 @@ export declare const Event: {
|
|
|
163
152
|
};
|
|
164
153
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
165
154
|
readonly type: Schema.Literal<"permission.replied">;
|
|
166
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
167
|
-
readonly aggregateID: Schema.String;
|
|
168
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
169
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
170
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
171
|
-
readonly aggregateID: Schema.String;
|
|
172
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
173
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
174
|
-
}>>, never, never>;
|
|
175
155
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
176
156
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
177
157
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -202,6 +182,9 @@ export declare const Event: {
|
|
|
202
182
|
readonly reply: Schema.Literals<readonly ["once", "always", "reject"]>;
|
|
203
183
|
}>;
|
|
204
184
|
}> & {
|
|
185
|
+
type: "permission.replied";
|
|
186
|
+
durability: "ephemeral";
|
|
187
|
+
durable: undefined;
|
|
205
188
|
data: Schema.Struct<{
|
|
206
189
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
207
190
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -212,11 +195,6 @@ export declare const Event: {
|
|
|
212
195
|
};
|
|
213
196
|
readonly reply: Schema.Literals<readonly ["once", "always", "reject"]>;
|
|
214
197
|
}>;
|
|
215
|
-
durable?: {
|
|
216
|
-
readonly version: number;
|
|
217
|
-
readonly aggregate: string;
|
|
218
|
-
} | undefined;
|
|
219
|
-
type: "permission.replied";
|
|
220
198
|
};
|
|
221
199
|
Definitions: readonly [Schema.Struct<{
|
|
222
200
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
@@ -224,15 +202,6 @@ export declare const Event: {
|
|
|
224
202
|
};
|
|
225
203
|
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
204
|
readonly type: Schema.Literal<"permission.asked">;
|
|
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
205
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
237
206
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
238
207
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -270,6 +239,9 @@ export declare const Event: {
|
|
|
270
239
|
}>>;
|
|
271
240
|
}>;
|
|
272
241
|
}> & {
|
|
242
|
+
type: "permission.asked";
|
|
243
|
+
durability: "ephemeral";
|
|
244
|
+
durable: undefined;
|
|
273
245
|
data: Schema.Struct<{
|
|
274
246
|
readonly id: Schema.brand<Schema.String, "PermissionID"> & {
|
|
275
247
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"PermissionID">;
|
|
@@ -287,26 +259,12 @@ export declare const Event: {
|
|
|
287
259
|
readonly callID: Schema.String;
|
|
288
260
|
}>>;
|
|
289
261
|
}>;
|
|
290
|
-
durable?: {
|
|
291
|
-
readonly version: number;
|
|
292
|
-
readonly aggregate: string;
|
|
293
|
-
} | undefined;
|
|
294
|
-
type: "permission.asked";
|
|
295
262
|
}, Schema.Struct<{
|
|
296
263
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
297
264
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
298
265
|
};
|
|
299
266
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
300
267
|
readonly type: Schema.Literal<"permission.replied">;
|
|
301
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
302
|
-
readonly aggregateID: Schema.String;
|
|
303
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
304
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
305
|
-
}>>>, Schema.optionalKey<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
|
-
}>>, never, never>;
|
|
310
268
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
311
269
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
312
270
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -337,6 +295,9 @@ export declare const Event: {
|
|
|
337
295
|
readonly reply: Schema.Literals<readonly ["once", "always", "reject"]>;
|
|
338
296
|
}>;
|
|
339
297
|
}> & {
|
|
298
|
+
type: "permission.replied";
|
|
299
|
+
durability: "ephemeral";
|
|
300
|
+
durable: undefined;
|
|
340
301
|
data: Schema.Struct<{
|
|
341
302
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
342
303
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -347,10 +308,5 @@ export declare const Event: {
|
|
|
347
308
|
};
|
|
348
309
|
readonly reply: Schema.Literals<readonly ["once", "always", "reject"]>;
|
|
349
310
|
}>;
|
|
350
|
-
durable?: {
|
|
351
|
-
readonly version: number;
|
|
352
|
-
readonly aggregate: string;
|
|
353
|
-
} | undefined;
|
|
354
|
-
type: "permission.replied";
|
|
355
311
|
}];
|
|
356
312
|
};
|
package/dist/v1/permission.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as PermissionV1 from "./permission.js";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
|
-
import {
|
|
3
|
+
import { ephemeral, inventory } from "../event.js";
|
|
4
4
|
import { ascending } from "../identifier.js";
|
|
5
5
|
import { Project } from "../project.js";
|
|
6
6
|
import { statics } from "../schema.js";
|
|
@@ -33,8 +33,8 @@ export const AskInput = Schema.Struct({ ...Request.fields, id: Schema.optional(I
|
|
|
33
33
|
export const ReplyInput = Schema.Struct({ requestID: ID, ...ReplyBody.fields }).annotate({
|
|
34
34
|
identifier: "PermissionReplyInput",
|
|
35
35
|
});
|
|
36
|
-
const Asked =
|
|
37
|
-
const Replied =
|
|
36
|
+
const Asked = ephemeral({ type: "permission.asked", schema: Request.fields });
|
|
37
|
+
const Replied = ephemeral({
|
|
38
38
|
type: "permission.replied",
|
|
39
39
|
schema: { sessionID: SessionID, requestID: ID, reply: Reply },
|
|
40
40
|
});
|
package/dist/v1/question.d.ts
CHANGED
|
@@ -87,15 +87,6 @@ export declare const Event: {
|
|
|
87
87
|
};
|
|
88
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>;
|
|
89
89
|
readonly type: Schema.Literal<"question.asked">;
|
|
90
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<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
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
95
|
-
readonly aggregateID: Schema.String;
|
|
96
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
97
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
98
|
-
}>>, never, never>;
|
|
99
90
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
100
91
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
101
92
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -141,6 +132,9 @@ export declare const Event: {
|
|
|
141
132
|
}>>;
|
|
142
133
|
}>;
|
|
143
134
|
}> & {
|
|
135
|
+
type: "question.asked";
|
|
136
|
+
durability: "ephemeral";
|
|
137
|
+
durable: undefined;
|
|
144
138
|
data: Schema.Struct<{
|
|
145
139
|
readonly id: Schema.brand<Schema.String, "QuestionID"> & {
|
|
146
140
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"QuestionID">;
|
|
@@ -166,11 +160,6 @@ export declare const Event: {
|
|
|
166
160
|
readonly callID: Schema.String;
|
|
167
161
|
}>>;
|
|
168
162
|
}>;
|
|
169
|
-
durable?: {
|
|
170
|
-
readonly version: number;
|
|
171
|
-
readonly aggregate: string;
|
|
172
|
-
} | undefined;
|
|
173
|
-
type: "question.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.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"> & {
|
|
@@ -217,6 +197,9 @@ export declare const Event: {
|
|
|
217
197
|
readonly answers: Schema.$Array<Schema.$Array<Schema.String>>;
|
|
218
198
|
}>;
|
|
219
199
|
}> & {
|
|
200
|
+
type: "question.replied";
|
|
201
|
+
durability: "ephemeral";
|
|
202
|
+
durable: undefined;
|
|
220
203
|
data: Schema.Struct<{
|
|
221
204
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
222
205
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -227,11 +210,6 @@ export declare const Event: {
|
|
|
227
210
|
};
|
|
228
211
|
readonly answers: Schema.$Array<Schema.$Array<Schema.String>>;
|
|
229
212
|
}>;
|
|
230
|
-
durable?: {
|
|
231
|
-
readonly version: number;
|
|
232
|
-
readonly aggregate: string;
|
|
233
|
-
} | undefined;
|
|
234
|
-
type: "question.replied";
|
|
235
213
|
};
|
|
236
214
|
Rejected: Schema.Struct<{
|
|
237
215
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
@@ -239,15 +217,6 @@ export declare const Event: {
|
|
|
239
217
|
};
|
|
240
218
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
241
219
|
readonly type: Schema.Literal<"question.rejected">;
|
|
242
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
243
|
-
readonly aggregateID: Schema.String;
|
|
244
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
245
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
246
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
247
|
-
readonly aggregateID: Schema.String;
|
|
248
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
249
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
250
|
-
}>>, never, never>;
|
|
251
220
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
252
221
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
253
222
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -277,6 +246,9 @@ export declare const Event: {
|
|
|
277
246
|
};
|
|
278
247
|
}>;
|
|
279
248
|
}> & {
|
|
249
|
+
type: "question.rejected";
|
|
250
|
+
durability: "ephemeral";
|
|
251
|
+
durable: undefined;
|
|
280
252
|
data: Schema.Struct<{
|
|
281
253
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
282
254
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -286,11 +258,6 @@ export declare const Event: {
|
|
|
286
258
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"QuestionID">;
|
|
287
259
|
};
|
|
288
260
|
}>;
|
|
289
|
-
durable?: {
|
|
290
|
-
readonly version: number;
|
|
291
|
-
readonly aggregate: string;
|
|
292
|
-
} | undefined;
|
|
293
|
-
type: "question.rejected";
|
|
294
261
|
};
|
|
295
262
|
Definitions: readonly [Schema.Struct<{
|
|
296
263
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
@@ -298,15 +265,6 @@ export declare const Event: {
|
|
|
298
265
|
};
|
|
299
266
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
300
267
|
readonly type: Schema.Literal<"question.asked">;
|
|
301
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
302
|
-
readonly aggregateID: Schema.String;
|
|
303
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
304
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
305
|
-
}>>>, Schema.optionalKey<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
|
-
}>>, never, never>;
|
|
310
268
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
311
269
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
312
270
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -352,6 +310,9 @@ export declare const Event: {
|
|
|
352
310
|
}>>;
|
|
353
311
|
}>;
|
|
354
312
|
}> & {
|
|
313
|
+
type: "question.asked";
|
|
314
|
+
durability: "ephemeral";
|
|
315
|
+
durable: undefined;
|
|
355
316
|
data: Schema.Struct<{
|
|
356
317
|
readonly id: Schema.brand<Schema.String, "QuestionID"> & {
|
|
357
318
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"QuestionID">;
|
|
@@ -377,26 +338,12 @@ export declare const Event: {
|
|
|
377
338
|
readonly callID: Schema.String;
|
|
378
339
|
}>>;
|
|
379
340
|
}>;
|
|
380
|
-
durable?: {
|
|
381
|
-
readonly version: number;
|
|
382
|
-
readonly aggregate: string;
|
|
383
|
-
} | undefined;
|
|
384
|
-
type: "question.asked";
|
|
385
341
|
}, Schema.Struct<{
|
|
386
342
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
387
343
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
388
344
|
};
|
|
389
345
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
390
346
|
readonly type: Schema.Literal<"question.replied">;
|
|
391
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
392
|
-
readonly aggregateID: Schema.String;
|
|
393
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
394
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
395
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
396
|
-
readonly aggregateID: Schema.String;
|
|
397
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
398
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
399
|
-
}>>, never, never>;
|
|
400
347
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
401
348
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
402
349
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -427,6 +374,9 @@ export declare const Event: {
|
|
|
427
374
|
readonly answers: Schema.$Array<Schema.$Array<Schema.String>>;
|
|
428
375
|
}>;
|
|
429
376
|
}> & {
|
|
377
|
+
type: "question.replied";
|
|
378
|
+
durability: "ephemeral";
|
|
379
|
+
durable: undefined;
|
|
430
380
|
data: Schema.Struct<{
|
|
431
381
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
432
382
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -437,26 +387,12 @@ export declare const Event: {
|
|
|
437
387
|
};
|
|
438
388
|
readonly answers: Schema.$Array<Schema.$Array<Schema.String>>;
|
|
439
389
|
}>;
|
|
440
|
-
durable?: {
|
|
441
|
-
readonly version: number;
|
|
442
|
-
readonly aggregate: string;
|
|
443
|
-
} | undefined;
|
|
444
|
-
type: "question.replied";
|
|
445
390
|
}, Schema.Struct<{
|
|
446
391
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
447
392
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
448
393
|
};
|
|
449
394
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
450
395
|
readonly type: Schema.Literal<"question.rejected">;
|
|
451
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
452
|
-
readonly aggregateID: Schema.String;
|
|
453
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
454
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
455
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
456
|
-
readonly aggregateID: Schema.String;
|
|
457
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
458
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
459
|
-
}>>, never, never>;
|
|
460
396
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
461
397
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
462
398
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -486,6 +422,9 @@ export declare const Event: {
|
|
|
486
422
|
};
|
|
487
423
|
}>;
|
|
488
424
|
}> & {
|
|
425
|
+
type: "question.rejected";
|
|
426
|
+
durability: "ephemeral";
|
|
427
|
+
durable: undefined;
|
|
489
428
|
data: Schema.Struct<{
|
|
490
429
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
491
430
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -495,10 +434,5 @@ export declare const Event: {
|
|
|
495
434
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"QuestionID">;
|
|
496
435
|
};
|
|
497
436
|
}>;
|
|
498
|
-
durable?: {
|
|
499
|
-
readonly version: number;
|
|
500
|
-
readonly aggregate: string;
|
|
501
|
-
} | undefined;
|
|
502
|
-
type: "question.rejected";
|
|
503
437
|
}];
|
|
504
438
|
};
|
package/dist/v1/question.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as QuestionV1 from "./question.js";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
|
-
import {
|
|
3
|
+
import { ephemeral, inventory } from "../event.js";
|
|
4
4
|
import { ascending } from "../identifier.js";
|
|
5
5
|
import { statics } from "../schema.js";
|
|
6
6
|
import { SessionID } from "../session-id.js";
|
|
@@ -46,9 +46,9 @@ export const Replied = Schema.Struct({
|
|
|
46
46
|
export const Rejected = Schema.Struct({ sessionID: SessionID, requestID: ID }).annotate({
|
|
47
47
|
identifier: "QuestionRejected",
|
|
48
48
|
});
|
|
49
|
-
const Asked =
|
|
50
|
-
const RepliedEvent =
|
|
51
|
-
const RejectedEvent =
|
|
49
|
+
const Asked = ephemeral({ type: "question.asked", schema: Request.fields });
|
|
50
|
+
const RepliedEvent = ephemeral({ type: "question.replied", schema: Replied.fields });
|
|
51
|
+
const RejectedEvent = ephemeral({ type: "question.rejected", schema: Rejected.fields });
|
|
52
52
|
export const Event = {
|
|
53
53
|
Asked,
|
|
54
54
|
Replied: RepliedEvent,
|