@anchrd/colab-sdk 0.1.36 → 0.1.37

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 (48) hide show
  1. package/dist/actions/actions.d.ts +30 -23
  2. package/dist/actions/actions.js +2 -2
  3. package/dist/archive/archive.d.ts +1 -0
  4. package/dist/archive/archive.js +3 -0
  5. package/dist/boards/boards.d.ts +21 -21
  6. package/dist/columns/columns.d.ts +2 -2
  7. package/dist/connectors/connectors.d.ts +6 -6
  8. package/dist/crawls/crawls.d.ts +3 -3
  9. package/dist/error/error.d.ts +9 -3
  10. package/dist/error/error.js +12 -3
  11. package/dist/gadgets/gadgets.d.ts +125 -9
  12. package/dist/gadgets/gadgets.js +123 -0
  13. package/dist/goals/goals.d.ts +54 -10
  14. package/dist/goals/goals.js +36 -7
  15. package/dist/grammar/grammar.d.ts +2 -0
  16. package/dist/grammar/grammar.js +10 -0
  17. package/dist/home/home.d.ts +300 -0
  18. package/dist/home/home.js +53 -0
  19. package/dist/links/links.d.ts +166 -0
  20. package/dist/links/links.js +149 -0
  21. package/dist/mcps/mcps.d.ts +3 -3
  22. package/dist/messages/messages.d.ts +3 -0
  23. package/dist/nodes/nodes.d.ts +46 -20
  24. package/dist/nodes/nodes.js +11 -3
  25. package/dist/operators/operators.d.ts +389 -47
  26. package/dist/operators/operators.js +268 -70
  27. package/dist/organisation/organisation.d.ts +2 -0
  28. package/dist/organisation/organisation.js +9 -0
  29. package/dist/primitives/primitives.d.ts +9 -0
  30. package/dist/primitives/primitives.js +16 -0
  31. package/dist/roles/roles.d.ts +1 -0
  32. package/dist/roles/roles.js +3 -0
  33. package/dist/runs/runs.d.ts +2 -2
  34. package/dist/sdk.d.ts +10 -9
  35. package/dist/sdk.js +10 -9
  36. package/dist/skills/skills.d.ts +37 -7
  37. package/dist/skills/skills.js +50 -0
  38. package/dist/sources/sources.d.ts +54 -14
  39. package/dist/sources/sources.js +50 -5
  40. package/dist/tables/tables.d.ts +42 -0
  41. package/dist/tables/tables.js +55 -2
  42. package/dist/tool.d.ts +1 -0
  43. package/dist/tree-order/tree-order.d.ts +2 -2
  44. package/dist/tree-order/tree-order.js +1 -1
  45. package/dist/users/users.d.ts +2 -0
  46. package/dist/users/users.js +3 -2
  47. package/dist/versions/versions.d.ts +13 -13
  48. package/package.json +1 -1
@@ -74,3 +74,169 @@ export declare const NodeLinkList: z.ZodObject<{
74
74
  nextCursor: z.ZodNullable<z.ZodTemplateLiteral<`link_${string}`>>;
75
75
  }, z.core.$strip>;
76
76
  export type NodeLinkList = z.infer<typeof NodeLinkList>;
