@orq-ai/node 4.2.17 → 4.2.18

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/examples/package-lock.json +1 -1
  2. package/jsr.json +1 -1
  3. package/lib/config.d.ts +2 -2
  4. package/lib/config.js +2 -2
  5. package/models/components/conversationresponse.js +1 -1
  6. package/models/components/conversationwithmessagesresponse.js +1 -1
  7. package/models/components/partdoneevent.js +1 -1
  8. package/models/components/reasoningpart.js +1 -1
  9. package/models/operations/createcontact.js +1 -1
  10. package/models/operations/createconversation.js +1 -1
  11. package/models/operations/createconversationresponse.js +2 -2
  12. package/models/operations/createdataset.js +1 -1
  13. package/models/operations/createdatasetitem.js +4 -4
  14. package/models/operations/createdatasource.js +1 -1
  15. package/models/operations/createeval.js +14 -14
  16. package/models/operations/createidentity.js +1 -1
  17. package/models/operations/createtool.js +6 -6
  18. package/models/operations/fileget.js +1 -1
  19. package/models/operations/filelist.js +1 -1
  20. package/models/operations/fileupload.js +1 -1
  21. package/models/operations/generateconversationname.js +1 -1
  22. package/models/operations/getalltools.js +6 -6
  23. package/models/operations/getevals.js +14 -14
  24. package/models/operations/listdatasetdatapoints.js +4 -4
  25. package/models/operations/listdatasets.js +1 -1
  26. package/models/operations/listdatasources.js +1 -1
  27. package/models/operations/listidentities.js +1 -1
  28. package/models/operations/retrievedatapoint.js +4 -4
  29. package/models/operations/retrievedataset.js +1 -1
  30. package/models/operations/retrievedatasource.js +1 -1
  31. package/models/operations/retrieveidentity.js +1 -1
  32. package/models/operations/retrievetool.js +6 -6
  33. package/models/operations/runagent.js +1 -1
  34. package/models/operations/streamrunagent.js +1 -1
  35. package/models/operations/updateconversation.js +1 -1
  36. package/models/operations/updatedatapoint.js +4 -4
  37. package/models/operations/updatedataset.js +1 -1
  38. package/models/operations/updatedatasource.js +1 -1
  39. package/models/operations/updateeval.js +14 -14
  40. package/models/operations/updateidentity.js +1 -1
  41. package/models/operations/updatetool.js +7 -7
  42. package/package.json +1 -1
  43. package/packages/orq-rc/examples/package-lock.json +1 -1
  44. package/packages/orq-rc/jsr.json +1 -1
  45. package/packages/orq-rc/package-lock.json +2 -2
  46. package/packages/orq-rc/package.json +1 -1
  47. package/packages/orq-rc/src/funcs/evalsInvoke.ts +7 -3
  48. package/packages/orq-rc/src/lib/config.ts +2 -2
  49. package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +6 -0
  50. package/packages/orq-rc/src/models/components/conversationresponse.ts +1 -1
  51. package/packages/orq-rc/src/models/components/conversationwithmessagesresponse.ts +1 -1
  52. package/packages/orq-rc/src/models/components/partdoneevent.ts +1 -1
  53. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  54. package/packages/orq-rc/src/models/errors/invokeeval.ts +48 -3
  55. package/packages/orq-rc/src/models/operations/createagentrequest.ts +13 -0
  56. package/packages/orq-rc/src/models/operations/createcontact.ts +1 -1
  57. package/packages/orq-rc/src/models/operations/createconversation.ts +1 -1
  58. package/packages/orq-rc/src/models/operations/createconversationresponse.ts +2 -2
  59. package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
  60. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
  61. package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
  62. package/packages/orq-rc/src/models/operations/createeval.ts +14 -14
  63. package/packages/orq-rc/src/models/operations/createidentity.ts +1 -1
  64. package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
  65. package/packages/orq-rc/src/models/operations/fileget.ts +1 -1
  66. package/packages/orq-rc/src/models/operations/filelist.ts +1 -1
  67. package/packages/orq-rc/src/models/operations/fileupload.ts +1 -1
  68. package/packages/orq-rc/src/models/operations/generateconversationname.ts +1 -1
  69. package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
  70. package/packages/orq-rc/src/models/operations/getevals.ts +14 -14
  71. package/packages/orq-rc/src/models/operations/invokeeval.ts +6 -0
  72. package/packages/orq-rc/src/models/operations/listagents.ts +6 -0
  73. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
  74. package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
  75. package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
  76. package/packages/orq-rc/src/models/operations/listidentities.ts +1 -1
  77. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +6 -0
  78. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
  79. package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
  80. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
  81. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +1 -1
  82. package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
  83. package/packages/orq-rc/src/models/operations/runagent.ts +8 -1
  84. package/packages/orq-rc/src/models/operations/streamrunagent.ts +8 -1
  85. package/packages/orq-rc/src/models/operations/updateagent.ts +13 -0
  86. package/packages/orq-rc/src/models/operations/updateconversation.ts +1 -1
  87. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
  88. package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
  89. package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
  90. package/packages/orq-rc/src/models/operations/updateeval.ts +14 -14
  91. package/packages/orq-rc/src/models/operations/updateidentity.ts +1 -1
  92. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +3 -3
  93. package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
  94. package/src/lib/config.ts +2 -2
  95. package/src/models/components/conversationresponse.ts +1 -1
  96. package/src/models/components/conversationwithmessagesresponse.ts +1 -1
  97. package/src/models/components/partdoneevent.ts +1 -1
  98. package/src/models/components/reasoningpart.ts +1 -1
  99. package/src/models/operations/createcontact.ts +1 -1
  100. package/src/models/operations/createconversation.ts +1 -1
  101. package/src/models/operations/createconversationresponse.ts +2 -2
  102. package/src/models/operations/createdataset.ts +1 -1
  103. package/src/models/operations/createdatasetitem.ts +4 -4
  104. package/src/models/operations/createdatasource.ts +1 -1
  105. package/src/models/operations/createeval.ts +14 -14
  106. package/src/models/operations/createidentity.ts +1 -1
  107. package/src/models/operations/createtool.ts +6 -6
  108. package/src/models/operations/fileget.ts +1 -1
  109. package/src/models/operations/filelist.ts +1 -1
  110. package/src/models/operations/fileupload.ts +1 -1
  111. package/src/models/operations/generateconversationname.ts +1 -1
  112. package/src/models/operations/getalltools.ts +6 -6
  113. package/src/models/operations/getevals.ts +14 -14
  114. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  115. package/src/models/operations/listdatasets.ts +1 -1
  116. package/src/models/operations/listdatasources.ts +1 -1
  117. package/src/models/operations/listidentities.ts +1 -1
  118. package/src/models/operations/retrievedatapoint.ts +4 -4
  119. package/src/models/operations/retrievedataset.ts +1 -1
  120. package/src/models/operations/retrievedatasource.ts +1 -1
  121. package/src/models/operations/retrieveidentity.ts +1 -1
  122. package/src/models/operations/retrievetool.ts +6 -6
  123. package/src/models/operations/runagent.ts +1 -1
  124. package/src/models/operations/streamrunagent.ts +1 -1
  125. package/src/models/operations/updateconversation.ts +1 -1
  126. package/src/models/operations/updatedatapoint.ts +4 -4
  127. package/src/models/operations/updatedataset.ts +1 -1
  128. package/src/models/operations/updatedatasource.ts +1 -1
  129. package/src/models/operations/updateeval.ts +14 -14
  130. package/src/models/operations/updateidentity.ts +1 -1
  131. package/src/models/operations/updatetool.ts +7 -7
@@ -754,7 +754,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
754
754
  z.ZodTypeDef,
755
755
  unknown
756
756
  > = z.object({
757
- _id: z.string().default("tool_01KG2RZQSZ0KS05B2Q62SQWYHH"),
757
+ _id: z.string().default("tool_01KGHA073N3KN9J2DTCKMW17WW"),
758
758
  path: z.string(),
759
759
  key: z.string(),
760
760
  display_name: z.string().optional(),
@@ -862,7 +862,7 @@ export const RetrieveToolResponseBodyTools$inboundSchema: z.ZodType<
862
862
  z.ZodTypeDef,
863
863
  unknown
864
864
  > = z.object({
865
- id: z.string().default("01KG2RZQSYTHFSM1336N7W35AZ"),
865
+ id: z.string().default("01KGHA073MANANKDC75E4GAF7N"),
866
866
  name: z.string(),
867
867
  description: z.string().optional(),
868
868
  schema: z.lazy(() => RetrieveToolResponseBodyToolsSchema$inboundSchema),
@@ -918,7 +918,7 @@ export const RetrieveToolResponseBodyMCPTool$inboundSchema: z.ZodType<
918
918
  z.ZodTypeDef,
919
919
  unknown
920
920
  > = z.object({
921
- _id: z.string().default("tool_01KG2RZQSWXE1Z9WP5GX7PZJ0X"),
921
+ _id: z.string().default("tool_01KGHA073JM3NTG3MVD4XGHVJQ"),
922
922
  path: z.string(),
923
923
  key: z.string(),
924
924
  display_name: z.string().optional(),
@@ -1111,7 +1111,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
1111
1111
  z.ZodTypeDef,
1112
1112
  unknown
1113
1113
  > = z.object({
1114
- _id: z.string().default("tool_01KG2RZQSSV0FNYX7RGE689C66"),
1114
+ _id: z.string().default("tool_01KGHA073FASMFYD8EG5581JVJ"),
1115
1115
  path: z.string(),
1116
1116
  key: z.string(),
1117
1117
  display_name: z.string().optional(),
@@ -1209,7 +1209,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
1209
1209
  z.ZodTypeDef,
1210
1210
  unknown
1211
1211
  > = z.object({
1212
- _id: z.string().default("tool_01KG2RZQSQT0K9N3Y26AZFXJ4J"),
1212
+ _id: z.string().default("tool_01KGHA073DXTM8VA3PHA3SK0HA"),
1213
1213
  path: z.string(),
1214
1214
  key: z.string(),
1215
1215
  display_name: z.string().optional(),
@@ -1317,7 +1317,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
1317
1317
  z.ZodTypeDef,
1318
1318
  unknown
1319
1319
  > = z.object({
1320
- _id: z.string().default("tool_01KG2RZQSNMC8X701KWWFN44VY"),
1320
+ _id: z.string().default("tool_01KGHA073BSBECR5PHSDMNJ4XF"),
1321
1321
  path: z.string(),
1322
1322
  key: z.string(),
1323
1323
  display_name: z.string().optional(),
@@ -1822,6 +1822,10 @@ export type RunAgentSettings = {
1822
1822
  * Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned.
1823
1823
  */
1824
1824
  maxExecutionTime?: number | undefined;
1825
+ /**
1826
+ * Maximum cost in USD for the agent execution. When the accumulated cost exceeds this limit, the agent will stop executing. Set to 0 for unlimited. Only supported in v3 responses
1827
+ */
1828
+ maxCost?: number | undefined;
1825
1829
  /**
1826
1830
  * Configuration for an evaluator applied to the agent
1827
1831
  */
@@ -4027,7 +4031,7 @@ export const Tools$outboundSchema: z.ZodType<
4027
4031
  z.ZodTypeDef,
4028
4032
  Tools
4029
4033
  > = z.object({
4030
- id: z.string().default("01KG2RZQ82YZ0379R2S5B1486Q"),
4034
+ id: z.string().default("01KGHA06JA2Y4F6Q0DJS1GW9ZT"),
4031
4035
  name: z.string(),
4032
4036
  description: z.string().optional(),
4033
4037
  schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
@@ -5089,6 +5093,7 @@ export type RunAgentSettings$Outbound = {
5089
5093
  tool_approval_required: string;
5090
5094
  max_iterations: number;
5091
5095
  max_execution_time: number;
5096
+ max_cost: number;
5092
5097
  evaluators?: Array<RunAgentEvaluators$Outbound> | undefined;
5093
5098
  guardrails?: Array<RunAgentGuardrails$Outbound> | undefined;
5094
5099
  };
@@ -5124,6 +5129,7 @@ export const RunAgentSettings$outboundSchema: z.ZodType<
5124
5129
  ),
5125
5130
  maxIterations: z.number().int().default(100),
5126
5131
  maxExecutionTime: z.number().int().default(600),
5132
+ maxCost: z.number().default(0),
5127
5133
  evaluators: z.array(z.lazy(() => RunAgentEvaluators$outboundSchema))
5128
5134
  .optional(),
5129
5135
  guardrails: z.array(z.lazy(() => RunAgentGuardrails$outboundSchema))
@@ -5133,6 +5139,7 @@ export const RunAgentSettings$outboundSchema: z.ZodType<
5133
5139
  toolApprovalRequired: "tool_approval_required",
5134
5140
  maxIterations: "max_iterations",
5135
5141
  maxExecutionTime: "max_execution_time",
5142
+ maxCost: "max_cost",
5136
5143
  });
5137
5144
  });
5138
5145
 
@@ -1862,6 +1862,10 @@ export type StreamRunAgentSettings = {
1862
1862
  * Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned.
1863
1863
  */
1864
1864
  maxExecutionTime?: number | undefined;
1865
+ /**
1866
+ * Maximum cost in USD for the agent execution. When the accumulated cost exceeds this limit, the agent will stop executing. Set to 0 for unlimited. Only supported in v3 responses
1867
+ */
1868
+ maxCost?: number | undefined;
1865
1869
  /**
1866
1870
  * Configuration for an evaluator applied to the agent
1867
1871
  */
@@ -4099,7 +4103,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
4099
4103
  z.ZodTypeDef,
4100
4104
  AgentToolInputRunTools
4101
4105
  > = z.object({
4102
- id: z.string().default("01KG2RZQB6NY02X6PDEWS9295S"),
4106
+ id: z.string().default("01KGHA06MY71YYY5REQMXGGNTM"),
4103
4107
  name: z.string(),
4104
4108
  description: z.string().optional(),
4105
4109
  schema: z.lazy(() =>
@@ -5296,6 +5300,7 @@ export type StreamRunAgentSettings$Outbound = {
5296
5300
  tool_approval_required: string;
5297
5301
  max_iterations: number;
5298
5302
  max_execution_time: number;
5303
+ max_cost: number;
5299
5304
  evaluators?: Array<StreamRunAgentEvaluators$Outbound> | undefined;
5300
5305
  guardrails?: Array<StreamRunAgentGuardrails$Outbound> | undefined;
5301
5306
  };
@@ -5352,6 +5357,7 @@ export const StreamRunAgentSettings$outboundSchema: z.ZodType<
5352
5357
  .default("none"),
5353
5358
  maxIterations: z.number().int().default(100),
5354
5359
  maxExecutionTime: z.number().int().default(600),
5360
+ maxCost: z.number().default(0),
5355
5361
  evaluators: z.array(z.lazy(() => StreamRunAgentEvaluators$outboundSchema))
5356
5362
  .optional(),
5357
5363
  guardrails: z.array(z.lazy(() => StreamRunAgentGuardrails$outboundSchema))
@@ -5361,6 +5367,7 @@ export const StreamRunAgentSettings$outboundSchema: z.ZodType<
5361
5367
  toolApprovalRequired: "tool_approval_required",
5362
5368
  maxIterations: "max_iterations",
5363
5369
  maxExecutionTime: "max_execution_time",
5370
+ maxCost: "max_cost",
5364
5371
  });
5365
5372
  });
5366
5373
 
@@ -1537,6 +1537,10 @@ export type UpdateAgentSettings = {
1537
1537
  * Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned.
1538
1538
  */
1539
1539
  maxExecutionTime?: number | undefined;
1540
+ /**
1541
+ * Maximum cost in USD for the agent execution. When the accumulated cost exceeds this limit, the agent will stop executing. Set to 0 for unlimited. Only supported in v3 responses
1542
+ */
1543
+ maxCost?: number | undefined;
1540
1544
  /**
1541
1545
  * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
1542
1546
  */
@@ -1791,6 +1795,10 @@ export type UpdateAgentAgentsSettings = {
1791
1795
  * Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned.
1792
1796
  */
1793
1797
  maxExecutionTime: number;
1798
+ /**
1799
+ * Maximum cost in USD for the agent execution. When the accumulated cost exceeds this limit, the agent will stop executing. Set to 0 for unlimited. Only supported in v3 responses
1800
+ */
1801
+ maxCost: number;
1794
1802
  /**
1795
1803
  * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
1796
1804
  */
@@ -5351,6 +5359,7 @@ export function updateAgentGuardrailsToJSON(
5351
5359
  export type UpdateAgentSettings$Outbound = {
5352
5360
  max_iterations: number;
5353
5361
  max_execution_time: number;
5362
+ max_cost: number;
5354
5363
  tool_approval_required: string;
5355
5364
  tools?:
5356
5365
  | Array<
@@ -5384,6 +5393,7 @@ export const UpdateAgentSettings$outboundSchema: z.ZodType<
5384
5393
  > = z.object({
5385
5394
  maxIterations: z.number().int().default(100),
5386
5395
  maxExecutionTime: z.number().int().default(600),
5396
+ maxCost: z.number().default(0),
5387
5397
  toolApprovalRequired: UpdateAgentToolApprovalRequired$outboundSchema.default(
5388
5398
  "respect_tool",
5389
5399
  ),
@@ -5415,6 +5425,7 @@ export const UpdateAgentSettings$outboundSchema: z.ZodType<
5415
5425
  return remap$(v, {
5416
5426
  maxIterations: "max_iterations",
5417
5427
  maxExecutionTime: "max_execution_time",
5428
+ maxCost: "max_cost",
5418
5429
  toolApprovalRequired: "tool_approval_required",
5419
5430
  });
5420
5431
  });
@@ -5719,6 +5730,7 @@ export const UpdateAgentAgentsSettings$inboundSchema: z.ZodType<
5719
5730
  > = z.object({
5720
5731
  max_iterations: z.number().int().default(100),
5721
5732
  max_execution_time: z.number().int().default(600),
5733
+ max_cost: z.number().default(0),
5722
5734
  tool_approval_required: UpdateAgentAgentsToolApprovalRequired$inboundSchema
5723
5735
  .default("respect_tool"),
5724
5736
  tools: z.array(z.lazy(() => UpdateAgentTools$inboundSchema)).optional(),
@@ -5730,6 +5742,7 @@ export const UpdateAgentAgentsSettings$inboundSchema: z.ZodType<
5730
5742
  return remap$(v, {
5731
5743
  "max_iterations": "maxIterations",
5732
5744
  "max_execution_time": "maxExecutionTime",
5745
+ "max_cost": "maxCost",
5733
5746
  "tool_approval_required": "toolApprovalRequired",
5734
5747
  });
5735
5748
  });
@@ -226,7 +226,7 @@ export const UpdateConversationResponseBody$inboundSchema: z.ZodType<
226
226
  z.ZodTypeDef,
227
227
  unknown
228
228
  > = z.object({
229
- _id: z.string().default("conv_01kg2rzqdb1fx6s6f87nvx19pd"),
229
+ _id: z.string().default("conv_01kgha06q2safbvfvrbny8w5av"),
230
230
  kind: UpdateConversationKind$inboundSchema,
231
231
  displayName: z.string(),
232
232
  createdAt: z.number(),
@@ -2358,7 +2358,7 @@ export const UpdateDatapointEvaluations3$inboundSchema: z.ZodType<
2358
2358
  .default("orq"),
2359
2359
  reviewed_by_id: z.string(),
2360
2360
  reviewed_at: z.string().datetime({ offset: true }).default(
2361
- "2026-01-28T17:04:01.101Z",
2361
+ "2026-02-03T08:30:44.635Z",
2362
2362
  ).transform(v => new Date(v)),
2363
2363
  type: z.literal("string_array"),
2364
2364
  values: z.array(z.string()),
@@ -2404,7 +2404,7 @@ export const UpdateDatapointEvaluations2$inboundSchema: z.ZodType<
2404
2404
  source: UpdateDatapointEvaluationsDatasetsSource$inboundSchema.default("orq"),
2405
2405
  reviewed_by_id: z.string(),
2406
2406
  reviewed_at: z.string().datetime({ offset: true }).default(
2407
- "2026-01-28T17:04:01.100Z",
2407
+ "2026-02-03T08:30:44.634Z",
2408
2408
  ).transform(v => new Date(v)),
2409
2409
  type: z.literal("number"),
2410
2410
  value: z.number(),
@@ -2449,7 +2449,7 @@ export const UpdateDatapointEvaluations1$inboundSchema: z.ZodType<
2449
2449
  source: UpdateDatapointEvaluationsSource$inboundSchema.default("orq"),
2450
2450
  reviewed_by_id: z.string(),
2451
2451
  reviewed_at: z.string().datetime({ offset: true }).default(
2452
- "2026-01-28T17:04:01.100Z",
2452
+ "2026-02-03T08:30:44.634Z",
2453
2453
  ).transform(v => new Date(v)),
2454
2454
  type: z.literal("string"),
2455
2455
  value: z.string(),
@@ -2530,7 +2530,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
2530
2530
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2531
2531
  .optional(),
2532
2532
  updated: z.string().datetime({ offset: true }).default(
2533
- "2026-01-28T17:03:47.548Z",
2533
+ "2026-02-03T08:30:30.445Z",
2534
2534
  ).transform(v => new Date(v)),
2535
2535
  }).transform((v) => {
2536
2536
  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-01-28T17:03:47.548Z",
185
+ "2026-02-03T08:30:30.445Z",
186
186
  ).transform(v => new Date(v)),
187
187
  }).transform((v) => {
188
188
  return remap$(v, {
@@ -152,7 +152,7 @@ export const UpdateDatasourceResponseBody$inboundSchema: z.ZodType<
152
152
  z.ZodTypeDef,
153
153
  unknown
154
154
  > = z.object({
155
- _id: z.string().default("01KG2RZQY5DS06K56QMXSJG26M"),
155
+ _id: z.string().default("01KGHA0779T1XMX2DEDN5RKSBC"),
156
156
  display_name: z.string(),
157
157
  description: z.string().optional(),
158
158
  status: UpdateDatasourceStatus$inboundSchema,
@@ -1694,8 +1694,8 @@ export const ResponseBodyTypescript$inboundSchema: z.ZodType<
1694
1694
  > = z.object({
1695
1695
  _id: z.string(),
1696
1696
  description: z.string(),
1697
- created: z.string().default("2026-01-28T17:03:49.366Z"),
1698
- updated: z.string().default("2026-01-28T17:03:49.366Z"),
1697
+ created: z.string().default("2026-02-03T08:30:32.334Z"),
1698
+ updated: z.string().default("2026-02-03T08:30:32.334Z"),
1699
1699
  guardrail_config: z.union([
1700
1700
  z.lazy(() =>
1701
1701
  UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$inboundSchema
@@ -1841,8 +1841,8 @@ export const ResponseBodyRagas$inboundSchema: z.ZodType<
1841
1841
  > = z.object({
1842
1842
  _id: z.string(),
1843
1843
  description: z.string(),
1844
- created: z.string().default("2026-01-28T17:03:49.366Z"),
1845
- updated: z.string().default("2026-01-28T17:03:49.366Z"),
1844
+ created: z.string().default("2026-02-03T08:30:32.334Z"),
1845
+ updated: z.string().default("2026-02-03T08:30:32.334Z"),
1846
1846
  guardrail_config: z.union([
1847
1847
  z.lazy(() =>
1848
1848
  UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean$inboundSchema
@@ -2655,8 +2655,8 @@ export const ResponseBodyFunction$inboundSchema: z.ZodType<
2655
2655
  > = z.object({
2656
2656
  _id: z.string(),
2657
2657
  description: z.string(),
2658
- created: z.string().default("2026-01-28T17:03:49.366Z"),
2659
- updated: z.string().default("2026-01-28T17:03:49.366Z"),
2658
+ created: z.string().default("2026-02-03T08:30:32.334Z"),
2659
+ updated: z.string().default("2026-02-03T08:30:32.334Z"),
2660
2660
  guardrail_config: z.union([
2661
2661
  z.lazy(() =>
2662
2662
  UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Boolean$inboundSchema
@@ -2832,8 +2832,8 @@ export const UpdateEvalResponseBodyPython$inboundSchema: z.ZodType<
2832
2832
  > = z.object({
2833
2833
  _id: z.string(),
2834
2834
  description: z.string(),
2835
- created: z.string().default("2026-01-28T17:03:49.366Z"),
2836
- updated: z.string().default("2026-01-28T17:03:49.366Z"),
2835
+ created: z.string().default("2026-02-03T08:30:32.334Z"),
2836
+ updated: z.string().default("2026-02-03T08:30:32.334Z"),
2837
2837
  guardrail_config: z.union([
2838
2838
  z.lazy(() =>
2839
2839
  UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema
@@ -2980,8 +2980,8 @@ export const UpdateEvalResponseBodyHTTP$inboundSchema: z.ZodType<
2980
2980
  > = z.object({
2981
2981
  _id: z.string(),
2982
2982
  description: z.string(),
2983
- created: z.string().default("2026-01-28T17:03:49.366Z"),
2984
- updated: z.string().default("2026-01-28T17:03:49.366Z"),
2983
+ created: z.string().default("2026-02-03T08:30:32.334Z"),
2984
+ updated: z.string().default("2026-02-03T08:30:32.334Z"),
2985
2985
  guardrail_config: z.union([
2986
2986
  z.lazy(() =>
2987
2987
  UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema
@@ -3121,8 +3121,8 @@ export const UpdateEvalResponseBodyJSON$inboundSchema: z.ZodType<
3121
3121
  > = z.object({
3122
3122
  _id: z.string(),
3123
3123
  description: z.string(),
3124
- created: z.string().default("2026-01-28T17:03:49.366Z"),
3125
- updated: z.string().default("2026-01-28T17:03:49.366Z"),
3124
+ created: z.string().default("2026-02-03T08:30:32.334Z"),
3125
+ updated: z.string().default("2026-02-03T08:30:32.334Z"),
3126
3126
  guardrail_config: z.union([
3127
3127
  z.lazy(() =>
3128
3128
  UpdateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema
@@ -3250,8 +3250,8 @@ export const UpdateEvalResponseBodyLLM$inboundSchema: z.ZodType<
3250
3250
  > = z.object({
3251
3251
  _id: z.string(),
3252
3252
  description: z.string(),
3253
- created: z.string().default("2026-01-28T17:03:49.366Z"),
3254
- updated: z.string().default("2026-01-28T17:03:49.366Z"),
3253
+ created: z.string().default("2026-02-03T08:30:32.334Z"),
3254
+ updated: z.string().default("2026-02-03T08:30:32.334Z"),
3255
3255
  guardrail_config: z.union([
3256
3256
  z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
3257
3257
  z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
@@ -167,7 +167,7 @@ export const UpdateIdentityResponseBody$inboundSchema: z.ZodType<
167
167
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
168
168
  .optional(),
169
169
  updated: z.string().datetime({ offset: true }).default(
170
- "2026-01-28T17:03:47.548Z",
170
+ "2026-02-03T08:30:30.445Z",
171
171
  ).transform(v => new Date(v)),
172
172
  }).transform((v) => {
173
173
  return remap$(v, {
@@ -12,7 +12,7 @@ export type UpdateMemoryDocumentRequestBody = {
12
12
  /**
13
13
  * The content of the memory document (whitespace trimmed).
14
14
  */
15
- text: string;
15
+ text?: string | undefined;
16
16
  /**
17
17
  * Flexible key-value pairs for custom filtering and categorization. Clients can add arbitrary string metadata to enable future filtering of memory documents based on their specific needs (e.g., document type, source, topic, relevance score, or any custom taxonomy).
18
18
  */
@@ -59,7 +59,7 @@ export type UpdateMemoryDocumentResponseBody = {
59
59
 
60
60
  /** @internal */
61
61
  export type UpdateMemoryDocumentRequestBody$Outbound = {
62
- text: string;
62
+ text?: string | undefined;
63
63
  metadata?: { [k: string]: string } | undefined;
64
64
  };
65
65
 
@@ -69,7 +69,7 @@ export const UpdateMemoryDocumentRequestBody$outboundSchema: z.ZodType<
69
69
  z.ZodTypeDef,
70
70
  UpdateMemoryDocumentRequestBody
71
71
  > = z.object({
72
- text: z.string(),
72
+ text: z.string().optional(),
73
73
  metadata: z.record(z.string()).optional(),
74
74
  });
75
75
 
@@ -1402,7 +1402,7 @@ export const RequestBodyTools$outboundSchema: z.ZodType<
1402
1402
  z.ZodTypeDef,
1403
1403
  RequestBodyTools
1404
1404
  > = z.object({
1405
- id: z.string().default("01KG2RZQS8SDTYPMPPW33WTSFS"),
1405
+ id: z.string().default("01KGHA072XYQX827VRNSKANHKM"),
1406
1406
  name: z.string(),
1407
1407
  description: z.string().optional(),
1408
1408
  schema: z.lazy(() => UpdateToolRequestBodyToolsSchema$outboundSchema),
@@ -2080,7 +2080,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
2080
2080
  z.ZodTypeDef,
2081
2081
  unknown
2082
2082
  > = z.object({
2083
- _id: z.string().default("tool_01KG2RZQS2N4WQQ6T7JP0Y04YD"),
2083
+ _id: z.string().default("tool_01KGHA072QN0910PQKCM2HMVXS"),
2084
2084
  path: z.string(),
2085
2085
  key: z.string(),
2086
2086
  display_name: z.string().optional(),
@@ -2185,7 +2185,7 @@ export const UpdateToolResponseBodyTools$inboundSchema: z.ZodType<
2185
2185
  z.ZodTypeDef,
2186
2186
  unknown
2187
2187
  > = z.object({
2188
- id: z.string().default("01KG2RZQS1HAMGCDMP5RFDJAN0"),
2188
+ id: z.string().default("01KGHA072QX74PKV7DXCQCDMGN"),
2189
2189
  name: z.string(),
2190
2190
  description: z.string().optional(),
2191
2191
  schema: z.lazy(() => UpdateToolResponseBodyToolsSchema$inboundSchema),
@@ -2241,7 +2241,7 @@ export const UpdateToolResponseBodyMCPTool$inboundSchema: z.ZodType<
2241
2241
  z.ZodTypeDef,
2242
2242
  unknown
2243
2243
  > = z.object({
2244
- _id: z.string().default("tool_01KG2RZQS0262F3SBWR0V2469W"),
2244
+ _id: z.string().default("tool_01KGHA072NVAEP2DVYH31PXPEY"),
2245
2245
  path: z.string(),
2246
2246
  key: z.string(),
2247
2247
  display_name: z.string().optional(),
@@ -2432,7 +2432,7 @@ export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
2432
2432
  z.ZodTypeDef,
2433
2433
  unknown
2434
2434
  > = z.object({
2435
- _id: z.string().default("tool_01KG2RZQRQC9ATVEMJNF89K5D6"),
2435
+ _id: z.string().default("tool_01KGHA072M2V8D64VATTVSG5G5"),
2436
2436
  path: z.string(),
2437
2437
  key: z.string(),
2438
2438
  display_name: z.string().optional(),
@@ -2529,7 +2529,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
2529
2529
  z.ZodTypeDef,
2530
2530
  unknown
2531
2531
  > = z.object({
2532
- _id: z.string().default("tool_01KG2RZQRPC9E99MJ4YX7HP3CE"),
2532
+ _id: z.string().default("tool_01KGHA072JNHTTR1PTJYMX7DDQ"),
2533
2533
  path: z.string(),
2534
2534
  key: z.string(),
2535
2535
  display_name: z.string().optional(),
@@ -2634,7 +2634,7 @@ export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
2634
2634
  z.ZodTypeDef,
2635
2635
  unknown
2636
2636
  > = z.object({
2637
- _id: z.string().default("tool_01KG2RZQRNER6ZH4SDP62TZ427"),
2637
+ _id: z.string().default("tool_01KGHA072HFQK4068V347GPG76"),
2638
2638
  path: z.string(),
2639
2639
  key: z.string(),
2640
2640
  display_name: z.string().optional(),
package/src/lib/config.ts CHANGED
@@ -68,7 +68,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
68
68
  export const SDK_METADATA = {
69
69
  language: "typescript",
70
70
  openapiDocVersion: "2.0",
71
- sdkVersion: "4.2.17",
71
+ sdkVersion: "4.2.18",
72
72
  genVersion: "2.801.2",
73
- userAgent: "speakeasy-sdk/typescript 4.2.17 2.801.2 2.0 @orq-ai/node",
73
+ userAgent: "speakeasy-sdk/typescript 4.2.18 2.801.2 2.0 @orq-ai/node",
74
74
  } as const;
@@ -107,7 +107,7 @@ export const ConversationResponse$inboundSchema: z.ZodType<
107
107
  z.ZodTypeDef,
108
108
  unknown
109
109
  > = z.object({
110
- _id: z.string().default("conv_01kg2ymjbphnk0cs91g3tcr9be"),
110
+ _id: z.string().default("conv_01kghb3kcnv7jnntymfsknca9v"),
111
111
  kind: ConversationResponseKind$inboundSchema,
112
112
  displayName: z.string(),
113
113
  createdAt: z.number(),
@@ -122,7 +122,7 @@ export const ConversationWithMessagesResponse$inboundSchema: z.ZodType<
122
122
  z.ZodTypeDef,
123
123
  unknown
124
124
  > = z.object({
125
- _id: z.string().default("conv_01kg2ymjbxp4wfsb125756b6y3"),
125
+ _id: z.string().default("conv_01kghb3kcv3qc74mjsxg5vzy01"),
126
126
  kind: ConversationWithMessagesResponseKind$inboundSchema,
127
127
  displayName: z.string(),
128
128
  createdAt: z.number(),
@@ -76,7 +76,7 @@ export const PartReasoningPart$inboundSchema: z.ZodType<
76
76
  z.ZodTypeDef,
77
77
  unknown
78
78
  > = z.object({
79
- _id: z.string().default("reasoning_01kg2ymj13y48gtm7z6kqygcsw"),
79
+ _id: z.string().default("reasoning_01kghb3k3gb6d7kn4jcqbvphqa"),
80
80
  metadata: z.record(z.any()).optional(),
81
81
  kind: PartKind$inboundSchema,
82
82
  reasoning: z.string(),
@@ -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_01kg2ymj0v8wr5yzw6y501qkez"),
43
+ _id: z.string().default("reasoning_01kghb3k3675ejnnkvyhmxn04x"),
44
44
  metadata: z.record(z.any()).optional(),
45
45
  kind: z.literal("reasoning"),
46
46
  reasoning: z.string(),
@@ -134,7 +134,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
134
134
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
135
135
  .optional(),
136
136
  updated: z.string().datetime({ offset: true }).default(
137
- "2026-01-28T18:42:32.879Z",
137
+ "2026-02-03T08:49:51.414Z",
138
138
  ).transform(v => new Date(v)),
139
139
  }).transform((v) => {
140
140
  return remap$(v, {
@@ -201,7 +201,7 @@ export const CreateConversationResponseBody$inboundSchema: z.ZodType<
201
201
  z.ZodTypeDef,
202
202
  unknown
203
203
  > = z.object({
204
- _id: z.string().default("conv_01kg2ymjbtfx7p8n48key5rfc7"),
204
+ _id: z.string().default("conv_01kghb3kcq9x7qa9b4mzargsem"),
205
205
  kind: CreateConversationKind$inboundSchema,
206
206
  displayName: z.string(),
207
207
  createdAt: z.number(),
@@ -280,7 +280,7 @@ export const PartReasoningPart$inboundSchema: z.ZodType<
280
280
  z.ZodTypeDef,
281
281
  unknown
282
282
  > = z.object({
283
- _id: z.string().default("reasoning_01kg2ymjck5qbmt0fkv8yqfb7v"),
283
+ _id: z.string().default("reasoning_01kghb3kdevwnyzk670ew7r29r"),
284
284
  metadata: z.record(z.any()).optional(),
285
285
  kind: PartKind$inboundSchema,
286
286
  reasoning: z.string(),
@@ -366,7 +366,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
366
366
  z.ZodTypeDef,
367
367
  unknown
368
368
  > = z.object({
369
- _id: z.string().default("reasoning_01kg2ymjcd0jdzb0jra8y5cddq"),
369
+ _id: z.string().default("reasoning_01kghb3kd9k3za2m47w5e3q5sm"),
370
370
  metadata: z.record(z.any()).optional(),
371
371
  kind: DeltaKind$inboundSchema,
372
372
  reasoning: z.string(),
@@ -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-01-28T18:42:32.879Z",
141
+ "2026-02-03T08:49:51.414Z",
142
142
  ).transform(v => new Date(v)),
143
143
  }).transform((v) => {
144
144
  return remap$(v, {
@@ -2353,7 +2353,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
2353
2353
  ),
2354
2354
  reviewed_by_id: z.string(),
2355
2355
  reviewed_at: z.string().datetime({ offset: true }).default(
2356
- "2026-01-28T18:42:46.895Z",
2356
+ "2026-02-03T08:50:04.382Z",
2357
2357
  ).transform(v => new Date(v)),
2358
2358
  type: z.literal("string_array"),
2359
2359
  values: z.array(z.string()),
@@ -2398,7 +2398,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
2398
2398
  source: CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
2399
2399
  reviewed_by_id: z.string(),
2400
2400
  reviewed_at: z.string().datetime({ offset: true }).default(
2401
- "2026-01-28T18:42:46.894Z",
2401
+ "2026-02-03T08:50:04.380Z",
2402
2402
  ).transform(v => new Date(v)),
2403
2403
  type: z.literal("number"),
2404
2404
  value: z.number(),
@@ -2443,7 +2443,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
2443
2443
  source: EvaluationsSource$inboundSchema.default("orq"),
2444
2444
  reviewed_by_id: z.string(),
2445
2445
  reviewed_at: z.string().datetime({ offset: true }).default(
2446
- "2026-01-28T18:42:46.893Z",
2446
+ "2026-02-03T08:50:04.379Z",
2447
2447
  ).transform(v => new Date(v)),
2448
2448
  type: z.literal("string"),
2449
2449
  value: z.string(),
@@ -2526,7 +2526,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
2526
2526
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2527
2527
  .optional(),
2528
2528
  updated: z.string().datetime({ offset: true }).default(
2529
- "2026-01-28T18:42:32.879Z",
2529
+ "2026-02-03T08:49:51.414Z",
2530
2530
  ).transform(v => new Date(v)),
2531
2531
  }).transform((v) => {
2532
2532
  return remap$(v, {
@@ -403,7 +403,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
403
403
  z.ZodTypeDef,
404
404
  unknown
405
405
  > = z.object({
406
- _id: z.string().default("01KG2YMJWCPAG1TVYFBZ3NM29M"),
406
+ _id: z.string().default("01KGHB3KVMF3K8ACVSBG71VGGJ"),
407
407
  display_name: z.string(),
408
408
  description: z.string().optional(),
409
409
  status: CreateDatasourceStatus$inboundSchema,