@opencode/ai 0.0.0-dev-800 → 0.0.0-dev-823

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.
Files changed (62) hide show
  1. package/dist/protocols/openai-compatible-responses.js +1 -1
  2. package/dist/protocols/openai-responses.js +1 -1
  3. package/dist/providers/alibaba.d.ts +3 -3
  4. package/dist/providers/amazon-bedrock-mantle.d.ts +3 -3
  5. package/dist/providers/amazon-bedrock-mantle.js +1 -1
  6. package/dist/providers/amazon-bedrock.d.ts +6 -7
  7. package/dist/providers/anthropic-compatible.d.ts +5 -6
  8. package/dist/providers/anthropic.d.ts +6 -7
  9. package/dist/providers/azure.d.ts +3 -3
  10. package/dist/providers/azure.js +1 -1
  11. package/dist/providers/baseten.d.ts +3 -3
  12. package/dist/providers/cerebras.d.ts +3 -3
  13. package/dist/providers/cloudflare-ai-gateway.d.ts +12 -13
  14. package/dist/providers/cloudflare-workers-ai.d.ts +3 -3
  15. package/dist/providers/cohere.d.ts +3 -3
  16. package/dist/providers/deepinfra.d.ts +3 -3
  17. package/dist/providers/deepseek.d.ts +3 -3
  18. package/dist/providers/digitalocean.d.ts +3 -3
  19. package/dist/providers/digitalocean.js +1 -1
  20. package/dist/providers/fireworks.d.ts +3 -3
  21. package/dist/providers/google-vertex-chat.d.ts +3 -3
  22. package/dist/providers/google-vertex-interactions.d.ts +3 -3
  23. package/dist/providers/google-vertex-messages.d.ts +3 -3
  24. package/dist/providers/google-vertex-mistral.d.ts +3 -3
  25. package/dist/providers/google-vertex-responses.d.ts +3 -3
  26. package/dist/providers/google-vertex-responses.js +1 -1
  27. package/dist/providers/google-vertex-shared.d.ts +3 -2
  28. package/dist/providers/google-vertex.d.ts +3 -3
  29. package/dist/providers/google.d.ts +13 -14
  30. package/dist/providers/groq.d.ts +3 -3
  31. package/dist/providers/meta.d.ts +3 -3
  32. package/dist/providers/meta.js +2 -2
  33. package/dist/providers/minimax.d.ts +3 -3
  34. package/dist/providers/minimax.js +1 -1
  35. package/dist/providers/mistral.d.ts +8 -9
  36. package/dist/providers/moonshot.d.ts +3 -3
  37. package/dist/providers/openai-compatible-responses.d.ts +5 -6
  38. package/dist/providers/openai-compatible.d.ts +5 -6
  39. package/dist/providers/openai-compatible.js +1 -1
  40. package/dist/providers/openai.d.ts +3 -3
  41. package/dist/providers/openai.js +1 -1
  42. package/dist/providers/openrouter.d.ts +3 -3
  43. package/dist/providers/openrouter.js +2 -2
  44. package/dist/providers/settings.d.ts +1 -1
  45. package/dist/providers/togetherai.d.ts +3 -3
  46. package/dist/providers/venice.d.ts +3 -3
  47. package/dist/providers/venice.js +2 -4
  48. package/dist/providers/vercel-ai-gateway.d.ts +3 -3
  49. package/dist/providers/vercel-ai-gateway.js +3 -3
  50. package/dist/providers/xai.d.ts +3 -3
  51. package/dist/providers/xai.js +1 -1
  52. package/dist/providers/zai-coding-plan.d.ts +3 -3
  53. package/dist/providers/zai-coding-plan.js +1 -3
  54. package/dist/providers/zai.d.ts +3 -3
  55. package/dist/providers/zai.js +1 -3
  56. package/dist/public.d.ts +1 -1
  57. package/dist/route/client.d.ts +8 -9
  58. package/dist/route/client.js +10 -18
  59. package/dist/route/index.d.ts +1 -1
  60. package/dist/schema/options.d.ts +6 -4
  61. package/dist/schema/options.js +14 -4
  62. package/package.json +3 -3
@@ -13,6 +13,6 @@ export const route = Route.make({
13
13
  protocol: OpenResponses.protocol,
14
14
  endpoint: Endpoint.path(OpenResponses.PATH),
15
15
  transport: OpenResponses.httpTransport,
16
- defaults: { providerOptions: { store: false, include: ["reasoning.encrypted_content"] } },
16
+ options: { providerOptions: { store: false, include: ["reasoning.encrypted_content"] } },
17
17
  });
18
18
  export * as OpenAICompatibleResponses from "./openai-compatible-responses.js";
@@ -291,6 +291,6 @@ export const route = Route.make({
291
291
  endpoint,
292
292
  auth,
293
293
  transport,
294
- defaults: { providerOptions: { store: false, include: ["reasoning.encrypted_content"] } },
294
+ options: { providerOptions: { store: false, include: ["reasoning.encrypted_content"] } },
295
295
  });
296
296
  export * as OpenAIResponses from "./openai-responses.js";
@@ -3,8 +3,8 @@ import { AlibabaChat } from "../protocols/alibaba-chat.js";
3
3
  import { AlibabaMessages } from "../protocols/alibaba-messages.js";
4
4
  import { AlibabaResponses } from "../protocols/alibaba-responses.js";
