@effect/ai-openai 0.19.2 → 0.19.4

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 (34) hide show
  1. package/dist/cjs/Generated.js +357 -358
  2. package/dist/cjs/Generated.js.map +1 -1
  3. package/dist/cjs/OpenAiClient.js +10 -13
  4. package/dist/cjs/OpenAiClient.js.map +1 -1
  5. package/dist/cjs/OpenAiConfig.js +2 -3
  6. package/dist/cjs/OpenAiConfig.js.map +1 -1
  7. package/dist/cjs/OpenAiEmbeddingModel.js +2 -3
  8. package/dist/cjs/OpenAiEmbeddingModel.js.map +1 -1
  9. package/dist/cjs/OpenAiLanguageModel.js +2 -3
  10. package/dist/cjs/OpenAiLanguageModel.js.map +1 -1
  11. package/dist/cjs/OpenAiTelemetry.js +1 -2
  12. package/dist/cjs/OpenAiTelemetry.js.map +1 -1
  13. package/dist/cjs/OpenAiTokenizer.js +1 -2
  14. package/dist/cjs/OpenAiTokenizer.js.map +1 -1
  15. package/dist/cjs/index.js +1 -2
  16. package/dist/cjs/internal/utilities.js +1 -2
  17. package/dist/cjs/internal/utilities.js.map +1 -1
  18. package/dist/dts/Generated.d.ts.map +1 -1
  19. package/dist/dts/OpenAiClient.d.ts.map +1 -1
  20. package/dist/dts/OpenAiEmbeddingModel.d.ts.map +1 -1
  21. package/dist/dts/OpenAiLanguageModel.d.ts.map +1 -1
  22. package/dist/dts/OpenAiTokenizer.d.ts.map +1 -1
  23. package/dist/esm/Generated.js +356 -356
  24. package/dist/esm/Generated.js.map +1 -1
  25. package/dist/esm/OpenAiClient.js +9 -11
  26. package/dist/esm/OpenAiClient.js.map +1 -1
  27. package/dist/esm/OpenAiConfig.js +1 -1
  28. package/dist/esm/OpenAiConfig.js.map +1 -1
  29. package/dist/esm/OpenAiEmbeddingModel.js +1 -1
  30. package/dist/esm/OpenAiEmbeddingModel.js.map +1 -1
  31. package/dist/esm/OpenAiLanguageModel.js +1 -1
  32. package/dist/esm/OpenAiLanguageModel.js.map +1 -1
  33. package/package.json +5 -5
  34. package/src/OpenAiClient.ts +9 -11
@@ -31,12 +31,12 @@ export class FileSearchRankingOptions extends /*#__PURE__*/S.Struct({
31
31
  "ranker": /*#__PURE__*/S.optionalWith(FileSearchRanker, {
32
32
  nullable: true
33
33
  }),
34
- "score_threshold": /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1))
34
+ "score_threshold": /*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1))
35
35
  }) {}
36
36
  export class AssistantToolsFileSearch extends /*#__PURE__*/S.Struct({
37
37
  "type": AssistantToolsFileSearchType,
38
- "file_search": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
39
- "max_num_results": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(50)), {
38
+ "file_search": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
39
+ "max_num_results": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(50)), {
40
40
  nullable: true
41
41
  }),
42
42
  "ranking_options": /*#__PURE__*/S.optionalWith(FileSearchRankingOptions, {
@@ -107,22 +107,22 @@ export class AssistantObject extends /*#__PURE__*/S.Struct({
107
107
  "id": S.String,
108
108
  "object": AssistantObjectObject,
109
109
  "created_at": S.Int,
110
- "name": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.String.pipe( /*#__PURE__*/S.maxLength(256))),
111
- "description": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.String.pipe( /*#__PURE__*/S.maxLength(512))),
110
+ "name": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.String.pipe(/*#__PURE__*/S.maxLength(256))),
111
+ "description": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.String.pipe(/*#__PURE__*/S.maxLength(512))),
112
112
  "model": S.String,
113
- "instructions": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.String.pipe( /*#__PURE__*/S.maxLength(256000))),
113
+ "instructions": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.String.pipe(/*#__PURE__*/S.maxLength(256000))),
114
114
  "tools": /*#__PURE__*/S.Array(S.Union(AssistantToolsCode, AssistantToolsFileSearch, AssistantToolsFunction)).pipe(S.maxItems(128)).pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => [])),
115
- "tool_resources": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
116
- "code_interpreter": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
117
- "file_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.maxItems(20)), {
115
+ "tool_resources": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
116
+ "code_interpreter": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
117
+ "file_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.maxItems(20)), {
118
118
  nullable: true,
119
119
  default: () => []
120
120
  })
121
121
  }), {
122
122
  nullable: true
123
123
  }),
124
- "file_search": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
125
- "vector_store_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.maxItems(1)), {
124
+ "file_search": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
125
+ "vector_store_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.maxItems(1)), {
126
126
  nullable: true
127
127
  })
128
128
  }), {
@@ -132,11 +132,11 @@ export class AssistantObject extends /*#__PURE__*/S.Struct({
132
132
  nullable: true
133
133
  }),
134
134
  "metadata": /*#__PURE__*/S.NullOr(Metadata),
135
- "temperature": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
135
+ "temperature": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
136
136
  nullable: true,
137
137
  default: () => 1
138
138
  }),
139
- "top_p": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
139
+ "top_p": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
140
140
  nullable: true,
141
141
  default: () => 1
142
142
  }),
@@ -155,37 +155,37 @@ export class AssistantSupportedModels extends /*#__PURE__*/S.Literal("o3-mini",
155
155
  export class ReasoningEffort extends /*#__PURE__*/S.Literal("low", "medium", "high") {}
156
156
  export class CreateAssistantRequest extends /*#__PURE__*/S.Class("CreateAssistantRequest")({
157
157
  "model": /*#__PURE__*/S.Union(S.String, AssistantSupportedModels),
158
- "name": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.String.pipe( /*#__PURE__*/S.maxLength(256)), {
158
+ "name": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.String.pipe(/*#__PURE__*/S.maxLength(256)), {
159
159
  nullable: true
160
160
  }),
161
- "description": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.String.pipe( /*#__PURE__*/S.maxLength(512)), {
161
+ "description": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.String.pipe(/*#__PURE__*/S.maxLength(512)), {
162
162
  nullable: true
163
163
  }),
164
- "instructions": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.String.pipe( /*#__PURE__*/S.maxLength(256000)), {
164
+ "instructions": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.String.pipe(/*#__PURE__*/S.maxLength(256000)), {
165
165
  nullable: true
166
166
  }),
167
167
  "reasoning_effort": /*#__PURE__*/S.optionalWith(ReasoningEffort, {
168
168
  nullable: true,
169
169
  default: () => "medium"
170
170
  }),
171
- "tools": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.Union(AssistantToolsCode, AssistantToolsFileSearch, AssistantToolsFunction)).pipe( /*#__PURE__*/S.maxItems(128)), {
171
+ "tools": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.Union(AssistantToolsCode, AssistantToolsFileSearch, AssistantToolsFunction)).pipe(/*#__PURE__*/S.maxItems(128)), {
172
172
  nullable: true,
173
173
  default: () => []
174
174
  }),
175
- "tool_resources": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
176
- "code_interpreter": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
177
- "file_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.maxItems(20)), {
175
+ "tool_resources": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
176
+ "code_interpreter": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
177
+ "file_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.maxItems(20)), {
178
178
  nullable: true,
179
179
  default: () => []
180
180
  })
181
181
  }), {
182
182
  nullable: true
183
183
  }),
184
- "file_search": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
185
- "vector_store_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.maxItems(1)), {
184
+ "file_search": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
185
+ "vector_store_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.maxItems(1)), {
186
186
  nullable: true
187
187
  }),
188
- "vector_stores": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.Struct({
188
+ "vector_stores": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.Struct({
189
189
  "file_ids": S.optionalWith(S.Array(S.String).pipe(S.maxItems(10000)), {
190
190
  nullable: true
191
191
  }),
@@ -198,7 +198,7 @@ export class CreateAssistantRequest extends /*#__PURE__*/S.Class("CreateAssistan
198
198
  "metadata": S.optionalWith(Metadata, {
199
199
  nullable: true
200
200
  })
201
- })).pipe( /*#__PURE__*/S.maxItems(1)), {
201
+ })).pipe(/*#__PURE__*/S.maxItems(1)), {
202
202
  nullable: true
203
203
  })
204
204
  }), {
@@ -210,11 +210,11 @@ export class CreateAssistantRequest extends /*#__PURE__*/S.Class("CreateAssistan
210
210
  "metadata": /*#__PURE__*/S.optionalWith(Metadata, {
211
211
  nullable: true
212
212
  }),
213
- "temperature": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
213
+ "temperature": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
214
214
  nullable: true,
215
215
  default: () => 1
216
216
  }),
217
- "top_p": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
217
+ "top_p": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
218
218
  nullable: true,
219
219
  default: () => 1
220
220
  }),
@@ -223,37 +223,37 @@ export class CreateAssistantRequest extends /*#__PURE__*/S.Class("CreateAssistan
223
223
  })
224
224
  }) {}
225
225
  export class ModifyAssistantRequest extends /*#__PURE__*/S.Class("ModifyAssistantRequest")({
226
- "model": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(S.String, AssistantSupportedModels), {
226
+ "model": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(S.String, AssistantSupportedModels), {
227
227
  nullable: true
228
228
  }),
229
229
  "reasoning_effort": /*#__PURE__*/S.optionalWith(ReasoningEffort, {
230
230
  nullable: true,
231
231
  default: () => "medium"
232
232
  }),
233
- "name": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.String.pipe( /*#__PURE__*/S.maxLength(256)), {
233
+ "name": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.String.pipe(/*#__PURE__*/S.maxLength(256)), {
234
234
  nullable: true
235
235
  }),
236
- "description": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.String.pipe( /*#__PURE__*/S.maxLength(512)), {
236
+ "description": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.String.pipe(/*#__PURE__*/S.maxLength(512)), {
237
237
  nullable: true
238
238
  }),
239
- "instructions": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.String.pipe( /*#__PURE__*/S.maxLength(256000)), {
239
+ "instructions": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.String.pipe(/*#__PURE__*/S.maxLength(256000)), {
240
240
  nullable: true
241
241
  }),
242
- "tools": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.Union(AssistantToolsCode, AssistantToolsFileSearch, AssistantToolsFunction)).pipe( /*#__PURE__*/S.maxItems(128)), {
242
+ "tools": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.Union(AssistantToolsCode, AssistantToolsFileSearch, AssistantToolsFunction)).pipe(/*#__PURE__*/S.maxItems(128)), {
243
243
  nullable: true,
244
244
  default: () => []
245
245
  }),
246
- "tool_resources": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
247
- "code_interpreter": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
248
- "file_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.maxItems(20)), {
246
+ "tool_resources": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
247
+ "code_interpreter": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
248
+ "file_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.maxItems(20)), {
249
249
  nullable: true,
250
250
  default: () => []
251
251
  })
252
252
  }), {
253
253
  nullable: true
254
254
  }),
255
- "file_search": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
256
- "vector_store_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.maxItems(1)), {
255
+ "file_search": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
256
+ "vector_store_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.maxItems(1)), {
257
257
  nullable: true
258
258
  })
259
259
  }), {
@@ -265,11 +265,11 @@ export class ModifyAssistantRequest extends /*#__PURE__*/S.Class("ModifyAssistan
265
265
  "metadata": /*#__PURE__*/S.optionalWith(Metadata, {
266
266
  nullable: true
267
267
  }),
268
- "temperature": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
268
+ "temperature": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
269
269
  nullable: true,
270
270
  default: () => 1
271
271
  }),
272
- "top_p": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
272
+ "top_p": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
273
273
  nullable: true,
274
274
  default: () => 1
275
275
  }),
@@ -289,8 +289,8 @@ export class VoiceIdsShared extends /*#__PURE__*/S.Union(S.String, VoiceIdsShare
289
289
  export class CreateSpeechRequestResponseFormat extends /*#__PURE__*/S.Literal("mp3", "opus", "aac", "flac", "wav", "pcm") {}
290
290
  export class CreateSpeechRequest extends /*#__PURE__*/S.Class("CreateSpeechRequest")({
291
291
  "model": /*#__PURE__*/S.Union(S.String, CreateSpeechRequestModelEnum),
292
- "input": /*#__PURE__*/S.String.pipe( /*#__PURE__*/S.maxLength(4096)),
293
- "instructions": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.String.pipe( /*#__PURE__*/S.maxLength(4096)), {
292
+ "input": /*#__PURE__*/S.String.pipe(/*#__PURE__*/S.maxLength(4096)),
293
+ "instructions": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.String.pipe(/*#__PURE__*/S.maxLength(4096)), {
294
294
  nullable: true
295
295
  }),
296
296
  "voice": VoiceIdsShared,
@@ -298,7 +298,7 @@ export class CreateSpeechRequest extends /*#__PURE__*/S.Class("CreateSpeechReque
298
298
  nullable: true,
299
299
  default: () => "mp3"
300
300
  }),
301
- "speed": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0.25), /*#__PURE__*/S.lessThanOrEqualTo(4)), {
301
+ "speed": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0.25), /*#__PURE__*/S.lessThanOrEqualTo(4)), {
302
302
  nullable: true,
303
303
  default: () => 1
304
304
  })
@@ -310,7 +310,7 @@ export class LogProbProperties extends /*#__PURE__*/S.Struct({
310
310
  }) {}
311
311
  export class CreateTranscriptionResponseJson extends /*#__PURE__*/S.Struct({
312
312
  "text": S.String,
313
- "logprobs": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(LogProbProperties), {
313
+ "logprobs": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(LogProbProperties), {
314
314
  nullable: true
315
315
  })
316
316
  }) {}
@@ -335,10 +335,10 @@ export class CreateTranscriptionResponseVerboseJson extends /*#__PURE__*/S.Struc
335
335
  "language": S.String,
336
336
  "duration": S.Number,
337
337
  "text": S.String,
338
- "words": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(TranscriptionWord), {
338
+ "words": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(TranscriptionWord), {
339
339
  nullable: true
340
340
  }),
341
- "segments": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(TranscriptionSegment), {
341
+ "segments": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(TranscriptionSegment), {
342
342
  nullable: true
343
343
  })
344
344
  }) {}
@@ -350,7 +350,7 @@ export class CreateTranslationResponseVerboseJson extends /*#__PURE__*/S.Struct(
350
350
  "language": S.String,
351
351
  "duration": S.Number,
352
352
  "text": S.String,
353
- "segments": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(TranscriptionSegment), {
353
+ "segments": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(TranscriptionSegment), {
354
354
  nullable: true
355
355
  })
356
356
  }) {}
