@anchrd/colab-sdk 0.1.7 → 0.1.9

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 (75) hide show
  1. package/dist/actions/actions.d.ts +113 -113
  2. package/dist/actions/actions.js +21 -21
  3. package/dist/apps/apps.d.ts +8 -8
  4. package/dist/apps/apps.js +6 -6
  5. package/dist/archive/archive.d.ts +2 -2
  6. package/dist/archive/archive.js +2 -2
  7. package/dist/boards/boards.d.ts +60 -60
  8. package/dist/boards/boards.js +19 -19
  9. package/dist/columns/columns.d.ts +1 -1
  10. package/dist/columns/columns.js +1 -1
  11. package/dist/connections/connections.d.ts +15 -15
  12. package/dist/connections/connections.js +6 -6
  13. package/dist/connectors/connectors.d.ts +14 -14
  14. package/dist/connectors/connectors.js +7 -7
  15. package/dist/dashboards/dashboards.d.ts +3 -3
  16. package/dist/dashboards/dashboards.js +3 -3
  17. package/dist/directory/directory.d.ts +1 -1
  18. package/dist/directory/directory.js +1 -1
  19. package/dist/documents/documents.d.ts +6 -6
  20. package/dist/documents/documents.js +1 -1
  21. package/dist/events/events.d.ts +7 -7
  22. package/dist/events/events.js +4 -4
  23. package/dist/files/files.d.ts +19 -5
  24. package/dist/files/files.js +12 -6
  25. package/dist/functions/functions.d.ts +1 -1
  26. package/dist/functions/functions.js +1 -1
  27. package/dist/grammar/grammar.d.ts +1 -0
  28. package/dist/grammar/grammar.js +5 -1
  29. package/dist/grants/grants.d.ts +7 -7
  30. package/dist/grants/grants.js +5 -5
  31. package/dist/instructions/instructions.d.ts +3 -3
  32. package/dist/instructions/instructions.js +2 -2
  33. package/dist/interfaces/interfaces.d.ts +1 -1
  34. package/dist/interfaces/interfaces.js +1 -1
  35. package/dist/invitations/invitations.d.ts +8 -8
  36. package/dist/invitations/invitations.js +4 -4
  37. package/dist/links/links.d.ts +3 -3
  38. package/dist/links/links.js +2 -2
  39. package/dist/machines/machines.d.ts +5 -5
  40. package/dist/machines/machines.js +2 -2
  41. package/dist/messages/messages.d.ts +12 -12
  42. package/dist/messages/messages.js +5 -5
  43. package/dist/nodes/nodes.d.ts +58 -58
  44. package/dist/nodes/nodes.js +19 -19
  45. package/dist/operators/operators.d.ts +136 -46
  46. package/dist/operators/operators.js +80 -20
  47. package/dist/pages/pages.d.ts +22 -22
  48. package/dist/pages/pages.js +8 -6
  49. package/dist/profile/profile.d.ts +1 -1
  50. package/dist/profile/profile.js +1 -1
  51. package/dist/roles/roles.d.ts +12 -12
  52. package/dist/roles/roles.js +7 -7
  53. package/dist/runs/runs.d.ts +23 -23
  54. package/dist/runs/runs.js +9 -9
  55. package/dist/runtime-config.d.ts +1 -1
  56. package/dist/runtime-config.js +1 -1
  57. package/dist/sdk.d.ts +2 -2
  58. package/dist/sdk.js +2 -2
  59. package/dist/secrets/secrets.d.ts +5 -5
  60. package/dist/secrets/secrets.js +2 -2
  61. package/dist/services/services.d.ts +15 -15
  62. package/dist/services/services.js +6 -6
  63. package/dist/sso/sso.d.ts +4 -4
  64. package/dist/sso/sso.js +3 -3
  65. package/dist/tables/tables.d.ts +4 -4
  66. package/dist/tables/tables.js +4 -4
  67. package/dist/user-settings/user-settings.d.ts +1 -1
  68. package/dist/user-settings/user-settings.js +1 -1
  69. package/dist/users/users.d.ts +23 -23
  70. package/dist/users/users.js +9 -9
  71. package/dist/validation/validation.d.ts +11 -11
  72. package/dist/validation/validation.js +4 -4
  73. package/dist/versions/versions.d.ts +7 -7
  74. package/dist/versions/versions.js +2 -2
  75. package/package.json +1 -1
