@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
@@ -43,6 +43,11 @@ export const nodeKinds = [
43
43
  "source",
44
44
  ];
45
45
  export const NodeKind = z.enum(nodeKinds);
46
+ // A list entry of a kind this release does not know yet reads as `unknown` (E195, #784): a tab
47
+ // opened before a deploy shows that one entry as "new, please reload" and keeps the rest of the
48
+ // list. Only for answers; every input keeps the strict `NodeKind`.
49
+ export const unknownNodeKind = "unknown";
50
+ export const NodeKindRead = z.enum([...nodeKinds, unknownNodeKind]).catch(unknownNodeKind);
46
51
  // Only these kinds have a responsible person (E32): the one who answers for the content's validity.
47
52
  export const responsibleKinds = [
48
53
  "document",
@@ -116,7 +121,7 @@ export const NodePath = z.object({
116
121
  });
117
122
  export const NodeListItem = z.object({
118
123
  nodeId: NodeId,
119
- kind: NodeKind,
124
+ kind: NodeKindRead,
120
125
  name: z.string(),
121
126
  hidden: z.boolean(),
122
127
  // A root folder belongs to this person; null for every other node.
@@ -179,7 +184,7 @@ export const NodeHitFoundIn = z.object({
179
184
  // place in the fused order.
180
185
  export const NodeHit = z.object({
181
186
  nodeId: NodeId,
182
- kind: NodeKind,
187
+ kind: NodeKindRead,
183
188
  name: z.string(),
184
189
  // The crumbs above it, from the first level the caller can read, like `path` of the archive.
185
190
  path: NodePath,
@@ -242,7 +247,8 @@ export const NodeValidation = z.object({
242
247
  });
243
248
  export const NodeDetail = z.object({
244
249
  nodeId: NodeId,
245
- kind: NodeKind,
250
+ // `unknown` for a kind this release does not know (E195): the page reloads into the new one.
251
+ kind: NodeKindRead,
246
252
  name: z.string(),
247
253
  hidden: z.boolean(),
248
254
  rootOf: z.string().nullable(),
@@ -323,6 +329,8 @@ export const NodeMoved = z.object({
323
329
  parentId: NodeId.nullable(),
324
330
  // Who can read the node now, for the short note the UI shows after the drop.
325
331
  readers: z.array(NodeReader),
332
+ // The nodes a gadget uses that went along from Own into Shared (#986, "Mit verschoben").
333
+ alongWith: z.array(z.object({ nodeId: NodeId, name: z.string() })).optional(),
326
334
  });
327
335
  export const FolderCreateInput = z.strictObject({
328
336
  // ⚠️ Required and nullable (trap C015): null is the top level of Shared.