@effect/ai-openai 0.19.3 → 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 +2 -3
  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 +1 -1
  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 +1 -1
@@ -15,8 +15,7 @@ var HttpClientRequest = _interopRequireWildcard(require("@effect/platform/HttpCl
15
15
  var HttpClientResponse = _interopRequireWildcard(require("@effect/platform/HttpClientResponse"));
16
16
  var Effect = _interopRequireWildcard(require("effect/Effect"));
17
17
  var S = _interopRequireWildcard(require("effect/Schema"));
18
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
19
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
20
19
  class ListAssistantsParamsOrder extends /*#__PURE__*/S.Literal("asc", "desc") {}
21
20
  exports.ListAssistantsParamsOrder = ListAssistantsParamsOrder;
22
21
  class ListAssistantsParams extends /*#__PURE__*/S.Struct({
@@ -52,13 +51,13 @@ class FileSearchRankingOptions extends /*#__PURE__*/S.Struct({
52
51
  "ranker": /*#__PURE__*/S.optionalWith(FileSearchRanker, {
53
52
  nullable: true
54
53
  }),
55
- "score_threshold": /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1))
54
+ "score_threshold": /*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1))
56
55
  }) {}
57
56
  exports.FileSearchRankingOptions = FileSearchRankingOptions;
58
57
  class AssistantToolsFileSearch extends /*#__PURE__*/S.Struct({
59
58
  "type": AssistantToolsFileSearchType,
60
- "file_search": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
61
- "max_num_results": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(50)), {
59
+ "file_search": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
60
+ "max_num_results": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(50)), {
62
61
  nullable: true
63
62
  }),
64
63
  "ranking_options": /*#__PURE__*/S.optionalWith(FileSearchRankingOptions, {
@@ -144,22 +143,22 @@ class AssistantObject extends /*#__PURE__*/S.Struct({
144
143
  "id": S.String,
145
144
  "object": AssistantObjectObject,
146
145
  "created_at": S.Int,
147
- "name": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.String.pipe( /*#__PURE__*/S.maxLength(256))),
148
- "description": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.String.pipe( /*#__PURE__*/S.maxLength(512))),
146
+ "name": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.String.pipe(/*#__PURE__*/S.maxLength(256))),
147
+ "description": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.String.pipe(/*#__PURE__*/S.maxLength(512))),
149
148
  "model": S.String,
150
- "instructions": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.String.pipe( /*#__PURE__*/S.maxLength(256000))),
149
+ "instructions": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.String.pipe(/*#__PURE__*/S.maxLength(256000))),
151
150
  "tools": /*#__PURE__*/S.Array(S.Union(AssistantToolsCode, AssistantToolsFileSearch, AssistantToolsFunction)).pipe(S.maxItems(128)).pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => [])),
152
- "tool_resources": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
153
- "code_interpreter": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
154
- "file_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.maxItems(20)), {
151
+ "tool_resources": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
152
+ "code_interpreter": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
153
+ "file_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.maxItems(20)), {
155
154
  nullable: true,
156
155
  default: () => []
157
156
  })
158
157
  }), {
159
158
  nullable: true
160
159
  }),
161
- "file_search": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
162
- "vector_store_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.maxItems(1)), {
160
+ "file_search": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
161
+ "vector_store_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.maxItems(1)), {
163
162
  nullable: true
164
163
  })
165
164
  }), {
@@ -169,11 +168,11 @@ class AssistantObject extends /*#__PURE__*/S.Struct({
169
168
  nullable: true
170
169
  }),
171
170
  "metadata": /*#__PURE__*/S.NullOr(Metadata),
172
- "temperature": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
171
+ "temperature": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
173
172
  nullable: true,
174
173
  default: () => 1
175
174
  }),
176
- "top_p": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
175
+ "top_p": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
177
176
  nullable: true,
178
177
  default: () => 1
179
178
  }),
@@ -196,37 +195,37 @@ class ReasoningEffort extends /*#__PURE__*/S.Literal("low", "medium", "high") {}
196
195
  exports.ReasoningEffort = ReasoningEffort;
197
196
  class CreateAssistantRequest extends /*#__PURE__*/S.Class("CreateAssistantRequest")({
198
197
  "model": /*#__PURE__*/S.Union(S.String, AssistantSupportedModels),
199
- "name": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.String.pipe( /*#__PURE__*/S.maxLength(256)), {
198
+ "name": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.String.pipe(/*#__PURE__*/S.maxLength(256)), {
200
199
  nullable: true
201
200
  }),
202
- "description": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.String.pipe( /*#__PURE__*/S.maxLength(512)), {
201
+ "description": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.String.pipe(/*#__PURE__*/S.maxLength(512)), {
203
202
  nullable: true
204
203
  }),
205
- "instructions": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.String.pipe( /*#__PURE__*/S.maxLength(256000)), {
204
+ "instructions": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.String.pipe(/*#__PURE__*/S.maxLength(256000)), {
206
205
  nullable: true
207
206
  }),
208
207
  "reasoning_effort": /*#__PURE__*/S.optionalWith(ReasoningEffort, {
209
208
  nullable: true,
210
209
  default: () => "medium"
211
210
  }),
212
- "tools": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.Union(AssistantToolsCode, AssistantToolsFileSearch, AssistantToolsFunction)).pipe( /*#__PURE__*/S.maxItems(128)), {
211
+ "tools": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.Union(AssistantToolsCode, AssistantToolsFileSearch, AssistantToolsFunction)).pipe(/*#__PURE__*/S.maxItems(128)), {
213
212
  nullable: true,
214
213
  default: () => []
215
214
  }),
216
- "tool_resources": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
217
- "code_interpreter": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
218
- "file_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.maxItems(20)), {
215
+ "tool_resources": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
216
+ "code_interpreter": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
217
+ "file_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.maxItems(20)), {
219
218
  nullable: true,
220
219
  default: () => []
221
220
  })
222
221
  }), {
223
222
  nullable: true
224
223
  }),
225
- "file_search": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
226
- "vector_store_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.maxItems(1)), {
224
+ "file_search": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
225
+ "vector_store_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.maxItems(1)), {
227
226
  nullable: true
228
227
  }),
229
- "vector_stores": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.Struct({
228
+ "vector_stores": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.Struct({
230
229
  "file_ids": S.optionalWith(S.Array(S.String).pipe(S.maxItems(10000)), {
231
230
  nullable: true
232
231
  }),
@@ -239,7 +238,7 @@ class CreateAssistantRequest extends /*#__PURE__*/S.Class("CreateAssistantReques
239
238
  "metadata": S.optionalWith(Metadata, {
240
239
  nullable: true
241
240
  })
242
- })).pipe( /*#__PURE__*/S.maxItems(1)), {
241
+ })).pipe(/*#__PURE__*/S.maxItems(1)), {
243
242
  nullable: true
244
243
  })
245
244
  }), {
@@ -251,11 +250,11 @@ class CreateAssistantRequest extends /*#__PURE__*/S.Class("CreateAssistantReques
251
250
  "metadata": /*#__PURE__*/S.optionalWith(Metadata, {
252
251
  nullable: true
253
252
  }),
254
- "temperature": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
253
+ "temperature": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
255
254
  nullable: true,
256
255
  default: () => 1
257
256
  }),
258
- "top_p": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
257
+ "top_p": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
259
258
  nullable: true,
260
259
  default: () => 1
261
260
  }),
@@ -265,37 +264,37 @@ class CreateAssistantRequest extends /*#__PURE__*/S.Class("CreateAssistantReques
265
264
  }) {}
266
265
  exports.CreateAssistantRequest = CreateAssistantRequest;
267
266
  class ModifyAssistantRequest extends /*#__PURE__*/S.Class("ModifyAssistantRequest")({
268
- "model": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(S.String, AssistantSupportedModels), {
267
+ "model": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(S.String, AssistantSupportedModels), {
269
268
  nullable: true
270
269
  }),
271
270
  "reasoning_effort": /*#__PURE__*/S.optionalWith(ReasoningEffort, {
272
271
  nullable: true,
273
272
  default: () => "medium"
274
273
  }),
275
- "name": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.String.pipe( /*#__PURE__*/S.maxLength(256)), {
274
+ "name": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.String.pipe(/*#__PURE__*/S.maxLength(256)), {
276
275
  nullable: true
277
276
  }),
278
- "description": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.String.pipe( /*#__PURE__*/S.maxLength(512)), {
277
+ "description": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.String.pipe(/*#__PURE__*/S.maxLength(512)), {
279
278
  nullable: true
280
279
  }),
281
- "instructions": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.String.pipe( /*#__PURE__*/S.maxLength(256000)), {
280
+ "instructions": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.String.pipe(/*#__PURE__*/S.maxLength(256000)), {
282
281
  nullable: true
283
282
  }),
284
- "tools": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.Union(AssistantToolsCode, AssistantToolsFileSearch, AssistantToolsFunction)).pipe( /*#__PURE__*/S.maxItems(128)), {
283
+ "tools": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.Union(AssistantToolsCode, AssistantToolsFileSearch, AssistantToolsFunction)).pipe(/*#__PURE__*/S.maxItems(128)), {
285
284
  nullable: true,
286
285
  default: () => []
287
286
  }),
288
- "tool_resources": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
289
- "code_interpreter": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
290
- "file_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.maxItems(20)), {
287
+ "tool_resources": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
288
+ "code_interpreter": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
289
+ "file_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.maxItems(20)), {
291
290
  nullable: true,
292
291
  default: () => []
293
292
  })
294
293
  }), {
295
294
  nullable: true
296
295
  }),
297
- "file_search": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
298
- "vector_store_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.maxItems(1)), {
296
+ "file_search": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
297
+ "vector_store_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.maxItems(1)), {
299
298
  nullable: true
300
299
  })
301
300
  }), {
@@ -307,11 +306,11 @@ class ModifyAssistantRequest extends /*#__PURE__*/S.Class("ModifyAssistantReques
307
306
  "metadata": /*#__PURE__*/S.optionalWith(Metadata, {
308
307
  nullable: true
309
308
  }),
310
- "temperature": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
309
+ "temperature": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
311
310
  nullable: true,
312
311
  default: () => 1
313
312
  }),
314
- "top_p": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
313
+ "top_p": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
315
314
  nullable: true,
316
315
  default: () => 1
317
316
  }),
@@ -338,8 +337,8 @@ class CreateSpeechRequestResponseFormat extends /*#__PURE__*/S.Literal("mp3", "o
338
337
  exports.CreateSpeechRequestResponseFormat = CreateSpeechRequestResponseFormat;
339
338
  class CreateSpeechRequest extends /*#__PURE__*/S.Class("CreateSpeechRequest")({
340
339
  "model": /*#__PURE__*/S.Union(S.String, CreateSpeechRequestModelEnum),
341
- "input": /*#__PURE__*/S.String.pipe( /*#__PURE__*/S.maxLength(4096)),
342
- "instructions": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.String.pipe( /*#__PURE__*/S.maxLength(4096)), {
340
+ "input": /*#__PURE__*/S.String.pipe(/*#__PURE__*/S.maxLength(4096)),
341
+ "instructions": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.String.pipe(/*#__PURE__*/S.maxLength(4096)), {
343
342
  nullable: true
344
343
  }),
345
344
  "voice": VoiceIdsShared,
@@ -347,7 +346,7 @@ class CreateSpeechRequest extends /*#__PURE__*/S.Class("CreateSpeechRequest")({
347
346
  nullable: true,
348
347
  default: () => "mp3"
349
348
  }),
350
- "speed": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0.25), /*#__PURE__*/S.lessThanOrEqualTo(4)), {
349
+ "speed": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0.25), /*#__PURE__*/S.lessThanOrEqualTo(4)), {
351
350
  nullable: true,
352
351
  default: () => 1
353
352
  })