5
5
  import { type AtLeastOne, type ProviderAuthOption } from "../route/auth-options.js";
6
- import { Route, type RouteDefaultsInput } from "../route/client.js";
7
- import { ToolDefinition, type ModelID, type ProviderOptions } from "../schema/index.js";
6
+ import { Route } from "../route/client.js";
7
+ import { ToolDefinition, type ModelID, type ProviderOptions, type RequestOptions } from "../schema/index.js";
8
8
  export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
9
9
  export type Region = "ap-southeast-1" | "cn-beijing" | "cn-hongkong" | "us-east-1" | "eu-central-1" | "ap-northeast-1" | (string & {});
10
10
  export type ChatOptionsInput = AlibabaChat.OptionsInput;
@@ -18,7 +18,7 @@ type Location = AtLeastOne<{
18
18
  }> & {
19
19
  readonly workspaceID?: string;
20
20
  };
21
- export type Config = Location & Omit<RouteDefaultsInput, "providerOptions"> & ProviderAuthOption<"optional"> & {
21
+ export type Config = Location & Omit<RequestOptions, "providerOptions"> & ProviderAuthOption<"optional"> & {
22
22
  readonly providerOptions?: ChatOptionsInput | MessagesOptionsInput | ResponsesOptionsInput;
23
23
  };
24
24
  export type Settings<Options = ChatOptionsInput> = Location & ProviderPackage.Settings & Options & {
@@ -1,13 +1,13 @@
1
- import { Route, type RouteDefaultsInput } from "../route/client.js";
1
+ import { Route } from "../route/client.js";
2
2
  import type { ProviderPackage } from "../provider-package.js";
3
3
  import { AnthropicMessages } from "../protocols/anthropic-messages.js";
4
4
  import { type Credentials } from "../protocols/utils/bedrock-auth.js";
5
- import { type ModelID } from "../schema/index.js";
5
+ import { type ModelID, type RequestOptions } from "../schema/index.js";
6
6
  import { type OpenAIProviderOptionsInput } from "./openai-options.js";
7
7
  export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
8
8
  export type OpenAIOptionsInput = OpenAIProviderOptionsInput;
9
9
  export type MessagesOptionsInput = AnthropicMessages.ProviderOptionsInput;
10
- export type Config = Omit<RouteDefaultsInput, "providerOptions"> & {
10
+ export type Config = Omit<RequestOptions, "providerOptions"> & {
11
11
  /** Bedrock API key. Falls back to `AWS_BEARER_TOKEN_BEDROCK`; bearer auth takes precedence over SigV4. */
12
12
  readonly apiKey?: string;
13
13
  /** `sigv4` ignores `apiKey` fallbacks from the environment; `bearer` requires a token. */
@@ -15,7 +15,7 @@ const responsesRoute = Route.make({
15
15
  protocol: OpenResponses.protocol,
16
16
  endpoint: Endpoint.path(OpenResponses.PATH),
17
17
  transport: OpenResponses.httpTransport,
18
- defaults: { providerOptions: { store: false, include: ["reasoning.encrypted_content"] } },
18
+ options: { providerOptions: { store: false, include: ["reasoning.encrypted_content"] } },
19
19
  });
20
20
  const chatRoute = OpenAIChat.route.with({
21
21
  id: "bedrock-mantle-chat",
@@ -1,10 +1,9 @@
1
- import type { RouteDefaultsInput } from "../route/client.js";
2
1
  import type { ProviderPackage } from "../provider-package.js";
3
- import { type ModelID } from "../schema/index.js";
2
+ import { type ModelID, type RequestOptions } from "../schema/index.js";
4
3
  import * as BedrockConverse from "../protocols/bedrock-converse.js";
5
4
  import type { BedrockCredentials } from "../protocols/bedrock-converse.js";
6
5
  export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
7
- export type Config = RouteDefaultsInput & {
6
+ export type Config = RequestOptions & {
8
7
  /** Bedrock API key. Falls back to `AWS_BEARER_TOKEN_BEDROCK`; bearer auth takes precedence over SigV4. */
9
8
  readonly apiKey?: string;
10
9
  /** `sigv4` ignores `apiKey` fallbacks from the environment; `bearer` requires a token. */
@@ -29,7 +28,7 @@ export type Settings = ProviderPackage.Settings & BedrockConverse.OptionsInput &
29
28
  readonly region?: string;
30
29
  readonly topP?: number;
31
30
  };
32
- export declare const routes: import("../route/client.js").Route<{
31
+ export declare const routes: import("../route.js").Route<{
33
32
  readonly modelId: string;
34
33
  readonly messages: readonly ({
35
34
  readonly role: "user";
@@ -178,15 +177,15 @@ export declare const routes: import("../route/client.js").Route<{
178
177
  }, import("../route/transport/http.js").HttpPrepared<{
179
178
  readonly [x: string]: unknown;
180
179
  readonly rawBody: string;
181
- }>, import("../route/client.js").CompactionOperations | undefined>[];
180
+ }>, import("../route.js").CompactionOperations | undefined>[];
182
181
  export declare const configure: (input?: Config) => {
183
182
  id: string & import("effect/Brand").Brand<"AI.ProviderID">;
184
- model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<BedrockConverse.OptionsInput, import("../route/client.js").CompactionOperations | undefined>;
183
+ model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<BedrockConverse.OptionsInput, import("../route.js").CompactionOperations | undefined>;
185
184
  configure: typeof configure;
186
185
  };
187
186
  export declare const provider: {
188
187
  id: string & import("effect/Brand").Brand<"AI.ProviderID">;
189
- model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<BedrockConverse.OptionsInput, import("../route/client.js").CompactionOperations | undefined>;
188
+ model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<BedrockConverse.OptionsInput, import("../route.js").CompactionOperations | undefined>;
190
189
  configure: typeof configure;
191
190
  };
192
191
  export declare const model: ProviderPackage.Model<Settings, BedrockConverse.OptionsInput>;
@@ -1,13 +1,12 @@
1
1
  import type { ProviderPackage } from "../provider-package.js";
2
2
  import { AnthropicMessages } from "../protocols/anthropic-messages.js";
3
3
  import { type ProviderAuthOption } from "../route/auth-options.js";
4
- import type { RouteDefaultsInput } from "../route/client.js";
5
- import { type ModelID } from "../schema/index.js";
4
+ import { type ModelID, type RequestOptions } from "../schema/index.js";
6
5
  export type AnthropicOptionsInput = AnthropicMessages.OptionsInput;
7
6
  export type AnthropicProviderOptionsInput = AnthropicMessages.ProviderOptionsInput;
8
7
  export type AnthropicThinkingInput = AnthropicMessages.ThinkingInput;
9
8
  export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
10
- export type Config = RouteDefaultsInput & ProviderAuthOption<"optional"> & {
9
+ export type Config = RequestOptions & ProviderAuthOption<"optional"> & {
11
10
  readonly provider?: string;
12
11
  readonly baseURL: string;
13
12
  readonly providerOptions?: AnthropicMessages.ProviderOptionsInput;
@@ -22,7 +21,7 @@ export type Settings = ProviderPackage.Settings & AnthropicMessages.ProviderOpti
22
21
  readonly baseURL: string;
23
22
  readonly provider?: string;
24
23
  };
25
- export declare const routes: import("../route/client.js").Route<{
24
+ export declare const routes: import("../route.js").Route<{
26
25
  readonly context_management?: {
27
26
  readonly edits: readonly {
28
27
  readonly type: "compact_20260112";
@@ -329,10 +328,10 @@ export declare const routes: import("../route/client.js").Route<{
329
328
  } | undefined;
330
329
  readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "standard_only"> | undefined;
331
330
  readonly speed?: import("../schema/options.js").OpenString<"fast" | "standard"> | undefined;
332
- }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>[];
331
+ }, import("../route/transport/http.js").HttpPrepared<string>, import("../route.js").CompactionOperations | undefined>[];
333
332
  export declare const configure: (input: Config) => {
334
333
  id: string & import("effect/Brand").Brand<"AI.ProviderID">;
335
- model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<AnthropicMessages.OptionsInput, import("../route/client.js").CompactionOperations | undefined>;
334
+ model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<AnthropicMessages.OptionsInput, import("../route.js").CompactionOperations | undefined>;
336
335
  configure: typeof configure;
337
336
  };
338
337
  export declare const provider: {
@@ -1,13 +1,12 @@
1
- import type { RouteDefaultsInput } from "../route/client.js";
2
1
  import { type ProviderAuthOption } from "../route/auth-options.js";
3
2
  import type { ProviderPackage } from "../provider-package.js";
4
- import { type ModelID } from "../schema/index.js";
3
+ import { type ModelID, type RequestOptions } from "../schema/index.js";
5
4
  import { AnthropicMessages } from "../protocols/anthropic-messages.js";
6
5
  export type AnthropicOptionsInput = AnthropicMessages.OptionsInput;
7
6
  export type AnthropicProviderOptionsInput = AnthropicMessages.ProviderOptionsInput;
8
7
  export type AnthropicThinkingInput = AnthropicMessages.ThinkingInput;
9
8
  export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
10
- export declare const routes: import("../route/client.js").Route<{
9
+ export declare const routes: import("../route.js").Route<{
11
10
  readonly context_management?: {
12
11
  readonly edits: readonly {
13
12
  readonly type: "compact_20260112";
@@ -314,8 +313,8 @@ export declare const routes: import("../route/client.js").Route<{
314
313
  } | undefined;
315
314
  readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "standard_only"> | undefined;
316
315
  readonly speed?: import("../schema/options.js").OpenString<"fast" | "standard"> | undefined;
317
- }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>[];
318
- export type Config = RouteDefaultsInput & ProviderAuthOption<"optional"> & {
316
+ }, import("../route/transport/http.js").HttpPrepared<string>, import("../route.js").CompactionOperations | undefined>[];
317
+ export type Config = RequestOptions & ProviderAuthOption<"optional"> & {
319
318
  readonly baseURL?: string;
320
319
  readonly providerOptions?: AnthropicMessages.ProviderOptionsInput;
321
320
  };
@@ -330,12 +329,12 @@ export type Settings = ProviderPackage.Settings & AnthropicMessages.ProviderOpti
330
329
  };
331
330
  export declare const configure: (input?: Config) => {
332
331
  id: string & import("effect/Brand").Brand<"AI.ProviderID">;
333
- model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<AnthropicMessages.OptionsInput, import("../route/client.js").CompactionOperations | undefined>;
332
+ model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<AnthropicMessages.OptionsInput, import("../route.js").CompactionOperations | undefined>;
334
333
  configure: typeof configure;
335
334
  };
336
335
  export declare const provider: {
337
336
  id: string & import("effect/Brand").Brand<"AI.ProviderID">;
338
- model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<AnthropicMessages.OptionsInput, import("../route/client.js").CompactionOperations | undefined>;
337
+ model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<AnthropicMessages.OptionsInput, import("../route.js").CompactionOperations | undefined>;
339
338
  configure: typeof configure;
340
339
  };
341
340
  export declare const model: ProviderPackage.Model<Settings, AnthropicMessages.ProviderOptionsInput>;
@@ -1,7 +1,7 @@
1
1
  import { type AtLeastOne, type ProviderAuthOption } from "../route/auth-options.js";
2
- import type { Route, RouteDefaultsInput, CompactionOperations } from "../route/client.js";
2
+ import type { Route, CompactionOperations } from "../route/client.js";
3
3
  import type { ProviderPackage } from "../provider-package.js";
4
- import { type ModelID, type ProviderOptions } from "../schema/index.js";
4
+ import { type ModelID, type ProviderOptions, type RequestOptions } from "../schema/index.js";
5
5
  import { AnthropicMessages } from "../protocols/anthropic-messages.js";
6
6
  import { type OpenAIProviderOptionsInput } from "./openai-options.js";
7
7
  export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
@@ -9,7 +9,7 @@ type AzureURL = AtLeastOne<{
9
9
  readonly resourceName: string;
10
10
  readonly baseURL: string;
11
11
  }>;
12
- export type Config = AzureURL & RouteDefaultsInput & ProviderAuthOption<"optional"> & {
12
+ export type Config = AzureURL & RequestOptions & ProviderAuthOption<"optional"> & {
13
13
  readonly apiVersion?: string;
14
14
  readonly queryParams?: Record<string, string>;
15
15
  readonly useDeploymentBasedUrls?: boolean;
@@ -2,7 +2,7 @@ import { Auth } from "../route/auth.js";
2
2
  import { AuthOptions } from "../route/auth-options.js";
3
3
  import { Endpoint } from "../route/endpoint.js";
4
4
  import { MediaRoute } from "../route/media.js";
5
- import { ProviderConfigurationError, ProviderID } from "../schema/index.js";
5
+ import { ProviderConfigurationError, ProviderID, } from "../schema/index.js";
6
6
  import { AnthropicMessages } from "../protocols/anthropic-messages.js";
7
7
  import { OpenAIImages } from "../protocols/openai-images.js";
8
8
  import * as OpenAIChat from "../protocols/openai-chat.js";
@@ -1,10 +1,10 @@
1
1
  import type { ProviderPackage } from "../provider-package.js";
2
2
  import type { ProviderAuthOption } from "../route/auth-options.js";
3
- import { Route, type RouteDefaultsInput } from "../route/client.js";
4
- import { type ModelID, type ProviderOptions } from "../schema/index.js";
3
+ import { Route } from "../route/client.js";
4
+ import { type ModelID, type ProviderOptions, type RequestOptions } from "../schema/index.js";
5
5
  import type { OpenAIProviderOptionsInput } from "./openai-options.js";
6
6
  export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
7
- export type Config = Omit<RouteDefaultsInput, "providerOptions"> & ProviderAuthOption<"optional"> & {
7
+ export type Config = Omit<RequestOptions, "providerOptions"> & ProviderAuthOption<"optional"> & {
8
8
  readonly baseURL?: string;
9
9
  readonly providerOptions?: OpenAIProviderOptionsInput;
10
10
  };
@@ -1,10 +1,10 @@
1
1
  import type { ProviderPackage } from "../provider-package.js";
2
2
  import type { ProviderAuthOption } from "../route/auth-options.js";
3
- import { Route, type RouteDefaultsInput } from "../route/client.js";
4
- import { type ModelID } from "../schema/index.js";
3
+ import { Route } from "../route/client.js";
4
+ import { type ModelID, type RequestOptions } from "../schema/index.js";
5
5
  import type { OpenAIProviderOptionsInput } from "./openai-options.js";
6
6
  export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
7
- export type Config = Omit<RouteDefaultsInput, "providerOptions"> & ProviderAuthOption<"optional"> & {
7
+ export type Config = Omit<RequestOptions, "providerOptions"> & ProviderAuthOption<"optional"> & {
8
8
  readonly baseURL?: string;
9
9
  readonly providerOptions?: OpenAIProviderOptionsInput;
10
10
  };
@@ -1,8 +1,7 @@
1
1
  import type { Config, Redacted } from "effect";
2
2
  import type { ProviderPackage } from "../provider-package.js";
3
3
  import { type AtLeastOne, type ProviderAuthOption } from "../route/auth-options.js";
4
- import type { RouteDefaultsInput } from "../route/client.js";
5
- import { type ModelID, type ProviderOptions } from "../schema/index.js";
4
+ import { type ModelID, type ProviderOptions, type RequestOptions } from "../schema/index.js";
6
5
  import type { OpenAIProviderOptionsInput } from "./openai-options.js";
7
6
  export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
8
7
  export declare const authEnvVars: readonly ["CLOUDFLARE_API_TOKEN", "CF_AIG_TOKEN"];
@@ -18,7 +17,7 @@ type GatewayOptions = {
18
17
  readonly skipCache?: boolean;
19
18
  readonly collectLog?: boolean;
20
19
  };
21
- export type Config = GatewayURL & GatewayOptions & Omit<RouteDefaultsInput, "providerOptions"> & ProviderAuthOption<"optional"> & {
20
+ export type Config = GatewayURL & GatewayOptions & Omit<RequestOptions, "providerOptions"> & ProviderAuthOption<"optional"> & {
22
21
  readonly gatewayApiKey?: string | Redacted.Redacted | Config.Config<string | Redacted.Redacted>;
23
22
  readonly providerOptions?: OpenAIProviderOptionsInput;
24
23
  };
@@ -29,7 +28,7 @@ export type Settings = ProviderPackage.Settings & OpenAIProviderOptionsInput & G
29
28
  export declare const baseURL: (input: GatewayURL) => string;
30
29
  /** The Run API (`/ai/run`) next to the OpenAI-compatible `/ai/v1` base. */
31
30
  export declare const runBaseURL: (input: GatewayURL) => string;
32
- export declare const responsesRoute: import("../route/client.js").Route<{
31
+ export declare const responsesRoute: import("../route.js").Route<{
33
32
  readonly model: string;
34
33
  readonly input: readonly ({
35
34
  readonly type: "configuration_update";
@@ -262,7 +261,7 @@ export declare const responsesRoute: import("../route/client.js").Route<{
262
261
  endpoint: import("../route/client.js").CompactOperation;
263
262
  trigger: import("../route/client.js").TriggerCompactOperation;
264
263
  }>;
265
- export declare const messagesRoute: import("../route/client.js").Route<{
264
+ export declare const messagesRoute: import("../route.js").Route<{
266
265
  readonly context_management?: {
267
266
  readonly edits: readonly {
268
267
  readonly type: "compact_20260112";
@@ -569,8 +568,8 @@ export declare const messagesRoute: import("../route/client.js").Route<{
569
568
  } | undefined;
570
569
  readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "standard_only"> | undefined;
571
570
  readonly speed?: import("../schema/options.js").OpenString<"fast" | "standard"> | undefined;
572
- }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>;
573
- export declare const route: import("../route/client.js").Route<{
571
+ }, import("../route/transport/http.js").HttpPrepared<string>, import("../route.js").CompactionOperations | undefined>;
572
+ export declare const route: import("../route.js").Route<{
574
573
  readonly model: string;
575
574
  readonly messages: readonly ({
576
575
  readonly role: "system";
@@ -743,8 +742,8 @@ export declare const route: import("../route/client.js").Route<{
743
742
  readonly presence_penalty?: number | undefined;
744
743
  readonly seed?: number | undefined;
745
744
  readonly stop?: readonly string[] | undefined;
746
- }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>;
747
- export declare const routes: (import("../route/client.js").Route<{
745
+ }, import("../route/transport/http.js").HttpPrepared<string>, import("../route.js").CompactionOperations | undefined>;
746
+ export declare const routes: (import("../route.js").Route<{
748
747
  readonly context_management?: {
749
748
  readonly edits: readonly {
750
749
  readonly type: "compact_20260112";
@@ -1051,7 +1050,7 @@ export declare const routes: (import("../route/client.js").Route<{
1051
1050
  } | undefined;
1052
1051
  readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "standard_only"> | undefined;
1053
1052
  readonly speed?: import("../schema/options.js").OpenString<"fast" | "standard"> | undefined;
1054
- }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | import("../route/client.js").Route<{
1053
+ }, import("../route/transport/http.js").HttpPrepared<string>, import("../route.js").CompactionOperations | undefined> | import("../route.js").Route<{
1055
1054
  readonly model: string;
1056
1055
  readonly messages: readonly ({
1057
1056
  readonly role: "system";
@@ -1224,7 +1223,7 @@ export declare const routes: (import("../route/client.js").Route<{
1224
1223
  readonly presence_penalty?: number | undefined;
1225
1224
  readonly seed?: number | undefined;
1226
1225
  readonly stop?: readonly string[] | undefined;
1227
- }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | import("../route/client.js").Route<{
1226
+ }, import("../route/transport/http.js").HttpPrepared<string>, import("../route.js").CompactionOperations | undefined> | import("../route.js").Route<{
1228
1227
  readonly model: string;
1229
1228
  readonly input: readonly ({
1230
1229
  readonly type: "configuration_update";
@@ -1463,12 +1462,12 @@ export declare const configure: (input: Config) => {
1463
1462
  endpoint: import("../route/client.js").CompactOperation;
1464
1463
  trigger: import("../route/client.js").TriggerCompactOperation;
1465
1464
  }>;
1466
- chat: (value: string | ModelID) => import("../schema/options.js").LanguageModel<import("./openai-options.js").OpenAIOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
1465
+ chat: (value: string | ModelID) => import("../schema/options.js").LanguageModel<import("./openai-options.js").OpenAIOptionsInput, import("../route.js").CompactionOperations | undefined>;
1467
1466
  responses: (value: string | ModelID) => import("../schema/options.js").LanguageModel<import("./openai-options.js").OpenAIOptionsInput, {
1468
1467
  endpoint: import("../route/client.js").CompactOperation;
1469
1468
  trigger: import("../route/client.js").TriggerCompactOperation;
1470
1469
  }>;
1471
- messages: (value: string | ModelID) => import("../schema/options.js").LanguageModel<import("./openai-options.js").OpenAIOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
1470
+ messages: (value: string | ModelID) => import("../schema/options.js").LanguageModel<import("./openai-options.js").OpenAIOptionsInput, import("../route.js").CompactionOperations | undefined>;
1472
1471
  decision: (value: string | ModelID, providerOptions?: ProviderOptions) => import("../decision.js").DecisionModel<import("../decision.js").DecisionOptions>;
1473
1472
  configure: typeof configure;
1474
1473
  };
@@ -1,7 +1,7 @@
1
1
  import type { ProviderPackage } from "../provider-package.js";
2
2
  import { type AtLeastOne, type ProviderAuthOption } from "../route/auth-options.js";
3
- import { Route, type RouteDefaultsInput } from "../route/client.js";
4
- import { type ModelID, type ProviderOptions } from "../schema/index.js";
3
+ import { Route } from "../route/client.js";
4
+ import { type ModelID, type ProviderOptions, type RequestOptions } from "../schema/index.js";
5
5
  import type { OpenAIProviderOptionsInput } from "./openai-options.js";
6
6
  export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
7
7
  export declare const authEnvVars: readonly ["CLOUDFLARE_API_KEY", "CLOUDFLARE_WORKERS_AI_TOKEN", "CLOUDFLARE_API_TOKEN"];
@@ -9,7 +9,7 @@ type WorkersAIURL = AtLeastOne<{
9
9
  readonly accountId: string;
10
10
  readonly baseURL: string;
11
11
  }>;
12
- export type Config = WorkersAIURL & Omit<RouteDefaultsInput, "providerOptions"> & ProviderAuthOption<"optional"> & {
12
+ export type Config = WorkersAIURL & Omit<RequestOptions, "providerOptions"> & ProviderAuthOption<"optional"> & {
13
13
  readonly providerOptions?: OpenAIProviderOptionsInput;
14
14
  };
15
15
  export type Settings = ProviderPackage.Settings & OpenAIProviderOptionsInput & WorkersAIURL & {
@@ -1,14 +1,14 @@
1
1
  import { CohereChat } from "../protocols/cohere-chat.js";
2
- import { Route, type RouteDefaultsInput } from "../route/client.js";
2
+ import { Route } from "../route/client.js";
3
3
  import type { ProviderAuthOption } from "../route/auth-options.js";
4
- import { type ModelID, type OpenString } from "../schema/index.js";
4
+ import { type ModelID, type OpenString, type RequestOptions } from "../schema/index.js";
5
5
  import type { ProviderPackage } from "../provider-package.js";
6
6
  export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
7
7
  export type ChatOptionsInput = {
8
8
  readonly reasoningEffort?: OpenString<"none" | "high">;
9
9
  };
10
10
  export type ProviderOptions = CohereChat.ProviderOptionsInput & ChatOptionsInput;
11
- export type Config = Omit<RouteDefaultsInput, "providerOptions"> & ProviderAuthOption<"optional"> & {
11
+ export type Config = Omit<RequestOptions, "providerOptions"> & ProviderAuthOption<"optional"> & {
12
12
  readonly baseURL?: string;
13
13
  readonly providerOptions?: ProviderOptions;
14
14
  };
@@ -1,10 +1,10 @@
1
1
  import type { ProviderPackage } from "../provider-package.js";
2
2
  import type { ProviderAuthOption } from "../route/auth-options.js";
3
- import { Route, type RouteDefaultsInput } from "../route/client.js";
4
- import { type ModelID } from "../schema/index.js";
3
+ import { Route } from "../route/client.js";
4
+ import { type ModelID, type RequestOptions } from "../schema/index.js";
5
5
  import type { OpenAIProviderOptionsInput } from "./openai-options.js";
6
6
  export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
7
- export type Config = Omit<RouteDefaultsInput, "providerOptions"> & ProviderAuthOption<"optional"> & {
7
+ export type Config = Omit<RequestOptions, "providerOptions"> & ProviderAuthOption<"optional"> & {
8
8
  readonly baseURL?: string;
9
9
  readonly providerOptions?: OpenAIProviderOptionsInput;
10
10
  };
@@ -1,10 +1,10 @@
1
1
  import type { ProviderPackage } from "../provider-package.js";
2
2
  import type { ProviderAuthOption } from "../route/auth-options.js";
3
- import { Route, type RouteDefaultsInput } from "../route/client.js";
4
- import { type ModelID } from "../schema/index.js";
3
+ import { Route } from "../route/client.js";
4
+ import { type ModelID, type RequestOptions } from "../schema/index.js";
5
5
  import type { OpenAIProviderOptionsInput } from "./openai-options.js";
6
6
  export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
7
- export type Config = Omit<RouteDefaultsInput, "providerOptions"> & ProviderAuthOption<"optional"> & {
7
+ export type Config = Omit<RequestOptions, "providerOptions"> & ProviderAuthOption<"optional"> & {
8
8
  readonly baseURL?: string;
9
9
  readonly providerOptions?: OpenAIProviderOptionsInput;
10
10
  };
@@ -1,13 +1,13 @@
1
1
  import type { ProviderPackage } from "../provider-package.js";
2
2
  import { OpenAIChat } from "../protocols/openai-chat.js";
3
3
  import type { ProviderAuthOption } from "../route/auth-options.js";
4
- import { Route, type RouteDefaultsInput } from "../route/client.js";
4
+ import { Route } from "../route/client.js";
5
5
  import { Protocol } from "../route/protocol.js";
6
- import { type ModelID, type ProviderOptions } from "../schema/index.js";
6
+ import { type ModelID, type ProviderOptions, type RequestOptions } from "../schema/index.js";
7
7
  import type { OpenAIProviderOptionsInput } from "./openai-options.js";
8
8
  import type { OpenResponsesProviderOptionsInput } from "./open-responses-options.js";
9
9
  export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
10
- export type Config = Omit<RouteDefaultsInput, "providerOptions"> & ProviderAuthOption<"optional"> & {
10
+ export type Config = Omit<RequestOptions, "providerOptions"> & ProviderAuthOption<"optional"> & {
11
11
  readonly baseURL?: string;
12
12
  readonly providerOptions?: OpenAIProviderOptionsInput | OpenResponsesProviderOptionsInput;
13
13
  };
@@ -34,7 +34,7 @@ const responsesRoute = Route.make({
34
34
  protocol: OpenResponses.protocol,
35
35
  endpoint: Endpoint.path("/responses", { baseURL }),
36
36
  transport: OpenResponses.httpTransport,
37
- defaults: { providerOptions: { store: false, include: ["reasoning.encrypted_content"] } },
37
+ options: { providerOptions: { store: false, include: ["reasoning.encrypted_content"] } },
38
38
  });
39
39
  export const routes = [route, responsesRoute];
40
40
  export const configure = (input = {}) => {
@@ -1,10 +1,10 @@
1
1
  import type { ProviderPackage } from "../provider-package.js";
2
2
  import type { ProviderAuthOption } from "../route/auth-options.js";
3
- import { Route, type RouteDefaultsInput } from "../route/client.js";
4
- import { type ModelID } from "../schema/index.js";
3
+ import { Route } from "../route/client.js";
4
+ import { type ModelID, type RequestOptions } from "../schema/index.js";
5
5
  import type { OpenAIProviderOptionsInput } from "./openai-options.js";
6
6
  export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
7
- export type Config = Omit<RouteDefaultsInput, "providerOptions"> & ProviderAuthOption<"optional"> & {
7
+ export type Config = Omit<RequestOptions, "providerOptions"> & ProviderAuthOption<"optional"> & {
8
8
  readonly baseURL?: string;
9
9
  readonly providerOptions?: OpenAIProviderOptionsInput;
10
10
  };
@@ -1,10 +1,10 @@
1
1
  import type { ProviderPackage } from "../provider-package.js";
2
- import { Route, type RouteDefaultsInput } from "../route/client.js";
3
- import { type ModelID } from "../schema/index.js";
2
+ import { Route } from "../route/client.js";
3
+ import { type ModelID, type RequestOptions } from "../schema/index.js";
4
4
  import { GoogleVertexShared } from "./google-vertex-shared.js";
5
5
  import type { OpenAIProviderOptionsInput } from "./openai-options.js";
6
6
  export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
7
- export type Config = RouteDefaultsInput & GoogleVertexShared.OAuthOptions & {
7
+ export type Config = RequestOptions & GoogleVertexShared.OAuthOptions & {
8
8
  readonly baseURL?: string;
9
9
  readonly location?: string;
10
10
  readonly project?: string;
@@ -1,11 +1,11 @@
1
1
  import type { ProviderPackage } from "../provider-package.js";
2
2
  import { GoogleInteractions } from "../protocols/google-interactions.js";
3
- import { Route, type RouteDefaultsInput } from "../route/client.js";
4
- import { type ModelID } from "../schema/index.js";
3
+ import { Route } from "../route/client.js";
4
+ import { type ModelID, type RequestOptions } from "../schema/index.js";
5
5
  import { GoogleVertexShared } from "./google-vertex-shared.js";
6
6
  export type GoogleInteractionsOptionsInput = GoogleInteractions.OptionsInput;
7
7
  export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
8
- export type Config = RouteDefaultsInput & GoogleVertexShared.ApiKeyOptions & {
8
+ export type Config = RequestOptions & GoogleVertexShared.ApiKeyOptions & {
9
9
  readonly baseURL?: string;
10
10
  readonly location?: string;
11
11
  readonly project?: string;
@@ -1,13 +1,13 @@
1
1
  import type { ProviderPackage } from "../provider-package.js";
2
2
  import { AnthropicMessages } from "../protocols/anthropic-messages.js";
3
- import { Route, type RouteDefaultsInput } from "../route/client.js";
4
- import { type ModelID } from "../schema/index.js";
3
+ import { Route } from "../route/client.js";
4
+ import { type ModelID, type RequestOptions } from "../schema/index.js";
5
5
  import { GoogleVertexShared } from "./google-vertex-shared.js";
6
6
  export type AnthropicOptionsInput = AnthropicMessages.OptionsInput;
7
7
  export type AnthropicProviderOptionsInput = AnthropicMessages.ProviderOptionsInput;
8
8
  export type AnthropicThinkingInput = AnthropicMessages.ThinkingInput;
9
9
  export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
10
- export type Config = RouteDefaultsInput & GoogleVertexShared.OAuthOptions & {
10
+ export type Config = RequestOptions & GoogleVertexShared.OAuthOptions & {
11
11
  readonly baseURL?: string;
12
12
  readonly location?: string;
13
13
  readonly project?: string;
@@ -1,11 +1,11 @@
1
1
  import type { ProviderPackage } from "../provider-package.js";
2
2
  import { MistralChat } from "../protocols/mistral-chat.js";
3
- import { Route, type RouteDefaultsInput } from "../route/client.js";
3
+ import { Route } from "../route/client.js";
4
4
  import { HttpTransport } from "../route/transport/index.js";
5
- import { type ModelID } from "../schema/index.js";
5
+ import { type ModelID, type RequestOptions } from "../schema/index.js";
6
6
  import { GoogleVertexShared } from "./google-vertex-shared.js";
7
7
  export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
8
- export type Config = RouteDefaultsInput & GoogleVertexShared.OAuthOptions & {
8
+ export type Config = RequestOptions & GoogleVertexShared.OAuthOptions & {
9
9
  readonly baseURL?: string;
10
10
  readonly location?: string;
11
11
  readonly project?: string;
@@ -1,10 +1,10 @@
1
1
  import type { ProviderPackage } from "../provider-package.js";
2
- import { Route, type RouteDefaultsInput } from "../route/client.js";
3
- import { type ModelID } from "../schema/index.js";
2
+ import { Route } from "../route/client.js";
3
+ import { type ModelID, type RequestOptions } from "../schema/index.js";
4
4
  import { GoogleVertexShared } from "./google-vertex-shared.js";
5
5
  import type { OpenResponsesProviderOptionsInput } from "./open-responses-options.js";
6
6
  export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
7
- export type Config = RouteDefaultsInput & GoogleVertexShared.OAuthOptions & {
7
+ export type Config = RequestOptions & GoogleVertexShared.OAuthOptions & {
8
8
  readonly baseURL?: string;
9
9
  readonly location?: string;
10
10
  readonly project?: string;
@@ -11,7 +11,7 @@ const route = Route.make({
11
11
  protocol: OpenResponses.protocol,
12
12
  endpoint: Endpoint.path(OpenResponses.PATH),
13
13
  transport: OpenResponses.httpTransport,
14
- defaults: { providerOptions: { store: false, include: ["reasoning.encrypted_content"] } },
14
+ options: { providerOptions: { store: false, include: ["reasoning.encrypted_content"] } },
15
15
  });
16
16
  export const routes = [route];
17
17
  const configuredRoute = (input) => GoogleVertexShared.oauthRoute(route, "Responses", input, (project, location) => `https://aiplatform.googleapis.com/v1/projects/${project}/locations/${location}/endpoints/openapi`);
@@ -1,7 +1,8 @@
1
1
  import type { AnyAuthClient } from "google-auth-library";
2
2
  import type { ProviderPackage } from "../provider-package.js";
3
3
  import { Auth } from "../route/auth.js";
4
- import type { CompactionOperations, Route, RouteDefaultsInput } from "../route/client.js";
4
+ import type { CompactionOperations, Route } from "../route/client.js";
5
+ import { type RequestOptions } from "../schema/index.js";
5
6
  export declare const loadADCClient: (project?: string) => Promise<AnyAuthClient>;
6
7
  export type OAuthOptions = {
7
8
  readonly accessToken?: string;
@@ -26,7 +27,7 @@ export declare const apiKey: (input: ApiKeyOptions & {
26
27
  readonly location?: string;
27
28
  }) => string | undefined;
28
29
  export declare const oauth: (input: OAuthOptions, project?: string) => Auth.Definition;
29
- export declare const oauthRoute: <Body, Prepared, Compact extends CompactionOperations | undefined>(route: Route<Body, Prepared, Compact>, label: string, input: RouteDefaultsInput & OAuthOptions & {
30
+ export declare const oauthRoute: <Body, Prepared, Compact extends CompactionOperations | undefined>(route: Route<Body, Prepared, Compact>, label: string, input: RequestOptions & OAuthOptions & {
30
31
  readonly baseURL?: string;
31
32
  readonly location?: string;
32
33
  readonly project?: string;
@@ -1,14 +1,14 @@
1
1
  import type { ProviderPackage } from "../provider-package.js";
2
2
  import { Gemini } from "../protocols/gemini.js";
3
- import { Route, type RouteDefaultsInput } from "../route/client.js";
4
- import { type ModelID, type ProviderOptions } from "../schema/index.js";
3
+ import { Route } from "../route/client.js";
4
+ import { type ModelID, type ProviderOptions, type RequestOptions } from "../schema/index.js";
5
5
  import { GoogleVertexShared } from "./google-vertex-shared.js";
6
6
  export interface GeminiOptionsInput extends Gemini.OptionsInput {
7
7
  readonly labels?: Readonly<Record<string, string>>;
8
8
  }
9
9
  export type GeminiProviderOptionsInput = GeminiOptionsInput;
10
10
  export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
11
- export type Config = RouteDefaultsInput & GoogleVertexShared.ApiKeyOptions & {
11
+ export type Config = RequestOptions & GoogleVertexShared.ApiKeyOptions & {
12
12
  readonly baseURL?: string;
13
13
  readonly location?: string;
14
14
  readonly project?: string;