techne-sdk 0.3.8 → 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 +59 -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.js +1067 -194
- package/dist/generated/index.d.ts +9 -0
- package/dist/generated/index.js +27 -0
- package/dist/generated/lexicons.d.ts +1436 -148
- package/dist/generated/lexicons.js +782 -23
- package/dist/generated/nsid.d.ts +14 -0
- package/dist/generated/nsid.js +14 -0
- package/dist/generated/nsid.json +14 -0
- 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 +3 -0
- package/dist/generated/types/pub/techne/draft/identity/attest.js +7 -0
- package/dist/generated/types/pub/techne/draft/identity/beginAddMethod.d.ts +3 -0
- package/dist/generated/types/pub/techne/draft/identity/beginAddMethod.js +7 -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 +6 -0
- package/dist/generated/types/pub/techne/draft/identity/finishAddMethod.js +14 -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 +4 -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/permissioned/putRecords.d.ts +2 -2
- 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/wasm/techne-wasm.gen.js +1 -1
- package/dist/wasm/techne-wasm2js.gen.js +11723 -11721
- 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",
|
|
@@ -3197,14 +3197,14 @@ export const catalog = {
|
|
|
3197
3197
|
"name": "draft.commons.moveAccountHandle",
|
|
3198
3198
|
"group": "pub.techne",
|
|
3199
3199
|
"kind": "procedure",
|
|
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
|
|
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.",
|
|
3201
3201
|
"doc": ({
|
|
3202
3202
|
"lexicon": 1,
|
|
3203
3203
|
"id": "pub.techne.draft.commons.moveAccountHandle",
|
|
3204
3204
|
"defs": {
|
|
3205
3205
|
"main": {
|
|
3206
3206
|
"type": "procedure",
|
|
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
|
|
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.",
|
|
3208
3208
|
"input": {
|
|
3209
3209
|
"encoding": "application/json",
|
|
3210
3210
|
"schema": {
|
|
@@ -3259,7 +3259,11 @@ export const catalog = {
|
|
|
3259
3259
|
},
|
|
3260
3260
|
{
|
|
3261
3261
|
"name": "NotAuthorized",
|
|
3262
|
-
"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)."
|
|
3263
3267
|
},
|
|
3264
3268
|
{
|
|
3265
3269
|
"name": "InvalidRequest",
|
|
@@ -5385,14 +5389,14 @@ export const catalog = {
|
|
|
5385
5389
|
"name": "draft.identity.attest",
|
|
5386
5390
|
"group": "pub.techne",
|
|
5387
5391
|
"kind": "procedure",
|
|
5388
|
-
"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, 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).",
|
|
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).",
|
|
5389
5393
|
"doc": ({
|
|
5390
5394
|
"lexicon": 1,
|
|
5391
5395
|
"id": "pub.techne.draft.identity.attest",
|
|
5392
5396
|
"defs": {
|
|
5393
5397
|
"main": {
|
|
5394
5398
|
"type": "procedure",
|
|
5395
|
-
"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, 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).",
|
|
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).",
|
|
5396
5400
|
"input": {
|
|
5397
5401
|
"encoding": "application/json",
|
|
5398
5402
|
"schema": {
|
|
@@ -5477,6 +5481,10 @@ export const catalog = {
|
|
|
5477
5481
|
"name": "ChannelReleased",
|
|
5478
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)."
|
|
5479
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
|
+
},
|
|
5480
5488
|
{
|
|
5481
5489
|
"name": "RateLimitExceeded",
|
|
5482
5490
|
"description": "As identity.resolve (HTTP 429)."
|
|
@@ -5548,6 +5556,10 @@ export const catalog = {
|
|
|
5548
5556
|
"name": "RateLimitExceeded",
|
|
5549
5557
|
"description": "Too many codes sent to this address (HTTP 429)."
|
|
5550
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
|
+
},
|
|
5551
5563
|
{
|
|
5552
5564
|
"name": "SendFailed",
|
|
5553
5565
|
"description": "The code could not be texted to that phone number (HTTP 502). Try again."
|
|
@@ -5557,6 +5569,62 @@ export const catalog = {
|
|
|
5557
5569
|
}
|
|
5558
5570
|
})
|
|
5559
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."
|
|
5622
|
+
}
|
|
5623
|
+
]
|
|
5624
|
+
}
|
|
5625
|
+
}
|
|
5626
|
+
})
|
|
5627
|
+
},
|
|
5560
5628
|
{
|
|
5561
5629
|
"nsid": "pub.techne.draft.identity.checkLinkToken",
|
|
5562
5630
|
"name": "draft.identity.checkLinkToken",
|
|
@@ -5699,14 +5767,14 @@ export const catalog = {
|
|
|
5699
5767
|
"name": "draft.identity.createLinkToken",
|
|
5700
5768
|
"group": "pub.techne",
|
|
5701
5769
|
"kind": "procedure",
|
|
5702
|
-
"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.",
|
|
5703
5771
|
"doc": ({
|
|
5704
5772
|
"lexicon": 1,
|
|
5705
5773
|
"id": "pub.techne.draft.identity.createLinkToken",
|
|
5706
5774
|
"defs": {
|
|
5707
5775
|
"main": {
|
|
5708
5776
|
"type": "procedure",
|
|
5709
|
-
"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.",
|
|
5710
5778
|
"input": {
|
|
5711
5779
|
"encoding": "application/json",
|
|
5712
5780
|
"schema": {
|
|
@@ -5821,7 +5889,7 @@ export const catalog = {
|
|
|
5821
5889
|
},
|
|
5822
5890
|
"methodView": {
|
|
5823
5891
|
"type": "object",
|
|
5824
|
-
"description": "One sign-in method
|
|
5892
|
+
"description": "One sign-in method of the caller's account, masked.",
|
|
5825
5893
|
"required": [
|
|
5826
5894
|
"bid",
|
|
5827
5895
|
"type",
|
|
@@ -5832,23 +5900,76 @@ export const catalog = {
|
|
|
5832
5900
|
"bid": {
|
|
5833
5901
|
"type": "string",
|
|
5834
5902
|
"maxLength": 64,
|
|
5835
|
-
"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."
|
|
5836
5904
|
},
|
|
5837
5905
|
"type": {
|
|
5838
5906
|
"type": "string",
|
|
5839
5907
|
"knownValues": [
|
|
5840
5908
|
"email",
|
|
5841
|
-
"phone"
|
|
5909
|
+
"phone",
|
|
5910
|
+
"passkey",
|
|
5911
|
+
"nostr",
|
|
5912
|
+
"recoveryCodes"
|
|
5842
5913
|
]
|
|
5843
5914
|
},
|
|
5844
5915
|
"masked": {
|
|
5845
5916
|
"type": "string",
|
|
5846
5917
|
"maxLength": 320,
|
|
5847
|
-
"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)`."
|
|
5848
5919
|
},
|
|
5849
5920
|
"boundAt": {
|
|
5850
5921
|
"type": "string",
|
|
5851
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"
|
|
5852
5973
|
}
|
|
5853
5974
|
}
|
|
5854
5975
|
},
|
|
@@ -6050,6 +6171,14 @@ export const catalog = {
|
|
|
6050
6171
|
"name": "RateLimitExceeded",
|
|
6051
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."
|
|
6052
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
|
+
},
|
|
6053
6182
|
{
|
|
6054
6183
|
"name": "UpstreamFailure",
|
|
6055
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."
|
|
@@ -6161,6 +6290,10 @@ export const catalog = {
|
|
|
6161
6290
|
"name": "InvalidToken",
|
|
6162
6291
|
"description": "The token is unknown, used, expired, or was issued to another session."
|
|
6163
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
|
+
},
|
|
6164
6297
|
{
|
|
6165
6298
|
"name": "NotEmpty",
|
|
6166
6299
|
"description": "The account to fold gained a record or is 7 days old or more; link instead."
|
|
@@ -6175,14 +6308,14 @@ export const catalog = {
|
|
|
6175
6308
|
"name": "draft.identity.holdForPhone",
|
|
6176
6309
|
"group": "pub.techne",
|
|
6177
6310
|
"kind": "procedure",
|
|
6178
|
-
"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.",
|
|
6179
6312
|
"doc": ({
|
|
6180
6313
|
"lexicon": 1,
|
|
6181
6314
|
"id": "pub.techne.draft.identity.holdForPhone",
|
|
6182
6315
|
"defs": {
|
|
6183
6316
|
"main": {
|
|
6184
6317
|
"type": "procedure",
|
|
6185
|
-
"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.",
|
|
6186
6319
|
"input": {
|
|
6187
6320
|
"encoding": "application/json",
|
|
6188
6321
|
"schema": {
|
|
@@ -6267,7 +6400,7 @@ export const catalog = {
|
|
|
6267
6400
|
},
|
|
6268
6401
|
"record": {
|
|
6269
6402
|
"type": "unknown",
|
|
6270
|
-
"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."
|
|
6271
6404
|
}
|
|
6272
6405
|
}
|
|
6273
6406
|
}
|
|
@@ -6332,6 +6465,10 @@ export const catalog = {
|
|
|
6332
6465
|
"name": "InvalidToken",
|
|
6333
6466
|
"description": "The token is unknown, used, expired, or was issued to another session."
|
|
6334
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
|
+
},
|
|
6335
6472
|
{
|
|
6336
6473
|
"name": "InvalidRequest",
|
|
6337
6474
|
"description": "`primary` names neither account, or the other account's keys are not held here (sign in to it and link from there)."
|
|
@@ -6652,74 +6789,831 @@ export const catalog = {
|
|
|
6652
6789
|
"required": [
|
|
6653
6790
|
"links"
|
|
6654
6791
|
],
|
|
6655
|
-
"properties": {
|
|
6656
|
-
"links": {
|
|
6657
|
-
"type": "array",
|
|
6658
|
-
"items": {
|
|
6659
|
-
"type": "ref",
|
|
6660
|
-
"ref": "pub.techne.draft.identity.defs#linkTokenListed"
|
|
6661
|
-
}
|
|
6662
|
-
}
|
|
6663
|
-
}
|
|
6792
|
+
"properties": {
|
|
6793
|
+
"links": {
|
|
6794
|
+
"type": "array",
|
|
6795
|
+
"items": {
|
|
6796
|
+
"type": "ref",
|
|
6797
|
+
"ref": "pub.techne.draft.identity.defs#linkTokenListed"
|
|
6798
|
+
}
|
|
6799
|
+
}
|
|
6800
|
+
}
|
|
6801
|
+
}
|
|
6802
|
+
},
|
|
6803
|
+
"errors": [
|
|
6804
|
+
{
|
|
6805
|
+
"name": "InvalidRequest",
|
|
6806
|
+
"description": "HTTP 400: a field out of bounds, or a body that is not JSON; 415: not application/json; 422: not the input's shape."
|
|
6807
|
+
},
|
|
6808
|
+
{
|
|
6809
|
+
"name": "NotSupported",
|
|
6810
|
+
"description": "HTTP 400: the caller's account is not hosted on the platform's identity PDS, or link tokens are not configured there."
|
|
6811
|
+
},
|
|
6812
|
+
{
|
|
6813
|
+
"name": "RateLimitExceeded",
|
|
6814
|
+
"description": "Too many writes from this DID (HTTP 429)."
|
|
6815
|
+
},
|
|
6816
|
+
{
|
|
6817
|
+
"name": "UpstreamFailure",
|
|
6818
|
+
"description": "HTTP 502: the identity PDS could not be reached, refused the credential the platform holds for the caller, or answered with a failure; try again."
|
|
6819
|
+
}
|
|
6820
|
+
]
|
|
6821
|
+
}
|
|
6822
|
+
}
|
|
6823
|
+
})
|
|
6824
|
+
},
|
|
6825
|
+
{
|
|
6826
|
+
"nsid": "pub.techne.draft.identity.listMethods",
|
|
6827
|
+
"name": "draft.identity.listMethods",
|
|
6828
|
+
"group": "pub.techne",
|
|
6829
|
+
"kind": "query",
|
|
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.",
|
|
6831
|
+
"doc": ({
|
|
6832
|
+
"lexicon": 1,
|
|
6833
|
+
"id": "pub.techne.draft.identity.listMethods",
|
|
6834
|
+
"defs": {
|
|
6835
|
+
"main": {
|
|
6836
|
+
"type": "query",
|
|
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
|
+
},
|
|
6847
|
+
"output": {
|
|
6848
|
+
"encoding": "application/json",
|
|
6849
|
+
"schema": {
|
|
6850
|
+
"type": "object",
|
|
6851
|
+
"required": [
|
|
6852
|
+
"methods",
|
|
6853
|
+
"links"
|
|
6854
|
+
],
|
|
6855
|
+
"properties": {
|
|
6856
|
+
"methods": {
|
|
6857
|
+
"type": "array",
|
|
6858
|
+
"items": {
|
|
6859
|
+
"type": "ref",
|
|
6860
|
+
"ref": "pub.techne.draft.identity.defs#methodView"
|
|
6861
|
+
}
|
|
6862
|
+
},
|
|
6863
|
+
"links": {
|
|
6864
|
+
"type": "array",
|
|
6865
|
+
"items": {
|
|
6866
|
+
"type": "ref",
|
|
6867
|
+
"ref": "pub.techne.draft.identity.defs#linkView"
|
|
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
|
+
}
|
|
6877
|
+
}
|
|
6878
|
+
}
|
|
6879
|
+
}
|
|
6880
|
+
},
|
|
6881
|
+
"errors": [
|
|
6882
|
+
{
|
|
6883
|
+
"name": "AuthenticationRequired",
|
|
6884
|
+
"description": "No signed-in caller."
|
|
6885
|
+
}
|
|
6886
|
+
]
|
|
6887
|
+
}
|
|
6888
|
+
}
|
|
6889
|
+
})
|
|
6890
|
+
},
|
|
6891
|
+
{
|
|
6892
|
+
"nsid": "pub.techne.draft.identity.listPhoneHolds",
|
|
6893
|
+
"name": "draft.identity.listPhoneHolds",
|
|
6894
|
+
"group": "pub.techne",
|
|
6895
|
+
"kind": "query",
|
|
6896
|
+
"description": "The live holds (identity.holdForPhone) that would write as `actAs`, oldest first, for anyone who may write as it, and of those only the holds for a space the caller may read. With `alsoActAs`, the holds of each of those accounts too, in the order first asked (an account asked twice is listed once) (so a client lists every circle's pending members in one call): an account among them the caller may not write as is passed over, and writing as none of them is 403. A hold shows the account it writes as, who asked and the template as written, never the number or its hash (Beacon's circle template carries `addedBy`, so a circle shows \"1 pending, added by <member>\"). A hold the caller asked for also carries `name`, the name the caller saved for the number in their own contacts, when they did. Holds are identity state, not records, so they are listed here and not through the generic query.",
|
|
6897
|
+
"doc": ({
|
|
6898
|
+
"lexicon": 1,
|
|
6899
|
+
"id": "pub.techne.draft.identity.listPhoneHolds",
|
|
6900
|
+
"defs": {
|
|
6901
|
+
"main": {
|
|
6902
|
+
"type": "query",
|
|
6903
|
+
"description": "The live holds (identity.holdForPhone) that would write as `actAs`, oldest first, for anyone who may write as it, and of those only the holds for a space the caller may read. With `alsoActAs`, the holds of each of those accounts too, in the order first asked (an account asked twice is listed once) (so a client lists every circle's pending members in one call): an account among them the caller may not write as is passed over, and writing as none of them is 403. A hold shows the account it writes as, who asked and the template as written, never the number or its hash (Beacon's circle template carries `addedBy`, so a circle shows \"1 pending, added by <member>\"). A hold the caller asked for also carries `name`, the name the caller saved for the number in their own contacts, when they did. Holds are identity state, not records, so they are listed here and not through the generic query.",
|
|
6904
|
+
"parameters": {
|
|
6905
|
+
"type": "params",
|
|
6906
|
+
"required": [
|
|
6907
|
+
"actAs"
|
|
6908
|
+
],
|
|
6909
|
+
"properties": {
|
|
6910
|
+
"actAs": {
|
|
6911
|
+
"type": "string",
|
|
6912
|
+
"format": "did"
|
|
6913
|
+
},
|
|
6914
|
+
"alsoActAs": {
|
|
6915
|
+
"type": "array",
|
|
6916
|
+
"maxLength": 99,
|
|
6917
|
+
"description": "More accounts whose holds to list in the same call, after `actAs` (repeat the parameter).",
|
|
6918
|
+
"items": {
|
|
6919
|
+
"type": "string",
|
|
6920
|
+
"format": "did"
|
|
6921
|
+
}
|
|
6922
|
+
}
|
|
6923
|
+
}
|
|
6924
|
+
},
|
|
6925
|
+
"output": {
|
|
6926
|
+
"encoding": "application/json",
|
|
6927
|
+
"schema": {
|
|
6928
|
+
"type": "object",
|
|
6929
|
+
"required": [
|
|
6930
|
+
"holds"
|
|
6931
|
+
],
|
|
6932
|
+
"properties": {
|
|
6933
|
+
"holds": {
|
|
6934
|
+
"type": "array",
|
|
6935
|
+
"items": {
|
|
6936
|
+
"type": "ref",
|
|
6937
|
+
"ref": "#holdView"
|
|
6938
|
+
}
|
|
6939
|
+
}
|
|
6940
|
+
}
|
|
6941
|
+
}
|
|
6942
|
+
},
|
|
6943
|
+
"errors": [
|
|
6944
|
+
{
|
|
6945
|
+
"name": "InvalidRequest",
|
|
6946
|
+
"description": "HTTP 400: `actAs` or one of `alsoActAs` is not a DID, or more than 99 `alsoActAs`."
|
|
6947
|
+
},
|
|
6948
|
+
{
|
|
6949
|
+
"name": "Forbidden",
|
|
6950
|
+
"description": "HTTP 403: the caller may not write as `actAs` (with `alsoActAs`: as any of them)."
|
|
6951
|
+
}
|
|
6952
|
+
]
|
|
6953
|
+
},
|
|
6954
|
+
"holdView": {
|
|
6955
|
+
"type": "object",
|
|
6956
|
+
"required": [
|
|
6957
|
+
"id",
|
|
6958
|
+
"askedBy",
|
|
6959
|
+
"collection",
|
|
6960
|
+
"record",
|
|
6961
|
+
"createdAt"
|
|
6962
|
+
],
|
|
6963
|
+
"properties": {
|
|
6964
|
+
"id": {
|
|
6965
|
+
"type": "string"
|
|
6966
|
+
},
|
|
6967
|
+
"actAs": {
|
|
6968
|
+
"type": "string",
|
|
6969
|
+
"format": "did",
|
|
6970
|
+
"description": "The account the hold would write as."
|
|
6971
|
+
},
|
|
6972
|
+
"askedBy": {
|
|
6973
|
+
"type": "string",
|
|
6974
|
+
"format": "did"
|
|
6975
|
+
},
|
|
6976
|
+
"app": {
|
|
6977
|
+
"type": "string"
|
|
6978
|
+
},
|
|
6979
|
+
"collection": {
|
|
6980
|
+
"type": "string",
|
|
6981
|
+
"format": "nsid"
|
|
6982
|
+
},
|
|
6983
|
+
"rkey": {
|
|
6984
|
+
"type": "string",
|
|
6985
|
+
"description": "The record key template."
|
|
6986
|
+
},
|
|
6987
|
+
"space": {
|
|
6988
|
+
"type": "string"
|
|
6989
|
+
},
|
|
6990
|
+
"record": {
|
|
6991
|
+
"type": "unknown",
|
|
6992
|
+
"description": "The record template, slots unfilled."
|
|
6993
|
+
},
|
|
6994
|
+
"createdAt": {
|
|
6995
|
+
"type": "string",
|
|
6996
|
+
"format": "datetime"
|
|
6997
|
+
},
|
|
6998
|
+
"name": {
|
|
6999
|
+
"type": "string",
|
|
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."
|
|
7001
|
+
}
|
|
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)."
|
|
6664
7541
|
}
|
|
6665
7542
|
},
|
|
6666
|
-
"
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
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
|
|
6674
7556
|
},
|
|
6675
|
-
{
|
|
6676
|
-
"
|
|
6677
|
-
"
|
|
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"
|
|
6678
7575
|
},
|
|
6679
|
-
{
|
|
6680
|
-
"
|
|
6681
|
-
"
|
|
7576
|
+
"deletedAt": {
|
|
7577
|
+
"type": "string",
|
|
7578
|
+
"format": "datetime",
|
|
7579
|
+
"description": "When the platform deleted its side."
|
|
6682
7580
|
}
|
|
6683
|
-
|
|
7581
|
+
}
|
|
6684
7582
|
}
|
|
6685
7583
|
}
|
|
6686
7584
|
})
|
|
6687
7585
|
},
|
|
6688
7586
|
{
|
|
6689
|
-
"nsid": "pub.techne.draft.identity.
|
|
6690
|
-
"name": "draft.identity.
|
|
7587
|
+
"nsid": "pub.techne.draft.identity.openAccountPage",
|
|
7588
|
+
"name": "draft.identity.openAccountPage",
|
|
6691
7589
|
"group": "pub.techne",
|
|
6692
|
-
"kind": "
|
|
6693
|
-
"description": "
|
|
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.",
|
|
6694
7592
|
"doc": ({
|
|
6695
7593
|
"lexicon": 1,
|
|
6696
|
-
"id": "pub.techne.draft.identity.
|
|
7594
|
+
"id": "pub.techne.draft.identity.openAccountPage",
|
|
6697
7595
|
"defs": {
|
|
6698
7596
|
"main": {
|
|
6699
|
-
"type": "
|
|
6700
|
-
"description": "
|
|
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.",
|
|
6701
7599
|
"output": {
|
|
6702
7600
|
"encoding": "application/json",
|
|
6703
7601
|
"schema": {
|
|
6704
7602
|
"type": "object",
|
|
6705
7603
|
"required": [
|
|
6706
|
-
"
|
|
6707
|
-
"
|
|
7604
|
+
"url",
|
|
7605
|
+
"expiresAt"
|
|
6708
7606
|
],
|
|
6709
7607
|
"properties": {
|
|
6710
|
-
"
|
|
6711
|
-
"type": "
|
|
6712
|
-
"
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
}
|
|
7608
|
+
"url": {
|
|
7609
|
+
"type": "string",
|
|
7610
|
+
"format": "uri",
|
|
7611
|
+
"maxLength": 2048,
|
|
7612
|
+
"description": "Open it once, before expiresAt."
|
|
6716
7613
|
},
|
|
6717
|
-
"
|
|
6718
|
-
"type": "
|
|
6719
|
-
"
|
|
6720
|
-
"type": "ref",
|
|
6721
|
-
"ref": "pub.techne.draft.identity.defs#linkView"
|
|
6722
|
-
}
|
|
7614
|
+
"expiresAt": {
|
|
7615
|
+
"type": "string",
|
|
7616
|
+
"format": "datetime"
|
|
6723
7617
|
}
|
|
6724
7618
|
}
|
|
6725
7619
|
}
|
|
@@ -6728,124 +7622,28 @@ export const catalog = {
|
|
|
6728
7622
|
{
|
|
6729
7623
|
"name": "AuthenticationRequired",
|
|
6730
7624
|
"description": "No signed-in caller."
|
|
6731
|
-
}
|
|
6732
|
-
]
|
|
6733
|
-
}
|
|
6734
|
-
}
|
|
6735
|
-
})
|
|
6736
|
-
},
|
|
6737
|
-
{
|
|
6738
|
-
"nsid": "pub.techne.draft.identity.listPhoneHolds",
|
|
6739
|
-
"name": "draft.identity.listPhoneHolds",
|
|
6740
|
-
"group": "pub.techne",
|
|
6741
|
-
"kind": "query",
|
|
6742
|
-
"description": "The live holds (identity.holdForPhone) that would write as `actAs`, oldest first, for anyone who may write as it, and of those only the holds for a space the caller may read. With `alsoActAs`, the holds of each of those accounts too, in the order first asked (an account asked twice is listed once) (so a client lists every circle's pending members in one call): an account among them the caller may not write as is passed over, and writing as none of them is 403. A hold shows the account it writes as, who asked and the template as written, never the number or its hash (Beacon's circle template carries `addedBy`, so a circle shows \"1 pending, added by <member>\"). A hold the caller asked for also carries `name`, the name the caller saved for the number in their own contacts, when they did. Holds are identity state, not records, so they are listed here and not through the generic query.",
|
|
6743
|
-
"doc": ({
|
|
6744
|
-
"lexicon": 1,
|
|
6745
|
-
"id": "pub.techne.draft.identity.listPhoneHolds",
|
|
6746
|
-
"defs": {
|
|
6747
|
-
"main": {
|
|
6748
|
-
"type": "query",
|
|
6749
|
-
"description": "The live holds (identity.holdForPhone) that would write as `actAs`, oldest first, for anyone who may write as it, and of those only the holds for a space the caller may read. With `alsoActAs`, the holds of each of those accounts too, in the order first asked (an account asked twice is listed once) (so a client lists every circle's pending members in one call): an account among them the caller may not write as is passed over, and writing as none of them is 403. A hold shows the account it writes as, who asked and the template as written, never the number or its hash (Beacon's circle template carries `addedBy`, so a circle shows \"1 pending, added by <member>\"). A hold the caller asked for also carries `name`, the name the caller saved for the number in their own contacts, when they did. Holds are identity state, not records, so they are listed here and not through the generic query.",
|
|
6750
|
-
"parameters": {
|
|
6751
|
-
"type": "params",
|
|
6752
|
-
"required": [
|
|
6753
|
-
"actAs"
|
|
6754
|
-
],
|
|
6755
|
-
"properties": {
|
|
6756
|
-
"actAs": {
|
|
6757
|
-
"type": "string",
|
|
6758
|
-
"format": "did"
|
|
6759
|
-
},
|
|
6760
|
-
"alsoActAs": {
|
|
6761
|
-
"type": "array",
|
|
6762
|
-
"maxLength": 99,
|
|
6763
|
-
"description": "More accounts whose holds to list in the same call, after `actAs` (repeat the parameter).",
|
|
6764
|
-
"items": {
|
|
6765
|
-
"type": "string",
|
|
6766
|
-
"format": "did"
|
|
6767
|
-
}
|
|
6768
|
-
}
|
|
6769
|
-
}
|
|
6770
|
-
},
|
|
6771
|
-
"output": {
|
|
6772
|
-
"encoding": "application/json",
|
|
6773
|
-
"schema": {
|
|
6774
|
-
"type": "object",
|
|
6775
|
-
"required": [
|
|
6776
|
-
"holds"
|
|
6777
|
-
],
|
|
6778
|
-
"properties": {
|
|
6779
|
-
"holds": {
|
|
6780
|
-
"type": "array",
|
|
6781
|
-
"items": {
|
|
6782
|
-
"type": "ref",
|
|
6783
|
-
"ref": "#holdView"
|
|
6784
|
-
}
|
|
6785
|
-
}
|
|
6786
|
-
}
|
|
6787
|
-
}
|
|
6788
|
-
},
|
|
6789
|
-
"errors": [
|
|
6790
|
-
{
|
|
6791
|
-
"name": "InvalidRequest",
|
|
6792
|
-
"description": "HTTP 400: `actAs` or one of `alsoActAs` is not a DID, or more than 99 `alsoActAs`."
|
|
6793
7625
|
},
|
|
6794
7626
|
{
|
|
6795
|
-
"name": "
|
|
6796
|
-
"description": "
|
|
6797
|
-
}
|
|
6798
|
-
]
|
|
6799
|
-
},
|
|
6800
|
-
"holdView": {
|
|
6801
|
-
"type": "object",
|
|
6802
|
-
"required": [
|
|
6803
|
-
"id",
|
|
6804
|
-
"askedBy",
|
|
6805
|
-
"collection",
|
|
6806
|
-
"record",
|
|
6807
|
-
"createdAt"
|
|
6808
|
-
],
|
|
6809
|
-
"properties": {
|
|
6810
|
-
"id": {
|
|
6811
|
-
"type": "string"
|
|
6812
|
-
},
|
|
6813
|
-
"actAs": {
|
|
6814
|
-
"type": "string",
|
|
6815
|
-
"format": "did",
|
|
6816
|
-
"description": "The account the hold would write as."
|
|
6817
|
-
},
|
|
6818
|
-
"askedBy": {
|
|
6819
|
-
"type": "string",
|
|
6820
|
-
"format": "did"
|
|
6821
|
-
},
|
|
6822
|
-
"app": {
|
|
6823
|
-
"type": "string"
|
|
6824
|
-
},
|
|
6825
|
-
"collection": {
|
|
6826
|
-
"type": "string",
|
|
6827
|
-
"format": "nsid"
|
|
6828
|
-
},
|
|
6829
|
-
"rkey": {
|
|
6830
|
-
"type": "string",
|
|
6831
|
-
"description": "The record key template."
|
|
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)."
|
|
6832
7629
|
},
|
|
6833
|
-
|
|
6834
|
-
"
|
|
7630
|
+
{
|
|
7631
|
+
"name": "ProgramRefused",
|
|
7632
|
+
"description": "The caller is an agent token or a program's token: neither opens the account page (HTTP 403)."
|
|
6835
7633
|
},
|
|
6836
|
-
|
|
6837
|
-
"
|
|
6838
|
-
"description": "
|
|
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."
|
|
6839
7637
|
},
|
|
6840
|
-
|
|
6841
|
-
"
|
|
6842
|
-
"
|
|
7638
|
+
{
|
|
7639
|
+
"name": "RateLimitExceeded",
|
|
7640
|
+
"description": "Too many links for this account (HTTP 429)."
|
|
6843
7641
|
},
|
|
6844
|
-
|
|
6845
|
-
"
|
|
6846
|
-
"description": "
|
|
7642
|
+
{
|
|
7643
|
+
"name": "Unavailable",
|
|
7644
|
+
"description": "The PDS did not answer (HTTP 502). Open the account page without a link."
|
|
6847
7645
|
}
|
|
6848
|
-
|
|
7646
|
+
]
|
|
6849
7647
|
}
|
|
6850
7648
|
}
|
|
6851
7649
|
})
|
|
@@ -7166,6 +7964,15 @@ export const catalog = {
|
|
|
7166
7964
|
"format": "did",
|
|
7167
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`)."
|
|
7168
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
|
+
},
|
|
7169
7976
|
"releaseId": {
|
|
7170
7977
|
"type": "string",
|
|
7171
7978
|
"minLength": 1,
|
|
@@ -7319,14 +8126,14 @@ export const catalog = {
|
|
|
7319
8126
|
"name": "draft.identity.unlinkMethod",
|
|
7320
8127
|
"group": "pub.techne",
|
|
7321
8128
|
"kind": "procedure",
|
|
7322
|
-
"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. 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.",
|
|
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.",
|
|
7323
8130
|
"doc": ({
|
|
7324
8131
|
"lexicon": 1,
|
|
7325
8132
|
"id": "pub.techne.draft.identity.unlinkMethod",
|
|
7326
8133
|
"defs": {
|
|
7327
8134
|
"main": {
|
|
7328
8135
|
"type": "procedure",
|
|
7329
|
-
"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. 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.",
|
|
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.",
|
|
7330
8137
|
"input": {
|
|
7331
8138
|
"encoding": "application/json",
|
|
7332
8139
|
"schema": {
|
|
@@ -7352,6 +8159,16 @@ export const catalog = {
|
|
|
7352
8159
|
"properties": {
|
|
7353
8160
|
"ok": {
|
|
7354
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"
|
|
7355
8172
|
}
|
|
7356
8173
|
}
|
|
7357
8174
|
}
|
|
@@ -7367,7 +8184,11 @@ export const catalog = {
|
|
|
7367
8184
|
},
|
|
7368
8185
|
{
|
|
7369
8186
|
"name": "LastMethod",
|
|
7370
|
-
"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)."
|
|
7371
8192
|
}
|
|
7372
8193
|
]
|
|
7373
8194
|
}
|
|
@@ -9091,15 +9912,15 @@ export const catalog = {
|
|
|
9091
9912
|
"name": "draft.permissioned.putRecords",
|
|
9092
9913
|
"group": "pub.techne",
|
|
9093
9914
|
"kind": "procedure",
|
|
9094
|
-
"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 (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.",
|
|
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.",
|
|
9095
9916
|
"doc": ({
|
|
9096
9917
|
"lexicon": 1,
|
|
9097
9918
|
"id": "pub.techne.draft.permissioned.putRecords",
|
|
9098
|
-
"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. 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. 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.",
|
|
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.",
|
|
9099
9920
|
"defs": {
|
|
9100
9921
|
"main": {
|
|
9101
9922
|
"type": "procedure",
|
|
9102
|
-
"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 (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.",
|
|
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.",
|
|
9103
9924
|
"input": {
|
|
9104
9925
|
"encoding": "application/json",
|
|
9105
9926
|
"schema": {
|
|
@@ -9161,7 +9982,7 @@ export const catalog = {
|
|
|
9161
9982
|
},
|
|
9162
9983
|
{
|
|
9163
9984
|
"name": "LastManager",
|
|
9164
|
-
"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."
|
|
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."
|
|
9165
9986
|
},
|
|
9166
9987
|
{
|
|
9167
9988
|
"name": "AccountDeleting",
|
|
@@ -9261,13 +10082,15 @@ export const catalog = {
|
|
|
9261
10082
|
"properties": {
|
|
9262
10083
|
"error": {
|
|
9263
10084
|
"type": "string",
|
|
9264
|
-
"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) 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).",
|
|
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).",
|
|
9265
10086
|
"knownValues": [
|
|
9266
10087
|
"InvalidRequest",
|
|
9267
10088
|
"InvalidSwap",
|
|
9268
10089
|
"Conflict",
|
|
9269
10090
|
"IdentityConflict",
|
|
9270
|
-
"DuplicatePhone"
|
|
10091
|
+
"DuplicatePhone",
|
|
10092
|
+
"RateLimitExceeded",
|
|
10093
|
+
"Forbidden"
|
|
9271
10094
|
]
|
|
9272
10095
|
},
|
|
9273
10096
|
"message": {
|
|
@@ -10850,7 +11673,7 @@ export const catalog = {
|
|
|
10850
11673
|
"end": {
|
|
10851
11674
|
"type": "ref",
|
|
10852
11675
|
"ref": "#condition",
|
|
10853
|
-
"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."
|
|
10854
11677
|
},
|
|
10855
11678
|
"location": {
|
|
10856
11679
|
"type": "ref",
|
|
@@ -12387,14 +13210,14 @@ export const catalog = {
|
|
|
12387
13210
|
"name": "draft.registry.blockIndex",
|
|
12388
13211
|
"group": "pub.techne",
|
|
12389
13212
|
"kind": "procedure",
|
|
12390
|
-
"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.",
|
|
12391
13214
|
"doc": ({
|
|
12392
13215
|
"lexicon": 1,
|
|
12393
13216
|
"id": "pub.techne.draft.registry.blockIndex",
|
|
12394
13217
|
"defs": {
|
|
12395
13218
|
"main": {
|
|
12396
13219
|
"type": "procedure",
|
|
12397
|
-
"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.",
|
|
12398
13221
|
"input": {
|
|
12399
13222
|
"encoding": "application/json",
|
|
12400
13223
|
"schema": {
|
|
@@ -12462,12 +13285,20 @@ export const catalog = {
|
|
|
12462
13285
|
"description": "Blocking is a signed-in act."
|
|
12463
13286
|
},
|
|
12464
13287
|
{
|
|
12465
|
-
"name": "
|
|
12466
|
-
"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)."
|
|
12467
13294
|
},
|
|
12468
13295
|
{
|
|
12469
13296
|
"name": "UnknownType",
|
|
12470
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)."
|
|
12471
13302
|
}
|
|
12472
13303
|
]
|
|
12473
13304
|
}
|
|
@@ -13192,14 +14023,14 @@ export const catalog = {
|
|
|
13192
14023
|
"name": "draft.registry.purgeType",
|
|
13193
14024
|
"group": "pub.techne",
|
|
13194
14025
|
"kind": "procedure",
|
|
13195
|
-
"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.",
|
|
13196
14027
|
"doc": ({
|
|
13197
14028
|
"lexicon": 1,
|
|
13198
14029
|
"id": "pub.techne.draft.registry.purgeType",
|
|
13199
14030
|
"defs": {
|
|
13200
14031
|
"main": {
|
|
13201
14032
|
"type": "procedure",
|
|
13202
|
-
"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.",
|
|
13203
14034
|
"input": {
|
|
13204
14035
|
"encoding": "application/json",
|
|
13205
14036
|
"schema": {
|
|
@@ -13256,12 +14087,20 @@ export const catalog = {
|
|
|
13256
14087
|
"description": "Purging is a signed-in act."
|
|
13257
14088
|
},
|
|
13258
14089
|
{
|
|
13259
|
-
"name": "
|
|
13260
|
-
"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)."
|
|
13261
14096
|
},
|
|
13262
14097
|
{
|
|
13263
14098
|
"name": "UnknownType",
|
|
13264
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)."
|
|
13265
14104
|
}
|
|
13266
14105
|
]
|
|
13267
14106
|
}
|
|
@@ -18671,7 +19510,13 @@ export const catalog = {
|
|
|
18671
19510
|
}
|
|
18672
19511
|
}
|
|
18673
19512
|
}
|
|
18674
|
-
}
|
|
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
|
+
]
|
|
18675
19520
|
},
|
|
18676
19521
|
"device": {
|
|
18677
19522
|
"type": "object",
|
|
@@ -19849,7 +20694,7 @@ export const catalog = {
|
|
|
19849
20694
|
"group": "social.scenius",
|
|
19850
20695
|
"kind": "procedure",
|
|
19851
20696
|
"class": "write",
|
|
19852
|
-
"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.",
|
|
19853
20698
|
"input": [
|
|
19854
20699
|
{
|
|
19855
20700
|
"name": "code",
|
|
@@ -19867,6 +20712,17 @@ export const catalog = {
|
|
|
19867
20712
|
"deleted",
|
|
19868
20713
|
"pending"
|
|
19869
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
|
|
19870
20726
|
}
|
|
19871
20727
|
],
|
|
19872
20728
|
"doc": ({
|
|
@@ -19875,7 +20731,7 @@ export const catalog = {
|
|
|
19875
20731
|
"defs": {
|
|
19876
20732
|
"main": {
|
|
19877
20733
|
"type": "procedure",
|
|
19878
|
-
"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.",
|
|
19879
20735
|
"input": {
|
|
19880
20736
|
"encoding": "application/json",
|
|
19881
20737
|
"schema": {
|
|
@@ -19905,6 +20761,15 @@ export const catalog = {
|
|
|
19905
20761
|
"deleted",
|
|
19906
20762
|
"pending"
|
|
19907
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"
|
|
19908
20773
|
}
|
|
19909
20774
|
}
|
|
19910
20775
|
}
|
|
@@ -19918,6 +20783,10 @@ export const catalog = {
|
|
|
19918
20783
|
},
|
|
19919
20784
|
{
|
|
19920
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."
|
|
19921
20790
|
}
|
|
19922
20791
|
]
|
|
19923
20792
|
}
|
|
@@ -21028,6 +21897,10 @@ export const catalog = {
|
|
|
21028
21897
|
{
|
|
21029
21898
|
"name": "NewCodeSent",
|
|
21030
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."
|
|
21031
21904
|
}
|
|
21032
21905
|
]
|
|
21033
21906
|
},
|
|
@@ -31994,7 +32867,7 @@ export const catalog = {
|
|
|
31994
32867
|
}
|
|
31995
32868
|
],
|
|
31996
32869
|
"counts": {
|
|
31997
|
-
"records":
|
|
32870
|
+
"records": 152,
|
|
31998
32871
|
"spaces": 13,
|
|
31999
32872
|
"predicates": 9,
|
|
32000
32873
|
"methods": 127
|