techne-sdk 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/CHANGELOG.md +23 -5
  2. package/README.md +1 -1
  3. package/dist/auth/index.d.ts +2 -2
  4. package/dist/auth/index.js +5 -3
  5. package/dist/auth/placement.gen.d.ts +1 -1
  6. package/dist/auth/placement.gen.js +4 -0
  7. package/dist/catalog/catalog.gen.d.ts +2 -2
  8. package/dist/catalog/catalog.gen.js +1394 -130
  9. package/dist/generated/index.d.ts +129 -0
  10. package/dist/generated/index.js +170 -0
  11. package/dist/generated/lexicons.d.ts +954 -134
  12. package/dist/generated/lexicons.js +511 -61
  13. package/dist/generated/nsid.d.ts +16 -1
  14. package/dist/generated/nsid.js +16 -1
  15. package/dist/generated/nsid.json +16 -1
  16. package/dist/generated/records.d.ts +148 -140
  17. package/dist/generated/types/app/certified/defs.d.ts +20 -0
  18. package/dist/generated/types/app/certified/defs.js +18 -0
  19. package/dist/generated/types/app/certified/signature/defs.d.ts +29 -0
  20. package/dist/generated/types/app/certified/signature/defs.js +18 -0
  21. package/dist/generated/types/org/hypercerts/funding/receipt.d.ts +56 -0
  22. package/dist/generated/types/org/hypercerts/funding/receipt.js +19 -0
  23. package/dist/generated/types/pub/techne/draft/financials.d.ts +26 -0
  24. package/dist/generated/types/pub/techne/draft/financials.js +12 -0
  25. package/dist/generated/types/pub/techne/draft/identity/createCollective.d.ts +5 -0
  26. package/dist/generated/types/pub/techne/draft/identity/createCollective.js +7 -0
  27. package/dist/generated/types/pub/techne/draft/identity/defs.d.ts +1 -1
  28. package/dist/generated/types/pub/techne/draft/identity/manageMethods.d.ts +4 -1
  29. package/dist/generated/types/pub/techne/draft/org.d.ts +55 -25
  30. package/dist/generated/types/pub/techne/draft/org.js +12 -5
  31. package/dist/generated/types/pub/techne/draft/orgAtPlace.d.ts +17 -0
  32. package/dist/generated/types/pub/techne/draft/orgAtPlace.js +12 -0
  33. package/dist/generated/types/pub/techne/draft/statement.d.ts +19 -0
  34. package/dist/generated/types/pub/techne/draft/statement.js +12 -0
  35. package/dist/wasm/techne-wasm.gen.js +1 -1
  36. package/dist/wasm/techne-wasm2js.gen.js +23340 -23255
  37. package/package.json +1 -1
@@ -76,6 +76,85 @@ export declare const schemaDict: {
76
76
  };
77
77
  };
78
78
  };
79
+ readonly AppCertifiedDefs: {
80
+ readonly lexicon: 1;
81
+ readonly id: "app.certified.defs";
82
+ readonly description: "Common type definitions used across certified protocols.";
83
+ readonly defs: {
84
+ readonly did: {
85
+ readonly type: "object";
86
+ readonly description: "A Decentralized Identifier (DID) string.";
87
+ readonly required: ["did"];
88
+ readonly properties: {
89
+ readonly did: {
90
+ readonly type: "string";
91
+ readonly format: "did";
92
+ readonly description: "The DID string value.";
93
+ readonly maxLength: 256;
94
+ };
95
+ };
96
+ };
97
+ readonly recordSubject: {
98
+ readonly type: "object";
99
+ readonly description: "A subject that is a record, referenced by AT-URI. The URI must use the DID form (not handle form) and deliberately carries no CID: it references the record's identity, not a specific version, so references made against it survive updates to the record.";
100
+ readonly required: ["uri"];
101
+ readonly properties: {
102
+ readonly uri: {
103
+ readonly type: "string";
104
+ readonly format: "at-uri";
105
+ readonly description: "AT-URI (DID form) of the record being followed. Schema validation enforces only general at-uri syntax; writers MUST supply a full record URI (did authority, collection, and rkey — not a handle authority or a partial URI), and consumers (AppView/indexer) are expected to reject or skip subjects that do not conform.";
106
+ };
107
+ };
108
+ };
109
+ };
110
+ };
111
+ readonly AppCertifiedSignatureDefs: {
112
+ readonly lexicon: 1;
113
+ readonly id: "app.certified.signature.defs";
114
+ readonly description: "Common type definitions for cryptographic signatures attached to records, per the ATProtocol Attestation Specification. Each signature's `$type` says what it attests.";
115
+ readonly defs: {
116
+ readonly list: {
117
+ readonly type: "array";
118
+ readonly description: "Reusable array of cryptographic signatures on a record. Each entry's `$type` says what it attests. The union is open: other applications may define their own signature types, and consumers ignore types they do not recognize.";
119
+ readonly items: {
120
+ readonly type: "union";
121
+ readonly refs: ["lex:app.certified.signature.defs#inline", "lex:app.certified.signature.defs#createdVia", "lex:com.atproto.repo.strongRef"];
122
+ };
123
+ };
124
+ readonly inline: {
125
+ readonly type: "object";
126
+ readonly description: "Inline attestation signature embedded directly in a record. Conforms to the ATProtocol Attestation Specification: the signed input is the 36-byte CIDv1 (dag-cbor + SHA-256) of the record with the `signatures` field removed and a temporary `$sig` metadata object (containing `$type`, `key` and the housing repository DID) inserted before canonical DAG-CBOR encoding. ECDSA with the low-S variant per BIP-0062 is required; the curve (P-256 or K-256) is determined by the multicodec prefix of the verification method's `publicKeyMultibase`.";
127
+ readonly required: ["signature", "key"];
128
+ readonly properties: {
129
+ readonly signature: {
130
+ readonly type: "bytes";
131
+ readonly description: "ECDSA signature bytes (raw r,s) over the 36-byte CID of the record. Low-S variant per BIP-0062 is mandatory.";
132
+ };
133
+ readonly key: {
134
+ readonly type: "string";
135
+ readonly description: "Full DID verification method reference (format: did:{method}:{identifier}#{fragment}). Identifies the signer and the specific key used; the key's multicodec prefix determines the signing curve.";
136
+ readonly maxLength: 512;
137
+ };
138
+ };
139
+ };
140
+ readonly createdVia: {
141
+ readonly type: "object";
142
+ readonly description: "Inline signature by the application that wrote this version of the record. It does not mean the application endorses the content. A record should carry at most one `#createdVia` signature; applications enforce this, `#list` validation does not. Signed exactly like `#inline`: `$sig` is this signature entry without its `signature` field (so `$type` and `key`), plus `repository`, the DID of the repository that holds the record.";
143
+ readonly required: ["signature", "key"];
144
+ readonly properties: {
145
+ readonly signature: {
146
+ readonly type: "bytes";
147
+ readonly description: "ECDSA signature bytes (raw r,s) over the 36-byte CID of the record. Low-S variant per BIP-0062 is mandatory.";
148
+ };
149
+ readonly key: {
150
+ readonly type: "string";
151
+ readonly description: "DID verification method of the application's signing key. It should be in the application's own DID document, preferably a did:web on the application's domain, so that the DID names the application.";
152
+ readonly maxLength: 512;
153
+ };
154
+ };
155
+ };
156
+ };
157
+ };
79
158
  readonly ComAtprotoAdminDefs: {
80
159
  readonly lexicon: 1;
81
160
  readonly id: "com.atproto.admin.defs";
@@ -933,6 +1012,117 @@ export declare const schemaDict: {
933
1012
  };
934
1013
  };
935
1014
  };
1015
+ readonly OrgHypercertsFundingReceipt: {
1016
+ readonly lexicon: 1;
1017
+ readonly id: "org.hypercerts.funding.receipt";
1018
+ readonly defs: {
1019
+ readonly main: {
1020
+ readonly type: "record";
1021
+ readonly description: "Records a payment from a sender to a recipient. Any party may record it, and the sender may stay anonymous. When the sender chose the recipient, record one receipt to the final recipient even if platforms or hosts passed the funds on. When an intermediary chose (regranting), record the payment into it and each onward payment as separate receipts. A receipt may be updated in place under the same record key: its URI does not change, so references by URI keep resolving, but a strongRef (as likes and reposts use) still pins the earlier CID, and signatures bind to content and must be renewed. An earlier version cannot be recalled from readers that kept it.";
1022
+ readonly key: "tid";
1023
+ readonly record: {
1024
+ readonly type: "object";
1025
+ readonly required: ["to", "createdAt"];
1026
+ readonly properties: {
1027
+ readonly from: {
1028
+ readonly type: "union";
1029
+ readonly description: "The sender of the funds (a free-text string, an account DID, or a strong reference to a record). Optional — omit to represent anonymity. Name a sender only if they chose to be named: from can be added later by updating the receipt in place, but removing it later only hides the name from the current version, and an onchain transactionId still names the sending wallet.";
1030
+ readonly refs: ["lex:org.hypercerts.funding.receipt#text", "lex:app.certified.defs#did", "lex:com.atproto.repo.strongRef"];
1031
+ };
1032
+ readonly to: {
1033
+ readonly type: "union";
1034
+ readonly description: "The recipient of the funds (a free-text string, an account DID, or a strong reference to a record).";
1035
+ readonly refs: ["lex:org.hypercerts.funding.receipt#text", "lex:app.certified.defs#did", "lex:com.atproto.repo.strongRef"];
1036
+ };
1037
+ readonly via: {
1038
+ readonly type: "union";
1039
+ readonly description: "Optional intermediary that facilitated or processed the payment (funding platform, payment servicer, broker).";
1040
+ readonly refs: ["lex:org.hypercerts.funding.receipt#text", "lex:app.certified.defs#did", "lex:com.atproto.repo.strongRef"];
1041
+ };
1042
+ readonly type: {
1043
+ readonly type: "string";
1044
+ readonly description: "What the payment is: a donation (a gift from the sender), a match (funds a matching pool allocated on the strength of other gifts) or a grant (funds awarded through a selection process). Values beyond the known set are permitted. Omit if unknown.";
1045
+ readonly maxLength: 50;
1046
+ readonly knownValues: ["donation", "match", "grant"];
1047
+ };
1048
+ readonly amount: {
1049
+ readonly type: "string";
1050
+ readonly description: "Gross amount the sender paid, before fees, as a numeric string (e.g. '1000.50'). Omit if unknown, and set netAmount instead.";
1051
+ readonly maxLength: 50;
1052
+ };
1053
+ readonly currency: {
1054
+ readonly type: "string";
1055
+ readonly description: "Currency of amount: an ISO 4217 code for fiat (e.g. EUR), a token ticker for digital assets (e.g. USDC). This is what marks the funds as fiat or digital. Set it whenever amount is set.";
1056
+ readonly maxLength: 10;
1057
+ };
1058
+ readonly netAmount: {
1059
+ readonly type: "string";
1060
+ readonly description: "What the recipient received after fees and conversion, as a numeric string in netCurrency.";
1061
+ readonly maxLength: 50;
1062
+ };
1063
+ readonly netCurrency: {
1064
+ readonly type: "string";
1065
+ readonly description: "Currency of netAmount: an ISO 4217 code for fiat, a token ticker for digital assets. Set it whenever netAmount is set.";
1066
+ readonly maxLength: 10;
1067
+ };
1068
+ readonly paymentRail: {
1069
+ readonly type: "string";
1070
+ readonly description: "How the sender paid. Use 'payment_processor' only when the underlying method is unknown.";
1071
+ readonly maxLength: 50;
1072
+ readonly knownValues: ["onchain", "bank_transfer", "card", "direct_debit", "mobile_money", "payment_processor", "cash", "check"];
1073
+ };
1074
+ readonly paymentNetwork: {
1075
+ readonly type: "string";
1076
+ readonly description: "Where transactionId can be looked up: the chain for onchain payments, preferably as a CAIP-2 ID (e.g. 'eip155:1'), otherwise the processor or scheme (e.g. stripe, sepa). Set it whenever transactionId is a transaction hash.";
1077
+ readonly maxLength: 50;
1078
+ };
1079
+ readonly transactionId: {
1080
+ readonly type: "string";
1081
+ readonly description: "ID of the sender's payment, not of a platform's later payout: a transaction hash for onchain payments, otherwise the processor's or scheme's reference. Receipts are public: prefer opaque processor IDs to bank references, and note that a hash reveals the sender's wallet even when from is omitted.";
1082
+ readonly maxLength: 256;
1083
+ };
1084
+ readonly for: {
1085
+ readonly type: "ref";
1086
+ readonly ref: "lex:com.atproto.repo.strongRef";
1087
+ readonly description: "Optional strong reference to the activity, project, or organization this funding relates to.";
1088
+ };
1089
+ readonly notes: {
1090
+ readonly type: "string";
1091
+ readonly description: "Optional notes or additional context for this funding receipt.";
1092
+ readonly maxLength: 500;
1093
+ };
1094
+ readonly occurredAt: {
1095
+ readonly type: "string";
1096
+ readonly format: "datetime";
1097
+ readonly description: "Timestamp when the payment occurred.";
1098
+ };
1099
+ readonly createdAt: {
1100
+ readonly type: "string";
1101
+ readonly format: "datetime";
1102
+ readonly description: "Client-declared timestamp when this receipt record was created.";
1103
+ };
1104
+ readonly signatures: {
1105
+ readonly type: "ref";
1106
+ readonly ref: "lex:app.certified.signature.defs#list";
1107
+ readonly description: "Optional cryptographic signatures attesting to this record's content.";
1108
+ };
1109
+ };
1110
+ };
1111
+ };
1112
+ readonly text: {
1113
+ readonly type: "object";
1114
+ readonly description: "A free-text string value (e.g. a display name, wallet address, or other identifier).";
1115
+ readonly required: ["value"];
1116
+ readonly properties: {
1117
+ readonly value: {
1118
+ readonly type: "string";
1119
+ readonly description: "The string value.";
1120
+ readonly maxLength: 2048;
1121
+ };
1122
+ };
1123
+ };
1124
+ };
1125
+ };
936
1126
  readonly PubTechneDraftAccessRule: {
937
1127
  readonly lexicon: 1;
938
1128
  readonly id: "pub.techne.draft.accessRule";
@@ -2754,6 +2944,62 @@ export declare const schemaDict: {
2754
2944
  };
2755
2945
  };
2756
2946
  };
