@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.
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 +121 -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 +2 -0
  16. package/dist/error/error.js +35 -2
  17. package/dist/files/files.d.ts +4 -0
  18. package/dist/files/files.js +3 -2
  19. package/dist/gadgets/gadgets.d.ts +143 -12
  20. package/dist/gadgets/gadgets.js +60 -12
  21. package/dist/goals/goals.d.ts +19 -0
  22. package/dist/goals/goals.js +10 -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 +47 -4
  44. package/dist/sources/sources.js +8 -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 +6 -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
@@ -28,8 +28,9 @@ export const Name = z.string().trim().min(1).max(200);
28
28
  // because it identifies the account, the picture because it only comes through its own door.
29
29
  export const ProfileUpdateInput = z.strictObject({
30
30
  name: Name.optional(),
31
- locale: Locale.optional(),
32
- timezone: TimeZone.optional(),
31
+ // `null` takes the choice back: the organisation's default holds again (#930).
32
+ locale: Locale.nullable().optional(),
33
+ timezone: TimeZone.nullable().optional(),
33
34
  theme: Theme.optional(),
34
35
  });
35
36
  // The picture's upload door takes the file itself as body, never base64 in JSON. The allowlist is
@@ -0,0 +1,128 @@
1
+ import { z } from "zod";
2
+ export declare const providerIds: readonly ["google", "microsoft", "slack"];
3
+ export declare const ProviderId: z.ZodEnum<{
4
+ google: "google";
5
+ microsoft: "microsoft";
6
+ slack: "slack";
7
+ }>;
8
+ export type ProviderId = z.infer<typeof ProviderId>;
9
+ export declare const signInProviderIds: readonly ["google", "microsoft"];
10
+ export declare const SignInProviderId: z.ZodEnum<{
11
+ google: "google";
12
+ microsoft: "microsoft";
13
+ }>;
14
+ export type SignInProviderId = z.infer<typeof SignInProviderId>;
15
+ export declare const offersSignIn: (id: ProviderId) => id is SignInProviderId;
16
+ export declare const providerEndpoints: {
17
+ readonly google: {
18
+ readonly authorize: "https://accounts.google.com/o/oauth2/v2/auth";
19
+ readonly token: "https://oauth2.googleapis.com/token";
20
+ readonly params: {
21
+ readonly access_type: "offline";
22
+ readonly prompt: "consent";
23
+ };
24
+ };
25
+ readonly microsoft: {
26
+ readonly authorize: "https://login.microsoftonline.com/common/oauth2/v2.0/authorize";
27
+ readonly token: "https://login.microsoftonline.com/common/oauth2/v2.0/token";
28
+ };
29
+ readonly slack: {
30
+ readonly authorize: "https://slack.com/oauth/v2_user/authorize";
31
+ readonly token: "https://slack.com/api/oauth.v2.user.access";
32
+ readonly separator: ",";
33
+ };
34
+ };
35
+ export declare const ProviderSource: z.ZodEnum<{
36
+ settings: "settings";
37
+ environment: "environment";
38
+ }>;
39
+ export type ProviderSource = z.infer<typeof ProviderSource>;
40
+ export declare const ProviderListInput: z.ZodObject<{}, z.core.$strict>;
41
+ export type ProviderListInput = z.infer<typeof ProviderListInput>;
42
+ export declare const ProviderUpdateInput: z.ZodObject<{
43
+ providerId: z.ZodEnum<{
44
+ google: "google";
45
+ microsoft: "microsoft";
46
+ slack: "slack";
47
+ }>;
48
+ clientId: z.ZodOptional<z.ZodString>;
49
+ clientSecret: z.ZodOptional<z.ZodString>;
50
+ signIn: z.ZodOptional<z.ZodBoolean>;
51
+ mcp: z.ZodOptional<z.ZodBoolean>;
52
+ }, z.core.$strict>;
53
+ export type ProviderUpdateInput = z.infer<typeof ProviderUpdateInput>;
54
+ export declare const ProviderRemoveInput: z.ZodObject<{
55
+ providerId: z.ZodEnum<{
56
+ google: "google";
57
+ microsoft: "microsoft";
58
+ slack: "slack";
59
+ }>;
60
+ }, z.core.$strict>;
61
+ export type ProviderRemoveInput = z.infer<typeof ProviderRemoveInput>;
62
+ export declare const ProviderTestInput: z.ZodObject<{
63
+ providerId: z.ZodEnum<{
64
+ google: "google";
65
+ microsoft: "microsoft";
66
+ slack: "slack";
67
+ }>;
68
+ }, z.core.$strict>;
69
+ export type ProviderTestInput = z.infer<typeof ProviderTestInput>;
70
+ export declare const Provider: z.ZodObject<{
71
+ providerId: z.ZodEnum<{
72
+ google: "google";
73
+ microsoft: "microsoft";
74
+ slack: "slack";
75
+ }>;
76
+ clientId: z.ZodNullable<z.ZodString>;
77
+ setAt: z.ZodNullable<z.ZodISODateTime>;
78
+ setBy: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
79
+ signIn: z.ZodBoolean;
80
+ mcp: z.ZodBoolean;
81
+ source: z.ZodNullable<z.ZodEnum<{
82
+ settings: "settings";
83
+ environment: "environment";
84
+ }>>;
85
+ signInRedirectUrl: z.ZodNullable<z.ZodURL>;
86
+ mcpRedirectUrl: z.ZodURL;
87
+ }, z.core.$strip>;
88
+ export type Provider = z.infer<typeof Provider>;
89
+ export declare const ProviderList: z.ZodObject<{
90
+ items: z.ZodArray<z.ZodObject<{
91
+ providerId: z.ZodEnum<{
92
+ google: "google";
93
+ microsoft: "microsoft";
94
+ slack: "slack";
95
+ }>;
96
+ clientId: z.ZodNullable<z.ZodString>;
97
+ setAt: z.ZodNullable<z.ZodISODateTime>;
98
+ setBy: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
99
+ signIn: z.ZodBoolean;
100
+ mcp: z.ZodBoolean;
101
+ source: z.ZodNullable<z.ZodEnum<{
102
+ settings: "settings";
103
+ environment: "environment";
104
+ }>>;
105
+ signInRedirectUrl: z.ZodNullable<z.ZodURL>;
106
+ mcpRedirectUrl: z.ZodURL;
107
+ }, z.core.$strip>>;
108
+ nextCursor: z.ZodNull;
109
+ }, z.core.$strip>;
110
+ export type ProviderList = z.infer<typeof ProviderList>;
111
+ export declare const ProviderTest: z.ZodObject<{
112
+ providerId: z.ZodEnum<{
113
+ google: "google";
114
+ microsoft: "microsoft";
115
+ slack: "slack";
116
+ }>;
117
+ ok: z.ZodBoolean;
118
+ problem: z.ZodNullable<z.ZodString>;
119
+ }, z.core.$strip>;
120
+ export type ProviderTest = z.infer<typeof ProviderTest>;
121
+ export declare const SignInProviders: z.ZodObject<{
122
+ providers: z.ZodArray<z.ZodEnum<{
123
+ google: "google";
124
+ microsoft: "microsoft";
125
+ }>>;
126
+ signUp: z.ZodBoolean;
127
+ }, z.core.$strip>;
128
+ export type SignInProviders = z.infer<typeof SignInProviders>;
@@ -0,0 +1,118 @@
1
+ import { z } from "zod";
2
+ import { UserId } from "../users/users.js";
3
+ // Einstellungen › Anbieter (E153, #925; until 2026-10-30 Einstellungen › SSO, #358, E90): ONE app per
4
+ // provider, registered by the customer at Google, Microsoft or Slack, with two purposes as switches:
5
+ // the sign-in to Colab (`signIn`) and the employees' MCPs (`mcp`, Einstellungen › MCPs). Slack offers
6
+ // no sign-in to Colab, only MCPs. The id is the provider's word from the code (`google`), not a ULID,
7
+ // like a connector's id: there are exactly these three, and the sign-in page and Better Auth name them
8
+ // so.
9
+ //
10
+ // ⚠️ The client secret goes in and never comes out: no answer carries it, and no field of an answer
11
+ // is called `secret` (`/mcp` would strike it, `redactSecrets`). The input field is `clientSecret`.
12
+ export const providerIds = ["google", "microsoft", "slack"];
13
+ export const ProviderId = z.enum(providerIds);
14
+ // The providers Colab offers a sign-in through. Slack is not one of them (E153).
15
+ export const signInProviderIds = ["google", "microsoft"];
16
+ export const SignInProviderId = z.enum(signInProviderIds);
17
+ export const offersSignIn = (id) => signInProviderIds.includes(id);
18
+ // The provider's OAuth endpoints for an app of its own (E153): an MCP of the catalog signs in there
19
+ // (`operator`), and `access_provider_test` asks the token endpoint. Microsoft's `common` takes an app
20
+ // for any tenant ("Konten in einem beliebigen Organisationsverzeichnis"). Slack's are those of a user
21
+ // token, which its MCP server takes. ⚠️ Proven on the stage only (#35), like the catalog's addresses.
22
+ export const providerEndpoints = {
23
+ google: {
24
+ authorize: "https://accounts.google.com/o/oauth2/v2/auth",
25
+ token: "https://oauth2.googleapis.com/token",
26
+ // Without both, Google hands out no refresh token and the MCP runs out after an hour.
27
+ params: { access_type: "offline", prompt: "consent" },
28
+ },
29
+ microsoft: {
30
+ authorize: "https://login.microsoftonline.com/common/oauth2/v2.0/authorize",
31
+ token: "https://login.microsoftonline.com/common/oauth2/v2.0/token",
32
+ },
33
+ slack: {
34
+ authorize: "https://slack.com/oauth/v2_user/authorize",
35
+ token: "https://slack.com/api/oauth.v2.user.access",
36
+ // Slack reads its scopes comma-separated.
37
+ separator: ",",
38
+ },
39
+ };
40
+ // Where the sign-in page gets a provider from right now: `settings` (set up here, in the database of
41
+ // `access`), `environment` (the installation's variables; locally `.dev.vars`), or null: not offered.
42
+ // Only the sign-in knows the variables; an app for MCPs exists in the settings alone.
43
+ export const ProviderSource = z.enum(["settings", "environment"]);
44
+ export const ProviderListInput = z.strictObject({});
45
+ // "Einrichten": the app's pair, the purposes, or both. A new client id with the old secret would sign
46
+ // nobody in, so the pair is replaced together; the first setup needs it. A purpose left out keeps its
47
+ // switch (off on a first setup).
48
+ export const ProviderUpdateInput = z.strictObject({
49
+ providerId: ProviderId.describe("The provider: google, microsoft or slack."),
50
+ clientId: z
51
+ .string()
52
+ .trim()
53
+ .min(1)
54
+ .max(512)
55
+ .optional()
56
+ .describe("The client id of the app registered at the provider. Required on the first setup, always together with clientSecret."),
57
+ clientSecret: z
58
+ .string()
59
+ .trim()
60
+ .min(1)
61
+ .max(1024)
62
+ .optional()
63
+ .describe("The client secret of that app, always together with clientId. Stored sealed; no answer ever shows it again."),
64
+ signIn: z
65
+ .boolean()
66
+ .optional()
67
+ .describe("Whether the sign-in page offers this provider (google and microsoft only). Left out: unchanged."),
68
+ mcp: z
69
+ .boolean()
70
+ .optional()
71
+ .describe("Whether the employees' MCPs of this provider (Gmail, Google Calendar, Google Drive; Outlook, Microsoft Teams; Slack) connect through this app. Left out: unchanged."),
72
+ });
73
+ // "Entfernen": the provider's app is deleted at once and without archive. A provider the
74
+ // installation's variables name stays offered for the sign-in from there.
75
+ export const ProviderRemoveInput = z.strictObject({
76
+ providerId: ProviderId.describe("The provider: google, microsoft or slack."),
77
+ });
78
+ // "Testen" of the app itself: does the provider know this client id and secret? The sign-in's own
79
+ // test is a round trip in the person's browser and has no tool (`provider.ts`).
80
+ export const ProviderTestInput = z.strictObject({
81
+ providerId: ProviderId.describe("The provider: google, microsoft or slack."),
82
+ });
83
+ export const Provider = z.object({
84
+ providerId: ProviderId,
85
+ // Set up here: the client id, when and by whom. Null while it is not set up here.
86
+ clientId: z.string().nullable(),
87
+ setAt: z.iso.datetime().nullable(),
88
+ setBy: UserId.nullable(),
89
+ // What the app serves now. `signIn` is always false for Slack.
90
+ signIn: z.boolean(),
91
+ mcp: z.boolean(),
92
+ // Where the sign-in page takes the provider from; null when it offers none.
93
+ source: ProviderSource.nullable(),
94
+ // The addresses to enter at the provider as redirect URIs ("Weiterleitungs-Adresse"), one per
95
+ // purpose, both in the same app. `signInRedirectUrl` is null for Slack.
96
+ signInRedirectUrl: z.url().nullable(),
97
+ mcpRedirectUrl: z.url(),
98
+ });
99
+ export const ProviderList = z.object({
100
+ items: z.array(Provider),
101
+ // Three rows at most: never a further page.
102
+ nextCursor: z.null(),
103
+ });
104
+ // What the provider said to the client id and secret: `ok` when it knows the app, else `problem` in
105
+ // one sentence. Nobody is signed in by the test.
106
+ export const ProviderTest = z.object({
107
+ providerId: ProviderId,
108
+ ok: z.boolean(),
109
+ problem: z.string().nullable(),
110
+ });
111
+ // `GET /auth/providers`, public: which buttons the sign-in page shows, in their order. Nothing else
112
+ // of a provider travels here. `signUp` is true only while no person exists, or only one whose sign-up
113
+ // lapsed unconfirmed (E131): the first one signs up on the page and becomes the main admin (E9,
114
+ // #539); after that it says nothing about anybody.
115
+ export const SignInProviders = z.object({
116
+ providers: z.array(SignInProviderId),
117
+ signUp: z.boolean(),
118
+ });
@@ -102,25 +102,25 @@ export declare const RunList: z.ZodObject<{
102
102
  export type RunList = z.infer<typeof RunList>;
103
103
  export declare const RunDetail: z.ZodObject<{
104
104
  counts: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
105
+ archive: "archive";
105
106
  backlog: "backlog";
106
107
  open: "open";
107
108
  progress: "progress";
108
109
  done: "done";
109
110
  discarded: "discarded";
110
111
  blocked: "blocked";
111
- archive: "archive";
112
112
  }> & z.core.$partial, z.ZodNumber>>;
113
113
  columns: z.ZodNullable<z.ZodArray<z.ZodObject<{
114
114
  columnId: z.ZodTemplateLiteral<`column_${string}`>;
115
115
  name: z.ZodString;
116
116
  type: z.ZodEnum<{
117
+ archive: "archive";
117
118
  backlog: "backlog";
118
119
  open: "open";
119
120
  progress: "progress";
120
121
  done: "done";
121
122
  discarded: "discarded";
122
123
  blocked: "blocked";
123
- archive: "archive";
124
124
  }>;
125
125
  tasks: z.ZodNumber;
126
126
  }, z.core.$strip>>>;
@@ -131,8 +131,8 @@ export declare const RunDetail: z.ZodObject<{
131
131
  message: "message";
132
132
  user: "user";
133
133
  package: "package";
134
- target: "target";
135
134
  search: "search";
135
+ target: "target";
136
136
  calendar: "calendar";
137
137
  flag: "flag";
138
138
  route: "route";
@@ -8,5 +8,17 @@ export declare const RuntimeConfig: z.ZodObject<{
8
8
  en: "en";
9
9
  de: "de";
10
10
  }>;
11
+ organisationLanguage: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
12
+ en: "en";
13
+ de: "de";
14
+ }>>>;
15
+ organisationTimeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ organisationCurrency: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
17
+ EUR: "EUR";
18
+ USD: "USD";
19
+ CHF: "CHF";
20
+ GBP: "GBP";
21
+ }>>>;
22
+ organisationCurrencyRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
11
23
  }, z.core.$strip>;
