techne-sdk 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/connect.js CHANGED
@@ -1,8 +1,9 @@
1
1
  import { AtpBaseClient } from './generated/index.js';
2
+ import { appviewRef } from './platform.js';
2
3
  /** The clients for `session`, with `platform` the platform's service DID: its `did:plc` (techne P13.6), whose document names the `#atproto_appview` endpoint, so a host move changes nothing here. */
3
4
  export function connect(session, platform) {
4
5
  const proxied = new AtpBaseClient(session.fetchHandler);
5
- proxied.setHeader('atproto-proxy', `${platform}#atproto_appview`);
6
+ proxied.setHeader('atproto-proxy', appviewRef(platform));
6
7
  return { did: session.did, pds: new AtpBaseClient(session.fetchHandler), platform: proxied };
7
8
  }
8
9
  /**
@@ -2216,12 +2216,12 @@ export declare const schemaDict: {
2216
2216
  readonly revocation: {
2217
2217
  readonly type: "string";
2218
2218
  readonly format: "at-uri";
2219
- readonly 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.";
2219
+ readonly 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.";
2220
2220
  };
2221
2221
  readonly signature: {
2222
2222
  readonly type: "ref";
2223
2223
  readonly ref: "lex:pub.techne.draft.credential#signature";
2224
- readonly description: "Present exactly when the credential is stored by its subject; absent only when the commons root publishes it in its own repo (the commit is the proof).";
2224
+ readonly 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).";
2225
2225
  };
2226
2226
  readonly createdAt: {
2227
2227
  readonly type: "string";
@@ -2251,7 +2251,7 @@ export declare const schemaDict: {
2251
2251
  readonly PubTechneDraftCredentialRevocation: {
2252
2252
  readonly lexicon: 1;
2253
2253
  readonly id: "pub.techne.draft.credentialRevocation";
2254
- readonly 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).";
2254
+ readonly 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).";
2255
2255
  readonly defs: {
2256
2256
  readonly main: {
2257
2257
  readonly type: "record";
@@ -2264,7 +2264,7 @@ export declare const schemaDict: {
2264
2264
  readonly type: "string";
2265
2265
  readonly maxLength: 32;
2266
2266
  readonly knownValues: ["unlinked", "deleted", "folded", "superseded", "compromised", "withdrawn"];
2267
- readonly 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 (the commons root revoking a publisher declaration).";
2267
+ readonly 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).";
2268
2268
  };
2269
2269
  readonly createdAt: {
2270
2270
  readonly type: "string";
@@ -4642,7 +4642,7 @@ export declare const schemaDict: {
4642
4642
  readonly PubTechneDraftOperator: {
4643
4643
  readonly lexicon: 1;
4644
4644
  readonly id: "pub.techne.draft.operator";
4645
- readonly 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, adjudicate pairs, take records down, record releases, and the admin writes the commons makes in the root's repo for it: endorse and revoke rules, retire and un-retire identities, grant and revoke operators) with an atproto service-auth JWT it signs itself, and writes the commons' admin records (credentials that endorse a rule and their revocations, retirements) in its OWN repo, under its own account: a reader counts such a record 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. 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 commons' grantOperator (a new period at `{did}-{millis}` after an ended one) and revokeOperator (sets `validUntil`), which write as the root, or by the root signed in as itself. Each operator ends only its own acts (a revocation at its credential's address, deleting its own retirement). Read by the commons, the AppView and the rules runner.";
4645
+ readonly 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.";
4646
4646
  readonly defs: {
4647
4647
  readonly main: {
4648
4648
  readonly type: "record";
@@ -5896,7 +5896,7 @@ export declare const schemaDict: {
5896
5896
  };
5897
5897
  readonly composition: {
5898
5898
  readonly type: "object";
5899
- readonly description: "How the curated record was composed from its sources. Each source is a version, ranked: 1 a source the commons root vouches for in the collection (a mirror, a rule, a collective: its pub.techne.draft.publisher `writes` holds the collection and a live root pub.techne.draft.credential 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.";
5899
+ readonly 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.";
5900
5900
  readonly required: ["byline", "ranks"];
5901
5901
  readonly properties: {
5902
5902
  readonly byline: {
@@ -6054,7 +6054,7 @@ export declare const schemaDict: {
6054
6054
  readonly type: "ref";
6055
6055
  readonly ref: "lex:pub.techne.draft.publisher#issue";
6056
6056
  };
6057
- readonly 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.";
6057
+ readonly 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.";
6058
6058
  };
6059
6059
  readonly createdAt: {
6060
6060
  readonly type: "string";
@@ -6748,7 +6748,7 @@ export declare const schemaDict: {
6748
6748
  readonly PubTechneDraftRetirement: {
6749
6749
  readonly lexicon: 1;
6750
6750
  readonly id: "pub.techne.draft.retirement";
6751
- readonly 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.";
6751
+ readonly 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.";
6752
6752
  readonly defs: {
6753
6753
  readonly main: {
6754
6754
  readonly type: "record";
@@ -7237,7 +7237,7 @@ export declare const schemaDict: {
7237
7237
  readonly PubTechneDraftVerdict: {
7238
7238
  readonly lexicon: 1;
7239
7239
  readonly id: "pub.techne.draft.verdict";
7240
- readonly 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 the commons root (a live root pub.techne.draft.credential pinned to its CID). 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 the commons' operator account (whichever account the root vouches for with `verdict` in `writes` and `!takedown` in `labels`). PUBLIC.";
7240
+ readonly 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 the commons' operator account (whichever account an admin writer vouches for with `verdict` in `writes` and `!takedown` in `labels`). PUBLIC.";
7241
7241
  readonly defs: {
7242
7242
  readonly main: {
7243
7243
  readonly type: "record";
@@ -7275,7 +7275,7 @@ export declare const schemaDict: {
7275
7275
  readonly PubTechneDraftVerification: {
7276
7276
  readonly lexicon: 1;
7277
7277
  readonly id: "pub.techne.draft.verification";
7278
- readonly 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 the commons root vouches for that declaration (a live root pub.techne.draft.credential pinned to its CID), 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.";
7278
+ readonly 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.";
7279
7279
  readonly defs: {
7280
7280
  readonly main: {
7281
7281
  readonly type: "record";
@@ -10795,12 +10795,12 @@ export declare const schemas: ({
10795
10795
  readonly revocation: {
10796
10796
  readonly type: "string";
10797
10797
  readonly format: "at-uri";
10798
- readonly 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.";
10798
+ readonly 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.";
10799
10799
  };
10800
10800
  readonly signature: {
10801
10801
  readonly type: "ref";
10802
10802
  readonly ref: "lex:pub.techne.draft.credential#signature";
10803
- readonly description: "Present exactly when the credential is stored by its subject; absent only when the commons root publishes it in its own repo (the commit is the proof).";
10803
+ readonly 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).";
10804
10804
  };
10805
10805
  readonly createdAt: {
10806
10806
  readonly type: "string";
@@ -10829,7 +10829,7 @@ export declare const schemas: ({
10829
10829
  } | {
10830
10830
  readonly lexicon: 1;
10831
10831
  readonly id: "pub.techne.draft.credentialRevocation";
10832
- readonly 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).";
10832
+ readonly 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).";
10833
10833
  readonly defs: {
10834
10834
  readonly main: {
10835
10835
  readonly type: "record";
@@ -10842,7 +10842,7 @@ export declare const schemas: ({
10842
10842
  readonly type: "string";
10843
10843
  readonly maxLength: 32;
10844
10844
  readonly knownValues: ["unlinked", "deleted", "folded", "superseded", "compromised", "withdrawn"];
10845
- readonly 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 (the commons root revoking a publisher declaration).";
10845
+ readonly 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).";
10846
10846
  };
10847
10847
  readonly createdAt: {
10848
10848
  readonly type: "string";
@@ -13178,7 +13178,7 @@ export declare const schemas: ({
13178
13178
  } | {
13179
13179
  readonly lexicon: 1;
13180
13180
  readonly id: "pub.techne.draft.operator";
13181
- readonly 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, adjudicate pairs, take records down, record releases, and the admin writes the commons makes in the root's repo for it: endorse and revoke rules, retire and un-retire identities, grant and revoke operators) with an atproto service-auth JWT it signs itself, and writes the commons' admin records (credentials that endorse a rule and their revocations, retirements) in its OWN repo, under its own account: a reader counts such a record 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. 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 commons' grantOperator (a new period at `{did}-{millis}` after an ended one) and revokeOperator (sets `validUntil`), which write as the root, or by the root signed in as itself. Each operator ends only its own acts (a revocation at its credential's address, deleting its own retirement). Read by the commons, the AppView and the rules runner.";
13181
+ readonly 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.";
13182
13182
  readonly defs: {
13183
13183
  readonly main: {
13184
13184
  readonly type: "record";
@@ -14417,7 +14417,7 @@ export declare const schemas: ({
14417
14417
  };
14418
14418
  readonly composition: {
14419
14419
  readonly type: "object";
14420
- readonly description: "How the curated record was composed from its sources. Each source is a version, ranked: 1 a source the commons root vouches for in the collection (a mirror, a rule, a collective: its pub.techne.draft.publisher `writes` holds the collection and a live root pub.techne.draft.credential 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.";
14420
+ readonly 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.";
14421
14421
  readonly required: ["byline", "ranks"];
14422
14422
  readonly properties: {
14423
14423
  readonly byline: {
@@ -14574,7 +14574,7 @@ export declare const schemas: ({
14574
14574
  readonly type: "ref";
14575
14575
  readonly ref: "lex:pub.techne.draft.publisher#issue";
14576
14576
  };
14577
- readonly 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.";
14577
+ readonly 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.";
14578
14578
  };
14579
14579
  readonly createdAt: {
14580
14580
  readonly type: "string";
@@ -15260,7 +15260,7 @@ export declare const schemas: ({
15260
15260
  } | {
15261
15261
  readonly lexicon: 1;
15262
15262
  readonly id: "pub.techne.draft.retirement";
15263
- readonly 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.";
15263
+ readonly 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.";
15264
15264
  readonly defs: {
15265
15265
  readonly main: {
15266
15266
  readonly type: "record";
@@ -15738,7 +15738,7 @@ export declare const schemas: ({
15738
15738
  } | {
15739
15739
  readonly lexicon: 1;
15740
15740
  readonly id: "pub.techne.draft.verdict";
15741
- readonly 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 the commons root (a live root pub.techne.draft.credential pinned to its CID). 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 the commons' operator account (whichever account the root vouches for with `verdict` in `writes` and `!takedown` in `labels`). PUBLIC.";
15741
+ readonly 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 the commons' operator account (whichever account an admin writer vouches for with `verdict` in `writes` and `!takedown` in `labels`). PUBLIC.";
15742
15742
  readonly defs: {
15743
15743
  readonly main: {
15744
15744
  readonly type: "record";
@@ -15775,7 +15775,7 @@ export declare const schemas: ({
15775
15775
  } | {
15776
15776
  readonly lexicon: 1;
15777
15777
  readonly id: "pub.techne.draft.verification";
15778
- readonly 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 the commons root vouches for that declaration (a live root pub.techne.draft.credential pinned to its CID), 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.";
15778
+ readonly 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.";
15779
15779
  readonly defs: {
15780
15780
  readonly main: {
15781
15781
  readonly type: "record";
@@ -2330,12 +2330,12 @@ export const schemaDict = {
2330
2330
  revocation: {
2331
2331
  type: 'string',
2332
2332
  format: 'at-uri',
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.',
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 when the commons root publishes it in its own repo (the commit is the proof).',
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 (the commons root revoking a publisher declaration).",
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, adjudicate pairs, take records down, record releases, and the admin writes the commons makes in the root's repo for it: endorse and revoke rules, retire and un-retire identities, grant and revoke operators) with an atproto service-auth JWT it signs itself, and writes the commons' admin records (credentials that endorse a rule and their revocations, retirements) in its OWN repo, under its own account: a reader counts such a record 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. 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 commons' grantOperator (a new period at `{did}-{millis}` after an ended one) and revokeOperator (sets `validUntil`), which write as the root, or by the root signed in as itself. Each operator ends only its own acts (a revocation at its credential's address, deleting its own retirement). Read by the commons, the AppView and the rules runner.",
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',
@@ -6228,7 +6228,7 @@ export const schemaDict = {
6228
6228
  },
6229
6229
  composition: {
6230
6230
  type: 'object',
6231
- description: "How the curated record was composed from its sources. Each source is a version, ranked: 1 a source the commons root vouches for in the collection (a mirror, a rule, a collective: its pub.techne.draft.publisher `writes` holds the collection and a live root pub.techne.draft.credential 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.",
6231
+ 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
6232
  required: ['byline', 'ranks'],
6233
6233
  properties: {
6234
6234
  byline: {
@@ -6386,7 +6386,7 @@ export const schemaDict = {
6386
6386
  type: 'ref',
6387
6387
  ref: 'lex:pub.techne.draft.publisher#issue',
6388
6388
  },
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.",
6389
+ 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
6390
  },
6391
6391
  createdAt: {
6392
6392
  type: 'string',
@@ -7106,7 +7106,7 @@ export const schemaDict = {
7106
7106
  PubTechneDraftRetirement: {
7107
7107
  lexicon: 1,
7108
7108
  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.",
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). 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
7110
  defs: {
7111
7111
  main: {
7112
7112
  type: 'record',
@@ -7617,7 +7617,7 @@ export const schemaDict = {
7617
7617
  PubTechneDraftVerdict: {
7618
7618
  lexicon: 1,
7619
7619
  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 the commons root (a live root pub.techne.draft.credential pinned to its CID). 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 the commons' operator account (whichever account the root vouches for with `verdict` in `writes` and `!takedown` in `labels`). PUBLIC.",
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 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 the commons' operator account (whichever account an admin writer vouches for with `verdict` in `writes` and `!takedown` in `labels`). PUBLIC.",
7621
7621
  defs: {
7622
7622
  main: {
7623
7623
  type: 'record',
@@ -7655,7 +7655,7 @@ export const schemaDict = {
7655
7655
  PubTechneDraftVerification: {
7656
7656
  lexicon: 1,
7657
7657
  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 the commons root vouches for that declaration (a live root pub.techne.draft.credential pinned to its CID), 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.",
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 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
7659
  defs: {
7660
7660
  main: {
7661
7661
  type: 'record',
@@ -19,7 +19,7 @@ export interface Main {
19
19
  notBefore: string;
20
20
  /** Metadata: the issuer re-issues on use. A credential past it is not void by that alone. */
