@anchrd/colab-sdk 0.1.53 → 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 -23
- package/dist/actions/actions.js +21 -6
- 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 -10
- package/dist/flows/flows.js +5 -4
- package/dist/gadgets/gadgets.d.ts +4 -21
- package/dist/gadgets/gadgets.js +6 -6
- 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 -5
- 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 +57 -3
- 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 +11 -12
- package/dist/sdk.js +11 -12
- package/dist/skills/skills.d.ts +1 -0
- package/dist/sources/sources.d.ts +4 -13
- package/dist/sources/sources.js +4 -4
- 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/boards/boards.d.ts
CHANGED
|
@@ -5,11 +5,6 @@ export declare const TaskId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
|
5
5
|
export type TaskId = z.infer<typeof TaskId>;
|
|
6
6
|
export declare const LabelId: z.ZodTemplateLiteral<`label_${string}`>;
|
|
7
7
|
export type LabelId = z.infer<typeof LabelId>;
|
|
8
|
-
export declare const boardKinds: readonly ["board"];
|
|
9
|
-
export declare const BoardKind: z.ZodEnum<{
|
|
10
|
-
board: "board";
|
|
11
|
-
}>;
|
|
12
|
-
export type BoardKind = z.infer<typeof BoardKind>;
|
|
13
8
|
export declare const BoardCreateInput: z.ZodObject<{
|
|
14
9
|
parentId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
15
10
|
section: z.ZodOptional<z.ZodEnum<{
|
|
@@ -86,9 +81,6 @@ export type BoardGetInput = z.infer<typeof BoardGetInput>;
|
|
|
86
81
|
export declare const BoardUpdateInput: z.ZodObject<{
|
|
87
82
|
boardId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
88
83
|
rev: z.ZodNumber;
|
|
89
|
-
kind: z.ZodOptional<z.ZodEnum<{
|
|
90
|
-
board: "board";
|
|
91
|
-
}>>;
|
|
92
84
|
instruction: z.ZodOptional<z.ZodString>;
|
|
93
85
|
columns: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
94
86
|
columnId: z.ZodOptional<z.ZodTemplateLiteral<`column_${string}`>>;
|
|
@@ -181,7 +173,6 @@ export declare const BoardDetail: z.ZodObject<{
|
|
|
181
173
|
name: z.ZodString;
|
|
182
174
|
kind: z.ZodEnum<{
|
|
183
175
|
board: "board";
|
|
184
|
-
process: "process";
|
|
185
176
|
}>;
|
|
186
177
|
instruction: z.ZodNullable<z.ZodString>;
|
|
187
178
|
columns: z.ZodArray<z.ZodObject<{
|
|
@@ -258,7 +249,6 @@ export declare const compactTaskLimit = 50;
|
|
|
258
249
|
export declare const maxBulkTasks = 100;
|
|
259
250
|
export declare const BoardTaskListInput: z.ZodObject<{
|
|
260
251
|
boardId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
261
|
-
runId: z.ZodOptional<z.ZodTemplateLiteral<`run_${string}`>>;
|
|
262
252
|
columnId: z.ZodOptional<z.ZodTemplateLiteral<`column_${string}`>>;
|
|
263
253
|
type: z.ZodOptional<z.ZodEnum<{
|
|
264
254
|
archive: "archive";
|
|
@@ -412,7 +402,6 @@ export declare const TaskImage: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
412
402
|
export type TaskImage = z.infer<typeof TaskImage>;
|
|
413
403
|
export declare const BoardTaskItem: z.ZodObject<{
|
|
414
404
|
taskId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
415
|
-
runId: z.ZodNullable<z.ZodTemplateLiteral<`run_${string}`>>;
|
|
416
405
|
title: z.ZodString;
|
|
417
406
|
column: z.ZodObject<{
|
|
418
407
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
@@ -490,7 +479,6 @@ export type BoardTaskItem = z.infer<typeof BoardTaskItem>;
|
|
|
490
479
|
export declare const BoardTaskList: z.ZodObject<{
|
|
491
480
|
items: z.ZodArray<z.ZodObject<{
|
|
492
481
|
taskId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
493
|
-
runId: z.ZodNullable<z.ZodTemplateLiteral<`run_${string}`>>;
|
|
494
482
|
title: z.ZodString;
|
|
495
483
|
column: z.ZodObject<{
|
|
496
484
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
@@ -679,7 +667,6 @@ export type TaskRule = z.infer<typeof TaskRule>;
|
|
|
679
667
|
export declare const TaskDetail: z.ZodObject<{
|
|
680
668
|
taskId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
681
669
|
boardId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
682
|
-
runId: z.ZodNullable<z.ZodTemplateLiteral<`run_${string}`>>;
|
|
683
670
|
title: z.ZodString;
|
|
684
671
|
content: z.ZodString;
|
|
685
672
|
column: z.ZodObject<{
|
|
@@ -726,7 +713,6 @@ export declare const TaskDetail: z.ZodObject<{
|
|
|
726
713
|
name: z.ZodString;
|
|
727
714
|
boardKind: z.ZodEnum<{
|
|
728
715
|
board: "board";
|
|
729
|
-
process: "process";
|
|
730
716
|
}>;
|
|
731
717
|
}, z.core.$strip>;
|
|
732
718
|
tasks: z.ZodArray<z.ZodObject<{
|
package/dist/boards/boards.js
CHANGED
|
@@ -20,15 +20,6 @@ export const TaskId = idSchema("node").describe("The task's id, its node id `nod
|
|
|
20
20
|
export const LabelId = z
|
|
21
21
|
.templateLiteral([z.literal("label"), z.literal("_"), ulid])
|
|
22
22
|
.describe("A label of this board, `label_…`, as intelligence_board_get returned it.");
|
|
23
|
-
// A run of a process (#43). The same id `runs.ts` names `RunId`; written here again because
|
|
24
|
-
// `runs.ts` builds on this file and the graph between the files stays acyclic (trap C009).
|
|
25
|
-
const RunRef = idSchema("run");
|
|
26
|
-
// What a caller makes a board (#43, #847): a board. The kind process is switched off (E139); a process
|
|
27
|
-
// from before stays readable and is turned back into a board, never made anew.
|
|
28
|
-
export const boardKinds = ["board"];
|
|
29
|
-
export const BoardKind = z
|
|
30
|
-
.enum(boardKinds)
|
|
31
|
-
.describe("board: a board people work on. A process from before goals is made a board again with it; no board becomes a process any more, a goal does what a process did.");
|
|
32
23
|
const Name = z.string().max(200);
|
|
33
24
|
// A column's description (#624), Markdown for every AI working on the board.
|
|
34
25
|
const ColumnDescription = z.string().max(20_000);
|
|
@@ -63,7 +54,6 @@ const BoardInstruction = z.string().max(200_000);
|
|
|
63
54
|
export const BoardUpdateInput = z.strictObject({
|
|
64
55
|
boardId: BoardId,
|
|
65
56
|
rev: Rev,
|
|
66
|
-
kind: BoardKind.optional().describe("Make a process from before goals a board again. Its runs stay readable with intelligence_run_list."),
|
|
67
57
|
instruction: BoardInstruction.optional().describe("The board's instruction, Markdown: what the board is about and how every AI working on it goes about it. It comes along with every read of the board and its tasks over MCP, as only its digest where the read sends that digest under known. An empty text removes it; leaving it out keeps it."),
|
|
68
58
|
columns: Columns.optional(),
|
|
69
59
|
cardKinds: CardKindsInput.optional(),
|
|
@@ -113,7 +103,6 @@ export const compactTaskLimit = 50;
|
|
|
113
103
|
export const maxBulkTasks = 100;
|
|
114
104
|
export const BoardTaskListInput = z.strictObject({
|
|
115
105
|
boardId: BoardId,
|
|
116
|
-
runId: RunRef.optional().describe("The run of a process from before goals whose tasks and columns to read, as intelligence_run_list names it. Leaving it out lists the board itself."),
|
|
117
106
|
columnId: ColumnId.optional().describe("Only the tasks in this column."),
|
|
118
107
|
type: ColumnType.optional().describe("Only the tasks in columns of this type. The archive column's tasks are listed only with type archive."),
|
|
119
108
|
assigneeId: idSchema("user").optional().describe("Only the tasks assigned to this person."),
|
|
@@ -123,7 +112,7 @@ export const BoardTaskListInput = z.strictObject({
|
|
|
123
112
|
taskIds: z
|
|
124
113
|
.preprocess((value) => (typeof value === "string" ? value.split(",") : value), z.array(TaskId).min(1).max(maxBulkTasks))
|
|
125
114
|
.optional()
|
|
126
|
-
.describe("Only these tasks of the board
|
|
115
|
+
.describe("Only these tasks of the board, 1 to 100, also from the archive column: one you cannot read or that is not there is left out without a note."),
|
|
127
116
|
content: Flag.optional().describe("true: every task comes whole, with its dates, labels, subtask depth, readiness, images, card kind and fields, and its Markdown text as content, so you check a whole board without reading task by task. A page then holds at most 100 tasks. Without it each task is compact: taskId, title, column, assignee and rev."),
|
|
128
117
|
cursor: z
|
|
129
118
|
.string()
|
|
@@ -283,9 +272,6 @@ export const TaskImage = z.union([
|
|
|
283
272
|
]);
|
|
284
273
|
export const BoardTaskItem = z.object({
|
|
285
274
|
taskId: NodeId,
|
|
286
|
-
// The run of a process from before goals the task belongs to, read only (#852); null for a task
|
|
287
|
-
// of the board itself.
|
|
288
|
-
runId: RunRef.nullable(),
|
|
289
275
|
title: z.string(),
|
|
290
276
|
column: TaskColumn,
|
|
291
277
|
assignee: NodePerson,
|
|
@@ -313,10 +299,10 @@ export const BoardTaskItem = z.object({
|
|
|
313
299
|
export const BoardTaskList = z.object({
|
|
314
300
|
items: z.array(BoardTaskItem),
|
|
315
301
|
nextCursor: z.string().nullable(),
|
|
316
|
-
// Over MCP only (E87, #354): the board's instruction
|
|
302
|
+
// Over MCP only (E87, #354): the board's instruction; null
|
|
317
303
|
// without one, the reference when known (E123, #677).
|
|
318
304
|
instruction: InstructionRead.optional(),
|
|
319
|
-
// Over MCP only (#624): every column of the board
|
|
305
|
+
// Over MCP only (#624): every column of the board in order, with its
|
|
320
306
|
// description, once per page.
|
|
321
307
|
columns: z.array(BoardColumn).optional(),
|
|
322
308
|
});
|
|
@@ -349,7 +335,6 @@ export const TaskRule = z.object({
|
|
|
349
335
|
export const TaskDetail = z.object({
|
|
350
336
|
taskId: NodeId,
|
|
351
337
|
boardId: NodeId,
|
|
352
|
-
runId: RunRef.nullable(),
|
|
353
338
|
title: z.string(),
|
|
354
339
|
content: z.string(),
|
|
355
340
|
column: TaskColumn,
|
|
@@ -39,6 +39,7 @@ export declare const DocumentDetail: z.ZodObject<{
|
|
|
39
39
|
items: z.ZodArray<z.ZodObject<{
|
|
40
40
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
41
41
|
name: z.ZodString;
|
|
42
|
+
process: z.ZodBoolean;
|
|
42
43
|
}, z.core.$strip>>;
|
|
43
44
|
}, z.core.$strip>;
|
|
44
45
|
content: z.ZodString;
|
|
@@ -84,6 +85,7 @@ export declare const DocumentExcerpt: z.ZodObject<{
|
|
|
84
85
|
items: z.ZodArray<z.ZodObject<{
|
|
85
86
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
86
87
|
name: z.ZodString;
|
|
88
|
+
process: z.ZodBoolean;
|
|
87
89
|
}, z.core.$strip>>;
|
|
88
90
|
}, z.core.$strip>;
|
|
89
91
|
content: z.ZodString;
|
|
@@ -2272,9 +2272,35 @@ export declare const FlowLiveServerMessage: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
2272
2272
|
}, z.core.$strip>, z.ZodObject<{
|
|
2273
2273
|
type: z.ZodLiteral<"refused">;
|
|
2274
2274
|
message: z.ZodString;
|
|
2275
|
+
code: z.ZodOptional<z.ZodEnum<{
|
|
2276
|
+
frame: "frame";
|
|
2277
|
+
}>>;
|
|
2275
2278
|
}, z.core.$strip>], "type">;
|
|
2276
2279
|
export type FlowLiveServerMessage = z.infer<typeof FlowLiveServerMessage>;
|
|
2280
|
+
export declare const flowViewportDefault: {
|
|
2281
|
+
readonly width: 1024;
|
|
2282
|
+
readonly height: 640;
|
|
2283
|
+
};
|
|
2284
|
+
export declare const flowViewportMin: {
|
|
2285
|
+
readonly width: 1024;
|
|
2286
|
+
readonly height: 480;
|
|
2287
|
+
};
|
|
2288
|
+
export declare const flowViewportMax: {
|
|
2289
|
+
readonly width: 2560;
|
|
2290
|
+
readonly height: 1600;
|
|
2291
|
+
};
|
|
2292
|
+
export declare function flowViewportOf(area: {
|
|
2293
|
+
width: number;
|
|
2294
|
+
height: number;
|
|
2295
|
+
}): {
|
|
2296
|
+
width: number;
|
|
2297
|
+
height: number;
|
|
2298
|
+
};
|
|
2277
2299
|
export declare const FlowLiveClientMessage: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2300
|
+
type: z.ZodLiteral<"size">;
|
|
2301
|
+
width: z.ZodInt;
|
|
2302
|
+
height: z.ZodInt;
|
|
2303
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2278
2304
|
type: z.ZodLiteral<"take">;
|
|
2279
2305
|
}, z.core.$strict>, z.ZodObject<{
|
|
2280
2306
|
type: z.ZodLiteral<"give">;
|
|
@@ -2282,6 +2308,10 @@ export declare const FlowLiveClientMessage: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
2282
2308
|
type: z.ZodLiteral<"click">;
|
|
2283
2309
|
x: z.ZodNumber;
|
|
2284
2310
|
y: z.ZodNumber;
|
|
2311
|
+
frame: z.ZodOptional<z.ZodObject<{
|
|
2312
|
+
width: z.ZodInt;
|
|
2313
|
+
height: z.ZodInt;
|
|
2314
|
+
}, z.core.$strict>>;
|
|
2285
2315
|
}, z.core.$strict>, z.ZodObject<{
|
|
2286
2316
|
type: z.ZodLiteral<"text">;
|
|
2287
2317
|
text: z.ZodString;
|
|
@@ -2300,6 +2330,10 @@ export declare const FlowLiveClientMessage: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
2300
2330
|
x: z.ZodNumber;
|
|
2301
2331
|
y: z.ZodNumber;
|
|
2302
2332
|
deltaY: z.ZodNumber;
|
|
2333
|
+
frame: z.ZodOptional<z.ZodObject<{
|
|
2334
|
+
width: z.ZodInt;
|
|
2335
|
+
height: z.ZodInt;
|
|
2336
|
+
}, z.core.$strict>>;
|
|
2303
2337
|
}, z.core.$strict>, z.ZodObject<{
|
|
2304
2338
|
type: z.ZodLiteral<"open">;
|
|
2305
2339
|
url: z.ZodString;
|
package/dist/flows/flow-runs.js
CHANGED
|
@@ -383,15 +383,58 @@ export const FlowLiveServerMessage = z.discriminatedUnion("type", [
|
|
|
383
383
|
// the bar only orients; the address a step opens stays whole in its `open` action.
|
|
384
384
|
z.object({ type: z.literal("page"), url: z.string() }),
|
|
385
385
|
// A message of this socket was refused, with why (not steering, a host outside the flow's, …).
|
|
386
|
-
|
|
386
|
+
// `code: "frame"` (#1251): a click or scroll pointed into a picture of another size than the
|
|
387
|
+
// window has now; the view says so in the person's language, and nothing happened in the page.
|
|
388
|
+
z.object({
|
|
389
|
+
type: z.literal("refused"),
|
|
390
|
+
message: z.string(),
|
|
391
|
+
code: z.enum(["frame"]).optional(),
|
|
392
|
+
}),
|
|
387
393
|
]);
|
|
388
|
-
//
|
|
389
|
-
//
|
|
394
|
+
// The size of a run's browser window (#1251): 1024 x 640 without anything else; at least
|
|
395
|
+
// 1024 x 480, so a portal never turns into its phone view and a strip of an area never makes a
|
|
396
|
+
// window a few pixels high, and at most 2560 x 1600 against excessive values.
|
|
397
|
+
export const flowViewportDefault = { width: 1024, height: 640 };
|
|
398
|
+
export const flowViewportMin = { width: 1024, height: 480 };
|
|
399
|
+
export const flowViewportMax = { width: 2560, height: 1600 };
|
|
400
|
+
// The window for an area of the live view: the area itself, or, narrower than 1024, 1024 wide with
|
|
401
|
+
// the height following the area's aspect ratio; within the bounds above. A window of another aspect
|
|
402
|
+
// ratio than the area is drawn whole into it.
|
|
403
|
+
export function flowViewportOf(area) {
|
|
404
|
+
const min = flowViewportMin.width;
|
|
405
|
+
const width = Math.max(min, Math.round(area.width));
|
|
406
|
+
const height = area.width < min ? Math.round((min * area.height) / area.width) : Math.round(area.height);
|
|
407
|
+
return {
|
|
408
|
+
width: Math.min(flowViewportMax.width, width),
|
|
409
|
+
height: Math.min(flowViewportMax.height, Math.max(flowViewportMin.height, height)),
|
|
410
|
+
};
|
|
411
|
+
}
|
|
412
|
+
// The size of the picture a point was taken in (#1251), which is the window's size at that frame:
|
|
413
|
+
// a point from a picture of another size than the window has now is refused, not turned.
|
|
414
|
+
const FlowLiveFrameSize = z.strictObject({
|
|
415
|
+
width: z.int().min(flowViewportMin.width).max(flowViewportMax.width),
|
|
416
|
+
height: z.int().min(flowViewportMin.height).max(flowViewportMax.height),
|
|
417
|
+
});
|
|
418
|
+
// What a viewer sends (#1233, "Selbst steuern"), only while it steers, except `take` and `size`.
|
|
419
|
+
// Coordinates are in the pixels of the picture, the browser's window as the last frame names it.
|
|
390
420
|
export const FlowLiveClientMessage = z.discriminatedUnion("type", [
|
|
421
|
+
// The size of the area the live view draws in, in CSS pixels (#1251), on opening and after every
|
|
422
|
+
// change: the window follows it for whoever steers, or nobody steering, for the first viewer.
|
|
423
|
+
// An area may be smaller than the window's minimum (a phone): `flowViewportOf` keeps the bounds.
|
|
424
|
+
z.strictObject({
|
|
425
|
+
type: z.literal("size"),
|
|
426
|
+
width: z.int().min(1).max(flowViewportMax.width),
|
|
427
|
+
height: z.int().min(1).max(flowViewportMax.height),
|
|
428
|
+
}),
|
|
391
429
|
// Take the browser over; the AI's tools wait. And give it back; the same run goes on.
|
|
392
430
|
z.strictObject({ type: z.literal("take") }),
|
|
393
431
|
z.strictObject({ type: z.literal("give") }),
|
|
394
|
-
z.strictObject({
|
|
432
|
+
z.strictObject({
|
|
433
|
+
type: z.literal("click"),
|
|
434
|
+
x: z.number(),
|
|
435
|
+
y: z.number(),
|
|
436
|
+
frame: FlowLiveFrameSize.optional(),
|
|
437
|
+
}),
|
|
395
438
|
// Typed text, inserted where the cursor is; recorded as one fill with the field's last value.
|
|
396
439
|
z.strictObject({ type: z.literal("text"), text: z.string().min(1).max(2000) }),
|
|
397
440
|
z.strictObject({
|
|
@@ -403,6 +446,7 @@ export const FlowLiveClientMessage = z.discriminatedUnion("type", [
|
|
|
403
446
|
x: z.number(),
|
|
404
447
|
y: z.number(),
|
|
405
448
|
deltaY: z.number(),
|
|
449
|
+
frame: FlowLiveFrameSize.optional(),
|
|
406
450
|
}),
|
|
407
451
|
// An address typed into the address bar: on the flow's hosts only.
|
|
408
452
|
z.strictObject({ type: z.literal("open"), url: z.string().max(2000) }),
|
package/dist/flows/flows.d.ts
CHANGED
|
@@ -1226,11 +1226,6 @@ export declare const FlowUpdateInput: z.ZodObject<{
|
|
|
1226
1226
|
}, z.core.$strict>>;
|
|
1227
1227
|
settings: z.ZodOptional<z.ZodObject<{
|
|
1228
1228
|
responsibleId: z.ZodOptional<z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>>;
|
|
1229
|
-
level: z.ZodOptional<z.ZodEnum<{
|
|
1230
|
-
publish: "publish";
|
|
1231
|
-
draft: "draft";
|
|
1232
|
-
report: "report";
|
|
1233
|
-
}>>;
|
|
1234
1229
|
recordingDays: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<7>, z.ZodLiteral<14>, z.ZodLiteral<30>]>>;
|
|
1235
1230
|
}, z.core.$strict>>;
|
|
1236
1231
|
fromVersion: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1786,6 +1781,7 @@ export declare const FlowDetail: z.ZodObject<{
|
|
|
1786
1781
|
items: z.ZodArray<z.ZodObject<{
|
|
1787
1782
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
1788
1783
|
name: z.ZodString;
|
|
1784
|
+
process: z.ZodBoolean;
|
|
1789
1785
|
}, z.core.$strip>>;
|
|
1790
1786
|
}, z.core.$strip>;
|
|
1791
1787
|
hosts: z.ZodArray<z.ZodString>;
|
|
@@ -2290,11 +2286,6 @@ export declare const FlowDetail: z.ZodObject<{
|
|
|
2290
2286
|
human: "human";
|
|
2291
2287
|
}>>;
|
|
2292
2288
|
}, z.core.$strip>>;
|
|
2293
|
-
level: z.ZodEnum<{
|
|
2294
|
-
publish: "publish";
|
|
2295
|
-
draft: "draft";
|
|
2296
|
-
report: "report";
|
|
2297
|
-
}>;
|
|
2298
2289
|
recordingDays: z.ZodNumber;
|
|
2299
2290
|
credentials: z.ZodArray<z.ZodObject<{
|
|
2300
2291
|
name: z.ZodString;
|
|
@@ -2306,6 +2297,10 @@ export declare const FlowDetail: z.ZodObject<{
|
|
|
2306
2297
|
}, z.core.$strip>;
|
|
2307
2298
|
rev: z.ZodNumber;
|
|
2308
2299
|
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
2300
|
+
viewport: z.ZodNullable<z.ZodObject<{
|
|
2301
|
+
width: z.ZodInt;
|
|
2302
|
+
height: z.ZodInt;
|
|
2303
|
+
}, z.core.$strip>>;
|
|
2309
2304
|
}, z.core.$strip>;
|
|
2310
2305
|
export type FlowDetail = z.infer<typeof FlowDetail>;
|
|
2311
2306
|
export declare const FlowVersionContent: z.ZodObject<{
|
package/dist/flows/flows.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import {
|
|
2
|
+
import { GadgetVersionRef } from "../gadgets/gadgets.js";
|
|
3
3
|
import { idSchema } from "../ids/ids.js";
|
|
4
4
|
import { CreateSection, NodeId, NodePath, NodePerson, SecretId } from "../nodes/nodes.js";
|
|
5
5
|
import { IdempotencyKey, Rev } from "../primitives/primitives.js";
|
|
@@ -320,8 +320,7 @@ const Hosts = z
|
|
|
320
320
|
const FlowSettingsInput = z.strictObject({
|
|
321
321
|
responsibleId: UserId.nullable()
|
|
322
322
|
.optional()
|
|
323
|
-
.describe("The Operator or person who hears of a
|
|
324
|
-
level: GadgetLevel.optional().describe("How far the responsible goes: report, draft (repair as a draft, the default) or publish (repair and publish)."),
|
|
323
|
+
.describe("The Operator or person who hears of a fixed run that fails or meets an open step, takes the same run over, repairs the flow and publishes it; null for nobody, then such a run ends. Only whoever may write the flow changes it."),
|
|
325
324
|
recordingDays: RecordingDays.optional(),
|
|
326
325
|
});
|
|
327
326
|
// ---- The tools' inputs ----
|
|
@@ -457,7 +456,6 @@ export const FlowDetail = z.object({
|
|
|
457
456
|
settings: z
|
|
458
457
|
.object({
|
|
459
458
|
responsible: NodePerson.nullable(),
|
|
460
|
-
level: GadgetLevel,
|
|
461
459
|
recordingDays: z.number().int(),
|
|
462
460
|
// Names only, never values. ⚠️ Not `secrets`: `/mcp` strikes every value under such a name.
|
|
463
461
|
credentials: z.array(z.object({ name: z.string(), setAt: z.iso.datetime() })),
|
|
@@ -466,6 +464,9 @@ export const FlowDetail = z.object({
|
|
|
466
464
|
rights: z.object({ write: z.boolean() }),
|
|
467
465
|
rev: Rev,
|
|
468
466
|
archivedAt: z.iso.datetime().nullable(),
|
|
467
|
+
// The size of the run's browser window at the last recording (#1251): a fixed run opens its window
|
|
468
|
+
// in it, so recorded steps run at the size they were made at; null runs at 1024 x 640.
|
|
469
|
+
viewport: z.object({ width: z.int(), height: z.int() }).nullable(),
|
|
469
470
|
});
|
|
470
471
|
// A published version's content, the JSON `versions.content` holds: the steps as they were.
|
|
471
472
|
export const FlowVersionContent = z.object({ steps: z.array(FlowStep) });
|
|
@@ -11,6 +11,7 @@ export declare const GadgetFunction: z.ZodObject<{
|
|
|
11
11
|
description: z.ZodString;
|
|
12
12
|
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
13
|
requires: z.ZodOptional<z.ZodString>;
|
|
14
|
+
cache: z.ZodOptional<z.ZodBoolean>;
|
|
14
15
|
}, z.core.$strict>;
|
|
15
16
|
export type GadgetFunction = z.infer<typeof GadgetFunction>;
|
|
16
17
|
export declare const GadgetAccess: z.ZodObject<{
|
|
@@ -41,6 +42,7 @@ export declare const GadgetManifest: z.ZodObject<{
|
|
|
41
42
|
description: z.ZodString;
|
|
42
43
|
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
43
44
|
requires: z.ZodOptional<z.ZodString>;
|
|
45
|
+
cache: z.ZodOptional<z.ZodBoolean>;
|
|
44
46
|
}, z.core.$strict>>;
|
|
45
47
|
}, z.core.$strict>;
|
|
46
48
|
export type GadgetManifest = z.infer<typeof GadgetManifest>;
|
|
@@ -49,12 +51,6 @@ export declare const GadgetVersionRef: z.ZodPreprocess<z.ZodUnion<readonly [z.Zo
|
|
|
49
51
|
draft: "draft";
|
|
50
52
|
}>, z.ZodNumber]>, unknown>;
|
|
51
53
|
export type GadgetVersionRef = z.infer<typeof GadgetVersionRef>;
|
|
52
|
-
export declare const GadgetLevel: z.ZodEnum<{
|
|
53
|
-
publish: "publish";
|
|
54
|
-
draft: "draft";
|
|
55
|
-
report: "report";
|
|
56
|
-
}>;
|
|
57
|
-
export type GadgetLevel = z.infer<typeof GadgetLevel>;
|
|
58
54
|
export declare const gadgetLogDays: readonly [7, 14, 30];
|
|
59
55
|
export declare const GadgetCreateInput: z.ZodObject<{
|
|
60
56
|
parentId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
@@ -101,11 +97,6 @@ export declare const GadgetUpdateInput: z.ZodObject<{
|
|
|
101
97
|
files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
|
|
102
98
|
settings: z.ZodOptional<z.ZodObject<{
|
|
103
99
|
responsibleId: z.ZodOptional<z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>>;
|
|
104
|
-
level: z.ZodOptional<z.ZodEnum<{
|
|
105
|
-
publish: "publish";
|
|
106
|
-
draft: "draft";
|
|
107
|
-
report: "report";
|
|
108
|
-
}>>;
|
|
109
100
|
logDays: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<7>, z.ZodLiteral<14>, z.ZodLiteral<30>]>>;
|
|
110
101
|
uses: z.ZodOptional<z.ZodRecord<z.ZodTemplateLiteral<`node_${string}`>, z.ZodTemplateLiteral<`node_${string}`>>>;
|
|
111
102
|
original: z.ZodOptional<z.ZodNull>;
|
|
@@ -233,11 +224,6 @@ export declare const GadgetSettings: z.ZodObject<{
|
|
|
233
224
|
human: "human";
|
|
234
225
|
}>>;
|
|
235
226
|
}, z.core.$strip>>;
|
|
236
|
-
level: z.ZodEnum<{
|
|
237
|
-
publish: "publish";
|
|
238
|
-
draft: "draft";
|
|
239
|
-
report: "report";
|
|
240
|
-
}>;
|
|
241
227
|
logDays: z.ZodNumber;
|
|
242
228
|
}, z.core.$strip>;
|
|
243
229
|
export type GadgetSettings = z.infer<typeof GadgetSettings>;
|
|
@@ -415,6 +401,7 @@ export declare const GadgetDetail: z.ZodObject<{
|
|
|
415
401
|
items: z.ZodArray<z.ZodObject<{
|
|
416
402
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
417
403
|
name: z.ZodString;
|
|
404
|
+
process: z.ZodBoolean;
|
|
418
405
|
}, z.core.$strip>>;
|
|
419
406
|
}, z.core.$strip>;
|
|
420
407
|
version: z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"draft">]>>;
|
|
@@ -433,6 +420,7 @@ export declare const GadgetDetail: z.ZodObject<{
|
|
|
433
420
|
description: z.ZodString;
|
|
434
421
|
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
435
422
|
requires: z.ZodOptional<z.ZodString>;
|
|
423
|
+
cache: z.ZodOptional<z.ZodBoolean>;
|
|
436
424
|
}, z.core.$strict>>;
|
|
437
425
|
}, z.core.$strict>>;
|
|
438
426
|
files: z.ZodArray<z.ZodObject<{
|
|
@@ -584,11 +572,6 @@ export declare const GadgetDetail: z.ZodObject<{
|
|
|
584
572
|
human: "human";
|
|
585
573
|
}>>;
|
|
586
574
|
}, z.core.$strip>>;
|
|
587
|
-
level: z.ZodEnum<{
|
|
588
|
-
publish: "publish";
|
|
589
|
-
draft: "draft";
|
|
590
|
-
report: "report";
|
|
591
|
-
}>;
|
|
592
575
|
logDays: z.ZodNumber;
|
|
593
576
|
}, z.core.$strip>>;
|
|
594
577
|
rights: z.ZodObject<{
|
package/dist/gadgets/gadgets.js
CHANGED
|
@@ -48,6 +48,11 @@ export const GadgetFunction = z.strictObject({
|
|
|
48
48
|
.optional()
|
|
49
49
|
.describe("A JSON Schema of the function's input, an object; Colab checks every call against it. Leaving it out takes any object."),
|
|
50
50
|
requires: GadgetRequires.optional(),
|
|
51
|
+
// #1274, E282: the page keeps the last answer of `load` in the browser, only where this says so.
|
|
52
|
+
cache: z
|
|
53
|
+
.boolean()
|
|
54
|
+
.optional()
|
|
55
|
+
.describe("true for a function that only reads: the screen's load shows its last answer from the browser at once, then the fresh one. Never for a function that writes."),
|
|
51
56
|
});
|
|
52
57
|
// Rights per person over a service of Access (#790, E162): the gadget names a service an admin set
|
|
53
58
|
// up, and every function names the function of that service it requires.
|
|
@@ -72,9 +77,6 @@ export const GadgetManifest = z.strictObject({
|
|
|
72
77
|
// Which state of the gadget: the live version, the draft, or a published version by its number.
|
|
73
78
|
// Over REST the query string carries text, so digits become the number here.
|
|
74
79
|
export const GadgetVersionRef = z.preprocess((value) => (typeof value === "string" && /^[1-9][0-9]{0,8}$/.test(value) ? Number(value) : value), z.union([z.enum(["live", "draft"]), z.number().int().min(1)]));
|
|
75
|
-
// Who answers for errors and red tests, and how far they may go (Nodes › Gadget › Einstellungen):
|
|
76
|
-
// only report, repair as a draft (the default), or repair and publish.
|
|
77
|
-
export const GadgetLevel = z.enum(["report", "draft", "publish"]);
|
|
78
80
|
export const gadgetLogDays = [7, 14, 30];
|
|
79
81
|
const LogDays = z
|
|
80
82
|
.union([z.literal(7), z.literal(14), z.literal(30)])
|
|
@@ -133,8 +135,7 @@ export const GadgetGetInput = z.strictObject({
|
|
|
133
135
|
const GadgetSettingsInput = z.strictObject({
|
|
134
136
|
responsibleId: UserId.nullable()
|
|
135
137
|
.optional()
|
|
136
|
-
.describe("The Operator or person who gets every new error and red test as an Action; null for nobody, then the publisher gets a hint."),
|
|
137
|
-
level: GadgetLevel.optional().describe("How far the responsible goes: report, draft (repair as a draft, the default) or publish (repair and publish, only with every test green and no new rights)."),
|
|
138
|
+
.describe("The Operator or person who gets every new error and red test as an Action, repairs it and publishes the repair (only with every test green and no new rights); null for nobody, then the publisher gets a hint. Only whoever may write the gadget changes it."),
|
|
138
139
|
logDays: LogDays.optional(),
|
|
139
140
|
uses: z
|
|
140
141
|
.record(NodeId, NodeId)
|
|
@@ -265,7 +266,6 @@ export const GadgetDiffFile = GadgetChange.extend({
|
|
|
265
266
|
});
|
|
266
267
|
export const GadgetSettings = z.object({
|
|
267
268
|
responsible: NodePerson.nullable(),
|
|
268
|
-
level: GadgetLevel,
|
|
269
269
|
logDays: z.number().int(),
|
|
270
270
|
});
|
|
271
271
|
// One use of the `colab` binding during a call: which tool, how long, and the error code it answered
|
package/dist/goals/goals.d.ts
CHANGED
|
@@ -703,6 +703,7 @@ export declare const GoalDetail: z.ZodObject<{
|
|
|
703
703
|
items: z.ZodArray<z.ZodObject<{
|
|
704
704
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
705
705
|
name: z.ZodString;
|
|
706
|
+
process: z.ZodBoolean;
|
|
706
707
|
}, z.core.$strip>>;
|
|
707
708
|
}, z.core.$strip>;
|
|
708
709
|
content: z.ZodString;
|
package/dist/goals/goals.js
CHANGED
|
@@ -13,7 +13,7 @@ import { UserId } from "../users/users.js";
|
|
|
13
13
|
// the line like on a card, the goal itself below it in Markdown. A run is an object of its own at the
|
|
14
14
|
// goal, frozen once it ends.
|
|
15
15
|
export const GoalId = NodeId.describe("The goal's id, a `node_…` of kind goal.");
|
|
16
|
-
// A run of a goal is the resource `run` (`run_…`) like a run of a
|
|
16
|
+
// A run of a goal is the resource `run` (`run_…`) like a run of a source or a flow; defined here, not
|
|
17
17
|
// imported from `runs.ts`, which `versions.ts` reaches through this file.
|
|
18
18
|
const RunId = idSchema("run").describe("The run's id, `run_…`, as intelligence_goal_run_list names it.");
|
|
19
19
|
export const goalPlannings = ["short", "detailed"];
|
|
@@ -36,7 +36,7 @@ const MaxHours = z
|
|
|
36
36
|
.min(1)
|
|
37
37
|
.max(24 * 90)
|
|
38
38
|
.describe("How long one run may take at most, in hours; a run past it ends as missed.");
|
|
39
|
-
const Rhythm = Schedule.describe("When a run starts, on the rhythm's clock: daily, weekly, monthly or on dates
|
|
39
|
+
const Rhythm = Schedule.describe("When a run starts, on the rhythm's clock: daily, weekly, monthly or on dates; whileOpen does not apply, because a moment that falls due while a run is open is always skipped. manual or null starts runs only by hand.");
|
|
40
40
|
// The fields above the line. Every one optional on a change: only what is sent changes.
|
|
41
41
|
const GoalFieldsInput = {
|
|
42
42
|
operatorId: UserId.nullable()
|
|
@@ -49,9 +49,8 @@ export declare const resources: {
|
|
|
49
49
|
readonly organisation: "organisations";
|
|
50
50
|
readonly home: "homes";
|
|
51
51
|
readonly job: "jobs";
|
|
52
|
-
readonly type: "types";
|
|
53
|
-
readonly relation: "relations";
|
|
54
52
|
readonly conversation: "conversations";
|
|
53
|
+
readonly process: "processes";
|
|
55
54
|
};
|
|
56
55
|
export declare const actions: readonly ["list", "get", "create", "update", "archive", "restore", "purge"];
|
|
57
56
|
export declare const verbs: readonly ["invite", "resend", "disable", "enable", "rotate", "share", "move", "start", "complete", "test", "revoke", "remove", "unlock", "publish", "schedule", "unpublish", "cancel", "describe"];
|
package/dist/grammar/grammar.js
CHANGED
|
@@ -112,17 +112,15 @@ export const resources = {
|
|
|
112
112
|
// how far it is, `_list` the person's jobs still running. Only a person in the browser starts or
|
|
113
113
|
// reads one; no AI (D124). Decided by the orchestrator.
|
|
114
114
|
job: "jobs",
|
|
115
|
-
// The ontology (#1124, E250): a type describes what something is (an object, a relation, an action
|
|
116
|
-
// or an actor), `intelligence_type_*`, and changing types is a right of its own
|
|
117
|
-
// (`intelligence / type / update`). A relation connects two things, computed from a rule or set by
|
|
118
|
-
// somebody, `intelligence_relation_*`; "Beziehung" in the UI. Not `link`, which is the public link.
|
|
119
|
-
// Both named by the ticket.
|
|
120
|
-
type: "types",
|
|
121
|
-
relation: "relations",
|
|
122
115
|
// A person's conversation with one of their personal Operators (E267, #1212, Funktionen ›
|
|
123
116
|
// KI-Chat): `operator_conversation_*`. Not `chat`, a node's chat in `intelligence`. Confirmed by the
|
|
124
117
|
// orchestrator.
|
|
125
118
|
conversation: "conversations",
|
|
119
|
+
// A folder that is a process (#1258, Nodes › Ordner › Prozess): steps, actors, actions with a start
|
|
120
|
+
// and connections, a micro per action, a draft and versions, `intelligence_process_*`. Not `run`
|
|
121
|
+
// (a run of a goal or flow), not `flow` (a browser's steps), not `board`, and not `action`, `step`, `link` or `connection`, which name other things.
|
|
122
|
+
// Named by the ticket.
|
|
123
|
+
process: "processes",
|
|
126
124
|
};
|
|
127
125
|
// The closed list of actions with a route of their own shape.
|
|
128
126
|
export const actions = ["list", "get", "create", "update", "archive", "restore", "purge"];
|
package/dist/home/home.d.ts
CHANGED
|
@@ -85,6 +85,7 @@ export declare const Home: z.ZodObject<{
|
|
|
85
85
|
items: z.ZodArray<z.ZodObject<{
|
|
86
86
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
87
87
|
name: z.ZodString;
|
|
88
|
+
process: z.ZodBoolean;
|
|
88
89
|
}, z.core.$strip>>;
|
|
89
90
|
}, z.core.$strip>;
|
|
90
91
|
version: z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"draft">]>>;
|
|
@@ -103,6 +104,7 @@ export declare const Home: z.ZodObject<{
|
|
|
103
104
|
description: z.ZodString;
|
|
104
105
|
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
105
106
|
requires: z.ZodOptional<z.ZodString>;
|
|
107
|
+
cache: z.ZodOptional<z.ZodBoolean>;
|
|
106
108
|
}, z.core.$strict>>;
|
|
107
109
|
}, z.core.$strict>>;
|
|
108
110
|
files: z.ZodArray<z.ZodObject<{
|
|
@@ -254,11 +256,6 @@ export declare const Home: z.ZodObject<{
|
|
|
254
256
|
human: "human";
|
|
255
257
|
}>>;
|
|
256
258
|
}, z.core.$strip>>;
|
|
257
|
-
level: z.ZodEnum<{
|
|
258
|
-
publish: "publish";
|
|
259
|
-
draft: "draft";
|
|
260
|
-
report: "report";
|
|
261
|
-
}>;
|
|
262
259
|
logDays: z.ZodNumber;
|
|
263
260
|
}, z.core.$strip>>;
|
|
264
261
|
rights: z.ZodObject<{
|
package/dist/links/links.d.ts
CHANGED
|
@@ -79,6 +79,7 @@ export declare const gadgetLinkLimits: {
|
|
|
79
79
|
readonly linkDay: 2000;
|
|
80
80
|
};
|
|
81
81
|
export declare const gadgetLinkPath = "/l";
|
|
82
|
+
export declare const gadgetLinkOpens: readonly ["password", "mail", "account"];
|
|
82
83
|
export declare const GadgetLinkCreateInput: z.ZodObject<{
|
|
83
84
|
gadgetId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
84
85
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -89,6 +90,7 @@ export declare const GadgetLinkCreateInput: z.ZodObject<{
|
|
|
89
90
|
opensWith: z.ZodOptional<z.ZodEnum<{
|
|
90
91
|
mail: "mail";
|
|
91
92
|
password: "password";
|
|
93
|
+
account: "account";
|
|
92
94
|
}>>;
|
|
93
95
|
functions: z.ZodArray<z.ZodString>;
|
|
94
96
|
expiresInDays: z.ZodOptional<z.ZodNumber>;
|
|
@@ -121,6 +123,7 @@ export declare const GadgetLink: z.ZodObject<{
|
|
|
121
123
|
opensWith: z.ZodNullable<z.ZodEnum<{
|
|
122
124
|
mail: "mail";
|
|
123
125
|
password: "password";
|
|
126
|
+
account: "account";
|
|
124
127
|
}>>;
|
|
125
128
|
url: z.ZodString;
|
|
126
129
|
functions: z.ZodArray<z.ZodString>;
|
|
@@ -158,6 +161,7 @@ export declare const GadgetLinkList: z.ZodObject<{
|
|
|
158
161
|
opensWith: z.ZodNullable<z.ZodEnum<{
|
|
159
162
|
mail: "mail";
|
|
160
163
|
password: "password";
|
|
164
|
+
account: "account";
|
|
161
165
|
}>>;
|
|
162
166
|
url: z.ZodString;
|
|
163
167
|
functions: z.ZodArray<z.ZodString>;
|
|
@@ -196,6 +200,7 @@ export declare const GadgetLinkVisitInput: z.ZodObject<{
|
|
|
196
200
|
address: z.ZodOptional<z.ZodEmail>;
|
|
197
201
|
code: z.ZodOptional<z.ZodString>;
|
|
198
202
|
turnstile: z.ZodOptional<z.ZodString>;
|
|
203
|
+
entry: z.ZodOptional<z.ZodString>;
|
|
199
204
|
}, z.core.$strict>;
|
|
200
205
|
export type GadgetLinkVisitInput = z.infer<typeof GadgetLinkVisitInput>;
|
|
201
206
|
export declare const GadgetLinkCodeInput: z.ZodObject<{
|
|
@@ -204,16 +209,23 @@ export declare const GadgetLinkCodeInput: z.ZodObject<{
|
|
|
204
209
|
export type GadgetLinkCodeInput = z.infer<typeof GadgetLinkCodeInput>;
|
|
205
210
|
export declare const GadgetLinkVisit: z.ZodObject<{
|
|
206
211
|
visit: z.ZodString;
|
|
212
|
+
leave: z.ZodOptional<z.ZodString>;
|
|
207
213
|
expiresAt: z.ZodISODateTime;
|
|
208
214
|
gadget: z.ZodObject<{
|
|
209
215
|
name: z.ZodString;
|
|
210
216
|
files: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
211
217
|
}, z.core.$strip>;
|
|
212
|
-
viewer: z.ZodObject<{
|
|
218
|
+
viewer: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
213
219
|
kind: z.ZodLiteral<"external">;
|
|
214
220
|
linkId: z.ZodString;
|
|
215
221
|
rights: z.ZodArray<z.ZodString>;
|
|
216
|
-
}, z.core.$strip
|
|
222
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
223
|
+
kind: z.ZodLiteral<"human">;
|
|
224
|
+
userId: z.ZodString;
|
|
225
|
+
name: z.ZodString;
|
|
226
|
+
linkId: z.ZodString;
|
|
227
|
+
rights: z.ZodArray<z.ZodString>;
|
|
228
|
+
}, z.core.$strip>], "kind">;
|
|
217
229
|
}, z.core.$strip>;
|
|
218
230
|
export type GadgetLinkVisit = z.infer<typeof GadgetLinkVisit>;
|
|
219
231
|
export declare const GadgetLinkPage: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -234,6 +246,7 @@ export declare const GadgetLinkPage: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
234
246
|
opensWith: z.ZodNullable<z.ZodEnum<{
|
|
235
247
|
mail: "mail";
|
|
236
248
|
password: "password";
|
|
249
|
+
account: "account";
|
|
237
250
|
}>>;
|
|
238
251
|
gadgetName: z.ZodString;
|
|
239
252
|
linkName: z.ZodString;
|