@@ -361,7 +360,7 @@ class LogProbProperties extends /*#__PURE__*/S.Struct({
361
360
  exports.LogProbProperties = LogProbProperties;
362
361
  class CreateTranscriptionResponseJson extends /*#__PURE__*/S.Struct({
363
362
  "text": S.String,
364
- "logprobs": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(LogProbProperties), {
363
+ "logprobs": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(LogProbProperties), {
365
364
  nullable: true
366
365
  })
367
366
  }) {}
@@ -389,10 +388,10 @@ class CreateTranscriptionResponseVerboseJson extends /*#__PURE__*/S.Struct({
389
388
  "language": S.String,
390
389
  "duration": S.Number,
391
390
  "text": S.String,
392
- "words": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(TranscriptionWord), {
391
+ "words": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(TranscriptionWord), {
393
392
  nullable: true
394
393
  }),
395
- "segments": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(TranscriptionSegment), {
394
+ "segments": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(TranscriptionSegment), {
396
395
  nullable: true
397
396
  })
398
397
  }) {}
@@ -407,7 +406,7 @@ class CreateTranslationResponseVerboseJson extends /*#__PURE__*/S.Struct({
407
406
  "language": S.String,
408
407
  "duration": S.Number,
409
408
  "text": S.String,
410
- "segments": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(TranscriptionSegment), {
409
+ "segments": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(TranscriptionSegment), {
411
410
  nullable: true
412
411
  })
413
412
  }) {}
@@ -432,11 +431,11 @@ class Batch extends /*#__PURE__*/S.Struct({
432
431
  "id": S.String,
433
432
  "object": BatchObject,
434
433
  "endpoint": S.String,
435
- "errors": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
434
+ "errors": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
436
435
  "object": /*#__PURE__*/S.optionalWith(S.String, {
437
436
  nullable: true
438
437
  }),
439
- "data": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
438
+ "data": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
440
439
  "code": /*#__PURE__*/S.optionalWith(S.String, {
441
440
  nullable: true
442
441
  }),
@@ -489,7 +488,7 @@ class Batch extends /*#__PURE__*/S.Struct({
489
488
  "cancelled_at": /*#__PURE__*/S.optionalWith(S.Int, {
490
489
  nullable: true
491
490
  }),
492
- "request_counts": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
491
+ "request_counts": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
493
492
  "total": S.Int,
494
493
  "completed": S.Int,
495
494
  "failed": S.Int
@@ -573,7 +572,7 @@ class ChatCompletionResponseMessage extends /*#__PURE__*/S.Struct({
573
572
  "tool_calls": /*#__PURE__*/S.optionalWith(ChatCompletionMessageToolCalls, {
574
573
  nullable: true
575
574
  }),
576
- "annotations": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
575
+ "annotations": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
577
576
  "type": /*#__PURE__*/S.Literal("url_citation"),
578
577
  "url_citation": /*#__PURE__*/S.Struct({
579
578
  "end_index": S.Int,
@@ -585,13 +584,13 @@ class ChatCompletionResponseMessage extends /*#__PURE__*/S.Struct({
585
584
  nullable: true
586
585
  }),
587
586
  "role": ChatCompletionResponseMessageRole,
588
- "function_call": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
587
+ "function_call": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
589
588
  "arguments": S.String,
590
589
  "name": S.String
591
590
  }), {
592
591
  nullable: true
593
592
  }),
594
- "audio": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
593
+ "audio": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
595
594
  "id": S.String,
596
595
  "expires_at": S.Int,
597
596
  "data": S.String,
@@ -604,11 +603,11 @@ exports.ChatCompletionResponseMessage = ChatCompletionResponseMessage;
604
603
  class ChatCompletionTokenLogprob extends /*#__PURE__*/S.Struct({
605
604
  "token": S.String,
606
605
  "logprob": S.Number,
607
- "bytes": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Array(S.Int)),
608
- "top_logprobs": /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
606
+ "bytes": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Array(S.Int)),
607
+ "top_logprobs": /*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
609
608
  "token": S.String,
610
609
  "logprob": S.Number,
611
- "bytes": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Array(S.Int))
610
+ "bytes": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Array(S.Int))
612
611
  }))
613
612
  }) {}
614
613
  exports.ChatCompletionTokenLogprob = ChatCompletionTokenLogprob;
@@ -620,7 +619,7 @@ class CompletionUsage extends /*#__PURE__*/S.Struct({
620
619
  "completion_tokens": /*#__PURE__*/S.Int.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => 0)),
621
620
  "prompt_tokens": /*#__PURE__*/S.Int.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => 0)),
622
621
  "total_tokens": /*#__PURE__*/S.Int.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => 0)),
623
- "completion_tokens_details": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
622
+ "completion_tokens_details": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
624
623
  "accepted_prediction_tokens": /*#__PURE__*/S.optionalWith(S.Int, {
625
624
  nullable: true,
626
625
  default: () => 0
@@ -640,7 +639,7 @@ class CompletionUsage extends /*#__PURE__*/S.Struct({
640
639
  }), {
641
640
  nullable: true
642
641
  }),
643
- "prompt_tokens_details": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
642
+ "prompt_tokens_details": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
644
643
  "audio_tokens": /*#__PURE__*/S.optionalWith(S.Int, {
645
644
  nullable: true,
646
645
  default: () => 0
@@ -656,15 +655,15 @@ class CompletionUsage extends /*#__PURE__*/S.Struct({
656
655
  exports.CompletionUsage = CompletionUsage;
657
656
  class CreateChatCompletionResponse extends /*#__PURE__*/S.Struct({
658
657
  "id": S.String,
659
- "choices": /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
658
+ "choices": /*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
660
659
  "finish_reason": /*#__PURE__*/S.Literal("stop", "length", "tool_calls", "content_filter", "function_call"),
661
660
  "index": S.Int,
662
661
  "message": ChatCompletionResponseMessage,
663
662
  // TODO: change this once the following upstream issue has been closed
664
663
  // https://github.com/openai/openai-openapi/issues/433
665
- "logprobs": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
666
- "content": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Array(ChatCompletionTokenLogprob)),
667
- "refusal": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Array(ChatCompletionTokenLogprob))
664
+ "logprobs": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
665
+ "content": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Array(ChatCompletionTokenLogprob)),
666
+ "refusal": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Array(ChatCompletionTokenLogprob))
668
667
  }), {
669
668
  nullable: true
670
669
  })
@@ -788,7 +787,7 @@ exports.ChatCompletionRequestAssistantMessageContentPart = ChatCompletionRequest
788
787
  class ChatCompletionRequestAssistantMessageRole extends /*#__PURE__*/S.Literal("assistant") {}
789
788
  exports.ChatCompletionRequestAssistantMessageRole = ChatCompletionRequestAssistantMessageRole;
790
789
  class ChatCompletionRequestAssistantMessage extends /*#__PURE__*/S.Struct({
791
- "content": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(S.String, /*#__PURE__*/S.NonEmptyArray(ChatCompletionRequestAssistantMessageContentPart)), {
790
+ "content": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(S.String, /*#__PURE__*/S.NonEmptyArray(ChatCompletionRequestAssistantMessageContentPart)), {
792
791
  nullable: true
793
792
  }),
794
793
  "refusal": /*#__PURE__*/S.optionalWith(S.String, {
@@ -798,7 +797,7 @@ class ChatCompletionRequestAssistantMessage extends /*#__PURE__*/S.Struct({
798
797
  "name": /*#__PURE__*/S.optionalWith(S.String, {
799
798
  nullable: true
800
799
  }),
801
- "audio": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
800
+ "audio": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
802
801
  "id": S.String
803
802
  }), {
804
803
  nullable: true
@@ -806,7 +805,7 @@ class ChatCompletionRequestAssistantMessage extends /*#__PURE__*/S.Struct({
806
805
  "tool_calls": /*#__PURE__*/S.optionalWith(ChatCompletionMessageToolCalls, {
807
806
  nullable: true
808
807
  }),
809
- "function_call": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
808
+ "function_call": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
810
809
  "arguments": S.String,
811
810
  "name": S.String
812
811
  }), {
@@ -838,7 +837,7 @@ class ModelIdsSharedEnum extends /*#__PURE__*/S.Literal("o3-mini", "o3-mini-2025
838
837
  exports.ModelIdsSharedEnum = ModelIdsSharedEnum;
839
838
  class ModelIdsShared extends /*#__PURE__*/S.Union(S.String, ModelIdsSharedEnum) {}
840
839
  exports.ModelIdsShared = ModelIdsShared;
841
- class ResponseModalities extends /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("text", "audio")) {}
840
+ class ResponseModalities extends /*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("text", "audio")) {}
842
841
  exports.ResponseModalities = ResponseModalities;
843
842
  class CreateChatCompletionRequestWebSearchOptionsUserLocationType extends /*#__PURE__*/S.Literal("approximate") {}
844
843
  exports.CreateChatCompletionRequestWebSearchOptionsUserLocationType = CreateChatCompletionRequestWebSearchOptionsUserLocationType;
@@ -863,7 +862,7 @@ class CreateChatCompletionRequestServiceTier extends /*#__PURE__*/S.Literal("aut
863
862
  exports.CreateChatCompletionRequestServiceTier = CreateChatCompletionRequestServiceTier;
864
863
  class CreateChatCompletionRequestAudioFormat extends /*#__PURE__*/S.Literal("wav", "mp3", "flac", "opus", "pcm16") {}
865
864
  exports.CreateChatCompletionRequestAudioFormat = CreateChatCompletionRequestAudioFormat;
866
- class StopConfiguration extends /*#__PURE__*/S.Union(S.String, /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.minItems(1), /*#__PURE__*/S.maxItems(4))) {}
865
+ class StopConfiguration extends /*#__PURE__*/S.Union(S.String, /*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.minItems(1), /*#__PURE__*/S.maxItems(4))) {}
867
866
  exports.StopConfiguration = StopConfiguration;
868
867
  class PredictionContentType extends /*#__PURE__*/S.Literal("content") {}
869
868
  exports.PredictionContentType = PredictionContentType;
@@ -929,16 +928,16 @@ class CreateChatCompletionRequest extends /*#__PURE__*/S.Class("CreateChatComple
929
928
  "max_completion_tokens": /*#__PURE__*/S.optionalWith(S.Int, {
930
929
  nullable: true
931
930
  }),
932
- "frequency_penalty": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(-2), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
931
+ "frequency_penalty": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(-2), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
933
932
  nullable: true,
934
933
  default: () => 0
935
934
  }),
936
- "presence_penalty": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(-2), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
935
+ "presence_penalty": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(-2), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
937
936
  nullable: true,
938
937
  default: () => 0
939
938
  }),
940
- "web_search_options": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
941
- "user_location": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
939
+ "web_search_options": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
940
+ "user_location": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
942
941
  "type": CreateChatCompletionRequestWebSearchOptionsUserLocationType,
943
942
  "approximate": WebSearchLocation
944
943
  }), {
@@ -951,17 +950,17 @@ class CreateChatCompletionRequest extends /*#__PURE__*/S.Class("CreateChatComple
951
950
  }), {
952
951
  nullable: true
953
952
  }),
954
- "top_logprobs": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(20)), {
953
+ "top_logprobs": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(20)), {
955
954
  nullable: true
956
955
  }),
957
- "response_format": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(ResponseFormatText, ResponseFormatJsonSchema, ResponseFormatJsonObject), {
956
+ "response_format": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(ResponseFormatText, ResponseFormatJsonSchema, ResponseFormatJsonObject), {
958
957
  nullable: true
959
958
  }),
960
959
  "service_tier": /*#__PURE__*/S.optionalWith(CreateChatCompletionRequestServiceTier, {
961
960
  nullable: true,
962
961
  default: () => "auto"
963
962
  }),
964
- "audio": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
963
+ "audio": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
965
964
  "voice": VoiceIdsShared,
966
965
  "format": CreateChatCompletionRequestAudioFormat
967
966
  }), {
@@ -975,10 +974,10 @@ class CreateChatCompletionRequest extends /*#__PURE__*/S.Class("CreateChatComple
975
974
  nullable: true,
976
975
  default: () => false
977
976
  }),
978
- "stop": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.NullOr(StopConfiguration), {
977
+ "stop": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.NullOr(StopConfiguration), {
979
978
  default: () => null
980
979
  }),
981
- "logit_bias": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Record({
980
+ "logit_bias": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.NullOr(/*#__PURE__*/S.Record({
982
981
  key: S.String,
983
982
  value: S.Unknown
984
983
  })), {
@@ -991,7 +990,7 @@ class CreateChatCompletionRequest extends /*#__PURE__*/S.Class("CreateChatComple
991
990
  "max_tokens": /*#__PURE__*/S.optionalWith(S.Int, {
992
991
  nullable: true
993
992
  }),
994
- "n": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(128)), {
993
+ "n": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(128)), {
995
994
  nullable: true,
996
995
  default: () => 1
997
996
  }),
@@ -1001,10 +1000,10 @@ class CreateChatCompletionRequest extends /*#__PURE__*/S.Class("CreateChatComple
1001
1000
  "seed": /*#__PURE__*/S.optionalWith(S.Int, {
1002
1001
  nullable: true
1003
1002
  }),
1004
- "stream_options": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.NullOr(ChatCompletionStreamOptions), {
1003
+ "stream_options": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.NullOr(ChatCompletionStreamOptions), {
1005
1004
  default: () => null
1006
1005
  }),
1007
- "tools": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(ChatCompletionTool), {
1006
+ "tools": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(ChatCompletionTool), {
1008
1007
  nullable: true
1009
1008
  }),
1010
1009
  "tool_choice": /*#__PURE__*/S.optionalWith(ChatCompletionToolChoiceOption, {
@@ -1014,20 +1013,20 @@ class CreateChatCompletionRequest extends /*#__PURE__*/S.Class("CreateChatComple
1014
1013
  nullable: true,
1015
1014
  default: () => true
1016
1015
  }),
1017
- "function_call": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(CreateChatCompletionRequestFunctionCallEnum, ChatCompletionFunctionCallOption), {
1016
+ "function_call": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(CreateChatCompletionRequestFunctionCallEnum, ChatCompletionFunctionCallOption), {
1018
1017
  nullable: true
1019
1018
  }),
1020
- "functions": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(ChatCompletionFunctions).pipe( /*#__PURE__*/S.minItems(1), /*#__PURE__*/S.maxItems(128)), {
1019
+ "functions": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(ChatCompletionFunctions).pipe(/*#__PURE__*/S.minItems(1), /*#__PURE__*/S.maxItems(128)), {
1021
1020
  nullable: true
1022
1021
  }),
1023
1022
  "metadata": /*#__PURE__*/S.optionalWith(Metadata, {
1024
1023
  nullable: true
1025
1024
  }),
1026
- "temperature": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
1025
+ "temperature": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
1027
1026
  nullable: true,
1028
1027
  default: () => 1
1029
1028
  }),
1030
- "top_p": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
1029
+ "top_p": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
1031
1030
  nullable: true,
1032
1031
  default: () => 1
1033
1032
  }),
@@ -1068,14 +1067,14 @@ class ChatCompletionMessageListObject extends /*#__PURE__*/S.Literal("list") {}
1068
1067
  exports.ChatCompletionMessageListObject = ChatCompletionMessageListObject;
1069
1068
  class ChatCompletionMessageList extends /*#__PURE__*/S.Class("ChatCompletionMessageList")({
1070
1069
  "object": /*#__PURE__*/ChatCompletionMessageListObject.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => "list")),
1071
- "data": /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
1070
+ "data": /*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
1072
1071
  "id": S.String,
1073
1072
  "content": /*#__PURE__*/S.NullOr(S.String),
1074
1073
  "refusal": /*#__PURE__*/S.NullOr(S.String),
1075
1074
  "tool_calls": /*#__PURE__*/S.optionalWith(ChatCompletionMessageToolCalls, {
1076
1075
  nullable: true
1077
1076
  }),
1078
- "annotations": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
1077
+ "annotations": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
1079
1078
  "type": /*#__PURE__*/S.Literal("url_citation"),
1080
1079
  "url_citation": /*#__PURE__*/S.Struct({
1081
1080
  "end_index": S.Int,
@@ -1087,13 +1086,13 @@ class ChatCompletionMessageList extends /*#__PURE__*/S.Class("ChatCompletionMess
1087
1086
  nullable: true
1088
1087
  }),
1089
1088
  "role": /*#__PURE__*/S.Literal("assistant"),
1090
- "function_call": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
1089
+ "function_call": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
1091
1090
  "arguments": S.String,
1092
1091
  "name": S.String
1093
1092
  }), {
1094
1093
  nullable: true
1095
1094
  }),
1096
- "audio": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
1095
+ "audio": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
1097
1096
  "id": S.String,
1098
1097
  "expires_at": S.Int,
1099
1098
  "data": S.String,
@@ -1112,7 +1111,7 @@ exports.CreateCompletionRequestModelEnum = CreateCompletionRequestModelEnum;
1112
1111
  class CreateCompletionRequest extends /*#__PURE__*/S.Class("CreateCompletionRequest")({
1113
1112
  "model": /*#__PURE__*/S.Union(S.String, CreateCompletionRequestModelEnum),
1114
1113
  "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|>")),
1115
- "best_of": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(20)), {
1114
+ "best_of": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(20)), {
1116
1115
  nullable: true,
1117
1116
  default: () => 1
1118
1117
  }),
@@ -1120,52 +1119,52 @@ class CreateCompletionRequest extends /*#__PURE__*/S.Class("CreateCompletionRequ
1120
1119
  nullable: true,
1121
1120
  default: () => false
1122
1121
  }),
1123
- "frequency_penalty": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(-2), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
1122
+ "frequency_penalty": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(-2), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
1124
1123
  nullable: true,
1125
1124
  default: () => 0
1126
1125
  }),
1127
- "logit_bias": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Record({
1126
+ "logit_bias": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.NullOr(/*#__PURE__*/S.Record({
1128
1127
  key: S.String,
1129
1128
  value: S.Unknown
1130
1129
  })), {
1131
1130
  default: () => null
1132
1131
  }),
1133
- "logprobs": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(5))), {
1132
+ "logprobs": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.NullOr(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(5))), {
1134
1133
  default: () => null
1135
1134
  }),
1136
- "max_tokens": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0)), {
1135
+ "max_tokens": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0)), {
1137
1136
  nullable: true,
1138
1137
  default: () => 16
1139
1138
  }),
1140
- "n": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(128)), {
1139
+ "n": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(128)), {
1141
1140
  nullable: true,
1142
1141
  default: () => 1
1143
1142
  }),
1144
- "presence_penalty": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(-2), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
1143
+ "presence_penalty": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(-2), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
1145
1144
  nullable: true,
1146
1145
  default: () => 0
1147
1146
  }),
1148
1147
  "seed": /*#__PURE__*/S.optionalWith(S.Int, {
1149
1148
  nullable: true
1150
1149
  }),
1151
- "stop": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.NullOr(StopConfiguration), {
1150
+ "stop": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.NullOr(StopConfiguration), {
1152
1151
  default: () => null
1153
1152
  }),
1154
1153
  "stream": /*#__PURE__*/S.optionalWith(S.Boolean, {
1155
1154
  nullable: true,
1156
1155
  default: () => false
1157
1156
  }),
