@openrouter/sdk 0.13.44 → 0.13.46

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 (110) hide show
  1. package/esm/funcs/byokList.js +1 -1
  2. package/esm/funcs/embeddingsListModels.d.ts +4 -2
  3. package/esm/funcs/embeddingsListModels.js +45 -8
  4. package/esm/funcs/guardrailsList.js +1 -1
  5. package/esm/funcs/guardrailsListGuardrailKeyAssignments.js +1 -1
  6. package/esm/funcs/guardrailsListGuardrailMemberAssignments.js +1 -1
  7. package/esm/funcs/guardrailsListKeyAssignments.js +1 -1
  8. package/esm/funcs/guardrailsListMemberAssignments.js +1 -1
  9. package/esm/funcs/modelsList.d.ts +4 -2
  10. package/esm/funcs/modelsList.js +39 -7
  11. package/esm/funcs/modelsListForUser.d.ts +4 -2
  12. package/esm/funcs/modelsListForUser.js +45 -8
  13. package/esm/funcs/observabilityList.js +1 -1
  14. package/esm/funcs/organizationListMembers.js +1 -1
  15. package/esm/funcs/presetsList.js +1 -1
  16. package/esm/funcs/presetsListVersions.js +1 -1
  17. package/esm/funcs/workspacesList.js +1 -1
  18. package/esm/funcs/workspacesListMembers.js +1 -1
  19. package/esm/lib/config.d.ts +2 -2
  20. package/esm/lib/config.js +2 -2
  21. package/esm/models/additionaltoolsitem.d.ts +5 -5
  22. package/esm/models/additionaltoolsitem.js +3 -3
  23. package/esm/models/anthropiccitationsearchresultlocationparam.d.ts +24 -0
  24. package/esm/models/{anthropiccitationsearchresultlocation.js → anthropiccitationsearchresultlocationparam.js} +5 -5
  25. package/esm/models/anthropiccitationwebsearchresultlocationparam.d.ts +20 -0
  26. package/esm/models/{anthropiccitationwebsearchresultlocation.js → anthropiccitationwebsearchresultlocationparam.js} +5 -5
  27. package/esm/models/anthropictextblockparam.d.ts +6 -6
  28. package/esm/models/anthropictextblockparam.js +6 -6
  29. package/esm/models/chatformatjsonobjectconfig.d.ts +15 -0
  30. package/esm/models/chatformatjsonobjectconfig.js +13 -0
  31. package/esm/models/chatrequest.d.ts +5 -5
  32. package/esm/models/chatrequest.js +3 -3
  33. package/esm/models/createobservabilitydestinationrequest.d.ts +3 -3
  34. package/esm/models/createobservabilitydestinationrequest.js +2 -2
  35. package/esm/models/imagegenerationproviderpreferences.d.ts +811 -0
  36. package/esm/models/imagegenerationproviderpreferences.js +208 -0
  37. package/esm/models/imagegenerationrequest.d.ts +4 -753
  38. package/esm/models/imagegenerationrequest.js +2 -162
  39. package/esm/models/imageinputmodality.d.ts +13 -0
  40. package/esm/models/imageinputmodality.js +15 -0
  41. package/esm/models/imagemodelarchitecture.d.ts +2 -2
  42. package/esm/models/imagemodelarchitecture.js +2 -2
  43. package/esm/models/index.d.ts +10 -2
  44. package/esm/models/index.js +10 -2
  45. package/esm/models/legacychatcontentvideo.d.ts +3 -3
  46. package/esm/models/legacychatcontentvideo.js +3 -3
  47. package/esm/models/legacychatcontentvideoinput.d.ts +23 -0
  48. package/esm/models/legacychatcontentvideoinput.js +21 -0
  49. package/esm/models/messagesrequest.d.ts +5 -5
  50. package/esm/models/messagesrequest.js +3 -3
  51. package/esm/models/messagessearchmodelsservertool.d.ts +28 -0
  52. package/esm/models/messagessearchmodelsservertool.js +20 -0
  53. package/esm/models/modelarchitecture.d.ts +2 -35
  54. package/esm/models/modelarchitecture.js +2 -32
  55. package/esm/models/modelslistresponse.d.ts +20 -0
  56. package/esm/models/modelslistresponse.js +14 -0
  57. package/esm/models/observabilityfilterrulegroup.d.ts +94 -0
  58. package/esm/models/observabilityfilterrulegroup.js +103 -0
  59. package/esm/models/observabilityfilterrulesconfig.d.ts +3 -100
  60. package/esm/models/observabilityfilterrulesconfig.js +2 -105
  61. package/esm/models/observabilityfilterrulesconfignullable.d.ts +18 -0
  62. package/esm/models/observabilityfilterrulesconfignullable.js +15 -0
  63. package/esm/models/operations/createembeddings.d.ts +1 -12
  64. package/esm/models/operations/createembeddings.js +1 -17
  65. package/esm/models/operations/getmodels.d.ts +19 -0
  66. package/esm/models/operations/getmodels.js +15 -0
  67. package/esm/models/operations/listbyokkeys.d.ts +2 -2
  68. package/esm/models/operations/listbyokkeys.js +2 -2
  69. package/esm/models/operations/listembeddingsmodels.d.ts +19 -0
  70. package/esm/models/operations/listembeddingsmodels.js +15 -0
  71. package/esm/models/operations/listguardrailkeyassignments.d.ts +2 -2
  72. package/esm/models/operations/listguardrailkeyassignments.js +2 -2
  73. package/esm/models/operations/listguardrailmemberassignments.d.ts +2 -2
  74. package/esm/models/operations/listguardrailmemberassignments.js +2 -2
  75. package/esm/models/operations/listguardrails.d.ts +2 -2
  76. package/esm/models/operations/listguardrails.js +2 -2
  77. package/esm/models/operations/listkeyassignments.d.ts +2 -2
  78. package/esm/models/operations/listkeyassignments.js +2 -2
  79. package/esm/models/operations/listmemberassignments.d.ts +2 -2
  80. package/esm/models/operations/listmemberassignments.js +2 -2
  81. package/esm/models/operations/listmodelsuser.d.ts +19 -0
  82. package/esm/models/operations/listmodelsuser.js +15 -0
  83. package/esm/models/operations/listobservabilitydestinations.d.ts +2 -2
  84. package/esm/models/operations/listobservabilitydestinations.js +2 -2
  85. package/esm/models/operations/listorganizationmembers.d.ts +2 -2
  86. package/esm/models/operations/listorganizationmembers.js +2 -2
  87. package/esm/models/operations/listpresets.d.ts +2 -2
  88. package/esm/models/operations/listpresets.js +2 -2
  89. package/esm/models/operations/listpresetversions.d.ts +2 -2
  90. package/esm/models/operations/listpresetversions.js +2 -2
  91. package/esm/models/operations/listworkspacemembers.d.ts +2 -2
  92. package/esm/models/operations/listworkspacemembers.js +2 -2
  93. package/esm/models/operations/listworkspaces.d.ts +2 -2
  94. package/esm/models/operations/listworkspaces.js +2 -2
  95. package/esm/models/providerpreferences.d.ts +16 -16
  96. package/esm/models/providerpreferences.js +12 -19
  97. package/esm/models/responsesrequest.d.ts +5 -5
  98. package/esm/models/responsesrequest.js +3 -3
  99. package/esm/models/searchmodelsservertoolopenrouter.d.ts +28 -0
  100. package/esm/models/searchmodelsservertoolopenrouter.js +20 -0
  101. package/esm/models/updateobservabilitydestinationrequest.d.ts +3 -3
  102. package/esm/models/updateobservabilitydestinationrequest.js +2 -2
  103. package/esm/sdk/embeddings.d.ts +4 -2
  104. package/esm/sdk/embeddings.js +2 -1
  105. package/esm/sdk/models.d.ts +7 -2
  106. package/esm/sdk/models.js +3 -2
  107. package/jsr.json +1 -1
  108. package/package.json +5 -5
  109. package/esm/models/anthropiccitationsearchresultlocation.d.ts +0 -24
  110. package/esm/models/anthropiccitationwebsearchresultlocation.d.ts +0 -20