@@ -72,7 +72,7 @@ export declare const NodePerson: z.ZodObject<{
72
72
  machine: "machine";
73
73
  human: "human";
74
74
  }>>;
75
- }, z.core.$strict>;
75
+ }, z.core.$strip>;
76
76
  export type NodePerson = z.infer<typeof NodePerson>;
77
77
  export declare const NodePath: z.ZodObject<{
78
78
  section: z.ZodEnum<{
@@ -83,8 +83,8 @@ export declare const NodePath: z.ZodObject<{
83
83
  items: z.ZodArray<z.ZodObject<{
84
84
  nodeId: z.ZodTemplateLiteral<`node_${string}`>;
85
85
  name: z.ZodString;
86
- }, z.core.$strict>>;
87
- }, z.core.$strict>;
86
+ }, z.core.$strip>>;
87
+ }, z.core.$strip>;
88
88
  export type NodePath = z.infer<typeof NodePath>;
89
89
  export declare const NodeListItem: z.ZodObject<{
90
90
  nodeId: z.ZodTemplateLiteral<`node_${string}`>;
@@ -108,7 +108,7 @@ export declare const NodeListItem: z.ZodObject<{
108
108
  machine: "machine";
109
109
  human: "human";
110
110
  }>>;
111
- }, z.core.$strict>;
111
+ }, z.core.$strip>;
112
112
  responsible: z.ZodNullable<z.ZodObject<{
113
113
  userId: z.ZodString;
114
114
  name: z.ZodNullable<z.ZodString>;
@@ -116,7 +116,7 @@ export declare const NodeListItem: z.ZodObject<{
116
116
  machine: "machine";
117
117
  human: "human";
118
118
  }>>;
119
- }, z.core.$strict>>;
119
+ }, z.core.$strip>>;
120
120
  size: z.ZodNullable<z.ZodNumber>;
121
121
  updatedAt: z.ZodISODateTime;
122
122
  sharedWith: z.ZodNumber;
@@ -147,12 +147,12 @@ export declare const NodeListItem: z.ZodObject<{
147
147
  items: z.ZodArray<z.ZodObject<{
148
148
  nodeId: z.ZodTemplateLiteral<`node_${string}`>;
149
149
  name: z.ZodString;
150
- }, z.core.$strict>>;
151
- }, z.core.$strict>>;
150
+ }, z.core.$strip>>;
151
+ }, z.core.$strip>>;
152
152
  count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
153
153
  secret: z.ZodOptional<z.ZodLiteral<true>>;
154
154
  rootArchived: z.ZodOptional<z.ZodLiteral<true>>;
155
- }, z.core.$strict>;
155
+ }, z.core.$strip>;
156
156
  export type NodeListItem = z.infer<typeof NodeListItem>;
157
157
  export declare const NodeList: z.ZodObject<{
158
158
  items: z.ZodArray<z.ZodObject<{
@@ -177,7 +177,7 @@ export declare const NodeList: z.ZodObject<{
177
177
  machine: "machine";
178
178
  human: "human";
179
179
  }>>;
180
- }, z.core.$strict>;
180
+ }, z.core.$strip>;
181
181
  responsible: z.ZodNullable<z.ZodObject<{
182
182
  userId: z.ZodString;
183
183
  name: z.ZodNullable<z.ZodString>;
@@ -185,7 +185,7 @@ export declare const NodeList: z.ZodObject<{
185
185
  machine: "machine";
186
186
  human: "human";
187
187
  }>>;
188
- }, z.core.$strict>>;
188
+ }, z.core.$strip>>;
189
189
  size: z.ZodNullable<z.ZodNumber>;