1158
- "stream_options": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.NullOr(ChatCompletionStreamOptions), {
1157
+ "stream_options": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.NullOr(ChatCompletionStreamOptions), {
1159
1158
  default: () => null
1160
1159
  }),
1161
- "suffix": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.NullOr(S.String), {
1160
+ "suffix": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.NullOr(S.String), {
1162
1161
  default: () => null
1163
1162
  }),
1164
- "temperature": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
1163
+ "temperature": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
1165
1164
  nullable: true,
1166
1165
  default: () => 1
1167
1166
  }),
1168
- "top_p": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
1167
+ "top_p": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
1169
1168
  nullable: true,
1170
1169
  default: () => 1
1171
1170
  }),
@@ -1178,20 +1177,20 @@ class CreateCompletionResponseObject extends /*#__PURE__*/S.Literal("text_comple
1178
1177
  exports.CreateCompletionResponseObject = CreateCompletionResponseObject;
1179
1178
  class CreateCompletionResponse extends /*#__PURE__*/S.Class("CreateCompletionResponse")({
1180
1179
  "id": S.String,
1181
- "choices": /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
1180
+ "choices": /*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
1182
1181
  "finish_reason": /*#__PURE__*/S.Literal("stop", "length", "content_filter"),
1183
1182
  "index": S.Int,
1184
- "logprobs": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Struct({
1185
- "text_offset": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.Int), {
1183
+ "logprobs": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Struct({
1184
+ "text_offset": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.Int), {
1186
1185
  nullable: true
1187
1186
  }),
1188
- "token_logprobs": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.Number), {
1187
+ "token_logprobs": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.Number), {
1189
1188
  nullable: true
1190
1189
  }),
1191
- "tokens": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
1190
+ "tokens": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
1192
1191
  nullable: true
1193
1192
  }),
1194
- "top_logprobs": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Record({
1193
+ "top_logprobs": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Record({
1195
1194
  key: S.String,
1196
1195
  value: S.Unknown
1197
1196
  })), {
@@ -1216,13 +1215,13 @@ exports.CreateEmbeddingRequestModelEnum = CreateEmbeddingRequestModelEnum;
1216
1215
  class CreateEmbeddingRequestEncodingFormat extends /*#__PURE__*/S.Literal("float", "base64") {}
1217
1216
  exports.CreateEmbeddingRequestEncodingFormat = CreateEmbeddingRequestEncodingFormat;
1218
1217
  class CreateEmbeddingRequest extends /*#__PURE__*/S.Class("CreateEmbeddingRequest")({
1219
- "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))),
1218
+ "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))),
1220
1219
  "model": /*#__PURE__*/S.Union(S.String, CreateEmbeddingRequestModelEnum),
1221
1220
  "encoding_format": /*#__PURE__*/S.optionalWith(CreateEmbeddingRequestEncodingFormat, {
1222
1221
  nullable: true,
1223
1222
  default: () => "float"
1224
1223
  }),
1225
- "dimensions": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1)), {
1224
+ "dimensions": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1)), {
1226
1225
  nullable: true
1227
1226
  }),
1228
1227
  "user": /*#__PURE__*/S.optionalWith(S.String, {
@@ -1371,7 +1370,7 @@ class ListPaginatedFineTuningJobsParams extends /*#__PURE__*/S.Struct({
1371
1370
  nullable: true,
1372
1371
  default: () => 20
1373
1372
  }),
1374
- "metadata": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Record({
1373
+ "metadata": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Record({
1375
1374
  key: S.String,
1376
1375
  value: S.Unknown
1377
1376
  }), {
@@ -1401,7 +1400,7 @@ class FineTuningIntegration extends /*#__PURE__*/S.Struct({
1401
1400
  "entity": /*#__PURE__*/S.optionalWith(S.String, {
1402
1401
  nullable: true
1403
1402
  }),
1404
- "tags": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
1403
+ "tags": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
1405
1404
  nullable: true
1406
1405
  })
1407
1406
  })
@@ -1416,16 +1415,16 @@ exports.FineTuneSupervisedMethodHyperparametersLearningRateMultiplierEnum = Fine
1416
1415
  class FineTuneSupervisedMethodHyperparametersNEpochsEnum extends /*#__PURE__*/S.Literal("auto") {}
1417
1416
  exports.FineTuneSupervisedMethodHyperparametersNEpochsEnum = FineTuneSupervisedMethodHyperparametersNEpochsEnum;
1418
1417
  class FineTuneSupervisedMethod extends /*#__PURE__*/S.Struct({
1419
- "hyperparameters": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
1420
- "batch_size": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(FineTuneSupervisedMethodHyperparametersBatchSizeEnum, /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(256))), {
1418
+ "hyperparameters": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
1419
+ "batch_size": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(FineTuneSupervisedMethodHyperparametersBatchSizeEnum, /*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(256))), {
1421
1420
  nullable: true,
1422
1421
  default: () => "auto"
1423
1422
  }),
1424
- "learning_rate_multiplier": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(FineTuneSupervisedMethodHyperparametersLearningRateMultiplierEnum, /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThan(0))), {
1423
+ "learning_rate_multiplier": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(FineTuneSupervisedMethodHyperparametersLearningRateMultiplierEnum, /*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThan(0))), {
1425
1424
  nullable: true,
1426
1425
  default: () => "auto"
1427
1426
  }),
1428
- "n_epochs": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(FineTuneSupervisedMethodHyperparametersNEpochsEnum, /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(50))), {
1427
+ "n_epochs": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(FineTuneSupervisedMethodHyperparametersNEpochsEnum, /*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(50))), {
1429
1428
  nullable: true,
1430
1429
  default: () => "auto"
1431
1430
  })
@@ -1443,20 +1442,20 @@ exports.FineTuneDPOMethodHyperparametersLearningRateMultiplierEnum = FineTuneDPO
1443
1442
  class FineTuneDPOMethodHyperparametersNEpochsEnum extends /*#__PURE__*/S.Literal("auto") {}
1444
1443
  exports.FineTuneDPOMethodHyperparametersNEpochsEnum = FineTuneDPOMethodHyperparametersNEpochsEnum;
1445
1444
  class FineTuneDPOMethod extends /*#__PURE__*/S.Struct({
1446
- "hyperparameters": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
1447
- "beta": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(FineTuneDPOMethodHyperparametersBetaEnum, /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThan(0), /*#__PURE__*/S.lessThanOrEqualTo(2))), {
1445
+ "hyperparameters": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
1446
+ "beta": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(FineTuneDPOMethodHyperparametersBetaEnum, /*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThan(0), /*#__PURE__*/S.lessThanOrEqualTo(2))), {
1448
1447
  nullable: true,
1449
1448
  default: () => "auto"
1450
1449
  }),
1451
- "batch_size": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(FineTuneDPOMethodHyperparametersBatchSizeEnum, /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(256))), {
1450
+ "batch_size": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(FineTuneDPOMethodHyperparametersBatchSizeEnum, /*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(256))), {
1452
1451
  nullable: true,
1453
1452
  default: () => "auto"
1454
1453
  }),
1455
- "learning_rate_multiplier": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(FineTuneDPOMethodHyperparametersLearningRateMultiplierEnum, /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThan(0))), {
1454
+ "learning_rate_multiplier": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(FineTuneDPOMethodHyperparametersLearningRateMultiplierEnum, /*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThan(0))), {
1456
1455
  nullable: true,
1457
1456
  default: () => "auto"
1458
1457
  }),
1459
- "n_epochs": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(FineTuneDPOMethodHyperparametersNEpochsEnum, /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(50))), {
1458
+ "n_epochs": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(FineTuneDPOMethodHyperparametersNEpochsEnum, /*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(50))), {
1460
1459
  nullable: true,
1461
1460
  default: () => "auto"
1462
1461
  })
@@ -1480,7 +1479,7 @@ exports.FineTuneMethod = FineTuneMethod;
1480
1479
  class FineTuningJob extends /*#__PURE__*/S.Struct({
1481
1480
  "id": S.String,
1482
1481
  "created_at": S.Int,
1483
- "error": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Struct({
1482
+ "error": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Struct({
1484
1483
  "code": S.String,
1485
1484
  "message": S.String,
1486
1485
  "param": /*#__PURE__*/S.NullOr(S.String)
@@ -1488,15 +1487,15 @@ class FineTuningJob extends /*#__PURE__*/S.Struct({
1488
1487
  "fine_tuned_model": /*#__PURE__*/S.NullOr(S.String),
1489
1488
  "finished_at": /*#__PURE__*/S.NullOr(S.Int),
1490
1489
  "hyperparameters": /*#__PURE__*/S.Struct({
1491
- "batch_size": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(FineTuningJobHyperparametersBatchSizeEnum, /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(256))), {
1490
+ "batch_size": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(FineTuningJobHyperparametersBatchSizeEnum, /*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(256))), {
1492
1491
  nullable: true,
1493
1492
  default: () => "auto"
1494
1493
  }),
1495
- "learning_rate_multiplier": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(FineTuningJobHyperparametersLearningRateMultiplierEnum, /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThan(0))), {
1494
+ "learning_rate_multiplier": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(FineTuningJobHyperparametersLearningRateMultiplierEnum, /*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThan(0))), {
1496
1495
  nullable: true,
1497
1496
  default: () => "auto"
1498
1497
  }),
1499
- "n_epochs": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(FineTuningJobHyperparametersNEpochsEnum, /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(50))), {
1498
+ "n_epochs": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(FineTuningJobHyperparametersNEpochsEnum, /*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(50))), {
1500
1499
  nullable: true,
1501
1500
  default: () => "auto"
1502
1501
  })
@@ -1509,7 +1508,7 @@ class FineTuningJob extends /*#__PURE__*/S.Struct({
1509
1508
  "trained_tokens": /*#__PURE__*/S.NullOr(S.Int),
1510
1509
  "training_file": S.String,
1511
1510
  "validation_file": /*#__PURE__*/S.NullOr(S.String),
1512
- "integrations": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(FineTuningIntegration).pipe( /*#__PURE__*/S.maxItems(5)), {
1511
+ "integrations": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(FineTuningIntegration).pipe(/*#__PURE__*/S.maxItems(5)), {
1513
1512
  nullable: true
1514
1513
  }),
1515
1514
  "seed": S.Int,
@@ -1543,29 +1542,29 @@ exports.CreateFineTuningJobRequestHyperparametersNEpochsEnum = CreateFineTuningJ
1543
1542
  class CreateFineTuningJobRequest extends /*#__PURE__*/S.Class("CreateFineTuningJobRequest")({
1544
1543
  "model": /*#__PURE__*/S.Union(S.String, CreateFineTuningJobRequestModelEnum),
1545
1544
  "training_file": S.String,
1546
- "hyperparameters": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
1547
- "batch_size": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(CreateFineTuningJobRequestHyperparametersBatchSizeEnum, /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(256))), {
1545
+ "hyperparameters": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
1546
+ "batch_size": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(CreateFineTuningJobRequestHyperparametersBatchSizeEnum, /*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(256))), {
1548
1547
  nullable: true,
1549
1548
  default: () => "auto"
1550
1549
  }),
1551
- "learning_rate_multiplier": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(CreateFineTuningJobRequestHyperparametersLearningRateMultiplierEnum, /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThan(0))), {
1550
+ "learning_rate_multiplier": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(CreateFineTuningJobRequestHyperparametersLearningRateMultiplierEnum, /*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThan(0))), {
1552
1551
  nullable: true,
1553
1552
  default: () => "auto"
1554
1553
  }),
1555
- "n_epochs": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(CreateFineTuningJobRequestHyperparametersNEpochsEnum, /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(50))), {
1554
+ "n_epochs": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(CreateFineTuningJobRequestHyperparametersNEpochsEnum, /*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(50))), {
1556
1555
  nullable: true,
1557
1556
  default: () => "auto"
1558
1557
  })
1559
1558
  }), {
1560
1559
  nullable: true
1561
1560
  }),
1562
- "suffix": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.NullOr( /*#__PURE__*/S.String.pipe( /*#__PURE__*/S.minLength(1), /*#__PURE__*/S.maxLength(64))), {
1561
+ "suffix": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.NullOr(/*#__PURE__*/S.String.pipe(/*#__PURE__*/S.minLength(1), /*#__PURE__*/S.maxLength(64))), {
1563
1562
  default: () => null
1564
1563
  }),
1565
1564
  "validation_file": /*#__PURE__*/S.optionalWith(S.String, {
1566
1565
  nullable: true
1567
1566
  }),
1568
- "integrations": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
1567
+ "integrations": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
1569
1568
  "type": /*#__PURE__*/S.Literal("wandb"),
1570
1569
  "wandb": /*#__PURE__*/S.Struct({
1571
1570
  "project": S.String,
@@ -1575,14 +1574,14 @@ class CreateFineTuningJobRequest extends /*#__PURE__*/S.Class("CreateFineTuningJ
1575
1574
  "entity": /*#__PURE__*/S.optionalWith(S.String, {
1576
1575
  nullable: true
1577
1576
  }),
1578
- "tags": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
1577
+ "tags": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
1579
1578
  nullable: true
1580
1579
  })
1581
1580
  })
1582
1581
  })), {
1583
1582
  nullable: true
1584
1583
  }),
1585
- "seed": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2147483647)), {
1584
+ "seed": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2147483647)), {
1586
1585
  nullable: true
1587
1586
  }),
1588
1587
  "method": /*#__PURE__*/S.optionalWith(FineTuneMethod, {
@@ -1676,7 +1675,7 @@ class FineTuningJobEvent extends /*#__PURE__*/S.Struct({
1676
1675
  "type": /*#__PURE__*/S.optionalWith(FineTuningJobEventType, {
1677
1676
  nullable: true
1678
1677
  }),
1679
- "data": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Record({
1678
+ "data": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Record({
1680
1679
  key: S.String,
1681
1680
  value: S.Unknown
1682
1681
  }), {
@@ -1721,11 +1720,11 @@ class CreateImageRequestStyle extends /*#__PURE__*/S.Literal("vivid", "natural")
1721
1720
  exports.CreateImageRequestStyle = CreateImageRequestStyle;
1722
1721
  class CreateImageRequest extends /*#__PURE__*/S.Class("CreateImageRequest")({
1723
1722
  "prompt": S.String,
1724
- "model": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(S.String, CreateImageRequestModelEnum), {
1723
+ "model": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(S.String, CreateImageRequestModelEnum), {
1725
1724
  nullable: true,
1726
1725
  default: () => "dall-e-2"
1727
1726
  }),
1728
- "n": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(10)), {
1727
+ "n": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(10)), {
1729
1728
  nullable: true,
1730
1729
  default: () => 1
1731
1730
  }),
@@ -1775,7 +1774,7 @@ exports.DeleteModelResponse = DeleteModelResponse;
1775
1774
  class CreateModerationRequestModelEnum extends /*#__PURE__*/S.Literal("omni-moderation-latest", "omni-moderation-2024-09-26", "text-moderation-latest", "text-moderation-stable") {}
1776
1775
  exports.CreateModerationRequestModelEnum = CreateModerationRequestModelEnum;
1777
1776
  class CreateModerationRequest extends /*#__PURE__*/S.Class("CreateModerationRequest")({
1778
- "input": /*#__PURE__*/S.Union(S.String, /*#__PURE__*/S.Array(S.String), /*#__PURE__*/S.Array( /*#__PURE__*/S.Union( /*#__PURE__*/S.Struct({
1777
+ "input": /*#__PURE__*/S.Union(S.String, /*#__PURE__*/S.Array(S.String), /*#__PURE__*/S.Array(/*#__PURE__*/S.Union(/*#__PURE__*/S.Struct({
1779
1778
  "type": /*#__PURE__*/S.Literal("image_url"),
1780
1779
  "image_url": /*#__PURE__*/S.Struct({
1781
1780
  "url": S.String
@@ -1784,7 +1783,7 @@ class CreateModerationRequest extends /*#__PURE__*/S.Class("CreateModerationRequ
1784
1783
  "type": /*#__PURE__*/S.Literal("text"),
1785
1784
  "text": S.String
1786
1785
  })))),
1787
- "model": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(S.String, CreateModerationRequestModelEnum), {
1786
+ "model": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(S.String, CreateModerationRequestModelEnum), {
1788
1787
  nullable: true,
1789
1788
  default: () => "omni-moderation-latest"
1790
1789
  })
@@ -1793,7 +1792,7 @@ exports.CreateModerationRequest = CreateModerationRequest;
1793
1792
  class CreateModerationResponse extends /*#__PURE__*/S.Class("CreateModerationResponse")({
1794
1793
  "id": S.String,
1795
1794
  "model": S.String,
1796
- "results": /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
1795
+ "results": /*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
1797
1796
  "flagged": S.Boolean,
1798
1797
  "categories": /*#__PURE__*/S.Struct({
1799
1798
  "hate": S.Boolean,
@@ -1826,19 +1825,19 @@ class CreateModerationResponse extends /*#__PURE__*/S.Class("CreateModerationRes
1826
1825
  "violence/graphic": S.Number
1827
1826
  }),
1828
1827
  "category_applied_input_types": /*#__PURE__*/S.Struct({
1829
- "hate": /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("text")),
1830
- "hate/threatening": /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("text")),
1831
- "harassment": /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("text")),
1832
- "harassment/threatening": /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("text")),
1833
- "illicit": /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("text")),
1834
- "illicit/violent": /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("text")),
1835
- "self-harm": /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("text", "image")),
1836
- "self-harm/intent": /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("text", "image")),
1837
- "self-harm/instructions": /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("text", "image")),
1838
- "sexual": /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("text", "image")),
1839
- "sexual/minors": /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("text")),
1840
- "violence": /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("text", "image")),
1841
- "violence/graphic": /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("text", "image"))
1828
+ "hate": /*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("text")),
1829
+ "hate/threatening": /*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("text")),
1830
+ "harassment": /*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("text")),
1831
+ "harassment/threatening": /*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("text")),
1832
+ "illicit": /*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("text")),
1833
+ "illicit/violent": /*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("text")),
1834
+ "self-harm": /*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("text", "image")),
1835
+ "self-harm/intent": /*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("text", "image")),
1836
+ "self-harm/instructions": /*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("text", "image")),
1837
+ "sexual": /*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("text", "image")),
1838
+ "sexual/minors": /*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("text")),
1839
+ "violence": /*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("text", "image")),
1840
+ "violence/graphic": /*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("text", "image"))
1842
1841
  })
1843
1842
  }))
1844
1843
  }) {}
@@ -1878,7 +1877,7 @@ class AdminApiKey extends /*#__PURE__*/S.Struct({
1878
1877
  "created_at": /*#__PURE__*/S.optionalWith(S.Int, {
1879
1878
  nullable: true
1880
1879
  }),
1881
- "owner": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
1880
+ "owner": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
1882
1881
  "type": /*#__PURE__*/S.optionalWith(S.String, {
1883
1882
  nullable: true
1884
1883
  }),
@@ -1903,7 +1902,7 @@ class ApiKeyList extends /*#__PURE__*/S.Class("ApiKeyList")({
1903
1902
  "object": /*#__PURE__*/S.optionalWith(S.String, {
1904
1903
  nullable: true
1905
1904
  }),
1906
- "data": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(AdminApiKey), {
1905
+ "data": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(AdminApiKey), {
1907
1906
  nullable: true
1908
1907
  }),
1909
1908
  "has_more": /*#__PURE__*/S.optionalWith(S.Boolean, {
@@ -1948,19 +1947,19 @@ class ListAuditLogsParams extends /*#__PURE__*/S.Struct({
1948
1947
  "effective_at[lte]": /*#__PURE__*/S.optionalWith(S.Int, {
1949
1948
  nullable: true
1950
1949
  }),
1951
- "project_ids[]": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
1950
+ "project_ids[]": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
1952
1951
  nullable: true
1953
1952
  }),
1954
- "event_types[]": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(AuditLogEventType), {
1953
+ "event_types[]": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(AuditLogEventType), {
1955
1954
  nullable: true
1956
1955
  }),
1957
- "actor_ids[]": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
1956
+ "actor_ids[]": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
1958
1957
  nullable: true
1959
1958
  }),
1960
- "actor_emails[]": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
1959
+ "actor_emails[]": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
1961
1960
  nullable: true
1962
1961
  }),
1963
- "resource_ids[]": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
1962
+ "resource_ids[]": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
1964
1963
  nullable: true
1965
1964
  }),
1966
1965
  "limit": /*#__PURE__*/S.optionalWith(S.Int, {
@@ -2036,7 +2035,7 @@ class AuditLog extends /*#__PURE__*/S.Struct({
2036
2035
  "id": S.String,
2037
2036
  "type": AuditLogEventType,
2038
2037
  "effective_at": S.Int,
2039
- "project": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2038
+ "project": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2040
2039
  "id": /*#__PURE__*/S.optionalWith(S.String, {
2041
2040
  nullable: true
2042
2041
  }),
@@ -2047,12 +2046,12 @@ class AuditLog extends /*#__PURE__*/S.Struct({
2047
2046
  nullable: true
2048
2047
  }),
2049
2048
  "actor": AuditLogActor,
2050
- "api_key.created": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2049
+ "api_key.created": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2051
2050
  "id": /*#__PURE__*/S.optionalWith(S.String, {
2052
2051
  nullable: true
2053
2052
  }),
2054
- "data": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2055
- "scopes": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2053
+ "data": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2054
+ "scopes": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2056
2055
  nullable: true
2057
2056
  })
2058
2057
  }), {
@@ -2061,12 +2060,12 @@ class AuditLog extends /*#__PURE__*/S.Struct({
2061
2060
  }), {
2062
2061
  nullable: true
2063
2062
  }),
2064
- "api_key.updated": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2063
+ "api_key.updated": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2065
2064
  "id": /*#__PURE__*/S.optionalWith(S.String, {
2066
2065
  nullable: true
2067
2066
  }),
2068
- "changes_requested": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2069
- "scopes": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2067
+ "changes_requested": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2068
+ "scopes": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2070
2069
  nullable: true
2071
2070
  })
2072
2071
  }), {
@@ -2075,18 +2074,18 @@ class AuditLog extends /*#__PURE__*/S.Struct({
2075
2074
  }), {
2076
2075
  nullable: true
2077
2076
  }),
2078
- "api_key.deleted": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2077
+ "api_key.deleted": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2079
2078
  "id": /*#__PURE__*/S.optionalWith(S.String, {
2080
2079
  nullable: true
2081
2080
  })
2082
2081
  }), {
2083
2082
  nullable: true
2084
2083
  }),
2085
- "invite.sent": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2084
+ "invite.sent": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2086
2085
  "id": /*#__PURE__*/S.optionalWith(S.String, {
2087
2086
  nullable: true
2088
2087
  }),
2089
- "data": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2088
+ "data": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2090
2089
  "email": /*#__PURE__*/S.optionalWith(S.String, {
2091
2090
  nullable: true
2092
2091
  }),
@@ -2099,21 +2098,21 @@ class AuditLog extends /*#__PURE__*/S.Struct({
2099
2098
  }), {
2100
2099
  nullable: true
2101
2100
  }),
2102
- "invite.accepted": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2101
+ "invite.accepted": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2103
2102
  "id": /*#__PURE__*/S.optionalWith(S.String, {
2104
2103
  nullable: true
2105
2104
  })
2106
2105
  }), {
2107
2106
  nullable: true
2108
2107
  }),
2109
- "invite.deleted": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2108
+ "invite.deleted": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2110
2109
  "id": /*#__PURE__*/S.optionalWith(S.String, {
2111
2110
  nullable: true
2112
2111
  })
2113
2112
  }), {
2114
2113
  nullable: true
2115
2114
  }),
2116
- "login.failed": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2115
+ "login.failed": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2117
2116
  "error_code": /*#__PURE__*/S.optionalWith(S.String, {
2118
2117
  nullable: true
2119
2118
  }),
@@ -2123,7 +2122,7 @@ class AuditLog extends /*#__PURE__*/S.Struct({
2123
2122
  }), {
2124
2123
  nullable: true
2125
2124
  }),
2126
- "logout.failed": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2125
+ "logout.failed": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2127
2126
  "error_code": /*#__PURE__*/S.optionalWith(S.String, {
2128
2127
  nullable: true
2129
2128
  }),
@@ -2133,11 +2132,11 @@ class AuditLog extends /*#__PURE__*/S.Struct({
2133
2132
  }), {
2134
2133
  nullable: true
2135
2134
  }),
2136
- "organization.updated": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2135
+ "organization.updated": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2137
2136
  "id": /*#__PURE__*/S.optionalWith(S.String, {
2138
2137
  nullable: true
2139
2138
  }),
2140
- "changes_requested": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2139
+ "changes_requested": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2141
2140
  "title": /*#__PURE__*/S.optionalWith(S.String, {
2142
2141
  nullable: true
2143
2142
  }),
@@ -2147,7 +2146,7 @@ class AuditLog extends /*#__PURE__*/S.Struct({
2147
2146
  "name": /*#__PURE__*/S.optionalWith(S.String, {
2148
2147
  nullable: true
2149
2148
  }),
2150
- "settings": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2149
+ "settings": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2151
2150
  "threads_ui_visibility": /*#__PURE__*/S.optionalWith(S.String, {
2152
2151
  nullable: true
2153
2152
  }),
@@ -2163,11 +2162,11 @@ class AuditLog extends /*#__PURE__*/S.Struct({
2163
2162
  }), {
2164
2163
  nullable: true
2165
2164
  }),
2166
- "project.created": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2165
+ "project.created": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2167
2166
  "id": /*#__PURE__*/S.optionalWith(S.String, {
2168
2167
  nullable: true
2169
2168
  }),
2170
- "data": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2169
+ "data": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2171
2170
  "name": /*#__PURE__*/S.optionalWith(S.String, {
2172
2171
  nullable: true
2173
2172
  }),
@@ -2180,11 +2179,11 @@ class AuditLog extends /*#__PURE__*/S.Struct({
2180
2179
  }), {
2181
2180
  nullable: true
2182
2181
  }),
2183
- "project.updated": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2182
+ "project.updated": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2184
2183
  "id": /*#__PURE__*/S.optionalWith(S.String, {
2185
2184
  nullable: true
2186
2185
  }),
2187
- "changes_requested": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2186
+ "changes_requested": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2188
2187
  "title": /*#__PURE__*/S.optionalWith(S.String, {
2189
2188
  nullable: true
2190
2189
  })
@@ -2194,18 +2193,18 @@ class AuditLog extends /*#__PURE__*/S.Struct({
2194
2193
  }), {
2195
2194
  nullable: true
2196
2195
  }),
2197
- "project.archived": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2196
+ "project.archived": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2198
2197
  "id": /*#__PURE__*/S.optionalWith(S.String, {
2199
2198
  nullable: true
2200
2199
  })
2201
2200
  }), {
2202
2201
  nullable: true
2203
2202
  }),
2204
- "rate_limit.updated": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2203
+ "rate_limit.updated": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2205
2204
  "id": /*#__PURE__*/S.optionalWith(S.String, {
2206
2205
  nullable: true
2207
2206
  }),
2208
- "changes_requested": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2207
+ "changes_requested": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2209
2208
  "max_requests_per_1_minute": /*#__PURE__*/S.optionalWith(S.Int, {
2210
2209
  nullable: true
2211
2210
  }),
@@ -2230,18 +2229,18 @@ class AuditLog extends /*#__PURE__*/S.Struct({
2230
2229
  }), {
2231
2230
  nullable: true
2232
2231
  }),
2233
- "rate_limit.deleted": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2232
+ "rate_limit.deleted": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2234
2233
  "id": /*#__PURE__*/S.optionalWith(S.String, {
2235
2234
  nullable: true
2236
2235
  })
2237
2236
  }), {
2238
2237
  nullable: true
2239
2238
  }),
