@orq-ai/node 3.13.2 → 3.13.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.
- package/bin/mcp-server.js +216 -246
- package/bin/mcp-server.js.map +42 -42
- package/docs/sdks/agents/README.md +3 -3
- package/examples/package-lock.json +1 -1
- package/funcs/agentsRetrieveTask.js +2 -2
- package/funcs/agentsRetrieveTask.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/createbudget.js +2 -2
- 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 +28 -28
- package/models/operations/createtool.js +14 -14
- package/models/operations/duplicatetool.js +10 -10
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getagent.d.ts +5 -2
- package/models/operations/getagent.d.ts.map +1 -1
- package/models/operations/getagent.js +4 -12
- package/models/operations/getagent.js.map +1 -1
- package/models/operations/getagenttask.d.ts +2 -2
- package/models/operations/getagenttask.d.ts.map +1 -1
- package/models/operations/getagenttask.js +4 -2
- package/models/operations/getagenttask.js.map +1 -1
- package/models/operations/getalltools.js +10 -10
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listagents.d.ts +5 -2
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +4 -12
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- 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/retrievetool.js +10 -10
- package/models/operations/runagent.d.ts +5 -2
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +4 -12
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +5 -2
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +4 -12
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updatebudget.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 +28 -28
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/packages/orq-rc/README.md +97 -91
- package/packages/orq-rc/docs/sdks/agents/README.md +3 -3
- package/packages/orq-rc/docs/sdks/knowledge/README.md +228 -0
- package/packages/orq-rc/docs/sdks/tools/README.md +14 -16
- 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/agentsRetrieveTask.ts +2 -2
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +170 -0
- package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +170 -0
- package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +171 -0
- package/packages/orq-rc/src/funcs/toolsDelete.ts +2 -2
- package/packages/orq-rc/src/funcs/toolsDuplicate.ts +3 -3
- package/packages/orq-rc/src/funcs/toolsRetrieve.ts +3 -3
- package/packages/orq-rc/src/funcs/toolsUpdate.ts +2 -2
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +7 -1
- package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunks.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/knowledgeGetChunksCount.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunksPaginated.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/toolsDuplicate.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +1 -1
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- 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 +28 -28
- package/packages/orq-rc/src/models/operations/createprompt.ts +8 -0
- package/packages/orq-rc/src/models/operations/createtool.ts +10 -22
- package/packages/orq-rc/src/models/operations/deletechunks.ts +243 -0
- package/packages/orq-rc/src/models/operations/deletetool.ts +6 -6
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +4 -0
- package/packages/orq-rc/src/models/operations/deployments.ts +4 -0
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +23 -15
- 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/getagent.ts +9 -14
- package/packages/orq-rc/src/models/operations/getagenttask.ts +6 -4
- package/packages/orq-rc/src/models/operations/getallprompts.ts +4 -0
- package/packages/orq-rc/src/models/operations/getalltools.ts +10 -10
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getchunkscount.ts +230 -0
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +4 -0
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +4 -0
- package/packages/orq-rc/src/models/operations/index.ts +3 -0
- package/packages/orq-rc/src/models/operations/listagents.ts +9 -14
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +507 -0
- 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 +4 -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/retrievetool.ts +16 -16
- package/packages/orq-rc/src/models/operations/runagent.ts +7 -18
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +7 -18
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
- 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 +28 -28
- package/packages/orq-rc/src/models/operations/updateprompt.ts +8 -0
- package/packages/orq-rc/src/models/operations/updatetool.ts +44 -28
- package/packages/orq-rc/src/sdk/knowledge.ts +45 -0
- package/packages/orq-rc/src/sdk/tools.ts +2 -2
- package/src/funcs/agentsRetrieveTask.ts +2 -2
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createbudget.ts +2 -2
- 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 +28 -28
- package/src/models/operations/createtool.ts +14 -14
- package/src/models/operations/duplicatetool.ts +10 -10
- 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/getagent.ts +9 -14
- package/src/models/operations/getagenttask.ts +6 -4
- package/src/models/operations/getalltools.ts +10 -10
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listagents.ts +9 -14
- package/src/models/operations/listbudgets.ts +2 -2
- 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/retrievetool.ts +10 -10
- package/src/models/operations/runagent.ts +9 -14
- package/src/models/operations/streamrunagent.ts +9 -14
- package/src/models/operations/updatebudget.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 +28 -28
- package/src/models/operations/updatetool.ts +14 -14
|
@@ -6083,7 +6083,7 @@ export const ResponseBody$inboundSchema: z.ZodType<
|
|
|
6083
6083
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
6084
6084
|
.optional(),
|
|
6085
6085
|
updated: z.string().datetime({ offset: true }).default(
|
|
6086
|
-
"2025-10-
|
|
6086
|
+
"2025-10-03T06:58:46.742Z",
|
|
6087
6087
|
).transform(v => new Date(v)),
|
|
6088
6088
|
}).transform((v) => {
|
|
6089
6089
|
return remap$(v, {
|
|
@@ -6147,7 +6147,7 @@ export const ResponseBody$outboundSchema: z.ZodType<
|
|
|
6147
6147
|
createdById: z.string().optional(),
|
|
6148
6148
|
updatedById: z.string().optional(),
|
|
6149
6149
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
6150
|
-
updated: z.date().default(() => new Date("2025-10-
|
|
6150
|
+
updated: z.date().default(() => new Date("2025-10-03T06:58:46.742Z"))
|
|
6151
6151
|
.transform(v => v.toISOString()),
|
|
6152
6152
|
}).transform((v) => {
|
|
6153
6153
|
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("
|
|
754
|
+
_id: z.string().default("01K6MDVPQ61WXTESSKT5543J6K"),
|
|
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("
|
|
798
|
+
id: z.string().default("01K6MDVPQ61WXTESSKT5543J6K"),
|
|
799
799
|
displayName: z.string(),
|
|
800
800
|
description: z.string().optional(),
|
|
801
801
|
status: CreateDatasourceStatus$outboundSchema,
|
|
@@ -3347,8 +3347,8 @@ export const Typescript$inboundSchema: z.ZodType<
|
|
|
3347
3347
|
> = z.object({
|
|
3348
3348
|
_id: z.string(),
|
|
3349
3349
|
description: z.string(),
|
|
3350
|
-
created: z.string().default("2025-10-
|
|
3351
|
-
updated: z.string().default("2025-10-
|
|
3350
|
+
created: z.string().default("2025-10-03T06:58:49.026Z"),
|
|
3351
|
+
updated: z.string().default("2025-10-03T06:58:49.026Z"),
|
|
3352
3352
|
guardrail_config: z.union([
|
|
3353
3353
|
z.lazy(() =>
|
|
3354
3354
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$inboundSchema
|
|
@@ -3391,8 +3391,8 @@ export const Typescript$outboundSchema: z.ZodType<
|
|
|
3391
3391
|
> = z.object({
|
|
3392
3392
|
id: z.string(),
|
|
3393
3393
|
description: z.string(),
|
|
3394
|
-
created: z.string().default("2025-10-
|
|
3395
|
-
updated: z.string().default("2025-10-
|
|
3394
|
+
created: z.string().default("2025-10-03T06:58:49.026Z"),
|
|
3395
|
+
updated: z.string().default("2025-10-03T06:58:49.026Z"),
|
|
3396
3396
|
guardrailConfig: z.union([
|
|
3397
3397
|
z.lazy(() =>
|
|
3398
3398
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$outboundSchema
|
|
@@ -3809,8 +3809,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
|
|
|
3809
3809
|
.object({
|
|
3810
3810
|
_id: z.string(),
|
|
3811
3811
|
description: z.string(),
|
|
3812
|
-
created: z.string().default("2025-10-
|
|
3813
|
-
updated: z.string().default("2025-10-
|
|
3812
|
+
created: z.string().default("2025-10-03T06:58:49.026Z"),
|
|
3813
|
+
updated: z.string().default("2025-10-03T06:58:49.026Z"),
|
|
3814
3814
|
guardrail_config: z.union([
|
|
3815
3815
|
z.lazy(() =>
|
|
3816
3816
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$inboundSchema
|
|
@@ -3856,8 +3856,8 @@ export const Ragas$outboundSchema: z.ZodType<
|
|
|
3856
3856
|
> = z.object({
|
|
3857
3857
|
id: z.string(),
|
|
3858
3858
|
description: z.string(),
|
|
3859
|
-
created: z.string().default("2025-10-
|
|
3860
|
-
updated: z.string().default("2025-10-
|
|
3859
|
+
created: z.string().default("2025-10-03T06:58:49.026Z"),
|
|
3860
|
+
updated: z.string().default("2025-10-03T06:58:49.026Z"),
|
|
3861
3861
|
guardrailConfig: z.union([
|
|
3862
3862
|
z.lazy(() =>
|
|
3863
3863
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$outboundSchema
|
|
@@ -7281,8 +7281,8 @@ export const ResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
7281
7281
|
> = z.object({
|
|
7282
7282
|
_id: z.string(),
|
|
7283
7283
|
description: z.string(),
|
|
7284
|
-
created: z.string().default("2025-10-
|
|
7285
|
-
updated: z.string().default("2025-10-
|
|
7284
|
+
created: z.string().default("2025-10-03T06:58:49.026Z"),
|
|
7285
|
+
updated: z.string().default("2025-10-03T06:58:49.026Z"),
|
|
7286
7286
|
guardrail_config: z.union([
|
|
7287
7287
|
z.lazy(() =>
|
|
7288
7288
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$inboundSchema
|
|
@@ -7396,8 +7396,8 @@ export const ResponseBodyFunction$outboundSchema: z.ZodType<
|
|
|
7396
7396
|
> = z.object({
|
|
7397
7397
|
id: z.string(),
|
|
7398
7398
|
description: z.string(),
|
|
7399
|
-
created: z.string().default("2025-10-
|
|
7400
|
-
updated: z.string().default("2025-10-
|
|
7399
|
+
created: z.string().default("2025-10-03T06:58:49.026Z"),
|
|
7400
|
+
updated: z.string().default("2025-10-03T06:58:49.026Z"),
|
|
7401
7401
|
guardrailConfig: z.union([
|
|
7402
7402
|
z.lazy(() =>
|
|
7403
7403
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$outboundSchema
|
|
@@ -7836,8 +7836,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
7836
7836
|
> = z.object({
|
|
7837
7837
|
_id: z.string(),
|
|
7838
7838
|
description: z.string(),
|
|
7839
|
-
created: z.string().default("2025-10-
|
|
7840
|
-
updated: z.string().default("2025-10-
|
|
7839
|
+
created: z.string().default("2025-10-03T06:58:49.026Z"),
|
|
7840
|
+
updated: z.string().default("2025-10-03T06:58:49.026Z"),
|
|
7841
7841
|
guardrail_config: z.union([
|
|
7842
7842
|
z.lazy(() =>
|
|
7843
7843
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
|
|
@@ -7879,8 +7879,8 @@ export const ResponseBodyPython$outboundSchema: z.ZodType<
|
|
|
7879
7879
|
> = z.object({
|
|
7880
7880
|
id: z.string(),
|
|
7881
7881
|
description: z.string(),
|
|
7882
|
-
created: z.string().default("2025-10-
|
|
7883
|
-
updated: z.string().default("2025-10-
|
|
7882
|
+
created: z.string().default("2025-10-03T06:58:49.026Z"),
|
|
7883
|
+
updated: z.string().default("2025-10-03T06:58:49.026Z"),
|
|
7884
7884
|
guardrailConfig: z.union([
|
|
7885
7885
|
z.lazy(() =>
|
|
7886
7886
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema
|
|
@@ -8293,8 +8293,8 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
8293
8293
|
> = z.object({
|
|
8294
8294
|
_id: z.string(),
|
|
8295
8295
|
description: z.string(),
|
|
8296
|
-
created: z.string().default("2025-10-
|
|
8297
|
-
updated: z.string().default("2025-10-
|
|
8296
|
+
created: z.string().default("2025-10-03T06:58:49.026Z"),
|
|
8297
|
+
updated: z.string().default("2025-10-03T06:58:49.026Z"),
|
|
8298
8298
|
guardrail_config: z.union([
|
|
8299
8299
|
z.lazy(() =>
|
|
8300
8300
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
|
|
@@ -8342,8 +8342,8 @@ export const ResponseBodyHTTP$outboundSchema: z.ZodType<
|
|
|
8342
8342
|
> = z.object({
|
|
8343
8343
|
id: z.string(),
|
|
8344
8344
|
description: z.string(),
|
|
8345
|
-
created: z.string().default("2025-10-
|
|
8346
|
-
updated: z.string().default("2025-10-
|
|
8345
|
+
created: z.string().default("2025-10-03T06:58:49.026Z"),
|
|
8346
|
+
updated: z.string().default("2025-10-03T06:58:49.026Z"),
|
|
8347
8347
|
guardrailConfig: z.union([
|
|
8348
8348
|
z.lazy(() =>
|
|
8349
8349
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema
|
|
@@ -8720,8 +8720,8 @@ export const ResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
8720
8720
|
> = z.object({
|
|
8721
8721
|
_id: z.string(),
|
|
8722
8722
|
description: z.string(),
|
|
8723
|
-
created: z.string().default("2025-10-
|
|
8724
|
-
updated: z.string().default("2025-10-
|
|
8723
|
+
created: z.string().default("2025-10-03T06:58:49.026Z"),
|
|
8724
|
+
updated: z.string().default("2025-10-03T06:58:49.026Z"),
|
|
8725
8725
|
guardrail_config: z.union([
|
|
8726
8726
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
8727
8727
|
z.lazy(() =>
|
|
@@ -8761,8 +8761,8 @@ export const ResponseBodyJSON$outboundSchema: z.ZodType<
|
|
|
8761
8761
|
> = z.object({
|
|
8762
8762
|
id: z.string(),
|
|
8763
8763
|
description: z.string(),
|
|
8764
|
-
created: z.string().default("2025-10-
|
|
8765
|
-
updated: z.string().default("2025-10-
|
|
8764
|
+
created: z.string().default("2025-10-03T06:58:49.026Z"),
|
|
8765
|
+
updated: z.string().default("2025-10-03T06:58:49.026Z"),
|
|
8766
8766
|
guardrailConfig: z.union([
|
|
8767
8767
|
z.lazy(() =>
|
|
8768
8768
|
CreateEvalGuardrailConfigEvalsResponse200Number$outboundSchema
|
|
@@ -9117,8 +9117,8 @@ export const ResponseBodyLLM$inboundSchema: z.ZodType<
|
|
|
9117
9117
|
> = z.object({
|
|
9118
9118
|
_id: z.string(),
|
|
9119
9119
|
description: z.string(),
|
|
9120
|
-
created: z.string().default("2025-10-
|
|
9121
|
-
updated: z.string().default("2025-10-
|
|
9120
|
+
created: z.string().default("2025-10-03T06:58:49.026Z"),
|
|
9121
|
+
updated: z.string().default("2025-10-03T06:58:49.026Z"),
|
|
9122
9122
|
guardrail_config: z.union([
|
|
9123
9123
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
9124
9124
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -9158,8 +9158,8 @@ export const ResponseBodyLLM$outboundSchema: z.ZodType<
|
|
|
9158
9158
|
> = z.object({
|
|
9159
9159
|
id: z.string(),
|
|
9160
9160
|
description: z.string(),
|
|
9161
|
-
created: z.string().default("2025-10-
|
|
9162
|
-
updated: z.string().default("2025-10-
|
|
9161
|
+
created: z.string().default("2025-10-03T06:58:49.026Z"),
|
|
9162
|
+
updated: z.string().default("2025-10-03T06:58:49.026Z"),
|
|
9163
9163
|
guardrailConfig: z.union([
|
|
9164
9164
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
9165
9165
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema),
|
|
@@ -94,6 +94,7 @@ export type OneType = ClosedEnum<typeof OneType>;
|
|
|
94
94
|
|
|
95
95
|
export type JsonSchema = {
|
|
96
96
|
name: string;
|
|
97
|
+
description?: string | undefined;
|
|
97
98
|
strict?: boolean | undefined;
|
|
98
99
|
schema: { [k: string]: any };
|
|
99
100
|
};
|
|
@@ -625,6 +626,7 @@ export type CreatePrompt1PromptsResponseType = ClosedEnum<
|
|
|
625
626
|
|
|
626
627
|
export type CreatePrompt1JsonSchema = {
|
|
627
628
|
name: string;
|
|
629
|
+
description?: string | undefined;
|
|
628
630
|
strict?: boolean | undefined;
|
|
629
631
|
schema: { [k: string]: any };
|
|
630
632
|
};
|
|
@@ -1359,6 +1361,7 @@ export const JsonSchema$inboundSchema: z.ZodType<
|
|
|
1359
1361
|
unknown
|
|
1360
1362
|
> = z.object({
|
|
1361
1363
|
name: z.string(),
|
|
1364
|
+
description: z.string().optional(),
|
|
1362
1365
|
strict: z.boolean().optional(),
|
|
1363
1366
|
schema: z.record(z.any()),
|
|
1364
1367
|
});
|
|
@@ -1366,6 +1369,7 @@ export const JsonSchema$inboundSchema: z.ZodType<
|
|
|
1366
1369
|
/** @internal */
|
|
1367
1370
|
export type JsonSchema$Outbound = {
|
|
1368
1371
|
name: string;
|
|
1372
|
+
description?: string | undefined;
|
|
1369
1373
|
strict?: boolean | undefined;
|
|
1370
1374
|
schema: { [k: string]: any };
|
|
1371
1375
|
};
|
|
@@ -1377,6 +1381,7 @@ export const JsonSchema$outboundSchema: z.ZodType<
|
|
|
1377
1381
|
JsonSchema
|
|
1378
1382
|
> = z.object({
|
|
1379
1383
|
name: z.string(),
|
|
1384
|
+
description: z.string().optional(),
|
|
1380
1385
|
strict: z.boolean().optional(),
|
|
1381
1386
|
schema: z.record(z.any()),
|
|
1382
1387
|
});
|
|
@@ -3127,6 +3132,7 @@ export const CreatePrompt1JsonSchema$inboundSchema: z.ZodType<
|
|
|
3127
3132
|
unknown
|
|
3128
3133
|
> = z.object({
|
|
3129
3134
|
name: z.string(),
|
|
3135
|
+
description: z.string().optional(),
|
|
3130
3136
|
strict: z.boolean().optional(),
|
|
3131
3137
|
schema: z.record(z.any()),
|
|
3132
3138
|
});
|
|
@@ -3134,6 +3140,7 @@ export const CreatePrompt1JsonSchema$inboundSchema: z.ZodType<
|
|
|
3134
3140
|
/** @internal */
|
|
3135
3141
|
export type CreatePrompt1JsonSchema$Outbound = {
|
|
3136
3142
|
name: string;
|
|
3143
|
+
description?: string | undefined;
|
|
3137
3144
|
strict?: boolean | undefined;
|
|
3138
3145
|
schema: { [k: string]: any };
|
|
3139
3146
|
};
|
|
@@ -3145,6 +3152,7 @@ export const CreatePrompt1JsonSchema$outboundSchema: z.ZodType<
|
|
|
3145
3152
|
CreatePrompt1JsonSchema
|
|
3146
3153
|
> = z.object({
|
|
3147
3154
|
name: z.string(),
|
|
3155
|
+
description: z.string().optional(),
|
|
3148
3156
|
strict: z.boolean().optional(),
|
|
3149
3157
|
schema: z.record(z.any()),
|
|
3150
3158
|
});
|
|
@@ -294,7 +294,6 @@ export type CreateToolRequestBodyHttp = {
|
|
|
294
294
|
};
|
|
295
295
|
|
|
296
296
|
export type RequestBody3 = {
|
|
297
|
-
id?: string | undefined;
|
|
298
297
|
/**
|
|
299
298
|
* The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
|
|
300
299
|
*/
|
|
@@ -362,7 +361,6 @@ export type RequestBodyJsonSchema = {
|
|
|
362
361
|
};
|
|
363
362
|
|
|
364
363
|
export type RequestBody2 = {
|
|
365
|
-
id?: string | undefined;
|
|
366
364
|
/**
|
|
367
365
|
* The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
|
|
368
366
|
*/
|
|
@@ -1881,7 +1879,6 @@ export const RequestBody3$inboundSchema: z.ZodType<
|
|
|
1881
1879
|
z.ZodTypeDef,
|
|
1882
1880
|
unknown
|
|
1883
1881
|
> = z.object({
|
|
1884
|
-
_id: z.string().default("01K6J0GC55FW65DMHZY310JS69"),
|
|
1885
1882
|
path: z.string(),
|
|
1886
1883
|
key: z.string(),
|
|
1887
1884
|
display_name: z.string(),
|
|
@@ -1891,14 +1888,12 @@ export const RequestBody3$inboundSchema: z.ZodType<
|
|
|
1891
1888
|
http: z.lazy(() => CreateToolRequestBodyHttp$inboundSchema),
|
|
1892
1889
|
}).transform((v) => {
|
|
1893
1890
|
return remap$(v, {
|
|
1894
|
-
"_id": "id",
|
|
1895
1891
|
"display_name": "displayName",
|
|
1896
1892
|
});
|
|
1897
1893
|
});
|
|
1898
1894
|
|
|
1899
1895
|
/** @internal */
|
|
1900
1896
|
export type RequestBody3$Outbound = {
|
|
1901
|
-
_id: string;
|
|
1902
1897
|
path: string;
|
|
1903
1898
|
key: string;
|
|
1904
1899
|
display_name: string;
|
|
@@ -1914,7 +1909,6 @@ export const RequestBody3$outboundSchema: z.ZodType<
|
|
|
1914
1909
|
z.ZodTypeDef,
|
|
1915
1910
|
RequestBody3
|
|
1916
1911
|
> = z.object({
|
|
1917
|
-
id: z.string().default("01K6J0GC55FW65DMHZY310JS69"),
|
|
1918
1912
|
path: z.string(),
|
|
1919
1913
|
key: z.string(),
|
|
1920
1914
|
displayName: z.string(),
|
|
@@ -1924,7 +1918,6 @@ export const RequestBody3$outboundSchema: z.ZodType<
|
|
|
1924
1918
|
http: z.lazy(() => CreateToolRequestBodyHttp$outboundSchema),
|
|
1925
1919
|
}).transform((v) => {
|
|
1926
1920
|
return remap$(v, {
|
|
1927
|
-
id: "_id",
|
|
1928
1921
|
displayName: "display_name",
|
|
1929
1922
|
});
|
|
1930
1923
|
});
|
|
@@ -2067,7 +2060,6 @@ export const RequestBody2$inboundSchema: z.ZodType<
|
|
|
2067
2060
|
z.ZodTypeDef,
|
|
2068
2061
|
unknown
|
|
2069
2062
|
> = z.object({
|
|
2070
|
-
_id: z.string().default("01K6J0GC55975667ZMWAG37NKA"),
|
|
2071
2063
|
path: z.string(),
|
|
2072
2064
|
key: z.string(),
|
|
2073
2065
|
display_name: z.string(),
|
|
@@ -2077,7 +2069,6 @@ export const RequestBody2$inboundSchema: z.ZodType<
|
|
|
2077
2069
|
json_schema: z.lazy(() => RequestBodyJsonSchema$inboundSchema),
|
|
2078
2070
|
}).transform((v) => {
|
|
2079
2071
|
return remap$(v, {
|
|
2080
|
-
"_id": "id",
|
|
2081
2072
|
"display_name": "displayName",
|
|
2082
2073
|
"json_schema": "jsonSchema",
|
|
2083
2074
|
});
|
|
@@ -2085,7 +2076,6 @@ export const RequestBody2$inboundSchema: z.ZodType<
|
|
|
2085
2076
|
|
|
2086
2077
|
/** @internal */
|
|
2087
2078
|
export type RequestBody2$Outbound = {
|
|
2088
|
-
_id: string;
|
|
2089
2079
|
path: string;
|
|
2090
2080
|
key: string;
|
|
2091
2081
|
display_name: string;
|
|
@@ -2101,7 +2091,6 @@ export const RequestBody2$outboundSchema: z.ZodType<
|
|
|
2101
2091
|
z.ZodTypeDef,
|
|
2102
2092
|
RequestBody2
|
|
2103
2093
|
> = z.object({
|
|
2104
|
-
id: z.string().default("01K6J0GC55975667ZMWAG37NKA"),
|
|
2105
2094
|
path: z.string(),
|
|
2106
2095
|
key: z.string(),
|
|
2107
2096
|
displayName: z.string(),
|
|
@@ -2111,7 +2100,6 @@ export const RequestBody2$outboundSchema: z.ZodType<
|
|
|
2111
2100
|
jsonSchema: z.lazy(() => RequestBodyJsonSchema$outboundSchema),
|
|
2112
2101
|
}).transform((v) => {
|
|
2113
2102
|
return remap$(v, {
|
|
2114
|
-
id: "_id",
|
|
2115
2103
|
displayName: "display_name",
|
|
2116
2104
|
jsonSchema: "json_schema",
|
|
2117
2105
|
});
|
|
@@ -2525,7 +2513,7 @@ export const ResponseBody5$inboundSchema: z.ZodType<
|
|
|
2525
2513
|
z.ZodTypeDef,
|
|
2526
2514
|
unknown
|
|
2527
2515
|
> = z.object({
|
|
2528
|
-
_id: z.string().default("
|
|
2516
|
+
_id: z.string().default("01K6MDVPTJG0EPA7CJZRJDRSB9"),
|
|
2529
2517
|
path: z.string(),
|
|
2530
2518
|
key: z.string(),
|
|
2531
2519
|
display_name: z.string(),
|
|
@@ -2580,7 +2568,7 @@ export const ResponseBody5$outboundSchema: z.ZodType<
|
|
|
2580
2568
|
z.ZodTypeDef,
|
|
2581
2569
|
ResponseBody5
|
|
2582
2570
|
> = z.object({
|
|
2583
|
-
id: z.string().default("
|
|
2571
|
+
id: z.string().default("01K6MDVPTJG0EPA7CJZRJDRSB9"),
|
|
2584
2572
|
path: z.string(),
|
|
2585
2573
|
key: z.string(),
|
|
2586
2574
|
displayName: z.string(),
|
|
@@ -2939,7 +2927,7 @@ export const ResponseBody4$inboundSchema: z.ZodType<
|
|
|
2939
2927
|
z.ZodTypeDef,
|
|
2940
2928
|
unknown
|
|
2941
2929
|
> = z.object({
|
|
2942
|
-
_id: z.string().default("
|
|
2930
|
+
_id: z.string().default("01K6MDVPTJNEFATQM39GEGZV33"),
|
|
2943
2931
|
path: z.string(),
|
|
2944
2932
|
key: z.string(),
|
|
2945
2933
|
display_name: z.string(),
|
|
@@ -2993,7 +2981,7 @@ export const ResponseBody4$outboundSchema: z.ZodType<
|
|
|
2993
2981
|
z.ZodTypeDef,
|
|
2994
2982
|
ResponseBody4
|
|
2995
2983
|
> = z.object({
|
|
2996
|
-
id: z.string().default("
|
|
2984
|
+
id: z.string().default("01K6MDVPTJNEFATQM39GEGZV33"),
|
|
2997
2985
|
path: z.string(),
|
|
2998
2986
|
key: z.string(),
|
|
2999
2987
|
displayName: z.string(),
|
|
@@ -3391,7 +3379,7 @@ export const ResponseBody3$inboundSchema: z.ZodType<
|
|
|
3391
3379
|
z.ZodTypeDef,
|
|
3392
3380
|
unknown
|
|
3393
3381
|
> = z.object({
|
|
3394
|
-
_id: z.string().default("
|
|
3382
|
+
_id: z.string().default("01K6MDVPTHSHS0YF9M2Y6KXAVS"),
|
|
3395
3383
|
path: z.string(),
|
|
3396
3384
|
key: z.string(),
|
|
3397
3385
|
display_name: z.string(),
|
|
@@ -3443,7 +3431,7 @@ export const ResponseBody3$outboundSchema: z.ZodType<
|
|
|
3443
3431
|
z.ZodTypeDef,
|
|
3444
3432
|
ResponseBody3
|
|
3445
3433
|
> = z.object({
|
|
3446
|
-
id: z.string().default("
|
|
3434
|
+
id: z.string().default("01K6MDVPTHSHS0YF9M2Y6KXAVS"),
|
|
3447
3435
|
path: z.string(),
|
|
3448
3436
|
key: z.string(),
|
|
3449
3437
|
displayName: z.string(),
|
|
@@ -3608,7 +3596,7 @@ export const ResponseBody2$inboundSchema: z.ZodType<
|
|
|
3608
3596
|
z.ZodTypeDef,
|
|
3609
3597
|
unknown
|
|
3610
3598
|
> = z.object({
|
|
3611
|
-
_id: z.string().default("
|
|
3599
|
+
_id: z.string().default("01K6MDVPTH2ABM3Y5ACR3ZXJ4Z"),
|
|
3612
3600
|
path: z.string(),
|
|
3613
3601
|
key: z.string(),
|
|
3614
3602
|
display_name: z.string(),
|
|
@@ -3661,7 +3649,7 @@ export const ResponseBody2$outboundSchema: z.ZodType<
|
|
|
3661
3649
|
z.ZodTypeDef,
|
|
3662
3650
|
ResponseBody2
|
|
3663
3651
|
> = z.object({
|
|
3664
|
-
id: z.string().default("
|
|
3652
|
+
id: z.string().default("01K6MDVPTH2ABM3Y5ACR3ZXJ4Z"),
|
|
3665
3653
|
path: z.string(),
|
|
3666
3654
|
key: z.string(),
|
|
3667
3655
|
displayName: z.string(),
|
|
@@ -3829,7 +3817,7 @@ export const ResponseBody1$inboundSchema: z.ZodType<
|
|
|
3829
3817
|
z.ZodTypeDef,
|
|
3830
3818
|
unknown
|
|
3831
3819
|
> = z.object({
|
|
3832
|
-
_id: z.string().default("
|
|
3820
|
+
_id: z.string().default("01K6MDVPTGT5WJ0ZVKQSR20NGA"),
|
|
3833
3821
|
path: z.string(),
|
|
3834
3822
|
key: z.string(),
|
|
3835
3823
|
display_name: z.string(),
|
|
@@ -3881,7 +3869,7 @@ export const ResponseBody1$outboundSchema: z.ZodType<
|
|
|
3881
3869
|
z.ZodTypeDef,
|
|
3882
3870
|
ResponseBody1
|
|
3883
3871
|
> = z.object({
|
|
3884
|
-
id: z.string().default("
|
|
3872
|
+
id: z.string().default("01K6MDVPTGT5WJ0ZVKQSR20NGA"),
|
|
3885
3873
|
path: z.string(),
|
|
3886
3874
|
key: z.string(),
|
|
3887
3875
|
displayName: z.string(),
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type DeleteChunksRequestBody = {
|
|
12
|
+
/**
|
|
13
|
+
* Array of chunk IDs to delete
|
|
14
|
+
*/
|
|
15
|
+
chunkIds: Array<string>;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export type DeleteChunksRequest = {
|
|
19
|
+
/**
|
|
20
|
+
* The unique identifier of the knowledge base
|
|
21
|
+
*/
|
|
22
|
+
knowledgeId: string;
|
|
23
|
+
/**
|
|
24
|
+
* The unique identifier of the datasource.
|
|
25
|
+
*/
|
|
26
|
+
datasourceId: string;
|
|
27
|
+
requestBody?: DeleteChunksRequestBody | undefined;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Chunks deletion result
|
|
32
|
+
*/
|
|
33
|
+
export type DeleteChunksResponseBody = {
|
|
34
|
+
/**
|
|
35
|
+
* Number of chunks successfully deleted
|
|
36
|
+
*/
|
|
37
|
+
deletedCount: number;
|
|
38
|
+
/**
|
|
39
|
+
* Array of chunk IDs that failed to delete
|
|
40
|
+
*/
|
|
41
|
+
failedIds?: Array<string> | undefined;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const DeleteChunksRequestBody$inboundSchema: z.ZodType<
|
|
46
|
+
DeleteChunksRequestBody,
|
|
47
|
+
z.ZodTypeDef,
|
|
48
|
+
unknown
|
|
49
|
+
> = z.object({
|
|
50
|
+
chunk_ids: z.array(z.string()),
|
|
51
|
+
}).transform((v) => {
|
|
52
|
+
return remap$(v, {
|
|
53
|
+
"chunk_ids": "chunkIds",
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export type DeleteChunksRequestBody$Outbound = {
|
|
59
|
+
chunk_ids: Array<string>;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
/** @internal */
|
|
63
|
+
export const DeleteChunksRequestBody$outboundSchema: z.ZodType<
|
|
64
|
+
DeleteChunksRequestBody$Outbound,
|
|
65
|
+
z.ZodTypeDef,
|
|
66
|
+
DeleteChunksRequestBody
|
|
67
|
+
> = z.object({
|
|
68
|
+
chunkIds: z.array(z.string()),
|
|
69
|
+
}).transform((v) => {
|
|
70
|
+
return remap$(v, {
|
|
71
|
+
chunkIds: "chunk_ids",
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
78
|
+
*/
|
|
79
|
+
export namespace DeleteChunksRequestBody$ {
|
|
80
|
+
/** @deprecated use `DeleteChunksRequestBody$inboundSchema` instead. */
|
|
81
|
+
export const inboundSchema = DeleteChunksRequestBody$inboundSchema;
|
|
82
|
+
/** @deprecated use `DeleteChunksRequestBody$outboundSchema` instead. */
|
|
83
|
+
export const outboundSchema = DeleteChunksRequestBody$outboundSchema;
|
|
84
|
+
/** @deprecated use `DeleteChunksRequestBody$Outbound` instead. */
|
|
85
|
+
export type Outbound = DeleteChunksRequestBody$Outbound;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function deleteChunksRequestBodyToJSON(
|
|
89
|
+
deleteChunksRequestBody: DeleteChunksRequestBody,
|
|
90
|
+
): string {
|
|
91
|
+
return JSON.stringify(
|
|
92
|
+
DeleteChunksRequestBody$outboundSchema.parse(deleteChunksRequestBody),
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function deleteChunksRequestBodyFromJSON(
|
|
97
|
+
jsonString: string,
|
|
98
|
+
): SafeParseResult<DeleteChunksRequestBody, SDKValidationError> {
|
|
99
|
+
return safeParse(
|
|
100
|
+
jsonString,
|
|
101
|
+
(x) => DeleteChunksRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
102
|
+
`Failed to parse 'DeleteChunksRequestBody' from JSON`,
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/** @internal */
|
|
107
|
+
export const DeleteChunksRequest$inboundSchema: z.ZodType<
|
|
108
|
+
DeleteChunksRequest,
|
|
109
|
+
z.ZodTypeDef,
|
|
110
|
+
unknown
|
|
111
|
+
> = z.object({
|
|
112
|
+
knowledge_id: z.string(),
|
|
113
|
+
datasource_id: z.string(),
|
|
114
|
+
RequestBody: z.lazy(() => DeleteChunksRequestBody$inboundSchema).optional(),
|
|
115
|
+
}).transform((v) => {
|
|
116
|
+
return remap$(v, {
|
|
117
|
+
"knowledge_id": "knowledgeId",
|
|
118
|
+
"datasource_id": "datasourceId",
|
|
119
|
+
"RequestBody": "requestBody",
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
/** @internal */
|
|
124
|
+
export type DeleteChunksRequest$Outbound = {
|
|
125
|
+
knowledge_id: string;
|
|
126
|
+
datasource_id: string;
|
|
127
|
+
RequestBody?: DeleteChunksRequestBody$Outbound | undefined;
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
/** @internal */
|
|
131
|
+
export const DeleteChunksRequest$outboundSchema: z.ZodType<
|
|
132
|
+
DeleteChunksRequest$Outbound,
|
|
133
|
+
z.ZodTypeDef,
|
|
134
|
+
DeleteChunksRequest
|
|
135
|
+
> = z.object({
|
|
136
|
+
knowledgeId: z.string(),
|
|
137
|
+
datasourceId: z.string(),
|
|
138
|
+
requestBody: z.lazy(() => DeleteChunksRequestBody$outboundSchema).optional(),
|
|
139
|
+
}).transform((v) => {
|
|
140
|
+
return remap$(v, {
|
|
141
|
+
knowledgeId: "knowledge_id",
|
|
142
|
+
datasourceId: "datasource_id",
|
|
143
|
+
requestBody: "RequestBody",
|
|
144
|
+
});
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* @internal
|
|
149
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
150
|
+
*/
|
|
151
|
+
export namespace DeleteChunksRequest$ {
|
|
152
|
+
/** @deprecated use `DeleteChunksRequest$inboundSchema` instead. */
|
|
153
|
+
export const inboundSchema = DeleteChunksRequest$inboundSchema;
|
|
154
|
+
/** @deprecated use `DeleteChunksRequest$outboundSchema` instead. */
|
|
155
|
+
export const outboundSchema = DeleteChunksRequest$outboundSchema;
|
|
156
|
+
/** @deprecated use `DeleteChunksRequest$Outbound` instead. */
|
|
157
|
+
export type Outbound = DeleteChunksRequest$Outbound;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export function deleteChunksRequestToJSON(
|
|
161
|
+
deleteChunksRequest: DeleteChunksRequest,
|
|
162
|
+
): string {
|
|
163
|
+
return JSON.stringify(
|
|
164
|
+
DeleteChunksRequest$outboundSchema.parse(deleteChunksRequest),
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export function deleteChunksRequestFromJSON(
|
|
169
|
+
jsonString: string,
|
|
170
|
+
): SafeParseResult<DeleteChunksRequest, SDKValidationError> {
|
|
171
|
+
return safeParse(
|
|
172
|
+
jsonString,
|
|
173
|
+
(x) => DeleteChunksRequest$inboundSchema.parse(JSON.parse(x)),
|
|
174
|
+
`Failed to parse 'DeleteChunksRequest' from JSON`,
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/** @internal */
|
|
179
|
+
export const DeleteChunksResponseBody$inboundSchema: z.ZodType<
|
|
180
|
+
DeleteChunksResponseBody,
|
|
181
|
+
z.ZodTypeDef,
|
|
182
|
+
unknown
|
|
183
|
+
> = z.object({
|
|
184
|
+
deleted_count: z.number(),
|
|
185
|
+
failed_ids: z.array(z.string()).optional(),
|
|
186
|
+
}).transform((v) => {
|
|
187
|
+
return remap$(v, {
|
|
188
|
+
"deleted_count": "deletedCount",
|
|
189
|
+
"failed_ids": "failedIds",
|
|
190
|
+
});
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
/** @internal */
|
|
194
|
+
export type DeleteChunksResponseBody$Outbound = {
|
|
195
|
+
deleted_count: number;
|
|
196
|
+
failed_ids?: Array<string> | undefined;
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
/** @internal */
|
|
200
|
+
export const DeleteChunksResponseBody$outboundSchema: z.ZodType<
|
|
201
|
+
DeleteChunksResponseBody$Outbound,
|
|
202
|
+
z.ZodTypeDef,
|
|
203
|
+
DeleteChunksResponseBody
|
|
204
|
+
> = z.object({
|
|
205
|
+
deletedCount: z.number(),
|
|
206
|
+
failedIds: z.array(z.string()).optional(),
|
|
207
|
+
}).transform((v) => {
|
|
208
|
+
return remap$(v, {
|
|
209
|
+
deletedCount: "deleted_count",
|
|
210
|
+
failedIds: "failed_ids",
|
|
211
|
+
});
|
|
212
|
+
});
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* @internal
|
|
216
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
217
|
+
*/
|
|
218
|
+
export namespace DeleteChunksResponseBody$ {
|
|
219
|
+
/** @deprecated use `DeleteChunksResponseBody$inboundSchema` instead. */
|
|
220
|
+
export const inboundSchema = DeleteChunksResponseBody$inboundSchema;
|
|
221
|
+
/** @deprecated use `DeleteChunksResponseBody$outboundSchema` instead. */
|
|
222
|
+
export const outboundSchema = DeleteChunksResponseBody$outboundSchema;
|
|
223
|
+
/** @deprecated use `DeleteChunksResponseBody$Outbound` instead. */
|
|
224
|
+
export type Outbound = DeleteChunksResponseBody$Outbound;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export function deleteChunksResponseBodyToJSON(
|
|
228
|
+
deleteChunksResponseBody: DeleteChunksResponseBody,
|
|
229
|
+
): string {
|
|
230
|
+
return JSON.stringify(
|
|
231
|
+
DeleteChunksResponseBody$outboundSchema.parse(deleteChunksResponseBody),
|
|
232
|
+
);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export function deleteChunksResponseBodyFromJSON(
|
|
236
|
+
jsonString: string,
|
|
237
|
+
): SafeParseResult<DeleteChunksResponseBody, SDKValidationError> {
|
|
238
|
+
return safeParse(
|
|
239
|
+
jsonString,
|
|
240
|
+
(x) => DeleteChunksResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
241
|
+
`Failed to parse 'DeleteChunksResponseBody' from JSON`,
|
|
242
|
+
);
|
|
243
|
+
}
|