77
+ export declare const gadgetLinkLimits: {
78
+ readonly visitorHour: 60;
79
+ readonly linkDay: 2000;
80
+ };
81
+ export declare const gadgetLinkPath = "/l";
82
+ export declare const GadgetLinkCreateInput: z.ZodObject<{
83
+ gadgetId: z.ZodTemplateLiteral<`node_${string}`>;
84
+ name: z.ZodOptional<z.ZodString>;
85
+ kind: z.ZodEnum<{
86
+ link: "link";
87
+ embed: "embed";
88
+ }>;
89
+ opensWith: z.ZodOptional<z.ZodEnum<{
90
+ mail: "mail";
91
+ password: "password";
92
+ }>>;
93
+ functions: z.ZodArray<z.ZodString>;
94
+ expiresInDays: z.ZodOptional<z.ZodNumber>;
95
+ password: z.ZodOptional<z.ZodString>;
96
+ domains: z.ZodOptional<z.ZodArray<z.ZodString>>;
97
+ limits: z.ZodOptional<z.ZodObject<{
98
+ visitorHour: z.ZodOptional<z.ZodNumber>;
99
+ linkDay: z.ZodOptional<z.ZodNumber>;
100
+ }, z.core.$strict>>;
101
+ idempotencyKey: z.ZodString;
102
+ }, z.core.$strict>;
103
+ export type GadgetLinkCreateInput = z.infer<typeof GadgetLinkCreateInput>;
104
+ export declare const GadgetLinkListInput: z.ZodObject<{
105
+ gadgetId: z.ZodTemplateLiteral<`node_${string}`>;
106
+ }, z.core.$strict>;
107
+ export type GadgetLinkListInput = z.infer<typeof GadgetLinkListInput>;
108
+ export declare const GadgetLinkRevokeInput: z.ZodObject<{
109
+ gadgetId: z.ZodTemplateLiteral<`node_${string}`>;
110
+ linkId: z.ZodTemplateLiteral<`link_${string}`>;
111
+ }, z.core.$strict>;
112
+ export type GadgetLinkRevokeInput = z.infer<typeof GadgetLinkRevokeInput>;
113
+ export declare const GadgetLink: z.ZodObject<{
114
+ linkId: z.ZodTemplateLiteral<`link_${string}`>;
115
+ gadgetId: z.ZodTemplateLiteral<`node_${string}`>;
116
+ kind: z.ZodEnum<{
117
+ link: "link";
118
+ embed: "embed";
119
+ }>;
120
+ name: z.ZodString;
121
+ opensWith: z.ZodNullable<z.ZodEnum<{
122
+ mail: "mail";
123
+ password: "password";
124
+ }>>;
125
+ url: z.ZodString;
126
+ functions: z.ZodArray<z.ZodString>;
127
+ domains: z.ZodArray<z.ZodString>;
128
+ password: z.ZodBoolean;
129
+ limits: z.ZodObject<{
130
+ visitorHour: z.ZodNumber;
131
+ linkDay: z.ZodNumber;
132
+ }, z.core.$strip>;
133
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
134
+ status: z.ZodEnum<{
135
+ expired: "expired";
136
+ revoked: "revoked";
137
+ active: "active";
138
+ inactive: "inactive";
139
+ }>;
140
+ calls: z.ZodNumber;
141
+ createdAt: z.ZodISODateTime;
142
+ createdBy: z.ZodObject<{
143
+ userId: z.ZodString;
144
+ name: z.ZodNullable<z.ZodString>;
145
+ }, z.core.$strip>;
146
+ madePassword: z.ZodOptional<z.ZodString>;
147
+ }, z.core.$strip>;
148
+ export type GadgetLink = z.infer<typeof GadgetLink>;
149
+ export declare const GadgetLinkList: z.ZodObject<{
150
+ items: z.ZodArray<z.ZodObject<{
151
+ linkId: z.ZodTemplateLiteral<`link_${string}`>;
152
+ gadgetId: z.ZodTemplateLiteral<`node_${string}`>;
153
+ kind: z.ZodEnum<{
154
+ link: "link";
155
+ embed: "embed";
156
+ }>;
157
+ name: z.ZodString;
158
+ opensWith: z.ZodNullable<z.ZodEnum<{
159
+ mail: "mail";
160
+ password: "password";
161
+ }>>;
162
+ url: z.ZodString;
163
+ functions: z.ZodArray<z.ZodString>;
164
+ domains: z.ZodArray<z.ZodString>;
165
+ password: z.ZodBoolean;
166
+ limits: z.ZodObject<{
167
+ visitorHour: z.ZodNumber;
168
+ linkDay: z.ZodNumber;
169
+ }, z.core.$strip>;
170
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
171
+ status: z.ZodEnum<{
172
+ expired: "expired";
173
+ revoked: "revoked";
174
+ active: "active";
175
+ inactive: "inactive";
176
+ }>;
177
+ calls: z.ZodNumber;
178
+ createdAt: z.ZodISODateTime;
179
+ createdBy: z.ZodObject<{
180
+ userId: z.ZodString;
181
+ name: z.ZodNullable<z.ZodString>;
182
+ }, z.core.$strip>;
183
+ madePassword: z.ZodOptional<z.ZodString>;
184
+ }, z.core.$strip>>;
185
+ }, z.core.$strip>;
186
+ export type GadgetLinkList = z.infer<typeof GadgetLinkList>;
187
+ export declare const GadgetLinkCallInput: z.ZodObject<{
188
+ function: z.ZodString;
189
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
190
+ password: z.ZodOptional<z.ZodString>;
191
+ visit: z.ZodOptional<z.ZodString>;
192
+ }, z.core.$strict>;
193
+ export type GadgetLinkCallInput = z.infer<typeof GadgetLinkCallInput>;
194
+ export declare const GadgetLinkVisitInput: z.ZodObject<{
195
+ password: z.ZodOptional<z.ZodString>;
196
+ address: z.ZodOptional<z.ZodEmail>;
197
+ code: z.ZodOptional<z.ZodString>;
198
+ turnstile: z.ZodOptional<z.ZodString>;
199
+ }, z.core.$strict>;
200
+ export type GadgetLinkVisitInput = z.infer<typeof GadgetLinkVisitInput>;
201
+ export declare const GadgetLinkCodeInput: z.ZodObject<{
202
+ address: z.ZodEmail;
203
+ }, z.core.$strict>;
204
+ export type GadgetLinkCodeInput = z.infer<typeof GadgetLinkCodeInput>;
205
+ export declare const GadgetLinkVisit: z.ZodObject<{
206
+ visit: z.ZodString;
207
+ expiresAt: z.ZodISODateTime;
208
+ gadget: z.ZodObject<{
209
+ name: z.ZodString;
210
+ files: z.ZodRecord<z.ZodString, z.ZodString>;
211
+ }, z.core.$strip>;
212
+ viewer: z.ZodObject<{
213
+ kind: z.ZodLiteral<"external">;
214
+ linkId: z.ZodString;
215
+ rights: z.ZodArray<z.ZodString>;
216
+ }, z.core.$strip>;
217
+ }, z.core.$strip>;
218
+ export type GadgetLinkVisit = z.infer<typeof GadgetLinkVisit>;
219
+ export declare const GadgetLinkPage: z.ZodDiscriminatedUnion<[z.ZodObject<{
220
+ status: z.ZodLiteral<"unknown">;
221
+ }, z.core.$strip>, z.ZodObject<{
222
+ status: z.ZodEnum<{
223
+ expired: "expired";
224
+ revoked: "revoked";
225
+ }>;
226
+ gadgetName: z.ZodString;
227
+ linkName: z.ZodString;
228
+ }, z.core.$strip>, z.ZodObject<{
229
+ status: z.ZodLiteral<"active">;
230
+ kind: z.ZodEnum<{
231
+ link: "link";
232
+ embed: "embed";
233
+ }>;
234
+ opensWith: z.ZodNullable<z.ZodEnum<{
235
+ mail: "mail";
236
+ password: "password";
237
+ }>>;
238
+ gadgetName: z.ZodString;
239
+ linkName: z.ZodString;
240
+ domains: z.ZodArray<z.ZodString>;
241
+ }, z.core.$strip>], "status">;
242
+ export type GadgetLinkPage = z.infer<typeof GadgetLinkPage>;
@@ -71,3 +71,152 @@ export const NodeLinkList = z.object({
71
71
  items: z.array(NodeLink),
72
72
  nextCursor: LinkId.nullable(),
73
73
  });