190
190
  updatedAt: z.ZodISODateTime;
191
191
  sharedWith: z.ZodNumber;
@@ -216,12 +216,12 @@ export declare const NodeList: z.ZodObject<{
216
216
  items: z.ZodArray<z.ZodObject<{
217
217
  nodeId: z.ZodTemplateLiteral<`node_${string}`>;
218
218
  name: z.ZodString;
219
- }, z.core.$strict>>;
220
- }, z.core.$strict>>;
219
+ }, z.core.$strip>>;
220
+ }, z.core.$strip>>;
221
221
  count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
222
222
  secret: z.ZodOptional<z.ZodLiteral<true>>;
223
223
  rootArchived: z.ZodOptional<z.ZodLiteral<true>>;
224
- }, z.core.$strict>>;
224
+ }, z.core.$strip>>;
225
225
  nextCursor: z.ZodNullable<z.ZodString>;
226
226
  rootId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
227
227
  instructions: z.ZodOptional<z.ZodObject<{
@@ -229,10 +229,10 @@ export declare const NodeList: z.ZodObject<{
229
229
  path: z.ZodString;
230
230
  status: z.ZodNullable<z.ZodString>;
231
231
  markdown: z.ZodString;
232
- }, z.core.$strict>>;
232
+ }, z.core.$strip>>;
233
233
  hint: z.ZodOptional<z.ZodString>;
234
- }, z.core.$strict>>;
235
- }, z.core.$strict>;
234
+ }, z.core.$strip>>;
235
+ }, z.core.$strip>;
236
236
  export type NodeList = z.infer<typeof NodeList>;
237
237
  export declare const NodeHitFoundIn: z.ZodObject<{
238
238
  kind: z.ZodEnum<{
@@ -243,7 +243,7 @@ export declare const NodeHitFoundIn: z.ZodObject<{
243
243
  card: "card";
244
244
  }>;
245
245
  label: z.ZodNullable<z.ZodString>;
246
- }, z.core.$strict>;
246
+ }, z.core.$strip>;
247
247
  export type NodeHitFoundIn = z.infer<typeof NodeHitFoundIn>;
248
248
  export declare const NodeHit: z.ZodObject<{
249
249
  nodeId: z.ZodTemplateLiteral<`node_${string}`>;
@@ -266,8 +266,8 @@ export declare const NodeHit: z.ZodObject<{
266
266
  items: z.ZodArray<z.ZodObject<{
267
267
  nodeId: z.ZodTemplateLiteral<`node_${string}`>;
268
268
  name: z.ZodString;
269
- }, z.core.$strict>>;
270
- }, z.core.$strict>;
269
+ }, z.core.$strip>>;
270
+ }, z.core.$strip>;
271
271
  snippet: z.ZodString;
272
272
  foundIn: z.ZodObject<{
273
273
  kind: z.ZodEnum<{
@@ -278,7 +278,7 @@ export declare const NodeHit: z.ZodObject<{
278
278
  card: "card";
279
279
  }>;
280
280
  label: z.ZodNullable<z.ZodString>;
281
- }, z.core.$strict>;
281
+ }, z.core.$strip>;
282
282
  rank: z.ZodNumber;
283
283
  status: z.ZodNullable<z.ZodEnum<{
284
284
  backlog: "backlog";
@@ -296,7 +296,7 @@ export declare const NodeHit: z.ZodObject<{
296
296
  process: "process";
297
297
  }>>;
298
298
  secret: z.ZodOptional<z.ZodLiteral<true>>;
299
- }, z.core.$strict>;
299
+ }, z.core.$strip>;
300
300
  export type NodeHit = z.infer<typeof NodeHit>;
301
301
  export declare const NodeHitGroup: z.ZodObject<{
302
302
  parentId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
@@ -309,10 +309,10 @@ export declare const NodeHitGroup: z.ZodObject<{
309
309
  items: z.ZodArray<z.ZodObject<{
310
310
  nodeId: z.ZodTemplateLiteral<`node_${string}`>;
311
311
  name: z.ZodString;
312
- }, z.core.$strict>>;
313
- }, z.core.$strict>;
312
+ }, z.core.$strip>>;
313
+ }, z.core.$strip>;
314
314
  count: z.ZodNumber;
