@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.
- package/dist/actions/actions.d.ts +30 -23
- package/dist/actions/actions.js +2 -2
- package/dist/archive/archive.d.ts +1 -0
- package/dist/archive/archive.js +3 -0
- package/dist/boards/boards.d.ts +21 -21
- package/dist/columns/columns.d.ts +2 -2
- package/dist/connectors/connectors.d.ts +6 -6
- package/dist/crawls/crawls.d.ts +3 -3
- package/dist/error/error.d.ts +9 -3
- package/dist/error/error.js +12 -3
- package/dist/gadgets/gadgets.d.ts +125 -9
- package/dist/gadgets/gadgets.js +123 -0
- package/dist/goals/goals.d.ts +54 -10
- package/dist/goals/goals.js +36 -7
- package/dist/grammar/grammar.d.ts +2 -0
- package/dist/grammar/grammar.js +10 -0
- package/dist/home/home.d.ts +300 -0
- package/dist/home/home.js +53 -0
- package/dist/links/links.d.ts +166 -0
- package/dist/links/links.js +149 -0
- package/dist/mcps/mcps.d.ts +3 -3
- package/dist/messages/messages.d.ts +3 -0
- package/dist/nodes/nodes.d.ts +46 -20
- package/dist/nodes/nodes.js +11 -3
- package/dist/operators/operators.d.ts +389 -47
- package/dist/operators/operators.js +268 -70
- package/dist/organisation/organisation.d.ts +2 -0
- package/dist/organisation/organisation.js +9 -0
- package/dist/primitives/primitives.d.ts +9 -0
- package/dist/primitives/primitives.js +16 -0
- package/dist/roles/roles.d.ts +1 -0
- package/dist/roles/roles.js +3 -0
- package/dist/runs/runs.d.ts +2 -2
- package/dist/sdk.d.ts +10 -9
- package/dist/sdk.js +10 -9
- package/dist/skills/skills.d.ts +37 -7
- package/dist/skills/skills.js +50 -0
- package/dist/sources/sources.d.ts +54 -14
- package/dist/sources/sources.js +50 -5
- package/dist/tables/tables.d.ts +42 -0
- package/dist/tables/tables.js +55 -2
- package/dist/tool.d.ts +1 -0
- package/dist/tree-order/tree-order.d.ts +2 -2
- package/dist/tree-order/tree-order.js +1 -1
- package/dist/users/users.d.ts +2 -0
- package/dist/users/users.js +3 -2
- package/dist/versions/versions.d.ts +13 -13
- package/package.json +1 -1
package/dist/nodes/nodes.js
CHANGED
|
@@ -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:
|
|
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:
|
|
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:
|
|
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.
|