@opencode-ai/schema 0.0.0-next-14761 → 0.0.0-next-14769

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.
@@ -7083,10 +7083,7 @@ export declare const ServerDefinitions: readonly [import("effect/Schema").Struct
7083
7083
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Form.ID"> & {
7084
7084
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
7085
7085
  };
7086
- readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
7087
- create: () => string & import("effect/Brand").Brand<"SessionID">;
7088
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7089
- };
7086
+ readonly sessionID: import("effect/Schema").String;
7090
7087
  readonly title: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
7091
7088
  readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
7092
7089
  }>, import("effect/Schema").Struct<{
@@ -7095,10 +7092,7 @@ export declare const ServerDefinitions: readonly [import("effect/Schema").Struct
7095
7092
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Form.ID"> & {
7096
7093
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
7097
7094
  };
7098
- readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
7099
- create: () => string & import("effect/Brand").Brand<"SessionID">;
7100
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7101
- };
7095
+ readonly sessionID: import("effect/Schema").String;
7102
7096
  readonly title: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
7103
7097
  readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
7104
7098
  }>]>;
@@ -7218,10 +7212,7 @@ export declare const ServerDefinitions: readonly [import("effect/Schema").Struct
7218
7212
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Form.ID"> & {
7219
7213
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
7220
7214
  };
7221
- readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
7222
- create: () => string & import("effect/Brand").Brand<"SessionID">;
7223
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7224
- };
7215
+ readonly sessionID: import("effect/Schema").String;
7225
7216
  readonly title: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
7226
7217
  readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
7227
7218
  }>, import("effect/Schema").Struct<{
@@ -7230,10 +7221,7 @@ export declare const ServerDefinitions: readonly [import("effect/Schema").Struct
7230
7221
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Form.ID"> & {
7231
7222
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
7232
7223
  };
7233
- readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
7234
- create: () => string & import("effect/Brand").Brand<"SessionID">;
7235
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7236
- };
7224
+ readonly sessionID: import("effect/Schema").String;
7237
7225
  readonly title: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
7238
7226
  readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
7239
7227
  }>]>;
@@ -7281,10 +7269,7 @@ export declare const ServerDefinitions: readonly [import("effect/Schema").Struct
7281
7269
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Form.ID"> & {
7282
7270
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
7283
7271
  };
7284
- readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
7285
- create: () => string & import("effect/Brand").Brand<"SessionID">;
7286
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7287
- };
7272
+ readonly sessionID: import("effect/Schema").String;
7288
7273
  readonly answer: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").String>]>>;
7289
7274
  }>;
7290
7275
  }> & {
@@ -7292,10 +7277,7 @@ export declare const ServerDefinitions: readonly [import("effect/Schema").Struct
7292
7277
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Form.ID"> & {
7293
7278
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
7294
7279
  };
7295
- readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
7296
- create: () => string & import("effect/Brand").Brand<"SessionID">;
7297
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7298
- };
7280
+ readonly sessionID: import("effect/Schema").String;
7299
7281
  readonly answer: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").String>]>>;
7300
7282
  }>;
7301
7283
  durable?: {
@@ -7341,20 +7323,14 @@ export declare const ServerDefinitions: readonly [import("effect/Schema").Struct
7341
7323
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Form.ID"> & {
7342
7324
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
7343
7325
  };
7344
- readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
7345
- create: () => string & import("effect/Brand").Brand<"SessionID">;
7346
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7347
- };
7326
+ readonly sessionID: import("effect/Schema").String;
7348
7327
  }>;
7349
7328
  }> & {
7350
7329
  data: import("effect/Schema").Struct<{
7351
7330
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Form.ID"> & {
7352
7331
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
7353
7332
  };
7354
- readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
7355
- create: () => string & import("effect/Brand").Brand<"SessionID">;
7356
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7357
- };
7333
+ readonly sessionID: import("effect/Schema").String;
7358
7334
  }>;
7359
7335
  durable?: {
7360
7336
  readonly version: number;
@@ -15614,10 +15590,7 @@ export declare const Definitions: readonly [import("effect/Schema").Struct<{
15614
15590
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Form.ID"> & {
15615
15591
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
15616
15592
  };
15617
- readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
15618
- create: () => string & import("effect/Brand").Brand<"SessionID">;
15619
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
15620
- };
15593
+ readonly sessionID: import("effect/Schema").String;
15621
15594
  readonly title: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
15622
15595
  readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
15623
15596
  }>, import("effect/Schema").Struct<{
@@ -15626,10 +15599,7 @@ export declare const Definitions: readonly [import("effect/Schema").Struct<{
15626
15599
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Form.ID"> & {
15627
15600
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
15628
15601
  };
15629
- readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
15630
- create: () => string & import("effect/Brand").Brand<"SessionID">;
15631
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
15632
- };
15602
+ readonly sessionID: import("effect/Schema").String;
15633
15603
  readonly title: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
15634
15604
  readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
15635
15605
  }>]>;