@@ -6,6 +6,7 @@ import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../lib/primitives.js";
7
7
  import * as openEnums from "../types/enums.js";
8
8
  import { ContentPartImage$outboundSchema, } from "./contentpartimage.js";
9
+ import { ImageGenerationProviderPreferences$outboundSchema, } from "./imagegenerationproviderpreferences.js";
9
10
  /**
10
11
  * Normalized aspect ratio of the generated image. Providers clamp to their supported subset.
11
12
  */
@@ -75,166 +76,6 @@ export const ImageGenerationRequestBackground$outboundSchema = openEnums.outboun
75
76
  /** @internal */
76
77
  export const ImageGenerationRequestOutputFormat$outboundSchema = openEnums.outboundSchema(ImageGenerationRequestOutputFormat);
77
78
  /** @internal */
78
- export const ImageGenerationRequestOptions$outboundSchema = z.object({
79
- oneai: z.record(z.string(), z.nullable(z.any())).optional(),
80
- ai21: z.record(z.string(), z.nullable(z.any())).optional(),
81
- aionLabs: z.record(z.string(), z.nullable(z.any())).optional(),
82
- akashml: z.record(z.string(), z.nullable(z.any())).optional(),
83
- alibaba: z.record(z.string(), z.nullable(z.any())).optional(),
84
- amazonBedrock: z.record(z.string(), z.nullable(z.any())).optional(),
85
- amazonNova: z.record(z.string(), z.nullable(z.any())).optional(),
86
- ambient: z.record(z.string(), z.nullable(z.any())).optional(),
87
- anthropic: z.record(z.string(), z.nullable(z.any())).optional(),
88
- anyscale: z.record(z.string(), z.nullable(z.any())).optional(),
89
- arceeAi: z.record(z.string(), z.nullable(z.any())).optional(),
90
- atlasCloud: z.record(z.string(), z.nullable(z.any())).optional(),
91
- atoma: z.record(z.string(), z.nullable(z.any())).optional(),
92
- avian: z.record(z.string(), z.nullable(z.any())).optional(),
93
- azure: z.record(z.string(), z.nullable(z.any())).optional(),
94
- baidu: z.record(z.string(), z.nullable(z.any())).optional(),
95
- baseten: z.record(z.string(), z.nullable(z.any())).optional(),
96
- blackForestLabs: z.record(z.string(), z.nullable(z.any())).optional(),
97
- byteplus: z.record(z.string(), z.nullable(z.any())).optional(),
98
- centml: z.record(z.string(), z.nullable(z.any())).optional(),
99
- cerebras: z.record(z.string(), z.nullable(z.any())).optional(),
100
- chutes: z.record(z.string(), z.nullable(z.any())).optional(),
101
- cirrascale: z.record(z.string(), z.nullable(z.any())).optional(),
102
- clarifai: z.record(z.string(), z.nullable(z.any())).optional(),
103
- cloudflare: z.record(z.string(), z.nullable(z.any())).optional(),
104
- cohere: z.record(z.string(), z.nullable(z.any())).optional(),
105
- crofai: z.record(z.string(), z.nullable(z.any())).optional(),
106
- crucible: z.record(z.string(), z.nullable(z.any())).optional(),
107
- crusoe: z.record(z.string(), z.nullable(z.any())).optional(),
108
- darkbloom: z.record(z.string(), z.nullable(z.any())).optional(),
109
- decart: z.record(z.string(), z.nullable(z.any())).optional(),
110
- deepgram: z.record(z.string(), z.nullable(z.any())).optional(),
111
- deepinfra: z.record(z.string(), z.nullable(z.any())).optional(),
112
- deepseek: z.record(z.string(), z.nullable(z.any())).optional(),
113
- dekallm: z.record(z.string(), z.nullable(z.any())).optional(),
114
- digitalocean: z.record(z.string(), z.nullable(z.any())).optional(),
115
- enfer: z.record(z.string(), z.nullable(z.any())).optional(),
116
- fakeProvider: z.record(z.string(), z.nullable(z.any())).optional(),
117
- featherless: z.record(z.string(), z.nullable(z.any())).optional(),
118
- fireworks: z.record(z.string(), z.nullable(z.any())).optional(),
119
- friendli: z.record(z.string(), z.nullable(z.any())).optional(),
120
- gmicloud: z.record(z.string(), z.nullable(z.any())).optional(),
121
- googleAiStudio: z.record(z.string(), z.nullable(z.any())).optional(),
122
- googleVertex: z.record(z.string(), z.nullable(z.any())).optional(),
123
- gopomelo: z.record(z.string(), z.nullable(z.any())).optional(),
124
- groq: z.record(z.string(), z.nullable(z.any())).optional(),
125
- heygen: z.record(z.string(), z.nullable(z.any())).optional(),
126
- huggingface: z.record(z.string(), z.nullable(z.any())).optional(),
127
- hyperbolic: z.record(z.string(), z.nullable(z.any())).optional(),
128
- hyperbolicQuantized: z.record(z.string(), z.nullable(z.any())).optional(),
129
- inception: z.record(z.string(), z.nullable(z.any())).optional(),
130
- inceptron: z.record(z.string(), z.nullable(z.any())).optional(),
131
- inferactVllm: z.record(z.string(), z.nullable(z.any())).optional(),
132
- inferenceNet: z.record(z.string(), z.nullable(z.any())).optional(),
133
- infermatic: z.record(z.string(), z.nullable(z.any())).optional(),
134
- inflection: z.record(z.string(), z.nullable(z.any())).optional(),
135
- inocloud: z.record(z.string(), z.nullable(z.any())).optional(),
136
- ioNet: z.record(z.string(), z.nullable(z.any())).optional(),
137
- ionstream: z.record(z.string(), z.nullable(z.any())).optional(),
138
- klusterai: z.record(z.string(), z.nullable(z.any())).optional(),
139
- lambda: z.record(z.string(), z.nullable(z.any())).optional(),
140
- lepton: z.record(z.string(), z.nullable(z.any())).optional(),
141
- liquid: z.record(z.string(), z.nullable(z.any())).optional(),
142
- lynn: z.record(z.string(), z.nullable(z.any())).optional(),
143
- lynnPrivate: z.record(z.string(), z.nullable(z.any())).optional(),
144
- mancer: z.record(z.string(), z.nullable(z.any())).optional(),
145
- mancerOld: z.record(z.string(), z.nullable(z.any())).optional(),
146
- mara: z.record(z.string(), z.nullable(z.any())).optional(),
147
- meta: z.record(z.string(), z.nullable(z.any())).optional(),
148
- minimax: z.record(z.string(), z.nullable(z.any())).optional(),
149
- mistral: z.record(z.string(), z.nullable(z.any())).optional(),
150
- modal: z.record(z.string(), z.nullable(z.any())).optional(),
151
- modelrun: z.record(z.string(), z.nullable(z.any())).optional(),
152
- modular: z.record(z.string(), z.nullable(z.any())).optional(),
153
- moonshotai: z.record(z.string(), z.nullable(z.any())).optional(),
154
- morph: z.record(z.string(), z.nullable(z.any())).optional(),
155
- ncompass: z.record(z.string(), z.nullable(z.any())).optional(),
156
- nebius: z.record(z.string(), z.nullable(z.any())).optional(),
157
- nexAgi: z.record(z.string(), z.nullable(z.any())).optional(),
158
- nextbit: z.record(z.string(), z.nullable(z.any())).optional(),
159
- nineteen: z.record(z.string(), z.nullable(z.any())).optional(),
160
- novita: z.record(z.string(), z.nullable(z.any())).optional(),
161
- nvidia: z.record(z.string(), z.nullable(z.any())).optional(),
162
- octoai: z.record(z.string(), z.nullable(z.any())).optional(),
163
- openInference: z.record(z.string(), z.nullable(z.any())).optional(),
164
- openai: z.record(z.string(), z.nullable(z.any())).optional(),
165
- parasail: z.record(z.string(), z.nullable(z.any())).optional(),
166
- perceptron: z.record(z.string(), z.nullable(z.any())).optional(),
167
- perplexity: z.record(z.string(), z.nullable(z.any())).optional(),
168
- phala: z.record(z.string(), z.nullable(z.any())).optional(),
169
- poolside: z.record(z.string(), z.nullable(z.any())).optional(),
170
- quiver: z.record(z.string(), z.nullable(z.any())).optional(),
171
- recraft: z.record(z.string(), z.nullable(z.any())).optional(),
172
- recursal: z.record(z.string(), z.nullable(z.any())).optional(),
173
- reflection: z.record(z.string(), z.nullable(z.any())).optional(),
174
- reka: z.record(z.string(), z.nullable(z.any())).optional(),
175
- relace: z.record(z.string(), z.nullable(z.any())).optional(),
176
- replicate: z.record(z.string(), z.nullable(z.any())).optional(),
177
- sakana: z.record(z.string(), z.nullable(z.any())).optional(),
178
- sambanova: z.record(z.string(), z.nullable(z.any())).optional(),
179
- sambanovaCloaked: z.record(z.string(), z.nullable(z.any())).optional(),
180
- seed: z.record(z.string(), z.nullable(z.any())).optional(),
181
- sfCompute: z.record(z.string(), z.nullable(z.any())).optional(),
182
- siliconflow: z.record(z.string(), z.nullable(z.any())).optional(),
183
- sourceful: z.record(z.string(), z.nullable(z.any())).optional(),
184
- stealth: z.record(z.string(), z.nullable(z.any())).optional(),
185
- stepfun: z.record(z.string(), z.nullable(z.any())).optional(),
186
- streamlake: z.record(z.string(), z.nullable(z.any())).optional(),
187
- switchpoint: z.record(z.string(), z.nullable(z.any())).optional(),
188
- targon: z.record(z.string(), z.nullable(z.any())).optional(),
189
- tenstorrent: z.record(z.string(), z.nullable(z.any())).optional(),
190
- together: z.record(z.string(), z.nullable(z.any())).optional(),
191
- togetherLite: z.record(z.string(), z.nullable(z.any())).optional(),
192
- ubicloud: z.record(z.string(), z.nullable(z.any())).optional(),
193
- upstage: z.record(z.string(), z.nullable(z.any())).optional(),
194
- venice: z.record(z.string(), z.nullable(z.any())).optional(),
195
- wafer: z.record(z.string(), z.nullable(z.any())).optional(),
196
- wandb: z.record(z.string(), z.nullable(z.any())).optional(),
197
- xai: z.record(z.string(), z.nullable(z.any())).optional(),
198
- xiaomi: z.record(z.string(), z.nullable(z.any())).optional(),
199
- zAi: z.record(z.string(), z.nullable(z.any())).optional(),
200
- }).transform((v) => {
201
- return remap$(v, {
202
- oneai: "01ai",
203
- aionLabs: "aion-labs",
204
- amazonBedrock: "amazon-bedrock",
205
- amazonNova: "amazon-nova",
206
- arceeAi: "arcee-ai",
207
- atlasCloud: "atlas-cloud",
208
- blackForestLabs: "black-forest-labs",
209
- fakeProvider: "fake-provider",
210
- googleAiStudio: "google-ai-studio",
211
- googleVertex: "google-vertex",
212
- hyperbolicQuantized: "hyperbolic-quantized",
213
- inferactVllm: "inferact-vllm",
214
- inferenceNet: "inference-net",
215
- ioNet: "io-net",
216
- lynnPrivate: "lynn-private",
217
- mancerOld: "mancer-old",
218
- nexAgi: "nex-agi",
219
- openInference: "open-inference",
220
- sambanovaCloaked: "sambanova-cloaked",
221
- sfCompute: "sf-compute",
222
- togetherLite: "together-lite",
223
- zAi: "z-ai",
224
- });
225
- });
226
- export function imageGenerationRequestOptionsToJSON(imageGenerationRequestOptions) {
227
- return JSON.stringify(ImageGenerationRequestOptions$outboundSchema.parse(imageGenerationRequestOptions));
228
- }
229
- /** @internal */
230
- export const ImageGenerationRequestProvider$outboundSchema = z.object({
231
- options: z.lazy(() => ImageGenerationRequestOptions$outboundSchema)
232
- .optional(),
233
- });
234
- export function imageGenerationRequestProviderToJSON(imageGenerationRequestProvider) {
235
- return JSON.stringify(ImageGenerationRequestProvider$outboundSchema.parse(imageGenerationRequestProvider));
236
- }
237
- /** @internal */
238
79
  export const ImageGenerationRequestQuality$outboundSchema = openEnums.outboundSchema(ImageGenerationRequestQuality);
