@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"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M,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAIhD;AAED;;;GAGG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAM1E;AAED,6EAA6E;AAC7E,wBAAsB,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,CAEtE"}
|
package/dist/schema/version.js
CHANGED
|
@@ -32,8 +32,9 @@ export function createVersion(params) {
|
|
|
32
32
|
author: params.author,
|
|
33
33
|
collection: params.collection,
|
|
34
34
|
body: params.body,
|
|
35
|
-
createdAt: params.createdAt ?? new Date().toISOString(),
|
|
35
|
+
createdAt: params.createdAt ?? new Date(Date.now()).toISOString(),
|
|
36
36
|
...(params.space ? { space: params.space } : {}),
|
|
37
|
+
...(params.to ? { to: params.to } : {}),
|
|
37
38
|
...(params.proof ? { proof: params.proof } : {}),
|
|
38
39
|
key: params.version?.key ?? base32Encode(globalThis.crypto.getRandomValues(new Uint8Array(16))),
|
|
39
40
|
seq: params.version?.seq ?? 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/schema/version.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/schema/version.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAwC9C;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAC,GAAY;IAC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;AAED,6EAA6E;AAC7E,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,QAAkB;IACnD,OAAO,YAAY,CAAC,UAAU,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;AAC1D,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which standard collection holds what: the short map an agent reads before
|
|
3
|
+
* the library (`collections_standard`), and the look-alikes it is warned of
|
|
4
|
+
* when it proposes a collection of its own that the library already has
|
|
5
|
+
* (`collections_propose`). Apps read each other's records only when they
|
|
6
|
+
* reach for the same collection, so the cheapest moment to steer is the one
|
|
7
|
+
* where a twin is about to be made. See "How the library is shaped" in
|
|
8
|
+
* `packages/core/docs/standard-library.md`.
|
|
9
|
+
*/
|
|
10
|
+
import type { DefineCollection } from '../node/types.js';
|
|
11
|
+
/** What to use for what, one line each */
|
|
12
|
+
export declare const CHOOSING: ReadonlyArray<string>;
|
|
13
|
+
/**
|
|
14
|
+
* What in a collection of an app's own looks like one the library already
|
|
15
|
+
* has, each as a sentence to show the agent proposing it. Not a refusal: an
|
|
16
|
+
* app may have its reasons, and the person applying the blueprint decides.
|
|
17
|
+
*/
|
|
18
|
+
export declare function lookalikes(definition: DefineCollection): string[];
|
|
19
|
+
//# sourceMappingURL=choosing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"choosing.d.ts","sourceRoot":"","sources":["../../src/schemas/choosing.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAGzD,0CAA0C;AAC1C,eAAO,MAAM,QAAQ,EAAE,aAAa,CAAC,MAAM,CAWzC,CAAC;AAgCH;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,UAAU,EAAE,gBAAgB,GAAG,MAAM,EAAE,CAuBjE"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { isRecord } from '../utils/guards.js';
|
|
2
|
+
/** What to use for what, one line each */
|
|
3
|
+
export const CHOOSING = Object.freeze([
|
|
4
|
+
'Any file (a photo, video, recording, PDF): std.file. On a record, link it "about" that record.',
|
|
5
|
+
'A group that exists while empty (a folder, album, playlist, category, checklist): std.list, with a std.list-item "in" it, "about" each member.',
|
|
6
|
+
'A loose label on a record (#urgent): std.tag.',
|
|
7
|
+
'Something to do: std.task, "in" a std.column on a board.',
|
|
8
|
+
'Something happening at a time: std.event; answers to it: std.rsvp.',
|
|
9
|
+
'Chat, in order: std.message, "in" a std.channel when there are several. A remark on a record: std.comment. A feed: std.post.',
|
|
10
|
+
'A quick question: std.poll and std.vote. A decision: std.proposal, std.ballot and std.decision.',
|
|
11
|
+
'Taking something on, first come (a task, a slot to book, an item to bring): std.claim.',
|
|
12
|
+
'More fields on a standard record: a collection of your own with an "about" link to it and onePer ["link:about"]. Never a copy of the standard one.',
|
|
13
|
+
'Where a record sits (a channel, column, list, calendar): the link role "in".',
|
|
14
|
+
]);
|
|
15
|
+
/** A definition's fields, when its schema is JSON Schema; a validator's (Zod and the like) say none */
|
|
16
|
+
const propertiesOf = (definition) => {
|
|
17
|
+
const { schema } = definition;
|
|
18
|
+
return isRecord(schema) && isRecord(schema.properties) ? schema.properties : {};
|
|
19
|
+
};
|
|
20
|
+
/** Whether a field holds a file, as `records.addFile` gives one */
|
|
21
|
+
const holdsFile = (definition) => Object.values(propertiesOf(definition)).some((field) => isRecord(field) &&
|
|
22
|
+
isRecord(field.properties) &&
|
|
23
|
+
'hash' in field.properties &&
|
|
24
|
+
'mime' in field.properties);
|
|
25
|
+
/** Link roles that say where a record sits, which the library calls `in` */
|
|
26
|
+
const PLACES = [
|
|
27
|
+
'folder',
|
|
28
|
+
'album',
|
|
29
|
+
'playlist',
|
|
30
|
+
'category',
|
|
31
|
+
'channel',
|
|
32
|
+
'column',
|
|
33
|
+
'board',
|
|
34
|
+
'project',
|
|
35
|
+
'calendar',
|
|
36
|
+
'list',
|
|
37
|
+
];
|
|
38
|
+
/**
|
|
39
|
+
* What in a collection of an app's own looks like one the library already
|
|
40
|
+
* has, each as a sentence to show the agent proposing it. Not a refusal: an
|
|
41
|
+
* app may have its reasons, and the person applying the blueprint decides.
|
|
42
|
+
*/
|
|
43
|
+
export function lookalikes(definition) {
|
|
44
|
+
if (definition.name.startsWith('std.'))
|
|
45
|
+
return [];
|
|
46
|
+
const fields = new Set(Object.keys(propertiesOf(definition)));
|
|
47
|
+
const has = (...names) => names.some((name) => fields.has(name));
|
|
48
|
+
const said = [];
|
|
49
|
+
const twin = (std, why) => said.push(`${definition.name} ${why}, like ${std}. Use ${std} so other apps read these records; ` +
|
|
50
|
+
`for fields of your own, keep a collection about each ${std} record instead.`);
|
|
51
|
+
if (holdsFile(definition) && !has('title', 'question', 'price'))
|
|
52
|
+
twin('std.file', 'keeps a file');
|
|
53
|
+
else if (has('start', 'startsAt') && has('title', 'name'))
|
|
54
|
+
twin('std.event', 'is something at a time');
|
|
55
|
+
else if (has('title') && has('done', 'due', 'assignees', 'status'))
|
|
56
|
+
twin('std.task', 'is something to do');
|
|
57
|
+
else if (has('question') && has('options'))
|
|
58
|
+
twin('std.poll', 'asks a question with options');
|
|
59
|
+
else if (has('emoji') && fields.size <= 2)
|
|
60
|
+
twin('std.reaction', 'is a reaction');
|
|
61
|
+
else if (has('label', 'tag') && fields.size <= 2)
|
|
62
|
+
twin('std.tag', 'is a label');
|
|
63
|
+
for (const role of Object.keys(definition.links ?? {}))
|
|
64
|
+
if (PLACES.includes(role))
|
|
65
|
+
said.push(`${definition.name} says where a record sits with "${role}": the library calls that link "in", ` +
|
|
66
|
+
'so other apps follow it.');
|
|
67
|
+
return said;
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=choosing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"choosing.js","sourceRoot":"","sources":["../../src/schemas/choosing.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,QAAQ,EAAE,MAA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,SAAS,EAAE,YAAY,CAAC,CAAC;IAChF,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,IAAI,EAAE,CAAC;QACpD,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;YACvB,IAAI,CAAC,IAAI,CACP,GAAG,UAAU,CAAC,IAAI,mCAAmC,IAAI,uCAAuC;gBAC9F,0BAA0B,CAC7B,CAAC;IACN,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -28,12 +28,7 @@ export declare const contact: {
|
|
|
28
28
|
};
|
|
29
29
|
readonly blocked: {
|
|
30
30
|
readonly type: "boolean";
|
|
31
|
-
readonly description: "Their
|
|
32
|
-
};
|
|
33
|
-
readonly door: {
|
|
34
|
-
readonly type: "string";
|
|
35
|
-
readonly maxLength: 64;
|
|
36
|
-
readonly description: "The door they knocked on, while your answer is still to be written in your space for two";
|
|
31
|
+
readonly description: "Their knocks are hidden, in every space and in your inbox";
|
|
37
32
|
};
|
|
38
33
|
};
|
|
39
34
|
readonly required: readonly ["did", "name"];
|
|
@@ -47,26 +42,25 @@ export declare const contact: {
|
|
|
47
42
|
readonly space?: string | undefined;
|
|
48
43
|
readonly note?: string | undefined;
|
|
49
44
|
readonly blocked?: boolean | undefined;
|
|
50
|
-
readonly door?: string | undefined;
|
|
51
45
|
}>;
|
|
52
46
|
export type Contact = BodyOf<typeof contact>;
|
|
53
|
-
/**
|
|
47
|
+
/** A knock left in a space both belong to: sealed to their contact key, so only they open it. */
|
|
54
48
|
export declare const contactRequest: {
|
|
55
49
|
readonly name: "std.contact-request";
|
|
56
50
|
readonly title: "Contact request";
|
|
57
|
-
readonly description: "
|
|
51
|
+
readonly description: "A knock left for someone in a space you share, sealed so only they can open it.";
|
|
58
52
|
readonly schema: {
|
|
59
53
|
readonly type: "object";
|
|
60
54
|
readonly properties: {
|
|
61
55
|
readonly to: {
|
|
62
56
|
readonly type: "string";
|
|
63
|
-
readonly maxLength:
|
|
64
|
-
readonly description: "
|
|
57
|
+
readonly maxLength: 64;
|
|
58
|
+
readonly description: "Their contact key, as on their profile here";
|
|
65
59
|
};
|
|
66
60
|
readonly sealed: {
|
|
67
61
|
readonly type: "string";
|
|
68
62
|
readonly maxLength: 16000;
|
|
69
|
-
readonly description: "The
|
|
63
|
+
readonly description: "The knock, sealed to it (spec 07 §6)";
|
|
70
64
|
};
|
|
71
65
|
};
|
|
72
66
|
readonly required: readonly ["to", "sealed"];
|
|
@@ -77,35 +71,23 @@ export declare const contactRequest: {
|
|
|
77
71
|
}>;
|
|
78
72
|
export type ContactRequestRecord = BodyOf<typeof contactRequest>;
|
|
79
73
|
/**
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
* is deleting the record.
|
|
74
|
+
* Your inbox (`node.inbox`): which one it is and where its knocks wait. Its
|
|
75
|
+
* keys are derived from the contact key and `gen`; a new `gen` is a new inbox,
|
|
76
|
+
* and codes for the old one stop working. The newest record is the inbox.
|
|
84
77
|
*/
|
|
85
|
-
export declare const
|
|
86
|
-
readonly name: "std.
|
|
87
|
-
readonly title: "
|
|
88
|
-
readonly description: "
|
|
78
|
+
export declare const inbox: {
|
|
79
|
+
readonly name: "std.inbox";
|
|
80
|
+
readonly title: "Inbox";
|
|
81
|
+
readonly description: "Where people you share no space with can ask to become your contact.";
|
|
89
82
|
readonly schema: {
|
|
90
83
|
readonly type: "object";
|
|
91
84
|
readonly properties: {
|
|
92
|
-
readonly
|
|
93
|
-
readonly type: "
|
|
94
|
-
readonly
|
|
95
|
-
readonly
|
|
96
|
-
readonly description: "Random; the door key is derived from it";
|
|
97
|
-
};
|
|
98
|
-
readonly label: {
|
|
99
|
-
readonly type: "string";
|
|
100
|
-
readonly maxLength: 64;
|
|
101
|
-
readonly description: "What you call this door — only you see it";
|
|
85
|
+
readonly gen: {
|
|
86
|
+
readonly type: "integer";
|
|
87
|
+
readonly minimum: 0;
|
|
88
|
+
readonly description: "Which inbox: its keys are derived from it";
|
|
102
89
|
};
|
|
103
|
-
readonly
|
|
104
|
-
readonly type: "string";
|
|
105
|
-
readonly maxLength: 64;
|
|
106
|
-
readonly description: "The name its code gives, shown to whoever knocks";
|
|
107
|
-
};
|
|
108
|
-
readonly relays: {
|
|
90
|
+
readonly places: {
|
|
109
91
|
readonly type: "array";
|
|
110
92
|
readonly items: {
|
|
111
93
|
readonly type: "string";
|
|
@@ -115,28 +97,29 @@ export declare const door: {
|
|
|
115
97
|
readonly maxItems: 3;
|
|
116
98
|
readonly description: "Whose mailboxes hold its knocks";
|
|
117
99
|
};
|
|
100
|
+
readonly name: {
|
|
101
|
+
readonly type: "string";
|
|
102
|
+
readonly maxLength: 64;
|
|
103
|
+
readonly description: "The name its code gives, shown to whoever knocks";
|
|
104
|
+
};
|
|
118
105
|
};
|
|
119
|
-
readonly required: readonly ["
|
|
120
|
-
};
|
|
121
|
-
readonly rules: {
|
|
122
|
-
readonly onePer: readonly ["id"];
|
|
106
|
+
readonly required: readonly ["gen", "places"];
|
|
123
107
|
};
|
|
124
108
|
} & import("../index.js").Typed<{
|
|
125
|
-
readonly
|
|
126
|
-
readonly
|
|
109
|
+
readonly gen: number;
|
|
110
|
+
readonly places: readonly string[];
|
|
127
111
|
readonly name?: string | undefined;
|
|
128
|
-
readonly relays: readonly string[];
|
|
129
112
|
}>;
|
|
130
|
-
export type
|
|
113
|
+
export type Inbox = BodyOf<typeof inbox>;
|
|
131
114
|
/**
|
|
132
|
-
* A knock you left on someone's
|
|
133
|
-
* know who they are until they
|
|
115
|
+
* A knock you left on someone's inbox, waiting for them to join the space for
|
|
116
|
+
* two. You don't know who they are until they do; then it becomes a
|
|
134
117
|
* `std.contact`, and this goes.
|
|
135
118
|
*/
|
|
136
119
|
export declare const knock: {
|
|
137
120
|
readonly name: "std.knock";
|
|
138
121
|
readonly title: "Knock";
|
|
139
|
-
readonly description: "A knock left on
|
|
122
|
+
readonly description: "A knock left on an inbox, waiting for them to join.";
|
|
140
123
|
readonly schema: {
|
|
141
124
|
readonly type: "object";
|
|
142
125
|
readonly properties: {
|
|
@@ -148,25 +131,15 @@ export declare const knock: {
|
|
|
148
131
|
readonly name: {
|
|
149
132
|
readonly type: "string";
|
|
150
133
|
readonly maxLength: 64;
|
|
151
|
-
readonly description: "The name their
|
|
152
|
-
};
|
|
153
|
-
readonly door: {
|
|
154
|
-
readonly type: "string";
|
|
155
|
-
readonly maxLength: 64;
|
|
156
|
-
readonly description: "The door key knocked on";
|
|
157
|
-
};
|
|
158
|
-
readonly sign: {
|
|
159
|
-
readonly type: "string";
|
|
160
|
-
readonly maxLength: 64;
|
|
161
|
-
readonly description: "The door's signing key, which their answer must be signed with";
|
|
134
|
+
readonly description: "The name their inbox code gave";
|
|
162
135
|
};
|
|
163
136
|
readonly invite: {
|
|
164
137
|
readonly type: "string";
|
|
165
|
-
readonly maxLength:
|
|
166
|
-
readonly description: "The invite sent, to close once they
|
|
138
|
+
readonly maxLength: 12000;
|
|
139
|
+
readonly description: "The invite sent, to close once they join";
|
|
167
140
|
};
|
|
168
141
|
};
|
|
169
|
-
readonly required: readonly ["space", "name", "
|
|
142
|
+
readonly required: readonly ["space", "name", "invite"];
|
|
170
143
|
};
|
|
171
144
|
readonly rules: {
|
|
172
145
|
readonly onePer: readonly ["space"];
|
|
@@ -174,33 +147,7 @@ export declare const knock: {
|
|
|
174
147
|
} & import("../index.js").Typed<{
|
|
175
148
|
readonly space: string;
|
|
176
149
|
readonly name: string;
|
|
177
|
-
readonly door: string;
|
|
178
|
-
readonly sign: string;
|
|
179
150
|
readonly invite: string;
|
|
180
151
|
}>;
|
|
181
152
|
export type Knock = BodyOf<typeof knock>;
|
|
182
|
-
/**
|
|
183
|
-
* The answer to a knock, in the space for two: the door's owner, signing with
|
|
184
|
-
* the door's signing key that the account writing this is theirs. It is how
|
|
185
|
-
* the knocker tells the person behind the door from anyone the invite reached.
|
|
186
|
-
*/
|
|
187
|
-
export declare const knockAnswer: {
|
|
188
|
-
readonly name: "std.knock-answer";
|
|
189
|
-
readonly title: "Knock answer";
|
|
190
|
-
readonly description: "Proof that the account which joined is the one behind the door knocked on.";
|
|
191
|
-
readonly schema: {
|
|
192
|
-
readonly type: "object";
|
|
193
|
-
readonly properties: {
|
|
194
|
-
readonly sig: {
|
|
195
|
-
readonly type: "string";
|
|
196
|
-
readonly maxLength: 200;
|
|
197
|
-
readonly description: "The door signing key over \"minca/knock-answer/v1|<space>|<account>\"";
|
|
198
|
-
};
|
|
199
|
-
};
|
|
200
|
-
readonly required: readonly ["sig"];
|
|
201
|
-
};
|
|
202
|
-
} & import("../index.js").Typed<{
|
|
203
|
-
readonly sig: string;
|
|
204
|
-
}>;
|
|
205
|
-
export type KnockAnswer = BodyOf<typeof knockAnswer>;
|
|
206
153
|
//# sourceMappingURL=contacts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts.d.ts","sourceRoot":"","sources":["../../src/schemas/contacts.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEhD,gFAAgF;AAChF,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"contacts.d.ts","sourceRoot":"","sources":["../../src/schemas/contacts.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEhD,gFAAgF;AAChF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBlB,CAAC;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,OAAO,CAAC,CAAC;AAE7C,iGAAiG;AACjG,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;EAYzB,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AAEjE;;;;GAIG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBhB,CAAC;AACH,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,KAAK,CAAC,CAAC;AAEzC;;;;GAIG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAchB,CAAC;AACH,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,KAAK,CAAC,CAAC"}
|
package/dist/schemas/contacts.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Contacts, as
|
|
2
|
+
* Contacts, as standard collections — the protocol knows none of them.
|
|
3
3
|
*
|
|
4
4
|
* A contact is someone you share a private space for two with. Your list of
|
|
5
5
|
* them is `std.contact` records in your contacts space, which only your
|
|
6
|
-
* account can find (`deriveContactsSpace`).
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* account can find (`deriveContactsSpace`). Your inbox's settings, and the
|
|
7
|
+
* knocks you left on other people's, are kept there too, so every device of
|
|
8
|
+
* the account reads the same ones.
|
|
9
9
|
*
|
|
10
|
-
* `node.contacts`
|
|
11
|
-
* and query the records like any other.
|
|
10
|
+
* `node.contacts` and `node.inbox` do the work with them; these are here so
|
|
11
|
+
* apps can read and query the records like any other.
|
|
12
12
|
*/
|
|
13
13
|
import { define } from './fragments.js';
|
|
14
14
|
/** Someone you can reach, and the space you share with them. One per person. */
|
|
@@ -23,117 +23,73 @@ export const contact = define({
|
|
|
23
23
|
name: { type: 'string', maxLength: 200, description: 'What you call them' },
|
|
24
24
|
space: { type: 'string', maxLength: 256, description: 'The id of your space for two' },
|
|
25
25
|
note: { type: 'string', maxLength: 2000 },
|
|
26
|
-
blocked: { type: 'boolean', description: 'Their
|
|
27
|
-
door: {
|
|
28
|
-
type: 'string',
|
|
29
|
-
maxLength: 64,
|
|
30
|
-
description: 'The door they knocked on, while your answer is still to be written in your space for two',
|
|
31
|
-
},
|
|
26
|
+
blocked: { type: 'boolean', description: 'Their knocks are hidden, in every space and in your inbox' },
|
|
32
27
|
},
|
|
33
28
|
required: ['did', 'name'],
|
|
34
29
|
},
|
|
35
30
|
rules: { onePer: ['did'] },
|
|
36
31
|
});
|
|
37
|
-
/**
|
|
32
|
+
/** A knock left in a space both belong to: sealed to their contact key, so only they open it. */
|
|
38
33
|
export const contactRequest = define({
|
|
39
34
|
name: 'std.contact-request',
|
|
40
35
|
title: 'Contact request',
|
|
41
|
-
description: '
|
|
36
|
+
description: 'A knock left for someone in a space you share, sealed so only they can open it.',
|
|
42
37
|
schema: {
|
|
43
38
|
type: 'object',
|
|
44
39
|
properties: {
|
|
45
|
-
to: { type: 'string', maxLength:
|
|
46
|
-
sealed: {
|
|
47
|
-
type: 'string',
|
|
48
|
-
maxLength: 16000,
|
|
49
|
-
description: 'The invite and a note, sealed with their contact key',
|
|
50
|
-
},
|
|
40
|
+
to: { type: 'string', maxLength: 64, description: 'Their contact key, as on their profile here' },
|
|
41
|
+
sealed: { type: 'string', maxLength: 16000, description: 'The knock, sealed to it (spec 07 §6)' },
|
|
51
42
|
},
|
|
52
43
|
required: ['to', 'sealed'],
|
|
53
44
|
},
|
|
54
45
|
});
|
|
55
46
|
/**
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
* is deleting the record.
|
|
47
|
+
* Your inbox (`node.inbox`): which one it is and where its knocks wait. Its
|
|
48
|
+
* keys are derived from the contact key and `gen`; a new `gen` is a new inbox,
|
|
49
|
+
* and codes for the old one stop working. The newest record is the inbox.
|
|
60
50
|
*/
|
|
61
|
-
export const
|
|
62
|
-
name: 'std.
|
|
63
|
-
title: '
|
|
64
|
-
description: '
|
|
51
|
+
export const inbox = define({
|
|
52
|
+
name: 'std.inbox',
|
|
53
|
+
title: 'Inbox',
|
|
54
|
+
description: 'Where people you share no space with can ask to become your contact.',
|
|
65
55
|
schema: {
|
|
66
56
|
type: 'object',
|
|
67
57
|
properties: {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
minLength: 16,
|
|
71
|
-
maxLength: 64,
|
|
72
|
-
description: 'Random; the door key is derived from it',
|
|
73
|
-
},
|
|
74
|
-
label: { type: 'string', maxLength: 64, description: 'What you call this door — only you see it' },
|
|
75
|
-
name: {
|
|
76
|
-
type: 'string',
|
|
77
|
-
maxLength: 64,
|
|
78
|
-
description: 'The name its code gives, shown to whoever knocks',
|
|
79
|
-
},
|
|
80
|
-
relays: {
|
|
58
|
+
gen: { type: 'integer', minimum: 0, description: 'Which inbox: its keys are derived from it' },
|
|
59
|
+
places: {
|
|
81
60
|
type: 'array',
|
|
82
61
|
items: { type: 'string', maxLength: 200 },
|
|
83
62
|
minItems: 1,
|
|
84
63
|
maxItems: 3,
|
|
85
64
|
description: 'Whose mailboxes hold its knocks',
|
|
86
65
|
},
|
|
66
|
+
name: {
|
|
67
|
+
type: 'string',
|
|
68
|
+
maxLength: 64,
|
|
69
|
+
description: 'The name its code gives, shown to whoever knocks',
|
|
70
|
+
},
|
|
87
71
|
},
|
|
88
|
-
required: ['
|
|
72
|
+
required: ['gen', 'places'],
|
|
89
73
|
},
|
|
90
|
-
rules: { onePer: ['id'] },
|
|
91
74
|
});
|
|
92
75
|
/**
|
|
93
|
-
* A knock you left on someone's
|
|
94
|
-
* know who they are until they
|
|
76
|
+
* A knock you left on someone's inbox, waiting for them to join the space for
|
|
77
|
+
* two. You don't know who they are until they do; then it becomes a
|
|
95
78
|
* `std.contact`, and this goes.
|
|
96
79
|
*/
|
|
97
80
|
export const knock = define({
|
|
98
81
|
name: 'std.knock',
|
|
99
82
|
title: 'Knock',
|
|
100
|
-
description: 'A knock left on
|
|
83
|
+
description: 'A knock left on an inbox, waiting for them to join.',
|
|
101
84
|
schema: {
|
|
102
85
|
type: 'object',
|
|
103
86
|
properties: {
|
|
104
87
|
space: { type: 'string', maxLength: 256, description: 'The space for two it invites them to' },
|
|
105
|
-
name: { type: 'string', maxLength: 64, description: 'The name their
|
|
106
|
-
|
|
107
|
-
sign: {
|
|
108
|
-
type: 'string',
|
|
109
|
-
maxLength: 64,
|
|
110
|
-
description: "The door's signing key, which their answer must be signed with",
|
|
111
|
-
},
|
|
112
|
-
invite: { type: 'string', maxLength: 8000, description: 'The invite sent, to close once they answer' },
|
|
88
|
+
name: { type: 'string', maxLength: 64, description: 'The name their inbox code gave' },
|
|
89
|
+
invite: { type: 'string', maxLength: 12000, description: 'The invite sent, to close once they join' },
|
|
113
90
|
},
|
|
114
|
-
required: ['space', 'name', '
|
|
91
|
+
required: ['space', 'name', 'invite'],
|
|
115
92
|
},
|
|
116
93
|
rules: { onePer: ['space'] },
|
|
117
94
|
});
|
|
118
|
-
/**
|
|
119
|
-
* The answer to a knock, in the space for two: the door's owner, signing with
|
|
120
|
-
* the door's signing key that the account writing this is theirs. It is how
|
|
121
|
-
* the knocker tells the person behind the door from anyone the invite reached.
|
|
122
|
-
*/
|
|
123
|
-
export const knockAnswer = define({
|
|
124
|
-
name: 'std.knock-answer',
|
|
125
|
-
title: 'Knock answer',
|
|
126
|
-
description: 'Proof that the account which joined is the one behind the door knocked on.',
|
|
127
|
-
schema: {
|
|
128
|
-
type: 'object',
|
|
129
|
-
properties: {
|
|
130
|
-
sig: {
|
|
131
|
-
type: 'string',
|
|
132
|
-
maxLength: 200,
|
|
133
|
-
description: 'The door signing key over "minca/knock-answer/v1|<space>|<account>"',
|
|
134
|
-
},
|
|
135
|
-
},
|
|
136
|
-
required: ['sig'],
|
|
137
|
-
},
|
|
138
|
-
});
|
|
139
95
|
//# sourceMappingURL=contacts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts.js","sourceRoot":"","sources":["../../src/schemas/contacts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAGxC,gFAAgF;AAChF,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAC;IAC5B,IAAI,EAAE,aAAa;IACnB,KAAK,EAAE,SAAS;IAChB,WAAW,EAAE,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AS,EAAE,EAAE;gBACb,WAAW,EAAE,kDAAkD;aAChE;SACF;QACD,QAAQ,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC;KAC5B;CACF,CAAC,CAAC;AAGH;;;;GAIG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,MAAM,CAAC;IAC1B,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,qDAAqD;IAClE,MAAM,EAAE;QACN,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,EAAE,WAAW,EAAE,sCAAsC,EAAE;YAC9F,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE,WAAW,EAAE,gCAAgC,EAAE;YACtF,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,0CAA0C,EAAE;SACtG;QACD,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC;KACtC;IACD,KAAK,EAAE,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE;CAC7B,CAAC,CAAC"}
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -63,8 +63,8 @@ export declare function positionBetween(before?: string | null, after?: string |
|
|
|
63
63
|
* A space you cannot write in is skipped.
|
|
64
64
|
*/
|
|
65
65
|
export declare function useSchemas(node: P2PNode, spaceId: string, schemas: ReadonlyArray<DefineCollection>): Promise<void>;
|
|
66
|
-
export { contact, contactRequest,
|
|
67
|
-
export type { Contact, ContactRequestRecord,
|
|
66
|
+
export { contact, contactRequest, inbox, knock } from './contacts.js';
|
|
67
|
+
export type { Contact, ContactRequestRecord, Inbox, Knock } from './contacts.js';
|
|
68
68
|
export * from './library/collections.js';
|
|
69
69
|
export { checkBlueprint, reviewBlueprint, standardCollections, supersededBlueprints, proposeCollections, applyBlueprint, copyBlueprint, } from './blueprints.js';
|
|
70
70
|
export { guidesOf, writeGuide } from './guides.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClE,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,OAAO,EACL,eAAe,EACf,OAAO,EACP,MAAM,EACN,QAAQ,EACR,UAAU,EACV,OAAO,EACP,WAAW,EACX,UAAU,EACV,KAAK,IAAI,GACV,MAAM,UAAU,CAAC;AAClB,+GAA+G;AAC/G,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE/E,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,aAAa,EACb,eAAe,EACf,kBAAkB,GACnB,MAAM,eAAe,CAAC;AAIvB;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAoBrF;AAED;;;;;GAKG;AACH,wBAAsB,UAAU,CAC9B,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,aAAa,CAAC,gBAAgB,CAAC,GACvC,OAAO,CAAC,IAAI,CAAC,CASf;AAED,OAAO,EAAE,OAAO,EAAE,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CAAC;AACvE,YAAY,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC"}
|
package/dist/schemas/index.js
CHANGED
|
@@ -55,7 +55,7 @@ export async function useSchemas(node, spaceId, schemas) {
|
|
|
55
55
|
await node.collections.define(spaceId, schema);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
export { contact, contactRequest,
|
|
58
|
+
export { contact, contactRequest, inbox, knock } from './contacts.js';
|
|
59
59
|
export * from './library/collections.js';
|
|
60
60
|
export { checkBlueprint, reviewBlueprint, standardCollections, supersededBlueprints, proposeCollections, applyBlueprint, copyBlueprint, } from './blueprints.js';
|
|
61
61
|
export { guidesOf, writeGuide } from './guides.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAsCA,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,OAAO,EACL,eAAe,EACf,OAAO,EACP,MAAM,EACN,QAAQ,EACR,UAAU,EACV,OAAO,EACP,WAAW,EACX,UAAU,GAEX,MAAM,UAAU,CAAC;AAClB,+GAA+G;AAC/G,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAG5C,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,aAAa,EACb,eAAe,EACf,kBAAkB,GACnB,MAAM,eAAe,CAAC;AAEvB,MAAM,MAAM,GAAG,sCAAsC,CAAC;AAEtD;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAAC,MAAsB,EAAE,KAAqB;IAC3E,MAAM,CAAC,GAAG,MAAM,IAAI,EAAE,CAAC;IACvB,IAAI,CAAC,GAAG,KAAK,IAAI,KAAK,GAAG,CAAC,CAAC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