@orq-ai/node 4.0.0-rc.34 → 4.0.0-rc.35
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 +396 -234
- package/bin/mcp-server.js.map +44 -44
- package/docs/sdks/agents/README.md +2 -0
- 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/operations/createagent.d.ts +61 -3
- package/models/operations/createagent.d.ts.map +1 -1
- package/models/operations/createagent.js +63 -6
- package/models/operations/createagent.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- 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/createtool.js +10 -10
- package/models/operations/duplicateagent.d.ts +29 -0
- package/models/operations/duplicateagent.d.ts.map +1 -1
- package/models/operations/duplicateagent.js +30 -2
- package/models/operations/duplicateagent.js.map +1 -1
- package/models/operations/duplicatetool.js +10 -10
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getagent.d.ts +29 -0
- package/models/operations/getagent.d.ts.map +1 -1
- package/models/operations/getagent.js +30 -2
- package/models/operations/getagent.js.map +1 -1
- package/models/operations/getalltools.js +10 -10
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listagents.d.ts +29 -0
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +31 -2
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- 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/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/retrievetool.js +10 -10
- package/models/operations/runagent.d.ts +30 -1
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +35 -6
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +30 -1
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +36 -6
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/syncmcptool.js +10 -10
- package/models/operations/updateagent.d.ts +61 -3
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +62 -6
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.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/updatetool.js +10 -10
- 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/operations/createagent.ts +138 -3
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- 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/createtool.ts +10 -10
- package/src/models/operations/duplicateagent.ts +71 -0
- package/src/models/operations/duplicatetool.ts +10 -10
- 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/getagent.ts +67 -0
- package/src/models/operations/getalltools.ts +10 -10
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listagents.ts +69 -0
- package/src/models/operations/listbudgets.ts +2 -2
- 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/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/retrievetool.ts +10 -10
- package/src/models/operations/runagent.ts +75 -1
- package/src/models/operations/streamrunagent.ts +77 -1
- package/src/models/operations/syncmcptool.ts +10 -10
- package/src/models/operations/updateagent.ts +145 -3
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.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/updatetool.ts +10 -10
|
@@ -1856,7 +1856,7 @@ exports.UpdateDatapointEvaluations3$inboundSchema = z.object({
|
|
|
1856
1856
|
source: exports.UpdateDatapointEvaluationsDatasetsResponseSource$inboundSchema
|
|
1857
1857
|
.default("orq"),
|
|
1858
1858
|
reviewed_by_id: z.string(),
|
|
1859
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2025-11-14T14:
|
|
1859
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2025-11-14T14:39:41.884Z").transform(v => new Date(v)),
|
|
1860
1860
|
type: exports.UpdateDatapointEvaluationsDatasetsResponseType$inboundSchema,
|
|
1861
1861
|
values: z.array(z.string()),
|
|
1862
1862
|
}).transform((v) => {
|
|
@@ -1875,7 +1875,7 @@ exports.UpdateDatapointEvaluations3$outboundSchema = z.object({
|
|
|
1875
1875
|
source: exports.UpdateDatapointEvaluationsDatasetsResponseSource$outboundSchema
|
|
1876
1876
|
.default("orq"),
|
|
1877
1877
|
reviewedById: z.string(),
|
|
1878
|
-
reviewedAt: z.date().default(() => new Date("2025-11-14T14:
|
|
1878
|
+
reviewedAt: z.date().default(() => new Date("2025-11-14T14:39:41.884Z"))
|
|
1879
1879
|
.transform(v => v.toISOString()),
|
|
1880
1880
|
type: exports.UpdateDatapointEvaluationsDatasetsResponseType$outboundSchema,
|
|
1881
1881
|
values: z.array(z.string()),
|
|
@@ -1914,7 +1914,7 @@ exports.UpdateDatapointEvaluations2$inboundSchema = z.object({
|
|
|
1914
1914
|
human_review_id: z.string(),
|
|
1915
1915
|
source: exports.UpdateDatapointEvaluationsDatasetsSource$inboundSchema.default("orq"),
|
|
1916
1916
|
reviewed_by_id: z.string(),
|
|
1917
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2025-11-14T14:
|
|
1917
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2025-11-14T14:39:41.884Z").transform(v => new Date(v)),
|
|
1918
1918
|
type: exports.UpdateDatapointEvaluationsDatasetsType$inboundSchema,
|
|
1919
1919
|
value: z.number(),
|
|
1920
1920
|
}).transform((v) => {
|
|
@@ -1932,7 +1932,7 @@ exports.UpdateDatapointEvaluations2$outboundSchema = z.object({
|
|
|
1932
1932
|
humanReviewId: z.string(),
|
|
1933
1933
|
source: exports.UpdateDatapointEvaluationsDatasetsSource$outboundSchema.default("orq"),
|
|
1934
1934
|
reviewedById: z.string(),
|
|
1935
|
-
reviewedAt: z.date().default(() => new Date("2025-11-14T14:
|
|
1935
|
+
reviewedAt: z.date().default(() => new Date("2025-11-14T14:39:41.884Z"))
|
|
1936
1936
|
.transform(v => v.toISOString()),
|
|
1937
1937
|
type: exports.UpdateDatapointEvaluationsDatasetsType$outboundSchema,
|
|
1938
1938
|
value: z.number(),
|
|
@@ -1970,7 +1970,7 @@ exports.UpdateDatapointEvaluations1$inboundSchema = z.object({
|
|
|
1970
1970
|
human_review_id: z.string(),
|
|
1971
1971
|
source: exports.UpdateDatapointEvaluationsSource$inboundSchema.default("orq"),
|
|
1972
1972
|
reviewed_by_id: z.string(),
|
|
1973
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2025-11-14T14:
|
|
1973
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2025-11-14T14:39:41.883Z").transform(v => new Date(v)),
|
|
1974
1974
|
type: exports.UpdateDatapointEvaluationsType$inboundSchema,
|
|
1975
1975
|
value: z.string(),
|
|
1976
1976
|
}).transform((v) => {
|
|
@@ -1988,7 +1988,7 @@ exports.UpdateDatapointEvaluations1$outboundSchema = z.object({
|
|
|
1988
1988
|
humanReviewId: z.string(),
|
|
1989
1989
|
source: exports.UpdateDatapointEvaluationsSource$outboundSchema.default("orq"),
|
|
1990
1990
|
reviewedById: z.string(),
|
|
1991
|
-
reviewedAt: z.date().default(() => new Date("2025-11-14T14:
|
|
1991
|
+
reviewedAt: z.date().default(() => new Date("2025-11-14T14:39:41.883Z"))
|
|
1992
1992
|
.transform(v => v.toISOString()),
|
|
1993
1993
|
type: exports.UpdateDatapointEvaluationsType$outboundSchema,
|
|
1994
1994
|
value: z.string(),
|
|
@@ -2048,7 +2048,7 @@ exports.UpdateDatapointResponseBody$inboundSchema = z.object({
|
|
|
2048
2048
|
updated_by_id: z.string().optional(),
|
|
2049
2049
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2050
2050
|
.optional(),
|
|
2051
|
-
updated: z.string().datetime({ offset: true }).default("2025-11-14T14:
|
|
2051
|
+
updated: z.string().datetime({ offset: true }).default("2025-11-14T14:39:28.175Z").transform(v => new Date(v)),
|
|
2052
2052
|
}).transform((v) => {
|
|
2053
2053
|
return (0, primitives_js_1.remap)(v, {
|
|
2054
2054
|
"_id": "id",
|
|
@@ -2083,7 +2083,7 @@ exports.UpdateDatapointResponseBody$outboundSchema = z.object({
|
|
|
2083
2083
|
createdById: z.string().optional(),
|
|
2084
2084
|
updatedById: z.string().optional(),
|
|
2085
2085
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
2086
|
-
updated: z.date().default(() => new Date("2025-11-14T14:
|
|
2086
|
+
updated: z.date().default(() => new Date("2025-11-14T14:39:28.175Z"))
|
|
2087
2087
|
.transform(v => v.toISOString()),
|
|
2088
2088
|
}).transform((v) => {
|
|
2089
2089
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -139,7 +139,7 @@ exports.UpdateDatasetResponseBody$inboundSchema = z.object({
|
|
|
139
139
|
updated_by_id: z.string().optional(),
|
|
140
140
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
141
141
|
.optional(),
|
|
142
|
-
updated: z.string().datetime({ offset: true }).default("2025-11-14T14:
|
|
142
|
+
updated: z.string().datetime({ offset: true }).default("2025-11-14T14:39:28.175Z").transform(v => new Date(v)),
|
|
143
143
|
}).transform((v) => {
|
|
144
144
|
return (0, primitives_js_1.remap)(v, {
|
|
145
145
|
"_id": "id",
|
|
@@ -160,7 +160,7 @@ exports.UpdateDatasetResponseBody$outboundSchema = z.object({
|
|
|
160
160
|
createdById: z.string().optional(),
|
|
161
161
|
updatedById: z.string().optional(),
|
|
162
162
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
163
|
-
updated: z.date().default(() => new Date("2025-11-14T14:
|
|
163
|
+
updated: z.date().default(() => new Date("2025-11-14T14:39:28.175Z"))
|
|
164
164
|
.transform(v => v.toISOString()),
|
|
165
165
|
}).transform((v) => {
|
|
166
166
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -111,7 +111,7 @@ exports.UpdateDatasourceStatus$inboundSchema = z.nativeEnum(exports.UpdateDataso
|
|
|
111
111
|
exports.UpdateDatasourceStatus$outboundSchema = exports.UpdateDatasourceStatus$inboundSchema;
|
|
112
112
|
/** @internal */
|
|
113
113
|
exports.UpdateDatasourceResponseBody$inboundSchema = z.object({
|
|
114
|
-
_id: z.string().default("
|
|
114
|
+
_id: z.string().default("01KA1CXJNMM3S2S3Q2BSBMGB2C"),
|
|
115
115
|
display_name: z.string(),
|
|
116
116
|
description: z.string().optional(),
|
|
117
117
|
status: exports.UpdateDatasourceStatus$inboundSchema,
|
|
@@ -135,7 +135,7 @@ exports.UpdateDatasourceResponseBody$inboundSchema = z.object({
|
|
|
135
135
|
});
|
|
136
136
|
/** @internal */
|
|
137
137
|
exports.UpdateDatasourceResponseBody$outboundSchema = z.object({
|
|
138
|
-
id: z.string().default("
|
|
138
|
+
id: z.string().default("01KA1CXJNMM3S2S3Q2BSBMGB2C"),
|
|
139
139
|
displayName: z.string(),
|
|
140
140
|
description: z.string().optional(),
|
|
141
141
|
status: exports.UpdateDatasourceStatus$outboundSchema,
|
|
@@ -1174,8 +1174,8 @@ exports.UpdateEvalResponseBodyEvalsResponse200ApplicationJson7Type$outboundSchem
|
|
|
1174
1174
|
exports.ResponseBodyTypescript$inboundSchema = z.object({
|
|
1175
1175
|
_id: z.string(),
|
|
1176
1176
|
description: z.string(),
|
|
1177
|
-
created: z.string().default("2025-11-14T14:
|
|
1178
|
-
updated: z.string().default("2025-11-14T14:
|
|
1177
|
+
created: z.string().default("2025-11-14T14:39:30.872Z"),
|
|
1178
|
+
updated: z.string().default("2025-11-14T14:39:30.872Z"),
|
|
1179
1179
|
guardrail_config: z.union([
|
|
1180
1180
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$inboundSchema),
|
|
1181
1181
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$inboundSchema),
|
|
@@ -1193,8 +1193,8 @@ exports.ResponseBodyTypescript$inboundSchema = z.object({
|
|
|
1193
1193
|
exports.ResponseBodyTypescript$outboundSchema = z.object({
|
|
1194
1194
|
id: z.string(),
|
|
1195
1195
|
description: z.string(),
|
|
1196
|
-
created: z.string().default("2025-11-14T14:
|
|
1197
|
-
updated: z.string().default("2025-11-14T14:
|
|
1196
|
+
created: z.string().default("2025-11-14T14:39:30.872Z"),
|
|
1197
|
+
updated: z.string().default("2025-11-14T14:39:30.872Z"),
|
|
1198
1198
|
guardrailConfig: z.union([
|
|
1199
1199
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$outboundSchema),
|
|
1200
1200
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$outboundSchema),
|
|
@@ -1298,8 +1298,8 @@ exports.ResponseBodyRagasMetric$outboundSchema = exports.ResponseBodyRagasMetric
|
|
|
1298
1298
|
exports.ResponseBodyRagas$inboundSchema = z.object({
|
|
1299
1299
|
_id: z.string(),
|
|
1300
1300
|
description: z.string(),
|
|
1301
|
-
created: z.string().default("2025-11-14T14:
|
|
1302
|
-
updated: z.string().default("2025-11-14T14:
|
|
1301
|
+
created: z.string().default("2025-11-14T14:39:30.872Z"),
|
|
1302
|
+
updated: z.string().default("2025-11-14T14:39:30.872Z"),
|
|
1303
1303
|
guardrail_config: z.union([
|
|
1304
1304
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$inboundSchema),
|
|
1305
1305
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean$inboundSchema),
|
|
@@ -1319,8 +1319,8 @@ exports.ResponseBodyRagas$inboundSchema = z.object({
|
|
|
1319
1319
|
exports.ResponseBodyRagas$outboundSchema = z.object({
|
|
1320
1320
|
id: z.string(),
|
|
1321
1321
|
description: z.string(),
|
|
1322
|
-
created: z.string().default("2025-11-14T14:
|
|
1323
|
-
updated: z.string().default("2025-11-14T14:
|
|
1322
|
+
created: z.string().default("2025-11-14T14:39:30.872Z"),
|
|
1323
|
+
updated: z.string().default("2025-11-14T14:39:30.872Z"),
|
|
1324
1324
|
guardrailConfig: z.union([
|
|
1325
1325
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$outboundSchema),
|
|
1326
1326
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean$outboundSchema),
|
|
@@ -2162,8 +2162,8 @@ function responseBodyFunctionParamsFromJSON(jsonString) {
|
|
|
2162
2162
|
exports.ResponseBodyFunction$inboundSchema = z.object({
|
|
2163
2163
|
_id: z.string(),
|
|
2164
2164
|
description: z.string(),
|
|
2165
|
-
created: z.string().default("2025-11-14T14:
|
|
2166
|
-
updated: z.string().default("2025-11-14T14:
|
|
2165
|
+
created: z.string().default("2025-11-14T14:39:30.872Z"),
|
|
2166
|
+
updated: z.string().default("2025-11-14T14:39:30.872Z"),
|
|
2167
2167
|
guardrail_config: z.union([
|
|
2168
2168
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$inboundSchema),
|
|
2169
2169
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Boolean$inboundSchema),
|
|
@@ -2218,8 +2218,8 @@ exports.ResponseBodyFunction$inboundSchema = z.object({
|
|
|
2218
2218
|
exports.ResponseBodyFunction$outboundSchema = z.object({
|
|
2219
2219
|
id: z.string(),
|
|
2220
2220
|
description: z.string(),
|
|
2221
|
-
created: z.string().default("2025-11-14T14:
|
|
2222
|
-
updated: z.string().default("2025-11-14T14:
|
|
2221
|
+
created: z.string().default("2025-11-14T14:39:30.872Z"),
|
|
2222
|
+
updated: z.string().default("2025-11-14T14:39:30.872Z"),
|
|
2223
2223
|
guardrailConfig: z.union([
|
|
2224
2224
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$outboundSchema),
|
|
2225
2225
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Boolean$outboundSchema),
|
|
@@ -2355,8 +2355,8 @@ exports.UpdateEvalResponseBodyEvalsResponse200Type$outboundSchema = exports.Upda
|
|
|
2355
2355
|
exports.UpdateEvalResponseBodyPython$inboundSchema = z.object({
|
|
2356
2356
|
_id: z.string(),
|
|
2357
2357
|
description: z.string(),
|
|
2358
|
-
created: z.string().default("2025-11-14T14:
|
|
2359
|
-
updated: z.string().default("2025-11-14T14:
|
|
2358
|
+
created: z.string().default("2025-11-14T14:39:30.872Z"),
|
|
2359
|
+
updated: z.string().default("2025-11-14T14:39:30.872Z"),
|
|
2360
2360
|
guardrail_config: z.union([
|
|
2361
2361
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema),
|
|
2362
2362
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema),
|
|
@@ -2374,8 +2374,8 @@ exports.UpdateEvalResponseBodyPython$inboundSchema = z.object({
|
|
|
2374
2374
|
exports.UpdateEvalResponseBodyPython$outboundSchema = z.object({
|
|
2375
2375
|
id: z.string(),
|
|
2376
2376
|
description: z.string(),
|
|
2377
|
-
created: z.string().default("2025-11-14T14:
|
|
2378
|
-
updated: z.string().default("2025-11-14T14:
|
|
2377
|
+
created: z.string().default("2025-11-14T14:39:30.872Z"),
|
|
2378
|
+
updated: z.string().default("2025-11-14T14:39:30.872Z"),
|
|
2379
2379
|
guardrailConfig: z.union([
|
|
2380
2380
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema),
|
|
2381
2381
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$outboundSchema),
|
|
@@ -2478,8 +2478,8 @@ exports.UpdateEvalResponseBodyMethod$outboundSchema = exports.UpdateEvalResponse
|
|
|
2478
2478
|
exports.UpdateEvalResponseBodyHTTP$inboundSchema = z.object({
|
|
2479
2479
|
_id: z.string(),
|
|
2480
2480
|
description: z.string(),
|
|
2481
|
-
created: z.string().default("2025-11-14T14:
|
|
2482
|
-
updated: z.string().default("2025-11-14T14:
|
|
2481
|
+
created: z.string().default("2025-11-14T14:39:30.872Z"),
|
|
2482
|
+
updated: z.string().default("2025-11-14T14:39:30.872Z"),
|
|
2483
2483
|
guardrail_config: z.union([
|
|
2484
2484
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema),
|
|
2485
2485
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema),
|
|
@@ -2500,8 +2500,8 @@ exports.UpdateEvalResponseBodyHTTP$inboundSchema = z.object({
|
|
|
2500
2500
|
exports.UpdateEvalResponseBodyHTTP$outboundSchema = z.object({
|
|
2501
2501
|
id: z.string(),
|
|
2502
2502
|
description: z.string(),
|
|
2503
|
-
created: z.string().default("2025-11-14T14:
|
|
2504
|
-
updated: z.string().default("2025-11-14T14:
|
|
2503
|
+
created: z.string().default("2025-11-14T14:39:30.872Z"),
|
|
2504
|
+
updated: z.string().default("2025-11-14T14:39:30.872Z"),
|
|
2505
2505
|
guardrailConfig: z.union([
|
|
2506
2506
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema),
|
|
2507
2507
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$outboundSchema),
|
|
@@ -2599,8 +2599,8 @@ exports.UpdateEvalResponseBodyEvalsType$outboundSchema = exports.UpdateEvalRespo
|
|
|
2599
2599
|
exports.UpdateEvalResponseBodyJSON$inboundSchema = z.object({
|
|
2600
2600
|
_id: z.string(),
|
|
2601
2601
|
description: z.string(),
|
|
2602
|
-
created: z.string().default("2025-11-14T14:
|
|
2603
|
-
updated: z.string().default("2025-11-14T14:
|
|
2602
|
+
created: z.string().default("2025-11-14T14:39:30.872Z"),
|
|
2603
|
+
updated: z.string().default("2025-11-14T14:39:30.872Z"),
|
|
2604
2604
|
guardrail_config: z.union([
|
|
2605
2605
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
2606
2606
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema),
|
|
@@ -2618,8 +2618,8 @@ exports.UpdateEvalResponseBodyJSON$inboundSchema = z.object({
|
|
|
2618
2618
|
exports.UpdateEvalResponseBodyJSON$outboundSchema = z.object({
|
|
2619
2619
|
id: z.string(),
|
|
2620
2620
|
description: z.string(),
|
|
2621
|
-
created: z.string().default("2025-11-14T14:
|
|
2622
|
-
updated: z.string().default("2025-11-14T14:
|
|
2621
|
+
created: z.string().default("2025-11-14T14:39:30.872Z"),
|
|
2622
|
+
updated: z.string().default("2025-11-14T14:39:30.872Z"),
|
|
2623
2623
|
guardrailConfig: z.union([
|
|
2624
2624
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Number$outboundSchema),
|
|
2625
2625
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Boolean$outboundSchema),
|
|
@@ -2716,8 +2716,8 @@ exports.UpdateEvalResponseBodyType$outboundSchema = exports.UpdateEvalResponseBo
|
|
|
2716
2716
|
exports.UpdateEvalResponseBodyLLM$inboundSchema = z.object({
|
|
2717
2717
|
_id: z.string(),
|
|
2718
2718
|
description: z.string(),
|
|
2719
|
-
created: z.string().default("2025-11-14T14:
|
|
2720
|
-
updated: z.string().default("2025-11-14T14:
|
|
2719
|
+
created: z.string().default("2025-11-14T14:39:30.872Z"),
|
|
2720
|
+
updated: z.string().default("2025-11-14T14:39:30.872Z"),
|
|
2721
2721
|
guardrail_config: z.union([
|
|
2722
2722
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
2723
2723
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -2736,8 +2736,8 @@ exports.UpdateEvalResponseBodyLLM$inboundSchema = z.object({
|
|
|
2736
2736
|
exports.UpdateEvalResponseBodyLLM$outboundSchema = z.object({
|
|
2737
2737
|
id: z.string(),
|
|
2738
2738
|
description: z.string(),
|
|
2739
|
-
created: z.string().default("2025-11-14T14:
|
|
2740
|
-
updated: z.string().default("2025-11-14T14:
|
|
2739
|
+
created: z.string().default("2025-11-14T14:39:30.872Z"),
|
|
2740
|
+
updated: z.string().default("2025-11-14T14:39:30.872Z"),
|
|
2741
2741
|
guardrailConfig: z.union([
|
|
2742
2742
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
2743
2743
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema),
|
|
@@ -1038,7 +1038,7 @@ function updateToolResponseBodyCodeToolFromJSON(jsonString) {
|
|
|
1038
1038
|
}
|
|
1039
1039
|
/** @internal */
|
|
1040
1040
|
exports.UpdateToolResponseBody5$inboundSchema = z.object({
|
|
1041
|
-
_id: z.string().default("
|
|
1041
|
+
_id: z.string().default("tool_01KA1CXJH0CE1D7G19GGKNDJ12"),
|
|
1042
1042
|
path: z.string(),
|
|
1043
1043
|
key: z.string(),
|
|
1044
1044
|
display_name: z.string().optional(),
|
|
@@ -1068,7 +1068,7 @@ exports.UpdateToolResponseBody5$inboundSchema = z.object({
|
|
|
1068
1068
|
});
|
|
1069
1069
|
/** @internal */
|
|
1070
1070
|
exports.UpdateToolResponseBody5$outboundSchema = z.object({
|
|
1071
|
-
id: z.string().default("
|
|
1071
|
+
id: z.string().default("tool_01KA1CXJH0CE1D7G19GGKNDJ12"),
|
|
1072
1072
|
path: z.string(),
|
|
1073
1073
|
key: z.string(),
|
|
1074
1074
|
displayName: z.string().optional(),
|
|
@@ -1206,7 +1206,7 @@ function updateToolResponseBodyMcpFromJSON(jsonString) {
|
|
|
1206
1206
|
}
|
|
1207
1207
|
/** @internal */
|
|
1208
1208
|
exports.UpdateToolResponseBody4$inboundSchema = z.object({
|
|
1209
|
-
_id: z.string().default("
|
|
1209
|
+
_id: z.string().default("tool_01KA1CXJGYS8BP7HW1G81782H7"),
|
|
1210
1210
|
path: z.string(),
|
|
1211
1211
|
key: z.string(),
|
|
1212
1212
|
display_name: z.string().optional(),
|
|
@@ -1234,7 +1234,7 @@ exports.UpdateToolResponseBody4$inboundSchema = z.object({
|
|
|
1234
1234
|
});
|
|
1235
1235
|
/** @internal */
|
|
1236
1236
|
exports.UpdateToolResponseBody4$outboundSchema = z.object({
|
|
1237
|
-
id: z.string().default("
|
|
1237
|
+
id: z.string().default("tool_01KA1CXJGYS8BP7HW1G81782H7"),
|
|
1238
1238
|
path: z.string(),
|
|
1239
1239
|
key: z.string(),
|
|
1240
1240
|
displayName: z.string().optional(),
|
|
@@ -1388,7 +1388,7 @@ function updateToolResponseBodyHttpFromJSON(jsonString) {
|
|
|
1388
1388
|
}
|
|
1389
1389
|
/** @internal */
|
|
1390
1390
|
exports.UpdateToolResponseBody3$inboundSchema = z.object({
|
|
1391
|
-
_id: z.string().default("
|
|
1391
|
+
_id: z.string().default("tool_01KA1CXJGV5JB5ZQV8X6VFGK85"),
|
|
1392
1392
|
path: z.string(),
|
|
1393
1393
|
key: z.string(),
|
|
1394
1394
|
display_name: z.string().optional(),
|
|
@@ -1416,7 +1416,7 @@ exports.UpdateToolResponseBody3$inboundSchema = z.object({
|
|
|
1416
1416
|
});
|
|
1417
1417
|
/** @internal */
|
|
1418
1418
|
exports.UpdateToolResponseBody3$outboundSchema = z.object({
|
|
1419
|
-
id: z.string().default("
|
|
1419
|
+
id: z.string().default("tool_01KA1CXJGV5JB5ZQV8X6VFGK85"),
|
|
1420
1420
|
path: z.string(),
|
|
1421
1421
|
key: z.string(),
|
|
1422
1422
|
displayName: z.string().optional(),
|
|
@@ -1504,7 +1504,7 @@ function updateToolResponseBodyJsonSchemaFromJSON(jsonString) {
|
|
|
1504
1504
|
}
|
|
1505
1505
|
/** @internal */
|
|
1506
1506
|
exports.UpdateToolResponseBody2$inboundSchema = z.object({
|
|
1507
|
-
_id: z.string().default("
|
|
1507
|
+
_id: z.string().default("tool_01KA1CXJGTTYHPWD4GTZ124NZB"),
|
|
1508
1508
|
path: z.string(),
|
|
1509
1509
|
key: z.string(),
|
|
1510
1510
|
display_name: z.string().optional(),
|
|
@@ -1533,7 +1533,7 @@ exports.UpdateToolResponseBody2$inboundSchema = z.object({
|
|
|
1533
1533
|
});
|
|
1534
1534
|
/** @internal */
|
|
1535
1535
|
exports.UpdateToolResponseBody2$outboundSchema = z.object({
|
|
1536
|
-
id: z.string().default("
|
|
1536
|
+
id: z.string().default("tool_01KA1CXJGTTYHPWD4GTZ124NZB"),
|
|
1537
1537
|
path: z.string(),
|
|
1538
1538
|
key: z.string(),
|
|
1539
1539
|
displayName: z.string().optional(),
|
|
@@ -1628,7 +1628,7 @@ function updateToolResponseBodyFunctionFromJSON(jsonString) {
|
|
|
1628
1628
|
}
|
|
1629
1629
|
/** @internal */
|
|
1630
1630
|
exports.UpdateToolResponseBody1$inboundSchema = z.object({
|
|
1631
|
-
_id: z.string().default("
|
|
1631
|
+
_id: z.string().default("tool_01KA1CXJGRR8N1JGWHNKYFSJNY"),
|
|
1632
1632
|
path: z.string(),
|
|
1633
1633
|
key: z.string(),
|
|
1634
1634
|
display_name: z.string().optional(),
|
|
@@ -1656,7 +1656,7 @@ exports.UpdateToolResponseBody1$inboundSchema = z.object({
|
|
|
1656
1656
|
});
|
|
1657
1657
|
/** @internal */
|
|
1658
1658
|
exports.UpdateToolResponseBody1$outboundSchema = z.object({
|
|
1659
|
-
id: z.string().default("
|
|
1659
|
+
id: z.string().default("tool_01KA1CXJGRR8N1JGWHNKYFSJNY"),
|
|
1660
1660
|
path: z.string(),
|
|
1661
1661
|
key: z.string(),
|
|
1662
1662
|
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.0.0-rc.
|
|
71
|
+
sdkVersion: "4.0.0-rc.35",
|
|
72
72
|
genVersion: "2.753.7",
|
|
73
|
-
userAgent: "speakeasy-sdk/typescript 4.0.0-rc.
|
|
73
|
+
userAgent: "speakeasy-sdk/typescript 4.0.0-rc.35 2.753.7 2.0 @orq-ai/node",
|
|
74
74
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -300,10 +300,24 @@ export type ParametersT = {
|
|
|
300
300
|
modalities?: Array<Modalities> | null | undefined;
|
|
301
301
|
};
|
|
302
302
|
|
|
303
|
+
/**
|
|
304
|
+
* Retry configuration for model requests. Retries are triggered for specific HTTP status codes (e.g., 500, 429, 502, 503, 504). Supports configurable retry count (1-5) and custom status codes.
|
|
305
|
+
*/
|
|
306
|
+
export type Retry = {
|
|
307
|
+
/**
|
|
308
|
+
* Number of retry attempts (1-5)
|
|
309
|
+
*/
|
|
310
|
+
count?: number | undefined;
|
|
311
|
+
/**
|
|
312
|
+
* HTTP status codes that trigger retry logic
|
|
313
|
+
*/
|
|
314
|
+
onCodes?: Array<number> | undefined;
|
|
315
|
+
};
|
|
316
|
+
|
|
303
317
|
/**
|
|
304
318
|
* @remarks
|
|
305
319
|
*
|
|
306
|
-
* Model configuration with parameters.
|
|
320
|
+
* Model configuration with parameters and retry settings.
|
|
307
321
|
*/
|
|
308
322
|
export type ModelConfiguration2 = {
|
|
309
323
|
/**
|
|
@@ -314,10 +328,14 @@ export type ModelConfiguration2 = {
|
|
|
314
328
|
* Model behavior parameters that control how the model generates responses. Common parameters: `temperature` (0-1, randomness), `max_completion_tokens` (max output length), `top_p` (sampling diversity). Advanced: `frequency_penalty`, `presence_penalty`, `response_format` (JSON/structured), `reasoning_effort`, `seed` (reproducibility). Support varies by model - consult AI Gateway documentation.
|
|
315
329
|
*/
|
|
316
330
|
parameters?: ParametersT | undefined;
|
|
331
|
+
/**
|
|
332
|
+
* Retry configuration for model requests. Retries are triggered for specific HTTP status codes (e.g., 500, 429, 502, 503, 504). Supports configurable retry count (1-5) and custom status codes.
|
|
333
|
+
*/
|
|
334
|
+
retry?: Retry | undefined;
|
|
317
335
|
};
|
|
318
336
|
|
|
319
337
|
/**
|
|
320
|
-
* Model configuration for agent execution. Can be a simple model ID string or a configuration object with optional behavior parameters.
|
|
338
|
+
* Model configuration for agent execution. Can be a simple model ID string or a configuration object with optional behavior parameters and retry settings.
|
|
321
339
|
*/
|
|
322
340
|
export type ModelConfiguration = ModelConfiguration2 | string;
|
|
323
341
|
|
|
@@ -1196,7 +1214,7 @@ export type CreateAgentRequestBody = {
|
|
|
1196
1214
|
*/
|
|
1197
1215
|
path: string;
|
|
1198
1216
|
/**
|
|
1199
|
-
* Model configuration for agent execution. Can be a simple model ID string or a configuration object with optional behavior parameters.
|
|
1217
|
+
* Model configuration for agent execution. Can be a simple model ID string or a configuration object with optional behavior parameters and retry settings.
|
|
1200
1218
|
*/
|
|
1201
1219
|
model: ModelConfiguration2 | string;
|
|
1202
1220
|
/**
|
|
@@ -1679,6 +1697,20 @@ export type CreateAgentParameters = {
|
|
|
1679
1697
|
modalities?: Array<CreateAgentModalities> | null | undefined;
|
|
1680
1698
|
};
|
|
1681
1699
|
|
|
1700
|
+
/**
|
|
1701
|
+
* Retry configuration for model requests. Allows customizing retry count (1-5) and HTTP status codes that trigger retries. Default codes: [429]. Common codes: 500 (internal error), 429 (rate limit), 502/503/504 (gateway errors).
|
|
1702
|
+
*/
|
|
1703
|
+
export type CreateAgentRetry = {
|
|
1704
|
+
/**
|
|
1705
|
+
* Number of retry attempts (1-5)
|
|
1706
|
+
*/
|
|
1707
|
+
count?: number | undefined;
|
|
1708
|
+
/**
|
|
1709
|
+
* HTTP status codes that trigger retry logic
|
|
1710
|
+
*/
|
|
1711
|
+
onCodes?: Array<number> | undefined;
|
|
1712
|
+
};
|
|
1713
|
+
|
|
1682
1714
|
/**
|
|
1683
1715
|
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
1684
1716
|
*/
|
|
@@ -2046,6 +2078,10 @@ export type CreateAgentModel = {
|
|
|
2046
2078
|
* Model behavior parameters (snake_case) stored as part of the agent configuration. These become the default parameters used when the agent is executed. Commonly used: temperature (0-1, controls randomness), max_completion_tokens (response length), top_p (nucleus sampling). Advanced: frequency_penalty, presence_penalty, response_format (JSON/structured output), reasoning_effort (for o1/thinking models), seed (reproducibility), stop sequences. Model-specific support varies. Runtime parameters in agent execution requests can override these defaults.
|
|
2047
2079
|
*/
|
|
2048
2080
|
parameters?: CreateAgentParameters | undefined;
|
|
2081
|
+
/**
|
|
2082
|
+
* Retry configuration for model requests. Allows customizing retry count (1-5) and HTTP status codes that trigger retries. Default codes: [429]. Common codes: 500 (internal error), 429 (rate limit), 502/503/504 (gateway errors).
|
|
2083
|
+
*/
|
|
2084
|
+
retry?: CreateAgentRetry | undefined;
|
|
2049
2085
|
/**
|
|
2050
2086
|
* Optional array of fallback models (string IDs or config objects) that will be used automatically in order if the primary model fails
|
|
2051
2087
|
*/
|
|
@@ -2815,6 +2851,49 @@ export function parametersFromJSON(
|
|
|
2815
2851
|
);
|
|
2816
2852
|
}
|
|
2817
2853
|
|
|
2854
|
+
/** @internal */
|
|
2855
|
+
export const Retry$inboundSchema: z.ZodType<Retry, z.ZodTypeDef, unknown> = z
|
|
2856
|
+
.object({
|
|
2857
|
+
count: z.number().default(3),
|
|
2858
|
+
on_codes: z.array(z.number()).optional(),
|
|
2859
|
+
}).transform((v) => {
|
|
2860
|
+
return remap$(v, {
|
|
2861
|
+
"on_codes": "onCodes",
|
|
2862
|
+
});
|
|
2863
|
+
});
|
|
2864
|
+
/** @internal */
|
|
2865
|
+
export type Retry$Outbound = {
|
|
2866
|
+
count: number;
|
|
2867
|
+
on_codes?: Array<number> | undefined;
|
|
2868
|
+
};
|
|
2869
|
+
|
|
2870
|
+
/** @internal */
|
|
2871
|
+
export const Retry$outboundSchema: z.ZodType<
|
|
2872
|
+
Retry$Outbound,
|
|
2873
|
+
z.ZodTypeDef,
|
|
2874
|
+
Retry
|
|
2875
|
+
> = z.object({
|
|
2876
|
+
count: z.number().default(3),
|
|
2877
|
+
onCodes: z.array(z.number()).optional(),
|
|
2878
|
+
}).transform((v) => {
|
|
2879
|
+
return remap$(v, {
|
|
2880
|
+
onCodes: "on_codes",
|
|
2881
|
+
});
|
|
2882
|
+
});
|
|
2883
|
+
|
|
2884
|
+
export function retryToJSON(retry: Retry): string {
|
|
2885
|
+
return JSON.stringify(Retry$outboundSchema.parse(retry));
|
|
2886
|
+
}
|
|
2887
|
+
export function retryFromJSON(
|
|
2888
|
+
jsonString: string,
|
|
2889
|
+
): SafeParseResult<Retry, SDKValidationError> {
|
|
2890
|
+
return safeParse(
|
|
2891
|
+
jsonString,
|
|
2892
|
+
(x) => Retry$inboundSchema.parse(JSON.parse(x)),
|
|
2893
|
+
`Failed to parse 'Retry' from JSON`,
|
|
2894
|
+
);
|
|
2895
|
+
}
|
|
2896
|
+
|
|
2818
2897
|
/** @internal */
|
|
2819
2898
|
export const ModelConfiguration2$inboundSchema: z.ZodType<
|
|
2820
2899
|
ModelConfiguration2,
|
|
@@ -2823,11 +2902,13 @@ export const ModelConfiguration2$inboundSchema: z.ZodType<
|
|
|
2823
2902
|
> = z.object({
|
|
2824
2903
|
id: z.string(),
|
|
2825
2904
|
parameters: z.lazy(() => ParametersT$inboundSchema).optional(),
|
|
2905
|
+
retry: z.lazy(() => Retry$inboundSchema).optional(),
|
|
2826
2906
|
});
|
|
2827
2907
|
/** @internal */
|
|
2828
2908
|
export type ModelConfiguration2$Outbound = {
|
|
2829
2909
|
id: string;
|
|
2830
2910
|
parameters?: ParametersT$Outbound | undefined;
|
|
2911
|
+
retry?: Retry$Outbound | undefined;
|
|
2831
2912
|
};
|
|
2832
2913
|
|
|
2833
2914
|
/** @internal */
|
|
@@ -2838,6 +2919,7 @@ export const ModelConfiguration2$outboundSchema: z.ZodType<
|
|
|
2838
2919
|
> = z.object({
|
|
2839
2920
|
id: z.string(),
|
|
2840
2921
|
parameters: z.lazy(() => ParametersT$outboundSchema).optional(),
|
|
2922
|
+
retry: z.lazy(() => Retry$outboundSchema).optional(),
|
|
2841
2923
|
});
|
|
2842
2924
|
|
|
2843
2925
|
export function modelConfiguration2ToJSON(
|
|
@@ -6402,6 +6484,56 @@ export function createAgentParametersFromJSON(
|
|
|
6402
6484
|
);
|
|
6403
6485
|
}
|
|
6404
6486
|
|
|
6487
|
+
/** @internal */
|
|
6488
|
+
export const CreateAgentRetry$inboundSchema: z.ZodType<
|
|
6489
|
+
CreateAgentRetry,
|
|
6490
|
+
z.ZodTypeDef,
|
|
6491
|
+
unknown
|
|
6492
|
+
> = z.object({
|
|
6493
|
+
count: z.number().default(3),
|
|
6494
|
+
on_codes: z.array(z.number()).optional(),
|
|
6495
|
+
}).transform((v) => {
|
|
6496
|
+
return remap$(v, {
|
|
6497
|
+
"on_codes": "onCodes",
|
|
6498
|
+
});
|
|
6499
|
+
});
|
|
6500
|
+
/** @internal */
|
|
6501
|
+
export type CreateAgentRetry$Outbound = {
|
|
6502
|
+
count: number;
|
|
6503
|
+
on_codes?: Array<number> | undefined;
|
|
6504
|
+
};
|
|
6505
|
+
|
|
6506
|
+
/** @internal */
|
|
6507
|
+
export const CreateAgentRetry$outboundSchema: z.ZodType<
|
|
6508
|
+
CreateAgentRetry$Outbound,
|
|
6509
|
+
z.ZodTypeDef,
|
|
6510
|
+
CreateAgentRetry
|
|
6511
|
+
> = z.object({
|
|
6512
|
+
count: z.number().default(3),
|
|
6513
|
+
onCodes: z.array(z.number()).optional(),
|
|
6514
|
+
}).transform((v) => {
|
|
6515
|
+
return remap$(v, {
|
|
6516
|
+
onCodes: "on_codes",
|
|
6517
|
+
});
|
|
6518
|
+
});
|
|
6519
|
+
|
|
6520
|
+
export function createAgentRetryToJSON(
|
|
6521
|
+
createAgentRetry: CreateAgentRetry,
|
|
6522
|
+
): string {
|
|
6523
|
+
return JSON.stringify(
|
|
6524
|
+
CreateAgentRetry$outboundSchema.parse(createAgentRetry),
|
|
6525
|
+
);
|
|
6526
|
+
}
|
|
6527
|
+
export function createAgentRetryFromJSON(
|
|
6528
|
+
jsonString: string,
|
|
6529
|
+
): SafeParseResult<CreateAgentRetry, SDKValidationError> {
|
|
6530
|
+
return safeParse(
|
|
6531
|
+
jsonString,
|
|
6532
|
+
(x) => CreateAgentRetry$inboundSchema.parse(JSON.parse(x)),
|
|
6533
|
+
`Failed to parse 'CreateAgentRetry' from JSON`,
|
|
6534
|
+
);
|
|
6535
|
+
}
|
|
6536
|
+
|
|
6405
6537
|
/** @internal */
|
|
6406
6538
|
export const CreateAgentFallbackModelConfigurationVoice$inboundSchema:
|
|
6407
6539
|
z.ZodNativeEnum<typeof CreateAgentFallbackModelConfigurationVoice> = z
|
|
@@ -7443,6 +7575,7 @@ export const CreateAgentModel$inboundSchema: z.ZodType<
|
|
|
7443
7575
|
id: z.string(),
|
|
7444
7576
|
integration_id: z.nullable(z.string()).optional(),
|
|
7445
7577
|
parameters: z.lazy(() => CreateAgentParameters$inboundSchema).optional(),
|
|
7578
|
+
retry: z.lazy(() => CreateAgentRetry$inboundSchema).optional(),
|
|
7446
7579
|
fallback_models: z.nullable(
|
|
7447
7580
|
z.array(z.union([
|
|
7448
7581
|
z.lazy(() => CreateAgentFallbackModelConfiguration2$inboundSchema),
|
|
@@ -7460,6 +7593,7 @@ export type CreateAgentModel$Outbound = {
|
|
|
7460
7593
|
id: string;
|
|
7461
7594
|
integration_id?: string | null | undefined;
|
|
7462
7595
|
parameters?: CreateAgentParameters$Outbound | undefined;
|
|
7596
|
+
retry?: CreateAgentRetry$Outbound | undefined;
|
|
7463
7597
|
fallback_models?:
|
|
7464
7598
|
| Array<CreateAgentFallbackModelConfiguration2$Outbound | string>
|
|
7465
7599
|
| null
|
|
@@ -7475,6 +7609,7 @@ export const CreateAgentModel$outboundSchema: z.ZodType<
|
|
|
7475
7609
|
id: z.string(),
|
|
7476
7610
|
integrationId: z.nullable(z.string()).optional(),
|
|
7477
7611
|
parameters: z.lazy(() => CreateAgentParameters$outboundSchema).optional(),
|
|
7612
|
+
retry: z.lazy(() => CreateAgentRetry$outboundSchema).optional(),
|
|
7478
7613
|
fallbackModels: z.nullable(
|
|
7479
7614
|
z.array(z.union([
|
|
7480
7615
|
z.lazy(() => CreateAgentFallbackModelConfiguration2$outboundSchema),
|
|
@@ -516,7 +516,7 @@ export const CreateBudgetResponseBody$inboundSchema: z.ZodType<
|
|
|
516
516
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
517
517
|
.optional(),
|
|
518
518
|
updated: z.string().datetime({ offset: true }).default(
|
|
519
|
-
"2025-11-14T14:
|
|
519
|
+
"2025-11-14T14:39:28.555Z",
|
|
520
520
|
).transform(v => new Date(v)),
|
|
521
521
|
}).transform((v) => {
|
|
522
522
|
return remap$(v, {
|
|
@@ -553,7 +553,7 @@ export const CreateBudgetResponseBody$outboundSchema: z.ZodType<
|
|
|
553
553
|
isActive: z.boolean(),
|
|
554
554
|
consumption: z.lazy(() => Consumption$outboundSchema).optional(),
|
|
555
555
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
556
|
-
updated: z.date().default(() => new Date("2025-11-14T14:
|
|
556
|
+
updated: z.date().default(() => new Date("2025-11-14T14:39:28.555Z"))
|
|
557
557
|
.transform(v => v.toISOString()),
|
|
558
558
|
}).transform((v) => {
|
|
559
559
|
return remap$(v, {
|
|
@@ -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
|
-
"2025-11-14T14:
|
|
170
|
+
"2025-11-14T14:39:28.175Z",
|
|
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("2025-11-14T14:
|
|
210
|
+
updated: z.date().default(() => new Date("2025-11-14T14:39:28.175Z"))
|
|
211
211
|
.transform(v => v.toISOString()),
|
|
212
212
|
}).transform((v) => {
|
|
213
213
|
return remap$(v, {
|