@openrouter/sdk 0.1.11 → 0.1.13

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 (45) hide show
  1. package/esm/lib/config.d.ts +3 -3
  2. package/esm/lib/config.js +3 -3
  3. package/esm/models/chatgenerationparams.d.ts +1 -0
  4. package/esm/models/chatgenerationparams.js +1 -0
  5. package/esm/models/chatmessagecontentitem.d.ts +4 -0
  6. package/esm/models/chatmessagecontentitem.js +2 -0
  7. package/esm/models/chatmessagecontentitemvideo.d.ts +48 -11
  8. package/esm/models/chatmessagecontentitemvideo.js +64 -11
  9. package/esm/models/chatresponsechoice.d.ts +21 -1
  10. package/esm/models/chatresponsechoice.js +25 -1
  11. package/esm/models/chatstreamingresponsechunk.d.ts +1 -1
  12. package/esm/models/chatstreamingresponsechunk.js +1 -1
  13. package/esm/models/datacollection.d.ts +26 -0
  14. package/esm/models/datacollection.js +19 -0
  15. package/esm/models/index.d.ts +2 -2
  16. package/esm/models/index.js +2 -2
  17. package/esm/models/openairesponsesreasoningeffort.d.ts +1 -0
  18. package/esm/models/openairesponsesreasoningeffort.js +1 -0
  19. package/esm/models/openresponsesreasoning.d.ts +1 -0
  20. package/esm/models/openresponsesreasoning.js +1 -0
  21. package/esm/models/openresponsesrequest.d.ts +4 -36
  22. package/esm/models/openresponsesrequest.js +3 -25
  23. package/esm/models/operations/createembeddings.d.ts +82 -61
  24. package/esm/models/operations/createembeddings.js +71 -47
  25. package/esm/models/operations/createkeys.js +1 -1
  26. package/esm/models/operations/getcurrentkey.js +1 -1
  27. package/esm/models/operations/getkey.js +1 -1
  28. package/esm/models/operations/getparameters.d.ts +2 -8
  29. package/esm/models/operations/getparameters.js +2 -8
  30. package/esm/models/operations/list.js +1 -1
  31. package/esm/models/operations/updatekeys.js +1 -1
  32. package/esm/models/providername.d.ts +2 -26
  33. package/esm/models/providername.js +2 -26
  34. package/esm/models/providersort.d.ts +17 -0
  35. package/esm/models/providersort.js +15 -0
  36. package/esm/models/publicendpoint.d.ts +4 -0
  37. package/esm/models/publicendpoint.js +2 -0
  38. package/esm/models/publicpricing.d.ts +4 -0
  39. package/esm/models/publicpricing.js +2 -0
  40. package/jsr.json +1 -1
  41. package/package.json +1 -1
  42. package/esm/models/chatcompletionfinishreason.d.ts +0 -13
  43. package/esm/models/chatcompletionfinishreason.js +0 -14
  44. package/esm/models/chatstreamingchoice.d.ts +0 -16
  45. package/esm/models/chatstreamingchoice.js +0 -24
@@ -4,6 +4,7 @@
4
4
  import * as z from "zod/v4";
5
5
  import { remap as remap$ } from "../lib/primitives.js";
6
6
  import * as openEnums from "../types/enums.js";
7
+ import { DataCollection$outboundSchema, } from "./datacollection.js";
7
8
  import { OpenAIResponsesIncludable$outboundSchema, } from "./openairesponsesincludable.js";
8
9
  import { OpenAIResponsesPrompt$outboundSchema, } from "./openairesponsesprompt.js";
9
10
  import { OpenAIResponsesToolChoiceUnion$outboundSchema, } from "./openairesponsestoolchoiceunion.js";
@@ -15,6 +16,7 @@ import { OpenResponsesWebSearchPreview20250311Tool$outboundSchema, } from "./ope
15
16
  import { OpenResponsesWebSearchPreviewTool$outboundSchema, } from "./openresponseswebsearchpreviewtool.js";
16
17
  import { OpenResponsesWebSearchTool$outboundSchema, } from "./openresponseswebsearchtool.js";
17
18
  import { ProviderName$outboundSchema } from "./providername.js";
19
+ import { ProviderSort$outboundSchema } from "./providersort.js";
18
20
  import { Quantization$outboundSchema } from "./quantization.js";
