@orq-ai/node 4.10.2 → 4.10.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/createfilerequest.d.ts +1 -1
- package/models/components/reasoningpart.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/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/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/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/updatetool.js +7 -7
- package/package.json +1 -1
- package/packages/orq-rc/src/funcs/filesDelete.ts +3 -0
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/models/components/apikey.ts +19 -19
- package/packages/orq-rc/src/models/components/createapikeyrequest.ts +4 -4
- package/packages/orq-rc/src/models/components/createapikeyresponse.ts +4 -4
- package/packages/orq-rc/src/models/components/createfilerequest.ts +15 -6
- package/packages/orq-rc/src/models/components/createfileresponse.ts +5 -2
- package/packages/orq-rc/src/models/components/createidentityrequest.ts +27 -3
- package/packages/orq-rc/src/models/components/createidentityresponse.ts +5 -2
- package/packages/orq-rc/src/models/components/createprojectrequest.ts +3 -3
- package/packages/orq-rc/src/models/components/createprojectresponse.ts +2 -2
- package/packages/orq-rc/src/models/components/createskillrequest.ts +3 -3
- package/packages/orq-rc/src/models/components/createskillresponse.ts +2 -2
- package/packages/orq-rc/src/models/components/file.ts +24 -12
- package/packages/orq-rc/src/models/components/getapikeyresponse.ts +2 -2
- package/packages/orq-rc/src/models/components/getfilecontentresponse.ts +5 -2
- package/packages/orq-rc/src/models/components/getfileresponse.ts +5 -2
- package/packages/orq-rc/src/models/components/getprojectresponse.ts +2 -2
- package/packages/orq-rc/src/models/components/getskillresponse.ts +2 -2
- package/packages/orq-rc/src/models/components/identity.ts +55 -10
- package/packages/orq-rc/src/models/components/identitymetrics.ts +20 -8
- package/packages/orq-rc/src/models/components/listapikeysresponse.ts +6 -6
- package/packages/orq-rc/src/models/components/listcapabilitiesresponse.ts +2 -2
- package/packages/orq-rc/src/models/components/listfilesresponse.ts +15 -6
- package/packages/orq-rc/src/models/components/listidentitiesresponse.ts +18 -6
- package/packages/orq-rc/src/models/components/listprojectsresponse.ts +6 -6
- package/packages/orq-rc/src/models/components/listskillsresponse.ts +6 -6
- package/packages/orq-rc/src/models/components/project.ts +16 -16
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/retrieveidentityresponse.ts +5 -2
- package/packages/orq-rc/src/models/components/singleproject.ts +7 -4
- package/packages/orq-rc/src/models/components/skill.ts +25 -25
- package/packages/orq-rc/src/models/components/updateapikeyrequest.ts +1 -8
- package/packages/orq-rc/src/models/components/updateapikeyresponse.ts +2 -2
- package/packages/orq-rc/src/models/components/updatefilerequest.ts +6 -7
- package/packages/orq-rc/src/models/components/updatefileresponse.ts +5 -2
- package/packages/orq-rc/src/models/components/updateidentityrequest.ts +18 -3
- package/packages/orq-rc/src/models/components/updateidentityresponse.ts +5 -2
- package/packages/orq-rc/src/models/components/updateprojectrequest.ts +0 -11
- package/packages/orq-rc/src/models/components/updateprojectresponse.ts +2 -2
- package/packages/orq-rc/src/models/components/updateskillrequest.ts +0 -7
- package/packages/orq-rc/src/models/components/updateskillresponse.ts +2 -2
- package/packages/orq-rc/src/models/components/userowner.ts +7 -4
- package/packages/orq-rc/src/models/operations/createdataset.ts +5 -5
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +8 -8
- package/packages/orq-rc/src/models/operations/createdatasource.ts +6 -6
- package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/createknowledge.ts +4 -4
- package/packages/orq-rc/src/models/operations/creatememorydocument.ts +4 -4
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +4 -4
- package/packages/orq-rc/src/models/operations/createprompt.ts +1 -0
- package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
- package/packages/orq-rc/src/models/operations/deleteidentity.ts +3 -0
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +1 -0
- package/packages/orq-rc/src/models/operations/deployments.ts +1 -0
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +1 -0
- package/packages/orq-rc/src/models/operations/filecontent.ts +3 -0
- package/packages/orq-rc/src/models/operations/filedelete.ts +3 -0
- package/packages/orq-rc/src/models/operations/fileget.ts +3 -0
- package/packages/orq-rc/src/models/operations/filelist.ts +15 -0
- package/packages/orq-rc/src/models/operations/fileupdate.ts +3 -0
- package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +4 -4
- package/packages/orq-rc/src/models/operations/getallmemorystores.ts +4 -4
- package/packages/orq-rc/src/models/operations/getallprompts.ts +1 -0
- 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/getoneknowledge.ts +4 -4
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +1 -0
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +1 -0
- package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/packages/orq-rc/src/models/operations/listdatasets.ts +5 -5
- package/packages/orq-rc/src/models/operations/listdatasources.ts +3 -3
- package/packages/orq-rc/src/models/operations/listidentities.ts +24 -0
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +4 -4
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +1 -0
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -8
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +5 -5
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +3 -3
- package/packages/orq-rc/src/models/operations/retrieveidentity.ts +6 -0
- package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +4 -4
- package/packages/orq-rc/src/models/operations/retrievememorystore.ts +4 -4
- 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/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +8 -8
- package/packages/orq-rc/src/models/operations/updatedataset.ts +5 -5
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +3 -3
- package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/updateidentity.ts +3 -0
- package/packages/orq-rc/src/models/operations/updateknowledge.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatememorydocument.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +4 -4
- package/packages/orq-rc/src/models/operations/updateprompt.ts +1 -0
- package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
- package/packages/orq-rc/src/sdk/files.ts +3 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/createfilerequest.ts +1 -1
- package/src/models/components/reasoningpart.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/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/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/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/updatetool.ts +7 -7
|
@@ -9,7 +9,10 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
export type SingleProject = {
|
|
12
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Project ID this API key is scoped to.
|
|
14
|
+
*/
|
|
15
|
+
projectId: string;
|
|
13
16
|
};
|
|
14
17
|
|
|
15
18
|
/** @internal */
|
|
@@ -18,7 +21,7 @@ export const SingleProject$inboundSchema: z.ZodType<
|
|
|
18
21
|
z.ZodTypeDef,
|
|
19
22
|
unknown
|
|
20
23
|
> = z.object({
|
|
21
|
-
project_id: z.string()
|
|
24
|
+
project_id: z.string(),
|
|
22
25
|
}).transform((v) => {
|
|
23
26
|
return remap$(v, {
|
|
24
27
|
"project_id": "projectId",
|
|
@@ -26,7 +29,7 @@ export const SingleProject$inboundSchema: z.ZodType<
|
|
|
26
29
|
});
|
|
27
30
|
/** @internal */
|
|
28
31
|
export type SingleProject$Outbound = {
|
|
29
|
-
project_id
|
|
32
|
+
project_id: string;
|
|
30
33
|
};
|
|
31
34
|
|
|
32
35
|
/** @internal */
|
|
@@ -35,7 +38,7 @@ export const SingleProject$outboundSchema: z.ZodType<
|
|
|
35
38
|
z.ZodTypeDef,
|
|
36
39
|
SingleProject
|
|
37
40
|
> = z.object({
|
|
38
|
-
projectId: z.string()
|
|
41
|
+
projectId: z.string(),
|
|
39
42
|
}).transform((v) => {
|
|
40
43
|
return remap$(v, {
|
|
41
44
|
projectId: "project_id",
|
|
@@ -16,47 +16,47 @@ export type Skill = {
|
|
|
16
16
|
* `skill_01H...`. Use this value in retrieve, update, and delete
|
|
17
17
|
* requests.
|
|
18
18
|
*/
|
|
19
|
-
skillId
|
|
19
|
+
skillId: string;
|
|
20
20
|
/**
|
|
21
|
-
* Workspace-unique display name. Must start with a letter and may contain letters, numbers, underscores
|
|
21
|
+
* Workspace-unique display name. Must start with a letter and may contain letters, numbers, and underscores. Dashes and dots are not allowed.
|
|
22
22
|
*/
|
|
23
|
-
displayName
|
|
23
|
+
displayName: string;
|
|
24
24
|
/**
|
|
25
25
|
* Short human-readable summary of what the skill is for.
|
|
26
26
|
*/
|
|
27
|
-
description
|
|
27
|
+
description: string;
|
|
28
28
|
/**
|
|
29
29
|
* Free-form labels used for organization and filtering in clients.
|
|
30
30
|
*/
|
|
31
|
-
tags
|
|
31
|
+
tags: Array<string>;
|
|
32
32
|
/**
|
|
33
33
|
* Project that owns or contains the skill.
|
|
34
34
|
*/
|
|
35
|
-
projectId
|
|
35
|
+
projectId: string;
|
|
36
36
|
/**
|
|
37
37
|
* Project path where the skill is stored in the workspace.
|
|
38
38
|
*/
|
|
39
|
-
path
|
|
39
|
+
path: string;
|
|
40
40
|
/**
|
|
41
41
|
* Time when the skill was created.
|
|
42
42
|
*/
|
|
43
|
-
createdAt
|
|
43
|
+
createdAt: Date;
|
|
44
44
|
/**
|
|
45
45
|
* Time when the skill was last updated.
|
|
46
46
|
*/
|
|
47
|
-
updatedAt
|
|
47
|
+
updatedAt: Date;
|
|
48
48
|
/**
|
|
49
49
|
* User ID that created the skill.
|
|
50
50
|
*/
|
|
51
|
-
createdById
|
|
51
|
+
createdById: string;
|
|
52
52
|
/**
|
|
53
53
|
* User ID that last updated the skill.
|
|
54
54
|
*/
|
|
55
|
-
updatedById
|
|
55
|
+
updatedById: string;
|
|
56
56
|
/**
|
|
57
57
|
* Instruction body executed or reused by clients that load this skill.
|
|
58
58
|
*/
|
|
59
|
-
instructions
|
|
59
|
+
instructions: string;
|
|
60
60
|
/**
|
|
61
61
|
* Latest semver assigned by the activity log. Stamped on the document
|
|
62
62
|
*
|
|
@@ -64,28 +64,28 @@ export type Skill = {
|
|
|
64
64
|
* by CreateSkill / UpdateSkill so reads return it without joining
|
|
65
65
|
* workspaces.activities.
|
|
66
66
|
*/
|
|
67
|
-
version
|
|
67
|
+
version: string;
|
|
68
68
|
};
|
|
69
69
|
|
|
70
70
|
/** @internal */
|
|
71
71
|
export const Skill$inboundSchema: z.ZodType<Skill, z.ZodTypeDef, unknown> = z
|
|
72
72
|
.object({
|
|
73
|
-
skill_id: z.string()
|
|
74
|
-
display_name: z.string()
|
|
75
|
-
description: z.string()
|
|
76
|
-
tags: z.array(z.string())
|
|
77
|
-
project_id: z.string()
|
|
78
|
-
path: z.string()
|
|
73
|
+
skill_id: z.string(),
|
|
74
|
+
display_name: z.string(),
|
|
75
|
+
description: z.string(),
|
|
76
|
+
tags: z.array(z.string()),
|
|
77
|
+
project_id: z.string(),
|
|
78
|
+
path: z.string(),
|
|
79
79
|
created_at: z.string().datetime({ offset: true }).transform(v =>
|
|
80
80
|
new Date(v)
|
|
81
|
-
)
|
|
81
|
+
),
|
|
82
82
|
updated_at: z.string().datetime({ offset: true }).transform(v =>
|
|
83
83
|
new Date(v)
|
|
84
|
-
)
|
|
85
|
-
created_by_id: z.string()
|
|
86
|
-
updated_by_id: z.string()
|
|
87
|
-
instructions: z.string()
|
|
88
|
-
version: z.string()
|
|
84
|
+
),
|
|
85
|
+
created_by_id: z.string(),
|
|
86
|
+
updated_by_id: z.string(),
|
|
87
|
+
instructions: z.string(),
|
|
88
|
+
version: z.string(),
|
|
89
89
|
}).transform((v) => {
|
|
90
90
|
return remap$(v, {
|
|
91
91
|
"skill_id": "skillId",
|
|
@@ -16,10 +16,6 @@ import {
|
|
|
16
16
|
} from "./projectscope.js";
|
|
17
17
|
|
|
18
18
|
export type UpdateApiKeyRequest = {
|
|
19
|
-
/**
|
|
20
|
-
* API key id to update.
|
|
21
|
-
*/
|
|
22
|
-
apiKeyId?: string | undefined;
|
|
23
19
|
/**
|
|
24
20
|
* New name. Omit to keep current.
|
|
25
21
|
*/
|
|
@@ -33,7 +29,7 @@ export type UpdateApiKeyRequest = {
|
|
|
33
29
|
* `PERMISSION_MODE_RESTRICTED`; ignored otherwise. Provide an empty
|
|
34
30
|
* map to clear. See `ApiKey.access` for the full catalog of valid
|
|
35
31
|
* keys (Domain.id) and AccessLevel string values, or fetch the
|
|
36
|
-
* live catalog via the
|
|
32
|
+
* live catalog via the capability catalog endpoint.
|
|
37
33
|
*/
|
|
38
34
|
access?: { [k: string]: number } | undefined;
|
|
39
35
|
/**
|
|
@@ -56,7 +52,6 @@ export type UpdateApiKeyRequest = {
|
|
|
56
52
|
|
|
57
53
|
/** @internal */
|
|
58
54
|
export type UpdateApiKeyRequest$Outbound = {
|
|
59
|
-
api_key_id?: string | undefined;
|
|
60
55
|
name?: string | undefined;
|
|
61
56
|
status?: string | undefined;
|
|
62
57
|
permission_mode?: string | undefined;
|
|
@@ -72,7 +67,6 @@ export const UpdateApiKeyRequest$outboundSchema: z.ZodType<
|
|
|
72
67
|
z.ZodTypeDef,
|
|
73
68
|
UpdateApiKeyRequest
|
|
74
69
|
> = z.object({
|
|
75
|
-
apiKeyId: z.string().optional(),
|
|
76
70
|
name: z.string().optional(),
|
|
77
71
|
status: ApiKeyStatus$outboundSchema.optional(),
|
|
78
72
|
permissionMode: PermissionMode$outboundSchema.optional(),
|
|
@@ -82,7 +76,6 @@ export const UpdateApiKeyRequest$outboundSchema: z.ZodType<
|
|
|
82
76
|
clearExpiresAt: z.boolean().optional(),
|
|
83
77
|
}).transform((v) => {
|
|
84
78
|
return remap$(v, {
|
|
85
|
-
apiKeyId: "api_key_id",
|
|
86
79
|
permissionMode: "permission_mode",
|
|
87
80
|
projectScope: "project_scope",
|
|
88
81
|
expiresAt: "expires_at",
|
|
@@ -13,7 +13,7 @@ export type UpdateApiKeyResponse = {
|
|
|
13
13
|
/**
|
|
14
14
|
* Updated api-key.
|
|
15
15
|
*/
|
|
16
|
-
apiKey
|
|
16
|
+
apiKey: ApiKey;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
/** @internal */
|
|
@@ -22,7 +22,7 @@ export const UpdateApiKeyResponse$inboundSchema: z.ZodType<
|
|
|
22
22
|
z.ZodTypeDef,
|
|
23
23
|
unknown
|
|
24
24
|
> = z.object({
|
|
25
|
-
api_key: ApiKey$inboundSchema
|
|
25
|
+
api_key: ApiKey$inboundSchema,
|
|
26
26
|
}).transform((v) => {
|
|
27
27
|
return remap$(v, {
|
|
28
28
|
"api_key": "apiKey",
|
|
@@ -6,14 +6,15 @@ import * as z from "zod/v3";
|
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
|
|
8
8
|
export type UpdateFileRequest = {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
/**
|
|
10
|
+
* New display file name, including extension when available.
|
|
11
|
+
*/
|
|
12
|
+
fileName: string;
|
|
11
13
|
};
|
|
12
14
|
|
|
13
15
|
/** @internal */
|
|
14
16
|
export type UpdateFileRequest$Outbound = {
|
|
15
|
-
|
|
16
|
-
file_name?: string | undefined;
|
|
17
|
+
file_name: string;
|
|
17
18
|
};
|
|
18
19
|
|
|
19
20
|
/** @internal */
|
|
@@ -22,11 +23,9 @@ export const UpdateFileRequest$outboundSchema: z.ZodType<
|
|
|
22
23
|
z.ZodTypeDef,
|
|
23
24
|
UpdateFileRequest
|
|
24
25
|
> = z.object({
|
|
25
|
-
|
|
26
|
-
fileName: z.string().optional(),
|
|
26
|
+
fileName: z.string(),
|
|
27
27
|
}).transform((v) => {
|
|
28
28
|
return remap$(v, {
|
|
29
|
-
fileId: "file_id",
|
|
30
29
|
fileName: "file_name",
|
|
31
30
|
});
|
|
32
31
|
});
|
|
@@ -9,7 +9,10 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
9
9
|
import { FileT, FileT$inboundSchema } from "./file.js";
|
|
10
10
|
|
|
11
11
|
export type UpdateFileResponse = {
|
|
12
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Updated file metadata.
|
|
14
|
+
*/
|
|
15
|
+
file: FileT;
|
|
13
16
|
};
|
|
14
17
|
|
|
15
18
|
/** @internal */
|
|
@@ -18,7 +21,7 @@ export const UpdateFileResponse$inboundSchema: z.ZodType<
|
|
|
18
21
|
z.ZodTypeDef,
|
|
19
22
|
unknown
|
|
20
23
|
> = z.object({
|
|
21
|
-
file: FileT$inboundSchema
|
|
24
|
+
file: FileT$inboundSchema,
|
|
22
25
|
});
|
|
23
26
|
|
|
24
27
|
export function updateFileResponseFromJSON(
|
|
@@ -5,14 +5,31 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Replacement custom JSON metadata.
|
|
10
|
+
*/
|
|
8
11
|
export type UpdateIdentityRequestMetadata = {};
|
|
9
12
|
|
|
10
13
|
export type UpdateIdentityRequest = {
|
|
11
|
-
|
|
14
|
+
/**
|
|
15
|
+
* New display name. Omit to keep the current display name.
|
|
16
|
+
*/
|
|
12
17
|
displayName?: string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* New email address. Omit to keep the current email.
|
|
20
|
+
*/
|
|
13
21
|
email?: string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* New avatar image URL. Omit to keep the current avatar URL.
|
|
24
|
+
*/
|
|
14
25
|
avatarUrl?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Replacement tag list. Leave empty to clear tags.
|
|
28
|
+
*/
|
|
15
29
|
tags?: Array<string> | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Replacement custom JSON metadata.
|
|
32
|
+
*/
|
|
16
33
|
metadata?: UpdateIdentityRequestMetadata | undefined;
|
|
17
34
|
};
|
|
18
35
|
|
|
@@ -38,7 +55,6 @@ export function updateIdentityRequestMetadataToJSON(
|
|
|
38
55
|
|
|
39
56
|
/** @internal */
|
|
40
57
|
export type UpdateIdentityRequest$Outbound = {
|
|
41
|
-
id?: string | undefined;
|
|
42
58
|
display_name?: string | undefined;
|
|
43
59
|
email?: string | undefined;
|
|
44
60
|
avatar_url?: string | undefined;
|
|
@@ -52,7 +68,6 @@ export const UpdateIdentityRequest$outboundSchema: z.ZodType<
|
|
|
52
68
|
z.ZodTypeDef,
|
|
53
69
|
UpdateIdentityRequest
|
|
54
70
|
> = z.object({
|
|
55
|
-
id: z.string().optional(),
|
|
56
71
|
displayName: z.string().optional(),
|
|
57
72
|
email: z.string().optional(),
|
|
58
73
|
avatarUrl: z.string().optional(),
|
|
@@ -9,7 +9,10 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
9
9
|
import { Identity, Identity$inboundSchema } from "./identity.js";
|
|
10
10
|
|
|
11
11
|
export type UpdateIdentityResponse = {
|
|
12
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Updated identity.
|
|
14
|
+
*/
|
|
15
|
+
identity: Identity;
|
|
13
16
|
};
|
|
14
17
|
|
|
15
18
|
/** @internal */
|
|
@@ -18,7 +21,7 @@ export const UpdateIdentityResponse$inboundSchema: z.ZodType<
|
|
|
18
21
|
z.ZodTypeDef,
|
|
19
22
|
unknown
|
|
20
23
|
> = z.object({
|
|
21
|
-
identity: Identity$inboundSchema
|
|
24
|
+
identity: Identity$inboundSchema,
|
|
22
25
|
});
|
|
23
26
|
|
|
24
27
|
export function updateIdentityResponseFromJSON(
|
|
@@ -3,13 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
6
|
|
|
8
7
|
export type UpdateProjectRequest = {
|
|
9
|
-
/**
|
|
10
|
-
* Project ID to update.
|
|
11
|
-
*/
|
|
12
|
-
projectId?: string | undefined;
|
|
13
8
|
/**
|
|
14
9
|
* New project name. Omit to keep the current name.
|
|
15
10
|
*/
|
|
@@ -29,7 +24,6 @@ export type UpdateProjectRequest = {
|
|
|
29
24
|
|
|
30
25
|
/** @internal */
|
|
31
26
|
export type UpdateProjectRequest$Outbound = {
|
|
32
|
-
project_id?: string | undefined;
|
|
33
27
|
name?: string | undefined;
|
|
34
28
|
teams?: Array<string> | undefined;
|
|
35
29
|
description?: string | undefined;
|
|
@@ -41,14 +35,9 @@ export const UpdateProjectRequest$outboundSchema: z.ZodType<
|
|
|
41
35
|
z.ZodTypeDef,
|
|
42
36
|
UpdateProjectRequest
|
|
43
37
|
> = z.object({
|
|
44
|
-
projectId: z.string().optional(),
|
|
45
38
|
name: z.string().optional(),
|
|
46
39
|
teams: z.array(z.string()).optional(),
|
|
47
40
|
description: z.string().optional(),
|
|
48
|
-
}).transform((v) => {
|
|
49
|
-
return remap$(v, {
|
|
50
|
-
projectId: "project_id",
|
|
51
|
-
});
|
|
52
41
|
});
|
|
53
42
|
|
|
54
43
|
export function updateProjectRequestToJSON(
|
|
@@ -12,7 +12,7 @@ export type UpdateProjectResponse = {
|
|
|
12
12
|
/**
|
|
13
13
|
* Updated project.
|
|
14
14
|
*/
|
|
15
|
-
project
|
|
15
|
+
project: Project;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
/** @internal */
|
|
@@ -21,7 +21,7 @@ export const UpdateProjectResponse$inboundSchema: z.ZodType<
|
|
|
21
21
|
z.ZodTypeDef,
|
|
22
22
|
unknown
|
|
23
23
|
> = z.object({
|
|
24
|
-
project: Project$inboundSchema
|
|
24
|
+
project: Project$inboundSchema,
|
|
25
25
|
});
|
|
26
26
|
|
|
27
27
|
export function updateProjectResponseFromJSON(
|
|
@@ -6,10 +6,6 @@ import * as z from "zod/v3";
|
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
|
|
8
8
|
export type UpdateSkillRequest = {
|
|
9
|
-
/**
|
|
10
|
-
* Skill ID to update.
|
|
11
|
-
*/
|
|
12
|
-
skillId?: string | undefined;
|
|
13
9
|
/**
|
|
14
10
|
* New workspace-unique display name. Omit to keep the current name.
|
|
15
11
|
*
|
|
@@ -43,7 +39,6 @@ export type UpdateSkillRequest = {
|
|
|
43
39
|
|
|
44
40
|
/** @internal */
|
|
45
41
|
export type UpdateSkillRequest$Outbound = {
|
|
46
|
-
skill_id?: string | undefined;
|
|
47
42
|
display_name?: string | undefined;
|
|
48
43
|
description?: string | undefined;
|
|
49
44
|
tags?: Array<string> | undefined;
|
|
@@ -58,7 +53,6 @@ export const UpdateSkillRequest$outboundSchema: z.ZodType<
|
|
|
58
53
|
z.ZodTypeDef,
|
|
59
54
|
UpdateSkillRequest
|
|
60
55
|
> = z.object({
|
|
61
|
-
skillId: z.string().optional(),
|
|
62
56
|
displayName: z.string().optional(),
|
|
63
57
|
description: z.string().optional(),
|
|
64
58
|
tags: z.array(z.string()).optional(),
|
|
@@ -67,7 +61,6 @@ export const UpdateSkillRequest$outboundSchema: z.ZodType<
|
|
|
67
61
|
projectId: z.string().optional(),
|
|
68
62
|
}).transform((v) => {
|
|
69
63
|
return remap$(v, {
|
|
70
|
-
skillId: "skill_id",
|
|
71
64
|
displayName: "display_name",
|
|
72
65
|
projectId: "project_id",
|
|
73
66
|
});
|
|
@@ -12,7 +12,7 @@ export type UpdateSkillResponse = {
|
|
|
12
12
|
/**
|
|
13
13
|
* Updated skill.
|
|
14
14
|
*/
|
|
15
|
-
skill
|
|
15
|
+
skill: Skill;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
/** @internal */
|
|
@@ -21,7 +21,7 @@ export const UpdateSkillResponse$inboundSchema: z.ZodType<
|
|
|
21
21
|
z.ZodTypeDef,
|
|
22
22
|
unknown
|
|
23
23
|
> = z.object({
|
|
24
|
-
skill: Skill$inboundSchema
|
|
24
|
+
skill: Skill$inboundSchema,
|
|
25
25
|
});
|
|
26
26
|
|
|
27
27
|
export function updateSkillResponseFromJSON(
|
|
@@ -9,7 +9,10 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
export type UserOwner = {
|
|
12
|
-
|
|
12
|
+
/**
|
|
13
|
+
* User ID that owns the API key.
|
|
14
|
+
*/
|
|
15
|
+
userId: string;
|
|
13
16
|
};
|
|
14
17
|
|
|
15
18
|
/** @internal */
|
|
@@ -18,7 +21,7 @@ export const UserOwner$inboundSchema: z.ZodType<
|
|
|
18
21
|
z.ZodTypeDef,
|
|
19
22
|
unknown
|
|
20
23
|
> = z.object({
|
|
21
|
-
user_id: z.string()
|
|
24
|
+
user_id: z.string(),
|
|
22
25
|
}).transform((v) => {
|
|
23
26
|
return remap$(v, {
|
|
24
27
|
"user_id": "userId",
|
|
@@ -26,7 +29,7 @@ export const UserOwner$inboundSchema: z.ZodType<
|
|
|
26
29
|
});
|
|
27
30
|
/** @internal */
|
|
28
31
|
export type UserOwner$Outbound = {
|
|
29
|
-
user_id
|
|
32
|
+
user_id: string;
|
|
30
33
|
};
|
|
31
34
|
|
|
32
35
|
/** @internal */
|
|
@@ -35,7 +38,7 @@ export const UserOwner$outboundSchema: z.ZodType<
|
|
|
35
38
|
z.ZodTypeDef,
|
|
36
39
|
UserOwner
|
|
37
40
|
> = z.object({
|
|
38
|
-
userId: z.string()
|
|
41
|
+
userId: z.string(),
|
|
39
42
|
}).transform((v) => {
|
|
40
43
|
return remap$(v, {
|
|
41
44
|
userId: "user_id",
|
|
@@ -54,11 +54,11 @@ export type CreateDatasetResponseBody = {
|
|
|
54
54
|
/**
|
|
55
55
|
* The unique identifier of the user who created the dataset
|
|
56
56
|
*/
|
|
57
|
-
createdById?: string | undefined;
|
|
57
|
+
createdById?: string | null | undefined;
|
|
58
58
|
/**
|
|
59
59
|
* The unique identifier of the user who last updated the dataset
|
|
60
60
|
*/
|
|
61
|
-
updatedById?: string | undefined;
|
|
61
|
+
updatedById?: string | null | undefined;
|
|
62
62
|
/**
|
|
63
63
|
* The date and time the resource was created
|
|
64
64
|
*/
|
|
@@ -133,12 +133,12 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
133
133
|
project_id: z.string(),
|
|
134
134
|
workspace_id: z.string(),
|
|
135
135
|
metadata: z.lazy(() => CreateDatasetMetadata$inboundSchema),
|
|
136
|
-
created_by_id: z.string().optional(),
|
|
137
|
-
updated_by_id: z.string().optional(),
|
|
136
|
+
created_by_id: z.nullable(z.string()).optional(),
|
|
137
|
+
updated_by_id: z.nullable(z.string()).optional(),
|
|
138
138
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
139
139
|
.optional(),
|
|
140
140
|
updated: z.string().datetime({ offset: true }).default(
|
|
141
|
-
"2026-06-
|
|
141
|
+
"2026-06-05T06:12:26.568Z",
|
|
142
142
|
).transform(v => new Date(v)),
|
|
143
143
|
}).transform((v) => {
|
|
144
144
|
return remap$(v, {
|
|
@@ -926,11 +926,11 @@ export type CreateDatasetItemResponseBody = {
|
|
|
926
926
|
/**
|
|
927
927
|
* The unique identifier of the user who created the dataset
|
|
928
928
|
*/
|
|
929
|
-
createdById?: string | undefined;
|
|
929
|
+
createdById?: string | null | undefined;
|
|
930
930
|
/**
|
|
931
931
|
* The unique identifier of the user who last updated the dataset
|
|
932
932
|
*/
|
|
933
|
-
updatedById?: string | undefined;
|
|
933
|
+
updatedById?: string | null | undefined;
|
|
934
934
|
/**
|
|
935
935
|
* The date and time the resource was created
|
|
936
936
|
*/
|
|
@@ -2355,7 +2355,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
|
|
|
2355
2355
|
),
|
|
2356
2356
|
reviewed_by_id: z.string(),
|
|
2357
2357
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2358
|
-
"2026-06-
|
|
2358
|
+
"2026-06-05T06:12:43.227Z",
|
|
2359
2359
|
).transform(v => new Date(v)),
|
|
2360
2360
|
type: z.literal("string_array"),
|
|
2361
2361
|
values: z.array(z.string()),
|
|
@@ -2400,7 +2400,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
|
|
|
2400
2400
|
source: CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
|
|
2401
2401
|
reviewed_by_id: z.string(),
|
|
2402
2402
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2403
|
-
"2026-06-
|
|
2403
|
+
"2026-06-05T06:12:43.226Z",
|
|
2404
2404
|
).transform(v => new Date(v)),
|
|
2405
2405
|
type: z.literal("number"),
|
|
2406
2406
|
value: z.number(),
|
|
@@ -2446,7 +2446,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
|
|
|
2446
2446
|
source: EvaluationsSource$inboundSchema.default("orq"),
|
|
2447
2447
|
reviewed_by_id: z.string(),
|
|
2448
2448
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2449
|
-
"2026-06-
|
|
2449
|
+
"2026-06-05T06:12:43.225Z",
|
|
2450
2450
|
).transform(v => new Date(v)),
|
|
2451
2451
|
type: z.literal("string"),
|
|
2452
2452
|
value: z.string(),
|
|
@@ -2524,12 +2524,12 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
|
|
|
2524
2524
|
).optional(),
|
|
2525
2525
|
dataset_id: z.string(),
|
|
2526
2526
|
snapshot_version: z.string().optional(),
|
|
2527
|
-
created_by_id: z.string().optional(),
|
|
2528
|
-
updated_by_id: z.string().optional(),
|
|
2527
|
+
created_by_id: z.nullable(z.string()).optional(),
|
|
2528
|
+
updated_by_id: z.nullable(z.string()).optional(),
|
|
2529
2529
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2530
2530
|
.optional(),
|
|
2531
2531
|
updated: z.string().datetime({ offset: true }).default(
|
|
2532
|
-
"2026-06-
|
|
2532
|
+
"2026-06-05T06:12:26.568Z",
|
|
2533
2533
|
).transform(v => new Date(v)),
|
|
2534
2534
|
}).transform((v) => {
|
|
2535
2535
|
return remap$(v, {
|
|
@@ -101,7 +101,7 @@ export type CreateDatasourceRequestBody = {
|
|
|
101
101
|
/**
|
|
102
102
|
* The description of the knowledge base
|
|
103
103
|
*/
|
|
104
|
-
description?: string | undefined;
|
|
104
|
+
description?: string | null | undefined;
|
|
105
105
|
/**
|
|
106
106
|
* The unique identifier of the file used for datasource creation. If provided, the file is immediately queued for chunking.
|
|
107
107
|
*/
|
|
@@ -144,7 +144,7 @@ export type CreateDatasourceResponseBody = {
|
|
|
144
144
|
/**
|
|
145
145
|
* The description of the knowledge base
|
|
146
146
|
*/
|
|
147
|
-
description?: string | undefined;
|
|
147
|
+
description?: string | null | undefined;
|
|
148
148
|
status: CreateDatasourceStatus;
|
|
149
149
|
/**
|
|
150
150
|
* The unique identifier of the file used to create the datasource.
|
|
@@ -336,7 +336,7 @@ export function chunkingOptionsToJSON(
|
|
|
336
336
|
/** @internal */
|
|
337
337
|
export type CreateDatasourceRequestBody$Outbound = {
|
|
338
338
|
display_name?: string | undefined;
|
|
339
|
-
description?: string | undefined;
|
|
339
|
+
description?: string | null | undefined;
|
|
340
340
|
file_id?: string | undefined;
|
|
341
341
|
chunking_options?: ChunkingOptions$Outbound | undefined;
|
|
342
342
|
};
|
|
@@ -348,7 +348,7 @@ export const CreateDatasourceRequestBody$outboundSchema: z.ZodType<
|
|
|
348
348
|
CreateDatasourceRequestBody
|
|
349
349
|
> = z.object({
|
|
350
350
|
displayName: z.string().optional(),
|
|
351
|
-
description: z.string().optional(),
|
|
351
|
+
description: z.nullable(z.string()).optional(),
|
|
352
352
|
fileId: z.string().optional(),
|
|
353
353
|
chunkingOptions: z.lazy(() => ChunkingOptions$outboundSchema).optional(),
|
|
354
354
|
}).transform((v) => {
|
|
@@ -409,9 +409,9 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
409
409
|
z.ZodTypeDef,
|
|
410
410
|
unknown
|
|
411
411
|
> = z.object({
|
|
412
|
-
_id: z.string().default("
|
|
412
|
+
_id: z.string().default("01KTB6K60JRA6Z0WS8753R5G4Y"),
|
|
413
413
|
display_name: z.string(),
|
|
414
|
-
description: z.string().optional(),
|
|
414
|
+
description: z.nullable(z.string()).optional(),
|
|
415
415
|
status: CreateDatasourceStatus$inboundSchema,
|
|
416
416
|
file_id: z.nullable(z.string()).optional(),
|
|
417
417
|
created: z.string(),
|