techne-sdk 0.3.4 → 0.4.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 +159 -0
- package/README.md +3 -1
- package/dist/auth/account.d.ts +67 -0
- package/dist/auth/account.js +136 -0
- package/dist/auth/hosts.d.ts +4 -0
- package/dist/auth/hosts.js +4 -0
- package/dist/auth/index.d.ts +30 -5
- package/dist/auth/index.js +80 -12
- package/dist/catalog/catalog.gen.d.ts +24 -24
- package/dist/catalog/catalog.gen.js +1256 -85
- package/dist/generated/index.d.ts +9 -0
- package/dist/generated/index.js +27 -0
- package/dist/generated/lexicons.d.ts +1539 -147
- package/dist/generated/lexicons.js +1020 -202
- package/dist/generated/nsid.d.ts +18 -0
- package/dist/generated/nsid.js +18 -0
- package/dist/generated/nsid.json +18 -0
- package/dist/generated/types/pub/techne/draft/beacon.d.ts +2 -0
- package/dist/generated/types/pub/techne/draft/collective.d.ts +1 -1
- package/dist/generated/types/pub/techne/draft/commons/moveAccountHandle.d.ts +3 -0
- package/dist/generated/types/pub/techne/draft/commons/moveAccountHandle.js +7 -0
- package/dist/generated/types/pub/techne/draft/identity/attest.d.ts +6 -0
- package/dist/generated/types/pub/techne/draft/identity/attest.js +14 -0
- package/dist/generated/types/pub/techne/draft/identity/beginAddMethod.d.ts +6 -0
- package/dist/generated/types/pub/techne/draft/identity/beginAddMethod.js +14 -0
- package/dist/generated/types/pub/techne/draft/identity/cancelPendingChange.d.ts +29 -0
- package/dist/generated/types/pub/techne/draft/identity/cancelPendingChange.js +27 -0
- package/dist/generated/types/pub/techne/draft/identity/defs.d.ts +22 -4
- package/dist/generated/types/pub/techne/draft/identity/defs.js +7 -0
- package/dist/generated/types/pub/techne/draft/identity/finishAddMethod.d.ts +12 -0
- package/dist/generated/types/pub/techne/draft/identity/finishAddMethod.js +28 -0
- package/dist/generated/types/pub/techne/draft/identity/fold.d.ts +3 -0
- package/dist/generated/types/pub/techne/draft/identity/fold.js +7 -0
- package/dist/generated/types/pub/techne/draft/identity/holdForPhone.d.ts +1 -1
- package/dist/generated/types/pub/techne/draft/identity/link.d.ts +3 -0
- package/dist/generated/types/pub/techne/draft/identity/link.js +7 -0
- package/dist/generated/types/pub/techne/draft/identity/listMethods.d.ts +6 -1
- package/dist/generated/types/pub/techne/draft/identity/manageMethods.d.ts +225 -0
- package/dist/generated/types/pub/techne/draft/identity/manageMethods.js +209 -0
- package/dist/generated/types/pub/techne/draft/identity/openAccountPage.d.ts +40 -0
- package/dist/generated/types/pub/techne/draft/identity/openAccountPage.js +55 -0
- package/dist/generated/types/pub/techne/draft/identity/resolve.d.ts +10 -0
- package/dist/generated/types/pub/techne/draft/identity/unlinkMethod.d.ts +6 -0
- package/dist/generated/types/pub/techne/draft/identity/unlinkMethod.js +7 -0
- package/dist/generated/types/pub/techne/draft/membership.d.ts +1 -1
- package/dist/generated/types/pub/techne/draft/permissioned/deleteRecord.d.ts +3 -0
- package/dist/generated/types/pub/techne/draft/permissioned/deleteRecord.js +7 -0
- package/dist/generated/types/pub/techne/draft/permissioned/putRecord.d.ts +3 -0
- package/dist/generated/types/pub/techne/draft/permissioned/putRecord.js +7 -0
- package/dist/generated/types/pub/techne/draft/permissioned/putRecords.d.ts +5 -2
- package/dist/generated/types/pub/techne/draft/permissioned/putRecords.js +7 -0
- package/dist/generated/types/pub/techne/draft/registry/blockIndex.d.ts +7 -1
- package/dist/generated/types/pub/techne/draft/registry/blockIndex.js +17 -3
- package/dist/generated/types/pub/techne/draft/registry/purgeType.d.ts +7 -1
- package/dist/generated/types/pub/techne/draft/registry/purgeType.js +17 -3
- package/dist/generated/types/pub/techne/draft/summary.d.ts +2 -0
- package/dist/wasm/techne-wasm.gen.js +1 -1
- package/dist/wasm/techne-wasm2js.gen.js +9950 -9947
- package/package.json +2 -1
|
@@ -1120,11 +1120,11 @@ export const catalog = {
|
|
|
1120
1120
|
"name": "calendar.event.query",
|
|
1121
1121
|
"group": "community.lexicon",
|
|
1122
1122
|
"kind": "queryDocument",
|
|
1123
|
-
"description": "Which fields of a calendar event fill the shared query roles. An event that states no end is taken to end two hours after it starts.",
|
|
1123
|
+
"description": "Which fields of a calendar event fill the shared query roles. An event that states no end is taken to end two hours after it starts, except one that starts at a midnight in its own stated offset (the older all-day shape): that one runs to the next midnight in that offset, a day.",
|
|
1124
1124
|
"doc": ({
|
|
1125
1125
|
"lexicon": 1,
|
|
1126
1126
|
"id": "community.lexicon.calendar.event.query",
|
|
1127
|
-
"description": "Which fields of a calendar event fill the shared query roles. An event that states no end is taken to end two hours after it starts.",
|
|
1127
|
+
"description": "Which fields of a calendar event fill the shared query roles. An event that states no end is taken to end two hours after it starts, except one that starts at a midnight in its own stated offset (the older all-day shape): that one runs to the next midnight in that offset, a day.",
|
|
1128
1128
|
"defs": {
|
|
1129
1129
|
"main": {
|
|
1130
1130
|
"type": "queryDocument",
|
|
@@ -1223,6 +1223,10 @@ export const catalog = {
|
|
|
1223
1223
|
"space": "pub.techne.draft.space.beacon",
|
|
1224
1224
|
"unbuilt": false
|
|
1225
1225
|
},
|
|
1226
|
+
{
|
|
1227
|
+
"space": "pub.techne.draft.space.beaconDecline",
|
|
1228
|
+
"unbuilt": false
|
|
1229
|
+
},
|
|
1226
1230
|
{
|
|
1227
1231
|
"space": "pub.techne.draft.space.event.invite",
|
|
1228
1232
|
"unbuilt": false
|
|
@@ -2393,6 +2397,12 @@ export const catalog = {
|
|
|
2393
2397
|
"required": false,
|
|
2394
2398
|
"description": "Optional: one emoji the lighter picked for this beacon (its card mark and map pin glyph)."
|
|
2395
2399
|
},
|
|
2400
|
+
{
|
|
2401
|
+
"name": "answerEmojis",
|
|
2402
|
+
"type": "array<string>",
|
|
2403
|
+
"required": false,
|
|
2404
|
+
"description": "Optional: the emoji the lighter picked for the answers, in this order: going (I'm in), interested (Maybe), notgoing (Can't go). A missing or empty entry means the app's own emoji for that answer."
|
|
2405
|
+
},
|
|
2396
2406
|
{
|
|
2397
2407
|
"name": "createdAt",
|
|
2398
2408
|
"type": "string<datetime>",
|
|
@@ -2430,6 +2440,16 @@ export const catalog = {
|
|
|
2430
2440
|
"maxLength": 64,
|
|
2431
2441
|
"description": "Optional: one emoji the lighter picked for this beacon (its card mark and map pin glyph)."
|
|
2432
2442
|
},
|
|
2443
|
+
"answerEmojis": {
|
|
2444
|
+
"type": "array",
|
|
2445
|
+
"maxLength": 3,
|
|
2446
|
+
"items": {
|
|
2447
|
+
"type": "string",
|
|
2448
|
+
"maxGraphemes": 1,
|
|
2449
|
+
"maxLength": 64
|
|
2450
|
+
},
|
|
2451
|
+
"description": "Optional: the emoji the lighter picked for the answers, in this order: going (I'm in), interested (Maybe), notgoing (Can't go). A missing or empty entry means the app's own emoji for that answer."
|
|
2452
|
+
},
|
|
2433
2453
|
"createdAt": {
|
|
2434
2454
|
"type": "string",
|
|
2435
2455
|
"format": "datetime"
|
|
@@ -2789,7 +2809,7 @@ export const catalog = {
|
|
|
2789
2809
|
"name": "collectiveType",
|
|
2790
2810
|
"type": "string",
|
|
2791
2811
|
"required": false,
|
|
2792
|
-
"description": "Free-form collective type/category label. The value \"beacon.circle\" marks a Beacon circle on a descriptor placed in its own DID's pub.techne.draft.space.collective.member/self, whoever made that DID or wrote it. A Beacon circle is a private group whose descriptor and memberships live only in that member space,
|
|
2812
|
+
"description": "Free-form collective type/category label. The value \"beacon.circle\" marks a Beacon circle on a descriptor placed in its own DID's pub.techne.draft.space.collective.member/self, whoever made that DID or wrote it. A Beacon circle is a private group whose descriptor and memberships live only in that member space, and which a pub.techne.draft.accessRule#groupTarget may name. Roles: a member holds 20 and the manager 40 (the founder, until they make someone else manager). Where the platform holds the circle's credential, any member may add people and leave; only the manager renames, sets the emoji, removes people and makes someone manager (one putRecords: that member at 40, the manager's own claim at 20). A write that would leave members with nobody at >= 30 is refused (LastManager). A circle whose last member leaves is deleted, and so is one whose only member deletes their account; an account that alone manages a circle hands it to the longest-standing other member when it is deleted. Circles made before these roles hold every member at 40 until the operator lowers them. A circle whose DID someone else holds is managed by its holder."
|
|
2793
2813
|
},
|
|
2794
2814
|
{
|
|
2795
2815
|
"name": "sceneType",
|
|
@@ -2849,7 +2869,7 @@ export const catalog = {
|
|
|
2849
2869
|
},
|
|
2850
2870
|
"collectiveType": {
|
|
2851
2871
|
"type": "string",
|
|
2852
|
-
"description": "Free-form collective type/category label. The value \"beacon.circle\" marks a Beacon circle on a descriptor placed in its own DID's pub.techne.draft.space.collective.member/self, whoever made that DID or wrote it. A Beacon circle is a private group whose descriptor and memberships live only in that member space,
|
|
2872
|
+
"description": "Free-form collective type/category label. The value \"beacon.circle\" marks a Beacon circle on a descriptor placed in its own DID's pub.techne.draft.space.collective.member/self, whoever made that DID or wrote it. A Beacon circle is a private group whose descriptor and memberships live only in that member space, and which a pub.techne.draft.accessRule#groupTarget may name. Roles: a member holds 20 and the manager 40 (the founder, until they make someone else manager). Where the platform holds the circle's credential, any member may add people and leave; only the manager renames, sets the emoji, removes people and makes someone manager (one putRecords: that member at 40, the manager's own claim at 20). A write that would leave members with nobody at >= 30 is refused (LastManager). A circle whose last member leaves is deleted, and so is one whose only member deletes their account; an account that alone manages a circle hands it to the longest-standing other member when it is deleted. Circles made before these roles hold every member at 40 until the operator lowers them. A circle whose DID someone else holds is managed by its holder.",
|
|
2853
2873
|
"maxLength": 64
|
|
2854
2874
|
},
|
|
2855
2875
|
"sceneType": {
|
|
@@ -3177,14 +3197,14 @@ export const catalog = {
|
|
|
3177
3197
|
"name": "draft.commons.moveAccountHandle",
|
|
3178
3198
|
"group": "pub.techne",
|
|
3179
3199
|
"kind": "procedure",
|
|
3180
|
-
"description": "Move a custodial account's handle to the deployment's current handle domain (handles move from *.scenius.social to the settled domain). Served by the AppView, operator-only
|
|
3200
|
+
"description": "Move a custodial account's handle to the deployment's current handle domain (handles move from *.scenius.social to the settled domain). Served by the AppView, operator-only: the caller's DID is one of OPERATOR_DIDS and the call carries the moderate scope. Keeps the account's label unless `label` is given; updates the handle on the PDS and in the AppView. An account has one valid handle at a time: the previous one is retired, never issued again, and links that carry it redirect to the account's DID route. Everything else already refers to the account by DID and does not change.",
|
|
3181
3201
|
"doc": ({
|
|
3182
3202
|
"lexicon": 1,
|
|
3183
3203
|
"id": "pub.techne.draft.commons.moveAccountHandle",
|
|
3184
3204
|
"defs": {
|
|
3185
3205
|
"main": {
|
|
3186
3206
|
"type": "procedure",
|
|
3187
|
-
"description": "Move a custodial account's handle to the deployment's current handle domain (handles move from *.scenius.social to the settled domain). Served by the AppView, operator-only
|
|
3207
|
+
"description": "Move a custodial account's handle to the deployment's current handle domain (handles move from *.scenius.social to the settled domain). Served by the AppView, operator-only: the caller's DID is one of OPERATOR_DIDS and the call carries the moderate scope. Keeps the account's label unless `label` is given; updates the handle on the PDS and in the AppView. An account has one valid handle at a time: the previous one is retired, never issued again, and links that carry it redirect to the account's DID route. Everything else already refers to the account by DID and does not change.",
|
|
3188
3208
|
"input": {
|
|
3189
3209
|
"encoding": "application/json",
|
|
3190
3210
|
"schema": {
|
|
@@ -3239,7 +3259,11 @@ export const catalog = {
|
|
|
3239
3259
|
},
|
|
3240
3260
|
{
|
|
3241
3261
|
"name": "NotAuthorized",
|
|
3242
|
-
"description": "The caller is not an operator."
|
|
3262
|
+
"description": "The caller is not an operator, or the call does not carry the moderate scope (HTTP 403)."
|
|
3263
|
+
},
|
|
3264
|
+
{
|
|
3265
|
+
"name": "ProgramRefused",
|
|
3266
|
+
"description": "The caller is a program's token: a program never reaches an operator method (HTTP 403)."
|
|
3243
3267
|
},
|
|
3244
3268
|
{
|
|
3245
3269
|
"name": "InvalidRequest",
|
|
@@ -5250,6 +5274,28 @@ export const catalog = {
|
|
|
5250
5274
|
}
|
|
5251
5275
|
]
|
|
5252
5276
|
},
|
|
5277
|
+
{
|
|
5278
|
+
"nsid": "pub.techne.draft.heldAt.query",
|
|
5279
|
+
"name": "draft.heldAt.query",
|
|
5280
|
+
"group": "pub.techne",
|
|
5281
|
+
"kind": "queryDocument",
|
|
5282
|
+
"description": "Which fields of a heldAt link fill the shared query roles: the place it names is its reference, so a read finds the events held at a place (each link's subject) with one `references` condition. Its subject is the event, as written.",
|
|
5283
|
+
"doc": ({
|
|
5284
|
+
"lexicon": 1,
|
|
5285
|
+
"id": "pub.techne.draft.heldAt.query",
|
|
5286
|
+
"description": "Which fields of a heldAt link fill the shared query roles: the place it names is its reference, so a read finds the events held at a place (each link's subject) with one `references` condition. Its subject is the event, as written.",
|
|
5287
|
+
"defs": {
|
|
5288
|
+
"main": {
|
|
5289
|
+
"type": "queryDocument",
|
|
5290
|
+
"roles": {
|
|
5291
|
+
"references": [
|
|
5292
|
+
"place.uri"
|
|
5293
|
+
]
|
|
5294
|
+
}
|
|
5295
|
+
}
|
|
5296
|
+
}
|
|
5297
|
+
})
|
|
5298
|
+
},
|
|
5253
5299
|
{
|
|
5254
5300
|
"nsid": "pub.techne.draft.identity.accountsForPhones",
|
|
5255
5301
|
"name": "draft.identity.accountsForPhones",
|
|
@@ -5343,14 +5389,14 @@ export const catalog = {
|
|
|
5343
5389
|
"name": "draft.identity.attest",
|
|
5344
5390
|
"group": "pub.techne",
|
|
5345
5391
|
"kind": "procedure",
|
|
5346
|
-
"description": "A PDS's issuer hook: the PDS verified a one-time code for `channel` and signed `did` in (or created it). The issuer binds an unbound channel to the account and issues a pub.techne.draft.credential, or re-issues when it is already bound to that account. It never moves a bound channel, and binds only accounts whose DID document names the calling PDS (`#atproto_pds`). Authenticated and signed exactly as identity.resolve. Delivered at least once; idempotent per (channel, did).",
|
|
5392
|
+
"description": "A PDS's issuer hook: the PDS verified a one-time code for `channel` and signed `did` in (or created it). The issuer binds an unbound channel to the account and issues a pub.techne.draft.credential, or re-issues when it is already bound to that account. A phone it binds or re-binds releases the invitations and holds waiting on that number to the account (as a sign-in on the platform does). It never moves a bound channel, never signs in a frozen method (`MethodFrozen`), never binds a phone number back to the account that removed it (`ChannelReleased`), and binds only accounts whose DID document names the calling PDS (`#atproto_pds`). Authenticated and signed exactly as identity.resolve. Delivered at least once; idempotent per (channel, did).",
|
|
5347
5393
|
"doc": ({
|
|
5348
5394
|
"lexicon": 1,
|
|
5349
5395
|
"id": "pub.techne.draft.identity.attest",
|
|
5350
5396
|
"defs": {
|
|
5351
5397
|
"main": {
|
|
5352
5398
|
"type": "procedure",
|
|
5353
|
-
"description": "A PDS's issuer hook: the PDS verified a one-time code for `channel` and signed `did` in (or created it). The issuer binds an unbound channel to the account and issues a pub.techne.draft.credential, or re-issues when it is already bound to that account. It never moves a bound channel, and binds only accounts whose DID document names the calling PDS (`#atproto_pds`). Authenticated and signed exactly as identity.resolve. Delivered at least once; idempotent per (channel, did).",
|
|
5399
|
+
"description": "A PDS's issuer hook: the PDS verified a one-time code for `channel` and signed `did` in (or created it). The issuer binds an unbound channel to the account and issues a pub.techne.draft.credential, or re-issues when it is already bound to that account. A phone it binds or re-binds releases the invitations and holds waiting on that number to the account (as a sign-in on the platform does). It never moves a bound channel, never signs in a frozen method (`MethodFrozen`), never binds a phone number back to the account that removed it (`ChannelReleased`), and binds only accounts whose DID document names the calling PDS (`#atproto_pds`). Authenticated and signed exactly as identity.resolve. Delivered at least once; idempotent per (channel, did).",
|
|
5354
5400
|
"input": {
|
|
5355
5401
|
"encoding": "application/json",
|
|
5356
5402
|
"schema": {
|
|
@@ -5431,6 +5477,14 @@ export const catalog = {
|
|
|
5431
5477
|
"name": "ChannelBound",
|
|
5432
5478
|
"description": "The channel is bound to another account (HTTP 409). Never retried."
|
|
5433
5479
|
},
|
|
5480
|
+
{
|
|
5481
|
+
"name": "ChannelReleased",
|
|
5482
|
+
"description": "The account named by `did` removed this phone number (identity.unlinkMethod) and nobody has bound it since (HTTP 409). Never retried: the account gets the number back only by adding it again (identity.finishAddMethod)."
|
|
5483
|
+
},
|
|
5484
|
+
{
|
|
5485
|
+
"name": "MethodFrozen",
|
|
5486
|
+
"description": "This channel is a frozen method of the account (identity.manageMethods `freeze`; HTTP 403): it does not sign in until the freeze ends. Not retried."
|
|
5487
|
+
},
|
|
5434
5488
|
{
|
|
5435
5489
|
"name": "RateLimitExceeded",
|
|
5436
5490
|
"description": "As identity.resolve (HTTP 429)."
|
|
@@ -5445,14 +5499,14 @@ export const catalog = {
|
|
|
5445
5499
|
"name": "draft.identity.beginAddMethod",
|
|
5446
5500
|
"group": "pub.techne",
|
|
5447
5501
|
"kind": "procedure",
|
|
5448
|
-
"description": "Start adding a sign-in method to the caller's account: sends a 6-digit code to the channel
|
|
5502
|
+
"description": "Start adding a sign-in method to the caller's account: sends a 6-digit code to the channel: an email, or a phone by SMS. To change a phone number, add the new one, then remove the old one with identity.unlinkMethod. The code is good for 10 minutes and 5 attempts; finish with identity.finishAddMethod. Signed-in members only.",
|
|
5449
5503
|
"doc": ({
|
|
5450
5504
|
"lexicon": 1,
|
|
5451
5505
|
"id": "pub.techne.draft.identity.beginAddMethod",
|
|
5452
5506
|
"defs": {
|
|
5453
5507
|
"main": {
|
|
5454
5508
|
"type": "procedure",
|
|
5455
|
-
"description": "Start adding a sign-in method to the caller's account: sends a 6-digit code to the channel
|
|
5509
|
+
"description": "Start adding a sign-in method to the caller's account: sends a 6-digit code to the channel: an email, or a phone by SMS. To change a phone number, add the new one, then remove the old one with identity.unlinkMethod. The code is good for 10 minutes and 5 attempts; finish with identity.finishAddMethod. Signed-in members only.",
|
|
5456
5510
|
"input": {
|
|
5457
5511
|
"encoding": "application/json",
|
|
5458
5512
|
"schema": {
|
|
@@ -5496,11 +5550,75 @@ export const catalog = {
|
|
|
5496
5550
|
},
|
|
5497
5551
|
{
|
|
5498
5552
|
"name": "InvalidRequest",
|
|
5499
|
-
"description": "The channel is not a valid email, or its type cannot be added
|
|
5553
|
+
"description": "The channel is not a valid email or E.164 phone number, or its type cannot be added on this server."
|
|
5500
5554
|
},
|
|
5501
5555
|
{
|
|
5502
5556
|
"name": "RateLimitExceeded",
|
|
5503
5557
|
"description": "Too many codes sent to this address (HTTP 429)."
|
|
5558
|
+
},
|
|
5559
|
+
{
|
|
5560
|
+
"name": "MethodFrozen",
|
|
5561
|
+
"description": "The channel is a frozen sign-in method of an account (HTTP 403); it can't be proved anywhere until the freeze ends."
|
|
5562
|
+
},
|
|
5563
|
+
{
|
|
5564
|
+
"name": "SendFailed",
|
|
5565
|
+
"description": "The code could not be texted to that phone number (HTTP 502). Try again."
|
|
5566
|
+
}
|
|
5567
|
+
]
|
|
5568
|
+
}
|
|
5569
|
+
}
|
|
5570
|
+
})
|
|
5571
|
+
},
|
|
5572
|
+
{
|
|
5573
|
+
"nsid": "pub.techne.draft.identity.cancelPendingChange",
|
|
5574
|
+
"name": "draft.identity.cancelPendingChange",
|
|
5575
|
+
"group": "pub.techne",
|
|
5576
|
+
"kind": "procedure",
|
|
5577
|
+
"description": "Cancel one of the caller's pending sign-in changes (a method removal, an account deletion or a first recovery mark that waits; its `id` is the `pending` identity.listMethods, identity.unlinkMethod or deleteAccount answered), by the sign-in method rules: any of the account's methods may cancel a wait, so a signed-in session may, with no step-up. For an account whose PDS has no account page of its own; the identity PDS cancels through identity.manageMethods `cancel`. A frozen method may cancel too, its own removal included. Nothing else changes.",
|
|
5578
|
+
"doc": ({
|
|
5579
|
+
"lexicon": 1,
|
|
5580
|
+
"id": "pub.techne.draft.identity.cancelPendingChange",
|
|
5581
|
+
"defs": {
|
|
5582
|
+
"main": {
|
|
5583
|
+
"type": "procedure",
|
|
5584
|
+
"description": "Cancel one of the caller's pending sign-in changes (a method removal, an account deletion or a first recovery mark that waits; its `id` is the `pending` identity.listMethods, identity.unlinkMethod or deleteAccount answered), by the sign-in method rules: any of the account's methods may cancel a wait, so a signed-in session may, with no step-up. For an account whose PDS has no account page of its own; the identity PDS cancels through identity.manageMethods `cancel`. A frozen method may cancel too, its own removal included. Nothing else changes.",
|
|
5585
|
+
"input": {
|
|
5586
|
+
"encoding": "application/json",
|
|
5587
|
+
"schema": {
|
|
5588
|
+
"type": "object",
|
|
5589
|
+
"required": [
|
|
5590
|
+
"id"
|
|
5591
|
+
],
|
|
5592
|
+
"properties": {
|
|
5593
|
+
"id": {
|
|
5594
|
+
"type": "string",
|
|
5595
|
+
"maxLength": 64
|
|
5596
|
+
}
|
|
5597
|
+
}
|
|
5598
|
+
}
|
|
5599
|
+
},
|
|
5600
|
+
"output": {
|
|
5601
|
+
"encoding": "application/json",
|
|
5602
|
+
"schema": {
|
|
5603
|
+
"type": "object",
|
|
5604
|
+
"required": [
|
|
5605
|
+
"ok"
|
|
5606
|
+
],
|
|
5607
|
+
"properties": {
|
|
5608
|
+
"ok": {
|
|
5609
|
+
"type": "boolean"
|
|
5610
|
+
}
|
|
5611
|
+
}
|
|
5612
|
+
}
|
|
5613
|
+
},
|
|
5614
|
+
"errors": [
|
|
5615
|
+
{
|
|
5616
|
+
"name": "AuthenticationRequired",
|
|
5617
|
+
"description": "No signed-in caller."
|
|
5618
|
+
},
|
|
5619
|
+
{
|
|
5620
|
+
"name": "NotFound",
|
|
5621
|
+
"description": "No such pending change on the caller's account, or it already completed or was cancelled."
|
|
5504
5622
|
}
|
|
5505
5623
|
]
|
|
5506
5624
|
}
|
|
@@ -5649,14 +5767,14 @@ export const catalog = {
|
|
|
5649
5767
|
"name": "draft.identity.createLinkToken",
|
|
5650
5768
|
"group": "pub.techne",
|
|
5651
5769
|
"kind": "procedure",
|
|
5652
|
-
"description": "Make a link token on the caller's identity PDS: a secret anyone can redeem (redeemLinkToken) once (one-time, the default) or any number of times by different accounts (`reusable`). With `grant`, the platform keeps a write it makes for each account that redeems it: when the identity PDS reports a redemption, the platform writes the redeemer's own pub.techne.draft.identity.linkRedemption record in their personal space and then writes `grant.write` as `grant.actAs` with the redeemer's DID in every \"$subject\" slot, exactly as identity.holdForPhone releases a hold: the caller must be able to write as `actAs` now and when the link is redeemed, a block either way between the redeemer and the caller or `actAs` writes nothing, and the record must be one permissioned.putRecord would take with the caller's DID in the slot. A one-time link's grant goes after its one write; a reusable link's is written once for each redeemer, under its own record key. A release never writes over a record already at its key: one there stays, and that redeemer's write is not made. Only an account hosted on the platform's identity PDS can make links. One call spends one of the caller's writes.",
|
|
5770
|
+
"description": "Make a link token on the caller's identity PDS: a secret anyone can redeem (redeemLinkToken) once (one-time, the default) or any number of times by different accounts (`reusable`). With `grant`, the platform keeps a write it makes for each account that redeems it: when the identity PDS reports a redemption, the platform writes the redeemer's own pub.techne.draft.identity.linkRedemption record in their personal space and then writes `grant.write` as `grant.actAs` with the redeemer's DID in every \"$subject\" slot (and their name in every \"$name\" slot), exactly as identity.holdForPhone releases a hold: the caller must be able to write as `actAs` now and when the link is redeemed, a block either way between the redeemer and the caller or `actAs` writes nothing, and the record must be one permissioned.putRecord would take with the caller's DID in the slot. A one-time link's grant goes after its one write; a reusable link's is written once for each redeemer, under its own record key. A release never writes over a record already at its key: one there stays, and that redeemer's write is not made. A pub.techne.draft.contact grant is likewise not made when any active contact of `actAs` already names the redeemer, by its `did` or by a saved number that resolves to them (an archived one does not count), so a grant like {name: \"$name\", did: \"$subject\"} adds each person to the owner's People once. Only an account hosted on the platform's identity PDS can make links. One call spends one of the caller's writes.",
|
|
5653
5771
|
"doc": ({
|
|
5654
5772
|
"lexicon": 1,
|
|
5655
5773
|
"id": "pub.techne.draft.identity.createLinkToken",
|
|
5656
5774
|
"defs": {
|
|
5657
5775
|
"main": {
|
|
5658
5776
|
"type": "procedure",
|
|
5659
|
-
"description": "Make a link token on the caller's identity PDS: a secret anyone can redeem (redeemLinkToken) once (one-time, the default) or any number of times by different accounts (`reusable`). With `grant`, the platform keeps a write it makes for each account that redeems it: when the identity PDS reports a redemption, the platform writes the redeemer's own pub.techne.draft.identity.linkRedemption record in their personal space and then writes `grant.write` as `grant.actAs` with the redeemer's DID in every \"$subject\" slot, exactly as identity.holdForPhone releases a hold: the caller must be able to write as `actAs` now and when the link is redeemed, a block either way between the redeemer and the caller or `actAs` writes nothing, and the record must be one permissioned.putRecord would take with the caller's DID in the slot. A one-time link's grant goes after its one write; a reusable link's is written once for each redeemer, under its own record key. A release never writes over a record already at its key: one there stays, and that redeemer's write is not made. Only an account hosted on the platform's identity PDS can make links. One call spends one of the caller's writes.",
|
|
5777
|
+
"description": "Make a link token on the caller's identity PDS: a secret anyone can redeem (redeemLinkToken) once (one-time, the default) or any number of times by different accounts (`reusable`). With `grant`, the platform keeps a write it makes for each account that redeems it: when the identity PDS reports a redemption, the platform writes the redeemer's own pub.techne.draft.identity.linkRedemption record in their personal space and then writes `grant.write` as `grant.actAs` with the redeemer's DID in every \"$subject\" slot (and their name in every \"$name\" slot), exactly as identity.holdForPhone releases a hold: the caller must be able to write as `actAs` now and when the link is redeemed, a block either way between the redeemer and the caller or `actAs` writes nothing, and the record must be one permissioned.putRecord would take with the caller's DID in the slot. A one-time link's grant goes after its one write; a reusable link's is written once for each redeemer, under its own record key. A release never writes over a record already at its key: one there stays, and that redeemer's write is not made. A pub.techne.draft.contact grant is likewise not made when any active contact of `actAs` already names the redeemer, by its `did` or by a saved number that resolves to them (an archived one does not count), so a grant like {name: \"$name\", did: \"$subject\"} adds each person to the owner's People once. Only an account hosted on the platform's identity PDS can make links. One call spends one of the caller's writes.",
|
|
5660
5778
|
"input": {
|
|
5661
5779
|
"encoding": "application/json",
|
|
5662
5780
|
"schema": {
|
|
@@ -5771,7 +5889,7 @@ export const catalog = {
|
|
|
5771
5889
|
},
|
|
5772
5890
|
"methodView": {
|
|
5773
5891
|
"type": "object",
|
|
5774
|
-
"description": "One sign-in method
|
|
5892
|
+
"description": "One sign-in method of the caller's account, masked.",
|
|
5775
5893
|
"required": [
|
|
5776
5894
|
"bid",
|
|
5777
5895
|
"type",
|
|
@@ -5782,23 +5900,76 @@ export const catalog = {
|
|
|
5782
5900
|
"bid": {
|
|
5783
5901
|
"type": "string",
|
|
5784
5902
|
"maxLength": 64,
|
|
5785
|
-
"description": "The binding id (the credential's record key). Names the method in unlinkMethod."
|
|
5903
|
+
"description": "The method's id: the binding id (the credential's record key) of an email or phone, else the platform's id for it. Names the method in unlinkMethod and manageMethods."
|
|
5786
5904
|
},
|
|
5787
5905
|
"type": {
|
|
5788
5906
|
"type": "string",
|
|
5789
5907
|
"knownValues": [
|
|
5790
5908
|
"email",
|
|
5791
|
-
"phone"
|
|
5909
|
+
"phone",
|
|
5910
|
+
"passkey",
|
|
5911
|
+
"nostr",
|
|
5912
|
+
"recoveryCodes"
|
|
5792
5913
|
]
|
|
5793
5914
|
},
|
|
5794
5915
|
"masked": {
|
|
5795
5916
|
"type": "string",
|
|
5796
5917
|
"maxLength": 320,
|
|
5797
|
-
"description": "The channel with most of it hidden, e.g. `j•••@example.com`, `+1 ••• ••• 4567`."
|
|
5918
|
+
"description": "The channel with most of it hidden, e.g. `j•••@example.com`, `+1 ••• ••• 4567`; a passkey's or Nostr key's label; `Recovery codes (n left)`."
|
|
5798
5919
|
},
|
|
5799
5920
|
"boundAt": {
|
|
5800
5921
|
"type": "string",
|
|
5801
5922
|
"format": "datetime"
|
|
5923
|
+
},
|
|
5924
|
+
"recovery": {
|
|
5925
|
+
"type": "boolean",
|
|
5926
|
+
"description": "A recovery method of this account. Private: only the account sees it."
|
|
5927
|
+
},
|
|
5928
|
+
"frozenUntil": {
|
|
5929
|
+
"type": "string",
|
|
5930
|
+
"format": "datetime",
|
|
5931
|
+
"description": "Frozen: it signs in nowhere until then, or until a recovery method lifts it."
|
|
5932
|
+
},
|
|
5933
|
+
"programs": {
|
|
5934
|
+
"type": "boolean",
|
|
5935
|
+
"description": "\"Programs can sign in with this key\" (identity.manageMethods setPrograms). Present on the types that support it (a Nostr key), off by default. Never on for a recovery method."
|
|
5936
|
+
}
|
|
5937
|
+
}
|
|
5938
|
+
},
|
|
5939
|
+
"pendingChange": {
|
|
5940
|
+
"type": "object",
|
|
5941
|
+
"description": "A change that waits for its time (a method's removal or the account's deletion, 7 days; the account's first recovery mark, 24 hours). Any of the account's methods, a frozen one too, can cancel it until then; a wait during which one of the account's methods was frozen (and not lifted early by a recovery method) is dropped when it runs out, not completed.",
|
|
5942
|
+
"required": [
|
|
5943
|
+
"id",
|
|
5944
|
+
"kind",
|
|
5945
|
+
"createdAt",
|
|
5946
|
+
"dueAt"
|
|
5947
|
+
],
|
|
5948
|
+
"properties": {
|
|
5949
|
+
"id": {
|
|
5950
|
+
"type": "string",
|
|
5951
|
+
"maxLength": 64
|
|
5952
|
+
},
|
|
5953
|
+
"kind": {
|
|
5954
|
+
"type": "string",
|
|
5955
|
+
"knownValues": [
|
|
5956
|
+
"removeMethod",
|
|
5957
|
+
"deleteAccount",
|
|
5958
|
+
"markRecovery"
|
|
5959
|
+
]
|
|
5960
|
+
},
|
|
5961
|
+
"method": {
|
|
5962
|
+
"type": "string",
|
|
5963
|
+
"maxLength": 64,
|
|
5964
|
+
"description": "The method it removes or marks."
|
|
5965
|
+
},
|
|
5966
|
+
"createdAt": {
|
|
5967
|
+
"type": "string",
|
|
5968
|
+
"format": "datetime"
|
|
5969
|
+
},
|
|
5970
|
+
"dueAt": {
|
|
5971
|
+
"type": "string",
|
|
5972
|
+
"format": "datetime"
|
|
5802
5973
|
}
|
|
5803
5974
|
}
|
|
5804
5975
|
},
|
|
@@ -5995,6 +6166,22 @@ export const catalog = {
|
|
|
5995
6166
|
{
|
|
5996
6167
|
"name": "InvalidCode",
|
|
5997
6168
|
"description": "The code is wrong, expired or used up, or the challenge is not the caller's."
|
|
6169
|
+
},
|
|
6170
|
+
{
|
|
6171
|
+
"name": "RateLimitExceeded",
|
|
6172
|
+
"description": "A phone code: the provider that sent it is refusing more checks for this number for now (HTTP 429). Wait a few minutes."
|
|
6173
|
+
},
|
|
6174
|
+
{
|
|
6175
|
+
"name": "MethodFrozen",
|
|
6176
|
+
"description": "The channel was frozen on its account since the code was sent, or it would be new to the caller's account while one of its methods is frozen (HTTP 403)."
|
|
6177
|
+
},
|
|
6178
|
+
{
|
|
6179
|
+
"name": "ProtectedAccount",
|
|
6180
|
+
"description": "The channel signs in to another account, and one of the two has a recovery mark, a live freeze, a pending change, or a passkey, Nostr key or recovery codes (HTTP 409): no fold or link is offered."
|
|
6181
|
+
},
|
|
6182
|
+
{
|
|
6183
|
+
"name": "UpstreamFailure",
|
|
6184
|
+
"description": "A phone code: the provider that sent it could not be asked whether it matches (HTTP 502). The code is not spent; try again."
|
|
5998
6185
|
}
|
|
5999
6186
|
]
|
|
6000
6187
|
},
|
|
@@ -6103,6 +6290,10 @@ export const catalog = {
|
|
|
6103
6290
|
"name": "InvalidToken",
|
|
6104
6291
|
"description": "The token is unknown, used, expired, or was issued to another session."
|
|
6105
6292
|
},
|
|
6293
|
+
{
|
|
6294
|
+
"name": "ProtectedAccount",
|
|
6295
|
+
"description": "One of the two accounts has a recovery mark, a live freeze, a pending change, or a passkey, Nostr key or recovery codes since the offer (HTTP 409)."
|
|
6296
|
+
},
|
|
6106
6297
|
{
|
|
6107
6298
|
"name": "NotEmpty",
|
|
6108
6299
|
"description": "The account to fold gained a record or is 7 days old or more; link instead."
|
|
@@ -6117,14 +6308,14 @@ export const catalog = {
|
|
|
6117
6308
|
"name": "draft.identity.holdForPhone",
|
|
6118
6309
|
"group": "pub.techne",
|
|
6119
6310
|
"kind": "procedure",
|
|
6120
|
-
"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
|
|
6311
|
+
"description": "Hold a write until someone proves a phone number: when an account proves `phone`, the platform fills every string value exactly \"$subject\" in `write.record` (and \"$subject\" in `write.rkey`) with that account's DID, every value exactly \"$now\" in the record with the time and every value exactly \"$name\" with that account's name (its public pub.techne.draft.actor.profile displayName, trimmed, at most 64 graphemes, else its handle; a write waits until one is known), and writes the record as `actAs` in `write.space` with what it holds for that account. Only the number's keyed hash is kept; the template may not contain the number. Every hold is answered alike, whether or not the number already has an account: one that has is released the next time it is proved (each phone sign-in proves it), never at once, so nothing here says whether a number has an account or whose it is. The caller must be able to write as `actAs` (its own DID, a collective or circle whose own member space (`space.collective.member/self`) it manages, or a collective it made that has nothing placed yet), now and again when the number is proved; a hold whose caller no longer may, or with a block either way between the new account and the caller or `actAs`, is dropped unwritten, as is one whose record the space does not admit. The record must be one permissioned.putRecord would take with the caller's DID in the slot, and must carry the slot. The nightly sweep deletes a hold 180 days after it was made. Holding again with the same number, `actAs`, `collection`, `space`, `rkey` and record `space` answers the existing hold unchanged (the first template wins; withdraw it with releasePhoneHold and hold again to change it). The template is shown to everyone who may write as `actAs` and read `space` (listPhoneHolds). Identity knows nothing about what the record means. Any signed-in DID; one call spends one of the caller's writes.",
|
|
6121
6312
|
"doc": ({
|
|
6122
6313
|
"lexicon": 1,
|
|
6123
6314
|
"id": "pub.techne.draft.identity.holdForPhone",
|
|
6124
6315
|
"defs": {
|
|
6125
6316
|
"main": {
|
|
6126
6317
|
"type": "procedure",
|
|
6127
|
-
"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
|
|
6318
|
+
"description": "Hold a write until someone proves a phone number: when an account proves `phone`, the platform fills every string value exactly \"$subject\" in `write.record` (and \"$subject\" in `write.rkey`) with that account's DID, every value exactly \"$now\" in the record with the time and every value exactly \"$name\" with that account's name (its public pub.techne.draft.actor.profile displayName, trimmed, at most 64 graphemes, else its handle; a write waits until one is known), and writes the record as `actAs` in `write.space` with what it holds for that account. Only the number's keyed hash is kept; the template may not contain the number. Every hold is answered alike, whether or not the number already has an account: one that has is released the next time it is proved (each phone sign-in proves it), never at once, so nothing here says whether a number has an account or whose it is. The caller must be able to write as `actAs` (its own DID, a collective or circle whose own member space (`space.collective.member/self`) it manages, or a collective it made that has nothing placed yet), now and again when the number is proved; a hold whose caller no longer may, or with a block either way between the new account and the caller or `actAs`, is dropped unwritten, as is one whose record the space does not admit. The record must be one permissioned.putRecord would take with the caller's DID in the slot, and must carry the slot. The nightly sweep deletes a hold 180 days after it was made. Holding again with the same number, `actAs`, `collection`, `space`, `rkey` and record `space` answers the existing hold unchanged (the first template wins; withdraw it with releasePhoneHold and hold again to change it). The template is shown to everyone who may write as `actAs` and read `space` (listPhoneHolds). Identity knows nothing about what the record means. Any signed-in DID; one call spends one of the caller's writes.",
|
|
6128
6319
|
"input": {
|
|
6129
6320
|
"encoding": "application/json",
|
|
6130
6321
|
"schema": {
|
|
@@ -6209,7 +6400,7 @@ export const catalog = {
|
|
|
6209
6400
|
},
|
|
6210
6401
|
"record": {
|
|
6211
6402
|
"type": "unknown",
|
|
6212
|
-
"description": "The record, with the \"$subject\" (and optionally \"$now\") slots as string values."
|
|
6403
|
+
"description": "The record, with the \"$subject\" (and optionally \"$now\" and \"$name\") slots as string values."
|
|
6213
6404
|
}
|
|
6214
6405
|
}
|
|
6215
6406
|
}
|
|
@@ -6274,6 +6465,10 @@ export const catalog = {
|
|
|
6274
6465
|
"name": "InvalidToken",
|
|
6275
6466
|
"description": "The token is unknown, used, expired, or was issued to another session."
|
|
6276
6467
|
},
|
|
6468
|
+
{
|
|
6469
|
+
"name": "ProtectedAccount",
|
|
6470
|
+
"description": "One of the two accounts has a recovery mark, a live freeze, a pending change, or a passkey, Nostr key or recovery codes since the offer (HTTP 409)."
|
|
6471
|
+
},
|
|
6277
6472
|
{
|
|
6278
6473
|
"name": "InvalidRequest",
|
|
6279
6474
|
"description": "`primary` names neither account, or the other account's keys are not held here (sign in to it and link from there)."
|
|
@@ -6632,14 +6827,23 @@ export const catalog = {
|
|
|
6632
6827
|
"name": "draft.identity.listMethods",
|
|
6633
6828
|
"group": "pub.techne",
|
|
6634
6829
|
"kind": "query",
|
|
6635
|
-
"description": "The caller's sign-in methods (masked) and the account's alias links. Signed-in members only.",
|
|
6830
|
+
"description": "The caller's sign-in methods (masked, with their recovery mark and freeze), its pending changes, and the account's alias links. Emails and phones only unless `allTypes` (shipped clients label every row as an email). Signed-in members only.",
|
|
6636
6831
|
"doc": ({
|
|
6637
6832
|
"lexicon": 1,
|
|
6638
6833
|
"id": "pub.techne.draft.identity.listMethods",
|
|
6639
6834
|
"defs": {
|
|
6640
6835
|
"main": {
|
|
6641
6836
|
"type": "query",
|
|
6642
|
-
"description": "The caller's sign-in methods (masked) and the account's alias links. Signed-in members only.",
|
|
6837
|
+
"description": "The caller's sign-in methods (masked, with their recovery mark and freeze), its pending changes, and the account's alias links. Emails and phones only unless `allTypes` (shipped clients label every row as an email). Signed-in members only.",
|
|
6838
|
+
"parameters": {
|
|
6839
|
+
"type": "params",
|
|
6840
|
+
"properties": {
|
|
6841
|
+
"allTypes": {
|
|
6842
|
+
"type": "boolean",
|
|
6843
|
+
"description": "Also list passkeys, Nostr keys and the recovery-code set."
|
|
6844
|
+
}
|
|
6845
|
+
}
|
|
6846
|
+
},
|
|
6643
6847
|
"output": {
|
|
6644
6848
|
"encoding": "application/json",
|
|
6645
6849
|
"schema": {
|
|
@@ -6662,6 +6866,14 @@ export const catalog = {
|
|
|
6662
6866
|
"type": "ref",
|
|
6663
6867
|
"ref": "pub.techne.draft.identity.defs#linkView"
|
|
6664
6868
|
}
|
|
6869
|
+
},
|
|
6870
|
+
"pending": {
|
|
6871
|
+
"type": "array",
|
|
6872
|
+
"description": "The account's pending changes, soonest first (the account page shows them at the top, with Cancel).",
|
|
6873
|
+
"items": {
|
|
6874
|
+
"type": "ref",
|
|
6875
|
+
"ref": "pub.techne.draft.identity.defs#pendingChange"
|
|
6876
|
+
}
|
|
6665
6877
|
}
|
|
6666
6878
|
}
|
|
6667
6879
|
}
|
|
@@ -6787,7 +6999,651 @@ export const catalog = {
|
|
|
6787
6999
|
"type": "string",
|
|
6788
7000
|
"description": "On a hold the caller asked for, the name the caller saved for its number: the `name` of the caller's own active `contact` on that number (the newest, when there are several), read when the listing is made. Never on a hold someone else asked for, and nothing of it is stored on the hold."
|
|
6789
7001
|
}
|
|
6790
|
-
}
|
|
7002
|
+
}
|
|
7003
|
+
}
|
|
7004
|
+
}
|
|
7005
|
+
})
|
|
7006
|
+
},
|
|
7007
|
+
{
|
|
7008
|
+
"nsid": "pub.techne.draft.identity.manageMethods",
|
|
7009
|
+
"name": "draft.identity.manageMethods",
|
|
7010
|
+
"group": "pub.techne",
|
|
7011
|
+
"kind": "procedure",
|
|
7012
|
+
"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 notice to every method, cancellable by any of them, 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 notice. Ops: `list` (methods, pending changes, `hasRecovery`), `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` with an `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), ProtectedAccount when either account has a recovery mark, a freeze, a pending change, or a passkey, Nostr key or recovery codes), `fold` and `link` (take that offer: `token`, and for `link` the `primary`; need 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`), or `linked` with `link`), `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), for the notice queue (no `did`; only the accounts the calling PDS hosts; the platform emails those of accounts hosted elsewhere itself) `notices` (up to 100 to deliver; one taken and not confirmed is offered again after 5 minutes, at most 10 times) and `noticesSent`, 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.",
|
|
7013
|
+
"doc": ({
|
|
7014
|
+
"lexicon": 1,
|
|
7015
|
+
"id": "pub.techne.draft.identity.manageMethods",
|
|
7016
|
+
"defs": {
|
|
7017
|
+
"main": {
|
|
7018
|
+
"type": "procedure",
|
|
7019
|
+
"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 notice to every method, cancellable by any of them, 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 notice. Ops: `list` (methods, pending changes, `hasRecovery`), `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` with an `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), ProtectedAccount when either account has a recovery mark, a freeze, a pending change, or a passkey, Nostr key or recovery codes), `fold` and `link` (take that offer: `token`, and for `link` the `primary`; need 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`), or `linked` with `link`), `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), for the notice queue (no `did`; only the accounts the calling PDS hosts; the platform emails those of accounts hosted elsewhere itself) `notices` (up to 100 to deliver; one taken and not confirmed is offered again after 5 minutes, at most 10 times) and `noticesSent`, 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.",
|
|
7020
|
+
"input": {
|
|
7021
|
+
"encoding": "application/json",
|
|
7022
|
+
"schema": {
|
|
7023
|
+
"type": "object",
|
|
7024
|
+
"required": [
|
|
7025
|
+
"v",
|
|
7026
|
+
"op"
|
|
7027
|
+
],
|
|
7028
|
+
"properties": {
|
|
7029
|
+
"v": {
|
|
7030
|
+
"type": "integer",
|
|
7031
|
+
"const": 1
|
|
7032
|
+
},
|
|
7033
|
+
"op": {
|
|
7034
|
+
"type": "string",
|
|
7035
|
+
"knownValues": [
|
|
7036
|
+
"list",
|
|
7037
|
+
"signInMethods",
|
|
7038
|
+
"sendTo",
|
|
7039
|
+
"remove",
|
|
7040
|
+
"cancel",
|
|
7041
|
+
"freeze",
|
|
7042
|
+
"unfreeze",
|
|
7043
|
+
"mark",
|
|
7044
|
+
"unmark",
|
|
7045
|
+
"signOut",
|
|
7046
|
+
"delete",
|
|
7047
|
+
"addExternal",
|
|
7048
|
+
"newRecoveryCodes",
|
|
7049
|
+
"redeemCode",
|
|
7050
|
+
"setPrograms",
|
|
7051
|
+
"importBackupEmails",
|
|
7052
|
+
"findKey",
|
|
7053
|
+
"notices",
|
|
7054
|
+
"noticesSent",
|
|
7055
|
+
"dueDeletes",
|
|
7056
|
+
"dueDeletesDone",
|
|
7057
|
+
"addChannel",
|
|
7058
|
+
"fold",
|
|
7059
|
+
"link",
|
|
7060
|
+
"operator"
|
|
7061
|
+
]
|
|
7062
|
+
},
|
|
7063
|
+
"did": {
|
|
7064
|
+
"type": "string",
|
|
7065
|
+
"format": "did",
|
|
7066
|
+
"description": "The signed-in account. Required for every op but `notices`, `noticesSent`, `dueDeletes` and `dueDeletesDone`."
|
|
7067
|
+
},
|
|
7068
|
+
"stepUp": {
|
|
7069
|
+
"type": "ref",
|
|
7070
|
+
"ref": "#stepUp"
|
|
7071
|
+
},
|
|
7072
|
+
"method": {
|
|
7073
|
+
"type": "string",
|
|
7074
|
+
"maxLength": 64,
|
|
7075
|
+
"description": "The method acted on (its `id` in `list` or `signInMethods`)."
|
|
7076
|
+
},
|
|
7077
|
+
"pending": {
|
|
7078
|
+
"type": "string",
|
|
7079
|
+
"maxLength": 64,
|
|
7080
|
+
"description": "The pending change `cancel` cancels."
|
|
7081
|
+
},
|
|
7082
|
+
"signOut": {
|
|
7083
|
+
"type": "boolean",
|
|
7084
|
+
"description": "With `freeze`: also sign out everywhere."
|
|
7085
|
+
},
|
|
7086
|
+
"external": {
|
|
7087
|
+
"type": "ref",
|
|
7088
|
+
"ref": "#external"
|
|
7089
|
+
},
|
|
7090
|
+
"code": {
|
|
7091
|
+
"type": "string",
|
|
7092
|
+
"maxLength": 64,
|
|
7093
|
+
"description": "A recovery code, for `redeemCode`."
|
|
7094
|
+
},
|
|
7095
|
+
"ids": {
|
|
7096
|
+
"type": "array",
|
|
7097
|
+
"maxLength": 100,
|
|
7098
|
+
"items": {
|
|
7099
|
+
"type": "integer"
|
|
7100
|
+
},
|
|
7101
|
+
"description": "Notice ids, for `noticesSent`."
|
|
7102
|
+
},
|
|
7103
|
+
"emails": {
|
|
7104
|
+
"type": "array",
|
|
7105
|
+
"maxLength": 10,
|
|
7106
|
+
"items": {
|
|
7107
|
+
"type": "string",
|
|
7108
|
+
"maxLength": 320
|
|
7109
|
+
},
|
|
7110
|
+
"description": "Retired, not read: a bare list has no verification dates, so the cutoff can't hold. importBackupEmails without `backupEmails` is 400 InvalidRequest."
|
|
7111
|
+
},
|
|
7112
|
+
"backupEmails": {
|
|
7113
|
+
"type": "array",
|
|
7114
|
+
"maxLength": 10,
|
|
7115
|
+
"items": {
|
|
7116
|
+
"type": "ref",
|
|
7117
|
+
"ref": "#backupEmail"
|
|
7118
|
+
},
|
|
7119
|
+
"description": "importBackupEmails: the account's verified backup email addresses, all of them, each with when the PDS verified it."
|
|
7120
|
+
},
|
|
7121
|
+
"dids": {
|
|
7122
|
+
"type": "array",
|
|
7123
|
+
"maxLength": 100,
|
|
7124
|
+
"items": {
|
|
7125
|
+
"type": "string",
|
|
7126
|
+
"format": "did"
|
|
7127
|
+
},
|
|
7128
|
+
"description": "dueDeletesDone: the accounts whose PDS account was deleted."
|
|
7129
|
+
},
|
|
7130
|
+
"channel": {
|
|
7131
|
+
"type": "ref",
|
|
7132
|
+
"ref": "pub.techne.draft.identity.defs#channel",
|
|
7133
|
+
"description": "addChannel: the email or phone the PDS just proved (a code it sent and checked)."
|
|
7134
|
+
},
|
|
7135
|
+
"token": {
|
|
7136
|
+
"type": "string",
|
|
7137
|
+
"maxLength": 128,
|
|
7138
|
+
"description": "fold / link: the offer's token from addChannel."
|
|
7139
|
+
},
|
|
7140
|
+
"primary": {
|
|
7141
|
+
"type": "string",
|
|
7142
|
+
"format": "did",
|
|
7143
|
+
"description": "link: which of the two accounts is the primary."
|
|
7144
|
+
},
|
|
7145
|
+
"on": {
|
|
7146
|
+
"type": "boolean",
|
|
7147
|
+
"description": "setPrograms: on or off."
|
|
7148
|
+
},
|
|
7149
|
+
"program": {
|
|
7150
|
+
"type": "boolean",
|
|
7151
|
+
"description": "A program made this request: a session or token the PDS's programmatic sign-in opened. Account security is refused (ProgramRefused)."
|
|
7152
|
+
}
|
|
7153
|
+
}
|
|
7154
|
+
}
|
|
7155
|
+
},
|
|
7156
|
+
"output": {
|
|
7157
|
+
"encoding": "application/json",
|
|
7158
|
+
"schema": {
|
|
7159
|
+
"type": "object",
|
|
7160
|
+
"required": [
|
|
7161
|
+
"v"
|
|
7162
|
+
],
|
|
7163
|
+
"properties": {
|
|
7164
|
+
"v": {
|
|
7165
|
+
"type": "integer",
|
|
7166
|
+
"const": 1
|
|
7167
|
+
},
|
|
7168
|
+
"status": {
|
|
7169
|
+
"type": "string",
|
|
7170
|
+
"knownValues": [
|
|
7171
|
+
"done",
|
|
7172
|
+
"pending",
|
|
7173
|
+
"deleted",
|
|
7174
|
+
"deleting",
|
|
7175
|
+
"bound",
|
|
7176
|
+
"invalid",
|
|
7177
|
+
"hasRecovery",
|
|
7178
|
+
"indexOff",
|
|
7179
|
+
"alreadyImported",
|
|
7180
|
+
"added",
|
|
7181
|
+
"alreadyYours",
|
|
7182
|
+
"boundElsewhere",
|
|
7183
|
+
"unavailable",
|
|
7184
|
+
"folded",
|
|
7185
|
+
"linked",
|
|
7186
|
+
"none"
|
|
7187
|
+
],
|
|
7188
|
+
"description": "`done`: it happened now. `pending`: it waits (`pending`). `deleted` / `deleting` (`delete` done now): the account is gone / its local half is gone and a sweep finishes the rest (deleteAccount's `deleted` / `pending`; a deletion that could not start answers 503 Unavailable, try again). `bound`: addExternal's key is on another account. `invalid`: redeemCode's code is wrong, used, or the set is not a recovery method or is frozen. `hasRecovery`: importBackupEmails found a recovery method on the account; nothing changed. `indexOff`: importBackupEmails can't mark anything while the identity index is off; nothing changed. `alreadyImported`: importBackupEmails ran for this account before; nothing changed. `added` / `alreadyYours` / `boundElsewhere` / `unavailable`: addChannel, as identity.finishAddMethod. `folded` / `linked`: fold / link done. `none`: findKey's key is no method of an account the calling PDS hosts."
|
|
7189
|
+
},
|
|
7190
|
+
"pending": {
|
|
7191
|
+
"type": "ref",
|
|
7192
|
+
"ref": "pub.techne.draft.identity.defs#pendingChange"
|
|
7193
|
+
},
|
|
7194
|
+
"method": {
|
|
7195
|
+
"type": "string",
|
|
7196
|
+
"description": "addExternal's new method id, the recovery-code set redeemCode used, or addChannel's method id when `added` or `alreadyYours` (empty while the identity index is off); findKey's method id of the key."
|
|
7197
|
+
},
|
|
7198
|
+
"codes": {
|
|
7199
|
+
"type": "array",
|
|
7200
|
+
"items": {
|
|
7201
|
+
"type": "string"
|
|
7202
|
+
},
|
|
7203
|
+
"description": "newRecoveryCodes: the codes, shown once."
|
|
7204
|
+
},
|
|
7205
|
+
"methods": {
|
|
7206
|
+
"type": "array",
|
|
7207
|
+
"items": {
|
|
7208
|
+
"type": "ref",
|
|
7209
|
+
"ref": "pub.techne.draft.identity.defs#methodView"
|
|
7210
|
+
}
|
|
7211
|
+
},
|
|
7212
|
+
"hasRecovery": {
|
|
7213
|
+
"type": "boolean"
|
|
7214
|
+
},
|
|
7215
|
+
"notices": {
|
|
7216
|
+
"type": "array",
|
|
7217
|
+
"items": {
|
|
7218
|
+
"type": "ref",
|
|
7219
|
+
"ref": "#notice"
|
|
7220
|
+
}
|
|
7221
|
+
},
|
|
7222
|
+
"count": {
|
|
7223
|
+
"type": "integer",
|
|
7224
|
+
"description": "noticesSent / dueDeletesDone: how many were confirmed."
|
|
7225
|
+
},
|
|
7226
|
+
"signInMethods": {
|
|
7227
|
+
"type": "array",
|
|
7228
|
+
"items": {
|
|
7229
|
+
"type": "ref",
|
|
7230
|
+
"ref": "#signInMethod"
|
|
7231
|
+
},
|
|
7232
|
+
"description": "signInMethods: the account's methods that can sign in now (not frozen), oldest first."
|
|
7233
|
+
},
|
|
7234
|
+
"to": {
|
|
7235
|
+
"type": "ref",
|
|
7236
|
+
"ref": "#noticeTo",
|
|
7237
|
+
"description": "sendTo: where the code goes, in full."
|
|
7238
|
+
},
|
|
7239
|
+
"imported": {
|
|
7240
|
+
"type": "array",
|
|
7241
|
+
"items": {
|
|
7242
|
+
"type": "ref",
|
|
7243
|
+
"ref": "#importedEmail"
|
|
7244
|
+
},
|
|
7245
|
+
"description": "importBackupEmails: each address sent, with what happened to it."
|
|
7246
|
+
},
|
|
7247
|
+
"dueDeletes": {
|
|
7248
|
+
"type": "array",
|
|
7249
|
+
"items": {
|
|
7250
|
+
"type": "ref",
|
|
7251
|
+
"ref": "#dueDelete"
|
|
7252
|
+
},
|
|
7253
|
+
"description": "dueDeletes: accounts to delete on the PDS, oldest first."
|
|
7254
|
+
},
|
|
7255
|
+
"offer": {
|
|
7256
|
+
"type": "ref",
|
|
7257
|
+
"ref": "pub.techne.draft.identity.finishAddMethod#offer",
|
|
7258
|
+
"description": "addChannel `boundElsewhere`: what `did` can do, with `fold` or `link`."
|
|
7259
|
+
},
|
|
7260
|
+
"did": {
|
|
7261
|
+
"type": "string",
|
|
7262
|
+
"format": "did",
|
|
7263
|
+
"description": "fold: the kept account. findKey: the account the key signs in to."
|
|
7264
|
+
},
|
|
7265
|
+
"emptied": {
|
|
7266
|
+
"type": "string",
|
|
7267
|
+
"format": "did",
|
|
7268
|
+
"description": "fold: the account folded in and deleted."
|
|
7269
|
+
},
|
|
7270
|
+
"link": {
|
|
7271
|
+
"type": "ref",
|
|
7272
|
+
"ref": "pub.techne.draft.identity.defs#linkView",
|
|
7273
|
+
"description": "link: the link, from `did`'s side."
|
|
7274
|
+
},
|
|
7275
|
+
"frozen": {
|
|
7276
|
+
"type": "boolean",
|
|
7277
|
+
"description": "findKey: the key's method is frozen now and can't sign in."
|
|
7278
|
+
},
|
|
7279
|
+
"programs": {
|
|
7280
|
+
"type": "boolean",
|
|
7281
|
+
"description": "findKey: \"Programs can sign in with this key\" is on."
|
|
7282
|
+
},
|
|
7283
|
+
"operator": {
|
|
7284
|
+
"type": "boolean",
|
|
7285
|
+
"description": "operator: whether `did` is one of the platform's operators."
|
|
7286
|
+
}
|
|
7287
|
+
}
|
|
7288
|
+
}
|
|
7289
|
+
},
|
|
7290
|
+
"errors": [
|
|
7291
|
+
{
|
|
7292
|
+
"name": "BadSignature"
|
|
7293
|
+
},
|
|
7294
|
+
{
|
|
7295
|
+
"name": "InvalidRequest"
|
|
7296
|
+
},
|
|
7297
|
+
{
|
|
7298
|
+
"name": "UnknownAccount"
|
|
7299
|
+
},
|
|
7300
|
+
{
|
|
7301
|
+
"name": "RateLimitExceeded"
|
|
7302
|
+
},
|
|
7303
|
+
{
|
|
7304
|
+
"name": "Unavailable",
|
|
7305
|
+
"description": "Try again (`redeemCode` and `newRecoveryCodes` also while the platform's identity keys are not loaded)."
|
|
7306
|
+
},
|
|
7307
|
+
{
|
|
7308
|
+
"name": "NotFound",
|
|
7309
|
+
"description": "No such method or pending change on the account."
|
|
7310
|
+
},
|
|
7311
|
+
{
|
|
7312
|
+
"name": "NotYourMethod",
|
|
7313
|
+
"description": "The step-up names a method that is not the account's."
|
|
7314
|
+
},
|
|
7315
|
+
{
|
|
7316
|
+
"name": "LastMethod",
|
|
7317
|
+
"description": "It would leave no way to sign in."
|
|
7318
|
+
},
|
|
7319
|
+
{
|
|
7320
|
+
"name": "RecoveryProtected",
|
|
7321
|
+
"description": "Only a recovery method can do this to a recovery method."
|
|
7322
|
+
},
|
|
7323
|
+
{
|
|
7324
|
+
"name": "NeedsRecoveryMethod",
|
|
7325
|
+
"description": "Needs a fresh step-up of a recovery method."
|
|
7326
|
+
},
|
|
7327
|
+
{
|
|
7328
|
+
"name": "StepUpRequired",
|
|
7329
|
+
"description": "Needs a fresh step-up (an account's first recovery mark, `newRecoveryCodes`, `fold` and `link` included)."
|
|
7330
|
+
},
|
|
7331
|
+
{
|
|
7332
|
+
"name": "SameMethod",
|
|
7333
|
+
"description": "A method cannot freeze itself."
|
|
7334
|
+
},
|
|
7335
|
+
{
|
|
7336
|
+
"name": "MethodFrozen",
|
|
7337
|
+
"description": "The acting method is frozen (for `sendTo`: the method named is; for `addChannel`: the channel is, on whichever account, or the channel would be new to `did` while one of its methods is frozen; for `addExternal`, a first `newRecoveryCodes` set and `importBackupEmails`: one of `did`'s methods is frozen, and the message says so)."
|
|
7338
|
+
},
|
|
7339
|
+
{
|
|
7340
|
+
"name": "InvalidToken",
|
|
7341
|
+
"description": "fold / link: the offer is unknown, used, expired, for the other action, or not made to `did` on this hook."
|
|
7342
|
+
},
|
|
7343
|
+
{
|
|
7344
|
+
"name": "ProtectedAccount",
|
|
7345
|
+
"description": "addChannel / fold / link: one of the two accounts has a recovery mark, a live freeze, a pending change, or a passkey, Nostr key or recovery codes; it is never folded or linked (HTTP 409)."
|
|
7346
|
+
},
|
|
7347
|
+
{
|
|
7348
|
+
"name": "NotEmpty",
|
|
7349
|
+
"description": "fold: the account to fold gained a record or is 7 days old or more; link instead (HTTP 409)."
|
|
7350
|
+
},
|
|
7351
|
+
{
|
|
7352
|
+
"name": "ProgramRefused",
|
|
7353
|
+
"description": "A program asked (`program`, or a step-up by a key with programs on): account security needs a person on a method no program holds."
|
|
7354
|
+
},
|
|
7355
|
+
{
|
|
7356
|
+
"name": "ProgramsOn",
|
|
7357
|
+
"description": "mark: the key has programs on; turn that off first (HTTP 409)."
|
|
7358
|
+
},
|
|
7359
|
+
{
|
|
7360
|
+
"name": "IsRecovery",
|
|
7361
|
+
"description": "setPrograms on: the method is a recovery method, or its first mark is waiting (HTTP 409)."
|
|
7362
|
+
}
|
|
7363
|
+
]
|
|
7364
|
+
},
|
|
7365
|
+
"stepUp": {
|
|
7366
|
+
"type": "object",
|
|
7367
|
+
"description": "What the PDS's step-up proved.",
|
|
7368
|
+
"required": [
|
|
7369
|
+
"method",
|
|
7370
|
+
"provedAt"
|
|
7371
|
+
],
|
|
7372
|
+
"properties": {
|
|
7373
|
+
"method": {
|
|
7374
|
+
"type": "ref",
|
|
7375
|
+
"ref": "#provedMethod"
|
|
7376
|
+
},
|
|
7377
|
+
"provedAt": {
|
|
7378
|
+
"type": "string",
|
|
7379
|
+
"format": "datetime"
|
|
7380
|
+
}
|
|
7381
|
+
}
|
|
7382
|
+
},
|
|
7383
|
+
"external": {
|
|
7384
|
+
"type": "object",
|
|
7385
|
+
"required": [
|
|
7386
|
+
"type",
|
|
7387
|
+
"ref"
|
|
7388
|
+
],
|
|
7389
|
+
"properties": {
|
|
7390
|
+
"type": {
|
|
7391
|
+
"type": "string",
|
|
7392
|
+
"knownValues": [
|
|
7393
|
+
"passkey",
|
|
7394
|
+
"nostr"
|
|
7395
|
+
]
|
|
7396
|
+
},
|
|
7397
|
+
"ref": {
|
|
7398
|
+
"type": "string",
|
|
7399
|
+
"maxLength": 512,
|
|
7400
|
+
"description": "The passkey credential id, or the Nostr key (hex)."
|
|
7401
|
+
},
|
|
7402
|
+
"label": {
|
|
7403
|
+
"type": "string",
|
|
7404
|
+
"maxLength": 128
|
|
7405
|
+
}
|
|
7406
|
+
}
|
|
7407
|
+
},
|
|
7408
|
+
"notice": {
|
|
7409
|
+
"type": "object",
|
|
7410
|
+
"required": [
|
|
7411
|
+
"id",
|
|
7412
|
+
"did",
|
|
7413
|
+
"event",
|
|
7414
|
+
"to",
|
|
7415
|
+
"createdAt"
|
|
7416
|
+
],
|
|
7417
|
+
"properties": {
|
|
7418
|
+
"id": {
|
|
7419
|
+
"type": "integer"
|
|
7420
|
+
},
|
|
7421
|
+
"did": {
|
|
7422
|
+
"type": "string",
|
|
7423
|
+
"format": "did"
|
|
7424
|
+
},
|
|
7425
|
+
"event": {
|
|
7426
|
+
"type": "string",
|
|
7427
|
+
"knownValues": [
|
|
7428
|
+
"removeMethod",
|
|
7429
|
+
"deleteAccount",
|
|
7430
|
+
"markRecovery",
|
|
7431
|
+
"freeze",
|
|
7432
|
+
"waitDropped",
|
|
7433
|
+
"programsOn"
|
|
7434
|
+
],
|
|
7435
|
+
"description": "What the notice is about: a change that started to wait (`removeMethod`, `deleteAccount`, `markRecovery`), a `freeze`, `waitDropped`: the change in `pending` was not completed because one of the account's methods was frozen during its wait, or `programsOn`: programs can now sign in with one of the account's Nostr keys (`setPrograms` on; no `pending`)."
|
|
7436
|
+
},
|
|
7437
|
+
"to": {
|
|
7438
|
+
"type": "ref",
|
|
7439
|
+
"ref": "#noticeTo"
|
|
7440
|
+
},
|
|
7441
|
+
"pending": {
|
|
7442
|
+
"type": "ref",
|
|
7443
|
+
"ref": "pub.techne.draft.identity.defs#pendingChange"
|
|
7444
|
+
},
|
|
7445
|
+
"createdAt": {
|
|
7446
|
+
"type": "string",
|
|
7447
|
+
"format": "datetime"
|
|
7448
|
+
}
|
|
7449
|
+
}
|
|
7450
|
+
},
|
|
7451
|
+
"provedMethod": {
|
|
7452
|
+
"type": "object",
|
|
7453
|
+
"required": [
|
|
7454
|
+
"type"
|
|
7455
|
+
],
|
|
7456
|
+
"properties": {
|
|
7457
|
+
"type": {
|
|
7458
|
+
"type": "string",
|
|
7459
|
+
"knownValues": [
|
|
7460
|
+
"email",
|
|
7461
|
+
"phone",
|
|
7462
|
+
"passkey",
|
|
7463
|
+
"nostr",
|
|
7464
|
+
"recoveryCodes"
|
|
7465
|
+
]
|
|
7466
|
+
},
|
|
7467
|
+
"value": {
|
|
7468
|
+
"type": "string",
|
|
7469
|
+
"maxLength": 512,
|
|
7470
|
+
"description": "The email or E.164 phone, the passkey credential id, or the Nostr key (hex). None for recoveryCodes."
|
|
7471
|
+
}
|
|
7472
|
+
}
|
|
7473
|
+
},
|
|
7474
|
+
"noticeTo": {
|
|
7475
|
+
"type": "object",
|
|
7476
|
+
"required": [
|
|
7477
|
+
"type",
|
|
7478
|
+
"value"
|
|
7479
|
+
],
|
|
7480
|
+
"properties": {
|
|
7481
|
+
"type": {
|
|
7482
|
+
"type": "string",
|
|
7483
|
+
"knownValues": [
|
|
7484
|
+
"email",
|
|
7485
|
+
"phone",
|
|
7486
|
+
"nostr"
|
|
7487
|
+
]
|
|
7488
|
+
},
|
|
7489
|
+
"value": {
|
|
7490
|
+
"type": "string"
|
|
7491
|
+
}
|
|
7492
|
+
}
|
|
7493
|
+
},
|
|
7494
|
+
"signInMethod": {
|
|
7495
|
+
"type": "object",
|
|
7496
|
+
"description": "One way to sign in, as a page may show it before anyone has signed in: an email as `***a@***e.***m` (the last character of each dot-separated part), a phone as `•••• 97` (its last two digits), a passkey or Nostr key by its label.",
|
|
7497
|
+
"required": [
|
|
7498
|
+
"id",
|
|
7499
|
+
"type",
|
|
7500
|
+
"display"
|
|
7501
|
+
],
|
|
7502
|
+
"properties": {
|
|
7503
|
+
"id": {
|
|
7504
|
+
"type": "string",
|
|
7505
|
+
"description": "The method id (for `sendTo`, and the PDS's own passkey or Nostr challenge)."
|
|
7506
|
+
},
|
|
7507
|
+
"type": {
|
|
7508
|
+
"type": "string",
|
|
7509
|
+
"knownValues": [
|
|
7510
|
+
"email",
|
|
7511
|
+
"phone",
|
|
7512
|
+
"passkey",
|
|
7513
|
+
"nostr"
|
|
7514
|
+
]
|
|
7515
|
+
},
|
|
7516
|
+
"display": {
|
|
7517
|
+
"type": "string"
|
|
7518
|
+
}
|
|
7519
|
+
}
|
|
7520
|
+
},
|
|
7521
|
+
"importedEmail": {
|
|
7522
|
+
"type": "object",
|
|
7523
|
+
"required": [
|
|
7524
|
+
"email",
|
|
7525
|
+
"status"
|
|
7526
|
+
],
|
|
7527
|
+
"properties": {
|
|
7528
|
+
"email": {
|
|
7529
|
+
"type": "string"
|
|
7530
|
+
},
|
|
7531
|
+
"status": {
|
|
7532
|
+
"type": "string",
|
|
7533
|
+
"knownValues": [
|
|
7534
|
+
"marked",
|
|
7535
|
+
"boundElsewhere",
|
|
7536
|
+
"released",
|
|
7537
|
+
"invalid",
|
|
7538
|
+
"afterCutoff"
|
|
7539
|
+
],
|
|
7540
|
+
"description": "`marked`: an email method of the account now, marked for recovery. `boundElsewhere`: on another account, left there. `released`: the account removed it; only adding it again binds it back. `invalid`: not an email address. `afterCutoff`: verified at or after 2026-11-13T00:00:00Z, not imported (add it and mark it under the rules)."
|
|
7541
|
+
}
|
|
7542
|
+
},
|
|
7543
|
+
"description": "One address importBackupEmails was sent, with what happened to it."
|
|
7544
|
+
},
|
|
7545
|
+
"backupEmail": {
|
|
7546
|
+
"type": "object",
|
|
7547
|
+
"description": "One backup email importBackupEmails moves, with when the PDS verified it.",
|
|
7548
|
+
"required": [
|
|
7549
|
+
"email",
|
|
7550
|
+
"verifiedAt"
|
|
7551
|
+
],
|
|
7552
|
+
"properties": {
|
|
7553
|
+
"email": {
|
|
7554
|
+
"type": "string",
|
|
7555
|
+
"maxLength": 320
|
|
7556
|
+
},
|
|
7557
|
+
"verifiedAt": {
|
|
7558
|
+
"type": "string",
|
|
7559
|
+
"format": "datetime",
|
|
7560
|
+
"description": "When the PDS verified the address. Only one verified before 2026-11-13T00:00:00Z is imported."
|
|
7561
|
+
}
|
|
7562
|
+
}
|
|
7563
|
+
},
|
|
7564
|
+
"dueDelete": {
|
|
7565
|
+
"type": "object",
|
|
7566
|
+
"description": "An account whose scheduled deletion ran on the platform: the PDS deletes its PDS account, then confirms (`dueDeletesDone`). An account already gone from the PDS counts as deleted.",
|
|
7567
|
+
"required": [
|
|
7568
|
+
"did",
|
|
7569
|
+
"deletedAt"
|
|
7570
|
+
],
|
|
7571
|
+
"properties": {
|
|
7572
|
+
"did": {
|
|
7573
|
+
"type": "string",
|
|
7574
|
+
"format": "did"
|
|
7575
|
+
},
|
|
7576
|
+
"deletedAt": {
|
|
7577
|
+
"type": "string",
|
|
7578
|
+
"format": "datetime",
|
|
7579
|
+
"description": "When the platform deleted its side."
|
|
7580
|
+
}
|
|
7581
|
+
}
|
|
7582
|
+
}
|
|
7583
|
+
}
|
|
7584
|
+
})
|
|
7585
|
+
},
|
|
7586
|
+
{
|
|
7587
|
+
"nsid": "pub.techne.draft.identity.openAccountPage",
|
|
7588
|
+
"name": "draft.identity.openAccountPage",
|
|
7589
|
+
"group": "pub.techne",
|
|
7590
|
+
"kind": "procedure",
|
|
7591
|
+
"description": "A link that opens the caller's account page on their PDS already signed in, for an app to open in the system browser. The link works once, until `expiresAt` (60 seconds today). It signs in to view the page only: changing a sign-in method or deleting the account there still asks for a code or a passkey. Signed-in members only, from a browser or device session: any other bearer token (an agent token, an app's OAuth token, a program's token) is refused.",
|
|
7592
|
+
"doc": ({
|
|
7593
|
+
"lexicon": 1,
|
|
7594
|
+
"id": "pub.techne.draft.identity.openAccountPage",
|
|
7595
|
+
"defs": {
|
|
7596
|
+
"main": {
|
|
7597
|
+
"type": "procedure",
|
|
7598
|
+
"description": "A link that opens the caller's account page on their PDS already signed in, for an app to open in the system browser. The link works once, until `expiresAt` (60 seconds today). It signs in to view the page only: changing a sign-in method or deleting the account there still asks for a code or a passkey. Signed-in members only, from a browser or device session: any other bearer token (an agent token, an app's OAuth token, a program's token) is refused.",
|
|
7599
|
+
"output": {
|
|
7600
|
+
"encoding": "application/json",
|
|
7601
|
+
"schema": {
|
|
7602
|
+
"type": "object",
|
|
7603
|
+
"required": [
|
|
7604
|
+
"url",
|
|
7605
|
+
"expiresAt"
|
|
7606
|
+
],
|
|
7607
|
+
"properties": {
|
|
7608
|
+
"url": {
|
|
7609
|
+
"type": "string",
|
|
7610
|
+
"format": "uri",
|
|
7611
|
+
"maxLength": 2048,
|
|
7612
|
+
"description": "Open it once, before expiresAt."
|
|
7613
|
+
},
|
|
7614
|
+
"expiresAt": {
|
|
7615
|
+
"type": "string",
|
|
7616
|
+
"format": "datetime"
|
|
7617
|
+
}
|
|
7618
|
+
}
|
|
7619
|
+
}
|
|
7620
|
+
},
|
|
7621
|
+
"errors": [
|
|
7622
|
+
{
|
|
7623
|
+
"name": "AuthenticationRequired",
|
|
7624
|
+
"description": "No signed-in caller."
|
|
7625
|
+
},
|
|
7626
|
+
{
|
|
7627
|
+
"name": "NotAuthorized",
|
|
7628
|
+
"description": "The caller's bearer token is neither a device session nor an agent token, such as an app's OAuth token (HTTP 403)."
|
|
7629
|
+
},
|
|
7630
|
+
{
|
|
7631
|
+
"name": "ProgramRefused",
|
|
7632
|
+
"description": "The caller is an agent token or a program's token: neither opens the account page (HTTP 403)."
|
|
7633
|
+
},
|
|
7634
|
+
{
|
|
7635
|
+
"name": "NotFound",
|
|
7636
|
+
"description": "This server has no account page for the caller: its PDS is not ours, or none is set up (HTTP 404). Open the account page without a link."
|
|
7637
|
+
},
|
|
7638
|
+
{
|
|
7639
|
+
"name": "RateLimitExceeded",
|
|
7640
|
+
"description": "Too many links for this account (HTTP 429)."
|
|
7641
|
+
},
|
|
7642
|
+
{
|
|
7643
|
+
"name": "Unavailable",
|
|
7644
|
+
"description": "The PDS did not answer (HTTP 502). Open the account page without a link."
|
|
7645
|
+
}
|
|
7646
|
+
]
|
|
6791
7647
|
}
|
|
6792
7648
|
}
|
|
6793
7649
|
})
|
|
@@ -7041,14 +7897,14 @@ export const catalog = {
|
|
|
7041
7897
|
"name": "draft.identity.resolve",
|
|
7042
7898
|
"group": "pub.techne",
|
|
7043
7899
|
"kind": "procedure",
|
|
7044
|
-
"description": "A PDS's identity-resolver hook: which account, if any, a verified channel is bound to. Asked after the PDS has verified a one-time code for the channel and before it creates any account. Authenticated only by the `epds-signature` header (HMAC-SHA256 over `<t>\\n req\\n <path>\\n <body>` with the PDS's hook secret); no session, OAuth or service token is accepted. The response carries its own `epds-signature` (direction `res`), and a caller treats an unsigned or badly signed response as a failure. `bound` carries `did` only when the calling PDS hosts that account; otherwise the PDS must not create an account. `unavailable` (the account is deleted or taken down, or the issuer is not endorsed) never leads to creation.",
|
|
7900
|
+
"description": "A PDS's identity-resolver hook: which account, if any, a verified channel is bound to. Asked after the PDS has verified a one-time code for the channel and before it creates any account. Authenticated only by the `epds-signature` header (HMAC-SHA256 over `<t>\\n req\\n <path>\\n <body>` with the PDS's hook secret); no session, OAuth or service token is accepted. The response carries its own `epds-signature` (direction `res`), and a caller treats an unsigned or badly signed response as a failure. `bound` carries `did` only when the calling PDS hosts that account; otherwise the PDS must not create an account. `unavailable` (the account is deleted or taken down, or the issuer is not endorsed) never leads to creation. `unbound` with `released` names a phone number its account removed: see `released`.",
|
|
7045
7901
|
"doc": ({
|
|
7046
7902
|
"lexicon": 1,
|
|
7047
7903
|
"id": "pub.techne.draft.identity.resolve",
|
|
7048
7904
|
"defs": {
|
|
7049
7905
|
"main": {
|
|
7050
7906
|
"type": "procedure",
|
|
7051
|
-
"description": "A PDS's identity-resolver hook: which account, if any, a verified channel is bound to. Asked after the PDS has verified a one-time code for the channel and before it creates any account. Authenticated only by the `epds-signature` header (HMAC-SHA256 over `<t>\\n req\\n <path>\\n <body>` with the PDS's hook secret); no session, OAuth or service token is accepted. The response carries its own `epds-signature` (direction `res`), and a caller treats an unsigned or badly signed response as a failure. `bound` carries `did` only when the calling PDS hosts that account; otherwise the PDS must not create an account. `unavailable` (the account is deleted or taken down, or the issuer is not endorsed) never leads to creation.",
|
|
7907
|
+
"description": "A PDS's identity-resolver hook: which account, if any, a verified channel is bound to. Asked after the PDS has verified a one-time code for the channel and before it creates any account. Authenticated only by the `epds-signature` header (HMAC-SHA256 over `<t>\\n req\\n <path>\\n <body>` with the PDS's hook secret); no session, OAuth or service token is accepted. The response carries its own `epds-signature` (direction `res`), and a caller treats an unsigned or badly signed response as a failure. `bound` carries `did` only when the calling PDS hosts that account; otherwise the PDS must not create an account. `unavailable` (the account is deleted or taken down, or the issuer is not endorsed) never leads to creation. `unbound` with `released` names a phone number its account removed: see `released`.",
|
|
7052
7908
|
"input": {
|
|
7053
7909
|
"encoding": "application/json",
|
|
7054
7910
|
"schema": {
|
|
@@ -7098,6 +7954,30 @@ export const catalog = {
|
|
|
7098
7954
|
"type": "string",
|
|
7099
7955
|
"format": "did",
|
|
7100
7956
|
"description": "Present only with `bound`, and only when the calling PDS hosts the account."
|
|
7957
|
+
},
|
|
7958
|
+
"released": {
|
|
7959
|
+
"type": "boolean",
|
|
7960
|
+
"description": "Present (true) only with `unbound`: the phone number was removed from an account (identity.unlinkMethod) and nobody has bound it since. The PDS must not sign the number in to an account it kept for it before (a placeholder from an earlier sign-in); it starts a new account instead. Email channels never carry it."
|
|
7961
|
+
},
|
|
7962
|
+
"releasedFrom": {
|
|
7963
|
+
"type": "string",
|
|
7964
|
+
"format": "did",
|
|
7965
|
+
"description": "Present only with `released`, and only when the calling PDS hosts the account that removed the number: that account's DID. A PDS that keeps an account per phone number (a placeholder) uses it to tell two placeholders apart: the old account's, which must not sign in with this number again, and the one it started for the number's new holder after the removal, which it finds by this DID and `releaseId` and signs in until the number is bound to it. Binding the number back to this account through identity.attest is refused (`ChannelReleased`)."
|
|
7966
|
+
},
|
|
7967
|
+
"frozen": {
|
|
7968
|
+
"type": "boolean",
|
|
7969
|
+
"description": "Present (true) only with `did`: this method of the account is frozen (identity.manageMethods `freeze`). The PDS refuses the sign-in and creates nothing; the account's other methods still sign in."
|
|
7970
|
+
},
|
|
7971
|
+
"frozenUntil": {
|
|
7972
|
+
"type": "string",
|
|
7973
|
+
"format": "datetime",
|
|
7974
|
+
"description": "Present only with `frozen`: when the freeze ends, unless a recovery method lifts it sooner."
|
|
7975
|
+
},
|
|
7976
|
+
"releaseId": {
|
|
7977
|
+
"type": "string",
|
|
7978
|
+
"minLength": 1,
|
|
7979
|
+
"maxLength": 64,
|
|
7980
|
+
"description": "Present only with `releasedFrom`: the platform's id for that removal, fresh each time the number is removed. A PDS keys the number's next holder's account on `releasedFrom` and `releaseId` together, so an account that later removed the number itself is never handed on to the holder after it."
|
|
7101
7981
|
}
|
|
7102
7982
|
}
|
|
7103
7983
|
}
|
|
@@ -7246,14 +8126,14 @@ export const catalog = {
|
|
|
7246
8126
|
"name": "draft.identity.unlinkMethod",
|
|
7247
8127
|
"group": "pub.techne",
|
|
7248
8128
|
"kind": "procedure",
|
|
7249
|
-
"description": "Remove a sign-in method from the caller's account: its credential is revoked (`unlinked`), the channel stops signing in to this account, and its attested pub.techne.draft.contactChannel is deleted. Its next sign-in is treated as new. Refused for the account's last method.",
|
|
8129
|
+
"description": "Remove a sign-in method from the caller's account, by the sign-in method rules (identity.manageMethods): this method carries no step-up, so the removal always waits 7 days with notice to every method and any of them can cancel it (`status: pending`, `pending`); a recovery method is not removed this way (`RecoveryProtected`), and the last way to sign in never is. When it completes: its credential is revoked (`unlinked`), the channel stops signing in to this account, and its attested pub.techne.draft.contactChannel is deleted. Its next sign-in is treated as new. A removed phone number is marked released: identity.resolve answers `unbound` with `released` and `releasedFrom` (this account) until someone binds it, so a PDS never signs it in to this account again through a placeholder it kept, and identity.attest refuses binding it back here (`ChannelReleased`); only adding it again (identity.finishAddMethod) does. Refused for the account's last method.",
|
|
7250
8130
|
"doc": ({
|
|
7251
8131
|
"lexicon": 1,
|
|
7252
8132
|
"id": "pub.techne.draft.identity.unlinkMethod",
|
|
7253
8133
|
"defs": {
|
|
7254
8134
|
"main": {
|
|
7255
8135
|
"type": "procedure",
|
|
7256
|
-
"description": "Remove a sign-in method from the caller's account: its credential is revoked (`unlinked`), the channel stops signing in to this account, and its attested pub.techne.draft.contactChannel is deleted. Its next sign-in is treated as new. Refused for the account's last method.",
|
|
8136
|
+
"description": "Remove a sign-in method from the caller's account, by the sign-in method rules (identity.manageMethods): this method carries no step-up, so the removal always waits 7 days with notice to every method and any of them can cancel it (`status: pending`, `pending`); a recovery method is not removed this way (`RecoveryProtected`), and the last way to sign in never is. When it completes: its credential is revoked (`unlinked`), the channel stops signing in to this account, and its attested pub.techne.draft.contactChannel is deleted. Its next sign-in is treated as new. A removed phone number is marked released: identity.resolve answers `unbound` with `released` and `releasedFrom` (this account) until someone binds it, so a PDS never signs it in to this account again through a placeholder it kept, and identity.attest refuses binding it back here (`ChannelReleased`); only adding it again (identity.finishAddMethod) does. Refused for the account's last method.",
|
|
7257
8137
|
"input": {
|
|
7258
8138
|
"encoding": "application/json",
|
|
7259
8139
|
"schema": {
|
|
@@ -7279,6 +8159,16 @@ export const catalog = {
|
|
|
7279
8159
|
"properties": {
|
|
7280
8160
|
"ok": {
|
|
7281
8161
|
"type": "boolean"
|
|
8162
|
+
},
|
|
8163
|
+
"status": {
|
|
8164
|
+
"type": "string",
|
|
8165
|
+
"knownValues": [
|
|
8166
|
+
"pending"
|
|
8167
|
+
]
|
|
8168
|
+
},
|
|
8169
|
+
"pending": {
|
|
8170
|
+
"type": "ref",
|
|
8171
|
+
"ref": "pub.techne.draft.identity.defs#pendingChange"
|
|
7282
8172
|
}
|
|
7283
8173
|
}
|
|
7284
8174
|
}
|
|
@@ -7294,7 +8184,11 @@ export const catalog = {
|
|
|
7294
8184
|
},
|
|
7295
8185
|
{
|
|
7296
8186
|
"name": "LastMethod",
|
|
7297
|
-
"description": "It is the account's only sign-in method."
|
|
8187
|
+
"description": "It is the account's only sign-in method (counting those already waiting to be removed)."
|
|
8188
|
+
},
|
|
8189
|
+
{
|
|
8190
|
+
"name": "RecoveryProtected",
|
|
8191
|
+
"description": "It is a recovery method; only a recovery method removes it (identity.manageMethods)."
|
|
7298
8192
|
}
|
|
7299
8193
|
]
|
|
7300
8194
|
}
|
|
@@ -7719,7 +8613,7 @@ export const catalog = {
|
|
|
7719
8613
|
"name": "addedBy",
|
|
7720
8614
|
"type": "string<did>",
|
|
7721
8615
|
"required": false,
|
|
7722
|
-
"description": "The member on whose initiative the authority authored this claim. Attribution DATA carried in the claim body
|
|
8616
|
+
"description": "The member on whose initiative the authority authored this claim. Attribution DATA carried in the claim body, read by NO policy predicate (the boundedness invariant is untouched: nothing evaluates access from this field). Who sets it: whoever writes the claim with the authority's pen. A writer holding only the write leg of a circle's member space (role 20-29, who may write adds and their own claim, nothing else) must name themselves or nobody on an add, and a re-put of their own claim keeps the stored value. A writer holding manage may put any DID here (the platform checks only that it is a DID); `proposeInvite` (`xrpc/invite.rs`) stamps the caller who passed `manage` and carries it forward from the pending claim at bind. A circle founder's own claim names themself (\"Started by\"); a collective made with identity.createCollective writes its founder's claim without addedBy. Meant for in-space (permissioned) rosters only; a firehose membership claim's `addedBy` would publish \"who recruited whom\" as a new world-readable social edge with no surface asking anyone's consent for that, so no PUBLIC-collective writer stamps it. CAVEAT: deriving meaning from this field's ABSENCE would be fragile (any legacy or imported claim satisfies \"absent addedBy\" without having founded anything), so a reader must not lean on absence; the intended fix, the day one is needed, is a positive `founder` marker."
|
|
7723
8617
|
},
|
|
7724
8618
|
{
|
|
7725
8619
|
"name": "createdAt",
|
|
@@ -7767,7 +8661,7 @@ export const catalog = {
|
|
|
7767
8661
|
"addedBy": {
|
|
7768
8662
|
"type": "string",
|
|
7769
8663
|
"format": "did",
|
|
7770
|
-
"description": "The member on whose initiative the authority authored this claim. Attribution DATA carried in the claim body
|
|
8664
|
+
"description": "The member on whose initiative the authority authored this claim. Attribution DATA carried in the claim body, read by NO policy predicate (the boundedness invariant is untouched: nothing evaluates access from this field). Who sets it: whoever writes the claim with the authority's pen. A writer holding only the write leg of a circle's member space (role 20-29, who may write adds and their own claim, nothing else) must name themselves or nobody on an add, and a re-put of their own claim keeps the stored value. A writer holding manage may put any DID here (the platform checks only that it is a DID); `proposeInvite` (`xrpc/invite.rs`) stamps the caller who passed `manage` and carries it forward from the pending claim at bind. A circle founder's own claim names themself (\"Started by\"); a collective made with identity.createCollective writes its founder's claim without addedBy. Meant for in-space (permissioned) rosters only; a firehose membership claim's `addedBy` would publish \"who recruited whom\" as a new world-readable social edge with no surface asking anyone's consent for that, so no PUBLIC-collective writer stamps it. CAVEAT: deriving meaning from this field's ABSENCE would be fragile (any legacy or imported claim satisfies \"absent addedBy\" without having founded anything), so a reader must not lean on absence; the intended fix, the day one is needed, is a positive `founder` marker."
|
|
7771
8665
|
},
|
|
7772
8666
|
"createdAt": {
|
|
7773
8667
|
"type": "string",
|
|
@@ -8356,15 +9250,15 @@ export const catalog = {
|
|
|
8356
9250
|
"name": "draft.permissioned.deleteRecord",
|
|
8357
9251
|
"group": "pub.techne",
|
|
8358
9252
|
"kind": "procedure",
|
|
8359
|
-
"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). 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. Draft tier.",
|
|
9253
|
+
"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 by the app its key names or under `space:` scopes covering it: anyone else, its writer included, is 403 Forbidden. Draft tier.",
|
|
8360
9254
|
"doc": ({
|
|
8361
9255
|
"lexicon": 1,
|
|
8362
9256
|
"id": "pub.techne.draft.permissioned.deleteRecord",
|
|
8363
|
-
"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), or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden; a caller whose account is being deleted, or is deleted, is refused (AccountDeleting). The body is removed; a tombstone receipt stays in listChanges, in the space the record counted in, so readers drop their copies. Deleting a record that does not exist is a no-op unless swapCid is given (then it is InvalidSwap). 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. Draft tier.",
|
|
9257
|
+
"description": "Delete a record from the caller's own repo (a takedown, a mistake, or a `share` the owner withdraws, which stops that reader's future reads, with a 'revoke-read' receipt once no share in its source space names it). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden; a caller whose account is being deleted, or is deleted, is refused (AccountDeleting). The body is removed; a tombstone receipt stays in listChanges, in the space the record counted in, so readers drop their copies. Deleting a record that does not exist is a no-op unless swapCid is given (then it is InvalidSwap) or the delete names an app's space the caller may not delete in (then it is Forbidden). A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 2 MiB (2,097,152 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused write still spends one of the caller's writes (RateLimitExceeded). When the call's token carries space scopes from Techne's ePDS, the delete must name its `space`, and one the scopes do not cover is refused 403 Forbidden. A record written for an app's space (a pub.techne.draft.space.private space) is deleted only by the app its key names or a caller whose `space:` scopes cover a delete there; any other caller is refused 403 Forbidden and nothing is deleted, the record's own writer included when the record counted in no space, and even when nothing is at the key. That includes a session or agent token that names no app or another app (an agent token without `space:` scopes, a session cookie or device session minted for another app), so such a record is changed only by its app or under a grant covering it. Draft tier.",
|
|
8364
9258
|
"defs": {
|
|
8365
9259
|
"main": {
|
|
8366
9260
|
"type": "procedure",
|
|
8367
|
-
"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). 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. Draft tier.",
|
|
9261
|
+
"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 by the app its key names or under `space:` scopes covering it: anyone else, its writer included, is 403 Forbidden. Draft tier.",
|
|
8368
9262
|
"input": {
|
|
8369
9263
|
"encoding": "application/json",
|
|
8370
9264
|
"schema": {
|
|
@@ -8422,7 +9316,11 @@ export const catalog = {
|
|
|
8422
9316
|
},
|
|
8423
9317
|
{
|
|
8424
9318
|
"name": "Forbidden",
|
|
8425
|
-
"description": "HTTP 403. repo is not the caller's own."
|
|
9319
|
+
"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) and the caller is neither the app its key names nor holds `space:` scopes covering a delete there. Nothing is deleted."
|
|
9320
|
+
},
|
|
9321
|
+
{
|
|
9322
|
+
"name": "LastManager",
|
|
9323
|
+
"description": "HTTP 409. The write, as a circle, would leave it with members and nobody at role >= 30. Make someone else manager first. Nothing is written."
|
|
8426
9324
|
},
|
|
8427
9325
|
{
|
|
8428
9326
|
"name": "AccountDeleting",
|
|
@@ -8869,15 +9767,15 @@ export const catalog = {
|
|
|
8869
9767
|
"name": "draft.permissioned.putRecord",
|
|
8870
9768
|
"group": "pub.techne",
|
|
8871
9769
|
"kind": "procedure",
|
|
8872
|
-
"description": "Write one record into your own repo (or a collective's or circle's whose own member space you manage) 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 write is never refused for its space. A pub.techne.draft.space.private record counts there only when written by the app its key names; else it counts in no space. The output's `space` says where it counts. Writing the current version again is a no-op. 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.",
|
|
9770
|
+
"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 for its space. A pub.techne.draft.space.private record counts there only when written by the app its key names (or under `space:` scopes covering it); else it counts in no space. Replacing a record already written there needs that app or those scopes: anyone else, its writer included, 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 for that app or under covering scopes; else Forbidden). One write of your rate (RateLimitExceeded). A token with space scopes from Techne's ePDS: a write to a space they do not cover is 403 Forbidden. Draft tier.",
|
|
8873
9771
|
"doc": ({
|
|
8874
9772
|
"lexicon": 1,
|
|
8875
9773
|
"id": "pub.techne.draft.permissioned.putRecord",
|
|
8876
|
-
"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), or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden: a record is only ever written into its writer's repo. There is no write gate and no collection check: any collection may be written, for any space
|
|
9774
|
+
"description": "Write a record into the caller's own repo, as a permissioned record (the generic private write). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden: a record is only ever written into its writer's repo. There is no write gate on a first write and no collection check: any collection may be written, for any space, and a first write is never refused for its space. Replacing a record already written for an app's space (a pub.techne.draft.space.private space) is: only the app its key names, or a caller whose `space:` scopes cover a put there, may replace it; any other caller is refused 403 Forbidden and nothing is written, the record's own writer included when the record counted in no space. That includes a session or agent token that names no app or another app (an agent token without `space:` scopes, a session cookie or device session minted for another app), so such a record is changed only by its app or under a grant covering it. 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 counts there only when written by the app its key names (the managing app) or by a caller whose `space:` scopes cover that space; written by anyone else it is stored and counts in no space (the output has no `space`). Otherwise it is stored in the writer's repo, counts in no space, and only its writer reads it; 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.",
|
|
8877
9775
|
"defs": {
|
|
8878
9776
|
"main": {
|
|
8879
9777
|
"type": "procedure",
|
|
8880
|
-
"description": "Write one record into your own repo (or a collective's or circle's whose own member space you manage) 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 write is never refused for its space. A pub.techne.draft.space.private record counts there only when written by the app its key names; else it counts in no space. The output's `space` says where it counts. Writing the current version again is a no-op. 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.",
|
|
9778
|
+
"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 for its space. A pub.techne.draft.space.private record counts there only when written by the app its key names (or under `space:` scopes covering it); else it counts in no space. Replacing a record already written there needs that app or those scopes: anyone else, its writer included, 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 for that app or under covering scopes; else Forbidden). One write of your rate (RateLimitExceeded). A token with space scopes from Techne's ePDS: a write to a space they do not cover is 403 Forbidden. Draft tier.",
|
|
8881
9779
|
"input": {
|
|
8882
9780
|
"encoding": "application/json",
|
|
8883
9781
|
"schema": {
|
|
@@ -8970,7 +9868,11 @@ export const catalog = {
|
|
|
8970
9868
|
},
|
|
8971
9869
|
{
|
|
8972
9870
|
"name": "Forbidden",
|
|
8973
|
-
"description": "HTTP 403. repo is not the caller's own."
|
|
9871
|
+
"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) and the caller is neither the app its key names nor holds `space:` scopes covering a put there. A first write is never refused for its space. Nothing is written."
|
|
9872
|
+
},
|
|
9873
|
+
{
|
|
9874
|
+
"name": "LastManager",
|
|
9875
|
+
"description": "HTTP 409. The write, as a circle, would leave it with members and nobody at role >= 30. Make someone else manager first. Nothing is written."
|
|
8974
9876
|
},
|
|
8975
9877
|
{
|
|
8976
9878
|
"name": "AccountDeleting",
|
|
@@ -9010,15 +9912,15 @@ export const catalog = {
|
|
|
9010
9912
|
"name": "draft.permissioned.putRecords",
|
|
9011
9913
|
"group": "pub.techne",
|
|
9012
9914
|
"kind": "procedure",
|
|
9013
|
-
"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). Send a failed batch again whole: re-putting what landed is a no-op. Space scopes and space.private apply to each write as in putRecord. Every write names its `space` (a write with none refuses the whole call, InvalidRequest; public records go through com.atproto.repo.putRecord). Draft tier.",
|
|
9915
|
+
"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 for its app or under covering scopes). Space scopes and space.private apply to each write as in putRecord: a first write is never refused for its space, but replacing a record already written for an app's space needs the app its key names or `space:` scopes covering it, 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.",
|
|
9014
9916
|
"doc": ({
|
|
9015
9917
|
"lexicon": 1,
|
|
9016
9918
|
"id": "pub.techne.draft.permissioned.putRecords",
|
|
9017
|
-
"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), or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden and nothing is written. A write refused for itself (a malformed or invalid record, a swapCid that does not match, a conflict) is reported in its result as the error putRecord would have answered, and the next write is applied. 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, 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. `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.",
|
|
9919
|
+
"description": "Write up to 200 records into the caller's own repo in one call: each write is applied in order, exactly as putRecord applies it (the same admission, receipts, no-op re-put and swapCid), each in its own transaction. NOT atomic: a write that is refused does not undo the writes before it or stop the ones after it, and each write's result says what happened to it. That is why this is not called applyWrites: atproto's com.atproto.repo.applyWrites commits all of its writes or none, and this does not (each write keeps putRecord's own per-record locking, so a batch never holds more than one record's locks). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden and nothing is written. A write refused for itself (a malformed or invalid record, a swapCid that does not match, a conflict) is reported in its result as the error putRecord would have answered, and the next write is applied, except in a roster batch: one with any pub.techne.draft.membership write, in whatever repo. A roster batch of more than one write is first checked whole, and a write in it that putRecord would refuse before reading anything (malformed, over 2 MiB, failing its lexicon, or naming a space it cannot be written into) refuses the call as InvalidRequest (HTTP 400) with nothing written; it then stops at its first refused write, and every write after that one is reported as Conflict and not written. Since any prefix of a roster batch may be what is left written, a batch written as a circle that has a manager must keep one after every prefix of its membership writes (see LastManager), not only after the whole batch: to make someone else manager, put their membership at role 30 or above before the caller's own lower one. A refusal that holds for the whole call stops it with that error, and no later write is applied: the caller's account is being deleted, or is deleted (AccountDeleting; what it wrote goes with the account), or a failure inside the AppView (HTTP 500; the writes applied before it stay written, so read them back or send the batch again: writing the current version again for the same space is a no-op). Callers should treat a failed batch as all-or-nothing and send it again whole: re-putting the records that landed is a no-op (in an app's space only for its app or under `space:` scopes covering it; 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) by a caller that is neither the app its key names nor holds `space:` scopes covering 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 for its space. `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.",
|
|
9018
9920
|
"defs": {
|
|
9019
9921
|
"main": {
|
|
9020
9922
|
"type": "procedure",
|
|
9021
|
-
"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). Send a failed batch again whole: re-putting what landed is a no-op. Space scopes and space.private apply to each write as in putRecord. Every write names its `space` (a write with none refuses the whole call, InvalidRequest; public records go through com.atproto.repo.putRecord). Draft tier.",
|
|
9923
|
+
"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 for its app or under covering scopes). Space scopes and space.private apply to each write as in putRecord: a first write is never refused for its space, but replacing a record already written for an app's space needs the app its key names or `space:` scopes covering it, 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.",
|
|
9022
9924
|
"input": {
|
|
9023
9925
|
"encoding": "application/json",
|
|
9024
9926
|
"schema": {
|
|
@@ -9076,7 +9978,11 @@ export const catalog = {
|
|
|
9076
9978
|
},
|
|
9077
9979
|
{
|
|
9078
9980
|
"name": "Forbidden",
|
|
9079
|
-
"description": "HTTP 403. repo is not the caller's own. Nothing is written."
|
|
9981
|
+
"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). Nothing is written."
|
|
9982
|
+
},
|
|
9983
|
+
{
|
|
9984
|
+
"name": "LastManager",
|
|
9985
|
+
"description": "HTTP 409. The write, as a circle, would leave it with members and nobody at role >= 30, after the whole batch or after any prefix of its membership writes (a roster batch stops at its first refused write, so any prefix may be what is left written). Make someone else manager first. Nothing is written."
|
|
9080
9986
|
},
|
|
9081
9987
|
{
|
|
9082
9988
|
"name": "AccountDeleting",
|
|
@@ -9176,13 +10082,15 @@ export const catalog = {
|
|
|
9176
10082
|
"properties": {
|
|
9177
10083
|
"error": {
|
|
9178
10084
|
"type": "string",
|
|
9179
|
-
"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)
|
|
10085
|
+
"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 and the caller is neither the app its key names nor holds `space:` scopes covering it; see putRecord).",
|
|
9180
10086
|
"knownValues": [
|
|
9181
10087
|
"InvalidRequest",
|
|
9182
10088
|
"InvalidSwap",
|
|
9183
10089
|
"Conflict",
|
|
9184
10090
|
"IdentityConflict",
|
|
9185
|
-
"DuplicatePhone"
|
|
10091
|
+
"DuplicatePhone",
|
|
10092
|
+
"RateLimitExceeded",
|
|
10093
|
+
"Forbidden"
|
|
9186
10094
|
]
|
|
9187
10095
|
},
|
|
9188
10096
|
"message": {
|
|
@@ -10765,7 +11673,7 @@ export const catalog = {
|
|
|
10765
11673
|
"end": {
|
|
10766
11674
|
"type": "ref",
|
|
10767
11675
|
"ref": "#condition",
|
|
10768
|
-
"description": "When it ends (declared per type; a type may assume a duration when the end is not stated). Operators: before, after."
|
|
11676
|
+
"description": "When it ends (declared per type; a type may assume a duration when the end is not stated, and then a start at a midnight in its own stated offset, never the reader's zone, runs at least to the next midnight in that offset, a day). Operators: before, after."
|
|
10769
11677
|
},
|
|
10770
11678
|
"location": {
|
|
10771
11679
|
"type": "ref",
|
|
@@ -12302,14 +13210,14 @@ export const catalog = {
|
|
|
12302
13210
|
"name": "draft.registry.blockIndex",
|
|
12303
13211
|
"group": "pub.techne",
|
|
12304
13212
|
"kind": "procedure",
|
|
12305
|
-
"description": "Operator only. Stop indexing one author's records of a community or requested type, and remove the ones this platform indexed. The block outlives the author's account here, so neither the firehose nor a backfill brings the records back. Other authors' records of the type are untouched. The records stay in the author's repo; this platform stops serving them.",
|
|
13213
|
+
"description": "Operator only, with the moderate scope. Stop indexing one author's records of a community or requested type, and remove the ones this platform indexed. The block outlives the author's account here, so neither the firehose nor a backfill brings the records back. Other authors' records of the type are untouched. The records stay in the author's repo; this platform stops serving them.",
|
|
12306
13214
|
"doc": ({
|
|
12307
13215
|
"lexicon": 1,
|
|
12308
13216
|
"id": "pub.techne.draft.registry.blockIndex",
|
|
12309
13217
|
"defs": {
|
|
12310
13218
|
"main": {
|
|
12311
13219
|
"type": "procedure",
|
|
12312
|
-
"description": "Operator only. Stop indexing one author's records of a community or requested type, and remove the ones this platform indexed. The block outlives the author's account here, so neither the firehose nor a backfill brings the records back. Other authors' records of the type are untouched. The records stay in the author's repo; this platform stops serving them.",
|
|
13220
|
+
"description": "Operator only, with the moderate scope. Stop indexing one author's records of a community or requested type, and remove the ones this platform indexed. The block outlives the author's account here, so neither the firehose nor a backfill brings the records back. Other authors' records of the type are untouched. The records stay in the author's repo; this platform stops serving them.",
|
|
12313
13221
|
"input": {
|
|
12314
13222
|
"encoding": "application/json",
|
|
12315
13223
|
"schema": {
|
|
@@ -12377,12 +13285,20 @@ export const catalog = {
|
|
|
12377
13285
|
"description": "Blocking is a signed-in act."
|
|
12378
13286
|
},
|
|
12379
13287
|
{
|
|
12380
|
-
"name": "
|
|
12381
|
-
"description": "The caller is not an operator of this platform."
|
|
13288
|
+
"name": "NotAuthorized",
|
|
13289
|
+
"description": "The caller is not an operator of this platform, or the call does not carry the moderate scope (HTTP 403)."
|
|
13290
|
+
},
|
|
13291
|
+
{
|
|
13292
|
+
"name": "ProgramRefused",
|
|
13293
|
+
"description": "The caller is a program's token: a program never reaches an operator method (HTTP 403)."
|
|
12382
13294
|
},
|
|
12383
13295
|
{
|
|
12384
13296
|
"name": "UnknownType",
|
|
12385
13297
|
"description": "`nsid` names no community or requested type (our own types are not limited)."
|
|
13298
|
+
},
|
|
13299
|
+
{
|
|
13300
|
+
"name": "InvalidRequest",
|
|
13301
|
+
"description": "`reason` is blank or over 1000 characters, or `author` is not a DID (HTTP 400)."
|
|
12386
13302
|
}
|
|
12387
13303
|
]
|
|
12388
13304
|
}
|
|
@@ -13107,14 +14023,14 @@ export const catalog = {
|
|
|
13107
14023
|
"name": "draft.registry.purgeType",
|
|
13108
14024
|
"group": "pub.techne",
|
|
13109
14025
|
"kind": "procedure",
|
|
13110
|
-
"description": "Operator only. Stop indexing a community or requested type and remove every record of it this platform indexed. The type is marked blocked (it is no longer loaded, searched or listed, except in listTypes filtered to its creator (`creator`) and in getType, which still answer it as blocked) and put on the block list, so neither the firehose nor a backfill brings its records back. The records stay in their authors' repos; this platform stops serving them. Our own platform types cannot be purged.",
|
|
14026
|
+
"description": "Operator only, with the moderate scope. Stop indexing a community or requested type and remove every record of it this platform indexed. The type is marked blocked (it is no longer loaded, searched or listed, except in listTypes filtered to its creator (`creator`) and in getType, which still answer it as blocked) and put on the block list, so neither the firehose nor a backfill brings its records back. The records stay in their authors' repos; this platform stops serving them. Our own platform types cannot be purged.",
|
|
13111
14027
|
"doc": ({
|
|
13112
14028
|
"lexicon": 1,
|
|
13113
14029
|
"id": "pub.techne.draft.registry.purgeType",
|
|
13114
14030
|
"defs": {
|
|
13115
14031
|
"main": {
|
|
13116
14032
|
"type": "procedure",
|
|
13117
|
-
"description": "Operator only. Stop indexing a community or requested type and remove every record of it this platform indexed. The type is marked blocked (it is no longer loaded, searched or listed, except in listTypes filtered to its creator (`creator`) and in getType, which still answer it as blocked) and put on the block list, so neither the firehose nor a backfill brings its records back. The records stay in their authors' repos; this platform stops serving them. Our own platform types cannot be purged.",
|
|
14033
|
+
"description": "Operator only, with the moderate scope. Stop indexing a community or requested type and remove every record of it this platform indexed. The type is marked blocked (it is no longer loaded, searched or listed, except in listTypes filtered to its creator (`creator`) and in getType, which still answer it as blocked) and put on the block list, so neither the firehose nor a backfill brings its records back. The records stay in their authors' repos; this platform stops serving them. Our own platform types cannot be purged.",
|
|
13118
14034
|
"input": {
|
|
13119
14035
|
"encoding": "application/json",
|
|
13120
14036
|
"schema": {
|
|
@@ -13171,12 +14087,20 @@ export const catalog = {
|
|
|
13171
14087
|
"description": "Purging is a signed-in act."
|
|
13172
14088
|
},
|
|
13173
14089
|
{
|
|
13174
|
-
"name": "
|
|
13175
|
-
"description": "The caller is not an operator of this platform."
|
|
14090
|
+
"name": "NotAuthorized",
|
|
14091
|
+
"description": "The caller is not an operator of this platform, or the call does not carry the moderate scope (HTTP 403)."
|
|
14092
|
+
},
|
|
14093
|
+
{
|
|
14094
|
+
"name": "ProgramRefused",
|
|
14095
|
+
"description": "The caller is a program's token: a program never reaches an operator method (HTTP 403)."
|
|
13176
14096
|
},
|
|
13177
14097
|
{
|
|
13178
14098
|
"name": "UnknownType",
|
|
13179
14099
|
"description": "`nsid` names no community or requested type (our own types cannot be purged)."
|
|
14100
|
+
},
|
|
14101
|
+
{
|
|
14102
|
+
"name": "InvalidRequest",
|
|
14103
|
+
"description": "`reason` is blank or over 1000 characters (HTTP 400)."
|
|
13180
14104
|
}
|
|
13181
14105
|
]
|
|
13182
14106
|
}
|
|
@@ -13450,7 +14374,7 @@ export const catalog = {
|
|
|
13450
14374
|
"group": "pub.techne",
|
|
13451
14375
|
"kind": "record",
|
|
13452
14376
|
"key": "any",
|
|
13453
|
-
"description": "A short note a person writes with their response to a beacon (\"running 15 late\"). Authored by the responder, rkey = the rkey of the responder's own community.lexicon.calendar.rsvp, so there is at most one note per response and an edit is a re-put. Placed
|
|
14377
|
+
"description": "A short note a person writes with their response to a beacon (\"running 15 late\"). Authored by the responder, rkey = the rkey of the responder's own community.lexicon.calendar.rsvp, so there is at most one note per response and an edit is a re-put. Placed beside the RSVP it annotates, so it has exactly the RSVP's audience: in the beacon's pub.techne.draft.space.beacon for a going or interested answer, or in the responder's own pub.techne.draft.space.beaconDecline for a #notgoing one; when the answer changes it moves with the RSVP into the beaconDecline space, and is deleted when the answer leaves that space (never re-published to the beacon's audience). A separate record rather than a field on the community RSVP, which we adopt and never extend.",
|
|
13454
14378
|
"fields": [
|
|
13455
14379
|
{
|
|
13456
14380
|
"name": "subject",
|
|
@@ -13473,7 +14397,7 @@ export const catalog = {
|
|
|
13473
14397
|
"doc": ({
|
|
13474
14398
|
"lexicon": 1,
|
|
13475
14399
|
"id": "pub.techne.draft.rsvpNote",
|
|
13476
|
-
"description": "A short note a person writes with their response to a beacon (\"running 15 late\"). Authored by the responder, rkey = the rkey of the responder's own community.lexicon.calendar.rsvp, so there is at most one note per response and an edit is a re-put. Placed
|
|
14400
|
+
"description": "A short note a person writes with their response to a beacon (\"running 15 late\"). Authored by the responder, rkey = the rkey of the responder's own community.lexicon.calendar.rsvp, so there is at most one note per response and an edit is a re-put. Placed beside the RSVP it annotates, so it has exactly the RSVP's audience: in the beacon's pub.techne.draft.space.beacon for a going or interested answer, or in the responder's own pub.techne.draft.space.beaconDecline for a #notgoing one; when the answer changes it moves with the RSVP into the beaconDecline space, and is deleted when the answer leaves that space (never re-published to the beacon's audience). A separate record rather than a field on the community RSVP, which we adopt and never extend.",
|
|
13477
14401
|
"defs": {
|
|
13478
14402
|
"main": {
|
|
13479
14403
|
"type": "record",
|
|
@@ -13510,6 +14434,10 @@ export const catalog = {
|
|
|
13510
14434
|
{
|
|
13511
14435
|
"space": "pub.techne.draft.space.beacon",
|
|
13512
14436
|
"unbuilt": false
|
|
14437
|
+
},
|
|
14438
|
+
{
|
|
14439
|
+
"space": "pub.techne.draft.space.beaconDecline",
|
|
14440
|
+
"unbuilt": false
|
|
13513
14441
|
}
|
|
13514
14442
|
]
|
|
13515
14443
|
},
|
|
@@ -13886,6 +14814,10 @@ export const catalog = {
|
|
|
13886
14814
|
"space": "pub.techne.draft.space.beacon",
|
|
13887
14815
|
"unbuilt": false
|
|
13888
14816
|
},
|
|
14817
|
+
{
|
|
14818
|
+
"space": "pub.techne.draft.space.beaconDecline",
|
|
14819
|
+
"unbuilt": false
|
|
14820
|
+
},
|
|
13889
14821
|
{
|
|
13890
14822
|
"space": "pub.techne.draft.space.credential",
|
|
13891
14823
|
"unbuilt": true
|
|
@@ -14349,6 +15281,12 @@ export const catalog = {
|
|
|
14349
15281
|
"required": true,
|
|
14350
15282
|
"description": "The line, as plain text."
|
|
14351
15283
|
},
|
|
15284
|
+
{
|
|
15285
|
+
"name": "emoji",
|
|
15286
|
+
"type": "string",
|
|
15287
|
+
"required": false,
|
|
15288
|
+
"description": "Optional: one emoji for the record (a card mark and map pin glyph). A single emoji, no flags; readers fall back to their own when absent."
|
|
15289
|
+
},
|
|
14352
15290
|
{
|
|
14353
15291
|
"name": "createdAt",
|
|
14354
15292
|
"type": "string<datetime>",
|
|
@@ -14383,6 +15321,12 @@ export const catalog = {
|
|
|
14383
15321
|
"maxGraphemes": 100,
|
|
14384
15322
|
"description": "The line, as plain text."
|
|
14385
15323
|
},
|
|
15324
|
+
"emoji": {
|
|
15325
|
+
"type": "string",
|
|
15326
|
+
"maxGraphemes": 1,
|
|
15327
|
+
"maxLength": 64,
|
|
15328
|
+
"description": "Optional: one emoji for the record (a card mark and map pin glyph). A single emoji, no flags; readers fall back to their own when absent."
|
|
15329
|
+
},
|
|
14386
15330
|
"createdAt": {
|
|
14387
15331
|
"type": "string",
|
|
14388
15332
|
"format": "datetime"
|
|
@@ -14749,7 +15693,7 @@ export const catalog = {
|
|
|
14749
15693
|
"name": "Beacon space",
|
|
14750
15694
|
"kind": "space",
|
|
14751
15695
|
"key": "any",
|
|
14752
|
-
"description": "One lit beacon's audience. skey = the beacon's rkey; authority = the lighter. Everything the lighter wrote for this beacon lives here (the anchor event or listing, its config, the beacon marker, one share per admitted person, and, for a going-to beacon on a public event made from a dropped pin or street address, the exact spot as a beaconSpot keyed by the beacon's rkey) plus the joins (rsvps) and each responder's note (rsvpNote). Read-side rule every projector applies: only the AUTHORITY's beacon/event/listing/config/beaconSpot records count — a foreign one admitted by the write policy is ignored; only rsvp, rsvpNote and share are read from other authors, and an rsvpNote counts only when its author wrote the rsvp at the same rkey in this space and its subject names that rsvp.",
|
|
15696
|
+
"description": "One lit beacon's audience. skey = the beacon's rkey; authority = the lighter. Everything the lighter wrote for this beacon lives here (the anchor event or listing, its config, the beacon marker, one share per admitted person, and, for a going-to beacon on a public event made from a dropped pin or street address, the exact spot as a beaconSpot keyed by the beacon's rkey) plus the joins (rsvps: going and interested; a notgoing answer belongs in the answerer's own pub.techne.draft.space.beaconDecline, though older apps wrote it here) and each responder's note (rsvpNote). Read-side rule every projector applies: only the AUTHORITY's beacon/event/listing/config/beaconSpot records count — a foreign one admitted by the write policy is ignored; only rsvp, rsvpNote and share are read from other authors, and an rsvpNote counts only when its author wrote the rsvp at the same rkey in this space and its subject names that rsvp.",
|
|
14753
15697
|
"collections": [
|
|
14754
15698
|
"pub.techne.draft.beacon",
|
|
14755
15699
|
"pub.techne.draft.share",
|
|
@@ -14797,7 +15741,7 @@ export const catalog = {
|
|
|
14797
15741
|
"type": "space",
|
|
14798
15742
|
"key": "any",
|
|
14799
15743
|
"name": "Beacon space",
|
|
14800
|
-
"description": "One lit beacon's audience. skey = the beacon's rkey; authority = the lighter. Everything the lighter wrote for this beacon lives here (the anchor event or listing, its config, the beacon marker, one share per admitted person, and, for a going-to beacon on a public event made from a dropped pin or street address, the exact spot as a beaconSpot keyed by the beacon's rkey) plus the joins (rsvps) and each responder's note (rsvpNote). Read-side rule every projector applies: only the AUTHORITY's beacon/event/listing/config/beaconSpot records count — a foreign one admitted by the write policy is ignored; only rsvp, rsvpNote and share are read from other authors, and an rsvpNote counts only when its author wrote the rsvp at the same rkey in this space and its subject names that rsvp.",
|
|
15744
|
+
"description": "One lit beacon's audience. skey = the beacon's rkey; authority = the lighter. Everything the lighter wrote for this beacon lives here (the anchor event or listing, its config, the beacon marker, one share per admitted person, and, for a going-to beacon on a public event made from a dropped pin or street address, the exact spot as a beaconSpot keyed by the beacon's rkey) plus the joins (rsvps: going and interested; a notgoing answer belongs in the answerer's own pub.techne.draft.space.beaconDecline, though older apps wrote it here) and each responder's note (rsvpNote). Read-side rule every projector applies: only the AUTHORITY's beacon/event/listing/config/beaconSpot records count — a foreign one admitted by the write policy is ignored; only rsvp, rsvpNote and share are read from other authors, and an rsvpNote counts only when its author wrote the rsvp at the same rkey in this space and its subject names that rsvp.",
|
|
14801
15745
|
"collections": [
|
|
14802
15746
|
"pub.techne.draft.beacon",
|
|
14803
15747
|
"pub.techne.draft.share",
|
|
@@ -14853,6 +15797,87 @@ export const catalog = {
|
|
|
14853
15797
|
}
|
|
14854
15798
|
})
|
|
14855
15799
|
},
|
|
15800
|
+
{
|
|
15801
|
+
"nsid": "pub.techne.draft.space.beaconDecline",
|
|
15802
|
+
"name": "Can't go answer",
|
|
15803
|
+
"kind": "space",
|
|
15804
|
+
"key": "any",
|
|
15805
|
+
"description": "One person's \"Can't go\" answer to one beacon, kept where only they and the beacon's lighter can read it. authority = the person answering; skey = the rkey of their community.lexicon.calendar.rsvp naming the beacon (one answer per beacon, so one space). It holds that rsvp with status #notgoing, its rsvpNote at the same rkey if any, and one `share` naming the lighter. Going and Maybe (#interested) answers stay in the beacon's own space (pub.techne.draft.space.beacon); changing an answer moves the rsvp between the two spaces at the same rkey; its note goes along into this space and is deleted when the answer leaves it (never re-published to the beacon's audience). The rsvp at that rkey is one record, so its latest version is the answer and names the one space it is in. An older app's #notgoing left in space.beacon stays an answer there. Read-side rule every projector applies: only the AUTHORITY's records count, only a #notgoing rsvp counts, and it counts for the beacon its subject names: for the answerer always, and for that beacon's lighter only when the lighter is the authority here (their own answer) or the subject of a share here.",
|
|
15806
|
+
"collections": [
|
|
15807
|
+
"community.lexicon.calendar.rsvp",
|
|
15808
|
+
"pub.techne.draft.rsvpNote",
|
|
15809
|
+
"pub.techne.draft.share"
|
|
15810
|
+
],
|
|
15811
|
+
"policy": {
|
|
15812
|
+
"read": {
|
|
15813
|
+
"$type": "pub.techne.draft.policy#any",
|
|
15814
|
+
"of": [
|
|
15815
|
+
{
|
|
15816
|
+
"$type": "pub.techne.draft.policy#authorityOnly"
|
|
15817
|
+
},
|
|
15818
|
+
{
|
|
15819
|
+
"$type": "pub.techne.draft.policy#sharedWith",
|
|
15820
|
+
"of": "this"
|
|
15821
|
+
}
|
|
15822
|
+
]
|
|
15823
|
+
},
|
|
15824
|
+
"write": {
|
|
15825
|
+
"$type": "pub.techne.draft.policy#authorityOnly"
|
|
15826
|
+
},
|
|
15827
|
+
"manage": {
|
|
15828
|
+
"$type": "pub.techne.draft.policy#authorityOnly"
|
|
15829
|
+
}
|
|
15830
|
+
},
|
|
15831
|
+
"doc": ({
|
|
15832
|
+
"lexicon": 1,
|
|
15833
|
+
"id": "pub.techne.draft.space.beaconDecline",
|
|
15834
|
+
"defs": {
|
|
15835
|
+
"main": {
|
|
15836
|
+
"type": "space",
|
|
15837
|
+
"description": "One person's \"Can't go\" answer to one beacon, kept where only they and the beacon's lighter can read it. authority = the person answering; skey = the rkey of their community.lexicon.calendar.rsvp naming the beacon (one answer per beacon, so one space). It holds that rsvp with status #notgoing, its rsvpNote at the same rkey if any, and one `share` naming the lighter. Going and Maybe (#interested) answers stay in the beacon's own space (pub.techne.draft.space.beacon); changing an answer moves the rsvp between the two spaces at the same rkey; its note goes along into this space and is deleted when the answer leaves it (never re-published to the beacon's audience). The rsvp at that rkey is one record, so its latest version is the answer and names the one space it is in. An older app's #notgoing left in space.beacon stays an answer there. Read-side rule every projector applies: only the AUTHORITY's records count, only a #notgoing rsvp counts, and it counts for the beacon its subject names: for the answerer always, and for that beacon's lighter only when the lighter is the authority here (their own answer) or the subject of a share here.",
|
|
15838
|
+
"key": "any",
|
|
15839
|
+
"name": "Can't go answer",
|
|
15840
|
+
"collections": [
|
|
15841
|
+
"community.lexicon.calendar.rsvp",
|
|
15842
|
+
"pub.techne.draft.rsvpNote",
|
|
15843
|
+
"pub.techne.draft.share"
|
|
15844
|
+
]
|
|
15845
|
+
}
|
|
15846
|
+
}
|
|
15847
|
+
}),
|
|
15848
|
+
"policyNsid": "pub.techne.draft.space.beaconDecline.policy",
|
|
15849
|
+
"policyDescription": "Access policy for pub.techne.draft.space.beaconDecline: the person answering (authority) reads, writes and manages; the lighter reads through the one `share` the authority wrote for them. Same shape as space.intro.",
|
|
15850
|
+
"policyDoc": ({
|
|
15851
|
+
"lexicon": 1,
|
|
15852
|
+
"id": "pub.techne.draft.space.beaconDecline.policy",
|
|
15853
|
+
"defs": {
|
|
15854
|
+
"main": {
|
|
15855
|
+
"type": "spacePolicy",
|
|
15856
|
+
"description": "Access policy for pub.techne.draft.space.beaconDecline: the person answering (authority) reads, writes and manages; the lighter reads through the one `share` the authority wrote for them. Same shape as space.intro.",
|
|
15857
|
+
"policy": {
|
|
15858
|
+
"read": {
|
|
15859
|
+
"$type": "pub.techne.draft.policy#any",
|
|
15860
|
+
"of": [
|
|
15861
|
+
{
|
|
15862
|
+
"$type": "pub.techne.draft.policy#authorityOnly"
|
|
15863
|
+
},
|
|
15864
|
+
{
|
|
15865
|
+
"$type": "pub.techne.draft.policy#sharedWith",
|
|
15866
|
+
"of": "this"
|
|
15867
|
+
}
|
|
15868
|
+
]
|
|
15869
|
+
},
|
|
15870
|
+
"write": {
|
|
15871
|
+
"$type": "pub.techne.draft.policy#authorityOnly"
|
|
15872
|
+
},
|
|
15873
|
+
"manage": {
|
|
15874
|
+
"$type": "pub.techne.draft.policy#authorityOnly"
|
|
15875
|
+
}
|
|
15876
|
+
}
|
|
15877
|
+
}
|
|
15878
|
+
}
|
|
15879
|
+
})
|
|
15880
|
+
},
|
|
14856
15881
|
{
|
|
14857
15882
|
"nsid": "pub.techne.draft.space.circle",
|
|
14858
15883
|
"name": "Circle data",
|
|
@@ -14979,14 +16004,14 @@ export const catalog = {
|
|
|
14979
16004
|
}
|
|
14980
16005
|
}),
|
|
14981
16006
|
"policyNsid": "pub.techne.draft.space.collective.member.policy",
|
|
14982
|
-
"policyDescription": "Access policy for pub.techne.draft.space.collective.member: members read (incl. one hop via member collectives), builders write, facilitators manage.",
|
|
16007
|
+
"policyDescription": "Access policy for pub.techne.draft.space.collective.member: members read (incl. one hop via member collectives), builders write, facilitators manage. The predicates alone are not the limit for a circle (a collective whose descriptor says collectiveType beacon.circle): there the platform also narrows the write leg. A writer holding the write leg but not manage (role 20-29) may write with the collective's pen only membership claims, and only these: an add (a new claim at a key that holds none now, not ending, whose addedBy is the writer or absent) and the writer's own claim (their leave, or a re-put keeping its subject and addedBy, at no more than their own role). The write predicate alone would allow any write at >= 20. Everything else written as the collective (a rename, the emoji, a remove, a change to another member's claim, making someone manager) needs manage (role >= 30). Outside circles the write leg hands over no pen.",
|
|
14983
16008
|
"policyDoc": ({
|
|
14984
16009
|
"lexicon": 1,
|
|
14985
16010
|
"id": "pub.techne.draft.space.collective.member.policy",
|
|
14986
16011
|
"defs": {
|
|
14987
16012
|
"main": {
|
|
14988
16013
|
"type": "spacePolicy",
|
|
14989
|
-
"description": "Access policy for pub.techne.draft.space.collective.member: members read (incl. one hop via member collectives), builders write, facilitators manage.",
|
|
16014
|
+
"description": "Access policy for pub.techne.draft.space.collective.member: members read (incl. one hop via member collectives), builders write, facilitators manage. The predicates alone are not the limit for a circle (a collective whose descriptor says collectiveType beacon.circle): there the platform also narrows the write leg. A writer holding the write leg but not manage (role 20-29) may write with the collective's pen only membership claims, and only these: an add (a new claim at a key that holds none now, not ending, whose addedBy is the writer or absent) and the writer's own claim (their leave, or a re-put keeping its subject and addedBy, at no more than their own role). The write predicate alone would allow any write at >= 20. Everything else written as the collective (a rename, the emoji, a remove, a change to another member's claim, making someone manager) needs manage (role >= 30). Outside circles the write leg hands over no pen.",
|
|
14990
16015
|
"policy": {
|
|
14991
16016
|
"read": {
|
|
14992
16017
|
"$type": "pub.techne.draft.policy#memberRole",
|
|
@@ -18485,7 +19510,13 @@ export const catalog = {
|
|
|
18485
19510
|
}
|
|
18486
19511
|
}
|
|
18487
19512
|
}
|
|
18488
|
-
}
|
|
19513
|
+
},
|
|
19514
|
+
"errors": [
|
|
19515
|
+
{
|
|
19516
|
+
"name": "MethodFrozen",
|
|
19517
|
+
"description": "The email is a sign-in method its account froze (until the time in the message); it signs in nowhere until then."
|
|
19518
|
+
}
|
|
19519
|
+
]
|
|
18489
19520
|
},
|
|
18490
19521
|
"device": {
|
|
18491
19522
|
"type": "object",
|
|
@@ -19464,7 +20495,7 @@ export const catalog = {
|
|
|
19464
20495
|
"group": "social.scenius",
|
|
19465
20496
|
"kind": "procedure",
|
|
19466
20497
|
"class": "write",
|
|
19467
|
-
"description": "Create a Beacon circle: a private group identity (a collective DID with a random handle) whose descriptor and memberships are placed only in its own member space, never on the firehose.
|
|
20498
|
+
"description": "Create a Beacon circle: a private group identity (a collective DID with a random handle) whose descriptor and memberships are placed only in its own member space, never on the firehose. Kept for old builds; the current build makes a circle with identity.createCollective and put. The founder is its manager (role 40, the collective.member manage leg: rename, set the emoji, remove people, make someone manager) and carries addedBy = themself; everyone added is a member (role 20, the write leg: add people and leave).",
|
|
19468
20499
|
"input": [
|
|
19469
20500
|
{
|
|
19470
20501
|
"name": "name",
|
|
@@ -19495,7 +20526,7 @@ export const catalog = {
|
|
|
19495
20526
|
"defs": {
|
|
19496
20527
|
"main": {
|
|
19497
20528
|
"type": "procedure",
|
|
19498
|
-
"description": "Create a Beacon circle: a private group identity (a collective DID with a random handle) whose descriptor and memberships are placed only in its own member space, never on the firehose.
|
|
20529
|
+
"description": "Create a Beacon circle: a private group identity (a collective DID with a random handle) whose descriptor and memberships are placed only in its own member space, never on the firehose. Kept for old builds; the current build makes a circle with identity.createCollective and put. The founder is its manager (role 40, the collective.member manage leg: rename, set the emoji, remove people, make someone manager) and carries addedBy = themself; everyone added is a member (role 20, the write leg: add people and leave).",
|
|
19499
20530
|
"input": {
|
|
19500
20531
|
"encoding": "application/json",
|
|
19501
20532
|
"schema": {
|
|
@@ -19663,7 +20694,7 @@ export const catalog = {
|
|
|
19663
20694
|
"group": "social.scenius",
|
|
19664
20695
|
"kind": "procedure",
|
|
19665
20696
|
"class": "write",
|
|
19666
|
-
"description": "Delete the caller's account after checking the code `startAccountDeletion` sent to its own number (or bound email). Removes every row the account owns, the phone anchor, every session and token, the mcp-bridge OAuth vault entries, then the PDS repo and the PLC tombstone for a custodial account. `status` is `deleted` when the whole routine finished and `pending` when the local half committed and the network half has not — in
|
|
20697
|
+
"description": "Delete the caller's account after checking the code `startAccountDeletion` sent to its own number (or bound email). Removes every row the account owns, the phone anchor, every session and token, the mcp-bridge OAuth vault entries, then the PDS repo and the PLC tombstone for a custodial account. `status` is `deleted` when the whole routine finished and `pending` when the local half committed and the network half has not — in both of these cases (no `scheduledFor`) the caller is signed out everywhere, the account has no public face, and a nightly sweep finishes what is left. The deletion is not undoable. It follows the sign-in method rules (pub.techne.draft.identity.manageMethods): when the method the code proved is not a recovery method, nothing is deleted yet: `status` is `pending` (so a client that knows only `deleted` and `pending` reads it as accepted), `scheduledFor` says when the deletion runs (in 7 days) and `pending` is the waiting change, with notice, cancellable by any of the account's methods; nobody is signed out. `scheduledFor` is present only then. Available through the standard write scope, including the generic MCP door; authentication alone is insufficient because the out-of-band phone code remains mandatory.",
|
|
19667
20698
|
"input": [
|
|
19668
20699
|
{
|
|
19669
20700
|
"name": "code",
|
|
@@ -19681,6 +20712,17 @@ export const catalog = {
|
|
|
19681
20712
|
"deleted",
|
|
19682
20713
|
"pending"
|
|
19683
20714
|
]
|
|
20715
|
+
},
|
|
20716
|
+
{
|
|
20717
|
+
"name": "scheduledFor",
|
|
20718
|
+
"type": "string<datetime>",
|
|
20719
|
+
"required": false,
|
|
20720
|
+
"description": "When a waiting deletion runs; present only when it waits."
|
|
20721
|
+
},
|
|
20722
|
+
{
|
|
20723
|
+
"name": "pending",
|
|
20724
|
+
"type": "→ pub.techne.draft.identity.defs#pendingChange",
|
|
20725
|
+
"required": false
|
|
19684
20726
|
}
|
|
19685
20727
|
],
|
|
19686
20728
|
"doc": ({
|
|
@@ -19689,7 +20731,7 @@ export const catalog = {
|
|
|
19689
20731
|
"defs": {
|
|
19690
20732
|
"main": {
|
|
19691
20733
|
"type": "procedure",
|
|
19692
|
-
"description": "Delete the caller's account after checking the code `startAccountDeletion` sent to its own number (or bound email). Removes every row the account owns, the phone anchor, every session and token, the mcp-bridge OAuth vault entries, then the PDS repo and the PLC tombstone for a custodial account. `status` is `deleted` when the whole routine finished and `pending` when the local half committed and the network half has not — in
|
|
20734
|
+
"description": "Delete the caller's account after checking the code `startAccountDeletion` sent to its own number (or bound email). Removes every row the account owns, the phone anchor, every session and token, the mcp-bridge OAuth vault entries, then the PDS repo and the PLC tombstone for a custodial account. `status` is `deleted` when the whole routine finished and `pending` when the local half committed and the network half has not — in both of these cases (no `scheduledFor`) the caller is signed out everywhere, the account has no public face, and a nightly sweep finishes what is left. The deletion is not undoable. It follows the sign-in method rules (pub.techne.draft.identity.manageMethods): when the method the code proved is not a recovery method, nothing is deleted yet: `status` is `pending` (so a client that knows only `deleted` and `pending` reads it as accepted), `scheduledFor` says when the deletion runs (in 7 days) and `pending` is the waiting change, with notice, cancellable by any of the account's methods; nobody is signed out. `scheduledFor` is present only then. Available through the standard write scope, including the generic MCP door; authentication alone is insufficient because the out-of-band phone code remains mandatory.",
|
|
19693
20735
|
"input": {
|
|
19694
20736
|
"encoding": "application/json",
|
|
19695
20737
|
"schema": {
|
|
@@ -19719,6 +20761,15 @@ export const catalog = {
|
|
|
19719
20761
|
"deleted",
|
|
19720
20762
|
"pending"
|
|
19721
20763
|
]
|
|
20764
|
+
},
|
|
20765
|
+
"scheduledFor": {
|
|
20766
|
+
"type": "string",
|
|
20767
|
+
"format": "datetime",
|
|
20768
|
+
"description": "When a waiting deletion runs; present only when it waits."
|
|
20769
|
+
},
|
|
20770
|
+
"pending": {
|
|
20771
|
+
"type": "ref",
|
|
20772
|
+
"ref": "pub.techne.draft.identity.defs#pendingChange"
|
|
19722
20773
|
}
|
|
19723
20774
|
}
|
|
19724
20775
|
}
|
|
@@ -19732,6 +20783,10 @@ export const catalog = {
|
|
|
19732
20783
|
},
|
|
19733
20784
|
{
|
|
19734
20785
|
"name": "InvalidCode"
|
|
20786
|
+
},
|
|
20787
|
+
{
|
|
20788
|
+
"name": "MethodFrozen",
|
|
20789
|
+
"description": "The method the code went to is frozen; confirm with another of the account's methods."
|
|
19735
20790
|
}
|
|
19736
20791
|
]
|
|
19737
20792
|
}
|
|
@@ -20842,6 +21897,10 @@ export const catalog = {
|
|
|
20842
21897
|
{
|
|
20843
21898
|
"name": "NewCodeSent",
|
|
20844
21899
|
"description": "The number's account lives on another server; the platform texted a new code that signs it in. Enter that one."
|
|
21900
|
+
},
|
|
21901
|
+
{
|
|
21902
|
+
"name": "MethodFrozen",
|
|
21903
|
+
"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."
|
|
20845
21904
|
}
|
|
20846
21905
|
]
|
|
20847
21906
|
},
|
|
@@ -22386,7 +23445,7 @@ export const catalog = {
|
|
|
22386
23445
|
"group": "social.scenius",
|
|
22387
23446
|
"kind": "query",
|
|
22388
23447
|
"class": "read",
|
|
22389
|
-
"description": "Public: for up to 100 event AT-URIs, what publishers the commons root endorses say about each listed curated event at its current version: the short line (latest endorsed summary) and the lit bank answers (latest endorsed assessment, validated against its pinned question set; an answer is lit when its score is 50 or more, or it has no score and is supported). An event with
|
|
23448
|
+
"description": "Public: for up to 100 event AT-URIs, what publishers the commons root endorses say about each listed curated event at its current version: the short line and its emoji (latest endorsed summary) and the lit bank answers (latest endorsed assessment, validated against its pinned question set; an answer is lit when its score is 50 or more, or it has no score and is supported). An event with no line, emoji or answers, or that is hidden or not listed, is omitted.",
|
|
22390
23449
|
"params": [
|
|
22391
23450
|
{
|
|
22392
23451
|
"name": "uris",
|
|
@@ -22408,7 +23467,7 @@ export const catalog = {
|
|
|
22408
23467
|
"defs": {
|
|
22409
23468
|
"main": {
|
|
22410
23469
|
"type": "query",
|
|
22411
|
-
"description": "Public: for up to 100 event AT-URIs, what publishers the commons root endorses say about each listed curated event at its current version: the short line (latest endorsed summary) and the lit bank answers (latest endorsed assessment, validated against its pinned question set; an answer is lit when its score is 50 or more, or it has no score and is supported). An event with
|
|
23470
|
+
"description": "Public: for up to 100 event AT-URIs, what publishers the commons root endorses say about each listed curated event at its current version: the short line and its emoji (latest endorsed summary) and the lit bank answers (latest endorsed assessment, validated against its pinned question set; an answer is lit when its score is 50 or more, or it has no score and is supported). An event with no line, emoji or answers, or that is hidden or not listed, is omitted.",
|
|
22412
23471
|
"parameters": {
|
|
22413
23472
|
"type": "params",
|
|
22414
23473
|
"required": [
|
|
@@ -22467,6 +23526,10 @@ export const catalog = {
|
|
|
22467
23526
|
"type": "string",
|
|
22468
23527
|
"description": "The event's short line."
|
|
22469
23528
|
},
|
|
23529
|
+
"emoji": {
|
|
23530
|
+
"type": "string",
|
|
23531
|
+
"description": "The emoji on the same summary as the line, when its writer gave one."
|
|
23532
|
+
},
|
|
22470
23533
|
"answers": {
|
|
22471
23534
|
"type": "array",
|
|
22472
23535
|
"items": {
|
|
@@ -22526,7 +23589,7 @@ export const catalog = {
|
|
|
22526
23589
|
"name": "joins",
|
|
22527
23590
|
"type": "array<unknown>",
|
|
22528
23591
|
"required": true,
|
|
22529
|
-
"description": "One entry per readable event carrying its rsvp records (empty for an event the caller cannot read). Each hit may carry `note` (the responder's rsvpNote). Each event may carry `declines`: the notgoing responses (\"Can't
|
|
23592
|
+
"description": "One entry per readable event carrying its rsvp records (empty for an event the caller cannot read). Each hit may carry `note` (the responder's rsvpNote). Each event may carry `maybes`: the interested responses (\"Maybe\"), and `declines`: the notgoing responses (\"Can't go\"), same hit shape. `joins` stays going-only. A notgoing kept in the answerer's own pub.techne.draft.space.beaconDecline is listed only for the answerer and for the beacon's lighter, and for the lighter only while a share there names them (the lighter's own answer needs none); only the space authority's own notgoing rsvp at the space's skey counts."
|
|
22530
23593
|
}
|
|
22531
23594
|
],
|
|
22532
23595
|
"doc": ({
|
|
@@ -22566,7 +23629,7 @@ export const catalog = {
|
|
|
22566
23629
|
"items": {
|
|
22567
23630
|
"type": "unknown"
|
|
22568
23631
|
},
|
|
22569
|
-
"description": "One entry per readable event carrying its rsvp records (empty for an event the caller cannot read). Each hit may carry `note` (the responder's rsvpNote). Each event may carry `declines`: the notgoing responses (\"Can't
|
|
23632
|
+
"description": "One entry per readable event carrying its rsvp records (empty for an event the caller cannot read). Each hit may carry `note` (the responder's rsvpNote). Each event may carry `maybes`: the interested responses (\"Maybe\"), and `declines`: the notgoing responses (\"Can't go\"), same hit shape. `joins` stays going-only. A notgoing kept in the answerer's own pub.techne.draft.space.beaconDecline is listed only for the answerer and for the beacon's lighter, and for the lighter only while a share there names them (the lighter's own answer needs none); only the space authority's own notgoing rsvp at the space's skey counts."
|
|
22570
23633
|
}
|
|
22571
23634
|
}
|
|
22572
23635
|
}
|
|
@@ -25539,7 +26602,7 @@ export const catalog = {
|
|
|
25539
26602
|
"group": "social.scenius",
|
|
25540
26603
|
"kind": "procedure",
|
|
25541
26604
|
"class": "write",
|
|
25542
|
-
"description": "Beacon's join verb: writes a community.lexicon.calendar.rsvp{subject: beacon uri, status: going
|
|
26605
|
+
"description": "Beacon's join verb: writes a community.lexicon.calendar.rsvp{subject: beacon uri, status} (going by default; see `status` for where each answer goes: going and interested into the beacon's own space, notgoing into the answerer's own pub.techne.draft.space.beaconDecline with a share naming the lighter). Caller must pass the beacon space's write policy (authority, or a subject the authority has shared it with). Distinct from scenius's own `rsvp` verb, which is unchanged.",
|
|
25543
26606
|
"input": [
|
|
25544
26607
|
{
|
|
25545
26608
|
"name": "beacon",
|
|
@@ -25550,9 +26613,10 @@ export const catalog = {
|
|
|
25550
26613
|
"name": "status",
|
|
25551
26614
|
"type": "string (enum)",
|
|
25552
26615
|
"required": false,
|
|
25553
|
-
"description": "Default going. Changing it keeps the RSVP rkey
|
|
26616
|
+
"description": "Default going. interested is Maybe. Going and Maybe go in the beacon's space; notgoing (Can't go) goes in the answerer's own pub.techne.draft.space.beaconDecline with a share naming the lighter, so only the two of them read it. Changing it keeps the RSVP rkey and moves the RSVP between the two spaces; its note goes along into the answerer's beaconDecline space, and is deleted when the answer leaves Can't go (never re-published to the beacon's audience).",
|
|
25554
26617
|
"knownValues": [
|
|
25555
26618
|
"going",
|
|
26619
|
+
"interested",
|
|
25556
26620
|
"notgoing"
|
|
25557
26621
|
]
|
|
25558
26622
|
},
|
|
@@ -25576,7 +26640,7 @@ export const catalog = {
|
|
|
25576
26640
|
"defs": {
|
|
25577
26641
|
"main": {
|
|
25578
26642
|
"type": "procedure",
|
|
25579
|
-
"description": "Beacon's join verb: writes a community.lexicon.calendar.rsvp{subject: beacon uri, status: going
|
|
26643
|
+
"description": "Beacon's join verb: writes a community.lexicon.calendar.rsvp{subject: beacon uri, status} (going by default; see `status` for where each answer goes: going and interested into the beacon's own space, notgoing into the answerer's own pub.techne.draft.space.beaconDecline with a share naming the lighter). Caller must pass the beacon space's write policy (authority, or a subject the authority has shared it with). Distinct from scenius's own `rsvp` verb, which is unchanged.",
|
|
25580
26644
|
"input": {
|
|
25581
26645
|
"encoding": "application/json",
|
|
25582
26646
|
"schema": {
|
|
@@ -25593,9 +26657,10 @@ export const catalog = {
|
|
|
25593
26657
|
"type": "string",
|
|
25594
26658
|
"knownValues": [
|
|
25595
26659
|
"going",
|
|
26660
|
+
"interested",
|
|
25596
26661
|
"notgoing"
|
|
25597
26662
|
],
|
|
25598
|
-
"description": "Default going. Changing it keeps the RSVP rkey
|
|
26663
|
+
"description": "Default going. interested is Maybe. Going and Maybe go in the beacon's space; notgoing (Can't go) goes in the answerer's own pub.techne.draft.space.beaconDecline with a share naming the lighter, so only the two of them read it. Changing it keeps the RSVP rkey and moves the RSVP between the two spaces; its note goes along into the answerer's beaconDecline space, and is deleted when the answer leaves Can't go (never re-published to the beacon's audience)."
|
|
25599
26664
|
},
|
|
25600
26665
|
"note": {
|
|
25601
26666
|
"type": "string",
|
|
@@ -25626,6 +26691,10 @@ export const catalog = {
|
|
|
25626
26691
|
},
|
|
25627
26692
|
{
|
|
25628
26693
|
"name": "NotAuthorized"
|
|
26694
|
+
},
|
|
26695
|
+
{
|
|
26696
|
+
"name": "NotFound",
|
|
26697
|
+
"description": "No such beacon (HTTP 404)."
|
|
25629
26698
|
}
|
|
25630
26699
|
]
|
|
25631
26700
|
}
|
|
@@ -25638,7 +26707,7 @@ export const catalog = {
|
|
|
25638
26707
|
"group": "social.scenius",
|
|
25639
26708
|
"kind": "procedure",
|
|
25640
26709
|
"class": "write",
|
|
25641
|
-
"description": "Leave a circle.
|
|
26710
|
+
"description": "Leave a circle. Kept for old builds (the current build ends its own membership with put as the circle). Any member may leave; its manager only once someone else is manager (409 LastManager). The last member leaving deletes the circle and its account.",
|
|
25642
26711
|
"input": [
|
|
25643
26712
|
{
|
|
25644
26713
|
"name": "group",
|
|
@@ -25659,7 +26728,7 @@ export const catalog = {
|
|
|
25659
26728
|
"defs": {
|
|
25660
26729
|
"main": {
|
|
25661
26730
|
"type": "procedure",
|
|
25662
|
-
"description": "Leave a circle.
|
|
26731
|
+
"description": "Leave a circle. Kept for old builds (the current build ends its own membership with put as the circle). Any member may leave; its manager only once someone else is manager (409 LastManager). The last member leaving deletes the circle and its account.",
|
|
25663
26732
|
"input": {
|
|
25664
26733
|
"encoding": "application/json",
|
|
25665
26734
|
"schema": {
|
|
@@ -25694,7 +26763,16 @@ export const catalog = {
|
|
|
25694
26763
|
"name": "InvalidRequest"
|
|
25695
26764
|
},
|
|
25696
26765
|
{
|
|
25697
|
-
"name": "NotAuthorized"
|
|
26766
|
+
"name": "NotAuthorized",
|
|
26767
|
+
"description": "Not in the circle (HTTP 403)."
|
|
26768
|
+
},
|
|
26769
|
+
{
|
|
26770
|
+
"name": "NotFound",
|
|
26771
|
+
"description": "No such circle (HTTP 404)."
|
|
26772
|
+
},
|
|
26773
|
+
{
|
|
26774
|
+
"name": "LastManager",
|
|
26775
|
+
"description": "The caller is the circle's only manager and others remain: make someone else manager first (HTTP 409)."
|
|
25698
26776
|
}
|
|
25699
26777
|
]
|
|
25700
26778
|
}
|
|
@@ -28503,7 +29581,7 @@ export const catalog = {
|
|
|
28503
29581
|
"group": "social.scenius",
|
|
28504
29582
|
"kind": "procedure",
|
|
28505
29583
|
"class": "write",
|
|
28506
|
-
"description": "Remove a member (or a pending member) from a circle.
|
|
29584
|
+
"description": "Remove a member (or a pending member) from a circle. Kept for old builds (the current build ends the membership with put as the circle). Only its manager (role 40) may; a member gets 403. Removing the last manager while others remain is 409 LastManager.",
|
|
28507
29585
|
"input": [
|
|
28508
29586
|
{
|
|
28509
29587
|
"name": "group",
|
|
@@ -28530,7 +29608,7 @@ export const catalog = {
|
|
|
28530
29608
|
"defs": {
|
|
28531
29609
|
"main": {
|
|
28532
29610
|
"type": "procedure",
|
|
28533
|
-
"description": "Remove a member (or a pending member) from a circle.
|
|
29611
|
+
"description": "Remove a member (or a pending member) from a circle. Kept for old builds (the current build ends the membership with put as the circle). Only its manager (role 40) may; a member gets 403. Removing the last manager while others remain is 409 LastManager.",
|
|
28534
29612
|
"input": {
|
|
28535
29613
|
"encoding": "application/json",
|
|
28536
29614
|
"schema": {
|
|
@@ -28570,7 +29648,95 @@ export const catalog = {
|
|
|
28570
29648
|
"name": "InvalidRequest"
|
|
28571
29649
|
},
|
|
28572
29650
|
{
|
|
28573
|
-
"name": "NotAuthorized"
|
|
29651
|
+
"name": "NotAuthorized",
|
|
29652
|
+
"description": "Not in the circle, or not its manager (HTTP 403)."
|
|
29653
|
+
},
|
|
29654
|
+
{
|
|
29655
|
+
"name": "Forbidden",
|
|
29656
|
+
"description": "The membership is above the caller's own role (HTTP 403)."
|
|
29657
|
+
},
|
|
29658
|
+
{
|
|
29659
|
+
"name": "NotFound",
|
|
29660
|
+
"description": "No such circle (HTTP 404)."
|
|
29661
|
+
},
|
|
29662
|
+
{
|
|
29663
|
+
"name": "LastManager",
|
|
29664
|
+
"description": "The circle would be left with members and no manager: make someone else manager first (HTTP 409)."
|
|
29665
|
+
}
|
|
29666
|
+
]
|
|
29667
|
+
}
|
|
29668
|
+
}
|
|
29669
|
+
})
|
|
29670
|
+
},
|
|
29671
|
+
{
|
|
29672
|
+
"nsid": "social.scenius.removePerson",
|
|
29673
|
+
"name": "removePerson",
|
|
29674
|
+
"group": "social.scenius",
|
|
29675
|
+
"kind": "procedure",
|
|
29676
|
+
"class": "write",
|
|
29677
|
+
"description": "Remove a person from the caller's People: archive (archivedAt = now, the rest of the body as stored) every active pub.techne.draft.contact of the caller's that names the account, by a bound did or by a saved number that resolves to it. Only the caller's own contacts change: not their circles, not blocks, nothing of the other account's. archived is how many contacts were archived; 0 when none named the account, so a repeat is harmless. Adding them again (addPerson, or a put of a new contact) brings them back.",
|
|
29678
|
+
"input": [
|
|
29679
|
+
{
|
|
29680
|
+
"name": "did",
|
|
29681
|
+
"type": "string<did>",
|
|
29682
|
+
"required": true
|
|
29683
|
+
},
|
|
29684
|
+
{
|
|
29685
|
+
"name": "operationId",
|
|
29686
|
+
"type": "string",
|
|
29687
|
+
"required": false
|
|
29688
|
+
}
|
|
29689
|
+
],
|
|
29690
|
+
"output": [
|
|
29691
|
+
{
|
|
29692
|
+
"name": "archived",
|
|
29693
|
+
"type": "integer",
|
|
29694
|
+
"required": true
|
|
29695
|
+
}
|
|
29696
|
+
],
|
|
29697
|
+
"doc": ({
|
|
29698
|
+
"lexicon": 1,
|
|
29699
|
+
"id": "social.scenius.removePerson",
|
|
29700
|
+
"defs": {
|
|
29701
|
+
"main": {
|
|
29702
|
+
"type": "procedure",
|
|
29703
|
+
"description": "Remove a person from the caller's People: archive (archivedAt = now, the rest of the body as stored) every active pub.techne.draft.contact of the caller's that names the account, by a bound did or by a saved number that resolves to it. Only the caller's own contacts change: not their circles, not blocks, nothing of the other account's. archived is how many contacts were archived; 0 when none named the account, so a repeat is harmless. Adding them again (addPerson, or a put of a new contact) brings them back.",
|
|
29704
|
+
"input": {
|
|
29705
|
+
"encoding": "application/json",
|
|
29706
|
+
"schema": {
|
|
29707
|
+
"type": "object",
|
|
29708
|
+
"properties": {
|
|
29709
|
+
"did": {
|
|
29710
|
+
"type": "string",
|
|
29711
|
+
"format": "did"
|
|
29712
|
+
},
|
|
29713
|
+
"operationId": {
|
|
29714
|
+
"type": "string"
|
|
29715
|
+
}
|
|
29716
|
+
},
|
|
29717
|
+
"required": [
|
|
29718
|
+
"did"
|
|
29719
|
+
]
|
|
29720
|
+
}
|
|
29721
|
+
},
|
|
29722
|
+
"output": {
|
|
29723
|
+
"encoding": "application/json",
|
|
29724
|
+
"schema": {
|
|
29725
|
+
"type": "object",
|
|
29726
|
+
"properties": {
|
|
29727
|
+
"archived": {
|
|
29728
|
+
"type": "integer",
|
|
29729
|
+
"minimum": 0
|
|
29730
|
+
}
|
|
29731
|
+
},
|
|
29732
|
+
"required": [
|
|
29733
|
+
"archived"
|
|
29734
|
+
]
|
|
29735
|
+
}
|
|
29736
|
+
},
|
|
29737
|
+
"errors": [
|
|
29738
|
+
{
|
|
29739
|
+
"name": "InvalidRequest"
|
|
28574
29740
|
}
|
|
28575
29741
|
]
|
|
28576
29742
|
}
|
|
@@ -28583,7 +29749,7 @@ export const catalog = {
|
|
|
28583
29749
|
"group": "social.scenius",
|
|
28584
29750
|
"kind": "procedure",
|
|
28585
29751
|
"class": "write",
|
|
28586
|
-
"description": "Rename a circle.
|
|
29752
|
+
"description": "Rename a circle. Kept for old builds (the current build puts the descriptor as the circle). Only its manager (role 40) may; a member gets 403 NotAuthorized.",
|
|
28587
29753
|
"input": [
|
|
28588
29754
|
{
|
|
28589
29755
|
"name": "group",
|
|
@@ -28609,7 +29775,7 @@ export const catalog = {
|
|
|
28609
29775
|
"defs": {
|
|
28610
29776
|
"main": {
|
|
28611
29777
|
"type": "procedure",
|
|
28612
|
-
"description": "Rename a circle.
|
|
29778
|
+
"description": "Rename a circle. Kept for old builds (the current build puts the descriptor as the circle). Only its manager (role 40) may; a member gets 403 NotAuthorized.",
|
|
28613
29779
|
"input": {
|
|
28614
29780
|
"encoding": "application/json",
|
|
28615
29781
|
"schema": {
|
|
@@ -28651,7 +29817,12 @@ export const catalog = {
|
|
|
28651
29817
|
"name": "InvalidRequest"
|
|
28652
29818
|
},
|
|
28653
29819
|
{
|
|
28654
|
-
"name": "NotAuthorized"
|
|
29820
|
+
"name": "NotAuthorized",
|
|
29821
|
+
"description": "Not in the circle, or not its manager (HTTP 403)."
|
|
29822
|
+
},
|
|
29823
|
+
{
|
|
29824
|
+
"name": "NotFound",
|
|
29825
|
+
"description": "No such circle (HTTP 404)."
|
|
28655
29826
|
}
|
|
28656
29827
|
]
|
|
28657
29828
|
},
|
|
@@ -31696,9 +32867,9 @@ export const catalog = {
|
|
|
31696
32867
|
}
|
|
31697
32868
|
],
|
|
31698
32869
|
"counts": {
|
|
31699
|
-
"records":
|
|
31700
|
-
"spaces":
|
|
32870
|
+
"records": 152,
|
|
32871
|
+
"spaces": 13,
|
|
31701
32872
|
"predicates": 9,
|
|
31702
|
-
"methods":
|
|
32873
|
+
"methods": 127
|
|
31703
32874
|
}
|
|
31704
32875
|
};
|