@opencode/schema 0.0.0-dev-21106 → 0.0.0-dev-21107

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.
@@ -5,7 +5,6 @@ export type Delivery = typeof Delivery.Type;
5
5
  export interface UserPayload extends Schema.Schema.Type<typeof UserPayload> {
6
6
  }
7
7
  export declare const UserPayload: Schema.Struct<{
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
8
  readonly text: Schema.String;
10
9
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
11
10
  readonly data: Schema.String;
@@ -30,15 +29,15 @@ export declare const UserPayload: Schema.Struct<{
30
29
  }> & {
31
30
  create: (input: import("./prompt.js").FileAttachment) => {
32
31
  readonly data: string;
32
+ readonly mime: string;
33
33
  readonly source: {
34
34
  readonly type: "inline";
35
35
  } | {
36
36
  readonly type: "uri";
37
37
  readonly uri: string;
38
38
  };
39
- readonly mime: string;
40
- readonly description?: string | undefined;
41
39
  readonly name?: string | undefined;
40
+ readonly description?: string | undefined;
42
41
  readonly mention?: {
43
42
  readonly start: number;
44
43
  readonly end: number;
@@ -68,15 +67,15 @@ export declare const UserPayload: Schema.Struct<{
68
67
  }> & {
69
68
  create: (input: import("./prompt.js").FileAttachment) => {
70
69
  readonly data: string;
70
+ readonly mime: string;
71
71
  readonly source: {
72
72
  readonly type: "inline";
73
73
  } | {
74
74
  readonly type: "uri";
75
75
  readonly uri: string;
76
76
  };
77
- readonly mime: string;
78
- readonly description?: string | undefined;
79
77
  readonly name?: string | undefined;
78
+ readonly description?: string | undefined;
80
79
  readonly mention?: {
81
80
  readonly start: number;
82
81
  readonly end: number;
@@ -134,6 +133,7 @@ export declare const UserPayload: Schema.Struct<{
134
133
  readonly text: Schema.String;
135
134
  }>>, never, never>;
136
135
  }>>>, never, never>;
136
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
137
137
  }>;
138
138
  export interface SyntheticPayload extends Schema.Schema.Type<typeof SyntheticPayload> {
139
139
  }
@@ -166,7 +166,6 @@ export declare const MovePayload: Schema.Struct<{
166
166
  export declare const Item: Schema.Union<readonly [Schema.Struct<{
167
167
  readonly type: Schema.tag<"user">;
168
168
  readonly payload: Schema.Struct<{
169
- readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
170
169
  readonly text: Schema.String;
171
170
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
172
171
  readonly data: Schema.String;
@@ -191,15 +190,15 @@ export declare const Item: Schema.Union<readonly [Schema.Struct<{
191
190
  }> & {
192
191
  create: (input: import("./prompt.js").FileAttachment) => {
193
192
  readonly data: string;
193
+ readonly mime: string;
194
194
  readonly source: {
195
195
  readonly type: "inline";
196
196
  } | {
197
197
  readonly type: "uri";
198
198
  readonly uri: string;
199
199
  };
200
- readonly mime: string;
201
- readonly description?: string | undefined;
202
200
  readonly name?: string | undefined;
201
+ readonly description?: string | undefined;
203
202
  readonly mention?: {
204
203
  readonly start: number;
205
204
  readonly end: number;
@@ -229,15 +228,15 @@ export declare const Item: Schema.Union<readonly [Schema.Struct<{
229
228
  }> & {
230
229
  create: (input: import("./prompt.js").FileAttachment) => {
231
230
  readonly data: string;
231
+ readonly mime: string;
232
232
  readonly source: {
233
233
  readonly type: "inline";
234
234
  } | {
235
235
  readonly type: "uri";
236
236
  readonly uri: string;
237
237
  };
238
- readonly mime: string;
239
- readonly description?: string | undefined;
240
238
  readonly name?: string | undefined;
239
+ readonly description?: string | undefined;
241
240
  readonly mention?: {
242
241
  readonly start: number;
243
242
  readonly end: number;
@@ -295,6 +294,7 @@ export declare const Item: Schema.Union<readonly [Schema.Struct<{
295
294
  readonly text: Schema.String;
296
295
  }>>, never, never>;
297
296
  }>>>, never, never>;
297
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
298
298
  }>;
299
299
  readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
300
300
  }>, Schema.Struct<{
@@ -335,7 +335,6 @@ export interface User extends Schema.Schema.Type<typeof User> {
335
335
  export declare const User: Schema.Struct<{
336
336
  readonly type: Schema.tag<"user">;
337
337
  readonly payload: Schema.Struct<{
338
- readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
339
338
  readonly text: Schema.String;
340
339
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
341
340
  readonly data: Schema.String;
@@ -360,15 +359,15 @@ export declare const User: Schema.Struct<{
360
359
  }> & {
361
360
  create: (input: import("./prompt.js").FileAttachment) => {
362
361
  readonly data: string;
362
+ readonly mime: string;
363
363
  readonly source: {
364
364
  readonly type: "inline";
365
365
  } | {
366
366
  readonly type: "uri";
367
367
  readonly uri: string;
368
368
  };
369
- readonly mime: string;
370
- readonly description?: string | undefined;
371
369
  readonly name?: string | undefined;
370
+ readonly description?: string | undefined;
372
371
  readonly mention?: {
373
372
  readonly start: number;
374
373
  readonly end: number;
@@ -398,15 +397,15 @@ export declare const User: Schema.Struct<{
398
397
  }> & {
399
398
  create: (input: import("./prompt.js").FileAttachment) => {
400
399
  readonly data: string;
400
+ readonly mime: string;
401
401
  readonly source: {
402
402
  readonly type: "inline";
403
403
  } | {
404
404
  readonly type: "uri";
405
405
  readonly uri: string;
406
406
  };
407
- readonly mime: string;
408
- readonly description?: string | undefined;
409
407
  readonly name?: string | undefined;
408
+ readonly description?: string | undefined;
410
409
  readonly mention?: {
411
410
  readonly start: number;
412
411
  readonly end: number;
@@ -464,6 +463,7 @@ export declare const User: Schema.Struct<{
464
463
  readonly text: Schema.String;
465
464
  }>>, never, never>;
466
465
  }>>>, never, never>;
466
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
467
467
  }>;
468
468
  readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
469
469
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
@@ -554,7 +554,6 @@ export declare const Move: Schema.Struct<{
554
554
  export declare const Info: Schema.Union<readonly [Schema.Struct<{
555
555
  readonly type: Schema.tag<"user">;
556
556
  readonly payload: Schema.Struct<{
557
- readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
558
557
  readonly text: Schema.String;
559
558
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
560
559
  readonly data: Schema.String;
@@ -579,15 +578,15 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
579
578
  }> & {
580
579
  create: (input: import("./prompt.js").FileAttachment) => {
581
580
  readonly data: string;
581
+ readonly mime: string;
582
582
  readonly source: {
583
583
  readonly type: "inline";
584
584
  } | {
585
585
  readonly type: "uri";
586
586
  readonly uri: string;
587
587
  };
588
- readonly mime: string;
589
- readonly description?: string | undefined;
590
588
  readonly name?: string | undefined;
589
+ readonly description?: string | undefined;
591
590
  readonly mention?: {
592
591
  readonly start: number;
593
592
  readonly end: number;
@@ -617,15 +616,15 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
617
616
  }> & {
618
617
  create: (input: import("./prompt.js").FileAttachment) => {
619
618
  readonly data: string;
619
+ readonly mime: string;
620
620
  readonly source: {
621
621
  readonly type: "inline";
622
622
  } | {
623
623
  readonly type: "uri";
624
624
  readonly uri: string;
625
625
  };
626
- readonly mime: string;
627
- readonly description?: string | undefined;
628
626
  readonly name?: string | undefined;
627
+ readonly description?: string | undefined;
629
628
  readonly mention?: {
630
629
  readonly start: number;
631
630
  readonly end: number;
@@ -683,6 +682,7 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
683
682
  readonly text: Schema.String;
684
683
  }>>, never, never>;
685
684
  }>>>, never, never>;
685
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
686
686
  }>;
687
687
  readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
688
688
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {