techne-sdk 0.6.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +48 -5
- package/README.md +51 -1
- package/dist/auth/index.d.ts +2 -2
- package/dist/auth/index.js +5 -3
- 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 +1394 -130
- package/dist/generated/index.d.ts +129 -0
- package/dist/generated/index.js +170 -0
- package/dist/generated/lexicons.d.ts +954 -134
- package/dist/generated/lexicons.js +511 -61
- package/dist/generated/nsid.d.ts +16 -1
- package/dist/generated/nsid.js +16 -1
- package/dist/generated/nsid.json +16 -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/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/statement.d.ts +19 -0
- package/dist/generated/types/pub/techne/draft/statement.js +12 -0
- package/dist/session/dpop.d.ts +49 -0
- package/dist/session/dpop.js +105 -0
- package/dist/session/index.d.ts +22 -0
- package/dist/session/index.js +22 -0
- package/dist/session/own-session.d.ts +169 -0
- package/dist/session/own-session.js +364 -0
- package/dist/session/phone.d.ts +79 -0
- package/dist/session/phone.js +179 -0
- package/dist/session/relay.d.ts +69 -0
- package/dist/session/relay.js +120 -0
- package/dist/wasm/techne-wasm.gen.js +1 -1
- package/dist/wasm/techne-wasm2js.gen.js +23340 -23255
- package/package.json +10 -3
|
@@ -81,6 +81,89 @@ export const schemaDict = {
|
|
|
81
81
|
},
|
|
82
82
|
},
|
|
83
83
|
},
|
|
84
|
+
AppCertifiedDefs: {
|
|
85
|
+
lexicon: 1,
|
|
86
|
+
id: 'app.certified.defs',
|
|
87
|
+
description: 'Common type definitions used across certified protocols.',
|
|
88
|
+
defs: {
|
|
89
|
+
did: {
|
|
90
|
+
type: 'object',
|
|
91
|
+
description: 'A Decentralized Identifier (DID) string.',
|
|
92
|
+
required: ['did'],
|
|
93
|
+
properties: {
|
|
94
|
+
did: {
|
|
95
|
+
type: 'string',
|
|
96
|
+
format: 'did',
|
|
97
|
+
description: 'The DID string value.',
|
|
98
|
+
maxLength: 256,
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
recordSubject: {
|
|
103
|
+
type: 'object',
|
|
104
|
+
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.",
|
|
105
|
+
required: ['uri'],
|
|
106
|
+
properties: {
|
|
107
|
+
uri: {
|
|
108
|
+
type: 'string',
|
|
109
|
+
format: 'at-uri',
|
|
110
|
+
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.',
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
AppCertifiedSignatureDefs: {
|
|
117
|
+
lexicon: 1,
|
|
118
|
+
id: 'app.certified.signature.defs',
|
|
119
|
+
description: "Common type definitions for cryptographic signatures attached to records, per the ATProtocol Attestation Specification. Each signature's `$type` says what it attests.",
|
|
120
|
+
defs: {
|
|
121
|
+
list: {
|
|
122
|
+
type: 'array',
|
|
123
|
+
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.",
|
|
124
|
+
items: {
|
|
125
|
+
type: 'union',
|
|
126
|
+
refs: [
|
|
127
|
+
'lex:app.certified.signature.defs#inline',
|
|
128
|
+
'lex:app.certified.signature.defs#createdVia',
|
|
129
|
+
'lex:com.atproto.repo.strongRef',
|
|
130
|
+
],
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
inline: {
|
|
134
|
+
type: 'object',
|
|
135
|
+
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`.",
|
|
136
|
+
required: ['signature', 'key'],
|
|
137
|
+
properties: {
|
|
138
|
+
signature: {
|
|
139
|
+
type: 'bytes',
|
|
140
|
+
description: 'ECDSA signature bytes (raw r,s) over the 36-byte CID of the record. Low-S variant per BIP-0062 is mandatory.',
|
|
141
|
+
},
|
|
142
|
+
key: {
|
|
143
|
+
type: 'string',
|
|
144
|
+
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.",
|
|
145
|
+
maxLength: 512,
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
createdVia: {
|
|
150
|
+
type: 'object',
|
|
151
|
+
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.',
|
|
152
|
+
required: ['signature', 'key'],
|
|
153
|
+
properties: {
|
|
154
|
+
signature: {
|
|
155
|
+
type: 'bytes',
|
|
156
|
+
description: 'ECDSA signature bytes (raw r,s) over the 36-byte CID of the record. Low-S variant per BIP-0062 is mandatory.',
|
|
157
|
+
},
|
|
158
|
+
key: {
|
|
159
|
+
type: 'string',
|
|
160
|
+
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.",
|
|
161
|
+
maxLength: 512,
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
},
|
|
84
167
|
ComAtprotoAdminDefs: {
|
|
85
168
|
lexicon: 1,
|
|
86
169
|
id: 'com.atproto.admin.defs',
|
|
@@ -1001,6 +1084,138 @@ export const schemaDict = {
|
|
|
1001
1084
|
},
|
|
1002
1085
|
},
|
|
1003
1086
|
},
|
|
1087
|
+
OrgHypercertsFundingReceipt: {
|
|
1088
|
+
lexicon: 1,
|
|
1089
|
+
id: 'org.hypercerts.funding.receipt',
|
|
1090
|
+
defs: {
|
|
1091
|
+
main: {
|
|
1092
|
+
type: 'record',
|
|
1093
|
+
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.',
|
|
1094
|
+
key: 'tid',
|
|
1095
|
+
record: {
|
|
1096
|
+
type: 'object',
|
|
1097
|
+
required: ['to', 'createdAt'],
|
|
1098
|
+
properties: {
|
|
1099
|
+
from: {
|
|
1100
|
+
type: 'union',
|
|
1101
|
+
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.',
|
|
1102
|
+
refs: [
|
|
1103
|
+
'lex:org.hypercerts.funding.receipt#text',
|
|
1104
|
+
'lex:app.certified.defs#did',
|
|
1105
|
+
'lex:com.atproto.repo.strongRef',
|
|
1106
|
+
],
|
|
1107
|
+
},
|
|
1108
|
+
to: {
|
|
1109
|
+
type: 'union',
|
|
1110
|
+
description: 'The recipient of the funds (a free-text string, an account DID, or a strong reference to a record).',
|
|
1111
|
+
refs: [
|
|
1112
|
+
'lex:org.hypercerts.funding.receipt#text',
|
|
1113
|
+
'lex:app.certified.defs#did',
|
|
1114
|
+
'lex:com.atproto.repo.strongRef',
|
|
1115
|
+
],
|
|
1116
|
+
},
|
|
1117
|
+
via: {
|
|
1118
|
+
type: 'union',
|
|
1119
|
+
description: 'Optional intermediary that facilitated or processed the payment (funding platform, payment servicer, broker).',
|
|
1120
|
+
refs: [
|
|
1121
|
+
'lex:org.hypercerts.funding.receipt#text',
|
|
1122
|
+
'lex:app.certified.defs#did',
|
|
1123
|
+
'lex:com.atproto.repo.strongRef',
|
|
1124
|
+
],
|
|
1125
|
+
},
|
|
1126
|
+
type: {
|
|
1127
|
+
type: 'string',
|
|
1128
|
+
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.',
|
|
1129
|
+
maxLength: 50,
|
|
1130
|
+
knownValues: ['donation', 'match', 'grant'],
|
|
1131
|
+
},
|
|
1132
|
+
amount: {
|
|
1133
|
+
type: 'string',
|
|
1134
|
+
description: "Gross amount the sender paid, before fees, as a numeric string (e.g. '1000.50'). Omit if unknown, and set netAmount instead.",
|
|
1135
|
+
maxLength: 50,
|
|
1136
|
+
},
|
|
1137
|
+
currency: {
|
|
1138
|
+
type: 'string',
|
|
1139
|
+
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.',
|
|
1140
|
+
maxLength: 10,
|
|
1141
|
+
},
|
|
1142
|
+
netAmount: {
|
|
1143
|
+
type: 'string',
|
|
1144
|
+
description: 'What the recipient received after fees and conversion, as a numeric string in netCurrency.',
|
|
1145
|
+
maxLength: 50,
|
|
1146
|
+
},
|
|
1147
|
+
netCurrency: {
|
|
1148
|
+
type: 'string',
|
|
1149
|
+
description: 'Currency of netAmount: an ISO 4217 code for fiat, a token ticker for digital assets. Set it whenever netAmount is set.',
|
|
1150
|
+
maxLength: 10,
|
|
1151
|
+
},
|
|
1152
|
+
paymentRail: {
|
|
1153
|
+
type: 'string',
|
|
1154
|
+
description: "How the sender paid. Use 'payment_processor' only when the underlying method is unknown.",
|
|
1155
|
+
maxLength: 50,
|
|
1156
|
+
knownValues: [
|
|
1157
|
+
'onchain',
|
|
1158
|
+
'bank_transfer',
|
|
1159
|
+
'card',
|
|
1160
|
+
'direct_debit',
|
|
1161
|
+
'mobile_money',
|
|
1162
|
+
'payment_processor',
|
|
1163
|
+
'cash',
|
|
1164
|
+
'check',
|
|
1165
|
+
],
|
|
1166
|
+
},
|
|
1167
|
+
paymentNetwork: {
|
|
1168
|
+
type: 'string',
|
|
1169
|
+
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.",
|
|
1170
|
+
maxLength: 50,
|
|
1171
|
+
},
|
|
1172
|
+
transactionId: {
|
|
1173
|
+
type: 'string',
|
|
1174
|
+
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.",
|
|
1175
|
+
maxLength: 256,
|
|
1176
|
+
},
|
|
1177
|
+
for: {
|
|
1178
|
+
type: 'ref',
|
|
1179
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
1180
|
+
description: 'Optional strong reference to the activity, project, or organization this funding relates to.',
|
|
1181
|
+
},
|
|
1182
|
+
notes: {
|
|
1183
|
+
type: 'string',
|
|
1184
|
+
description: 'Optional notes or additional context for this funding receipt.',
|
|
1185
|
+
maxLength: 500,
|
|
1186
|
+
},
|
|
1187
|
+
occurredAt: {
|
|
1188
|
+
type: 'string',
|
|
1189
|
+
format: 'datetime',
|
|
1190
|
+
description: 'Timestamp when the payment occurred.',
|
|
1191
|
+
},
|
|
1192
|
+
createdAt: {
|
|
1193
|
+
type: 'string',
|
|
1194
|
+
format: 'datetime',
|
|
1195
|
+
description: 'Client-declared timestamp when this receipt record was created.',
|
|
1196
|
+
},
|
|
1197
|
+
signatures: {
|
|
1198
|
+
type: 'ref',
|
|
1199
|
+
ref: 'lex:app.certified.signature.defs#list',
|
|
1200
|
+
description: "Optional cryptographic signatures attesting to this record's content.",
|
|
1201
|
+
},
|
|
1202
|
+
},
|
|
1203
|
+
},
|
|
1204
|
+
},
|
|
1205
|
+
text: {
|
|
1206
|
+
type: 'object',
|
|
1207
|
+
description: 'A free-text string value (e.g. a display name, wallet address, or other identifier).',
|
|
1208
|
+
required: ['value'],
|
|
1209
|
+
properties: {
|
|
1210
|
+
value: {
|
|
1211
|
+
type: 'string',
|
|
1212
|
+
description: 'The string value.',
|
|
1213
|
+
maxLength: 2048,
|
|
1214
|
+
},
|
|
1215
|
+
},
|
|
1216
|
+
},
|
|
1217
|
+
},
|
|
1218
|
+
},
|
|
1004
1219
|
PubTechneDraftAccessRule: {
|
|
1005
1220
|
lexicon: 1,
|
|
1006
1221
|
id: 'pub.techne.draft.accessRule',
|
|
@@ -2905,6 +3120,62 @@ export const schemaDict = {
|
|
|
2905
3120
|
},
|
|
2906
3121
|
},
|
|
2907
3122
|
},
|
|
3123
|
+
PubTechneDraftFinancials: {
|
|
3124
|
+
lexicon: 1,
|
|
3125
|
+
id: 'pub.techne.draft.financials',
|
|
3126
|
+
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).",
|
|
3127
|
+
defs: {
|
|
3128
|
+
main: {
|
|
3129
|
+
type: 'record',
|
|
3130
|
+
key: 'any',
|
|
3131
|
+
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.',
|
|
3132
|
+
record: {
|
|
3133
|
+
type: 'object',
|
|
3134
|
+
required: ['subject', 'taxYear', 'createdAt'],
|
|
3135
|
+
properties: {
|
|
3136
|
+
subject: {
|
|
3137
|
+
type: 'ref',
|
|
3138
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
3139
|
+
description: 'The organization the figures are for (a pub.techne.draft.org record).',
|
|
3140
|
+
},
|
|
3141
|
+
taxYear: {
|
|
3142
|
+
type: 'integer',
|
|
3143
|
+
minimum: 1900,
|
|
3144
|
+
maximum: 2200,
|
|
3145
|
+
description: 'The tax year the figures cover, as the filing names it.',
|
|
3146
|
+
},
|
|
3147
|
+
periodEnd: {
|
|
3148
|
+
type: 'string',
|
|
3149
|
+
maxLength: 10,
|
|
3150
|
+
description: 'The last day of the tax year (YYYY-MM-DD) when the filing states it; a fiscal year need not end in December.',
|
|
3151
|
+
},
|
|
3152
|
+
revenue: {
|
|
3153
|
+
type: 'integer',
|
|
3154
|
+
description: 'Total revenue for the year, in whole units of `currency`, as the filing reports it. May be negative.',
|
|
3155
|
+
},
|
|
3156
|
+
expenses: {
|
|
3157
|
+
type: 'integer',
|
|
3158
|
+
description: 'Total expenses for the year, in whole units of `currency`, as the filing reports it. May be negative.',
|
|
3159
|
+
},
|
|
3160
|
+
assets: {
|
|
3161
|
+
type: 'integer',
|
|
3162
|
+
description: 'Total assets at the end of the year, in whole units of `currency`, as the filing reports it. May be negative.',
|
|
3163
|
+
},
|
|
3164
|
+
currency: {
|
|
3165
|
+
type: 'string',
|
|
3166
|
+
maxLength: 3,
|
|
3167
|
+
default: 'USD',
|
|
3168
|
+
description: 'ISO 4217 code of the amounts.',
|
|
3169
|
+
},
|
|
3170
|
+
createdAt: {
|
|
3171
|
+
type: 'string',
|
|
3172
|
+
format: 'datetime',
|
|
3173
|
+
},
|
|
3174
|
+
},
|
|
3175
|
+
},
|
|
3176
|
+
},
|
|
3177
|
+
},
|
|
3178
|
+
},
|
|
2908
3179
|
PubTechneDraftGeo: {
|
|
2909
3180
|
lexicon: 1,
|
|
2910
3181
|
id: 'pub.techne.draft.geo',
|
|
@@ -3338,12 +3609,19 @@ export const schemaDict = {
|
|
|
3338
3609
|
defs: {
|
|
3339
3610
|
main: {
|
|
3340
3611
|
type: 'procedure',
|
|
3341
|
-
description:
|
|
3612
|
+
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.',
|
|
3342
3613
|
input: {
|
|
3343
3614
|
encoding: 'application/json',
|
|
3344
3615
|
schema: {
|
|
3345
3616
|
type: 'object',
|
|
3346
|
-
properties: {
|
|
3617
|
+
properties: {
|
|
3618
|
+
founderMembershipVisibility: {
|
|
3619
|
+
type: 'string',
|
|
3620
|
+
knownValues: ['public', 'members'],
|
|
3621
|
+
default: 'members',
|
|
3622
|
+
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).",
|
|
3623
|
+
},
|
|
3624
|
+
},
|
|
3347
3625
|
},
|
|
3348
3626
|
},
|
|
3349
3627
|
output: {
|
|
@@ -3366,6 +3644,10 @@ export const schemaDict = {
|
|
|
3366
3644
|
},
|
|
3367
3645
|
},
|
|
3368
3646
|
errors: [
|
|
3647
|
+
{
|
|
3648
|
+
name: 'InvalidRequest',
|
|
3649
|
+
description: 'HTTP 400. The input is not JSON, or `founderMembershipVisibility` is neither `public` nor `members`.',
|
|
3650
|
+
},
|
|
3369
3651
|
{
|
|
3370
3652
|
name: 'RateLimitExceeded',
|
|
3371
3653
|
description: 'Too many writes from this DID (HTTP 429).',
|
|
@@ -3498,7 +3780,7 @@ export const schemaDict = {
|
|
|
3498
3780
|
masked: {
|
|
3499
3781
|
type: 'string',
|
|
3500
3782
|
maxLength: 320,
|
|
3501
|
-
description: "The channel with most of it hidden, e.g. `j•••@example.com`,
|
|
3783
|
+
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)`.",
|
|
3502
3784
|
},
|
|
3503
3785
|
value: {
|
|
3504
3786
|
type: 'string',
|
|
@@ -3877,7 +4159,7 @@ export const schemaDict = {
|
|
|
3877
4159
|
defs: {
|
|
3878
4160
|
main: {
|
|
3879
4161
|
type: 'procedure',
|
|
3880
|
-
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
|
|
4162
|
+
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.',
|
|
3881
4163
|
input: {
|
|
3882
4164
|
encoding: 'application/json',
|
|
3883
4165
|
schema: {
|
|
@@ -4439,7 +4721,7 @@ export const schemaDict = {
|
|
|
4439
4721
|
defs: {
|
|
4440
4722
|
main: {
|
|
4441
4723
|
type: 'procedure',
|
|
4442
|
-
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.",
|
|
4724
|
+
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.",
|
|
4443
4725
|
input: {
|
|
4444
4726
|
encoding: 'application/json',
|
|
4445
4727
|
schema: {
|
|
@@ -4976,7 +5258,7 @@ export const schemaDict = {
|
|
|
4976
5258
|
},
|
|
4977
5259
|
signInMethod: {
|
|
4978
5260
|
type: 'object',
|
|
4979
|
-
description: 'One way to sign in, as a page may show it before anyone has signed in:
|
|
5261
|
+
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).',
|
|
4980
5262
|
required: ['id', 'type', 'display'],
|
|
4981
5263
|
properties: {
|
|
4982
5264
|
id: {
|
|
@@ -4989,6 +5271,13 @@ export const schemaDict = {
|
|
|
4989
5271
|
},
|
|
4990
5272
|
display: {
|
|
4991
5273
|
type: 'string',
|
|
5274
|
+
maxLength: 320,
|
|
5275
|
+
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.",
|
|
5276
|
+
},
|
|
5277
|
+
displayDevice: {
|
|
5278
|
+
type: 'string',
|
|
5279
|
+
maxLength: 320,
|
|
5280
|
+
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`.",
|
|
4992
5281
|
},
|
|
4993
5282
|
},
|
|
4994
5283
|
},
|
|
@@ -5570,7 +5859,7 @@ export const schemaDict = {
|
|
|
5570
5859
|
defs: {
|
|
5571
5860
|
main: {
|
|
5572
5861
|
type: 'procedure',
|
|
5573
|
-
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
|
|
5862
|
+
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.",
|
|
5574
5863
|
input: {
|
|
5575
5864
|
encoding: 'application/json',
|
|
5576
5865
|
schema: {
|
|
@@ -5634,7 +5923,7 @@ export const schemaDict = {
|
|
|
5634
5923
|
errors: [
|
|
5635
5924
|
{
|
|
5636
5925
|
name: 'InvalidRequest',
|
|
5637
|
-
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
|
|
5926
|
+
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).",
|
|
5638
5927
|
},
|
|
5639
5928
|
{
|
|
5640
5929
|
name: 'Forbidden',
|
|
@@ -5975,12 +6264,12 @@ export const schemaDict = {
|
|
|
5975
6264
|
PubTechneDraftOrg: {
|
|
5976
6265
|
lexicon: 1,
|
|
5977
6266
|
id: 'pub.techne.draft.org',
|
|
5978
|
-
description: "
|
|
6267
|
+
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`.",
|
|
5979
6268
|
defs: {
|
|
5980
6269
|
main: {
|
|
5981
6270
|
type: 'record',
|
|
5982
6271
|
key: 'any',
|
|
5983
|
-
description: '`"key": "any"
|
|
6272
|
+
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.',
|
|
5984
6273
|
record: {
|
|
5985
6274
|
type: 'object',
|
|
5986
6275
|
required: ['name', 'createdAt'],
|
|
@@ -5989,61 +6278,68 @@ export const schemaDict = {
|
|
|
5989
6278
|
type: 'string',
|
|
5990
6279
|
maxLength: 640,
|
|
5991
6280
|
maxGraphemes: 128,
|
|
5992
|
-
description: "The organization's
|
|
6281
|
+
description: "The organization's name as its registry records it.",
|
|
5993
6282
|
},
|
|
5994
|
-
|
|
5995
|
-
type: '
|
|
5996
|
-
maxLength:
|
|
5997
|
-
description: '
|
|
6283
|
+
identifiers: {
|
|
6284
|
+
type: 'array',
|
|
6285
|
+
maxLength: 16,
|
|
6286
|
+
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.',
|
|
6287
|
+
items: {
|
|
6288
|
+
type: 'ref',
|
|
6289
|
+
ref: 'lex:pub.techne.draft.org#schemeValue',
|
|
6290
|
+
},
|
|
5998
6291
|
},
|
|
5999
|
-
|
|
6000
|
-
type: '
|
|
6001
|
-
maxLength:
|
|
6002
|
-
description: '
|
|
6292
|
+
category: {
|
|
6293
|
+
type: 'array',
|
|
6294
|
+
maxLength: 16,
|
|
6295
|
+
description: 'Classification codes per scheme: `irs-ntee`, `irs-subsection`, `co-sos-entity-type`.',
|
|
6296
|
+
items: {
|
|
6297
|
+
type: 'ref',
|
|
6298
|
+
ref: 'lex:pub.techne.draft.org#schemeValue',
|
|
6299
|
+
},
|
|
6003
6300
|
},
|
|
6004
|
-
|
|
6005
|
-
type: '
|
|
6006
|
-
maxLength:
|
|
6007
|
-
description:
|
|
6301
|
+
status: {
|
|
6302
|
+
type: 'array',
|
|
6303
|
+
maxLength: 16,
|
|
6304
|
+
description: 'Registry standing per scheme (`irs`, `co-sos`). A closed organization keeps its record with its status; it is never deleted.',
|
|
6305
|
+
items: {
|
|
6306
|
+
type: 'ref',
|
|
6307
|
+
ref: 'lex:pub.techne.draft.org#schemeValue',
|
|
6308
|
+
},
|
|
6008
6309
|
},
|
|
6009
|
-
|
|
6310
|
+
founded: {
|
|
6010
6311
|
type: 'string',
|
|
6011
|
-
maxLength:
|
|
6012
|
-
description:
|
|
6312
|
+
maxLength: 10,
|
|
6313
|
+
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).',
|
|
6013
6314
|
},
|
|
6014
|
-
|
|
6315
|
+
description: {
|
|
6015
6316
|
type: 'string',
|
|
6016
|
-
|
|
6317
|
+
maxLength: 30000,
|
|
6318
|
+
maxGraphemes: 10000,
|
|
6319
|
+
description: 'Prose about the organization: for a nonprofit, the mission and program text it filed with the IRS (Form 990). Public.',
|
|
6017
6320
|
},
|
|
6018
|
-
|
|
6321
|
+
url: {
|
|
6019
6322
|
type: 'string',
|
|
6020
|
-
|
|
6021
|
-
|
|
6323
|
+
format: 'uri',
|
|
6324
|
+
maxLength: 300,
|
|
6325
|
+
description: "The organization's own website, absolute http(s).",
|
|
6022
6326
|
},
|
|
6023
|
-
|
|
6327
|
+
phone: {
|
|
6024
6328
|
type: 'string',
|
|
6025
|
-
maxLength:
|
|
6026
|
-
description: '
|
|
6027
|
-
},
|
|
6028
|
-
address: {
|
|
6029
|
-
type: 'ref',
|
|
6030
|
-
ref: 'lex:community.lexicon.location.address',
|
|
6031
|
-
description: 'Principal address. From the almanac `address` attribute.',
|
|
6032
|
-
},
|
|
6033
|
-
status: {
|
|
6034
|
-
type: 'array',
|
|
6035
|
-
description: 'Registry status per scheme (co-sos, irs). Zero or more; a co-sos and an irs status can coexist for one entity.',
|
|
6036
|
-
items: {
|
|
6037
|
-
type: 'ref',
|
|
6038
|
-
ref: 'lex:pub.techne.draft.org#schemeTag',
|
|
6039
|
-
},
|
|
6329
|
+
maxLength: 32,
|
|
6330
|
+
description: 'Public phone number, E.164.',
|
|
6040
6331
|
},
|
|
6041
|
-
|
|
6332
|
+
locations: {
|
|
6042
6333
|
type: 'array',
|
|
6043
|
-
|
|
6334
|
+
maxLength: 16,
|
|
6335
|
+
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.",
|
|
6044
6336
|
items: {
|
|
6045
|
-
type: '
|
|
6046
|
-
|
|
6337
|
+
type: 'union',
|
|
6338
|
+
refs: [
|
|
6339
|
+
'lex:community.lexicon.location.geo',
|
|
6340
|
+
'lex:community.lexicon.location.address',
|
|
6341
|
+
'lex:com.atproto.repo.strongRef',
|
|
6342
|
+
],
|
|
6047
6343
|
},
|
|
6048
6344
|
},
|
|
6049
6345
|
createdAt: {
|
|
@@ -6053,16 +6349,132 @@ export const schemaDict = {
|
|
|
6053
6349
|
},
|
|
6054
6350
|
},
|
|
6055
6351
|
},
|
|
6056
|
-
|
|
6352
|
+
fields: {
|
|
6057
6353
|
type: 'object',
|
|
6058
|
-
description: "
|
|
6059
|
-
|
|
6354
|
+
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.",
|
|
6355
|
+
properties: {
|
|
6356
|
+
name: {
|
|
6357
|
+
type: 'string',
|
|
6358
|
+
maxLength: 640,
|
|
6359
|
+
maxGraphemes: 128,
|
|
6360
|
+
description: "The organization's name as its registry records it.",
|
|
6361
|
+
},
|
|
6362
|
+
identifiers: {
|
|
6363
|
+
type: 'array',
|
|
6364
|
+
maxLength: 16,
|
|
6365
|
+
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.',
|
|
6366
|
+
items: {
|
|
6367
|
+
type: 'ref',
|
|
6368
|
+
ref: 'lex:pub.techne.draft.org#schemeValue',
|
|
6369
|
+
},
|
|
6370
|
+
},
|
|
6371
|
+
category: {
|
|
6372
|
+
type: 'array',
|
|
6373
|
+
maxLength: 16,
|
|
6374
|
+
description: 'Classification codes per scheme: `irs-ntee`, `irs-subsection`, `co-sos-entity-type`.',
|
|
6375
|
+
items: {
|
|
6376
|
+
type: 'ref',
|
|
6377
|
+
ref: 'lex:pub.techne.draft.org#schemeValue',
|
|
6378
|
+
},
|
|
6379
|
+
},
|
|
6380
|
+
status: {
|
|
6381
|
+
type: 'array',
|
|
6382
|
+
maxLength: 16,
|
|
6383
|
+
description: 'Registry standing per scheme (`irs`, `co-sos`). A closed organization keeps its record with its status; it is never deleted.',
|
|
6384
|
+
items: {
|
|
6385
|
+
type: 'ref',
|
|
6386
|
+
ref: 'lex:pub.techne.draft.org#schemeValue',
|
|
6387
|
+
},
|
|
6388
|
+
},
|
|
6389
|
+
founded: {
|
|
6390
|
+
type: 'string',
|
|
6391
|
+
maxLength: 10,
|
|
6392
|
+
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).',
|
|
6393
|
+
},
|
|
6394
|
+
description: {
|
|
6395
|
+
type: 'string',
|
|
6396
|
+
maxLength: 30000,
|
|
6397
|
+
maxGraphemes: 10000,
|
|
6398
|
+
description: 'Prose about the organization: for a nonprofit, the mission and program text it filed with the IRS (Form 990). Public.',
|
|
6399
|
+
},
|
|
6400
|
+
url: {
|
|
6401
|
+
type: 'string',
|
|
6402
|
+
format: 'uri',
|
|
6403
|
+
maxLength: 300,
|
|
6404
|
+
description: "The organization's own website, absolute http(s).",
|
|
6405
|
+
},
|
|
6406
|
+
phone: {
|
|
6407
|
+
type: 'string',
|
|
6408
|
+
maxLength: 32,
|
|
6409
|
+
description: 'Public phone number, E.164.',
|
|
6410
|
+
},
|
|
6411
|
+
locations: {
|
|
6412
|
+
type: 'array',
|
|
6413
|
+
maxLength: 16,
|
|
6414
|
+
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.",
|
|
6415
|
+
items: {
|
|
6416
|
+
type: 'union',
|
|
6417
|
+
refs: [
|
|
6418
|
+
'lex:community.lexicon.location.geo',
|
|
6419
|
+
'lex:community.lexicon.location.address',
|
|
6420
|
+
'lex:com.atproto.repo.strongRef',
|
|
6421
|
+
],
|
|
6422
|
+
},
|
|
6423
|
+
},
|
|
6424
|
+
},
|
|
6425
|
+
},
|
|
6426
|
+
schemeValue: {
|
|
6427
|
+
type: 'object',
|
|
6428
|
+
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.',
|
|
6429
|
+
required: ['scheme', 'value'],
|
|
6060
6430
|
properties: {
|
|
6061
6431
|
scheme: {
|
|
6062
6432
|
type: 'string',
|
|
6433
|
+
maxLength: 64,
|
|
6434
|
+
description: 'The registry or code list, e.g. `ein`, `co-sos`, `irs-ntee`, `irs-subsection`, `co-sos-entity-type`, `irs`.',
|
|
6063
6435
|
},
|
|
6064
|
-
|
|
6436
|
+
value: {
|
|
6065
6437
|
type: 'string',
|
|
6438
|
+
maxLength: 128,
|
|
6439
|
+
description: 'The code as the registry writes it, e.g. an EIN as 9 digits with no dash.',
|
|
6440
|
+
},
|
|
6441
|
+
},
|
|
6442
|
+
},
|
|
6443
|
+
},
|
|
6444
|
+
},
|
|
6445
|
+
PubTechneDraftOrgAtPlace: {
|
|
6446
|
+
lexicon: 1,
|
|
6447
|
+
id: 'pub.techne.draft.orgAtPlace',
|
|
6448
|
+
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).',
|
|
6449
|
+
defs: {
|
|
6450
|
+
main: {
|
|
6451
|
+
type: 'record',
|
|
6452
|
+
key: 'any',
|
|
6453
|
+
description: '`"key": "any"`: a writer derives a deterministic rkey from the two ends so a re-publish updates the same record.',
|
|
6454
|
+
record: {
|
|
6455
|
+
type: 'object',
|
|
6456
|
+
required: ['subject', 'place', 'createdAt'],
|
|
6457
|
+
properties: {
|
|
6458
|
+
subject: {
|
|
6459
|
+
type: 'ref',
|
|
6460
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
6461
|
+
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.',
|
|
6462
|
+
},
|
|
6463
|
+
place: {
|
|
6464
|
+
type: 'ref',
|
|
6465
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
6466
|
+
description: 'The place (a pub.techne.draft.place record).',
|
|
6467
|
+
},
|
|
6468
|
+
role: {
|
|
6469
|
+
type: 'string',
|
|
6470
|
+
maxLength: 64,
|
|
6471
|
+
knownValues: ['office', 'storefront'],
|
|
6472
|
+
description: 'What the place is to the organization. Values beyond the known set are permitted.',
|
|
6473
|
+
},
|
|
6474
|
+
createdAt: {
|
|
6475
|
+
type: 'string',
|
|
6476
|
+
format: 'datetime',
|
|
6477
|
+
},
|
|
6066
6478
|
},
|
|
6067
6479
|
},
|
|
6068
6480
|
},
|
|
@@ -6142,11 +6554,11 @@ export const schemaDict = {
|
|
|
6142
6554
|
PubTechneDraftPermissionedDeleteRecord: {
|
|
6143
6555
|
lexicon: 1,
|
|
6144
6556
|
id: 'pub.techne.draft.permissioned.deleteRecord',
|
|
6145
|
-
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
|
|
6557
|
+
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.",
|
|
6146
6558
|
defs: {
|
|
6147
6559
|
main: {
|
|
6148
6560
|
type: 'procedure',
|
|
6149
|
-
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
|
|
6561
|
+
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.",
|
|
6150
6562
|
input: {
|
|
6151
6563
|
encoding: 'application/json',
|
|
6152
6564
|
schema: {
|
|
@@ -6579,11 +6991,11 @@ export const schemaDict = {
|
|
|
6579
6991
|
PubTechneDraftPermissionedPutRecord: {
|
|
6580
6992
|
lexicon: 1,
|
|
6581
6993
|
id: 'pub.techne.draft.permissioned.putRecord',
|
|
6582
|
-
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
|
|
6994
|
+
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.",
|
|
6583
6995
|
defs: {
|
|
6584
6996
|
main: {
|
|
6585
6997
|
type: 'procedure',
|
|
6586
|
-
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
|
|
6998
|
+
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.",
|
|
6587
6999
|
input: {
|
|
6588
7000
|
encoding: 'application/json',
|
|
6589
7001
|
schema: {
|
|
@@ -6706,11 +7118,11 @@ export const schemaDict = {
|
|
|
6706
7118
|
PubTechneDraftPermissionedPutRecords: {
|
|
6707
7119
|
lexicon: 1,
|
|
6708
7120
|
id: 'pub.techne.draft.permissioned.putRecords',
|
|
6709
|
-
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
|
|
7121
|
+
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.",
|
|
6710
7122
|
defs: {
|
|
6711
7123
|
main: {
|
|
6712
7124
|
type: 'procedure',
|
|
6713
|
-
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
|
|
7125
|
+
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.",
|
|
6714
7126
|
input: {
|
|
6715
7127
|
encoding: 'application/json',
|
|
6716
7128
|
schema: {
|
|
@@ -9922,6 +10334,38 @@ export const schemaDict = {
|
|
|
9922
10334
|
},
|
|
9923
10335
|
},
|
|
9924
10336
|
},
|
|
10337
|
+
PubTechneDraftStatement: {
|
|
10338
|
+
lexicon: 1,
|
|
10339
|
+
id: 'pub.techne.draft.statement',
|
|
10340
|
+
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`).",
|
|
10341
|
+
defs: {
|
|
10342
|
+
main: {
|
|
10343
|
+
type: 'record',
|
|
10344
|
+
key: 'any',
|
|
10345
|
+
description: '`"key": "any"`: a writer derives a deterministic rkey from the subject so a re-publish updates the same statement.',
|
|
10346
|
+
record: {
|
|
10347
|
+
type: 'object',
|
|
10348
|
+
required: ['subject', 'fields', 'createdAt'],
|
|
10349
|
+
properties: {
|
|
10350
|
+
subject: {
|
|
10351
|
+
type: 'ref',
|
|
10352
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
10353
|
+
description: 'The record the statement is about.',
|
|
10354
|
+
},
|
|
10355
|
+
fields: {
|
|
10356
|
+
type: 'union',
|
|
10357
|
+
refs: ['lex:pub.techne.draft.org#fields'],
|
|
10358
|
+
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.",
|
|
10359
|
+
},
|
|
10360
|
+
createdAt: {
|
|
10361
|
+
type: 'string',
|
|
10362
|
+
format: 'datetime',
|
|
10363
|
+
},
|
|
10364
|
+
},
|
|
10365
|
+
},
|
|
10366
|
+
},
|
|
10367
|
+
},
|
|
10368
|
+
},
|
|
9925
10369
|
PubTechneDraftSubjectPrefs: {
|
|
9926
10370
|
lexicon: 1,
|
|
9927
10371
|
id: 'pub.techne.draft.subjectPrefs',
|
|
@@ -11540,6 +11984,8 @@ export function validate(v, id, hash, requiredType) {
|
|
|
11540
11984
|
}
|
|
11541
11985
|
export const ids = {
|
|
11542
11986
|
AppBskyRichtextFacet: 'app.bsky.richtext.facet',
|
|
11987
|
+
AppCertifiedDefs: 'app.certified.defs',
|
|
11988
|
+
AppCertifiedSignatureDefs: 'app.certified.signature.defs',
|
|
11543
11989
|
ComAtprotoAdminDefs: 'com.atproto.admin.defs',
|
|
11544
11990
|
ComAtprotoLabelDefs: 'com.atproto.label.defs',
|
|
11545
11991
|
ComAtprotoModerationCreateReport: 'com.atproto.moderation.createReport',
|
|
@@ -11555,6 +12001,7 @@ export const ids = {
|
|
|
11555
12001
|
CommunityLexiconLocationFsq: 'community.lexicon.location.fsq',
|
|
11556
12002
|
CommunityLexiconLocationGeo: 'community.lexicon.location.geo',
|
|
11557
12003
|
CommunityLexiconLocationHthree: 'community.lexicon.location.hthree',
|
|
12004
|
+
OrgHypercertsFundingReceipt: 'org.hypercerts.funding.receipt',
|
|
11558
12005
|
PubTechneDraftAccessRule: 'pub.techne.draft.accessRule',
|
|
11559
12006
|
PubTechneDraftAccountLink: 'pub.techne.draft.accountLink',
|
|
11560
12007
|
PubTechneDraftActorProfile: 'pub.techne.draft.actor.profile',
|
|
@@ -11590,6 +12037,7 @@ export const ids = {
|
|
|
11590
12037
|
PubTechneDraftEventDetail: 'pub.techne.draft.event.detail',
|
|
11591
12038
|
PubTechneDraftEventListing: 'pub.techne.draft.event.listing',
|
|
11592
12039
|
PubTechneDraftFeedRecipe: 'pub.techne.draft.feed.recipe',
|
|
12040
|
+
PubTechneDraftFinancials: 'pub.techne.draft.financials',
|
|
11593
12041
|
PubTechneDraftGeo: 'pub.techne.draft.geo',
|
|
11594
12042
|
PubTechneDraftHeldAt: 'pub.techne.draft.heldAt',
|
|
11595
12043
|
PubTechneDraftIdentityAccountsForPhones: 'pub.techne.draft.identity.accountsForPhones',
|
|
@@ -11629,6 +12077,7 @@ export const ids = {
|
|
|
11629
12077
|
PubTechneDraftNotificationState: 'pub.techne.draft.notificationState',
|
|
11630
12078
|
PubTechneDraftOperator: 'pub.techne.draft.operator',
|
|
11631
12079
|
PubTechneDraftOrg: 'pub.techne.draft.org',
|
|
12080
|
+
PubTechneDraftOrgAtPlace: 'pub.techne.draft.orgAtPlace',
|
|
11632
12081
|
PubTechneDraftPassage: 'pub.techne.draft.passage',
|
|
11633
12082
|
PubTechneDraftPendingBeaconSpot: 'pub.techne.draft.pendingBeaconSpot',
|
|
11634
12083
|
PubTechneDraftPermissionedDeleteRecord: 'pub.techne.draft.permissioned.deleteRecord',
|
|
@@ -11672,6 +12121,7 @@ export const ids = {
|
|
|
11672
12121
|
PubTechneDraftSource: 'pub.techne.draft.source',
|
|
11673
12122
|
PubTechneDraftSourceAttribution: 'pub.techne.draft.sourceAttribution',
|
|
11674
12123
|
PubTechneDraftSourceRef: 'pub.techne.draft.sourceRef',
|
|
12124
|
+
PubTechneDraftStatement: 'pub.techne.draft.statement',
|
|
11675
12125
|
PubTechneDraftSubjectPrefs: 'pub.techne.draft.subjectPrefs',
|
|
11676
12126
|
PubTechneDraftSummary: 'pub.techne.draft.summary',
|
|
11677
12127
|
PubTechneDraftSyncIndexRecord: 'pub.techne.draft.sync.indexRecord',
|