@minca/core 0.1.10 → 0.1.11

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 (157) hide show
  1. package/README.md +1 -1
  2. package/dist/identity/abilities.js +1 -1
  3. package/dist/identity/contact-key.d.ts +15 -15
  4. package/dist/identity/contact-key.d.ts.map +1 -1
  5. package/dist/identity/contact-key.js +21 -28
  6. package/dist/identity/contact-key.js.map +1 -1
  7. package/dist/inbox/inbox.d.ts +140 -0
  8. package/dist/inbox/inbox.d.ts.map +1 -0
  9. package/dist/inbox/inbox.js +212 -0
  10. package/dist/inbox/inbox.js.map +1 -0
  11. package/dist/inbox/index.d.ts +9 -0
  12. package/dist/inbox/index.d.ts.map +1 -0
  13. package/dist/inbox/index.js +7 -0
  14. package/dist/inbox/index.js.map +1 -0
  15. package/dist/index.d.ts +2 -2
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +1 -1
  18. package/dist/index.js.map +1 -1
  19. package/dist/network/mailbox.d.ts +4 -4
  20. package/dist/network/mailbox.d.ts.map +1 -1
  21. package/dist/network/mailbox.js +5 -5
  22. package/dist/network/mailbox.js.map +1 -1
  23. package/dist/node/actions.d.ts.map +1 -1
  24. package/dist/node/actions.js +28 -18
  25. package/dist/node/actions.js.map +1 -1
  26. package/dist/node/api.d.ts +11 -10
  27. package/dist/node/api.d.ts.map +1 -1
  28. package/dist/node/api.js +11 -10
  29. package/dist/node/api.js.map +1 -1
  30. package/dist/node/carrier.d.ts +11 -5
  31. package/dist/node/carrier.d.ts.map +1 -1
  32. package/dist/node/carrier.js +42 -1
  33. package/dist/node/carrier.js.map +1 -1
  34. package/dist/node/copy.d.ts +1 -1
  35. package/dist/node/copy.d.ts.map +1 -1
  36. package/dist/node/copy.js +10 -4
  37. package/dist/node/copy.js.map +1 -1
  38. package/dist/node/host.d.ts +2 -0
  39. package/dist/node/host.d.ts.map +1 -1
  40. package/dist/node/host.js +2 -0
  41. package/dist/node/host.js.map +1 -1
  42. package/dist/node/index.d.ts +1 -1
  43. package/dist/node/index.d.ts.map +1 -1
  44. package/dist/node/node.d.ts.map +1 -1
  45. package/dist/node/node.js +496 -295
  46. package/dist/node/node.js.map +1 -1
  47. package/dist/node/remote.d.ts.map +1 -1
  48. package/dist/node/remote.js +0 -2
  49. package/dist/node/remote.js.map +1 -1
  50. package/dist/node/space-runtime.d.ts +2 -1
  51. package/dist/node/space-runtime.d.ts.map +1 -1
  52. package/dist/node/space-runtime.js +2 -2
  53. package/dist/node/space-runtime.js.map +1 -1
  54. package/dist/node/types.d.ts +72 -43
  55. package/dist/node/types.d.ts.map +1 -1
  56. package/dist/react/use-invite-link.d.ts +1 -1
  57. package/dist/react/use-invite-link.d.ts.map +1 -1
  58. package/dist/react/use-invite-link.js +18 -11
  59. package/dist/react/use-invite-link.js.map +1 -1
  60. package/dist/records/loose.d.ts +52 -0
  61. package/dist/records/loose.d.ts.map +1 -0
  62. package/dist/records/loose.js +86 -0
  63. package/dist/records/loose.js.map +1 -0
  64. package/dist/schema/version.d.ts +2 -0
  65. package/dist/schema/version.d.ts.map +1 -1
  66. package/dist/schema/version.js +2 -1
  67. package/dist/schema/version.js.map +1 -1
  68. package/dist/schemas/choosing.d.ts +19 -0
  69. package/dist/schemas/choosing.d.ts.map +1 -0
  70. package/dist/schemas/choosing.js +69 -0
  71. package/dist/schemas/choosing.js.map +1 -0
  72. package/dist/schemas/contacts.d.ts +34 -87
  73. package/dist/schemas/contacts.d.ts.map +1 -1
  74. package/dist/schemas/contacts.js +32 -76
  75. package/dist/schemas/contacts.js.map +1 -1
  76. package/dist/schemas/index.d.ts +2 -2
  77. package/dist/schemas/index.d.ts.map +1 -1
  78. package/dist/schemas/index.js +1 -1
  79. package/dist/schemas/index.js.map +1 -1
  80. package/dist/schemas/library/annotations.d.ts +17 -285
  81. package/dist/schemas/library/annotations.d.ts.map +1 -1
  82. package/dist/schemas/library/annotations.js +9 -65
  83. package/dist/schemas/library/annotations.js.map +1 -1
  84. package/dist/schemas/library/community.d.ts +9 -17
  85. package/dist/schemas/library/community.d.ts.map +1 -1
  86. package/dist/schemas/library/community.js +5 -5
  87. package/dist/schemas/library/community.js.map +1 -1
  88. package/dist/schemas/library/life.d.ts +3 -3
  89. package/dist/schemas/library/life.d.ts.map +1 -1
  90. package/dist/schemas/library/life.js +2 -2
  91. package/dist/schemas/library/life.js.map +1 -1
  92. package/dist/schemas/library/media.d.ts +148 -541
  93. package/dist/schemas/library/media.d.ts.map +1 -1
  94. package/dist/schemas/library/media.js +28 -64
  95. package/dist/schemas/library/media.js.map +1 -1
  96. package/dist/schemas/library/money.d.ts +8 -8
  97. package/dist/schemas/library/money.d.ts.map +1 -1
  98. package/dist/schemas/library/money.js +4 -4
  99. package/dist/schemas/library/money.js.map +1 -1
  100. package/dist/schemas/library/planning.d.ts +23 -87
  101. package/dist/schemas/library/planning.d.ts.map +1 -1
  102. package/dist/schemas/library/planning.js +10 -26
  103. package/dist/schemas/library/planning.js.map +1 -1
  104. package/dist/schemas/library/publishing.d.ts +14 -14
  105. package/dist/schemas/library/publishing.d.ts.map +1 -1
  106. package/dist/schemas/library/publishing.js +7 -7
  107. package/dist/schemas/library/publishing.js.map +1 -1
  108. package/dist/schemas/library/social.d.ts +2 -2
  109. package/dist/schemas/library/social.d.ts.map +1 -1
  110. package/dist/schemas/library/social.js +1 -1
  111. package/dist/schemas/library/social.js.map +1 -1
  112. package/dist/schemas/standard.d.ts +1 -1
  113. package/dist/schemas/standard.d.ts.map +1 -1
  114. package/dist/schemas/standard.js +3 -3
  115. package/dist/schemas/standard.js.map +1 -1
  116. package/dist/session/auth.js +1 -1
  117. package/dist/session/auth.js.map +1 -1
  118. package/dist/space/account-registry.d.ts +22 -0
  119. package/dist/space/account-registry.d.ts.map +1 -1
  120. package/dist/space/account-registry.js +18 -0
  121. package/dist/space/account-registry.js.map +1 -1
  122. package/dist/space/invitation.d.ts +61 -0
  123. package/dist/space/invitation.d.ts.map +1 -0
  124. package/dist/space/invitation.js +84 -0
  125. package/dist/space/invitation.js.map +1 -0
  126. package/dist/space/invite-link.d.ts +64 -0
  127. package/dist/space/invite-link.d.ts.map +1 -0
  128. package/dist/space/invite-link.js +212 -0
  129. package/dist/space/invite-link.js.map +1 -0
  130. package/dist/space/space-manager.d.ts +21 -6
  131. package/dist/space/space-manager.d.ts.map +1 -1
  132. package/dist/space/space-manager.js +40 -23
  133. package/dist/space/space-manager.js.map +1 -1
  134. package/dist/types.d.ts +2 -0
  135. package/dist/types.d.ts.map +1 -1
  136. package/dist/types.js.map +1 -1
  137. package/docs/README.md +2 -2
  138. package/docs/actions.md +37 -37
  139. package/docs/automations.md +2 -2
  140. package/docs/blueprints-and-guides.md +44 -3
  141. package/docs/building-an-app.md +2 -2
  142. package/docs/contacts.md +48 -69
  143. package/docs/inbox.md +145 -0
  144. package/docs/node.md +36 -23
  145. package/docs/query-format.md +1 -1
  146. package/docs/spaces.md +33 -5
  147. package/docs/standard-library.md +111 -86
  148. package/package.json +5 -5
  149. package/dist/doors/doors.d.ts +0 -140
  150. package/dist/doors/doors.d.ts.map +0 -1
  151. package/dist/doors/doors.js +0 -226
  152. package/dist/doors/doors.js.map +0 -1
  153. package/dist/doors/index.d.ts +0 -9
  154. package/dist/doors/index.d.ts.map +0 -1
  155. package/dist/doors/index.js +0 -7
  156. package/dist/doors/index.js.map +0 -1
  157. package/docs/doors.md +0 -151
