@anchrd/colab-sdk 0.1.32 → 0.1.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/actions/actions.d.ts +46 -17
- package/dist/actions/actions.js +10 -0
- package/dist/archive/archive.d.ts +10 -0
- package/dist/archive/archive.js +9 -0
- package/dist/boards/boards.d.ts +29 -25
- package/dist/boards/boards.js +3 -2
- package/dist/card-kinds/card-kinds.d.ts +5 -5
- package/dist/columns/columns.d.ts +2 -2
- package/dist/connectors/connectors.d.ts +121 -3
- package/dist/connectors/connectors.js +6 -2
- package/dist/crawls/crawls.d.ts +3 -3
- package/dist/documents/documents.d.ts +4 -0
- package/dist/documents/documents.js +3 -2
- package/dist/error/error.d.ts +2 -0
- package/dist/error/error.js +35 -2
- package/dist/files/files.d.ts +4 -0
- package/dist/files/files.js +3 -2
- package/dist/gadgets/gadgets.d.ts +143 -12
- package/dist/gadgets/gadgets.js +60 -12
- package/dist/goals/goals.d.ts +19 -0
- package/dist/goals/goals.js +10 -5
- package/dist/grammar/grammar.d.ts +2 -1
- package/dist/grammar/grammar.js +9 -3
- package/dist/mcps/mcps.d.ts +41 -3
- package/dist/mcps/mcps.js +53 -3
- package/dist/nodes/nodes.d.ts +21 -9
- package/dist/nodes/nodes.js +16 -2
- package/dist/operators/operators.js +1 -1
- package/dist/organisation/organisation.d.ts +45 -0
- package/dist/organisation/organisation.js +45 -0
- package/dist/profile/profile.d.ts +3 -3
- package/dist/profile/profile.js +3 -2
- package/dist/providers/providers.d.ts +128 -0
- package/dist/providers/providers.js +118 -0
- package/dist/runs/runs.d.ts +3 -3
- package/dist/runtime-config.d.ts +12 -0
- package/dist/runtime-config.js +10 -0
- package/dist/sdk.d.ts +5 -4
- package/dist/sdk.js +5 -4
- package/dist/skills/skills.d.ts +4 -0
- package/dist/skills/skills.js +3 -2
- package/dist/sources/sources.d.ts +47 -4
- package/dist/sources/sources.js +8 -3
- package/dist/tables/tables.d.ts +4 -0
- package/dist/tables/tables.js +3 -2
- package/dist/versions/versions.d.ts +13 -13
- package/dist/written/written.d.ts +6 -2
- package/dist/written/written.js +2 -2
- package/package.json +1 -1
- package/dist/sso/sso.d.ts +0 -71
- package/dist/sso/sso.js +0 -59
package/dist/mcps/mcps.d.ts
CHANGED
|
@@ -22,6 +22,10 @@ export declare const mcpCatalog: readonly [{
|
|
|
22
22
|
readonly auth: "oauth";
|
|
23
23
|
readonly signIn: "Google";
|
|
24
24
|
readonly dynamicRegistration: false;
|
|
25
|
+
readonly app: {
|
|
26
|
+
readonly provider: "google";
|
|
27
|
+
readonly scopes: readonly ["https://www.googleapis.com/auth/gmail.readonly", "https://www.googleapis.com/auth/gmail.compose"];
|
|
28
|
+
};
|
|
25
29
|
readonly color: "#c5221f";
|
|
26
30
|
readonly initials: "G";
|
|
27
31
|
}, {
|
|
@@ -31,6 +35,10 @@ export declare const mcpCatalog: readonly [{
|
|
|
31
35
|
readonly auth: "oauth";
|
|
32
36
|
readonly signIn: "Google";
|
|
33
37
|
readonly dynamicRegistration: false;
|
|
38
|
+
readonly app: {
|
|
39
|
+
readonly provider: "google";
|
|
40
|
+
readonly scopes: readonly ["https://www.googleapis.com/auth/calendar"];
|
|
41
|
+
};
|
|
34
42
|
readonly color: "#1a73e8";
|
|
35
43
|
readonly initials: "K";
|
|
36
44
|
}, {
|
|
@@ -40,6 +48,10 @@ export declare const mcpCatalog: readonly [{
|
|
|
40
48
|
readonly auth: "oauth";
|
|
41
49
|
readonly signIn: "Google";
|
|
42
50
|
readonly dynamicRegistration: false;
|
|
51
|
+
readonly app: {
|
|
52
|
+
readonly provider: "google";
|
|
53
|
+
readonly scopes: readonly ["https://www.googleapis.com/auth/drive"];
|
|
54
|
+
};
|
|
43
55
|
readonly color: "#188038";
|
|
44
56
|
readonly initials: "D";
|
|
45
57
|
}, {
|
|
@@ -49,6 +61,10 @@ export declare const mcpCatalog: readonly [{
|
|
|
49
61
|
readonly auth: "oauth";
|
|
50
62
|
readonly signIn: "Slack";
|
|
51
63
|
readonly dynamicRegistration: false;
|
|
64
|
+
readonly app: {
|
|
65
|
+
readonly provider: "slack";
|
|
66
|
+
readonly scopes: readonly ["search:read.public", "search:read.private", "channels:history", "groups:history", "im:history", "chat:write", "users:read"];
|
|
67
|
+
};
|
|
52
68
|
readonly color: "#4a154b";
|
|
53
69
|
readonly initials: "Sl";
|
|
54
70
|
}, {
|
|
@@ -58,6 +74,10 @@ export declare const mcpCatalog: readonly [{
|
|
|
58
74
|
readonly auth: "oauth";
|
|
59
75
|
readonly signIn: "Microsoft";
|
|
60
76
|
readonly dynamicRegistration: false;
|
|
77
|
+
readonly app: {
|
|
78
|
+
readonly provider: "microsoft";
|
|
79
|
+
readonly scopes: readonly ["https://agent365.svc.cloud.microsoft/.default", "offline_access"];
|
|
80
|
+
};
|
|
61
81
|
readonly color: "#5059c9";
|
|
62
82
|
readonly initials: "T";
|
|
63
83
|
}, {
|
|
@@ -67,6 +87,10 @@ export declare const mcpCatalog: readonly [{
|
|
|
67
87
|
readonly auth: "oauth";
|
|
68
88
|
readonly signIn: "Microsoft";
|
|
69
89
|
readonly dynamicRegistration: false;
|
|
90
|
+
readonly app: {
|
|
91
|
+
readonly provider: "microsoft";
|
|
92
|
+
readonly scopes: readonly ["https://agent365.svc.cloud.microsoft/.default", "offline_access"];
|
|
93
|
+
};
|
|
70
94
|
readonly color: "#0f6cbd";
|
|
71
95
|
readonly initials: "O";
|
|
72
96
|
}, {
|
|
@@ -76,6 +100,7 @@ export declare const mcpCatalog: readonly [{
|
|
|
76
100
|
readonly auth: "oauth";
|
|
77
101
|
readonly signIn: "HubSpot";
|
|
78
102
|
readonly dynamicRegistration: false;
|
|
103
|
+
readonly app: null;
|
|
79
104
|
readonly color: "#c2410c";
|
|
80
105
|
readonly initials: "H";
|
|
81
106
|
}, {
|
|
@@ -85,6 +110,7 @@ export declare const mcpCatalog: readonly [{
|
|
|
85
110
|
readonly auth: "oauth";
|
|
86
111
|
readonly signIn: "Notion";
|
|
87
112
|
readonly dynamicRegistration: true;
|
|
113
|
+
readonly app: null;
|
|
88
114
|
readonly color: "#111111";
|
|
89
115
|
readonly initials: "N";
|
|
90
116
|
}, {
|
|
@@ -94,6 +120,7 @@ export declare const mcpCatalog: readonly [{
|
|
|
94
120
|
readonly auth: "oauth";
|
|
95
121
|
readonly signIn: "Linear";
|
|
96
122
|
readonly dynamicRegistration: true;
|
|
123
|
+
readonly app: null;
|
|
97
124
|
readonly color: "#5e6ad2";
|
|
98
125
|
readonly initials: "Li";
|
|
99
126
|
}, {
|
|
@@ -103,6 +130,7 @@ export declare const mcpCatalog: readonly [{
|
|
|
103
130
|
readonly auth: "oauth";
|
|
104
131
|
readonly signIn: "Atlassian";
|
|
105
132
|
readonly dynamicRegistration: true;
|
|
133
|
+
readonly app: null;
|
|
106
134
|
readonly color: "#0c66e4";
|
|
107
135
|
readonly initials: "At";
|
|
108
136
|
}, {
|
|
@@ -112,6 +140,7 @@ export declare const mcpCatalog: readonly [{
|
|
|
112
140
|
readonly auth: "oauth";
|
|
113
141
|
readonly signIn: "Asana";
|
|
114
142
|
readonly dynamicRegistration: true;
|
|
143
|
+
readonly app: null;
|
|
115
144
|
readonly color: "#e8384f";
|
|
116
145
|
readonly initials: "As";
|
|
117
146
|
}, {
|
|
@@ -121,6 +150,7 @@ export declare const mcpCatalog: readonly [{
|
|
|
121
150
|
readonly auth: "oauth";
|
|
122
151
|
readonly signIn: "Sentry";
|
|
123
152
|
readonly dynamicRegistration: true;
|
|
153
|
+
readonly app: null;
|
|
124
154
|
readonly color: "#362d59";
|
|
125
155
|
readonly initials: "Se";
|
|
126
156
|
}, {
|
|
@@ -130,6 +160,7 @@ export declare const mcpCatalog: readonly [{
|
|
|
130
160
|
readonly auth: "oauth";
|
|
131
161
|
readonly signIn: "Zapier";
|
|
132
162
|
readonly dynamicRegistration: true;
|
|
163
|
+
readonly app: null;
|
|
133
164
|
readonly color: "#ff4a00";
|
|
134
165
|
readonly initials: "Z";
|
|
135
166
|
}, {
|
|
@@ -139,6 +170,7 @@ export declare const mcpCatalog: readonly [{
|
|
|
139
170
|
readonly auth: "oauth";
|
|
140
171
|
readonly signIn: "Canva";
|
|
141
172
|
readonly dynamicRegistration: true;
|
|
173
|
+
readonly app: null;
|
|
142
174
|
readonly color: "#7d2ae8";
|
|
143
175
|
readonly initials: "Ca";
|
|
144
176
|
}, {
|
|
@@ -148,6 +180,7 @@ export declare const mcpCatalog: readonly [{
|
|
|
148
180
|
readonly auth: "oauth";
|
|
149
181
|
readonly signIn: "Miro";
|
|
150
182
|
readonly dynamicRegistration: true;
|
|
183
|
+
readonly app: null;
|
|
151
184
|
readonly color: "#b8860b";
|
|
152
185
|
readonly initials: "Mi";
|
|
153
186
|
}, {
|
|
@@ -157,6 +190,7 @@ export declare const mcpCatalog: readonly [{
|
|
|
157
190
|
readonly auth: "oauth";
|
|
158
191
|
readonly signIn: "ClickUp";
|
|
159
192
|
readonly dynamicRegistration: true;
|
|
193
|
+
readonly app: null;
|
|
160
194
|
readonly color: "#7b68ee";
|
|
161
195
|
readonly initials: "Cu";
|
|
162
196
|
}, {
|
|
@@ -166,6 +200,7 @@ export declare const mcpCatalog: readonly [{
|
|
|
166
200
|
readonly auth: "oauth";
|
|
167
201
|
readonly signIn: "Webflow";
|
|
168
202
|
readonly dynamicRegistration: true;
|
|
203
|
+
readonly app: null;
|
|
169
204
|
readonly color: "#146ef5";
|
|
170
205
|
readonly initials: "W";
|
|
171
206
|
}];
|
|
@@ -299,14 +334,17 @@ export declare const McpList: z.ZodObject<{
|
|
|
299
334
|
updatedAt: z.ZodISODateTime;
|
|
300
335
|
}, z.core.$strip>>;
|
|
301
336
|
nextCursor: z.ZodNullable<z.ZodTemplateLiteral<`mcp_${string}`>>;
|
|
337
|
+
connectable: z.ZodArray<z.ZodEnum<{
|
|
338
|
+
[x: string]: string;
|
|
339
|
+
}>>;
|
|
302
340
|
}, z.core.$strip>;
|
|
303
341
|
export type McpList = z.infer<typeof McpList>;
|
|
304
342
|
export declare const McpCallAction: z.ZodEnum<{
|
|
305
|
-
blocked: "blocked";
|
|
306
343
|
update: "update";
|
|
307
344
|
test: "test";
|
|
308
345
|
revoke: "revoke";
|
|
309
346
|
call: "call";
|
|
347
|
+
blocked: "blocked";
|
|
310
348
|
connect: "connect";
|
|
311
349
|
signin: "signin";
|
|
312
350
|
expire: "expire";
|
|
@@ -315,11 +353,11 @@ export type McpCallAction = z.infer<typeof McpCallAction>;
|
|
|
315
353
|
export declare const McpCall: z.ZodObject<{
|
|
316
354
|
callId: z.ZodTemplateLiteral<`call_${string}`>;
|
|
317
355
|
action: z.ZodEnum<{
|
|
318
|
-
blocked: "blocked";
|
|
319
356
|
update: "update";
|
|
320
357
|
test: "test";
|
|
321
358
|
revoke: "revoke";
|
|
322
359
|
call: "call";
|
|
360
|
+
blocked: "blocked";
|
|
323
361
|
connect: "connect";
|
|
324
362
|
signin: "signin";
|
|
325
363
|
expire: "expire";
|
|
@@ -334,11 +372,11 @@ export declare const McpCallList: z.ZodObject<{
|
|
|
334
372
|
items: z.ZodArray<z.ZodObject<{
|
|
335
373
|
callId: z.ZodTemplateLiteral<`call_${string}`>;
|
|
336
374
|
action: z.ZodEnum<{
|
|
337
|
-
blocked: "blocked";
|
|
338
375
|
update: "update";
|
|
339
376
|
test: "test";
|
|
340
377
|
revoke: "revoke";
|
|
341
378
|
call: "call";
|
|
379
|
+
blocked: "blocked";
|
|
342
380
|
connect: "connect";
|
|
343
381
|
signin: "signin";
|
|
344
382
|
expire: "expire";
|
package/dist/mcps/mcps.js
CHANGED
|
@@ -29,8 +29,11 @@ export const McpState = z.enum(["running", "expired", "unreachable", "pending"])
|
|
|
29
29
|
// providers on 2026-10-29 (#855, #875): Notion, Linear, Atlassian, Asana, Sentry, Zapier, Canva, Miro,
|
|
30
30
|
// ClickUp and Webflow offer it (each answers 401 at its address and names a `registration_endpoint`).
|
|
31
31
|
// Google answers no OAuth metadata at all, and Slack, Microsoft and HubSpot name none; they need an
|
|
32
|
-
// app
|
|
33
|
-
//
|
|
32
|
+
// app registered at the provider, with client id and secret. Such an entry is shown, not started,
|
|
33
|
+
// unless its `app` names a provider whose app an admin set up for MCPs under Einstellungen › Anbieter
|
|
34
|
+
// (E153, #925): then it signs in through that app, with `scopes` asked at the provider. ⚠️ The scopes
|
|
35
|
+
// are the providers' as published in October 2026 and proven on the stage only, like the addresses.
|
|
36
|
+
// HubSpot has no `app`: it stays "Braucht eine App".
|
|
34
37
|
export const mcpCatalog = [
|
|
35
38
|
{
|
|
36
39
|
id: "gmail",
|
|
@@ -39,6 +42,13 @@ export const mcpCatalog = [
|
|
|
39
42
|
auth: "oauth",
|
|
40
43
|
signIn: "Google",
|
|
41
44
|
dynamicRegistration: false,
|
|
45
|
+
app: {
|
|
46
|
+
provider: "google",
|
|
47
|
+
scopes: [
|
|
48
|
+
"https://www.googleapis.com/auth/gmail.readonly",
|
|
49
|
+
"https://www.googleapis.com/auth/gmail.compose",
|
|
50
|
+
],
|
|
51
|
+
},
|
|
42
52
|
color: "#c5221f",
|
|
43
53
|
initials: "G",
|
|
44
54
|
},
|
|
@@ -49,6 +59,7 @@ export const mcpCatalog = [
|
|
|
49
59
|
auth: "oauth",
|
|
50
60
|
signIn: "Google",
|
|
51
61
|
dynamicRegistration: false,
|
|
62
|
+
app: { provider: "google", scopes: ["https://www.googleapis.com/auth/calendar"] },
|
|
52
63
|
color: "#1a73e8",
|
|
53
64
|
initials: "K",
|
|
54
65
|
},
|
|
@@ -59,6 +70,7 @@ export const mcpCatalog = [
|
|
|
59
70
|
auth: "oauth",
|
|
60
71
|
signIn: "Google",
|
|
61
72
|
dynamicRegistration: false,
|
|
73
|
+
app: { provider: "google", scopes: ["https://www.googleapis.com/auth/drive"] },
|
|
62
74
|
color: "#188038",
|
|
63
75
|
initials: "D",
|
|
64
76
|
},
|
|
@@ -69,6 +81,18 @@ export const mcpCatalog = [
|
|
|
69
81
|
auth: "oauth",
|
|
70
82
|
signIn: "Slack",
|
|
71
83
|
dynamicRegistration: false,
|
|
84
|
+
app: {
|
|
85
|
+
provider: "slack",
|
|
86
|
+
scopes: [
|
|
87
|
+
"search:read.public",
|
|
88
|
+
"search:read.private",
|
|
89
|
+
"channels:history",
|
|
90
|
+
"groups:history",
|
|
91
|
+
"im:history",
|
|
92
|
+
"chat:write",
|
|
93
|
+
"users:read",
|
|
94
|
+
],
|
|
95
|
+
},
|
|
72
96
|
color: "#4a154b",
|
|
73
97
|
initials: "Sl",
|
|
74
98
|
},
|
|
@@ -79,6 +103,10 @@ export const mcpCatalog = [
|
|
|
79
103
|
auth: "oauth",
|
|
80
104
|
signIn: "Microsoft",
|
|
81
105
|
dynamicRegistration: false,
|
|
106
|
+
app: {
|
|
107
|
+
provider: "microsoft",
|
|
108
|
+
scopes: ["https://agent365.svc.cloud.microsoft/.default", "offline_access"],
|
|
109
|
+
},
|
|
82
110
|
color: "#5059c9",
|
|
83
111
|
initials: "T",
|
|
84
112
|
},
|
|
@@ -89,6 +117,10 @@ export const mcpCatalog = [
|
|
|
89
117
|
auth: "oauth",
|
|
90
118
|
signIn: "Microsoft",
|
|
91
119
|
dynamicRegistration: false,
|
|
120
|
+
app: {
|
|
121
|
+
provider: "microsoft",
|
|
122
|
+
scopes: ["https://agent365.svc.cloud.microsoft/.default", "offline_access"],
|
|
123
|
+
},
|
|
92
124
|
color: "#0f6cbd",
|
|
93
125
|
initials: "O",
|
|
94
126
|
},
|
|
@@ -99,6 +131,7 @@ export const mcpCatalog = [
|
|
|
99
131
|
auth: "oauth",
|
|
100
132
|
signIn: "HubSpot",
|
|
101
133
|
dynamicRegistration: false,
|
|
134
|
+
app: null,
|
|
102
135
|
color: "#c2410c",
|
|
103
136
|
initials: "H",
|
|
104
137
|
},
|
|
@@ -109,6 +142,7 @@ export const mcpCatalog = [
|
|
|
109
142
|
auth: "oauth",
|
|
110
143
|
signIn: "Notion",
|
|
111
144
|
dynamicRegistration: true,
|
|
145
|
+
app: null,
|
|
112
146
|
color: "#111111",
|
|
113
147
|
initials: "N",
|
|
114
148
|
},
|
|
@@ -119,6 +153,7 @@ export const mcpCatalog = [
|
|
|
119
153
|
auth: "oauth",
|
|
120
154
|
signIn: "Linear",
|
|
121
155
|
dynamicRegistration: true,
|
|
156
|
+
app: null,
|
|
122
157
|
color: "#5e6ad2",
|
|
123
158
|
initials: "Li",
|
|
124
159
|
},
|
|
@@ -129,6 +164,7 @@ export const mcpCatalog = [
|
|
|
129
164
|
auth: "oauth",
|
|
130
165
|
signIn: "Atlassian",
|
|
131
166
|
dynamicRegistration: true,
|
|
167
|
+
app: null,
|
|
132
168
|
color: "#0c66e4",
|
|
133
169
|
initials: "At",
|
|
134
170
|
},
|
|
@@ -139,6 +175,7 @@ export const mcpCatalog = [
|
|
|
139
175
|
auth: "oauth",
|
|
140
176
|
signIn: "Asana",
|
|
141
177
|
dynamicRegistration: true,
|
|
178
|
+
app: null,
|
|
142
179
|
color: "#e8384f",
|
|
143
180
|
initials: "As",
|
|
144
181
|
},
|
|
@@ -149,6 +186,7 @@ export const mcpCatalog = [
|
|
|
149
186
|
auth: "oauth",
|
|
150
187
|
signIn: "Sentry",
|
|
151
188
|
dynamicRegistration: true,
|
|
189
|
+
app: null,
|
|
152
190
|
color: "#362d59",
|
|
153
191
|
initials: "Se",
|
|
154
192
|
},
|
|
@@ -159,6 +197,7 @@ export const mcpCatalog = [
|
|
|
159
197
|
auth: "oauth",
|
|
160
198
|
signIn: "Zapier",
|
|
161
199
|
dynamicRegistration: true,
|
|
200
|
+
app: null,
|
|
162
201
|
color: "#ff4a00",
|
|
163
202
|
initials: "Z",
|
|
164
203
|
},
|
|
@@ -169,6 +208,7 @@ export const mcpCatalog = [
|
|
|
169
208
|
auth: "oauth",
|
|
170
209
|
signIn: "Canva",
|
|
171
210
|
dynamicRegistration: true,
|
|
211
|
+
app: null,
|
|
172
212
|
color: "#7d2ae8",
|
|
173
213
|
initials: "Ca",
|
|
174
214
|
},
|
|
@@ -179,6 +219,7 @@ export const mcpCatalog = [
|
|
|
179
219
|
auth: "oauth",
|
|
180
220
|
signIn: "Miro",
|
|
181
221
|
dynamicRegistration: true,
|
|
222
|
+
app: null,
|
|
182
223
|
color: "#b8860b",
|
|
183
224
|
initials: "Mi",
|
|
184
225
|
},
|
|
@@ -189,6 +230,7 @@ export const mcpCatalog = [
|
|
|
189
230
|
auth: "oauth",
|
|
190
231
|
signIn: "ClickUp",
|
|
191
232
|
dynamicRegistration: true,
|
|
233
|
+
app: null,
|
|
192
234
|
color: "#7b68ee",
|
|
193
235
|
initials: "Cu",
|
|
194
236
|
},
|
|
@@ -199,6 +241,7 @@ export const mcpCatalog = [
|
|
|
199
241
|
auth: "oauth",
|
|
200
242
|
signIn: "Webflow",
|
|
201
243
|
dynamicRegistration: true,
|
|
244
|
+
app: null,
|
|
202
245
|
color: "#146ef5",
|
|
203
246
|
initials: "W",
|
|
204
247
|
},
|
|
@@ -317,7 +360,14 @@ export const Mcp = z.object({
|
|
|
317
360
|
createdBy: UserId.nullable(),
|
|
318
361
|
updatedAt: z.iso.datetime(),
|
|
319
362
|
});
|
|
320
|
-
export const McpList = z.object({
|
|
363
|
+
export const McpList = z.object({
|
|
364
|
+
items: z.array(Mcp),
|
|
365
|
+
nextCursor: McpId.nullable(),
|
|
366
|
+
// The catalog entries "Verbinden" starts here right now: those with dynamic registration, and those
|
|
367
|
+
// whose provider's app an admin set up for MCPs under Einstellungen › Anbieter (E153, #925). The
|
|
368
|
+
// others show "Braucht eine App".
|
|
369
|
+
connectable: z.array(McpCatalogId),
|
|
370
|
+
});
|
|
321
371
|
// The protocol of an MCP (its tab Protokoll): what its person did with it and every call of an
|
|
322
372
|
// Operator through it, newest first. `call` names the tool; `blocked` is a call of a tool that is off,
|
|
323
373
|
// refused before it reached the server.
|
package/dist/nodes/nodes.d.ts
CHANGED
|
@@ -38,6 +38,11 @@ export declare const NodeSection: z.ZodEnum<{
|
|
|
38
38
|
shared: "shared";
|
|
39
39
|
}>;
|
|
40
40
|
export type NodeSection = z.infer<typeof NodeSection>;
|
|
41
|
+
export declare const CreateSection: z.ZodOptional<z.ZodEnum<{
|
|
42
|
+
own: "own";
|
|
43
|
+
shared: "shared";
|
|
44
|
+
}>>;
|
|
45
|
+
export type CreateSection = z.infer<typeof CreateSection>;
|
|
41
46
|
export declare const NodeSort: z.ZodEnum<{
|
|
42
47
|
name: "name";
|
|
43
48
|
status: "status";
|
|
@@ -129,13 +134,13 @@ export declare const NodeListItem: z.ZodObject<{
|
|
|
129
134
|
sharedWith: z.ZodNumber;
|
|
130
135
|
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
131
136
|
status: z.ZodNullable<z.ZodEnum<{
|
|
137
|
+
archive: "archive";
|
|
132
138
|
backlog: "backlog";
|
|
133
139
|
open: "open";
|
|
134
140
|
progress: "progress";
|
|
135
141
|
done: "done";
|
|
136
142
|
discarded: "discarded";
|
|
137
143
|
blocked: "blocked";
|
|
138
|
-
archive: "archive";
|
|
139
144
|
}>>;
|
|
140
145
|
system: z.ZodNullable<z.ZodEnum<{
|
|
141
146
|
validation: "validation";
|
|
@@ -201,13 +206,13 @@ export declare const NodeList: z.ZodObject<{
|
|
|
201
206
|
sharedWith: z.ZodNumber;
|
|
202
207
|
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
203
208
|
status: z.ZodNullable<z.ZodEnum<{
|
|
209
|
+
archive: "archive";
|
|
204
210
|
backlog: "backlog";
|
|
205
211
|
open: "open";
|
|
206
212
|
progress: "progress";
|
|
207
213
|
done: "done";
|
|
208
214
|
discarded: "discarded";
|
|
209
215
|
blocked: "blocked";
|
|
210
|
-
archive: "archive";
|
|
211
216
|
}>>;
|
|
212
217
|
system: z.ZodNullable<z.ZodEnum<{
|
|
213
218
|
validation: "validation";
|
|
@@ -250,8 +255,8 @@ export declare const NodeList: z.ZodObject<{
|
|
|
250
255
|
export type NodeList = z.infer<typeof NodeList>;
|
|
251
256
|
export declare const NodeHitFoundIn: z.ZodObject<{
|
|
252
257
|
kind: z.ZodEnum<{
|
|
253
|
-
column: "column";
|
|
254
258
|
page: "page";
|
|
259
|
+
column: "column";
|
|
255
260
|
title: "title";
|
|
256
261
|
text: "text";
|
|
257
262
|
card: "card";
|
|
@@ -288,8 +293,8 @@ export declare const NodeHit: z.ZodObject<{
|
|
|
288
293
|
snippet: z.ZodString;
|
|
289
294
|
foundIn: z.ZodObject<{
|
|
290
295
|
kind: z.ZodEnum<{
|
|
291
|
-
column: "column";
|
|
292
296
|
page: "page";
|
|
297
|
+
column: "column";
|
|
293
298
|
title: "title";
|
|
294
299
|
text: "text";
|
|
295
300
|
card: "card";
|
|
@@ -298,13 +303,13 @@ export declare const NodeHit: z.ZodObject<{
|
|
|
298
303
|
}, z.core.$strip>;
|
|
299
304
|
rank: z.ZodNumber;
|
|
300
305
|
status: z.ZodNullable<z.ZodEnum<{
|
|
306
|
+
archive: "archive";
|
|
301
307
|
backlog: "backlog";
|
|
302
308
|
open: "open";
|
|
303
309
|
progress: "progress";
|
|
304
310
|
done: "done";
|
|
305
311
|
discarded: "discarded";
|
|
306
312
|
blocked: "blocked";
|
|
307
|
-
archive: "archive";
|
|
308
313
|
}>>;
|
|
309
314
|
updatedAt: z.ZodISODateTime;
|
|
310
315
|
boardKind: z.ZodNullable<z.ZodEnum<{
|
|
@@ -361,8 +366,8 @@ export declare const NodeSearch: z.ZodObject<{
|
|
|
361
366
|
snippet: z.ZodString;
|
|
362
367
|
foundIn: z.ZodObject<{
|
|
363
368
|
kind: z.ZodEnum<{
|
|
364
|
-
column: "column";
|
|
365
369
|
page: "page";
|
|
370
|
+
column: "column";
|
|
366
371
|
title: "title";
|
|
367
372
|
text: "text";
|
|
368
373
|
card: "card";
|
|
@@ -371,13 +376,13 @@ export declare const NodeSearch: z.ZodObject<{
|
|
|
371
376
|
}, z.core.$strip>;
|
|
372
377
|
rank: z.ZodNumber;
|
|
373
378
|
status: z.ZodNullable<z.ZodEnum<{
|
|
379
|
+
archive: "archive";
|
|
374
380
|
backlog: "backlog";
|
|
375
381
|
open: "open";
|
|
376
382
|
progress: "progress";
|
|
377
383
|
done: "done";
|
|
378
384
|
discarded: "discarded";
|
|
379
385
|
blocked: "blocked";
|
|
380
|
-
archive: "archive";
|
|
381
386
|
}>>;
|
|
382
387
|
updatedAt: z.ZodISODateTime;
|
|
383
388
|
boardKind: z.ZodNullable<z.ZodEnum<{
|
|
@@ -430,13 +435,13 @@ export declare const NodeValidation: z.ZodObject<{
|
|
|
430
435
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
431
436
|
name: z.ZodString;
|
|
432
437
|
type: z.ZodEnum<{
|
|
438
|
+
archive: "archive";
|
|
433
439
|
backlog: "backlog";
|
|
434
440
|
open: "open";
|
|
435
441
|
progress: "progress";
|
|
436
442
|
done: "done";
|
|
437
443
|
discarded: "discarded";
|
|
438
444
|
blocked: "blocked";
|
|
439
|
-
archive: "archive";
|
|
440
445
|
}>;
|
|
441
446
|
}, z.core.$strip>;
|
|
442
447
|
validUntil: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -534,13 +539,13 @@ export declare const NodeDetail: z.ZodObject<{
|
|
|
534
539
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
535
540
|
name: z.ZodString;
|
|
536
541
|
type: z.ZodEnum<{
|
|
542
|
+
archive: "archive";
|
|
537
543
|
backlog: "backlog";
|
|
538
544
|
open: "open";
|
|
539
545
|
progress: "progress";
|
|
540
546
|
done: "done";
|
|
541
547
|
discarded: "discarded";
|
|
542
548
|
blocked: "blocked";
|
|
543
|
-
archive: "archive";
|
|
544
549
|
}>;
|
|
545
550
|
}, z.core.$strip>;
|
|
546
551
|
validUntil: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -585,6 +590,9 @@ export type NodeUpdateInput = z.infer<typeof NodeUpdateInput>;
|
|
|
585
590
|
export declare const NodeMoveInput: z.ZodObject<{
|
|
586
591
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
587
592
|
parentId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
593
|
+
section: z.ZodOptional<z.ZodEnum<{
|
|
594
|
+
shared: "shared";
|
|
595
|
+
}>>;
|
|
588
596
|
}, z.core.$strict>;
|
|
589
597
|
export type NodeMoveInput = z.infer<typeof NodeMoveInput>;
|
|
590
598
|
export declare const NodeReader: z.ZodObject<{
|
|
@@ -633,6 +641,10 @@ export declare const NodeMoved: z.ZodObject<{
|
|
|
633
641
|
export type NodeMoved = z.infer<typeof NodeMoved>;
|
|
634
642
|
export declare const FolderCreateInput: z.ZodObject<{
|
|
635
643
|
parentId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
644
|
+
section: z.ZodOptional<z.ZodEnum<{
|
|
645
|
+
own: "own";
|
|
646
|
+
shared: "shared";
|
|
647
|
+
}>>;
|
|
636
648
|
name: z.ZodString;
|
|
637
649
|
idempotencyKey: z.ZodString;
|
|
638
650
|
}, z.core.$strict>;
|
package/dist/nodes/nodes.js
CHANGED
|
@@ -59,6 +59,14 @@ export const BoardSystem = z.enum(["validation"]);
|
|
|
59
59
|
export const BoardShownKind = z.enum(["board", "process", "validation"]);
|
|
60
60
|
// The three sections of the tree (Funktionen › Seitenbaum, E67).
|
|
61
61
|
export const NodeSection = z.enum(["own", "shared", "users"]);
|
|
62
|
+
// Where a create without a parent lands (#930, after #791): Own unless the caller says Shared. Only
|
|
63
|
+
// with `parentId: null`; the UI sends `shared` from "Neu" at the top of Shared, an AI only when it
|
|
64
|
+
// means Shared. Without it the node goes into the caller's root folder, so it is never found by
|
|
65
|
+
// nobody by accident (Diana's folder, #791).
|
|
66
|
+
export const CreateSection = z
|
|
67
|
+
.enum(["own", "shared"])
|
|
68
|
+
.optional()
|
|
69
|
+
.describe("Only with parentId null: shared creates the node on the top level of Shared, where you see it and everyone you share it with; own or leaving it out creates it in your own root folder (Own). Send shared only when Shared is meant.");
|
|
62
70
|
export const NodeSort = z.enum(["name", "updated", "kind", "status"]);
|
|
63
71
|
const Limit = PageSize.describe("How many entries one page holds, 1 to 100. Leaving it out gives 50.");
|
|
64
72
|
// The name a person reads. ⚠️ A name starting with a dot hides the node from listings (`.Intern`),
|
|
@@ -292,7 +300,12 @@ export const NodeMoveInput = z.strictObject({
|
|
|
292
300
|
nodeId: NodeId,
|
|
293
301
|
// ⚠️ Required and nullable (trap C015): null is the top level of Shared, and leaving the field out
|
|
294
302
|
// is refused, so a forgetful caller cannot move a node to the top by accident.
|
|
295
|
-
parentId: NodeId.nullable().describe("The folder to move the node into, one you can write to; null puts it on the top level of Shared. The node takes the grants of its new folder and loses those of the old one."),
|
|
303
|
+
parentId: NodeId.nullable().describe("The folder to move the node into, one you can write to; null puts it on the top level of Shared, a node without a grant of its own only with section shared. The node takes the grants of its new folder and loses those of the old one."),
|
|
304
|
+
// #930: like a create, the top of Shared is said, not implied: the tree sends it on a drop there.
|
|
305
|
+
section: z
|
|
306
|
+
.enum(["shared"])
|
|
307
|
+
.optional()
|
|
308
|
+
.describe("Only with parentId null: shared puts the node on the top level of Shared even without a grant of its own, where its creator and everyone it is shared with see it. Leaving it out refuses a node without a grant of its own there."),
|
|
296
309
|
});
|
|
297
310
|
// Who reaches a node after inheritance (`readersOf`), and where it comes from.
|
|
298
311
|
export const NodeReader = z.object({
|
|
@@ -313,7 +326,8 @@ export const NodeMoved = z.object({
|
|
|
313
326
|
});
|
|
314
327
|
export const FolderCreateInput = z.strictObject({
|
|
315
328
|
// ⚠️ Required and nullable (trap C015): null is the top level of Shared.
|
|
316
|
-
parentId: NodeId.nullable().describe("The folder to create it in, one you can write to; null creates it on the top level of Shared,
|
|
329
|
+
parentId: NodeId.nullable().describe("The folder to create it in, one you can write to; null creates it in your own root folder (Own), or on the top level of Shared with section shared, where only you see it until you share it."),
|
|
330
|
+
section: CreateSection,
|
|
317
331
|
name: NodeName,
|
|
318
332
|
idempotencyKey: IdempotencyKey,
|
|
319
333
|
});
|
|
@@ -416,7 +416,7 @@ export const OperatorUserListInput = z.strictObject({
|
|
|
416
416
|
export const OperatorUserUpdateInput = z
|
|
417
417
|
.strictObject({
|
|
418
418
|
userId: UserId.optional().describe("The person whose own values change, `user_…`. Leaving it out changes the defaults for every person."),
|
|
419
|
-
limitUsd: UserLimitUsd.optional().describe("The limit of a month in dollars for all personal Operators of a person together. null: no limit for the defaults; for a person, the defaults again."),
|
|
419
|
+
limitUsd: UserLimitUsd.optional().describe("The limit of a month in US dollars for all personal Operators of a person together. null: no limit for the defaults; for a person, the defaults again."),
|
|
420
420
|
models: UserModels.optional().describe("The models a person's Operators may take. null: every model a credential marked personal offers for the defaults; for a person, the defaults again."),
|
|
421
421
|
})
|
|
422
422
|
.refine((input) => input.limitUsd !== undefined || input.models !== undefined, {
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const currencies: readonly ["EUR", "USD", "CHF", "GBP"];
|
|
3
|
+
export declare const Currency: z.ZodEnum<{
|
|
4
|
+
EUR: "EUR";
|
|
5
|
+
USD: "USD";
|
|
6
|
+
CHF: "CHF";
|
|
7
|
+
GBP: "GBP";
|
|
8
|
+
}>;
|
|
9
|
+
export type Currency = z.infer<typeof Currency>;
|
|
10
|
+
export declare const CurrencyRate: z.ZodNumber;
|
|
11
|
+
export declare const OrganisationGetInput: z.ZodObject<{}, z.core.$strict>;
|
|
12
|
+
export type OrganisationGetInput = z.infer<typeof OrganisationGetInput>;
|
|
13
|
+
export declare const OrganisationUpdateInput: z.ZodObject<{
|
|
14
|
+
timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
locale: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
16
|
+
en: "en";
|
|
17
|
+
de: "de";
|
|
18
|
+
}>>>;
|
|
19
|
+
currency: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
20
|
+
EUR: "EUR";
|
|
21
|
+
USD: "USD";
|
|
22
|
+
CHF: "CHF";
|
|
23
|
+
GBP: "GBP";
|
|
24
|
+
}>>>;
|
|
25
|
+
currencyRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
+
}, z.core.$strict>;
|
|
27
|
+
export type OrganisationUpdateInput = z.infer<typeof OrganisationUpdateInput>;
|
|
28
|
+
export declare const Organisation: z.ZodObject<{
|
|
29
|
+
name: z.ZodString;
|
|
30
|
+
timeZone: z.ZodNullable<z.ZodString>;
|
|
31
|
+
locale: z.ZodNullable<z.ZodEnum<{
|
|
32
|
+
en: "en";
|
|
33
|
+
de: "de";
|
|
34
|
+
}>>;
|
|
35
|
+
currency: z.ZodNullable<z.ZodEnum<{
|
|
36
|
+
EUR: "EUR";
|
|
37
|
+
USD: "USD";
|
|
38
|
+
CHF: "CHF";
|
|
39
|
+
GBP: "GBP";
|
|
40
|
+
}>>;
|
|
41
|
+
currencyRate: z.ZodNullable<z.ZodNumber>;
|
|
42
|
+
setAt: z.ZodNullable<z.ZodISODateTime>;
|
|
43
|
+
setBy: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
export type Organisation = z.infer<typeof Organisation>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { Locale, TimeZone } from "../profile/profile.js";
|
|
3
|
+
import { UserId } from "../users/users.js";
|
|
4
|
+
// Organisation › System (#930): what holds for the whole company. The name is the installation's
|
|
5
|
+
// (`INSTALLATION_NAME`, #79) and only stands to read. The default time zone and language are set
|
|
6
|
+
// here by an admin: a person without their own in the profile takes them, a machine always does
|
|
7
|
+
// (the rhythm of goals, "due today", times in mails), and so does every mail to a person without a
|
|
8
|
+
// language of their own. Null: not set, and the old default holds (UTC; `DEFAULT_LANGUAGE`, else
|
|
9
|
+
// English).
|
|
10
|
+
//
|
|
11
|
+
// The currency (#930, Jack 2026-10-30): providers bill in US dollars and every amount is stored in
|
|
12
|
+
// US dollars. With a currency other than USD and a fixed rate the admin enters (1 USD = `currencyRate`
|
|
13
|
+
// of the currency), the UI shows and takes amounts in that currency, converted with the rate. The
|
|
14
|
+
// MCP tools stay in US dollars. Null or USD: dollars everywhere, as before.
|
|
15
|
+
export const currencies = ["EUR", "USD", "CHF", "GBP"];
|
|
16
|
+
export const Currency = z.enum(currencies);
|
|
17
|
+
// How many units of the currency one US dollar buys; fixed until an admin changes it.
|
|
18
|
+
export const CurrencyRate = z.number().positive().max(1_000_000);
|
|
19
|
+
export const OrganisationGetInput = z.strictObject({});
|
|
20
|
+
export const OrganisationUpdateInput = z.strictObject({
|
|
21
|
+
timeZone: TimeZone.nullable()
|
|
22
|
+
.optional()
|
|
23
|
+
.describe("The default IANA time zone, such as Europe/Berlin, for people without their own and for every machine. null takes it out (UTC). Left out: unchanged."),
|
|
24
|
+
locale: Locale.nullable()
|
|
25
|
+
.optional()
|
|
26
|
+
.describe("The default language, en or de, for new people, invitations and mails to anyone without their own. null takes it out. Left out: unchanged."),
|
|
27
|
+
currency: Currency.nullable()
|
|
28
|
+
.optional()
|
|
29
|
+
.describe("The currency the UI shows amounts in: EUR, USD, CHF or GBP. Anything other than USD needs currencyRate, now or already set. null or USD: US dollars. Left out: unchanged. Every amount stays stored, and every tool answers and takes, in US dollars."),
|
|
30
|
+
currencyRate: CurrencyRate.nullable()
|
|
31
|
+
.optional()
|
|
32
|
+
.describe("The fixed rate: how many units of the currency one US dollar is (1 USD = currencyRate), greater than 0, such as 0.92 for EUR. null takes it out. Left out: unchanged."),
|
|
33
|
+
});
|
|
34
|
+
export const Organisation = z.object({
|
|
35
|
+
// The installation's name for people; empty when the installation sets none.
|
|
36
|
+
name: z.string(),
|
|
37
|
+
timeZone: z.string().nullable(),
|
|
38
|
+
locale: Locale.nullable(),
|
|
39
|
+
currency: Currency.nullable(),
|
|
40
|
+
// 1 USD = currencyRate of the currency; null while unset.
|
|
41
|
+
currencyRate: z.number().nullable(),
|
|
42
|
+
// When and by whom the defaults were last changed; null while nobody has.
|
|
43
|
+
setAt: z.iso.datetime().nullable(),
|
|
44
|
+
setBy: UserId.nullable(),
|
|
45
|
+
});
|
|
@@ -17,11 +17,11 @@ export type TimeZone = z.infer<typeof TimeZone>;
|
|
|
17
17
|
export declare const Name: z.ZodString;
|
|
18
18
|
export declare const ProfileUpdateInput: z.ZodObject<{
|
|
19
19
|
name: z.ZodOptional<z.ZodString>;
|
|
20
|
-
locale: z.ZodOptional<z.ZodEnum<{
|
|
20
|
+
locale: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
21
21
|
en: "en";
|
|
22
22
|
de: "de";
|
|
23
|
-
}
|
|
24
|
-
timezone: z.ZodOptional<z.ZodString
|
|
23
|
+
}>>>;
|
|
24
|
+
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
theme: z.ZodOptional<z.ZodEnum<{
|
|
26
26
|
light: "light";
|
|
27
27
|
dark: "dark";
|