@opencode/schema 2.0.19 → 2.0.21

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.
@@ -427,6 +427,11 @@ export declare const ToolStateError: Schema.Struct<{
427
427
  readonly type: Schema.String;
428
428
  readonly message: Schema.String;
429
429
  readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
430
+ readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
431
+ readonly body: Schema.String;
432
+ }>>>, Schema.optionalKey<Schema.Struct<{
433
+ readonly body: Schema.String;
434
+ }>>, never, never>;
430
435
  }>;
431
436
  readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
432
437
  readonly type: Schema.Literal<"text">;
@@ -474,6 +479,11 @@ export declare const ToolState: Schema.toTaggedUnion<"status", readonly [Schema.
474
479
  readonly type: Schema.String;
475
480
  readonly message: Schema.String;
476
481
  readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
482
+ readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
483
+ readonly body: Schema.String;
484
+ }>>>, Schema.optionalKey<Schema.Struct<{
485
+ readonly body: Schema.String;
486
+ }>>, never, never>;
477
487
  }>;
478
488
  readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
479
489
  readonly type: Schema.Literal<"text">;
@@ -531,6 +541,11 @@ export declare const AssistantTool: Schema.Struct<{
531
541
  readonly type: Schema.String;
532
542
  readonly message: Schema.String;
533
543
  readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
544
+ readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
545
+ readonly body: Schema.String;
546
+ }>>>, Schema.optionalKey<Schema.Struct<{
547
+ readonly body: Schema.String;
548
+ }>>, never, never>;
534
549
  }>;
535
550
  readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
536
551
  readonly type: Schema.Literal<"text">;
@@ -627,6 +642,11 @@ export declare const AssistantContent: Schema.toTaggedUnion<"type", readonly [Sc
627
642
  readonly type: Schema.String;
628
643
  readonly message: Schema.String;
629
644
  readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
645
+ readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
646
+ readonly body: Schema.String;
647
+ }>>>, Schema.optionalKey<Schema.Struct<{
648
+ readonly body: Schema.String;
649
+ }>>, never, never>;
630
650
  }>;
631
651
  readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
632
652
  readonly type: Schema.Literal<"text">;
@@ -703,6 +723,11 @@ export declare const AssistantContentEncoded: Schema.toEncoded<Schema.toTaggedUn
703
723
  readonly type: Schema.String;
704
724
  readonly message: Schema.String;
705
725
  readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
726
+ readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
727
+ readonly body: Schema.String;
728
+ }>>>, Schema.optionalKey<Schema.Struct<{
729
+ readonly body: Schema.String;
730
+ }>>, never, never>;
706
731
  }>;
707
732
  readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
708
733
  readonly type: Schema.Literal<"text">;
@@ -739,6 +764,11 @@ export declare const AssistantRetry: Schema.Struct<{
739
764
  readonly type: Schema.String;
740
765
  readonly message: Schema.String;
741
766
  readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
767
+ readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
768
+ readonly body: Schema.String;
769
+ }>>>, Schema.optionalKey<Schema.Struct<{
770
+ readonly body: Schema.String;
771
+ }>>, never, never>;
742
772
  }>;
743
773
  }>;
744
774
  export interface Assistant extends Schema.Schema.Type<typeof Assistant> {
@@ -818,6 +848,11 @@ export declare const Assistant: Schema.Struct<{
818
848
  readonly type: Schema.String;
819
849
  readonly message: Schema.String;
820
850
  readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
851
+ readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
852
+ readonly body: Schema.String;
853
+ }>>>, Schema.optionalKey<Schema.Struct<{
854
+ readonly body: Schema.String;
855
+ }>>, never, never>;
821
856
  }>;
822
857
  readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
823
858
  readonly type: Schema.Literal<"text">;
@@ -882,10 +917,20 @@ export declare const Assistant: Schema.Struct<{
882
917
  readonly type: Schema.String;
883
918
  readonly message: Schema.String;
884
919
  readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
920
+ readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
921
+ readonly body: Schema.String;
922
+ }>>>, Schema.optionalKey<Schema.Struct<{
923
+ readonly body: Schema.String;
924
+ }>>, never, never>;
885
925
  }>>>, Schema.optionalKey<Schema.Struct<{
886
926
  readonly type: Schema.String;
887
927
  readonly message: Schema.String;
888
928
  readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
929
+ readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
930
+ readonly body: Schema.String;
931
+ }>>>, Schema.optionalKey<Schema.Struct<{
932
+ readonly body: Schema.String;
933
+ }>>, never, never>;
889
934
  }>>, never, never>;