315
- }, z.core.$strict>;
315
+ }, z.core.$strip>;
316
316
  export type NodeHitGroup = z.infer<typeof NodeHitGroup>;
317
317
  export declare const NodeSearch: z.ZodObject<{
318
318
  items: z.ZodArray<z.ZodObject<{
@@ -336,8 +336,8 @@ export declare const NodeSearch: z.ZodObject<{
336
336
  items: z.ZodArray<z.ZodObject<{
337
337
  nodeId: z.ZodTemplateLiteral<`node_${string}`>;
338
338
  name: z.ZodString;
339
- }, z.core.$strict>>;
340
- }, z.core.$strict>;
339
+ }, z.core.$strip>>;
340
+ }, z.core.$strip>;
341
341
  snippet: z.ZodString;
342
342
  foundIn: z.ZodObject<{
343
343
  kind: z.ZodEnum<{
@@ -348,7 +348,7 @@ export declare const NodeSearch: z.ZodObject<{
348
348
  card: "card";
349
349
  }>;
350
350
  label: z.ZodNullable<z.ZodString>;
351
- }, z.core.$strict>;
351
+ }, z.core.$strip>;
352
352
  rank: z.ZodNumber;
353
353
  status: z.ZodNullable<z.ZodEnum<{
354
354
  backlog: "backlog";
@@ -366,7 +366,7 @@ export declare const NodeSearch: z.ZodObject<{
366
366
  process: "process";
367
367
  }>>;
368
368
  secret: z.ZodOptional<z.ZodLiteral<true>>;
369
- }, z.core.$strict>>;
369
+ }, z.core.$strip>>;
370
370
  groups: z.ZodArray<z.ZodObject<{
371
371
  parentId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
372
372
  path: z.ZodObject<{
@@ -378,16 +378,16 @@ export declare const NodeSearch: z.ZodObject<{
378
378
  items: z.ZodArray<z.ZodObject<{
379
379
  nodeId: z.ZodTemplateLiteral<`node_${string}`>;
380
380
  name: z.ZodString;
381
- }, z.core.$strict>>;
382
- }, z.core.$strict>;
381
+ }, z.core.$strip>>;
382
+ }, z.core.$strip>;
383
383
  count: z.ZodNumber;
384
- }, z.core.$strict>>;
384
+ }, z.core.$strip>>;
385
385
  nextCursor: z.ZodNullable<z.ZodString>;
386
386
  semantic: z.ZodEnum<{
387
387
  ok: "ok";
388
388
  unavailable: "unavailable";
389
389
  }>;
390
- }, z.core.$strict>;
390
+ }, z.core.$strip>;
391
391
  export type NodeSearch = z.infer<typeof NodeSearch>;
392
392
  export declare const SearchIndexState: z.ZodObject<{
393
393
  running: z.ZodBoolean;
@@ -396,8 +396,8 @@ export declare const SearchIndexState: z.ZodObject<{
396
396
  requestedAt: z.ZodISODateTime;
397
397
  startedAt: z.ZodNullable<z.ZodISODateTime>;
398
398
  completedAt: z.ZodNullable<z.ZodISODateTime>;
399
- }, z.core.$strict>>;
400
- }, z.core.$strict>;
399
+ }, z.core.$strip>>;
400
+ }, z.core.$strip>;
401
401
  export type SearchIndexState = z.infer<typeof SearchIndexState>;
402
402
  export declare const NodeGetInput: z.ZodObject<{
403
403
  nodeId: z.ZodTemplateLiteral<`node_${string}`>;
@@ -417,7 +417,7 @@ export declare const NodeValidation: z.ZodObject<{
417
417
  blocked: "blocked";
418
418
  archive: "archive";
419
419
  }>;
420
- }, z.core.$strict>;
420
+ }, z.core.$strip>;
421
421
  validUntil: z.ZodNullable<z.ZodISODateTime>;
