@anchrd/colab-sdk 0.1.49 → 0.1.51
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/boards/boards.d.ts +4 -0
- package/dist/boards/boards.js +8 -1
- package/dist/nodes/nodes.d.ts +6 -0
- package/dist/nodes/nodes.js +4 -0
- package/package.json +1 -1
package/dist/boards/boards.d.ts
CHANGED
|
@@ -407,6 +407,7 @@ export declare const TaskImage: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
407
407
|
}, z.core.$strip>, z.ZodObject<{
|
|
408
408
|
kind: z.ZodLiteral<"file">;
|
|
409
409
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
410
|
+
preview: z.ZodOptional<z.ZodTemplateLiteral<`version_${string}`>>;
|
|
410
411
|
}, z.core.$strip>]>;
|
|
411
412
|
export type TaskImage = z.infer<typeof TaskImage>;
|
|
412
413
|
export declare const BoardTaskItem: z.ZodObject<{
|
|
@@ -449,6 +450,7 @@ export declare const BoardTaskItem: z.ZodObject<{
|
|
|
449
450
|
}, z.core.$strip>, z.ZodObject<{
|
|
450
451
|
kind: z.ZodLiteral<"file">;
|
|
451
452
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
453
|
+
preview: z.ZodOptional<z.ZodTemplateLiteral<`version_${string}`>>;
|
|
452
454
|
}, z.core.$strip>]>>;
|
|
453
455
|
kind: z.ZodNullable<z.ZodObject<{
|
|
454
456
|
kindId: z.ZodTemplateLiteral<`kind_${string}`>;
|
|
@@ -526,6 +528,7 @@ export declare const BoardTaskList: z.ZodObject<{
|
|
|
526
528
|
}, z.core.$strip>, z.ZodObject<{
|
|
527
529
|
kind: z.ZodLiteral<"file">;
|
|
528
530
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
531
|
+
preview: z.ZodOptional<z.ZodTemplateLiteral<`version_${string}`>>;
|
|
529
532
|
}, z.core.$strip>]>>;
|
|
530
533
|
kind: z.ZodNullable<z.ZodObject<{
|
|
531
534
|
kindId: z.ZodTemplateLiteral<`kind_${string}`>;
|
|
@@ -827,6 +830,7 @@ export declare const TaskDetail: z.ZodObject<{
|
|
|
827
830
|
}, z.core.$strip>, z.ZodObject<{
|
|
828
831
|
kind: z.ZodLiteral<"file">;
|
|
829
832
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
833
|
+
preview: z.ZodOptional<z.ZodTemplateLiteral<`version_${string}`>>;
|
|
830
834
|
}, z.core.$strip>]>>;
|
|
831
835
|
kind: z.ZodNullable<z.ZodObject<{
|
|
832
836
|
kindId: z.ZodTemplateLiteral<`kind_${string}`>;
|
package/dist/boards/boards.js
CHANGED
|
@@ -272,7 +272,14 @@ export const BoardTaskUpdated = z.object({
|
|
|
272
272
|
// An image linked in a task's content: an outside URL, or a file in Colab the caller can read.
|
|
273
273
|
export const TaskImage = z.union([
|
|
274
274
|
z.object({ kind: z.literal("url"), url: z.string() }),
|
|
275
|
-
z.object({
|
|
275
|
+
z.object({
|
|
276
|
+
kind: z.literal("file"),
|
|
277
|
+
nodeId: NodeId,
|
|
278
|
+
// Only over `/api`, when the installation can show the file's current version smaller (#1184,
|
|
279
|
+
// like the folder's `preview`, #1135): that version, so the card loads the preview, not the
|
|
280
|
+
// original. `/mcp` leaves it out; an AI reads the file itself.
|
|
281
|
+
preview: idSchema("version").optional(),
|
|
282
|
+
}),
|
|
276
283
|
]);
|
|
277
284
|
export const BoardTaskItem = z.object({
|
|
278
285
|
taskId: NodeId,
|
package/dist/nodes/nodes.d.ts
CHANGED
|
@@ -160,6 +160,9 @@ export declare const NodeListItem: z.ZodObject<{
|
|
|
160
160
|
count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
161
161
|
secret: z.ZodOptional<z.ZodLiteral<true>>;
|
|
162
162
|
preview: z.ZodOptional<z.ZodTemplateLiteral<`version_${string}`>>;
|
|
163
|
+
rights: z.ZodOptional<z.ZodObject<{
|
|
164
|
+
write: z.ZodBoolean;
|
|
165
|
+
}, z.core.$strip>>;
|
|
163
166
|
rootArchived: z.ZodOptional<z.ZodLiteral<true>>;
|
|
164
167
|
}, z.core.$strip>;
|
|
165
168
|
export type NodeListItem = z.infer<typeof NodeListItem>;
|
|
@@ -221,6 +224,9 @@ export declare const NodeList: z.ZodObject<{
|
|
|
221
224
|
count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
222
225
|
secret: z.ZodOptional<z.ZodLiteral<true>>;
|
|
223
226
|
preview: z.ZodOptional<z.ZodTemplateLiteral<`version_${string}`>>;
|
|
227
|
+
rights: z.ZodOptional<z.ZodObject<{
|
|
228
|
+
write: z.ZodBoolean;
|
|
229
|
+
}, z.core.$strip>>;
|
|
224
230
|
rootArchived: z.ZodOptional<z.ZodLiteral<true>>;
|
|
225
231
|
}, z.core.$strip>>;
|
|
226
232
|
nextCursor: z.ZodNullable<z.ZodString>;
|
package/dist/nodes/nodes.js
CHANGED
|
@@ -148,6 +148,10 @@ export const NodeListItem = z.object({
|
|
|
148
148
|
// (#1135): that version, so the folder's preview address changes with a new version. `/mcp` leaves
|
|
149
149
|
// it out; an AI reads the file itself.
|
|
150
150
|
preview: idSchema("version").optional(),
|
|
151
|
+
// Only over `/api`, on a folder of a listing that is not the archive (#1186): whether the caller
|
|
152
|
+
// may put something into it, by the same rules as `NodeDetail.rights`, so the tree asks no node of
|
|
153
|
+
// its own per folder row. `/mcp` leaves it out; an AI asks `get` where it matters.
|
|
154
|
+
rights: z.object({ write: z.boolean() }).optional(),
|
|
151
155
|
// Only in section users (E97, #447): the root of an archived account, listed only while it still
|
|
152
156
|
// holds something, after all others.
|
|
153
157
|
rootArchived: z
|
package/package.json
CHANGED