@anchrd/colab-sdk 0.1.54 → 0.1.55
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/dist/action-blocks/action-blocks.d.ts +1 -0
- package/dist/action-blocks/action-blocks.js +22 -0
- package/dist/actions/actions.d.ts +356 -3
- package/dist/actions/actions.js +21 -3
- package/dist/boards/boards.d.ts +0 -14
- package/dist/boards/boards.js +3 -18
- package/dist/documents/documents.d.ts +2 -0
- package/dist/flows/flow-runs.d.ts +34 -0
- package/dist/flows/flow-runs.js +48 -4
- package/dist/flows/flows.d.ts +5 -0
- package/dist/flows/flows.js +3 -0
- package/dist/gadgets/gadgets.d.ts +4 -0
- package/dist/gadgets/gadgets.js +5 -0
- package/dist/goals/goals.d.ts +1 -0
- package/dist/goals/goals.js +2 -2
- package/dist/grammar/grammar.d.ts +1 -2
- package/dist/grammar/grammar.js +5 -7
- package/dist/home/home.d.ts +2 -0
- package/dist/links/links.d.ts +15 -2
- package/dist/links/links.js +25 -13
- package/dist/messages/messages.js +5 -4
- package/dist/nodes/nodes.d.ts +11 -6
- package/dist/nodes/nodes.js +11 -7
- package/dist/operators/operators.d.ts +87 -4
- package/dist/operators/operators.js +55 -2
- package/dist/processes/processes.d.ts +1999 -0
- package/dist/processes/processes.js +417 -0
- package/dist/runs/runs.d.ts +1 -200
- package/dist/runs/runs.js +3 -64
- package/dist/schedule/schedule.js +3 -3
- package/dist/sdk.d.ts +10 -11
- package/dist/sdk.js +10 -11
- package/dist/skills/skills.d.ts +1 -0
- package/dist/sources/sources.d.ts +4 -3
- package/dist/tables/tables.d.ts +114 -1
- package/dist/tables/tables.js +86 -2
- package/dist/tool.d.ts +1 -0
- package/dist/users/users.d.ts +30 -0
- package/dist/users/users.js +32 -0
- package/dist/written/written.d.ts +2 -4
- package/dist/written/written.js +2 -5
- package/package.json +2 -1
- package/dist/relations/relations.d.ts +0 -342
- package/dist/relations/relations.js +0 -129
- package/dist/types/types.d.ts +0 -181
- package/dist/types/types.js +0 -124
package/dist/nodes/nodes.d.ts
CHANGED
|
@@ -41,7 +41,6 @@ export type NodeKindRead = z.infer<typeof NodeKindRead>;
|
|
|
41
41
|
export declare const responsibleKinds: readonly ["document", "table", "file"];
|
|
42
42
|
export declare const BoardShownKind: z.ZodEnum<{
|
|
43
43
|
board: "board";
|
|
44
|
-
process: "process";
|
|
45
44
|
}>;
|
|
46
45
|
export type BoardShownKind = z.infer<typeof BoardShownKind>;
|
|
47
46
|
export declare const NodeSection: z.ZodEnum<{
|
|
@@ -103,6 +102,7 @@ export declare const NodePath: z.ZodObject<{
|
|
|
103
102
|
items: z.ZodArray<z.ZodObject<{
|
|
104
103
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
105
104
|
name: z.ZodString;
|
|
105
|
+
process: z.ZodBoolean;
|
|
106
106
|
}, z.core.$strip>>;
|
|
107
107
|
}, z.core.$strip>;
|
|
108
108
|
export type NodePath = z.infer<typeof NodePath>;
|
|
@@ -148,7 +148,6 @@ export declare const NodeListItem: z.ZodObject<{
|
|
|
148
148
|
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
149
149
|
boardKind: z.ZodNullable<z.ZodEnum<{
|
|
150
150
|
board: "board";
|
|
151
|
-
process: "process";
|
|
152
151
|
}>>;
|
|
153
152
|
path: z.ZodOptional<z.ZodObject<{
|
|
154
153
|
section: z.ZodEnum<{
|
|
@@ -159,10 +158,12 @@ export declare const NodeListItem: z.ZodObject<{
|
|
|
159
158
|
items: z.ZodArray<z.ZodObject<{
|
|
160
159
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
161
160
|
name: z.ZodString;
|
|
161
|
+
process: z.ZodBoolean;
|
|
162
162
|
}, z.core.$strip>>;
|
|
163
163
|
}, z.core.$strip>>;
|
|
164
164
|
count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
165
165
|
secret: z.ZodOptional<z.ZodLiteral<true>>;
|
|
166
|
+
process: z.ZodOptional<z.ZodLiteral<true>>;
|
|
166
167
|
preview: z.ZodOptional<z.ZodTemplateLiteral<`version_${string}`>>;
|
|
167
168
|
rights: z.ZodOptional<z.ZodObject<{
|
|
168
169
|
write: z.ZodBoolean;
|
|
@@ -213,7 +214,6 @@ export declare const NodeList: z.ZodObject<{
|
|
|
213
214
|
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
214
215
|
boardKind: z.ZodNullable<z.ZodEnum<{
|
|
215
216
|
board: "board";
|
|
216
|
-
process: "process";
|
|
217
217
|
}>>;
|
|
218
218
|
path: z.ZodOptional<z.ZodObject<{
|
|
219
219
|
section: z.ZodEnum<{
|
|
@@ -224,10 +224,12 @@ export declare const NodeList: z.ZodObject<{
|
|
|
224
224
|
items: z.ZodArray<z.ZodObject<{
|
|
225
225
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
226
226
|
name: z.ZodString;
|
|
227
|
+
process: z.ZodBoolean;
|
|
227
228
|
}, z.core.$strip>>;
|
|
228
229
|
}, z.core.$strip>>;
|
|
229
230
|
count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
230
231
|
secret: z.ZodOptional<z.ZodLiteral<true>>;
|
|
232
|
+
process: z.ZodOptional<z.ZodLiteral<true>>;
|
|
231
233
|
preview: z.ZodOptional<z.ZodTemplateLiteral<`version_${string}`>>;
|
|
232
234
|
rights: z.ZodOptional<z.ZodObject<{
|
|
233
235
|
write: z.ZodBoolean;
|
|
@@ -286,6 +288,7 @@ export declare const NodeHit: z.ZodObject<{
|
|
|
286
288
|
items: z.ZodArray<z.ZodObject<{
|
|
287
289
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
288
290
|
name: z.ZodString;
|
|
291
|
+
process: z.ZodBoolean;
|
|
289
292
|
}, z.core.$strip>>;
|
|
290
293
|
}, z.core.$strip>;
|
|
291
294
|
snippet: z.ZodString;
|
|
@@ -303,7 +306,6 @@ export declare const NodeHit: z.ZodObject<{
|
|
|
303
306
|
updatedAt: z.ZodISODateTime;
|
|
304
307
|
boardKind: z.ZodNullable<z.ZodEnum<{
|
|
305
308
|
board: "board";
|
|
306
|
-
process: "process";
|
|
307
309
|
}>>;
|
|
308
310
|
secret: z.ZodOptional<z.ZodLiteral<true>>;
|
|
309
311
|
}, z.core.$strip>;
|
|
@@ -319,6 +321,7 @@ export declare const NodeHitGroup: z.ZodObject<{
|
|
|
319
321
|
items: z.ZodArray<z.ZodObject<{
|
|
320
322
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
321
323
|
name: z.ZodString;
|
|
324
|
+
process: z.ZodBoolean;
|
|
322
325
|
}, z.core.$strip>>;
|
|
323
326
|
}, z.core.$strip>;
|
|
324
327
|
count: z.ZodNumber;
|
|
@@ -351,6 +354,7 @@ export declare const NodeSearch: z.ZodObject<{
|
|
|
351
354
|
items: z.ZodArray<z.ZodObject<{
|
|
352
355
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
353
356
|
name: z.ZodString;
|
|
357
|
+
process: z.ZodBoolean;
|
|
354
358
|
}, z.core.$strip>>;
|
|
355
359
|
}, z.core.$strip>;
|
|
356
360
|
snippet: z.ZodString;
|
|
@@ -368,7 +372,6 @@ export declare const NodeSearch: z.ZodObject<{
|
|
|
368
372
|
updatedAt: z.ZodISODateTime;
|
|
369
373
|
boardKind: z.ZodNullable<z.ZodEnum<{
|
|
370
374
|
board: "board";
|
|
371
|
-
process: "process";
|
|
372
375
|
}>>;
|
|
373
376
|
secret: z.ZodOptional<z.ZodLiteral<true>>;
|
|
374
377
|
}, z.core.$strip>>;
|
|
@@ -383,6 +386,7 @@ export declare const NodeSearch: z.ZodObject<{
|
|
|
383
386
|
items: z.ZodArray<z.ZodObject<{
|
|
384
387
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
385
388
|
name: z.ZodString;
|
|
389
|
+
process: z.ZodBoolean;
|
|
386
390
|
}, z.core.$strip>>;
|
|
387
391
|
}, z.core.$strip>;
|
|
388
392
|
count: z.ZodNumber;
|
|
@@ -443,7 +447,6 @@ export declare const NodeDetail: z.ZodObject<{
|
|
|
443
447
|
rootOf: z.ZodNullable<z.ZodString>;
|
|
444
448
|
boardKind: z.ZodNullable<z.ZodEnum<{
|
|
445
449
|
board: "board";
|
|
446
|
-
process: "process";
|
|
447
450
|
}>>;
|
|
448
451
|
parentId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
449
452
|
path: z.ZodObject<{
|
|
@@ -455,6 +458,7 @@ export declare const NodeDetail: z.ZodObject<{
|
|
|
455
458
|
items: z.ZodArray<z.ZodObject<{
|
|
456
459
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
457
460
|
name: z.ZodString;
|
|
461
|
+
process: z.ZodBoolean;
|
|
458
462
|
}, z.core.$strip>>;
|
|
459
463
|
}, z.core.$strip>;
|
|
460
464
|
createdBy: z.ZodObject<{
|
|
@@ -478,6 +482,7 @@ export declare const NodeDetail: z.ZodObject<{
|
|
|
478
482
|
share: z.ZodBoolean;
|
|
479
483
|
}, z.core.$strip>;
|
|
480
484
|
hiddenCount: z.ZodNullable<z.ZodNumber>;
|
|
485
|
+
process: z.ZodOptional<z.ZodLiteral<true>>;
|
|
481
486
|
size: z.ZodNullable<z.ZodNumber>;
|
|
482
487
|
rev: z.ZodNumber;
|
|
483
488
|
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
package/dist/nodes/nodes.js
CHANGED
|
@@ -55,10 +55,10 @@ export const responsibleKinds = [
|
|
|
55
55
|
"table",
|
|
56
56
|
"file",
|
|
57
57
|
];
|
|
58
|
-
// What a board is as an answer shows it
|
|
59
|
-
// a
|
|
60
|
-
// `boards.ts` imports from this file.
|
|
61
|
-
export const BoardShownKind = z.enum(["board"
|
|
58
|
+
// What a board is as an answer shows it (#227). One kind since the process boards went (#1266); the
|
|
59
|
+
// field stays so a reader keeps its shape. Here, not beside the boards, because the lists carry it
|
|
60
|
+
// too and `boards.ts` imports from this file.
|
|
61
|
+
export const BoardShownKind = z.enum(["board"]);
|
|
62
62
|
// The three sections of the tree (Funktionen › Seitenbaum, E67).
|
|
63
63
|
export const NodeSection = z.enum(["own", "shared", "users"]);
|
|
64
64
|
// Where a create without a parent lands (#930, after #791): Own unless the caller says Shared. Only
|
|
@@ -124,7 +124,8 @@ export const NodePerson = z.object({
|
|
|
124
124
|
// The crumbs above a node, from the first level the caller can read, and the section they start in.
|
|
125
125
|
export const NodePath = z.object({
|
|
126
126
|
section: NodeSection,
|
|
127
|
-
|
|
127
|
+
// `process`: the folder is a process (#1258), so the view Process starts its crumbs there (#1312).
|
|
128
|
+
items: z.array(z.object({ nodeId: NodeId, name: z.string(), process: z.boolean() })),
|
|
128
129
|
});
|
|
129
130
|
export const NodeListItem = z.object({
|
|
130
131
|
nodeId: NodeId,
|
|
@@ -147,8 +148,7 @@ export const NodeListItem = z.object({
|
|
|
147
148
|
sharedWith: z.number().int(),
|
|
148
149
|
// When it went into the archive; null for a node that is not archived.
|
|
149
150
|
archivedAt: z.iso.datetime().nullable(),
|
|
150
|
-
// What a board is (#227)
|
|
151
|
-
// null for every other kind.
|
|
151
|
+
// What a board is (#227); null for every other kind.
|
|
152
152
|
boardKind: BoardShownKind.nullable(),
|
|
153
153
|
// Only in the archive (`archived: true`): where it stood, as the caller can read it, for a folder
|
|
154
154
|
// how many archived nodes it holds directly, and for a board how many archived tasks (#135).
|
|
@@ -156,6 +156,8 @@ export const NodeListItem = z.object({
|
|
|
156
156
|
count: z.number().int().nullable().optional(),
|
|
157
157
|
// Only on a secret document or table (#357): the tree draws the lock.
|
|
158
158
|
secret: secretFlag,
|
|
159
|
+
// Only on a folder that is a process (#1258): the tree draws the play sign at its icon.
|
|
160
|
+
process: z.literal(true).optional(),
|
|
159
161
|
// Only over `/api`, on a file whose current version is an image the installation can show smaller
|
|
160
162
|
// (#1135): that version, so the folder's preview address changes with a new version. `/mcp` leaves
|
|
161
163
|
// it out; an AI reads the file itself.
|
|
@@ -258,6 +260,8 @@ export const NodeDetail = z.object({
|
|
|
258
260
|
rights: z.object({ write: z.boolean(), share: z.boolean() }),
|
|
259
261
|
// Only for a folder: how many hidden nodes it holds ("Versteckte anzeigen").
|
|
260
262
|
hiddenCount: z.number().int().nullable(),
|
|
263
|
+
// Only on a folder that is a process (#1258): the play sign at its icon.
|
|
264
|
+
process: z.literal(true).optional(),
|
|
261
265
|
// Bytes of the current version, as in the listing (#38).
|
|
262
266
|
size: z.number().int().nullable(),
|
|
263
267
|
rev: z.number().int(),
|
|
@@ -819,6 +819,7 @@ export declare const PauseReason: z.ZodEnum<{
|
|
|
819
819
|
export type PauseReason = z.infer<typeof PauseReason>;
|
|
820
820
|
export declare const MachineListInput: z.ZodObject<{
|
|
821
821
|
personal: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean, unknown>>;
|
|
822
|
+
archived: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean, unknown>>;
|
|
822
823
|
cursor: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
823
824
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
824
825
|
}, z.core.$strict>;
|
|
@@ -980,6 +981,28 @@ export declare const OperatorMachineRestoreInput: z.ZodObject<{
|
|
|
980
981
|
machineId: z.ZodTemplateLiteral<`user_${string}`>;
|
|
981
982
|
}, z.core.$strict>;
|
|
982
983
|
export type OperatorMachineRestoreInput = z.infer<typeof OperatorMachineRestoreInput>;
|
|
984
|
+
export declare const OperatorMachinePurgeInput: z.ZodObject<{
|
|
985
|
+
machineId: z.ZodTemplateLiteral<`user_${string}`>;
|
|
986
|
+
}, z.core.$strict>;
|
|
987
|
+
export type OperatorMachinePurgeInput = z.infer<typeof OperatorMachinePurgeInput>;
|
|
988
|
+
export declare const OperatorMachinePurged: z.ZodObject<{
|
|
989
|
+
machineId: z.ZodTemplateLiteral<`user_${string}`>;
|
|
990
|
+
name: z.ZodString;
|
|
991
|
+
runs: z.ZodNumber;
|
|
992
|
+
}, z.core.$strip>;
|
|
993
|
+
export type OperatorMachinePurged = z.infer<typeof OperatorMachinePurged>;
|
|
994
|
+
export declare const OperatorMachineHoldings: z.ZodObject<{
|
|
995
|
+
running: z.ZodNumber;
|
|
996
|
+
responsible: z.ZodNumber;
|
|
997
|
+
goals: z.ZodNumber;
|
|
998
|
+
month: z.ZodNumber;
|
|
999
|
+
tasks: z.ZodNumber;
|
|
1000
|
+
grants: z.ZodNumber;
|
|
1001
|
+
messages: z.ZodNumber;
|
|
1002
|
+
conversations: z.ZodNumber;
|
|
1003
|
+
runs: z.ZodNumber;
|
|
1004
|
+
}, z.core.$strip>;
|
|
1005
|
+
export type OperatorMachineHoldings = z.infer<typeof OperatorMachineHoldings>;
|
|
983
1006
|
export declare const Operator: z.ZodObject<{
|
|
984
1007
|
machineId: z.ZodTemplateLiteral<`user_${string}`>;
|
|
985
1008
|
name: z.ZodString;
|
|
@@ -1803,6 +1826,16 @@ export declare const OperatorUserList: z.ZodObject<{
|
|
|
1803
1826
|
nextCursor: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
1804
1827
|
}, z.core.$strip>;
|
|
1805
1828
|
export type OperatorUserList = z.infer<typeof OperatorUserList>;
|
|
1829
|
+
export declare const UserRevokeInput: z.ZodObject<{
|
|
1830
|
+
userId: z.ZodTemplateLiteral<`user_${string}`>;
|
|
1831
|
+
}, z.core.$strict>;
|
|
1832
|
+
export type UserRevokeInput = z.infer<typeof UserRevokeInput>;
|
|
1833
|
+
export declare const UserRevoked: z.ZodObject<{
|
|
1834
|
+
userId: z.ZodTemplateLiteral<`user_${string}`>;
|
|
1835
|
+
credentials: z.ZodNumber;
|
|
1836
|
+
mcps: z.ZodNumber;
|
|
1837
|
+
}, z.core.$strip>;
|
|
1838
|
+
export type UserRevoked = z.infer<typeof UserRevoked>;
|
|
1806
1839
|
export declare const OperatorRunId: z.ZodTemplateLiteral<`run_${string}`>;
|
|
1807
1840
|
export type OperatorRunId = z.infer<typeof OperatorRunId>;
|
|
1808
1841
|
export declare const OperatorRunStatus: z.ZodEnum<{
|
|
@@ -1968,6 +2001,19 @@ export declare const ClosureFound: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1968
2001
|
text: z.ZodLiteral<"nothing">;
|
|
1969
2002
|
}, z.core.$strip>], "text">;
|
|
1970
2003
|
export type ClosureFound = z.infer<typeof ClosureFound>;
|
|
2004
|
+
export declare const RunNodeUse: z.ZodEnum<{
|
|
2005
|
+
write: "write";
|
|
2006
|
+
read: "read";
|
|
2007
|
+
}>;
|
|
2008
|
+
export type RunNodeUse = z.infer<typeof RunNodeUse>;
|
|
2009
|
+
export declare const RunNode: z.ZodObject<{
|
|
2010
|
+
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
2011
|
+
use: z.ZodEnum<{
|
|
2012
|
+
write: "write";
|
|
2013
|
+
read: "read";
|
|
2014
|
+
}>;
|
|
2015
|
+
}, z.core.$strip>;
|
|
2016
|
+
export type RunNode = z.infer<typeof RunNode>;
|
|
1971
2017
|
export declare const ClosureLine: z.ZodObject<{
|
|
1972
2018
|
nodeId: z.ZodString;
|
|
1973
2019
|
kind: z.ZodEnum<{
|
|
@@ -2043,6 +2089,15 @@ export declare const ClosureLine: z.ZodObject<{
|
|
|
2043
2089
|
text: z.ZodLiteral<"nothing">;
|
|
2044
2090
|
}, z.core.$strip>], "text">>;
|
|
2045
2091
|
reported: z.ZodBoolean;
|
|
2092
|
+
processId: z.ZodOptional<z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>>;
|
|
2093
|
+
actionId: z.ZodOptional<z.ZodNullable<z.ZodTemplateLiteral<`action_${string}`>>>;
|
|
2094
|
+
outside: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2095
|
+
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
2096
|
+
use: z.ZodEnum<{
|
|
2097
|
+
write: "write";
|
|
2098
|
+
read: "read";
|
|
2099
|
+
}>;
|
|
2100
|
+
}, z.core.$strip>>>;
|
|
2046
2101
|
}, z.core.$strip>;
|
|
2047
2102
|
export type ClosureLine = z.infer<typeof ClosureLine>;
|
|
2048
2103
|
export declare const OperatorRun: z.ZodObject<{
|
|
@@ -2215,6 +2270,15 @@ export declare const OperatorRun: z.ZodObject<{
|
|
|
2215
2270
|
text: z.ZodLiteral<"nothing">;
|
|
2216
2271
|
}, z.core.$strip>], "text">>;
|
|
2217
2272
|
reported: z.ZodBoolean;
|
|
2273
|
+
processId: z.ZodOptional<z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>>;
|
|
2274
|
+
actionId: z.ZodOptional<z.ZodNullable<z.ZodTemplateLiteral<`action_${string}`>>>;
|
|
2275
|
+
outside: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2276
|
+
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
2277
|
+
use: z.ZodEnum<{
|
|
2278
|
+
write: "write";
|
|
2279
|
+
read: "read";
|
|
2280
|
+
}>;
|
|
2281
|
+
}, z.core.$strip>>>;
|
|
2218
2282
|
}, z.core.$strip>>>;
|
|
2219
2283
|
responsible: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2220
2284
|
userId: z.ZodTemplateLiteral<`user_${string}`>;
|
|
@@ -2226,7 +2290,7 @@ export declare const OperatorRun: z.ZodObject<{
|
|
|
2226
2290
|
runId: z.ZodTemplateLiteral<`run_${string}`>;
|
|
2227
2291
|
}, z.core.$strip>;
|
|
2228
2292
|
export type OperatorRun = z.infer<typeof OperatorRun>;
|
|
2229
|
-
export declare const
|
|
2293
|
+
export declare const RunListInput: z.ZodObject<{
|
|
2230
2294
|
machineId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
2231
2295
|
ownerId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
2232
2296
|
personal: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean, unknown>>;
|
|
@@ -2257,17 +2321,18 @@ export declare const OperatorRunListInput: z.ZodObject<{
|
|
|
2257
2321
|
stopped: "stopped";
|
|
2258
2322
|
}>>;
|
|
2259
2323
|
open: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean, unknown>>;
|
|
2324
|
+
processId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
2260
2325
|
from: z.ZodOptional<z.ZodISODateTime>;
|
|
2261
2326
|
to: z.ZodOptional<z.ZodISODateTime>;
|
|
2262
2327
|
search: z.ZodOptional<z.ZodString>;
|
|
2263
2328
|
cursor: z.ZodOptional<z.ZodTemplateLiteral<`run_${string}`>>;
|
|
2264
2329
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2265
2330
|
}, z.core.$strict>;
|
|
2266
|
-
export type
|
|
2267
|
-
export declare const
|
|
2331
|
+
export type RunListInput = z.infer<typeof RunListInput>;
|
|
2332
|
+
export declare const RunGetInput: z.ZodObject<{
|
|
2268
2333
|
runId: z.ZodTemplateLiteral<`run_${string}`>;
|
|
2269
2334
|
}, z.core.$strict>;
|
|
2270
|
-
export type
|
|
2335
|
+
export type RunGetInput = z.infer<typeof RunGetInput>;
|
|
2271
2336
|
export declare const RunCancelInput: z.ZodObject<{
|
|
2272
2337
|
runId: z.ZodTemplateLiteral<`run_${string}`>;
|
|
2273
2338
|
}, z.core.$strict>;
|
|
@@ -2386,6 +2451,15 @@ export declare const RunCompleteAnswer: z.ZodObject<{
|
|
|
2386
2451
|
text: z.ZodLiteral<"nothing">;
|
|
2387
2452
|
}, z.core.$strip>], "text">>;
|
|
2388
2453
|
reported: z.ZodBoolean;
|
|
2454
|
+
processId: z.ZodOptional<z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>>;
|
|
2455
|
+
actionId: z.ZodOptional<z.ZodNullable<z.ZodTemplateLiteral<`action_${string}`>>>;
|
|
2456
|
+
outside: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2457
|
+
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
2458
|
+
use: z.ZodEnum<{
|
|
2459
|
+
write: "write";
|
|
2460
|
+
read: "read";
|
|
2461
|
+
}>;
|
|
2462
|
+
}, z.core.$strip>>>;
|
|
2389
2463
|
}, z.core.$strip>>;
|
|
2390
2464
|
open: z.ZodInt;
|
|
2391
2465
|
}, z.core.$strip>;
|
|
@@ -2762,6 +2836,15 @@ export declare const OperatorRunList: z.ZodObject<{
|
|
|
2762
2836
|
text: z.ZodLiteral<"nothing">;
|
|
2763
2837
|
}, z.core.$strip>], "text">>;
|
|
2764
2838
|
reported: z.ZodBoolean;
|
|
2839
|
+
processId: z.ZodOptional<z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>>;
|
|
2840
|
+
actionId: z.ZodOptional<z.ZodNullable<z.ZodTemplateLiteral<`action_${string}`>>>;
|
|
2841
|
+
outside: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2842
|
+
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
2843
|
+
use: z.ZodEnum<{
|
|
2844
|
+
write: "write";
|
|
2845
|
+
read: "read";
|
|
2846
|
+
}>;
|
|
2847
|
+
}, z.core.$strip>>>;
|
|
2765
2848
|
}, z.core.$strip>>>;
|
|
2766
2849
|
responsible: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2767
2850
|
userId: z.ZodTemplateLiteral<`user_${string}`>;
|
|
@@ -651,6 +651,7 @@ export const PauseReason = z.enum([
|
|
|
651
651
|
]);
|
|
652
652
|
export const MachineListInput = z.strictObject({
|
|
653
653
|
personal: Flag.optional().describe("true: the personal Operators (E143), your own, or every person's for an admin in admin mode. Leaving it out lists the company's Operators; without admin rights you read your own personal ones only, whatever you send."),
|
|
654
|
+
archived: Flag.optional().describe("true: only the archived (deleted) Operators of the same list, to restore them with operator_machine_restore or delete them for good in the browser (E293)."),
|
|
654
655
|
cursor: MachineId.optional(),
|
|
655
656
|
limit: Limit.optional(),
|
|
656
657
|
});
|
|
@@ -711,6 +712,33 @@ export const OperatorMachineArchiveInput = z.strictObject({ machineId: MachineId
|
|
|
711
712
|
// Bringing a deleted Operator back: its machine comes back under Nutzer, a personal one's section
|
|
712
713
|
// back into `Eigene › .INSTRUCTIONS` (E143).
|
|
713
714
|
export const OperatorMachineRestoreInput = z.strictObject({ machineId: MachineId });
|
|
715
|
+
// Deleting an archived Operator for good (#1275, E293): only from the archive, only a person in the
|
|
716
|
+
// browser (D124). The question before it reads what refuses it and what stays without it.
|
|
717
|
+
export const OperatorMachinePurgeInput = z.strictObject({ machineId: MachineId });
|
|
718
|
+
export const OperatorMachinePurged = z.object({
|
|
719
|
+
machineId: MachineId,
|
|
720
|
+
name: z.string(),
|
|
721
|
+
// Its runs, deleted with it.
|
|
722
|
+
runs: z.number().int(),
|
|
723
|
+
});
|
|
724
|
+
// What refuses the purge (something breaks at runtime) and what it lets break (mentions, named
|
|
725
|
+
// before the button, rule destructive).
|
|
726
|
+
export const OperatorMachineHoldings = z.object({
|
|
727
|
+
// Refusing: a run that goes on, live nodes it answers for (goals that report to it included),
|
|
728
|
+
// goals whose rhythm wakes it, and a personal one's runs that count for its person's limit this
|
|
729
|
+
// month.
|
|
730
|
+
running: z.number().int(),
|
|
731
|
+
responsible: z.number().int(),
|
|
732
|
+
goals: z.number().int(),
|
|
733
|
+
month: z.number().int(),
|
|
734
|
+
// Breaking: tasks assigned to it, grants, its chat messages, the KI-Chats held with it, and its
|
|
735
|
+
// runs, which go with it.
|
|
736
|
+
tasks: z.number().int(),
|
|
737
|
+
grants: z.number().int(),
|
|
738
|
+
messages: z.number().int(),
|
|
739
|
+
conversations: z.number().int(),
|
|
740
|
+
runs: z.number().int(),
|
|
741
|
+
});
|
|
714
742
|
export const Operator = z.object({
|
|
715
743
|
machineId: MachineId,
|
|
716
744
|
// The machine's name in `access`, read now.
|
|
@@ -841,6 +869,17 @@ export const OperatorUserList = z.object({
|
|
|
841
869
|
items: z.array(OperatorUser),
|
|
842
870
|
nextCursor: UserId.nullable(),
|
|
843
871
|
});
|
|
872
|
+
// An archived person's own secrets in `operator`, revoked by an admin so the person can be deleted
|
|
873
|
+
// for good (E292, #1272): their own Claude subscription token and every own MCP, in one step. The
|
|
874
|
+
// answer counts what fell, never a name, an address or a value (E144).
|
|
875
|
+
export const UserRevokeInput = z.strictObject({
|
|
876
|
+
userId: UserId.describe("The archived person, `user_…`; a person who is not archived is refused."),
|
|
877
|
+
});
|
|
878
|
+
export const UserRevoked = z.object({
|
|
879
|
+
userId: UserId,
|
|
880
|
+
credentials: z.number().int(),
|
|
881
|
+
mcps: z.number().int(),
|
|
882
|
+
});
|
|
844
883
|
// ---------------------------------------------------------------------------------------------
|
|
845
884
|
// The runs of an Operator (#337, Einstellungen › Operator › Protokoll und Nutzung, E75, E81, E82).
|
|
846
885
|
// A run's id is `run_…` like a run of `intelligence`: both are the resource `run`, in two databases.
|
|
@@ -985,6 +1024,10 @@ export const ClosureFound = z.discriminatedUnion("text", [
|
|
|
985
1024
|
// Nothing in the data carries it: no line, no change since the start.
|
|
986
1025
|
z.object({ text: z.literal("nothing") }),
|
|
987
1026
|
]);
|
|
1027
|
+
// How a run used a node (#1261, E288), booked at the `/mcp` door from the right on the tool: `list`
|
|
1028
|
+
// and `get` read, every other action writes.
|
|
1029
|
+
export const RunNodeUse = z.enum(["read", "write"]);
|
|
1030
|
+
export const RunNode = z.object({ nodeId: NodeId, use: RunNodeUse });
|
|
988
1031
|
// One thing of the closure: what it is, why the run was woken for it, what the Operator reported
|
|
989
1032
|
// and what Colab found. `outcome` null while nothing is reported yet; `ok` whether the data carry
|
|
990
1033
|
// it. A run's last word: `open` where nothing holds after the one question.
|
|
@@ -1001,6 +1044,14 @@ export const ClosureLine = z.object({
|
|
|
1001
1044
|
found: ClosureFound.nullable(),
|
|
1002
1045
|
// Whether the Operator reported it itself (false where the data alone decided).
|
|
1003
1046
|
reported: z.boolean(),
|
|
1047
|
+
// The process and the action whose role the row carried at the run's start (#1260, E286); absent
|
|
1048
|
+
// or null where it carried none.
|
|
1049
|
+
processId: NodeId.nullable().optional(),
|
|
1050
|
+
actionId: idSchema("action").nullable().optional(),
|
|
1051
|
+
// "Außerdem angefasst" (#1261, E288): the nodes the run read or wrote outside the micros of the
|
|
1052
|
+
// actions it worked on. Only `operator_run_get` names it, only on a line with a process; never
|
|
1053
|
+
// stored in the closure.
|
|
1054
|
+
outside: z.array(RunNode).optional(),
|
|
1004
1055
|
});
|
|
1005
1056
|
export const OperatorRun = z.object({
|
|
1006
1057
|
runId: OperatorRunId,
|
|
@@ -1062,7 +1113,8 @@ export const OperatorRun = z.object({
|
|
|
1062
1113
|
responsible: z.object({ userId: UserId, name: z.string() }).nullable().optional(),
|
|
1063
1114
|
});
|
|
1064
1115
|
const RunMoment = z.iso.datetime({ offset: true });
|
|
1065
|
-
|
|
1116
|
+
// The plain name since the runs of process boards and their tools went (#1266).
|
|
1117
|
+
export const RunListInput = z.strictObject({
|
|
1066
1118
|
machineId: MachineId.optional().describe("Only this Operator's runs, `user_…`. An Operator without admin rights reads its own runs only, whatever it names here."),
|
|
1067
1119
|
ownerId: UserId.optional().describe("Only the runs of this person's personal Operators, deleted ones included, `user_…`."),
|
|
1068
1120
|
personal: Flag.optional().describe("true: only the runs of personal Operators; false: only those of the company's Operators."),
|
|
@@ -1070,6 +1122,7 @@ export const OperatorRunListInput = z.strictObject({
|
|
|
1070
1122
|
vendor: OperatorVendor.optional().describe("Only the runs of the Operators whose model is this vendor's (E230): claude, gpt, deepseek and so on."),
|
|
1071
1123
|
status: OperatorRunStatus.optional().describe("Only runs in this status."),
|
|
1072
1124
|
open: Flag.optional().describe("true: only runs whose closure left something open (offen geblieben); false: only the others."),
|
|
1125
|
+
processId: NodeId.optional().describe("Only the runs that worked on an action of this process (the id of its folder, `node_…`)."),
|
|
1073
1126
|
from: RunMoment.optional().describe("Runs started at or after this moment, ISO."),
|
|
1074
1127
|
to: RunMoment.optional().describe("Runs started before this moment, ISO."),
|
|
1075
1128
|
search: z
|
|
@@ -1082,7 +1135,7 @@ export const OperatorRunListInput = z.strictObject({
|
|
|
1082
1135
|
cursor: OperatorRunId.optional().describe("The nextCursor of the previous page, for the runs after it; newest first."),
|
|
1083
1136
|
limit: Limit.optional().describe("Runs per page, 1 to 100. Leaving it out gives 20 over MCP and 50 over the API."),
|
|
1084
1137
|
});
|
|
1085
|
-
export const
|
|
1138
|
+
export const RunGetInput = z.strictObject({ runId: OperatorRunId });
|
|
1086
1139
|
// Stopping a run by hand (E112): its container ends, the run ends `stopped`.
|
|
1087
1140
|
export const RunCancelInput = z.strictObject({ runId: OperatorRunId });
|
|
1088
1141
|
// Marks the technical abort of a run read (E141, #825), like a chat: its row leaves the Actions.
|