@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
|
@@ -42,7 +42,7 @@ export type Reaction = BodyOf<typeof reaction>;
|
|
|
42
42
|
export declare const comment: {
|
|
43
43
|
readonly name: "std.comment";
|
|
44
44
|
readonly title: "Comment";
|
|
45
|
-
readonly description: "A comment on any record, optionally replying to another comment.";
|
|
45
|
+
readonly description: "A comment on any record, optionally replying to another comment. To chat, use std.message.";
|
|
46
46
|
readonly schema: {
|
|
47
47
|
readonly type: "object";
|
|
48
48
|
readonly properties: {
|
|
@@ -93,7 +93,7 @@ export type Comment = BodyOf<typeof comment>;
|
|
|
93
93
|
export declare const tag: {
|
|
94
94
|
readonly name: "std.tag";
|
|
95
95
|
readonly title: "Tag";
|
|
96
|
-
readonly description: "A label on one
|
|
96
|
+
readonly description: "A loose label on one record, like #urgent: many per record, and anyone may add one. For a named group that exists while empty, use std.list; for a moderator’s label that apps act on, use std.label.";
|
|
97
97
|
readonly schema: {
|
|
98
98
|
readonly type: "object";
|
|
99
99
|
readonly properties: {
|
|
@@ -105,158 +105,16 @@ export declare const tag: {
|
|
|
105
105
|
};
|
|
106
106
|
readonly required: readonly ["label"];
|
|
107
107
|
};
|
|
108
|
-
readonly links: {
|
|
109
|
-
readonly about: {
|
|
110
|
-
readonly to: "*";
|
|
111
|
-
readonly cardinality: "many";
|
|
112
|
-
readonly description: "The records tagged";
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
} & import("../../index.js").Typed<{
|
|
116
|
-
readonly label: string;
|
|
117
|
-
}>;
|
|
118
|
-
export type Tag = BodyOf<typeof tag>;
|
|
119
|
-
/**
|
|
120
|
-
* A file attached to a record. `blob` names its bytes by hash; `url` is where
|
|
121
|
-
* they are when they live outside the space.
|
|
122
|
-
*/
|
|
123
|
-
export declare const attachment: {
|
|
124
|
-
readonly name: "std.attachment";
|
|
125
|
-
readonly title: "Attachment";
|
|
126
|
-
readonly description: "A file attached to a record: its bytes by hash, or where they are.";
|
|
127
|
-
readonly schema: {
|
|
128
|
-
readonly type: "object";
|
|
129
|
-
readonly properties: {
|
|
130
|
-
readonly name: {
|
|
131
|
-
readonly type: "string";
|
|
132
|
-
readonly minLength: 1;
|
|
133
|
-
};
|
|
134
|
-
readonly mime: {
|
|
135
|
-
readonly type: "string";
|
|
136
|
-
readonly minLength: 1;
|
|
137
|
-
};
|
|
138
|
-
readonly size: {
|
|
139
|
-
readonly type: "integer";
|
|
140
|
-
readonly minimum: 0;
|
|
141
|
-
};
|
|
142
|
-
readonly url: {
|
|
143
|
-
readonly type: "string";
|
|
144
|
-
};
|
|
145
|
-
readonly blob: {
|
|
146
|
-
type: 'object';
|
|
147
|
-
properties: {
|
|
148
|
-
hash: {
|
|
149
|
-
type: 'string';
|
|
150
|
-
minLength: number;
|
|
151
|
-
maxLength: number;
|
|
152
|
-
};
|
|
153
|
-
size: {
|
|
154
|
-
type: 'integer';
|
|
155
|
-
minimum: number;
|
|
156
|
-
};
|
|
157
|
-
mime: {
|
|
158
|
-
type: 'string';
|
|
159
|
-
minLength?: number | undefined;
|
|
160
|
-
maxLength: number;
|
|
161
|
-
};
|
|
162
|
-
name: {
|
|
163
|
-
type: 'string';
|
|
164
|
-
minLength?: number | undefined;
|
|
165
|
-
maxLength: number;
|
|
166
|
-
};
|
|
167
|
-
key: {
|
|
168
|
-
type: 'string';
|
|
169
|
-
minLength: number;
|
|
170
|
-
maxLength: number;
|
|
171
|
-
};
|
|
172
|
-
salt: {
|
|
173
|
-
type: 'string';
|
|
174
|
-
minLength: number;
|
|
175
|
-
maxLength: number;
|
|
176
|
-
};
|
|
177
|
-
};
|
|
178
|
-
required: readonly ["hash", "size", "mime"];
|
|
179
|
-
};
|
|
180
|
-
};
|
|
181
|
-
readonly required: readonly ["name", "mime"];
|
|
182
|
-
};
|
|
183
|
-
readonly links: {
|
|
184
|
-
about: import("../../records/links.js").LinkDeclaration;
|
|
185
|
-
};
|
|
186
|
-
} & import("../../index.js").Typed<{
|
|
187
|
-
readonly name: string;
|
|
188
|
-
readonly mime: string;
|
|
189
|
-
readonly size?: number | undefined;
|
|
190
|
-
readonly url?: string | undefined;
|
|
191
|
-
readonly blob?: {
|
|
192
|
-
readonly hash: string;
|
|
193
|
-
readonly size: number;
|
|
194
|
-
readonly mime: string;
|
|
195
|
-
readonly name?: string | undefined;
|
|
196
|
-
readonly key?: string | undefined;
|
|
197
|
-
readonly salt?: string | undefined;
|
|
198
|
-
} | undefined;
|
|
199
|
-
}>;
|
|
200
|
-
export type Attachment = BodyOf<typeof attachment>;
|
|
201
|
-
/** A note that one record refers to another. */
|
|
202
|
-
export declare const reference: {
|
|
203
|
-
readonly name: "std.reference";
|
|
204
|
-
readonly title: "Reference";
|
|
205
|
-
readonly description: "A note that one record refers to another.";
|
|
206
|
-
readonly schema: {
|
|
207
|
-
readonly type: "object";
|
|
208
|
-
readonly properties: {
|
|
209
|
-
readonly note: {
|
|
210
|
-
readonly type: "string";
|
|
211
|
-
};
|
|
212
|
-
};
|
|
213
|
-
};
|
|
214
108
|
readonly links: {
|
|
215
109
|
about: import("../../records/links.js").LinkDeclaration;
|
|
216
|
-
to: import("../../records/links.js").LinkDeclaration;
|
|
217
|
-
};
|
|
218
|
-
} & import("../../index.js").Typed<{
|
|
219
|
-
readonly note?: string | undefined;
|
|
220
|
-
}>;
|
|
221
|
-
export type Reference = BodyOf<typeof reference>;
|
|
222
|
-
/**
|
|
223
|
-
* Something saved to come back to: a record (`about`) or a web page (`url`).
|
|
224
|
-
* Not one per record, since a web page has no record to key it by; an app
|
|
225
|
-
* looks for an existing bookmark before adding another.
|
|
226
|
-
*/
|
|
227
|
-
export declare const bookmark: {
|
|
228
|
-
readonly name: "std.bookmark";
|
|
229
|
-
readonly title: "Bookmark";
|
|
230
|
-
readonly description: "A record or a web page saved to come back to.";
|
|
231
|
-
readonly schema: {
|
|
232
|
-
readonly type: "object";
|
|
233
|
-
readonly properties: {
|
|
234
|
-
title: {
|
|
235
|
-
type: 'string';
|
|
236
|
-
minLength?: number | undefined;
|
|
237
|
-
maxLength: number;
|
|
238
|
-
};
|
|
239
|
-
url: {
|
|
240
|
-
type: 'string';
|
|
241
|
-
minLength?: number | undefined;
|
|
242
|
-
maxLength: number;
|
|
243
|
-
};
|
|
244
|
-
note: {
|
|
245
|
-
type: 'string';
|
|
246
|
-
minLength?: number | undefined;
|
|
247
|
-
maxLength: number;
|
|
248
|
-
};
|
|
249
|
-
};
|
|
250
110
|
};
|
|
251
|
-
readonly
|
|
252
|
-
|
|
111
|
+
readonly rules: {
|
|
112
|
+
readonly onePer: readonly ["@author", "link:about", "label"];
|
|
253
113
|
};
|
|
254
114
|
} & import("../../index.js").Typed<{
|
|
255
|
-
readonly
|
|
256
|
-
readonly url?: string | undefined;
|
|
257
|
-
readonly note?: string | undefined;
|
|
115
|
+
readonly label: string;
|
|
258
116
|
}>;
|
|
259
|
-
export type
|
|
117
|
+
export type Tag = BodyOf<typeof tag>;
|
|
260
118
|
/** One person's score for something, from 1 to 5, and what they thought. */
|
|
261
119
|
export declare const rating: {
|
|
262
120
|
readonly name: "std.rating";
|
|
@@ -337,7 +195,7 @@ export type Highlight = BodyOf<typeof highlight>;
|
|
|
337
195
|
export declare const pin: {
|
|
338
196
|
readonly name: "std.pin";
|
|
339
197
|
readonly title: "Pin";
|
|
340
|
-
readonly description: "A record pinned for everyone
|
|
198
|
+
readonly description: "A record pinned for everyone by a moderator. To keep something for yourself, put it on a std.list.";
|
|
341
199
|
readonly schema: {
|
|
342
200
|
readonly type: "object";
|
|
343
201
|
readonly properties: {
|
|
@@ -395,7 +253,7 @@ export type Report = BodyOf<typeof report>;
|
|
|
395
253
|
export declare const label: {
|
|
396
254
|
readonly name: "std.label";
|
|
397
255
|
readonly title: "Label";
|
|
398
|
-
readonly description: "A moderator’s label
|
|
256
|
+
readonly description: "A moderator’s label that apps act on, like nsfw (blurred) or spoiler (hidden). Members label things with std.tag.";
|
|
399
257
|
readonly schema: {
|
|
400
258
|
readonly type: "object";
|
|
401
259
|
readonly properties: {
|
|
@@ -424,7 +282,7 @@ export type Label = BodyOf<typeof label>;
|
|
|
424
282
|
export declare const claim: {
|
|
425
283
|
readonly name: "std.claim";
|
|
426
284
|
readonly title: "Claim";
|
|
427
|
-
readonly description: "Someone taking something on
|
|
285
|
+
readonly description: "Someone taking something on, one per thing, first come: a task, an item to bring, a std.slot to book.";
|
|
428
286
|
readonly schema: {
|
|
429
287
|
readonly type: "object";
|
|
430
288
|
readonly properties: {
|
|
@@ -487,7 +345,7 @@ export declare const annotationGroups: {
|
|
|
487
345
|
}>) | ({
|
|
488
346
|
readonly name: "std.comment";
|
|
489
347
|
readonly title: "Comment";
|
|
490
|
-
readonly description: "A comment on any record, optionally replying to another comment.";
|
|
348
|
+
readonly description: "A comment on any record, optionally replying to another comment. To chat, use std.message.";
|
|
491
349
|
readonly schema: {
|
|
492
350
|
readonly type: "object";
|
|
493
351
|
readonly properties: {
|
|
@@ -535,7 +393,7 @@ export declare const annotationGroups: {
|
|
|
535
393
|
}>) | ({
|
|
536
394
|
readonly name: "std.tag";
|
|
537
395
|
readonly title: "Tag";
|
|
538
|
-
readonly description: "A label on one
|
|
396
|
+
readonly description: "A loose label on one record, like #urgent: many per record, and anyone may add one. For a named group that exists while empty, use std.list; for a moderator’s label that apps act on, use std.label.";
|
|
539
397
|
readonly schema: {
|
|
540
398
|
readonly type: "object";
|
|
541
399
|
readonly properties: {
|
|
@@ -547,140 +405,14 @@ export declare const annotationGroups: {
|
|
|
547
405
|
};
|
|
548
406
|
readonly required: readonly ["label"];
|
|
549
407
|
};
|
|
550
|
-
readonly links: {
|
|
551
|
-
readonly about: {
|
|
552
|
-
readonly to: "*";
|
|
553
|
-
readonly cardinality: "many";
|
|
554
|
-
readonly description: "The records tagged";
|
|
555
|
-
};
|
|
556
|
-
};
|
|
557
|
-
} & import("../../index.js").Typed<{
|
|
558
|
-
readonly label: string;
|
|
559
|
-
}>) | ({
|
|
560
|
-
readonly name: "std.attachment";
|
|
561
|
-
readonly title: "Attachment";
|
|
562
|
-
readonly description: "A file attached to a record: its bytes by hash, or where they are.";
|
|
563
|
-
readonly schema: {
|
|
564
|
-
readonly type: "object";
|
|
565
|
-
readonly properties: {
|
|
566
|
-
readonly name: {
|
|
567
|
-
readonly type: "string";
|
|
568
|
-
readonly minLength: 1;
|
|
569
|
-
};
|
|
570
|
-
readonly mime: {
|
|
571
|
-
readonly type: "string";
|
|
572
|
-
readonly minLength: 1;
|
|
573
|
-
};
|
|
574
|
-
readonly size: {
|
|
575
|
-
readonly type: "integer";
|
|
576
|
-
readonly minimum: 0;
|
|
577
|
-
};
|
|
578
|
-
readonly url: {
|
|
579
|
-
readonly type: "string";
|
|
580
|
-
};
|
|
581
|
-
readonly blob: {
|
|
582
|
-
type: 'object';
|
|
583
|
-
properties: {
|
|
584
|
-
hash: {
|
|
585
|
-
type: 'string';
|
|
586
|
-
minLength: number;
|
|
587
|
-
maxLength: number;
|
|
588
|
-
};
|
|
589
|
-
size: {
|
|
590
|
-
type: 'integer';
|
|
591
|
-
minimum: number;
|
|
592
|
-
};
|
|
593
|
-
mime: {
|
|
594
|
-
type: 'string';
|
|
595
|
-
minLength?: number | undefined;
|
|
596
|
-
maxLength: number;
|
|
597
|
-
};
|
|
598
|
-
name: {
|
|
599
|
-
type: 'string';
|
|
600
|
-
minLength?: number | undefined;
|
|
601
|
-
maxLength: number;
|
|
602
|
-
};
|
|
603
|
-
key: {
|
|
604
|
-
type: 'string';
|
|
605
|
-
minLength: number;
|
|
606
|
-
maxLength: number;
|
|
607
|
-
};
|
|
608
|
-
salt: {
|
|
609
|
-
type: 'string';
|
|
610
|
-
minLength: number;
|
|
611
|
-
maxLength: number;
|
|
612
|
-
};
|
|
613
|
-
};
|
|
614
|
-
required: readonly ["hash", "size", "mime"];
|
|
615
|
-
};
|
|
616
|
-
};
|
|
617
|
-
readonly required: readonly ["name", "mime"];
|
|
618
|
-
};
|
|
619
|
-
readonly links: {
|
|
620
|
-
about: import("../../records/links.js").LinkDeclaration;
|
|
621
|
-
};
|
|
622
|
-
} & import("../../index.js").Typed<{
|
|
623
|
-
readonly name: string;
|
|
624
|
-
readonly mime: string;
|
|
625
|
-
readonly size?: number | undefined;
|
|
626
|
-
readonly url?: string | undefined;
|
|
627
|
-
readonly blob?: {
|
|
628
|
-
readonly hash: string;
|
|
629
|
-
readonly size: number;
|
|
630
|
-
readonly mime: string;
|
|
631
|
-
readonly name?: string | undefined;
|
|
632
|
-
readonly key?: string | undefined;
|
|
633
|
-
readonly salt?: string | undefined;
|
|
634
|
-
} | undefined;
|
|
635
|
-
}>) | ({
|
|
636
|
-
readonly name: "std.reference";
|
|
637
|
-
readonly title: "Reference";
|
|
638
|
-
readonly description: "A note that one record refers to another.";
|
|
639
|
-
readonly schema: {
|
|
640
|
-
readonly type: "object";
|
|
641
|
-
readonly properties: {
|
|
642
|
-
readonly note: {
|
|
643
|
-
readonly type: "string";
|
|
644
|
-
};
|
|
645
|
-
};
|
|
646
|
-
};
|
|
647
408
|
readonly links: {
|
|
648
409
|
about: import("../../records/links.js").LinkDeclaration;
|
|
649
|
-
to: import("../../records/links.js").LinkDeclaration;
|
|
650
|
-
};
|
|
651
|
-
} & import("../../index.js").Typed<{
|
|
652
|
-
readonly note?: string | undefined;
|
|
653
|
-
}>) | ({
|
|
654
|
-
readonly name: "std.bookmark";
|
|
655
|
-
readonly title: "Bookmark";
|
|
656
|
-
readonly description: "A record or a web page saved to come back to.";
|
|
657
|
-
readonly schema: {
|
|
658
|
-
readonly type: "object";
|
|
659
|
-
readonly properties: {
|
|
660
|
-
title: {
|
|
661
|
-
type: 'string';
|
|
662
|
-
minLength?: number | undefined;
|
|
663
|
-
maxLength: number;
|
|
664
|
-
};
|
|
665
|
-
url: {
|
|
666
|
-
type: 'string';
|
|
667
|
-
minLength?: number | undefined;
|
|
668
|
-
maxLength: number;
|
|
669
|
-
};
|
|
670
|
-
note: {
|
|
671
|
-
type: 'string';
|
|
672
|
-
minLength?: number | undefined;
|
|
673
|
-
maxLength: number;
|
|
674
|
-
};
|
|
675
|
-
};
|
|
676
410
|
};
|
|
677
|
-
readonly
|
|
678
|
-
|
|
411
|
+
readonly rules: {
|
|
412
|
+
readonly onePer: readonly ["@author", "link:about", "label"];
|
|
679
413
|
};
|
|
680
414
|
} & import("../../index.js").Typed<{
|
|
681
|
-
readonly
|
|
682
|
-
readonly url?: string | undefined;
|
|
683
|
-
readonly note?: string | undefined;
|
|
415
|
+
readonly label: string;
|
|
684
416
|
}>) | ({
|
|
685
417
|
readonly name: "std.rating";
|
|
686
418
|
readonly title: "Rating";
|
|
@@ -751,7 +483,7 @@ export declare const annotationGroups: {
|
|
|
751
483
|
}>) | ({
|
|
752
484
|
readonly name: "std.pin";
|
|
753
485
|
readonly title: "Pin";
|
|
754
|
-
readonly description: "A record pinned for everyone
|
|
486
|
+
readonly description: "A record pinned for everyone by a moderator. To keep something for yourself, put it on a std.list.";
|
|
755
487
|
readonly schema: {
|
|
756
488
|
readonly type: "object";
|
|
757
489
|
readonly properties: {
|
|
@@ -800,7 +532,7 @@ export declare const annotationGroups: {
|
|
|
800
532
|
}>) | ({
|
|
801
533
|
readonly name: "std.label";
|
|
802
534
|
readonly title: "Label";
|
|
803
|
-
readonly description: "A moderator’s label
|
|
535
|
+
readonly description: "A moderator’s label that apps act on, like nsfw (blurred) or spoiler (hidden). Members label things with std.tag.";
|
|
804
536
|
readonly schema: {
|
|
805
537
|
readonly type: "object";
|
|
806
538
|
readonly properties: {
|
|
@@ -823,7 +555,7 @@ export declare const annotationGroups: {
|
|
|
823
555
|
}>) | ({
|
|
824
556
|
readonly name: "std.claim";
|
|
825
557
|
readonly title: "Claim";
|
|
826
|
-
readonly description: "Someone taking something on
|
|
558
|
+
readonly description: "Someone taking something on, one per thing, first come: a task, an item to bring, a std.slot to book.";
|
|
827
559
|
readonly schema: {
|
|
828
560
|
readonly type: "object";
|
|
829
561
|
readonly properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotations.d.ts","sourceRoot":"","sources":["../../../src/schemas/library/annotations.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM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,IAAI;;;;;;;;;YAIC,KAAK;;;;;;;;;;;;;;gBAU0B,IAAI;;;;;;;;YACnC,KAAK;;;;;;;;;;;;;;gBAaV,MAAM;;;gBACN,IAAI;;;;;;;;;YAIC,KAAK;;;;;;;;;;;;;;;gBAgBE,KAAK;;;;;;;;;YAGZ,KAAK;;;;;;;;;;;;;;gBAgBE,YAAY;;;;;gBAA8D,IAAI;;;;;;;;YAErF,KAAK;;;;;;;;;;CASf,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Annotations: records that attach to any other record with an `about` link. */
|
|
2
|
-
import { about,
|
|
2
|
+
import { about, choice, count, people, person, text, define, words } from '../fragments.js';
|
|
3
3
|
/** An emoji reaction to any record. Link it: `{ rel: 'about', to: <key> }`. */
|
|
4
4
|
export const reaction = define({
|
|
5
5
|
name: 'std.reaction',
|
|
@@ -28,7 +28,7 @@ export const reaction = define({
|
|
|
28
28
|
export const comment = define({
|
|
29
29
|
name: 'std.comment',
|
|
30
30
|
title: 'Comment',
|
|
31
|
-
description: 'A comment on any record, optionally replying to another comment.',
|
|
31
|
+
description: 'A comment on any record, optionally replying to another comment. To chat, use std.message.',
|
|
32
32
|
schema: {
|
|
33
33
|
type: 'object',
|
|
34
34
|
properties: {
|
|
@@ -49,57 +49,14 @@ export const comment = define({
|
|
|
49
49
|
export const tag = define({
|
|
50
50
|
name: 'std.tag',
|
|
51
51
|
title: 'Tag',
|
|
52
|
-
description: 'A label on one
|
|
52
|
+
description: 'A loose label on one record, like #urgent: many per record, and anyone may add one. For a named group that exists while empty, use std.list; for a moderator’s label that apps act on, use std.label.',
|
|
53
53
|
schema: {
|
|
54
54
|
type: 'object',
|
|
55
55
|
properties: { label: { type: 'string', minLength: 1, maxLength: 100 } },
|
|
56
56
|
required: ['label'],
|
|
57
57
|
},
|
|
58
|
-
links: { about:
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* A file attached to a record. `blob` names its bytes by hash; `url` is where
|
|
62
|
-
* they are when they live outside the space.
|
|
63
|
-
*/
|
|
64
|
-
export const attachment = define({
|
|
65
|
-
name: 'std.attachment',
|
|
66
|
-
title: 'Attachment',
|
|
67
|
-
description: 'A file attached to a record: its bytes by hash, or where they are.',
|
|
68
|
-
schema: {
|
|
69
|
-
type: 'object',
|
|
70
|
-
properties: {
|
|
71
|
-
name: { type: 'string', minLength: 1 },
|
|
72
|
-
mime: { type: 'string', minLength: 1 },
|
|
73
|
-
size: { type: 'integer', minimum: 0 },
|
|
74
|
-
url: { type: 'string' },
|
|
75
|
-
blob: blob('Its bytes'),
|
|
76
|
-
},
|
|
77
|
-
required: ['name', 'mime'],
|
|
78
|
-
},
|
|
79
|
-
links: { about: about('The record the file is attached to') },
|
|
80
|
-
});
|
|
81
|
-
/** A note that one record refers to another. */
|
|
82
|
-
export const reference = define({
|
|
83
|
-
name: 'std.reference',
|
|
84
|
-
title: 'Reference',
|
|
85
|
-
description: 'A note that one record refers to another.',
|
|
86
|
-
schema: { type: 'object', properties: { note: { type: 'string' } } },
|
|
87
|
-
links: { about: about('The record doing the referring'), to: about('The record referred to') },
|
|
88
|
-
});
|
|
89
|
-
/**
|
|
90
|
-
* Something saved to come back to: a record (`about`) or a web page (`url`).
|
|
91
|
-
* Not one per record, since a web page has no record to key it by; an app
|
|
92
|
-
* looks for an existing bookmark before adding another.
|
|
93
|
-
*/
|
|
94
|
-
export const bookmark = define({
|
|
95
|
-
name: 'std.bookmark',
|
|
96
|
-
title: 'Bookmark',
|
|
97
|
-
description: 'A record or a web page saved to come back to.',
|
|
98
|
-
schema: {
|
|
99
|
-
type: 'object',
|
|
100
|
-
properties: { title: text(500), url: url('The page saved, when it is not a record'), note: text(2000) },
|
|
101
|
-
},
|
|
102
|
-
links: { about: about('The record saved') },
|
|
58
|
+
links: { about: about('The record tagged') },
|
|
59
|
+
rules: { onePer: ['@author', 'link:about', 'label'] },
|
|
103
60
|
});
|
|
104
61
|
/** One person's score for something, from 1 to 5, and what they thought. */
|
|
105
62
|
export const rating = define({
|
|
@@ -138,7 +95,7 @@ export const highlight = define({
|
|
|
138
95
|
export const pin = define({
|
|
139
96
|
name: 'std.pin',
|
|
140
97
|
title: 'Pin',
|
|
141
|
-
description: 'A record pinned for everyone
|
|
98
|
+
description: 'A record pinned for everyone by a moderator. To keep something for yourself, put it on a std.list.',
|
|
142
99
|
schema: { type: 'object', properties: { note: text(500) } },
|
|
143
100
|
links: { about: about('The record pinned') },
|
|
144
101
|
rules: { onePer: ['link:about'] },
|
|
@@ -166,7 +123,7 @@ export const report = define({
|
|
|
166
123
|
export const label = define({
|
|
167
124
|
name: 'std.label',
|
|
168
125
|
title: 'Label',
|
|
169
|
-
description: 'A moderator’s label
|
|
126
|
+
description: 'A moderator’s label that apps act on, like nsfw (blurred) or spoiler (hidden). Members label things with std.tag.',
|
|
170
127
|
schema: {
|
|
171
128
|
type: 'object',
|
|
172
129
|
properties: { value: words(64, 'Like "nsfw", "spoiler", "outdated"') },
|
|
@@ -182,7 +139,7 @@ export const label = define({
|
|
|
182
139
|
export const claim = define({
|
|
183
140
|
name: 'std.claim',
|
|
184
141
|
title: 'Claim',
|
|
185
|
-
description: 'Someone taking something on
|
|
142
|
+
description: 'Someone taking something on, one per thing, first come: a task, an item to bring, a std.slot to book.',
|
|
186
143
|
schema: {
|
|
187
144
|
type: 'object',
|
|
188
145
|
properties: { respondingTo: person('Whose record it responds to, so they can be told'), note: text(500) },
|
|
@@ -193,19 +150,6 @@ export const claim = define({
|
|
|
193
150
|
});
|
|
194
151
|
/** This file's part of `standardGroups` */
|
|
195
152
|
export const annotationGroups = {
|
|
196
|
-
Annotations: [
|
|
197
|
-
reaction,
|
|
198
|
-
comment,
|
|
199
|
-
tag,
|
|
200
|
-
attachment,
|
|
201
|
-
reference,
|
|
202
|
-
bookmark,
|
|
203
|
-
rating,
|
|
204
|
-
highlight,
|
|
205
|
-
pin,
|
|
206
|
-
report,
|
|
207
|
-
label,
|
|
208
|
-
claim,
|
|
209
|
-
],
|
|
153
|
+
Annotations: [reaction, comment, tag, rating, highlight, pin, report, label, claim],
|
|
210
154
|
};
|
|
211
155
|
//# sourceMappingURL=annotations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotations.js","sourceRoot":"","sources":["../../../src/schemas/library/annotations.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,OAAO,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"annotations.js","sourceRoot":"","sources":["../../../src/schemas/library/annotations.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAG5F,+EAA+E;AAC/E,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC;IAC7B,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,UAAU;IACjB,WAAW,EAAE,kCAAkC;IAC/C,MAAM,EAAE;QACN,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,YAAY,EAAE,MAAM,CAAC,kDAAkD,CAAC;YACxE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE;SACvD;QACD,QAAQ,EAAE,CAAC,OAAO,CAAC;KACpB;IACD,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,uBAAuB,CAAC,EAAE;IAChD,oEAAoE;IACpE,KAAK,EAAE,EAAE,MAAM,EAAE,CAAC,SAAS,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE;IACrD,MAAM,EAAE,CAAC,cAAc,CAAC;CACzB,CAAC,CAAC;AAGH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAC;IAC5B,IAAI,EAAE,aAAa;IACnB,KAAK,EAAE,SAAS;IAChB,WAAW,EAAE,4FAA4F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uGAAuG;IACzG,MAAM,EAAE;QACN,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,EAAE,YAAY,EAAE,MAAM,CAAC,kDAAkD,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE;KAC1G;IACD,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC,EAAE;IAC1C,KAAK,EAAE,EAAE,MAAM,EAAE,CAAC,YAAY,CAAC,EAAE;IACjC,MAAM,EAAE,CAAC,cAAc,CAAC;CACzB,CAAC,CAAC;AAGH,2CAA2C;AAC3C,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,WAAW,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC;CACpF,CAAC"}
|
|
@@ -57,7 +57,7 @@ export type Poll = BodyOf<typeof poll>;
|
|
|
57
57
|
export declare const vote: {
|
|
58
58
|
readonly name: "std.vote";
|
|
59
59
|
readonly title: "Vote";
|
|
60
|
-
readonly description: "
|
|
60
|
+
readonly description: "One person’s vote on a std.poll, changed by voting again. To vote on a std.proposal, use std.ballot: it is final and counts toward a decision.";
|
|
61
61
|
readonly schema: {
|
|
62
62
|
readonly type: "object";
|
|
63
63
|
readonly properties: {
|
|
@@ -91,11 +91,7 @@ export declare const vote: {
|
|
|
91
91
|
readonly required: readonly ["choice"];
|
|
92
92
|
};
|
|
93
93
|
readonly links: {
|
|
94
|
-
|
|
95
|
-
readonly to: readonly ["std.poll", "std.proposal"];
|
|
96
|
-
readonly cardinality: "one";
|
|
97
|
-
readonly description: "The poll voted on";
|
|
98
|
-
};
|
|
94
|
+
about: import("../../records/links.js").LinkDeclaration;
|
|
99
95
|
};
|
|
100
96
|
readonly rules: {
|
|
101
97
|
readonly onePer: readonly ["@author", "link:about"];
|
|
@@ -107,11 +103,11 @@ export declare const vote: {
|
|
|
107
103
|
readonly choices?: readonly number[] | undefined;
|
|
108
104
|
}>;
|
|
109
105
|
export type Vote = BodyOf<typeof vote>;
|
|
110
|
-
/** Something put to the group to decide,
|
|
106
|
+
/** Something put to the group to decide, by a `std.ballot` on one of its options each. */
|
|
111
107
|
export declare const proposal: {
|
|
112
108
|
readonly name: "std.proposal";
|
|
113
109
|
readonly title: "Proposal";
|
|
114
|
-
readonly description: "Something put to the group to decide
|
|
110
|
+
readonly description: "Something put to the group to decide: people cast a std.ballot on its options, and a std.decision proves the outcome. For a quick question, use std.poll.";
|
|
115
111
|
readonly schema: {
|
|
116
112
|
readonly type: "object";
|
|
117
113
|
readonly properties: {
|
|
@@ -171,7 +167,7 @@ export type Proposal = BodyOf<typeof proposal>;
|
|
|
171
167
|
export declare const ballot: {
|
|
172
168
|
readonly name: "std.ballot";
|
|
173
169
|
readonly title: "Ballot";
|
|
174
|
-
readonly description: "
|
|
170
|
+
readonly description: "One person’s final vote on a std.proposal: it can’t be changed, so a std.decision can count it. For a poll, use std.vote.";
|
|
175
171
|
readonly schema: {
|
|
176
172
|
readonly type: "object";
|
|
177
173
|
readonly properties: {
|
|
@@ -629,7 +625,7 @@ export declare const communityGroups: {
|
|
|
629
625
|
}>) | ({
|
|
630
626
|
readonly name: "std.vote";
|
|
631
627
|
readonly title: "Vote";
|
|
632
|
-
readonly description: "
|
|
628
|
+
readonly description: "One person’s vote on a std.poll, changed by voting again. To vote on a std.proposal, use std.ballot: it is final and counts toward a decision.";
|
|
633
629
|
readonly schema: {
|
|
634
630
|
readonly type: "object";
|
|
635
631
|
readonly properties: {
|
|
@@ -663,11 +659,7 @@ export declare const communityGroups: {
|
|
|
663
659
|
readonly required: readonly ["choice"];
|
|
664
660
|
};
|
|
665
661
|
readonly links: {
|
|
666
|
-
|
|
667
|
-
readonly to: readonly ["std.poll", "std.proposal"];
|
|
668
|
-
readonly cardinality: "one";
|
|
669
|
-
readonly description: "The poll voted on";
|
|
670
|
-
};
|
|
662
|
+
about: import("../../records/links.js").LinkDeclaration;
|
|
671
663
|
};
|
|
672
664
|
readonly rules: {
|
|
673
665
|
readonly onePer: readonly ["@author", "link:about"];
|
|
@@ -680,7 +672,7 @@ export declare const communityGroups: {
|
|
|
680
672
|
}>) | ({
|
|
681
673
|
readonly name: "std.proposal";
|
|
682
674
|
readonly title: "Proposal";
|
|
683
|
-
readonly description: "Something put to the group to decide
|
|
675
|
+
readonly description: "Something put to the group to decide: people cast a std.ballot on its options, and a std.decision proves the outcome. For a quick question, use std.poll.";
|
|
684
676
|
readonly schema: {
|
|
685
677
|
readonly type: "object";
|
|
686
678
|
readonly properties: {
|
|
@@ -733,7 +725,7 @@ export declare const communityGroups: {
|
|
|
733
725
|
}>) | ({
|
|
734
726
|
readonly name: "std.ballot";
|
|
735
727
|
readonly title: "Ballot";
|
|
736
|
-
readonly description: "
|
|
728
|
+
readonly description: "One person’s final vote on a std.proposal: it can’t be changed, so a std.decision can count it. For a poll, use std.vote.";
|
|
737
729
|
readonly schema: {
|
|
738
730
|
readonly type: "object";
|
|
739
731
|
readonly properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"community.d.ts","sourceRoot":"","sources":["../../../src/schemas/library/community.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAE3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcf,CAAC;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,IAAI,CAAC,CAAC;AAEvC;;;;;GAKG;AACH,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"community.d.ts","sourceRoot":"","sources":["../../../src/schemas/library/community.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,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