@getcirrus/space-conformance 0.0.0 → 0.1.0
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/dist/base-CGsQgOwR.d.ts +472 -0
- package/dist/base-CGsQgOwR.d.ts.map +1 -0
- package/dist/cli.js +79266 -26
- package/dist/cli.js.map +1 -1
- package/dist/coverage-zCMup3Nb.js +2245 -0
- package/dist/coverage-zCMup3Nb.js.map +1 -0
- package/dist/descriptors-YEk3XoDL.js +4428 -0
- package/dist/descriptors-YEk3XoDL.js.map +1 -0
- package/dist/full-Bomm2urj.js +12285 -0
- package/dist/full-Bomm2urj.js.map +1 -0
- package/dist/full.d.ts +43 -17
- package/dist/full.d.ts.map +1 -1
- package/dist/full.js +3 -3
- package/dist/index.d.ts +91 -28
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +115 -93
- package/dist/index.js.map +1 -1
- package/lexicons/MANIFEST.json +3 -3
- package/lexicons/managedspace/checkAccess.json +44 -0
- package/lexicons/managedspace/policy.json +22 -0
- package/lexicons/memberspace/defs.json +22 -0
- package/lexicons/{simplespace → memberspace}/listMembers.json +15 -17
- package/lexicons/memberspace/member.json +23 -0
- package/lexicons/memberspace/policy.json +40 -0
- package/lexicons/memberspace/putMembers.json +43 -0
- package/lexicons/memberspace/removeMembers.json +43 -0
- package/lexicons/personalspace/policy.json +11 -0
- package/lexicons/space/applyWrites.json +6 -11
- package/lexicons/space/authorizeSpaceSync.json +109 -0
- package/lexicons/space/clearRecords.json +34 -0
- package/lexicons/space/confirmRegistration.json +44 -0
- package/lexicons/space/createRecord.json +7 -14
- package/lexicons/space/createSpace.json +58 -0
- package/lexicons/space/defs.json +61 -17
- package/lexicons/space/deleteRecord.json +5 -9
- package/lexicons/space/deleteSpace.json +31 -0
- package/lexicons/space/exportSpaceMeta.json +31 -0
- package/lexicons/space/getBlob.json +4 -7
- package/lexicons/space/getDelegationToken.json +3 -5
- package/lexicons/space/getLatestCommit.json +8 -7
- package/lexicons/space/getRecord.json +9 -9
- package/lexicons/space/getRepo.json +8 -11
- package/lexicons/space/getSpace.json +43 -0
- package/lexicons/space/importRepo.json +27 -0
- package/lexicons/space/importSpaceMeta.json +25 -0
- package/lexicons/space/listBlobs.json +3 -10
- package/lexicons/space/listRecords.json +10 -16
- package/lexicons/space/listRepoOps.json +23 -23
- package/lexicons/space/listSpaces.json +30 -14
- package/lexicons/space/listWriters.json +66 -0
- package/lexicons/space/notifyCredentialsRevoked.json +30 -0
- package/lexicons/space/notifyRepoUpdate.json +43 -0
- package/lexicons/space/notifySpaceUpdate.json +53 -0
- package/lexicons/space/policy.json +26 -0
- package/lexicons/space/putRecord.json +7 -14
- package/lexicons/space/removeWriter.json +35 -0
- package/lexicons/space/updateSpace.json +43 -0
- package/package.json +8 -10
- package/dist/base-D8a-ZK57.d.ts +0 -249
- package/dist/base-D8a-ZK57.d.ts.map +0 -1
- package/dist/coverage-DhJZu8P8.js +0 -1914
- package/dist/coverage-DhJZu8P8.js.map +0 -1
- package/dist/full-D4ufJLcw.js +0 -409
- package/dist/full-D4ufJLcw.js.map +0 -1
- package/dist/operator-BErXCDow.js +0 -923
- package/dist/operator-BErXCDow.js.map +0 -1
- package/lexicons/simplespace/addMember.json +0 -37
- package/lexicons/simplespace/checkUserAccess.json +0 -43
- package/lexicons/simplespace/createSpace.json +0 -74
- package/lexicons/simplespace/defs.json +0 -47
- package/lexicons/simplespace/deleteSpace.json +0 -32
- package/lexicons/simplespace/getSpace.json +0 -53
- package/lexicons/simplespace/removeMember.json +0 -37
- package/lexicons/simplespace/updateSpace.json +0 -57
- package/lexicons/space/getSpaceCredential.json +0 -67
- package/lexicons/space/listRepos.json +0 -75
- package/lexicons/space/notifySpaceDeleted.json +0 -24
- package/lexicons/space/notifyWrite.json +0 -38
- package/lexicons/space/registerNotify.json +0 -49
- package/lexicons/space/unregisterNotify.json +0 -29
package/dist/full.d.ts
CHANGED
|
@@ -1,40 +1,54 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as CheckContext, J as IdentityProvider, O as CredentialKey, P as createCredentialKey, S as XrpcResult, V as Check, _ as obtainPublicCredential, a as Credential, d as credentialCall, f as credentialGet, g as obtainCredentialViaDelegation, i as createSyncerInbox, l as ProbeSpace, n as operatorChecks, p as deleteProbeSpace, q as HarnessIdentity, r as SyncerInboxHandle, t as baseChecks, u as createProbeSpace, v as operatorCreateRecord, x as requestCredential } from "./base-CGsQgOwR.js";
|
|
2
2
|
|
|
3
3
|
//#region src/identity.d.ts
|
|
4
4
|
|
|
5
5
|
interface HarnessIdentityWithKey extends HarnessIdentity {
|
|
6
|
-
/** The did:key form of the identity's
|
|
6
|
+
/** The did:key form of the identity's `#atproto` key, for resolver wiring. */
|
|
7
7
|
didKey: string;
|
|
8
8
|
}
|
|
9
|
+
interface IdentityDocumentOptions {
|
|
10
|
+
/** Publish an `#atproto_pds` service at this endpoint (inboxes, managing apps). */
|
|
11
|
+
serviceEndpoint?: string;
|
|
12
|
+
/** A handle to list in `alsoKnownAs`. */
|
|
13
|
+
handle?: string;
|
|
14
|
+
}
|
|
9
15
|
/**
|
|
10
16
|
* An identity provider backed by secp256k1 keypairs. Identities are keyed
|
|
11
17
|
* by role label and reused within a run, so "reader" is stable across the
|
|
12
18
|
* checks that mint and then present its tokens.
|
|
13
19
|
*
|
|
14
|
-
* `
|
|
15
|
-
* `did:web:
|
|
16
|
-
*
|
|
17
|
-
*
|
|
20
|
+
* `didFor` gives each identity a resolvable DID (e.g.
|
|
21
|
+
* `did:web:localhost%3A61234`), and may be async — a harness can start the
|
|
22
|
+
* server that will publish the document there. When omitted, the
|
|
23
|
+
* identity's DID is its own `did:key`, which only works against a target
|
|
24
|
+
* whose resolver this provider is wired into.
|
|
18
25
|
*/
|
|
19
26
|
declare class KeypairIdentityProvider implements IdentityProvider {
|
|
20
|
-
private readonly
|
|
27
|
+
private readonly didFor?;
|
|
21
28
|
private cache;
|
|
22
|
-
constructor(
|
|
29
|
+
constructor(didFor?: ((role: string, didKey: string) => string | Promise<string>) | undefined);
|
|
23
30
|
identity(role: string): Promise<HarnessIdentityWithKey>;
|
|
24
31
|
private mint;
|
|
25
|
-
|
|
32
|
+
/**
|
|
33
|
+
* The DID document a resolvable identity must publish: its `#atproto`
|
|
34
|
+
* key as a Multikey and, optionally, the `#atproto_pds` service the
|
|
35
|
+
* target delivers to.
|
|
36
|
+
*/
|
|
37
|
+
static didDocument(identity: Pick<HarnessIdentityWithKey, "did" | "didKey">, opts?: IdentityDocumentOptions): Record<string, unknown>;
|
|
26
38
|
/** All minted identities so far, for resolver wiring in fixtures. */
|
|
27
39
|
minted(): Promise<HarnessIdentityWithKey[]>;
|
|
28
40
|
}
|
|
29
41
|
//#endregion
|
|
30
42
|
//#region src/full/helpers.d.ts
|
|
31
|
-
|
|
32
|
-
/** Mint a delegation token for `identity` against `space`. */
|
|
33
|
-
declare function mintDelegation(ctx: CheckContext, identity: HarnessIdentity, space: string, audOverride?: string): Promise<string>;
|
|
34
43
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
|
|
44
|
+
* Mint a delegation token for `identity` against `space`, addressed (by
|
|
45
|
+
* default) to the space authority's `#atproto_pds` — the space host.
|
|
46
|
+
*/
|
|
47
|
+
declare function mintDelegation(identity: HarnessIdentity, space: string, audOverride?: string): Promise<string>;
|
|
48
|
+
/**
|
|
49
|
+
* The full obtain flow as a foreign user: mint a delegation token as
|
|
50
|
+
* `identity` and exchange it for a credential bound to a fresh P-256 key.
|
|
51
|
+
* Returns the raw result so callers can assert on refusals.
|
|
38
52
|
*/
|
|
39
53
|
declare function obtainCredential(ctx: CheckContext, identity: HarnessIdentity, space: string, opts?: {
|
|
40
54
|
audOverride?: string;
|
|
@@ -43,9 +57,21 @@ declare function obtainCredential(ctx: CheckContext, identity: HarnessIdentity,
|
|
|
43
57
|
result: XrpcResult;
|
|
44
58
|
credential?: Credential;
|
|
45
59
|
}>;
|
|
60
|
+
/**
|
|
61
|
+
* Mint a credential as the authority of `space` — a harness identity
|
|
62
|
+
* playing a foreign space authority whose credentials a repo host must
|
|
63
|
+
* honour for reads of its repos in that space.
|
|
64
|
+
*/
|
|
65
|
+
declare function mintCredential(authority: HarnessIdentity, space: string, keyDid: string): Promise<string>;
|
|
66
|
+
/** An inter-service auth JWT (`lxm`-scoped), signed as `identity`. */
|
|
67
|
+
declare function serviceJwt(identity: HarnessIdentity, opts: {
|
|
68
|
+
aud: string;
|
|
69
|
+
lxm: string;
|
|
70
|
+
expiresInSec?: number;
|
|
71
|
+
}): Promise<string>;
|
|
46
72
|
//#endregion
|
|
47
73
|
//#region src/full/checks.d.ts
|
|
48
|
-
/** The crypto-bound catalog
|
|
74
|
+
/** The crypto-bound catalog, in descriptor order. */
|
|
49
75
|
declare const cryptoChecks: Check[];
|
|
50
76
|
//#endregion
|
|
51
77
|
//#region src/full.d.ts
|
|
@@ -55,5 +81,5 @@ declare const cryptoChecks: Check[];
|
|
|
55
81
|
*/
|
|
56
82
|
declare const fullCatalog: Check[];
|
|
57
83
|
//#endregion
|
|
58
|
-
export { type Credential, type HarnessIdentityWithKey, KeypairIdentityProvider, type ProbeSpace, baseChecks,
|
|
84
|
+
export { type Credential, type CredentialKey, type HarnessIdentityWithKey, type IdentityDocumentOptions, KeypairIdentityProvider, type ProbeSpace, type SyncerInboxHandle, baseChecks, createCredentialKey, createProbeSpace, createSyncerInbox, credentialCall, credentialGet, cryptoChecks, deleteProbeSpace, fullCatalog, mintCredential, mintDelegation, obtainCredential, obtainCredentialViaDelegation, obtainPublicCredential, operatorChecks, operatorCreateRecord, requestCredential, serviceJwt };
|
|
59
85
|
//# sourceMappingURL=full.d.ts.map
|
package/dist/full.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"full.d.ts","names":[],"sources":["../src/identity.ts","../src/full/helpers.ts","../src/full/checks.ts","../src/full.ts"],"sourcesContent":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"full.d.ts","names":[],"sources":["../src/identity.ts","../src/full/helpers.ts","../src/full/checks.ts","../src/full.ts"],"sourcesContent":[],"mappings":";;;;AC0GsB,UDvEL,sBAAA,SAA+B,eC0EtC,CAAA;;;;ACqgCG,UF1kCI,uBAAA,CE0kCe;;;;ECjkCnB,MAAA,CAAA,EAAA,MAIX;;;;;;;;;;;;;cHKW,uBAAA,YAAmC;;;mEAOhC;0BAGS,QAAQ;;;;;;;+BA2BrB,KAAK,kDACT,0BACJ;;YA+BO,QAAQ;;;;;;ACzEnB;AAkBA;AACM,iBAnBU,cAAA,CAmBV,QAAA,EAlBK,eAkBL,EAAA,KAAA,EAAA,MAAA,EAAA,WAAA,CAAA,EAAA,MAAA,CAAA,EAfH,OAeG,CAAA,MAAA,CAAA;;;;;;AAkBU,iBAnBM,gBAAA,CAoBV,GAAA,EAnBN,YAsBI,EAAA,QAAA,EArBC,eAqBD,EAAA,KAAA,EAAA,MAAA,EAAA,KAAA,EAAA;EAUY,WAAA,CAAA,EAAU,MAAA;;IA5B7B;UAAkB;ECoiCR,UAAA,CAAA,EDpiCiC,UC+jC7C;;;;AC5lCD;;;iBF2CgB,cAAA,YACJ,iDAGT;;iBAUmB,UAAA,WACX;;;;IAER;;;;cCqgCU,cAAc;;;;;AD3jC3B;AAkBA;AACM,cEzBO,WFyBP,EErBJ,KAAA,EFqBI"}
|
package/dist/full.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
1
|
+
import { a as mintDelegation, i as mintCredential, n as KeypairIdentityProvider, o as obtainCredential, r as cryptoChecks, s as serviceJwt, t as fullCatalog } from "./full-Bomm2urj.js";
|
|
2
|
+
import { C as operatorCreateRecord, D as requestCredential, S as obtainPublicCredential, V as createCredentialKey, a as operatorChecks, g as deleteProbeSpace, h as credentialGet, i as createSyncerInbox, m as credentialCall, p as createProbeSpace, u as baseChecks, x as obtainCredentialViaDelegation } from "./descriptors-YEk3XoDL.js";
|
|
3
3
|
|
|
4
|
-
export { KeypairIdentityProvider, baseChecks,
|
|
4
|
+
export { KeypairIdentityProvider, baseChecks, createCredentialKey, createProbeSpace, createSyncerInbox, credentialCall, credentialGet, cryptoChecks, deleteProbeSpace, fullCatalog, mintCredential, mintDelegation, obtainCredential, obtainCredentialViaDelegation, obtainPublicCredential, operatorChecks, operatorCreateRecord, requestCredential, serviceJwt };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { $ as fail, A as MAC_COVERED_HEADER, B as Capability, C as operatorHeaders, D as COMMIT_MAC_PROFILE, E as xrpcUrl, F as credentialSigMembers, G as CheckStatus, H as CheckContext, I as encapsulate, J as IdentityProvider, K as Citation, L as formatMacRequest, M as RECORD_MAC_PROFILE, N as SPACE_CREDENTIAL_SCHEME, O as CredentialKey, P as createCredentialKey, Q as Tier, R as isP256DidKey, S as XrpcResult, T as xrpcPost, U as CheckOutcome, V as Check, W as CheckResult, X as SyncerInbox, Y as InboxDelivery, Z as Target, _ as obtainPublicCredential, a as Credential, b as publicRead, c as Policy, d as credentialCall, et as pass, f as credentialGet, g as obtainCredentialViaDelegation, h as memberspace, i as createSyncerInbox, j as MacProfile, k as CredentialSigOptions, l as ProbeSpace, m as managedspace, n as operatorChecks, o as CredentialCallOptions, p as deleteProbeSpace, q as HarnessIdentity, r as SyncerInboxHandle, s as CredentialResult, t as baseChecks, u as createProbeSpace, v as operatorCreateRecord, w as xrpcGet, x as requestCredential, y as personalspace, z as spaceSigHeaders } from "./base-CGsQgOwR.js";
|
|
2
2
|
|
|
3
3
|
//#region src/registry.d.ts
|
|
4
4
|
|
|
@@ -39,20 +39,32 @@ declare function buildCatalog(checks: Check[]): Check[];
|
|
|
39
39
|
*/
|
|
40
40
|
declare function filterCatalog(catalog: Check[], filter: CatalogFilter): FilteredCatalog;
|
|
41
41
|
//#endregion
|
|
42
|
-
//#region src/
|
|
42
|
+
//#region src/did.d.ts
|
|
43
|
+
declare const DEFAULT_PLC_DIRECTORY = "https://plc.directory";
|
|
44
|
+
interface DidDocument {
|
|
45
|
+
id: string;
|
|
46
|
+
alsoKnownAs?: string[];
|
|
47
|
+
verificationMethod?: Array<{
|
|
48
|
+
id: string;
|
|
49
|
+
type: string;
|
|
50
|
+
controller?: string;
|
|
51
|
+
publicKeyMultibase?: string;
|
|
52
|
+
}>;
|
|
53
|
+
service?: Array<{
|
|
54
|
+
id: string;
|
|
55
|
+
type: string;
|
|
56
|
+
serviceEndpoint: unknown;
|
|
57
|
+
}>;
|
|
58
|
+
}
|
|
59
|
+
/** The URL a DID document is fetched from, mirroring the reference resolver. */
|
|
60
|
+
declare function didDocumentUrl(did: string, plcDirectory?: string): string;
|
|
61
|
+
declare function resolveDidDocument(ctx: Pick<CheckContext, "fetch" | "target" | "resolveDid">, did: string): Promise<DidDocument>;
|
|
43
62
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* Reading the header needs only a varint and a dag-cbor decode — no CAR
|
|
47
|
-
* library, no node streams — so it stays runnable anywhere the full entry
|
|
48
|
-
* runs.
|
|
63
|
+
* A verification method as a did:key, accepting the `Multikey` form and
|
|
64
|
+
* the legacy 2019 types PLC still emits (raw key bytes, no multicodec).
|
|
49
65
|
*/
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
rootCount: number;
|
|
53
|
-
}
|
|
54
|
-
/** Parse just the CARv1 header block and report its version and root count. */
|
|
55
|
-
declare function readCarHeader(bytes: Uint8Array): CarHeaderInfo;
|
|
66
|
+
declare function verificationMethodDidKey(doc: DidDocument, fragment: string): string | undefined;
|
|
67
|
+
declare function serviceEndpoint(doc: DidDocument, fragment: string): string | undefined;
|
|
56
68
|
//#endregion
|
|
57
69
|
//#region src/descriptors.d.ts
|
|
58
70
|
interface CheckDescriptor {
|
|
@@ -63,11 +75,9 @@ interface CheckDescriptor {
|
|
|
63
75
|
citations: Citation[];
|
|
64
76
|
destructive?: boolean;
|
|
65
77
|
slow?: boolean;
|
|
78
|
+
timeoutMs?: number;
|
|
66
79
|
}
|
|
67
|
-
/**
|
|
68
|
-
* Every crypto-bound check, by metadata. Keep in the same order and with
|
|
69
|
-
* the same fields as `cryptoChecks` (enforced by the drift test).
|
|
70
|
-
*/
|
|
80
|
+
/** Every crypto-bound check, by metadata, in catalog order. */
|
|
71
81
|
declare const cryptoCheckDescriptors: CheckDescriptor[];
|
|
72
82
|
/**
|
|
73
83
|
* Turn a descriptor into a listable Check. Its run() is never invoked —
|
|
@@ -79,6 +89,38 @@ declare const cryptoCheckDescriptors: CheckDescriptor[];
|
|
|
79
89
|
*/
|
|
80
90
|
declare function descriptorToStub(d: CheckDescriptor): Check;
|
|
81
91
|
//#endregion
|
|
92
|
+
//#region src/alpha.d.ts
|
|
93
|
+
/**
|
|
94
|
+
* The alpha build the suite's verifiers are pinned to: the
|
|
95
|
+
* `@atproto/space` / `@atproto/crypto` versions bundled into dist, cut from
|
|
96
|
+
* bluesky-social/atproto `permissioned-data-alpha` at the vendored lexicon
|
|
97
|
+
* commit. Runners stamp it on every report.
|
|
98
|
+
*/
|
|
99
|
+
declare const ALPHA_BUILD = "0.0.0-spaces-alpha-20261124235736";
|
|
100
|
+
//#endregion
|
|
101
|
+
//#region src/changesets.d.ts
|
|
102
|
+
/**
|
|
103
|
+
* The upstream changesets the suite may cite, from bluesky-social/atproto
|
|
104
|
+
* `permissioned-data-alpha` at the vendored commit (see
|
|
105
|
+
* ../lexicons/MANIFEST.json). For alpha mechanics no lexicon can express —
|
|
106
|
+
* the credential HTTP signature, the MAC exchange, key discovery — a
|
|
107
|
+
* changeset is the alpha's only normative prose. Citations are checked
|
|
108
|
+
* against this list, the same typo guard lexicon citations get; re-vendor
|
|
109
|
+
* it alongside the lexicons.
|
|
110
|
+
*/
|
|
111
|
+
declare const knownChangesets: readonly string[];
|
|
112
|
+
//#endregion
|
|
113
|
+
//#region src/proposal.d.ts
|
|
114
|
+
/**
|
|
115
|
+
* The section anchors of proposal 0016 (Atproto Spaces), as combined in
|
|
116
|
+
* bluesky-social/proposals#143 at b54ec685 — the spec this alpha
|
|
117
|
+
* implements. A `proposal` citation's ref is `0016#<anchor>`, checked
|
|
118
|
+
* against this list (the typo guard lexicon and changeset citations get).
|
|
119
|
+
* Regenerate it from the proposal's headings when the alpha moves.
|
|
120
|
+
*/
|
|
121
|
+
declare const PROPOSAL_COMMIT = "b54ec6853bab77edd4fd373804a480633094b324";
|
|
122
|
+
declare const knownProposalAnchors: readonly string[];
|
|
123
|
+
//#endregion
|
|
82
124
|
//#region src/runner.d.ts
|
|
83
125
|
interface RunReport {
|
|
84
126
|
suite: {
|
|
@@ -127,9 +169,9 @@ declare function renderReport(report: RunReport): string;
|
|
|
127
169
|
//#endregion
|
|
128
170
|
//#region src/lexicons.d.ts
|
|
129
171
|
/**
|
|
130
|
-
* Vendored lexicon access.
|
|
131
|
-
*
|
|
132
|
-
*
|
|
172
|
+
* Vendored lexicon access. Generated by scripts/vendor-lexicons.mjs whenever
|
|
173
|
+
* lexicons/ is re-vendored — imports are explicit so bundlers carry the
|
|
174
|
+
* documents without filesystem access at runtime.
|
|
133
175
|
*/
|
|
134
176
|
interface LexiconDoc {
|
|
135
177
|
lexicon: number;
|
|
@@ -144,13 +186,34 @@ interface CoverageRequirement {
|
|
|
144
186
|
ref: string;
|
|
145
187
|
kind: "method" | "error";
|
|
146
188
|
}
|
|
189
|
+
/**
|
|
190
|
+
* A requirement the suite deliberately does not cover. `ref` is an exact
|
|
191
|
+
* requirement, or `*@error:Name` for that error on every method declaring
|
|
192
|
+
* it.
|
|
193
|
+
*/
|
|
194
|
+
interface CoverageExemption {
|
|
195
|
+
ref: string;
|
|
196
|
+
reason: string;
|
|
197
|
+
}
|
|
198
|
+
declare const coverageExemptions: CoverageExemption[];
|
|
147
199
|
interface CoverageReport {
|
|
148
200
|
requirements: CoverageRequirement[];
|
|
149
201
|
covered: Array<{
|
|
150
202
|
ref: string;
|
|
151
203
|
by: string[];
|
|
152
204
|
}>;
|
|
205
|
+
/** Requirements no `must` check covers and no exemption explains. */
|
|
153
206
|
gaps: CoverageRequirement[];
|
|
207
|
+
/** Requirements excused by an exemption, with its reason. */
|
|
208
|
+
exempt: Array<{
|
|
209
|
+
ref: string;
|
|
210
|
+
reason: string;
|
|
211
|
+
}>;
|
|
212
|
+
/**
|
|
213
|
+
* Exemptions that excuse nothing: they match no requirement, or every
|
|
214
|
+
* requirement they match is covered by a check after all.
|
|
215
|
+
*/
|
|
216
|
+
staleExemptions: CoverageExemption[];
|
|
154
217
|
/** Lexicon citations on checks that match no requirement (typo guard). */
|
|
155
218
|
danglingCitations: Array<{
|
|
156
219
|
checkId: string;
|
|
@@ -159,20 +222,20 @@ interface CoverageReport {
|
|
|
159
222
|
}
|
|
160
223
|
/** Extract the coverage requirements from the vendored lexicons. */
|
|
161
224
|
declare function coverageRequirements(docs?: LexiconDoc[]): CoverageRequirement[];
|
|
162
|
-
declare function coverageReport(catalog: Check[], docs?: LexiconDoc[]): CoverageReport;
|
|
225
|
+
declare function coverageReport(catalog: Check[], docs?: LexiconDoc[], exemptions?: CoverageExemption[]): CoverageReport;
|
|
163
226
|
//#endregion
|
|
164
227
|
//#region src/index.d.ts
|
|
165
228
|
/**
|
|
166
229
|
* A catalog for transports that cannot run the crypto-bound checks (the
|
|
167
230
|
* browser). The base checks run anonymously; the operator checks — writes,
|
|
168
|
-
*
|
|
169
|
-
* the harness supplies an operator session (an OAuth
|
|
170
|
-
* checker). Only the checks that genuinely need the
|
|
171
|
-
* foreign identities are metadata stubs, reported as
|
|
172
|
-
* testable here") — listed rather than omitted, so a green
|
|
173
|
-
* silently reads as fuller conformance than it proved.
|
|
231
|
+
* space management, blobs, credential issuance and presentation — are real
|
|
232
|
+
* and run whenever the harness supplies an operator session (an OAuth
|
|
233
|
+
* sign-in in the web checker). Only the checks that genuinely need the
|
|
234
|
+
* alpha crypto libs or foreign identities are metadata stubs, reported as
|
|
235
|
+
* skipped ("not testable here") — listed rather than omitted, so a green
|
|
236
|
+
* run never silently reads as fuller conformance than it proved.
|
|
174
237
|
*/
|
|
175
238
|
declare const browserCatalog: Check[];
|
|
176
239
|
//#endregion
|
|
177
|
-
export { type Capability, type CatalogFilter, type Check, type CheckContext, type CheckDescriptor, type CheckOutcome, type CheckResult, type CheckStatus, type Citation, type CoverageReport, type CoverageRequirement, type Credential, type
|
|
240
|
+
export { ALPHA_BUILD, COMMIT_MAC_PROFILE, type Capability, type CatalogFilter, type Check, type CheckContext, type CheckDescriptor, type CheckOutcome, type CheckResult, type CheckStatus, type Citation, type CoverageExemption, type CoverageReport, type CoverageRequirement, type Credential, type CredentialCallOptions, type CredentialKey, type CredentialResult, type CredentialSigOptions, DEFAULT_PLC_DIRECTORY, type DidDocument, type FilteredCatalog, type HarnessIdentity, type IdentityProvider, type InboxDelivery, type LexiconDoc, MAC_COVERED_HEADER, type MacProfile, PROPOSAL_COMMIT, type Policy, type ProbeSpace, RECORD_MAC_PROFILE, type RunOptions, type RunReport, SPACE_CREDENTIAL_SCHEME, type SyncerInbox, type SyncerInboxHandle, type Target, type Tier, type XrpcResult, baseChecks, browserCatalog, buildCatalog, coverageExemptions, coverageReport, coverageRequirements, createCredentialKey, createProbeSpace, createSyncerInbox, credentialCall, credentialGet, credentialSigMembers, cryptoCheckDescriptors, defineCheck, deleteProbeSpace, descriptorToStub, didDocumentUrl, encapsulate, fail, filterCatalog, formatMacRequest, isP256DidKey, knownChangesets, knownProposalAnchors, lexicons, managedspace, memberspace, obtainCredentialViaDelegation, obtainPublicCredential, operatorChecks, operatorCreateRecord, operatorHeaders, pass, personalspace, publicRead, renderReport, requestCredential, resolveDidDocument, runChecks, serviceEndpoint, spaceSigHeaders, verificationMethodDidKey, xrpcGet, xrpcPost, xrpcUrl };
|
|
178
241
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/registry.ts","../src/
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/registry.ts","../src/did.ts","../src/descriptors.ts","../src/alpha.ts","../src/changesets.ts","../src/proposal.ts","../src/runner.ts","../src/lexicons.ts","../src/coverage.ts","../src/index.ts"],"sourcesContent":[],"mappings":"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"}
|
package/dist/index.js
CHANGED
|
@@ -1,107 +1,129 @@
|
|
|
1
|
-
import { S as
|
|
2
|
-
import { a as
|
|
1
|
+
import { B as SPACE_CREDENTIAL_SCHEME, C as operatorCreateRecord, D as requestCredential, E as publicRead, F as serviceEndpoint, G as isP256DidKey, H as credentialSigMembers, I as verificationMethodDidKey, K as spaceSigHeaders, L as COMMIT_MAC_PROFILE, M as DEFAULT_PLC_DIRECTORY, N as didDocumentUrl, P as resolveDidDocument, R as MAC_COVERED_HEADER, S as obtainPublicCredential, U as encapsulate, V as createCredentialKey, W as formatMacRequest, a as operatorChecks, at as xrpcGet, ct as xrpcUrl, dt as filterCatalog, ft as fail, g as deleteProbeSpace, h as credentialGet, i as createSyncerInbox, it as operatorHeaders, lt as buildCatalog, m as credentialCall, ot as xrpcPost, p as createProbeSpace, pt as pass, r as descriptorToStub, t as cryptoCheckDescriptors, u as baseChecks, ut as defineCheck, v as managedspace, w as personalspace, x as obtainCredentialViaDelegation, y as memberspace, z as RECORD_MAC_PROFILE } from "./descriptors-YEk3XoDL.js";
|
|
2
|
+
import { a as renderReport, i as lexicons, n as coverageReport, o as runChecks, r as coverageRequirements, s as ALPHA_BUILD, t as coverageExemptions } from "./coverage-zCMup3Nb.js";
|
|
3
3
|
|
|
4
|
-
//#region src/
|
|
5
|
-
const L = (ref) => ({
|
|
6
|
-
source: "lexicon",
|
|
7
|
-
ref
|
|
8
|
-
});
|
|
4
|
+
//#region src/changesets.ts
|
|
9
5
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
6
|
+
* The upstream changesets the suite may cite, from bluesky-social/atproto
|
|
7
|
+
* `permissioned-data-alpha` at the vendored commit (see
|
|
8
|
+
* ../lexicons/MANIFEST.json). For alpha mechanics no lexicon can express —
|
|
9
|
+
* the credential HTTP signature, the MAC exchange, key discovery — a
|
|
10
|
+
* changeset is the alpha's only normative prose. Citations are checked
|
|
11
|
+
* against this list, the same typo guard lexicon citations get; re-vendor
|
|
12
|
+
* it alongside the lexicons.
|
|
12
13
|
*/
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
title: "A delegation token addressed to another host is refused",
|
|
41
|
-
tier: "must",
|
|
42
|
-
needs: ["operator", "identities"],
|
|
43
|
-
citations: [L("com.atproto.space.getSpaceCredential@error:InvalidDelegationToken")],
|
|
44
|
-
destructive: true
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
id: "sync.oplog-folds-to-commit",
|
|
48
|
-
title: "Folding the oplog reproduces the commit set-hash",
|
|
49
|
-
tier: "must",
|
|
50
|
-
needs: ["operator"],
|
|
51
|
-
citations: [L("com.atproto.space.listRepoOps"), L("com.atproto.space.defs")],
|
|
52
|
-
destructive: true
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
id: "host.member-list-gates",
|
|
56
|
-
title: "member-list policy refuses a non-member and admits a member",
|
|
57
|
-
tier: "must",
|
|
58
|
-
needs: ["operator", "identities"],
|
|
59
|
-
citations: [L("com.atproto.space.getSpaceCredential@error:UserNotAuthorized"), L("com.atproto.simplespace.addMember")],
|
|
60
|
-
destructive: true
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
id: "host.delete-space-tombstone",
|
|
64
|
-
title: "After deleteSpace, getSpaceCredential answers SpaceDeleted",
|
|
65
|
-
tier: "must",
|
|
66
|
-
needs: ["operator", "identities"],
|
|
67
|
-
citations: [L("com.atproto.simplespace.deleteSpace"), L("com.atproto.space.getSpaceCredential@error:SpaceDeleted")],
|
|
68
|
-
destructive: true
|
|
69
|
-
}
|
|
14
|
+
const knownChangesets = [
|
|
15
|
+
"alpha-kem-key-backfill",
|
|
16
|
+
"alpha-space-uris",
|
|
17
|
+
"baseline-space-policies",
|
|
18
|
+
"brave-spaces-exist",
|
|
19
|
+
"clear-spaces-sweep",
|
|
20
|
+
"funky-dryers-draw",
|
|
21
|
+
"neat-guests-pull",
|
|
22
|
+
"olive-crabs-fly",
|
|
23
|
+
"open-spaces-greet",
|
|
24
|
+
"patient-managers-answer",
|
|
25
|
+
"pds-space-uri-migration",
|
|
26
|
+
"plain-keys-resolve",
|
|
27
|
+
"quiet-spaces-mac",
|
|
28
|
+
"quiet-writers-leave",
|
|
29
|
+
"removed-writers-notify",
|
|
30
|
+
"shared-writer-defs",
|
|
31
|
+
"small-hornets-jam",
|
|
32
|
+
"space-hpke-secret-export",
|
|
33
|
+
"space-mac-http-signatures",
|
|
34
|
+
"space-takedown-parity",
|
|
35
|
+
"spaces-sdk-shape",
|
|
36
|
+
"spaces-syntax",
|
|
37
|
+
"star-spaces-shine",
|
|
38
|
+
"sturdy-spaces-depart",
|
|
39
|
+
"tidy-spaces-settle",
|
|
40
|
+
"webhook-syncers-register"
|
|
70
41
|
];
|
|
42
|
+
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/proposal.ts
|
|
71
45
|
/**
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
* passing.
|
|
46
|
+
* The section anchors of proposal 0016 (Atproto Spaces), as combined in
|
|
47
|
+
* bluesky-social/proposals#143 at b54ec685 — the spec this alpha
|
|
48
|
+
* implements. A `proposal` citation's ref is `0016#<anchor>`, checked
|
|
49
|
+
* against this list (the typo guard lexicon and changeset citations get).
|
|
50
|
+
* Regenerate it from the proposal's headings when the alpha moves.
|
|
78
51
|
*/
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
52
|
+
const PROPOSAL_COMMIT = "b54ec6853bab77edd4fd373804a480633094b324";
|
|
53
|
+
const knownProposalAnchors = [
|
|
54
|
+
"introduction",
|
|
55
|
+
"relationship-to-public-broadcast",
|
|
56
|
+
"terminology",
|
|
57
|
+
"spaces",
|
|
58
|
+
"addressing",
|
|
59
|
+
"space-authority",
|
|
60
|
+
"space-type",
|
|
61
|
+
"space-type-declarations",
|
|
62
|
+
"space-key-skey",
|
|
63
|
+
"access-control",
|
|
64
|
+
"credential-key-binding",
|
|
65
|
+
"delegation-token",
|
|
66
|
+
"client-attestation",
|
|
67
|
+
"space-credential",
|
|
68
|
+
"authorizing-space-sync",
|
|
69
|
+
"presenting-a-space-credential",
|
|
70
|
+
"credential-flow",
|
|
71
|
+
"credential-expiration-and-revocation",
|
|
72
|
+
"space-repos",
|
|
73
|
+
"repo-lifecycle",
|
|
74
|
+
"commit-digest",
|
|
75
|
+
"commit-authenticity",
|
|
76
|
+
"kem-key",
|
|
77
|
+
"shared-secret",
|
|
78
|
+
"requesting-a-mac",
|
|
79
|
+
"commit-mac",
|
|
80
|
+
"record-mac",
|
|
81
|
+
"repo-serialization",
|
|
82
|
+
"archive-limits",
|
|
83
|
+
"sync",
|
|
84
|
+
"incremental-sync",
|
|
85
|
+
"full-state-recovery",
|
|
86
|
+
"blob-sync",
|
|
87
|
+
"write-notifications",
|
|
88
|
+
"registering-for-notifications",
|
|
89
|
+
"the-sync-boundary-writer-set",
|
|
90
|
+
"space-deletion",
|
|
91
|
+
"moderation",
|
|
92
|
+
"label-records",
|
|
93
|
+
"takedowns",
|
|
94
|
+
"oauth-scopes",
|
|
95
|
+
"read-access",
|
|
96
|
+
"matching",
|
|
97
|
+
"examples",
|
|
98
|
+
"consent",
|
|
99
|
+
"permission-sets",
|
|
100
|
+
"xrpc-api",
|
|
101
|
+
"space-policy",
|
|
102
|
+
"baseline-policies",
|
|
103
|
+
"publishing-to-readers",
|
|
104
|
+
"personalspace",
|
|
105
|
+
"memberspace",
|
|
106
|
+
"managedspace",
|
|
107
|
+
"account-migration",
|
|
108
|
+
"space-meta-archive",
|
|
109
|
+
"considerations",
|
|
110
|
+
"access-control-in-applications",
|
|
111
|
+
"scaling",
|
|
112
|
+
"account-lifecycle",
|
|
113
|
+
"appendix-shared-secret-without-hpke"
|
|
114
|
+
];
|
|
93
115
|
|
|
94
116
|
//#endregion
|
|
95
117
|
//#region src/index.ts
|
|
96
118
|
/**
|
|
97
119
|
* A catalog for transports that cannot run the crypto-bound checks (the
|
|
98
120
|
* browser). The base checks run anonymously; the operator checks — writes,
|
|
99
|
-
*
|
|
100
|
-
* the harness supplies an operator session (an OAuth
|
|
101
|
-
* checker). Only the checks that genuinely need the
|
|
102
|
-
* foreign identities are metadata stubs, reported as
|
|
103
|
-
* testable here") — listed rather than omitted, so a green
|
|
104
|
-
* silently reads as fuller conformance than it proved.
|
|
121
|
+
* space management, blobs, credential issuance and presentation — are real
|
|
122
|
+
* and run whenever the harness supplies an operator session (an OAuth
|
|
123
|
+
* sign-in in the web checker). Only the checks that genuinely need the
|
|
124
|
+
* alpha crypto libs or foreign identities are metadata stubs, reported as
|
|
125
|
+
* skipped ("not testable here") — listed rather than omitted, so a green
|
|
126
|
+
* run never silently reads as fuller conformance than it proved.
|
|
105
127
|
*/
|
|
106
128
|
const browserCatalog = buildCatalog([
|
|
107
129
|
...baseChecks,
|
|
@@ -110,5 +132,5 @@ const browserCatalog = buildCatalog([
|
|
|
110
132
|
]);
|
|
111
133
|
|
|
112
134
|
//#endregion
|
|
113
|
-
export { baseChecks, browserCatalog, buildCatalog, coverageReport, coverageRequirements,
|
|
135
|
+
export { ALPHA_BUILD, COMMIT_MAC_PROFILE, DEFAULT_PLC_DIRECTORY, MAC_COVERED_HEADER, PROPOSAL_COMMIT, RECORD_MAC_PROFILE, SPACE_CREDENTIAL_SCHEME, baseChecks, browserCatalog, buildCatalog, coverageExemptions, coverageReport, coverageRequirements, createCredentialKey, createProbeSpace, createSyncerInbox, credentialCall, credentialGet, credentialSigMembers, cryptoCheckDescriptors, defineCheck, deleteProbeSpace, descriptorToStub, didDocumentUrl, encapsulate, fail, filterCatalog, formatMacRequest, isP256DidKey, knownChangesets, knownProposalAnchors, lexicons, managedspace, memberspace, obtainCredentialViaDelegation, obtainPublicCredential, operatorChecks, operatorCreateRecord, operatorHeaders, pass, personalspace, publicRead, renderReport, requestCredential, resolveDidDocument, runChecks, serviceEndpoint, spaceSigHeaders, verificationMethodDidKey, xrpcGet, xrpcPost, xrpcUrl };
|
|
114
136
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["
|
|
1
|
+
{"version":3,"file":"index.js","names":["knownChangesets: readonly string[]","knownProposalAnchors: readonly string[]","build","base","operator","descriptors","stub"],"sources":["../src/changesets.ts","../src/proposal.ts","../src/index.ts"],"sourcesContent":["/**\n * The upstream changesets the suite may cite, from bluesky-social/atproto\n * `permissioned-data-alpha` at the vendored commit (see\n * ../lexicons/MANIFEST.json). For alpha mechanics no lexicon can express —\n * the credential HTTP signature, the MAC exchange, key discovery — a\n * changeset is the alpha's only normative prose. Citations are checked\n * against this list, the same typo guard lexicon citations get; re-vendor\n * it alongside the lexicons.\n */\nexport const knownChangesets: readonly string[] = [\n\t\"alpha-kem-key-backfill\",\n\t\"alpha-space-uris\",\n\t\"baseline-space-policies\",\n\t\"brave-spaces-exist\",\n\t\"clear-spaces-sweep\",\n\t\"funky-dryers-draw\",\n\t\"neat-guests-pull\",\n\t\"olive-crabs-fly\",\n\t\"open-spaces-greet\",\n\t\"patient-managers-answer\",\n\t\"pds-space-uri-migration\",\n\t\"plain-keys-resolve\",\n\t\"quiet-spaces-mac\",\n\t\"quiet-writers-leave\",\n\t\"removed-writers-notify\",\n\t\"shared-writer-defs\",\n\t\"small-hornets-jam\",\n\t\"space-hpke-secret-export\",\n\t\"space-mac-http-signatures\",\n\t\"space-takedown-parity\",\n\t\"spaces-sdk-shape\",\n\t\"spaces-syntax\",\n\t\"star-spaces-shine\",\n\t\"sturdy-spaces-depart\",\n\t\"tidy-spaces-settle\",\n\t\"webhook-syncers-register\",\n];\n","/**\n * The section anchors of proposal 0016 (Atproto Spaces), as combined in\n * bluesky-social/proposals#143 at b54ec685 — the spec this alpha\n * implements. A `proposal` citation's ref is `0016#<anchor>`, checked\n * against this list (the typo guard lexicon and changeset citations get).\n * Regenerate it from the proposal's headings when the alpha moves.\n */\nexport const PROPOSAL_COMMIT = \"b54ec6853bab77edd4fd373804a480633094b324\";\n\nexport const knownProposalAnchors: readonly string[] = [\n\t\"introduction\",\n\t\"relationship-to-public-broadcast\",\n\t\"terminology\",\n\t\"spaces\",\n\t\"addressing\",\n\t\"space-authority\",\n\t\"space-type\",\n\t\"space-type-declarations\",\n\t\"space-key-skey\",\n\t\"access-control\",\n\t\"credential-key-binding\",\n\t\"delegation-token\",\n\t\"client-attestation\",\n\t\"space-credential\",\n\t\"authorizing-space-sync\",\n\t\"presenting-a-space-credential\",\n\t\"credential-flow\",\n\t\"credential-expiration-and-revocation\",\n\t\"space-repos\",\n\t\"repo-lifecycle\",\n\t\"commit-digest\",\n\t\"commit-authenticity\",\n\t\"kem-key\",\n\t\"shared-secret\",\n\t\"requesting-a-mac\",\n\t\"commit-mac\",\n\t\"record-mac\",\n\t\"repo-serialization\",\n\t\"archive-limits\",\n\t\"sync\",\n\t\"incremental-sync\",\n\t\"full-state-recovery\",\n\t\"blob-sync\",\n\t\"write-notifications\",\n\t\"registering-for-notifications\",\n\t\"the-sync-boundary-writer-set\",\n\t\"space-deletion\",\n\t\"moderation\",\n\t\"label-records\",\n\t\"takedowns\",\n\t\"oauth-scopes\",\n\t\"read-access\",\n\t\"matching\",\n\t\"examples\",\n\t\"consent\",\n\t\"permission-sets\",\n\t\"xrpc-api\",\n\t\"space-policy\",\n\t\"baseline-policies\",\n\t\"publishing-to-readers\",\n\t\"personalspace\",\n\t\"memberspace\",\n\t\"managedspace\",\n\t\"account-migration\",\n\t\"space-meta-archive\",\n\t\"considerations\",\n\t\"access-control-in-applications\",\n\t\"scaling\",\n\t\"account-lifecycle\",\n\t\"appendix-shared-secret-without-hpke\",\n];\n","/**\n * @getcirrus/space-conformance – black-box conformance suite for atproto\n * spaces implementations (alpha).\n *\n * One check model, multiple runners: the same tiered, citation-carrying\n * checks run in-process against a local implementation, from a CLI against\n * a live host, or inside a web checker. `must` checks cite specified\n * behaviour; `should` checks are calibrated against the reference\n * implementation; `info` checks never fail anyone.\n */\n\nexport { pass, fail } from \"./model.js\";\nexport type {\n\tCapability,\n\tCheck,\n\tCheckContext,\n\tCheckOutcome,\n\tCheckResult,\n\tCheckStatus,\n\tCitation,\n\tHarnessIdentity,\n\tIdentityProvider,\n\tInboxDelivery,\n\tSyncerInbox,\n\tTarget,\n\tTier,\n} from \"./model.js\";\n\nexport { buildCatalog, defineCheck, filterCatalog } from \"./registry.js\";\nexport type { CatalogFilter, FilteredCatalog } from \"./registry.js\";\n\nexport { xrpcGet, xrpcPost, xrpcUrl, operatorHeaders } from \"./http.js\";\nexport type { XrpcResult } from \"./http.js\";\n\nexport { baseChecks } from \"./checks/base.js\";\nexport {\n\toperatorChecks,\n\tcreateProbeSpace,\n\tdeleteProbeSpace,\n\toperatorCreateRecord,\n\tobtainCredentialViaDelegation,\n\tobtainPublicCredential,\n\trequestCredential,\n\tcredentialCall,\n\tcredentialGet,\n\tmemberspace,\n\tpersonalspace,\n\tmanagedspace,\n\tpublicRead,\n} from \"./checks/operator.js\";\nexport type {\n\tCredential,\n\tCredentialCallOptions,\n\tCredentialResult,\n\tPolicy,\n\tProbeSpace,\n} from \"./checks/operator.js\";\n\nexport {\n\tcreateCredentialKey,\n\tcredentialSigMembers,\n\tencapsulate,\n\tformatMacRequest,\n\tisP256DidKey,\n\tspaceSigHeaders,\n\tCOMMIT_MAC_PROFILE,\n\tRECORD_MAC_PROFILE,\n\tMAC_COVERED_HEADER,\n\tSPACE_CREDENTIAL_SCHEME,\n} from \"./space-auth.js\";\nexport type {\n\tCredentialKey,\n\tCredentialSigOptions,\n\tMacProfile,\n} from \"./space-auth.js\";\nexport { createSyncerInbox } from \"./inbox.js\";\nexport type { SyncerInboxHandle } from \"./inbox.js\";\nexport {\n\tDEFAULT_PLC_DIRECTORY,\n\tdidDocumentUrl,\n\tresolveDidDocument,\n\tserviceEndpoint,\n\tverificationMethodDidKey,\n} from \"./did.js\";\nexport type { DidDocument } from \"./did.js\";\n\nexport { cryptoCheckDescriptors, descriptorToStub } from \"./descriptors.js\";\nexport type { CheckDescriptor } from \"./descriptors.js\";\n\nexport { ALPHA_BUILD } from \"./alpha.js\";\nexport { knownChangesets } from \"./changesets.js\";\nexport { knownProposalAnchors, PROPOSAL_COMMIT } from \"./proposal.js\";\n\nimport { baseChecks as base } from \"./checks/base.js\";\nimport { operatorChecks as operator } from \"./checks/operator.js\";\nimport { buildCatalog as build } from \"./registry.js\";\nimport {\n\tcryptoCheckDescriptors as descriptors,\n\tdescriptorToStub as stub,\n} from \"./descriptors.js\";\n\n/**\n * A catalog for transports that cannot run the crypto-bound checks (the\n * browser). The base checks run anonymously; the operator checks — writes,\n * space management, blobs, credential issuance and presentation — are real\n * and run whenever the harness supplies an operator session (an OAuth\n * sign-in in the web checker). Only the checks that genuinely need the\n * alpha crypto libs or foreign identities are metadata stubs, reported as\n * skipped (\"not testable here\") — listed rather than omitted, so a green\n * run never silently reads as fuller conformance than it proved.\n */\nexport const browserCatalog = build([\n\t...base,\n\t...operator,\n\t...descriptors.map(stub),\n]);\n\nexport { renderReport, runChecks } from \"./runner.js\";\nexport type { RunOptions, RunReport } from \"./runner.js\";\n\nexport {\n\tcoverageExemptions,\n\tcoverageReport,\n\tcoverageRequirements,\n} from \"./coverage.js\";\nexport type {\n\tCoverageExemption,\n\tCoverageReport,\n\tCoverageRequirement,\n} from \"./coverage.js\";\n\nexport { lexicons } from \"./lexicons.js\";\nexport type { LexiconDoc } from \"./lexicons.js\";\n"],"mappings":";;;;;;;;;;;;;AASA,MAAaA,kBAAqC;CACjD;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;;;;;;;;;;;AC7BD,MAAa,kBAAkB;AAE/B,MAAaC,uBAA0C;CACtD;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;;;;;;;;;;;;;;ACyCD,MAAa,iBAAiBC,aAAM;CACnC,GAAGC;CACH,GAAGC;CACH,GAAGC,uBAAY,IAAIC,iBAAK;CACxB,CAAC"}
|