@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.
- package/bin/mcp-server.js +103 -103
- package/bin/mcp-server.js.map +26 -26
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +16 -16
- package/package.json +1 -1
- package/packages/orq-rc/README.md +6 -6
- package/packages/orq-rc/docs/sdks/budgets/README.md +6 -6
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/budgetsCreate.ts +2 -2
- package/packages/orq-rc/src/funcs/budgetsDelete.ts +2 -2
- package/packages/orq-rc/src/funcs/budgetsUpdate.ts +2 -2
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/budgetsCreate.ts +2 -2
- package/packages/orq-rc/src/mcp-server/tools/budgetsDelete.ts +2 -2
- package/packages/orq-rc/src/mcp-server/tools/budgetsUpdate.ts +2 -2
- package/packages/orq-rc/src/models/operations/createbudget.ts +262 -60
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/createprompt.ts +2 -0
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +1 -0
- package/packages/orq-rc/src/models/operations/deployments.ts +1 -0
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getallprompts.ts +1 -0
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +1 -0
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +1 -0
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +1 -0
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +2 -0
- package/packages/orq-rc/src/models/operations/updatebudget.ts +32 -36
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/updateprompt.ts +2 -0
- package/packages/orq-rc/src/sdk/budgets.ts +6 -6
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +16 -16
|
@@ -146,7 +146,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
|
|
|
146
146
|
file_name: z.string(),
|
|
147
147
|
workspace_id: z.string(),
|
|
148
148
|
created: z.string().datetime({ offset: true }).default(
|
|
149
|
-
"2025-08-
|
|
149
|
+
"2025-08-20T11:38:14.041Z",
|
|
150
150
|
).transform(v => new Date(v)),
|
|
151
151
|
}).transform((v) => {
|
|
152
152
|
return remap$(v, {
|
|
@@ -180,7 +180,7 @@ export const FileGetResponseBody$outboundSchema: z.ZodType<
|
|
|
180
180
|
bytes: z.number(),
|
|
181
181
|
fileName: z.string(),
|
|
182
182
|
workspaceId: z.string(),
|
|
183
|
-
created: z.date().default(() => new Date("2025-08-
|
|
183
|
+
created: z.date().default(() => new Date("2025-08-20T11:38:14.041Z"))
|
|
184
184
|
.transform(v => v.toISOString()),
|
|
185
185
|
}).transform((v) => {
|
|
186
186
|
return remap$(v, {
|
|
@@ -196,7 +196,7 @@ export const FileListData$inboundSchema: z.ZodType<
|
|
|
196
196
|
file_name: z.string(),
|
|
197
197
|
workspace_id: z.string(),
|
|
198
198
|
created: z.string().datetime({ offset: true }).default(
|
|
199
|
-
"2025-08-
|
|
199
|
+
"2025-08-20T11:38:14.041Z",
|
|
200
200
|
).transform(v => new Date(v)),
|
|
201
201
|
}).transform((v) => {
|
|
202
202
|
return remap$(v, {
|
|
@@ -230,7 +230,7 @@ export const FileListData$outboundSchema: z.ZodType<
|
|
|
230
230
|
bytes: z.number(),
|
|
231
231
|
fileName: z.string(),
|
|
232
232
|
workspaceId: z.string(),
|
|
233
|
-
created: z.date().default(() => new Date("2025-08-
|
|
233
|
+
created: z.date().default(() => new Date("2025-08-20T11:38:14.041Z"))
|
|
234
234
|
.transform(v => v.toISOString()),
|
|
235
235
|
}).transform((v) => {
|
|
236
236
|
return remap$(v, {
|
|
@@ -250,7 +250,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
|
|
|
250
250
|
file_name: z.string(),
|
|
251
251
|
workspace_id: z.string(),
|
|
252
252
|
created: z.string().datetime({ offset: true }).default(
|
|
253
|
-
"2025-08-
|
|
253
|
+
"2025-08-20T11:38:14.041Z",
|
|
254
254
|
).transform(v => new Date(v)),
|
|
255
255
|
}).transform((v) => {
|
|
256
256
|
return remap$(v, {
|
|
@@ -284,7 +284,7 @@ export const FileUploadResponseBody$outboundSchema: z.ZodType<
|
|
|
284
284
|
bytes: z.number(),
|
|
285
285
|
fileName: z.string(),
|
|
286
286
|
workspaceId: z.string(),
|
|
287
|
-
created: z.date().default(() => new Date("2025-08-
|
|
287
|
+
created: z.date().default(() => new Date("2025-08-20T11:38:14.041Z"))
|
|
288
288
|
.transform(v => v.toISOString()),
|
|
289
289
|
}).transform((v) => {
|
|
290
290
|
return remap$(v, {
|
|
@@ -356,7 +356,7 @@ export const GetBudgetResponseBody$inboundSchema: z.ZodType<
|
|
|
356
356
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
357
357
|
.optional(),
|
|
358
358
|
updated: z.string().datetime({ offset: true }).default(
|
|
359
|
-
"2025-08-
|
|
359
|
+
"2025-08-20T11:38:10.692Z",
|
|
360
360
|
).transform(v => new Date(v)),
|
|
361
361
|
}).transform((v) => {
|
|
362
362
|
return remap$(v, {
|
|
@@ -394,7 +394,7 @@ export const GetBudgetResponseBody$outboundSchema: z.ZodType<
|
|
|
394
394
|
isActive: z.boolean(),
|
|
395
395
|
consumption: z.lazy(() => GetBudgetConsumption$outboundSchema).optional(),
|
|
396
396
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
397
|
-
updated: z.date().default(() => new Date("2025-08-
|
|
397
|
+
updated: z.date().default(() => new Date("2025-08-20T11:38:10.692Z"))
|
|
398
398
|
.transform(v => v.toISOString()),
|
|
399
399
|
}).transform((v) => {
|
|
400
400
|
return remap$(v, {
|
|
@@ -1551,8 +1551,8 @@ export const Typescript$inboundSchema: z.ZodType<
|
|
|
1551
1551
|
> = z.object({
|
|
1552
1552
|
_id: z.string(),
|
|
1553
1553
|
description: z.string(),
|
|
1554
|
-
created: z.string().default("2025-08-
|
|
1555
|
-
updated: z.string().default("2025-08-
|
|
1554
|
+
created: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
1555
|
+
updated: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
1556
1556
|
guardrail_config: z.union([
|
|
1557
1557
|
z.lazy(() =>
|
|
1558
1558
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
|
|
@@ -1595,8 +1595,8 @@ export const Typescript$outboundSchema: z.ZodType<
|
|
|
1595
1595
|
> = z.object({
|
|
1596
1596
|
id: z.string(),
|
|
1597
1597
|
description: z.string(),
|
|
1598
|
-
created: z.string().default("2025-08-
|
|
1599
|
-
updated: z.string().default("2025-08-
|
|
1598
|
+
created: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
1599
|
+
updated: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
1600
1600
|
guardrailConfig: z.union([
|
|
1601
1601
|
z.lazy(() =>
|
|
1602
1602
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema
|
|
@@ -1992,8 +1992,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
|
|
|
1992
1992
|
.object({
|
|
1993
1993
|
_id: z.string(),
|
|
1994
1994
|
description: z.string(),
|
|
1995
|
-
created: z.string().default("2025-08-
|
|
1996
|
-
updated: z.string().default("2025-08-
|
|
1995
|
+
created: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
1996
|
+
updated: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
1997
1997
|
guardrail_config: z.union([
|
|
1998
1998
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
1999
1999
|
z.lazy(() =>
|
|
@@ -2036,8 +2036,8 @@ export const Ragas$outboundSchema: z.ZodType<
|
|
|
2036
2036
|
> = z.object({
|
|
2037
2037
|
id: z.string(),
|
|
2038
2038
|
description: z.string(),
|
|
2039
|
-
created: z.string().default("2025-08-
|
|
2040
|
-
updated: z.string().default("2025-08-
|
|
2039
|
+
created: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
2040
|
+
updated: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
2041
2041
|
guardrailConfig: z.union([
|
|
2042
2042
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponse200Number$outboundSchema),
|
|
2043
2043
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponse200Boolean$outboundSchema),
|
|
@@ -5316,8 +5316,8 @@ export const DataFunction$inboundSchema: z.ZodType<
|
|
|
5316
5316
|
> = z.object({
|
|
5317
5317
|
_id: z.string(),
|
|
5318
5318
|
description: z.string(),
|
|
5319
|
-
created: z.string().default("2025-08-
|
|
5320
|
-
updated: z.string().default("2025-08-
|
|
5319
|
+
created: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
5320
|
+
updated: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
5321
5321
|
guardrail_config: z.union([
|
|
5322
5322
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
5323
5323
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -5427,8 +5427,8 @@ export const DataFunction$outboundSchema: z.ZodType<
|
|
|
5427
5427
|
> = z.object({
|
|
5428
5428
|
id: z.string(),
|
|
5429
5429
|
description: z.string(),
|
|
5430
|
-
created: z.string().default("2025-08-
|
|
5431
|
-
updated: z.string().default("2025-08-
|
|
5430
|
+
created: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
5431
|
+
updated: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
5432
5432
|
guardrailConfig: z.union([
|
|
5433
5433
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
5434
5434
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponseBoolean$outboundSchema),
|
|
@@ -5810,8 +5810,8 @@ export const DataPython$inboundSchema: z.ZodType<
|
|
|
5810
5810
|
> = z.object({
|
|
5811
5811
|
_id: z.string(),
|
|
5812
5812
|
description: z.string(),
|
|
5813
|
-
created: z.string().default("2025-08-
|
|
5814
|
-
updated: z.string().default("2025-08-
|
|
5813
|
+
created: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
5814
|
+
updated: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
5815
5815
|
guardrail_config: z.union([
|
|
5816
5816
|
z.lazy(() => GetEvalsGuardrailConfigEvalsNumber$inboundSchema),
|
|
5817
5817
|
z.lazy(() => GetEvalsGuardrailConfigEvalsBoolean$inboundSchema),
|
|
@@ -5849,8 +5849,8 @@ export const DataPython$outboundSchema: z.ZodType<
|
|
|
5849
5849
|
> = z.object({
|
|
5850
5850
|
id: z.string(),
|
|
5851
5851
|
description: z.string(),
|
|
5852
|
-
created: z.string().default("2025-08-
|
|
5853
|
-
updated: z.string().default("2025-08-
|
|
5852
|
+
created: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
5853
|
+
updated: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
5854
5854
|
guardrailConfig: z.union([
|
|
5855
5855
|
z.lazy(() => GetEvalsGuardrailConfigEvalsNumber$outboundSchema),
|
|
5856
5856
|
z.lazy(() => GetEvalsGuardrailConfigEvalsBoolean$outboundSchema),
|
|
@@ -6196,8 +6196,8 @@ export const DataHTTP$inboundSchema: z.ZodType<
|
|
|
6196
6196
|
> = z.object({
|
|
6197
6197
|
_id: z.string(),
|
|
6198
6198
|
description: z.string(),
|
|
6199
|
-
created: z.string().default("2025-08-
|
|
6200
|
-
updated: z.string().default("2025-08-
|
|
6199
|
+
created: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
6200
|
+
updated: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
6201
6201
|
guardrail_config: z.union([
|
|
6202
6202
|
z.lazy(() => GetEvalsGuardrailConfigNumber$inboundSchema),
|
|
6203
6203
|
z.lazy(() => GetEvalsGuardrailConfigBoolean$inboundSchema),
|
|
@@ -6241,8 +6241,8 @@ export const DataHTTP$outboundSchema: z.ZodType<
|
|
|
6241
6241
|
> = z.object({
|
|
6242
6242
|
id: z.string(),
|
|
6243
6243
|
description: z.string(),
|
|
6244
|
-
created: z.string().default("2025-08-
|
|
6245
|
-
updated: z.string().default("2025-08-
|
|
6244
|
+
created: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
6245
|
+
updated: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
6246
6246
|
guardrailConfig: z.union([
|
|
6247
6247
|
z.lazy(() => GetEvalsGuardrailConfigNumber$outboundSchema),
|
|
6248
6248
|
z.lazy(() => GetEvalsGuardrailConfigBoolean$outboundSchema),
|
|
@@ -6607,8 +6607,8 @@ export const DataJSON$inboundSchema: z.ZodType<
|
|
|
6607
6607
|
> = z.object({
|
|
6608
6608
|
_id: z.string(),
|
|
6609
6609
|
description: z.string(),
|
|
6610
|
-
created: z.string().default("2025-08-
|
|
6611
|
-
updated: z.string().default("2025-08-
|
|
6610
|
+
created: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
6611
|
+
updated: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
6612
6612
|
guardrail_config: z.union([
|
|
6613
6613
|
z.lazy(() =>
|
|
6614
6614
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumber$inboundSchema
|
|
@@ -6650,8 +6650,8 @@ export const DataJSON$outboundSchema: z.ZodType<
|
|
|
6650
6650
|
> = z.object({
|
|
6651
6651
|
id: z.string(),
|
|
6652
6652
|
description: z.string(),
|
|
6653
|
-
created: z.string().default("2025-08-
|
|
6654
|
-
updated: z.string().default("2025-08-
|
|
6653
|
+
created: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
6654
|
+
updated: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
6655
6655
|
guardrailConfig: z.union([
|
|
6656
6656
|
z.lazy(() =>
|
|
6657
6657
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumber$outboundSchema
|
|
@@ -7033,8 +7033,8 @@ export const DataLLM$inboundSchema: z.ZodType<DataLLM, z.ZodTypeDef, unknown> =
|
|
|
7033
7033
|
z.object({
|
|
7034
7034
|
_id: z.string(),
|
|
7035
7035
|
description: z.string(),
|
|
7036
|
-
created: z.string().default("2025-08-
|
|
7037
|
-
updated: z.string().default("2025-08-
|
|
7036
|
+
created: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
7037
|
+
updated: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
7038
7038
|
guardrail_config: z.union([
|
|
7039
7039
|
z.lazy(() =>
|
|
7040
7040
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
|
|
@@ -7078,8 +7078,8 @@ export const DataLLM$outboundSchema: z.ZodType<
|
|
|
7078
7078
|
> = z.object({
|
|
7079
7079
|
id: z.string(),
|
|
7080
7080
|
description: z.string(),
|
|
7081
|
-
created: z.string().default("2025-08-
|
|
7082
|
-
updated: z.string().default("2025-08-
|
|
7081
|
+
created: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
7082
|
+
updated: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
7083
7083
|
guardrailConfig: z.union([
|
|
7084
7084
|
z.lazy(() =>
|
|
7085
7085
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema
|
|
@@ -283,6 +283,7 @@ export const GetPromptVersionProvider = {
|
|
|
283
283
|
Litellm: "litellm",
|
|
284
284
|
Openailike: "openailike",
|
|
285
285
|
Cerebras: "cerebras",
|
|
286
|
+
Bytedance: "bytedance",
|
|
286
287
|
} as const;
|
|
287
288
|
export type GetPromptVersionProvider = ClosedEnum<
|
|
288
289
|
typeof GetPromptVersionProvider
|
|
@@ -470,7 +470,7 @@ export const ListBudgetsData$inboundSchema: z.ZodType<
|
|
|
470
470
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
471
471
|
.optional(),
|
|
472
472
|
updated: z.string().datetime({ offset: true }).default(
|
|
473
|
-
"2025-08-
|
|
473
|
+
"2025-08-20T11:38:10.692Z",
|
|
474
474
|
).transform(v => new Date(v)),
|
|
475
475
|
}).transform((v) => {
|
|
476
476
|
return remap$(v, {
|
|
@@ -508,7 +508,7 @@ export const ListBudgetsData$outboundSchema: z.ZodType<
|
|
|
508
508
|
isActive: z.boolean(),
|
|
509
509
|
consumption: z.lazy(() => ListBudgetsConsumption$outboundSchema).optional(),
|
|
510
510
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
511
|
-
updated: z.date().default(() => new Date("2025-08-
|
|
511
|
+
updated: z.date().default(() => new Date("2025-08-20T11:38:10.692Z"))
|
|
512
512
|
.transform(v => v.toISOString()),
|
|
513
513
|
}).transform((v) => {
|
|
514
514
|
return remap$(v, {
|
|
@@ -345,7 +345,7 @@ export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
|
|
|
345
345
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
346
346
|
.optional(),
|
|
347
347
|
updated: z.string().datetime({ offset: true }).default(
|
|
348
|
-
"2025-08-
|
|
348
|
+
"2025-08-20T11:38:10.692Z",
|
|
349
349
|
).transform(v => new Date(v)),
|
|
350
350
|
metrics: z.lazy(() => Metrics$inboundSchema),
|
|
351
351
|
}).transform((v) => {
|
|
@@ -382,7 +382,7 @@ export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
|
|
|
382
382
|
tags: z.array(z.string()).optional(),
|
|
383
383
|
metadata: z.record(z.any()).optional(),
|
|
384
384
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
385
|
-
updated: z.date().default(() => new Date("2025-08-
|
|
385
|
+
updated: z.date().default(() => new Date("2025-08-20T11:38:10.692Z"))
|
|
386
386
|
.transform(v => v.toISOString()),
|
|
387
387
|
metrics: z.lazy(() => Metrics$outboundSchema),
|
|
388
388
|
}).transform((v) => {
|
|
@@ -2604,7 +2604,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
2604
2604
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2605
2605
|
.optional(),
|
|
2606
2606
|
updated: z.string().datetime({ offset: true }).default(
|
|
2607
|
-
"2025-08-
|
|
2607
|
+
"2025-08-20T11:38:10.692Z",
|
|
2608
2608
|
).transform(v => new Date(v)),
|
|
2609
2609
|
}).transform((v) => {
|
|
2610
2610
|
return remap$(v, {
|
|
@@ -2668,7 +2668,7 @@ export const ListDatasetDatapointsData$outboundSchema: z.ZodType<
|
|
|
2668
2668
|
createdById: z.string().optional(),
|
|
2669
2669
|
updatedById: z.string().optional(),
|
|
2670
2670
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
2671
|
-
updated: z.date().default(() => new Date("2025-08-
|
|
2671
|
+
updated: z.date().default(() => new Date("2025-08-20T11:38:10.692Z"))
|
|
2672
2672
|
.transform(v => v.toISOString()),
|
|
2673
2673
|
}).transform((v) => {
|
|
2674
2674
|
return remap$(v, {
|
|
@@ -253,7 +253,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
|
|
|
253
253
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
254
254
|
.optional(),
|
|
255
255
|
updated: z.string().datetime({ offset: true }).default(
|
|
256
|
-
"2025-08-
|
|
256
|
+
"2025-08-20T11:38:10.692Z",
|
|
257
257
|
).transform(v => new Date(v)),
|
|
258
258
|
}).transform((v) => {
|
|
259
259
|
return remap$(v, {
|
|
@@ -293,7 +293,7 @@ export const ListDatasetsData$outboundSchema: z.ZodType<
|
|
|
293
293
|
updatedById: z.string().optional(),
|
|
294
294
|
metadata: z.lazy(() => ListDatasetsMetadata$outboundSchema),
|
|
295
295
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
296
|
-
updated: z.date().default(() => new Date("2025-08-
|
|
296
|
+
updated: z.date().default(() => new Date("2025-08-20T11:38:10.692Z"))
|
|
297
297
|
.transform(v => v.toISOString()),
|
|
298
298
|
}).transform((v) => {
|
|
299
299
|
return remap$(v, {
|
|
@@ -278,7 +278,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
|
|
|
278
278
|
z.ZodTypeDef,
|
|
279
279
|
unknown
|
|
280
280
|
> = z.object({
|
|
281
|
-
_id: z.string().default("
|
|
281
|
+
_id: z.string().default("01K33MBNM4NK3YAN587T5E7KFY"),
|
|
282
282
|
display_name: z.string(),
|
|
283
283
|
description: z.string().optional(),
|
|
284
284
|
status: ListDatasourcesStatus$inboundSchema,
|
|
@@ -322,7 +322,7 @@ export const ListDatasourcesData$outboundSchema: z.ZodType<
|
|
|
322
322
|
z.ZodTypeDef,
|
|
323
323
|
ListDatasourcesData
|
|
324
324
|
> = z.object({
|
|
325
|
-
id: z.string().default("
|
|
325
|
+
id: z.string().default("01K33MBNM4NK3YAN587T5E7KFY"),
|
|
326
326
|
displayName: z.string(),
|
|
327
327
|
description: z.string().optional(),
|
|
328
328
|
status: ListDatasourcesStatus$outboundSchema,
|
|
@@ -297,6 +297,7 @@ export const ListPromptVersionsProvider = {
|
|
|
297
297
|
Litellm: "litellm",
|
|
298
298
|
Openailike: "openailike",
|
|
299
299
|
Cerebras: "cerebras",
|
|
300
|
+
Bytedance: "bytedance",
|
|
300
301
|
} as const;
|
|
301
302
|
export type ListPromptVersionsProvider = ClosedEnum<
|
|
302
303
|
typeof ListPromptVersionsProvider
|
|
@@ -127,7 +127,7 @@ export const RetrieveContactResponseBody$inboundSchema: z.ZodType<
|
|
|
127
127
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
128
128
|
.optional(),
|
|
129
129
|
updated: z.string().datetime({ offset: true }).default(
|
|
130
|
-
"2025-08-
|
|
130
|
+
"2025-08-20T11:38:10.692Z",
|
|
131
131
|
).transform(v => new Date(v)),
|
|
132
132
|
}).transform((v) => {
|
|
133
133
|
return remap$(v, {
|
|
@@ -165,7 +165,7 @@ export const RetrieveContactResponseBody$outboundSchema: z.ZodType<
|
|
|
165
165
|
tags: z.array(z.string()).optional(),
|
|
166
166
|
metadata: z.record(z.any()).optional(),
|
|
167
167
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
168
|
-
updated: z.date().default(() => new Date("2025-08-
|
|
168
|
+
updated: z.date().default(() => new Date("2025-08-20T11:38:10.692Z"))
|
|
169
169
|
.transform(v => v.toISOString()),
|
|
170
170
|
}).transform((v) => {
|
|
171
171
|
return remap$(v, {
|
|
@@ -2481,7 +2481,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
2481
2481
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2482
2482
|
.optional(),
|
|
2483
2483
|
updated: z.string().datetime({ offset: true }).default(
|
|
2484
|
-
"2025-08-
|
|
2484
|
+
"2025-08-20T11:38:10.692Z",
|
|
2485
2485
|
).transform(v => new Date(v)),
|
|
2486
2486
|
}).transform((v) => {
|
|
2487
2487
|
return remap$(v, {
|
|
@@ -2539,7 +2539,7 @@ export const RetrieveDatapointResponseBody$outboundSchema: z.ZodType<
|
|
|
2539
2539
|
createdById: z.string().optional(),
|
|
2540
2540
|
updatedById: z.string().optional(),
|
|
2541
2541
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
2542
|
-
updated: z.date().default(() => new Date("2025-08-
|
|
2542
|
+
updated: z.date().default(() => new Date("2025-08-20T11:38:10.692Z"))
|
|
2543
2543
|
.transform(v => v.toISOString()),
|
|
2544
2544
|
}).transform((v) => {
|
|
2545
2545
|
return remap$(v, {
|
|
@@ -201,7 +201,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
201
201
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
202
202
|
.optional(),
|
|
203
203
|
updated: z.string().datetime({ offset: true }).default(
|
|
204
|
-
"2025-08-
|
|
204
|
+
"2025-08-20T11:38:10.692Z",
|
|
205
205
|
).transform(v => new Date(v)),
|
|
206
206
|
}).transform((v) => {
|
|
207
207
|
return remap$(v, {
|
|
@@ -241,7 +241,7 @@ export const RetrieveDatasetResponseBody$outboundSchema: z.ZodType<
|
|
|
241
241
|
updatedById: z.string().optional(),
|
|
242
242
|
metadata: z.lazy(() => RetrieveDatasetMetadata$outboundSchema),
|
|
243
243
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
244
|
-
updated: z.date().default(() => new Date("2025-08-
|
|
244
|
+
updated: z.date().default(() => new Date("2025-08-20T11:38:10.692Z"))
|
|
245
245
|
.transform(v => v.toISOString()),
|
|
246
246
|
}).transform((v) => {
|
|
247
247
|
return remap$(v, {
|
|
@@ -172,7 +172,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
172
172
|
z.ZodTypeDef,
|
|
173
173
|
unknown
|
|
174
174
|
> = z.object({
|
|
175
|
-
_id: z.string().default("
|
|
175
|
+
_id: z.string().default("01K33MBNM5F3Y37VJ9MXC7J1X0"),
|
|
176
176
|
display_name: z.string(),
|
|
177
177
|
description: z.string().optional(),
|
|
178
178
|
status: RetrieveDatasourceStatus$inboundSchema,
|
|
@@ -216,7 +216,7 @@ export const RetrieveDatasourceResponseBody$outboundSchema: z.ZodType<
|
|
|
216
216
|
z.ZodTypeDef,
|
|
217
217
|
RetrieveDatasourceResponseBody
|
|
218
218
|
> = z.object({
|
|
219
|
-
id: z.string().default("
|
|
219
|
+
id: z.string().default("01K33MBNM5F3Y37VJ9MXC7J1X0"),
|
|
220
220
|
displayName: z.string(),
|
|
221
221
|
description: z.string().optional(),
|
|
222
222
|
status: RetrieveDatasourceStatus$outboundSchema,
|
|
@@ -355,6 +355,7 @@ export const SearchKnowledgeProvider = {
|
|
|
355
355
|
Litellm: "litellm",
|
|
356
356
|
Openailike: "openailike",
|
|
357
357
|
Cerebras: "cerebras",
|
|
358
|
+
Bytedance: "bytedance",
|
|
358
359
|
} as const;
|
|
359
360
|
export type SearchKnowledgeProvider = ClosedEnum<
|
|
360
361
|
typeof SearchKnowledgeProvider
|
|
@@ -418,6 +419,7 @@ export const SearchKnowledgeKnowledgeProvider = {
|
|
|
418
419
|
Litellm: "litellm",
|
|
419
420
|
Openailike: "openailike",
|
|
420
421
|
Cerebras: "cerebras",
|
|
422
|
+
Bytedance: "bytedance",
|
|
421
423
|
} as const;
|
|
422
424
|
export type SearchKnowledgeKnowledgeProvider = ClosedEnum<
|
|
423
425
|
typeof SearchKnowledgeKnowledgeProvider
|
|
@@ -12,7 +12,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
12
12
|
/**
|
|
13
13
|
* Budget period type
|
|
14
14
|
*/
|
|
15
|
-
export const
|
|
15
|
+
export const Period = {
|
|
16
16
|
Daily: "daily",
|
|
17
17
|
Weekly: "weekly",
|
|
18
18
|
Monthly: "monthly",
|
|
@@ -21,7 +21,7 @@ export const UpdateBudgetPeriod = {
|
|
|
21
21
|
/**
|
|
22
22
|
* Budget period type
|
|
23
23
|
*/
|
|
24
|
-
export type
|
|
24
|
+
export type Period = ClosedEnum<typeof Period>;
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* Budget configuration to update
|
|
@@ -30,7 +30,7 @@ export type Budget = {
|
|
|
30
30
|
/**
|
|
31
31
|
* Budget period type
|
|
32
32
|
*/
|
|
33
|
-
period?:
|
|
33
|
+
period?: Period | undefined;
|
|
34
34
|
/**
|
|
35
35
|
* Budget amount in USD for the specified period
|
|
36
36
|
*/
|
|
@@ -69,7 +69,7 @@ export type UpdateBudgetType = ClosedEnum<typeof UpdateBudgetType>;
|
|
|
69
69
|
/**
|
|
70
70
|
* Budget period type
|
|
71
71
|
*/
|
|
72
|
-
export const
|
|
72
|
+
export const UpdateBudgetPeriod = {
|
|
73
73
|
Daily: "daily",
|
|
74
74
|
Weekly: "weekly",
|
|
75
75
|
Monthly: "monthly",
|
|
@@ -78,9 +78,7 @@ export const UpdateBudgetBudgetsPeriod = {
|
|
|
78
78
|
/**
|
|
79
79
|
* Budget period type
|
|
80
80
|
*/
|
|
81
|
-
export type
|
|
82
|
-
typeof UpdateBudgetBudgetsPeriod
|
|
83
|
-
>;
|
|
81
|
+
export type UpdateBudgetPeriod = ClosedEnum<typeof UpdateBudgetPeriod>;
|
|
84
82
|
|
|
85
83
|
/**
|
|
86
84
|
* Budget configuration
|
|
@@ -89,7 +87,7 @@ export type UpdateBudgetBudget = {
|
|
|
89
87
|
/**
|
|
90
88
|
* Budget period type
|
|
91
89
|
*/
|
|
92
|
-
period:
|
|
90
|
+
period: UpdateBudgetPeriod;
|
|
93
91
|
/**
|
|
94
92
|
* Budget amount in USD for the specified period
|
|
95
93
|
*/
|
|
@@ -155,30 +153,28 @@ export type UpdateBudgetResponseBody = {
|
|
|
155
153
|
};
|
|
156
154
|
|
|
157
155
|
/** @internal */
|
|
158
|
-
export const
|
|
159
|
-
|
|
160
|
-
> = z.nativeEnum(UpdateBudgetPeriod);
|
|
156
|
+
export const Period$inboundSchema: z.ZodNativeEnum<typeof Period> = z
|
|
157
|
+
.nativeEnum(Period);
|
|
161
158
|
|
|
162
159
|
/** @internal */
|
|
163
|
-
export const
|
|
164
|
-
|
|
165
|
-
> = UpdateBudgetPeriod$inboundSchema;
|
|
160
|
+
export const Period$outboundSchema: z.ZodNativeEnum<typeof Period> =
|
|
161
|
+
Period$inboundSchema;
|
|
166
162
|
|
|
167
163
|
/**
|
|
168
164
|
* @internal
|
|
169
165
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
170
166
|
*/
|
|
171
|
-
export namespace
|
|
172
|
-
/** @deprecated use `
|
|
173
|
-
export const inboundSchema =
|
|
174
|
-
/** @deprecated use `
|
|
175
|
-
export const outboundSchema =
|
|
167
|
+
export namespace Period$ {
|
|
168
|
+
/** @deprecated use `Period$inboundSchema` instead. */
|
|
169
|
+
export const inboundSchema = Period$inboundSchema;
|
|
170
|
+
/** @deprecated use `Period$outboundSchema` instead. */
|
|
171
|
+
export const outboundSchema = Period$outboundSchema;
|
|
176
172
|
}
|
|
177
173
|
|
|
178
174
|
/** @internal */
|
|
179
175
|
export const Budget$inboundSchema: z.ZodType<Budget, z.ZodTypeDef, unknown> = z
|
|
180
176
|
.object({
|
|
181
|
-
period:
|
|
177
|
+
period: Period$inboundSchema.optional(),
|
|
182
178
|
amount: z.number().optional(),
|
|
183
179
|
});
|
|
184
180
|
|
|
@@ -194,7 +190,7 @@ export const Budget$outboundSchema: z.ZodType<
|
|
|
194
190
|
z.ZodTypeDef,
|
|
195
191
|
Budget
|
|
196
192
|
> = z.object({
|
|
197
|
-
period:
|
|
193
|
+
period: Period$outboundSchema.optional(),
|
|
198
194
|
amount: z.number().optional(),
|
|
199
195
|
});
|
|
200
196
|
|
|
@@ -377,24 +373,24 @@ export namespace UpdateBudgetType$ {
|
|
|
377
373
|
}
|
|
378
374
|
|
|
379
375
|
/** @internal */
|
|
380
|
-
export const
|
|
381
|
-
typeof
|
|
382
|
-
> = z.nativeEnum(
|
|
376
|
+
export const UpdateBudgetPeriod$inboundSchema: z.ZodNativeEnum<
|
|
377
|
+
typeof UpdateBudgetPeriod
|
|
378
|
+
> = z.nativeEnum(UpdateBudgetPeriod);
|
|
383
379
|
|
|
384
380
|
/** @internal */
|
|
385
|
-
export const
|
|
386
|
-
typeof
|
|
387
|
-
> =
|
|
381
|
+
export const UpdateBudgetPeriod$outboundSchema: z.ZodNativeEnum<
|
|
382
|
+
typeof UpdateBudgetPeriod
|
|
383
|
+
> = UpdateBudgetPeriod$inboundSchema;
|
|
388
384
|
|
|
389
385
|
/**
|
|
390
386
|
* @internal
|
|
391
387
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
392
388
|
*/
|
|
393
|
-
export namespace
|
|
394
|
-
/** @deprecated use `
|
|
395
|
-
export const inboundSchema =
|
|
396
|
-
/** @deprecated use `
|
|
397
|
-
export const outboundSchema =
|
|
389
|
+
export namespace UpdateBudgetPeriod$ {
|
|
390
|
+
/** @deprecated use `UpdateBudgetPeriod$inboundSchema` instead. */
|
|
391
|
+
export const inboundSchema = UpdateBudgetPeriod$inboundSchema;
|
|
392
|
+
/** @deprecated use `UpdateBudgetPeriod$outboundSchema` instead. */
|
|
393
|
+
export const outboundSchema = UpdateBudgetPeriod$outboundSchema;
|
|
398
394
|
}
|
|
399
395
|
|
|
400
396
|
/** @internal */
|
|
@@ -403,7 +399,7 @@ export const UpdateBudgetBudget$inboundSchema: z.ZodType<
|
|
|
403
399
|
z.ZodTypeDef,
|
|
404
400
|
unknown
|
|
405
401
|
> = z.object({
|
|
406
|
-
period:
|
|
402
|
+
period: UpdateBudgetPeriod$inboundSchema,
|
|
407
403
|
amount: z.number(),
|
|
408
404
|
});
|
|
409
405
|
|
|
@@ -419,7 +415,7 @@ export const UpdateBudgetBudget$outboundSchema: z.ZodType<
|
|
|
419
415
|
z.ZodTypeDef,
|
|
420
416
|
UpdateBudgetBudget
|
|
421
417
|
> = z.object({
|
|
422
|
-
period:
|
|
418
|
+
period: UpdateBudgetPeriod$outboundSchema,
|
|
423
419
|
amount: z.number(),
|
|
424
420
|
});
|
|
425
421
|
|
|
@@ -547,7 +543,7 @@ export const UpdateBudgetResponseBody$inboundSchema: z.ZodType<
|
|
|
547
543
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
548
544
|
.optional(),
|
|
549
545
|
updated: z.string().datetime({ offset: true }).default(
|
|
550
|
-
"2025-08-
|
|
546
|
+
"2025-08-20T11:38:10.692Z",
|
|
551
547
|
).transform(v => new Date(v)),
|
|
552
548
|
}).transform((v) => {
|
|
553
549
|
return remap$(v, {
|
|
@@ -585,7 +581,7 @@ export const UpdateBudgetResponseBody$outboundSchema: z.ZodType<
|
|
|
585
581
|
isActive: z.boolean(),
|
|
586
582
|
consumption: z.lazy(() => UpdateBudgetConsumption$outboundSchema).optional(),
|
|
587
583
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
588
|
-
updated: z.date().default(() => new Date("2025-08-
|
|
584
|
+
updated: z.date().default(() => new Date("2025-08-20T11:38:10.692Z"))
|
|
589
585
|
.transform(v => v.toISOString()),
|
|
590
586
|
}).transform((v) => {
|
|
591
587
|
return remap$(v, {
|
|
@@ -244,7 +244,7 @@ export const UpdateContactResponseBody$inboundSchema: z.ZodType<
|
|
|
244
244
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
245
245
|
.optional(),
|
|
246
246
|
updated: z.string().datetime({ offset: true }).default(
|
|
247
|
-
"2025-08-
|
|
247
|
+
"2025-08-20T11:38:10.692Z",
|
|
248
248
|
).transform(v => new Date(v)),
|
|
249
249
|
}).transform((v) => {
|
|
250
250
|
return remap$(v, {
|
|
@@ -282,7 +282,7 @@ export const UpdateContactResponseBody$outboundSchema: z.ZodType<
|
|
|
282
282
|
tags: z.array(z.string()).optional(),
|
|
283
283
|
metadata: z.record(z.any()).optional(),
|
|
284
284
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
285
|
-
updated: z.date().default(() => new Date("2025-08-
|
|
285
|
+
updated: z.date().default(() => new Date("2025-08-20T11:38:10.692Z"))
|
|
286
286
|
.transform(v => v.toISOString()),
|
|
287
287
|
}).transform((v) => {
|
|
288
288
|
return remap$(v, {
|