21
21
  notAfter: string;
22
- /** 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. */
22
+ /** 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. */
23
23
  revocation: string;
24
24
  signature?: Signature;
25
25
  createdAt: string;
@@ -4,7 +4,7 @@
4
4
  import { type ValidationResult } from '@atproto/lexicon';
5
5
  export interface Main {
6
6
  $type: 'pub.techne.draft.credentialRevocation';
7
- /** `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 (the commons root revoking a publisher declaration). */
7
+ /** `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). */
8
8
  reason: 'unlinked' | 'deleted' | 'folded' | 'superseded' | 'compromised' | 'withdrawn' | (string & {});
9
9
  createdAt: string;
10
10
  [k: string]: unknown;
@@ -19,7 +19,7 @@ export interface Main {
19
19
  export declare function isMain<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "pub.techne.draft.provenance", "main">;
20
20
  export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
21
21
  export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
22
- /** How the curated record was composed from its sources. Each source is a version, ranked: 1 a source the commons root vouches for in the collection (a mirror, a rule, a collective: its pub.techne.draft.publisher `writes` holds the collection and a live root pub.techne.draft.credential 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. */
22
+ /** 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. */
23
23
  export interface Composition {
24
24
  $type?: 'pub.techne.draft.provenance#composition';
25
25
  /** The version that speaks first: always the first entry of `ranks` (best rank, newest edit), so it duplicates `ranks[0].uri`; a reader that finds them differ trusts `ranks`. Kept so readers need not re-derive the order to show who the record is from. */
@@ -24,7 +24,7 @@ export interface Main {
24
24
  stage?: 'source' | 'curated' | (string & {});
25
25
  /** The label values (com.atproto.label.defs#label `val`, and pub.techne.draft.verdict `values`) the account may assign, for example `spam` and `obscene`. A reader honours a label or verdict from this DID only when its value is listed here. Absent: it labels nothing. */
26
26
  labels?: string[];
27
- /** 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. */
27
+ /** 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. */
28
28
  issues?: Issue[];
29
29
  createdAt: string;
30
30
  [k: string]: unknown;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * The Techne platform's service DID, the one name every audience the sign-in scopes build comes from
3
+ * (`techne-sdk/auth`). Internal: `techne-sdk/auth` re-exports {@link TECHNE_PLATFORM_DID}.
4
+ *
5
+ * It is the production name, `did:web:techne.computer`, whose document is
6
+ * `https://techne.computer/.well-known/did.json`. A test deployment (a `did:plc`) passes its own DID as
7
+ * the `platform` option instead.
8
+ */
9
+ /** The platform's service DID (production). */
10
+ export declare const TECHNE_PLATFORM_DID = "did:web:techne.computer";
11
+ /** The fragment naming the platform's service in its DID document. */
12
+ export declare const APPVIEW_SERVICE_ID = "#atproto_appview";
13
+ /** `did#atproto_appview`: what `atproto-proxy` and a permission set's `aud` name. */
14
+ export declare function appviewRef(platform?: string): string;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * The Techne platform's service DID, the one name every audience the sign-in scopes build comes from
3
+ * (`techne-sdk/auth`). Internal: `techne-sdk/auth` re-exports {@link TECHNE_PLATFORM_DID}.
4
+ *
5
+ * It is the production name, `did:web:techne.computer`, whose document is
6
+ * `https://techne.computer/.well-known/did.json`. A test deployment (a `did:plc`) passes its own DID as
7
+ * the `platform` option instead.
8
+ */
9
+ /** The platform's service DID (production). */
10
+ export const TECHNE_PLATFORM_DID = 'did:web:techne.computer';
11
+ /** The fragment naming the platform's service in its DID document. */
12
+ export const APPVIEW_SERVICE_ID = '#atproto_appview';
13
+ /** `did#atproto_appview`: what `atproto-proxy` and a permission set's `aud` name. */
14
+ export function appviewRef(platform = TECHNE_PLATFORM_DID) {
15
+ return `${platform}${APPVIEW_SERVICE_ID}`;
16
+ }
@@ -16,12 +16,20 @@ export interface ReadRecord {
16
16
  uri: string;
17
17
  cid: string;
18
18
  value: unknown;
19
+ /**
20
+ * When the app first saw this version (RFC 3339). Read for a credential an operator issued: it counts
21
+ * only if the root names the operator for a period holding then. Without it, only an open period holds.
22
+ */
23
+ firstSeen?: string;
19
24
  }
20
25
  /** What the caller holds to check records against. */
21
26
  export interface Claims {
22
27
  /** The commons root DID. */
23
28
  root?: string;
24
- /** Records read: the root's credentials and revocations, accounts' `publisher/self` declarations. */
29
+ /**
30
+ * Records read: credentials and revocations (the root's and its operators'), the root's
31
+ * `pub.techne.draft.operator` records, and accounts' `publisher/self` declarations.
32
+ */
25
33
  records?: ReadRecord[];
26
34
  /** Roles known: `role` absent when a membership is known but none covered the time. */
27
35
  roles?: {
@@ -64,7 +72,11 @@ export interface Verification {
64
72
  valid: boolean;
65
73
  /** The repo it is from (atproto signs a repo's commits, not each record). */
66
74
  signer: string;
67
- /** The commons root vouches for the signer's `publisher/self` declaration, which covers the collection. */
75
+ /**
76
+ * An admin writer (the commons root, or an operator the root names for a period holding when the
77
+ * credential was first seen) vouches for the signer's `publisher/self` declaration, which covers the
78
+ * collection.
79
+ */
68
80
  chainVerified: boolean;
69
81
  /** Why it is not valid (empty when it is). */
70
82
  problems: string[];