2240
- "service_account.created": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2239
+ "service_account.created": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2241
2240
  "id": /*#__PURE__*/S.optionalWith(S.String, {
2242
2241
  nullable: true
2243
2242
  }),
2244
- "data": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2243
+ "data": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2245
2244
  "role": /*#__PURE__*/S.optionalWith(S.String, {
2246
2245
  nullable: true
2247
2246
  })
@@ -2251,11 +2250,11 @@ class AuditLog extends /*#__PURE__*/S.Struct({
2251
2250
  }), {
2252
2251
  nullable: true
2253
2252
  }),
2254
- "service_account.updated": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2253
+ "service_account.updated": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2255
2254
  "id": /*#__PURE__*/S.optionalWith(S.String, {
2256
2255
  nullable: true
2257
2256
  }),
2258
- "changes_requested": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2257
+ "changes_requested": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2259
2258
  "role": /*#__PURE__*/S.optionalWith(S.String, {
2260
2259
  nullable: true
2261
2260
  })
@@ -2265,18 +2264,18 @@ class AuditLog extends /*#__PURE__*/S.Struct({
2265
2264
  }), {
2266
2265
  nullable: true
2267
2266
  }),
2268
- "service_account.deleted": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2267
+ "service_account.deleted": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2269
2268
  "id": /*#__PURE__*/S.optionalWith(S.String, {
2270
2269
  nullable: true
2271
2270
  })
2272
2271
  }), {
2273
2272
  nullable: true
2274
2273
  }),
2275
- "user.added": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2274
+ "user.added": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2276
2275
  "id": /*#__PURE__*/S.optionalWith(S.String, {
2277
2276
  nullable: true
2278
2277
  }),
2279
- "data": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2278
+ "data": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2280
2279
  "role": /*#__PURE__*/S.optionalWith(S.String, {
2281
2280
  nullable: true
2282
2281
  })
@@ -2286,11 +2285,11 @@ class AuditLog extends /*#__PURE__*/S.Struct({
2286
2285
  }), {
2287
2286
  nullable: true
2288
2287
  }),
2289
- "user.updated": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2288
+ "user.updated": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2290
2289
  "id": /*#__PURE__*/S.optionalWith(S.String, {
2291
2290
  nullable: true
2292
2291
  }),
2293
- "changes_requested": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2292
+ "changes_requested": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2294
2293
  "role": /*#__PURE__*/S.optionalWith(S.String, {
2295
2294
  nullable: true
2296
2295
  })
@@ -2300,7 +2299,7 @@ class AuditLog extends /*#__PURE__*/S.Struct({
2300
2299
  }), {
2301
2300
  nullable: true
2302
2301
  }),
2303
- "user.deleted": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2302
+ "user.deleted": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2304
2303
  "id": /*#__PURE__*/S.optionalWith(S.String, {
2305
2304
  nullable: true
2306
2305
  })
@@ -2328,10 +2327,10 @@ class UsageCostsParams extends /*#__PURE__*/S.Struct({
2328
2327
  nullable: true,
2329
2328
  default: () => "1d"
2330
2329
  }),
2331
- "project_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2330
+ "project_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2332
2331
  nullable: true
2333
2332
  }),
2334
- "group_by": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("project_id", "line_item")), {
2333
+ "group_by": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("project_id", "line_item")), {
2335
2334
  nullable: true
2336
2335
  }),
