@orq-ai/node 4.12.0-rc.34 → 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.js +5 -5
- 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.js +5 -5
- 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.js +4 -4
- 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.js +5 -5
- 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.js +5 -5
- 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 +2 -2
- package/sdk/feedback.js +2 -2
- package/sdk/humanreviewsets.d.ts +1 -4
- package/sdk/humanreviewsets.d.ts.map +1 -1
- package/sdk/humanreviewsets.js +1 -4
- package/sdk/humanreviewsets.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 +5 -5
- 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 +5 -5
- 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 +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrieveagentrequest.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +5 -5
- 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 +5 -5
- 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 +2 -2
- package/src/sdk/humanreviewsets.ts +1 -4
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/webhooks.ts +152 -0
|
@@ -753,7 +753,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
753
753
|
z.ZodTypeDef,
|
|
754
754
|
unknown
|
|
755
755
|
> = z.object({
|
|
756
|
-
_id: z.string().default("
|
|
756
|
+
_id: z.string().default("tool_01KXPYT85K4BMM2A6RSCB8V1J5"),
|
|
757
757
|
path: z.string(),
|
|
758
758
|
key: z.string(),
|
|
759
759
|
display_name: z.string().optional(),
|
|
@@ -859,7 +859,7 @@ export const RetrieveToolResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
859
859
|
z.ZodTypeDef,
|
|
860
860
|
unknown
|
|
861
861
|
> = z.object({
|
|
862
|
-
id: z.string().default("
|
|
862
|
+
id: z.string().default("01KXPYT85J0F2TMBJ46KGWDQ83"),
|
|
863
863
|
name: z.string(),
|
|
864
864
|
description: z.string().optional(),
|
|
865
865
|
schema: z.lazy(() => RetrieveToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -917,7 +917,7 @@ export const RetrieveToolResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
917
917
|
z.ZodTypeDef,
|
|
918
918
|
unknown
|
|
919
919
|
> = z.object({
|
|
920
|
-
_id: z.string().default("
|
|
920
|
+
_id: z.string().default("tool_01KXPYT85HRSXHRH5PJR1Y9818"),
|
|
921
921
|
path: z.string(),
|
|
922
922
|
key: z.string(),
|
|
923
923
|
display_name: z.string().optional(),
|
|
@@ -1108,7 +1108,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1108
1108
|
z.ZodTypeDef,
|
|
1109
1109
|
unknown
|
|
1110
1110
|
> = z.object({
|
|
1111
|
-
_id: z.string().default("
|
|
1111
|
+
_id: z.string().default("tool_01KXPYT85FK3MWZNYN910HC6VY"),
|
|
1112
1112
|
path: z.string(),
|
|
1113
1113
|
key: z.string(),
|
|
1114
1114
|
display_name: z.string().optional(),
|
|
@@ -1204,7 +1204,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1204
1204
|
z.ZodTypeDef,
|
|
1205
1205
|
unknown
|
|
1206
1206
|
> = z.object({
|
|
1207
|
-
_id: z.string().default("
|
|
1207
|
+
_id: z.string().default("tool_01KXPYT85DX9XS25HPWS3VKB55"),
|
|
1208
1208
|
path: z.string(),
|
|
1209
1209
|
key: z.string(),
|
|
1210
1210
|
display_name: z.string().optional(),
|
|
@@ -1310,7 +1310,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1310
1310
|
z.ZodTypeDef,
|
|
1311
1311
|
unknown
|
|
1312
1312
|
> = z.object({
|
|
1313
|
-
_id: z.string().default("
|
|
1313
|
+
_id: z.string().default("tool_01KXPYT85B9ZEXAJMJWNPZ7FYV"),
|
|
1314
1314
|
path: z.string(),
|
|
1315
1315
|
key: z.string(),
|
|
1316
1316
|
display_name: z.string().optional(),
|
|
@@ -4042,7 +4042,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
4042
4042
|
z.ZodTypeDef,
|
|
4043
4043
|
Tools
|
|
4044
4044
|
> = z.object({
|
|
4045
|
-
id: z.string().default("
|
|
4045
|
+
id: z.string().default("01KXPYT7W4DGKMQVKD6N67FT3N"),
|
|
4046
4046
|
name: z.string(),
|
|
4047
4047
|
description: z.string().optional(),
|
|
4048
4048
|
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|
|
@@ -4098,7 +4098,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
|
|
|
4098
4098
|
z.ZodTypeDef,
|
|
4099
4099
|
AgentToolInputRunTools
|
|
4100
4100
|
> = z.object({
|
|
4101
|
-
id: z.string().default("
|
|
4101
|
+
id: z.string().default("01KXPYT7XPPMY0D7ZXEN99X37X"),
|
|
4102
4102
|
name: z.string(),
|
|
4103
4103
|
description: z.string().optional(),
|
|
4104
4104
|
schema: z.lazy(() =>
|
|
@@ -3004,7 +3004,7 @@ export type UpdateAgentResponseBody = {
|
|
|
3004
3004
|
/**
|
|
3005
3005
|
* 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.
|
|
3006
3006
|
*/
|
|
3007
|
-
skills
|
|
3007
|
+
skills?: Array<string> | undefined;
|
|
3008
3008
|
metrics?: UpdateAgentMetrics | undefined;
|
|
3009
3009
|
/**
|
|
3010
3010
|
* Extracted variables from agent instructions
|
|
@@ -7490,7 +7490,7 @@ export const UpdateAgentResponseBody$inboundSchema: z.ZodType<
|
|
|
7490
7490
|
team_of_agents: z.array(
|
|
7491
7491
|
z.lazy(() => UpdateAgentAgentsTeamOfAgents$inboundSchema),
|
|
7492
7492
|
).optional(),
|
|
7493
|
-
skills: z.array(z.string()),
|
|
7493
|
+
skills: z.array(z.string()).optional(),
|
|
7494
7494
|
metrics: z.lazy(() => UpdateAgentMetrics$inboundSchema).optional(),
|
|
7495
7495
|
variables: z.record(z.any()).optional(),
|
|
7496
7496
|
knowledge_bases: z.array(
|
|
@@ -2747,7 +2747,7 @@ export const UpdateDatapointEvaluations4$inboundSchema: z.ZodType<
|
|
|
2747
2747
|
explanation: z.string().optional(),
|
|
2748
2748
|
reviewed_by_id: z.string(),
|
|
2749
2749
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2750
|
-
"2026-07-
|
|
2750
|
+
"2026-07-17T02:34:44.996Z",
|
|
2751
2751
|
).transform(v => new Date(v)),
|
|
2752
2752
|
type: z.literal("string_array"),
|
|
2753
2753
|
values: z.array(z.string()),
|
|
@@ -2847,7 +2847,7 @@ export const UpdateDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
2847
2847
|
explanation: z.string().optional(),
|
|
2848
2848
|
reviewed_by_id: z.string(),
|
|
2849
2849
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2850
|
-
"2026-07-
|
|
2850
|
+
"2026-07-17T02:34:44.995Z",
|
|
2851
2851
|
).transform(v => new Date(v)),
|
|
2852
2852
|
type: z.literal("boolean"),
|
|
2853
2853
|
value: z.boolean(),
|
|
@@ -2944,7 +2944,7 @@ export const UpdateDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
2944
2944
|
explanation: z.string().optional(),
|
|
2945
2945
|
reviewed_by_id: z.string(),
|
|
2946
2946
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2947
|
-
"2026-07-
|
|
2947
|
+
"2026-07-17T02:34:44.994Z",
|
|
2948
2948
|
).transform(v => new Date(v)),
|
|
2949
2949
|
type: z.literal("number"),
|
|
2950
2950
|
value: z.number(),
|
|
@@ -3033,7 +3033,7 @@ export const UpdateDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
3033
3033
|
explanation: z.string().optional(),
|
|
3034
3034
|
reviewed_by_id: z.string(),
|
|
3035
3035
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
3036
|
-
"2026-07-
|
|
3036
|
+
"2026-07-17T02:34:44.993Z",
|
|
3037
3037
|
).transform(v => new Date(v)),
|
|
3038
3038
|
type: z.literal("string"),
|
|
3039
3039
|
value: z.string(),
|
|
@@ -3118,7 +3118,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
3118
3118
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
3119
3119
|
.optional(),
|
|
3120
3120
|
updated: z.string().datetime({ offset: true }).default(
|
|
3121
|
-
"2026-07-
|
|
3121
|
+
"2026-07-17T02:34:22.765Z",
|
|
3122
3122
|
).transform(v => new Date(v)),
|
|
3123
3123
|
}).transform((v) => {
|
|
3124
3124
|
return remap$(v, {
|
|
@@ -182,7 +182,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
182
182
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
183
183
|
.optional(),
|
|
184
184
|
updated: z.string().datetime({ offset: true }).default(
|
|
185
|
-
"2026-07-
|
|
185
|
+
"2026-07-17T02:34:22.765Z",
|
|
186
186
|
).transform(v => new Date(v)),
|
|
187
187
|
}).transform((v) => {
|
|
188
188
|
return remap$(v, {
|
|
@@ -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";
|
|
@@ -34,6 +37,34 @@ export const UpdateDatasourceStatus = {
|
|
|
34
37
|
} as const;
|
|
35
38
|
export type UpdateDatasourceStatus = ClosedEnum<typeof UpdateDatasourceStatus>;
|
|
36
39
|
|
|
40
|
+
export type UpdateDatasourceMetadata = {
|
|
41
|
+
/**
|
|
42
|
+
* Number of words in the text
|
|
43
|
+
*/
|
|
44
|
+
wordsCount?: number | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Number of sentences in the text
|
|
47
|
+
*/
|
|
48
|
+
sentencesCount?: number | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Number of paragraphs in the text
|
|
51
|
+
*/
|
|
52
|
+
paragraphsCount?: number | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Number of tokens in the text
|
|
55
|
+
*/
|
|
56
|
+
tokensCount?: number | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Number of characters in the text
|
|
59
|
+
*/
|
|
60
|
+
charactersCount?: number | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Number of total chunks
|
|
63
|
+
*/
|
|
64
|
+
chunksCount?: number | undefined;
|
|
65
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
66
|
+
};
|
|
67
|
+
|
|
37
68
|
/**
|
|
38
69
|
* Datasource successfully updated
|
|
39
70
|
*/
|
|
@@ -79,6 +110,7 @@ export type UpdateDatasourceResponseBody = {
|
|
|
79
110
|
* The number of chunks in the datasource
|
|
80
111
|
*/
|
|
81
112
|
chunksCount: number;
|
|
113
|
+
metadata: UpdateDatasourceMetadata;
|
|
82
114
|
};
|
|
83
115
|
|
|
84
116
|
/** @internal */
|
|
@@ -146,13 +178,50 @@ export const UpdateDatasourceStatus$inboundSchema: z.ZodNativeEnum<
|
|
|
146
178
|
typeof UpdateDatasourceStatus
|
|
147
179
|
> = z.nativeEnum(UpdateDatasourceStatus);
|
|
148
180
|
|
|
181
|
+
/** @internal */
|
|
182
|
+
export const UpdateDatasourceMetadata$inboundSchema: z.ZodType<
|
|
183
|
+
UpdateDatasourceMetadata,
|
|
184
|
+
z.ZodTypeDef,
|
|
185
|
+
unknown
|
|
186
|
+
> = collectExtraKeys$(
|
|
187
|
+
z.object({
|
|
188
|
+
words_count: z.number().optional(),
|
|
189
|
+
sentences_count: z.number().optional(),
|
|
190
|
+
paragraphs_count: z.number().optional(),
|
|
191
|
+
tokens_count: z.number().optional(),
|
|
192
|
+
characters_count: z.number().optional(),
|
|
193
|
+
chunks_count: z.number().optional(),
|
|
194
|
+
}).catchall(z.any()),
|
|
195
|
+
"additionalProperties",
|
|
196
|
+
true,
|
|
197
|
+
).transform((v) => {
|
|
198
|
+
return remap$(v, {
|
|
199
|
+
"words_count": "wordsCount",
|
|
200
|
+
"sentences_count": "sentencesCount",
|
|
201
|
+
"paragraphs_count": "paragraphsCount",
|
|
202
|
+
"tokens_count": "tokensCount",
|
|
203
|
+
"characters_count": "charactersCount",
|
|
204
|
+
"chunks_count": "chunksCount",
|
|
205
|
+
});
|
|
206
|
+
});
|
|
207
|
+
|
|
208
|
+
export function updateDatasourceMetadataFromJSON(
|
|
209
|
+
jsonString: string,
|
|
210
|
+
): SafeParseResult<UpdateDatasourceMetadata, SDKValidationError> {
|
|
211
|
+
return safeParse(
|
|
212
|
+
jsonString,
|
|
213
|
+
(x) => UpdateDatasourceMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
214
|
+
`Failed to parse 'UpdateDatasourceMetadata' from JSON`,
|
|
215
|
+
);
|
|
216
|
+
}
|
|
217
|
+
|
|
149
218
|
/** @internal */
|
|
150
219
|
export const UpdateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
151
220
|
UpdateDatasourceResponseBody,
|
|
152
221
|
z.ZodTypeDef,
|
|
153
222
|
unknown
|
|
154
223
|
> = z.object({
|
|
155
|
-
_id: z.string().default("
|
|
224
|
+
_id: z.string().default("01KXPYT88W7SS1AN33KS0Y6AAC"),
|
|
156
225
|
display_name: z.string(),
|
|
157
226
|
description: z.nullable(z.string()).optional(),
|
|
158
227
|
status: UpdateDatasourceStatus$inboundSchema,
|
|
@@ -163,6 +232,7 @@ export const UpdateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
163
232
|
update_by_id: z.nullable(z.string()).optional(),
|
|
164
233
|
knowledge_id: z.string(),
|
|
165
234
|
chunks_count: z.number(),
|
|
235
|
+
metadata: z.lazy(() => UpdateDatasourceMetadata$inboundSchema),
|
|
166
236
|
}).transform((v) => {
|
|
167
237
|
return remap$(v, {
|
|
168
238
|
"_id": "id",
|
|
@@ -1472,7 +1472,7 @@ export const RequestBodyTools$outboundSchema: z.ZodType<
|
|
|
1472
1472
|
z.ZodTypeDef,
|
|
1473
1473
|
RequestBodyTools
|
|
1474
1474
|
> = z.object({
|
|
1475
|
-
id: z.string().default("
|
|
1475
|
+
id: z.string().default("01KXPYT84Z4QHGRRBR0X98GV1Y"),
|
|
1476
1476
|
name: z.string(),
|
|
1477
1477
|
description: z.string().optional(),
|
|
1478
1478
|
schema: z.lazy(() => UpdateToolRequestBodyToolsSchema$outboundSchema),
|
|
@@ -2193,7 +2193,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
2193
2193
|
z.ZodTypeDef,
|
|
2194
2194
|
unknown
|
|
2195
2195
|
> = z.object({
|
|
2196
|
-
_id: z.string().default("
|
|
2196
|
+
_id: z.string().default("tool_01KXPYT84R2E651N4G2AXY8J44"),
|
|
2197
2197
|
path: z.string(),
|
|
2198
2198
|
key: z.string(),
|
|
2199
2199
|
display_name: z.string().optional(),
|
|
@@ -2296,7 +2296,7 @@ export const UpdateToolResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
2296
2296
|
z.ZodTypeDef,
|
|
2297
2297
|
unknown
|
|
2298
2298
|
> = z.object({
|
|
2299
|
-
id: z.string().default("
|
|
2299
|
+
id: z.string().default("01KXPYT84Q2198J0APSHWTJT0Y"),
|
|
2300
2300
|
name: z.string(),
|
|
2301
2301
|
description: z.string().optional(),
|
|
2302
2302
|
schema: z.lazy(() => UpdateToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -2354,7 +2354,7 @@ export const UpdateToolResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
2354
2354
|
z.ZodTypeDef,
|
|
2355
2355
|
unknown
|
|
2356
2356
|
> = z.object({
|
|
2357
|
-
_id: z.string().default("
|
|
2357
|
+
_id: z.string().default("tool_01KXPYT84PTHSKEXNTR3HZW0XJ"),
|
|
2358
2358
|
path: z.string(),
|
|
2359
2359
|
key: z.string(),
|
|
2360
2360
|
display_name: z.string().optional(),
|
|
@@ -2543,7 +2543,7 @@ export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
2543
2543
|
z.ZodTypeDef,
|
|
2544
2544
|
unknown
|
|
2545
2545
|
> = z.object({
|
|
2546
|
-
_id: z.string().default("
|
|
2546
|
+
_id: z.string().default("tool_01KXPYT84KB14EP8G15KT4ZDNM"),
|
|
2547
2547
|
path: z.string(),
|
|
2548
2548
|
key: z.string(),
|
|
2549
2549
|
display_name: z.string().optional(),
|
|
@@ -2638,7 +2638,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2638
2638
|
z.ZodTypeDef,
|
|
2639
2639
|
unknown
|
|
2640
2640
|
> = z.object({
|
|
2641
|
-
_id: z.string().default("
|
|
2641
|
+
_id: z.string().default("tool_01KXPYT84J3NS76S9J8BKC74HQ"),
|
|
2642
2642
|
path: z.string(),
|
|
2643
2643
|
key: z.string(),
|
|
2644
2644
|
display_name: z.string().optional(),
|
|
@@ -2741,7 +2741,7 @@ export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2741
2741
|
z.ZodTypeDef,
|
|
2742
2742
|
unknown
|
|
2743
2743
|
> = z.object({
|
|
2744
|
-
_id: z.string().default("
|
|
2744
|
+
_id: z.string().default("tool_01KXPYT84GTZXBT0DZ9YNXRDVC"),
|
|
2745
2745
|
path: z.string(),
|
|
2746
2746
|
key: z.string(),
|
|
2747
2747
|
display_name: z.string().optional(),
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
export type WebhookDeleteRequest = {
|
|
8
|
+
id: string;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
/** @internal */
|
|
12
|
+
export type WebhookDeleteRequest$Outbound = {
|
|
13
|
+
id: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const WebhookDeleteRequest$outboundSchema: z.ZodType<
|
|
18
|
+
WebhookDeleteRequest$Outbound,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
WebhookDeleteRequest
|
|
21
|
+
> = z.object({
|
|
22
|
+
id: z.string(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export function webhookDeleteRequestToJSON(
|
|
26
|
+
webhookDeleteRequest: WebhookDeleteRequest,
|
|
27
|
+
): string {
|
|
28
|
+
return JSON.stringify(
|
|
29
|
+
WebhookDeleteRequest$outboundSchema.parse(webhookDeleteRequest),
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
export type WebhookGetRequest = {
|
|
8
|
+
id: string;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
/** @internal */
|
|
12
|
+
export type WebhookGetRequest$Outbound = {
|
|
13
|
+
id: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const WebhookGetRequest$outboundSchema: z.ZodType<
|
|
18
|
+
WebhookGetRequest$Outbound,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
WebhookGetRequest
|
|
21
|
+
> = z.object({
|
|
22
|
+
id: z.string(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export function webhookGetRequestToJSON(
|
|
26
|
+
webhookGetRequest: WebhookGetRequest,
|
|
27
|
+
): string {
|
|
28
|
+
return JSON.stringify(
|
|
29
|
+
WebhookGetRequest$outboundSchema.parse(webhookGetRequest),
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type WebhookListRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* One-based page number. Defaults to 1 and must be between 1 and 1,000,000.
|
|
11
|
+
*/
|
|
12
|
+
page?: number | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Number of webhooks to return per page. Defaults to 20 and must be between
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* 1 and 200.
|
|
18
|
+
*/
|
|
19
|
+
limit?: number | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Optional case-insensitive substring matched against display name, content
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
* type, and URL. Maximum length is 200 characters.
|
|
25
|
+
*/
|
|
26
|
+
search?: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Optional event slug that must be present in the webhook's event
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* subscriptions, for example `llm.response`. Maximum length is 200
|
|
32
|
+
* characters.
|
|
33
|
+
*/
|
|
34
|
+
event?: string | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Field used to order results. Allowed values are `created`, `updated`, and
|
|
37
|
+
*
|
|
38
|
+
* @remarks
|
|
39
|
+
* `display_name`. Defaults to `created`.
|
|
40
|
+
*/
|
|
41
|
+
sort?: string | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Sort direction. Allowed values are `asc` and `desc`. Defaults to `desc`.
|
|
44
|
+
*/
|
|
45
|
+
direction?: string | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Optional comma-separated content types to match, for example
|
|
48
|
+
*
|
|
49
|
+
* @remarks
|
|
50
|
+
* `application/json,application/x-www-form-urlencoded`. A webhook matches
|
|
51
|
+
* when its content type equals any supplied value.
|
|
52
|
+
*/
|
|
53
|
+
contentType?: string | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Optional delivery status filter. When omitted, enabled and disabled
|
|
56
|
+
*
|
|
57
|
+
* @remarks
|
|
58
|
+
* webhooks are returned.
|
|
59
|
+
*/
|
|
60
|
+
enabled?: boolean | undefined;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export type WebhookListRequest$Outbound = {
|
|
65
|
+
page?: number | undefined;
|
|
66
|
+
limit?: number | undefined;
|
|
67
|
+
search?: string | undefined;
|
|
68
|
+
event?: string | undefined;
|
|
69
|
+
sort?: string | undefined;
|
|
70
|
+
direction?: string | undefined;
|
|
71
|
+
content_type?: string | undefined;
|
|
72
|
+
enabled?: boolean | undefined;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
/** @internal */
|
|
76
|
+
export const WebhookListRequest$outboundSchema: z.ZodType<
|
|
77
|
+
WebhookListRequest$Outbound,
|
|
78
|
+
z.ZodTypeDef,
|
|
79
|
+
WebhookListRequest
|
|
80
|
+
> = z.object({
|
|
81
|
+
page: z.number().int().optional(),
|
|
82
|
+
limit: z.number().int().optional(),
|
|
83
|
+
search: z.string().optional(),
|
|
84
|
+
event: z.string().optional(),
|
|
85
|
+
sort: z.string().optional(),
|
|
86
|
+
direction: z.string().optional(),
|
|
87
|
+
contentType: z.string().optional(),
|
|
88
|
+
enabled: z.boolean().optional(),
|
|
89
|
+
}).transform((v) => {
|
|
90
|
+
return remap$(v, {
|
|
91
|
+
contentType: "content_type",
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
export function webhookListRequestToJSON(
|
|
96
|
+
webhookListRequest: WebhookListRequest,
|
|
97
|
+
): string {
|
|
98
|
+
return JSON.stringify(
|
|
99
|
+
WebhookListRequest$outboundSchema.parse(webhookListRequest),
|
|
100
|
+
);
|
|
101
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type WebhookUpdateRequestBody = {};
|
|
12
|
+
|
|
13
|
+
export type WebhookUpdateRequest = {
|
|
14
|
+
id: string;
|
|
15
|
+
requestBody: WebhookUpdateRequestBody;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* OK
|
|
20
|
+
*/
|
|
21
|
+
export type WebhookUpdateResponseBody = {};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export type WebhookUpdateRequestBody$Outbound = {};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const WebhookUpdateRequestBody$outboundSchema: z.ZodType<
|
|
28
|
+
WebhookUpdateRequestBody$Outbound,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
WebhookUpdateRequestBody
|
|
31
|
+
> = z.object({});
|
|
32
|
+
|
|
33
|
+
export function webhookUpdateRequestBodyToJSON(
|
|
34
|
+
webhookUpdateRequestBody: WebhookUpdateRequestBody,
|
|
35
|
+
): string {
|
|
36
|
+
return JSON.stringify(
|
|
37
|
+
WebhookUpdateRequestBody$outboundSchema.parse(webhookUpdateRequestBody),
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export type WebhookUpdateRequest$Outbound = {
|
|
43
|
+
id: string;
|
|
44
|
+
RequestBody: WebhookUpdateRequestBody$Outbound;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export const WebhookUpdateRequest$outboundSchema: z.ZodType<
|
|
49
|
+
WebhookUpdateRequest$Outbound,
|
|
50
|
+
z.ZodTypeDef,
|
|
51
|
+
WebhookUpdateRequest
|
|
52
|
+
> = z.object({
|
|
53
|
+
id: z.string(),
|
|
54
|
+
requestBody: z.lazy(() => WebhookUpdateRequestBody$outboundSchema),
|
|
55
|
+
}).transform((v) => {
|
|
56
|
+
return remap$(v, {
|
|
57
|
+
requestBody: "RequestBody",
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
export function webhookUpdateRequestToJSON(
|
|
62
|
+
webhookUpdateRequest: WebhookUpdateRequest,
|
|
63
|
+
): string {
|
|
64
|
+
return JSON.stringify(
|
|
65
|
+
WebhookUpdateRequest$outboundSchema.parse(webhookUpdateRequest),
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/** @internal */
|
|
70
|
+
export const WebhookUpdateResponseBody$inboundSchema: z.ZodType<
|
|
71
|
+
WebhookUpdateResponseBody,
|
|
72
|
+
z.ZodTypeDef,
|
|
73
|
+
unknown
|
|
74
|
+
> = z.object({});
|
|
75
|
+
|
|
76
|
+
export function webhookUpdateResponseBodyFromJSON(
|
|
77
|
+
jsonString: string,
|
|
78
|
+
): SafeParseResult<WebhookUpdateResponseBody, SDKValidationError> {
|
|
79
|
+
return safeParse(
|
|
80
|
+
jsonString,
|
|
81
|
+
(x) => WebhookUpdateResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
82
|
+
`Failed to parse 'WebhookUpdateResponseBody' from JSON`,
|
|
83
|
+
);
|
|
84
|
+
}
|
package/src/sdk/feedback.ts
CHANGED
|
@@ -45,10 +45,10 @@ export class Feedback extends ClientSDK {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
* Create
|
|
48
|
+
* Create a new management key
|
|
49
49
|
*
|
|
50
50
|
* @remarks
|
|
51
|
-
*
|
|
51
|
+
* Mints a new opaque management key (`sk-orq-<key_id>-<secret>`) in the workspace. The raw secret is returned ONCE in the response and is never retrievable afterwards. The stored record retains only `token_prefix` and a SHA-256 `token_hash`.
|
|
52
52
|
*/
|
|
53
53
|
async create(
|
|
54
54
|
request?: operations.PostV2FeedbackRequestBody | undefined,
|
|
@@ -27,10 +27,7 @@ export class HumanReviewSets extends ClientSDK {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* Create a
|
|
31
|
-
*
|
|
32
|
-
* @remarks
|
|
33
|
-
* Mints a new opaque management key (`sk-orq-<key_id>-<secret>`) in the workspace. The raw secret is returned ONCE in the response and is never retrievable afterwards. The stored record retains only `token_prefix` and a SHA-256 `token_hash`.
|
|
30
|
+
* Create a human review set
|
|
34
31
|
*/
|
|
35
32
|
async create(
|
|
36
33
|
request?: operations.PostV2HumanEvalSetsRequestBody | undefined,
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -34,6 +34,7 @@ import { Skills } from "./skills.js";
|
|
|
34
34
|
import { Telemetry } from "./telemetry.js";
|
|
35
35
|
import { Tools } from "./tools.js";
|
|
36
36
|
import { Traces } from "./traces.js";
|
|
37
|
+
import { Webhooks } from "./webhooks.js";
|
|
37
38
|
|
|
38
39
|
export class Orq extends ClientSDK {
|
|
39
40
|
private _evals?: Evals;
|
|
@@ -166,6 +167,11 @@ export class Orq extends ClientSDK {
|
|
|
166
167
|
return (this._skills ??= new Skills(this._options));
|
|
167
168
|
}
|
|
168
169
|
|
|
170
|
+
private _webhooks?: Webhooks;
|
|
171
|
+
get webhooks(): Webhooks {
|
|
172
|
+
return (this._webhooks ??= new Webhooks(this._options));
|
|
173
|
+
}
|
|
174
|
+
|
|
169
175
|
private _schedules?: Schedules;
|
|
170
176
|
get schedules(): Schedules {
|
|
171
177
|
return (this._schedules ??= new Schedules(this._options));
|