422
422
  responsible: z.ZodObject<{
423
423
  userId: z.ZodString;
@@ -426,9 +426,9 @@ export declare const NodeValidation: z.ZodObject<{
426
426
  machine: "machine";
427
427
  human: "human";
428
428
  }>>;
429
- }, z.core.$strict>;
429
+ }, z.core.$strip>;
430
430
  content: z.ZodString;
431
- }, z.core.$strict>;
431
+ }, z.core.$strip>;
432
432
  export type NodeValidation = z.infer<typeof NodeValidation>;
433
433
  export declare const NodeDetail: z.ZodObject<{
434
434
  secretId: z.ZodOptional<z.ZodTemplateLiteral<`secret_${string}`>>;
@@ -439,7 +439,7 @@ export declare const NodeDetail: z.ZodObject<{
439
439
  machine: "machine";
440
440
  human: "human";
441
441
  }>>;
442
- }, z.core.$strict>>;
442
+ }, z.core.$strip>>;
443
443
  secretSetAt: z.ZodOptional<z.ZodISODateTime>;
444
444
  unlockedUntil: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
445
445
  secret: z.ZodOptional<z.ZodLiteral<true>>;
@@ -475,8 +475,8 @@ export declare const NodeDetail: z.ZodObject<{
475
475
  items: z.ZodArray<z.ZodObject<{
476
476
  nodeId: z.ZodTemplateLiteral<`node_${string}`>;
477
477
  name: z.ZodString;
478
- }, z.core.$strict>>;
479
- }, z.core.$strict>;
478
+ }, z.core.$strip>>;
479
+ }, z.core.$strip>;
480
480
  createdBy: z.ZodObject<{
481
481
  userId: z.ZodString;
482
482
  name: z.ZodNullable<z.ZodString>;
@@ -484,7 +484,7 @@ export declare const NodeDetail: z.ZodObject<{
484
484
  machine: "machine";
485
485
  human: "human";
486
486
  }>>;
487
- }, z.core.$strict>;
487
+ }, z.core.$strip>;
488
488
  responsible: z.ZodNullable<z.ZodObject<{
489
489
  userId: z.ZodString;
490
490
  name: z.ZodNullable<z.ZodString>;
@@ -492,11 +492,11 @@ export declare const NodeDetail: z.ZodObject<{
492
492
  machine: "machine";
493
493
  human: "human";
494
494
  }>>;
495
- }, z.core.$strict>>;
495
+ }, z.core.$strip>>;
496
496
  rights: z.ZodObject<{
497
497
  write: z.ZodBoolean;
498
498
  share: z.ZodBoolean;
499
- }, z.core.$strict>;
499
+ }, z.core.$strip>;
500
500
  hiddenCount: z.ZodNullable<z.ZodNumber>;
501
501
  size: z.ZodNullable<z.ZodNumber>;
502
502
  rev: z.ZodNumber;
@@ -518,7 +518,7 @@ export declare const NodeDetail: z.ZodObject<{
518
518
  blocked: "blocked";
519
519
  archive: "archive";
520
520
  }>;
521
- }, z.core.$strict>;
521
+ }, z.core.$strip>;
522
522
  validUntil: z.ZodNullable<z.ZodISODateTime>;
523
523
  responsible: z.ZodObject<{
524
524
  userId: z.ZodString;
@@ -527,19 +527,19 @@ export declare const NodeDetail: z.ZodObject<{
527
527
  machine: "machine";
528
528
  human: "human";
529
529
  }>>;
530
- }, z.core.$strict>;
530
+ }, z.core.$strip>;
531
531
  content: z.ZodString;
