@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.
Files changed (80) hide show
  1. package/dist/base-CGsQgOwR.d.ts +472 -0
  2. package/dist/base-CGsQgOwR.d.ts.map +1 -0
  3. package/dist/cli.js +26 -18
  4. package/dist/cli.js.map +1 -1
  5. package/dist/coverage-cK1NBo-P.js +2250 -0
  6. package/dist/coverage-cK1NBo-P.js.map +1 -0
  7. package/dist/descriptors-BUCV_BuG.js +4428 -0
  8. package/dist/descriptors-BUCV_BuG.js.map +1 -0
  9. package/dist/full-CKsHg6ox.js +852 -0
  10. package/dist/full-CKsHg6ox.js.map +1 -0
  11. package/dist/full.d.ts +44 -17
  12. package/dist/full.d.ts.map +1 -1
  13. package/dist/full.js +3 -3
  14. package/dist/index.d.ts +90 -28
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +115 -93
  17. package/dist/index.js.map +1 -1
  18. package/lexicons/MANIFEST.json +4 -4
  19. package/lexicons/managedspace/checkAccess.json +44 -0
  20. package/lexicons/managedspace/policy.json +22 -0
  21. package/lexicons/memberspace/defs.json +22 -0
  22. package/lexicons/{simplespace → memberspace}/listMembers.json +15 -17
  23. package/lexicons/memberspace/member.json +23 -0
  24. package/lexicons/memberspace/policy.json +40 -0
  25. package/lexicons/memberspace/putMembers.json +43 -0
  26. package/lexicons/memberspace/removeMembers.json +43 -0
  27. package/lexicons/personalspace/policy.json +11 -0
  28. package/lexicons/space/applyWrites.json +6 -11
  29. package/lexicons/space/authorizeSpaceSync.json +109 -0
  30. package/lexicons/space/clearRecords.json +34 -0
  31. package/lexicons/space/confirmRegistration.json +44 -0
  32. package/lexicons/space/createRecord.json +7 -14
  33. package/lexicons/space/createSpace.json +58 -0
  34. package/lexicons/space/defs.json +61 -16
  35. package/lexicons/space/deleteRecord.json +5 -9
  36. package/lexicons/space/deleteSpace.json +31 -0
  37. package/lexicons/space/exportSpaceMeta.json +31 -0
  38. package/lexicons/space/getBlob.json +4 -7
  39. package/lexicons/space/getDelegationToken.json +3 -5
  40. package/lexicons/space/getLatestCommit.json +8 -7
  41. package/lexicons/space/getRecord.json +9 -9
  42. package/lexicons/space/getRepo.json +8 -11
  43. package/lexicons/space/getSpace.json +43 -0
  44. package/lexicons/space/importRepo.json +27 -0
  45. package/lexicons/space/importSpaceMeta.json +25 -0
  46. package/lexicons/space/listBlobs.json +3 -10
  47. package/lexicons/space/listRecords.json +10 -16
  48. package/lexicons/space/listRepoOps.json +23 -23
  49. package/lexicons/space/listSpaces.json +30 -14
  50. package/lexicons/space/listWriters.json +66 -0
  51. package/lexicons/space/notifyCredentialsRevoked.json +30 -0
  52. package/lexicons/space/notifyRepoUpdate.json +44 -0
  53. package/lexicons/space/notifySpaceUpdate.json +53 -0
  54. package/lexicons/space/policy.json +26 -0
  55. package/lexicons/space/putRecord.json +7 -14
  56. package/lexicons/space/removeWriter.json +35 -0
  57. package/lexicons/space/updateSpace.json +43 -0
  58. package/package.json +11 -11
  59. package/dist/base-D8a-ZK57.d.ts +0 -249
  60. package/dist/base-D8a-ZK57.d.ts.map +0 -1
  61. package/dist/coverage-DhJZu8P8.js +0 -1914
  62. package/dist/coverage-DhJZu8P8.js.map +0 -1
  63. package/dist/full-D4ufJLcw.js +0 -409
  64. package/dist/full-D4ufJLcw.js.map +0 -1
  65. package/dist/operator-BErXCDow.js +0 -923
  66. package/dist/operator-BErXCDow.js.map +0 -1
  67. package/lexicons/simplespace/addMember.json +0 -37
  68. package/lexicons/simplespace/checkUserAccess.json +0 -43
  69. package/lexicons/simplespace/createSpace.json +0 -74
  70. package/lexicons/simplespace/defs.json +0 -47
  71. package/lexicons/simplespace/deleteSpace.json +0 -32
  72. package/lexicons/simplespace/getSpace.json +0 -53
  73. package/lexicons/simplespace/removeMember.json +0 -37
  74. package/lexicons/simplespace/updateSpace.json +0 -57
  75. package/lexicons/space/getSpaceCredential.json +0 -67
  76. package/lexicons/space/listRepos.json +0 -75
  77. package/lexicons/space/notifySpaceDeleted.json +0 -24
  78. package/lexicons/space/notifyWrite.json +0 -38
  79. package/lexicons/space/registerNotify.json +0 -49
  80. package/lexicons/space/unregisterNotify.json +0 -29
