@m6d/cortex 0.8.0 → 0.10.0
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/README.md +56 -10
- package/dist/index.d.ts +791 -359
- package/dist/index.js +7003 -383
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -33,23 +33,74 @@ declare const serverToolSchema: z.ZodObject<{
|
|
|
33
33
|
requiresApproval: z.ZodOptional<z.ZodBoolean>;
|
|
34
34
|
}, z.core.$strip>;
|
|
35
35
|
export type ServerTool = z.infer<typeof serverToolSchema>;
|
|
36
|
-
declare const
|
|
37
|
-
event: z.ZodLiteral<"approval_requested">;
|
|
38
|
-
agentName: z.ZodString;
|
|
39
|
-
agentId: z.ZodUUID;
|
|
36
|
+
declare const runWaitingEventSchema: z.ZodObject<{
|
|
40
37
|
threadId: z.ZodString;
|
|
41
|
-
runId: z.ZodString;
|
|
42
38
|
userId: z.ZodString;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
39
|
+
waits: z.ZodArray<z.ZodObject<{
|
|
40
|
+
kind: z.ZodEnum<{
|
|
41
|
+
approval: "approval";
|
|
42
|
+
client_tool: "client_tool";
|
|
43
|
+
}>;
|
|
46
44
|
toolCallId: z.ZodString;
|
|
47
45
|
toolName: z.ZodString;
|
|
48
46
|
input: z.ZodOptional<z.ZodUnknown>;
|
|
49
47
|
}, z.core.$strip>>;
|
|
48
|
+
agentName: z.ZodString;
|
|
49
|
+
agentId: z.ZodUUID;
|
|
50
|
+
runId: z.ZodUUID;
|
|
51
|
+
triggerName: z.ZodOptional<z.ZodString>;
|
|
52
|
+
occurredAt: z.ZodISODateTime;
|
|
53
|
+
event: z.ZodLiteral<"run_waiting">;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
export type RunWaitingEvent = z.infer<typeof runWaitingEventSchema>;
|
|
56
|
+
declare const runFinishedEventSchema: z.ZodObject<{
|
|
57
|
+
run: z.ZodObject<{
|
|
58
|
+
id: z.ZodUUID;
|
|
59
|
+
threadId: z.ZodNullable<z.ZodUUID>;
|
|
60
|
+
inputId: z.ZodNullable<z.ZodUUID>;
|
|
61
|
+
kind: z.ZodEnum<{
|
|
62
|
+
turn: "turn";
|
|
63
|
+
subagent: "subagent";
|
|
64
|
+
tool: "tool";
|
|
65
|
+
}>;
|
|
66
|
+
subagentRunId: z.ZodNullable<z.ZodString>;
|
|
67
|
+
status: z.ZodEnum<{
|
|
68
|
+
completed: "completed";
|
|
69
|
+
cancelled: "cancelled";
|
|
70
|
+
failed: "failed";
|
|
71
|
+
running: "running";
|
|
72
|
+
waiting: "waiting";
|
|
73
|
+
}>;
|
|
74
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
75
|
+
timeout: "timeout";
|
|
76
|
+
cancelled: "cancelled";
|
|
77
|
+
no_output: "no_output";
|
|
78
|
+
invalid_output: "invalid_output";
|
|
79
|
+
stopped: "stopped";
|
|
80
|
+
parent_cancelled: "parent_cancelled";
|
|
81
|
+
lost: "lost";
|
|
82
|
+
}>>;
|
|
83
|
+
result: z.ZodUnknown;
|
|
84
|
+
waits: z.ZodArray<z.ZodObject<{
|
|
85
|
+
kind: z.ZodEnum<{
|
|
86
|
+
approval: "approval";
|
|
87
|
+
client_tool: "client_tool";
|
|
88
|
+
}>;
|
|
89
|
+
toolCallId: z.ZodString;
|
|
90
|
+
toolName: z.ZodString;
|
|
91
|
+
input: z.ZodUnknown;
|
|
92
|
+
}, z.core.$strip>>;
|
|
93
|
+
createdAt: z.ZodISODateTime;
|
|
94
|
+
finishedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
agentName: z.ZodString;
|
|
97
|
+
agentId: z.ZodUUID;
|
|
98
|
+
runId: z.ZodUUID;
|
|
99
|
+
triggerName: z.ZodOptional<z.ZodString>;
|
|
50
100
|
occurredAt: z.ZodISODateTime;
|
|
101
|
+
event: z.ZodLiteral<"run_finished">;
|
|
51
102
|
}, z.core.$strip>;
|
|
52
|
-
export type
|
|
103
|
+
export type RunFinishedEvent = z.infer<typeof runFinishedEventSchema>;
|
|
53
104
|
declare const variablesRequestSchema: z.ZodObject<{
|
|
54
105
|
agent: z.ZodObject<{
|
|
55
106
|
id: z.ZodUUID;
|
|
@@ -61,6 +112,15 @@ declare const variablesRequestSchema: z.ZodObject<{
|
|
|
61
112
|
user: z.ZodNullable<z.ZodObject<{
|
|
62
113
|
id: z.ZodString;
|
|
63
114
|
claims: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
115
|
+
delegated: z.ZodOptional<z.ZodObject<{
|
|
116
|
+
reason: z.ZodEnum<{
|
|
117
|
+
trigger: "trigger";
|
|
118
|
+
schedule: "schedule";
|
|
119
|
+
run: "run";
|
|
120
|
+
queued: "queued";
|
|
121
|
+
}>;
|
|
122
|
+
runId: z.ZodUUID;
|
|
123
|
+
}, z.core.$strip>>;
|
|
64
124
|
}, z.core.$strip>>;
|
|
65
125
|
trigger: z.ZodOptional<z.ZodObject<{
|
|
66
126
|
name: z.ZodString;
|
|
@@ -73,6 +133,15 @@ declare const toolRequestSchema: z.ZodObject<{
|
|
|
73
133
|
user: z.ZodNullable<z.ZodObject<{
|
|
74
134
|
id: z.ZodString;
|
|
75
135
|
claims: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
136
|
+
delegated: z.ZodOptional<z.ZodObject<{
|
|
137
|
+
reason: z.ZodEnum<{
|
|
138
|
+
trigger: "trigger";
|
|
139
|
+
schedule: "schedule";
|
|
140
|
+
run: "run";
|
|
141
|
+
queued: "queued";
|
|
142
|
+
}>;
|
|
143
|
+
runId: z.ZodUUID;
|
|
144
|
+
}, z.core.$strip>>;
|
|
76
145
|
}, z.core.$strip>>;
|
|
77
146
|
agent: z.ZodObject<{
|
|
78
147
|
id: z.ZodUUID;
|
|
@@ -121,8 +190,18 @@ export type ServerOptions<TInputs extends Record<string, z.ZodType>> = {
|
|
|
121
190
|
sub: string;
|
|
122
191
|
claims?: Record<string, unknown>;
|
|
123
192
|
} | null>;
|
|
193
|
+
/**
|
|
194
|
+
* Lets Cortex act for a user whose token is gone (a message that waited
|
|
195
|
+
* past it, a scheduled or triggered run): such a call carries no token,
|
|
196
|
+
* and `context.user.delegated` says why and which run acts, so a tool can
|
|
197
|
+
* refuse what it should not do for a user who is not there. Without it,
|
|
198
|
+
* such a call names no user (`context.user` is null).
|
|
199
|
+
*/
|
|
200
|
+
delegation?: boolean;
|
|
201
|
+
/** What to do with each event the server hears. */
|
|
124
202
|
events?: {
|
|
125
|
-
|
|
203
|
+
run_waiting?: (event: RunWaitingEvent) => Awaitable<void>;
|
|
204
|
+
run_finished?: (event: RunFinishedEvent) => Awaitable<void>;
|
|
126
205
|
};
|
|
127
206
|
};
|
|
128
207
|
/**
|
|
@@ -1220,100 +1299,72 @@ export type DatasetHostOptions<TUser> = {
|
|
|
1220
1299
|
* so a source with a malformed definition fails at startup, not on a query.
|
|
1221
1300
|
*/
|
|
1222
1301
|
export declare function defineDatasetHost<TUser>(options: DatasetHostOptions<TUser>): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
|
|
1223
|
-
declare const
|
|
1302
|
+
declare const inputReceiptSchema: z.ZodDiscriminatedUnion<[
|
|
1224
1303
|
z.ZodObject<{
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
runId: z.ZodString;
|
|
1235
|
-
approvals: z.ZodArray<z.ZodObject<{
|
|
1236
|
-
toolCallId: z.ZodString;
|
|
1237
|
-
toolName: z.ZodString;
|
|
1238
|
-
input: z.ZodUnknown;
|
|
1239
|
-
}, z.core.$strip>>;
|
|
1240
|
-
}, z.core.$strip>,
|
|
1241
|
-
z.ZodObject<{
|
|
1242
|
-
firingId: z.ZodUUID;
|
|
1243
|
-
outcome: z.ZodLiteral<"completed">;
|
|
1244
|
-
threadId: z.ZodUUID;
|
|
1245
|
-
runId: z.ZodString;
|
|
1246
|
-
output: z.ZodUnknown;
|
|
1247
|
-
}, z.core.$strip>,
|
|
1248
|
-
z.ZodObject<{
|
|
1249
|
-
firingId: z.ZodUUID;
|
|
1250
|
-
outcome: z.ZodLiteral<"failed">;
|
|
1251
|
-
threadId: z.ZodUUID;
|
|
1252
|
-
runId: z.ZodString;
|
|
1253
|
-
reason: z.ZodNullable<z.ZodEnum<{
|
|
1254
|
-
busy: "busy";
|
|
1255
|
-
approval_pending: "approval_pending";
|
|
1256
|
-
budget: "budget";
|
|
1257
|
-
rate_limited: "rate_limited";
|
|
1258
|
-
invalid_payload: "invalid_payload";
|
|
1259
|
-
missing_thread_key: "missing_thread_key";
|
|
1260
|
-
no_turn: "no_turn";
|
|
1261
|
-
no_output: "no_output";
|
|
1262
|
-
invalid_output: "invalid_output";
|
|
1263
|
-
}>>;
|
|
1304
|
+
inputId: z.ZodUUID;
|
|
1305
|
+
state: z.ZodLiteral<"waiting">;
|
|
1306
|
+
delivery: z.ZodEnum<{
|
|
1307
|
+
prompt: "prompt";
|
|
1308
|
+
steer: "steer";
|
|
1309
|
+
followUp: "followUp";
|
|
1310
|
+
answer: "answer";
|
|
1311
|
+
note: "note";
|
|
1312
|
+
}>;
|
|
1264
1313
|
}, z.core.$strip>,
|
|
1265
1314
|
z.ZodObject<{
|
|
1266
|
-
|
|
1267
|
-
|
|
1315
|
+
inputId: z.ZodNullable<z.ZodUUID>;
|
|
1316
|
+
state: z.ZodLiteral<"refused">;
|
|
1268
1317
|
reason: z.ZodEnum<{
|
|
1269
1318
|
busy: "busy";
|
|
1270
1319
|
approval_pending: "approval_pending";
|
|
1271
|
-
|
|
1320
|
+
conflict: "conflict";
|
|
1272
1321
|
rate_limited: "rate_limited";
|
|
1322
|
+
budget: "budget";
|
|
1323
|
+
full: "full";
|
|
1324
|
+
not_waiting: "not_waiting";
|
|
1273
1325
|
}>;
|
|
1274
|
-
threadId: z.ZodNullable<z.ZodUUID>;
|
|
1275
1326
|
}, z.core.$strip>,
|
|
1276
1327
|
z.ZodObject<{
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
}, z.core.$strip>>;
|
|
1328
|
+
inputId: z.ZodUUID;
|
|
1329
|
+
state: z.ZodLiteral<"cancelled">;
|
|
1330
|
+
reason: z.ZodEnum<{
|
|
1331
|
+
stopped: "stopped";
|
|
1332
|
+
}>;
|
|
1283
1333
|
}, z.core.$strip>
|
|
1284
|
-
], "
|
|
1285
|
-
export type
|
|
1286
|
-
declare const
|
|
1287
|
-
toolCallId: z.ZodString;
|
|
1288
|
-
approved: z.ZodBoolean;
|
|
1289
|
-
}, z.core.$strip>;
|
|
1290
|
-
export type TriggerFiringAnswer = z.infer<typeof triggerFiringAnswerSchema>;
|
|
1291
|
-
declare const triggerFiringRecordSchema: z.ZodObject<{
|
|
1334
|
+
], "state">;
|
|
1335
|
+
export type InputReceipt = z.infer<typeof inputReceiptSchema>;
|
|
1336
|
+
declare const runRecordSchema: z.ZodObject<{
|
|
1292
1337
|
id: z.ZodUUID;
|
|
1293
|
-
triggerName: z.ZodString;
|
|
1294
1338
|
threadId: z.ZodNullable<z.ZodUUID>;
|
|
1295
|
-
|
|
1296
|
-
|
|
1339
|
+
inputId: z.ZodNullable<z.ZodUUID>;
|
|
1340
|
+
kind: z.ZodEnum<{
|
|
1341
|
+
turn: "turn";
|
|
1342
|
+
subagent: "subagent";
|
|
1343
|
+
tool: "tool";
|
|
1344
|
+
}>;
|
|
1345
|
+
subagentRunId: z.ZodNullable<z.ZodString>;
|
|
1346
|
+
status: z.ZodEnum<{
|
|
1297
1347
|
completed: "completed";
|
|
1348
|
+
cancelled: "cancelled";
|
|
1298
1349
|
failed: "failed";
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
awaiting_approval: "awaiting_approval";
|
|
1302
|
-
rejected: "rejected";
|
|
1350
|
+
running: "running";
|
|
1351
|
+
waiting: "waiting";
|
|
1303
1352
|
}>;
|
|
1304
1353
|
reason: z.ZodNullable<z.ZodEnum<{
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
budget: "budget";
|
|
1308
|
-
rate_limited: "rate_limited";
|
|
1309
|
-
invalid_payload: "invalid_payload";
|
|
1310
|
-
missing_thread_key: "missing_thread_key";
|
|
1311
|
-
no_turn: "no_turn";
|
|
1354
|
+
timeout: "timeout";
|
|
1355
|
+
cancelled: "cancelled";
|
|
1312
1356
|
no_output: "no_output";
|
|
1313
1357
|
invalid_output: "invalid_output";
|
|
1358
|
+
stopped: "stopped";
|
|
1359
|
+
parent_cancelled: "parent_cancelled";
|
|
1360
|
+
lost: "lost";
|
|
1314
1361
|
}>>;
|
|
1315
|
-
|
|
1316
|
-
|
|
1362
|
+
result: z.ZodUnknown;
|
|
1363
|
+
waits: z.ZodArray<z.ZodObject<{
|
|
1364
|
+
kind: z.ZodEnum<{
|
|
1365
|
+
approval: "approval";
|
|
1366
|
+
client_tool: "client_tool";
|
|
1367
|
+
}>;
|
|
1317
1368
|
toolCallId: z.ZodString;
|
|
1318
1369
|
toolName: z.ZodString;
|
|
1319
1370
|
input: z.ZodUnknown;
|
|
@@ -1321,131 +1372,233 @@ declare const triggerFiringRecordSchema: z.ZodObject<{
|
|
|
1321
1372
|
createdAt: z.ZodISODateTime;
|
|
1322
1373
|
finishedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1323
1374
|
}, z.core.$strip>;
|
|
1324
|
-
export type
|
|
1375
|
+
export type RunRecord = z.infer<typeof runRecordSchema>;
|
|
1376
|
+
declare const runAnswerSchema: z.ZodObject<{
|
|
1377
|
+
toolCallId: z.ZodString;
|
|
1378
|
+
approved: z.ZodBoolean;
|
|
1379
|
+
}, z.core.$strip>;
|
|
1380
|
+
export type RunAnswer = z.infer<typeof runAnswerSchema>;
|
|
1381
|
+
declare const MESSAGE_BUSY: readonly [
|
|
1382
|
+
"queue",
|
|
1383
|
+
"steer"
|
|
1384
|
+
];
|
|
1385
|
+
export type MessageBusy = (typeof MESSAGE_BUSY)[number];
|
|
1386
|
+
declare const fireAnswerSchema: z.ZodUnion<readonly [
|
|
1387
|
+
z.ZodObject<{
|
|
1388
|
+
inputId: z.ZodUUID;
|
|
1389
|
+
state: z.ZodLiteral<"started">;
|
|
1390
|
+
runId: z.ZodUUID;
|
|
1391
|
+
threadId: z.ZodUUID;
|
|
1392
|
+
}, z.core.$strip>,
|
|
1393
|
+
z.ZodObject<{
|
|
1394
|
+
state: z.ZodLiteral<"rejected">;
|
|
1395
|
+
issues: z.ZodArray<z.ZodObject<{
|
|
1396
|
+
path: z.ZodString;
|
|
1397
|
+
message: z.ZodString;
|
|
1398
|
+
}, z.core.$strip>>;
|
|
1399
|
+
}, z.core.$strip>,
|
|
1400
|
+
z.ZodDiscriminatedUnion<[
|
|
1401
|
+
z.ZodObject<{
|
|
1402
|
+
inputId: z.ZodUUID;
|
|
1403
|
+
state: z.ZodLiteral<"waiting">;
|
|
1404
|
+
delivery: z.ZodEnum<{
|
|
1405
|
+
prompt: "prompt";
|
|
1406
|
+
steer: "steer";
|
|
1407
|
+
followUp: "followUp";
|
|
1408
|
+
answer: "answer";
|
|
1409
|
+
note: "note";
|
|
1410
|
+
}>;
|
|
1411
|
+
}, z.core.$strip>,
|
|
1412
|
+
z.ZodObject<{
|
|
1413
|
+
inputId: z.ZodNullable<z.ZodUUID>;
|
|
1414
|
+
state: z.ZodLiteral<"refused">;
|
|
1415
|
+
reason: z.ZodEnum<{
|
|
1416
|
+
busy: "busy";
|
|
1417
|
+
approval_pending: "approval_pending";
|
|
1418
|
+
conflict: "conflict";
|
|
1419
|
+
rate_limited: "rate_limited";
|
|
1420
|
+
budget: "budget";
|
|
1421
|
+
full: "full";
|
|
1422
|
+
not_waiting: "not_waiting";
|
|
1423
|
+
}>;
|
|
1424
|
+
}, z.core.$strip>,
|
|
1425
|
+
z.ZodObject<{
|
|
1426
|
+
inputId: z.ZodUUID;
|
|
1427
|
+
state: z.ZodLiteral<"cancelled">;
|
|
1428
|
+
reason: z.ZodEnum<{
|
|
1429
|
+
stopped: "stopped";
|
|
1430
|
+
}>;
|
|
1431
|
+
}, z.core.$strip>
|
|
1432
|
+
], "state">,
|
|
1433
|
+
z.ZodObject<{
|
|
1434
|
+
id: z.ZodUUID;
|
|
1435
|
+
threadId: z.ZodNullable<z.ZodUUID>;
|
|
1436
|
+
inputId: z.ZodNullable<z.ZodUUID>;
|
|
1437
|
+
kind: z.ZodEnum<{
|
|
1438
|
+
turn: "turn";
|
|
1439
|
+
subagent: "subagent";
|
|
1440
|
+
tool: "tool";
|
|
1441
|
+
}>;
|
|
1442
|
+
subagentRunId: z.ZodNullable<z.ZodString>;
|
|
1443
|
+
status: z.ZodEnum<{
|
|
1444
|
+
completed: "completed";
|
|
1445
|
+
cancelled: "cancelled";
|
|
1446
|
+
failed: "failed";
|
|
1447
|
+
running: "running";
|
|
1448
|
+
waiting: "waiting";
|
|
1449
|
+
}>;
|
|
1450
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
1451
|
+
timeout: "timeout";
|
|
1452
|
+
cancelled: "cancelled";
|
|
1453
|
+
no_output: "no_output";
|
|
1454
|
+
invalid_output: "invalid_output";
|
|
1455
|
+
stopped: "stopped";
|
|
1456
|
+
parent_cancelled: "parent_cancelled";
|
|
1457
|
+
lost: "lost";
|
|
1458
|
+
}>>;
|
|
1459
|
+
result: z.ZodUnknown;
|
|
1460
|
+
waits: z.ZodArray<z.ZodObject<{
|
|
1461
|
+
kind: z.ZodEnum<{
|
|
1462
|
+
approval: "approval";
|
|
1463
|
+
client_tool: "client_tool";
|
|
1464
|
+
}>;
|
|
1465
|
+
toolCallId: z.ZodString;
|
|
1466
|
+
toolName: z.ZodString;
|
|
1467
|
+
input: z.ZodUnknown;
|
|
1468
|
+
}, z.core.$strip>>;
|
|
1469
|
+
createdAt: z.ZodISODateTime;
|
|
1470
|
+
finishedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1471
|
+
}, z.core.$strip>
|
|
1472
|
+
]>;
|
|
1473
|
+
export type FireAnswer = z.infer<typeof fireAnswerSchema>;
|
|
1325
1474
|
export type TriggerClientConfig = {
|
|
1326
1475
|
/** The engine's public origin (`ENGINE_PUBLIC_URL`) as the caller reaches it. */
|
|
1327
1476
|
url: string;
|
|
1328
1477
|
/** The agent whose triggers are fired. */
|
|
1329
1478
|
agent: string;
|
|
1330
|
-
/** The value of the fire credential the caller's triggers
|
|
1479
|
+
/** The value of the fire credential shared by the caller's triggers. */
|
|
1331
1480
|
secret?: string;
|
|
1332
|
-
/**
|
|
1481
|
+
/** Each trigger's own secret; a non-blank one wins over `secret`. */
|
|
1333
1482
|
secrets?: Record<string, string>;
|
|
1334
|
-
/** Defaults to the global fetch
|
|
1483
|
+
/** Defaults to the global fetch. */
|
|
1335
1484
|
fetch?: typeof globalThis.fetch;
|
|
1336
1485
|
};
|
|
1337
|
-
/**
|
|
1486
|
+
/** An HTTP error or a response that does not match the endpoint's contract. */
|
|
1338
1487
|
export declare class TriggerClientError extends Error {
|
|
1339
1488
|
readonly status: number;
|
|
1340
1489
|
readonly body: string;
|
|
1341
1490
|
constructor(status: number, body: string);
|
|
1342
1491
|
}
|
|
1343
|
-
|
|
1344
|
-
|
|
1492
|
+
export type WaitOptions = {
|
|
1493
|
+
wait?: number;
|
|
1494
|
+
signal?: AbortSignal;
|
|
1495
|
+
};
|
|
1345
1496
|
export declare function createTriggerClient(config: TriggerClientConfig): {
|
|
1346
|
-
/**
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1497
|
+
/**
|
|
1498
|
+
* Fires a trigger. Narrow the result by `state`, or by `status` for a
|
|
1499
|
+
* run record. `busy` picks where it goes while a run holds its
|
|
1500
|
+
* thread, within the trigger's busy rule: `steer` or `queue`.
|
|
1501
|
+
*/
|
|
1502
|
+
fire(trigger: string, payload: unknown, options?: WaitOptions & {
|
|
1503
|
+
idempotencyKey?: string;
|
|
1504
|
+
busy?: MessageBusy;
|
|
1350
1505
|
}): Promise<{
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
runId: string;
|
|
1506
|
+
inputId: string;
|
|
1507
|
+
state: "waiting";
|
|
1508
|
+
delivery: "prompt" | "steer" | "followUp" | "answer" | "note";
|
|
1355
1509
|
} | {
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1510
|
+
inputId: string | null;
|
|
1511
|
+
state: "refused";
|
|
1512
|
+
reason: "busy" | "approval_pending" | "conflict" | "rate_limited" | "budget" | "full" | "not_waiting";
|
|
1513
|
+
} | {
|
|
1514
|
+
inputId: string;
|
|
1515
|
+
state: "cancelled";
|
|
1516
|
+
reason: "stopped";
|
|
1517
|
+
} | {
|
|
1518
|
+
id: string;
|
|
1519
|
+
threadId: string | null;
|
|
1520
|
+
inputId: string | null;
|
|
1521
|
+
kind: "turn" | "subagent" | "tool";
|
|
1522
|
+
subagentRunId: string | null;
|
|
1523
|
+
status: "completed" | "cancelled" | "failed" | "running" | "waiting";
|
|
1524
|
+
reason: "timeout" | "cancelled" | "no_output" | "invalid_output" | "stopped" | "parent_cancelled" | "lost" | null;
|
|
1525
|
+
result: unknown;
|
|
1526
|
+
waits: {
|
|
1527
|
+
kind: "approval" | "client_tool";
|
|
1361
1528
|
toolCallId: string;
|
|
1362
1529
|
toolName: string;
|
|
1363
1530
|
input: unknown;
|
|
1364
1531
|
}[];
|
|
1532
|
+
createdAt: string;
|
|
1533
|
+
finishedAt: string | null;
|
|
1365
1534
|
} | {
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
threadId: string;
|
|
1535
|
+
inputId: string;
|
|
1536
|
+
state: "started";
|
|
1369
1537
|
runId: string;
|
|
1370
|
-
output: unknown;
|
|
1371
|
-
} | {
|
|
1372
|
-
firingId: string;
|
|
1373
|
-
outcome: "failed";
|
|
1374
1538
|
threadId: string;
|
|
1375
|
-
runId: string;
|
|
1376
|
-
reason: "busy" | "approval_pending" | "budget" | "rate_limited" | "invalid_payload" | "missing_thread_key" | "no_turn" | "no_output" | "invalid_output" | null;
|
|
1377
|
-
} | {
|
|
1378
|
-
firingId: string;
|
|
1379
|
-
outcome: "dropped";
|
|
1380
|
-
reason: "busy" | "approval_pending" | "budget" | "rate_limited";
|
|
1381
|
-
threadId: string | null;
|
|
1382
1539
|
} | {
|
|
1383
|
-
|
|
1384
|
-
outcome: "rejected";
|
|
1540
|
+
state: "rejected";
|
|
1385
1541
|
issues: {
|
|
1386
1542
|
path: string;
|
|
1387
1543
|
message: string;
|
|
1388
1544
|
}[];
|
|
1389
1545
|
}>;
|
|
1390
|
-
/**
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
wait?: number;
|
|
1396
|
-
signal?: AbortSignal;
|
|
1397
|
-
}): Promise<{
|
|
1398
|
-
firingId: string;
|
|
1399
|
-
outcome: "started";
|
|
1400
|
-
threadId: string;
|
|
1401
|
-
runId: string;
|
|
1546
|
+
/** Decides one call a waiting run parked on, using its trigger's secret; answered as a fire is. */
|
|
1547
|
+
answer(trigger: string, runId: string, decision: RunAnswer, options?: WaitOptions): Promise<{
|
|
1548
|
+
inputId: string;
|
|
1549
|
+
state: "waiting";
|
|
1550
|
+
delivery: "prompt" | "steer" | "followUp" | "answer" | "note";
|
|
1402
1551
|
} | {
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1552
|
+
inputId: string | null;
|
|
1553
|
+
state: "refused";
|
|
1554
|
+
reason: "busy" | "approval_pending" | "conflict" | "rate_limited" | "budget" | "full" | "not_waiting";
|
|
1555
|
+
} | {
|
|
1556
|
+
inputId: string;
|
|
1557
|
+
state: "cancelled";
|
|
1558
|
+
reason: "stopped";
|
|
1559
|
+
} | {
|
|
1560
|
+
id: string;
|
|
1561
|
+
threadId: string | null;
|
|
1562
|
+
inputId: string | null;
|
|
1563
|
+
kind: "turn" | "subagent" | "tool";
|
|
1564
|
+
subagentRunId: string | null;
|
|
1565
|
+
status: "completed" | "cancelled" | "failed" | "running" | "waiting";
|
|
1566
|
+
reason: "timeout" | "cancelled" | "no_output" | "invalid_output" | "stopped" | "parent_cancelled" | "lost" | null;
|
|
1567
|
+
result: unknown;
|
|
1568
|
+
waits: {
|
|
1569
|
+
kind: "approval" | "client_tool";
|
|
1408
1570
|
toolCallId: string;
|
|
1409
1571
|
toolName: string;
|
|
1410
1572
|
input: unknown;
|
|
1411
1573
|
}[];
|
|
1574
|
+
createdAt: string;
|
|
1575
|
+
finishedAt: string | null;
|
|
1412
1576
|
} | {
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
threadId: string;
|
|
1577
|
+
inputId: string;
|
|
1578
|
+
state: "started";
|
|
1416
1579
|
runId: string;
|
|
1417
|
-
output: unknown;
|
|
1418
|
-
} | {
|
|
1419
|
-
firingId: string;
|
|
1420
|
-
outcome: "failed";
|
|
1421
1580
|
threadId: string;
|
|
1422
|
-
runId: string;
|
|
1423
|
-
reason: "busy" | "approval_pending" | "budget" | "rate_limited" | "invalid_payload" | "missing_thread_key" | "no_turn" | "no_output" | "invalid_output" | null;
|
|
1424
|
-
} | {
|
|
1425
|
-
firingId: string;
|
|
1426
|
-
outcome: "dropped";
|
|
1427
|
-
reason: "busy" | "approval_pending" | "budget" | "rate_limited";
|
|
1428
|
-
threadId: string | null;
|
|
1429
1581
|
} | {
|
|
1430
|
-
|
|
1431
|
-
outcome: "rejected";
|
|
1582
|
+
state: "rejected";
|
|
1432
1583
|
issues: {
|
|
1433
1584
|
path: string;
|
|
1434
1585
|
message: string;
|
|
1435
1586
|
}[];
|
|
1436
1587
|
}>;
|
|
1437
|
-
/** Reads
|
|
1438
|
-
read(trigger: string,
|
|
1588
|
+
/** Reads a run, including the calls it waits on. */
|
|
1589
|
+
read(trigger: string, runId: string, options?: {
|
|
1439
1590
|
signal?: AbortSignal;
|
|
1440
1591
|
}): Promise<{
|
|
1441
1592
|
id: string;
|
|
1442
|
-
triggerName: string;
|
|
1443
1593
|
threadId: string | null;
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1594
|
+
inputId: string | null;
|
|
1595
|
+
kind: "turn" | "subagent" | "tool";
|
|
1596
|
+
subagentRunId: string | null;
|
|
1597
|
+
status: "completed" | "cancelled" | "failed" | "running" | "waiting";
|
|
1598
|
+
reason: "timeout" | "cancelled" | "no_output" | "invalid_output" | "stopped" | "parent_cancelled" | "lost" | null;
|
|
1599
|
+
result: unknown;
|
|
1600
|
+
waits: {
|
|
1601
|
+
kind: "approval" | "client_tool";
|
|
1449
1602
|
toolCallId: string;
|
|
1450
1603
|
toolName: string;
|
|
1451
1604
|
input: unknown;
|
|
@@ -1453,6 +1606,37 @@ export declare function createTriggerClient(config: TriggerClientConfig): {
|
|
|
1453
1606
|
createdAt: string;
|
|
1454
1607
|
finishedAt: string | null;
|
|
1455
1608
|
}>;
|
|
1609
|
+
/** Lists a trigger's runs newest first. `before` is `<createdAt ISO>,<run id>`. */
|
|
1610
|
+
list(trigger: string, options?: {
|
|
1611
|
+
limit?: number;
|
|
1612
|
+
before?: string;
|
|
1613
|
+
signal?: AbortSignal;
|
|
1614
|
+
}): Promise<{
|
|
1615
|
+
runs: {
|
|
1616
|
+
id: string;
|
|
1617
|
+
threadId: string | null;
|
|
1618
|
+
inputId: string | null;
|
|
1619
|
+
kind: "turn" | "subagent" | "tool";
|
|
1620
|
+
subagentRunId: string | null;
|
|
1621
|
+
status: "completed" | "cancelled" | "failed" | "running" | "waiting";
|
|
1622
|
+
reason: "timeout" | "cancelled" | "no_output" | "invalid_output" | "stopped" | "parent_cancelled" | "lost" | null;
|
|
1623
|
+
result: unknown;
|
|
1624
|
+
waits: {
|
|
1625
|
+
kind: "approval" | "client_tool";
|
|
1626
|
+
toolCallId: string;
|
|
1627
|
+
toolName: string;
|
|
1628
|
+
input: unknown;
|
|
1629
|
+
}[];
|
|
1630
|
+
createdAt: string;
|
|
1631
|
+
finishedAt: string | null;
|
|
1632
|
+
}[];
|
|
1633
|
+
}>;
|
|
1634
|
+
/** Cancels a run, using its trigger's secret. */
|
|
1635
|
+
cancel(trigger: string, runId: string, options?: {
|
|
1636
|
+
signal?: AbortSignal;
|
|
1637
|
+
}): Promise<{
|
|
1638
|
+
cancelled: boolean;
|
|
1639
|
+
}>;
|
|
1456
1640
|
};
|
|
1457
1641
|
export type ManifestsPreviewSchema0 = {
|
|
1458
1642
|
type: "string" | "number" | "integer" | "boolean" | "object" | "array" | [
|
|
@@ -1676,7 +1860,7 @@ export type ManagementProcedures = {
|
|
|
1676
1860
|
updatedAt: string;
|
|
1677
1861
|
};
|
|
1678
1862
|
};
|
|
1679
|
-
/** Create an agent on a registered server, or on none (`serverId` null), fixed for good either way. An agent with no server has no native tools, no server variables and no server auth, and publishes only on a chat model of its own. The draft has no prompt yet; save one with agents.savePrompt before publishing. */
|
|
1863
|
+
/** Create an agent on a registered server, or on none (`serverId` null), fixed for good either way. An agent with no server has no native tools, no server variables and no server auth, and publishes only on a chat model of its own. The draft has no prompt yet; save one with agents.savePrompt before publishing. Refused as `agent_limit_reached` once the license's agent count is reached. */
|
|
1680
1864
|
"agents.create": {
|
|
1681
1865
|
input: {
|
|
1682
1866
|
/** A name: lowercase letters, digits, and single hyphens. */
|
|
@@ -1695,12 +1879,15 @@ export type ManagementProcedures = {
|
|
|
1695
1879
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
1696
1880
|
promptDraft: string;
|
|
1697
1881
|
ragEnabled: boolean;
|
|
1882
|
+
subagentsEnabled: boolean;
|
|
1883
|
+
checkBacksEnabled: boolean;
|
|
1698
1884
|
toolRegistryEnabled: boolean;
|
|
1699
1885
|
serviceRegistryEnabled: boolean;
|
|
1700
1886
|
attachmentsEnabled: boolean;
|
|
1701
1887
|
fetchImageHostnames: string | number | boolean | null | Record<string, unknown> | Array<unknown>;
|
|
1702
1888
|
locationPicker: boolean;
|
|
1703
|
-
|
|
1889
|
+
messages: boolean;
|
|
1890
|
+
whileBusy: "refuse" | "queue" | "steer";
|
|
1704
1891
|
media: Array<"mermaid" | "vega-lite" | "map" | "report">;
|
|
1705
1892
|
suggestions: Record<"en" | "ar", Array<{
|
|
1706
1893
|
title: string;
|
|
@@ -1740,12 +1927,15 @@ export type ManagementProcedures = {
|
|
|
1740
1927
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
1741
1928
|
promptDraft: string;
|
|
1742
1929
|
ragEnabled: boolean;
|
|
1930
|
+
subagentsEnabled: boolean;
|
|
1931
|
+
checkBacksEnabled: boolean;
|
|
1743
1932
|
toolRegistryEnabled: boolean;
|
|
1744
1933
|
serviceRegistryEnabled: boolean;
|
|
1745
1934
|
attachmentsEnabled: boolean;
|
|
1746
1935
|
fetchImageHostnames: string | number | boolean | null | Record<string, unknown> | Array<unknown>;
|
|
1747
1936
|
locationPicker: boolean;
|
|
1748
|
-
|
|
1937
|
+
messages: boolean;
|
|
1938
|
+
whileBusy: "refuse" | "queue" | "steer";
|
|
1749
1939
|
media: Array<"mermaid" | "vega-lite" | "map" | "report">;
|
|
1750
1940
|
suggestions: Record<"en" | "ar", Array<{
|
|
1751
1941
|
title: string;
|
|
@@ -1797,12 +1987,15 @@ export type ManagementProcedures = {
|
|
|
1797
1987
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
1798
1988
|
promptDraft: string;
|
|
1799
1989
|
ragEnabled: boolean;
|
|
1990
|
+
subagentsEnabled: boolean;
|
|
1991
|
+
checkBacksEnabled: boolean;
|
|
1800
1992
|
toolRegistryEnabled: boolean;
|
|
1801
1993
|
serviceRegistryEnabled: boolean;
|
|
1802
1994
|
attachmentsEnabled: boolean;
|
|
1803
1995
|
fetchImageHostnames: string | number | boolean | null | Record<string, unknown> | Array<unknown>;
|
|
1804
1996
|
locationPicker: boolean;
|
|
1805
|
-
|
|
1997
|
+
messages: boolean;
|
|
1998
|
+
whileBusy: "refuse" | "queue" | "steer";
|
|
1806
1999
|
media: Array<"mermaid" | "vega-lite" | "map" | "report">;
|
|
1807
2000
|
suggestions: Record<"en" | "ar", Array<{
|
|
1808
2001
|
title: string;
|
|
@@ -1963,12 +2156,15 @@ export type ManagementProcedures = {
|
|
|
1963
2156
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
1964
2157
|
promptDraft: string;
|
|
1965
2158
|
ragEnabled: boolean;
|
|
2159
|
+
subagentsEnabled: boolean;
|
|
2160
|
+
checkBacksEnabled: boolean;
|
|
1966
2161
|
toolRegistryEnabled: boolean;
|
|
1967
2162
|
serviceRegistryEnabled: boolean;
|
|
1968
2163
|
attachmentsEnabled: boolean;
|
|
1969
2164
|
fetchImageHostnames: string | number | boolean | null | Record<string, unknown> | Array<unknown>;
|
|
1970
2165
|
locationPicker: boolean;
|
|
1971
|
-
|
|
2166
|
+
messages: boolean;
|
|
2167
|
+
whileBusy: "refuse" | "queue" | "steer";
|
|
1972
2168
|
media: Array<"mermaid" | "vega-lite" | "map" | "report">;
|
|
1973
2169
|
suggestions: Record<"en" | "ar", Array<{
|
|
1974
2170
|
title: string;
|
|
@@ -1997,11 +2193,14 @@ export type ManagementProcedures = {
|
|
|
1997
2193
|
ragEnabled?: boolean;
|
|
1998
2194
|
toolRegistryEnabled?: boolean;
|
|
1999
2195
|
serviceRegistryEnabled?: boolean;
|
|
2196
|
+
subagentsEnabled?: boolean;
|
|
2197
|
+
checkBacksEnabled?: boolean;
|
|
2000
2198
|
attachmentsEnabled?: boolean;
|
|
2001
2199
|
fetchImageHostnames?: Array<string>;
|
|
2002
2200
|
locationPicker?: boolean;
|
|
2003
2201
|
media?: Array<"mermaid" | "vega-lite" | "map" | "report">;
|
|
2004
|
-
|
|
2202
|
+
messages?: boolean;
|
|
2203
|
+
whileBusy?: "refuse" | "queue" | "steer";
|
|
2005
2204
|
defaultLocale?: "en" | "ar";
|
|
2006
2205
|
context?: {
|
|
2007
2206
|
maxContextTokens: number;
|
|
@@ -2073,12 +2272,15 @@ export type ManagementProcedures = {
|
|
|
2073
2272
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
2074
2273
|
promptDraft: string;
|
|
2075
2274
|
ragEnabled: boolean;
|
|
2275
|
+
subagentsEnabled: boolean;
|
|
2276
|
+
checkBacksEnabled: boolean;
|
|
2076
2277
|
toolRegistryEnabled: boolean;
|
|
2077
2278
|
serviceRegistryEnabled: boolean;
|
|
2078
2279
|
attachmentsEnabled: boolean;
|
|
2079
2280
|
fetchImageHostnames: string | number | boolean | null | Record<string, unknown> | Array<unknown>;
|
|
2080
2281
|
locationPicker: boolean;
|
|
2081
|
-
|
|
2282
|
+
messages: boolean;
|
|
2283
|
+
whileBusy: "refuse" | "queue" | "steer";
|
|
2082
2284
|
media: Array<"mermaid" | "vega-lite" | "map" | "report">;
|
|
2083
2285
|
suggestions: Record<"en" | "ar", Array<{
|
|
2084
2286
|
title: string;
|
|
@@ -2118,12 +2320,15 @@ export type ManagementProcedures = {
|
|
|
2118
2320
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
2119
2321
|
promptDraft: string;
|
|
2120
2322
|
ragEnabled: boolean;
|
|
2323
|
+
subagentsEnabled: boolean;
|
|
2324
|
+
checkBacksEnabled: boolean;
|
|
2121
2325
|
toolRegistryEnabled: boolean;
|
|
2122
2326
|
serviceRegistryEnabled: boolean;
|
|
2123
2327
|
attachmentsEnabled: boolean;
|
|
2124
2328
|
fetchImageHostnames: string | number | boolean | null | Record<string, unknown> | Array<unknown>;
|
|
2125
2329
|
locationPicker: boolean;
|
|
2126
|
-
|
|
2330
|
+
messages: boolean;
|
|
2331
|
+
whileBusy: "refuse" | "queue" | "steer";
|
|
2127
2332
|
media: Array<"mermaid" | "vega-lite" | "map" | "report">;
|
|
2128
2333
|
suggestions: Record<"en" | "ar", Array<{
|
|
2129
2334
|
title: string;
|
|
@@ -2167,7 +2372,7 @@ export type ManagementProcedures = {
|
|
|
2167
2372
|
output: {
|
|
2168
2373
|
id: string;
|
|
2169
2374
|
actorId: string;
|
|
2170
|
-
credentialKind: "session" | "managementKey" | "operatorToken" | "system";
|
|
2375
|
+
credentialKind: "session" | "managementKey" | "operatorToken" | "oauthToken" | "system";
|
|
2171
2376
|
credentialId: string | null;
|
|
2172
2377
|
entityType: string;
|
|
2173
2378
|
entityId: string;
|
|
@@ -2184,6 +2389,7 @@ export type ManagementProcedures = {
|
|
|
2184
2389
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
2185
2390
|
fingerprint: string;
|
|
2186
2391
|
} | null;
|
|
2392
|
+
oauthClientName: string | null;
|
|
2187
2393
|
before: unknown;
|
|
2188
2394
|
after: unknown;
|
|
2189
2395
|
};
|
|
@@ -2204,7 +2410,7 @@ export type ManagementProcedures = {
|
|
|
2204
2410
|
items: Array<{
|
|
2205
2411
|
id: string;
|
|
2206
2412
|
actorId: string;
|
|
2207
|
-
credentialKind: "session" | "managementKey" | "operatorToken" | "system";
|
|
2413
|
+
credentialKind: "session" | "managementKey" | "operatorToken" | "oauthToken" | "system";
|
|
2208
2414
|
credentialId: string | null;
|
|
2209
2415
|
entityType: string;
|
|
2210
2416
|
entityId: string;
|
|
@@ -2221,6 +2427,7 @@ export type ManagementProcedures = {
|
|
|
2221
2427
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
2222
2428
|
fingerprint: string;
|
|
2223
2429
|
} | null;
|
|
2430
|
+
oauthClientName: string | null;
|
|
2224
2431
|
}>;
|
|
2225
2432
|
/** Every row the caller may see, ignoring the search and filters. */
|
|
2226
2433
|
count: number;
|
|
@@ -2416,15 +2623,17 @@ export type ManagementProcedures = {
|
|
|
2416
2623
|
name: string;
|
|
2417
2624
|
};
|
|
2418
2625
|
};
|
|
2419
|
-
/** Create a
|
|
2626
|
+
/** Create a credential over a stored secret, with a display name (`{}` for none). `static` presents the secret's value; `oauth2-client-credentials` gets a bearer at `tokenUrl` (https) as `clientId`, by `authMethod`: `client_secret_basic` sends the secret; `private_key_jwt` signs with a key Cortex generates into a new secret named `secretName`, which nothing else may compose or rewrite (`signing_key_secret`), and needs `issuer` and an engine public URL to publish its key under (`jwks_unavailable`); `none` is a public app for MCP sign-in at `issuer`, with no secret. `issuer` is the authorization server's exact identifier. Name, kind and auth method never change. Needs `secrets:write`. */
|
|
2420
2627
|
"credentials.create": {
|
|
2421
2628
|
input: {
|
|
2422
2629
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
2423
2630
|
kind: "static" | "oauth2-client-credentials";
|
|
2631
|
+
authMethod: "client_secret_basic" | "private_key_jwt" | "none";
|
|
2424
2632
|
secretName: string;
|
|
2425
2633
|
tokenUrl: string;
|
|
2426
2634
|
clientId: string;
|
|
2427
2635
|
scope: string;
|
|
2636
|
+
issuer: string;
|
|
2428
2637
|
/** A name: lowercase letters, digits, and single hyphens. */
|
|
2429
2638
|
name: string;
|
|
2430
2639
|
};
|
|
@@ -2433,10 +2642,12 @@ export type ManagementProcedures = {
|
|
|
2433
2642
|
name: string;
|
|
2434
2643
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
2435
2644
|
kind: "static" | "oauth2-client-credentials";
|
|
2436
|
-
|
|
2645
|
+
authMethod: "client_secret_basic" | "private_key_jwt" | "none" | null;
|
|
2646
|
+
secretName: string | null;
|
|
2437
2647
|
tokenUrl: string | null;
|
|
2438
2648
|
clientId: string | null;
|
|
2439
2649
|
scope: string | null;
|
|
2650
|
+
issuer: string | null;
|
|
2440
2651
|
createdAt: string;
|
|
2441
2652
|
updatedAt: string;
|
|
2442
2653
|
};
|
|
@@ -2451,15 +2662,17 @@ export type ManagementProcedures = {
|
|
|
2451
2662
|
name: string;
|
|
2452
2663
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
2453
2664
|
kind: "static" | "oauth2-client-credentials";
|
|
2454
|
-
|
|
2665
|
+
authMethod: "client_secret_basic" | "private_key_jwt" | "none" | null;
|
|
2666
|
+
secretName: string | null;
|
|
2455
2667
|
tokenUrl: string | null;
|
|
2456
2668
|
clientId: string | null;
|
|
2457
2669
|
scope: string | null;
|
|
2670
|
+
issuer: string | null;
|
|
2458
2671
|
createdAt: string;
|
|
2459
2672
|
updatedAt: string;
|
|
2460
2673
|
};
|
|
2461
2674
|
};
|
|
2462
|
-
/** List credentials with pagination and search: the name tools, dataset hosts and triggers reference, its display name, its kind, the secret it composes,
|
|
2675
|
+
/** List credentials with pagination and search: the name tools, dataset hosts and triggers reference, its display name, its kind and auth method, the secret it composes, how many rows name it with the first few (`usedBy`), and, for a `private_key_jwt` one, the URL of its public key set (`jwksUrl`, null without an engine public URL), which its authorization server is registered with, and the `kid` of the key it signs with now (null for any other). */
|
|
2463
2676
|
"credentials.list": {
|
|
2464
2677
|
input: {
|
|
2465
2678
|
pageIndex?: number;
|
|
@@ -2472,10 +2685,12 @@ export type ManagementProcedures = {
|
|
|
2472
2685
|
name: string;
|
|
2473
2686
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
2474
2687
|
kind: "static" | "oauth2-client-credentials";
|
|
2475
|
-
|
|
2688
|
+
authMethod: "client_secret_basic" | "private_key_jwt" | "none" | null;
|
|
2689
|
+
secretName: string | null;
|
|
2476
2690
|
tokenUrl: string | null;
|
|
2477
2691
|
clientId: string | null;
|
|
2478
2692
|
scope: string | null;
|
|
2693
|
+
issuer: string | null;
|
|
2479
2694
|
createdAt: string;
|
|
2480
2695
|
updatedAt: string;
|
|
2481
2696
|
usedBy: {
|
|
@@ -2487,6 +2702,8 @@ export type ManagementProcedures = {
|
|
|
2487
2702
|
id: string;
|
|
2488
2703
|
}>;
|
|
2489
2704
|
};
|
|
2705
|
+
jwksUrl: string | null;
|
|
2706
|
+
kid: string | null;
|
|
2490
2707
|
}>;
|
|
2491
2708
|
/** Every row the caller may see, ignoring the search and filters. */
|
|
2492
2709
|
count: number;
|
|
@@ -2494,25 +2711,47 @@ export type ManagementProcedures = {
|
|
|
2494
2711
|
filteredCount: number;
|
|
2495
2712
|
};
|
|
2496
2713
|
};
|
|
2497
|
-
/** Each credential's name and display name, in name order, for a picker. `present`: what a tool, dataset host, webhook or trigger run may present upstream (every credential but a trigger's fire credential). `fire`: what a trigger may be fired with (static credentials). */
|
|
2714
|
+
/** Each credential's name and display name, in name order, for a picker. `present`: what a tool, dataset host, webhook or trigger run may present upstream (every credential but a trigger's fire credential). `fire`: what a trigger may be fired with (static credentials). `signIn`: what an MCP server's sign-in may present as its pre-registered app (OAuth2 client credentials ones naming their `issuer`). */
|
|
2498
2715
|
"credentials.names": {
|
|
2499
2716
|
input: {
|
|
2500
|
-
use: "present" | "fire";
|
|
2717
|
+
use: "present" | "fire" | "signIn";
|
|
2501
2718
|
};
|
|
2502
2719
|
output: Array<{
|
|
2503
2720
|
name: string;
|
|
2504
2721
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
2505
2722
|
}>;
|
|
2506
2723
|
};
|
|
2507
|
-
/**
|
|
2724
|
+
/** Replace a `private_key_jwt` credential's signing key with a new one, under a new `kid`, rewriting its secret (`no_signing_key` for any other credential). Its key set serves only the new public key at once, so assertions verify again once the authorization server refetches it. */
|
|
2725
|
+
"credentials.rotateKey": {
|
|
2726
|
+
input: {
|
|
2727
|
+
id: string;
|
|
2728
|
+
};
|
|
2729
|
+
output: {
|
|
2730
|
+
id: string;
|
|
2731
|
+
name: string;
|
|
2732
|
+
displayName: Partial<Record<"en" | "ar", string>>;
|
|
2733
|
+
kind: "static" | "oauth2-client-credentials";
|
|
2734
|
+
authMethod: "client_secret_basic" | "private_key_jwt" | "none" | null;
|
|
2735
|
+
secretName: string | null;
|
|
2736
|
+
tokenUrl: string | null;
|
|
2737
|
+
clientId: string | null;
|
|
2738
|
+
scope: string | null;
|
|
2739
|
+
issuer: string | null;
|
|
2740
|
+
createdAt: string;
|
|
2741
|
+
updatedAt: string;
|
|
2742
|
+
};
|
|
2743
|
+
};
|
|
2744
|
+
/** Change a credential's display name, the secret it composes and, for an OAuth2 one, its token URL, client id, scope and issuer. Applies to the next call of every tool, dataset host and trigger naming it. Changing the secret, the token URL or the issuer needs `secrets:write` too (`secret_binding_forbidden`): each sends a stored secret somewhere new. A `private_key_jwt` one keeps its secret, which holds its key, like its kind and auth method (`kind_locked`). */
|
|
2508
2745
|
"credentials.update": {
|
|
2509
2746
|
input: {
|
|
2510
2747
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
2511
2748
|
kind: "static" | "oauth2-client-credentials";
|
|
2749
|
+
authMethod: "client_secret_basic" | "private_key_jwt" | "none";
|
|
2512
2750
|
secretName: string;
|
|
2513
2751
|
tokenUrl: string;
|
|
2514
2752
|
clientId: string;
|
|
2515
2753
|
scope: string;
|
|
2754
|
+
issuer: string;
|
|
2516
2755
|
id: string;
|
|
2517
2756
|
};
|
|
2518
2757
|
output: {
|
|
@@ -2520,10 +2759,12 @@ export type ManagementProcedures = {
|
|
|
2520
2759
|
name: string;
|
|
2521
2760
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
2522
2761
|
kind: "static" | "oauth2-client-credentials";
|
|
2523
|
-
|
|
2762
|
+
authMethod: "client_secret_basic" | "private_key_jwt" | "none" | null;
|
|
2763
|
+
secretName: string | null;
|
|
2524
2764
|
tokenUrl: string | null;
|
|
2525
2765
|
clientId: string | null;
|
|
2526
2766
|
scope: string | null;
|
|
2767
|
+
issuer: string | null;
|
|
2527
2768
|
createdAt: string;
|
|
2528
2769
|
updatedAt: string;
|
|
2529
2770
|
};
|
|
@@ -2717,7 +2958,7 @@ export type ManagementProcedures = {
|
|
|
2717
2958
|
unchanged: boolean;
|
|
2718
2959
|
};
|
|
2719
2960
|
};
|
|
2720
|
-
/** Change which agents a dataset host reaches: every agent, one server's, or a list. Refused while a reader it would lose still references it. Reaching new agents needs `secrets:write` too while it forwards the run token (`secret_binding_forbidden`): in a
|
|
2961
|
+
/** Change which agents a dataset host reaches: every agent, one server's, or a list. Refused while a reader it would lose still references it. Reaching new agents needs `secrets:write` too while it forwards the run token (`secret_binding_forbidden`): in a trigger run that token is the trigger's stored credential. */
|
|
2721
2962
|
"datasetHosts.setAudience": {
|
|
2722
2963
|
input: {
|
|
2723
2964
|
id: string;
|
|
@@ -3059,11 +3300,14 @@ export type ManagementProcedures = {
|
|
|
3059
3300
|
ragEnabled?: boolean;
|
|
3060
3301
|
toolRegistryEnabled?: boolean;
|
|
3061
3302
|
serviceRegistryEnabled?: boolean;
|
|
3303
|
+
subagentsEnabled?: boolean;
|
|
3304
|
+
checkBacksEnabled?: boolean;
|
|
3062
3305
|
attachmentsEnabled?: boolean;
|
|
3063
3306
|
fetchImageHostnames?: Array<string>;
|
|
3064
3307
|
locationPicker?: boolean;
|
|
3065
3308
|
media?: Array<"mermaid" | "vega-lite" | "map" | "report">;
|
|
3066
|
-
|
|
3309
|
+
messages?: boolean;
|
|
3310
|
+
whileBusy?: "refuse" | "queue" | "steer";
|
|
3067
3311
|
defaultLocale?: "en" | "ar";
|
|
3068
3312
|
context?: {
|
|
3069
3313
|
maxContextTokens?: number;
|
|
@@ -3385,13 +3629,18 @@ export type ManagementProcedures = {
|
|
|
3385
3629
|
threadPolicy?: {
|
|
3386
3630
|
policy: "single";
|
|
3387
3631
|
} | {
|
|
3388
|
-
policy: "per-
|
|
3632
|
+
policy: "per-input";
|
|
3389
3633
|
} | {
|
|
3390
3634
|
policy: "ephemeral";
|
|
3391
3635
|
} | {
|
|
3392
3636
|
policy: "keyed";
|
|
3393
3637
|
key: string;
|
|
3638
|
+
} | {
|
|
3639
|
+
policy: "thread";
|
|
3640
|
+
key: string;
|
|
3641
|
+
wake: boolean;
|
|
3394
3642
|
};
|
|
3643
|
+
whileBusy?: "refuse" | "queue" | "steer";
|
|
3395
3644
|
budgetPerDay?: number;
|
|
3396
3645
|
disableAfterFailures?: number;
|
|
3397
3646
|
credential?: string;
|
|
@@ -3401,12 +3650,16 @@ export type ManagementProcedures = {
|
|
|
3401
3650
|
model: string;
|
|
3402
3651
|
effort?: string;
|
|
3403
3652
|
};
|
|
3653
|
+
schedule?: {
|
|
3654
|
+
cron: string;
|
|
3655
|
+
timeZone: string;
|
|
3656
|
+
};
|
|
3404
3657
|
audience: "all" | {
|
|
3405
3658
|
server: string;
|
|
3406
3659
|
} | {
|
|
3407
3660
|
agents: Array<string>;
|
|
3408
3661
|
};
|
|
3409
|
-
overridable?: Array<"displayName" | "description" | "instructions" | "threadPolicy" | "budgetPerDay" | "disableAfterFailures" | "model">;
|
|
3662
|
+
overridable?: Array<"displayName" | "description" | "instructions" | "threadPolicy" | "whileBusy" | "budgetPerDay" | "disableAfterFailures" | "model" | "schedule">;
|
|
3410
3663
|
}>;
|
|
3411
3664
|
datasetHosts?: Array<{
|
|
3412
3665
|
name: string;
|
|
@@ -3466,6 +3719,11 @@ export type ManagementProcedures = {
|
|
|
3466
3719
|
value: string;
|
|
3467
3720
|
};
|
|
3468
3721
|
}>;
|
|
3722
|
+
signIn?: {
|
|
3723
|
+
connects: "shared" | "endUser";
|
|
3724
|
+
scope?: string;
|
|
3725
|
+
credential?: string;
|
|
3726
|
+
};
|
|
3469
3727
|
include?: Array<string>;
|
|
3470
3728
|
exclude?: Array<string>;
|
|
3471
3729
|
audience: "all" | {
|
|
@@ -3473,13 +3731,13 @@ export type ManagementProcedures = {
|
|
|
3473
3731
|
} | {
|
|
3474
3732
|
agents: Array<string>;
|
|
3475
3733
|
};
|
|
3476
|
-
overridable?: Array<"displayName" | "include" | "exclude" | "headers">;
|
|
3734
|
+
overridable?: Array<"displayName" | "include" | "exclude" | "headers" | "signIn">;
|
|
3477
3735
|
}>;
|
|
3478
3736
|
webhooks?: Array<{
|
|
3479
3737
|
name: string;
|
|
3480
3738
|
displayName?: Partial<Record<"en" | "ar", string>>;
|
|
3481
3739
|
description?: string;
|
|
3482
|
-
event: "
|
|
3740
|
+
event: "run_waiting" | "run_finished";
|
|
3483
3741
|
url: string;
|
|
3484
3742
|
headers?: Array<{
|
|
3485
3743
|
header: string;
|
|
@@ -3594,11 +3852,14 @@ export type ManagementProcedures = {
|
|
|
3594
3852
|
ragEnabled?: boolean;
|
|
3595
3853
|
toolRegistryEnabled?: boolean;
|
|
3596
3854
|
serviceRegistryEnabled?: boolean;
|
|
3855
|
+
subagentsEnabled?: boolean;
|
|
3856
|
+
checkBacksEnabled?: boolean;
|
|
3597
3857
|
attachmentsEnabled?: boolean;
|
|
3598
3858
|
fetchImageHostnames?: Array<string>;
|
|
3599
3859
|
locationPicker?: boolean;
|
|
3600
3860
|
media?: Array<"mermaid" | "vega-lite" | "map" | "report">;
|
|
3601
|
-
|
|
3861
|
+
messages?: boolean;
|
|
3862
|
+
whileBusy?: "refuse" | "queue" | "steer";
|
|
3602
3863
|
defaultLocale?: "en" | "ar";
|
|
3603
3864
|
context?: {
|
|
3604
3865
|
maxContextTokens?: number;
|
|
@@ -3920,13 +4181,18 @@ export type ManagementProcedures = {
|
|
|
3920
4181
|
threadPolicy?: {
|
|
3921
4182
|
policy: "single";
|
|
3922
4183
|
} | {
|
|
3923
|
-
policy: "per-
|
|
4184
|
+
policy: "per-input";
|
|
3924
4185
|
} | {
|
|
3925
4186
|
policy: "ephemeral";
|
|
3926
4187
|
} | {
|
|
3927
4188
|
policy: "keyed";
|
|
3928
4189
|
key: string;
|
|
4190
|
+
} | {
|
|
4191
|
+
policy: "thread";
|
|
4192
|
+
key: string;
|
|
4193
|
+
wake: boolean;
|
|
3929
4194
|
};
|
|
4195
|
+
whileBusy?: "refuse" | "queue" | "steer";
|
|
3930
4196
|
budgetPerDay?: number;
|
|
3931
4197
|
disableAfterFailures?: number;
|
|
3932
4198
|
credential?: string;
|
|
@@ -3936,12 +4202,16 @@ export type ManagementProcedures = {
|
|
|
3936
4202
|
model: string;
|
|
3937
4203
|
effort?: string;
|
|
3938
4204
|
};
|
|
4205
|
+
schedule?: {
|
|
4206
|
+
cron: string;
|
|
4207
|
+
timeZone: string;
|
|
4208
|
+
};
|
|
3939
4209
|
audience: "all" | {
|
|
3940
4210
|
server: string;
|
|
3941
4211
|
} | {
|
|
3942
4212
|
agents: Array<string>;
|
|
3943
4213
|
};
|
|
3944
|
-
overridable?: Array<"displayName" | "description" | "instructions" | "threadPolicy" | "budgetPerDay" | "disableAfterFailures" | "model">;
|
|
4214
|
+
overridable?: Array<"displayName" | "description" | "instructions" | "threadPolicy" | "whileBusy" | "budgetPerDay" | "disableAfterFailures" | "model" | "schedule">;
|
|
3945
4215
|
}>;
|
|
3946
4216
|
datasetHosts?: Array<{
|
|
3947
4217
|
name: string;
|
|
@@ -4001,6 +4271,11 @@ export type ManagementProcedures = {
|
|
|
4001
4271
|
value: string;
|
|
4002
4272
|
};
|
|
4003
4273
|
}>;
|
|
4274
|
+
signIn?: {
|
|
4275
|
+
connects: "shared" | "endUser";
|
|
4276
|
+
scope?: string;
|
|
4277
|
+
credential?: string;
|
|
4278
|
+
};
|
|
4004
4279
|
include?: Array<string>;
|
|
4005
4280
|
exclude?: Array<string>;
|
|
4006
4281
|
audience: "all" | {
|
|
@@ -4008,13 +4283,13 @@ export type ManagementProcedures = {
|
|
|
4008
4283
|
} | {
|
|
4009
4284
|
agents: Array<string>;
|
|
4010
4285
|
};
|
|
4011
|
-
overridable?: Array<"displayName" | "include" | "exclude" | "headers">;
|
|
4286
|
+
overridable?: Array<"displayName" | "include" | "exclude" | "headers" | "signIn">;
|
|
4012
4287
|
}>;
|
|
4013
4288
|
webhooks?: Array<{
|
|
4014
4289
|
name: string;
|
|
4015
4290
|
displayName?: Partial<Record<"en" | "ar", string>>;
|
|
4016
4291
|
description?: string;
|
|
4017
|
-
event: "
|
|
4292
|
+
event: "run_waiting" | "run_finished";
|
|
4018
4293
|
url: string;
|
|
4019
4294
|
headers?: Array<{
|
|
4020
4295
|
header: string;
|
|
@@ -4104,7 +4379,30 @@ export type ManagementProcedures = {
|
|
|
4104
4379
|
id: string;
|
|
4105
4380
|
};
|
|
4106
4381
|
};
|
|
4107
|
-
/**
|
|
4382
|
+
/** Find how Cortex would sign in to the MCP server with OAuth, from its metadata: the authorization server's issuer, the method Cortex would use (`preRegistered`, `clientIdDocument`, `dynamicRegistration`, or null for none), the scopes on offer, whether PKCE with S256 is supported, and the resource tokens are for. A pre-registered app for another issuer is refused as `sign_in_issuer_mismatch`. */
|
|
4383
|
+
"mcpServers.detectSignIn": {
|
|
4384
|
+
input: {
|
|
4385
|
+
id: string;
|
|
4386
|
+
};
|
|
4387
|
+
output: {
|
|
4388
|
+
issuer: string;
|
|
4389
|
+
method: "preRegistered" | "clientIdDocument" | "dynamicRegistration" | null;
|
|
4390
|
+
scopes: Array<string>;
|
|
4391
|
+
pkce: boolean;
|
|
4392
|
+
resource: string;
|
|
4393
|
+
};
|
|
4394
|
+
};
|
|
4395
|
+
/** Forget every connection Cortex holds to the MCP server: the shared one, or every end user's. Its turns report it not connected until someone signs in again. The tokens are not revoked at the authorization server. */
|
|
4396
|
+
"mcpServers.disconnect": {
|
|
4397
|
+
input: {
|
|
4398
|
+
id: string;
|
|
4399
|
+
};
|
|
4400
|
+
output: {
|
|
4401
|
+
id: string;
|
|
4402
|
+
name: string;
|
|
4403
|
+
};
|
|
4404
|
+
};
|
|
4405
|
+
/** One MCP server by id with its url, headers, sign-in, tool filters, and sharing; its shared connection, never its tokens, with `stepUp` once its server refused a call for lack of scope (the scopes it lacks, and whether a sign-in may still ask for them); how many end users are connected or must sign in again; and `signInUrl`, where a browser form-posts an operator token and the server's id to connect it (null while the engine or the console has no public URL). */
|
|
4108
4406
|
"mcpServers.get": {
|
|
4109
4407
|
input: {
|
|
4110
4408
|
id: string;
|
|
@@ -4143,6 +4441,11 @@ export type ManagementProcedures = {
|
|
|
4143
4441
|
value: string;
|
|
4144
4442
|
};
|
|
4145
4443
|
}>;
|
|
4444
|
+
signIn: {
|
|
4445
|
+
connects: "shared" | "endUser";
|
|
4446
|
+
scope?: string;
|
|
4447
|
+
credential?: string;
|
|
4448
|
+
} | null;
|
|
4146
4449
|
include: Array<string>;
|
|
4147
4450
|
exclude: Array<string>;
|
|
4148
4451
|
status: "draft" | "published" | "disabled";
|
|
@@ -4169,6 +4472,22 @@ export type ManagementProcedures = {
|
|
|
4169
4472
|
type: "string" | "number" | "boolean";
|
|
4170
4473
|
computed: boolean;
|
|
4171
4474
|
}>;
|
|
4475
|
+
connection: {
|
|
4476
|
+
status: "connected" | "needs_scope" | "broken";
|
|
4477
|
+
issuer: string;
|
|
4478
|
+
scope: string;
|
|
4479
|
+
expiresAt: string | null;
|
|
4480
|
+
updatedAt: string;
|
|
4481
|
+
stepUp: {
|
|
4482
|
+
missing: string;
|
|
4483
|
+
grantable: boolean;
|
|
4484
|
+
} | null;
|
|
4485
|
+
} | null;
|
|
4486
|
+
endUsers: {
|
|
4487
|
+
connected: number;
|
|
4488
|
+
broken: number;
|
|
4489
|
+
};
|
|
4490
|
+
signInUrl: string | null;
|
|
4172
4491
|
};
|
|
4173
4492
|
};
|
|
4174
4493
|
/** List MCP servers with pagination and search. */
|
|
@@ -4242,7 +4561,7 @@ export type ManagementProcedures = {
|
|
|
4242
4561
|
unchanged: boolean;
|
|
4243
4562
|
};
|
|
4244
4563
|
};
|
|
4245
|
-
/** Change which agents an MCP server reaches: every agent, one server's, or a list. Reaching new agents needs `secrets:write` too while it forwards the run token (`secret_binding_forbidden`): in a
|
|
4564
|
+
/** Change which agents an MCP server reaches: every agent, one server's, or a list. Reaching new agents needs `secrets:write` too while it forwards the run token (`secret_binding_forbidden`): in a trigger run that token is the trigger's stored credential. */
|
|
4246
4565
|
"mcpServers.setAudience": {
|
|
4247
4566
|
input: {
|
|
4248
4567
|
id: string;
|
|
@@ -4298,7 +4617,7 @@ export type ManagementProcedures = {
|
|
|
4298
4617
|
unchanged: boolean;
|
|
4299
4618
|
};
|
|
4300
4619
|
};
|
|
4301
|
-
/** Update an MCP server's draft: which of its tools agents may call (`include`, empty for every tool, and `exclude`, tool names as the server spells them). Saved as a draft; call publish to make it live. The url
|
|
4620
|
+
/** Update an MCP server's draft: which of its tools agents may call (`include`, empty for every tool, and `exclude`, tool names as the server spells them). Saved as a draft; call publish to make it live. The url, headers (each with a prefix and its value from a credential, the run token, a variable or a constant) and `signIn` apply live without a publish. `signIn` (null for none) has Cortex sign in with OAuth: `connects` is `shared` (an operator connects once for every agent) or `endUser` (each end user connects their own), `scope` what to ask for, and `credential` names the app registered with the authorization server beforehand, an `oauth2-client-credentials` credential naming its `issuer`. A server that signs in declares no Authorization header. */
|
|
4302
4621
|
"mcpServers.update": {
|
|
4303
4622
|
input: {
|
|
4304
4623
|
url: string;
|
|
@@ -4318,6 +4637,11 @@ export type ManagementProcedures = {
|
|
|
4318
4637
|
value: string;
|
|
4319
4638
|
};
|
|
4320
4639
|
}>;
|
|
4640
|
+
signIn: {
|
|
4641
|
+
connects: "shared" | "endUser";
|
|
4642
|
+
scope?: string;
|
|
4643
|
+
credential?: string;
|
|
4644
|
+
} | null;
|
|
4321
4645
|
include: Array<string>;
|
|
4322
4646
|
exclude: Array<string>;
|
|
4323
4647
|
id: string;
|
|
@@ -4464,6 +4788,7 @@ export type ManagementProcedures = {
|
|
|
4464
4788
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
4465
4789
|
};
|
|
4466
4790
|
triggerName: string | null;
|
|
4791
|
+
delegated: "queued" | "run" | "schedule" | "trigger" | null;
|
|
4467
4792
|
threadId: string | null;
|
|
4468
4793
|
threadTitle: string | null;
|
|
4469
4794
|
input: unknown;
|
|
@@ -4530,18 +4855,20 @@ export type ManagementProcedures = {
|
|
|
4530
4855
|
}>;
|
|
4531
4856
|
};
|
|
4532
4857
|
};
|
|
4533
|
-
/** One
|
|
4534
|
-
"observability.
|
|
4858
|
+
/** One run by id with what it answered with, and the tool calls it waits on while it is waiting. */
|
|
4859
|
+
"observability.getRun": {
|
|
4535
4860
|
input: {
|
|
4536
4861
|
id: string;
|
|
4537
4862
|
};
|
|
4538
4863
|
output: {
|
|
4539
4864
|
id: string;
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4865
|
+
kind: "turn" | "subagent" | "tool";
|
|
4866
|
+
status: "running" | "waiting" | "completed" | "failed" | "cancelled";
|
|
4867
|
+
reason: "no_output" | "invalid_output" | "stopped" | "cancelled" | "parent_cancelled" | "lost" | "timeout" | null;
|
|
4868
|
+
createdAt: string;
|
|
4869
|
+
finishedAt: string | null;
|
|
4870
|
+
source: "user" | "trigger" | "schedule" | "run" | null;
|
|
4871
|
+
triggerName: string | null;
|
|
4545
4872
|
server: {
|
|
4546
4873
|
name: string;
|
|
4547
4874
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
@@ -4550,17 +4877,15 @@ export type ManagementProcedures = {
|
|
|
4550
4877
|
name: string;
|
|
4551
4878
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
4552
4879
|
};
|
|
4880
|
+
threadId: string | null;
|
|
4553
4881
|
threadTitle: string | null;
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
agentId: string;
|
|
4558
|
-
approvals: Array<{
|
|
4882
|
+
result: unknown;
|
|
4883
|
+
waits: Array<{
|
|
4884
|
+
kind: "approval" | "client_tool";
|
|
4559
4885
|
toolCallId: string;
|
|
4560
4886
|
toolName: string;
|
|
4561
4887
|
input: unknown;
|
|
4562
4888
|
}>;
|
|
4563
|
-
decider: "operator" | "chat" | "disabled";
|
|
4564
4889
|
};
|
|
4565
4890
|
};
|
|
4566
4891
|
/** Token and message usage of the agents the caller may read: totals and per user, server, agent and day, optionally for one agent within a day range. */
|
|
@@ -4696,6 +5021,47 @@ export type ManagementProcedures = {
|
|
|
4696
5021
|
filteredCount: number;
|
|
4697
5022
|
};
|
|
4698
5023
|
};
|
|
5024
|
+
/** Runs on your agents, chat and trigger alike, newest first, with how they ended and their thread, with pagination and agent, source, status, trigger name, open-wait kind, and day-range filters. */
|
|
5025
|
+
"observability.listRuns": {
|
|
5026
|
+
input: {
|
|
5027
|
+
pageIndex?: number;
|
|
5028
|
+
pageSize?: number;
|
|
5029
|
+
q?: string;
|
|
5030
|
+
agentId?: string;
|
|
5031
|
+
source?: "user" | "trigger" | "schedule" | "run";
|
|
5032
|
+
status?: "running" | "waiting" | "completed" | "failed" | "cancelled";
|
|
5033
|
+
triggerName?: string;
|
|
5034
|
+
waitKind?: "approval" | "client_tool";
|
|
5035
|
+
dateFrom?: string;
|
|
5036
|
+
dateTo?: string;
|
|
5037
|
+
};
|
|
5038
|
+
output: {
|
|
5039
|
+
items: Array<{
|
|
5040
|
+
id: string;
|
|
5041
|
+
kind: "turn" | "subagent" | "tool";
|
|
5042
|
+
status: "running" | "waiting" | "completed" | "failed" | "cancelled";
|
|
5043
|
+
reason: "no_output" | "invalid_output" | "stopped" | "cancelled" | "parent_cancelled" | "lost" | "timeout" | null;
|
|
5044
|
+
createdAt: string;
|
|
5045
|
+
finishedAt: string | null;
|
|
5046
|
+
source: "user" | "trigger" | "schedule" | "run" | null;
|
|
5047
|
+
triggerName: string | null;
|
|
5048
|
+
server: {
|
|
5049
|
+
name: string;
|
|
5050
|
+
displayName: Partial<Record<"en" | "ar", string>>;
|
|
5051
|
+
} | null;
|
|
5052
|
+
agent: {
|
|
5053
|
+
name: string;
|
|
5054
|
+
displayName: Partial<Record<"en" | "ar", string>>;
|
|
5055
|
+
};
|
|
5056
|
+
threadId: string | null;
|
|
5057
|
+
threadTitle: string | null;
|
|
5058
|
+
}>;
|
|
5059
|
+
/** Every row the caller may see, ignoring the search and filters. */
|
|
5060
|
+
count: number;
|
|
5061
|
+
/** The rows matching the search and filters, over all pages: the total to report. */
|
|
5062
|
+
filteredCount: number;
|
|
5063
|
+
};
|
|
5064
|
+
};
|
|
4699
5065
|
/** Upstream responses that do not match a tool's declared schema, with pagination. */
|
|
4700
5066
|
"observability.listSchemaDrifts": {
|
|
4701
5067
|
input: {
|
|
@@ -4817,44 +5183,6 @@ export type ManagementProcedures = {
|
|
|
4817
5183
|
filteredCount: number;
|
|
4818
5184
|
};
|
|
4819
5185
|
};
|
|
4820
|
-
/** Trigger firings with their outcome, with pagination and agent, trigger, outcome, and day-range filters. */
|
|
4821
|
-
"observability.listTriggerFirings": {
|
|
4822
|
-
input: {
|
|
4823
|
-
pageIndex?: number;
|
|
4824
|
-
pageSize?: number;
|
|
4825
|
-
q?: string;
|
|
4826
|
-
agentId?: string;
|
|
4827
|
-
triggerName?: string;
|
|
4828
|
-
outcome?: "started" | "awaiting_approval" | "completed" | "failed" | "rejected" | "dropped";
|
|
4829
|
-
dateFrom?: string;
|
|
4830
|
-
dateTo?: string;
|
|
4831
|
-
};
|
|
4832
|
-
output: {
|
|
4833
|
-
items: Array<{
|
|
4834
|
-
id: string;
|
|
4835
|
-
triggerName: string;
|
|
4836
|
-
threadId: string | null;
|
|
4837
|
-
outcome: "started" | "awaiting_approval" | "completed" | "failed" | "rejected" | "dropped";
|
|
4838
|
-
reason: "busy" | "approval_pending" | "budget" | "rate_limited" | "invalid_payload" | "missing_thread_key" | "no_turn" | "no_output" | "invalid_output" | null;
|
|
4839
|
-
output: unknown;
|
|
4840
|
-
server: {
|
|
4841
|
-
name: string;
|
|
4842
|
-
displayName: Partial<Record<"en" | "ar", string>>;
|
|
4843
|
-
} | null;
|
|
4844
|
-
agent: {
|
|
4845
|
-
name: string;
|
|
4846
|
-
displayName: Partial<Record<"en" | "ar", string>>;
|
|
4847
|
-
};
|
|
4848
|
-
threadTitle: string | null;
|
|
4849
|
-
createdAt: string;
|
|
4850
|
-
finishedAt: string | null;
|
|
4851
|
-
}>;
|
|
4852
|
-
/** Every row the caller may see, ignoring the search and filters. */
|
|
4853
|
-
count: number;
|
|
4854
|
-
/** The rows matching the search and filters, over all pages: the total to report. */
|
|
4855
|
-
filteredCount: number;
|
|
4856
|
-
};
|
|
4857
|
-
};
|
|
4858
5186
|
/** Ids of tools whose recent executions exceed the failure threshold. */
|
|
4859
5187
|
"observability.unhealthyToolIds": {
|
|
4860
5188
|
input: undefined;
|
|
@@ -5042,7 +5370,7 @@ export type ManagementProcedures = {
|
|
|
5042
5370
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
5043
5371
|
}>;
|
|
5044
5372
|
};
|
|
5045
|
-
/** Replace a secret's value in place. */
|
|
5373
|
+
/** Replace a secret's value in place; a `private_key_jwt` credential's generated key is refused (`signing_key_secret`), since only `credentials.rotateKey` rewrites it. */
|
|
5046
5374
|
"secrets.rotate": {
|
|
5047
5375
|
input: {
|
|
5048
5376
|
id: string;
|
|
@@ -5126,7 +5454,8 @@ export type ManagementProcedures = {
|
|
|
5126
5454
|
requiresApproval?: boolean;
|
|
5127
5455
|
}>;
|
|
5128
5456
|
verify: boolean;
|
|
5129
|
-
|
|
5457
|
+
delegation: boolean;
|
|
5458
|
+
events: Array<"run_waiting" | "run_finished">;
|
|
5130
5459
|
} | null;
|
|
5131
5460
|
syncedAt: string | null;
|
|
5132
5461
|
syncError: "egress_blocked" | "timeout" | "upstream_failed" | "response_too_large" | "upstream_status" | "invalid_manifest" | "key_unavailable" | "name_taken" | "credential_in_name" | "variable_in_use" | "verify_in_use" | "still_referenced" | "unexpected" | null;
|
|
@@ -5172,7 +5501,8 @@ export type ManagementProcedures = {
|
|
|
5172
5501
|
requiresApproval?: boolean;
|
|
5173
5502
|
}>;
|
|
5174
5503
|
verify: boolean;
|
|
5175
|
-
|
|
5504
|
+
delegation: boolean;
|
|
5505
|
+
events: Array<"run_waiting" | "run_finished">;
|
|
5176
5506
|
} | null;
|
|
5177
5507
|
syncedAt: string | null;
|
|
5178
5508
|
syncError: "egress_blocked" | "timeout" | "upstream_failed" | "response_too_large" | "upstream_status" | "invalid_manifest" | "key_unavailable" | "name_taken" | "credential_in_name" | "variable_in_use" | "verify_in_use" | "still_referenced" | "unexpected" | null;
|
|
@@ -5205,6 +5535,7 @@ export type ManagementProcedures = {
|
|
|
5205
5535
|
syncError: "egress_blocked" | "timeout" | "upstream_failed" | "response_too_large" | "upstream_status" | "invalid_manifest" | "key_unavailable" | "name_taken" | "credential_in_name" | "variable_in_use" | "verify_in_use" | "still_referenced" | "unexpected" | null;
|
|
5206
5536
|
createdAt: string;
|
|
5207
5537
|
threadCount: number;
|
|
5538
|
+
delegation: boolean;
|
|
5208
5539
|
modelProvider: string | null;
|
|
5209
5540
|
modelName: string | null;
|
|
5210
5541
|
modelEffort: string | null;
|
|
@@ -5312,7 +5643,8 @@ export type ManagementProcedures = {
|
|
|
5312
5643
|
requiresApproval?: boolean;
|
|
5313
5644
|
}>;
|
|
5314
5645
|
verify: boolean;
|
|
5315
|
-
|
|
5646
|
+
delegation: boolean;
|
|
5647
|
+
events: Array<"run_waiting" | "run_finished">;
|
|
5316
5648
|
} | null;
|
|
5317
5649
|
syncedAt: string | null;
|
|
5318
5650
|
syncError: "egress_blocked" | "timeout" | "upstream_failed" | "response_too_large" | "upstream_status" | "invalid_manifest" | "key_unavailable" | "name_taken" | "credential_in_name" | "variable_in_use" | "verify_in_use" | "still_referenced" | "unexpected" | null;
|
|
@@ -5840,7 +6172,7 @@ export type ManagementProcedures = {
|
|
|
5840
6172
|
pageSize?: number;
|
|
5841
6173
|
q?: string;
|
|
5842
6174
|
serverId?: string;
|
|
5843
|
-
|
|
6175
|
+
agentId?: string;
|
|
5844
6176
|
userId?: string;
|
|
5845
6177
|
dateFrom?: string;
|
|
5846
6178
|
dateTo?: string;
|
|
@@ -5920,7 +6252,7 @@ export type ManagementProcedures = {
|
|
|
5920
6252
|
output: {
|
|
5921
6253
|
items: Array<{
|
|
5922
6254
|
id: string;
|
|
5923
|
-
role: "system" | "user" | "assistant" | "
|
|
6255
|
+
role: "system" | "user" | "assistant" | "event";
|
|
5924
6256
|
text: string | null;
|
|
5925
6257
|
content: Record<string, unknown>;
|
|
5926
6258
|
ordinal: number;
|
|
@@ -6509,7 +6841,7 @@ export type ManagementProcedures = {
|
|
|
6509
6841
|
unchanged: boolean;
|
|
6510
6842
|
};
|
|
6511
6843
|
};
|
|
6512
|
-
/** Change which agents a tool reaches: every agent, one server's, or a list. Refused while a reader it would lose still references it, or while a new reader could not reach what it references, fill the variables it reads, or fit it in its pin budget. Reaching new agents needs `secrets:write` too while it forwards the run token (`secret_binding_forbidden`): in a
|
|
6844
|
+
/** Change which agents a tool reaches: every agent, one server's, or a list. Refused while a reader it would lose still references it, or while a new reader could not reach what it references, fill the variables it reads, or fit it in its pin budget. Reaching new agents needs `secrets:write` too while it forwards the run token (`secret_binding_forbidden`): in a trigger run that token is the trigger's stored credential. */
|
|
6513
6845
|
"tools.setAudience": {
|
|
6514
6846
|
input: {
|
|
6515
6847
|
id: string;
|
|
@@ -6641,67 +6973,64 @@ export type ManagementProcedures = {
|
|
|
6641
6973
|
name: string;
|
|
6642
6974
|
};
|
|
6643
6975
|
};
|
|
6644
|
-
/** Approve or deny a tool call a
|
|
6645
|
-
"triggers.
|
|
6976
|
+
/** Approve or deny a tool call a trigger's run waits on; the run resumes and comes back as a fire's does. Refused as `not_parked` when the run no longer waits on that call. */
|
|
6977
|
+
"triggers.answerRun": {
|
|
6646
6978
|
input: {
|
|
6647
|
-
|
|
6648
|
-
agentId?: string;
|
|
6649
|
-
firingId: string;
|
|
6979
|
+
runId: string;
|
|
6650
6980
|
toolCallId: string;
|
|
6651
6981
|
approved: boolean;
|
|
6652
6982
|
};
|
|
6653
6983
|
output: {
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
outcome: "started";
|
|
6657
|
-
threadId: string;
|
|
6984
|
+
inputId: string;
|
|
6985
|
+
state: "started";
|
|
6658
6986
|
runId: string;
|
|
6659
|
-
} | {
|
|
6660
|
-
status: number;
|
|
6661
|
-
firingId: string;
|
|
6662
|
-
outcome: "awaiting_approval";
|
|
6663
6987
|
threadId: string;
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6988
|
+
} | {
|
|
6989
|
+
state: "rejected";
|
|
6990
|
+
issues: Array<{
|
|
6991
|
+
path: string;
|
|
6992
|
+
message: string;
|
|
6669
6993
|
}>;
|
|
6670
6994
|
} | {
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
threadId: string;
|
|
6675
|
-
runId: string;
|
|
6676
|
-
output: unknown;
|
|
6995
|
+
inputId: string;
|
|
6996
|
+
state: "waiting";
|
|
6997
|
+
delivery: "prompt" | "steer" | "followUp" | "answer" | "note";
|
|
6677
6998
|
} | {
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
|
|
6681
|
-
threadId: string;
|
|
6682
|
-
runId: string;
|
|
6683
|
-
reason: "busy" | "approval_pending" | "budget" | "rate_limited" | "invalid_payload" | "missing_thread_key" | "no_turn" | "no_output" | "invalid_output" | null;
|
|
6999
|
+
inputId: string | null;
|
|
7000
|
+
state: "refused";
|
|
7001
|
+
reason: "busy" | "approval_pending" | "conflict" | "rate_limited" | "budget" | "full" | "not_waiting";
|
|
6684
7002
|
} | {
|
|
6685
|
-
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
reason: "busy" | "approval_pending" | "budget" | "rate_limited";
|
|
6689
|
-
threadId: string | null;
|
|
7003
|
+
inputId: string;
|
|
7004
|
+
state: "cancelled";
|
|
7005
|
+
reason: "stopped";
|
|
6690
7006
|
} | {
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
7007
|
+
id: string;
|
|
7008
|
+
threadId: string | null;
|
|
7009
|
+
inputId: string | null;
|
|
7010
|
+
kind: "turn" | "subagent" | "tool";
|
|
7011
|
+
subagentRunId: string | null;
|
|
7012
|
+
status: "running" | "waiting" | "completed" | "failed" | "cancelled";
|
|
7013
|
+
reason: "no_output" | "invalid_output" | "stopped" | "cancelled" | "parent_cancelled" | "lost" | "timeout" | null;
|
|
7014
|
+
result: unknown;
|
|
7015
|
+
waits: Array<{
|
|
7016
|
+
kind: "approval" | "client_tool";
|
|
7017
|
+
toolCallId: string;
|
|
7018
|
+
toolName: string;
|
|
7019
|
+
input: unknown;
|
|
6697
7020
|
}>;
|
|
7021
|
+
createdAt: string;
|
|
7022
|
+
finishedAt: string | null;
|
|
6698
7023
|
};
|
|
6699
7024
|
};
|
|
6700
|
-
/** Create a trigger (a named entry point
|
|
7025
|
+
/** Create a trigger (a named entry point fired on an agent) with an audience ({ kind: "all" }, { kind: "server", serverId }, or { kind: "agents", agentIds }), fired on any agent in it. With a `schedule` ({ cron, timeZone }: a five-field cron and an IANA zone) Cortex fires it itself and it has no fire secret; null makes a webhook a caller fires with the secret answered once. Which of the two is fixed for good. The draft has no instructions yet; fill them with update before publishing. */
|
|
6701
7026
|
"triggers.create": {
|
|
6702
7027
|
input: {
|
|
6703
7028
|
/** A name: lowercase letters, digits, and single hyphens. */
|
|
6704
7029
|
name: string;
|
|
7030
|
+
schedule: {
|
|
7031
|
+
cron: string;
|
|
7032
|
+
timeZone: string;
|
|
7033
|
+
} | null;
|
|
6705
7034
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
6706
7035
|
audience: {
|
|
6707
7036
|
kind: "all";
|
|
@@ -6716,7 +7045,7 @@ export type ManagementProcedures = {
|
|
|
6716
7045
|
output: {
|
|
6717
7046
|
id: string;
|
|
6718
7047
|
name: string;
|
|
6719
|
-
rawSecret: string;
|
|
7048
|
+
rawSecret: string | null;
|
|
6720
7049
|
};
|
|
6721
7050
|
};
|
|
6722
7051
|
/** Delete a trigger. */
|
|
@@ -6728,7 +7057,7 @@ export type ManagementProcedures = {
|
|
|
6728
7057
|
id: string;
|
|
6729
7058
|
};
|
|
6730
7059
|
};
|
|
6731
|
-
/** Fire a trigger with a test payload on one of its agents and return the
|
|
7060
|
+
/** Fire a trigger with a test payload on one of its agents and return what became of it: its run once ended or waiting on a decision, the run it started when that outlasts the wait, its input while it waits on the thread or once refused, or the payload's issues. Refused as `not_published` while the trigger is not published or is disabled. */
|
|
6732
7061
|
"triggers.fire": {
|
|
6733
7062
|
input: {
|
|
6734
7063
|
id: string;
|
|
@@ -6736,50 +7065,45 @@ export type ManagementProcedures = {
|
|
|
6736
7065
|
payload: unknown;
|
|
6737
7066
|
};
|
|
6738
7067
|
output: {
|
|
6739
|
-
|
|
6740
|
-
|
|
6741
|
-
outcome: "started";
|
|
6742
|
-
threadId: string;
|
|
7068
|
+
inputId: string;
|
|
7069
|
+
state: "started";
|
|
6743
7070
|
runId: string;
|
|
6744
|
-
} | {
|
|
6745
|
-
status: number;
|
|
6746
|
-
firingId: string;
|
|
6747
|
-
outcome: "awaiting_approval";
|
|
6748
7071
|
threadId: string;
|
|
6749
|
-
|
|
6750
|
-
|
|
6751
|
-
|
|
6752
|
-
|
|
6753
|
-
|
|
7072
|
+
} | {
|
|
7073
|
+
state: "rejected";
|
|
7074
|
+
issues: Array<{
|
|
7075
|
+
path: string;
|
|
7076
|
+
message: string;
|
|
6754
7077
|
}>;
|
|
6755
7078
|
} | {
|
|
6756
|
-
|
|
6757
|
-
|
|
6758
|
-
|
|
6759
|
-
threadId: string;
|
|
6760
|
-
runId: string;
|
|
6761
|
-
output: unknown;
|
|
7079
|
+
inputId: string;
|
|
7080
|
+
state: "waiting";
|
|
7081
|
+
delivery: "prompt" | "steer" | "followUp" | "answer" | "note";
|
|
6762
7082
|
} | {
|
|
6763
|
-
|
|
6764
|
-
|
|
6765
|
-
|
|
6766
|
-
threadId: string;
|
|
6767
|
-
runId: string;
|
|
6768
|
-
reason: "busy" | "approval_pending" | "budget" | "rate_limited" | "invalid_payload" | "missing_thread_key" | "no_turn" | "no_output" | "invalid_output" | null;
|
|
7083
|
+
inputId: string | null;
|
|
7084
|
+
state: "refused";
|
|
7085
|
+
reason: "busy" | "approval_pending" | "conflict" | "rate_limited" | "budget" | "full" | "not_waiting";
|
|
6769
7086
|
} | {
|
|
6770
|
-
|
|
6771
|
-
|
|
6772
|
-
|
|
6773
|
-
reason: "busy" | "approval_pending" | "budget" | "rate_limited";
|
|
6774
|
-
threadId: string | null;
|
|
7087
|
+
inputId: string;
|
|
7088
|
+
state: "cancelled";
|
|
7089
|
+
reason: "stopped";
|
|
6775
7090
|
} | {
|
|
6776
|
-
|
|
6777
|
-
|
|
6778
|
-
|
|
6779
|
-
|
|
6780
|
-
|
|
6781
|
-
|
|
7091
|
+
id: string;
|
|
7092
|
+
threadId: string | null;
|
|
7093
|
+
inputId: string | null;
|
|
7094
|
+
kind: "turn" | "subagent" | "tool";
|
|
7095
|
+
subagentRunId: string | null;
|
|
7096
|
+
status: "running" | "waiting" | "completed" | "failed" | "cancelled";
|
|
7097
|
+
reason: "no_output" | "invalid_output" | "stopped" | "cancelled" | "parent_cancelled" | "lost" | "timeout" | null;
|
|
7098
|
+
result: unknown;
|
|
7099
|
+
waits: Array<{
|
|
7100
|
+
kind: "approval" | "client_tool";
|
|
7101
|
+
toolCallId: string;
|
|
7102
|
+
toolName: string;
|
|
7103
|
+
input: unknown;
|
|
6782
7104
|
}>;
|
|
7105
|
+
createdAt: string;
|
|
7106
|
+
finishedAt: string | null;
|
|
6783
7107
|
};
|
|
6784
7108
|
};
|
|
6785
7109
|
/** One trigger by id with its draft instructions and payload schema. */
|
|
@@ -6796,13 +7120,22 @@ export type ManagementProcedures = {
|
|
|
6796
7120
|
threadPolicy: {
|
|
6797
7121
|
policy: "single";
|
|
6798
7122
|
} | {
|
|
6799
|
-
policy: "per-
|
|
7123
|
+
policy: "per-input";
|
|
6800
7124
|
} | {
|
|
6801
7125
|
policy: "ephemeral";
|
|
6802
7126
|
} | {
|
|
6803
7127
|
policy: "keyed";
|
|
6804
7128
|
key: string;
|
|
7129
|
+
} | {
|
|
7130
|
+
policy: "thread";
|
|
7131
|
+
key: string;
|
|
7132
|
+
wake: boolean;
|
|
6805
7133
|
};
|
|
7134
|
+
schedule: {
|
|
7135
|
+
cron: string;
|
|
7136
|
+
timeZone: string;
|
|
7137
|
+
} | null;
|
|
7138
|
+
whileBusy: "refuse" | "queue" | "steer";
|
|
6806
7139
|
budgetPerDay: number | null;
|
|
6807
7140
|
disableAfterFailures: number;
|
|
6808
7141
|
secretPrefix: string;
|
|
@@ -6888,13 +7221,21 @@ export type ManagementProcedures = {
|
|
|
6888
7221
|
threadPolicy: {
|
|
6889
7222
|
policy: "single";
|
|
6890
7223
|
} | {
|
|
6891
|
-
policy: "per-
|
|
7224
|
+
policy: "per-input";
|
|
6892
7225
|
} | {
|
|
6893
7226
|
policy: "ephemeral";
|
|
6894
7227
|
} | {
|
|
6895
7228
|
policy: "keyed";
|
|
6896
7229
|
key: string;
|
|
7230
|
+
} | {
|
|
7231
|
+
policy: "thread";
|
|
7232
|
+
key: string;
|
|
7233
|
+
wake: boolean;
|
|
6897
7234
|
};
|
|
7235
|
+
schedule: {
|
|
7236
|
+
cron: string;
|
|
7237
|
+
timeZone: string;
|
|
7238
|
+
} | null;
|
|
6898
7239
|
status: "draft" | "published" | "disabled";
|
|
6899
7240
|
secretPrefix: string;
|
|
6900
7241
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
@@ -7003,7 +7344,7 @@ export type ManagementProcedures = {
|
|
|
7003
7344
|
unchanged: boolean;
|
|
7004
7345
|
};
|
|
7005
7346
|
};
|
|
7006
|
-
/** Update a trigger's draft. Saved as a draft; call the entity's publish procedure to make it live. `displayName`, `credentialName`, `fireCredentialName` and the model pick are the exceptions: they apply without a publish, the display name at once, the fire credential from the next
|
|
7347
|
+
/** Update a trigger's draft. Saved as a draft; call the entity's publish procedure to make it live. `displayName`, `credentialName`, `fireCredentialName` and the model pick are the exceptions: they apply without a publish, the display name at once, the fire credential from the next fire and the others from each agent's next turn. Giving the run a different `credentialName` needs `secrets:write`, since tools forwarding the run token send its value upstream. The model pick (`modelProvider` with one of its `modelName`s and optionally a `modelEffort`, all null to run on each agent's own) is refused as `model_not_offered` when the provider does not list the model or the effort, or an effort is picked without a model. `fireCredentialName` names a static credential whose value callers present to fire, shared by every trigger naming it; that credential and its secret may serve nothing else. Clearing it leaves the trigger shut until `triggers.rotateSecret` mints a secret. */
|
|
7007
7348
|
"triggers.update": {
|
|
7008
7349
|
input: {
|
|
7009
7350
|
description: string;
|
|
@@ -7013,13 +7354,22 @@ export type ManagementProcedures = {
|
|
|
7013
7354
|
threadPolicy: {
|
|
7014
7355
|
policy: "single";
|
|
7015
7356
|
} | {
|
|
7016
|
-
policy: "per-
|
|
7357
|
+
policy: "per-input";
|
|
7017
7358
|
} | {
|
|
7018
7359
|
policy: "ephemeral";
|
|
7019
7360
|
} | {
|
|
7020
7361
|
policy: "keyed";
|
|
7021
7362
|
key: string;
|
|
7363
|
+
} | {
|
|
7364
|
+
policy: "thread";
|
|
7365
|
+
key: string;
|
|
7366
|
+
wake: boolean;
|
|
7022
7367
|
};
|
|
7368
|
+
schedule: {
|
|
7369
|
+
cron: string;
|
|
7370
|
+
timeZone: string;
|
|
7371
|
+
} | null;
|
|
7372
|
+
whileBusy: "refuse" | "queue" | "steer";
|
|
7023
7373
|
budgetPerDay: number | null;
|
|
7024
7374
|
disableAfterFailures: number;
|
|
7025
7375
|
id: string;
|
|
@@ -7164,7 +7514,7 @@ export type ManagementProcedures = {
|
|
|
7164
7514
|
name: string;
|
|
7165
7515
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
7166
7516
|
description: string;
|
|
7167
|
-
event: "
|
|
7517
|
+
event: "run_waiting" | "run_finished";
|
|
7168
7518
|
url: string;
|
|
7169
7519
|
headers: Array<{
|
|
7170
7520
|
header: string;
|
|
@@ -7216,7 +7566,7 @@ export type ManagementProcedures = {
|
|
|
7216
7566
|
items: Array<{
|
|
7217
7567
|
id: string;
|
|
7218
7568
|
name: string;
|
|
7219
|
-
event: "
|
|
7569
|
+
event: "run_waiting" | "run_finished";
|
|
7220
7570
|
url: string;
|
|
7221
7571
|
enabled: boolean;
|
|
7222
7572
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
@@ -7257,10 +7607,9 @@ export type ManagementProcedures = {
|
|
|
7257
7607
|
id: string;
|
|
7258
7608
|
serverId: string | null;
|
|
7259
7609
|
agentId: string | null;
|
|
7260
|
-
event: "
|
|
7261
|
-
threadId: string;
|
|
7610
|
+
event: "run_waiting" | "run_finished";
|
|
7611
|
+
threadId: string | null;
|
|
7262
7612
|
runId: string;
|
|
7263
|
-
firingId: string | null;
|
|
7264
7613
|
attempt: number;
|
|
7265
7614
|
status: "delivered" | "failed";
|
|
7266
7615
|
httpStatus: number | null;
|
|
@@ -7334,7 +7683,7 @@ export type ManagementProcedures = {
|
|
|
7334
7683
|
"webhooks.update": {
|
|
7335
7684
|
input: {
|
|
7336
7685
|
description: string;
|
|
7337
|
-
event: "
|
|
7686
|
+
event: "run_waiting" | "run_finished";
|
|
7338
7687
|
url: string;
|
|
7339
7688
|
headers: Array<{
|
|
7340
7689
|
header: string;
|
|
@@ -9030,7 +9379,7 @@ declare const manifestTriggerSchema: z.ZodObject<{
|
|
|
9030
9379
|
policy: z.ZodLiteral<"single">;
|
|
9031
9380
|
}, z.core.$strip>,
|
|
9032
9381
|
z.ZodObject<{
|
|
9033
|
-
policy: z.ZodLiteral<"per-
|
|
9382
|
+
policy: z.ZodLiteral<"per-input">;
|
|
9034
9383
|
}, z.core.$strip>,
|
|
9035
9384
|
z.ZodObject<{
|
|
9036
9385
|
policy: z.ZodLiteral<"ephemeral">;
|
|
@@ -9038,8 +9387,18 @@ declare const manifestTriggerSchema: z.ZodObject<{
|
|
|
9038
9387
|
z.ZodObject<{
|
|
9039
9388
|
policy: z.ZodLiteral<"keyed">;
|
|
9040
9389
|
key: z.ZodString;
|
|
9390
|
+
}, z.core.$strip>,
|
|
9391
|
+
z.ZodObject<{
|
|
9392
|
+
policy: z.ZodLiteral<"thread">;
|
|
9393
|
+
key: z.ZodString;
|
|
9394
|
+
wake: z.ZodBoolean;
|
|
9041
9395
|
}, z.core.$strip>
|
|
9042
9396
|
], "policy">>;
|
|
9397
|
+
whileBusy: z.ZodDefault<z.ZodEnum<{
|
|
9398
|
+
steer: "steer";
|
|
9399
|
+
refuse: "refuse";
|
|
9400
|
+
queue: "queue";
|
|
9401
|
+
}>>;
|
|
9043
9402
|
budgetPerDay: z.ZodOptional<z.ZodNumber>;
|
|
9044
9403
|
disableAfterFailures: z.ZodDefault<z.ZodNumber>;
|
|
9045
9404
|
credential: z.ZodOptional<z.ZodString>;
|
|
@@ -9049,6 +9408,10 @@ declare const manifestTriggerSchema: z.ZodObject<{
|
|
|
9049
9408
|
model: z.ZodString;
|
|
9050
9409
|
effort: z.ZodOptional<z.ZodString>;
|
|
9051
9410
|
}, z.core.$strict>>;
|
|
9411
|
+
schedule: z.ZodOptional<z.ZodObject<{
|
|
9412
|
+
cron: z.ZodString;
|
|
9413
|
+
timeZone: z.ZodString;
|
|
9414
|
+
}, z.core.$strip>>;
|
|
9052
9415
|
audience: z.ZodUnion<readonly [
|
|
9053
9416
|
z.ZodLiteral<"all">,
|
|
9054
9417
|
z.ZodObject<{
|
|
@@ -9059,10 +9422,12 @@ declare const manifestTriggerSchema: z.ZodObject<{
|
|
|
9059
9422
|
}, z.core.$strict>
|
|
9060
9423
|
]>;
|
|
9061
9424
|
overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
9425
|
+
schedule: "schedule";
|
|
9062
9426
|
description: "description";
|
|
9063
9427
|
displayName: "displayName";
|
|
9064
9428
|
instructions: "instructions";
|
|
9065
9429
|
threadPolicy: "threadPolicy";
|
|
9430
|
+
whileBusy: "whileBusy";
|
|
9066
9431
|
budgetPerDay: "budgetPerDay";
|
|
9067
9432
|
disableAfterFailures: "disableAfterFailures";
|
|
9068
9433
|
model: "model";
|
|
@@ -9219,6 +9584,14 @@ declare const manifestMcpServerSchema: z.ZodObject<{
|
|
|
9219
9584
|
kind: "runToken";
|
|
9220
9585
|
}>>;
|
|
9221
9586
|
}, z.core.$strict>>>;
|
|
9587
|
+
signIn: z.ZodOptional<z.ZodObject<{
|
|
9588
|
+
connects: z.ZodEnum<{
|
|
9589
|
+
shared: "shared";
|
|
9590
|
+
endUser: "endUser";
|
|
9591
|
+
}>;
|
|
9592
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
9593
|
+
credential: z.ZodOptional<z.ZodString>;
|
|
9594
|
+
}, z.core.$strict>>;
|
|
9222
9595
|
include: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
9223
9596
|
exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
9224
9597
|
audience: z.ZodUnion<readonly [
|
|
@@ -9233,6 +9606,7 @@ declare const manifestMcpServerSchema: z.ZodObject<{
|
|
|
9233
9606
|
overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
9234
9607
|
displayName: "displayName";
|
|
9235
9608
|
headers: "headers";
|
|
9609
|
+
signIn: "signIn";
|
|
9236
9610
|
include: "include";
|
|
9237
9611
|
exclude: "exclude";
|
|
9238
9612
|
}>>>;
|
|
@@ -9251,7 +9625,8 @@ declare const manifestWebhookSchema: z.ZodObject<{
|
|
|
9251
9625
|
}> & z.core.$partial, z.ZodString>>>;
|
|
9252
9626
|
description: z.ZodDefault<z.ZodString>;
|
|
9253
9627
|
event: z.ZodEnum<{
|
|
9254
|
-
|
|
9628
|
+
run_waiting: "run_waiting";
|
|
9629
|
+
run_finished: "run_finished";
|
|
9255
9630
|
}>;
|
|
9256
9631
|
url: z.ZodURL;
|
|
9257
9632
|
headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -9423,16 +9798,23 @@ declare const manifestAgentSchema: z.ZodObject<{
|
|
|
9423
9798
|
ragEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
9424
9799
|
toolRegistryEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
9425
9800
|
serviceRegistryEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
9801
|
+
subagentsEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
9802
|
+
checkBacksEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
9426
9803
|
attachmentsEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
9427
9804
|
fetchImageHostnames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
9428
9805
|
locationPicker: z.ZodDefault<z.ZodBoolean>;
|
|
9429
9806
|
media: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
9807
|
+
map: "map";
|
|
9430
9808
|
mermaid: "mermaid";
|
|
9431
9809
|
"vega-lite": "vega-lite";
|
|
9432
|
-
map: "map";
|
|
9433
9810
|
report: "report";
|
|
9434
9811
|
}>>>;
|
|
9435
|
-
|
|
9812
|
+
messages: z.ZodDefault<z.ZodBoolean>;
|
|
9813
|
+
whileBusy: z.ZodDefault<z.ZodEnum<{
|
|
9814
|
+
steer: "steer";
|
|
9815
|
+
refuse: "refuse";
|
|
9816
|
+
queue: "queue";
|
|
9817
|
+
}>>;
|
|
9436
9818
|
defaultLocale: z.ZodDefault<z.ZodEnum<{
|
|
9437
9819
|
en: "en";
|
|
9438
9820
|
ar: "ar";
|
|
@@ -9471,8 +9853,8 @@ declare const manifestAgentSchema: z.ZodObject<{
|
|
|
9471
9853
|
ar: "ar";
|
|
9472
9854
|
}>, z.ZodString>>;
|
|
9473
9855
|
overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
9474
|
-
displayName: "displayName";
|
|
9475
9856
|
prompt: "prompt";
|
|
9857
|
+
displayName: "displayName";
|
|
9476
9858
|
models: "models";
|
|
9477
9859
|
settings: "settings";
|
|
9478
9860
|
rateLimits: "rateLimits";
|
|
@@ -9546,16 +9928,23 @@ declare const manifestSchema: z.ZodObject<{
|
|
|
9546
9928
|
ragEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
9547
9929
|
toolRegistryEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
9548
9930
|
serviceRegistryEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
9931
|
+
subagentsEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
9932
|
+
checkBacksEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
9549
9933
|
attachmentsEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
9550
9934
|
fetchImageHostnames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
9551
9935
|
locationPicker: z.ZodDefault<z.ZodBoolean>;
|
|
9552
9936
|
media: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
9937
|
+
map: "map";
|
|
9553
9938
|
mermaid: "mermaid";
|
|
9554
9939
|
"vega-lite": "vega-lite";
|
|
9555
|
-
map: "map";
|
|
9556
9940
|
report: "report";
|
|
9557
9941
|
}>>>;
|
|
9558
|
-
|
|
9942
|
+
messages: z.ZodDefault<z.ZodBoolean>;
|
|
9943
|
+
whileBusy: z.ZodDefault<z.ZodEnum<{
|
|
9944
|
+
steer: "steer";
|
|
9945
|
+
refuse: "refuse";
|
|
9946
|
+
queue: "queue";
|
|
9947
|
+
}>>;
|
|
9559
9948
|
defaultLocale: z.ZodDefault<z.ZodEnum<{
|
|
9560
9949
|
en: "en";
|
|
9561
9950
|
ar: "ar";
|
|
@@ -9594,8 +9983,8 @@ declare const manifestSchema: z.ZodObject<{
|
|
|
9594
9983
|
ar: "ar";
|
|
9595
9984
|
}>, z.ZodString>>;
|
|
9596
9985
|
overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
9597
|
-
displayName: "displayName";
|
|
9598
9986
|
prompt: "prompt";
|
|
9987
|
+
displayName: "displayName";
|
|
9599
9988
|
models: "models";
|
|
9600
9989
|
settings: "settings";
|
|
9601
9990
|
rateLimits: "rateLimits";
|
|
@@ -11295,7 +11684,7 @@ declare const manifestSchema: z.ZodObject<{
|
|
|
11295
11684
|
policy: z.ZodLiteral<"single">;
|
|
11296
11685
|
}, z.core.$strip>,
|
|
11297
11686
|
z.ZodObject<{
|
|
11298
|
-
policy: z.ZodLiteral<"per-
|
|
11687
|
+
policy: z.ZodLiteral<"per-input">;
|
|
11299
11688
|
}, z.core.$strip>,
|
|
11300
11689
|
z.ZodObject<{
|
|
11301
11690
|
policy: z.ZodLiteral<"ephemeral">;
|
|
@@ -11303,8 +11692,18 @@ declare const manifestSchema: z.ZodObject<{
|
|
|
11303
11692
|
z.ZodObject<{
|
|
11304
11693
|
policy: z.ZodLiteral<"keyed">;
|
|
11305
11694
|
key: z.ZodString;
|
|
11695
|
+
}, z.core.$strip>,
|
|
11696
|
+
z.ZodObject<{
|
|
11697
|
+
policy: z.ZodLiteral<"thread">;
|
|
11698
|
+
key: z.ZodString;
|
|
11699
|
+
wake: z.ZodBoolean;
|
|
11306
11700
|
}, z.core.$strip>
|
|
11307
11701
|
], "policy">>;
|
|
11702
|
+
whileBusy: z.ZodDefault<z.ZodEnum<{
|
|
11703
|
+
steer: "steer";
|
|
11704
|
+
refuse: "refuse";
|
|
11705
|
+
queue: "queue";
|
|
11706
|
+
}>>;
|
|
11308
11707
|
budgetPerDay: z.ZodOptional<z.ZodNumber>;
|
|
11309
11708
|
disableAfterFailures: z.ZodDefault<z.ZodNumber>;
|
|
11310
11709
|
credential: z.ZodOptional<z.ZodString>;
|
|
@@ -11314,6 +11713,10 @@ declare const manifestSchema: z.ZodObject<{
|
|
|
11314
11713
|
model: z.ZodString;
|
|
11315
11714
|
effort: z.ZodOptional<z.ZodString>;
|
|
11316
11715
|
}, z.core.$strict>>;
|
|
11716
|
+
schedule: z.ZodOptional<z.ZodObject<{
|
|
11717
|
+
cron: z.ZodString;
|
|
11718
|
+
timeZone: z.ZodString;
|
|
11719
|
+
}, z.core.$strip>>;
|
|
11317
11720
|
audience: z.ZodUnion<readonly [
|
|
11318
11721
|
z.ZodLiteral<"all">,
|
|
11319
11722
|
z.ZodObject<{
|
|
@@ -11324,10 +11727,12 @@ declare const manifestSchema: z.ZodObject<{
|
|
|
11324
11727
|
}, z.core.$strict>
|
|
11325
11728
|
]>;
|
|
11326
11729
|
overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
11730
|
+
schedule: "schedule";
|
|
11327
11731
|
description: "description";
|
|
11328
11732
|
displayName: "displayName";
|
|
11329
11733
|
instructions: "instructions";
|
|
11330
11734
|
threadPolicy: "threadPolicy";
|
|
11735
|
+
whileBusy: "whileBusy";
|
|
11331
11736
|
budgetPerDay: "budgetPerDay";
|
|
11332
11737
|
disableAfterFailures: "disableAfterFailures";
|
|
11333
11738
|
model: "model";
|
|
@@ -11482,6 +11887,14 @@ declare const manifestSchema: z.ZodObject<{
|
|
|
11482
11887
|
kind: "runToken";
|
|
11483
11888
|
}>>;
|
|
11484
11889
|
}, z.core.$strict>>>;
|
|
11890
|
+
signIn: z.ZodOptional<z.ZodObject<{
|
|
11891
|
+
connects: z.ZodEnum<{
|
|
11892
|
+
shared: "shared";
|
|
11893
|
+
endUser: "endUser";
|
|
11894
|
+
}>;
|
|
11895
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
11896
|
+
credential: z.ZodOptional<z.ZodString>;
|
|
11897
|
+
}, z.core.$strict>>;
|
|
11485
11898
|
include: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
11486
11899
|
exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
11487
11900
|
audience: z.ZodUnion<readonly [
|
|
@@ -11496,6 +11909,7 @@ declare const manifestSchema: z.ZodObject<{
|
|
|
11496
11909
|
overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
11497
11910
|
displayName: "displayName";
|
|
11498
11911
|
headers: "headers";
|
|
11912
|
+
signIn: "signIn";
|
|
11499
11913
|
include: "include";
|
|
11500
11914
|
exclude: "exclude";
|
|
11501
11915
|
}>>>;
|
|
@@ -11513,7 +11927,8 @@ declare const manifestSchema: z.ZodObject<{
|
|
|
11513
11927
|
}> & z.core.$partial, z.ZodString>>>;
|
|
11514
11928
|
description: z.ZodDefault<z.ZodString>;
|
|
11515
11929
|
event: z.ZodEnum<{
|
|
11516
|
-
|
|
11930
|
+
run_waiting: "run_waiting";
|
|
11931
|
+
run_finished: "run_finished";
|
|
11517
11932
|
}>;
|
|
11518
11933
|
url: z.ZodURL;
|
|
11519
11934
|
headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -11657,11 +12072,14 @@ export declare function defineManifest(manifest: Manifest): {
|
|
|
11657
12072
|
ragEnabled?: boolean | undefined;
|
|
11658
12073
|
toolRegistryEnabled?: boolean | undefined;
|
|
11659
12074
|
serviceRegistryEnabled?: boolean | undefined;
|
|
12075
|
+
subagentsEnabled?: boolean | undefined;
|
|
12076
|
+
checkBacksEnabled?: boolean | undefined;
|
|
11660
12077
|
attachmentsEnabled?: boolean | undefined;
|
|
11661
12078
|
fetchImageHostnames?: string[] | undefined;
|
|
11662
12079
|
locationPicker?: boolean | undefined;
|
|
11663
|
-
media?: ("
|
|
11664
|
-
|
|
12080
|
+
media?: ("map" | "mermaid" | "vega-lite" | "report")[] | undefined;
|
|
12081
|
+
messages?: boolean | undefined;
|
|
12082
|
+
whileBusy?: "steer" | "refuse" | "queue" | undefined;
|
|
11665
12083
|
defaultLocale?: "en" | "ar" | undefined;
|
|
11666
12084
|
context?: {
|
|
11667
12085
|
maxContextTokens?: number | undefined;
|
|
@@ -11690,7 +12108,7 @@ export declare function defineManifest(manifest: Manifest): {
|
|
|
11690
12108
|
prompt: string;
|
|
11691
12109
|
}[]> | undefined;
|
|
11692
12110
|
greeting?: Record<"en" | "ar", string> | undefined;
|
|
11693
|
-
overridable?: ("
|
|
12111
|
+
overridable?: ("prompt" | "displayName" | "models" | "settings" | "rateLimits" | "suggestions" | "greeting")[] | undefined;
|
|
11694
12112
|
}[] | undefined;
|
|
11695
12113
|
tools?: ({
|
|
11696
12114
|
audience: "all" | {
|
|
@@ -12508,13 +12926,18 @@ export declare function defineManifest(manifest: Manifest): {
|
|
|
12508
12926
|
threadPolicy?: {
|
|
12509
12927
|
policy: "single";
|
|
12510
12928
|
} | {
|
|
12511
|
-
policy: "per-
|
|
12929
|
+
policy: "per-input";
|
|
12512
12930
|
} | {
|
|
12513
12931
|
policy: "ephemeral";
|
|
12514
12932
|
} | {
|
|
12515
12933
|
policy: "keyed";
|
|
12516
12934
|
key: string;
|
|
12935
|
+
} | {
|
|
12936
|
+
policy: "thread";
|
|
12937
|
+
key: string;
|
|
12938
|
+
wake: boolean;
|
|
12517
12939
|
} | undefined;
|
|
12940
|
+
whileBusy?: "steer" | "refuse" | "queue" | undefined;
|
|
12518
12941
|
budgetPerDay?: number | undefined;
|
|
12519
12942
|
disableAfterFailures?: number | undefined;
|
|
12520
12943
|
credential?: string | undefined;
|
|
@@ -12524,7 +12947,11 @@ export declare function defineManifest(manifest: Manifest): {
|
|
|
12524
12947
|
model: string;
|
|
12525
12948
|
effort?: string | undefined;
|
|
12526
12949
|
} | undefined;
|
|
12527
|
-
|
|
12950
|
+
schedule?: {
|
|
12951
|
+
cron: string;
|
|
12952
|
+
timeZone: string;
|
|
12953
|
+
} | undefined;
|
|
12954
|
+
overridable?: ("schedule" | "description" | "displayName" | "instructions" | "threadPolicy" | "whileBusy" | "budgetPerDay" | "disableAfterFailures" | "model")[] | undefined;
|
|
12528
12955
|
}[] | undefined;
|
|
12529
12956
|
datasetHosts?: {
|
|
12530
12957
|
name: string;
|
|
@@ -12589,13 +13016,18 @@ export declare function defineManifest(manifest: Manifest): {
|
|
|
12589
13016
|
};
|
|
12590
13017
|
prefix?: string | undefined;
|
|
12591
13018
|
}[] | undefined;
|
|
13019
|
+
signIn?: {
|
|
13020
|
+
connects: "shared" | "endUser";
|
|
13021
|
+
scope?: string | undefined;
|
|
13022
|
+
credential?: string | undefined;
|
|
13023
|
+
} | undefined;
|
|
12592
13024
|
include?: string[] | undefined;
|
|
12593
13025
|
exclude?: string[] | undefined;
|
|
12594
|
-
overridable?: ("displayName" | "headers" | "include" | "exclude")[] | undefined;
|
|
13026
|
+
overridable?: ("displayName" | "headers" | "signIn" | "include" | "exclude")[] | undefined;
|
|
12595
13027
|
}[] | undefined;
|
|
12596
13028
|
webhooks?: {
|
|
12597
13029
|
name: string;
|
|
12598
|
-
event: "
|
|
13030
|
+
event: "run_waiting" | "run_finished";
|
|
12599
13031
|
url: string;
|
|
12600
13032
|
audience: "all" | {
|
|
12601
13033
|
server: string;
|