532
- }, z.core.$strict>>;
532
+ }, z.core.$strip>>;
533
533
  instructions: z.ZodOptional<z.ZodObject<{
534
534
  chain: z.ZodArray<z.ZodObject<{
535
535
  path: z.ZodString;
536
536
  status: z.ZodNullable<z.ZodString>;
537
537
  markdown: z.ZodString;
538
- }, z.core.$strict>>;
538
+ }, z.core.$strip>>;
539
539
  hint: z.ZodOptional<z.ZodString>;
540
- }, z.core.$strict>>;
540
+ }, z.core.$strip>>;
541
541
  instruction: z.ZodOptional<z.ZodNullable<z.ZodString>>;
542
- }, z.core.$strict>;
542
+ }, z.core.$strip>;
543
543
  export type NodeDetail = z.infer<typeof NodeDetail>;
544
544
  export declare const NodeUpdateInput: z.ZodObject<{
545
545
  nodeId: z.ZodTemplateLiteral<`node_${string}`>;
@@ -571,7 +571,7 @@ export declare const NodeReader: z.ZodObject<{
571
571
  inherited: "inherited";
572
572
  }>;
573
573
  fromNodeId: z.ZodTemplateLiteral<`node_${string}`>;
574
- }, z.core.$strict>;
574
+ }, z.core.$strip>;
575
575
  export type NodeReader = z.infer<typeof NodeReader>;
576
576
  export declare const NodeMoved: z.ZodObject<{
577
577
  nodeId: z.ZodTemplateLiteral<`node_${string}`>;
@@ -594,8 +594,8 @@ export declare const NodeMoved: z.ZodObject<{
594
594
  inherited: "inherited";
595
595
  }>;
596
596
  fromNodeId: z.ZodTemplateLiteral<`node_${string}`>;
597
- }, z.core.$strict>>;
598
- }, z.core.$strict>;
597
+ }, z.core.$strip>>;
598
+ }, z.core.$strip>;
599
599
  export type NodeMoved = z.infer<typeof NodeMoved>;
600
600
  export declare const FolderCreateInput: z.ZodObject<{
601
601
  parentId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
@@ -612,7 +612,7 @@ export declare const FolderCreated: z.ZodObject<{
612
612
  rev: z.ZodNumber;
613
613
  createdAt: z.ZodISODateTime;
614
614
  updatedAt: z.ZodISODateTime;
615
- }, z.core.$strict>;
615
+ }, z.core.$strip>;
616
616
  export type FolderCreated = z.infer<typeof FolderCreated>;
617
617
  export declare const IntelligenceUserListInput: z.ZodObject<{
618
618
  query: z.ZodOptional<z.ZodString>;
@@ -641,9 +641,9 @@ export declare const IntelligenceUser: z.ZodObject<{
641
641
  codex: "codex";
642
642
  gemini: "gemini";
643
643
  }>>;
644
- }, z.core.$strict>>;
644
+ }, z.core.$strip>>;
645
645
  canRead: z.ZodOptional<z.ZodBoolean>;
646
- }, z.core.$strict>;
646
+ }, z.core.$strip>;
647
647
  export type IntelligenceUser = z.infer<typeof IntelligenceUser>;
648
648
  export declare const IntelligenceUserList: z.ZodObject<{
649
649
  items: z.ZodArray<z.ZodObject<{
@@ -665,9 +665,9 @@ export declare const IntelligenceUserList: z.ZodObject<{
665
665
  codex: "codex";
666
666
  gemini: "gemini";
667
667
  }>>;
668
- }, z.core.$strict>>;
668
+ }, z.core.$strip>>;
669
669
  canRead: z.ZodOptional<z.ZodBoolean>;
670
- }, z.core.$strict>>;
670
+ }, z.core.$strip>>;
671
671
  nextCursor: z.ZodNullable<z.ZodString>;
672
- }, z.core.$strict>;
672
+ }, z.core.$strip>;
673
673
  export type IntelligenceUserList = z.infer<typeof IntelligenceUserList>;
@@ -88,17 +88,17 @@ export const NodeListInput = z.strictObject({
88
88
  .describe("Name these nodes, 1 to 100, for links and images in a text: the answer holds only those you can read, in the order given; one you cannot read or that does not exist is left out without a note."),
89
89
  });
