@orq-ai/node 4.4.12 → 4.4.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/partdoneevent.js +1 -1
- package/models/components/reasoningpart.js +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/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/updatetool.js +7 -7
- package/package.json +1 -1
- package/packages/orq-rc/src/funcs/agentsList.ts +5 -0
- package/packages/orq-rc/src/funcs/agentsPostV2AgentsA2a.ts +178 -0
- package/packages/orq-rc/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +187 -0
- package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +182 -0
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +2 -2
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/models/components/createagentresponse.ts +6 -0
- package/packages/orq-rc/src/models/components/extendedmessage.ts +146 -0
- package/packages/orq-rc/src/models/components/getagentresponse.ts +348 -0
- package/packages/orq-rc/src/models/components/index.ts +3 -0
- package/packages/orq-rc/src/models/components/partdoneevent.ts +1 -1
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/responsedoneevent.ts +6 -0
- package/packages/orq-rc/src/models/components/responsestartedevent.ts +6 -0
- package/packages/orq-rc/src/models/components/telemetry.ts +48 -0
- package/packages/orq-rc/src/models/errors/index.ts +2 -0
- package/packages/orq-rc/src/models/errors/postv2agentsa2a.ts +96 -0
- package/packages/orq-rc/src/models/errors/postv2agentskeycardrefresh.ts +97 -0
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +755 -1212
- package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +35 -1
- package/packages/orq-rc/src/models/operations/createannotation.ts +5 -1
- package/packages/orq-rc/src/models/operations/createcontact.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
- package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/createidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/createknowledge.ts +19 -17
- package/packages/orq-rc/src/models/operations/createprompt.ts +55 -66
- package/packages/orq-rc/src/models/operations/createtool.ts +103 -91
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +38 -0
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +38 -0
- package/packages/orq-rc/src/models/operations/fileget.ts +1 -1
- package/packages/orq-rc/src/models/operations/filelist.ts +1 -1
- package/packages/orq-rc/src/models/operations/fileupload.ts +1 -1
- package/packages/orq-rc/src/models/operations/getagentresponse.ts +46 -0
- package/packages/orq-rc/src/models/operations/getalltools.ts +93 -87
- package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
- package/packages/orq-rc/src/models/operations/index.ts +3 -0
- package/packages/orq-rc/src/models/operations/invokeagent.ts +45 -1
- package/packages/orq-rc/src/models/operations/listagents.ts +751 -787
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
- package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
- package/packages/orq-rc/src/models/operations/listidentities.ts +1 -1
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +72 -64
- package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +252 -0
- package/packages/orq-rc/src/models/operations/postv2agentskeycardrefresh.ts +100 -0
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +962 -857
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrieveidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
- package/packages/orq-rc/src/models/operations/runagent.ts +69 -493
- package/packages/orq-rc/src/models/operations/streamagent.ts +40 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +36 -493
- package/packages/orq-rc/src/models/operations/updateagent.ts +966 -1313
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/updateidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
- package/packages/orq-rc/src/sdk/agents.ts +39 -1
- package/packages/orq-rc/src/sdk/responses.ts +19 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- 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/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/updatetool.ts +7 -7
|
@@ -1270,7 +1270,7 @@ export const ListDatasetDatapointsEvaluations3$inboundSchema: z.ZodType<
|
|
|
1270
1270
|
),
|
|
1271
1271
|
reviewed_by_id: z.string(),
|
|
1272
1272
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1273
|
-
"2026-03-
|
|
1273
|
+
"2026-03-05T14:31:21.894Z",
|
|
1274
1274
|
).transform(v => new Date(v)),
|
|
1275
1275
|
type: z.literal("string_array"),
|
|
1276
1276
|
values: z.array(z.string()),
|
|
@@ -1320,7 +1320,7 @@ export const ListDatasetDatapointsEvaluations2$inboundSchema: z.ZodType<
|
|
|
1320
1320
|
source: ListDatasetDatapointsEvaluationsSource$inboundSchema.default("orq"),
|
|
1321
1321
|
reviewed_by_id: z.string(),
|
|
1322
1322
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1323
|
-
"2026-03-
|
|
1323
|
+
"2026-03-05T14:31:21.893Z",
|
|
1324
1324
|
).transform(v => new Date(v)),
|
|
1325
1325
|
type: z.literal("number"),
|
|
1326
1326
|
value: z.number(),
|
|
@@ -1369,7 +1369,7 @@ export const ListDatasetDatapointsEvaluations1$inboundSchema: z.ZodType<
|
|
|
1369
1369
|
.default("orq"),
|
|
1370
1370
|
reviewed_by_id: z.string(),
|
|
1371
1371
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1372
|
-
"2026-03-
|
|
1372
|
+
"2026-03-05T14:31:21.892Z",
|
|
1373
1373
|
).transform(v => new Date(v)),
|
|
1374
1374
|
type: z.literal("string"),
|
|
1375
1375
|
value: z.string(),
|
|
@@ -1448,7 +1448,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
1448
1448
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1449
1449
|
.optional(),
|
|
1450
1450
|
updated: z.string().datetime({ offset: true }).default(
|
|
1451
|
-
"2026-03-
|
|
1451
|
+
"2026-03-05T14:31:06.324Z",
|
|
1452
1452
|
).transform(v => new Date(v)),
|
|
1453
1453
|
}).transform((v) => {
|
|
1454
1454
|
return remap$(v, {
|
|
@@ -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-05T14:31:06.324Z",
|
|
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("01KJZ6J3E0GKAJ2PQD1ZCXG8E4"),
|
|
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-05T14:31:06.324Z",
|
|
231
231
|
).transform(v => new Date(v)),
|
|
232
232
|
metrics: z.lazy(() => ListIdentitiesMetrics$inboundSchema),
|
|
233
233
|
}).transform((v) => {
|
|
@@ -99,7 +99,7 @@ export type DataExternalConfig = {
|
|
|
99
99
|
apiUrl: string;
|
|
100
100
|
};
|
|
101
101
|
|
|
102
|
-
export type
|
|
102
|
+
export type ListKnowledgeBasesData2 = {
|
|
103
103
|
/**
|
|
104
104
|
* The unique identifier of the knowledge base.
|
|
105
105
|
*/
|
|
@@ -218,7 +218,7 @@ export type ListKnowledgeBasesDataRetrievalSettings = {
|
|
|
218
218
|
agenticRagConfig?: ListKnowledgeBasesDataAgenticRagConfig | null | undefined;
|
|
219
219
|
};
|
|
220
220
|
|
|
221
|
-
export type
|
|
221
|
+
export type ListKnowledgeBasesData1 = {
|
|
222
222
|
/**
|
|
223
223
|
* The unique identifier of the knowledge base.
|
|
224
224
|
*/
|
|
@@ -266,14 +266,16 @@ export type Data1 = {
|
|
|
266
266
|
model: string;
|
|
267
267
|
};
|
|
268
268
|
|
|
269
|
-
export type ListKnowledgeBasesData =
|
|
269
|
+
export type ListKnowledgeBasesData =
|
|
270
|
+
| ListKnowledgeBasesData1
|
|
271
|
+
| ListKnowledgeBasesData2;
|
|
270
272
|
|
|
271
273
|
/**
|
|
272
274
|
* Knowledge bases retrieved
|
|
273
275
|
*/
|
|
274
276
|
export type ListKnowledgeBasesResponseBody = {
|
|
275
277
|
object: ListKnowledgeBasesObject;
|
|
276
|
-
data: Array<
|
|
278
|
+
data: Array<ListKnowledgeBasesData1 | ListKnowledgeBasesData2>;
|
|
277
279
|
hasMore: boolean;
|
|
278
280
|
};
|
|
279
281
|
|
|
@@ -420,39 +422,42 @@ export function dataExternalConfigFromJSON(
|
|
|
420
422
|
}
|
|
421
423
|
|
|
422
424
|
/** @internal */
|
|
423
|
-
export const
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
425
|
+
export const ListKnowledgeBasesData2$inboundSchema: z.ZodType<
|
|
426
|
+
ListKnowledgeBasesData2,
|
|
427
|
+
z.ZodTypeDef,
|
|
428
|
+
unknown
|
|
429
|
+
> = z.object({
|
|
430
|
+
_id: z.string(),
|
|
431
|
+
created: z.string(),
|
|
432
|
+
description: z.string().optional(),
|
|
433
|
+
key: z.string(),
|
|
434
|
+
domain_id: z.string(),
|
|
435
|
+
path: z.string().optional(),
|
|
436
|
+
created_by_id: z.nullable(z.string()).optional(),
|
|
437
|
+
updated_by_id: z.nullable(z.string()).optional(),
|
|
438
|
+
updated: z.string(),
|
|
439
|
+
type: ListKnowledgeBasesDataKnowledgeType$inboundSchema.default("external"),
|
|
440
|
+
retrieval_settings: z.lazy(() => DataRetrievalSettings$inboundSchema)
|
|
441
|
+
.optional(),
|
|
442
|
+
external_config: z.lazy(() => DataExternalConfig$inboundSchema),
|
|
443
|
+
}).transform((v) => {
|
|
444
|
+
return remap$(v, {
|
|
445
|
+
"_id": "id",
|
|
446
|
+
"domain_id": "domainId",
|
|
447
|
+
"created_by_id": "createdById",
|
|
448
|
+
"updated_by_id": "updatedById",
|
|
449
|
+
"retrieval_settings": "retrievalSettings",
|
|
450
|
+
"external_config": "externalConfig",
|
|
447
451
|
});
|
|
452
|
+
});
|
|
448
453
|
|
|
449
|
-
export function
|
|
454
|
+
export function listKnowledgeBasesData2FromJSON(
|
|
450
455
|
jsonString: string,
|
|
451
|
-
): SafeParseResult<
|
|
456
|
+
): SafeParseResult<ListKnowledgeBasesData2, SDKValidationError> {
|
|
452
457
|
return safeParse(
|
|
453
458
|
jsonString,
|
|
454
|
-
(x) =>
|
|
455
|
-
`Failed to parse '
|
|
459
|
+
(x) => ListKnowledgeBasesData2$inboundSchema.parse(JSON.parse(x)),
|
|
460
|
+
`Failed to parse 'ListKnowledgeBasesData2' from JSON`,
|
|
456
461
|
);
|
|
457
462
|
}
|
|
458
463
|
|
|
@@ -555,39 +560,42 @@ export function listKnowledgeBasesDataRetrievalSettingsFromJSON(
|
|
|
555
560
|
}
|
|
556
561
|
|
|
557
562
|
/** @internal */
|
|
558
|
-
export const
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
563
|
+
export const ListKnowledgeBasesData1$inboundSchema: z.ZodType<
|
|
564
|
+
ListKnowledgeBasesData1,
|
|
565
|
+
z.ZodTypeDef,
|
|
566
|
+
unknown
|
|
567
|
+
> = z.object({
|
|
568
|
+
_id: z.string(),
|
|
569
|
+
created: z.string(),
|
|
570
|
+
description: z.string().optional(),
|
|
571
|
+
key: z.string(),
|
|
572
|
+
domain_id: z.string(),
|
|
573
|
+
path: z.string().optional(),
|
|
574
|
+
created_by_id: z.nullable(z.string()).optional(),
|
|
575
|
+
updated_by_id: z.nullable(z.string()).optional(),
|
|
576
|
+
updated: z.string(),
|
|
577
|
+
type: ListKnowledgeBasesDataType$inboundSchema.default("internal"),
|
|
578
|
+
retrieval_settings: z.lazy(() =>
|
|
579
|
+
ListKnowledgeBasesDataRetrievalSettings$inboundSchema
|
|
580
|
+
).optional(),
|
|
581
|
+
model: z.string(),
|
|
582
|
+
}).transform((v) => {
|
|
583
|
+
return remap$(v, {
|
|
584
|
+
"_id": "id",
|
|
585
|
+
"domain_id": "domainId",
|
|
586
|
+
"created_by_id": "createdById",
|
|
587
|
+
"updated_by_id": "updatedById",
|
|
588
|
+
"retrieval_settings": "retrievalSettings",
|
|
582
589
|
});
|
|
590
|
+
});
|
|
583
591
|
|
|
584
|
-
export function
|
|
592
|
+
export function listKnowledgeBasesData1FromJSON(
|
|
585
593
|
jsonString: string,
|
|
586
|
-
): SafeParseResult<
|
|
594
|
+
): SafeParseResult<ListKnowledgeBasesData1, SDKValidationError> {
|
|
587
595
|
return safeParse(
|
|
588
596
|
jsonString,
|
|
589
|
-
(x) =>
|
|
590
|
-
`Failed to parse '
|
|
597
|
+
(x) => ListKnowledgeBasesData1$inboundSchema.parse(JSON.parse(x)),
|
|
598
|
+
`Failed to parse 'ListKnowledgeBasesData1' from JSON`,
|
|
591
599
|
);
|
|
592
600
|
}
|
|
593
601
|
|
|
@@ -597,8 +605,8 @@ export const ListKnowledgeBasesData$inboundSchema: z.ZodType<
|
|
|
597
605
|
z.ZodTypeDef,
|
|
598
606
|
unknown
|
|
599
607
|
> = z.union([
|
|
600
|
-
z.lazy(() =>
|
|
601
|
-
z.lazy(() =>
|
|
608
|
+
z.lazy(() => ListKnowledgeBasesData1$inboundSchema),
|
|
609
|
+
z.lazy(() => ListKnowledgeBasesData2$inboundSchema),
|
|
602
610
|
]);
|
|
603
611
|
|
|
604
612
|
export function listKnowledgeBasesDataFromJSON(
|
|
@@ -620,8 +628,8 @@ export const ListKnowledgeBasesResponseBody$inboundSchema: z.ZodType<
|
|
|
620
628
|
object: ListKnowledgeBasesObject$inboundSchema,
|
|
621
629
|
data: z.array(
|
|
622
630
|
z.union([
|
|
623
|
-
z.lazy(() =>
|
|
624
|
-
z.lazy(() =>
|
|
631
|
+
z.lazy(() => ListKnowledgeBasesData1$inboundSchema),
|
|
632
|
+
z.lazy(() => ListKnowledgeBasesData2$inboundSchema),
|
|
625
633
|
]),
|
|
626
634
|
),
|
|
627
635
|
has_more: z.boolean(),
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { 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 Headers = {
|
|
13
|
+
/**
|
|
14
|
+
* Header value. **Update behavior**: Provide empty string ("") to preserve existing encrypted value without re-entering credentials. Provide new value to rotate. Omit header entirely to remove.
|
|
15
|
+
*/
|
|
16
|
+
value: string;
|
|
17
|
+
encrypted?: boolean | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export type PostV2AgentsA2aRequestBody = {
|
|
21
|
+
/**
|
|
22
|
+
* Unique identifier for the agent
|
|
23
|
+
*/
|
|
24
|
+
key: string;
|
|
25
|
+
/**
|
|
26
|
+
* Display name for the agent
|
|
27
|
+
*/
|
|
28
|
+
displayName: string;
|
|
29
|
+
/**
|
|
30
|
+
* Description of the agent
|
|
31
|
+
*/
|
|
32
|
+
description: string;
|
|
33
|
+
/**
|
|
34
|
+
* Project path for organizing the agent
|
|
35
|
+
*/
|
|
36
|
+
path: string;
|
|
37
|
+
/**
|
|
38
|
+
* The A2A agent endpoint URL
|
|
39
|
+
*/
|
|
40
|
+
agentUrl: string;
|
|
41
|
+
/**
|
|
42
|
+
* Optional explicit agent card URL (must be different from agent_url)
|
|
43
|
+
*/
|
|
44
|
+
cardUrl?: string | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Authentication headers for the A2A agent
|
|
47
|
+
*/
|
|
48
|
+
headers?: { [k: string]: Headers } | undefined;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export const PostV2AgentsA2aType = {
|
|
52
|
+
A2a: "a2a",
|
|
53
|
+
Internal: "internal",
|
|
54
|
+
} as const;
|
|
55
|
+
export type PostV2AgentsA2aType = ClosedEnum<typeof PostV2AgentsA2aType>;
|
|
56
|
+
|
|
57
|
+
export type Metrics = {
|
|
58
|
+
totalCost: number;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export type A2a = {
|
|
62
|
+
agentUrl: string;
|
|
63
|
+
cardUrl?: string | undefined;
|
|
64
|
+
headers: { [k: string]: any };
|
|
65
|
+
cachedCard?: any | undefined;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* A2A agent registered successfully
|
|
70
|
+
*/
|
|
71
|
+
export type PostV2AgentsA2aResponseBody = {
|
|
72
|
+
id: string;
|
|
73
|
+
type: PostV2AgentsA2aType;
|
|
74
|
+
key: string;
|
|
75
|
+
displayName: string;
|
|
76
|
+
description: string;
|
|
77
|
+
workspaceId: string;
|
|
78
|
+
projectId: string;
|
|
79
|
+
createdById?: string | null | undefined;
|
|
80
|
+
updatedById?: string | null | undefined;
|
|
81
|
+
role?: string | undefined;
|
|
82
|
+
instructions?: string | undefined;
|
|
83
|
+
status: string;
|
|
84
|
+
versionHash?: string | undefined;
|
|
85
|
+
path: string;
|
|
86
|
+
metrics: Metrics;
|
|
87
|
+
memoryStores: Array<string>;
|
|
88
|
+
teamOfAgents: Array<any>;
|
|
89
|
+
created?: string | undefined;
|
|
90
|
+
updated?: string | undefined;
|
|
91
|
+
a2a?: A2a | undefined;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
/** @internal */
|
|
95
|
+
export type Headers$Outbound = {
|
|
96
|
+
value: string;
|
|
97
|
+
encrypted: boolean;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
/** @internal */
|
|
101
|
+
export const Headers$outboundSchema: z.ZodType<
|
|
102
|
+
Headers$Outbound,
|
|
103
|
+
z.ZodTypeDef,
|
|
104
|
+
Headers
|
|
105
|
+
> = z.object({
|
|
106
|
+
value: z.string(),
|
|
107
|
+
encrypted: z.boolean().default(false),
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
export function headersToJSON(headers: Headers): string {
|
|
111
|
+
return JSON.stringify(Headers$outboundSchema.parse(headers));
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/** @internal */
|
|
115
|
+
export type PostV2AgentsA2aRequestBody$Outbound = {
|
|
116
|
+
key: string;
|
|
117
|
+
display_name: string;
|
|
118
|
+
description: string;
|
|
119
|
+
path: string;
|
|
120
|
+
agent_url: string;
|
|
121
|
+
card_url?: string | undefined;
|
|
122
|
+
headers?: { [k: string]: Headers$Outbound } | undefined;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
/** @internal */
|
|
126
|
+
export const PostV2AgentsA2aRequestBody$outboundSchema: z.ZodType<
|
|
127
|
+
PostV2AgentsA2aRequestBody$Outbound,
|
|
128
|
+
z.ZodTypeDef,
|
|
129
|
+
PostV2AgentsA2aRequestBody
|
|
130
|
+
> = z.object({
|
|
131
|
+
key: z.string(),
|
|
132
|
+
displayName: z.string(),
|
|
133
|
+
description: z.string(),
|
|
134
|
+
path: z.string(),
|
|
135
|
+
agentUrl: z.string(),
|
|
136
|
+
cardUrl: z.string().optional(),
|
|
137
|
+
headers: z.record(z.lazy(() => Headers$outboundSchema)).optional(),
|
|
138
|
+
}).transform((v) => {
|
|
139
|
+
return remap$(v, {
|
|
140
|
+
displayName: "display_name",
|
|
141
|
+
agentUrl: "agent_url",
|
|
142
|
+
cardUrl: "card_url",
|
|
143
|
+
});
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
export function postV2AgentsA2aRequestBodyToJSON(
|
|
147
|
+
postV2AgentsA2aRequestBody: PostV2AgentsA2aRequestBody,
|
|
148
|
+
): string {
|
|
149
|
+
return JSON.stringify(
|
|
150
|
+
PostV2AgentsA2aRequestBody$outboundSchema.parse(postV2AgentsA2aRequestBody),
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/** @internal */
|
|
155
|
+
export const PostV2AgentsA2aType$inboundSchema: z.ZodNativeEnum<
|
|
156
|
+
typeof PostV2AgentsA2aType
|
|
157
|
+
> = z.nativeEnum(PostV2AgentsA2aType);
|
|
158
|
+
|
|
159
|
+
/** @internal */
|
|
160
|
+
export const Metrics$inboundSchema: z.ZodType<Metrics, z.ZodTypeDef, unknown> =
|
|
161
|
+
z.object({
|
|
162
|
+
total_cost: z.number(),
|
|
163
|
+
}).transform((v) => {
|
|
164
|
+
return remap$(v, {
|
|
165
|
+
"total_cost": "totalCost",
|
|
166
|
+
});
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
export function metricsFromJSON(
|
|
170
|
+
jsonString: string,
|
|
171
|
+
): SafeParseResult<Metrics, SDKValidationError> {
|
|
172
|
+
return safeParse(
|
|
173
|
+
jsonString,
|
|
174
|
+
(x) => Metrics$inboundSchema.parse(JSON.parse(x)),
|
|
175
|
+
`Failed to parse 'Metrics' from JSON`,
|
|
176
|
+
);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/** @internal */
|
|
180
|
+
export const A2a$inboundSchema: z.ZodType<A2a, z.ZodTypeDef, unknown> = z
|
|
181
|
+
.object({
|
|
182
|
+
agent_url: z.string(),
|
|
183
|
+
card_url: z.string().optional(),
|
|
184
|
+
headers: z.record(z.any()),
|
|
185
|
+
cached_card: z.any().optional(),
|
|
186
|
+
}).transform((v) => {
|
|
187
|
+
return remap$(v, {
|
|
188
|
+
"agent_url": "agentUrl",
|
|
189
|
+
"card_url": "cardUrl",
|
|
190
|
+
"cached_card": "cachedCard",
|
|
191
|
+
});
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
export function a2aFromJSON(
|
|
195
|
+
jsonString: string,
|
|
196
|
+
): SafeParseResult<A2a, SDKValidationError> {
|
|
197
|
+
return safeParse(
|
|
198
|
+
jsonString,
|
|
199
|
+
(x) => A2a$inboundSchema.parse(JSON.parse(x)),
|
|
200
|
+
`Failed to parse 'A2a' from JSON`,
|
|
201
|
+
);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/** @internal */
|
|
205
|
+
export const PostV2AgentsA2aResponseBody$inboundSchema: z.ZodType<
|
|
206
|
+
PostV2AgentsA2aResponseBody,
|
|
207
|
+
z.ZodTypeDef,
|
|
208
|
+
unknown
|
|
209
|
+
> = z.object({
|
|
210
|
+
_id: z.string(),
|
|
211
|
+
type: PostV2AgentsA2aType$inboundSchema,
|
|
212
|
+
key: z.string(),
|
|
213
|
+
display_name: z.string(),
|
|
214
|
+
description: z.string(),
|
|
215
|
+
workspace_id: z.string(),
|
|
216
|
+
project_id: z.string(),
|
|
217
|
+
created_by_id: z.nullable(z.string()).optional(),
|
|
218
|
+
updated_by_id: z.nullable(z.string()).optional(),
|
|
219
|
+
role: z.string().optional(),
|
|
220
|
+
instructions: z.string().optional(),
|
|
221
|
+
status: z.string(),
|
|
222
|
+
version_hash: z.string().optional(),
|
|
223
|
+
path: z.string(),
|
|
224
|
+
metrics: z.lazy(() => Metrics$inboundSchema),
|
|
225
|
+
memory_stores: z.array(z.string()),
|
|
226
|
+
team_of_agents: z.array(z.any()),
|
|
227
|
+
created: z.string().optional(),
|
|
228
|
+
updated: z.string().optional(),
|
|
229
|
+
a2a: z.lazy(() => A2a$inboundSchema).optional(),
|
|
230
|
+
}).transform((v) => {
|
|
231
|
+
return remap$(v, {
|
|
232
|
+
"_id": "id",
|
|
233
|
+
"display_name": "displayName",
|
|
234
|
+
"workspace_id": "workspaceId",
|
|
235
|
+
"project_id": "projectId",
|
|
236
|
+
"created_by_id": "createdById",
|
|
237
|
+
"updated_by_id": "updatedById",
|
|
238
|
+
"version_hash": "versionHash",
|
|
239
|
+
"memory_stores": "memoryStores",
|
|
240
|
+
"team_of_agents": "teamOfAgents",
|
|
241
|
+
});
|
|
242
|
+
});
|
|
243
|
+
|
|
244
|
+
export function postV2AgentsA2aResponseBodyFromJSON(
|
|
245
|
+
jsonString: string,
|
|
246
|
+
): SafeParseResult<PostV2AgentsA2aResponseBody, SDKValidationError> {
|
|
247
|
+
return safeParse(
|
|
248
|
+
jsonString,
|
|
249
|
+
(x) => PostV2AgentsA2aResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
250
|
+
`Failed to parse 'PostV2AgentsA2aResponseBody' from JSON`,
|
|
251
|
+
);
|
|
252
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type PostV2AgentsKeyCardRefreshRequestBody = {};
|
|
12
|
+
|
|
13
|
+
export type PostV2AgentsKeyCardRefreshRequest = {
|
|
14
|
+
/**
|
|
15
|
+
* The unique key identifier of the agent
|
|
16
|
+
*/
|
|
17
|
+
key: string;
|
|
18
|
+
requestBody?: PostV2AgentsKeyCardRefreshRequestBody | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Agent card refreshed successfully
|
|
23
|
+
*/
|
|
24
|
+
export type PostV2AgentsKeyCardRefreshResponseBody = {
|
|
25
|
+
message: string;
|
|
26
|
+
card?: any | undefined;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type PostV2AgentsKeyCardRefreshRequestBody$Outbound = {};
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const PostV2AgentsKeyCardRefreshRequestBody$outboundSchema: z.ZodType<
|
|
34
|
+
PostV2AgentsKeyCardRefreshRequestBody$Outbound,
|
|
35
|
+
z.ZodTypeDef,
|
|
36
|
+
PostV2AgentsKeyCardRefreshRequestBody
|
|
37
|
+
> = z.object({});
|
|
38
|
+
|
|
39
|
+
export function postV2AgentsKeyCardRefreshRequestBodyToJSON(
|
|
40
|
+
postV2AgentsKeyCardRefreshRequestBody: PostV2AgentsKeyCardRefreshRequestBody,
|
|
41
|
+
): string {
|
|
42
|
+
return JSON.stringify(
|
|
43
|
+
PostV2AgentsKeyCardRefreshRequestBody$outboundSchema.parse(
|
|
44
|
+
postV2AgentsKeyCardRefreshRequestBody,
|
|
45
|
+
),
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export type PostV2AgentsKeyCardRefreshRequest$Outbound = {
|
|
51
|
+
key: string;
|
|
52
|
+
RequestBody?: PostV2AgentsKeyCardRefreshRequestBody$Outbound | undefined;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const PostV2AgentsKeyCardRefreshRequest$outboundSchema: z.ZodType<
|
|
57
|
+
PostV2AgentsKeyCardRefreshRequest$Outbound,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
PostV2AgentsKeyCardRefreshRequest
|
|
60
|
+
> = z.object({
|
|
61
|
+
key: z.string(),
|
|
62
|
+
requestBody: z.lazy(() =>
|
|
63
|
+
PostV2AgentsKeyCardRefreshRequestBody$outboundSchema
|
|
64
|
+
).optional(),
|
|
65
|
+
}).transform((v) => {
|
|
66
|
+
return remap$(v, {
|
|
67
|
+
requestBody: "RequestBody",
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
export function postV2AgentsKeyCardRefreshRequestToJSON(
|
|
72
|
+
postV2AgentsKeyCardRefreshRequest: PostV2AgentsKeyCardRefreshRequest,
|
|
73
|
+
): string {
|
|
74
|
+
return JSON.stringify(
|
|
75
|
+
PostV2AgentsKeyCardRefreshRequest$outboundSchema.parse(
|
|
76
|
+
postV2AgentsKeyCardRefreshRequest,
|
|
77
|
+
),
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/** @internal */
|
|
82
|
+
export const PostV2AgentsKeyCardRefreshResponseBody$inboundSchema: z.ZodType<
|
|
83
|
+
PostV2AgentsKeyCardRefreshResponseBody,
|
|
84
|
+
z.ZodTypeDef,
|
|
85
|
+
unknown
|
|
86
|
+
> = z.object({
|
|
87
|
+
message: z.string(),
|
|
88
|
+
card: z.any().optional(),
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
export function postV2AgentsKeyCardRefreshResponseBodyFromJSON(
|
|
92
|
+
jsonString: string,
|
|
93
|
+
): SafeParseResult<PostV2AgentsKeyCardRefreshResponseBody, SDKValidationError> {
|
|
94
|
+
return safeParse(
|
|
95
|
+
jsonString,
|
|
96
|
+
(x) =>
|
|
97
|
+
PostV2AgentsKeyCardRefreshResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
98
|
+
`Failed to parse 'PostV2AgentsKeyCardRefreshResponseBody' from JSON`,
|
|
99
|
+
);
|
|
100
|
+
}
|