@opencode-ai/protocol 0.0.0-next-14998 → 0.0.0-next-15005

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.
@@ -45,7 +45,7 @@ export declare const AgentGroup: HttpApiGroup.HttpApiGroup<"server.agent", HttpA
45
45
  readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
46
46
  }>>, never, never>;
47
47
  readonly request: Schema.Struct<{
48
- readonly settings: Schema.withConstructorDefault<Schema.$Record<Schema.String, Schema.Unknown>>;
48
+ readonly settings: Schema.withConstructorDefault<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
49
49
  readonly headers: Schema.$Record<Schema.String, Schema.String>;
50
50
  readonly body: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
51
51
  }>;
@@ -65,7 +65,7 @@ export declare const AgentGroup: HttpApiGroup.HttpApiGroup<"server.agent", HttpA
65
65
  readonly id: string & import("effect/Brand").Brand<"AgentV2.ID">;
66
66
  readonly request: {
67
67
  readonly settings: {
68
- readonly [x: string]: unknown;
68
+ readonly [x: string]: Schema.Json;
69
69
  };
70
70
  readonly headers: {
71
71
  readonly [x: string]: string;
@@ -11,49 +11,15 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
11
11
  }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
12
12
  readonly location: typeof Location.Info;
13
13
  readonly data: Schema.$Array<Schema.Struct<{
14
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
15
- readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
16
- opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
17
- anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
18
- openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
19
- google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
20
- googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
21
- githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
22
- amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
23
- azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
24
- openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
25
- mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
26
- gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
27
- };
28
- readonly family: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Family">>>, Schema.optionalKey<Schema.brand<Schema.String, "Family">>, never, never>;
29
- readonly name: Schema.String;
30
- readonly api: Schema.Union<readonly [Schema.Struct<{
31
- readonly type: Schema.Literal<"aisdk">;
32
- readonly package: Schema.String;
33
- readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
34
- readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
35
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
36
- }>, Schema.Struct<{
37
- readonly type: Schema.Literal<"native">;
38
- readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
39
- readonly settings: Schema.$Record<Schema.String, Schema.Unknown>;
40
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
41
- }>]>;
42
14
  readonly capabilities: Schema.Struct<{
43
15
  readonly tools: Schema.Boolean;
44
16
  readonly input: Schema.$Array<Schema.String>;
45
17
  readonly output: Schema.$Array<Schema.String>;
46
18
  }>;
47
- readonly request: Schema.Struct<{
48
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
49
- readonly settings: Schema.withConstructorDefault<Schema.$Record<Schema.String, Schema.Unknown>>;
50
- readonly headers: Schema.$Record<Schema.String, Schema.String>;
51
- readonly body: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
52
- }>;
53
19
  readonly variants: Schema.$Array<Schema.Struct<{
54
- readonly settings: Schema.withConstructorDefault<Schema.$Record<Schema.String, Schema.Unknown>>;
55
- readonly headers: Schema.$Record<Schema.String, Schema.String>;
56
- readonly body: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
20
+ readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
21
+ readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
22
+ readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
57
23
  readonly id: Schema.brand<Schema.String, "VariantID">;
58
24
  }>>;
59
25
  readonly time: Schema.Struct<{
@@ -81,55 +47,45 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
81
47
  readonly input: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
82
48
  readonly output: Schema.Int;
83
49
  }>;
50
+ readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
51
+ readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
52
+ readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
53
+ readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
54
+ readonly modelID: Schema.brand<Schema.String, "ModelV2.ID">;
55
+ readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
56
+ opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
57
+ anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
58
+ openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
59
+ google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
60
+ googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
61
+ githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
62
+ amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
63
+ azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
64
+ openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
65
+ mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
66
+ gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
67
+ };
68
+ readonly family: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Family">>>, Schema.optionalKey<Schema.brand<Schema.String, "Family">>, never, never>;
69
+ readonly name: Schema.String;
70
+ readonly package: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
84
71
  }> & {
85
- empty: (providerID: import("@opencode-ai/schema/provider").ID, modelID: Model.ID) => {
86
- readonly id: string & import("effect/Brand").Brand<"ModelV2.ID">;
87
- readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
88
- readonly name: string;
89
- readonly api: {
90
- readonly type: "aisdk";
91
- readonly package: string;
92
- readonly id: string & import("effect/Brand").Brand<"ModelV2.ID">;
93
- readonly url?: string | undefined;
94
- readonly settings?: {
95
- readonly [x: string]: unknown;
96
- } | undefined;
97
- } | {
98
- readonly type: "native";
99
- readonly settings: {
100
- readonly [x: string]: unknown;
101
- };
102
- readonly id: string & import("effect/Brand").Brand<"ModelV2.ID">;
103
- readonly url?: string | undefined;
104
- };
72
+ empty: (providerID: import("@opencode-ai/schema/provider").ID, id: Model.ID) => {
105
73
  readonly capabilities: {
106
74
  readonly tools: boolean;
107
75
  readonly input: readonly string[];
108
76
  readonly output: readonly string[];
109
77
  };
110
- readonly request: {
111
- readonly settings: {
112
- readonly [x: string]: unknown;
113
- };
114
- readonly headers: {
115
- readonly [x: string]: string;
116
- };
117
- readonly body: {
118
- readonly [x: string]: Schema.Json;
119
- };
120
- readonly variant?: string | undefined;
121
- };
122
78
  readonly variants: readonly {
123
- readonly settings: {
124
- readonly [x: string]: unknown;
125
- };
126
- readonly headers: {
79
+ readonly id: string & import("effect/Brand").Brand<"VariantID">;
80
+ readonly settings?: {
81
+ readonly [x: string]: Schema.Json;
82
+ } | undefined;
83
+ readonly headers?: {
127
84
  readonly [x: string]: string;
128
- };
129
- readonly body: {
85
+ } | undefined;
86
+ readonly body?: {
130
87
  readonly [x: string]: Schema.Json;
131
- };
132
- readonly id: string & import("effect/Brand").Brand<"VariantID">;
88
+ } | undefined;
133
89
  }[];
134
90
  readonly time: {
135
91
  readonly released: number;
@@ -153,7 +109,21 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
153
109
  readonly output: number;
154
110
  readonly input?: number | undefined;
155
111
  };
112
+ readonly id: string & import("effect/Brand").Brand<"ModelV2.ID">;
113
+ readonly modelID: string & import("effect/Brand").Brand<"ModelV2.ID">;
114
+ readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
115
+ readonly name: string;
116
+ readonly settings?: {
117
+ readonly [x: string]: Schema.Json;
118
+ } | undefined;
119
+ readonly headers?: {
120
+ readonly [x: string]: string;
121
+ } | undefined;
122
+ readonly body?: {
123
+ readonly [x: string]: Schema.Json;
124
+ } | undefined;
156
125
  readonly family?: (string & import("effect/Brand").Brand<"Family">) | undefined;
126
+ readonly package?: string | undefined;
157
127
  };
158
128
  }>;
159
129
  }>>, HttpApiEndpoint.Json<typeof ServiceUnavailableError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"model.default", "GET", "/api/model/default", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{
@@ -164,49 +134,15 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
164
134
  }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
