@orq-ai/node 4.14.0 → 4.14.1
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/evaluatorresponsefunction.js +2 -2
- package/models/components/evaluatorresponsehttp.js +2 -2
- package/models/components/evaluatorresponsejsonschema.js +2 -2
- package/models/components/evaluatorresponsellm.js +2 -2
- package/models/components/evaluatorresponsepython.js +2 -2
- package/models/components/evaluatorresponseragas.js +2 -2
- package/models/components/evaluatorresponsetypescript.js +2 -2
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createannotationqueue.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createtool.js +4 -4
- package/models/operations/getalltools.js +4 -4
- package/models/operations/geteval.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listannotationqueues.js +1 -1
- package/models/operations/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrieveannotationqueue.js +1 -1
- package/models/operations/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updateannotationqueue.js +1 -1
- package/models/operations/updatedatapoint.js +5 -5
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +1 -1
- package/packages/orq-rc/src/funcs/{mcpServersTest.ts → fileSystemsCreate.ts} +13 -13
- package/packages/orq-rc/src/funcs/fileSystemsCreateFolder.ts +173 -0
- package/packages/orq-rc/src/funcs/fileSystemsDelete.ts +169 -0
- package/packages/orq-rc/src/funcs/fileSystemsDeleteFile.ts +183 -0
- package/packages/orq-rc/src/funcs/fileSystemsList.ts +172 -0
- package/packages/orq-rc/src/funcs/fileSystemsListFiles.ts +177 -0
- package/packages/orq-rc/src/funcs/fileSystemsMoveFile.ts +173 -0
- package/packages/orq-rc/src/funcs/fileSystemsRetrieve.ts +168 -0
- package/packages/orq-rc/src/funcs/fileSystemsStatFile.ts +175 -0
- package/packages/orq-rc/src/funcs/fileSystemsUpdate.ts +171 -0
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/models/components/agenttoolinputcrud.ts +8 -0
- package/packages/orq-rc/src/models/components/createfilesystemfolderrequest.ts +36 -0
- package/packages/orq-rc/src/models/components/createfilesystemfolderresponse.ts +31 -0
- package/packages/orq-rc/src/models/components/createfilesystemrequest.ts +94 -0
- package/packages/orq-rc/src/models/components/deletefilesystemfileresponse.ts +49 -0
- package/packages/orq-rc/src/models/components/deletefilesystemresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/evaluatorresponsefunction.ts +2 -2
- package/packages/orq-rc/src/models/components/evaluatorresponsehttp.ts +2 -2
- package/packages/orq-rc/src/models/components/evaluatorresponsejsonschema.ts +2 -2
- package/packages/orq-rc/src/models/components/evaluatorresponsellm.ts +2 -2
- package/packages/orq-rc/src/models/components/evaluatorresponsepython.ts +2 -2
- package/packages/orq-rc/src/models/components/evaluatorresponseragas.ts +2 -2
- package/packages/orq-rc/src/models/components/evaluatorresponsetypescript.ts +2 -2
- package/packages/orq-rc/src/models/components/fileentry.ts +86 -0
- package/packages/orq-rc/src/models/components/filesystem.ts +116 -0
- package/packages/orq-rc/src/models/components/filesystemexternalaccess.ts +20 -0
- package/packages/orq-rc/src/models/components/filesystemtoolinput.ts +51 -0
- package/packages/orq-rc/src/models/components/index.ts +16 -3
- package/packages/orq-rc/src/models/components/knowledgebasesservicelistresponse.ts +9 -6
- package/packages/orq-rc/src/models/components/listfilesystemfilesresponse.ts +57 -0
- package/packages/orq-rc/src/models/components/listfilesystemsresponse.ts +51 -0
- package/packages/orq-rc/src/models/components/mcpaccess.ts +13 -0
- package/packages/orq-rc/src/models/components/movefilesystemfilerequest.ts +40 -0
- package/packages/orq-rc/src/models/components/movefilesystemfileresponse.ts +33 -0
- package/packages/orq-rc/src/models/components/orqsidekicktool.ts +22 -5
- package/packages/orq-rc/src/models/components/publicusage.ts +7 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/servertoolusedetails.ts +63 -0
- package/packages/orq-rc/src/models/components/statfilesystemfileresponse.ts +63 -0
- package/packages/orq-rc/src/models/components/updatefilesystemrequest.ts +83 -0
- package/packages/orq-rc/src/models/operations/createannotationqueue.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +5 -5
- package/packages/orq-rc/src/models/operations/createfolder.ts +43 -0
- package/packages/orq-rc/src/models/operations/createrouterresponse.ts +139 -9
- package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
- package/packages/orq-rc/src/models/operations/deletefile.ts +42 -0
- package/packages/orq-rc/src/models/operations/deletefilesystem.ts +36 -0
- package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
- package/packages/orq-rc/src/models/operations/geteval.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 +9 -0
- package/packages/orq-rc/src/models/operations/listannotationqueues.ts +1 -1
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
- package/packages/orq-rc/src/models/operations/listfiles.ts +46 -0
- package/packages/orq-rc/src/models/operations/listfilesystems.ts +50 -0
- package/packages/orq-rc/src/models/operations/movefile.ts +40 -0
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrieveannotationqueue.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +5 -5
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievefilesystem.ts +36 -0
- package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
- package/packages/orq-rc/src/models/operations/runagent.ts +15 -9
- package/packages/orq-rc/src/models/operations/statfile.ts +37 -0
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +15 -9
- package/packages/orq-rc/src/models/operations/updateannotationqueue.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +5 -5
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatefilesystem.ts +41 -0
- package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
- package/packages/orq-rc/src/sdk/filesystems.ts +190 -0
- package/packages/orq-rc/src/sdk/mcpservers.ts +0 -18
- package/packages/orq-rc/src/sdk/sdk.ts +6 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/evaluatorresponsefunction.ts +2 -2
- package/src/models/components/evaluatorresponsehttp.ts +2 -2
- package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
- package/src/models/components/evaluatorresponsellm.ts +2 -2
- package/src/models/components/evaluatorresponsepython.ts +2 -2
- package/src/models/components/evaluatorresponseragas.ts +2 -2
- package/src/models/components/evaluatorresponsetypescript.ts +2 -2
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createannotationqueue.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/geteval.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listannotationqueues.ts +1 -1
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrieveannotationqueue.ts +1 -1
- package/src/models/operations/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updateannotationqueue.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +5 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
- package/packages/orq-rc/src/models/components/mcptestresult.ts +0 -61
- package/packages/orq-rc/src/models/components/testmcpserverrequest.ts +0 -67
- package/packages/orq-rc/src/models/components/testmcpserverresponse.ts +0 -32
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
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
|
+
import { FileEntry, FileEntry$inboundSchema } from "./fileentry.js";
|
|
11
|
+
|
|
12
|
+
export type ListFileSystemFilesResponse = {
|
|
13
|
+
/**
|
|
14
|
+
* Folder that was listed, relative to the file system root
|
|
15
|
+
*/
|
|
16
|
+
path: string;
|
|
17
|
+
/**
|
|
18
|
+
* Number of folder levels that were walked
|
|
19
|
+
*/
|
|
20
|
+
depth: number;
|
|
21
|
+
entries: Array<FileEntry>;
|
|
22
|
+
/**
|
|
23
|
+
* Number of entries returned
|
|
24
|
+
*/
|
|
25
|
+
entryCount: number;
|
|
26
|
+
/**
|
|
27
|
+
* Whether the listing stopped at max_entries
|
|
28
|
+
*/
|
|
29
|
+
truncated: boolean;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const ListFileSystemFilesResponse$inboundSchema: z.ZodType<
|
|
34
|
+
ListFileSystemFilesResponse,
|
|
35
|
+
z.ZodTypeDef,
|
|
36
|
+
unknown
|
|
37
|
+
> = z.object({
|
|
38
|
+
path: z.string(),
|
|
39
|
+
depth: z.number().int(),
|
|
40
|
+
entries: z.array(FileEntry$inboundSchema),
|
|
41
|
+
entry_count: z.number().int(),
|
|
42
|
+
truncated: z.boolean(),
|
|
43
|
+
}).transform((v) => {
|
|
44
|
+
return remap$(v, {
|
|
45
|
+
"entry_count": "entryCount",
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
export function listFileSystemFilesResponseFromJSON(
|
|
50
|
+
jsonString: string,
|
|
51
|
+
): SafeParseResult<ListFileSystemFilesResponse, SDKValidationError> {
|
|
52
|
+
return safeParse(
|
|
53
|
+
jsonString,
|
|
54
|
+
(x) => ListFileSystemFilesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
55
|
+
`Failed to parse 'ListFileSystemFilesResponse' from JSON`,
|
|
56
|
+
);
|
|
57
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
import { FileSystem, FileSystem$inboundSchema } from "./filesystem.js";
|
|
12
|
+
|
|
13
|
+
export const ObjectT = {
|
|
14
|
+
List: "list",
|
|
15
|
+
} as const;
|
|
16
|
+
export type ObjectT = ClosedEnum<typeof ObjectT>;
|
|
17
|
+
|
|
18
|
+
export type ListFileSystemsResponse = {
|
|
19
|
+
object: ObjectT;
|
|
20
|
+
data: Array<FileSystem>;
|
|
21
|
+
hasMore: boolean;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const ObjectT$inboundSchema: z.ZodNativeEnum<typeof ObjectT> = z
|
|
26
|
+
.nativeEnum(ObjectT);
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const ListFileSystemsResponse$inboundSchema: z.ZodType<
|
|
30
|
+
ListFileSystemsResponse,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
object: ObjectT$inboundSchema,
|
|
35
|
+
data: z.array(FileSystem$inboundSchema),
|
|
36
|
+
has_more: z.boolean(),
|
|
37
|
+
}).transform((v) => {
|
|
38
|
+
return remap$(v, {
|
|
39
|
+
"has_more": "hasMore",
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export function listFileSystemsResponseFromJSON(
|
|
44
|
+
jsonString: string,
|
|
45
|
+
): SafeParseResult<ListFileSystemsResponse, SDKValidationError> {
|
|
46
|
+
return safeParse(
|
|
47
|
+
jsonString,
|
|
48
|
+
(x) => ListFileSystemsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
49
|
+
`Failed to parse 'ListFileSystemsResponse' from JSON`,
|
|
50
|
+
);
|
|
51
|
+
}
|
|
@@ -49,6 +49,16 @@ export type McpAccess = {
|
|
|
49
49
|
* union of these toolsets. Empty means no toolset restriction.
|
|
50
50
|
*/
|
|
51
51
|
toolsetIds?: Array<string> | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Allow-list of file system ids (`fsys_<ULID>`) the key may reach over
|
|
54
|
+
*
|
|
55
|
+
* @remarks
|
|
56
|
+
* the file system MCP endpoint. Ignored when deny_all is true. Empty
|
|
57
|
+
* (with deny_all=false) means no restriction. The access mode a key
|
|
58
|
+
* gets on a reachable file system is the file system's own
|
|
59
|
+
* external_access, never something the key carries.
|
|
60
|
+
*/
|
|
61
|
+
allowedFilesystemIds?: Array<string> | undefined;
|
|
52
62
|
};
|
|
53
63
|
|
|
54
64
|
/** @internal */
|
|
@@ -56,6 +66,7 @@ export type McpAccess$Outbound = {
|
|
|
56
66
|
deny_all?: boolean | undefined;
|
|
57
67
|
allowed_mcp_gateway_ids?: Array<string> | undefined;
|
|
58
68
|
toolset_ids?: Array<string> | undefined;
|
|
69
|
+
allowed_filesystem_ids?: Array<string> | undefined;
|
|
59
70
|
};
|
|
60
71
|
|
|
61
72
|
/** @internal */
|
|
@@ -67,11 +78,13 @@ export const McpAccess$outboundSchema: z.ZodType<
|
|
|
67
78
|
denyAll: z.boolean().optional(),
|
|
68
79
|
allowedMcpGatewayIds: z.array(z.string()).optional(),
|
|
69
80
|
toolsetIds: z.array(z.string()).optional(),
|
|
81
|
+
allowedFilesystemIds: z.array(z.string()).optional(),
|
|
70
82
|
}).transform((v) => {
|
|
71
83
|
return remap$(v, {
|
|
72
84
|
denyAll: "deny_all",
|
|
73
85
|
allowedMcpGatewayIds: "allowed_mcp_gateway_ids",
|
|
74
86
|
toolsetIds: "toolset_ids",
|
|
87
|
+
allowedFilesystemIds: "allowed_filesystem_ids",
|
|
75
88
|
});
|
|
76
89
|
});
|
|
77
90
|
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
export type MoveFileSystemFileRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* Current path of the file or folder, relative to the file system root
|
|
10
|
+
*/
|
|
11
|
+
from: string;
|
|
12
|
+
/**
|
|
13
|
+
* New path of the file or folder, relative to the file system root
|
|
14
|
+
*/
|
|
15
|
+
to: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export type MoveFileSystemFileRequest$Outbound = {
|
|
20
|
+
from: string;
|
|
21
|
+
to: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const MoveFileSystemFileRequest$outboundSchema: z.ZodType<
|
|
26
|
+
MoveFileSystemFileRequest$Outbound,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
MoveFileSystemFileRequest
|
|
29
|
+
> = z.object({
|
|
30
|
+
from: z.string(),
|
|
31
|
+
to: z.string(),
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export function moveFileSystemFileRequestToJSON(
|
|
35
|
+
moveFileSystemFileRequest: MoveFileSystemFileRequest,
|
|
36
|
+
): string {
|
|
37
|
+
return JSON.stringify(
|
|
38
|
+
MoveFileSystemFileRequest$outboundSchema.parse(moveFileSystemFileRequest),
|
|
39
|
+
);
|
|
40
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type MoveFileSystemFileResponse = {
|
|
11
|
+
from: string;
|
|
12
|
+
to: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const MoveFileSystemFileResponse$inboundSchema: z.ZodType<
|
|
17
|
+
MoveFileSystemFileResponse,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
from: z.string(),
|
|
22
|
+
to: z.string(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export function moveFileSystemFileResponseFromJSON(
|
|
26
|
+
jsonString: string,
|
|
27
|
+
): SafeParseResult<MoveFileSystemFileResponse, SDKValidationError> {
|
|
28
|
+
return safeParse(
|
|
29
|
+
jsonString,
|
|
30
|
+
(x) => MoveFileSystemFileResponse$inboundSchema.parse(JSON.parse(x)),
|
|
31
|
+
`Failed to parse 'MoveFileSystemFileResponse' from JSON`,
|
|
32
|
+
);
|
|
33
|
+
}
|
|
@@ -26,7 +26,19 @@ export type OrqSidekickToolReasoningEffort = ClosedEnum<
|
|
|
26
26
|
>;
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Subagent tool discriminator; orq:sidekick is the legacy alias.
|
|
30
|
+
*/
|
|
31
|
+
export const OrqSidekickToolType = {
|
|
32
|
+
OrqSubagent: "orq:subagent",
|
|
33
|
+
OrqSidekick: "orq:sidekick",
|
|
34
|
+
} as const;
|
|
35
|
+
/**
|
|
36
|
+
* Subagent tool discriminator; orq:sidekick is the legacy alias.
|
|
37
|
+
*/
|
|
38
|
+
export type OrqSidekickToolType = ClosedEnum<typeof OrqSidekickToolType>;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Lets the primary model delegate a concrete task to a configured worker model. Use type "orq:subagent" ("orq:sidekick" is the legacy alias).
|
|
30
42
|
*/
|
|
31
43
|
export type OrqSidekickTool = {
|
|
32
44
|
/**
|
|
@@ -58,9 +70,9 @@ export type OrqSidekickTool = {
|
|
|
58
70
|
*/
|
|
59
71
|
temperature?: number | undefined;
|
|
60
72
|
/**
|
|
61
|
-
*
|
|
73
|
+
* Subagent tool discriminator; orq:sidekick is the legacy alias.
|
|
62
74
|
*/
|
|
63
|
-
type:
|
|
75
|
+
type: OrqSidekickToolType;
|
|
64
76
|
};
|
|
65
77
|
|
|
66
78
|
/** @internal */
|
|
@@ -68,6 +80,11 @@ export const OrqSidekickToolReasoningEffort$outboundSchema: z.ZodNativeEnum<
|
|
|
68
80
|
typeof OrqSidekickToolReasoningEffort
|
|
69
81
|
> = z.nativeEnum(OrqSidekickToolReasoningEffort);
|
|
70
82
|
|
|
83
|
+
/** @internal */
|
|
84
|
+
export const OrqSidekickToolType$outboundSchema: z.ZodNativeEnum<
|
|
85
|
+
typeof OrqSidekickToolType
|
|
86
|
+
> = z.nativeEnum(OrqSidekickToolType);
|
|
87
|
+
|
|
71
88
|
/** @internal */
|
|
72
89
|
export type OrqSidekickTool$Outbound = {
|
|
73
90
|
max_tokens?: number | undefined;
|
|
@@ -77,7 +94,7 @@ export type OrqSidekickTool$Outbound = {
|
|
|
77
94
|
reasoning_effort?: string | undefined;
|
|
78
95
|
system_prompt?: string | undefined;
|
|
79
96
|
temperature?: number | undefined;
|
|
80
|
-
type:
|
|
97
|
+
type: string;
|
|
81
98
|
};
|
|
82
99
|
|
|
83
100
|
/** @internal */
|
|
@@ -93,7 +110,7 @@ export const OrqSidekickTool$outboundSchema: z.ZodType<
|
|
|
93
110
|
reasoningEffort: OrqSidekickToolReasoningEffort$outboundSchema.optional(),
|
|
94
111
|
systemPrompt: z.string().optional(),
|
|
95
112
|
temperature: z.number().optional(),
|
|
96
|
-
type:
|
|
113
|
+
type: OrqSidekickToolType$outboundSchema,
|
|
97
114
|
}).transform((v) => {
|
|
98
115
|
return remap$(v, {
|
|
99
116
|
maxTokens: "max_tokens",
|
|
@@ -15,6 +15,10 @@ import {
|
|
|
15
15
|
OutputTokensDetails,
|
|
16
16
|
OutputTokensDetails$inboundSchema,
|
|
17
17
|
} from "./outputtokensdetails.js";
|
|
18
|
+
import {
|
|
19
|
+
ServerToolUseDetails,
|
|
20
|
+
ServerToolUseDetails$inboundSchema,
|
|
21
|
+
} from "./servertoolusedetails.js";
|
|
18
22
|
|
|
19
23
|
export type PublicUsage = {
|
|
20
24
|
/**
|
|
@@ -29,6 +33,7 @@ export type PublicUsage = {
|
|
|
29
33
|
outputCost?: number | undefined;
|
|
30
34
|
outputTokens: number;
|
|
31
35
|
outputTokensDetails: OutputTokensDetails;
|
|
36
|
+
serverToolUse?: ServerToolUseDetails | undefined;
|
|
32
37
|
/**
|
|
33
38
|
* Total cost (USD) of the response. Present when billing was computed for this response.
|
|
34
39
|
*/
|
|
@@ -49,6 +54,7 @@ export const PublicUsage$inboundSchema: z.ZodType<
|
|
|
49
54
|
output_cost: z.number().optional(),
|
|
50
55
|
output_tokens: z.number().int(),
|
|
51
56
|
output_tokens_details: OutputTokensDetails$inboundSchema,
|
|
57
|
+
server_tool_use: ServerToolUseDetails$inboundSchema.optional(),
|
|
52
58
|
total_cost: z.number().optional(),
|
|
53
59
|
total_tokens: z.number().int(),
|
|
54
60
|
web_search_requests: z.number().int().optional(),
|
|
@@ -60,6 +66,7 @@ export const PublicUsage$inboundSchema: z.ZodType<
|
|
|
60
66
|
"output_cost": "outputCost",
|
|
61
67
|
"output_tokens": "outputTokens",
|
|
62
68
|
"output_tokens_details": "outputTokensDetails",
|
|
69
|
+
"server_tool_use": "serverToolUse",
|
|
63
70
|
"total_cost": "totalCost",
|
|
64
71
|
"total_tokens": "totalTokens",
|
|
65
72
|
"web_search_requests": "webSearchRequests",
|
|
@@ -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_01m0yw8c3jvzngg8wh13g17msh"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type ServerToolUseDetails = {
|
|
12
|
+
advisorRequests?: number | undefined;
|
|
13
|
+
codeInterpreterSessions?: number | undefined;
|
|
14
|
+
datetimeRequests?: number | undefined;
|
|
15
|
+
fusionRequests?: number | undefined;
|
|
16
|
+
imageGenerationCalls?: number | undefined;
|
|
17
|
+
searchModelsRequests?: number | undefined;
|
|
18
|
+
shellCommands?: number | undefined;
|
|
19
|
+
subagentRequests?: number | undefined;
|
|
20
|
+
webFetchRequests?: number | undefined;
|
|
21
|
+
webSearchRequests?: number | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const ServerToolUseDetails$inboundSchema: z.ZodType<
|
|
26
|
+
ServerToolUseDetails,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
unknown
|
|
29
|
+
> = z.object({
|
|
30
|
+
advisor_requests: z.number().int().optional(),
|
|
31
|
+
code_interpreter_sessions: z.number().int().optional(),
|
|
32
|
+
datetime_requests: z.number().int().optional(),
|
|
33
|
+
fusion_requests: z.number().int().optional(),
|
|
34
|
+
image_generation_calls: z.number().int().optional(),
|
|
35
|
+
search_models_requests: z.number().int().optional(),
|
|
36
|
+
shell_commands: z.number().int().optional(),
|
|
37
|
+
subagent_requests: z.number().int().optional(),
|
|
38
|
+
web_fetch_requests: z.number().int().optional(),
|
|
39
|
+
web_search_requests: z.number().int().optional(),
|
|
40
|
+
}).transform((v) => {
|
|
41
|
+
return remap$(v, {
|
|
42
|
+
"advisor_requests": "advisorRequests",
|
|
43
|
+
"code_interpreter_sessions": "codeInterpreterSessions",
|
|
44
|
+
"datetime_requests": "datetimeRequests",
|
|
45
|
+
"fusion_requests": "fusionRequests",
|
|
46
|
+
"image_generation_calls": "imageGenerationCalls",
|
|
47
|
+
"search_models_requests": "searchModelsRequests",
|
|
48
|
+
"shell_commands": "shellCommands",
|
|
49
|
+
"subagent_requests": "subagentRequests",
|
|
50
|
+
"web_fetch_requests": "webFetchRequests",
|
|
51
|
+
"web_search_requests": "webSearchRequests",
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
export function serverToolUseDetailsFromJSON(
|
|
56
|
+
jsonString: string,
|
|
57
|
+
): SafeParseResult<ServerToolUseDetails, SDKValidationError> {
|
|
58
|
+
return safeParse(
|
|
59
|
+
jsonString,
|
|
60
|
+
(x) => ServerToolUseDetails$inboundSchema.parse(JSON.parse(x)),
|
|
61
|
+
`Failed to parse 'ServerToolUseDetails' from JSON`,
|
|
62
|
+
);
|
|
63
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export const StatFileSystemFileResponseType = {
|
|
13
|
+
File: "file",
|
|
14
|
+
Dir: "dir",
|
|
15
|
+
Symlink: "symlink",
|
|
16
|
+
Other: "other",
|
|
17
|
+
} as const;
|
|
18
|
+
export type StatFileSystemFileResponseType = ClosedEnum<
|
|
19
|
+
typeof StatFileSystemFileResponseType
|
|
20
|
+
>;
|
|
21
|
+
|
|
22
|
+
export type StatFileSystemFileResponse = {
|
|
23
|
+
path: string;
|
|
24
|
+
type: StatFileSystemFileResponseType;
|
|
25
|
+
sizeBytes: string;
|
|
26
|
+
/**
|
|
27
|
+
* Permission bits in octal, for example 0644
|
|
28
|
+
*/
|
|
29
|
+
mode: string;
|
|
30
|
+
modified: string;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const StatFileSystemFileResponseType$inboundSchema: z.ZodNativeEnum<
|
|
35
|
+
typeof StatFileSystemFileResponseType
|
|
36
|
+
> = z.nativeEnum(StatFileSystemFileResponseType);
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const StatFileSystemFileResponse$inboundSchema: z.ZodType<
|
|
40
|
+
StatFileSystemFileResponse,
|
|
41
|
+
z.ZodTypeDef,
|
|
42
|
+
unknown
|
|
43
|
+
> = z.object({
|
|
44
|
+
path: z.string(),
|
|
45
|
+
type: StatFileSystemFileResponseType$inboundSchema,
|
|
46
|
+
size_bytes: z.string(),
|
|
47
|
+
mode: z.string(),
|
|
48
|
+
modified: z.string(),
|
|
49
|
+
}).transform((v) => {
|
|
50
|
+
return remap$(v, {
|
|
51
|
+
"size_bytes": "sizeBytes",
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
export function statFileSystemFileResponseFromJSON(
|
|
56
|
+
jsonString: string,
|
|
57
|
+
): SafeParseResult<StatFileSystemFileResponse, SDKValidationError> {
|
|
58
|
+
return safeParse(
|
|
59
|
+
jsonString,
|
|
60
|
+
(x) => StatFileSystemFileResponse$inboundSchema.parse(JSON.parse(x)),
|
|
61
|
+
`Failed to parse 'StatFileSystemFileResponse' from JSON`,
|
|
62
|
+
);
|
|
63
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import {
|
|
9
|
+
Sharing,
|
|
10
|
+
Sharing$Outbound,
|
|
11
|
+
Sharing$outboundSchema,
|
|
12
|
+
} from "./sharing.js";
|
|
13
|
+
|
|
14
|
+
export const UpdateFileSystemRequestExternalAccess = {
|
|
15
|
+
Disabled: "disabled",
|
|
16
|
+
ReadOnly: "read_only",
|
|
17
|
+
ReadWrite: "read_write",
|
|
18
|
+
} as const;
|
|
19
|
+
export type UpdateFileSystemRequestExternalAccess = ClosedEnum<
|
|
20
|
+
typeof UpdateFileSystemRequestExternalAccess
|
|
21
|
+
>;
|
|
22
|
+
|
|
23
|
+
export type UpdateFileSystemRequest = {
|
|
24
|
+
/**
|
|
25
|
+
* Update has no key to fall back on, so an explicitly supplied display_name
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
* may not be empty; Create defaults an omitted one to the key.
|
|
29
|
+
*/
|
|
30
|
+
displayName?: string | undefined;
|
|
31
|
+
description?: string | undefined;
|
|
32
|
+
path?: string | undefined;
|
|
33
|
+
externalAccess?: UpdateFileSystemRequestExternalAccess | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Sharing controls which projects in the workspace may use this entity and
|
|
36
|
+
*
|
|
37
|
+
* @remarks
|
|
38
|
+
* what they may do with it.
|
|
39
|
+
*/
|
|
40
|
+
sharing?: Sharing | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const UpdateFileSystemRequestExternalAccess$outboundSchema:
|
|
45
|
+
z.ZodNativeEnum<typeof UpdateFileSystemRequestExternalAccess> = z.nativeEnum(
|
|
46
|
+
UpdateFileSystemRequestExternalAccess,
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export type UpdateFileSystemRequest$Outbound = {
|
|
51
|
+
display_name?: string | undefined;
|
|
52
|
+
description?: string | undefined;
|
|
53
|
+
path?: string | undefined;
|
|
54
|
+
external_access?: string | undefined;
|
|
55
|
+
sharing?: Sharing$Outbound | undefined;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const UpdateFileSystemRequest$outboundSchema: z.ZodType<
|
|
60
|
+
UpdateFileSystemRequest$Outbound,
|
|
61
|
+
z.ZodTypeDef,
|
|
62
|
+
UpdateFileSystemRequest
|
|
63
|
+
> = z.object({
|
|
64
|
+
displayName: z.string().optional(),
|
|
65
|
+
description: z.string().optional(),
|
|
66
|
+
path: z.string().optional(),
|
|
67
|
+
externalAccess: UpdateFileSystemRequestExternalAccess$outboundSchema
|
|
68
|
+
.optional(),
|
|
69
|
+
sharing: Sharing$outboundSchema.optional(),
|
|
70
|
+
}).transform((v) => {
|
|
71
|
+
return remap$(v, {
|
|
72
|
+
displayName: "display_name",
|
|
73
|
+
externalAccess: "external_access",
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
export function updateFileSystemRequestToJSON(
|
|
78
|
+
updateFileSystemRequest: UpdateFileSystemRequest,
|
|
79
|
+
): string {
|
|
80
|
+
return JSON.stringify(
|
|
81
|
+
UpdateFileSystemRequest$outboundSchema.parse(updateFileSystemRequest),
|
|
82
|
+
);
|
|
83
|
+
}
|
|
@@ -151,7 +151,7 @@ export const CreateAnnotationQueueResponseBody$inboundSchema: z.ZodType<
|
|
|
151
151
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
152
152
|
.optional(),
|
|
153
153
|
updated: z.string().datetime({ offset: true }).default(
|
|
154
|
-
"2026-08-
|
|
154
|
+
"2026-08-26T11:10:52.849Z",
|
|
155
155
|
).transform(v => new Date(v)),
|
|
156
156
|
}).transform((v) => {
|
|
157
157
|
return remap$(v, {
|
|
@@ -138,7 +138,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
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-08-
|
|
141
|
+
"2026-08-26T11:10:52.849Z",
|
|
142
142
|
).transform(v => new Date(v)),
|
|
143
143
|
}).transform((v) => {
|
|
144
144
|
return remap$(v, {
|
|
@@ -2739,7 +2739,7 @@ export const Evaluations4$inboundSchema: z.ZodType<
|
|
|
2739
2739
|
explanation: z.string().optional(),
|
|
2740
2740
|
reviewed_by_id: z.string(),
|
|
2741
2741
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2742
|
-
"2026-08-
|
|
2742
|
+
"2026-08-26T11:11:03.040Z",
|
|
2743
2743
|
).transform(v => new Date(v)),
|
|
2744
2744
|
type: z.literal("string_array"),
|
|
2745
2745
|
values: z.array(z.string()),
|
|
@@ -2829,7 +2829,7 @@ export const CreateDatasetItemEvaluations3$inboundSchema: z.ZodType<
|
|
|
2829
2829
|
explanation: z.string().optional(),
|
|
2830
2830
|
reviewed_by_id: z.string(),
|
|
2831
2831
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2832
|
-
"2026-08-
|
|
2832
|
+
"2026-08-26T11:11:03.040Z",
|
|
2833
2833
|
).transform(v => new Date(v)),
|
|
2834
2834
|
type: z.literal("boolean"),
|
|
2835
2835
|
value: z.boolean(),
|
|
@@ -2914,7 +2914,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
|
|
|
2914
2914
|
explanation: z.string().optional(),
|
|
2915
2915
|
reviewed_by_id: z.string(),
|
|
2916
2916
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2917
|
-
"2026-08-
|
|
2917
|
+
"2026-08-26T11:11:03.039Z",
|
|
2918
2918
|
).transform(v => new Date(v)),
|
|
2919
2919
|
type: z.literal("number"),
|
|
2920
2920
|
value: z.number(),
|
|
@@ -3000,7 +3000,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
|
|
|
3000
3000
|
explanation: z.string().optional(),
|
|
3001
3001
|
reviewed_by_id: z.string(),
|
|
3002
3002
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
3003
|
-
"2026-08-
|
|
3003
|
+
"2026-08-26T11:11:03.039Z",
|
|
3004
3004
|
).transform(v => new Date(v)),
|
|
3005
3005
|
type: z.literal("string"),
|
|
3006
3006
|
value: z.string(),
|
|
@@ -3087,7 +3087,7 @@ export const ResponseBody$inboundSchema: z.ZodType<
|
|
|
3087
3087
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
3088
3088
|
.optional(),
|
|
3089
3089
|
updated: z.string().datetime({ offset: true }).default(
|
|
3090
|
-
"2026-08-
|
|
3090
|
+
"2026-08-26T11:10:52.849Z",
|
|
3091
3091
|
).transform(v => new Date(v)),
|
|
3092
3092
|
}).transform((v) => {
|
|
3093
3093
|
return remap$(v, {
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import * as components from "../components/index.js";
|
|
8
|
+
|
|
9
|
+
export type CreateFolderRequest = {
|
|
10
|
+
fileSystemKey: string;
|
|
11
|
+
createFileSystemFolderRequest: components.CreateFileSystemFolderRequest;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type CreateFolderRequest$Outbound = {
|
|
16
|
+
file_system_key: string;
|
|
17
|
+
CreateFileSystemFolderRequest:
|
|
18
|
+
components.CreateFileSystemFolderRequest$Outbound;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const CreateFolderRequest$outboundSchema: z.ZodType<
|
|
23
|
+
CreateFolderRequest$Outbound,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
CreateFolderRequest
|
|
26
|
+
> = z.object({
|
|
27
|
+
fileSystemKey: z.string(),
|
|
28
|
+
createFileSystemFolderRequest:
|
|
29
|
+
components.CreateFileSystemFolderRequest$outboundSchema,
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
fileSystemKey: "file_system_key",
|
|
33
|
+
createFileSystemFolderRequest: "CreateFileSystemFolderRequest",
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export function createFolderRequestToJSON(
|
|
38
|
+
createFolderRequest: CreateFolderRequest,
|
|
39
|
+
): string {
|
|
40
|
+
return JSON.stringify(
|
|
41
|
+
CreateFolderRequest$outboundSchema.parse(createFolderRequest),
|
|
42
|
+
);
|
|
43
|
+
}
|