890
935
  readonly retry: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
891
936
  readonly attempt: Schema.Int;
@@ -894,6 +939,11 @@ export declare const Assistant: Schema.Struct<{
894
939
  readonly type: Schema.String;
895
940
  readonly message: Schema.String;
896
941
  readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
942
+ readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
943
+ readonly body: Schema.String;
944
+ }>>>, Schema.optionalKey<Schema.Struct<{
945
+ readonly body: Schema.String;
946
+ }>>, never, never>;
897
947
  }>;
898
948
  }>>>, Schema.optionalKey<Schema.Struct<{
899
949
  readonly attempt: Schema.Int;
@@ -902,6 +952,11 @@ export declare const Assistant: Schema.Struct<{
902
952
  readonly type: Schema.String;
903
953
  readonly message: Schema.String;
904
954
  readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
955
+ readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
956
+ readonly body: Schema.String;
957
+ }>>>, Schema.optionalKey<Schema.Struct<{
958
+ readonly body: Schema.String;
959
+ }>>, never, never>;
905
960
  }>;
906
961
  }>>, never, never>;
907
962
  readonly time: Schema.Struct<{
@@ -1096,6 +1151,11 @@ export declare const CompactionFailed: Schema.Struct<{
1096
1151
  readonly type: Schema.String;
1097
1152
  readonly message: Schema.String;
1098
1153
  readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
1154
+ readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1155
+ readonly body: Schema.String;
1156
+ }>>>, Schema.optionalKey<Schema.Struct<{
1157
+ readonly body: Schema.String;
1158
+ }>>, never, never>;
1099
1159
  }>;
1100
1160
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1101
1161
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -1279,6 +1339,11 @@ export declare const Compaction: Schema.Union<readonly [Schema.Struct<{
1279
1339
  readonly type: Schema.String;
1280
1340
  readonly message: Schema.String;
1281
1341
  readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
1342
+ readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1343
+ readonly body: Schema.String;
1344
+ }>>>, Schema.optionalKey<Schema.Struct<{
1345
+ readonly body: Schema.String;
1346
+ }>>, never, never>;
1282
1347
  }>;
1283
1348
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1284
1349
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -1742,6 +1807,11 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
1742
1807
  readonly type: Schema.String;
1743
1808
  readonly message: Schema.String;
1744
1809
  readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
1810
+ readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1811
+ readonly body: Schema.String;
1812
+ }>>>, Schema.optionalKey<Schema.Struct<{
1813
+ readonly body: Schema.String;
1814
+ }>>, never, never>;
1745
1815
  }>;
1746
1816
  readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
1747
1817
  readonly type: Schema.Literal<"text">;
@@ -1806,10 +1876,20 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
1806
1876
  readonly type: Schema.String;
1807
1877
  readonly message: Schema.String;
1808
1878
  readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
1879
+ readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1880
+ readonly body: Schema.String;
1881
+ }>>>, Schema.optionalKey<Schema.Struct<{
1882
+ readonly body: Schema.String;
1883
+ }>>, never, never>;
1809
1884
  }>>>, Schema.optionalKey<Schema.Struct<{
1810
1885
  readonly type: Schema.String;
1811
1886
  readonly message: Schema.String;
1812
1887
  readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
1888
+ readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1889
+ readonly body: Schema.String;
1890
+ }>>>, Schema.optionalKey<Schema.Struct<{
1891
+ readonly body: Schema.String;
1892
+ }>>, never, never>;
1813
1893
  }>>, never, never>;
1814
1894
  readonly retry: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1815
1895
  readonly attempt: Schema.Int;
@@ -1818,6 +1898,11 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
1818
1898
  readonly type: Schema.String;
1819
1899
  readonly message: Schema.String;
1820
1900
  readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
