@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.
Files changed (263) hide show
  1. package/README.md +55 -36
  2. package/funcs/knowledgeListDatasources.js +1 -0
  3. package/funcs/knowledgeListDatasources.js.map +1 -1
  4. package/funcs/webhooksCount.d.ts +17 -0
  5. package/funcs/webhooksCount.d.ts.map +1 -0
  6. package/funcs/webhooksCount.js +105 -0
  7. package/funcs/webhooksCount.js.map +1 -0
  8. package/funcs/webhooksCreate.d.ts +17 -0
  9. package/funcs/webhooksCreate.d.ts.map +1 -0
  10. package/funcs/webhooksCreate.js +115 -0
  11. package/funcs/webhooksCreate.js.map +1 -0
  12. package/funcs/webhooksDelete.d.ts +18 -0
  13. package/funcs/webhooksDelete.d.ts.map +1 -0
  14. package/funcs/webhooksDelete.js +121 -0
  15. package/funcs/webhooksDelete.js.map +1 -0
  16. package/funcs/webhooksGenerateSecret.d.ts +17 -0
  17. package/funcs/webhooksGenerateSecret.d.ts.map +1 -0
  18. package/funcs/webhooksGenerateSecret.js +105 -0
  19. package/funcs/webhooksGenerateSecret.js.map +1 -0
  20. package/funcs/webhooksGet.d.ts +18 -0
  21. package/funcs/webhooksGet.d.ts.map +1 -0
  22. package/funcs/webhooksGet.js +121 -0
  23. package/funcs/webhooksGet.js.map +1 -0
  24. package/funcs/webhooksList.d.ts +18 -0
  25. package/funcs/webhooksList.d.ts.map +1 -0
  26. package/funcs/webhooksList.js +126 -0
  27. package/funcs/webhooksList.js.map +1 -0
  28. package/funcs/webhooksQuery.d.ts +19 -0
  29. package/funcs/webhooksQuery.d.ts.map +1 -0
  30. package/funcs/webhooksQuery.js +117 -0
  31. package/funcs/webhooksQuery.js.map +1 -0
  32. package/funcs/webhooksUpdate.d.ts +17 -0
  33. package/funcs/webhooksUpdate.d.ts.map +1 -0
  34. package/funcs/webhooksUpdate.js +121 -0
  35. package/funcs/webhooksUpdate.js.map +1 -0
  36. package/jsr.json +1 -1
  37. package/lib/config.d.ts +2 -2
  38. package/lib/config.js +2 -2
  39. package/models/components/countwebhooksresponse.d.ts +16 -0
  40. package/models/components/countwebhooksresponse.d.ts.map +1 -0
  41. package/models/components/countwebhooksresponse.js +50 -0
  42. package/models/components/countwebhooksresponse.js.map +1 -0
  43. package/models/components/createwebhookrequest.d.ts +62 -0
  44. package/models/components/createwebhookrequest.d.ts.map +1 -0
  45. package/models/components/createwebhookrequest.js +71 -0
  46. package/models/components/createwebhookrequest.js.map +1 -0
  47. package/models/components/deletewebhookresponse.d.ts +13 -0
  48. package/models/components/deletewebhookresponse.d.ts.map +1 -0
  49. package/models/components/deletewebhookresponse.js +50 -0
  50. package/models/components/deletewebhookresponse.js.map +1 -0
  51. package/models/components/evaluatorresponsefunction.js +2 -2
  52. package/models/components/evaluatorresponsehttp.js +2 -2
  53. package/models/components/evaluatorresponsejsonschema.js +2 -2
  54. package/models/components/evaluatorresponsellm.js +2 -2
  55. package/models/components/evaluatorresponsepython.js +2 -2
  56. package/models/components/evaluatorresponseragas.js +2 -2
  57. package/models/components/evaluatorresponsetypescript.js +2 -2
  58. package/models/components/generatewebhooksecretresponse.d.ts +16 -0
  59. package/models/components/generatewebhooksecretresponse.d.ts.map +1 -0
  60. package/models/components/generatewebhooksecretresponse.js +50 -0
  61. package/models/components/generatewebhooksecretresponse.js.map +1 -0
  62. package/models/components/index.d.ts +10 -0
  63. package/models/components/index.d.ts.map +1 -1
  64. package/models/components/index.js +10 -0
  65. package/models/components/index.js.map +1 -1
  66. package/models/components/listwebhooksresponse.d.ts +25 -0
  67. package/models/components/listwebhooksresponse.d.ts.map +1 -0
  68. package/models/components/listwebhooksresponse.js +58 -0
  69. package/models/components/listwebhooksresponse.js.map +1 -0
  70. package/models/components/queryparamspagination.d.ts +18 -0
  71. package/models/components/queryparamspagination.d.ts.map +1 -0
  72. package/models/components/queryparamspagination.js +52 -0
  73. package/models/components/queryparamspagination.js.map +1 -0
  74. package/models/components/queryparamssort.d.ts +14 -0
  75. package/models/components/queryparamssort.d.ts.map +1 -0
  76. package/models/components/queryparamssort.js +50 -0
  77. package/models/components/queryparamssort.js.map +1 -0
  78. package/models/components/querywebhooksrequest.d.ts +38 -0
  79. package/models/components/querywebhooksrequest.d.ts.map +1 -0
  80. package/models/components/querywebhooksrequest.js +67 -0
  81. package/models/components/querywebhooksrequest.js.map +1 -0
  82. package/models/components/querywebhooksresponse.d.ts +12 -0
  83. package/models/components/querywebhooksresponse.d.ts.map +1 -0
  84. package/models/components/querywebhooksresponse.js +52 -0
  85. package/models/components/querywebhooksresponse.js.map +1 -0
  86. package/models/components/reasoningpart.js +1 -1
  87. package/models/components/webhook.d.ts +74 -0
  88. package/models/components/webhook.d.ts.map +1 -0
  89. package/models/components/webhook.js +81 -0
  90. package/models/components/webhook.js.map +1 -0
  91. package/models/operations/createagentrequest.d.ts +1 -1
  92. package/models/operations/createagentrequest.d.ts.map +1 -1
  93. package/models/operations/createagentrequest.js +1 -1
  94. package/models/operations/createagentrequest.js.map +1 -1
  95. package/models/operations/createdataset.js +1 -1
  96. package/models/operations/createdatasetitem.d.ts +121 -8
  97. package/models/operations/createdatasetitem.d.ts.map +1 -1
  98. package/models/operations/createdatasetitem.js +97 -12
  99. package/models/operations/createdatasetitem.js.map +1 -1
  100. package/models/operations/createdatasource.d.ts +42 -0
  101. package/models/operations/createdatasource.d.ts.map +1 -1
  102. package/models/operations/createdatasource.js +26 -2
  103. package/models/operations/createdatasource.js.map +1 -1
  104. package/models/operations/createrouterresponse.d.ts +34 -4
  105. package/models/operations/createrouterresponse.d.ts.map +1 -1
  106. package/models/operations/createrouterresponse.js +18 -3
  107. package/models/operations/createrouterresponse.js.map +1 -1
  108. package/models/operations/createtool.js +6 -6
  109. package/models/operations/getalltools.js +6 -6
  110. package/models/operations/getv2humanevalsets.js +2 -2
  111. package/models/operations/getv2humanevalsetsid.js +2 -2
  112. package/models/operations/index.d.ts +4 -0
  113. package/models/operations/index.d.ts.map +1 -1
  114. package/models/operations/index.js +4 -0
  115. package/models/operations/index.js.map +1 -1
  116. package/models/operations/listagents.d.ts +1 -1
  117. package/models/operations/listagents.d.ts.map +1 -1
  118. package/models/operations/listagents.js +1 -1
  119. package/models/operations/listagents.js.map +1 -1
  120. package/models/operations/listdatasetdatapoints.d.ts +149 -36
  121. package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
  122. package/models/operations/listdatasetdatapoints.js +119 -37
  123. package/models/operations/listdatasetdatapoints.js.map +1 -1
  124. package/models/operations/listdatasets.js +1 -1
  125. package/models/operations/listdatasources.d.ts +48 -0
  126. package/models/operations/listdatasources.d.ts.map +1 -1
  127. package/models/operations/listdatasources.js +33 -2
  128. package/models/operations/listdatasources.js.map +1 -1
  129. package/models/operations/patchv2humanevalsetsid.js +2 -2
  130. package/models/operations/postv2feedbackevaluation.d.ts +68 -6
  131. package/models/operations/postv2feedbackevaluation.d.ts.map +1 -1
  132. package/models/operations/postv2feedbackevaluation.js +46 -6
  133. package/models/operations/postv2feedbackevaluation.js.map +1 -1
  134. package/models/operations/postv2humanevalsets.js +2 -2
  135. package/models/operations/retrieveagentrequest.d.ts +1 -1
  136. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  137. package/models/operations/retrieveagentrequest.js +1 -1
  138. package/models/operations/retrieveagentrequest.js.map +1 -1
  139. package/models/operations/retrievedatapoint.d.ts +117 -4
  140. package/models/operations/retrievedatapoint.d.ts.map +1 -1
  141. package/models/operations/retrievedatapoint.js +90 -8
  142. package/models/operations/retrievedatapoint.js.map +1 -1
  143. package/models/operations/retrievedataset.js +1 -1
  144. package/models/operations/retrievedatasource.d.ts +33 -0
  145. package/models/operations/retrievedatasource.d.ts.map +1 -1
  146. package/models/operations/retrievedatasource.js +25 -2
  147. package/models/operations/retrievedatasource.js.map +1 -1
  148. package/models/operations/retrieveresponse.d.ts +4 -4
  149. package/models/operations/retrieveresponse.d.ts.map +1 -1
  150. package/models/operations/retrieveresponse.js +4 -4
  151. package/models/operations/retrieveresponse.js.map +1 -1
  152. package/models/operations/retrievetool.js +6 -6
  153. package/models/operations/runagent.js +1 -1
  154. package/models/operations/streamrunagent.js +1 -1
  155. package/models/operations/updateagent.d.ts +1 -1
  156. package/models/operations/updateagent.d.ts.map +1 -1
  157. package/models/operations/updateagent.js +1 -1
  158. package/models/operations/updateagent.js.map +1 -1
  159. package/models/operations/updatedatapoint.d.ts +117 -4
  160. package/models/operations/updatedatapoint.d.ts.map +1 -1
  161. package/models/operations/updatedatapoint.js +92 -8
  162. package/models/operations/updatedatapoint.js.map +1 -1
  163. package/models/operations/updatedataset.js +1 -1
  164. package/models/operations/updatedatasource.d.ts +33 -0
  165. package/models/operations/updatedatasource.d.ts.map +1 -1
  166. package/models/operations/updatedatasource.js +25 -2
  167. package/models/operations/updatedatasource.js.map +1 -1
  168. package/models/operations/updatetool.js +7 -7
  169. package/models/operations/webhookdelete.d.ts +12 -0
  170. package/models/operations/webhookdelete.d.ts.map +1 -0
  171. package/models/operations/webhookdelete.js +49 -0
  172. package/models/operations/webhookdelete.js.map +1 -0
  173. package/models/operations/webhookget.d.ts +12 -0
  174. package/models/operations/webhookget.d.ts.map +1 -0
  175. package/models/operations/webhookget.js +49 -0
  176. package/models/operations/webhookget.js.map +1 -0
  177. package/models/operations/webhooklist.d.ts +70 -0
  178. package/models/operations/webhooklist.d.ts.map +1 -0
  179. package/models/operations/webhooklist.js +61 -0
  180. package/models/operations/webhooklist.js.map +1 -0
  181. package/models/operations/webhookupdate.d.ts +29 -0
  182. package/models/operations/webhookupdate.d.ts.map +1 -0
  183. package/models/operations/webhookupdate.js +68 -0
  184. package/models/operations/webhookupdate.js.map +1 -0
  185. package/package.json +7 -7
  186. package/sdk/feedback.d.ts +4 -1
  187. package/sdk/feedback.d.ts.map +1 -1
  188. package/sdk/feedback.js +4 -1
  189. package/sdk/feedback.js.map +1 -1
  190. package/sdk/sdk.d.ts +3 -0
  191. package/sdk/sdk.d.ts.map +1 -1
  192. package/sdk/sdk.js +4 -0
  193. package/sdk/sdk.js.map +1 -1
  194. package/sdk/webhooks.d.ts +64 -0
  195. package/sdk/webhooks.d.ts.map +1 -0
  196. package/sdk/webhooks.js +94 -0
  197. package/sdk/webhooks.js.map +1 -0
  198. package/src/funcs/knowledgeListDatasources.ts +1 -0
  199. package/src/funcs/webhooksCount.ts +144 -0
  200. package/src/funcs/webhooksCreate.ts +162 -0
  201. package/src/funcs/webhooksDelete.ts +168 -0
  202. package/src/funcs/webhooksGenerateSecret.ts +144 -0
  203. package/src/funcs/webhooksGet.ts +168 -0
  204. package/src/funcs/webhooksList.ts +175 -0
  205. package/src/funcs/webhooksQuery.ts +164 -0
  206. package/src/funcs/webhooksUpdate.ts +168 -0
  207. package/src/lib/config.ts +2 -2
  208. package/src/models/components/countwebhooksresponse.ts +37 -0
  209. package/src/models/components/createwebhookrequest.ts +100 -0
  210. package/src/models/components/deletewebhookresponse.ts +34 -0
  211. package/src/models/components/evaluatorresponsefunction.ts +2 -2
  212. package/src/models/components/evaluatorresponsehttp.ts +2 -2
  213. package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
  214. package/src/models/components/evaluatorresponsellm.ts +2 -2
  215. package/src/models/components/evaluatorresponsepython.ts +2 -2
  216. package/src/models/components/evaluatorresponseragas.ts +2 -2
  217. package/src/models/components/evaluatorresponsetypescript.ts +2 -2
  218. package/src/models/components/generatewebhooksecretresponse.ts +37 -0
  219. package/src/models/components/index.ts +10 -0
  220. package/src/models/components/listwebhooksresponse.ts +53 -0
  221. package/src/models/components/queryparamspagination.ts +40 -0
  222. package/src/models/components/queryparamssort.ts +32 -0
  223. package/src/models/components/querywebhooksrequest.ts +85 -0
  224. package/src/models/components/querywebhooksresponse.ts +34 -0
  225. package/src/models/components/reasoningpart.ts +1 -1
  226. package/src/models/components/webhook.ts +116 -0
  227. package/src/models/operations/createagentrequest.ts +2 -2
  228. package/src/models/operations/createdataset.ts +1 -1
  229. package/src/models/operations/createdatasetitem.ts +237 -19
  230. package/src/models/operations/createdatasource.ts +78 -2
  231. package/src/models/operations/createrouterresponse.ts +41 -5
  232. package/src/models/operations/createtool.ts +6 -6
  233. package/src/models/operations/getalltools.ts +6 -6
  234. package/src/models/operations/getv2humanevalsets.ts +2 -2
  235. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  236. package/src/models/operations/index.ts +4 -0
  237. package/src/models/operations/listagents.ts +2 -2
  238. package/src/models/operations/listdatasetdatapoints.ts +313 -84
  239. package/src/models/operations/listdatasets.ts +1 -1
  240. package/src/models/operations/listdatasources.ts +99 -2
  241. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  242. package/src/models/operations/postv2feedbackevaluation.ts +119 -11
  243. package/src/models/operations/postv2humanevalsets.ts +2 -2
  244. package/src/models/operations/retrieveagentrequest.ts +2 -2
  245. package/src/models/operations/retrievedatapoint.ts +234 -9
  246. package/src/models/operations/retrievedataset.ts +1 -1
  247. package/src/models/operations/retrievedatasource.ts +72 -2
  248. package/src/models/operations/retrieveresponse.ts +8 -8
  249. package/src/models/operations/retrievetool.ts +6 -6
  250. package/src/models/operations/runagent.ts +1 -1
  251. package/src/models/operations/streamrunagent.ts +1 -1
  252. package/src/models/operations/updateagent.ts +2 -2
  253. package/src/models/operations/updatedatapoint.ts +229 -9
  254. package/src/models/operations/updatedataset.ts +1 -1
  255. package/src/models/operations/updatedatasource.ts +72 -2
  256. package/src/models/operations/updatetool.ts +7 -7
  257. package/src/models/operations/webhookdelete.ts +31 -0
  258. package/src/models/operations/webhookget.ts +31 -0
  259. package/src/models/operations/webhooklist.ts +101 -0
  260. package/src/models/operations/webhookupdate.ts +84 -0
  261. package/src/sdk/feedback.ts +4 -1
  262. package/src/sdk/sdk.ts +6 -0
  263. package/src/sdk/webhooks.ts +152 -0
