@orq-ai/node 4.14.3 → 4.14.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/encodings.d.ts +10 -9
- package/lib/encodings.d.ts.map +1 -1
- package/lib/encodings.js +29 -13
- package/lib/encodings.js.map +1 -1
- package/models/components/evaluatorresponsefunction.js +2 -2
- package/models/components/evaluatorresponsehttp.js +2 -2
- package/models/components/evaluatorresponsejsonschema.js +2 -2
- package/models/components/evaluatorresponsellm.js +2 -2
- package/models/components/evaluatorresponsepython.js +2 -2
- package/models/components/evaluatorresponseragas.js +2 -2
- package/models/components/evaluatorresponsetypescript.js +2 -2
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createannotationqueue.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createtool.js +4 -4
- package/models/operations/getalltools.js +4 -4
- package/models/operations/geteval.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listannotationqueues.js +1 -1
- package/models/operations/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrieveannotationqueue.js +1 -1
- package/models/operations/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updateannotationqueue.js +1 -1
- package/models/operations/updatedatapoint.js +5 -5
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +3 -3
- package/packages/orq-rc/examples/{evalsAll.example.ts → deploymentsList.example.ts} +2 -2
- package/packages/orq-rc/src/funcs/annotationQueuesAddItems.ts +9 -10
- package/packages/orq-rc/src/funcs/annotationQueuesClear.ts +8 -8
- package/packages/orq-rc/src/funcs/annotationQueuesCreate.ts +10 -13
- package/packages/orq-rc/src/funcs/annotationQueuesDelete.ts +8 -8
- package/packages/orq-rc/src/funcs/annotationQueuesList.ts +6 -5
- package/packages/orq-rc/src/funcs/annotationQueuesListItems.ts +6 -5
- package/packages/orq-rc/src/funcs/annotationQueuesRemoveItems.ts +12 -10
- package/packages/orq-rc/src/funcs/annotationQueuesRetrieve.ts +6 -5
- package/packages/orq-rc/src/funcs/annotationQueuesRetrieveItem.ts +8 -6
- package/packages/orq-rc/src/funcs/annotationQueuesUpdate.ts +10 -7
- package/packages/orq-rc/src/funcs/evalsAll.ts +6 -14
- package/packages/orq-rc/src/funcs/evalsCreate.ts +10 -35
- package/packages/orq-rc/src/funcs/evalsDelete.ts +6 -19
- package/packages/orq-rc/src/funcs/evalsGet.ts +6 -14
- package/packages/orq-rc/src/funcs/evalsGetVersion.ts +174 -0
- package/packages/orq-rc/src/funcs/evalsListVersions.ts +11 -20
- package/packages/orq-rc/src/funcs/evalsUpdate.ts +6 -14
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/encodings.ts +58 -23
- package/packages/orq-rc/src/models/components/addannotationqueueitemsrequest.ts +41 -0
- package/packages/orq-rc/src/models/components/addannotationqueueitemsresponse.ts +38 -0
- package/packages/orq-rc/src/models/components/agentresponserequest.ts +17 -10
- package/packages/orq-rc/src/models/components/annotationqueue.ts +101 -0
- package/packages/orq-rc/src/models/components/annotationqueueitem.ts +80 -0
- package/packages/orq-rc/src/models/components/annotationqueueitemref.ts +43 -0
- package/packages/orq-rc/src/models/components/annotationqueuemetadata.ts +42 -0
- package/packages/orq-rc/src/models/components/budgetmatch.ts +3 -3
- package/packages/orq-rc/src/models/components/budgetscope.ts +17 -1
- package/packages/orq-rc/src/models/components/budgetscopekind.ts +1 -0
- package/packages/orq-rc/src/models/components/budgetscoperestresponse.ts +13 -1
- package/packages/orq-rc/src/models/components/clearannotationqueueresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/createannotationqueuerequest.ts +54 -0
- package/packages/orq-rc/src/models/components/createapikeyrequest.ts +9 -0
- package/packages/orq-rc/src/models/components/deleteannotationqueueresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/deleteevaluatorresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/evaluatordocumentresponse.ts +50 -0
- package/packages/orq-rc/src/models/components/factorybudgetscope.ts +66 -0
- package/packages/orq-rc/src/models/components/factorybudgetscoperestresponse.ts +37 -0
- package/packages/orq-rc/src/models/components/filesystemtoolinput.ts +63 -6
- package/packages/orq-rc/src/models/components/getevaluatorversionresponse.ts +58 -0
- package/packages/orq-rc/src/models/components/index.ts +22 -8
- package/packages/orq-rc/src/models/components/listannotationqueueitemsresponse.ts +53 -0
- package/packages/orq-rc/src/models/components/listannotationqueuesresponse.ts +53 -0
- package/packages/orq-rc/src/models/components/listevaluatorsresponse.ts +59 -0
- package/packages/orq-rc/src/models/components/listevaluatorversionsresponse.ts +59 -0
- package/packages/orq-rc/src/models/components/modelmetadata.ts +6 -0
- package/packages/orq-rc/src/models/components/modelsconfig.ts +10 -11
- package/packages/orq-rc/src/models/components/policyprofileidlist.ts +31 -0
- package/packages/orq-rc/src/models/components/pricing.ts +12 -0
- package/packages/orq-rc/src/models/components/pricingvariant.ts +12 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/removeannotationqueueitemsrequest.ts +41 -0
- package/packages/orq-rc/src/models/components/removeannotationqueueitemsresponse.ts +28 -0
- package/packages/orq-rc/src/models/components/searchknowledgerequest.ts +37 -58
- package/packages/orq-rc/src/models/components/textcontentpartschema.ts +19 -23
- package/packages/orq-rc/src/models/components/updateannotationqueuerequest.ts +61 -0
- package/packages/orq-rc/src/models/components/updateworkspacesettingsrequest.ts +9 -0
- package/packages/orq-rc/src/models/components/workspacesettings.ts +3 -0
- package/packages/orq-rc/src/models/errors/index.ts +0 -6
- package/packages/orq-rc/src/models/operations/addannotationqueueitems.ts +7 -139
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +20 -31
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +5 -5
- package/packages/orq-rc/src/models/operations/createeval.ts +3 -644
- package/packages/orq-rc/src/models/operations/createprompt.ts +19 -22
- package/packages/orq-rc/src/models/operations/createtool.ts +55 -56
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +16 -18
- package/packages/orq-rc/src/models/operations/deployments.ts +43 -46
- package/packages/orq-rc/src/models/operations/getallprompts.ts +1 -0
- package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
- package/packages/orq-rc/src/models/operations/geteval.ts +0 -2770
- package/packages/orq-rc/src/models/operations/getevals.ts +5 -119
- package/packages/orq-rc/src/models/operations/getevalversion.ts +39 -0
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +1 -0
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +1 -0
- package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/index.ts +2 -2
- package/packages/orq-rc/src/models/operations/listannotationqueueitems.ts +5 -183
- package/packages/orq-rc/src/models/operations/listannotationqueues.ts +7 -173
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
- package/packages/orq-rc/src/models/operations/listevalversions.ts +49 -0
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +1 -0
- package/packages/orq-rc/src/models/operations/parse.ts +7 -7
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +14 -20
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/removeannotationqueueitems.ts +8 -41
- package/packages/orq-rc/src/models/operations/retrieveannotationqueue.ts +0 -123
- package/packages/orq-rc/src/models/operations/retrieveannotationqueueitem.ts +31 -0
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +5 -5
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
- package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateagent.ts +31 -40
- package/packages/orq-rc/src/models/operations/updateannotationqueue.ts +7 -182
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +5 -5
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateeval.ts +6 -404
- package/packages/orq-rc/src/models/operations/updateprompt.ts +1 -0
- package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
- package/packages/orq-rc/src/sdk/annotationqueues.ts +31 -31
- package/packages/orq-rc/src/sdk/evals.ts +41 -23
- package/packages/orq-rc/src/sdk/sdk.ts +10 -10
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +58 -23
- package/src/models/components/evaluatorresponsefunction.ts +2 -2
- package/src/models/components/evaluatorresponsehttp.ts +2 -2
- package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
- package/src/models/components/evaluatorresponsellm.ts +2 -2
- package/src/models/components/evaluatorresponsepython.ts +2 -2
- package/src/models/components/evaluatorresponseragas.ts +2 -2
- package/src/models/components/evaluatorresponsetypescript.ts +2 -2
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createannotationqueue.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/geteval.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listannotationqueues.ts +1 -1
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrieveannotationqueue.ts +1 -1
- package/src/models/operations/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updateannotationqueue.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +5 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
- package/packages/orq-rc/src/models/components/evaluatorresponsefunction.ts +0 -922
- package/packages/orq-rc/src/models/components/evaluatorresponsehttp.ts +0 -77
- package/packages/orq-rc/src/models/components/evaluatorresponsejsonschema.ts +0 -60
- package/packages/orq-rc/src/models/components/evaluatorresponsellm.ts +0 -310
- package/packages/orq-rc/src/models/components/evaluatorresponsepython.ts +0 -60
- package/packages/orq-rc/src/models/components/evaluatorresponseragas.ts +0 -84
- package/packages/orq-rc/src/models/components/evaluatorresponsetypescript.ts +0 -60
- package/packages/orq-rc/src/models/components/publicspan.ts +0 -135
- package/packages/orq-rc/src/models/errors/createeval.ts +0 -51
- package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -96
- package/packages/orq-rc/src/models/errors/geteval.ts +0 -51
- package/packages/orq-rc/src/models/errors/getevals.ts +0 -51
- package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +0 -51
- package/packages/orq-rc/src/models/errors/updateeval.ts +0 -51
- package/packages/orq-rc/src/models/operations/createannotationqueue.ts +0 -176
- package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +0 -162
|
@@ -296,16 +296,7 @@ export type OneEq = {
|
|
|
296
296
|
eq: string | number | boolean;
|
|
297
297
|
};
|
|
298
298
|
|
|
299
|
-
export type
|
|
300
|
-
| OneEq
|
|
301
|
-
| OneNe
|
|
302
|
-
| Gt
|
|
303
|
-
| Gte
|
|
304
|
-
| Lt
|
|
305
|
-
| Lte
|
|
306
|
-
| OneIn
|
|
307
|
-
| OneNin
|
|
308
|
-
| Exists;
|
|
299
|
+
export type One = OneEq | OneNe | Gt | Gte | Lt | Lte | OneIn | OneNin | Exists;
|
|
309
300
|
|
|
310
301
|
/**
|
|
311
302
|
* The metadata filter to apply to the search. Check the [Searching a Knowledge Base](https://docs.orq.ai/docs/knowledge/api#knowledge-base-search) for more information.
|
|
@@ -314,7 +305,7 @@ export type FilterBy = FilterByAnd | FilterByOr | {
|
|
|
314
305
|
[k: string]: OneEq | OneNe | Gt | Gte | Lt | Lte | OneIn | OneNin | Exists;
|
|
315
306
|
};
|
|
316
307
|
|
|
317
|
-
export type
|
|
308
|
+
export type Two = {
|
|
318
309
|
/**
|
|
319
310
|
* The name of the model for the Agent to use. Refer to the [model list](https://docs.orq.ai/docs/proxy#/chat-models).
|
|
320
311
|
*/
|
|
@@ -355,9 +346,7 @@ export type AgenticRagConfig1 = {
|
|
|
355
346
|
/**
|
|
356
347
|
* Represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values.
|
|
357
348
|
*/
|
|
358
|
-
export type SearchKnowledgeRequestAgenticRagConfig =
|
|
359
|
-
| AgenticRagConfig2
|
|
360
|
-
| AgenticRagConfig1;
|
|
349
|
+
export type SearchKnowledgeRequestAgenticRagConfig = Two | AgenticRagConfig1;
|
|
361
350
|
|
|
362
351
|
/**
|
|
363
352
|
* SearchKnowledgeRequest mirrors the existing public search body and adds the
|
|
@@ -396,7 +385,7 @@ export type SearchKnowledgeRequest = {
|
|
|
396
385
|
/**
|
|
397
386
|
* Override the agentic RAG configuration for this search. If not provided, will use the knowledge base configured agentic RAG settings.
|
|
398
387
|
*/
|
|
399
|
-
agenticRagConfig?:
|
|
388
|
+
agenticRagConfig?: Two | AgenticRagConfig1 | null | undefined;
|
|
400
389
|
/**
|
|
401
390
|
* Override the stored retrieval configuration for this search. If not provided, the knowledge base configuration is used.
|
|
402
391
|
*/
|
|
@@ -1211,7 +1200,7 @@ export function oneEqToJSON(oneEq: OneEq): string {
|
|
|
1211
1200
|
}
|
|
1212
1201
|
|
|
1213
1202
|
/** @internal */
|
|
1214
|
-
export type
|
|
1203
|
+
export type One$Outbound =
|
|
1215
1204
|
| OneEq$Outbound
|
|
1216
1205
|
| OneNe$Outbound
|
|
1217
1206
|
| Gt$Outbound
|
|
@@ -1223,24 +1212,21 @@ export type FilterBy1$Outbound =
|
|
|
1223
1212
|
| Exists$Outbound;
|
|
1224
1213
|
|
|
1225
1214
|
/** @internal */
|
|
1226
|
-
export const
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
z.lazy(() => OneNin$outboundSchema),
|
|
1239
|
-
z.lazy(() => Exists$outboundSchema),
|
|
1240
|
-
]);
|
|
1215
|
+
export const One$outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One> = z
|
|
1216
|
+
.union([
|
|
1217
|
+
z.lazy(() => OneEq$outboundSchema),
|
|
1218
|
+
z.lazy(() => OneNe$outboundSchema),
|
|
1219
|
+
z.lazy(() => Gt$outboundSchema),
|
|
1220
|
+
z.lazy(() => Gte$outboundSchema),
|
|
1221
|
+
z.lazy(() => Lt$outboundSchema),
|
|
1222
|
+
z.lazy(() => Lte$outboundSchema),
|
|
1223
|
+
z.lazy(() => OneIn$outboundSchema),
|
|
1224
|
+
z.lazy(() => OneNin$outboundSchema),
|
|
1225
|
+
z.lazy(() => Exists$outboundSchema),
|
|
1226
|
+
]);
|
|
1241
1227
|
|
|
1242
|
-
export function
|
|
1243
|
-
return JSON.stringify(
|
|
1228
|
+
export function oneToJSON(one: One): string {
|
|
1229
|
+
return JSON.stringify(One$outboundSchema.parse(one));
|
|
1244
1230
|
}
|
|
1245
1231
|
|
|
1246
1232
|
/** @internal */
|
|
@@ -1283,7 +1269,7 @@ export function filterByToJSON(filterBy: FilterBy): string {
|
|
|
1283
1269
|
}
|
|
1284
1270
|
|
|
1285
1271
|
/** @internal */
|
|
1286
|
-
export type
|
|
1272
|
+
export type Two$Outbound = {
|
|
1287
1273
|
model?: string | undefined;
|
|
1288
1274
|
model_db_id: string;
|
|
1289
1275
|
provider: string;
|
|
@@ -1291,28 +1277,21 @@ export type AgenticRagConfig2$Outbound = {
|
|
|
1291
1277
|
};
|
|
1292
1278
|
|
|
1293
1279
|
/** @internal */
|
|
1294
|
-
export const
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
modelDbId: "model_db_id",
|
|
1306
|
-
integrationId: "integration_id",
|
|
1280
|
+
export const Two$outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two> = z
|
|
1281
|
+
.object({
|
|
1282
|
+
model: z.string().optional(),
|
|
1283
|
+
modelDbId: z.string(),
|
|
1284
|
+
provider: z.string(),
|
|
1285
|
+
integrationId: z.nullable(z.string()).optional(),
|
|
1286
|
+
}).transform((v) => {
|
|
1287
|
+
return remap$(v, {
|
|
1288
|
+
modelDbId: "model_db_id",
|
|
1289
|
+
integrationId: "integration_id",
|
|
1290
|
+
});
|
|
1307
1291
|
});
|
|
1308
|
-
});
|
|
1309
1292
|
|
|
1310
|
-
export function
|
|
1311
|
-
|
|
1312
|
-
): string {
|
|
1313
|
-
return JSON.stringify(
|
|
1314
|
-
AgenticRagConfig2$outboundSchema.parse(agenticRagConfig2),
|
|
1315
|
-
);
|
|
1293
|
+
export function twoToJSON(two: Two): string {
|
|
1294
|
+
return JSON.stringify(Two$outboundSchema.parse(two));
|
|
1316
1295
|
}
|
|
1317
1296
|
|
|
1318
1297
|
/** @internal */
|
|
@@ -1350,7 +1329,7 @@ export function agenticRagConfig1ToJSON(
|
|
|
1350
1329
|
|
|
1351
1330
|
/** @internal */
|
|
1352
1331
|
export type SearchKnowledgeRequestAgenticRagConfig$Outbound =
|
|
1353
|
-
|
|
|
1332
|
+
| Two$Outbound
|
|
1354
1333
|
| AgenticRagConfig1$Outbound;
|
|
1355
1334
|
|
|
1356
1335
|
/** @internal */
|
|
@@ -1359,7 +1338,7 @@ export const SearchKnowledgeRequestAgenticRagConfig$outboundSchema: z.ZodType<
|
|
|
1359
1338
|
z.ZodTypeDef,
|
|
1360
1339
|
SearchKnowledgeRequestAgenticRagConfig
|
|
1361
1340
|
> = z.union([
|
|
1362
|
-
z.lazy(() =>
|
|
1341
|
+
z.lazy(() => Two$outboundSchema),
|
|
1363
1342
|
z.lazy(() => AgenticRagConfig1$outboundSchema),
|
|
1364
1343
|
]);
|
|
1365
1344
|
|
|
@@ -1395,7 +1374,7 @@ export type SearchKnowledgeRequest$Outbound = {
|
|
|
1395
1374
|
search_options?: SearchOptions$Outbound | undefined;
|
|
1396
1375
|
rerank_config?: SearchRerankConfig$Outbound | undefined;
|
|
1397
1376
|
agentic_rag_config?:
|
|
1398
|
-
|
|
|
1377
|
+
| Two$Outbound
|
|
1399
1378
|
| AgenticRagConfig1$Outbound
|
|
1400
1379
|
| null
|
|
1401
1380
|
| undefined;
|
|
@@ -1431,7 +1410,7 @@ export const SearchKnowledgeRequest$outboundSchema: z.ZodType<
|
|
|
1431
1410
|
rerankConfig: SearchRerankConfig$outboundSchema.optional(),
|
|
1432
1411
|
agenticRagConfig: z.nullable(
|
|
1433
1412
|
z.union([
|
|
1434
|
-
z.lazy(() =>
|
|
1413
|
+
z.lazy(() => Two$outboundSchema),
|
|
1435
1414
|
z.lazy(() => AgenticRagConfig1$outboundSchema),
|
|
1436
1415
|
]),
|
|
1437
1416
|
).optional(),
|
|
@@ -12,27 +12,25 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
12
12
|
/**
|
|
13
13
|
* The type of the content part.
|
|
14
14
|
*/
|
|
15
|
-
export const
|
|
15
|
+
export const Type = {
|
|
16
16
|
Text: "text",
|
|
17
17
|
} as const;
|
|
18
18
|
/**
|
|
19
19
|
* The type of the content part.
|
|
20
20
|
*/
|
|
21
|
-
export type
|
|
22
|
-
typeof TextContentPartSchemaType
|
|
23
|
-
>;
|
|
21
|
+
export type Type = ClosedEnum<typeof Type>;
|
|
24
22
|
|
|
25
23
|
/**
|
|
26
24
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
27
25
|
*/
|
|
28
|
-
export const
|
|
26
|
+
export const TextContentPartSchemaType = {
|
|
29
27
|
Ephemeral: "ephemeral",
|
|
30
28
|
} as const;
|
|
31
29
|
/**
|
|
32
30
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
33
31
|
*/
|
|
34
|
-
export type
|
|
35
|
-
typeof
|
|
32
|
+
export type TextContentPartSchemaType = ClosedEnum<
|
|
33
|
+
typeof TextContentPartSchemaType
|
|
36
34
|
>;
|
|
37
35
|
|
|
38
36
|
/**
|
|
@@ -65,7 +63,7 @@ export type CacheControl = {
|
|
|
65
63
|
/**
|
|
66
64
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
67
65
|
*/
|
|
68
|
-
type:
|
|
66
|
+
type: TextContentPartSchemaType;
|
|
69
67
|
/**
|
|
70
68
|
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
71
69
|
*
|
|
@@ -86,7 +84,7 @@ export type TextContentPartSchema = {
|
|
|
86
84
|
/**
|
|
87
85
|
* The type of the content part.
|
|
88
86
|
*/
|
|
89
|
-
type:
|
|
87
|
+
type: Type;
|
|
90
88
|
/**
|
|
91
89
|
* The text content.
|
|
92
90
|
*/
|
|
@@ -94,6 +92,14 @@ export type TextContentPartSchema = {
|
|
|
94
92
|
cacheControl?: CacheControl | undefined;
|
|
95
93
|
};
|
|
96
94
|
|
|
95
|
+
/** @internal */
|
|
96
|
+
export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
|
|
97
|
+
Type,
|
|
98
|
+
);
|
|
99
|
+
/** @internal */
|
|
100
|
+
export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
|
|
101
|
+
Type$inboundSchema;
|
|
102
|
+
|
|
97
103
|
/** @internal */
|
|
98
104
|
export const TextContentPartSchemaType$inboundSchema: z.ZodNativeEnum<
|
|
99
105
|
typeof TextContentPartSchemaType
|
|
@@ -103,16 +109,6 @@ export const TextContentPartSchemaType$outboundSchema: z.ZodNativeEnum<
|
|
|
103
109
|
typeof TextContentPartSchemaType
|
|
104
110
|
> = TextContentPartSchemaType$inboundSchema;
|
|
105
111
|
|
|
106
|
-
/** @internal */
|
|
107
|
-
export const TextContentPartSchemaCacheControlType$inboundSchema:
|
|
108
|
-
z.ZodNativeEnum<typeof TextContentPartSchemaCacheControlType> = z.nativeEnum(
|
|
109
|
-
TextContentPartSchemaCacheControlType,
|
|
110
|
-
);
|
|
111
|
-
/** @internal */
|
|
112
|
-
export const TextContentPartSchemaCacheControlType$outboundSchema:
|
|
113
|
-
z.ZodNativeEnum<typeof TextContentPartSchemaCacheControlType> =
|
|
114
|
-
TextContentPartSchemaCacheControlType$inboundSchema;
|
|
115
|
-
|
|
116
112
|
/** @internal */
|
|
117
113
|
export const Ttl$inboundSchema: z.ZodNativeEnum<typeof Ttl> = z.nativeEnum(Ttl);
|
|
118
114
|
/** @internal */
|
|
@@ -125,7 +121,7 @@ export const CacheControl$inboundSchema: z.ZodType<
|
|
|
125
121
|
z.ZodTypeDef,
|
|
126
122
|
unknown
|
|
127
123
|
> = z.object({
|
|
128
|
-
type:
|
|
124
|
+
type: TextContentPartSchemaType$inboundSchema,
|
|
129
125
|
ttl: Ttl$inboundSchema.default("5m"),
|
|
130
126
|
});
|
|
131
127
|
/** @internal */
|
|
@@ -140,7 +136,7 @@ export const CacheControl$outboundSchema: z.ZodType<
|
|
|
140
136
|
z.ZodTypeDef,
|
|
141
137
|
CacheControl
|
|
142
138
|
> = z.object({
|
|
143
|
-
type:
|
|
139
|
+
type: TextContentPartSchemaType$outboundSchema,
|
|
144
140
|
ttl: Ttl$outboundSchema.default("5m"),
|
|
145
141
|
});
|
|
146
142
|
|
|
@@ -163,7 +159,7 @@ export const TextContentPartSchema$inboundSchema: z.ZodType<
|
|
|
163
159
|
z.ZodTypeDef,
|
|
164
160
|
unknown
|
|
165
161
|
> = z.object({
|
|
166
|
-
type:
|
|
162
|
+
type: Type$inboundSchema,
|
|
167
163
|
text: z.string(),
|
|
168
164
|
cache_control: z.lazy(() => CacheControl$inboundSchema).optional(),
|
|
169
165
|
}).transform((v) => {
|
|
@@ -184,7 +180,7 @@ export const TextContentPartSchema$outboundSchema: z.ZodType<
|
|
|
184
180
|
z.ZodTypeDef,
|
|
185
181
|
TextContentPartSchema
|
|
186
182
|
> = z.object({
|
|
187
|
-
type:
|
|
183
|
+
type: Type$outboundSchema,
|
|
188
184
|
text: z.string(),
|
|
189
185
|
cacheControl: z.lazy(() => CacheControl$outboundSchema).optional(),
|
|
190
186
|
}).transform((v) => {
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type UpdateAnnotationQueueRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* Optional. New display name.
|
|
11
|
+
*/
|
|
12
|
+
displayName?: string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Optional. New description.
|
|
15
|
+
*/
|
|
16
|
+
description?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Optional. New project. Setting this clears the legacy `human_review_ids` selection.
|
|
19
|
+
*/
|
|
20
|
+
projectId?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Legacy: update manually selected human review IDs. Only applied when `project_id` is not set.
|
|
23
|
+
*/
|
|
24
|
+
humanReviewIds?: Array<string> | undefined;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export type UpdateAnnotationQueueRequest$Outbound = {
|
|
29
|
+
display_name?: string | undefined;
|
|
30
|
+
description?: string | undefined;
|
|
31
|
+
project_id?: string | undefined;
|
|
32
|
+
human_review_ids?: Array<string> | undefined;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const UpdateAnnotationQueueRequest$outboundSchema: z.ZodType<
|
|
37
|
+
UpdateAnnotationQueueRequest$Outbound,
|
|
38
|
+
z.ZodTypeDef,
|
|
39
|
+
UpdateAnnotationQueueRequest
|
|
40
|
+
> = z.object({
|
|
41
|
+
displayName: z.string().optional(),
|
|
42
|
+
description: z.string().optional(),
|
|
43
|
+
projectId: z.string().optional(),
|
|
44
|
+
humanReviewIds: z.array(z.string()).optional(),
|
|
45
|
+
}).transform((v) => {
|
|
46
|
+
return remap$(v, {
|
|
47
|
+
displayName: "display_name",
|
|
48
|
+
projectId: "project_id",
|
|
49
|
+
humanReviewIds: "human_review_ids",
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export function updateAnnotationQueueRequestToJSON(
|
|
54
|
+
updateAnnotationQueueRequest: UpdateAnnotationQueueRequest,
|
|
55
|
+
): string {
|
|
56
|
+
return JSON.stringify(
|
|
57
|
+
UpdateAnnotationQueueRequest$outboundSchema.parse(
|
|
58
|
+
updateAnnotationQueueRequest,
|
|
59
|
+
),
|
|
60
|
+
);
|
|
61
|
+
}
|
|
@@ -9,6 +9,11 @@ import {
|
|
|
9
9
|
PiiRedaction$Outbound,
|
|
10
10
|
PiiRedaction$outboundSchema,
|
|
11
11
|
} from "./piiredaction.js";
|
|
12
|
+
import {
|
|
13
|
+
PolicyProfileIdList,
|
|
14
|
+
PolicyProfileIdList$Outbound,
|
|
15
|
+
PolicyProfileIdList$outboundSchema,
|
|
16
|
+
} from "./policyprofileidlist.js";
|
|
12
17
|
|
|
13
18
|
/**
|
|
14
19
|
* UpdateWorkspaceSettingsRequest is a partial update: every field is optional
|
|
@@ -41,6 +46,7 @@ export type UpdateWorkspaceSettingsRequest = {
|
|
|
41
46
|
* replaces the stored pii_redaction object.
|
|
42
47
|
*/
|
|
43
48
|
piiRedaction?: PiiRedaction | undefined;
|
|
49
|
+
defaultPolicyProfileIds?: PolicyProfileIdList | undefined;
|
|
44
50
|
};
|
|
45
51
|
|
|
46
52
|
/** @internal */
|
|
@@ -48,6 +54,7 @@ export type UpdateWorkspaceSettingsRequest$Outbound = {
|
|
|
48
54
|
display_name?: string | undefined;
|
|
49
55
|
enforce_enabled_models?: boolean | undefined;
|
|
50
56
|
pii_redaction?: PiiRedaction$Outbound | undefined;
|
|
57
|
+
default_policy_profile_ids?: PolicyProfileIdList$Outbound | undefined;
|
|
51
58
|
};
|
|
52
59
|
|
|
53
60
|
/** @internal */
|
|
@@ -59,11 +66,13 @@ export const UpdateWorkspaceSettingsRequest$outboundSchema: z.ZodType<
|
|
|
59
66
|
displayName: z.string().optional(),
|
|
60
67
|
enforceEnabledModels: z.boolean().optional(),
|
|
61
68
|
piiRedaction: PiiRedaction$outboundSchema.optional(),
|
|
69
|
+
defaultPolicyProfileIds: PolicyProfileIdList$outboundSchema.optional(),
|
|
62
70
|
}).transform((v) => {
|
|
63
71
|
return remap$(v, {
|
|
64
72
|
displayName: "display_name",
|
|
65
73
|
enforceEnabledModels: "enforce_enabled_models",
|
|
66
74
|
piiRedaction: "pii_redaction",
|
|
75
|
+
defaultPolicyProfileIds: "default_policy_profile_ids",
|
|
67
76
|
});
|
|
68
77
|
});
|
|
69
78
|
|
|
@@ -35,6 +35,7 @@ export type WorkspaceSettings = {
|
|
|
35
35
|
* workspace has never configured it.
|
|
36
36
|
*/
|
|
37
37
|
piiRedaction?: PiiRedaction | undefined;
|
|
38
|
+
defaultPolicyProfileIds?: Array<string> | undefined;
|
|
38
39
|
};
|
|
39
40
|
|
|
40
41
|
/** @internal */
|
|
@@ -47,11 +48,13 @@ export const WorkspaceSettings$inboundSchema: z.ZodType<
|
|
|
47
48
|
display_name: z.string(),
|
|
48
49
|
enforce_enabled_models: z.boolean(),
|
|
49
50
|
pii_redaction: PiiRedaction$inboundSchema.optional(),
|
|
51
|
+
default_policy_profile_ids: z.array(z.string()).optional(),
|
|
50
52
|
}).transform((v) => {
|
|
51
53
|
return remap$(v, {
|
|
52
54
|
"display_name": "displayName",
|
|
53
55
|
"enforce_enabled_models": "enforceEnabledModels",
|
|
54
56
|
"pii_redaction": "piiRedaction",
|
|
57
|
+
"default_policy_profile_ids": "defaultPolicyProfileIds",
|
|
55
58
|
});
|
|
56
59
|
});
|
|
57
60
|
|
|
@@ -4,18 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
export * from "./apierror.js";
|
|
6
6
|
export * from "./createagentschedule.js";
|
|
7
|
-
export * from "./createeval.js";
|
|
8
7
|
export * from "./createmoderation.js";
|
|
9
8
|
export * from "./createtranscription.js";
|
|
10
9
|
export * from "./createtranslation.js";
|
|
11
10
|
export * from "./deleteagent.js";
|
|
12
11
|
export * from "./deleteagentschedule.js";
|
|
13
|
-
export * from "./deleteeval.js";
|
|
14
12
|
export * from "./deleteprompt.js";
|
|
15
|
-
export * from "./geteval.js";
|
|
16
|
-
export * from "./getevals.js";
|
|
17
13
|
export * from "./getpromptversion.js";
|
|
18
|
-
export * from "./getv2evaluatorsidversions.js";
|
|
19
14
|
export * from "./getv2toolstoolidversions.js";
|
|
20
15
|
export * from "./getv2toolstoolidversionsversionid.js";
|
|
21
16
|
export * from "./honoapierror.js";
|
|
@@ -34,6 +29,5 @@ export * from "./streamrunagent.js";
|
|
|
34
29
|
export * from "./triggeragentschedule.js";
|
|
35
30
|
export * from "./updateagent.js";
|
|
36
31
|
export * from "./updateagentschedule.js";
|
|
37
|
-
export * from "./updateeval.js";
|
|
38
32
|
export * from "./updateprompt.js";
|
|
39
33
|
export * from "./updatetool.js";
|
|
@@ -4,110 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
export type Items = {
|
|
13
|
-
spanId: string;
|
|
14
|
-
traceId: string;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export type AddAnnotationQueueItemsRequestBody = {
|
|
18
|
-
/**
|
|
19
|
-
* The spans to add to the annotation queue
|
|
20
|
-
*/
|
|
21
|
-
items: Array<Items>;
|
|
22
|
-
};
|
|
7
|
+
import * as components from "../components/index.js";
|
|
23
8
|
|
|
24
9
|
export type AddAnnotationQueueItemsRequest = {
|
|
25
10
|
annotationQueueId: string;
|
|
26
|
-
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export const AddAnnotationQueueItemsType = {
|
|
30
|
-
Span: "span",
|
|
31
|
-
} as const;
|
|
32
|
-
export type AddAnnotationQueueItemsType = ClosedEnum<
|
|
33
|
-
typeof AddAnnotationQueueItemsType
|
|
34
|
-
>;
|
|
35
|
-
|
|
36
|
-
export type AddAnnotationQueueItemsResponseBody = {
|
|
37
|
-
id: string;
|
|
38
|
-
/**
|
|
39
|
-
* The unique identifier of the annotation queue
|
|
40
|
-
*/
|
|
41
|
-
annotationQueueId: string;
|
|
42
|
-
/**
|
|
43
|
-
* The unique identifier of the workspace it belongs to
|
|
44
|
-
*/
|
|
45
|
-
workspaceId: string;
|
|
46
|
-
/**
|
|
47
|
-
* The unique identifiers of the human reviews that have been used to annotate the item
|
|
48
|
-
*/
|
|
49
|
-
usedHumanReviewIds?: Array<string> | undefined;
|
|
50
|
-
spanId: string;
|
|
51
|
-
/**
|
|
52
|
-
* The trace identifier this span belongs to
|
|
53
|
-
*/
|
|
54
|
-
traceId?: string | undefined;
|
|
55
|
-
type: AddAnnotationQueueItemsType;
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
/** @internal */
|
|
59
|
-
export type Items$Outbound = {
|
|
60
|
-
span_id: string;
|
|
61
|
-
trace_id: string;
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
/** @internal */
|
|
65
|
-
export const Items$outboundSchema: z.ZodType<
|
|
66
|
-
Items$Outbound,
|
|
67
|
-
z.ZodTypeDef,
|
|
68
|
-
Items
|
|
69
|
-
> = z.object({
|
|
70
|
-
spanId: z.string(),
|
|
71
|
-
traceId: z.string(),
|
|
72
|
-
}).transform((v) => {
|
|
73
|
-
return remap$(v, {
|
|
74
|
-
spanId: "span_id",
|
|
75
|
-
traceId: "trace_id",
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
export function itemsToJSON(items: Items): string {
|
|
80
|
-
return JSON.stringify(Items$outboundSchema.parse(items));
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/** @internal */
|
|
84
|
-
export type AddAnnotationQueueItemsRequestBody$Outbound = {
|
|
85
|
-
items: Array<Items$Outbound>;
|
|
11
|
+
addAnnotationQueueItemsRequest: components.AddAnnotationQueueItemsRequest;
|
|
86
12
|
};
|
|
87
13
|
|
|
88
|
-
/** @internal */
|
|
89
|
-
export const AddAnnotationQueueItemsRequestBody$outboundSchema: z.ZodType<
|
|
90
|
-
AddAnnotationQueueItemsRequestBody$Outbound,
|
|
91
|
-
z.ZodTypeDef,
|
|
92
|
-
AddAnnotationQueueItemsRequestBody
|
|
93
|
-
> = z.object({
|
|
94
|
-
items: z.array(z.lazy(() => Items$outboundSchema)),
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
export function addAnnotationQueueItemsRequestBodyToJSON(
|
|
98
|
-
addAnnotationQueueItemsRequestBody: AddAnnotationQueueItemsRequestBody,
|
|
99
|
-
): string {
|
|
100
|
-
return JSON.stringify(
|
|
101
|
-
AddAnnotationQueueItemsRequestBody$outboundSchema.parse(
|
|
102
|
-
addAnnotationQueueItemsRequestBody,
|
|
103
|
-
),
|
|
104
|
-
);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
14
|
/** @internal */
|
|
108
15
|
export type AddAnnotationQueueItemsRequest$Outbound = {
|
|
109
16
|
annotation_queue_id: string;
|
|
110
|
-
|
|
17
|
+
AddAnnotationQueueItemsRequest:
|
|
18
|
+
components.AddAnnotationQueueItemsRequest$Outbound;
|
|
111
19
|
};
|
|
112
20
|
|
|
113
21
|
/** @internal */
|
|
@@ -117,12 +25,12 @@ export const AddAnnotationQueueItemsRequest$outboundSchema: z.ZodType<
|
|
|
117
25
|
AddAnnotationQueueItemsRequest
|
|
118
26
|
> = z.object({
|
|
119
27
|
annotationQueueId: z.string(),
|
|
120
|
-
|
|
121
|
-
.
|
|
28
|
+
addAnnotationQueueItemsRequest:
|
|
29
|
+
components.AddAnnotationQueueItemsRequest$outboundSchema,
|
|
122
30
|
}).transform((v) => {
|
|
123
31
|
return remap$(v, {
|
|
124
32
|
annotationQueueId: "annotation_queue_id",
|
|
125
|
-
|
|
33
|
+
addAnnotationQueueItemsRequest: "AddAnnotationQueueItemsRequest",
|
|
126
34
|
});
|
|
127
35
|
});
|
|
128
36
|
|
|
@@ -135,43 +43,3 @@ export function addAnnotationQueueItemsRequestToJSON(
|
|
|
135
43
|
),
|
|
136
44
|
);
|
|
137
45
|
}
|
|
138
|
-
|
|
139
|
-
/** @internal */
|
|
140
|
-
export const AddAnnotationQueueItemsType$inboundSchema: z.ZodNativeEnum<
|
|
141
|
-
typeof AddAnnotationQueueItemsType
|
|
142
|
-
> = z.nativeEnum(AddAnnotationQueueItemsType);
|
|
143
|
-
|
|
144
|
-
/** @internal */
|
|
145
|
-
export const AddAnnotationQueueItemsResponseBody$inboundSchema: z.ZodType<
|
|
146
|
-
AddAnnotationQueueItemsResponseBody,
|
|
147
|
-
z.ZodTypeDef,
|
|
148
|
-
unknown
|
|
149
|
-
> = z.object({
|
|
150
|
-
_id: z.string(),
|
|
151
|
-
annotation_queue_id: z.string(),
|
|
152
|
-
workspace_id: z.string(),
|
|
153
|
-
used_human_review_ids: z.array(z.string()).optional(),
|
|
154
|
-
span_id: z.string(),
|
|
155
|
-
trace_id: z.string().optional(),
|
|
156
|
-
type: AddAnnotationQueueItemsType$inboundSchema,
|
|
157
|
-
}).transform((v) => {
|
|
158
|
-
return remap$(v, {
|
|
159
|
-
"_id": "id",
|
|
160
|
-
"annotation_queue_id": "annotationQueueId",
|
|
161
|
-
"workspace_id": "workspaceId",
|
|
162
|
-
"used_human_review_ids": "usedHumanReviewIds",
|
|
163
|
-
"span_id": "spanId",
|
|
164
|
-
"trace_id": "traceId",
|
|
165
|
-
});
|
|
166
|
-
});
|
|
167
|
-
|
|
168
|
-
export function addAnnotationQueueItemsResponseBodyFromJSON(
|
|
169
|
-
jsonString: string,
|
|
170
|
-
): SafeParseResult<AddAnnotationQueueItemsResponseBody, SDKValidationError> {
|
|
171
|
-
return safeParse(
|
|
172
|
-
jsonString,
|
|
173
|
-
(x) =>
|
|
174
|
-
AddAnnotationQueueItemsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
175
|
-
`Failed to parse 'AddAnnotationQueueItemsResponseBody' from JSON`,
|
|
176
|
-
);
|
|
177
|
-
}
|