@orq-ai/node 4.16.14 → 4.16.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 (93) 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/reasoningpart.js +1 -1
  5. package/models/operations/createtool.js +4 -4
  6. package/models/operations/getalltools.js +4 -4
  7. package/models/operations/getv2humanevalsets.js +2 -2
  8. package/models/operations/getv2humanevalsetsid.js +2 -2
  9. package/models/operations/listdeploymentversions.js +1 -1
  10. package/models/operations/patchv2humanevalsetsid.js +2 -2
  11. package/models/operations/postv2feedbackevaluation.js +4 -4
  12. package/models/operations/postv2humanevalsets.js +2 -2
  13. package/models/operations/retrievetool.js +4 -4
  14. package/models/operations/runagent.js +1 -1
  15. package/models/operations/streamrunagent.js +1 -1
  16. package/models/operations/updatetool.js +4 -4
  17. package/package.json +8 -8
  18. package/packages/orq-rc/src/funcs/mcpGatewaysList.ts +0 -1
  19. package/packages/orq-rc/src/lib/config.ts +3 -3
  20. package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +6 -0
  21. package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +6 -0
  22. package/packages/orq-rc/src/models/components/cachewritetokensdetails.ts +39 -0
  23. package/packages/orq-rc/src/models/components/filecontentpartschema.ts +1 -1
  24. package/packages/orq-rc/src/models/components/index.ts +2 -1
  25. package/packages/orq-rc/src/models/components/inputtokensdetails.ts +7 -0
  26. package/packages/orq-rc/src/models/components/litellmmodel.ts +4 -0
  27. package/packages/orq-rc/src/models/components/mcpgateway.ts +0 -6
  28. package/packages/orq-rc/src/models/components/mcptoolinput.ts +7 -7
  29. package/packages/orq-rc/src/models/components/modelconfigurationresponse.ts +3 -0
  30. package/packages/orq-rc/src/models/components/modelmetadata.ts +12 -0
  31. package/packages/orq-rc/src/models/components/openaipromptcacheoptions.ts +1 -0
  32. package/packages/orq-rc/src/models/components/orqadvisortool.ts +1 -0
  33. package/packages/orq-rc/src/models/components/orqsidekicktool.ts +1 -0
  34. package/packages/orq-rc/src/models/components/pricing.ts +6 -0
  35. package/packages/orq-rc/src/models/components/pricingvariant.ts +6 -0
  36. package/packages/orq-rc/src/models/components/privatemodelconfiguration.ts +39 -0
  37. package/packages/orq-rc/src/models/components/publicresponseresource.ts +1 -1
  38. package/packages/orq-rc/src/models/components/reasoning.ts +1 -0
  39. package/packages/orq-rc/src/models/components/reasoningparam.ts +1 -0
  40. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  41. package/packages/orq-rc/src/models/components/redactresponse.ts +1 -1
  42. package/packages/orq-rc/src/models/components/updatemcpgatewayrequest.ts +0 -7
  43. package/packages/orq-rc/src/models/operations/createagentrequest.ts +34 -24
  44. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +7 -6
  45. package/packages/orq-rc/src/models/operations/createprompt.ts +16 -13
  46. package/packages/orq-rc/src/models/operations/createrouterresponse.ts +225 -20
  47. package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
  48. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +1 -1
  49. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +1 -0
  50. package/packages/orq-rc/src/models/operations/deployments.ts +2 -1
  51. package/packages/orq-rc/src/models/operations/deploymentstream.ts +1 -0
  52. package/packages/orq-rc/src/models/operations/getallprompts.ts +9 -7
  53. package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
  54. package/packages/orq-rc/src/models/operations/getoneprompt.ts +9 -7
  55. package/packages/orq-rc/src/models/operations/getpromptversion.ts +9 -7
  56. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  57. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  58. package/packages/orq-rc/src/models/operations/listagents.ts +20 -12
  59. package/packages/orq-rc/src/models/operations/listdeploymentversions.ts +4 -2
  60. package/packages/orq-rc/src/models/operations/listpromptversions.ts +9 -7
  61. package/packages/orq-rc/src/models/operations/mcpgatewaylist.ts +0 -7
  62. package/packages/orq-rc/src/models/operations/modelcreate.ts +3 -0
  63. package/packages/orq-rc/src/models/operations/modelcreateawsbedrock.ts +6 -0
  64. package/packages/orq-rc/src/models/operations/modelcreateopenailike.ts +6 -0
  65. package/packages/orq-rc/src/models/operations/modelcreatevertex.ts +7 -0
  66. package/packages/orq-rc/src/models/operations/modelupdate.ts +7 -0
  67. package/packages/orq-rc/src/models/operations/modelupdateawsbedrock.ts +3 -0
  68. package/packages/orq-rc/src/models/operations/modelupdateopenailike.ts +3 -0
  69. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  70. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  71. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +20 -12
  72. package/packages/orq-rc/src/models/operations/retrieveresponse.ts +1 -1
  73. package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
  74. package/packages/orq-rc/src/models/operations/runagent.ts +15 -13
  75. package/packages/orq-rc/src/models/operations/streamrunagent.ts +15 -13
  76. package/packages/orq-rc/src/models/operations/updateagent.ts +34 -24
  77. package/packages/orq-rc/src/models/operations/updateprompt.ts +16 -13
  78. package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
  79. package/src/lib/config.ts +2 -2
  80. package/src/models/components/reasoningpart.ts +1 -1
  81. package/src/models/operations/createtool.ts +4 -4
  82. package/src/models/operations/getalltools.ts +4 -4
  83. package/src/models/operations/getv2humanevalsets.ts +2 -2
  84. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  85. package/src/models/operations/listdeploymentversions.ts +1 -1
  86. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  87. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  88. package/src/models/operations/postv2humanevalsets.ts +2 -2
  89. package/src/models/operations/retrievetool.ts +4 -4
  90. package/src/models/operations/runagent.ts +1 -1
  91. package/src/models/operations/streamrunagent.ts +1 -1
  92. package/src/models/operations/updatetool.ts +4 -4
  93. package/packages/orq-rc/src/models/components/mcpgatewaystatus.ts +0 -21
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@orq-ai/node",
5
- "version": "4.16.14",
5
+ "version": "4.16.16",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/lib/config.d.ts CHANGED
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
31
31
  export declare const SDK_METADATA: {
32
32
  readonly language: "typescript";
33
33
  readonly openapiDocVersion: "2.0";
34
- readonly sdkVersion: "4.16.14";
34
+ readonly sdkVersion: "4.16.16";
35
35
  readonly genVersion: "2.950.2";
36
- readonly userAgent: "speakeasy-sdk/typescript 4.16.14 2.950.2 2.0 @orq-ai/node";
36
+ readonly userAgent: "speakeasy-sdk/typescript 4.16.16 2.950.2 2.0 @orq-ai/node";
37
37
  };
