@orq-ai/node 4.9.4 → 4.9.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/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- 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 +5 -5
- 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/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 +2 -2
- 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 +15 -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/project.ts +42 -3
- package/packages/orq-rc/src/models/components/queryreportrequest.ts +237 -0
- package/packages/orq-rc/src/models/components/queryreportresponse.ts +96 -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/createannotation.ts +7 -11
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- 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 +16 -16
- package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
- package/packages/orq-rc/src/models/operations/deleteidentity.ts +0 -3
- package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
- package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
- 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 +0 -3
- package/packages/orq-rc/src/models/operations/invokeeval.ts +83 -80
- 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/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/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 +6 -6
- package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
- 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 +1 -1
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/updateidentity.ts +5 -154
- package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
- 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/projects.ts +5 -2
- package/packages/orq-rc/src/sdk/reporting.ts +27 -0
- package/packages/orq-rc/src/sdk/sdk.ts +16 -22
- package/packages/orq-rc/src/sdk/skills.ts +7 -4
- package/src/lib/config.ts +2 -2
- 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/funcs/remoteconfigsRetrieve.ts +0 -163
- 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
|
@@ -7,6 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import * as components from "../components/index.js";
|
|
8
8
|
|
|
9
9
|
export type ProjectUpdateRequest = {
|
|
10
|
+
/**
|
|
11
|
+
* Project ID to update.
|
|
12
|
+
*/
|
|
10
13
|
projectId: string;
|
|
11
14
|
updateProjectRequest: components.UpdateProjectRequest;
|
|
12
15
|
};
|
|
@@ -1207,7 +1207,7 @@ export const RetrieveDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
1207
1207
|
.default("orq"),
|
|
1208
1208
|
reviewed_by_id: z.string(),
|
|
1209
1209
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1210
|
-
"2026-05-
|
|
1210
|
+
"2026-05-18T05:04:37.318Z",
|
|
1211
1211
|
).transform(v => new Date(v)),
|
|
1212
1212
|
type: z.literal("string_array"),
|
|
1213
1213
|
values: z.array(z.string()),
|
|
@@ -1255,7 +1255,7 @@ export const RetrieveDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
1255
1255
|
),
|
|
1256
1256
|
reviewed_by_id: z.string(),
|
|
1257
1257
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1258
|
-
"2026-05-
|
|
1258
|
+
"2026-05-18T05:04:37.318Z",
|
|
1259
1259
|
).transform(v => new Date(v)),
|
|
1260
1260
|
type: z.literal("number"),
|
|
1261
1261
|
value: z.number(),
|
|
@@ -1300,7 +1300,7 @@ export const RetrieveDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
1300
1300
|
source: RetrieveDatapointEvaluationsSource$inboundSchema.default("orq"),
|
|
1301
1301
|
reviewed_by_id: z.string(),
|
|
1302
1302
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1303
|
-
"2026-05-
|
|
1303
|
+
"2026-05-18T05:04:37.318Z",
|
|
1304
1304
|
).transform(v => new Date(v)),
|
|
1305
1305
|
type: z.literal("string"),
|
|
1306
1306
|
value: z.string(),
|
|
@@ -1377,7 +1377,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
1377
1377
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1378
1378
|
.optional(),
|
|
1379
1379
|
updated: z.string().datetime({ offset: true }).default(
|
|
1380
|
-
"2026-05-
|
|
1380
|
+
"2026-05-18T05:04:23.600Z",
|
|
1381
1381
|
).transform(v => new Date(v)),
|
|
1382
1382
|
}).transform((v) => {
|
|
1383
1383
|
return remap$(v, {
|
|
@@ -126,7 +126,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
126
126
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
127
127
|
.optional(),
|
|
128
128
|
updated: z.string().datetime({ offset: true }).default(
|
|
129
|
-
"2026-05-
|
|
129
|
+
"2026-05-18T05:04:23.600Z",
|
|
130
130
|
).transform(v => new Date(v)),
|
|
131
131
|
}).transform((v) => {
|
|
132
132
|
return remap$(v, {
|
|
@@ -118,7 +118,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
118
118
|
z.ZodTypeDef,
|
|
119
119
|
unknown
|
|
120
120
|
> = z.object({
|
|
121
|
-
_id: z.string().default("
|
|
121
|
+
_id: z.string().default("01KRWQHHWD7KYZW2W3Y8Q2G4C8"),
|
|
122
122
|
display_name: z.string(),
|
|
123
123
|
description: z.string().optional(),
|
|
124
124
|
status: RetrieveDatasourceStatus$inboundSchema,
|
|
@@ -4,87 +4,16 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
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
7
|
|
|
11
8
|
export type RetrieveIdentityRequest = {
|
|
12
|
-
/**
|
|
13
|
-
* Unique identity id or external id
|
|
14
|
-
*/
|
|
15
9
|
id: string;
|
|
16
|
-
|
|
17
|
-
* Include usage metrics of the last 30 days for the identity.
|
|
18
|
-
*/
|
|
19
|
-
includeMetrics?: boolean | null | undefined;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export type Metrics = {
|
|
23
|
-
/**
|
|
24
|
-
* Total cost in dollars of the last 30 days
|
|
25
|
-
*/
|
|
26
|
-
totalCost: number;
|
|
27
|
-
/**
|
|
28
|
-
* Total tokens of the last 30 days
|
|
29
|
-
*/
|
|
30
|
-
totalTokens: number;
|
|
31
|
-
/**
|
|
32
|
-
* Total requests of the last 30 days
|
|
33
|
-
*/
|
|
34
|
-
totalRequests: number;
|
|
35
|
-
/**
|
|
36
|
-
* Error rate of the last 30 days as a ratio (0–1)
|
|
37
|
-
*/
|
|
38
|
-
errorRate: number;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Identity details
|
|
43
|
-
*/
|
|
44
|
-
export type RetrieveIdentityResponseBody = {
|
|
45
|
-
/**
|
|
46
|
-
* Unique ULID (Universally Unique Lexicographically Sortable Identifier) for the contact
|
|
47
|
-
*/
|
|
48
|
-
id: string;
|
|
49
|
-
/**
|
|
50
|
-
* 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.
|
|
51
|
-
*/
|
|
52
|
-
externalId: string;
|
|
53
|
-
/**
|
|
54
|
-
* Display name or nickname of the contact user. This is typically shown in user interfaces.
|
|
55
|
-
*/
|
|
56
|
-
displayName?: string | null | undefined;
|
|
57
|
-
/**
|
|
58
|
-
* Email address of the contact user
|
|
59
|
-
*/
|
|
60
|
-
email?: string | null | undefined;
|
|
61
|
-
/**
|
|
62
|
-
* URL linking to the contact user's avatar image
|
|
63
|
-
*/
|
|
64
|
-
avatarUrl?: string | null | undefined;
|
|
65
|
-
/**
|
|
66
|
-
* Array of tags associated with the contact. Useful for organizing and filtering contacts by categories, departments, or custom classifications.
|
|
67
|
-
*/
|
|
68
|
-
tags?: Array<string> | undefined;
|
|
69
|
-
/**
|
|
70
|
-
* Additional custom metadata associated with the contact as key-value pairs. Use this to store any extra information specific to your application.
|
|
71
|
-
*/
|
|
72
|
-
metadata?: { [k: string]: any } | undefined;
|
|
73
|
-
/**
|
|
74
|
-
* The date and time the resource was created
|
|
75
|
-
*/
|
|
76
|
-
created?: Date | undefined;
|
|
77
|
-
/**
|
|
78
|
-
* The date and time the resource was last updated
|
|
79
|
-
*/
|
|
80
|
-
updated: Date;
|
|
81
|
-
metrics?: Metrics | null | undefined;
|
|
10
|
+
includeMetrics?: boolean | undefined;
|
|
82
11
|
};
|
|
83
12
|
|
|
84
13
|
/** @internal */
|
|
85
14
|
export type RetrieveIdentityRequest$Outbound = {
|
|
86
15
|
id: string;
|
|
87
|
-
include_metrics
|
|
16
|
+
include_metrics?: boolean | undefined;
|
|
88
17
|
};
|
|
89
18
|
|
|
90
19
|
/** @internal */
|
|
@@ -94,7 +23,7 @@ export const RetrieveIdentityRequest$outboundSchema: z.ZodType<
|
|
|
94
23
|
RetrieveIdentityRequest
|
|
95
24
|
> = z.object({
|
|
96
25
|
id: z.string(),
|
|
97
|
-
includeMetrics: z.
|
|
26
|
+
includeMetrics: z.boolean().optional(),
|
|
98
27
|
}).transform((v) => {
|
|
99
28
|
return remap$(v, {
|
|
100
29
|
includeMetrics: "include_metrics",
|
|
@@ -108,67 +37,3 @@ export function retrieveIdentityRequestToJSON(
|
|
|
108
37
|
RetrieveIdentityRequest$outboundSchema.parse(retrieveIdentityRequest),
|
|
109
38
|
);
|
|
110
39
|
}
|
|
111
|
-
|
|
112
|
-
/** @internal */
|
|
113
|
-
export const Metrics$inboundSchema: z.ZodType<Metrics, z.ZodTypeDef, unknown> =
|
|
114
|
-
z.object({
|
|
115
|
-
total_cost: z.number(),
|
|
116
|
-
total_tokens: z.number(),
|
|
117
|
-
total_requests: z.number(),
|
|
118
|
-
error_rate: z.number(),
|
|
119
|
-
}).transform((v) => {
|
|
120
|
-
return remap$(v, {
|
|
121
|
-
"total_cost": "totalCost",
|
|
122
|
-
"total_tokens": "totalTokens",
|
|
123
|
-
"total_requests": "totalRequests",
|
|
124
|
-
"error_rate": "errorRate",
|
|
125
|
-
});
|
|
126
|
-
});
|
|
127
|
-
|
|
128
|
-
export function metricsFromJSON(
|
|
129
|
-
jsonString: string,
|
|
130
|
-
): SafeParseResult<Metrics, SDKValidationError> {
|
|
131
|
-
return safeParse(
|
|
132
|
-
jsonString,
|
|
133
|
-
(x) => Metrics$inboundSchema.parse(JSON.parse(x)),
|
|
134
|
-
`Failed to parse 'Metrics' from JSON`,
|
|
135
|
-
);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/** @internal */
|
|
139
|
-
export const RetrieveIdentityResponseBody$inboundSchema: z.ZodType<
|
|
140
|
-
RetrieveIdentityResponseBody,
|
|
141
|
-
z.ZodTypeDef,
|
|
142
|
-
unknown
|
|
143
|
-
> = z.object({
|
|
144
|
-
_id: z.string(),
|
|
145
|
-
external_id: z.string(),
|
|
146
|
-
display_name: z.nullable(z.string()).optional(),
|
|
147
|
-
email: z.nullable(z.string()).optional(),
|
|
148
|
-
avatar_url: z.nullable(z.string()).optional(),
|
|
149
|
-
tags: z.array(z.string()).optional(),
|
|
150
|
-
metadata: z.record(z.any()).optional(),
|
|
151
|
-
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
152
|
-
.optional(),
|
|
153
|
-
updated: z.string().datetime({ offset: true }).default(
|
|
154
|
-
"2026-05-15T03:37:24.790Z",
|
|
155
|
-
).transform(v => new Date(v)),
|
|
156
|
-
metrics: z.nullable(z.lazy(() => Metrics$inboundSchema)).optional(),
|
|
157
|
-
}).transform((v) => {
|
|
158
|
-
return remap$(v, {
|
|
159
|
-
"_id": "id",
|
|
160
|
-
"external_id": "externalId",
|
|
161
|
-
"display_name": "displayName",
|
|
162
|
-
"avatar_url": "avatarUrl",
|
|
163
|
-
});
|
|
164
|
-
});
|
|
165
|
-
|
|
166
|
-
export function retrieveIdentityResponseBodyFromJSON(
|
|
167
|
-
jsonString: string,
|
|
168
|
-
): SafeParseResult<RetrieveIdentityResponseBody, SDKValidationError> {
|
|
169
|
-
return safeParse(
|
|
170
|
-
jsonString,
|
|
171
|
-
(x) => RetrieveIdentityResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
172
|
-
`Failed to parse 'RetrieveIdentityResponseBody' from JSON`,
|
|
173
|
-
);
|
|
174
|
-
}
|
|
@@ -753,7 +753,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
753
753
|
z.ZodTypeDef,
|
|
754
754
|
unknown
|
|
755
755
|
> = z.object({
|
|
756
|
-
_id: z.string().default("
|
|
756
|
+
_id: z.string().default("tool_01KRWQHHSM3GBXTM65AH6WX7BD"),
|
|
757
757
|
path: z.string(),
|
|
758
758
|
key: z.string(),
|
|
759
759
|
display_name: z.string().optional(),
|
|
@@ -859,7 +859,7 @@ export const RetrieveToolResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
859
859
|
z.ZodTypeDef,
|
|
860
860
|
unknown
|
|
861
861
|
> = z.object({
|
|
862
|
-
id: z.string().default("
|
|
862
|
+
id: z.string().default("01KRWQHHSKB4NEQDYN5NXDC0AH"),
|
|
863
863
|
name: z.string(),
|
|
864
864
|
description: z.string().optional(),
|
|
865
865
|
schema: z.lazy(() => RetrieveToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -917,7 +917,7 @@ export const RetrieveToolResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
917
917
|
z.ZodTypeDef,
|
|
918
918
|
unknown
|
|
919
919
|
> = z.object({
|
|
920
|
-
_id: z.string().default("
|
|
920
|
+
_id: z.string().default("tool_01KRWQHHSAXD0Q7DYB6H2RWS1C"),
|
|
921
921
|
path: z.string(),
|
|
922
922
|
key: z.string(),
|
|
923
923
|
display_name: z.string().optional(),
|
|
@@ -1108,7 +1108,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1108
1108
|
z.ZodTypeDef,
|
|
1109
1109
|
unknown
|
|
1110
1110
|
> = z.object({
|
|
1111
|
-
_id: z.string().default("
|
|
1111
|
+
_id: z.string().default("tool_01KRWQHHS88Z3K6ZBM57P0VXFC"),
|
|
1112
1112
|
path: z.string(),
|
|
1113
1113
|
key: z.string(),
|
|
1114
1114
|
display_name: z.string().optional(),
|
|
@@ -1204,7 +1204,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1204
1204
|
z.ZodTypeDef,
|
|
1205
1205
|
unknown
|
|
1206
1206
|
> = z.object({
|
|
1207
|
-
_id: z.string().default("
|
|
1207
|
+
_id: z.string().default("tool_01KRWQHHS719X3MG2W75XW4ZAC"),
|
|
1208
1208
|
path: z.string(),
|
|
1209
1209
|
key: z.string(),
|
|
1210
1210
|
display_name: z.string().optional(),
|
|
@@ -1310,7 +1310,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1310
1310
|
z.ZodTypeDef,
|
|
1311
1311
|
unknown
|
|
1312
1312
|
> = z.object({
|
|
1313
|
-
_id: z.string().default("
|
|
1313
|
+
_id: z.string().default("tool_01KRWQHHS67Z29BTA5K9BP9ANZ"),
|
|
1314
1314
|
path: z.string(),
|
|
1315
1315
|
key: z.string(),
|
|
1316
1316
|
display_name: z.string().optional(),
|
|
@@ -3628,7 +3628,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
3628
3628
|
z.ZodTypeDef,
|
|
3629
3629
|
Tools
|
|
3630
3630
|
> = z.object({
|
|
3631
|
-
id: z.string().default("
|
|
3631
|
+
id: z.string().default("01KRWQHHDMWMF6KWG030M9JN95"),
|
|
3632
3632
|
name: z.string(),
|
|
3633
3633
|
description: z.string().optional(),
|
|
3634
3634
|
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|
|
@@ -13,7 +13,19 @@ export type SkillListRequest = {
|
|
|
13
13
|
* (or anything outside the range) is rejected by buf.validate.
|
|
14
14
|
*/
|
|
15
15
|
limit?: number | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Cursor for forward pagination. Set to the `skill_id` of the last
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* item from the previous page.
|
|
21
|
+
*/
|
|
16
22
|
startingAfter?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Cursor for backward pagination. Set to the `skill_id` of the first
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* item from the previous page.
|
|
28
|
+
*/
|
|
17
29
|
endingBefore?: string | undefined;
|
|
18
30
|
};
|
|
19
31
|
|
|
@@ -7,6 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import * as components from "../components/index.js";
|
|
8
8
|
|
|
9
9
|
export type SkillUpdateRequest = {
|
|
10
|
+
/**
|
|
11
|
+
* Skill ID to update.
|
|
12
|
+
*/
|
|
10
13
|
skillId: string;
|
|
11
14
|
updateSkillRequest: components.UpdateSkillRequest;
|
|
12
15
|
};
|
|
@@ -3675,7 +3675,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
|
|
|
3675
3675
|
z.ZodTypeDef,
|
|
3676
3676
|
AgentToolInputRunTools
|
|
3677
3677
|
> = z.object({
|
|
3678
|
-
id: z.string().default("
|
|
3678
|
+
id: z.string().default("01KRWQHHF7N9350TBR404VN4R3"),
|
|
3679
3679
|
name: z.string(),
|
|
3680
3680
|
description: z.string().optional(),
|
|
3681
3681
|
schema: z.lazy(() =>
|
|
@@ -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-18T05:04:37.348Z",
|
|
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-18T05:04:37.347Z",
|
|
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-18T05:04:37.347Z",
|
|
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-18T05:04:23.600Z",
|
|
2534
2534
|
).transform(v => new Date(v)),
|
|
2535
2535
|
}).transform((v) => {
|
|
2536
2536
|
return remap$(v, {
|
|
@@ -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-18T05:04:23.600Z",
|
|
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("01KRWQHHWFH3QAMWPY9P0ZWZM7"),
|
|
156
156
|
display_name: z.string(),
|
|
157
157
|
description: z.string().optional(),
|
|
158
158
|
status: UpdateDatasourceStatus$inboundSchema,
|
|
@@ -1541,8 +1541,8 @@ export const ResponseBodyTypescript$inboundSchema: z.ZodType<
|
|
|
1541
1541
|
> = z.object({
|
|
1542
1542
|
_id: z.string(),
|
|
1543
1543
|
description: z.string(),
|
|
1544
|
-
created: z.string().default("2026-05-
|
|
1545
|
-
updated: z.string().default("2026-05-
|
|
1544
|
+
created: z.string().default("2026-05-18T05:04:24.675Z"),
|
|
1545
|
+
updated: z.string().default("2026-05-18T05:04:24.675Z"),
|
|
1546
1546
|
guardrail_config: z.nullable(
|
|
1547
1547
|
z.union([
|
|
1548
1548
|
z.lazy(() =>
|
|
@@ -1735,8 +1735,8 @@ export const ResponseBodyRagas$inboundSchema: z.ZodType<
|
|
|
1735
1735
|
> = z.object({
|
|
1736
1736
|
_id: z.string(),
|
|
1737
1737
|
description: z.string(),
|
|
1738
|
-
created: z.string().default("2026-05-
|
|
1739
|
-
updated: z.string().default("2026-05-
|
|
1738
|
+
created: z.string().default("2026-05-18T05:04:24.675Z"),
|
|
1739
|
+
updated: z.string().default("2026-05-18T05:04:24.675Z"),
|
|
1740
1740
|
guardrail_config: z.nullable(
|
|
1741
1741
|
z.union([
|
|
1742
1742
|
z.lazy(() =>
|
|
@@ -2592,8 +2592,8 @@ export const ResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
2592
2592
|
> = z.object({
|
|
2593
2593
|
_id: z.string(),
|
|
2594
2594
|
description: z.string(),
|
|
2595
|
-
created: z.string().default("2026-05-
|
|
2596
|
-
updated: z.string().default("2026-05-
|
|
2595
|
+
created: z.string().default("2026-05-18T05:04:24.675Z"),
|
|
2596
|
+
updated: z.string().default("2026-05-18T05:04:24.675Z"),
|
|
2597
2597
|
guardrail_config: z.nullable(
|
|
2598
2598
|
z.union([
|
|
2599
2599
|
z.lazy(() =>
|
|
@@ -2809,8 +2809,8 @@ export const UpdateEvalResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
2809
2809
|
> = z.object({
|
|
2810
2810
|
_id: z.string(),
|
|
2811
2811
|
description: z.string(),
|
|
2812
|
-
created: z.string().default("2026-05-
|
|
2813
|
-
updated: z.string().default("2026-05-
|
|
2812
|
+
created: z.string().default("2026-05-18T05:04:24.675Z"),
|
|
2813
|
+
updated: z.string().default("2026-05-18T05:04:24.675Z"),
|
|
2814
2814
|
guardrail_config: z.nullable(
|
|
2815
2815
|
z.union([
|
|
2816
2816
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -2976,8 +2976,8 @@ export const UpdateEvalResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
2976
2976
|
> = z.object({
|
|
2977
2977
|
_id: z.string(),
|
|
2978
2978
|
description: z.string(),
|
|
2979
|
-
created: z.string().default("2026-05-
|
|
2980
|
-
updated: z.string().default("2026-05-
|
|
2979
|
+
created: z.string().default("2026-05-18T05:04:24.675Z"),
|
|
2980
|
+
updated: z.string().default("2026-05-18T05:04:24.675Z"),
|
|
2981
2981
|
guardrail_config: z.nullable(
|
|
2982
2982
|
z.union([
|
|
2983
2983
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsBoolean$inboundSchema),
|
|
@@ -3128,8 +3128,8 @@ export const UpdateEvalResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
3128
3128
|
> = z.object({
|
|
3129
3129
|
_id: z.string(),
|
|
3130
3130
|
description: z.string(),
|
|
3131
|
-
created: z.string().default("2026-05-
|
|
3132
|
-
updated: z.string().default("2026-05-
|
|
3131
|
+
created: z.string().default("2026-05-18T05:04:24.675Z"),
|
|
3132
|
+
updated: z.string().default("2026-05-18T05:04:24.675Z"),
|
|
3133
3133
|
guardrail_config: z.nullable(
|
|
3134
3134
|
z.union([
|
|
3135
3135
|
z.lazy(() => UpdateEvalGuardrailConfigBoolean$inboundSchema),
|
|
@@ -3489,8 +3489,8 @@ export const UpdateEvalLlm2$inboundSchema: z.ZodType<
|
|
|
3489
3489
|
> = z.object({
|
|
3490
3490
|
_id: z.string(),
|
|
3491
3491
|
description: z.string(),
|
|
3492
|
-
created: z.string().default("2026-05-
|
|
3493
|
-
updated: z.string().default("2026-05-
|
|
3492
|
+
created: z.string().default("2026-05-18T05:04:24.675Z"),
|
|
3493
|
+
updated: z.string().default("2026-05-18T05:04:24.675Z"),
|
|
3494
3494
|
guardrail_config: z.nullable(
|
|
3495
3495
|
z.union([
|
|
3496
3496
|
z.lazy(() =>
|
|
@@ -3698,8 +3698,8 @@ export const UpdateEvalLlm1$inboundSchema: z.ZodType<
|
|
|
3698
3698
|
> = z.object({
|
|
3699
3699
|
_id: z.string(),
|
|
3700
3700
|
description: z.string(),
|
|
3701
|
-
created: z.string().default("2026-05-
|
|
3702
|
-
updated: z.string().default("2026-05-
|
|
3701
|
+
created: z.string().default("2026-05-18T05:04:24.675Z"),
|
|
3702
|
+
updated: z.string().default("2026-05-18T05:04:24.675Z"),
|
|
3703
3703
|
guardrail_config: z.nullable(
|
|
3704
3704
|
z.union([
|
|
3705
3705
|
z.lazy(() =>
|
|
@@ -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-15T03:37:24.790Z",
|
|
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
|
-
}
|