@orq-ai/node 4.12.0-rc.33 → 4.12.0-rc.36
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/README.md +55 -36
- package/funcs/knowledgeListDatasources.js +1 -0
- package/funcs/knowledgeListDatasources.js.map +1 -1
- package/funcs/webhooksCount.d.ts +17 -0
- package/funcs/webhooksCount.d.ts.map +1 -0
- package/funcs/webhooksCount.js +105 -0
- package/funcs/webhooksCount.js.map +1 -0
- package/funcs/webhooksCreate.d.ts +17 -0
- package/funcs/webhooksCreate.d.ts.map +1 -0
- package/funcs/webhooksCreate.js +115 -0
- package/funcs/webhooksCreate.js.map +1 -0
- package/funcs/webhooksDelete.d.ts +18 -0
- package/funcs/webhooksDelete.d.ts.map +1 -0
- package/funcs/webhooksDelete.js +121 -0
- package/funcs/webhooksDelete.js.map +1 -0
- package/funcs/webhooksGenerateSecret.d.ts +17 -0
- package/funcs/webhooksGenerateSecret.d.ts.map +1 -0
- package/funcs/webhooksGenerateSecret.js +105 -0
- package/funcs/webhooksGenerateSecret.js.map +1 -0
- package/funcs/webhooksGet.d.ts +18 -0
- package/funcs/webhooksGet.d.ts.map +1 -0
- package/funcs/webhooksGet.js +121 -0
- package/funcs/webhooksGet.js.map +1 -0
- package/funcs/webhooksList.d.ts +18 -0
- package/funcs/webhooksList.d.ts.map +1 -0
- package/funcs/webhooksList.js +126 -0
- package/funcs/webhooksList.js.map +1 -0
- package/funcs/webhooksQuery.d.ts +19 -0
- package/funcs/webhooksQuery.d.ts.map +1 -0
- package/funcs/webhooksQuery.js +117 -0
- package/funcs/webhooksQuery.js.map +1 -0
- package/funcs/webhooksUpdate.d.ts +17 -0
- package/funcs/webhooksUpdate.d.ts.map +1 -0
- package/funcs/webhooksUpdate.js +121 -0
- package/funcs/webhooksUpdate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/countwebhooksresponse.d.ts +16 -0
- package/models/components/countwebhooksresponse.d.ts.map +1 -0
- package/models/components/countwebhooksresponse.js +50 -0
- package/models/components/countwebhooksresponse.js.map +1 -0
- package/models/components/createwebhookrequest.d.ts +62 -0
- package/models/components/createwebhookrequest.d.ts.map +1 -0
- package/models/components/createwebhookrequest.js +71 -0
- package/models/components/createwebhookrequest.js.map +1 -0
- package/models/components/deletewebhookresponse.d.ts +13 -0
- package/models/components/deletewebhookresponse.d.ts.map +1 -0
- package/models/components/deletewebhookresponse.js +50 -0
- package/models/components/deletewebhookresponse.js.map +1 -0
- 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/generatewebhooksecretresponse.d.ts +16 -0
- package/models/components/generatewebhooksecretresponse.d.ts.map +1 -0
- package/models/components/generatewebhooksecretresponse.js +50 -0
- package/models/components/generatewebhooksecretresponse.js.map +1 -0
- package/models/components/index.d.ts +10 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +10 -0
- package/models/components/index.js.map +1 -1
- package/models/components/listwebhooksresponse.d.ts +25 -0
- package/models/components/listwebhooksresponse.d.ts.map +1 -0
- package/models/components/listwebhooksresponse.js +58 -0
- package/models/components/listwebhooksresponse.js.map +1 -0
- package/models/components/queryparamspagination.d.ts +18 -0
- package/models/components/queryparamspagination.d.ts.map +1 -0
- package/models/components/queryparamspagination.js +52 -0
- package/models/components/queryparamspagination.js.map +1 -0
- package/models/components/queryparamssort.d.ts +14 -0
- package/models/components/queryparamssort.d.ts.map +1 -0
- package/models/components/queryparamssort.js +50 -0
- package/models/components/queryparamssort.js.map +1 -0
- package/models/components/querywebhooksrequest.d.ts +38 -0
- package/models/components/querywebhooksrequest.d.ts.map +1 -0
- package/models/components/querywebhooksrequest.js +67 -0
- package/models/components/querywebhooksrequest.js.map +1 -0
- package/models/components/querywebhooksresponse.d.ts +12 -0
- package/models/components/querywebhooksresponse.d.ts.map +1 -0
- package/models/components/querywebhooksresponse.js +52 -0
- package/models/components/querywebhooksresponse.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/components/webhook.d.ts +74 -0
- package/models/components/webhook.d.ts.map +1 -0
- package/models/components/webhook.js +81 -0
- package/models/components/webhook.js.map +1 -0
- package/models/operations/createagentrequest.d.ts +1 -1
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +1 -1
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.d.ts +121 -8
- package/models/operations/createdatasetitem.d.ts.map +1 -1
- package/models/operations/createdatasetitem.js +97 -12
- package/models/operations/createdatasetitem.js.map +1 -1
- package/models/operations/createdatasource.d.ts +42 -0
- package/models/operations/createdatasource.d.ts.map +1 -1
- package/models/operations/createdatasource.js +26 -2
- package/models/operations/createdatasource.js.map +1 -1
- package/models/operations/createrouterresponse.d.ts +34 -4
- package/models/operations/createrouterresponse.d.ts.map +1 -1
- package/models/operations/createrouterresponse.js +18 -3
- package/models/operations/createrouterresponse.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/index.d.ts +4 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +4 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listagents.d.ts +1 -1
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +1 -1
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listdatasetdatapoints.d.ts +149 -36
- package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
- package/models/operations/listdatasetdatapoints.js +119 -37
- package/models/operations/listdatasetdatapoints.js.map +1 -1
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.d.ts +48 -0
- package/models/operations/listdatasources.d.ts.map +1 -1
- package/models/operations/listdatasources.js +33 -2
- package/models/operations/listdatasources.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.d.ts +68 -6
- package/models/operations/postv2feedbackevaluation.d.ts.map +1 -1
- package/models/operations/postv2feedbackevaluation.js +46 -6
- package/models/operations/postv2feedbackevaluation.js.map +1 -1
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrieveagentrequest.d.ts +1 -1
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +1 -1
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievedatapoint.d.ts +117 -4
- package/models/operations/retrievedatapoint.d.ts.map +1 -1
- package/models/operations/retrievedatapoint.js +90 -8
- package/models/operations/retrievedatapoint.js.map +1 -1
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.d.ts +33 -0
- package/models/operations/retrievedatasource.d.ts.map +1 -1
- package/models/operations/retrievedatasource.js +25 -2
- package/models/operations/retrievedatasource.js.map +1 -1
- package/models/operations/retrieveresponse.d.ts +4 -4
- package/models/operations/retrieveresponse.d.ts.map +1 -1
- package/models/operations/retrieveresponse.js +4 -4
- package/models/operations/retrieveresponse.js.map +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/updateagent.d.ts +1 -1
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +1 -1
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatedatapoint.d.ts +117 -4
- package/models/operations/updatedatapoint.d.ts.map +1 -1
- package/models/operations/updatedatapoint.js +92 -8
- package/models/operations/updatedatapoint.js.map +1 -1
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.d.ts +33 -0
- package/models/operations/updatedatasource.d.ts.map +1 -1
- package/models/operations/updatedatasource.js +25 -2
- package/models/operations/updatedatasource.js.map +1 -1
- package/models/operations/updatetool.js +7 -7
- package/models/operations/webhookdelete.d.ts +12 -0
- package/models/operations/webhookdelete.d.ts.map +1 -0
- package/models/operations/webhookdelete.js +49 -0
- package/models/operations/webhookdelete.js.map +1 -0
- package/models/operations/webhookget.d.ts +12 -0
- package/models/operations/webhookget.d.ts.map +1 -0
- package/models/operations/webhookget.js +49 -0
- package/models/operations/webhookget.js.map +1 -0
- package/models/operations/webhooklist.d.ts +70 -0
- package/models/operations/webhooklist.d.ts.map +1 -0
- package/models/operations/webhooklist.js +61 -0
- package/models/operations/webhooklist.js.map +1 -0
- package/models/operations/webhookupdate.d.ts +29 -0
- package/models/operations/webhookupdate.d.ts.map +1 -0
- package/models/operations/webhookupdate.js +68 -0
- package/models/operations/webhookupdate.js.map +1 -0
- package/package.json +7 -7
- package/sdk/feedback.d.ts +4 -1
- package/sdk/feedback.d.ts.map +1 -1
- package/sdk/feedback.js +4 -1
- package/sdk/feedback.js.map +1 -1
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/webhooks.d.ts +64 -0
- package/sdk/webhooks.d.ts.map +1 -0
- package/sdk/webhooks.js +94 -0
- package/sdk/webhooks.js.map +1 -0
- package/src/funcs/knowledgeListDatasources.ts +1 -0
- package/src/funcs/webhooksCount.ts +144 -0
- package/src/funcs/webhooksCreate.ts +162 -0
- package/src/funcs/webhooksDelete.ts +168 -0
- package/src/funcs/webhooksGenerateSecret.ts +144 -0
- package/src/funcs/webhooksGet.ts +168 -0
- package/src/funcs/webhooksList.ts +175 -0
- package/src/funcs/webhooksQuery.ts +164 -0
- package/src/funcs/webhooksUpdate.ts +168 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/countwebhooksresponse.ts +37 -0
- package/src/models/components/createwebhookrequest.ts +100 -0
- package/src/models/components/deletewebhookresponse.ts +34 -0
- 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/generatewebhooksecretresponse.ts +37 -0
- package/src/models/components/index.ts +10 -0
- package/src/models/components/listwebhooksresponse.ts +53 -0
- package/src/models/components/queryparamspagination.ts +40 -0
- package/src/models/components/queryparamssort.ts +32 -0
- package/src/models/components/querywebhooksrequest.ts +85 -0
- package/src/models/components/querywebhooksresponse.ts +34 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/webhook.ts +116 -0
- package/src/models/operations/createagentrequest.ts +2 -2
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +237 -19
- package/src/models/operations/createdatasource.ts +78 -2
- package/src/models/operations/createrouterresponse.ts +41 -5
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/index.ts +4 -0
- package/src/models/operations/listagents.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +313 -84
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +99 -2
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +119 -11
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrieveagentrequest.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +234 -9
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +72 -2
- package/src/models/operations/retrieveresponse.ts +8 -8
- 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/updateagent.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +229 -9
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +72 -2
- package/src/models/operations/updatetool.ts +7 -7
- package/src/models/operations/webhookdelete.ts +31 -0
- package/src/models/operations/webhookget.ts +31 -0
- package/src/models/operations/webhooklist.ts +101 -0
- package/src/models/operations/webhookupdate.ts +84 -0
- package/src/sdk/feedback.ts +4 -1
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/webhooks.ts +152 -0
|
@@ -4,7 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
collectExtraKeys as collectExtraKeys$,
|
|
9
|
+
safeParse,
|
|
10
|
+
} from "../../lib/schemas.js";
|
|
8
11
|
import { ClosedEnum } from "../../types/enums.js";
|
|
9
12
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
13
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -105,6 +108,10 @@ export type CreateDatasourceRequestBody = {
|
|
|
105
108
|
* The description of the knowledge base
|
|
106
109
|
*/
|
|
107
110
|
description?: string | null | undefined;
|
|
111
|
+
/**
|
|
112
|
+
* Client-defined metadata associated with the datasource.
|
|
113
|
+
*/
|
|
114
|
+
metadata?: { [k: string]: any } | undefined;
|
|
108
115
|
/**
|
|
109
116
|
* The unique identifier of the file used for datasource creation. If provided, the file is immediately queued for chunking.
|
|
110
117
|
*/
|
|
@@ -132,6 +139,34 @@ export const CreateDatasourceStatus = {
|
|
|
132
139
|
} as const;
|
|
133
140
|
export type CreateDatasourceStatus = ClosedEnum<typeof CreateDatasourceStatus>;
|
|
134
141
|
|
|
142
|
+
export type CreateDatasourceMetadata = {
|
|
143
|
+
/**
|
|
144
|
+
* Number of words in the text
|
|
145
|
+
*/
|
|
146
|
+
wordsCount?: number | undefined;
|
|
147
|
+
/**
|
|
148
|
+
* Number of sentences in the text
|
|
149
|
+
*/
|
|
150
|
+
sentencesCount?: number | undefined;
|
|
151
|
+
/**
|
|
152
|
+
* Number of paragraphs in the text
|
|
153
|
+
*/
|
|
154
|
+
paragraphsCount?: number | undefined;
|
|
155
|
+
/**
|
|
156
|
+
* Number of tokens in the text
|
|
157
|
+
*/
|
|
158
|
+
tokensCount?: number | undefined;
|
|
159
|
+
/**
|
|
160
|
+
* Number of characters in the text
|
|
161
|
+
*/
|
|
162
|
+
charactersCount?: number | undefined;
|
|
163
|
+
/**
|
|
164
|
+
* Number of total chunks
|
|
165
|
+
*/
|
|
166
|
+
chunksCount?: number | undefined;
|
|
167
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
168
|
+
};
|
|
169
|
+
|
|
135
170
|
/**
|
|
136
171
|
* Datasource successfully created
|
|
137
172
|
*/
|
|
@@ -177,6 +212,7 @@ export type CreateDatasourceResponseBody = {
|
|
|
177
212
|
* The number of chunks in the datasource
|
|
178
213
|
*/
|
|
179
214
|
chunksCount: number;
|
|
215
|
+
metadata: CreateDatasourceMetadata;
|
|
180
216
|
};
|
|
181
217
|
|
|
182
218
|
/** @internal */
|
|
@@ -340,6 +376,7 @@ export function chunkingOptionsToJSON(
|
|
|
340
376
|
export type CreateDatasourceRequestBody$Outbound = {
|
|
341
377
|
display_name?: string | undefined;
|
|
342
378
|
description?: string | null | undefined;
|
|
379
|
+
metadata?: { [k: string]: any } | undefined;
|
|
343
380
|
file_id?: string | undefined;
|
|
344
381
|
chunking_options?: ChunkingOptions$Outbound | undefined;
|
|
345
382
|
};
|
|
@@ -352,6 +389,7 @@ export const CreateDatasourceRequestBody$outboundSchema: z.ZodType<
|
|
|
352
389
|
> = z.object({
|
|
353
390
|
displayName: z.string().optional(),
|
|
354
391
|
description: z.nullable(z.string()).optional(),
|
|
392
|
+
metadata: z.record(z.any()).optional(),
|
|
355
393
|
fileId: z.string().optional(),
|
|
356
394
|
chunkingOptions: z.lazy(() => ChunkingOptions$outboundSchema).optional(),
|
|
357
395
|
}).transform((v) => {
|
|
@@ -406,13 +444,50 @@ export const CreateDatasourceStatus$inboundSchema: z.ZodNativeEnum<
|
|
|
406
444
|
typeof CreateDatasourceStatus
|
|
407
445
|
> = z.nativeEnum(CreateDatasourceStatus);
|
|
408
446
|
|
|
447
|
+
/** @internal */
|
|
448
|
+
export const CreateDatasourceMetadata$inboundSchema: z.ZodType<
|
|
449
|
+
CreateDatasourceMetadata,
|
|
450
|
+
z.ZodTypeDef,
|
|
451
|
+
unknown
|
|
452
|
+
> = collectExtraKeys$(
|
|
453
|
+
z.object({
|
|
454
|
+
words_count: z.number().optional(),
|
|
455
|
+
sentences_count: z.number().optional(),
|
|
456
|
+
paragraphs_count: z.number().optional(),
|
|
457
|
+
tokens_count: z.number().optional(),
|
|
458
|
+
characters_count: z.number().optional(),
|
|
459
|
+
chunks_count: z.number().optional(),
|
|
460
|
+
}).catchall(z.any()),
|
|
461
|
+
"additionalProperties",
|
|
462
|
+
true,
|
|
463
|
+
).transform((v) => {
|
|
464
|
+
return remap$(v, {
|
|
465
|
+
"words_count": "wordsCount",
|
|
466
|
+
"sentences_count": "sentencesCount",
|
|
467
|
+
"paragraphs_count": "paragraphsCount",
|
|
468
|
+
"tokens_count": "tokensCount",
|
|
469
|
+
"characters_count": "charactersCount",
|
|
470
|
+
"chunks_count": "chunksCount",
|
|
471
|
+
});
|
|
472
|
+
});
|
|
473
|
+
|
|
474
|
+
export function createDatasourceMetadataFromJSON(
|
|
475
|
+
jsonString: string,
|
|
476
|
+
): SafeParseResult<CreateDatasourceMetadata, SDKValidationError> {
|
|
477
|
+
return safeParse(
|
|
478
|
+
jsonString,
|
|
479
|
+
(x) => CreateDatasourceMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
480
|
+
`Failed to parse 'CreateDatasourceMetadata' from JSON`,
|
|
481
|
+
);
|
|
482
|
+
}
|
|
483
|
+
|
|
409
484
|
/** @internal */
|
|
410
485
|
export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
411
486
|
CreateDatasourceResponseBody,
|
|
412
487
|
z.ZodTypeDef,
|
|
413
488
|
unknown
|
|
414
489
|
> = z.object({
|
|
415
|
-
_id: z.string().default("
|
|
490
|
+
_id: z.string().default("01KXPYT88RN6X70GR4ZXBJV7SY"),
|
|
416
491
|
display_name: z.string(),
|
|
417
492
|
description: z.nullable(z.string()).optional(),
|
|
418
493
|
status: CreateDatasourceStatus$inboundSchema,
|
|
@@ -423,6 +498,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
423
498
|
update_by_id: z.nullable(z.string()).optional(),
|
|
424
499
|
knowledge_id: z.string(),
|
|
425
500
|
chunks_count: z.number(),
|
|
501
|
+
metadata: z.lazy(() => CreateDatasourceMetadata$inboundSchema),
|
|
426
502
|
}).transform((v) => {
|
|
427
503
|
return remap$(v, {
|
|
428
504
|
"_id": "id",
|
|
@@ -346,11 +346,25 @@ export const InputRole = {
|
|
|
346
346
|
*/
|
|
347
347
|
export type InputRole = ClosedEnum<typeof InputRole>;
|
|
348
348
|
|
|
349
|
+
/**
|
|
350
|
+
* The status of a model-generated input item.
|
|
351
|
+
*/
|
|
352
|
+
export const InputStatus = {
|
|
353
|
+
InProgress: "in_progress",
|
|
354
|
+
Completed: "completed",
|
|
355
|
+
Incomplete: "incomplete",
|
|
356
|
+
} as const;
|
|
357
|
+
/**
|
|
358
|
+
* The status of a model-generated input item.
|
|
359
|
+
*/
|
|
360
|
+
export type InputStatus = ClosedEnum<typeof InputStatus>;
|
|
361
|
+
|
|
349
362
|
/**
|
|
350
363
|
* The type of item.
|
|
351
364
|
*/
|
|
352
365
|
export const InputType = {
|
|
353
366
|
Message: "message",
|
|
367
|
+
FunctionCall: "function_call",
|
|
354
368
|
FunctionCallOutput: "function_call_output",
|
|
355
369
|
ItemReference: "item_reference",
|
|
356
370
|
} as const;
|
|
@@ -360,11 +374,15 @@ export const InputType = {
|
|
|
360
374
|
export type InputType = ClosedEnum<typeof InputType>;
|
|
361
375
|
|
|
362
376
|
/**
|
|
363
|
-
* An input item. The "type" field determines the item kind: "message", "function_call_output", "item_reference", etc.
|
|
377
|
+
* An input item. The "type" field determines the item kind: "message", "function_call", "function_call_output", "item_reference", etc.
|
|
364
378
|
*/
|
|
365
379
|
export type CreateRouterResponseInput2 = {
|
|
366
380
|
/**
|
|
367
|
-
* The
|
|
381
|
+
* The function arguments as a JSON string (for function_call items).
|
|
382
|
+
*/
|
|
383
|
+
arguments?: string | undefined;
|
|
384
|
+
/**
|
|
385
|
+
* The function call identifier (for function_call and function_call_output items).
|
|
368
386
|
*/
|
|
369
387
|
callId?: string | undefined;
|
|
370
388
|
/**
|
|
@@ -372,9 +390,13 @@ export type CreateRouterResponseInput2 = {
|
|
|
372
390
|
*/
|
|
373
391
|
content?: string | Array<TwoText | Image | TwoFile> | undefined;
|
|
374
392
|
/**
|
|
375
|
-
* The ID of the item
|
|
393
|
+
* The ID of the item. For item_reference items, this identifies the referenced item.
|
|
376
394
|
*/
|
|
377
395
|
id?: string | undefined;
|
|
396
|
+
/**
|
|
397
|
+
* The name of the function that was called (for function_call items).
|
|
398
|
+
*/
|
|
399
|
+
name?: string | undefined;
|
|
378
400
|
/**
|
|
379
401
|
* The output of the function call (for function_call_output type).
|
|
380
402
|
*/
|
|
@@ -383,6 +405,10 @@ export type CreateRouterResponseInput2 = {
|
|
|
383
405
|
* The role of the message sender (for message items).
|
|
384
406
|
*/
|
|
385
407
|
role?: InputRole | undefined;
|
|
408
|
+
/**
|
|
409
|
+
* The status of a model-generated input item.
|
|
410
|
+
*/
|
|
411
|
+
status?: InputStatus | undefined;
|
|
386
412
|
/**
|
|
387
413
|
* The type of item.
|
|
388
414
|
*/
|
|
@@ -938,7 +964,7 @@ export type CreateRouterResponseResponseBody = {
|
|
|
938
964
|
topLogprobs: number;
|
|
939
965
|
topP: number;
|
|
940
966
|
truncation: Truncation;
|
|
941
|
-
usage: components.PublicUsage;
|
|
967
|
+
usage: components.PublicUsage | null;
|
|
942
968
|
user: string | null;
|
|
943
969
|
variables?: { [k: string]: any } | undefined;
|
|
944
970
|
};
|
|
@@ -1260,20 +1286,27 @@ export function inputContentToJSON(inputContent: InputContent): string {
|
|
|
1260
1286
|
export const InputRole$outboundSchema: z.ZodNativeEnum<typeof InputRole> = z
|
|
1261
1287
|
.nativeEnum(InputRole);
|
|
1262
1288
|
|
|
1289
|
+
/** @internal */
|
|
1290
|
+
export const InputStatus$outboundSchema: z.ZodNativeEnum<typeof InputStatus> = z
|
|
1291
|
+
.nativeEnum(InputStatus);
|
|
1292
|
+
|
|
1263
1293
|
/** @internal */
|
|
1264
1294
|
export const InputType$outboundSchema: z.ZodNativeEnum<typeof InputType> = z
|
|
1265
1295
|
.nativeEnum(InputType);
|
|
1266
1296
|
|
|
1267
1297
|
/** @internal */
|
|
1268
1298
|
export type CreateRouterResponseInput2$Outbound = {
|
|
1299
|
+
arguments?: string | undefined;
|
|
1269
1300
|
call_id?: string | undefined;
|
|
1270
1301
|
content?:
|
|
1271
1302
|
| string
|
|
1272
1303
|
| Array<TwoText$Outbound | Image$Outbound | TwoFile$Outbound>
|
|
1273
1304
|
| undefined;
|
|
1274
1305
|
id?: string | undefined;
|
|
1306
|
+
name?: string | undefined;
|
|
1275
1307
|
output?: string | undefined;
|
|
1276
1308
|
role?: string | undefined;
|
|
1309
|
+
status?: string | undefined;
|
|
1277
1310
|
type?: string | undefined;
|
|
1278
1311
|
};
|
|
1279
1312
|
|
|
@@ -1283,6 +1316,7 @@ export const CreateRouterResponseInput2$outboundSchema: z.ZodType<
|
|
|
1283
1316
|
z.ZodTypeDef,
|
|
1284
1317
|
CreateRouterResponseInput2
|
|
1285
1318
|
> = z.object({
|
|
1319
|
+
arguments: z.string().optional(),
|
|
1286
1320
|
callId: z.string().optional(),
|
|
1287
1321
|
content: z.union([
|
|
1288
1322
|
z.string(),
|
|
@@ -1293,8 +1327,10 @@ export const CreateRouterResponseInput2$outboundSchema: z.ZodType<
|
|
|
1293
1327
|
])),
|
|
1294
1328
|
]).optional(),
|
|
1295
1329
|
id: z.string().optional(),
|
|
1330
|
+
name: z.string().optional(),
|
|
1296
1331
|
output: z.string().optional(),
|
|
1297
1332
|
role: InputRole$outboundSchema.optional(),
|
|
1333
|
+
status: InputStatus$outboundSchema.optional(),
|
|
1298
1334
|
type: InputType$outboundSchema.optional(),
|
|
1299
1335
|
}).transform((v) => {
|
|
1300
1336
|
return remap$(v, {
|
|
@@ -1999,7 +2035,7 @@ export const CreateRouterResponseResponseBody$inboundSchema: z.ZodType<
|
|
|
1999
2035
|
top_logprobs: z.number().int(),
|
|
2000
2036
|
top_p: z.number(),
|
|
2001
2037
|
truncation: Truncation$inboundSchema,
|
|
2002
|
-
usage: components.PublicUsage$inboundSchema,
|
|
2038
|
+
usage: z.nullable(components.PublicUsage$inboundSchema),
|
|
2003
2039
|
user: z.nullable(z.string()),
|
|
2004
2040
|
variables: z.record(z.any()).optional(),
|
|
2005
2041
|
}).transform((v) => {
|
|
@@ -1896,7 +1896,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1896
1896
|
z.ZodTypeDef,
|
|
1897
1897
|
unknown
|
|
1898
1898
|
> = z.object({
|
|
1899
|
-
_id: z.string().default("
|
|
1899
|
+
_id: z.string().default("tool_01KXPYT8485RCSVCQQ0CP2VTD9"),
|
|
1900
1900
|
path: z.string(),
|
|
1901
1901
|
key: z.string(),
|
|
1902
1902
|
display_name: z.string().optional(),
|
|
@@ -1993,7 +1993,7 @@ export const ResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
1993
1993
|
z.ZodTypeDef,
|
|
1994
1994
|
unknown
|
|
1995
1995
|
> = z.object({
|
|
1996
|
-
id: z.string().default("
|
|
1996
|
+
id: z.string().default("01KXPYT8466D6PXMTASYJ166EN"),
|
|
1997
1997
|
name: z.string(),
|
|
1998
1998
|
description: z.string().optional(),
|
|
1999
1999
|
schema: z.lazy(() => CreateToolResponseBodySchema$inboundSchema),
|
|
@@ -2049,7 +2049,7 @@ export const ResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
2049
2049
|
z.ZodTypeDef,
|
|
2050
2050
|
unknown
|
|
2051
2051
|
> = z.object({
|
|
2052
|
-
_id: z.string().default("
|
|
2052
|
+
_id: z.string().default("tool_01KXPYT8450M8SJ1HZBE7MX7MK"),
|
|
2053
2053
|
path: z.string(),
|
|
2054
2054
|
key: z.string(),
|
|
2055
2055
|
display_name: z.string().optional(),
|
|
@@ -2235,7 +2235,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
2235
2235
|
z.ZodTypeDef,
|
|
2236
2236
|
unknown
|
|
2237
2237
|
> = z.object({
|
|
2238
|
-
_id: z.string().default("
|
|
2238
|
+
_id: z.string().default("tool_01KXPYT8436SDDM0Y80JXRG4BY"),
|
|
2239
2239
|
path: z.string(),
|
|
2240
2240
|
key: z.string(),
|
|
2241
2241
|
display_name: z.string().optional(),
|
|
@@ -2328,7 +2328,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2328
2328
|
z.ZodTypeDef,
|
|
2329
2329
|
unknown
|
|
2330
2330
|
> = z.object({
|
|
2331
|
-
_id: z.string().default("
|
|
2331
|
+
_id: z.string().default("tool_01KXPYT8411WW6PCX9TADQ77TQ"),
|
|
2332
2332
|
path: z.string(),
|
|
2333
2333
|
key: z.string(),
|
|
2334
2334
|
display_name: z.string().optional(),
|
|
@@ -2429,7 +2429,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2429
2429
|
z.ZodTypeDef,
|
|
2430
2430
|
unknown
|
|
2431
2431
|
> = z.object({
|
|
2432
|
-
_id: z.string().default("
|
|
2432
|
+
_id: z.string().default("tool_01KXPYT83Y4W5Z1Z63GZ13B76P"),
|
|
2433
2433
|
path: z.string(),
|
|
2434
2434
|
key: z.string(),
|
|
2435
2435
|
display_name: z.string().optional(),
|
|
@@ -766,7 +766,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
766
766
|
z.ZodTypeDef,
|
|
767
767
|
unknown
|
|
768
768
|
> = z.object({
|
|
769
|
-
_id: z.string().default("
|
|
769
|
+
_id: z.string().default("tool_01KXPYT83E50Z54Z8C5H7MSX4C"),
|
|
770
770
|
path: z.string(),
|
|
771
771
|
key: z.string(),
|
|
772
772
|
display_name: z.string().optional(),
|
|
@@ -863,7 +863,7 @@ export const DataTools$inboundSchema: z.ZodType<
|
|
|
863
863
|
z.ZodTypeDef,
|
|
864
864
|
unknown
|
|
865
865
|
> = z.object({
|
|
866
|
-
id: z.string().default("
|
|
866
|
+
id: z.string().default("01KXPYT83DA6NTMJVPG86H767P"),
|
|
867
867
|
name: z.string(),
|
|
868
868
|
description: z.string().optional(),
|
|
869
869
|
schema: z.lazy(() => GetAllToolsDataSchema$inboundSchema),
|
|
@@ -916,7 +916,7 @@ export const DataMCPTool$inboundSchema: z.ZodType<
|
|
|
916
916
|
z.ZodTypeDef,
|
|
917
917
|
unknown
|
|
918
918
|
> = z.object({
|
|
919
|
-
_id: z.string().default("
|
|
919
|
+
_id: z.string().default("tool_01KXPYT83BY5VS0AHWTB612WZD"),
|
|
920
920
|
path: z.string(),
|
|
921
921
|
key: z.string(),
|
|
922
922
|
display_name: z.string().optional(),
|
|
@@ -1100,7 +1100,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
|
|
|
1100
1100
|
z.ZodTypeDef,
|
|
1101
1101
|
unknown
|
|
1102
1102
|
> = z.object({
|
|
1103
|
-
_id: z.string().default("
|
|
1103
|
+
_id: z.string().default("tool_01KXPYT837F5434BKMX7G9WDTX"),
|
|
1104
1104
|
path: z.string(),
|
|
1105
1105
|
key: z.string(),
|
|
1106
1106
|
display_name: z.string().optional(),
|
|
@@ -1193,7 +1193,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1193
1193
|
z.ZodTypeDef,
|
|
1194
1194
|
unknown
|
|
1195
1195
|
> = z.object({
|
|
1196
|
-
_id: z.string().default("
|
|
1196
|
+
_id: z.string().default("tool_01KXPYT8357FR02FB8CA1740M7"),
|
|
1197
1197
|
path: z.string(),
|
|
1198
1198
|
key: z.string(),
|
|
1199
1199
|
display_name: z.string().optional(),
|
|
@@ -1291,7 +1291,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
|
|
|
1291
1291
|
z.ZodTypeDef,
|
|
1292
1292
|
unknown
|
|
1293
1293
|
> = z.object({
|
|
1294
|
-
_id: z.string().default("
|
|
1294
|
+
_id: z.string().default("tool_01KXPYT832ZHS7EQHGM9NG68KB"),
|
|
1295
1295
|
path: z.string(),
|
|
1296
1296
|
key: z.string(),
|
|
1297
1297
|
display_name: z.string().optional(),
|
|
@@ -140,7 +140,7 @@ export const GetV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
140
140
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
141
141
|
.optional(),
|
|
142
142
|
updated: z.string().datetime({ offset: true }).default(
|
|
143
|
-
"2026-07-
|
|
143
|
+
"2026-07-17T02:34:22.765Z",
|
|
144
144
|
).transform(v => new Date(v)),
|
|
145
145
|
filter_type: z.literal("name"),
|
|
146
146
|
filter_value: z.string(),
|
|
@@ -185,7 +185,7 @@ export const GetV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
185
185
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
186
186
|
.optional(),
|
|
187
187
|
updated: z.string().datetime({ offset: true }).default(
|
|
188
|
-
"2026-07-
|
|
188
|
+
"2026-07-17T02:34:22.765Z",
|
|
189
189
|
).transform(v => new Date(v)),
|
|
190
190
|
filter_type: z.literal("span_type"),
|
|
191
191
|
filter_values: z.array(z.string()),
|
|
@@ -141,7 +141,7 @@ export const GetV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
141
141
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
142
142
|
.optional(),
|
|
143
143
|
updated: z.string().datetime({ offset: true }).default(
|
|
144
|
-
"2026-07-
|
|
144
|
+
"2026-07-17T02:34:22.765Z",
|
|
145
145
|
).transform(v => new Date(v)),
|
|
146
146
|
filter_type: z.literal("name"),
|
|
147
147
|
filter_value: z.string(),
|
|
@@ -186,7 +186,7 @@ export const GetV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
186
186
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
187
187
|
.optional(),
|
|
188
188
|
updated: z.string().datetime({ offset: true }).default(
|
|
189
|
-
"2026-07-
|
|
189
|
+
"2026-07-17T02:34:22.765Z",
|
|
190
190
|
).transform(v => new Date(v)),
|
|
191
191
|
filter_type: z.literal("span_type"),
|
|
192
192
|
filter_values: z.array(z.string()),
|
|
@@ -187,3 +187,7 @@ export * from "./updatememorydocument.js";
|
|
|
187
187
|
export * from "./updatememorystore.js";
|
|
188
188
|
export * from "./updateprompt.js";
|
|
189
189
|
export * from "./updatetool.js";
|
|
190
|
+
export * from "./webhookdelete.js";
|
|
191
|
+
export * from "./webhookget.js";
|
|
192
|
+
export * from "./webhooklist.js";
|
|
193
|
+
export * from "./webhookupdate.js";
|
|
@@ -1282,7 +1282,7 @@ export type ListAgentsData = {
|
|
|
1282
1282
|
/**
|
|
1283
1283
|
* List of skills that the agent can utilize. This field allows you to specify which skills the agent has access to, enabling more complex and dynamic behavior.
|
|
1284
1284
|
*/
|
|
1285
|
-
skills
|
|
1285
|
+
skills?: Array<string> | undefined;
|
|
1286
1286
|
metrics?: ListAgentsMetrics | undefined;
|
|
1287
1287
|
/**
|
|
1288
1288
|
* Extracted variables from agent instructions
|
|
@@ -2957,7 +2957,7 @@ export const ListAgentsData$inboundSchema: z.ZodType<
|
|
|
2957
2957
|
memory_stores: z.array(z.string()).optional(),
|
|
2958
2958
|
team_of_agents: z.array(z.lazy(() => ListAgentsTeamOfAgents$inboundSchema))
|
|
2959
2959
|
.optional(),
|
|
2960
|
-
skills: z.array(z.string()),
|
|
2960
|
+
skills: z.array(z.string()).optional(),
|
|
2961
2961
|
metrics: z.lazy(() => ListAgentsMetrics$inboundSchema).optional(),
|
|
2962
2962
|
variables: z.record(z.any()).optional(),
|
|
2963
2963
|
knowledge_bases: z.array(z.lazy(() => ListAgentsKnowledgeBases$inboundSchema))
|