@anchrd/colab-sdk 0.1.36 → 0.1.38
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/actions/actions.d.ts +34 -23
- package/dist/actions/actions.js +5 -2
- package/dist/archive/archive.d.ts +1 -0
- package/dist/archive/archive.js +3 -0
- package/dist/boards/boards.d.ts +21 -21
- package/dist/columns/columns.d.ts +2 -2
- package/dist/connectors/connectors.d.ts +6 -6
- package/dist/crawls/crawls.d.ts +3 -3
- package/dist/error/error.d.ts +9 -3
- package/dist/error/error.js +12 -3
- package/dist/gadgets/gadgets.d.ts +147 -9
- package/dist/gadgets/gadgets.js +156 -0
- package/dist/goals/goals.d.ts +56 -10
- package/dist/goals/goals.js +36 -7
- package/dist/grammar/grammar.d.ts +2 -0
- package/dist/grammar/grammar.js +10 -0
- package/dist/home/home.d.ts +312 -0
- package/dist/home/home.js +53 -0
- package/dist/links/links.d.ts +166 -0
- package/dist/links/links.js +149 -0
- package/dist/mcps/mcps.d.ts +3 -3
- package/dist/messages/messages.d.ts +26 -0
- package/dist/messages/messages.js +33 -0
- package/dist/nodes/nodes.d.ts +46 -20
- package/dist/nodes/nodes.js +11 -3
- package/dist/operators/operators.d.ts +737 -47
- package/dist/operators/operators.js +388 -71
- package/dist/organisation/organisation.d.ts +2 -0
- package/dist/organisation/organisation.js +9 -0
- package/dist/primitives/primitives.d.ts +9 -0
- package/dist/primitives/primitives.js +16 -0
- package/dist/roles/roles.d.ts +1 -0
- package/dist/roles/roles.js +3 -0
- package/dist/runs/runs.d.ts +2 -2
- package/dist/sdk.d.ts +12 -11
- package/dist/sdk.js +12 -11
- package/dist/skills/skills.d.ts +37 -7
- package/dist/skills/skills.js +50 -0
- package/dist/sources/sources.d.ts +82 -20
- package/dist/sources/sources.js +71 -12
- package/dist/tables/tables.d.ts +42 -0
- package/dist/tables/tables.js +55 -2
- package/dist/tool.d.ts +1 -0
- package/dist/tree-order/tree-order.d.ts +2 -2
- package/dist/tree-order/tree-order.js +1 -1
- package/dist/users/users.d.ts +2 -0
- package/dist/users/users.js +3 -2
- package/dist/versions/versions.d.ts +13 -13
- package/package.json +1 -1
package/dist/mcps/mcps.d.ts
CHANGED
|
@@ -340,11 +340,11 @@ export declare const McpList: z.ZodObject<{
|
|
|
340
340
|
}, z.core.$strip>;
|
|
341
341
|
export type McpList = z.infer<typeof McpList>;
|
|
342
342
|
export declare const McpCallAction: z.ZodEnum<{
|
|
343
|
+
blocked: "blocked";
|
|
343
344
|
update: "update";
|
|
344
345
|
test: "test";
|
|
345
346
|
revoke: "revoke";
|
|
346
347
|
call: "call";
|
|
347
|
-
blocked: "blocked";
|
|
348
348
|
connect: "connect";
|
|
349
349
|
signin: "signin";
|
|
350
350
|
expire: "expire";
|
|
@@ -353,11 +353,11 @@ export type McpCallAction = z.infer<typeof McpCallAction>;
|
|
|
353
353
|
export declare const McpCall: z.ZodObject<{
|
|
354
354
|
callId: z.ZodTemplateLiteral<`call_${string}`>;
|
|
355
355
|
action: z.ZodEnum<{
|
|
356
|
+
blocked: "blocked";
|
|
356
357
|
update: "update";
|
|
357
358
|
test: "test";
|
|
358
359
|
revoke: "revoke";
|
|
359
360
|
call: "call";
|
|
360
|
-
blocked: "blocked";
|
|
361
361
|
connect: "connect";
|
|
362
362
|
signin: "signin";
|
|
363
363
|
expire: "expire";
|
|
@@ -372,11 +372,11 @@ export declare const McpCallList: z.ZodObject<{
|
|
|
372
372
|
items: z.ZodArray<z.ZodObject<{
|
|
373
373
|
callId: z.ZodTemplateLiteral<`call_${string}`>;
|
|
374
374
|
action: z.ZodEnum<{
|
|
375
|
+
blocked: "blocked";
|
|
375
376
|
update: "update";
|
|
376
377
|
test: "test";
|
|
377
378
|
revoke: "revoke";
|
|
378
379
|
call: "call";
|
|
379
|
-
blocked: "blocked";
|
|
380
380
|
connect: "connect";
|
|
381
381
|
signin: "signin";
|
|
382
382
|
expire: "expire";
|
|
@@ -2,23 +2,29 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const MessageId: z.ZodTemplateLiteral<`message_${string}`>;
|
|
3
3
|
export type MessageId = z.infer<typeof MessageId>;
|
|
4
4
|
export declare const messageMaxLength = 10000;
|
|
5
|
+
export declare const topicMaxLength = 60;
|
|
6
|
+
export declare const TopicName: z.ZodString;
|
|
7
|
+
export declare function topicOf(name: string): string | null;
|
|
5
8
|
export declare const MessageListInput: z.ZodObject<{
|
|
6
9
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
7
10
|
cursor: z.ZodOptional<z.ZodString>;
|
|
8
11
|
after: z.ZodOptional<z.ZodTemplateLiteral<`message_${string}`>>;
|
|
9
12
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
13
|
+
topic: z.ZodOptional<z.ZodString>;
|
|
10
14
|
}, z.core.$strict>;
|
|
11
15
|
export type MessageListInput = z.infer<typeof MessageListInput>;
|
|
12
16
|
export declare const MessageCreateInput: z.ZodObject<{
|
|
13
17
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
14
18
|
text: z.ZodString;
|
|
15
19
|
mentions: z.ZodOptional<z.ZodArray<z.ZodTemplateLiteral<`user_${string}`>>>;
|
|
20
|
+
topic: z.ZodOptional<z.ZodString>;
|
|
16
21
|
idempotencyKey: z.ZodString;
|
|
17
22
|
}, z.core.$strict>;
|
|
18
23
|
export type MessageCreateInput = z.infer<typeof MessageCreateInput>;
|
|
19
24
|
export declare const ChatUpdateInput: z.ZodObject<{
|
|
20
25
|
chatId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
21
26
|
readUntil: z.ZodTemplateLiteral<`message_${string}`>;
|
|
27
|
+
topic: z.ZodOptional<z.ZodString>;
|
|
22
28
|
}, z.core.$strict>;
|
|
23
29
|
export type ChatUpdateInput = z.infer<typeof ChatUpdateInput>;
|
|
24
30
|
export declare const MessageAuthor: z.ZodObject<{
|
|
@@ -37,6 +43,7 @@ export declare const MessageAuthor: z.ZodObject<{
|
|
|
37
43
|
claude: "claude";
|
|
38
44
|
codex: "codex";
|
|
39
45
|
gemini: "gemini";
|
|
46
|
+
gateway: "gateway";
|
|
40
47
|
}>>;
|
|
41
48
|
}, z.core.$strip>>;
|
|
42
49
|
appHandle: z.ZodNullable<z.ZodString>;
|
|
@@ -46,6 +53,7 @@ export declare const Message: z.ZodObject<{
|
|
|
46
53
|
messageId: z.ZodTemplateLiteral<`message_${string}`>;
|
|
47
54
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
48
55
|
text: z.ZodString;
|
|
56
|
+
topic: z.ZodNullable<z.ZodString>;
|
|
49
57
|
author: z.ZodObject<{
|
|
50
58
|
userId: z.ZodString;
|
|
51
59
|
name: z.ZodNullable<z.ZodString>;
|
|
@@ -62,6 +70,7 @@ export declare const Message: z.ZodObject<{
|
|
|
62
70
|
claude: "claude";
|
|
63
71
|
codex: "codex";
|
|
64
72
|
gemini: "gemini";
|
|
73
|
+
gateway: "gateway";
|
|
65
74
|
}>>;
|
|
66
75
|
}, z.core.$strip>>;
|
|
67
76
|
appHandle: z.ZodNullable<z.ZodString>;
|
|
@@ -73,11 +82,20 @@ export declare const Message: z.ZodObject<{
|
|
|
73
82
|
createdAt: z.ZodISODateTime;
|
|
74
83
|
}, z.core.$strip>;
|
|
75
84
|
export type Message = z.infer<typeof Message>;
|
|
85
|
+
export declare const ChatTopic: z.ZodObject<{
|
|
86
|
+
topic: z.ZodNullable<z.ZodString>;
|
|
87
|
+
messageCount: z.ZodNumber;
|
|
88
|
+
lastMessageAt: z.ZodISODateTime;
|
|
89
|
+
unreadCount: z.ZodNumber;
|
|
90
|
+
mentioned: z.ZodBoolean;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
export type ChatTopic = z.infer<typeof ChatTopic>;
|
|
76
93
|
export declare const MessageList: z.ZodObject<{
|
|
77
94
|
items: z.ZodArray<z.ZodObject<{
|
|
78
95
|
messageId: z.ZodTemplateLiteral<`message_${string}`>;
|
|
79
96
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
80
97
|
text: z.ZodString;
|
|
98
|
+
topic: z.ZodNullable<z.ZodString>;
|
|
81
99
|
author: z.ZodObject<{
|
|
82
100
|
userId: z.ZodString;
|
|
83
101
|
name: z.ZodNullable<z.ZodString>;
|
|
@@ -94,6 +112,7 @@ export declare const MessageList: z.ZodObject<{
|
|
|
94
112
|
claude: "claude";
|
|
95
113
|
codex: "codex";
|
|
96
114
|
gemini: "gemini";
|
|
115
|
+
gateway: "gateway";
|
|
97
116
|
}>>;
|
|
98
117
|
}, z.core.$strip>>;
|
|
99
118
|
appHandle: z.ZodNullable<z.ZodString>;
|
|
@@ -107,6 +126,13 @@ export declare const MessageList: z.ZodObject<{
|
|
|
107
126
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
108
127
|
unreadCount: z.ZodNumber;
|
|
109
128
|
readUntil: z.ZodNullable<z.ZodTemplateLiteral<`message_${string}`>>;
|
|
129
|
+
topics: z.ZodArray<z.ZodObject<{
|
|
130
|
+
topic: z.ZodNullable<z.ZodString>;
|
|
131
|
+
messageCount: z.ZodNumber;
|
|
132
|
+
lastMessageAt: z.ZodISODateTime;
|
|
133
|
+
unreadCount: z.ZodNumber;
|
|
134
|
+
mentioned: z.ZodBoolean;
|
|
135
|
+
}, z.core.$strip>>;
|
|
110
136
|
}, z.core.$strip>;
|
|
111
137
|
export type MessageList = z.infer<typeof MessageList>;
|
|
112
138
|
export declare const ChatRead: z.ZodObject<{
|
|
@@ -11,6 +11,21 @@ import { MessageMachine } from "../users/users.js";
|
|
|
11
11
|
export const MessageId = idSchema("message").describe("A message's id, `message_…`, as intelligence_message_list returns it.");
|
|
12
12
|
// What a message may hold, in characters of Markdown.
|
|
13
13
|
export const messageMaxLength = 10_000;
|
|
14
|
+
// A topic's name (#994, E223). Every message belongs to exactly one topic; the general one ("Allgemein")
|
|
15
|
+
// has no stored name and reads as null. An empty text, "Allgemein" or "General" mean it, any case:
|
|
16
|
+
// `topicOf` says so. No transform here, so the input stays a JSON schema (`z.toJSONSchema`).
|
|
17
|
+
export const topicMaxLength = 60;
|
|
18
|
+
const generalNames = new Set(["", "allgemein", "general"]);
|
|
19
|
+
export const TopicName = z
|
|
20
|
+
.string()
|
|
21
|
+
.trim()
|
|
22
|
+
.max(topicMaxLength)
|
|
23
|
+
.refine((name) => !name.startsWith("#"), "A topic's name starts without #.");
|
|
24
|
+
// The stored name of a topic as given: null for the general one.
|
|
25
|
+
export function topicOf(name) {
|
|
26
|
+
const trimmed = name.trim();
|
|
27
|
+
return generalNames.has(trimmed.toLowerCase()) ? null : trimmed;
|
|
28
|
+
}
|
|
14
29
|
export const MessageListInput = z.strictObject({
|
|
15
30
|
nodeId: NodeId.describe("The node whose chat to read: any node you can read except a folder, which has no chat."),
|
|
16
31
|
cursor: z
|
|
@@ -20,6 +35,7 @@ export const MessageListInput = z.strictObject({
|
|
|
20
35
|
.describe("The nextCursor of the previous page, unchanged, for the messages before it. Leaving it out starts with the newest."),
|
|
21
36
|
after: MessageId.optional().describe("Only the messages after this one, oldest first, to poll for what is new. A full page means there may be more: ask again with the last id. Not together with cursor."),
|
|
22
37
|
limit: PageSize.optional().describe("How many messages one page holds, 1 to 100. Leaving it out gives 50."),
|
|
38
|
+
topic: TopicName.optional().describe("Only the messages of this topic, as topics names it; an empty text reads the general topic (Allgemein). Leaving it out reads every topic. Read topics first, then only the one you need."),
|
|
23
39
|
});
|
|
24
40
|
export const MessageCreateInput = z.strictObject({
|
|
25
41
|
nodeId: NodeId.describe("The node whose chat to write in: any node you can read except a folder. Reading is enough to write."),
|
|
@@ -34,11 +50,13 @@ export const MessageCreateInput = z.strictObject({
|
|
|
34
50
|
.max(50)
|
|
35
51
|
.optional()
|
|
36
52
|
.describe("The people and machines this message mentions, `user_…`; they see the chat in their Actions. Only someone who can read the node: find them with intelligence_user_list and readersOnly. One who cannot read it refuses the whole message."),
|
|
53
|
+
topic: TopicName.optional().describe("The topic the message belongs to, at most 60 characters: one of the topics intelligence_message_list names, or a new one, which starts with this message. Leaving it out writes in the general topic (Allgemein). Keep to the topic the conversation is in."),
|
|
37
54
|
idempotencyKey: IdempotencyKey,
|
|
38
55
|
});
|
|
39
56
|
export const ChatUpdateInput = z.strictObject({
|
|
40
57
|
chatId: NodeId.describe("The chat to mark as read: the id of its node, `node_…`."),
|
|
41
58
|
readUntil: MessageId.describe("The newest message of this chat you have read. Your read state never moves back: an older one changes nothing."),
|
|
59
|
+
topic: TopicName.optional().describe("Mark only this topic as read, up to readUntil, which must be one of its messages; an empty text is the general topic. Leaving it out marks the whole chat."),
|
|
42
60
|
});
|
|
43
61
|
// Who wrote a message. A person writing in the browser has no `appHandle`; their AI writing through a
|
|
44
62
|
// connected app carries that app's name. A machine carries its kind and an Operator its provider.
|
|
@@ -56,10 +74,23 @@ export const Message = z.object({
|
|
|
56
74
|
messageId: MessageId,
|
|
57
75
|
nodeId: NodeId,
|
|
58
76
|
text: z.string(),
|
|
77
|
+
// The topic's name; null for the general topic (Allgemein, E223).
|
|
78
|
+
topic: z.string().nullable(),
|
|
59
79
|
author: MessageAuthor,
|
|
60
80
|
mentions: z.array(z.object({ userId: z.string(), name: z.string().nullable() })),
|
|
61
81
|
createdAt: z.iso.datetime(),
|
|
62
82
|
});
|
|
83
|
+
// One topic of a chat as the list names it (#994): newest activity first.
|
|
84
|
+
export const ChatTopic = z.object({
|
|
85
|
+
// null for the general topic (Allgemein).
|
|
86
|
+
topic: z.string().nullable(),
|
|
87
|
+
messageCount: z.number().int(),
|
|
88
|
+
lastMessageAt: z.iso.datetime(),
|
|
89
|
+
// The caller's own, like `unreadCount` of the chat.
|
|
90
|
+
unreadCount: z.number().int(),
|
|
91
|
+
// An unread message of this topic mentions the caller.
|
|
92
|
+
mentioned: z.boolean(),
|
|
93
|
+
});
|
|
63
94
|
export const MessageList = z.object({
|
|
64
95
|
// Oldest first, as a chat reads.
|
|
65
96
|
items: z.array(Message),
|
|
@@ -69,6 +100,8 @@ export const MessageList = z.object({
|
|
|
69
100
|
// read (the "Neu" line goes below it). The read state is kept per person and per app.
|
|
70
101
|
unreadCount: z.number().int(),
|
|
71
102
|
readUntil: MessageId.nullable(),
|
|
103
|
+
// Every topic of the chat, whatever `topic` filtered (#994).
|
|
104
|
+
topics: z.array(ChatTopic),
|
|
72
105
|
});
|
|
73
106
|
export const ChatRead = z.object({
|
|
74
107
|
chatId: NodeId,
|
package/dist/nodes/nodes.d.ts
CHANGED
|
@@ -21,6 +21,21 @@ export declare const NodeKind: z.ZodEnum<{
|
|
|
21
21
|
source: "source";
|
|
22
22
|
}>;
|
|
23
23
|
export type NodeKind = z.infer<typeof NodeKind>;
|
|
24
|
+
export declare const unknownNodeKind: "unknown";
|
|
25
|
+
export declare const NodeKindRead: z.ZodCatch<z.ZodEnum<{
|
|
26
|
+
unknown: "unknown";
|
|
27
|
+
file: "file";
|
|
28
|
+
folder: "folder";
|
|
29
|
+
document: "document";
|
|
30
|
+
table: "table";
|
|
31
|
+
board: "board";
|
|
32
|
+
task: "task";
|
|
33
|
+
gadget: "gadget";
|
|
34
|
+
goal: "goal";
|
|
35
|
+
skill: "skill";
|
|
36
|
+
source: "source";
|
|
37
|
+
}>>;
|
|
38
|
+
export type NodeKindRead = z.infer<typeof NodeKindRead>;
|
|
24
39
|
export declare const responsibleKinds: readonly ["document", "table", "file"];
|
|
25
40
|
export declare const BoardSystem: z.ZodEnum<{
|
|
26
41
|
validation: "validation";
|
|
@@ -97,7 +112,8 @@ export declare const NodePath: z.ZodObject<{
|
|
|
97
112
|
export type NodePath = z.infer<typeof NodePath>;
|
|
98
113
|
export declare const NodeListItem: z.ZodObject<{
|
|
99
114
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
100
|
-
kind: z.ZodEnum<{
|
|
115
|
+
kind: z.ZodCatch<z.ZodEnum<{
|
|
116
|
+
unknown: "unknown";
|
|
101
117
|
file: "file";
|
|
102
118
|
folder: "folder";
|
|
103
119
|
document: "document";
|
|
@@ -108,7 +124,7 @@ export declare const NodeListItem: z.ZodObject<{
|
|
|
108
124
|
goal: "goal";
|
|
109
125
|
skill: "skill";
|
|
110
126
|
source: "source";
|
|
111
|
-
}
|
|
127
|
+
}>>;
|
|
112
128
|
name: z.ZodString;
|
|
113
129
|
hidden: z.ZodBoolean;
|
|
114
130
|
rootOf: z.ZodNullable<z.ZodString>;
|
|
@@ -134,13 +150,13 @@ export declare const NodeListItem: z.ZodObject<{
|
|
|
134
150
|
sharedWith: z.ZodNumber;
|
|
135
151
|
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
136
152
|
status: z.ZodNullable<z.ZodEnum<{
|
|
137
|
-
archive: "archive";
|
|
138
153
|
backlog: "backlog";
|
|
139
154
|
open: "open";
|
|
140
155
|
progress: "progress";
|
|
141
156
|
done: "done";
|
|
142
157
|
discarded: "discarded";
|
|
143
158
|
blocked: "blocked";
|
|
159
|
+
archive: "archive";
|
|
144
160
|
}>>;
|
|
145
161
|
system: z.ZodNullable<z.ZodEnum<{
|
|
146
162
|
validation: "validation";
|
|
@@ -169,7 +185,8 @@ export type NodeListItem = z.infer<typeof NodeListItem>;
|
|
|
169
185
|
export declare const NodeList: z.ZodObject<{
|
|
170
186
|
items: z.ZodArray<z.ZodObject<{
|
|
171
187
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
172
|
-
kind: z.ZodEnum<{
|
|
188
|
+
kind: z.ZodCatch<z.ZodEnum<{
|
|
189
|
+
unknown: "unknown";
|
|
173
190
|
file: "file";
|
|
174
191
|
folder: "folder";
|
|
175
192
|
document: "document";
|
|
@@ -180,7 +197,7 @@ export declare const NodeList: z.ZodObject<{
|
|
|
180
197
|
goal: "goal";
|
|
181
198
|
skill: "skill";
|
|
182
199
|
source: "source";
|
|
183
|
-
}
|
|
200
|
+
}>>;
|
|
184
201
|
name: z.ZodString;
|
|
185
202
|
hidden: z.ZodBoolean;
|
|
186
203
|
rootOf: z.ZodNullable<z.ZodString>;
|
|
@@ -206,13 +223,13 @@ export declare const NodeList: z.ZodObject<{
|
|
|
206
223
|
sharedWith: z.ZodNumber;
|
|
207
224
|
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
208
225
|
status: z.ZodNullable<z.ZodEnum<{
|
|
209
|
-
archive: "archive";
|
|
210
226
|
backlog: "backlog";
|
|
211
227
|
open: "open";
|
|
212
228
|
progress: "progress";
|
|
213
229
|
done: "done";
|
|
214
230
|
discarded: "discarded";
|
|
215
231
|
blocked: "blocked";
|
|
232
|
+
archive: "archive";
|
|
216
233
|
}>>;
|
|
217
234
|
system: z.ZodNullable<z.ZodEnum<{
|
|
218
235
|
validation: "validation";
|
|
@@ -255,8 +272,8 @@ export declare const NodeList: z.ZodObject<{
|
|
|
255
272
|
export type NodeList = z.infer<typeof NodeList>;
|
|
256
273
|
export declare const NodeHitFoundIn: z.ZodObject<{
|
|
257
274
|
kind: z.ZodEnum<{
|
|
258
|
-
page: "page";
|
|
259
275
|
column: "column";
|
|
276
|
+
page: "page";
|
|
260
277
|
title: "title";
|
|
261
278
|
text: "text";
|
|
262
279
|
card: "card";
|
|
@@ -266,7 +283,8 @@ export declare const NodeHitFoundIn: z.ZodObject<{
|
|
|
266
283
|
export type NodeHitFoundIn = z.infer<typeof NodeHitFoundIn>;
|
|
267
284
|
export declare const NodeHit: z.ZodObject<{
|
|
268
285
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
269
|
-
kind: z.ZodEnum<{
|
|
286
|
+
kind: z.ZodCatch<z.ZodEnum<{
|
|
287
|
+
unknown: "unknown";
|
|
270
288
|
file: "file";
|
|
271
289
|
folder: "folder";
|
|
272
290
|
document: "document";
|
|
@@ -277,7 +295,7 @@ export declare const NodeHit: z.ZodObject<{
|
|
|
277
295
|
goal: "goal";
|
|
278
296
|
skill: "skill";
|
|
279
297
|
source: "source";
|
|
280
|
-
}
|
|
298
|
+
}>>;
|
|
281
299
|
name: z.ZodString;
|
|
282
300
|
path: z.ZodObject<{
|
|
283
301
|
section: z.ZodEnum<{
|
|
@@ -293,8 +311,8 @@ export declare const NodeHit: z.ZodObject<{
|
|
|
293
311
|
snippet: z.ZodString;
|
|
294
312
|
foundIn: z.ZodObject<{
|
|
295
313
|
kind: z.ZodEnum<{
|
|
296
|
-
page: "page";
|
|
297
314
|
column: "column";
|
|
315
|
+
page: "page";
|
|
298
316
|
title: "title";
|
|
299
317
|
text: "text";
|
|
300
318
|
card: "card";
|
|
@@ -303,13 +321,13 @@ export declare const NodeHit: z.ZodObject<{
|
|
|
303
321
|
}, z.core.$strip>;
|
|
304
322
|
rank: z.ZodNumber;
|
|
305
323
|
status: z.ZodNullable<z.ZodEnum<{
|
|
306
|
-
archive: "archive";
|
|
307
324
|
backlog: "backlog";
|
|
308
325
|
open: "open";
|
|
309
326
|
progress: "progress";
|
|
310
327
|
done: "done";
|
|
311
328
|
discarded: "discarded";
|
|
312
329
|
blocked: "blocked";
|
|
330
|
+
archive: "archive";
|
|
313
331
|
}>>;
|
|
314
332
|
updatedAt: z.ZodISODateTime;
|
|
315
333
|
boardKind: z.ZodNullable<z.ZodEnum<{
|
|
@@ -339,7 +357,8 @@ export type NodeHitGroup = z.infer<typeof NodeHitGroup>;
|
|
|
339
357
|
export declare const NodeSearch: z.ZodObject<{
|
|
340
358
|
items: z.ZodArray<z.ZodObject<{
|
|
341
359
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
342
|
-
kind: z.ZodEnum<{
|
|
360
|
+
kind: z.ZodCatch<z.ZodEnum<{
|
|
361
|
+
unknown: "unknown";
|
|
343
362
|
file: "file";
|
|
344
363
|
folder: "folder";
|
|
345
364
|
document: "document";
|
|
@@ -350,7 +369,7 @@ export declare const NodeSearch: z.ZodObject<{
|
|
|
350
369
|
goal: "goal";
|
|
351
370
|
skill: "skill";
|
|
352
371
|
source: "source";
|
|
353
|
-
}
|
|
372
|
+
}>>;
|
|
354
373
|
name: z.ZodString;
|
|
355
374
|
path: z.ZodObject<{
|
|
356
375
|
section: z.ZodEnum<{
|
|
@@ -366,8 +385,8 @@ export declare const NodeSearch: z.ZodObject<{
|
|
|
366
385
|
snippet: z.ZodString;
|
|
367
386
|
foundIn: z.ZodObject<{
|
|
368
387
|
kind: z.ZodEnum<{
|
|
369
|
-
page: "page";
|
|
370
388
|
column: "column";
|
|
389
|
+
page: "page";
|
|
371
390
|
title: "title";
|
|
372
391
|
text: "text";
|
|
373
392
|
card: "card";
|
|
@@ -376,13 +395,13 @@ export declare const NodeSearch: z.ZodObject<{
|
|
|
376
395
|
}, z.core.$strip>;
|
|
377
396
|
rank: z.ZodNumber;
|
|
378
397
|
status: z.ZodNullable<z.ZodEnum<{
|
|
379
|
-
archive: "archive";
|
|
380
398
|
backlog: "backlog";
|
|
381
399
|
open: "open";
|
|
382
400
|
progress: "progress";
|
|
383
401
|
done: "done";
|
|
384
402
|
discarded: "discarded";
|
|
385
403
|
blocked: "blocked";
|
|
404
|
+
archive: "archive";
|
|
386
405
|
}>>;
|
|
387
406
|
updatedAt: z.ZodISODateTime;
|
|
388
407
|
boardKind: z.ZodNullable<z.ZodEnum<{
|
|
@@ -409,8 +428,8 @@ export declare const NodeSearch: z.ZodObject<{
|
|
|
409
428
|
}, z.core.$strip>>;
|
|
410
429
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
411
430
|
semantic: z.ZodEnum<{
|
|
412
|
-
unavailable: "unavailable";
|
|
413
431
|
ok: "ok";
|
|
432
|
+
unavailable: "unavailable";
|
|
414
433
|
}>;
|
|
415
434
|
}, z.core.$strip>;
|
|
416
435
|
export type NodeSearch = z.infer<typeof NodeSearch>;
|
|
@@ -435,13 +454,13 @@ export declare const NodeValidation: z.ZodObject<{
|
|
|
435
454
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
436
455
|
name: z.ZodString;
|
|
437
456
|
type: z.ZodEnum<{
|
|
438
|
-
archive: "archive";
|
|
439
457
|
backlog: "backlog";
|
|
440
458
|
open: "open";
|
|
441
459
|
progress: "progress";
|
|
442
460
|
done: "done";
|
|
443
461
|
discarded: "discarded";
|
|
444
462
|
blocked: "blocked";
|
|
463
|
+
archive: "archive";
|
|
445
464
|
}>;
|
|
446
465
|
}, z.core.$strip>;
|
|
447
466
|
validUntil: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -471,7 +490,8 @@ export declare const NodeDetail: z.ZodObject<{
|
|
|
471
490
|
secret: z.ZodOptional<z.ZodLiteral<true>>;
|
|
472
491
|
locked: z.ZodOptional<z.ZodBoolean>;
|
|
473
492
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
474
|
-
kind: z.ZodEnum<{
|
|
493
|
+
kind: z.ZodCatch<z.ZodEnum<{
|
|
494
|
+
unknown: "unknown";
|
|
475
495
|
file: "file";
|
|
476
496
|
folder: "folder";
|
|
477
497
|
document: "document";
|
|
@@ -482,7 +502,7 @@ export declare const NodeDetail: z.ZodObject<{
|
|
|
482
502
|
goal: "goal";
|
|
483
503
|
skill: "skill";
|
|
484
504
|
source: "source";
|
|
485
|
-
}
|
|
505
|
+
}>>;
|
|
486
506
|
name: z.ZodString;
|
|
487
507
|
hidden: z.ZodBoolean;
|
|
488
508
|
rootOf: z.ZodNullable<z.ZodString>;
|
|
@@ -539,13 +559,13 @@ export declare const NodeDetail: z.ZodObject<{
|
|
|
539
559
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
540
560
|
name: z.ZodString;
|
|
541
561
|
type: z.ZodEnum<{
|
|
542
|
-
archive: "archive";
|
|
543
562
|
backlog: "backlog";
|
|
544
563
|
open: "open";
|
|
545
564
|
progress: "progress";
|
|
546
565
|
done: "done";
|
|
547
566
|
discarded: "discarded";
|
|
548
567
|
blocked: "blocked";
|
|
568
|
+
archive: "archive";
|
|
549
569
|
}>;
|
|
550
570
|
}, z.core.$strip>;
|
|
551
571
|
validUntil: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -637,6 +657,10 @@ export declare const NodeMoved: z.ZodObject<{
|
|
|
637
657
|
}>;
|
|
638
658
|
fromNodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
639
659
|
}, z.core.$strip>>;
|
|
660
|
+
alongWith: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
661
|
+
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
662
|
+
name: z.ZodString;
|
|
663
|
+
}, z.core.$strip>>>;
|
|
640
664
|
}, z.core.$strip>;
|
|
641
665
|
export type NodeMoved = z.infer<typeof NodeMoved>;
|
|
642
666
|
export declare const FolderCreateInput: z.ZodObject<{
|
|
@@ -686,6 +710,7 @@ export declare const IntelligenceUser: z.ZodObject<{
|
|
|
686
710
|
claude: "claude";
|
|
687
711
|
codex: "codex";
|
|
688
712
|
gemini: "gemini";
|
|
713
|
+
gateway: "gateway";
|
|
689
714
|
}>>;
|
|
690
715
|
}, z.core.$strip>>;
|
|
691
716
|
canRead: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -710,6 +735,7 @@ export declare const IntelligenceUserList: z.ZodObject<{
|
|
|
710
735
|
claude: "claude";
|
|
711
736
|
codex: "codex";
|
|
712
737
|
gemini: "gemini";
|
|
738
|
+
gateway: "gateway";
|
|
713
739
|
}>>;
|
|
714
740
|
}, z.core.$strip>>;
|
|
715
741
|
canRead: z.ZodOptional<z.ZodBoolean>;
|
package/dist/nodes/nodes.js
CHANGED
|
@@ -43,6 +43,11 @@ export const nodeKinds = [
|
|
|
43
43
|
"source",
|
|
44
44
|
];
|
|
45
45
|
export const NodeKind = z.enum(nodeKinds);
|
|
46
|
+
// A list entry of a kind this release does not know yet reads as `unknown` (E195, #784): a tab
|
|
47
|
+
// opened before a deploy shows that one entry as "new, please reload" and keeps the rest of the
|
|
48
|
+
// list. Only for answers; every input keeps the strict `NodeKind`.
|
|
49
|
+
export const unknownNodeKind = "unknown";
|
|
50
|
+
export const NodeKindRead = z.enum([...nodeKinds, unknownNodeKind]).catch(unknownNodeKind);
|
|
46
51
|
// Only these kinds have a responsible person (E32): the one who answers for the content's validity.
|
|
47
52
|
export const responsibleKinds = [
|
|
48
53
|
"document",
|
|
@@ -116,7 +121,7 @@ export const NodePath = z.object({
|
|
|
116
121
|
});
|
|
117
122
|
export const NodeListItem = z.object({
|
|
118
123
|
nodeId: NodeId,
|
|
119
|
-
kind:
|
|
124
|
+
kind: NodeKindRead,
|
|
120
125
|
name: z.string(),
|
|
121
126
|
hidden: z.boolean(),
|
|
122
127
|
// A root folder belongs to this person; null for every other node.
|
|
@@ -179,7 +184,7 @@ export const NodeHitFoundIn = z.object({
|
|
|
179
184
|
// place in the fused order.
|
|
180
185
|
export const NodeHit = z.object({
|
|
181
186
|
nodeId: NodeId,
|
|
182
|
-
kind:
|
|
187
|
+
kind: NodeKindRead,
|
|
183
188
|
name: z.string(),
|
|
184
189
|
// The crumbs above it, from the first level the caller can read, like `path` of the archive.
|
|
185
190
|
path: NodePath,
|
|
@@ -242,7 +247,8 @@ export const NodeValidation = z.object({
|
|
|
242
247
|
});
|
|
243
248
|
export const NodeDetail = z.object({
|
|
244
249
|
nodeId: NodeId,
|
|
245
|
-
kind:
|
|
250
|
+
// `unknown` for a kind this release does not know (E195): the page reloads into the new one.
|
|
251
|
+
kind: NodeKindRead,
|
|
246
252
|
name: z.string(),
|
|
247
253
|
hidden: z.boolean(),
|
|
248
254
|
rootOf: z.string().nullable(),
|
|
@@ -323,6 +329,8 @@ export const NodeMoved = z.object({
|
|
|
323
329
|
parentId: NodeId.nullable(),
|
|
324
330
|
// Who can read the node now, for the short note the UI shows after the drop.
|
|
325
331
|
readers: z.array(NodeReader),
|
|
332
|
+
// The nodes a gadget uses that went along from Own into Shared (#986, "Mit verschoben").
|
|
333
|
+
alongWith: z.array(z.object({ nodeId: NodeId, name: z.string() })).optional(),
|
|
326
334
|
});
|
|
327
335
|
export const FolderCreateInput = z.strictObject({
|
|
328
336
|
// ⚠️ Required and nullable (trap C015): null is the top level of Shared.
|