@@ -370,11 +370,11 @@ export class Batch extends /*#__PURE__*/S.Struct({
370
370
  "id": S.String,
371
371
  "object": BatchObject,
372
372
  "endpoint": S.String,
373
- "errors": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
373
+ "errors": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
374
374
  "object": /*#__PURE__*/S.optionalWith(S.String, {
375
375
  nullable: true
376
376
  }),
377
- "data": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
377
+ "data": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
378
378
  "code": /*#__PURE__*/S.optionalWith(S.String, {
379
379
  nullable: true
380
380
  }),
@@ -427,7 +427,7 @@ export class Batch extends /*#__PURE__*/S.Struct({
427
427
  "cancelled_at": /*#__PURE__*/S.optionalWith(S.Int, {
428
428
  nullable: true
429
429
  }),
430
- "request_counts": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
430
+ "request_counts": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
431
431
  "total": S.Int,
432
432
  "completed": S.Int,
433
433
  "failed": S.Int
@@ -498,7 +498,7 @@ export class ChatCompletionResponseMessage extends /*#__PURE__*/S.Struct({
498
498
  "tool_calls": /*#__PURE__*/S.optionalWith(ChatCompletionMessageToolCalls, {
499
499
  nullable: true
500
500
  }),
501
- "annotations": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
501
+ "annotations": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
502
502
  "type": /*#__PURE__*/S.Literal("url_citation"),
503
503
  "url_citation": /*#__PURE__*/S.Struct({
504
504
  "end_index": S.Int,
@@ -510,13 +510,13 @@ export class ChatCompletionResponseMessage extends /*#__PURE__*/S.Struct({
510
510
  nullable: true
511
511
  }),
512
512
  "role": ChatCompletionResponseMessageRole,
513
- "function_call": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
513
+ "function_call": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
514
514
  "arguments": S.String,
515
515
  "name": S.String
516
516
  }), {
517
517
  nullable: true
518
518
  }),
519
- "audio": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
519
+ "audio": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
520
520
  "id": S.String,
521
521
  "expires_at": S.Int,
522
522
  "data": S.String,
@@ -528,11 +528,11 @@ export class ChatCompletionResponseMessage extends /*#__PURE__*/S.Struct({
528
528
  export class ChatCompletionTokenLogprob extends /*#__PURE__*/S.Struct({
529
529
  "token": S.String,
530
530
  "logprob": S.Number,
531
- "bytes": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Array(S.Int)),
532
- "top_logprobs": /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
531
+ "bytes": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Array(S.Int)),
532
+ "top_logprobs": /*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
533
533
  "token": S.String,
534
534
  "logprob": S.Number,
535
- "bytes": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Array(S.Int))
535
+ "bytes": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Array(S.Int))
536
536
  }))
537
537
  }) {}
538
538
  export class CreateChatCompletionResponseServiceTier extends /*#__PURE__*/S.Literal("scale", "default") {}
@@ -541,7 +541,7 @@ export class CompletionUsage extends /*#__PURE__*/S.Struct({
541
541
  "completion_tokens": /*#__PURE__*/S.Int.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => 0)),
542
542
  "prompt_tokens": /*#__PURE__*/S.Int.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => 0)),
543
543
  "total_tokens": /*#__PURE__*/S.Int.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => 0)),
544
- "completion_tokens_details": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
544
+ "completion_tokens_details": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
545
545
  "accepted_prediction_tokens": /*#__PURE__*/S.optionalWith(S.Int, {
546
546
  nullable: true,
547
547
  default: () => 0
@@ -561,7 +561,7 @@ export class CompletionUsage extends /*#__PURE__*/S.Struct({
561
561
  }), {
562
562
  nullable: true
563
563
  }),
564
- "prompt_tokens_details": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
564
+ "prompt_tokens_details": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
565
565
  "audio_tokens": /*#__PURE__*/S.optionalWith(S.Int, {
566
566
  nullable: true,
567
567
  default: () => 0
@@ -576,15 +576,15 @@ export class CompletionUsage extends /*#__PURE__*/S.Struct({
576
576
  }) {}
577
577
  export class CreateChatCompletionResponse extends /*#__PURE__*/S.Struct({
578
578
  "id": S.String,
579
- "choices": /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
579
+ "choices": /*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
580
580
  "finish_reason": /*#__PURE__*/S.Literal("stop", "length", "tool_calls", "content_filter", "function_call"),
581
581
  "index": S.Int,
582
582
  "message": ChatCompletionResponseMessage,
583
583
  // TODO: change this once the following upstream issue has been closed
584
584
  // https://github.com/openai/openai-openapi/issues/433
585
- "logprobs": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
586
- "content": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Array(ChatCompletionTokenLogprob)),
587
- "refusal": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Array(ChatCompletionTokenLogprob))
585
+ "logprobs": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
586
+ "content": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Array(ChatCompletionTokenLogprob)),
587
+ "refusal": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Array(ChatCompletionTokenLogprob))
588
588
  }), {
589
589
  nullable: true
590
590
  })
@@ -684,7 +684,7 @@ export class ChatCompletionRequestMessageContentPartRefusal extends /*#__PURE__*
684
684
  export class ChatCompletionRequestAssistantMessageContentPart extends /*#__PURE__*/S.Union(ChatCompletionRequestMessageContentPartText, ChatCompletionRequestMessageContentPartRefusal) {}
685
685
  export class ChatCompletionRequestAssistantMessageRole extends /*#__PURE__*/S.Literal("assistant") {}
686
686
  export class ChatCompletionRequestAssistantMessage extends /*#__PURE__*/S.Struct({
687
- "content": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(S.String, /*#__PURE__*/S.NonEmptyArray(ChatCompletionRequestAssistantMessageContentPart)), {
687
+ "content": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(S.String, /*#__PURE__*/S.NonEmptyArray(ChatCompletionRequestAssistantMessageContentPart)), {
688
688
  nullable: true
689
689
  }),
690
690
  "refusal": /*#__PURE__*/S.optionalWith(S.String, {
@@ -694,7 +694,7 @@ export class ChatCompletionRequestAssistantMessage extends /*#__PURE__*/S.Struct
694
694
  "name": /*#__PURE__*/S.optionalWith(S.String, {
695
695
  nullable: true
696
696
  }),
697
- "audio": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
697
+ "audio": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
698
698
  "id": S.String
699
699
  }), {
700
700
  nullable: true
@@ -702,7 +702,7 @@ export class ChatCompletionRequestAssistantMessage extends /*#__PURE__*/S.Struct
702
702
  "tool_calls": /*#__PURE__*/S.optionalWith(ChatCompletionMessageToolCalls, {
703
703
  nullable: true
704
704
  }),
705
- "function_call": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
705
+ "function_call": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
706
706
  "arguments": S.String,
707
707
  "name": S.String
708
708
  }), {
@@ -725,7 +725,7 @@ export class ChatCompletionRequestFunctionMessage extends /*#__PURE__*/S.Struct(
725
725
  export class ChatCompletionRequestMessage extends /*#__PURE__*/S.Union(ChatCompletionRequestDeveloperMessage, ChatCompletionRequestSystemMessage, ChatCompletionRequestUserMessage, ChatCompletionRequestAssistantMessage, ChatCompletionRequestToolMessage, ChatCompletionRequestFunctionMessage) {}
726
726
  export class ModelIdsSharedEnum extends /*#__PURE__*/S.Literal("o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "o1-preview", "o1-preview-2024-09-12", "o1-mini", "o1-mini-2024-09-12", "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-2024-05-13", "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-10-01", "gpt-4o-audio-preview-2024-12-17", "gpt-4o-mini-audio-preview", "gpt-4o-mini-audio-preview-2024-12-17", "gpt-4o-search-preview", "gpt-4o-mini-search-preview", "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11", "chatgpt-4o-latest", "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-1106-preview", "gpt-4-vision-preview", "gpt-4", "gpt-4-0314", "gpt-4-0613", "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", "gpt-3.5-turbo-1106", "gpt-3.5-turbo-0125", "gpt-3.5-turbo-16k-0613") {}
727
727
  export class ModelIdsShared extends /*#__PURE__*/S.Union(S.String, ModelIdsSharedEnum) {}
728
- export class ResponseModalities extends /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("text", "audio")) {}
728
+ export class ResponseModalities extends /*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("text", "audio")) {}
729
729
  export class CreateChatCompletionRequestWebSearchOptionsUserLocationType extends /*#__PURE__*/S.Literal("approximate") {}
730
730
  export class WebSearchLocation extends /*#__PURE__*/S.Struct({
731
731
  "country": /*#__PURE__*/S.optionalWith(S.String, {
@@ -744,7 +744,7 @@ export class WebSearchLocation extends /*#__PURE__*/S.Struct({
744
744
  export class WebSearchContextSize extends /*#__PURE__*/S.Literal("low", "medium", "high") {}
745
745
  export class CreateChatCompletionRequestServiceTier extends /*#__PURE__*/S.Literal("auto", "default") {}
746
746
  export class CreateChatCompletionRequestAudioFormat extends /*#__PURE__*/S.Literal("wav", "mp3", "flac", "opus", "pcm16") {}
747
- export class StopConfiguration extends /*#__PURE__*/S.Union(S.String, /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.minItems(1), /*#__PURE__*/S.maxItems(4))) {}
747
+ export class StopConfiguration extends /*#__PURE__*/S.Union(S.String, /*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.minItems(1), /*#__PURE__*/S.maxItems(4))) {}
748
748
  export class PredictionContentType extends /*#__PURE__*/S.Literal("content") {}
749
749
  export class PredictionContent extends /*#__PURE__*/S.Struct({
750
750
  "type": PredictionContentType,
@@ -796,16 +796,16 @@ export class CreateChatCompletionRequest extends /*#__PURE__*/S.Class("CreateCha
796
796
  "max_completion_tokens": /*#__PURE__*/S.optionalWith(S.Int, {
797
797
  nullable: true
798
798
  }),
799
- "frequency_penalty": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(-2), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
799
+ "frequency_penalty": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(-2), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
800
800
  nullable: true,
801
801
  default: () => 0
802
802
  }),
803
- "presence_penalty": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(-2), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
803
+ "presence_penalty": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(-2), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
804
804
  nullable: true,
805
805
  default: () => 0
806
806
  }),
807
- "web_search_options": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
808
- "user_location": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
807
+ "web_search_options": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
808
+ "user_location": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
809
809
  "type": CreateChatCompletionRequestWebSearchOptionsUserLocationType,
810
810
  "approximate": WebSearchLocation
811
811
  }), {
@@ -818,17 +818,17 @@ export class CreateChatCompletionRequest extends /*#__PURE__*/S.Class("CreateCha
818
818
  }), {
819
819
  nullable: true
820
820
  }),
821
- "top_logprobs": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(20)), {
821
+ "top_logprobs": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(20)), {
822
822
  nullable: true
823
823
  }),
824
- "response_format": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(ResponseFormatText, ResponseFormatJsonSchema, ResponseFormatJsonObject), {
824
+ "response_format": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(ResponseFormatText, ResponseFormatJsonSchema, ResponseFormatJsonObject), {
825
825
  nullable: true
826
826
  }),
827
827
  "service_tier": /*#__PURE__*/S.optionalWith(CreateChatCompletionRequestServiceTier, {
828
828
  nullable: true,
829
829
  default: () => "auto"
830
830
  }),
831
- "audio": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
831
+ "audio": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
832
832
  "voice": VoiceIdsShared,
833
833
  "format": CreateChatCompletionRequestAudioFormat
834
834
  }), {
@@ -842,10 +842,10 @@ export class CreateChatCompletionRequest extends /*#__PURE__*/S.Class("CreateCha
842
842
  nullable: true,
843
843
  default: () => false
844
844
  }),
845
- "stop": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.NullOr(StopConfiguration), {
845
+ "stop": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.NullOr(StopConfiguration), {
846
846
  default: () => null
847
847
  }),
848
- "logit_bias": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Record({
848
+ "logit_bias": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.NullOr(/*#__PURE__*/S.Record({
849
849
  key: S.String,
850
850
  value: S.Unknown
851
851
  })), {
@@ -858,7 +858,7 @@ export class CreateChatCompletionRequest extends /*#__PURE__*/S.Class("CreateCha
858
858
  "max_tokens": /*#__PURE__*/S.optionalWith(S.Int, {
859
859
  nullable: true
860
860
  }),
861
- "n": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(128)), {
861
+ "n": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(128)), {
862
862
  nullable: true,
863
863
  default: () => 1
864
864
  }),
@@ -868,10 +868,10 @@ export class CreateChatCompletionRequest extends /*#__PURE__*/S.Class("CreateCha
868
868
  "seed": /*#__PURE__*/S.optionalWith(S.Int, {
869
869
  nullable: true
870
870
  }),
871
- "stream_options": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.NullOr(ChatCompletionStreamOptions), {
871
+ "stream_options": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.NullOr(ChatCompletionStreamOptions), {
872
872
  default: () => null
873
873
  }),
874
- "tools": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(ChatCompletionTool), {
874
+ "tools": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(ChatCompletionTool), {
875
875
  nullable: true
876
876
  }),
877
877
  "tool_choice": /*#__PURE__*/S.optionalWith(ChatCompletionToolChoiceOption, {
@@ -881,20 +881,20 @@ export class CreateChatCompletionRequest extends /*#__PURE__*/S.Class("CreateCha
881
881
  nullable: true,
882
882
  default: () => true
883
883
  }),
884
- "function_call": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(CreateChatCompletionRequestFunctionCallEnum, ChatCompletionFunctionCallOption), {
884
+ "function_call": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(CreateChatCompletionRequestFunctionCallEnum, ChatCompletionFunctionCallOption), {
885
885
  nullable: true
886
886
  }),
887
- "functions": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(ChatCompletionFunctions).pipe( /*#__PURE__*/S.minItems(1), /*#__PURE__*/S.maxItems(128)), {
887
+ "functions": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(ChatCompletionFunctions).pipe(/*#__PURE__*/S.minItems(1), /*#__PURE__*/S.maxItems(128)), {
888
888
  nullable: true
889
889
  }),
890
890
  "metadata": /*#__PURE__*/S.optionalWith(Metadata, {
891
891
  nullable: true
892
892
  }),
893
- "temperature": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
893
+ "temperature": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
894
894
  nullable: true,
895
895
  default: () => 1
896
896
  }),
897
- "top_p": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
897
+ "top_p": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
898
898
  nullable: true,
899
899
  default: () => 1
900
900
  }),
@@ -928,14 +928,14 @@ export class GetChatCompletionMessagesParams extends /*#__PURE__*/S.Struct({
928
928
  export class ChatCompletionMessageListObject extends /*#__PURE__*/S.Literal("list") {}
929
929
  export class ChatCompletionMessageList extends /*#__PURE__*/S.Class("ChatCompletionMessageList")({
930
930
  "object": /*#__PURE__*/ChatCompletionMessageListObject.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => "list")),
931
- "data": /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
931
+ "data": /*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
932
932
  "id": S.String,
933
933
  "content": /*#__PURE__*/S.NullOr(S.String),
934
934
  "refusal": /*#__PURE__*/S.NullOr(S.String),
935
935
  "tool_calls": /*#__PURE__*/S.optionalWith(ChatCompletionMessageToolCalls, {
936
936
  nullable: true
937
937
  }),
938
- "annotations": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
938
+ "annotations": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
939
939
  "type": /*#__PURE__*/S.Literal("url_citation"),
940
940
  "url_citation": /*#__PURE__*/S.Struct({
941
941
  "end_index": S.Int,
@@ -947,13 +947,13 @@ export class ChatCompletionMessageList extends /*#__PURE__*/S.Class("ChatComplet
947
947
  nullable: true
948
948
  }),
949
949
  "role": /*#__PURE__*/S.Literal("assistant"),
950
- "function_call": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
950
+ "function_call": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
951
951
  "arguments": S.String,
952
952
  "name": S.String
953
953
  }), {
954
954
  nullable: true
955
955
  }),
956
- "audio": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
956
+ "audio": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
957
957
  "id": S.String,
958
958
  "expires_at": S.Int,
959
959
  "data": S.String,
@@ -970,7 +970,7 @@ export class CreateCompletionRequestModelEnum extends /*#__PURE__*/S.Literal("gp
970
970
  export class CreateCompletionRequest extends /*#__PURE__*/S.Class("CreateCompletionRequest")({
971
971
  "model": /*#__PURE__*/S.Union(S.String, CreateCompletionRequestModelEnum),
972
972
  "prompt": /*#__PURE__*/S.NullOr(S.Union(S.String, S.Array(S.String), S.NonEmptyArray(S.Int), S.NonEmptyArray(S.NonEmptyArray(S.Int)))).pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => "<|endoftext|>")),
973
- "best_of": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(20)), {
973
+ "best_of": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(20)), {
974
974
  nullable: true,
975
975
  default: () => 1
976
976
  }),