@@ -0,0 +1,85 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import {
7
+ QueryParamsPagination,
8
+ QueryParamsPagination$Outbound,
9
+ QueryParamsPagination$outboundSchema,
10
+ } from "./queryparamspagination.js";
11
+ import {
12
+ QueryParamsSort,
13
+ QueryParamsSort$Outbound,
14
+ QueryParamsSort$outboundSchema,
15
+ } from "./queryparamssort.js";
16
+
17
+ export type Query = {};
18
+
19
+ export type Filters = {};
20
+
21
+ export type QueryWebhooksRequest = {
22
+ pagination?: QueryParamsPagination | undefined;
23
+ sortingProps?: Array<QueryParamsSort> | undefined;
24
+ query?: Query | undefined;
25
+ filters?: Array<Filters> | undefined;
26
+ includedFields?: { [k: string]: string } | undefined;
27
+ };
28
+
29
+ /** @internal */
30
+ export type Query$Outbound = {};
31
+
32
+ /** @internal */
33
+ export const Query$outboundSchema: z.ZodType<
34
+ Query$Outbound,
35
+ z.ZodTypeDef,
36
+ Query
37
+ > = z.object({});
38
+
39
+ export function queryToJSON(query: Query): string {
40
+ return JSON.stringify(Query$outboundSchema.parse(query));
41
+ }
42
+
43
+ /** @internal */
44
+ export type Filters$Outbound = {};
45
+
46
+ /** @internal */
47
+ export const Filters$outboundSchema: z.ZodType<
48
+ Filters$Outbound,
49
+ z.ZodTypeDef,
50
+ Filters
51
+ > = z.object({});
52
+
53
+ export function filtersToJSON(filters: Filters): string {
54
+ return JSON.stringify(Filters$outboundSchema.parse(filters));
55
+ }
56
+
57
+ /** @internal */
58
+ export type QueryWebhooksRequest$Outbound = {
59
+ pagination?: QueryParamsPagination$Outbound | undefined;
60
+ sortingProps?: Array<QueryParamsSort$Outbound> | undefined;
61
+ query?: Query$Outbound | undefined;
62
+ filters?: Array<Filters$Outbound> | undefined;
63
+ includedFields?: { [k: string]: string } | undefined;
64
+ };
65
+
66
+ /** @internal */
67
+ export const QueryWebhooksRequest$outboundSchema: z.ZodType<
68
+ QueryWebhooksRequest$Outbound,
69
+ z.ZodTypeDef,
70
+ QueryWebhooksRequest
71
+ > = z.object({
72
+ pagination: QueryParamsPagination$outboundSchema.optional(),
73
+ sortingProps: z.array(QueryParamsSort$outboundSchema).optional(),
74
+ query: z.lazy(() => Query$outboundSchema).optional(),
75
+ filters: z.array(z.lazy(() => Filters$outboundSchema)).optional(),
76
+ includedFields: z.record(z.string()).optional(),
77
+ });
78
+
79
+ export function queryWebhooksRequestToJSON(
80
+ queryWebhooksRequest: QueryWebhooksRequest,
81
+ ): string {
82
+ return JSON.stringify(
83
+ QueryWebhooksRequest$outboundSchema.parse(queryWebhooksRequest),
84
+ );
85
+ }
@@ -0,0 +1,34 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import { Webhook, Webhook$inboundSchema } from "./webhook.js";
10
+
11
+ export type QueryWebhooksResponse = {
12
+ count: number;
13
+ items: Array<Webhook>;
14
+ };
15
+
16
+ /** @internal */
17
+ export const QueryWebhooksResponse$inboundSchema: z.ZodType<
18
+ QueryWebhooksResponse,
19
+ z.ZodTypeDef,
20
+ unknown
21
+ > = z.object({
22
+ count: z.number().int(),
23
+ items: z.array(Webhook$inboundSchema),
24
+ });
25
+
26
+ export function queryWebhooksResponseFromJSON(
27
+ jsonString: string,
28
+ ): SafeParseResult<QueryWebhooksResponse, SDKValidationError> {
29
+ return safeParse(
30
+ jsonString,
31
+ (x) => QueryWebhooksResponse$inboundSchema.parse(JSON.parse(x)),
32
+ `Failed to parse 'QueryWebhooksResponse' from JSON`,
33
+ );
34
+ }
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
40
40
  z.ZodTypeDef,
41
41
  unknown
42
42
  > = z.object({
43
- _id: z.string().default("reasoning_01kxn3vrhfm6j5ak37q23dgr70"),
43
+ _id: z.string().default("reasoning_01kxpyt7qhyapwtw2fkwb76wt6"),
44
44
  metadata: z.record(z.any()).optional(),
45
45
  kind: z.literal("reasoning"),
46
46
  reasoning: z.string(),
@@ -0,0 +1,116 @@
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 { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ /**
13
+ * Content type sent with webhook deliveries.
14
+ */
15
+ export const ContentType = {
16
+ ApplicationJson: "application/json",
17
+ ApplicationXWwwFormUrlencoded: "application/x-www-form-urlencoded",
18
+ } as const;
19
+ /**
20
+ * Content type sent with webhook deliveries.
21
+ */
22
+ export type ContentType = ClosedEnum<typeof ContentType>;
23
+
24
+ /**
25
+ * A webhook subscription and its delivery configuration. Responses include the signing secret; treat it as sensitive.
26
+ */
27
+ export type Webhook = {
28
+ /**
29
+ * Unique webhook ID.
30
+ */
31
+ id: string;
32
+ /**
33
+ * HTTPS endpoint that receives webhook deliveries.
34
+ */
35
+ url: string;
36
+ /**
37
+ * Content type sent with webhook deliveries.
38
+ */
39
+ contentType: ContentType;
40
+ /**
41
+ * Human-readable webhook name.
42
+ */
43
+ displayName: string;
44
+ /**
45
+ * Workspace event slugs that trigger a delivery, for example `deployment.invoked` or `llm.response`.
46
+ */
47
+ events: Array<string>;
48
+ /**
49
+ * Signing secret used to verify webhook delivery signatures. Treat this value as sensitive.
50
+ */
51
+ secret: string;
52
+ /**
53
+ * Whether webhook deliveries are enabled.
54
+ */
55
+ enabled?: boolean | undefined;
56
+ /**
57
+ * Server-managed number of consecutive delivery failures.
58
+ */
59
+ failureCount?: number | undefined;
60
+ /**
61
+ * Account ID that created the webhook.
62
+ */
63
+ createdById: string;
64
+ /**
65
+ * Account ID that most recently updated the webhook.
66
+ */
67
+ updatedById: string;
68
+ /**
69
+ * Creation time in RFC 3339 format.
70
+ */
71
+ created: Date;
72
+ /**
73
+ * Most recent update time in RFC 3339 format.
74
+ */
75
+ updated: Date;
76
+ };
77
+
78
+ /** @internal */
79
+ export const ContentType$inboundSchema: z.ZodNativeEnum<typeof ContentType> = z
80
+ .nativeEnum(ContentType);
81
+
82
+ /** @internal */
83
+ export const Webhook$inboundSchema: z.ZodType<Webhook, z.ZodTypeDef, unknown> =
84
+ z.object({
85
+ _id: z.string(),
86
+ url: z.string(),
87
+ content_type: ContentType$inboundSchema,
88
+ display_name: z.string(),
89
+ events: z.array(z.string()),
90
+ secret: z.string(),
91
+ enabled: z.boolean().optional(),
92
+ failure_count: z.number().int().optional(),
93
+ created_by_id: z.string(),
94
+ updated_by_id: z.string(),
95
+ created: z.string().datetime({ offset: true }).transform(v => new Date(v)),
96
+ updated: z.string().datetime({ offset: true }).transform(v => new Date(v)),
97
+ }).transform((v) => {
98
+ return remap$(v, {
99
+ "_id": "id",
100
+ "content_type": "contentType",
101
+ "display_name": "displayName",
102
+ "failure_count": "failureCount",
103
+ "created_by_id": "createdById",
104
+ "updated_by_id": "updatedById",
105
+ });
106
+ });
107
+
108
+ export function webhookFromJSON(
109
+ jsonString: string,
110
+ ): SafeParseResult<Webhook, SDKValidationError> {
111
+ return safeParse(
112
+ jsonString,
113
+ (x) => Webhook$inboundSchema.parse(JSON.parse(x)),
114
+ `Failed to parse 'Webhook' from JSON`,
115
+ );
116
+ }
@@ -2997,7 +2997,7 @@ export type CreateAgentRequestResponseBody = {
2997
2997
  /**
2998
2998
  * 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.
2999
2999
  */
3000
- skills: Array<string>;
3000
+ skills?: Array<string> | undefined;
3001
3001
  metrics?: Metrics | undefined;
3002
3002
  /**
3003
3003
  * Extracted variables from agent instructions
@@ -7155,7 +7155,7 @@ export const CreateAgentRequestResponseBody$inboundSchema: z.ZodType<
7155
7155
  team_of_agents: z.array(
7156
7156
  z.lazy(() => CreateAgentRequestTeamOfAgents$inboundSchema),
7157
7157
  ).optional(),
7158
- skills: z.array(z.string()),
7158
+ skills: z.array(z.string()).optional(),
7159
7159
  metrics: z.lazy(() => Metrics$inboundSchema).optional(),
7160
7160
  variables: z.record(z.any()).optional(),
7161
7161
  knowledge_bases: z.array(
@@ -138,7 +138,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
138
138
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
139
139
  .optional(),
140
140
  updated: z.string().datetime({ offset: true }).default(
141
- "2026-07-16T09:24:08.283Z",
141
+ "2026-07-17T02:34:22.765Z",
142
142
  ).transform(v => new Date(v)),
143
143
  }).transform((v) => {
144
144
  return remap$(v, {
@@ -746,6 +746,119 @@ export type CreateDatasetItemDatasetsMessages =
746
746
  | CreateDatasetItemMessagesDatasetsAssistantMessage
747
747
  | CreateDatasetItemMessagesDatasetsToolMessage;
748
748
 
749
+ /**
750
+ * The type of evaluation
751
+ */
752
+ export const CreateDatasetItemEvaluationsDatasetsEvaluationType = {
753
+ HumanReview: "human_review",
754
+ } as const;
755
+ /**
756
+ * The type of evaluation
757
+ */
758
+ export type CreateDatasetItemEvaluationsDatasetsEvaluationType = ClosedEnum<
759
+ typeof CreateDatasetItemEvaluationsDatasetsEvaluationType
760
+ >;
761
+
762
+ export const CreateDatasetItemEvaluationsDatasetsResponseSource = {
763
+ Orq: "orq",
764
+ External: "external",
765
+ } as const;
766
+ export type CreateDatasetItemEvaluationsDatasetsResponseSource = ClosedEnum<
767
+ typeof CreateDatasetItemEvaluationsDatasetsResponseSource
768
+ >;
769
+
770
+ /**
771
+ * The kind of annotator that produced the evaluation
772
+ */
773
+ export const CreateDatasetItemEvaluationsDatasetsResponseKind = {
774
+ Llm: "llm",
775
+ Code: "code",
776
+ Human: "human",
777
+ Automation: "automation",
778
+ } as const;
779
+ /**
780
+ * The kind of annotator that produced the evaluation
781
+ */
782
+ export type CreateDatasetItemEvaluationsDatasetsResponseKind = ClosedEnum<
783
+ typeof CreateDatasetItemEvaluationsDatasetsResponseKind
784
+ >;
785
+
786
+ /**
787
+ * The annotator that produced this evaluation. Optional during the dual-write deprecation window.
788
+ */
789
+ export type CreateDatasetItemEvaluationsDatasetsAnnotator = {
790
+ /**
791
+ * The kind of annotator that produced the evaluation
792
+ */
793
+ kind: CreateDatasetItemEvaluationsDatasetsResponseKind;
794
+ /**
795
+ * Who/what produced this annotation. User/contact id for human, evaluator eval span id for llm/code, automation rule id for automation.
796
+ */
797
+ actorId: string;
798
+ };
799
+
800
+ /**
801
+ * The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
802
+ */
803
+ export const CreateDatasetItemEvaluationsDatasetsOutputSchema = {
804
+ Boolean: "boolean",
805
+ Number: "number",
806
+ Categorical: "categorical",
807
+ String: "string",
808
+ } as const;
809
+ /**
810
+ * The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
811
+ */
812
+ export type CreateDatasetItemEvaluationsDatasetsOutputSchema = ClosedEnum<
813
+ typeof CreateDatasetItemEvaluationsDatasetsOutputSchema
814
+ >;
815
+
816
+ export type Evaluations4 = {
817
+ /**
818
+ * The unique identifier of the human evaluation
819
+ */
820
+ id: string;
821
+ /**
822
+ * The type of evaluation
823
+ */
824
+ evaluationType: CreateDatasetItemEvaluationsDatasetsEvaluationType;
825
+ /**
826
+ * The unique identifier of the human review. Omitted on corrections, which inherit the parent evaluator output schema.
827
+ */
828
+ humanReviewId?: string | undefined;
829
+ source: CreateDatasetItemEvaluationsDatasetsResponseSource;
830
+ /**
831
+ * The annotator that produced this evaluation. Optional during the dual-write deprecation window.
832
+ */
833
+ annotator?: CreateDatasetItemEvaluationsDatasetsAnnotator | undefined;
834
+ /**
835
+ * The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
836
+ */
837
+ outputSchema?: CreateDatasetItemEvaluationsDatasetsOutputSchema | undefined;
838
+ /**
839
+ * When present, references the id of the annotation this entry corrects. Presence of this field marks the entry as a correction.
840
+ */
841
+ parentAnnotationId?: string | undefined;
842
+ /**
843
+ * Optional free-text explanation of the value
844
+ */
845
+ explanation?: string | undefined;
846
+ /**
847
+ * Deprecated: use annotator.actor_id. The unique identifier of the user who reviewed the item.
848
+ *
849
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
850
+ */
851
+ reviewedById: string;
852
+ /**
853
+ * Deprecated. The date and time the item was reviewed
854
+ *
855
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
856
+ */
857
+ reviewedAt: Date;
858
+ type: "string_array";
859
+ values: Array<string>;
860
+ };
861
+
749
862
  /**
750
863
  * The type of evaluation
751
864
  */
@@ -855,8 +968,8 @@ export type Evaluations3 = {
855
968
  * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
856
969
  */
857
970
  reviewedAt: Date;
858
- type: "string_array";
859
- values: Array<string>;
971
+ type: "boolean";
972
+ value: boolean;
860
973
  };
861
974
 
862
975
  /**
@@ -975,15 +1088,14 @@ export type Evaluations2 = {
975
1088
  /**
976
1089
  * The type of evaluation
977
1090
  */
978
- export const CreateDatasetItemEvaluationsDatasetsEvaluationType = {
1091
+ export const CreateDatasetItemEvaluationsDatasetsResponseEvaluationType = {
979
1092
  HumanReview: "human_review",
980
1093
  } as const;
981
1094
  /**
982
1095
  * The type of evaluation
983
1096
  */
984
- export type CreateDatasetItemEvaluationsDatasetsEvaluationType = ClosedEnum<
985
- typeof CreateDatasetItemEvaluationsDatasetsEvaluationType
986
- >;
1097
+ export type CreateDatasetItemEvaluationsDatasetsResponseEvaluationType =
1098
+ ClosedEnum<typeof CreateDatasetItemEvaluationsDatasetsResponseEvaluationType>;
987
1099
 
988
1100
  export const EvaluationsSource = {
989
1101
  Orq: "orq",
@@ -1041,7 +1153,7 @@ export type Evaluations1 = {
1041
1153
  /**
1042
1154
  * The type of evaluation
1043
1155
  */
1044
- evaluationType: CreateDatasetItemEvaluationsDatasetsEvaluationType;
1156
+ evaluationType: CreateDatasetItemEvaluationsDatasetsResponseEvaluationType;
1045
1157
  /**
1046
1158
  * The unique identifier of the human review. Omitted on corrections, which inherit the parent evaluator output schema.
1047
1159
  */
@@ -1079,7 +1191,11 @@ export type Evaluations1 = {
1079
1191
  value: string;
1080
1192
  };
1081
1193
 
1082
- export type Evaluations = Evaluations1 | Evaluations2 | Evaluations3;
1194
+ export type Evaluations =
1195
+ | Evaluations1
1196
+ | Evaluations2
1197
+ | Evaluations3
1198
+ | Evaluations4;
1083
1199
 
1084
1200
  export type CreateDatasetItemResponseBody = {
1085
1201
  /**
@@ -1110,7 +1226,9 @@ export type CreateDatasetItemResponseBody = {
1110
1226
  /**
1111
1227
  * Evaluations associated with the datapoint
1112
1228
  */
1113
- evaluations?: Array<Evaluations1 | Evaluations2 | Evaluations3> | undefined;
1229
+ evaluations?:
1230
+ | Array<Evaluations1 | Evaluations2 | Evaluations3 | Evaluations4>
1231
+ | undefined;
1114
1232
  /**
1115
1233
  * The unique identifier of the dataset
1116
1234
  */
@@ -2542,6 +2660,103 @@ export function createDatasetItemDatasetsMessagesFromJSON(
2542
2660
  );
2543
2661
  }
2544
2662
 
2663
+ /** @internal */
2664
+ export const CreateDatasetItemEvaluationsDatasetsEvaluationType$inboundSchema:
2665
+ z.ZodNativeEnum<typeof CreateDatasetItemEvaluationsDatasetsEvaluationType> = z
2666
+ .nativeEnum(CreateDatasetItemEvaluationsDatasetsEvaluationType);
2667
+
2668
+ /** @internal */
2669
+ export const CreateDatasetItemEvaluationsDatasetsResponseSource$inboundSchema:
2670
+ z.ZodNativeEnum<typeof CreateDatasetItemEvaluationsDatasetsResponseSource> = z
2671
+ .nativeEnum(CreateDatasetItemEvaluationsDatasetsResponseSource);
2672
+
2673
+ /** @internal */
2674
+ export const CreateDatasetItemEvaluationsDatasetsResponseKind$inboundSchema:
2675
+ z.ZodNativeEnum<typeof CreateDatasetItemEvaluationsDatasetsResponseKind> = z
2676
+ .nativeEnum(CreateDatasetItemEvaluationsDatasetsResponseKind);
2677
+
2678
+ /** @internal */
2679
+ export const CreateDatasetItemEvaluationsDatasetsAnnotator$inboundSchema:
2680
+ z.ZodType<
2681
+ CreateDatasetItemEvaluationsDatasetsAnnotator,
2682
+ z.ZodTypeDef,
2683
+ unknown
2684
+ > = z.object({
2685
+ kind: CreateDatasetItemEvaluationsDatasetsResponseKind$inboundSchema,
2686
+ actor_id: z.string(),
2687
+ }).transform((v) => {
2688
+ return remap$(v, {
2689
+ "actor_id": "actorId",
2690
+ });
2691
+ });
2692
+
2693
+ export function createDatasetItemEvaluationsDatasetsAnnotatorFromJSON(
2694
+ jsonString: string,
2695
+ ): SafeParseResult<
2696
+ CreateDatasetItemEvaluationsDatasetsAnnotator,
2697
+ SDKValidationError
2698
+ > {
2699
+ return safeParse(
2700
+ jsonString,
2701
+ (x) =>
2702
+ CreateDatasetItemEvaluationsDatasetsAnnotator$inboundSchema.parse(
2703
+ JSON.parse(x),
2704
+ ),
2705
+ `Failed to parse 'CreateDatasetItemEvaluationsDatasetsAnnotator' from JSON`,
2706
+ );
2707
+ }
2708
+
2709
+ /** @internal */
2710
+ export const CreateDatasetItemEvaluationsDatasetsOutputSchema$inboundSchema:
2711
+ z.ZodNativeEnum<typeof CreateDatasetItemEvaluationsDatasetsOutputSchema> = z
2712
+ .nativeEnum(CreateDatasetItemEvaluationsDatasetsOutputSchema);
2713
+
2714
+ /** @internal */
2715
+ export const Evaluations4$inboundSchema: z.ZodType<
2716
+ Evaluations4,
2717
+ z.ZodTypeDef,
2718
+ unknown
2719
+ > = z.object({
2720
+ id: z.string(),
2721
+ evaluation_type:
2722
+ CreateDatasetItemEvaluationsDatasetsEvaluationType$inboundSchema,
2723
+ human_review_id: z.string().optional(),
2724
+ source: CreateDatasetItemEvaluationsDatasetsResponseSource$inboundSchema
2725
+ .default("orq"),
2726
+ annotator: z.lazy(() =>
2727
+ CreateDatasetItemEvaluationsDatasetsAnnotator$inboundSchema
2728
+ ).optional(),
2729
+ output_schema: CreateDatasetItemEvaluationsDatasetsOutputSchema$inboundSchema
2730
+ .optional(),
2731
+ parent_annotation_id: z.string().optional(),
2732
+ explanation: z.string().optional(),
2733
+ reviewed_by_id: z.string(),
2734
+ reviewed_at: z.string().datetime({ offset: true }).default(
2735
+ "2026-07-17T02:34:44.968Z",
2736
+ ).transform(v => new Date(v)),
2737
+ type: z.literal("string_array"),
2738
+ values: z.array(z.string()),
2739
+ }).transform((v) => {
2740
+ return remap$(v, {
2741
+ "evaluation_type": "evaluationType",
2742
+ "human_review_id": "humanReviewId",
2743
+ "output_schema": "outputSchema",
2744
+ "parent_annotation_id": "parentAnnotationId",
2745
+ "reviewed_by_id": "reviewedById",
2746
+ "reviewed_at": "reviewedAt",
2747
+ });
2748
+ });
2749
+
2750
+ export function evaluations4FromJSON(
2751
+ jsonString: string,
2752
+ ): SafeParseResult<Evaluations4, SDKValidationError> {
2753
+ return safeParse(
2754
+ jsonString,
2755
+ (x) => Evaluations4$inboundSchema.parse(JSON.parse(x)),
2756
+ `Failed to parse 'Evaluations4' from JSON`,
2757
+ );
2758
+ }
2759
+
2545
2760
  /** @internal */
2546
2761
  export const CreateDatasetItemEvaluationsEvaluationType$inboundSchema:
2547
2762
  z.ZodNativeEnum<typeof CreateDatasetItemEvaluationsEvaluationType> = z
@@ -2607,10 +2822,10 @@ export const Evaluations3$inboundSchema: z.ZodType<
2607
2822
  explanation: z.string().optional(),
2608
2823
  reviewed_by_id: z.string(),
2609
2824
  reviewed_at: z.string().datetime({ offset: true }).default(
2610
- "2026-07-16T09:24:29.163Z",
2825
+ "2026-07-17T02:34:44.967Z",
2611
2826
  ).transform(v => new Date(v)),
2612
- type: z.literal("string_array"),
2613
- values: z.array(z.string()),
2827
+ type: z.literal("boolean"),
2828
+ value: z.boolean(),
2614
2829
  }).transform((v) => {
2615
2830
  return remap$(v, {
2616
2831
  "evaluation_type": "evaluationType",
@@ -2692,7 +2907,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
2692
2907
  explanation: z.string().optional(),
2693
2908
  reviewed_by_id: z.string(),
2694
2909
  reviewed_at: z.string().datetime({ offset: true }).default(
2695
- "2026-07-16T09:24:29.161Z",
2910
+ "2026-07-17T02:34:44.966Z",
2696
2911
  ).transform(v => new Date(v)),
2697
2912
  type: z.literal("number"),
2698
2913
  value: z.number(),
@@ -2718,9 +2933,10 @@ export function evaluations2FromJSON(
2718
2933
  }
2719
2934
 
2720
2935
  /** @internal */
2721
- export const CreateDatasetItemEvaluationsDatasetsEvaluationType$inboundSchema:
2722
- z.ZodNativeEnum<typeof CreateDatasetItemEvaluationsDatasetsEvaluationType> = z
2723
- .nativeEnum(CreateDatasetItemEvaluationsDatasetsEvaluationType);
2936
+ export const CreateDatasetItemEvaluationsDatasetsResponseEvaluationType$inboundSchema:
2937
+ z.ZodNativeEnum<
2938
+ typeof CreateDatasetItemEvaluationsDatasetsResponseEvaluationType
2939
+ > = z.nativeEnum(CreateDatasetItemEvaluationsDatasetsResponseEvaluationType);
2724
2940
 
2725
2941
  /** @internal */
2726
2942
  export const EvaluationsSource$inboundSchema: z.ZodNativeEnum<
@@ -2768,7 +2984,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
2768
2984
  > = z.object({
2769
2985
  id: z.string(),
2770
2986
  evaluation_type:
2771
- CreateDatasetItemEvaluationsDatasetsEvaluationType$inboundSchema,
2987
+ CreateDatasetItemEvaluationsDatasetsResponseEvaluationType$inboundSchema,
2772
2988
  human_review_id: z.string().optional(),
2773
2989
  source: EvaluationsSource$inboundSchema.default("orq"),
2774
2990
  annotator: z.lazy(() => Annotator$inboundSchema).optional(),
@@ -2777,7 +2993,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
2777
2993
  explanation: z.string().optional(),
2778
2994
  reviewed_by_id: z.string(),
2779
2995
  reviewed_at: z.string().datetime({ offset: true }).default(
2780
- "2026-07-16T09:24:29.160Z",
2996
+ "2026-07-17T02:34:44.965Z",
2781
2997
  ).transform(v => new Date(v)),
2782
2998
  type: z.literal("string"),
2783
2999
  value: z.string(),
@@ -2811,6 +3027,7 @@ export const Evaluations$inboundSchema: z.ZodType<
2811
3027
  z.lazy(() => Evaluations1$inboundSchema),
2812
3028
  z.lazy(() => Evaluations2$inboundSchema),
2813
3029
  z.lazy(() => Evaluations3$inboundSchema),
3030
+ z.lazy(() => Evaluations4$inboundSchema),
2814
3031
  ]);
2815
3032
 
2816
3033
  export function evaluationsFromJSON(
@@ -2853,6 +3070,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
2853
3070
  z.lazy(() => Evaluations1$inboundSchema),
2854
3071
  z.lazy(() => Evaluations2$inboundSchema),
2855
3072
  z.lazy(() => Evaluations3$inboundSchema),
3073
+ z.lazy(() => Evaluations4$inboundSchema),
2856
3074
  ]),
2857
3075
  ).optional(),
2858
3076
  dataset_id: z.string(),
@@ -2862,7 +3080,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
2862
3080
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2863
3081
  .optional(),
2864
3082
  updated: z.string().datetime({ offset: true }).default(
2865
- "2026-07-16T09:24:08.283Z",
3083
+ "2026-07-17T02:34:22.765Z",
2866
3084
  ).transform(v => new Date(v)),
2867
3085
  }).transform((v) => {
2868
3086
  return remap$(v, {