@orq-ai/node 4.9.16 → 4.9.17
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/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createcontact.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +1 -1
- package/packages/orq-rc/src/funcs/identitiesCreate.ts +10 -15
- package/packages/orq-rc/src/funcs/identitiesDelete.ts +7 -16
- package/packages/orq-rc/src/funcs/identitiesList.ts +6 -5
- package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +6 -18
- package/packages/orq-rc/src/funcs/identitiesUpdate.ts +9 -15
- package/packages/orq-rc/src/funcs/{remoteconfigsRetrieve.ts → modelsList.ts} +14 -33
- package/packages/orq-rc/src/funcs/projectsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/projectsDelete.ts +3 -0
- package/packages/orq-rc/src/funcs/projectsList.ts +1 -1
- package/packages/orq-rc/src/funcs/{contactsCreate.ts → reportingQuery.ts} +13 -13
- package/packages/orq-rc/src/funcs/skillsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/skillsDelete.ts +3 -0
- package/packages/orq-rc/src/funcs/skillsGet.ts +1 -1
- package/packages/orq-rc/src/funcs/skillsList.ts +1 -1
- package/packages/orq-rc/src/funcs/skillsUpdate.ts +1 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/models/components/createidentityrequest.ts +76 -0
- package/packages/orq-rc/src/models/components/createidentityresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/createprojectrequest.ts +6 -0
- package/packages/orq-rc/src/models/components/createprojectresponse.ts +3 -0
- package/packages/orq-rc/src/models/components/createskillrequest.ts +18 -0
- package/packages/orq-rc/src/models/components/createskillresponse.ts +3 -0
- package/packages/orq-rc/src/models/components/datapoint.ts +60 -0
- package/packages/orq-rc/src/models/components/deleteidentityresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/file.ts +0 -3
- package/packages/orq-rc/src/models/components/filter.ts +137 -0
- package/packages/orq-rc/src/models/components/getprojectresponse.ts +3 -0
- package/packages/orq-rc/src/models/components/getskillresponse.ts +3 -0
- package/packages/orq-rc/src/models/components/identity.ts +83 -0
- package/packages/orq-rc/src/models/components/identitymetrics.ts +45 -0
- package/packages/orq-rc/src/models/components/index.ts +16 -0
- package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +17 -10
- package/packages/orq-rc/src/models/components/listidentitiesresponse.ts +41 -0
- package/packages/orq-rc/src/models/components/listprojectsresponse.ts +12 -0
- package/packages/orq-rc/src/models/components/listskillsresponse.ts +12 -0
- package/packages/orq-rc/src/models/components/modelref.ts +6 -0
- package/packages/orq-rc/src/models/components/project.ts +42 -3
- package/packages/orq-rc/src/models/components/publicmodelentry.ts +70 -0
- package/packages/orq-rc/src/models/components/queryreportrequest.ts +237 -0
- package/packages/orq-rc/src/models/components/queryreportresponse.ts +99 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/responsemeta.ts +103 -0
- package/packages/orq-rc/src/models/components/retrieveidentityresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/skill.ts +37 -3
- package/packages/orq-rc/src/models/components/totals.ts +34 -0
- package/packages/orq-rc/src/models/components/updateidentityrequest.ts +75 -0
- package/packages/orq-rc/src/models/components/updateidentityresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/updateprojectrequest.ts +12 -0
- package/packages/orq-rc/src/models/components/updateprojectresponse.ts +3 -0
- package/packages/orq-rc/src/models/components/updateskillrequest.ts +21 -0
- package/packages/orq-rc/src/models/components/updateskillresponse.ts +3 -0
- package/packages/orq-rc/src/models/errors/index.ts +0 -3
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +3 -3
- package/packages/orq-rc/src/models/operations/createannotation.ts +7 -11
- package/packages/orq-rc/src/models/operations/createdataset.ts +4 -4
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
- package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/createeval.ts +45 -31
- package/packages/orq-rc/src/models/operations/createknowledge.ts +9 -9
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +3 -3
- package/packages/orq-rc/src/models/operations/createprompt.ts +3 -3
- package/packages/orq-rc/src/models/operations/createtool.ts +36 -36
- package/packages/orq-rc/src/models/operations/deleteidentity.ts +0 -3
- package/packages/orq-rc/src/models/operations/getalltools.ts +21 -21
- package/packages/orq-rc/src/models/operations/getevals.ts +22 -16
- package/packages/orq-rc/src/models/operations/getoneknowledge.ts +6 -6
- package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/index.ts +1 -3
- package/packages/orq-rc/src/models/operations/invokeeval.ts +83 -80
- package/packages/orq-rc/src/models/operations/listagents.ts +3 -3
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
- package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
- package/packages/orq-rc/src/models/operations/listidentities.ts +9 -230
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +6 -6
- package/packages/orq-rc/src/models/operations/listmodels.ts +60 -0
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +14 -17
- package/packages/orq-rc/src/models/operations/postv2feedback.ts +34 -27
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/packages/orq-rc/src/models/operations/postv2feedbackremove.ts +14 -17
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/projectdelete.ts +3 -0
- package/packages/orq-rc/src/models/operations/projectget.ts +3 -0
- package/packages/orq-rc/src/models/operations/projectlist.ts +15 -0
- package/packages/orq-rc/src/models/operations/projectupdate.ts +3 -0
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +3 -3
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrieveidentity.ts +3 -138
- package/packages/orq-rc/src/models/operations/retrievetool.ts +21 -21
- package/packages/orq-rc/src/models/operations/runagent.ts +4 -4
- package/packages/orq-rc/src/models/operations/skilldelete.ts +3 -0
- package/packages/orq-rc/src/models/operations/skilllist.ts +12 -0
- package/packages/orq-rc/src/models/operations/skillupdate.ts +3 -0
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +4 -4
- package/packages/orq-rc/src/models/operations/updateagent.ts +6 -6
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatedataset.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateeval.ts +30 -23
- package/packages/orq-rc/src/models/operations/updateidentity.ts +5 -154
- package/packages/orq-rc/src/models/operations/updateknowledge.ts +12 -12
- package/packages/orq-rc/src/models/operations/updateprompt.ts +3 -3
- package/packages/orq-rc/src/models/operations/updatetool.ts +37 -37
- package/packages/orq-rc/src/sdk/feedback.ts +8 -8
- package/packages/orq-rc/src/sdk/identities.ts +18 -17
- package/packages/orq-rc/src/sdk/models.ts +25 -0
- package/packages/orq-rc/src/sdk/projects.ts +5 -2
- package/packages/orq-rc/src/sdk/reporting.ts +27 -0
- package/packages/orq-rc/src/sdk/sdk.ts +22 -22
- package/packages/orq-rc/src/sdk/skills.ts +7 -4
- package/src/lib/config.ts +3 -3
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createcontact.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listidentities.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
- package/packages/orq-rc/src/models/errors/deleteidentity.ts +0 -62
- package/packages/orq-rc/src/models/errors/retrieveidentity.ts +0 -118
- package/packages/orq-rc/src/models/errors/updateidentity.ts +0 -54
- package/packages/orq-rc/src/models/operations/createcontact.ts +0 -156
- package/packages/orq-rc/src/models/operations/createidentity.ts +0 -162
- package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -108
- package/packages/orq-rc/src/sdk/contacts.ts +0 -27
- package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
|
@@ -1472,13 +1472,13 @@ export type UpdateAgentRequestBody = {
|
|
|
1472
1472
|
| undefined;
|
|
1473
1473
|
settings?: UpdateAgentSettings | undefined;
|
|
1474
1474
|
/**
|
|
1475
|
-
* Entity storage path
|
|
1475
|
+
* Entity storage path.
|
|
1476
1476
|
*
|
|
1477
1477
|
* @remarks
|
|
1478
1478
|
*
|
|
1479
|
-
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
1479
|
+
* With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
|
|
1480
1480
|
*
|
|
1481
|
-
* With project-
|
|
1481
|
+
* With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
|
|
1482
1482
|
*/
|
|
1483
1483
|
path?: string | undefined;
|
|
1484
1484
|
/**
|
|
@@ -2615,13 +2615,13 @@ export type UpdateAgentResponseBody = {
|
|
|
2615
2615
|
*/
|
|
2616
2616
|
version?: string | undefined;
|
|
2617
2617
|
/**
|
|
2618
|
-
* Entity storage path
|
|
2618
|
+
* Entity storage path.
|
|
2619
2619
|
*
|
|
2620
2620
|
* @remarks
|
|
2621
2621
|
*
|
|
2622
|
-
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
2622
|
+
* With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
|
|
2623
2623
|
*
|
|
2624
|
-
* With project-
|
|
2624
|
+
* With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
|
|
2625
2625
|
*/
|
|
2626
2626
|
path: string;
|
|
2627
2627
|
/**
|
|
@@ -2358,7 +2358,7 @@ export const UpdateDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
2358
2358
|
.default("orq"),
|
|
2359
2359
|
reviewed_by_id: z.string(),
|
|
2360
2360
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2361
|
-
"2026-05-
|
|
2361
|
+
"2026-05-20T17:38:43.730Z",
|
|
2362
2362
|
).transform(v => new Date(v)),
|
|
2363
2363
|
type: z.literal("string_array"),
|
|
2364
2364
|
values: z.array(z.string()),
|
|
@@ -2404,7 +2404,7 @@ export const UpdateDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
2404
2404
|
source: UpdateDatapointEvaluationsDatasetsSource$inboundSchema.default("orq"),
|
|
2405
2405
|
reviewed_by_id: z.string(),
|
|
2406
2406
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2407
|
-
"2026-05-
|
|
2407
|
+
"2026-05-20T17:38:43.730Z",
|
|
2408
2408
|
).transform(v => new Date(v)),
|
|
2409
2409
|
type: z.literal("number"),
|
|
2410
2410
|
value: z.number(),
|
|
@@ -2449,7 +2449,7 @@ export const UpdateDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
2449
2449
|
source: UpdateDatapointEvaluationsSource$inboundSchema.default("orq"),
|
|
2450
2450
|
reviewed_by_id: z.string(),
|
|
2451
2451
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2452
|
-
"2026-05-
|
|
2452
|
+
"2026-05-20T17:38:43.729Z",
|
|
2453
2453
|
).transform(v => new Date(v)),
|
|
2454
2454
|
type: z.literal("string"),
|
|
2455
2455
|
value: z.string(),
|
|
@@ -2530,7 +2530,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
2530
2530
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2531
2531
|
.optional(),
|
|
2532
2532
|
updated: z.string().datetime({ offset: true }).default(
|
|
2533
|
-
"2026-05-
|
|
2533
|
+
"2026-05-20T17:38:29.061Z",
|
|
2534
2534
|
).transform(v => new Date(v)),
|
|
2535
2535
|
}).transform((v) => {
|
|
2536
2536
|
return remap$(v, {
|
|
@@ -18,13 +18,13 @@ export type UpdateDatasetRequestBody = {
|
|
|
18
18
|
*/
|
|
19
19
|
projectId?: string | undefined;
|
|
20
20
|
/**
|
|
21
|
-
* Entity storage path
|
|
21
|
+
* Entity storage path.
|
|
22
22
|
*
|
|
23
23
|
* @remarks
|
|
24
24
|
*
|
|
25
|
-
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
25
|
+
* With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
|
|
26
26
|
*
|
|
27
|
-
* With project-
|
|
27
|
+
* With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
|
|
28
28
|
*/
|
|
29
29
|
path?: string | undefined;
|
|
30
30
|
};
|
|
@@ -182,7 +182,7 @@ export const UpdateDatasetResponseBody$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
|
-
"2026-05-
|
|
185
|
+
"2026-05-20T17:38:29.061Z",
|
|
186
186
|
).transform(v => new Date(v)),
|
|
187
187
|
}).transform((v) => {
|
|
188
188
|
return remap$(v, {
|
|
@@ -152,7 +152,7 @@ export const UpdateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
152
152
|
z.ZodTypeDef,
|
|
153
153
|
unknown
|
|
154
154
|
> = z.object({
|
|
155
|
-
_id: z.string().default("
|
|
155
|
+
_id: z.string().default("01KS37FSSG9125TJ07RM61BJG8"),
|
|
156
156
|
display_name: z.string(),
|
|
157
157
|
description: z.string().optional(),
|
|
158
158
|
status: UpdateDatasourceStatus$inboundSchema,
|
|
@@ -116,8 +116,8 @@ export type UpdateEvalRequestBody = {
|
|
|
116
116
|
description?: string | undefined;
|
|
117
117
|
prompt?: string | undefined;
|
|
118
118
|
outputType?: string | undefined;
|
|
119
|
-
categories?: Array<string> | undefined;
|
|
120
|
-
categoricalLabels?: Array<CategoricalLabels> | undefined;
|
|
119
|
+
categories?: Array<string> | null | undefined;
|
|
120
|
+
categoricalLabels?: Array<CategoricalLabels> | null | undefined;
|
|
121
121
|
repetitions?: number | undefined;
|
|
122
122
|
mode?: Mode | undefined;
|
|
123
123
|
model?: string | undefined;
|
|
@@ -866,6 +866,7 @@ export type UpdateEvalLlm2 = {
|
|
|
866
866
|
prompt: string;
|
|
867
867
|
categories?: Array<string> | undefined;
|
|
868
868
|
categoricalLabels?: Array<UpdateEvalLLMEvalsCategoricalLabels> | undefined;
|
|
869
|
+
datasetId?: string | undefined;
|
|
869
870
|
key: string;
|
|
870
871
|
mode: "jury";
|
|
871
872
|
jury: UpdateEvalLLMJury;
|
|
@@ -942,6 +943,7 @@ export type UpdateEvalLlm1 = {
|
|
|
942
943
|
prompt: string;
|
|
943
944
|
categories?: Array<string> | undefined;
|
|
944
945
|
categoricalLabels?: Array<UpdateEvalLLMCategoricalLabels> | undefined;
|
|
946
|
+
datasetId?: string | undefined;
|
|
945
947
|
key: string;
|
|
946
948
|
mode: "single";
|
|
947
949
|
model: string;
|
|
@@ -1288,8 +1290,8 @@ export type UpdateEvalRequestBody$Outbound = {
|
|
|
1288
1290
|
description?: string | undefined;
|
|
1289
1291
|
prompt?: string | undefined;
|
|
1290
1292
|
output_type?: string | undefined;
|
|
1291
|
-
categories?: Array<string> | undefined;
|
|
1292
|
-
categorical_labels?: Array<CategoricalLabels$Outbound> | undefined;
|
|
1293
|
+
categories?: Array<string> | null | undefined;
|
|
1294
|
+
categorical_labels?: Array<CategoricalLabels$Outbound> | null | undefined;
|
|
1293
1295
|
repetitions?: number | undefined;
|
|
1294
1296
|
mode?: string | undefined;
|
|
1295
1297
|
model?: string | undefined;
|
|
@@ -1322,9 +1324,10 @@ export const UpdateEvalRequestBody$outboundSchema: z.ZodType<
|
|
|
1322
1324
|
description: z.string().optional(),
|
|
1323
1325
|
prompt: z.string().optional(),
|
|
1324
1326
|
outputType: z.string().optional(),
|
|
1325
|
-
categories: z.array(z.string()).optional(),
|
|
1326
|
-
categoricalLabels: z.
|
|
1327
|
-
.
|
|
1327
|
+
categories: z.nullable(z.array(z.string())).optional(),
|
|
1328
|
+
categoricalLabels: z.nullable(
|
|
1329
|
+
z.array(z.lazy(() => CategoricalLabels$outboundSchema)),
|
|
1330
|
+
).optional(),
|
|
1328
1331
|
repetitions: z.number().optional(),
|
|
1329
1332
|
mode: Mode$outboundSchema.optional(),
|
|
1330
1333
|
model: z.string().optional(),
|
|
@@ -1541,8 +1544,8 @@ export const ResponseBodyTypescript$inboundSchema: z.ZodType<
|
|
|
1541
1544
|
> = z.object({
|
|
1542
1545
|
_id: z.string(),
|
|
1543
1546
|
description: z.string(),
|
|
1544
|
-
created: z.string().default("2026-05-
|
|
1545
|
-
updated: z.string().default("2026-05-
|
|
1547
|
+
created: z.string().default("2026-05-20T17:38:30.215Z"),
|
|
1548
|
+
updated: z.string().default("2026-05-20T17:38:30.215Z"),
|
|
1546
1549
|
guardrail_config: z.nullable(
|
|
1547
1550
|
z.union([
|
|
1548
1551
|
z.lazy(() =>
|
|
@@ -1735,8 +1738,8 @@ export const ResponseBodyRagas$inboundSchema: z.ZodType<
|
|
|
1735
1738
|
> = z.object({
|
|
1736
1739
|
_id: z.string(),
|
|
1737
1740
|
description: z.string(),
|
|
1738
|
-
created: z.string().default("2026-05-
|
|
1739
|
-
updated: z.string().default("2026-05-
|
|
1741
|
+
created: z.string().default("2026-05-20T17:38:30.215Z"),
|
|
1742
|
+
updated: z.string().default("2026-05-20T17:38:30.215Z"),
|
|
1740
1743
|
guardrail_config: z.nullable(
|
|
1741
1744
|
z.union([
|
|
1742
1745
|
z.lazy(() =>
|
|
@@ -2592,8 +2595,8 @@ export const ResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
2592
2595
|
> = z.object({
|
|
2593
2596
|
_id: z.string(),
|
|
2594
2597
|
description: z.string(),
|
|
2595
|
-
created: z.string().default("2026-05-
|
|
2596
|
-
updated: z.string().default("2026-05-
|
|
2598
|
+
created: z.string().default("2026-05-20T17:38:30.215Z"),
|
|
2599
|
+
updated: z.string().default("2026-05-20T17:38:30.215Z"),
|
|
2597
2600
|
guardrail_config: z.nullable(
|
|
2598
2601
|
z.union([
|
|
2599
2602
|
z.lazy(() =>
|
|
@@ -2809,8 +2812,8 @@ export const UpdateEvalResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
2809
2812
|
> = z.object({
|
|
2810
2813
|
_id: z.string(),
|
|
2811
2814
|
description: z.string(),
|
|
2812
|
-
created: z.string().default("2026-05-
|
|
2813
|
-
updated: z.string().default("2026-05-
|
|
2815
|
+
created: z.string().default("2026-05-20T17:38:30.215Z"),
|
|
2816
|
+
updated: z.string().default("2026-05-20T17:38:30.215Z"),
|
|
2814
2817
|
guardrail_config: z.nullable(
|
|
2815
2818
|
z.union([
|
|
2816
2819
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -2976,8 +2979,8 @@ export const UpdateEvalResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
2976
2979
|
> = z.object({
|
|
2977
2980
|
_id: z.string(),
|
|
2978
2981
|
description: z.string(),
|
|
2979
|
-
created: z.string().default("2026-05-
|
|
2980
|
-
updated: z.string().default("2026-05-
|
|
2982
|
+
created: z.string().default("2026-05-20T17:38:30.215Z"),
|
|
2983
|
+
updated: z.string().default("2026-05-20T17:38:30.215Z"),
|
|
2981
2984
|
guardrail_config: z.nullable(
|
|
2982
2985
|
z.union([
|
|
2983
2986
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsBoolean$inboundSchema),
|
|
@@ -3128,8 +3131,8 @@ export const UpdateEvalResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
3128
3131
|
> = z.object({
|
|
3129
3132
|
_id: z.string(),
|
|
3130
3133
|
description: z.string(),
|
|
3131
|
-
created: z.string().default("2026-05-
|
|
3132
|
-
updated: z.string().default("2026-05-
|
|
3134
|
+
created: z.string().default("2026-05-20T17:38:30.215Z"),
|
|
3135
|
+
updated: z.string().default("2026-05-20T17:38:30.215Z"),
|
|
3133
3136
|
guardrail_config: z.nullable(
|
|
3134
3137
|
z.union([
|
|
3135
3138
|
z.lazy(() => UpdateEvalGuardrailConfigBoolean$inboundSchema),
|
|
@@ -3489,8 +3492,8 @@ export const UpdateEvalLlm2$inboundSchema: z.ZodType<
|
|
|
3489
3492
|
> = z.object({
|
|
3490
3493
|
_id: z.string(),
|
|
3491
3494
|
description: z.string(),
|
|
3492
|
-
created: z.string().default("2026-05-
|
|
3493
|
-
updated: z.string().default("2026-05-
|
|
3495
|
+
created: z.string().default("2026-05-20T17:38:30.215Z"),
|
|
3496
|
+
updated: z.string().default("2026-05-20T17:38:30.215Z"),
|
|
3494
3497
|
guardrail_config: z.nullable(
|
|
3495
3498
|
z.union([
|
|
3496
3499
|
z.lazy(() =>
|
|
@@ -3511,6 +3514,7 @@ export const UpdateEvalLlm2$inboundSchema: z.ZodType<
|
|
|
3511
3514
|
categorical_labels: z.array(
|
|
3512
3515
|
z.lazy(() => UpdateEvalLLMEvalsCategoricalLabels$inboundSchema),
|
|
3513
3516
|
).optional(),
|
|
3517
|
+
dataset_id: z.string().optional(),
|
|
3514
3518
|
key: z.string(),
|
|
3515
3519
|
mode: z.literal("jury"),
|
|
3516
3520
|
jury: z.lazy(() => UpdateEvalLLMJury$inboundSchema),
|
|
@@ -3519,6 +3523,7 @@ export const UpdateEvalLlm2$inboundSchema: z.ZodType<
|
|
|
3519
3523
|
"_id": "id",
|
|
3520
3524
|
"guardrail_config": "guardrailConfig",
|
|
3521
3525
|
"categorical_labels": "categoricalLabels",
|
|
3526
|
+
"dataset_id": "datasetId",
|
|
3522
3527
|
});
|
|
3523
3528
|
});
|
|
3524
3529
|
|
|
@@ -3698,8 +3703,8 @@ export const UpdateEvalLlm1$inboundSchema: z.ZodType<
|
|
|
3698
3703
|
> = z.object({
|
|
3699
3704
|
_id: z.string(),
|
|
3700
3705
|
description: z.string(),
|
|
3701
|
-
created: z.string().default("2026-05-
|
|
3702
|
-
updated: z.string().default("2026-05-
|
|
3706
|
+
created: z.string().default("2026-05-20T17:38:30.215Z"),
|
|
3707
|
+
updated: z.string().default("2026-05-20T17:38:30.215Z"),
|
|
3703
3708
|
guardrail_config: z.nullable(
|
|
3704
3709
|
z.union([
|
|
3705
3710
|
z.lazy(() =>
|
|
@@ -3720,6 +3725,7 @@ export const UpdateEvalLlm1$inboundSchema: z.ZodType<
|
|
|
3720
3725
|
categorical_labels: z.array(
|
|
3721
3726
|
z.lazy(() => UpdateEvalLLMCategoricalLabels$inboundSchema),
|
|
3722
3727
|
).optional(),
|
|
3728
|
+
dataset_id: z.string().optional(),
|
|
3723
3729
|
key: z.string(),
|
|
3724
3730
|
mode: z.literal("single"),
|
|
3725
3731
|
model: z.string(),
|
|
@@ -3728,6 +3734,7 @@ export const UpdateEvalLlm1$inboundSchema: z.ZodType<
|
|
|
3728
3734
|
"_id": "id",
|
|
3729
3735
|
"guardrail_config": "guardrailConfig",
|
|
3730
3736
|
"categorical_labels": "categoricalLabels",
|
|
3737
|
+
"dataset_id": "datasetId",
|
|
3731
3738
|
});
|
|
3732
3739
|
});
|
|
3733
3740
|
|
|
@@ -4,128 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Identity fields to update
|
|
13
|
-
*/
|
|
14
|
-
export type UpdateIdentityRequestBody = {
|
|
15
|
-
/**
|
|
16
|
-
* Display name or nickname of the contact user. This is typically shown in user interfaces.
|
|
17
|
-
*/
|
|
18
|
-
displayName?: string | null | undefined;
|
|
19
|
-
/**
|
|
20
|
-
* Email address of the contact user
|
|
21
|
-
*/
|
|
22
|
-
email?: string | null | undefined;
|
|
23
|
-
/**
|
|
24
|
-
* URL linking to the contact user's avatar image
|
|
25
|
-
*/
|
|
26
|
-
avatarUrl?: string | null | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* Array of tags associated with the contact. Useful for organizing and filtering contacts by categories, departments, or custom classifications.
|
|
29
|
-
*/
|
|
30
|
-
tags?: Array<string> | undefined;
|
|
31
|
-
/**
|
|
32
|
-
* Additional custom metadata associated with the contact as key-value pairs. Use this to store any extra information specific to your application.
|
|
33
|
-
*/
|
|
34
|
-
metadata?: { [k: string]: any } | undefined;
|
|
35
|
-
};
|
|
7
|
+
import * as components from "../components/index.js";
|
|
36
8
|
|
|
37
9
|
export type UpdateIdentityRequest = {
|
|
38
|
-
/**
|
|
39
|
-
* Unique identity id or external id
|
|
40
|
-
*/
|
|
41
10
|
id: string;
|
|
42
|
-
|
|
43
|
-
* Identity fields to update
|
|
44
|
-
*/
|
|
45
|
-
requestBody?: UpdateIdentityRequestBody | undefined;
|
|
11
|
+
updateIdentityRequest: components.UpdateIdentityRequest;
|
|
46
12
|
};
|
|
47
13
|
|
|
48
|
-
/**
|
|
49
|
-
* Updated identity
|
|
50
|
-
*/
|
|
51
|
-
export type UpdateIdentityResponseBody = {
|
|
52
|
-
/**
|
|
53
|
-
* Unique ULID (Universally Unique Lexicographically Sortable Identifier) for the contact
|
|
54
|
-
*/
|
|
55
|
-
id: string;
|
|
56
|
-
/**
|
|
57
|
-
* Unique string value to identify the contact user in the customer's system. This should be the same ID you use in your system to reference this user.
|
|
58
|
-
*/
|
|
59
|
-
externalId: string;
|
|
60
|
-
/**
|
|
61
|
-
* Display name or nickname of the contact user. This is typically shown in user interfaces.
|
|
62
|
-
*/
|
|
63
|
-
displayName?: string | null | undefined;
|
|
64
|
-
/**
|
|
65
|
-
* Email address of the contact user
|
|
66
|
-
*/
|
|
67
|
-
email?: string | null | undefined;
|
|
68
|
-
/**
|
|
69
|
-
* URL linking to the contact user's avatar image
|
|
70
|
-
*/
|
|
71
|
-
avatarUrl?: string | null | undefined;
|
|
72
|
-
/**
|
|
73
|
-
* Array of tags associated with the contact. Useful for organizing and filtering contacts by categories, departments, or custom classifications.
|
|
74
|
-
*/
|
|
75
|
-
tags?: Array<string> | undefined;
|
|
76
|
-
/**
|
|
77
|
-
* Additional custom metadata associated with the contact as key-value pairs. Use this to store any extra information specific to your application.
|
|
78
|
-
*/
|
|
79
|
-
metadata?: { [k: string]: any } | undefined;
|
|
80
|
-
/**
|
|
81
|
-
* The date and time the resource was created
|
|
82
|
-
*/
|
|
83
|
-
created?: Date | undefined;
|
|
84
|
-
/**
|
|
85
|
-
* The date and time the resource was last updated
|
|
86
|
-
*/
|
|
87
|
-
updated: Date;
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
/** @internal */
|
|
91
|
-
export type UpdateIdentityRequestBody$Outbound = {
|
|
92
|
-
display_name?: string | null | undefined;
|
|
93
|
-
email?: string | null | undefined;
|
|
94
|
-
avatar_url?: string | null | undefined;
|
|
95
|
-
tags?: Array<string> | undefined;
|
|
96
|
-
metadata?: { [k: string]: any } | undefined;
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
/** @internal */
|
|
100
|
-
export const UpdateIdentityRequestBody$outboundSchema: z.ZodType<
|
|
101
|
-
UpdateIdentityRequestBody$Outbound,
|
|
102
|
-
z.ZodTypeDef,
|
|
103
|
-
UpdateIdentityRequestBody
|
|
104
|
-
> = z.object({
|
|
105
|
-
displayName: z.nullable(z.string()).optional(),
|
|
106
|
-
email: z.nullable(z.string()).optional(),
|
|
107
|
-
avatarUrl: z.nullable(z.string()).optional(),
|
|
108
|
-
tags: z.array(z.string()).optional(),
|
|
109
|
-
metadata: z.record(z.any()).optional(),
|
|
110
|
-
}).transform((v) => {
|
|
111
|
-
return remap$(v, {
|
|
112
|
-
displayName: "display_name",
|
|
113
|
-
avatarUrl: "avatar_url",
|
|
114
|
-
});
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
export function updateIdentityRequestBodyToJSON(
|
|
118
|
-
updateIdentityRequestBody: UpdateIdentityRequestBody,
|
|
119
|
-
): string {
|
|
120
|
-
return JSON.stringify(
|
|
121
|
-
UpdateIdentityRequestBody$outboundSchema.parse(updateIdentityRequestBody),
|
|
122
|
-
);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
14
|
/** @internal */
|
|
126
15
|
export type UpdateIdentityRequest$Outbound = {
|
|
127
16
|
id: string;
|
|
128
|
-
|
|
17
|
+
UpdateIdentityRequest: components.UpdateIdentityRequest$Outbound;
|
|
129
18
|
};
|
|
130
19
|
|
|
131
20
|
/** @internal */
|
|
@@ -135,11 +24,10 @@ export const UpdateIdentityRequest$outboundSchema: z.ZodType<
|
|
|
135
24
|
UpdateIdentityRequest
|
|
136
25
|
> = z.object({
|
|
137
26
|
id: z.string(),
|
|
138
|
-
|
|
139
|
-
.optional(),
|
|
27
|
+
updateIdentityRequest: components.UpdateIdentityRequest$outboundSchema,
|
|
140
28
|
}).transform((v) => {
|
|
141
29
|
return remap$(v, {
|
|
142
|
-
|
|
30
|
+
updateIdentityRequest: "UpdateIdentityRequest",
|
|
143
31
|
});
|
|
144
32
|
});
|
|
145
33
|
|
|
@@ -150,40 +38,3 @@ export function updateIdentityRequestToJSON(
|
|
|
150
38
|
UpdateIdentityRequest$outboundSchema.parse(updateIdentityRequest),
|
|
151
39
|
);
|
|
152
40
|
}
|
|
153
|
-
|
|
154
|
-
/** @internal */
|
|
155
|
-
export const UpdateIdentityResponseBody$inboundSchema: z.ZodType<
|
|
156
|
-
UpdateIdentityResponseBody,
|
|
157
|
-
z.ZodTypeDef,
|
|
158
|
-
unknown
|
|
159
|
-
> = z.object({
|
|
160
|
-
_id: z.string(),
|
|
161
|
-
external_id: z.string(),
|
|
162
|
-
display_name: z.nullable(z.string()).optional(),
|
|
163
|
-
email: z.nullable(z.string()).optional(),
|
|
164
|
-
avatar_url: z.nullable(z.string()).optional(),
|
|
165
|
-
tags: z.array(z.string()).optional(),
|
|
166
|
-
metadata: z.record(z.any()).optional(),
|
|
167
|
-
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
168
|
-
.optional(),
|
|
169
|
-
updated: z.string().datetime({ offset: true }).default(
|
|
170
|
-
"2026-05-19T14:38:12.201Z",
|
|
171
|
-
).transform(v => new Date(v)),
|
|
172
|
-
}).transform((v) => {
|
|
173
|
-
return remap$(v, {
|
|
174
|
-
"_id": "id",
|
|
175
|
-
"external_id": "externalId",
|
|
176
|
-
"display_name": "displayName",
|
|
177
|
-
"avatar_url": "avatarUrl",
|
|
178
|
-
});
|
|
179
|
-
});
|
|
180
|
-
|
|
181
|
-
export function updateIdentityResponseBodyFromJSON(
|
|
182
|
-
jsonString: string,
|
|
183
|
-
): SafeParseResult<UpdateIdentityResponseBody, SDKValidationError> {
|
|
184
|
-
return safeParse(
|
|
185
|
-
jsonString,
|
|
186
|
-
(x) => UpdateIdentityResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
187
|
-
`Failed to parse 'UpdateIdentityResponseBody' from JSON`,
|
|
188
|
-
);
|
|
189
|
-
}
|
|
@@ -98,13 +98,13 @@ export type UpdateKnowledgeRequestBody2 = {
|
|
|
98
98
|
*/
|
|
99
99
|
embeddingModel?: string | undefined;
|
|
100
100
|
/**
|
|
101
|
-
* Entity storage path
|
|
101
|
+
* Entity storage path.
|
|
102
102
|
*
|
|
103
103
|
* @remarks
|
|
104
104
|
*
|
|
105
|
-
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
105
|
+
* With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
|
|
106
106
|
*
|
|
107
|
-
* With project-
|
|
107
|
+
* With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
|
|
108
108
|
*/
|
|
109
109
|
path?: string | undefined;
|
|
110
110
|
/**
|
|
@@ -195,13 +195,13 @@ export type UpdateKnowledgeRequestBody1 = {
|
|
|
195
195
|
*/
|
|
196
196
|
description?: string | null | undefined;
|
|
197
197
|
/**
|
|
198
|
-
* Entity storage path
|
|
198
|
+
* Entity storage path.
|
|
199
199
|
*
|
|
200
200
|
* @remarks
|
|
201
201
|
*
|
|
202
|
-
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
202
|
+
* With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
|
|
203
203
|
*
|
|
204
|
-
* With project-
|
|
204
|
+
* With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
|
|
205
205
|
*/
|
|
206
206
|
path?: string | undefined;
|
|
207
207
|
/**
|
|
@@ -323,13 +323,13 @@ export type UpdateKnowledgeResponseBody2 = {
|
|
|
323
323
|
*/
|
|
324
324
|
domainId: string;
|
|
325
325
|
/**
|
|
326
|
-
* Entity storage path
|
|
326
|
+
* Entity storage path.
|
|
327
327
|
*
|
|
328
328
|
* @remarks
|
|
329
329
|
*
|
|
330
|
-
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
330
|
+
* With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
|
|
331
331
|
*
|
|
332
|
-
* With project-
|
|
332
|
+
* With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
|
|
333
333
|
*/
|
|
334
334
|
path?: string | undefined;
|
|
335
335
|
createdById?: string | null | undefined;
|
|
@@ -449,13 +449,13 @@ export type UpdateKnowledgeResponseBody1 = {
|
|
|
449
449
|
*/
|
|
450
450
|
domainId: string;
|
|
451
451
|
/**
|
|
452
|
-
* Entity storage path
|
|
452
|
+
* Entity storage path.
|
|
453
453
|
*
|
|
454
454
|
* @remarks
|
|
455
455
|
*
|
|
456
|
-
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
456
|
+
* With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
|
|
457
457
|
*
|
|
458
|
-
* With project-
|
|
458
|
+
* With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
|
|
459
459
|
*/
|
|
460
460
|
path?: string | undefined;
|
|
461
461
|
createdById?: string | null | undefined;
|
|
@@ -879,13 +879,13 @@ export type UpdatePromptRequestBody = {
|
|
|
879
879
|
prompt?: UpdatePromptPromptInput | undefined;
|
|
880
880
|
metadata?: UpdatePromptMetadata | undefined;
|
|
881
881
|
/**
|
|
882
|
-
* Entity storage path
|
|
882
|
+
* Entity storage path.
|
|
883
883
|
*
|
|
884
884
|
* @remarks
|
|
885
885
|
*
|
|
886
|
-
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
886
|
+
* With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
|
|
887
887
|
*
|
|
888
|
-
* With project-
|
|
888
|
+
* With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
|
|
889
889
|
*/
|
|
890
890
|
path?: string | undefined;
|
|
891
891
|
};
|