package/dist/index.js CHANGED
@@ -1,107 +1,129 @@
1
- import { S as pass, _ as xrpcUrl, b as filterCatalog, c as operatorCreateRecord, d as createDpopProofJwt, f as baseChecks, g as xrpcPost, h as xrpcGet, i as deleteProbeSpace, l as readCarHeader, m as operatorHeaders, n as createProbeSpace, o as obtainCredentialViaDelegation, r as credentialGet, s as operatorChecks, u as createDpopKey, v as buildCatalog, x as fail, y as defineCheck } from "./operator-BErXCDow.js";
2
- import { a as runChecks, i as renderReport, n as coverageRequirements, r as lexicons, t as coverageReport } from "./coverage-DhJZu8P8.js";
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/descriptors.ts
5
- const L = (ref) => ({
6
- source: "lexicon",
7
- ref
8
- });
4
+ //#region src/changesets.ts
9
5
  /**
10
- * Every crypto-bound check, by metadata. Keep in the same order and with
11
- * the same fields as `cryptoChecks` (enforced by the drift test).
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 cryptoCheckDescriptors = [
14
- {
15
- id: "credential.round-trip",
16
- title: "A member exchanges a delegation token for a credential and reads",
17
- tier: "must",
18
- needs: ["operator", "identities"],
19
- citations: [L("com.atproto.space.getSpaceCredential"), L("com.atproto.space.getRecord")],
20
- destructive: true
21
- },
22
- {
23
- id: "credential.cross-space-refused",
24
- title: "A credential for one space cannot read another",
25
- tier: "must",
26
- needs: ["operator", "identities"],
27
- citations: [L("com.atproto.space.getRecord")],
28
- destructive: true
29
- },
30
- {
31
- id: "delegation.replay-refused",
32
- title: "A delegation token cannot be used twice",
33
- tier: "must",
34
- needs: ["operator", "identities"],
35
- citations: [L("com.atproto.space.getSpaceCredential@error:InvalidDelegationToken")],
36
- destructive: true
37
- },
38
- {
39
- id: "delegation.wrong-audience-refused",
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
- * Turn a descriptor into a listable Check. Its run() is never invoked —
73
- * beyond the descriptor's own needs, the stub declares `alpha-libs` (the
74
- * ability to execute the alpha crypto code), which no browser harness
75
- * provides, so the runner always filters it into `skipped` — but it
76
- * throws if reached, so a mistaken run surfaces loudly rather than
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
- function descriptorToStub(d) {
80
- return {
81
- id: d.id,
82
- title: d.title,
83
- tier: d.tier,
84
- needs: [...d.needs, "alpha-libs"],
85
- citations: d.citations,
86
- ...d.destructive ? { destructive: true } : {},
87
- ...d.slow ? { slow: true } : {},
88
- run: async () => {
89
- throw new Error(`${d.id} is a metadata stub and cannot run in this transport`);
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
- * simplespace, blobs, the self credential flow — are real and run whenever
100
- * the harness supplies an operator session (an OAuth sign-in in the web
101
- * checker). Only the checks that genuinely need the alpha crypto libs or
102
- * foreign identities are metadata stubs, reported as skipped ("not
103
- * testable here") — listed rather than omitted, so a green run never
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, createDpopKey, createDpopProofJwt, createProbeSpace, credentialGet, cryptoCheckDescriptors, defineCheck, deleteProbeSpace, descriptorToStub, fail, filterCatalog, lexicons, obtainCredentialViaDelegation, operatorChecks, operatorCreateRecord, operatorHeaders, pass, readCarHeader, renderReport, runChecks, xrpcGet, xrpcPost, xrpcUrl };
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":["cryptoCheckDescriptors: CheckDescriptor[]","build","base","operator","descriptors","stub"],"sources":["../src/descriptors.ts","../src/index.ts"],"sourcesContent":["/**\n * Dependency-free descriptors of the crypto-bound checks.\n *\n * The browser adapter can't import the real crypto catalog (it pulls the\n * alpha libs and node streams), but it must still *list* those checks so a\n * viewer sees them reported as \"not testable here\" rather than silently\n * omitted — an omitted check reads as conformant, the exact failure this\n * suite exists to prevent.\n *\n * These are metadata only: id, tier, what the check needs. A drift test in\n * the full test suite asserts they match the real `cryptoChecks` exactly,\n * so adding a crypto check without a descriptor fails CI.\n */\n\nimport type { Capability, Check, Citation, Tier } from \"./model.js\";\nimport { pass } from \"./model.js\";\n\nexport interface CheckDescriptor {\n\tid: string;\n\ttitle: string;\n\ttier: Tier;\n\tneeds: Capability[];\n\tcitations: Citation[];\n\tdestructive?: boolean;\n\tslow?: boolean;\n}\n\nconst L = (ref: string): Citation => ({ source: \"lexicon\", ref });\n\n/**\n * Every crypto-bound check, by metadata. Keep in the same order and with\n * the same fields as `cryptoChecks` (enforced by the drift test).\n */\nexport const cryptoCheckDescriptors: CheckDescriptor[] = [\n\t{\n\t\tid: \"credential.round-trip\",\n\t\ttitle: \"A member exchanges a delegation token for a credential and reads\",\n\t\ttier: \"must\",\n\t\tneeds: [\"operator\", \"identities\"],\n\t\tcitations: [\n\t\t\tL(\"com.atproto.space.getSpaceCredential\"),\n\t\t\tL(\"com.atproto.space.getRecord\"),\n\t\t],\n\t\tdestructive: true,\n\t},\n\t{\n\t\tid: \"credential.cross-space-refused\",\n\t\ttitle: \"A credential for one space cannot read another\",\n\t\ttier: \"must\",\n\t\tneeds: [\"operator\", \"identities\"],\n\t\tcitations: [L(\"com.atproto.space.getRecord\")],\n\t\tdestructive: true,\n\t},\n\t{\n\t\tid: \"delegation.replay-refused\",\n\t\ttitle: \"A delegation token cannot be used twice\",\n\t\ttier: \"must\",\n\t\tneeds: [\"operator\", \"identities\"],\n\t\tcitations: [\n\t\t\tL(\"com.atproto.space.getSpaceCredential@error:InvalidDelegationToken\"),\n\t\t],\n\t\tdestructive: true,\n\t},\n\t{\n\t\tid: \"delegation.wrong-audience-refused\",\n\t\ttitle: \"A delegation token addressed to another host is refused\",\n\t\ttier: \"must\",\n\t\tneeds: [\"operator\", \"identities\"],\n\t\tcitations: [\n\t\t\tL(\"com.atproto.space.getSpaceCredential@error:InvalidDelegationToken\"),\n\t\t],\n\t\tdestructive: true,\n\t},\n\t{\n\t\tid: \"sync.oplog-folds-to-commit\",\n\t\ttitle: \"Folding the oplog reproduces the commit set-hash\",\n\t\ttier: \"must\",\n\t\tneeds: [\"operator\"],\n\t\tcitations: [\n\t\t\tL(\"com.atproto.space.listRepoOps\"),\n\t\t\tL(\"com.atproto.space.defs\"),\n\t\t],\n\t\tdestructive: true,\n\t},\n\t{\n\t\tid: \"host.member-list-gates\",\n\t\ttitle: \"member-list policy refuses a non-member and admits a member\",\n\t\ttier: \"must\",\n\t\tneeds: [\"operator\", \"identities\"],\n\t\tcitations: [\n\t\t\tL(\"com.atproto.space.getSpaceCredential@error:UserNotAuthorized\"),\n\t\t\tL(\"com.atproto.simplespace.addMember\"),\n\t\t],\n\t\tdestructive: true,\n\t},\n\t{\n\t\tid: \"host.delete-space-tombstone\",\n\t\ttitle: \"After deleteSpace, getSpaceCredential answers SpaceDeleted\",\n\t\ttier: \"must\",\n\t\tneeds: [\"operator\", \"identities\"],\n\t\tcitations: [\n\t\t\tL(\"com.atproto.simplespace.deleteSpace\"),\n\t\t\tL(\"com.atproto.space.getSpaceCredential@error:SpaceDeleted\"),\n\t\t],\n\t\tdestructive: true,\n\t},\n];\n\n/**\n * Turn a descriptor into a listable Check. Its run() is never invoked —\n * beyond the descriptor's own needs, the stub declares `alpha-libs` (the\n * ability to execute the alpha crypto code), which no browser harness\n * provides, so the runner always filters it into `skipped` — but it\n * throws if reached, so a mistaken run surfaces loudly rather than\n * passing.\n */\nexport function descriptorToStub(d: CheckDescriptor): Check {\n\treturn {\n\t\tid: d.id,\n\t\ttitle: d.title,\n\t\ttier: d.tier,\n\t\tneeds: [...d.needs, \"alpha-libs\"],\n\t\tcitations: d.citations,\n\t\t...(d.destructive ? { destructive: true } : {}),\n\t\t...(d.slow ? { slow: true } : {}),\n\t\trun: async () => {\n\t\t\tthrow new Error(\n\t\t\t\t`${d.id} is a metadata stub and cannot run in this transport`,\n\t\t\t);\n\t\t\t// unreachable; satisfies the return type\n\t\t\treturn pass(\"\");\n\t\t},\n\t};\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 * behavior; `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\tDpopKey,\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\tcredentialGet,\n} from \"./checks/operator.js\";\nexport type { Credential, ProbeSpace } from \"./checks/operator.js\";\n\nexport { createDpopKey, createDpopProofJwt } from \"./dpop.js\";\nexport { readCarHeader } from \"./car.js\";\n\nexport { cryptoCheckDescriptors, descriptorToStub } from \"./descriptors.js\";\nexport type { CheckDescriptor } from \"./descriptors.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 * simplespace, blobs, the self credential flow — are real and run whenever\n * the harness supplies an operator session (an OAuth sign-in in the web\n * checker). Only the checks that genuinely need the alpha crypto libs or\n * foreign identities are metadata stubs, reported as skipped (\"not\n * testable here\") — listed rather than omitted, so a green run never\n * 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 { coverageReport, coverageRequirements } from \"./coverage.js\";\nexport type { CoverageReport, CoverageRequirement } from \"./coverage.js\";\n\nexport { lexicons } from \"./lexicons.js\";\nexport type { LexiconDoc } from \"./lexicons.js\";\n"],"mappings":";;;;AA2BA,MAAM,KAAK,SAA2B;CAAE,QAAQ;CAAW;CAAK;;;;;AAMhE,MAAaA,yBAA4C;CACxD;EACC,IAAI;EACJ,OAAO;EACP,MAAM;EACN,OAAO,CAAC,YAAY,aAAa;EACjC,WAAW,CACV,EAAE,uCAAuC,EACzC,EAAE,8BAA8B,CAChC;EACD,aAAa;EACb;CACD;EACC,IAAI;EACJ,OAAO;EACP,MAAM;EACN,OAAO,CAAC,YAAY,aAAa;EACjC,WAAW,CAAC,EAAE,8BAA8B,CAAC;EAC7C,aAAa;EACb;CACD;EACC,IAAI;EACJ,OAAO;EACP,MAAM;EACN,OAAO,CAAC,YAAY,aAAa;EACjC,WAAW,CACV,EAAE,oEAAoE,CACtE;EACD,aAAa;EACb;CACD;EACC,IAAI;EACJ,OAAO;EACP,MAAM;EACN,OAAO,CAAC,YAAY,aAAa;EACjC,WAAW,CACV,EAAE,oEAAoE,CACtE;EACD,aAAa;EACb;CACD;EACC,IAAI;EACJ,OAAO;EACP,MAAM;EACN,OAAO,CAAC,WAAW;EACnB,WAAW,CACV,EAAE,gCAAgC,EAClC,EAAE,yBAAyB,CAC3B;EACD,aAAa;EACb;CACD;EACC,IAAI;EACJ,OAAO;EACP,MAAM;EACN,OAAO,CAAC,YAAY,aAAa;EACjC,WAAW,CACV,EAAE,+DAA+D,EACjE,EAAE,oCAAoC,CACtC;EACD,aAAa;EACb;CACD;EACC,IAAI;EACJ,OAAO;EACP,MAAM;EACN,OAAO,CAAC,YAAY,aAAa;EACjC,WAAW,CACV,EAAE,sCAAsC,EACxC,EAAE,0DAA0D,CAC5D;EACD,aAAa;EACb;CACD;;;;;;;;;AAUD,SAAgB,iBAAiB,GAA2B;AAC3D,QAAO;EACN,IAAI,EAAE;EACN,OAAO,EAAE;EACT,MAAM,EAAE;EACR,OAAO,CAAC,GAAG,EAAE,OAAO,aAAa;EACjC,WAAW,EAAE;EACb,GAAI,EAAE,cAAc,EAAE,aAAa,MAAM,GAAG,EAAE;EAC9C,GAAI,EAAE,OAAO,EAAE,MAAM,MAAM,GAAG,EAAE;EAChC,KAAK,YAAY;AAChB,SAAM,IAAI,MACT,GAAG,EAAE,GAAG,sDACR;;EAIF;;;;;;;;;;;;;;;AC9DF,MAAa,iBAAiBC,aAAM;CACnC,GAAGC;CACH,GAAGC;CACH,GAAGC,uBAAY,IAAIC,iBAAK;CACxB,CAAC"}
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"}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "source": "https://github.com/bluesky-social/atproto",
3
- "branch": "permissioned-data-alpha",
4
- "commit": "4c33457",
5
- "vendoredAt": "2026-08-28",
6
- "note": "Vendored verbatim from lexicons/com/atproto/{space,simplespace}. Re-vendored by the weekly sync; a diff here identifies affected checks via their citations."
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.simplespace.listMembers",
3
+ "id": "com.atproto.memberspace.listMembers",
4
4
  "defs": {
5
5
  "main": {
6
6
  "type": "query",
7
- "description": "List the members in a space's host-internal member list. Must be called on the space authority's PDS. Requires OAuth with a covering read grant; a space credential is not sufficient, so members hosted elsewhere cannot enumerate the list. This reflects the simplespace member list, not a protocol-level reader set.",
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
+ }