@orq-ai/node 4.4.12 → 4.4.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/partdoneevent.js +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createcontact.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/fileget.js +1 -1
- package/models/operations/filelist.js +1 -1
- package/models/operations/fileupload.js +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +1 -1
- package/packages/orq-rc/src/funcs/agentsList.ts +5 -0
- package/packages/orq-rc/src/funcs/agentsPostV2AgentsA2a.ts +178 -0
- package/packages/orq-rc/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +187 -0
- package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +182 -0
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +2 -2
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/models/components/createagentresponse.ts +6 -0
- package/packages/orq-rc/src/models/components/extendedmessage.ts +146 -0
- package/packages/orq-rc/src/models/components/getagentresponse.ts +348 -0
- package/packages/orq-rc/src/models/components/index.ts +3 -0
- package/packages/orq-rc/src/models/components/partdoneevent.ts +1 -1
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/responsedoneevent.ts +6 -0
- package/packages/orq-rc/src/models/components/responsestartedevent.ts +6 -0
- package/packages/orq-rc/src/models/components/telemetry.ts +48 -0
- package/packages/orq-rc/src/models/errors/index.ts +2 -0
- package/packages/orq-rc/src/models/errors/postv2agentsa2a.ts +96 -0
- package/packages/orq-rc/src/models/errors/postv2agentskeycardrefresh.ts +97 -0
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +755 -1212
- package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +35 -1
- package/packages/orq-rc/src/models/operations/createannotation.ts +5 -1
- package/packages/orq-rc/src/models/operations/createcontact.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
- package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/createidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/createknowledge.ts +19 -17
- package/packages/orq-rc/src/models/operations/createprompt.ts +55 -66
- package/packages/orq-rc/src/models/operations/createtool.ts +103 -91
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +38 -0
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +38 -0
- package/packages/orq-rc/src/models/operations/fileget.ts +1 -1
- package/packages/orq-rc/src/models/operations/filelist.ts +1 -1
- package/packages/orq-rc/src/models/operations/fileupload.ts +1 -1
- package/packages/orq-rc/src/models/operations/getagentresponse.ts +46 -0
- package/packages/orq-rc/src/models/operations/getalltools.ts +93 -87
- package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
- package/packages/orq-rc/src/models/operations/index.ts +3 -0
- package/packages/orq-rc/src/models/operations/invokeagent.ts +45 -1
- package/packages/orq-rc/src/models/operations/listagents.ts +751 -787
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
- package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
- package/packages/orq-rc/src/models/operations/listidentities.ts +1 -1
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +72 -64
- package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +252 -0
- package/packages/orq-rc/src/models/operations/postv2agentskeycardrefresh.ts +100 -0
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +962 -857
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrieveidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
- package/packages/orq-rc/src/models/operations/runagent.ts +69 -493
- package/packages/orq-rc/src/models/operations/streamagent.ts +40 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +36 -493
- package/packages/orq-rc/src/models/operations/updateagent.ts +966 -1313
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/updateidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
- package/packages/orq-rc/src/sdk/agents.ts +39 -1
- package/packages/orq-rc/src/sdk/responses.ts +19 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createcontact.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/fileget.ts +1 -1
- package/src/models/operations/filelist.ts +1 -1
- package/src/models/operations/fileupload.ts +1 -1
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listidentities.ts +1 -1
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
|
@@ -94,7 +94,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
|
|
|
94
94
|
file_name: z.string(),
|
|
95
95
|
workspace_id: z.string(),
|
|
96
96
|
created: z.string().datetime({ offset: true }).default(
|
|
97
|
-
"2026-03-
|
|
97
|
+
"2026-03-05T14:31:09.588Z",
|
|
98
98
|
).transform(v => new Date(v)),
|
|
99
99
|
}).transform((v) => {
|
|
100
100
|
return remap$(v, {
|
|
@@ -125,7 +125,7 @@ export const FileListData$inboundSchema: z.ZodType<
|
|
|
125
125
|
file_name: z.string(),
|
|
126
126
|
workspace_id: z.string(),
|
|
127
127
|
created: z.string().datetime({ offset: true }).default(
|
|
128
|
-
"2026-03-
|
|
128
|
+
"2026-03-05T14:31:09.588Z",
|
|
129
129
|
).transform(v => new Date(v)),
|
|
130
130
|
}).transform((v) => {
|
|
131
131
|
return remap$(v, {
|
|
@@ -148,7 +148,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
|
|
|
148
148
|
file_name: z.string(),
|
|
149
149
|
workspace_id: z.string(),
|
|
150
150
|
created: z.string().datetime({ offset: true }).default(
|
|
151
|
-
"2026-03-
|
|
151
|
+
"2026-03-05T14:31:09.588Z",
|
|
152
152
|
).transform(v => new Date(v)),
|
|
153
153
|
}).transform((v) => {
|
|
154
154
|
return remap$(v, {
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
|
|
8
|
+
export type GetAgentResponseRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* The unique key identifier of the agent
|
|
11
|
+
*/
|
|
12
|
+
agentKey: string;
|
|
13
|
+
/**
|
|
14
|
+
* The agent execution task ID returned from create response
|
|
15
|
+
*/
|
|
16
|
+
taskId: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export type GetAgentResponseRequest$Outbound = {
|
|
21
|
+
agent_key: string;
|
|
22
|
+
task_id: string;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const GetAgentResponseRequest$outboundSchema: z.ZodType<
|
|
27
|
+
GetAgentResponseRequest$Outbound,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
GetAgentResponseRequest
|
|
30
|
+
> = z.object({
|
|
31
|
+
agentKey: z.string(),
|
|
32
|
+
taskId: z.string(),
|
|
33
|
+
}).transform((v) => {
|
|
34
|
+
return remap$(v, {
|
|
35
|
+
agentKey: "agent_key",
|
|
36
|
+
taskId: "task_id",
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export function getAgentResponseRequestToJSON(
|
|
41
|
+
getAgentResponseRequest: GetAgentResponseRequest,
|
|
42
|
+
): string {
|
|
43
|
+
return JSON.stringify(
|
|
44
|
+
GetAgentResponseRequest$outboundSchema.parse(getAgentResponseRequest),
|
|
45
|
+
);
|
|
46
|
+
}
|
|
@@ -35,7 +35,7 @@ export type GetAllToolsObject = ClosedEnum<typeof GetAllToolsObject>;
|
|
|
35
35
|
/**
|
|
36
36
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
37
37
|
*/
|
|
38
|
-
export const
|
|
38
|
+
export const GetAllToolsDataToolsResponse200ApplicationJSONStatus = {
|
|
39
39
|
Live: "live",
|
|
40
40
|
Draft: "draft",
|
|
41
41
|
Pending: "pending",
|
|
@@ -44,8 +44,8 @@ export const GetAllToolsDataToolsResponse200Status = {
|
|
|
44
44
|
/**
|
|
45
45
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
46
46
|
*/
|
|
47
|
-
export type
|
|
48
|
-
typeof
|
|
47
|
+
export type GetAllToolsDataToolsResponse200ApplicationJSONStatus = ClosedEnum<
|
|
48
|
+
typeof GetAllToolsDataToolsResponse200ApplicationJSONStatus
|
|
49
49
|
>;
|
|
50
50
|
|
|
51
51
|
/**
|
|
@@ -65,7 +65,7 @@ export type GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type =
|
|
|
65
65
|
/**
|
|
66
66
|
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
67
67
|
*/
|
|
68
|
-
export type
|
|
68
|
+
export type GetAllToolsDataToolsParameters = {
|
|
69
69
|
/**
|
|
70
70
|
* The type must be "object"
|
|
71
71
|
*/
|
|
@@ -90,7 +90,7 @@ export type DataCodeTool = {
|
|
|
90
90
|
/**
|
|
91
91
|
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
92
92
|
*/
|
|
93
|
-
parameters?:
|
|
93
|
+
parameters?: GetAllToolsDataToolsParameters | undefined;
|
|
94
94
|
language: DataLanguage;
|
|
95
95
|
/**
|
|
96
96
|
* The code to execute.
|
|
@@ -140,7 +140,7 @@ export type DataCodeExecutionTool = {
|
|
|
140
140
|
/**
|
|
141
141
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
142
142
|
*/
|
|
143
|
-
status:
|
|
143
|
+
status: GetAllToolsDataToolsResponse200ApplicationJSONStatus;
|
|
144
144
|
versionHash?: string | undefined;
|
|
145
145
|
type: "code";
|
|
146
146
|
codeTool: DataCodeTool;
|
|
@@ -149,7 +149,7 @@ export type DataCodeExecutionTool = {
|
|
|
149
149
|
/**
|
|
150
150
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
151
151
|
*/
|
|
152
|
-
export const
|
|
152
|
+
export const GetAllToolsDataToolsResponse200Status = {
|
|
153
153
|
Live: "live",
|
|
154
154
|
Draft: "draft",
|
|
155
155
|
Pending: "pending",
|
|
@@ -158,11 +158,11 @@ export const GetAllToolsDataToolsResponseStatus = {
|
|
|
158
158
|
/**
|
|
159
159
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
160
160
|
*/
|
|
161
|
-
export type
|
|
162
|
-
typeof
|
|
161
|
+
export type GetAllToolsDataToolsResponse200Status = ClosedEnum<
|
|
162
|
+
typeof GetAllToolsDataToolsResponse200Status
|
|
163
163
|
>;
|
|
164
164
|
|
|
165
|
-
export type
|
|
165
|
+
export type GetAllToolsDataHeaders = {
|
|
166
166
|
value: string;
|
|
167
167
|
encrypted: boolean;
|
|
168
168
|
};
|
|
@@ -181,7 +181,7 @@ export type GetAllToolsDataSchema = {
|
|
|
181
181
|
required?: Array<string> | undefined;
|
|
182
182
|
};
|
|
183
183
|
|
|
184
|
-
export type
|
|
184
|
+
export type GetAllToolsDataTools = {
|
|
185
185
|
id: string;
|
|
186
186
|
name: string;
|
|
187
187
|
description?: string | undefined;
|
|
@@ -208,11 +208,11 @@ export type DataMcp = {
|
|
|
208
208
|
/**
|
|
209
209
|
* HTTP headers for MCP server requests with encryption support
|
|
210
210
|
*/
|
|
211
|
-
headers?: { [k: string]:
|
|
211
|
+
headers?: { [k: string]: GetAllToolsDataHeaders } | undefined;
|
|
212
212
|
/**
|
|
213
213
|
* Array of tools available from the MCP server
|
|
214
214
|
*/
|
|
215
|
-
tools: Array<
|
|
215
|
+
tools: Array<GetAllToolsDataTools>;
|
|
216
216
|
/**
|
|
217
217
|
* The connection type used by the MCP server
|
|
218
218
|
*/
|
|
@@ -261,7 +261,7 @@ export type DataMCPTool = {
|
|
|
261
261
|
/**
|
|
262
262
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
263
263
|
*/
|
|
264
|
-
status:
|
|
264
|
+
status: GetAllToolsDataToolsResponse200Status;
|
|
265
265
|
versionHash?: string | undefined;
|
|
266
266
|
type: "mcp";
|
|
267
267
|
mcp: DataMcp;
|
|
@@ -270,7 +270,7 @@ export type DataMCPTool = {
|
|
|
270
270
|
/**
|
|
271
271
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
272
272
|
*/
|
|
273
|
-
export const
|
|
273
|
+
export const GetAllToolsDataToolsResponseStatus = {
|
|
274
274
|
Live: "live",
|
|
275
275
|
Draft: "draft",
|
|
276
276
|
Pending: "pending",
|
|
@@ -279,8 +279,8 @@ export const GetAllToolsDataToolsStatus = {
|
|
|
279
279
|
/**
|
|
280
280
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
281
281
|
*/
|
|
282
|
-
export type
|
|
283
|
-
typeof
|
|
282
|
+
export type GetAllToolsDataToolsResponseStatus = ClosedEnum<
|
|
283
|
+
typeof GetAllToolsDataToolsResponseStatus
|
|
284
284
|
>;
|
|
285
285
|
|
|
286
286
|
/**
|
|
@@ -302,7 +302,7 @@ export type GetAllToolsHeaders2 = {
|
|
|
302
302
|
encrypted: boolean;
|
|
303
303
|
};
|
|
304
304
|
|
|
305
|
-
export type
|
|
305
|
+
export type GetAllToolsDataToolsHeaders = GetAllToolsHeaders2 | string;
|
|
306
306
|
|
|
307
307
|
/**
|
|
308
308
|
* The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
|
|
@@ -419,7 +419,7 @@ export type DataHTTPTool = {
|
|
|
419
419
|
/**
|
|
420
420
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
421
421
|
*/
|
|
422
|
-
status:
|
|
422
|
+
status: GetAllToolsDataToolsResponseStatus;
|
|
423
423
|
versionHash?: string | undefined;
|
|
424
424
|
type: "http";
|
|
425
425
|
http: GetAllToolsDataHttp;
|
|
@@ -428,7 +428,7 @@ export type DataHTTPTool = {
|
|
|
428
428
|
/**
|
|
429
429
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
430
430
|
*/
|
|
431
|
-
export const
|
|
431
|
+
export const GetAllToolsDataToolsStatus = {
|
|
432
432
|
Live: "live",
|
|
433
433
|
Draft: "draft",
|
|
434
434
|
Pending: "pending",
|
|
@@ -437,7 +437,9 @@ export const GetAllToolsDataStatus = {
|
|
|
437
437
|
/**
|
|
438
438
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
439
439
|
*/
|
|
440
|
-
export type
|
|
440
|
+
export type GetAllToolsDataToolsStatus = ClosedEnum<
|
|
441
|
+
typeof GetAllToolsDataToolsStatus
|
|
442
|
+
>;
|
|
441
443
|
|
|
442
444
|
/**
|
|
443
445
|
* The schema for the response format, described as a JSON Schema object. See the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
@@ -519,7 +521,7 @@ export type DataJSONSchemaTool = {
|
|
|
519
521
|
/**
|
|
520
522
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
521
523
|
*/
|
|
522
|
-
status:
|
|
524
|
+
status: GetAllToolsDataToolsStatus;
|
|
523
525
|
versionHash?: string | undefined;
|
|
524
526
|
type: "json_schema";
|
|
525
527
|
jsonSchema: DataJsonSchema;
|
|
@@ -528,7 +530,7 @@ export type DataJSONSchemaTool = {
|
|
|
528
530
|
/**
|
|
529
531
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
530
532
|
*/
|
|
531
|
-
export const
|
|
533
|
+
export const GetAllToolsDataStatus = {
|
|
532
534
|
Live: "live",
|
|
533
535
|
Draft: "draft",
|
|
534
536
|
Pending: "pending",
|
|
@@ -537,7 +539,7 @@ export const DataStatus = {
|
|
|
537
539
|
/**
|
|
538
540
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
539
541
|
*/
|
|
540
|
-
export type
|
|
542
|
+
export type GetAllToolsDataStatus = ClosedEnum<typeof GetAllToolsDataStatus>;
|
|
541
543
|
|
|
542
544
|
/**
|
|
543
545
|
* The type must be "object"
|
|
@@ -556,7 +558,7 @@ export type GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType =
|
|
|
556
558
|
/**
|
|
557
559
|
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
558
560
|
*/
|
|
559
|
-
export type
|
|
561
|
+
export type GetAllToolsDataParameters = {
|
|
560
562
|
/**
|
|
561
563
|
* The type must be "object"
|
|
562
564
|
*/
|
|
@@ -588,7 +590,7 @@ export type GetAllToolsDataFunction = {
|
|
|
588
590
|
/**
|
|
589
591
|
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
590
592
|
*/
|
|
591
|
-
parameters?:
|
|
593
|
+
parameters?: GetAllToolsDataParameters | undefined;
|
|
592
594
|
};
|
|
593
595
|
|
|
594
596
|
/**
|
|
@@ -633,7 +635,7 @@ export type DataFunctionTool = {
|
|
|
633
635
|
/**
|
|
634
636
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
635
637
|
*/
|
|
636
|
-
status:
|
|
638
|
+
status: GetAllToolsDataStatus;
|
|
637
639
|
versionHash?: string | undefined;
|
|
638
640
|
type: "function";
|
|
639
641
|
function: GetAllToolsDataFunction;
|
|
@@ -698,10 +700,9 @@ export const GetAllToolsObject$inboundSchema: z.ZodNativeEnum<
|
|
|
698
700
|
> = z.nativeEnum(GetAllToolsObject);
|
|
699
701
|
|
|
700
702
|
/** @internal */
|
|
701
|
-
export const
|
|
702
|
-
z.ZodNativeEnum<typeof
|
|
703
|
-
|
|
704
|
-
);
|
|
703
|
+
export const GetAllToolsDataToolsResponse200ApplicationJSONStatus$inboundSchema:
|
|
704
|
+
z.ZodNativeEnum<typeof GetAllToolsDataToolsResponse200ApplicationJSONStatus> =
|
|
705
|
+
z.nativeEnum(GetAllToolsDataToolsResponse200ApplicationJSONStatus);
|
|
705
706
|
|
|
706
707
|
/** @internal */
|
|
707
708
|
export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type$inboundSchema:
|
|
@@ -712,8 +713,8 @@ export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type$inb
|
|
|
712
713
|
);
|
|
713
714
|
|
|
714
715
|
/** @internal */
|
|
715
|
-
export const
|
|
716
|
-
|
|
716
|
+
export const GetAllToolsDataToolsParameters$inboundSchema: z.ZodType<
|
|
717
|
+
GetAllToolsDataToolsParameters,
|
|
717
718
|
z.ZodTypeDef,
|
|
718
719
|
unknown
|
|
719
720
|
> = collectExtraKeys$(
|
|
@@ -727,13 +728,13 @@ export const GetAllToolsDataParameters$inboundSchema: z.ZodType<
|
|
|
727
728
|
true,
|
|
728
729
|
);
|
|
729
730
|
|
|
730
|
-
export function
|
|
731
|
+
export function getAllToolsDataToolsParametersFromJSON(
|
|
731
732
|
jsonString: string,
|
|
732
|
-
): SafeParseResult<
|
|
733
|
+
): SafeParseResult<GetAllToolsDataToolsParameters, SDKValidationError> {
|
|
733
734
|
return safeParse(
|
|
734
735
|
jsonString,
|
|
735
|
-
(x) =>
|
|
736
|
-
`Failed to parse '
|
|
736
|
+
(x) => GetAllToolsDataToolsParameters$inboundSchema.parse(JSON.parse(x)),
|
|
737
|
+
`Failed to parse 'GetAllToolsDataToolsParameters' from JSON`,
|
|
737
738
|
);
|
|
738
739
|
}
|
|
739
740
|
|
|
@@ -747,7 +748,8 @@ export const DataCodeTool$inboundSchema: z.ZodType<
|
|
|
747
748
|
z.ZodTypeDef,
|
|
748
749
|
unknown
|
|
749
750
|
> = z.object({
|
|
750
|
-
parameters: z.lazy(() =>
|
|
751
|
+
parameters: z.lazy(() => GetAllToolsDataToolsParameters$inboundSchema)
|
|
752
|
+
.optional(),
|
|
751
753
|
language: DataLanguage$inboundSchema,
|
|
752
754
|
code: z.string(),
|
|
753
755
|
});
|
|
@@ -768,7 +770,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
768
770
|
z.ZodTypeDef,
|
|
769
771
|
unknown
|
|
770
772
|
> = z.object({
|
|
771
|
-
_id: z.string().default("
|
|
773
|
+
_id: z.string().default("tool_01KJZ6J37JSDXN1MJRB724H4H8"),
|
|
772
774
|
path: z.string(),
|
|
773
775
|
key: z.string(),
|
|
774
776
|
display_name: z.string().optional(),
|
|
@@ -779,7 +781,8 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
779
781
|
workspace_id: z.string(),
|
|
780
782
|
created: z.string(),
|
|
781
783
|
updated: z.string(),
|
|
782
|
-
status:
|
|
784
|
+
status: GetAllToolsDataToolsResponse200ApplicationJSONStatus$inboundSchema
|
|
785
|
+
.default("live"),
|
|
783
786
|
version_hash: z.string().optional(),
|
|
784
787
|
type: z.literal("code"),
|
|
785
788
|
code_tool: z.lazy(() => DataCodeTool$inboundSchema),
|
|
@@ -807,13 +810,14 @@ export function dataCodeExecutionToolFromJSON(
|
|
|
807
810
|
}
|
|
808
811
|
|
|
809
812
|
/** @internal */
|
|
810
|
-
export const
|
|
811
|
-
typeof
|
|
812
|
-
|
|
813
|
+
export const GetAllToolsDataToolsResponse200Status$inboundSchema:
|
|
814
|
+
z.ZodNativeEnum<typeof GetAllToolsDataToolsResponse200Status> = z.nativeEnum(
|
|
815
|
+
GetAllToolsDataToolsResponse200Status,
|
|
816
|
+
);
|
|
813
817
|
|
|
814
818
|
/** @internal */
|
|
815
|
-
export const
|
|
816
|
-
|
|
819
|
+
export const GetAllToolsDataHeaders$inboundSchema: z.ZodType<
|
|
820
|
+
GetAllToolsDataHeaders,
|
|
817
821
|
z.ZodTypeDef,
|
|
818
822
|
unknown
|
|
819
823
|
> = z.object({
|
|
@@ -821,13 +825,13 @@ export const DataHeaders$inboundSchema: z.ZodType<
|
|
|
821
825
|
encrypted: z.boolean().default(false),
|
|
822
826
|
});
|
|
823
827
|
|
|
824
|
-
export function
|
|
828
|
+
export function getAllToolsDataHeadersFromJSON(
|
|
825
829
|
jsonString: string,
|
|
826
|
-
): SafeParseResult<
|
|
830
|
+
): SafeParseResult<GetAllToolsDataHeaders, SDKValidationError> {
|
|
827
831
|
return safeParse(
|
|
828
832
|
jsonString,
|
|
829
|
-
(x) =>
|
|
830
|
-
`Failed to parse '
|
|
833
|
+
(x) => GetAllToolsDataHeaders$inboundSchema.parse(JSON.parse(x)),
|
|
834
|
+
`Failed to parse 'GetAllToolsDataHeaders' from JSON`,
|
|
831
835
|
);
|
|
832
836
|
}
|
|
833
837
|
|
|
@@ -862,24 +866,24 @@ export function getAllToolsDataSchemaFromJSON(
|
|
|
862
866
|
}
|
|
863
867
|
|
|
864
868
|
/** @internal */
|
|
865
|
-
export const
|
|
866
|
-
|
|
869
|
+
export const GetAllToolsDataTools$inboundSchema: z.ZodType<
|
|
870
|
+
GetAllToolsDataTools,
|
|
867
871
|
z.ZodTypeDef,
|
|
868
872
|
unknown
|
|
869
873
|
> = z.object({
|
|
870
|
-
id: z.string().default("
|
|
874
|
+
id: z.string().default("01KJZ6J37JC83B9E90DA1YVW0N"),
|
|
871
875
|
name: z.string(),
|
|
872
876
|
description: z.string().optional(),
|
|
873
877
|
schema: z.lazy(() => GetAllToolsDataSchema$inboundSchema),
|
|
874
878
|
});
|
|
875
879
|
|
|
876
|
-
export function
|
|
880
|
+
export function getAllToolsDataToolsFromJSON(
|
|
877
881
|
jsonString: string,
|
|
878
|
-
): SafeParseResult<
|
|
882
|
+
): SafeParseResult<GetAllToolsDataTools, SDKValidationError> {
|
|
879
883
|
return safeParse(
|
|
880
884
|
jsonString,
|
|
881
|
-
(x) =>
|
|
882
|
-
`Failed to parse '
|
|
885
|
+
(x) => GetAllToolsDataTools$inboundSchema.parse(JSON.parse(x)),
|
|
886
|
+
`Failed to parse 'GetAllToolsDataTools' from JSON`,
|
|
883
887
|
);
|
|
884
888
|
}
|
|
885
889
|
|
|
@@ -892,8 +896,9 @@ export const DataConnectionType$inboundSchema: z.ZodNativeEnum<
|
|
|
892
896
|
export const DataMcp$inboundSchema: z.ZodType<DataMcp, z.ZodTypeDef, unknown> =
|
|
893
897
|
z.object({
|
|
894
898
|
server_url: z.string(),
|
|
895
|
-
headers: z.record(z.lazy(() =>
|
|
896
|
-
|
|
899
|
+
headers: z.record(z.lazy(() => GetAllToolsDataHeaders$inboundSchema))
|
|
900
|
+
.optional(),
|
|
901
|
+
tools: z.array(z.lazy(() => GetAllToolsDataTools$inboundSchema)),
|
|
897
902
|
connection_type: DataConnectionType$inboundSchema,
|
|
898
903
|
}).transform((v) => {
|
|
899
904
|
return remap$(v, {
|
|
@@ -918,7 +923,7 @@ export const DataMCPTool$inboundSchema: z.ZodType<
|
|
|
918
923
|
z.ZodTypeDef,
|
|
919
924
|
unknown
|
|
920
925
|
> = z.object({
|
|
921
|
-
_id: z.string().default("
|
|
926
|
+
_id: z.string().default("tool_01KJZ6J37G2NKC7BYFYHE3SSWB"),
|
|
922
927
|
path: z.string(),
|
|
923
928
|
key: z.string(),
|
|
924
929
|
display_name: z.string().optional(),
|
|
@@ -929,7 +934,7 @@ export const DataMCPTool$inboundSchema: z.ZodType<
|
|
|
929
934
|
workspace_id: z.string(),
|
|
930
935
|
created: z.string(),
|
|
931
936
|
updated: z.string(),
|
|
932
|
-
status:
|
|
937
|
+
status: GetAllToolsDataToolsResponse200Status$inboundSchema.default("live"),
|
|
933
938
|
version_hash: z.string().optional(),
|
|
934
939
|
type: z.literal("mcp"),
|
|
935
940
|
mcp: z.lazy(() => DataMcp$inboundSchema),
|
|
@@ -956,9 +961,9 @@ export function dataMCPToolFromJSON(
|
|
|
956
961
|
}
|
|
957
962
|
|
|
958
963
|
/** @internal */
|
|
959
|
-
export const
|
|
960
|
-
typeof
|
|
961
|
-
> = z.nativeEnum(
|
|
964
|
+
export const GetAllToolsDataToolsResponseStatus$inboundSchema: z.ZodNativeEnum<
|
|
965
|
+
typeof GetAllToolsDataToolsResponseStatus
|
|
966
|
+
> = z.nativeEnum(GetAllToolsDataToolsResponseStatus);
|
|
962
967
|
|
|
963
968
|
/** @internal */
|
|
964
969
|
export const GetAllToolsDataMethod$inboundSchema: z.ZodNativeEnum<
|
|
@@ -986,19 +991,19 @@ export function getAllToolsHeaders2FromJSON(
|
|
|
986
991
|
}
|
|
987
992
|
|
|
988
993
|
/** @internal */
|
|
989
|
-
export const
|
|
990
|
-
|
|
994
|
+
export const GetAllToolsDataToolsHeaders$inboundSchema: z.ZodType<
|
|
995
|
+
GetAllToolsDataToolsHeaders,
|
|
991
996
|
z.ZodTypeDef,
|
|
992
997
|
unknown
|
|
993
998
|
> = z.union([z.lazy(() => GetAllToolsHeaders2$inboundSchema), z.string()]);
|
|
994
999
|
|
|
995
|
-
export function
|
|
1000
|
+
export function getAllToolsDataToolsHeadersFromJSON(
|
|
996
1001
|
jsonString: string,
|
|
997
|
-
): SafeParseResult<
|
|
1002
|
+
): SafeParseResult<GetAllToolsDataToolsHeaders, SDKValidationError> {
|
|
998
1003
|
return safeParse(
|
|
999
1004
|
jsonString,
|
|
1000
|
-
(x) =>
|
|
1001
|
-
`Failed to parse '
|
|
1005
|
+
(x) => GetAllToolsDataToolsHeaders$inboundSchema.parse(JSON.parse(x)),
|
|
1006
|
+
`Failed to parse 'GetAllToolsDataToolsHeaders' from JSON`,
|
|
1002
1007
|
);
|
|
1003
1008
|
}
|
|
1004
1009
|
|
|
@@ -1105,7 +1110,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
|
|
|
1105
1110
|
z.ZodTypeDef,
|
|
1106
1111
|
unknown
|
|
1107
1112
|
> = z.object({
|
|
1108
|
-
_id: z.string().default("
|
|
1113
|
+
_id: z.string().default("tool_01KJZ6J37D40SA944CG3D1APJ3"),
|
|
1109
1114
|
path: z.string(),
|
|
1110
1115
|
key: z.string(),
|
|
1111
1116
|
display_name: z.string().optional(),
|
|
@@ -1116,7 +1121,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
|
|
|
1116
1121
|
workspace_id: z.string(),
|
|
1117
1122
|
created: z.string(),
|
|
1118
1123
|
updated: z.string(),
|
|
1119
|
-
status:
|
|
1124
|
+
status: GetAllToolsDataToolsResponseStatus$inboundSchema.default("live"),
|
|
1120
1125
|
version_hash: z.string().optional(),
|
|
1121
1126
|
type: z.literal("http"),
|
|
1122
1127
|
http: z.lazy(() => GetAllToolsDataHttp$inboundSchema),
|
|
@@ -1143,9 +1148,9 @@ export function dataHTTPToolFromJSON(
|
|
|
1143
1148
|
}
|
|
1144
1149
|
|
|
1145
1150
|
/** @internal */
|
|
1146
|
-
export const
|
|
1147
|
-
typeof
|
|
1148
|
-
> = z.nativeEnum(
|
|
1151
|
+
export const GetAllToolsDataToolsStatus$inboundSchema: z.ZodNativeEnum<
|
|
1152
|
+
typeof GetAllToolsDataToolsStatus
|
|
1153
|
+
> = z.nativeEnum(GetAllToolsDataToolsStatus);
|
|
1149
1154
|
|
|
1150
1155
|
/** @internal */
|
|
1151
1156
|
export const DataSchema$inboundSchema: z.ZodType<
|
|
@@ -1200,7 +1205,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1200
1205
|
z.ZodTypeDef,
|
|
1201
1206
|
unknown
|
|
1202
1207
|
> = z.object({
|
|
1203
|
-
_id: z.string().default("
|
|
1208
|
+
_id: z.string().default("tool_01KJZ6J37AEAP3YQRY55AT2D5Z"),
|
|
1204
1209
|
path: z.string(),
|
|
1205
1210
|
key: z.string(),
|
|
1206
1211
|
display_name: z.string().optional(),
|
|
@@ -1211,7 +1216,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1211
1216
|
workspace_id: z.string(),
|
|
1212
1217
|
created: z.string(),
|
|
1213
1218
|
updated: z.string(),
|
|
1214
|
-
status:
|
|
1219
|
+
status: GetAllToolsDataToolsStatus$inboundSchema.default("live"),
|
|
1215
1220
|
version_hash: z.string().optional(),
|
|
1216
1221
|
type: z.literal("json_schema"),
|
|
1217
1222
|
json_schema: z.lazy(() => DataJsonSchema$inboundSchema),
|
|
@@ -1239,8 +1244,9 @@ export function dataJSONSchemaToolFromJSON(
|
|
|
1239
1244
|
}
|
|
1240
1245
|
|
|
1241
1246
|
/** @internal */
|
|
1242
|
-
export const
|
|
1243
|
-
|
|
1247
|
+
export const GetAllToolsDataStatus$inboundSchema: z.ZodNativeEnum<
|
|
1248
|
+
typeof GetAllToolsDataStatus
|
|
1249
|
+
> = z.nativeEnum(GetAllToolsDataStatus);
|
|
1244
1250
|
|
|
1245
1251
|
/** @internal */
|
|
1246
1252
|
export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema:
|
|
@@ -1251,8 +1257,8 @@ export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inbo
|
|
|
1251
1257
|
);
|
|
1252
1258
|
|
|
1253
1259
|
/** @internal */
|
|
1254
|
-
export const
|
|
1255
|
-
|
|
1260
|
+
export const GetAllToolsDataParameters$inboundSchema: z.ZodType<
|
|
1261
|
+
GetAllToolsDataParameters,
|
|
1256
1262
|
z.ZodTypeDef,
|
|
1257
1263
|
unknown
|
|
1258
1264
|
> = collectExtraKeys$(
|
|
@@ -1266,13 +1272,13 @@ export const DataParameters$inboundSchema: z.ZodType<
|
|
|
1266
1272
|
true,
|
|
1267
1273
|
);
|
|
1268
1274
|
|
|
1269
|
-
export function
|
|
1275
|
+
export function getAllToolsDataParametersFromJSON(
|
|
1270
1276
|
jsonString: string,
|
|
1271
|
-
): SafeParseResult<
|
|
1277
|
+
): SafeParseResult<GetAllToolsDataParameters, SDKValidationError> {
|
|
1272
1278
|
return safeParse(
|
|
1273
1279
|
jsonString,
|
|
1274
|
-
(x) =>
|
|
1275
|
-
`Failed to parse '
|
|
1280
|
+
(x) => GetAllToolsDataParameters$inboundSchema.parse(JSON.parse(x)),
|
|
1281
|
+
`Failed to parse 'GetAllToolsDataParameters' from JSON`,
|
|
1276
1282
|
);
|
|
1277
1283
|
}
|
|
1278
1284
|
|
|
@@ -1285,7 +1291,7 @@ export const GetAllToolsDataFunction$inboundSchema: z.ZodType<
|
|
|
1285
1291
|
name: z.string(),
|
|
1286
1292
|
description: z.string().optional(),
|
|
1287
1293
|
strict: z.boolean().optional(),
|
|
1288
|
-
parameters: z.lazy(() =>
|
|
1294
|
+
parameters: z.lazy(() => GetAllToolsDataParameters$inboundSchema).optional(),
|
|
1289
1295
|
});
|
|
1290
1296
|
|
|
1291
1297
|
export function getAllToolsDataFunctionFromJSON(
|
|
@@ -1304,7 +1310,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
|
|
|
1304
1310
|
z.ZodTypeDef,
|
|
1305
1311
|
unknown
|
|
1306
1312
|
> = z.object({
|
|
1307
|
-
_id: z.string().default("
|
|
1313
|
+
_id: z.string().default("tool_01KJZ6J373SR84WVRDHG8N7BR7"),
|
|
1308
1314
|
path: z.string(),
|
|
1309
1315
|
key: z.string(),
|
|
1310
1316
|
display_name: z.string().optional(),
|
|
@@ -1315,7 +1321,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
|
|
|
1315
1321
|
workspace_id: z.string(),
|
|
1316
1322
|
created: z.string(),
|
|
1317
1323
|
updated: z.string(),
|
|
1318
|
-
status:
|
|
1324
|
+
status: GetAllToolsDataStatus$inboundSchema.default("live"),
|
|
1319
1325
|
version_hash: z.string().optional(),
|
|
1320
1326
|
type: z.literal("function"),
|
|
1321
1327
|
function: z.lazy(() => GetAllToolsDataFunction$inboundSchema),
|