@orq-ai/node 3.11.4 → 3.11.6

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 (107) hide show
  1. package/bin/mcp-server.js +103 -103
  2. package/bin/mcp-server.js.map +26 -26
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +2 -2
  6. package/lib/config.js +2 -2
  7. package/mcp-server/mcp-server.js +1 -1
  8. package/mcp-server/server.js +1 -1
  9. package/models/operations/createcontact.js +2 -2
  10. package/models/operations/createdataset.js +2 -2
  11. package/models/operations/createdatasetitem.js +2 -2
  12. package/models/operations/createdatasource.js +2 -2
  13. package/models/operations/createeval.js +16 -16
  14. package/models/operations/fileget.js +2 -2
  15. package/models/operations/filelist.js +2 -2
  16. package/models/operations/fileupload.js +2 -2
  17. package/models/operations/getevals.js +28 -28
  18. package/models/operations/listcontacts.js +2 -2
  19. package/models/operations/listdatasetdatapoints.js +2 -2
  20. package/models/operations/listdatasets.js +2 -2
  21. package/models/operations/listdatasources.js +2 -2
  22. package/models/operations/retrievecontact.js +2 -2
  23. package/models/operations/retrievedatapoint.js +2 -2
  24. package/models/operations/retrievedataset.js +2 -2
  25. package/models/operations/retrievedatasource.js +2 -2
  26. package/models/operations/updatecontact.js +2 -2
  27. package/models/operations/updatedatapoint.js +2 -2
  28. package/models/operations/updatedataset.js +2 -2
  29. package/models/operations/updatedatasource.js +2 -2
  30. package/models/operations/updateeval.js +16 -16
  31. package/package.json +1 -1
  32. package/packages/orq-rc/README.md +6 -6
  33. package/packages/orq-rc/docs/sdks/budgets/README.md +6 -6
  34. package/packages/orq-rc/examples/package-lock.json +1 -1
  35. package/packages/orq-rc/jsr.json +1 -1
  36. package/packages/orq-rc/package-lock.json +2 -2
  37. package/packages/orq-rc/package.json +1 -1
  38. package/packages/orq-rc/src/funcs/budgetsCreate.ts +2 -2
  39. package/packages/orq-rc/src/funcs/budgetsDelete.ts +2 -2
  40. package/packages/orq-rc/src/funcs/budgetsUpdate.ts +2 -2
  41. package/packages/orq-rc/src/lib/config.ts +2 -2
  42. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  43. package/packages/orq-rc/src/mcp-server/server.ts +1 -1
  44. package/packages/orq-rc/src/mcp-server/tools/budgetsCreate.ts +2 -2
  45. package/packages/orq-rc/src/mcp-server/tools/budgetsDelete.ts +2 -2
  46. package/packages/orq-rc/src/mcp-server/tools/budgetsUpdate.ts +2 -2
  47. package/packages/orq-rc/src/models/operations/createbudget.ts +262 -60
  48. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  49. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  50. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
  51. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  52. package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
  53. package/packages/orq-rc/src/models/operations/createprompt.ts +2 -0
  54. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +1 -0
  55. package/packages/orq-rc/src/models/operations/deployments.ts +1 -0
  56. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  57. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  58. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  59. package/packages/orq-rc/src/models/operations/getallprompts.ts +1 -0
  60. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  61. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  62. package/packages/orq-rc/src/models/operations/getoneprompt.ts +1 -0
  63. package/packages/orq-rc/src/models/operations/getpromptversion.ts +1 -0
  64. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  65. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  66. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
  67. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  68. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  69. package/packages/orq-rc/src/models/operations/listpromptversions.ts +1 -0
  70. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  71. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
  72. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  73. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  74. package/packages/orq-rc/src/models/operations/searchknowledge.ts +2 -0
  75. package/packages/orq-rc/src/models/operations/updatebudget.ts +32 -36
  76. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  77. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
  78. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  79. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  80. package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
  81. package/packages/orq-rc/src/models/operations/updateprompt.ts +2 -0
  82. package/packages/orq-rc/src/sdk/budgets.ts +6 -6
  83. package/src/lib/config.ts +2 -2
  84. package/src/mcp-server/mcp-server.ts +1 -1
  85. package/src/mcp-server/server.ts +1 -1
  86. package/src/models/operations/createcontact.ts +2 -2
  87. package/src/models/operations/createdataset.ts +2 -2
  88. package/src/models/operations/createdatasetitem.ts +2 -2
  89. package/src/models/operations/createdatasource.ts +2 -2
  90. package/src/models/operations/createeval.ts +16 -16
  91. package/src/models/operations/fileget.ts +2 -2
  92. package/src/models/operations/filelist.ts +2 -2
  93. package/src/models/operations/fileupload.ts +2 -2
  94. package/src/models/operations/getevals.ts +28 -28
  95. package/src/models/operations/listcontacts.ts +2 -2
  96. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  97. package/src/models/operations/listdatasets.ts +2 -2
  98. package/src/models/operations/listdatasources.ts +2 -2
  99. package/src/models/operations/retrievecontact.ts +2 -2
  100. package/src/models/operations/retrievedatapoint.ts +2 -2
  101. package/src/models/operations/retrievedataset.ts +2 -2
  102. package/src/models/operations/retrievedatasource.ts +2 -2
  103. package/src/models/operations/updatecontact.ts +2 -2
  104. package/src/models/operations/updatedatapoint.ts +2 -2
  105. package/src/models/operations/updatedataset.ts +2 -2
  106. package/src/models/operations/updatedatasource.ts +2 -2
  107. package/src/models/operations/updateeval.ts +16 -16