165
135
  readonly location: typeof Location.Info;
166
136
  readonly data: Schema.UndefinedOr<Schema.Struct<{
167
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
168
- readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
169
- opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
170
- anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
171
- openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
172
- google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
173
- googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
174
- githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
175
- amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
176
- azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
177
- openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
178
- mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
179
- gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
180
- };
181
- readonly family: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Family">>>, Schema.optionalKey<Schema.brand<Schema.String, "Family">>, never, never>;
182
- readonly name: Schema.String;
183
- readonly api: Schema.Union<readonly [Schema.Struct<{
184
- readonly type: Schema.Literal<"aisdk">;
185
- readonly package: Schema.String;
186
- readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
187
- readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
188
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
189
- }>, Schema.Struct<{
190
- readonly type: Schema.Literal<"native">;
191
- readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
192
- readonly settings: Schema.$Record<Schema.String, Schema.Unknown>;
193
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
194
- }>]>;
195
137
  readonly capabilities: Schema.Struct<{
196
138
  readonly tools: Schema.Boolean;
197
139
  readonly input: Schema.$Array<Schema.String>;
198
140
  readonly output: Schema.$Array<Schema.String>;
199
141
  }>;
200
- readonly request: Schema.Struct<{
201
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
202
- readonly settings: Schema.withConstructorDefault<Schema.$Record<Schema.String, Schema.Unknown>>;
203
- readonly headers: Schema.$Record<Schema.String, Schema.String>;
204
- readonly body: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
205
- }>;
206
142
  readonly variants: Schema.$Array<Schema.Struct<{
207
- readonly settings: Schema.withConstructorDefault<Schema.$Record<Schema.String, Schema.Unknown>>;
208
- readonly headers: Schema.$Record<Schema.String, Schema.String>;
209
- readonly body: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
143
+ readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
144
+ readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
145
+ readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
210
146
  readonly id: Schema.brand<Schema.String, "VariantID">;
211
147
  }>>;