1901
+ readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1902
+ readonly body: Schema.String;
1903
+ }>>>, Schema.optionalKey<Schema.Struct<{
1904
+ readonly body: Schema.String;
1905
+ }>>, never, never>;
1821
1906
  }>;
1822
1907
  }>>>, Schema.optionalKey<Schema.Struct<{
1823
1908
  readonly attempt: Schema.Int;
@@ -1826,6 +1911,11 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
1826
1911
  readonly type: Schema.String;
1827
1912
  readonly message: Schema.String;
1828
1913
  readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
1914
+ readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1915
+ readonly body: Schema.String;
1916
+ }>>>, Schema.optionalKey<Schema.Struct<{
1917
+ readonly body: Schema.String;
1918
+ }>>, never, never>;
1829
1919
  }>;
1830
1920
  }>>, never, never>;
1831
1921
  readonly time: Schema.Struct<{
@@ -2011,6 +2101,11 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
2011
2101
  readonly type: Schema.String;
2012
2102
  readonly message: Schema.String;
2013
2103
  readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
2104
+ readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2105
+ readonly body: Schema.String;
2106
+ }>>>, Schema.optionalKey<Schema.Struct<{
2107
+ readonly body: Schema.String;
2108
+ }>>, never, never>;
2014
2109
  }>;
2015
2110
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
2016
2111
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -615,6 +615,11 @@ export declare const Data: Schema.Struct<{
615
615
  readonly type: Schema.String;
616
616
  readonly message: Schema.String;
617
617
  readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
618
+ readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
619
+ readonly body: Schema.String;
620
+ }>>>, Schema.optionalKey<Schema.Struct<{
621
+ readonly body: Schema.String;
622
+ }>>, never, never>;
618
623
  }>;
619
624
  readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
620
625
  readonly type: Schema.Literal<"text">;
@@ -679,10 +684,20 @@ export declare const Data: Schema.Struct<{
679
684
  readonly type: Schema.String;
680
685
  readonly message: Schema.String;
681
686
  readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
687
+ readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
688
+ readonly body: Schema.String;
689
+ }>>>, Schema.optionalKey<Schema.Struct<{
690
+ readonly body: Schema.String;
691
+ }>>, never, never>;
682
692
  }>>>, Schema.optionalKey<Schema.Struct<{
683
693
  readonly type: Schema.String;
684
694
  readonly message: Schema.String;
685
695
  readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
696
+ readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
697
+ readonly body: Schema.String;
698
+ }>>>, Schema.optionalKey<Schema.Struct<{
699
+ readonly body: Schema.String;
700
+ }>>, never, never>;
686
701
  }>>, never, never>;
687
702
  readonly retry: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
688
703
  readonly attempt: Schema.Int;
@@ -691,6 +706,11 @@ export declare const Data: Schema.Struct<{
691
706
  readonly type: Schema.String;
692
707
  readonly message: Schema.String;
693
708
  readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
709
+ readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
710
+ readonly body: Schema.String;
711
+ }>>>, Schema.optionalKey<Schema.Struct<{
712
+ readonly body: Schema.String;
713
+ }>>, never, never>;
694
714
  }>;
695
715
  }>>>, Schema.optionalKey<Schema.Struct<{
696
716
  readonly attempt: Schema.Int;
@@ -699,6 +719,11 @@ export declare const Data: Schema.Struct<{
699
719
  readonly type: Schema.String;
700
720
  readonly message: Schema.String;
701
721
  readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
722
+ readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
723
+ readonly body: Schema.String;
724
+ }>>>, Schema.optionalKey<Schema.Struct<{
725
+ readonly body: Schema.String;
726
+ }>>, never, never>;
702
727
  }>;
703
728
  }>>, never, never>;
704
729
  readonly time: Schema.Struct<{
@@ -883,6 +908,11 @@ export declare const Data: Schema.Struct<{
883
908
  readonly type: Schema.String;
884
909
  readonly message: Schema.String;
885
910
  readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
911
+ readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
912
+ readonly body: Schema.String;
913
+ }>>>, Schema.optionalKey<Schema.Struct<{
914
+ readonly body: Schema.String;
915
+ }>>, never, never>;
886
916
  }>;
887
917
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
888
918
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/schema",
4
- "version": "2.0.19",
4
+ "version": "2.0.21",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {