@orq-ai/node 4.10.2 → 4.10.6

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 (161) 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/createfilerequest.d.ts +1 -1
  5. package/models/components/reasoningpart.js +1 -1
  6. package/models/operations/createdataset.js +1 -1
  7. package/models/operations/createdatasetitem.js +4 -4
  8. package/models/operations/createdatasource.js +1 -1
  9. package/models/operations/createeval.js +16 -16
  10. package/models/operations/createtool.js +6 -6
  11. package/models/operations/getalltools.js +6 -6
  12. package/models/operations/getevals.js +16 -16
  13. package/models/operations/getv2humanevalsets.js +2 -2
  14. package/models/operations/getv2humanevalsetsid.js +2 -2
  15. package/models/operations/listdatasetdatapoints.js +4 -4
  16. package/models/operations/listdatasets.js +1 -1
  17. package/models/operations/listdatasources.js +1 -1
  18. package/models/operations/patchv2humanevalsetsid.js +2 -2
  19. package/models/operations/postv2feedbackevaluation.js +3 -3
  20. package/models/operations/postv2humanevalsets.js +2 -2
  21. package/models/operations/retrievedatapoint.js +4 -4
  22. package/models/operations/retrievedataset.js +1 -1
  23. package/models/operations/retrievedatasource.js +1 -1
  24. package/models/operations/retrievetool.js +6 -6
  25. package/models/operations/runagent.js +1 -1
  26. package/models/operations/streamrunagent.js +1 -1
  27. package/models/operations/updatedatapoint.js +4 -4
  28. package/models/operations/updatedataset.js +1 -1
  29. package/models/operations/updatedatasource.js +1 -1
  30. package/models/operations/updateeval.js +16 -16
  31. package/models/operations/updatetool.js +7 -7
  32. package/package.json +1 -1
  33. package/packages/orq-rc/src/funcs/filesDelete.ts +3 -0
  34. package/packages/orq-rc/src/lib/config.ts +2 -2
  35. package/packages/orq-rc/src/models/components/apikey.ts +19 -19
  36. package/packages/orq-rc/src/models/components/createapikeyrequest.ts +4 -4
  37. package/packages/orq-rc/src/models/components/createapikeyresponse.ts +4 -4
  38. package/packages/orq-rc/src/models/components/createfilerequest.ts +15 -6
  39. package/packages/orq-rc/src/models/components/createfileresponse.ts +5 -2
  40. package/packages/orq-rc/src/models/components/createidentityrequest.ts +27 -3
  41. package/packages/orq-rc/src/models/components/createidentityresponse.ts +5 -2
  42. package/packages/orq-rc/src/models/components/createprojectrequest.ts +3 -3
  43. package/packages/orq-rc/src/models/components/createprojectresponse.ts +2 -2
  44. package/packages/orq-rc/src/models/components/createskillrequest.ts +3 -3
  45. package/packages/orq-rc/src/models/components/createskillresponse.ts +2 -2
  46. package/packages/orq-rc/src/models/components/file.ts +24 -12
  47. package/packages/orq-rc/src/models/components/getapikeyresponse.ts +2 -2
  48. package/packages/orq-rc/src/models/components/getfilecontentresponse.ts +5 -2
  49. package/packages/orq-rc/src/models/components/getfileresponse.ts +5 -2
  50. package/packages/orq-rc/src/models/components/getprojectresponse.ts +2 -2
  51. package/packages/orq-rc/src/models/components/getskillresponse.ts +2 -2
  52. package/packages/orq-rc/src/models/components/identity.ts +55 -10
  53. package/packages/orq-rc/src/models/components/identitymetrics.ts +20 -8
  54. package/packages/orq-rc/src/models/components/listapikeysresponse.ts +6 -6
  55. package/packages/orq-rc/src/models/components/listcapabilitiesresponse.ts +2 -2
  56. package/packages/orq-rc/src/models/components/listfilesresponse.ts +15 -6
  57. package/packages/orq-rc/src/models/components/listidentitiesresponse.ts +18 -6
  58. package/packages/orq-rc/src/models/components/listprojectsresponse.ts +6 -6
  59. package/packages/orq-rc/src/models/components/listskillsresponse.ts +6 -6
  60. package/packages/orq-rc/src/models/components/project.ts +16 -16
  61. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  62. package/packages/orq-rc/src/models/components/retrieveidentityresponse.ts +5 -2
  63. package/packages/orq-rc/src/models/components/singleproject.ts +7 -4
  64. package/packages/orq-rc/src/models/components/skill.ts +25 -25
  65. package/packages/orq-rc/src/models/components/updateapikeyrequest.ts +1 -8
  66. package/packages/orq-rc/src/models/components/updateapikeyresponse.ts +2 -2
  67. package/packages/orq-rc/src/models/components/updatefilerequest.ts +6 -7
  68. package/packages/orq-rc/src/models/components/updatefileresponse.ts +5 -2
  69. package/packages/orq-rc/src/models/components/updateidentityrequest.ts +18 -3
  70. package/packages/orq-rc/src/models/components/updateidentityresponse.ts +5 -2
  71. package/packages/orq-rc/src/models/components/updateprojectrequest.ts +0 -11
  72. package/packages/orq-rc/src/models/components/updateprojectresponse.ts +2 -2
  73. package/packages/orq-rc/src/models/components/updateskillrequest.ts +0 -7
  74. package/packages/orq-rc/src/models/components/updateskillresponse.ts +2 -2
  75. package/packages/orq-rc/src/models/components/userowner.ts +7 -4
  76. package/packages/orq-rc/src/models/operations/createdataset.ts +5 -5
  77. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +8 -8
  78. package/packages/orq-rc/src/models/operations/createdatasource.ts +6 -6
  79. package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
  80. package/packages/orq-rc/src/models/operations/createknowledge.ts +4 -4
  81. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +4 -4
  82. package/packages/orq-rc/src/models/operations/creatememorystore.ts +4 -4
  83. package/packages/orq-rc/src/models/operations/createprompt.ts +1 -0
  84. package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
  85. package/packages/orq-rc/src/models/operations/deleteidentity.ts +3 -0
  86. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +1 -0
  87. package/packages/orq-rc/src/models/operations/deployments.ts +1 -0
  88. package/packages/orq-rc/src/models/operations/deploymentstream.ts +1 -0
  89. package/packages/orq-rc/src/models/operations/filecontent.ts +3 -0
  90. package/packages/orq-rc/src/models/operations/filedelete.ts +3 -0
  91. package/packages/orq-rc/src/models/operations/fileget.ts +3 -0
  92. package/packages/orq-rc/src/models/operations/filelist.ts +15 -0
  93. package/packages/orq-rc/src/models/operations/fileupdate.ts +3 -0
  94. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +4 -4
  95. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +4 -4
  96. package/packages/orq-rc/src/models/operations/getallprompts.ts +1 -0
  97. package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
  98. package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
  99. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +4 -4
  100. package/packages/orq-rc/src/models/operations/getoneprompt.ts +1 -0
  101. package/packages/orq-rc/src/models/operations/getpromptversion.ts +1 -0
  102. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  103. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  104. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +8 -8
  105. package/packages/orq-rc/src/models/operations/listdatasets.ts +5 -5
  106. package/packages/orq-rc/src/models/operations/listdatasources.ts +3 -3
  107. package/packages/orq-rc/src/models/operations/listidentities.ts +24 -0
  108. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +4 -4
  109. package/packages/orq-rc/src/models/operations/listpromptversions.ts +1 -0
  110. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  111. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +3 -3
  112. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  113. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -8
  114. package/packages/orq-rc/src/models/operations/retrievedataset.ts +5 -5
  115. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +3 -3
  116. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +6 -0
  117. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +4 -4
  118. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +4 -4
  119. package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
  120. package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
  121. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
  122. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +8 -8
  123. package/packages/orq-rc/src/models/operations/updatedataset.ts +5 -5
  124. package/packages/orq-rc/src/models/operations/updatedatasource.ts +3 -3
  125. package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
  126. package/packages/orq-rc/src/models/operations/updateidentity.ts +3 -0
  127. package/packages/orq-rc/src/models/operations/updateknowledge.ts +4 -4
  128. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +4 -4
  129. package/packages/orq-rc/src/models/operations/updatememorystore.ts +4 -4
  130. package/packages/orq-rc/src/models/operations/updateprompt.ts +1 -0
  131. package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
  132. package/packages/orq-rc/src/sdk/files.ts +3 -0
  133. package/src/lib/config.ts +2 -2
  134. package/src/models/components/createfilerequest.ts +1 -1
  135. package/src/models/components/reasoningpart.ts +1 -1
  136. package/src/models/operations/createdataset.ts +1 -1
  137. package/src/models/operations/createdatasetitem.ts +4 -4
  138. package/src/models/operations/createdatasource.ts +1 -1
  139. package/src/models/operations/createeval.ts +16 -16
  140. package/src/models/operations/createtool.ts +6 -6
  141. package/src/models/operations/getalltools.ts +6 -6
  142. package/src/models/operations/getevals.ts +16 -16
  143. package/src/models/operations/getv2humanevalsets.ts +2 -2
  144. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  145. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  146. package/src/models/operations/listdatasets.ts +1 -1
  147. package/src/models/operations/listdatasources.ts +1 -1
  148. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  149. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  150. package/src/models/operations/postv2humanevalsets.ts +2 -2
  151. package/src/models/operations/retrievedatapoint.ts +4 -4
  152. package/src/models/operations/retrievedataset.ts +1 -1
  153. package/src/models/operations/retrievedatasource.ts +1 -1
  154. package/src/models/operations/retrievetool.ts +6 -6
  155. package/src/models/operations/runagent.ts +1 -1
  156. package/src/models/operations/streamrunagent.ts +1 -1
  157. package/src/models/operations/updatedatapoint.ts +4 -4
  158. package/src/models/operations/updatedataset.ts +1 -1
  159. package/src/models/operations/updatedatasource.ts +1 -1
  160. package/src/models/operations/updateeval.ts +16 -16
  161. package/src/models/operations/updatetool.ts +7 -7
