techne-sdk 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +54 -0
- package/README.md +12 -3
- package/dist/auth/app-key.d.ts +5 -0
- package/dist/auth/app-key.js +7 -0
- package/dist/auth/index.d.ts +19 -11
- package/dist/auth/index.js +26 -16
- package/dist/auth/placement.gen.d.ts +1 -1
- package/dist/auth/placement.gen.js +4 -0
- package/dist/catalog/catalog.gen.d.ts +2 -2
- package/dist/catalog/catalog.gen.js +1503 -133
- package/dist/connect.d.ts +18 -3
- package/dist/connect.js +2 -0
- package/dist/generated/index.d.ts +132 -0
- package/dist/generated/index.js +179 -0
- package/dist/generated/lexicons.d.ts +1138 -156
- package/dist/generated/lexicons.js +610 -63
- package/dist/generated/nsid.d.ts +17 -1
- package/dist/generated/nsid.js +17 -1
- package/dist/generated/nsid.json +17 -1
- package/dist/generated/records.d.ts +148 -140
- package/dist/generated/types/app/certified/defs.d.ts +20 -0
- package/dist/generated/types/app/certified/defs.js +18 -0
- package/dist/generated/types/app/certified/signature/defs.d.ts +29 -0
- package/dist/generated/types/app/certified/signature/defs.js +18 -0
- package/dist/generated/types/org/hypercerts/funding/receipt.d.ts +56 -0
- package/dist/generated/types/org/hypercerts/funding/receipt.js +19 -0
- package/dist/generated/types/pub/techne/draft/financials.d.ts +26 -0
- package/dist/generated/types/pub/techne/draft/financials.js +12 -0
- package/dist/generated/types/pub/techne/draft/identity/createCollective.d.ts +5 -0
- package/dist/generated/types/pub/techne/draft/identity/createCollective.js +7 -0
- package/dist/generated/types/pub/techne/draft/identity/defs.d.ts +1 -1
- package/dist/generated/types/pub/techne/draft/identity/manageMethods.d.ts +4 -1
- package/dist/generated/types/pub/techne/draft/identity/writeAsCollective.d.ts +51 -0
- package/dist/generated/types/pub/techne/draft/identity/writeAsCollective.js +55 -0
- package/dist/generated/types/pub/techne/draft/org.d.ts +55 -25
- package/dist/generated/types/pub/techne/draft/org.js +12 -5
- package/dist/generated/types/pub/techne/draft/orgAtPlace.d.ts +17 -0
- package/dist/generated/types/pub/techne/draft/orgAtPlace.js +12 -0
- package/dist/generated/types/pub/techne/draft/permissioned/putRecord.d.ts +1 -1
- package/dist/generated/types/pub/techne/draft/permissioned/putRecords.d.ts +1 -1
- package/dist/generated/types/pub/techne/draft/statement.d.ts +19 -0
- package/dist/generated/types/pub/techne/draft/statement.js +12 -0
- package/dist/wasm/techne-wasm.gen.js +1 -1
- package/dist/wasm/techne-wasm2js.gen.js +16996 -16913
- package/package.json +3 -2
|
@@ -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
|
|
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
|
|
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`,
|
|
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
|
|
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
|
|
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:
|
|
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
|
},
|
|
@@ -8330,6 +8849,112 @@ export const catalog = {
|
|
|
8330
8849
|
}
|
|
8331
8850
|
})
|
|
8332
8851
|
},
|
|
8852
|
+
{
|
|
8853
|
+
"nsid": "pub.techne.draft.identity.writeAsCollective",
|
|
8854
|
+
"name": "draft.identity.writeAsCollective",
|
|
8855
|
+
"group": "pub.techne",
|
|
8856
|
+
"kind": "procedure",
|
|
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.",
|
|
8858
|
+
"doc": ({
|
|
8859
|
+
"lexicon": 1,
|
|
8860
|
+
"id": "pub.techne.draft.identity.writeAsCollective",
|
|
8861
|
+
"defs": {
|
|
8862
|
+
"main": {
|
|
8863
|
+
"type": "procedure",
|
|
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.",
|
|
8865
|
+
"input": {
|
|
8866
|
+
"encoding": "application/json",
|
|
8867
|
+
"schema": {
|
|
8868
|
+
"type": "object",
|
|
8869
|
+
"required": [
|
|
8870
|
+
"repo",
|
|
8871
|
+
"writes"
|
|
8872
|
+
],
|
|
8873
|
+
"properties": {
|
|
8874
|
+
"repo": {
|
|
8875
|
+
"type": "string",
|
|
8876
|
+
"format": "did",
|
|
8877
|
+
"description": "The collective's DID. Not the caller's own."
|
|
8878
|
+
},
|
|
8879
|
+
"validate": {
|
|
8880
|
+
"type": "boolean",
|
|
8881
|
+
"description": "As com.atproto.repo.applyWrites: passed to the collective's PDS."
|
|
8882
|
+
},
|
|
8883
|
+
"writes": {
|
|
8884
|
+
"type": "array",
|
|
8885
|
+
"items": {
|
|
8886
|
+
"type": "union",
|
|
8887
|
+
"refs": [
|
|
8888
|
+
"com.atproto.repo.applyWrites#create",
|
|
8889
|
+
"com.atproto.repo.applyWrites#update",
|
|
8890
|
+
"com.atproto.repo.applyWrites#delete"
|
|
8891
|
+
],
|
|
8892
|
+
"closed": true
|
|
8893
|
+
}
|
|
8894
|
+
},
|
|
8895
|
+
"swapCommit": {
|
|
8896
|
+
"type": "string",
|
|
8897
|
+
"format": "cid",
|
|
8898
|
+
"description": "As com.atproto.repo.applyWrites: the whole batch fails unless the collective's repo is at this commit."
|
|
8899
|
+
}
|
|
8900
|
+
}
|
|
8901
|
+
}
|
|
8902
|
+
},
|
|
8903
|
+
"output": {
|
|
8904
|
+
"encoding": "application/json",
|
|
8905
|
+
"schema": {
|
|
8906
|
+
"type": "object",
|
|
8907
|
+
"required": [],
|
|
8908
|
+
"properties": {
|
|
8909
|
+
"commit": {
|
|
8910
|
+
"type": "ref",
|
|
8911
|
+
"ref": "com.atproto.repo.defs#commitMeta"
|
|
8912
|
+
},
|
|
8913
|
+
"results": {
|
|
8914
|
+
"type": "array",
|
|
8915
|
+
"items": {
|
|
8916
|
+
"type": "union",
|
|
8917
|
+
"refs": [
|
|
8918
|
+
"com.atproto.repo.applyWrites#createResult",
|
|
8919
|
+
"com.atproto.repo.applyWrites#updateResult",
|
|
8920
|
+
"com.atproto.repo.applyWrites#deleteResult"
|
|
8921
|
+
],
|
|
8922
|
+
"closed": true
|
|
8923
|
+
}
|
|
8924
|
+
}
|
|
8925
|
+
}
|
|
8926
|
+
}
|
|
8927
|
+
},
|
|
8928
|
+
"errors": [
|
|
8929
|
+
{
|
|
8930
|
+
"name": "InvalidRequest",
|
|
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)."
|
|
8932
|
+
},
|
|
8933
|
+
{
|
|
8934
|
+
"name": "Forbidden",
|
|
8935
|
+
"description": "HTTP 403. The caller may not write as `repo`, or not this write: a record above its own role, a `block`, or a membership or descriptor the collective keeps in its member space."
|
|
8936
|
+
},
|
|
8937
|
+
{
|
|
8938
|
+
"name": "NotAuthorized",
|
|
8939
|
+
"description": "HTTP 403. A write names a `space` the app's `space:` scopes do not cover writing to."
|
|
8940
|
+
},
|
|
8941
|
+
{
|
|
8942
|
+
"name": "LastManager",
|
|
8943
|
+
"description": "HTTP 409. The writes would leave a circle's members with no manager."
|
|
8944
|
+
},
|
|
8945
|
+
{
|
|
8946
|
+
"name": "PayloadTooLarge",
|
|
8947
|
+
"description": "HTTP 413, from the collective's PDS."
|
|
8948
|
+
},
|
|
8949
|
+
{
|
|
8950
|
+
"name": "RateLimitExceeded",
|
|
8951
|
+
"description": "HTTP 429. Too many writes from this DID, or the collective's PDS is rate-limiting."
|
|
8952
|
+
}
|
|
8953
|
+
]
|
|
8954
|
+
}
|
|
8955
|
+
}
|
|
8956
|
+
})
|
|
8957
|
+
},
|
|
8333
8958
|
{
|
|
8334
8959
|
"nsid": "pub.techne.draft.interest",
|
|
8335
8960
|
"name": "draft.interest",
|
|
@@ -9041,73 +9666,61 @@ export const catalog = {
|
|
|
9041
9666
|
"group": "pub.techne",
|
|
9042
9667
|
"kind": "record",
|
|
9043
9668
|
"key": "any",
|
|
9044
|
-
"description": "`\"key\": \"any\"
|
|
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.",
|
|
9045
9670
|
"fields": [
|
|
9046
9671
|
{
|
|
9047
9672
|
"name": "name",
|
|
9048
9673
|
"type": "string",
|
|
9049
9674
|
"required": true,
|
|
9050
|
-
"description": "The organization's
|
|
9675
|
+
"description": "The organization's name as its registry records it."
|
|
9051
9676
|
},
|
|
9052
9677
|
{
|
|
9053
|
-
"name": "
|
|
9054
|
-
"type": "
|
|
9678
|
+
"name": "identifiers",
|
|
9679
|
+
"type": "array<→ #schemeValue>",
|
|
9055
9680
|
"required": false,
|
|
9056
|
-
"description": "
|
|
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."
|
|
9057
9682
|
},
|
|
9058
9683
|
{
|
|
9059
|
-
"name": "
|
|
9060
|
-
"type": "
|
|
9684
|
+
"name": "category",
|
|
9685
|
+
"type": "array<→ #schemeValue>",
|
|
9061
9686
|
"required": false,
|
|
9062
|
-
"description": "
|
|
9687
|
+
"description": "Classification codes per scheme: `irs-ntee`, `irs-subsection`, `co-sos-entity-type`."
|
|
9063
9688
|
},
|
|
9064
9689
|
{
|
|
9065
|
-
"name": "
|
|
9066
|
-
"type": "
|
|
9690
|
+
"name": "status",
|
|
9691
|
+
"type": "array<→ #schemeValue>",
|
|
9067
9692
|
"required": false,
|
|
9068
|
-
"description": "
|
|
9693
|
+
"description": "Registry standing per scheme (`irs`, `co-sos`). A closed organization keeps its record with its status; it is never deleted."
|
|
9069
9694
|
},
|
|
9070
9695
|
{
|
|
9071
|
-
"name": "
|
|
9696
|
+
"name": "founded",
|
|
9072
9697
|
"type": "string",
|
|
9073
9698
|
"required": false,
|
|
9074
|
-
"description": "
|
|
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)."
|
|
9075
9700
|
},
|
|
9076
9701
|
{
|
|
9077
|
-
"name": "
|
|
9702
|
+
"name": "description",
|
|
9078
9703
|
"type": "string",
|
|
9079
9704
|
"required": false,
|
|
9080
|
-
"description": "
|
|
9705
|
+
"description": "Prose about the organization: for a nonprofit, the mission and program text it filed with the IRS (Form 990). Public."
|
|
9081
9706
|
},
|
|
9082
9707
|
{
|
|
9083
|
-
"name": "
|
|
9084
|
-
"type": "string",
|
|
9708
|
+
"name": "url",
|
|
9709
|
+
"type": "string<uri>",
|
|
9085
9710
|
"required": false,
|
|
9086
|
-
"description": "
|
|
9711
|
+
"description": "The organization's own website, absolute http(s)."
|
|
9087
9712
|
},
|
|
9088
9713
|
{
|
|
9089
|
-
"name": "
|
|
9714
|
+
"name": "phone",
|
|
9090
9715
|
"type": "string",
|
|
9091
9716
|
"required": false,
|
|
9092
|
-
"description": "
|
|
9093
|
-
},
|
|
9094
|
-
{
|
|
9095
|
-
"name": "address",
|
|
9096
|
-
"type": "→ community.lexicon.location.address",
|
|
9097
|
-
"required": false,
|
|
9098
|
-
"description": "Principal address. From the almanac `address` attribute."
|
|
9717
|
+
"description": "Public phone number, E.164."
|
|
9099
9718
|
},
|
|
9100
9719
|
{
|
|
9101
|
-
"name": "
|
|
9102
|
-
"type": "array
|
|
9103
|
-
"required": false,
|
|
9104
|
-
"description": "Registry status per scheme (co-sos, irs). Zero or more; a co-sos and an irs status can coexist for one entity."
|
|
9105
|
-
},
|
|
9106
|
-
{
|
|
9107
|
-
"name": "category",
|
|
9108
|
-
"type": "array<→ pub.techne.draft.org#schemeTag>",
|
|
9720
|
+
"name": "locations",
|
|
9721
|
+
"type": "array<union>",
|
|
9109
9722
|
"required": false,
|
|
9110
|
-
"description": "
|
|
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."
|
|
9111
9724
|
},
|
|
9112
9725
|
{
|
|
9113
9726
|
"name": "createdAt",
|
|
@@ -9118,12 +9731,12 @@ export const catalog = {
|
|
|
9118
9731
|
"doc": ({
|
|
9119
9732
|
"lexicon": 1,
|
|
9120
9733
|
"id": "pub.techne.draft.org",
|
|
9121
|
-
"description": "
|
|
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`.",
|
|
9122
9735
|
"defs": {
|
|
9123
9736
|
"main": {
|
|
9124
9737
|
"type": "record",
|
|
9125
9738
|
"key": "any",
|
|
9126
|
-
"description": "`\"key\": \"any\"
|
|
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.",
|
|
9127
9740
|
"record": {
|
|
9128
9741
|
"type": "object",
|
|
9129
9742
|
"required": [
|
|
@@ -9135,61 +9748,68 @@ export const catalog = {
|
|
|
9135
9748
|
"type": "string",
|
|
9136
9749
|
"maxLength": 640,
|
|
9137
9750
|
"maxGraphemes": 128,
|
|
9138
|
-
"description": "The organization's
|
|
9751
|
+
"description": "The organization's name as its registry records it."
|
|
9139
9752
|
},
|
|
9140
|
-
"
|
|
9141
|
-
"type": "
|
|
9142
|
-
"maxLength":
|
|
9143
|
-
"description": "
|
|
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
|
+
}
|
|
9144
9761
|
},
|
|
9145
|
-
"
|
|
9146
|
-
"type": "
|
|
9147
|
-
"maxLength":
|
|
9148
|
-
"description": "
|
|
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
|
+
}
|
|
9149
9770
|
},
|
|
9150
|
-
"
|
|
9151
|
-
"type": "
|
|
9152
|
-
"maxLength":
|
|
9153
|
-
"description": "
|
|
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
|
+
}
|
|
9154
9779
|
},
|
|
9155
|
-
"
|
|
9780
|
+
"founded": {
|
|
9156
9781
|
"type": "string",
|
|
9157
|
-
"maxLength":
|
|
9158
|
-
"description": "
|
|
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)."
|
|
9159
9784
|
},
|
|
9160
|
-
"
|
|
9785
|
+
"description": {
|
|
9161
9786
|
"type": "string",
|
|
9162
|
-
"
|
|
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."
|
|
9163
9790
|
},
|
|
9164
|
-
"
|
|
9791
|
+
"url": {
|
|
9165
9792
|
"type": "string",
|
|
9166
|
-
"
|
|
9167
|
-
"
|
|
9793
|
+
"format": "uri",
|
|
9794
|
+
"maxLength": 300,
|
|
9795
|
+
"description": "The organization's own website, absolute http(s)."
|
|
9168
9796
|
},
|
|
9169
|
-
"
|
|
9797
|
+
"phone": {
|
|
9170
9798
|
"type": "string",
|
|
9171
|
-
"maxLength":
|
|
9172
|
-
"description": "
|
|
9173
|
-
},
|
|
9174
|
-
"address": {
|
|
9175
|
-
"type": "ref",
|
|
9176
|
-
"ref": "community.lexicon.location.address",
|
|
9177
|
-
"description": "Principal address. From the almanac `address` attribute."
|
|
9178
|
-
},
|
|
9179
|
-
"status": {
|
|
9180
|
-
"type": "array",
|
|
9181
|
-
"description": "Registry status per scheme (co-sos, irs). Zero or more; a co-sos and an irs status can coexist for one entity.",
|
|
9182
|
-
"items": {
|
|
9183
|
-
"type": "ref",
|
|
9184
|
-
"ref": "pub.techne.draft.org#schemeTag"
|
|
9185
|
-
}
|
|
9799
|
+
"maxLength": 32,
|
|
9800
|
+
"description": "Public phone number, E.164."
|
|
9186
9801
|
},
|
|
9187
|
-
"
|
|
9802
|
+
"locations": {
|
|
9188
9803
|
"type": "array",
|
|
9189
|
-
"
|
|
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.",
|
|
9190
9806
|
"items": {
|
|
9191
|
-
"type": "
|
|
9192
|
-
"
|
|
9807
|
+
"type": "union",
|
|
9808
|
+
"refs": [
|
|
9809
|
+
"community.lexicon.location.geo",
|
|
9810
|
+
"community.lexicon.location.address",
|
|
9811
|
+
"com.atproto.repo.strongRef"
|
|
9812
|
+
]
|
|
9193
9813
|
}
|
|
9194
9814
|
},
|
|
9195
9815
|
"createdAt": {
|
|
@@ -9199,19 +9819,185 @@ export const catalog = {
|
|
|
9199
9819
|
}
|
|
9200
9820
|
}
|
|
9201
9821
|
},
|
|
9202
|
-
"
|
|
9822
|
+
"fields": {
|
|
9203
9823
|
"type": "object",
|
|
9204
|
-
"description": "
|
|
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": {
|
|
9897
|
+
"type": "object",
|
|
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.",
|
|
9205
9899
|
"required": [
|
|
9206
9900
|
"scheme",
|
|
9207
|
-
"
|
|
9901
|
+
"value"
|
|
9208
9902
|
],
|
|
9209
9903
|
"properties": {
|
|
9210
9904
|
"scheme": {
|
|
9211
|
-
"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`."
|
|
9212
9908
|
},
|
|
9213
|
-
"
|
|
9214
|
-
"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
|
+
}
|
|
9215
10001
|
}
|
|
9216
10002
|
}
|
|
9217
10003
|
}
|
|
@@ -9385,15 +10171,15 @@ export const catalog = {
|
|
|
9385
10171
|
"name": "draft.permissioned.deleteRecord",
|
|
9386
10172
|
"group": "pub.techne",
|
|
9387
10173
|
"kind": "procedure",
|
|
9388
|
-
"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
|
|
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.",
|
|
9389
10175
|
"doc": ({
|
|
9390
10176
|
"lexicon": 1,
|
|
9391
10177
|
"id": "pub.techne.draft.permissioned.deleteRecord",
|
|
9392
|
-
"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
|
|
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.",
|
|
9393
10179
|
"defs": {
|
|
9394
10180
|
"main": {
|
|
9395
10181
|
"type": "procedure",
|
|
9396
|
-
"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
|
|
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.",
|
|
9397
10183
|
"input": {
|
|
9398
10184
|
"encoding": "application/json",
|
|
9399
10185
|
"schema": {
|
|
@@ -9451,7 +10237,7 @@ export const catalog = {
|
|
|
9451
10237
|
},
|
|
9452
10238
|
{
|
|
9453
10239
|
"name": "Forbidden",
|
|
9454
|
-
"description": "HTTP 403. repo is not the caller's own (or a collective's or circle's the caller may write as, see the description); or the call's `space:` scopes do not cover the delete; or the record was written for an app's space (pub.techne.draft.space.private)
|
|
10240
|
+
"description": "HTTP 403. repo is not the caller's own (or a collective's or circle's the caller may write as, see the description); or the call's `space:` scopes do not cover the delete; or the record was written for an app's space (pub.techne.draft.space.private) under `space:` scopes that do not cover a delete there. Nothing is deleted."
|
|
9455
10241
|
},
|
|
9456
10242
|
{
|
|
9457
10243
|
"name": "LastManager",
|
|
@@ -9902,15 +10688,15 @@ export const catalog = {
|
|
|
9902
10688
|
"name": "draft.permissioned.putRecord",
|
|
9903
10689
|
"group": "pub.techne",
|
|
9904
10690
|
"kind": "procedure",
|
|
9905
|
-
"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
|
|
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.",
|
|
9906
10692
|
"doc": ({
|
|
9907
10693
|
"lexicon": 1,
|
|
9908
10694
|
"id": "pub.techne.draft.permissioned.putRecord",
|
|
9909
|
-
"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
|
|
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.",
|
|
9910
10696
|
"defs": {
|
|
9911
10697
|
"main": {
|
|
9912
10698
|
"type": "procedure",
|
|
9913
|
-
"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
|
|
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.",
|
|
9914
10700
|
"input": {
|
|
9915
10701
|
"encoding": "application/json",
|
|
9916
10702
|
"schema": {
|
|
@@ -9991,7 +10777,7 @@ export const catalog = {
|
|
|
9991
10777
|
"space": {
|
|
9992
10778
|
"type": "string",
|
|
9993
10779
|
"format": "at-uri",
|
|
9994
|
-
"description": "The space the record counts in now. Absent when it counts in none (the space's write policy does not admit the writer
|
|
10780
|
+
"description": "The space the record counts in now. Absent when it counts in none (the space's write policy does not admit the writer)."
|
|
9995
10781
|
}
|
|
9996
10782
|
}
|
|
9997
10783
|
}
|
|
@@ -10003,7 +10789,7 @@ export const catalog = {
|
|
|
10003
10789
|
},
|
|
10004
10790
|
{
|
|
10005
10791
|
"name": "Forbidden",
|
|
10006
|
-
"description": "HTTP 403. repo is not the caller's own (or a collective's or circle's the caller may write as, see the description); or the call's `space:` scopes do not cover the write; or the write replaces a record already written for an app's space (pub.techne.draft.space.private)
|
|
10792
|
+
"description": "HTTP 403. repo is not the caller's own (or a collective's or circle's the caller may write as, see the description); or the call's `space:` scopes do not cover the write; or the write replaces a record already written for an app's space (pub.techne.draft.space.private) under `space:` scopes that do not cover a put there. A first write is never refused by its space's policy (only by the token's `space:` scopes). Nothing is written."
|
|
10007
10793
|
},
|
|
10008
10794
|
{
|
|
10009
10795
|
"name": "LastManager",
|
|
@@ -10047,15 +10833,15 @@ export const catalog = {
|
|
|
10047
10833
|
"name": "draft.permissioned.putRecords",
|
|
10048
10834
|
"group": "pub.techne",
|
|
10049
10835
|
"kind": "procedure",
|
|
10050
|
-
"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
|
|
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.",
|
|
10051
10837
|
"doc": ({
|
|
10052
10838
|
"lexicon": 1,
|
|
10053
10839
|
"id": "pub.techne.draft.permissioned.putRecords",
|
|
10054
|
-
"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
|
|
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.",
|
|
10055
10841
|
"defs": {
|
|
10056
10842
|
"main": {
|
|
10057
10843
|
"type": "procedure",
|
|
10058
|
-
"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
|
|
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.",
|
|
10059
10845
|
"input": {
|
|
10060
10846
|
"encoding": "application/json",
|
|
10061
10847
|
"schema": {
|
|
@@ -10217,7 +11003,7 @@ export const catalog = {
|
|
|
10217
11003
|
"properties": {
|
|
10218
11004
|
"error": {
|
|
10219
11005
|
"type": "string",
|
|
10220
|
-
"description": "InvalidRequest (malformed, a body that fails its collection's published lexicon, or a record over 2 MiB, more than a putRecord body may be), InvalidSwap (swapCid did not match the current version), Conflict (the same key holds a public record in the caller's repo, or a concurrent write replaced this version before it was recorded), IdentityConflict (the write would change a contact's identity, which writing again never fixes; see putRecord), DuplicatePhone (a contact write introduces a number another of the caller's active contacts carries; see putRecord), RateLimitExceeded (a contact write that binds a number to an account found the caller's phone lookups spent; retry it in a minute) or Forbidden (the call's `space:` scopes do not cover the write, or it replaces a record already written for an app's space
|
|
11006
|
+
"description": "InvalidRequest (malformed, a body that fails its collection's published lexicon, or a record over 2 MiB, more than a putRecord body may be), InvalidSwap (swapCid did not match the current version), Conflict (the same key holds a public record in the caller's repo, or a concurrent write replaced this version before it was recorded), IdentityConflict (the write would change a contact's identity, which writing again never fixes; see putRecord), DuplicatePhone (a contact write introduces a number another of the caller's active contacts carries; see putRecord), RateLimitExceeded (a contact write that binds a number to an account found the caller's phone lookups spent; retry it in a minute) or Forbidden (the call's `space:` scopes do not cover the write, or it replaces a record already written for an app's space under `space:` scopes that do not cover it; see putRecord).",
|
|
10221
11007
|
"knownValues": [
|
|
10222
11008
|
"InvalidRequest",
|
|
10223
11009
|
"InvalidSwap",
|
|
@@ -15345,6 +16131,77 @@ export const catalog = {
|
|
|
15345
16131
|
}
|
|
15346
16132
|
]
|
|
15347
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
|
+
},
|
|
15348
16205
|
{
|
|
15349
16206
|
"nsid": "pub.techne.draft.subjectPrefs",
|
|
15350
16207
|
"name": "draft.subjectPrefs",
|
|
@@ -16833,7 +17690,7 @@ export const catalog = {
|
|
|
16833
17690
|
"name": "App private space",
|
|
16834
17691
|
"kind": "space",
|
|
16835
17692
|
"key": "any",
|
|
16836
|
-
"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
|
|
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}.",
|
|
16837
17694
|
"collections": [],
|
|
16838
17695
|
"policy": {
|
|
16839
17696
|
"read": {
|
|
@@ -16852,7 +17709,7 @@ export const catalog = {
|
|
|
16852
17709
|
"defs": {
|
|
16853
17710
|
"main": {
|
|
16854
17711
|
"type": "space",
|
|
16855
|
-
"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
|
|
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}.",
|
|
16856
17713
|
"key": "any",
|
|
16857
17714
|
"name": "App private space",
|
|
16858
17715
|
"collections": []
|
|
@@ -16860,14 +17717,14 @@ export const catalog = {
|
|
|
16860
17717
|
}
|
|
16861
17718
|
}),
|
|
16862
17719
|
"policyNsid": "pub.techne.draft.space.private.policy",
|
|
16863
|
-
"policyDescription": "Access policy for pub.techne.draft.space.private: owner only, all capabilities. Which
|
|
17720
|
+
"policyDescription": "Access policy for pub.techne.draft.space.private: owner only, all capabilities. Which of the owner's apps reach an instance follows from the call's `space:` scopes (a caller with none reaches every one), not from this policy.",
|
|
16864
17721
|
"policyDoc": ({
|
|
16865
17722
|
"lexicon": 1,
|
|
16866
17723
|
"id": "pub.techne.draft.space.private.policy",
|
|
16867
17724
|
"defs": {
|
|
16868
17725
|
"main": {
|
|
16869
17726
|
"type": "spacePolicy",
|
|
16870
|
-
"description": "Access policy for pub.techne.draft.space.private: owner only, all capabilities. Which
|
|
17727
|
+
"description": "Access policy for pub.techne.draft.space.private: owner only, all capabilities. Which of the owner's apps reach an instance follows from the call's `space:` scopes (a caller with none reaches every one), not from this policy.",
|
|
16871
17728
|
"policy": {
|
|
16872
17729
|
"read": {
|
|
16873
17730
|
"$type": "pub.techne.draft.policy#authorityOnly"
|
|
@@ -17268,7 +18125,7 @@ export const catalog = {
|
|
|
17268
18125
|
},
|
|
17269
18126
|
"placement": {
|
|
17270
18127
|
"nsid": "pub.techne.draft.placement",
|
|
17271
|
-
"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
|
|
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.",
|
|
17272
18129
|
"public": [
|
|
17273
18130
|
"pub.techne.draft.appConfig",
|
|
17274
18131
|
"pub.techne.draft.approval",
|
|
@@ -17282,6 +18139,9 @@ export const catalog = {
|
|
|
17282
18139
|
"pub.techne.draft.heldAt",
|
|
17283
18140
|
"pub.techne.draft.operator",
|
|
17284
18141
|
"pub.techne.draft.org",
|
|
18142
|
+
"pub.techne.draft.orgAtPlace",
|
|
18143
|
+
"pub.techne.draft.financials",
|
|
18144
|
+
"pub.techne.draft.statement",
|
|
17285
18145
|
"pub.techne.draft.profile",
|
|
17286
18146
|
"pub.techne.draft.assessment",
|
|
17287
18147
|
"pub.techne.draft.placeResearch",
|
|
@@ -17314,7 +18174,8 @@ export const catalog = {
|
|
|
17314
18174
|
"pub.techne.draft.actor.profile",
|
|
17315
18175
|
"pub.techne.draft.collective",
|
|
17316
18176
|
"community.lexicon.calendar.event",
|
|
17317
|
-
"community.lexicon.calendar.rsvp"
|
|
18177
|
+
"community.lexicon.calendar.rsvp",
|
|
18178
|
+
"org.hypercerts.funding.receipt"
|
|
17318
18179
|
],
|
|
17319
18180
|
"unbuilt": [
|
|
17320
18181
|
{
|
|
@@ -17366,7 +18227,7 @@ export const catalog = {
|
|
|
17366
18227
|
"doc": ({
|
|
17367
18228
|
"lexicon": 1,
|
|
17368
18229
|
"id": "pub.techne.draft.placement",
|
|
17369
|
-
"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
|
|
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.",
|
|
17370
18231
|
"defs": {
|
|
17371
18232
|
"main": {
|
|
17372
18233
|
"type": "placement",
|
|
@@ -17383,6 +18244,9 @@ export const catalog = {
|
|
|
17383
18244
|
"pub.techne.draft.heldAt",
|
|
17384
18245
|
"pub.techne.draft.operator",
|
|
17385
18246
|
"pub.techne.draft.org",
|
|
18247
|
+
"pub.techne.draft.orgAtPlace",
|
|
18248
|
+
"pub.techne.draft.financials",
|
|
18249
|
+
"pub.techne.draft.statement",
|
|
17386
18250
|
"pub.techne.draft.profile",
|
|
17387
18251
|
"pub.techne.draft.assessment",
|
|
17388
18252
|
"pub.techne.draft.placeResearch",
|
|
@@ -17415,7 +18279,8 @@ export const catalog = {
|
|
|
17415
18279
|
"pub.techne.draft.actor.profile",
|
|
17416
18280
|
"pub.techne.draft.collective",
|
|
17417
18281
|
"community.lexicon.calendar.event",
|
|
17418
|
-
"community.lexicon.calendar.rsvp"
|
|
18282
|
+
"community.lexicon.calendar.rsvp",
|
|
18283
|
+
"org.hypercerts.funding.receipt"
|
|
17419
18284
|
],
|
|
17420
18285
|
"open": [
|
|
17421
18286
|
"pub.techne.draft.space.private"
|
|
@@ -18521,6 +19386,108 @@ export const catalog = {
|
|
|
18521
19386
|
}
|
|
18522
19387
|
})
|
|
18523
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
|
+
},
|
|
18524
19491
|
{
|
|
18525
19492
|
"nsid": "social.scenius.approveAppAccess",
|
|
18526
19493
|
"name": "approveAppAccess",
|
|
@@ -21970,7 +22937,7 @@ export const catalog = {
|
|
|
21970
22937
|
"group": "social.scenius",
|
|
21971
22938
|
"kind": "procedure",
|
|
21972
22939
|
"class": "write",
|
|
21973
|
-
"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`.",
|
|
21974
22941
|
"input": [
|
|
21975
22942
|
{
|
|
21976
22943
|
"name": "phone",
|
|
@@ -21989,6 +22956,11 @@ export const catalog = {
|
|
|
21989
22956
|
"type": "→ #device",
|
|
21990
22957
|
"required": false,
|
|
21991
22958
|
"description": "Optional device metadata for the minted session row."
|
|
22959
|
+
},
|
|
22960
|
+
{
|
|
22961
|
+
"name": "ownSession",
|
|
22962
|
+
"type": "→ #ownFinish",
|
|
22963
|
+
"required": false
|
|
21992
22964
|
}
|
|
21993
22965
|
],
|
|
21994
22966
|
"output": [
|
|
@@ -22020,6 +22992,11 @@ export const catalog = {
|
|
|
22020
22992
|
"type": "boolean",
|
|
22021
22993
|
"required": false,
|
|
22022
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
|
|
22023
23000
|
}
|
|
22024
23001
|
],
|
|
22025
23002
|
"doc": ({
|
|
@@ -22028,7 +23005,7 @@ export const catalog = {
|
|
|
22028
23005
|
"defs": {
|
|
22029
23006
|
"main": {
|
|
22030
23007
|
"type": "procedure",
|
|
22031
|
-
"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`.",
|
|
22032
23009
|
"input": {
|
|
22033
23010
|
"encoding": "application/json",
|
|
22034
23011
|
"schema": {
|
|
@@ -22050,6 +23027,10 @@ export const catalog = {
|
|
|
22050
23027
|
"type": "ref",
|
|
22051
23028
|
"ref": "#device",
|
|
22052
23029
|
"description": "Optional device metadata for the minted session row."
|
|
23030
|
+
},
|
|
23031
|
+
"ownSession": {
|
|
23032
|
+
"type": "ref",
|
|
23033
|
+
"ref": "#ownFinish"
|
|
22053
23034
|
}
|
|
22054
23035
|
}
|
|
22055
23036
|
}
|
|
@@ -22078,6 +23059,10 @@ export const catalog = {
|
|
|
22078
23059
|
"created": {
|
|
22079
23060
|
"type": "boolean",
|
|
22080
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"
|
|
22081
23066
|
}
|
|
22082
23067
|
}
|
|
22083
23068
|
}
|
|
@@ -22098,6 +23083,22 @@ export const catalog = {
|
|
|
22098
23083
|
{
|
|
22099
23084
|
"name": "MethodFrozen",
|
|
22100
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."
|
|
22101
23102
|
}
|
|
22102
23103
|
]
|
|
22103
23104
|
},
|
|
@@ -22111,6 +23112,77 @@ export const catalog = {
|
|
|
22111
23112
|
"type": "string"
|
|
22112
23113
|
}
|
|
22113
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
|
+
}
|
|
22114
23186
|
}
|
|
22115
23187
|
}
|
|
22116
23188
|
})
|
|
@@ -26498,7 +27570,7 @@ export const catalog = {
|
|
|
26498
27570
|
"group": "social.scenius",
|
|
26499
27571
|
"kind": "query",
|
|
26500
27572
|
"class": "read",
|
|
26501
|
-
"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).",
|
|
26502
27574
|
"output": [
|
|
26503
27575
|
{
|
|
26504
27576
|
"name": "registered",
|
|
@@ -26519,7 +27591,7 @@ export const catalog = {
|
|
|
26519
27591
|
"defs": {
|
|
26520
27592
|
"main": {
|
|
26521
27593
|
"type": "query",
|
|
26522
|
-
"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).",
|
|
26523
27595
|
"output": {
|
|
26524
27596
|
"encoding": "application/json",
|
|
26525
27597
|
"schema": {
|
|
@@ -27777,7 +28849,7 @@ export const catalog = {
|
|
|
27777
28849
|
"group": "social.scenius",
|
|
27778
28850
|
"kind": "query",
|
|
27779
28851
|
"class": "read",
|
|
27780
|
-
"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).",
|
|
27781
28853
|
"output": [
|
|
27782
28854
|
{
|
|
27783
28855
|
"name": "devices",
|
|
@@ -27791,7 +28863,7 @@ export const catalog = {
|
|
|
27791
28863
|
"defs": {
|
|
27792
28864
|
"main": {
|
|
27793
28865
|
"type": "query",
|
|
27794
|
-
"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).",
|
|
27795
28867
|
"output": {
|
|
27796
28868
|
"encoding": "application/json",
|
|
27797
28869
|
"schema": {
|
|
@@ -29523,13 +30595,152 @@ export const catalog = {
|
|
|
29523
30595
|
}
|
|
29524
30596
|
})
|
|
29525
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
|
+
},
|
|
29526
30737
|
{
|
|
29527
30738
|
"nsid": "social.scenius.registerDevicePush",
|
|
29528
30739
|
"name": "registerDevicePush",
|
|
29529
30740
|
"group": "social.scenius",
|
|
29530
30741
|
"kind": "procedure",
|
|
29531
30742
|
"class": "write",
|
|
29532
|
-
"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).",
|
|
29533
30744
|
"input": [
|
|
29534
30745
|
{
|
|
29535
30746
|
"name": "expoPushToken",
|
|
@@ -29558,7 +30769,7 @@ export const catalog = {
|
|
|
29558
30769
|
"defs": {
|
|
29559
30770
|
"main": {
|
|
29560
30771
|
"type": "procedure",
|
|
29561
|
-
"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).",
|
|
29562
30773
|
"input": {
|
|
29563
30774
|
"encoding": "application/json",
|
|
29564
30775
|
"schema": {
|
|
@@ -30727,6 +31938,100 @@ export const catalog = {
|
|
|
30727
31938
|
}
|
|
30728
31939
|
})
|
|
30729
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
|
+
},
|
|
30730
32035
|
{
|
|
30731
32036
|
"nsid": "social.scenius.rewriteCustodialNsids",
|
|
30732
32037
|
"name": "rewriteCustodialNsids",
|
|
@@ -31782,7 +33087,7 @@ export const catalog = {
|
|
|
31782
33087
|
"group": "social.scenius",
|
|
31783
33088
|
"kind": "procedure",
|
|
31784
33089
|
"class": "write",
|
|
31785
|
-
"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).",
|
|
31786
33091
|
"input": [
|
|
31787
33092
|
{
|
|
31788
33093
|
"name": "enabled",
|
|
@@ -31805,7 +33110,7 @@ export const catalog = {
|
|
|
31805
33110
|
"defs": {
|
|
31806
33111
|
"main": {
|
|
31807
33112
|
"type": "procedure",
|
|
31808
|
-
"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).",
|
|
31809
33114
|
"input": {
|
|
31810
33115
|
"encoding": "application/json",
|
|
31811
33116
|
"schema": {
|
|
@@ -31937,7 +33242,7 @@ export const catalog = {
|
|
|
31937
33242
|
"group": "social.scenius",
|
|
31938
33243
|
"kind": "procedure",
|
|
31939
33244
|
"class": "write",
|
|
31940
|
-
"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).",
|
|
31941
33246
|
"input": [
|
|
31942
33247
|
{
|
|
31943
33248
|
"name": "deviceId",
|
|
@@ -31966,7 +33271,7 @@ export const catalog = {
|
|
|
31966
33271
|
"defs": {
|
|
31967
33272
|
"main": {
|
|
31968
33273
|
"type": "procedure",
|
|
31969
|
-
"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).",
|
|
31970
33275
|
"input": {
|
|
31971
33276
|
"encoding": "application/json",
|
|
31972
33277
|
"schema": {
|
|
@@ -32055,13 +33360,18 @@ export const catalog = {
|
|
|
32055
33360
|
"group": "social.scenius",
|
|
32056
33361
|
"kind": "procedure",
|
|
32057
33362
|
"class": "write",
|
|
32058
|
-
"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.",
|
|
32059
33364
|
"input": [
|
|
32060
33365
|
{
|
|
32061
33366
|
"name": "phone",
|
|
32062
33367
|
"type": "string",
|
|
32063
33368
|
"required": true,
|
|
32064
33369
|
"description": "E.164."
|
|
33370
|
+
},
|
|
33371
|
+
{
|
|
33372
|
+
"name": "ownSession",
|
|
33373
|
+
"type": "→ #ownStart",
|
|
33374
|
+
"required": false
|
|
32065
33375
|
}
|
|
32066
33376
|
],
|
|
32067
33377
|
"output": [
|
|
@@ -32069,6 +33379,11 @@ export const catalog = {
|
|
|
32069
33379
|
"name": "ok",
|
|
32070
33380
|
"type": "boolean",
|
|
32071
33381
|
"required": true
|
|
33382
|
+
},
|
|
33383
|
+
{
|
|
33384
|
+
"name": "ownSession",
|
|
33385
|
+
"type": "→ #ownStartAnswer",
|
|
33386
|
+
"required": false
|
|
32072
33387
|
}
|
|
32073
33388
|
],
|
|
32074
33389
|
"doc": ({
|
|
@@ -32077,7 +33392,7 @@ export const catalog = {
|
|
|
32077
33392
|
"defs": {
|
|
32078
33393
|
"main": {
|
|
32079
33394
|
"type": "procedure",
|
|
32080
|
-
"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.",
|
|
32081
33396
|
"input": {
|
|
32082
33397
|
"encoding": "application/json",
|
|
32083
33398
|
"schema": {
|
|
@@ -32089,6 +33404,10 @@ export const catalog = {
|
|
|
32089
33404
|
"phone": {
|
|
32090
33405
|
"type": "string",
|
|
32091
33406
|
"description": "E.164."
|
|
33407
|
+
},
|
|
33408
|
+
"ownSession": {
|
|
33409
|
+
"type": "ref",
|
|
33410
|
+
"ref": "#ownStart"
|
|
32092
33411
|
}
|
|
32093
33412
|
}
|
|
32094
33413
|
}
|
|
@@ -32103,6 +33422,10 @@ export const catalog = {
|
|
|
32103
33422
|
"properties": {
|
|
32104
33423
|
"ok": {
|
|
32105
33424
|
"type": "boolean"
|
|
33425
|
+
},
|
|
33426
|
+
"ownSession": {
|
|
33427
|
+
"type": "ref",
|
|
33428
|
+
"ref": "#ownStartAnswer"
|
|
32106
33429
|
}
|
|
32107
33430
|
}
|
|
32108
33431
|
}
|
|
@@ -32114,8 +33437,55 @@ export const catalog = {
|
|
|
32114
33437
|
{
|
|
32115
33438
|
"name": "RateLimitExceeded",
|
|
32116
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."
|
|
32117
33448
|
}
|
|
32118
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
|
+
}
|
|
32119
33489
|
}
|
|
32120
33490
|
}
|
|
32121
33491
|
})
|
|
@@ -32522,7 +33892,7 @@ export const catalog = {
|
|
|
32522
33892
|
"group": "social.scenius",
|
|
32523
33893
|
"kind": "procedure",
|
|
32524
33894
|
"class": "write",
|
|
32525
|
-
"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).",
|
|
32526
33896
|
"output": [
|
|
32527
33897
|
{
|
|
32528
33898
|
"name": "ok",
|
|
@@ -32537,7 +33907,7 @@ export const catalog = {
|
|
|
32537
33907
|
"defs": {
|
|
32538
33908
|
"main": {
|
|
32539
33909
|
"type": "procedure",
|
|
32540
|
-
"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).",
|
|
32541
33911
|
"output": {
|
|
32542
33912
|
"encoding": "application/json",
|
|
32543
33913
|
"schema": {
|
|
@@ -33121,9 +34491,9 @@ export const catalog = {
|
|
|
33121
34491
|
}
|
|
33122
34492
|
],
|
|
33123
34493
|
"counts": {
|
|
33124
|
-
"records":
|
|
34494
|
+
"records": 159,
|
|
33125
34495
|
"spaces": 13,
|
|
33126
34496
|
"predicates": 9,
|
|
33127
|
-
"methods":
|
|
34497
|
+
"methods": 130
|
|
33128
34498
|
}
|
|
33129
34499
|
};
|