@@ -978,52 +978,52 @@ export class CreateCompletionRequest extends /*#__PURE__*/S.Class("CreateComplet
978
978
  nullable: true,
979
979
  default: () => false
980
980
  }),
981
- "frequency_penalty": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(-2), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
981
+ "frequency_penalty": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(-2), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
982
982
  nullable: true,
983
983
  default: () => 0
984
984
  }),
985
- "logit_bias": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Record({
985
+ "logit_bias": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.NullOr(/*#__PURE__*/S.Record({
986
986
  key: S.String,
987
987
  value: S.Unknown
988
988
  })), {
989
989
  default: () => null
990
990
  }),
991
- "logprobs": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(5))), {
991
+ "logprobs": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.NullOr(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(5))), {
992
992
  default: () => null
993
993
  }),
994
- "max_tokens": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0)), {
994
+ "max_tokens": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0)), {
995
995
  nullable: true,
996
996
  default: () => 16
997
997
  }),
998
- "n": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(128)), {
998
+ "n": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(128)), {
999
999
  nullable: true,
1000
1000
  default: () => 1
1001
1001
  }),
1002
- "presence_penalty": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(-2), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
1002
+ "presence_penalty": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(-2), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
1003
1003
  nullable: true,
1004
1004
  default: () => 0
1005
1005
  }),
1006
1006
  "seed": /*#__PURE__*/S.optionalWith(S.Int, {
1007
1007
  nullable: true
1008
1008
  }),
1009
- "stop": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.NullOr(StopConfiguration), {
1009
+ "stop": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.NullOr(StopConfiguration), {
1010
1010
  default: () => null
1011
1011
  }),
1012
1012
  "stream": /*#__PURE__*/S.optionalWith(S.Boolean, {
1013
1013
  nullable: true,
1014
1014
  default: () => false
1015
1015
  }),
1016
- "stream_options": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.NullOr(ChatCompletionStreamOptions), {
1016
+ "stream_options": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.NullOr(ChatCompletionStreamOptions), {
1017
1017
  default: () => null
1018
1018
  }),
1019
- "suffix": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.NullOr(S.String), {
1019
+ "suffix": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.NullOr(S.String), {
1020
1020
  default: () => null
1021
1021
  }),
1022
- "temperature": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
1022
+ "temperature": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
1023
1023
  nullable: true,
1024
1024
  default: () => 1
1025
1025
  }),
1026
- "top_p": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
1026
+ "top_p": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
1027
1027
  nullable: true,
1028
1028
  default: () => 1
1029
1029
  }),
@@ -1034,20 +1034,20 @@ export class CreateCompletionRequest extends /*#__PURE__*/S.Class("CreateComplet
1034
1034
  export class CreateCompletionResponseObject extends /*#__PURE__*/S.Literal("text_completion") {}
1035
1035
  export class CreateCompletionResponse extends /*#__PURE__*/S.Class("CreateCompletionResponse")({
1036
1036
  "id": S.String,
1037
- "choices": /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
1037
+ "choices": /*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
1038
1038
  "finish_reason": /*#__PURE__*/S.Literal("stop", "length", "content_filter"),
1039
1039
  "index": S.Int,
1040
- "logprobs": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Struct({
1041
- "text_offset": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.Int), {
1040
+ "logprobs": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Struct({
1041
+ "text_offset": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.Int), {
1042
1042
  nullable: true
1043
1043
  }),
1044
- "token_logprobs": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.Number), {
1044
+ "token_logprobs": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.Number), {
1045
1045
  nullable: true
1046
1046
  }),
1047
- "tokens": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
1047
+ "tokens": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
1048
1048
  nullable: true
1049
1049
  }),
1050
- "top_logprobs": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Record({
1050
+ "top_logprobs": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Record({
1051
1051
  key: S.String,
1052
1052
  value: S.Unknown
1053
1053
  })), {
@@ -1069,13 +1069,13 @@ export class CreateCompletionResponse extends /*#__PURE__*/S.Class("CreateComple
1069
1069
  export class CreateEmbeddingRequestModelEnum extends /*#__PURE__*/S.Literal("text-embedding-ada-002", "text-embedding-3-small", "text-embedding-3-large") {}
1070
1070
  export class CreateEmbeddingRequestEncodingFormat extends /*#__PURE__*/S.Literal("float", "base64") {}
1071
1071
  export class CreateEmbeddingRequest extends /*#__PURE__*/S.Class("CreateEmbeddingRequest")({
1072
- "input": /*#__PURE__*/S.Union(S.String, /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.minItems(1), /*#__PURE__*/S.maxItems(2048)), /*#__PURE__*/S.Array(S.Int).pipe( /*#__PURE__*/S.minItems(1), /*#__PURE__*/S.maxItems(2048)), /*#__PURE__*/S.Array(S.NonEmptyArray(S.Int)).pipe( /*#__PURE__*/S.minItems(1), /*#__PURE__*/S.maxItems(2048))),
1072
+ "input": /*#__PURE__*/S.Union(S.String, /*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.minItems(1), /*#__PURE__*/S.maxItems(2048)), /*#__PURE__*/S.Array(S.Int).pipe(/*#__PURE__*/S.minItems(1), /*#__PURE__*/S.maxItems(2048)), /*#__PURE__*/S.Array(S.NonEmptyArray(S.Int)).pipe(/*#__PURE__*/S.minItems(1), /*#__PURE__*/S.maxItems(2048))),
1073
1073
  "model": /*#__PURE__*/S.Union(S.String, CreateEmbeddingRequestModelEnum),
1074
1074
  "encoding_format": /*#__PURE__*/S.optionalWith(CreateEmbeddingRequestEncodingFormat, {
1075
1075
  nullable: true,
1076
1076
  default: () => "float"
1077
1077
  }),
1078
- "dimensions": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1)), {
1078
+ "dimensions": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1)), {
1079
1079
  nullable: true
1080
1080
  }),
