@openrouter/sdk 0.2.9 → 0.3.1

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 (49) hide show
  1. package/esm/funcs/embeddingsGenerate.js +4 -2
  2. package/esm/lib/config.d.ts +2 -2
  3. package/esm/lib/config.js +2 -2
  4. package/esm/models/chatgenerationparams.d.ts +234 -6
  5. package/esm/models/chatgenerationparams.js +162 -5
  6. package/esm/models/chatresponsechoice.d.ts +2 -0
  7. package/esm/models/chatresponsechoice.js +3 -0
  8. package/esm/models/chatstreamingmessagechunk.d.ts +2 -0
  9. package/esm/models/chatstreamingmessagechunk.js +3 -0
  10. package/esm/models/index.d.ts +8 -0
  11. package/esm/models/index.js +8 -0
  12. package/esm/models/openairesponsesreasoningeffort.d.ts +1 -0
  13. package/esm/models/openairesponsesreasoningeffort.js +1 -0
  14. package/esm/models/openresponsesrequest.d.ts +128 -93
  15. package/esm/models/openresponsesrequest.js +82 -87
  16. package/esm/models/operations/createembeddings.d.ts +10 -129
  17. package/esm/models/operations/createembeddings.js +10 -62
  18. package/esm/models/operations/getparameters.d.ts +3 -72
  19. package/esm/models/operations/getparameters.js +3 -71
  20. package/esm/models/parameter.d.ts +1 -0
  21. package/esm/models/parameter.js +1 -0
  22. package/esm/models/pdfparserengine.d.ts +17 -0
  23. package/esm/models/pdfparserengine.js +15 -0
  24. package/esm/models/pdfparseroptions.d.ts +19 -0
  25. package/esm/models/pdfparseroptions.js +13 -0
  26. package/esm/models/providername.d.ts +3 -0
  27. package/esm/models/providername.js +3 -0
  28. package/esm/models/providerpreferences.d.ts +215 -0
  29. package/esm/models/providerpreferences.js +135 -0
  30. package/esm/models/providersort.d.ts +0 -6
  31. package/esm/models/providersort.js +0 -3
  32. package/esm/models/providersortconfig.d.ts +23 -0
  33. package/esm/models/providersortconfig.js +22 -0
  34. package/esm/models/providersortunion.d.ts +10 -0
  35. package/esm/models/providersortunion.js +12 -0
  36. package/esm/models/publicendpoint.d.ts +24 -24
  37. package/esm/models/publicendpoint.js +12 -12
  38. package/esm/models/publicpricing.d.ts +24 -24
  39. package/esm/models/publicpricing.js +12 -12
  40. package/esm/models/schema0.d.ts +83 -0
  41. package/esm/models/schema0.js +85 -0
  42. package/esm/models/schema3.d.ts +50 -0
  43. package/esm/models/schema3.js +60 -0
  44. package/esm/models/websearchengine.d.ts +16 -0
  45. package/esm/models/websearchengine.js +14 -0
  46. package/esm/types/discriminatedUnion.d.ts +25 -0
  47. package/esm/types/discriminatedUnion.js +57 -0
  48. package/jsr.json +1 -1
  49. package/package.json +1 -1
@@ -24,96 +24,16 @@ export declare const EncodingFormat: {
24
24
  readonly Base64: "base64";
25
25
  };
26
26
  export type EncodingFormat = OpenEnum<typeof EncodingFormat>;