12
24
  export type RuntimeConfig = z.infer<typeof RuntimeConfig>;
@@ -1,4 +1,5 @@
1
1
  import { z } from "zod";
2
+ import { Currency, CurrencyRate } from "./organisation/organisation.js";
2
3
  // What the UI learns from the Worker at `GET /config.json` before it renders (#19). One build serves
3
4
  // every installation, so nothing installation-specific may be baked into the bundle.
4
5
  //
@@ -15,4 +16,13 @@ export const RuntimeConfig = z.object({
15
16
  name: z.string(),
16
17
  // The installation's default UI language, used when the browser asks for none Colab speaks.
17
18
  language: z.enum(["en", "de"]),
19
+ // The defaults an admin set under Organisation › System (#930), null while unset: the language
20
+ // goes before the browser's for a person without their own, the zone is every time's lens for a
21
+ // person without their own. Optional: an older Worker does not send them.
22
+ organisationLanguage: z.enum(["en", "de"]).nullable().optional(),
23
+ organisationTimeZone: z.string().nullable().optional(),
24
+ // The currency amounts show in and its fixed rate (1 USD = rate), null while unset: amounts stay
25
+ // stored in US dollars and only the UI converts.
26
+ organisationCurrency: Currency.nullable().optional(),
27
+ organisationCurrencyRate: CurrencyRate.nullable().optional(),
18
28
  });
