@anchrd/colab-sdk 0.1.31 → 0.1.33

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.
Files changed (52) hide show
  1. package/README.md +3 -1
  2. package/dist/actions/actions.d.ts +46 -17
  3. package/dist/actions/actions.js +10 -0
  4. package/dist/archive/archive.d.ts +10 -0
  5. package/dist/archive/archive.js +9 -0
  6. package/dist/boards/boards.d.ts +29 -25
  7. package/dist/boards/boards.js +3 -2
  8. package/dist/card-kinds/card-kinds.d.ts +5 -5
  9. package/dist/columns/columns.d.ts +2 -2
  10. package/dist/connectors/connectors.d.ts +37 -3
  11. package/dist/connectors/connectors.js +6 -2
  12. package/dist/crawls/crawls.d.ts +3 -3
  13. package/dist/documents/documents.d.ts +4 -0
  14. package/dist/documents/documents.js +3 -2
  15. package/dist/error/error.d.ts +1 -0
  16. package/dist/error/error.js +8 -1
  17. package/dist/files/files.d.ts +4 -0
  18. package/dist/files/files.js +3 -2
  19. package/dist/gadgets/gadgets.d.ts +44 -0
  20. package/dist/gadgets/gadgets.js +35 -5
  21. package/dist/goals/goals.d.ts +7 -0
  22. package/dist/goals/goals.js +7 -5
  23. package/dist/grammar/grammar.d.ts +2 -1
  24. package/dist/grammar/grammar.js +9 -3
  25. package/dist/mcps/mcps.d.ts +41 -3
  26. package/dist/mcps/mcps.js +53 -3
  27. package/dist/nodes/nodes.d.ts +21 -9
  28. package/dist/nodes/nodes.js +16 -2
  29. package/dist/operators/operators.js +1 -1
  30. package/dist/organisation/organisation.d.ts +45 -0
  31. package/dist/organisation/organisation.js +45 -0
  32. package/dist/profile/profile.d.ts +3 -3
  33. package/dist/profile/profile.js +3 -2
  34. package/dist/providers/providers.d.ts +128 -0
  35. package/dist/providers/providers.js +118 -0
  36. package/dist/runs/runs.d.ts +3 -3
  37. package/dist/runtime-config.d.ts +12 -0
  38. package/dist/runtime-config.js +10 -0
  39. package/dist/sdk.d.ts +5 -4
  40. package/dist/sdk.js +5 -4
  41. package/dist/skills/skills.d.ts +4 -0
  42. package/dist/skills/skills.js +3 -2
  43. package/dist/sources/sources.d.ts +19 -4
  44. package/dist/sources/sources.js +9 -3
  45. package/dist/tables/tables.d.ts +4 -0
  46. package/dist/tables/tables.js +3 -2
  47. package/dist/versions/versions.d.ts +13 -13
  48. package/dist/written/written.d.ts +5 -2
  49. package/dist/written/written.js +2 -2
  50. package/package.json +1 -1
  51. package/dist/sso/sso.d.ts +0 -71
  52. package/dist/sso/sso.js +0 -59
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
2
  import { ExcerptCursor, TextExcerpt } from "../excerpt/excerpt.js";
3
3
  import { idSchema } from "../ids/ids.js";
4
- import { NodeId } from "../nodes/nodes.js";
4
+ import { CreateSection, NodeId } from "../nodes/nodes.js";
5
5
  import { IdempotencyKey, Rev } from "../primitives/primitives.js";
6
6
  import { VersionId } from "../versions/versions.js";
7
7
  // Files (#41, Nodes › Datei, E47): the inputs of `intelligence_file_create`, `_get` and `_update`,
@@ -104,7 +104,8 @@ export const SourceUrl = z
104
104
  export const FileCreateInput = z