2947
+ readonly PubTechneDraftFinancials: {
2948
+ readonly lexicon: 1;
2949
+ readonly id: "pub.techne.draft.financials";
2950
+ readonly description: "One tax year of an organization's money, from its filing (for a US nonprofit, the IRS Form 990). Draft tier, PUBLIC. One record per subject per tax year, never a field overwritten each year (lexicon constitution, rule 3).";
2951
+ readonly defs: {
2952
+ readonly main: {
2953
+ readonly type: "record";
2954
+ readonly key: "any";
2955
+ readonly description: "`\"key\": \"any\"`: a writer derives a deterministic rkey from the subject and the tax year, so a re-filed year updates the same record.";
2956
+ readonly record: {
2957
+ readonly type: "object";
2958
+ readonly required: ["subject", "taxYear", "createdAt"];
2959
+ readonly properties: {
2960
+ readonly subject: {
2961
+ readonly type: "ref";
2962
+ readonly ref: "lex:com.atproto.repo.strongRef";
2963
+ readonly description: "The organization the figures are for (a pub.techne.draft.org record).";
2964
+ };
2965
+ readonly taxYear: {
2966
+ readonly type: "integer";
2967
+ readonly minimum: 1900;
2968
+ readonly maximum: 2200;
2969
+ readonly description: "The tax year the figures cover, as the filing names it.";
2970
+ };
2971
+ readonly periodEnd: {
2972
+ readonly type: "string";
2973
+ readonly maxLength: 10;
2974
+ readonly description: "The last day of the tax year (YYYY-MM-DD) when the filing states it; a fiscal year need not end in December.";
2975
+ };
2976
+ readonly revenue: {
2977
+ readonly type: "integer";
2978
+ readonly description: "Total revenue for the year, in whole units of `currency`, as the filing reports it. May be negative.";
2979
+ };
2980
+ readonly expenses: {
2981
+ readonly type: "integer";
2982
+ readonly description: "Total expenses for the year, in whole units of `currency`, as the filing reports it. May be negative.";
2983
+ };
2984
+ readonly assets: {
2985
+ readonly type: "integer";
2986
+ readonly description: "Total assets at the end of the year, in whole units of `currency`, as the filing reports it. May be negative.";
2987
+ };
2988
+ readonly currency: {
2989
+ readonly type: "string";
2990
+ readonly maxLength: 3;
2991
+ readonly default: "USD";
2992
+ readonly description: "ISO 4217 code of the amounts.";
2993
+ };
2994
+ readonly createdAt: {
2995
+ readonly type: "string";
2996
+ readonly format: "datetime";
2997
+ };
2998
+ };
2999
+ };
3000
+ };
3001
+ };
3002
+ };
2757
3003
  readonly PubTechneDraftGeo: {
2758
3004
  readonly lexicon: 1;
2759
3005
  readonly id: "pub.techne.draft.geo";
@@ -3161,12 +3407,19 @@ export declare const schemaDict: {
3161
3407
  readonly defs: {
3162
3408
  readonly main: {
3163
3409
  readonly type: "procedure";
3164
- readonly description: "Make a collective account: a new DID whose credential the platform holds, with a random handle and no records. Nothing is placed or published: the caller then writes as the collective (permissioned.putRecords or com.atproto.repo.applyWrites, repo = the new DID), deciding where its descriptor and memberships live. Until the collective's first record is placed in a space (and for at most a day), its creator may write as it; from then on, only whoever manages its own member space (`pub.techne.draft.space.collective.member/self`) may; managing another of its spaces (an event's invite space, say) gives no pen. So a creator who will manage it writes its own membership in the first batch. Any signed-in DID; one call spends one of the caller's writes. A retried call makes another, empty, collective.";
3410
+ readonly description: "Make a collective account: a new DID whose credential the platform holds, with a random handle, and its founding membership, which the platform writes as the collective: the caller at role 40 (Steward), placed in the collective's own member space (`pub.techne.draft.space.collective.member/self`) with `addedBy` the caller (`founderMembershipVisibility: \"members\"`, the default), or public with no `addedBy` (`\"public\"`); a collective that will keep its roster private (a circle) keeps the default, since a public membership cannot be taken back. Whoever manages that member space, by its memberships public or placed, writes as the collective (pub.techne.draft.identity.writeAsCollective, permissioned.putRecords or com.atproto.repo.applyWrites, repo = the new DID), the caller among them at once; managing another of its spaces (an event's invite space, say) gives no pen. The founding membership is at rkey `mb-self-<caller DID>`, so a write of the caller's membership at that key updates it. If it cannot be written the call fails and the account is deleted. Any signed-in DID; one call spends one of the caller's writes. A retried call makes another collective.";
3165
3411
  readonly input: {
3166
3412
  readonly encoding: "application/json";
3167
3413
  readonly schema: {
3168
3414
  readonly type: "object";
3169
- readonly properties: {};
3415
+ readonly properties: {
3416
+ readonly founderMembershipVisibility: {
3417
+ readonly type: "string";
3418
+ readonly knownValues: ["public", "members"];
3419
+ readonly default: "members";
3420
+ readonly description: "Who sees the founding membership: `members` (placed in the collective's member space, `pub.techne.draft.space.collective.member/self`, seen by its members) or `public` (a public record).";
3421
+ };
3422
+ };
3170
3423
  };
3171
3424
  };
3172
3425
  readonly output: {
@@ -3189,6 +3442,9 @@ export declare const schemaDict: {
3189
3442
  };
3190
3443
  };
3191
3444
  readonly errors: [{
3445
+ readonly name: "InvalidRequest";
3446
+ readonly description: "HTTP 400. The input is not JSON, or `founderMembershipVisibility` is neither `public` nor `members`.";
3447
+ }, {
3192
3448
  readonly name: "RateLimitExceeded";
3193
3449
  readonly description: "Too many writes from this DID (HTTP 429).";
3194
3450
  }];
@@ -3307,7 +3563,7 @@ export declare const schemaDict: {
3307
3563
  readonly masked: {
3308
3564
  readonly type: "string";
3309
3565
  readonly maxLength: 320;
3310
- readonly description: "The channel with most of it hidden, e.g. `j•••@example.com`, `+1 ••• ••• 4567`; a passkey's or Nostr key's label; `Recovery codes (n left)`.";
3566
+ readonly description: "The channel with most of it hidden, e.g. `j•••@example.com`, `••• ••• 4567`; a passkey's or Nostr key's label; `Recovery codes (n left)`.";
3311
3567
  };
3312
3568
  readonly value: {
3313
3569
  readonly type: "string";
@@ -3664,7 +3920,7 @@ export declare const schemaDict: {
3664
3920
  readonly defs: {
3665
3921
  readonly main: {
3666
3922
  readonly type: "procedure";
3667
- readonly description: "Hold a write until someone proves a phone number: when an account proves `phone`, the platform fills every string value exactly \"$subject\" in `write.record` (and \"$subject\" in `write.rkey`) with that account's DID, every value exactly \"$now\" in the record with the time and every value exactly \"$name\" with that account's name (its public pub.techne.draft.actor.profile displayName, trimmed, at most 64 graphemes, else its handle; a write waits until one is known), and writes the record as `actAs` in `write.space` with what it holds for that account. Only the number's keyed hash is kept; the template may not contain the number. Every hold is answered alike, whether or not the number already has an account: one that has is released the next time it is proved (each phone sign-in proves it), never at once, so nothing here says whether a number has an account or whose it is. The caller must be able to write as `actAs` (its own DID, a collective or circle whose own member space (`space.collective.member/self`) it manages, or a collective it made that has nothing placed yet), now and again when the number is proved; a hold whose caller no longer may, or with a block either way between the new account and the caller or `actAs`, is dropped unwritten, as is one whose record the space does not admit. The record must be one permissioned.putRecord would take with the caller's DID in the slot, and must carry the slot. The nightly sweep deletes a hold 180 days after it was made. Holding again with the same number, `actAs`, `collection`, `space`, `rkey` and record `space` answers the existing hold unchanged (the first template wins; withdraw it with releasePhoneHold and hold again to change it). The template is shown to everyone who may write as `actAs` and read `space` (listPhoneHolds). Identity knows nothing about what the record means. Any signed-in DID; one call spends one of the caller's writes.";
3923
+ readonly description: "Hold a write until someone proves a phone number: when an account proves `phone`, the platform fills every string value exactly \"$subject\" in `write.record` (and \"$subject\" in `write.rkey`) with that account's DID, every value exactly \"$now\" in the record with the time and every value exactly \"$name\" with that account's name (its public pub.techne.draft.actor.profile displayName, trimmed, at most 64 graphemes, else its handle; a write waits until one is known), and writes the record as `actAs` in `write.space` with what it holds for that account. Only the number's keyed hash is kept; the template may not contain the number. Every hold is answered alike, whether or not the number already has an account: one that has is released the next time it is proved (each phone sign-in proves it), never at once, so nothing here says whether a number has an account or whose it is. The caller must be able to write as `actAs` (its own DID, a collective or circle whose own member space (`space.collective.member/self`) it manages), now and again when the number is proved; a hold whose caller no longer may, or with a block either way between the new account and the caller or `actAs`, is dropped unwritten, as is one whose record the space does not admit. The record must be one permissioned.putRecord would take with the caller's DID in the slot, and must carry the slot. The nightly sweep deletes a hold 180 days after it was made. Holding again with the same number, `actAs`, `collection`, `space`, `rkey` and record `space` answers the existing hold unchanged (the first template wins; withdraw it with releasePhoneHold and hold again to change it). The template is shown to everyone who may write as `actAs` and read `space` (listPhoneHolds). Identity knows nothing about what the record means. Any signed-in DID; one call spends one of the caller's writes.";
3668
3924
  readonly input: {
3669
3925
  readonly encoding: "application/json";
3670
3926
  readonly schema: {
@@ -4187,7 +4443,7 @@ export declare const schemaDict: {
4187
4443
  readonly defs: {
4188
4444
  readonly main: {
4189
4445
  readonly type: "procedure";
4190
- readonly description: "The identity PDS's signed hook for the sign-in method rules (the account page and sign-in page call it; the rules live on the platform so every client obeys the same ones). Authenticated only by the epds-signature MAC with the identity hook secret; no session, OAuth or service-JWT caller reaches it, and every answer is signed. The PDS vouches for the signed-in account (`did`, which must be hosted on the calling PDS, else 404 UnknownAccount) and for the step-up it just checked (`stepUp`: which method, when; it counts for 10 minutes). Rules: a recovery method acting with a fresh step-up acts at once; anything else removes a method or deletes the account after a 7-day wait with an email notice, if it has any email method, cancellable by any of the account's methods, a frozen one too (`cancel`); a wait re-checks these rules when it runs out (a method marked for recovery meanwhile is not removed; a first mark is dropped once another method is marked; a wait during which any of the account's methods was frozen, even if a recovery method lifted the freeze early or removed the method, is dropped, not completed, since a frozen method can't sign in to cancel it, and every email method gets a `waitDropped` notice naming the change); a freeze is immediate, from a different method with a fresh step-up, and lasts 7 days or until a recovery method lifts it (`unfreeze`); a recovery method is never frozen, removed or unmarked by an unmarked one; the last way to sign in is never removed; marking a recovery method needs a fresh step-up of one, except the account's first, which needs a fresh step-up of any of its methods (else StepUpRequired) and waits 24 hours with an email notice, if the account has any email method. Notices are email only: the platform sends every one itself, wherever the account is hosted, to each of the account's email methods (never by phone or Nostr); the PDS sends none. Ops: `list` (the account's methods, each email and phone also with its full `value` for the owner's own account page, pending changes (an open `moveMethod` onto the account included), `hasRecovery`, and `person`, the other accounts of its person), `signInMethods` (for a sign-in page that knows only the account, \"Sign in as @handle\": the methods that can sign in now, each a `display` only, never its full value; no step-up, recovery marks or pending changes), `sendTo` (the full email or phone of one of them, for the PDS to send a sign-in code to; never shown), `remove`, `cancel`, `freeze` (with `signOut`), `unfreeze`, `mark`, `unmark`, `signOut` (sign out everywhere the platform holds a session; the PDS revokes its own), `delete`, `addExternal` (a passkey or Nostr key the PDS proved; always a fresh step-up of one of the account's methods, StepUpRequired without one, and never a program's, ProgramRefused), `newRecoveryCodes` (returned once; a new set ends the old; always a fresh step-up, and on an account with no recovery method the set is its first mark, which waits 24 hours; a first set is refused, MethodFrozen, while one of the account's methods is frozen), `redeemCode`, `setPrograms` (\"Programs can sign in with this key\" on or off, `on`, for a Nostr key, the only type that supports it: on and off both need a fresh step-up of one of the account's methods that is not a program, not frozen (a step-up by a key with programs on is ProgramRefused, so that key never switches itself off); on is also refused from the key itself, SameMethod, for a recovery method or one whose first mark is waiting, IsRecovery, and while a method of the account is frozen, MethodFrozen), `addChannel` (a `channel` the PDS just proved for `did`, as identity.finishAddMethod does for a session: `added`, `alreadyYours`, or `boundElsewhere`: when both accounts hold something, with the `other` account and its `method` (the account page offers `moveMethod`), else with a fold `offer` (identity.finishAddMethod#offer), single use, 10 minutes, bound to `did` on this hook and to no session; MethodFrozen when the channel is frozen on any account, MethodFrozen when `did` itself has a frozen method and the channel would be new to it (no method is added past a freeze; `addExternal` likewise), and, on the fold path only (one of the two accounts holds nothing, so an `offer` would be made), ProtectedAccount when either account has a recovery mark, a freeze, a pending change, or a passkey, Nostr key or recovery codes; when both hold something the answer names `other` and `method` and moveMethod's own refusals apply), `fold` (take that offer: `token`; needs a fresh step-up of `did`; ProtectedAccount (a live freeze included) and NotEmpty, checked again; `folded` with the kept `did` and the `emptied` one, which is deleted (on the identity PDS too, by `dueDeletes`)), `moveMethod` (link two accounts: move an email or phone method of account `from` onto `did` and make the two accounts one person, every DID of each linked to every other in `alsoKnownAs`; needs a fresh step-up of `did` and one of `from` (`fromStepUp`, else FromStepUpRequired); refused, nothing scheduled, when a method of either person is frozen (Frozen), either has a pending change (PendingChange), the person would hold more than 4 accounts (TooMany), the two are already one person or the same account (Same), or no key can write `alsoKnownAs` for one of their DIDs (NoKey); a method marked for recovery on `from` moves only with a `fromStepUp` of a recovery method of `from` (RecoveryProtected); it is never done inside the call: the answer is `pending` (the change, a pending change of `from`, as a defs#pendingChange as `did`'s `list` shows it) with `due`, its `dueAt`: now for a move such a step-up proved, else 7 days on, a wait `from` is told about by email (a recovery-proven move is told only when it completes), which any method of either account can `cancel`, and which a freeze of either person's methods drops (`waitDropped` to `from`); the platform completes it once due: a move whose key check or `alsoKnownAs` writes fail is tried again after a backoff (2^tries minutes, at most an hour), one refused for good (no key we can ask holds it, or the identity PDS refuses the account) is dropped with a `moveDropped` email to both accounts, one still failing 24 hours past `due` is dropped with `moveTimedOut`, one whose accounts changed meanwhile (the method gone, or marked for recovery since unless a recovery method proved the move; a refusal above other than a freeze; or a recovery-proven requester no longer a recovery method) is dropped with `moveCancelled` to both, and a completed one sends every account of the person a `linked` email), `unlink` (account `other` leaves `did`'s person at once; the removal of the `alsoKnownAs` entries between it and the rest is queued, tried again after a failure, and given up after about a day, or at once when refused for good, with an `akaLeft` email to both accounts of the entry; needs a fresh step-up of `did`; when `other` would be left with no way to sign in, `method`, one of `did`'s email or phone methods, is required (else NeedsMethod) and moves to `other`, which needs a step-up of a recovery method of `did` or of that method itself (NeedsRecoveryMethod), a recovery method's step-up for a method marked for recovery (RecoveryProtected), a method that is not frozen (MethodFrozen) and not `did`'s last way to sign in (LastMethod); NotLinked when `other` is not in `did`'s person; an email handed to `other` is released from `did`'s identity-PDS account, tried again after a failure and given up after about a day with an `emailLeft` email to `did`; both accounts get an `unlinked` email), `link` (retired, answers 400 InvalidRequest: a link is `moveMethod` now), `importBackupEmails` (once per account, recorded: a second call answers `alreadyImported` even after every mark is taken off; the move of the PDS's verified backup emails, `backupEmails`, each with when the PDS verified it: one verified before 2026-11-13T00:00:00Z becomes an email method marked for recovery at once, without step-up or wait, and one verified at or after it is skipped, `afterCutoff`, since only the holder could have added one before these rules; only an account with no recovery method takes one, all of its addresses in one call (each address once, else 400 InvalidRequest), else `hasRecovery`, nothing changes and the import is spent; a call that marks none of them spends it too; MethodFrozen while one of the account's methods is frozen, not spent; `indexOff` while the identity index is off), `notices` and `noticesSent` (no `did`; unused, kept for older clients: `notices` always answers an empty list and `noticesSent` `count: 0`, since the platform sends every notice itself), for a login service that just checked a signature by a Nostr key and knows no account yet (no `did`) `findKey` (`external`, type `nostr` and the 64-character lowercase hex key: `none` when no account the calling PDS hosts has it, else `done` with the account's `did`, the key's `method`, whether that method is `frozen` now, and whether `programs` may sign in with it), and for scheduled account deletions that came due (no `did`; only the accounts the calling PDS hosts) `dueDeletes` (up to 100 accounts the platform has deleted on its side, which the PDS deletes too; one taken and not confirmed is offered again after 5 minutes, without limit) and `dueDeletesDone` (`dids` the PDS deleted), and for a consent screen after sign-in `operator` (`operator`: whether `did` is one of the platform's operators, so the PDS offers the moderate scope, `include:pub.techne.draft.authModerate`, to operators only and drops it from everyone else's grant). Programs: a key with programs on can't be marked (ProgramsOn), and a program never touches account security: when the PDS says a program made the request (`program`), or the step-up names a key with programs on, every op but `list`, `signInMethods` and `sendTo` is 403 ProgramRefused (`operator` included: a program never moderates), `setPrograms` included: such a key's programs are turned off by a step-up of another of the account's methods.";
4446
+ readonly description: "The identity PDS's signed hook for the sign-in method rules (the account page and sign-in page call it; the rules live on the platform so every client obeys the same ones). Authenticated only by the epds-signature MAC with the identity hook secret; no session, OAuth or service-JWT caller reaches it, and every answer is signed. The PDS vouches for the signed-in account (`did`, which must be hosted on the calling PDS, else 404 UnknownAccount) and for the step-up it just checked (`stepUp`: which method, when; it counts for 10 minutes). Rules: a recovery method acting with a fresh step-up acts at once; anything else removes a method or deletes the account after a 7-day wait with an email notice, if it has any email method, cancellable by any of the account's methods, a frozen one too (`cancel`); a wait re-checks these rules when it runs out (a method marked for recovery meanwhile is not removed; a first mark is dropped once another method is marked; a wait during which any of the account's methods was frozen, even if a recovery method lifted the freeze early or removed the method, is dropped, not completed, since a frozen method can't sign in to cancel it, and every email method gets a `waitDropped` notice naming the change); a freeze is immediate, from a different method with a fresh step-up, and lasts 7 days or until a recovery method lifts it (`unfreeze`); a recovery method is never frozen, removed or unmarked by an unmarked one; the last way to sign in is never removed; marking a recovery method needs a fresh step-up of one, except the account's first, which needs a fresh step-up of any of its methods (else StepUpRequired) and waits 24 hours with an email notice, if the account has any email method. Notices are email only: the platform sends every one itself, wherever the account is hosted, to each of the account's email methods (never by phone or Nostr); the PDS sends none. Ops: `list` (the account's methods, each email and phone also with its full `value` for the owner's own account page, pending changes (an open `moveMethod` onto the account included), `hasRecovery`, and `person`, the other accounts of its person), `signInMethods` (for a sign-in page that knows only the account, \"Sign in as @handle\": the methods that can sign in now, each a masked `display` for any page and a masked `displayDevice` for the PDS's chooser of the accounts already signed in on that browser, never its full value; no step-up, recovery marks or pending changes), `sendTo` (the full email or phone of one of them, for the PDS to send a sign-in code to; never shown), `remove`, `cancel`, `freeze` (with `signOut`), `unfreeze`, `mark`, `unmark`, `signOut` (sign out everywhere the platform holds a session; the PDS revokes its own), `delete`, `addExternal` (a passkey or Nostr key the PDS proved; always a fresh step-up of one of the account's methods, StepUpRequired without one, and never a program's, ProgramRefused), `newRecoveryCodes` (returned once; a new set ends the old; always a fresh step-up, and on an account with no recovery method the set is its first mark, which waits 24 hours; a first set is refused, MethodFrozen, while one of the account's methods is frozen), `redeemCode`, `setPrograms` (\"Programs can sign in with this key\" on or off, `on`, for a Nostr key, the only type that supports it: on and off both need a fresh step-up of one of the account's methods that is not a program, not frozen (a step-up by a key with programs on is ProgramRefused, so that key never switches itself off); on is also refused from the key itself, SameMethod, for a recovery method or one whose first mark is waiting, IsRecovery, and while a method of the account is frozen, MethodFrozen), `addChannel` (a `channel` the PDS just proved for `did`, as identity.finishAddMethod does for a session: `added`, `alreadyYours`, or `boundElsewhere`: when both accounts hold something, with the `other` account and its `method` (the account page offers `moveMethod`), else with a fold `offer` (identity.finishAddMethod#offer), single use, 10 minutes, bound to `did` on this hook and to no session; MethodFrozen when the channel is frozen on any account, MethodFrozen when `did` itself has a frozen method and the channel would be new to it (no method is added past a freeze; `addExternal` likewise), and, on the fold path only (one of the two accounts holds nothing, so an `offer` would be made), ProtectedAccount when either account has a recovery mark, a freeze, a pending change, or a passkey, Nostr key or recovery codes; when both hold something the answer names `other` and `method` and moveMethod's own refusals apply), `fold` (take that offer: `token`; needs a fresh step-up of `did`; ProtectedAccount (a live freeze included) and NotEmpty, checked again; `folded` with the kept `did` and the `emptied` one, which is deleted (on the identity PDS too, by `dueDeletes`)), `moveMethod` (link two accounts: move an email or phone method of account `from` onto `did` and make the two accounts one person, every DID of each linked to every other in `alsoKnownAs`; needs a fresh step-up of `did` and one of `from` (`fromStepUp`, else FromStepUpRequired); refused, nothing scheduled, when a method of either person is frozen (Frozen), either has a pending change (PendingChange), the person would hold more than 4 accounts (TooMany), the two are already one person or the same account (Same), or no key can write `alsoKnownAs` for one of their DIDs (NoKey); a method marked for recovery on `from` moves only with a `fromStepUp` of a recovery method of `from` (RecoveryProtected); it is never done inside the call: the answer is `pending` (the change, a pending change of `from`, as a defs#pendingChange as `did`'s `list` shows it) with `due`, its `dueAt`: now for a move such a step-up proved, else 7 days on, a wait `from` is told about by email (a recovery-proven move is told only when it completes), which any method of either account can `cancel`, and which a freeze of either person's methods drops (`waitDropped` to `from`); the platform completes it once due: a move whose key check or `alsoKnownAs` writes fail is tried again after a backoff (2^tries minutes, at most an hour), one refused for good (no key we can ask holds it, or the identity PDS refuses the account) is dropped with a `moveDropped` email to both accounts, one still failing 24 hours past `due` is dropped with `moveTimedOut`, one whose accounts changed meanwhile (the method gone, or marked for recovery since unless a recovery method proved the move; a refusal above other than a freeze; or a recovery-proven requester no longer a recovery method) is dropped with `moveCancelled` to both, and a completed one sends every account of the person a `linked` email), `unlink` (account `other` leaves `did`'s person at once; the removal of the `alsoKnownAs` entries between it and the rest is queued, tried again after a failure, and given up after about a day, or at once when refused for good, with an `akaLeft` email to both accounts of the entry; needs a fresh step-up of `did`; when `other` would be left with no way to sign in, `method`, one of `did`'s email or phone methods, is required (else NeedsMethod) and moves to `other`, which needs a step-up of a recovery method of `did` or of that method itself (NeedsRecoveryMethod), a recovery method's step-up for a method marked for recovery (RecoveryProtected), a method that is not frozen (MethodFrozen) and not `did`'s last way to sign in (LastMethod); NotLinked when `other` is not in `did`'s person; an email handed to `other` is released from `did`'s identity-PDS account, tried again after a failure and given up after about a day with an `emailLeft` email to `did`; both accounts get an `unlinked` email), `link` (retired, answers 400 InvalidRequest: a link is `moveMethod` now), `importBackupEmails` (once per account, recorded: a second call answers `alreadyImported` even after every mark is taken off; the move of the PDS's verified backup emails, `backupEmails`, each with when the PDS verified it: one verified before 2026-11-13T00:00:00Z becomes an email method marked for recovery at once, without step-up or wait, and one verified at or after it is skipped, `afterCutoff`, since only the holder could have added one before these rules; only an account with no recovery method takes one, all of its addresses in one call (each address once, else 400 InvalidRequest), else `hasRecovery`, nothing changes and the import is spent; a call that marks none of them spends it too; MethodFrozen while one of the account's methods is frozen, not spent; `indexOff` while the identity index is off), `notices` and `noticesSent` (no `did`; unused, kept for older clients: `notices` always answers an empty list and `noticesSent` `count: 0`, since the platform sends every notice itself), for a login service that just checked a signature by a Nostr key and knows no account yet (no `did`) `findKey` (`external`, type `nostr` and the 64-character lowercase hex key: `none` when no account the calling PDS hosts has it, else `done` with the account's `did`, the key's `method`, whether that method is `frozen` now, and whether `programs` may sign in with it), and for scheduled account deletions that came due (no `did`; only the accounts the calling PDS hosts) `dueDeletes` (up to 100 accounts the platform has deleted on its side, which the PDS deletes too; one taken and not confirmed is offered again after 5 minutes, without limit) and `dueDeletesDone` (`dids` the PDS deleted), and for a consent screen after sign-in `operator` (`operator`: whether `did` is one of the platform's operators, so the PDS offers the moderate scope, `include:pub.techne.draft.authModerate`, to operators only and drops it from everyone else's grant). Programs: a key with programs on can't be marked (ProgramsOn), and a program never touches account security: when the PDS says a program made the request (`program`), or the step-up names a key with programs on, every op but `list`, `signInMethods` and `sendTo` is 403 ProgramRefused (`operator` included: a program never moderates), `setPrograms` included: such a key's programs are turned off by a step-up of another of the account's methods.";
4191
4447
  readonly input: {
4192
4448
  readonly encoding: "application/json";
4193
4449
  readonly schema: {
@@ -4630,7 +4886,7 @@ export declare const schemaDict: {
4630
4886
  };
4631
4887
  readonly signInMethod: {
4632
4888
  readonly type: "object";
4633
- readonly description: "One way to sign in, as a page may show it before anyone has signed in: an email as `***a@***e.***m` (the last character of each dot-separated part), a phone as `•••• 97` (its last two digits), a passkey or Nostr key by its label.";
4889
+ readonly description: "One way to sign in, as a page may show it before anyone has signed in: masked, never its full value (though an address whose local part is one character is fully implied).";
4634
4890
  readonly required: ["id", "type", "display"];
4635
4891
  readonly properties: {
4636
4892
  readonly id: {
@@ -4643,6 +4899,13 @@ export declare const schemaDict: {
4643
4899
  };
4644
4900
  readonly display: {
4645
4901
  readonly type: "string";
4902
+ readonly maxLength: 320;
4903
+ readonly description: "For any page, one reached by typing a handle included: an email keeps its first character and, at a common email provider, its domain (`a•••@gmail.com`), at any other domain only the domain's last part (`a•••@•••.dev`; `a•••@•••` for a domain with no dot); a phone its last two digits (`•••• 97`); a passkey or Nostr key its label.";
4904
+ };
4905
+ readonly displayDevice: {
4906
+ readonly type: "string";
4907
+ readonly maxLength: 320;
4908
+ readonly description: "Only for the PDS's chooser of the accounts already signed in on that browser, never for a page reached by typing a handle: an email keeps its first character and its whole domain (`a•••@example.dev`), a phone its last four digits (`••• ••• 4242`); a passkey or Nostr key its label, as `display`. Present exactly when `display` is. Absent from a platform older than this field: use `display`.";
4646
4909
  };
4647
4910
  };
4648
4911
  };
@@ -5169,7 +5432,7 @@ export declare const schemaDict: {
5169
5432
  readonly defs: {
5170
5433
  readonly main: {
5171
5434
  readonly type: "procedure";
5172
- readonly description: "Write as a collective: a batch of creates, updates and deletes applied atomically to the repo of a collective account whose credential this service holds, written with that credential. The same input and output as com.atproto.repo.applyWrites, with `repo` the collective's DID; each write is a com.atproto.repo.applyWrites#create, #update or #delete. The service checks the caller's role in the collective first: whoever manages the collective's own member space (`pub.techne.draft.space.collective.member/self`) writes as it; a member of a circle who only writes there deletes its own membership; a new collective's creator writes its first records; a collective that lets every signed-in account post a type takes one such create. A collective that keeps its memberships and descriptor in its member space (a circle) has them created and updated there with pub.techne.draft.permissioned.putRecords, never here (a delete is applied here), and a `block` is never created or updated as a collective. An app reaches it through the caller's own PDS (`atproto-proxy: <service DID>#atproto_appview`), which forwards it with the caller's service-auth token; the app's OAuth scope needs `rpc:pub.techne.draft.identity.writeAsCollective?aud=<service DID>%23atproto_appview`. An agent's token from this service, or a session with it, calls it directly. Its writes are public records in the collective's repo, and the caller's authority is its role there, so the app's `space:` scopes need not reach them (the `rpc:` scope above is enough). It places nothing in a space: a write that names a `space` is refused, and pub.techne.draft.permissioned.putRecords writes into a collective's space. Your own repo is not written here: write it at your PDS with com.atproto.repo.applyWrites. One call spends one of the caller's writes.";
5435
+ readonly description: "Write as a collective: a batch of creates, updates and deletes applied atomically to the repo of a collective account whose credential this service holds, written with that credential. The same input and output as com.atproto.repo.applyWrites, with `repo` the collective's DID; each write is a com.atproto.repo.applyWrites#create, #update or #delete. The service checks the caller's role in the collective first: whoever manages the collective's own member space (`pub.techne.draft.space.collective.member/self`) writes as it; a member of a circle who only writes there deletes its own membership; a new collective's creator is its manager by the founding membership pub.techne.draft.identity.createCollective writes; a collective that lets every signed-in account post a type takes one such create. A collective that keeps its memberships and descriptor in its member space (a circle) has them created and updated there with pub.techne.draft.permissioned.putRecords, never here (a delete is applied here), and a `block` is never created or updated as a collective. An app reaches it through the caller's own PDS (`atproto-proxy: <service DID>#atproto_appview`), which forwards it with the caller's service-auth token; the app's OAuth scope needs `rpc:pub.techne.draft.identity.writeAsCollective?aud=<service DID>%23atproto_appview`. An agent's token from this service, or a session with it, calls it directly. Its writes are public records in the collective's repo, and the caller's authority is its role there, so the app's `space:` scopes need not reach them (the `rpc:` scope above is enough). It places nothing in a space: a write that names a `space` is refused, and pub.techne.draft.permissioned.putRecords writes into a collective's space. Your own repo is not written here: write it at your PDS with com.atproto.repo.applyWrites. One call spends one of the caller's writes.";
5173
5436
  readonly input: {
5174
5437
  readonly encoding: "application/json";
5175
5438
  readonly schema: {
@@ -5224,7 +5487,7 @@ export declare const schemaDict: {
5224
5487
  };
5225
5488
  readonly errors: [{
5226
5489
  readonly name: "InvalidRequest";
5227
- readonly description: "HTTP 400 (or the body extractor's 413, 415 or 422 for a body that is not JSON). Malformed input; `repo` is the caller's own DID (write your own repo at your PDS); a write names a `space` the app's `space:` scopes cover, or the token carries none (write it there with pub.techne.draft.permissioned.putRecords); or the collective's PDS refused the writes (its reason in the message, e.g. InvalidSwap when `swapCommit` did not match).";
5490
+ readonly description: "HTTP 400 (or the body extractor's 413, 415 or 422 for a body that is not JSON). Malformed input; `repo` is the caller's own DID (write your own repo at your PDS); a write names a `space` the app's `space:` scopes cover, or the token carries no scope claim at all (write it there with pub.techne.draft.permissioned.putRecords); or the collective's PDS refused the writes (its reason in the message, e.g. InvalidSwap when `swapCommit` did not match).";
5228
5491
  }, {
5229
5492
  readonly name: "Forbidden";
5230
5493
  readonly description: "HTTP 403. The caller may not write as `repo`, or not this write: a record above its own role, a `block`, or a membership or descriptor the collective keeps in its member space.";
@@ -5559,12 +5822,12 @@ export declare const schemaDict: {
5559
5822
  readonly PubTechneDraftOrg: {
5560
5823
  readonly lexicon: 1;
5561
5824
  readonly id: "pub.techne.draft.org";
5562
- readonly description: "A commons directory entry for a registered business or nonprofit organization, derived from the almanac's public business-registry beliefs (CO SoS, IRS EO BMF, IRS 990 e-file, city contractor rolls) and classified by a co-sos-registry peg. Draft tier — shape may still change. PUBLIC content, no provenance rule, same posture as pub.techne.draft.place: authored by the almanac's own account, convergence is not by author. `registeredAgent` is never carried here: it typically names a person, often at their home address. `mission`, `fundingMix` and `contractorLicense` are surveyed and deliberately held out of v1: mission is prose rather than a registry fact, fundingMix is the almanac's own computed inference rather than a stated value, and contractorLicense belongs to a different registry than the one this record otherwise describes.";
5825
+ readonly description: "An organization in the commons directory: a registered nonprofit or business. Draft tier. PUBLIC content with no provenance rule, like pub.techne.draft.place. Field names follow the lexicon naming register (`identifiers`, `status`, `locations`, `url`, `description`). There is no mailing address: a registry's address is often an organizer's home, so it is never published. Who said a fact is not a field: it is the writer's repo, its `pub.techne.draft.sourceAttribution` and its `pub.techne.draft.derivation`. A fact about an org someone else wrote is a `pub.techne.draft.statement` carrying `#fields`.";
5563
5826
  readonly defs: {
5564
5827
  readonly main: {
5565
5828
  readonly type: "record";
5566
5829
  readonly key: "any";
5567
- readonly description: "`\"key\": \"any\"` (not `tid`), matching pub.techne.draft.place: seed rkeys are the deterministic \"c\" + base32(sha256(provider_id|stable_key))[..24], stable_key the almanac entity id, so a re-publish updates this same record instead of minting a duplicate.";
5830
+ readonly description: "`\"key\": \"any\"`, like pub.techne.draft.place: a writer derives a deterministic rkey (for the IRS writer, from the EIN) so a re-publish updates the same record instead of minting a duplicate.";
5568
5831
  readonly record: {
5569
5832
  readonly type: "object";
5570
5833
  readonly required: ["name", "createdAt"];
@@ -5573,61 +5836,64 @@ export declare const schemaDict: {
5573
5836
  readonly type: "string";
5574
5837
  readonly maxLength: 640;
5575
5838
  readonly maxGraphemes: 128;
5576
- readonly description: "The organization's registered name. From the almanac `name` attribute.";
5839
+ readonly description: "The organization's name as its registry records it.";
5577
5840
  };
5578
- readonly entityType: {
5579
- readonly type: "string";
5580
- readonly maxLength: 64;
5581
- readonly description: "CO SoS entity-type code (e.g. DLLC, DPC, DNC). From the almanac `entityType` attribute, clipped to 64 chars there (co-sos-registry pipeline.py) — matched here so the two bounds agree.";
5841
+ readonly identifiers: {
5842
+ readonly type: "array";
5843
+ readonly maxLength: 16;
5844
+ readonly description: "Ids the organization has in other registries: `{scheme: \"ein\", value}` (9 digits, no dash), `{scheme: \"co-sos\", value}`. Identity between two org records is a `pub.techne.draft.sameAs`, never a field here; an EIN is its strongest basis.";
5845
+ readonly items: {
5846
+ readonly type: "ref";
5847
+ readonly ref: "lex:pub.techne.draft.org#schemeValue";
5848
+ };
5582
5849
  };
5583
- readonly jurisdictionOfFormation: {
5584
- readonly type: "string";
5585
- readonly maxLength: 64;
5586
- readonly description: "Where the entity was legally formed, as the registry states it. From the almanac `jurisdictionOfFormation` attribute.";
5850
+ readonly category: {
5851
+ readonly type: "array";
5852
+ readonly maxLength: 16;
5853
+ readonly description: "Classification codes per scheme: `irs-ntee`, `irs-subsection`, `co-sos-entity-type`.";
5854
+ readonly items: {
5855
+ readonly type: "ref";
5856
+ readonly ref: "lex:pub.techne.draft.org#schemeValue";
5857
+ };
5587
5858
  };
5588
- readonly identifier: {
5589
- readonly type: "string";
5590
- readonly maxLength: 9;
5591
- readonly description: "The entity's IRS EIN: exactly 9 digits, no dash (shape ^[0-9]{9}$ — atproto lexicon strings carry no pattern property, so the publisher enforces this before write). From the almanac `ein` attribute.";
5859
+ readonly status: {
5860
+ readonly type: "array";
5861
+ readonly maxLength: 16;
5862
+ readonly description: "Registry standing per scheme (`irs`, `co-sos`). A closed organization keeps its record with its status; it is never deleted.";
5863
+ readonly items: {
5864
+ readonly type: "ref";
5865
+ readonly ref: "lex:pub.techne.draft.org#schemeValue";
5866
+ };
5592
5867
  };
5593
- readonly url: {
5868
+ readonly founded: {
5594
5869
  readonly type: "string";
5595
- readonly maxLength: 300;
5596
- readonly description: "The organization's website, absolute http(s). From the almanac `website` attribute.";
5870
+ readonly maxLength: 10;
5871
+ readonly description: "Formation date as the source states it: year, year-month or full date (shape ^[0-9]{4}(-[0-9]{2}(-[0-9]{2})?)?$; atproto strings carry no pattern, so the writer enforces it).";
5597
5872
  };
5598
- readonly telephone: {
5873
+ readonly description: {
5599
5874
  readonly type: "string";
5600
- readonly description: "E.164 phone number. From the almanac `phone` attribute.";
5875
+ readonly maxLength: 30000;
5876
+ readonly maxGraphemes: 10000;
5877
+ readonly description: "Prose about the organization: for a nonprofit, the mission and program text it filed with the IRS (Form 990). Public.";
5601
5878
  };
5602
- readonly email: {
5879
+ readonly url: {
5603
5880
  readonly type: "string";
5604
- readonly maxLength: 254;
5605
- readonly description: "Public contact address. From the almanac `email` attribute, when a merged peg carries one. No atproto lexicon \"email\" format token exists (atrium-codegen's fixed format enum has no such variant) — unlike the almanac's own value_schema, this field carries no format assertion, only the length bound.";
5881
+ readonly format: "uri";
5882
+ readonly maxLength: 300;
5883
+ readonly description: "The organization's own website, absolute http(s).";
5606
5884
  };
5607
- readonly founded: {
5885
+ readonly phone: {
5608
5886
  readonly type: "string";
5609
- readonly maxLength: 10;
5610
- readonly description: "Formation date — year, year-month, or full date (shape ^[0-9]{4}(-[0-9]{2}(-[0-9]{2})?)?$ — atproto lexicon strings carry no pattern property, so the publisher enforces this before write), as the source states it. From the almanac `founded` attribute.";
5611
- };
5612
- readonly address: {
5613
- readonly type: "ref";
5614
- readonly ref: "lex:community.lexicon.location.address";
5615
- readonly description: "Principal address. From the almanac `address` attribute.";
5616
- };
5617
- readonly status: {
5618
- readonly type: "array";
5619
- readonly description: "Registry status per scheme (co-sos, irs). Zero or more; a co-sos and an irs status can coexist for one entity.";
5620
- readonly items: {
5621
- readonly type: "ref";
5622
- readonly ref: "lex:pub.techne.draft.org#schemeTag";
5623
- };
5887
+ readonly maxLength: 32;
5888
+ readonly description: "Public phone number, E.164.";
5624
5889
  };
5625
- readonly category: {
5890
+ readonly locations: {
5626
5891
  readonly type: "array";
5627
- readonly description: "Classification codes per scheme (irs-subsection, irs-ntee).";
5892
+ readonly maxLength: 16;
5893
+ readonly description: "Where the organization is: a point, an address or a place record. Never a mailing address: a registry's address is often an organizer's home, so it is not published. An organization's office or storefront at a commons place is a `pub.techne.draft.orgAtPlace` record, not an entry here.";
5628
5894
  readonly items: {
5629
- readonly type: "ref";
5630
- readonly ref: "lex:pub.techne.draft.org#schemeTag";
5895
+ readonly type: "union";
5896
+ readonly refs: ["lex:community.lexicon.location.geo", "lex:community.lexicon.location.address", "lex:com.atproto.repo.strongRef"];
5631
5897
  };
5632
5898
  };
5633
5899
  readonly createdAt: {
@@ -5637,16 +5903,128 @@ export declare const schemaDict: {
5637
5903
  };
5638
5904
  };
5639
5905
  };
5640
- readonly schemeTag: {
5906
+ readonly fields: {
5907
+ readonly type: "object";
5908
+ readonly description: "Some of an org's own fields, carried by a `pub.techne.draft.statement` about an org record someone else wrote (the subject). Every property is the main record's property of the same name, with the same shape; none is required.";
5909
+ readonly properties: {
5910
+ readonly name: {
5911
+ readonly type: "string";
5912
+ readonly maxLength: 640;
5913
+ readonly maxGraphemes: 128;
5914
+ readonly description: "The organization's name as its registry records it.";
5915
+ };
5916
+ readonly identifiers: {
5917
+ readonly type: "array";
5918
+ readonly maxLength: 16;
5919
+ readonly description: "Ids the organization has in other registries: `{scheme: \"ein\", value}` (9 digits, no dash), `{scheme: \"co-sos\", value}`. Identity between two org records is a `pub.techne.draft.sameAs`, never a field here; an EIN is its strongest basis.";
5920
+ readonly items: {
5921
+ readonly type: "ref";
5922
+ readonly ref: "lex:pub.techne.draft.org#schemeValue";
5923
+ };
5924
+ };
5925
+ readonly category: {
5926
+ readonly type: "array";
5927
+ readonly maxLength: 16;
5928
+ readonly description: "Classification codes per scheme: `irs-ntee`, `irs-subsection`, `co-sos-entity-type`.";
5929
+ readonly items: {
5930
+ readonly type: "ref";
5931
+ readonly ref: "lex:pub.techne.draft.org#schemeValue";
5932
+ };
5933
+ };
5934
+ readonly status: {
5935
+ readonly type: "array";
5936
+ readonly maxLength: 16;
5937
+ readonly description: "Registry standing per scheme (`irs`, `co-sos`). A closed organization keeps its record with its status; it is never deleted.";
5938
+ readonly items: {
5939
+ readonly type: "ref";
5940
+ readonly ref: "lex:pub.techne.draft.org#schemeValue";
5941
+ };
5942
+ };
5943
+ readonly founded: {
5944
+ readonly type: "string";
5945
+ readonly maxLength: 10;
5946
+ readonly description: "Formation date as the source states it: year, year-month or full date (shape ^[0-9]{4}(-[0-9]{2}(-[0-9]{2})?)?$; atproto strings carry no pattern, so the writer enforces it).";
5947
+ };
5948
+ readonly description: {
5949
+ readonly type: "string";
5950
+ readonly maxLength: 30000;
5951
+ readonly maxGraphemes: 10000;
5952
+ readonly description: "Prose about the organization: for a nonprofit, the mission and program text it filed with the IRS (Form 990). Public.";
5953
+ };
5954
+ readonly url: {
5955
+ readonly type: "string";
5956
+ readonly format: "uri";
5957
+ readonly maxLength: 300;
5958
+ readonly description: "The organization's own website, absolute http(s).";
5959
+ };
5960
+ readonly phone: {
5961
+ readonly type: "string";
5962
+ readonly maxLength: 32;
5963
+ readonly description: "Public phone number, E.164.";
5964
+ };
5965
+ readonly locations: {
5966
+ readonly type: "array";
5967
+ readonly maxLength: 16;
5968
+ readonly description: "Where the organization is: a point, an address or a place record. Never a mailing address: a registry's address is often an organizer's home, so it is not published. An organization's office or storefront at a commons place is a `pub.techne.draft.orgAtPlace` record, not an entry here.";
5969
+ readonly items: {
5970
+ readonly type: "union";
5971
+ readonly refs: ["lex:community.lexicon.location.geo", "lex:community.lexicon.location.address", "lex:com.atproto.repo.strongRef"];
5972
+ };
5973
+ };
5974
+ };
5975
+ };
5976
+ readonly schemeValue: {
5641
5977
  readonly type: "object";
5642
- readonly description: "One classification or status code in a named scheme, mirroring the almanac's own {scheme, code} attribute shape.";
5643
- readonly required: ["scheme", "code"];
5978
+ readonly description: "One code in a named scheme: an identifier (`identifiers`), a classification (`category`) or a standing (`status`). `scheme` names the registry or code list, `value` is the code as that registry writes it.";
5979
+ readonly required: ["scheme", "value"];
5644
5980
  readonly properties: {
5645
5981
  readonly scheme: {
5646
5982
  readonly type: "string";
5983
+ readonly maxLength: 64;
5984
+ readonly description: "The registry or code list, e.g. `ein`, `co-sos`, `irs-ntee`, `irs-subsection`, `co-sos-entity-type`, `irs`.";
5647
5985
  };
5648
- readonly code: {
5986
+ readonly value: {
5649
5987
  readonly type: "string";
5988
+ readonly maxLength: 128;
5989
+ readonly description: "The code as the registry writes it, e.g. an EIN as 9 digits with no dash.";
5990
+ };
5991
+ };
5992
+ };
5993
+ };
5994
+ };
5995
+ readonly PubTechneDraftOrgAtPlace: {
5996
+ readonly lexicon: 1;
5997
+ readonly id: "pub.techne.draft.orgAtPlace";
5998
+ readonly description: "A relationship: an organization is at a place (its office or its storefront). Draft tier, PUBLIC. Its own record, not a field on either end, because an org can be at many places, a place can hold many orgs, and someone in particular claims each link (lexicon constitution, rule 2).";
5999
+ readonly defs: {
6000
+ readonly main: {
6001
+ readonly type: "record";
6002
+ readonly key: "any";
6003
+ readonly description: "`\"key\": \"any\"`: a writer derives a deterministic rkey from the two ends so a re-publish updates the same record.";
6004
+ readonly record: {
6005
+ readonly type: "object";
6006
+ readonly required: ["subject", "place", "createdAt"];
6007
+ readonly properties: {
6008
+ readonly subject: {
6009
+ readonly type: "ref";
6010
+ readonly ref: "lex:com.atproto.repo.strongRef";
6011
+ readonly description: "The organization (a pub.techne.draft.org record): what the link is about, so it is trusted as any record with a subject is.";
6012
+ };
6013
+ readonly place: {
6014
+ readonly type: "ref";
6015
+ readonly ref: "lex:com.atproto.repo.strongRef";
6016
+ readonly description: "The place (a pub.techne.draft.place record).";
6017
+ };
6018
+ readonly role: {
6019
+ readonly type: "string";
6020
+ readonly maxLength: 64;
6021
+ readonly knownValues: ["office", "storefront"];
6022
+ readonly description: "What the place is to the organization. Values beyond the known set are permitted.";
6023
+ };
6024
+ readonly createdAt: {
6025
+ readonly type: "string";
6026
+ readonly format: "datetime";
6027
+ };
5650
6028
  };
5651
6029
  };
5652
6030
  };
@@ -5726,11 +6104,11 @@ export declare const schemaDict: {
5726
6104
  readonly PubTechneDraftPermissionedDeleteRecord: {
5727
6105
  readonly lexicon: 1;
5728
6106
  readonly id: "pub.techne.draft.permissioned.deleteRecord";
5729
- readonly 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 own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), 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) or the delete names an app's space the caller may not delete in (then it is Forbidden). 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. A record written for an app's space (a pub.techne.draft.space.private space) is deleted only by a caller whose `space:` scopes cover a delete there or whose token carries no `space:` scopes; any other caller is refused 403 Forbidden and nothing is deleted, even when nothing is at the key. Draft tier.";
6107
+ readonly 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 own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden; any other repo is 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) or the delete names an app's space the caller may not delete in (then it is Forbidden). 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. A record written for an app's space (a pub.techne.draft.space.private space) is deleted only by a caller whose `space:` scopes cover a delete there or whose token carries no scope claim at all (an ePDS grant naming no `space:` scope carries an empty claim and reaches none); any other caller is refused 403 Forbidden and nothing is deleted, even when nothing is at the key. Draft tier.";
5730
6108
  readonly defs: {
5731
6109
  readonly main: {
5732
6110
  readonly type: "procedure";
5733
- readonly description: "Delete one of your own permissioned records (or a collective's or circle's whose own member 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), or it names an app's space the caller may not delete in (Forbidden). 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. A record written for an app's space is deleted only under `space:` scopes covering it or with no `space:` scopes: anyone else is 403 Forbidden. Draft tier.";
6111
+ readonly description: "Delete one of your own permissioned records (or a collective's or circle's whose own member 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), or it names an app's space the caller may not delete in (Forbidden). 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. A record written for an app's space is deleted only under `space:` scopes covering it or with no scope claim: anyone else is 403 Forbidden. Draft tier.";
5734
6112
  readonly input: {
5735
6113
  readonly encoding: "application/json";
5736
6114
  readonly schema: {
@@ -6137,11 +6515,11 @@ export declare const schemaDict: {
6137
6515
  readonly PubTechneDraftPermissionedPutRecord: {
6138
6516
  readonly lexicon: 1;
6139
6517
  readonly id: "pub.techne.draft.permissioned.putRecord";
6140
- readonly 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 own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden: a record is only ever written into its writer's repo. There is no write gate on a first write and no collection check: any collection may be written, for any space, and a first write is never refused by its space's policy (only by the token's `space:` scopes). Replacing a record already written for an app's space (a pub.techne.draft.space.private space): only a caller whose `space:` scopes cover a put there, or whose token carries no `space:` scopes, may replace it; any other caller is refused 403 Forbidden and nothing is written. 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 is a space like any other: a write there counts when its owner writes it under `space:` scopes covering it or with no `space:` scopes (which app is calling is not asked); a write under scopes that do not cover it is refused like any write out of scope. Otherwise it is stored in the writer's repo, counts in no space, and only its writer reads it (a record written for an app's space and not admitted there is read by no one); write it again to ask again (for an app's space only the callers that may replace a record there can). 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. In an app's space this holds only for the callers that may replace a record there; anyone else's write of the same version is refused Forbidden. 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. `space` is required: a write that names no space is refused as InvalidRequest (HTTP 400; for putRecords the whole call, and nothing is written), since public records are written with com.atproto.repo.putRecord and a record only the caller reads goes in its own pub.techne.draft.space.personal. Records written before this rule with no space stay stored and readable by their writer. Draft tier.";
6518
+ readonly 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 own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden; any other repo is Forbidden: a record is only ever written into its writer's repo. There is no write gate on a first write and no collection check: any collection may be written, for any space, and a first write is never refused by its space's policy (only by the token's `space:` scopes). Replacing a record already written for an app's space (a pub.techne.draft.space.private space): only a caller whose `space:` scopes cover a put there, or whose token carries no scope claim at all (an ePDS grant naming no `space:` scope carries an empty claim and reaches none), may replace it; any other caller is refused 403 Forbidden and nothing is written. 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 is a space like any other: a write there counts when its owner writes it under `space:` scopes covering it or with no scope claim at all (which app is calling is not asked); a write under scopes that do not cover it is refused like any write out of scope. Otherwise it is stored in the writer's repo, counts in no space, and only its writer reads it (a record written for an app's space and not admitted there is read by no one); write it again to ask again (for an app's space only the callers that may replace a record there can). 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. In an app's space this holds only for the callers that may replace a record there; anyone else's write of the same version is refused Forbidden. 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. `space` is required: a write that names no space is refused as InvalidRequest (HTTP 400; for putRecords the whole call, and nothing is written), since public records are written with com.atproto.repo.putRecord and a record only the caller reads goes in its own pub.techne.draft.space.personal. Records written before this rule with no space stay stored and readable by their writer. Draft tier.";
6141
6519
  readonly defs: {
6142
6520
  readonly main: {
6143
6521
  readonly type: "procedure";
6144
- readonly description: "Write one record into your own repo (or a collective's or circle's whose own member space you manage; a circle member holding only its write leg writes membership adds and their own claim) as a permissioned record, for the `space` it names (required: no space is InvalidRequest; public records go through com.atproto.repo.putRecord, and a record only you read goes in your space.personal). 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 first write is never refused by its space's policy (only by your token's `space:` scopes). A pub.techne.draft.space.private record counts there when written under `space:` scopes covering it or with no `space:` scopes; which app is calling is not asked. Replacing a record already written there needs `space:` scopes covering it, or none; anyone else is 403 Forbidden. The output's `space` says where it counts. Writing the current version again is a no-op (in an app's space, only under covering scopes or with no `space:` scopes; else Forbidden). 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.";
6522
+ readonly description: "Write one record into your own repo (or a collective's or circle's whose own member space you manage; a circle member holding only its write leg writes membership adds and their own claim) as a permissioned record, for the `space` it names (required: no space is InvalidRequest; public records go through com.atproto.repo.putRecord, and a record only you read goes in your space.personal). 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 first write is never refused by its space's policy (only by your token's `space:` scopes). A pub.techne.draft.space.private record counts there when written under `space:` scopes covering it or with no scope claim; which app is calling is not asked. Replacing a record already written there needs `space:` scopes covering it, or no scope claim; anyone else is 403 Forbidden. The output's `space` says where it counts. Writing the current version again is a no-op (in an app's space, only under covering scopes or with no scope claim; else Forbidden). 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.";
6145
6523
  readonly input: {
6146
6524
  readonly encoding: "application/json";
6147
6525
  readonly schema: {
@@ -6253,11 +6631,11 @@ export declare const schemaDict: {
6253
6631
  readonly PubTechneDraftPermissionedPutRecords: {
6254
6632
  readonly lexicon: 1;
6255
6633
  readonly id: "pub.techne.draft.permissioned.putRecords";
6256
- readonly 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 own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), 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, except in a roster batch: one with any pub.techne.draft.membership write, in whatever repo. A roster batch of more than one write is first checked whole, and a write in it that putRecord would refuse before reading anything (malformed, over 2 MiB, failing its lexicon, or naming a space it cannot be written into) refuses the call as InvalidRequest (HTTP 400) with nothing written; it then stops at its first refused write, and every write after that one is reported as Conflict and not written. Since any prefix of a roster batch may be what is left written, a batch written as a circle that has a manager must keep one after every prefix of its membership writes (see LastManager), not only after the whole batch: to make someone else manager, put their membership at role 30 or above before the caller's own lower one. 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 (in an app's space only under `space:` scopes covering it or with no `space:` scopes; anyone else's re-put there is Forbidden), 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, and a write that replaces a record already written for an app's space (a pub.techne.draft.space.private space) under `space:` scopes that do not cover a put there is refused as putRecord refuses it; either refusal is that write's result (Forbidden), and the next write is applied (in a roster batch, the writes after it are Conflict, not written). A first write is never refused by its space's policy (only by the token's `space:` scopes). `space` is required: a write that names no space is refused as InvalidRequest (HTTP 400; for putRecords the whole call, and nothing is written), since public records are written with com.atproto.repo.putRecord and a record only the caller reads goes in its own pub.techne.draft.space.personal. Records written before this rule with no space stay stored and readable by their writer. Draft tier.";
6634
+ readonly 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 own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden; any other repo is 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, except in a roster batch: one with any pub.techne.draft.membership write, in whatever repo. A roster batch of more than one write is first checked whole, and a write in it that putRecord would refuse before reading anything (malformed, over 2 MiB, failing its lexicon, or naming a space it cannot be written into) refuses the call as InvalidRequest (HTTP 400) with nothing written; it then stops at its first refused write, and every write after that one is reported as Conflict and not written. Since any prefix of a roster batch may be what is left written, a batch written as a circle that has a manager must keep one after every prefix of its membership writes (see LastManager), not only after the whole batch: to make someone else manager, put their membership at role 30 or above before the caller's own lower one. 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 (in an app's space only under `space:` scopes covering it or with no scope claim; anyone else's re-put there is Forbidden), 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, and a write that replaces a record already written for an app's space (a pub.techne.draft.space.private space) under `space:` scopes that do not cover a put there is refused as putRecord refuses it; either refusal is that write's result (Forbidden), and the next write is applied (in a roster batch, the writes after it are Conflict, not written). A first write is never refused by its space's policy (only by the token's `space:` scopes). `space` is required: a write that names no space is refused as InvalidRequest (HTTP 400; for putRecords the whole call, and nothing is written), since public records are written with com.atproto.repo.putRecord and a record only the caller reads goes in its own pub.techne.draft.space.personal. Records written before this rule with no space stay stored and readable by their writer. Draft tier.";
6257
6635
  readonly defs: {
6258
6636
  readonly main: {
6259
6637
  readonly type: "procedure";
6260
- readonly 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), except in a roster batch (one with any pub.techne.draft.membership write), which stops at its first refused write and reports each later one as Conflict, not written; as a circle, every prefix of its membership writes must keep the circle a manager. Send a failed batch again whole: re-putting what landed is a no-op (in an app's space, only under covering scopes or with no `space:` scopes). Space scopes and space.private apply to each write as in putRecord: a first write is never refused by its space's policy (only by the token's `space:` scopes), but replacing a record already written for an app's space needs `space:` scopes covering it or no `space:` scopes, and that write's result is Forbidden. Every write names its `space` (a write with none refuses the whole call, InvalidRequest; public records go through com.atproto.repo.putRecord). Draft tier.";
6638
+ readonly 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), except in a roster batch (one with any pub.techne.draft.membership write), which stops at its first refused write and reports each later one as Conflict, not written; as a circle, every prefix of its membership writes must keep the circle a manager. Send a failed batch again whole: re-putting what landed is a no-op (in an app's space, only under covering scopes or with no scope claim). Space scopes and space.private apply to each write as in putRecord: a first write is never refused by its space's policy (only by the token's `space:` scopes), but replacing a record already written for an app's space needs `space:` scopes covering it or no scope claim, and that write's result is Forbidden. Every write names its `space` (a write with none refuses the whole call, InvalidRequest; public records go through com.atproto.repo.putRecord). Draft tier.";
6261
6639
  readonly input: {
6262
6640
  readonly encoding: "application/json";
6263
6641
  readonly schema: {
@@ -9293,6 +9671,38 @@ export declare const schemaDict: {
9293
9671
  };
9294
9672
  };
9295
9673
  };
9674
+ readonly PubTechneDraftStatement: {
9675
+ readonly lexicon: 1;
9676
+ readonly id: "pub.techne.draft.statement";
9677
+ readonly description: "The generic statement envelope (lexicon constitution, rule 1): a writer's statement of some fields of a record someone else wrote. atproto lets an account write only to its own repo, so a fact about another account's record is stored here: `subject` is that record, and `fields` carries some of its type's own fields under their own names and shapes. One envelope for every kind of fact, never one sidecar type per fact. Draft tier, PUBLIC. Who said it is the repo it lives in; how it was made is a `pub.techne.draft.derivation` whose subject is this statement (and its `attributions`, a `pub.techne.draft.sourceAttribution`).";
9678
+ readonly defs: {
9679
+ readonly main: {
9680
+ readonly type: "record";
9681
+ readonly key: "any";
9682
+ readonly description: "`\"key\": \"any\"`: a writer derives a deterministic rkey from the subject so a re-publish updates the same statement.";
9683
+ readonly record: {
9684
+ readonly type: "object";
9685
+ readonly required: ["subject", "fields", "createdAt"];
9686
+ readonly properties: {
9687
+ readonly subject: {
9688
+ readonly type: "ref";
9689
+ readonly ref: "lex:com.atproto.repo.strongRef";
9690
+ readonly description: "The record the statement is about.";
9691
+ };
9692
+ readonly fields: {
9693
+ readonly type: "union";
9694
+ readonly refs: ["lex:pub.techne.draft.org#fields"];
9695
+ readonly description: "Some of the subject type's own fields. Each member is the subject type's `#fields` def: the same names and shapes as its main record, none required. Open: a type gains statements by gaining a `#fields` def and a member here.";
9696
+ };
9697
+ readonly createdAt: {
9698
+ readonly type: "string";
9699
+ readonly format: "datetime";
9700
+ };
9701
+ };
9702
+ };
9703
+ };
9704
+ };
9705
+ };
9296
9706
  readonly PubTechneDraftSubjectPrefs: {
9297
9707
  readonly lexicon: 1;
9298
9708
  readonly id: "pub.techne.draft.subjectPrefs";
@@ -10898,6 +11308,83 @@ export declare const schemas: ({
10898
11308
  };
10899
11309
  };
10900
11310
  };
11311
+ } | {
11312
+ readonly lexicon: 1;
11313
+ readonly id: "app.certified.defs";
11314
+ readonly description: "Common type definitions used across certified protocols.";
11315
+ readonly defs: {
11316
+ readonly did: {
11317
+ readonly type: "object";
11318
+ readonly description: "A Decentralized Identifier (DID) string.";
11319
+ readonly required: ["did"];
11320
+ readonly properties: {
11321
+ readonly did: {
11322
+ readonly type: "string";
11323
+ readonly format: "did";
11324
+ readonly description: "The DID string value.";
11325
+ readonly maxLength: 256;
11326
+ };
11327
+ };
11328
+ };
11329
+ readonly recordSubject: {
11330
+ readonly type: "object";
11331
+ readonly description: "A subject that is a record, referenced by AT-URI. The URI must use the DID form (not handle form) and deliberately carries no CID: it references the record's identity, not a specific version, so references made against it survive updates to the record.";
11332
+ readonly required: ["uri"];
11333
+ readonly properties: {
11334
+ readonly uri: {
11335
+ readonly type: "string";
11336
+ readonly format: "at-uri";
11337
+ readonly description: "AT-URI (DID form) of the record being followed. Schema validation enforces only general at-uri syntax; writers MUST supply a full record URI (did authority, collection, and rkey — not a handle authority or a partial URI), and consumers (AppView/indexer) are expected to reject or skip subjects that do not conform.";
11338
+ };
11339
+ };
11340
+ };
11341
+ };
11342
+ } | {
11343
+ readonly lexicon: 1;
11344
+ readonly id: "app.certified.signature.defs";
11345
+ readonly description: "Common type definitions for cryptographic signatures attached to records, per the ATProtocol Attestation Specification. Each signature's `$type` says what it attests.";
11346
+ readonly defs: {
11347
+ readonly list: {
11348
+ readonly type: "array";
11349
+ readonly description: "Reusable array of cryptographic signatures on a record. Each entry's `$type` says what it attests. The union is open: other applications may define their own signature types, and consumers ignore types they do not recognize.";
11350
+ readonly items: {
11351
+ readonly type: "union";
11352
+ readonly refs: ["lex:app.certified.signature.defs#inline", "lex:app.certified.signature.defs#createdVia", "lex:com.atproto.repo.strongRef"];
11353
+ };
11354
+ };
11355
+ readonly inline: {
11356
+ readonly type: "object";
11357
+ readonly description: "Inline attestation signature embedded directly in a record. Conforms to the ATProtocol Attestation Specification: the signed input is the 36-byte CIDv1 (dag-cbor + SHA-256) of the record with the `signatures` field removed and a temporary `$sig` metadata object (containing `$type`, `key` and the housing repository DID) inserted before canonical DAG-CBOR encoding. ECDSA with the low-S variant per BIP-0062 is required; the curve (P-256 or K-256) is determined by the multicodec prefix of the verification method's `publicKeyMultibase`.";
11358
+ readonly required: ["signature", "key"];
11359
+ readonly properties: {
11360
+ readonly signature: {
11361
+ readonly type: "bytes";
11362
+ readonly description: "ECDSA signature bytes (raw r,s) over the 36-byte CID of the record. Low-S variant per BIP-0062 is mandatory.";
11363
+ };
11364
+ readonly key: {
11365
+ readonly type: "string";
11366
+ readonly description: "Full DID verification method reference (format: did:{method}:{identifier}#{fragment}). Identifies the signer and the specific key used; the key's multicodec prefix determines the signing curve.";
11367
+ readonly maxLength: 512;
11368
+ };
11369
+ };
11370
+ };
11371
+ readonly createdVia: {
11372
+ readonly type: "object";
11373
+ readonly description: "Inline signature by the application that wrote this version of the record. It does not mean the application endorses the content. A record should carry at most one `#createdVia` signature; applications enforce this, `#list` validation does not. Signed exactly like `#inline`: `$sig` is this signature entry without its `signature` field (so `$type` and `key`), plus `repository`, the DID of the repository that holds the record.";
11374
+ readonly required: ["signature", "key"];
11375
+ readonly properties: {
11376
+ readonly signature: {
11377
+ readonly type: "bytes";
11378
+ readonly description: "ECDSA signature bytes (raw r,s) over the 36-byte CID of the record. Low-S variant per BIP-0062 is mandatory.";
11379
+ };
11380
+ readonly key: {
11381
+ readonly type: "string";
11382
+ readonly description: "DID verification method of the application's signing key. It should be in the application's own DID document, preferably a did:web on the application's domain, so that the DID names the application.";
11383
+ readonly maxLength: 512;
11384
+ };
11385
+ };
11386
+ };
11387
+ };
10901
11388
  } | {
10902
11389
  readonly lexicon: 1;
10903
11390
  readonly id: "com.atproto.admin.defs";
@@ -11719,23 +12206,133 @@ export declare const schemas: ({
11719
12206
  };
11720
12207
  };
11721
12208
  };
11722
- };
11723
- } | {
11724
- readonly lexicon: 1;
11725
- readonly id: "community.lexicon.location.hthree";
11726
- readonly defs: {
11727
- readonly main: {
12209
+ };
12210
+ } | {
12211
+ readonly lexicon: 1;
12212
+ readonly id: "community.lexicon.location.hthree";
12213
+ readonly defs: {
12214
+ readonly main: {
12215
+ readonly type: "object";
12216
+ readonly description: "A physical location in the form of a H3 encoded location.";
12217
+ readonly required: ["value"];
12218
+ readonly properties: {
12219
+ readonly value: {
12220
+ readonly type: "string";
12221
+ readonly description: "The h3 encoded location.";
12222
+ };
12223
+ readonly name: {
12224
+ readonly type: "string";
12225
+ readonly description: "The name of the location.";
12226
+ };
12227
+ };
12228
+ };
12229
+ };
12230
+ } | {
12231
+ readonly lexicon: 1;
12232
+ readonly id: "org.hypercerts.funding.receipt";
12233
+ readonly defs: {
12234
+ readonly main: {
12235
+ readonly type: "record";
12236
+ readonly description: "Records a payment from a sender to a recipient. Any party may record it, and the sender may stay anonymous. When the sender chose the recipient, record one receipt to the final recipient even if platforms or hosts passed the funds on. When an intermediary chose (regranting), record the payment into it and each onward payment as separate receipts. A receipt may be updated in place under the same record key: its URI does not change, so references by URI keep resolving, but a strongRef (as likes and reposts use) still pins the earlier CID, and signatures bind to content and must be renewed. An earlier version cannot be recalled from readers that kept it.";
12237
+ readonly key: "tid";
12238
+ readonly record: {
12239
+ readonly type: "object";
12240
+ readonly required: ["to", "createdAt"];
12241
+ readonly properties: {
12242
+ readonly from: {
12243
+ readonly type: "union";
12244
+ readonly description: "The sender of the funds (a free-text string, an account DID, or a strong reference to a record). Optional — omit to represent anonymity. Name a sender only if they chose to be named: from can be added later by updating the receipt in place, but removing it later only hides the name from the current version, and an onchain transactionId still names the sending wallet.";
12245
+ readonly refs: ["lex:org.hypercerts.funding.receipt#text", "lex:app.certified.defs#did", "lex:com.atproto.repo.strongRef"];
12246
+ };
12247
+ readonly to: {
12248
+ readonly type: "union";
12249
+ readonly description: "The recipient of the funds (a free-text string, an account DID, or a strong reference to a record).";
12250
+ readonly refs: ["lex:org.hypercerts.funding.receipt#text", "lex:app.certified.defs#did", "lex:com.atproto.repo.strongRef"];
12251
+ };
12252
+ readonly via: {
12253
+ readonly type: "union";
12254
+ readonly description: "Optional intermediary that facilitated or processed the payment (funding platform, payment servicer, broker).";
12255
+ readonly refs: ["lex:org.hypercerts.funding.receipt#text", "lex:app.certified.defs#did", "lex:com.atproto.repo.strongRef"];
12256
+ };
12257
+ readonly type: {
12258
+ readonly type: "string";
12259
+ readonly description: "What the payment is: a donation (a gift from the sender), a match (funds a matching pool allocated on the strength of other gifts) or a grant (funds awarded through a selection process). Values beyond the known set are permitted. Omit if unknown.";
12260
+ readonly maxLength: 50;
12261
+ readonly knownValues: ["donation", "match", "grant"];
12262
+ };
12263
+ readonly amount: {
12264
+ readonly type: "string";
12265
+ readonly description: "Gross amount the sender paid, before fees, as a numeric string (e.g. '1000.50'). Omit if unknown, and set netAmount instead.";
12266
+ readonly maxLength: 50;
12267
+ };
12268
+ readonly currency: {
12269
+ readonly type: "string";
12270
+ readonly description: "Currency of amount: an ISO 4217 code for fiat (e.g. EUR), a token ticker for digital assets (e.g. USDC). This is what marks the funds as fiat or digital. Set it whenever amount is set.";
12271
+ readonly maxLength: 10;
12272
+ };
12273
+ readonly netAmount: {
12274
+ readonly type: "string";
12275
+ readonly description: "What the recipient received after fees and conversion, as a numeric string in netCurrency.";
12276
+ readonly maxLength: 50;
12277
+ };
12278
+ readonly netCurrency: {
12279
+ readonly type: "string";
12280
+ readonly description: "Currency of netAmount: an ISO 4217 code for fiat, a token ticker for digital assets. Set it whenever netAmount is set.";
12281
+ readonly maxLength: 10;
12282
+ };
12283
+ readonly paymentRail: {
12284
+ readonly type: "string";
12285
+ readonly description: "How the sender paid. Use 'payment_processor' only when the underlying method is unknown.";
12286
+ readonly maxLength: 50;
12287
+ readonly knownValues: ["onchain", "bank_transfer", "card", "direct_debit", "mobile_money", "payment_processor", "cash", "check"];
12288
+ };
12289
+ readonly paymentNetwork: {
12290
+ readonly type: "string";
12291
+ readonly description: "Where transactionId can be looked up: the chain for onchain payments, preferably as a CAIP-2 ID (e.g. 'eip155:1'), otherwise the processor or scheme (e.g. stripe, sepa). Set it whenever transactionId is a transaction hash.";
12292
+ readonly maxLength: 50;
12293
+ };
12294
+ readonly transactionId: {
12295
+ readonly type: "string";
12296
+ readonly description: "ID of the sender's payment, not of a platform's later payout: a transaction hash for onchain payments, otherwise the processor's or scheme's reference. Receipts are public: prefer opaque processor IDs to bank references, and note that a hash reveals the sender's wallet even when from is omitted.";
12297
+ readonly maxLength: 256;
12298
+ };
12299
+ readonly for: {
12300
+ readonly type: "ref";
12301
+ readonly ref: "lex:com.atproto.repo.strongRef";
12302
+ readonly description: "Optional strong reference to the activity, project, or organization this funding relates to.";
12303
+ };
12304
+ readonly notes: {
12305
+ readonly type: "string";
12306
+ readonly description: "Optional notes or additional context for this funding receipt.";
12307
+ readonly maxLength: 500;
12308
+ };
12309
+ readonly occurredAt: {
12310
+ readonly type: "string";
12311
+ readonly format: "datetime";
12312
+ readonly description: "Timestamp when the payment occurred.";
12313
+ };
12314
+ readonly createdAt: {
12315
+ readonly type: "string";
12316
+ readonly format: "datetime";
12317
+ readonly description: "Client-declared timestamp when this receipt record was created.";
12318
+ };
12319
+ readonly signatures: {
12320
+ readonly type: "ref";
12321
+ readonly ref: "lex:app.certified.signature.defs#list";
12322
+ readonly description: "Optional cryptographic signatures attesting to this record's content.";
12323
+ };
12324
+ };
12325
+ };
12326
+ };
12327
+ readonly text: {
11728
12328
  readonly type: "object";
11729
- readonly description: "A physical location in the form of a H3 encoded location.";
12329
+ readonly description: "A free-text string value (e.g. a display name, wallet address, or other identifier).";
11730
12330
  readonly required: ["value"];
11731
12331
  readonly properties: {
11732
12332
  readonly value: {
11733
12333
  readonly type: "string";
11734
- readonly description: "The h3 encoded location.";
11735
- };
11736
- readonly name: {
11737
- readonly type: "string";
11738
- readonly description: "The name of the location.";
12334
+ readonly description: "The string value.";
12335
+ readonly maxLength: 2048;
11739
12336
  };
11740
12337
  };
11741
12338
  };
@@ -13526,6 +14123,61 @@ export declare const schemas: ({
13526
14123
  };
13527
14124
  };
13528
14125
  };
14126
+ } | {
14127
+ readonly lexicon: 1;
14128
+ readonly id: "pub.techne.draft.financials";
14129
+ readonly description: "One tax year of an organization's money, from its filing (for a US nonprofit, the IRS Form 990). Draft tier, PUBLIC. One record per subject per tax year, never a field overwritten each year (lexicon constitution, rule 3).";
14130
+ readonly defs: {
14131
+ readonly main: {
14132
+ readonly type: "record";
14133
+ readonly key: "any";
14134
+ readonly description: "`\"key\": \"any\"`: a writer derives a deterministic rkey from the subject and the tax year, so a re-filed year updates the same record.";
14135
+ readonly record: {
14136
+ readonly type: "object";
14137
+ readonly required: ["subject", "taxYear", "createdAt"];
14138
+ readonly properties: {
14139
+ readonly subject: {
14140
+ readonly type: "ref";
14141
+ readonly ref: "lex:com.atproto.repo.strongRef";
14142
+ readonly description: "The organization the figures are for (a pub.techne.draft.org record).";
14143
+ };
14144
+ readonly taxYear: {
14145
+ readonly type: "integer";
14146
+ readonly minimum: 1900;
14147
+ readonly maximum: 2200;
14148
+ readonly description: "The tax year the figures cover, as the filing names it.";
14149
+ };
14150
+ readonly periodEnd: {
14151
+ readonly type: "string";
14152
+ readonly maxLength: 10;
14153
+ readonly description: "The last day of the tax year (YYYY-MM-DD) when the filing states it; a fiscal year need not end in December.";
14154
+ };
14155
+ readonly revenue: {
14156
+ readonly type: "integer";
14157
+ readonly description: "Total revenue for the year, in whole units of `currency`, as the filing reports it. May be negative.";
14158
+ };
14159
+ readonly expenses: {
14160
+ readonly type: "integer";
14161
+ readonly description: "Total expenses for the year, in whole units of `currency`, as the filing reports it. May be negative.";
14162
+ };
14163
+ readonly assets: {
14164
+ readonly type: "integer";
14165
+ readonly description: "Total assets at the end of the year, in whole units of `currency`, as the filing reports it. May be negative.";
14166
+ };
14167
+ readonly currency: {
14168
+ readonly type: "string";
14169
+ readonly maxLength: 3;
14170
+ readonly default: "USD";
14171
+ readonly description: "ISO 4217 code of the amounts.";
14172
+ };
14173
+ readonly createdAt: {
14174
+ readonly type: "string";
14175
+ readonly format: "datetime";
14176
+ };
14177
+ };
14178
+ };
14179
+ };
14180
+ };
13529
14181
  } | {
13530
14182
  readonly lexicon: 1;
13531
14183
  readonly id: "pub.techne.draft.geo";
@@ -13926,12 +14578,19 @@ export declare const schemas: ({
13926
14578
  readonly defs: {
13927
14579
  readonly main: {
13928
14580
  readonly type: "procedure";
13929
- readonly description: "Make a collective account: a new DID whose credential the platform holds, with a random handle and no records. Nothing is placed or published: the caller then writes as the collective (permissioned.putRecords or com.atproto.repo.applyWrites, repo = the new DID), deciding where its descriptor and memberships live. Until the collective's first record is placed in a space (and for at most a day), its creator may write as it; from then on, only whoever manages its own member space (`pub.techne.draft.space.collective.member/self`) may; managing another of its spaces (an event's invite space, say) gives no pen. So a creator who will manage it writes its own membership in the first batch. Any signed-in DID; one call spends one of the caller's writes. A retried call makes another, empty, collective.";
14581
+ readonly description: "Make a collective account: a new DID whose credential the platform holds, with a random handle, and its founding membership, which the platform writes as the collective: the caller at role 40 (Steward), placed in the collective's own member space (`pub.techne.draft.space.collective.member/self`) with `addedBy` the caller (`founderMembershipVisibility: \"members\"`, the default), or public with no `addedBy` (`\"public\"`); a collective that will keep its roster private (a circle) keeps the default, since a public membership cannot be taken back. Whoever manages that member space, by its memberships public or placed, writes as the collective (pub.techne.draft.identity.writeAsCollective, permissioned.putRecords or com.atproto.repo.applyWrites, repo = the new DID), the caller among them at once; managing another of its spaces (an event's invite space, say) gives no pen. The founding membership is at rkey `mb-self-<caller DID>`, so a write of the caller's membership at that key updates it. If it cannot be written the call fails and the account is deleted. Any signed-in DID; one call spends one of the caller's writes. A retried call makes another collective.";
13930
14582
  readonly input: {
13931
14583
  readonly encoding: "application/json";
13932
14584
  readonly schema: {
13933
14585
  readonly type: "object";
13934
- readonly properties: {};
14586
+ readonly properties: {
14587
+ readonly founderMembershipVisibility: {
14588
+ readonly type: "string";
14589
+ readonly knownValues: ["public", "members"];
14590
+ readonly default: "members";
14591
+ readonly description: "Who sees the founding membership: `members` (placed in the collective's member space, `pub.techne.draft.space.collective.member/self`, seen by its members) or `public` (a public record).";
14592
+ };
14593
+ };
13935
14594
  };
13936
14595
  };
13937
14596
  readonly output: {
@@ -13954,6 +14613,9 @@ export declare const schemas: ({
13954
14613
  };
13955
14614
  };
13956
14615
  readonly errors: [{
14616
+ readonly name: "InvalidRequest";
14617
+ readonly description: "HTTP 400. The input is not JSON, or `founderMembershipVisibility` is neither `public` nor `members`.";
14618
+ }, {
13957
14619
  readonly name: "RateLimitExceeded";
13958
14620
  readonly description: "Too many writes from this DID (HTTP 429).";
13959
14621
  }];
@@ -14070,7 +14732,7 @@ export declare const schemas: ({
14070
14732
  readonly masked: {
14071
14733
  readonly type: "string";
14072
14734
  readonly maxLength: 320;
14073
- readonly description: "The channel with most of it hidden, e.g. `j•••@example.com`, `+1 ••• ••• 4567`; a passkey's or Nostr key's label; `Recovery codes (n left)`.";
14735
+ readonly description: "The channel with most of it hidden, e.g. `j•••@example.com`, `••• ••• 4567`; a passkey's or Nostr key's label; `Recovery codes (n left)`.";
14074
14736
  };
14075
14737
  readonly value: {
14076
14738
  readonly type: "string";
@@ -14424,7 +15086,7 @@ export declare const schemas: ({
14424
15086
  readonly defs: {
14425
15087
  readonly main: {
14426
15088
  readonly type: "procedure";
14427
- readonly description: "Hold a write until someone proves a phone number: when an account proves `phone`, the platform fills every string value exactly \"$subject\" in `write.record` (and \"$subject\" in `write.rkey`) with that account's DID, every value exactly \"$now\" in the record with the time and every value exactly \"$name\" with that account's name (its public pub.techne.draft.actor.profile displayName, trimmed, at most 64 graphemes, else its handle; a write waits until one is known), and writes the record as `actAs` in `write.space` with what it holds for that account. Only the number's keyed hash is kept; the template may not contain the number. Every hold is answered alike, whether or not the number already has an account: one that has is released the next time it is proved (each phone sign-in proves it), never at once, so nothing here says whether a number has an account or whose it is. The caller must be able to write as `actAs` (its own DID, a collective or circle whose own member space (`space.collective.member/self`) it manages, or a collective it made that has nothing placed yet), now and again when the number is proved; a hold whose caller no longer may, or with a block either way between the new account and the caller or `actAs`, is dropped unwritten, as is one whose record the space does not admit. The record must be one permissioned.putRecord would take with the caller's DID in the slot, and must carry the slot. The nightly sweep deletes a hold 180 days after it was made. Holding again with the same number, `actAs`, `collection`, `space`, `rkey` and record `space` answers the existing hold unchanged (the first template wins; withdraw it with releasePhoneHold and hold again to change it). The template is shown to everyone who may write as `actAs` and read `space` (listPhoneHolds). Identity knows nothing about what the record means. Any signed-in DID; one call spends one of the caller's writes.";
15089
+ readonly description: "Hold a write until someone proves a phone number: when an account proves `phone`, the platform fills every string value exactly \"$subject\" in `write.record` (and \"$subject\" in `write.rkey`) with that account's DID, every value exactly \"$now\" in the record with the time and every value exactly \"$name\" with that account's name (its public pub.techne.draft.actor.profile displayName, trimmed, at most 64 graphemes, else its handle; a write waits until one is known), and writes the record as `actAs` in `write.space` with what it holds for that account. Only the number's keyed hash is kept; the template may not contain the number. Every hold is answered alike, whether or not the number already has an account: one that has is released the next time it is proved (each phone sign-in proves it), never at once, so nothing here says whether a number has an account or whose it is. The caller must be able to write as `actAs` (its own DID, a collective or circle whose own member space (`space.collective.member/self`) it manages), now and again when the number is proved; a hold whose caller no longer may, or with a block either way between the new account and the caller or `actAs`, is dropped unwritten, as is one whose record the space does not admit. The record must be one permissioned.putRecord would take with the caller's DID in the slot, and must carry the slot. The nightly sweep deletes a hold 180 days after it was made. Holding again with the same number, `actAs`, `collection`, `space`, `rkey` and record `space` answers the existing hold unchanged (the first template wins; withdraw it with releasePhoneHold and hold again to change it). The template is shown to everyone who may write as `actAs` and read `space` (listPhoneHolds). Identity knows nothing about what the record means. Any signed-in DID; one call spends one of the caller's writes.";
14428
15090
  readonly input: {
14429
15091
  readonly encoding: "application/json";
14430
15092
  readonly schema: {
@@ -14939,7 +15601,7 @@ export declare const schemas: ({
14939
15601
  readonly defs: {
14940
15602
  readonly main: {
14941
15603
  readonly type: "procedure";
14942
- readonly description: "The identity PDS's signed hook for the sign-in method rules (the account page and sign-in page call it; the rules live on the platform so every client obeys the same ones). Authenticated only by the epds-signature MAC with the identity hook secret; no session, OAuth or service-JWT caller reaches it, and every answer is signed. The PDS vouches for the signed-in account (`did`, which must be hosted on the calling PDS, else 404 UnknownAccount) and for the step-up it just checked (`stepUp`: which method, when; it counts for 10 minutes). Rules: a recovery method acting with a fresh step-up acts at once; anything else removes a method or deletes the account after a 7-day wait with an email notice, if it has any email method, cancellable by any of the account's methods, a frozen one too (`cancel`); a wait re-checks these rules when it runs out (a method marked for recovery meanwhile is not removed; a first mark is dropped once another method is marked; a wait during which any of the account's methods was frozen, even if a recovery method lifted the freeze early or removed the method, is dropped, not completed, since a frozen method can't sign in to cancel it, and every email method gets a `waitDropped` notice naming the change); a freeze is immediate, from a different method with a fresh step-up, and lasts 7 days or until a recovery method lifts it (`unfreeze`); a recovery method is never frozen, removed or unmarked by an unmarked one; the last way to sign in is never removed; marking a recovery method needs a fresh step-up of one, except the account's first, which needs a fresh step-up of any of its methods (else StepUpRequired) and waits 24 hours with an email notice, if the account has any email method. Notices are email only: the platform sends every one itself, wherever the account is hosted, to each of the account's email methods (never by phone or Nostr); the PDS sends none. Ops: `list` (the account's methods, each email and phone also with its full `value` for the owner's own account page, pending changes (an open `moveMethod` onto the account included), `hasRecovery`, and `person`, the other accounts of its person), `signInMethods` (for a sign-in page that knows only the account, \"Sign in as @handle\": the methods that can sign in now, each a `display` only, never its full value; no step-up, recovery marks or pending changes), `sendTo` (the full email or phone of one of them, for the PDS to send a sign-in code to; never shown), `remove`, `cancel`, `freeze` (with `signOut`), `unfreeze`, `mark`, `unmark`, `signOut` (sign out everywhere the platform holds a session; the PDS revokes its own), `delete`, `addExternal` (a passkey or Nostr key the PDS proved; always a fresh step-up of one of the account's methods, StepUpRequired without one, and never a program's, ProgramRefused), `newRecoveryCodes` (returned once; a new set ends the old; always a fresh step-up, and on an account with no recovery method the set is its first mark, which waits 24 hours; a first set is refused, MethodFrozen, while one of the account's methods is frozen), `redeemCode`, `setPrograms` (\"Programs can sign in with this key\" on or off, `on`, for a Nostr key, the only type that supports it: on and off both need a fresh step-up of one of the account's methods that is not a program, not frozen (a step-up by a key with programs on is ProgramRefused, so that key never switches itself off); on is also refused from the key itself, SameMethod, for a recovery method or one whose first mark is waiting, IsRecovery, and while a method of the account is frozen, MethodFrozen), `addChannel` (a `channel` the PDS just proved for `did`, as identity.finishAddMethod does for a session: `added`, `alreadyYours`, or `boundElsewhere`: when both accounts hold something, with the `other` account and its `method` (the account page offers `moveMethod`), else with a fold `offer` (identity.finishAddMethod#offer), single use, 10 minutes, bound to `did` on this hook and to no session; MethodFrozen when the channel is frozen on any account, MethodFrozen when `did` itself has a frozen method and the channel would be new to it (no method is added past a freeze; `addExternal` likewise), and, on the fold path only (one of the two accounts holds nothing, so an `offer` would be made), ProtectedAccount when either account has a recovery mark, a freeze, a pending change, or a passkey, Nostr key or recovery codes; when both hold something the answer names `other` and `method` and moveMethod's own refusals apply), `fold` (take that offer: `token`; needs a fresh step-up of `did`; ProtectedAccount (a live freeze included) and NotEmpty, checked again; `folded` with the kept `did` and the `emptied` one, which is deleted (on the identity PDS too, by `dueDeletes`)), `moveMethod` (link two accounts: move an email or phone method of account `from` onto `did` and make the two accounts one person, every DID of each linked to every other in `alsoKnownAs`; needs a fresh step-up of `did` and one of `from` (`fromStepUp`, else FromStepUpRequired); refused, nothing scheduled, when a method of either person is frozen (Frozen), either has a pending change (PendingChange), the person would hold more than 4 accounts (TooMany), the two are already one person or the same account (Same), or no key can write `alsoKnownAs` for one of their DIDs (NoKey); a method marked for recovery on `from` moves only with a `fromStepUp` of a recovery method of `from` (RecoveryProtected); it is never done inside the call: the answer is `pending` (the change, a pending change of `from`, as a defs#pendingChange as `did`'s `list` shows it) with `due`, its `dueAt`: now for a move such a step-up proved, else 7 days on, a wait `from` is told about by email (a recovery-proven move is told only when it completes), which any method of either account can `cancel`, and which a freeze of either person's methods drops (`waitDropped` to `from`); the platform completes it once due: a move whose key check or `alsoKnownAs` writes fail is tried again after a backoff (2^tries minutes, at most an hour), one refused for good (no key we can ask holds it, or the identity PDS refuses the account) is dropped with a `moveDropped` email to both accounts, one still failing 24 hours past `due` is dropped with `moveTimedOut`, one whose accounts changed meanwhile (the method gone, or marked for recovery since unless a recovery method proved the move; a refusal above other than a freeze; or a recovery-proven requester no longer a recovery method) is dropped with `moveCancelled` to both, and a completed one sends every account of the person a `linked` email), `unlink` (account `other` leaves `did`'s person at once; the removal of the `alsoKnownAs` entries between it and the rest is queued, tried again after a failure, and given up after about a day, or at once when refused for good, with an `akaLeft` email to both accounts of the entry; needs a fresh step-up of `did`; when `other` would be left with no way to sign in, `method`, one of `did`'s email or phone methods, is required (else NeedsMethod) and moves to `other`, which needs a step-up of a recovery method of `did` or of that method itself (NeedsRecoveryMethod), a recovery method's step-up for a method marked for recovery (RecoveryProtected), a method that is not frozen (MethodFrozen) and not `did`'s last way to sign in (LastMethod); NotLinked when `other` is not in `did`'s person; an email handed to `other` is released from `did`'s identity-PDS account, tried again after a failure and given up after about a day with an `emailLeft` email to `did`; both accounts get an `unlinked` email), `link` (retired, answers 400 InvalidRequest: a link is `moveMethod` now), `importBackupEmails` (once per account, recorded: a second call answers `alreadyImported` even after every mark is taken off; the move of the PDS's verified backup emails, `backupEmails`, each with when the PDS verified it: one verified before 2026-11-13T00:00:00Z becomes an email method marked for recovery at once, without step-up or wait, and one verified at or after it is skipped, `afterCutoff`, since only the holder could have added one before these rules; only an account with no recovery method takes one, all of its addresses in one call (each address once, else 400 InvalidRequest), else `hasRecovery`, nothing changes and the import is spent; a call that marks none of them spends it too; MethodFrozen while one of the account's methods is frozen, not spent; `indexOff` while the identity index is off), `notices` and `noticesSent` (no `did`; unused, kept for older clients: `notices` always answers an empty list and `noticesSent` `count: 0`, since the platform sends every notice itself), for a login service that just checked a signature by a Nostr key and knows no account yet (no `did`) `findKey` (`external`, type `nostr` and the 64-character lowercase hex key: `none` when no account the calling PDS hosts has it, else `done` with the account's `did`, the key's `method`, whether that method is `frozen` now, and whether `programs` may sign in with it), and for scheduled account deletions that came due (no `did`; only the accounts the calling PDS hosts) `dueDeletes` (up to 100 accounts the platform has deleted on its side, which the PDS deletes too; one taken and not confirmed is offered again after 5 minutes, without limit) and `dueDeletesDone` (`dids` the PDS deleted), and for a consent screen after sign-in `operator` (`operator`: whether `did` is one of the platform's operators, so the PDS offers the moderate scope, `include:pub.techne.draft.authModerate`, to operators only and drops it from everyone else's grant). Programs: a key with programs on can't be marked (ProgramsOn), and a program never touches account security: when the PDS says a program made the request (`program`), or the step-up names a key with programs on, every op but `list`, `signInMethods` and `sendTo` is 403 ProgramRefused (`operator` included: a program never moderates), `setPrograms` included: such a key's programs are turned off by a step-up of another of the account's methods.";
15604
+ readonly description: "The identity PDS's signed hook for the sign-in method rules (the account page and sign-in page call it; the rules live on the platform so every client obeys the same ones). Authenticated only by the epds-signature MAC with the identity hook secret; no session, OAuth or service-JWT caller reaches it, and every answer is signed. The PDS vouches for the signed-in account (`did`, which must be hosted on the calling PDS, else 404 UnknownAccount) and for the step-up it just checked (`stepUp`: which method, when; it counts for 10 minutes). Rules: a recovery method acting with a fresh step-up acts at once; anything else removes a method or deletes the account after a 7-day wait with an email notice, if it has any email method, cancellable by any of the account's methods, a frozen one too (`cancel`); a wait re-checks these rules when it runs out (a method marked for recovery meanwhile is not removed; a first mark is dropped once another method is marked; a wait during which any of the account's methods was frozen, even if a recovery method lifted the freeze early or removed the method, is dropped, not completed, since a frozen method can't sign in to cancel it, and every email method gets a `waitDropped` notice naming the change); a freeze is immediate, from a different method with a fresh step-up, and lasts 7 days or until a recovery method lifts it (`unfreeze`); a recovery method is never frozen, removed or unmarked by an unmarked one; the last way to sign in is never removed; marking a recovery method needs a fresh step-up of one, except the account's first, which needs a fresh step-up of any of its methods (else StepUpRequired) and waits 24 hours with an email notice, if the account has any email method. Notices are email only: the platform sends every one itself, wherever the account is hosted, to each of the account's email methods (never by phone or Nostr); the PDS sends none. Ops: `list` (the account's methods, each email and phone also with its full `value` for the owner's own account page, pending changes (an open `moveMethod` onto the account included), `hasRecovery`, and `person`, the other accounts of its person), `signInMethods` (for a sign-in page that knows only the account, \"Sign in as @handle\": the methods that can sign in now, each a masked `display` for any page and a masked `displayDevice` for the PDS's chooser of the accounts already signed in on that browser, never its full value; no step-up, recovery marks or pending changes), `sendTo` (the full email or phone of one of them, for the PDS to send a sign-in code to; never shown), `remove`, `cancel`, `freeze` (with `signOut`), `unfreeze`, `mark`, `unmark`, `signOut` (sign out everywhere the platform holds a session; the PDS revokes its own), `delete`, `addExternal` (a passkey or Nostr key the PDS proved; always a fresh step-up of one of the account's methods, StepUpRequired without one, and never a program's, ProgramRefused), `newRecoveryCodes` (returned once; a new set ends the old; always a fresh step-up, and on an account with no recovery method the set is its first mark, which waits 24 hours; a first set is refused, MethodFrozen, while one of the account's methods is frozen), `redeemCode`, `setPrograms` (\"Programs can sign in with this key\" on or off, `on`, for a Nostr key, the only type that supports it: on and off both need a fresh step-up of one of the account's methods that is not a program, not frozen (a step-up by a key with programs on is ProgramRefused, so that key never switches itself off); on is also refused from the key itself, SameMethod, for a recovery method or one whose first mark is waiting, IsRecovery, and while a method of the account is frozen, MethodFrozen), `addChannel` (a `channel` the PDS just proved for `did`, as identity.finishAddMethod does for a session: `added`, `alreadyYours`, or `boundElsewhere`: when both accounts hold something, with the `other` account and its `method` (the account page offers `moveMethod`), else with a fold `offer` (identity.finishAddMethod#offer), single use, 10 minutes, bound to `did` on this hook and to no session; MethodFrozen when the channel is frozen on any account, MethodFrozen when `did` itself has a frozen method and the channel would be new to it (no method is added past a freeze; `addExternal` likewise), and, on the fold path only (one of the two accounts holds nothing, so an `offer` would be made), ProtectedAccount when either account has a recovery mark, a freeze, a pending change, or a passkey, Nostr key or recovery codes; when both hold something the answer names `other` and `method` and moveMethod's own refusals apply), `fold` (take that offer: `token`; needs a fresh step-up of `did`; ProtectedAccount (a live freeze included) and NotEmpty, checked again; `folded` with the kept `did` and the `emptied` one, which is deleted (on the identity PDS too, by `dueDeletes`)), `moveMethod` (link two accounts: move an email or phone method of account `from` onto `did` and make the two accounts one person, every DID of each linked to every other in `alsoKnownAs`; needs a fresh step-up of `did` and one of `from` (`fromStepUp`, else FromStepUpRequired); refused, nothing scheduled, when a method of either person is frozen (Frozen), either has a pending change (PendingChange), the person would hold more than 4 accounts (TooMany), the two are already one person or the same account (Same), or no key can write `alsoKnownAs` for one of their DIDs (NoKey); a method marked for recovery on `from` moves only with a `fromStepUp` of a recovery method of `from` (RecoveryProtected); it is never done inside the call: the answer is `pending` (the change, a pending change of `from`, as a defs#pendingChange as `did`'s `list` shows it) with `due`, its `dueAt`: now for a move such a step-up proved, else 7 days on, a wait `from` is told about by email (a recovery-proven move is told only when it completes), which any method of either account can `cancel`, and which a freeze of either person's methods drops (`waitDropped` to `from`); the platform completes it once due: a move whose key check or `alsoKnownAs` writes fail is tried again after a backoff (2^tries minutes, at most an hour), one refused for good (no key we can ask holds it, or the identity PDS refuses the account) is dropped with a `moveDropped` email to both accounts, one still failing 24 hours past `due` is dropped with `moveTimedOut`, one whose accounts changed meanwhile (the method gone, or marked for recovery since unless a recovery method proved the move; a refusal above other than a freeze; or a recovery-proven requester no longer a recovery method) is dropped with `moveCancelled` to both, and a completed one sends every account of the person a `linked` email), `unlink` (account `other` leaves `did`'s person at once; the removal of the `alsoKnownAs` entries between it and the rest is queued, tried again after a failure, and given up after about a day, or at once when refused for good, with an `akaLeft` email to both accounts of the entry; needs a fresh step-up of `did`; when `other` would be left with no way to sign in, `method`, one of `did`'s email or phone methods, is required (else NeedsMethod) and moves to `other`, which needs a step-up of a recovery method of `did` or of that method itself (NeedsRecoveryMethod), a recovery method's step-up for a method marked for recovery (RecoveryProtected), a method that is not frozen (MethodFrozen) and not `did`'s last way to sign in (LastMethod); NotLinked when `other` is not in `did`'s person; an email handed to `other` is released from `did`'s identity-PDS account, tried again after a failure and given up after about a day with an `emailLeft` email to `did`; both accounts get an `unlinked` email), `link` (retired, answers 400 InvalidRequest: a link is `moveMethod` now), `importBackupEmails` (once per account, recorded: a second call answers `alreadyImported` even after every mark is taken off; the move of the PDS's verified backup emails, `backupEmails`, each with when the PDS verified it: one verified before 2026-11-13T00:00:00Z becomes an email method marked for recovery at once, without step-up or wait, and one verified at or after it is skipped, `afterCutoff`, since only the holder could have added one before these rules; only an account with no recovery method takes one, all of its addresses in one call (each address once, else 400 InvalidRequest), else `hasRecovery`, nothing changes and the import is spent; a call that marks none of them spends it too; MethodFrozen while one of the account's methods is frozen, not spent; `indexOff` while the identity index is off), `notices` and `noticesSent` (no `did`; unused, kept for older clients: `notices` always answers an empty list and `noticesSent` `count: 0`, since the platform sends every notice itself), for a login service that just checked a signature by a Nostr key and knows no account yet (no `did`) `findKey` (`external`, type `nostr` and the 64-character lowercase hex key: `none` when no account the calling PDS hosts has it, else `done` with the account's `did`, the key's `method`, whether that method is `frozen` now, and whether `programs` may sign in with it), and for scheduled account deletions that came due (no `did`; only the accounts the calling PDS hosts) `dueDeletes` (up to 100 accounts the platform has deleted on its side, which the PDS deletes too; one taken and not confirmed is offered again after 5 minutes, without limit) and `dueDeletesDone` (`dids` the PDS deleted), and for a consent screen after sign-in `operator` (`operator`: whether `did` is one of the platform's operators, so the PDS offers the moderate scope, `include:pub.techne.draft.authModerate`, to operators only and drops it from everyone else's grant). Programs: a key with programs on can't be marked (ProgramsOn), and a program never touches account security: when the PDS says a program made the request (`program`), or the step-up names a key with programs on, every op but `list`, `signInMethods` and `sendTo` is 403 ProgramRefused (`operator` included: a program never moderates), `setPrograms` included: such a key's programs are turned off by a step-up of another of the account's methods.";
14943
15605
  readonly input: {
14944
15606
  readonly encoding: "application/json";
14945
15607
  readonly schema: {
@@ -15382,7 +16044,7 @@ export declare const schemas: ({
15382
16044
  };
15383
16045
  readonly signInMethod: {
15384
16046
  readonly type: "object";
15385
- readonly description: "One way to sign in, as a page may show it before anyone has signed in: an email as `***a@***e.***m` (the last character of each dot-separated part), a phone as `•••• 97` (its last two digits), a passkey or Nostr key by its label.";
16047
+ readonly description: "One way to sign in, as a page may show it before anyone has signed in: masked, never its full value (though an address whose local part is one character is fully implied).";
15386
16048
  readonly required: ["id", "type", "display"];
15387
16049
  readonly properties: {
15388
16050
  readonly id: {
@@ -15395,6 +16057,13 @@ export declare const schemas: ({
15395
16057
  };
15396
16058
  readonly display: {
15397
16059
  readonly type: "string";
16060
+ readonly maxLength: 320;
16061
+ readonly description: "For any page, one reached by typing a handle included: an email keeps its first character and, at a common email provider, its domain (`a•••@gmail.com`), at any other domain only the domain's last part (`a•••@•••.dev`; `a•••@•••` for a domain with no dot); a phone its last two digits (`•••• 97`); a passkey or Nostr key its label.";
16062
+ };
16063
+ readonly displayDevice: {
16064
+ readonly type: "string";
16065
+ readonly maxLength: 320;
16066
+ readonly description: "Only for the PDS's chooser of the accounts already signed in on that browser, never for a page reached by typing a handle: an email keeps its first character and its whole domain (`a•••@example.dev`), a phone its last four digits (`••• ••• 4242`); a passkey or Nostr key its label, as `display`. Present exactly when `display` is. Absent from a platform older than this field: use `display`.";
15398
16067
  };
15399
16068
  };
15400
16069
  };
@@ -15912,7 +16581,7 @@ export declare const schemas: ({
15912
16581
  readonly defs: {
15913
16582
  readonly main: {
15914
16583
  readonly type: "procedure";
15915
- readonly description: "Write as a collective: a batch of creates, updates and deletes applied atomically to the repo of a collective account whose credential this service holds, written with that credential. The same input and output as com.atproto.repo.applyWrites, with `repo` the collective's DID; each write is a com.atproto.repo.applyWrites#create, #update or #delete. The service checks the caller's role in the collective first: whoever manages the collective's own member space (`pub.techne.draft.space.collective.member/self`) writes as it; a member of a circle who only writes there deletes its own membership; a new collective's creator writes its first records; a collective that lets every signed-in account post a type takes one such create. A collective that keeps its memberships and descriptor in its member space (a circle) has them created and updated there with pub.techne.draft.permissioned.putRecords, never here (a delete is applied here), and a `block` is never created or updated as a collective. An app reaches it through the caller's own PDS (`atproto-proxy: <service DID>#atproto_appview`), which forwards it with the caller's service-auth token; the app's OAuth scope needs `rpc:pub.techne.draft.identity.writeAsCollective?aud=<service DID>%23atproto_appview`. An agent's token from this service, or a session with it, calls it directly. Its writes are public records in the collective's repo, and the caller's authority is its role there, so the app's `space:` scopes need not reach them (the `rpc:` scope above is enough). It places nothing in a space: a write that names a `space` is refused, and pub.techne.draft.permissioned.putRecords writes into a collective's space. Your own repo is not written here: write it at your PDS with com.atproto.repo.applyWrites. One call spends one of the caller's writes.";
16584
+ readonly description: "Write as a collective: a batch of creates, updates and deletes applied atomically to the repo of a collective account whose credential this service holds, written with that credential. The same input and output as com.atproto.repo.applyWrites, with `repo` the collective's DID; each write is a com.atproto.repo.applyWrites#create, #update or #delete. The service checks the caller's role in the collective first: whoever manages the collective's own member space (`pub.techne.draft.space.collective.member/self`) writes as it; a member of a circle who only writes there deletes its own membership; a new collective's creator is its manager by the founding membership pub.techne.draft.identity.createCollective writes; a collective that lets every signed-in account post a type takes one such create. A collective that keeps its memberships and descriptor in its member space (a circle) has them created and updated there with pub.techne.draft.permissioned.putRecords, never here (a delete is applied here), and a `block` is never created or updated as a collective. An app reaches it through the caller's own PDS (`atproto-proxy: <service DID>#atproto_appview`), which forwards it with the caller's service-auth token; the app's OAuth scope needs `rpc:pub.techne.draft.identity.writeAsCollective?aud=<service DID>%23atproto_appview`. An agent's token from this service, or a session with it, calls it directly. Its writes are public records in the collective's repo, and the caller's authority is its role there, so the app's `space:` scopes need not reach them (the `rpc:` scope above is enough). It places nothing in a space: a write that names a `space` is refused, and pub.techne.draft.permissioned.putRecords writes into a collective's space. Your own repo is not written here: write it at your PDS with com.atproto.repo.applyWrites. One call spends one of the caller's writes.";
15916
16585
  readonly input: {
15917
16586
  readonly encoding: "application/json";
15918
16587
  readonly schema: {
@@ -15967,7 +16636,7 @@ export declare const schemas: ({
15967
16636
  };
15968
16637
  readonly errors: [{
15969
16638
  readonly name: "InvalidRequest";
15970
- readonly description: "HTTP 400 (or the body extractor's 413, 415 or 422 for a body that is not JSON). Malformed input; `repo` is the caller's own DID (write your own repo at your PDS); a write names a `space` the app's `space:` scopes cover, or the token carries none (write it there with pub.techne.draft.permissioned.putRecords); or the collective's PDS refused the writes (its reason in the message, e.g. InvalidSwap when `swapCommit` did not match).";
16639
+ readonly description: "HTTP 400 (or the body extractor's 413, 415 or 422 for a body that is not JSON). Malformed input; `repo` is the caller's own DID (write your own repo at your PDS); a write names a `space` the app's `space:` scopes cover, or the token carries no scope claim at all (write it there with pub.techne.draft.permissioned.putRecords); or the collective's PDS refused the writes (its reason in the message, e.g. InvalidSwap when `swapCommit` did not match).";
15971
16640
  }, {
15972
16641
  readonly name: "Forbidden";
15973
16642
  readonly description: "HTTP 403. The caller may not write as `repo`, or not this write: a record above its own role, a `block`, or a membership or descriptor the collective keeps in its member space.";
@@ -16293,12 +16962,12 @@ export declare const schemas: ({
16293
16962
  } | {
16294
16963
  readonly lexicon: 1;
16295
16964
  readonly id: "pub.techne.draft.org";
16296
- readonly description: "A commons directory entry for a registered business or nonprofit organization, derived from the almanac's public business-registry beliefs (CO SoS, IRS EO BMF, IRS 990 e-file, city contractor rolls) and classified by a co-sos-registry peg. Draft tier — shape may still change. PUBLIC content, no provenance rule, same posture as pub.techne.draft.place: authored by the almanac's own account, convergence is not by author. `registeredAgent` is never carried here: it typically names a person, often at their home address. `mission`, `fundingMix` and `contractorLicense` are surveyed and deliberately held out of v1: mission is prose rather than a registry fact, fundingMix is the almanac's own computed inference rather than a stated value, and contractorLicense belongs to a different registry than the one this record otherwise describes.";
16965
+ readonly description: "An organization in the commons directory: a registered nonprofit or business. Draft tier. PUBLIC content with no provenance rule, like pub.techne.draft.place. Field names follow the lexicon naming register (`identifiers`, `status`, `locations`, `url`, `description`). There is no mailing address: a registry's address is often an organizer's home, so it is never published. Who said a fact is not a field: it is the writer's repo, its `pub.techne.draft.sourceAttribution` and its `pub.techne.draft.derivation`. A fact about an org someone else wrote is a `pub.techne.draft.statement` carrying `#fields`.";
16297
16966
  readonly defs: {
16298
16967
  readonly main: {
16299
16968
  readonly type: "record";
16300
16969
  readonly key: "any";
16301
- readonly description: "`\"key\": \"any\"` (not `tid`), matching pub.techne.draft.place: seed rkeys are the deterministic \"c\" + base32(sha256(provider_id|stable_key))[..24], stable_key the almanac entity id, so a re-publish updates this same record instead of minting a duplicate.";
16970
+ readonly description: "`\"key\": \"any\"`, like pub.techne.draft.place: a writer derives a deterministic rkey (for the IRS writer, from the EIN) so a re-publish updates the same record instead of minting a duplicate.";
16302
16971
  readonly record: {
16303
16972
  readonly type: "object";
16304
16973
  readonly required: ["name", "createdAt"];
@@ -16307,61 +16976,64 @@ export declare const schemas: ({
16307
16976
  readonly type: "string";
16308
16977
  readonly maxLength: 640;
16309
16978
  readonly maxGraphemes: 128;
16310
- readonly description: "The organization's registered name. From the almanac `name` attribute.";
16979
+ readonly description: "The organization's name as its registry records it.";
16311
16980
  };
16312
- readonly entityType: {
16313
- readonly type: "string";
16314
- readonly maxLength: 64;
16315
- readonly description: "CO SoS entity-type code (e.g. DLLC, DPC, DNC). From the almanac `entityType` attribute, clipped to 64 chars there (co-sos-registry pipeline.py) — matched here so the two bounds agree.";
16981
+ readonly identifiers: {
16982
+ readonly type: "array";
16983
+ readonly maxLength: 16;
16984
+ readonly description: "Ids the organization has in other registries: `{scheme: \"ein\", value}` (9 digits, no dash), `{scheme: \"co-sos\", value}`. Identity between two org records is a `pub.techne.draft.sameAs`, never a field here; an EIN is its strongest basis.";
16985
+ readonly items: {
16986
+ readonly type: "ref";
16987
+ readonly ref: "lex:pub.techne.draft.org#schemeValue";
16988
+ };
16316
16989
  };
16317
- readonly jurisdictionOfFormation: {
16318
- readonly type: "string";
16319
- readonly maxLength: 64;
16320
- readonly description: "Where the entity was legally formed, as the registry states it. From the almanac `jurisdictionOfFormation` attribute.";
16990
+ readonly category: {
16991
+ readonly type: "array";
16992
+ readonly maxLength: 16;
16993
+ readonly description: "Classification codes per scheme: `irs-ntee`, `irs-subsection`, `co-sos-entity-type`.";
16994
+ readonly items: {
16995
+ readonly type: "ref";
16996
+ readonly ref: "lex:pub.techne.draft.org#schemeValue";
16997
+ };
16321
16998
  };
16322
- readonly identifier: {
16323
- readonly type: "string";
16324
- readonly maxLength: 9;
16325
- readonly description: "The entity's IRS EIN: exactly 9 digits, no dash (shape ^[0-9]{9}$ — atproto lexicon strings carry no pattern property, so the publisher enforces this before write). From the almanac `ein` attribute.";
16999
+ readonly status: {
17000
+ readonly type: "array";
17001
+ readonly maxLength: 16;
17002
+ readonly description: "Registry standing per scheme (`irs`, `co-sos`). A closed organization keeps its record with its status; it is never deleted.";
17003
+ readonly items: {
17004
+ readonly type: "ref";
17005
+ readonly ref: "lex:pub.techne.draft.org#schemeValue";
17006
+ };
16326
17007
  };
16327
- readonly url: {
17008
+ readonly founded: {
16328
17009
  readonly type: "string";
16329
- readonly maxLength: 300;
16330
- readonly description: "The organization's website, absolute http(s). From the almanac `website` attribute.";
17010
+ readonly maxLength: 10;
17011
+ readonly description: "Formation date as the source states it: year, year-month or full date (shape ^[0-9]{4}(-[0-9]{2}(-[0-9]{2})?)?$; atproto strings carry no pattern, so the writer enforces it).";
16331
17012
  };
16332
- readonly telephone: {
17013
+ readonly description: {
16333
17014
  readonly type: "string";
16334
- readonly description: "E.164 phone number. From the almanac `phone` attribute.";
17015
+ readonly maxLength: 30000;
17016
+ readonly maxGraphemes: 10000;
17017
+ readonly description: "Prose about the organization: for a nonprofit, the mission and program text it filed with the IRS (Form 990). Public.";
16335
17018
  };
16336
- readonly email: {
17019
+ readonly url: {
16337
17020
  readonly type: "string";
16338
- readonly maxLength: 254;
16339
- readonly description: "Public contact address. From the almanac `email` attribute, when a merged peg carries one. No atproto lexicon \"email\" format token exists (atrium-codegen's fixed format enum has no such variant) — unlike the almanac's own value_schema, this field carries no format assertion, only the length bound.";
17021
+ readonly format: "uri";
17022
+ readonly maxLength: 300;
17023
+ readonly description: "The organization's own website, absolute http(s).";
16340
17024
  };
16341
- readonly founded: {
17025
+ readonly phone: {
16342
17026
  readonly type: "string";
16343
- readonly maxLength: 10;
16344
- readonly description: "Formation date — year, year-month, or full date (shape ^[0-9]{4}(-[0-9]{2}(-[0-9]{2})?)?$ — atproto lexicon strings carry no pattern property, so the publisher enforces this before write), as the source states it. From the almanac `founded` attribute.";
16345
- };
16346
- readonly address: {
16347
- readonly type: "ref";
16348
- readonly ref: "lex:community.lexicon.location.address";
16349
- readonly description: "Principal address. From the almanac `address` attribute.";
16350
- };
16351
- readonly status: {
16352
- readonly type: "array";
16353
- readonly description: "Registry status per scheme (co-sos, irs). Zero or more; a co-sos and an irs status can coexist for one entity.";
16354
- readonly items: {
16355
- readonly type: "ref";
16356
- readonly ref: "lex:pub.techne.draft.org#schemeTag";
16357
- };
17027
+ readonly maxLength: 32;
17028
+ readonly description: "Public phone number, E.164.";
16358
17029
  };
16359
- readonly category: {
17030
+ readonly locations: {
16360
17031
  readonly type: "array";
16361
- readonly description: "Classification codes per scheme (irs-subsection, irs-ntee).";
17032
+ readonly maxLength: 16;
17033
+ readonly description: "Where the organization is: a point, an address or a place record. Never a mailing address: a registry's address is often an organizer's home, so it is not published. An organization's office or storefront at a commons place is a `pub.techne.draft.orgAtPlace` record, not an entry here.";
16362
17034
  readonly items: {
16363
- readonly type: "ref";
16364
- readonly ref: "lex:pub.techne.draft.org#schemeTag";
17035
+ readonly type: "union";
17036
+ readonly refs: ["lex:community.lexicon.location.geo", "lex:community.lexicon.location.address", "lex:com.atproto.repo.strongRef"];
16365
17037
  };
16366
17038
  };
16367
17039
  readonly createdAt: {
@@ -16371,16 +17043,127 @@ export declare const schemas: ({
16371
17043
  };
16372
17044
  };
16373
17045
  };
16374
- readonly schemeTag: {
17046
+ readonly fields: {
17047
+ readonly type: "object";
17048
+ readonly description: "Some of an org's own fields, carried by a `pub.techne.draft.statement` about an org record someone else wrote (the subject). Every property is the main record's property of the same name, with the same shape; none is required.";
17049
+ readonly properties: {
17050
+ readonly name: {
17051
+ readonly type: "string";
17052
+ readonly maxLength: 640;
17053
+ readonly maxGraphemes: 128;
17054
+ readonly description: "The organization's name as its registry records it.";
17055
+ };
17056
+ readonly identifiers: {
17057
+ readonly type: "array";
17058
+ readonly maxLength: 16;
17059
+ readonly description: "Ids the organization has in other registries: `{scheme: \"ein\", value}` (9 digits, no dash), `{scheme: \"co-sos\", value}`. Identity between two org records is a `pub.techne.draft.sameAs`, never a field here; an EIN is its strongest basis.";
17060
+ readonly items: {
17061
+ readonly type: "ref";
17062
+ readonly ref: "lex:pub.techne.draft.org#schemeValue";
17063
+ };
17064
+ };
17065
+ readonly category: {
17066
+ readonly type: "array";
17067
+ readonly maxLength: 16;
17068
+ readonly description: "Classification codes per scheme: `irs-ntee`, `irs-subsection`, `co-sos-entity-type`.";
17069
+ readonly items: {
17070
+ readonly type: "ref";
17071
+ readonly ref: "lex:pub.techne.draft.org#schemeValue";
17072
+ };
17073
+ };
17074
+ readonly status: {
17075
+ readonly type: "array";
17076
+ readonly maxLength: 16;
17077
+ readonly description: "Registry standing per scheme (`irs`, `co-sos`). A closed organization keeps its record with its status; it is never deleted.";
17078
+ readonly items: {
17079
+ readonly type: "ref";
17080
+ readonly ref: "lex:pub.techne.draft.org#schemeValue";
17081
+ };
17082
+ };
17083
+ readonly founded: {
17084
+ readonly type: "string";
17085
+ readonly maxLength: 10;
17086
+ readonly description: "Formation date as the source states it: year, year-month or full date (shape ^[0-9]{4}(-[0-9]{2}(-[0-9]{2})?)?$; atproto strings carry no pattern, so the writer enforces it).";
17087
+ };
17088
+ readonly description: {
17089
+ readonly type: "string";
17090
+ readonly maxLength: 30000;
17091
+ readonly maxGraphemes: 10000;
17092
+ readonly description: "Prose about the organization: for a nonprofit, the mission and program text it filed with the IRS (Form 990). Public.";
17093
+ };
17094
+ readonly url: {
17095
+ readonly type: "string";
17096
+ readonly format: "uri";
17097
+ readonly maxLength: 300;
17098
+ readonly description: "The organization's own website, absolute http(s).";
17099
+ };
17100
+ readonly phone: {
17101
+ readonly type: "string";
17102
+ readonly maxLength: 32;
17103
+ readonly description: "Public phone number, E.164.";
17104
+ };
17105
+ readonly locations: {
17106
+ readonly type: "array";
17107
+ readonly maxLength: 16;
17108
+ readonly description: "Where the organization is: a point, an address or a place record. Never a mailing address: a registry's address is often an organizer's home, so it is not published. An organization's office or storefront at a commons place is a `pub.techne.draft.orgAtPlace` record, not an entry here.";
17109
+ readonly items: {
17110
+ readonly type: "union";
17111
+ readonly refs: ["lex:community.lexicon.location.geo", "lex:community.lexicon.location.address", "lex:com.atproto.repo.strongRef"];
17112
+ };
17113
+ };
17114
+ };
17115
+ };
17116
+ readonly schemeValue: {
16375
17117
  readonly type: "object";
16376
- readonly description: "One classification or status code in a named scheme, mirroring the almanac's own {scheme, code} attribute shape.";
16377
- readonly required: ["scheme", "code"];
17118
+ readonly description: "One code in a named scheme: an identifier (`identifiers`), a classification (`category`) or a standing (`status`). `scheme` names the registry or code list, `value` is the code as that registry writes it.";
17119
+ readonly required: ["scheme", "value"];
16378
17120
  readonly properties: {
16379
17121
  readonly scheme: {
16380
17122
  readonly type: "string";
17123
+ readonly maxLength: 64;
17124
+ readonly description: "The registry or code list, e.g. `ein`, `co-sos`, `irs-ntee`, `irs-subsection`, `co-sos-entity-type`, `irs`.";
16381
17125
  };
16382
- readonly code: {
17126
+ readonly value: {
16383
17127
  readonly type: "string";
17128
+ readonly maxLength: 128;
17129
+ readonly description: "The code as the registry writes it, e.g. an EIN as 9 digits with no dash.";
17130
+ };
17131
+ };
17132
+ };
17133
+ };
17134
+ } | {
17135
+ readonly lexicon: 1;
17136
+ readonly id: "pub.techne.draft.orgAtPlace";
17137
+ readonly description: "A relationship: an organization is at a place (its office or its storefront). Draft tier, PUBLIC. Its own record, not a field on either end, because an org can be at many places, a place can hold many orgs, and someone in particular claims each link (lexicon constitution, rule 2).";
17138
+ readonly defs: {
17139
+ readonly main: {
17140
+ readonly type: "record";
17141
+ readonly key: "any";
17142
+ readonly description: "`\"key\": \"any\"`: a writer derives a deterministic rkey from the two ends so a re-publish updates the same record.";
17143
+ readonly record: {
17144
+ readonly type: "object";
17145
+ readonly required: ["subject", "place", "createdAt"];
17146
+ readonly properties: {
17147
+ readonly subject: {
17148
+ readonly type: "ref";
17149
+ readonly ref: "lex:com.atproto.repo.strongRef";
17150
+ readonly description: "The organization (a pub.techne.draft.org record): what the link is about, so it is trusted as any record with a subject is.";
17151
+ };
17152
+ readonly place: {
17153
+ readonly type: "ref";
17154
+ readonly ref: "lex:com.atproto.repo.strongRef";
17155
+ readonly description: "The place (a pub.techne.draft.place record).";
17156
+ };
17157
+ readonly role: {
17158
+ readonly type: "string";
17159
+ readonly maxLength: 64;
17160
+ readonly knownValues: ["office", "storefront"];
17161
+ readonly description: "What the place is to the organization. Values beyond the known set are permitted.";
17162
+ };
17163
+ readonly createdAt: {
17164
+ readonly type: "string";
17165
+ readonly format: "datetime";
17166
+ };
16384
17167
  };
16385
17168
  };
16386
17169
  };
@@ -16457,11 +17240,11 @@ export declare const schemas: ({
16457
17240
  } | {
16458
17241
  readonly lexicon: 1;
16459
17242
  readonly id: "pub.techne.draft.permissioned.deleteRecord";
16460
- readonly 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 own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), 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) or the delete names an app's space the caller may not delete in (then it is Forbidden). 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. A record written for an app's space (a pub.techne.draft.space.private space) is deleted only by a caller whose `space:` scopes cover a delete there or whose token carries no `space:` scopes; any other caller is refused 403 Forbidden and nothing is deleted, even when nothing is at the key. Draft tier.";
17243
+ readonly 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 own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden; any other repo is 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) or the delete names an app's space the caller may not delete in (then it is Forbidden). 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. A record written for an app's space (a pub.techne.draft.space.private space) is deleted only by a caller whose `space:` scopes cover a delete there or whose token carries no scope claim at all (an ePDS grant naming no `space:` scope carries an empty claim and reaches none); any other caller is refused 403 Forbidden and nothing is deleted, even when nothing is at the key. Draft tier.";
16461
17244
  readonly defs: {
16462
17245
  readonly main: {
16463
17246
  readonly type: "procedure";
16464
- readonly description: "Delete one of your own permissioned records (or a collective's or circle's whose own member 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), or it names an app's space the caller may not delete in (Forbidden). 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. A record written for an app's space is deleted only under `space:` scopes covering it or with no `space:` scopes: anyone else is 403 Forbidden. Draft tier.";
17247
+ readonly description: "Delete one of your own permissioned records (or a collective's or circle's whose own member 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), or it names an app's space the caller may not delete in (Forbidden). 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. A record written for an app's space is deleted only under `space:` scopes covering it or with no scope claim: anyone else is 403 Forbidden. Draft tier.";
16465
17248
  readonly input: {
16466
17249
  readonly encoding: "application/json";
16467
17250
  readonly schema: {
@@ -16863,11 +17646,11 @@ export declare const schemas: ({
16863
17646
  } | {
16864
17647
  readonly lexicon: 1;
16865
17648
  readonly id: "pub.techne.draft.permissioned.putRecord";
16866
- readonly 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 own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden: a record is only ever written into its writer's repo. There is no write gate on a first write and no collection check: any collection may be written, for any space, and a first write is never refused by its space's policy (only by the token's `space:` scopes). Replacing a record already written for an app's space (a pub.techne.draft.space.private space): only a caller whose `space:` scopes cover a put there, or whose token carries no `space:` scopes, may replace it; any other caller is refused 403 Forbidden and nothing is written. 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 is a space like any other: a write there counts when its owner writes it under `space:` scopes covering it or with no `space:` scopes (which app is calling is not asked); a write under scopes that do not cover it is refused like any write out of scope. Otherwise it is stored in the writer's repo, counts in no space, and only its writer reads it (a record written for an app's space and not admitted there is read by no one); write it again to ask again (for an app's space only the callers that may replace a record there can). 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. In an app's space this holds only for the callers that may replace a record there; anyone else's write of the same version is refused Forbidden. 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. `space` is required: a write that names no space is refused as InvalidRequest (HTTP 400; for putRecords the whole call, and nothing is written), since public records are written with com.atproto.repo.putRecord and a record only the caller reads goes in its own pub.techne.draft.space.personal. Records written before this rule with no space stay stored and readable by their writer. Draft tier.";
17649
+ readonly 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 own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden; any other repo is Forbidden: a record is only ever written into its writer's repo. There is no write gate on a first write and no collection check: any collection may be written, for any space, and a first write is never refused by its space's policy (only by the token's `space:` scopes). Replacing a record already written for an app's space (a pub.techne.draft.space.private space): only a caller whose `space:` scopes cover a put there, or whose token carries no scope claim at all (an ePDS grant naming no `space:` scope carries an empty claim and reaches none), may replace it; any other caller is refused 403 Forbidden and nothing is written. 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 is a space like any other: a write there counts when its owner writes it under `space:` scopes covering it or with no scope claim at all (which app is calling is not asked); a write under scopes that do not cover it is refused like any write out of scope. Otherwise it is stored in the writer's repo, counts in no space, and only its writer reads it (a record written for an app's space and not admitted there is read by no one); write it again to ask again (for an app's space only the callers that may replace a record there can). 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. In an app's space this holds only for the callers that may replace a record there; anyone else's write of the same version is refused Forbidden. 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. `space` is required: a write that names no space is refused as InvalidRequest (HTTP 400; for putRecords the whole call, and nothing is written), since public records are written with com.atproto.repo.putRecord and a record only the caller reads goes in its own pub.techne.draft.space.personal. Records written before this rule with no space stay stored and readable by their writer. Draft tier.";
16867
17650
  readonly defs: {
16868
17651
  readonly main: {
16869
17652
  readonly type: "procedure";
16870
- readonly description: "Write one record into your own repo (or a collective's or circle's whose own member space you manage; a circle member holding only its write leg writes membership adds and their own claim) as a permissioned record, for the `space` it names (required: no space is InvalidRequest; public records go through com.atproto.repo.putRecord, and a record only you read goes in your space.personal). 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 first write is never refused by its space's policy (only by your token's `space:` scopes). A pub.techne.draft.space.private record counts there when written under `space:` scopes covering it or with no `space:` scopes; which app is calling is not asked. Replacing a record already written there needs `space:` scopes covering it, or none; anyone else is 403 Forbidden. The output's `space` says where it counts. Writing the current version again is a no-op (in an app's space, only under covering scopes or with no `space:` scopes; else Forbidden). 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.";
17653
+ readonly description: "Write one record into your own repo (or a collective's or circle's whose own member space you manage; a circle member holding only its write leg writes membership adds and their own claim) as a permissioned record, for the `space` it names (required: no space is InvalidRequest; public records go through com.atproto.repo.putRecord, and a record only you read goes in your space.personal). 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 first write is never refused by its space's policy (only by your token's `space:` scopes). A pub.techne.draft.space.private record counts there when written under `space:` scopes covering it or with no scope claim; which app is calling is not asked. Replacing a record already written there needs `space:` scopes covering it, or no scope claim; anyone else is 403 Forbidden. The output's `space` says where it counts. Writing the current version again is a no-op (in an app's space, only under covering scopes or with no scope claim; else Forbidden). 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.";
16871
17654
  readonly input: {
16872
17655
  readonly encoding: "application/json";
16873
17656
  readonly schema: {
@@ -16978,11 +17761,11 @@ export declare const schemas: ({
16978
17761
  } | {
16979
17762
  readonly lexicon: 1;
16980
17763
  readonly id: "pub.techne.draft.permissioned.putRecords";
16981
- readonly 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 own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), 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, except in a roster batch: one with any pub.techne.draft.membership write, in whatever repo. A roster batch of more than one write is first checked whole, and a write in it that putRecord would refuse before reading anything (malformed, over 2 MiB, failing its lexicon, or naming a space it cannot be written into) refuses the call as InvalidRequest (HTTP 400) with nothing written; it then stops at its first refused write, and every write after that one is reported as Conflict and not written. Since any prefix of a roster batch may be what is left written, a batch written as a circle that has a manager must keep one after every prefix of its membership writes (see LastManager), not only after the whole batch: to make someone else manager, put their membership at role 30 or above before the caller's own lower one. 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 (in an app's space only under `space:` scopes covering it or with no `space:` scopes; anyone else's re-put there is Forbidden), 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, and a write that replaces a record already written for an app's space (a pub.techne.draft.space.private space) under `space:` scopes that do not cover a put there is refused as putRecord refuses it; either refusal is that write's result (Forbidden), and the next write is applied (in a roster batch, the writes after it are Conflict, not written). A first write is never refused by its space's policy (only by the token's `space:` scopes). `space` is required: a write that names no space is refused as InvalidRequest (HTTP 400; for putRecords the whole call, and nothing is written), since public records are written with com.atproto.repo.putRecord and a record only the caller reads goes in its own pub.techne.draft.space.personal. Records written before this rule with no space stay stored and readable by their writer. Draft tier.";
17764
+ readonly 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 own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden; any other repo is 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, except in a roster batch: one with any pub.techne.draft.membership write, in whatever repo. A roster batch of more than one write is first checked whole, and a write in it that putRecord would refuse before reading anything (malformed, over 2 MiB, failing its lexicon, or naming a space it cannot be written into) refuses the call as InvalidRequest (HTTP 400) with nothing written; it then stops at its first refused write, and every write after that one is reported as Conflict and not written. Since any prefix of a roster batch may be what is left written, a batch written as a circle that has a manager must keep one after every prefix of its membership writes (see LastManager), not only after the whole batch: to make someone else manager, put their membership at role 30 or above before the caller's own lower one. 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 (in an app's space only under `space:` scopes covering it or with no scope claim; anyone else's re-put there is Forbidden), 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, and a write that replaces a record already written for an app's space (a pub.techne.draft.space.private space) under `space:` scopes that do not cover a put there is refused as putRecord refuses it; either refusal is that write's result (Forbidden), and the next write is applied (in a roster batch, the writes after it are Conflict, not written). A first write is never refused by its space's policy (only by the token's `space:` scopes). `space` is required: a write that names no space is refused as InvalidRequest (HTTP 400; for putRecords the whole call, and nothing is written), since public records are written with com.atproto.repo.putRecord and a record only the caller reads goes in its own pub.techne.draft.space.personal. Records written before this rule with no space stay stored and readable by their writer. Draft tier.";
16982
17765
  readonly defs: {
16983
17766
  readonly main: {
16984
17767
  readonly type: "procedure";
16985
- readonly 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), except in a roster batch (one with any pub.techne.draft.membership write), which stops at its first refused write and reports each later one as Conflict, not written; as a circle, every prefix of its membership writes must keep the circle a manager. Send a failed batch again whole: re-putting what landed is a no-op (in an app's space, only under covering scopes or with no `space:` scopes). Space scopes and space.private apply to each write as in putRecord: a first write is never refused by its space's policy (only by the token's `space:` scopes), but replacing a record already written for an app's space needs `space:` scopes covering it or no `space:` scopes, and that write's result is Forbidden. Every write names its `space` (a write with none refuses the whole call, InvalidRequest; public records go through com.atproto.repo.putRecord). Draft tier.";
17768
+ readonly 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), except in a roster batch (one with any pub.techne.draft.membership write), which stops at its first refused write and reports each later one as Conflict, not written; as a circle, every prefix of its membership writes must keep the circle a manager. Send a failed batch again whole: re-putting what landed is a no-op (in an app's space, only under covering scopes or with no scope claim). Space scopes and space.private apply to each write as in putRecord: a first write is never refused by its space's policy (only by the token's `space:` scopes), but replacing a record already written for an app's space needs `space:` scopes covering it or no scope claim, and that write's result is Forbidden. Every write names its `space` (a write with none refuses the whole call, InvalidRequest; public records go through com.atproto.repo.putRecord). Draft tier.";
16986
17769
  readonly input: {
16987
17770
  readonly encoding: "application/json";
16988
17771
  readonly schema: {
@@ -19983,6 +20766,37 @@ export declare const schemas: ({
19983
20766
  };
19984
20767
  };
19985
20768
  };
20769
+ } | {
20770
+ readonly lexicon: 1;
20771
+ readonly id: "pub.techne.draft.statement";
20772
+ readonly description: "The generic statement envelope (lexicon constitution, rule 1): a writer's statement of some fields of a record someone else wrote. atproto lets an account write only to its own repo, so a fact about another account's record is stored here: `subject` is that record, and `fields` carries some of its type's own fields under their own names and shapes. One envelope for every kind of fact, never one sidecar type per fact. Draft tier, PUBLIC. Who said it is the repo it lives in; how it was made is a `pub.techne.draft.derivation` whose subject is this statement (and its `attributions`, a `pub.techne.draft.sourceAttribution`).";
20773
+ readonly defs: {
20774
+ readonly main: {
20775
+ readonly type: "record";
20776
+ readonly key: "any";
20777
+ readonly description: "`\"key\": \"any\"`: a writer derives a deterministic rkey from the subject so a re-publish updates the same statement.";
20778
+ readonly record: {
20779
+ readonly type: "object";
20780
+ readonly required: ["subject", "fields", "createdAt"];
20781
+ readonly properties: {
20782
+ readonly subject: {
20783
+ readonly type: "ref";
20784
+ readonly ref: "lex:com.atproto.repo.strongRef";
20785
+ readonly description: "The record the statement is about.";
20786
+ };
20787
+ readonly fields: {
20788
+ readonly type: "union";
20789
+ readonly refs: ["lex:pub.techne.draft.org#fields"];
20790
+ readonly description: "Some of the subject type's own fields. Each member is the subject type's `#fields` def: the same names and shapes as its main record, none required. Open: a type gains statements by gaining a `#fields` def and a member here.";
20791
+ };
20792
+ readonly createdAt: {
20793
+ readonly type: "string";
20794
+ readonly format: "datetime";
20795
+ };
20796
+ };
20797
+ };
20798
+ };
20799
+ };
19986
20800
  } | {
19987
20801
  readonly lexicon: 1;
19988
20802
  readonly id: "pub.techne.draft.subjectPrefs";
@@ -21499,6 +22313,8 @@ export declare function validate<T extends {
21499
22313
  }>(v: unknown, id: string, hash: string, requiredType?: false): ValidationResult<T>;
21500
22314
  export declare const ids: {
21501
22315
  readonly AppBskyRichtextFacet: "app.bsky.richtext.facet";
22316
+ readonly AppCertifiedDefs: "app.certified.defs";
22317
+ readonly AppCertifiedSignatureDefs: "app.certified.signature.defs";
21502
22318
  readonly ComAtprotoAdminDefs: "com.atproto.admin.defs";
21503
22319
  readonly ComAtprotoLabelDefs: "com.atproto.label.defs";
21504
22320
  readonly ComAtprotoModerationCreateReport: "com.atproto.moderation.createReport";
@@ -21514,6 +22330,7 @@ export declare const ids: {
21514
22330
  readonly CommunityLexiconLocationFsq: "community.lexicon.location.fsq";
21515
22331
  readonly CommunityLexiconLocationGeo: "community.lexicon.location.geo";
21516
22332
  readonly CommunityLexiconLocationHthree: "community.lexicon.location.hthree";
22333
+ readonly OrgHypercertsFundingReceipt: "org.hypercerts.funding.receipt";
21517
22334
  readonly PubTechneDraftAccessRule: "pub.techne.draft.accessRule";
21518
22335
  readonly PubTechneDraftAccountLink: "pub.techne.draft.accountLink";
21519
22336
  readonly PubTechneDraftActorProfile: "pub.techne.draft.actor.profile";
@@ -21549,6 +22366,7 @@ export declare const ids: {
21549
22366
  readonly PubTechneDraftEventDetail: "pub.techne.draft.event.detail";
21550
22367
  readonly PubTechneDraftEventListing: "pub.techne.draft.event.listing";
21551
22368
  readonly PubTechneDraftFeedRecipe: "pub.techne.draft.feed.recipe";
22369
+ readonly PubTechneDraftFinancials: "pub.techne.draft.financials";
21552
22370
  readonly PubTechneDraftGeo: "pub.techne.draft.geo";
21553
22371
  readonly PubTechneDraftHeldAt: "pub.techne.draft.heldAt";
21554
22372
  readonly PubTechneDraftIdentityAccountsForPhones: "pub.techne.draft.identity.accountsForPhones";
@@ -21588,6 +22406,7 @@ export declare const ids: {
21588
22406
  readonly PubTechneDraftNotificationState: "pub.techne.draft.notificationState";
21589
22407
  readonly PubTechneDraftOperator: "pub.techne.draft.operator";
21590
22408
  readonly PubTechneDraftOrg: "pub.techne.draft.org";
22409
+ readonly PubTechneDraftOrgAtPlace: "pub.techne.draft.orgAtPlace";
21591
22410
  readonly PubTechneDraftPassage: "pub.techne.draft.passage";
21592
22411
  readonly PubTechneDraftPendingBeaconSpot: "pub.techne.draft.pendingBeaconSpot";
21593
22412
  readonly PubTechneDraftPermissionedDeleteRecord: "pub.techne.draft.permissioned.deleteRecord";
@@ -21631,6 +22450,7 @@ export declare const ids: {
21631
22450
  readonly PubTechneDraftSource: "pub.techne.draft.source";
21632
22451
  readonly PubTechneDraftSourceAttribution: "pub.techne.draft.sourceAttribution";
21633
22452
  readonly PubTechneDraftSourceRef: "pub.techne.draft.sourceRef";
22453
+ readonly PubTechneDraftStatement: "pub.techne.draft.statement";
21634
22454
  readonly PubTechneDraftSubjectPrefs: "pub.techne.draft.subjectPrefs";
21635
22455
  readonly PubTechneDraftSummary: "pub.techne.draft.summary";
21636
22456
  readonly PubTechneDraftSyncIndexRecord: "pub.techne.draft.sync.indexRecord";