@orq-ai/node 4.16.0-rc.34 → 4.16.0-rc.36
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/apiKeysCreate.d.ts +1 -1
- package/funcs/apiKeysCreate.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/aggregatetracesrequest.d.ts +5 -0
- package/models/components/aggregatetracesrequest.d.ts.map +1 -1
- package/models/components/aggregatetracesrequest.js +1 -0
- package/models/components/aggregatetracesrequest.js.map +1 -1
- package/models/components/allprojectsscope.d.ts +8 -0
- package/models/components/allprojectsscope.d.ts.map +1 -0
- package/models/components/allprojectsscope.js +47 -0
- package/models/components/allprojectsscope.js.map +1 -0
- package/models/components/fieldinfo.d.ts +1 -0
- package/models/components/fieldinfo.d.ts.map +1 -1
- package/models/components/fieldinfo.js +1 -0
- package/models/components/fieldinfo.js.map +1 -1
- package/models/components/index.d.ts +3 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +3 -1
- package/models/components/index.js.map +1 -1
- package/models/components/publicresponseresource.d.ts +1 -0
- package/models/components/publicresponseresource.d.ts.map +1 -1
- package/models/components/publicresponseresource.js +1 -0
- package/models/components/publicresponseresource.js.map +1 -1
- package/models/components/querytelemetryrequest.d.ts +10 -0
- package/models/components/querytelemetryrequest.d.ts.map +1 -1
- package/models/components/querytelemetryrequest.js +4 -0
- package/models/components/querytelemetryrequest.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/requestprojectscope.d.ts +30 -0
- package/models/components/requestprojectscope.d.ts.map +1 -0
- package/models/components/requestprojectscope.js +67 -0
- package/models/components/requestprojectscope.js.map +1 -0
- package/models/components/servertoolusedetails.d.ts +1 -0
- package/models/components/servertoolusedetails.d.ts.map +1 -1
- package/models/components/servertoolusedetails.js +2 -0
- package/models/components/servertoolusedetails.js.map +1 -1
- package/models/components/singleprojectscope.d.ts +12 -0
- package/models/components/singleprojectscope.d.ts.map +1 -0
- package/models/components/{projectscope.js → singleprojectscope.js} +7 -8
- package/models/components/singleprojectscope.js.map +1 -0
- package/models/operations/apikeycreate.d.ts +5 -20
- package/models/operations/apikeycreate.d.ts.map +1 -1
- package/models/operations/apikeycreate.js +5 -12
- package/models/operations/apikeycreate.js.map +1 -1
- package/models/operations/apikeyupdate.d.ts +5 -2
- package/models/operations/apikeyupdate.d.ts.map +1 -1
- package/models/operations/apikeyupdate.js +4 -1
- package/models/operations/apikeyupdate.js.map +1 -1
- package/models/operations/createagentrequest.d.ts +8 -0
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +14 -3
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createrouterresponse.d.ts +24 -3
- package/models/operations/createrouterresponse.d.ts.map +1 -1
- package/models/operations/createrouterresponse.js +10 -1
- package/models/operations/createrouterresponse.js.map +1 -1
- package/models/operations/createtool.js +4 -4
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listagents.d.ts +8 -0
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +15 -3
- package/models/operations/listagents.js.map +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/retrieveagentrequest.d.ts +8 -0
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +14 -3
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrieveresponse.d.ts +1 -0
- package/models/operations/retrieveresponse.d.ts.map +1 -1
- package/models/operations/retrieveresponse.js +1 -0
- package/models/operations/retrieveresponse.js.map +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/updateagent.d.ts +22 -0
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +27 -3
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +7 -7
- package/sdk/apikeys.d.ts +1 -1
- package/sdk/apikeys.js +1 -1
- package/src/funcs/apiKeysCreate.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/aggregatetracesrequest.ts +6 -0
- package/src/models/components/allprojectsscope.ts +25 -0
- package/src/models/components/fieldinfo.ts +2 -0
- package/src/models/components/index.ts +3 -1
- package/src/models/components/publicresponseresource.ts +1 -0
- package/src/models/components/querytelemetryrequest.ts +14 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/requestprojectscope.ts +71 -0
- package/src/models/components/servertoolusedetails.ts +3 -0
- package/src/models/components/singleprojectscope.ts +36 -0
- package/src/models/operations/apikeycreate.ts +6 -26
- package/src/models/operations/apikeyupdate.ts +6 -3
- package/src/models/operations/createagentrequest.ts +30 -0
- package/src/models/operations/createrouterresponse.ts +30 -3
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listagents.ts +29 -0
- 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/retrieveagentrequest.ts +30 -0
- package/src/models/operations/retrieveresponse.ts +1 -0
- 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/updateagent.ts +59 -0
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/apikeys.ts +1 -1
- package/models/components/projectscope.d.ts +0 -14
- package/models/components/projectscope.d.ts.map +0 -1
- package/models/components/projectscope.js.map +0 -1
- package/src/models/components/projectscope.ts +0 -35
|
@@ -245,7 +245,7 @@ export const RequestBody4$outboundSchema: z.ZodType<
|
|
|
245
245
|
PostV2FeedbackEvaluationRequestBodyFeedbackRequestSource$outboundSchema
|
|
246
246
|
.default("orq"),
|
|
247
247
|
explanation: z.string().optional(),
|
|
248
|
-
reviewedAt: z.date().default(() => new Date("2026-
|
|
248
|
+
reviewedAt: z.date().default(() => new Date("2026-10-01T06:28:25.731Z"))
|
|
249
249
|
.transform(v => v.toISOString()),
|
|
250
250
|
type: z.literal("string_array"),
|
|
251
251
|
values: z.array(z.string()),
|
|
@@ -299,7 +299,7 @@ export const Three$outboundSchema: z.ZodType<
|
|
|
299
299
|
source: PostV2FeedbackEvaluationRequestBodyFeedbackSource$outboundSchema
|
|
300
300
|
.default("orq"),
|
|
301
301
|
explanation: z.string().optional(),
|
|
302
|
-
reviewedAt: z.date().default(() => new Date("2026-
|
|
302
|
+
reviewedAt: z.date().default(() => new Date("2026-10-01T06:28:25.731Z"))
|
|
303
303
|
.transform(v => v.toISOString()),
|
|
304
304
|
type: z.literal("boolean"),
|
|
305
305
|
value: z.boolean(),
|
|
@@ -353,7 +353,7 @@ export const RequestBody2$outboundSchema: z.ZodType<
|
|
|
353
353
|
"orq",
|
|
354
354
|
),
|
|
355
355
|
explanation: z.string().optional(),
|
|
356
|
-
reviewedAt: z.date().default(() => new Date("2026-
|
|
356
|
+
reviewedAt: z.date().default(() => new Date("2026-10-01T06:28:25.731Z"))
|
|
357
357
|
.transform(v => v.toISOString()),
|
|
358
358
|
type: z.literal("number"),
|
|
359
359
|
value: z.number(),
|
|
@@ -405,7 +405,7 @@ export const RequestBody1$outboundSchema: z.ZodType<
|
|
|
405
405
|
humanReviewId: z.string().optional(),
|
|
406
406
|
source: RequestBodySource$outboundSchema.default("orq"),
|
|
407
407
|
explanation: z.string().optional(),
|
|
408
|
-
reviewedAt: z.date().default(() => new Date("2026-
|
|
408
|
+
reviewedAt: z.date().default(() => new Date("2026-10-01T06:28:25.731Z"))
|
|
409
409
|
.transform(v => v.toISOString()),
|
|
410
410
|
type: z.literal("string"),
|
|
411
411
|
value: z.string(),
|
|
@@ -271,7 +271,7 @@ export const PostV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
271
271
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
272
272
|
.optional(),
|
|
273
273
|
updated: z.string().datetime({ offset: true }).default(
|
|
274
|
-
"2026-
|
|
274
|
+
"2026-10-01T06:28:18.535Z",
|
|
275
275
|
).transform(v => new Date(v)),
|
|
276
276
|
filter_type: z.literal("name"),
|
|
277
277
|
filter_value: z.string(),
|
|
@@ -316,7 +316,7 @@ export const PostV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
316
316
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
317
317
|
.optional(),
|
|
318
318
|
updated: z.string().datetime({ offset: true }).default(
|
|
319
|
-
"2026-
|
|
319
|
+
"2026-10-01T06:28:18.535Z",
|
|
320
320
|
).transform(v => new Date(v)),
|
|
321
321
|
filter_type: z.literal("span_type"),
|
|
322
322
|
filter_values: z.array(z.string()),
|
|
@@ -44,6 +44,11 @@ export type RetrieveAgentRequestTeamOfAgents = {
|
|
|
44
44
|
role?: string | undefined;
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
+
export type RetrieveAgentRequestAgentPlugins = {
|
|
48
|
+
id: string;
|
|
49
|
+
version: string;
|
|
50
|
+
};
|
|
51
|
+
|
|
47
52
|
export type RetrieveAgentRequestMetrics = {
|
|
48
53
|
totalCost: number;
|
|
49
54
|
};
|
|
@@ -1301,6 +1306,7 @@ export type RetrieveAgentRequestResponseBody = {
|
|
|
1301
1306
|
* List of skills that the agent can utilize. This field allows you to specify which skills the agent has access to, enabling more complex and dynamic behavior.
|
|
1302
1307
|
*/
|
|
1303
1308
|
skills?: Array<string> | undefined;
|
|
1309
|
+
agentPlugins?: Array<RetrieveAgentRequestAgentPlugins> | undefined;
|
|
1304
1310
|
metrics?: RetrieveAgentRequestMetrics | undefined;
|
|
1305
1311
|
/**
|
|
1306
1312
|
* Extracted variables from agent instructions
|
|
@@ -1377,6 +1383,26 @@ export function retrieveAgentRequestTeamOfAgentsFromJSON(
|
|
|
1377
1383
|
);
|
|
1378
1384
|
}
|
|
1379
1385
|
|
|
1386
|
+
/** @internal */
|
|
1387
|
+
export const RetrieveAgentRequestAgentPlugins$inboundSchema: z.ZodType<
|
|
1388
|
+
RetrieveAgentRequestAgentPlugins,
|
|
1389
|
+
z.ZodTypeDef,
|
|
1390
|
+
unknown
|
|
1391
|
+
> = z.object({
|
|
1392
|
+
id: z.string(),
|
|
1393
|
+
version: z.string(),
|
|
1394
|
+
});
|
|
1395
|
+
|
|
1396
|
+
export function retrieveAgentRequestAgentPluginsFromJSON(
|
|
1397
|
+
jsonString: string,
|
|
1398
|
+
): SafeParseResult<RetrieveAgentRequestAgentPlugins, SDKValidationError> {
|
|
1399
|
+
return safeParse(
|
|
1400
|
+
jsonString,
|
|
1401
|
+
(x) => RetrieveAgentRequestAgentPlugins$inboundSchema.parse(JSON.parse(x)),
|
|
1402
|
+
`Failed to parse 'RetrieveAgentRequestAgentPlugins' from JSON`,
|
|
1403
|
+
);
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1380
1406
|
/** @internal */
|
|
1381
1407
|
export const RetrieveAgentRequestMetrics$inboundSchema: z.ZodType<
|
|
1382
1408
|
RetrieveAgentRequestMetrics,
|
|
@@ -3064,6 +3090,9 @@ export const RetrieveAgentRequestResponseBody$inboundSchema: z.ZodType<
|
|
|
3064
3090
|
z.lazy(() => RetrieveAgentRequestTeamOfAgents$inboundSchema),
|
|
3065
3091
|
).optional(),
|
|
3066
3092
|
skills: z.array(z.string()).optional(),
|
|
3093
|
+
agent_plugins: z.array(
|
|
3094
|
+
z.lazy(() => RetrieveAgentRequestAgentPlugins$inboundSchema),
|
|
3095
|
+
).optional(),
|
|
3067
3096
|
metrics: z.lazy(() => RetrieveAgentRequestMetrics$inboundSchema).optional(),
|
|
3068
3097
|
variables: z.record(z.any()).optional(),
|
|
3069
3098
|
knowledge_bases: z.array(
|
|
@@ -3087,6 +3116,7 @@ export const RetrieveAgentRequestResponseBody$inboundSchema: z.ZodType<
|
|
|
3087
3116
|
"updated_by_id": "updatedById",
|
|
3088
3117
|
"memory_stores": "memoryStores",
|
|
3089
3118
|
"team_of_agents": "teamOfAgents",
|
|
3119
|
+
"agent_plugins": "agentPlugins",
|
|
3090
3120
|
"knowledge_bases": "knowledgeBases",
|
|
3091
3121
|
"system_prompt": "systemPrompt",
|
|
3092
3122
|
});
|
|
@@ -624,7 +624,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
624
624
|
z.ZodTypeDef,
|
|
625
625
|
unknown
|
|
626
626
|
> = z.object({
|
|
627
|
-
_id: z.string().default("
|
|
627
|
+
_id: z.string().default("tool_01M3V2CREYT8CM4SWGVPPAP0YN"),
|
|
628
628
|
path: z.string(),
|
|
629
629
|
key: z.string(),
|
|
630
630
|
display_name: z.string().optional(),
|
|
@@ -820,7 +820,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
820
820
|
z.ZodTypeDef,
|
|
821
821
|
unknown
|
|
822
822
|
> = z.object({
|
|
823
|
-
_id: z.string().default("
|
|
823
|
+
_id: z.string().default("tool_01M3V2CREX0VF98Q0FVDNJXKNP"),
|
|
824
824
|
path: z.string(),
|
|
825
825
|
key: z.string(),
|
|
826
826
|
display_name: z.string().optional(),
|
|
@@ -916,7 +916,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
916
916
|
z.ZodTypeDef,
|
|
917
917
|
unknown
|
|
918
918
|
> = z.object({
|
|
919
|
-
_id: z.string().default("
|
|
919
|
+
_id: z.string().default("tool_01M3V2CREXSGHHCCZ7MG3S6NSQ"),
|
|
920
920
|
path: z.string(),
|
|
921
921
|
key: z.string(),
|
|
922
922
|
display_name: z.string().optional(),
|
|
@@ -1022,7 +1022,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1022
1022
|
z.ZodTypeDef,
|
|
1023
1023
|
unknown
|
|
1024
1024
|
> = z.object({
|
|
1025
|
-
_id: z.string().default("
|
|
1025
|
+
_id: z.string().default("tool_01M3V2CREW28PYP0G676BNRYPR"),
|
|
1026
1026
|
path: z.string(),
|
|
1027
1027
|
key: z.string(),
|
|
1028
1028
|
display_name: z.string().optional(),
|
|
@@ -3890,7 +3890,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
3890
3890
|
z.ZodTypeDef,
|
|
3891
3891
|
Tools
|
|
3892
3892
|
> = z.object({
|
|
3893
|
-
id: z.string().default("
|
|
3893
|
+
id: z.string().default("01M3V2CRCETKJDN8M2D25ENM5E"),
|
|
3894
3894
|
name: z.string(),
|
|
3895
3895
|
description: z.string().optional(),
|
|
3896
3896
|
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|
|
@@ -3949,7 +3949,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
|
|
|
3949
3949
|
z.ZodTypeDef,
|
|
3950
3950
|
AgentToolInputRunTools
|
|
3951
3951
|
> = z.object({
|
|
3952
|
-
id: z.string().default("
|
|
3952
|
+
id: z.string().default("01M3V2CRD0MGHXG74GRJEANQEW"),
|
|
3953
3953
|
name: z.string(),
|
|
3954
3954
|
description: z.string().optional(),
|
|
3955
3955
|
schema: z.lazy(() =>
|
|
@@ -1116,6 +1116,11 @@ export type UpdateAgentTeamOfAgents = {
|
|
|
1116
1116
|
role?: string | undefined;
|
|
1117
1117
|
};
|
|
1118
1118
|
|
|
1119
|
+
export type AgentPlugins = {
|
|
1120
|
+
id: string;
|
|
1121
|
+
version: string;
|
|
1122
|
+
};
|
|
1123
|
+
|
|
1119
1124
|
export const UpdateAgentEngine = {
|
|
1120
1125
|
Text: "text",
|
|
1121
1126
|
Jinja: "jinja",
|
|
@@ -1184,6 +1189,7 @@ export type UpdateAgentRequestBody = {
|
|
|
1184
1189
|
* List of skills that the agent can utilize. This field allows you to specify which skills the agent has access to, enabling more complex and dynamic behavior.
|
|
1185
1190
|
*/
|
|
1186
1191
|
skills?: Array<string> | null | undefined;
|
|
1192
|
+
agentPlugins?: Array<AgentPlugins> | null | undefined;
|
|
1187
1193
|
/**
|
|
1188
1194
|
* Extracted variables from agent instructions
|
|
1189
1195
|
*/
|
|
@@ -1232,6 +1238,11 @@ export type UpdateAgentAgentsTeamOfAgents = {
|
|
|
1232
1238
|
role?: string | undefined;
|
|
1233
1239
|
};
|
|
1234
1240
|
|
|
1241
|
+
export type UpdateAgentAgentPlugins = {
|
|
1242
|
+
id: string;
|
|
1243
|
+
version: string;
|
|
1244
|
+
};
|
|
1245
|
+
|
|
1235
1246
|
export type UpdateAgentMetrics = {
|
|
1236
1247
|
totalCost: number;
|
|
1237
1248
|
};
|
|
@@ -2480,6 +2491,7 @@ export type UpdateAgentResponseBody = {
|
|
|
2480
2491
|
* List of skills that the agent can utilize. This field allows you to specify which skills the agent has access to, enabling more complex and dynamic behavior.
|
|
2481
2492
|
*/
|
|
2482
2493
|
skills?: Array<string> | undefined;
|
|
2494
|
+
agentPlugins?: Array<UpdateAgentAgentPlugins> | undefined;
|
|
2483
2495
|
metrics?: UpdateAgentMetrics | undefined;
|
|
2484
2496
|
/**
|
|
2485
2497
|
* Extracted variables from agent instructions
|
|
@@ -4287,6 +4299,26 @@ export function updateAgentTeamOfAgentsToJSON(
|
|
|
4287
4299
|
);
|
|
4288
4300
|
}
|
|
4289
4301
|
|
|
4302
|
+
/** @internal */
|
|
4303
|
+
export type AgentPlugins$Outbound = {
|
|
4304
|
+
id: string;
|
|
4305
|
+
version: string;
|
|
4306
|
+
};
|
|
4307
|
+
|
|
4308
|
+
/** @internal */
|
|
4309
|
+
export const AgentPlugins$outboundSchema: z.ZodType<
|
|
4310
|
+
AgentPlugins$Outbound,
|
|
4311
|
+
z.ZodTypeDef,
|
|
4312
|
+
AgentPlugins
|
|
4313
|
+
> = z.object({
|
|
4314
|
+
id: z.string(),
|
|
4315
|
+
version: z.string(),
|
|
4316
|
+
});
|
|
4317
|
+
|
|
4318
|
+
export function agentPluginsToJSON(agentPlugins: AgentPlugins): string {
|
|
4319
|
+
return JSON.stringify(AgentPlugins$outboundSchema.parse(agentPlugins));
|
|
4320
|
+
}
|
|
4321
|
+
|
|
4290
4322
|
/** @internal */
|
|
4291
4323
|
export const UpdateAgentEngine$outboundSchema: z.ZodNativeEnum<
|
|
4292
4324
|
typeof UpdateAgentEngine
|
|
@@ -4316,6 +4348,7 @@ export type UpdateAgentRequestBody$Outbound = {
|
|
|
4316
4348
|
knowledge_bases?: Array<UpdateAgentKnowledgeBases$Outbound> | undefined;
|
|
4317
4349
|
team_of_agents?: Array<UpdateAgentTeamOfAgents$Outbound> | undefined;
|
|
4318
4350
|
skills?: Array<string> | null | undefined;
|
|
4351
|
+
agent_plugins?: Array<AgentPlugins$Outbound> | null | undefined;
|
|
4319
4352
|
variables?: { [k: string]: any } | undefined;
|
|
4320
4353
|
engine?: string | undefined;
|
|
4321
4354
|
versionIncrement?: string | undefined;
|
|
@@ -4354,6 +4387,8 @@ export const UpdateAgentRequestBody$outboundSchema: z.ZodType<
|
|
|
4354
4387
|
teamOfAgents: z.array(z.lazy(() => UpdateAgentTeamOfAgents$outboundSchema))
|
|
4355
4388
|
.optional(),
|
|
4356
4389
|
skills: z.nullable(z.array(z.string())).optional(),
|
|
4390
|
+
agentPlugins: z.nullable(z.array(z.lazy(() => AgentPlugins$outboundSchema)))
|
|
4391
|
+
.optional(),
|
|
4357
4392
|
variables: z.record(z.any()).optional(),
|
|
4358
4393
|
engine: UpdateAgentEngine$outboundSchema.optional(),
|
|
4359
4394
|
versionIncrement: VersionIncrement$outboundSchema.optional(),
|
|
@@ -4367,6 +4402,7 @@ export const UpdateAgentRequestBody$outboundSchema: z.ZodType<
|
|
|
4367
4402
|
memoryStores: "memory_stores",
|
|
4368
4403
|
knowledgeBases: "knowledge_bases",
|
|
4369
4404
|
teamOfAgents: "team_of_agents",
|
|
4405
|
+
agentPlugins: "agent_plugins",
|
|
4370
4406
|
});
|
|
4371
4407
|
});
|
|
4372
4408
|
|
|
@@ -4432,6 +4468,26 @@ export function updateAgentAgentsTeamOfAgentsFromJSON(
|
|
|
4432
4468
|
);
|
|
4433
4469
|
}
|
|
4434
4470
|
|
|
4471
|
+
/** @internal */
|
|
4472
|
+
export const UpdateAgentAgentPlugins$inboundSchema: z.ZodType<
|
|
4473
|
+
UpdateAgentAgentPlugins,
|
|
4474
|
+
z.ZodTypeDef,
|
|
4475
|
+
unknown
|
|
4476
|
+
> = z.object({
|
|
4477
|
+
id: z.string(),
|
|
4478
|
+
version: z.string(),
|
|
4479
|
+
});
|
|
4480
|
+
|
|
4481
|
+
export function updateAgentAgentPluginsFromJSON(
|
|
4482
|
+
jsonString: string,
|
|
4483
|
+
): SafeParseResult<UpdateAgentAgentPlugins, SDKValidationError> {
|
|
4484
|
+
return safeParse(
|
|
4485
|
+
jsonString,
|
|
4486
|
+
(x) => UpdateAgentAgentPlugins$inboundSchema.parse(JSON.parse(x)),
|
|
4487
|
+
`Failed to parse 'UpdateAgentAgentPlugins' from JSON`,
|
|
4488
|
+
);
|
|
4489
|
+
}
|
|
4490
|
+
|
|
4435
4491
|
/** @internal */
|
|
4436
4492
|
export const UpdateAgentMetrics$inboundSchema: z.ZodType<
|
|
4437
4493
|
UpdateAgentMetrics,
|
|
@@ -6145,6 +6201,8 @@ export const UpdateAgentResponseBody$inboundSchema: z.ZodType<
|
|
|
6145
6201
|
z.lazy(() => UpdateAgentAgentsTeamOfAgents$inboundSchema),
|
|
6146
6202
|
).optional(),
|
|
6147
6203
|
skills: z.array(z.string()).optional(),
|
|
6204
|
+
agent_plugins: z.array(z.lazy(() => UpdateAgentAgentPlugins$inboundSchema))
|
|
6205
|
+
.optional(),
|
|
6148
6206
|
metrics: z.lazy(() => UpdateAgentMetrics$inboundSchema).optional(),
|
|
6149
6207
|
variables: z.record(z.any()).optional(),
|
|
6150
6208
|
knowledge_bases: z.array(
|
|
@@ -6168,6 +6226,7 @@ export const UpdateAgentResponseBody$inboundSchema: z.ZodType<
|
|
|
6168
6226
|
"updated_by_id": "updatedById",
|
|
6169
6227
|
"memory_stores": "memoryStores",
|
|
6170
6228
|
"team_of_agents": "teamOfAgents",
|
|
6229
|
+
"agent_plugins": "agentPlugins",
|
|
6171
6230
|
"knowledge_bases": "knowledgeBases",
|
|
6172
6231
|
"system_prompt": "systemPrompt",
|
|
6173
6232
|
});
|
|
@@ -1764,7 +1764,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1764
1764
|
z.ZodTypeDef,
|
|
1765
1765
|
unknown
|
|
1766
1766
|
> = z.object({
|
|
1767
|
-
_id: z.string().default("
|
|
1767
|
+
_id: z.string().default("tool_01M3V2CREQEYAMM2P5539J2BZE"),
|
|
1768
1768
|
path: z.string(),
|
|
1769
1769
|
key: z.string(),
|
|
1770
1770
|
display_name: z.string().optional(),
|
|
@@ -1959,7 +1959,7 @@ export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1959
1959
|
z.ZodTypeDef,
|
|
1960
1960
|
unknown
|
|
1961
1961
|
> = z.object({
|
|
1962
|
-
_id: z.string().default("
|
|
1962
|
+
_id: z.string().default("tool_01M3V2CREPDVP0GAFDMMF3FDN5"),
|
|
1963
1963
|
path: z.string(),
|
|
1964
1964
|
key: z.string(),
|
|
1965
1965
|
display_name: z.string().optional(),
|
|
@@ -2054,7 +2054,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2054
2054
|
z.ZodTypeDef,
|
|
2055
2055
|
unknown
|
|
2056
2056
|
> = z.object({
|
|
2057
|
-
_id: z.string().default("
|
|
2057
|
+
_id: z.string().default("tool_01M3V2CREP4SK3WRNRT7E89TYE"),
|
|
2058
2058
|
path: z.string(),
|
|
2059
2059
|
key: z.string(),
|
|
2060
2060
|
display_name: z.string().optional(),
|
|
@@ -2157,7 +2157,7 @@ export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2157
2157
|
z.ZodTypeDef,
|
|
2158
2158
|
unknown
|
|
2159
2159
|
> = z.object({
|
|
2160
|
-
_id: z.string().default("
|
|
2160
|
+
_id: z.string().default("tool_01M3V2CRENZQM76DYAS4FWQ23S"),
|
|
2161
2161
|
path: z.string(),
|
|
2162
2162
|
key: z.string(),
|
|
2163
2163
|
display_name: z.string().optional(),
|
package/src/sdk/apikeys.ts
CHANGED
|
@@ -35,7 +35,7 @@ export class ApiKeys extends ClientSDK {
|
|
|
35
35
|
* Create a new API key
|
|
36
36
|
*
|
|
37
37
|
* @remarks
|
|
38
|
-
* Mints
|
|
38
|
+
* Mints an opaque `sk-orq-` API key. Use `project_scope` to bind it to a single project and `permission_mode` with `access` to restrict permissions. A management key with API-key write access can create keys. The legacy `projects` field is also accepted. The raw token is returned once in the `token` field and is never retrievable afterwards. Unknown body fields are rejected.
|
|
39
39
|
*/
|
|
40
40
|
async create(
|
|
41
41
|
request: operations.ApiKeyCreateRequestBody,
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
export type ProjectScope = {
|
|
3
|
-
mode: string;
|
|
4
|
-
projectId?: string | undefined;
|
|
5
|
-
};
|
|
6
|
-
/** @internal */
|
|
7
|
-
export type ProjectScope$Outbound = {
|
|
8
|
-
mode: string;
|
|
9
|
-
project_id?: string | undefined;
|
|
10
|
-
};
|
|
11
|
-
/** @internal */
|
|
12
|
-
export declare const ProjectScope$outboundSchema: z.ZodType<ProjectScope$Outbound, z.ZodTypeDef, ProjectScope>;
|
|
13
|
-
export declare function projectScopeToJSON(projectScope: ProjectScope): string;
|
|
14
|
-
//# sourceMappingURL=projectscope.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"projectscope.d.ts","sourceRoot":"","sources":["../../src/models/components/projectscope.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CACjD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,YAAY,CAQZ,CAAC;AAEH,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAErE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"projectscope.js","sourceRoot":"","sources":["../../src/models/components/projectscope.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BH,gDAEC;AA9BD,0CAA4B;AAC5B,2DAA0D;AAa1D,gBAAgB;AACH,QAAA,2BAA2B,GAIpC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,YAAY;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,kBAAkB,CAAC,YAA0B;IAC3D,OAAO,IAAI,CAAC,SAAS,CAAC,mCAA2B,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;AACzE,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
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 ProjectScope = {
|
|
9
|
-
mode: string;
|
|
10
|
-
projectId?: string | undefined;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
/** @internal */
|
|
14
|
-
export type ProjectScope$Outbound = {
|
|
15
|
-
mode: string;
|
|
16
|
-
project_id?: string | undefined;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
/** @internal */
|
|
20
|
-
export const ProjectScope$outboundSchema: z.ZodType<
|
|
21
|
-
ProjectScope$Outbound,
|
|
22
|
-
z.ZodTypeDef,
|
|
23
|
-
ProjectScope
|
|
24
|
-
> = z.object({
|
|
25
|
-
mode: z.string(),
|
|
26
|
-
projectId: z.string().optional(),
|
|
27
|
-
}).transform((v) => {
|
|
28
|
-
return remap$(v, {
|
|
29
|
-
projectId: "project_id",
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
export function projectScopeToJSON(projectScope: ProjectScope): string {
|
|
34
|
-
return JSON.stringify(ProjectScope$outboundSchema.parse(projectScope));
|
|
35
|
-
}
|