package/dist/sdk.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export { ActionAbort, ActionAbortReason, ActionChat, ActionGadget, ActionItem, ActionList, ActionListInput, ActionNotice, ActionNoticeButton, ActionNoticeCrumb, ActionNoticeItem, ActionNoticeKind, ActionNoticeReason, ActionNoticeTitle, ActionRow, ActionRunTask, ActionSection, ActionSource, ActionTask, actionFilters, isNodeRow, MachineInstructions, MachineInstructionsRead, } from "./actions/actions.js";
1
+ export { ActionAbort, ActionAbortReason, ActionChat, ActionGadget, ActionGoalRun, ActionItem, ActionList, ActionListInput, ActionNotice, ActionNoticeButton, ActionNoticeCrumb, ActionNoticeItem, ActionNoticeKind, ActionNoticeReason, ActionNoticeTitle, ActionRow, ActionRunTask, ActionSection, ActionSource, ActionTask, actionFilters, isNodeRow, MachineInstructions, MachineInstructionsRead, } from "./actions/actions.js";
2
2
  export { adminModeHeader, adminModeOn } from "./admin-mode.js";
3
3
  export { App, AppId, AppList, AppListInput, AppRevoked, AppRevokeInput, OwnAppListQuery, OwnSessionListQuery, Session, SessionId, SessionList, SessionListInput, SessionRevokeInput, SessionsRevoked, } from "./apps/apps.js";
4
- export { NodeArchived, NodeArchiveInput, NodePurged, NodePurgeInput, NodeRestoreInput, } from "./archive/archive.js";
4
+ export { ArchivedGoalLink, NodeArchived, NodeArchiveInput, NodePurged, NodePurgeInput, NodeRestoreInput, } from "./archive/archive.js";
5
5
  export { PasskeyDeleteInput, SetPasswordInput, SignUpInput, } from "./auth/auth.js";
6
6
  export { AuthorizationRequest, AuthorizationResponse, Identity, Rules, } from "./authorization/authorization.js";
7
7
  export { BoardColumn, BoardCreateInput, BoardDetail, BoardGetInput, BoardId, BoardKind, BoardLabel, BoardTaskBrief, BoardTaskBriefList, BoardTaskCreated, BoardTaskCreateInput, BoardTaskItem, BoardTaskList, BoardTaskListInput, BoardTaskUpdated, BoardTaskUpdateInput, BoardUpdateInput, boardKinds, compactTaskLimit, LabelId, maxBulkTasks, TaskDetail, TaskGetInput, TaskId, TaskImage, TaskUpdateInput, } from "./boards/boards.js";