@@ -6,7 +6,7 @@ import type { BodyOf } from '../../query/types.js';
6
6
  export declare const list: {
7
7
  readonly name: "std.list";
8
8
  readonly title: "List";
9
- readonly description: "A list of things; its items are std.list-item records linked in it.";
9
+ readonly description: "A named, ordered group of anything that exists while empty: a checklist, a folder, an album, a playlist, a category (`kind`). Each member is a std.list-item in it, about the record it stands for. For loose labels, use std.tag.";
10
10
  readonly schema: {
11
11
  readonly type: "object";
12
12
  readonly properties: {
@@ -91,104 +91,37 @@ export declare const listItem: {
91
91
  readonly position?: string | undefined;
92
92
  }>;
93
93
  export type ListItem = BodyOf<typeof listItem>;
94
- /** A folder of files, inside another or at the top. */
95
- export declare const folder: {
96
- readonly name: "std.folder";
97
- readonly title: "Folder";
98
- readonly description: "A folder of files.";
99
- readonly schema: {
100
- readonly type: "object";
101
- readonly properties: {
102
- name: {
103
- type: 'string';
104
- minLength?: number | undefined;
105
- maxLength: number;
106
- };
107
- };
108
- readonly required: readonly ["name"];
109
- };
110
- readonly links: {
111
- parent: import("../../records/links.js").LinkDeclaration;
112
- };
113
- } & import("../../index.js").Typed<{
114
- readonly name: string;
115
- }>;
116
- export type Folder = BodyOf<typeof folder>;
117
- /** A file, in a folder or at the top. */
94
+ /**
95
+ * A file kept in the space, or one kept elsewhere at `url`: the one record for
96
+ * every file, whatever app shares it. A photo, a video or a song's audio is a
97
+ * file with the fields that suit it. `about` is the record it was shared on or
98
+ * attached to, like a message or a task; a file shared on its own has none.
99
+ * Groups of files (folders, albums, categories) are `std.list`s with an item
100
+ * about each file, so one file can be in many.
101
+ */
118
102
  export declare const file: {
119
103
  readonly name: "std.file";
120
104
  readonly title: "File";
121
- readonly description: "A file, in a folder.";
105
+ readonly description: "Any file people share: a document, photo, video or recording, on its own or attached to a record (about). The only collection for files: a photo or video is a std.file too. For a folder, album or category of files, use std.list with a std.list-item about each file.";
122
106
  readonly schema: {
123
107
  readonly type: "object";
124
108
  readonly properties: {
125
- name: {
109
+ readonly name: {
126
110
  type: 'string';
127
111
  minLength?: number | undefined;
128
112
  maxLength: number;
129
113
  };
130
- blob: {
131
- type: 'object';
132
- properties: {
133
- hash: {
134
- type: 'string';
135
- minLength: number;
136
- maxLength: number;
137
- };
138
- size: {
139
- type: 'integer';
140
- minimum: number;
141
- };
142
- mime: {
143
- type: 'string';
144
- minLength?: number | undefined;
145
- maxLength: number;
146
- };
147
- name: {
148
- type: 'string';
149
- minLength?: number | undefined;
150
- maxLength: number;
151
- };
152
- key: {
153
- type: 'string';
154
- minLength: number;
155
- maxLength: number;
156
- };
157
- salt: {
158
- type: 'string';
159
- minLength: number;
160
- maxLength: number;
161
- };
162
- };
163
- required: readonly ["hash", "size", "mime"];
114
+ readonly mime: {
115
+ readonly type: "string";
116
+ readonly minLength: 1;
117
+ readonly maxLength: 255;
164
118
  };
165
- };
166
- readonly required: readonly ["name", "blob"];
167
- };
168
- readonly links: {
169
- parent: import("../../records/links.js").LinkDeclaration;
170
- };
171
- } & import("../../index.js").Typed<{
172
- readonly name: string;
173
- readonly blob: {
174
- readonly hash: string;
175
- readonly size: number;
176
- readonly mime: string;
177
- readonly name?: string | undefined;
178
- readonly key?: string | undefined;
179
- readonly salt?: string | undefined;
180
- };
181
- }>;
182
- export type FileEntry = BodyOf<typeof file>;
183
- /** A photo, in any number of albums. */
184
- export declare const photo: {
185
- readonly name: "std.photo";
186
- readonly title: "Photo";
187
- readonly description: "A photo, with where and when it was taken.";
188
- readonly schema: {
189
- readonly type: "object";
190
- readonly properties: {
191
- blob: {
119
+ readonly size: {
120
+ type: 'integer';
121
+ minimum: number;
122
+ maximum?: number | undefined;
123
+ };
124
+ readonly blob: {
192
125
  type: 'object';
193
126
  properties: {
194
127
  hash: {
@@ -223,27 +156,37 @@ export declare const photo: {
223
156
  };
224
157
  required: readonly ["hash", "size", "mime"];
225
158
  };
226
- alt: {
159
+ readonly url: {
160
+ type: 'string';
161
+ minLength?: number | undefined;
162
+ maxLength: number;
163
+ };
164
+ readonly alt: {
227
165
  type: 'string';
228
166
  minLength?: number | undefined;
229
167
  maxLength: number;
230
168
  };
231
- width: {
169
+ readonly width: {
232
170
  type: 'integer';
233
171
  minimum: number;
234
172
  maximum?: number | undefined;
235
173
  };
236
- height: {
174
+ readonly height: {
237
175
  type: 'integer';
238
176
  minimum: number;
239
177
  maximum?: number | undefined;
240
178
  };
241
- takenAt: {
179
+ readonly duration: {
180
+ readonly type: "number";
181
+ readonly minimum: 0;
182
+ readonly description: "Seconds, for a video or a sound";
183
+ };
184
+ readonly takenAt: {
242
185
  type: 'string';
243
186
  minLength?: number | undefined;
244
187
  maxLength: number;
245
188
  };
246
- place: {
189
+ readonly place: {
247
190
  type: 'object';
248
191
  properties: {
249
192
  name: {
@@ -303,112 +246,6 @@ export declare const photo: {
303
246
  };
304
247
  };
305
248
  };
306
- };
307
- readonly required: readonly ["blob"];
308
- };
309
- readonly links: {
310
- in: import("../../records/links.js").LinkDeclaration;
311
- };
312
- } & import("../../index.js").Typed<{
313
- readonly blob: {
314
- readonly hash: string;
315
- readonly size: number;
316
- readonly mime: string;
317
- readonly name?: string | undefined;
318
- readonly key?: string | undefined;
319
- readonly salt?: string | undefined;
320
- };
321
- readonly alt?: string | undefined;
322
- readonly width?: number | undefined;
323
- readonly height?: number | undefined;
324
- readonly takenAt?: string | undefined;
325
- readonly place?: {
326
- readonly name?: string | undefined;
327
- readonly address?: {
328
- readonly street?: string | undefined;
329
- readonly locality?: string | undefined;
330
- readonly region?: string | undefined;
331
- readonly postcode?: string | undefined;
332
- readonly country?: string | undefined;
333
- } | undefined;
334
- readonly lat?: number | undefined;
335
- readonly lon?: number | undefined;
336
- readonly cells?: readonly string[] | undefined;
337
- } | undefined;
338
- }>;
339
- export type Photo = BodyOf<typeof photo>;
340
- /** An album of photos and videos. */
341
- export declare const album: {
342
- readonly name: "std.album";
343
- readonly title: "Album";
344
- readonly description: "An album of photos and videos.";
345
- readonly schema: {
346
- readonly type: "object";
347
- readonly properties: {
348
- title: {
349
- type: 'string';
350
- minLength?: number | undefined;
351
- maxLength: number;
352
- };
353
- description: {
354
- type: 'string';
355
- minLength?: number | undefined;
356
- maxLength: number;
357
- };
358
- };
359
- readonly required: readonly ["title"];
360
- };
361
- readonly links: {
362
- cover: import("../../records/links.js").LinkDeclaration;
363
- };
364
- } & import("../../index.js").Typed<{
365
- readonly title: string;
366
- readonly description?: string | undefined;
367
- }>;
368
- export type Album = BodyOf<typeof album>;
369
- /** A video, with a still to show before it plays and captions. */
370
- export declare const video: {
371
- readonly name: "std.video";
372
- readonly title: "Video";
373
- readonly description: "A video, with a thumbnail and captions.";
374
- readonly schema: {
375
- readonly type: "object";
376
- readonly properties: {
377
- readonly blob: {
378
- type: 'object';
379
- properties: {
380
- hash: {
381
- type: 'string';
382
- minLength: number;
383
- maxLength: number;
384
- };
385
- size: {
386
- type: 'integer';
387
- minimum: number;
388
- };
389
- mime: {
390
- type: 'string';
391
- minLength?: number | undefined;
392
- maxLength: number;
393
- };
394
- name: {
395
- type: 'string';
396
- minLength?: number | undefined;
397
- maxLength: number;
398
- };
399
- key: {
400
- type: 'string';
401
- minLength: number;
402
- maxLength: number;
403
- };
404
- salt: {
405
- type: 'string';
406
- minLength: number;
407
- maxLength: number;
408
- };
409
- };
410
- required: readonly ["hash", "size", "mime"];
411
- };
412
249
  readonly thumbnail: {
413
250
  type: 'object';
414
251
  properties: {
@@ -444,11 +281,6 @@ export declare const video: {
444
281
  };
445
282
  required: readonly ["hash", "size", "mime"];
446
283
  };
447
- readonly duration: {
448
- readonly type: "number";
449
- readonly minimum: 0;
450
- readonly description: "Seconds";
451
- };
452
284
  readonly captions: {
453
285
  type: 'object';
454
286
  properties: {
@@ -484,31 +316,43 @@ export declare const video: {
484
316
  };
485
317
  required: readonly ["hash", "size", "mime"];
486
318
  };
487
- readonly alt: {
488
- type: 'string';
489
- minLength?: number | undefined;
490
- maxLength: number;
491
- };
492
- readonly title: {
493
- type: 'string';
494
- minLength?: number | undefined;
495
- maxLength: number;
496
- };
497
319
  };
498
- readonly required: readonly ["blob"];
320
+ readonly required: readonly ["name", "mime"];
499
321
  };
500
322
  readonly links: {
501
- in: import("../../records/links.js").LinkDeclaration;
323
+ about: import("../../records/links.js").LinkDeclaration;
502
324
  };
503
325
  } & import("../../index.js").Typed<{
504
- readonly blob: {
326
+ readonly name: string;
327
+ readonly mime: string;
328
+ readonly size?: number | undefined;
329
+ readonly blob?: {
505
330
  readonly hash: string;
506
331
  readonly size: number;
507
332
  readonly mime: string;
508
333
  readonly name?: string | undefined;
509
334
  readonly key?: string | undefined;
510
335
  readonly salt?: string | undefined;
511
- };
336
+ } | undefined;
337
+ readonly url?: string | undefined;
338
+ readonly alt?: string | undefined;
339
+ readonly width?: number | undefined;
340
+ readonly height?: number | undefined;
341
+ readonly duration?: number | undefined;
342
+ readonly takenAt?: string | undefined;
343
+ readonly place?: {
344
+ readonly name?: string | undefined;
345
+ readonly address?: {
346
+ readonly street?: string | undefined;
347
+ readonly locality?: string | undefined;
348
+ readonly region?: string | undefined;
349
+ readonly postcode?: string | undefined;
350
+ readonly country?: string | undefined;
351
+ } | undefined;
352
+ readonly lat?: number | undefined;
353
+ readonly lon?: number | undefined;
354
+ readonly cells?: readonly string[] | undefined;
355
+ } | undefined;
512
356
  readonly thumbnail?: {
513
357
  readonly hash: string;
514
358
  readonly size: number;
@@ -517,7 +361,6 @@ export declare const video: {
517
361
  readonly key?: string | undefined;
518
362
  readonly salt?: string | undefined;
519
363
  } | undefined;
520
- readonly duration?: number | undefined;
521
364
  readonly captions?: {
522
365
  readonly hash: string;
523
366
  readonly size: number;
@@ -526,15 +369,13 @@ export declare const video: {
526
369
  readonly key?: string | undefined;
527
370
  readonly salt?: string | undefined;
528
371
  } | undefined;
529
- readonly alt?: string | undefined;
530
- readonly title?: string | undefined;
531
372
  }>;
532
- export type Video = BodyOf<typeof video>;
533
- /** A piece of music, known by its ids; `blob` when the space holds the audio. */
373
+ export type FileRecord = BodyOf<typeof file>;
374
+ /** A piece of music, known by its ids; `file` when the space holds the audio. */
534
375
  export declare const track: {
535
376
  readonly name: "std.track";
536
377
  readonly title: "Track";
537
- readonly description: "A piece of music, by title, artists and ids.";
378
+ readonly description: "A piece of music, by title, artists and ids. Its audio, when the space holds it, is a std.file it links to. A playlist is a std.list.";
538
379
  readonly schema: {
539
380
  readonly type: "object";
540
381
  readonly properties: {
@@ -572,46 +413,11 @@ export declare const track: {
572
413
  minLength?: number | undefined;
573
414
  maxLength: number;
574
415
  };
575
- readonly blob: {
576
- type: 'object';
577
- properties: {
578
- hash: {
579
- type: 'string';
580
- minLength: number;
581
- maxLength: number;
582
- };
583
- size: {
584
- type: 'integer';
585
- minimum: number;
586
- };
587
- mime: {
588
- type: 'string';
589
- minLength?: number | undefined;
590
- maxLength: number;
591
- };
592
- name: {
593
- type: 'string';
594
- minLength?: number | undefined;
595
- maxLength: number;
596
- };
597
- key: {
598
- type: 'string';
599
- minLength: number;
600
- maxLength: number;
601
- };
602
- salt: {
603
- type: 'string';
604
- minLength: number;
605
- maxLength: number;
606
- };
607
- };
608
- required: readonly ["hash", "size", "mime"];
609
- };
610
416
  };
611
417
  readonly required: readonly ["title"];
612
418
  };
613
419
  readonly links: {
614
- in: import("../../records/links.js").LinkDeclaration;
420
+ file: import("../../records/links.js").LinkDeclaration;
615
421
  };
616
422
  } & import("../../index.js").Typed<{
617
423
  readonly title: string;
@@ -620,21 +426,13 @@ export declare const track: {
620
426
  readonly duration?: number | undefined;
621
427
  readonly isrc?: string | undefined;
622
428
  readonly mbid?: string | undefined;
623
- readonly blob?: {
624
- readonly hash: string;
625
- readonly size: number;
626
- readonly mime: string;
627
- readonly name?: string | undefined;
628
- readonly key?: string | undefined;
629
- readonly salt?: string | undefined;
630
- } | undefined;
631
429
  }>;
632
430
  export type Track = BodyOf<typeof track>;
633
431
  /** A track someone listened to, and when: a listening history. */
634
432
  export declare const play: {
635
433
  readonly name: "std.play";
636
434
  readonly title: "Play";
637
- readonly description: "A track someone listened to, and when.";
435
+ readonly description: "A track someone listened to, and when: about the std.track when the space has it.";
638
436
  readonly schema: {
639
437
  readonly type: "object";
640
438
  readonly properties: {
@@ -680,6 +478,9 @@ export declare const play: {
680
478
  };
681
479
  readonly required: readonly ["title", "playedAt"];
682
480
  };
481
+ readonly links: {
482
+ about: import("../../records/links.js").LinkDeclaration;
483
+ };
683
484
  } & import("../../index.js").Typed<{
684
485
  readonly title: string;
685
486
  readonly artists?: readonly string[] | undefined;
@@ -695,7 +496,7 @@ export declare const mediaGroups: {
695
496
  Lists: (({
696
497
  readonly name: "std.list";
697
498
  readonly title: "List";
698
- readonly description: "A list of things; its items are std.list-item records linked in it.";
499
+ readonly description: "A named, ordered group of anything that exists while empty: a checklist, a folder, an album, a playlist, a category (`kind`). Each member is a std.list-item in it, about the record it stands for. For loose labels, use std.tag.";
699
500
  readonly schema: {
700
501
  readonly type: "object";
701
502
  readonly properties: {
@@ -764,109 +565,41 @@ export declare const mediaGroups: {
764
565
  };
765
566
  };
766
567
  readonly links: {
767
- in: import("../../records/links.js").LinkDeclaration;
768
- about: import("../../records/links.js").LinkDeclaration;
769
- };
770
- readonly topics: readonly ["did"];
771
- } & import("../../index.js").Typed<{
772
- readonly text?: string | undefined;
773
- readonly url?: string | undefined;
774
- readonly did?: string | undefined;
775
- readonly checked?: boolean | undefined;
776
- readonly quantity?: number | undefined;
777
- readonly position?: string | undefined;
778
- }>))[];
779
- 'Files and media': (({
780
- readonly name: "std.folder";
781
- readonly title: "Folder";
782
- readonly description: "A folder of files.";
783
- readonly schema: {
784
- readonly type: "object";
785
- readonly properties: {
786
- name: {
787
- type: 'string';
788
- minLength?: number | undefined;
789
- maxLength: number;
790
- };
791
- };
792
- readonly required: readonly ["name"];
793
- };
794
- readonly links: {
795
- parent: import("../../records/links.js").LinkDeclaration;
796
- };
797
- } & import("../../index.js").Typed<{
798
- readonly name: string;
799
- }>) | ({
800
- readonly name: "std.file";
801
- readonly title: "File";
802
- readonly description: "A file, in a folder.";
803
- readonly schema: {
804
- readonly type: "object";
805
- readonly properties: {
806
- name: {
807
- type: 'string';
808
- minLength?: number | undefined;
809
- maxLength: number;
810
- };
811
- blob: {
812
- type: 'object';
813
- properties: {
814
- hash: {
815
- type: 'string';
816
- minLength: number;
817
- maxLength: number;
818
- };
819
- size: {
820
- type: 'integer';
821
- minimum: number;
822
- };
823
- mime: {
824
- type: 'string';
825
- minLength?: number | undefined;
826
- maxLength: number;
827
- };
828
- name: {
829
- type: 'string';
830
- minLength?: number | undefined;
831
- maxLength: number;
832
- };
833
- key: {
834
- type: 'string';
835
- minLength: number;
836
- maxLength: number;
837
- };
838
- salt: {
839
- type: 'string';
840
- minLength: number;
841
- maxLength: number;
842
- };
843
- };
844
- required: readonly ["hash", "size", "mime"];
845
- };
846
- };
847
- readonly required: readonly ["name", "blob"];
848
- };
849
- readonly links: {
850
- parent: import("../../records/links.js").LinkDeclaration;
568
+ in: import("../../records/links.js").LinkDeclaration;
569
+ about: import("../../records/links.js").LinkDeclaration;
851
570
  };
571
+ readonly topics: readonly ["did"];
852
572
  } & import("../../index.js").Typed<{
853
- readonly name: string;
854
- readonly blob: {
855
- readonly hash: string;
856
- readonly size: number;
857
- readonly mime: string;
858
- readonly name?: string | undefined;
859
- readonly key?: string | undefined;
860
- readonly salt?: string | undefined;
861
- };
862
- }>) | ({
863
- readonly name: "std.photo";
864
- readonly title: "Photo";
865
- readonly description: "A photo, with where and when it was taken.";
573
+ readonly text?: string | undefined;
574
+ readonly url?: string | undefined;
575
+ readonly did?: string | undefined;
576
+ readonly checked?: boolean | undefined;
577
+ readonly quantity?: number | undefined;
578
+ readonly position?: string | undefined;
579
+ }>))[];
580
+ 'Files and media': (({
581
+ readonly name: "std.file";
582
+ readonly title: "File";
583
+ readonly description: "Any file people share: a document, photo, video or recording, on its own or attached to a record (about). The only collection for files: a photo or video is a std.file too. For a folder, album or category of files, use std.list with a std.list-item about each file.";
866
584
  readonly schema: {
867
585
  readonly type: "object";
868
586
  readonly properties: {
869
- blob: {
587
+ readonly name: {
588
+ type: 'string';
589
+ minLength?: number | undefined;
590
+ maxLength: number;
591
+ };
592
+ readonly mime: {
593
+ readonly type: "string";
594
+ readonly minLength: 1;
595
+ readonly maxLength: 255;
596
+ };
597
+ readonly size: {
598
+ type: 'integer';
599
+ minimum: number;
600
+ maximum?: number | undefined;
601
+ };
602
+ readonly blob: {
870
603
  type: 'object';
871
604
  properties: {
872
605
  hash: {
@@ -901,27 +634,37 @@ export declare const mediaGroups: {
901
634
  };
902
635
  required: readonly ["hash", "size", "mime"];
903
636
  };
904
- alt: {
637
+ readonly url: {
638
+ type: 'string';
639
+ minLength?: number | undefined;
640
+ maxLength: number;
641
+ };
642
+ readonly alt: {
905
643
  type: 'string';
906
644
  minLength?: number | undefined;
907
645
  maxLength: number;
908
646
  };
909
- width: {
647
+ readonly width: {
910
648
  type: 'integer';
911
649
  minimum: number;
912
650
  maximum?: number | undefined;
913
651
  };
914
- height: {
652
+ readonly height: {
915
653
  type: 'integer';
916
654
  minimum: number;
917
655
  maximum?: number | undefined;
918
656
  };
919
- takenAt: {
657
+ readonly duration: {
658
+ readonly type: "number";
659
+ readonly minimum: 0;
660
+ readonly description: "Seconds, for a video or a sound";
661
+ };
662
+ readonly takenAt: {
920
663
  type: 'string';
921
664
  minLength?: number | undefined;
922
665
  maxLength: number;
923
666
  };
924
- place: {
667
+ readonly place: {
925
668
  type: 'object';
926
669
  properties: {
927
670
  name: {
@@ -981,106 +724,6 @@ export declare const mediaGroups: {
981
724
  };
982
725
  };
983
726
  };
984
- };
985
- readonly required: readonly ["blob"];
986
- };
987
- readonly links: {
988
- in: import("../../records/links.js").LinkDeclaration;
989
- };
990
- } & import("../../index.js").Typed<{
991
- readonly blob: {
992
- readonly hash: string;
993
- readonly size: number;
994
- readonly mime: string;
995
- readonly name?: string | undefined;
996
- readonly key?: string | undefined;
997
- readonly salt?: string | undefined;
998
- };
999
- readonly alt?: string | undefined;
1000
- readonly width?: number | undefined;
1001
- readonly height?: number | undefined;
1002
- readonly takenAt?: string | undefined;
1003
- readonly place?: {
1004
- readonly name?: string | undefined;
1005
- readonly address?: {
1006
- readonly street?: string | undefined;
1007
- readonly locality?: string | undefined;
1008
- readonly region?: string | undefined;
1009
- readonly postcode?: string | undefined;
1010
- readonly country?: string | undefined;
1011
- } | undefined;
1012
- readonly lat?: number | undefined;
1013
- readonly lon?: number | undefined;
1014
- readonly cells?: readonly string[] | undefined;
1015
- } | undefined;
1016
- }>) | ({
1017
- readonly name: "std.album";
1018
- readonly title: "Album";
1019
- readonly description: "An album of photos and videos.";
1020
- readonly schema: {
1021
- readonly type: "object";
1022
- readonly properties: {
1023
- title: {
1024
- type: 'string';
1025
- minLength?: number | undefined;
1026
- maxLength: number;
1027
- };
1028
- description: {
1029
- type: 'string';
1030
- minLength?: number | undefined;
1031
- maxLength: number;
1032
- };
1033
- };
1034
- readonly required: readonly ["title"];
1035
- };
1036
- readonly links: {
1037
- cover: import("../../records/links.js").LinkDeclaration;
1038
- };
1039
- } & import("../../index.js").Typed<{
1040
- readonly title: string;
1041
- readonly description?: string | undefined;
1042
- }>) | ({
1043
- readonly name: "std.video";
1044
- readonly title: "Video";
1045
- readonly description: "A video, with a thumbnail and captions.";
1046
- readonly schema: {
1047
- readonly type: "object";
1048
- readonly properties: {
1049
- readonly blob: {
1050
- type: 'object';
1051
- properties: {
1052
- hash: {
1053
- type: 'string';
1054
- minLength: number;
1055
- maxLength: number;
1056
- };
1057
- size: {
1058
- type: 'integer';
1059
- minimum: number;
1060
- };
1061
- mime: {
1062
- type: 'string';
1063
- minLength?: number | undefined;
1064
- maxLength: number;
1065
- };
1066
- name: {
1067
- type: 'string';
1068
- minLength?: number | undefined;
1069
- maxLength: number;
1070
- };
1071
- key: {
1072
- type: 'string';
1073
- minLength: number;
1074
- maxLength: number;
1075
- };
1076
- salt: {
1077
- type: 'string';
1078
- minLength: number;
1079
- maxLength: number;
1080
- };
1081
- };
1082
- required: readonly ["hash", "size", "mime"];
1083
- };
1084
727
  readonly thumbnail: {
1085
728
  type: 'object';
1086
729
  properties: {
@@ -1116,11 +759,6 @@ export declare const mediaGroups: {
1116
759
  };
1117
760
  required: readonly ["hash", "size", "mime"];
1118
761
  };
1119
- readonly duration: {
1120
- readonly type: "number";
1121
- readonly minimum: 0;
1122
- readonly description: "Seconds";
1123
- };
1124
762
  readonly captions: {
1125
763
  type: 'object';
1126
764
  properties: {
@@ -1156,31 +794,43 @@ export declare const mediaGroups: {
1156
794
  };
1157
795
  required: readonly ["hash", "size", "mime"];
1158
796
  };
1159
- readonly alt: {
1160
- type: 'string';
1161
- minLength?: number | undefined;
1162
- maxLength: number;
1163
- };
1164
- readonly title: {
1165
- type: 'string';
1166
- minLength?: number | undefined;
1167
- maxLength: number;
1168
- };
1169
797
  };
1170
- readonly required: readonly ["blob"];
798
+ readonly required: readonly ["name", "mime"];
1171
799
  };
1172
800
  readonly links: {
1173
- in: import("../../records/links.js").LinkDeclaration;
801
+ about: import("../../records/links.js").LinkDeclaration;
1174
802
  };
1175
803
  } & import("../../index.js").Typed<{
1176
- readonly blob: {
804
+ readonly name: string;
805
+ readonly mime: string;
806
+ readonly size?: number | undefined;
807
+ readonly blob?: {
1177
808
  readonly hash: string;
1178
809
  readonly size: number;
1179
810
  readonly mime: string;
1180
811
  readonly name?: string | undefined;
1181
812
  readonly key?: string | undefined;
1182
813
  readonly salt?: string | undefined;
1183
- };
814
+ } | undefined;
815
+ readonly url?: string | undefined;
816
+ readonly alt?: string | undefined;
817
+ readonly width?: number | undefined;
818
+ readonly height?: number | undefined;
819
+ readonly duration?: number | undefined;
820
+ readonly takenAt?: string | undefined;
821
+ readonly place?: {
822
+ readonly name?: string | undefined;
823
+ readonly address?: {
824
+ readonly street?: string | undefined;
825
+ readonly locality?: string | undefined;
826
+ readonly region?: string | undefined;
827
+ readonly postcode?: string | undefined;
828
+ readonly country?: string | undefined;
829
+ } | undefined;
830
+ readonly lat?: number | undefined;
831
+ readonly lon?: number | undefined;
832
+ readonly cells?: readonly string[] | undefined;
833
+ } | undefined;
1184
834
  readonly thumbnail?: {
1185
835
  readonly hash: string;
1186
836
  readonly size: number;
@@ -1189,7 +839,6 @@ export declare const mediaGroups: {
1189
839
  readonly key?: string | undefined;
1190
840
  readonly salt?: string | undefined;
1191
841
  } | undefined;
1192
- readonly duration?: number | undefined;
1193
842
  readonly captions?: {
1194
843
  readonly hash: string;
1195
844
  readonly size: number;
@@ -1198,12 +847,10 @@ export declare const mediaGroups: {
1198
847
  readonly key?: string | undefined;
1199
848
  readonly salt?: string | undefined;
1200
849
  } | undefined;
1201
- readonly alt?: string | undefined;
1202
- readonly title?: string | undefined;
1203
850
  }>) | ({
1204
851
  readonly name: "std.track";
1205
852
  readonly title: "Track";
1206
- readonly description: "A piece of music, by title, artists and ids.";
853
+ readonly description: "A piece of music, by title, artists and ids. Its audio, when the space holds it, is a std.file it links to. A playlist is a std.list.";
1207
854
  readonly schema: {
1208
855
  readonly type: "object";
1209
856
  readonly properties: {
@@ -1241,46 +888,11 @@ export declare const mediaGroups: {
1241
888
  minLength?: number | undefined;
1242
889
  maxLength: number;
1243
890
  };
1244
- readonly blob: {
1245
- type: 'object';
1246
- properties: {
1247
- hash: {
1248
- type: 'string';
1249
- minLength: number;
1250
- maxLength: number;
1251
- };
1252
- size: {
1253
- type: 'integer';
1254
- minimum: number;
1255
- };
1256
- mime: {
1257
- type: 'string';
1258
- minLength?: number | undefined;
1259
- maxLength: number;
1260
- };
1261
- name: {
1262
- type: 'string';
1263
- minLength?: number | undefined;
1264
- maxLength: number;
1265
- };
1266
- key: {
1267
- type: 'string';
1268
- minLength: number;
1269
- maxLength: number;
1270
- };
1271
- salt: {
1272
- type: 'string';
1273
- minLength: number;
1274
- maxLength: number;
1275
- };
1276
- };
1277
- required: readonly ["hash", "size", "mime"];
1278
- };
1279
891
  };
1280
892
  readonly required: readonly ["title"];
1281
893
  };
1282
894
  readonly links: {
1283
- in: import("../../records/links.js").LinkDeclaration;
895
+ file: import("../../records/links.js").LinkDeclaration;
1284
896
  };
1285
897
  } & import("../../index.js").Typed<{
1286
898
  readonly title: string;
@@ -1289,18 +901,10 @@ export declare const mediaGroups: {
1289
901
  readonly duration?: number | undefined;
1290
902
  readonly isrc?: string | undefined;
1291
903
  readonly mbid?: string | undefined;
1292
- readonly blob?: {
1293
- readonly hash: string;
1294
- readonly size: number;
1295
- readonly mime: string;
1296
- readonly name?: string | undefined;
1297
- readonly key?: string | undefined;
1298
- readonly salt?: string | undefined;
1299
- } | undefined;
1300
904
  }>) | ({
1301
905
  readonly name: "std.play";
1302
906
  readonly title: "Play";
1303
- readonly description: "A track someone listened to, and when.";
907
+ readonly description: "A track someone listened to, and when: about the std.track when the space has it.";
1304
908
  readonly schema: {
1305
909
  readonly type: "object";
1306
910
  readonly properties: {
@@ -1346,6 +950,9 @@ export declare const mediaGroups: {
1346
950
  };
1347
951
  readonly required: readonly ["title", "playedAt"];
1348
952
  };
953
+ readonly links: {
954
+ about: import("../../records/links.js").LinkDeclaration;
955
+ };
1349
956
  } & import("../../index.js").Typed<{
1350
957
  readonly title: string;
1351
958
  readonly artists?: readonly string[] | undefined;