@orq-ai/node 4.14.14 → 4.14.16

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 (126) 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/evaluatorresponsefunction.js +2 -2
  5. package/models/components/evaluatorresponsehttp.js +2 -2
  6. package/models/components/evaluatorresponsejsonschema.js +2 -2
  7. package/models/components/evaluatorresponsellm.js +2 -2
  8. package/models/components/evaluatorresponsepython.js +2 -2
  9. package/models/components/evaluatorresponseragas.js +2 -2
  10. package/models/components/evaluatorresponsetypescript.js +2 -2
  11. package/models/components/reasoningpart.js +1 -1
  12. package/models/operations/createannotationqueue.js +1 -1
  13. package/models/operations/createdataset.js +1 -1
  14. package/models/operations/createdatasetitem.js +5 -5
  15. package/models/operations/createtool.js +4 -4
  16. package/models/operations/getalltools.js +4 -4
  17. package/models/operations/geteval.js +16 -16
  18. package/models/operations/getv2humanevalsets.js +2 -2
  19. package/models/operations/getv2humanevalsetsid.js +2 -2
  20. package/models/operations/listannotationqueues.js +1 -1
  21. package/models/operations/listdatasetdatapoints.js +5 -5
  22. package/models/operations/listdatasets.js +1 -1
  23. package/models/operations/listdatasources.js +1 -1
  24. package/models/operations/listdatasources.js.map +1 -1
  25. package/models/operations/patchv2humanevalsetsid.js +2 -2
  26. package/models/operations/postv2feedbackevaluation.js +4 -4
  27. package/models/operations/postv2humanevalsets.js +2 -2
  28. package/models/operations/retrieveannotationqueue.js +1 -1
  29. package/models/operations/retrievedatapoint.js +5 -5
  30. package/models/operations/retrievedataset.js +1 -1
  31. package/models/operations/retrievetool.js +4 -4
  32. package/models/operations/runagent.js +1 -1
  33. package/models/operations/streamrunagent.js +1 -1
  34. package/models/operations/updateannotationqueue.js +1 -1
  35. package/models/operations/updatedatapoint.js +5 -5
  36. package/models/operations/updatedataset.js +1 -1
  37. package/models/operations/updatetool.js +4 -4
  38. package/package.json +7 -7
  39. package/packages/orq-rc/src/funcs/budgetsCreate.ts +1 -1
  40. package/packages/orq-rc/src/funcs/budgetsDelete.ts +1 -1
  41. package/packages/orq-rc/src/funcs/budgetsGet.ts +1 -1
  42. package/packages/orq-rc/src/funcs/budgetsList.ts +1 -1
  43. package/packages/orq-rc/src/funcs/budgetsResetConsumption.ts +1 -1
  44. package/packages/orq-rc/src/funcs/budgetsUpdate.ts +1 -1
  45. package/packages/orq-rc/src/funcs/evalsCreate.ts +4 -5
  46. package/packages/orq-rc/src/funcs/evalsGet.ts +4 -5
  47. package/packages/orq-rc/src/funcs/evalsGetVersion.ts +4 -5
  48. package/packages/orq-rc/src/funcs/evalsInvoke.ts +4 -4
  49. package/packages/orq-rc/src/funcs/evalsUpdate.ts +4 -5
  50. package/packages/orq-rc/src/lib/config.ts +2 -2
  51. package/packages/orq-rc/src/models/components/budgetlimit.ts +11 -9
  52. package/packages/orq-rc/src/models/components/chatkitresource.ts +45 -0
  53. package/packages/orq-rc/src/models/components/chatkitresources.ts +36 -0
  54. package/packages/orq-rc/src/models/components/filter.ts +7 -9
  55. package/packages/orq-rc/src/models/components/index.ts +2 -3
  56. package/packages/orq-rc/src/models/components/managementkey.ts +3 -4
  57. package/packages/orq-rc/src/models/components/modelmetadata.ts +6 -0
  58. package/packages/orq-rc/src/models/components/modelsconfig.ts +11 -10
  59. package/packages/orq-rc/src/models/components/monitorfilter.ts +11 -7
  60. package/packages/orq-rc/src/models/components/queryreportrequest.ts +10 -11
  61. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  62. package/packages/orq-rc/src/models/components/responsemeta.ts +6 -7
  63. package/packages/orq-rc/src/models/components/updateworkspacerequest.ts +9 -0
  64. package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
  65. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +5 -5
  66. package/packages/orq-rc/src/models/operations/createeval.ts +25 -0
  67. package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
  68. package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
  69. package/packages/orq-rc/src/models/operations/geteval.ts +25 -0
  70. package/packages/orq-rc/src/models/operations/getevalversion.ts +25 -0
  71. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  72. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  73. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +5 -5
  74. package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
  75. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  76. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +4 -4
  77. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  78. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +5 -5
  79. package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
  80. package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
  81. package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
  82. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
  83. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +5 -5
  84. package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
  85. package/packages/orq-rc/src/models/operations/updateeval.ts +25 -0
  86. package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
  87. package/packages/orq-rc/src/sdk/budgets.ts +6 -6
  88. package/packages/orq-rc/src/sdk/evals.ts +5 -5
  89. package/packages/orq-rc/src/sdk/sdk.ts +15 -15
  90. package/src/lib/config.ts +2 -2
  91. package/src/models/components/evaluatorresponsefunction.ts +2 -2
  92. package/src/models/components/evaluatorresponsehttp.ts +2 -2
  93. package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
  94. package/src/models/components/evaluatorresponsellm.ts +2 -2
  95. package/src/models/components/evaluatorresponsepython.ts +2 -2
  96. package/src/models/components/evaluatorresponseragas.ts +2 -2
  97. package/src/models/components/evaluatorresponsetypescript.ts +2 -2
  98. package/src/models/components/reasoningpart.ts +1 -1
  99. package/src/models/operations/createannotationqueue.ts +1 -1
  100. package/src/models/operations/createdataset.ts +1 -1
  101. package/src/models/operations/createdatasetitem.ts +5 -5
  102. package/src/models/operations/createtool.ts +4 -4
  103. package/src/models/operations/getalltools.ts +4 -4
  104. package/src/models/operations/geteval.ts +16 -16
  105. package/src/models/operations/getv2humanevalsets.ts +2 -2
  106. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  107. package/src/models/operations/listannotationqueues.ts +1 -1
  108. package/src/models/operations/listdatasetdatapoints.ts +5 -5
  109. package/src/models/operations/listdatasets.ts +1 -1
  110. package/src/models/operations/listdatasources.ts +1 -1
  111. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  112. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  113. package/src/models/operations/postv2humanevalsets.ts +2 -2
  114. package/src/models/operations/retrieveannotationqueue.ts +1 -1
  115. package/src/models/operations/retrievedatapoint.ts +5 -5
  116. package/src/models/operations/retrievedataset.ts +1 -1
  117. package/src/models/operations/retrievetool.ts +4 -4
  118. package/src/models/operations/runagent.ts +1 -1
  119. package/src/models/operations/streamrunagent.ts +1 -1
  120. package/src/models/operations/updateannotationqueue.ts +1 -1
  121. package/src/models/operations/updatedatapoint.ts +5 -5
  122. package/src/models/operations/updatedataset.ts +1 -1
  123. package/src/models/operations/updatetool.ts +4 -4
  124. package/packages/orq-rc/src/models/components/evaluatordocumentresponse.ts +0 -50
  125. package/packages/orq-rc/src/models/components/getevaluatorversionresponse.ts +0 -58
  126. package/packages/orq-rc/src/models/components/invokeevaluatorresponse.ts +0 -47
