@orq-ai/node 4.10.2 → 4.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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,7 @@ export type CreateSkillRequest = {
|
|
|
9
9
|
/**
|
|
10
10
|
* Workspace-unique display name. Must start with a letter and may contain letters, numbers, and underscores. Dashes and dots are not allowed.
|
|
11
11
|
*/
|
|
12
|
-
displayName
|
|
12
|
+
displayName: string;
|
|
13
13
|
/**
|
|
14
14
|
* Short human-readable summary of what the skill is for.
|
|
15
15
|
*/
|
|
@@ -34,7 +34,7 @@ export type CreateSkillRequest = {
|
|
|
34
34
|
|
|
35
35
|
/** @internal */
|
|
36
36
|
export type CreateSkillRequest$Outbound = {
|
|
37
|
-
display_name
|
|
37
|
+
display_name: string;
|
|
38
38
|
description?: string | undefined;
|
|
39
39
|
tags?: Array<string> | undefined;
|
|
40
40
|
path?: string | undefined;
|
|
@@ -48,7 +48,7 @@ export const CreateSkillRequest$outboundSchema: z.ZodType<
|
|
|
48
48
|
z.ZodTypeDef,
|
|
49
49
|
CreateSkillRequest
|
|
50
50
|
> = z.object({
|
|
51
|
-
displayName: z.string()
|
|
51
|
+
displayName: z.string(),
|
|
52
52
|
description: z.string().optional(),
|
|
53
53
|
tags: z.array(z.string()).optional(),
|
|
54
54
|
path: z.string().optional(),
|
|
@@ -12,7 +12,7 @@ export type CreateSkillResponse = {
|
|
|
12
12
|
/**
|
|
13
13
|
* Newly created skill.
|
|
14
14
|
*/
|
|
15
|
-
skill
|
|
15
|
+
skill: Skill;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
/** @internal */
|
|
@@ -21,7 +21,7 @@ export const CreateSkillResponse$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 createSkillResponseFromJSON(
|
|
@@ -10,28 +10,40 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
10
10
|
import { FilePurpose, FilePurpose$inboundSchema } from "./filepurpose.js";
|
|
11
11
|
|
|
12
12
|
export type FileT = {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Unique file identifier assigned by ORQ.
|
|
15
|
+
*/
|
|
16
|
+
fileId: string;
|
|
17
|
+
purpose: FilePurpose;
|
|
18
|
+
/**
|
|
19
|
+
* Display file name, including extension when available.
|
|
20
|
+
*/
|
|
21
|
+
fileName: string;
|
|
22
|
+
/**
|
|
23
|
+
* Size of the uploaded file in bytes.
|
|
24
|
+
*/
|
|
25
|
+
bytes: string;
|
|
26
|
+
/**
|
|
27
|
+
* Time when the file was created.
|
|
28
|
+
*/
|
|
29
|
+
createdAt: Date;
|
|
18
30
|
/**
|
|
19
31
|
* Identifier of the project the file belongs to. Files are project-scoped; an API key may only access files in projects it is authorized for.
|
|
20
32
|
*/
|
|
21
|
-
projectId
|
|
33
|
+
projectId: string;
|
|
22
34
|
};
|
|
23
35
|
|
|
24
36
|
/** @internal */
|
|
25
37
|
export const FileT$inboundSchema: z.ZodType<FileT, z.ZodTypeDef, unknown> = z
|
|
26
38
|
.object({
|
|
27
|
-
file_id: z.string()
|
|
28
|
-
purpose: FilePurpose$inboundSchema
|
|
29
|
-
file_name: z.string()
|
|
30
|
-
bytes: z.string()
|
|
39
|
+
file_id: z.string(),
|
|
40
|
+
purpose: FilePurpose$inboundSchema,
|
|
41
|
+
file_name: z.string(),
|
|
42
|
+
bytes: z.string(),
|
|
31
43
|
created_at: z.string().datetime({ offset: true }).transform(v =>
|
|
32
44
|
new Date(v)
|
|
33
|
-
)
|
|
34
|
-
project_id: z.string()
|
|
45
|
+
),
|
|
46
|
+
project_id: z.string(),
|
|
35
47
|
}).transform((v) => {
|
|
36
48
|
return remap$(v, {
|
|
37
49
|
"file_id": "fileId",
|
|
@@ -13,7 +13,7 @@ export type GetApiKeyResponse = {
|
|
|
13
13
|
/**
|
|
14
14
|
* Requested api-key. Raw token never included.
|
|
15
15
|
*/
|
|
16
|
-
apiKey
|
|
16
|
+
apiKey: ApiKey;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
/** @internal */
|
|
@@ -22,7 +22,7 @@ export const GetApiKeyResponse$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",
|
|
@@ -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 GetFileContentResponse = {
|
|
12
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Presigned URL that can be used to download the file content.
|
|
14
|
+
*/
|
|
15
|
+
downloadUrl: string;
|
|
13
16
|
};
|
|
14
17
|
|
|
15
18
|
/** @internal */
|
|
@@ -18,7 +21,7 @@ export const GetFileContentResponse$inboundSchema: z.ZodType<
|
|
|
18
21
|
z.ZodTypeDef,
|
|
19
22
|
unknown
|
|
20
23
|
> = z.object({
|
|
21
|
-
download_url: z.string()
|
|
24
|
+
download_url: z.string(),
|
|
22
25
|
}).transform((v) => {
|
|
23
26
|
return remap$(v, {
|
|
24
27
|
"download_url": "downloadUrl",
|
|
@@ -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 GetFileResponse = {
|
|
12
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Requested file metadata.
|
|
14
|
+
*/
|
|
15
|
+
file: FileT;
|
|
13
16
|
};
|
|
14
17
|
|
|
15
18
|
/** @internal */
|
|
@@ -18,7 +21,7 @@ export const GetFileResponse$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 getFileResponseFromJSON(
|
|
@@ -12,7 +12,7 @@ export type GetProjectResponse = {
|
|
|
12
12
|
/**
|
|
13
13
|
* Requested project.
|
|
14
14
|
*/
|
|
15
|
-
project
|
|
15
|
+
project: Project;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
/** @internal */
|
|
@@ -21,7 +21,7 @@ export const GetProjectResponse$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 getProjectResponseFromJSON(
|
|
@@ -12,7 +12,7 @@ export type GetSkillResponse = {
|
|
|
12
12
|
/**
|
|
13
13
|
* Requested skill.
|
|
14
14
|
*/
|
|
15
|
-
skill
|
|
15
|
+
skill: Skill;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
/** @internal */
|
|
@@ -21,7 +21,7 @@ export const GetSkillResponse$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 getSkillResponseFromJSON(
|
|
@@ -12,19 +12,64 @@ import {
|
|
|
12
12
|
IdentityMetrics$inboundSchema,
|
|
13
13
|
} from "./identitymetrics.js";
|
|
14
14
|
|
|
15
|
+
/**
|
|
16
|
+
* Custom JSON metadata stored with the identity.
|
|
17
|
+
*/
|
|
15
18
|
export type Metadata = {};
|
|
16
19
|
|
|
17
20
|
export type Identity = {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Unique identity identifier assigned by ORQ. Returned as `_id` for
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* compatibility with the v1 identity API.
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Customer-provided stable identifier for this identity. This value is
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* required on create and is unique within the workspace.
|
|
33
|
+
*/
|
|
34
|
+
externalId: string;
|
|
35
|
+
/**
|
|
36
|
+
* Workspace that owns the identity.
|
|
37
|
+
*/
|
|
38
|
+
workspaceId: string;
|
|
39
|
+
/**
|
|
40
|
+
* Human-readable display name for the identity.
|
|
41
|
+
*/
|
|
21
42
|
displayName?: string | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Email address associated with the identity.
|
|
45
|
+
*/
|
|
22
46
|
email?: string | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* URL of the identity avatar image.
|
|
49
|
+
*/
|
|
23
50
|
avatarUrl?: string | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Free-form labels used to organize and filter identities.
|
|
53
|
+
*/
|
|
24
54
|
tags?: Array<string> | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* Custom JSON metadata stored with the identity.
|
|
57
|
+
*/
|
|
25
58
|
metadata?: Metadata | undefined;
|
|
26
|
-
|
|
27
|
-
|
|
59
|
+
/**
|
|
60
|
+
* ISO timestamp for when the identity was created.
|
|
61
|
+
*/
|
|
62
|
+
created: string;
|
|
63
|
+
/**
|
|
64
|
+
* ISO timestamp for when the identity was last updated.
|
|
65
|
+
*/
|
|
66
|
+
updated: string;
|
|
67
|
+
/**
|
|
68
|
+
* Optional usage and cost metrics. Present only when requested with
|
|
69
|
+
*
|
|
70
|
+
* @remarks
|
|
71
|
+
* `include_metrics`.
|
|
72
|
+
*/
|
|
28
73
|
metrics?: IdentityMetrics | undefined;
|
|
29
74
|
};
|
|
30
75
|
|
|
@@ -51,16 +96,16 @@ export const Identity$inboundSchema: z.ZodType<
|
|
|
51
96
|
z.ZodTypeDef,
|
|
52
97
|
unknown
|
|
53
98
|
> = z.object({
|
|
54
|
-
_id: z.string()
|
|
55
|
-
external_id: z.string()
|
|
56
|
-
workspace_id: z.string()
|
|
99
|
+
_id: z.string(),
|
|
100
|
+
external_id: z.string(),
|
|
101
|
+
workspace_id: z.string(),
|
|
57
102
|
display_name: z.string().optional(),
|
|
58
103
|
email: z.string().optional(),
|
|
59
104
|
avatar_url: z.string().optional(),
|
|
60
105
|
tags: z.array(z.string()).optional(),
|
|
61
106
|
metadata: z.lazy(() => Metadata$inboundSchema).optional(),
|
|
62
|
-
created: z.string()
|
|
63
|
-
updated: z.string()
|
|
107
|
+
created: z.string(),
|
|
108
|
+
updated: z.string(),
|
|
64
109
|
metrics: IdentityMetrics$inboundSchema.optional(),
|
|
65
110
|
}).transform((v) => {
|
|
66
111
|
return remap$(v, {
|
|
@@ -9,10 +9,22 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
export type IdentityMetrics = {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Total token count attributed to the identity.
|
|
14
|
+
*/
|
|
15
|
+
totalTokens: number;
|
|
16
|
+
/**
|
|
17
|
+
* Total cost attributed to the identity.
|
|
18
|
+
*/
|
|
19
|
+
totalCost: number;
|
|
20
|
+
/**
|
|
21
|
+
* Total request count attributed to the identity.
|
|
22
|
+
*/
|
|
23
|
+
totalRequests: number;
|
|
24
|
+
/**
|
|
25
|
+
* Fraction of attributed requests that failed.
|
|
26
|
+
*/
|
|
27
|
+
errorRate: number;
|
|
16
28
|
};
|
|
17
29
|
|
|
18
30
|
/** @internal */
|
|
@@ -21,10 +33,10 @@ export const IdentityMetrics$inboundSchema: z.ZodType<
|
|
|
21
33
|
z.ZodTypeDef,
|
|
22
34
|
unknown
|
|
23
35
|
> = z.object({
|
|
24
|
-
total_tokens: z.number()
|
|
25
|
-
total_cost: z.number()
|
|
26
|
-
total_requests: z.number()
|
|
27
|
-
error_rate: z.number()
|
|
36
|
+
total_tokens: z.number(),
|
|
37
|
+
total_cost: z.number(),
|
|
38
|
+
total_requests: z.number(),
|
|
39
|
+
error_rate: z.number(),
|
|
28
40
|
}).transform((v) => {
|
|
29
41
|
return remap$(v, {
|
|
30
42
|
"total_tokens": "totalTokens",
|
|
@@ -13,21 +13,21 @@ export type ListApiKeysResponse = {
|
|
|
13
13
|
/**
|
|
14
14
|
* Object discriminator for list responses; always `list`.
|
|
15
15
|
*/
|
|
16
|
-
object
|
|
16
|
+
object: string;
|
|
17
17
|
/**
|
|
18
18
|
* Page of api-keys, ordered newest first. `token_hash` and
|
|
19
19
|
*
|
|
20
20
|
* @remarks
|
|
21
21
|
* `api_key` are always elided in list responses.
|
|
22
22
|
*/
|
|
23
|
-
data
|
|
23
|
+
data: Array<ApiKey>;
|
|
24
24
|
/**
|
|
25
25
|
* Whether more api-keys are available in the selected pagination
|
|
26
26
|
*
|
|
27
27
|
* @remarks
|
|
28
28
|
* direction.
|
|
29
29
|
*/
|
|
30
|
-
hasMore
|
|
30
|
+
hasMore: boolean;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
/** @internal */
|
|
@@ -36,9 +36,9 @@ export const ListApiKeysResponse$inboundSchema: z.ZodType<
|
|
|
36
36
|
z.ZodTypeDef,
|
|
37
37
|
unknown
|
|
38
38
|
> = z.object({
|
|
39
|
-
object: z.string()
|
|
40
|
-
data: z.array(ApiKey$inboundSchema)
|
|
41
|
-
has_more: z.boolean()
|
|
39
|
+
object: z.string(),
|
|
40
|
+
data: z.array(ApiKey$inboundSchema),
|
|
41
|
+
has_more: z.boolean(),
|
|
42
42
|
}).transform((v) => {
|
|
43
43
|
return remap$(v, {
|
|
44
44
|
"has_more": "hasMore",
|
|
@@ -15,7 +15,7 @@ export type ListCapabilitiesResponse = {
|
|
|
15
15
|
* @remarks
|
|
16
16
|
* then platform, then gateway.
|
|
17
17
|
*/
|
|
18
|
-
domains
|
|
18
|
+
domains: Array<Domain>;
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
/** @internal */
|
|
@@ -24,7 +24,7 @@ export const ListCapabilitiesResponse$inboundSchema: z.ZodType<
|
|
|
24
24
|
z.ZodTypeDef,
|
|
25
25
|
unknown
|
|
26
26
|
> = z.object({
|
|
27
|
-
domains: z.array(Domain$inboundSchema)
|
|
27
|
+
domains: z.array(Domain$inboundSchema),
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
export function listCapabilitiesResponseFromJSON(
|
|
@@ -10,9 +10,18 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
10
10
|
import { FileT, FileT$inboundSchema } from "./file.js";
|
|
11
11
|
|
|
12
12
|
export type ListFilesResponse = {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Object discriminator for list responses; always `list`.
|
|
15
|
+
*/
|
|
16
|
+
object: string;
|
|
17
|
+
/**
|
|
18
|
+
* Page of files.
|
|
19
|
+
*/
|
|
20
|
+
data: Array<FileT>;
|
|
21
|
+
/**
|
|
22
|
+
* Whether more files are available in the selected pagination direction.
|
|
23
|
+
*/
|
|
24
|
+
hasMore: boolean;
|
|
16
25
|
};
|
|
17
26
|
|
|
18
27
|
/** @internal */
|
|
@@ -21,9 +30,9 @@ export const ListFilesResponse$inboundSchema: z.ZodType<
|
|
|
21
30
|
z.ZodTypeDef,
|
|
22
31
|
unknown
|
|
23
32
|
> = z.object({
|
|
24
|
-
object: z.string()
|
|
25
|
-
data: z.array(FileT$inboundSchema)
|
|
26
|
-
has_more: z.boolean()
|
|
33
|
+
object: z.string(),
|
|
34
|
+
data: z.array(FileT$inboundSchema),
|
|
35
|
+
has_more: z.boolean(),
|
|
27
36
|
}).transform((v) => {
|
|
28
37
|
return remap$(v, {
|
|
29
38
|
"has_more": "hasMore",
|
|
@@ -10,9 +10,21 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
10
10
|
import { Identity, Identity$inboundSchema } from "./identity.js";
|
|
11
11
|
|
|
12
12
|
export type ListIdentitiesResponse = {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Object discriminator for list responses; always `list`.
|
|
15
|
+
*/
|
|
16
|
+
object: string;
|
|
17
|
+
/**
|
|
18
|
+
* Page of identities.
|
|
19
|
+
*/
|
|
20
|
+
data: Array<Identity>;
|
|
21
|
+
/**
|
|
22
|
+
* Whether more identities are available in the selected pagination
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* direction.
|
|
26
|
+
*/
|
|
27
|
+
hasMore: boolean;
|
|
16
28
|
};
|
|
17
29
|
|
|
18
30
|
/** @internal */
|
|
@@ -21,9 +33,9 @@ export const ListIdentitiesResponse$inboundSchema: z.ZodType<
|
|
|
21
33
|
z.ZodTypeDef,
|
|
22
34
|
unknown
|
|
23
35
|
> = z.object({
|
|
24
|
-
object: z.string()
|
|
25
|
-
data: z.array(Identity$inboundSchema)
|
|
26
|
-
has_more: z.boolean()
|
|
36
|
+
object: z.string(),
|
|
37
|
+
data: z.array(Identity$inboundSchema),
|
|
38
|
+
has_more: z.boolean(),
|
|
27
39
|
}).transform((v) => {
|
|
28
40
|
return remap$(v, {
|
|
29
41
|
"has_more": "hasMore",
|
|
@@ -13,18 +13,18 @@ export type ListProjectsResponse = {
|
|
|
13
13
|
/**
|
|
14
14
|
* Object discriminator for list responses; always `list`.
|
|
15
15
|
*/
|
|
16
|
-
object
|
|
16
|
+
object: string;
|
|
17
17
|
/**
|
|
18
18
|
* Page of projects, ordered newest first.
|
|
19
19
|
*/
|
|
20
|
-
data
|
|
20
|
+
data: Array<Project>;
|
|
21
21
|
/**
|
|
22
22
|
* Whether more projects are available in the selected pagination
|
|
23
23
|
*
|
|
24
24
|
* @remarks
|
|
25
25
|
* direction.
|
|
26
26
|
*/
|
|
27
|
-
hasMore
|
|
27
|
+
hasMore: boolean;
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
/** @internal */
|
|
@@ -33,9 +33,9 @@ export const ListProjectsResponse$inboundSchema: z.ZodType<
|
|
|
33
33
|
z.ZodTypeDef,
|
|
34
34
|
unknown
|
|
35
35
|
> = z.object({
|
|
36
|
-
object: z.string()
|
|
37
|
-
data: z.array(Project$inboundSchema)
|
|
38
|
-
has_more: z.boolean()
|
|
36
|
+
object: z.string(),
|
|
37
|
+
data: z.array(Project$inboundSchema),
|
|
38
|
+
has_more: z.boolean(),
|
|
39
39
|
}).transform((v) => {
|
|
40
40
|
return remap$(v, {
|
|
41
41
|
"has_more": "hasMore",
|
|
@@ -13,18 +13,18 @@ export type ListSkillsResponse = {
|
|
|
13
13
|
/**
|
|
14
14
|
* Object discriminator for list responses; always `list`.
|
|
15
15
|
*/
|
|
16
|
-
object
|
|
16
|
+
object: string;
|
|
17
17
|
/**
|
|
18
18
|
* Page of skills, ordered newest first.
|
|
19
19
|
*/
|
|
20
|
-
data
|
|
20
|
+
data: Array<Skill>;
|
|
21
21
|
/**
|
|
22
22
|
* Whether more skills are available in the selected pagination
|
|
23
23
|
*
|
|
24
24
|
* @remarks
|
|
25
25
|
* direction.
|
|
26
26
|
*/
|
|
27
|
-
hasMore
|
|
27
|
+
hasMore: boolean;
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
/** @internal */
|
|
@@ -33,9 +33,9 @@ export const ListSkillsResponse$inboundSchema: z.ZodType<
|
|
|
33
33
|
z.ZodTypeDef,
|
|
34
34
|
unknown
|
|
35
35
|
> = z.object({
|
|
36
|
-
object: z.string()
|
|
37
|
-
data: z.array(Skill$inboundSchema)
|
|
38
|
-
has_more: z.boolean()
|
|
36
|
+
object: z.string(),
|
|
37
|
+
data: z.array(Skill$inboundSchema),
|
|
38
|
+
has_more: z.boolean(),
|
|
39
39
|
}).transform((v) => {
|
|
40
40
|
return remap$(v, {
|
|
41
41
|
"has_more": "hasMore",
|
|
@@ -15,44 +15,44 @@ export type Project = {
|
|
|
15
15
|
* @remarks
|
|
16
16
|
* retrieve, update, and delete requests.
|
|
17
17
|
*/
|
|
18
|
-
projectId
|
|
18
|
+
projectId: string;
|
|
19
19
|
/**
|
|
20
20
|
* Human-readable project name.
|
|
21
21
|
*/
|
|
22
|
-
name
|
|
22
|
+
name: string;
|
|
23
23
|
/**
|
|
24
24
|
* Stable project key generated from the name and used by internal
|
|
25
25
|
*
|
|
26
26
|
* @remarks
|
|
27
27
|
* workspace navigation.
|
|
28
28
|
*/
|
|
29
|
-
key
|
|
29
|
+
key: string;
|
|
30
30
|
/**
|
|
31
31
|
* Whether the project is archived and hidden from normal active
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
34
|
* project lists.
|
|
35
35
|
*/
|
|
36
|
-
isArchived
|
|
36
|
+
isArchived: boolean;
|
|
37
37
|
/**
|
|
38
38
|
* Whether this is the workspace default project.
|
|
39
39
|
*/
|
|
40
|
-
isDefault
|
|
40
|
+
isDefault: boolean;
|
|
41
41
|
/**
|
|
42
42
|
* Team identifiers associated with the project for access and
|
|
43
43
|
*
|
|
44
44
|
* @remarks
|
|
45
45
|
* organization.
|
|
46
46
|
*/
|
|
47
|
-
teams
|
|
47
|
+
teams: Array<string>;
|
|
48
48
|
/**
|
|
49
49
|
* Time when the project was created.
|
|
50
50
|
*/
|
|
51
|
-
createdAt
|
|
51
|
+
createdAt: Date;
|
|
52
52
|
/**
|
|
53
53
|
* Time when the project was last updated.
|
|
54
54
|
*/
|
|
55
|
-
updatedAt
|
|
55
|
+
updatedAt: Date;
|
|
56
56
|
/**
|
|
57
57
|
* User ID that created the project.
|
|
58
58
|
*/
|
|
@@ -70,18 +70,18 @@ export type Project = {
|
|
|
70
70
|
/** @internal */
|
|
71
71
|
export const Project$inboundSchema: z.ZodType<Project, z.ZodTypeDef, unknown> =
|
|
72
72
|
z.object({
|
|
73
|
-
project_id: z.string()
|
|
74
|
-
name: z.string()
|
|
75
|
-
key: z.string()
|
|
76
|
-
is_archived: z.boolean()
|
|
77
|
-
is_default: z.boolean()
|
|
78
|
-
teams: z.array(z.string())
|
|
73
|
+
project_id: z.string(),
|
|
74
|
+
name: z.string(),
|
|
75
|
+
key: z.string(),
|
|
76
|
+
is_archived: z.boolean(),
|
|
77
|
+
is_default: z.boolean(),
|
|
78
|
+
teams: z.array(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
|
-
)
|
|
84
|
+
),
|
|
85
85
|
created_by_id: z.string().optional(),
|
|
86
86
|
updated_by_id: z.string().optional(),
|
|
87
87
|
description: z.string().optional(),
|
|
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
|
|
|
40
40
|
z.ZodTypeDef,
|
|
41
41
|
unknown
|
|
42
42
|
> = z.object({
|
|
43
|
-
_id: z.string().default("
|
|
43
|
+
_id: z.string().default("reasoning_01ktb6k5hnyksmjd51bj2ftxx2"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -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 RetrieveIdentityResponse = {
|
|
12
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Requested identity.
|
|
14
|
+
*/
|
|
15
|
+
identity: Identity;
|
|
13
16
|
};
|
|
14
17
|
|
|
15
18
|
/** @internal */
|
|
@@ -18,7 +21,7 @@ export const RetrieveIdentityResponse$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 retrieveIdentityResponseFromJSON(
|