1081
1081
  "user": /*#__PURE__*/S.optionalWith(S.String, {
@@ -1200,7 +1200,7 @@ export class ListPaginatedFineTuningJobsParams extends /*#__PURE__*/S.Struct({
1200
1200
  nullable: true,
1201
1201
  default: () => 20
1202
1202
  }),
1203
- "metadata": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Record({
1203
+ "metadata": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Record({
1204
1204
  key: S.String,
1205
1205
  value: S.Unknown
1206
1206
  }), {
@@ -1223,7 +1223,7 @@ export class FineTuningIntegration extends /*#__PURE__*/S.Struct({
1223
1223
  "entity": /*#__PURE__*/S.optionalWith(S.String, {
1224
1224
  nullable: true
1225
1225
  }),
1226
- "tags": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
1226
+ "tags": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
1227
1227
  nullable: true
1228
1228
  })
1229
1229
  })
@@ -1233,16 +1233,16 @@ export class FineTuneSupervisedMethodHyperparametersBatchSizeEnum extends /*#__P
1233
1233
  export class FineTuneSupervisedMethodHyperparametersLearningRateMultiplierEnum extends /*#__PURE__*/S.Literal("auto") {}
1234
1234
  export class FineTuneSupervisedMethodHyperparametersNEpochsEnum extends /*#__PURE__*/S.Literal("auto") {}
1235
1235
  export class FineTuneSupervisedMethod extends /*#__PURE__*/S.Struct({
1236
- "hyperparameters": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
1237
- "batch_size": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(FineTuneSupervisedMethodHyperparametersBatchSizeEnum, /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(256))), {
1236
+ "hyperparameters": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
1237
+ "batch_size": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(FineTuneSupervisedMethodHyperparametersBatchSizeEnum, /*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(256))), {
1238
1238
  nullable: true,
1239
1239
  default: () => "auto"
1240
1240
  }),
1241
- "learning_rate_multiplier": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(FineTuneSupervisedMethodHyperparametersLearningRateMultiplierEnum, /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThan(0))), {
1241
+ "learning_rate_multiplier": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(FineTuneSupervisedMethodHyperparametersLearningRateMultiplierEnum, /*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThan(0))), {
1242
1242
  nullable: true,
1243
1243
  default: () => "auto"
1244
1244
  }),
1245
- "n_epochs": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(FineTuneSupervisedMethodHyperparametersNEpochsEnum, /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(50))), {
1245
+ "n_epochs": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(FineTuneSupervisedMethodHyperparametersNEpochsEnum, /*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(50))), {
1246
1246
  nullable: true,
1247
1247
  default: () => "auto"
1248
1248
  })
@@ -1255,20 +1255,20 @@ export class FineTuneDPOMethodHyperparametersBatchSizeEnum extends /*#__PURE__*/
1255
1255
  export class FineTuneDPOMethodHyperparametersLearningRateMultiplierEnum extends /*#__PURE__*/S.Literal("auto") {}
1256
1256
  export class FineTuneDPOMethodHyperparametersNEpochsEnum extends /*#__PURE__*/S.Literal("auto") {}
1257
1257
  export class FineTuneDPOMethod extends /*#__PURE__*/S.Struct({
1258
- "hyperparameters": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
1259
- "beta": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(FineTuneDPOMethodHyperparametersBetaEnum, /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThan(0), /*#__PURE__*/S.lessThanOrEqualTo(2))), {
1258
+ "hyperparameters": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
1259
+ "beta": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(FineTuneDPOMethodHyperparametersBetaEnum, /*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThan(0), /*#__PURE__*/S.lessThanOrEqualTo(2))), {
1260
1260
  nullable: true,
1261
1261
  default: () => "auto"
1262
1262
  }),
1263
- "batch_size": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(FineTuneDPOMethodHyperparametersBatchSizeEnum, /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(256))), {
1263
+ "batch_size": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(FineTuneDPOMethodHyperparametersBatchSizeEnum, /*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(256))), {
1264
1264
  nullable: true,
1265
1265
  default: () => "auto"
1266
1266
  }),
1267
- "learning_rate_multiplier": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(FineTuneDPOMethodHyperparametersLearningRateMultiplierEnum, /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThan(0))), {
1267
+ "learning_rate_multiplier": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(FineTuneDPOMethodHyperparametersLearningRateMultiplierEnum, /*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThan(0))), {
1268
1268
  nullable: true,
1269
1269
  default: () => "auto"
1270
1270
  }),
1271
- "n_epochs": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(FineTuneDPOMethodHyperparametersNEpochsEnum, /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(50))), {
1271
+ "n_epochs": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(FineTuneDPOMethodHyperparametersNEpochsEnum, /*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(50))), {
1272
1272
  nullable: true,
1273
1273
  default: () => "auto"
1274
1274
  })
@@ -1290,7 +1290,7 @@ export class FineTuneMethod extends /*#__PURE__*/S.Struct({
1290
1290
  export class FineTuningJob extends /*#__PURE__*/S.Struct({
1291
1291
  "id": S.String,
1292
1292
  "created_at": S.Int,
1293
- "error": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Struct({
1293
+ "error": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Struct({
1294
1294
  "code": S.String,
1295
1295
  "message": S.String,
1296
1296
  "param": /*#__PURE__*/S.NullOr(S.String)
@@ -1298,15 +1298,15 @@ export class FineTuningJob extends /*#__PURE__*/S.Struct({
1298
1298
  "fine_tuned_model": /*#__PURE__*/S.NullOr(S.String),
1299
1299
  "finished_at": /*#__PURE__*/S.NullOr(S.Int),
1300
1300
  "hyperparameters": /*#__PURE__*/S.Struct({
1301
- "batch_size": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(FineTuningJobHyperparametersBatchSizeEnum, /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(256))), {
1301
+ "batch_size": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(FineTuningJobHyperparametersBatchSizeEnum, /*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(256))), {
1302
1302
  nullable: true,
1303
1303
  default: () => "auto"
1304
1304
  }),
1305
- "learning_rate_multiplier": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(FineTuningJobHyperparametersLearningRateMultiplierEnum, /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThan(0))), {
1305
+ "learning_rate_multiplier": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(FineTuningJobHyperparametersLearningRateMultiplierEnum, /*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThan(0))), {
1306
1306
  nullable: true,
1307
1307
  default: () => "auto"
1308
1308
  }),
1309
- "n_epochs": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(FineTuningJobHyperparametersNEpochsEnum, /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(50))), {
1309
+ "n_epochs": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(FineTuningJobHyperparametersNEpochsEnum, /*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(50))), {
1310
1310
  nullable: true,
1311
1311
  default: () => "auto"
1312
1312
  })
@@ -1319,7 +1319,7 @@ export class FineTuningJob extends /*#__PURE__*/S.Struct({
1319
1319
  "trained_tokens": /*#__PURE__*/S.NullOr(S.Int),
1320
1320
  "training_file": S.String,
1321
1321
  "validation_file": /*#__PURE__*/S.NullOr(S.String),
1322
- "integrations": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(FineTuningIntegration).pipe( /*#__PURE__*/S.maxItems(5)), {
1322
+ "integrations": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(FineTuningIntegration).pipe(/*#__PURE__*/S.maxItems(5)), {
1323
1323
  nullable: true
1324
1324
  }),
1325
1325
  "seed": S.Int,
@@ -1346,29 +1346,29 @@ export class CreateFineTuningJobRequestHyperparametersNEpochsEnum extends /*#__P
1346
1346
  export class CreateFineTuningJobRequest extends /*#__PURE__*/S.Class("CreateFineTuningJobRequest")({
1347
1347
  "model": /*#__PURE__*/S.Union(S.String, CreateFineTuningJobRequestModelEnum),
1348
1348
  "training_file": S.String,
1349
- "hyperparameters": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
1350
- "batch_size": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(CreateFineTuningJobRequestHyperparametersBatchSizeEnum, /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(256))), {
1349
+ "hyperparameters": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
1350
+ "batch_size": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(CreateFineTuningJobRequestHyperparametersBatchSizeEnum, /*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(256))), {
1351
1351
  nullable: true,
1352
1352
  default: () => "auto"
1353
1353
  }),
1354
- "learning_rate_multiplier": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(CreateFineTuningJobRequestHyperparametersLearningRateMultiplierEnum, /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThan(0))), {
1354
+ "learning_rate_multiplier": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(CreateFineTuningJobRequestHyperparametersLearningRateMultiplierEnum, /*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThan(0))), {
1355
1355
  nullable: true,
1356
1356
  default: () => "auto"
1357
1357
  }),
1358
- "n_epochs": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(CreateFineTuningJobRequestHyperparametersNEpochsEnum, /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(50))), {
1358
+ "n_epochs": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(CreateFineTuningJobRequestHyperparametersNEpochsEnum, /*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(50))), {
1359
1359
  nullable: true,
1360
1360
  default: () => "auto"
1361
1361
  })
1362
1362
  }), {
1363
1363
  nullable: true
1364
1364
  }),
1365
- "suffix": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.NullOr( /*#__PURE__*/S.String.pipe( /*#__PURE__*/S.minLength(1), /*#__PURE__*/S.maxLength(64))), {
1365
+ "suffix": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.NullOr(/*#__PURE__*/S.String.pipe(/*#__PURE__*/S.minLength(1), /*#__PURE__*/S.maxLength(64))), {
1366
1366
  default: () => null
1367
1367
  }),
1368
1368
  "validation_file": /*#__PURE__*/S.optionalWith(S.String, {
1369
1369
  nullable: true
1370
1370
  }),
1371
- "integrations": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
1371
+ "integrations": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
1372
1372
  "type": /*#__PURE__*/S.Literal("wandb"),
1373
1373
  "wandb": /*#__PURE__*/S.Struct({
1374
1374
  "project": S.String,
@@ -1378,14 +1378,14 @@ export class CreateFineTuningJobRequest extends /*#__PURE__*/S.Class("CreateFine
1378
1378
  "entity": /*#__PURE__*/S.optionalWith(S.String, {
1379
1379
  nullable: true
1380
1380
  }),
1381
- "tags": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
1381
+ "tags": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
1382
1382
  nullable: true
1383
1383
  })
1384
1384
  })
1385
1385
  })), {
1386
1386
  nullable: true
1387
1387
  }),
1388
- "seed": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2147483647)), {
1388
+ "seed": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2147483647)), {
1389
1389
  nullable: true
1390
1390
  }),
1391
1391
  "method": /*#__PURE__*/S.optionalWith(FineTuneMethod, {
@@ -1469,7 +1469,7 @@ export class FineTuningJobEvent extends /*#__PURE__*/S.Struct({
1469
1469
  "type": /*#__PURE__*/S.optionalWith(FineTuningJobEventType, {
1470
1470
  nullable: true
1471
1471
  }),
1472
- "data": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Record({
1472
+ "data": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Record({
1473
1473
  key: S.String,
1474
1474
  value: S.Unknown
1475
1475
  }), {
@@ -1504,11 +1504,11 @@ export class CreateImageRequestSize extends /*#__PURE__*/S.Literal("256x256", "5
1504
1504
  export class CreateImageRequestStyle extends /*#__PURE__*/S.Literal("vivid", "natural") {}
1505
1505
  export class CreateImageRequest extends /*#__PURE__*/S.Class("CreateImageRequest")({
1506
1506
  "prompt": S.String,
1507
- "model": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(S.String, CreateImageRequestModelEnum), {
1507
+ "model": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(S.String, CreateImageRequestModelEnum), {
1508
1508
  nullable: true,
1509
1509
  default: () => "dall-e-2"
1510
1510
  }),
1511
- "n": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(10)), {
1511
+ "n": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(10)), {
1512
1512
  nullable: true,
1513
1513
  default: () => 1
1514
1514
  }),
@@ -1551,7 +1551,7 @@ export class DeleteModelResponse extends /*#__PURE__*/S.Class("DeleteModelRespon
1551
1551
  }) {}
1552
1552
  export class CreateModerationRequestModelEnum extends /*#__PURE__*/S.Literal("omni-moderation-latest", "omni-moderation-2024-09-26", "text-moderation-latest", "text-moderation-stable") {}
1553
1553
  export class CreateModerationRequest extends /*#__PURE__*/S.Class("CreateModerationRequest")({
1554
- "input": /*#__PURE__*/S.Union(S.String, /*#__PURE__*/S.Array(S.String), /*#__PURE__*/S.Array( /*#__PURE__*/S.Union( /*#__PURE__*/S.Struct({
1554
+ "input": /*#__PURE__*/S.Union(S.String, /*#__PURE__*/S.Array(S.String), /*#__PURE__*/S.Array(/*#__PURE__*/S.Union(/*#__PURE__*/S.Struct({
1555
1555
  "type": /*#__PURE__*/S.Literal("image_url"),
1556
1556
  "image_url": /*#__PURE__*/S.Struct({
1557
1557
  "url": S.String
@@ -1560,7 +1560,7 @@ export class CreateModerationRequest extends /*#__PURE__*/S.Class("CreateModerat
1560
1560
  "type": /*#__PURE__*/S.Literal("text"),
1561
1561
  "text": S.String
1562
1562
  })))),
1563
- "model": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(S.String, CreateModerationRequestModelEnum), {
1563
+ "model": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(S.String, CreateModerationRequestModelEnum), {
1564
1564
  nullable: true,
1565
1565
  default: () => "omni-moderation-latest"
1566
1566
  })
@@ -1568,7 +1568,7 @@ export class CreateModerationRequest extends /*#__PURE__*/S.Class("CreateModerat
1568
1568
  export class CreateModerationResponse extends /*#__PURE__*/S.Class("CreateModerationResponse")({
1569
1569
  "id": S.String,
1570
1570
  "model": S.String,
1571
- "results": /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
1571
+ "results": /*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
1572
1572
  "flagged": S.Boolean,
1573
1573
  "categories": /*#__PURE__*/S.Struct({
1574
1574
  "hate": S.Boolean,
@@ -1601,19 +1601,19 @@ export class CreateModerationResponse extends /*#__PURE__*/S.Class("CreateModera
1601
1601
  "violence/graphic": S.Number
1602
1602
  }),
1603
1603
  "category_applied_input_types": /*#__PURE__*/S.Struct({
1604
- "hate": /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("text")),
1605
- "hate/threatening": /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("text")),
1606
- "harassment": /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("text")),
1607
- "harassment/threatening": /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("text")),
1608
- "illicit": /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("text")),
1609
- "illicit/violent": /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("text")),
1610
- "self-harm": /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("text", "image")),
1611
- "self-harm/intent": /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("text", "image")),
1612
- "self-harm/instructions": /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("text", "image")),
1613
- "sexual": /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("text", "image")),
1614
- "sexual/minors": /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("text")),
1615
- "violence": /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("text", "image")),
1616
- "violence/graphic": /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("text", "image"))
1604
+ "hate": /*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("text")),
1605
+ "hate/threatening": /*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("text")),
1606
+ "harassment": /*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("text")),
1607
+ "harassment/threatening": /*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("text")),
1608
+ "illicit": /*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("text")),
1609
+ "illicit/violent": /*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("text")),
1610
+ "self-harm": /*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("text", "image")),
1611
+ "self-harm/intent": /*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("text", "image")),
1612
+ "self-harm/instructions": /*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("text", "image")),
1613
+ "sexual": /*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("text", "image")),
1614
+ "sexual/minors": /*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("text")),
1615
+ "violence": /*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("text", "image")),
1616
+ "violence/graphic": /*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("text", "image"))
1617
1617
  })
1618
1618
  }))
1619
1619
  }) {}
@@ -1650,7 +1650,7 @@ export class AdminApiKey extends /*#__PURE__*/S.Struct({
1650
1650
  "created_at": /*#__PURE__*/S.optionalWith(S.Int, {
1651
1651
  nullable: true
1652
1652
  }),
1653
- "owner": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
1653
+ "owner": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
1654
1654
  "type": /*#__PURE__*/S.optionalWith(S.String, {
1655
1655
  nullable: true
1656
1656
  }),
@@ -1674,7 +1674,7 @@ export class ApiKeyList extends /*#__PURE__*/S.Class("ApiKeyList")({
1674
1674
  "object": /*#__PURE__*/S.optionalWith(S.String, {
1675
1675
  nullable: true
1676
1676
  }),
1677
- "data": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(AdminApiKey), {
1677
+ "data": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(AdminApiKey), {
1678
1678
  nullable: true
1679
1679
  }),
1680
1680
  "has_more": /*#__PURE__*/S.optionalWith(S.Boolean, {
@@ -1715,19 +1715,19 @@ export class ListAuditLogsParams extends /*#__PURE__*/S.Struct({
1715
1715
  "effective_at[lte]": /*#__PURE__*/S.optionalWith(S.Int, {
1716
1716
  nullable: true
1717
1717
  }),
1718
- "project_ids[]": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
1718
+ "project_ids[]": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
1719
1719
  nullable: true
1720
1720
  }),
1721
- "event_types[]": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(AuditLogEventType), {
1721
+ "event_types[]": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(AuditLogEventType), {
1722
1722
  nullable: true
1723
1723
  }),
1724
- "actor_ids[]": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
1724
+ "actor_ids[]": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
1725
1725
  nullable: true
1726
1726
  }),
1727
- "actor_emails[]": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
1727
+ "actor_emails[]": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
1728
1728
  nullable: true
1729
1729
  }),
1730
- "resource_ids[]": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
1730
+ "resource_ids[]": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
1731
1731
  nullable: true
1732
1732
  }),
1733
1733
  "limit": /*#__PURE__*/S.optionalWith(S.Int, {
@@ -1794,7 +1794,7 @@ export class AuditLog extends /*#__PURE__*/S.Struct({
1794
1794
  "id": S.String,
1795
1795
  "type": AuditLogEventType,
1796
1796
  "effective_at": S.Int,
1797
- "project": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
1797
+ "project": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
1798
1798
  "id": /*#__PURE__*/S.optionalWith(S.String, {
1799
1799
  nullable: true
1800
1800
  }),
@@ -1805,12 +1805,12 @@ export class AuditLog extends /*#__PURE__*/S.Struct({
1805
1805
  nullable: true
1806
1806
  }),
1807
1807
  "actor": AuditLogActor,
1808
- "api_key.created": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
1808
+ "api_key.created": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
1809
1809
  "id": /*#__PURE__*/S.optionalWith(S.String, {
1810
1810
  nullable: true
1811
1811
  }),
1812
- "data": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
1813
- "scopes": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
1812
+ "data": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
1813
+ "scopes": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
1814
1814
  nullable: true
1815
1815
  })
1816
1816
  }), {
@@ -1819,12 +1819,12 @@ export class AuditLog extends /*#__PURE__*/S.Struct({
1819
1819
  }), {
1820
1820
  nullable: true
1821
1821
  }),
1822
- "api_key.updated": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
1822
+ "api_key.updated": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
1823
1823
  "id": /*#__PURE__*/S.optionalWith(S.String, {
1824
1824
  nullable: true
1825
1825
  }),
1826
- "changes_requested": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
1827
- "scopes": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
1826
+ "changes_requested": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
1827
+ "scopes": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
1828
1828
  nullable: true
1829
1829
  })
1830
1830
  }), {
@@ -1833,18 +1833,18 @@ export class AuditLog extends /*#__PURE__*/S.Struct({
1833
1833
  }), {
1834
1834
  nullable: true
1835
1835
  }),
1836
- "api_key.deleted": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
1836
+ "api_key.deleted": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
1837
1837
  "id": /*#__PURE__*/S.optionalWith(S.String, {
1838
1838
  nullable: true
1839
1839
  })
1840
1840
  }), {
1841
1841
  nullable: true
1842
1842
  }),
1843
- "invite.sent": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
1843
+ "invite.sent": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
1844
1844
  "id": /*#__PURE__*/S.optionalWith(S.String, {
1845
1845
  nullable: true
1846
1846
  }),
1847
- "data": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
1847
+ "data": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
1848
1848
  "email": /*#__PURE__*/S.optionalWith(S.String, {
1849
1849
  nullable: true
1850
1850
  }),
@@ -1857,21 +1857,21 @@ export class AuditLog extends /*#__PURE__*/S.Struct({
1857
1857
  }), {
1858
1858
  nullable: true
1859
1859
  }),
1860
- "invite.accepted": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
1860
+ "invite.accepted": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
1861
1861
  "id": /*#__PURE__*/S.optionalWith(S.String, {
1862
1862
  nullable: true
1863
1863
  })
1864
1864
  }), {
1865
1865
  nullable: true
1866
1866
  }),
1867
- "invite.deleted": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
1867
+ "invite.deleted": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
1868
1868
  "id": /*#__PURE__*/S.optionalWith(S.String, {
1869
1869
  nullable: true
1870
1870
  })
1871
1871
  }), {
1872
1872
  nullable: true
1873
1873
  }),
1874
- "login.failed": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
1874
+ "login.failed": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
1875
1875
  "error_code": /*#__PURE__*/S.optionalWith(S.String, {
1876
1876
  nullable: true
1877
1877
  }),
@@ -1881,7 +1881,7 @@ export class AuditLog extends /*#__PURE__*/S.Struct({
1881
1881
  }), {
1882
1882
  nullable: true
1883
1883
  }),
1884
- "logout.failed": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
1884
+ "logout.failed": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
1885
1885
  "error_code": /*#__PURE__*/S.optionalWith(S.String, {
1886
1886
  nullable: true
1887
1887
  }),
@@ -1891,11 +1891,11 @@ export class AuditLog extends /*#__PURE__*/S.Struct({
1891
1891
  }), {
1892
1892
  nullable: true
1893
1893
  }),
1894
- "organization.updated": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
1894
+ "organization.updated": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
1895
1895
  "id": /*#__PURE__*/S.optionalWith(S.String, {
1896
1896
  nullable: true
1897
1897
  }),
1898
- "changes_requested": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
1898
+ "changes_requested": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
1899
1899
  "title": /*#__PURE__*/S.optionalWith(S.String, {
1900
1900
  nullable: true
1901
1901
  }),
@@ -1905,7 +1905,7 @@ export class AuditLog extends /*#__PURE__*/S.Struct({
1905
1905
  "name": /*#__PURE__*/S.optionalWith(S.String, {
1906
1906
  nullable: true
1907
1907
  }),
1908
- "settings": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
1908
+ "settings": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
1909
1909
  "threads_ui_visibility": /*#__PURE__*/S.optionalWith(S.String, {
1910
1910
  nullable: true
1911
1911
  }),
@@ -1921,11 +1921,11 @@ export class AuditLog extends /*#__PURE__*/S.Struct({
1921
1921
  }), {
1922
1922
  nullable: true
1923
1923
  }),
1924
- "project.created": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
1924
+ "project.created": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
1925
1925
  "id": /*#__PURE__*/S.optionalWith(S.String, {
1926
1926
  nullable: true
1927
1927
  }),
1928
- "data": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
1928
+ "data": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
1929
1929
  "name": /*#__PURE__*/S.optionalWith(S.String, {
1930
1930
  nullable: true
1931
1931
  }),
@@ -1938,11 +1938,11 @@ export class AuditLog extends /*#__PURE__*/S.Struct({
1938
1938
  }), {
1939
1939
  nullable: true
1940
1940
  }),
1941
- "project.updated": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
1941
+ "project.updated": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
1942
1942
  "id": /*#__PURE__*/S.optionalWith(S.String, {
1943
1943
  nullable: true
1944
1944
  }),
1945
- "changes_requested": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
1945
+ "changes_requested": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
1946
1946
  "title": /*#__PURE__*/S.optionalWith(S.String, {
1947
1947
  nullable: true
1948
1948
  })
@@ -1952,18 +1952,18 @@ export class AuditLog extends /*#__PURE__*/S.Struct({
1952
1952
  }), {
1953
1953
  nullable: true
1954
1954
  }),
1955
- "project.archived": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
1955
+ "project.archived": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
1956
1956
  "id": /*#__PURE__*/S.optionalWith(S.String, {
1957
1957
  nullable: true
1958
1958
  })
1959
1959
  }), {
1960
1960
  nullable: true
1961
1961
  }),
1962
- "rate_limit.updated": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
1962
+ "rate_limit.updated": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
1963
1963
  "id": /*#__PURE__*/S.optionalWith(S.String, {
1964
1964
  nullable: true
1965
1965
  }),
1966
- "changes_requested": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
1966
+ "changes_requested": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
1967
1967
  "max_requests_per_1_minute": /*#__PURE__*/S.optionalWith(S.Int, {
1968
1968
  nullable: true
1969
1969
  }),
@@ -1988,18 +1988,18 @@ export class AuditLog extends /*#__PURE__*/S.Struct({
1988
1988
  }), {
1989
1989
  nullable: true
1990
1990
  }),
1991
- "rate_limit.deleted": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
1991
+ "rate_limit.deleted": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
1992
1992
  "id": /*#__PURE__*/S.optionalWith(S.String, {
1993
1993
  nullable: true
1994
1994
  })
1995
1995
  }), {
1996
1996
  nullable: true
1997
1997
  }),
1998
- "service_account.created": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
1998
+ "service_account.created": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
1999
1999
  "id": /*#__PURE__*/S.optionalWith(S.String, {
2000
2000
  nullable: true
2001
2001
  }),
2002
- "data": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2002
+ "data": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2003
2003
  "role": /*#__PURE__*/S.optionalWith(S.String, {
2004
2004
  nullable: true
2005
2005
  })
@@ -2009,11 +2009,11 @@ export class AuditLog extends /*#__PURE__*/S.Struct({
2009
2009
  }), {
2010
2010
  nullable: true
2011
2011
  }),