@@ -164,7 +164,7 @@ function retrieveToolResponseBodyCodeToolFromJSON(jsonString) {
164
164
  }
165
165
  /** @internal */
166
166
  exports.RetrieveToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
167
- _id: z.string().default("tool_01M1XMRH79ARZTSAA2KQ7141K1"),
167
+ _id: z.string().default("tool_01M25H27P7B8K9X2DA9B2EWKDQ"),
168
168
  path: z.string(),
169
169
  key: z.string(),
170
170
  display_name: z.string().optional(),
@@ -253,7 +253,7 @@ function retrieveToolResponseBodyHttpFromJSON(jsonString) {
253
253
  }
254
254
  /** @internal */
255
255
  exports.RetrieveToolResponseBodyHTTPTool$inboundSchema = z.object({
256
- _id: z.string().default("tool_01M1XMRH783QQKCFQG2NCB2W26"),
256
+ _id: z.string().default("tool_01M25H27P6KRA4KNWJ7J390FVW"),
257
257
  path: z.string(),
258
258
  key: z.string(),
259
259
  display_name: z.string().optional(),
@@ -303,7 +303,7 @@ function retrieveToolResponseBodyJsonSchemaFromJSON(jsonString) {
303
303
  }
304
304
  /** @internal */
305
305
  exports.RetrieveToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
306
- _id: z.string().default("tool_01M1XMRH77J24DCRJD9JXRBJR6"),
306
+ _id: z.string().default("tool_01M25H27P6Q8WF2AP32MPSBEGM"),
307
307
  path: z.string(),
308
308
  key: z.string(),
309
309
  display_name: z.string().optional(),
@@ -357,7 +357,7 @@ function retrieveToolResponseBodyFunctionFromJSON(jsonString) {
357
357
  }
358
358
  /** @internal */
359
359
  exports.RetrieveToolResponseBodyFunctionTool$inboundSchema = z.object({
360
- _id: z.string().default("tool_01M1XMRH76VKDSHS76MHM37RX2"),
360
+ _id: z.string().default("tool_01M25H27P5R6P2QMH6HDE6J5H2"),
361
361
  path: z.string(),
362
362
  key: z.string(),
363
363
  display_name: z.string().optional(),
@@ -1106,7 +1106,7 @@ function agentToolInputRunSchemaToJSON(agentToolInputRunSchema) {
1106
1106
  }
1107
1107
  /** @internal */
1108
1108
  exports.Tools$outboundSchema = z.object({
1109
- id: z.string().default("01M1XMRH2Y50SCAWE2M506B6RT"),
1109
+ id: z.string().default("01M25H27JCS63Z4DCR71K1B9A3"),
1110
1110
  name: z.string(),
1111
1111
  description: z.string().optional(),
1112
1112
  schema: z.lazy(() => exports.AgentToolInputRunSchema$outboundSchema),
@@ -1072,7 +1072,7 @@ function streamRunAgentAgentToolInputRunAgentsSchemaToJSON(streamRunAgentAgentTo
1072
1072
  }
1073
1073
  /** @internal */
1074
1074
  exports.AgentToolInputRunTools$outboundSchema = z.object({
1075
- id: z.string().default("01M1XMRH3WZBN1C05M2EFC50Q7"),
1075
+ id: z.string().default("01M25H27K55EYD5PAA3PKTRWDB"),
1076
1076
  name: z.string(),
1077
1077
  description: z.string().optional(),
1078
1078
  schema: z.lazy(() => exports.StreamRunAgentAgentToolInputRunAgentsSchema$outboundSchema),
@@ -98,7 +98,7 @@ exports.UpdateAnnotationQueueResponseBody$inboundSchema = z.object({
98
98
  updated_by_id: z.nullable(z.string()).optional(),
99
99
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
100
100
  .optional(),
101
- updated: z.string().datetime({ offset: true }).default("2026-09-07T09:56:22.990Z").transform(v => new Date(v)),
101
+ updated: z.string().datetime({ offset: true }).default("2026-09-10T11:25:41.852Z").transform(v => new Date(v)),
102
102
  }).transform((v) => {
103
103
  return (0, primitives_js_1.remap)(v, {
104
104
  "_id": "id",
@@ -866,7 +866,7 @@ exports.UpdateDatapointEvaluations4$inboundSchema = z.object({
866
866
  parent_annotation_id: z.string().optional(),
867
867
  explanation: z.string().optional(),
868
868
  reviewed_by_id: z.string(),
869
- reviewed_at: z.string().datetime({ offset: true }).default("2026-09-07T09:56:31.128Z").transform(v => new Date(v)),
869
+ reviewed_at: z.string().datetime({ offset: true }).default("2026-09-10T11:25:50.195Z").transform(v => new Date(v)),
870
870
  type: z.literal("string_array"),
871
871
  values: z.array(z.string()),
872
872
  }).transform((v) => {
@@ -917,7 +917,7 @@ exports.UpdateDatapointEvaluations3$inboundSchema = z.object({
917
917
  parent_annotation_id: z.string().optional(),
918
918
  explanation: z.string().optional(),
919
919
  reviewed_by_id: z.string(),
920
- reviewed_at: z.string().datetime({ offset: true }).default("2026-09-07T09:56:31.127Z").transform(v => new Date(v)),
920
+ reviewed_at: z.string().datetime({ offset: true }).default("2026-09-10T11:25:50.194Z").transform(v => new Date(v)),
921
921
  type: z.literal("boolean"),
922
922
  value: z.boolean(),
923
923
  }).transform((v) => {
@@ -968,7 +968,7 @@ exports.UpdateDatapointEvaluations2$inboundSchema = z.object({
968
968
  parent_annotation_id: z.string().optional(),
969
969
  explanation: z.string().optional(),
970
970
  reviewed_by_id: z.string(),
971
- reviewed_at: z.string().datetime({ offset: true }).default("2026-09-07T09:56:31.127Z").transform(v => new Date(v)),
971
+ reviewed_at: z.string().datetime({ offset: true }).default("2026-09-10T11:25:50.194Z").transform(v => new Date(v)),
972
972
  type: z.literal("number"),
973
973
  value: z.number(),
974
974
  }).transform((v) => {
@@ -1018,7 +1018,7 @@ exports.UpdateDatapointEvaluations1$inboundSchema = z.object({
1018
1018
  parent_annotation_id: z.string().optional(),
1019
1019
  explanation: z.string().optional(),
1020
1020
  reviewed_by_id: z.string(),
1021
- reviewed_at: z.string().datetime({ offset: true }).default("2026-09-07T09:56:31.126Z").transform(v => new Date(v)),
1021
+ reviewed_at: z.string().datetime({ offset: true }).default("2026-09-10T11:25:50.193Z").transform(v => new Date(v)),
1022
1022
  type: z.literal("string"),
1023
1023
  value: z.string(),
1024
1024
  }).transform((v) => {
@@ -1069,7 +1069,7 @@ exports.UpdateDatapointResponseBody$inboundSchema = z.object({
1069
1069
  updated_by_id: z.nullable(z.string()).optional(),
1070
1070
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
1071
1071
  .optional(),
1072
- updated: z.string().datetime({ offset: true }).default("2026-09-07T09:56:22.990Z").transform(v => new Date(v)),
1072
+ updated: z.string().datetime({ offset: true }).default("2026-09-10T11:25:41.852Z").transform(v => new Date(v)),
1073
1073
  }).transform((v) => {
1074
1074
  return (0, primitives_js_1.remap)(v, {
1075
1075
  "_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-09-07T09:56:22.990Z").transform(v => new Date(v)),
98
+ updated: z.string().datetime({ offset: true }).default("2026-09-10T11:25:41.852Z").transform(v => new Date(v)),
99
99
  }).transform((v) => {
100
100
  return (0, primitives_js_1.remap)(v, {
101
101
  "_id": "id",
@@ -536,7 +536,7 @@ function updateToolResponseBodyCodeToolFromJSON(jsonString) {
536
536
  }
537
537
  /** @internal */
538
538
  exports.UpdateToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
539
- _id: z.string().default("tool_01M1XMRH6YH1KARA7M7B67DVVD"),
539
+ _id: z.string().default("tool_01M25H27NX656WB5DT7P9FY8W6"),
540
540
  path: z.string(),
541
541
  key: z.string(),
542
542
  display_name: z.string().optional(),
@@ -625,7 +625,7 @@ function updateToolResponseBodyHttpFromJSON(jsonString) {
625
625
  }
626
626
  /** @internal */
627
627
  exports.UpdateToolResponseBodyHTTPTool$inboundSchema = z.object({
628
- _id: z.string().default("tool_01M1XMRH6SZST7H3XRC3XR5W3K"),
628
+ _id: z.string().default("tool_01M25H27NWJ6N9SRP0P0YBNK79"),
629
629
  path: z.string(),
630
630
  key: z.string(),
631
631
  display_name: z.string().optional(),
@@ -675,7 +675,7 @@ function updateToolResponseBodyJsonSchemaFromJSON(jsonString) {
675
675
  }
676
676
  /** @internal */
677
677
  exports.UpdateToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
678
- _id: z.string().default("tool_01M1XMRH6SE6W4X3Z2AY9BRZSJ"),
678
+ _id: z.string().default("tool_01M25H27NVN7V74B6DCZ6C9PCR"),
679
679
  path: z.string(),
680
680
  key: z.string(),
681
681
  display_name: z.string().optional(),
@@ -729,7 +729,7 @@ function updateToolResponseBodyFunctionFromJSON(jsonString) {
729
729
  }
730
730
  /** @internal */
731
731
  exports.UpdateToolResponseBodyFunctionTool$inboundSchema = z.object({
732
- _id: z.string().default("tool_01M1XMRH6RAYKQATZCQC4B56GQ"),
732
+ _id: z.string().default("tool_01M25H27NT925KYJJF1T87W1BK"),
733
733
  path: z.string(),
734
734
  key: z.string(),
735
735
  display_name: z.string().optional(),
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@orq-ai/node",
3
- "version": "4.14.14",
3
+ "version": "4.14.16",
4
4
  "author": "Orq",
5
5
  "exports": {
6
- "./langchain": {
7
- "import": "./langchain/index.mjs",
8
- "require": "./langchain/index.js",
9
- "types": "./langchain/index.d.mts"
10
- },
11
6
  ".": {
12
7
  "import": "./index.js",
13
8
  "require": "./index.js",
14
9
  "types": "./index.d.ts"
15
10
  },
16
- "./*": "./*"
11
+ "./*": "./*",
12
+ "./langchain": {
13
+ "import": "./langchain/index.mjs",
14
+ "require": "./langchain/index.js",
15
+ "types": "./langchain/index.d.mts"
16
+ }
17
17
  },
18
18
  "main": "./index.js",
19
19
  "sideEffects": false,
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
29
29
  * Create a new budget
30
30
  *
31
31
  * @remarks
32
- * Creates a new budget in the workspace. Exactly one scope variant must be set (workspace / project / identity / api_key / provider / model). At least one of `limits.amount`, `limits.token_limit`, or `rate_limit.requests_per_minute` MUST be provided. Uniqueness is enforced across (workspace_id, scope_kind, scope_target_id).
32
+ * Creates a new budget in the workspace. Exactly one scope variant must be set (workspace / project / identity / api_key / provider / model). At least one of `limits.amount`, `limits.token_limit`, or `rate_limit.requests_per_minute` MUST be provided. Uniqueness is enforced across (workspace_id, scope_kind, scope_target_id). Requires a Management Key with the Budgets permission; project-scoped API keys cannot manage budgets.
33
33
  */
34
34
  export function budgetsCreate(
35
35
  client: OrqCore,
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Delete a budget
31
31
  *
32
32
  * @remarks
33
- * Permanently deletes a budget. Its consumption counters are cleared immediately. The response body is empty on success.
33
+ * Permanently deletes a budget. Its consumption counters are cleared immediately. The response body is empty on success. Requires a Management Key with the Budgets permission; project-scoped API keys cannot manage budgets.
34
34
  */
35
35
  export function budgetsDelete(
36
36
  client: OrqCore,
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Retrieve a budget
31
31
  *
32
32
  * @remarks
33
- * Retrieves the metadata for an existing budget by its unique identifier. Returns `NotFound` when the budget does not exist in the caller's workspace.
33
+ * Retrieves the metadata for an existing budget by its unique identifier. Returns `NotFound` when the budget does not exist in the caller's workspace. Requires a Management Key with the Budgets permission; project-scoped API keys cannot manage budgets.
34
34
  */
35
35
  export function budgetsGet(
36
36
  client: OrqCore,
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * List budgets
31
31
  *
32
32
  * @remarks
33
- * Returns budgets visible to the current workspace, ordered by creation time with the newest first. Supports filtering by scope kind, scope target id, period, and active state, plus an optional free-text query that searches across denormalized target names via Typesense.
33
+ * Returns budgets visible to the current workspace, ordered by creation time with the newest first. Supports filtering by scope kind, scope target id, period, and active state, plus an optional free-text query that searches across denormalized target names via Typesense. Requires a Management Key with the Budgets permission; project-scoped API keys cannot manage budgets.
34
34
  */
35
35
  export function budgetsList(
36
36
  client: OrqCore,
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Reset budget consumption
31
31
  *
32
32
  * @remarks
33
- * Clears the current-period cost, token, and request counters for the budget. The budget record itself is preserved.
33
+ * Clears the current-period cost, token, and request counters for the budget. The budget record itself is preserved. Requires a Management Key with the Budgets permission; project-scoped API keys cannot manage budgets.
34
34
  */
35
35
  export function budgetsResetConsumption(
36
36
  client: OrqCore,
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Update a budget
31
31
  *
32
32
  * @remarks
33
- * Updates mutable fields of a budget: limits, rate limit, activation, and expiration. The scope is immutable — to change a budget's target, delete and recreate it. Omitted fields keep their current values.
33
+ * Updates mutable fields of a budget: limits, rate limit, activation, and expiration. The scope is immutable — to change a budget's target, delete and recreate it. Omitted fields keep their current values. Requires a Management Key with the Budgets permission; project-scoped API keys cannot manage budgets.
34
34
  */
35
35
  export function budgetsUpdate(
36
36
  client: OrqCore,
@@ -9,7 +9,6 @@ import { compactMap } from "../lib/primitives.js";
9
9
  import { RequestOptions } from "../lib/sdks.js";
10
10
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
11
  import { pathToFunc } from "../lib/url.js";
12
- import * as components from "../models/components/index.js";
13
12
  import {
14
13
  ConnectionError,
15
14
  InvalidRequestError,
@@ -36,7 +35,7 @@ export function evalsCreate(
36
35
  options?: RequestOptions,
37
36
  ): APIPromise<
38
37
  Result<
39
- components.EvaluatorDocumentResponse,
38
+ operations.CreateEvalResponseBody,
40
39
  | OrqError
41
40
  | ResponseValidationError
42
41
  | ConnectionError
@@ -61,7 +60,7 @@ async function $do(
61
60
  ): Promise<
62
61
  [
63
62
  Result<
64
- components.EvaluatorDocumentResponse,
63
+ operations.CreateEvalResponseBody,
65
64
  | OrqError
66
65
  | ResponseValidationError
67
66
  | ConnectionError
@@ -127,7 +126,7 @@ async function $do(
127
126
  const response = doResult.value;
128
127
 
129
128
  const [result] = await M.match<
130
- components.EvaluatorDocumentResponse,
129
+ operations.CreateEvalResponseBody,
131
130
  | OrqError
132
131
  | ResponseValidationError
133
132
  | ConnectionError
@@ -137,7 +136,7 @@ async function $do(
137
136
  | UnexpectedClientError
138
137
  | SDKValidationError
139
138
  >(
140
- M.json(200, components.EvaluatorDocumentResponse$inboundSchema),
139
+ M.json(200, operations.CreateEvalResponseBody$inboundSchema),
141
140
  M.fail("4XX"),
142
141
  M.fail("5XX"),
143
142
  )(response, req);
@@ -11,7 +11,6 @@ import { safeParse } from "../lib/schemas.js";
11
11
  import { RequestOptions } from "../lib/sdks.js";
12
12
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
13
  import { pathToFunc } from "../lib/url.js";
14
- import * as components from "../models/components/index.js";
15
14
  import {
16
15
  ConnectionError,
17
16
  InvalidRequestError,
@@ -38,7 +37,7 @@ export function evalsGet(
38
37
  options?: RequestOptions,
39
38
  ): APIPromise<
40
39
  Result<
41
- components.EvaluatorDocumentResponse,
40
+ operations.GetEvalResponseBody,
42
41
  | OrqError
43
42
  | ResponseValidationError
44
43
  | ConnectionError
@@ -63,7 +62,7 @@ async function $do(
63
62
  ): Promise<
64
63
  [
65
64
  Result<
66
- components.EvaluatorDocumentResponse,
65
+ operations.GetEvalResponseBody,
67
66
  | OrqError
68
67
  | ResponseValidationError
69
68
  | ConnectionError
@@ -146,7 +145,7 @@ async function $do(
146
145
  const response = doResult.value;
147
146
 
148
147
  const [result] = await M.match<
149
- components.EvaluatorDocumentResponse,
148
+ operations.GetEvalResponseBody,
150
149
  | OrqError
151
150
  | ResponseValidationError
152
151
  | ConnectionError
@@ -156,7 +155,7 @@ async function $do(
156
155
  | UnexpectedClientError
157
156
  | SDKValidationError
158
157
  >(
159
- M.json(200, components.EvaluatorDocumentResponse$inboundSchema),
158
+ M.json(200, operations.GetEvalResponseBody$inboundSchema),
160
159
  M.fail("4XX"),
161
160
  M.fail("5XX"),
162
161
  )(response, req);
@@ -11,7 +11,6 @@ import { safeParse } from "../lib/schemas.js";
11
11
  import { RequestOptions } from "../lib/sdks.js";
12
12
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
13
  import { pathToFunc } from "../lib/url.js";
14
- import * as components from "../models/components/index.js";
15
14
  import {
16
15
  ConnectionError,
17
16
  InvalidRequestError,
@@ -38,7 +37,7 @@ export function evalsGetVersion(
38
37
  options?: RequestOptions,
39
38
  ): APIPromise<
40
39
  Result<
41
- components.GetEvaluatorVersionResponse,
40
+ operations.GetEvalVersionResponseBody,
42
41
  | OrqError
43
42
  | ResponseValidationError
44
43
  | ConnectionError
@@ -63,7 +62,7 @@ async function $do(
63
62
  ): Promise<
64
63
  [
65
64
  Result<
66
- components.GetEvaluatorVersionResponse,
65
+ operations.GetEvalVersionResponseBody,
67
66
  | OrqError
68
67
  | ResponseValidationError
69
68
  | ConnectionError
@@ -152,7 +151,7 @@ async function $do(
152
151
  const response = doResult.value;
153
152
 
154
153
  const [result] = await M.match<
155
- components.GetEvaluatorVersionResponse,
154
+ operations.GetEvalVersionResponseBody,
156
155
  | OrqError
157
156
  | ResponseValidationError
158
157
  | ConnectionError
@@ -162,7 +161,7 @@ async function $do(
162
161
  | UnexpectedClientError
163
162
  | SDKValidationError
164
163
  >(
165
- M.json(200, components.GetEvaluatorVersionResponse$inboundSchema),
164
+ M.json(200, operations.GetEvalVersionResponseBody$inboundSchema),
166
165
  M.fail("4XX"),
167
166
  M.fail("5XX"),
168
167
  )(response, req);
@@ -38,7 +38,7 @@ export function evalsInvoke(
38
38
  options?: RequestOptions,
39
39
  ): APIPromise<
40
40
  Result<
41
- components.InvokeEvaluatorResponse,
41
+ components.EvaluationResult,
42
42
  | OrqError
43
43
  | ResponseValidationError
44
44
  | ConnectionError
@@ -63,7 +63,7 @@ async function $do(
63
63
  ): Promise<
64
64
  [
65
65
  Result<
66
- components.InvokeEvaluatorResponse,
66
+ components.EvaluationResult,
67
67
  | OrqError
68
68
  | ResponseValidationError
69
69
  | ConnectionError
@@ -149,7 +149,7 @@ async function $do(
149
149
  const response = doResult.value;
150
150
 
151
151
  const [result] = await M.match<
152
- components.InvokeEvaluatorResponse,
152
+ components.EvaluationResult,
153
153
  | OrqError
154
154
  | ResponseValidationError
155
155
  | ConnectionError
@@ -159,7 +159,7 @@ async function $do(
159
159
  | UnexpectedClientError
160
160
  | SDKValidationError
161
161
  >(
162
- M.json(200, components.InvokeEvaluatorResponse$inboundSchema),
162
+ M.json(200, components.EvaluationResult$inboundSchema),
163
163
  M.fail("4XX"),
164
164
  M.fail("5XX"),
165
165
  )(response, req);
@@ -11,7 +11,6 @@ import { safeParse } from "../lib/schemas.js";
11
11
  import { RequestOptions } from "../lib/sdks.js";
12
12
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
13
  import { pathToFunc } from "../lib/url.js";
14
- import * as components from "../models/components/index.js";
15
14
  import {
16
15
  ConnectionError,
17
16
  InvalidRequestError,
@@ -38,7 +37,7 @@ export function evalsUpdate(
38
37
  options?: RequestOptions,
39
38
  ): APIPromise<
40
39
  Result<
41
- components.EvaluatorDocumentResponse,
40
+ operations.UpdateEvalResponseBody,
42
41
  | OrqError
43
42
  | ResponseValidationError
44
43
  | ConnectionError
@@ -63,7 +62,7 @@ async function $do(
63
62
  ): Promise<
64
63
  [
65
64
  Result<
66
- components.EvaluatorDocumentResponse,
65
+ operations.UpdateEvalResponseBody,
67
66
  | OrqError
68
67
  | ResponseValidationError
69
68
  | ConnectionError
@@ -147,7 +146,7 @@ async function $do(
147
146
  const response = doResult.value;
148
147
 
149
148
  const [result] = await M.match<
150
- components.EvaluatorDocumentResponse,
149
+ operations.UpdateEvalResponseBody,
151
150
  | OrqError
152
151
  | ResponseValidationError
153
152
  | ConnectionError
@@ -157,7 +156,7 @@ async function $do(
157
156
  | UnexpectedClientError
158
157
  | SDKValidationError
159
158
  >(
160
- M.json(200, components.EvaluatorDocumentResponse$inboundSchema),
159
+ M.json(200, operations.UpdateEvalResponseBody$inboundSchema),
161
160
  M.fail("4XX"),
162
161
  M.fail("5XX"),
163
162
  )(response, req);
@@ -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.15.0-rc.24",
61
+ sdkVersion: "4.15.0-rc.35",
62
62
  genVersion: "2.935.1",
63
- userAgent: "speakeasy-sdk/typescript 4.15.0-rc.24 2.935.1 2.0 @orq-ai/node",
63
+ userAgent: "speakeasy-sdk/typescript 4.15.0-rc.35 2.935.1 2.0 @orq-ai/node",
64
64
  } as const;
@@ -8,10 +8,10 @@ import { ClosedEnum } from "../../types/enums.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
- export const Currency = {
11
+ export const BudgetLimitCurrency = {
12
12
  Usd: "usd",
13
13
  } as const;
14
- export type Currency = ClosedEnum<typeof Currency>;
14
+ export type BudgetLimitCurrency = ClosedEnum<typeof BudgetLimitCurrency>;
15
15
 
16
16
  export const Period = {
17
17
  Hour: "hour",
@@ -23,16 +23,18 @@ export type Period = ClosedEnum<typeof Period>;
23
23
 
24
24
  export type BudgetLimit = {
25
25
  amount: number;
26
- currency: Currency;
26
+ currency: BudgetLimitCurrency;
27
27
  period: Period;
28
28
  };
29
29
 
30
30
  /** @internal */
31
- export const Currency$inboundSchema: z.ZodNativeEnum<typeof Currency> = z
32
- .nativeEnum(Currency);
31
+ export const BudgetLimitCurrency$inboundSchema: z.ZodNativeEnum<
32
+ typeof BudgetLimitCurrency
33
+ > = z.nativeEnum(BudgetLimitCurrency);
33
34
  /** @internal */
34
- export const Currency$outboundSchema: z.ZodNativeEnum<typeof Currency> =
35
- Currency$inboundSchema;
35
+ export const BudgetLimitCurrency$outboundSchema: z.ZodNativeEnum<
36
+ typeof BudgetLimitCurrency
37
+ > = BudgetLimitCurrency$inboundSchema;
36
38
 
37
39
  /** @internal */
38
40
  export const Period$inboundSchema: z.ZodNativeEnum<typeof Period> = z
@@ -48,7 +50,7 @@ export const BudgetLimit$inboundSchema: z.ZodType<
48
50
  unknown
49
51
  > = z.object({
50
52
  amount: z.number(),
51
- currency: Currency$inboundSchema,
53
+ currency: BudgetLimitCurrency$inboundSchema,
52
54
  period: Period$inboundSchema,
53
55
  });
54
56
  /** @internal */
@@ -65,7 +67,7 @@ export const BudgetLimit$outboundSchema: z.ZodType<
65
67
  BudgetLimit
66
68
  > = z.object({
67
69
  amount: z.number(),
68
- currency: Currency$outboundSchema,
70
+ currency: BudgetLimitCurrency$outboundSchema,
69
71
  period: Period$outboundSchema,
70
72
  });
71
73
 
@@ -0,0 +1,45 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+
8
+ export type ChatKitResource = {
9
+ id?: string | undefined;
10
+ displayName?: string | undefined;
11
+ resourceId?: string | undefined;
12
+ resourceType?: string | undefined;
13
+ };
14
+
15
+ /** @internal */
16
+ export type ChatKitResource$Outbound = {
17
+ id?: string | undefined;
18
+ display_name?: string | undefined;
19
+ resource_id?: string | undefined;
20
+ resource_type?: string | undefined;
21
+ };
22
+
23
+ /** @internal */
24
+ export const ChatKitResource$outboundSchema: z.ZodType<
25
+ ChatKitResource$Outbound,
26
+ z.ZodTypeDef,
27
+ ChatKitResource
28
+ > = z.object({
29
+ id: z.string().optional(),
30
+ displayName: z.string().optional(),
31
+ resourceId: z.string().optional(),
32
+ resourceType: z.string().optional(),
33
+ }).transform((v) => {
34
+ return remap$(v, {
35
+ displayName: "display_name",
36
+ resourceId: "resource_id",
37
+ resourceType: "resource_type",
38
+ });
39
+ });
40
+
41
+ export function chatKitResourceToJSON(
42
+ chatKitResource: ChatKitResource,
43
+ ): string {
44
+ return JSON.stringify(ChatKitResource$outboundSchema.parse(chatKitResource));
45
+ }
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import {
7
+ ChatKitResource,
8
+ ChatKitResource$Outbound,
9
+ ChatKitResource$outboundSchema,
10
+ } from "./chatkitresource.js";
11
+
12
+ export type ChatKitResources = {
13
+ items?: Array<ChatKitResource> | undefined;
14
+ };
15
+
16
+ /** @internal */
17
+ export type ChatKitResources$Outbound = {
18
+ items?: Array<ChatKitResource$Outbound> | undefined;
19
+ };
20
+
21
+ /** @internal */
22
+ export const ChatKitResources$outboundSchema: z.ZodType<
23
+ ChatKitResources$Outbound,
24
+ z.ZodTypeDef,
25
+ ChatKitResources
26
+ > = z.object({
27
+ items: z.array(ChatKitResource$outboundSchema).optional(),
28
+ });
29
+
30
+ export function chatKitResourcesToJSON(
31
+ chatKitResources: ChatKitResources,
32
+ ): string {
33
+ return JSON.stringify(
34
+ ChatKitResources$outboundSchema.parse(chatKitResources),
35
+ );
36
+ }
@@ -56,7 +56,7 @@ export type Field = ClosedEnum<typeof Field>;
56
56
  /**
57
57
  * Predicate operator. `eq` and `neq` accept exactly one value; `in` and `not_in` accept 1-100 values.
58
58
  */
59
- export const FilterOp = {
59
+ export const Op = {
60
60
  Eq: "eq",
61
61
  Neq: "neq",
62
62
  In: "in",
@@ -65,7 +65,7 @@ export const FilterOp = {
65
65
  /**
66
66
  * Predicate operator. `eq` and `neq` accept exactly one value; `in` and `not_in` accept 1-100 values.
67
67
  */
68
- export type FilterOp = ClosedEnum<typeof FilterOp>;
68
+ export type Op = ClosedEnum<typeof Op>;
69
69
 
70
70
  export type Filter = {
71
71
  /**
@@ -75,7 +75,7 @@ export type Filter = {
75
75
  /**
76
76
  * Predicate operator. `eq` and `neq` accept exactly one value; `in` and `not_in` accept 1-100 values.
77
77
  */
78
- op?: FilterOp | undefined;
78
+ op?: Op | undefined;
79
79
  /**
80
80
  * Values compared against the selected field. Values are interpreted
81
81
  *
@@ -94,17 +94,15 @@ export const Field$outboundSchema: z.ZodNativeEnum<typeof Field> =
94
94
  Field$inboundSchema;
95
95
 
96
96
  /** @internal */
97
- export const FilterOp$inboundSchema: z.ZodNativeEnum<typeof FilterOp> = z
98
- .nativeEnum(FilterOp);
97
+ export const Op$inboundSchema: z.ZodNativeEnum<typeof Op> = z.nativeEnum(Op);
99
98
  /** @internal */
100
- export const FilterOp$outboundSchema: z.ZodNativeEnum<typeof FilterOp> =
101
- FilterOp$inboundSchema;
99
+ export const Op$outboundSchema: z.ZodNativeEnum<typeof Op> = Op$inboundSchema;
102
100
 
103
101
  /** @internal */
104
102
  export const Filter$inboundSchema: z.ZodType<Filter, z.ZodTypeDef, unknown> = z
105
103
  .object({
106
104
  field: Field$inboundSchema.optional(),
107
- op: FilterOp$inboundSchema.optional(),
105
+ op: Op$inboundSchema.optional(),
108
106
  values: z.array(z.string()).optional(),
109
107
  });
110
108
  /** @internal */
@@ -121,7 +119,7 @@ export const Filter$outboundSchema: z.ZodType<
121
119
  Filter
122
120
  > = z.object({
123
121
  field: Field$outboundSchema.optional(),
124
- op: FilterOp$outboundSchema.optional(),
122
+ op: Op$outboundSchema.optional(),
125
123
  values: z.array(z.string()).optional(),
126
124
  });
127
125