74
+ // A gadget's links for outside visitors (#820, E164): `link` (opened with a password, at most 90
75
+ // days) or `embed` (on allowed domains, without an end). A visitor calls only the checked functions
76
+ // of the gadget's service, with the gadget's own rights (`uses`, #986).
77
+ // The brakes' defaults (E164): calls per visitor and hour, per link and day.
78
+ export const gadgetLinkLimits = { visitorHour: 60, linkDay: 2000 };
79
+ // The path of the door a visitor reaches (`/l/<code>`), its code 12 letters and digits.
80
+ export const gadgetLinkPath = "/l";
81
+ const GadgetLinkFunction = z
82
+ .string()
83
+ .regex(/^[a-z][a-z0-9]*\.[a-z][a-z0-9]*$/)
84
+ .describe("A function of the gadget's service a visitor may call, as interface.function.");
85
+ const GadgetLinkDomain = z
86
+ .string()
87
+ .min(1)
88
+ .max(253)
89
+ .regex(/^(\*\.)?[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$/)
90
+ .describe("A domain the embed may stand on, such as kunde.de or *.kunde.de.");
91
+ const GadgetLinkLimitsInput = z.strictObject({
92
+ visitorHour: z
93
+ .number()
94
+ .int()
95
+ .min(1)
96
+ .max(10_000)
97
+ .optional()
98
+ .describe("Calls per visitor and hour; leaving it out gives 60."),
99
+ linkDay: z
100
+ .number()
101
+ .int()
102
+ .min(1)
103
+ .max(1_000_000)
104
+ .optional()
105
+ .describe("Calls per link and day; leaving it out gives 2,000."),
106
+ });
107
+ const GadgetIdForLink = NodeId.describe("The gadget's id, a `node_…` of kind gadget.");
108
+ export const GadgetLinkCreateInput = z.strictObject({
109
+ gadgetId: GadgetIdForLink,
110
+ name: z
111
+ .string()
112
+ .trim()
113
+ .min(1)
114
+ .max(120)
115
+ .optional()
116
+ .describe("The link's name for the people who share it; leaving it out gives the gadget's name."),
117
+ kind: z
118
+ .enum(["link", "embed"])
119
+ .describe("link: opened with a password or a code by mail, at most 90 days. embed: on the allowed domains only, without an end."),
120
+ opensWith: z
121
+ .enum(["password", "mail"])
122
+ .optional()
123
+ .describe("How a link opens: password (the default) or mail, a code the visitor gets by mail. Not for an embed."),
124
+ functions: z
125
+ .array(GadgetLinkFunction)
126
+ .min(1)
127
+ .max(100)
128
+ .describe("The functions of the gadget's service a visitor may call; everything else is not there."),
129
+ expiresInDays: z
130
+ .number()
131
+ .int()
132
+ .min(1)
133
+ .max(maxLinkDays)
134
+ .optional()
135
+ .describe("A link's days, 1 to 90; leaving it out gives 7. An embed has no end."),
136
+ password: z
137
+ .string()
138
+ .min(8)
139
+ .max(200)
140
+ .optional()
141
+ .describe("The password a visitor opens a link with, stored hashed. Only for a link that opens with a password; leaving it out makes one, shown once in the browser."),
142
+ domains: z
143
+ .array(GadgetLinkDomain)
144
+ .max(50)
145
+ .optional()
146
+ .describe("The domains an embed may stand on; required for kind embed, refused for a link."),
147
+ limits: GadgetLinkLimitsInput.optional().describe("The brakes; leaving them out gives the defaults."),
148
+ idempotencyKey: IdempotencyKey,
149
+ });
150
+ export const GadgetLinkListInput = z.strictObject({ gadgetId: GadgetIdForLink });
151
+ export const GadgetLinkRevokeInput = z.strictObject({ gadgetId: GadgetIdForLink, linkId: LinkId });
152
+ export const GadgetLink = z.object({
153
+ linkId: LinkId,
154
+ gadgetId: NodeId,
155
+ kind: z.enum(["link", "embed"]),
156
+ name: z.string(),
157
+ // How a link opens; null for an embed.
158
+ opensWith: z.enum(["password", "mail"]).nullable(),
159
+ // Derived every time, never stored: `<installation>/l/<code>`.
160
+ url: z.string(),
161
+ functions: z.array(z.string()),
162
+ domains: z.array(z.string()),
163
+ password: z.boolean(),
164
+ limits: z.object({ visitorHour: z.number().int(), linkDay: z.number().int() }),
165
+ // Null for an embed.
166
+ expiresAt: z.iso.datetime().nullable(),
167
+ status: LinkStatus,
168
+ // The calls the link took in the last seven days, counted by its daily brake.
169
+ calls: z.number().int(),
170
+ createdAt: z.iso.datetime(),
171
+ createdBy: z.object({ userId: z.string(), name: z.string().nullable() }),
172
+ // Only in the answer of the create that made it: the password Colab made, shown once.
173
+ madePassword: z.string().optional(),
174
+ });
175
+ export const GadgetLinkList = z.object({ items: z.array(GadgetLink) });
176
+ // What a visitor's call sends to `POST /l/<code>/calls` (#820): the function, its input, and the
177
+ // visit the page opened (or, for a link with a password, the password itself).
178
+ export const GadgetLinkCallInput = z.strictObject({
179
+ function: z.string().min(1).max(64),
180
+ input: z.record(z.string(), z.unknown()).optional(),
181
+ password: z.string().max(200).optional(),
182
+ visit: z.string().max(200).optional(),
183
+ });
184
+ // How the visitor's page opens a link (`POST /l/<code>/visits`, #820, E164): with the password, with
185
+ // the address and the code that came by mail, or for an embed with the token of the bot check.
186
+ export const GadgetLinkVisitInput = z.strictObject({
187
+ password: z.string().max(200).optional(),
188
+ address: z.email().max(254).optional(),
189
+ code: z.string().max(20).optional(),
190
+ turnstile: z.string().max(4096).optional(),
191
+ });
192
+ // A code by mail asked for (`POST /l/<code>/codes`).
193
+ export const GadgetLinkCodeInput = z.strictObject({ address: z.email().max(254) });
194
+ // An opened visit: the token every call sends, until when it holds, and the gadget's interface (its
195
+ // client files only, never `server.js` or its tests).
196
+ export const GadgetLinkVisit = z.object({
197
+ visit: z.string(),
198
+ expiresAt: z.iso.datetime(),
199
+ gadget: z.object({ name: z.string(), files: z.record(z.string(), z.string()) }),
200
+ viewer: z.object({
201
+ kind: z.literal("external"),
202
+ linkId: z.string(),
203
+ rights: z.array(z.string()),
204
+ }),
205
+ });
206
+ // What the page at `/l/<code>` is (#820): which screen it opens with. `unknown` names nothing.
207
+ export const GadgetLinkPage = z.discriminatedUnion("status", [
208
+ z.object({ status: z.literal("unknown") }),
209
+ z.object({
210
+ status: z.enum(["expired", "revoked"]),
211
+ gadgetName: z.string(),
212
+ linkName: z.string(),
213
+ }),
214
+ z.object({
215
+ status: z.literal("active"),
216
+ kind: z.enum(["link", "embed"]),
217
+ opensWith: z.enum(["password", "mail"]).nullable(),
218
+ gadgetName: z.string(),
219
+ linkName: z.string(),
220
+ domains: z.array(z.string()),
221
+ }),
222
+ ]);
@@ -340,11 +340,11 @@ export declare const McpList: z.ZodObject<{
340
340
  }, z.core.$strip>;
341
341
  export type McpList = z.infer<typeof McpList>;
342
342
  export declare const McpCallAction: z.ZodEnum<{
343
+ blocked: "blocked";
343
344
  update: "update";
344
345
  test: "test";
345
346
  revoke: "revoke";
346
347
  call: "call";
347
- blocked: "blocked";
348
348
  connect: "connect";
349
349
  signin: "signin";
350
350
  expire: "expire";
@@ -353,11 +353,11 @@ export type McpCallAction = z.infer<typeof McpCallAction>;
353
353
  export declare const McpCall: z.ZodObject<{
354
354
  callId: z.ZodTemplateLiteral<`call_${string}`>;
355
355
  action: z.ZodEnum<{
356
+ blocked: "blocked";
356
357
  update: "update";
357
358
  test: "test";
358
359
  revoke: "revoke";
359
360
  call: "call";
360
- blocked: "blocked";
361
361
  connect: "connect";
362
362
  signin: "signin";
363
363
  expire: "expire";
@@ -372,11 +372,11 @@ export declare const McpCallList: z.ZodObject<{
372
372
  items: z.ZodArray<z.ZodObject<{
373
373
  callId: z.ZodTemplateLiteral<`call_${string}`>;
374
374
  action: z.ZodEnum<{
375
+ blocked: "blocked";
375
376
  update: "update";
376
377
  test: "test";
377
378
  revoke: "revoke";
378
379
  call: "call";
379
- blocked: "blocked";
380
380
  connect: "connect";
381
381
  signin: "signin";
382
382
  expire: "expire";
@@ -37,6 +37,7 @@ export declare const MessageAuthor: z.ZodObject<{
37
37
  claude: "claude";
38
38
  codex: "codex";
39
39
  gemini: "gemini";
40
+ gateway: "gateway";
40
41
  }>>;
41
42
  }, z.core.$strip>>;
42
43
  appHandle: z.ZodNullable<z.ZodString>;
@@ -62,6 +63,7 @@ export declare const Message: z.ZodObject<{
62
63
  claude: "claude";
63
64
  codex: "codex";
64
65
  gemini: "gemini";
66
+ gateway: "gateway";
65
67
  }>>;
66
68
  }, z.core.$strip>>;
67
69
  appHandle: z.ZodNullable<z.ZodString>;
@@ -94,6 +96,7 @@ export declare const MessageList: z.ZodObject<{
94
96
  claude: "claude";
95
97
  codex: "codex";
96
98
  gemini: "gemini";
99
+ gateway: "gateway";
97
100
  }>>;
98
101
  }, z.core.$strip>>;
99
102
  appHandle: z.ZodNullable<z.ZodString>;
@@ -21,6 +21,21 @@ export declare const NodeKind: z.ZodEnum<{
21
21
  source: "source";
22
22
  }>;
23
23
  export type NodeKind = z.infer<typeof NodeKind>;
24
+ export declare const unknownNodeKind: "unknown";
25
+ export declare const NodeKindRead: z.ZodCatch<z.ZodEnum<{
26
+ unknown: "unknown";
27
+ file: "file";
28
+ folder: "folder";
29
+ document: "document";
30
+ table: "table";
31
+ board: "board";
32
+ task: "task";
33
+ gadget: "gadget";
34
+ goal: "goal";
35
+ skill: "skill";
36
+ source: "source";
37
+ }>>;
38
+ export type NodeKindRead = z.infer<typeof NodeKindRead>;
24
39
  export declare const responsibleKinds: readonly ["document", "table", "file"];
25
40
  export declare const BoardSystem: z.ZodEnum<{
26
41
  validation: "validation";
@@ -97,7 +112,8 @@ export declare const NodePath: z.ZodObject<{
97
112
  export type NodePath = z.infer<typeof NodePath>;
98
113
  export declare const NodeListItem: z.ZodObject<{
99
114
  nodeId: z.ZodTemplateLiteral<`node_${string}`>;
100
- kind: z.ZodEnum<{
115
+ kind: z.ZodCatch<z.ZodEnum<{
116
+ unknown: "unknown";
101
117
  file: "file";
102
118
  folder: "folder";
103
119
  document: "document";
@@ -108,7 +124,7 @@ export declare const NodeListItem: z.ZodObject<{
108
124
  goal: "goal";
109
125
  skill: "skill";
110
126
  source: "source";
111
- }>;
127
+ }>>;
112
128
  name: z.ZodString;
113
129
  hidden: z.ZodBoolean;
114
130
  rootOf: z.ZodNullable<z.ZodString>;
@@ -134,13 +150,13 @@ export declare const NodeListItem: z.ZodObject<{
134
150
  sharedWith: z.ZodNumber;
135
151
  archivedAt: z.ZodNullable<z.ZodISODateTime>;
136
152
  status: z.ZodNullable<z.ZodEnum<{
137
- archive: "archive";
138
153
  backlog: "backlog";
139
154
  open: "open";
140
155
  progress: "progress";
141
156
  done: "done";
142
157
  discarded: "discarded";
143
158
  blocked: "blocked";
159
+ archive: "archive";
144
160
  }>>;
145
161
  system: z.ZodNullable<z.ZodEnum<{
146
162
  validation: "validation";
@@ -169,7 +185,8 @@ export type NodeListItem = z.infer<typeof NodeListItem>;
169
185
  export declare const NodeList: z.ZodObject<{
170
186
  items: z.ZodArray<z.ZodObject<{
171
187
  nodeId: z.ZodTemplateLiteral<`node_${string}`>;
172
- kind: z.ZodEnum<{
188
+ kind: z.ZodCatch<z.ZodEnum<{
189
+ unknown: "unknown";
173
190
  file: "file";
174
191
  folder: "folder";
175
192
  document: "document";
@@ -180,7 +197,7 @@ export declare const NodeList: z.ZodObject<{
180
197
  goal: "goal";
181
198
  skill: "skill";
182
199
  source: "source";
183
- }>;
200
+ }>>;
184
201
  name: z.ZodString;
185
202
  hidden: z.ZodBoolean;
186
203
  rootOf: z.ZodNullable<z.ZodString>;
@@ -206,13 +223,13 @@ export declare const NodeList: z.ZodObject<{
206
223
  sharedWith: z.ZodNumber;
207
224
  archivedAt: z.ZodNullable<z.ZodISODateTime>;
208
225
  status: z.ZodNullable<z.ZodEnum<{
209
- archive: "archive";
210
226
  backlog: "backlog";
211
227
  open: "open";
212
228
  progress: "progress";
213
229
  done: "done";
214
230
  discarded: "discarded";
215
231
  blocked: "blocked";
232
+ archive: "archive";
216
233
  }>>;
217
234
  system: z.ZodNullable<z.ZodEnum<{
218
235
  validation: "validation";
@@ -255,8 +272,8 @@ export declare const NodeList: z.ZodObject<{
255
272
  export type NodeList = z.infer<typeof NodeList>;
256
273
  export declare const NodeHitFoundIn: z.ZodObject<{
257
274
  kind: z.ZodEnum<{
258
- page: "page";
259
275
  column: "column";
276
+ page: "page";
260
277
  title: "title";
261
278
  text: "text";
262
279
  card: "card";
@@ -266,7 +283,8 @@ export declare const NodeHitFoundIn: z.ZodObject<{
266
283
  export type NodeHitFoundIn = z.infer<typeof NodeHitFoundIn>;
267
284
  export declare const NodeHit: z.ZodObject<{
268
285
  nodeId: z.ZodTemplateLiteral<`node_${string}`>;
269
- kind: z.ZodEnum<{
286
+ kind: z.ZodCatch<z.ZodEnum<{
287
+ unknown: "unknown";
270
288
  file: "file";
271
289
  folder: "folder";
272
290
  document: "document";
@@ -277,7 +295,7 @@ export declare const NodeHit: z.ZodObject<{
277
295
  goal: "goal";
278
296
  skill: "skill";
279
297
  source: "source";
280
- }>;
298
+ }>>;
281
299
  name: z.ZodString;
282
300
  path: z.ZodObject<{
283
301
  section: z.ZodEnum<{
@@ -293,8 +311,8 @@ export declare const NodeHit: z.ZodObject<{
293
311
  snippet: z.ZodString;
294
312
  foundIn: z.ZodObject<{
295
313
  kind: z.ZodEnum<{
296
- page: "page";
297
314
  column: "column";
315
+ page: "page";
298
316
  title: "title";
299
317
  text: "text";
300
318
  card: "card";
@@ -303,13 +321,13 @@ export declare const NodeHit: z.ZodObject<{
303
321
  }, z.core.$strip>;
304
322
  rank: z.ZodNumber;
305
323
  status: z.ZodNullable<z.ZodEnum<{
306
- archive: "archive";
307
324
  backlog: "backlog";
308
325
  open: "open";
309
326
  progress: "progress";
310
327
  done: "done";
311
328
  discarded: "discarded";
312
329
  blocked: "blocked";
330
+ archive: "archive";
313
331
  }>>;
314
332
  updatedAt: z.ZodISODateTime;
315
333
  boardKind: z.ZodNullable<z.ZodEnum<{
@@ -339,7 +357,8 @@ export type NodeHitGroup = z.infer<typeof NodeHitGroup>;
339
357
  export declare const NodeSearch: z.ZodObject<{
340
358
  items: z.ZodArray<z.ZodObject<{
341
359
  nodeId: z.ZodTemplateLiteral<`node_${string}`>;
342
- kind: z.ZodEnum<{
360
+ kind: z.ZodCatch<z.ZodEnum<{
361
+ unknown: "unknown";
343
362
  file: "file";
344
363
  folder: "folder";
345
364
  document: "document";
@@ -350,7 +369,7 @@ export declare const NodeSearch: z.ZodObject<{
350
369
  goal: "goal";
351
370
  skill: "skill";
352
371
  source: "source";
353
- }>;
372
+ }>>;
354
373
  name: z.ZodString;
355
374
  path: z.ZodObject<{
356
375
  section: z.ZodEnum<{
@@ -366,8 +385,8 @@ export declare const NodeSearch: z.ZodObject<{
366
385
  snippet: z.ZodString;
367
386
  foundIn: z.ZodObject<{
368
387
  kind: z.ZodEnum<{
369
- page: "page";
370
388
  column: "column";
389
+ page: "page";
371
390
  title: "title";
372
391
  text: "text";
373
392
  card: "card";
@@ -376,13 +395,13 @@ export declare const NodeSearch: z.ZodObject<{
376
395
  }, z.core.$strip>;
377
396
  rank: z.ZodNumber;
378
397
  status: z.ZodNullable<z.ZodEnum<{
379
- archive: "archive";
380
398
  backlog: "backlog";
381
399
  open: "open";
382
400
  progress: "progress";
383
401
  done: "done";
384
402
  discarded: "discarded";
385
403
  blocked: "blocked";
404
+ archive: "archive";
386
405
  }>>;
387
406
  updatedAt: z.ZodISODateTime;
388
407
  boardKind: z.ZodNullable<z.ZodEnum<{
@@ -409,8 +428,8 @@ export declare const NodeSearch: z.ZodObject<{
409
428
  }, z.core.$strip>>;
410
429
  nextCursor: z.ZodNullable<z.ZodString>;
411
430
  semantic: z.ZodEnum<{
412
- unavailable: "unavailable";
413
431
  ok: "ok";
432
+ unavailable: "unavailable";
414
433
  }>;
415
434
  }, z.core.$strip>;
416
435
  export type NodeSearch = z.infer<typeof NodeSearch>;
@@ -435,13 +454,13 @@ export declare const NodeValidation: z.ZodObject<{
435
454
  columnId: z.ZodTemplateLiteral<`column_${string}`>;
436
455
  name: z.ZodString;
437
456
  type: z.ZodEnum<{
438
- archive: "archive";
439
457
  backlog: "backlog";
440
458
  open: "open";
441
459
  progress: "progress";
442
460
  done: "done";
443
461
  discarded: "discarded";
444
462
  blocked: "blocked";
463
+ archive: "archive";
445
464
  }>;
446
465
  }, z.core.$strip>;
447
466
  validUntil: z.ZodNullable<z.ZodISODateTime>;
@@ -471,7 +490,8 @@ export declare const NodeDetail: z.ZodObject<{
471
490
  secret: z.ZodOptional<z.ZodLiteral<true>>;
472
491
  locked: z.ZodOptional<z.ZodBoolean>;
473
492
  nodeId: z.ZodTemplateLiteral<`node_${string}`>;
474
- kind: z.ZodEnum<{
493
+ kind: z.ZodCatch<z.ZodEnum<{
494
+ unknown: "unknown";
475
495
  file: "file";
476
496
  folder: "folder";
477
497
  document: "document";
@@ -482,7 +502,7 @@ export declare const NodeDetail: z.ZodObject<{
482
502
  goal: "goal";
483
503
  skill: "skill";
484
504
  source: "source";
485
- }>;
505
+ }>>;
486
506
  name: z.ZodString;
487
507
  hidden: z.ZodBoolean;
488
508
  rootOf: z.ZodNullable<z.ZodString>;
@@ -539,13 +559,13 @@ export declare const NodeDetail: z.ZodObject<{
539
559
  columnId: z.ZodTemplateLiteral<`column_${string}`>;
540
560
  name: z.ZodString;
541
561
  type: z.ZodEnum<{
542
- archive: "archive";
543
562
  backlog: "backlog";
544
563
  open: "open";
545
564
  progress: "progress";
546
565
  done: "done";
547
566
  discarded: "discarded";
548
567
  blocked: "blocked";
568
+ archive: "archive";
549
569
  }>;
550
570
  }, z.core.$strip>;
551
571
  validUntil: z.ZodNullable<z.ZodISODateTime>;
@@ -637,6 +657,10 @@ export declare const NodeMoved: z.ZodObject<{
637
657
  }>;
638
658
  fromNodeId: z.ZodTemplateLiteral<`node_${string}`>;
639
659
  }, z.core.$strip>>;
660
+ alongWith: z.ZodOptional<z.ZodArray<z.ZodObject<{
661
+ nodeId: z.ZodTemplateLiteral<`node_${string}`>;
662
+ name: z.ZodString;
663
+ }, z.core.$strip>>>;
640
664
  }, z.core.$strip>;
641
665
  export type NodeMoved = z.infer<typeof NodeMoved>;
642
666
  export declare const FolderCreateInput: z.ZodObject<{
@@ -686,6 +710,7 @@ export declare const IntelligenceUser: z.ZodObject<{
686
710
  claude: "claude";
687
711
  codex: "codex";
688
712
  gemini: "gemini";
713
+ gateway: "gateway";
689
714
  }>>;
690
715
  }, z.core.$strip>>;
691
716
  canRead: z.ZodOptional<z.ZodBoolean>;
@@ -710,6 +735,7 @@ export declare const IntelligenceUserList: z.ZodObject<{
710
735
  claude: "claude";
711
736
  codex: "codex";
712
737
  gemini: "gemini";
738
+ gateway: "gateway";
713
739
  }>>;
714
740
  }, z.core.$strip>>;
715
741
  canRead: z.ZodOptional<z.ZodBoolean>;