38
38
  //# sourceMappingURL=config.d.ts.map
package/lib/config.js CHANGED
@@ -28,8 +28,8 @@ function serverURLFromOptions(options) {
28
28
  exports.SDK_METADATA = {
29
29
  language: "typescript",
30
30
  openapiDocVersion: "2.0",
31
- sdkVersion: "4.16.14",
31
+ sdkVersion: "4.16.16",
32
32
  genVersion: "2.950.2",
33
- userAgent: "speakeasy-sdk/typescript 4.16.14 2.950.2 2.0 @orq-ai/node",
33
+ userAgent: "speakeasy-sdk/typescript 4.16.16 2.950.2 2.0 @orq-ai/node",
34
34
  };
35
35
  //# sourceMappingURL=config.js.map
@@ -43,7 +43,7 @@ const primitives_js_1 = require("../../lib/primitives.js");
43
43
  const schemas_js_1 = require("../../lib/schemas.js");
44
44
  /** @internal */
45
45
  exports.ReasoningPart$inboundSchema = z.object({
46
- _id: z.string().default("reasoning_01m5cbx751n1zkpvhbmsqbbtk6"),
46
+ _id: z.string().default("reasoning_01m5hqcpzj3090j5q17ravesza"),
47
47
  metadata: z.record(z.any()).optional(),
48
48
  kind: z.literal("reasoning"),
49
49
  reasoning: z.string(),
@@ -472,7 +472,7 @@ function responseBodyCodeToolFromJSON(jsonString) {
472
472
  }
473
473
  /** @internal */
474
474
  exports.ResponseBodyCodeExecutionTool$inboundSchema = z.object({
475
- _id: z.string().default("tool_01M5CBX79MAWE383GDWD3X0W0W"),
475
+ _id: z.string().default("tool_01M5HQCQ35DBDK3HC18P00YN7X"),
476
476
  path: z.string(),
477
477
  key: z.string(),
478
478
  display_name: z.string().optional(),
@@ -562,7 +562,7 @@ function responseBodyHttpFromJSON(jsonString) {
562
562
  }
563
563
  /** @internal */
564
564
  exports.ResponseBodyHTTPTool$inboundSchema = z.object({
565
- _id: z.string().default("tool_01M5CBX79K29ADYGXV58SD7ABS"),
565
+ _id: z.string().default("tool_01M5HQCQ341FPVWEGN6H9B33ZN"),
566
566
  path: z.string(),
567
567
  key: z.string(),
568
568
  display_name: z.string().optional(),
@@ -612,7 +612,7 @@ function responseBodyJsonSchemaFromJSON(jsonString) {
612
612
  }
613
613
  /** @internal */
614
614
  exports.ResponseBodyJSONSchemaTool$inboundSchema = z.object({
615
- _id: z.string().default("tool_01M5CBX79J59XA1D4H86ZHJ9RG"),
615
+ _id: z.string().default("tool_01M5HQCQ34KKC5RSWNZJAW15M3"),
616
616
  path: z.string(),
617
617
  key: z.string(),
618
618
  display_name: z.string().optional(),
@@ -665,7 +665,7 @@ function responseBodyFunctionFromJSON(jsonString) {
665
665
  }
666
666
  /** @internal */
667
667
  exports.ResponseBodyFunctionTool$inboundSchema = z.object({
668
- _id: z.string().default("tool_01M5CBX79HPMSW4Q9SN0BCF602"),
668
+ _id: z.string().default("tool_01M5HQCQ3396W0GXRVMW7Q16B4"),
669
669
  path: z.string(),
670
670
  key: z.string(),
671
671
  display_name: z.string().optional(),
@@ -172,7 +172,7 @@ function dataCodeToolFromJSON(jsonString) {
172
172
  }
173
173
  /** @internal */
174
174
  exports.DataCodeExecutionTool$inboundSchema = z.object({
175
- _id: z.string().default("tool_01M5CBX79D5515NRR4RXXRXXXF"),
175
+ _id: z.string().default("tool_01M5HQCQ3076T69WBCFE6NMDE5"),
176
176
  path: z.string(),
177
177
  key: z.string(),
178
178
  display_name: z.string().optional(),
@@ -261,7 +261,7 @@ function dataHttpFromJSON(jsonString) {
261
261
  }
262
262
  /** @internal */
263
263
  exports.DataHTTPTool$inboundSchema = z.object({
264
- _id: z.string().default("tool_01M5CBX79CNS0PNKPA08ZP0CWH"),
264
+ _id: z.string().default("tool_01M5HQCQ2ZBNX459JAHWQQFMMN"),
265
265
  path: z.string(),
266
266
  key: z.string(),
267
267
  display_name: z.string().optional(),
@@ -311,7 +311,7 @@ function dataJsonSchemaFromJSON(jsonString) {
311
311
  }
312
312
  /** @internal */
313
313
  exports.DataJSONSchemaTool$inboundSchema = z.object({
314
- _id: z.string().default("tool_01M5CBX79B2TAKMWX2MNAEEVRE"),
314
+ _id: z.string().default("tool_01M5HQCQ2ZYXNH839MMC5Y20XF"),
315
315
  path: z.string(),
316
316
  key: z.string(),
317
317
  display_name: z.string().optional(),
@@ -366,7 +366,7 @@ function dataFunctionFromJSON(jsonString) {
366
366
  }
367
367
  /** @internal */
368
368
  exports.DataFunctionTool$inboundSchema = z.object({
369
- _id: z.string().default("tool_01M5CBX79AT8XF7SWK1BEMVW7E"),
369
+ _id: z.string().default("tool_01M5HQCQ2Y4G8TQSYRBZT7MJRC"),
370
370
  path: z.string(),
371
371
  key: z.string(),
372
372
  display_name: z.string().optional(),
@@ -67,7 +67,7 @@ exports.GetV2HumanEvalSetsResponseBody2$inboundSchema = z.object({
67
67
  updated_by_id: z.string().optional(),
68
68
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
69
69
  .optional(),
70
- updated: z.string().datetime({ offset: true }).default("2026-10-20T09:57:21.331Z").transform(v => new Date(v)),
70
+ updated: z.string().datetime({ offset: true }).default("2026-10-22T11:54:16.402Z").transform(v => new Date(v)),
71
71
  filter_type: z.literal("name"),
72
72
  filter_value: z.string(),
73
73
  }).transform((v) => {
@@ -98,7 +98,7 @@ exports.GetV2HumanEvalSetsResponseBody1$inboundSchema = z.object({
98
98
  updated_by_id: 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-10-20T09:57:21.331Z").transform(v => new Date(v)),
101
+ updated: z.string().datetime({ offset: true }).default("2026-10-22T11:54:16.402Z").transform(v => new Date(v)),
102
102
  filter_type: z.literal("span_type"),
103
103
  filter_values: z.array(z.string()),
104
104
  }).transform((v) => {
@@ -63,7 +63,7 @@ exports.GetV2HumanEvalSetsIdResponseBody2$inboundSchema = z.object({
63
63
  updated_by_id: z.string().optional(),
64
64
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
65
65
  .optional(),
66
- updated: z.string().datetime({ offset: true }).default("2026-10-20T09:57:21.331Z").transform(v => new Date(v)),
66
+ updated: z.string().datetime({ offset: true }).default("2026-10-22T11:54:16.402Z").transform(v => new Date(v)),
67
67
  filter_type: z.literal("name"),
68
68
  filter_value: z.string(),
69
69
  }).transform((v) => {
@@ -94,7 +94,7 @@ exports.GetV2HumanEvalSetsIdResponseBody1$inboundSchema = z.object({
94
94
  updated_by_id: z.string().optional(),
95
95
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
96
96
  .optional(),
97
- updated: z.string().datetime({ offset: true }).default("2026-10-20T09:57:21.331Z").transform(v => new Date(v)),
97
+ updated: z.string().datetime({ offset: true }).default("2026-10-22T11:54:16.402Z").transform(v => new Date(v)),
98
98
  filter_type: z.literal("span_type"),
99
99
  filter_values: z.array(z.string()),
100
100
  }).transform((v) => {
@@ -1011,7 +1011,7 @@ function knowledgeBaseConfigurationFromJSON(jsonString) {
1011
1011
  }
1012
1012
  /** @internal */
1013
1013
  exports.ListDeploymentVersionsKnowledgeBases$inboundSchema = z.object({
1014
- id: z.string().default("01M5CBX73MJWHPE61H8T5PQF6V"),
1014
+ id: z.string().default("01M5HQCPYF83SDCY7333A3CAHW"),
1015
1015
  knowledge_id: z.string(),
1016
1016
  configuration: z.union([
1017
1017
  z.lazy(() => exports.KnowledgeBaseLastUserMessage$inboundSchema),
@@ -122,7 +122,7 @@ exports.PatchV2HumanEvalSetsIdResponseBody2$inboundSchema = z.object({
122
122
  updated_by_id: z.string().optional(),
123
123
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
124
124
  .optional(),
125
- updated: z.string().datetime({ offset: true }).default("2026-10-20T09:57:21.331Z").transform(v => new Date(v)),
125
+ updated: z.string().datetime({ offset: true }).default("2026-10-22T11:54:16.402Z").transform(v => new Date(v)),
126
126
  filter_type: z.literal("name"),
127
127
  filter_value: z.string(),
128
128
  }).transform((v) => {
@@ -153,7 +153,7 @@ exports.PatchV2HumanEvalSetsIdResponseBody1$inboundSchema = z.object({
153
153
  updated_by_id: z.string().optional(),
154
154
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
155
155
  .optional(),
156
- updated: z.string().datetime({ offset: true }).default("2026-10-20T09:57:21.331Z").transform(v => new Date(v)),
156
+ updated: z.string().datetime({ offset: true }).default("2026-10-22T11:54:16.402Z").transform(v => new Date(v)),
157
157
  filter_type: z.literal("span_type"),
158
158
  filter_values: z.array(z.string()),
159
159
  }).transform((v) => {
@@ -96,7 +96,7 @@ exports.RequestBody4$outboundSchema = z.object({
96
96
  source: exports.PostV2FeedbackEvaluationRequestBodyFeedbackRequestSource$outboundSchema
97
97
  .default("orq"),
98
98
  explanation: z.string().optional(),
99
- reviewedAt: z.date().default(() => new Date("2026-10-20T09:57:29.587Z"))
99
+ reviewedAt: z.date().default(() => new Date("2026-10-22T11:54:23.767Z"))
100
100
  .transform(v => v.toISOString()),
101
101
  type: z.literal("string_array"),
102
102
  values: z.array(z.string()),
@@ -126,7 +126,7 @@ exports.Three$outboundSchema = z.object({
126
126
  source: exports.PostV2FeedbackEvaluationRequestBodyFeedbackSource$outboundSchema
127
127
  .default("orq"),
128
128
  explanation: z.string().optional(),
129
- reviewedAt: z.date().default(() => new Date("2026-10-20T09:57:29.586Z"))
129
+ reviewedAt: z.date().default(() => new Date("2026-10-22T11:54:23.767Z"))
130
130
  .transform(v => v.toISOString()),
131
131
  type: z.literal("boolean"),
132
132
  value: z.boolean(),
@@ -154,7 +154,7 @@ exports.RequestBody2$outboundSchema = z.object({
154
154
  humanReviewId: z.string().optional(),
155
155
  source: exports.PostV2FeedbackEvaluationRequestBodySource$outboundSchema.default("orq"),
156
156
  explanation: z.string().optional(),
157
- reviewedAt: z.date().default(() => new Date("2026-10-20T09:57:29.586Z"))
157
+ reviewedAt: z.date().default(() => new Date("2026-10-22T11:54:23.767Z"))
158
158
  .transform(v => v.toISOString()),
159
159
  type: z.literal("number"),
160
160
  value: z.number(),
@@ -181,7 +181,7 @@ exports.RequestBody1$outboundSchema = z.object({
181
181
  humanReviewId: z.string().optional(),
182
182
  source: exports.RequestBodySource$outboundSchema.default("orq"),
183
183
  explanation: z.string().optional(),
184
- reviewedAt: z.date().default(() => new Date("2026-10-20T09:57:29.586Z"))
184
+ reviewedAt: z.date().default(() => new Date("2026-10-22T11:54:23.766Z"))
185
185
  .transform(v => v.toISOString()),
186
186
  type: z.literal("string"),
187
187
  value: z.string(),
@@ -106,7 +106,7 @@ exports.PostV2HumanEvalSetsResponseBody2$inboundSchema = z.object({
106
106
  updated_by_id: z.string().optional(),
107
107
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
108
108
  .optional(),
109
- updated: z.string().datetime({ offset: true }).default("2026-10-20T09:57:21.331Z").transform(v => new Date(v)),
109
+ updated: z.string().datetime({ offset: true }).default("2026-10-22T11:54:16.402Z").transform(v => new Date(v)),
110
110
  filter_type: z.literal("name"),
111
111
  filter_value: z.string(),
112
112
  }).transform((v) => {
@@ -137,7 +137,7 @@ exports.PostV2HumanEvalSetsResponseBody1$inboundSchema = z.object({
137
137
  updated_by_id: z.string().optional(),
138
138
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
139
139
  .optional(),
140
- updated: z.string().datetime({ offset: true }).default("2026-10-20T09:57:21.331Z").transform(v => new Date(v)),
140
+ updated: z.string().datetime({ offset: true }).default("2026-10-22T11:54:16.402Z").transform(v => new Date(v)),
141
141
  filter_type: z.literal("span_type"),
142
142
  filter_values: z.array(z.string()),
143
143
  }).transform((v) => {
@@ -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_01M5CBX7A453MFR44QW27Z1DM8"),
167
+ _id: z.string().default("tool_01M5HQCQ3HASNXEXXQBRCMNPV6"),
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_01M5CBX7A3AMM0K1AMXBD6YZ94"),
256
+ _id: z.string().default("tool_01M5HQCQ3GE61NVFDVKK2JR31X"),
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_01M5CBX7A30JRR39YWSVVCGH6Z"),
306
+ _id: z.string().default("tool_01M5HQCQ3GP38P20YR2TBMFWDR"),
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_01M5CBX7A2CG97C16SE79YA765"),
360
+ _id: z.string().default("tool_01M5HQCQ3FM2PRB8CNGE3ZQ8B5"),
361
361
  path: z.string(),
362
362
  key: z.string(),
363
363
  display_name: z.string().optional(),
@@ -1098,7 +1098,7 @@ function agentToolInputRunSchemaToJSON(agentToolInputRunSchema) {
1098
1098
  }
1099
1099
  /** @internal */
1100
1100
  exports.Tools$outboundSchema = z.object({
1101
- id: z.string().default("01M5CBX76W0RE36TZY6QKS2WE0"),
1101
+ id: z.string().default("01M5HQCQ11TCSZM3Y1DHMMK0QC"),
1102
1102
  name: z.string(),
1103
1103
  description: z.string().optional(),
1104
1104
  schema: z.lazy(() => exports.AgentToolInputRunSchema$outboundSchema),
@@ -1064,7 +1064,7 @@ function streamRunAgentAgentToolInputRunAgentsSchemaToJSON(streamRunAgentAgentTo
1064
1064
  }
1065
1065
  /** @internal */
1066
1066
  exports.AgentToolInputRunTools$outboundSchema = z.object({
1067
- id: z.string().default("01M5CBX77MQPRCWG4SB1KR9F75"),
1067
+ id: z.string().default("01M5HQCQ1K8KZDV2EPK4AKJBBF"),
1068
1068
  name: z.string(),
1069
1069
  description: z.string().optional(),
1070
1070
  schema: z.lazy(() => exports.StreamRunAgentAgentToolInputRunAgentsSchema$outboundSchema),
@@ -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_01M5CBX79VKW1WVZDEMRTSHKE5"),
539
+ _id: z.string().default("tool_01M5HQCQ398RPQAV9ABQXVFGPX"),
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_01M5CBX79T5G5448XZS1GH1J65"),
628
+ _id: z.string().default("tool_01M5HQCQ39MKM317H7BBG4WHDA"),
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_01M5CBX79SK4S0RZQ0C500H03C"),
678
+ _id: z.string().default("tool_01M5HQCQ38G0YDC8Q4RS29KZ2Z"),
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_01M5CBX79RR2VAPEFTVVQRJSZT"),
732
+ _id: z.string().default("tool_01M5HQCQ382P5F4C7DENRK1A7A"),
733
733
  path: z.string(),
734
734
  key: z.string(),
735
735
  display_name: z.string().optional(),
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@orq-ai/node",
3
- "version": "4.16.14",
3
+ "version": "4.16.16",
4
4
  "author": "Orq",
5
5
  "exports": {
6
- ".": {
7
- "import": "./index.js",
8
- "require": "./index.js",
9
- "types": "./index.d.ts"
10
- },
11
6
  "./*": "./*",
12
7
  "./langchain": {
8
+ "types": "./langchain/index.d.mts",
13
9
  "import": "./langchain/index.mjs",
14
- "require": "./langchain/index.js",
15
- "types": "./langchain/index.d.mts"
10
+ "require": "./langchain/index.js"
11
+ },
12
+ ".": {
13
+ "require": "./index.js",
14
+ "types": "./index.d.ts",
15
+ "import": "./index.js"
16
16
  }
17
17
  },
18
18
  "main": "./index.js",
@@ -98,7 +98,6 @@ async function $do(
98
98
  "limit": payload?.limit,
99
99
  "search": payload?.search,
100
100
  "starting_after": payload?.starting_after,
101
- "status": payload?.status,
102
101
  });
103
102
 
104
103
  const headers = new Headers(compactMap({
@@ -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.17.0-rc.43",
62
- genVersion: "2.948.4",
63
- userAgent: "speakeasy-sdk/typescript 4.17.0-rc.43 2.948.4 2.0 @orq-ai/node",
61
+ sdkVersion: "4.17.0-rc.61",
62
+ genVersion: "2.950.2",
63
+ userAgent: "speakeasy-sdk/typescript 4.17.0-rc.61 2.950.2 2.0 @orq-ai/node",
64
64
  } as const;
@@ -47,6 +47,10 @@ export type Tool = {
47
47
  * Nested tool ID for MCP tools (identifies specific tool within MCP server)
48
48
  */
49
49
  toolId?: string | undefined;
50
+ /**
51
+ * Set by the API on MCP tools resolved from a whole MCP server or gateway; they are resolved again on every save.
52
+ */
53
+ wholeServer?: boolean | undefined;
50
54
  conditions?: Array<Conditions> | undefined;
51
55
  /**
52
56
  * Tool execution timeout in seconds for this agent (max: 10 minutes). Overrides the timeout configured on the tool definition.
@@ -108,6 +112,7 @@ export const Tool$inboundSchema: z.ZodType<Tool, z.ZodTypeDef, unknown> = z
108
112
  configuration: z.record(z.any()).optional(),
109
113
  requires_approval: z.boolean().default(false),
110
114
  tool_id: z.string().optional(),
115
+ whole_server: z.boolean().optional(),
111
116
  conditions: z.array(z.lazy(() => Conditions$inboundSchema)).optional(),
112
117
  timeout: z.number().optional(),
113
118
  }).transform((v) => {
@@ -116,6 +121,7 @@ export const Tool$inboundSchema: z.ZodType<Tool, z.ZodTypeDef, unknown> = z
116
121
  "display_name": "displayName",
117
122
  "requires_approval": "requiresApproval",
118
123
  "tool_id": "toolId",
124
+ "whole_server": "wholeServer",
119
125
  });
120
126
  });
121
127
 
@@ -106,6 +106,10 @@ export type Tools = {
106
106
  * Nested tool ID for MCP tools (identifies specific tool within MCP server)
107
107
  */
108
108
  toolId?: string | undefined;
109
+ /**
110
+ * Set by the API on MCP tools resolved from a whole MCP server or gateway; they are resolved again on every save.
111
+ */
112
+ wholeServer?: boolean | undefined;
109
113
  conditions?: Array<AgentStartedStreamingEventConditions> | undefined;
110
114
  /**
111
115
  * Tool execution timeout in seconds for this agent (max: 10 minutes). Overrides the timeout configured on the tool definition.
@@ -347,6 +351,7 @@ export const Tools$inboundSchema: z.ZodType<Tools, z.ZodTypeDef, unknown> = z
347
351
  configuration: z.record(z.any()).optional(),
348
352
  requires_approval: z.boolean().default(false),
349
353
  tool_id: z.string().optional(),
354
+ whole_server: z.boolean().optional(),
350
355
  conditions: z.array(
351
356
  z.lazy(() => AgentStartedStreamingEventConditions$inboundSchema),
352
357
  ).optional(),
@@ -357,6 +362,7 @@ export const Tools$inboundSchema: z.ZodType<Tools, z.ZodTypeDef, unknown> = z
357
362
  "display_name": "displayName",
358
363
  "requires_approval": "requiresApproval",
359
364
  "tool_id": "toolId",
365
+ "whole_server": "wholeServer",
360
366
  });
361
367
  });
362
368
 
@@ -0,0 +1,39 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type CacheWriteTokensDetails = {
12
+ ttl12hTokens: number;
13
+ ttl30mTokens: number;
14
+ };
15
+
16
+ /** @internal */
17
+ export const CacheWriteTokensDetails$inboundSchema: z.ZodType<
18
+ CacheWriteTokensDetails,
19
+ z.ZodTypeDef,
20
+ unknown
21
+ > = z.object({
22
+ ttl_12h_tokens: z.number().int(),
23
+ ttl_30m_tokens: z.number().int(),
24
+ }).transform((v) => {
25
+ return remap$(v, {
26
+ "ttl_12h_tokens": "ttl12hTokens",
27
+ "ttl_30m_tokens": "ttl30mTokens",
28
+ });
29
+ });
30
+
31
+ export function cacheWriteTokensDetailsFromJSON(
32
+ jsonString: string,
33
+ ): SafeParseResult<CacheWriteTokensDetails, SDKValidationError> {
34
+ return safeParse(
35
+ jsonString,
36
+ (x) => CacheWriteTokensDetails$inboundSchema.parse(JSON.parse(x)),
37
+ `Failed to parse 'CacheWriteTokensDetails' from JSON`,
38
+ );
39
+ }
@@ -13,7 +13,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
13
13
  */
14
14
  export type FileContentPartSchema = {
15
15
  /**
16
- * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
16
+ * The file data as a data URI string in the format `data:<mime-type>;base64,<base64-encoded-data>`. Example: `data:image/png;base64,iVBORw0KGgoAAAANS...`
17
17
  */
18
18
  fileData?: string | undefined;
19
19
  /**
@@ -73,6 +73,7 @@ export * from "./budgetsortfield.js";
73
73
  export * from "./budgetusage.js";
74
74
  export * from "./bulkcreatedatapointsrequest.js";
75
75
  export * from "./cacheconfig.js";
76
+ export * from "./cachewritetokensdetails.js";
76
77
  export * from "./callsubagenttoolinput.js";
77
78
  export * from "./capabilitiesresponse.js";
78
79
  export * from "./chatkitresource.js";
@@ -415,7 +416,6 @@ export * from "./mcpgateway.js";
415
416
  export * from "./mcpgatewaymode.js";
416
417
  export * from "./mcpgatewayplugin.js";
417
418
  export * from "./mcpgatewayserverlink.js";
418
- export * from "./mcpgatewaystatus.js";
419
419
  export * from "./mcpgatewaytool.js";
420
420
  export * from "./mcpgatewaytooltestresult.js";
421
421
  export * from "./mcpheadersecret.js";
@@ -488,6 +488,7 @@ export * from "./previewchunksmetadata.js";
488
488
  export * from "./price.js";
489
489
  export * from "./pricing.js";
490
490
  export * from "./pricingvariant.js";
491
+ export * from "./privatemodelconfiguration.js";
491
492
  export * from "./processingattempt.js";
492
493
  export * from "./processingerror.js";
493
494
  export * from "./project.js";
@@ -7,12 +7,17 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ CacheWriteTokensDetails,
12
+ CacheWriteTokensDetails$inboundSchema,
13
+ } from "./cachewritetokensdetails.js";
10
14
 
11
15
  export type InputTokensDetails = {
12
16
  cacheCreation1hTokens?: number | undefined;
13
17
  cacheCreation5mTokens?: number | undefined;
14
18
  cacheCreationTokens: number;
15
19
  cacheWriteTokens: number;
20
+ cacheWriteTokensDetails?: CacheWriteTokensDetails | undefined;
16
21
  cachedTokens: number;
17
22
  };
18
23
 
@@ -26,6 +31,7 @@ export const InputTokensDetails$inboundSchema: z.ZodType<
26
31
  cache_creation_5m_tokens: z.number().int().optional(),
27
32
  cache_creation_tokens: z.number().int(),
28
33
  cache_write_tokens: z.number().int(),
34
+ cache_write_tokens_details: CacheWriteTokensDetails$inboundSchema.optional(),
29
35
  cached_tokens: z.number().int(),
30
36
  }).transform((v) => {
31
37
  return remap$(v, {
@@ -33,6 +39,7 @@ export const InputTokensDetails$inboundSchema: z.ZodType<
33
39
  "cache_creation_5m_tokens": "cacheCreation5mTokens",
34
40
  "cache_creation_tokens": "cacheCreationTokens",
35
41
  "cache_write_tokens": "cacheWriteTokens",
42
+ "cache_write_tokens_details": "cacheWriteTokensDetails",
36
43
  "cached_tokens": "cachedTokens",
37
44
  });
38
45
  });
@@ -17,6 +17,7 @@ import {
17
17
 
18
18
  export type LiteLLMModel = {
19
19
  litellmParams: LiteLLMParams;
20
+ modelId?: string | undefined;
20
21
  modelInfo: LiteLLMModelInfo;
21
22
  modelName: string;
22
23
  };
@@ -24,6 +25,7 @@ export type LiteLLMModel = {
24
25
  /** @internal */
25
26
  export type LiteLLMModel$Outbound = {
26
27
  litellm_params: LiteLLMParams$Outbound;
28
+ model_id?: string | undefined;
27
29
  model_info: LiteLLMModelInfo$Outbound;
28
30
  model_name: string;
29
31
  };
@@ -35,11 +37,13 @@ export const LiteLLMModel$outboundSchema: z.ZodType<
35
37
  LiteLLMModel
36
38
  > = z.object({
37
39
  litellmParams: LiteLLMParams$outboundSchema,
40
+ modelId: z.string().optional(),
38
41
  modelInfo: LiteLLMModelInfo$outboundSchema,
39
42
  modelName: z.string(),
40
43
  }).transform((v) => {
41
44
  return remap$(v, {
42
45
  litellmParams: "litellm_params",
46
+ modelId: "model_id",
43
47
  modelInfo: "model_info",
44
48
  modelName: "model_name",
45
49
  });
@@ -19,10 +19,6 @@ import {
19
19
  McpGatewayServerLink,
20
20
  McpGatewayServerLink$inboundSchema,
21
21
  } from "./mcpgatewayserverlink.js";
22
- import {
23
- McpGatewayStatus,
24
- McpGatewayStatus$inboundSchema,
25
- } from "./mcpgatewaystatus.js";
26
22
  import { McpToolNaming, McpToolNaming$inboundSchema } from "./mcptoolnaming.js";
27
23
  import { Sharing, Sharing$inboundSchema } from "./sharing.js";
28
24
 
@@ -48,7 +44,6 @@ export type McpGateway = {
48
44
  */
49
45
  serverLinks?: Array<McpGatewayServerLink> | undefined;
50
46
  toolNaming?: McpToolNaming | undefined;
51
- status?: McpGatewayStatus | undefined;
52
47
  /**
53
48
  * Endpoint MCP clients connect to; relative when the deployment has no public base URL configured.
54
49
  */
@@ -92,7 +87,6 @@ export const McpGateway$inboundSchema: z.ZodType<
92
87
  description: z.string().optional(),
93
88
  server_links: z.array(McpGatewayServerLink$inboundSchema).optional(),
94
89
  tool_naming: McpToolNaming$inboundSchema.optional(),
95
- status: McpGatewayStatus$inboundSchema.optional(),
96
90
  public_url: z.string().optional(),
97
91
  created: z.string().optional(),
98
92
  updated: z.string().optional(),
@@ -6,7 +6,7 @@ import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
 
8
8
  /**
9
- * Executes tools from Model Context Protocol (MCP) servers. Specify the parent MCP tool using "key" or "id", and the specific nested tool using "tool_id".
9
+ * Executes tools from Model Context Protocol (MCP) servers and gateways. Reference the server or gateway using "key" or "id"; add "tool_id" to attach a single tool, or omit it to attach every tool it exposes.
10
10
  */
11
11
  export type McpToolInput = {
12
12
  /**
@@ -14,17 +14,17 @@ export type McpToolInput = {
14
14
  */
15
15
  type: "mcp";
16
16
  /**
17
- * The key of the parent MCP tool
17
+ * The key of the MCP server or MCP gateway
18
18
  */
19
19
  key?: string | undefined;
20
20
  /**
21
- * The ID of the parent MCP tool
21
+ * The ID of the MCP server or MCP gateway
22
22
  */
23
23
  id?: string | undefined;
24
24
  /**
25
- * The ID of the specific nested tool within the MCP server
25
+ * The ID of a specific tool within the MCP server. Omit to attach every tool the server or gateway exposes.
26
26
  */
27
- toolId: string;
27
+ toolId?: string | undefined;
28
28
  /**
29
29
  * Whether this tool requires approval before execution
30
30
  */
@@ -36,7 +36,7 @@ export type McpToolInput$Outbound = {
36
36
  type: "mcp";
37
37
  key?: string | undefined;
38
38
  id?: string | undefined;
39
- tool_id: string;
39
+ tool_id?: string | undefined;
40
40
  requires_approval: boolean;
41
41
  };
42
42
 
@@ -49,7 +49,7 @@ export const McpToolInput$outboundSchema: z.ZodType<
49
49
  type: z.literal("mcp"),
50
50
  key: z.string().optional(),
51
51
  id: z.string().optional(),
52
- toolId: z.string(),
52
+ toolId: z.string().optional(),
53
53
  requiresApproval: z.boolean().default(false),
54
54
  }).transform((v) => {
55
55
  return remap$(v, {