2337
2336
  "limit": /*#__PURE__*/S.optionalWith(S.Int, {
@@ -2512,7 +2511,7 @@ class CostsResultObject extends /*#__PURE__*/S.Literal("organization.costs.resul
2512
2511
  exports.CostsResultObject = CostsResultObject;
2513
2512
  class CostsResult extends /*#__PURE__*/S.Struct({
2514
2513
  "object": CostsResultObject,
2515
- "amount": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
2514
+ "amount": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
2516
2515
  "value": /*#__PURE__*/S.optionalWith(S.Number, {
2517
2516
  nullable: true
2518
2517
  }),
@@ -2534,7 +2533,7 @@ class UsageTimeBucket extends /*#__PURE__*/S.Struct({
2534
2533
  "object": UsageTimeBucketObject,
2535
2534
  "start_time": S.Int,
2536
2535
  "end_time": S.Int,
2537
- "result": /*#__PURE__*/S.Array( /*#__PURE__*/S.Union(UsageCompletionsResult, UsageEmbeddingsResult, UsageModerationsResult, UsageImagesResult, UsageAudioSpeechesResult, UsageAudioTranscriptionsResult, UsageVectorStoresResult, UsageCodeInterpreterSessionsResult, CostsResult))
2536
+ "result": /*#__PURE__*/S.Array(/*#__PURE__*/S.Union(UsageCompletionsResult, UsageEmbeddingsResult, UsageModerationsResult, UsageImagesResult, UsageAudioSpeechesResult, UsageAudioTranscriptionsResult, UsageVectorStoresResult, UsageCodeInterpreterSessionsResult, CostsResult))
2538
2537
  }) {}
2539
2538
  exports.UsageTimeBucket = UsageTimeBucket;
2540
2539
  class UsageResponse extends /*#__PURE__*/S.Class("UsageResponse")({
@@ -2573,11 +2572,11 @@ class Invite extends /*#__PURE__*/S.Struct({
2573
2572
  "accepted_at": /*#__PURE__*/S.optionalWith(S.Int, {
2574
2573
  nullable: true
2575
2574
  }),
2576
- "projects": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
2575
+ "projects": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
2577
2576
  "id": /*#__PURE__*/S.optionalWith(S.String, {
2578
2577
  nullable: true
2579
2578
  }),
2580
- "role": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Literal("member", "owner"), {
2579
+ "role": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Literal("member", "owner"), {
2581
2580
  nullable: true
2582
2581
  })
2583
2582
  })), {
@@ -2604,7 +2603,7 @@ exports.InviteRequestRole = InviteRequestRole;
2604
2603
  class InviteRequest extends /*#__PURE__*/S.Class("InviteRequest")({
2605
2604
  "email": S.String,
2606
2605
  "role": InviteRequestRole,
2607
- "projects": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
2606
+ "projects": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
2608
2607
  "id": S.String,
2609
2608
  "role": /*#__PURE__*/S.Literal("member", "owner")
2610
2609
  })), {
@@ -2925,19 +2924,19 @@ class UsageAudioSpeechesParams extends /*#__PURE__*/S.Struct({
2925
2924
  nullable: true,
2926
2925
  default: () => "1d"
2927
2926
  }),
2928
- "project_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2927
+ "project_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2929
2928
  nullable: true
2930
2929
  }),
2931
- "user_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2930
+ "user_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2932
2931
  nullable: true
2933
2932
  }),
2934
- "api_key_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2933
+ "api_key_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2935
2934
  nullable: true
2936
2935
  }),
2937
- "models": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2936
+ "models": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2938
2937
  nullable: true
2939
2938
  }),
2940
- "group_by": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("project_id", "user_id", "api_key_id", "model")), {
2939
+ "group_by": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("project_id", "user_id", "api_key_id", "model")), {
2941
2940
  nullable: true
2942
2941
  }),
2943
2942
  "limit": /*#__PURE__*/S.optionalWith(S.Int, {
@@ -2959,19 +2958,19 @@ class UsageAudioTranscriptionsParams extends /*#__PURE__*/S.Struct({
2959
2958
  nullable: true,
2960
2959
  default: () => "1d"
2961
2960
  }),
2962
- "project_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2961
+ "project_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2963
2962
  nullable: true
2964
2963
  }),
2965
- "user_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2964
+ "user_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2966
2965
  nullable: true
2967
2966
  }),
2968
- "api_key_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2967
+ "api_key_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2969
2968
  nullable: true
2970
2969
  }),
2971
- "models": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2970
+ "models": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2972
2971
  nullable: true
2973
2972
  }),
2974
- "group_by": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("project_id", "user_id", "api_key_id", "model")), {
2973
+ "group_by": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("project_id", "user_id", "api_key_id", "model")), {
2975
2974
  nullable: true
2976
2975
  }),
2977
2976
  "limit": /*#__PURE__*/S.optionalWith(S.Int, {
@@ -2993,10 +2992,10 @@ class UsageCodeInterpreterSessionsParams extends /*#__PURE__*/S.Struct({
2993
2992
  nullable: true,
2994
2993
  default: () => "1d"
2995
2994
  }),
2996
- "project_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
2995
+ "project_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
2997
2996
  nullable: true
2998
2997
  }),
2999
- "group_by": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("project_id")), {
2998
+ "group_by": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("project_id")), {
3000
2999
  nullable: true
3001
3000
  }),
3002
3001
  "limit": /*#__PURE__*/S.optionalWith(S.Int, {
@@ -3018,22 +3017,22 @@ class UsageCompletionsParams extends /*#__PURE__*/S.Struct({
3018
3017
  nullable: true,
3019
3018
  default: () => "1d"
3020
3019
  }),
3021
- "project_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
3020
+ "project_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
3022
3021
  nullable: true
3023
3022
  }),
3024
- "user_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
3023
+ "user_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
3025
3024
  nullable: true
3026
3025
  }),
3027
- "api_key_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
3026
+ "api_key_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
3028
3027
  nullable: true
3029
3028
  }),
3030
- "models": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
3029
+ "models": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
3031
3030
  nullable: true
3032
3031
  }),
3033
3032
  "batch": /*#__PURE__*/S.optionalWith(S.Boolean, {
3034
3033
  nullable: true
3035
3034
  }),
3036
- "group_by": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("project_id", "user_id", "api_key_id", "model", "batch")), {
3035
+ "group_by": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("project_id", "user_id", "api_key_id", "model", "batch")), {
3037
3036
  nullable: true
3038
3037
  }),
3039
3038
  "limit": /*#__PURE__*/S.optionalWith(S.Int, {
@@ -3055,19 +3054,19 @@ class UsageEmbeddingsParams extends /*#__PURE__*/S.Struct({
3055
3054
  nullable: true,
3056
3055
  default: () => "1d"
3057
3056
  }),
3058
- "project_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
3057
+ "project_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
3059
3058
  nullable: true
3060
3059
  }),
3061
- "user_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
3060
+ "user_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
3062
3061
  nullable: true
3063
3062
  }),
3064
- "api_key_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
3063
+ "api_key_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
3065
3064
  nullable: true
3066
3065
  }),
3067
- "models": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
3066
+ "models": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
3068
3067
  nullable: true
3069
3068
  }),
3070
- "group_by": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("project_id", "user_id", "api_key_id", "model")), {
3069
+ "group_by": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("project_id", "user_id", "api_key_id", "model")), {
3071
3070
  nullable: true
3072
3071
  }),
3073
3072
  "limit": /*#__PURE__*/S.optionalWith(S.Int, {
@@ -3089,25 +3088,25 @@ class UsageImagesParams extends /*#__PURE__*/S.Struct({
3089
3088
  nullable: true,
3090
3089
  default: () => "1d"
3091
3090
  }),
3092
- "sources": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("image.generation", "image.edit", "image.variation")), {
3091
+ "sources": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("image.generation", "image.edit", "image.variation")), {
3093
3092
  nullable: true
3094
3093
  }),
3095
- "sizes": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("256x256", "512x512", "1024x1024", "1792x1792", "1024x1792")), {
3094
+ "sizes": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("256x256", "512x512", "1024x1024", "1792x1792", "1024x1792")), {
3096
3095
  nullable: true
3097
3096
  }),
3098
- "project_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
3097
+ "project_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
3099
3098
  nullable: true
3100
3099
  }),
3101
- "user_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
3100
+ "user_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
3102
3101
  nullable: true
3103
3102
  }),
3104
- "api_key_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
3103
+ "api_key_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
3105
3104
  nullable: true
3106
3105
  }),
3107
- "models": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
3106
+ "models": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
3108
3107
  nullable: true
3109
3108
  }),
3110
- "group_by": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("project_id", "user_id", "api_key_id", "model", "size", "source")), {
3109
+ "group_by": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("project_id", "user_id", "api_key_id", "model", "size", "source")), {
3111
3110
  nullable: true
3112
3111
  }),
3113
3112
  "limit": /*#__PURE__*/S.optionalWith(S.Int, {
@@ -3129,19 +3128,19 @@ class UsageModerationsParams extends /*#__PURE__*/S.Struct({
3129
3128
  nullable: true,
3130
3129
  default: () => "1d"
3131
3130
  }),
3132
- "project_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
3131
+ "project_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
3133
3132
  nullable: true
3134
3133
  }),
3135
- "user_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
3134
+ "user_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
3136
3135
  nullable: true
3137
3136
  }),
3138
- "api_key_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
3137
+ "api_key_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
3139
3138
  nullable: true
3140
3139
  }),
3141
- "models": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
3140
+ "models": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
3142
3141
  nullable: true
3143
3142
  }),
3144
- "group_by": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("project_id", "user_id", "api_key_id", "model")), {
3143
+ "group_by": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("project_id", "user_id", "api_key_id", "model")), {
3145
3144
  nullable: true
3146
3145
  }),
3147
3146
  "limit": /*#__PURE__*/S.optionalWith(S.Int, {
@@ -3163,10 +3162,10 @@ class UsageVectorStoresParams extends /*#__PURE__*/S.Struct({
3163
3162
  nullable: true,
3164
3163
  default: () => "1d"
3165
3164
  }),
3166
- "project_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
3165
+ "project_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
3167
3166
  nullable: true
3168
3167
  }),
3169
- "group_by": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("project_id")), {
3168
+ "group_by": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("project_id")), {
3170
3169
  nullable: true
3171
3170
  }),
3172
3171
  "limit": /*#__PURE__*/S.optionalWith(S.Int, {
@@ -3185,7 +3184,7 @@ class ListUsersParams extends /*#__PURE__*/S.Struct({
3185
3184
  "after": /*#__PURE__*/S.optionalWith(S.String, {
3186
3185
  nullable: true
3187
3186
  }),
3188
- "emails": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
3187
+ "emails": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
3189
3188
  nullable: true
3190
3189
  })
3191
3190
  }) {}
@@ -3259,7 +3258,7 @@ class RealtimeSessionCreateRequest extends /*#__PURE__*/S.Class("RealtimeSession
3259
3258
  nullable: true,
3260
3259
  default: () => "pcm16"
3261
3260
  }),
3262
- "input_audio_transcription": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
3261
+ "input_audio_transcription": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
3263
3262
  "model": /*#__PURE__*/S.optionalWith(S.String, {
3264
3263
  nullable: true
3265
3264
  }),
@@ -3272,7 +3271,7 @@ class RealtimeSessionCreateRequest extends /*#__PURE__*/S.Class("RealtimeSession
3272
3271
  }), {
3273
3272
  nullable: true
3274
3273
  }),
3275
- "turn_detection": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
3274
+ "turn_detection": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
3276
3275
  "type": /*#__PURE__*/S.optionalWith(RealtimeSessionCreateRequestTurnDetectionType, {
3277
3276
  nullable: true,
3278
3277
  default: () => "server_vad"
@@ -3301,15 +3300,15 @@ class RealtimeSessionCreateRequest extends /*#__PURE__*/S.Class("RealtimeSession
3301
3300
  }), {
3302
3301
  nullable: true
3303
3302
  }),
3304
- "input_audio_noise_reduction": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Struct({
3303
+ "input_audio_noise_reduction": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.NullOr(/*#__PURE__*/S.Struct({
3305
3304
  "type": /*#__PURE__*/S.optionalWith(RealtimeSessionCreateRequestInputAudioNoiseReductionType, {
3306
3305
  nullable: true
3307
3306
  })
3308
3307
  })), {
3309
3308
  default: () => null
3310
3309
  }),
3311
- "tools": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
3312
- "type": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Literal("function"), {
3310
+ "tools": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
3311
+ "type": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Literal("function"), {
3313
3312
  nullable: true
3314
3313
  }),
3315
3314
  "name": /*#__PURE__*/S.optionalWith(S.String, {
@@ -3318,7 +3317,7 @@ class RealtimeSessionCreateRequest extends /*#__PURE__*/S.Class("RealtimeSession
3318
3317
  "description": /*#__PURE__*/S.optionalWith(S.String, {
3319
3318
  nullable: true
3320
3319
  }),
3321
- "parameters": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Record({
3320
+ "parameters": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Record({
3322
3321
  key: S.String,
3323
3322
  value: S.Unknown
3324
3323
  }), {
@@ -3335,7 +3334,7 @@ class RealtimeSessionCreateRequest extends /*#__PURE__*/S.Class("RealtimeSession
3335
3334
  nullable: true,
3336
3335
  default: () => 0.8
3337
3336
  }),
3338
- "max_response_output_tokens": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(S.Int, RealtimeSessionCreateRequestMaxResponseOutputTokensEnum), {
3337
+ "max_response_output_tokens": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(S.Int, RealtimeSessionCreateRequestMaxResponseOutputTokensEnum), {
3339
3338
  nullable: true
3340
3339
  })
3341
3340
  }) {}
@@ -3359,14 +3358,14 @@ class RealtimeSessionCreateResponse extends /*#__PURE__*/S.Class("RealtimeSessio
3359
3358
  "output_audio_format": /*#__PURE__*/S.optionalWith(S.String, {
3360
3359
  nullable: true
3361
3360
  }),
3362
- "input_audio_transcription": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
3361
+ "input_audio_transcription": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
3363
3362
  "model": /*#__PURE__*/S.optionalWith(S.String, {
3364
3363
  nullable: true
3365
3364
  })
3366
3365
  }), {
3367
3366
  nullable: true
3368
3367
  }),
3369
- "turn_detection": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
3368
+ "turn_detection": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
3370
3369
  "type": /*#__PURE__*/S.optionalWith(S.String, {
3371
3370
  nullable: true
3372
3371
  }),
@@ -3382,8 +3381,8 @@ class RealtimeSessionCreateResponse extends /*#__PURE__*/S.Class("RealtimeSessio
3382
3381
  }), {
3383
3382
  nullable: true
3384
3383
  }),
3385
- "tools": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
3386
- "type": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Literal("function"), {
3384
+ "tools": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
3385
+ "type": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Literal("function"), {
3387
3386
  nullable: true
3388
3387
  }),
