@getcirrus/space-conformance 0.0.0 → 0.2.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 +26 -18
- package/dist/cli.js.map +1 -1
- package/dist/coverage-cK1NBo-P.js +2250 -0
- package/dist/coverage-cK1NBo-P.js.map +1 -0
- package/dist/descriptors-BUCV_BuG.js +4428 -0
- package/dist/descriptors-BUCV_BuG.js.map +1 -0
- package/dist/full-CKsHg6ox.js +852 -0
- package/dist/full-CKsHg6ox.js.map +1 -0
- package/dist/full.d.ts +44 -17
- package/dist/full.d.ts.map +1 -1
- package/dist/full.js +3 -3
- package/dist/index.d.ts +90 -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 +4 -4
- 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 -16
- 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 +44 -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 +11 -11
- 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/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-BUCV_BuG.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-cK1NBo-P.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 (beta).\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"}
|
package/lexicons/MANIFEST.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"source": "https://github.com/bluesky-social/atproto",
|
|
3
|
-
"branch": "
|
|
4
|
-
"commit": "
|
|
5
|
-
"vendoredAt": "2026-
|
|
6
|
-
"note": "Vendored verbatim from lexicons/com/atproto/{space,
|
|
3
|
+
"branch": "main",
|
|
4
|
+
"commit": "209184efa",
|
|
5
|
+
"vendoredAt": "2026-12-01",
|
|
6
|
+
"note": "Vendored verbatim from lexicons/com/atproto/{space,memberspace,personalspace,managedspace} by scripts/vendor-lexicons.mjs at permissioned-data-alpha@1f510f8e3, then brought to the spaces beta (@atproto/space 0.1.0, merged to main as 209184efa): the only lexicon change was two descriptions on `data`, checked against the documents published in @atproto/api 0.32.11. Changeset citations still name the alpha branch's changesets. A diff here identifies affected checks via their citations."
|
|
7
7
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "com.atproto.managedspace.checkAccess",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "query",
|
|
7
|
+
"description": "Check an account's read and write access to a managed space. Called by the space host, implemented by the space's managing app. Requires service auth.",
|
|
8
|
+
"parameters": {
|
|
9
|
+
"type": "params",
|
|
10
|
+
"required": ["space"],
|
|
11
|
+
"properties": {
|
|
12
|
+
"space": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"format": "space-ref"
|
|
15
|
+
},
|
|
16
|
+
"repo": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"format": "did"
|
|
19
|
+
},
|
|
20
|
+
"clientId": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"format": "uri",
|
|
23
|
+
"description": "OAuth client ID of the requesting app, if attested."
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"output": {
|
|
28
|
+
"encoding": "application/json",
|
|
29
|
+
"schema": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"required": ["read", "write"],
|
|
32
|
+
"properties": {
|
|
33
|
+
"read": {
|
|
34
|
+
"type": "boolean"
|
|
35
|
+
},
|
|
36
|
+
"write": {
|
|
37
|
+
"type": "boolean"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "com.atproto.managedspace.policy",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"description": "Space policy that delegates access decisions to an external app through checkAccess.",
|
|
8
|
+
"required": ["managingApp"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"managingApp": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "The `did#serviceId` reference of the managing app."
|
|
13
|
+
},
|
|
14
|
+
"publishPolicy": {
|
|
15
|
+
"type": "boolean",
|
|
16
|
+
"default": false,
|
|
17
|
+
"description": "Publish the policy as a com.atproto.space.policy record in the space."
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "com.atproto.memberspace.defs",
|
|
4
|
+
"defs": {
|
|
5
|
+
"member": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["did", "read", "write"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"did": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"format": "did"
|
|
12
|
+
},
|
|
13
|
+
"read": {
|
|
14
|
+
"type": "boolean"
|
|
15
|
+
},
|
|
16
|
+
"write": {
|
|
17
|
+
"type": "boolean"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -1,25 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"lexicon": 1,
|
|
3
|
-
"id": "com.atproto.
|
|
3
|
+
"id": "com.atproto.memberspace.listMembers",
|
|
4
4
|
"defs": {
|
|
5
5
|
"main": {
|
|
6
6
|
"type": "query",
|
|
7
|
-
"description": "List the members
|
|
7
|
+
"description": "List the members of a space with a memberspace policy. Requires auth as the space authority, implemented by PDS.",
|
|
8
8
|
"parameters": {
|
|
9
9
|
"type": "params",
|
|
10
10
|
"required": ["space"],
|
|
11
11
|
"properties": {
|
|
12
12
|
"space": {
|
|
13
13
|
"type": "string",
|
|
14
|
-
"format": "space-ref"
|
|
15
|
-
"description": "Reference to the space."
|
|
14
|
+
"format": "space-ref"
|
|
16
15
|
},
|
|
17
16
|
"limit": {
|
|
18
17
|
"type": "integer",
|
|
19
18
|
"minimum": 1,
|
|
20
19
|
"maximum": 1000,
|
|
21
|
-
"default": 100
|
|
22
|
-
"description": "Maximum number of members to return."
|
|
20
|
+
"default": 100
|
|
23
21
|
},
|
|
24
22
|
"cursor": {
|
|
25
23
|
"type": "string"
|
|
@@ -39,7 +37,7 @@
|
|
|
39
37
|
"type": "array",
|
|
40
38
|
"items": {
|
|
41
39
|
"type": "ref",
|
|
42
|
-
"ref": "#member"
|
|
40
|
+
"ref": "com.atproto.memberspace.defs#member"
|
|
43
41
|
}
|
|
44
42
|
}
|
|
45
43
|
}
|
|
@@ -48,18 +46,18 @@
|
|
|
48
46
|
"errors": [
|
|
49
47
|
{
|
|
50
48
|
"name": "SpaceNotFound"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "NotAuthorized"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "PolicyMismatch",
|
|
55
|
+
"description": "The space does not have a memberspace policy."
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "InvalidCursor"
|
|
51
59
|
}
|
|
52
60
|
]
|
|
53
|
-
},
|
|
54
|
-
"member": {
|
|
55
|
-
"type": "object",
|
|
56
|
-
"required": ["did"],
|
|
57
|
-
"properties": {
|
|
58
|
-
"did": {
|
|
59
|
-
"type": "string",
|
|
60
|
-
"format": "did"
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
61
|
}
|
|
64
62
|
}
|
|
65
63
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "com.atproto.memberspace.member",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "record",
|
|
7
|
+
"description": "A published entry in a space's member list, keyed by the member's DID. Only authoritative in the space authority's repo.",
|
|
8
|
+
"key": "any",
|
|
9
|
+
"record": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"required": ["read", "write"],
|
|
12
|
+
"properties": {
|
|
13
|
+
"read": {
|
|
14
|
+
"type": "boolean"
|
|
15
|
+
},
|
|
16
|
+
"write": {
|
|
17
|
+
"type": "boolean"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "com.atproto.memberspace.policy",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"description": "Space policy that grants access based on a member list.",
|
|
8
|
+
"properties": {
|
|
9
|
+
"publicRead": {
|
|
10
|
+
"type": "boolean",
|
|
11
|
+
"default": false,
|
|
12
|
+
"description": "If true, anyone may read the space. Otherwise, only members with read access."
|
|
13
|
+
},
|
|
14
|
+
"publicWrite": {
|
|
15
|
+
"type": "boolean",
|
|
16
|
+
"default": false,
|
|
17
|
+
"description": "If true, any account's writes are tracked in the writer set, except members without write access. Otherwise, only members with write access."
|
|
18
|
+
},
|
|
19
|
+
"allowedApps": {
|
|
20
|
+
"type": "array",
|
|
21
|
+
"description": "If set, only these apps (by OAuth client ID) may read the space.",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"format": "uri"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"publishPolicy": {
|
|
28
|
+
"type": "boolean",
|
|
29
|
+
"default": false,
|
|
30
|
+
"description": "Publish the policy as a com.atproto.space.policy record in the space."
|
|
31
|
+
},
|
|
32
|
+
"publishMembers": {
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"default": false,
|
|
35
|
+
"description": "Publish the member list as com.atproto.memberspace.member records in the space."
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "com.atproto.memberspace.putMembers",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "procedure",
|
|
7
|
+
"description": "Add members to a space, or update existing members' access, in a single commit. Requires auth as the space authority, implemented by PDS.",
|
|
8
|
+
"input": {
|
|
9
|
+
"encoding": "application/json",
|
|
10
|
+
"schema": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"required": ["space", "members"],
|
|
13
|
+
"properties": {
|
|
14
|
+
"space": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"format": "space-ref"
|
|
17
|
+
},
|
|
18
|
+
"members": {
|
|
19
|
+
"type": "array",
|
|
20
|
+
"maxLength": 100,
|
|
21
|
+
"items": {
|
|
22
|
+
"type": "ref",
|
|
23
|
+
"ref": "com.atproto.memberspace.defs#member"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"errors": [
|
|
30
|
+
{
|
|
31
|
+
"name": "SpaceNotFound"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "NotAuthorized"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "PolicyMismatch",
|
|
38
|
+
"description": "The space does not have a memberspace policy."
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "com.atproto.memberspace.removeMembers",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "procedure",
|
|
7
|
+
"description": "Remove members from a space in a single commit. DIDs that are not members are ignored. Requires auth as the space authority, implemented by PDS.",
|
|
8
|
+
"input": {
|
|
9
|
+
"encoding": "application/json",
|
|
10
|
+
"schema": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"required": ["space", "dids"],
|
|
13
|
+
"properties": {
|
|
14
|
+
"space": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"format": "space-ref"
|
|
17
|
+
},
|
|
18
|
+
"dids": {
|
|
19
|
+
"type": "array",
|
|
20
|
+
"maxLength": 100,
|
|
21
|
+
"items": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"format": "did"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"errors": [
|
|
30
|
+
{
|
|
31
|
+
"name": "SpaceNotFound"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "NotAuthorized"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "PolicyMismatch",
|
|
38
|
+
"description": "The space does not have a memberspace policy."
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "com.atproto.personalspace.policy",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"description": "Space policy for personal data that only the space authority and authorized apps can read, such as bookmarks or drafts.",
|
|
8
|
+
"properties": {}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|