@m6d/cortex-cli 0.22.0 → 0.24.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/package.json +1 -1
- package/src/commands/management.ts +8 -5
- package/src/commands/setup.ts +15 -8
- package/src/contracts/management/procedures.generated.ts +792 -178
- package/src/contracts/manifest/index.ts +413 -97
- package/src/contracts/pattern/index.ts +276 -0
- package/src/contracts/runs/index.ts +187 -0
- package/src/contracts/schedule/index.ts +62 -0
- package/src/contracts/server/index.ts +99 -28
- package/src/contracts/triggers/index.ts +36 -93
- package/src/contracts/wire/index.ts +119 -55
- package/src/management/flags.ts +14 -4
- package/src/scaffold/files.ts +8 -3
- package/src/ui/prompts.ts +18 -24
|
@@ -8,10 +8,35 @@ export type ManifestsPreviewSchema0 = {
|
|
|
8
8
|
required?: Array<string>;
|
|
9
9
|
"x-order"?: Array<string>;
|
|
10
10
|
items?: {
|
|
11
|
-
type: "string" | "number" | "integer" | "boolean" | "object";
|
|
11
|
+
type: "string" | "number" | "integer" | "boolean" | "object" | ["string" | "number" | "integer" | "boolean" | "object", "null"];
|
|
12
|
+
enum?: Array<string | null>;
|
|
12
13
|
properties?: Record<string, ManifestsPreviewSchema0>;
|
|
13
14
|
required?: Array<string>;
|
|
14
15
|
"x-order"?: Array<string>;
|
|
16
|
+
pattern?: string;
|
|
17
|
+
minLength?: number;
|
|
18
|
+
maxLength?: number;
|
|
19
|
+
format?: string;
|
|
20
|
+
minimum?: number;
|
|
21
|
+
maximum?: number;
|
|
22
|
+
exclusiveMinimum?: number;
|
|
23
|
+
exclusiveMaximum?: number;
|
|
24
|
+
multipleOf?: number;
|
|
25
|
+
minItems?: number;
|
|
26
|
+
maxItems?: number;
|
|
27
|
+
uniqueItems?: boolean;
|
|
28
|
+
const?: string | number | boolean;
|
|
29
|
+
anyOf?: SchemaConditions;
|
|
30
|
+
oneOf?: SchemaConditions;
|
|
31
|
+
allOf?: SchemaConditions;
|
|
32
|
+
not?: SchemaCondition;
|
|
33
|
+
if?: SchemaCondition;
|
|
34
|
+
then?: SchemaCondition;
|
|
35
|
+
else?: SchemaCondition;
|
|
36
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
37
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
38
|
+
minProperties?: number;
|
|
39
|
+
maxProperties?: number;
|
|
15
40
|
};
|
|
16
41
|
"x-sensitive"?: boolean;
|
|
17
42
|
"x-source"?: {
|
|
@@ -49,6 +74,30 @@ export type ManifestsPreviewSchema0 = {
|
|
|
49
74
|
kind: "cookie";
|
|
50
75
|
name?: string;
|
|
51
76
|
};
|
|
77
|
+
pattern?: string;
|
|
78
|
+
minLength?: number;
|
|
79
|
+
maxLength?: number;
|
|
80
|
+
format?: string;
|
|
81
|
+
minimum?: number;
|
|
82
|
+
maximum?: number;
|
|
83
|
+
exclusiveMinimum?: number;
|
|
84
|
+
exclusiveMaximum?: number;
|
|
85
|
+
multipleOf?: number;
|
|
86
|
+
minItems?: number;
|
|
87
|
+
maxItems?: number;
|
|
88
|
+
uniqueItems?: boolean;
|
|
89
|
+
const?: string | number | boolean;
|
|
90
|
+
anyOf?: SchemaConditions;
|
|
91
|
+
oneOf?: SchemaConditions;
|
|
92
|
+
allOf?: SchemaConditions;
|
|
93
|
+
not?: SchemaCondition;
|
|
94
|
+
if?: SchemaCondition;
|
|
95
|
+
then?: SchemaCondition;
|
|
96
|
+
else?: SchemaCondition;
|
|
97
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
98
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
99
|
+
minProperties?: number;
|
|
100
|
+
maxProperties?: number;
|
|
52
101
|
};
|
|
53
102
|
|
|
54
103
|
export type ManifestsSyncSchema0 = {
|
|
@@ -59,10 +108,35 @@ export type ManifestsSyncSchema0 = {
|
|
|
59
108
|
required?: Array<string>;
|
|
60
109
|
"x-order"?: Array<string>;
|
|
61
110
|
items?: {
|
|
62
|
-
type: "string" | "number" | "integer" | "boolean" | "object";
|
|
111
|
+
type: "string" | "number" | "integer" | "boolean" | "object" | ["string" | "number" | "integer" | "boolean" | "object", "null"];
|
|
112
|
+
enum?: Array<string | null>;
|
|
63
113
|
properties?: Record<string, ManifestsSyncSchema0>;
|
|
64
114
|
required?: Array<string>;
|
|
65
115
|
"x-order"?: Array<string>;
|
|
116
|
+
pattern?: string;
|
|
117
|
+
minLength?: number;
|
|
118
|
+
maxLength?: number;
|
|
119
|
+
format?: string;
|
|
120
|
+
minimum?: number;
|
|
121
|
+
maximum?: number;
|
|
122
|
+
exclusiveMinimum?: number;
|
|
123
|
+
exclusiveMaximum?: number;
|
|
124
|
+
multipleOf?: number;
|
|
125
|
+
minItems?: number;
|
|
126
|
+
maxItems?: number;
|
|
127
|
+
uniqueItems?: boolean;
|
|
128
|
+
const?: string | number | boolean;
|
|
129
|
+
anyOf?: SchemaConditions;
|
|
130
|
+
oneOf?: SchemaConditions;
|
|
131
|
+
allOf?: SchemaConditions;
|
|
132
|
+
not?: SchemaCondition;
|
|
133
|
+
if?: SchemaCondition;
|
|
134
|
+
then?: SchemaCondition;
|
|
135
|
+
else?: SchemaCondition;
|
|
136
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
137
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
138
|
+
minProperties?: number;
|
|
139
|
+
maxProperties?: number;
|
|
66
140
|
};
|
|
67
141
|
"x-sensitive"?: boolean;
|
|
68
142
|
"x-source"?: {
|
|
@@ -100,8 +174,66 @@ export type ManifestsSyncSchema0 = {
|
|
|
100
174
|
kind: "cookie";
|
|
101
175
|
name?: string;
|
|
102
176
|
};
|
|
177
|
+
pattern?: string;
|
|
178
|
+
minLength?: number;
|
|
179
|
+
maxLength?: number;
|
|
180
|
+
format?: string;
|
|
181
|
+
minimum?: number;
|
|
182
|
+
maximum?: number;
|
|
183
|
+
exclusiveMinimum?: number;
|
|
184
|
+
exclusiveMaximum?: number;
|
|
185
|
+
multipleOf?: number;
|
|
186
|
+
minItems?: number;
|
|
187
|
+
maxItems?: number;
|
|
188
|
+
uniqueItems?: boolean;
|
|
189
|
+
const?: string | number | boolean;
|
|
190
|
+
anyOf?: SchemaConditions;
|
|
191
|
+
oneOf?: SchemaConditions;
|
|
192
|
+
allOf?: SchemaConditions;
|
|
193
|
+
not?: SchemaCondition;
|
|
194
|
+
if?: SchemaCondition;
|
|
195
|
+
then?: SchemaCondition;
|
|
196
|
+
else?: SchemaCondition;
|
|
197
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
198
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
199
|
+
minProperties?: number;
|
|
200
|
+
maxProperties?: number;
|
|
103
201
|
};
|
|
104
202
|
|
|
203
|
+
export type SchemaCondition = {
|
|
204
|
+
type?: "string" | "number" | "integer" | "boolean" | "object" | "array" | "null" | Array<"string" | "number" | "integer" | "boolean" | "object" | "array" | "null">;
|
|
205
|
+
enum?: Array<string | number | boolean | null>;
|
|
206
|
+
pattern?: string;
|
|
207
|
+
minLength?: number;
|
|
208
|
+
maxLength?: number;
|
|
209
|
+
format?: string;
|
|
210
|
+
minimum?: number;
|
|
211
|
+
maximum?: number;
|
|
212
|
+
exclusiveMinimum?: number;
|
|
213
|
+
exclusiveMaximum?: number;
|
|
214
|
+
multipleOf?: number;
|
|
215
|
+
minItems?: number;
|
|
216
|
+
maxItems?: number;
|
|
217
|
+
uniqueItems?: boolean;
|
|
218
|
+
const?: string | number | boolean;
|
|
219
|
+
required?: Array<string>;
|
|
220
|
+
properties?: Record<string, SchemaCondition>;
|
|
221
|
+
items?: SchemaCondition;
|
|
222
|
+
anyOf?: SchemaConditions;
|
|
223
|
+
oneOf?: SchemaConditions;
|
|
224
|
+
allOf?: SchemaConditions;
|
|
225
|
+
not?: SchemaCondition;
|
|
226
|
+
if?: SchemaCondition;
|
|
227
|
+
then?: SchemaCondition;
|
|
228
|
+
else?: SchemaCondition;
|
|
229
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
230
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
231
|
+
minProperties?: number;
|
|
232
|
+
maxProperties?: number;
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
export type SchemaConditions = Array<SchemaCondition>;
|
|
236
|
+
|
|
105
237
|
export type SchemaFieldRow = {
|
|
106
238
|
name: string;
|
|
107
239
|
type: "string" | "number" | "integer" | "boolean" | "enum" | "object" | "array";
|
|
@@ -147,8 +279,55 @@ export type SchemaFieldRow = {
|
|
|
147
279
|
name?: string;
|
|
148
280
|
};
|
|
149
281
|
/** Required on every row: the item type of an array row, "string" on any other. */
|
|
150
|
-
arrayItemType: "string" | "number" | "integer" | "boolean" | "object";
|
|
282
|
+
arrayItemType: "string" | "number" | "integer" | "boolean" | "enum" | "object";
|
|
151
283
|
enumValues: Array<string>;
|
|
284
|
+
itemNullable?: boolean;
|
|
285
|
+
/** JSON Schema keywords bounding the value, by keyword. */
|
|
286
|
+
constraints?: {
|
|
287
|
+
pattern?: string;
|
|
288
|
+
minLength?: number;
|
|
289
|
+
maxLength?: number;
|
|
290
|
+
format?: string;
|
|
291
|
+
minimum?: number;
|
|
292
|
+
maximum?: number;
|
|
293
|
+
exclusiveMinimum?: number;
|
|
294
|
+
exclusiveMaximum?: number;
|
|
295
|
+
multipleOf?: number;
|
|
296
|
+
minItems?: number;
|
|
297
|
+
maxItems?: number;
|
|
298
|
+
uniqueItems?: boolean;
|
|
299
|
+
const?: string | number | boolean;
|
|
300
|
+
};
|
|
301
|
+
/** JSON Schema keywords bounding each item of a scalar array. */
|
|
302
|
+
itemConstraints?: {
|
|
303
|
+
pattern?: string;
|
|
304
|
+
minLength?: number;
|
|
305
|
+
maxLength?: number;
|
|
306
|
+
format?: string;
|
|
307
|
+
minimum?: number;
|
|
308
|
+
maximum?: number;
|
|
309
|
+
exclusiveMinimum?: number;
|
|
310
|
+
exclusiveMaximum?: number;
|
|
311
|
+
multipleOf?: number;
|
|
312
|
+
minItems?: number;
|
|
313
|
+
maxItems?: number;
|
|
314
|
+
uniqueItems?: boolean;
|
|
315
|
+
const?: string | number | boolean;
|
|
316
|
+
};
|
|
317
|
+
/** JSON Schema rules relating the nested rows (anyOf, if/then/else, dependentRequired, …). */
|
|
318
|
+
rules?: {
|
|
319
|
+
anyOf?: SchemaConditions;
|
|
320
|
+
oneOf?: SchemaConditions;
|
|
321
|
+
allOf?: SchemaConditions;
|
|
322
|
+
not?: SchemaCondition;
|
|
323
|
+
if?: SchemaCondition;
|
|
324
|
+
then?: SchemaCondition;
|
|
325
|
+
else?: SchemaCondition;
|
|
326
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
327
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
328
|
+
minProperties?: number;
|
|
329
|
+
maxProperties?: number;
|
|
330
|
+
};
|
|
152
331
|
/** Nested rows of an object field, in this same shape. */
|
|
153
332
|
fields: Array<SchemaFieldRow>;
|
|
154
333
|
};
|
|
@@ -198,8 +377,55 @@ export type StoredSchemaFieldRow = {
|
|
|
198
377
|
name?: string;
|
|
199
378
|
};
|
|
200
379
|
/** Required on every row: the item type of an array row, "string" on any other. */
|
|
201
|
-
arrayItemType: "string" | "number" | "integer" | "boolean" | "object";
|
|
380
|
+
arrayItemType: "string" | "number" | "integer" | "boolean" | "enum" | "object";
|
|
202
381
|
enumValues: Array<string>;
|
|
382
|
+
itemNullable?: boolean;
|
|
383
|
+
/** JSON Schema keywords bounding the value, by keyword. */
|
|
384
|
+
constraints?: {
|
|
385
|
+
pattern?: string;
|
|
386
|
+
minLength?: number;
|
|
387
|
+
maxLength?: number;
|
|
388
|
+
format?: string;
|
|
389
|
+
minimum?: number;
|
|
390
|
+
maximum?: number;
|
|
391
|
+
exclusiveMinimum?: number;
|
|
392
|
+
exclusiveMaximum?: number;
|
|
393
|
+
multipleOf?: number;
|
|
394
|
+
minItems?: number;
|
|
395
|
+
maxItems?: number;
|
|
396
|
+
uniqueItems?: boolean;
|
|
397
|
+
const?: string | number | boolean;
|
|
398
|
+
};
|
|
399
|
+
/** JSON Schema keywords bounding each item of a scalar array. */
|
|
400
|
+
itemConstraints?: {
|
|
401
|
+
pattern?: string;
|
|
402
|
+
minLength?: number;
|
|
403
|
+
maxLength?: number;
|
|
404
|
+
format?: string;
|
|
405
|
+
minimum?: number;
|
|
406
|
+
maximum?: number;
|
|
407
|
+
exclusiveMinimum?: number;
|
|
408
|
+
exclusiveMaximum?: number;
|
|
409
|
+
multipleOf?: number;
|
|
410
|
+
minItems?: number;
|
|
411
|
+
maxItems?: number;
|
|
412
|
+
uniqueItems?: boolean;
|
|
413
|
+
const?: string | number | boolean;
|
|
414
|
+
};
|
|
415
|
+
/** JSON Schema rules relating the nested rows (anyOf, if/then/else, dependentRequired, …). */
|
|
416
|
+
rules?: {
|
|
417
|
+
anyOf?: SchemaConditions;
|
|
418
|
+
oneOf?: SchemaConditions;
|
|
419
|
+
allOf?: SchemaConditions;
|
|
420
|
+
not?: SchemaCondition;
|
|
421
|
+
if?: SchemaCondition;
|
|
422
|
+
then?: SchemaCondition;
|
|
423
|
+
else?: SchemaCondition;
|
|
424
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
425
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
426
|
+
minProperties?: number;
|
|
427
|
+
maxProperties?: number;
|
|
428
|
+
};
|
|
203
429
|
/** Nested rows of an object field, in this same shape. */
|
|
204
430
|
fields: Array<StoredSchemaFieldRow>;
|
|
205
431
|
};
|
|
@@ -277,16 +503,16 @@ export const managementProcedureKinds = {
|
|
|
277
503
|
"observability.getExecution": "query",
|
|
278
504
|
"observability.getExecutionSummary": "query",
|
|
279
505
|
"observability.getRetrievalQuality": "query",
|
|
280
|
-
"observability.
|
|
506
|
+
"observability.getRun": "query",
|
|
281
507
|
"observability.getUsage": "query",
|
|
282
508
|
"observability.listDatasetReads": "query",
|
|
283
509
|
"observability.listExecutions": "query",
|
|
510
|
+
"observability.listRuns": "query",
|
|
284
511
|
"observability.listSchemaDrifts": "query",
|
|
285
512
|
"observability.listSkillLoads": "query",
|
|
286
513
|
"observability.listSkillMisses": "query",
|
|
287
514
|
"observability.listSkillUsage": "query",
|
|
288
515
|
"observability.listToolHealth": "query",
|
|
289
|
-
"observability.listTriggerFirings": "query",
|
|
290
516
|
"observability.unhealthyToolIds": "query",
|
|
291
517
|
"observability.unusedSkillIds": "query",
|
|
292
518
|
"observability.updateSchemaDrift": "mutation",
|
|
@@ -352,7 +578,7 @@ export const managementProcedureKinds = {
|
|
|
352
578
|
"tools.test": "mutation",
|
|
353
579
|
"tools.toggle": "mutation",
|
|
354
580
|
"tools.update": "mutation",
|
|
355
|
-
"triggers.
|
|
581
|
+
"triggers.answerRun": "mutation",
|
|
356
582
|
"triggers.create": "mutation",
|
|
357
583
|
"triggers.delete": "mutation",
|
|
358
584
|
"triggers.fire": "mutation",
|
|
@@ -397,7 +623,7 @@ export type ManagementProcedures = {
|
|
|
397
623
|
updatedAt: string;
|
|
398
624
|
};
|
|
399
625
|
};
|
|
400
|
-
/** 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. */
|
|
626
|
+
/** 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. */
|
|
401
627
|
"agents.create": {
|
|
402
628
|
input: {
|
|
403
629
|
/** A name: lowercase letters, digits, and single hyphens. */
|
|
@@ -416,12 +642,15 @@ export type ManagementProcedures = {
|
|
|
416
642
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
417
643
|
promptDraft: string;
|
|
418
644
|
ragEnabled: boolean;
|
|
645
|
+
subagentsEnabled: boolean;
|
|
646
|
+
checkBacksEnabled: boolean;
|
|
419
647
|
toolRegistryEnabled: boolean;
|
|
420
648
|
serviceRegistryEnabled: boolean;
|
|
421
649
|
attachmentsEnabled: boolean;
|
|
422
650
|
fetchImageHostnames: string | number | boolean | null | Record<string, unknown> | Array<unknown>;
|
|
423
651
|
locationPicker: boolean;
|
|
424
|
-
|
|
652
|
+
messages: boolean;
|
|
653
|
+
whileBusy: "refuse" | "queue" | "steer";
|
|
425
654
|
media: Array<"mermaid" | "vega-lite" | "map" | "report">;
|
|
426
655
|
suggestions: Record<"en" | "ar", Array<{
|
|
427
656
|
title: string;
|
|
@@ -461,12 +690,15 @@ export type ManagementProcedures = {
|
|
|
461
690
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
462
691
|
promptDraft: string;
|
|
463
692
|
ragEnabled: boolean;
|
|
693
|
+
subagentsEnabled: boolean;
|
|
694
|
+
checkBacksEnabled: boolean;
|
|
464
695
|
toolRegistryEnabled: boolean;
|
|
465
696
|
serviceRegistryEnabled: boolean;
|
|
466
697
|
attachmentsEnabled: boolean;
|
|
467
698
|
fetchImageHostnames: string | number | boolean | null | Record<string, unknown> | Array<unknown>;
|
|
468
699
|
locationPicker: boolean;
|
|
469
|
-
|
|
700
|
+
messages: boolean;
|
|
701
|
+
whileBusy: "refuse" | "queue" | "steer";
|
|
470
702
|
media: Array<"mermaid" | "vega-lite" | "map" | "report">;
|
|
471
703
|
suggestions: Record<"en" | "ar", Array<{
|
|
472
704
|
title: string;
|
|
@@ -518,12 +750,15 @@ export type ManagementProcedures = {
|
|
|
518
750
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
519
751
|
promptDraft: string;
|
|
520
752
|
ragEnabled: boolean;
|
|
753
|
+
subagentsEnabled: boolean;
|
|
754
|
+
checkBacksEnabled: boolean;
|
|
521
755
|
toolRegistryEnabled: boolean;
|
|
522
756
|
serviceRegistryEnabled: boolean;
|
|
523
757
|
attachmentsEnabled: boolean;
|
|
524
758
|
fetchImageHostnames: string | number | boolean | null | Record<string, unknown> | Array<unknown>;
|
|
525
759
|
locationPicker: boolean;
|
|
526
|
-
|
|
760
|
+
messages: boolean;
|
|
761
|
+
whileBusy: "refuse" | "queue" | "steer";
|
|
527
762
|
media: Array<"mermaid" | "vega-lite" | "map" | "report">;
|
|
528
763
|
suggestions: Record<"en" | "ar", Array<{
|
|
529
764
|
title: string;
|
|
@@ -684,12 +919,15 @@ export type ManagementProcedures = {
|
|
|
684
919
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
685
920
|
promptDraft: string;
|
|
686
921
|
ragEnabled: boolean;
|
|
922
|
+
subagentsEnabled: boolean;
|
|
923
|
+
checkBacksEnabled: boolean;
|
|
687
924
|
toolRegistryEnabled: boolean;
|
|
688
925
|
serviceRegistryEnabled: boolean;
|
|
689
926
|
attachmentsEnabled: boolean;
|
|
690
927
|
fetchImageHostnames: string | number | boolean | null | Record<string, unknown> | Array<unknown>;
|
|
691
928
|
locationPicker: boolean;
|
|
692
|
-
|
|
929
|
+
messages: boolean;
|
|
930
|
+
whileBusy: "refuse" | "queue" | "steer";
|
|
693
931
|
media: Array<"mermaid" | "vega-lite" | "map" | "report">;
|
|
694
932
|
suggestions: Record<"en" | "ar", Array<{
|
|
695
933
|
title: string;
|
|
@@ -718,11 +956,14 @@ export type ManagementProcedures = {
|
|
|
718
956
|
ragEnabled?: boolean;
|
|
719
957
|
toolRegistryEnabled?: boolean;
|
|
720
958
|
serviceRegistryEnabled?: boolean;
|
|
959
|
+
subagentsEnabled?: boolean;
|
|
960
|
+
checkBacksEnabled?: boolean;
|
|
721
961
|
attachmentsEnabled?: boolean;
|
|
722
962
|
fetchImageHostnames?: Array<string>;
|
|
723
963
|
locationPicker?: boolean;
|
|
724
964
|
media?: Array<"mermaid" | "vega-lite" | "map" | "report">;
|
|
725
|
-
|
|
965
|
+
messages?: boolean;
|
|
966
|
+
whileBusy?: "refuse" | "queue" | "steer";
|
|
726
967
|
defaultLocale?: "en" | "ar";
|
|
727
968
|
context?: {
|
|
728
969
|
maxContextTokens: number;
|
|
@@ -794,12 +1035,15 @@ export type ManagementProcedures = {
|
|
|
794
1035
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
795
1036
|
promptDraft: string;
|
|
796
1037
|
ragEnabled: boolean;
|
|
1038
|
+
subagentsEnabled: boolean;
|
|
1039
|
+
checkBacksEnabled: boolean;
|
|
797
1040
|
toolRegistryEnabled: boolean;
|
|
798
1041
|
serviceRegistryEnabled: boolean;
|
|
799
1042
|
attachmentsEnabled: boolean;
|
|
800
1043
|
fetchImageHostnames: string | number | boolean | null | Record<string, unknown> | Array<unknown>;
|
|
801
1044
|
locationPicker: boolean;
|
|
802
|
-
|
|
1045
|
+
messages: boolean;
|
|
1046
|
+
whileBusy: "refuse" | "queue" | "steer";
|
|
803
1047
|
media: Array<"mermaid" | "vega-lite" | "map" | "report">;
|
|
804
1048
|
suggestions: Record<"en" | "ar", Array<{
|
|
805
1049
|
title: string;
|
|
@@ -839,12 +1083,15 @@ export type ManagementProcedures = {
|
|
|
839
1083
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
840
1084
|
promptDraft: string;
|
|
841
1085
|
ragEnabled: boolean;
|
|
1086
|
+
subagentsEnabled: boolean;
|
|
1087
|
+
checkBacksEnabled: boolean;
|
|
842
1088
|
toolRegistryEnabled: boolean;
|
|
843
1089
|
serviceRegistryEnabled: boolean;
|
|
844
1090
|
attachmentsEnabled: boolean;
|
|
845
1091
|
fetchImageHostnames: string | number | boolean | null | Record<string, unknown> | Array<unknown>;
|
|
846
1092
|
locationPicker: boolean;
|
|
847
|
-
|
|
1093
|
+
messages: boolean;
|
|
1094
|
+
whileBusy: "refuse" | "queue" | "steer";
|
|
848
1095
|
media: Array<"mermaid" | "vega-lite" | "map" | "report">;
|
|
849
1096
|
suggestions: Record<"en" | "ar", Array<{
|
|
850
1097
|
title: string;
|
|
@@ -1468,7 +1715,7 @@ export type ManagementProcedures = {
|
|
|
1468
1715
|
unchanged: boolean;
|
|
1469
1716
|
};
|
|
1470
1717
|
};
|
|
1471
|
-
/** 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
|
|
1718
|
+
/** 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. */
|
|
1472
1719
|
"datasetHosts.setAudience": {
|
|
1473
1720
|
input: {
|
|
1474
1721
|
id: string;
|
|
@@ -1810,11 +2057,14 @@ export type ManagementProcedures = {
|
|
|
1810
2057
|
ragEnabled?: boolean;
|
|
1811
2058
|
toolRegistryEnabled?: boolean;
|
|
1812
2059
|
serviceRegistryEnabled?: boolean;
|
|
2060
|
+
subagentsEnabled?: boolean;
|
|
2061
|
+
checkBacksEnabled?: boolean;
|
|
1813
2062
|
attachmentsEnabled?: boolean;
|
|
1814
2063
|
fetchImageHostnames?: Array<string>;
|
|
1815
2064
|
locationPicker?: boolean;
|
|
1816
2065
|
media?: Array<"mermaid" | "vega-lite" | "map" | "report">;
|
|
1817
|
-
|
|
2066
|
+
messages?: boolean;
|
|
2067
|
+
whileBusy?: "refuse" | "queue" | "steer";
|
|
1818
2068
|
defaultLocale?: "en" | "ar";
|
|
1819
2069
|
context?: {
|
|
1820
2070
|
maxContextTokens?: number;
|
|
@@ -1854,12 +2104,34 @@ export type ManagementProcedures = {
|
|
|
1854
2104
|
properties?: Record<string, ManifestsPreviewSchema0>;
|
|
1855
2105
|
required?: Array<string>;
|
|
1856
2106
|
"x-order"?: Array<string>;
|
|
2107
|
+
anyOf?: SchemaConditions;
|
|
2108
|
+
oneOf?: SchemaConditions;
|
|
2109
|
+
allOf?: SchemaConditions;
|
|
2110
|
+
not?: SchemaCondition;
|
|
2111
|
+
if?: SchemaCondition;
|
|
2112
|
+
then?: SchemaCondition;
|
|
2113
|
+
else?: SchemaCondition;
|
|
2114
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
2115
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
2116
|
+
minProperties?: number;
|
|
2117
|
+
maxProperties?: number;
|
|
1857
2118
|
};
|
|
1858
2119
|
outputSchema?: {
|
|
1859
2120
|
type: "object";
|
|
1860
2121
|
properties?: Record<string, ManifestsPreviewSchema0>;
|
|
1861
2122
|
required?: Array<string>;
|
|
1862
2123
|
"x-order"?: Array<string>;
|
|
2124
|
+
anyOf?: SchemaConditions;
|
|
2125
|
+
oneOf?: SchemaConditions;
|
|
2126
|
+
allOf?: SchemaConditions;
|
|
2127
|
+
not?: SchemaCondition;
|
|
2128
|
+
if?: SchemaCondition;
|
|
2129
|
+
then?: SchemaCondition;
|
|
2130
|
+
else?: SchemaCondition;
|
|
2131
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
2132
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
2133
|
+
minProperties?: number;
|
|
2134
|
+
maxProperties?: number;
|
|
1863
2135
|
};
|
|
1864
2136
|
timeoutMs?: number;
|
|
1865
2137
|
maxResponseBytes?: number;
|
|
@@ -1913,12 +2185,34 @@ export type ManagementProcedures = {
|
|
|
1913
2185
|
properties?: Record<string, ManifestsPreviewSchema0>;
|
|
1914
2186
|
required?: Array<string>;
|
|
1915
2187
|
"x-order"?: Array<string>;
|
|
2188
|
+
anyOf?: SchemaConditions;
|
|
2189
|
+
oneOf?: SchemaConditions;
|
|
2190
|
+
allOf?: SchemaConditions;
|
|
2191
|
+
not?: SchemaCondition;
|
|
2192
|
+
if?: SchemaCondition;
|
|
2193
|
+
then?: SchemaCondition;
|
|
2194
|
+
else?: SchemaCondition;
|
|
2195
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
2196
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
2197
|
+
minProperties?: number;
|
|
2198
|
+
maxProperties?: number;
|
|
1916
2199
|
};
|
|
1917
2200
|
outputSchema?: {
|
|
1918
2201
|
type: "object";
|
|
1919
2202
|
properties?: Record<string, ManifestsPreviewSchema0>;
|
|
1920
2203
|
required?: Array<string>;
|
|
1921
2204
|
"x-order"?: Array<string>;
|
|
2205
|
+
anyOf?: SchemaConditions;
|
|
2206
|
+
oneOf?: SchemaConditions;
|
|
2207
|
+
allOf?: SchemaConditions;
|
|
2208
|
+
not?: SchemaCondition;
|
|
2209
|
+
if?: SchemaCondition;
|
|
2210
|
+
then?: SchemaCondition;
|
|
2211
|
+
else?: SchemaCondition;
|
|
2212
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
2213
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
2214
|
+
minProperties?: number;
|
|
2215
|
+
maxProperties?: number;
|
|
1922
2216
|
};
|
|
1923
2217
|
timeoutMs?: number;
|
|
1924
2218
|
maxResponseBytes?: number;
|
|
@@ -1969,12 +2263,34 @@ export type ManagementProcedures = {
|
|
|
1969
2263
|
properties?: Record<string, ManifestsPreviewSchema0>;
|
|
1970
2264
|
required?: Array<string>;
|
|
1971
2265
|
"x-order"?: Array<string>;
|
|
2266
|
+
anyOf?: SchemaConditions;
|
|
2267
|
+
oneOf?: SchemaConditions;
|
|
2268
|
+
allOf?: SchemaConditions;
|
|
2269
|
+
not?: SchemaCondition;
|
|
2270
|
+
if?: SchemaCondition;
|
|
2271
|
+
then?: SchemaCondition;
|
|
2272
|
+
else?: SchemaCondition;
|
|
2273
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
2274
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
2275
|
+
minProperties?: number;
|
|
2276
|
+
maxProperties?: number;
|
|
1972
2277
|
};
|
|
1973
2278
|
outputSchema?: {
|
|
1974
2279
|
type: "object";
|
|
1975
2280
|
properties?: Record<string, ManifestsPreviewSchema0>;
|
|
1976
2281
|
required?: Array<string>;
|
|
1977
2282
|
"x-order"?: Array<string>;
|
|
2283
|
+
anyOf?: SchemaConditions;
|
|
2284
|
+
oneOf?: SchemaConditions;
|
|
2285
|
+
allOf?: SchemaConditions;
|
|
2286
|
+
not?: SchemaCondition;
|
|
2287
|
+
if?: SchemaCondition;
|
|
2288
|
+
then?: SchemaCondition;
|
|
2289
|
+
else?: SchemaCondition;
|
|
2290
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
2291
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
2292
|
+
minProperties?: number;
|
|
2293
|
+
maxProperties?: number;
|
|
1978
2294
|
};
|
|
1979
2295
|
timeoutMs?: number;
|
|
1980
2296
|
maxResponseBytes?: number;
|
|
@@ -2032,12 +2348,34 @@ export type ManagementProcedures = {
|
|
|
2032
2348
|
properties?: Record<string, ManifestsPreviewSchema0>;
|
|
2033
2349
|
required?: Array<string>;
|
|
2034
2350
|
"x-order"?: Array<string>;
|
|
2351
|
+
anyOf?: SchemaConditions;
|
|
2352
|
+
oneOf?: SchemaConditions;
|
|
2353
|
+
allOf?: SchemaConditions;
|
|
2354
|
+
not?: SchemaCondition;
|
|
2355
|
+
if?: SchemaCondition;
|
|
2356
|
+
then?: SchemaCondition;
|
|
2357
|
+
else?: SchemaCondition;
|
|
2358
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
2359
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
2360
|
+
minProperties?: number;
|
|
2361
|
+
maxProperties?: number;
|
|
2035
2362
|
};
|
|
2036
2363
|
outputSchema?: {
|
|
2037
2364
|
type: "object";
|
|
2038
2365
|
properties?: Record<string, ManifestsPreviewSchema0>;
|
|
2039
2366
|
required?: Array<string>;
|
|
2040
2367
|
"x-order"?: Array<string>;
|
|
2368
|
+
anyOf?: SchemaConditions;
|
|
2369
|
+
oneOf?: SchemaConditions;
|
|
2370
|
+
allOf?: SchemaConditions;
|
|
2371
|
+
not?: SchemaCondition;
|
|
2372
|
+
if?: SchemaCondition;
|
|
2373
|
+
then?: SchemaCondition;
|
|
2374
|
+
else?: SchemaCondition;
|
|
2375
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
2376
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
2377
|
+
minProperties?: number;
|
|
2378
|
+
maxProperties?: number;
|
|
2041
2379
|
};
|
|
2042
2380
|
timeoutMs?: number;
|
|
2043
2381
|
maxResponseBytes?: number;
|
|
@@ -2125,24 +2463,51 @@ export type ManagementProcedures = {
|
|
|
2125
2463
|
properties?: Record<string, ManifestsPreviewSchema0>;
|
|
2126
2464
|
required?: Array<string>;
|
|
2127
2465
|
"x-order"?: Array<string>;
|
|
2466
|
+
anyOf?: SchemaConditions;
|
|
2467
|
+
oneOf?: SchemaConditions;
|
|
2468
|
+
allOf?: SchemaConditions;
|
|
2469
|
+
not?: SchemaCondition;
|
|
2470
|
+
if?: SchemaCondition;
|
|
2471
|
+
then?: SchemaCondition;
|
|
2472
|
+
else?: SchemaCondition;
|
|
2473
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
2474
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
2475
|
+
minProperties?: number;
|
|
2476
|
+
maxProperties?: number;
|
|
2128
2477
|
};
|
|
2129
2478
|
outputSchema?: {
|
|
2130
2479
|
type: "object";
|
|
2131
2480
|
properties?: Record<string, ManifestsPreviewSchema0>;
|
|
2132
2481
|
required?: Array<string>;
|
|
2133
2482
|
"x-order"?: Array<string>;
|
|
2483
|
+
anyOf?: SchemaConditions;
|
|
2484
|
+
oneOf?: SchemaConditions;
|
|
2485
|
+
allOf?: SchemaConditions;
|
|
2486
|
+
not?: SchemaCondition;
|
|
2487
|
+
if?: SchemaCondition;
|
|
2488
|
+
then?: SchemaCondition;
|
|
2489
|
+
else?: SchemaCondition;
|
|
2490
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
2491
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
2492
|
+
minProperties?: number;
|
|
2493
|
+
maxProperties?: number;
|
|
2134
2494
|
};
|
|
2135
2495
|
instructions: string;
|
|
2136
2496
|
threadPolicy?: {
|
|
2137
2497
|
policy: "single";
|
|
2138
2498
|
} | {
|
|
2139
|
-
policy: "per-
|
|
2499
|
+
policy: "per-input";
|
|
2140
2500
|
} | {
|
|
2141
2501
|
policy: "ephemeral";
|
|
2142
2502
|
} | {
|
|
2143
2503
|
policy: "keyed";
|
|
2144
2504
|
key: string;
|
|
2505
|
+
} | {
|
|
2506
|
+
policy: "thread";
|
|
2507
|
+
key: string;
|
|
2508
|
+
wake: boolean;
|
|
2145
2509
|
};
|
|
2510
|
+
whileBusy?: "refuse" | "queue" | "steer";
|
|
2146
2511
|
budgetPerDay?: number;
|
|
2147
2512
|
disableAfterFailures?: number;
|
|
2148
2513
|
credential?: string;
|
|
@@ -2152,12 +2517,16 @@ export type ManagementProcedures = {
|
|
|
2152
2517
|
model: string;
|
|
2153
2518
|
effort?: string;
|
|
2154
2519
|
};
|
|
2520
|
+
schedule?: {
|
|
2521
|
+
cron: string;
|
|
2522
|
+
timeZone: string;
|
|
2523
|
+
};
|
|
2155
2524
|
audience: "all" | {
|
|
2156
2525
|
server: string;
|
|
2157
2526
|
} | {
|
|
2158
2527
|
agents: Array<string>;
|
|
2159
2528
|
};
|
|
2160
|
-
overridable?: Array<"displayName" | "description" | "instructions" | "threadPolicy" | "budgetPerDay" | "disableAfterFailures" | "model">;
|
|
2529
|
+
overridable?: Array<"displayName" | "description" | "instructions" | "threadPolicy" | "whileBusy" | "budgetPerDay" | "disableAfterFailures" | "model" | "schedule">;
|
|
2161
2530
|
}>;
|
|
2162
2531
|
datasetHosts?: Array<{
|
|
2163
2532
|
name: string;
|
|
@@ -2235,7 +2604,7 @@ export type ManagementProcedures = {
|
|
|
2235
2604
|
name: string;
|
|
2236
2605
|
displayName?: Partial<Record<"en" | "ar", string>>;
|
|
2237
2606
|
description?: string;
|
|
2238
|
-
event: "
|
|
2607
|
+
event: "run_waiting" | "run_finished";
|
|
2239
2608
|
url: string;
|
|
2240
2609
|
headers?: Array<{
|
|
2241
2610
|
header: string;
|
|
@@ -2350,11 +2719,14 @@ export type ManagementProcedures = {
|
|
|
2350
2719
|
ragEnabled?: boolean;
|
|
2351
2720
|
toolRegistryEnabled?: boolean;
|
|
2352
2721
|
serviceRegistryEnabled?: boolean;
|
|
2722
|
+
subagentsEnabled?: boolean;
|
|
2723
|
+
checkBacksEnabled?: boolean;
|
|
2353
2724
|
attachmentsEnabled?: boolean;
|
|
2354
2725
|
fetchImageHostnames?: Array<string>;
|
|
2355
2726
|
locationPicker?: boolean;
|
|
2356
2727
|
media?: Array<"mermaid" | "vega-lite" | "map" | "report">;
|
|
2357
|
-
|
|
2728
|
+
messages?: boolean;
|
|
2729
|
+
whileBusy?: "refuse" | "queue" | "steer";
|
|
2358
2730
|
defaultLocale?: "en" | "ar";
|
|
2359
2731
|
context?: {
|
|
2360
2732
|
maxContextTokens?: number;
|
|
@@ -2394,12 +2766,34 @@ export type ManagementProcedures = {
|
|
|
2394
2766
|
properties?: Record<string, ManifestsSyncSchema0>;
|
|
2395
2767
|
required?: Array<string>;
|
|
2396
2768
|
"x-order"?: Array<string>;
|
|
2769
|
+
anyOf?: SchemaConditions;
|
|
2770
|
+
oneOf?: SchemaConditions;
|
|
2771
|
+
allOf?: SchemaConditions;
|
|
2772
|
+
not?: SchemaCondition;
|
|
2773
|
+
if?: SchemaCondition;
|
|
2774
|
+
then?: SchemaCondition;
|
|
2775
|
+
else?: SchemaCondition;
|
|
2776
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
2777
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
2778
|
+
minProperties?: number;
|
|
2779
|
+
maxProperties?: number;
|
|
2397
2780
|
};
|
|
2398
2781
|
outputSchema?: {
|
|
2399
2782
|
type: "object";
|
|
2400
2783
|
properties?: Record<string, ManifestsSyncSchema0>;
|
|
2401
2784
|
required?: Array<string>;
|
|
2402
2785
|
"x-order"?: Array<string>;
|
|
2786
|
+
anyOf?: SchemaConditions;
|
|
2787
|
+
oneOf?: SchemaConditions;
|
|
2788
|
+
allOf?: SchemaConditions;
|
|
2789
|
+
not?: SchemaCondition;
|
|
2790
|
+
if?: SchemaCondition;
|
|
2791
|
+
then?: SchemaCondition;
|
|
2792
|
+
else?: SchemaCondition;
|
|
2793
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
2794
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
2795
|
+
minProperties?: number;
|
|
2796
|
+
maxProperties?: number;
|
|
2403
2797
|
};
|
|
2404
2798
|
timeoutMs?: number;
|
|
2405
2799
|
maxResponseBytes?: number;
|
|
@@ -2453,12 +2847,34 @@ export type ManagementProcedures = {
|
|
|
2453
2847
|
properties?: Record<string, ManifestsSyncSchema0>;
|
|
2454
2848
|
required?: Array<string>;
|
|
2455
2849
|
"x-order"?: Array<string>;
|
|
2850
|
+
anyOf?: SchemaConditions;
|
|
2851
|
+
oneOf?: SchemaConditions;
|
|
2852
|
+
allOf?: SchemaConditions;
|
|
2853
|
+
not?: SchemaCondition;
|
|
2854
|
+
if?: SchemaCondition;
|
|
2855
|
+
then?: SchemaCondition;
|
|
2856
|
+
else?: SchemaCondition;
|
|
2857
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
2858
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
2859
|
+
minProperties?: number;
|
|
2860
|
+
maxProperties?: number;
|
|
2456
2861
|
};
|
|
2457
2862
|
outputSchema?: {
|
|
2458
2863
|
type: "object";
|
|
2459
2864
|
properties?: Record<string, ManifestsSyncSchema0>;
|
|
2460
2865
|
required?: Array<string>;
|
|
2461
2866
|
"x-order"?: Array<string>;
|
|
2867
|
+
anyOf?: SchemaConditions;
|
|
2868
|
+
oneOf?: SchemaConditions;
|
|
2869
|
+
allOf?: SchemaConditions;
|
|
2870
|
+
not?: SchemaCondition;
|
|
2871
|
+
if?: SchemaCondition;
|
|
2872
|
+
then?: SchemaCondition;
|
|
2873
|
+
else?: SchemaCondition;
|
|
2874
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
2875
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
2876
|
+
minProperties?: number;
|
|
2877
|
+
maxProperties?: number;
|
|
2462
2878
|
};
|
|
2463
2879
|
timeoutMs?: number;
|
|
2464
2880
|
maxResponseBytes?: number;
|
|
@@ -2509,12 +2925,34 @@ export type ManagementProcedures = {
|
|
|
2509
2925
|
properties?: Record<string, ManifestsSyncSchema0>;
|
|
2510
2926
|
required?: Array<string>;
|
|
2511
2927
|
"x-order"?: Array<string>;
|
|
2928
|
+
anyOf?: SchemaConditions;
|
|
2929
|
+
oneOf?: SchemaConditions;
|
|
2930
|
+
allOf?: SchemaConditions;
|
|
2931
|
+
not?: SchemaCondition;
|
|
2932
|
+
if?: SchemaCondition;
|
|
2933
|
+
then?: SchemaCondition;
|
|
2934
|
+
else?: SchemaCondition;
|
|
2935
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
2936
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
2937
|
+
minProperties?: number;
|
|
2938
|
+
maxProperties?: number;
|
|
2512
2939
|
};
|
|
2513
2940
|
outputSchema?: {
|
|
2514
2941
|
type: "object";
|
|
2515
2942
|
properties?: Record<string, ManifestsSyncSchema0>;
|
|
2516
2943
|
required?: Array<string>;
|
|
2517
2944
|
"x-order"?: Array<string>;
|
|
2945
|
+
anyOf?: SchemaConditions;
|
|
2946
|
+
oneOf?: SchemaConditions;
|
|
2947
|
+
allOf?: SchemaConditions;
|
|
2948
|
+
not?: SchemaCondition;
|
|
2949
|
+
if?: SchemaCondition;
|
|
2950
|
+
then?: SchemaCondition;
|
|
2951
|
+
else?: SchemaCondition;
|
|
2952
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
2953
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
2954
|
+
minProperties?: number;
|
|
2955
|
+
maxProperties?: number;
|
|
2518
2956
|
};
|
|
2519
2957
|
timeoutMs?: number;
|
|
2520
2958
|
maxResponseBytes?: number;
|
|
@@ -2572,12 +3010,34 @@ export type ManagementProcedures = {
|
|
|
2572
3010
|
properties?: Record<string, ManifestsSyncSchema0>;
|
|
2573
3011
|
required?: Array<string>;
|
|
2574
3012
|
"x-order"?: Array<string>;
|
|
3013
|
+
anyOf?: SchemaConditions;
|
|
3014
|
+
oneOf?: SchemaConditions;
|
|
3015
|
+
allOf?: SchemaConditions;
|
|
3016
|
+
not?: SchemaCondition;
|
|
3017
|
+
if?: SchemaCondition;
|
|
3018
|
+
then?: SchemaCondition;
|
|
3019
|
+
else?: SchemaCondition;
|
|
3020
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
3021
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
3022
|
+
minProperties?: number;
|
|
3023
|
+
maxProperties?: number;
|
|
2575
3024
|
};
|
|
2576
3025
|
outputSchema?: {
|
|
2577
3026
|
type: "object";
|
|
2578
3027
|
properties?: Record<string, ManifestsSyncSchema0>;
|
|
2579
3028
|
required?: Array<string>;
|
|
2580
3029
|
"x-order"?: Array<string>;
|
|
3030
|
+
anyOf?: SchemaConditions;
|
|
3031
|
+
oneOf?: SchemaConditions;
|
|
3032
|
+
allOf?: SchemaConditions;
|
|
3033
|
+
not?: SchemaCondition;
|
|
3034
|
+
if?: SchemaCondition;
|
|
3035
|
+
then?: SchemaCondition;
|
|
3036
|
+
else?: SchemaCondition;
|
|
3037
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
3038
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
3039
|
+
minProperties?: number;
|
|
3040
|
+
maxProperties?: number;
|
|
2581
3041
|
};
|
|
2582
3042
|
timeoutMs?: number;
|
|
2583
3043
|
maxResponseBytes?: number;
|
|
@@ -2665,24 +3125,51 @@ export type ManagementProcedures = {
|
|
|
2665
3125
|
properties?: Record<string, ManifestsSyncSchema0>;
|
|
2666
3126
|
required?: Array<string>;
|
|
2667
3127
|
"x-order"?: Array<string>;
|
|
3128
|
+
anyOf?: SchemaConditions;
|
|
3129
|
+
oneOf?: SchemaConditions;
|
|
3130
|
+
allOf?: SchemaConditions;
|
|
3131
|
+
not?: SchemaCondition;
|
|
3132
|
+
if?: SchemaCondition;
|
|
3133
|
+
then?: SchemaCondition;
|
|
3134
|
+
else?: SchemaCondition;
|
|
3135
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
3136
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
3137
|
+
minProperties?: number;
|
|
3138
|
+
maxProperties?: number;
|
|
2668
3139
|
};
|
|
2669
3140
|
outputSchema?: {
|
|
2670
3141
|
type: "object";
|
|
2671
3142
|
properties?: Record<string, ManifestsSyncSchema0>;
|
|
2672
3143
|
required?: Array<string>;
|
|
2673
3144
|
"x-order"?: Array<string>;
|
|
3145
|
+
anyOf?: SchemaConditions;
|
|
3146
|
+
oneOf?: SchemaConditions;
|
|
3147
|
+
allOf?: SchemaConditions;
|
|
3148
|
+
not?: SchemaCondition;
|
|
3149
|
+
if?: SchemaCondition;
|
|
3150
|
+
then?: SchemaCondition;
|
|
3151
|
+
else?: SchemaCondition;
|
|
3152
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
3153
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
3154
|
+
minProperties?: number;
|
|
3155
|
+
maxProperties?: number;
|
|
2674
3156
|
};
|
|
2675
3157
|
instructions: string;
|
|
2676
3158
|
threadPolicy?: {
|
|
2677
3159
|
policy: "single";
|
|
2678
3160
|
} | {
|
|
2679
|
-
policy: "per-
|
|
3161
|
+
policy: "per-input";
|
|
2680
3162
|
} | {
|
|
2681
3163
|
policy: "ephemeral";
|
|
2682
3164
|
} | {
|
|
2683
3165
|
policy: "keyed";
|
|
2684
3166
|
key: string;
|
|
3167
|
+
} | {
|
|
3168
|
+
policy: "thread";
|
|
3169
|
+
key: string;
|
|
3170
|
+
wake: boolean;
|
|
2685
3171
|
};
|
|
3172
|
+
whileBusy?: "refuse" | "queue" | "steer";
|
|
2686
3173
|
budgetPerDay?: number;
|
|
2687
3174
|
disableAfterFailures?: number;
|
|
2688
3175
|
credential?: string;
|
|
@@ -2692,12 +3179,16 @@ export type ManagementProcedures = {
|
|
|
2692
3179
|
model: string;
|
|
2693
3180
|
effort?: string;
|
|
2694
3181
|
};
|
|
3182
|
+
schedule?: {
|
|
3183
|
+
cron: string;
|
|
3184
|
+
timeZone: string;
|
|
3185
|
+
};
|
|
2695
3186
|
audience: "all" | {
|
|
2696
3187
|
server: string;
|
|
2697
3188
|
} | {
|
|
2698
3189
|
agents: Array<string>;
|
|
2699
3190
|
};
|
|
2700
|
-
overridable?: Array<"displayName" | "description" | "instructions" | "threadPolicy" | "budgetPerDay" | "disableAfterFailures" | "model">;
|
|
3191
|
+
overridable?: Array<"displayName" | "description" | "instructions" | "threadPolicy" | "whileBusy" | "budgetPerDay" | "disableAfterFailures" | "model" | "schedule">;
|
|
2701
3192
|
}>;
|
|
2702
3193
|
datasetHosts?: Array<{
|
|
2703
3194
|
name: string;
|
|
@@ -2775,7 +3266,7 @@ export type ManagementProcedures = {
|
|
|
2775
3266
|
name: string;
|
|
2776
3267
|
displayName?: Partial<Record<"en" | "ar", string>>;
|
|
2777
3268
|
description?: string;
|
|
2778
|
-
event: "
|
|
3269
|
+
event: "run_waiting" | "run_finished";
|
|
2779
3270
|
url: string;
|
|
2780
3271
|
headers?: Array<{
|
|
2781
3272
|
header: string;
|
|
@@ -3047,7 +3538,7 @@ export type ManagementProcedures = {
|
|
|
3047
3538
|
unchanged: boolean;
|
|
3048
3539
|
};
|
|
3049
3540
|
};
|
|
3050
|
-
/** 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
|
|
3541
|
+
/** 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. */
|
|
3051
3542
|
"mcpServers.setAudience": {
|
|
3052
3543
|
input: {
|
|
3053
3544
|
id: string;
|
|
@@ -3274,6 +3765,7 @@ export type ManagementProcedures = {
|
|
|
3274
3765
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
3275
3766
|
};
|
|
3276
3767
|
triggerName: string | null;
|
|
3768
|
+
delegated: "queued" | "run" | "schedule" | "trigger" | null;
|
|
3277
3769
|
threadId: string | null;
|
|
3278
3770
|
threadTitle: string | null;
|
|
3279
3771
|
input: unknown;
|
|
@@ -3340,18 +3832,20 @@ export type ManagementProcedures = {
|
|
|
3340
3832
|
}>;
|
|
3341
3833
|
};
|
|
3342
3834
|
};
|
|
3343
|
-
/** One
|
|
3344
|
-
"observability.
|
|
3835
|
+
/** One run by id with what it answered with, and the tool calls it waits on while it is waiting. */
|
|
3836
|
+
"observability.getRun": {
|
|
3345
3837
|
input: {
|
|
3346
3838
|
id: string;
|
|
3347
3839
|
};
|
|
3348
3840
|
output: {
|
|
3349
3841
|
id: string;
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3842
|
+
kind: "turn" | "subagent" | "tool";
|
|
3843
|
+
status: "running" | "waiting" | "completed" | "failed" | "cancelled";
|
|
3844
|
+
reason: "no_output" | "invalid_output" | "stopped" | "cancelled" | "parent_cancelled" | "lost" | "timeout" | null;
|
|
3845
|
+
createdAt: string;
|
|
3846
|
+
finishedAt: string | null;
|
|
3847
|
+
source: "user" | "trigger" | "schedule" | "run" | null;
|
|
3848
|
+
triggerName: string | null;
|
|
3355
3849
|
server: {
|
|
3356
3850
|
name: string;
|
|
3357
3851
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
@@ -3360,17 +3854,15 @@ export type ManagementProcedures = {
|
|
|
3360
3854
|
name: string;
|
|
3361
3855
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
3362
3856
|
};
|
|
3857
|
+
threadId: string | null;
|
|
3363
3858
|
threadTitle: string | null;
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
agentId: string;
|
|
3368
|
-
approvals: Array<{
|
|
3859
|
+
result: unknown;
|
|
3860
|
+
waits: Array<{
|
|
3861
|
+
kind: "approval" | "client_tool";
|
|
3369
3862
|
toolCallId: string;
|
|
3370
3863
|
toolName: string;
|
|
3371
3864
|
input: unknown;
|
|
3372
3865
|
}>;
|
|
3373
|
-
decider: "operator" | "chat" | "disabled";
|
|
3374
3866
|
};
|
|
3375
3867
|
};
|
|
3376
3868
|
/** 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. */
|
|
@@ -3506,6 +3998,47 @@ export type ManagementProcedures = {
|
|
|
3506
3998
|
filteredCount: number;
|
|
3507
3999
|
};
|
|
3508
4000
|
};
|
|
4001
|
+
/** 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. */
|
|
4002
|
+
"observability.listRuns": {
|
|
4003
|
+
input: {
|
|
4004
|
+
pageIndex?: number;
|
|
4005
|
+
pageSize?: number;
|
|
4006
|
+
q?: string;
|
|
4007
|
+
agentId?: string;
|
|
4008
|
+
source?: "user" | "trigger" | "schedule" | "run";
|
|
4009
|
+
status?: "running" | "waiting" | "completed" | "failed" | "cancelled";
|
|
4010
|
+
triggerName?: string;
|
|
4011
|
+
waitKind?: "approval" | "client_tool";
|
|
4012
|
+
dateFrom?: string;
|
|
4013
|
+
dateTo?: string;
|
|
4014
|
+
};
|
|
4015
|
+
output: {
|
|
4016
|
+
items: Array<{
|
|
4017
|
+
id: string;
|
|
4018
|
+
kind: "turn" | "subagent" | "tool";
|
|
4019
|
+
status: "running" | "waiting" | "completed" | "failed" | "cancelled";
|
|
4020
|
+
reason: "no_output" | "invalid_output" | "stopped" | "cancelled" | "parent_cancelled" | "lost" | "timeout" | null;
|
|
4021
|
+
createdAt: string;
|
|
4022
|
+
finishedAt: string | null;
|
|
4023
|
+
source: "user" | "trigger" | "schedule" | "run" | null;
|
|
4024
|
+
triggerName: string | null;
|
|
4025
|
+
server: {
|
|
4026
|
+
name: string;
|
|
4027
|
+
displayName: Partial<Record<"en" | "ar", string>>;
|
|
4028
|
+
} | null;
|
|
4029
|
+
agent: {
|
|
4030
|
+
name: string;
|
|
4031
|
+
displayName: Partial<Record<"en" | "ar", string>>;
|
|
4032
|
+
};
|
|
4033
|
+
threadId: string | null;
|
|
4034
|
+
threadTitle: string | null;
|
|
4035
|
+
}>;
|
|
4036
|
+
/** Every row the caller may see, ignoring the search and filters. */
|
|
4037
|
+
count: number;
|
|
4038
|
+
/** The rows matching the search and filters, over all pages: the total to report. */
|
|
4039
|
+
filteredCount: number;
|
|
4040
|
+
};
|
|
4041
|
+
};
|
|
3509
4042
|
/** Upstream responses that do not match a tool's declared schema, with pagination. */
|
|
3510
4043
|
"observability.listSchemaDrifts": {
|
|
3511
4044
|
input: {
|
|
@@ -3627,44 +4160,6 @@ export type ManagementProcedures = {
|
|
|
3627
4160
|
filteredCount: number;
|
|
3628
4161
|
};
|
|
3629
4162
|
};
|
|
3630
|
-
/** Trigger firings with their outcome, with pagination and agent, trigger, outcome, and day-range filters. */
|
|
3631
|
-
"observability.listTriggerFirings": {
|
|
3632
|
-
input: {
|
|
3633
|
-
pageIndex?: number;
|
|
3634
|
-
pageSize?: number;
|
|
3635
|
-
q?: string;
|
|
3636
|
-
agentId?: string;
|
|
3637
|
-
triggerName?: string;
|
|
3638
|
-
outcome?: "started" | "awaiting_approval" | "completed" | "failed" | "rejected" | "dropped";
|
|
3639
|
-
dateFrom?: string;
|
|
3640
|
-
dateTo?: string;
|
|
3641
|
-
};
|
|
3642
|
-
output: {
|
|
3643
|
-
items: Array<{
|
|
3644
|
-
id: string;
|
|
3645
|
-
triggerName: string;
|
|
3646
|
-
threadId: string | null;
|
|
3647
|
-
outcome: "started" | "awaiting_approval" | "completed" | "failed" | "rejected" | "dropped";
|
|
3648
|
-
reason: "busy" | "approval_pending" | "budget" | "rate_limited" | "invalid_payload" | "missing_thread_key" | "no_turn" | "no_output" | "invalid_output" | null;
|
|
3649
|
-
output: unknown;
|
|
3650
|
-
server: {
|
|
3651
|
-
name: string;
|
|
3652
|
-
displayName: Partial<Record<"en" | "ar", string>>;
|
|
3653
|
-
} | null;
|
|
3654
|
-
agent: {
|
|
3655
|
-
name: string;
|
|
3656
|
-
displayName: Partial<Record<"en" | "ar", string>>;
|
|
3657
|
-
};
|
|
3658
|
-
threadTitle: string | null;
|
|
3659
|
-
createdAt: string;
|
|
3660
|
-
finishedAt: string | null;
|
|
3661
|
-
}>;
|
|
3662
|
-
/** Every row the caller may see, ignoring the search and filters. */
|
|
3663
|
-
count: number;
|
|
3664
|
-
/** The rows matching the search and filters, over all pages: the total to report. */
|
|
3665
|
-
filteredCount: number;
|
|
3666
|
-
};
|
|
3667
|
-
};
|
|
3668
4163
|
/** Ids of tools whose recent executions exceed the failure threshold. */
|
|
3669
4164
|
"observability.unhealthyToolIds": {
|
|
3670
4165
|
input: undefined;
|
|
@@ -3936,7 +4431,8 @@ export type ManagementProcedures = {
|
|
|
3936
4431
|
requiresApproval?: boolean;
|
|
3937
4432
|
}>;
|
|
3938
4433
|
verify: boolean;
|
|
3939
|
-
|
|
4434
|
+
delegation: boolean;
|
|
4435
|
+
events: Array<"run_waiting" | "run_finished">;
|
|
3940
4436
|
} | null;
|
|
3941
4437
|
syncedAt: string | null;
|
|
3942
4438
|
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;
|
|
@@ -3982,7 +4478,8 @@ export type ManagementProcedures = {
|
|
|
3982
4478
|
requiresApproval?: boolean;
|
|
3983
4479
|
}>;
|
|
3984
4480
|
verify: boolean;
|
|
3985
|
-
|
|
4481
|
+
delegation: boolean;
|
|
4482
|
+
events: Array<"run_waiting" | "run_finished">;
|
|
3986
4483
|
} | null;
|
|
3987
4484
|
syncedAt: string | null;
|
|
3988
4485
|
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;
|
|
@@ -4015,6 +4512,7 @@ export type ManagementProcedures = {
|
|
|
4015
4512
|
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;
|
|
4016
4513
|
createdAt: string;
|
|
4017
4514
|
threadCount: number;
|
|
4515
|
+
delegation: boolean;
|
|
4018
4516
|
modelProvider: string | null;
|
|
4019
4517
|
modelName: string | null;
|
|
4020
4518
|
modelEffort: string | null;
|
|
@@ -4122,7 +4620,8 @@ export type ManagementProcedures = {
|
|
|
4122
4620
|
requiresApproval?: boolean;
|
|
4123
4621
|
}>;
|
|
4124
4622
|
verify: boolean;
|
|
4125
|
-
|
|
4623
|
+
delegation: boolean;
|
|
4624
|
+
events: Array<"run_waiting" | "run_finished">;
|
|
4126
4625
|
} | null;
|
|
4127
4626
|
syncedAt: string | null;
|
|
4128
4627
|
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;
|
|
@@ -4650,7 +5149,7 @@ export type ManagementProcedures = {
|
|
|
4650
5149
|
pageSize?: number;
|
|
4651
5150
|
q?: string;
|
|
4652
5151
|
serverId?: string;
|
|
4653
|
-
|
|
5152
|
+
agentId?: string;
|
|
4654
5153
|
userId?: string;
|
|
4655
5154
|
dateFrom?: string;
|
|
4656
5155
|
dateTo?: string;
|
|
@@ -4730,7 +5229,7 @@ export type ManagementProcedures = {
|
|
|
4730
5229
|
output: {
|
|
4731
5230
|
items: Array<{
|
|
4732
5231
|
id: string;
|
|
4733
|
-
role: "system" | "user" | "assistant" | "
|
|
5232
|
+
role: "system" | "user" | "assistant" | "event";
|
|
4734
5233
|
text: string | null;
|
|
4735
5234
|
content: Record<string, unknown>;
|
|
4736
5235
|
ordinal: number;
|
|
@@ -4757,6 +5256,19 @@ export type ManagementProcedures = {
|
|
|
4757
5256
|
path: string;
|
|
4758
5257
|
endpointUrl: string;
|
|
4759
5258
|
inputFields: Array<SchemaFieldRow>;
|
|
5259
|
+
inputRules?: {
|
|
5260
|
+
anyOf?: SchemaConditions;
|
|
5261
|
+
oneOf?: SchemaConditions;
|
|
5262
|
+
allOf?: SchemaConditions;
|
|
5263
|
+
not?: SchemaCondition;
|
|
5264
|
+
if?: SchemaCondition;
|
|
5265
|
+
then?: SchemaCondition;
|
|
5266
|
+
else?: SchemaCondition;
|
|
5267
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
5268
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
5269
|
+
minProperties?: number;
|
|
5270
|
+
maxProperties?: number;
|
|
5271
|
+
};
|
|
4760
5272
|
outputFields: Array<SchemaFieldRow>;
|
|
4761
5273
|
responseKind: "object" | "array" | "paginated" | "file" | "none";
|
|
4762
5274
|
config: {
|
|
@@ -4800,6 +5312,19 @@ export type ManagementProcedures = {
|
|
|
4800
5312
|
path: string;
|
|
4801
5313
|
endpointUrl: string;
|
|
4802
5314
|
inputFields: Array<SchemaFieldRow>;
|
|
5315
|
+
inputRules?: {
|
|
5316
|
+
anyOf?: SchemaConditions;
|
|
5317
|
+
oneOf?: SchemaConditions;
|
|
5318
|
+
allOf?: SchemaConditions;
|
|
5319
|
+
not?: SchemaCondition;
|
|
5320
|
+
if?: SchemaCondition;
|
|
5321
|
+
then?: SchemaCondition;
|
|
5322
|
+
else?: SchemaCondition;
|
|
5323
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
5324
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
5325
|
+
minProperties?: number;
|
|
5326
|
+
maxProperties?: number;
|
|
5327
|
+
};
|
|
4803
5328
|
outputFields: Array<SchemaFieldRow>;
|
|
4804
5329
|
responseKind: "object" | "array" | "paginated" | "file" | "none";
|
|
4805
5330
|
config: {
|
|
@@ -4903,6 +5428,19 @@ export type ManagementProcedures = {
|
|
|
4903
5428
|
path: string;
|
|
4904
5429
|
endpointUrl: string;
|
|
4905
5430
|
inputFields: Array<SchemaFieldRow>;
|
|
5431
|
+
inputRules?: {
|
|
5432
|
+
anyOf?: SchemaConditions;
|
|
5433
|
+
oneOf?: SchemaConditions;
|
|
5434
|
+
allOf?: SchemaConditions;
|
|
5435
|
+
not?: SchemaCondition;
|
|
5436
|
+
if?: SchemaCondition;
|
|
5437
|
+
then?: SchemaCondition;
|
|
5438
|
+
else?: SchemaCondition;
|
|
5439
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
5440
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
5441
|
+
minProperties?: number;
|
|
5442
|
+
maxProperties?: number;
|
|
5443
|
+
};
|
|
4906
5444
|
outputFields: Array<SchemaFieldRow>;
|
|
4907
5445
|
responseKind: "object" | "array" | "paginated" | "file" | "none";
|
|
4908
5446
|
config: {
|
|
@@ -4972,6 +5510,19 @@ export type ManagementProcedures = {
|
|
|
4972
5510
|
path: string;
|
|
4973
5511
|
endpointUrl: string;
|
|
4974
5512
|
inputFields: Array<SchemaFieldRow>;
|
|
5513
|
+
inputRules?: {
|
|
5514
|
+
anyOf?: SchemaConditions;
|
|
5515
|
+
oneOf?: SchemaConditions;
|
|
5516
|
+
allOf?: SchemaConditions;
|
|
5517
|
+
not?: SchemaCondition;
|
|
5518
|
+
if?: SchemaCondition;
|
|
5519
|
+
then?: SchemaCondition;
|
|
5520
|
+
else?: SchemaCondition;
|
|
5521
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
5522
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
5523
|
+
minProperties?: number;
|
|
5524
|
+
maxProperties?: number;
|
|
5525
|
+
};
|
|
4975
5526
|
outputFields: Array<SchemaFieldRow>;
|
|
4976
5527
|
responseKind: "object" | "array" | "paginated" | "file" | "none";
|
|
4977
5528
|
config: {
|
|
@@ -5000,6 +5551,19 @@ export type ManagementProcedures = {
|
|
|
5000
5551
|
path: string;
|
|
5001
5552
|
endpointUrl: string;
|
|
5002
5553
|
inputFields: Array<SchemaFieldRow>;
|
|
5554
|
+
inputRules?: {
|
|
5555
|
+
anyOf?: SchemaConditions;
|
|
5556
|
+
oneOf?: SchemaConditions;
|
|
5557
|
+
allOf?: SchemaConditions;
|
|
5558
|
+
not?: SchemaCondition;
|
|
5559
|
+
if?: SchemaCondition;
|
|
5560
|
+
then?: SchemaCondition;
|
|
5561
|
+
else?: SchemaCondition;
|
|
5562
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
5563
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
5564
|
+
minProperties?: number;
|
|
5565
|
+
maxProperties?: number;
|
|
5566
|
+
};
|
|
5003
5567
|
outputFields: Array<SchemaFieldRow>;
|
|
5004
5568
|
responseKind: "object" | "array" | "paginated" | "file" | "none";
|
|
5005
5569
|
config: {
|
|
@@ -5051,9 +5615,6 @@ export type ManagementProcedures = {
|
|
|
5051
5615
|
responseKind: "file" | "none" | "non_json";
|
|
5052
5616
|
} | {
|
|
5053
5617
|
kind: "schema_too_large";
|
|
5054
|
-
} | {
|
|
5055
|
-
kind: "enum_array";
|
|
5056
|
-
field: string;
|
|
5057
5618
|
} | {
|
|
5058
5619
|
kind: "unsupported_items";
|
|
5059
5620
|
field: string;
|
|
@@ -5152,6 +5713,19 @@ export type ManagementProcedures = {
|
|
|
5152
5713
|
computed: boolean;
|
|
5153
5714
|
}>;
|
|
5154
5715
|
inputFields: Array<StoredSchemaFieldRow>;
|
|
5716
|
+
inputRules?: {
|
|
5717
|
+
anyOf?: SchemaConditions;
|
|
5718
|
+
oneOf?: SchemaConditions;
|
|
5719
|
+
allOf?: SchemaConditions;
|
|
5720
|
+
not?: SchemaCondition;
|
|
5721
|
+
if?: SchemaCondition;
|
|
5722
|
+
then?: SchemaCondition;
|
|
5723
|
+
else?: SchemaCondition;
|
|
5724
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
5725
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
5726
|
+
minProperties?: number;
|
|
5727
|
+
maxProperties?: number;
|
|
5728
|
+
};
|
|
5155
5729
|
outputFields: Array<StoredSchemaFieldRow>;
|
|
5156
5730
|
};
|
|
5157
5731
|
};
|
|
@@ -5230,6 +5804,19 @@ export type ManagementProcedures = {
|
|
|
5230
5804
|
path: string;
|
|
5231
5805
|
endpointUrl: string;
|
|
5232
5806
|
inputFields: Array<SchemaFieldRow>;
|
|
5807
|
+
inputRules?: {
|
|
5808
|
+
anyOf?: SchemaConditions;
|
|
5809
|
+
oneOf?: SchemaConditions;
|
|
5810
|
+
allOf?: SchemaConditions;
|
|
5811
|
+
not?: SchemaCondition;
|
|
5812
|
+
if?: SchemaCondition;
|
|
5813
|
+
then?: SchemaCondition;
|
|
5814
|
+
else?: SchemaCondition;
|
|
5815
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
5816
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
5817
|
+
minProperties?: number;
|
|
5818
|
+
maxProperties?: number;
|
|
5819
|
+
};
|
|
5233
5820
|
outputFields: Array<SchemaFieldRow>;
|
|
5234
5821
|
responseKind: "object" | "array" | "paginated" | "file" | "none";
|
|
5235
5822
|
config: {
|
|
@@ -5256,9 +5843,6 @@ export type ManagementProcedures = {
|
|
|
5256
5843
|
responseKind: "file" | "none" | "non_json";
|
|
5257
5844
|
} | {
|
|
5258
5845
|
kind: "schema_too_large";
|
|
5259
|
-
} | {
|
|
5260
|
-
kind: "enum_array";
|
|
5261
|
-
field: string;
|
|
5262
5846
|
} | {
|
|
5263
5847
|
kind: "unsupported_items";
|
|
5264
5848
|
field: string;
|
|
@@ -5319,7 +5903,7 @@ export type ManagementProcedures = {
|
|
|
5319
5903
|
unchanged: boolean;
|
|
5320
5904
|
};
|
|
5321
5905
|
};
|
|
5322
|
-
/** 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
|
|
5906
|
+
/** 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. */
|
|
5323
5907
|
"tools.setAudience": {
|
|
5324
5908
|
input: {
|
|
5325
5909
|
id: string;
|
|
@@ -5425,6 +6009,19 @@ export type ManagementProcedures = {
|
|
|
5425
6009
|
computed: boolean;
|
|
5426
6010
|
}>;
|
|
5427
6011
|
inputFields: Array<SchemaFieldRow>;
|
|
6012
|
+
inputRules?: {
|
|
6013
|
+
anyOf?: SchemaConditions;
|
|
6014
|
+
oneOf?: SchemaConditions;
|
|
6015
|
+
allOf?: SchemaConditions;
|
|
6016
|
+
not?: SchemaCondition;
|
|
6017
|
+
if?: SchemaCondition;
|
|
6018
|
+
then?: SchemaCondition;
|
|
6019
|
+
else?: SchemaCondition;
|
|
6020
|
+
dependentRequired?: Record<string, Array<string>>;
|
|
6021
|
+
dependentSchemas?: Record<string, SchemaCondition>;
|
|
6022
|
+
minProperties?: number;
|
|
6023
|
+
maxProperties?: number;
|
|
6024
|
+
};
|
|
5428
6025
|
outputFields: Array<SchemaFieldRow>;
|
|
5429
6026
|
pinned: boolean;
|
|
5430
6027
|
type: "http" | "embedded" | "soap" | "native" | "client";
|
|
@@ -5451,67 +6048,64 @@ export type ManagementProcedures = {
|
|
|
5451
6048
|
name: string;
|
|
5452
6049
|
};
|
|
5453
6050
|
};
|
|
5454
|
-
/** Approve or deny a tool call a
|
|
5455
|
-
"triggers.
|
|
6051
|
+
/** 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. */
|
|
6052
|
+
"triggers.answerRun": {
|
|
5456
6053
|
input: {
|
|
5457
|
-
|
|
5458
|
-
agentId?: string;
|
|
5459
|
-
firingId: string;
|
|
6054
|
+
runId: string;
|
|
5460
6055
|
toolCallId: string;
|
|
5461
6056
|
approved: boolean;
|
|
5462
6057
|
};
|
|
5463
6058
|
output: {
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
outcome: "started";
|
|
5467
|
-
threadId: string;
|
|
6059
|
+
inputId: string;
|
|
6060
|
+
state: "started";
|
|
5468
6061
|
runId: string;
|
|
5469
|
-
} | {
|
|
5470
|
-
status: number;
|
|
5471
|
-
firingId: string;
|
|
5472
|
-
outcome: "awaiting_approval";
|
|
5473
6062
|
threadId: string;
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
|
|
6063
|
+
} | {
|
|
6064
|
+
state: "rejected";
|
|
6065
|
+
issues: Array<{
|
|
6066
|
+
path: string;
|
|
6067
|
+
message: string;
|
|
5479
6068
|
}>;
|
|
5480
6069
|
} | {
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
|
|
5484
|
-
threadId: string;
|
|
5485
|
-
runId: string;
|
|
5486
|
-
output: unknown;
|
|
6070
|
+
inputId: string;
|
|
6071
|
+
state: "waiting";
|
|
6072
|
+
delivery: "prompt" | "steer" | "followUp" | "answer" | "note";
|
|
5487
6073
|
} | {
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
|
|
5491
|
-
threadId: string;
|
|
5492
|
-
runId: string;
|
|
5493
|
-
reason: "busy" | "approval_pending" | "budget" | "rate_limited" | "invalid_payload" | "missing_thread_key" | "no_turn" | "no_output" | "invalid_output" | null;
|
|
6074
|
+
inputId: string | null;
|
|
6075
|
+
state: "refused";
|
|
6076
|
+
reason: "busy" | "approval_pending" | "conflict" | "rate_limited" | "budget" | "full" | "not_waiting";
|
|
5494
6077
|
} | {
|
|
5495
|
-
|
|
5496
|
-
|
|
5497
|
-
|
|
5498
|
-
reason: "busy" | "approval_pending" | "budget" | "rate_limited";
|
|
5499
|
-
threadId: string | null;
|
|
6078
|
+
inputId: string;
|
|
6079
|
+
state: "cancelled";
|
|
6080
|
+
reason: "stopped";
|
|
5500
6081
|
} | {
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
6082
|
+
id: string;
|
|
6083
|
+
threadId: string | null;
|
|
6084
|
+
inputId: string | null;
|
|
6085
|
+
kind: "turn" | "subagent" | "tool";
|
|
6086
|
+
subagentRunId: string | null;
|
|
6087
|
+
status: "running" | "waiting" | "completed" | "failed" | "cancelled";
|
|
6088
|
+
reason: "no_output" | "invalid_output" | "stopped" | "cancelled" | "parent_cancelled" | "lost" | "timeout" | null;
|
|
6089
|
+
result: unknown;
|
|
6090
|
+
waits: Array<{
|
|
6091
|
+
kind: "approval" | "client_tool";
|
|
6092
|
+
toolCallId: string;
|
|
6093
|
+
toolName: string;
|
|
6094
|
+
input: unknown;
|
|
5507
6095
|
}>;
|
|
6096
|
+
createdAt: string;
|
|
6097
|
+
finishedAt: string | null;
|
|
5508
6098
|
};
|
|
5509
6099
|
};
|
|
5510
|
-
/** Create a trigger (a named entry point
|
|
6100
|
+
/** 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. */
|
|
5511
6101
|
"triggers.create": {
|
|
5512
6102
|
input: {
|
|
5513
6103
|
/** A name: lowercase letters, digits, and single hyphens. */
|
|
5514
6104
|
name: string;
|
|
6105
|
+
schedule: {
|
|
6106
|
+
cron: string;
|
|
6107
|
+
timeZone: string;
|
|
6108
|
+
} | null;
|
|
5515
6109
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
5516
6110
|
audience: {
|
|
5517
6111
|
kind: "all";
|
|
@@ -5526,7 +6120,7 @@ export type ManagementProcedures = {
|
|
|
5526
6120
|
output: {
|
|
5527
6121
|
id: string;
|
|
5528
6122
|
name: string;
|
|
5529
|
-
rawSecret: string;
|
|
6123
|
+
rawSecret: string | null;
|
|
5530
6124
|
};
|
|
5531
6125
|
};
|
|
5532
6126
|
/** Delete a trigger. */
|
|
@@ -5538,7 +6132,7 @@ export type ManagementProcedures = {
|
|
|
5538
6132
|
id: string;
|
|
5539
6133
|
};
|
|
5540
6134
|
};
|
|
5541
|
-
/** Fire a trigger with a test payload on one of its agents and return the
|
|
6135
|
+
/** 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. */
|
|
5542
6136
|
"triggers.fire": {
|
|
5543
6137
|
input: {
|
|
5544
6138
|
id: string;
|
|
@@ -5546,50 +6140,45 @@ export type ManagementProcedures = {
|
|
|
5546
6140
|
payload: unknown;
|
|
5547
6141
|
};
|
|
5548
6142
|
output: {
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
outcome: "started";
|
|
5552
|
-
threadId: string;
|
|
6143
|
+
inputId: string;
|
|
6144
|
+
state: "started";
|
|
5553
6145
|
runId: string;
|
|
5554
|
-
} | {
|
|
5555
|
-
status: number;
|
|
5556
|
-
firingId: string;
|
|
5557
|
-
outcome: "awaiting_approval";
|
|
5558
6146
|
threadId: string;
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
6147
|
+
} | {
|
|
6148
|
+
state: "rejected";
|
|
6149
|
+
issues: Array<{
|
|
6150
|
+
path: string;
|
|
6151
|
+
message: string;
|
|
5564
6152
|
}>;
|
|
5565
6153
|
} | {
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
threadId: string;
|
|
5570
|
-
runId: string;
|
|
5571
|
-
output: unknown;
|
|
6154
|
+
inputId: string;
|
|
6155
|
+
state: "waiting";
|
|
6156
|
+
delivery: "prompt" | "steer" | "followUp" | "answer" | "note";
|
|
5572
6157
|
} | {
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
threadId: string;
|
|
5577
|
-
runId: string;
|
|
5578
|
-
reason: "busy" | "approval_pending" | "budget" | "rate_limited" | "invalid_payload" | "missing_thread_key" | "no_turn" | "no_output" | "invalid_output" | null;
|
|
6158
|
+
inputId: string | null;
|
|
6159
|
+
state: "refused";
|
|
6160
|
+
reason: "busy" | "approval_pending" | "conflict" | "rate_limited" | "budget" | "full" | "not_waiting";
|
|
5579
6161
|
} | {
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
reason: "busy" | "approval_pending" | "budget" | "rate_limited";
|
|
5584
|
-
threadId: string | null;
|
|
6162
|
+
inputId: string;
|
|
6163
|
+
state: "cancelled";
|
|
6164
|
+
reason: "stopped";
|
|
5585
6165
|
} | {
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
6166
|
+
id: string;
|
|
6167
|
+
threadId: string | null;
|
|
6168
|
+
inputId: string | null;
|
|
6169
|
+
kind: "turn" | "subagent" | "tool";
|
|
6170
|
+
subagentRunId: string | null;
|
|
6171
|
+
status: "running" | "waiting" | "completed" | "failed" | "cancelled";
|
|
6172
|
+
reason: "no_output" | "invalid_output" | "stopped" | "cancelled" | "parent_cancelled" | "lost" | "timeout" | null;
|
|
6173
|
+
result: unknown;
|
|
6174
|
+
waits: Array<{
|
|
6175
|
+
kind: "approval" | "client_tool";
|
|
6176
|
+
toolCallId: string;
|
|
6177
|
+
toolName: string;
|
|
6178
|
+
input: unknown;
|
|
5592
6179
|
}>;
|
|
6180
|
+
createdAt: string;
|
|
6181
|
+
finishedAt: string | null;
|
|
5593
6182
|
};
|
|
5594
6183
|
};
|
|
5595
6184
|
/** One trigger by id with its draft instructions and payload schema. */
|
|
@@ -5606,13 +6195,22 @@ export type ManagementProcedures = {
|
|
|
5606
6195
|
threadPolicy: {
|
|
5607
6196
|
policy: "single";
|
|
5608
6197
|
} | {
|
|
5609
|
-
policy: "per-
|
|
6198
|
+
policy: "per-input";
|
|
5610
6199
|
} | {
|
|
5611
6200
|
policy: "ephemeral";
|
|
5612
6201
|
} | {
|
|
5613
6202
|
policy: "keyed";
|
|
5614
6203
|
key: string;
|
|
6204
|
+
} | {
|
|
6205
|
+
policy: "thread";
|
|
6206
|
+
key: string;
|
|
6207
|
+
wake: boolean;
|
|
5615
6208
|
};
|
|
6209
|
+
schedule: {
|
|
6210
|
+
cron: string;
|
|
6211
|
+
timeZone: string;
|
|
6212
|
+
} | null;
|
|
6213
|
+
whileBusy: "refuse" | "queue" | "steer";
|
|
5616
6214
|
budgetPerDay: number | null;
|
|
5617
6215
|
disableAfterFailures: number;
|
|
5618
6216
|
secretPrefix: string;
|
|
@@ -5698,13 +6296,21 @@ export type ManagementProcedures = {
|
|
|
5698
6296
|
threadPolicy: {
|
|
5699
6297
|
policy: "single";
|
|
5700
6298
|
} | {
|
|
5701
|
-
policy: "per-
|
|
6299
|
+
policy: "per-input";
|
|
5702
6300
|
} | {
|
|
5703
6301
|
policy: "ephemeral";
|
|
5704
6302
|
} | {
|
|
5705
6303
|
policy: "keyed";
|
|
5706
6304
|
key: string;
|
|
6305
|
+
} | {
|
|
6306
|
+
policy: "thread";
|
|
6307
|
+
key: string;
|
|
6308
|
+
wake: boolean;
|
|
5707
6309
|
};
|
|
6310
|
+
schedule: {
|
|
6311
|
+
cron: string;
|
|
6312
|
+
timeZone: string;
|
|
6313
|
+
} | null;
|
|
5708
6314
|
status: "draft" | "published" | "disabled";
|
|
5709
6315
|
secretPrefix: string;
|
|
5710
6316
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
@@ -5813,7 +6419,7 @@ export type ManagementProcedures = {
|
|
|
5813
6419
|
unchanged: boolean;
|
|
5814
6420
|
};
|
|
5815
6421
|
};
|
|
5816
|
-
/** 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
|
|
6422
|
+
/** 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. */
|
|
5817
6423
|
"triggers.update": {
|
|
5818
6424
|
input: {
|
|
5819
6425
|
description: string;
|
|
@@ -5823,13 +6429,22 @@ export type ManagementProcedures = {
|
|
|
5823
6429
|
threadPolicy: {
|
|
5824
6430
|
policy: "single";
|
|
5825
6431
|
} | {
|
|
5826
|
-
policy: "per-
|
|
6432
|
+
policy: "per-input";
|
|
5827
6433
|
} | {
|
|
5828
6434
|
policy: "ephemeral";
|
|
5829
6435
|
} | {
|
|
5830
6436
|
policy: "keyed";
|
|
5831
6437
|
key: string;
|
|
6438
|
+
} | {
|
|
6439
|
+
policy: "thread";
|
|
6440
|
+
key: string;
|
|
6441
|
+
wake: boolean;
|
|
5832
6442
|
};
|
|
6443
|
+
schedule: {
|
|
6444
|
+
cron: string;
|
|
6445
|
+
timeZone: string;
|
|
6446
|
+
} | null;
|
|
6447
|
+
whileBusy: "refuse" | "queue" | "steer";
|
|
5833
6448
|
budgetPerDay: number | null;
|
|
5834
6449
|
disableAfterFailures: number;
|
|
5835
6450
|
id: string;
|
|
@@ -5974,7 +6589,7 @@ export type ManagementProcedures = {
|
|
|
5974
6589
|
name: string;
|
|
5975
6590
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
5976
6591
|
description: string;
|
|
5977
|
-
event: "
|
|
6592
|
+
event: "run_waiting" | "run_finished";
|
|
5978
6593
|
url: string;
|
|
5979
6594
|
headers: Array<{
|
|
5980
6595
|
header: string;
|
|
@@ -6026,7 +6641,7 @@ export type ManagementProcedures = {
|
|
|
6026
6641
|
items: Array<{
|
|
6027
6642
|
id: string;
|
|
6028
6643
|
name: string;
|
|
6029
|
-
event: "
|
|
6644
|
+
event: "run_waiting" | "run_finished";
|
|
6030
6645
|
url: string;
|
|
6031
6646
|
enabled: boolean;
|
|
6032
6647
|
displayName: Partial<Record<"en" | "ar", string>>;
|
|
@@ -6067,10 +6682,9 @@ export type ManagementProcedures = {
|
|
|
6067
6682
|
id: string;
|
|
6068
6683
|
serverId: string | null;
|
|
6069
6684
|
agentId: string | null;
|
|
6070
|
-
event: "
|
|
6071
|
-
threadId: string;
|
|
6685
|
+
event: "run_waiting" | "run_finished";
|
|
6686
|
+
threadId: string | null;
|
|
6072
6687
|
runId: string;
|
|
6073
|
-
firingId: string | null;
|
|
6074
6688
|
attempt: number;
|
|
6075
6689
|
status: "delivered" | "failed";
|
|
6076
6690
|
httpStatus: number | null;
|
|
@@ -6144,7 +6758,7 @@ export type ManagementProcedures = {
|
|
|
6144
6758
|
"webhooks.update": {
|
|
6145
6759
|
input: {
|
|
6146
6760
|
description: string;
|
|
6147
|
-
event: "
|
|
6761
|
+
event: "run_waiting" | "run_finished";
|
|
6148
6762
|
url: string;
|
|
6149
6763
|
headers: Array<{
|
|
6150
6764
|
header: string;
|