3389
3388
  "name": /*#__PURE__*/S.optionalWith(S.String, {
@@ -3392,7 +3391,7 @@ class RealtimeSessionCreateResponse extends /*#__PURE__*/S.Class("RealtimeSessio
3392
3391
  "description": /*#__PURE__*/S.optionalWith(S.String, {
3393
3392
  nullable: true
3394
3393
  }),
3395
- "parameters": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Record({
3394
+ "parameters": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Record({
3396
3395
  key: S.String,
3397
3396
  value: S.Unknown
3398
3397
  }), {
@@ -3407,7 +3406,7 @@ class RealtimeSessionCreateResponse extends /*#__PURE__*/S.Class("RealtimeSessio
3407
3406
  "temperature": /*#__PURE__*/S.optionalWith(S.Number, {
3408
3407
  nullable: true
3409
3408
  }),
3410
- "max_response_output_tokens": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(S.Int, RealtimeSessionCreateResponseMaxResponseOutputTokensEnum), {
3409
+ "max_response_output_tokens": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(S.Int, RealtimeSessionCreateResponseMaxResponseOutputTokensEnum), {
3411
3410
  nullable: true
3412
3411
  })
3413
3412
  }) {}
@@ -3427,7 +3426,7 @@ class RealtimeTranscriptionSessionCreateRequest extends /*#__PURE__*/S.Class("Re
3427
3426
  nullable: true,
3428
3427
  default: () => "pcm16"
3429
3428
  }),
3430
- "input_audio_transcription": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
3429
+ "input_audio_transcription": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
3431
3430
  "model": /*#__PURE__*/S.optionalWith(RealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel, {
3432
3431
  nullable: true
3433
3432
  }),
@@ -3440,7 +3439,7 @@ class RealtimeTranscriptionSessionCreateRequest extends /*#__PURE__*/S.Class("Re
3440
3439
  }), {
3441
3440
  nullable: true
3442
3441
  }),
3443
- "turn_detection": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
3442
+ "turn_detection": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
3444
3443
  "type": /*#__PURE__*/S.optionalWith(RealtimeTranscriptionSessionCreateRequestTurnDetectionType, {
3445
3444
  nullable: true,
3446
3445
  default: () => "server_vad"
@@ -3469,14 +3468,14 @@ class RealtimeTranscriptionSessionCreateRequest extends /*#__PURE__*/S.Class("Re
3469
3468
  }), {
3470
3469
  nullable: true
3471
3470
  }),
3472
- "input_audio_noise_reduction": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Struct({
3471
+ "input_audio_noise_reduction": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.NullOr(/*#__PURE__*/S.Struct({
3473
3472
  "type": /*#__PURE__*/S.optionalWith(RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType, {
3474
3473
  nullable: true
3475
3474
  })
3476
3475
  })), {
3477
3476
  default: () => null
3478
3477
  }),
3479
- "include": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String), {
3478
+ "include": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String), {
3480
3479
  nullable: true
3481
3480
  })
3482
3481
  }) {}
@@ -3491,7 +3490,7 @@ class RealtimeTranscriptionSessionCreateResponse extends /*#__PURE__*/S.Class("R
3491
3490
  "input_audio_format": /*#__PURE__*/S.optionalWith(S.String, {
3492
3491
  nullable: true
3493
3492
  }),
3494
- "input_audio_transcription": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
3493
+ "input_audio_transcription": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
3495
3494
  "model": /*#__PURE__*/S.optionalWith(RealtimeTranscriptionSessionCreateResponseInputAudioTranscriptionModel, {
3496
3495
  nullable: true
3497
3496
  }),
@@ -3504,7 +3503,7 @@ class RealtimeTranscriptionSessionCreateResponse extends /*#__PURE__*/S.Class("R
3504
3503
  }), {
3505
3504
  nullable: true
3506
3505
  }),
3507
- "turn_detection": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
3506
+ "turn_detection": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
3508
3507
  "type": /*#__PURE__*/S.optionalWith(S.String, {
3509
3508
  nullable: true
3510
3509
  }),
@@ -3665,7 +3664,7 @@ class FileSearchToolCall extends /*#__PURE__*/S.Struct({
3665
3664
  "type": FileSearchToolCallType,
3666
3665
  "status": FileSearchToolCallStatus,
3667
3666
  "queries": /*#__PURE__*/S.Array(S.String),
3668
- "results": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
3667
+ "results": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
3669
3668
  "file_id": /*#__PURE__*/S.optionalWith(S.String, {
3670
3669
  nullable: true
3671
3670
  }),
@@ -3804,7 +3803,7 @@ class ComputerToolCallOutput extends /*#__PURE__*/S.Struct({
3804
3803
  nullable: true
3805
3804
  }),
3806
3805
  "call_id": S.String,
3807
- "acknowledged_safety_checks": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(ComputerToolCallSafetyCheck), {
3806
+ "acknowledged_safety_checks": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(ComputerToolCallSafetyCheck), {
3808
3807
  nullable: true
3809
3808
  }),
3810
3809
  "output": ComputerScreenshotImage,
@@ -3863,7 +3862,7 @@ exports.ReasoningItemStatus = ReasoningItemStatus;
3863
3862
  class ReasoningItem extends /*#__PURE__*/S.Struct({
3864
3863
  "type": ReasoningItemType,
3865
3864
  "id": S.String,
3866
- "summary": /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
3865
+ "summary": /*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
3867
3866
  "type": /*#__PURE__*/S.Literal("summary_text"),
3868
3867
  "text": S.String
3869
3868
  })),
@@ -3940,7 +3939,7 @@ class CompoundFilterType extends /*#__PURE__*/S.Literal("and", "or") {}
3940
3939
  exports.CompoundFilterType = CompoundFilterType;
3941
3940
  class CompoundFilter extends /*#__PURE__*/S.Struct({
3942
3941
  "type": CompoundFilterType,
3943
- "filters": /*#__PURE__*/S.Array( /*#__PURE__*/S.Union(ComparisonFilter, /*#__PURE__*/S.Record({
3942
+ "filters": /*#__PURE__*/S.Array(/*#__PURE__*/S.Union(ComparisonFilter, /*#__PURE__*/S.Record({
3944
3943
  key: S.String,
3945
3944
  value: S.Unknown
3946
3945
  })))
@@ -3954,15 +3953,15 @@ class FileSearchTool extends /*#__PURE__*/S.Struct({
3954
3953
  "max_num_results": /*#__PURE__*/S.optionalWith(S.Int, {
3955
3954
  nullable: true
3956
3955
  }),
3957
- "filters": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(ComparisonFilter, CompoundFilter), {
3956
+ "filters": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(ComparisonFilter, CompoundFilter), {
3958
3957
  nullable: true
3959
3958
  }),
3960
- "ranking_options": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
3959
+ "ranking_options": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
3961
3960
  "ranker": /*#__PURE__*/S.optionalWith(FileSearchToolRankingOptionsRanker, {
3962
3961
  nullable: true,
3963
3962
  default: () => "auto"
3964
3963
  }),
3965
- "score_threshold": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
3964
+ "score_threshold": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
3966
3965
  nullable: true,
3967
3966
  default: () => 0
3968
3967
  })
@@ -4049,7 +4048,7 @@ class CreateResponseTruncation extends /*#__PURE__*/S.Literal("auto", "disabled"
4049
4048
  exports.CreateResponseTruncation = CreateResponseTruncation;
4050
4049
  class CreateResponse extends /*#__PURE__*/S.Class("CreateResponse")({
4051
4050
  "input": /*#__PURE__*/S.Union(S.String, /*#__PURE__*/S.Array(InputItem)),
4052
- "include": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(Includable), {
4051
+ "include": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(Includable), {
4053
4052
  nullable: true
4054
4053
  }),
4055
4054
  "parallel_tool_calls": /*#__PURE__*/S.optionalWith(S.Boolean, {
@@ -4077,17 +4076,17 @@ class CreateResponse extends /*#__PURE__*/S.Class("CreateResponse")({
4077
4076
  "instructions": /*#__PURE__*/S.optionalWith(S.String, {
4078
4077
  nullable: true
4079
4078
  }),
4080
- "text": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
4079
+ "text": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
4081
4080
  "format": /*#__PURE__*/S.optionalWith(TextResponseFormatConfiguration, {
4082
4081
  nullable: true
4083
4082
  })
4084
4083
  }), {
4085
4084
  nullable: true
4086
4085
  }),
4087
- "tools": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(Tool), {
4086
+ "tools": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(Tool), {
4088
4087
  nullable: true
4089
4088
  }),
4090
- "tool_choice": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(ToolChoiceOptions, ToolChoiceTypes, ToolChoiceFunction), {
4089
+ "tool_choice": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(ToolChoiceOptions, ToolChoiceTypes, ToolChoiceFunction), {
4091
4090
  nullable: true
4092
4091
  }),
4093
4092
  "truncation": /*#__PURE__*/S.optionalWith(CreateResponseTruncation, {
@@ -4097,11 +4096,11 @@ class CreateResponse extends /*#__PURE__*/S.Class("CreateResponse")({
4097
4096
  "metadata": /*#__PURE__*/S.optionalWith(Metadata, {
4098
4097
  nullable: true
4099
4098
  }),
4100
- "temperature": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
4099
+ "temperature": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
4101
4100
  nullable: true,
4102
4101
  default: () => 1
4103
4102
  }),
4104
- "top_p": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
4103
+ "top_p": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
4105
4104
  nullable: true,
4106
4105
  default: () => 1
4107
4106
  }),
@@ -4147,7 +4146,7 @@ class Response extends /*#__PURE__*/S.Class("Response")({
4147
4146
  }),
4148
4147
  "created_at": S.Number,
4149
4148
  "error": /*#__PURE__*/S.NullOr(ResponseError),
4150
- "incomplete_details": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Struct({
4149
+ "incomplete_details": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Struct({
4151
4150
  "reason": /*#__PURE__*/S.optionalWith(ResponseIncompleteDetailsReason, {
4152
4151
  nullable: true
4153
4152
  })
@@ -4171,7 +4170,7 @@ class Response extends /*#__PURE__*/S.Class("Response")({
4171
4170
  nullable: true
4172
4171
  }),
4173
4172
  "instructions": /*#__PURE__*/S.NullOr(S.String),
4174
- "text": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
4173
+ "text": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
4175
4174
  "format": /*#__PURE__*/S.optionalWith(TextResponseFormatConfiguration, {
4176
4175
  nullable: true
4177
4176
  })
@@ -4193,7 +4192,7 @@ class Response extends /*#__PURE__*/S.Class("Response")({
4193
4192
  }) {}
4194
4193
  exports.Response = Response;
4195
4194
  class GetResponseParams extends /*#__PURE__*/S.Struct({
4196
- "include": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(Includable), {
4195
+ "include": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(Includable), {
4197
4196
  nullable: true
4198
4197
  })
4199
4198
  }) {}
@@ -4244,7 +4243,7 @@ class ComputerToolCallOutputResource extends /*#__PURE__*/S.Struct({
4244
4243
  "id": S.String,
4245
4244
  "type": /*#__PURE__*/ComputerToolCallOutputResourceType.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => "computer_call_output")),
4246
4245
  "call_id": S.String,
4247
- "acknowledged_safety_checks": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(ComputerToolCallSafetyCheck), {
4246
+ "acknowledged_safety_checks": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(ComputerToolCallSafetyCheck), {
4248
4247
  nullable: true
4249
4248
  }),
4250
4249
  "output": ComputerScreenshotImage,
@@ -4339,12 +4338,12 @@ class AssistantToolsFileSearchTypeOnly extends /*#__PURE__*/S.Struct({
4339
4338
  exports.AssistantToolsFileSearchTypeOnly = AssistantToolsFileSearchTypeOnly;
4340
4339
  class CreateMessageRequest extends /*#__PURE__*/S.Struct({
4341
4340
  "role": CreateMessageRequestRole,
4342
- "content": /*#__PURE__*/S.Union(S.String, /*#__PURE__*/S.NonEmptyArray( /*#__PURE__*/S.Union(MessageContentImageFileObject, MessageContentImageUrlObject, MessageRequestContentTextObject))),
4343
- "attachments": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
4341
+ "content": /*#__PURE__*/S.Union(S.String, /*#__PURE__*/S.NonEmptyArray(/*#__PURE__*/S.Union(MessageContentImageFileObject, MessageContentImageUrlObject, MessageRequestContentTextObject))),
4342
+ "attachments": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
4344
4343
  "file_id": /*#__PURE__*/S.optionalWith(S.String, {
4345
4344
  nullable: true
4346
4345
  }),
4347
- "tools": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Union(AssistantToolsCode, AssistantToolsFileSearchTypeOnly)), {
4346
+ "tools": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Union(AssistantToolsCode, AssistantToolsFileSearchTypeOnly)), {
4348
4347
  nullable: true
4349
4348
  })
4350
4349
  })), {
@@ -4356,23 +4355,23 @@ class CreateMessageRequest extends /*#__PURE__*/S.Struct({
4356
4355
  }) {}
4357
4356
  exports.CreateMessageRequest = CreateMessageRequest;
4358
4357
  class CreateThreadRequest extends /*#__PURE__*/S.Class("CreateThreadRequest")({
4359
- "messages": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(CreateMessageRequest), {
4358
+ "messages": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(CreateMessageRequest), {
4360
4359
  nullable: true
4361
4360
  }),
4362
- "tool_resources": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
4363
- "code_interpreter": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
4364
- "file_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.maxItems(20)), {
4361
+ "tool_resources": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
4362
+ "code_interpreter": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
4363
+ "file_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.maxItems(20)), {
4365
4364
  nullable: true,
4366
4365
  default: () => []
4367
4366
  })
4368
4367
  }), {
4369
4368
  nullable: true
4370
4369
  }),
4371
- "file_search": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
4372
- "vector_store_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.maxItems(1)), {
4370
+ "file_search": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
4371
+ "vector_store_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.maxItems(1)), {
4373
4372
  nullable: true
4374
4373
  }),
4375
- "vector_stores": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.Struct({
4374
+ "vector_stores": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.Struct({
4376
4375
  "file_ids": S.optionalWith(S.Array(S.String).pipe(S.maxItems(10000)), {
4377
4376
  nullable: true
4378
4377
  }),
@@ -4385,7 +4384,7 @@ class CreateThreadRequest extends /*#__PURE__*/S.Class("CreateThreadRequest")({
4385
4384
  "metadata": S.optionalWith(Metadata, {
4386
4385
  nullable: true
4387
4386
  })
4388
- })).pipe( /*#__PURE__*/S.maxItems(1)), {
4387
+ })).pipe(/*#__PURE__*/S.maxItems(1)), {
4389
4388
  nullable: true
4390
4389
  })
4391
4390
  }), {
@@ -4405,17 +4404,17 @@ class ThreadObject extends /*#__PURE__*/S.Class("ThreadObject")({
4405
4404
  "id": S.String,
4406
4405
  "object": ThreadObjectObject,
4407
4406
  "created_at": S.Int,
4408
- "tool_resources": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Struct({
4409
- "code_interpreter": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
4410
- "file_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.maxItems(20)), {
4407
+ "tool_resources": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Struct({
4408
+ "code_interpreter": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
4409
+ "file_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.maxItems(20)), {
4411
4410
  nullable: true,
4412
4411
  default: () => []
4413
4412
  })
4414
4413
  }), {
4415
4414
  nullable: true
4416
4415
  }),
4417
- "file_search": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
4418
- "vector_store_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.maxItems(1)), {
4416
+ "file_search": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
4417
+ "vector_store_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.maxItems(1)), {
4419
4418
  nullable: true
4420
4419
  })
4421
4420
  }), {
@@ -4431,7 +4430,7 @@ class CreateThreadAndRunRequestTruncationStrategyEnumType extends /*#__PURE__*/S
4431
4430
  exports.CreateThreadAndRunRequestTruncationStrategyEnumType = CreateThreadAndRunRequestTruncationStrategyEnumType;
4432
4431
  class CreateThreadAndRunRequestTruncationStrategy extends /*#__PURE__*/S.Struct({
4433
4432
  "type": /*#__PURE__*/S.Literal("auto", "last_messages"),
4434
- "last_messages": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1)), {
4433
+ "last_messages": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1)), {
4435
4434
  nullable: true
4436
4435
  })
4437
4436
  }) {}
@@ -4442,40 +4441,40 @@ class AssistantsNamedToolChoiceType extends /*#__PURE__*/S.Literal("function", "
4442
4441
  exports.AssistantsNamedToolChoiceType = AssistantsNamedToolChoiceType;
4443
4442
  class AssistantsNamedToolChoice extends /*#__PURE__*/S.Struct({
4444
4443
  "type": AssistantsNamedToolChoiceType,
4445
- "function": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
4444
+ "function": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
4446
4445
  "name": S.String
4447
4446
  }), {
4448
4447
  nullable: true
4449
4448
  })
4450
4449
  }) {}
4451
4450
  exports.AssistantsNamedToolChoice = AssistantsNamedToolChoice;
4452
- class CreateThreadAndRunRequestToolChoice extends /*#__PURE__*/S.Union( /*#__PURE__*/S.Literal("none", "auto", "required"), AssistantsNamedToolChoice) {}
4451
+ class CreateThreadAndRunRequestToolChoice extends /*#__PURE__*/S.Union(/*#__PURE__*/S.Literal("none", "auto", "required"), AssistantsNamedToolChoice) {}
4453
4452
  exports.CreateThreadAndRunRequestToolChoice = CreateThreadAndRunRequestToolChoice;
4454
4453
  class CreateThreadAndRunRequest extends /*#__PURE__*/S.Class("CreateThreadAndRunRequest")({
4455
4454
  "assistant_id": S.String,
4456
4455
  "thread": /*#__PURE__*/S.optionalWith(CreateThreadRequest, {
4457
4456
  nullable: true
4458
4457
  }),
4459
- "model": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(S.String, CreateThreadAndRunRequestModelEnum), {
4458
+ "model": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(S.String, CreateThreadAndRunRequestModelEnum), {
4460
4459
  nullable: true
4461
4460
  }),
4462
4461
  "instructions": /*#__PURE__*/S.optionalWith(S.String, {
4463
4462
  nullable: true
4464
4463
  }),
4465
- "tools": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.Union(AssistantToolsCode, AssistantToolsFileSearch, AssistantToolsFunction)).pipe( /*#__PURE__*/S.maxItems(20)), {
4464
+ "tools": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.Union(AssistantToolsCode, AssistantToolsFileSearch, AssistantToolsFunction)).pipe(/*#__PURE__*/S.maxItems(20)), {
4466
4465
  nullable: true
4467
4466
  }),
4468
- "tool_resources": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
4469
- "code_interpreter": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
4470
- "file_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.maxItems(20)), {
4467
+ "tool_resources": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
4468
+ "code_interpreter": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
4469
+ "file_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.maxItems(20)), {
4471
4470
  nullable: true,
4472
4471
  default: () => []
4473
4472
  })