239
80
  /** @internal */
240
81
  export const ImageGenerationRequestResolution$outboundSchema = openEnums.outboundSchema(ImageGenerationRequestResolution);
@@ -248,8 +89,7 @@ export const ImageGenerationRequest$outboundSchema = z.object({
248
89
  outputCompression: z.int().optional(),
249
90
  outputFormat: ImageGenerationRequestOutputFormat$outboundSchema.optional(),
250
91
  prompt: z.string(),
251
- provider: z.lazy(() => ImageGenerationRequestProvider$outboundSchema)
252
- .optional(),
92
+ provider: ImageGenerationProviderPreferences$outboundSchema.optional(),
253
93
  quality: ImageGenerationRequestQuality$outboundSchema.optional(),
254
94
  resolution: ImageGenerationRequestResolution$outboundSchema.optional(),
255
95
  seed: z.int().optional(),
@@ -0,0 +1,13 @@
1
+ import * as z from "zod/v4";
2
+ import { OpenEnum } from "../types/enums.js";
3
+ export declare const ImageInputModality: {
4
+ readonly Text: "text";
5
+ readonly Image: "image";
6
+ readonly File: "file";
7
+ readonly Audio: "audio";
8
+ readonly Video: "video";
9
+ };
10
+ export type ImageInputModality = OpenEnum<typeof ImageInputModality>;
11
+ /** @internal */
12
+ export declare const ImageInputModality$inboundSchema: z.ZodType<ImageInputModality, unknown>;
13
+ //# sourceMappingURL=imageinputmodality.d.ts.map
@@ -0,0 +1,15 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: cac0d1b38b9d
4
+ */
5
+ import * as openEnums from "../types/enums.js";
6
+ export const ImageInputModality = {
7
+ Text: "text",
8
+ Image: "image",
9
+ File: "file",
10
+ Audio: "audio",
11
+ Video: "video",
12
+ };
13
+ /** @internal */
14
+ export const ImageInputModality$inboundSchema = openEnums.inboundSchema(ImageInputModality);
15
+ //# sourceMappingURL=imageinputmodality.js.map
@@ -1,13 +1,13 @@
1
1
  import * as z from "zod/v4";
2
2
  import { Result as SafeParseResult } from "../types/fp.js";
3
3
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
+ import { ImageInputModality } from "./imageinputmodality.js";
4
5
  import { ImageOutputModality } from "./imageoutputmodality.js";
5
- import { InputModality } from "./inputmodality.js";
6
6
  export type ImageModelArchitecture = {
7
7
  /**
8
8
  * Supported input modalities
9
9
  */
10
- inputModalities: Array<InputModality>;
10
+ inputModalities: Array<ImageInputModality>;
11
11
  /**
12
12
  * Supported output modalities
13
13
  */
@@ -5,11 +5,11 @@
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../lib/primitives.js";
7
7
  import { safeParse } from "../lib/schemas.js";
8
+ import { ImageInputModality$inboundSchema, } from "./imageinputmodality.js";
8
9
  import { ImageOutputModality$inboundSchema, } from "./imageoutputmodality.js";
9
- import { InputModality$inboundSchema } from "./inputmodality.js";
10
10
  /** @internal */
11
11
  export const ImageModelArchitecture$inboundSchema = z.object({
12
- input_modalities: z.array(InputModality$inboundSchema),
12
+ input_modalities: z.array(ImageInputModality$inboundSchema),
13
13
  output_modalities: z.array(ImageOutputModality$inboundSchema),
14
14
  }).transform((v) => {
15
15
  return remap$(v, {
@@ -17,8 +17,8 @@ export * from "./anthropiccachecontrolttl.js";
17
17
  export * from "./anthropiccitationcharlocationparam.js";
18
18
  export * from "./anthropiccitationcontentblocklocationparam.js";
19
19
  export * from "./anthropiccitationpagelocationparam.js";
20
- export * from "./anthropiccitationsearchresultlocation.js";
21
- export * from "./anthropiccitationwebsearchresultlocation.js";
20
+ export * from "./anthropiccitationsearchresultlocationparam.js";
21
+ export * from "./anthropiccitationwebsearchresultlocationparam.js";
22
22
  export * from "./anthropiccompactionusageiteration.js";
23
23
  export * from "./anthropicdocumentblockparam.js";
24
24
  export * from "./anthropicfiledocumentsource.js";
@@ -99,6 +99,7 @@ export * from "./chatdebugoptions.js";
99
99
  export * from "./chatdevelopermessage.js";
100
100
  export * from "./chatfinishreasonenum.js";
101
101
  export * from "./chatformatgrammarconfig.js";
102
+ export * from "./chatformatjsonobjectconfig.js";
102
103
  export * from "./chatformatjsonschemaconfig.js";
103
104
  export * from "./chatformatpythonconfig.js";
104
105
  export * from "./chatformattextconfig.js";
@@ -234,6 +235,7 @@ export * from "./imagegencallgeneratingevent.js";
234
235
  export * from "./imagegencallinprogressevent.js";
235
236
  export * from "./imagegencallpartialimageevent.js";
236
237
  export * from "./imagegencompletedevent.js";
238
+ export * from "./imagegenerationproviderpreferences.js";
237
239
  export * from "./imagegenerationrequest.js";
238
240
  export * from "./imagegenerationresponse.js";
239
241
  export * from "./imagegenerationservertool.js";
@@ -245,6 +247,7 @@ export * from "./imagegenerationusage.js";
245
247
  export * from "./imagegenpartialimageevent.js";
246
248
  export * from "./imagegenstreamerrorevent.js";
247
249
  export * from "./imagegentextchunkevent.js";
250
+ export * from "./imageinputmodality.js";
248
251
  export * from "./imagemodelarchitecture.js";
249
252
  export * from "./imagemodelendpointsresponse.js";
250
253
  export * from "./imagemodellistitem.js";
@@ -267,6 +270,7 @@ export * from "./internalserverresponseerrordata.js";
267
270
  export * from "./itemreferenceitem.js";
268
271
  export * from "./keyassignment.js";
269
272
  export * from "./legacychatcontentvideo.js";
273
+ export * from "./legacychatcontentvideoinput.js";
270
274
  export * from "./legacywebsearchservertool.js";
271
275
  export * from "./listbyokkeysresponse.js";
272
276
  export * from "./listendpointsresponse.js";
@@ -292,6 +296,7 @@ export * from "./messagesfallbackparam.js";
292
296
  export * from "./messagesmessageparam.js";
293
297
  export * from "./messagesoutputconfig.js";
294
298
  export * from "./messagesrequest.js";
299
+ export * from "./messagessearchmodelsservertool.js";
295
300
  export * from "./metadatalevel.js";
296
301
  export * from "./model.js";
297
302
  export * from "./modelarchitecture.js";
@@ -310,7 +315,9 @@ export * from "./observabilitybraintrustdestination.js";
310
315
  export * from "./observabilityclickhousedestination.js";
311
316
  export * from "./observabilitydatadogdestination.js";
312
317
  export * from "./observabilitydestination.js";
318
+ export * from "./observabilityfilterrulegroup.js";
313
319
  export * from "./observabilityfilterrulesconfig.js";
320
+ export * from "./observabilityfilterrulesconfignullable.js";
314
321
  export * from "./observabilitygrafanadestination.js";
315
322
  export * from "./observabilitylangfusedestination.js";
316
323
  export * from "./observabilitylangsmithdestination.js";
@@ -446,6 +453,7 @@ export * from "./routerparams.js";
446
453
  export * from "./routingstrategy.js";
447
454
  export * from "./searchcontextsizeenum.js";
448
455
  export * from "./searchmodelsservertoolconfig.js";
456
+ export * from "./searchmodelsservertoolopenrouter.js";
449
457
  export * from "./searchqualitylevel.js";
450
458
  export * from "./security.js";
451
459
  export * from "./serviceunavailableresponseerrordata.js";
@@ -21,8 +21,8 @@ export * from "./anthropiccachecontrolttl.js";
21
21
  export * from "./anthropiccitationcharlocationparam.js";
22
22
  export * from "./anthropiccitationcontentblocklocationparam.js";
23
23
  export * from "./anthropiccitationpagelocationparam.js";
24
- export * from "./anthropiccitationsearchresultlocation.js";
25
- export * from "./anthropiccitationwebsearchresultlocation.js";
24
+ export * from "./anthropiccitationsearchresultlocationparam.js";
25
+ export * from "./anthropiccitationwebsearchresultlocationparam.js";
26
26
  export * from "./anthropiccompactionusageiteration.js";
27
27
  export * from "./anthropicdocumentblockparam.js";
28
28
  export * from "./anthropicfiledocumentsource.js";
@@ -103,6 +103,7 @@ export * from "./chatdebugoptions.js";
103
103
  export * from "./chatdevelopermessage.js";
104
104
  export * from "./chatfinishreasonenum.js";
105
105
  export * from "./chatformatgrammarconfig.js";
106
+ export * from "./chatformatjsonobjectconfig.js";
106
107
  export * from "./chatformatjsonschemaconfig.js";
107
108
  export * from "./chatformatpythonconfig.js";
108
109
  export * from "./chatformattextconfig.js";
@@ -238,6 +239,7 @@ export * from "./imagegencallgeneratingevent.js";
238
239
  export * from "./imagegencallinprogressevent.js";
239
240
  export * from "./imagegencallpartialimageevent.js";
240
241
  export * from "./imagegencompletedevent.js";
242
+ export * from "./imagegenerationproviderpreferences.js";
241
243
  export * from "./imagegenerationrequest.js";
242
244
  export * from "./imagegenerationresponse.js";
243
245
  export * from "./imagegenerationservertool.js";
@@ -249,6 +251,7 @@ export * from "./imagegenerationusage.js";
249
251
  export * from "./imagegenpartialimageevent.js";
250
252
  export * from "./imagegenstreamerrorevent.js";
251
253
  export * from "./imagegentextchunkevent.js";
254
+ export * from "./imageinputmodality.js";
252
255
  export * from "./imagemodelarchitecture.js";
253
256
  export * from "./imagemodelendpointsresponse.js";
254
257
  export * from "./imagemodellistitem.js";
@@ -271,6 +274,7 @@ export * from "./internalserverresponseerrordata.js";
271
274
  export * from "./itemreferenceitem.js";
272
275
  export * from "./keyassignment.js";
273
276
  export * from "./legacychatcontentvideo.js";
277
+ export * from "./legacychatcontentvideoinput.js";
274
278
  export * from "./legacywebsearchservertool.js";
275
279
  export * from "./listbyokkeysresponse.js";
276
280
  export * from "./listendpointsresponse.js";
@@ -296,6 +300,7 @@ export * from "./messagesfallbackparam.js";
296
300
  export * from "./messagesmessageparam.js";
297
301
  export * from "./messagesoutputconfig.js";
298
302
  export * from "./messagesrequest.js";
303
+ export * from "./messagessearchmodelsservertool.js";
299
304
  export * from "./metadatalevel.js";
300
305
  export * from "./model.js";
301
306
  export * from "./modelarchitecture.js";
@@ -314,7 +319,9 @@ export * from "./observabilitybraintrustdestination.js";
314
319
  export * from "./observabilityclickhousedestination.js";
315
320
  export * from "./observabilitydatadogdestination.js";
316
321
  export * from "./observabilitydestination.js";
322
+ export * from "./observabilityfilterrulegroup.js";
317
323
  export * from "./observabilityfilterrulesconfig.js";
324
+ export * from "./observabilityfilterrulesconfignullable.js";
318
325
  export * from "./observabilitygrafanadestination.js";
319
326
  export * from "./observabilitylangfusedestination.js";
320
327
  export * from "./observabilitylangsmithdestination.js";
@@ -450,6 +457,7 @@ export * from "./routerparams.js";
450
457
  export * from "./routingstrategy.js";
451
458
  export * from "./searchcontextsizeenum.js";
452
459
  export * from "./searchmodelsservertoolconfig.js";
460
+ export * from "./searchmodelsservertoolopenrouter.js";
453
461
  export * from "./searchqualitylevel.js";
454
462
  export * from "./security.js";
455
463
  export * from "./serviceunavailableresponseerrordata.js";
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v4";
2
2
  import { Result as SafeParseResult } from "../types/fp.js";
3
- import { ChatContentVideoInput, ChatContentVideoInput$Outbound } from "./chatcontentvideoinput.js";
4
3
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
+ import { LegacyChatContentVideoInput, LegacyChatContentVideoInput$Outbound } from "./legacychatcontentvideoinput.js";
5
5
  /**
6
6
  * Video input content part (legacy format - deprecated)
7
7
  *
@@ -12,14 +12,14 @@ export type LegacyChatContentVideo = {
12
12
  /**
13
13
  * Video input object
14
14
  */
15
- videoUrl: ChatContentVideoInput;
15
+ videoUrl: LegacyChatContentVideoInput;
16
16
  };
17
17
  /** @internal */
18
18
  export declare const LegacyChatContentVideo$inboundSchema: z.ZodType<LegacyChatContentVideo, unknown>;
19
19
  /** @internal */
20
20
  export type LegacyChatContentVideo$Outbound = {
21
21
  type: "input_video";
22
- video_url: ChatContentVideoInput$Outbound;
22
+ video_url: LegacyChatContentVideoInput$Outbound;
23
23
  };
24
24
  /** @internal */
25
25
  export declare const LegacyChatContentVideo$outboundSchema: z.ZodType<LegacyChatContentVideo$Outbound, LegacyChatContentVideo>;
@@ -5,11 +5,11 @@
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../lib/primitives.js";
7
7
  import { safeParse } from "../lib/schemas.js";
8
- import { ChatContentVideoInput$inboundSchema, ChatContentVideoInput$outboundSchema, } from "./chatcontentvideoinput.js";
8
+ import { LegacyChatContentVideoInput$inboundSchema, LegacyChatContentVideoInput$outboundSchema, } from "./legacychatcontentvideoinput.js";
9
9
  /** @internal */
10
10
  export const LegacyChatContentVideo$inboundSchema = z.object({
11
11
  type: z.literal("input_video"),
12
- video_url: ChatContentVideoInput$inboundSchema,
12
+ video_url: LegacyChatContentVideoInput$inboundSchema,
13
13
  }).transform((v) => {
14
14
  return remap$(v, {
15
15
  "video_url": "videoUrl",
@@ -18,7 +18,7 @@ export const LegacyChatContentVideo$inboundSchema = z.object({
18
18
  /** @internal */
19
19
  export const LegacyChatContentVideo$outboundSchema = z.object({
20
20
  type: z.literal("input_video"),
21
- videoUrl: ChatContentVideoInput$outboundSchema,
21
+ videoUrl: LegacyChatContentVideoInput$outboundSchema,
22
22
  }).transform((v) => {
23
23
  return remap$(v, {
24
24
  videoUrl: "video_url",
@@ -0,0 +1,23 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
+ /**
5
+ * Video input object
6
+ */
7
+ export type LegacyChatContentVideoInput = {
8
+ /**
9
+ * URL of the video (data: URLs supported)
10
+ */
11
+ url: string;
12
+ };
13
+ /** @internal */
14
+ export declare const LegacyChatContentVideoInput$inboundSchema: z.ZodType<LegacyChatContentVideoInput, unknown>;
15
+ /** @internal */
16
+ export type LegacyChatContentVideoInput$Outbound = {
17
+ url: string;
18
+ };
19
+ /** @internal */
20
+ export declare const LegacyChatContentVideoInput$outboundSchema: z.ZodType<LegacyChatContentVideoInput$Outbound, LegacyChatContentVideoInput>;
21
+ export declare function legacyChatContentVideoInputToJSON(legacyChatContentVideoInput: LegacyChatContentVideoInput): string;
22
+ export declare function legacyChatContentVideoInputFromJSON(jsonString: string): SafeParseResult<LegacyChatContentVideoInput, SDKValidationError>;
23
+ //# sourceMappingURL=legacychatcontentvideoinput.d.ts.map
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 4070b34e4fde
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ /** @internal */
8
+ export const LegacyChatContentVideoInput$inboundSchema = z.object({
9
+ url: z.string(),
10
+ });
11
+ /** @internal */
12
+ export const LegacyChatContentVideoInput$outboundSchema = z.object({
13
+ url: z.string(),
14
+ });
15
+ export function legacyChatContentVideoInputToJSON(legacyChatContentVideoInput) {
16
+ return JSON.stringify(LegacyChatContentVideoInput$outboundSchema.parse(legacyChatContentVideoInput));
17
+ }
18
+ export function legacyChatContentVideoInputFromJSON(jsonString) {
19
+ return safeParse(jsonString, (x) => LegacyChatContentVideoInput$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LegacyChatContentVideoInput' from JSON`);
20
+ }
21
+ //# sourceMappingURL=legacychatcontentvideoinput.js.map
@@ -13,7 +13,6 @@ import { AnthropicToolUsesTrigger, AnthropicToolUsesTrigger$Outbound } from "./a
13
13
  import { AnthropicWebSearchToolUserLocation, AnthropicWebSearchToolUserLocation$Outbound } from "./anthropicwebsearchtooluserlocation.js";
14
14
  import { AutoRouterPlugin, AutoRouterPlugin$Outbound } from "./autorouterplugin.js";
15
15
  import { BashServerTool, BashServerTool$Outbound } from "./bashservertool.js";
16
- import { ChatSearchModelsServerTool, ChatSearchModelsServerTool$Outbound } from "./chatsearchmodelsservertool.js";
17
16
  import { ContextCompressionPlugin, ContextCompressionPlugin$Outbound } from "./contextcompressionplugin.js";
18
17
  import { DatetimeServerTool, DatetimeServerTool$Outbound } from "./datetimeservertool.js";
19
18
  import { FileParserPlugin, FileParserPlugin$Outbound } from "./fileparserplugin.js";
@@ -22,6 +21,7 @@ import { ImageGenerationServerToolOpenRouter, ImageGenerationServerToolOpenRoute
22
21
  import { MessagesFallbackParam, MessagesFallbackParam$Outbound } from "./messagesfallbackparam.js";
23
22
  import { MessagesMessageParam, MessagesMessageParam$Outbound } from "./messagesmessageparam.js";
24
23
  import { MessagesOutputConfig, MessagesOutputConfig$Outbound } from "./messagesoutputconfig.js";
24
+ import { MessagesSearchModelsServerTool, MessagesSearchModelsServerTool$Outbound } from "./messagessearchmodelsservertool.js";
25
25
  import { ModerationPlugin, ModerationPlugin$Outbound } from "./moderationplugin.js";
26
26
  import { OpenRouterWebSearchServerTool, OpenRouterWebSearchServerTool$Outbound } from "./openrouterwebsearchservertool.js";
27
27
  import { ParetoRouterPlugin, ParetoRouterPlugin$Outbound } from "./paretorouterplugin.js";
@@ -255,7 +255,7 @@ export type ToolCustom = {
255
255
  name: string;
256
256
  type?: ToolTypeCustom | undefined;
257
257
  };
258
- export type MessagesRequestToolUnion = ToolAdvisor20260301 | ToolCustom | ToolBash20250124 | ToolTextEditor20250124 | ToolWebSearch20250305 | ToolWebSearch20260209 | BashServerTool | DatetimeServerTool | ImageGenerationServerToolOpenRouter | ChatSearchModelsServerTool | WebFetchServerTool | OpenRouterWebSearchServerTool | MessagesRequestTool;
258
+ export type MessagesRequestToolUnion = ToolAdvisor20260301 | ToolCustom | ToolBash20250124 | ToolTextEditor20250124 | ToolWebSearch20250305 | ToolWebSearch20260209 | BashServerTool | DatetimeServerTool | ImageGenerationServerToolOpenRouter | MessagesSearchModelsServerTool | WebFetchServerTool | OpenRouterWebSearchServerTool | MessagesRequestTool;
259
259
  /**
260
260
  * Request schema for Anthropic Messages API endpoint
261
261
  */
@@ -302,7 +302,7 @@ export type MessagesRequest = {
302
302
  temperature?: number | undefined;
303
303
  thinking?: ThinkingEnabled | ThinkingDisabled | ThinkingAdaptive | undefined;
304
304
  toolChoice?: ToolChoiceAuto | ToolChoiceAny | ToolChoiceNone | ToolChoiceTool | undefined;
305
- tools?: Array<ToolAdvisor20260301 | ToolCustom | ToolBash20250124 | ToolTextEditor20250124 | ToolWebSearch20250305 | ToolWebSearch20260209 | BashServerTool | DatetimeServerTool | ImageGenerationServerToolOpenRouter | ChatSearchModelsServerTool | WebFetchServerTool | OpenRouterWebSearchServerTool | MessagesRequestTool> | undefined;
305
+ tools?: Array<ToolAdvisor20260301 | ToolCustom | ToolBash20250124 | ToolTextEditor20250124 | ToolWebSearch20250305 | ToolWebSearch20260209 | BashServerTool | DatetimeServerTool | ImageGenerationServerToolOpenRouter | MessagesSearchModelsServerTool | WebFetchServerTool | OpenRouterWebSearchServerTool | MessagesRequestTool> | undefined;
306
306
  topK?: number | undefined;
307
307
  topP?: number | undefined;
308
308
  /**
@@ -598,7 +598,7 @@ export type ToolCustom$Outbound = {
598
598
  export declare const ToolCustom$outboundSchema: z.ZodType<ToolCustom$Outbound, ToolCustom>;
599
599
  export declare function toolCustomToJSON(toolCustom: ToolCustom): string;
600
600
  /** @internal */
601
- export type MessagesRequestToolUnion$Outbound = ToolAdvisor20260301$Outbound | ToolCustom$Outbound | ToolBash20250124$Outbound | ToolTextEditor20250124$Outbound | ToolWebSearch20250305$Outbound | ToolWebSearch20260209$Outbound | BashServerTool$Outbound | DatetimeServerTool$Outbound | ImageGenerationServerToolOpenRouter$Outbound | ChatSearchModelsServerTool$Outbound | WebFetchServerTool$Outbound | OpenRouterWebSearchServerTool$Outbound | MessagesRequestTool$Outbound;
601
+ export type MessagesRequestToolUnion$Outbound = ToolAdvisor20260301$Outbound | ToolCustom$Outbound | ToolBash20250124$Outbound | ToolTextEditor20250124$Outbound | ToolWebSearch20250305$Outbound | ToolWebSearch20260209$Outbound | BashServerTool$Outbound | DatetimeServerTool$Outbound | ImageGenerationServerToolOpenRouter$Outbound | MessagesSearchModelsServerTool$Outbound | WebFetchServerTool$Outbound | OpenRouterWebSearchServerTool$Outbound | MessagesRequestTool$Outbound;
602
602
  /** @internal */
603
603
  export declare const MessagesRequestToolUnion$outboundSchema: z.ZodType<MessagesRequestToolUnion$Outbound, MessagesRequestToolUnion>;
604
604
  export declare function messagesRequestToolUnionToJSON(messagesRequestToolUnion: MessagesRequestToolUnion): string;
@@ -625,7 +625,7 @@ export type MessagesRequest$Outbound = {
625
625
  temperature?: number | undefined;
626
626
  thinking?: ThinkingEnabled$Outbound | ThinkingDisabled$Outbound | ThinkingAdaptive$Outbound | undefined;
627
627
  tool_choice?: ToolChoiceAuto$Outbound | ToolChoiceAny$Outbound | ToolChoiceNone$Outbound | ToolChoiceTool$Outbound | undefined;
628
- tools?: Array<ToolAdvisor20260301$Outbound | ToolCustom$Outbound | ToolBash20250124$Outbound | ToolTextEditor20250124$Outbound | ToolWebSearch20250305$Outbound | ToolWebSearch20260209$Outbound | BashServerTool$Outbound | DatetimeServerTool$Outbound | ImageGenerationServerToolOpenRouter$Outbound | ChatSearchModelsServerTool$Outbound | WebFetchServerTool$Outbound | OpenRouterWebSearchServerTool$Outbound | MessagesRequestTool$Outbound> | undefined;
628
+ tools?: Array<ToolAdvisor20260301$Outbound | ToolCustom$Outbound | ToolBash20250124$Outbound | ToolTextEditor20250124$Outbound | ToolWebSearch20250305$Outbound | ToolWebSearch20260209$Outbound | BashServerTool$Outbound | DatetimeServerTool$Outbound | ImageGenerationServerToolOpenRouter$Outbound | MessagesSearchModelsServerTool$Outbound | WebFetchServerTool$Outbound | OpenRouterWebSearchServerTool$Outbound | MessagesRequestTool$Outbound> | undefined;
629
629
  top_k?: number | undefined;
630
630
  top_p?: number | undefined;
631
631
  trace?: TraceConfig$Outbound | undefined;
@@ -18,7 +18,6 @@ import { AnthropicToolUsesTrigger$outboundSchema, } from "./anthropictoolusestri
18
18
  import { AnthropicWebSearchToolUserLocation$outboundSchema, } from "./anthropicwebsearchtooluserlocation.js";
19
19
  import { AutoRouterPlugin$outboundSchema, } from "./autorouterplugin.js";
20
20
  import { BashServerTool$outboundSchema, } from "./bashservertool.js";
21
- import { ChatSearchModelsServerTool$outboundSchema, } from "./chatsearchmodelsservertool.js";
22
21
  import { ContextCompressionPlugin$outboundSchema, } from "./contextcompressionplugin.js";
23
22
  import { DatetimeServerTool$outboundSchema, } from "./datetimeservertool.js";
24
23
  import { FileParserPlugin$outboundSchema, } from "./fileparserplugin.js";
@@ -27,6 +26,7 @@ import { ImageGenerationServerToolOpenRouter$outboundSchema, } from "./imagegene
27
26
  import { MessagesFallbackParam$outboundSchema, } from "./messagesfallbackparam.js";
28
27
  import { MessagesMessageParam$outboundSchema, } from "./messagesmessageparam.js";
29
28
  import { MessagesOutputConfig$outboundSchema, } from "./messagesoutputconfig.js";
29
+ import { MessagesSearchModelsServerTool$outboundSchema, } from "./messagessearchmodelsservertool.js";
30
30
  import { ModerationPlugin$outboundSchema, } from "./moderationplugin.js";
31
31
  import { OpenRouterWebSearchServerTool$outboundSchema, } from "./openrouterwebsearchservertool.js";
32
32
  import { ParetoRouterPlugin$outboundSchema, } from "./paretorouterplugin.js";
@@ -518,7 +518,7 @@ export const MessagesRequestToolUnion$outboundSchema = z.union([
518
518
  BashServerTool$outboundSchema,
519
519
  DatetimeServerTool$outboundSchema,
520
520
  ImageGenerationServerToolOpenRouter$outboundSchema,
521
- ChatSearchModelsServerTool$outboundSchema,
521
+ MessagesSearchModelsServerTool$outboundSchema,
522
522
  WebFetchServerTool$outboundSchema,
523
523
  OpenRouterWebSearchServerTool$outboundSchema,
524
524
  z.lazy(() => MessagesRequestTool$outboundSchema),
@@ -582,7 +582,7 @@ export const MessagesRequest$outboundSchema = z.object({
582
582
  BashServerTool$outboundSchema,
583
583
  DatetimeServerTool$outboundSchema,
584
584
  ImageGenerationServerToolOpenRouter$outboundSchema,
585
- ChatSearchModelsServerTool$outboundSchema,
585
+ MessagesSearchModelsServerTool$outboundSchema,
586
586
  WebFetchServerTool$outboundSchema,
587
587
  OpenRouterWebSearchServerTool$outboundSchema,
588
588
  z.lazy(() => MessagesRequestTool$outboundSchema),
@@ -0,0 +1,28 @@
1
+ import * as z from "zod/v4";
2
+ import { ClosedEnum } from "../types/enums.js";
3
+ import { SearchModelsServerToolConfig, SearchModelsServerToolConfig$Outbound } from "./searchmodelsservertoolconfig.js";
4
+ export declare const MessagesSearchModelsServerToolType: {
5
+ readonly OpenrouterExperimentalSearchModels: "openrouter:experimental__search_models";
6
+ };
7
+ export type MessagesSearchModelsServerToolType = ClosedEnum<typeof MessagesSearchModelsServerToolType>;
8
+ /**
9
+ * OpenRouter built-in server tool: searches and filters AI models available on OpenRouter
10
+ */
11
+ export type MessagesSearchModelsServerTool = {
12
+ /**
13
+ * Configuration for the openrouter:experimental__search_models server tool
14
+ */
15
+ parameters?: SearchModelsServerToolConfig | undefined;
16
+ type: MessagesSearchModelsServerToolType;
17
+ };
18
+ /** @internal */
19
+ export declare const MessagesSearchModelsServerToolType$outboundSchema: z.ZodEnum<typeof MessagesSearchModelsServerToolType>;
20
+ /** @internal */
21
+ export type MessagesSearchModelsServerTool$Outbound = {
22
+ parameters?: SearchModelsServerToolConfig$Outbound | undefined;
23
+ type: string;
24
+ };
25
+ /** @internal */
26
+ export declare const MessagesSearchModelsServerTool$outboundSchema: z.ZodType<MessagesSearchModelsServerTool$Outbound, MessagesSearchModelsServerTool>;
27
+ export declare function messagesSearchModelsServerToolToJSON(messagesSearchModelsServerTool: MessagesSearchModelsServerTool): string;
28
+ //# sourceMappingURL=messagessearchmodelsservertool.d.ts.map
@@ -0,0 +1,20 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 5ae7644a901f
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { SearchModelsServerToolConfig$outboundSchema, } from "./searchmodelsservertoolconfig.js";
7
+ export const MessagesSearchModelsServerToolType = {
8
+ OpenrouterExperimentalSearchModels: "openrouter:experimental__search_models",
9
+ };
10
+ /** @internal */
11
+ export const MessagesSearchModelsServerToolType$outboundSchema = z.enum(MessagesSearchModelsServerToolType);
12
+ /** @internal */
13
+ export const MessagesSearchModelsServerTool$outboundSchema = z.object({
14
+ parameters: SearchModelsServerToolConfig$outboundSchema.optional(),
15
+ type: MessagesSearchModelsServerToolType$outboundSchema,
16
+ });
17
+ export function messagesSearchModelsServerToolToJSON(messagesSearchModelsServerTool) {
18
+ return JSON.stringify(MessagesSearchModelsServerTool$outboundSchema.parse(messagesSearchModelsServerTool));
19
+ }
20
+ //# sourceMappingURL=messagessearchmodelsservertool.js.map