@orq-ai/node 4.16.13 → 4.16.15
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.
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createtool.js +4 -4
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listdeploymentversions.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +7 -7
- package/packages/orq-rc/src/funcs/humanReviewSetsCreate.ts +5 -0
- package/packages/orq-rc/src/funcs/humanReviewSetsDelete.ts +5 -0
- package/packages/orq-rc/src/funcs/humanReviewSetsGet.ts +5 -0
- package/packages/orq-rc/src/funcs/humanReviewSetsList.ts +5 -0
- package/packages/orq-rc/src/funcs/humanReviewSetsUpdate.ts +5 -0
- package/packages/orq-rc/src/funcs/mcpGatewaysList.ts +0 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +6 -0
- package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +6 -0
- package/packages/orq-rc/src/models/components/cachewritetokensdetails.ts +39 -0
- package/packages/orq-rc/src/models/components/filecontentpartschema.ts +1 -1
- package/packages/orq-rc/src/models/components/index.ts +2 -1
- package/packages/orq-rc/src/models/components/inputtokensdetails.ts +7 -0
- package/packages/orq-rc/src/models/components/litellmmodel.ts +4 -0
- package/packages/orq-rc/src/models/components/mcpgateway.ts +0 -6
- package/packages/orq-rc/src/models/components/mcptoolinput.ts +7 -7
- package/packages/orq-rc/src/models/components/modelconfigurationresponse.ts +3 -0
- package/packages/orq-rc/src/models/components/modelmetadata.ts +6 -0
- package/packages/orq-rc/src/models/components/openaipromptcacheoptions.ts +1 -0
- package/packages/orq-rc/src/models/components/pricing.ts +6 -0
- package/packages/orq-rc/src/models/components/pricingvariant.ts +6 -0
- package/packages/orq-rc/src/models/components/privatemodelconfiguration.ts +39 -0
- package/packages/orq-rc/src/models/components/publicresponseresource.ts +1 -1
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/redactresponse.ts +1 -1
- package/packages/orq-rc/src/models/components/updatemcpgatewayrequest.ts +0 -7
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +6 -0
- package/packages/orq-rc/src/models/operations/createprompt.ts +1 -1
- package/packages/orq-rc/src/models/operations/createrouterresponse.ts +225 -20
- package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +1 -1
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +15 -18
- package/packages/orq-rc/src/models/operations/deployments.ts +1 -1
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +11 -14
- package/packages/orq-rc/src/models/operations/getallprompts.ts +1 -1
- package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +1 -1
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +1 -1
- package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/index.ts +0 -2
- package/packages/orq-rc/src/models/operations/listagents.ts +6 -0
- package/packages/orq-rc/src/models/operations/listdeploymentversions.ts +2 -2
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +1 -1
- package/packages/orq-rc/src/models/operations/mcpgatewaylist.ts +0 -7
- package/packages/orq-rc/src/models/operations/modelcreate.ts +3 -0
- package/packages/orq-rc/src/models/operations/modelcreateawsbedrock.ts +6 -0
- package/packages/orq-rc/src/models/operations/modelcreateopenailike.ts +6 -0
- package/packages/orq-rc/src/models/operations/modelcreatevertex.ts +7 -0
- package/packages/orq-rc/src/models/operations/modelupdate.ts +7 -0
- package/packages/orq-rc/src/models/operations/modelupdateawsbedrock.ts +3 -0
- package/packages/orq-rc/src/models/operations/modelupdateopenailike.ts +3 -0
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +21 -35
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +6 -0
- package/packages/orq-rc/src/models/operations/retrieveresponse.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
- package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateagent.ts +6 -0
- package/packages/orq-rc/src/models/operations/updateprompt.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
- package/packages/orq-rc/src/sdk/feedback.ts +0 -30
- package/packages/orq-rc/src/sdk/humanreviewsets.ts +25 -0
- package/packages/orq-rc/src/sdk/sdk.ts +5 -5
- package/src/lib/config.ts +3 -3
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listdeploymentversions.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
- package/packages/orq-rc/src/funcs/feedbackCreateEvaluation.ts +0 -173
- package/packages/orq-rc/src/funcs/feedbackRemoveEvaluation.ts +0 -173
- package/packages/orq-rc/src/models/components/mcpgatewaystatus.ts +0 -21
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +0 -453
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluationremove.ts +0 -43
package/jsr.json
CHANGED
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.
|
|
35
|
-
readonly genVersion: "2.
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 4.16.
|
|
34
|
+
readonly sdkVersion: "4.16.15";
|
|
35
|
+
readonly genVersion: "2.950.2";
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 4.16.15 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.
|
|
32
|
-
genVersion: "2.
|
|
33
|
-
userAgent: "speakeasy-sdk/typescript 4.16.
|
|
31
|
+
sdkVersion: "4.16.15",
|
|
32
|
+
genVersion: "2.950.2",
|
|
33
|
+
userAgent: "speakeasy-sdk/typescript 4.16.15 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("
|
|
46
|
+
_id: z.string().default("reasoning_01m5ftjnek8qwsgrkcptbqpajk"),
|
|
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("
|
|
475
|
+
_id: z.string().default("tool_01M5FTJNK8KVA3B29YR3TN6XXH"),
|
|
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("
|
|
565
|
+
_id: z.string().default("tool_01M5FTJNK79CC6G3Q0K9935ASA"),
|
|
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("
|
|
615
|
+
_id: z.string().default("tool_01M5FTJNK7AWHJJGT72KBTRBKJ"),
|
|
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("
|
|
668
|
+
_id: z.string().default("tool_01M5FTJNK6CN3B440S22ZTY0JV"),
|
|
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("
|
|
175
|
+
_id: z.string().default("tool_01M5FTJNK193QM6PVW6D9FBAEQ"),
|
|
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("
|
|
264
|
+
_id: z.string().default("tool_01M5FTJNK0HE2D28WX4X3WJ8YB"),
|
|
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("
|
|
314
|
+
_id: z.string().default("tool_01M5FTJNJZ2NY3WA7C38YRKRXA"),
|
|
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("
|
|
369
|
+
_id: z.string().default("tool_01M5FTJNJZ2CHD6VJFV1KWX3DG"),
|
|
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-
|
|
70
|
+
updated: z.string().datetime({ offset: true }).default("2026-10-21T18:11:27.274Z").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-
|
|
101
|
+
updated: z.string().datetime({ offset: true }).default("2026-10-21T18:11:27.274Z").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-
|
|
66
|
+
updated: z.string().datetime({ offset: true }).default("2026-10-21T18:11:27.274Z").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-
|
|
97
|
+
updated: z.string().datetime({ offset: true }).default("2026-10-21T18:11:27.274Z").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("
|
|
1014
|
+
id: z.string().default("01M5FTJND6Y99VFK70DTM6NJWE"),
|
|
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-
|
|
125
|
+
updated: z.string().datetime({ offset: true }).default("2026-10-21T18:11:27.274Z").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-
|
|
156
|
+
updated: z.string().datetime({ offset: true }).default("2026-10-21T18:11:27.274Z").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-
|
|
99
|
+
reviewedAt: z.date().default(() => new Date("2026-10-21T18:11:35.719Z"))
|
|
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-
|
|
129
|
+
reviewedAt: z.date().default(() => new Date("2026-10-21T18:11:35.718Z"))
|
|
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-
|
|
157
|
+
reviewedAt: z.date().default(() => new Date("2026-10-21T18:11:35.718Z"))
|
|
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-
|
|
184
|
+
reviewedAt: z.date().default(() => new Date("2026-10-21T18:11:35.718Z"))
|
|
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-
|
|
109
|
+
updated: z.string().datetime({ offset: true }).default("2026-10-21T18:11:27.274Z").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-
|
|
140
|
+
updated: z.string().datetime({ offset: true }).default("2026-10-21T18:11:27.274Z").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("
|
|
167
|
+
_id: z.string().default("tool_01M5FTJNKSM5S07H5KE312B2VJ"),
|
|
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("
|
|
256
|
+
_id: z.string().default("tool_01M5FTJNKRY8XCJHXS3FW2GVH6"),
|
|
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("
|
|
306
|
+
_id: z.string().default("tool_01M5FTJNKQH1CH7VBXB9E4GCVZ"),
|
|
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("
|
|
360
|
+
_id: z.string().default("tool_01M5FTJNKPF17GBS65VQ0FA6GH"),
|
|
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("
|
|
1101
|
+
id: z.string().default("01M5FTJNGFQRR0XMP2W44Y99G2"),
|
|
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("
|
|
1067
|
+
id: z.string().default("01M5FTJNH7QHGK8DSDAEHH8410"),
|
|
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("
|
|
539
|
+
_id: z.string().default("tool_01M5FTJNKFTFQ1ZYQWJXSP64FZ"),
|
|
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("
|
|
628
|
+
_id: z.string().default("tool_01M5FTJNKEPWV3TQ8C1PTSAT6D"),
|
|
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("
|
|
678
|
+
_id: z.string().default("tool_01M5FTJNKDVP1SXXH15XYGPRHE"),
|
|
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("
|
|
732
|
+
_id: z.string().default("tool_01M5FTJNKDZTJ4HYPSMRCQYKW8"),
|
|
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.
|
|
3
|
+
"version": "4.16.15",
|
|
4
4
|
"author": "Orq",
|
|
5
5
|
"exports": {
|
|
6
|
-
"./*": "./*",
|
|
7
|
-
"./langchain": {
|
|
8
|
-
"import": "./langchain/index.mjs",
|
|
9
|
-
"require": "./langchain/index.js",
|
|
10
|
-
"types": "./langchain/index.d.mts"
|
|
11
|
-
},
|
|
12
6
|
".": {
|
|
13
7
|
"import": "./index.js",
|
|
14
8
|
"require": "./index.js",
|
|
15
9
|
"types": "./index.d.ts"
|
|
10
|
+
},
|
|
11
|
+
"./*": "./*",
|
|
12
|
+
"./langchain": {
|
|
13
|
+
"require": "./langchain/index.js",
|
|
14
|
+
"types": "./langchain/index.d.mts",
|
|
15
|
+
"import": "./langchain/index.mjs"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"main": "./index.js",
|
|
@@ -28,6 +28,11 @@ import { Result } from "../types/fp.js";
|
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Create a human review set
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Deprecated: Human Review Sets are replaced by project-level human reviews (Annotations) and will be removed in release 4.18.
|
|
34
|
+
*
|
|
35
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
31
36
|
*/
|
|
32
37
|
export function humanReviewSetsCreate(
|
|
33
38
|
client: OrqCore,
|
|
@@ -29,6 +29,11 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* Delete a human review set
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* Deprecated: Human Review Sets are replaced by project-level human reviews (Annotations) and will be removed in release 4.18.
|
|
35
|
+
*
|
|
36
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
32
37
|
*/
|
|
33
38
|
export function humanReviewSetsDelete(
|
|
34
39
|
client: OrqCore,
|
|
@@ -28,6 +28,11 @@ import { Result } from "../types/fp.js";
|
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Get a human review set by ID
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Deprecated: Human Review Sets are replaced by project-level human reviews (Annotations) and will be removed in release 4.18.
|
|
34
|
+
*
|
|
35
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
31
36
|
*/
|
|
32
37
|
export function humanReviewSetsGet(
|
|
33
38
|
client: OrqCore,
|
|
@@ -29,6 +29,11 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* Get all human review sets
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* Deprecated: Human Review Sets are replaced by project-level human reviews (Annotations) and will be removed in release 4.18.
|
|
35
|
+
*
|
|
36
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
32
37
|
*/
|
|
33
38
|
export function humanReviewSetsList(
|
|
34
39
|
client: OrqCore,
|
|
@@ -28,6 +28,11 @@ import { Result } from "../types/fp.js";
|
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Update a human review set
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Deprecated: Human Review Sets are replaced by project-level human reviews (Annotations) and will be removed in release 4.18.
|
|
34
|
+
*
|
|
35
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
31
36
|
*/
|
|
32
37
|
export function humanReviewSetsUpdate(
|
|
33
38
|
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.17.0-rc.
|
|
62
|
-
genVersion: "2.
|
|
63
|
-
userAgent: "speakeasy-sdk/typescript 4.17.0-rc.
|
|
61
|
+
sdkVersion: "4.17.0-rc.54",
|
|
62
|
+
genVersion: "2.950.2",
|
|
63
|
+
userAgent: "speakeasy-sdk/typescript 4.17.0-rc.54 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
|
|
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
|
});
|