4474
4473
  }), {
4475
4474
  nullable: true
4476
4475
  }),
4477
- "file_search": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
4478
- "vector_store_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.maxItems(1)), {
4476
+ "file_search": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
4477
+ "vector_store_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.maxItems(1)), {
4479
4478
  nullable: true
4480
4479
  })
4481
4480
  }), {
@@ -4487,21 +4486,21 @@ class CreateThreadAndRunRequest extends /*#__PURE__*/S.Class("CreateThreadAndRun
4487
4486
  "metadata": /*#__PURE__*/S.optionalWith(Metadata, {
4488
4487
  nullable: true
4489
4488
  }),
4490
- "temperature": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
4489
+ "temperature": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
4491
4490
  nullable: true,
4492
4491
  default: () => 1
4493
4492
  }),
4494
- "top_p": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
4493
+ "top_p": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
4495
4494
  nullable: true,
4496
4495
  default: () => 1
4497
4496
  }),
4498
4497
  "stream": /*#__PURE__*/S.optionalWith(S.Boolean, {
4499
4498
  nullable: true
4500
4499
  }),
4501
- "max_prompt_tokens": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(256)), {
4500
+ "max_prompt_tokens": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(256)), {
4502
4501
  nullable: true
4503
4502
  }),
4504
- "max_completion_tokens": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(256)), {
4503
+ "max_completion_tokens": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(256)), {
4505
4504
  nullable: true
4506
4505
  }),
4507
4506
  "truncation_strategy": /*#__PURE__*/S.optionalWith(CreateThreadAndRunRequestTruncationStrategy, {
@@ -4550,14 +4549,14 @@ class RunObjectTruncationStrategyEnumType extends /*#__PURE__*/S.Literal("auto",
4550
4549
  exports.RunObjectTruncationStrategyEnumType = RunObjectTruncationStrategyEnumType;
4551
4550
  class RunObjectTruncationStrategy extends /*#__PURE__*/S.Struct({
4552
4551
  "type": /*#__PURE__*/S.Literal("auto", "last_messages"),
4553
- "last_messages": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1)), {
4552
+ "last_messages": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1)), {
4554
4553
  nullable: true
4555
4554
  })
4556
4555
  }) {}
4557
4556
  exports.RunObjectTruncationStrategy = RunObjectTruncationStrategy;
4558
4557
  class RunObjectToolChoiceEnumEnum extends /*#__PURE__*/S.Literal("none", "auto", "required") {}
4559
4558
  exports.RunObjectToolChoiceEnumEnum = RunObjectToolChoiceEnumEnum;
4560
- class RunObjectToolChoice extends /*#__PURE__*/S.Union( /*#__PURE__*/S.Literal("none", "auto", "required"), AssistantsNamedToolChoice) {}
4559
+ class RunObjectToolChoice extends /*#__PURE__*/S.Union(/*#__PURE__*/S.Literal("none", "auto", "required"), AssistantsNamedToolChoice) {}
4561
4560
  exports.RunObjectToolChoice = RunObjectToolChoice;
4562
4561
  class RunObject extends /*#__PURE__*/S.Class("RunObject")({
4563
4562
  "id": S.String,
@@ -4566,13 +4565,13 @@ class RunObject extends /*#__PURE__*/S.Class("RunObject")({
4566
4565
  "thread_id": S.String,
4567
4566
  "assistant_id": S.String,
4568
4567
  "status": RunObjectStatus,
4569
- "required_action": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Struct({
4568
+ "required_action": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Struct({
4570
4569
  "type": RunObjectRequiredActionType,
4571
4570
  "submit_tool_outputs": /*#__PURE__*/S.Struct({
4572
4571
  "tool_calls": /*#__PURE__*/S.Array(RunToolCallObject)
4573
4572
  })
4574
4573
  })),
4575
- "last_error": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Struct({
4574
+ "last_error": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Struct({
4576
4575
  "code": RunObjectLastErrorCode,
4577
4576
  "message": S.String
4578
4577
  })),
@@ -4581,7 +4580,7 @@ class RunObject extends /*#__PURE__*/S.Class("RunObject")({
4581
4580
  "cancelled_at": /*#__PURE__*/S.NullOr(S.Int),
4582
4581
  "failed_at": /*#__PURE__*/S.NullOr(S.Int),
4583
4582
  "completed_at": /*#__PURE__*/S.NullOr(S.Int),
4584
- "incomplete_details": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Struct({
4583
+ "incomplete_details": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Struct({
4585
4584
  "reason": /*#__PURE__*/S.optionalWith(RunObjectIncompleteDetailsReason, {
4586
4585
  nullable: true
4587
4586
  })
@@ -4597,8 +4596,8 @@ class RunObject extends /*#__PURE__*/S.Class("RunObject")({
4597
4596
  "top_p": /*#__PURE__*/S.optionalWith(S.Number, {
4598
4597
  nullable: true
4599
4598
  }),
4600
- "max_prompt_tokens": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(256))),
4601
- "max_completion_tokens": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(256))),
4599
+ "max_prompt_tokens": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(256))),
4600
+ "max_completion_tokens": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(256))),
4602
4601
  "truncation_strategy": RunObjectTruncationStrategy,
4603
4602
  "tool_choice": RunObjectToolChoice,
4604
4603
  "parallel_tool_calls": /*#__PURE__*/ParallelToolCalls.pipe(S.propertySignature, /*#__PURE__*/S.withConstructorDefault(() => true)),
@@ -4606,17 +4605,17 @@ class RunObject extends /*#__PURE__*/S.Class("RunObject")({
4606
4605
  }) {}
4607
4606
  exports.RunObject = RunObject;
4608
4607
  class ModifyThreadRequest extends /*#__PURE__*/S.Class("ModifyThreadRequest")({
4609
- "tool_resources": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
4610
- "code_interpreter": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
4611
- "file_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.maxItems(20)), {
4608
+ "tool_resources": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
4609
+ "code_interpreter": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
4610
+ "file_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.maxItems(20)), {
4612
4611
  nullable: true,
4613
4612
  default: () => []
4614
4613
  })
4615
4614
  }), {
4616
4615
  nullable: true
4617
4616
  }),
4618
- "file_search": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
4619
- "vector_store_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.maxItems(1)), {
4617
+ "file_search": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
4618
+ "vector_store_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.maxItems(1)), {
4620
4619
  nullable: true
4621
4620
  })
4622
4621
  }), {
@@ -4678,8 +4677,8 @@ class MessageContentTextAnnotationsFileCitationObject extends /*#__PURE__*/S.Str
4678
4677
  "file_citation": /*#__PURE__*/S.Struct({
4679
4678
  "file_id": S.String
4680
4679
  }),
4681
- "start_index": /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0)),
4682
- "end_index": /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0))
4680
+ "start_index": /*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0)),
4681
+ "end_index": /*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0))
4683
4682
  }) {}
4684
4683
  exports.MessageContentTextAnnotationsFileCitationObject = MessageContentTextAnnotationsFileCitationObject;
4685
4684
  class MessageContentTextAnnotationsFilePathObjectType extends /*#__PURE__*/S.Literal("file_path") {}
@@ -4690,15 +4689,15 @@ class MessageContentTextAnnotationsFilePathObject extends /*#__PURE__*/S.Struct(
4690
4689
  "file_path": /*#__PURE__*/S.Struct({
4691
4690
  "file_id": S.String
4692
4691
  }),
4693
- "start_index": /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0)),
4694
- "end_index": /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0))
4692
+ "start_index": /*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0)),
4693
+ "end_index": /*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0))
4695
4694
  }) {}
4696
4695
  exports.MessageContentTextAnnotationsFilePathObject = MessageContentTextAnnotationsFilePathObject;
4697
4696
  class MessageContentTextObject extends /*#__PURE__*/S.Struct({
4698
4697
  "type": MessageContentTextObjectType,
4699
4698
  "text": /*#__PURE__*/S.Struct({
4700
4699
  "value": S.String,
4701
- "annotations": /*#__PURE__*/S.Array( /*#__PURE__*/S.Union(MessageContentTextAnnotationsFileCitationObject, MessageContentTextAnnotationsFilePathObject))
4700
+ "annotations": /*#__PURE__*/S.Array(/*#__PURE__*/S.Union(MessageContentTextAnnotationsFileCitationObject, MessageContentTextAnnotationsFilePathObject))
4702
4701
  })
4703
4702
  }) {}
4704
4703
  exports.MessageContentTextObject = MessageContentTextObject;
@@ -4715,20 +4714,20 @@ class MessageObject extends /*#__PURE__*/S.Struct({
4715
4714
  "created_at": S.Int,
4716
4715
  "thread_id": S.String,
4717
4716
  "status": MessageObjectStatus,
4718
- "incomplete_details": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Struct({
4717
+ "incomplete_details": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Struct({
4719
4718
  "reason": MessageObjectIncompleteDetailsReason
4720
4719
  })),
4721
4720
  "completed_at": /*#__PURE__*/S.NullOr(S.Int),
4722
4721
  "incomplete_at": /*#__PURE__*/S.NullOr(S.Int),
4723
4722
  "role": MessageObjectRole,
4724
- "content": /*#__PURE__*/S.Array( /*#__PURE__*/S.Union(MessageContentImageFileObject, MessageContentImageUrlObject, MessageContentTextObject, MessageContentRefusalObject)),
4723
+ "content": /*#__PURE__*/S.Array(/*#__PURE__*/S.Union(MessageContentImageFileObject, MessageContentImageUrlObject, MessageContentTextObject, MessageContentRefusalObject)),
4725
4724
  "assistant_id": /*#__PURE__*/S.NullOr(S.String),
4726
4725
  "run_id": /*#__PURE__*/S.NullOr(S.String),
4727
- "attachments": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
4726
+ "attachments": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
4728
4727
  "file_id": /*#__PURE__*/S.optionalWith(S.String, {
4729
4728
  nullable: true
4730
4729
  }),
4731
- "tools": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Union(AssistantToolsCode, AssistantToolsFileSearchTypeOnly)), {
4730
+ "tools": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Union(AssistantToolsCode, AssistantToolsFileSearchTypeOnly)), {
4732
4731
  nullable: true
4733
4732
  })
4734
4733
  }))),
@@ -4785,7 +4784,7 @@ class ListRunsResponse extends /*#__PURE__*/S.Class("ListRunsResponse")({
4785
4784
  }) {}
4786
4785
  exports.ListRunsResponse = ListRunsResponse;
4787
4786
  class CreateRunParams extends /*#__PURE__*/S.Struct({
4788
- "include[]": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("step_details.tool_calls[*].file_search.results[*].content")), {
4787
+ "include[]": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("step_details.tool_calls[*].file_search.results[*].content")), {
4789
4788
  nullable: true
4790
4789
  })
4791
4790
  }) {}
@@ -4794,18 +4793,18 @@ class CreateRunRequestTruncationStrategyEnumType extends /*#__PURE__*/S.Literal(
4794
4793
  exports.CreateRunRequestTruncationStrategyEnumType = CreateRunRequestTruncationStrategyEnumType;
4795
4794
  class CreateRunRequestTruncationStrategy extends /*#__PURE__*/S.Struct({
4796
4795
  "type": /*#__PURE__*/S.Literal("auto", "last_messages"),
4797
- "last_messages": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1)), {
4796
+ "last_messages": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1)), {
4798
4797
  nullable: true
4799
4798
  })
4800
4799
  }) {}
4801
4800
  exports.CreateRunRequestTruncationStrategy = CreateRunRequestTruncationStrategy;
4802
4801
  class CreateRunRequestToolChoiceEnumEnum extends /*#__PURE__*/S.Literal("none", "auto", "required") {}
4803
4802
  exports.CreateRunRequestToolChoiceEnumEnum = CreateRunRequestToolChoiceEnumEnum;
4804
- class CreateRunRequestToolChoice extends /*#__PURE__*/S.Union( /*#__PURE__*/S.Literal("none", "auto", "required"), AssistantsNamedToolChoice) {}
4803
+ class CreateRunRequestToolChoice extends /*#__PURE__*/S.Union(/*#__PURE__*/S.Literal("none", "auto", "required"), AssistantsNamedToolChoice) {}
4805
4804
  exports.CreateRunRequestToolChoice = CreateRunRequestToolChoice;
