@orq-ai/node 4.11.0-rc.53 → 4.11.0-rc.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/createskillrequest.d.ts +6 -6
- package/models/components/createskillrequest.d.ts.map +1 -1
- package/models/components/createskillrequest.js +6 -7
- package/models/components/createskillrequest.js.map +1 -1
- package/models/components/evaluatorresponsefunction.d.ts +270 -0
- package/models/components/evaluatorresponsefunction.d.ts.map +1 -0
- package/models/components/evaluatorresponsefunction.js +491 -0
- package/models/components/evaluatorresponsefunction.js.map +1 -0
- package/models/components/evaluatorresponsehttp.d.ts +76 -0
- package/models/components/evaluatorresponsehttp.d.ts.map +1 -0
- package/models/components/evaluatorresponsehttp.js +146 -0
- package/models/components/evaluatorresponsehttp.js.map +1 -0
- package/models/components/evaluatorresponsejsonschema.d.ts +62 -0
- package/models/components/evaluatorresponsejsonschema.d.ts.map +1 -0
- package/models/components/evaluatorresponsejsonschema.js +135 -0
- package/models/components/evaluatorresponsejsonschema.js.map +1 -0
- package/models/components/evaluatorresponsellm.d.ts +140 -0
- package/models/components/evaluatorresponsellm.d.ts.map +1 -0
- package/models/components/evaluatorresponsellm.js +250 -0
- package/models/components/evaluatorresponsellm.js.map +1 -0
- package/models/components/evaluatorresponsepython.d.ts +62 -0
- package/models/components/evaluatorresponsepython.d.ts.map +1 -0
- package/models/components/evaluatorresponsepython.js +136 -0
- package/models/components/evaluatorresponsepython.js.map +1 -0
- package/models/components/evaluatorresponseragas.d.ts +80 -0
- package/models/components/evaluatorresponseragas.d.ts.map +1 -0
- package/models/components/evaluatorresponseragas.js +155 -0
- package/models/components/evaluatorresponseragas.js.map +1 -0
- package/models/components/evaluatorresponsetypescript.d.ts +62 -0
- package/models/components/evaluatorresponsetypescript.d.ts.map +1 -0
- package/models/components/evaluatorresponsetypescript.js +136 -0
- package/models/components/evaluatorresponsetypescript.js.map +1 -0
- package/models/components/index.d.ts +8 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +8 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invokedeploymentrequest.d.ts +36 -36
- package/models/components/invokedeploymentrequest.d.ts.map +1 -1
- package/models/components/invokedeploymentrequest.js +33 -34
- package/models/components/invokedeploymentrequest.js.map +1 -1
- package/models/components/modelsconfig.d.ts +5 -5
- package/models/components/modelsconfig.d.ts.map +1 -1
- package/models/components/modelsconfig.js +6 -6
- package/models/components/modelsconfig.js.map +1 -1
- package/models/components/piiredactionpluginauto.d.ts +127 -0
- package/models/components/piiredactionpluginauto.d.ts.map +1 -0
- package/models/components/piiredactionpluginauto.js +157 -0
- package/models/components/piiredactionpluginauto.js.map +1 -0
- package/models/components/piiredactionpluginen.d.ts +31 -17
- package/models/components/piiredactionpluginen.d.ts.map +1 -1
- package/models/components/piiredactionpluginen.js +29 -20
- package/models/components/piiredactionpluginen.js.map +1 -1
- package/models/components/piiredactionpluginnl.d.ts +16 -2
- package/models/components/piiredactionpluginnl.d.ts.map +1 -1
- package/models/components/piiredactionpluginnl.js +13 -3
- package/models/components/piiredactionpluginnl.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/textcontentpartschema.d.ts +10 -10
- package/models/components/textcontentpartschema.d.ts.map +1 -1
- package/models/components/textcontentpartschema.js +11 -11
- package/models/components/textcontentpartschema.js.map +1 -1
- package/models/operations/createagentrequest.d.ts +12 -12
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +8 -0
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts +4 -4
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +2 -0
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createcompletion.d.ts +4 -4
- package/models/operations/createcompletion.d.ts.map +1 -1
- package/models/operations/createcompletion.js +2 -0
- package/models/operations/createcompletion.js.map +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.d.ts +22 -852
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +30 -1341
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/createimage.d.ts +4 -4
- package/models/operations/createimage.d.ts.map +1 -1
- package/models/operations/createimage.js +2 -0
- package/models/operations/createimage.js.map +1 -1
- package/models/operations/createprompt.d.ts +14 -14
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +14 -10
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/creatererank.d.ts +4 -4
- package/models/operations/creatererank.d.ts.map +1 -1
- package/models/operations/creatererank.js +2 -0
- package/models/operations/creatererank.js.map +1 -1
- package/models/operations/createtool.d.ts +8 -8
- package/models/operations/createtool.d.ts.map +1 -1
- package/models/operations/createtool.js +16 -16
- package/models/operations/createtool.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +8 -8
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +10 -10
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/getallprompts.d.ts +2 -2
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +2 -0
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.d.ts +20 -20
- package/models/operations/getalltools.d.ts.map +1 -1
- package/models/operations/getalltools.js +28 -26
- package/models/operations/getalltools.js.map +1 -1
- package/models/operations/getevals.d.ts +3 -833
- package/models/operations/getevals.d.ts.map +1 -1
- package/models/operations/getevals.js +16 -1314
- package/models/operations/getevals.js.map +1 -1
- package/models/operations/getoneprompt.d.ts +2 -2
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +2 -0
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +2 -2
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +2 -0
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/invokeeval.d.ts +7 -7
- package/models/operations/invokeeval.d.ts.map +1 -1
- package/models/operations/invokeeval.js +11 -11
- package/models/operations/invokeeval.js.map +1 -1
- package/models/operations/listagents.d.ts +4 -4
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +4 -0
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listpromptversions.d.ts +2 -2
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +2 -0
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrieveagentrequest.d.ts +4 -4
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +4 -0
- package/models/operations/retrieveagentrequest.js.map +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/retrievetool.js +6 -6
- package/models/operations/runagent.d.ts +8 -8
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +5 -1
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +8 -8
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +5 -1
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +12 -12
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +8 -0
- package/models/operations/updateagent.js.map +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.d.ts +2 -832
- package/models/operations/updateeval.d.ts.map +1 -1
- package/models/operations/updateeval.js +9 -1304
- package/models/operations/updateeval.js.map +1 -1
- package/models/operations/updateprompt.d.ts +6 -6
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +4 -0
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +3 -3
- package/sdk/feedback.d.ts +2 -2
- package/sdk/feedback.js +2 -2
- package/src/lib/config.ts +2 -2
- package/src/models/components/createskillrequest.ts +27 -20
- package/src/models/components/evaluatorresponsefunction.ts +1107 -0
- package/src/models/components/evaluatorresponsehttp.ts +247 -0
- package/src/models/components/evaluatorresponsejsonschema.ts +214 -0
- package/src/models/components/evaluatorresponsellm.ts +442 -0
- package/src/models/components/evaluatorresponsepython.ts +234 -0
- package/src/models/components/evaluatorresponseragas.ts +257 -0
- package/src/models/components/evaluatorresponsetypescript.ts +247 -0
- package/src/models/components/index.ts +8 -0
- package/src/models/components/invokedeploymentrequest.ts +119 -95
- package/src/models/components/modelsconfig.ts +11 -10
- package/src/models/components/piiredactionpluginauto.ts +186 -0
- package/src/models/components/piiredactionpluginen.ts +59 -29
- package/src/models/components/piiredactionpluginnl.ts +26 -4
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/textcontentpartschema.ts +23 -19
- package/src/models/operations/createagentrequest.ts +42 -10
- package/src/models/operations/createchatcompletion.ts +12 -3
- package/src/models/operations/createcompletion.ts +12 -3
- 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 +673 -3909
- package/src/models/operations/createimage.ts +12 -3
- package/src/models/operations/createprompt.ts +39 -27
- package/src/models/operations/creatererank.ts +12 -3
- package/src/models/operations/createtool.ts +22 -24
- package/src/models/operations/deploymentgetconfig.ts +16 -18
- package/src/models/operations/getallprompts.ts +9 -2
- package/src/models/operations/getalltools.ts +47 -53
- package/src/models/operations/getevals.ts +29 -3214
- package/src/models/operations/getoneprompt.ts +9 -2
- package/src/models/operations/getpromptversion.ts +9 -2
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/invokeeval.ts +18 -18
- package/src/models/operations/listagents.ts +18 -4
- 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/listpromptversions.ts +9 -2
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrieveagentrequest.ts +18 -4
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +25 -7
- package/src/models/operations/streamrunagent.ts +25 -7
- package/src/models/operations/updateagent.ts +42 -10
- 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 +306 -3524
- package/src/models/operations/updateprompt.ts +21 -5
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/feedback.ts +2 -2
|
@@ -288,7 +288,7 @@ export type GetAllToolsDataToolsStatus = ClosedEnum<
|
|
|
288
288
|
/**
|
|
289
289
|
* The HTTP method to use.
|
|
290
290
|
*/
|
|
291
|
-
export const
|
|
291
|
+
export const DataMethod = {
|
|
292
292
|
Get: "GET",
|
|
293
293
|
Post: "POST",
|
|
294
294
|
Put: "PUT",
|
|
@@ -297,7 +297,7 @@ export const GetAllToolsDataMethod = {
|
|
|
297
297
|
/**
|
|
298
298
|
* The HTTP method to use.
|
|
299
299
|
*/
|
|
300
|
-
export type
|
|
300
|
+
export type DataMethod = ClosedEnum<typeof DataMethod>;
|
|
301
301
|
|
|
302
302
|
export type GetAllToolsHeaders2 = {
|
|
303
303
|
value: string;
|
|
@@ -317,7 +317,7 @@ export type DataBlueprint = {
|
|
|
317
317
|
/**
|
|
318
318
|
* The HTTP method to use.
|
|
319
319
|
*/
|
|
320
|
-
method:
|
|
320
|
+
method: DataMethod;
|
|
321
321
|
/**
|
|
322
322
|
* The headers to send with the request. Can be a string value or an object with value and encrypted properties.
|
|
323
323
|
*/
|
|
@@ -331,7 +331,7 @@ export type DataBlueprint = {
|
|
|
331
331
|
/**
|
|
332
332
|
* The type of the argument.
|
|
333
333
|
*/
|
|
334
|
-
export const
|
|
334
|
+
export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType = {
|
|
335
335
|
String: "string",
|
|
336
336
|
Number: "number",
|
|
337
337
|
Boolean: "boolean",
|
|
@@ -339,9 +339,9 @@ export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type = {
|
|
|
339
339
|
/**
|
|
340
340
|
* The type of the argument.
|
|
341
341
|
*/
|
|
342
|
-
export type
|
|
342
|
+
export type GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType =
|
|
343
343
|
ClosedEnum<
|
|
344
|
-
typeof
|
|
344
|
+
typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType
|
|
345
345
|
>;
|
|
346
346
|
|
|
347
347
|
/**
|
|
@@ -353,7 +353,7 @@ export type DataArguments = {
|
|
|
353
353
|
/**
|
|
354
354
|
* The type of the argument.
|
|
355
355
|
*/
|
|
356
|
-
type:
|
|
356
|
+
type: GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType;
|
|
357
357
|
/**
|
|
358
358
|
* A description of the argument.
|
|
359
359
|
*/
|
|
@@ -368,7 +368,7 @@ export type DataArguments = {
|
|
|
368
368
|
defaultValue?: string | number | boolean | undefined;
|
|
369
369
|
};
|
|
370
370
|
|
|
371
|
-
export type
|
|
371
|
+
export type DataHttp = {
|
|
372
372
|
/**
|
|
373
373
|
* The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
|
|
374
374
|
*/
|
|
@@ -423,7 +423,7 @@ export type DataHTTPTool = {
|
|
|
423
423
|
*/
|
|
424
424
|
status: GetAllToolsDataToolsStatus;
|
|
425
425
|
type: "http";
|
|
426
|
-
http:
|
|
426
|
+
http: DataHttp;
|
|
427
427
|
};
|
|
428
428
|
|
|
429
429
|
/**
|
|
@@ -542,16 +542,15 @@ export type DataStatus = ClosedEnum<typeof DataStatus>;
|
|
|
542
542
|
/**
|
|
543
543
|
* The type must be "object"
|
|
544
544
|
*/
|
|
545
|
-
export const
|
|
545
|
+
export const GetAllToolsDataToolsResponse200ApplicationJSONType = {
|
|
546
546
|
Object: "object",
|
|
547
547
|
} as const;
|
|
548
548
|
/**
|
|
549
549
|
* The type must be "object"
|
|
550
550
|
*/
|
|
551
|
-
export type
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
>;
|
|
551
|
+
export type GetAllToolsDataToolsResponse200ApplicationJSONType = ClosedEnum<
|
|
552
|
+
typeof GetAllToolsDataToolsResponse200ApplicationJSONType
|
|
553
|
+
>;
|
|
555
554
|
|
|
556
555
|
/**
|
|
557
556
|
* 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.
|
|
@@ -560,7 +559,7 @@ export type DataParameters = {
|
|
|
560
559
|
/**
|
|
561
560
|
* The type must be "object"
|
|
562
561
|
*/
|
|
563
|
-
type:
|
|
562
|
+
type: GetAllToolsDataToolsResponse200ApplicationJSONType;
|
|
564
563
|
/**
|
|
565
564
|
* The properties of the function parameters
|
|
566
565
|
*/
|
|
@@ -572,7 +571,7 @@ export type DataParameters = {
|
|
|
572
571
|
additionalProperties?: { [k: string]: any } | undefined;
|
|
573
572
|
};
|
|
574
573
|
|
|
575
|
-
export type
|
|
574
|
+
export type DataFunction = {
|
|
576
575
|
/**
|
|
577
576
|
* The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
578
577
|
*/
|
|
@@ -635,7 +634,7 @@ export type DataFunctionTool = {
|
|
|
635
634
|
*/
|
|
636
635
|
status: DataStatus;
|
|
637
636
|
type: "function";
|
|
638
|
-
function:
|
|
637
|
+
function: DataFunction;
|
|
639
638
|
};
|
|
640
639
|
|
|
641
640
|
export type GetAllToolsData =
|
|
@@ -767,7 +766,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
767
766
|
z.ZodTypeDef,
|
|
768
767
|
unknown
|
|
769
768
|
> = z.object({
|
|
770
|
-
_id: z.string().default("
|
|
769
|
+
_id: z.string().default("tool_01KW9AEEFC5X438E45ZDJ6JH2H"),
|
|
771
770
|
path: z.string(),
|
|
772
771
|
key: z.string(),
|
|
773
772
|
display_name: z.string().optional(),
|
|
@@ -864,7 +863,7 @@ export const DataTools$inboundSchema: z.ZodType<
|
|
|
864
863
|
z.ZodTypeDef,
|
|
865
864
|
unknown
|
|
866
865
|
> = z.object({
|
|
867
|
-
id: z.string().default("
|
|
866
|
+
id: z.string().default("01KW9AEEFBB1RM3ATHHGEK7HSK"),
|
|
868
867
|
name: z.string(),
|
|
869
868
|
description: z.string().optional(),
|
|
870
869
|
schema: z.lazy(() => GetAllToolsDataSchema$inboundSchema),
|
|
@@ -917,7 +916,7 @@ export const DataMCPTool$inboundSchema: z.ZodType<
|
|
|
917
916
|
z.ZodTypeDef,
|
|
918
917
|
unknown
|
|
919
918
|
> = z.object({
|
|
920
|
-
_id: z.string().default("
|
|
919
|
+
_id: z.string().default("tool_01KW9AEEF930F4AK08SCY18RWG"),
|
|
921
920
|
path: z.string(),
|
|
922
921
|
key: z.string(),
|
|
923
922
|
display_name: z.string().optional(),
|
|
@@ -958,9 +957,8 @@ export const GetAllToolsDataToolsStatus$inboundSchema: z.ZodNativeEnum<
|
|
|
958
957
|
> = z.nativeEnum(GetAllToolsDataToolsStatus);
|
|
959
958
|
|
|
960
959
|
/** @internal */
|
|
961
|
-
export const
|
|
962
|
-
|
|
963
|
-
> = z.nativeEnum(GetAllToolsDataMethod);
|
|
960
|
+
export const DataMethod$inboundSchema: z.ZodNativeEnum<typeof DataMethod> = z
|
|
961
|
+
.nativeEnum(DataMethod);
|
|
964
962
|
|
|
965
963
|
/** @internal */
|
|
966
964
|
export const GetAllToolsHeaders2$inboundSchema: z.ZodType<
|
|
@@ -1006,7 +1004,7 @@ export const DataBlueprint$inboundSchema: z.ZodType<
|
|
|
1006
1004
|
unknown
|
|
1007
1005
|
> = z.object({
|
|
1008
1006
|
url: z.string(),
|
|
1009
|
-
method:
|
|
1007
|
+
method: DataMethod$inboundSchema,
|
|
1010
1008
|
headers: z.record(
|
|
1011
1009
|
z.union([z.lazy(() => GetAllToolsHeaders2$inboundSchema), z.string()]),
|
|
1012
1010
|
).optional(),
|
|
@@ -1024,11 +1022,11 @@ export function dataBlueprintFromJSON(
|
|
|
1024
1022
|
}
|
|
1025
1023
|
|
|
1026
1024
|
/** @internal */
|
|
1027
|
-
export const
|
|
1025
|
+
export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema:
|
|
1028
1026
|
z.ZodNativeEnum<
|
|
1029
|
-
typeof
|
|
1027
|
+
typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType
|
|
1030
1028
|
> = z.nativeEnum(
|
|
1031
|
-
|
|
1029
|
+
GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType,
|
|
1032
1030
|
);
|
|
1033
1031
|
|
|
1034
1032
|
/** @internal */
|
|
@@ -1055,7 +1053,7 @@ export const DataArguments$inboundSchema: z.ZodType<
|
|
|
1055
1053
|
unknown
|
|
1056
1054
|
> = z.object({
|
|
1057
1055
|
type:
|
|
1058
|
-
|
|
1056
|
+
GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema,
|
|
1059
1057
|
description: z.string(),
|
|
1060
1058
|
send_to_model: z.boolean().default(true),
|
|
1061
1059
|
default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
@@ -1077,8 +1075,8 @@ export function dataArgumentsFromJSON(
|
|
|
1077
1075
|
}
|
|
1078
1076
|
|
|
1079
1077
|
/** @internal */
|
|
1080
|
-
export const
|
|
1081
|
-
|
|
1078
|
+
export const DataHttp$inboundSchema: z.ZodType<
|
|
1079
|
+
DataHttp,
|
|
1082
1080
|
z.ZodTypeDef,
|
|
1083
1081
|
unknown
|
|
1084
1082
|
> = z.object({
|
|
@@ -1086,13 +1084,13 @@ export const GetAllToolsDataHttp$inboundSchema: z.ZodType<
|
|
|
1086
1084
|
arguments: z.record(z.lazy(() => DataArguments$inboundSchema)).optional(),
|
|
1087
1085
|
});
|
|
1088
1086
|
|
|
1089
|
-
export function
|
|
1087
|
+
export function dataHttpFromJSON(
|
|
1090
1088
|
jsonString: string,
|
|
1091
|
-
): SafeParseResult<
|
|
1089
|
+
): SafeParseResult<DataHttp, SDKValidationError> {
|
|
1092
1090
|
return safeParse(
|
|
1093
1091
|
jsonString,
|
|
1094
|
-
(x) =>
|
|
1095
|
-
`Failed to parse '
|
|
1092
|
+
(x) => DataHttp$inboundSchema.parse(JSON.parse(x)),
|
|
1093
|
+
`Failed to parse 'DataHttp' from JSON`,
|
|
1096
1094
|
);
|
|
1097
1095
|
}
|
|
1098
1096
|
|
|
@@ -1102,7 +1100,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
|
|
|
1102
1100
|
z.ZodTypeDef,
|
|
1103
1101
|
unknown
|
|
1104
1102
|
> = z.object({
|
|
1105
|
-
_id: z.string().default("
|
|
1103
|
+
_id: z.string().default("tool_01KW9AEEF5V7TKEYHK85Z6FS6D"),
|
|
1106
1104
|
path: z.string(),
|
|
1107
1105
|
key: z.string(),
|
|
1108
1106
|
display_name: z.string().optional(),
|
|
@@ -1115,7 +1113,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
|
|
|
1115
1113
|
updated: z.string(),
|
|
1116
1114
|
status: GetAllToolsDataToolsStatus$inboundSchema.default("live"),
|
|
1117
1115
|
type: z.literal("http"),
|
|
1118
|
-
http: z.lazy(() =>
|
|
1116
|
+
http: z.lazy(() => DataHttp$inboundSchema),
|
|
1119
1117
|
}).transform((v) => {
|
|
1120
1118
|
return remap$(v, {
|
|
1121
1119
|
"_id": "id",
|
|
@@ -1195,7 +1193,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1195
1193
|
z.ZodTypeDef,
|
|
1196
1194
|
unknown
|
|
1197
1195
|
> = z.object({
|
|
1198
|
-
_id: z.string().default("
|
|
1196
|
+
_id: z.string().default("tool_01KW9AEEF3A385FRAK5EHJG23V"),
|
|
1199
1197
|
path: z.string(),
|
|
1200
1198
|
key: z.string(),
|
|
1201
1199
|
display_name: z.string().optional(),
|
|
@@ -1236,12 +1234,9 @@ export const DataStatus$inboundSchema: z.ZodNativeEnum<typeof DataStatus> = z
|
|
|
1236
1234
|
.nativeEnum(DataStatus);
|
|
1237
1235
|
|
|
1238
1236
|
/** @internal */
|
|
1239
|
-
export const
|
|
1240
|
-
z.ZodNativeEnum<
|
|
1241
|
-
|
|
1242
|
-
> = z.nativeEnum(
|
|
1243
|
-
GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType,
|
|
1244
|
-
);
|
|
1237
|
+
export const GetAllToolsDataToolsResponse200ApplicationJSONType$inboundSchema:
|
|
1238
|
+
z.ZodNativeEnum<typeof GetAllToolsDataToolsResponse200ApplicationJSONType> = z
|
|
1239
|
+
.nativeEnum(GetAllToolsDataToolsResponse200ApplicationJSONType);
|
|
1245
1240
|
|
|
1246
1241
|
/** @internal */
|
|
1247
1242
|
export const DataParameters$inboundSchema: z.ZodType<
|
|
@@ -1250,8 +1245,7 @@ export const DataParameters$inboundSchema: z.ZodType<
|
|
|
1250
1245
|
unknown
|
|
1251
1246
|
> = collectExtraKeys$(
|
|
1252
1247
|
z.object({
|
|
1253
|
-
type:
|
|
1254
|
-
GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema,
|
|
1248
|
+
type: GetAllToolsDataToolsResponse200ApplicationJSONType$inboundSchema,
|
|
1255
1249
|
properties: z.record(z.any()),
|
|
1256
1250
|
required: z.array(z.string()),
|
|
1257
1251
|
}).catchall(z.any()),
|
|
@@ -1270,8 +1264,8 @@ export function dataParametersFromJSON(
|
|
|
1270
1264
|
}
|
|
1271
1265
|
|
|
1272
1266
|
/** @internal */
|
|
1273
|
-
export const
|
|
1274
|
-
|
|
1267
|
+
export const DataFunction$inboundSchema: z.ZodType<
|
|
1268
|
+
DataFunction,
|
|
1275
1269
|
z.ZodTypeDef,
|
|
1276
1270
|
unknown
|
|
1277
1271
|
> = z.object({
|
|
@@ -1281,13 +1275,13 @@ export const GetAllToolsDataFunction$inboundSchema: z.ZodType<
|
|
|
1281
1275
|
parameters: z.lazy(() => DataParameters$inboundSchema).optional(),
|
|
1282
1276
|
});
|
|
1283
1277
|
|
|
1284
|
-
export function
|
|
1278
|
+
export function dataFunctionFromJSON(
|
|
1285
1279
|
jsonString: string,
|
|
1286
|
-
): SafeParseResult<
|
|
1280
|
+
): SafeParseResult<DataFunction, SDKValidationError> {
|
|
1287
1281
|
return safeParse(
|
|
1288
1282
|
jsonString,
|
|
1289
|
-
(x) =>
|
|
1290
|
-
`Failed to parse '
|
|
1283
|
+
(x) => DataFunction$inboundSchema.parse(JSON.parse(x)),
|
|
1284
|
+
`Failed to parse 'DataFunction' from JSON`,
|
|
1291
1285
|
);
|
|
1292
1286
|
}
|
|
1293
1287
|
|
|
@@ -1297,7 +1291,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
|
|
|
1297
1291
|
z.ZodTypeDef,
|
|
1298
1292
|
unknown
|
|
1299
1293
|
> = z.object({
|
|
1300
|
-
_id: z.string().default("
|
|
1294
|
+
_id: z.string().default("tool_01KW9AEEF25RPTN3CGD98860JR"),
|
|
1301
1295
|
path: z.string(),
|
|
1302
1296
|
key: z.string(),
|
|
1303
1297
|
display_name: z.string().optional(),
|
|
@@ -1310,7 +1304,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
|
|
|
1310
1304
|
updated: z.string(),
|
|
1311
1305
|
status: DataStatus$inboundSchema.default("live"),
|
|
1312
1306
|
type: z.literal("function"),
|
|
1313
|
-
function: z.lazy(() =>
|
|
1307
|
+
function: z.lazy(() => DataFunction$inboundSchema),
|
|
1314
1308
|
}).transform((v) => {
|
|
1315
1309
|
return remap$(v, {
|
|
1316
1310
|
"_id": "id",
|