techne-sdk 0.6.0 → 0.8.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 (47) hide show
  1. package/CHANGELOG.md +48 -5
  2. package/README.md +51 -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/session/dpop.d.ts +49 -0
  36. package/dist/session/dpop.js +105 -0
  37. package/dist/session/index.d.ts +22 -0
  38. package/dist/session/index.js +22 -0
  39. package/dist/session/own-session.d.ts +169 -0
  40. package/dist/session/own-session.js +364 -0
  41. package/dist/session/phone.d.ts +79 -0
  42. package/dist/session/phone.js +179 -0
  43. package/dist/session/relay.d.ts +69 -0
  44. package/dist/session/relay.js +120 -0
  45. package/dist/wasm/techne-wasm.gen.js +1 -1
  46. package/dist/wasm/techne-wasm2js.gen.js +23340 -23255
  47. package/package.json +10 -3
@@ -113,6 +113,113 @@ export const catalog = {
113
113
  }
114
114
  })
115
115
  },
116
+ {
117
+ "nsid": "app.certified.defs",
118
+ "name": "app.certified.defs",
119
+ "group": "pub.techne",
120
+ "kind": "object",
121
+ "description": "Common type definitions used across certified protocols.",
122
+ "doc": ({
123
+ "lexicon": 1,
124
+ "id": "app.certified.defs",
125
+ "description": "Common type definitions used across certified protocols.",
126
+ "defs": {
127
+ "did": {
128
+ "type": "object",
129
+ "description": "A Decentralized Identifier (DID) string.",
130
+ "required": [
131
+ "did"
132
+ ],
133
+ "properties": {
134
+ "did": {
135
+ "type": "string",
136
+ "format": "did",
137
+ "description": "The DID string value.",
138
+ "maxLength": 256
139
+ }
140
+ }
141
+ },
142
+ "recordSubject": {
143
+ "type": "object",
144
+ "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.",
145
+ "required": [
146
+ "uri"
147
+ ],
148
+ "properties": {
149
+ "uri": {
150
+ "type": "string",
151
+ "format": "at-uri",
152
+ "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."
153
+ }
154
+ }
155
+ }
156
+ }
157
+ })
158
+ },
159
+ {
160
+ "nsid": "app.certified.signature.defs",
161
+ "name": "app.certified.signature.defs",
162
+ "group": "pub.techne",
163
+ "kind": "array",
164
+ "description": "Common type definitions for cryptographic signatures attached to records, per the ATProtocol Attestation Specification. Each signature's `$type` says what it attests.",
165
+ "doc": ({
166
+ "lexicon": 1,
167
+ "id": "app.certified.signature.defs",
168
+ "description": "Common type definitions for cryptographic signatures attached to records, per the ATProtocol Attestation Specification. Each signature's `$type` says what it attests.",
169
+ "defs": {
170
+ "list": {
171
+ "type": "array",
172
+ "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.",
173
+ "items": {
174
+ "type": "union",
175
+ "refs": [
176
+ "app.certified.signature.defs#inline",
177
+ "app.certified.signature.defs#createdVia",
178
+ "com.atproto.repo.strongRef"
179
+ ]
180
+ }
181
+ },
182
+ "inline": {
183
+ "type": "object",
184
+ "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`.",
185
+ "required": [
186
+ "signature",
187
+ "key"
188
+ ],
189
+ "properties": {
190
+ "signature": {
191
+ "type": "bytes",
192
+ "description": "ECDSA signature bytes (raw r,s) over the 36-byte CID of the record. Low-S variant per BIP-0062 is mandatory."
193
+ },
194
+ "key": {
195
+ "type": "string",
196
+ "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.",
197
+ "maxLength": 512
198
+ }
199
+ }
200
+ },
201
+ "createdVia": {
202
+ "type": "object",
203
+ "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.",
204
+ "required": [
205
+ "signature",
206
+ "key"
207
+ ],
208
+ "properties": {
209
+ "signature": {
210
+ "type": "bytes",
211
+ "description": "ECDSA signature bytes (raw r,s) over the 36-byte CID of the record. Low-S variant per BIP-0062 is mandatory."
212
+ },
213
+ "key": {
214
+ "type": "string",
215
+ "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.",
216
+ "maxLength": 512
217
+ }
218
+ }
219
+ }
220
+ }
221
+ })
222
+ },
116
223
  {
117
224
  "nsid": "com.atproto.admin.defs",
118
225
  "name": "admin.defs",
@@ -1482,6 +1589,274 @@ export const catalog = {
1482
1589
  }
1483
1590
  })
1484
1591
  },
1592
+ {
1593
+ "nsid": "org.hypercerts.funding.receipt",
1594
+ "name": "org.hypercerts.funding.receipt",
1595
+ "group": "pub.techne",
1596
+ "kind": "record",
1597
+ "key": "tid",
1598
+ "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.",
1599
+ "fields": [
1600
+ {
1601
+ "name": "from",
1602
+ "type": "union<#text | app.certified.defs#did | com.atproto.repo.strongRef>",
1603
+ "required": false,
1604
+ "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."
1605
+ },
1606
+ {
1607
+ "name": "to",
1608
+ "type": "union<#text | app.certified.defs#did | com.atproto.repo.strongRef>",
1609
+ "required": true,
1610
+ "description": "The recipient of the funds (a free-text string, an account DID, or a strong reference to a record)."
1611
+ },
1612
+ {
1613
+ "name": "via",
1614
+ "type": "union<#text | app.certified.defs#did | com.atproto.repo.strongRef>",
1615
+ "required": false,
1616
+ "description": "Optional intermediary that facilitated or processed the payment (funding platform, payment servicer, broker)."
1617
+ },
1618
+ {
1619
+ "name": "type",
1620
+ "type": "string (enum)",
1621
+ "required": false,
1622
+ "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.",
1623
+ "knownValues": [
1624
+ "donation",
1625
+ "match",
1626
+ "grant"
1627
+ ]
1628
+ },
1629
+ {
1630
+ "name": "amount",
1631
+ "type": "string",
1632
+ "required": false,
1633
+ "description": "Gross amount the sender paid, before fees, as a numeric string (e.g. '1000.50'). Omit if unknown, and set netAmount instead."
1634
+ },
1635
+ {
1636
+ "name": "currency",
1637
+ "type": "string",
1638
+ "required": false,
1639
+ "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."
1640
+ },
1641
+ {
1642
+ "name": "netAmount",
1643
+ "type": "string",
1644
+ "required": false,
1645
+ "description": "What the recipient received after fees and conversion, as a numeric string in netCurrency."
1646
+ },
1647
+ {
1648
+ "name": "netCurrency",
1649
+ "type": "string",
1650
+ "required": false,
1651
+ "description": "Currency of netAmount: an ISO 4217 code for fiat, a token ticker for digital assets. Set it whenever netAmount is set."
1652
+ },
1653
+ {
1654
+ "name": "paymentRail",
1655
+ "type": "string (enum)",
1656
+ "required": false,
1657
+ "description": "How the sender paid. Use 'payment_processor' only when the underlying method is unknown.",
1658
+ "knownValues": [
1659
+ "onchain",
1660
+ "bank_transfer",
1661
+ "card",
1662
+ "direct_debit",
1663
+ "mobile_money",
1664
+ "payment_processor",
1665
+ "cash",
1666
+ "check"
1667
+ ]
1668
+ },
1669
+ {
1670
+ "name": "paymentNetwork",
1671
+ "type": "string",
1672
+ "required": false,
1673
+ "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."
1674
+ },
1675
+ {
1676
+ "name": "transactionId",
1677
+ "type": "string",
1678
+ "required": false,
1679
+ "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."
1680
+ },
1681
+ {
1682
+ "name": "for",
1683
+ "type": "→ com.atproto.repo.strongRef",
1684
+ "required": false,
1685
+ "description": "Optional strong reference to the activity, project, or organization this funding relates to."
1686
+ },
1687
+ {
1688
+ "name": "notes",
1689
+ "type": "string",
1690
+ "required": false,
1691
+ "description": "Optional notes or additional context for this funding receipt."
1692
+ },
1693
+ {
1694
+ "name": "occurredAt",
1695
+ "type": "string<datetime>",
1696
+ "required": false,
1697
+ "description": "Timestamp when the payment occurred."
1698
+ },
1699
+ {
1700
+ "name": "createdAt",
1701
+ "type": "string<datetime>",
1702
+ "required": true,
1703
+ "description": "Client-declared timestamp when this receipt record was created."
1704
+ },
1705
+ {
1706
+ "name": "signatures",
1707
+ "type": "→ app.certified.signature.defs#list",
1708
+ "required": false,
1709
+ "description": "Optional cryptographic signatures attesting to this record's content."
1710
+ }
1711
+ ],
1712
+ "doc": ({
1713
+ "lexicon": 1,
1714
+ "id": "org.hypercerts.funding.receipt",
1715
+ "defs": {
1716
+ "main": {
1717
+ "type": "record",
1718
+ "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.",
1719
+ "key": "tid",
1720
+ "record": {
1721
+ "type": "object",
1722
+ "required": [
1723
+ "to",
1724
+ "createdAt"
1725
+ ],
1726
+ "properties": {
1727
+ "from": {
1728
+ "type": "union",
1729
+ "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.",
1730
+ "refs": [
1731
+ "#text",
1732
+ "app.certified.defs#did",
1733
+ "com.atproto.repo.strongRef"
1734
+ ]
1735
+ },
1736
+ "to": {
1737
+ "type": "union",
1738
+ "description": "The recipient of the funds (a free-text string, an account DID, or a strong reference to a record).",
1739
+ "refs": [
1740
+ "#text",
1741
+ "app.certified.defs#did",
1742
+ "com.atproto.repo.strongRef"
1743
+ ]
1744
+ },
1745
+ "via": {
1746
+ "type": "union",
1747
+ "description": "Optional intermediary that facilitated or processed the payment (funding platform, payment servicer, broker).",
1748
+ "refs": [
1749
+ "#text",
1750
+ "app.certified.defs#did",
1751
+ "com.atproto.repo.strongRef"
1752
+ ]
1753
+ },
1754
+ "type": {
1755
+ "type": "string",
1756
+ "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.",
1757
+ "maxLength": 50,
1758
+ "knownValues": [
1759
+ "donation",
1760
+ "match",
1761
+ "grant"
1762
+ ]
1763
+ },
1764
+ "amount": {
1765
+ "type": "string",
1766
+ "description": "Gross amount the sender paid, before fees, as a numeric string (e.g. '1000.50'). Omit if unknown, and set netAmount instead.",
1767
+ "maxLength": 50
1768
+ },
1769
+ "currency": {
1770
+ "type": "string",
1771
+ "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.",
1772
+ "maxLength": 10
1773
+ },
1774
+ "netAmount": {
1775
+ "type": "string",
1776
+ "description": "What the recipient received after fees and conversion, as a numeric string in netCurrency.",
1777
+ "maxLength": 50
1778
+ },
1779
+ "netCurrency": {
1780
+ "type": "string",
1781
+ "description": "Currency of netAmount: an ISO 4217 code for fiat, a token ticker for digital assets. Set it whenever netAmount is set.",
1782
+ "maxLength": 10
1783
+ },
1784
+ "paymentRail": {
1785
+ "type": "string",
1786
+ "description": "How the sender paid. Use 'payment_processor' only when the underlying method is unknown.",
1787
+ "maxLength": 50,
1788
+ "knownValues": [
1789
+ "onchain",
1790
+ "bank_transfer",
1791
+ "card",
1792
+ "direct_debit",
1793
+ "mobile_money",
1794
+ "payment_processor",
1795
+ "cash",
1796
+ "check"
1797
+ ]
1798
+ },
1799
+ "paymentNetwork": {
1800
+ "type": "string",
1801
+ "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.",
1802
+ "maxLength": 50
1803
+ },
1804
+ "transactionId": {
1805
+ "type": "string",
1806
+ "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.",
1807
+ "maxLength": 256
1808
+ },
1809
+ "for": {
1810
+ "type": "ref",
1811
+ "ref": "com.atproto.repo.strongRef",
1812
+ "description": "Optional strong reference to the activity, project, or organization this funding relates to."
1813
+ },
1814
+ "notes": {
1815
+ "type": "string",
1816
+ "description": "Optional notes or additional context for this funding receipt.",
1817
+ "maxLength": 500
1818
+ },
1819
+ "occurredAt": {
1820
+ "type": "string",
1821
+ "format": "datetime",
1822
+ "description": "Timestamp when the payment occurred."
1823
+ },
1824
+ "createdAt": {
1825
+ "type": "string",
1826
+ "format": "datetime",
1827
+ "description": "Client-declared timestamp when this receipt record was created."
1828
+ },
1829
+ "signatures": {
1830
+ "type": "ref",
1831
+ "ref": "app.certified.signature.defs#list",
1832
+ "description": "Optional cryptographic signatures attesting to this record's content."
1833
+ }
1834
+ }
1835
+ }
1836
+ },
1837
+ "text": {
1838
+ "type": "object",
1839
+ "description": "A free-text string value (e.g. a display name, wallet address, or other identifier).",
1840
+ "required": [
1841
+ "value"
1842
+ ],
1843
+ "properties": {
1844
+ "value": {
1845
+ "type": "string",
1846
+ "description": "The string value.",
1847
+ "maxLength": 2048
1848
+ }
1849
+ }
1850
+ }
1851
+ }
1852
+ }),
1853
+ "homes": [
1854
+ {
1855
+ "space": "public",
1856
+ "unbuilt": false
1857
+ }
1858
+ ]
1859
+ },
1485
1860
  {
1486
1861
  "nsid": "pub.techne.draft.accessRule",
1487
1862
  "name": "draft.accessRule",
@@ -5111,6 +5486,129 @@ export const catalog = {
5111
5486
  }
5112
5487
  ]