4806
4805
  class CreateRunRequest extends /*#__PURE__*/S.Class("CreateRunRequest")({
4807
4806
  "assistant_id": S.String,
4808
- "model": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(S.String, AssistantSupportedModels), {
4807
+ "model": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(S.String, AssistantSupportedModels), {
4809
4808
  nullable: true
4810
4809
  }),
4811
4810
  "reasoning_effort": /*#__PURE__*/S.optionalWith(ReasoningEffort, {
@@ -4818,30 +4817,30 @@ class CreateRunRequest extends /*#__PURE__*/S.Class("CreateRunRequest")({
4818
4817
  "additional_instructions": /*#__PURE__*/S.optionalWith(S.String, {
4819
4818
  nullable: true
4820
4819
  }),
4821
- "additional_messages": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(CreateMessageRequest), {
4820
+ "additional_messages": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(CreateMessageRequest), {
4822
4821
  nullable: true
4823
4822
  }),
4824
- "tools": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.Union(AssistantToolsCode, AssistantToolsFileSearch, AssistantToolsFunction)).pipe( /*#__PURE__*/S.maxItems(20)), {
4823
+ "tools": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.Union(AssistantToolsCode, AssistantToolsFileSearch, AssistantToolsFunction)).pipe(/*#__PURE__*/S.maxItems(20)), {
4825
4824
  nullable: true
4826
4825
  }),
4827
4826
  "metadata": /*#__PURE__*/S.optionalWith(Metadata, {
4828
4827
  nullable: true
4829
4828
  }),
4830
- "temperature": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
4829
+ "temperature": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(2)), {
4831
4830
  nullable: true,
4832
4831
  default: () => 1
4833
4832
  }),
4834
- "top_p": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
4833
+ "top_p": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
4835
4834
  nullable: true,
4836
4835
  default: () => 1
4837
4836
  }),
4838
4837
  "stream": /*#__PURE__*/S.optionalWith(S.Boolean, {
4839
4838
  nullable: true
4840
4839
  }),
4841
- "max_prompt_tokens": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(256)), {
4840
+ "max_prompt_tokens": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(256)), {
4842
4841
  nullable: true
4843
4842
  }),
4844
- "max_completion_tokens": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(256)), {
4843
+ "max_completion_tokens": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(256)), {
4845
4844
  nullable: true
4846
4845
  }),
4847
4846
  "truncation_strategy": /*#__PURE__*/S.optionalWith(CreateRunRequestTruncationStrategy, {
@@ -4882,7 +4881,7 @@ class ListRunStepsParams extends /*#__PURE__*/S.Struct({
4882
4881
  "before": /*#__PURE__*/S.optionalWith(S.String, {
4883
4882
  nullable: true
4884
4883
  }),
4885
- "include[]": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("step_details.tool_calls[*].file_search.results[*].content")), {
4884
+ "include[]": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("step_details.tool_calls[*].file_search.results[*].content")), {
4886
4885
  nullable: true
4887
4886
  })
4888
4887
  }) {}
@@ -4927,7 +4926,7 @@ class RunStepDetailsToolCallsCodeObject extends /*#__PURE__*/S.Struct({
4927
4926
  "type": RunStepDetailsToolCallsCodeObjectType,
4928
4927
  "code_interpreter": /*#__PURE__*/S.Struct({
4929
4928
  "input": S.String,
4930
- "outputs": /*#__PURE__*/S.Array( /*#__PURE__*/S.Record({
4929
+ "outputs": /*#__PURE__*/S.Array(/*#__PURE__*/S.Record({
4931
4930
  key: S.String,
4932
4931
  value: S.Unknown
4933
4932
  }))
@@ -4938,15 +4937,15 @@ class RunStepDetailsToolCallsFileSearchObjectType extends /*#__PURE__*/S.Literal
4938
4937
  exports.RunStepDetailsToolCallsFileSearchObjectType = RunStepDetailsToolCallsFileSearchObjectType;
4939
4938
  class RunStepDetailsToolCallsFileSearchRankingOptionsObject extends /*#__PURE__*/S.Struct({
4940
4939
  "ranker": FileSearchRanker,
4941
- "score_threshold": /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1))
4940
+ "score_threshold": /*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1))
4942
4941
  }) {}
4943
4942
  exports.RunStepDetailsToolCallsFileSearchRankingOptionsObject = RunStepDetailsToolCallsFileSearchRankingOptionsObject;
4944
4943
  class RunStepDetailsToolCallsFileSearchResultObject extends /*#__PURE__*/S.Struct({
4945
4944
  "file_id": S.String,
4946
4945
  "file_name": S.String,
4947
- "score": /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)),
4948
- "content": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
4949
- "type": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Literal("text"), {
4946
+ "score": /*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)),
4947
+ "content": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
4948
+ "type": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Literal("text"), {
4950
4949
  nullable: true
4951
4950
  }),
4952
4951
  "text": /*#__PURE__*/S.optionalWith(S.String, {
@@ -4964,7 +4963,7 @@ class RunStepDetailsToolCallsFileSearchObject extends /*#__PURE__*/S.Struct({
4964
4963
  "ranking_options": /*#__PURE__*/S.optionalWith(RunStepDetailsToolCallsFileSearchRankingOptionsObject, {
4965
4964
  nullable: true
4966
4965
  }),
4967
- "results": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(RunStepDetailsToolCallsFileSearchResultObject), {
4966
+ "results": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(RunStepDetailsToolCallsFileSearchResultObject), {
4968
4967
  nullable: true
4969
4968
  })
4970
4969
  })
@@ -4984,7 +4983,7 @@ class RunStepDetailsToolCallsFunctionObject extends /*#__PURE__*/S.Struct({
4984
4983
  exports.RunStepDetailsToolCallsFunctionObject = RunStepDetailsToolCallsFunctionObject;
4985
4984
  class RunStepDetailsToolCallsObject extends /*#__PURE__*/S.Struct({
4986
4985
  "type": RunStepDetailsToolCallsObjectType,
4987
- "tool_calls": /*#__PURE__*/S.Array( /*#__PURE__*/S.Union(RunStepDetailsToolCallsCodeObject, RunStepDetailsToolCallsFileSearchObject, RunStepDetailsToolCallsFunctionObject))
4986
+ "tool_calls": /*#__PURE__*/S.Array(/*#__PURE__*/S.Union(RunStepDetailsToolCallsCodeObject, RunStepDetailsToolCallsFileSearchObject, RunStepDetailsToolCallsFunctionObject))
4988
4987
  }) {}
4989
4988
  exports.RunStepDetailsToolCallsObject = RunStepDetailsToolCallsObject;
4990
4989
  class RunStepObjectLastErrorCode extends /*#__PURE__*/S.Literal("server_error", "rate_limit_exceeded") {}
@@ -5008,7 +5007,7 @@ class RunStepObject extends /*#__PURE__*/S.Struct({
5008
5007
  key: S.String,
5009
5008
  value: S.Unknown
5010
5009
  }),
5011
- "last_error": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Struct({
5010
+ "last_error": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Struct({
5012
5011
  "code": RunStepObjectLastErrorCode,
5013
5012
  "message": S.String
5014
5013
  })),
@@ -5029,13 +5028,13 @@ class ListRunStepsResponse extends /*#__PURE__*/S.Class("ListRunStepsResponse")(
5029
5028
  }) {}
5030
5029
  exports.ListRunStepsResponse = ListRunStepsResponse;
5031
5030
  class GetRunStepParams extends /*#__PURE__*/S.Struct({
5032
- "include[]": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array( /*#__PURE__*/S.Literal("step_details.tool_calls[*].file_search.results[*].content")), {
5031
+ "include[]": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("step_details.tool_calls[*].file_search.results[*].content")), {
5033
5032
  nullable: true
5034
5033
  })
5035
5034
  }) {}
5036
5035
  exports.GetRunStepParams = GetRunStepParams;
5037
5036
  class SubmitToolOutputsRunRequest extends /*#__PURE__*/S.Class("SubmitToolOutputsRunRequest")({
5038
- "tool_outputs": /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
5037
+ "tool_outputs": /*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
5039
5038
  "tool_call_id": /*#__PURE__*/S.optionalWith(S.String, {
5040
5039
  nullable: true
5041
5040
  }),
@@ -5142,7 +5141,7 @@ class VectorStoreExpirationAfterAnchor extends /*#__PURE__*/S.Literal("last_acti
5142
5141
  exports.VectorStoreExpirationAfterAnchor = VectorStoreExpirationAfterAnchor;
5143
5142
  class VectorStoreExpirationAfter extends /*#__PURE__*/S.Struct({
5144
5143
  "anchor": VectorStoreExpirationAfterAnchor,
5145
- "days": /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(365))
5144
+ "days": /*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(365))
5146
5145
  }) {}
5147
5146
  exports.VectorStoreExpirationAfter = VectorStoreExpirationAfter;
5148
5147
  class VectorStoreObject extends /*#__PURE__*/S.Struct({
@@ -5186,7 +5185,7 @@ exports.AutoChunkingStrategyRequestParam = AutoChunkingStrategyRequestParam;
5186
5185
  class StaticChunkingStrategyRequestParamType extends /*#__PURE__*/S.Literal("static") {}
5187
5186
  exports.StaticChunkingStrategyRequestParamType = StaticChunkingStrategyRequestParamType;
5188
5187
  class StaticChunkingStrategy extends /*#__PURE__*/S.Struct({
5189
- "max_chunk_size_tokens": /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(100), /*#__PURE__*/S.lessThanOrEqualTo(4096)),
5188
+ "max_chunk_size_tokens": /*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(100), /*#__PURE__*/S.lessThanOrEqualTo(4096)),
5190
5189
  "chunk_overlap_tokens": S.Int
5191
5190
  }) {}
5192
5191
  exports.StaticChunkingStrategy = StaticChunkingStrategy;
@@ -5196,7 +5195,7 @@ class StaticChunkingStrategyRequestParam extends /*#__PURE__*/S.Struct({
5196
5195
  }) {}
5197
5196
  exports.StaticChunkingStrategyRequestParam = StaticChunkingStrategyRequestParam;
5198
5197
  class CreateVectorStoreRequest extends /*#__PURE__*/S.Class("CreateVectorStoreRequest")({
5199
- "file_ids": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.maxItems(500)), {
5198
+ "file_ids": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.maxItems(500)), {
5200
5199
  nullable: true
5201
5200
  }),
5202
5201
  "name": /*#__PURE__*/S.optionalWith(S.String, {
@@ -5205,7 +5204,7 @@ class CreateVectorStoreRequest extends /*#__PURE__*/S.Class("CreateVectorStoreRe
5205
5204
  "expires_after": /*#__PURE__*/S.optionalWith(VectorStoreExpirationAfter, {
5206
5205
  nullable: true
5207
5206
  }),
5208
- "chunking_strategy": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Record({
5207
+ "chunking_strategy": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Record({
5209
5208
  key: S.String,
5210
5209
  value: S.Unknown
5211
5210
  }), {
@@ -5220,7 +5219,7 @@ class UpdateVectorStoreRequestExpiresAfterEnumAnchor extends /*#__PURE__*/S.Lite
5220
5219
  exports.UpdateVectorStoreRequestExpiresAfterEnumAnchor = UpdateVectorStoreRequestExpiresAfterEnumAnchor;
5221
5220
  class UpdateVectorStoreRequestExpiresAfter extends /*#__PURE__*/S.Struct({
5222
5221
  "anchor": /*#__PURE__*/S.Literal("last_active_at"),
5223
- "days": /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(365))
5222
+ "days": /*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(365))
5224
5223
  }) {}
5225
5224
  exports.UpdateVectorStoreRequestExpiresAfter = UpdateVectorStoreRequestExpiresAfter;
5226
5225
  class UpdateVectorStoreRequest extends /*#__PURE__*/S.Class("UpdateVectorStoreRequest")({
@@ -5249,7 +5248,7 @@ class ChunkingStrategyRequestParam extends /*#__PURE__*/S.Record({
5249
5248
  }) {}
5250
5249
  exports.ChunkingStrategyRequestParam = ChunkingStrategyRequestParam;
5251
5250
  class CreateVectorStoreFileBatchRequest extends /*#__PURE__*/S.Class("CreateVectorStoreFileBatchRequest")({
5252
- "file_ids": /*#__PURE__*/S.Array(S.String).pipe( /*#__PURE__*/S.minItems(1), /*#__PURE__*/S.maxItems(500)),
5251
+ "file_ids": /*#__PURE__*/S.Array(S.String).pipe(/*#__PURE__*/S.minItems(1), /*#__PURE__*/S.maxItems(500)),
5253
5252
  "chunking_strategy": /*#__PURE__*/S.optionalWith(ChunkingStrategyRequestParam, {
5254
5253
  nullable: true
5255
5254
  }),
@@ -5327,11 +5326,11 @@ class VectorStoreFileObject extends /*#__PURE__*/S.Struct({
5327
5326
  "created_at": S.Int,
5328
5327
  "vector_store_id": S.String,
5329
5328
  "status": VectorStoreFileObjectStatus,
5330
- "last_error": /*#__PURE__*/S.NullOr( /*#__PURE__*/S.Struct({
5329
+ "last_error": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Struct({
5331
5330
  "code": VectorStoreFileObjectLastErrorCode,
5332
5331
  "message": S.String
5333
5332
  })),
5334
- "chunking_strategy": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Record({
5333
+ "chunking_strategy": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Record({
5335
5334
  key: S.String,
5336
5335
  value: S.Unknown
5337
5336
  }), {
@@ -5400,7 +5399,7 @@ class VectorStoreFileContentResponseObject extends /*#__PURE__*/S.Literal("vecto
5400
5399
  exports.VectorStoreFileContentResponseObject = VectorStoreFileContentResponseObject;
5401
5400
  class VectorStoreFileContentResponse extends /*#__PURE__*/S.Class("VectorStoreFileContentResponse")({
5402
5401
  "object": VectorStoreFileContentResponseObject,
5403
- "data": /*#__PURE__*/S.Array( /*#__PURE__*/S.Struct({
5402
+ "data": /*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
5404
5403
  "type": /*#__PURE__*/S.optionalWith(S.String, {
5405
5404
  nullable: true
5406
5405
  }),
@@ -5420,19 +5419,19 @@ class VectorStoreSearchRequest extends /*#__PURE__*/S.Class("VectorStoreSearchRe
5420
5419
  nullable: true,
5421
5420
  default: () => false
5422
5421
  }),
5423
- "max_num_results": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Int.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(50)), {
5422
+ "max_num_results": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(1), /*#__PURE__*/S.lessThanOrEqualTo(50)), {
5424
5423
  nullable: true,
5425
5424
  default: () => 10
5426
5425
  }),
5427
- "filters": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Union(ComparisonFilter, CompoundFilter), {
5426
+ "filters": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(ComparisonFilter, CompoundFilter), {
5428
5427
  nullable: true
5429
5428
  }),
5430
- "ranking_options": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Struct({
5429
+ "ranking_options": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
5431
5430
  "ranker": /*#__PURE__*/S.optionalWith(VectorStoreSearchRequestRankingOptionsRanker, {
5432
5431
  nullable: true,
5433
5432
  default: () => "auto"
5434
5433
  }),
5435
- "score_threshold": /*#__PURE__*/S.optionalWith( /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
5434
+ "score_threshold": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)), {
5436
5435
  nullable: true,
5437
5436
  default: () => 0
5438
5437
  })
@@ -5453,7 +5452,7 @@ exports.VectorStoreSearchResultContentObject = VectorStoreSearchResultContentObj
5453
5452
  class VectorStoreSearchResultItem extends /*#__PURE__*/S.Struct({
5454
5453
  "file_id": S.String,
5455
5454
  "filename": S.String,
5456
- "score": /*#__PURE__*/S.Number.pipe( /*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)),
5455
+ "score": /*#__PURE__*/S.Number.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0), /*#__PURE__*/S.lessThanOrEqualTo(1)),
5457
5456
  "attributes": /*#__PURE__*/S.NullOr(VectorStoreFileAttributes),
5458
5457
  "content": /*#__PURE__*/S.Array(VectorStoreSearchResultContentObject)
5459
5458
  }) {}