@orq-ai/node 4.2.0-rc.47 → 4.2.0-rc.49
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/bin/mcp-server.js +262 -232
- package/bin/mcp-server.js.map +46 -46
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/agentinactivestreamingevent.d.ts +29 -0
- package/models/components/agentinactivestreamingevent.d.ts.map +1 -1
- package/models/components/agentinactivestreamingevent.js +41 -1
- package/models/components/agentinactivestreamingevent.js.map +1 -1
- package/models/components/conversationresponse.js +2 -2
- package/models/components/conversationwithmessagesresponse.js +2 -2
- package/models/components/partdoneevent.js +2 -2
- package/models/components/reasoningpart.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createconversation.js +2 -2
- package/models/operations/createconversationresponse.js +4 -4
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createidentity.js +2 -2
- package/models/operations/createtool.js +12 -12
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/generateconversationname.js +2 -2
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getevals.js +28 -28
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/listidentities.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrieveidentity.js +2 -2
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.js +2 -2
- package/models/operations/streamrunagent.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updateconversation.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updateidentity.js +2 -2
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/agentinactivestreamingevent.ts +76 -0
- package/src/models/components/conversationresponse.ts +2 -2
- package/src/models/components/conversationwithmessagesresponse.ts +2 -2
- package/src/models/components/partdoneevent.ts +2 -2
- package/src/models/components/reasoningpart.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createconversation.ts +2 -2
- package/src/models/operations/createconversationresponse.ts +4 -4
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createidentity.ts +2 -2
- package/src/models/operations/createtool.ts +12 -12
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/generateconversationname.ts +2 -2
- package/src/models/operations/getalltools.ts +12 -12
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/listidentities.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrieveidentity.ts +2 -2
- package/src/models/operations/retrievetool.ts +12 -12
- package/src/models/operations/runagent.ts +2 -2
- package/src/models/operations/streamrunagent.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updateconversation.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updateidentity.ts +2 -2
- package/src/models/operations/updatetool.ts +14 -14
|
@@ -999,8 +999,8 @@ function updateEvalResponseBodyEvalsResponse200ApplicationJSON7GuardrailConfigFr
|
|
|
999
999
|
exports.ResponseBodyTypescript$inboundSchema = z.object({
|
|
1000
1000
|
_id: z.string(),
|
|
1001
1001
|
description: z.string(),
|
|
1002
|
-
created: z.string().default("2026-01-
|
|
1003
|
-
updated: z.string().default("2026-01-
|
|
1002
|
+
created: z.string().default("2026-01-20T13:21:45.610Z"),
|
|
1003
|
+
updated: z.string().default("2026-01-20T13:21:45.610Z"),
|
|
1004
1004
|
guardrail_config: z.union([
|
|
1005
1005
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$inboundSchema),
|
|
1006
1006
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$inboundSchema),
|
|
@@ -1018,8 +1018,8 @@ exports.ResponseBodyTypescript$inboundSchema = z.object({
|
|
|
1018
1018
|
exports.ResponseBodyTypescript$outboundSchema = z.object({
|
|
1019
1019
|
id: z.string(),
|
|
1020
1020
|
description: z.string(),
|
|
1021
|
-
created: z.string().default("2026-01-
|
|
1022
|
-
updated: z.string().default("2026-01-
|
|
1021
|
+
created: z.string().default("2026-01-20T13:21:45.610Z"),
|
|
1022
|
+
updated: z.string().default("2026-01-20T13:21:45.610Z"),
|
|
1023
1023
|
guardrailConfig: z.union([
|
|
1024
1024
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$outboundSchema),
|
|
1025
1025
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$outboundSchema),
|
|
@@ -1131,8 +1131,8 @@ exports.ResponseBodyRagasMetric$outboundSchema = exports.ResponseBodyRagasMetric
|
|
|
1131
1131
|
exports.ResponseBodyRagas$inboundSchema = z.object({
|
|
1132
1132
|
_id: z.string(),
|
|
1133
1133
|
description: z.string(),
|
|
1134
|
-
created: z.string().default("2026-01-
|
|
1135
|
-
updated: z.string().default("2026-01-
|
|
1134
|
+
created: z.string().default("2026-01-20T13:21:45.610Z"),
|
|
1135
|
+
updated: z.string().default("2026-01-20T13:21:45.610Z"),
|
|
1136
1136
|
guardrail_config: z.union([
|
|
1137
1137
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean$inboundSchema),
|
|
1138
1138
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$inboundSchema),
|
|
@@ -1152,8 +1152,8 @@ exports.ResponseBodyRagas$inboundSchema = z.object({
|
|
|
1152
1152
|
exports.ResponseBodyRagas$outboundSchema = z.object({
|
|
1153
1153
|
id: z.string(),
|
|
1154
1154
|
description: z.string(),
|
|
1155
|
-
created: z.string().default("2026-01-
|
|
1156
|
-
updated: z.string().default("2026-01-
|
|
1155
|
+
created: z.string().default("2026-01-20T13:21:45.610Z"),
|
|
1156
|
+
updated: z.string().default("2026-01-20T13:21:45.610Z"),
|
|
1157
1157
|
guardrailConfig: z.union([
|
|
1158
1158
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean$outboundSchema),
|
|
1159
1159
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$outboundSchema),
|
|
@@ -1811,8 +1811,8 @@ function responseBodyFunctionParamsFromJSON(jsonString) {
|
|
|
1811
1811
|
exports.ResponseBodyFunction$inboundSchema = z.object({
|
|
1812
1812
|
_id: z.string(),
|
|
1813
1813
|
description: z.string(),
|
|
1814
|
-
created: z.string().default("2026-01-
|
|
1815
|
-
updated: z.string().default("2026-01-
|
|
1814
|
+
created: z.string().default("2026-01-20T13:21:45.610Z"),
|
|
1815
|
+
updated: z.string().default("2026-01-20T13:21:45.610Z"),
|
|
1816
1816
|
guardrail_config: z.union([
|
|
1817
1817
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Boolean$inboundSchema),
|
|
1818
1818
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$inboundSchema),
|
|
@@ -1864,8 +1864,8 @@ exports.ResponseBodyFunction$inboundSchema = z.object({
|
|
|
1864
1864
|
exports.ResponseBodyFunction$outboundSchema = z.object({
|
|
1865
1865
|
id: z.string(),
|
|
1866
1866
|
description: z.string(),
|
|
1867
|
-
created: z.string().default("2026-01-
|
|
1868
|
-
updated: z.string().default("2026-01-
|
|
1867
|
+
created: z.string().default("2026-01-20T13:21:45.610Z"),
|
|
1868
|
+
updated: z.string().default("2026-01-20T13:21:45.610Z"),
|
|
1869
1869
|
guardrailConfig: z.union([
|
|
1870
1870
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Boolean$outboundSchema),
|
|
1871
1871
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$outboundSchema),
|
|
@@ -2005,8 +2005,8 @@ function updateEvalResponseBodyEvalsResponse200GuardrailConfigFromJSON(jsonStrin
|
|
|
2005
2005
|
exports.UpdateEvalResponseBodyPython$inboundSchema = z.object({
|
|
2006
2006
|
_id: z.string(),
|
|
2007
2007
|
description: z.string(),
|
|
2008
|
-
created: z.string().default("2026-01-
|
|
2009
|
-
updated: z.string().default("2026-01-
|
|
2008
|
+
created: z.string().default("2026-01-20T13:21:45.610Z"),
|
|
2009
|
+
updated: z.string().default("2026-01-20T13:21:45.610Z"),
|
|
2010
2010
|
guardrail_config: z.union([
|
|
2011
2011
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema),
|
|
2012
2012
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema),
|
|
@@ -2024,8 +2024,8 @@ exports.UpdateEvalResponseBodyPython$inboundSchema = z.object({
|
|
|
2024
2024
|
exports.UpdateEvalResponseBodyPython$outboundSchema = z.object({
|
|
2025
2025
|
id: z.string(),
|
|
2026
2026
|
description: z.string(),
|
|
2027
|
-
created: z.string().default("2026-01-
|
|
2028
|
-
updated: z.string().default("2026-01-
|
|
2027
|
+
created: z.string().default("2026-01-20T13:21:45.610Z"),
|
|
2028
|
+
updated: z.string().default("2026-01-20T13:21:45.610Z"),
|
|
2029
2029
|
guardrailConfig: z.union([
|
|
2030
2030
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$outboundSchema),
|
|
2031
2031
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema),
|
|
@@ -2135,8 +2135,8 @@ exports.UpdateEvalResponseBodyMethod$outboundSchema = exports.UpdateEvalResponse
|
|
|
2135
2135
|
exports.UpdateEvalResponseBodyHTTP$inboundSchema = z.object({
|
|
2136
2136
|
_id: z.string(),
|
|
2137
2137
|
description: z.string(),
|
|
2138
|
-
created: z.string().default("2026-01-
|
|
2139
|
-
updated: z.string().default("2026-01-
|
|
2138
|
+
created: z.string().default("2026-01-20T13:21:45.610Z"),
|
|
2139
|
+
updated: z.string().default("2026-01-20T13:21:45.610Z"),
|
|
2140
2140
|
guardrail_config: z.union([
|
|
2141
2141
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema),
|
|
2142
2142
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema),
|
|
@@ -2157,8 +2157,8 @@ exports.UpdateEvalResponseBodyHTTP$inboundSchema = z.object({
|
|
|
2157
2157
|
exports.UpdateEvalResponseBodyHTTP$outboundSchema = z.object({
|
|
2158
2158
|
id: z.string(),
|
|
2159
2159
|
description: z.string(),
|
|
2160
|
-
created: z.string().default("2026-01-
|
|
2161
|
-
updated: z.string().default("2026-01-
|
|
2160
|
+
created: z.string().default("2026-01-20T13:21:45.610Z"),
|
|
2161
|
+
updated: z.string().default("2026-01-20T13:21:45.610Z"),
|
|
2162
2162
|
guardrailConfig: z.union([
|
|
2163
2163
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$outboundSchema),
|
|
2164
2164
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema),
|
|
@@ -2264,8 +2264,8 @@ function updateEvalResponseBodyEvalsGuardrailConfigFromJSON(jsonString) {
|
|
|
2264
2264
|
exports.UpdateEvalResponseBodyJSON$inboundSchema = z.object({
|
|
2265
2265
|
_id: z.string(),
|
|
2266
2266
|
description: z.string(),
|
|
2267
|
-
created: z.string().default("2026-01-
|
|
2268
|
-
updated: z.string().default("2026-01-
|
|
2267
|
+
created: z.string().default("2026-01-20T13:21:45.610Z"),
|
|
2268
|
+
updated: z.string().default("2026-01-20T13:21:45.610Z"),
|
|
2269
2269
|
guardrail_config: z.union([
|
|
2270
2270
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema),
|
|
2271
2271
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
@@ -2283,8 +2283,8 @@ exports.UpdateEvalResponseBodyJSON$inboundSchema = z.object({
|
|
|
2283
2283
|
exports.UpdateEvalResponseBodyJSON$outboundSchema = z.object({
|
|
2284
2284
|
id: z.string(),
|
|
2285
2285
|
description: z.string(),
|
|
2286
|
-
created: z.string().default("2026-01-
|
|
2287
|
-
updated: z.string().default("2026-01-
|
|
2286
|
+
created: z.string().default("2026-01-20T13:21:45.610Z"),
|
|
2287
|
+
updated: z.string().default("2026-01-20T13:21:45.610Z"),
|
|
2288
2288
|
guardrailConfig: z.union([
|
|
2289
2289
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Boolean$outboundSchema),
|
|
2290
2290
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Number$outboundSchema),
|
|
@@ -2387,8 +2387,8 @@ function updateEvalResponseBodyGuardrailConfigFromJSON(jsonString) {
|
|
|
2387
2387
|
exports.UpdateEvalResponseBodyLLM$inboundSchema = z.object({
|
|
2388
2388
|
_id: z.string(),
|
|
2389
2389
|
description: z.string(),
|
|
2390
|
-
created: z.string().default("2026-01-
|
|
2391
|
-
updated: z.string().default("2026-01-
|
|
2390
|
+
created: z.string().default("2026-01-20T13:21:45.610Z"),
|
|
2391
|
+
updated: z.string().default("2026-01-20T13:21:45.610Z"),
|
|
2392
2392
|
guardrail_config: z.union([
|
|
2393
2393
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
2394
2394
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
@@ -2407,8 +2407,8 @@ exports.UpdateEvalResponseBodyLLM$inboundSchema = z.object({
|
|
|
2407
2407
|
exports.UpdateEvalResponseBodyLLM$outboundSchema = z.object({
|
|
2408
2408
|
id: z.string(),
|
|
2409
2409
|
description: z.string(),
|
|
2410
|
-
created: z.string().default("2026-01-
|
|
2411
|
-
updated: z.string().default("2026-01-
|
|
2410
|
+
created: z.string().default("2026-01-20T13:21:45.610Z"),
|
|
2411
|
+
updated: z.string().default("2026-01-20T13:21:45.610Z"),
|
|
2412
2412
|
guardrailConfig: z.union([
|
|
2413
2413
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema),
|
|
2414
2414
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
@@ -114,7 +114,7 @@ exports.UpdateIdentityResponseBody$inboundSchema = z.object({
|
|
|
114
114
|
metadata: z.record(z.any()).optional(),
|
|
115
115
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
116
116
|
.optional(),
|
|
117
|
-
updated: z.string().datetime({ offset: true }).default("2026-01-
|
|
117
|
+
updated: z.string().datetime({ offset: true }).default("2026-01-20T13:21:43.266Z").transform(v => new Date(v)),
|
|
118
118
|
}).transform((v) => {
|
|
119
119
|
return (0, primitives_js_1.remap)(v, {
|
|
120
120
|
"_id": "id",
|
|
@@ -133,7 +133,7 @@ exports.UpdateIdentityResponseBody$outboundSchema = z.object({
|
|
|
133
133
|
tags: z.array(z.string()).optional(),
|
|
134
134
|
metadata: z.record(z.any()).optional(),
|
|
135
135
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
136
|
-
updated: z.date().default(() => new Date("2026-01-
|
|
136
|
+
updated: z.date().default(() => new Date("2026-01-20T13:21:43.266Z"))
|
|
137
137
|
.transform(v => v.toISOString()),
|
|
138
138
|
}).transform((v) => {
|
|
139
139
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -451,14 +451,14 @@ function updateToolRequestBodyToolsSchemaFromJSON(jsonString) {
|
|
|
451
451
|
}
|
|
452
452
|
/** @internal */
|
|
453
453
|
exports.RequestBodyTools$inboundSchema = z.object({
|
|
454
|
-
id: z.string().default("
|
|
454
|
+
id: z.string().default("01KFDS3BQN44Z6570MCK3FWKDY"),
|
|
455
455
|
name: z.string(),
|
|
456
456
|
description: z.string().optional(),
|
|
457
457
|
schema: z.lazy(() => exports.UpdateToolRequestBodyToolsSchema$inboundSchema),
|
|
458
458
|
});
|
|
459
459
|
/** @internal */
|
|
460
460
|
exports.RequestBodyTools$outboundSchema = z.object({
|
|
461
|
-
id: z.string().default("
|
|
461
|
+
id: z.string().default("01KFDS3BQN44Z6570MCK3FWKDY"),
|
|
462
462
|
name: z.string(),
|
|
463
463
|
description: z.string().optional(),
|
|
464
464
|
schema: z.lazy(() => exports.UpdateToolRequestBodyToolsSchema$outboundSchema),
|
|
@@ -988,7 +988,7 @@ function updateToolResponseBodyCodeToolFromJSON(jsonString) {
|
|
|
988
988
|
}
|
|
989
989
|
/** @internal */
|
|
990
990
|
exports.UpdateToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
|
|
991
|
-
_id: z.string().default("
|
|
991
|
+
_id: z.string().default("tool_01KFDS3BPTR32X9Z64YG2KDHB2"),
|
|
992
992
|
path: z.string(),
|
|
993
993
|
key: z.string(),
|
|
994
994
|
display_name: z.string().optional(),
|
|
@@ -1018,7 +1018,7 @@ exports.UpdateToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
|
|
|
1018
1018
|
});
|
|
1019
1019
|
/** @internal */
|
|
1020
1020
|
exports.UpdateToolResponseBodyCodeExecutionTool$outboundSchema = z.object({
|
|
1021
|
-
id: z.string().default("
|
|
1021
|
+
id: z.string().default("tool_01KFDS3BPTR32X9Z64YG2KDHB2"),
|
|
1022
1022
|
path: z.string(),
|
|
1023
1023
|
key: z.string(),
|
|
1024
1024
|
displayName: z.string().optional(),
|
|
@@ -1097,14 +1097,14 @@ function updateToolResponseBodyToolsSchemaFromJSON(jsonString) {
|
|
|
1097
1097
|
}
|
|
1098
1098
|
/** @internal */
|
|
1099
1099
|
exports.UpdateToolResponseBodyTools$inboundSchema = z.object({
|
|
1100
|
-
id: z.string().default("
|
|
1100
|
+
id: z.string().default("01KFDS3BPQ8DPSB6G586JMCKAG"),
|
|
1101
1101
|
name: z.string(),
|
|
1102
1102
|
description: z.string().optional(),
|
|
1103
1103
|
schema: z.lazy(() => exports.UpdateToolResponseBodyToolsSchema$inboundSchema),
|
|
1104
1104
|
});
|
|
1105
1105
|
/** @internal */
|
|
1106
1106
|
exports.UpdateToolResponseBodyTools$outboundSchema = z.object({
|
|
1107
|
-
id: z.string().default("
|
|
1107
|
+
id: z.string().default("01KFDS3BPQ8DPSB6G586JMCKAG"),
|
|
1108
1108
|
name: z.string(),
|
|
1109
1109
|
description: z.string().optional(),
|
|
1110
1110
|
schema: z.lazy(() => exports.UpdateToolResponseBodyToolsSchema$outboundSchema),
|
|
@@ -1153,7 +1153,7 @@ function updateToolResponseBodyMcpFromJSON(jsonString) {
|
|
|
1153
1153
|
}
|
|
1154
1154
|
/** @internal */
|
|
1155
1155
|
exports.UpdateToolResponseBodyMCPTool$inboundSchema = z.object({
|
|
1156
|
-
_id: z.string().default("
|
|
1156
|
+
_id: z.string().default("tool_01KFDS3BPJN44V5ZHVYRSKW0JA"),
|
|
1157
1157
|
path: z.string(),
|
|
1158
1158
|
key: z.string(),
|
|
1159
1159
|
display_name: z.string().optional(),
|
|
@@ -1181,7 +1181,7 @@ exports.UpdateToolResponseBodyMCPTool$inboundSchema = z.object({
|
|
|
1181
1181
|
});
|
|
1182
1182
|
/** @internal */
|
|
1183
1183
|
exports.UpdateToolResponseBodyMCPTool$outboundSchema = z.object({
|
|
1184
|
-
id: z.string().default("
|
|
1184
|
+
id: z.string().default("tool_01KFDS3BPJN44V5ZHVYRSKW0JA"),
|
|
1185
1185
|
path: z.string(),
|
|
1186
1186
|
key: z.string(),
|
|
1187
1187
|
displayName: z.string().optional(),
|
|
@@ -1330,7 +1330,7 @@ function updateToolResponseBodyHttpFromJSON(jsonString) {
|
|
|
1330
1330
|
}
|
|
1331
1331
|
/** @internal */
|
|
1332
1332
|
exports.UpdateToolResponseBodyHTTPTool$inboundSchema = z.object({
|
|
1333
|
-
_id: z.string().default("
|
|
1333
|
+
_id: z.string().default("tool_01KFDS3BPA4HPP11QXTKSGZXT1"),
|
|
1334
1334
|
path: z.string(),
|
|
1335
1335
|
key: z.string(),
|
|
1336
1336
|
display_name: z.string().optional(),
|
|
@@ -1358,7 +1358,7 @@ exports.UpdateToolResponseBodyHTTPTool$inboundSchema = z.object({
|
|
|
1358
1358
|
});
|
|
1359
1359
|
/** @internal */
|
|
1360
1360
|
exports.UpdateToolResponseBodyHTTPTool$outboundSchema = z.object({
|
|
1361
|
-
id: z.string().default("
|
|
1361
|
+
id: z.string().default("tool_01KFDS3BPA4HPP11QXTKSGZXT1"),
|
|
1362
1362
|
path: z.string(),
|
|
1363
1363
|
key: z.string(),
|
|
1364
1364
|
displayName: z.string().optional(),
|
|
@@ -1442,7 +1442,7 @@ function updateToolResponseBodyJsonSchemaFromJSON(jsonString) {
|
|
|
1442
1442
|
}
|
|
1443
1443
|
/** @internal */
|
|
1444
1444
|
exports.UpdateToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
|
|
1445
|
-
_id: z.string().default("
|
|
1445
|
+
_id: z.string().default("tool_01KFDS3BP36SV0D44PRQ2V0D2J"),
|
|
1446
1446
|
path: z.string(),
|
|
1447
1447
|
key: z.string(),
|
|
1448
1448
|
display_name: z.string().optional(),
|
|
@@ -1471,7 +1471,7 @@ exports.UpdateToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
|
|
|
1471
1471
|
});
|
|
1472
1472
|
/** @internal */
|
|
1473
1473
|
exports.UpdateToolResponseBodyJSONSchemaTool$outboundSchema = z.object({
|
|
1474
|
-
id: z.string().default("
|
|
1474
|
+
id: z.string().default("tool_01KFDS3BP36SV0D44PRQ2V0D2J"),
|
|
1475
1475
|
path: z.string(),
|
|
1476
1476
|
key: z.string(),
|
|
1477
1477
|
displayName: z.string().optional(),
|
|
@@ -1562,7 +1562,7 @@ function updateToolResponseBodyFunctionFromJSON(jsonString) {
|
|
|
1562
1562
|
}
|
|
1563
1563
|
/** @internal */
|
|
1564
1564
|
exports.UpdateToolResponseBodyFunctionTool$inboundSchema = z.object({
|
|
1565
|
-
_id: z.string().default("
|
|
1565
|
+
_id: z.string().default("tool_01KFDS3BNXQ1SFWH1EGMFR9T2S"),
|
|
1566
1566
|
path: z.string(),
|
|
1567
1567
|
key: z.string(),
|
|
1568
1568
|
display_name: z.string().optional(),
|
|
@@ -1590,7 +1590,7 @@ exports.UpdateToolResponseBodyFunctionTool$inboundSchema = z.object({
|
|
|
1590
1590
|
});
|
|
1591
1591
|
/** @internal */
|
|
1592
1592
|
exports.UpdateToolResponseBodyFunctionTool$outboundSchema = z.object({
|
|
1593
|
-
id: z.string().default("
|
|
1593
|
+
id: z.string().default("tool_01KFDS3BNXQ1SFWH1EGMFR9T2S"),
|
|
1594
1594
|
path: z.string(),
|
|
1595
1595
|
key: z.string(),
|
|
1596
1596
|
displayName: z.string().optional(),
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -68,7 +68,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
68
68
|
export const SDK_METADATA = {
|
|
69
69
|
language: "typescript",
|
|
70
70
|
openapiDocVersion: "2.0",
|
|
71
|
-
sdkVersion: "4.2.0-rc.
|
|
71
|
+
sdkVersion: "4.2.0-rc.49",
|
|
72
72
|
genVersion: "2.797.1",
|
|
73
|
-
userAgent: "speakeasy-sdk/typescript 4.2.0-rc.
|
|
73
|
+
userAgent: "speakeasy-sdk/typescript 4.2.0-rc.49 2.797.1 2.0 @orq-ai/node",
|
|
74
74
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -167,6 +167,17 @@ export type AgentInactiveStreamingEventUsage = {
|
|
|
167
167
|
timeToFirstToken?: number | undefined;
|
|
168
168
|
};
|
|
169
169
|
|
|
170
|
+
/**
|
|
171
|
+
* Billing information for the agent execution
|
|
172
|
+
*/
|
|
173
|
+
export type Billing = {
|
|
174
|
+
totalCost: number;
|
|
175
|
+
inputCost: number;
|
|
176
|
+
outputCost: number;
|
|
177
|
+
billable: boolean;
|
|
178
|
+
integrationId: string | null;
|
|
179
|
+
};
|
|
180
|
+
|
|
170
181
|
export type AgentInactiveStreamingEventData = {
|
|
171
182
|
lastMessage: string;
|
|
172
183
|
/**
|
|
@@ -187,6 +198,10 @@ export type AgentInactiveStreamingEventData = {
|
|
|
187
198
|
* Token usage from the last agent message
|
|
188
199
|
*/
|
|
189
200
|
usage?: AgentInactiveStreamingEventUsage | undefined;
|
|
201
|
+
/**
|
|
202
|
+
* Billing information for the agent execution
|
|
203
|
+
*/
|
|
204
|
+
billing?: Billing | undefined;
|
|
190
205
|
workflowRunId: string;
|
|
191
206
|
/**
|
|
192
207
|
* ID of the response tracking this execution
|
|
@@ -693,6 +708,64 @@ export function agentInactiveStreamingEventUsageFromJSON(
|
|
|
693
708
|
);
|
|
694
709
|
}
|
|
695
710
|
|
|
711
|
+
/** @internal */
|
|
712
|
+
export const Billing$inboundSchema: z.ZodType<Billing, z.ZodTypeDef, unknown> =
|
|
713
|
+
z.object({
|
|
714
|
+
total_cost: z.number(),
|
|
715
|
+
input_cost: z.number(),
|
|
716
|
+
output_cost: z.number(),
|
|
717
|
+
billable: z.boolean(),
|
|
718
|
+
integration_id: z.nullable(z.string()),
|
|
719
|
+
}).transform((v) => {
|
|
720
|
+
return remap$(v, {
|
|
721
|
+
"total_cost": "totalCost",
|
|
722
|
+
"input_cost": "inputCost",
|
|
723
|
+
"output_cost": "outputCost",
|
|
724
|
+
"integration_id": "integrationId",
|
|
725
|
+
});
|
|
726
|
+
});
|
|
727
|
+
/** @internal */
|
|
728
|
+
export type Billing$Outbound = {
|
|
729
|
+
total_cost: number;
|
|
730
|
+
input_cost: number;
|
|
731
|
+
output_cost: number;
|
|
732
|
+
billable: boolean;
|
|
733
|
+
integration_id: string | null;
|
|
734
|
+
};
|
|
735
|
+
|
|
736
|
+
/** @internal */
|
|
737
|
+
export const Billing$outboundSchema: z.ZodType<
|
|
738
|
+
Billing$Outbound,
|
|
739
|
+
z.ZodTypeDef,
|
|
740
|
+
Billing
|
|
741
|
+
> = z.object({
|
|
742
|
+
totalCost: z.number(),
|
|
743
|
+
inputCost: z.number(),
|
|
744
|
+
outputCost: z.number(),
|
|
745
|
+
billable: z.boolean(),
|
|
746
|
+
integrationId: z.nullable(z.string()),
|
|
747
|
+
}).transform((v) => {
|
|
748
|
+
return remap$(v, {
|
|
749
|
+
totalCost: "total_cost",
|
|
750
|
+
inputCost: "input_cost",
|
|
751
|
+
outputCost: "output_cost",
|
|
752
|
+
integrationId: "integration_id",
|
|
753
|
+
});
|
|
754
|
+
});
|
|
755
|
+
|
|
756
|
+
export function billingToJSON(billing: Billing): string {
|
|
757
|
+
return JSON.stringify(Billing$outboundSchema.parse(billing));
|
|
758
|
+
}
|
|
759
|
+
export function billingFromJSON(
|
|
760
|
+
jsonString: string,
|
|
761
|
+
): SafeParseResult<Billing, SDKValidationError> {
|
|
762
|
+
return safeParse(
|
|
763
|
+
jsonString,
|
|
764
|
+
(x) => Billing$inboundSchema.parse(JSON.parse(x)),
|
|
765
|
+
`Failed to parse 'Billing' from JSON`,
|
|
766
|
+
);
|
|
767
|
+
}
|
|
768
|
+
|
|
696
769
|
/** @internal */
|
|
697
770
|
export const AgentInactiveStreamingEventData$inboundSchema: z.ZodType<
|
|
698
771
|
AgentInactiveStreamingEventData,
|
|
@@ -707,6 +780,7 @@ export const AgentInactiveStreamingEventData$inboundSchema: z.ZodType<
|
|
|
707
780
|
).optional(),
|
|
708
781
|
usage: z.lazy(() => AgentInactiveStreamingEventUsage$inboundSchema)
|
|
709
782
|
.optional(),
|
|
783
|
+
billing: z.lazy(() => Billing$inboundSchema).optional(),
|
|
710
784
|
workflowRunId: z.string(),
|
|
711
785
|
responseId: z.string().optional(),
|
|
712
786
|
}).transform((v) => {
|
|
@@ -726,6 +800,7 @@ export type AgentInactiveStreamingEventData$Outbound = {
|
|
|
726
800
|
| Array<AgentInactiveStreamingEventPendingToolCalls$Outbound>
|
|
727
801
|
| undefined;
|
|
728
802
|
usage?: AgentInactiveStreamingEventUsage$Outbound | undefined;
|
|
803
|
+
billing?: Billing$Outbound | undefined;
|
|
729
804
|
workflowRunId: string;
|
|
730
805
|
responseId?: string | undefined;
|
|
731
806
|
};
|
|
@@ -744,6 +819,7 @@ export const AgentInactiveStreamingEventData$outboundSchema: z.ZodType<
|
|
|
744
819
|
).optional(),
|
|
745
820
|
usage: z.lazy(() => AgentInactiveStreamingEventUsage$outboundSchema)
|
|
746
821
|
.optional(),
|
|
822
|
+
billing: z.lazy(() => Billing$outboundSchema).optional(),
|
|
747
823
|
workflowRunId: z.string(),
|
|
748
824
|
responseId: z.string().optional(),
|
|
749
825
|
}).transform((v) => {
|
|
@@ -131,7 +131,7 @@ export const ConversationResponse$inboundSchema: z.ZodType<
|
|
|
131
131
|
z.ZodTypeDef,
|
|
132
132
|
unknown
|
|
133
133
|
> = z.object({
|
|
134
|
-
_id: z.string().default("
|
|
134
|
+
_id: z.string().default("conv_01kfds3b6y8pzxkv8gp1dnvwjj"),
|
|
135
135
|
kind: ConversationResponseKind$inboundSchema,
|
|
136
136
|
displayName: z.string(),
|
|
137
137
|
createdAt: z.number(),
|
|
@@ -162,7 +162,7 @@ export const ConversationResponse$outboundSchema: z.ZodType<
|
|
|
162
162
|
z.ZodTypeDef,
|
|
163
163
|
ConversationResponse
|
|
164
164
|
> = z.object({
|
|
165
|
-
id: z.string().default("
|
|
165
|
+
id: z.string().default("conv_01kfds3b6y8pzxkv8gp1dnvwjj"),
|
|
166
166
|
kind: ConversationResponseKind$outboundSchema,
|
|
167
167
|
displayName: z.string(),
|
|
168
168
|
createdAt: z.number(),
|
|
@@ -155,7 +155,7 @@ export const ConversationWithMessagesResponse$inboundSchema: z.ZodType<
|
|
|
155
155
|
z.ZodTypeDef,
|
|
156
156
|
unknown
|
|
157
157
|
> = z.object({
|
|
158
|
-
_id: z.string().default("
|
|
158
|
+
_id: z.string().default("conv_01kfds3b743v1nrcmv12xfx06h"),
|
|
159
159
|
kind: ConversationWithMessagesResponseKind$inboundSchema,
|
|
160
160
|
displayName: z.string(),
|
|
161
161
|
createdAt: z.number(),
|
|
@@ -189,7 +189,7 @@ export const ConversationWithMessagesResponse$outboundSchema: z.ZodType<
|
|
|
189
189
|
z.ZodTypeDef,
|
|
190
190
|
ConversationWithMessagesResponse
|
|
191
191
|
> = z.object({
|
|
192
|
-
id: z.string().default("
|
|
192
|
+
id: z.string().default("conv_01kfds3b743v1nrcmv12xfx06h"),
|
|
193
193
|
kind: ConversationWithMessagesResponseKind$outboundSchema,
|
|
194
194
|
displayName: z.string(),
|
|
195
195
|
createdAt: z.number(),
|
|
@@ -79,7 +79,7 @@ export const PartReasoningPart$inboundSchema: z.ZodType<
|
|
|
79
79
|
z.ZodTypeDef,
|
|
80
80
|
unknown
|
|
81
81
|
> = z.object({
|
|
82
|
-
_id: z.string().default("
|
|
82
|
+
_id: z.string().default("reasoning_01kfds3avvptfe7wsz639qyhmq"),
|
|
83
83
|
metadata: z.record(z.any()).optional(),
|
|
84
84
|
kind: PartKind$inboundSchema,
|
|
85
85
|
reasoning: z.string(),
|
|
@@ -104,7 +104,7 @@ export const PartReasoningPart$outboundSchema: z.ZodType<
|
|
|
104
104
|
z.ZodTypeDef,
|
|
105
105
|
PartReasoningPart
|
|
106
106
|
> = z.object({
|
|
107
|
-
id: z.string().default("
|
|
107
|
+
id: z.string().default("reasoning_01kfds3avvptfe7wsz639qyhmq"),
|
|
108
108
|
metadata: z.record(z.any()).optional(),
|
|
109
109
|
kind: PartKind$outboundSchema,
|
|
110
110
|
reasoning: z.string(),
|
|
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
|
|
|
40
40
|
z.ZodTypeDef,
|
|
41
41
|
unknown
|
|
42
42
|
> = z.object({
|
|
43
|
-
_id: z.string().default("
|
|
43
|
+
_id: z.string().default("reasoning_01kfds3avk2eyg3jz9fghcmt6b"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -65,7 +65,7 @@ export const ReasoningPart$outboundSchema: z.ZodType<
|
|
|
65
65
|
z.ZodTypeDef,
|
|
66
66
|
ReasoningPart
|
|
67
67
|
> = z.object({
|
|
68
|
-
id: z.string().default("
|
|
68
|
+
id: z.string().default("reasoning_01kfds3avk2eyg3jz9fghcmt6b"),
|
|
69
69
|
metadata: z.record(z.any()).optional(),
|
|
70
70
|
kind: z.literal("reasoning"),
|
|
71
71
|
reasoning: z.string(),
|
|
@@ -167,7 +167,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
|
|
|
167
167
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
168
168
|
.optional(),
|
|
169
169
|
updated: z.string().datetime({ offset: true }).default(
|
|
170
|
-
"2026-01-
|
|
170
|
+
"2026-01-20T13:21:43.266Z",
|
|
171
171
|
).transform(v => new Date(v)),
|
|
172
172
|
}).transform((v) => {
|
|
173
173
|
return remap$(v, {
|
|
@@ -207,7 +207,7 @@ export const CreateContactResponseBody$outboundSchema: z.ZodType<
|
|
|
207
207
|
tags: z.array(z.string()).optional(),
|
|
208
208
|
metadata: z.record(z.any()).optional(),
|
|
209
209
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
210
|
-
updated: z.date().default(() => new Date("2026-01-
|
|
210
|
+
updated: z.date().default(() => new Date("2026-01-20T13:21:43.266Z"))
|
|
211
211
|
.transform(v => v.toISOString()),
|
|
212
212
|
}).transform((v) => {
|
|
213
213
|
return remap$(v, {
|
|
@@ -270,7 +270,7 @@ export const CreateConversationResponseBody$inboundSchema: z.ZodType<
|
|
|
270
270
|
z.ZodTypeDef,
|
|
271
271
|
unknown
|
|
272
272
|
> = z.object({
|
|
273
|
-
_id: z.string().default("
|
|
273
|
+
_id: z.string().default("conv_01kfds3b71y8et6eec2jceancw"),
|
|
274
274
|
kind: CreateConversationKind$inboundSchema,
|
|
275
275
|
displayName: z.string(),
|
|
276
276
|
createdAt: z.number(),
|
|
@@ -302,7 +302,7 @@ export const CreateConversationResponseBody$outboundSchema: z.ZodType<
|
|
|
302
302
|
z.ZodTypeDef,
|
|
303
303
|
CreateConversationResponseBody
|
|
304
304
|
> = z.object({
|
|
305
|
-
id: z.string().default("
|
|
305
|
+
id: z.string().default("conv_01kfds3b71y8et6eec2jceancw"),
|
|
306
306
|
kind: CreateConversationKind$outboundSchema,
|
|
307
307
|
displayName: z.string(),
|
|
308
308
|
createdAt: z.number(),
|
|
@@ -337,7 +337,7 @@ export const PartReasoningPart$inboundSchema: z.ZodType<
|
|
|
337
337
|
z.ZodTypeDef,
|
|
338
338
|
unknown
|
|
339
339
|
> = z.object({
|
|
340
|
-
_id: z.string().default("
|
|
340
|
+
_id: z.string().default("reasoning_01kfds3b8c7k2drbppappbr3c6"),
|
|
341
341
|
metadata: z.record(z.any()).optional(),
|
|
342
342
|
kind: PartKind$inboundSchema,
|
|
343
343
|
reasoning: z.string(),
|
|
@@ -362,7 +362,7 @@ export const PartReasoningPart$outboundSchema: z.ZodType<
|
|
|
362
362
|
z.ZodTypeDef,
|
|
363
363
|
PartReasoningPart
|
|
364
364
|
> = z.object({
|
|
365
|
-
id: z.string().default("
|
|
365
|
+
id: z.string().default("reasoning_01kfds3b8c7k2drbppappbr3c6"),
|
|
366
366
|
metadata: z.record(z.any()).optional(),
|
|
367
367
|
kind: PartKind$outboundSchema,
|
|
368
368
|
reasoning: z.string(),
|
|
@@ -510,7 +510,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
|
|
|
510
510
|
z.ZodTypeDef,
|
|
511
511
|
unknown
|
|
512
512
|
> = z.object({
|
|
513
|
-
_id: z.string().default("
|
|
513
|
+
_id: z.string().default("reasoning_01kfds3b7zgmmkay4em87ssjtm"),
|
|
514
514
|
metadata: z.record(z.any()).optional(),
|
|
515
515
|
kind: DeltaKind$inboundSchema,
|
|
516
516
|
reasoning: z.string(),
|
|
@@ -535,7 +535,7 @@ export const ReasoningPart$outboundSchema: z.ZodType<
|
|
|
535
535
|
z.ZodTypeDef,
|
|
536
536
|
ReasoningPart
|
|
537
537
|
> = z.object({
|
|
538
|
-
id: z.string().default("
|
|
538
|
+
id: z.string().default("reasoning_01kfds3b7zgmmkay4em87ssjtm"),
|
|
539
539
|
metadata: z.record(z.any()).optional(),
|
|
540
540
|
kind: DeltaKind$outboundSchema,
|
|
541
541
|
reasoning: z.string(),
|
|
@@ -187,7 +187,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
187
187
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
188
188
|
.optional(),
|
|
189
189
|
updated: z.string().datetime({ offset: true }).default(
|
|
190
|
-
"2026-01-
|
|
190
|
+
"2026-01-20T13:21:43.266Z",
|
|
191
191
|
).transform(v => new Date(v)),
|
|
192
192
|
}).transform((v) => {
|
|
193
193
|
return remap$(v, {
|
|
@@ -226,7 +226,7 @@ export const CreateDatasetResponseBody$outboundSchema: z.ZodType<
|
|
|
226
226
|
createdById: z.string().optional(),
|
|
227
227
|
updatedById: z.string().optional(),
|
|
228
228
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
229
|
-
updated: z.date().default(() => new Date("2026-01-
|
|
229
|
+
updated: z.date().default(() => new Date("2026-01-20T13:21:43.266Z"))
|
|
230
230
|
.transform(v => v.toISOString()),
|
|
231
231
|
}).transform((v) => {
|
|
232
232
|
return remap$(v, {
|