2012
- "service_account.updated": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2012
+ "service_account.updated": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2013
2013
  "id": /*#__PURE__*/S.optionalWith(S.String, {
2014
2014
  nullable: true
2015
2015
  }),
2016
- "changes_requested": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2016
+ "changes_requested": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2017
2017
  "role": /*#__PURE__*/S.optionalWith(S.String, {
2018
2018
  nullable: true
2019
2019
  })
@@ -2023,18 +2023,18 @@ export class AuditLog extends /*#__PURE__*/S.Struct({
2023
2023
  }), {
2024
2024
  nullable: true
2025
2025
  }),
2026
- "service_account.deleted": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2026
+ "service_account.deleted": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2027
2027
  "id": /*#__PURE__*/S.optionalWith(S.String, {
2028
2028
  nullable: true
2029
2029
  })
2030
2030
  }), {
2031
2031
  nullable: true
2032
2032
  }),
2033
- "user.added": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2033
+ "user.added": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2034
2034
  "id": /*#__PURE__*/S.optionalWith(S.String, {
2035
2035
  nullable: true
2036
2036
  }),
2037
- "data": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2037
+ "data": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2038
2038
  "role": /*#__PURE__*/S.optionalWith(S.String, {
2039
2039
  nullable: true
2040
2040
  })
@@ -2044,11 +2044,11 @@ export class AuditLog extends /*#__PURE__*/S.Struct({
2044
2044
  }), {
2045
2045
  nullable: true
2046
2046
  }),
2047
- "user.updated": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2047
+ "user.updated": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2048
2048
  "id": /*#__PURE__*/S.optionalWith(S.String, {
2049
2049
  nullable: true
2050
2050
  }),
2051
- "changes_requested": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2051
+ "changes_requested": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2052
2052
  "role": /*#__PURE__*/S.optionalWith(S.String, {
2053
2053
  nullable: true
2054
2054
  })
@@ -2058,7 +2058,7 @@ export class AuditLog extends /*#__PURE__*/S.Struct({
2058
2058
  }), {
2059
2059
  nullable: true
2060
2060
  }),
2061
- "user.deleted": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2061
+ "user.deleted": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2062
2062
  "id": /*#__PURE__*/S.optionalWith(S.String, {
2063
2063
  nullable: true
2064
2064
  })
@@ -2083,10 +2083,10 @@ export class UsageCostsParams extends /*#__PURE__*/S.Struct({
2083
2083
  nullable: true,
2084
2084
  default: () => "1d"
2085
2085
  }),
2086
- "project_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2086
+ "project_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2087
2087
  nullable: true
2088
2088
  }),
2089
- "group_by": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("project_id", "line_item")), {
2089
+ "group_by": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("project_id", "line_item")), {
2090
2090
  nullable: true
2091
2091
  }),
2092
2092
  "limit": /*#__PURE__*/S.optionalWith(S.Int, {
@@ -2247,7 +2247,7 @@ export class UsageCodeInterpreterSessionsResult extends /*#__PURE__*/S.Struct({
2247
2247
  export class CostsResultObject extends /*#__PURE__*/S.Literal("organization.costs.result") {}
2248
2248
  export class CostsResult extends /*#__PURE__*/S.Struct({
2249
2249
  "object": CostsResultObject,
2250
- "amount": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2250
+ "amount": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2251
2251
  "value": /*#__PURE__*/S.optionalWith(S.Number, {
2252
2252
  nullable: true
2253
2253
  }),
@@ -2268,7 +2268,7 @@ export class UsageTimeBucket extends /*#__PURE__*/S.Struct({
2268
2268
  "object": UsageTimeBucketObject,
2269
2269
  "start_time": S.Int,
2270
2270
  "end_time": S.Int,
2271
- "result": /*#__PURE__*/S.Array( /*#__PURE__*/S.Union(UsageCompletionsResult, UsageEmbeddingsResult, UsageModerationsResult, UsageImagesResult, UsageAudioSpeechesResult, UsageAudioTranscriptionsResult, UsageVectorStoresResult, UsageCodeInterpreterSessionsResult, CostsResult))
2271
+ "result": /*#__PURE__*/S.Array(/*#__PURE__*/S.Union(UsageCompletionsResult, UsageEmbeddingsResult, UsageModerationsResult, UsageImagesResult, UsageAudioSpeechesResult, UsageAudioTranscriptionsResult, UsageVectorStoresResult, UsageCodeInterpreterSessionsResult, CostsResult))
2272
2272
  }) {}
2273
2273
  export class UsageResponse extends /*#__PURE__*/S.Class("UsageResponse")({
2274
2274
  "object": UsageResponseObject,
@@ -2300,11 +2300,11 @@ export class Invite extends /*#__PURE__*/S.Struct({
2300
2300
  "accepted_at": /*#__PURE__*/S.optionalWith(S.Int, {
2301
2301
  nullable: true
2302
2302
  }),
2303
- "projects": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
2303
+ "projects": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
2304
2304
  "id": /*#__PURE__*/S.optionalWith(S.String, {
2305
2305
  nullable: true
2306
2306
  }),
2307
- "role": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Literal("member", "owner"), {
2307
+ "role": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Literal("member", "owner"), {
2308
2308
  nullable: true
2309
2309
  })
2310
2310
  })), {
@@ -2328,7 +2328,7 @@ export class InviteRequestRole extends /*#__PURE__*/S.Literal("reader", "owner")
2328
2328
  export class InviteRequest extends /*#__PURE__*/S.Class("InviteRequest")({
2329
2329
  "email": S.String,
2330
2330
  "role": InviteRequestRole,
2331
- "projects": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
2331
+ "projects": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
2332
2332
  "id": S.String,
2333
2333
  "role": /*#__PURE__*/S.Literal("member", "owner")
2334
2334
  })), {
@@ -2596,19 +2596,19 @@ export class UsageAudioSpeechesParams extends /*#__PURE__*/S.Struct({
2596
2596
  nullable: true,
2597
2597
  default: () => "1d"
2598
2598
  }),
2599
- "project_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2599
+ "project_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2600
2600
  nullable: true
2601
2601
  }),
2602
- "user_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2602
+ "user_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2603
2603
  nullable: true
2604
2604
  }),
2605
- "api_key_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2605
+ "api_key_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2606
2606
  nullable: true
2607
2607
  }),
2608
- "models": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2608
+ "models": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2609
2609
  nullable: true
2610
2610
  }),
2611
- "group_by": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("project_id", "user_id", "api_key_id", "model")), {
2611
+ "group_by": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("project_id", "user_id", "api_key_id", "model")), {
2612
2612
  nullable: true
2613
2613
  }),
2614
2614
  "limit": /*#__PURE__*/S.optionalWith(S.Int, {
@@ -2628,19 +2628,19 @@ export class UsageAudioTranscriptionsParams extends /*#__PURE__*/S.Struct({
2628
2628
  nullable: true,
2629
2629
  default: () => "1d"
2630
2630
  }),
2631
- "project_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2631
+ "project_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2632
2632
  nullable: true
2633
2633
  }),
2634
- "user_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2634
+ "user_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2635
2635
  nullable: true
2636
2636
  }),
2637
- "api_key_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2637
+ "api_key_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2638
2638
  nullable: true
2639
2639
  }),
2640
- "models": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2640
+ "models": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2641
2641
  nullable: true
2642
2642
  }),
2643
- "group_by": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("project_id", "user_id", "api_key_id", "model")), {
2643
+ "group_by": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("project_id", "user_id", "api_key_id", "model")), {
2644
2644
  nullable: true
2645
2645
  }),
2646
2646
  "limit": /*#__PURE__*/S.optionalWith(S.Int, {
@@ -2660,10 +2660,10 @@ export class UsageCodeInterpreterSessionsParams extends /*#__PURE__*/S.Struct({
2660
2660
  nullable: true,
2661
2661
  default: () => "1d"
2662
2662
  }),
2663
- "project_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2663
+ "project_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2664
2664
  nullable: true
2665
2665
  }),
2666
- "group_by": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("project_id")), {
2666
+ "group_by": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("project_id")), {
2667
2667
  nullable: true
2668
2668
  }),
2669
2669
  "limit": /*#__PURE__*/S.optionalWith(S.Int, {
@@ -2683,22 +2683,22 @@ export class UsageCompletionsParams extends /*#__PURE__*/S.Struct({
2683
2683
  nullable: true,
2684
2684
  default: () => "1d"
2685
2685
  }),
2686
- "project_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2686
+ "project_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2687
2687
  nullable: true
2688
2688
  }),
2689
- "user_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2689
+ "user_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2690
2690
  nullable: true
2691
2691
  }),
2692
- "api_key_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2692
+ "api_key_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2693
2693
  nullable: true
2694
2694
  }),
2695
- "models": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2695
+ "models": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2696
2696
  nullable: true
2697
2697
  }),
2698
2698
  "batch": /*#__PURE__*/S.optionalWith(S.Boolean, {
2699
2699
  nullable: true
2700
2700
  }),
2701
- "group_by": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("project_id", "user_id", "api_key_id", "model", "batch")), {
2701
+ "group_by": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("project_id", "user_id", "api_key_id", "model", "batch")), {
2702
2702
  nullable: true
2703
2703
  }),
2704
2704
  "limit": /*#__PURE__*/S.optionalWith(S.Int, {
@@ -2718,19 +2718,19 @@ export class UsageEmbeddingsParams extends /*#__PURE__*/S.Struct({
2718
2718
  nullable: true,
2719
2719
  default: () => "1d"
2720
2720
  }),
2721
- "project_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2721
+ "project_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2722
2722
  nullable: true
2723
2723
  }),
2724
- "user_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2724
+ "user_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2725
2725
  nullable: true
2726
2726
  }),
2727
- "api_key_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2727
+ "api_key_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2728
2728
  nullable: true
2729
2729
  }),
2730
- "models": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2730
+ "models": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2731
2731
  nullable: true
2732
2732
  }),
2733
- "group_by": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("project_id", "user_id", "api_key_id", "model")), {
2733
+ "group_by": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("project_id", "user_id", "api_key_id", "model")), {
2734
2734
  nullable: true
2735
2735
  }),
2736
2736
  "limit": /*#__PURE__*/S.optionalWith(S.Int, {
@@ -2750,25 +2750,25 @@ export class UsageImagesParams extends /*#__PURE__*/S.Struct({
2750
2750
  nullable: true,
2751
2751
  default: () => "1d"
2752
2752
  }),
2753
- "sources": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("image.generation", "image.edit", "image.variation")), {
2753
+ "sources": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("image.generation", "image.edit", "image.variation")), {
2754
2754
  nullable: true
2755
2755
  }),
2756
- "sizes": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("256x256", "512x512", "1024x1024", "1792x1792", "1024x1792")), {
2756
+ "sizes": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("256x256", "512x512", "1024x1024", "1792x1792", "1024x1792")), {
2757
2757
  nullable: true
2758
2758
  }),
2759
- "project_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2759
+ "project_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2760
2760
  nullable: true
2761
2761
  }),
2762
- "user_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2762
+ "user_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2763
2763
  nullable: true
2764
2764
  }),
2765
- "api_key_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2765
+ "api_key_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2766
2766
  nullable: true
2767
2767
  }),
2768
- "models": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2768
+ "models": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2769
2769
  nullable: true
2770
2770
  }),
2771
- "group_by": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("project_id", "user_id", "api_key_id", "model", "size", "source")), {
2771
+ "group_by": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("project_id", "user_id", "api_key_id", "model", "size", "source")), {
2772
2772
  nullable: true
2773
2773
  }),
2774
2774
  "limit": /*#__PURE__*/S.optionalWith(S.Int, {
@@ -2788,19 +2788,19 @@ export class UsageModerationsParams extends /*#__PURE__*/S.Struct({
2788
2788
  nullable: true,
2789
2789
  default: () => "1d"
2790
2790
  }),
2791
- "project_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2791
+ "project_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2792
2792
  nullable: true
2793
2793
  }),
2794
- "user_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2794
+ "user_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2795
2795
  nullable: true
2796
2796
  }),
2797
- "api_key_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2797
+ "api_key_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2798
2798
  nullable: true
2799
2799
  }),
2800
- "models": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2800
+ "models": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2801
2801
  nullable: true
2802
2802
  }),
2803
- "group_by": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("project_id", "user_id", "api_key_id", "model")), {
2803
+ "group_by": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("project_id", "user_id", "api_key_id", "model")), {
2804
2804
  nullable: true
2805
2805
  }),
2806
2806
  "limit": /*#__PURE__*/S.optionalWith(S.Int, {
@@ -2820,10 +2820,10 @@ export class UsageVectorStoresParams extends /*#__PURE__*/S.Struct({
2820
2820
  nullable: true,
2821
2821
  default: () => "1d"
2822
2822
  }),
2823
- "project_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2823
+ "project_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2824
2824
  nullable: true
2825
2825
  }),
2826
- "group_by": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("project_id")), {
2826
+ "group_by": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("project_id")), {
2827
2827
  nullable: true
2828
2828
  }),
2829
2829
  "limit": /*#__PURE__*/S.optionalWith(S.Int, {
@@ -2841,7 +2841,7 @@ export class ListUsersParams extends /*#__PURE__*/S.Struct({
2841
2841
  "after": /*#__PURE__*/S.optionalWith(S.String, {
2842
2842
  nullable: true
2843
2843
  }),
2844
- "emails": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2844
+ "emails": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2845
2845
  nullable: true
2846
2846
  })
2847
2847
  }) {}
@@ -2898,7 +2898,7 @@ export class RealtimeSessionCreateRequest extends /*#__PURE__*/S.Class("Realtime
2898
2898
  nullable: true,
2899
2899
  default: () => "pcm16"
2900
2900
  }),
2901
- "input_audio_transcription": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2901
+ "input_audio_transcription": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2902
2902
  "model": /*#__PURE__*/S.optionalWith(S.String, {
2903
2903
  nullable: true
2904
2904
  }),
@@ -2911,7 +2911,7 @@ export class RealtimeSessionCreateRequest extends /*#__PURE__*/S.Class("Realtime
2911
2911
  }), {
2912
2912
  nullable: true
2913
2913
  }),
2914
- "turn_detection": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2914
+ "turn_detection": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2915
2915
  "type": /*#__PURE__*/S.optionalWith(RealtimeSessionCreateRequestTurnDetectionType, {
2916
2916
  nullable: true,
2917
2917
  default: () => "server_vad"
@@ -2940,15 +2940,15 @@ export class RealtimeSessionCreateRequest extends /*#__PURE__*/S.Class("Realtime
2940
2940
  }), {
2941
2941
  nullable: true
2942
2942
  }),
