techne-sdk 0.1.0 → 0.3.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/CHANGELOG.md +139 -0
- package/README.md +48 -2
- package/dist/auth/app-key.d.ts +8 -0
- package/dist/auth/app-key.js +95 -0
- package/dist/auth/index.d.ts +192 -0
- package/dist/auth/index.js +230 -0
- package/dist/auth/placement.gen.d.ts +1 -0
- package/dist/auth/placement.gen.js +50 -0
- package/dist/catalog/catalog.gen.js +2161 -681
- package/dist/connect.js +2 -1
- package/dist/generated/index.d.ts +61 -0
- package/dist/generated/index.js +116 -0
- package/dist/generated/lexicons.d.ts +3689 -1449
- package/dist/generated/lexicons.js +1237 -42
- package/dist/generated/nsid.d.ts +23 -1
- package/dist/generated/nsid.js +23 -19
- package/dist/generated/nsid.json +23 -19
- package/dist/generated/records.d.ts +28 -26
- package/dist/generated/types/pub/techne/draft/commons/getVersions.d.ts +3 -3
- package/dist/generated/types/pub/techne/draft/commons/runChain.d.ts +1 -1
- package/dist/generated/types/pub/techne/draft/credential.d.ts +1 -1
- package/dist/generated/types/pub/techne/draft/credentialRevocation.d.ts +1 -1
- package/dist/generated/types/pub/techne/draft/permissioned/deleteRecord.d.ts +5 -0
- package/dist/generated/types/pub/techne/draft/permissioned/deleteRecord.js +7 -0
- package/dist/generated/types/pub/techne/draft/permissioned/getRecord.d.ts +2 -1
- package/dist/generated/types/pub/techne/draft/permissioned/listChanges.d.ts +1 -1
- package/dist/generated/types/pub/techne/draft/permissioned/putRecord.d.ts +2 -2
- package/dist/generated/types/pub/techne/draft/provenance.d.ts +1 -1
- package/dist/generated/types/pub/techne/draft/publisher.d.ts +1 -1
- package/dist/generated/types/pub/techne/draft/query/composeRecords.d.ts +152 -0
- package/dist/generated/types/pub/techne/draft/query/composeRecords.js +55 -0
- package/dist/generated/types/pub/techne/draft/query/getRecords.d.ts +1 -1
- package/dist/generated/types/pub/techne/draft/query/listRecords.d.ts +0 -4
- package/dist/generated/types/pub/techne/draft/query/listRejections.d.ts +2 -2
- package/dist/generated/types/pub/techne/draft/registry/blockIndex.d.ts +42 -0
- package/dist/generated/types/pub/techne/draft/registry/blockIndex.js +34 -0
- package/dist/generated/types/pub/techne/draft/registry/defs.d.ts +112 -0
- package/dist/generated/types/pub/techne/draft/registry/defs.js +32 -0
- package/dist/generated/types/pub/techne/draft/registry/getType.d.ts +23 -0
- package/dist/generated/types/pub/techne/draft/registry/getType.js +20 -0
- package/dist/generated/types/pub/techne/draft/registry/getTypeRequest.d.ts +23 -0
- package/dist/generated/types/pub/techne/draft/registry/getTypeRequest.js +20 -0
- package/dist/generated/types/pub/techne/draft/registry/listTypeRequests.d.ts +27 -0
- package/dist/generated/types/pub/techne/draft/registry/listTypeRequests.js +7 -0
- package/dist/generated/types/pub/techne/draft/registry/listTypes.d.ts +34 -0
- package/dist/generated/types/pub/techne/draft/registry/listTypes.js +7 -0
- package/dist/generated/types/pub/techne/draft/registry/publishType.d.ts +77 -0
- package/dist/generated/types/pub/techne/draft/registry/publishType.js +83 -0
- package/dist/generated/types/pub/techne/draft/registry/purgeType.d.ts +39 -0
- package/dist/generated/types/pub/techne/draft/registry/purgeType.js +34 -0
- package/dist/generated/types/pub/techne/draft/registry/requestType.d.ts +53 -0
- package/dist/generated/types/pub/techne/draft/registry/requestType.js +76 -0
- package/dist/generated/types/pub/techne/draft/registry/typeRequest.d.ts +22 -0
- package/dist/generated/types/pub/techne/draft/registry/typeRequest.js +12 -0
- package/dist/generated/types/pub/techne/draft/sync/indexRecord.d.ts +1 -1
- package/dist/generated/types/pub/techne/draft/verdict.d.ts +2 -2
- package/dist/platform.d.ts +14 -0
- package/dist/platform.js +16 -0
- package/dist/put/index.js +17 -7
- package/dist/query/index.d.ts +1 -10
- package/dist/query/index.js +1 -1
- package/dist/types-cli/emit.d.ts +20 -0
- package/dist/types-cli/emit.js +217 -0
- package/dist/types-cli/main.d.ts +5 -0
- package/dist/types-cli/main.js +63 -0
- package/dist/types-cli/resolve.d.ts +26 -0
- package/dist/types-cli/resolve.js +99 -0
- package/dist/wasm/index.d.ts +20 -3
- package/dist/wasm/index.js +6 -1
- package/dist/wasm/techne-wasm.gen.js +1 -1
- package/dist/wasm/techne-wasm2js.gen.js +26425 -25985
- package/package.json +23 -6
|
@@ -1762,7 +1762,7 @@ export const schemaDict = {
|
|
|
1762
1762
|
defs: {
|
|
1763
1763
|
main: {
|
|
1764
1764
|
type: 'query',
|
|
1765
|
-
description: 'One public event or place as its versions: the record `uri` resolves to (the curated record of its cluster when there is one, else the record itself), how the curator composed it (its provenance `composition`, read only when the record is a live curated record by a curator
|
|
1765
|
+
description: 'One public event or place as its versions: the record `uri` resolves to (the curated record of its cluster when there is one, else the record itself), how the curator composed it (its provenance `composition`, read only when the record is a live curated record by a curator an admin writer vouches for), and each version (each source of the curated record; a source by a retired identity is not a version and gets no rank) with its body, its rank, and the verdict and verification records about it. Versions carrying a verdict with a value in `leaveOut` from a verdict writer an admin writer (the commons root, or an operator the root names) vouches for with that value are left out (counted in `leftOut`). Anyone may call it, signed in or not.',
|
|
1766
1766
|
parameters: {
|
|
1767
1767
|
type: 'params',
|
|
1768
1768
|
required: ['uri'],
|
|
@@ -1867,7 +1867,7 @@ export const schemaDict = {
|
|
|
1867
1867
|
},
|
|
1868
1868
|
mirror: {
|
|
1869
1869
|
type: 'boolean',
|
|
1870
|
-
description: "A mirror's copy of an upstream listing: its author wrote a pub.techne.draft.source or pub.techne.draft.sourceRef sidecar about it, and
|
|
1870
|
+
description: "A mirror's copy of an upstream listing: its author wrote a pub.techne.draft.source or pub.techne.draft.sourceRef sidecar about it, and an admin writer vouches for that author as a writer of the record's collection (a sidecar alone is the author's own claim and tags nothing).",
|
|
1871
1871
|
},
|
|
1872
1872
|
verdicts: {
|
|
1873
1873
|
type: 'array',
|
|
@@ -1875,7 +1875,7 @@ export const schemaDict = {
|
|
|
1875
1875
|
type: 'ref',
|
|
1876
1876
|
ref: 'lex:pub.techne.draft.commons.getVersions#verdictView',
|
|
1877
1877
|
},
|
|
1878
|
-
description: 'Verdict records about this version (its CID), from
|
|
1878
|
+
description: 'Verdict records about this version (its CID), from verdict writers an admin writer vouches for with their values.',
|
|
1879
1879
|
},
|
|
1880
1880
|
verification: {
|
|
1881
1881
|
type: 'ref',
|
|
@@ -1912,7 +1912,7 @@ export const schemaDict = {
|
|
|
1912
1912
|
uri: {
|
|
1913
1913
|
type: 'string',
|
|
1914
1914
|
format: 'at-uri',
|
|
1915
|
-
description: 'The pub.techne.draft.verification record about the author, by an
|
|
1915
|
+
description: 'The pub.techne.draft.verification record about the author, by an author an admin writer vouches for as a writer of pub.techne.draft.verification.',
|
|
1916
1916
|
},
|
|
1917
1917
|
},
|
|
1918
1918
|
},
|
|
@@ -2042,7 +2042,7 @@ export const schemaDict = {
|
|
|
2042
2042
|
type: 'ref',
|
|
2043
2043
|
ref: 'lex:com.atproto.repo.strongRef',
|
|
2044
2044
|
},
|
|
2045
|
-
description: "Pointers to the pub.techne.draft.receipt records the runner's curated-stage rules wrote for the canonical record at its current CID (the moderation verdict). A reader lists a curated record only with a receipt for its current CID from every rule the commons root
|
|
2045
|
+
description: "Pointers to the pub.techne.draft.receipt records the runner's curated-stage rules wrote for the canonical record at its current CID (the moderation verdict). A reader lists a curated record only with a receipt for its current CID from every rule at stage `curated` that an admin writer (the commons root, or an operator the root names) vouches for, so the caller fetches each from its author's PDS, checks its CID and that its subject is the canonical record at the answered CID, and indexes it with the curated record. Absent or empty while none is written yet.",
|
|
2046
2046
|
},
|
|
2047
2047
|
pending: {
|
|
2048
2048
|
type: 'boolean',
|
|
@@ -2265,7 +2265,7 @@ export const schemaDict = {
|
|
|
2265
2265
|
PubTechneDraftCredential: {
|
|
2266
2266
|
lexicon: 1,
|
|
2267
2267
|
id: 'pub.techne.draft.credential',
|
|
2268
|
-
description: "A verifiable credential: an issuer's statement about one record in its subject's repo (for example a contactChannel the issuer saw the subject prove by a one-time code, or a pub.techne.draft.publisher declaration the commons vouches for: its root, or an operator the root names). Field names follow community.lexicon.attestation and badge.blue: `subject`, `record`, `issuer`, `notBefore`, `notAfter`, `signature`. There is no `kind` field: the attested record's collection is the kind. With `fields`, `digest` is the CID of the canonical DAG-CBOR map of exactly those fields of the attested record, so an edit to any other field (a label) leaves the credential valid; without `fields`, `cid` pins the whole record. It binds in exactly two forms. Stored by its subject and signed (author = `subject`, author ≠ signer): it must carry `signature`, which covers `dagcbor({$type, issuer, subject, record, fields?, digest?, cid?, notBefore, notAfter, revocation})` (ES256K, low-S, over sha256, 64-byte r||s, base64url without padding), never `createdAt` or where the credential is stored, and verifies under `signature.key` in the issuer's DID document; it counts only when the issuer's pub.techne.draft.publisher `issues` covers the attested record's collection and `fields` and a live commons credential (the root's, or an operator's within its period) vouches for that declaration, no record exists at `revocation`, and digest or cid match the attested record now; it is placed only in its subject's pub.techne.draft.space.credential at skey = the record key. A commons credential, published by its issuer in its own repo and unsigned (author = `issuer`; the repo commit is the proof), where the issuer is the commons root (COMMONS_ROOT_DID) or an operator the root names (pub.techne.draft.operator) whose period held when the reader first saw this version of the credential: `record` is an account's pub.techne.draft.publisher at rkey `self` and `cid` that record's current CID; `revocation` must be an address in the issuer's own repo under pub.techne.draft.credentialRevocation, and it counts while no record exists there; it is PUBLIC. Nothing else binds: an unsigned credential from any other issuer, or a copy in any other repo, counts for nothing. `notAfter` is metadata: a credential past it is not void by that alone. An issuer's own identity index is its operational binding ledger, kept from its issuance log; it is not derived from wallet records.",
|
|
2268
|
+
description: "A verifiable credential: an issuer's statement about one record in its subject's repo (for example a contactChannel the issuer saw the subject prove by a one-time code, or a pub.techne.draft.publisher declaration the commons vouches for: its root, or an operator the root names). Field names follow community.lexicon.attestation and badge.blue: `subject`, `record`, `issuer`, `notBefore`, `notAfter`, `signature`. There is no `kind` field: the attested record's collection is the kind. With `fields`, `digest` is the CID of the canonical DAG-CBOR map of exactly those fields of the attested record, so an edit to any other field (a label) leaves the credential valid; without `fields`, `cid` pins the whole record. It binds in exactly two forms. Stored by its subject and signed (author = `subject`, author ≠ signer): it must carry `signature`, which covers `dagcbor({$type, issuer, subject, record, fields?, digest?, cid?, notBefore, notAfter, revocation})` (ES256K, low-S, over sha256, 64-byte r||s, base64url without padding), never `createdAt` or where the credential is stored, and verifies under `signature.key` in the issuer's DID document; it counts only when the issuer's pub.techne.draft.publisher `issues` covers the attested record's collection and `fields` and a live commons credential (the root's, or an operator's within its period) vouches for that declaration, no record exists at `revocation`, and digest or cid match the attested record now; it is placed only in its subject's pub.techne.draft.space.credential at skey = the record key. A commons credential, published by its issuer in its own repo and unsigned (author = `issuer`; the repo commit is the proof), where the issuer is the commons root (COMMONS_ROOT_DID) or an operator the root names (pub.techne.draft.operator) whose period held when the reader first saw this version of the credential: `record` is an account's pub.techne.draft.publisher at rkey `self` and `cid` that record's current CID; `revocation` must be an address in the issuer's own repo under pub.techne.draft.credentialRevocation, and it counts while no record exists there; it is PUBLIC. The same commons credential approves a request to index a foreign type: `subject` is the registry's DID, `record` a pub.techne.draft.registry.typeRequest in the registry's repo and `cid` that request's CID. Nothing else binds: an unsigned credential from any other issuer, or a copy in any other repo, counts for nothing. `notAfter` is metadata: a credential past it is not void by that alone. An issuer's own identity index is its operational binding ledger, kept from its issuance log; it is not derived from wallet records.",
|
|
2269
2269
|
defs: {
|
|
2270
2270
|
main: {
|
|
2271
2271
|
type: 'record',
|
|
@@ -2330,12 +2330,12 @@ export const schemaDict = {
|
|
|
2330
2330
|
revocation: {
|
|
2331
2331
|
type: 'string',
|
|
2332
2332
|
format: 'at-uri',
|
|
2333
|
-
description:
|
|
2333
|
+
description: "Where the issuer publishes a pub.techne.draft.credentialRevocation if it withdraws this credential (and every re-issue at the same binding id). Absent there = not revoked by the issuer. The commons root can also revoke a commons credential an operator issued, with its own credentialRevocation at the same rkey in the root's repo; a reader counts either.",
|
|
2334
2334
|
},
|
|
2335
2335
|
signature: {
|
|
2336
2336
|
type: 'ref',
|
|
2337
2337
|
ref: 'lex:pub.techne.draft.credential#signature',
|
|
2338
|
-
description: 'Present exactly when the credential is stored by its subject; absent only
|
|
2338
|
+
description: 'Present exactly when the credential is stored by its subject; absent only for a commons credential, which its issuer (the commons root, or an operator the root names) publishes in its own repo (the commit is the proof).',
|
|
2339
2339
|
},
|
|
2340
2340
|
createdAt: {
|
|
2341
2341
|
type: 'string',
|
|
@@ -2365,7 +2365,7 @@ export const schemaDict = {
|
|
|
2365
2365
|
PubTechneDraftCredentialRevocation: {
|
|
2366
2366
|
lexicon: 1,
|
|
2367
2367
|
id: 'pub.techne.draft.credentialRevocation',
|
|
2368
|
-
description: "An issuer's withdrawal of a pub.techne.draft.credential: present at the address the credential names in `revocation` = that credential and every re-issue at the same binding id are revoked. Absent = not revoked. Names no subject. PUBLIC, in the issuer's repo; the record key is the binding id (random, so a revocation address is not guessable from the channel or the holder).",
|
|
2368
|
+
description: "An issuer's withdrawal of a pub.techne.draft.credential: present at the address the credential names in `revocation` = that credential and every re-issue at the same binding id are revoked. Absent = not revoked, unless it is a commons credential and the commons root holds a revocation at the same rkey in its own repo (the root can revoke an operator's credential). Names no subject. PUBLIC, in the issuer's repo; the record key is the binding id (random, so a revocation address is not guessable from the channel or the holder).",
|
|
2369
2369
|
defs: {
|
|
2370
2370
|
main: {
|
|
2371
2371
|
type: 'record',
|
|
@@ -2385,7 +2385,7 @@ export const schemaDict = {
|
|
|
2385
2385
|
'compromised',
|
|
2386
2386
|
'withdrawn',
|
|
2387
2387
|
],
|
|
2388
|
-
description: "`unlinked`: the holder removed the method; `deleted`: the holder's account was deleted; `folded`: the method moved to the holder's other account; `superseded`: replaced by a newer binding; `compromised`: the key or the binding was compromised; `withdrawn`: the issuer no longer vouches for it (
|
|
2388
|
+
description: "`unlinked`: the holder removed the method; `deleted`: the holder's account was deleted; `folded`: the method moved to the holder's other account; `superseded`: replaced by a newer binding; `compromised`: the key or the binding was compromised; `withdrawn`: the issuer no longer vouches for it (a commons admin writer, the root or an operator, withdrawing its vouching for a publisher declaration).",
|
|
2389
2389
|
},
|
|
2390
2390
|
createdAt: {
|
|
2391
2391
|
type: 'string',
|
|
@@ -4910,7 +4910,7 @@ export const schemaDict = {
|
|
|
4910
4910
|
PubTechneDraftOperator: {
|
|
4911
4911
|
lexicon: 1,
|
|
4912
4912
|
id: 'pub.techne.draft.operator',
|
|
4913
|
-
description: "The commons root's statement that an account is an operator of the commons for a period. An operator may call the commons' operator methods (rerun jobs,
|
|
4913
|
+
description: "The commons root's statement that an account is an operator of the commons for a period. An operator may call the commons' operator methods (rerun jobs and rules, pause rules, index a record, grant provider allowances, record releases, register and run scrapers, and the operator-only lists) with an atproto service-auth JWT it signs itself, and writes in its OWN repo, under its own account, the commons' admin records (credentials that endorse a rule and their revocations, retirements), which a reader counts when its writer is the root, or an operator a record here names whose period held when the reader first saw that version of the record. An operator's pair decisions and `!takedown` verdicts are ordinary records of its own: they count only while a live commons credential vouches for its declaration (provenancePolicy#vouchedWriter). So an operator's acts stay counted after the period ends, and acts first seen after it do not. Only the root's own operator records count. An operator is cut off by ending the period (`validUntil`, which may be earlier than the edit, back to a compromise), never by deleting the record, which would erase the period the operator's past acts hang on. PUBLIC. Written in the commons root's repo only, by the root signed in as itself (the commons' web app: granting writes a new period, at `{did}-{millis}` after an ended one; revoking sets `validUntil`). Each operator ends only its own acts (a revocation at its credential's address, deleting its own retirement); the root can also revoke an operator's credential, at the same rkey in the root's repo, but never ends an operator's retirement. Read by the commons, the AppView and the rules runner.",
|
|
4914
4914
|
defs: {
|
|
4915
4915
|
main: {
|
|
4916
4916
|
type: 'record',
|
|
@@ -5119,10 +5119,11 @@ export const schemaDict = {
|
|
|
5119
5119
|
PubTechneDraftPermissionedDeleteRecord: {
|
|
5120
5120
|
lexicon: 1,
|
|
5121
5121
|
id: 'pub.techne.draft.permissioned.deleteRecord',
|
|
5122
|
-
description: "Delete a record from the caller's own repo (a takedown, a mistake, or a `share` the owner withdraws, which stops that reader's future reads, with a 'revoke-read' receipt once no share in its source space names it). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose space the caller manages (it passes the space's manage leg, so it writes with the authority's pen), else Forbidden; a caller whose account is being deleted, or is deleted, is refused (AccountDeleting). The body is removed; a tombstone receipt stays in listChanges, in the space the record counted in, so readers drop their copies. Deleting a record that does not exist is a no-op unless swapCid is given (then it is InvalidSwap). A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 2 MiB (2,097,152 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused write still spends one of the caller's writes (RateLimitExceeded). Draft tier.",
|
|
5122
|
+
description: "Delete a record from the caller's own repo (a takedown, a mistake, or a `share` the owner withdraws, which stops that reader's future reads, with a 'revoke-read' receipt once no share in its source space names it). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose space the caller manages (it passes the space's manage leg, so it writes with the authority's pen), else Forbidden; a caller whose account is being deleted, or is deleted, is refused (AccountDeleting). The body is removed; a tombstone receipt stays in listChanges, in the space the record counted in, so readers drop their copies. Deleting a record that does not exist is a no-op unless swapCid is given (then it is InvalidSwap). A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 2 MiB (2,097,152 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused write still spends one of the caller's writes (RateLimitExceeded). When the call's token carries space scopes from Techne's ePDS, the delete must name its `space`, and one the scopes do not cover is refused 403 Forbidden. Draft tier.",
|
|
5123
5123
|
defs: {
|
|
5124
5124
|
main: {
|
|
5125
5125
|
type: 'procedure',
|
|
5126
|
+
description: "Delete one of your own permissioned records (or a collective's or circle's whose space you manage). One key holds one record per space: `space` names which goes; without it, the key's one record, Conflict when there are several. A tombstone stays in listChanges so readers drop their copies. Deleting a missing record is a no-op unless swapCid is given (InvalidSwap). When the call's token carries space scopes from Techne's ePDS, the delete must name its `space`, and one the scopes do not cover is refused 403 Forbidden. Draft tier.",
|
|
5126
5127
|
input: {
|
|
5127
5128
|
encoding: 'application/json',
|
|
5128
5129
|
schema: {
|
|
@@ -5148,6 +5149,11 @@ export const schemaDict = {
|
|
|
5148
5149
|
format: 'cid',
|
|
5149
5150
|
description: "Delete only if the record's current CID is this one.",
|
|
5150
5151
|
},
|
|
5152
|
+
space: {
|
|
5153
|
+
type: 'string',
|
|
5154
|
+
format: 'at-uri',
|
|
5155
|
+
description: 'The space the record was written for (its putRecord space). One key holds one record per space (the 0016 record address), so this names which one goes. Absent: the record at the key whatever its space, refused as Conflict when the key holds records for more than one space.',
|
|
5156
|
+
},
|
|
5151
5157
|
},
|
|
5152
5158
|
},
|
|
5153
5159
|
},
|
|
@@ -5181,6 +5187,10 @@ export const schemaDict = {
|
|
|
5181
5187
|
name: 'InvalidSwap',
|
|
5182
5188
|
description: 'HTTP 409. swapCid did not match the current version.',
|
|
5183
5189
|
},
|
|
5190
|
+
{
|
|
5191
|
+
name: 'Conflict',
|
|
5192
|
+
description: 'HTTP 409. No space was given and the key holds records for more than one space.',
|
|
5193
|
+
},
|
|
5184
5194
|
{
|
|
5185
5195
|
name: 'AuthenticationRequired',
|
|
5186
5196
|
description: 'HTTP 401. No credential, or one that fails verification (for a service-auth JWT: wrong aud or lxm, expired, replayed, or an issuer whose key does not resolve right now; retry later in that case).',
|
|
@@ -5196,7 +5206,7 @@ export const schemaDict = {
|
|
|
5196
5206
|
PubTechneDraftPermissionedGetGrants: {
|
|
5197
5207
|
lexicon: 1,
|
|
5198
5208
|
id: 'pub.techne.draft.permissioned.getGrants',
|
|
5199
|
-
description: "Who may read an owner's source space (pub.techne.draft.space.source) beside the owner: the DIDs named by the `share` records the owner placed there, so a source can see its audience before it writes (putRecord echoes it too). The owner sets its audience itself, by writing and deleting shares; nothing else adds a reader. The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). Callable by the owner itself; anyone else is Forbidden. Draft tier.",
|
|
5209
|
+
description: "Who may read an owner's source space (pub.techne.draft.space.source) beside the owner: the DIDs named by the `share` records the owner placed there, so a source can see its audience before it writes (putRecord echoes it too). The owner sets its audience itself, by writing and deleting shares; nothing else adds a reader. The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). Callable by the owner itself; anyone else is Forbidden. When the call's token carries space scopes from Techne's ePDS, they must cover reading the owner's source space (403 Forbidden otherwise). Draft tier.",
|
|
5200
5210
|
defs: {
|
|
5201
5211
|
main: {
|
|
5202
5212
|
type: 'query',
|
|
@@ -5248,7 +5258,7 @@ export const schemaDict = {
|
|
|
5248
5258
|
PubTechneDraftPermissionedGetRecord: {
|
|
5249
5259
|
lexicon: 1,
|
|
5250
5260
|
id: 'pub.techne.draft.permissioned.getRecord',
|
|
5251
|
-
description: "Read one permissioned record. The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). The caller reads its own records, and a record that counts in a space whose read policy admits the caller (for a source space: the owner and every DID a `share` the owner placed there names; see getGrants). Anything else is RecordNotFound, exactly like a record that does not exist, so an unshared space is not revealed. Read access is use access. Draft tier.",
|
|
5261
|
+
description: "Read one permissioned record. The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). The caller reads its own records, and a record that counts in a space whose read policy admits the caller (for a source space: the owner and every DID a `share` the owner placed there names; see getGrants). Anything else is RecordNotFound, exactly like a record that does not exist, so an unshared space is not revealed. Read access is use access. When the call's token carries space scopes from Techne's ePDS, only records in spaces the scopes cover are returned. Draft tier.",
|
|
5252
5262
|
defs: {
|
|
5253
5263
|
main: {
|
|
5254
5264
|
type: 'query',
|
|
@@ -5259,7 +5269,7 @@ export const schemaDict = {
|
|
|
5259
5269
|
uri: {
|
|
5260
5270
|
type: 'string',
|
|
5261
5271
|
format: 'at-uri',
|
|
5262
|
-
description: 'at://{did}/{collection}/{rkey}
|
|
5272
|
+
description: "The record's address, with DID authorities: the 0016 space record address at://{spaceAuthority}/space/{spaceType}/{skey}/{did}/{collection}/{rkey} names the record written for that space; the 3-part at://{did}/{collection}/{rkey} names none, and answers only when exactly one record at that key may be read by the caller (one key may hold one record per space).",
|
|
5263
5273
|
},
|
|
5264
5274
|
},
|
|
5265
5275
|
},
|
|
@@ -5272,6 +5282,7 @@ export const schemaDict = {
|
|
|
5272
5282
|
uri: {
|
|
5273
5283
|
type: 'string',
|
|
5274
5284
|
format: 'at-uri',
|
|
5285
|
+
description: 'The address the record was asked for by: a 0016 read is answered under its 0016 address.',
|
|
5275
5286
|
},
|
|
5276
5287
|
cid: {
|
|
5277
5288
|
type: 'string',
|
|
@@ -5307,7 +5318,7 @@ export const schemaDict = {
|
|
|
5307
5318
|
PubTechneDraftPermissionedListChanges: {
|
|
5308
5319
|
lexicon: 1,
|
|
5309
5320
|
id: 'pub.techne.draft.permissioned.listChanges',
|
|
5310
|
-
description: "The ordered receipts of every generic private write and delete the caller may read: its own; and of others' records, those counting in a space whose read policy admits the caller now, as far as the caller would have been told them had it been reading all along: an upsert of the version that is current there; in an owner's source space, anything after the latest receipt of a share that admits the caller now (and not from before that share's validFrom), tombstones and superseded versions included; and, in the live feed (no did), a tombstone once the caller's cursor has passed the first receipt of the versions it retracts from that space, so a reader new to the feed is told no delete written before it read, which in a source space must also come after the caller's latest grant receipt from that owner ('granted' or 'revoke-read'): a delete written during a gap that ends in 'granted' is not told, and a share renewed, replaced under another key, or outlived by an overlapping one writes no grant receipt and hides no delete. Plus the caller's grant receipts (an owner's source space shared with it, or no longer). When an account is deleted its readers are told first: a tombstone for each of its records counting in someone else's space, and a 'revoke-read' to each reader of its source space. Known limit: the cursor is global, so a reader that kept polling while a space admitting it by claim was closed to it can later be told a tombstone (no body) of a record from before its admission there; likewise in a source space whose share lapsed by time (its validUntil passed) and was later rewritten or followed by another: a lapse leaves no receipt, so the caller may be told a tombstone it does not need. Both err toward showing a delete, never toward hiding one. Known limit: an account deletion tells nothing to the readers of the deleted account's own spaces other than its source space (those admitting readers by claim): the space and every record in it, its own and other writers', go with the account, and a reader keeps the copies it has. The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). Page forward with the returned cursor; an empty page returns the cursor it was given. seq is global, so a reader told 'granted' backfills that owner by paging with did set to the owner from cursor 0. Draft tier.",
|
|
5321
|
+
description: "The ordered receipts of every generic private write and delete the caller may read: its own; and of others' records, those counting in a space whose read policy admits the caller now, as far as the caller would have been told them had it been reading all along: an upsert of the version that is current there; in an owner's source space, anything after the latest receipt of a share that admits the caller now (and not from before that share's validFrom), tombstones and superseded versions included; and, in the live feed (no did), a tombstone once the caller's cursor has passed the first receipt of the versions it retracts from that space, so a reader new to the feed is told no delete written before it read, which in a source space must also come after the caller's latest grant receipt from that owner ('granted' or 'revoke-read'): a delete written during a gap that ends in 'granted' is not told, and a share renewed, replaced under another key, or outlived by an overlapping one writes no grant receipt and hides no delete. Plus the caller's grant receipts (an owner's source space shared with it, or no longer). When an account is deleted its readers are told first: a tombstone for each of its records counting in someone else's space, and a 'revoke-read' to each reader of its source space. Known limit: the cursor is global, so a reader that kept polling while a space admitting it by claim was closed to it can later be told a tombstone (no body) of a record from before its admission there; likewise in a source space whose share lapsed by time (its validUntil passed) and was later rewritten or followed by another: a lapse leaves no receipt, so the caller may be told a tombstone it does not need. Both err toward showing a delete, never toward hiding one. Known limit: an account deletion tells nothing to the readers of the deleted account's own spaces other than its source space (those admitting readers by claim): the space and every record in it, its own and other writers', go with the account, and a reader keeps the copies it has. The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). Page forward with the returned cursor; an empty page returns the cursor it was given. seq is global, so a reader told 'granted' backfills that owner by paging with did set to the owner from cursor 0. When the call's token carries space scopes from Techne's ePDS, only receipts for records in spaces the scopes cover are returned, and no grant receipts unless a scope covers every space. Draft tier.",
|
|
5311
5322
|
defs: {
|
|
5312
5323
|
main: {
|
|
5313
5324
|
type: 'query',
|
|
@@ -5369,7 +5380,7 @@ export const schemaDict = {
|
|
|
5369
5380
|
},
|
|
5370
5381
|
recordChange: {
|
|
5371
5382
|
type: 'object',
|
|
5372
|
-
description: "A write or delete in an owner's repo. A delete's receipt is its tombstone.",
|
|
5383
|
+
description: "A write or delete in an owner's repo. A delete's receipt is its tombstone. One key (did, collection, rkey) may hold one record per space (the 0016 record address), so a reader keys its copies by (did, collection, rkey, space): a tombstone retracts only the copy with its space, never another space's record at the same key.",
|
|
5373
5384
|
required: ['seq', 'did', 'collection', 'rkey', 'rev', 'op'],
|
|
5374
5385
|
properties: {
|
|
5375
5386
|
seq: {
|
|
@@ -5442,7 +5453,7 @@ export const schemaDict = {
|
|
|
5442
5453
|
PubTechneDraftPermissionedListRecords: {
|
|
5443
5454
|
lexicon: 1,
|
|
5444
5455
|
id: 'pub.techne.draft.permissioned.listRecords',
|
|
5445
|
-
description: "List one repo's current permissioned records in one collection that the caller may read, in ascending record key order (there is no reverse): the caller's own records, and those counting in a space whose read policy admits the caller now (for a source space: the owner and every DID a `share` the owner placed there names; see getGrants), not taken down. A record the caller may not read is left out, exactly like one that does not exist, so a repo with nothing the caller may read returns an empty page and an unshared space is not revealed. Deleted records are not listed (their tombstones are in listChanges). Use it to learn what a repo holds now without replaying its receipts; use listChanges to follow what changes. A caller reading another owner's records should pass space, the space it reads them in: at atproto's permissioned data (proposal 0016) a permissioned listing is per space, under that space's credential, and a record's address there names its space, so a listing across spaces has no counterpart to move to. The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). Read access is use access. Draft tier.",
|
|
5456
|
+
description: "List one repo's current permissioned records in one collection that the caller may read, in ascending record key order (there is no reverse): the caller's own records, and those counting in a space whose read policy admits the caller now (for a source space: the owner and every DID a `share` the owner placed there names; see getGrants), not taken down. A record the caller may not read is left out, exactly like one that does not exist, so a repo with nothing the caller may read returns an empty page and an unshared space is not revealed. Deleted records are not listed (their tombstones are in listChanges). Use it to learn what a repo holds now without replaying its receipts; use listChanges to follow what changes. A caller reading another owner's records should pass space, the space it reads them in: at atproto's permissioned data (proposal 0016) a permissioned listing is per space, under that space's credential, and a record's address there names its space, so a listing across spaces has no counterpart to move to. The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). Read access is use access. When the call's token carries space scopes from Techne's ePDS, only records in spaces the scopes cover are returned. Draft tier.",
|
|
5446
5457
|
defs: {
|
|
5447
5458
|
main: {
|
|
5448
5459
|
type: 'query',
|
|
@@ -5541,10 +5552,11 @@ export const schemaDict = {
|
|
|
5541
5552
|
PubTechneDraftPermissionedPutRecord: {
|
|
5542
5553
|
lexicon: 1,
|
|
5543
5554
|
id: 'pub.techne.draft.permissioned.putRecord',
|
|
5544
|
-
description: "Write a record into the caller's own repo, as a permissioned record (the generic private write). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose space the caller manages (it passes the space's manage leg, so it writes with the authority's pen), else Forbidden: a record is only ever written into its writer's repo. There is no write gate and no collection check: any collection may be written, for any space.
|
|
5555
|
+
description: "Write a record into the caller's own repo, as a permissioned record (the generic private write). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose space the caller manages (it passes the space's manage leg, so it writes with the authority's pen), else Forbidden: a record is only ever written into its writer's repo. There is no write gate and no collection check: any collection may be written, for any space. A write is never refused for its space. One collection is refused there: one of the platform's own record types named for an app's space (pub.techne.draft.space.private) is refused as InvalidRequest, since our own types keep their declared homes (the adopted community.lexicon.calendar.event and .rsvp are not refused there: they are the app's own data, and an RSVP there projects no claim). Otherwise what it counts for is the managing app's admission of the version as it is written: the record counts in the `space` it names only when that space's write policy admits the writer and, for a collection with a published lexicon, the space type declares the collection; it is then read by whoever the space's read policy admits. A record for a pub.techne.draft.space.private space counts there only when written by the app its key names (the managing app); written by any other app it is stored and counts in no space (the output has no `space`). Otherwise it is stored in the writer's repo, counts in no space, and only its writer reads it; write it again to ask again. A write into a space whose authority's account is being deleted, or is deleted, is stored the same way and counts in no space (the space goes with that account). A caller whose own account is being deleted, or is deleted, is refused (AccountDeleting). The output's `space` says where it counts. A source keeps what it does not publish in its own pub.techne.draft.space.source (at://{source}/pub.techne.draft.space.source/self): its permissioned descriptions, the `share`s naming its readers (writing one admits its subject, who gets a 'granted' receipt; deleting the last one naming a reader gives a 'revoke-read'. A share keeps one space per key, so it is never moved out of the space: writing it for another space is refused as Conflict), and a scraper's raw payloads and crawl state. A body in a collection with a published lexicon must satisfy it (InvalidRequest otherwise); any other collection is stored as written. Writing the current version again for the same space records no new version: if it counts there it is a no-op; if it was not admitted, admission is asked again, and a version admitted now is placed in the space with a receipt. A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 2 MiB (2,097,152 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused write still spends one of the caller's writes (RateLimitExceeded). When the call's token carries space scopes from Techne's ePDS, a write to a space they do not cover is refused 403 Forbidden. Draft tier.",
|
|
5545
5556
|
defs: {
|
|
5546
5557
|
main: {
|
|
5547
5558
|
type: 'procedure',
|
|
5559
|
+
description: "Write one record into your own repo (or a collective's or circle's whose space you manage) as a permissioned record, for the `space` it names. Any collection; a body of a collection with a published lexicon must satisfy it. It counts in that space only when the space's write policy admits you (and, for one of our own types, the space type declares the collection); otherwise it is stored and only you read it. A write is never refused for its space. A pub.techne.draft.space.private record counts there only when written by the app its key names; else it counts in no space. The output's `space` says where it counts. Writing the current version again is a no-op. One write of your rate (RateLimitExceeded). A token with space scopes from Techne's ePDS: a write to a space they do not cover is 403 Forbidden. Draft tier.",
|
|
5548
5560
|
input: {
|
|
5549
5561
|
encoding: 'application/json',
|
|
5550
5562
|
schema: {
|
|
@@ -5578,7 +5590,7 @@ export const schemaDict = {
|
|
|
5578
5590
|
space: {
|
|
5579
5591
|
type: 'string',
|
|
5580
5592
|
format: 'at-uri',
|
|
5581
|
-
description: "The space the record is for: at://{authority}/{spaceType}/{skey} (for a source's own records, at://{repo}/pub.techne.draft.space.source/self). Absent: the record is for no space, and only its writer reads it.",
|
|
5593
|
+
description: "The space the record is for: at://{authority}/{spaceType}/{skey} (for a source's own records, at://{repo}/pub.techne.draft.space.source/self). Absent: the record is for no space, and only its writer reads it. The key holds one record per space (the 0016 record address): writing it for another space writes another record and leaves this one; to move a record, delete it and write it again.",
|
|
5582
5594
|
},
|
|
5583
5595
|
},
|
|
5584
5596
|
},
|
|
@@ -5614,7 +5626,7 @@ export const schemaDict = {
|
|
|
5614
5626
|
space: {
|
|
5615
5627
|
type: 'string',
|
|
5616
5628
|
format: 'at-uri',
|
|
5617
|
-
description: "The space the record counts in now. Absent when it counts in none (no space was named, or the space's write policy does not admit the writer).",
|
|
5629
|
+
description: "The space the record counts in now. Absent when it counts in none (no space was named, or the space's write policy does not admit the writer, or a space.private space written by an app other than the one its key names).",
|
|
5618
5630
|
},
|
|
5619
5631
|
},
|
|
5620
5632
|
},
|
|
@@ -5642,7 +5654,7 @@ export const schemaDict = {
|
|
|
5642
5654
|
},
|
|
5643
5655
|
{
|
|
5644
5656
|
name: 'Conflict',
|
|
5645
|
-
description: "HTTP 409. The same key holds a public record in the caller's repo, or a concurrent write replaced this version before it was recorded (read the record back).",
|
|
5657
|
+
description: "HTTP 409. The same key holds a public record in the caller's repo, or a claim (a share, membership, connection and the like keep one space per key) written for another space, or a concurrent write replaced this version before it was recorded (read the record back).",
|
|
5646
5658
|
},
|
|
5647
5659
|
{
|
|
5648
5660
|
name: 'IdentityConflict',
|
|
@@ -5663,10 +5675,11 @@ export const schemaDict = {
|
|
|
5663
5675
|
PubTechneDraftPermissionedPutRecords: {
|
|
5664
5676
|
lexicon: 1,
|
|
5665
5677
|
id: 'pub.techne.draft.permissioned.putRecords',
|
|
5666
|
-
description: "Write up to 200 records into the caller's own repo in one call: each write is applied in order, exactly as putRecord applies it (the same admission, receipts, no-op re-put and swapCid), each in its own transaction. NOT atomic: a write that is refused does not undo the writes before it or stop the ones after it, and each write's result says what happened to it. That is why this is not called applyWrites: atproto's com.atproto.repo.applyWrites commits all of its writes or none, and this does not (each write keeps putRecord's own per-record locking, so a batch never holds more than one record's locks). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose space the caller manages (it passes the space's manage leg, so it writes with the authority's pen), else Forbidden and nothing is written. A write refused for itself (a malformed or invalid record, a swapCid that does not match, a conflict) is reported in its result as the error putRecord would have answered, and the next write is applied. A refusal that holds for the whole call stops it with that error, and no later write is applied: the caller's account is being deleted, or is deleted (AccountDeleting; what it wrote goes with the account), or a failure inside the AppView (HTTP 500; the writes applied before it stay written, so read them back or send the batch again: writing the current version again for the same space is a no-op). Callers should treat a failed batch as all-or-nothing and send it again whole: re-putting the records that landed is a no-op, and at the move to atproto's permissioned data this method becomes the owner's own PDS com.atproto.repo.applyWrites, which is atomic. One call spends one of the caller's writes (RateLimitExceeded), whatever the number of writes it carries. A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 8 MiB (8,388,608 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON or carries no writes or more than 200; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused call still spends one of the caller's writes. Draft tier.",
|
|
5678
|
+
description: "Write up to 200 records into the caller's own repo in one call: each write is applied in order, exactly as putRecord applies it (the same admission, receipts, no-op re-put and swapCid), each in its own transaction. NOT atomic: a write that is refused does not undo the writes before it or stop the ones after it, and each write's result says what happened to it. That is why this is not called applyWrites: atproto's com.atproto.repo.applyWrites commits all of its writes or none, and this does not (each write keeps putRecord's own per-record locking, so a batch never holds more than one record's locks). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose space the caller manages (it passes the space's manage leg, so it writes with the authority's pen), else Forbidden and nothing is written. A write refused for itself (a malformed or invalid record, a swapCid that does not match, a conflict) is reported in its result as the error putRecord would have answered, and the next write is applied. A refusal that holds for the whole call stops it with that error, and no later write is applied: the caller's account is being deleted, or is deleted (AccountDeleting; what it wrote goes with the account), or a failure inside the AppView (HTTP 500; the writes applied before it stay written, so read them back or send the batch again: writing the current version again for the same space is a no-op). Callers should treat a failed batch as all-or-nothing and send it again whole: re-putting the records that landed is a no-op, and at the move to atproto's permissioned data this method becomes the owner's own PDS com.atproto.repo.applyWrites, which is atomic. One call spends one of the caller's writes (RateLimitExceeded), whatever the number of writes it carries. A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 8 MiB (8,388,608 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON or carries no writes or more than 200; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused call still spends one of the caller's writes. Each write is checked against the token's space scopes as putRecord checks it. Draft tier.",
|
|
5667
5679
|
defs: {
|
|
5668
5680
|
main: {
|
|
5669
5681
|
type: 'procedure',
|
|
5682
|
+
description: "Up to 200 putRecord writes, applied in order, each in its own transaction, for one write of your rate. Not atomic: each write's result says what happened to it, and a write refused for itself does not stop the others (AccountDeleting or an HTTP 500 stops the rest). Send a failed batch again whole: re-putting what landed is a no-op. Space scopes and space.private apply to each write as in putRecord. Draft tier.",
|
|
5670
5683
|
input: {
|
|
5671
5684
|
encoding: 'application/json',
|
|
5672
5685
|
schema: {
|
|
@@ -6228,7 +6241,7 @@ export const schemaDict = {
|
|
|
6228
6241
|
},
|
|
6229
6242
|
composition: {
|
|
6230
6243
|
type: 'object',
|
|
6231
|
-
description: "How the curated record was composed from its sources. Each source is a version, ranked: 1 a source
|
|
6244
|
+
description: "How the curated record was composed from its sources. Each source is a version, ranked: 1 a source an admin writer vouches for in the collection (a mirror, a rule, a collective: its pub.techne.draft.publisher `writes` holds the collection and a live pub.techne.draft.credential from the commons root, or from an operator the root names, pins that declaration), 2 a verified account (a pub.techne.draft.verification by an issuer whose vouched declaration writes pub.techne.draft.verification) or a member of a collective vouched for to write membership claims (its vouched declaration's `writes` holds pub.techne.draft.membership), 3 everyone else. Per field the best rank wins, ties going to the newest edit; a rank 3 version only fills blanks or stands alone. A version with a moderation verdict the curator honours is left out (it has no rank here and gives no field), and so is a source by a retired identity: it is not a version. Readers show the composition as the default and may let a person pick another version.",
|
|
6232
6245
|
required: ['byline', 'ranks'],
|
|
6233
6246
|
properties: {
|
|
6234
6247
|
byline: {
|
|
@@ -6299,7 +6312,7 @@ export const schemaDict = {
|
|
|
6299
6312
|
PubTechneDraftPublisher: {
|
|
6300
6313
|
lexicon: 1,
|
|
6301
6314
|
id: 'pub.techne.draft.publisher',
|
|
6302
|
-
description: "An account's own declaration of what it publishes and vouches for: its name, the code it runs (if any), the record collections it reads and writes, the labels it may assign, and the credentials it issues. Written by the account in its own repo at rkey `self`. A declaration grants nothing alone: a reader trusts it only while
|
|
6315
|
+
description: "An account's own declaration of what it publishes and vouches for: its name, the code it runs (if any), the record collections it reads and writes, the labels it may assign, and the credentials it issues. Written by the account in its own repo at rkey `self`. A declaration grants nothing alone: a reader trusts it only while an admin writer the reader trusts holds a live pub.techne.draft.credential in the writer's own repo whose `subject` is this account, whose `record` is this record and whose `cid` is this record's current CID, and whose `revocation` is an address in that repo under pub.techne.draft.credentialRevocation at which no record exists. For the commons the admin writers are the commons root (COMMONS_ROOT_DID) and the operators it names (pub.techne.draft.provenancePolicy#vouchedWriter); the root can also revoke an operator's credential at the same rkey in its own repo. Editing the declaration changes its CID, so it is untrusted until an admin writer re-issues; revoking withdraws trust in everything the account published, past records included. Used by rules, mirrors, collectives and credential issuers alike. PUBLIC. Read by the rules runner, the curator, the commons and the AppView.",
|
|
6303
6316
|
defs: {
|
|
6304
6317
|
main: {
|
|
6305
6318
|
type: 'record',
|
|
@@ -6386,7 +6399,7 @@ export const schemaDict = {
|
|
|
6386
6399
|
type: 'ref',
|
|
6387
6400
|
ref: 'lex:pub.techne.draft.publisher#issue',
|
|
6388
6401
|
},
|
|
6389
|
-
description: "The credentials the account issues about a holder's record. Its pub.techne.draft.credential counts only while the root vouches for this declaration and the attested record is in an entry's `collection`, signed and stored by the subject, when the credential's `fields` are a subset of that entry's `fields` (a whole-record credential, by `cid`, only when that entry's `fields` is empty). Absent or empty: it issues none.",
|
|
6402
|
+
description: "The credentials the account issues about a holder's record. Its pub.techne.draft.credential counts only while an admin writer (the root, or an operator the root names) vouches for this declaration and the attested record is in an entry's `collection`, signed and stored by the subject, when the credential's `fields` are a subset of that entry's `fields` (a whole-record credential, by `cid`, only when that entry's `fields` is empty). Absent or empty: it issues none.",
|
|
6390
6403
|
},
|
|
6391
6404
|
createdAt: {
|
|
6392
6405
|
type: 'string',
|
|
@@ -6417,13 +6430,324 @@ export const schemaDict = {
|
|
|
6417
6430
|
},
|
|
6418
6431
|
},
|
|
6419
6432
|
},
|
|
6433
|
+
PubTechneDraftQueryComposeRecords: {
|
|
6434
|
+
lexicon: 1,
|
|
6435
|
+
id: 'pub.techne.draft.query.composeRecords',
|
|
6436
|
+
defs: {
|
|
6437
|
+
main: {
|
|
6438
|
+
type: 'procedure',
|
|
6439
|
+
description: "Up to 12 generic reads in one call. Each step is a pub.techne.draft.query.listRecords call (a list step) or a pub.techne.draft.query.getRecords call (a get step) and answers exactly as that method would for the same caller. A step runs once the steps it binds to have answered (at most 4 at once); the answer does not depend on which finished first. A binding, a string `$<step>.<output>` in a list step's `params` or among a get step's `uris`, stands for that output over the earlier step's records, deduplicated in the order first seen (possibly empty). Outputs: `uri`, `author`, `type`, `space`, `subject`, `references`, and `value.<path>` (string values only). A param may mix literals and bindings and stands for their union. A bound param is a list, so the query uses it with `in` on an indexed role; bind indexed outputs (they never hold a comma) rather than free text. A literal param may not start with `$`. A wrong shape refuses the whole call as InvalidRequest: more than 12 steps, a list step's `limit` over 50000, more than 500 literal `uris`, a `limit` or `cursor` on a `return: false` step. Once running, a step fails alone, its error under its name in `errors`: its method refuses it, a binding fills more than 500 `uris` or 2000 values, the steps read in one page answer more than 3000 records in all, a `return: false` step matches more than 50000, or the paged steps (a `limit` over 500, or `return: false`) read more than 50000 in all. Every step bound to a failed step is `Skipped`, naming the root failure; the others answer, and the call is 200. Budget: a signed-in caller has 20000 rows, refilled at 500 a second. A call is charged up front its declared maximum (a list step's `limit`, else its query's limit or 50, 500 for a `queryUri` or paged step; a get step's URIs, 500 if bound; at most 3000) plus 1000 per `count` step, is given back what it did not read, and is charged afterwards, into debt if need be, for what it read beyond that. A call the budget cannot cover now is RateLimitExceeded. Anonymous callers spend a budget per client IP (one shared budget ten times the size when the IP is unknown). `handles` and `curation` on a list step answer as getRecords does. The body must be application/json, else 415 before it is parsed or charged. A procedure only for its body size: nothing is written, and anyone may call it, signed in or not. Draft tier.",
|
|
6440
|
+
input: {
|
|
6441
|
+
encoding: 'application/json',
|
|
6442
|
+
schema: {
|
|
6443
|
+
type: 'object',
|
|
6444
|
+
required: ['steps'],
|
|
6445
|
+
properties: {
|
|
6446
|
+
steps: {
|
|
6447
|
+
type: 'array',
|
|
6448
|
+
minLength: 1,
|
|
6449
|
+
maxLength: 12,
|
|
6450
|
+
items: {
|
|
6451
|
+
type: 'ref',
|
|
6452
|
+
ref: 'lex:pub.techne.draft.query.composeRecords#step',
|
|
6453
|
+
},
|
|
6454
|
+
description: 'The steps. A binding names only an earlier step. A step runs as soon as the steps it binds to have answered, at most 4 at once, so the steps do not run in this order; the 3000-record cap is counted in this order.',
|
|
6455
|
+
},
|
|
6456
|
+
},
|
|
6457
|
+
},
|
|
6458
|
+
},
|
|
6459
|
+
output: {
|
|
6460
|
+
encoding: 'application/json',
|
|
6461
|
+
schema: {
|
|
6462
|
+
type: 'object',
|
|
6463
|
+
required: ['steps'],
|
|
6464
|
+
properties: {
|
|
6465
|
+
steps: {
|
|
6466
|
+
type: 'unknown',
|
|
6467
|
+
description: 'An object keyed by step name, each a #stepResult: one for every step whose `return` is not false.',
|
|
6468
|
+
},
|
|
6469
|
+
errors: {
|
|
6470
|
+
type: 'unknown',
|
|
6471
|
+
description: 'An object keyed by step name, each a #stepError: one for every step that failed or was skipped, returned or not. Absent when every step answered.',
|
|
6472
|
+
},
|
|
6473
|
+
},
|
|
6474
|
+
},
|
|
6475
|
+
},
|
|
6476
|
+
errors: [
|
|
6477
|
+
{
|
|
6478
|
+
name: 'InvalidRequest',
|
|
6479
|
+
description: "HTTP 400. A malformed call, before any step runs (naming the step where there is one): no steps or more than 12, a name repeated or not of the pattern, a step that is neither a list step nor a get step or both, a binding to no earlier step or an unknown output, a list step's `limit` over 500, a get step's literal `uris` over 500, a malformed flag, `params`, `fields` or `envelope` (a name not among its known values). Also HTTP 415, under this name, for a body whose content-type is not application/json, refused before it is parsed or charged. What a step's method refuses is that step's error (`errors`), not the call's.",
|
|
6480
|
+
},
|
|
6481
|
+
{
|
|
6482
|
+
name: 'RateLimitExceeded',
|
|
6483
|
+
description: "HTTP 429. A call whose charge (at most 15000) is more than what is left of its caller's row budget now: a signed-in caller's 20000 rows, refilled at 500 rows a second; an anonymous caller's the same per client IP, or, without a known client IP, the one budget all such callers share, ten times that size.",
|
|
6484
|
+
},
|
|
6485
|
+
],
|
|
6486
|
+
},
|
|
6487
|
+
step: {
|
|
6488
|
+
type: 'object',
|
|
6489
|
+
description: 'One read. A list step has `query` or `queryUri` (and may have `params`, `limit`, `cursor`, `count`, `handles`, `curation`), as listRecords takes them; a get step has `uris` (and may have `curated`, `handles`, `curation`, `defaults`, `includeBlockedByMe`), as getRecords takes them. Exactly one of the two.',
|
|
6490
|
+
required: ['name'],
|
|
6491
|
+
properties: {
|
|
6492
|
+
name: {
|
|
6493
|
+
type: 'string',
|
|
6494
|
+
minLength: 1,
|
|
6495
|
+
maxLength: 32,
|
|
6496
|
+
description: "The step's name, unique in the call: a letter, then up to 31 letters, digits or `_` (^[A-Za-z][A-Za-z0-9_]{0,31}$). The key of its result and the `<step>` of a binding to it.",
|
|
6497
|
+
},
|
|
6498
|
+
query: {
|
|
6499
|
+
type: 'unknown',
|
|
6500
|
+
description: 'List step: an inline pub.techne.draft.query object (not JSON in a string, as listRecords takes it). Give this or `queryUri`.',
|
|
6501
|
+
},
|
|
6502
|
+
queryUri: {
|
|
6503
|
+
type: 'string',
|
|
6504
|
+
format: 'at-uri',
|
|
6505
|
+
description: 'List step: a published pub.techne.draft.query record to run. Give this or `query`.',
|
|
6506
|
+
},
|
|
6507
|
+
params: {
|
|
6508
|
+
type: 'unknown',
|
|
6509
|
+
description: "List step: the query's parameters, an object of strings or lists of strings, as listRecords' `params` (an object here, not JSON in a string). A string `$<step>.<output>` is a binding and becomes a list; a list may mix literal strings and several bindings, and is their deduplicated union.",
|
|
6510
|
+
},
|
|
6511
|
+
limit: {
|
|
6512
|
+
type: 'integer',
|
|
6513
|
+
minimum: 1,
|
|
6514
|
+
maximum: 50000,
|
|
6515
|
+
description: "List step: how many records, as listRecords' `limit`, up to 50000: past 500 (one listRecords page) the server reads listRecords' pages one after another on the same read path and answers them as one, with the `cursor` after the last record answered. Not allowed on a `return: false` step. The steps read past one page read at most 50000 records in all per call; the step whose page crosses that fails (InvalidRequest), and so does any such step that reads a page after it.",
|
|
6516
|
+
},
|
|
6517
|
+
cursor: {
|
|
6518
|
+
type: 'string',
|
|
6519
|
+
description: "List step: the cursor of a previous page of this step, as listRecords' `cursor`. Not allowed on a `return: false` step.",
|
|
6520
|
+
},
|
|
6521
|
+
count: {
|
|
6522
|
+
type: 'boolean',
|
|
6523
|
+
default: false,
|
|
6524
|
+
description: "List step: also count, as listRecords' `count`.",
|
|
6525
|
+
},
|
|
6526
|
+
uris: {
|
|
6527
|
+
type: 'array',
|
|
6528
|
+
minLength: 1,
|
|
6529
|
+
maxLength: 500,
|
|
6530
|
+
items: {
|
|
6531
|
+
type: 'string',
|
|
6532
|
+
},
|
|
6533
|
+
description: "Get step: the URIs to read, as getRecords' `uris`; each entry an AT-URI or a binding, which is replaced by its list. At most 500 after binding.",
|
|
6534
|
+
},
|
|
6535
|
+
curated: {
|
|
6536
|
+
type: 'boolean',
|
|
6537
|
+
description: "Get step: as getRecords' `curated`.",
|
|
6538
|
+
},
|
|
6539
|
+
handles: {
|
|
6540
|
+
type: 'boolean',
|
|
6541
|
+
description: "As getRecords' `handles`: in a get step for its URIs, in a list step for the URIs of the records it answered.",
|
|
6542
|
+
},
|
|
6543
|
+
curation: {
|
|
6544
|
+
type: 'boolean',
|
|
6545
|
+
description: "As getRecords' `curation`: in a get step for its URIs, in a list step for the URIs of the records it answered.",
|
|
6546
|
+
},
|
|
6547
|
+
defaults: {
|
|
6548
|
+
type: 'boolean',
|
|
6549
|
+
description: "Get step: as getRecords' `defaults`.",
|
|
6550
|
+
},
|
|
6551
|
+
includeBlockedByMe: {
|
|
6552
|
+
type: 'boolean',
|
|
6553
|
+
description: "Get step: as getRecords' `includeBlockedByMe`.",
|
|
6554
|
+
},
|
|
6555
|
+
return: {
|
|
6556
|
+
type: 'boolean',
|
|
6557
|
+
default: true,
|
|
6558
|
+
description: "False: the step's records only feed later bindings and are not in the output. A list step asked `return: false` is read in full on the server (every record its query matches for the caller, page after page on listRecords' read path), so a later step binds to all of it; it takes no `limit` or `cursor`, and a query that matches more than 50000 records fails the step (InvalidRequest naming the step and the ceiling), never answered in part.",
|
|
6559
|
+
},
|
|
6560
|
+
fields: {
|
|
6561
|
+
type: 'array',
|
|
6562
|
+
minLength: 1,
|
|
6563
|
+
maxLength: 32,
|
|
6564
|
+
items: {
|
|
6565
|
+
type: 'string',
|
|
6566
|
+
maxLength: 256,
|
|
6567
|
+
},
|
|
6568
|
+
description: "Value paths (`a`, `a.b`, `a[].b`): each answered record's `value` keeps only these. Bindings read the whole value, before this selection. The record's other fields come back as `envelope` says, and its `uri` as `uri` says.",
|
|
6569
|
+
},
|
|
6570
|
+
envelope: {
|
|
6571
|
+
type: 'array',
|
|
6572
|
+
maxLength: 10,
|
|
6573
|
+
items: {
|
|
6574
|
+
type: 'string',
|
|
6575
|
+
knownValues: [
|
|
6576
|
+
'cid',
|
|
6577
|
+
'author',
|
|
6578
|
+
'collection',
|
|
6579
|
+
'time',
|
|
6580
|
+
'space',
|
|
6581
|
+
'source',
|
|
6582
|
+
'curated',
|
|
6583
|
+
'held',
|
|
6584
|
+
'measures',
|
|
6585
|
+
'signals',
|
|
6586
|
+
],
|
|
6587
|
+
},
|
|
6588
|
+
description: 'The record fields (#record) each answered record keeps besides `uri` (kept unless `uri` is false) and `value` (always kept): any of cid, author, collection, time, space, source, curated, held, measures, signals and nothing else: the list is closed to these known values, and another name refuses the call as InvalidRequest. Without it every field comes back; `[]` keeps only `value` and, unless `uri` is false, `uri`. A field left out is absent, so a flag left out (`curated`, `held`) reads as false. Bindings read every field, before this selection.',
|
|
6589
|
+
},
|
|
6590
|
+
uri: {
|
|
6591
|
+
type: 'boolean',
|
|
6592
|
+
default: true,
|
|
6593
|
+
description: "False: each answered record comes back without its `uri`, for a step whose records nobody reads by URI. Bindings read it, before this cut: `$<step>.uri` stands for the step's records' URIs either way. A get step's `resolved`, `curation` and `defaults` still name records by URI, so with `uri: false` they cannot be matched to the records answered.",
|
|
6594
|
+
},
|
|
6595
|
+
},
|
|
6596
|
+
},
|
|
6597
|
+
stepResult: {
|
|
6598
|
+
type: 'object',
|
|
6599
|
+
description: "What the step's method answered: a list step's fields are listRecords' output, a get step's are getRecords' output.",
|
|
6600
|
+
required: ['records'],
|
|
6601
|
+
properties: {
|
|
6602
|
+
records: {
|
|
6603
|
+
type: 'array',
|
|
6604
|
+
items: {
|
|
6605
|
+
type: 'ref',
|
|
6606
|
+
ref: 'lex:pub.techne.draft.query.composeRecords#record',
|
|
6607
|
+
},
|
|
6608
|
+
description: "As the step's method answers them, as #record: `value` always, `uri` unless the step's `uri` is false, every other record field unless the step's `envelope` left it out, and `value` cut to `fields` when given.",
|
|
6609
|
+
},
|
|
6610
|
+
cursor: {
|
|
6611
|
+
type: 'string',
|
|
6612
|
+
description: "List step: as listRecords' `cursor`.",
|
|
6613
|
+
},
|
|
6614
|
+
count: {
|
|
6615
|
+
type: 'integer',
|
|
6616
|
+
description: "List step, asked with `count`: as listRecords' `count`.",
|
|
6617
|
+
},
|
|
6618
|
+
capped: {
|
|
6619
|
+
type: 'boolean',
|
|
6620
|
+
description: "List step, asked with `count`: as listRecords' `capped`.",
|
|
6621
|
+
},
|
|
6622
|
+
withheld: {
|
|
6623
|
+
type: 'array',
|
|
6624
|
+
items: {
|
|
6625
|
+
type: 'string',
|
|
6626
|
+
format: 'at-uri',
|
|
6627
|
+
},
|
|
6628
|
+
description: "Get step: as getRecords' `withheld`.",
|
|
6629
|
+
},
|
|
6630
|
+
handles: {
|
|
6631
|
+
type: 'array',
|
|
6632
|
+
items: {
|
|
6633
|
+
type: 'ref',
|
|
6634
|
+
ref: 'lex:pub.techne.draft.query.getRecords#handle',
|
|
6635
|
+
},
|
|
6636
|
+
description: "Asked with `handles`: as getRecords' `handles`.",
|
|
6637
|
+
},
|
|
6638
|
+
resolved: {
|
|
6639
|
+
type: 'array',
|
|
6640
|
+
items: {
|
|
6641
|
+
type: 'ref',
|
|
6642
|
+
ref: 'lex:pub.techne.draft.query.getRecords#resolved',
|
|
6643
|
+
},
|
|
6644
|
+
description: "Get step, asked with `curated`: as getRecords' `resolved`.",
|
|
6645
|
+
},
|
|
6646
|
+
curation: {
|
|
6647
|
+
type: 'array',
|
|
6648
|
+
items: {
|
|
6649
|
+
type: 'ref',
|
|
6650
|
+
ref: 'lex:pub.techne.draft.query.getRecords#curation',
|
|
6651
|
+
},
|
|
6652
|
+
description: "Asked with `curation`: as getRecords' `curation`.",
|
|
6653
|
+
},
|
|
6654
|
+
defaults: {
|
|
6655
|
+
type: 'array',
|
|
6656
|
+
items: {
|
|
6657
|
+
type: 'ref',
|
|
6658
|
+
ref: 'lex:pub.techne.draft.query.getRecords#default',
|
|
6659
|
+
},
|
|
6660
|
+
description: "Get step, asked with `defaults`: as getRecords' `defaults`.",
|
|
6661
|
+
},
|
|
6662
|
+
},
|
|
6663
|
+
},
|
|
6664
|
+
record: {
|
|
6665
|
+
type: 'object',
|
|
6666
|
+
description: "One answered record of a step: pub.techne.draft.query.listRecords#record with only `value` required. `uri` is present unless the step's `uri` is false; every other field is present as listRecords#record has it unless the step's `envelope` left it out; `fields` cuts `value`.",
|
|
6667
|
+
required: ['value'],
|
|
6668
|
+
properties: {
|
|
6669
|
+
uri: {
|
|
6670
|
+
type: 'string',
|
|
6671
|
+
format: 'at-uri',
|
|
6672
|
+
},
|
|
6673
|
+
cid: {
|
|
6674
|
+
type: 'string',
|
|
6675
|
+
format: 'cid',
|
|
6676
|
+
},
|
|
6677
|
+
author: {
|
|
6678
|
+
type: 'string',
|
|
6679
|
+
format: 'did',
|
|
6680
|
+
description: 'The DID whose repo holds the record.',
|
|
6681
|
+
},
|
|
6682
|
+
collection: {
|
|
6683
|
+
type: 'string',
|
|
6684
|
+
format: 'nsid',
|
|
6685
|
+
},
|
|
6686
|
+
value: {
|
|
6687
|
+
type: 'unknown',
|
|
6688
|
+
description: 'The record body.',
|
|
6689
|
+
},
|
|
6690
|
+
time: {
|
|
6691
|
+
type: 'string',
|
|
6692
|
+
format: 'datetime',
|
|
6693
|
+
description: "The record's indexed time (the `written` role).",
|
|
6694
|
+
},
|
|
6695
|
+
space: {
|
|
6696
|
+
type: 'string',
|
|
6697
|
+
format: 'at-uri',
|
|
6698
|
+
description: "The space a permissioned record counts in. Absent for a public record, and for a caller's own record that counts in none.",
|
|
6699
|
+
},
|
|
6700
|
+
source: {
|
|
6701
|
+
type: 'string',
|
|
6702
|
+
knownValues: ['public', 'permissioned'],
|
|
6703
|
+
description: 'Whether the record is public (on the firehose) or permissioned.',
|
|
6704
|
+
},
|
|
6705
|
+
curated: {
|
|
6706
|
+
type: 'boolean',
|
|
6707
|
+
description: 'A public record that is a live curated record: a curator the commons root trusts merged it from its sources, and it is not superseded. Its `pub.techne.draft.provenance` (same author, subject this record) names who it is from. Absent otherwise.',
|
|
6708
|
+
},
|
|
6709
|
+
held: {
|
|
6710
|
+
type: 'boolean',
|
|
6711
|
+
description: "The caller's own permissioned record that the reach limit holds back from the people it would reach: a held share, answered to its author alone (to anyone else it is not found) until the limit admits it. Absent otherwise. A query with `held: true` answers only these.",
|
|
6712
|
+
},
|
|
6713
|
+
measures: {
|
|
6714
|
+
type: 'unknown',
|
|
6715
|
+
description: "The numbers the query's operators produced for this record, by name (a `near` distance in metres, a `matches` rank).",
|
|
6716
|
+
},
|
|
6717
|
+
signals: {
|
|
6718
|
+
type: 'unknown',
|
|
6719
|
+
description: 'The server-side signals the query asked for, by name; a signal with no value for this record is absent.',
|
|
6720
|
+
},
|
|
6721
|
+
},
|
|
6722
|
+
},
|
|
6723
|
+
stepError: {
|
|
6724
|
+
type: 'object',
|
|
6725
|
+
description: "Why a step has no result: what its method refused (as that method would answer it), `Skipped` (424) for a step that binds to a failed one (it may already have run; its answer is dropped), or InvalidRequest (400) for a step past a call limit: its bindings fill a get step's `uris` past 500 or a bound list past 2000 values, or its records would take the call past 3000 answered across the steps read in one page, counted in step order, or it is a list step asked `return: false` whose query matches more than 50000 records, or a page it read took the records read by the call's steps read past one page past 50000; or InternalError (500) for a step read past one page whose pages stop advancing (a cursor that comes back twice).",
|
|
6726
|
+
required: ['error', 'message', 'status'],
|
|
6727
|
+
properties: {
|
|
6728
|
+
error: {
|
|
6729
|
+
type: 'string',
|
|
6730
|
+
description: "The error name the step's method would answer (InvalidRequest, NotFound, ...); InvalidRequest for a step past a call limit (#stepError); or `Skipped`: a step it binds to failed.",
|
|
6731
|
+
},
|
|
6732
|
+
message: {
|
|
6733
|
+
type: 'string',
|
|
6734
|
+
description: 'What went wrong, naming the step; for `Skipped`, `step <name>: skipped because <failed step> failed`, naming the step that failed itself (the root of the chain).',
|
|
6735
|
+
},
|
|
6736
|
+
status: {
|
|
6737
|
+
type: 'integer',
|
|
6738
|
+
description: "The HTTP status the step's method would answer alone; 400 for a step past a call limit (a get step's bound `uris` past 500, a bound list past 2000 values, the one-page steps' records past 3000, a `return: false` step matching past 50000, the call's paged reads past 50000); 424 for `Skipped`.",
|
|
6739
|
+
},
|
|
6740
|
+
},
|
|
6741
|
+
},
|
|
6742
|
+
},
|
|
6743
|
+
},
|
|
6420
6744
|
PubTechneDraftQueryCountRecords: {
|
|
6421
6745
|
lexicon: 1,
|
|
6422
6746
|
id: 'pub.techne.draft.query.countRecords',
|
|
6423
6747
|
defs: {
|
|
6424
6748
|
main: {
|
|
6425
6749
|
type: 'query',
|
|
6426
|
-
description: "How many records a pub.techne.draft.query names: the records listRecords would answer for it (the same read path, and the platform's `decide` on every record answered as written or permissioned), each once. The count stops at 1000 (`capped`). The query's `order`, `limit
|
|
6750
|
+
description: "How many records a pub.techne.draft.query names: the records listRecords would answer for it (the same read path, and the platform's `decide` on every record answered as written or permissioned), each once. The count stops at 1000 (`capped`). The query's `order`, `limit` and `signals` are ignored, so a record without the role a list is ordered by is still counted. Anyone may call it, signed in or not; an anonymous caller counts public records only. Draft tier.",
|
|
6427
6751
|
parameters: {
|
|
6428
6752
|
type: 'params',
|
|
6429
6753
|
properties: {
|
|
@@ -6654,7 +6978,7 @@ export const schemaDict = {
|
|
|
6654
6978
|
},
|
|
6655
6979
|
reason: {
|
|
6656
6980
|
type: 'string',
|
|
6657
|
-
description: "With `notCurated`: why, in words for people (a moderation
|
|
6981
|
+
description: "With `notCurated`: why, in words for people (a moderation verdict value such as `spam`, `obscene` or `!takedown`, the index's refusal, or `not curated: no lexicon` / `not curated: no curator`).",
|
|
6658
6982
|
},
|
|
6659
6983
|
},
|
|
6660
6984
|
},
|
|
@@ -6703,7 +7027,7 @@ export const schemaDict = {
|
|
|
6703
7027
|
limit: {
|
|
6704
7028
|
type: 'integer',
|
|
6705
7029
|
minimum: 1,
|
|
6706
|
-
maximum:
|
|
7030
|
+
maximum: 500,
|
|
6707
7031
|
description: "The page size; default the query's `limit`, else 50.",
|
|
6708
7032
|
},
|
|
6709
7033
|
cursor: {
|
|
@@ -6822,10 +7146,6 @@ export const schemaDict = {
|
|
|
6822
7146
|
type: 'unknown',
|
|
6823
7147
|
description: 'The server-side signals the query asked for, by name; a signal with no value for this record is absent.',
|
|
6824
7148
|
},
|
|
6825
|
-
included: {
|
|
6826
|
-
type: 'unknown',
|
|
6827
|
-
description: "The records the query's `include` attached, by key (`author`, `subject`), each a #record; absent when there is none the caller may read.",
|
|
6828
|
-
},
|
|
6829
7149
|
},
|
|
6830
7150
|
},
|
|
6831
7151
|
},
|
|
@@ -6924,8 +7244,8 @@ export const schemaDict = {
|
|
|
6924
7244
|
},
|
|
6925
7245
|
reason: {
|
|
6926
7246
|
type: 'string',
|
|
6927
|
-
knownValues: ['invalid', 'placement'],
|
|
6928
|
-
description: "`invalid`: the body does not satisfy its lexicon. `placement`: the record has no public home (its collection is private-only, or a credential that is not its issuer's own unsigned one).",
|
|
7247
|
+
knownValues: ['invalid', 'placement', 'budget'],
|
|
7248
|
+
description: "`invalid`: the body does not satisfy its lexicon. `placement`: the record has no public home (its collection is private-only, or a credential that is not its issuer's own unsigned one). `budget`: a record of a runtime (community or requested) type skipped because its author, or the type, had used the day's indexing budget; a later version may be indexed on another day.",
|
|
6929
7249
|
},
|
|
6930
7250
|
message: {
|
|
6931
7251
|
type: 'string',
|
|
@@ -7029,7 +7349,7 @@ export const schemaDict = {
|
|
|
7029
7349
|
PubTechneDraftReceipt: {
|
|
7030
7350
|
lexicon: 1,
|
|
7031
7351
|
id: 'pub.techne.draft.receipt',
|
|
7032
|
-
description: "A note that a rule has processed a record. It names the record at a revision, and what the rule wrote about it (possibly nothing). A rule at stage `curated` writes one for every curated record it processes, so a reader can tell a record that is done from one still waiting, including when the rule had nothing to say. The curator's pub.techne.draft.provenance is the merge receipt; these are the curated-stage ones. A curated record is fully processed when it has its provenance and a receipt, for its current revision, from every rule the commons root
|
|
7352
|
+
description: "A note that a rule has processed a record. It names the record at a revision, and what the rule wrote about it (possibly nothing). A rule at stage `curated` writes one for every curated record it processes, so a reader can tell a record that is done from one still waiting, including when the rule had nothing to say. The curator's pub.techne.draft.provenance is the merge receipt; these are the curated-stage ones. A curated record is fully processed when it has its provenance and a receipt, for its current revision, from every rule at `stage: curated` that an admin writer (the commons root, or an operator the root names) vouches for. Written by the commons rules in their own repos. PUBLIC.",
|
|
7033
7353
|
defs: {
|
|
7034
7354
|
main: {
|
|
7035
7355
|
type: 'record',
|
|
@@ -7103,10 +7423,874 @@ export const schemaDict = {
|
|
|
7103
7423
|
},
|
|
7104
7424
|
},
|
|
7105
7425
|
},
|
|
7426
|
+
PubTechneDraftRegistryBlockIndex: {
|
|
7427
|
+
lexicon: 1,
|
|
7428
|
+
id: 'pub.techne.draft.registry.blockIndex',
|
|
7429
|
+
defs: {
|
|
7430
|
+
main: {
|
|
7431
|
+
type: 'procedure',
|
|
7432
|
+
description: "Operator only. Stop indexing one author's records of a community or requested type, and remove the ones this platform indexed. The block outlives the author's account here, so neither the firehose nor a backfill brings the records back. Other authors' records of the type are untouched. The records stay in the author's repo; this platform stops serving them.",
|
|
7433
|
+
input: {
|
|
7434
|
+
encoding: 'application/json',
|
|
7435
|
+
schema: {
|
|
7436
|
+
type: 'object',
|
|
7437
|
+
required: ['nsid', 'author', 'reason'],
|
|
7438
|
+
properties: {
|
|
7439
|
+
nsid: {
|
|
7440
|
+
type: 'string',
|
|
7441
|
+
format: 'nsid',
|
|
7442
|
+
description: 'The runtime type (a community draft or a requested type).',
|
|
7443
|
+
},
|
|
7444
|
+
author: {
|
|
7445
|
+
type: 'string',
|
|
7446
|
+
format: 'did',
|
|
7447
|
+
description: 'The author whose records of the type are blocked.',
|
|
7448
|
+
},
|
|
7449
|
+
reason: {
|
|
7450
|
+
type: 'string',
|
|
7451
|
+
minLength: 1,
|
|
7452
|
+
maxLength: 1000,
|
|
7453
|
+
description: 'Why, kept with the block.',
|
|
7454
|
+
},
|
|
7455
|
+
},
|
|
7456
|
+
},
|
|
7457
|
+
},
|
|
7458
|
+
output: {
|
|
7459
|
+
encoding: 'application/json',
|
|
7460
|
+
schema: {
|
|
7461
|
+
type: 'object',
|
|
7462
|
+
required: ['nsid', 'author', 'purged', 'page'],
|
|
7463
|
+
properties: {
|
|
7464
|
+
nsid: {
|
|
7465
|
+
type: 'string',
|
|
7466
|
+
format: 'nsid',
|
|
7467
|
+
},
|
|
7468
|
+
author: {
|
|
7469
|
+
type: 'string',
|
|
7470
|
+
format: 'did',
|
|
7471
|
+
},
|
|
7472
|
+
purged: {
|
|
7473
|
+
type: 'integer',
|
|
7474
|
+
minimum: 0,
|
|
7475
|
+
description: "How many of the author's indexed records of the type were removed.",
|
|
7476
|
+
},
|
|
7477
|
+
page: {
|
|
7478
|
+
type: 'string',
|
|
7479
|
+
format: 'uri',
|
|
7480
|
+
description: "The type's page on techne.pub.",
|
|
7481
|
+
},
|
|
7482
|
+
},
|
|
7483
|
+
},
|
|
7484
|
+
},
|
|
7485
|
+
errors: [
|
|
7486
|
+
{
|
|
7487
|
+
name: 'AuthenticationRequired',
|
|
7488
|
+
description: 'Blocking is a signed-in act.',
|
|
7489
|
+
},
|
|
7490
|
+
{
|
|
7491
|
+
name: 'Forbidden',
|
|
7492
|
+
description: 'The caller is not an operator of this platform.',
|
|
7493
|
+
},
|
|
7494
|
+
{
|
|
7495
|
+
name: 'UnknownType',
|
|
7496
|
+
description: '`nsid` names no community or requested type (our own types are not limited).',
|
|
7497
|
+
},
|
|
7498
|
+
],
|
|
7499
|
+
},
|
|
7500
|
+
},
|
|
7501
|
+
},
|
|
7502
|
+
PubTechneDraftRegistryDefs: {
|
|
7503
|
+
lexicon: 1,
|
|
7504
|
+
id: 'pub.techne.draft.registry.defs',
|
|
7505
|
+
description: 'Shared shapes of the type registry: what a type is (its lexicon, query roles, creator, state, record count, sidecars) and what a request to index a foreign type is.',
|
|
7506
|
+
defs: {
|
|
7507
|
+
typeSummary: {
|
|
7508
|
+
type: 'object',
|
|
7509
|
+
description: 'One type in a list.',
|
|
7510
|
+
required: ['nsid', 'name', 'origin', 'state', 'recordCount', 'page'],
|
|
7511
|
+
properties: {
|
|
7512
|
+
nsid: {
|
|
7513
|
+
type: 'string',
|
|
7514
|
+
format: 'nsid',
|
|
7515
|
+
},
|
|
7516
|
+
name: {
|
|
7517
|
+
type: 'string',
|
|
7518
|
+
maxLength: 63,
|
|
7519
|
+
description: "The NSID's last segment, which is how the type reads.",
|
|
7520
|
+
},
|
|
7521
|
+
description: {
|
|
7522
|
+
type: 'string',
|
|
7523
|
+
description: "The lexicon's own description of its main def (else of the document), as written: its length is the lexicon's.",
|
|
7524
|
+
},
|
|
7525
|
+
origin: {
|
|
7526
|
+
type: 'string',
|
|
7527
|
+
maxLength: 32,
|
|
7528
|
+
knownValues: ['platform', 'community', 'requested'],
|
|
7529
|
+
description: '`platform`: a type the platform ships. `community`: a draft someone published, `pub.techne.draft.c.<id>.<name>`. `requested`: a type defined elsewhere on the network that someone asked the platform to index.',
|
|
7530
|
+
},
|
|
7531
|
+
state: {
|
|
7532
|
+
type: 'string',
|
|
7533
|
+
maxLength: 32,
|
|
7534
|
+
knownValues: ['indexed', 'pending', 'declined', 'blocked'],
|
|
7535
|
+
description: "`indexed`: a platform or community type, or an approved request. An approved request's existing records are read from the network (a walk of its history) from the approval on; its new writes on the network reach the platform once a release adds the type to what the platform subscribes to, and until then only those written through the platform arrive. `pending`: a request not yet decided; only records written through the platform are indexed. `declined`: an operator declined the request; it stays as pending does. `blocked`: an operator stopped indexing it.",
|
|
7536
|
+
},
|
|
7537
|
+
creator: {
|
|
7538
|
+
type: 'string',
|
|
7539
|
+
format: 'did',
|
|
7540
|
+
description: 'Who published a community type, or who requested a foreign one. Only the creator may change a community type.',
|
|
7541
|
+
},
|
|
7542
|
+
sidecarOf: {
|
|
7543
|
+
type: 'string',
|
|
7544
|
+
format: 'nsid',
|
|
7545
|
+
description: 'The type this one extends: its records carry a `subject` naming a record of that type.',
|
|
7546
|
+
},
|
|
7547
|
+
forkOf: {
|
|
7548
|
+
type: 'string',
|
|
7549
|
+
format: 'nsid',
|
|
7550
|
+
description: 'The community type this one was forked from.',
|
|
7551
|
+
},
|
|
7552
|
+
recordCount: {
|
|
7553
|
+
type: 'integer',
|
|
7554
|
+
minimum: 0,
|
|
7555
|
+
description: 'Public records of this type the platform holds now.',
|
|
7556
|
+
},
|
|
7557
|
+
page: {
|
|
7558
|
+
type: 'string',
|
|
7559
|
+
format: 'uri',
|
|
7560
|
+
description: "The type's page on techne.pub. Share it with the person you are working with.",
|
|
7561
|
+
},
|
|
7562
|
+
updatedAt: {
|
|
7563
|
+
type: 'string',
|
|
7564
|
+
format: 'datetime',
|
|
7565
|
+
},
|
|
7566
|
+
},
|
|
7567
|
+
},
|
|
7568
|
+
typeView: {
|
|
7569
|
+
type: 'object',
|
|
7570
|
+
description: 'One type in full.',
|
|
7571
|
+
required: [
|
|
7572
|
+
'nsid',
|
|
7573
|
+
'name',
|
|
7574
|
+
'origin',
|
|
7575
|
+
'state',
|
|
7576
|
+
'recordCount',
|
|
7577
|
+
'page',
|
|
7578
|
+
'lexicon',
|
|
7579
|
+
],
|
|
7580
|
+
properties: {
|
|
7581
|
+
nsid: {
|
|
7582
|
+
type: 'string',
|
|
7583
|
+
format: 'nsid',
|
|
7584
|
+
},
|
|
7585
|
+
name: {
|
|
7586
|
+
type: 'string',
|
|
7587
|
+
maxLength: 63,
|
|
7588
|
+
},
|
|
7589
|
+
description: {
|
|
7590
|
+
type: 'string',
|
|
7591
|
+
},
|
|
7592
|
+
origin: {
|
|
7593
|
+
type: 'string',
|
|
7594
|
+
maxLength: 32,
|
|
7595
|
+
knownValues: ['platform', 'community', 'requested'],
|
|
7596
|
+
},
|
|
7597
|
+
state: {
|
|
7598
|
+
type: 'string',
|
|
7599
|
+
maxLength: 32,
|
|
7600
|
+
knownValues: ['indexed', 'pending', 'declined', 'blocked'],
|
|
7601
|
+
},
|
|
7602
|
+
creator: {
|
|
7603
|
+
type: 'string',
|
|
7604
|
+
format: 'did',
|
|
7605
|
+
},
|
|
7606
|
+
sidecarOf: {
|
|
7607
|
+
type: 'string',
|
|
7608
|
+
format: 'nsid',
|
|
7609
|
+
},
|
|
7610
|
+
forkOf: {
|
|
7611
|
+
type: 'string',
|
|
7612
|
+
format: 'nsid',
|
|
7613
|
+
},
|
|
7614
|
+
recordCount: {
|
|
7615
|
+
type: 'integer',
|
|
7616
|
+
minimum: 0,
|
|
7617
|
+
},
|
|
7618
|
+
page: {
|
|
7619
|
+
type: 'string',
|
|
7620
|
+
format: 'uri',
|
|
7621
|
+
},
|
|
7622
|
+
lexicon: {
|
|
7623
|
+
type: 'unknown',
|
|
7624
|
+
description: "The type's current lexicon document.",
|
|
7625
|
+
},
|
|
7626
|
+
query: {
|
|
7627
|
+
type: 'unknown',
|
|
7628
|
+
description: "The type's `{nsid}.query` document: which fields fill the shared query roles (the time, the place, the text, the references). Absent when the type has none; its records can then only be got and listed.",
|
|
7629
|
+
},
|
|
7630
|
+
version: {
|
|
7631
|
+
type: 'integer',
|
|
7632
|
+
minimum: 1,
|
|
7633
|
+
description: "A community or requested type's version. A community type's is 1 at its first publish and one more at each additive change; a requested type's is 1. Absent for a platform type.",
|
|
7634
|
+
},
|
|
7635
|
+
schema: {
|
|
7636
|
+
type: 'ref',
|
|
7637
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
7638
|
+
description: "The `com.atproto.lexicon.schema` record this lexicon is published as (in the registry's repo for a community type, in its authority's repo for a foreign one).",
|
|
7639
|
+
},
|
|
7640
|
+
sidecars: {
|
|
7641
|
+
type: 'array',
|
|
7642
|
+
maxLength: 100,
|
|
7643
|
+
items: {
|
|
7644
|
+
type: 'string',
|
|
7645
|
+
format: 'nsid',
|
|
7646
|
+
},
|
|
7647
|
+
description: 'Types that extend this one, most used first.',
|
|
7648
|
+
},
|
|
7649
|
+
request: {
|
|
7650
|
+
type: 'ref',
|
|
7651
|
+
ref: 'lex:pub.techne.draft.registry.defs#requestView',
|
|
7652
|
+
description: 'For a requested type, its request.',
|
|
7653
|
+
},
|
|
7654
|
+
createdAt: {
|
|
7655
|
+
type: 'string',
|
|
7656
|
+
format: 'datetime',
|
|
7657
|
+
},
|
|
7658
|
+
updatedAt: {
|
|
7659
|
+
type: 'string',
|
|
7660
|
+
format: 'datetime',
|
|
7661
|
+
},
|
|
7662
|
+
},
|
|
7663
|
+
},
|
|
7664
|
+
requestView: {
|
|
7665
|
+
type: 'object',
|
|
7666
|
+
description: 'A request to index a type defined elsewhere on the network.',
|
|
7667
|
+
required: [
|
|
7668
|
+
'nsid',
|
|
7669
|
+
'requester',
|
|
7670
|
+
'state',
|
|
7671
|
+
'uri',
|
|
7672
|
+
'cid',
|
|
7673
|
+
'createdAt',
|
|
7674
|
+
'page',
|
|
7675
|
+
],
|
|
7676
|
+
properties: {
|
|
7677
|
+
nsid: {
|
|
7678
|
+
type: 'string',
|
|
7679
|
+
format: 'nsid',
|
|
7680
|
+
},
|
|
7681
|
+
requester: {
|
|
7682
|
+
type: 'string',
|
|
7683
|
+
format: 'did',
|
|
7684
|
+
},
|
|
7685
|
+
state: {
|
|
7686
|
+
type: 'string',
|
|
7687
|
+
maxLength: 32,
|
|
7688
|
+
knownValues: ['pending', 'approved', 'declined', 'blocked'],
|
|
7689
|
+
description: "`pending` until an operator decides. `approved`: an operator's live commons credential pinned this request's CID when the platform read it; the approval stands after that, even if the credential is later withdrawn (only a block, registry.purgeType, ends it). Approval starts a walk of the type's existing records on the network; its new writes there reach the platform once a release adds the type to what the platform subscribes to. `declined`: an operator declined it; records written through the platform are still indexed. `blocked`: an operator stopped indexing the type (registry.purgeType); nothing of it is indexed, and an approval or a decline no longer changes that.",
|
|
7690
|
+
},
|
|
7691
|
+
uri: {
|
|
7692
|
+
type: 'string',
|
|
7693
|
+
format: 'at-uri',
|
|
7694
|
+
description: "The pub.techne.draft.registry.typeRequest record, in the registry's repo.",
|
|
7695
|
+
},
|
|
7696
|
+
cid: {
|
|
7697
|
+
type: 'string',
|
|
7698
|
+
format: 'cid',
|
|
7699
|
+
description: 'Its CID, which an approval pins.',
|
|
7700
|
+
},
|
|
7701
|
+
query: {
|
|
7702
|
+
type: 'unknown',
|
|
7703
|
+
description: 'The query roles the requester mapped, as a `{nsid}.query` document.',
|
|
7704
|
+
},
|
|
7705
|
+
preview: {
|
|
7706
|
+
type: 'ref',
|
|
7707
|
+
ref: 'lex:pub.techne.draft.registry.defs#preview',
|
|
7708
|
+
},
|
|
7709
|
+
decidedBy: {
|
|
7710
|
+
type: 'string',
|
|
7711
|
+
format: 'did',
|
|
7712
|
+
description: 'The operator who approved or declined it.',
|
|
7713
|
+
},
|
|
7714
|
+
decidedAt: {
|
|
7715
|
+
type: 'string',
|
|
7716
|
+
format: 'datetime',
|
|
7717
|
+
},
|
|
7718
|
+
decision: {
|
|
7719
|
+
type: 'string',
|
|
7720
|
+
format: 'at-uri',
|
|
7721
|
+
description: 'The record that decided it: the approving credential or the declining verdict.',
|
|
7722
|
+
},
|
|
7723
|
+
createdAt: {
|
|
7724
|
+
type: 'string',
|
|
7725
|
+
format: 'datetime',
|
|
7726
|
+
},
|
|
7727
|
+
page: {
|
|
7728
|
+
type: 'string',
|
|
7729
|
+
format: 'uri',
|
|
7730
|
+
description: "The type's page on techne.pub.",
|
|
7731
|
+
},
|
|
7732
|
+
},
|
|
7733
|
+
},
|
|
7734
|
+
preview: {
|
|
7735
|
+
type: 'object',
|
|
7736
|
+
description: 'What indexing a foreign type would take on, read when it was requested: where its schema is published and how big it is on the network.',
|
|
7737
|
+
required: ['schema', 'fields'],
|
|
7738
|
+
properties: {
|
|
7739
|
+
schema: {
|
|
7740
|
+
type: 'ref',
|
|
7741
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
7742
|
+
description: "The `com.atproto.lexicon.schema` record its NSID authority's `_lexicon` TXT record led to.",
|
|
7743
|
+
},
|
|
7744
|
+
schemaCreatedAt: {
|
|
7745
|
+
type: 'string',
|
|
7746
|
+
format: 'datetime',
|
|
7747
|
+
description: 'When that schema record was first written, as far as the platform can tell.',
|
|
7748
|
+
},
|
|
7749
|
+
fields: {
|
|
7750
|
+
type: 'array',
|
|
7751
|
+
maxLength: 200,
|
|
7752
|
+
items: {
|
|
7753
|
+
type: 'string',
|
|
7754
|
+
maxLength: 256,
|
|
7755
|
+
},
|
|
7756
|
+
description: "The main record's top-level fields, each as `name: type`.",
|
|
7757
|
+
},
|
|
7758
|
+
repos: {
|
|
7759
|
+
type: 'integer',
|
|
7760
|
+
minimum: 0,
|
|
7761
|
+
description: 'Accounts the relay lists as holding records of it (`com.atproto.sync.listReposByCollection`), counted up to a ceiling.',
|
|
7762
|
+
},
|
|
7763
|
+
reposCapped: {
|
|
7764
|
+
type: 'boolean',
|
|
7765
|
+
description: 'Whether `repos` stopped at the ceiling.',
|
|
7766
|
+
},
|
|
7767
|
+
sampledRecords: {
|
|
7768
|
+
type: 'integer',
|
|
7769
|
+
minimum: 0,
|
|
7770
|
+
description: 'Records read from a sample of those accounts.',
|
|
7771
|
+
},
|
|
7772
|
+
sampledValid: {
|
|
7773
|
+
type: 'integer',
|
|
7774
|
+
minimum: 0,
|
|
7775
|
+
description: 'How many of the sampled records satisfy the schema.',
|
|
7776
|
+
},
|
|
7777
|
+
estimatedRecords: {
|
|
7778
|
+
type: 'integer',
|
|
7779
|
+
minimum: 0,
|
|
7780
|
+
description: 'Records of it on the network, estimated from the sample.',
|
|
7781
|
+
},
|
|
7782
|
+
readAt: {
|
|
7783
|
+
type: 'string',
|
|
7784
|
+
format: 'datetime',
|
|
7785
|
+
},
|
|
7786
|
+
},
|
|
7787
|
+
},
|
|
7788
|
+
},
|
|
7789
|
+
},
|
|
7790
|
+
PubTechneDraftRegistryGetType: {
|
|
7791
|
+
lexicon: 1,
|
|
7792
|
+
id: 'pub.techne.draft.registry.getType',
|
|
7793
|
+
defs: {
|
|
7794
|
+
main: {
|
|
7795
|
+
type: 'query',
|
|
7796
|
+
description: "One record type the platform knows: a platform type, a community draft or a requested foreign type, with its lexicon, query roles, creator, state, record count and sidecars. Public. The answer carries the type's techne.pub page; share it.",
|
|
7797
|
+
parameters: {
|
|
7798
|
+
type: 'params',
|
|
7799
|
+
required: ['nsid'],
|
|
7800
|
+
properties: {
|
|
7801
|
+
nsid: {
|
|
7802
|
+
type: 'string',
|
|
7803
|
+
format: 'nsid',
|
|
7804
|
+
},
|
|
7805
|
+
},
|
|
7806
|
+
},
|
|
7807
|
+
output: {
|
|
7808
|
+
encoding: 'application/json',
|
|
7809
|
+
schema: {
|
|
7810
|
+
type: 'ref',
|
|
7811
|
+
ref: 'lex:pub.techne.draft.registry.defs#typeView',
|
|
7812
|
+
},
|
|
7813
|
+
},
|
|
7814
|
+
errors: [
|
|
7815
|
+
{
|
|
7816
|
+
name: 'UnknownType',
|
|
7817
|
+
description: 'The platform does not know this type. A type defined elsewhere can be asked for with pub.techne.draft.registry.requestType.',
|
|
7818
|
+
},
|
|
7819
|
+
],
|
|
7820
|
+
},
|
|
7821
|
+
},
|
|
7822
|
+
},
|
|
7823
|
+
PubTechneDraftRegistryGetTypeRequest: {
|
|
7824
|
+
lexicon: 1,
|
|
7825
|
+
id: 'pub.techne.draft.registry.getTypeRequest',
|
|
7826
|
+
defs: {
|
|
7827
|
+
main: {
|
|
7828
|
+
type: 'query',
|
|
7829
|
+
description: 'The request to index one foreign type: who asked, its query roles, its preview and whether an operator approved or declined it. Public.',
|
|
7830
|
+
parameters: {
|
|
7831
|
+
type: 'params',
|
|
7832
|
+
required: ['nsid'],
|
|
7833
|
+
properties: {
|
|
7834
|
+
nsid: {
|
|
7835
|
+
type: 'string',
|
|
7836
|
+
format: 'nsid',
|
|
7837
|
+
},
|
|
7838
|
+
},
|
|
7839
|
+
},
|
|
7840
|
+
output: {
|
|
7841
|
+
encoding: 'application/json',
|
|
7842
|
+
schema: {
|
|
7843
|
+
type: 'ref',
|
|
7844
|
+
ref: 'lex:pub.techne.draft.registry.defs#requestView',
|
|
7845
|
+
},
|
|
7846
|
+
},
|
|
7847
|
+
errors: [
|
|
7848
|
+
{
|
|
7849
|
+
name: 'NotFound',
|
|
7850
|
+
description: 'No one has requested this type.',
|
|
7851
|
+
},
|
|
7852
|
+
],
|
|
7853
|
+
},
|
|
7854
|
+
},
|
|
7855
|
+
},
|
|
7856
|
+
PubTechneDraftRegistryListTypeRequests: {
|
|
7857
|
+
lexicon: 1,
|
|
7858
|
+
id: 'pub.techne.draft.registry.listTypeRequests',
|
|
7859
|
+
defs: {
|
|
7860
|
+
main: {
|
|
7861
|
+
type: 'query',
|
|
7862
|
+
description: "Requests to index foreign types, newest first. Public: the requests are public records in the registry's repo, and the commons operator page lists them from here.",
|
|
7863
|
+
parameters: {
|
|
7864
|
+
type: 'params',
|
|
7865
|
+
properties: {
|
|
7866
|
+
state: {
|
|
7867
|
+
type: 'string',
|
|
7868
|
+
maxLength: 32,
|
|
7869
|
+
knownValues: ['pending', 'approved', 'declined', 'blocked'],
|
|
7870
|
+
description: 'Only requests in this state.',
|
|
7871
|
+
},
|
|
7872
|
+
requester: {
|
|
7873
|
+
type: 'string',
|
|
7874
|
+
format: 'did',
|
|
7875
|
+
},
|
|
7876
|
+
limit: {
|
|
7877
|
+
type: 'integer',
|
|
7878
|
+
minimum: 1,
|
|
7879
|
+
maximum: 100,
|
|
7880
|
+
default: 50,
|
|
7881
|
+
},
|
|
7882
|
+
cursor: {
|
|
7883
|
+
type: 'string',
|
|
7884
|
+
maxLength: 512,
|
|
7885
|
+
},
|
|
7886
|
+
},
|
|
7887
|
+
},
|
|
7888
|
+
output: {
|
|
7889
|
+
encoding: 'application/json',
|
|
7890
|
+
schema: {
|
|
7891
|
+
type: 'object',
|
|
7892
|
+
required: ['requests'],
|
|
7893
|
+
properties: {
|
|
7894
|
+
requests: {
|
|
7895
|
+
type: 'array',
|
|
7896
|
+
items: {
|
|
7897
|
+
type: 'ref',
|
|
7898
|
+
ref: 'lex:pub.techne.draft.registry.defs#requestView',
|
|
7899
|
+
},
|
|
7900
|
+
},
|
|
7901
|
+
cursor: {
|
|
7902
|
+
type: 'string',
|
|
7903
|
+
maxLength: 512,
|
|
7904
|
+
},
|
|
7905
|
+
},
|
|
7906
|
+
},
|
|
7907
|
+
},
|
|
7908
|
+
},
|
|
7909
|
+
},
|
|
7910
|
+
},
|
|
7911
|
+
PubTechneDraftRegistryListTypes: {
|
|
7912
|
+
lexicon: 1,
|
|
7913
|
+
id: 'pub.techne.draft.registry.listTypes',
|
|
7914
|
+
defs: {
|
|
7915
|
+
main: {
|
|
7916
|
+
type: 'query',
|
|
7917
|
+
description: "Find record types: search by name, field or purpose, or list a creator's. Public. Types with no records are left out unless `creator` is given or `includeEmpty` is set, so the lists show what is in use. Each type carries its techne.pub page.",
|
|
7918
|
+
parameters: {
|
|
7919
|
+
type: 'params',
|
|
7920
|
+
properties: {
|
|
7921
|
+
q: {
|
|
7922
|
+
type: 'string',
|
|
7923
|
+
maxLength: 200,
|
|
7924
|
+
description: "Words matched against each type's name, field names and descriptions.",
|
|
7925
|
+
},
|
|
7926
|
+
creator: {
|
|
7927
|
+
type: 'string',
|
|
7928
|
+
format: 'did',
|
|
7929
|
+
description: 'Only types this account published or requested.',
|
|
7930
|
+
},
|
|
7931
|
+
origin: {
|
|
7932
|
+
type: 'string',
|
|
7933
|
+
maxLength: 32,
|
|
7934
|
+
knownValues: ['platform', 'community', 'requested'],
|
|
7935
|
+
},
|
|
7936
|
+
sidecarOf: {
|
|
7937
|
+
type: 'string',
|
|
7938
|
+
format: 'nsid',
|
|
7939
|
+
description: 'Only types that extend this one.',
|
|
7940
|
+
},
|
|
7941
|
+
includeEmpty: {
|
|
7942
|
+
type: 'boolean',
|
|
7943
|
+
default: false,
|
|
7944
|
+
},
|
|
7945
|
+
sort: {
|
|
7946
|
+
type: 'string',
|
|
7947
|
+
maxLength: 32,
|
|
7948
|
+
knownValues: ['records', 'name', 'updated'],
|
|
7949
|
+
default: 'records',
|
|
7950
|
+
description: 'The order of the list, or, when `q` is given, the order within equally good matches (a search ranks by how well each type matches first). `records`: most used first (the default). `name`: A to Z. `updated`: most recently changed first.',
|
|
7951
|
+
},
|
|
7952
|
+
limit: {
|
|
7953
|
+
type: 'integer',
|
|
7954
|
+
minimum: 1,
|
|
7955
|
+
maximum: 100,
|
|
7956
|
+
default: 50,
|
|
7957
|
+
},
|
|
7958
|
+
cursor: {
|
|
7959
|
+
type: 'string',
|
|
7960
|
+
maxLength: 512,
|
|
7961
|
+
},
|
|
7962
|
+
},
|
|
7963
|
+
},
|
|
7964
|
+
output: {
|
|
7965
|
+
encoding: 'application/json',
|
|
7966
|
+
schema: {
|
|
7967
|
+
type: 'object',
|
|
7968
|
+
required: ['types'],
|
|
7969
|
+
properties: {
|
|
7970
|
+
types: {
|
|
7971
|
+
type: 'array',
|
|
7972
|
+
items: {
|
|
7973
|
+
type: 'ref',
|
|
7974
|
+
ref: 'lex:pub.techne.draft.registry.defs#typeSummary',
|
|
7975
|
+
},
|
|
7976
|
+
},
|
|
7977
|
+
cursor: {
|
|
7978
|
+
type: 'string',
|
|
7979
|
+
maxLength: 512,
|
|
7980
|
+
},
|
|
7981
|
+
},
|
|
7982
|
+
},
|
|
7983
|
+
},
|
|
7984
|
+
},
|
|
7985
|
+
},
|
|
7986
|
+
},
|
|
7987
|
+
PubTechneDraftRegistryPublishType: {
|
|
7988
|
+
lexicon: 1,
|
|
7989
|
+
id: 'pub.techne.draft.registry.publishType',
|
|
7990
|
+
defs: {
|
|
7991
|
+
main: {
|
|
7992
|
+
type: 'procedure',
|
|
7993
|
+
description: "Publish a community record type, or a new version of one you published. A new type gets the NSID `pub.techne.draft.c.<id>.<name>`: `<id>` is minted at random, so no one gets a good name and the type still reads as `<name>`. Only the creating account may change a type afterwards, and only additively (new optional fields, wider limits); anything else is refused and is published as a new type under a new name. Anyone may fork a type to a new id. To extend someone else's type, publish a sidecar of your own (`sidecarOf`): its records carry a `subject` naming the record they extend. The lexicon is validated, published as a `com.atproto.lexicon.schema` record in the registry's repo, and indexed from this moment. The answer carries the type's techne.pub page; share it.",
|
|
7994
|
+
input: {
|
|
7995
|
+
encoding: 'application/json',
|
|
7996
|
+
schema: {
|
|
7997
|
+
type: 'object',
|
|
7998
|
+
required: ['lexicon'],
|
|
7999
|
+
properties: {
|
|
8000
|
+
nsid: {
|
|
8001
|
+
type: 'string',
|
|
8002
|
+
format: 'nsid',
|
|
8003
|
+
description: 'The type to publish a new version of. Leave it out to create a type.',
|
|
8004
|
+
},
|
|
8005
|
+
name: {
|
|
8006
|
+
type: 'string',
|
|
8007
|
+
maxLength: 63,
|
|
8008
|
+
description: "For a new type, its name: the NSID's last segment, a letter then letters and digits (`bookClubMeeting`). With `nsid`, a new name under the same id (a second type, or a sidecar, of yours).",
|
|
8009
|
+
},
|
|
8010
|
+
lexicon: {
|
|
8011
|
+
type: 'unknown',
|
|
8012
|
+
description: "The lexicon document. Its main def is a record. Its `id` may be left out of a new type (it is filled in); otherwise it must equal the type's NSID.",
|
|
8013
|
+
},
|
|
8014
|
+
query: {
|
|
8015
|
+
type: 'unknown',
|
|
8016
|
+
description: "The type's `{nsid}.query` document: which fields fill the shared query roles (`start`, `end`, `location`, `text`, `references`, `category`; pub.techne.draft.query#roles). Without it the type's records can only be got and listed.",
|
|
8017
|
+
},
|
|
8018
|
+
sidecarOf: {
|
|
8019
|
+
type: 'string',
|
|
8020
|
+
format: 'nsid',
|
|
8021
|
+
description: 'For a new type: the type it extends. Its main record must then have a required `subject` (an at-uri).',
|
|
8022
|
+
},
|
|
8023
|
+
forkOf: {
|
|
8024
|
+
type: 'string',
|
|
8025
|
+
format: 'nsid',
|
|
8026
|
+
description: 'For a new type: the community type it was forked from.',
|
|
8027
|
+
},
|
|
8028
|
+
},
|
|
8029
|
+
},
|
|
8030
|
+
},
|
|
8031
|
+
output: {
|
|
8032
|
+
encoding: 'application/json',
|
|
8033
|
+
schema: {
|
|
8034
|
+
type: 'object',
|
|
8035
|
+
required: ['nsid', 'version', 'schema', 'page', 'created'],
|
|
8036
|
+
properties: {
|
|
8037
|
+
nsid: {
|
|
8038
|
+
type: 'string',
|
|
8039
|
+
format: 'nsid',
|
|
8040
|
+
},
|
|
8041
|
+
version: {
|
|
8042
|
+
type: 'integer',
|
|
8043
|
+
minimum: 1,
|
|
8044
|
+
},
|
|
8045
|
+
schema: {
|
|
8046
|
+
type: 'ref',
|
|
8047
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
8048
|
+
description: 'The published `com.atproto.lexicon.schema` record.',
|
|
8049
|
+
},
|
|
8050
|
+
page: {
|
|
8051
|
+
type: 'string',
|
|
8052
|
+
format: 'uri',
|
|
8053
|
+
description: "The type's page on techne.pub.",
|
|
8054
|
+
},
|
|
8055
|
+
created: {
|
|
8056
|
+
type: 'boolean',
|
|
8057
|
+
description: 'Whether this call created the type (false: a new version).',
|
|
8058
|
+
},
|
|
8059
|
+
unchanged: {
|
|
8060
|
+
type: 'boolean',
|
|
8061
|
+
description: 'The lexicon and query document equal the current version; nothing was published.',
|
|
8062
|
+
},
|
|
8063
|
+
},
|
|
8064
|
+
},
|
|
8065
|
+
},
|
|
8066
|
+
errors: [
|
|
8067
|
+
{
|
|
8068
|
+
name: 'AuthenticationRequired',
|
|
8069
|
+
description: 'Publishing is a signed-in act: the creator is the caller.',
|
|
8070
|
+
},
|
|
8071
|
+
{
|
|
8072
|
+
name: 'InvalidLexicon',
|
|
8073
|
+
description: 'The document is not a record lexicon the platform can check records against (the message lists every problem).',
|
|
8074
|
+
},
|
|
8075
|
+
{
|
|
8076
|
+
name: 'InvalidQuery',
|
|
8077
|
+
description: 'The query document names a role or a field the lexicon does not have, or a field of the wrong kind for its role.',
|
|
8078
|
+
},
|
|
8079
|
+
{
|
|
8080
|
+
name: 'InvalidName',
|
|
8081
|
+
description: 'The name is not a letter followed by letters and digits, or is taken under this id.',
|
|
8082
|
+
},
|
|
8083
|
+
{
|
|
8084
|
+
name: 'NotAdditive',
|
|
8085
|
+
description: 'The new version removes or tightens something (the message lists each change). Publish it as a new type under a new name.',
|
|
8086
|
+
},
|
|
8087
|
+
{
|
|
8088
|
+
name: 'NotCreator',
|
|
8089
|
+
description: 'Only the account that created the type may change it. Fork it, or publish a sidecar.',
|
|
8090
|
+
},
|
|
8091
|
+
{
|
|
8092
|
+
name: 'UnknownType',
|
|
8093
|
+
description: '`nsid` or `forkOf` names no community type, or `sidecarOf` names no type the platform indexes.',
|
|
8094
|
+
},
|
|
8095
|
+
{
|
|
8096
|
+
name: 'TooLarge',
|
|
8097
|
+
description: 'The lexicon or query document is larger than the platform takes (64 KiB as JSON).',
|
|
8098
|
+
},
|
|
8099
|
+
{
|
|
8100
|
+
name: 'NotConfigured',
|
|
8101
|
+
description: 'HTTP 503. This platform has no type registry account to publish in.',
|
|
8102
|
+
},
|
|
8103
|
+
{
|
|
8104
|
+
name: 'RateLimitExceeded',
|
|
8105
|
+
description: 'Too many publishes from this account; try again later.',
|
|
8106
|
+
},
|
|
8107
|
+
],
|
|
8108
|
+
},
|
|
8109
|
+
},
|
|
8110
|
+
},
|
|
8111
|
+
PubTechneDraftRegistryPurgeType: {
|
|
8112
|
+
lexicon: 1,
|
|
8113
|
+
id: 'pub.techne.draft.registry.purgeType',
|
|
8114
|
+
defs: {
|
|
8115
|
+
main: {
|
|
8116
|
+
type: 'procedure',
|
|
8117
|
+
description: "Operator only. Stop indexing a community or requested type and remove every record of it this platform indexed. The type is marked blocked (it is no longer loaded, searched or listed, except in listTypes filtered to its creator (`creator`) and in getType, which still answer it as blocked) and put on the block list, so neither the firehose nor a backfill brings its records back. The records stay in their authors' repos; this platform stops serving them. Our own platform types cannot be purged.",
|
|
8118
|
+
input: {
|
|
8119
|
+
encoding: 'application/json',
|
|
8120
|
+
schema: {
|
|
8121
|
+
type: 'object',
|
|
8122
|
+
required: ['nsid', 'reason'],
|
|
8123
|
+
properties: {
|
|
8124
|
+
nsid: {
|
|
8125
|
+
type: 'string',
|
|
8126
|
+
format: 'nsid',
|
|
8127
|
+
description: 'The runtime type (a community draft or a requested type).',
|
|
8128
|
+
},
|
|
8129
|
+
reason: {
|
|
8130
|
+
type: 'string',
|
|
8131
|
+
minLength: 1,
|
|
8132
|
+
maxLength: 1000,
|
|
8133
|
+
description: 'Why, kept with the block.',
|
|
8134
|
+
},
|
|
8135
|
+
},
|
|
8136
|
+
},
|
|
8137
|
+
},
|
|
8138
|
+
output: {
|
|
8139
|
+
encoding: 'application/json',
|
|
8140
|
+
schema: {
|
|
8141
|
+
type: 'object',
|
|
8142
|
+
required: ['nsid', 'purged', 'page'],
|
|
8143
|
+
properties: {
|
|
8144
|
+
nsid: {
|
|
8145
|
+
type: 'string',
|
|
8146
|
+
format: 'nsid',
|
|
8147
|
+
},
|
|
8148
|
+
purged: {
|
|
8149
|
+
type: 'integer',
|
|
8150
|
+
minimum: 0,
|
|
8151
|
+
description: 'How many indexed records were removed.',
|
|
8152
|
+
},
|
|
8153
|
+
page: {
|
|
8154
|
+
type: 'string',
|
|
8155
|
+
format: 'uri',
|
|
8156
|
+
description: "The type's page on techne.pub.",
|
|
8157
|
+
},
|
|
8158
|
+
},
|
|
8159
|
+
},
|
|
8160
|
+
},
|
|
8161
|
+
errors: [
|
|
8162
|
+
{
|
|
8163
|
+
name: 'AuthenticationRequired',
|
|
8164
|
+
description: 'Purging is a signed-in act.',
|
|
8165
|
+
},
|
|
8166
|
+
{
|
|
8167
|
+
name: 'Forbidden',
|
|
8168
|
+
description: 'The caller is not an operator of this platform.',
|
|
8169
|
+
},
|
|
8170
|
+
{
|
|
8171
|
+
name: 'UnknownType',
|
|
8172
|
+
description: '`nsid` names no community or requested type (our own types cannot be purged).',
|
|
8173
|
+
},
|
|
8174
|
+
],
|
|
8175
|
+
},
|
|
8176
|
+
},
|
|
8177
|
+
},
|
|
8178
|
+
PubTechneDraftRegistryRequestType: {
|
|
8179
|
+
lexicon: 1,
|
|
8180
|
+
id: 'pub.techne.draft.registry.requestType',
|
|
8181
|
+
defs: {
|
|
8182
|
+
main: {
|
|
8183
|
+
type: 'procedure',
|
|
8184
|
+
description: "Ask the platform to index a record type defined elsewhere on the network. The type's schema must be published (a `com.atproto.lexicon.schema` record its NSID authority's `_lexicon` TXT record leads to); one that is not is refused. The platform reads the schema and a sample of the network, and answers with a preview. You can build on it at once: while the request is pending, records of the type written through the platform are indexed under the type's real name, so nothing moves later. An operator approves or declines it. Approval starts a walk of the type's existing records on the network; its new writes there reach the platform once a release adds the type to what the platform subscribes to. One request per type: the requester asking again updates the query roles (and rereads the schema) and returns the request; anyone else asking gets it back as it stands. The answer carries the type's techne.pub page; share it.",
|
|
8185
|
+
input: {
|
|
8186
|
+
encoding: 'application/json',
|
|
8187
|
+
schema: {
|
|
8188
|
+
type: 'object',
|
|
8189
|
+
required: ['nsid'],
|
|
8190
|
+
properties: {
|
|
8191
|
+
nsid: {
|
|
8192
|
+
type: 'string',
|
|
8193
|
+
format: 'nsid',
|
|
8194
|
+
},
|
|
8195
|
+
query: {
|
|
8196
|
+
type: 'unknown',
|
|
8197
|
+
description: "Which of the type's fields fill the shared query roles, as a `{nsid}.query` document (pub.techne.draft.query#roles). Without it the type's records can only be got and listed.",
|
|
8198
|
+
},
|
|
8199
|
+
},
|
|
8200
|
+
},
|
|
8201
|
+
},
|
|
8202
|
+
output: {
|
|
8203
|
+
encoding: 'application/json',
|
|
8204
|
+
schema: {
|
|
8205
|
+
type: 'ref',
|
|
8206
|
+
ref: 'lex:pub.techne.draft.registry.defs#requestView',
|
|
8207
|
+
},
|
|
8208
|
+
},
|
|
8209
|
+
errors: [
|
|
8210
|
+
{
|
|
8211
|
+
name: 'AuthenticationRequired',
|
|
8212
|
+
description: 'Requesting is a signed-in act: the requester is the caller.',
|
|
8213
|
+
},
|
|
8214
|
+
{
|
|
8215
|
+
name: 'NoSchema',
|
|
8216
|
+
description: 'No published schema was found for this NSID (no `_lexicon` TXT record, or no schema record where it points).',
|
|
8217
|
+
},
|
|
8218
|
+
{
|
|
8219
|
+
name: 'InvalidLexicon',
|
|
8220
|
+
description: 'The published schema is not a record lexicon the platform can check records against.',
|
|
8221
|
+
},
|
|
8222
|
+
{
|
|
8223
|
+
name: 'InvalidQuery',
|
|
8224
|
+
description: 'The query document names a role or a field the schema does not have.',
|
|
8225
|
+
},
|
|
8226
|
+
{
|
|
8227
|
+
name: 'AlreadyIndexed',
|
|
8228
|
+
description: 'The platform already has this type and it needs no request (a platform type, a community draft, or an approved request).',
|
|
8229
|
+
},
|
|
8230
|
+
{
|
|
8231
|
+
name: 'InvalidRequest',
|
|
8232
|
+
description: "HTTP 400. `nsid` is not an NSID, is in the platform's own namespace (publish a draft type with publishType instead), or names a type an operator blocked (registry.purgeType).",
|
|
8233
|
+
},
|
|
8234
|
+
{
|
|
8235
|
+
name: 'TooLarge',
|
|
8236
|
+
description: 'HTTP 413. The query document is larger than the platform takes (64 KiB as JSON).',
|
|
8237
|
+
},
|
|
8238
|
+
{
|
|
8239
|
+
name: 'NotConfigured',
|
|
8240
|
+
description: 'HTTP 503. This platform has no type registry account to write the request in.',
|
|
8241
|
+
},
|
|
8242
|
+
{
|
|
8243
|
+
name: 'RateLimitExceeded',
|
|
8244
|
+
description: 'Too many requests from this account; try again later.',
|
|
8245
|
+
},
|
|
8246
|
+
],
|
|
8247
|
+
},
|
|
8248
|
+
},
|
|
8249
|
+
},
|
|
8250
|
+
PubTechneDraftRegistryTypeRequest: {
|
|
8251
|
+
lexicon: 1,
|
|
8252
|
+
id: 'pub.techne.draft.registry.typeRequest',
|
|
8253
|
+
description: "A request that the platform index a record type defined elsewhere on the network. Written by the platform, in the registry's own repo, when someone calls pub.techne.draft.registry.requestType; the record key is the requested NSID, so a type has one request. PUBLIC. While it is undecided, records of the type written through the platform are indexed under the type's real name and nothing else is. An operator approves it with a commons credential (pub.techne.draft.credential, unsigned, in the operator's repo) whose `subject` is the registry's DID, `record` this request's AT-URI and `cid` its CID. Once the platform reads a live one pinning the request's current CID, the request is approved and stays approved (a later new version of the request does not undo it): approval starts a walk of the type's existing records on the network, and its new writes there reach the platform once a release adds the type to what the platform subscribes to. An operator declines it with a pub.techne.draft.verdict whose `subject` is this version and `values` is `declined`; a declined type stays as an undecided one does. A new version of the request (new query roles) is decided afresh.",
|
|
8254
|
+
defs: {
|
|
8255
|
+
main: {
|
|
8256
|
+
type: 'record',
|
|
8257
|
+
key: 'nsid',
|
|
8258
|
+
record: {
|
|
8259
|
+
type: 'object',
|
|
8260
|
+
required: ['nsid', 'requester', 'schema', 'createdAt'],
|
|
8261
|
+
properties: {
|
|
8262
|
+
nsid: {
|
|
8263
|
+
type: 'string',
|
|
8264
|
+
format: 'nsid',
|
|
8265
|
+
description: 'The requested type; equal to the record key.',
|
|
8266
|
+
},
|
|
8267
|
+
requester: {
|
|
8268
|
+
type: 'string',
|
|
8269
|
+
format: 'did',
|
|
8270
|
+
description: 'Who asked.',
|
|
8271
|
+
},
|
|
8272
|
+
schema: {
|
|
8273
|
+
type: 'ref',
|
|
8274
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
8275
|
+
description: "The type's published `com.atproto.lexicon.schema` record, found through its NSID authority's `_lexicon` TXT record, at the version that was read. A type with no published schema cannot be requested.",
|
|
8276
|
+
},
|
|
8277
|
+
query: {
|
|
8278
|
+
type: 'unknown',
|
|
8279
|
+
description: "Which of the type's fields fill the shared query roles, as a `{nsid}.query` document (pub.techne.draft.query#roles). Without it the type's records can only be got and listed.",
|
|
8280
|
+
},
|
|
8281
|
+
createdAt: {
|
|
8282
|
+
type: 'string',
|
|
8283
|
+
format: 'datetime',
|
|
8284
|
+
},
|
|
8285
|
+
},
|
|
8286
|
+
},
|
|
8287
|
+
},
|
|
8288
|
+
},
|
|
8289
|
+
},
|
|
7106
8290
|
PubTechneDraftRetirement: {
|
|
7107
8291
|
lexicon: 1,
|
|
7108
8292
|
id: 'pub.techne.draft.retirement',
|
|
7109
|
-
description: "A statement, in its writer's repo, that an identity is retired: its records are kept but are no versions. For the commons a reader counts one only at rkey = its subject and only from the commons root, or from an operator the root names (pub.techne.draft.operator) whose period held when the reader first saw this version of the retirement. A retired identity's records stay cluster members and provenance sources, so a pointer to one still resolves to its curated record, but they are never versions: not composed, ranked or bylined by the curator, not judged or counted by the features rule, not listed by pub.techne.draft.commons.getVersions, and a curated record with no other source is not curated for readers. Used for a publisher whose records were re-published under another identity (the old Almanac publisher). Its writer deleting it withdraws it; the identity is un-retired when no counted retirement of it is left. Modeled on pub.techne.draft.operator. PUBLIC. Written by the commons root or an operator in its own repo (the commons' web app, signed in as that account); read by the AppView, the commons, the curator and the features rule.",
|
|
8293
|
+
description: "A statement, in its writer's repo, that an identity is retired: its records are kept but are no versions. For the commons a reader counts one only at rkey = its subject and only from the commons root, or from an operator the root names (pub.techne.draft.operator) whose period held when the reader first saw this version of the retirement. A retired identity's records stay cluster members and provenance sources, so a pointer to one still resolves to its curated record, but they are never versions: not composed, ranked or bylined by the curator, not judged or counted by the features rule, not listed by pub.techne.draft.commons.getVersions, and a curated record with no other source is not curated for readers. Used for a publisher whose records were re-published under another identity (the old Almanac publisher). Each counts on its own: the root's stands whatever an operator does with its own. Its writer deleting it withdraws it; the identity is un-retired when no counted retirement of it is left. Modeled on pub.techne.draft.operator. PUBLIC. Written by the commons root or an operator in its own repo (the commons' web app, signed in as that account); read by the AppView, the commons, the curator and the features rule.",
|
|
7110
8294
|
defs: {
|
|
7111
8295
|
main: {
|
|
7112
8296
|
type: 'record',
|
|
@@ -7576,7 +8760,7 @@ export const schemaDict = {
|
|
|
7576
8760
|
decision: {
|
|
7577
8761
|
type: 'string',
|
|
7578
8762
|
knownValues: ['valid', 'pending', 'invalid'],
|
|
7579
|
-
description: "Whether this version counts. valid: it does. pending: nothing is wrong, but a claim it needs has not arrived yet (its author's membership,
|
|
8763
|
+
description: "Whether this version counts. valid: it does. pending: nothing is wrong, but a claim it needs has not arrived yet (its author's membership, an admin writer's credential for its author: the root's, or an operator's the root names); a later read may say valid. invalid: it does not count, for the reason given (it is still in the author's repo; a version the platform refuses to index, such as one that is not valid for its lexicon, is not put on the stream). A curated version of the record, if a rule writes one, is another record.",
|
|
7580
8764
|
},
|
|
7581
8765
|
reason: {
|
|
7582
8766
|
type: 'string',
|
|
@@ -7617,7 +8801,7 @@ export const schemaDict = {
|
|
|
7617
8801
|
PubTechneDraftVerdict: {
|
|
7618
8802
|
lexicon: 1,
|
|
7619
8803
|
id: 'pub.techne.draft.verdict',
|
|
7620
|
-
description: "A moderation verdict on a record. It names a version (a strongRef) and what it is (`spam`, `obscene`, `!takedown`). `spam` and `obscene` are judged on all of that version's fields and cover that version only, so an edit is a new version they do not cover. `!takedown` is an operator's takedown: it covers every version of the subject record, including later edits. Only bad versions get one; a version with no verdict was judged clean or not judged. Withdrawing a verdict is deleting it (or updating it with other values) in a commit. A reader drops a version with a verdict it honours before composing a cluster's default view, and before deriving anything from it: the commons curator leaves it out of the curated record, the features rule out of its evidence. A reader honours a verdict only from an author whose pub.techne.draft.publisher declaration lists those values in `labels` and is vouched for by
|
|
8804
|
+
description: "A moderation verdict on a record. It names a version (a strongRef) and what it is (`spam`, `obscene`, `!takedown`). `spam` and `obscene` are judged on all of that version's fields and cover that version only, so an edit is a new version they do not cover. `!takedown` is an operator's takedown: it covers every version of the subject record, including later edits. Only bad versions get one; a version with no verdict was judged clean or not judged. Withdrawing a verdict is deleting it (or updating it with other values) in a commit. A reader drops a version with a verdict it honours before composing a cluster's default view, and before deriving anything from it: the commons curator leaves it out of the curated record, the features rule out of its evidence. A reader honours a verdict only from an author whose pub.techne.draft.publisher declaration lists those values in `labels` and is vouched for by an admin writer (a live pub.techne.draft.credential pinned to its CID from the commons root, or from an operator the root names; pub.techne.draft.provenancePolicy#vouchedWriter). atproto labels (`com.atproto.label.queryLabels`) are an export generated from these records for Bluesky-style clients, never the source of truth. Written in the writer's own repo: `spam` and `obscene` by the commons features rule, `!takedown` by any account an admin writer vouches for with `verdict` in `writes` and `!takedown` in `labels` (operators, as themselves; the commons' own account wrote the earlier ones). PUBLIC.",
|
|
7621
8805
|
defs: {
|
|
7622
8806
|
main: {
|
|
7623
8807
|
type: 'record',
|
|
@@ -7639,9 +8823,9 @@ export const schemaDict = {
|
|
|
7639
8823
|
items: {
|
|
7640
8824
|
type: 'string',
|
|
7641
8825
|
maxLength: 64,
|
|
7642
|
-
knownValues: ['spam', 'obscene', '!takedown'],
|
|
8826
|
+
knownValues: ['spam', 'obscene', '!takedown', 'declined'],
|
|
7643
8827
|
},
|
|
7644
|
-
description: 'What the version is. `spam`: advertising, scams, link farms or bulk promotion rather than a real gathering. `obscene`: sexually explicit or gratuitously graphic content. `!takedown`: an operator took the record down; it hides the record at every version.',
|
|
8828
|
+
description: 'What the version is. `spam`: advertising, scams, link farms or bulk promotion rather than a real gathering. `obscene`: sexually explicit or gratuitously graphic content. `!takedown`: an operator took the record down; it hides the record at every version. `declined`: an operator declined a pub.techne.draft.registry.typeRequest at this version; it hides nothing.',
|
|
7645
8829
|
},
|
|
7646
8830
|
createdAt: {
|
|
7647
8831
|
type: 'string',
|
|
@@ -7655,7 +8839,7 @@ export const schemaDict = {
|
|
|
7655
8839
|
PubTechneDraftVerification: {
|
|
7656
8840
|
lexicon: 1,
|
|
7657
8841
|
id: 'pub.techne.draft.verification',
|
|
7658
|
-
description: "A statement that a verified person is behind an account. The issuer checked a channel it counts as verification (which channel counts is the issuer's decision; for this commons, a phone number proved with a one-time code, and an email alone does not count). It names only the DID: no handle, no name, no channel, so a rename keeps it and nothing about the person is published beyond the fact. What it means is the endorser's call: a reader counts it only while its author's pub.techne.draft.publisher declaration lists pub.techne.draft.verification in `writes` and
|
|
8842
|
+
description: "A statement that a verified person is behind an account. The issuer checked a channel it counts as verification (which channel counts is the issuer's decision; for this commons, a phone number proved with a one-time code, and an email alone does not count). It names only the DID: no handle, no name, no channel, so a rename keeps it and nothing about the person is published beyond the fact. What it means is the endorser's call: a reader counts it only while its author's pub.techne.draft.publisher declaration lists pub.techne.draft.verification in `writes` and an admin writer vouches for that declaration (a live pub.techne.draft.credential pinned to its CID from the commons root, or from an operator the root names; pub.techne.draft.provenancePolicy#vouchedWriter), read at runtime. Unlike app.bsky.graph.verification it does not vouch for a handle or a display name. The person's own pub.techne.draft.credential stays private in their wallet; this is the public signal. Deleting it withdraws it. Written by the credential issuer in its own repo. PUBLIC.",
|
|
7659
8843
|
defs: {
|
|
7660
8844
|
main: {
|
|
7661
8845
|
type: 'record',
|
|
@@ -9181,6 +10365,7 @@ export const ids = {
|
|
|
9181
10365
|
PubTechneDraftProfile: 'pub.techne.draft.profile',
|
|
9182
10366
|
PubTechneDraftProvenance: 'pub.techne.draft.provenance',
|
|
9183
10367
|
PubTechneDraftPublisher: 'pub.techne.draft.publisher',
|
|
10368
|
+
PubTechneDraftQueryComposeRecords: 'pub.techne.draft.query.composeRecords',
|
|
9184
10369
|
PubTechneDraftQueryCountRecords: 'pub.techne.draft.query.countRecords',
|
|
9185
10370
|
PubTechneDraftQueryGetRecords: 'pub.techne.draft.query.getRecords',
|
|
9186
10371
|
PubTechneDraftQueryListRecords: 'pub.techne.draft.query.listRecords',
|
|
@@ -9188,6 +10373,16 @@ export const ids = {
|
|
|
9188
10373
|
PubTechneDraftQuestionSet: 'pub.techne.draft.questionSet',
|
|
9189
10374
|
PubTechneDraftReceipt: 'pub.techne.draft.receipt',
|
|
9190
10375
|
PubTechneDraftReflection: 'pub.techne.draft.reflection',
|
|
10376
|
+
PubTechneDraftRegistryBlockIndex: 'pub.techne.draft.registry.blockIndex',
|
|
10377
|
+
PubTechneDraftRegistryDefs: 'pub.techne.draft.registry.defs',
|
|
10378
|
+
PubTechneDraftRegistryGetType: 'pub.techne.draft.registry.getType',
|
|
10379
|
+
PubTechneDraftRegistryGetTypeRequest: 'pub.techne.draft.registry.getTypeRequest',
|
|
10380
|
+
PubTechneDraftRegistryListTypeRequests: 'pub.techne.draft.registry.listTypeRequests',
|
|
10381
|
+
PubTechneDraftRegistryListTypes: 'pub.techne.draft.registry.listTypes',
|
|
10382
|
+
PubTechneDraftRegistryPublishType: 'pub.techne.draft.registry.publishType',
|
|
10383
|
+
PubTechneDraftRegistryPurgeType: 'pub.techne.draft.registry.purgeType',
|
|
10384
|
+
PubTechneDraftRegistryRequestType: 'pub.techne.draft.registry.requestType',
|
|
10385
|
+
PubTechneDraftRegistryTypeRequest: 'pub.techne.draft.registry.typeRequest',
|
|
9191
10386
|
PubTechneDraftRetirement: 'pub.techne.draft.retirement',
|
|
9192
10387
|
PubTechneDraftRsvpNote: 'pub.techne.draft.rsvpNote',
|
|
9193
10388
|
PubTechneDraftSameAs: 'pub.techne.draft.sameAs',
|