@opencode-ai/schema 0.0.0-next-14742 → 0.0.0-next-14758

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.
@@ -6,7 +6,6 @@ import { Durable } from "./durable-event-manifest.js";
6
6
  import { Event } from "./event.js";
7
7
  import { FileSystem } from "./filesystem.js";
8
8
  import { FileSystemWatcher } from "./filesystem-watcher.js";
9
- import { Form } from "./form.js";
10
9
  import { InstallationEvent } from "./installation-event.js";
11
10
  import { Integration } from "./integration.js";
12
11
  import { LegacyEvent } from "./legacy-event.js";
@@ -19,6 +18,7 @@ import { Plugin } from "./plugin.js";
19
18
  import { Project } from "./project.js";
20
19
  import { ProjectDirectories } from "./project-directories.js";
21
20
  import { Pty } from "./pty.js";
21
+ import { Question } from "./question.js";
22
22
  import { QuestionV1 } from "./question-v1.js";
23
23
  import { Reference } from "./reference.js";
24
24
  import { ServerEvent } from "./server-event.js";
@@ -37,8 +37,14 @@ const sessionV1DurableDefinitions = SessionV1.Event.Definitions.filter((definiti
37
37
  const sessionV1LiveDefinitions = SessionV1.Event.Definitions.filter((definition) => definition.durable === undefined);
38
38
  const coreDefinitions = Event.inventory(...sessionV1DurableDefinitions, ...SessionEvent.Definitions);
39
39
  const foundationDefinitions = Event.inventory(...ModelsDev.Event.Definitions, ...Integration.Event.Definitions, ...Catalog.Event.Definitions, ...Agent.Event.Definitions, ...coreDefinitions);
40
- const featureDefinitions = Event.inventory(...FileSystem.Event.Definitions, ...Reference.Event.Definitions, ...Permission.Event.Definitions, ...Plugin.Event.Definitions, ...ProjectDirectories.Event.Definitions, ...Command.Event.Definitions, ...Skill.Event.Definitions, ...FileSystemWatcher.Event.Definitions, ...Pty.Event.Definitions, ...Shell.Event.Definitions, ...Form.Event.Definitions);
41
- export const ServerDefinitions = Event.inventory(...foundationDefinitions, ...featureDefinitions, ...SessionTodo.Event.Definitions);
40
+ const featureDefinitions = Event.inventory(...FileSystem.Event.Definitions, ...Reference.Event.Definitions, ...Permission.Event.Definitions, ...Plugin.Event.Definitions, ...ProjectDirectories.Event.Definitions, ...Command.Event.Definitions, ...Skill.Event.Definitions, ...FileSystemWatcher.Event.Definitions, ...Pty.Event.Definitions, ...Shell.Event.Definitions, ...Question.Event.Definitions);
41
+ export const ServerDefinitions = Event.inventory(...foundationDefinitions, ...featureDefinitions, ...SessionTodo.Event.Definitions,
42
+ // Current events the TUI consumes from the public stream.
43
+ ...SessionStatusEvent.Definitions, ...TuiEvent.Definitions, ...InstallationEvent.Definitions, ...VcsEvent.Definitions, McpEvent.StatusChanged,
44
+ // Shared transitional: V1 contracts the current TUI still consumes during
45
+ // the migration (permission.asked/replied, question.asked, session.error).
46
+ // Remove when the TUI moves to the current permission/question surfaces.
47
+ ...PermissionV1.Event.Definitions, ...QuestionV1.Event.Definitions, SessionV1.Error);
42
48
  export const Definitions = Event.inventory(...foundationDefinitions, ...sessionV1LiveDefinitions, ...InstallationEvent.Definitions, ...featureDefinitions, ...SessionTodo.Event.Definitions, ...LspEvent.Definitions, ...PermissionV1.Event.Definitions, ...TuiEvent.Definitions, ...McpEvent.Definitions, ...LegacyEvent.Definitions, ...Project.Event.Definitions, ...SessionStatusEvent.Definitions, ...QuestionV1.Event.Definitions, ...SessionCompactionEvent.Definitions, ...VcsEvent.Definitions, ...WorkspaceEvent.Definitions, ...WorktreeEvent.Definitions, ...ServerEvent.Definitions);
43
49
  export const Latest = Event.latest(Definitions);
44
50
  export { Durable };
package/dist/index.d.ts CHANGED
@@ -4,7 +4,6 @@ export { Connection } from "./connection.js";
4
4
  export { Credential } from "./credential.js";
5
5
  export { Event } from "./event.js";
6
6
  export { FileSystem } from "./filesystem.js";
7
- export { Form } from "./form.js";
8
7
  export { Integration } from "./integration.js";
9
8
  export { LLM } from "./llm.js";
10
9
  export { Location } from "./location.js";
@@ -23,6 +22,7 @@ export { Shell } from "./shell.js";
23
22
  export { Skill } from "./skill.js";
24
23
  export { Pty } from "./pty.js";
25
24
  export { PtyTicket } from "./pty-ticket.js";
25
+ export { Question } from "./question.js";
26
26
  export { Workspace } from "./workspace.js";
27
27
  export { Prompt, Source, FileAttachment, AgentAttachment } from "./prompt.js";
28
28
  export { PromptInput } from "./prompt-input.js";
package/dist/index.js CHANGED
@@ -4,7 +4,6 @@ export { Connection } from "./connection.js";
4
4
  export { Credential } from "./credential.js";
5
5
  export { Event } from "./event.js";
6
6
  export { FileSystem } from "./filesystem.js";
7
- export { Form } from "./form.js";
8
7
  export { Integration } from "./integration.js";
9
8
  export { LLM } from "./llm.js";
10
9
  export { Location } from "./location.js";
@@ -23,6 +22,7 @@ export { Shell } from "./shell.js";
23
22
  export { Skill } from "./skill.js";
24
23
  export { Pty } from "./pty.js";
25
24
  export { PtyTicket } from "./pty-ticket.js";
25
+ export { Question } from "./question.js";
26
26
  export { Workspace } from "./workspace.js";
27
27
  export { Prompt, Source, FileAttachment, AgentAttachment } from "./prompt.js";
28
28
  export { PromptInput } from "./prompt-input.js";
@@ -0,0 +1,516 @@
1
+ export * as Question from "./question.js";
2
+ import { Schema } from "effect";
3
+ export declare const ID: Schema.brand<Schema.String, "QuestionV2.ID"> & {
4
+ create: () => string & import("effect/Brand").Brand<"QuestionV2.ID">;
5
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"QuestionV2.ID">;
6
+ };
7
+ export type ID = typeof ID.Type;
8
+ export declare const Option: Schema.Struct<{
9
+ readonly label: Schema.String;
10
+ readonly description: Schema.String;
11
+ }>;
12
+ export interface Option extends Schema.Schema.Type<typeof Option> {
13
+ }
14
+ export declare const Info: Schema.Struct<{
15
+ readonly custom: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
16
+ readonly question: Schema.String;
17
+ readonly header: Schema.String;
18
+ readonly options: Schema.$Array<Schema.Struct<{
19
+ readonly label: Schema.String;
20
+ readonly description: Schema.String;
21
+ }>>;
22
+ readonly multiple: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
23
+ }>;
24
+ export interface Info extends Schema.Schema.Type<typeof Info> {
25
+ }
26
+ export declare const Prompt: Schema.Struct<{
27
+ question: Schema.String;
28
+ header: Schema.String;
29
+ options: Schema.$Array<Schema.Struct<{
30
+ readonly label: Schema.String;
31
+ readonly description: Schema.String;
32
+ }>>;
33
+ multiple: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
34
+ }>;
35
+ export interface Prompt extends Schema.Schema.Type<typeof Prompt> {
36
+ }
37
+ export declare const Tool: Schema.Struct<{
38
+ readonly messageID: Schema.String;
39
+ readonly callID: Schema.String;
40
+ }>;
41
+ export interface Tool extends Schema.Schema.Type<typeof Tool> {
42
+ }
43
+ export declare const Request: Schema.Struct<{
44
+ readonly id: Schema.brand<Schema.String, "QuestionV2.ID"> & {
45
+ create: () => string & import("effect/Brand").Brand<"QuestionV2.ID">;
46
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"QuestionV2.ID">;
47
+ };
48
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
49
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
50
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
51
+ };
52
+ readonly questions: Schema.$Array<Schema.Struct<{
53
+ readonly custom: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
54
+ readonly question: Schema.String;
55
+ readonly header: Schema.String;
56
+ readonly options: Schema.$Array<Schema.Struct<{
57
+ readonly label: Schema.String;
58
+ readonly description: Schema.String;
59
+ }>>;
60
+ readonly multiple: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
61
+ }>>;
62
+ readonly tool: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
63
+ readonly messageID: Schema.String;
64
+ readonly callID: Schema.String;
65
+ }>>>, Schema.optionalKey<Schema.Struct<{
66
+ readonly messageID: Schema.String;
67
+ readonly callID: Schema.String;
68
+ }>>, never, never>;
69
+ }>;
70
+ export interface Request extends Schema.Schema.Type<typeof Request> {
71
+ }
72
+ export declare const Answer: Schema.$Array<Schema.String>;
73
+ export type Answer = typeof Answer.Type;
74
+ export declare const Reply: Schema.Struct<{
75
+ readonly answers: Schema.$Array<Schema.$Array<Schema.String>>;
76
+ }>;
77
+ export interface Reply extends Schema.Schema.Type<typeof Reply> {
78
+ }
79
+ export declare const Event: {
80
+ Asked: Schema.Struct<{
81
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
82
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
83
+ };
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
+ 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
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
96
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
97
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
98
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
99
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
100
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
101
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
102
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
103
+ }>, never, never>;
104
+ }>>>, Schema.optionalKey<Schema.Struct<{
105
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
106
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
107
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
108
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
109
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
110
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
111
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
112
+ }>, never, never>;
113
+ }>>, never, never>;
114
+ readonly data: Schema.Struct<{
115
+ readonly id: Schema.brand<Schema.String, "QuestionV2.ID"> & {
116
+ create: () => string & import("effect/Brand").Brand<"QuestionV2.ID">;
117
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"QuestionV2.ID">;
118
+ };
119
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
120
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
121
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
122
+ };
123
+ readonly questions: Schema.$Array<Schema.Struct<{
124
+ readonly custom: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
125
+ readonly question: Schema.String;
126
+ readonly header: Schema.String;
127
+ readonly options: Schema.$Array<Schema.Struct<{
128
+ readonly label: Schema.String;
129
+ readonly description: Schema.String;
130
+ }>>;
131
+ readonly multiple: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
132
+ }>>;
133
+ readonly tool: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
134
+ readonly messageID: Schema.String;
135
+ readonly callID: Schema.String;
136
+ }>>>, Schema.optionalKey<Schema.Struct<{
137
+ readonly messageID: Schema.String;
138
+ readonly callID: Schema.String;
139
+ }>>, never, never>;
140
+ }>;
141
+ }> & {
142
+ data: Schema.Struct<{
143
+ readonly id: Schema.brand<Schema.String, "QuestionV2.ID"> & {
144
+ create: () => string & import("effect/Brand").Brand<"QuestionV2.ID">;
145
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"QuestionV2.ID">;
146
+ };
147
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
148
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
149
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
150
+ };
151
+ readonly questions: Schema.$Array<Schema.Struct<{
152
+ readonly custom: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
153
+ readonly question: Schema.String;
154
+ readonly header: Schema.String;
155
+ readonly options: Schema.$Array<Schema.Struct<{
156
+ readonly label: Schema.String;
157
+ readonly description: Schema.String;
158
+ }>>;
159
+ readonly multiple: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
160
+ }>>;
161
+ readonly tool: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
162
+ readonly messageID: Schema.String;
163
+ readonly callID: Schema.String;
164
+ }>>>, Schema.optionalKey<Schema.Struct<{
165
+ readonly messageID: Schema.String;
166
+ readonly callID: Schema.String;
167
+ }>>, never, never>;
168
+ }>;
169
+ durable?: {
170
+ readonly version: number;
171
+ readonly aggregate: string;
172
+ } | undefined;
173
+ type: "question.v2.asked";
174
+ };
175
+ Replied: Schema.Struct<{
176
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
177
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
178
+ };
179
+ 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
+ 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
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
191
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
192
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
193
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
194
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
195
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
196
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
197
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
198
+ }>, never, never>;
199
+ }>>>, Schema.optionalKey<Schema.Struct<{
200
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
201
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
202
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
203
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
204
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
205
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
206
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
207
+ }>, never, never>;
208
+ }>>, never, never>;
209
+ readonly data: Schema.Struct<{
210
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
211
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
212
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
213
+ };
214
+ readonly requestID: Schema.brand<Schema.String, "QuestionV2.ID"> & {
215
+ create: () => string & import("effect/Brand").Brand<"QuestionV2.ID">;
216
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"QuestionV2.ID">;
217
+ };
218
+ readonly answers: Schema.$Array<Schema.$Array<Schema.String>>;
219
+ }>;
220
+ }> & {
221
+ data: Schema.Struct<{
222
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
223
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
224
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
225
+ };
226
+ readonly requestID: Schema.brand<Schema.String, "QuestionV2.ID"> & {
227
+ create: () => string & import("effect/Brand").Brand<"QuestionV2.ID">;
228
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"QuestionV2.ID">;
229
+ };
230
+ readonly answers: Schema.$Array<Schema.$Array<Schema.String>>;
231
+ }>;
232
+ durable?: {
233
+ readonly version: number;
234
+ readonly aggregate: string;
235
+ } | undefined;
236
+ type: "question.v2.replied";
237
+ };
238
+ Rejected: Schema.Struct<{
239
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
240
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
241
+ };
242
+ 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
+ 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
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
254
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
255
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
256
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
257
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
258
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
259
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
260
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
261
+ }>, never, never>;
262
+ }>>>, Schema.optionalKey<Schema.Struct<{
263
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
264
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
265
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
266
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
267
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
268
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
269
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
270
+ }>, never, never>;
271
+ }>>, never, never>;
272
+ readonly data: Schema.Struct<{
273
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
274
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
275
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
276
+ };
277
+ readonly requestID: Schema.brand<Schema.String, "QuestionV2.ID"> & {
278
+ create: () => string & import("effect/Brand").Brand<"QuestionV2.ID">;
279
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"QuestionV2.ID">;
280
+ };
281
+ }>;
282
+ }> & {
283
+ data: Schema.Struct<{
284
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
285
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
286
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
287
+ };
288
+ readonly requestID: Schema.brand<Schema.String, "QuestionV2.ID"> & {
289
+ create: () => string & import("effect/Brand").Brand<"QuestionV2.ID">;
290
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"QuestionV2.ID">;
291
+ };
292
+ }>;
293
+ durable?: {
294
+ readonly version: number;
295
+ readonly aggregate: string;
296
+ } | undefined;
297
+ type: "question.v2.rejected";
298
+ };
299
+ Definitions: readonly [Schema.Struct<{
300
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
301
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
302
+ };
303
+ 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
+ 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
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
315
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
316
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
317
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
318
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
319
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
320
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
321
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
322
+ }>, never, never>;
323
+ }>>>, Schema.optionalKey<Schema.Struct<{
324
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
325
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
326
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
327
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
328
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
329
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
330
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
331
+ }>, never, never>;
332
+ }>>, never, never>;
333
+ readonly data: Schema.Struct<{
334
+ readonly id: Schema.brand<Schema.String, "QuestionV2.ID"> & {
335
+ create: () => string & import("effect/Brand").Brand<"QuestionV2.ID">;
336
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"QuestionV2.ID">;
337
+ };
338
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
339
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
340
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
341
+ };
342
+ readonly questions: Schema.$Array<Schema.Struct<{
343
+ readonly custom: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
344
+ readonly question: Schema.String;
345
+ readonly header: Schema.String;
346
+ readonly options: Schema.$Array<Schema.Struct<{
347
+ readonly label: Schema.String;
348
+ readonly description: Schema.String;
349
+ }>>;
350
+ readonly multiple: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
351
+ }>>;
352
+ readonly tool: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
353
+ readonly messageID: Schema.String;
354
+ readonly callID: Schema.String;
355
+ }>>>, Schema.optionalKey<Schema.Struct<{
356
+ readonly messageID: Schema.String;
357
+ readonly callID: Schema.String;
358
+ }>>, never, never>;
359
+ }>;
360
+ }> & {
361
+ data: Schema.Struct<{
362
+ readonly id: Schema.brand<Schema.String, "QuestionV2.ID"> & {
363
+ create: () => string & import("effect/Brand").Brand<"QuestionV2.ID">;
364
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"QuestionV2.ID">;
365
+ };
366
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
367
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
368
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
369
+ };
370
+ readonly questions: Schema.$Array<Schema.Struct<{
371
+ readonly custom: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
372
+ readonly question: Schema.String;
373
+ readonly header: Schema.String;
374
+ readonly options: Schema.$Array<Schema.Struct<{
375
+ readonly label: Schema.String;
376
+ readonly description: Schema.String;
377
+ }>>;
378
+ readonly multiple: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
379
+ }>>;
380
+ readonly tool: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
381
+ readonly messageID: Schema.String;
382
+ readonly callID: Schema.String;
383
+ }>>>, Schema.optionalKey<Schema.Struct<{
384
+ readonly messageID: Schema.String;
385
+ readonly callID: Schema.String;
386
+ }>>, never, never>;
387
+ }>;
388
+ durable?: {
389
+ readonly version: number;
390
+ readonly aggregate: string;
391
+ } | undefined;
392
+ type: "question.v2.asked";
393
+ }, Schema.Struct<{
394
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
395
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
396
+ };
397
+ 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
+ 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
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
409
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
410
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
411
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
412
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
413
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
414
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
415
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
416
+ }>, never, never>;
417
+ }>>>, Schema.optionalKey<Schema.Struct<{
418
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
419
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
420
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
421
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
422
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
423
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
424
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
425
+ }>, never, never>;
426
+ }>>, never, never>;
427
+ readonly data: Schema.Struct<{
428
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
429
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
430
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
431
+ };
432
+ readonly requestID: Schema.brand<Schema.String, "QuestionV2.ID"> & {
433
+ create: () => string & import("effect/Brand").Brand<"QuestionV2.ID">;
434
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"QuestionV2.ID">;
435
+ };
436
+ readonly answers: Schema.$Array<Schema.$Array<Schema.String>>;
437
+ }>;
438
+ }> & {
439
+ data: Schema.Struct<{
440
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
441
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
442
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
443
+ };
444
+ readonly requestID: Schema.brand<Schema.String, "QuestionV2.ID"> & {
445
+ create: () => string & import("effect/Brand").Brand<"QuestionV2.ID">;
446
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"QuestionV2.ID">;
447
+ };
448
+ readonly answers: Schema.$Array<Schema.$Array<Schema.String>>;
449
+ }>;
450
+ durable?: {
451
+ readonly version: number;
452
+ readonly aggregate: string;
453
+ } | undefined;
454
+ type: "question.v2.replied";
455
+ }, Schema.Struct<{
456
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
457
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
458
+ };
459
+ 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
+ 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
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
471
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
472
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
473
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
474
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
475
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
476
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
477
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
478
+ }>, never, never>;
479
+ }>>>, Schema.optionalKey<Schema.Struct<{
480
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
481
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
482
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
483
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
484
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
485
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
486
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
487
+ }>, never, never>;
488
+ }>>, never, never>;
489
+ readonly data: Schema.Struct<{
490
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
491
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
492
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
493
+ };
494
+ readonly requestID: Schema.brand<Schema.String, "QuestionV2.ID"> & {
495
+ create: () => string & import("effect/Brand").Brand<"QuestionV2.ID">;
496
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"QuestionV2.ID">;
497
+ };
498
+ }>;
499
+ }> & {
500
+ data: Schema.Struct<{
501
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
502
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
503
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
504
+ };
505
+ readonly requestID: Schema.brand<Schema.String, "QuestionV2.ID"> & {
506
+ create: () => string & import("effect/Brand").Brand<"QuestionV2.ID">;
507
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"QuestionV2.ID">;
508
+ };
509
+ }>;
510
+ durable?: {
511
+ readonly version: number;
512
+ readonly aggregate: string;
513
+ } | undefined;
514
+ type: "question.v2.rejected";
515
+ }];
516
+ };