@orq-ai/node 3.13.3 → 3.13.5
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/bin/mcp-server.js +216 -246
- package/bin/mcp-server.js.map +42 -42
- package/docs/sdks/agents/README.md +3 -3
- package/examples/package-lock.json +1 -1
- package/funcs/agentsRetrieveTask.js +2 -2
- package/funcs/agentsRetrieveTask.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createtool.js +14 -14
- package/models/operations/duplicatetool.js +10 -10
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getagent.d.ts +5 -2
- package/models/operations/getagent.d.ts.map +1 -1
- package/models/operations/getagent.js +4 -12
- package/models/operations/getagent.js.map +1 -1
- package/models/operations/getagenttask.d.ts +2 -2
- package/models/operations/getagenttask.d.ts.map +1 -1
- package/models/operations/getagenttask.js +4 -2
- package/models/operations/getagenttask.js.map +1 -1
- package/models/operations/getalltools.js +10 -10
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listagents.d.ts +5 -2
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +4 -12
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +10 -10
- package/models/operations/runagent.d.ts +5 -2
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +4 -12
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +5 -2
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +4 -12
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/packages/orq-rc/README.md +102 -93
- package/packages/orq-rc/docs/sdks/agents/README.md +97 -22
- package/packages/orq-rc/docs/sdks/knowledge/README.md +228 -0
- package/packages/orq-rc/docs/sdks/tools/README.md +14 -16
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/agentsListTasks.ts +183 -0
- package/packages/orq-rc/src/funcs/agentsRetrieve.ts +3 -3
- package/packages/orq-rc/src/funcs/agentsRetrieveTask.ts +2 -2
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +170 -0
- package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +170 -0
- package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +171 -0
- package/packages/orq-rc/src/funcs/toolsDelete.ts +2 -2
- package/packages/orq-rc/src/funcs/toolsDuplicate.ts +3 -3
- package/packages/orq-rc/src/funcs/toolsRetrieve.ts +3 -3
- package/packages/orq-rc/src/funcs/toolsUpdate.ts +2 -2
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +10 -2
- package/packages/orq-rc/src/mcp-server/tools/agentsListTasks.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunks.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/knowledgeGetChunksCount.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunksPaginated.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/toolsDuplicate.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +1 -1
- package/packages/orq-rc/src/models/errors/index.ts +1 -0
- package/packages/orq-rc/src/models/errors/listagenttasks.ts +80 -0
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/createprompt.ts +8 -0
- package/packages/orq-rc/src/models/operations/createtool.ts +10 -22
- package/packages/orq-rc/src/models/operations/deletechunks.ts +243 -0
- package/packages/orq-rc/src/models/operations/deletetool.ts +6 -6
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +4 -0
- package/packages/orq-rc/src/models/operations/deployments.ts +4 -0
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +23 -15
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getagent.ts +30 -27
- package/packages/orq-rc/src/models/operations/getagenttask.ts +6 -4
- package/packages/orq-rc/src/models/operations/getallprompts.ts +4 -0
- package/packages/orq-rc/src/models/operations/getalltools.ts +10 -10
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getchunkscount.ts +230 -0
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +4 -0
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +4 -0
- package/packages/orq-rc/src/models/operations/index.ts +4 -0
- package/packages/orq-rc/src/models/operations/listagents.ts +17 -22
- package/packages/orq-rc/src/models/operations/listagenttasks.ts +1099 -0
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listchunks.ts +21 -21
- package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +507 -0
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +29 -22
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +4 -0
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievetool.ts +16 -16
- package/packages/orq-rc/src/models/operations/runagent.ts +7 -18
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +7 -18
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/updateprompt.ts +8 -0
- package/packages/orq-rc/src/models/operations/updatetool.ts +44 -28
- package/packages/orq-rc/src/sdk/agents.ts +25 -7
- package/packages/orq-rc/src/sdk/knowledge.ts +45 -0
- package/packages/orq-rc/src/sdk/tools.ts +2 -2
- package/src/funcs/agentsRetrieveTask.ts +2 -2
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createtool.ts +14 -14
- package/src/models/operations/duplicatetool.ts +10 -10
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getagent.ts +9 -14
- package/src/models/operations/getagenttask.ts +6 -4
- package/src/models/operations/getalltools.ts +10 -10
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listagents.ts +9 -14
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +10 -10
- package/src/models/operations/runagent.ts +9 -14
- package/src/models/operations/streamrunagent.ts +9 -14
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatetool.ts +14 -14
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
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 GetChunksCountRequestBody = {
|
|
12
|
+
/**
|
|
13
|
+
* Search query to find chunks by text content
|
|
14
|
+
*/
|
|
15
|
+
q?: string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Filter chunks by enabled status
|
|
18
|
+
*/
|
|
19
|
+
enabled?: boolean | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Filter chunks by processing status
|
|
22
|
+
*/
|
|
23
|
+
status?: string | undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export type GetChunksCountRequest = {
|
|
27
|
+
/**
|
|
28
|
+
* The unique identifier of the knowledge base
|
|
29
|
+
*/
|
|
30
|
+
knowledgeId: string;
|
|
31
|
+
/**
|
|
32
|
+
* The unique identifier of the datasource.
|
|
33
|
+
*/
|
|
34
|
+
datasourceId: string;
|
|
35
|
+
requestBody?: GetChunksCountRequestBody | undefined;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Chunks count
|
|
40
|
+
*/
|
|
41
|
+
export type GetChunksCountResponseBody = {
|
|
42
|
+
count: number;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const GetChunksCountRequestBody$inboundSchema: z.ZodType<
|
|
47
|
+
GetChunksCountRequestBody,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
unknown
|
|
50
|
+
> = z.object({
|
|
51
|
+
q: z.string().default(""),
|
|
52
|
+
enabled: z.boolean().optional(),
|
|
53
|
+
status: z.string().optional(),
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
/** @internal */
|
|
57
|
+
export type GetChunksCountRequestBody$Outbound = {
|
|
58
|
+
q: string;
|
|
59
|
+
enabled?: boolean | undefined;
|
|
60
|
+
status?: string | undefined;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export const GetChunksCountRequestBody$outboundSchema: z.ZodType<
|
|
65
|
+
GetChunksCountRequestBody$Outbound,
|
|
66
|
+
z.ZodTypeDef,
|
|
67
|
+
GetChunksCountRequestBody
|
|
68
|
+
> = z.object({
|
|
69
|
+
q: z.string().default(""),
|
|
70
|
+
enabled: z.boolean().optional(),
|
|
71
|
+
status: z.string().optional(),
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @internal
|
|
76
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
77
|
+
*/
|
|
78
|
+
export namespace GetChunksCountRequestBody$ {
|
|
79
|
+
/** @deprecated use `GetChunksCountRequestBody$inboundSchema` instead. */
|
|
80
|
+
export const inboundSchema = GetChunksCountRequestBody$inboundSchema;
|
|
81
|
+
/** @deprecated use `GetChunksCountRequestBody$outboundSchema` instead. */
|
|
82
|
+
export const outboundSchema = GetChunksCountRequestBody$outboundSchema;
|
|
83
|
+
/** @deprecated use `GetChunksCountRequestBody$Outbound` instead. */
|
|
84
|
+
export type Outbound = GetChunksCountRequestBody$Outbound;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function getChunksCountRequestBodyToJSON(
|
|
88
|
+
getChunksCountRequestBody: GetChunksCountRequestBody,
|
|
89
|
+
): string {
|
|
90
|
+
return JSON.stringify(
|
|
91
|
+
GetChunksCountRequestBody$outboundSchema.parse(getChunksCountRequestBody),
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function getChunksCountRequestBodyFromJSON(
|
|
96
|
+
jsonString: string,
|
|
97
|
+
): SafeParseResult<GetChunksCountRequestBody, SDKValidationError> {
|
|
98
|
+
return safeParse(
|
|
99
|
+
jsonString,
|
|
100
|
+
(x) => GetChunksCountRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
101
|
+
`Failed to parse 'GetChunksCountRequestBody' from JSON`,
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/** @internal */
|
|
106
|
+
export const GetChunksCountRequest$inboundSchema: z.ZodType<
|
|
107
|
+
GetChunksCountRequest,
|
|
108
|
+
z.ZodTypeDef,
|
|
109
|
+
unknown
|
|
110
|
+
> = z.object({
|
|
111
|
+
knowledge_id: z.string(),
|
|
112
|
+
datasource_id: z.string(),
|
|
113
|
+
RequestBody: z.lazy(() => GetChunksCountRequestBody$inboundSchema).optional(),
|
|
114
|
+
}).transform((v) => {
|
|
115
|
+
return remap$(v, {
|
|
116
|
+
"knowledge_id": "knowledgeId",
|
|
117
|
+
"datasource_id": "datasourceId",
|
|
118
|
+
"RequestBody": "requestBody",
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
/** @internal */
|
|
123
|
+
export type GetChunksCountRequest$Outbound = {
|
|
124
|
+
knowledge_id: string;
|
|
125
|
+
datasource_id: string;
|
|
126
|
+
RequestBody?: GetChunksCountRequestBody$Outbound | undefined;
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
/** @internal */
|
|
130
|
+
export const GetChunksCountRequest$outboundSchema: z.ZodType<
|
|
131
|
+
GetChunksCountRequest$Outbound,
|
|
132
|
+
z.ZodTypeDef,
|
|
133
|
+
GetChunksCountRequest
|
|
134
|
+
> = z.object({
|
|
135
|
+
knowledgeId: z.string(),
|
|
136
|
+
datasourceId: z.string(),
|
|
137
|
+
requestBody: z.lazy(() => GetChunksCountRequestBody$outboundSchema)
|
|
138
|
+
.optional(),
|
|
139
|
+
}).transform((v) => {
|
|
140
|
+
return remap$(v, {
|
|
141
|
+
knowledgeId: "knowledge_id",
|
|
142
|
+
datasourceId: "datasource_id",
|
|
143
|
+
requestBody: "RequestBody",
|
|
144
|
+
});
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* @internal
|
|
149
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
150
|
+
*/
|
|
151
|
+
export namespace GetChunksCountRequest$ {
|
|
152
|
+
/** @deprecated use `GetChunksCountRequest$inboundSchema` instead. */
|
|
153
|
+
export const inboundSchema = GetChunksCountRequest$inboundSchema;
|
|
154
|
+
/** @deprecated use `GetChunksCountRequest$outboundSchema` instead. */
|
|
155
|
+
export const outboundSchema = GetChunksCountRequest$outboundSchema;
|
|
156
|
+
/** @deprecated use `GetChunksCountRequest$Outbound` instead. */
|
|
157
|
+
export type Outbound = GetChunksCountRequest$Outbound;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export function getChunksCountRequestToJSON(
|
|
161
|
+
getChunksCountRequest: GetChunksCountRequest,
|
|
162
|
+
): string {
|
|
163
|
+
return JSON.stringify(
|
|
164
|
+
GetChunksCountRequest$outboundSchema.parse(getChunksCountRequest),
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export function getChunksCountRequestFromJSON(
|
|
169
|
+
jsonString: string,
|
|
170
|
+
): SafeParseResult<GetChunksCountRequest, SDKValidationError> {
|
|
171
|
+
return safeParse(
|
|
172
|
+
jsonString,
|
|
173
|
+
(x) => GetChunksCountRequest$inboundSchema.parse(JSON.parse(x)),
|
|
174
|
+
`Failed to parse 'GetChunksCountRequest' from JSON`,
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/** @internal */
|
|
179
|
+
export const GetChunksCountResponseBody$inboundSchema: z.ZodType<
|
|
180
|
+
GetChunksCountResponseBody,
|
|
181
|
+
z.ZodTypeDef,
|
|
182
|
+
unknown
|
|
183
|
+
> = z.object({
|
|
184
|
+
count: z.number(),
|
|
185
|
+
});
|
|
186
|
+
|
|
187
|
+
/** @internal */
|
|
188
|
+
export type GetChunksCountResponseBody$Outbound = {
|
|
189
|
+
count: number;
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
/** @internal */
|
|
193
|
+
export const GetChunksCountResponseBody$outboundSchema: z.ZodType<
|
|
194
|
+
GetChunksCountResponseBody$Outbound,
|
|
195
|
+
z.ZodTypeDef,
|
|
196
|
+
GetChunksCountResponseBody
|
|
197
|
+
> = z.object({
|
|
198
|
+
count: z.number(),
|
|
199
|
+
});
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* @internal
|
|
203
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
204
|
+
*/
|
|
205
|
+
export namespace GetChunksCountResponseBody$ {
|
|
206
|
+
/** @deprecated use `GetChunksCountResponseBody$inboundSchema` instead. */
|
|
207
|
+
export const inboundSchema = GetChunksCountResponseBody$inboundSchema;
|
|
208
|
+
/** @deprecated use `GetChunksCountResponseBody$outboundSchema` instead. */
|
|
209
|
+
export const outboundSchema = GetChunksCountResponseBody$outboundSchema;
|
|
210
|
+
/** @deprecated use `GetChunksCountResponseBody$Outbound` instead. */
|
|
211
|
+
export type Outbound = GetChunksCountResponseBody$Outbound;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export function getChunksCountResponseBodyToJSON(
|
|
215
|
+
getChunksCountResponseBody: GetChunksCountResponseBody,
|
|
216
|
+
): string {
|
|
217
|
+
return JSON.stringify(
|
|
218
|
+
GetChunksCountResponseBody$outboundSchema.parse(getChunksCountResponseBody),
|
|
219
|
+
);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export function getChunksCountResponseBodyFromJSON(
|
|
223
|
+
jsonString: string,
|
|
224
|
+
): SafeParseResult<GetChunksCountResponseBody, SDKValidationError> {
|
|
225
|
+
return safeParse(
|
|
226
|
+
jsonString,
|
|
227
|
+
(x) => GetChunksCountResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
228
|
+
`Failed to parse 'GetChunksCountResponseBody' from JSON`,
|
|
229
|
+
);
|
|
230
|
+
}
|
|
@@ -1556,8 +1556,8 @@ export const DataTypescript$inboundSchema: z.ZodType<
|
|
|
1556
1556
|
> = z.object({
|
|
1557
1557
|
_id: z.string(),
|
|
1558
1558
|
description: z.string(),
|
|
1559
|
-
created: z.string().default("2025-10-
|
|
1560
|
-
updated: z.string().default("2025-10-
|
|
1559
|
+
created: z.string().default("2025-10-03T13:54:00.311Z"),
|
|
1560
|
+
updated: z.string().default("2025-10-03T13:54:00.311Z"),
|
|
1561
1561
|
guardrail_config: z.union([
|
|
1562
1562
|
z.lazy(() =>
|
|
1563
1563
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
|
|
@@ -1600,8 +1600,8 @@ export const DataTypescript$outboundSchema: z.ZodType<
|
|
|
1600
1600
|
> = z.object({
|
|
1601
1601
|
id: z.string(),
|
|
1602
1602
|
description: z.string(),
|
|
1603
|
-
created: z.string().default("2025-10-
|
|
1604
|
-
updated: z.string().default("2025-10-
|
|
1603
|
+
created: z.string().default("2025-10-03T13:54:00.311Z"),
|
|
1604
|
+
updated: z.string().default("2025-10-03T13:54:00.311Z"),
|
|
1605
1605
|
guardrailConfig: z.union([
|
|
1606
1606
|
z.lazy(() =>
|
|
1607
1607
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema
|
|
@@ -2002,8 +2002,8 @@ export const DataRagas$inboundSchema: z.ZodType<
|
|
|
2002
2002
|
> = z.object({
|
|
2003
2003
|
_id: z.string(),
|
|
2004
2004
|
description: z.string(),
|
|
2005
|
-
created: z.string().default("2025-10-
|
|
2006
|
-
updated: z.string().default("2025-10-
|
|
2005
|
+
created: z.string().default("2025-10-03T13:54:00.311Z"),
|
|
2006
|
+
updated: z.string().default("2025-10-03T13:54:00.311Z"),
|
|
2007
2007
|
guardrail_config: z.union([
|
|
2008
2008
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
2009
2009
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponse200Boolean$inboundSchema),
|
|
@@ -2044,8 +2044,8 @@ export const DataRagas$outboundSchema: z.ZodType<
|
|
|
2044
2044
|
> = z.object({
|
|
2045
2045
|
id: z.string(),
|
|
2046
2046
|
description: z.string(),
|
|
2047
|
-
created: z.string().default("2025-10-
|
|
2048
|
-
updated: z.string().default("2025-10-
|
|
2047
|
+
created: z.string().default("2025-10-03T13:54:00.311Z"),
|
|
2048
|
+
updated: z.string().default("2025-10-03T13:54:00.311Z"),
|
|
2049
2049
|
guardrailConfig: z.union([
|
|
2050
2050
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponse200Number$outboundSchema),
|
|
2051
2051
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponse200Boolean$outboundSchema),
|
|
@@ -5512,8 +5512,8 @@ export const DataFunction$inboundSchema: z.ZodType<
|
|
|
5512
5512
|
> = z.object({
|
|
5513
5513
|
_id: z.string(),
|
|
5514
5514
|
description: z.string(),
|
|
5515
|
-
created: z.string().default("2025-10-
|
|
5516
|
-
updated: z.string().default("2025-10-
|
|
5515
|
+
created: z.string().default("2025-10-03T13:54:00.311Z"),
|
|
5516
|
+
updated: z.string().default("2025-10-03T13:54:00.311Z"),
|
|
5517
5517
|
guardrail_config: z.union([
|
|
5518
5518
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
5519
5519
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -5623,8 +5623,8 @@ export const DataFunction$outboundSchema: z.ZodType<
|
|
|
5623
5623
|
> = z.object({
|
|
5624
5624
|
id: z.string(),
|
|
5625
5625
|
description: z.string(),
|
|
5626
|
-
created: z.string().default("2025-10-
|
|
5627
|
-
updated: z.string().default("2025-10-
|
|
5626
|
+
created: z.string().default("2025-10-03T13:54:00.311Z"),
|
|
5627
|
+
updated: z.string().default("2025-10-03T13:54:00.311Z"),
|
|
5628
5628
|
guardrailConfig: z.union([
|
|
5629
5629
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
5630
5630
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponseBoolean$outboundSchema),
|
|
@@ -6006,8 +6006,8 @@ export const DataPython$inboundSchema: z.ZodType<
|
|
|
6006
6006
|
> = z.object({
|
|
6007
6007
|
_id: z.string(),
|
|
6008
6008
|
description: z.string(),
|
|
6009
|
-
created: z.string().default("2025-10-
|
|
6010
|
-
updated: z.string().default("2025-10-
|
|
6009
|
+
created: z.string().default("2025-10-03T13:54:00.311Z"),
|
|
6010
|
+
updated: z.string().default("2025-10-03T13:54:00.311Z"),
|
|
6011
6011
|
guardrail_config: z.union([
|
|
6012
6012
|
z.lazy(() => GetEvalsGuardrailConfigEvalsNumber$inboundSchema),
|
|
6013
6013
|
z.lazy(() => GetEvalsGuardrailConfigEvalsBoolean$inboundSchema),
|
|
@@ -6045,8 +6045,8 @@ export const DataPython$outboundSchema: z.ZodType<
|
|
|
6045
6045
|
> = z.object({
|
|
6046
6046
|
id: z.string(),
|
|
6047
6047
|
description: z.string(),
|
|
6048
|
-
created: z.string().default("2025-10-
|
|
6049
|
-
updated: z.string().default("2025-10-
|
|
6048
|
+
created: z.string().default("2025-10-03T13:54:00.311Z"),
|
|
6049
|
+
updated: z.string().default("2025-10-03T13:54:00.311Z"),
|
|
6050
6050
|
guardrailConfig: z.union([
|
|
6051
6051
|
z.lazy(() => GetEvalsGuardrailConfigEvalsNumber$outboundSchema),
|
|
6052
6052
|
z.lazy(() => GetEvalsGuardrailConfigEvalsBoolean$outboundSchema),
|
|
@@ -6392,8 +6392,8 @@ export const DataHTTP$inboundSchema: z.ZodType<
|
|
|
6392
6392
|
> = z.object({
|
|
6393
6393
|
_id: z.string(),
|
|
6394
6394
|
description: z.string(),
|
|
6395
|
-
created: z.string().default("2025-10-
|
|
6396
|
-
updated: z.string().default("2025-10-
|
|
6395
|
+
created: z.string().default("2025-10-03T13:54:00.311Z"),
|
|
6396
|
+
updated: z.string().default("2025-10-03T13:54:00.311Z"),
|
|
6397
6397
|
guardrail_config: z.union([
|
|
6398
6398
|
z.lazy(() => GetEvalsGuardrailConfigNumber$inboundSchema),
|
|
6399
6399
|
z.lazy(() => GetEvalsGuardrailConfigBoolean$inboundSchema),
|
|
@@ -6437,8 +6437,8 @@ export const DataHTTP$outboundSchema: z.ZodType<
|
|
|
6437
6437
|
> = z.object({
|
|
6438
6438
|
id: z.string(),
|
|
6439
6439
|
description: z.string(),
|
|
6440
|
-
created: z.string().default("2025-10-
|
|
6441
|
-
updated: z.string().default("2025-10-
|
|
6440
|
+
created: z.string().default("2025-10-03T13:54:00.311Z"),
|
|
6441
|
+
updated: z.string().default("2025-10-03T13:54:00.311Z"),
|
|
6442
6442
|
guardrailConfig: z.union([
|
|
6443
6443
|
z.lazy(() => GetEvalsGuardrailConfigNumber$outboundSchema),
|
|
6444
6444
|
z.lazy(() => GetEvalsGuardrailConfigBoolean$outboundSchema),
|
|
@@ -6803,8 +6803,8 @@ export const DataJSON$inboundSchema: z.ZodType<
|
|
|
6803
6803
|
> = z.object({
|
|
6804
6804
|
_id: z.string(),
|
|
6805
6805
|
description: z.string(),
|
|
6806
|
-
created: z.string().default("2025-10-
|
|
6807
|
-
updated: z.string().default("2025-10-
|
|
6806
|
+
created: z.string().default("2025-10-03T13:54:00.311Z"),
|
|
6807
|
+
updated: z.string().default("2025-10-03T13:54:00.311Z"),
|
|
6808
6808
|
guardrail_config: z.union([
|
|
6809
6809
|
z.lazy(() =>
|
|
6810
6810
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumber$inboundSchema
|
|
@@ -6846,8 +6846,8 @@ export const DataJSON$outboundSchema: z.ZodType<
|
|
|
6846
6846
|
> = z.object({
|
|
6847
6847
|
id: z.string(),
|
|
6848
6848
|
description: z.string(),
|
|
6849
|
-
created: z.string().default("2025-10-
|
|
6850
|
-
updated: z.string().default("2025-10-
|
|
6849
|
+
created: z.string().default("2025-10-03T13:54:00.311Z"),
|
|
6850
|
+
updated: z.string().default("2025-10-03T13:54:00.311Z"),
|
|
6851
6851
|
guardrailConfig: z.union([
|
|
6852
6852
|
z.lazy(() =>
|
|
6853
6853
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumber$outboundSchema
|
|
@@ -7229,8 +7229,8 @@ export const DataLLM$inboundSchema: z.ZodType<DataLLM, z.ZodTypeDef, unknown> =
|
|
|
7229
7229
|
z.object({
|
|
7230
7230
|
_id: z.string(),
|
|
7231
7231
|
description: z.string(),
|
|
7232
|
-
created: z.string().default("2025-10-
|
|
7233
|
-
updated: z.string().default("2025-10-
|
|
7232
|
+
created: z.string().default("2025-10-03T13:54:00.311Z"),
|
|
7233
|
+
updated: z.string().default("2025-10-03T13:54:00.311Z"),
|
|
7234
7234
|
guardrail_config: z.union([
|
|
7235
7235
|
z.lazy(() =>
|
|
7236
7236
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
|
|
@@ -7274,8 +7274,8 @@ export const DataLLM$outboundSchema: z.ZodType<
|
|
|
7274
7274
|
> = z.object({
|
|
7275
7275
|
id: z.string(),
|
|
7276
7276
|
description: z.string(),
|
|
7277
|
-
created: z.string().default("2025-10-
|
|
7278
|
-
updated: z.string().default("2025-10-
|
|
7277
|
+
created: z.string().default("2025-10-03T13:54:00.311Z"),
|
|
7278
|
+
updated: z.string().default("2025-10-03T13:54:00.311Z"),
|
|
7279
7279
|
guardrailConfig: z.union([
|
|
7280
7280
|
z.lazy(() =>
|
|
7281
7281
|
GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema
|
|
@@ -114,6 +114,7 @@ export type GetOnePrompt1Type = ClosedEnum<typeof GetOnePrompt1Type>;
|
|
|
114
114
|
|
|
115
115
|
export type GetOnePrompt1JsonSchema = {
|
|
116
116
|
name: string;
|
|
117
|
+
description?: string | undefined;
|
|
117
118
|
strict?: boolean | undefined;
|
|
118
119
|
schema: { [k: string]: any };
|
|
119
120
|
};
|
|
@@ -921,6 +922,7 @@ export const GetOnePrompt1JsonSchema$inboundSchema: z.ZodType<
|
|
|
921
922
|
unknown
|
|
922
923
|
> = z.object({
|
|
923
924
|
name: z.string(),
|
|
925
|
+
description: z.string().optional(),
|
|
924
926
|
strict: z.boolean().optional(),
|
|
925
927
|
schema: z.record(z.any()),
|
|
926
928
|
});
|
|
@@ -928,6 +930,7 @@ export const GetOnePrompt1JsonSchema$inboundSchema: z.ZodType<
|
|
|
928
930
|
/** @internal */
|
|
929
931
|
export type GetOnePrompt1JsonSchema$Outbound = {
|
|
930
932
|
name: string;
|
|
933
|
+
description?: string | undefined;
|
|
931
934
|
strict?: boolean | undefined;
|
|
932
935
|
schema: { [k: string]: any };
|
|
933
936
|
};
|
|
@@ -939,6 +942,7 @@ export const GetOnePrompt1JsonSchema$outboundSchema: z.ZodType<
|
|
|
939
942
|
GetOnePrompt1JsonSchema
|
|
940
943
|
> = z.object({
|
|
941
944
|
name: z.string(),
|
|
945
|
+
description: z.string().optional(),
|
|
942
946
|
strict: z.boolean().optional(),
|
|
943
947
|
schema: z.record(z.any()),
|
|
944
948
|
});
|
|
@@ -115,6 +115,7 @@ export type GetPromptVersion1Type = ClosedEnum<typeof GetPromptVersion1Type>;
|
|
|
115
115
|
|
|
116
116
|
export type GetPromptVersion1JsonSchema = {
|
|
117
117
|
name: string;
|
|
118
|
+
description?: string | undefined;
|
|
118
119
|
strict?: boolean | undefined;
|
|
119
120
|
schema: { [k: string]: any };
|
|
120
121
|
};
|
|
@@ -925,6 +926,7 @@ export const GetPromptVersion1JsonSchema$inboundSchema: z.ZodType<
|
|
|
925
926
|
unknown
|
|
926
927
|
> = z.object({
|
|
927
928
|
name: z.string(),
|
|
929
|
+
description: z.string().optional(),
|
|
928
930
|
strict: z.boolean().optional(),
|
|
929
931
|
schema: z.record(z.any()),
|
|
930
932
|
});
|
|
@@ -932,6 +934,7 @@ export const GetPromptVersion1JsonSchema$inboundSchema: z.ZodType<
|
|
|
932
934
|
/** @internal */
|
|
933
935
|
export type GetPromptVersion1JsonSchema$Outbound = {
|
|
934
936
|
name: string;
|
|
937
|
+
description?: string | undefined;
|
|
935
938
|
strict?: boolean | undefined;
|
|
936
939
|
schema: { [k: string]: any };
|
|
937
940
|
};
|
|
@@ -943,6 +946,7 @@ export const GetPromptVersion1JsonSchema$outboundSchema: z.ZodType<
|
|
|
943
946
|
GetPromptVersion1JsonSchema
|
|
944
947
|
> = z.object({
|
|
945
948
|
name: z.string(),
|
|
949
|
+
description: z.string().optional(),
|
|
946
950
|
strict: z.boolean().optional(),
|
|
947
951
|
schema: z.record(z.any()),
|
|
948
952
|
});
|
|
@@ -19,6 +19,7 @@ export * from "./createprompt.js";
|
|
|
19
19
|
export * from "./createtool.js";
|
|
20
20
|
export * from "./deletebudget.js";
|
|
21
21
|
export * from "./deletechunk.js";
|
|
22
|
+
export * from "./deletechunks.js";
|
|
22
23
|
export * from "./deletecontact.js";
|
|
23
24
|
export * from "./deletedatapoint.js";
|
|
24
25
|
export * from "./deletedataset.js";
|
|
@@ -85,6 +86,7 @@ export * from "./getallmemorystores.js";
|
|
|
85
86
|
export * from "./getallprompts.js";
|
|
86
87
|
export * from "./getalltools.js";
|
|
87
88
|
export * from "./getbudget.js";
|
|
89
|
+
export * from "./getchunkscount.js";
|
|
88
90
|
export * from "./getevals.js";
|
|
89
91
|
export * from "./getonechunk.js";
|
|
90
92
|
export * from "./getoneknowledge.js";
|
|
@@ -93,8 +95,10 @@ export * from "./getpromptversion.js";
|
|
|
93
95
|
export * from "./invokeeval.js";
|
|
94
96
|
export * from "./listactions.js";
|
|
95
97
|
export * from "./listagents.js";
|
|
98
|
+
export * from "./listagenttasks.js";
|
|
96
99
|
export * from "./listbudgets.js";
|
|
97
100
|
export * from "./listchunks.js";
|
|
101
|
+
export * from "./listchunkspaginated.js";
|
|
98
102
|
export * from "./listcontacts.js";
|
|
99
103
|
export * from "./listdatasetdatapoints.js";
|
|
100
104
|
export * from "./listdatasets.js";
|
|
@@ -116,11 +116,11 @@ export type ListAgentsModel = {
|
|
|
116
116
|
/**
|
|
117
117
|
* Optional integration ID for custom model configurations
|
|
118
118
|
*/
|
|
119
|
-
integrationId?: string | undefined;
|
|
119
|
+
integrationId?: string | null | undefined;
|
|
120
120
|
/**
|
|
121
121
|
* Optional array of fallback model IDs that will be used automatically in order if the primary model fails
|
|
122
122
|
*/
|
|
123
|
-
fallbackModels?: Array<string> | undefined;
|
|
123
|
+
fallbackModels?: Array<string> | null | undefined;
|
|
124
124
|
/**
|
|
125
125
|
* Maximum number of tokens for model responses
|
|
126
126
|
*/
|
|
@@ -132,7 +132,10 @@ export type ListAgentsModel = {
|
|
|
132
132
|
};
|
|
133
133
|
|
|
134
134
|
export type ListAgentsTeamOfAgents = {
|
|
135
|
-
|
|
135
|
+
/**
|
|
136
|
+
* The unique key of the agent within the workspace
|
|
137
|
+
*/
|
|
138
|
+
key: string;
|
|
136
139
|
/**
|
|
137
140
|
* The role of the agent in this context. This is used to give extra information to the leader to help it decide which agent to hand off to.
|
|
138
141
|
*/
|
|
@@ -621,8 +624,8 @@ export const ListAgentsModel$inboundSchema: z.ZodType<
|
|
|
621
624
|
unknown
|
|
622
625
|
> = z.object({
|
|
623
626
|
id: z.string(),
|
|
624
|
-
integration_id: z.string().optional(),
|
|
625
|
-
fallback_models: z.array(z.string()).optional(),
|
|
627
|
+
integration_id: z.nullable(z.string()).optional(),
|
|
628
|
+
fallback_models: z.nullable(z.array(z.string())).optional(),
|
|
626
629
|
max_tokens: z.number().int().optional(),
|
|
627
630
|
temperature: z.number().optional(),
|
|
628
631
|
}).transform((v) => {
|
|
@@ -636,8 +639,8 @@ export const ListAgentsModel$inboundSchema: z.ZodType<
|
|
|
636
639
|
/** @internal */
|
|
637
640
|
export type ListAgentsModel$Outbound = {
|
|
638
641
|
id: string;
|
|
639
|
-
integration_id?: string | undefined;
|
|
640
|
-
fallback_models?: Array<string> | undefined;
|
|
642
|
+
integration_id?: string | null | undefined;
|
|
643
|
+
fallback_models?: Array<string> | null | undefined;
|
|
641
644
|
max_tokens?: number | undefined;
|
|
642
645
|
temperature?: number | undefined;
|
|
643
646
|
};
|
|
@@ -649,8 +652,8 @@ export const ListAgentsModel$outboundSchema: z.ZodType<
|
|
|
649
652
|
ListAgentsModel
|
|
650
653
|
> = z.object({
|
|
651
654
|
id: z.string(),
|
|
652
|
-
integrationId: z.string().optional(),
|
|
653
|
-
fallbackModels: z.array(z.string()).optional(),
|
|
655
|
+
integrationId: z.nullable(z.string()).optional(),
|
|
656
|
+
fallbackModels: z.nullable(z.array(z.string())).optional(),
|
|
654
657
|
maxTokens: z.number().int().optional(),
|
|
655
658
|
temperature: z.number().optional(),
|
|
656
659
|
}).transform((v) => {
|
|
@@ -696,17 +699,13 @@ export const ListAgentsTeamOfAgents$inboundSchema: z.ZodType<
|
|
|
696
699
|
z.ZodTypeDef,
|
|
697
700
|
unknown
|
|
698
701
|
> = z.object({
|
|
699
|
-
|
|
702
|
+
key: z.string(),
|
|
700
703
|
role: z.string().optional(),
|
|
701
|
-
}).transform((v) => {
|
|
702
|
-
return remap$(v, {
|
|
703
|
-
"_id": "id",
|
|
704
|
-
});
|
|
705
704
|
});
|
|
706
705
|
|
|
707
706
|
/** @internal */
|
|
708
707
|
export type ListAgentsTeamOfAgents$Outbound = {
|
|
709
|
-
|
|
708
|
+
key: string;
|
|
710
709
|
role?: string | undefined;
|
|
711
710
|
};
|
|
712
711
|
|
|
@@ -716,12 +715,8 @@ export const ListAgentsTeamOfAgents$outboundSchema: z.ZodType<
|
|
|
716
715
|
z.ZodTypeDef,
|
|
717
716
|
ListAgentsTeamOfAgents
|
|
718
717
|
> = z.object({
|
|
719
|
-
|
|
718
|
+
key: z.string(),
|
|
720
719
|
role: z.string().optional(),
|
|
721
|
-
}).transform((v) => {
|
|
722
|
-
return remap$(v, {
|
|
723
|
-
id: "_id",
|
|
724
|
-
});
|
|
725
720
|
});
|
|
726
721
|
|
|
727
722
|
/**
|
|
@@ -1075,7 +1070,7 @@ export const ListAgentsKnowledgeBases$inboundSchema: z.ZodType<
|
|
|
1075
1070
|
z.ZodTypeDef,
|
|
1076
1071
|
unknown
|
|
1077
1072
|
> = z.object({
|
|
1078
|
-
id: z.string().default("
|
|
1073
|
+
id: z.string().default("01K6N5KXWT4X129WMQN5TVGWC9"),
|
|
1079
1074
|
knowledge_id: z.string(),
|
|
1080
1075
|
configuration: z.union([
|
|
1081
1076
|
z.lazy(() =>
|
|
@@ -1106,7 +1101,7 @@ export const ListAgentsKnowledgeBases$outboundSchema: z.ZodType<
|
|
|
1106
1101
|
z.ZodTypeDef,
|
|
1107
1102
|
ListAgentsKnowledgeBases
|
|
1108
1103
|
> = z.object({
|
|
1109
|
-
id: z.string().default("
|
|
1104
|
+
id: z.string().default("01K6N5KXWT4X129WMQN5TVGWC9"),
|
|
1110
1105
|
knowledgeId: z.string(),
|
|
1111
1106
|
configuration: z.union([
|
|
1112
1107
|
z.lazy(() =>
|