19
21
  export const OpenResponsesRequestType = {
20
22
  Function: "function",
@@ -30,25 +32,6 @@ export const Truncation = {
30
32
  Auto: "auto",
31
33
  Disabled: "disabled",
32
34
  };
33
- /**
34
- * Data collection setting. If no available model provider meets the requirement, your request will return an error.
35
- *
36
- * @remarks
37
- * - allow: (default) allow providers which store user data non-transiently and may train on it
38
- * - deny: use only providers which do not collect user data.
39
- */
40
- export const DataCollection = {
41
- Deny: "deny",
42
- Allow: "allow",
43
- };
44
- /**
45
- * The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed.
46
- */
47
- export const Sort = {
48
- Price: "price",
49
- Throughput: "throughput",
50
- Latency: "latency",
51
- };
52
35
  export const IdFileParser = {
53
36
  FileParser: "file-parser",
54
37
  };
@@ -96,8 +79,6 @@ export const ServiceTier$outboundSchema = openEnums.outboundSchema(ServiceTier);
96
79
  /** @internal */
97
80
  export const Truncation$outboundSchema = openEnums.outboundSchema(Truncation);
98
81
  /** @internal */
99
- export const DataCollection$outboundSchema = openEnums.outboundSchema(DataCollection);
100
- /** @internal */
101
82
  export const Order$outboundSchema = z.union([
102
83
  ProviderName$outboundSchema,
103
84
  z.string(),
@@ -120,9 +101,6 @@ export function ignoreToJSON(ignore) {
120
101
  return JSON.stringify(Ignore$outboundSchema.parse(ignore));
121
102
  }
122
103
  /** @internal */
123
- export const Sort$outboundSchema = openEnums
124
- .outboundSchema(Sort);
125
- /** @internal */
126
104
  export const MaxPrice$outboundSchema = z
127
105
  .object({
128
106
  prompt: z.any().optional(),
@@ -146,7 +124,7 @@ export const Provider$outboundSchema = z
146
124
  only: z.nullable(z.array(z.union([ProviderName$outboundSchema, z.string()]))).optional(),
147
125
  ignore: z.nullable(z.array(z.union([ProviderName$outboundSchema, z.string()]))).optional(),
148
126
  quantizations: z.nullable(z.array(Quantization$outboundSchema)).optional(),
149
- sort: z.nullable(Sort$outboundSchema).optional(),
127
+ sort: z.nullable(ProviderSort$outboundSchema).optional(),
150
128
  maxPrice: z.lazy(() => MaxPrice$outboundSchema).optional(),
151
129
  }).transform((v) => {
152
130
  return remap$(v, {
@@ -3,41 +3,38 @@ import { ClosedEnum, OpenEnum } from "../../types/enums.js";
3
3
  import { Result as SafeParseResult } from "../../types/fp.js";
4
4
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
5
  import * as models from "../index.js";
6
- export type Input = string | Array<string> | Array<number> | Array<Array<number>>;
7
- /**
8
- * Data collection setting. If no available model provider meets the requirement, your request will return an error.
9
- *
10
- * @remarks
11
- * - allow: (default) allow providers which store user data non-transiently and may train on it
12
- * - deny: use only providers which do not collect user data.
13
- */
14
- export declare const DataCollection: {
15
- readonly Deny: "deny";
16
- readonly Allow: "allow";
6
+ export declare const TypeImageURL: {
7
+ readonly ImageUrl: "image_url";
17
8
  };
18
- /**
19
- * Data collection setting. If no available model provider meets the requirement, your request will return an error.
20
- *
21
- * @remarks
22
- * - allow: (default) allow providers which store user data non-transiently and may train on it
23
- * - deny: use only providers which do not collect user data.
24
- */
25
- export type DataCollection = OpenEnum<typeof DataCollection>;
9
+ export type TypeImageURL = ClosedEnum<typeof TypeImageURL>;
10
+ export type ImageUrl = {
11
+ url: string;
12
+ };
13
+ export type ContentImageURL = {
14
+ type: TypeImageURL;
15
+ imageUrl: ImageUrl;
16
+ };
17
+ export declare const TypeText: {
18
+ readonly Text: "text";
19
+ };
20
+ export type TypeText = ClosedEnum<typeof TypeText>;
21
+ export type ContentText = {
22
+ type: TypeText;
23
+ text: string;
24
+ };
25
+ export type Content = ContentText | ContentImageURL;
26
+ export type Input = {
27
+ content: Array<ContentText | ContentImageURL>;
28
+ };
29
+ export type InputUnion = string | Array<string> | Array<number> | Array<Array<number>> | Array<Input>;
30
+ export declare const EncodingFormat: {
31
+ readonly Float: "float";
32
+ readonly Base64: "base64";
33
+ };
34
+ export type EncodingFormat = OpenEnum<typeof EncodingFormat>;
26
35
  export type Order = models.ProviderName | string;
27
36
  export type Only = models.ProviderName | string;
28
37
  export type Ignore = models.ProviderName | string;
29
- /**
30
- * The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed.
31
- */
32
- export declare const Sort: {
33
- readonly Price: "price";
34
- readonly Throughput: "throughput";
35
- readonly Latency: "latency";
36
- };
37
- /**
38
- * The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed.
39
- */
40
- export type Sort = OpenEnum<typeof Sort>;
41
38
  /**
42
39
  * The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion.
43
40
  */
@@ -81,9 +78,10 @@ export type CreateEmbeddingsProvider = {
81
78
  *
82
79
  * @remarks
83
80
  * - allow: (default) allow providers which store user data non-transiently and may train on it
81
+ *
84
82
  * - deny: use only providers which do not collect user data.
85
83
  */
86
- dataCollection?: DataCollection | null | undefined;
84
+ dataCollection?: models.DataCollection | null | undefined;
87
85
  /**
88
86
  * Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used.
89
87
  */
@@ -111,27 +109,20 @@ export type CreateEmbeddingsProvider = {
111
109
  /**
112
110
  * The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed.
113
111
  */
114
- sort?: Sort | null | undefined;
112
+ sort?: models.ProviderSort | null | undefined;
115
113
  /**
116
114
  * The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion.
117
115
  */
118
116
  maxPrice?: MaxPrice | undefined;
119
117
  };
120
- export declare const EncodingFormatBase64: {
121
- readonly Base64: "base64";
122
- };
123
- export type EncodingFormatBase64 = ClosedEnum<typeof EncodingFormatBase64>;
124
- export declare const EncodingFormatFloat: {
125
- readonly Float: "float";
126
- };
127
- export type EncodingFormatFloat = ClosedEnum<typeof EncodingFormatFloat>;
128
- export type EncodingFormat = EncodingFormatFloat | EncodingFormatBase64;
129
118
  export type CreateEmbeddingsRequest = {
130
- input: string | Array<string> | Array<number> | Array<Array<number>>;
119
+ input: string | Array<string> | Array<number> | Array<Array<number>> | Array<Input>;
131
120
  model: string;
132
- provider?: CreateEmbeddingsProvider | undefined;
133
- encodingFormat?: EncodingFormatFloat | EncodingFormatBase64 | undefined;
121
+ encodingFormat?: EncodingFormat | undefined;
122
+ dimensions?: number | undefined;
134
123
  user?: string | undefined;
124
+ provider?: CreateEmbeddingsProvider | undefined;
125
+ inputType?: string | undefined;
135
126
  };
136
127
  export declare const ObjectT: {
137
128
  readonly List: "list";
@@ -164,12 +155,51 @@ export type CreateEmbeddingsResponseBody = {
164
155
  };
165
156
  export type CreateEmbeddingsResponse = CreateEmbeddingsResponseBody | string;
166
157
  /** @internal */
167
- export type Input$Outbound = string | Array<string> | Array<number> | Array<Array<number>>;
158
+ export declare const TypeImageURL$outboundSchema: z.ZodEnum<typeof TypeImageURL>;
159
+ /** @internal */
160
+ export type ImageUrl$Outbound = {
161
+ url: string;
162
+ };
163
+ /** @internal */
164
+ export declare const ImageUrl$outboundSchema: z.ZodType<ImageUrl$Outbound, ImageUrl>;
165
+ export declare function imageUrlToJSON(imageUrl: ImageUrl): string;
166
+ /** @internal */
167
+ export type ContentImageURL$Outbound = {
168
+ type: string;
169
+ image_url: ImageUrl$Outbound;
170
+ };
171
+ /** @internal */
172
+ export declare const ContentImageURL$outboundSchema: z.ZodType<ContentImageURL$Outbound, ContentImageURL>;
173
+ export declare function contentImageURLToJSON(contentImageURL: ContentImageURL): string;
174
+ /** @internal */
175
+ export declare const TypeText$outboundSchema: z.ZodEnum<typeof TypeText>;
176
+ /** @internal */
177
+ export type ContentText$Outbound = {
178
+ type: string;
179
+ text: string;
180
+ };
181
+ /** @internal */
182
+ export declare const ContentText$outboundSchema: z.ZodType<ContentText$Outbound, ContentText>;
183
+ export declare function contentTextToJSON(contentText: ContentText): string;
184
+ /** @internal */
185
+ export type Content$Outbound = ContentText$Outbound | ContentImageURL$Outbound;
186
+ /** @internal */
187
+ export declare const Content$outboundSchema: z.ZodType<Content$Outbound, Content>;
188
+ export declare function contentToJSON(content: Content): string;
189
+ /** @internal */
190
+ export type Input$Outbound = {
191
+ content: Array<ContentText$Outbound | ContentImageURL$Outbound>;
192
+ };
168
193
  /** @internal */
169
194
  export declare const Input$outboundSchema: z.ZodType<Input$Outbound, Input>;
170
195
  export declare function inputToJSON(input: Input): string;
171
196
  /** @internal */
172
- export declare const DataCollection$outboundSchema: z.ZodType<string, DataCollection>;
197
+ export type InputUnion$Outbound = string | Array<string> | Array<number> | Array<Array<number>> | Array<Input$Outbound>;
198
+ /** @internal */
199
+ export declare const InputUnion$outboundSchema: z.ZodType<InputUnion$Outbound, InputUnion>;
200
+ export declare function inputUnionToJSON(inputUnion: InputUnion): string;
201
+ /** @internal */
202
+ export declare const EncodingFormat$outboundSchema: z.ZodType<string, EncodingFormat>;
173
203
  /** @internal */
174
204
  export type Order$Outbound = string | string;
175
205
  /** @internal */
@@ -186,8 +216,6 @@ export type Ignore$Outbound = string | string;
186
216
  export declare const Ignore$outboundSchema: z.ZodType<Ignore$Outbound, Ignore>;
187
217
  export declare function ignoreToJSON(ignore: Ignore): string;
188
218
  /** @internal */
189
- export declare const Sort$outboundSchema: z.ZodType<string, Sort>;
190
- /** @internal */
191
219
  export type MaxPrice$Outbound = {
192
220
  prompt?: any | undefined;
193
221
  completion?: any | undefined;
@@ -216,21 +244,14 @@ export type CreateEmbeddingsProvider$Outbound = {
216
244
  export declare const CreateEmbeddingsProvider$outboundSchema: z.ZodType<CreateEmbeddingsProvider$Outbound, CreateEmbeddingsProvider>;
217
245
  export declare function createEmbeddingsProviderToJSON(createEmbeddingsProvider: CreateEmbeddingsProvider): string;
218
246
  /** @internal */
219
- export declare const EncodingFormatBase64$outboundSchema: z.ZodEnum<typeof EncodingFormatBase64>;
220
- /** @internal */
221
- export declare const EncodingFormatFloat$outboundSchema: z.ZodEnum<typeof EncodingFormatFloat>;
222
- /** @internal */
223
- export type EncodingFormat$Outbound = string | string;
224
- /** @internal */
225
- export declare const EncodingFormat$outboundSchema: z.ZodType<EncodingFormat$Outbound, EncodingFormat>;
226
- export declare function encodingFormatToJSON(encodingFormat: EncodingFormat): string;
227
- /** @internal */
228
247
  export type CreateEmbeddingsRequest$Outbound = {
229
- input: string | Array<string> | Array<number> | Array<Array<number>>;
248
+ input: string | Array<string> | Array<number> | Array<Array<number>> | Array<Input$Outbound>;
230
249
  model: string;
231
- provider?: CreateEmbeddingsProvider$Outbound | undefined;
232
- encoding_format?: string | string | undefined;
250
+ encoding_format?: string | undefined;
251
+ dimensions?: number | undefined;
233
252
  user?: string | undefined;
253
+ provider?: CreateEmbeddingsProvider$Outbound | undefined;
254
+ input_type?: string | undefined;
234
255
  };
235
256
  /** @internal */
236
257
  export declare const CreateEmbeddingsRequest$outboundSchema: z.ZodType<CreateEmbeddingsRequest$Outbound, CreateEmbeddingsRequest>;
@@ -6,30 +6,15 @@ 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
8
  import * as models from "../index.js";
9
- /**
10
- * Data collection setting. If no available model provider meets the requirement, your request will return an error.
11
- *
12
- * @remarks
13
- * - allow: (default) allow providers which store user data non-transiently and may train on it
14
- * - deny: use only providers which do not collect user data.
15
- */
16
- export const DataCollection = {
17
- Deny: "deny",
18
- Allow: "allow",
9
+ export const TypeImageURL = {
10
+ ImageUrl: "image_url",
19
11
  };
20
- /**
21
- * The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed.
22
- */
23
- export const Sort = {
24
- Price: "price",
25
- Throughput: "throughput",
26
- Latency: "latency",
12
+ export const TypeText = {
13
+ Text: "text",
27
14
  };
28
- export const EncodingFormatBase64 = {
29
- Base64: "base64",
30
- };
31
- export const EncodingFormatFloat = {
15
+ export const EncodingFormat = {
32
16
  Float: "float",
17
+ Base64: "base64",
33
18
  };
34
19
  export const ObjectT = {
35
20
  List: "list",
@@ -38,17 +23,70 @@ export const ObjectEmbedding = {
38
23
  Embedding: "embedding",
39
24
  };
40
25
  /** @internal */
41
- export const Input$outboundSchema = z.union([
26
+ export const TypeImageURL$outboundSchema = z
27
+ .enum(TypeImageURL);
28
+ /** @internal */
29
+ export const ImageUrl$outboundSchema = z
30
+ .object({
31
+ url: z.string(),
32
+ });
33
+ export function imageUrlToJSON(imageUrl) {
34
+ return JSON.stringify(ImageUrl$outboundSchema.parse(imageUrl));
35
+ }
36
+ /** @internal */
37
+ export const ContentImageURL$outboundSchema = z.object({
38
+ type: TypeImageURL$outboundSchema,
39
+ imageUrl: z.lazy(() => ImageUrl$outboundSchema),
40
+ }).transform((v) => {
41
+ return remap$(v, {
42
+ imageUrl: "image_url",
43
+ });
44
+ });
45
+ export function contentImageURLToJSON(contentImageURL) {
46
+ return JSON.stringify(ContentImageURL$outboundSchema.parse(contentImageURL));
47
+ }
48
+ /** @internal */
49
+ export const TypeText$outboundSchema = z.enum(TypeText);
50
+ /** @internal */
51
+ export const ContentText$outboundSchema = z.object({
52
+ type: TypeText$outboundSchema,
53
+ text: z.string(),
54
+ });
55
+ export function contentTextToJSON(contentText) {
56
+ return JSON.stringify(ContentText$outboundSchema.parse(contentText));
57
+ }
58
+ /** @internal */
59
+ export const Content$outboundSchema = z
60
+ .union([
61
+ z.lazy(() => ContentText$outboundSchema),
62
+ z.lazy(() => ContentImageURL$outboundSchema),
63
+ ]);
64
+ export function contentToJSON(content) {
65
+ return JSON.stringify(Content$outboundSchema.parse(content));
66
+ }
67
+ /** @internal */
68
+ export const Input$outboundSchema = z.object({
69
+ content: z.array(z.union([
70
+ z.lazy(() => ContentText$outboundSchema),
71
+ z.lazy(() => ContentImageURL$outboundSchema),
72
+ ])),
73
+ });
74
+ export function inputToJSON(input) {
75
+ return JSON.stringify(Input$outboundSchema.parse(input));
76
+ }
77
+ /** @internal */
78
+ export const InputUnion$outboundSchema = z.union([
42
79
  z.string(),
43
80
  z.array(z.string()),
44
81
  z.array(z.number()),
45
82
  z.array(z.array(z.number())),
83
+ z.array(z.lazy(() => Input$outboundSchema)),
46
84
  ]);
47
- export function inputToJSON(input) {
48
- return JSON.stringify(Input$outboundSchema.parse(input));
85
+ export function inputUnionToJSON(inputUnion) {
86
+ return JSON.stringify(InputUnion$outboundSchema.parse(inputUnion));
49
87
  }
50
88
  /** @internal */
51
- export const DataCollection$outboundSchema = openEnums.outboundSchema(DataCollection);
89
+ export const EncodingFormat$outboundSchema = openEnums.outboundSchema(EncodingFormat);
52
90
  /** @internal */
53
91
  export const Order$outboundSchema = z.union([
54
92
  models.ProviderName$outboundSchema,
@@ -72,9 +110,6 @@ export function ignoreToJSON(ignore) {
72
110
  return JSON.stringify(Ignore$outboundSchema.parse(ignore));
73
111
  }
74
112
  /** @internal */
75
- export const Sort$outboundSchema = openEnums
76
- .outboundSchema(Sort);
77
- /** @internal */
78
113
  export const MaxPrice$outboundSchema = z
79
114
  .object({
80
115
  prompt: z.any().optional(),
@@ -90,7 +125,7 @@ export function maxPriceToJSON(maxPrice) {
90
125
  export const CreateEmbeddingsProvider$outboundSchema = z.object({
91
126
  allowFallbacks: z.nullable(z.boolean()).optional(),
92
127
  requireParameters: z.nullable(z.boolean()).optional(),
93
- dataCollection: z.nullable(DataCollection$outboundSchema).optional(),
128
+ dataCollection: z.nullable(models.DataCollection$outboundSchema).optional(),
94
129
  zdr: z.nullable(z.boolean()).optional(),
95
130
  enforceDistillableText: z.nullable(z.boolean()).optional(),
96
131
  order: z.nullable(z.array(z.union([models.ProviderName$outboundSchema, z.string()]))).optional(),
@@ -98,7 +133,7 @@ export const CreateEmbeddingsProvider$outboundSchema = z.object({
98
133
  ignore: z.nullable(z.array(z.union([models.ProviderName$outboundSchema, z.string()]))).optional(),
99
134
  quantizations: z.nullable(z.array(models.Quantization$outboundSchema))
100
135
  .optional(),
101
- sort: z.nullable(Sort$outboundSchema).optional(),
136
+ sort: z.nullable(models.ProviderSort$outboundSchema).optional(),
102
137
  maxPrice: z.lazy(() => MaxPrice$outboundSchema).optional(),
103
138
  }).transform((v) => {
104
139
  return remap$(v, {
@@ -113,35 +148,24 @@ export function createEmbeddingsProviderToJSON(createEmbeddingsProvider) {
113
148
  return JSON.stringify(CreateEmbeddingsProvider$outboundSchema.parse(createEmbeddingsProvider));
114
149
  }
115
150
  /** @internal */
116
- export const EncodingFormatBase64$outboundSchema = z.enum(EncodingFormatBase64);
117
- /** @internal */
118
- export const EncodingFormatFloat$outboundSchema = z.enum(EncodingFormatFloat);
119
- /** @internal */
120
- export const EncodingFormat$outboundSchema = z.union([
121
- EncodingFormatFloat$outboundSchema,
122
- EncodingFormatBase64$outboundSchema,
123
- ]);
124
- export function encodingFormatToJSON(encodingFormat) {
125
- return JSON.stringify(EncodingFormat$outboundSchema.parse(encodingFormat));
126
- }
127
- /** @internal */
128
151
  export const CreateEmbeddingsRequest$outboundSchema = z.object({
129
152
  input: z.union([
130
153
  z.string(),
131
154
  z.array(z.string()),
132
155
  z.array(z.number()),
133
156
  z.array(z.array(z.number())),
157
+ z.array(z.lazy(() => Input$outboundSchema)),
134
158
  ]),
135
159
  model: z.string(),
136
- provider: z.lazy(() => CreateEmbeddingsProvider$outboundSchema).optional(),
137
- encodingFormat: z.union([
138
- EncodingFormatFloat$outboundSchema,
139
- EncodingFormatBase64$outboundSchema,
140
- ]).optional(),
160
+ encodingFormat: EncodingFormat$outboundSchema.optional(),
161
+ dimensions: z.int().optional(),
141
162
  user: z.string().optional(),
163
+ provider: z.lazy(() => CreateEmbeddingsProvider$outboundSchema).optional(),
164
+ inputType: z.string().optional(),
142
165
  }).transform((v) => {
143
166
  return remap$(v, {
144
167
  encodingFormat: "encoding_format",
168
+ inputType: "input_type",
145
169
  });
146
170
  });
147
171
  export function createEmbeddingsRequestToJSON(createEmbeddingsRequest) {
@@ -52,7 +52,7 @@ export const CreateKeysData$inboundSchema = z.object({
52
52
  byok_usage_monthly: z.number(),
53
53
  created_at: z.string(),
54
54
  updated_at: z.nullable(z.string()),
55
- expires_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
55
+ expires_at: z.nullable(z.iso.datetime({ offset: true }).transform(v => new Date(v))).optional(),
56
56
  }).transform((v) => {
57
57
  return remap$(v, {
58
58
  "limit_remaining": "limitRemaining",
@@ -30,7 +30,7 @@ export const GetCurrentKeyData$inboundSchema = z.object({
30
30
  limit_remaining: z.nullable(z.number()),
31
31
  limit_reset: z.nullable(z.string()),
32
32
  include_byok_in_limit: z.boolean(),
33
- expires_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
33
+ expires_at: z.nullable(z.iso.datetime({ offset: true }).transform(v => new Date(v))).optional(),
34
34
  rate_limit: z.lazy(() => RateLimit$inboundSchema),
35
35
  }).transform((v) => {
36
36
  return remap$(v, {
@@ -32,7 +32,7 @@ export const GetKeyData$inboundSchema = z
32
32
  byok_usage_monthly: z.number(),
33
33
  created_at: z.string(),
34
34
  updated_at: z.nullable(z.string()),
35
- expires_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
35
+ expires_at: z.nullable(z.iso.datetime({ offset: true }).transform(v => new Date(v))).optional(),
36
36
  }).transform((v) => {
37
37
  return remap$(v, {
38
38
  "limit_remaining": "limitRemaining",
@@ -11,22 +11,21 @@ export declare const GetParametersProvider: {
11
11
  readonly Alibaba: "Alibaba";
12
12
  readonly AmazonBedrock: "Amazon Bedrock";
13
13
  readonly Anthropic: "Anthropic";
14
+ readonly Arcee: "Arcee";
14
15
  readonly AtlasCloud: "AtlasCloud";
15
- readonly Atoma: "Atoma";
16
16
  readonly Avian: "Avian";
17
17
  readonly Azure: "Azure";
18
18
  readonly BaseTen: "BaseTen";
19
+ readonly BlackForestLabs: "Black Forest Labs";
19
20
  readonly Cerebras: "Cerebras";
20
21
  readonly Chutes: "Chutes";
21
22
  readonly Cirrascale: "Cirrascale";
22
23
  readonly Clarifai: "Clarifai";
23
24
  readonly Cloudflare: "Cloudflare";
24
25
  readonly Cohere: "Cohere";
25
- readonly CrofAI: "CrofAI";
26
26
  readonly Crusoe: "Crusoe";
27
27
  readonly DeepInfra: "DeepInfra";
28
28
  readonly DeepSeek: "DeepSeek";
29
- readonly Enfer: "Enfer";
30
29
  readonly Featherless: "Featherless";
31
30
  readonly Fireworks: "Fireworks";
32
31
  readonly Friendli: "Friendli";
@@ -39,11 +38,8 @@ export declare const GetParametersProvider: {
39
38
  readonly InferenceNet: "InferenceNet";
40
39
  readonly Infermatic: "Infermatic";
41
40
  readonly Inflection: "Inflection";
42
- readonly Kluster: "Kluster";
43
- readonly Lambda: "Lambda";
44
41
  readonly Liquid: "Liquid";
45
42
  readonly Mancer2: "Mancer 2";
46
- readonly Meta: "Meta";
47
43
  readonly Minimax: "Minimax";
48
44
  readonly ModelRun: "ModelRun";
49
45
  readonly Mistral: "Mistral";
@@ -53,7 +49,6 @@ export declare const GetParametersProvider: {
53
49
  readonly NCompass: "NCompass";
54
50
  readonly Nebius: "Nebius";
55
51
  readonly NextBit: "NextBit";
56
- readonly Nineteen: "Nineteen";
57
52
  readonly Novita: "Novita";
58
53
  readonly Nvidia: "Nvidia";
59
54
  readonly OpenAI: "OpenAI";
@@ -68,7 +63,6 @@ export declare const GetParametersProvider: {
68
63
  readonly Switchpoint: "Switchpoint";
69
64
  readonly Targon: "Targon";
70
65
  readonly Together: "Together";
71
- readonly Ubicloud: "Ubicloud";
72
66
  readonly Venice: "Venice";
73
67
  readonly WandB: "WandB";
74
68
  readonly XAI: "xAI";
@@ -11,22 +11,21 @@ export const GetParametersProvider = {
11
11
  Alibaba: "Alibaba",
12
12
  AmazonBedrock: "Amazon Bedrock",
13
13
  Anthropic: "Anthropic",
14
+ Arcee: "Arcee",
14
15
  AtlasCloud: "AtlasCloud",
15
- Atoma: "Atoma",
16
16
  Avian: "Avian",
17
17
  Azure: "Azure",
18
18
  BaseTen: "BaseTen",
19
+ BlackForestLabs: "Black Forest Labs",
19
20
  Cerebras: "Cerebras",
20
21
  Chutes: "Chutes",
21
22
  Cirrascale: "Cirrascale",
22
23
  Clarifai: "Clarifai",
23
24
  Cloudflare: "Cloudflare",
24
25
  Cohere: "Cohere",
25
- CrofAI: "CrofAI",
26
26
  Crusoe: "Crusoe",
27
27
  DeepInfra: "DeepInfra",
28
28
  DeepSeek: "DeepSeek",
29
- Enfer: "Enfer",
30
29
  Featherless: "Featherless",
31
30
  Fireworks: "Fireworks",
32
31
  Friendli: "Friendli",
@@ -39,11 +38,8 @@ export const GetParametersProvider = {
39
38
  InferenceNet: "InferenceNet",
40
39
  Infermatic: "Infermatic",
41
40
  Inflection: "Inflection",
42
- Kluster: "Kluster",
43
- Lambda: "Lambda",
44
41
  Liquid: "Liquid",
45
42
  Mancer2: "Mancer 2",
46
- Meta: "Meta",
47
43
  Minimax: "Minimax",
48
44
  ModelRun: "ModelRun",
49
45
  Mistral: "Mistral",
@@ -53,7 +49,6 @@ export const GetParametersProvider = {
53
49
  NCompass: "NCompass",
54
50
  Nebius: "Nebius",
55
51
  NextBit: "NextBit",
56
- Nineteen: "Nineteen",
57
52
  Novita: "Novita",
58
53
  Nvidia: "Nvidia",
59
54
  OpenAI: "OpenAI",
@@ -68,7 +63,6 @@ export const GetParametersProvider = {
68
63
  Switchpoint: "Switchpoint",
69
64
  Targon: "Targon",
70
65
  Together: "Together",
71
- Ubicloud: "Ubicloud",
72
66
  Venice: "Venice",
73
67
  WandB: "WandB",
74
68
  XAI: "xAI",
@@ -36,7 +36,7 @@ export const ListData$inboundSchema = z.object({
36
36
  byok_usage_monthly: z.number(),
37
37
  created_at: z.string(),
38
38
  updated_at: z.nullable(z.string()),
39
- expires_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
39
+ expires_at: z.nullable(z.iso.datetime({ offset: true }).transform(v => new Date(v))).optional(),
40
40
  }).transform((v) => {
41
41
  return remap$(v, {
42
42
  "limit_remaining": "limitRemaining",
@@ -63,7 +63,7 @@ export const UpdateKeysData$inboundSchema = z.object({
63
63
  byok_usage_monthly: z.number(),
64
64
  created_at: z.string(),
65
65
  updated_at: z.nullable(z.string()),
66
- expires_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
66
+ expires_at: z.nullable(z.iso.datetime({ offset: true }).transform(v => new Date(v))).optional(),
67
67
  }).transform((v) => {
68
68
  return remap$(v, {
69
69
  "limit_remaining": "limitRemaining",