@orq-ai/node 4.5.0-rc.21 → 4.5.0-rc.22
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/funcs/agentsStream.js +4 -2
- package/funcs/agentsStream.js.map +1 -1
- package/funcs/agentsStreamRun.js +4 -2
- package/funcs/agentsStreamRun.js.map +1 -1
- package/funcs/deploymentsStream.js +4 -2
- package/funcs/deploymentsStream.js.map +1 -1
- package/funcs/filesCreate.js +7 -0
- package/funcs/filesCreate.js.map +1 -1
- package/funcs/routerAudioTranscriptionsCreate.js +7 -0
- package/funcs/routerAudioTranscriptionsCreate.js.map +1 -1
- package/funcs/routerAudioTranslationsCreate.js +7 -0
- package/funcs/routerAudioTranslationsCreate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/event-streams.d.ts +5 -0
- package/lib/event-streams.d.ts.map +1 -1
- package/lib/event-streams.js.map +1 -1
- package/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +0 -1
- package/lib/matchers.js.map +1 -1
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +1 -2
- package/lib/security.js.map +1 -1
- package/models/components/partdoneevent.js +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createagentresponserequest.d.ts.map +1 -1
- package/models/operations/createagentresponserequest.js +2 -1
- package/models/operations/createagentresponserequest.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts +15 -2
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +3 -1
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createcompletion.d.ts +6 -2
- package/models/operations/createcompletion.d.ts.map +1 -1
- package/models/operations/createcompletion.js +2 -1
- package/models/operations/createcompletion.js.map +1 -1
- package/models/operations/createcontact.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createresponse.d.ts.map +1 -1
- package/models/operations/createresponse.js +2 -1
- package/models/operations/createresponse.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/fileget.js +1 -1
- package/models/operations/filelist.js +1 -1
- package/models/operations/fileupload.js +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatememorystore.d.ts +2 -44
- package/models/operations/updatememorystore.d.ts.map +1 -1
- package/models/operations/updatememorystore.js +2 -46
- package/models/operations/updatememorystore.js.map +1 -1
- package/models/operations/updatetool.d.ts +50 -0
- package/models/operations/updatetool.d.ts.map +1 -1
- package/models/operations/updatetool.js +54 -9
- package/models/operations/updatetool.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/agentsStream.ts +4 -1
- package/src/funcs/agentsStreamRun.ts +4 -1
- package/src/funcs/deploymentsStream.ts +4 -1
- package/src/funcs/filesCreate.ts +11 -0
- package/src/funcs/routerAudioTranscriptionsCreate.ts +11 -0
- package/src/funcs/routerAudioTranslationsCreate.ts +11 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/event-streams.ts +10 -1
- package/src/lib/matchers.ts +3 -2
- package/src/lib/security.ts +1 -2
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createagentresponserequest.ts +2 -1
- package/src/models/operations/createchatcompletion.ts +14 -3
- package/src/models/operations/createcompletion.ts +8 -3
- package/src/models/operations/createcontact.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createresponse.ts +2 -1
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/fileget.ts +1 -1
- package/src/models/operations/filelist.ts +1 -1
- package/src/models/operations/fileupload.ts +1 -1
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listidentities.ts +1 -1
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatememorystore.ts +3 -62
- package/src/models/operations/updatetool.ts +96 -7
|
@@ -156,7 +156,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
|
|
|
156
156
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
157
157
|
.optional(),
|
|
158
158
|
updated: z.string().datetime({ offset: true }).default(
|
|
159
|
-
"2026-03-
|
|
159
|
+
"2026-03-03T08:15:58.819Z",
|
|
160
160
|
).transform(v => new Date(v)),
|
|
161
161
|
}).transform((v) => {
|
|
162
162
|
return remap$(v, {
|
|
@@ -176,7 +176,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
|
|
|
176
176
|
z.ZodTypeDef,
|
|
177
177
|
unknown
|
|
178
178
|
> = z.object({
|
|
179
|
-
_id: z.string().default("
|
|
179
|
+
_id: z.string().default("01KJSC9S2BSJFMQHTX5VGD6R9N"),
|
|
180
180
|
display_name: z.string(),
|
|
181
181
|
description: z.string().optional(),
|
|
182
182
|
status: ListDatasourcesStatus$inboundSchema,
|
|
@@ -227,7 +227,7 @@ export const ListIdentitiesData$inboundSchema: z.ZodType<
|
|
|
227
227
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
228
228
|
.optional(),
|
|
229
229
|
updated: z.string().datetime({ offset: true }).default(
|
|
230
|
-
"2026-03-
|
|
230
|
+
"2026-03-03T08:15:58.819Z",
|
|
231
231
|
).transform(v => new Date(v)),
|
|
232
232
|
metrics: z.lazy(() => ListIdentitiesMetrics$inboundSchema),
|
|
233
233
|
}).transform((v) => {
|
|
@@ -1207,7 +1207,7 @@ export const RetrieveDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
1207
1207
|
.default("orq"),
|
|
1208
1208
|
reviewed_by_id: z.string(),
|
|
1209
1209
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1210
|
-
"2026-03-
|
|
1210
|
+
"2026-03-03T08:16:14.000Z",
|
|
1211
1211
|
).transform(v => new Date(v)),
|
|
1212
1212
|
type: z.literal("string_array"),
|
|
1213
1213
|
values: z.array(z.string()),
|
|
@@ -1255,7 +1255,7 @@ export const RetrieveDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
1255
1255
|
),
|
|
1256
1256
|
reviewed_by_id: z.string(),
|
|
1257
1257
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1258
|
-
"2026-03-
|
|
1258
|
+
"2026-03-03T08:16:13.999Z",
|
|
1259
1259
|
).transform(v => new Date(v)),
|
|
1260
1260
|
type: z.literal("number"),
|
|
1261
1261
|
value: z.number(),
|
|
@@ -1300,7 +1300,7 @@ export const RetrieveDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
1300
1300
|
source: RetrieveDatapointEvaluationsSource$inboundSchema.default("orq"),
|
|
1301
1301
|
reviewed_by_id: z.string(),
|
|
1302
1302
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1303
|
-
"2026-03-
|
|
1303
|
+
"2026-03-03T08:16:13.999Z",
|
|
1304
1304
|
).transform(v => new Date(v)),
|
|
1305
1305
|
type: z.literal("string"),
|
|
1306
1306
|
value: z.string(),
|
|
@@ -1377,7 +1377,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
1377
1377
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1378
1378
|
.optional(),
|
|
1379
1379
|
updated: z.string().datetime({ offset: true }).default(
|
|
1380
|
-
"2026-03-
|
|
1380
|
+
"2026-03-03T08:15:58.819Z",
|
|
1381
1381
|
).transform(v => new Date(v)),
|
|
1382
1382
|
}).transform((v) => {
|
|
1383
1383
|
return remap$(v, {
|
|
@@ -126,7 +126,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
126
126
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
127
127
|
.optional(),
|
|
128
128
|
updated: z.string().datetime({ offset: true }).default(
|
|
129
|
-
"2026-03-
|
|
129
|
+
"2026-03-03T08:15:58.819Z",
|
|
130
130
|
).transform(v => new Date(v)),
|
|
131
131
|
}).transform((v) => {
|
|
132
132
|
return remap$(v, {
|
|
@@ -118,7 +118,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
118
118
|
z.ZodTypeDef,
|
|
119
119
|
unknown
|
|
120
120
|
> = z.object({
|
|
121
|
-
_id: z.string().default("
|
|
121
|
+
_id: z.string().default("01KJSC9S2E3G9GEVXDGTM9DEW5"),
|
|
122
122
|
display_name: z.string(),
|
|
123
123
|
description: z.string().optional(),
|
|
124
124
|
status: RetrieveDatasourceStatus$inboundSchema,
|
|
@@ -95,7 +95,7 @@ export const RetrieveIdentityResponseBody$inboundSchema: z.ZodType<
|
|
|
95
95
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
96
96
|
.optional(),
|
|
97
97
|
updated: z.string().datetime({ offset: true }).default(
|
|
98
|
-
"2026-03-
|
|
98
|
+
"2026-03-03T08:15:58.819Z",
|
|
99
99
|
).transform(v => new Date(v)),
|
|
100
100
|
}).transform((v) => {
|
|
101
101
|
return remap$(v, {
|
|
@@ -754,7 +754,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
754
754
|
z.ZodTypeDef,
|
|
755
755
|
unknown
|
|
756
756
|
> = z.object({
|
|
757
|
-
_id: z.string().default("
|
|
757
|
+
_id: z.string().default("tool_01KJSC9RZC7KP0Q5TM7H8AR9NV"),
|
|
758
758
|
path: z.string(),
|
|
759
759
|
key: z.string(),
|
|
760
760
|
display_name: z.string().optional(),
|
|
@@ -862,7 +862,7 @@ export const RetrieveToolResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
862
862
|
z.ZodTypeDef,
|
|
863
863
|
unknown
|
|
864
864
|
> = z.object({
|
|
865
|
-
id: z.string().default("
|
|
865
|
+
id: z.string().default("01KJSC9RZCQYX4TC1H82PFAZGZ"),
|
|
866
866
|
name: z.string(),
|
|
867
867
|
description: z.string().optional(),
|
|
868
868
|
schema: z.lazy(() => RetrieveToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -918,7 +918,7 @@ export const RetrieveToolResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
918
918
|
z.ZodTypeDef,
|
|
919
919
|
unknown
|
|
920
920
|
> = z.object({
|
|
921
|
-
_id: z.string().default("
|
|
921
|
+
_id: z.string().default("tool_01KJSC9RZB051J1DFAJJ300D51"),
|
|
922
922
|
path: z.string(),
|
|
923
923
|
key: z.string(),
|
|
924
924
|
display_name: z.string().optional(),
|
|
@@ -1111,7 +1111,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1111
1111
|
z.ZodTypeDef,
|
|
1112
1112
|
unknown
|
|
1113
1113
|
> = z.object({
|
|
1114
|
-
_id: z.string().default("
|
|
1114
|
+
_id: z.string().default("tool_01KJSC9RZ90KKSSH6DK5BKK1HP"),
|
|
1115
1115
|
path: z.string(),
|
|
1116
1116
|
key: z.string(),
|
|
1117
1117
|
display_name: z.string().optional(),
|
|
@@ -1209,7 +1209,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1209
1209
|
z.ZodTypeDef,
|
|
1210
1210
|
unknown
|
|
1211
1211
|
> = z.object({
|
|
1212
|
-
_id: z.string().default("
|
|
1212
|
+
_id: z.string().default("tool_01KJSC9RZ7WXH5C7GC5JJXRY8Z"),
|
|
1213
1213
|
path: z.string(),
|
|
1214
1214
|
key: z.string(),
|
|
1215
1215
|
display_name: z.string().optional(),
|
|
@@ -1317,7 +1317,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1317
1317
|
z.ZodTypeDef,
|
|
1318
1318
|
unknown
|
|
1319
1319
|
> = z.object({
|
|
1320
|
-
_id: z.string().default("
|
|
1320
|
+
_id: z.string().default("tool_01KJSC9RZ579RG84P09YZ8BETV"),
|
|
1321
1321
|
path: z.string(),
|
|
1322
1322
|
key: z.string(),
|
|
1323
1323
|
display_name: z.string().optional(),
|
|
@@ -4031,7 +4031,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
4031
4031
|
z.ZodTypeDef,
|
|
4032
4032
|
Tools
|
|
4033
4033
|
> = z.object({
|
|
4034
|
-
id: z.string().default("
|
|
4034
|
+
id: z.string().default("01KJSC9RF3E8J4CWZ3D9CHV3J7"),
|
|
4035
4035
|
name: z.string(),
|
|
4036
4036
|
description: z.string().optional(),
|
|
4037
4037
|
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|
|
@@ -4103,7 +4103,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
|
|
|
4103
4103
|
z.ZodTypeDef,
|
|
4104
4104
|
AgentToolInputRunTools
|
|
4105
4105
|
> = z.object({
|
|
4106
|
-
id: z.string().default("
|
|
4106
|
+
id: z.string().default("01KJSC9RHNDY5ZKBZA2NT98ZTF"),
|
|
4107
4107
|
name: z.string(),
|
|
4108
4108
|
description: z.string().optional(),
|
|
4109
4109
|
schema: z.lazy(() =>
|
|
@@ -2358,7 +2358,7 @@ export const UpdateDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
2358
2358
|
.default("orq"),
|
|
2359
2359
|
reviewed_by_id: z.string(),
|
|
2360
2360
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2361
|
-
"2026-03-
|
|
2361
|
+
"2026-03-03T08:16:14.135Z",
|
|
2362
2362
|
).transform(v => new Date(v)),
|
|
2363
2363
|
type: z.literal("string_array"),
|
|
2364
2364
|
values: z.array(z.string()),
|
|
@@ -2404,7 +2404,7 @@ export const UpdateDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
2404
2404
|
source: UpdateDatapointEvaluationsDatasetsSource$inboundSchema.default("orq"),
|
|
2405
2405
|
reviewed_by_id: z.string(),
|
|
2406
2406
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2407
|
-
"2026-03-
|
|
2407
|
+
"2026-03-03T08:16:14.130Z",
|
|
2408
2408
|
).transform(v => new Date(v)),
|
|
2409
2409
|
type: z.literal("number"),
|
|
2410
2410
|
value: z.number(),
|
|
@@ -2449,7 +2449,7 @@ export const UpdateDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
2449
2449
|
source: UpdateDatapointEvaluationsSource$inboundSchema.default("orq"),
|
|
2450
2450
|
reviewed_by_id: z.string(),
|
|
2451
2451
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2452
|
-
"2026-03-
|
|
2452
|
+
"2026-03-03T08:16:14.130Z",
|
|
2453
2453
|
).transform(v => new Date(v)),
|
|
2454
2454
|
type: z.literal("string"),
|
|
2455
2455
|
value: z.string(),
|
|
@@ -2530,7 +2530,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
2530
2530
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2531
2531
|
.optional(),
|
|
2532
2532
|
updated: z.string().datetime({ offset: true }).default(
|
|
2533
|
-
"2026-03-
|
|
2533
|
+
"2026-03-03T08:15:58.819Z",
|
|
2534
2534
|
).transform(v => new Date(v)),
|
|
2535
2535
|
}).transform((v) => {
|
|
2536
2536
|
return remap$(v, {
|
|
@@ -182,7 +182,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
182
182
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
183
183
|
.optional(),
|
|
184
184
|
updated: z.string().datetime({ offset: true }).default(
|
|
185
|
-
"2026-03-
|
|
185
|
+
"2026-03-03T08:15:58.819Z",
|
|
186
186
|
).transform(v => new Date(v)),
|
|
187
187
|
}).transform((v) => {
|
|
188
188
|
return remap$(v, {
|
|
@@ -152,7 +152,7 @@ export const UpdateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
152
152
|
z.ZodTypeDef,
|
|
153
153
|
unknown
|
|
154
154
|
> = z.object({
|
|
155
|
-
_id: z.string().default("
|
|
155
|
+
_id: z.string().default("01KJSC9S2KDY8ET1KX2X7RVGFY"),
|
|
156
156
|
display_name: z.string(),
|
|
157
157
|
description: z.string().optional(),
|
|
158
158
|
status: UpdateDatasourceStatus$inboundSchema,
|
|
@@ -2097,8 +2097,8 @@ export const ResponseBodyTypescript$inboundSchema: z.ZodType<
|
|
|
2097
2097
|
> = z.object({
|
|
2098
2098
|
_id: z.string(),
|
|
2099
2099
|
description: z.string(),
|
|
2100
|
-
created: z.string().default("2026-03-
|
|
2101
|
-
updated: z.string().default("2026-03-
|
|
2100
|
+
created: z.string().default("2026-03-03T08:16:00.101Z"),
|
|
2101
|
+
updated: z.string().default("2026-03-03T08:16:00.101Z"),
|
|
2102
2102
|
guardrail_config: z.union([
|
|
2103
2103
|
z.lazy(() =>
|
|
2104
2104
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$inboundSchema
|
|
@@ -2251,8 +2251,8 @@ export const ResponseBodyRagas$inboundSchema: z.ZodType<
|
|
|
2251
2251
|
> = z.object({
|
|
2252
2252
|
_id: z.string(),
|
|
2253
2253
|
description: z.string(),
|
|
2254
|
-
created: z.string().default("2026-03-
|
|
2255
|
-
updated: z.string().default("2026-03-
|
|
2254
|
+
created: z.string().default("2026-03-03T08:16:00.101Z"),
|
|
2255
|
+
updated: z.string().default("2026-03-03T08:16:00.101Z"),
|
|
2256
2256
|
guardrail_config: z.union([
|
|
2257
2257
|
z.lazy(() =>
|
|
2258
2258
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean$inboundSchema
|
|
@@ -3071,8 +3071,8 @@ export const ResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
3071
3071
|
> = z.object({
|
|
3072
3072
|
_id: z.string(),
|
|
3073
3073
|
description: z.string(),
|
|
3074
|
-
created: z.string().default("2026-03-
|
|
3075
|
-
updated: z.string().default("2026-03-
|
|
3074
|
+
created: z.string().default("2026-03-03T08:16:00.101Z"),
|
|
3075
|
+
updated: z.string().default("2026-03-03T08:16:00.101Z"),
|
|
3076
3076
|
guardrail_config: z.union([
|
|
3077
3077
|
z.lazy(() =>
|
|
3078
3078
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema
|
|
@@ -3253,8 +3253,8 @@ export const UpdateEvalResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
3253
3253
|
> = z.object({
|
|
3254
3254
|
_id: z.string(),
|
|
3255
3255
|
description: z.string(),
|
|
3256
|
-
created: z.string().default("2026-03-
|
|
3257
|
-
updated: z.string().default("2026-03-
|
|
3256
|
+
created: z.string().default("2026-03-03T08:16:00.101Z"),
|
|
3257
|
+
updated: z.string().default("2026-03-03T08:16:00.101Z"),
|
|
3258
3258
|
guardrail_config: z.union([
|
|
3259
3259
|
z.lazy(() =>
|
|
3260
3260
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema
|
|
@@ -3401,8 +3401,8 @@ export const UpdateEvalResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
3401
3401
|
> = z.object({
|
|
3402
3402
|
_id: z.string(),
|
|
3403
3403
|
description: z.string(),
|
|
3404
|
-
created: z.string().default("2026-03-
|
|
3405
|
-
updated: z.string().default("2026-03-
|
|
3404
|
+
created: z.string().default("2026-03-03T08:16:00.101Z"),
|
|
3405
|
+
updated: z.string().default("2026-03-03T08:16:00.101Z"),
|
|
3406
3406
|
guardrail_config: z.union([
|
|
3407
3407
|
z.lazy(() =>
|
|
3408
3408
|
UpdateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema
|
|
@@ -3538,8 +3538,8 @@ export const UpdateEvalResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
3538
3538
|
> = z.object({
|
|
3539
3539
|
_id: z.string(),
|
|
3540
3540
|
description: z.string(),
|
|
3541
|
-
created: z.string().default("2026-03-
|
|
3542
|
-
updated: z.string().default("2026-03-
|
|
3541
|
+
created: z.string().default("2026-03-03T08:16:00.101Z"),
|
|
3542
|
+
updated: z.string().default("2026-03-03T08:16:00.101Z"),
|
|
3543
3543
|
guardrail_config: z.union([
|
|
3544
3544
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
3545
3545
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
@@ -3840,8 +3840,8 @@ export const UpdateEvalLlm2$inboundSchema: z.ZodType<
|
|
|
3840
3840
|
> = z.object({
|
|
3841
3841
|
_id: z.string(),
|
|
3842
3842
|
description: z.string(),
|
|
3843
|
-
created: z.string().default("2026-03-
|
|
3844
|
-
updated: z.string().default("2026-03-
|
|
3843
|
+
created: z.string().default("2026-03-03T08:16:00.101Z"),
|
|
3844
|
+
updated: z.string().default("2026-03-03T08:16:00.101Z"),
|
|
3845
3845
|
guardrail_config: z.union([
|
|
3846
3846
|
z.lazy(() =>
|
|
3847
3847
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean$inboundSchema
|
|
@@ -3984,8 +3984,8 @@ export const UpdateEvalLlm1$inboundSchema: z.ZodType<
|
|
|
3984
3984
|
> = z.object({
|
|
3985
3985
|
_id: z.string(),
|
|
3986
3986
|
description: z.string(),
|
|
3987
|
-
created: z.string().default("2026-03-
|
|
3988
|
-
updated: z.string().default("2026-03-
|
|
3987
|
+
created: z.string().default("2026-03-03T08:16:00.101Z"),
|
|
3988
|
+
updated: z.string().default("2026-03-03T08:16:00.101Z"),
|
|
3989
3989
|
guardrail_config: z.union([
|
|
3990
3990
|
z.lazy(() =>
|
|
3991
3991
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean$inboundSchema
|
|
@@ -167,7 +167,7 @@ export const UpdateIdentityResponseBody$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-03-
|
|
170
|
+
"2026-03-03T08:15:58.819Z",
|
|
171
171
|
).transform(v => new Date(v)),
|
|
172
172
|
}).transform((v) => {
|
|
173
173
|
return remap$(v, {
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
10
|
|
|
@@ -29,49 +28,11 @@ export type UpdateMemoryStoreRequest = {
|
|
|
29
28
|
requestBody?: UpdateMemoryStoreRequestBody | undefined;
|
|
30
29
|
};
|
|
31
30
|
|
|
32
|
-
export const UpdateMemoryStoreProvider = {
|
|
33
|
-
Openai: "openai",
|
|
34
|
-
Groq: "groq",
|
|
35
|
-
Cohere: "cohere",
|
|
36
|
-
Azure: "azure",
|
|
37
|
-
Aws: "aws",
|
|
38
|
-
Google: "google",
|
|
39
|
-
GoogleAi: "google-ai",
|
|
40
|
-
Huggingface: "huggingface",
|
|
41
|
-
Togetherai: "togetherai",
|
|
42
|
-
Perplexity: "perplexity",
|
|
43
|
-
Anthropic: "anthropic",
|
|
44
|
-
Leonardoai: "leonardoai",
|
|
45
|
-
Fal: "fal",
|
|
46
|
-
Nvidia: "nvidia",
|
|
47
|
-
Jina: "jina",
|
|
48
|
-
Elevenlabs: "elevenlabs",
|
|
49
|
-
Litellm: "litellm",
|
|
50
|
-
Cerebras: "cerebras",
|
|
51
|
-
Openailike: "openailike",
|
|
52
|
-
Bytedance: "bytedance",
|
|
53
|
-
Mistral: "mistral",
|
|
54
|
-
Deepseek: "deepseek",
|
|
55
|
-
Contextualai: "contextualai",
|
|
56
|
-
Moonshotai: "moonshotai",
|
|
57
|
-
Zai: "zai",
|
|
58
|
-
Minimax: "minimax",
|
|
59
|
-
Xai: "xai",
|
|
60
|
-
Alibaba: "alibaba",
|
|
61
|
-
Slack: "slack",
|
|
62
|
-
} as const;
|
|
63
|
-
export type UpdateMemoryStoreProvider = ClosedEnum<
|
|
64
|
-
typeof UpdateMemoryStoreProvider
|
|
65
|
-
>;
|
|
66
|
-
|
|
67
31
|
export type UpdateMemoryStoreEmbeddingConfig = {
|
|
68
|
-
modelId: string;
|
|
69
|
-
integrationId?: string | undefined;
|
|
70
32
|
/**
|
|
71
|
-
*
|
|
33
|
+
* The embeddings model to use for the knowledge base in the format "provider/model" for public models or "workspaceKey@provider/model" for private workspace models. This model will be used to embed the chunks when they are added to the knowledge base. Refer to the (Supported models)[/docs/proxy/supported-models] to browse available models.
|
|
72
34
|
*/
|
|
73
|
-
|
|
74
|
-
provider: UpdateMemoryStoreProvider;
|
|
35
|
+
model: string;
|
|
75
36
|
};
|
|
76
37
|
|
|
77
38
|
/**
|
|
@@ -86,10 +47,6 @@ export type UpdateMemoryStoreResponseBody = {
|
|
|
86
47
|
* The unique key of the memory store. The key is unique and inmmutable and cannot be repeated within the same workspace.
|
|
87
48
|
*/
|
|
88
49
|
key: string;
|
|
89
|
-
/**
|
|
90
|
-
* The project unique identifier. This entity is assigned based on the provided `path` property
|
|
91
|
-
*/
|
|
92
|
-
projectId: string;
|
|
93
50
|
/**
|
|
94
51
|
* The description of the memory store. Be as precise as possible to help the AI to understand the purpose of the memory store.
|
|
95
52
|
*/
|
|
@@ -175,27 +132,13 @@ export function updateMemoryStoreRequestToJSON(
|
|
|
175
132
|
);
|
|
176
133
|
}
|
|
177
134
|
|
|
178
|
-
/** @internal */
|
|
179
|
-
export const UpdateMemoryStoreProvider$inboundSchema: z.ZodNativeEnum<
|
|
180
|
-
typeof UpdateMemoryStoreProvider
|
|
181
|
-
> = z.nativeEnum(UpdateMemoryStoreProvider);
|
|
182
|
-
|
|
183
135
|
/** @internal */
|
|
184
136
|
export const UpdateMemoryStoreEmbeddingConfig$inboundSchema: z.ZodType<
|
|
185
137
|
UpdateMemoryStoreEmbeddingConfig,
|
|
186
138
|
z.ZodTypeDef,
|
|
187
139
|
unknown
|
|
188
140
|
> = z.object({
|
|
189
|
-
|
|
190
|
-
integration_id: z.string().optional(),
|
|
191
|
-
top_k: z.number().optional(),
|
|
192
|
-
provider: UpdateMemoryStoreProvider$inboundSchema,
|
|
193
|
-
}).transform((v) => {
|
|
194
|
-
return remap$(v, {
|
|
195
|
-
"model_id": "modelId",
|
|
196
|
-
"integration_id": "integrationId",
|
|
197
|
-
"top_k": "topK",
|
|
198
|
-
});
|
|
141
|
+
model: z.string(),
|
|
199
142
|
});
|
|
200
143
|
|
|
201
144
|
export function updateMemoryStoreEmbeddingConfigFromJSON(
|
|
@@ -216,7 +159,6 @@ export const UpdateMemoryStoreResponseBody$inboundSchema: z.ZodType<
|
|
|
216
159
|
> = z.object({
|
|
217
160
|
_id: z.string(),
|
|
218
161
|
key: z.string(),
|
|
219
|
-
project_id: z.string(),
|
|
220
162
|
description: z.string(),
|
|
221
163
|
created_by_id: z.string().optional(),
|
|
222
164
|
updated_by_id: z.string().optional(),
|
|
@@ -229,7 +171,6 @@ export const UpdateMemoryStoreResponseBody$inboundSchema: z.ZodType<
|
|
|
229
171
|
}).transform((v) => {
|
|
230
172
|
return remap$(v, {
|
|
231
173
|
"_id": "id",
|
|
232
|
-
"project_id": "projectId",
|
|
233
174
|
"created_by_id": "createdById",
|
|
234
175
|
"updated_by_id": "updatedById",
|
|
235
176
|
"embedding_config": "embeddingConfig",
|