27
- export type Order = models.ProviderName | string;
28
- export type Only = models.ProviderName | string;
29
- export type Ignore = models.ProviderName | string;
30
- /**
31
- * The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion.
32
- */
33
- export type MaxPrice = {
34
- /**
35
- * A value in string or number format that is a large number
36
- */
37
- prompt?: any | undefined;
38
- /**
39
- * A value in string or number format that is a large number
40
- */
41
- completion?: any | undefined;
42
- /**
43
- * A value in string or number format that is a large number
44
- */
45
- image?: any | undefined;
46
- /**
47
- * A value in string or number format that is a large number
48
- */
49
- audio?: any | undefined;
50
- /**
51
- * A value in string or number format that is a large number
52
- */
53
- request?: any | undefined;
54
- };
55
- export type CreateEmbeddingsProvider = {
56
- /**
57
- * Whether to allow backup providers to serve requests
58
- *
59
- * @remarks
60
- * - true: (default) when the primary provider (or your custom providers in "order") is unavailable, use the next best provider.
61
- * - false: use only the primary/custom provider, and return the upstream error if it's unavailable.
62
- */
63
- allowFallbacks?: boolean | null | undefined;
64
- /**
65
- * Whether to filter providers to only those that support the parameters you've provided. If this setting is omitted or set to false, then providers will receive only the parameters they support, and ignore the rest.
66
- */
67
- requireParameters?: boolean | null | undefined;
68
- /**
69
- * Data collection setting. If no available model provider meets the requirement, your request will return an error.
70
- *
71
- * @remarks
72
- * - allow: (default) allow providers which store user data non-transiently and may train on it
73
- *
74
- * - deny: use only providers which do not collect user data.
75
- */
76
- dataCollection?: models.DataCollection | null | undefined;
77
- /**
78
- * Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used.
79
- */
80
- zdr?: boolean | null | undefined;
81
- /**
82
- * Whether to restrict routing to only models that allow text distillation. When true, only models where the author has allowed distillation will be used.
83
- */
84
- enforceDistillableText?: boolean | null | undefined;
85
- /**
86
- * An ordered list of provider slugs. The router will attempt to use the first provider in the subset of this list that supports your requested model, and fall back to the next if it is unavailable. If no providers are available, the request will fail with an error message.
87
- */
88
- order?: Array<models.ProviderName | string> | null | undefined;
89
- /**
90
- * List of provider slugs to allow. If provided, this list is merged with your account-wide allowed provider settings for this request.
91
- */
92
- only?: Array<models.ProviderName | string> | null | undefined;
93
- /**
94
- * List of provider slugs to ignore. If provided, this list is merged with your account-wide ignored provider settings for this request.
95
- */
96
- ignore?: Array<models.ProviderName | string> | null | undefined;
97
- /**
98
- * A list of quantization levels to filter the provider by.
99
- */
100
- quantizations?: Array<models.Quantization> | null | undefined;
101
- /**
102
- * The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed.
103
- */
104
- sort?: models.ProviderSort | null | undefined;
105
- /**
106
- * The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion.
107
- */
108
- maxPrice?: MaxPrice | undefined;
109
- };
110
27
  export type CreateEmbeddingsRequest = {
111
28
  input: string | Array<string> | Array<number> | Array<Array<number>> | Array<Input>;
112
29
  model: string;
113
30
  encodingFormat?: EncodingFormat | undefined;
114
31
  dimensions?: number | undefined;
115
32
  user?: string | undefined;
116
- provider?: CreateEmbeddingsProvider | undefined;
33
+ /**
34
+ * Provider routing preferences for the request.
35
+ */
36
+ provider?: models.ProviderPreferences | undefined;
117
37
  inputType?: string | undefined;
118
38
  };