5113
5488
  },
5489
+ {
5490
+ "nsid": "pub.techne.draft.financials",
5491
+ "name": "draft.financials",
5492
+ "group": "pub.techne",
5493
+ "kind": "record",
5494
+ "key": "any",
5495
+ "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.",
5496
+ "fields": [
5497
+ {
5498
+ "name": "subject",
5499
+ "type": "→ com.atproto.repo.strongRef",
5500
+ "required": true,
5501
+ "description": "The organization the figures are for (a pub.techne.draft.org record)."
5502
+ },
5503
+ {
5504
+ "name": "taxYear",
5505
+ "type": "integer",
5506
+ "required": true,
5507
+ "description": "The tax year the figures cover, as the filing names it."
5508
+ },
5509
+ {
5510
+ "name": "periodEnd",
5511
+ "type": "string",
5512
+ "required": false,
5513
+ "description": "The last day of the tax year (YYYY-MM-DD) when the filing states it; a fiscal year need not end in December."
5514
+ },
5515
+ {
5516
+ "name": "revenue",
5517
+ "type": "integer",
5518
+ "required": false,
5519
+ "description": "Total revenue for the year, in whole units of `currency`, as the filing reports it. May be negative."
5520
+ },
5521
+ {
5522
+ "name": "expenses",
5523
+ "type": "integer",
5524
+ "required": false,
5525
+ "description": "Total expenses for the year, in whole units of `currency`, as the filing reports it. May be negative."
5526
+ },
5527
+ {
5528
+ "name": "assets",
5529
+ "type": "integer",
5530
+ "required": false,
5531
+ "description": "Total assets at the end of the year, in whole units of `currency`, as the filing reports it. May be negative."
5532
+ },
5533
+ {
5534
+ "name": "currency",
5535
+ "type": "string",
5536
+ "required": false,
5537
+ "description": "ISO 4217 code of the amounts."
5538
+ },
5539
+ {
5540
+ "name": "createdAt",
5541
+ "type": "string<datetime>",
5542
+ "required": true
5543
+ }
5544
+ ],
5545
+ "doc": ({
5546
+ "lexicon": 1,
5547
+ "id": "pub.techne.draft.financials",
5548
+ "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).",
5549
+ "defs": {
5550
+ "main": {
5551
+ "type": "record",
5552
+ "key": "any",
5553
+ "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.",
5554
+ "record": {
5555
+ "type": "object",
5556
+ "required": [
5557
+ "subject",
5558
+ "taxYear",
5559
+ "createdAt"
5560
+ ],
5561
+ "properties": {
5562
+ "subject": {
5563
+ "type": "ref",
5564
+ "ref": "com.atproto.repo.strongRef",
5565
+ "description": "The organization the figures are for (a pub.techne.draft.org record)."
5566
+ },
5567
+ "taxYear": {
5568
+ "type": "integer",
5569
+ "minimum": 1900,
5570
+ "maximum": 2200,
5571
+ "description": "The tax year the figures cover, as the filing names it."
5572
+ },
5573
+ "periodEnd": {
5574
+ "type": "string",
5575
+ "maxLength": 10,
5576
+ "description": "The last day of the tax year (YYYY-MM-DD) when the filing states it; a fiscal year need not end in December."
5577
+ },
5578
+ "revenue": {
5579
+ "type": "integer",
5580
+ "description": "Total revenue for the year, in whole units of `currency`, as the filing reports it. May be negative."
5581
+ },
5582
+ "expenses": {
5583
+ "type": "integer",
5584
+ "description": "Total expenses for the year, in whole units of `currency`, as the filing reports it. May be negative."
5585
+ },
5586
+ "assets": {
5587
+ "type": "integer",
5588
+ "description": "Total assets at the end of the year, in whole units of `currency`, as the filing reports it. May be negative."
5589
+ },
5590
+ "currency": {
5591
+ "type": "string",
5592
+ "maxLength": 3,
5593
+ "default": "USD",
5594
+ "description": "ISO 4217 code of the amounts."
5595
+ },
5596
+ "createdAt": {
5597
+ "type": "string",
5598
+ "format": "datetime"
5599
+ }
5600
+ }
5601
+ }
5602
+ }
5603
+ }
5604
+ }),
5605
+ "homes": [
5606
+ {
5607
+ "space": "public",
5608
+ "unbuilt": false
5609
+ }
5610
+ ]
5611
+ },
5114
5612
  {
5115
5613
  "nsid": "pub.techne.draft.geo",
5116
5614
  "name": "draft.geo",
@@ -5719,19 +6217,29 @@ export const catalog = {
5719
6217
  "name": "draft.identity.createCollective",
5720
6218
  "group": "pub.techne",
5721
6219
  "kind": "procedure",
5722
- "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.",
6220
+ "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.",
5723
6221
  "doc": ({
5724
6222
  "lexicon": 1,
5725
6223
  "id": "pub.techne.draft.identity.createCollective",
5726
6224
  "defs": {
5727
6225
  "main": {
5728
6226
  "type": "procedure",
5729
- "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.",
6227
+ "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.",
5730
6228
  "input": {
5731
6229
  "encoding": "application/json",
5732
6230
  "schema": {
5733
6231
  "type": "object",
5734
- "properties": {}
6232
+ "properties": {
6233
+ "founderMembershipVisibility": {
6234
+ "type": "string",
6235
+ "knownValues": [
6236
+ "public",
6237
+ "members"
6238
+ ],
6239
+ "default": "members",
6240
+ "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)."
6241
+ }
6242
+ }
5735
6243
  }
5736
6244
  },
5737
6245
  "output": {
@@ -5757,6 +6265,10 @@ export const catalog = {
5757
6265
  }
5758
6266
  },
5759
6267
  "errors": [
6268
+ {
6269
+ "name": "InvalidRequest",
6270
+ "description": "HTTP 400. The input is not JSON, or `founderMembershipVisibility` is neither `public` nor `members`."
6271
+ },
5760
6272
  {
5761
6273
  "name": "RateLimitExceeded",
5762
6274
  "description": "Too many writes from this DID (HTTP 429)."
@@ -5919,7 +6431,7 @@ export const catalog = {
5919
6431
  "masked": {
5920
6432
  "type": "string",
5921
6433
  "maxLength": 320,
5922
- "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)`."
6434
+ "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)`."
5923
6435
  },
5924
6436
  "value": {
5925
6437
  "type": "string",
@@ -6353,14 +6865,14 @@ export const catalog = {
6353
6865
  "name": "draft.identity.holdForPhone",
6354
6866
  "group": "pub.techne",
6355
6867
  "kind": "procedure",
6356
- "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.",
6868
+ "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.",
6357
6869
  "doc": ({
6358
6870
  "lexicon": 1,
6359
6871
  "id": "pub.techne.draft.identity.holdForPhone",
6360
6872
  "defs": {
6361
6873
  "main": {
6362
6874
  "type": "procedure",
6363
- "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.",
6875
+ "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.",
6364
6876
  "input": {
6365
6877
  "encoding": "application/json",
6366
6878
  "schema": {
@@ -7055,14 +7567,14 @@ export const catalog = {
7055
7567
  "name": "draft.identity.manageMethods",
7056
7568
  "group": "pub.techne",
7057
7569
  "kind": "procedure",
7058
- "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.",
7570
+ "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.",
7059
7571
  "doc": ({
7060
7572
  "lexicon": 1,
7061
7573
  "id": "pub.techne.draft.identity.manageMethods",
7062
7574
  "defs": {
7063
7575
  "main": {
7064
7576
  "type": "procedure",
7065
- "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.",
7577
+ "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.",
7066
7578
  "input": {
7067
7579
  "encoding": "application/json",
7068
7580
  "schema": {
@@ -7628,7 +8140,7 @@ export const catalog = {
7628
8140
  },
7629
8141
  "signInMethod": {
7630
8142
  "type": "object",
7631
- "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.",
8143
+ "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).",
7632
8144
  "required": [
7633
8145
  "id",
7634
8146
  "type",
@@ -7649,7 +8161,14 @@ export const catalog = {
7649
8161
  ]
7650
8162
  },
7651
8163
  "display": {
7652
- "type": "string"
8164
+ "type": "string",
8165
+ "maxLength": 320,
8166
+ "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."
8167
+ },
8168
+ "displayDevice": {
8169
+ "type": "string",
8170
+ "maxLength": 320,
8171
+ "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`."
7653
8172
  }
7654
8173
  }
7655
8174
  },
@@ -8335,14 +8854,14 @@ export const catalog = {
8335
8854
  "name": "draft.identity.writeAsCollective",
8336
8855
  "group": "pub.techne",
8337
8856
  "kind": "procedure",
8338
- "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.",
8857
+ "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.",
8339
8858
  "doc": ({
8340
8859
  "lexicon": 1,
8341
8860
  "id": "pub.techne.draft.identity.writeAsCollective",
8342
8861
  "defs": {
8343
8862
  "main": {
8344
8863
  "type": "procedure",
8345
- "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.",
8864
+ "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.",
8346
8865
  "input": {
8347
8866
  "encoding": "application/json",
8348
8867
  "schema": {
@@ -8409,7 +8928,7 @@ export const catalog = {
8409
8928
  "errors": [
8410
8929
  {
8411
8930
  "name": "InvalidRequest",
8412
- "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)."
8931
+ "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)."
8413
8932
  },
8414
8933
  {
8415
8934
  "name": "Forbidden",
@@ -9147,73 +9666,61 @@ export const catalog = {
9147
9666
  "group": "pub.techne",
9148
9667
  "kind": "record",
9149
9668
  "key": "any",
9150
- "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.",
9669
+ "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.",
9151
9670
  "fields": [
9152
9671
  {
9153
9672
  "name": "name",
9154
9673
  "type": "string",
9155
9674
  "required": true,
9156
- "description": "The organization's registered name. From the almanac `name` attribute."
9675
+ "description": "The organization's name as its registry records it."
9157
9676
  },
9158
9677
  {
9159
- "name": "entityType",
9160
- "type": "string",
9678
+ "name": "identifiers",
9679
+ "type": "array<→ #schemeValue>",
9161
9680
  "required": false,
9162
- "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."
9681
+ "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."
9163
9682
  },
9164
9683
  {
9165
- "name": "jurisdictionOfFormation",
9166
- "type": "string",
9684
+ "name": "category",
9685
+ "type": "array<→ #schemeValue>",
9167
9686
  "required": false,
9168
- "description": "Where the entity was legally formed, as the registry states it. From the almanac `jurisdictionOfFormation` attribute."
9687
+ "description": "Classification codes per scheme: `irs-ntee`, `irs-subsection`, `co-sos-entity-type`."
9169
9688
  },
9170
9689
  {
9171
- "name": "identifier",
9172
- "type": "string",
9690
+ "name": "status",
9691
+ "type": "array<→ #schemeValue>",
9173
9692
  "required": false,
9174
- "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."
9693
+ "description": "Registry standing per scheme (`irs`, `co-sos`). A closed organization keeps its record with its status; it is never deleted."
9175
9694
  },
9176
9695
  {
9177
- "name": "url",
9696
+ "name": "founded",
9178
9697
  "type": "string",
9179
9698
  "required": false,
9180
- "description": "The organization's website, absolute http(s). From the almanac `website` attribute."
9699
+ "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)."
9181
9700
  },
9182
9701
  {
9183
- "name": "telephone",
9702
+ "name": "description",
9184
9703
  "type": "string",
9185
9704
  "required": false,
9186
- "description": "E.164 phone number. From the almanac `phone` attribute."
9705
+ "description": "Prose about the organization: for a nonprofit, the mission and program text it filed with the IRS (Form 990). Public."
9187
9706
  },
9188
9707
  {
9189
- "name": "email",
9190
- "type": "string",
9708
+ "name": "url",
9709
+ "type": "string<uri>",
9191
9710
  "required": false,
9192
- "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."
9711
+ "description": "The organization's own website, absolute http(s)."
9193
9712
  },
9194
9713
  {
9195
- "name": "founded",
9714
+ "name": "phone",
9196
9715
  "type": "string",
9197
9716
  "required": false,
9198
- "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."
9717
+ "description": "Public phone number, E.164."
9199
9718
  },
9200
9719
  {
9201
- "name": "address",
9202
- "type": "→ community.lexicon.location.address",
9203
- "required": false,
9204
- "description": "Principal address. From the almanac `address` attribute."
9205
- },
9206
- {
9207
- "name": "status",
9208
- "type": "array<→ pub.techne.draft.org#schemeTag>",
9209
- "required": false,
9210
- "description": "Registry status per scheme (co-sos, irs). Zero or more; a co-sos and an irs status can coexist for one entity."
9211
- },
9212
- {
9213
- "name": "category",
9214
- "type": "array<→ pub.techne.draft.org#schemeTag>",
9720
+ "name": "locations",
9721
+ "type": "array<union>",
9215
9722
  "required": false,
9216
- "description": "Classification codes per scheme (irs-subsection, irs-ntee)."
9723
+ "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."
9217
9724
  },
9218
9725
  {
9219
9726
  "name": "createdAt",
@@ -9224,12 +9731,12 @@ export const catalog = {
9224
9731
  "doc": ({
9225
9732
  "lexicon": 1,
9226
9733
  "id": "pub.techne.draft.org",
9227
- "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.",
9734
+ "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`.",
9228
9735
  "defs": {
9229
9736
  "main": {
9230
9737
  "type": "record",
9231
9738
  "key": "any",
9232
- "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.",
9739
+ "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.",
9233
9740
  "record": {
9234
9741
  "type": "object",
9235
9742
  "required": [
@@ -9241,61 +9748,68 @@ export const catalog = {
9241
9748
  "type": "string",
9242
9749
  "maxLength": 640,
9243
9750
  "maxGraphemes": 128,
9244
- "description": "The organization's registered name. From the almanac `name` attribute."
9751
+ "description": "The organization's name as its registry records it."
9245
9752
  },
9246
- "entityType": {
9247
- "type": "string",
9248
- "maxLength": 64,
9249
- "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."
9753
+ "identifiers": {
9754
+ "type": "array",
9755
+ "maxLength": 16,
9756
+ "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.",
9757
+ "items": {
9758
+ "type": "ref",
9759
+ "ref": "#schemeValue"
9760
+ }
9250
9761
  },
9251
- "jurisdictionOfFormation": {
9252
- "type": "string",
9253
- "maxLength": 64,
9254
- "description": "Where the entity was legally formed, as the registry states it. From the almanac `jurisdictionOfFormation` attribute."
9762
+ "category": {
9763
+ "type": "array",
9764
+ "maxLength": 16,
9765
+ "description": "Classification codes per scheme: `irs-ntee`, `irs-subsection`, `co-sos-entity-type`.",
9766
+ "items": {
9767
+ "type": "ref",
9768
+ "ref": "#schemeValue"
9769
+ }
9255
9770
  },
9256
- "identifier": {
9257
- "type": "string",
9258
- "maxLength": 9,
9259
- "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."
9771
+ "status": {
9772
+ "type": "array",
9773
+ "maxLength": 16,
9774
+ "description": "Registry standing per scheme (`irs`, `co-sos`). A closed organization keeps its record with its status; it is never deleted.",
9775
+ "items": {
9776
+ "type": "ref",
9777
+ "ref": "#schemeValue"
9778
+ }
9260
9779
  },
9261
- "url": {
9780
+ "founded": {
9262
9781
  "type": "string",
9263
- "maxLength": 300,
9264
- "description": "The organization's website, absolute http(s). From the almanac `website` attribute."
9782
+ "maxLength": 10,
9783
+ "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)."
9265
9784
  },
9266
- "telephone": {
9785
+ "description": {
9267
9786
  "type": "string",
9268
- "description": "E.164 phone number. From the almanac `phone` attribute."
9787
+ "maxLength": 30000,
9788
+ "maxGraphemes": 10000,
9789
+ "description": "Prose about the organization: for a nonprofit, the mission and program text it filed with the IRS (Form 990). Public."
9269
9790
  },
9270
- "email": {
9791
+ "url": {
9271
9792
  "type": "string",
9272
- "maxLength": 254,
9273
- "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."
9793
+ "format": "uri",
9794
+ "maxLength": 300,
9795
+ "description": "The organization's own website, absolute http(s)."
9274
9796
  },
9275
- "founded": {
9797
+ "phone": {
9276
9798
  "type": "string",
9277
- "maxLength": 10,
9278
- "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."
9279
- },
9280
- "address": {
9281
- "type": "ref",
9282
- "ref": "community.lexicon.location.address",
9283
- "description": "Principal address. From the almanac `address` attribute."
9284
- },
9285
- "status": {
9286
- "type": "array",
9287
- "description": "Registry status per scheme (co-sos, irs). Zero or more; a co-sos and an irs status can coexist for one entity.",
9288
- "items": {
9289
- "type": "ref",
9290
- "ref": "pub.techne.draft.org#schemeTag"
9291
- }
9799
+ "maxLength": 32,
9800
+ "description": "Public phone number, E.164."
9292
9801
  },
9293
- "category": {
9802
+ "locations": {
9294
9803
  "type": "array",
9295
- "description": "Classification codes per scheme (irs-subsection, irs-ntee).",
9804
+ "maxLength": 16,
9805
+ "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.",
9296
9806
  "items": {
9297
- "type": "ref",
9298
- "ref": "pub.techne.draft.org#schemeTag"
9807
+ "type": "union",
9808
+ "refs": [
9809
+ "community.lexicon.location.geo",
9810
+ "community.lexicon.location.address",
9811
+ "com.atproto.repo.strongRef"
9812
+ ]
9299
9813
  }
9300
9814
  },
9301
9815
  "createdAt": {
@@ -9305,19 +9819,185 @@ export const catalog = {
9305
9819
  }
9306
9820
  }
9307
9821
  },
9308
- "schemeTag": {
9822
+ "fields": {
9823
+ "type": "object",
9824
+ "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.",
9825
+ "properties": {
9826
+ "name": {
9827
+ "type": "string",
9828
+ "maxLength": 640,
9829
+ "maxGraphemes": 128,
9830
+ "description": "The organization's name as its registry records it."
9831
+ },
9832
+ "identifiers": {
9833
+ "type": "array",
9834
+ "maxLength": 16,
9835
+ "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.",
9836
+ "items": {
9837
+ "type": "ref",
9838
+ "ref": "#schemeValue"
9839
+ }
9840
+ },
9841
+ "category": {
9842
+ "type": "array",
9843
+ "maxLength": 16,
9844
+ "description": "Classification codes per scheme: `irs-ntee`, `irs-subsection`, `co-sos-entity-type`.",
9845
+ "items": {
9846
+ "type": "ref",
9847
+ "ref": "#schemeValue"
9848
+ }
9849
+ },
9850
+ "status": {
9851
+ "type": "array",
9852
+ "maxLength": 16,
9853
+ "description": "Registry standing per scheme (`irs`, `co-sos`). A closed organization keeps its record with its status; it is never deleted.",
9854
+ "items": {
9855
+ "type": "ref",
9856
+ "ref": "#schemeValue"
9857
+ }
9858
+ },
9859
+ "founded": {
9860
+ "type": "string",
9861
+ "maxLength": 10,
9862
+ "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)."
9863
+ },
9864
+ "description": {
9865
+ "type": "string",
9866
+ "maxLength": 30000,
9867
+ "maxGraphemes": 10000,
9868
+ "description": "Prose about the organization: for a nonprofit, the mission and program text it filed with the IRS (Form 990). Public."
9869
+ },
9870
+ "url": {
9871
+ "type": "string",
9872
+ "format": "uri",
9873
+ "maxLength": 300,
9874
+ "description": "The organization's own website, absolute http(s)."
9875
+ },
9876
+ "phone": {
9877
+ "type": "string",
9878
+ "maxLength": 32,
9879
+ "description": "Public phone number, E.164."
9880
+ },
9881
+ "locations": {
9882
+ "type": "array",
9883
+ "maxLength": 16,
9884
+ "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.",
9885
+ "items": {
9886
+ "type": "union",
9887
+ "refs": [
9888
+ "community.lexicon.location.geo",
9889
+ "community.lexicon.location.address",
9890
+ "com.atproto.repo.strongRef"
9891
+ ]
9892
+ }
9893
+ }
9894
+ }
9895
+ },
9896
+ "schemeValue": {
9309
9897
  "type": "object",
9310
- "description": "One classification or status code in a named scheme, mirroring the almanac's own {scheme, code} attribute shape.",
9898
+ "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.",
9311
9899
  "required": [
9312
9900
  "scheme",
9313
- "code"
9901
+ "value"
9314
9902
  ],
9315
9903
  "properties": {
9316
9904
  "scheme": {
9317
- "type": "string"
9905
+ "type": "string",
9906
+ "maxLength": 64,
9907
+ "description": "The registry or code list, e.g. `ein`, `co-sos`, `irs-ntee`, `irs-subsection`, `co-sos-entity-type`, `irs`."
9318
9908
  },
9319
- "code": {
9320
- "type": "string"
9909
+ "value": {
9910
+ "type": "string",
9911
+ "maxLength": 128,
9912
+ "description": "The code as the registry writes it, e.g. an EIN as 9 digits with no dash."
9913
+ }
9914
+ }
9915
+ }
9916
+ }
9917
+ }),
9918
+ "homes": [
9919
+ {
9920
+ "space": "public",
9921
+ "unbuilt": false
9922
+ }
9923
+ ]
9924
+ },
9925
+ {
9926
+ "nsid": "pub.techne.draft.orgAtPlace",
9927
+ "name": "draft.orgAtPlace",
9928
+ "group": "pub.techne",
9929
+ "kind": "record",
9930
+ "key": "any",
9931
+ "description": "`\"key\": \"any\"`: a writer derives a deterministic rkey from the two ends so a re-publish updates the same record.",
9932
+ "fields": [
9933
+ {
9934
+ "name": "subject",
9935
+ "type": "→ com.atproto.repo.strongRef",
9936
+ "required": true,
9937
+ "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."
9938
+ },
9939
+ {
9940
+ "name": "place",
9941
+ "type": "→ com.atproto.repo.strongRef",
9942
+ "required": true,
9943
+ "description": "The place (a pub.techne.draft.place record)."
9944
+ },
9945
+ {
9946
+ "name": "role",
9947
+ "type": "string (enum)",
9948
+ "required": false,
9949
+ "description": "What the place is to the organization. Values beyond the known set are permitted.",
9950
+ "knownValues": [
9951
+ "office",
9952
+ "storefront"
9953
+ ]
9954
+ },
9955
+ {
9956
+ "name": "createdAt",
9957
+ "type": "string<datetime>",
9958
+ "required": true
9959
+ }
9960
+ ],
9961
+ "doc": ({
9962
+ "lexicon": 1,
9963
+ "id": "pub.techne.draft.orgAtPlace",
9964
+ "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).",
9965
+ "defs": {
9966
+ "main": {
9967
+ "type": "record",
9968
+ "key": "any",
9969
+ "description": "`\"key\": \"any\"`: a writer derives a deterministic rkey from the two ends so a re-publish updates the same record.",
9970
+ "record": {
9971
+ "type": "object",
9972
+ "required": [
9973
+ "subject",
9974
+ "place",
9975
+ "createdAt"
9976
+ ],
9977
+ "properties": {
9978
+ "subject": {
9979
+ "type": "ref",
9980
+ "ref": "com.atproto.repo.strongRef",
9981
+ "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."
9982
+ },
9983
+ "place": {
9984
+ "type": "ref",
9985
+ "ref": "com.atproto.repo.strongRef",
9986
+ "description": "The place (a pub.techne.draft.place record)."
9987
+ },
9988
+ "role": {
9989
+ "type": "string",
9990
+ "maxLength": 64,
9991
+ "knownValues": [
9992
+ "office",
9993
+ "storefront"
9994
+ ],
9995
+ "description": "What the place is to the organization. Values beyond the known set are permitted."
9996
+ },
9997
+ "createdAt": {
9998
+ "type": "string",
9999
+ "format": "datetime"
10000
+ }
9321
10001
  }
9322
10002
  }
9323
10003
  }
@@ -9491,15 +10171,15 @@ export const catalog = {
9491
10171
  "name": "draft.permissioned.deleteRecord",
9492
10172
  "group": "pub.techne",
9493
10173
  "kind": "procedure",
9494
- "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.",
10174
+ "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.",
9495
10175
  "doc": ({
9496
10176
  "lexicon": 1,
9497
10177
  "id": "pub.techne.draft.permissioned.deleteRecord",
9498
- "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.",
10178
+ "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.",
9499
10179
  "defs": {
9500
10180
  "main": {
9501
10181
  "type": "procedure",
9502
- "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.",
10182
+ "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.",
9503
10183
  "input": {
9504
10184
  "encoding": "application/json",
9505
10185
  "schema": {
@@ -10008,15 +10688,15 @@ export const catalog = {
10008
10688
  "name": "draft.permissioned.putRecord",
10009
10689
  "group": "pub.techne",
10010
10690
  "kind": "procedure",
10011
- "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.",
10691
+ "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.",
10012
10692
  "doc": ({
10013
10693
  "lexicon": 1,
10014
10694
  "id": "pub.techne.draft.permissioned.putRecord",
10015
- "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.",
10695
+ "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.",
10016
10696
  "defs": {
10017
10697
  "main": {
10018
10698
  "type": "procedure",
10019
- "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.",
10699
+ "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.",
10020
10700
  "input": {
10021
10701
  "encoding": "application/json",
10022
10702
  "schema": {
@@ -10153,15 +10833,15 @@ export const catalog = {
10153
10833
  "name": "draft.permissioned.putRecords",
10154
10834
  "group": "pub.techne",
10155
10835
  "kind": "procedure",
10156
- "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.",
10836
+ "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.",
10157
10837
  "doc": ({
10158
10838
  "lexicon": 1,
10159
10839
  "id": "pub.techne.draft.permissioned.putRecords",
10160
- "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.",
10840
+ "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.",
10161
10841
  "defs": {
10162
10842
  "main": {
10163
10843
  "type": "procedure",
10164
- "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.",
10844
+ "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.",
10165
10845
  "input": {
10166
10846
  "encoding": "application/json",
10167
10847
  "schema": {
@@ -15451,6 +16131,77 @@ export const catalog = {
15451
16131
  }
15452
16132
  ]
15453
16133
  },
16134
+ {
16135
+ "nsid": "pub.techne.draft.statement",
16136
+ "name": "draft.statement",
16137
+ "group": "pub.techne",
16138
+ "kind": "record",
16139
+ "key": "any",
16140
+ "description": "`\"key\": \"any\"`: a writer derives a deterministic rkey from the subject so a re-publish updates the same statement.",
16141
+ "fields": [
16142
+ {
16143
+ "name": "subject",
16144
+ "type": "→ com.atproto.repo.strongRef",
16145
+ "required": true,
16146
+ "description": "The record the statement is about."
16147
+ },
16148
+ {
16149
+ "name": "fields",
16150
+ "type": "union<pub.techne.draft.org#fields>",
16151
+ "required": true,
16152
+ "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."
16153
+ },
16154
+ {
16155
+ "name": "createdAt",
16156
+ "type": "string<datetime>",
16157
+ "required": true
16158
+ }
16159
+ ],
16160
+ "doc": ({
16161
+ "lexicon": 1,
16162
+ "id": "pub.techne.draft.statement",
16163
+ "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`).",
16164
+ "defs": {
16165
+ "main": {
16166
+ "type": "record",
16167
+ "key": "any",
16168
+ "description": "`\"key\": \"any\"`: a writer derives a deterministic rkey from the subject so a re-publish updates the same statement.",
16169
+ "record": {
16170
+ "type": "object",
16171
+ "required": [
16172
+ "subject",
16173
+ "fields",
16174
+ "createdAt"
16175
+ ],
16176
+ "properties": {
16177
+ "subject": {
16178
+ "type": "ref",
16179
+ "ref": "com.atproto.repo.strongRef",
16180
+ "description": "The record the statement is about."
16181
+ },
16182
+ "fields": {
16183
+ "type": "union",
16184
+ "refs": [
16185
+ "pub.techne.draft.org#fields"
16186
+ ],
16187
+ "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."
16188
+ },
16189
+ "createdAt": {
16190
+ "type": "string",
16191
+ "format": "datetime"
16192
+ }
16193
+ }
16194
+ }
16195
+ }
16196
+ }
16197
+ }),
16198
+ "homes": [
16199
+ {
16200
+ "space": "public",
16201
+ "unbuilt": false
16202
+ }
16203
+ ]
16204
+ },
15454
16205
  {
15455
16206
  "nsid": "pub.techne.draft.subjectPrefs",
15456
16207
  "name": "draft.subjectPrefs",
@@ -16939,7 +17690,7 @@ export const catalog = {
16939
17690
  "name": "App private space",
16940
17691
  "kind": "space",
16941
17692
  "key": "any",
16942
- "description": "An app's private space for one person: owner-only, one instance per app, keyed by the app (at://{owner}/pub.techne.draft.space.private/{appKey}, appKey = sidecar_rkey(client_id)). An ordinary space type: apps use it through the permissioned.* methods, naming it as the space. It holds records of any type that is not one of the platform's own, community drafts included (0016: every space may contain records of any type), so it declares no collections and is on the placement manifest's `open` list; the platform's own record types keep their declared homes, and a write of one here is refused. The adopted calendar types (community.lexicon.calendar.event and .rsvp) are held here as the app's own data: an RSVP here projects no claim, and neither counts as the platform's event or RSVP at its key. The key names the app the space is for, but which app is calling is not asked: like any space, an instance is reached by a caller whose 0016 `space:` scopes cover it, and by one whose token carries no `space:` scopes (the owner's own sessions included); a write under scopes that do not cover it is refused. An app asks for narrow access with the scope space:pub.techne.draft.space.private?skey={appKey}.",
17693
+ "description": "An app's private space for one person: owner-only, one instance per app, keyed by the app (at://{owner}/pub.techne.draft.space.private/{appKey}, appKey = sidecar_rkey(client_id)). An ordinary space type: apps use it through the permissioned.* methods, naming it as the space. It holds records of any type that is not one of the platform's own, community drafts included (0016: every space may contain records of any type), so it declares no collections and is on the placement manifest's `open` list; the platform's own record types keep their declared homes, and a write of one here is refused. The adopted calendar types (community.lexicon.calendar.event and .rsvp) are held here as the app's own data: an RSVP here projects no claim, and neither counts as the platform's event or RSVP at its key. The key names the app the space is for, but which app is calling is not asked: like any space, an instance is reached by a caller whose 0016 `space:` scopes cover it, and by one whose token carries no scope claim at all (today the owner's own platform sessions); a token that carries a claim naming no `space:` scope reaches none; a write under scopes that do not cover it is refused. An app asks for narrow access with the scope space:pub.techne.draft.space.private?skey={appKey}.",
16943
17694
  "collections": [],
16944
17695
  "policy": {
16945
17696
  "read": {
@@ -16958,7 +17709,7 @@ export const catalog = {
16958
17709
  "defs": {
16959
17710
  "main": {
16960
17711
  "type": "space",
16961
- "description": "An app's private space for one person: owner-only, one instance per app, keyed by the app (at://{owner}/pub.techne.draft.space.private/{appKey}, appKey = sidecar_rkey(client_id)). An ordinary space type: apps use it through the permissioned.* methods, naming it as the space. It holds records of any type that is not one of the platform's own, community drafts included (0016: every space may contain records of any type), so it declares no collections and is on the placement manifest's `open` list; the platform's own record types keep their declared homes, and a write of one here is refused. The adopted calendar types (community.lexicon.calendar.event and .rsvp) are held here as the app's own data: an RSVP here projects no claim, and neither counts as the platform's event or RSVP at its key. The key names the app the space is for, but which app is calling is not asked: like any space, an instance is reached by a caller whose 0016 `space:` scopes cover it, and by one whose token carries no `space:` scopes (the owner's own sessions included); a write under scopes that do not cover it is refused. An app asks for narrow access with the scope space:pub.techne.draft.space.private?skey={appKey}.",
17712
+ "description": "An app's private space for one person: owner-only, one instance per app, keyed by the app (at://{owner}/pub.techne.draft.space.private/{appKey}, appKey = sidecar_rkey(client_id)). An ordinary space type: apps use it through the permissioned.* methods, naming it as the space. It holds records of any type that is not one of the platform's own, community drafts included (0016: every space may contain records of any type), so it declares no collections and is on the placement manifest's `open` list; the platform's own record types keep their declared homes, and a write of one here is refused. The adopted calendar types (community.lexicon.calendar.event and .rsvp) are held here as the app's own data: an RSVP here projects no claim, and neither counts as the platform's event or RSVP at its key. The key names the app the space is for, but which app is calling is not asked: like any space, an instance is reached by a caller whose 0016 `space:` scopes cover it, and by one whose token carries no scope claim at all (today the owner's own platform sessions); a token that carries a claim naming no `space:` scope reaches none; a write under scopes that do not cover it is refused. An app asks for narrow access with the scope space:pub.techne.draft.space.private?skey={appKey}.",
16962
17713
  "key": "any",
16963
17714
  "name": "App private space",
16964
17715
  "collections": []
@@ -17374,7 +18125,7 @@ export const catalog = {
17374
18125
  },
17375
18126
  "placement": {
17376
18127
  "nsid": "pub.techne.draft.placement",
17377
- "description": "The PLACEMENT MANIFEST: the published record of every record collection's legal homes. The space-side homes are NOT restated here — they live in each space type's declaration (`collections`, vanilla 0016); this doc declares the ONE home 0016 declarations cannot express (the public firehose) and the exceptions list for declared-but-not-yet-built space placements. The full manifest = union(space declarations' collections, this doc). A space type on the `open` list holds records of any collection (0016: every space may contain records of any type) and declares none; our own record types do not count there: they keep their declared homes, and a write of one into an open space is refused (InvalidRequest). The adopted community.lexicon.calendar.event and community.lexicon.calendar.rsvp are not ours in this sense: an open space holds them as the writing app's own data, projecting no claim and never read as the platform's record at that key. Fail-closed: a record collection not listed in `public` has NO public home (the firehose guard withholds it); a declared (collection, space) pair with neither a registered write call site nor an `unbuilt` entry fails the drift gate. The manifest says where OUR writers place records. It is not a write gate on anyone else: the generic private write (pub.techne.draft.permissioned.putRecord) stores any collection in its caller's repo for the space the caller names, and where it counts is decided when each version is written, by the managing app's admission: the space's write policy, and for our own record types only where a space type declares them. `pub.techne.draft.credential` is public in one form only: published by its issuer in the issuer's own repo (author = `issuer`) with no `signature`, as the commons root vouches for a publisher declaration; a subject-stored, signed credential (its digest is of a phone or an email) lives only in its subject's pub.techne.draft.space.credential, and readers refuse it in public. Consumed three ways so it cannot drift from behavior: (1) regenos-lexicons build.rs generates the typed placement layer (placing an undeclared pair is a compile error) + the runtime tables the typed write chokepoint enforces; (2) the drift tests bind it to the indexer's private-only guard and to the registered call sites; (3) the sdk catalog renders it at /commons as each record's `homes`. Lives OUTSIDE the codegen roots (space-lexicons/), like pub.techne.draft.policy.",
18128
+ "description": "The PLACEMENT MANIFEST: the published record of every record collection's legal homes. The space-side homes are NOT restated here — they live in each space type's declaration (`collections`, vanilla 0016); this doc declares the ONE home 0016 declarations cannot express (the public firehose) and the exceptions list for declared-but-not-yet-built space placements. The full manifest = union(space declarations' collections, this doc). A space type on the `open` list holds records of any collection (0016: every space may contain records of any type) and declares none; our own record types do not count there: they keep their declared homes, and a write of one into an open space is refused (InvalidRequest). The adopted community.lexicon.calendar.event, community.lexicon.calendar.rsvp and org.hypercerts.funding.receipt are not ours in this sense: an open space holds them as the writing app's own data, projecting no claim and never read as the platform's record at that key. Fail-closed: a record collection not listed in `public` has NO public home (the firehose guard withholds it); a declared (collection, space) pair with neither a registered write call site nor an `unbuilt` entry fails the drift gate. The manifest says where OUR writers place records. It is not a write gate on anyone else: the generic private write (pub.techne.draft.permissioned.putRecord) stores any collection in its caller's repo for the space the caller names, and where it counts is decided when each version is written, by the managing app's admission: the space's write policy, and for our own record types only where a space type declares them. `pub.techne.draft.credential` is public in one form only: published by its issuer in the issuer's own repo (author = `issuer`) with no `signature`, as the commons root vouches for a publisher declaration; a subject-stored, signed credential (its digest is of a phone or an email) lives only in its subject's pub.techne.draft.space.credential, and readers refuse it in public. Consumed three ways so it cannot drift from behavior: (1) regenos-lexicons build.rs generates the typed placement layer (placing an undeclared pair is a compile error) + the runtime tables the typed write chokepoint enforces; (2) the drift tests bind it to the indexer's private-only guard and to the registered call sites; (3) the sdk catalog renders it at /commons as each record's `homes`. Lives OUTSIDE the codegen roots (space-lexicons/), like pub.techne.draft.policy.",
17378
18129
  "public": [
17379
18130
  "pub.techne.draft.appConfig",
17380
18131
  "pub.techne.draft.approval",
@@ -17388,6 +18139,9 @@ export const catalog = {
17388
18139
  "pub.techne.draft.heldAt",
17389
18140
  "pub.techne.draft.operator",
17390
18141
  "pub.techne.draft.org",
18142
+ "pub.techne.draft.orgAtPlace",
18143
+ "pub.techne.draft.financials",
18144
+ "pub.techne.draft.statement",
17391
18145
  "pub.techne.draft.profile",
17392
18146
  "pub.techne.draft.assessment",
17393
18147
  "pub.techne.draft.placeResearch",
@@ -17420,7 +18174,8 @@ export const catalog = {
17420
18174
  "pub.techne.draft.actor.profile",
17421
18175
  "pub.techne.draft.collective",
17422
18176
  "community.lexicon.calendar.event",
17423
- "community.lexicon.calendar.rsvp"
18177
+ "community.lexicon.calendar.rsvp",
18178
+ "org.hypercerts.funding.receipt"
17424
18179
  ],
17425
18180
  "unbuilt": [
17426
18181
  {
@@ -17472,7 +18227,7 @@ export const catalog = {
17472
18227
  "doc": ({
17473
18228
  "lexicon": 1,
17474
18229
  "id": "pub.techne.draft.placement",
17475
- "description": "The PLACEMENT MANIFEST: the published record of every record collection's legal homes. The space-side homes are NOT restated here — they live in each space type's declaration (`collections`, vanilla 0016); this doc declares the ONE home 0016 declarations cannot express (the public firehose) and the exceptions list for declared-but-not-yet-built space placements. The full manifest = union(space declarations' collections, this doc). A space type on the `open` list holds records of any collection (0016: every space may contain records of any type) and declares none; our own record types do not count there: they keep their declared homes, and a write of one into an open space is refused (InvalidRequest). The adopted community.lexicon.calendar.event and community.lexicon.calendar.rsvp are not ours in this sense: an open space holds them as the writing app's own data, projecting no claim and never read as the platform's record at that key. Fail-closed: a record collection not listed in `public` has NO public home (the firehose guard withholds it); a declared (collection, space) pair with neither a registered write call site nor an `unbuilt` entry fails the drift gate. The manifest says where OUR writers place records. It is not a write gate on anyone else: the generic private write (pub.techne.draft.permissioned.putRecord) stores any collection in its caller's repo for the space the caller names, and where it counts is decided when each version is written, by the managing app's admission: the space's write policy, and for our own record types only where a space type declares them. `pub.techne.draft.credential` is public in one form only: published by its issuer in the issuer's own repo (author = `issuer`) with no `signature`, as the commons root vouches for a publisher declaration; a subject-stored, signed credential (its digest is of a phone or an email) lives only in its subject's pub.techne.draft.space.credential, and readers refuse it in public. Consumed three ways so it cannot drift from behavior: (1) regenos-lexicons build.rs generates the typed placement layer (placing an undeclared pair is a compile error) + the runtime tables the typed write chokepoint enforces; (2) the drift tests bind it to the indexer's private-only guard and to the registered call sites; (3) the sdk catalog renders it at /commons as each record's `homes`. Lives OUTSIDE the codegen roots (space-lexicons/), like pub.techne.draft.policy.",
18230
+ "description": "The PLACEMENT MANIFEST: the published record of every record collection's legal homes. The space-side homes are NOT restated here — they live in each space type's declaration (`collections`, vanilla 0016); this doc declares the ONE home 0016 declarations cannot express (the public firehose) and the exceptions list for declared-but-not-yet-built space placements. The full manifest = union(space declarations' collections, this doc). A space type on the `open` list holds records of any collection (0016: every space may contain records of any type) and declares none; our own record types do not count there: they keep their declared homes, and a write of one into an open space is refused (InvalidRequest). The adopted community.lexicon.calendar.event, community.lexicon.calendar.rsvp and org.hypercerts.funding.receipt are not ours in this sense: an open space holds them as the writing app's own data, projecting no claim and never read as the platform's record at that key. Fail-closed: a record collection not listed in `public` has NO public home (the firehose guard withholds it); a declared (collection, space) pair with neither a registered write call site nor an `unbuilt` entry fails the drift gate. The manifest says where OUR writers place records. It is not a write gate on anyone else: the generic private write (pub.techne.draft.permissioned.putRecord) stores any collection in its caller's repo for the space the caller names, and where it counts is decided when each version is written, by the managing app's admission: the space's write policy, and for our own record types only where a space type declares them. `pub.techne.draft.credential` is public in one form only: published by its issuer in the issuer's own repo (author = `issuer`) with no `signature`, as the commons root vouches for a publisher declaration; a subject-stored, signed credential (its digest is of a phone or an email) lives only in its subject's pub.techne.draft.space.credential, and readers refuse it in public. Consumed three ways so it cannot drift from behavior: (1) regenos-lexicons build.rs generates the typed placement layer (placing an undeclared pair is a compile error) + the runtime tables the typed write chokepoint enforces; (2) the drift tests bind it to the indexer's private-only guard and to the registered call sites; (3) the sdk catalog renders it at /commons as each record's `homes`. Lives OUTSIDE the codegen roots (space-lexicons/), like pub.techne.draft.policy.",
17476
18231
  "defs": {
17477
18232
  "main": {
17478
18233
  "type": "placement",
@@ -17489,6 +18244,9 @@ export const catalog = {
17489
18244
  "pub.techne.draft.heldAt",
17490
18245
  "pub.techne.draft.operator",
17491
18246
  "pub.techne.draft.org",
18247
+ "pub.techne.draft.orgAtPlace",
18248
+ "pub.techne.draft.financials",
18249
+ "pub.techne.draft.statement",
17492
18250
  "pub.techne.draft.profile",
17493
18251
  "pub.techne.draft.assessment",
17494
18252
  "pub.techne.draft.placeResearch",
@@ -17521,7 +18279,8 @@ export const catalog = {
17521
18279
  "pub.techne.draft.actor.profile",
17522
18280
  "pub.techne.draft.collective",
17523
18281
  "community.lexicon.calendar.event",
17524
- "community.lexicon.calendar.rsvp"
18282
+ "community.lexicon.calendar.rsvp",
18283
+ "org.hypercerts.funding.receipt"
17525
18284
  ],
17526
18285
  "open": [
17527
18286
  "pub.techne.draft.space.private"
@@ -18627,6 +19386,108 @@ export const catalog = {
18627
19386
  }
18628
19387
  })
18629
19388
  },
19389
+ {
19390
+ "nsid": "social.scenius.adoptHeldSession",
19391
+ "name": "adoptHeldSession",
19392
+ "group": "social.scenius",
19393
+ "kind": "procedure",
19394
+ "class": "write",
19395
+ "description": "DEPRECATED: a one-time move from the sessions the platform holds to sessions the phone holds; removed when the platform stops holding sessions (the purge). The phone, signed in with its full rsds_ device session, takes over the OAuth session the platform holds for its account at our PDS: it gets the tokens and their DPoP key, its device session narrows to push, sign-out, the change stream and the device list, and the platform deletes its copy (it no longer uses or refreshes it). The account's other devices on old builds then sign in again. Interactive lane only: a cookie, an agent token or a narrow device session is refused.",
19396
+ "input": [],
19397
+ "output": [
19398
+ {
19399
+ "name": "ownSession",
19400
+ "type": "→ #heldSession",
19401
+ "required": true
19402
+ }
19403
+ ],
19404
+ "doc": ({
19405
+ "lexicon": 1,
19406
+ "id": "social.scenius.adoptHeldSession",
19407
+ "defs": {
19408
+ "main": {
19409
+ "type": "procedure",
19410
+ "description": "DEPRECATED: a one-time move from the sessions the platform holds to sessions the phone holds; removed when the platform stops holding sessions (the purge). The phone, signed in with its full rsds_ device session, takes over the OAuth session the platform holds for its account at our PDS: it gets the tokens and their DPoP key, its device session narrows to push, sign-out, the change stream and the device list, and the platform deletes its copy (it no longer uses or refreshes it). The account's other devices on old builds then sign in again. Interactive lane only: a cookie, an agent token or a narrow device session is refused.",
19411
+ "input": {
19412
+ "encoding": "application/json",
19413
+ "schema": {
19414
+ "type": "object",
19415
+ "properties": {}
19416
+ }
19417
+ },
19418
+ "output": {
19419
+ "encoding": "application/json",
19420
+ "schema": {
19421
+ "type": "object",
19422
+ "required": [
19423
+ "ownSession"
19424
+ ],
19425
+ "properties": {
19426
+ "ownSession": {
19427
+ "type": "ref",
19428
+ "ref": "#heldSession"
19429
+ }
19430
+ }
19431
+ }
19432
+ },
19433
+ "errors": [
19434
+ {
19435
+ "name": "NoHeldSession",
19436
+ "description": "The platform holds no session for this account from our door (already adopted, or never held)."
19437
+ },
19438
+ {
19439
+ "name": "Unavailable",
19440
+ "description": "Own sessions are off here, or the held session is refreshing: try again."
19441
+ }
19442
+ ]
19443
+ },
19444
+ "heldSession": {
19445
+ "type": "object",
19446
+ "required": [
19447
+ "accessToken",
19448
+ "dpopKey"
19449
+ ],
19450
+ "properties": {
19451
+ "accessToken": {
19452
+ "type": "string",
19453
+ "description": "DPoP-bound access token for the person's PDS."
19454
+ },
19455
+ "refreshToken": {
19456
+ "type": "string",
19457
+ "description": "Refresh it with refreshOwnSession."
19458
+ },
19459
+ "tokenType": {
19460
+ "type": "string",
19461
+ "description": "Always DPoP."
19462
+ },
19463
+ "scope": {
19464
+ "type": "string"
19465
+ },
19466
+ "expiresAt": {
19467
+ "type": "string",
19468
+ "description": "When the access token expires (RFC 3339)."
19469
+ },
19470
+ "sub": {
19471
+ "type": "string",
19472
+ "format": "did"
19473
+ },
19474
+ "issuer": {
19475
+ "type": "string",
19476
+ "description": "The authorization server."
19477
+ },
19478
+ "pds": {
19479
+ "type": "string",
19480
+ "description": "The PDS the tokens are for."
19481
+ },
19482
+ "dpopKey": {
19483
+ "type": "unknown",
19484
+ "description": "The session's DPoP key as a private JWK (P-256). A grant's key cannot change, so the device takes this one. Keep it in secure storage."
19485
+ }
19486
+ }
19487
+ }
19488
+ }
19489
+ })
19490
+ },
18630
19491
  {
18631
19492
  "nsid": "social.scenius.approveAppAccess",
18632
19493
  "name": "approveAppAccess",
@@ -22076,7 +22937,7 @@ export const catalog = {
22076
22937
  "group": "social.scenius",
22077
22938
  "kind": "procedure",
22078
22939
  "class": "write",
22079
- "description": "Verify the OTP code: an existing number's DID signs in; a new number mints a custodial DID + a pub.techne.draft.contactChannel{phone} and its pub.techne.draft.channelVerification, both in space.personal. Mints the session (cookie or device lane, mirroring finishPasskeySignup): `device` present ⇒ an rsds_ device-session token (native); absent ⇒ Set-Cookie __Host-rs_session (web). Either way then binds the number's pending shares (custodial lighters only — a BYOD lighter's pending shares stay pending; no automatic bind), and only for a beacon that is still on or upcoming: an ended beacon's pending share stays pending and inert. The verified number is carried on the OTP challenge row server-side, never taken from the client.",
22940
+ "description": "Verify the OTP code: an existing number's DID signs in; a new number mints a custodial DID + a pub.techne.draft.contactChannel{phone} and its pub.techne.draft.channelVerification, both in space.personal. Mints the session (cookie or device lane, mirroring finishPasskeySignup): `device` present ⇒ an rsds_ device-session token (native); absent ⇒ Set-Cookie __Host-rs_session (web). Either way then binds the number's pending shares (custodial lighters only — a BYOD lighter's pending shares stay pending; no automatic bind), and only for a beacon that is still on or upcoming: an ended beacon's pending share stays pending and inert. The verified number is carried on the OTP challenge row server-side, never taken from the client. With `ownSession` (after an own-session start) the platform stores no session: it runs the same checks, leaves a custodial account custodial, and answers the token set bound to the device's DPoP key plus a narrow device session (push, sign-out, the change stream and the device list only), taken only with a DPoP proof of the same key on each request (header `DPoP`, with `ath` the hash of the `rsds_` token), always on the device lane. A check that refuses the sign-in, or tokens the platform refuses after the PDS issued them, revoke the new grant with `revokeDpop`.",
22080
22941
  "input": [
22081
22942
  {
22082
22943
  "name": "phone",
@@ -22095,6 +22956,11 @@ export const catalog = {
22095
22956
  "type": "→ #device",
22096
22957
  "required": false,
22097
22958
  "description": "Optional device metadata for the minted session row."
22959
+ },
22960
+ {
22961
+ "name": "ownSession",
22962
+ "type": "→ #ownFinish",
22963
+ "required": false
22098
22964
  }
22099
22965
  ],
22100
22966
  "output": [
@@ -22126,6 +22992,11 @@ export const catalog = {
22126
22992
  "type": "boolean",
22127
22993
  "required": false,
22128
22994
  "description": "True when this call minted a new account for the number (the app asks for a name next); false = an existing number signed in."
22995
+ },
22996
+ {
22997
+ "name": "ownSession",
22998
+ "type": "→ #ownSession",
22999
+ "required": false
22129
23000
  }
22130
23001
  ],
22131
23002
  "doc": ({
@@ -22134,7 +23005,7 @@ export const catalog = {
22134
23005
  "defs": {
22135
23006
  "main": {
22136
23007
  "type": "procedure",
22137
- "description": "Verify the OTP code: an existing number's DID signs in; a new number mints a custodial DID + a pub.techne.draft.contactChannel{phone} and its pub.techne.draft.channelVerification, both in space.personal. Mints the session (cookie or device lane, mirroring finishPasskeySignup): `device` present ⇒ an rsds_ device-session token (native); absent ⇒ Set-Cookie __Host-rs_session (web). Either way then binds the number's pending shares (custodial lighters only — a BYOD lighter's pending shares stay pending; no automatic bind), and only for a beacon that is still on or upcoming: an ended beacon's pending share stays pending and inert. The verified number is carried on the OTP challenge row server-side, never taken from the client.",
23008
+ "description": "Verify the OTP code: an existing number's DID signs in; a new number mints a custodial DID + a pub.techne.draft.contactChannel{phone} and its pub.techne.draft.channelVerification, both in space.personal. Mints the session (cookie or device lane, mirroring finishPasskeySignup): `device` present ⇒ an rsds_ device-session token (native); absent ⇒ Set-Cookie __Host-rs_session (web). Either way then binds the number's pending shares (custodial lighters only — a BYOD lighter's pending shares stay pending; no automatic bind), and only for a beacon that is still on or upcoming: an ended beacon's pending share stays pending and inert. The verified number is carried on the OTP challenge row server-side, never taken from the client. With `ownSession` (after an own-session start) the platform stores no session: it runs the same checks, leaves a custodial account custodial, and answers the token set bound to the device's DPoP key plus a narrow device session (push, sign-out, the change stream and the device list only), taken only with a DPoP proof of the same key on each request (header `DPoP`, with `ath` the hash of the `rsds_` token), always on the device lane. A check that refuses the sign-in, or tokens the platform refuses after the PDS issued them, revoke the new grant with `revokeDpop`.",
22138
23009
  "input": {
22139
23010
  "encoding": "application/json",
22140
23011
  "schema": {
@@ -22156,6 +23027,10 @@ export const catalog = {
22156
23027
  "type": "ref",
22157
23028
  "ref": "#device",
22158
23029
  "description": "Optional device metadata for the minted session row."
23030
+ },
23031
+ "ownSession": {
23032
+ "type": "ref",
23033
+ "ref": "#ownFinish"
22159
23034
  }
22160
23035
  }
22161
23036
  }
@@ -22184,6 +23059,10 @@ export const catalog = {
22184
23059
  "created": {
22185
23060
  "type": "boolean",
22186
23061
  "description": "True when this call minted a new account for the number (the app asks for a name next); false = an existing number signed in."
23062
+ },
23063
+ "ownSession": {
23064
+ "type": "ref",
23065
+ "ref": "#ownSession"
22187
23066
  }
22188
23067
  }
22189
23068
  }
@@ -22204,6 +23083,22 @@ export const catalog = {
22204
23083
  {
22205
23084
  "name": "MethodFrozen",
22206
23085
  "description": "The number is a sign-in method its account froze (until the time in the message); it signs in nowhere until then. Use another of the account's methods."
23086
+ },
23087
+ {
23088
+ "name": "OwnSessionUnavailable",
23089
+ "description": "The first-party door is off for this number. Start again without ownSession."
23090
+ },
23091
+ {
23092
+ "name": "RateLimitExceeded",
23093
+ "description": "Too many tries: wait a minute."
23094
+ },
23095
+ {
23096
+ "name": "Unavailable",
23097
+ "description": "Sign-in is unavailable: try again."
23098
+ },
23099
+ {
23100
+ "name": "UseDpopNonce",
23101
+ "description": "Sign the proofs again with `nonce` (also in the DPoP-Nonce header) and finish again with the same code. The code is not spent, even when the PDS refused the token proof after taking it."
22207
23102
  }
22208
23103
  ]
22209
23104
  },
@@ -22217,6 +23112,77 @@ export const catalog = {
22217
23112
  "type": "string"
22218
23113
  }
22219
23114
  }
23115
+ },
23116
+ "ownFinish": {
23117
+ "type": "object",
23118
+ "required": [
23119
+ "challengeDpop",
23120
+ "tokenDpop",
23121
+ "revokeDpop",
23122
+ "codeVerifier"
23123
+ ],
23124
+ "properties": {
23125
+ "challengeDpop": {
23126
+ "type": "string",
23127
+ "description": "DPoP proof for POST to challengeEndpoint, with the start's key."
23128
+ },
23129
+ "tokenDpop": {
23130
+ "type": "string",
23131
+ "description": "DPoP proof for POST to tokenEndpoint, same key."
23132
+ },
23133
+ "revokeDpop": {
23134
+ "type": "string",
23135
+ "description": "DPoP proof for POST to revocationEndpoint, same key; used only if a check refuses the sign-in or the platform refuses the tokens the PDS issued."
23136
+ },
23137
+ "codeVerifier": {
23138
+ "type": "string",
23139
+ "description": "The PKCE verifier."
23140
+ }
23141
+ }
23142
+ },
23143
+ "ownSession": {
23144
+ "type": "object",
23145
+ "required": [
23146
+ "accessToken",
23147
+ "sub"
23148
+ ],
23149
+ "properties": {
23150
+ "accessToken": {
23151
+ "type": "string",
23152
+ "description": "DPoP-bound access token for the person's PDS."
23153
+ },
23154
+ "refreshToken": {
23155
+ "type": "string",
23156
+ "description": "Refresh it with refreshOwnSession."
23157
+ },
23158
+ "tokenType": {
23159
+ "type": "string",
23160
+ "description": "Always DPoP."
23161
+ },
23162
+ "scope": {
23163
+ "type": "string"
23164
+ },
23165
+ "expiresAt": {
23166
+ "type": "string",
23167
+ "description": "When the access token expires (RFC 3339)."
23168
+ },
23169
+ "sub": {
23170
+ "type": "string",
23171
+ "format": "did"
23172
+ },
23173
+ "issuer": {
23174
+ "type": "string",
23175
+ "description": "The authorization server."
23176
+ },
23177
+ "pds": {
23178
+ "type": "string",
23179
+ "description": "The PDS the tokens are for."
23180
+ },
23181
+ "dpopNonce": {
23182
+ "type": "string",
23183
+ "description": "The PDS's latest DPoP nonce."
23184
+ }
23185
+ }
22220
23186
  }
22221
23187
  }
22222
23188
  })
@@ -26604,7 +27570,7 @@ export const catalog = {
26604
27570
  "group": "social.scenius",
26605
27571
  "kind": "query",
26606
27572
  "class": "read",
26607
- "description": "The caller's OWN native-push state (the Me push-toggle prefill). `registered` reflects the PRESENTING device (whether it has a live push token — always false for a browser cookie / agent caller, which has no device row); `enabled` is the account-wide push notifications toggle. Requires sign-in.",
27573
+ "description": "The caller's OWN native-push state (the Me push-toggle prefill). `registered` reflects the PRESENTING device (whether it has a live push token — always false for a browser cookie / agent caller, which has no device row); `enabled` is the account-wide push notifications toggle. Requires sign-in. A narrow device session (finishPhoneSignup with ownSession) is taken only with a DPoP proof (RFC 9449, header `DPoP`) by the key it is bound to, made for this request: an ES256 `dpop+jwt`, `htm` its method, `htu` its URL, `iat` within the last 300 s (up to 60 s ahead), a fresh `jti`, and `ath` the base64url SHA-256 of the `rsds_` token; without one the token is nobody (401).",
26608
27574
  "output": [
26609
27575
  {
26610
27576
  "name": "registered",
@@ -26625,7 +27591,7 @@ export const catalog = {
26625
27591
  "defs": {
26626
27592
  "main": {
26627
27593
  "type": "query",
26628
- "description": "The caller's OWN native-push state (the Me push-toggle prefill). `registered` reflects the PRESENTING device (whether it has a live push token — always false for a browser cookie / agent caller, which has no device row); `enabled` is the account-wide push notifications toggle. Requires sign-in.",
27594
+ "description": "The caller's OWN native-push state (the Me push-toggle prefill). `registered` reflects the PRESENTING device (whether it has a live push token — always false for a browser cookie / agent caller, which has no device row); `enabled` is the account-wide push notifications toggle. Requires sign-in. A narrow device session (finishPhoneSignup with ownSession) is taken only with a DPoP proof (RFC 9449, header `DPoP`) by the key it is bound to, made for this request: an ES256 `dpop+jwt`, `htm` its method, `htu` its URL, `iat` within the last 300 s (up to 60 s ahead), a fresh `jti`, and `ath` the base64url SHA-256 of the `rsds_` token; without one the token is nobody (401).",
26629
27595
  "output": {
26630
27596
  "encoding": "application/json",
26631
27597
  "schema": {
@@ -27883,7 +28849,7 @@ export const catalog = {
27883
28849
  "group": "social.scenius",
27884
28850
  "kind": "query",
27885
28851
  "class": "read",
27886
- "description": "List the caller's OWN device sessions — newest-first, revoked (signed-out) rows included. INTERACTIVE-LANE ONLY (a signed-in browser cookie OR the phone's `rsds_` device token; an agent credential — a delegated agent token or a service JWT — is rejected). The token hash + push routing are never surfaced; the presenting device is flagged `current`.",
28852
+ "description": "List the caller's OWN device sessions — newest-first, revoked (signed-out) rows included. INTERACTIVE-LANE ONLY (a signed-in browser cookie OR the phone's `rsds_` device token; an agent credential — a delegated agent token or a service JWT — is rejected). The token hash + push routing are never surfaced; the presenting device is flagged `current`. A narrow device session (finishPhoneSignup with ownSession) is taken only with a DPoP proof (RFC 9449, header `DPoP`) by the key it is bound to, made for this request: an ES256 `dpop+jwt`, `htm` its method, `htu` its URL, `iat` within the last 300 s (up to 60 s ahead), a fresh `jti`, and `ath` the base64url SHA-256 of the `rsds_` token; without one the token is nobody (401).",
27887
28853
  "output": [
27888
28854
  {
27889
28855
  "name": "devices",
@@ -27897,7 +28863,7 @@ export const catalog = {
27897
28863
  "defs": {
27898
28864
  "main": {
27899
28865
  "type": "query",
27900
- "description": "List the caller's OWN device sessions — newest-first, revoked (signed-out) rows included. INTERACTIVE-LANE ONLY (a signed-in browser cookie OR the phone's `rsds_` device token; an agent credential — a delegated agent token or a service JWT — is rejected). The token hash + push routing are never surfaced; the presenting device is flagged `current`.",
28866
+ "description": "List the caller's OWN device sessions — newest-first, revoked (signed-out) rows included. INTERACTIVE-LANE ONLY (a signed-in browser cookie OR the phone's `rsds_` device token; an agent credential — a delegated agent token or a service JWT — is rejected). The token hash + push routing are never surfaced; the presenting device is flagged `current`. A narrow device session (finishPhoneSignup with ownSession) is taken only with a DPoP proof (RFC 9449, header `DPoP`) by the key it is bound to, made for this request: an ES256 `dpop+jwt`, `htm` its method, `htu` its URL, `iat` within the last 300 s (up to 60 s ahead), a fresh `jti`, and `ath` the base64url SHA-256 of the `rsds_` token; without one the token is nobody (401).",
27901
28867
  "output": {
27902
28868
  "encoding": "application/json",
27903
28869
  "schema": {
@@ -29629,13 +30595,152 @@ export const catalog = {
29629
30595
  }
29630
30596
  })
29631
30597
  },
30598
+ {
30599
+ "nsid": "social.scenius.refreshOwnSession",
30600
+ "name": "refreshOwnSession",
30601
+ "group": "social.scenius",
30602
+ "kind": "procedure",
30603
+ "class": "write",
30604
+ "description": "Refresh the OAuth session a device holds at our PDS (signed in with finishPhoneSignup ownSession). The platform adds only its client assertion to the device's own DPoP proof, and answers the PDS's token response as it came (access_token, refresh_token, expires_in, ...) plus dpopNonce. No sign-in needed: the refresh token, bound to the proof's key, is the credential. The device checks that `sub` is the DID it signed in as. A refresh signed with another key, or with a refresh token that was already rotated, ends the whole session at the PDS (InvalidGrant, the grant is dropped): refresh one at a time and store the rotated token before it is used. A retry that lost its answer is safe for 60 seconds: the same refresh token with a proof by the same key gets the same answer without the PDS, and the same token with another key's proof is refused (InvalidRequest) without reaching the PDS. A request sent while the first with its token is still running waits for its answer. Device sign-in plumbing for apps: no sign-in is read: the refresh token (bound to the proof's key) is the credential (an agent token whose scopes leave this method out is refused, 403). An agent's own credential is revoked with revokeAgentToken.",
30605
+ "input": [
30606
+ {
30607
+ "name": "refreshToken",
30608
+ "type": "string",
30609
+ "required": true
30610
+ },
30611
+ {
30612
+ "name": "dpop",
30613
+ "type": "string",
30614
+ "required": true,
30615
+ "description": "DPoP proof for POST to the tokenEndpoint startPhoneSignup named, with the session's key."
30616
+ }
30617
+ ],
30618
+ "output": [
30619
+ {
30620
+ "name": "access_token",
30621
+ "type": "string",
30622
+ "required": false
30623
+ },
30624
+ {
30625
+ "name": "refresh_token",
30626
+ "type": "string",
30627
+ "required": false
30628
+ },
30629
+ {
30630
+ "name": "token_type",
30631
+ "type": "string",
30632
+ "required": false
30633
+ },
30634
+ {
30635
+ "name": "expires_in",
30636
+ "type": "integer",
30637
+ "required": false
30638
+ },
30639
+ {
30640
+ "name": "scope",
30641
+ "type": "string",
30642
+ "required": false
30643
+ },
30644
+ {
30645
+ "name": "sub",
30646
+ "type": "string<did>",
30647
+ "required": false
30648
+ },
30649
+ {
30650
+ "name": "dpopNonce",
30651
+ "type": "string",
30652
+ "required": false
30653
+ }
30654
+ ],
30655
+ "doc": ({
30656
+ "lexicon": 1,
30657
+ "id": "social.scenius.refreshOwnSession",
30658
+ "defs": {
30659
+ "main": {
30660
+ "type": "procedure",
30661
+ "description": "Refresh the OAuth session a device holds at our PDS (signed in with finishPhoneSignup ownSession). The platform adds only its client assertion to the device's own DPoP proof, and answers the PDS's token response as it came (access_token, refresh_token, expires_in, ...) plus dpopNonce. No sign-in needed: the refresh token, bound to the proof's key, is the credential. The device checks that `sub` is the DID it signed in as. A refresh signed with another key, or with a refresh token that was already rotated, ends the whole session at the PDS (InvalidGrant, the grant is dropped): refresh one at a time and store the rotated token before it is used. A retry that lost its answer is safe for 60 seconds: the same refresh token with a proof by the same key gets the same answer without the PDS, and the same token with another key's proof is refused (InvalidRequest) without reaching the PDS. A request sent while the first with its token is still running waits for its answer. Device sign-in plumbing for apps: no sign-in is read: the refresh token (bound to the proof's key) is the credential (an agent token whose scopes leave this method out is refused, 403). An agent's own credential is revoked with revokeAgentToken.",
30662
+ "input": {
30663
+ "encoding": "application/json",
30664
+ "schema": {
30665
+ "type": "object",
30666
+ "required": [
30667
+ "refreshToken",
30668
+ "dpop"
30669
+ ],
30670
+ "properties": {
30671
+ "refreshToken": {
30672
+ "type": "string"
30673
+ },
30674
+ "dpop": {
30675
+ "type": "string",
30676
+ "description": "DPoP proof for POST to the tokenEndpoint startPhoneSignup named, with the session's key."
30677
+ }
30678
+ }
30679
+ }
30680
+ },
30681
+ "output": {
30682
+ "encoding": "application/json",
30683
+ "schema": {
30684
+ "type": "object",
30685
+ "properties": {
30686
+ "access_token": {
30687
+ "type": "string"
30688
+ },
30689
+ "refresh_token": {
30690
+ "type": "string"
30691
+ },
30692
+ "token_type": {
30693
+ "type": "string"
30694
+ },
30695
+ "expires_in": {
30696
+ "type": "integer"
30697
+ },
30698
+ "scope": {
30699
+ "type": "string"
30700
+ },
30701
+ "sub": {
30702
+ "type": "string",
30703
+ "format": "did"
30704
+ },
30705
+ "dpopNonce": {
30706
+ "type": "string"
30707
+ }
30708
+ }
30709
+ }
30710
+ },
30711
+ "errors": [
30712
+ {
30713
+ "name": "UseDpopNonce",
30714
+ "description": "Sign the proof again with `nonce`."
30715
+ },
30716
+ {
30717
+ "name": "InvalidGrant",
30718
+ "description": "The session is over: sign in again."
30719
+ },
30720
+ {
30721
+ "name": "RateLimitExceeded",
30722
+ "description": "Too many requests: wait the seconds in Retry-After."
30723
+ },
30724
+ {
30725
+ "name": "InvalidRequest",
30726
+ "description": "The PDS refused the request for another reason (a malformed proof or token)."
30727
+ },
30728
+ {
30729
+ "name": "Unavailable",
30730
+ "description": "Own sessions are off here, or the PDS is unavailable: try again later."
30731
+ }
30732
+ ]
30733
+ }
30734
+ }
30735
+ })
30736
+ },
29632
30737
  {
29633
30738
  "nsid": "social.scenius.registerDevicePush",
29634
30739
  "name": "registerDevicePush",
29635
30740
  "group": "social.scenius",
29636
30741
  "kind": "procedure",
29637
30742
  "class": "write",
29638
- "description": "Register (or clear) the PRESENTING device's native-push token. DEVICE-LANE ONLY: the token binds to the device row identified by the presenting `rsds_` device-session token, so a browser cookie / agent caller (no `rsds_`) is a 400. A non-empty `expoPushToken` binds the token to this device AND ensures a VERIFIED `push` notification channel (a valid token is the possession proof), preserving the caller's push notifications toggle. A null/absent token clears the device's token (identical to `unregisterPushDevice`); if it was the account's last device holding a token, the push channel becomes undeliverable. The push token is OPERATIONAL routing (never a record body); it is never surfaced in `listDeviceSessions`.",
30743
+ "description": "Register (or clear) the PRESENTING device's native-push token. DEVICE-LANE ONLY: the token binds to the device row identified by the presenting `rsds_` device-session token, so a browser cookie / agent caller (no `rsds_`) is a 400. A non-empty `expoPushToken` binds the token to this device AND ensures a VERIFIED `push` notification channel (a valid token is the possession proof), preserving the caller's push notifications toggle. A null/absent token clears the device's token (identical to `unregisterPushDevice`); if it was the account's last device holding a token, the push channel becomes undeliverable. The push token is OPERATIONAL routing (never a record body); it is never surfaced in `listDeviceSessions`. A narrow device session (finishPhoneSignup with ownSession) is taken only with a DPoP proof (RFC 9449, header `DPoP`) by the key it is bound to, made for this request: an ES256 `dpop+jwt`, `htm` its method, `htu` its URL, `iat` within the last 300 s (up to 60 s ahead), a fresh `jti`, and `ath` the base64url SHA-256 of the `rsds_` token; without one the token is nobody (401).",
29639
30744
  "input": [
29640
30745
  {
29641
30746
  "name": "expoPushToken",
@@ -29664,7 +30769,7 @@ export const catalog = {
29664
30769
  "defs": {
29665
30770
  "main": {
29666
30771
  "type": "procedure",
29667
- "description": "Register (or clear) the PRESENTING device's native-push token. DEVICE-LANE ONLY: the token binds to the device row identified by the presenting `rsds_` device-session token, so a browser cookie / agent caller (no `rsds_`) is a 400. A non-empty `expoPushToken` binds the token to this device AND ensures a VERIFIED `push` notification channel (a valid token is the possession proof), preserving the caller's push notifications toggle. A null/absent token clears the device's token (identical to `unregisterPushDevice`); if it was the account's last device holding a token, the push channel becomes undeliverable. The push token is OPERATIONAL routing (never a record body); it is never surfaced in `listDeviceSessions`.",
30772
+ "description": "Register (or clear) the PRESENTING device's native-push token. DEVICE-LANE ONLY: the token binds to the device row identified by the presenting `rsds_` device-session token, so a browser cookie / agent caller (no `rsds_`) is a 400. A non-empty `expoPushToken` binds the token to this device AND ensures a VERIFIED `push` notification channel (a valid token is the possession proof), preserving the caller's push notifications toggle. A null/absent token clears the device's token (identical to `unregisterPushDevice`); if it was the account's last device holding a token, the push channel becomes undeliverable. The push token is OPERATIONAL routing (never a record body); it is never surfaced in `listDeviceSessions`. A narrow device session (finishPhoneSignup with ownSession) is taken only with a DPoP proof (RFC 9449, header `DPoP`) by the key it is bound to, made for this request: an ES256 `dpop+jwt`, `htm` its method, `htu` its URL, `iat` within the last 300 s (up to 60 s ahead), a fresh `jti`, and `ath` the base64url SHA-256 of the `rsds_` token; without one the token is nobody (401).",
29668
30773
  "input": {
29669
30774
  "encoding": "application/json",
29670
30775
  "schema": {
@@ -30833,6 +31938,100 @@ export const catalog = {
30833
31938
  }
30834
31939
  })
30835
31940
  },
31941
+ {
31942
+ "nsid": "social.scenius.revokeOwnSession",
31943
+ "name": "revokeOwnSession",
31944
+ "group": "social.scenius",
31945
+ "kind": "procedure",
31946
+ "class": "write",
31947
+ "description": "Revoke the OAuth session a device holds at our PDS (RFC 7009): the PDS drops the whole grant. `ok` means the PDS took the request: as RFC 7009 allows, it answers the same for a token it does not know or a proof signed with another key, which revoke nothing. The platform adds only its client assertion to the device's own DPoP proof. Signing out of the narrow device session is signOutDevice. Device sign-in plumbing for apps: no sign-in is read: the token (bound to the proof's key) is the credential (an agent token whose scopes leave this method out is refused, 403). An agent's own credential is revoked with revokeAgentToken.",
31948
+ "input": [
31949
+ {
31950
+ "name": "token",
31951
+ "type": "string",
31952
+ "required": true,
31953
+ "description": "The access or refresh token."
31954
+ },
31955
+ {
31956
+ "name": "dpop",
31957
+ "type": "string",
31958
+ "required": true,
31959
+ "description": "DPoP proof for POST to the revocationEndpoint startPhoneSignup named, with the session's key."
31960
+ }
31961
+ ],
31962
+ "output": [
31963
+ {
31964
+ "name": "ok",
31965
+ "type": "boolean",
31966
+ "required": true
31967
+ }
31968
+ ],
31969
+ "doc": ({
31970
+ "lexicon": 1,
31971
+ "id": "social.scenius.revokeOwnSession",
31972
+ "defs": {
31973
+ "main": {
31974
+ "type": "procedure",
31975
+ "description": "Revoke the OAuth session a device holds at our PDS (RFC 7009): the PDS drops the whole grant. `ok` means the PDS took the request: as RFC 7009 allows, it answers the same for a token it does not know or a proof signed with another key, which revoke nothing. The platform adds only its client assertion to the device's own DPoP proof. Signing out of the narrow device session is signOutDevice. Device sign-in plumbing for apps: no sign-in is read: the token (bound to the proof's key) is the credential (an agent token whose scopes leave this method out is refused, 403). An agent's own credential is revoked with revokeAgentToken.",
31976
+ "input": {
31977
+ "encoding": "application/json",
31978
+ "schema": {
31979
+ "type": "object",
31980
+ "required": [
31981
+ "token",
31982
+ "dpop"
31983
+ ],
31984
+ "properties": {
31985
+ "token": {
31986
+ "type": "string",
31987
+ "description": "The access or refresh token."
31988
+ },
31989
+ "dpop": {
31990
+ "type": "string",
31991
+ "description": "DPoP proof for POST to the revocationEndpoint startPhoneSignup named, with the session's key."
31992
+ }
31993
+ }
31994
+ }
31995
+ },
31996
+ "output": {
31997
+ "encoding": "application/json",
31998
+ "schema": {
31999
+ "type": "object",
32000
+ "required": [
32001
+ "ok"
32002
+ ],
32003
+ "properties": {
32004
+ "ok": {
32005
+ "type": "boolean"
32006
+ }
32007
+ }
32008
+ }
32009
+ },
32010
+ "errors": [
32011
+ {
32012
+ "name": "UseDpopNonce",
32013
+ "description": "Sign the proof again with `nonce`."
32014
+ },
32015
+ {
32016
+ "name": "InvalidGrant"
32017
+ },
32018
+ {
32019
+ "name": "RateLimitExceeded",
32020
+ "description": "Too many requests: wait the seconds in Retry-After."
32021
+ },
32022
+ {
32023
+ "name": "InvalidRequest",
32024
+ "description": "The PDS refused the request for another reason (a malformed proof or token)."
32025
+ },
32026
+ {
32027
+ "name": "Unavailable",
32028
+ "description": "Own sessions are off here, or the PDS is unavailable: try again later."
32029
+ }
32030
+ ]
32031
+ }
32032
+ }
32033
+ })
32034
+ },
30836
32035
  {
30837
32036
  "nsid": "social.scenius.rewriteCustodialNsids",
30838
32037
  "name": "rewriteCustodialNsids",
@@ -31888,7 +33087,7 @@ export const catalog = {
31888
33087
  "group": "social.scenius",
31889
33088
  "kind": "procedure",
31890
33089
  "class": "write",
31891
- "description": "Set the caller's native-push notifications toggle (the Me 'Notifications: App' control — the toggle chooses WHERE the person is interrupted, never the ledger). Upserts the account's `push` notification-channel consent. INTERACTIVE-LANE ONLY (a signed-in browser cookie OR the phone's `rsds_` device token; an agent credential is rejected). Turning it off suppresses native-push interruptions without affecting the always-on in-app inbox.",
33090
+ "description": "Set the caller's native-push notifications toggle (the Me 'Notifications: App' control — the toggle chooses WHERE the person is interrupted, never the ledger). Upserts the account's `push` notification-channel consent. INTERACTIVE-LANE ONLY (a signed-in browser cookie OR the phone's `rsds_` device token; an agent credential is rejected). Turning it off suppresses native-push interruptions without affecting the always-on in-app inbox. A narrow device session (finishPhoneSignup with ownSession) is taken only with a DPoP proof (RFC 9449, header `DPoP`) by the key it is bound to, made for this request: an ES256 `dpop+jwt`, `htm` its method, `htu` its URL, `iat` within the last 300 s (up to 60 s ahead), a fresh `jti`, and `ath` the base64url SHA-256 of the `rsds_` token; without one the token is nobody (401).",
31892
33091
  "input": [
31893
33092
  {
31894
33093
  "name": "enabled",
@@ -31911,7 +33110,7 @@ export const catalog = {
31911
33110
  "defs": {
31912
33111
  "main": {
31913
33112
  "type": "procedure",
31914
- "description": "Set the caller's native-push notifications toggle (the Me 'Notifications: App' control — the toggle chooses WHERE the person is interrupted, never the ledger). Upserts the account's `push` notification-channel consent. INTERACTIVE-LANE ONLY (a signed-in browser cookie OR the phone's `rsds_` device token; an agent credential is rejected). Turning it off suppresses native-push interruptions without affecting the always-on in-app inbox.",
33113
+ "description": "Set the caller's native-push notifications toggle (the Me 'Notifications: App' control — the toggle chooses WHERE the person is interrupted, never the ledger). Upserts the account's `push` notification-channel consent. INTERACTIVE-LANE ONLY (a signed-in browser cookie OR the phone's `rsds_` device token; an agent credential is rejected). Turning it off suppresses native-push interruptions without affecting the always-on in-app inbox. A narrow device session (finishPhoneSignup with ownSession) is taken only with a DPoP proof (RFC 9449, header `DPoP`) by the key it is bound to, made for this request: an ES256 `dpop+jwt`, `htm` its method, `htu` its URL, `iat` within the last 300 s (up to 60 s ahead), a fresh `jti`, and `ath` the base64url SHA-256 of the `rsds_` token; without one the token is nobody (401).",
31915
33114
  "input": {
31916
33115
  "encoding": "application/json",
31917
33116
  "schema": {
@@ -32043,7 +33242,7 @@ export const catalog = {
32043
33242
  "group": "social.scenius",
32044
33243
  "kind": "procedure",
32045
33244
  "class": "write",
32046
- "description": "Sign out a device session. INTERACTIVE-LANE ONLY (a signed-in browser cookie OR the phone's `rsds_` device token; an agent credential — a delegated agent token or a service JWT — is rejected). A `deviceId` signs out that (own-scoped) device; absent, it signs out the PRESENTING device by its own token. Signing out one device leaves the caller's other devices signed in and writing; `everywhere` signs out all of them. Idempotent + non-enumerating: always `{ok:true}` (an unknown/foreign/already-signed-out target is a silent no-op).",
33245
+ "description": "Sign out a device session. INTERACTIVE-LANE ONLY (a signed-in browser cookie OR the phone's `rsds_` device token; an agent credential — a delegated agent token or a service JWT — is rejected). A `deviceId` signs out that (own-scoped) device; absent, it signs out the PRESENTING device by its own token. Signing out one device leaves the caller's other devices signed in and writing; `everywhere` signs out all of them. Idempotent + non-enumerating: always `{ok:true}` (an unknown/foreign/already-signed-out target is a silent no-op). A narrow device session (finishPhoneSignup with ownSession) is taken only with a DPoP proof (RFC 9449, header `DPoP`) by the key it is bound to, made for this request: an ES256 `dpop+jwt`, `htm` its method, `htu` its URL, `iat` within the last 300 s (up to 60 s ahead), a fresh `jti`, and `ath` the base64url SHA-256 of the `rsds_` token; without one the token is nobody (401).",
32047
33246
  "input": [
32048
33247
  {
32049
33248
  "name": "deviceId",
@@ -32072,7 +33271,7 @@ export const catalog = {
32072
33271
  "defs": {
32073
33272
  "main": {
32074
33273
  "type": "procedure",
32075
- "description": "Sign out a device session. INTERACTIVE-LANE ONLY (a signed-in browser cookie OR the phone's `rsds_` device token; an agent credential — a delegated agent token or a service JWT — is rejected). A `deviceId` signs out that (own-scoped) device; absent, it signs out the PRESENTING device by its own token. Signing out one device leaves the caller's other devices signed in and writing; `everywhere` signs out all of them. Idempotent + non-enumerating: always `{ok:true}` (an unknown/foreign/already-signed-out target is a silent no-op).",
33274
+ "description": "Sign out a device session. INTERACTIVE-LANE ONLY (a signed-in browser cookie OR the phone's `rsds_` device token; an agent credential — a delegated agent token or a service JWT — is rejected). A `deviceId` signs out that (own-scoped) device; absent, it signs out the PRESENTING device by its own token. Signing out one device leaves the caller's other devices signed in and writing; `everywhere` signs out all of them. Idempotent + non-enumerating: always `{ok:true}` (an unknown/foreign/already-signed-out target is a silent no-op). A narrow device session (finishPhoneSignup with ownSession) is taken only with a DPoP proof (RFC 9449, header `DPoP`) by the key it is bound to, made for this request: an ES256 `dpop+jwt`, `htm` its method, `htu` its URL, `iat` within the last 300 s (up to 60 s ahead), a fresh `jti`, and `ath` the base64url SHA-256 of the `rsds_` token; without one the token is nobody (401).",
32076
33275
  "input": {
32077
33276
  "encoding": "application/json",
32078
33277
  "schema": {
@@ -32161,13 +33360,18 @@ export const catalog = {
32161
33360
  "group": "social.scenius",
32162
33361
  "kind": "procedure",
32163
33362
  "class": "write",
32164
- "description": "Beacon's one front door: text a sign-in code to a phone number. Returns {ok:true} whether the code was actually sent or the caller was rate-limited, with one exception: when a code went to this number moments ago through another sign-in, so no new one can be sent yet and that code can't finish here, it answers RateLimitExceeded with the seconds to wait (also in Retry-After).",
33363
+ "description": "Beacon's one front door: text a sign-in code to a phone number. Returns {ok:true} whether the code was actually sent or the caller was rate-limited, with one exception: when a code went to this number moments ago through another sign-in, so no new one can be sent yet and that code can't finish here, it answers RateLimitExceeded with the seconds to wait (also in Retry-After). With `ownSession` the device will hold its own OAuth session (it makes the DPoP key and the PKCE pair and signs every proof): `ownSession:{}` answers the endpoints its proofs name and texts nothing; `ownSession:{codeChallenge, dpop}` texts the code.",
32165
33364
  "input": [
32166
33365
  {
32167
33366
  "name": "phone",
32168
33367
  "type": "string",
32169
33368
  "required": true,
32170
33369
  "description": "E.164."
33370
+ },
33371
+ {
33372
+ "name": "ownSession",
33373
+ "type": "→ #ownStart",
33374
+ "required": false
32171
33375
  }
32172
33376
  ],
32173
33377
  "output": [
@@ -32175,6 +33379,11 @@ export const catalog = {
32175
33379
  "name": "ok",
32176
33380
  "type": "boolean",
32177
33381
  "required": true
33382
+ },
33383
+ {
33384
+ "name": "ownSession",
33385
+ "type": "→ #ownStartAnswer",
33386
+ "required": false
32178
33387
  }
32179
33388
  ],
32180
33389
  "doc": ({
@@ -32183,7 +33392,7 @@ export const catalog = {
32183
33392
  "defs": {
32184
33393
  "main": {
32185
33394
  "type": "procedure",
32186
- "description": "Beacon's one front door: text a sign-in code to a phone number. Returns {ok:true} whether the code was actually sent or the caller was rate-limited, with one exception: when a code went to this number moments ago through another sign-in, so no new one can be sent yet and that code can't finish here, it answers RateLimitExceeded with the seconds to wait (also in Retry-After).",
33395
+ "description": "Beacon's one front door: text a sign-in code to a phone number. Returns {ok:true} whether the code was actually sent or the caller was rate-limited, with one exception: when a code went to this number moments ago through another sign-in, so no new one can be sent yet and that code can't finish here, it answers RateLimitExceeded with the seconds to wait (also in Retry-After). With `ownSession` the device will hold its own OAuth session (it makes the DPoP key and the PKCE pair and signs every proof): `ownSession:{}` answers the endpoints its proofs name and texts nothing; `ownSession:{codeChallenge, dpop}` texts the code.",
32187
33396
  "input": {
32188
33397
  "encoding": "application/json",
32189
33398
  "schema": {
@@ -32195,6 +33404,10 @@ export const catalog = {
32195
33404
  "phone": {
32196
33405
  "type": "string",
32197
33406
  "description": "E.164."
33407
+ },
33408
+ "ownSession": {
33409
+ "type": "ref",
33410
+ "ref": "#ownStart"
32198
33411
  }
32199
33412
  }
32200
33413
  }
@@ -32209,6 +33422,10 @@ export const catalog = {
32209
33422
  "properties": {
32210
33423
  "ok": {
32211
33424
  "type": "boolean"
33425
+ },
33426
+ "ownSession": {
33427
+ "type": "ref",
33428
+ "ref": "#ownStartAnswer"
32212
33429
  }
32213
33430
  }
32214
33431
  }
@@ -32220,8 +33437,55 @@ export const catalog = {
32220
33437
  {
32221
33438
  "name": "RateLimitExceeded",
32222
33439
  "description": "A code went to this number moments ago and can't be finished here; wait the seconds given, then ask again."
33440
+ },
33441
+ {
33442
+ "name": "OwnSessionUnavailable",
33443
+ "description": "This number cannot sign in with ownSession (the first-party door is off, a review number, or the PDS refused the start). Sign in without ownSession."
33444
+ },
33445
+ {
33446
+ "name": "UseDpopNonce",
33447
+ "description": "Sign the DPoP proof again with `nonce` (also in the DPoP-Nonce header). Nothing was texted and no attempt was counted."
32223
33448
  }
32224
33449
  ]
33450
+ },
33451
+ "ownStart": {
33452
+ "type": "object",
33453
+ "properties": {
33454
+ "codeChallenge": {
33455
+ "type": "string",
33456
+ "minLength": 43,
33457
+ "maxLength": 128,
33458
+ "description": "PKCE S256 challenge of the device's verifier. Required with dpop."
33459
+ },
33460
+ "dpop": {
33461
+ "type": "string",
33462
+ "description": "The device's DPoP proof (ES256, its public key in the header) for POST to challengeEndpoint. Absent: answer the endpoints only."
33463
+ }
33464
+ }
33465
+ },
33466
+ "ownStartAnswer": {
33467
+ "type": "object",
33468
+ "properties": {
33469
+ "issuer": {
33470
+ "type": "string"
33471
+ },
33472
+ "challengeEndpoint": {
33473
+ "type": "string",
33474
+ "description": "The htu of the start and code-step proofs."
33475
+ },
33476
+ "tokenEndpoint": {
33477
+ "type": "string",
33478
+ "description": "The htu of the token and refresh proofs."
33479
+ },
33480
+ "revocationEndpoint": {
33481
+ "type": "string",
33482
+ "description": "The htu of revoke proofs."
33483
+ },
33484
+ "dpopNonce": {
33485
+ "type": "string",
33486
+ "description": "The PDS's latest DPoP nonce, for the next proofs."
33487
+ }
33488
+ }
32225
33489
  }
32226
33490
  }
32227
33491
  })
@@ -32628,7 +33892,7 @@ export const catalog = {
32628
33892
  "group": "social.scenius",
32629
33893
  "kind": "procedure",
32630
33894
  "class": "write",
32631
- "description": "Clear the PRESENTING device's native-push token — DEVICE-LANE ONLY (the presenting `rsds_` device session; a cookie / agent caller is a 400). Idempotent: an already-cleared device is a silent no-op. If it was the account's last device holding a token, the `push` notification channel's verification is cleared (the channel becomes undeliverable until a device re-registers). Always `{ok:true}`.",
33895
+ "description": "Clear the PRESENTING device's native-push token — DEVICE-LANE ONLY (the presenting `rsds_` device session; a cookie / agent caller is a 400). Idempotent: an already-cleared device is a silent no-op. If it was the account's last device holding a token, the `push` notification channel's verification is cleared (the channel becomes undeliverable until a device re-registers). Always `{ok:true}`. A narrow device session (finishPhoneSignup with ownSession) is taken only with a DPoP proof (RFC 9449, header `DPoP`) by the key it is bound to, made for this request: an ES256 `dpop+jwt`, `htm` its method, `htu` its URL, `iat` within the last 300 s (up to 60 s ahead), a fresh `jti`, and `ath` the base64url SHA-256 of the `rsds_` token; without one the token is nobody (401).",
32632
33896
  "output": [
32633
33897
  {
32634
33898
  "name": "ok",
@@ -32643,7 +33907,7 @@ export const catalog = {
32643
33907
  "defs": {
32644
33908
  "main": {
32645
33909
  "type": "procedure",
32646
- "description": "Clear the PRESENTING device's native-push token — DEVICE-LANE ONLY (the presenting `rsds_` device session; a cookie / agent caller is a 400). Idempotent: an already-cleared device is a silent no-op. If it was the account's last device holding a token, the `push` notification channel's verification is cleared (the channel becomes undeliverable until a device re-registers). Always `{ok:true}`.",
33910
+ "description": "Clear the PRESENTING device's native-push token — DEVICE-LANE ONLY (the presenting `rsds_` device session; a cookie / agent caller is a 400). Idempotent: an already-cleared device is a silent no-op. If it was the account's last device holding a token, the `push` notification channel's verification is cleared (the channel becomes undeliverable until a device re-registers). Always `{ok:true}`. A narrow device session (finishPhoneSignup with ownSession) is taken only with a DPoP proof (RFC 9449, header `DPoP`) by the key it is bound to, made for this request: an ES256 `dpop+jwt`, `htm` its method, `htu` its URL, `iat` within the last 300 s (up to 60 s ahead), a fresh `jti`, and `ath` the base64url SHA-256 of the `rsds_` token; without one the token is nobody (401).",
32647
33911
  "output": {
32648
33912
  "encoding": "application/json",
32649
33913
  "schema": {
@@ -33227,9 +34491,9 @@ export const catalog = {
33227
34491
  }
33228
34492
  ],
33229
34493
  "counts": {
33230
- "records": 153,
34494
+ "records": 159,
33231
34495
  "spaces": 13,
33232
34496
  "predicates": 9,
33233
- "methods": 127
34497
+ "methods": 130
33234
34498
  }
33235
34499
  };