2943
- "input_audio_noise_reduction": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Struct({
2943
+ "input_audio_noise_reduction": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.NullOr(/*#__PURE__*/S.Struct({
2944
2944
  "type": /*#__PURE__*/S.optionalWith(RealtimeSessionCreateRequestInputAudioNoiseReductionType, {
2945
2945
  nullable: true
2946
2946
  })
2947
2947
  })), {
2948
2948
  default: () => null
2949
2949
  }),
2950
- "tools": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
2951
- "type": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Literal("function"), {
2950
+ "tools": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
2951
+ "type": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Literal("function"), {
2952
2952
  nullable: true
2953
2953
  }),
2954
2954
  "name": /*#__PURE__*/S.optionalWith(S.String, {
@@ -2957,7 +2957,7 @@ export class RealtimeSessionCreateRequest extends /*#__PURE__*/S.Class("Realtime
2957
2957
  "description": /*#__PURE__*/S.optionalWith(S.String, {
2958
2958
  nullable: true
2959
2959
  }),
2960
- "parameters": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Record({
2960
+ "parameters": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Record({
2961
2961
  key: S.String,
2962
2962
  value: S.Unknown
2963
2963
  }), {
@@ -2974,7 +2974,7 @@ export class RealtimeSessionCreateRequest extends /*#__PURE__*/S.Class("Realtime
2974
2974
  nullable: true,
2975
2975
  default: () => 0.8
2976
2976
  }),
2977
- "max_response_output_tokens": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(S.Int, RealtimeSessionCreateRequestMaxResponseOutputTokensEnum), {
2977
+ "max_response_output_tokens": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(S.Int, RealtimeSessionCreateRequestMaxResponseOutputTokensEnum), {
2978
2978
  nullable: true
2979
2979
  })
2980
2980
  }) {}
@@ -2996,14 +2996,14 @@ export class RealtimeSessionCreateResponse extends /*#__PURE__*/S.Class("Realtim
2996
2996
  "output_audio_format": /*#__PURE__*/S.optionalWith(S.String, {
2997
2997
  nullable: true
2998
2998
  }),
2999
- "input_audio_transcription": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2999
+ "input_audio_transcription": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
3000
3000
  "model": /*#__PURE__*/S.optionalWith(S.String, {
3001
3001
  nullable: true
3002
3002
  })
3003
3003
  }), {
3004
3004
  nullable: true
3005
3005
  }),
3006
- "turn_detection": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
3006
+ "turn_detection": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
3007
3007
  "type": /*#__PURE__*/S.optionalWith(S.String, {
3008
3008
  nullable: true
3009
3009
  }),
@@ -3019,8 +3019,8 @@ export class RealtimeSessionCreateResponse extends /*#__PURE__*/S.Class("Realtim
3019
3019
  }), {
3020
3020
  nullable: true
3021
3021
  }),
3022
- "tools": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
3023
- "type": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Literal("function"), {
3022
+ "tools": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
3023
+ "type": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Literal("function"), {
3024
3024
  nullable: true
3025
3025
  }),
3026
3026
  "name": /*#__PURE__*/S.optionalWith(S.String, {
@@ -3029,7 +3029,7 @@ export class RealtimeSessionCreateResponse extends /*#__PURE__*/S.Class("Realtim
3029
3029
  "description": /*#__PURE__*/S.optionalWith(S.String, {
3030
3030
  nullable: true
3031
3031
  }),
3032
- "parameters": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Record({
3032
+ "parameters": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Record({
3033
3033
  key: S.String,
3034
3034
  value: S.Unknown
3035
3035
  }), {
@@ -3044,7 +3044,7 @@ export class RealtimeSessionCreateResponse extends /*#__PURE__*/S.Class("Realtim
3044
3044
  "temperature": /*#__PURE__*/S.optionalWith(S.Number, {
3045
3045
  nullable: true
3046
3046
  }),
3047
- "max_response_output_tokens": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(S.Int, RealtimeSessionCreateResponseMaxResponseOutputTokensEnum), {
3047
+ "max_response_output_tokens": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(S.Int, RealtimeSessionCreateResponseMaxResponseOutputTokensEnum), {
3048
3048
  nullable: true
3049
3049
  })
3050
3050
  }) {}
@@ -3058,7 +3058,7 @@ export class RealtimeTranscriptionSessionCreateRequest extends /*#__PURE__*/S.Cl
3058
3058
  nullable: true,
3059
3059
  default: () => "pcm16"
3060
3060
  }),
3061
- "input_audio_transcription": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
3061
+ "input_audio_transcription": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
3062
3062
  "model": /*#__PURE__*/S.optionalWith(RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel, {
3063
3063
  nullable: true
3064
3064
  }),
@@ -3071,7 +3071,7 @@ export class RealtimeTranscriptionSessionCreateRequest extends /*#__PURE__*/S.Cl
3071
3071
  }), {
3072
3072
  nullable: true
3073
3073
  }),
3074
- "turn_detection": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
3074
+ "turn_detection": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
3075
3075
  "type": /*#__PURE__*/S.optionalWith(RealtimeTranscriptionSessionCreateRequestTurnDetectionType, {
3076
3076
  nullable: true,
3077
3077
  default: () => "server_vad"
@@ -3100,14 +3100,14 @@ export class RealtimeTranscriptionSessionCreateRequest extends /*#__PURE__*/S.Cl
3100
3100
  }), {
3101
3101
  nullable: true
3102
3102
  }),
3103
- "input_audio_noise_reduction": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Struct({
3103
+ "input_audio_noise_reduction": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.NullOr(/*#__PURE__*/S.Struct({
3104
3104
  "type": /*#__PURE__*/S.optionalWith(RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType, {
3105
3105
  nullable: true
3106
3106
  })
3107
3107
  })), {
3108
3108
  default: () => null
3109
3109
  }),
3110
- "include": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
3110
+ "include": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
3111
3111
  nullable: true
3112
3112
  })
3113
3113
  }) {}
@@ -3120,7 +3120,7 @@ export class RealtimeTranscriptionSessionCreateResponse extends /*#__PURE__*/S.C
3120
3120
  "input_audio_format": /*#__PURE__*/S.optionalWith(S.String, {
3121
3121
  nullable: true
3122
3122
  }),
3123
- "input_audio_transcription": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
3123
+ "input_audio_transcription": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
3124
3124
  "model": /*#__PURE__*/S.optionalWith(RealtimeTranscriptionSessionCreateResponseInputAudioTranscriptionModel, {
3125
3125
  nullable: true
3126
3126
  }),
@@ -3133,7 +3133,7 @@ export class RealtimeTranscriptionSessionCreateResponse extends /*#__PURE__*/S.C
3133
3133
  }), {
3134
3134
  nullable: true
3135
3135
  }),
3136
- "turn_detection": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
3136
+ "turn_detection": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
3137
3137
  "type": /*#__PURE__*/S.optionalWith(S.String, {
3138
3138
  nullable: true
3139
3139
  }),
@@ -3258,7 +3258,7 @@ export class FileSearchToolCall extends /*#__PURE__*/S.Struct({
3258
3258
  "type": FileSearchToolCallType,
3259
3259
  "status": FileSearchToolCallStatus,
3260
3260
  "queries": /*#__PURE__*/S.Array(S.String),
3261
- "results": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
3261
+ "results": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
3262
3262
  "file_id": /*#__PURE__*/S.optionalWith(S.String, {
3263
3263
  nullable: true
3264
3264
  }),
@@ -3367,7 +3367,7 @@ export class ComputerToolCallOutput extends /*#__PURE__*/S.Struct({
3367
3367
  nullable: true
3368
3368
  }),
3369
3369
  "call_id": S.String,
3370
- "acknowledged_safety_checks": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(ComputerToolCallSafetyCheck), {
3370
+ "acknowledged_safety_checks": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(ComputerToolCallSafetyCheck), {
3371
3371
  nullable: true
3372
3372
  }),
3373
3373
  "output": ComputerScreenshotImage,
@@ -3414,7 +3414,7 @@ export class ReasoningItemStatus extends /*#__PURE__*/S.Literal("in_progress", "
3414
3414
  export class ReasoningItem extends /*#__PURE__*/S.Struct({
3415
3415
  "type": ReasoningItemType,
3416
3416
  "id": S.String,
3417
- "summary": /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
3417
+ "summary": /*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
3418
3418
  "type": /*#__PURE__*/S.Literal("summary_text"),
3419
3419
  "text": S.String
3420
3420
  })),
@@ -3474,7 +3474,7 @@ export class ComparisonFilter extends /*#__PURE__*/S.Struct({
3474
3474
  export class CompoundFilterType extends /*#__PURE__*/S.Literal("and", "or") {}
3475
3475
  export class CompoundFilter extends /*#__PURE__*/S.Struct({
3476
3476
  "type": CompoundFilterType,
3477
- "filters": /*#__PURE__*/S.Array( /*#__PURE__*/S.Union(ComparisonFilter, /*#__PURE__*/S.Record({
3477
+ "filters": /*#__PURE__*/S.Array(/*#__PURE__*/S.Union(ComparisonFilter, /*#__PURE__*/S.Record({
3478
3478
  key: S.String,
3479
3479
  value: S.Unknown
3480
3480
  })))
@@ -3486,15 +3486,15 @@ export class FileSearchTool extends /*#__PURE__*/S.Struct({
3486
3486
  "max_num_results": /*#__PURE__*/S.optionalWith(S.Int, {
3487
3487
  nullable: true
3488
3488
  }),
3489
- "filters": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(ComparisonFilter, CompoundFilter), {
3489
+ "filters": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(ComparisonFilter, CompoundFilter), {
3490
3490
  nullable: true
3491
3491
  }),
3492
- "ranking_options": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
3492
+ "ranking_options": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
3493
3493
  "ranker": /*#__PURE__*/S.optionalWith(FileSearchToolRankingOptionsRanker, {
3494
3494
  nullable: true,
3495
3495
  default: () => "auto"
3496
3496
  }),
3497
- "score_threshold": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
3497
+ "score_threshold": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
3498
3498
  nullable: true,
3499
3499
  default: () => 0
3500
3500
  })
@@ -3564,7 +3564,7 @@ export class ToolChoiceFunction extends /*#__PURE__*/S.Struct({
3564
3564
  export class CreateResponseTruncation extends /*#__PURE__*/S.Literal("auto", "disabled") {}
3565
3565
  export class CreateResponse extends /*#__PURE__*/S.Class("CreateResponse")({
3566
3566
  "input": /*#__PURE__*/S.Union(S.String, /*#__PURE__*/S.Array(InputItem)),
3567
- "include": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(Includable), {
3567
+ "include": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(Includable), {
3568
3568
  nullable: true
3569
3569
  }),
3570
3570
  "parallel_tool_calls": /*#__PURE__*/S.optionalWith(S.Boolean, {
@@ -3592,17 +3592,17 @@ export class CreateResponse extends /*#__PURE__*/S.Class("CreateResponse")({
3592
3592
  "instructions": /*#__PURE__*/S.optionalWith(S.String, {
3593
3593
  nullable: true
3594
3594
  }),
3595
- "text": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
3595
+ "text": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
3596
3596
  "format": /*#__PURE__*/S.optionalWith(TextResponseFormatConfiguration, {
3597
3597
  nullable: true
3598
3598
  })
3599
3599
  }), {
3600
3600
  nullable: true
3601
3601
  }),
3602
- "tools": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(Tool), {
3602
+ "tools": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(Tool), {
3603
3603
  nullable: true
3604
3604
  }),
3605
- "tool_choice": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(ToolChoiceOptions, ToolChoiceTypes, ToolChoiceFunction), {
3605
+ "tool_choice": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(ToolChoiceOptions, ToolChoiceTypes, ToolChoiceFunction), {
3606
3606
  nullable: true
3607
3607
  }),
3608
3608
  "truncation": /*#__PURE__*/S.optionalWith(CreateResponseTruncation, {
@@ -3612,11 +3612,11 @@ export class CreateResponse extends /*#__PURE__*/S.Class("CreateResponse")({
3612
3612
  "metadata": /*#__PURE__*/S.optionalWith(Metadata, {
3613
3613
  nullable: true
3614
3614
  }),
3615
- "temperature": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
3615
+ "temperature": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
3616
3616
  nullable: true,
3617
3617
  default: () => 1
3618
3618
  }),
3619
- "top_p": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
3619
+ "top_p": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
3620
3620
  nullable: true,
3621
3621
  default: () => 1
3622
3622
  }),
@@ -3653,7 +3653,7 @@ export class Response extends /*#__PURE__*/S.Class("Response")({
3653
3653
  }),
3654
3654
  "created_at": S.Number,
3655
3655
  "error": /*#__PURE__*/S.NullOr(ResponseError),
3656
- "incomplete_details": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Struct({
3656
+ "incomplete_details": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Struct({
3657
3657
  "reason": /*#__PURE__*/S.optionalWith(ResponseIncompleteDetailsReason, {
3658
3658
  nullable: true
3659
3659
  })
@@ -3677,7 +3677,7 @@ export class Response extends /*#__PURE__*/S.Class("Response")({
3677
3677
  nullable: true
3678
3678
  }),
3679
3679
  "instructions": /*#__PURE__*/S.NullOr(S.String),
3680
- "text": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
3680
+ "text": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
3681
3681
  "format": /*#__PURE__*/S.optionalWith(TextResponseFormatConfiguration, {
3682
3682
  nullable: true
3683
3683
  })
@@ -3698,7 +3698,7 @@ export class Response extends /*#__PURE__*/S.Class("Response")({
3698
3698
  })
3699
3699
  }) {}
3700
3700
  export class GetResponseParams extends /*#__PURE__*/S.Struct({
3701
- "include": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(Includable), {
3701
+ "include": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(Includable), {
3702
3702
  nullable: true
3703
3703
  })
3704
3704
  }) {}
@@ -3739,7 +3739,7 @@ export class ComputerToolCallOutputResource extends /*#__PURE__*/S.Struct({
3739
3739
  "id": S.String,
3740
3740
  "type": /*#__PURE__*/ComputerToolCallOutputResourceType.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => "computer_call_output")),
3741
3741
  "call_id": S.String,
3742
- "acknowledged_safety_checks": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(ComputerToolCallSafetyCheck), {
3742
+ "acknowledged_safety_checks": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(ComputerToolCallSafetyCheck), {
3743
3743
  nullable: true
3744
3744
  }),
3745
3745
  "output": ComputerScreenshotImage,
@@ -3814,12 +3814,12 @@ export class AssistantToolsFileSearchTypeOnly extends /*#__PURE__*/S.Struct({
3814
3814
  }) {}
3815
3815
  export class CreateMessageRequest extends /*#__PURE__*/S.Struct({
3816
3816
  "role": CreateMessageRequestRole,
3817
- "content": /*#__PURE__*/S.Union(S.String, /*#__PURE__*/S.NonEmptyArray( /*#__PURE__*/S.Union(MessageContentImageFileObject, MessageContentImageUrlObject, MessageRequestContentTextObject))),
3818
- "attachments": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
3817
+ "content": /*#__PURE__*/S.Union(S.String, /*#__PURE__*/S.NonEmptyArray(/*#__PURE__*/S.Union(MessageContentImageFileObject, MessageContentImageUrlObject, MessageRequestContentTextObject))),
3818
+ "attachments": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
3819
3819
  "file_id": /*#__PURE__*/S.optionalWith(S.String, {
3820
3820
  nullable: true
3821
3821
  }),
3822
- "tools": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Union(AssistantToolsCode, AssistantToolsFileSearchTypeOnly)), {
3822
+ "tools": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Union(AssistantToolsCode, AssistantToolsFileSearchTypeOnly)), {
3823
3823
  nullable: true
3824
3824
  })
3825
3825
  })), {
@@ -3830,23 +3830,23 @@ export class CreateMessageRequest extends /*#__PURE__*/S.Struct({
3830
3830
  })
3831
3831
  }) {}
3832
3832
  export class CreateThreadRequest extends /*#__PURE__*/S.Class("CreateThreadRequest")({
3833
- "messages": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(CreateMessageRequest), {
3833
+ "messages": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(CreateMessageRequest), {
3834
3834
  nullable: true
3835
3835
  }),
3836
- "tool_resources": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
3837
- "code_interpreter": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
3838
- "file_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.maxItems(20)), {
3836
+ "tool_resources": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
3837
+ "code_interpreter": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
3838
+ "file_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.maxItems(20)), {
3839
3839
  nullable: true,
3840
3840
  default: () => []
3841
3841
  })
3842
3842
  }), {
3843
3843
  nullable: true
3844
3844
  }),
3845
- "file_search": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
3846
- "vector_store_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.maxItems(1)), {
3845
+ "file_search": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
3846
+ "vector_store_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.maxItems(1)), {
3847
3847
  nullable: true
3848
3848
  }),
3849
- "vector_stores": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.Struct({
3849
+ "vector_stores": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.Struct({
3850
3850
  "file_ids": S.optionalWith(S.Array(S.String).pipe(S.maxItems(10000)), {
3851
3851
  nullable: true
3852
3852
  }),
@@ -3859,7 +3859,7 @@ export class CreateThreadRequest extends /*#__PURE__*/S.Class("CreateThreadReque
3859
3859
  "metadata": S.optionalWith(Metadata, {
3860
3860
  nullable: true
3861
3861
  })
3862
- })).pipe( /*#__PURE__*/S.maxItems(1)), {
3862
+ })).pipe(/*#__PURE__*/S.maxItems(1)), {
3863
3863
  nullable: true
3864
3864
  })
3865
3865
  }), {
@@ -3877,17 +3877,17 @@ export class ThreadObject extends /*#__PURE__*/S.Class("ThreadObject")({
3877
3877
  "id": S.String,
3878
3878
  "object": ThreadObjectObject,
3879
3879
  "created_at": S.Int,
3880
- "tool_resources": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Struct({
3881
- "code_interpreter": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
3882
- "file_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.maxItems(20)), {
3880
+ "tool_resources": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Struct({
3881
+ "code_interpreter": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
3882
+ "file_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.maxItems(20)), {
3883
3883
  nullable: true,
3884
3884
  default: () => []
3885
3885
  })
3886
3886
  }), {
3887
3887
  nullable: true
3888
3888
  }),
3889
- "file_search": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
3890
- "vector_store_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.maxItems(1)), {
3889
+ "file_search": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
3890
+ "vector_store_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.maxItems(1)), {
3891
3891
  nullable: true
3892
3892
  })
3893
3893
  }), {
@@ -3900,7 +3900,7 @@ export class CreateThreadAndRunRequestModelEnum extends /*#__PURE__*/S.Literal("
3900
3900
  export class CreateThreadAndRunRequestTruncationStrategyEnumType extends /*#__PURE__*/S.Literal("auto", "last_messages") {}
3901
3901
  export class CreateThreadAndRunRequestTruncationStrategy extends /*#__PURE__*/S.Struct({
3902
3902
  "type": /*#__PURE__*/S.Literal("auto", "last_messages"),
3903
- "last_messages": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1)), {
3903
+ "last_messages": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1)), {
3904
3904
  nullable: true
3905
3905
  })
3906
3906
  }) {}
@@ -3908,38 +3908,38 @@ export class CreateThreadAndRunRequestToolChoiceEnumEnum extends /*#__PURE__*/S.
3908
3908
  export class AssistantsNamedToolChoiceType extends /*#__PURE__*/S.Literal("function", "code_interpreter", "file_search") {}
3909
3909
  export class AssistantsNamedToolChoice extends /*#__PURE__*/S.Struct({
3910
3910
  "type": AssistantsNamedToolChoiceType,
3911
- "function": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
3911
+ "function": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
3912
3912
  "name": S.String
3913
3913
  }), {
3914
3914
  nullable: true
3915
3915
  })