@@ -17,7 +17,7 @@ export { ActorKind, Event, EventId, EventKind, EventList, EventListInput, EventS
17
17
  export { ExcerptCursor, excerptChars, RowsExcerpt, TextExcerpt } from "./excerpt/excerpt.js";
18
18
  export { FileCreateInput, FileDetail, type FileFormat, FileGetInput, FileId, FileTextState, FileUpdateInput, FileUpload, fileFormatExtensions, fileFormatOf, fileTextStates, maxFileBytes, UploadTicket, uploadTicketHeader, uploadTicketLifetimeMs, } from "./files/files.js";
19
19
  export { FunctionRemoved, ServiceInterfaceFunctionCreateInput, ServiceInterfaceFunctionRemoveInput, ServiceInterfaceFunctionUpdateInput, } from "./functions/functions.js";
20
- export { GadgetCall, GadgetCallCreateInput, GadgetCallEntry, GadgetCallGetInput, GadgetCallItem, GadgetCallList, GadgetCallListInput, GadgetCallStatus, GadgetChange, GadgetClientLog, GadgetConsoleLine, GadgetCreateInput, GadgetDetail, GadgetFile, GadgetFilePath, GadgetFunction, GadgetFunctionName, GadgetGetInput, GadgetLevel, GadgetManifest, GadgetPublishInput, GadgetSettings, GadgetTestInput, GadgetTestResult, GadgetTestRun, GadgetToolUse, GadgetUpdateInput, GadgetVersionRef, gadgetLimits, gadgetLogDays, } from "./gadgets/gadgets.js";
20
+ export { GadgetCall, GadgetCallCreateInput, GadgetCallEntry, GadgetCallGetInput, GadgetCallItem, GadgetCallList, GadgetCallListInput, GadgetCallStatus, GadgetChange, GadgetClientLog, GadgetConsoleLine, GadgetCreateInput, GadgetDetail, GadgetFile, GadgetFilePath, GadgetFunction, GadgetFunctionName, GadgetGetInput, GadgetLevel, GadgetManifest, GadgetPublishInput, GadgetSettings, GadgetTestHooks, GadgetTestInput, GadgetTestResult, GadgetTestRun, GadgetToolUse, GadgetUpdateInput, GadgetVersionRef, gadgetLimits, gadgetLogDays, TestLimits, testLimits, testLimitsText, } from "./gadgets/gadgets.js";
21
21
  export { GoalCheck, GoalCreateInput, GoalDetail, GoalFields, GoalFollowUp, GoalGetInput, GoalId, GoalPlanning, GoalPlanStep, GoalReady, GoalReport, GoalRunCancelInput, GoalRunCompleteInput, GoalRunCreateInput, GoalRunDetail, GoalRunGetInput, GoalRunItem, GoalRunList, GoalRunListInput, GoalRunStatus, GoalRunTrigger, GoalRunUpdateInput, GoalSession, GoalUpdateInput, goalPlannings, goalRunStatuses, } from "./goals/goals.js";
22
22
  export { type Action, actions, hasRoute, isAction, isPackage, isWord, type Package, packages, parseConnectorFunction, parseToolName, type Resource, type Route, resources, type ToolName, toolAnnotations, toolEvent, toolPermission, toolRoute, toolSchemaName, verbs, } from "./grammar/grammar.js";
23
23
  export { GrantId, GrantRight, NodeGrant, NodeGrantList, NodeGrantListInput, NodeGrantRevoked, NodeGrantRevokeInput, NodeShared, NodeShareInput, } from "./grants/grants.js";
@@ -33,9 +33,11 @@ export { ChatRead, ChatUpdateInput, Message, MessageAuthor, MessageCreateInput,
33
33
  export { Missing, MissingCall, MissingCode, missingCodes, Reached, } from "./missing/missing.js";
34
34
  export { BoardShownKind, BoardSystem, FolderCreated, FolderCreateInput, IntelligenceUser, IntelligenceUserList, IntelligenceUserListInput, NodeDetail, NodeGetInput, NodeHit, NodeHitFoundIn, NodeHitGroup, NodeId, NodeKind, NodeList, NodeListInput, NodeListItem, NodeMoved, NodeMoveInput, NodePath, NodePerson, NodeQuery, NodeReader, NodeSearch, NodeSection, NodeSort, NodeUpdateInput, NodeValidation, nodeKinds, responsibleKinds, SearchIndexState, SecretFields, SecretId, } from "./nodes/nodes.js";
35
35
  export { ChangeTrigger, Credential, CredentialCreateInput, CredentialGetInput, CredentialId, CredentialKind, CredentialList, CredentialListInput, CredentialRevokeInput, CredentialState, CredentialTested, CredentialTestInput, CredentialTestResult, CredentialUpdateInput, compactRunLimit, GatewayTarget, MachineDisableInput, MachineEnableInput, MachineGetInput, MachineListInput, modelsOf, Operator, OperatorBudget, OperatorLimits, OperatorList, OperatorMachineArchiveInput, OperatorMachineCreateInput, OperatorMachineRestoreInput, OperatorMachineUpdateInput, OperatorModel, type OperatorProviderEntry, OperatorRun, OperatorRunAgents, OperatorRunFallbackReason, OperatorRunGetInput, OperatorRunId, OperatorRunInstructions, OperatorRunList, OperatorRunListInput, OperatorRunReason, OperatorRunStatus, OperatorRunStep, OperatorRunStepKind, OperatorRunStepList, OperatorRunTokens, OperatorRunTouched, OperatorRunTrigger, OperatorRunUsage, OperatorRunWoken, OperatorState, OperatorUser, OperatorUserList, OperatorUserListInput, OperatorUserUpdateInput, operatorDefaults, operatorProviders, PauseReason, RunCancelInput, RunStepListInput, RunUpdateInput, runSummaryChars, Subagents, Trigger, } from "./operators/operators.js";
36
+ export { Currency, CurrencyRate, currencies, Organisation, OrganisationGetInput, OrganisationUpdateInput, } from "./organisation/organisation.js";
36
37
  export { PageDetail, PageGetInput, PageHead, PageHeading, PageId, PageList, PageListInput, PageSummary, } from "./pages/pages.js";
37
38
  export { IdempotencyKey, Rev } from "./primitives/primitives.js";
38
39
  export { Locale, locales, Name, ProfileImageResponse, ProfileUpdateInput, profileImageMaxBytes, profileImageTypes, Theme, TimeZone, themes, } from "./profile/profile.js";
40
+ export { offersSignIn, Provider, ProviderId, ProviderList, ProviderListInput, ProviderRemoveInput, ProviderSource, ProviderTest, ProviderTestInput, ProviderUpdateInput, providerEndpoints, providerIds, SignInProviderId, SignInProviders, signInProviderIds, } from "./providers/providers.js";
39
41
  export { GrantChange, PermissionsResponse, RightInCode, RightPath, RightTree, Role, RoleArchiveInput, RoleCreateInput, RoleDetail, RoleGetInput, RoleGrantCreateInput, RoleGrantRevokeInput, RoleId, RoleList, RoleListInput, RoleRestoreInput, RoleUpdateInput, } from "./roles/roles.js";
40
42
  export { RunDetail, RunGetInput, RunId, RunItem, RunList, RunListInput, RunStatus, runStatuses, } from "./runs/runs.js";
41
43
  export { RuntimeConfig } from "./runtime-config.js";
@@ -45,7 +47,6 @@ export { type Authorized, type AuthorizeResult, createServiceClient, type Interf
45
47
  export { ConsentResource, FunctionId, InterfaceId, RightWord, Service, ServiceArchiveInput, ServiceCreateInput, ServiceFunction, ServiceId, ServiceInterface, ServiceKeyIssued, ServiceList, ServiceListInput, ServiceName, ServicePurged, ServicePurgeInput, ServiceRestoreInput, ServiceRotateInput, ServiceUpdateInput, } from "./services/services.js";
46
48
  export { SkillCaseResult, SkillCreateInput, SkillDetail, SkillFields, SkillFile, SkillFilePath, SkillGetInput, SkillId, SkillOffer, SkillPoint, SkillRunCall, SkillRunDetail, SkillRunGetInput, SkillRunItem, SkillRunList, SkillRunListInput, SkillTestInput, SkillTestReport, SkillTokens, SkillTriggerHit, SkillUpdateInput, skillCaseStatuses, skillFilePattern, skillRunKinds, skillRunStatuses, } from "./skills/skills.js";
47
49
  export { ItemId, QueryId, SourceAccess, SourceCreateInput, SourceDetail, SourceField, SourceFieldType, SourceGetInput, SourceItem, SourceItemList, SourceItemListInput, SourceManifest, SourcePaging, SourceParam, SourcePath, SourceProbe, SourcePublishInput, SourceQuery, SourceQueryArchiveInput, SourceQueryCreateInput, SourceQueryList, SourceQueryListInput, SourceQueryRestoreInput, SourceQueryUpdateInput, SourceRun, SourceRunCounts, SourceRunCreateInput, SourceRunFailure, SourceRunGetInput, SourceRunList, SourceRunListInput, SourceSchedule, SourceSecretsInput, SourceStep, SourceTestInput, SourceUpdateInput, SourceVersionRef, SourceWhere, sourceCleans, sourceCodePath, sourceEvery, sourceFieldTypes, sourceKeepDays, sourceLimits, sourceManifestPath, sourceSchema, } from "./sources/sources.js";
48
- export { SignInProviders, Sso, SsoId, SsoList, SsoListInput, SsoRemoveInput, SsoSource, SsoUpdateInput, ssoIds, } from "./sso/sso.js";
49
50
  export { TableColumn, TableColumnChange, TableColumnType, TableCreateInput, TableDetail, TableExcerpt, TableGetInput, TableId, TableSaved, TableUpdateInput, tableColumnTypes, tableFormats, } from "./tables/tables.js";
50
51
  export { type Actor, defineTool, type Permission, type Tool, type ToolAnnotations, type ToolContext, type ToolInput, type ToolSource, } from "./tool.js";
51
52
  export { compareTreeNames, treeKindOrder, treeKindRank, } from "./tree-order/tree-order.js";
package/dist/sdk.js CHANGED
@@ -1,10 +1,10 @@
1
1
  // The contract between UI, backends and outside services, published as `@anchrd/colab-sdk`. The
2
2
  // package exports only this file, so everything public is named here once.
3
3
  // biome-ignore lint/performance/noBarrelFile: this file IS the entry point of the package.
4
- export { ActionAbort, ActionAbortReason, ActionChat, ActionGadget, ActionItem, ActionList, ActionListInput, ActionNotice, ActionNoticeButton, ActionNoticeCrumb, ActionNoticeItem, ActionNoticeKind, ActionNoticeReason, ActionNoticeTitle, ActionRow, ActionRunTask, ActionSection, ActionSource, ActionTask, actionFilters, isNodeRow, MachineInstructions, MachineInstructionsRead, } from "./actions/actions.js";
4
+ export { ActionAbort, ActionAbortReason, ActionChat, ActionGadget, ActionGoalRun, ActionItem, ActionList, ActionListInput, ActionNotice, ActionNoticeButton, ActionNoticeCrumb, ActionNoticeItem, ActionNoticeKind, ActionNoticeReason, ActionNoticeTitle, ActionRow, ActionRunTask, ActionSection, ActionSource, ActionTask, actionFilters, isNodeRow, MachineInstructions, MachineInstructionsRead, } from "./actions/actions.js";
5
5
  export { adminModeHeader, adminModeOn } from "./admin-mode.js";
6
6
  export { App, AppId, AppList, AppListInput, AppRevoked, AppRevokeInput, OwnAppListQuery, OwnSessionListQuery, Session, SessionId, SessionList, SessionListInput, SessionRevokeInput, SessionsRevoked, } from "./apps/apps.js";
7
- export { NodeArchived, NodeArchiveInput, NodePurged, NodePurgeInput, NodeRestoreInput, } from "./archive/archive.js";
7
+ export { ArchivedGoalLink, NodeArchived, NodeArchiveInput, NodePurged, NodePurgeInput, NodeRestoreInput, } from "./archive/archive.js";
8
8
  export { PasskeyDeleteInput, SetPasswordInput, SignUpInput, } from "./auth/auth.js";
9
9
  export { AuthorizationRequest, AuthorizationResponse, Identity, Rules, } from "./authorization/authorization.js";
10
10
  export { BoardColumn, BoardCreateInput, BoardDetail, BoardGetInput, BoardId, BoardKind, BoardLabel, BoardTaskBrief, BoardTaskBriefList, BoardTaskCreated, BoardTaskCreateInput, BoardTaskItem, BoardTaskList, BoardTaskListInput, BoardTaskUpdated, BoardTaskUpdateInput, BoardUpdateInput, boardKinds, compactTaskLimit, LabelId, maxBulkTasks, TaskDetail, TaskGetInput, TaskId, TaskImage, TaskUpdateInput, } from "./boards/boards.js";
@@ -20,7 +20,7 @@ export { ActorKind, Event, EventId, EventKind, EventList, EventListInput, EventS
20
20
  export { ExcerptCursor, excerptChars, RowsExcerpt, TextExcerpt } from "./excerpt/excerpt.js";
21
21
  export { FileCreateInput, FileDetail, FileGetInput, FileId, FileTextState, FileUpdateInput, FileUpload, fileFormatExtensions, fileFormatOf, fileTextStates, maxFileBytes, UploadTicket, uploadTicketHeader, uploadTicketLifetimeMs, } from "./files/files.js";
22
22
  export { FunctionRemoved, ServiceInterfaceFunctionCreateInput, ServiceInterfaceFunctionRemoveInput, ServiceInterfaceFunctionUpdateInput, } from "./functions/functions.js";
23
- export { GadgetCall, GadgetCallCreateInput, GadgetCallEntry, GadgetCallGetInput, GadgetCallItem, GadgetCallList, GadgetCallListInput, GadgetCallStatus, GadgetChange, GadgetClientLog, GadgetConsoleLine, GadgetCreateInput, GadgetDetail, GadgetFile, GadgetFilePath, GadgetFunction, GadgetFunctionName, GadgetGetInput, GadgetLevel, GadgetManifest, GadgetPublishInput, GadgetSettings, GadgetTestInput, GadgetTestResult, GadgetTestRun, GadgetToolUse, GadgetUpdateInput, GadgetVersionRef, gadgetLimits, gadgetLogDays, } from "./gadgets/gadgets.js";
23
+ export { GadgetCall, GadgetCallCreateInput, GadgetCallEntry, GadgetCallGetInput, GadgetCallItem, GadgetCallList, GadgetCallListInput, GadgetCallStatus, GadgetChange, GadgetClientLog, GadgetConsoleLine, GadgetCreateInput, GadgetDetail, GadgetFile, GadgetFilePath, GadgetFunction, GadgetFunctionName, GadgetGetInput, GadgetLevel, GadgetManifest, GadgetPublishInput, GadgetSettings, GadgetTestHooks, GadgetTestInput, GadgetTestResult, GadgetTestRun, GadgetToolUse, GadgetUpdateInput, GadgetVersionRef, gadgetLimits, gadgetLogDays, TestLimits, testLimits, testLimitsText, } from "./gadgets/gadgets.js";
24
24
  export { GoalCheck, GoalCreateInput, GoalDetail, GoalFields, GoalFollowUp, GoalGetInput, GoalId, GoalPlanning, GoalPlanStep, GoalReady, GoalReport, GoalRunCancelInput, GoalRunCompleteInput, GoalRunCreateInput, GoalRunDetail, GoalRunGetInput, GoalRunItem, GoalRunList, GoalRunListInput, GoalRunStatus, GoalRunTrigger, GoalRunUpdateInput, GoalSession, GoalUpdateInput, goalPlannings, goalRunStatuses, } from "./goals/goals.js";
25
25
  export { actions, hasRoute, isAction, isPackage, isWord, packages, parseConnectorFunction, parseToolName, resources, toolAnnotations, toolEvent, toolPermission, toolRoute, toolSchemaName, verbs, } from "./grammar/grammar.js";
26
26
  export { GrantId, GrantRight, NodeGrant, NodeGrantList, NodeGrantListInput, NodeGrantRevoked, NodeGrantRevokeInput, NodeShared, NodeShareInput, } from "./grants/grants.js";
@@ -36,9 +36,11 @@ export { ChatRead, ChatUpdateInput, Message, MessageAuthor, MessageCreateInput,
36
36
  export { Missing, MissingCall, MissingCode, missingCodes, Reached, } from "./missing/missing.js";
37
37
  export { BoardShownKind, BoardSystem, FolderCreated, FolderCreateInput, IntelligenceUser, IntelligenceUserList, IntelligenceUserListInput, NodeDetail, NodeGetInput, NodeHit, NodeHitFoundIn, NodeHitGroup, NodeId, NodeKind, NodeList, NodeListInput, NodeListItem, NodeMoved, NodeMoveInput, NodePath, NodePerson, NodeQuery, NodeReader, NodeSearch, NodeSection, NodeSort, NodeUpdateInput, NodeValidation, nodeKinds, responsibleKinds, SearchIndexState, SecretFields, SecretId, } from "./nodes/nodes.js";
38
38
  export { ChangeTrigger, Credential, CredentialCreateInput, CredentialGetInput, CredentialId, CredentialKind, CredentialList, CredentialListInput, CredentialRevokeInput, CredentialState, CredentialTested, CredentialTestInput, CredentialTestResult, CredentialUpdateInput, compactRunLimit, GatewayTarget, MachineDisableInput, MachineEnableInput, MachineGetInput, MachineListInput, modelsOf, Operator, OperatorBudget, OperatorLimits, OperatorList, OperatorMachineArchiveInput, OperatorMachineCreateInput, OperatorMachineRestoreInput, OperatorMachineUpdateInput, OperatorModel, OperatorRun, OperatorRunAgents, OperatorRunFallbackReason, OperatorRunGetInput, OperatorRunId, OperatorRunInstructions, OperatorRunList, OperatorRunListInput, OperatorRunReason, OperatorRunStatus, OperatorRunStep, OperatorRunStepKind, OperatorRunStepList, OperatorRunTokens, OperatorRunTouched, OperatorRunTrigger, OperatorRunUsage, OperatorRunWoken, OperatorState, OperatorUser, OperatorUserList, OperatorUserListInput, OperatorUserUpdateInput, operatorDefaults, operatorProviders, PauseReason, RunCancelInput, RunStepListInput, RunUpdateInput, runSummaryChars, Subagents, Trigger, } from "./operators/operators.js";
39
+ export { Currency, CurrencyRate, currencies, Organisation, OrganisationGetInput, OrganisationUpdateInput, } from "./organisation/organisation.js";
39
40
  export { PageDetail, PageGetInput, PageHead, PageHeading, PageId, PageList, PageListInput, PageSummary, } from "./pages/pages.js";
40
41
  export { IdempotencyKey, Rev } from "./primitives/primitives.js";
41
42
  export { Locale, locales, Name, ProfileImageResponse, ProfileUpdateInput, profileImageMaxBytes, profileImageTypes, Theme, TimeZone, themes, } from "./profile/profile.js";
43
+ export { offersSignIn, Provider, ProviderId, ProviderList, ProviderListInput, ProviderRemoveInput, ProviderSource, ProviderTest, ProviderTestInput, ProviderUpdateInput, providerEndpoints, providerIds, SignInProviderId, SignInProviders, signInProviderIds, } from "./providers/providers.js";
42
44
  export { GrantChange, PermissionsResponse, RightInCode, RightPath, RightTree, Role, RoleArchiveInput, RoleCreateInput, RoleDetail, RoleGetInput, RoleGrantCreateInput, RoleGrantRevokeInput, RoleId, RoleList, RoleListInput, RoleRestoreInput, RoleUpdateInput, } from "./roles/roles.js";
43
45
  export { RunDetail, RunGetInput, RunId, RunItem, RunList, RunListInput, RunStatus, runStatuses, } from "./runs/runs.js";
44
46
  export { RuntimeConfig } from "./runtime-config.js";
@@ -48,7 +50,6 @@ export { createServiceClient, } from "./service-client/service-client.js";
48
50
  export { ConsentResource, FunctionId, InterfaceId, RightWord, Service, ServiceArchiveInput, ServiceCreateInput, ServiceFunction, ServiceId, ServiceInterface, ServiceKeyIssued, ServiceList, ServiceListInput, ServiceName, ServicePurged, ServicePurgeInput, ServiceRestoreInput, ServiceRotateInput, ServiceUpdateInput, } from "./services/services.js";
49
51
  export { SkillCaseResult, SkillCreateInput, SkillDetail, SkillFields, SkillFile, SkillFilePath, SkillGetInput, SkillId, SkillOffer, SkillPoint, SkillRunCall, SkillRunDetail, SkillRunGetInput, SkillRunItem, SkillRunList, SkillRunListInput, SkillTestInput, SkillTestReport, SkillTokens, SkillTriggerHit, SkillUpdateInput, skillCaseStatuses, skillFilePattern, skillRunKinds, skillRunStatuses, } from "./skills/skills.js";
50
52
  export { ItemId, QueryId, SourceAccess, SourceCreateInput, SourceDetail, SourceField, SourceFieldType, SourceGetInput, SourceItem, SourceItemList, SourceItemListInput, SourceManifest, SourcePaging, SourceParam, SourcePath, SourceProbe, SourcePublishInput, SourceQuery, SourceQueryArchiveInput, SourceQueryCreateInput, SourceQueryList, SourceQueryListInput, SourceQueryRestoreInput, SourceQueryUpdateInput, SourceRun, SourceRunCounts, SourceRunCreateInput, SourceRunFailure, SourceRunGetInput, SourceRunList, SourceRunListInput, SourceSchedule, SourceSecretsInput, SourceStep, SourceTestInput, SourceUpdateInput, SourceVersionRef, SourceWhere, sourceCleans, sourceCodePath, sourceEvery, sourceFieldTypes, sourceKeepDays, sourceLimits, sourceManifestPath, sourceSchema, } from "./sources/sources.js";
51
- export { SignInProviders, Sso, SsoId, SsoList, SsoListInput, SsoRemoveInput, SsoSource, SsoUpdateInput, ssoIds, } from "./sso/sso.js";
52
53
  export { TableColumn, TableColumnChange, TableColumnType, TableCreateInput, TableDetail, TableExcerpt, TableGetInput, TableId, TableSaved, TableUpdateInput, tableColumnTypes, tableFormats, } from "./tables/tables.js";
53
54
  export { defineTool, } from "./tool.js";
54
55
  export { compareTreeNames, treeKindOrder, treeKindRank, } from "./tree-order/tree-order.js";
@@ -5,6 +5,10 @@ export declare const skillFilePattern: RegExp;
5
5
  export declare const SkillFilePath: z.ZodString;
6
6
  export declare const SkillCreateInput: z.ZodObject<{
7
7
  parentId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
8
+ section: z.ZodOptional<z.ZodEnum<{
9
+ own: "own";
10
+ shared: "shared";
11
+ }>>;
8
12
  name: z.ZodString;
9
13
  content: z.ZodString;
10
14
  result: z.ZodOptional<z.ZodString>;
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
2
  import { idSchema } from "../ids/ids.js";
3
3
  import { Flag, Limit } from "../list-input.js";
4
- import { NodeId, NodePath, NodePerson } from "../nodes/nodes.js";
4
+ import { CreateSection, NodeId, NodePath, NodePerson } from "../nodes/nodes.js";
5
5
  import { IdempotencyKey, Rev } from "../primitives/primitives.js";
6
6
  // Skills (#817, #807, Nodes › Skill, E140): the inputs of `intelligence_skill_create|get|update|test`
7
7
  // and `intelligence_skill_run_list|get`, and their answers. A skill says how something is done well:
@@ -34,7 +34,8 @@ export const SkillFilePath = z
34
34
  const FileText = z.string().max(500_000);
35
35
  export const SkillCreateInput = z.strictObject({
36
36
  // ⚠️ Required and nullable (trap C015): null is the top level of Shared.
37
- parentId: NodeId.nullable().describe("The folder to create the skill in, one you can write to, mostly `.Skills` or the folder it is for; null creates it on the top level of Shared."),
37
+ parentId: NodeId.nullable().describe("The folder to create the skill in, one you can write to, mostly `.Skills` or the folder it is for; null creates it in your own root folder (Own), or on the top level of Shared with section shared."),
38
+ section: CreateSection,
38
39
  name: z.string().max(200).describe("The name as people read it, like `Leads übernehmen`."),
39
40
  content: Content,
40
41
  result: Result.optional(),
@@ -159,6 +159,7 @@ export declare const sourceCodePath = "source.js";
159
159
  export declare const sourceLimits: {
160
160
  readonly timeoutMs: 10000;
161
161
  readonly bytes: number;
162
+ readonly streamBytes: number;
162
163
  readonly pages: 5;
163
164
  readonly requests: 50;
164
165
  readonly items: 1000;
@@ -198,6 +199,10 @@ export declare const SourceWhere: z.ZodObject<{
198
199
  export type SourceWhere = z.infer<typeof SourceWhere>;
199
200
  export declare const SourceCreateInput: z.ZodObject<{
200
201
  parentId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
202
+ section: z.ZodOptional<z.ZodEnum<{
203
+ own: "own";
204
+ shared: "shared";
205
+ }>>;
201
206
  name: z.ZodString;
202
207
  files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
203
208
  idempotencyKey: z.ZodString;
@@ -407,8 +412,8 @@ export declare const SourceRunCounts: z.ZodObject<{
407
412
  export type SourceRunCounts = z.infer<typeof SourceRunCounts>;
408
413
  export declare const SourceRunFailure: z.ZodEnum<{
409
414
  access: "access";
410
- code: "code";
411
415
  provider: "provider";
416
+ code: "code";
412
417
  host: "host";
413
418
  }>;
414
419
  export declare const SourceRun: z.ZodObject<{
@@ -436,8 +441,8 @@ export declare const SourceRun: z.ZodObject<{
436
441
  }>;
437
442
  failure: z.ZodNullable<z.ZodEnum<{
438
443
  access: "access";
439
- code: "code";
440
444
  provider: "provider";
445
+ code: "code";
441
446
  host: "host";
442
447
  }>>;
443
448
  message: z.ZodNullable<z.ZodString>;
@@ -489,8 +494,8 @@ export declare const SourceRunList: z.ZodObject<{
489
494
  }>;
490
495
  failure: z.ZodNullable<z.ZodEnum<{
491
496
  access: "access";
492
- code: "code";
493
497
  provider: "provider";
498
+ code: "code";
494
499
  host: "host";
495
500
  }>>;
496
501
  message: z.ZodNullable<z.ZodString>;
@@ -655,8 +660,8 @@ export declare const SourceProbe: z.ZodObject<{
655
660
  }>;
656
661
  failure: z.ZodNullable<z.ZodEnum<{
657
662
  access: "access";
658
- code: "code";
659
663
  provider: "provider";
664
+ code: "code";
660
665
  host: "host";
661
666
  }>>;
662
667
  message: z.ZodNullable<z.ZodString>;
@@ -861,7 +866,45 @@ export declare const SourceDetail: z.ZodObject<{
861
866
  line: z.ZodNumber;
862
867
  column: z.ZodNumber;
863
868
  }, z.core.$strip>>;
869
+ calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
870
+ name: z.ZodString;
871
+ durationMs: z.ZodNumber;
872
+ code: z.ZodNullable<z.ZodEnum<{
873
+ not_found: "not_found";
874
+ invalid: "invalid";
875
+ conflict: "conflict";
876
+ unauthenticated: "unauthenticated";
877
+ unavailable: "unavailable";
878
+ }>>;
879
+ }, z.core.$strip>>>;
864
880
  }, z.core.$strip>>;
881
+ hooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
882
+ file: z.ZodString;
883
+ durationMs: z.ZodNumber;
884
+ calls: z.ZodArray<z.ZodObject<{
885
+ name: z.ZodString;
886
+ durationMs: z.ZodNumber;
887
+ code: z.ZodNullable<z.ZodEnum<{
888
+ not_found: "not_found";
889
+ invalid: "invalid";
890
+ conflict: "conflict";
891
+ unauthenticated: "unauthenticated";
892
+ unavailable: "unavailable";
893
+ }>>;
894
+ }, z.core.$strip>>;
895
+ }, z.core.$strip>>>;
896
+ note: z.ZodOptional<z.ZodString>;
897
+ limits: z.ZodObject<{
898
+ testMs: z.ZodNumber;
899
+ testTools: z.ZodNumber;
900
+ fileMs: z.ZodNumber;
901
+ fileCpuMs: z.ZodNumber;
902
+ fileMemoryMb: z.ZodNumber;
903
+ filesAtOnce: z.ZodNumber;
904
+ runMs: z.ZodNumber;
905
+ hooksMs: z.ZodNumber;
906
+ hooksTools: z.ZodNumber;
907
+ }, z.core.$strip>;
865
908
  }, z.core.$strip>>;
866
909
  settings: z.ZodNullable<z.ZodObject<{
867
910
  responsible: z.ZodNullable<z.ZodObject<{
@@ -2,7 +2,7 @@ import { z } from "zod";
2
2
  import { GadgetFile, GadgetFilePath, GadgetLevel, GadgetTestRun } from "../gadgets/gadgets.js";
3
3
  import { idSchema } from "../ids/ids.js";
4
4
  import { Flag, 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 { RunId } from "../runs/runs.js";
8
8
  import { UserId } from "../users/users.js";
@@ -114,8 +114,12 @@ export const sourceCodePath = "source.js";
114
114
  // A run's limits (Nodes › Quelle › Grenzen).
115
115
  export const sourceLimits = {
116
116
  timeoutMs: 10_000,
117
- // As much as a connector's bridge (`bridgeLimits.bytes`): Arbeitnow sends about 2.8 MB a page (#916).
117
+ // An answer read whole, by `api.json`, `api.text` and `api.post` of a `source.js`: as much as a
118
+ // connector's bridge (`bridgeLimits.bytes`).
118
119
  bytes: 5 * 1024 * 1024,
120
+ // An answer read in the stream, every page of kind json and rss and `api.each` (#936): only a brake
121
+ // against an answer without end, because a run keeps the entries it needs and never the answer.
122
+ streamBytes: 50 * 1024 * 1024,
119
123
  pages: 5,
120
124
  // A `source.js` sends at most this many requests per run (a list, then a detail per entry).
121
125
  requests: 50,
@@ -170,7 +174,8 @@ const ParamValues = z
170
174
  // ---- Tool inputs ----
171
175
  const FileContent = z.string().describe("The file's whole text.");
172
176
  export const SourceCreateInput = z.strictObject({
173
- parentId: NodeId.nullable().describe("The folder to create the source in, one you can write to; null creates it on the top level of Shared."),
177
+ parentId: NodeId.nullable().describe("The folder to create the source 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."),
178
+ section: CreateSection,
174
179
  name: z.string().max(200).describe("The name as people read it."),
175
180
  files: z
176
181
  .record(GadgetFilePath, FileContent)
@@ -35,6 +35,10 @@ export declare const TableColumnChange: z.ZodObject<{
35
35
  export type TableColumnChange = z.infer<typeof TableColumnChange>;
36
36
  export declare const TableCreateInput: z.ZodObject<{
37
37
  parentId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
38
+ section: z.ZodOptional<z.ZodEnum<{
39
+ own: "own";
40
+ shared: "shared";
41
+ }>>;
38
42
  name: z.ZodString;
39
43
  columns: z.ZodArray<z.ZodObject<{
40
44
  name: z.ZodString;
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { ExcerptCursor, RowsExcerpt } from "../excerpt/excerpt.js";
3
- import { NodeId, SecretFields } from "../nodes/nodes.js";
3
+ import { CreateSection, NodeId, SecretFields } from "../nodes/nodes.js";
4
4
  import { IdempotencyKey, Rev } from "../primitives/primitives.js";
5
5
  // Tables (#40, Nodes › Tabelle, E39, E59, E70): the inputs of `intelligence_table_create`, `_get`
6
6
  // and `_update`, and their answers. A table is CSV, stored and exported as it is, whose first line is
@@ -52,7 +52,8 @@ const EditSession = z
52
52
  .describe("The editing session the table view keeps while a person stays on the table: saves of one session go into one version. Leaving it out makes every save a version of its own, which is right for an AI.");
53
53
  export const TableCreateInput = z.strictObject({
54
54
  // ⚠️ Required and nullable (trap C015): null is the top level of Shared.
55
- parentId: NodeId.nullable().describe("The folder to create the table in, one you can write to; null creates it on the top level of Shared, visible to you until you share it."),
55
+ parentId: NodeId.nullable().describe("The folder to create the table 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 table's name as people read it."),
57
58
  columns: Columns.describe("The columns in their order, at least one, each with its name and type. They are the table's header."),
58
59
  rows: Rows.optional().describe("The first rows, each a list of cells in the order of the columns. Send rows or csv, not both; leaving both out creates an empty table."),