105
105
  .strictObject({
106
106
  // ⚠️ Required and nullable (trap C015): null is the top level of Shared, like a folder.
107
- parentId: NodeId.nullable().describe("The folder to put the file in, one you can write to; null puts it on the top level of Shared, visible to you until you share it."),
107
+ parentId: NodeId.nullable().describe("The folder to put the file in, one you can write to; null puts 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."),
108
+ section: CreateSection,
108
109
  // Required for an upload, optional with `sourceUrl`; the refinement below says so.
109
110
  name: FileName.optional(),
110
111
  mediaType: MediaType.optional(),
@@ -34,6 +34,10 @@ export type GadgetLevel = z.infer<typeof GadgetLevel>;
34
34
  export declare const gadgetLogDays: readonly [7, 14, 30];
35
35
  export declare const GadgetCreateInput: z.ZodObject<{
36
36
  parentId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
37
+ section: z.ZodOptional<z.ZodEnum<{
38
+ own: "own";
39
+ shared: "shared";
40
+ }>>;
37
41
  name: z.ZodString;
38
42
  files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
39
43
  idempotencyKey: z.ZodString;
@@ -189,6 +193,26 @@ export declare const GadgetTestResult: z.ZodObject<{
189
193
  }, z.core.$strip>>;
190
194
  }, z.core.$strip>;
191
195
  export type GadgetTestResult = z.infer<typeof GadgetTestResult>;
196
+ export declare const testLimits: {
197
+ readonly testMs: 30000;
198
+ readonly testTools: 50;
199
+ readonly fileMs: 120000;
200
+ readonly fileCpuMs: 10000;
201
+ readonly fileMemoryMb: 128;
202
+ readonly filesAtOnce: 5;
203
+ readonly runMs: 300000;
204
+ };
205
+ export declare const TestLimits: z.ZodObject<{
206
+ testMs: z.ZodNumber;
207
+ testTools: z.ZodNumber;
208
+ fileMs: z.ZodNumber;
209
+ fileCpuMs: z.ZodNumber;
210
+ fileMemoryMb: z.ZodNumber;
211
+ filesAtOnce: z.ZodNumber;
212
+ runMs: z.ZodNumber;
213
+ }, z.core.$strip>;
214
+ export type TestLimits = z.infer<typeof TestLimits>;
215
+ export declare const testLimitsText: string;
192
216
  export declare const GadgetTestRun: z.ZodObject<{
193
217
  version: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"draft">]>;
194
218
  current: z.ZodBoolean;
@@ -229,6 +253,16 @@ export declare const GadgetTestRun: z.ZodObject<{
229
253
  column: z.ZodNumber;
230
254
  }, z.core.$strip>>;
231
255
  }, z.core.$strip>>;
256
+ note: z.ZodOptional<z.ZodString>;
257
+ limits: z.ZodObject<{
258
+ testMs: z.ZodNumber;
259
+ testTools: z.ZodNumber;
260
+ fileMs: z.ZodNumber;
261
+ fileCpuMs: z.ZodNumber;
262
+ fileMemoryMb: z.ZodNumber;
263
+ filesAtOnce: z.ZodNumber;
264
+ runMs: z.ZodNumber;
265
+ }, z.core.$strip>;
232
266
  }, z.core.$strip>;
233
267
  export type GadgetTestRun = z.infer<typeof GadgetTestRun>;
234
268
  export declare const GadgetDetail: z.ZodObject<{
@@ -333,6 +367,16 @@ export declare const GadgetDetail: z.ZodObject<{
333
367
  column: z.ZodNumber;
334
368
  }, z.core.$strip>>;
335
369
  }, z.core.$strip>>;
370
+ note: z.ZodOptional<z.ZodString>;
371
+ limits: z.ZodObject<{
372
+ testMs: z.ZodNumber;
373
+ testTools: z.ZodNumber;
374
+ fileMs: z.ZodNumber;
375
+ fileCpuMs: z.ZodNumber;
376
+ fileMemoryMb: z.ZodNumber;
377
+ filesAtOnce: z.ZodNumber;
378
+ runMs: z.ZodNumber;
379
+ }, z.core.$strip>;
336
380
  }, z.core.$strip>>;