@@ -15749,10 +15719,7 @@ export declare const Definitions: readonly [import("effect/Schema").Struct<{
15749
15719
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Form.ID"> & {
15750
15720
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
15751
15721
  };
15752
- readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
15753
- create: () => string & import("effect/Brand").Brand<"SessionID">;
15754
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
15755
- };
15722
+ readonly sessionID: import("effect/Schema").String;
15756
15723
  readonly title: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
15757
15724
  readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
15758
15725
  }>, import("effect/Schema").Struct<{
@@ -15761,10 +15728,7 @@ export declare const Definitions: readonly [import("effect/Schema").Struct<{
15761
15728
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Form.ID"> & {
15762
15729
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
15763
15730
  };
15764
- readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
15765
- create: () => string & import("effect/Brand").Brand<"SessionID">;
15766
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
15767
- };
15731
+ readonly sessionID: import("effect/Schema").String;
15768
15732
  readonly title: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
15769
15733
  readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
15770
15734
  }>]>;
@@ -15812,10 +15776,7 @@ export declare const Definitions: readonly [import("effect/Schema").Struct<{
15812
15776
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Form.ID"> & {
15813
15777
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
15814
15778
  };
15815
- readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
15816
- create: () => string & import("effect/Brand").Brand<"SessionID">;
15817
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
15818
- };
15779
+ readonly sessionID: import("effect/Schema").String;
15819
15780
  readonly answer: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").String>]>>;
15820
15781
  }>;
15821
15782
  }> & {
@@ -15823,10 +15784,7 @@ export declare const Definitions: readonly [import("effect/Schema").Struct<{
15823
15784
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Form.ID"> & {
15824
15785
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
15825
15786
  };
15826
- readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
15827
- create: () => string & import("effect/Brand").Brand<"SessionID">;
15828
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
15829
- };
15787
+ readonly sessionID: import("effect/Schema").String;
15830
15788
  readonly answer: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").String>]>>;
15831
15789
  }>;
15832
15790
  durable?: {
@@ -15872,20 +15830,14 @@ export declare const Definitions: readonly [import("effect/Schema").Struct<{
15872
15830
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Form.ID"> & {
15873
15831
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
15874
15832
  };
15875
- readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
15876
- create: () => string & import("effect/Brand").Brand<"SessionID">;
15877
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
15878
- };
15833
+ readonly sessionID: import("effect/Schema").String;
15879
15834
  }>;
15880
15835
  }> & {
15881
15836
  data: import("effect/Schema").Struct<{
15882
15837
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Form.ID"> & {
15883
15838
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
15884
15839
  };
15885
- readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
15886
- create: () => string & import("effect/Brand").Brand<"SessionID">;
15887
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
15888
- };
15840
+ readonly sessionID: import("effect/Schema").String;
15889
15841
  }>;
15890
15842
  durable?: {
15891
15843
  readonly version: number;
package/dist/form.d.ts CHANGED
@@ -364,10 +364,7 @@ export declare const FormInfo: Schema.Struct<{
364
364
  readonly id: Schema.brand<Schema.String, "Form.ID"> & {
365
365
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
366
366
  };
367
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
368
- create: () => string & import("effect/Brand").Brand<"SessionID">;
369
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
370
- };
367
+ readonly sessionID: Schema.String;
371
368
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
372
369
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
373
370
  }>;
@@ -379,10 +376,7 @@ export declare const UrlInfo: Schema.Struct<{
379
376
  readonly id: Schema.brand<Schema.String, "Form.ID"> & {
380
377
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
381
378
  };
382
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
383
- create: () => string & import("effect/Brand").Brand<"SessionID">;
384
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
385
- };
379
+ readonly sessionID: Schema.String;
386
380
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
387
381
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
388
382
  }>;
@@ -501,10 +495,7 @@ export declare const Info: Schema.toTaggedUnion<"mode", readonly [Schema.Struct<
501
495
  readonly id: Schema.brand<Schema.String, "Form.ID"> & {
502
496
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
503
497
  };
504
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
505
- create: () => string & import("effect/Brand").Brand<"SessionID">;
506
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
507
- };
498
+ readonly sessionID: Schema.String;
508
499
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
509
500
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
510
501
  }>, Schema.Struct<{
@@ -513,10 +504,7 @@ export declare const Info: Schema.toTaggedUnion<"mode", readonly [Schema.Struct<
513
504
  readonly id: Schema.brand<Schema.String, "Form.ID"> & {
514
505
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
515
506
  };
516
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
517
- create: () => string & import("effect/Brand").Brand<"SessionID">;
518
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
519
- };
507
+ readonly sessionID: Schema.String;
520
508
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
521
509
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
522
510
  }>]>;