90
90
  // A person behind a `user_…` id, as `access` names them. A deleted account has no name (null).
91
- export const NodePerson = z.strictObject({
91
+ export const NodePerson = z.object({
92
92
  userId: z.string(),
93
93
  name: z.string().nullable(),
94
94
  kind: z.enum(["human", "machine"]).nullable(),
95
95
  });
96
96
  // The crumbs above a node, from the first level the caller can read, and the section they start in.
97
- export const NodePath = z.strictObject({
97
+ export const NodePath = z.object({
98
98
  section: NodeSection,
99
- items: z.array(z.strictObject({ nodeId: NodeId, name: z.string() })),
99
+ items: z.array(z.object({ nodeId: NodeId, name: z.string() })),
100
100
  });
101
- export const NodeListItem = z.strictObject({
101
+ export const NodeListItem = z.object({
102
102
  nodeId: NodeId,
103
103
  kind: NodeKind,
104
104
  name: z.string(),
@@ -141,7 +141,7 @@ export const NodeListItem = z.strictObject({
141
141
  .optional()
142
142
  .describe("Only in section users: the root folder of an archived account. It is listed only while something in it is not archived, after all others."),
143
143
  });
144
- export const NodeList = z.strictObject({
144
+ export const NodeList = z.object({
145
145
  items: z.array(NodeListItem),
146
146
  nextCursor: z.string().nullable(),
147
147
  // Only with section own and not archived (#52): the caller's root folder, the parent of what is
@@ -154,13 +154,13 @@ export const NodeList = z.strictObject({
154
154
  // a column of a table (`column`, `label` the column's name), a page of a file (`page`, `label` the
155
155
  // page's number as text) or, for a task found by its name, the card on a board (`card`, `label` the
156
156
  // board's name where the caller reads it). `label` is null where there is nothing to name.
157
- export const NodeHitFoundIn = z.strictObject({
157
+ export const NodeHitFoundIn = z.object({
158
158
  kind: z.enum(["title", "text", "column", "page", "card"]),
159
159
  label: z.string().nullable(),
160
160
  });
161
161
  // A hit of a search (#48): the node, where it stands for the caller, the passage that matched and its
162
162
  // place in the fused order.
163
- export const NodeHit = z.strictObject({
163
+ export const NodeHit = z.object({
164
164
  nodeId: NodeId,
165
165
  kind: NodeKind,
166
166
  name: z.string(),
@@ -184,12 +184,12 @@ export const NodeHit = z.strictObject({
184
184
  });
185
185
  // The hits of one folder ("Vertrieb · 7 Treffer"): the folder the hits stand in, null where the
186
186
  // caller cannot read it or a hit stands on the top level of Shared, and its crumbs.
187
- export const NodeHitGroup = z.strictObject({
187
+ export const NodeHitGroup = z.object({
188
188
  parentId: NodeId.nullable(),
189
189
  path: NodePath,
190
190
  count: z.number().int().min(1),
191
191
  });
192
- export const NodeSearch = z.strictObject({
192
+ export const NodeSearch = z.object({
193
193
  items: z.array(NodeHit),
194
194
  // Every folder with hits, over the whole answer, in the order of each folder's best hit.
195
195
  groups: z.array(NodeHitGroup),
@@ -199,10 +199,10 @@ export const NodeSearch = z.strictObject({
199
199
  });
200
200
  // The search index for the page System (#48, #68): the last rebuild and whether one is running.
201
201
  // Answered by `GET /api/intelligence/index`, a door without a tool (E67, E69).
202
- export const SearchIndexState = z.strictObject({
202
+ export const SearchIndexState = z.object({
203
203
  running: z.boolean(),
204
204
  last: z
205
- .strictObject({
205
+ .object({
206
206
  requestedBy: z.string(),
207
207
  requestedAt: z.iso.datetime(),
208
208
  startedAt: z.iso.datetime().nullable(),
@@ -212,7 +212,7 @@ export const SearchIndexState = z.strictObject({
212
212
  });
213
213
  export const NodeGetInput = z.strictObject({ nodeId: NodeId });
214
214
  // A document's, table's or file's validation (#47, Seiten › Validierung): where its ticket stands.
215
- export const NodeValidation = z.strictObject({
215
+ export const NodeValidation = z.object({
216
216
  ticketId: NodeId,
217
217
  // The ticket's column; its type is the node's status.
218
218
  column: TaskColumn,
@@ -223,7 +223,7 @@ export const NodeValidation = z.strictObject({
223
223
  // What holds for exactly this node, the ticket's Markdown; empty without a word.
224
224
  content: z.string(),
225
225
  });
226
- export const NodeDetail = z.strictObject({
226
+ export const NodeDetail = z.object({
227
227
  nodeId: NodeId,
228
228
  kind: NodeKind,
229
229
  name: z.string(),
@@ -240,7 +240,7 @@ export const NodeDetail = z.strictObject({
240
240
  createdBy: NodePerson,
241
241
  responsible: NodePerson.nullable(),
242
242
  // What the caller may do here; reading is implied by the answer itself.
243
- rights: z.strictObject({ write: z.boolean(), share: z.boolean() }),
243
+ rights: z.object({ write: z.boolean(), share: z.boolean() }),
244
244
  // Only for a folder: how many hidden nodes it holds ("Versteckte anzeigen").
245
245
  hiddenCount: z.number().int().nullable(),
246
246
  // Bytes of the current version, as in the listing (#38).
@@ -285,7 +285,7 @@ export const NodeMoveInput = z.strictObject({
285
285
  parentId: NodeId.nullable().describe("The folder to move the node into, one you can write to; null puts it on the top level of Shared. The node takes the grants of its new folder and loses those of the old one."),
286
286
  });
287
287
  // Who reaches a node after inheritance (`readersOf`), and where it comes from.
288
- export const NodeReader = z.strictObject({
288
+ export const NodeReader = z.object({
289
289
  userId: z.string(),
290
290
  name: z.string().nullable(),
291
291
  kind: z.enum(["human", "machine"]).nullable(),
@@ -295,7 +295,7 @@ export const NodeReader = z.strictObject({
295
295
  origin: z.enum(["creator", "direct", "inherited"]),
296
296
  fromNodeId: NodeId,
297
297
  });
298
- export const NodeMoved = z.strictObject({
298
+ export const NodeMoved = z.object({
299
299
  nodeId: NodeId,
300
300
  parentId: NodeId.nullable(),
301
301
  // Who can read the node now, for the short note the UI shows after the drop.
@@ -307,7 +307,7 @@ export const FolderCreateInput = z.strictObject({
307
307
  name: NodeName,
308
308
  idempotencyKey: IdempotencyKey,
309
309
  });
310
- export const FolderCreated = z.strictObject({
310
+ export const FolderCreated = z.object({
311
311
  nodeId: NodeId,
312
312
  kind: z.literal("folder"),
313
313
  name: z.string(),
@@ -337,7 +337,7 @@ export const IntelligenceUserListInput = z.strictObject({
337
337
  .describe("The nextCursor of the previous page, unchanged. Leaving it out starts at the top."),
338
338
  limit: Limit.optional(),
339
339
  });
340
- export const IntelligenceUser = z.strictObject({
340
+ export const IntelligenceUser = z.object({
341
341
  userId: z.string(),
342
342
  kind: z.enum(["human", "machine"]),
343
343
  name: z.string(),
@@ -348,7 +348,7 @@ export const IntelligenceUser = z.strictObject({
348
348
  // Only with nodeId.
349
349
  canRead: z.boolean().optional(),
350
350
  });
351
- export const IntelligenceUserList = z.strictObject({
351
+ export const IntelligenceUserList = z.object({
352
352
  items: z.array(IntelligenceUser),
353
353
  nextCursor: z.string().nullable(),
354
354
  });