337
381
  usage: z.ZodNullable<z.ZodObject<{
338
382
  calls: z.ZodNumber;
@@ -2,7 +2,7 @@ import { z } from "zod";
2
2
  import { ErrorCode } from "../error/error.js";
3
3
  import { idSchema } from "../ids/ids.js";
4
4
  import { Limit } from "../list-input.js";
5
- import { NodeId, NodePath, NodePerson } from "../nodes/nodes.js";
5
+ import { CreateSection, NodeId, NodePath, NodePerson } from "../nodes/nodes.js";
6
6
  import { IdempotencyKey, Rev } from "../primitives/primitives.js";
7
7
  import { UserId } from "../users/users.js";
8
8
  // Gadgets (#642, E118, Nodes › Gadget): a small application an AI builds and Colab runs. Its files
@@ -59,8 +59,9 @@ const LogDays = z
59
59
  .describe("How many days the log keeps a call: 7, 14 or 30.");
60
60
  const FileContent = z.string().describe("The file's whole text.");
61
61
  export const GadgetCreateInput = z.strictObject({
62
- // ⚠️ Required and nullable (trap C015): null is the top level of Shared.
63
- parentId: NodeId.nullable().describe("The folder to create the gadget in, one you can write to; null creates it on the top level of Shared, visible to you until you share it."),
62
+ // ⚠️ Required and nullable (trap C015): null is the caller's own root folder (#791).
63
+ parentId: NodeId.nullable().describe("The folder to create the gadget 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."),
64
+ section: CreateSection,
64
65
  name: z
65
66
  .string()
66
67
  .max(200)
@@ -112,7 +113,7 @@ export const GadgetPublishInput = z.strictObject({
112
113
  force: z
113
114
  .literal(true)
114
115
  .optional()
115
- .describe("Publish although tests fail. Never for a machine: an Operator publishes only with every test green. A draft with tests needs a run of exactly its state first (intelligence_gadget_test); without one the publish starts the tests and refuses until they ended."),
116
+ .describe("Publish although tests fail. Never for a machine: an Operator publishes only with every test green. A draft with tests needs a run of exactly its state first (intelligence_gadget_test); without one the publish starts the tests and refuses until they ended. Follow a running one with intelligence_gadget_get."),
116
117
  rev: Rev,
117
118
  });
118
119
  export const GadgetTestInput = z.strictObject({
@@ -120,7 +121,7 @@ export const GadgetTestInput = z.strictObject({
120
121
  version: z
121
122
  .enum(["live", "draft"])
122
123
  .optional()
123
- .describe("Which state to test: draft (the default when there is one) or live. Tests run with your own rights against a storage of their own, never live's. The answer is the run once it ended within 20 seconds, else the run as running: it goes on in the background, and intelligence_gadget_get shows it under test once it ended."),
124
+ .describe("Which state to test: draft (the default when there is one) or live. Tests run with your own rights against a storage of their own, never live's. The answer is the run once it ended within 20 seconds, else the run as running: it goes on in the background, and intelligence_gadget_get shows it under test once it ended. Follow it there, not with another test, which after the end starts a new run."),
124
125
  });
125
126
  // The log's filters (#643, Nodes › Gadget › Konsole › Log).
126
127
  export const GadgetCallStatus = z.enum(["succeeded", "failed"]);
@@ -205,6 +206,31 @@ export const GadgetTestResult = z.object({
205
206
  .object({ file: z.string(), line: z.number().int(), column: z.number().int() })
206
207
  .nullable(),
207
208
  });
209
+ // The limits of a run of the tests of a gadget, a connector or a source (#937): the one place they
210
+ // stand. Every test file runs as a job of its own in a fresh isolate; the hosts, the descriptions of
211
+ // the three test tools, the field `limits` of every run and the customer pages read them from here.
212
+ // `testTools` counts for a gadget's tests only, whose `colab` has the budget of a live call (E150).
213
+ // The memory is Cloudflare's per isolate and set nowhere in Colab; it stands here so it is named.
214
+ export const testLimits = {
215
+ testMs: 30_000,
216
+ testTools: 50,
217
+ fileMs: 120_000,
218
+ fileCpuMs: 10_000,
219
+ fileMemoryMb: 128,
220
+ filesAtOnce: 5,
221
+ runMs: 300_000,
222
+ };
223
+ export const TestLimits = z.object({
224
+ testMs: z.number().int(),
225
+ testTools: z.number().int(),
226
+ fileMs: z.number().int(),
227
+ fileCpuMs: z.number().int(),
228
+ fileMemoryMb: z.number().int(),
229
+ filesAtOnce: z.number().int(),
230
+ runMs: z.number().int(),
231
+ });
232
+ // The limits in one sentence, for the descriptions of the test tools (#937).
233
+ export const testLimitsText = `Every test file runs on its own, in a fresh isolate with ${testLimits.fileMemoryMb} MB, at most ${testLimits.fileMs / 1000} seconds and ${testLimits.fileCpuMs / 1000} seconds of CPU; ${testLimits.filesAtOnce} files run at once, the whole run at most ${testLimits.runMs / 1000} seconds. Each test has ${testLimits.testMs / 1000} seconds, a gadget's test ${testLimits.testTools} tools. A file that breaks off is red with its reason; the others still count. The answer names these limits under limits.`;
208
234
  // A run of a gadget's tests (#643, Nodes › Gadget › Konsole › Tests). `running` (#888, E150): the run
209
235
  // goes on in the queue after `intelligence_gadget_test` answered; `at` is when it started, the
210
236
  // counts are 0 and `tests` empty until `intelligence_gadget_get` shows it ended.
@@ -222,6 +248,10 @@ export const GadgetTestRun = z.object({
222
248
  // The run itself broke: a test file did not load, or the run took too long.
223
249
  error: z.object({ message: z.string(), stack: z.string().optional() }).nullable(),
224
250
  tests: z.array(GadgetTestResult),
251
+ // Only in the answer of `intelligence_gadget_test` to a run still going (#913): where to follow it.
252
+ note: z.string().optional(),
253
+ // The limits the run is held to (#937), the same for a gadget, a connector and a source.
254
+ limits: TestLimits,
225
255
  });
226
256
  export const GadgetDetail = z.object({
227
257
  gadgetId: GadgetId,
@@ -62,6 +62,10 @@ export declare const GoalCreateInput: z.ZodObject<{
62
62
  }>>;
63
63
  reportToId: z.ZodOptional<z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>>;
64
64
  parentId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
65
+ section: z.ZodOptional<z.ZodEnum<{
66
+ own: "own";
67
+ shared: "shared";
68
+ }>>;
65
69
  name: z.ZodString;
66
70
  content: z.ZodString;
67
71
  }, z.core.$strict>;
@@ -311,6 +315,7 @@ export declare const GoalSession: z.ZodObject<{
311
315
  mention: "mention";
312
316
  play: "play";
313
317
  followup: "followup";
318
+ reminder: "reminder";
314
319
  }>;
315
320
  at: z.ZodISODateTime;
316
321
  by: z.ZodNullable<z.ZodObject<{
@@ -504,6 +509,7 @@ export declare const GoalRunDetail: z.ZodObject<{
504
509
  mention: "mention";
505
510
  play: "play";
506
511
  followup: "followup";
512
+ reminder: "reminder";
507
513
  }>;
508
514
  at: z.ZodISODateTime;
509
515
  by: z.ZodNullable<z.ZodObject<{
@@ -860,6 +866,7 @@ export declare const GoalDetail: z.ZodObject<{
860
866
  mention: "mention";
861
867
  play: "play";
862
868
  followup: "followup";
869
+ reminder: "reminder";
863
870
  }>;
864
871
  at: z.ZodISODateTime;
865
872
  by: z.ZodNullable<z.ZodObject<{
@@ -3,7 +3,7 @@ import { idSchema } from "../ids/ids.js";
3
3
  import { Limit } from "../list-input.js";
4
4
  import { Message } from "../messages/messages.js";
5
5
  import { Missing } from "../missing/missing.js";
6
- import { NodeId, NodeKind, NodePath, NodePerson } from "../nodes/nodes.js";
6
+ import { CreateSection, NodeId, NodeKind, NodePath, NodePerson } from "../nodes/nodes.js";
7
7
  import { IdempotencyKey, Rev } from "../primitives/primitives.js";
8
8
  import { Schedule } from "../schedule/schedule.js";
9
9
  import { UserId } from "../users/users.js";
@@ -51,8 +51,9 @@ const GoalFieldsInput = {
51
51
  .describe("Who gets the report of every run, someone who can read the goal; null for nobody."),
52
52
  };
53
53
  export const GoalCreateInput = z.strictObject({
54
- // ⚠️ Required and nullable (trap C015): null is the top level of Shared.
55
- parentId: NodeId.nullable().describe("The folder to create the goal in, one you can write to; null creates it on the top level of Shared."),
54
+ // ⚠️ Required and nullable (trap C015): null is the caller's own root folder (#791).
55
+ parentId: NodeId.nullable().describe("The folder to create the goal 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."),
56
+ section: CreateSection,
56
57
  name: z.string().max(200).describe("The name as people read it, like `Monatsbericht`."),
57
58
  content: Content,
58
59
  ...GoalFieldsInput,
@@ -141,10 +142,11 @@ export const GoalFollowUp = z.object({
141
142
  by: NodePerson,
142
143
  });
143
144
  // One time the Operator was woken for the run: by the rhythm or Play that started it, a mention in
144
- // the goal's chat, or its follow-up.
145
+ // the goal's chat, its follow-up, or Colab's reminder that the run has no plan or is not closed
146
+ // (#914).
145
147
  export const GoalSession = z.object({
146
148
  number: z.int(),
147
- trigger: z.enum(["rhythm", "play", "mention", "followup"]),
149
+ trigger: z.enum(["rhythm", "play", "mention", "followup", "reminder"]),
148
150
  at: z.iso.datetime(),
149
151
  // Who mentioned the Operator, or started the run; null for the rhythm and the follow-up.
150
152
  by: NodePerson.nullable(),
@@ -32,7 +32,7 @@ export declare const resources: {
32
32
  readonly event: "events";
33
33
  readonly page: "pages";
34
34
  readonly credential: "credentials";
35
- readonly sso: "sso";
35
+ readonly provider: "providers";
36
36
  readonly secret: "secrets";
37
37
  readonly step: "steps";
38
38
  readonly crawl: "crawls";
@@ -40,6 +40,7 @@ export declare const resources: {
40
40
  readonly source: "sources";
41
41
  readonly query: "queries";
42
42
  readonly item: "items";
43
+ readonly organisation: "organisations";
43
44
  };
44
45
  export declare const actions: readonly ["list", "get", "create", "update", "archive", "restore", "purge"];
45
46
  export declare const verbs: readonly ["invite", "resend", "disable", "enable", "rotate", "share", "move", "start", "complete", "test", "revoke", "remove", "unlock", "publish", "schedule", "unpublish", "cancel"];
@@ -55,9 +55,9 @@ export const resources = {
55
55
  // a package word (every word stands in one list only), and not `account`, the prefix of Better
56
56
  // Auth's linked sign-in accounts in `access` (`account_…`, PR #351).
57
57
  credential: "credentials",
58
- // A sign-in provider set up under Einstellungen › SSO (#358, E90): `access_sso_*`, named by the
59
- // ticket. An abbreviation without a plural, so the URL keeps it: `/api/access/sso/:ssoId`.
60
- sso: "sso",
58
+ // The app of a provider set up under Einstellungen › Anbieter (E153, #925; before it `sso`, #358):
59
+ // `access_provider_*`, for the sign-in and the employees' MCPs. Named by the ticket.
60
+ provider: "providers",
61
61
  // The password of a secret document or table (#357, E94), a sub-resource of the node, decided by
62
62
  // the orchestrator: `intelligence_node_secret_create` makes a node secret, `_update` changes the
63
63
  // password, `_get` shows it to an admin in admin mode, `_remove` makes the node public again. One
@@ -78,6 +78,9 @@ export const resources = {
78
78
  source: "sources",
79
79
  query: "queries",
80
80
  item: "items",
81
+ // The company as a whole (#930, Organisation › System): its default time zone and language,
82
+ // `access_organisation_get` and `_update`. One per installation, so its routes carry no id.
83
+ organisation: "organisations",
81
84
  };
82
85
  // The closed list of actions with a route of their own shape.
83
86
  export const actions = ["list", "get", "create", "update", "archive", "restore", "purge"];
@@ -238,6 +241,9 @@ const routeExceptions = {
238
241
  // The limits of personal Operators (E143, #804): without `userId` the company's defaults, with it
239
242
  // one person's own values. The defaults are no person, so there is no one `userId` for the path.
240
243
  operator_user_update: { method: "PATCH", path: "/api/operator/users" },
244
+ // The one organisation of an installation (#930): there is no `organisationId` to name.
245
+ access_organisation_get: { method: "GET", path: "/api/access/organisation" },
246
+ access_organisation_update: { method: "PATCH", path: "/api/access/organisation" },
241
247
  };
242
248
  // `access_user_invite` → `POST /api/access/users/:userId/invite`.
243
249
  export function toolRoute(name) {
@@ -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 an admin sets up, with client id and secret, which Colab cannot hold yet. Such an entry is
33
- // shown, not started.
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({ items: z.array(Mcp), nextCursor: McpId.nullable() });
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.