119
39
  export declare const ObjectT: {
@@ -138,13 +58,14 @@ export type Usage = {
138
58
  /**
139
59
  * Embedding response
140
60
  */
141
- export type CreateEmbeddingsResponse = {
61
+ export type CreateEmbeddingsResponseBody = {
142
62
  id?: string | undefined;
143
63
  object: ObjectT;
144
64
  data: Array<CreateEmbeddingsData>;
145
65
  model: string;
146
66
  usage?: Usage | undefined;
147
67
  };
68
+ export type CreateEmbeddingsResponse = CreateEmbeddingsResponseBody | string;
148
69
  /** @internal */
149
70
  export type ImageUrl$Outbound = {
150
71
  url: string;
@@ -188,56 +109,13 @@ export declare function inputUnionToJSON(inputUnion: InputUnion): string;
188
109
  /** @internal */
189
110
  export declare const EncodingFormat$outboundSchema: z.ZodType<string, EncodingFormat>;
190
111
  /** @internal */
191
- export type Order$Outbound = string | string;
192
- /** @internal */
193
- export declare const Order$outboundSchema: z.ZodType<Order$Outbound, Order>;
194
- export declare function orderToJSON(order: Order): string;
195
- /** @internal */
196
- export type Only$Outbound = string | string;
197
- /** @internal */
198
- export declare const Only$outboundSchema: z.ZodType<Only$Outbound, Only>;
199
- export declare function onlyToJSON(only: Only): string;
200
- /** @internal */
201
- export type Ignore$Outbound = string | string;
202
- /** @internal */
203
- export declare const Ignore$outboundSchema: z.ZodType<Ignore$Outbound, Ignore>;
204
- export declare function ignoreToJSON(ignore: Ignore): string;
205
- /** @internal */
206
- export type MaxPrice$Outbound = {
207
- prompt?: any | undefined;
208
- completion?: any | undefined;
209
- image?: any | undefined;
210
- audio?: any | undefined;
211
- request?: any | undefined;
212
- };
213
- /** @internal */
214
- export declare const MaxPrice$outboundSchema: z.ZodType<MaxPrice$Outbound, MaxPrice>;
215
- export declare function maxPriceToJSON(maxPrice: MaxPrice): string;
216
- /** @internal */
217
- export type CreateEmbeddingsProvider$Outbound = {
218
- allow_fallbacks?: boolean | null | undefined;
219
- require_parameters?: boolean | null | undefined;
220
- data_collection?: string | null | undefined;
221
- zdr?: boolean | null | undefined;
222
- enforce_distillable_text?: boolean | null | undefined;
223
- order?: Array<string | string> | null | undefined;
224
- only?: Array<string | string> | null | undefined;
225
- ignore?: Array<string | string> | null | undefined;
226
- quantizations?: Array<string> | null | undefined;
227
- sort?: string | null | undefined;
228
- max_price?: MaxPrice$Outbound | undefined;
229
- };
230
- /** @internal */
231
- export declare const CreateEmbeddingsProvider$outboundSchema: z.ZodType<CreateEmbeddingsProvider$Outbound, CreateEmbeddingsProvider>;
232
- export declare function createEmbeddingsProviderToJSON(createEmbeddingsProvider: CreateEmbeddingsProvider): string;
233
- /** @internal */
234
112
  export type CreateEmbeddingsRequest$Outbound = {
235
113
  input: string | Array<string> | Array<number> | Array<Array<number>> | Array<Input$Outbound>;
236
114
  model: string;
237
115
  encoding_format?: string | undefined;
238
116
  dimensions?: number | undefined;
239
117
  user?: string | undefined;
240
- provider?: CreateEmbeddingsProvider$Outbound | undefined;
118
+ provider?: models.ProviderPreferences$Outbound | undefined;
241
119
  input_type?: string | undefined;
242
120
  };
243
121
  /** @internal */
@@ -257,6 +135,9 @@ export declare function createEmbeddingsDataFromJSON(jsonString: string): SafePa
257
135
  export declare const Usage$inboundSchema: z.ZodType<Usage, unknown>;
258
136
  export declare function usageFromJSON(jsonString: string): SafeParseResult<Usage, SDKValidationError>;
259
137
  /** @internal */
138
+ export declare const CreateEmbeddingsResponseBody$inboundSchema: z.ZodType<CreateEmbeddingsResponseBody, unknown>;
139
+ export declare function createEmbeddingsResponseBodyFromJSON(jsonString: string): SafeParseResult<CreateEmbeddingsResponseBody, SDKValidationError>;
140
+ /** @internal */
260
141
  export declare const CreateEmbeddingsResponse$inboundSchema: z.ZodType<CreateEmbeddingsResponse, unknown>;
261
142
  export declare function createEmbeddingsResponseFromJSON(jsonString: string): SafeParseResult<CreateEmbeddingsResponse, SDKValidationError>;
262
143
  //# sourceMappingURL=createembeddings.d.ts.map
@@ -77,66 +77,6 @@ export function inputUnionToJSON(inputUnion) {
77
77
  /** @internal */
78
78
  export const EncodingFormat$outboundSchema = openEnums.outboundSchema(EncodingFormat);
79
79
  /** @internal */
80
- export const Order$outboundSchema = z.union([
81
- models.ProviderName$outboundSchema,
82
- z.string(),
83
- ]);
84
- export function orderToJSON(order) {
85
- return JSON.stringify(Order$outboundSchema.parse(order));
86
- }
87
- /** @internal */
88
- export const Only$outboundSchema = z.union([
89
- models.ProviderName$outboundSchema,
90
- z.string(),
91
- ]);
92
- export function onlyToJSON(only) {
93
- return JSON.stringify(Only$outboundSchema.parse(only));
94
- }
95
- /** @internal */
96
- export const Ignore$outboundSchema = z
97
- .union([models.ProviderName$outboundSchema, z.string()]);
98
- export function ignoreToJSON(ignore) {
99
- return JSON.stringify(Ignore$outboundSchema.parse(ignore));
100
- }
101
- /** @internal */
102
- export const MaxPrice$outboundSchema = z
103
- .object({
104
- prompt: z.any().optional(),
105
- completion: z.any().optional(),
106
- image: z.any().optional(),
107
- audio: z.any().optional(),
108
- request: z.any().optional(),
109
- });
110
- export function maxPriceToJSON(maxPrice) {
111
- return JSON.stringify(MaxPrice$outboundSchema.parse(maxPrice));
112
- }
113
- /** @internal */
114
- export const CreateEmbeddingsProvider$outboundSchema = z.object({
115
- allowFallbacks: z.nullable(z.boolean()).optional(),
116
- requireParameters: z.nullable(z.boolean()).optional(),
117
- dataCollection: z.nullable(models.DataCollection$outboundSchema).optional(),
118
- zdr: z.nullable(z.boolean()).optional(),
119
- enforceDistillableText: z.nullable(z.boolean()).optional(),
120
- order: z.nullable(z.array(z.union([models.ProviderName$outboundSchema, z.string()]))).optional(),
121
- only: z.nullable(z.array(z.union([models.ProviderName$outboundSchema, z.string()]))).optional(),
122
- ignore: z.nullable(z.array(z.union([models.ProviderName$outboundSchema, z.string()]))).optional(),
123
- quantizations: z.nullable(z.array(models.Quantization$outboundSchema))
124
- .optional(),
125
- sort: z.nullable(models.ProviderSort$outboundSchema).optional(),
126
- maxPrice: z.lazy(() => MaxPrice$outboundSchema).optional(),
127
- }).transform((v) => {
128
- return remap$(v, {
129
- allowFallbacks: "allow_fallbacks",
130
- requireParameters: "require_parameters",
131
- dataCollection: "data_collection",
132
- enforceDistillableText: "enforce_distillable_text",
133
- maxPrice: "max_price",
134
- });
135
- });
136
- export function createEmbeddingsProviderToJSON(createEmbeddingsProvider) {
137
- return JSON.stringify(CreateEmbeddingsProvider$outboundSchema.parse(createEmbeddingsProvider));
138
- }
139
- /** @internal */
140
80
  export const CreateEmbeddingsRequest$outboundSchema = z.object({
141
81
  input: z.union([
142
82
  z.string(),
@@ -149,7 +89,7 @@ export const CreateEmbeddingsRequest$outboundSchema = z.object({
149
89
  encodingFormat: EncodingFormat$outboundSchema.optional(),
150
90
  dimensions: z.int().optional(),
151
91
  user: z.string().optional(),
152
- provider: z.lazy(() => CreateEmbeddingsProvider$outboundSchema).optional(),
92
+ provider: models.ProviderPreferences$outboundSchema.optional(),
153
93
  inputType: z.string().optional(),
154
94
  }).transform((v) => {
155
95
  return remap$(v, {
@@ -196,13 +136,21 @@ export function usageFromJSON(jsonString) {
196
136
  return safeParse(jsonString, (x) => Usage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Usage' from JSON`);
197
137
  }
198
138
  /** @internal */
199
- export const CreateEmbeddingsResponse$inboundSchema = z.object({
139
+ export const CreateEmbeddingsResponseBody$inboundSchema = z.object({
200
140
  id: z.string().optional(),
201
141
  object: ObjectT$inboundSchema,
202
142
  data: z.array(z.lazy(() => CreateEmbeddingsData$inboundSchema)),
203
143
  model: z.string(),
204
144
  usage: z.lazy(() => Usage$inboundSchema).optional(),
205
145
  });
146
+ export function createEmbeddingsResponseBodyFromJSON(jsonString) {
147
+ return safeParse(jsonString, (x) => CreateEmbeddingsResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEmbeddingsResponseBody' from JSON`);
148
+ }
149
+ /** @internal */
150
+ export const CreateEmbeddingsResponse$inboundSchema = z.union([
151
+ z.lazy(() => CreateEmbeddingsResponseBody$inboundSchema),
152
+ z.string(),
153
+ ]);
206
154
  export function createEmbeddingsResponseFromJSON(jsonString) {
207
155
  return safeParse(jsonString, (x) => CreateEmbeddingsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEmbeddingsResponse' from JSON`);
208
156
  }
@@ -2,82 +2,14 @@ import * as z from "zod/v4";
2
2
  import { OpenEnum } from "../../types/enums.js";
3
3
  import { Result as SafeParseResult } from "../../types/fp.js";
4
4
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ import * as models from "../index.js";
5
6
  export type GetParametersSecurity = {
6
7
  bearer: string;
7
8
  };
8
- export declare const GetParametersProvider: {
9
- readonly Ai21: "AI21";
10
- readonly AionLabs: "AionLabs";
11
- readonly Alibaba: "Alibaba";
12
- readonly AmazonBedrock: "Amazon Bedrock";
13
- readonly AmazonNova: "Amazon Nova";
14
- readonly Anthropic: "Anthropic";
15
- readonly ArceeAI: "Arcee AI";
16
- readonly AtlasCloud: "AtlasCloud";
17
- readonly Avian: "Avian";
18
- readonly Azure: "Azure";
19
- readonly BaseTen: "BaseTen";
20
- readonly BytePlus: "BytePlus";
21
- readonly BlackForestLabs: "Black Forest Labs";
22
- readonly Cerebras: "Cerebras";
23
- readonly Chutes: "Chutes";
24
- readonly Cirrascale: "Cirrascale";
25
- readonly Clarifai: "Clarifai";
26
- readonly Cloudflare: "Cloudflare";
27
- readonly Cohere: "Cohere";
28
- readonly Crusoe: "Crusoe";
29
- readonly DeepInfra: "DeepInfra";
30
- readonly DeepSeek: "DeepSeek";
31
- readonly Featherless: "Featherless";
32
- readonly Fireworks: "Fireworks";
33
- readonly Friendli: "Friendli";
34
- readonly GMICloud: "GMICloud";
35
- readonly GoPomelo: "GoPomelo";
36
- readonly Google: "Google";
37
- readonly GoogleAIStudio: "Google AI Studio";
38
- readonly Groq: "Groq";
39
- readonly Hyperbolic: "Hyperbolic";
40
- readonly Inception: "Inception";
41
- readonly InferenceNet: "InferenceNet";
42
- readonly Infermatic: "Infermatic";
43
- readonly Inflection: "Inflection";
44
- readonly Liquid: "Liquid";
45
- readonly Mancer2: "Mancer 2";
46
- readonly Minimax: "Minimax";
47
- readonly ModelRun: "ModelRun";
48
- readonly Mistral: "Mistral";
49
- readonly Modular: "Modular";
50
- readonly MoonshotAI: "Moonshot AI";
51
- readonly Morph: "Morph";
52
- readonly NCompass: "NCompass";
53
- readonly Nebius: "Nebius";
54
- readonly NextBit: "NextBit";
55
- readonly Novita: "Novita";
56
- readonly Nvidia: "Nvidia";
57
- readonly OpenAI: "OpenAI";
58
- readonly OpenInference: "OpenInference";
59
- readonly Parasail: "Parasail";
60
- readonly Perplexity: "Perplexity";
61
- readonly Phala: "Phala";
62
- readonly Relace: "Relace";
63
- readonly SambaNova: "SambaNova";
64
- readonly SiliconFlow: "SiliconFlow";
65
- readonly Stealth: "Stealth";
66
- readonly StreamLake: "StreamLake";
67
- readonly Switchpoint: "Switchpoint";
68
- readonly Targon: "Targon";
69
- readonly Together: "Together";
70
- readonly Venice: "Venice";
71
- readonly WandB: "WandB";
72
- readonly XAI: "xAI";
73
- readonly ZAi: "Z.AI";
74
- readonly FakeProvider: "FakeProvider";
75
- };
76
- export type GetParametersProvider = OpenEnum<typeof GetParametersProvider>;
77
9
  export type GetParametersRequest = {
78
10
  author: string;
79
11
  slug: string;
80
- provider?: GetParametersProvider | undefined;
12
+ provider?: models.ProviderName | undefined;
81
13
  };
82
14
  export declare const SupportedParameter: {
83
15
  readonly Temperature: "temperature";
@@ -101,6 +33,7 @@ export declare const SupportedParameter: {
101
33
  readonly ParallelToolCalls: "parallel_tool_calls";
102
34
  readonly IncludeReasoning: "include_reasoning";
103
35
  readonly Reasoning: "reasoning";
36
+ readonly ReasoningEffort: "reasoning_effort";
104
37
  readonly WebSearchOptions: "web_search_options";
105
38
  readonly Verbosity: "verbosity";
106
39
  };
@@ -135,8 +68,6 @@ export type GetParametersSecurity$Outbound = {
135
68
  export declare const GetParametersSecurity$outboundSchema: z.ZodType<GetParametersSecurity$Outbound, GetParametersSecurity>;
136
69
  export declare function getParametersSecurityToJSON(getParametersSecurity: GetParametersSecurity): string;
137
70
  /** @internal */
138
- export declare const GetParametersProvider$outboundSchema: z.ZodType<string, GetParametersProvider>;
139
- /** @internal */
140
71
  export type GetParametersRequest$Outbound = {
141
72
  author: string;
142
73
  slug: string;
@@ -5,74 +5,7 @@ import * as z from "zod/v4";
5
5
  import { remap as remap$ } from "../../lib/primitives.js";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import * as openEnums from "../../types/enums.js";
8
- export const GetParametersProvider = {
9
- Ai21: "AI21",
10
- AionLabs: "AionLabs",
11
- Alibaba: "Alibaba",
12
- AmazonBedrock: "Amazon Bedrock",
13
- AmazonNova: "Amazon Nova",
14
- Anthropic: "Anthropic",
15
- ArceeAI: "Arcee AI",
16
- AtlasCloud: "AtlasCloud",
17
- Avian: "Avian",
18
- Azure: "Azure",
19
- BaseTen: "BaseTen",
20
- BytePlus: "BytePlus",
21
- BlackForestLabs: "Black Forest Labs",
22
- Cerebras: "Cerebras",
23
- Chutes: "Chutes",
24
- Cirrascale: "Cirrascale",
25
- Clarifai: "Clarifai",
26
- Cloudflare: "Cloudflare",
27
- Cohere: "Cohere",
28
- Crusoe: "Crusoe",
29
- DeepInfra: "DeepInfra",
30
- DeepSeek: "DeepSeek",
31
- Featherless: "Featherless",
32
- Fireworks: "Fireworks",
33
- Friendli: "Friendli",
34
- GMICloud: "GMICloud",
35
- GoPomelo: "GoPomelo",
36
- Google: "Google",
37
- GoogleAIStudio: "Google AI Studio",
38
- Groq: "Groq",
39
- Hyperbolic: "Hyperbolic",
40
- Inception: "Inception",
41
- InferenceNet: "InferenceNet",
42
- Infermatic: "Infermatic",
43
- Inflection: "Inflection",
44
- Liquid: "Liquid",
45
- Mancer2: "Mancer 2",
46
- Minimax: "Minimax",
47
- ModelRun: "ModelRun",
48
- Mistral: "Mistral",
49
- Modular: "Modular",
50
- MoonshotAI: "Moonshot AI",
51
- Morph: "Morph",
52
- NCompass: "NCompass",
53
- Nebius: "Nebius",
54
- NextBit: "NextBit",
55
- Novita: "Novita",
56
- Nvidia: "Nvidia",
57
- OpenAI: "OpenAI",
58
- OpenInference: "OpenInference",
59
- Parasail: "Parasail",
60
- Perplexity: "Perplexity",
61
- Phala: "Phala",
62
- Relace: "Relace",
63
- SambaNova: "SambaNova",
64
- SiliconFlow: "SiliconFlow",
65
- Stealth: "Stealth",
66
- StreamLake: "StreamLake",
67
- Switchpoint: "Switchpoint",
68
- Targon: "Targon",
69
- Together: "Together",
70
- Venice: "Venice",
71
- WandB: "WandB",
72
- XAI: "xAI",
73
- ZAi: "Z.AI",
74
- FakeProvider: "FakeProvider",
75
- };
8
+ import * as models from "../index.js";
76
9
  export const SupportedParameter = {
77
10
  Temperature: "temperature",
78
11
  TopP: "top_p",
@@ -95,6 +28,7 @@ export const SupportedParameter = {
95
28
  ParallelToolCalls: "parallel_tool_calls",
96
29
  IncludeReasoning: "include_reasoning",
97
30
  Reasoning: "reasoning",
31
+ ReasoningEffort: "reasoning_effort",
98
32
  WebSearchOptions: "web_search_options",
99
33
  Verbosity: "verbosity",
100
34
  };
@@ -106,12 +40,10 @@ export function getParametersSecurityToJSON(getParametersSecurity) {
106
40
  return JSON.stringify(GetParametersSecurity$outboundSchema.parse(getParametersSecurity));
107
41
  }
108
42
  /** @internal */
109
- export const GetParametersProvider$outboundSchema = openEnums.outboundSchema(GetParametersProvider);
110
- /** @internal */
111
43
  export const GetParametersRequest$outboundSchema = z.object({
112
44
  author: z.string(),
113
45
  slug: z.string(),
114
- provider: GetParametersProvider$outboundSchema.optional(),
46
+ provider: models.ProviderName$outboundSchema.optional(),
115
47
  });
116
48
  export function getParametersRequestToJSON(getParametersRequest) {
117
49
  return JSON.stringify(GetParametersRequest$outboundSchema.parse(getParametersRequest));
@@ -22,6 +22,7 @@ export declare const Parameter: {
22
22
  readonly ParallelToolCalls: "parallel_tool_calls";
23
23
  readonly IncludeReasoning: "include_reasoning";
24
24
  readonly Reasoning: "reasoning";
25
+ readonly ReasoningEffort: "reasoning_effort";
25
26
  readonly WebSearchOptions: "web_search_options";
26
27
  readonly Verbosity: "verbosity";
27
28
  };
@@ -24,6 +24,7 @@ export const Parameter = {
24
24
  ParallelToolCalls: "parallel_tool_calls",
25
25
  IncludeReasoning: "include_reasoning",
26
26
  Reasoning: "reasoning",
27
+ ReasoningEffort: "reasoning_effort",
27
28
  WebSearchOptions: "web_search_options",
28
29
  Verbosity: "verbosity",
29
30
  };
@@ -0,0 +1,17 @@
1
+ import * as z from "zod/v4";
2
+ import { OpenEnum } from "../types/enums.js";
3
+ /**
4
+ * The engine to use for parsing PDF files.
5
+ */
6
+ export declare const PDFParserEngine: {
7
+ readonly MistralOcr: "mistral-ocr";
8
+ readonly PdfText: "pdf-text";
9
+ readonly Native: "native";
10
+ };
11
+ /**
12
+ * The engine to use for parsing PDF files.
13
+ */
14
+ export type PDFParserEngine = OpenEnum<typeof PDFParserEngine>;
15
+ /** @internal */
16
+ export declare const PDFParserEngine$outboundSchema: z.ZodType<string, PDFParserEngine>;
17
+ //# sourceMappingURL=pdfparserengine.d.ts.map
@@ -0,0 +1,15 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as openEnums from "../types/enums.js";
5
+ /**
6
+ * The engine to use for parsing PDF files.
7
+ */
8
+ export const PDFParserEngine = {
9
+ MistralOcr: "mistral-ocr",
10
+ PdfText: "pdf-text",
11
+ Native: "native",
12
+ };
13
+ /** @internal */
14
+ export const PDFParserEngine$outboundSchema = openEnums.outboundSchema(PDFParserEngine);
15
+ //# sourceMappingURL=pdfparserengine.js.map
@@ -0,0 +1,19 @@
1
+ import * as z from "zod/v4";
2
+ import { PDFParserEngine } from "./pdfparserengine.js";
3
+ /**
4
+ * Options for PDF parsing.
5
+ */
6
+ export type PDFParserOptions = {
7
+ /**
8
+ * The engine to use for parsing PDF files.
9
+ */
10
+ engine?: PDFParserEngine | undefined;
11
+ };
12
+ /** @internal */
13
+ export type PDFParserOptions$Outbound = {
14
+ engine?: string | undefined;
15
+ };
16
+ /** @internal */
17
+ export declare const PDFParserOptions$outboundSchema: z.ZodType<PDFParserOptions$Outbound, PDFParserOptions>;
18
+ export declare function pdfParserOptionsToJSON(pdfParserOptions: PDFParserOptions): string;
19
+ //# sourceMappingURL=pdfparseroptions.d.ts.map
@@ -0,0 +1,13 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4";
5
+ import { PDFParserEngine$outboundSchema, } from "./pdfparserengine.js";
6
+ /** @internal */
7
+ export const PDFParserOptions$outboundSchema = z.object({
8
+ engine: PDFParserEngine$outboundSchema.optional(),
9
+ });
10
+ export function pdfParserOptionsToJSON(pdfParserOptions) {
11
+ return JSON.stringify(PDFParserOptions$outboundSchema.parse(pdfParserOptions));
12
+ }
13
+ //# sourceMappingURL=pdfparseroptions.js.map
@@ -37,6 +37,7 @@ export declare const ProviderName: {
37
37
  readonly Infermatic: "Infermatic";
38
38
  readonly Inflection: "Inflection";
39
39
  readonly Liquid: "Liquid";
40
+ readonly Mara: "Mara";
40
41
  readonly Mancer2: "Mancer 2";
41
42
  readonly Minimax: "Minimax";
42
43
  readonly ModelRun: "ModelRun";
@@ -57,6 +58,7 @@ export declare const ProviderName: {
57
58
  readonly Relace: "Relace";
58
59
  readonly SambaNova: "SambaNova";
59
60
  readonly SiliconFlow: "SiliconFlow";
61
+ readonly Sourceful: "Sourceful";
60
62
  readonly Stealth: "Stealth";
61
63
  readonly StreamLake: "StreamLake";
62
64
  readonly Switchpoint: "Switchpoint";
@@ -64,6 +66,7 @@ export declare const ProviderName: {
64
66
  readonly Together: "Together";
65
67
  readonly Venice: "Venice";
66
68
  readonly WandB: "WandB";
69
+ readonly Xiaomi: "Xiaomi";
67
70
  readonly XAI: "xAI";
68
71
  readonly ZAi: "Z.AI";
69
72
  readonly FakeProvider: "FakeProvider";
@@ -39,6 +39,7 @@ export const ProviderName = {
39
39
  Infermatic: "Infermatic",
40
40
  Inflection: "Inflection",
41
41
  Liquid: "Liquid",
42
+ Mara: "Mara",
42
43
  Mancer2: "Mancer 2",
43
44
  Minimax: "Minimax",
44
45
  ModelRun: "ModelRun",
@@ -59,6 +60,7 @@ export const ProviderName = {
59
60
  Relace: "Relace",
60
61
  SambaNova: "SambaNova",
61
62
  SiliconFlow: "SiliconFlow",
63
+ Sourceful: "Sourceful",
62
64
  Stealth: "Stealth",
63
65
  StreamLake: "StreamLake",
64
66
  Switchpoint: "Switchpoint",
@@ -66,6 +68,7 @@ export const ProviderName = {
66
68
  Together: "Together",
67
69
  Venice: "Venice",
68
70
  WandB: "WandB",
71
+ Xiaomi: "Xiaomi",
69
72
  XAI: "xAI",
70
73
  ZAi: "Z.AI",
71
74
  FakeProvider: "FakeProvider",