@opencode-ai/schema 0.0.0-next-14686 → 0.0.0-next-14693

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/agent.d.ts CHANGED
@@ -42,6 +42,7 @@ export declare const Info: Schema.Struct<{
42
42
  readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
43
43
  }>>, never, never>;
44
44
  readonly request: Schema.Struct<{
45
+ readonly settings: Schema.withConstructorDefault<Schema.$Record<Schema.String, Schema.Unknown>>;
45
46
  readonly headers: Schema.$Record<Schema.String, Schema.String>;
46
47
  readonly body: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
47
48
  }>;
@@ -60,6 +61,9 @@ export declare const Info: Schema.Struct<{
60
61
  empty: (id: ID) => {
61
62
  readonly id: string & import("effect/Brand").Brand<"AgentV2.ID">;
62
63
  readonly request: {
64
+ readonly settings: {
65
+ readonly [x: string]: unknown;
66
+ };
63
67
  readonly headers: {
64
68
  readonly [x: string]: string;
65
69
  };
package/dist/agent.js CHANGED
@@ -28,7 +28,7 @@ export const Info = Schema.Struct({
28
28
  .pipe(statics((schema) => ({
29
29
  empty: (id) => schema.make({
30
30
  id,
31
- request: { headers: {}, body: {} },
31
+ request: { settings: {}, headers: {}, body: {} },
32
32
  mode: "all",
33
33
  hidden: false,
34
34
  permissions: [
package/dist/model.d.ts CHANGED
@@ -101,10 +101,12 @@ export declare const Info: Schema.Struct<{
101
101
  }>;
102
102
  readonly request: Schema.Struct<{
103
103
  readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
104
+ readonly settings: Schema.withConstructorDefault<Schema.$Record<Schema.String, Schema.Unknown>>;
104
105
  readonly headers: Schema.$Record<Schema.String, Schema.String>;
105
106
  readonly body: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
106
107
  }>;
107
108
  readonly variants: Schema.$Array<Schema.Struct<{
109
+ readonly settings: Schema.withConstructorDefault<Schema.$Record<Schema.String, Schema.Unknown>>;
108
110
  readonly headers: Schema.$Record<Schema.String, Schema.String>;
109
111
  readonly body: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
110
112
  readonly id: Schema.brand<Schema.String, "VariantID">;
@@ -161,6 +163,9 @@ export declare const Info: Schema.Struct<{
161
163
  readonly output: readonly string[];
162
164
  };
163
165
  readonly request: {
166
+ readonly settings: {
167
+ readonly [x: string]: unknown;
168
+ };
164
169
  readonly headers: {
165
170
  readonly [x: string]: string;
166
171
  };
@@ -170,6 +175,9 @@ export declare const Info: Schema.Struct<{
170
175
  readonly variant?: string | undefined;
171
176
  };
172
177
  readonly variants: readonly {
178
+ readonly settings: {
179
+ readonly [x: string]: unknown;
180
+ };
173
181
  readonly headers: {
174
182
  readonly [x: string]: string;
175
183
  };
package/dist/model.js CHANGED
@@ -75,7 +75,7 @@ export const Info = Schema.Struct({
75
75
  name: modelID,
76
76
  api: { id: modelID, type: "native", settings: {} },
77
77
  capabilities: { tools: false, input: [], output: [] },
78
- request: { headers: {}, body: {} },
78
+ request: { settings: {}, headers: {}, body: {} },
79
79
  variants: [],
80
80
  time: { released: 0 },
81
81
  cost: [],
@@ -40,9 +40,12 @@ export declare const Api: Schema.Union<readonly [Schema.Struct<{
40
40
  readonly settings: Schema.$Record<Schema.String, Schema.Unknown>;
41
41
  }>]>;
42
42
  export type Api = typeof Api.Type;
43
+ export declare const Settings: Schema.$Record<Schema.String, Schema.Unknown>;
44
+ export type Settings = typeof Settings.Type;
43
45
  export interface Request extends Schema.Schema.Type<typeof Request> {
44
46
  }
45
47
  export declare const Request: Schema.Struct<{
48
+ readonly settings: Schema.withConstructorDefault<Schema.$Record<Schema.String, Schema.Unknown>>;
46
49
  readonly headers: Schema.$Record<Schema.String, Schema.String>;
47
50
  readonly body: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
48
51
  }>;
@@ -76,6 +79,7 @@ export declare const Info: Schema.Struct<{
76
79
  readonly settings: Schema.$Record<Schema.String, Schema.Unknown>;
77
80
  }>]>;
78
81
  readonly request: Schema.Struct<{
82
+ readonly settings: Schema.withConstructorDefault<Schema.$Record<Schema.String, Schema.Unknown>>;
79
83
  readonly headers: Schema.$Record<Schema.String, Schema.String>;
80
84
  readonly body: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
81
85
  }>;
@@ -98,6 +102,9 @@ export declare const Info: Schema.Struct<{
98
102
  readonly url?: string | undefined;
99
103
  };
100
104
  readonly request: {
105
+ readonly settings: {
106
+ readonly [x: string]: unknown;
107
+ };
101
108
  readonly headers: {
102
109
  readonly [x: string]: string;
103
110
  };
package/dist/provider.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export * as Provider from "./provider.js";
2
- import { Schema } from "effect";
2
+ import { Effect, Schema } from "effect";
3
3
  import { optional } from "./schema.js";
4
4
  import { Integration } from "./integration.js";
5
5
  import { statics } from "./schema.js";
@@ -30,7 +30,9 @@ export const Native = Schema.Struct({
30
30
  export const Api = Schema.Union([AISDK, Native])
31
31
  .pipe(Schema.toTaggedUnion("type"))
32
32
  .annotate({ identifier: "Provider.Api" });
33
+ export const Settings = Schema.Record(Schema.String, Schema.Unknown).annotate({ identifier: "Provider.Settings" });
33
34
  export const Request = Schema.Struct({
35
+ settings: Settings.pipe(Schema.withConstructorDefault(Effect.succeed({}))),
34
36
  headers: Schema.Record(Schema.String, Schema.String),
35
37
  body: Schema.Record(Schema.String, Schema.Json),
36
38
  }).annotate({ identifier: "Provider.Request" });
@@ -48,6 +50,6 @@ export const Info = Schema.Struct({
48
50
  id,
49
51
  name: id,
50
52
  api: { type: "native", settings: {} },
51
- request: { headers: {}, body: {} },
53
+ request: { settings: {}, headers: {}, body: {} },
52
54
  }),
53
55
  })));
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-14686",
4
+ "version": "0.0.0-next-14693",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {