@minca/core 0.1.9 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/identity/abilities.d.ts +3 -3
- package/dist/identity/abilities.d.ts.map +1 -1
- package/dist/identity/abilities.js +9 -11
- package/dist/identity/abilities.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/identity/root-signer.d.ts +0 -5
- package/dist/identity/root-signer.d.ts.map +1 -1
- package/dist/identity/root-signer.js +0 -1
- package/dist/identity/root-signer.js.map +1 -1
- package/dist/inbox/inbox.d.ts +140 -0
- package/dist/inbox/inbox.d.ts.map +1 -0
- package/dist/inbox/inbox.js +212 -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 +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/network/mailbox.d.ts +4 -4
- package/dist/network/mailbox.d.ts.map +1 -1
- package/dist/network/mailbox.js +5 -5
- package/dist/network/mailbox.js.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 +42 -1
- 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 +720 -542
- package/dist/node/node.js.map +1 -1
- package/dist/node/remote.d.ts +6 -5
- package/dist/node/remote.d.ts.map +1 -1
- package/dist/node/remote.js +140 -195
- package/dist/node/remote.js.map +1 -1
- package/dist/node/space-runtime.d.ts +2 -1
- package/dist/node/space-runtime.d.ts.map +1 -1
- package/dist/node/space-runtime.js +71 -84
- package/dist/node/space-runtime.js.map +1 -1
- package/dist/node/types.d.ts +84 -47
- package/dist/node/types.d.ts.map +1 -1
- package/dist/node/worker.d.ts +1 -1
- package/dist/node/worker.d.ts.map +1 -1
- package/dist/node/worker.js +10 -6
- package/dist/node/worker.js.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 +20 -0
- package/dist/session/auth.d.ts.map +1 -1
- package/dist/session/auth.js +81 -64
- package/dist/session/auth.js.map +1 -1
- package/dist/session/connect.d.ts +50 -8
- package/dist/session/connect.d.ts.map +1 -1
- package/dist/session/connect.js +91 -27
- package/dist/session/connect.js.map +1 -1
- package/dist/session/connection.d.ts +39 -6
- package/dist/session/connection.d.ts.map +1 -1
- package/dist/session/connection.js +107 -38
- package/dist/session/connection.js.map +1 -1
- package/dist/session/hosting.d.ts +15 -0
- package/dist/session/hosting.d.ts.map +1 -1
- package/dist/session/hosting.js +55 -4
- package/dist/session/hosting.js.map +1 -1
- package/dist/session/index.d.ts +5 -5
- package/dist/session/index.d.ts.map +1 -1
- package/dist/session/index.js +2 -2
- package/dist/session/index.js.map +1 -1
- package/dist/space/account-registry.d.ts +36 -4
- package/dist/space/account-registry.d.ts.map +1 -1
- package/dist/space/account-registry.js +30 -3
- 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 +59 -140
- package/dist/space/roles.d.ts.map +1 -1
- package/dist/space/roles.js +328 -427
- 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 +40 -40
- package/docs/agents.md +2 -2
- package/docs/automations.md +2 -2
- package/docs/blueprints-and-guides.md +61 -1
- package/docs/bots.md +1 -1
- package/docs/building-an-app.md +2 -2
- package/docs/contacts.md +48 -69
- package/docs/inbox.md +145 -0
- package/docs/node.md +135 -76
- package/docs/query-format.md +1 -1
- package/docs/sign-in.md +16 -9
- package/docs/spaces.md +33 -5
- package/docs/standard-library.md +111 -86
- package/docs/storage.md +1 -1
- package/package.json +5 -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/docs/doors.md +0 -151
package/dist/space/roles.d.ts
CHANGED
|
@@ -36,42 +36,23 @@
|
|
|
36
36
|
*/
|
|
37
37
|
import { type FoundingRole } from './grants.js';
|
|
38
38
|
import type { SpaceGrant as Grant } from '../types.js';
|
|
39
|
-
/** A role's definitions */
|
|
40
39
|
export declare const ROLE_COLLECTION = "sys.role";
|
|
41
40
|
/** Assigning a role to an account, and taking it away */
|
|
42
41
|
export declare const ASSIGN_COLLECTION = "sys.assign";
|
|
43
|
-
/** Removing an account from the space */
|
|
44
42
|
export declare const REMOVE_COLLECTION = "sys.remove";
|
|
45
43
|
export declare const INVITE_COLLECTION = "sys.invite";
|
|
46
44
|
export declare const REVOKE_COLLECTION = "sys.revoke";
|
|
47
45
|
/** Collection definitions are part of the access history too: what a version must keep to */
|
|
48
46
|
export declare const DEFINITION_COLLECTION = "sys.collection";
|
|
49
|
-
/**
|
|
50
|
-
* A private space's key changes: the new key's id and public read key. The
|
|
51
|
-
* key itself travels sealed to each member (`sys.box`); this record only says
|
|
52
|
-
* which key is current, so a peer without any key can still check readers.
|
|
53
|
-
*/
|
|
47
|
+
/** Which of a private space's keys is current; the key itself travels sealed to each member (`sys.box`) */
|
|
54
48
|
export declare const KEY_COLLECTION = "sys.key";
|
|
55
|
-
/**
|
|
56
|
-
* Where the space's members meet: the relays it names, so two people whose
|
|
57
|
-
* apps use different relays still find each other. Like a Nostr relay list,
|
|
58
|
-
* but the space's, and changed only by someone granted `/space/relays`.
|
|
59
|
-
*/
|
|
49
|
+
/** The relays the space's members meet at, so people whose apps use different relays still find each other */
|
|
60
50
|
export declare const RELAYS_COLLECTION = "sys.relays";
|
|
61
|
-
/**
|
|
62
|
-
* Who keeps the space whole: nodes that hold every record of it — a host, an
|
|
63
|
-
* extension — and how many copies a write should reach before a node that
|
|
64
|
-
* holds only part of the space lets go of it.
|
|
65
|
-
*/
|
|
51
|
+
/** Nodes that hold the whole space, and how many a write should reach before a partial node lets go of it */
|
|
66
52
|
export declare const KEEPERS_COLLECTION = "sys.keepers";
|
|
67
|
-
/**
|
|
68
|
-
* A writer's log forked: two versions one key signed at one place in its line
|
|
69
|
-
* for one collection of this space (02 §4.10). The record carries both, so
|
|
70
|
-
* every peer checks the proof for itself, and the key's versions in that
|
|
71
|
-
* collection from that place on stop counting.
|
|
72
|
-
*/
|
|
53
|
+
/** A fork proof: two versions one key signed at one place in its line (02 §4.10), checked by every peer */
|
|
73
54
|
export declare const FORK_COLLECTION = "sys.fork";
|
|
74
|
-
/** A founder stepping down: it
|
|
55
|
+
/** A founder stepping down: it keeps its roles, and is a founder no more */
|
|
75
56
|
export declare const STEPDOWN_COLLECTION = "sys.stepdown";
|
|
76
57
|
/** A space that succeeds this one, by its id. It changes nothing here. */
|
|
77
58
|
export declare const SUCCEED_COLLECTION = "sys.succeed";
|
|
@@ -79,6 +60,17 @@ export declare const SUCCEED_COLLECTION = "sys.succeed";
|
|
|
79
60
|
export declare const STRONG_REMOVE = "strong-remove/1";
|
|
80
61
|
/** Every resolver this peer knows. A space naming another is not judged here. */
|
|
81
62
|
export declare const RESOLVERS: ReadonlySet<string>;
|
|
63
|
+
declare const accessKind: (collection: string, prefix: string, clear?: boolean) => Readonly<{
|
|
64
|
+
collection: string;
|
|
65
|
+
prefix: string;
|
|
66
|
+
clear: boolean;
|
|
67
|
+
}>;
|
|
68
|
+
/**
|
|
69
|
+
* Each kind of change: its collection, where its line is counted too; its record keys' prefix; and
|
|
70
|
+
* whether a private space keeps it in the clear, so a peer without the key can still judge who may
|
|
71
|
+
* do what. Collection definitions stay sealed: only readers need their rules.
|
|
72
|
+
*/
|
|
73
|
+
export declare const ACCESS_KINDS: Readonly<Record<AccessEvent['kind'], ReturnType<typeof accessKind>>>;
|
|
82
74
|
/** Every collection whose records are part of the access history */
|
|
83
75
|
export declare const ACCESS_COLLECTIONS: ReadonlySet<string>;
|
|
84
76
|
interface EventBase {
|
|
@@ -93,12 +85,7 @@ interface EventBase {
|
|
|
93
85
|
readonly seen: ReadonlyArray<string>;
|
|
94
86
|
/** Its place in its key's line for its collection here: what forks and cutoffs reach */
|
|
95
87
|
readonly line?: number;
|
|
96
|
-
/**
|
|
97
|
-
* What this change leaves standing of what it takes away: for each key of
|
|
98
|
-
* the account it takes power from, and each collection, the end of the
|
|
99
|
-
* unbroken line of that key's versions in that collection its author held.
|
|
100
|
-
* Versions at or below it are covered.
|
|
101
|
-
*/
|
|
88
|
+
/** What it leaves standing of what it takes: for each key and collection, the place covered up to */
|
|
102
89
|
readonly cutoff: Cutoff;
|
|
103
90
|
}
|
|
104
91
|
/** A key whose line for a collection forked, and the place from which its versions there stop counting */
|
|
@@ -124,16 +111,12 @@ export type AccessEvent = EventBase & ({
|
|
|
124
111
|
readonly assigned: boolean;
|
|
125
112
|
/** The invite's public key, when the runtime checked the invite's signature on this record */
|
|
126
113
|
readonly viaInvite?: string;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
readonly
|
|
131
|
-
} | {
|
|
132
|
-
/** A founder stepping down, built in: only its own */
|
|
133
|
-
readonly kind: 'stepdown';
|
|
114
|
+
}
|
|
115
|
+
/** `/member/remove`, or leaving when it is the account's own; a founder stepping down, only its own */
|
|
116
|
+
| {
|
|
117
|
+
readonly kind: 'remove' | 'stepdown';
|
|
134
118
|
readonly did: string;
|
|
135
119
|
} | {
|
|
136
|
-
/** `/space/succeed`: the id of a space that succeeds this one */
|
|
137
120
|
readonly kind: 'succeed';
|
|
138
121
|
readonly space: string;
|
|
139
122
|
} | {
|
|
@@ -141,36 +124,33 @@ export type AccessEvent = EventBase & ({
|
|
|
141
124
|
readonly inviteKey: string;
|
|
142
125
|
readonly role: string;
|
|
143
126
|
readonly open: boolean;
|
|
144
|
-
}
|
|
127
|
+
}
|
|
128
|
+
/** `target`: every version that key signed for this change's account, past the cutoff, stops counting */
|
|
129
|
+
| {
|
|
145
130
|
readonly kind: 'revoke';
|
|
146
|
-
/** The key revoked: every version it signed for this change's account, past the cutoff, stops counting */
|
|
147
131
|
readonly target: string;
|
|
148
132
|
} | {
|
|
149
133
|
readonly kind: 'definition';
|
|
150
134
|
readonly name: string;
|
|
151
135
|
readonly deleted: boolean;
|
|
152
|
-
}
|
|
136
|
+
}
|
|
137
|
+
/** `keyId`: the hash of the new key, as encrypted bodies name it; `readKey`: what readers prove they hold */
|
|
138
|
+
| {
|
|
153
139
|
readonly kind: 'key';
|
|
154
|
-
/** The new key's id: the hash of its bytes, as encrypted bodies name it */
|
|
155
140
|
readonly keyId: string;
|
|
156
|
-
/** The public half of the read key derived from it, which readers prove they hold */
|
|
157
141
|
readonly readKey: string;
|
|
158
|
-
}
|
|
142
|
+
}
|
|
143
|
+
/** `writer`'s versions in `collection` from `from` on no longer count */
|
|
144
|
+
| ({
|
|
159
145
|
readonly kind: 'fork';
|
|
160
|
-
|
|
161
|
-
readonly writer: string;
|
|
162
|
-
/** The collection whose line forked */
|
|
163
|
-
readonly collection: string;
|
|
164
|
-
/** Where: its versions in that collection here and after no longer count */
|
|
165
|
-
readonly from: number;
|
|
166
|
-
} | {
|
|
146
|
+
} & ForkedLine) | {
|
|
167
147
|
readonly kind: 'relays';
|
|
168
|
-
|
|
169
|
-
}
|
|
148
|
+
readonly relays: ReadonlyArray<string>;
|
|
149
|
+
}
|
|
150
|
+
/** `copies`: how many keepers a write should reach before a partial node lets go of it; null for the default */
|
|
151
|
+
| {
|
|
170
152
|
readonly kind: 'keepers';
|
|
171
|
-
/** Nodes that keep the space whole, at most `MAX_KEEPERS` */
|
|
172
153
|
readonly keepers: ReadonlyArray<Keeper>;
|
|
173
|
-
/** How many keepers a write should reach before a partial node lets go of it; null for the default */
|
|
174
154
|
readonly copies: number | null;
|
|
175
155
|
});
|
|
176
156
|
/** A node that keeps a space whole: its key, as it appears to peers, and a name for people */
|
|
@@ -193,11 +173,7 @@ export interface SpaceKeyEpoch {
|
|
|
193
173
|
/** The change that made it current; the space id for the key it started with */
|
|
194
174
|
readonly event: string;
|
|
195
175
|
}
|
|
196
|
-
/**
|
|
197
|
-
* One definition of a role: the constitution's, or one written since. The
|
|
198
|
-
* grants it holds count only as far as its author could invoke them itself,
|
|
199
|
-
* as of `view`.
|
|
200
|
-
*/
|
|
176
|
+
/** One definition of a role: its grants count only as far as its author could invoke them, as of `view` */
|
|
201
177
|
export interface RoleDefinition {
|
|
202
178
|
/** The definition's id; the space id for the constitution's */
|
|
203
179
|
readonly event: string;
|
|
@@ -214,17 +190,11 @@ export interface RoleDefinition {
|
|
|
214
190
|
export interface AccessState {
|
|
215
191
|
/** The founders: they hold every command, and only each founder itself takes its place or its roles */
|
|
216
192
|
readonly founders: ReadonlySet<string>;
|
|
217
|
-
/**
|
|
218
|
-
* Role name → its current definitions: one, or rivals none of which saw
|
|
219
|
-
* the others, which hold only the grants they share
|
|
220
|
-
*/
|
|
193
|
+
/** Role name → its current definitions: one, or rivals, which hold only the grants they share */
|
|
221
194
|
readonly roles: ReadonlyMap<string, ReadonlyArray<RoleDefinition>>;
|
|
222
195
|
/** Account DID → the roles assigned to it → the assignment's id */
|
|
223
196
|
readonly assigned: ReadonlyMap<string, ReadonlyMap<string, string>>;
|
|
224
|
-
/**
|
|
225
|
-
* Invite public key → its role, whether it is open, and who opened it: a
|
|
226
|
-
* join through it is judged as their assignment
|
|
227
|
-
*/
|
|
197
|
+
/** Invite public key → its role, whether open, and who opened it: a join is judged as their assignment */
|
|
228
198
|
readonly invites: ReadonlyMap<string, {
|
|
229
199
|
readonly role: string;
|
|
230
200
|
readonly open: boolean;
|
|
@@ -232,24 +202,19 @@ export interface AccessState {
|
|
|
232
202
|
/** The accounts whose latest changes opened it, sorted: one, or rivals for the same role */
|
|
233
203
|
readonly by: ReadonlyArray<string>;
|
|
234
204
|
}>;
|
|
235
|
-
/**
|
|
236
|
-
* Collection name → the id of the definition in force, and who first
|
|
237
|
-
* defined it: null when rival first definitions name different accounts
|
|
238
|
-
*/
|
|
205
|
+
/** Collection name → the definition in force, and who first defined it (null for rivals' different accounts) */
|
|
239
206
|
readonly definitions: ReadonlyMap<string, {
|
|
240
207
|
readonly event: string;
|
|
241
208
|
readonly definedBy: string | null;
|
|
242
209
|
}>;
|
|
243
210
|
/**
|
|
244
|
-
* Collections whose rival first definitions
|
|
245
|
-
*
|
|
246
|
-
* in force is not the replay's to say (02 §6.3: none, unless they all say
|
|
247
|
-
* the same), and only someone who may define it may define it again.
|
|
211
|
+
* Collections whose rival first definitions by different accounts no later one settles → the
|
|
212
|
+
* latest ids, lowest first. Which is in force is not the replay's to say (02 §6.3).
|
|
248
213
|
*/
|
|
249
214
|
readonly contested: ReadonlyMap<string, ReadonlyArray<string>>;
|
|
250
215
|
/** A private space's keys, oldest first; the last is current. Empty in a public space. */
|
|
251
216
|
readonly keys: ReadonlyArray<SpaceKeyEpoch>;
|
|
252
|
-
/** Whether someone lost their place
|
|
217
|
+
/** Whether someone lost their place since the current key, so a new one is due: the current state's only */
|
|
253
218
|
readonly keyDue: boolean;
|
|
254
219
|
/** The relays the space names — empty until someone names some */
|
|
255
220
|
readonly relays: ReadonlyArray<string>;
|
|
@@ -297,11 +262,7 @@ export type RecordVerdict = {
|
|
|
297
262
|
readonly ok: false;
|
|
298
263
|
readonly reason: string;
|
|
299
264
|
readonly later?: boolean;
|
|
300
|
-
/**
|
|
301
|
-
* Allowed when written, and refused only because a later change took
|
|
302
|
-
* its author's access away or revoked its key. It is kept, so a
|
|
303
|
-
* version that cites it, and had not seen that change, can count it.
|
|
304
|
-
*/
|
|
265
|
+
/** Allowed when written, and taken away by a later change: kept, so a version citing it can count it */
|
|
305
266
|
readonly withdrawn?: true;
|
|
306
267
|
};
|
|
307
268
|
/** What a record asks of its author, in a state: whether they may do what it does */
|
|
@@ -311,51 +272,28 @@ export interface AccessHistory {
|
|
|
311
272
|
readonly current: AccessState;
|
|
312
273
|
/** What became of one change */
|
|
313
274
|
status(id: string): EventStatus | null;
|
|
314
|
-
/**
|
|
315
|
-
* The latest applied changes to who holds what — what a new record's `seen`
|
|
316
|
-
* names. A dropped change is never a head, nor a revoke or a fork proof:
|
|
317
|
-
* none changes the state, and a writer need not name them.
|
|
318
|
-
*/
|
|
275
|
+
/** The latest applied changes to who holds what, which a new record's `seen` names: no revokes or fork proofs */
|
|
319
276
|
heads(): ReadonlyArray<string>;
|
|
320
|
-
/**
|
|
321
|
-
* At most `max` heads, chosen so that what they saw holds the latest applied
|
|
322
|
-
* change to each of `keys` (the records a writer's standing rests on), then
|
|
323
|
-
* the most recently applied: what a writer names when there are more.
|
|
324
|
-
*/
|
|
277
|
+
/** At most `max` heads: first ones that saw the latest change to each of `keys`, then the most recent */
|
|
325
278
|
headsFor(keys: ReadonlyArray<string>, max: number): ReadonlyArray<string>;
|
|
326
279
|
/**
|
|
327
|
-
* The state
|
|
328
|
-
*
|
|
329
|
-
* history, so a change struck since gives nothing even to a record that
|
|
330
|
-
* cites it. With `within`, valid among what `within` and `seen` name
|
|
331
|
-
* instead (a version another cites). Null when some of it is not here.
|
|
280
|
+
* The state as of what `seen` names and saw, counting the changes valid in the whole history, or
|
|
281
|
+
* with `within` valid among what both name (a version another cites). Null until all of it is here.
|
|
332
282
|
*/
|
|
333
283
|
at(seen: ReadonlyArray<string>, within?: ReadonlyArray<string>): AccessState | null;
|
|
334
|
-
/**
|
|
335
|
-
* The state as its writer saw it: the changes `seen` names and everything
|
|
336
|
-
* they saw, judged among themselves alone. A record its author couldn't
|
|
337
|
-
* have written here is refused; one that fails only in {@link at} is
|
|
338
|
-
* withdrawn. Null when some of it is not here.
|
|
339
|
-
*/
|
|
284
|
+
/** The state as its writer saw it: what `seen` names and saw, judged among themselves alone */
|
|
340
285
|
seenAs(seen: ReadonlyArray<string>): AccessState | null;
|
|
341
286
|
/**
|
|
342
|
-
* Whether a record stands
|
|
343
|
-
*
|
|
344
|
-
* `
|
|
345
|
-
* stand ({@link at}), and no removal or unassignment of its account it had
|
|
346
|
-
* not seen and that doesn't cover it.
|
|
347
|
-
* @param record The record's id, its account, what it saw, and the key that signed it
|
|
348
|
-
* @param needs What the record asks of its author
|
|
349
|
-
* @param within For a version another cites: what the citing version saw.
|
|
350
|
-
* Only changes among those, and what they saw, can take it away.
|
|
287
|
+
* Whether a record stands: its key not revoked or forked past what covers it, `needs` met as of
|
|
288
|
+
* what it saw and as of the changes that stand, and no unseen removal of its account taking it.
|
|
289
|
+
* With `within`, for a version another cites, only changes the citer saw can take it away.
|
|
351
290
|
*/
|
|
352
291
|
judge(record: {
|
|
353
292
|
readonly id: string;
|
|
354
293
|
readonly root: string;
|
|
355
294
|
readonly seen: ReadonlyArray<string>;
|
|
356
|
-
/** The key that signed it */
|
|
295
|
+
/** The key that signed it, its collection, and its place in that key's line there */
|
|
357
296
|
readonly writer?: string;
|
|
358
|
-
/** Its collection, and its place in its key's line for that collection */
|
|
359
297
|
readonly collection?: string;
|
|
360
298
|
readonly line?: number;
|
|
361
299
|
}, needs: Needs, within?: ReadonlyArray<string>): RecordVerdict;
|
|
@@ -368,22 +306,11 @@ export interface AccessHistory {
|
|
|
368
306
|
} | null;
|
|
369
307
|
/** Every key whose line for a collection forked, and from where */
|
|
370
308
|
forks(): ReadonlyArray<ForkedLine>;
|
|
371
|
-
/**
|
|
372
|
-
* Whether an account appears anywhere in the history — a founder, assigned
|
|
373
|
-
* a role by the constitution, or named by any assignment, whatever became of it. Only grows as changes
|
|
374
|
-
* arrive, so it can decide what to store without two peers ever disagreeing
|
|
375
|
-
* for good.
|
|
376
|
-
*/
|
|
309
|
+
/** Whether any founder, constitution or assignment names an account: it only grows, so it can decide what to store */
|
|
377
310
|
named(did: string): boolean;
|
|
378
311
|
/** Whether any change held opens an invite with this key */
|
|
379
312
|
knownInvite(inviteKey: string): boolean;
|
|
380
|
-
/**
|
|
381
|
-
* The history with one more change, made without replaying the rest:
|
|
382
|
-
* exactly what `replayAccess` with every change held and this one gives.
|
|
383
|
-
* Null when only a whole replay can say where it goes — it did not see
|
|
384
|
-
* every change here, or it could change an order already chosen. This
|
|
385
|
-
* history stays as it was.
|
|
386
|
-
*/
|
|
313
|
+
/** The history with one more change, exactly as replaying all gives; null when only a whole replay can say */
|
|
387
314
|
extend(event: AccessEvent): AccessHistory | null;
|
|
388
315
|
}
|
|
389
316
|
/** The roles assigned to an account in a state, by name */
|
|
@@ -412,22 +339,14 @@ export interface MayOptions {
|
|
|
412
339
|
*/
|
|
413
340
|
export declare function may(state: AccessState, did: string, cmd: string, args: unknown, options?: MayOptions): boolean;
|
|
414
341
|
/**
|
|
415
|
-
* Whether an account holds every grant a role gives, each as wide or wider
|
|
416
|
-
* what it may hand
|
|
417
|
-
*
|
|
418
|
-
* every statement of its policy is among the other's, held through the
|
|
419
|
-
* account's roles as {@link may} holds it (rivals sharing it, attenuated by
|
|
420
|
-
* each definition's author). A founder holds every grant. Only the policies'
|
|
421
|
-
* words are compared, so it may say no where the policies would in fact
|
|
422
|
-
* allow; never yes where they wouldn't.
|
|
342
|
+
* Whether an account holds every grant a role gives, each as wide or wider (its command covering,
|
|
343
|
+
* its policy's statements among the other's): what it may hand a bot of its own. Only the policies'
|
|
344
|
+
* words are compared, so it may say no where they would allow; never yes where they wouldn't.
|
|
423
345
|
*/
|
|
424
346
|
export declare function holdsRole(state: AccessState, did: string, role: string): boolean;
|
|
425
347
|
/**
|
|
426
|
-
* Why a change is not allowed in a state, or null
|
|
427
|
-
*
|
|
428
|
-
* few things anyone may do for themselves (leave a role, leave the space,
|
|
429
|
-
* step down as a founder), or it names a successor where no one holds
|
|
430
|
-
* `/space/succeed`.
|
|
348
|
+
* Why a change is not allowed in a state, or null: its author holds the grant, or it is one of the
|
|
349
|
+
* few things anyone may do for themselves, or it names a successor where no one holds the grant.
|
|
431
350
|
*/
|
|
432
351
|
export declare function refusal(event: AccessEvent, state: AccessState): string | null;
|
|
433
352
|
/** Replays a space's access history. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../src/space/roles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAKH,OAAO,EAYL,KAAK,YAAY,EAClB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,UAAU,IAAI,KAAK,EAAE,MAAM,aAAa,CAAC;AAEvD,
|
|
1
|
+
{"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../src/space/roles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAKH,OAAO,EAYL,KAAK,YAAY,EAClB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,UAAU,IAAI,KAAK,EAAE,MAAM,aAAa,CAAC;AAEvD,eAAO,MAAM,eAAe,aAAa,CAAC;AAC1C,yDAAyD;AACzD,eAAO,MAAM,iBAAiB,eAAe,CAAC;AAC9C,eAAO,MAAM,iBAAiB,eAAe,CAAC;AAC9C,eAAO,MAAM,iBAAiB,eAAe,CAAC;AAC9C,eAAO,MAAM,iBAAiB,eAAe,CAAC;AAC9C,6FAA6F;AAC7F,eAAO,MAAM,qBAAqB,mBAAmB,CAAC;AACtD,2GAA2G;AAC3G,eAAO,MAAM,cAAc,YAAY,CAAC;AACxC,8GAA8G;AAC9G,eAAO,MAAM,iBAAiB,eAAe,CAAC;AAC9C,6GAA6G;AAC7G,eAAO,MAAM,kBAAkB,gBAAgB,CAAC;AAChD,2GAA2G;AAC3G,eAAO,MAAM,eAAe,aAAa,CAAC;AAC1C,4EAA4E;AAC5E,eAAO,MAAM,mBAAmB,iBAAiB,CAAC;AAClD,0EAA0E;AAC1E,eAAO,MAAM,kBAAkB,gBAAgB,CAAC;AAEhD,kGAAkG;AAClG,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C,iFAAiF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