212
148
  readonly time: Schema.Struct<{
@@ -234,55 +170,45 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
234
170
  readonly input: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
235
171
  readonly output: Schema.Int;
236
172
  }>;
173
+ readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
174
+ readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
175
+ readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
176
+ readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
177
+ readonly modelID: Schema.brand<Schema.String, "ModelV2.ID">;
178
+ readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
179
+ opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
180
+ anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
181
+ openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
182
+ google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
183
+ googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
184
+ githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
185
+ amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
186
+ azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
187
+ openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
188
+ mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
189
+ gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
190
+ };
191
+ readonly family: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Family">>>, Schema.optionalKey<Schema.brand<Schema.String, "Family">>, never, never>;
192
+ readonly name: Schema.String;
193
+ readonly package: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
237
194
  }> & {
238
- empty: (providerID: import("@opencode-ai/schema/provider").ID, modelID: Model.ID) => {
239
- readonly id: string & import("effect/Brand").Brand<"ModelV2.ID">;
240
- readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
241
- readonly name: string;
242
- readonly api: {
243
- readonly type: "aisdk";
244
- readonly package: string;
245
- readonly id: string & import("effect/Brand").Brand<"ModelV2.ID">;
246
- readonly url?: string | undefined;
247
- readonly settings?: {
248
- readonly [x: string]: unknown;
249
- } | undefined;
250
- } | {
251
- readonly type: "native";
252
- readonly settings: {
253
- readonly [x: string]: unknown;
254
- };
255
- readonly id: string & import("effect/Brand").Brand<"ModelV2.ID">;
256
- readonly url?: string | undefined;
257
- };
195
+ empty: (providerID: import("@opencode-ai/schema/provider").ID, id: Model.ID) => {
258
196
  readonly capabilities: {
259
197
  readonly tools: boolean;
260
198
  readonly input: readonly string[];
261
199
  readonly output: readonly string[];
262
200
  };
263
- readonly request: {
264
- readonly settings: {
265
- readonly [x: string]: unknown;
266
- };
267
- readonly headers: {
268
- readonly [x: string]: string;
269
- };
270
- readonly body: {
271
- readonly [x: string]: Schema.Json;
272
- };
273
- readonly variant?: string | undefined;
274
- };
275
201
  readonly variants: readonly {
276
- readonly settings: {
277
- readonly [x: string]: unknown;
278
- };
279
- readonly headers: {
202
+ readonly id: string & import("effect/Brand").Brand<"VariantID">;
203
+ readonly settings?: {
204
+ readonly [x: string]: Schema.Json;
205
+ } | undefined;
206
+ readonly headers?: {
280
207
  readonly [x: string]: string;
281
- };
282
- readonly body: {
208
+ } | undefined;
209
+ readonly body?: {
283
210
  readonly [x: string]: Schema.Json;
284
- };
285
- readonly id: string & import("effect/Brand").Brand<"VariantID">;
211
+ } | undefined;
286
212
  }[];
287
213
  readonly time: {
288
214
  readonly released: number;
@@ -306,7 +232,21 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
306
232
  readonly output: number;
307
233
  readonly input?: number | undefined;
308
234
  };
235
+ readonly id: string & import("effect/Brand").Brand<"ModelV2.ID">;
236
+ readonly modelID: string & import("effect/Brand").Brand<"ModelV2.ID">;
237
+ readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
238
+ readonly name: string;
239
+ readonly settings?: {
240
+ readonly [x: string]: Schema.Json;
241
+ } | undefined;
242
+ readonly headers?: {
243
+ readonly [x: string]: string;
244
+ } | undefined;
245
+ readonly body?: {
246
+ readonly [x: string]: Schema.Json;
247
+ } | undefined;
309
248
  readonly family?: (string & import("effect/Brand").Brand<"Family">) | undefined;
249
+ readonly package?: string | undefined;
310
250
  };
311
251
  }>;
312
252
  }>>, HttpApiEndpoint.Json<typeof ServiceUnavailableError>, never, never>, false>;