@@ -688,10 +676,7 @@ export declare const Event: {
688
676
  readonly id: Schema.brand<Schema.String, "Form.ID"> & {
689
677
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
690
678
  };
691
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
692
- create: () => string & import("effect/Brand").Brand<"SessionID">;
693
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
694
- };
679
+ readonly sessionID: Schema.String;
695
680
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
696
681
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
697
682
  }>, Schema.Struct<{
@@ -700,10 +685,7 @@ export declare const Event: {
700
685
  readonly id: Schema.brand<Schema.String, "Form.ID"> & {
701
686
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
702
687
  };
703
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
704
- create: () => string & import("effect/Brand").Brand<"SessionID">;
705
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
706
- };
688
+ readonly sessionID: Schema.String;
707
689
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
708
690
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
709
691
  }>]>;
@@ -823,10 +805,7 @@ export declare const Event: {
823
805
  readonly id: Schema.brand<Schema.String, "Form.ID"> & {
824
806
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
825
807
  };
826
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
827
- create: () => string & import("effect/Brand").Brand<"SessionID">;
828
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
829
- };
808
+ readonly sessionID: Schema.String;
830
809
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
831
810
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
832
811
  }>, Schema.Struct<{
@@ -835,10 +814,7 @@ export declare const Event: {
835
814
  readonly id: Schema.brand<Schema.String, "Form.ID"> & {
836
815
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
837
816
  };
838
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
839
- create: () => string & import("effect/Brand").Brand<"SessionID">;
840
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
841
- };
817
+ readonly sessionID: Schema.String;
842
818
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
843
819
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
844
820
  }>]>;
@@ -887,10 +863,7 @@ export declare const Event: {
887
863
  readonly id: Schema.brand<Schema.String, "Form.ID"> & {
888
864
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
889
865
  };
890
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
891
- create: () => string & import("effect/Brand").Brand<"SessionID">;
892
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
893
- };
866
+ readonly sessionID: Schema.String;
894
867
  readonly answer: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean, Schema.$Array<Schema.String>]>>;
895
868
  }>;
896
869
  }> & {
@@ -898,10 +871,7 @@ export declare const Event: {
898
871
  readonly id: Schema.brand<Schema.String, "Form.ID"> & {
899
872
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
900
873
  };
901
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
902
- create: () => string & import("effect/Brand").Brand<"SessionID">;
903
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
904
- };
874
+ readonly sessionID: Schema.String;
905
875
  readonly answer: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean, Schema.$Array<Schema.String>]>>;
906
876
  }>;
907
877
  durable?: {
@@ -948,20 +918,14 @@ export declare const Event: {
948
918
  readonly id: Schema.brand<Schema.String, "Form.ID"> & {
949
919
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
950
920
  };
951
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
952
- create: () => string & import("effect/Brand").Brand<"SessionID">;
953
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
954
- };
921
+ readonly sessionID: Schema.String;
955
922
  }>;
956
923
  }> & {
957
924
  data: Schema.Struct<{
958
925
  readonly id: Schema.brand<Schema.String, "Form.ID"> & {
959
926
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
960
927
  };
961
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
962
- create: () => string & import("effect/Brand").Brand<"SessionID">;
963
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
964
- };
928
+ readonly sessionID: Schema.String;
965
929
  }>;
966
930
  durable?: {
967
931
  readonly version: number;
@@ -1117,10 +1081,7 @@ export declare const Event: {
1117
1081
  readonly id: Schema.brand<Schema.String, "Form.ID"> & {
1118
1082
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
1119
1083
  };
1120
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1121
- create: () => string & import("effect/Brand").Brand<"SessionID">;
1122
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1123
- };
1084
+ readonly sessionID: Schema.String;
1124
1085
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1125
1086
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1126
1087
  }>, Schema.Struct<{
@@ -1129,10 +1090,7 @@ export declare const Event: {
1129
1090
  readonly id: Schema.brand<Schema.String, "Form.ID"> & {
1130
1091
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
1131
1092
  };
1132
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1133
- create: () => string & import("effect/Brand").Brand<"SessionID">;
1134
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1135
- };
1093
+ readonly sessionID: Schema.String;
1136
1094
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1137
1095
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1138
1096
  }>]>;
@@ -1252,10 +1210,7 @@ export declare const Event: {
1252
1210
  readonly id: Schema.brand<Schema.String, "Form.ID"> & {
1253
1211
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
1254
1212
  };
1255
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1256
- create: () => string & import("effect/Brand").Brand<"SessionID">;
1257
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1258
- };
1213
+ readonly sessionID: Schema.String;
1259
1214
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1260
1215
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1261
1216
  }>, Schema.Struct<{
@@ -1264,10 +1219,7 @@ export declare const Event: {
1264
1219
  readonly id: Schema.brand<Schema.String, "Form.ID"> & {
1265
1220
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
1266
1221
  };
1267
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1268
- create: () => string & import("effect/Brand").Brand<"SessionID">;
1269
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1270
- };
1222
+ readonly sessionID: Schema.String;
1271
1223
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1272
1224
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1273
1225
  }>]>;
@@ -1315,10 +1267,7 @@ export declare const Event: {
1315
1267
  readonly id: Schema.brand<Schema.String, "Form.ID"> & {
1316
1268
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
1317
1269
  };
1318
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1319
- create: () => string & import("effect/Brand").Brand<"SessionID">;
1320
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1321
- };
1270
+ readonly sessionID: Schema.String;
1322
1271
  readonly answer: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean, Schema.$Array<Schema.String>]>>;
1323
1272
  }>;
1324
1273
  }> & {
@@ -1326,10 +1275,7 @@ export declare const Event: {
1326
1275
  readonly id: Schema.brand<Schema.String, "Form.ID"> & {
1327
1276
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
1328
1277
  };
1329
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1330
- create: () => string & import("effect/Brand").Brand<"SessionID">;
1331
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1332
- };
1278
+ readonly sessionID: Schema.String;
1333
1279
  readonly answer: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean, Schema.$Array<Schema.String>]>>;
1334
1280
  }>;
1335
1281
  durable?: {
@@ -1375,20 +1321,14 @@ export declare const Event: {
1375
1321
  readonly id: Schema.brand<Schema.String, "Form.ID"> & {
1376
1322
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
1377
1323
  };
1378
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1379
- create: () => string & import("effect/Brand").Brand<"SessionID">;
1380
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1381
- };
1324
+ readonly sessionID: Schema.String;
1382
1325
  }>;
1383
1326
  }> & {
1384
1327
  data: Schema.Struct<{
1385
1328
  readonly id: Schema.brand<Schema.String, "Form.ID"> & {
1386
1329
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
1387
1330
  };
1388
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1389
- create: () => string & import("effect/Brand").Brand<"SessionID">;
1390
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1391
- };
1331
+ readonly sessionID: Schema.String;
1392
1332
  }>;
1393
1333
  durable?: {
1394
1334
  readonly version: number;
package/dist/form.js CHANGED
@@ -3,7 +3,6 @@ import { Schema } from "effect";
3
3
  import { define, inventory } from "./event.js";
4
4
  import { ascending } from "./identifier.js";
5
5
  import { NonNegativeInt, optional, statics } from "./schema.js";
6
- import { SessionID } from "./session-id.js";
7
6
  const IDSchema = Schema.String.check(Schema.isStartsWith("frm_")).pipe(Schema.brand("Form.ID"));
8
7
  export const ID = IDSchema.pipe(statics((schema) => ({ create: (id) => schema.make(id ?? "frm_" + ascending()) })));
9
8
  export const Metadata = Schema.Record(Schema.String, Schema.Unknown).annotate({ identifier: "Form.Metadata" });
@@ -67,7 +66,11 @@ export const MultiselectField = Schema.Struct({
67
66
  export const Field = Schema.Union([StringField, NumberField, IntegerField, BooleanField, MultiselectField]).pipe(Schema.toTaggedUnion("type"));
68
67
  const InfoBase = {
69
68
  id: ID,
70
- sessionID: SessionID,
69
+ // This should be typed as SessionID. It is a plain string only because MCP elicitation
70
+ // temporarily needs the `"global"` sentinel owner, which is not a real session. Once
71
+ // elicitations can be attributed to real sessions, revert this to SessionID. Do not rely
72
+ // on non-session owners anywhere else.
73
+ sessionID: Schema.String,
71
74
  title: Schema.String.pipe(optional),
72
75
  metadata: Metadata.pipe(optional),
73
76
  };
@@ -97,6 +100,6 @@ export const Reply = Schema.Struct({
97
100
  answer: Answer,
98
101
  }).annotate({ identifier: "Form.Reply" });
99
102
  const Created = define({ type: "form.created", schema: { form: Info } });
100
- const Replied = define({ type: "form.replied", schema: { id: ID, sessionID: SessionID, answer: Answer } });
101
- const Cancelled = define({ type: "form.cancelled", schema: { id: ID, sessionID: SessionID } });
103
+ const Replied = define({ type: "form.replied", schema: { id: ID, sessionID: Schema.String, answer: Answer } });
104
+ const Cancelled = define({ type: "form.cancelled", schema: { id: ID, sessionID: Schema.String } });
102
105
  export const Event = { Created, Replied, Cancelled, Definitions: inventory(Created, Replied, Cancelled) };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/schema",
4
- "version": "0.0.0-next-14761",
4
+ "version": "0.0.0-next-14769",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {