@orq-ai/node 4.12.0-rc.50 → 4.12.0-rc.52

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 (131) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +2 -2
  3. package/lib/config.js +2 -2
  4. package/models/components/agenttoolinputcrud.d.ts +413 -0
  5. package/models/components/agenttoolinputcrud.d.ts.map +1 -0
  6. package/models/components/agenttoolinputcrud.js +287 -0
  7. package/models/components/agenttoolinputcrud.js.map +1 -0
  8. package/models/components/codetoolinput.d.ts +38 -0
  9. package/models/components/codetoolinput.d.ts.map +1 -0
  10. package/models/components/codetoolinput.js +58 -0
  11. package/models/components/codetoolinput.js.map +1 -0
  12. package/models/components/evaluatorresponsefunction.js +2 -2
  13. package/models/components/evaluatorresponsehttp.js +2 -2
  14. package/models/components/evaluatorresponsejsonschema.js +2 -2
  15. package/models/components/evaluatorresponsellm.js +2 -2
  16. package/models/components/evaluatorresponsepython.js +2 -2
  17. package/models/components/evaluatorresponseragas.js +2 -2
  18. package/models/components/evaluatorresponsetypescript.js +2 -2
  19. package/models/components/functiontoolinput.d.ts +33 -0
  20. package/models/components/functiontoolinput.d.ts.map +1 -0
  21. package/models/components/functiontoolinput.js +57 -0
  22. package/models/components/functiontoolinput.js.map +1 -0
  23. package/models/components/httptoolinput.d.ts +38 -0
  24. package/models/components/httptoolinput.d.ts.map +1 -0
  25. package/models/components/httptoolinput.js +58 -0
  26. package/models/components/httptoolinput.js.map +1 -0
  27. package/models/components/index.d.ts +7 -0
  28. package/models/components/index.d.ts.map +1 -1
  29. package/models/components/index.js +7 -0
  30. package/models/components/index.js.map +1 -1
  31. package/models/components/jsonschematoolinput.d.ts +33 -0
  32. package/models/components/jsonschematoolinput.d.ts.map +1 -0
  33. package/models/components/jsonschematoolinput.js +57 -0
  34. package/models/components/jsonschematoolinput.js.map +1 -0
  35. package/models/components/mcptoolinput.d.ts +38 -0
  36. package/models/components/mcptoolinput.d.ts.map +1 -0
  37. package/models/components/mcptoolinput.js +59 -0
  38. package/models/components/mcptoolinput.js.map +1 -0
  39. package/models/components/providertoolinput.d.ts +47 -0
  40. package/models/components/providertoolinput.d.ts.map +1 -0
  41. package/models/components/providertoolinput.js +59 -0
  42. package/models/components/providertoolinput.js.map +1 -0
  43. package/models/components/reasoningpart.js +1 -1
  44. package/models/operations/createagentrequest.d.ts +2 -677
  45. package/models/operations/createagentrequest.d.ts.map +1 -1
  46. package/models/operations/createagentrequest.js +6 -421
  47. package/models/operations/createagentrequest.js.map +1 -1
  48. package/models/operations/createdataset.js +1 -1
  49. package/models/operations/createdatasetitem.js +5 -5
  50. package/models/operations/createdatasource.js +1 -1
  51. package/models/operations/createrouterresponse.d.ts +8 -8
  52. package/models/operations/createrouterresponse.d.ts.map +1 -1
  53. package/models/operations/createrouterresponse.js +7 -7
  54. package/models/operations/createrouterresponse.js.map +1 -1
  55. package/models/operations/createtool.d.ts +18 -18
  56. package/models/operations/createtool.d.ts.map +1 -1
  57. package/models/operations/createtool.js +28 -28
  58. package/models/operations/createtool.js.map +1 -1
  59. package/models/operations/getalltools.js +6 -6
  60. package/models/operations/getv2humanevalsets.js +2 -2
  61. package/models/operations/getv2humanevalsetsid.js +2 -2
  62. package/models/operations/listdatasetdatapoints.js +5 -5
  63. package/models/operations/listdatasets.js +1 -1
  64. package/models/operations/listdatasources.js +1 -1
  65. package/models/operations/patchv2humanevalsetsid.js +2 -2
  66. package/models/operations/postv2feedbackevaluation.js +4 -4
  67. package/models/operations/postv2humanevalsets.js +2 -2
  68. package/models/operations/retrievedatapoint.js +5 -5
  69. package/models/operations/retrievedataset.js +1 -1
  70. package/models/operations/retrievedatasource.js +1 -1
  71. package/models/operations/retrievetool.js +6 -6
  72. package/models/operations/runagent.d.ts +52 -52
  73. package/models/operations/runagent.d.ts.map +1 -1
  74. package/models/operations/runagent.js +75 -75
  75. package/models/operations/runagent.js.map +1 -1
  76. package/models/operations/streamrunagent.d.ts +52 -52
  77. package/models/operations/streamrunagent.d.ts.map +1 -1
  78. package/models/operations/streamrunagent.js +75 -78
  79. package/models/operations/streamrunagent.js.map +1 -1
  80. package/models/operations/updateagent.d.ts +2 -677
  81. package/models/operations/updateagent.d.ts.map +1 -1
  82. package/models/operations/updateagent.js +6 -421
  83. package/models/operations/updateagent.js.map +1 -1
  84. package/models/operations/updatedatapoint.js +5 -5
  85. package/models/operations/updatedataset.js +1 -1
  86. package/models/operations/updatedatasource.js +1 -1
  87. package/models/operations/updatetool.js +7 -7
  88. package/package.json +6 -6
  89. package/src/lib/config.ts +2 -2
  90. package/src/models/components/agenttoolinputcrud.ts +747 -0
  91. package/src/models/components/codetoolinput.ts +62 -0
  92. package/src/models/components/evaluatorresponsefunction.ts +2 -2
  93. package/src/models/components/evaluatorresponsehttp.ts +2 -2
  94. package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
  95. package/src/models/components/evaluatorresponsellm.ts +2 -2
  96. package/src/models/components/evaluatorresponsepython.ts +2 -2
  97. package/src/models/components/evaluatorresponseragas.ts +2 -2
  98. package/src/models/components/evaluatorresponsetypescript.ts +2 -2
  99. package/src/models/components/functiontoolinput.ts +60 -0
  100. package/src/models/components/httptoolinput.ts +62 -0
  101. package/src/models/components/index.ts +7 -0
  102. package/src/models/components/jsonschematoolinput.ts +60 -0
  103. package/src/models/components/mcptoolinput.ts +63 -0
  104. package/src/models/components/providertoolinput.ts +72 -0
  105. package/src/models/components/reasoningpart.ts +1 -1
  106. package/src/models/operations/createagentrequest.ts +1606 -2947
  107. package/src/models/operations/createdataset.ts +1 -1
  108. package/src/models/operations/createdatasetitem.ts +5 -5
  109. package/src/models/operations/createdatasource.ts +1 -1
  110. package/src/models/operations/createrouterresponse.ts +13 -13
  111. package/src/models/operations/createtool.ts +47 -61
  112. package/src/models/operations/getalltools.ts +6 -6
  113. package/src/models/operations/getv2humanevalsets.ts +2 -2
  114. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  115. package/src/models/operations/listdatasetdatapoints.ts +5 -5
  116. package/src/models/operations/listdatasets.ts +1 -1
  117. package/src/models/operations/listdatasources.ts +1 -1
  118. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  119. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  120. package/src/models/operations/postv2humanevalsets.ts +2 -2
  121. package/src/models/operations/retrievedatapoint.ts +5 -5
  122. package/src/models/operations/retrievedataset.ts +1 -1
  123. package/src/models/operations/retrievedatasource.ts +1 -1
  124. package/src/models/operations/retrievetool.ts +6 -6
  125. package/src/models/operations/runagent.ts +195 -232
  126. package/src/models/operations/streamrunagent.ts +273 -328
  127. package/src/models/operations/updateagent.ts +1819 -3223
  128. package/src/models/operations/updatedatapoint.ts +5 -5
  129. package/src/models/operations/updatedataset.ts +1 -1
  130. package/src/models/operations/updatedatasource.ts +1 -1
  131. package/src/models/operations/updatetool.ts +7 -7
@@ -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-22T02:07:48.193Z",
141
+ "2026-07-22T10:01:36.519Z",
142
142
  ).transform(v => new Date(v)),
143
143
  }).transform((v) => {
144
144
  return remap$(v, {
@@ -2732,7 +2732,7 @@ export const Evaluations4$inboundSchema: z.ZodType<
2732
2732
  explanation: z.string().optional(),
2733
2733
  reviewed_by_id: z.string(),
2734
2734
  reviewed_at: z.string().datetime({ offset: true }).default(
2735
- "2026-07-22T02:08:27.280Z",
2735
+ "2026-07-22T10:02:02.495Z",
2736
2736
  ).transform(v => new Date(v)),
2737
2737
  type: z.literal("string_array"),
2738
2738
  values: z.array(z.string()),
@@ -2822,7 +2822,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
2822
2822
  explanation: z.string().optional(),
2823
2823
  reviewed_by_id: z.string(),
2824
2824
  reviewed_at: z.string().datetime({ offset: true }).default(
2825
- "2026-07-22T02:08:27.279Z",
2825
+ "2026-07-22T10:02:02.494Z",
2826
2826
  ).transform(v => new Date(v)),
2827
2827
  type: z.literal("boolean"),
2828
2828
  value: z.boolean(),
@@ -2907,7 +2907,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
2907
2907
  explanation: z.string().optional(),
2908
2908
  reviewed_by_id: z.string(),
2909
2909
  reviewed_at: z.string().datetime({ offset: true }).default(
2910
- "2026-07-22T02:08:27.278Z",
2910
+ "2026-07-22T10:02:02.492Z",
2911
2911
  ).transform(v => new Date(v)),
2912
2912
  type: z.literal("number"),
2913
2913
  value: z.number(),
@@ -2993,7 +2993,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
2993
2993
  explanation: z.string().optional(),
2994
2994
  reviewed_by_id: z.string(),
2995
2995
  reviewed_at: z.string().datetime({ offset: true }).default(
2996
- "2026-07-22T02:08:27.277Z",
2996
+ "2026-07-22T10:02:02.491Z",
2997
2997
  ).transform(v => new Date(v)),
2998
2998
  type: z.literal("string"),
2999
2999
  value: z.string(),
@@ -3080,7 +3080,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
3080
3080
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
3081
3081
  .optional(),
3082
3082
  updated: z.string().datetime({ offset: true }).default(
3083
- "2026-07-22T02:07:48.193Z",
3083
+ "2026-07-22T10:01:36.519Z",
3084
3084
  ).transform(v => new Date(v)),
3085
3085
  }).transform((v) => {
3086
3086
  return remap$(v, {
@@ -487,7 +487,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
487
487
  z.ZodTypeDef,
488
488
  unknown
489
489
  > = z.object({
490
- _id: z.string().default("01KY3S9PGDYK9WT8192PCH8CPK"),
490
+ _id: z.string().default("01KY4MCVQVJ1TA3GYJX5078VM9"),
491
491
  display_name: z.string(),
492
492
  description: z.nullable(z.string()).optional(),
493
493
  status: CreateDatasourceStatus$inboundSchema,
@@ -547,7 +547,7 @@ export type AllowedTools = {
547
547
  /**
548
548
  * An MCP (Model Context Protocol) server tool. Provide server_url for inline mode, or key to reference a pre-configured MCP server.
549
549
  */
550
- export type ToolsMCPTool = {
550
+ export type MCPTool = {
551
551
  /**
552
552
  * Filter which tools from the MCP server are exposed.
553
553
  */
@@ -740,7 +740,7 @@ export type CreateRouterResponseTools =
740
740
  | (OrqAiTool & { type: "orq:mcp" })
741
741
  | (OrqAiTool & { type: "orq:http" })
742
742
  | (OrqAiTool & { type: "orq:function" })
743
- | ToolsMCPTool;
743
+ | MCPTool;
744
744
 
745
745
  export type CreateRouterResponseRequestBody = {
746
746
  /**
@@ -852,7 +852,7 @@ export type CreateRouterResponseRequestBody = {
852
852
  | (OrqAiTool & { type: "orq:mcp" })
853
853
  | (OrqAiTool & { type: "orq:http" })
854
854
  | (OrqAiTool & { type: "orq:function" })
855
- | ToolsMCPTool
855
+ | MCPTool
856
856
  >
857
857
  | undefined;
858
858
  /**
@@ -1560,7 +1560,7 @@ export function allowedToolsToJSON(allowedTools: AllowedTools): string {
1560
1560
  }
1561
1561
 
1562
1562
  /** @internal */
1563
- export type ToolsMCPTool$Outbound = {
1563
+ export type MCPTool$Outbound = {
1564
1564
  allowed_tools?: AllowedTools$Outbound | undefined;
1565
1565
  headers?: { [k: string]: string } | undefined;
1566
1566
  key?: string | undefined;
@@ -1570,10 +1570,10 @@ export type ToolsMCPTool$Outbound = {
1570
1570
  };
1571
1571
 
1572
1572
  /** @internal */
1573
- export const ToolsMCPTool$outboundSchema: z.ZodType<
1574
- ToolsMCPTool$Outbound,
1573
+ export const MCPTool$outboundSchema: z.ZodType<
1574
+ MCPTool$Outbound,
1575
1575
  z.ZodTypeDef,
1576
- ToolsMCPTool
1576
+ MCPTool
1577
1577
  > = z.object({
1578
1578
  allowedTools: z.lazy(() => AllowedTools$outboundSchema).optional(),
1579
1579
  headers: z.record(z.string()).optional(),
@@ -1589,8 +1589,8 @@ export const ToolsMCPTool$outboundSchema: z.ZodType<
1589
1589
  });
1590
1590
  });
1591
1591
 
1592
- export function toolsMCPToolToJSON(toolsMCPTool: ToolsMCPTool): string {
1593
- return JSON.stringify(ToolsMCPTool$outboundSchema.parse(toolsMCPTool));
1592
+ export function mcpToolToJSON(mcpTool: MCPTool): string {
1593
+ return JSON.stringify(MCPTool$outboundSchema.parse(mcpTool));
1594
1594
  }
1595
1595
 
1596
1596
  /** @internal */
@@ -1749,7 +1749,7 @@ export type CreateRouterResponseTools$Outbound =
1749
1749
  | (OrqAiTool$Outbound & { type: "orq:mcp" })
1750
1750
  | (OrqAiTool$Outbound & { type: "orq:http" })
1751
1751
  | (OrqAiTool$Outbound & { type: "orq:function" })
1752
- | ToolsMCPTool$Outbound;
1752
+ | MCPTool$Outbound;
1753
1753
 
1754
1754
  /** @internal */
1755
1755
  export const CreateRouterResponseTools$outboundSchema: z.ZodType<
@@ -1779,7 +1779,7 @@ export const CreateRouterResponseTools$outboundSchema: z.ZodType<
1779
1779
  z.lazy(() => OrqAiTool$outboundSchema).and(
1780
1780
  z.object({ type: z.literal("orq:function") }),
1781
1781
  ),
1782
- z.lazy(() => ToolsMCPTool$outboundSchema),
1782
+ z.lazy(() => MCPTool$outboundSchema),
1783
1783
  ]);
1784
1784
 
1785
1785
  export function createRouterResponseToolsToJSON(
@@ -1835,7 +1835,7 @@ export type CreateRouterResponseRequestBody$Outbound = {
1835
1835
  | (OrqAiTool$Outbound & { type: "orq:mcp" })
1836
1836
  | (OrqAiTool$Outbound & { type: "orq:http" })
1837
1837
  | (OrqAiTool$Outbound & { type: "orq:function" })
1838
- | ToolsMCPTool$Outbound
1838
+ | MCPTool$Outbound
1839
1839
  >
1840
1840
  | undefined;
1841
1841
  top_logprobs?: number | undefined;
@@ -1913,7 +1913,7 @@ export const CreateRouterResponseRequestBody$outboundSchema: z.ZodType<
1913
1913
  z.lazy(() =>
1914
1914
  OrqAiTool$outboundSchema
1915
1915
  ).and(z.object({ type: z.literal("orq:function") })),
1916
- z.lazy(() => ToolsMCPTool$outboundSchema),
1916
+ z.lazy(() => MCPTool$outboundSchema),
1917
1917
  ]),
1918
1918
  ).optional(),
1919
1919
  topLogprobs: z.number().int().optional(),
@@ -80,7 +80,7 @@ export type RequestBodyCodeTool = {
80
80
  /**
81
81
  * Executes code snippets in a sandboxed environment, currently supporting Python.
82
82
  */
83
- export type RequestBodyCodeExecutionTool = {
83
+ export type CodeExecutionTool = {
84
84
  /**
85
85
  * Entity storage path.
86
86
  *
@@ -312,7 +312,7 @@ export type RequestBodyHttp = {
312
312
  /**
313
313
  * Executes HTTP requests to interact with external APIs and web services using customizable blueprints.
314
314
  */
315
- export type RequestBodyHTTPTool = {
315
+ export type HTTPTool = {
316
316
  /**
317
317
  * Entity storage path.
318
318
  *
@@ -398,7 +398,7 @@ export type RequestBodyJsonSchema = {
398
398
  /**
399
399
  * A tool that enforces structured output format using JSON Schema for consistent response formatting.
400
400
  */
401
- export type RequestBodyJSONSchemaTool = {
401
+ export type JSONSchemaTool = {
402
402
  /**
403
403
  * Entity storage path.
404
404
  *
@@ -499,7 +499,7 @@ export type RequestBodyFunction = {
499
499
  /**
500
500
  * A custom function tool that allows the model to call predefined functions with structured parameters.
501
501
  */
502
- export type RequestBodyFunctionTool = {
502
+ export type FunctionTool = {
503
503
  /**
504
504
  * Entity storage path.
505
505
  *
@@ -534,11 +534,11 @@ export type RequestBodyFunctionTool = {
534
534
  * The tool to create
535
535
  */
536
536
  export type CreateToolRequestBody =
537
- | RequestBodyFunctionTool
538
- | RequestBodyJSONSchemaTool
539
- | RequestBodyHTTPTool
537
+ | FunctionTool
538
+ | JSONSchemaTool
539
+ | HTTPTool
540
540
  | RequestBodyMCPTool
541
- | RequestBodyCodeExecutionTool;
541
+ | CodeExecutionTool;
542
542
 
543
543
  /**
544
544
  * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
@@ -1236,7 +1236,7 @@ export function requestBodyCodeToolToJSON(
1236
1236
  }
1237
1237
 
1238
1238
  /** @internal */
1239
- export type RequestBodyCodeExecutionTool$Outbound = {
1239
+ export type CodeExecutionTool$Outbound = {
1240
1240
  path: string;
1241
1241
  key: string;
1242
1242
  display_name?: string | undefined;
@@ -1247,10 +1247,10 @@ export type RequestBodyCodeExecutionTool$Outbound = {
1247
1247
  };
1248
1248
 
1249
1249
  /** @internal */
1250
- export const RequestBodyCodeExecutionTool$outboundSchema: z.ZodType<
1251
- RequestBodyCodeExecutionTool$Outbound,
1250
+ export const CodeExecutionTool$outboundSchema: z.ZodType<
1251
+ CodeExecutionTool$Outbound,
1252
1252
  z.ZodTypeDef,
1253
- RequestBodyCodeExecutionTool
1253
+ CodeExecutionTool
1254
1254
  > = z.object({
1255
1255
  path: z.string(),
1256
1256
  key: z.string(),
@@ -1268,13 +1268,11 @@ export const RequestBodyCodeExecutionTool$outboundSchema: z.ZodType<
1268
1268
  });
1269
1269
  });
1270
1270
 
1271
- export function requestBodyCodeExecutionToolToJSON(
1272
- requestBodyCodeExecutionTool: RequestBodyCodeExecutionTool,
1271
+ export function codeExecutionToolToJSON(
1272
+ codeExecutionTool: CodeExecutionTool,
1273
1273
  ): string {
1274
1274
  return JSON.stringify(
1275
- RequestBodyCodeExecutionTool$outboundSchema.parse(
1276
- requestBodyCodeExecutionTool,
1277
- ),
1275
+ CodeExecutionTool$outboundSchema.parse(codeExecutionTool),
1278
1276
  );
1279
1277
  }
1280
1278
 
@@ -1549,7 +1547,7 @@ export function requestBodyHttpToJSON(
1549
1547
  }
1550
1548
 
1551
1549
  /** @internal */
1552
- export type RequestBodyHTTPTool$Outbound = {
1550
+ export type HTTPTool$Outbound = {
1553
1551
  path: string;
1554
1552
  key: string;
1555
1553
  display_name?: string | undefined;
@@ -1560,10 +1558,10 @@ export type RequestBodyHTTPTool$Outbound = {
1560
1558
  };
1561
1559
 
1562
1560
  /** @internal */
1563
- export const RequestBodyHTTPTool$outboundSchema: z.ZodType<
1564
- RequestBodyHTTPTool$Outbound,
1561
+ export const HTTPTool$outboundSchema: z.ZodType<
1562
+ HTTPTool$Outbound,
1565
1563
  z.ZodTypeDef,
1566
- RequestBodyHTTPTool
1564
+ HTTPTool
1567
1565
  > = z.object({
1568
1566
  path: z.string(),
1569
1567
  key: z.string(),
@@ -1578,12 +1576,8 @@ export const RequestBodyHTTPTool$outboundSchema: z.ZodType<
1578
1576
  });
1579
1577
  });
1580
1578
 
1581
- export function requestBodyHTTPToolToJSON(
1582
- requestBodyHTTPTool: RequestBodyHTTPTool,
1583
- ): string {
1584
- return JSON.stringify(
1585
- RequestBodyHTTPTool$outboundSchema.parse(requestBodyHTTPTool),
1586
- );
1579
+ export function httpToolToJSON(httpTool: HTTPTool): string {
1580
+ return JSON.stringify(HTTPTool$outboundSchema.parse(httpTool));
1587
1581
  }
1588
1582
 
1589
1583
  /** @internal */
@@ -1655,7 +1649,7 @@ export function requestBodyJsonSchemaToJSON(
1655
1649
  }
1656
1650
 
1657
1651
  /** @internal */
1658
- export type RequestBodyJSONSchemaTool$Outbound = {
1652
+ export type JSONSchemaTool$Outbound = {
1659
1653
  path: string;
1660
1654
  key: string;
1661
1655
  display_name?: string | undefined;
@@ -1666,10 +1660,10 @@ export type RequestBodyJSONSchemaTool$Outbound = {
1666
1660
  };
1667
1661
 
1668
1662
  /** @internal */
1669
- export const RequestBodyJSONSchemaTool$outboundSchema: z.ZodType<
1670
- RequestBodyJSONSchemaTool$Outbound,
1663
+ export const JSONSchemaTool$outboundSchema: z.ZodType<
1664
+ JSONSchemaTool$Outbound,
1671
1665
  z.ZodTypeDef,
1672
- RequestBodyJSONSchemaTool
1666
+ JSONSchemaTool
1673
1667
  > = z.object({
1674
1668
  path: z.string(),
1675
1669
  key: z.string(),
@@ -1685,12 +1679,8 @@ export const RequestBodyJSONSchemaTool$outboundSchema: z.ZodType<
1685
1679
  });
1686
1680
  });
1687
1681
 
1688
- export function requestBodyJSONSchemaToolToJSON(
1689
- requestBodyJSONSchemaTool: RequestBodyJSONSchemaTool,
1690
- ): string {
1691
- return JSON.stringify(
1692
- RequestBodyJSONSchemaTool$outboundSchema.parse(requestBodyJSONSchemaTool),
1693
- );
1682
+ export function jsonSchemaToolToJSON(jsonSchemaTool: JSONSchemaTool): string {
1683
+ return JSON.stringify(JSONSchemaTool$outboundSchema.parse(jsonSchemaTool));
1694
1684
  }
1695
1685
 
1696
1686
  /** @internal */
@@ -1768,7 +1758,7 @@ export function requestBodyFunctionToJSON(
1768
1758
  }
1769
1759
 
1770
1760
  /** @internal */
1771
- export type RequestBodyFunctionTool$Outbound = {
1761
+ export type FunctionTool$Outbound = {
1772
1762
  path: string;
1773
1763
  key: string;
1774
1764
  display_name?: string | undefined;
@@ -1779,10 +1769,10 @@ export type RequestBodyFunctionTool$Outbound = {
1779
1769
  };
1780
1770
 
1781
1771
  /** @internal */
1782
- export const RequestBodyFunctionTool$outboundSchema: z.ZodType<
1783
- RequestBodyFunctionTool$Outbound,
1772
+ export const FunctionTool$outboundSchema: z.ZodType<
1773
+ FunctionTool$Outbound,
1784
1774
  z.ZodTypeDef,
1785
- RequestBodyFunctionTool
1775
+ FunctionTool
1786
1776
  > = z.object({
1787
1777
  path: z.string(),
1788
1778
  key: z.string(),
@@ -1799,21 +1789,17 @@ export const RequestBodyFunctionTool$outboundSchema: z.ZodType<
1799
1789
  });
1800
1790
  });
1801
1791
 
1802
- export function requestBodyFunctionToolToJSON(
1803
- requestBodyFunctionTool: RequestBodyFunctionTool,
1804
- ): string {
1805
- return JSON.stringify(
1806
- RequestBodyFunctionTool$outboundSchema.parse(requestBodyFunctionTool),
1807
- );
1792
+ export function functionToolToJSON(functionTool: FunctionTool): string {
1793
+ return JSON.stringify(FunctionTool$outboundSchema.parse(functionTool));
1808
1794
  }
1809
1795
 
1810
1796
  /** @internal */
1811
1797
  export type CreateToolRequestBody$Outbound =
1812
- | RequestBodyFunctionTool$Outbound
1813
- | RequestBodyJSONSchemaTool$Outbound
1814
- | RequestBodyHTTPTool$Outbound
1798
+ | FunctionTool$Outbound
1799
+ | JSONSchemaTool$Outbound
1800
+ | HTTPTool$Outbound
1815
1801
  | RequestBodyMCPTool$Outbound
1816
- | RequestBodyCodeExecutionTool$Outbound;
1802
+ | CodeExecutionTool$Outbound;
1817
1803
 
1818
1804
  /** @internal */
1819
1805
  export const CreateToolRequestBody$outboundSchema: z.ZodType<
@@ -1821,11 +1807,11 @@ export const CreateToolRequestBody$outboundSchema: z.ZodType<
1821
1807
  z.ZodTypeDef,
1822
1808
  CreateToolRequestBody
1823
1809
  > = z.union([
1824
- z.lazy(() => RequestBodyFunctionTool$outboundSchema),
1825
- z.lazy(() => RequestBodyJSONSchemaTool$outboundSchema),
1826
- z.lazy(() => RequestBodyHTTPTool$outboundSchema),
1810
+ z.lazy(() => FunctionTool$outboundSchema),
1811
+ z.lazy(() => JSONSchemaTool$outboundSchema),
1812
+ z.lazy(() => HTTPTool$outboundSchema),
1827
1813
  z.lazy(() => RequestBodyMCPTool$outboundSchema),
1828
- z.lazy(() => RequestBodyCodeExecutionTool$outboundSchema),
1814
+ z.lazy(() => CodeExecutionTool$outboundSchema),
1829
1815
  ]);
1830
1816
 
1831
1817
  export function createToolRequestBodyToJSON(
@@ -1906,7 +1892,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
1906
1892
  z.ZodTypeDef,
1907
1893
  unknown
1908
1894
  > = z.object({
1909
- _id: z.string().default("tool_01KY3S9PAAK62CPDDZ8MDK0QYC"),
1895
+ _id: z.string().default("tool_01KY4MCVFXZXA9AY061JGRNWFY"),
1910
1896
  path: z.string(),
1911
1897
  key: z.string(),
1912
1898
  display_name: z.string().optional(),
@@ -2003,7 +1989,7 @@ export const ResponseBodyTools$inboundSchema: z.ZodType<
2003
1989
  z.ZodTypeDef,
2004
1990
  unknown
2005
1991
  > = z.object({
2006
- id: z.string().default("01KY3S9PA9X3X00HCBPQARCWQC"),
1992
+ id: z.string().default("01KY4MCVFWMSZGND8DN0TC6HW1"),
2007
1993
  name: z.string(),
2008
1994
  description: z.string().optional(),
2009
1995
  schema: z.lazy(() => CreateToolResponseBodySchema$inboundSchema),
@@ -2059,7 +2045,7 @@ export const ResponseBodyMCPTool$inboundSchema: z.ZodType<
2059
2045
  z.ZodTypeDef,
2060
2046
  unknown
2061
2047
  > = z.object({
2062
- _id: z.string().default("tool_01KY3S9PA7N26PR02GFY7JD72M"),
2048
+ _id: z.string().default("tool_01KY4MCVFT3YVA3P9FSKMA95YD"),
2063
2049
  path: z.string(),
2064
2050
  key: z.string(),
2065
2051
  display_name: z.string().optional(),
@@ -2246,7 +2232,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
2246
2232
  z.ZodTypeDef,
2247
2233
  unknown
2248
2234
  > = z.object({
2249
- _id: z.string().default("tool_01KY3S9PA3Z5Q764YBCH7AEYBF"),
2235
+ _id: z.string().default("tool_01KY4MCVFPR7TKM9J0QHK7JXG8"),
2250
2236
  path: z.string(),
2251
2237
  key: z.string(),
2252
2238
  display_name: z.string().optional(),
@@ -2339,7 +2325,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
2339
2325
  z.ZodTypeDef,
2340
2326
  unknown
2341
2327
  > = z.object({
2342
- _id: z.string().default("tool_01KY3S9PA1Z4EVEE78MWWYJPKP"),
2328
+ _id: z.string().default("tool_01KY4MCVFK1NE1HM53GKYJ4N4Y"),
2343
2329
  path: z.string(),
2344
2330
  key: z.string(),
2345
2331
  display_name: z.string().optional(),
@@ -2440,7 +2426,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
2440
2426
  z.ZodTypeDef,
2441
2427
  unknown
2442
2428
  > = z.object({
2443
- _id: z.string().default("tool_01KY3S9P9YV4VY0DW5F893Y5EP"),
2429
+ _id: z.string().default("tool_01KY4MCVFGE7JNDWDMKGB5STEQ"),
2444
2430
  path: z.string(),
2445
2431
  key: z.string(),
2446
2432
  display_name: z.string().optional(),
@@ -770,7 +770,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
770
770
  z.ZodTypeDef,
771
771
  unknown
772
772
  > = z.object({
773
- _id: z.string().default("tool_01KY3S9P9A9FBX61D129J2ZFHA"),
773
+ _id: z.string().default("tool_01KY4MCVEWE0QHA6J5MSRH9A94"),
774
774
  path: z.string(),
775
775
  key: z.string(),
776
776
  display_name: z.string().optional(),
@@ -867,7 +867,7 @@ export const DataTools$inboundSchema: z.ZodType<
867
867
  z.ZodTypeDef,
868
868
  unknown
869
869
  > = z.object({
870
- id: z.string().default("01KY3S9P997J1N7MAB3SPP680M"),
870
+ id: z.string().default("01KY4MCVEVMS89FADTP9SNMKW9"),
871
871
  name: z.string(),
872
872
  description: z.string().optional(),
873
873
  schema: z.lazy(() => GetAllToolsDataSchema$inboundSchema),
@@ -920,7 +920,7 @@ export const DataMCPTool$inboundSchema: z.ZodType<
920
920
  z.ZodTypeDef,
921
921
  unknown
922
922
  > = z.object({
923
- _id: z.string().default("tool_01KY3S9P96V2FC9GY4PXJ786ZQ"),
923
+ _id: z.string().default("tool_01KY4MCVES42YF7YBMCCYPJTY7"),
924
924
  path: z.string(),
925
925
  key: z.string(),
926
926
  display_name: z.string().optional(),
@@ -1105,7 +1105,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
1105
1105
  z.ZodTypeDef,
1106
1106
  unknown
1107
1107
  > = z.object({
1108
- _id: z.string().default("tool_01KY3S9P926TKXZ9GY9H7P4C65"),
1108
+ _id: z.string().default("tool_01KY4MCVEN5GKVEJ12DKRHEPQM"),
1109
1109
  path: z.string(),
1110
1110
  key: z.string(),
1111
1111
  display_name: z.string().optional(),
@@ -1198,7 +1198,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
1198
1198
  z.ZodTypeDef,
1199
1199
  unknown
1200
1200
  > = z.object({
1201
- _id: z.string().default("tool_01KY3S9P8Z8WWQ2R0789WBTWZC"),
1201
+ _id: z.string().default("tool_01KY4MCVEJC7YBC49V72HXWF4B"),
1202
1202
  path: z.string(),
1203
1203
  key: z.string(),
1204
1204
  display_name: z.string().optional(),
@@ -1296,7 +1296,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
1296
1296
  z.ZodTypeDef,
1297
1297
  unknown
1298
1298
  > = z.object({
1299
- _id: z.string().default("tool_01KY3S9P8W8Q436V54H5CCVHE9"),
1299
+ _id: z.string().default("tool_01KY4MCVEFV60ENHV8DRJVT3MH"),
1300
1300
  path: z.string(),
1301
1301
  key: z.string(),
1302
1302
  display_name: z.string().optional(),
@@ -140,7 +140,7 @@ export const GetV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
140
140
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
141
141
  .optional(),
142
142
  updated: z.string().datetime({ offset: true }).default(
143
- "2026-07-22T02:07:48.193Z",
143
+ "2026-07-22T10:01:36.519Z",
144
144
  ).transform(v => new Date(v)),
145
145
  filter_type: z.literal("name"),
146
146
  filter_value: z.string(),
@@ -185,7 +185,7 @@ export const GetV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
185
185
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
186
186
  .optional(),
187
187
  updated: z.string().datetime({ offset: true }).default(
188
- "2026-07-22T02:07:48.193Z",
188
+ "2026-07-22T10:01:36.519Z",
189
189
  ).transform(v => new Date(v)),
190
190
  filter_type: z.literal("span_type"),
191
191
  filter_values: z.array(z.string()),
@@ -141,7 +141,7 @@ export const GetV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
141
141
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
142
142
  .optional(),
143
143
  updated: z.string().datetime({ offset: true }).default(
144
- "2026-07-22T02:07:48.193Z",
144
+ "2026-07-22T10:01:36.519Z",
145
145
  ).transform(v => new Date(v)),
146
146
  filter_type: z.literal("name"),
147
147
  filter_value: z.string(),
@@ -186,7 +186,7 @@ export const GetV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
186
186
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
187
187
  .optional(),
188
188
  updated: z.string().datetime({ offset: true }).default(
189
- "2026-07-22T02:07:48.193Z",
189
+ "2026-07-22T10:01:36.519Z",
190
190
  ).transform(v => new Date(v)),
191
191
  filter_type: z.literal("span_type"),
192
192
  filter_values: z.array(z.string()),
@@ -1647,7 +1647,7 @@ export const ListDatasetDatapointsEvaluations4$inboundSchema: z.ZodType<
1647
1647
  explanation: z.string().optional(),
1648
1648
  reviewed_by_id: z.string(),
1649
1649
  reviewed_at: z.string().datetime({ offset: true }).default(
1650
- "2026-07-22T02:08:27.236Z",
1650
+ "2026-07-22T10:02:02.467Z",
1651
1651
  ).transform(v => new Date(v)),
1652
1652
  type: z.literal("string_array"),
1653
1653
  values: z.array(z.string()),
@@ -1743,7 +1743,7 @@ export const ListDatasetDatapointsEvaluations3$inboundSchema: z.ZodType<
1743
1743
  explanation: z.string().optional(),
1744
1744
  reviewed_by_id: z.string(),
1745
1745
  reviewed_at: z.string().datetime({ offset: true }).default(
1746
- "2026-07-22T02:08:27.234Z",
1746
+ "2026-07-22T10:02:02.465Z",
1747
1747
  ).transform(v => new Date(v)),
1748
1748
  type: z.literal("boolean"),
1749
1749
  value: z.boolean(),
@@ -1847,7 +1847,7 @@ export const ListDatasetDatapointsEvaluations2$inboundSchema: z.ZodType<
1847
1847
  explanation: z.string().optional(),
1848
1848
  reviewed_by_id: z.string(),
1849
1849
  reviewed_at: z.string().datetime({ offset: true }).default(
1850
- "2026-07-22T02:08:27.233Z",
1850
+ "2026-07-22T10:02:02.463Z",
1851
1851
  ).transform(v => new Date(v)),
1852
1852
  type: z.literal("number"),
1853
1853
  value: z.number(),
@@ -1953,7 +1953,7 @@ export const ListDatasetDatapointsEvaluations1$inboundSchema: z.ZodType<
1953
1953
  explanation: z.string().optional(),
1954
1954
  reviewed_by_id: z.string(),
1955
1955
  reviewed_at: z.string().datetime({ offset: true }).default(
1956
- "2026-07-22T02:08:27.231Z",
1956
+ "2026-07-22T10:02:02.462Z",
1957
1957
  ).transform(v => new Date(v)),
1958
1958
  type: z.literal("string"),
1959
1959
  value: z.string(),
@@ -2036,7 +2036,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
2036
2036
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2037
2037
  .optional(),
2038
2038
  updated: z.string().datetime({ offset: true }).default(
2039
- "2026-07-22T02:07:48.193Z",
2039
+ "2026-07-22T10:01:36.519Z",
2040
2040
  ).transform(v => new Date(v)),
2041
2041
  }).transform((v) => {
2042
2042
  return remap$(v, {
@@ -169,7 +169,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
169
169
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
170
170
  .optional(),
171
171
  updated: z.string().datetime({ offset: true }).default(
172
- "2026-07-22T02:07:48.193Z",
172
+ "2026-07-22T10:01:36.519Z",
173
173
  ).transform(v => new Date(v)),
174
174
  }).transform((v) => {
175
175
  return remap$(v, {
@@ -278,7 +278,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
278
278
  z.ZodTypeDef,
279
279
  unknown
280
280
  > = z.object({
281
- _id: z.string().default("01KY3S9PG8178RQZ9RAWTGD2YC"),
281
+ _id: z.string().default("01KY4MCVQNZXXV96J2V97BA90E"),
282
282
  display_name: z.string(),
283
283
  description: z.nullable(z.string()).optional(),
284
284
  status: ListDatasourcesStatus$inboundSchema,
@@ -318,7 +318,7 @@ export const PatchV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
318
318
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
319
319
  .optional(),
320
320
  updated: z.string().datetime({ offset: true }).default(
321
- "2026-07-22T02:07:48.193Z",
321
+ "2026-07-22T10:01:36.519Z",
322
322
  ).transform(v => new Date(v)),
323
323
  filter_type: z.literal("name"),
324
324
  filter_value: z.string(),
@@ -364,7 +364,7 @@ export const PatchV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
364
364
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
365
365
  .optional(),
366
366
  updated: z.string().datetime({ offset: true }).default(
367
- "2026-07-22T02:07:48.193Z",
367
+ "2026-07-22T10:01:36.519Z",
368
368
  ).transform(v => new Date(v)),
369
369
  filter_type: z.literal("span_type"),
370
370
  filter_values: z.array(z.string()),
@@ -245,7 +245,7 @@ export const RequestBody4$outboundSchema: z.ZodType<
245
245
  PostV2FeedbackEvaluationRequestBodyFeedbackRequestSource$outboundSchema
246
246
  .default("orq"),
247
247
  explanation: z.string().optional(),
248
- reviewedAt: z.date().default(() => new Date("2026-07-22T02:08:27.463Z"))
248
+ reviewedAt: z.date().default(() => new Date("2026-07-22T10:02:02.700Z"))
249
249
  .transform(v => v.toISOString()),
250
250
  type: z.literal("string_array"),
251
251
  values: z.array(z.string()),
@@ -299,7 +299,7 @@ export const RequestBody3$outboundSchema: z.ZodType<
299
299
  source: PostV2FeedbackEvaluationRequestBodyFeedbackSource$outboundSchema
300
300
  .default("orq"),
301
301
  explanation: z.string().optional(),
302
- reviewedAt: z.date().default(() => new Date("2026-07-22T02:08:27.463Z"))
302
+ reviewedAt: z.date().default(() => new Date("2026-07-22T10:02:02.698Z"))
303
303
  .transform(v => v.toISOString()),
304
304
  type: z.literal("boolean"),
305
305
  value: z.boolean(),
@@ -353,7 +353,7 @@ export const PostV2FeedbackEvaluationRequestBody2$outboundSchema: z.ZodType<
353
353
  "orq",
354
354
  ),
355
355
  explanation: z.string().optional(),
356
- reviewedAt: z.date().default(() => new Date("2026-07-22T02:08:27.462Z"))
356
+ reviewedAt: z.date().default(() => new Date("2026-07-22T10:02:02.697Z"))
357
357
  .transform(v => v.toISOString()),
358
358
  type: z.literal("number"),
359
359
  value: z.number(),
@@ -411,7 +411,7 @@ export const PostV2FeedbackEvaluationRequestBody1$outboundSchema: z.ZodType<
411
411
  humanReviewId: z.string().optional(),
412
412
  source: RequestBodySource$outboundSchema.default("orq"),
413
413
  explanation: z.string().optional(),
414
- reviewedAt: z.date().default(() => new Date("2026-07-22T02:08:27.462Z"))
414
+ reviewedAt: z.date().default(() => new Date("2026-07-22T10:02:02.696Z"))
415
415
  .transform(v => v.toISOString()),
416
416
  type: z.literal("string"),
417
417
  value: z.string(),
@@ -271,7 +271,7 @@ export const PostV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
271
271
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
272
272
  .optional(),
273
273
  updated: z.string().datetime({ offset: true }).default(
274
- "2026-07-22T02:07:48.193Z",
274
+ "2026-07-22T10:01:36.519Z",
275
275
  ).transform(v => new Date(v)),
276
276
  filter_type: z.literal("name"),
277
277
  filter_value: z.string(),
@@ -316,7 +316,7 @@ export const PostV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
316
316
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
317
317
  .optional(),
318
318
  updated: z.string().datetime({ offset: true }).default(
319
- "2026-07-22T02:07:48.193Z",
319
+ "2026-07-22T10:01:36.519Z",
320
320
  ).transform(v => new Date(v)),
321
321
  filter_type: z.literal("span_type"),
322
322
  filter_values: z.array(z.string()),