@@ -10,20 +10,64 @@ import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
12
  /**
13
- * Budget entity type - only contact budgets supported
13
+ * Workspace budget type
14
14
  */
15
- export const CreateBudgetType = {
15
+ export const CreateBudgetRequestBodyBudgetsType = {
16
+ Workspace: "workspace",
17
+ } as const;
18
+ /**
19
+ * Workspace budget type
20
+ */
21
+ export type CreateBudgetRequestBodyBudgetsType = ClosedEnum<
22
+ typeof CreateBudgetRequestBodyBudgetsType
23
+ >;
24
+
25
+ /**
26
+ * Budget period type
27
+ */
28
+ export const RequestBodyPeriod = {
29
+ Daily: "daily",
30
+ Weekly: "weekly",
31
+ Monthly: "monthly",
32
+ Yearly: "yearly",
33
+ } as const;
34
+ /**
35
+ * Budget period type
36
+ */
37
+ export type RequestBodyPeriod = ClosedEnum<typeof RequestBodyPeriod>;
38
+
39
+ export type RequestBody2 = {
40
+ /**
41
+ * Workspace budget type
42
+ */
43
+ type: CreateBudgetRequestBodyBudgetsType;
44
+ /**
45
+ * Budget period type
46
+ */
47
+ period: RequestBodyPeriod;
48
+ /**
49
+ * Budget amount in USD for the specified period
50
+ */
51
+ amount: number;
52
+ };
53
+
54
+ /**
55
+ * Contact budget type
56
+ */
57
+ export const CreateBudgetRequestBodyType = {
16
58
  Contact: "contact",
17
59
  } as const;
18
60
  /**
19
- * Budget entity type - only contact budgets supported
61
+ * Contact budget type
20
62
  */
21
- export type CreateBudgetType = ClosedEnum<typeof CreateBudgetType>;
63
+ export type CreateBudgetRequestBodyType = ClosedEnum<
64
+ typeof CreateBudgetRequestBodyType
65
+ >;
22
66
 
23
67
  /**
24
68
  * Budget period type
25
69
  */
26
- export const Period = {
70
+ export const CreateBudgetRequestBodyPeriod = {
27
71
  Daily: "daily",
28
72
  Weekly: "weekly",
29
73
  Monthly: "monthly",
@@ -32,13 +76,15 @@ export const Period = {
32
76
  /**
33
77
  * Budget period type
34
78
  */
35
- export type Period = ClosedEnum<typeof Period>;
79
+ export type CreateBudgetRequestBodyPeriod = ClosedEnum<
80
+ typeof CreateBudgetRequestBodyPeriod
81
+ >;
36
82
 
37
- export type CreateBudgetRequestBody = {
83
+ export type RequestBody1 = {
38
84
  /**
39
- * Budget entity type - only contact budgets supported
85
+ * Contact budget type
40
86
  */
41
- type: CreateBudgetType;
87
+ type: CreateBudgetRequestBodyType;
42
88
  /**
43
89
  * Contact external ID
44
90
  */
@@ -46,17 +92,22 @@ export type CreateBudgetRequestBody = {
46
92
  /**
47
93
  * Budget period type
48
94
  */
49
- period: Period;
95
+ period: CreateBudgetRequestBodyPeriod;
50
96
  /**
51
97
  * Budget amount in USD for the specified period
52
98
  */
53
99
  amount: number;
54
100
  };
55
101
 
102
+ /**
103
+ * Create budget configuration for contact or workspace
104
+ */
105
+ export type CreateBudgetRequestBody = RequestBody1 | RequestBody2;
106
+
56
107
  /**
57
108
  * Budget entity type
58
109
  */
59
- export const CreateBudgetBudgetsType = {
110
+ export const CreateBudgetType = {
60
111
  ApiKey: "api_key",
61
112
  Contact: "contact",
62
113
  Workspace: "workspace",
@@ -64,9 +115,7 @@ export const CreateBudgetBudgetsType = {
64
115
  /**
65
116
  * Budget entity type
66
117
  */
67
- export type CreateBudgetBudgetsType = ClosedEnum<
68
- typeof CreateBudgetBudgetsType
69
- >;
118
+ export type CreateBudgetType = ClosedEnum<typeof CreateBudgetType>;
70
119
 
71
120
  /**
72
121
  * Budget period type
@@ -126,7 +175,7 @@ export type CreateBudgetResponseBody = {
126
175
  /**
127
176
  * Budget entity type
128
177
  */
129
- type: CreateBudgetBudgetsType;
178
+ type: CreateBudgetType;
130
179
  /**
131
180
  * Contact external identifier (present when type is "contact")
132
181
  */
@@ -155,54 +204,155 @@ export type CreateBudgetResponseBody = {
155
204
  };
156
205
 
157
206
  /** @internal */
158
- export const CreateBudgetType$inboundSchema: z.ZodNativeEnum<
159
- typeof CreateBudgetType
160
- > = z.nativeEnum(CreateBudgetType);
207
+ export const CreateBudgetRequestBodyBudgetsType$inboundSchema: z.ZodNativeEnum<
208
+ typeof CreateBudgetRequestBodyBudgetsType
209
+ > = z.nativeEnum(CreateBudgetRequestBodyBudgetsType);
161
210
 
162
211
  /** @internal */
163
- export const CreateBudgetType$outboundSchema: z.ZodNativeEnum<
164
- typeof CreateBudgetType
165
- > = CreateBudgetType$inboundSchema;
212
+ export const CreateBudgetRequestBodyBudgetsType$outboundSchema: z.ZodNativeEnum<
213
+ typeof CreateBudgetRequestBodyBudgetsType
214
+ > = CreateBudgetRequestBodyBudgetsType$inboundSchema;
166
215
 
167
216
  /**
168
217
  * @internal
169
218
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
170
219
  */
171
- export namespace CreateBudgetType$ {
172
- /** @deprecated use `CreateBudgetType$inboundSchema` instead. */
173
- export const inboundSchema = CreateBudgetType$inboundSchema;
174
- /** @deprecated use `CreateBudgetType$outboundSchema` instead. */
175
- export const outboundSchema = CreateBudgetType$outboundSchema;
220
+ export namespace CreateBudgetRequestBodyBudgetsType$ {
221
+ /** @deprecated use `CreateBudgetRequestBodyBudgetsType$inboundSchema` instead. */
222
+ export const inboundSchema = CreateBudgetRequestBodyBudgetsType$inboundSchema;
223
+ /** @deprecated use `CreateBudgetRequestBodyBudgetsType$outboundSchema` instead. */
224
+ export const outboundSchema =
225
+ CreateBudgetRequestBodyBudgetsType$outboundSchema;
176
226
  }
177
227
 
178
228
  /** @internal */
179
- export const Period$inboundSchema: z.ZodNativeEnum<typeof Period> = z
180
- .nativeEnum(Period);
229
+ export const RequestBodyPeriod$inboundSchema: z.ZodNativeEnum<
230
+ typeof RequestBodyPeriod
231
+ > = z.nativeEnum(RequestBodyPeriod);
181
232
 
182
233
  /** @internal */
183
- export const Period$outboundSchema: z.ZodNativeEnum<typeof Period> =
184
- Period$inboundSchema;
234
+ export const RequestBodyPeriod$outboundSchema: z.ZodNativeEnum<
235
+ typeof RequestBodyPeriod
236
+ > = RequestBodyPeriod$inboundSchema;
185
237
 
186
238
  /**
187
239
  * @internal
188
240
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
189
241
  */
190
- export namespace Period$ {
191
- /** @deprecated use `Period$inboundSchema` instead. */
192
- export const inboundSchema = Period$inboundSchema;
193
- /** @deprecated use `Period$outboundSchema` instead. */
194
- export const outboundSchema = Period$outboundSchema;
242
+ export namespace RequestBodyPeriod$ {
243
+ /** @deprecated use `RequestBodyPeriod$inboundSchema` instead. */
244
+ export const inboundSchema = RequestBodyPeriod$inboundSchema;
245
+ /** @deprecated use `RequestBodyPeriod$outboundSchema` instead. */
246
+ export const outboundSchema = RequestBodyPeriod$outboundSchema;
195
247
  }
196
248
 
197
249
  /** @internal */
198
- export const CreateBudgetRequestBody$inboundSchema: z.ZodType<
199
- CreateBudgetRequestBody,
250
+ export const RequestBody2$inboundSchema: z.ZodType<
251
+ RequestBody2,
200
252
  z.ZodTypeDef,
201
253
  unknown
202
254
  > = z.object({
203
- type: CreateBudgetType$inboundSchema,
255
+ type: CreateBudgetRequestBodyBudgetsType$inboundSchema,
256
+ period: RequestBodyPeriod$inboundSchema,
257
+ amount: z.number(),
258
+ });
259
+
260
+ /** @internal */
261
+ export type RequestBody2$Outbound = {
262
+ type: string;
263
+ period: string;
264
+ amount: number;
265
+ };
266
+
267
+ /** @internal */
268
+ export const RequestBody2$outboundSchema: z.ZodType<
269
+ RequestBody2$Outbound,
270
+ z.ZodTypeDef,
271
+ RequestBody2
272
+ > = z.object({
273
+ type: CreateBudgetRequestBodyBudgetsType$outboundSchema,
274
+ period: RequestBodyPeriod$outboundSchema,
275
+ amount: z.number(),
276
+ });
277
+
278
+ /**
279
+ * @internal
280
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
281
+ */
282
+ export namespace RequestBody2$ {
283
+ /** @deprecated use `RequestBody2$inboundSchema` instead. */
284
+ export const inboundSchema = RequestBody2$inboundSchema;
285
+ /** @deprecated use `RequestBody2$outboundSchema` instead. */
286
+ export const outboundSchema = RequestBody2$outboundSchema;
287
+ /** @deprecated use `RequestBody2$Outbound` instead. */
288
+ export type Outbound = RequestBody2$Outbound;
289
+ }
290
+
291
+ export function requestBody2ToJSON(requestBody2: RequestBody2): string {
292
+ return JSON.stringify(RequestBody2$outboundSchema.parse(requestBody2));
293
+ }
294
+
295
+ export function requestBody2FromJSON(
296
+ jsonString: string,
297
+ ): SafeParseResult<RequestBody2, SDKValidationError> {
298
+ return safeParse(
299
+ jsonString,
300
+ (x) => RequestBody2$inboundSchema.parse(JSON.parse(x)),
301
+ `Failed to parse 'RequestBody2' from JSON`,
302
+ );
303
+ }
304
+
305
+ /** @internal */
306
+ export const CreateBudgetRequestBodyType$inboundSchema: z.ZodNativeEnum<
307
+ typeof CreateBudgetRequestBodyType
308
+ > = z.nativeEnum(CreateBudgetRequestBodyType);
309
+
310
+ /** @internal */
311
+ export const CreateBudgetRequestBodyType$outboundSchema: z.ZodNativeEnum<
312
+ typeof CreateBudgetRequestBodyType
313
+ > = CreateBudgetRequestBodyType$inboundSchema;
314
+
315
+ /**
316
+ * @internal
317
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
318
+ */
319
+ export namespace CreateBudgetRequestBodyType$ {
320
+ /** @deprecated use `CreateBudgetRequestBodyType$inboundSchema` instead. */
321
+ export const inboundSchema = CreateBudgetRequestBodyType$inboundSchema;
322
+ /** @deprecated use `CreateBudgetRequestBodyType$outboundSchema` instead. */
323
+ export const outboundSchema = CreateBudgetRequestBodyType$outboundSchema;
324
+ }
325
+
326
+ /** @internal */
327
+ export const CreateBudgetRequestBodyPeriod$inboundSchema: z.ZodNativeEnum<
328
+ typeof CreateBudgetRequestBodyPeriod
329
+ > = z.nativeEnum(CreateBudgetRequestBodyPeriod);
330
+
331
+ /** @internal */
332
+ export const CreateBudgetRequestBodyPeriod$outboundSchema: z.ZodNativeEnum<
333
+ typeof CreateBudgetRequestBodyPeriod
334
+ > = CreateBudgetRequestBodyPeriod$inboundSchema;
335
+
336
+ /**
337
+ * @internal
338
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
339
+ */
340
+ export namespace CreateBudgetRequestBodyPeriod$ {
341
+ /** @deprecated use `CreateBudgetRequestBodyPeriod$inboundSchema` instead. */
342
+ export const inboundSchema = CreateBudgetRequestBodyPeriod$inboundSchema;
343
+ /** @deprecated use `CreateBudgetRequestBodyPeriod$outboundSchema` instead. */
344
+ export const outboundSchema = CreateBudgetRequestBodyPeriod$outboundSchema;
345
+ }
346
+
347
+ /** @internal */
348
+ export const RequestBody1$inboundSchema: z.ZodType<
349
+ RequestBody1,
350
+ z.ZodTypeDef,
351
+ unknown
352
+ > = z.object({
353
+ type: CreateBudgetRequestBodyType$inboundSchema,
204
354
  entity_id: z.string(),
205
- period: Period$inboundSchema,
355
+ period: CreateBudgetRequestBodyPeriod$inboundSchema,
206
356
  amount: z.number(),
207
357
  }).transform((v) => {
208
358
  return remap$(v, {
@@ -211,7 +361,7 @@ export const CreateBudgetRequestBody$inboundSchema: z.ZodType<
211
361
  });
212
362
 
213
363
  /** @internal */
214
- export type CreateBudgetRequestBody$Outbound = {
364
+ export type RequestBody1$Outbound = {
215
365
  type: string;
216
366
  entity_id: string;
217
367
  period: string;
@@ -219,14 +369,14 @@ export type CreateBudgetRequestBody$Outbound = {
219
369
  };
220
370
 
221
371
  /** @internal */
222
- export const CreateBudgetRequestBody$outboundSchema: z.ZodType<
223
- CreateBudgetRequestBody$Outbound,
372
+ export const RequestBody1$outboundSchema: z.ZodType<
373
+ RequestBody1$Outbound,
224
374
  z.ZodTypeDef,
225
- CreateBudgetRequestBody
375
+ RequestBody1
226
376
  > = z.object({
227
- type: CreateBudgetType$outboundSchema,
377
+ type: CreateBudgetRequestBodyType$outboundSchema,
228
378
  entityId: z.string(),
229
- period: Period$outboundSchema,
379
+ period: CreateBudgetRequestBodyPeriod$outboundSchema,
230
380
  amount: z.number(),
231
381
  }).transform((v) => {
232
382
  return remap$(v, {
@@ -234,6 +384,58 @@ export const CreateBudgetRequestBody$outboundSchema: z.ZodType<
234
384
  });
235
385
  });
236
386
 
387
+ /**
388
+ * @internal
389
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
390
+ */
391
+ export namespace RequestBody1$ {
392
+ /** @deprecated use `RequestBody1$inboundSchema` instead. */
393
+ export const inboundSchema = RequestBody1$inboundSchema;
394
+ /** @deprecated use `RequestBody1$outboundSchema` instead. */
395
+ export const outboundSchema = RequestBody1$outboundSchema;
396
+ /** @deprecated use `RequestBody1$Outbound` instead. */
397
+ export type Outbound = RequestBody1$Outbound;
398
+ }
399
+
400
+ export function requestBody1ToJSON(requestBody1: RequestBody1): string {
401
+ return JSON.stringify(RequestBody1$outboundSchema.parse(requestBody1));
402
+ }
403
+
404
+ export function requestBody1FromJSON(
405
+ jsonString: string,
406
+ ): SafeParseResult<RequestBody1, SDKValidationError> {
407
+ return safeParse(
408
+ jsonString,
409
+ (x) => RequestBody1$inboundSchema.parse(JSON.parse(x)),
410
+ `Failed to parse 'RequestBody1' from JSON`,
411
+ );
412
+ }
413
+
414
+ /** @internal */
415
+ export const CreateBudgetRequestBody$inboundSchema: z.ZodType<
416
+ CreateBudgetRequestBody,
417
+ z.ZodTypeDef,
418
+ unknown
419
+ > = z.union([
420
+ z.lazy(() => RequestBody1$inboundSchema),
421
+ z.lazy(() => RequestBody2$inboundSchema),
422
+ ]);
423
+
424
+ /** @internal */
425
+ export type CreateBudgetRequestBody$Outbound =
426
+ | RequestBody1$Outbound
427
+ | RequestBody2$Outbound;
428
+
429
+ /** @internal */
430
+ export const CreateBudgetRequestBody$outboundSchema: z.ZodType<
431
+ CreateBudgetRequestBody$Outbound,
432
+ z.ZodTypeDef,
433
+ CreateBudgetRequestBody
434
+ > = z.union([
435
+ z.lazy(() => RequestBody1$outboundSchema),
436
+ z.lazy(() => RequestBody2$outboundSchema),
437
+ ]);
438
+
237
439
  /**
238
440
  * @internal
239
441
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
@@ -266,24 +468,24 @@ export function createBudgetRequestBodyFromJSON(
266
468
  }
267
469
 
268
470
  /** @internal */
269
- export const CreateBudgetBudgetsType$inboundSchema: z.ZodNativeEnum<
270
- typeof CreateBudgetBudgetsType
271
- > = z.nativeEnum(CreateBudgetBudgetsType);
471
+ export const CreateBudgetType$inboundSchema: z.ZodNativeEnum<
472
+ typeof CreateBudgetType
473
+ > = z.nativeEnum(CreateBudgetType);
272
474
 
273
475
  /** @internal */
274
- export const CreateBudgetBudgetsType$outboundSchema: z.ZodNativeEnum<
275
- typeof CreateBudgetBudgetsType
276
- > = CreateBudgetBudgetsType$inboundSchema;
476
+ export const CreateBudgetType$outboundSchema: z.ZodNativeEnum<
477
+ typeof CreateBudgetType
478
+ > = CreateBudgetType$inboundSchema;
277
479
 
278
480
  /**
279
481
  * @internal
280
482
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
281
483
  */
282
- export namespace CreateBudgetBudgetsType$ {
283
- /** @deprecated use `CreateBudgetBudgetsType$inboundSchema` instead. */
284
- export const inboundSchema = CreateBudgetBudgetsType$inboundSchema;
285
- /** @deprecated use `CreateBudgetBudgetsType$outboundSchema` instead. */
286
- export const outboundSchema = CreateBudgetBudgetsType$outboundSchema;
484
+ export namespace CreateBudgetType$ {
485
+ /** @deprecated use `CreateBudgetType$inboundSchema` instead. */
486
+ export const inboundSchema = CreateBudgetType$inboundSchema;
487
+ /** @deprecated use `CreateBudgetType$outboundSchema` instead. */
488
+ export const outboundSchema = CreateBudgetType$outboundSchema;
287
489
  }
288
490
 
289
491
  /** @internal */
@@ -444,7 +646,7 @@ export const CreateBudgetResponseBody$inboundSchema: z.ZodType<
444
646
  unknown
445
647
  > = z.object({
446
648
  _id: z.string(),
447
- type: CreateBudgetBudgetsType$inboundSchema,
649
+ type: CreateBudgetType$inboundSchema,
448
650
  contact_id: z.string().optional(),
449
651
  api_key_id: z.string().optional(),
450
652
  budget: z.lazy(() => CreateBudgetBudget$inboundSchema),
@@ -453,7 +655,7 @@ export const CreateBudgetResponseBody$inboundSchema: z.ZodType<
453
655
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
454
656
  .optional(),
455
657
  updated: z.string().datetime({ offset: true }).default(
456
- "2025-08-20T07:45:57.493Z",
658
+ "2025-08-20T11:38:10.692Z",
457
659
  ).transform(v => new Date(v)),
458
660
  }).transform((v) => {
459
661
  return remap$(v, {
@@ -484,14 +686,14 @@ export const CreateBudgetResponseBody$outboundSchema: z.ZodType<
484
686
  CreateBudgetResponseBody
485
687
  > = z.object({
486
688
  id: z.string(),
487
- type: CreateBudgetBudgetsType$outboundSchema,
689
+ type: CreateBudgetType$outboundSchema,
488
690
  contactId: z.string().optional(),
489
691
  apiKeyId: z.string().optional(),
490
692
  budget: z.lazy(() => CreateBudgetBudget$outboundSchema),
491
693
  isActive: z.boolean(),
492
694
  consumption: z.lazy(() => Consumption$outboundSchema).optional(),
493
695
  created: z.date().transform(v => v.toISOString()).optional(),
494
- updated: z.date().default(() => new Date("2025-08-20T07:45:57.493Z"))
696
+ updated: z.date().default(() => new Date("2025-08-20T11:38:10.692Z"))
495
697
  .transform(v => v.toISOString()),
496
698
  }).transform((v) => {
497
699
  return remap$(v, {
@@ -182,7 +182,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
182
182
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
183
183
  .optional(),
184
184
  updated: z.string().datetime({ offset: true }).default(
185
- "2025-08-20T07:45:57.493Z",
185
+ "2025-08-20T11:38:10.692Z",
186
186
  ).transform(v => new Date(v)),
187
187
  }).transform((v) => {
188
188
  return remap$(v, {
@@ -223,7 +223,7 @@ export const CreateContactResponseBody$outboundSchema: z.ZodType<
223
223
  tags: z.array(z.string()).optional(),
224
224
  metadata: z.record(z.any()).optional(),
225
225
  created: z.date().transform(v => v.toISOString()).optional(),
226
- updated: z.date().default(() => new Date("2025-08-20T07:45:57.493Z"))
226
+ updated: z.date().default(() => new Date("2025-08-20T11:38:10.692Z"))
227
227
  .transform(v => v.toISOString()),
228
228
  }).transform((v) => {
229
229
  return remap$(v, {
@@ -211,7 +211,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
211
211
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
212
212
  .optional(),
213
213
  updated: z.string().datetime({ offset: true }).default(
214
- "2025-08-20T07:45:57.493Z",
214
+ "2025-08-20T11:38:10.692Z",
215
215
  ).transform(v => new Date(v)),
216
216
  }).transform((v) => {
217
217
  return remap$(v, {
@@ -251,7 +251,7 @@ export const CreateDatasetResponseBody$outboundSchema: z.ZodType<
251
251
  updatedById: z.string().optional(),
252
252
  metadata: z.lazy(() => CreateDatasetMetadata$outboundSchema),
253
253
  created: z.date().transform(v => v.toISOString()).optional(),
254
- updated: z.date().default(() => new Date("2025-08-20T07:45:57.493Z"))
254
+ updated: z.date().default(() => new Date("2025-08-20T11:38:10.692Z"))
255
255
  .transform(v => v.toISOString()),
256
256
  }).transform((v) => {
257
257
  return remap$(v, {
@@ -5100,7 +5100,7 @@ export const ResponseBody$inboundSchema: z.ZodType<
5100
5100
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
5101
5101
  .optional(),
5102
5102
  updated: z.string().datetime({ offset: true }).default(
5103
- "2025-08-20T07:45:57.493Z",
5103
+ "2025-08-20T11:38:10.692Z",
5104
5104
  ).transform(v => new Date(v)),
5105
5105
  }).transform((v) => {
5106
5106
  return remap$(v, {
@@ -5164,7 +5164,7 @@ export const ResponseBody$outboundSchema: z.ZodType<
5164
5164
  createdById: z.string().optional(),
5165
5165
  updatedById: z.string().optional(),
5166
5166
  created: z.date().transform(v => v.toISOString()).optional(),
5167
- updated: z.date().default(() => new Date("2025-08-20T07:45:57.493Z"))
5167
+ updated: z.date().default(() => new Date("2025-08-20T11:38:10.692Z"))
5168
5168
  .transform(v => v.toISOString()),
5169
5169
  }).transform((v) => {
5170
5170
  return remap$(v, {
@@ -751,7 +751,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
751
751
  z.ZodTypeDef,
752
752
  unknown
753
753
  > = z.object({
754
- _id: z.string().default("01K3372EJTYXJT0XSAJAH62DDF"),
754
+ _id: z.string().default("01K33MBNM5XXND6M7TFEGC96HR"),
755
755
  display_name: z.string(),
756
756
  description: z.string().optional(),
757
757
  status: CreateDatasourceStatus$inboundSchema,
@@ -795,7 +795,7 @@ export const CreateDatasourceResponseBody$outboundSchema: z.ZodType<
795
795
  z.ZodTypeDef,
796
796
  CreateDatasourceResponseBody
797
797
  > = z.object({
798
- id: z.string().default("01K3372EJTYXJT0XSAJAH62DDF"),
798
+ id: z.string().default("01K33MBNM5XXND6M7TFEGC96HR"),
799
799
  displayName: z.string(),
800
800
  description: z.string().optional(),
801
801
  status: CreateDatasourceStatus$outboundSchema,
@@ -2399,8 +2399,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
2399
2399
  > = z.object({
2400
2400
  _id: z.string(),
2401
2401
  description: z.string(),
2402
- created: z.string().default("2025-08-20T07:45:59.790Z"),
2403
- updated: z.string().default("2025-08-20T07:45:59.790Z"),
2402
+ created: z.string().default("2025-08-20T11:38:13.202Z"),
2403
+ updated: z.string().default("2025-08-20T11:38:13.202Z"),
2404
2404
  guardrail_config: z.union([
2405
2405
  z.lazy(() =>
2406
2406
  CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
@@ -2442,8 +2442,8 @@ export const ResponseBodyPython$outboundSchema: z.ZodType<
2442
2442
  > = z.object({
2443
2443
  id: z.string(),
2444
2444
  description: z.string(),
2445
- created: z.string().default("2025-08-20T07:45:59.790Z"),
2446
- updated: z.string().default("2025-08-20T07:45:59.790Z"),
2445
+ created: z.string().default("2025-08-20T11:38:13.202Z"),
2446
+ updated: z.string().default("2025-08-20T11:38:13.202Z"),
2447
2447
  guardrailConfig: z.union([
2448
2448
  z.lazy(() =>
2449
2449
  CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema
@@ -2856,8 +2856,8 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
2856
2856
  > = z.object({
2857
2857
  _id: z.string(),
2858
2858
  description: z.string(),
2859
- created: z.string().default("2025-08-20T07:45:59.790Z"),
2860
- updated: z.string().default("2025-08-20T07:45:59.790Z"),
2859
+ created: z.string().default("2025-08-20T11:38:13.202Z"),
2860
+ updated: z.string().default("2025-08-20T11:38:13.202Z"),
2861
2861
  guardrail_config: z.union([
2862
2862
  z.lazy(() =>
2863
2863
  CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
@@ -2905,8 +2905,8 @@ export const ResponseBodyHTTP$outboundSchema: z.ZodType<
2905
2905
  > = z.object({
2906
2906
  id: z.string(),
2907
2907
  description: z.string(),
2908
- created: z.string().default("2025-08-20T07:45:59.790Z"),
2909
- updated: z.string().default("2025-08-20T07:45:59.790Z"),
2908
+ created: z.string().default("2025-08-20T11:38:13.202Z"),
2909
+ updated: z.string().default("2025-08-20T11:38:13.202Z"),
2910
2910
  guardrailConfig: z.union([
2911
2911
  z.lazy(() =>
2912
2912
  CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema
@@ -3283,8 +3283,8 @@ export const ResponseBodyJSON$inboundSchema: z.ZodType<
3283
3283
  > = z.object({
3284
3284
  _id: z.string(),
3285
3285
  description: z.string(),
3286
- created: z.string().default("2025-08-20T07:45:59.790Z"),
3287
- updated: z.string().default("2025-08-20T07:45:59.790Z"),
3286
+ created: z.string().default("2025-08-20T11:38:13.202Z"),
3287
+ updated: z.string().default("2025-08-20T11:38:13.202Z"),
3288
3288
  guardrail_config: z.union([
3289
3289
  z.lazy(() => CreateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
3290
3290
  z.lazy(() =>
@@ -3324,8 +3324,8 @@ export const ResponseBodyJSON$outboundSchema: z.ZodType<
3324
3324
  > = z.object({
3325
3325
  id: z.string(),
3326
3326
  description: z.string(),
3327
- created: z.string().default("2025-08-20T07:45:59.790Z"),
3328
- updated: z.string().default("2025-08-20T07:45:59.790Z"),
3327
+ created: z.string().default("2025-08-20T11:38:13.202Z"),
3328
+ updated: z.string().default("2025-08-20T11:38:13.202Z"),
3329
3329
  guardrailConfig: z.union([
3330
3330
  z.lazy(() =>
3331
3331
  CreateEvalGuardrailConfigEvalsResponse200Number$outboundSchema
@@ -3680,8 +3680,8 @@ export const ResponseBodyLLM$inboundSchema: z.ZodType<
3680
3680
  > = z.object({
3681
3681
  _id: z.string(),
3682
3682
  description: z.string(),
3683
- created: z.string().default("2025-08-20T07:45:59.790Z"),
3684
- updated: z.string().default("2025-08-20T07:45:59.790Z"),
3683
+ created: z.string().default("2025-08-20T11:38:13.202Z"),
3684
+ updated: z.string().default("2025-08-20T11:38:13.202Z"),
3685
3685
  guardrail_config: z.union([
3686
3686
  z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
3687
3687
  z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
@@ -3721,8 +3721,8 @@ export const ResponseBodyLLM$outboundSchema: z.ZodType<
3721
3721
  > = z.object({
3722
3722
  id: z.string(),
3723
3723
  description: z.string(),
3724
- created: z.string().default("2025-08-20T07:45:59.790Z"),
3725
- updated: z.string().default("2025-08-20T07:45:59.790Z"),
3724
+ created: z.string().default("2025-08-20T11:38:13.202Z"),
3725
+ updated: z.string().default("2025-08-20T11:38:13.202Z"),
3726
3726
  guardrailConfig: z.union([
3727
3727
  z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
3728
3728
  z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema),
@@ -260,6 +260,7 @@ export const Provider = {
260
260
  Litellm: "litellm",
261
261
  Openailike: "openailike",
262
262
  Cerebras: "cerebras",
263
+ Bytedance: "bytedance",
263
264
  } as const;
264
265
  export type Provider = ClosedEnum<typeof Provider>;
265
266
 
@@ -757,6 +758,7 @@ export const CreatePromptProvider = {
757
758
  Litellm: "litellm",
758
759
  Openailike: "openailike",
759
760
  Cerebras: "cerebras",
761
+ Bytedance: "bytedance",
760
762
  } as const;
761
763
  export type CreatePromptProvider = ClosedEnum<typeof CreatePromptProvider>;
762
764
 
@@ -53,6 +53,7 @@ export const DeploymentInvokeProvider = {
53
53
  Litellm: "litellm",
54
54
  Openailike: "openailike",
55
55
  Cerebras: "cerebras",
56
+ Bytedance: "bytedance",
56
57
  } as const;
57
58
  /**
58
59
  * The provider used to generate the response
@@ -349,6 +349,7 @@ export const DeploymentsProvider = {
349
349
  Litellm: "litellm",
350
350
  Openailike: "openailike",
351
351
  Cerebras: "cerebras",
352
+ Bytedance: "bytedance",
352
353
  } as const;
353
354
  export type DeploymentsProvider = ClosedEnum<typeof DeploymentsProvider>;
354
355