@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
@@ -1,75 +0,0 @@
1
- {
2
- "lexicon": 1,
3
- "id": "com.atproto.space.listRepos",
4
- "defs": {
5
- "main": {
6
- "type": "query",
7
- "description": "List the known repos that hold data in a space (the writer set), with each repo's current rev and commit hash. Served by the space host. This is the sync boundary, not an access-control list: it enumerates only writers, never readers. The set is what the authority claims from write notifications and is not itself authoritative; a repo's host is the source of truth.",
8
- "parameters": {
9
- "type": "params",
10
- "required": ["space"],
11
- "properties": {
12
- "space": {
13
- "type": "string",
14
- "format": "space-ref",
15
- "description": "Reference to the space."
16
- },
17
- "limit": {
18
- "type": "integer",
19
- "minimum": 1,
20
- "maximum": 1000,
21
- "default": 100,
22
- "description": "Maximum number of repos to return."
23
- },
24
- "cursor": {
25
- "type": "string"
26
- }
27
- }
28
- },
29
- "output": {
30
- "encoding": "application/json",
31
- "schema": {
32
- "type": "object",
33
- "required": ["repos"],
34
- "properties": {
35
- "cursor": {
36
- "type": "string"
37
- },
38
- "repos": {
39
- "type": "array",
40
- "items": {
41
- "type": "ref",
42
- "ref": "#repo"
43
- }
44
- }
45
- }
46
- }
47
- },
48
- "errors": [
49
- {
50
- "name": "SpaceNotFound"
51
- }
52
- ]
53
- },
54
- "repo": {
55
- "type": "object",
56
- "required": ["did", "rev", "hash"],
57
- "properties": {
58
- "did": {
59
- "type": "string",
60
- "format": "did",
61
- "description": "The DID of a repo that holds data in the space."
62
- },
63
- "rev": {
64
- "type": "string",
65
- "description": "The repo's current revision (TID), as last reported to the authority. May lag the repo host, which is the source of truth.",
66
- "format": "tid"
67
- },
68
- "hash": {
69
- "type": "bytes",
70
- "description": "The repo's current commit hash (sha256 of the LtHash state), as last reported to the authority."
71
- }
72
- }
73
- }
74
- }
75
- }
@@ -1,24 +0,0 @@
1
- {
2
- "lexicon": 1,
3
- "id": "com.atproto.space.notifySpaceDeleted",
4
- "defs": {
5
- "main": {
6
- "type": "procedure",
7
- "description": "Notify a syncing service that a space has been deleted, and that it should drop every copy of the space's data it holds. Sent by the space authority to the services registered for the space, best-effort. Authenticated with service auth addressed to the receiving service.",
8
- "input": {
9
- "encoding": "application/json",
10
- "schema": {
11
- "type": "object",
12
- "required": ["space"],
13
- "properties": {
14
- "space": {
15
- "type": "string",
16
- "format": "space-ref",
17
- "description": "Reference to the deleted space."
18
- }
19
- }
20
- }
21
- }
22
- }
23
- }
24
- }
@@ -1,38 +0,0 @@
1
- {
2
- "lexicon": 1,
3
- "id": "com.atproto.space.notifyWrite",
4
- "defs": {
5
- "main": {
6
- "type": "procedure",
7
- "description": "Notify that a repo in a space has advanced to a new revision. Sent by a repo host to the space host, and forwarded to registered syncers. Best-effort. Authenticated with service auth.",
8
- "input": {
9
- "encoding": "application/json",
10
- "schema": {
11
- "type": "object",
12
- "required": ["space", "repo", "rev", "hash"],
13
- "properties": {
14
- "space": {
15
- "type": "string",
16
- "format": "space-ref",
17
- "description": "Reference to the space."
18
- },
19
- "repo": {
20
- "type": "string",
21
- "format": "did",
22
- "description": "The DID of the account whose repo advanced."
23
- },
24
- "rev": {
25
- "type": "string",
26
- "description": "The revision of the write.",
27
- "format": "tid"
28
- },
29
- "hash": {
30
- "type": "bytes",
31
- "description": "The repo's current commit hash (sha256 of the LtHash state) after the write. Lets the space host maintain each repo's hash for listRepos."
32
- }
33
- }
34
- }
35
- }
36
- }
37
- }
38
- }
@@ -1,49 +0,0 @@
1
- {
2
- "lexicon": 1,
3
- "id": "com.atproto.space.registerNotify",
4
- "defs": {
5
- "main": {
6
- "type": "procedure",
7
- "description": "Register a service to be notified of writes to any repo in a space. Called on the space host. The registering service is named by its service identifier rather than a bare URL, because notifyWrite is delivered with service auth addressed to that identifier; the delivery endpoint is resolved from the service's DID document. Authenticated with a space credential. Re-registering an existing service replaces its registration and extends the expiry.",
8
- "input": {
9
- "encoding": "application/json",
10
- "schema": {
11
- "type": "object",
12
- "required": ["space", "service"],
13
- "properties": {
14
- "space": {
15
- "type": "string",
16
- "format": "space-ref",
17
- "description": "Reference to the space."
18
- },
19
- "service": {
20
- "type": "string",
21
- "description": "Service identifier of the subscriber: a DID with an optional service fragment naming the entry in its DID document to deliver to (e.g. 'did:web:syncer.example.com#atproto_space_syncer'). notifyWrite calls are addressed to this identifier."
22
- }
23
- }
24
- }
25
- },
26
- "output": {
27
- "encoding": "application/json",
28
- "schema": {
29
- "type": "object",
30
- "required": ["expiresAt"],
31
- "properties": {
32
- "expiresAt": {
33
- "type": "string",
34
- "format": "datetime",
35
- "description": "When the registration expires. May be later than the expiry of the space credential the request was authenticated with; renew before this time to stay subscribed."
36
- }
37
- }
38
- }
39
- },
40
- "errors": [
41
- { "name": "SpaceNotFound" },
42
- {
43
- "name": "ServiceNotResolvable",
44
- "description": "The service identifier could not be resolved to a DID document with a matching service endpoint."
45
- }
46
- ]
47
- }
48
- }
49
- }
@@ -1,29 +0,0 @@
1
- {
2
- "lexicon": 1,
3
- "id": "com.atproto.space.unregisterNotify",
4
- "defs": {
5
- "main": {
6
- "type": "procedure",
7
- "description": "Withdraw a write-notification registration made through registerNotify. Called on the space host. Idempotent: succeeds whether or not a matching registration existed. Registrations also lapse on their own at the expiry returned by registerNotify, so this is for explicit withdrawal rather than cleanup. Authenticated with a space credential.",
8
- "input": {
9
- "encoding": "application/json",
10
- "schema": {
11
- "type": "object",
12
- "required": ["space", "service"],
13
- "properties": {
14
- "space": {
15
- "type": "string",
16
- "format": "space-ref",
17
- "description": "Reference to the space."
18
- },
19
- "service": {
20
- "type": "string",
21
- "description": "Service identifier of the subscriber to remove, as passed to registerNotify."
22
- }
23
- }
24
- }
25
- },
26
- "errors": [{ "name": "SpaceNotFound" }]
27
- }
28
- }
29
- }