@minca/core 0.1.10 → 0.1.12
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/README.md +1 -1
- package/dist/identity/abilities.js +1 -1
- package/dist/identity/channel.d.ts +1 -1
- package/dist/identity/channel.d.ts.map +1 -1
- package/dist/identity/channel.js +1 -1
- package/dist/identity/channel.js.map +1 -1
- package/dist/identity/contact-key.d.ts +15 -15
- package/dist/identity/contact-key.d.ts.map +1 -1
- package/dist/identity/contact-key.js +21 -28
- package/dist/identity/contact-key.js.map +1 -1
- package/dist/inbox/inbox.d.ts +132 -0
- package/dist/inbox/inbox.d.ts.map +1 -0
- package/dist/inbox/inbox.js +197 -0
- package/dist/inbox/inbox.js.map +1 -0
- package/dist/inbox/index.d.ts +9 -0
- package/dist/inbox/index.d.ts.map +1 -0
- package/dist/inbox/index.js +7 -0
- package/dist/inbox/index.js.map +1 -0
- package/dist/index.d.ts +8 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/network/introductions.d.ts +1 -1
- package/dist/network/introductions.d.ts.map +1 -1
- package/dist/network/mesh.d.ts +4 -2
- package/dist/network/mesh.d.ts.map +1 -1
- package/dist/network/mesh.js +31 -45
- package/dist/network/mesh.js.map +1 -1
- package/dist/network/peer-auth.d.ts +4 -0
- package/dist/network/peer-auth.d.ts.map +1 -1
- package/dist/network/peer-auth.js +9 -7
- package/dist/network/peer-auth.js.map +1 -1
- package/dist/network/relay-minca.d.ts +6 -0
- package/dist/network/relay-minca.d.ts.map +1 -0
- package/dist/network/relay-minca.js +146 -0
- package/dist/network/relay-minca.js.map +1 -0
- package/dist/network/relay-nostr.d.ts +10 -0
- package/dist/network/relay-nostr.d.ts.map +1 -0
- package/dist/network/relay-nostr.js +247 -0
- package/dist/network/relay-nostr.js.map +1 -0
- package/dist/network/relay-socket.d.ts +87 -0
- package/dist/network/relay-socket.d.ts.map +1 -0
- package/dist/network/{signaling.js → relay-socket.js} +201 -167
- package/dist/network/relay-socket.js.map +1 -0
- package/dist/network/relays.d.ts +87 -0
- package/dist/network/relays.d.ts.map +1 -0
- package/dist/network/relays.js +43 -0
- package/dist/network/relays.js.map +1 -0
- package/dist/network/remote-transport.d.ts +1 -1
- package/dist/network/remote-transport.d.ts.map +1 -1
- package/dist/network/remote-transport.js +6 -31
- package/dist/network/remote-transport.js.map +1 -1
- package/dist/network/rendezvous.d.ts +59 -0
- package/dist/network/rendezvous.d.ts.map +1 -0
- package/dist/network/rendezvous.js +380 -0
- package/dist/network/rendezvous.js.map +1 -0
- package/dist/network/rtc-transport.d.ts.map +1 -1
- package/dist/network/rtc-transport.js +32 -17
- package/dist/network/rtc-transport.js.map +1 -1
- package/dist/network/transport.d.ts +7 -5
- package/dist/network/transport.d.ts.map +1 -1
- package/dist/node/actions.d.ts.map +1 -1
- package/dist/node/actions.js +28 -18
- package/dist/node/actions.js.map +1 -1
- package/dist/node/api.d.ts +11 -10
- package/dist/node/api.d.ts.map +1 -1
- package/dist/node/api.js +11 -10
- package/dist/node/api.js.map +1 -1
- package/dist/node/carrier.d.ts +11 -5
- package/dist/node/carrier.d.ts.map +1 -1
- package/dist/node/carrier.js +43 -2
- package/dist/node/carrier.js.map +1 -1
- package/dist/node/copy.d.ts +1 -1
- package/dist/node/copy.d.ts.map +1 -1
- package/dist/node/copy.js +10 -4
- package/dist/node/copy.js.map +1 -1
- package/dist/node/host.d.ts +2 -0
- package/dist/node/host.d.ts.map +1 -1
- package/dist/node/host.js +2 -0
- package/dist/node/host.js.map +1 -1
- package/dist/node/index.d.ts +1 -1
- package/dist/node/index.d.ts.map +1 -1
- package/dist/node/node.d.ts.map +1 -1
- package/dist/node/node.js +490 -298
- package/dist/node/node.js.map +1 -1
- package/dist/node/remote.d.ts.map +1 -1
- package/dist/node/remote.js +0 -2
- package/dist/node/remote.js.map +1 -1
- package/dist/node/space-runtime.d.ts +6 -2
- package/dist/node/space-runtime.d.ts.map +1 -1
- package/dist/node/space-runtime.js +5 -8
- package/dist/node/space-runtime.js.map +1 -1
- package/dist/node/types.d.ts +75 -46
- package/dist/node/types.d.ts.map +1 -1
- package/dist/react/use-invite-link.d.ts +1 -1
- package/dist/react/use-invite-link.d.ts.map +1 -1
- package/dist/react/use-invite-link.js +18 -11
- package/dist/react/use-invite-link.js.map +1 -1
- package/dist/records/loose.d.ts +52 -0
- package/dist/records/loose.d.ts.map +1 -0
- package/dist/records/loose.js +86 -0
- package/dist/records/loose.js.map +1 -0
- package/dist/schema/version.d.ts +2 -0
- package/dist/schema/version.d.ts.map +1 -1
- package/dist/schema/version.js +2 -1
- package/dist/schema/version.js.map +1 -1
- package/dist/schemas/choosing.d.ts +19 -0
- package/dist/schemas/choosing.d.ts.map +1 -0
- package/dist/schemas/choosing.js +69 -0
- package/dist/schemas/choosing.js.map +1 -0
- package/dist/schemas/contacts.d.ts +34 -87
- package/dist/schemas/contacts.d.ts.map +1 -1
- package/dist/schemas/contacts.js +32 -76
- package/dist/schemas/contacts.js.map +1 -1
- package/dist/schemas/index.d.ts +2 -2
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +1 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/library/annotations.d.ts +17 -285
- package/dist/schemas/library/annotations.d.ts.map +1 -1
- package/dist/schemas/library/annotations.js +9 -65
- package/dist/schemas/library/annotations.js.map +1 -1
- package/dist/schemas/library/community.d.ts +9 -17
- package/dist/schemas/library/community.d.ts.map +1 -1
- package/dist/schemas/library/community.js +5 -5
- package/dist/schemas/library/community.js.map +1 -1
- package/dist/schemas/library/life.d.ts +3 -3
- package/dist/schemas/library/life.d.ts.map +1 -1
- package/dist/schemas/library/life.js +2 -2
- package/dist/schemas/library/life.js.map +1 -1
- package/dist/schemas/library/media.d.ts +148 -541
- package/dist/schemas/library/media.d.ts.map +1 -1
- package/dist/schemas/library/media.js +28 -64
- package/dist/schemas/library/media.js.map +1 -1
- package/dist/schemas/library/money.d.ts +8 -8
- package/dist/schemas/library/money.d.ts.map +1 -1
- package/dist/schemas/library/money.js +4 -4
- package/dist/schemas/library/money.js.map +1 -1
- package/dist/schemas/library/planning.d.ts +23 -87
- package/dist/schemas/library/planning.d.ts.map +1 -1
- package/dist/schemas/library/planning.js +10 -26
- package/dist/schemas/library/planning.js.map +1 -1
- package/dist/schemas/library/publishing.d.ts +14 -14
- package/dist/schemas/library/publishing.d.ts.map +1 -1
- package/dist/schemas/library/publishing.js +7 -7
- package/dist/schemas/library/publishing.js.map +1 -1
- package/dist/schemas/library/social.d.ts +2 -2
- package/dist/schemas/library/social.d.ts.map +1 -1
- package/dist/schemas/library/social.js +1 -1
- package/dist/schemas/library/social.js.map +1 -1
- package/dist/schemas/standard.d.ts +1 -1
- package/dist/schemas/standard.d.ts.map +1 -1
- package/dist/schemas/standard.js +3 -3
- package/dist/schemas/standard.js.map +1 -1
- package/dist/session/auth.d.ts +5 -6
- package/dist/session/auth.d.ts.map +1 -1
- package/dist/session/auth.js +5 -6
- package/dist/session/auth.js.map +1 -1
- package/dist/session/channel-room.d.ts.map +1 -1
- package/dist/session/channel-room.js +3 -2
- package/dist/session/channel-room.js.map +1 -1
- package/dist/session/connect-code.d.ts +69 -55
- package/dist/session/connect-code.d.ts.map +1 -1
- package/dist/session/connect-code.js +189 -89
- package/dist/session/connect-code.js.map +1 -1
- package/dist/session/connect.d.ts +11 -15
- package/dist/session/connect.d.ts.map +1 -1
- package/dist/session/connect.js +8 -21
- package/dist/session/connect.js.map +1 -1
- package/dist/session/index.d.ts +2 -2
- package/dist/session/index.d.ts.map +1 -1
- package/dist/session/index.js +1 -1
- package/dist/session/index.js.map +1 -1
- package/dist/space/account-registry.d.ts +22 -0
- package/dist/space/account-registry.d.ts.map +1 -1
- package/dist/space/account-registry.js +18 -0
- package/dist/space/account-registry.js.map +1 -1
- package/dist/space/invitation.d.ts +61 -0
- package/dist/space/invitation.d.ts.map +1 -0
- package/dist/space/invitation.js +84 -0
- package/dist/space/invitation.js.map +1 -0
- package/dist/space/invite-link.d.ts +64 -0
- package/dist/space/invite-link.d.ts.map +1 -0
- package/dist/space/invite-link.js +212 -0
- package/dist/space/invite-link.js.map +1 -0
- package/dist/space/roles.d.ts.map +1 -1
- package/dist/space/roles.js +4 -2
- package/dist/space/roles.js.map +1 -1
- package/dist/space/space-manager.d.ts +21 -6
- package/dist/space/space-manager.d.ts.map +1 -1
- package/dist/space/space-manager.js +40 -23
- package/dist/space/space-manager.js.map +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/docs/README.md +2 -2
- package/docs/actions.md +37 -37
- package/docs/agents.md +59 -37
- package/docs/automations.md +2 -2
- package/docs/blueprints-and-guides.md +44 -3
- package/docs/building-an-app.md +2 -2
- package/docs/contacts.md +48 -69
- package/docs/inbox.md +145 -0
- package/docs/node.md +68 -45
- package/docs/query-format.md +1 -1
- package/docs/sign-in.md +5 -7
- package/docs/spaces.md +33 -5
- package/docs/standard-library.md +111 -86
- package/package.json +6 -5
- package/dist/doors/doors.d.ts +0 -140
- package/dist/doors/doors.d.ts.map +0 -1
- package/dist/doors/doors.js +0 -226
- package/dist/doors/doors.js.map +0 -1
- package/dist/doors/index.d.ts +0 -9
- package/dist/doors/index.d.ts.map +0 -1
- package/dist/doors/index.js +0 -7
- package/dist/doors/index.js.map +0 -1
- package/dist/network/mailbox.d.ts +0 -45
- package/dist/network/mailbox.d.ts.map +0 -1
- package/dist/network/mailbox.js +0 -135
- package/dist/network/mailbox.js.map +0 -1
- package/dist/network/multi-signaling.d.ts +0 -41
- package/dist/network/multi-signaling.d.ts.map +0 -1
- package/dist/network/multi-signaling.js +0 -209
- package/dist/network/multi-signaling.js.map +0 -1
- package/dist/network/signaling.d.ts +0 -95
- package/dist/network/signaling.d.ts.map +0 -1
- package/dist/network/signaling.js.map +0 -1
- 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
|
|
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
|
-
/**
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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: "
|
|
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
|
-
|
|
131
|
-
type:
|
|
132
|
-
|
|
133
|
-
|
|
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
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 ["
|
|
320
|
+
readonly required: readonly ["name", "mime"];
|
|
499
321
|
};
|
|
500
322
|
readonly links: {
|
|
501
|
-
|
|
323
|
+
about: import("../../records/links.js").LinkDeclaration;
|
|
502
324
|
};
|
|
503
325
|
} & import("../../index.js").Typed<{
|
|
504
|
-
readonly
|
|
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
|
|
533
|
-
/** A piece of music, known by its ids; `
|
|
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
|
-
|
|
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
|
|
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
|
|
854
|
-
readonly
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
readonly
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 ["
|
|
798
|
+
readonly required: readonly ["name", "mime"];
|
|
1171
799
|
};
|
|
1172
800
|
readonly links: {
|
|
1173
|
-
|
|
801
|
+
about: import("../../records/links.js").LinkDeclaration;
|
|
1174
802
|
};
|
|
1175
803
|
} & import("../../index.js").Typed<{
|
|
1176
|
-
readonly
|
|
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
|
-
|
|
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;
|