@@ -187,7 +187,7 @@ function retrieveToolResponseBodyCodeToolFromJSON(jsonString) {
187
187
  }
188
188
  /** @internal */
189
189
  exports.RetrieveToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
190
- _id: z.string().default("tool_01KTAD9Z5NHSVG0Z1MFABC2C98"),
190
+ _id: z.string().default("tool_01KTCS7JYA434D3T7ZAFBVGHY5"),
191
191
  path: z.string(),
192
192
  key: z.string(),
193
193
  display_name: z.string().optional(),
@@ -240,7 +240,7 @@ function retrieveToolResponseBodyToolsSchemaFromJSON(jsonString) {
240
240
  }
241
241
  /** @internal */
242
242
  exports.RetrieveToolResponseBodyTools$inboundSchema = z.object({
243
- id: z.string().default("01KTAD9Z5MP6PT5N9FJ2YJXNHN"),
243
+ id: z.string().default("01KTCS7JY97N9NMMNZ9W7KPM4M"),
244
244
  name: z.string(),
245
245
  description: z.string().optional(),
246
246
  schema: z.lazy(() => exports.RetrieveToolResponseBodyToolsSchema$inboundSchema),
@@ -270,7 +270,7 @@ function retrieveToolResponseBodyMcpFromJSON(jsonString) {
270
270
  }
271
271
  /** @internal */
272
272
  exports.RetrieveToolResponseBodyMCPTool$inboundSchema = z.object({
273
- _id: z.string().default("tool_01KTAD9Z5JVZM466N0BFP1666T"),
273
+ _id: z.string().default("tool_01KTCS7JY8Z2BGJA6NW1R7TEE1"),
274
274
  path: z.string(),
275
275
  key: z.string(),
276
276
  display_name: z.string().optional(),
@@ -357,7 +357,7 @@ function retrieveToolResponseBodyHttpFromJSON(jsonString) {
357
357
  }
358
358
  /** @internal */
359
359
  exports.RetrieveToolResponseBodyHTTPTool$inboundSchema = z.object({
360
- _id: z.string().default("tool_01KTAD9Z5FVK7WPTSZ4QZREDGW"),
360
+ _id: z.string().default("tool_01KTCS7JY54R06AJVJZKCBFHY5"),
361
361
  path: z.string(),
362
362
  key: z.string(),
363
363
  display_name: z.string().optional(),
@@ -407,7 +407,7 @@ function retrieveToolResponseBodyJsonSchemaFromJSON(jsonString) {
407
407
  }
408
408
  /** @internal */
409
409
  exports.RetrieveToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
410
- _id: z.string().default("tool_01KTAD9Z5DGNTXC5XV956NT5S4"),
410
+ _id: z.string().default("tool_01KTCS7JY32J0AGJEYH4XX8FT3"),
411
411
  path: z.string(),
412
412
  key: z.string(),
413
413
  display_name: z.string().optional(),
@@ -461,7 +461,7 @@ function retrieveToolResponseBodyFunctionFromJSON(jsonString) {
461
461
  }
462
462
  /** @internal */
463
463
  exports.RetrieveToolResponseBodyFunctionTool$inboundSchema = z.object({
464
- _id: z.string().default("tool_01KTAD9Z5BVPKPRGAE5ZNGVZ5N"),
464
+ _id: z.string().default("tool_01KTCS7JY2H5C8S7V36VDWJAAC"),
465
465
  path: z.string(),
466
466
  key: z.string(),
467
467
  display_name: z.string().optional(),
@@ -1000,7 +1000,7 @@ function agentToolInputRunSchemaToJSON(agentToolInputRunSchema) {
1000
1000
  }
1001
1001
  /** @internal */
1002
1002
  exports.Tools$outboundSchema = z.object({
1003
- id: z.string().default("01KTAD9YV96EDW3EXP96B31RNV"),
1003
+ id: z.string().default("01KTCS7JNSHMEGTC89Y9DRJGQE"),
1004
1004
  name: z.string(),
1005
1005
  description: z.string().optional(),
1006
1006
  schema: z.lazy(() => exports.AgentToolInputRunSchema$outboundSchema),
@@ -963,7 +963,7 @@ function streamRunAgentAgentToolInputRunAgentsSchemaToJSON(streamRunAgentAgentTo
963
963
  }
964
964
  /** @internal */
965
965
  exports.AgentToolInputRunTools$outboundSchema = z.object({
966
- id: z.string().default("01KTAD9YX77JDRHQHJQSJEA45H"),
966
+ id: z.string().default("01KTCS7JQJQ3224B38EJ5XYEVV"),
967
967
  name: z.string(),
968
968
  description: z.string().optional(),
969
969
  schema: z.lazy(() => exports.StreamRunAgentAgentToolInputRunAgentsSchema$outboundSchema),
@@ -745,7 +745,7 @@ exports.UpdateDatapointEvaluations3$inboundSchema = z.object({
745
745
  source: exports.UpdateDatapointEvaluationsDatasetsResponseSource$inboundSchema
746
746
  .default("orq"),
747
747
  reviewed_by_id: z.string(),
748
- reviewed_at: z.string().datetime({ offset: true }).default("2026-06-04T22:50:47.204Z").transform(v => new Date(v)),
748
+ reviewed_at: z.string().datetime({ offset: true }).default("2026-06-05T20:57:40.764Z").transform(v => new Date(v)),
749
749
  type: z.literal("string_array"),
750
750
  values: z.array(z.string()),
751
751
  }).transform((v) => {
@@ -772,7 +772,7 @@ exports.UpdateDatapointEvaluations2$inboundSchema = z.object({
772
772
  human_review_id: z.string(),
773
773
  source: exports.UpdateDatapointEvaluationsDatasetsSource$inboundSchema.default("orq"),
774
774
  reviewed_by_id: z.string(),
775
- reviewed_at: z.string().datetime({ offset: true }).default("2026-06-04T22:50:47.203Z").transform(v => new Date(v)),
775
+ reviewed_at: z.string().datetime({ offset: true }).default("2026-06-05T20:57:40.763Z").transform(v => new Date(v)),
776
776
  type: z.literal("number"),
777
777
  value: z.number(),
778
778
  }).transform((v) => {
@@ -798,7 +798,7 @@ exports.UpdateDatapointEvaluations1$inboundSchema = z.object({
798
798
  human_review_id: z.string(),
799
799
  source: exports.UpdateDatapointEvaluationsSource$inboundSchema.default("orq"),
800
800
  reviewed_by_id: z.string(),
801
- reviewed_at: z.string().datetime({ offset: true }).default("2026-06-04T22:50:47.202Z").transform(v => new Date(v)),
801
+ reviewed_at: z.string().datetime({ offset: true }).default("2026-06-05T20:57:40.763Z").transform(v => new Date(v)),
802
802
  type: z.literal("string"),
803
803
  value: z.string(),
804
804
  }).transform((v) => {
@@ -845,7 +845,7 @@ exports.UpdateDatapointResponseBody$inboundSchema = z.object({
845
845
  updated_by_id: z.nullable(z.string()).optional(),
846
846
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
847
847
  .optional(),
848
- updated: z.string().datetime({ offset: true }).default("2026-06-04T22:50:21.754Z").transform(v => new Date(v)),
848
+ updated: z.string().datetime({ offset: true }).default("2026-06-05T20:57:22.141Z").transform(v => new Date(v)),
849
849
  }).transform((v) => {
850
850
  return (0, primitives_js_1.remap)(v, {
851
851
  "_id": "id",
@@ -95,7 +95,7 @@ exports.UpdateDatasetResponseBody$inboundSchema = z.object({
95
95
  updated_by_id: z.nullable(z.string()).optional(),
96
96
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
97
97
  .optional(),
98
- updated: z.string().datetime({ offset: true }).default("2026-06-04T22:50:21.754Z").transform(v => new Date(v)),
98
+ updated: z.string().datetime({ offset: true }).default("2026-06-05T20:57:22.141Z").transform(v => new Date(v)),
99
99
  }).transform((v) => {
100
100
  return (0, primitives_js_1.remap)(v, {
101
101
  "_id": "id",
@@ -80,7 +80,7 @@ function updateDatasourceRequestToJSON(updateDatasourceRequest) {
80
80
  exports.UpdateDatasourceStatus$inboundSchema = z.nativeEnum(exports.UpdateDatasourceStatus);
81
81
  /** @internal */
82
82
  exports.UpdateDatasourceResponseBody$inboundSchema = z.object({
83
- _id: z.string().default("01KTAD9ZBA9G7W872J8M0E067E"),
83
+ _id: z.string().default("01KTCS7K1CVEPZDXESBMMHXX5Y"),
84
84
  display_name: z.string(),
85
85
  description: z.nullable(z.string()).optional(),
86
86
  status: exports.UpdateDatasourceStatus$inboundSchema,
@@ -526,8 +526,8 @@ exports.UpdateEvalResponseBodyEvalsResponse200ApplicationJson7Type$inboundSchema
526
526
  exports.ResponseBodyTypescript$inboundSchema = z.object({
527
527
  _id: z.string(),
528
528
  description: z.string(),
529
- created: z.string().default("2026-06-04T22:50:23.649Z"),
530
- updated: z.string().default("2026-06-04T22:50:23.649Z"),
529
+ created: z.string().default("2026-06-05T20:57:23.530Z"),
530
+ updated: z.string().default("2026-06-05T20:57:23.530Z"),
531
531
  updated_by_id: z.nullable(z.string()).optional(),
532
532
  guardrail_config: z.nullable(z.union([
533
533
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema),
@@ -613,8 +613,8 @@ exports.ResponseBodyRagasMetric$inboundSchema = z.nativeEnum(exports.ResponseBod
613
613
  exports.ResponseBodyRagas$inboundSchema = z.object({
614
614
  _id: z.string(),
615
615
  description: z.string(),
616
- created: z.string().default("2026-06-04T22:50:23.649Z"),
617
- updated: z.string().default("2026-06-04T22:50:23.649Z"),
616
+ created: z.string().default("2026-06-05T20:57:23.530Z"),
617
+ updated: z.string().default("2026-06-05T20:57:23.530Z"),
618
618
  updated_by_id: z.nullable(z.string()).optional(),
619
619
  guardrail_config: z.nullable(z.union([
620
620
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema),
@@ -972,8 +972,8 @@ function responseBodyFunctionParamsFromJSON(jsonString) {
972
972
  exports.ResponseBodyFunction$inboundSchema = z.object({
973
973
  _id: z.string(),
974
974
  description: z.string(),
975
- created: z.string().default("2026-06-04T22:50:23.649Z"),
976
- updated: z.string().default("2026-06-04T22:50:23.649Z"),
975
+ created: z.string().default("2026-06-05T20:57:23.530Z"),
976
+ updated: z.string().default("2026-06-05T20:57:23.530Z"),
977
977
  updated_by_id: z.nullable(z.string()).optional(),
978
978
  guardrail_config: z.nullable(z.union([
979
979
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema),
@@ -1089,8 +1089,8 @@ exports.UpdateEvalResponseBodyEvalsResponseType$inboundSchema = z
1089
1089
  exports.UpdateEvalResponseBodyPython$inboundSchema = z.object({
1090
1090
  _id: z.string(),
1091
1091
  description: z.string(),
1092
- created: z.string().default("2026-06-04T22:50:23.649Z"),
1093
- updated: z.string().default("2026-06-04T22:50:23.649Z"),
1092
+ created: z.string().default("2026-06-05T20:57:23.530Z"),
1093
+ updated: z.string().default("2026-06-05T20:57:23.530Z"),
1094
1094
  updated_by_id: z.nullable(z.string()).optional(),
1095
1095
  guardrail_config: z.nullable(z.union([
1096
1096
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
@@ -1172,8 +1172,8 @@ exports.ResponseBodyMethod$inboundSchema = z.nativeEnum(exports.ResponseBodyMeth
1172
1172
  exports.ResponseBodyHTTP$inboundSchema = z.object({
1173
1173
  _id: z.string(),
1174
1174
  description: z.string(),
1175
- created: z.string().default("2026-06-04T22:50:23.649Z"),
1176
- updated: z.string().default("2026-06-04T22:50:23.649Z"),
1175
+ created: z.string().default("2026-06-05T20:57:23.530Z"),
1176
+ updated: z.string().default("2026-06-05T20:57:23.530Z"),
1177
1177
  updated_by_id: z.nullable(z.string()).optional(),
1178
1178
  guardrail_config: z.nullable(z.union([
1179
1179
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsBoolean$inboundSchema),
@@ -1256,8 +1256,8 @@ exports.UpdateEvalResponseBodyType$inboundSchema = z.nativeEnum(exports.UpdateEv
1256
1256
  exports.ResponseBodyJSON$inboundSchema = z.object({
1257
1257
  _id: z.string(),
1258
1258
  description: z.string(),
1259
- created: z.string().default("2026-06-04T22:50:23.649Z"),
1260
- updated: z.string().default("2026-06-04T22:50:23.649Z"),
1259
+ created: z.string().default("2026-06-05T20:57:23.530Z"),
1260
+ updated: z.string().default("2026-06-05T20:57:23.530Z"),
1261
1261
  updated_by_id: z.nullable(z.string()).optional(),
1262
1262
  guardrail_config: z.nullable(z.union([
1263
1263
  z.lazy(() => exports.UpdateEvalGuardrailConfigBoolean$inboundSchema),
@@ -1424,8 +1424,8 @@ function updateEvalLLMJuryFromJSON(jsonString) {
1424
1424
  exports.UpdateEvalLlm2$inboundSchema = z.object({
1425
1425
  _id: z.string(),
1426
1426
  description: z.string(),
1427
- created: z.string().default("2026-06-04T22:50:23.649Z"),
1428
- updated: z.string().default("2026-06-04T22:50:23.649Z"),
1427
+ created: z.string().default("2026-06-05T20:57:23.530Z"),
1428
+ updated: z.string().default("2026-06-05T20:57:23.530Z"),
1429
1429
  updated_by_id: z.nullable(z.string()).optional(),
1430
1430
  guardrail_config: z.nullable(z.union([
1431
1431
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean$inboundSchema),
@@ -1524,8 +1524,8 @@ function updateEvalLLMCategoricalLabelsFromJSON(jsonString) {
1524
1524
  exports.UpdateEvalLlm1$inboundSchema = z.object({
1525
1525
  _id: z.string(),
1526
1526
  description: z.string(),
1527
- created: z.string().default("2026-06-04T22:50:23.649Z"),
1528
- updated: z.string().default("2026-06-04T22:50:23.649Z"),
1527
+ created: z.string().default("2026-06-05T20:57:23.530Z"),
1528
+ updated: z.string().default("2026-06-05T20:57:23.530Z"),
1529
1529
  updated_by_id: z.nullable(z.string()).optional(),
1530
1530
  guardrail_config: z.nullable(z.union([
1531
1531
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean$inboundSchema),
@@ -371,7 +371,7 @@ function updateToolRequestBodyToolsSchemaToJSON(updateToolRequestBodyToolsSchema
371
371
  }
372
372
  /** @internal */
373
373
  exports.RequestBodyTools$outboundSchema = z.object({
374
- id: z.string().default("01KTAD9Z4TXTTD5PY8NKP9HG4W"),
374
+ id: z.string().default("01KTCS7JXMT83JZ2SJCAJ4WVPE"),
375
375
  name: z.string(),
376
376
  description: z.string().optional(),
377
377
  schema: z.lazy(() => exports.UpdateToolRequestBodyToolsSchema$outboundSchema),
@@ -666,7 +666,7 @@ function updateToolResponseBodyCodeToolFromJSON(jsonString) {
666
666
  }
667
667
  /** @internal */
668
668
  exports.UpdateToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
669
- _id: z.string().default("tool_01KTAD9Z4H5G32D9HGWSBTDSBD"),
669
+ _id: z.string().default("tool_01KTCS7JXDW4THPSRWM5ZSC5V2"),
670
670
  path: z.string(),
671
671
  key: z.string(),
672
672
  display_name: z.string().optional(),
@@ -719,7 +719,7 @@ function updateToolResponseBodyToolsSchemaFromJSON(jsonString) {
719
719
  }
720
720
  /** @internal */
721
721
  exports.UpdateToolResponseBodyTools$inboundSchema = z.object({
722
- id: z.string().default("01KTAD9Z4GC239NH8B9P10ZGYG"),
722
+ id: z.string().default("01KTCS7JXCRY4VSZP6EZFW4XGG"),
723
723
  name: z.string(),
724
724
  description: z.string().optional(),
725
725
  schema: z.lazy(() => exports.UpdateToolResponseBodyToolsSchema$inboundSchema),
@@ -749,7 +749,7 @@ function updateToolResponseBodyMcpFromJSON(jsonString) {
749
749
  }
750
750
  /** @internal */
751
751
  exports.UpdateToolResponseBodyMCPTool$inboundSchema = z.object({
752
- _id: z.string().default("tool_01KTAD9Z4E8AR6CDC840FPB3C2"),
752
+ _id: z.string().default("tool_01KTCS7JXBDTVBK3Y7W39X3NJM"),
753
753
  path: z.string(),
754
754
  key: z.string(),
755
755
  display_name: z.string().optional(),
@@ -836,7 +836,7 @@ function updateToolResponseBodyHttpFromJSON(jsonString) {
836
836
  }
837
837
  /** @internal */
838
838
  exports.UpdateToolResponseBodyHTTPTool$inboundSchema = z.object({
839
- _id: z.string().default("tool_01KTAD9Z4BD07N0ZCH3P4S9Z7D"),
839
+ _id: z.string().default("tool_01KTCS7JX9PFXXR5DBWVDAWAPP"),
840
840
  path: z.string(),
841
841
  key: z.string(),
842
842
  display_name: z.string().optional(),
@@ -886,7 +886,7 @@ function updateToolResponseBodyJsonSchemaFromJSON(jsonString) {
886
886
  }
887
887
  /** @internal */
888
888
  exports.UpdateToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
889
- _id: z.string().default("tool_01KTAD9Z487WK4546582WEYP79"),
889
+ _id: z.string().default("tool_01KTCS7JX7YC50ASYY4FGT91JY"),
890
890
  path: z.string(),
891
891
  key: z.string(),
892
892
  display_name: z.string().optional(),
@@ -940,7 +940,7 @@ function updateToolResponseBodyFunctionFromJSON(jsonString) {
940
940
  }
941
941
  /** @internal */
942
942
  exports.UpdateToolResponseBodyFunctionTool$inboundSchema = z.object({
943
- _id: z.string().default("tool_01KTAD9Z47XH0MJS308R9DMVHX"),
943
+ _id: z.string().default("tool_01KTCS7JX6VKKWSKDDM9FQGXXH"),
944
944
  path: z.string(),
945
945
  key: z.string(),
946
946
  display_name: z.string().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orq-ai/node",
3
- "version": "4.10.2",
3
+ "version": "4.10.6",
4
4
  "author": "Orq",
5
5
  "exports": {
6
6
  ".": {
@@ -28,6 +28,9 @@ import { Result } from "../types/fp.js";
28
28
 
29
29
  /**
30
30
  * Delete a file
31
+ *
32
+ * @remarks
33
+ * Permanently deletes a file and its stored content from the project.
31
34
  */
32
35
  export function filesDelete(
33
36
  client: OrqCore,
@@ -58,7 +58,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
58
58
  export const SDK_METADATA = {
59
59
  language: "typescript",
60
60
  openapiDocVersion: "2.0",
61
- sdkVersion: "4.10.0-rc.88",
61
+ sdkVersion: "4.11.0-rc.1",
62
62
  genVersion: "2.893.0",
63
- userAgent: "speakeasy-sdk/typescript 4.10.0-rc.88 2.893.0 2.0 @orq-ai/node",
63
+ userAgent: "speakeasy-sdk/typescript 4.11.0-rc.1 2.893.0 2.0 @orq-ai/node",
64
64
  } as const;
@@ -33,27 +33,27 @@ export type ApiKey = {
33
33
  * @remarks
34
34
  * `sk-orq-<id>-<secret>`.
35
35
  */
36
- apiKeyId?: string | undefined;
36
+ apiKeyId: string;
37
37
  /**
38
38
  * Human-readable name shown in the dashboard.
39
39
  */
40
- name?: string | undefined;
40
+ name: string;
41
41
  /**
42
42
  * Owner attribution (drives lifecycle).
43
43
  */
44
- owner?: ApiKeyOwner | undefined;
44
+ owner: ApiKeyOwner;
45
45
  /**
46
46
  * Project authorization scope.
47
47
  */
48
- projectScope?: ProjectScope | undefined;
49
- permissionMode?: PermissionMode | undefined;
48
+ projectScope: ProjectScope;
49
+ permissionMode: PermissionMode;
50
50
  /**
51
51
  * Per-domain access map. Only populated when `permission_mode` is
52
52
  *
53
53
  * @remarks
54
54
  * `PERMISSION_MODE_RESTRICTED`. The authoritative list of valid
55
55
  * keys and the per-domain read / write semantics are exposed at
56
- * runtime via the `ListCapabilities` RPC.
56
+ * runtime via the capability catalog endpoint.
57
57
  *
58
58
  * Valid keys are the Domain.id values in the capability catalog —
59
59
  * see libs/catalog/orq/apikeys/v1/catalog.textpb for the canonical
@@ -71,8 +71,8 @@ export type ApiKey = {
71
71
  * @remarks
72
72
  * to expose.
73
73
  */
74
- tokenPrefix?: string | undefined;
75
- status?: ApiKeyStatus | undefined;
74
+ tokenPrefix: string;
75
+ status: ApiKeyStatus;
76
76
  /**
77
77
  * Audit: user who created the key. Optional. Distinct from
78
78
  *
@@ -88,11 +88,11 @@ export type ApiKey = {
88
88
  /**
89
89
  * Time the key was created.
90
90
  */
91
- createdAt?: Date | undefined;
91
+ createdAt: Date;
92
92
  /**
93
93
  * Time the key was last updated.
94
94
  */
95
- updatedAt?: Date | undefined;
95
+ updatedAt: Date;
96
96
  /**
97
97
  * Last authenticated use. Updated via NATS debounce + 1% sampler.
98
98
  */
@@ -117,22 +117,22 @@ export type ApiKey = {
117
117
  /** @internal */
118
118
  export const ApiKey$inboundSchema: z.ZodType<ApiKey, z.ZodTypeDef, unknown> = z
119
119
  .object({
120
- api_key_id: z.string().optional(),
121
- name: z.string().optional(),
122
- owner: ApiKeyOwner$inboundSchema.optional(),
123
- project_scope: ProjectScope$inboundSchema.optional(),
124
- permission_mode: PermissionMode$inboundSchema.optional(),
120
+ api_key_id: z.string(),
121
+ name: z.string(),
122
+ owner: ApiKeyOwner$inboundSchema,
123
+ project_scope: ProjectScope$inboundSchema,
124
+ permission_mode: PermissionMode$inboundSchema,
125
125
  access: z.record(z.number().int()).optional(),
126
- token_prefix: z.string().optional(),
127
- status: ApiKeyStatus$inboundSchema.optional(),
126
+ token_prefix: z.string(),
127
+ status: ApiKeyStatus$inboundSchema,
128
128
  created_by_id: z.string().optional(),
129
129
  updated_by_id: z.string().optional(),
130
130
  created_at: z.string().datetime({ offset: true }).transform(v =>
131
131
  new Date(v)
132
- ).optional(),
132
+ ),
133
133
  updated_at: z.string().datetime({ offset: true }).transform(v =>
134
134
  new Date(v)
135
- ).optional(),
135
+ ),
136
136
  last_used_at: z.string().datetime({ offset: true }).transform(v =>
137
137
  new Date(v)
138
138
  ).optional(),
@@ -23,7 +23,7 @@ export type CreateApiKeyRequest = {
23
23
  /**
24
24
  * Human-readable name. Required.
25
25
  */
26
- name?: string | undefined;
26
+ name: string;
27
27
  /**
28
28
  * Owner attribution. Defaults to service_account when omitted.
29
29
  */
@@ -39,7 +39,7 @@ export type CreateApiKeyRequest = {
39
39
  * @remarks
40
40
  * `PERMISSION_MODE_RESTRICTED`. See `ApiKey.access` for the full
41
41
  * catalog of valid keys (Domain.id) and AccessLevel string values,
42
- * or fetch the live catalog via the `ListCapabilities` RPC.
42
+ * or fetch the live catalog via the capability catalog endpoint.
43
43
  */
44
44
  access?: { [k: string]: number } | undefined;
45
45
  /**
@@ -54,7 +54,7 @@ export type CreateApiKeyRequest = {
54
54
 
55
55
  /** @internal */
56
56
  export type CreateApiKeyRequest$Outbound = {
57
- name?: string | undefined;
57
+ name: string;
58
58
  owner?: ApiKeyOwner$Outbound | undefined;
59
59
  project_scope?: ProjectScope$Outbound | undefined;
60
60
  permission_mode?: string | undefined;
@@ -68,7 +68,7 @@ export const CreateApiKeyRequest$outboundSchema: z.ZodType<
68
68
  z.ZodTypeDef,
69
69
  CreateApiKeyRequest
70
70
  > = z.object({
71
- name: z.string().optional(),
71
+ name: z.string(),
72
72
  owner: ApiKeyOwner$outboundSchema.optional(),
73
73
  projectScope: ProjectScope$outboundSchema.optional(),
74
74
  permissionMode: PermissionMode$outboundSchema.optional(),
@@ -13,7 +13,7 @@ export type CreateApiKeyResponse = {
13
13
  /**
14
14
  * Newly minted api-key record.
15
15
  */
16
- apiKey?: ApiKey | undefined;
16
+ apiKey: ApiKey;
17
17
  /**
18
18
  * Raw bearer token in the form `sk-orq-<api_key_id>-<secret>`.
19
19
  *
@@ -21,7 +21,7 @@ export type CreateApiKeyResponse = {
21
21
  * Returned ONCE; the API never exposes this value again. Clients
22
22
  * must persist it immediately on receipt.
23
23
  */
24
- token?: string | undefined;
24
+ token: string;
25
25
  };
26
26
 
27
27
  /** @internal */
@@ -30,8 +30,8 @@ export const CreateApiKeyResponse$inboundSchema: z.ZodType<
30
30
  z.ZodTypeDef,
31
31
  unknown
32
32
  > = z.object({
33
- api_key: ApiKey$inboundSchema.optional(),
34
- token: z.string().optional(),
33
+ api_key: ApiKey$inboundSchema,
34
+ token: z.string(),
35
35
  }).transform((v) => {
36
36
  return remap$(v, {
37
37
  "api_key": "apiKey",
@@ -7,9 +7,18 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { FilePurpose, FilePurpose$outboundSchema } from "./filepurpose.js";
8
8
 
9
9
  export type CreateFileRequest = {
10
- filename?: string | undefined;
11
- content?: string | undefined;
10
+ /**
11
+ * Name to store for the uploaded file, including extension when available.
12
+ */
13
+ filename: string;
14
+ /**
15
+ * Base64-encoded file contents.
16
+ */
17
+ content: string;
12
18
  purpose?: FilePurpose | undefined;
19
+ /**
20
+ * MIME type of the uploaded content, for example `application/pdf`.
21
+ */
13
22
  contentType?: string | undefined;
14
23
  /**
15
24
  * Project the file is created in. Optional for project-scoped API keys (defaults to the key's bound project); required for workspace-scoped callers.
@@ -19,8 +28,8 @@ export type CreateFileRequest = {
19
28
 
20
29
  /** @internal */
21
30
  export type CreateFileRequest$Outbound = {
22
- filename?: string | undefined;
23
- content?: string | undefined;
31
+ filename: string;
32
+ content: string;
24
33
  purpose?: string | undefined;
25
34
  content_type?: string | undefined;
26
35
  project_id?: string | undefined;
@@ -32,8 +41,8 @@ export const CreateFileRequest$outboundSchema: z.ZodType<
32
41
  z.ZodTypeDef,
33
42
  CreateFileRequest
34
43
  > = z.object({
35
- filename: z.string().optional(),
36
- content: z.string().optional(),
44
+ filename: z.string(),
45
+ content: z.string(),
37
46
  purpose: FilePurpose$outboundSchema.optional(),
38
47
  contentType: z.string().optional(),
39
48
  projectId: z.string().optional(),
@@ -9,7 +9,10 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
9
  import { FileT, FileT$inboundSchema } from "./file.js";
10
10
 
11
11
  export type CreateFileResponse = {
12
- file?: FileT | undefined;
12
+ /**
13
+ * Newly created file.
14
+ */
15
+ file: FileT;
13
16
  };
14
17
 
15
18
  /** @internal */
@@ -18,7 +21,7 @@ export const CreateFileResponse$inboundSchema: z.ZodType<
18
21
  z.ZodTypeDef,
19
22
  unknown
20
23
  > = z.object({
21
- file: FileT$inboundSchema.optional(),
24
+ file: FileT$inboundSchema,
22
25
  });
23
26
 
24
27
  export function createFileResponseFromJSON(
@@ -5,14 +5,38 @@
5
5
  import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
 
8
+ /**
9
+ * Custom JSON metadata stored with the identity.
10
+ */
8
11
  export type CreateIdentityRequestMetadata = {};
9
12
 
10
13
  export type CreateIdentityRequest = {
11
- externalId?: string | undefined;
14
+ /**
15
+ * Customer-provided stable identifier for this identity. Must be unique
16
+ *
17
+ * @remarks
18
+ * within the workspace.
19
+ */
20
+ externalId: string;
21
+ /**
22
+ * Human-readable display name for the identity.
23
+ */
12
24
  displayName?: string | undefined;
25
+ /**
26
+ * Email address associated with the identity.
27
+ */
13
28
  email?: string | undefined;
29
+ /**
30
+ * URL of the identity avatar image.
31
+ */
14
32
  avatarUrl?: string | undefined;
33
+ /**
34
+ * Free-form labels used to organize and filter identities.
35
+ */
15
36
  tags?: Array<string> | undefined;
37
+ /**
38
+ * Custom JSON metadata stored with the identity.
39
+ */
16
40
  metadata?: CreateIdentityRequestMetadata | undefined;
17
41
  };
18
42
 
@@ -38,7 +62,7 @@ export function createIdentityRequestMetadataToJSON(
38
62
 
39
63
  /** @internal */
40
64
  export type CreateIdentityRequest$Outbound = {
41
- external_id?: string | undefined;
65
+ external_id: string;
42
66
  display_name?: string | undefined;
43
67
  email?: string | undefined;
44
68
  avatar_url?: string | undefined;
@@ -52,7 +76,7 @@ export const CreateIdentityRequest$outboundSchema: z.ZodType<
52
76
  z.ZodTypeDef,
53
77
  CreateIdentityRequest
54
78
  > = z.object({
55
- externalId: z.string().optional(),
79
+ externalId: z.string(),
56
80
  displayName: z.string().optional(),
57
81
  email: z.string().optional(),
58
82
  avatarUrl: z.string().optional(),
@@ -9,7 +9,10 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
9
  import { Identity, Identity$inboundSchema } from "./identity.js";
10
10
 
11
11
  export type CreateIdentityResponse = {
12
- identity?: Identity | undefined;
12
+ /**
13
+ * Newly created identity.
14
+ */
15
+ identity: Identity;
13
16
  };
14
17
 
15
18
  /** @internal */
@@ -18,7 +21,7 @@ export const CreateIdentityResponse$inboundSchema: z.ZodType<
18
21
  z.ZodTypeDef,
19
22
  unknown
20
23
  > = z.object({
21
- identity: Identity$inboundSchema.optional(),
24
+ identity: Identity$inboundSchema,
22
25
  });
23
26
 
24
27
  export function createIdentityResponseFromJSON(
@@ -8,7 +8,7 @@ export type CreateProjectRequest = {
8
8
  /**
9
9
  * Project name. Names must be non-empty and at most 128 characters.
10
10
  */
11
- name?: string | undefined;
11
+ name: string;
12
12
  /**
13
13
  * Team identifiers to associate with the project.
14
14
  */
@@ -21,7 +21,7 @@ export type CreateProjectRequest = {
21
21
 
22
22
  /** @internal */
23
23
  export type CreateProjectRequest$Outbound = {
24
- name?: string | undefined;
24
+ name: string;
25
25
  teams?: Array<string> | undefined;
26
26
  description?: string | undefined;
27
27
  };
@@ -32,7 +32,7 @@ export const CreateProjectRequest$outboundSchema: z.ZodType<
32
32
  z.ZodTypeDef,
33
33
  CreateProjectRequest
34
34
  > = z.object({
35
- name: z.string().optional(),
35
+ name: z.string(),
36
36
  teams: z.array(z.string()).optional(),
37
37
  description: z.string().optional(),
38
38
  });
@@ -12,7 +12,7 @@ export type CreateProjectResponse = {
12
12
  /**
13
13
  * Newly created project.
14
14
  */
15
- project?: Project | undefined;
15
+ project: Project;
16
16
  };
17
17
 
18
18
  /** @internal */
@@ -21,7 +21,7 @@ export const CreateProjectResponse$inboundSchema: z.ZodType<
21
21
  z.ZodTypeDef,
22
22
  unknown
23
23
  > = z.object({
24
- project: Project$inboundSchema.optional(),
24
+ project: Project$inboundSchema,
25
25
  });
26
26
 
27
27
  export function createProjectResponseFromJSON(