@opencode/schema 2.1.3 → 2.1.4
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/config/experimental.d.ts +1 -0
- package/dist/config/experimental.js +3 -0
- package/dist/event-manifest.d.ts +120 -366
- package/dist/permission.d.ts +0 -9
- package/dist/persistent-pty.d.ts +0 -20
- package/dist/prompt-input.d.ts +3 -36
- package/dist/prompt-input.js +2 -6
- package/dist/session-event.d.ts +300 -852
- package/dist/session-event.js +0 -7
- package/dist/session-fork.d.ts +2 -2
- package/dist/session-id.d.ts +0 -1
- package/dist/session-id.js +3 -7
- package/dist/session-inbox.d.ts +8 -16
- package/dist/session-message.d.ts +30 -31
- package/dist/session-message.js +0 -1
- package/dist/session-revert.d.ts +27 -27
- package/dist/session-status-event.d.ts +0 -8
- package/dist/session-transfer.d.ts +19 -24
- package/dist/session.d.ts +8 -22
- package/dist/v1/legacy-event.d.ts +0 -4
- package/dist/v1/permission.d.ts +0 -10
- package/dist/v1/session.d.ts +0 -177
- package/dist/workspace-id.js +0 -2
- package/package.json +4 -3
package/dist/permission.d.ts
CHANGED
|
@@ -13,7 +13,6 @@ export type Source = typeof Source.Type;
|
|
|
13
13
|
export declare const Request: Schema.Struct<{
|
|
14
14
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
15
15
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
16
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
17
16
|
};
|
|
18
17
|
readonly action: Schema.String;
|
|
19
18
|
readonly resources: Schema.$Array<Schema.String>;
|
|
@@ -67,7 +66,6 @@ export declare const Event: {
|
|
|
67
66
|
readonly data: Schema.Struct<{
|
|
68
67
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
69
68
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
70
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
71
69
|
};
|
|
72
70
|
readonly action: Schema.String;
|
|
73
71
|
readonly resources: Schema.$Array<Schema.String>;
|
|
@@ -94,7 +92,6 @@ export declare const Event: {
|
|
|
94
92
|
data: Schema.Struct<{
|
|
95
93
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
96
94
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
97
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
98
95
|
};
|
|
99
96
|
readonly action: Schema.String;
|
|
100
97
|
readonly resources: Schema.$Array<Schema.String>;
|
|
@@ -144,7 +141,6 @@ export declare const Event: {
|
|
|
144
141
|
readonly data: Schema.Struct<{
|
|
145
142
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
146
143
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
147
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
148
144
|
};
|
|
149
145
|
readonly requestID: Schema.brand<Schema.String, "Permission.ID"> & {
|
|
150
146
|
create: (id?: string) => string & import("effect/Brand").Brand<"Permission.ID">;
|
|
@@ -158,7 +154,6 @@ export declare const Event: {
|
|
|
158
154
|
data: Schema.Struct<{
|
|
159
155
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
160
156
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
161
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
162
157
|
};
|
|
163
158
|
readonly requestID: Schema.brand<Schema.String, "Permission.ID"> & {
|
|
164
159
|
create: (id?: string) => string & import("effect/Brand").Brand<"Permission.ID">;
|
|
@@ -195,7 +190,6 @@ export declare const Event: {
|
|
|
195
190
|
readonly data: Schema.Struct<{
|
|
196
191
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
197
192
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
198
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
199
193
|
};
|
|
200
194
|
readonly action: Schema.String;
|
|
201
195
|
readonly resources: Schema.$Array<Schema.String>;
|
|
@@ -222,7 +216,6 @@ export declare const Event: {
|
|
|
222
216
|
data: Schema.Struct<{
|
|
223
217
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
224
218
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
225
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
226
219
|
};
|
|
227
220
|
readonly action: Schema.String;
|
|
228
221
|
readonly resources: Schema.$Array<Schema.String>;
|
|
@@ -271,7 +264,6 @@ export declare const Event: {
|
|
|
271
264
|
readonly data: Schema.Struct<{
|
|
272
265
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
273
266
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
274
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
275
267
|
};
|
|
276
268
|
readonly requestID: Schema.brand<Schema.String, "Permission.ID"> & {
|
|
277
269
|
create: (id?: string) => string & import("effect/Brand").Brand<"Permission.ID">;
|
|
@@ -285,7 +277,6 @@ export declare const Event: {
|
|
|
285
277
|
data: Schema.Struct<{
|
|
286
278
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
287
279
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
288
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
289
280
|
};
|
|
290
281
|
readonly requestID: Schema.brand<Schema.String, "Permission.ID"> & {
|
|
291
282
|
create: (id?: string) => string & import("effect/Brand").Brand<"Permission.ID">;
|
package/dist/persistent-pty.d.ts
CHANGED
|
@@ -14,7 +14,6 @@ export declare const Info: Schema.Struct<{
|
|
|
14
14
|
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
15
15
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
16
16
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
17
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
18
17
|
};
|
|
19
18
|
readonly foregroundProcess: Schema.NullOr<Schema.String>;
|
|
20
19
|
readonly size: Schema.Struct<{
|
|
@@ -76,7 +75,6 @@ export declare const Snapshot: Schema.Struct<{
|
|
|
76
75
|
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
77
76
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
78
77
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
79
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
80
78
|
};
|
|
81
79
|
readonly foregroundProcess: Schema.NullOr<Schema.String>;
|
|
82
80
|
readonly size: Schema.Struct<{
|
|
@@ -147,7 +145,6 @@ export declare const Added: Schema.Struct<{
|
|
|
147
145
|
readonly data: Schema.Struct<{
|
|
148
146
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
149
147
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
150
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
151
148
|
};
|
|
152
149
|
readonly terminal: Schema.Struct<{
|
|
153
150
|
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
@@ -163,7 +160,6 @@ export declare const Added: Schema.Struct<{
|
|
|
163
160
|
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
164
161
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
165
162
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
166
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
167
163
|
};
|
|
168
164
|
readonly foregroundProcess: Schema.NullOr<Schema.String>;
|
|
169
165
|
readonly size: Schema.Struct<{
|
|
@@ -183,7 +179,6 @@ export declare const Added: Schema.Struct<{
|
|
|
183
179
|
data: Schema.Struct<{
|
|
184
180
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
185
181
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
186
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
187
182
|
};
|
|
188
183
|
readonly terminal: Schema.Struct<{
|
|
189
184
|
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
@@ -199,7 +194,6 @@ export declare const Added: Schema.Struct<{
|
|
|
199
194
|
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
200
195
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
201
196
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
202
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
203
197
|
};
|
|
204
198
|
readonly foregroundProcess: Schema.NullOr<Schema.String>;
|
|
205
199
|
readonly size: Schema.Struct<{
|
|
@@ -242,7 +236,6 @@ export declare const Removed: Schema.Struct<{
|
|
|
242
236
|
readonly data: Schema.Struct<{
|
|
243
237
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
244
238
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
245
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
246
239
|
};
|
|
247
240
|
readonly ptyID: Schema.brand<Schema.String, "PtyID"> & {
|
|
248
241
|
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
@@ -256,7 +249,6 @@ export declare const Removed: Schema.Struct<{
|
|
|
256
249
|
data: Schema.Struct<{
|
|
257
250
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
258
251
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
259
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
260
252
|
};
|
|
261
253
|
readonly ptyID: Schema.brand<Schema.String, "PtyID"> & {
|
|
262
254
|
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
@@ -294,7 +286,6 @@ export declare const Event: {
|
|
|
294
286
|
readonly data: Schema.Struct<{
|
|
295
287
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
296
288
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
297
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
298
289
|
};
|
|
299
290
|
readonly terminal: Schema.Struct<{
|
|
300
291
|
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
@@ -310,7 +301,6 @@ export declare const Event: {
|
|
|
310
301
|
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
311
302
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
312
303
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
313
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
314
304
|
};
|
|
315
305
|
readonly foregroundProcess: Schema.NullOr<Schema.String>;
|
|
316
306
|
readonly size: Schema.Struct<{
|
|
@@ -330,7 +320,6 @@ export declare const Event: {
|
|
|
330
320
|
data: Schema.Struct<{
|
|
331
321
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
332
322
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
333
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
334
323
|
};
|
|
335
324
|
readonly terminal: Schema.Struct<{
|
|
336
325
|
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
@@ -346,7 +335,6 @@ export declare const Event: {
|
|
|
346
335
|
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
347
336
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
348
337
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
349
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
350
338
|
};
|
|
351
339
|
readonly foregroundProcess: Schema.NullOr<Schema.String>;
|
|
352
340
|
readonly size: Schema.Struct<{
|
|
@@ -389,7 +377,6 @@ export declare const Event: {
|
|
|
389
377
|
readonly data: Schema.Struct<{
|
|
390
378
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
391
379
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
392
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
393
380
|
};
|
|
394
381
|
readonly ptyID: Schema.brand<Schema.String, "PtyID"> & {
|
|
395
382
|
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
@@ -403,7 +390,6 @@ export declare const Event: {
|
|
|
403
390
|
data: Schema.Struct<{
|
|
404
391
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
405
392
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
406
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
407
393
|
};
|
|
408
394
|
readonly ptyID: Schema.brand<Schema.String, "PtyID"> & {
|
|
409
395
|
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
@@ -440,7 +426,6 @@ export declare const Event: {
|
|
|
440
426
|
readonly data: Schema.Struct<{
|
|
441
427
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
442
428
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
443
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
444
429
|
};
|
|
445
430
|
readonly terminal: Schema.Struct<{
|
|
446
431
|
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
@@ -456,7 +441,6 @@ export declare const Event: {
|
|
|
456
441
|
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
457
442
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
458
443
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
459
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
460
444
|
};
|
|
461
445
|
readonly foregroundProcess: Schema.NullOr<Schema.String>;
|
|
462
446
|
readonly size: Schema.Struct<{
|
|
@@ -476,7 +460,6 @@ export declare const Event: {
|
|
|
476
460
|
data: Schema.Struct<{
|
|
477
461
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
478
462
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
479
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
480
463
|
};
|
|
481
464
|
readonly terminal: Schema.Struct<{
|
|
482
465
|
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
@@ -492,7 +475,6 @@ export declare const Event: {
|
|
|
492
475
|
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
493
476
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
494
477
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
495
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
496
478
|
};
|
|
497
479
|
readonly foregroundProcess: Schema.NullOr<Schema.String>;
|
|
498
480
|
readonly size: Schema.Struct<{
|
|
@@ -534,7 +516,6 @@ export declare const Event: {
|
|
|
534
516
|
readonly data: Schema.Struct<{
|
|
535
517
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
536
518
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
537
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
538
519
|
};
|
|
539
520
|
readonly ptyID: Schema.brand<Schema.String, "PtyID"> & {
|
|
540
521
|
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
@@ -548,7 +529,6 @@ export declare const Event: {
|
|
|
548
529
|
data: Schema.Struct<{
|
|
549
530
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
550
531
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
551
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
552
532
|
};
|
|
553
533
|
readonly ptyID: Schema.brand<Schema.String, "PtyID"> & {
|
|
554
534
|
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
package/dist/prompt-input.d.ts
CHANGED
|
@@ -15,18 +15,7 @@ export declare const FileAttachment: Schema.Struct<{
|
|
|
15
15
|
readonly end: Schema.Finite;
|
|
16
16
|
readonly text: Schema.String;
|
|
17
17
|
}>>, never, never>;
|
|
18
|
-
}
|
|
19
|
-
create: (input: FileAttachment) => {
|
|
20
|
-
readonly uri: string;
|
|
21
|
-
readonly name?: string | undefined;
|
|
22
|
-
readonly description?: string | undefined;
|
|
23
|
-
readonly mention?: {
|
|
24
|
-
readonly start: number;
|
|
25
|
-
readonly end: number;
|
|
26
|
-
readonly text: string;
|
|
27
|
-
} | undefined;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
18
|
+
}>;
|
|
30
19
|
export interface Prompt extends Schema.Schema.Type<typeof Prompt> {
|
|
31
20
|
}
|
|
32
21
|
export interface SkillAttachment extends Schema.Schema.Type<typeof SkillAttachment> {
|
|
@@ -58,18 +47,7 @@ export declare const Prompt: Schema.Struct<{
|
|
|
58
47
|
readonly end: Schema.Finite;
|
|
59
48
|
readonly text: Schema.String;
|
|
60
49
|
}>>, never, never>;
|
|
61
|
-
}
|
|
62
|
-
create: (input: FileAttachment) => {
|
|
63
|
-
readonly uri: string;
|
|
64
|
-
readonly name?: string | undefined;
|
|
65
|
-
readonly description?: string | undefined;
|
|
66
|
-
readonly mention?: {
|
|
67
|
-
readonly start: number;
|
|
68
|
-
readonly end: number;
|
|
69
|
-
readonly text: string;
|
|
70
|
-
} | undefined;
|
|
71
|
-
};
|
|
72
|
-
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
50
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
73
51
|
readonly uri: Schema.String;
|
|
74
52
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
75
53
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -82,18 +60,7 @@ export declare const Prompt: Schema.Struct<{
|
|
|
82
60
|
readonly end: Schema.Finite;
|
|
83
61
|
readonly text: Schema.String;
|
|
84
62
|
}>>, never, never>;
|
|
85
|
-
}
|
|
86
|
-
create: (input: FileAttachment) => {
|
|
87
|
-
readonly uri: string;
|
|
88
|
-
readonly name?: string | undefined;
|
|
89
|
-
readonly description?: string | undefined;
|
|
90
|
-
readonly mention?: {
|
|
91
|
-
readonly start: number;
|
|
92
|
-
readonly end: number;
|
|
93
|
-
readonly text: string;
|
|
94
|
-
} | undefined;
|
|
95
|
-
};
|
|
96
|
-
}>>, never, never>;
|
|
63
|
+
}>>>, never, never>;
|
|
97
64
|
readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
98
65
|
readonly name: Schema.String;
|
|
99
66
|
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
package/dist/prompt-input.js
CHANGED
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
export * as PromptInput from "./prompt-input.js";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
import { AgentAttachment, PromptMention } from "./prompt.js";
|
|
4
|
-
import { optional
|
|
4
|
+
import { optional } from "./schema.js";
|
|
5
5
|
import { Skill } from "./skill.js";
|
|
6
6
|
export const FileAttachment = Schema.Struct({
|
|
7
7
|
uri: Schema.String,
|
|
8
8
|
name: Schema.String.pipe(optional),
|
|
9
9
|
description: Schema.String.pipe(optional),
|
|
10
10
|
mention: PromptMention.pipe(optional),
|
|
11
|
-
})
|
|
12
|
-
.annotate({ identifier: "PromptInput.FileAttachment" })
|
|
13
|
-
.pipe(statics((schema) => ({
|
|
14
|
-
create: (input) => schema.make(input),
|
|
15
|
-
})));
|
|
11
|
+
}).annotate({ identifier: "PromptInput.FileAttachment" });
|
|
16
12
|
export const SkillAttachment = Schema.Struct({
|
|
17
13
|
id: Skill.ID,
|
|
18
14
|
mention: PromptMention.pipe(optional),
|