3916
3916
  }) {}
3917
- export class CreateThreadAndRunRequestToolChoice extends /*#__PURE__*/S.Union( /*#__PURE__*/S.Literal("none", "auto", "required"), AssistantsNamedToolChoice) {}
3917
+ export class CreateThreadAndRunRequestToolChoice extends /*#__PURE__*/S.Union(/*#__PURE__*/S.Literal("none", "auto", "required"), AssistantsNamedToolChoice) {}
3918
3918
  export class CreateThreadAndRunRequest extends /*#__PURE__*/S.Class("CreateThreadAndRunRequest")({
3919
3919
  "assistant_id": S.String,
3920
3920
  "thread": /*#__PURE__*/S.optionalWith(CreateThreadRequest, {
3921
3921
  nullable: true
3922
3922
  }),
3923
- "model": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(S.String, CreateThreadAndRunRequestModelEnum), {
3923
+ "model": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(S.String, CreateThreadAndRunRequestModelEnum), {
3924
3924
  nullable: true
3925
3925
  }),
3926
3926
  "instructions": /*#__PURE__*/S.optionalWith(S.String, {
3927
3927
  nullable: true
3928
3928
  }),
3929
- "tools": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.Union(AssistantToolsCode, AssistantToolsFileSearch, AssistantToolsFunction)).pipe( /*#__PURE__*/S.maxItems(20)), {
3929
+ "tools": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.Union(AssistantToolsCode, AssistantToolsFileSearch, AssistantToolsFunction)).pipe(/*#__PURE__*/S.maxItems(20)), {
3930
3930
  nullable: true
3931
3931
  }),
3932
- "tool_resources": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
3933
- "code_interpreter": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
3934
- "file_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.maxItems(20)), {
3932
+ "tool_resources": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
3933
+ "code_interpreter": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
3934
+ "file_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.maxItems(20)), {
3935
3935
  nullable: true,
3936
3936
  default: () => []
3937
3937
  })
3938
3938
  }), {
3939
3939
  nullable: true
3940
3940
  }),
3941
- "file_search": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
3942
- "vector_store_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.maxItems(1)), {
3941
+ "file_search": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
3942
+ "vector_store_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.maxItems(1)), {
3943
3943
  nullable: true
3944
3944
  })
3945
3945
  }), {
@@ -3951,21 +3951,21 @@ export class CreateThreadAndRunRequest extends /*#__PURE__*/S.Class("CreateThrea
3951
3951
  "metadata": /*#__PURE__*/S.optionalWith(Metadata, {
3952
3952
  nullable: true
3953
3953
  }),
3954
- "temperature": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
3954
+ "temperature": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
3955
3955
  nullable: true,
3956
3956
  default: () => 1
3957
3957
  }),
3958
- "top_p": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
3958
+ "top_p": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
3959
3959
  nullable: true,
3960
3960
  default: () => 1
3961
3961
  }),
3962
3962
  "stream": /*#__PURE__*/S.optionalWith(S.Boolean, {
3963
3963
  nullable: true
3964
3964
  }),
3965
- "max_prompt_tokens": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(256)), {
3965
+ "max_prompt_tokens": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(256)), {
3966
3966
  nullable: true
3967
3967
  }),
3968
- "max_completion_tokens": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(256)), {
3968
+ "max_completion_tokens": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(256)), {
3969
3969
  nullable: true
3970
3970
  }),
3971
3971
  "truncation_strategy": /*#__PURE__*/S.optionalWith(CreateThreadAndRunRequestTruncationStrategy, {
@@ -4004,12 +4004,12 @@ export class RunCompletionUsage extends /*#__PURE__*/S.Struct({
4004
4004
  export class RunObjectTruncationStrategyEnumType extends /*#__PURE__*/S.Literal("auto", "last_messages") {}
4005
4005
  export class RunObjectTruncationStrategy extends /*#__PURE__*/S.Struct({
4006
4006
  "type": /*#__PURE__*/S.Literal("auto", "last_messages"),
4007
- "last_messages": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1)), {
4007
+ "last_messages": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1)), {
4008
4008
  nullable: true
4009
4009
  })
4010
4010
  }) {}
4011
4011
  export class RunObjectToolChoiceEnumEnum extends /*#__PURE__*/S.Literal("none", "auto", "required") {}
4012
- export class RunObjectToolChoice extends /*#__PURE__*/S.Union( /*#__PURE__*/S.Literal("none", "auto", "required"), AssistantsNamedToolChoice) {}
4012
+ export class RunObjectToolChoice extends /*#__PURE__*/S.Union(/*#__PURE__*/S.Literal("none", "auto", "required"), AssistantsNamedToolChoice) {}
4013
4013
  export class RunObject extends /*#__PURE__*/S.Class("RunObject")({
4014
4014
  "id": S.String,
4015
4015
  "object": RunObjectObject,
@@ -4017,13 +4017,13 @@ export class RunObject extends /*#__PURE__*/S.Class("RunObject")({
4017
4017
  "thread_id": S.String,
4018
4018
  "assistant_id": S.String,
4019
4019
  "status": RunObjectStatus,
4020
- "required_action": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Struct({
4020
+ "required_action": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Struct({
4021
4021
  "type": RunObjectRequiredActionType,
4022
4022
  "submit_tool_outputs": /*#__PURE__*/S.Struct({
4023
4023
  "tool_calls": /*#__PURE__*/S.Array(RunToolCallObject)
4024
4024
  })
4025
4025
  })),
4026
- "last_error": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Struct({
4026
+ "last_error": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Struct({
4027
4027
  "code": RunObjectLastErrorCode,
4028
4028
  "message": S.String
4029
4029
  })),
@@ -4032,7 +4032,7 @@ export class RunObject extends /*#__PURE__*/S.Class("RunObject")({
4032
4032
  "cancelled_at": /*#__PURE__*/S.NullOr(S.Int),
4033
4033
  "failed_at": /*#__PURE__*/S.NullOr(S.Int),
4034
4034
  "completed_at": /*#__PURE__*/S.NullOr(S.Int),
4035
- "incomplete_details": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Struct({
4035
+ "incomplete_details": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Struct({
4036
4036
  "reason": /*#__PURE__*/S.optionalWith(RunObjectIncompleteDetailsReason, {
4037
4037
  nullable: true
4038
4038
  })
@@ -4048,25 +4048,25 @@ export class RunObject extends /*#__PURE__*/S.Class("RunObject")({
4048
4048
  "top_p": /*#__PURE__*/S.optionalWith(S.Number, {
4049
4049
  nullable: true
4050
4050
  }),
4051
- "max_prompt_tokens": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(256))),
4052
- "max_completion_tokens": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(256))),
4051
+ "max_prompt_tokens": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(256))),
4052
+ "max_completion_tokens": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(256))),
4053
4053
  "truncation_strategy": RunObjectTruncationStrategy,
4054
4054
  "tool_choice": RunObjectToolChoice,
4055
4055
  "parallel_tool_calls": /*#__PURE__*/ParallelToolCalls.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => true)),
4056
4056
  "response_format": AssistantsApiResponseFormatOption
4057
4057
  }) {}
4058
4058
  export class ModifyThreadRequest extends /*#__PURE__*/S.Class("ModifyThreadRequest")({
4059
- "tool_resources": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
4060
- "code_interpreter": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
4061
- "file_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.maxItems(20)), {
4059
+ "tool_resources": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
4060
+ "code_interpreter": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
4061
+ "file_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.maxItems(20)), {
4062
4062
  nullable: true,
4063
4063
  default: () => []
4064
4064
  })
4065
4065
  }), {
4066
4066
  nullable: true
4067
4067
  }),
4068
- "file_search": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
4069
- "vector_store_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.maxItems(1)), {
4068
+ "file_search": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
4069
+ "vector_store_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.maxItems(1)), {
4070
4070
  nullable: true
4071
4071
  })
4072
4072
  }), {
@@ -4117,8 +4117,8 @@ export class MessageContentTextAnnotationsFileCitationObject extends /*#__PURE__
4117
4117
  "file_citation": /*#__PURE__*/S.Struct({
4118
4118
  "file_id": S.String
4119
4119
  }),
4120
- "start_index": /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0)),
4121
- "end_index": /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0))
4120
+ "start_index": /*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0)),
4121
+ "end_index": /*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0))
4122
4122
  }) {}
4123
4123
  export class MessageContentTextAnnotationsFilePathObjectType extends /*#__PURE__*/S.Literal("file_path") {}
4124
4124
  export class MessageContentTextAnnotationsFilePathObject extends /*#__PURE__*/S.Struct({
@@ -4127,14 +4127,14 @@ export class MessageContentTextAnnotationsFilePathObject extends /*#__PURE__*/S.
4127
4127
  "file_path": /*#__PURE__*/S.Struct({
4128
4128
  "file_id": S.String
4129
4129
  }),
4130
- "start_index": /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0)),
4131
- "end_index": /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0))
4130
+ "start_index": /*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0)),
4131
+ "end_index": /*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0))
4132
4132
  }) {}
4133
4133
  export class MessageContentTextObject extends /*#__PURE__*/S.Struct({
4134
4134
  "type": MessageContentTextObjectType,
4135
4135
  "text": /*#__PURE__*/S.Struct({
4136
4136
  "value": S.String,
4137
- "annotations": /*#__PURE__*/S.Array( /*#__PURE__*/S.Union(MessageContentTextAnnotationsFileCitationObject, MessageContentTextAnnotationsFilePathObject))
4137
+ "annotations": /*#__PURE__*/S.Array(/*#__PURE__*/S.Union(MessageContentTextAnnotationsFileCitationObject, MessageContentTextAnnotationsFilePathObject))
4138
4138
  })
4139
4139
  }) {}
4140
4140
  export class MessageContentRefusalObjectType extends /*#__PURE__*/S.Literal("refusal") {}
@@ -4148,20 +4148,20 @@ export class MessageObject extends /*#__PURE__*/S.Struct({
4148
4148
  "created_at": S.Int,
4149
4149
  "thread_id": S.String,
4150
4150
  "status": MessageObjectStatus,
4151
- "incomplete_details": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Struct({
4151
+ "incomplete_details": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Struct({
4152
4152
  "reason": MessageObjectIncompleteDetailsReason
4153
4153
  })),
4154
4154
  "completed_at": /*#__PURE__*/S.NullOr(S.Int),
4155
4155
  "incomplete_at": /*#__PURE__*/S.NullOr(S.Int),
4156
4156
  "role": MessageObjectRole,
4157
- "content": /*#__PURE__*/S.Array( /*#__PURE__*/S.Union(MessageContentImageFileObject, MessageContentImageUrlObject, MessageContentTextObject, MessageContentRefusalObject)),
4157
+ "content": /*#__PURE__*/S.Array(/*#__PURE__*/S.Union(MessageContentImageFileObject, MessageContentImageUrlObject, MessageContentTextObject, MessageContentRefusalObject)),
4158
4158
  "assistant_id": /*#__PURE__*/S.NullOr(S.String),
4159
4159
  "run_id": /*#__PURE__*/S.NullOr(S.String),
4160
- "attachments": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
4160
+ "attachments": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
4161
4161
  "file_id": /*#__PURE__*/S.optionalWith(S.String, {
4162
4162
  nullable: true
4163
4163
  }),
4164
- "tools": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Union(AssistantToolsCode, AssistantToolsFileSearchTypeOnly)), {
4164
+ "tools": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Union(AssistantToolsCode, AssistantToolsFileSearchTypeOnly)), {
4165
4165
  nullable: true
4166
4166
  })
4167
4167
  }))),
@@ -4210,22 +4210,22 @@ export class ListRunsResponse extends /*#__PURE__*/S.Class("ListRunsResponse")({
4210
4210
  "has_more": S.Boolean
4211
4211
  }) {}
4212
4212
  export class CreateRunParams extends /*#__PURE__*/S.Struct({
4213
- "include[]": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("step_details.tool_calls[*].file_search.results[*].content")), {
4213
+ "include[]": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("step_details.tool_calls[*].file_search.results[*].content")), {
4214
4214
  nullable: true
4215
4215
  })
4216
4216
  }) {}
4217
4217
  export class CreateRunRequestTruncationStrategyEnumType extends /*#__PURE__*/S.Literal("auto", "last_messages") {}