@@ -11,6 +11,9 @@ export declare const ProviderGroup: HttpApiGroup.HttpApiGroup<"server.provider",
11
11
  }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
12
12
  readonly location: typeof Location.Info;
13
13
  readonly data: Schema.$Array<Schema.Struct<{
14
+ readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
15
+ readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
16
+ readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
14
17
  readonly id: Schema.brand<Schema.String, "ProviderV2.ID"> & {
15
18
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
16
19
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -27,50 +30,21 @@ export declare const ProviderGroup: HttpApiGroup.HttpApiGroup<"server.provider",
27
30
  readonly integrationID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Integration.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Integration.ID">>, never, never>;
28
31
  readonly name: Schema.String;
29
32
  readonly disabled: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
30
- readonly api: Schema.Union<readonly [Schema.Struct<{
31
- readonly type: Schema.Literal<"aisdk">;
32
- readonly package: Schema.String;
33
- readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
34
- readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
35
- }>, Schema.Struct<{
36
- readonly type: Schema.Literal<"native">;
37
- readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
38
- readonly settings: Schema.$Record<Schema.String, Schema.Unknown>;
39
- }>]>;
40
- readonly request: Schema.Struct<{
41
- readonly settings: Schema.withConstructorDefault<Schema.$Record<Schema.String, Schema.Unknown>>;
42
- readonly headers: Schema.$Record<Schema.String, Schema.String>;
43
- readonly body: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
44
- }>;
33
+ readonly package: Schema.String;
45
34
  }> & {
46
35
  empty: (id: Provider.ID) => {
47
36
  readonly id: string & import("effect/Brand").Brand<"ProviderV2.ID">;
48
37
  readonly name: string;
49
- readonly api: {
50
- readonly type: "aisdk";
51
- readonly package: string;
52
- readonly url?: string | undefined;
53
- readonly settings?: {
54
- readonly [x: string]: unknown;
55
- } | undefined;
56
- } | {
57
- readonly type: "native";
58
- readonly settings: {
59
- readonly [x: string]: unknown;
60
- };
61
- readonly url?: string | undefined;
62
- };
63
- readonly request: {
64
- readonly settings: {
65
- readonly [x: string]: unknown;
66
- };
67
- readonly headers: {
68
- readonly [x: string]: string;
69
- };
70
- readonly body: {
71
- readonly [x: string]: Schema.Json;
72
- };
73
- };
38
+ readonly package: string;
39
+ readonly settings?: {
40
+ readonly [x: string]: Schema.Json;
41
+ } | undefined;
42
+ readonly headers?: {
43
+ readonly [x: string]: string;
44
+ } | undefined;
45
+ readonly body?: {
46
+ readonly [x: string]: Schema.Json;
47
+ } | undefined;
74
48
  readonly integrationID?: (string & import("effect/Brand").Brand<"Integration.ID">) | undefined;
75
49
  readonly disabled?: boolean | undefined;
76
50
  };
@@ -97,6 +71,9 @@ export declare const ProviderGroup: HttpApiGroup.HttpApiGroup<"server.provider",
97
71
  }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
98
72
  readonly location: typeof Location.Info;
99
73
  readonly data: Schema.Struct<{
74
+ readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
75
+ readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
76
+ readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
100
77
  readonly id: Schema.brand<Schema.String, "ProviderV2.ID"> & {
101
78
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
102
79
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -113,50 +90,21 @@ export declare const ProviderGroup: HttpApiGroup.HttpApiGroup<"server.provider",
113
90
  readonly integrationID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Integration.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Integration.ID">>, never, never>;
114
91
  readonly name: Schema.String;
115
92
  readonly disabled: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
116
- readonly api: Schema.Union<readonly [Schema.Struct<{
117
- readonly type: Schema.Literal<"aisdk">;
118
- readonly package: Schema.String;
119
- readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
120
- readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
121
- }>, Schema.Struct<{
122
- readonly type: Schema.Literal<"native">;
123
- readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
124
- readonly settings: Schema.$Record<Schema.String, Schema.Unknown>;
125
- }>]>;
126
- readonly request: Schema.Struct<{
127
- readonly settings: Schema.withConstructorDefault<Schema.$Record<Schema.String, Schema.Unknown>>;
128
- readonly headers: Schema.$Record<Schema.String, Schema.String>;
129
- readonly body: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
130
- }>;
93
+ readonly package: Schema.String;
131
94
  }> & {
132
95
  empty: (id: Provider.ID) => {
133
96
  readonly id: string & import("effect/Brand").Brand<"ProviderV2.ID">;
134
97
  readonly name: string;
135
- readonly api: {
136
- readonly type: "aisdk";
137
- readonly package: string;
138
- readonly url?: string | undefined;
139
- readonly settings?: {
140
- readonly [x: string]: unknown;
141
- } | undefined;
142
- } | {
143
- readonly type: "native";
144
- readonly settings: {
145
- readonly [x: string]: unknown;
146
- };
147
- readonly url?: string | undefined;
148
- };
149
- readonly request: {
150
- readonly settings: {
151
- readonly [x: string]: unknown;
152
- };
153
- readonly headers: {
154
- readonly [x: string]: string;
155
- };
156
- readonly body: {
157
- readonly [x: string]: Schema.Json;
158
- };
159
- };
98
+ readonly package: string;
99
+ readonly settings?: {
100
+ readonly [x: string]: Schema.Json;
101
+ } | undefined;
102
+ readonly headers?: {
103
+ readonly [x: string]: string;
104
+ } | undefined;
105
+ readonly body?: {
106
+ readonly [x: string]: Schema.Json;
107
+ } | undefined;
160
108
  readonly integrationID?: (string & import("effect/Brand").Brand<"Integration.ID">) | undefined;
161
109
  readonly disabled?: boolean | undefined;
162
110
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/protocol",
4
- "version": "0.0.0-next-14998",
4
+ "version": "0.0.0-next-15005",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -26,7 +26,7 @@
26
26
  "typecheck": "tsgo --noEmit"
27
27
  },
28
28
  "dependencies": {
29
- "@opencode-ai/schema": "0.0.0-next-14998",
29
+ "@opencode-ai/schema": "0.0.0-next-15005",
30
30
  "effect": "4.0.0-beta.83"
31
31
  },
32
32
  "devDependencies": {