4218
4218
  export class CreateRunRequestTruncationStrategy extends /*#__PURE__*/S.Struct({
4219
4219
  "type": /*#__PURE__*/S.Literal("auto", "last_messages"),
4220
- "last_messages": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1)), {
4220
+ "last_messages": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1)), {
4221
4221
  nullable: true
4222
4222
  })
4223
4223
  }) {}
4224
4224
  export class CreateRunRequestToolChoiceEnumEnum extends /*#__PURE__*/S.Literal("none", "auto", "required") {}
4225
- export class CreateRunRequestToolChoice extends /*#__PURE__*/S.Union( /*#__PURE__*/S.Literal("none", "auto", "required"), AssistantsNamedToolChoice) {}
4225
+ export class CreateRunRequestToolChoice extends /*#__PURE__*/S.Union(/*#__PURE__*/S.Literal("none", "auto", "required"), AssistantsNamedToolChoice) {}
4226
4226
  export class CreateRunRequest extends /*#__PURE__*/S.Class("CreateRunRequest")({
4227
4227
  "assistant_id": S.String,
4228
- "model": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(S.String, AssistantSupportedModels), {
4228
+ "model": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(S.String, AssistantSupportedModels), {
4229
4229
  nullable: true
4230
4230
  }),
4231
4231
  "reasoning_effort": /*#__PURE__*/S.optionalWith(ReasoningEffort, {
@@ -4238,30 +4238,30 @@ export class CreateRunRequest extends /*#__PURE__*/S.Class("CreateRunRequest")({
4238
4238
  "additional_instructions": /*#__PURE__*/S.optionalWith(S.String, {
4239
4239
  nullable: true
4240
4240
  }),
4241
- "additional_messages": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(CreateMessageRequest), {
4241
+ "additional_messages": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(CreateMessageRequest), {
4242
4242
  nullable: true
4243
4243
  }),
4244
- "tools": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.Union(AssistantToolsCode, AssistantToolsFileSearch, AssistantToolsFunction)).pipe( /*#__PURE__*/S.maxItems(20)), {
4244
+ "tools": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.Union(AssistantToolsCode, AssistantToolsFileSearch, AssistantToolsFunction)).pipe(/*#__PURE__*/S.maxItems(20)), {
4245
4245
  nullable: true
4246
4246
  }),
4247
4247
  "metadata": /*#__PURE__*/S.optionalWith(Metadata, {
4248
4248
  nullable: true
4249
4249
  }),
4250
- "temperature": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
4250
+ "temperature": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
4251
4251
  nullable: true,
4252
4252
  default: () => 1
4253
4253
  }),
4254
- "top_p": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
4254
+ "top_p": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
4255
4255
  nullable: true,
4256
4256
  default: () => 1
4257
4257
  }),
4258
4258
  "stream": /*#__PURE__*/S.optionalWith(S.Boolean, {
4259
4259
  nullable: true
4260
4260
  }),
4261
- "max_prompt_tokens": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(256)), {
4261
+ "max_prompt_tokens": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(256)), {
4262
4262
  nullable: true
4263
4263
  }),
4264
- "max_completion_tokens": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(256)), {
4264
+ "max_completion_tokens": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(256)), {
4265
4265
  nullable: true
4266
4266
  }),
4267
4267
  "truncation_strategy": /*#__PURE__*/S.optionalWith(CreateRunRequestTruncationStrategy, {
@@ -4299,7 +4299,7 @@ export class ListRunStepsParams extends /*#__PURE__*/S.Struct({
4299
4299
  "before": /*#__PURE__*/S.optionalWith(S.String, {
4300
4300
  nullable: true
4301
4301
  }),
4302
- "include[]": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("step_details.tool_calls[*].file_search.results[*].content")), {
4302
+ "include[]": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("step_details.tool_calls[*].file_search.results[*].content")), {
4303
4303
  nullable: true
4304
4304
  })
4305
4305
  }) {}
@@ -4332,7 +4332,7 @@ export class RunStepDetailsToolCallsCodeObject extends /*#__PURE__*/S.Struct({
4332
4332
  "type": RunStepDetailsToolCallsCodeObjectType,
4333
4333
  "code_interpreter": /*#__PURE__*/S.Struct({
4334
4334
  "input": S.String,
4335
- "outputs": /*#__PURE__*/S.Array( /*#__PURE__*/S.Record({
4335
+ "outputs": /*#__PURE__*/S.Array(/*#__PURE__*/S.Record({
4336
4336
  key: S.String,
4337
4337
  value: S.Unknown
4338
4338
  }))
@@ -4341,14 +4341,14 @@ export class RunStepDetailsToolCallsCodeObject extends /*#__PURE__*/S.Struct({
4341
4341
  export class RunStepDetailsToolCallsFileSearchObjectType extends /*#__PURE__*/S.Literal("file_search") {}
4342
4342
  export class RunStepDetailsToolCallsFileSearchRankingOptionsObject extends /*#__PURE__*/S.Struct({
4343
4343
  "ranker": FileSearchRanker,
4344
- "score_threshold": /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1))
4344
+ "score_threshold": /*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1))
4345
4345
  }) {}
4346
4346
  export class RunStepDetailsToolCallsFileSearchResultObject extends /*#__PURE__*/S.Struct({
4347
4347
  "file_id": S.String,
4348
4348
  "file_name": S.String,
4349
- "score": /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)),
4350
- "content": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
4351
- "type": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Literal("text"), {
4349
+ "score": /*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)),
4350
+ "content": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
4351
+ "type": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Literal("text"), {
4352
4352
  nullable: true
4353
4353
  }),
4354
4354
  "text": /*#__PURE__*/S.optionalWith(S.String, {
@@ -4365,7 +4365,7 @@ export class RunStepDetailsToolCallsFileSearchObject extends /*#__PURE__*/S.Stru
4365
4365
  "ranking_options": /*#__PURE__*/S.optionalWith(RunStepDetailsToolCallsFileSearchRankingOptionsObject, {
4366
4366
  nullable: true
4367
4367
  }),
4368
- "results": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(RunStepDetailsToolCallsFileSearchResultObject), {
4368
+ "results": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(RunStepDetailsToolCallsFileSearchResultObject), {
4369
4369
  nullable: true
4370
4370
  })
4371
4371
  })
@@ -4382,7 +4382,7 @@ export class RunStepDetailsToolCallsFunctionObject extends /*#__PURE__*/S.Struct
4382
4382
  }) {}
4383
4383
  export class RunStepDetailsToolCallsObject extends /*#__PURE__*/S.Struct({
4384
4384
  "type": RunStepDetailsToolCallsObjectType,
4385
- "tool_calls": /*#__PURE__*/S.Array( /*#__PURE__*/S.Union(RunStepDetailsToolCallsCodeObject, RunStepDetailsToolCallsFileSearchObject, RunStepDetailsToolCallsFunctionObject))
4385
+ "tool_calls": /*#__PURE__*/S.Array(/*#__PURE__*/S.Union(RunStepDetailsToolCallsCodeObject, RunStepDetailsToolCallsFileSearchObject, RunStepDetailsToolCallsFunctionObject))
4386
4386
  }) {}
4387
4387
  export class RunStepObjectLastErrorCode extends /*#__PURE__*/S.Literal("server_error", "rate_limit_exceeded") {}
4388
4388
  export class RunStepCompletionUsage extends /*#__PURE__*/S.Struct({
@@ -4403,7 +4403,7 @@ export class RunStepObject extends /*#__PURE__*/S.Struct({
4403
4403
  key: S.String,
4404
4404
  value: S.Unknown
4405
4405
  }),
4406
- "last_error": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Struct({
4406
+ "last_error": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Struct({
4407
4407
  "code": RunStepObjectLastErrorCode,
4408
4408
  "message": S.String
4409
4409
  })),
@@ -4422,12 +4422,12 @@ export class ListRunStepsResponse extends /*#__PURE__*/S.Class("ListRunStepsResp
4422
4422
  "has_more": S.Boolean
4423
4423
  }) {}
4424
4424
  export class GetRunStepParams extends /*#__PURE__*/S.Struct({
4425
- "include[]": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("step_details.tool_calls[*].file_search.results[*].content")), {
4425
+ "include[]": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("step_details.tool_calls[*].file_search.results[*].content")), {
4426
4426
  nullable: true
4427
4427
  })
4428
4428
  }) {}
4429
4429
  export class SubmitToolOutputsRunRequest extends /*#__PURE__*/S.Class("SubmitToolOutputsRunRequest")({
4430
- "tool_outputs": /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
4430
+ "tool_outputs": /*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
4431
4431
  "tool_call_id": /*#__PURE__*/S.optionalWith(S.String, {
4432
4432
  nullable: true
4433
4433
  }),
@@ -4516,7 +4516,7 @@ export class VectorStoreObjectStatus extends /*#__PURE__*/S.Literal("expired", "
4516
4516
  export class VectorStoreExpirationAfterAnchor extends /*#__PURE__*/S.Literal("last_active_at") {}
4517
4517
  export class VectorStoreExpirationAfter extends /*#__PURE__*/S.Struct({
4518
4518
  "anchor": VectorStoreExpirationAfterAnchor,
4519
- "days": /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(365))
4519
+ "days": /*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(365))
4520
4520
  }) {}
4521
4521
  export class VectorStoreObject extends /*#__PURE__*/S.Struct({
4522
4522
  "id": S.String,
@@ -4554,7 +4554,7 @@ export class AutoChunkingStrategyRequestParam extends /*#__PURE__*/S.Struct({
4554
4554
  }) {}
4555
4555
  export class StaticChunkingStrategyRequestParamType extends /*#__PURE__*/S.Literal("static") {}
4556
4556
  export class StaticChunkingStrategy extends /*#__PURE__*/S.Struct({
4557
- "max_chunk_size_tokens": /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(100), /*#__PURE__*/S.lessThanOrEqualTo(4096)),
4557
+ "max_chunk_size_tokens": /*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(100), /*#__PURE__*/S.lessThanOrEqualTo(4096)),
4558
4558
  "chunk_overlap_tokens": S.Int
4559
4559
  }) {}
4560
4560
  export class StaticChunkingStrategyRequestParam extends /*#__PURE__*/S.Struct({
@@ -4562,7 +4562,7 @@ export class StaticChunkingStrategyRequestParam extends /*#__PURE__*/S.Struct({
4562
4562
  "static": StaticChunkingStrategy
4563
4563
  }) {}
4564
4564
  export class CreateVectorStoreRequest extends /*#__PURE__*/S.Class("CreateVectorStoreRequest")({
4565
- "file_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.maxItems(500)), {
4565
+ "file_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.maxItems(500)), {
4566
4566
  nullable: true
4567
4567
  }),
4568
4568
  "name": /*#__PURE__*/S.optionalWith(S.String, {
@@ -4571,7 +4571,7 @@ export class CreateVectorStoreRequest extends /*#__PURE__*/S.Class("CreateVector
4571
4571
  "expires_after": /*#__PURE__*/S.optionalWith(VectorStoreExpirationAfter, {
4572
4572
  nullable: true
4573
4573
  }),
4574
- "chunking_strategy": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Record({
4574
+ "chunking_strategy": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Record({
4575
4575
  key: S.String,
4576
4576
  value: S.Unknown
4577
4577
  }), {
@@ -4584,7 +4584,7 @@ export class CreateVectorStoreRequest extends /*#__PURE__*/S.Class("CreateVector
4584
4584
  export class UpdateVectorStoreRequestExpiresAfterEnumAnchor extends /*#__PURE__*/S.Literal("last_active_at") {}
4585
4585
  export class UpdateVectorStoreRequestExpiresAfter extends /*#__PURE__*/S.Struct({
4586
4586
  "anchor": /*#__PURE__*/S.Literal("last_active_at"),
4587
- "days": /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(365))
4587
+ "days": /*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(365))
4588
4588
  }) {}
4589
4589
  export class UpdateVectorStoreRequest extends /*#__PURE__*/S.Class("UpdateVectorStoreRequest")({
4590
4590
  "name": /*#__PURE__*/S.optionalWith(S.String, {
@@ -4608,7 +4608,7 @@ export class ChunkingStrategyRequestParam extends /*#__PURE__*/S.Record({
4608
4608
  value: S.Unknown
4609
4609
  }) {}
4610
4610
  export class CreateVectorStoreFileBatchRequest extends /*#__PURE__*/S.Class("CreateVectorStoreFileBatchRequest")({
4611
- "file_ids": /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.minItems(1), /*#__PURE__*/S.maxItems(500)),
4611
+ "file_ids": /*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.minItems(1), /*#__PURE__*/S.maxItems(500)),
4612
4612
  "chunking_strategy": /*#__PURE__*/S.optionalWith(ChunkingStrategyRequestParam, {
4613
4613
  nullable: true
4614
4614
  }),
@@ -4672,11 +4672,11 @@ export class VectorStoreFileObject extends /*#__PURE__*/S.Struct({
4672
4672
  "created_at": S.Int,
4673
4673
  "vector_store_id": S.String,
4674
4674
  "status": VectorStoreFileObjectStatus,
4675
- "last_error": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Struct({
4675
+ "last_error": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Struct({
4676
4676
  "code": VectorStoreFileObjectLastErrorCode,
4677
4677
  "message": S.String
4678
4678
  })),
4679
- "chunking_strategy": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Record({
4679
+ "chunking_strategy": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Record({
4680
4680
  key: S.String,
4681
4681
  value: S.Unknown
4682
4682
  }), {
@@ -4735,7 +4735,7 @@ export class DeleteVectorStoreFileResponse extends /*#__PURE__*/S.Class("DeleteV
4735
4735
  export class VectorStoreFileContentResponseObject extends /*#__PURE__*/S.Literal("vector_store.file_content.page") {}
4736
4736
  export class VectorStoreFileContentResponse extends /*#__PURE__*/S.Class("VectorStoreFileContentResponse")({
4737
4737
  "object": VectorStoreFileContentResponseObject,
4738
- "data": /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
4738
+ "data": /*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
4739
4739
  "type": /*#__PURE__*/S.optionalWith(S.String, {
4740
4740
  nullable: true
4741
4741
  }),
@@ -4753,19 +4753,19 @@ export class VectorStoreSearchRequest extends /*#__PURE__*/S.Class("VectorStoreS
4753
4753
  nullable: true,
4754
4754
  default: () => false
4755
4755
  }),
4756
- "max_num_results": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(50)), {
4756
+ "max_num_results": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(50)), {
4757
4757
  nullable: true,
4758
4758
  default: () => 10
4759
4759
  }),
4760
- "filters": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(ComparisonFilter, CompoundFilter), {
4760
+ "filters": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(ComparisonFilter, CompoundFilter), {
4761
4761
  nullable: true
4762
4762
  }),
4763
- "ranking_options": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
4763
+ "ranking_options": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
4764
4764
  "ranker": /*#__PURE__*/S.optionalWith(VectorStoreSearchRequestRankingOptionsRanker, {
4765
4765
  nullable: true,
4766
4766
  default: () => "auto"
4767
4767
  }),
4768
- "score_threshold": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
4768
+ "score_threshold": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
4769
4769
  nullable: true,
4770
4770
  default: () => 0
4771
4771
  })
@@ -4782,7 +4782,7 @@ export class VectorStoreSearchResultContentObject extends /*#__PURE__*/S.Struct(
4782
4782
  export class VectorStoreSearchResultItem extends /*#__PURE__*/S.Struct({
4783
4783
  "file_id": S.String,
4784
4784
  "filename": S.String,
4785
- "score": /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)),
4785
+ "score": /*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)),
4786
4786
  "attributes": /*#__PURE__*/S.NullOr(VectorStoreFileAttributes),
4787
4787
  "content": /*#__PURE__*/S.Array(VectorStoreSearchResultContentObject)
4788
4788
  }) {}