techne-sdk 0.4.0 → 0.6.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 +74 -0
- package/README.md +12 -3
- package/dist/auth/app-key.d.ts +5 -0
- package/dist/auth/app-key.js +7 -0
- package/dist/auth/index.d.ts +19 -11
- package/dist/auth/index.js +21 -13
- package/dist/catalog/catalog.gen.js +499 -139
- package/dist/connect.d.ts +18 -3
- package/dist/connect.js +2 -0
- package/dist/generated/index.d.ts +3 -0
- package/dist/generated/index.js +9 -0
- package/dist/generated/lexicons.d.ts +590 -146
- package/dist/generated/lexicons.js +332 -71
- package/dist/generated/nsid.d.ts +3 -0
- package/dist/generated/nsid.js +3 -0
- package/dist/generated/nsid.json +3 -0
- package/dist/generated/types/pub/techne/draft/identity/attest.d.ts +2 -0
- package/dist/generated/types/pub/techne/draft/identity/defs.d.ts +23 -7
- package/dist/generated/types/pub/techne/draft/identity/defs.js +7 -0
- package/dist/generated/types/pub/techne/draft/identity/finishAddMethod.d.ts +3 -0
- package/dist/generated/types/pub/techne/draft/identity/listMethods.d.ts +2 -1
- package/dist/generated/types/pub/techne/draft/identity/manageMethods.d.ts +52 -10
- package/dist/generated/types/pub/techne/draft/identity/manageMethods.js +56 -0
- package/dist/generated/types/pub/techne/draft/identity/writeAsCollective.d.ts +51 -0
- package/dist/generated/types/pub/techne/draft/identity/writeAsCollective.js +55 -0
- package/dist/generated/types/pub/techne/draft/permissioned/putRecord.d.ts +1 -1
- package/dist/generated/types/pub/techne/draft/permissioned/putRecords.d.ts +1 -1
- package/dist/generated/types/pub/techne/draft/query/getRecords.d.ts +11 -0
- package/dist/generated/types/pub/techne/draft/query/getRecords.js +7 -0
- package/dist/query/compose.d.ts +1 -1
- package/dist/query/compose.js +1 -1
- package/dist/query/index.d.ts +7 -0
- package/dist/query/index.js +28 -1
- package/dist/versions/react.js +19 -6
- package/dist/wasm/techne-wasm.gen.js +1 -1
- package/dist/wasm/techne-wasm2js.gen.js +16836 -16838
- package/package.json +3 -2
|
@@ -1154,7 +1154,7 @@ export const schemaDict = {
|
|
|
1154
1154
|
PubTechneDraftAppAccess: {
|
|
1155
1155
|
lexicon: 1,
|
|
1156
1156
|
id: 'pub.techne.draft.appAccess',
|
|
1157
|
-
description: "A space's authority lets one app (an OAuth client) read one space: our published form of atproto 0016's simplespace `appAccess`. 0016 ANDs two axes for a read: the reader passes the space's read policy, and the app has appAccess for the space. Authored by the space's AUTHORITY, in its own repo, placed IN the space it names (as a `share` is), so the space's readers see which apps may read it. Approved by whoever passes the space type's published `manage` leg (the owner of a personal space; Facilitator and up for a collective's), written with the authority's pen. Approval is per space. `criteria` is a stated rule for future spaces, stored and shown in social.scenius.listAppAccess; nothing evaluates it yet: future-space coverage is evaluated when `space:` grant enforcement exists. Deleting it withdraws the approval for future reads. Nothing stores a denial. Enforcement arrives with `space:` OAuth grants: before Spaces a proxied read carries no client identity.",
|
|
1157
|
+
description: "A space's authority lets one app (an OAuth client) read one space: our published form of atproto 0016's simplespace `appAccess`. 0016 ANDs two axes for a read: the reader passes the space's read policy, and the app has appAccess for the space. Authored by the space's AUTHORITY, in its own repo, placed IN the space it names (as a `share` is), so the space's readers see which apps may read it. Approved by whoever passes the space type's published `manage` leg (the owner of a personal space itself, never another account linked to it; Facilitator and up for a collective's, a role held by any of the caller's linked accounts included), written with the authority's pen. Approval is per space. `criteria` is a stated rule for future spaces, stored and shown in social.scenius.listAppAccess; nothing evaluates it yet: future-space coverage is evaluated when `space:` grant enforcement exists. Deleting it withdraws the approval for future reads. Nothing stores a denial. Enforcement arrives with `space:` OAuth grants: before Spaces a proxied read carries no client identity.",
|
|
1158
1158
|
defs: {
|
|
1159
1159
|
main: {
|
|
1160
1160
|
type: 'record',
|
|
@@ -1207,7 +1207,7 @@ export const schemaDict = {
|
|
|
1207
1207
|
PubTechneDraftAppAccessRequest: {
|
|
1208
1208
|
lexicon: 1,
|
|
1209
1209
|
id: 'pub.techne.draft.appAccessRequest',
|
|
1210
|
-
description: "A member asks a space's authority to let one app read the space: the member is using the app and the space has not approved it. Authored by the member (the requester is the author), in their own repo, placed in their own `pub.techne.draft.space.personal/self`: it is the member's own intent, it names a space that may be private, and a member below the space's write policy could not place it in the space itself. When the requester can read the space and is not an approver, every
|
|
1210
|
+
description: "A member asks a space's authority to let one app read the space: the member is using the app and the space has not approved it. Authored by the member (the requester is the author), in their own repo, placed in their own `pub.techne.draft.space.personal/self`: it is the member's own intent, it names a space that may be private, and a member below the space's write policy could not place it in the space itself. When the requester can read the space and is not an approver, every approver social.scenius.getAppAccess lists (the owner of a personal space itself, never an account linked to it; a collective's members who pass the space type's `manage` leg) is notified and can approve (writing a `pub.techne.draft.appAccess`) or let it be; a requester who is an approver is notified of nothing and approves in one tap. Status is derived: approved when an appAccess exists, pending while a request counts without one, none otherwise; nothing stores a denial. A request counts only while its requester can read the space, and a caller who is not an approver sees only requests by their own accounts (their person). Deleting it withdraws the request.",
|
|
1211
1211
|
defs: {
|
|
1212
1212
|
main: {
|
|
1213
1213
|
type: 'record',
|
|
@@ -1326,7 +1326,7 @@ export const schemaDict = {
|
|
|
1326
1326
|
main: {
|
|
1327
1327
|
type: 'record',
|
|
1328
1328
|
key: 'any',
|
|
1329
|
-
description: "Publishers use sidecar_rkey(subject AT-URI + '#' + questionSet name) so a new question bank replaces the assessment in place. `
|
|
1329
|
+
description: "Publishers use sidecar_rkey(subject AT-URI + '#' + questionSet name) so a new question bank replaces the assessment in place. Readers do not depend on the key: the AppView finds assessments by `subject` and its cid and uses the newest.",
|
|
1330
1330
|
record: {
|
|
1331
1331
|
type: 'object',
|
|
1332
1332
|
required: [
|
|
@@ -2252,7 +2252,7 @@ export const schemaDict = {
|
|
|
2252
2252
|
main: {
|
|
2253
2253
|
type: 'record',
|
|
2254
2254
|
key: 'any',
|
|
2255
|
-
description: 'Publishers use sidecar_rkey(subject AT-URI), one per place per writer.
|
|
2255
|
+
description: 'Publishers use sidecar_rkey(subject AT-URI), one per place per writer. Readers do not depend on the key: they read every containedIn about a place.',
|
|
2256
2256
|
record: {
|
|
2257
2257
|
type: 'object',
|
|
2258
2258
|
required: ['subject', 'container', 'createdAt'],
|
|
@@ -2424,7 +2424,7 @@ export const schemaDict = {
|
|
|
2424
2424
|
main: {
|
|
2425
2425
|
type: 'record',
|
|
2426
2426
|
key: 'any',
|
|
2427
|
-
description: 'Publishers use sidecar_rkey(claim AT-URI), one derivation per claim per writer.
|
|
2427
|
+
description: 'Publishers use sidecar_rkey(claim AT-URI), one derivation per claim per writer. Readers do not depend on the key: they find a derivation by the claim it names.',
|
|
2428
2428
|
record: {
|
|
2429
2429
|
type: 'object',
|
|
2430
2430
|
required: ['subject', 'method', 'createdAt'],
|
|
@@ -2577,7 +2577,7 @@ export const schemaDict = {
|
|
|
2577
2577
|
main: {
|
|
2578
2578
|
type: 'record',
|
|
2579
2579
|
key: 'any',
|
|
2580
|
-
description: "The rkey is sidecar_rkey(subject.uri) (regenos-lexicons `sidecar`): lowercase base32 of the sha256 of the subject's AT-URI, so a rewrite updates this record in place and a subject has at most one description per author.
|
|
2580
|
+
description: "The rkey is sidecar_rkey(subject.uri) (regenos-lexicons `sidecar`): lowercase base32 of the sha256 of the subject's AT-URI, so a rewrite updates this record in place and a subject has at most one description per author. Enforced by its readers: the commons rules fetch only the record at sidecar_rkey(subject), so a description at any other key is not read.",
|
|
2581
2581
|
record: {
|
|
2582
2582
|
type: 'object',
|
|
2583
2583
|
required: ['subject', 'text', 'createdAt'],
|
|
@@ -2611,7 +2611,7 @@ export const schemaDict = {
|
|
|
2611
2611
|
main: {
|
|
2612
2612
|
type: 'record',
|
|
2613
2613
|
key: 'any',
|
|
2614
|
-
description: 'One record per pair: publishers put the lower AT-URI in `subject` and use pair_rkey(subject, other) (regenos_lexicons::sidecar), so the reversed pair cannot get a second record.
|
|
2614
|
+
description: 'One record per pair: publishers put the lower AT-URI in `subject` and use pair_rkey(subject, other) (regenos_lexicons::sidecar), so the reversed pair cannot get a second record. Readers do not depend on the key: the commons curator reads a pair from both ends, so a reversed or repeated pair is the same wall. A pair asserted both sameAs and distinctFrom by writers a reader trusts is a conflict that reader resolves.',
|
|
2615
2615
|
record: {
|
|
2616
2616
|
type: 'object',
|
|
2617
2617
|
required: ['subject', 'other', 'createdAt'],
|
|
@@ -2913,7 +2913,7 @@ export const schemaDict = {
|
|
|
2913
2913
|
main: {
|
|
2914
2914
|
type: 'record',
|
|
2915
2915
|
key: 'any',
|
|
2916
|
-
description: 'Publishers use sidecar_rkey(subject AT-URI) (regenos_lexicons::sidecar), so a rewrite for the same subject updates this record.
|
|
2916
|
+
description: 'Publishers use sidecar_rkey(subject AT-URI) (regenos_lexicons::sidecar), so a rewrite for the same subject updates this record. Readers do not depend on the key: they take a trusted geo about the subject at any key.',
|
|
2917
2917
|
record: {
|
|
2918
2918
|
type: 'object',
|
|
2919
2919
|
required: ['subject', 'location', 'createdAt'],
|
|
@@ -2951,7 +2951,7 @@ export const schemaDict = {
|
|
|
2951
2951
|
main: {
|
|
2952
2952
|
type: 'record',
|
|
2953
2953
|
key: 'any',
|
|
2954
|
-
description: 'Publishers use sidecar_rkey(subject AT-URI), one per event per writer.
|
|
2954
|
+
description: 'Publishers use sidecar_rkey(subject AT-URI), one per event per writer. Readers do not depend on the key: the AppView reads every trusted heldAt about an event.',
|
|
2955
2955
|
record: {
|
|
2956
2956
|
type: 'object',
|
|
2957
2957
|
required: ['subject', 'place', 'createdAt'],
|
|
@@ -3091,6 +3091,10 @@ export const schemaDict = {
|
|
|
3091
3091
|
type: 'boolean',
|
|
3092
3092
|
description: 'The PDS created the account in this sign-in.',
|
|
3093
3093
|
},
|
|
3094
|
+
termsShown: {
|
|
3095
|
+
type: 'boolean',
|
|
3096
|
+
description: "Optional; sent only as true, and only with `newAccount`. The PDS's sign-in page named its Terms of Use and Privacy Policy when this account was made there, so the issuer records the person's assent. Absent: nothing to record (a returning sign-in, a page without the line, an older PDS, or a first-party app that shows its own terms).",
|
|
3097
|
+
},
|
|
3094
3098
|
},
|
|
3095
3099
|
},
|
|
3096
3100
|
},
|
|
@@ -3473,7 +3477,7 @@ export const schemaDict = {
|
|
|
3473
3477
|
},
|
|
3474
3478
|
methodView: {
|
|
3475
3479
|
type: 'object',
|
|
3476
|
-
description: "One sign-in method of the
|
|
3480
|
+
description: "One sign-in method of an account. `masked` is always masked. Only identity.manageMethods `list` (the identity PDS's signed hook, for the signed-in owner's own account page) adds `value`; identity.listMethods never does.",
|
|
3477
3481
|
required: ['bid', 'type', 'masked', 'boundAt'],
|
|
3478
3482
|
properties: {
|
|
3479
3483
|
bid: {
|
|
@@ -3496,6 +3500,11 @@ export const schemaDict = {
|
|
|
3496
3500
|
maxLength: 320,
|
|
3497
3501
|
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)`.",
|
|
3498
3502
|
},
|
|
3503
|
+
value: {
|
|
3504
|
+
type: 'string',
|
|
3505
|
+
maxLength: 320,
|
|
3506
|
+
description: "An email's full address or a phone's full number (E.164). Sent only by identity.manageMethods `list`, to the identity PDS, for the owner's own account page; never in identity.listMethods, signInMethods or a notice. Absent on a passkey, Nostr key or recovery codes.",
|
|
3507
|
+
},
|
|
3499
3508
|
boundAt: {
|
|
3500
3509
|
type: 'string',
|
|
3501
3510
|
format: 'datetime',
|
|
@@ -3517,7 +3526,7 @@ export const schemaDict = {
|
|
|
3517
3526
|
},
|
|
3518
3527
|
pendingChange: {
|
|
3519
3528
|
type: 'object',
|
|
3520
|
-
description: "A change that waits for its time (a method's removal
|
|
3529
|
+
description: "A change that waits for its time (a method's removal, the account's deletion, or a method's move onto another account (identity.manageMethods moveMethod), 7 days, or none for a move a recovery method proved; the account's first recovery mark, 24 hours). A move is completed by the platform once due, tried again after a failed write, and may be dropped instead (identity.manageMethods moveMethod says when). 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 (even if a recovery method lifted the freeze early) is dropped when it runs out, not completed.",
|
|
3521
3530
|
required: ['id', 'kind', 'createdAt', 'dueAt'],
|
|
3522
3531
|
properties: {
|
|
3523
3532
|
id: {
|
|
@@ -3526,12 +3535,22 @@ export const schemaDict = {
|
|
|
3526
3535
|
},
|
|
3527
3536
|
kind: {
|
|
3528
3537
|
type: 'string',
|
|
3529
|
-
knownValues: [
|
|
3538
|
+
knownValues: [
|
|
3539
|
+
'removeMethod',
|
|
3540
|
+
'deleteAccount',
|
|
3541
|
+
'markRecovery',
|
|
3542
|
+
'moveMethod',
|
|
3543
|
+
],
|
|
3530
3544
|
},
|
|
3531
3545
|
method: {
|
|
3532
3546
|
type: 'string',
|
|
3533
3547
|
maxLength: 64,
|
|
3534
|
-
description:
|
|
3548
|
+
description: "The method it removes, marks or moves (for an incoming move, the other account's method).",
|
|
3549
|
+
},
|
|
3550
|
+
other: {
|
|
3551
|
+
type: 'string',
|
|
3552
|
+
format: 'did',
|
|
3553
|
+
description: 'moveMethod: the other account. On the account the method leaves, where it goes; on the account it joins (identity.manageMethods `list` shows the move there too, and either account can cancel it), where it comes from.',
|
|
3535
3554
|
},
|
|
3536
3555
|
createdAt: {
|
|
3537
3556
|
type: 'string',
|
|
@@ -3545,8 +3564,8 @@ export const schemaDict = {
|
|
|
3545
3564
|
},
|
|
3546
3565
|
linkView: {
|
|
3547
3566
|
type: 'object',
|
|
3548
|
-
description: "
|
|
3549
|
-
required: ['did', '
|
|
3567
|
+
description: "Another account of the caller's person: the two are linked (identity.manageMethods moveMethod), every DID of the person naming every other in `alsoKnownAs`. Linked accounts have no primary, and a link is always mutual: identity.listMethods sends `mutual` as true.",
|
|
3568
|
+
required: ['did', 'mutual'],
|
|
3550
3569
|
properties: {
|
|
3551
3570
|
did: {
|
|
3552
3571
|
type: 'string',
|
|
@@ -3557,13 +3576,35 @@ export const schemaDict = {
|
|
|
3557
3576
|
type: 'string',
|
|
3558
3577
|
format: 'handle',
|
|
3559
3578
|
},
|
|
3560
|
-
|
|
3579
|
+
mutual: {
|
|
3580
|
+
type: 'boolean',
|
|
3581
|
+
description: 'Retired: a link is always mutual, and identity.listMethods sends `true` (it was: both accounts hold a matching pub.techne.draft.accountLink).',
|
|
3582
|
+
},
|
|
3583
|
+
since: {
|
|
3584
|
+
type: 'string',
|
|
3585
|
+
format: 'datetime',
|
|
3586
|
+
description: 'When the two accounts became one person.',
|
|
3587
|
+
},
|
|
3588
|
+
},
|
|
3589
|
+
},
|
|
3590
|
+
personMember: {
|
|
3591
|
+
type: 'object',
|
|
3592
|
+
description: "Another account of an account's person (identity.manageMethods `list` and moveMethod).",
|
|
3593
|
+
required: ['did'],
|
|
3594
|
+
properties: {
|
|
3595
|
+
did: {
|
|
3561
3596
|
type: 'string',
|
|
3562
3597
|
format: 'did',
|
|
3563
3598
|
},
|
|
3564
|
-
|
|
3565
|
-
type: '
|
|
3566
|
-
|
|
3599
|
+
since: {
|
|
3600
|
+
type: 'string',
|
|
3601
|
+
format: 'datetime',
|
|
3602
|
+
description: 'When it joined the person. Sent by `list`.',
|
|
3603
|
+
},
|
|
3604
|
+
handle: {
|
|
3605
|
+
type: 'string',
|
|
3606
|
+
format: 'handle',
|
|
3607
|
+
description: "Its handle, when the platform knows one. Sent in addChannel's `otherPerson`.",
|
|
3567
3608
|
},
|
|
3568
3609
|
},
|
|
3569
3610
|
},
|
|
@@ -3654,7 +3695,7 @@ export const schemaDict = {
|
|
|
3654
3695
|
defs: {
|
|
3655
3696
|
main: {
|
|
3656
3697
|
type: 'procedure',
|
|
3657
|
-
description: "Finish adding a sign-in method with the code identity.beginAddMethod sent. `added`: the method is now bound to the caller's account. `alreadyYours`: it already was (re-issued). `boundElsewhere`: it signs in to another account
|
|
3698
|
+
description: "Finish adding a sign-in method with the code identity.beginAddMethod sent. `added`: the method is now bound to the caller's account. `alreadyYours`: it already was (re-issued). `boundElsewhere`: it signs in to another account. When one of the two accounts is empty and new, `offer` (`fold`) says it can be folded into the other with identity.fold; when both hold something, `other` names that account and no offer is made: the two are linked by moving the method (identity.manageMethods moveMethod, on the identity PDS's account page). The `link` offer is retired. The offer's token is single-use, bound to both accounts, the channel and this session, and lasts 10 minutes. `unavailable`: the method cannot be added right now.",
|
|
3658
3699
|
input: {
|
|
3659
3700
|
encoding: 'application/json',
|
|
3660
3701
|
schema: {
|
|
@@ -3690,11 +3731,17 @@ export const schemaDict = {
|
|
|
3690
3731
|
method: {
|
|
3691
3732
|
type: 'ref',
|
|
3692
3733
|
ref: 'lex:pub.techne.draft.identity.defs#methodView',
|
|
3734
|
+
description: "`added` / `alreadyYours`: the method. Absent on `boundElsewhere`: the other account's method is named only to the identity PDS (identity.manageMethods addChannel).",
|
|
3693
3735
|
},
|
|
3694
3736
|
offer: {
|
|
3695
3737
|
type: 'ref',
|
|
3696
3738
|
ref: 'lex:pub.techne.draft.identity.finishAddMethod#offer',
|
|
3697
3739
|
},
|
|
3740
|
+
other: {
|
|
3741
|
+
type: 'string',
|
|
3742
|
+
format: 'did',
|
|
3743
|
+
description: '`boundElsewhere` when both accounts hold something: the account the method signs in to (no `offer`).',
|
|
3744
|
+
},
|
|
3698
3745
|
},
|
|
3699
3746
|
},
|
|
3700
3747
|
},
|
|
@@ -3717,7 +3764,7 @@ export const schemaDict = {
|
|
|
3717
3764
|
},
|
|
3718
3765
|
{
|
|
3719
3766
|
name: 'ProtectedAccount',
|
|
3720
|
-
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.',
|
|
3767
|
+
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, and the other account is not named (no `boundElsewhere`).',
|
|
3721
3768
|
},
|
|
3722
3769
|
{
|
|
3723
3770
|
name: 'UpstreamFailure',
|
|
@@ -3732,6 +3779,7 @@ export const schemaDict = {
|
|
|
3732
3779
|
action: {
|
|
3733
3780
|
type: 'string',
|
|
3734
3781
|
knownValues: ['fold', 'link'],
|
|
3782
|
+
description: '`fold`. (`link` is retired and no longer offered.)',
|
|
3735
3783
|
},
|
|
3736
3784
|
token: {
|
|
3737
3785
|
type: 'string',
|
|
@@ -3916,7 +3964,7 @@ export const schemaDict = {
|
|
|
3916
3964
|
defs: {
|
|
3917
3965
|
main: {
|
|
3918
3966
|
type: 'procedure',
|
|
3919
|
-
description: "
|
|
3967
|
+
description: "Retired (Linking v2): the platform no longer serves it, and no client should call it. Two accounts are linked with identity.manageMethods `moveMethod` now, which makes them one person (no accountLink records, no primary). Kept so the name and its shapes stay published. It was: link the caller's account with the other account named by the token identity.finishAddMethod offered: both accounts get a pub.techne.draft.accountLink in their space.personal naming the other and the primary, and each account's `alsoKnownAs` gains `at://{other}` after the handle: signed here where this host holds the account's PLC rotation key, else by the identity PDS that made and hosts it. Nothing moves. v1 links only accounts this host or its identity PDS holds.",
|
|
3920
3968
|
input: {
|
|
3921
3969
|
encoding: 'application/json',
|
|
3922
3970
|
schema: {
|
|
@@ -3963,7 +4011,7 @@ export const schemaDict = {
|
|
|
3963
4011
|
},
|
|
3964
4012
|
{
|
|
3965
4013
|
name: 'InvalidRequest',
|
|
3966
|
-
description:
|
|
4014
|
+
description: '`primary` names neither account, or the other account is held neither here nor by the identity PDS (sign in to it and link from there).',
|
|
3967
4015
|
},
|
|
3968
4016
|
],
|
|
3969
4017
|
},
|
|
@@ -4235,7 +4283,7 @@ export const schemaDict = {
|
|
|
4235
4283
|
defs: {
|
|
4236
4284
|
main: {
|
|
4237
4285
|
type: 'query',
|
|
4238
|
-
description: "The caller's sign-in methods (masked, with their recovery mark and freeze), its pending changes, and the
|
|
4286
|
+
description: "The caller's sign-in methods (masked, with their recovery mark and freeze), its pending changes, and the other accounts of its person (`links`, each `did`, `since` and `mutual`, always true; linked accounts have no primary). Emails and phones only unless `allTypes` (shipped clients label every row as an email). Signed-in members only.",
|
|
4239
4287
|
parameters: {
|
|
4240
4288
|
type: 'params',
|
|
4241
4289
|
properties: {
|
|
@@ -4260,6 +4308,7 @@ export const schemaDict = {
|
|
|
4260
4308
|
},
|
|
4261
4309
|
links: {
|
|
4262
4310
|
type: 'array',
|
|
4311
|
+
description: "The other accounts of the caller's person (linked with identity.manageMethods moveMethod), each with `did`, `since` and `mutual` (always true); linked accounts have no primary. Empty when it is alone.",
|
|
4263
4312
|
items: {
|
|
4264
4313
|
type: 'ref',
|
|
4265
4314
|
ref: 'lex:pub.techne.draft.identity.defs#linkView',
|
|
@@ -4267,7 +4316,7 @@ export const schemaDict = {
|
|
|
4267
4316
|
},
|
|
4268
4317
|
pending: {
|
|
4269
4318
|
type: 'array',
|
|
4270
|
-
description: "The account's pending changes, soonest first (the account page shows them at the top, with Cancel).",
|
|
4319
|
+
description: "The account's pending changes, soonest first (the account page shows them at the top, with Cancel), a move of one of its methods onto another account included.",
|
|
4271
4320
|
items: {
|
|
4272
4321
|
type: 'ref',
|
|
4273
4322
|
ref: 'lex:pub.techne.draft.identity.defs#pendingChange',
|
|
@@ -4390,7 +4439,7 @@ export const schemaDict = {
|
|
|
4390
4439
|
defs: {
|
|
4391
4440
|
main: {
|
|
4392
4441
|
type: 'procedure',
|
|
4393
|
-
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.",
|
|
4442
|
+
description: "The identity PDS's signed hook for the sign-in method rules (the account page and sign-in page call it; the rules live on the platform so every client obeys the same ones). Authenticated only by the epds-signature MAC with the identity hook secret; no session, OAuth or service-JWT caller reaches it, and every answer is signed. The PDS vouches for the signed-in account (`did`, which must be hosted on the calling PDS, else 404 UnknownAccount) and for the step-up it just checked (`stepUp`: which method, when; it counts for 10 minutes). Rules: a recovery method acting with a fresh step-up acts at once; anything else removes a method or deletes the account after a 7-day wait with an email notice, if it has any email method, cancellable by any of the account's methods, a frozen one too (`cancel`); a wait re-checks these rules when it runs out (a method marked for recovery meanwhile is not removed; a first mark is dropped once another method is marked; a wait during which any of the account's methods was frozen, even if a recovery method lifted the freeze early or removed the method, is dropped, not completed, since a frozen method can't sign in to cancel it, and every email method gets a `waitDropped` notice naming the change); a freeze is immediate, from a different method with a fresh step-up, and lasts 7 days or until a recovery method lifts it (`unfreeze`); a recovery method is never frozen, removed or unmarked by an unmarked one; the last way to sign in is never removed; marking a recovery method needs a fresh step-up of one, except the account's first, which needs a fresh step-up of any of its methods (else StepUpRequired) and waits 24 hours with an email notice, if the account has any email method. Notices are email only: the platform sends every one itself, wherever the account is hosted, to each of the account's email methods (never by phone or Nostr); the PDS sends none. Ops: `list` (the account's methods, each email and phone also with its full `value` for the owner's own account page, pending changes (an open `moveMethod` onto the account included), `hasRecovery`, and `person`, the other accounts of its person), `signInMethods` (for a sign-in page that knows only the account, \"Sign in as @handle\": the methods that can sign in now, each a `display` only, never its full value; no step-up, recovery marks or pending changes), `sendTo` (the full email or phone of one of them, for the PDS to send a sign-in code to; never shown), `remove`, `cancel`, `freeze` (with `signOut`), `unfreeze`, `mark`, `unmark`, `signOut` (sign out everywhere the platform holds a session; the PDS revokes its own), `delete`, `addExternal` (a passkey or Nostr key the PDS proved; always a fresh step-up of one of the account's methods, StepUpRequired without one, and never a program's, ProgramRefused), `newRecoveryCodes` (returned once; a new set ends the old; always a fresh step-up, and on an account with no recovery method the set is its first mark, which waits 24 hours; a first set is refused, MethodFrozen, while one of the account's methods is frozen), `redeemCode`, `setPrograms` (\"Programs can sign in with this key\" on or off, `on`, for a Nostr key, the only type that supports it: on and off both need a fresh step-up of one of the account's methods that is not a program, not frozen (a step-up by a key with programs on is ProgramRefused, so that key never switches itself off); on is also refused from the key itself, SameMethod, for a recovery method or one whose first mark is waiting, IsRecovery, and while a method of the account is frozen, MethodFrozen), `addChannel` (a `channel` the PDS just proved for `did`, as identity.finishAddMethod does for a session: `added`, `alreadyYours`, or `boundElsewhere`: when both accounts hold something, with the `other` account and its `method` (the account page offers `moveMethod`), else with a fold `offer` (identity.finishAddMethod#offer), single use, 10 minutes, bound to `did` on this hook and to no session; MethodFrozen when the channel is frozen on any account, MethodFrozen when `did` itself has a frozen method and the channel would be new to it (no method is added past a freeze; `addExternal` likewise), and, on the fold path only (one of the two accounts holds nothing, so an `offer` would be made), ProtectedAccount when either account has a recovery mark, a freeze, a pending change, or a passkey, Nostr key or recovery codes; when both hold something the answer names `other` and `method` and moveMethod's own refusals apply), `fold` (take that offer: `token`; needs a fresh step-up of `did`; ProtectedAccount (a live freeze included) and NotEmpty, checked again; `folded` with the kept `did` and the `emptied` one, which is deleted (on the identity PDS too, by `dueDeletes`)), `moveMethod` (link two accounts: move an email or phone method of account `from` onto `did` and make the two accounts one person, every DID of each linked to every other in `alsoKnownAs`; needs a fresh step-up of `did` and one of `from` (`fromStepUp`, else FromStepUpRequired); refused, nothing scheduled, when a method of either person is frozen (Frozen), either has a pending change (PendingChange), the person would hold more than 4 accounts (TooMany), the two are already one person or the same account (Same), or no key can write `alsoKnownAs` for one of their DIDs (NoKey); a method marked for recovery on `from` moves only with a `fromStepUp` of a recovery method of `from` (RecoveryProtected); it is never done inside the call: the answer is `pending` (the change, a pending change of `from`, as a defs#pendingChange as `did`'s `list` shows it) with `due`, its `dueAt`: now for a move such a step-up proved, else 7 days on, a wait `from` is told about by email (a recovery-proven move is told only when it completes), which any method of either account can `cancel`, and which a freeze of either person's methods drops (`waitDropped` to `from`); the platform completes it once due: a move whose key check or `alsoKnownAs` writes fail is tried again after a backoff (2^tries minutes, at most an hour), one refused for good (no key we can ask holds it, or the identity PDS refuses the account) is dropped with a `moveDropped` email to both accounts, one still failing 24 hours past `due` is dropped with `moveTimedOut`, one whose accounts changed meanwhile (the method gone, or marked for recovery since unless a recovery method proved the move; a refusal above other than a freeze; or a recovery-proven requester no longer a recovery method) is dropped with `moveCancelled` to both, and a completed one sends every account of the person a `linked` email), `unlink` (account `other` leaves `did`'s person at once; the removal of the `alsoKnownAs` entries between it and the rest is queued, tried again after a failure, and given up after about a day, or at once when refused for good, with an `akaLeft` email to both accounts of the entry; needs a fresh step-up of `did`; when `other` would be left with no way to sign in, `method`, one of `did`'s email or phone methods, is required (else NeedsMethod) and moves to `other`, which needs a step-up of a recovery method of `did` or of that method itself (NeedsRecoveryMethod), a recovery method's step-up for a method marked for recovery (RecoveryProtected), a method that is not frozen (MethodFrozen) and not `did`'s last way to sign in (LastMethod); NotLinked when `other` is not in `did`'s person; an email handed to `other` is released from `did`'s identity-PDS account, tried again after a failure and given up after about a day with an `emailLeft` email to `did`; both accounts get an `unlinked` email), `link` (retired, answers 400 InvalidRequest: a link is `moveMethod` now), `importBackupEmails` (once per account, recorded: a second call answers `alreadyImported` even after every mark is taken off; the move of the PDS's verified backup emails, `backupEmails`, each with when the PDS verified it: one verified before 2026-11-13T00:00:00Z becomes an email method marked for recovery at once, without step-up or wait, and one verified at or after it is skipped, `afterCutoff`, since only the holder could have added one before these rules; only an account with no recovery method takes one, all of its addresses in one call (each address once, else 400 InvalidRequest), else `hasRecovery`, nothing changes and the import is spent; a call that marks none of them spends it too; MethodFrozen while one of the account's methods is frozen, not spent; `indexOff` while the identity index is off), `notices` and `noticesSent` (no `did`; unused, kept for older clients: `notices` always answers an empty list and `noticesSent` `count: 0`, since the platform sends every notice itself), for a login service that just checked a signature by a Nostr key and knows no account yet (no `did`) `findKey` (`external`, type `nostr` and the 64-character lowercase hex key: `none` when no account the calling PDS hosts has it, else `done` with the account's `did`, the key's `method`, whether that method is `frozen` now, and whether `programs` may sign in with it), and for scheduled account deletions that came due (no `did`; only the accounts the calling PDS hosts) `dueDeletes` (up to 100 accounts the platform has deleted on its side, which the PDS deletes too; one taken and not confirmed is offered again after 5 minutes, without limit) and `dueDeletesDone` (`dids` the PDS deleted), and for a consent screen after sign-in `operator` (`operator`: whether `did` is one of the platform's operators, so the PDS offers the moderate scope, `include:pub.techne.draft.authModerate`, to operators only and drops it from everyone else's grant). Programs: a key with programs on can't be marked (ProgramsOn), and a program never touches account security: when the PDS says a program made the request (`program`), or the step-up names a key with programs on, every op but `list`, `signInMethods` and `sendTo` is 403 ProgramRefused (`operator` included: a program never moderates), `setPrograms` included: such a key's programs are turned off by a step-up of another of the account's methods.",
|
|
4394
4443
|
input: {
|
|
4395
4444
|
encoding: 'application/json',
|
|
4396
4445
|
schema: {
|
|
@@ -4428,8 +4477,11 @@ export const schemaDict = {
|
|
|
4428
4477
|
'addChannel',
|
|
4429
4478
|
'fold',
|
|
4430
4479
|
'link',
|
|
4480
|
+
'moveMethod',
|
|
4481
|
+
'unlink',
|
|
4431
4482
|
'operator',
|
|
4432
4483
|
],
|
|
4484
|
+
description: 'The op. `link` is retired: it answers 400 InvalidRequest; `moveMethod` links two accounts now.',
|
|
4433
4485
|
},
|
|
4434
4486
|
did: {
|
|
4435
4487
|
type: 'string',
|
|
@@ -4443,7 +4495,7 @@ export const schemaDict = {
|
|
|
4443
4495
|
method: {
|
|
4444
4496
|
type: 'string',
|
|
4445
4497
|
maxLength: 64,
|
|
4446
|
-
description: 'The method acted on (its `id` in `list` or `signInMethods`).',
|
|
4498
|
+
description: 'The method acted on (its `id` in `list` or `signInMethods`). moveMethod: the method of `from` that moves onto `did`. unlink: the method of `did` handed to `other` when `other` would have none left.',
|
|
4447
4499
|
},
|
|
4448
4500
|
pending: {
|
|
4449
4501
|
type: 'string',
|
|
@@ -4469,7 +4521,7 @@ export const schemaDict = {
|
|
|
4469
4521
|
items: {
|
|
4470
4522
|
type: 'integer',
|
|
4471
4523
|
},
|
|
4472
|
-
description: '
|
|
4524
|
+
description: 'Unused, kept for older clients: notice ids for `noticesSent`, which confirms none.',
|
|
4473
4525
|
},
|
|
4474
4526
|
emails: {
|
|
4475
4527
|
type: 'array',
|
|
@@ -4506,12 +4558,27 @@ export const schemaDict = {
|
|
|
4506
4558
|
token: {
|
|
4507
4559
|
type: 'string',
|
|
4508
4560
|
maxLength: 128,
|
|
4509
|
-
description: "fold
|
|
4561
|
+
description: "fold: the offer's token from addChannel. (link, retired, took one too.)",
|
|
4562
|
+
},
|
|
4563
|
+
from: {
|
|
4564
|
+
type: 'string',
|
|
4565
|
+
format: 'did',
|
|
4566
|
+
description: 'moveMethod: the account the method leaves.',
|
|
4567
|
+
},
|
|
4568
|
+
fromStepUp: {
|
|
4569
|
+
type: 'ref',
|
|
4570
|
+
ref: 'lex:pub.techne.draft.identity.manageMethods#stepUp',
|
|
4571
|
+
description: "moveMethod: what the PDS's step-up of `from` proved (fresh, one of `from`'s methods).",
|
|
4572
|
+
},
|
|
4573
|
+
other: {
|
|
4574
|
+
type: 'string',
|
|
4575
|
+
format: 'did',
|
|
4576
|
+
description: "unlink: the account that leaves `did`'s person.",
|
|
4510
4577
|
},
|
|
4511
4578
|
primary: {
|
|
4512
4579
|
type: 'string',
|
|
4513
4580
|
format: 'did',
|
|
4514
|
-
description:
|
|
4581
|
+
description: "Retired, not read: it was the retired `link` op's primary account. Linked accounts have no primary.",
|
|
4515
4582
|
},
|
|
4516
4583
|
on: {
|
|
4517
4584
|
type: 'boolean',
|
|
@@ -4554,15 +4621,21 @@ export const schemaDict = {
|
|
|
4554
4621
|
'linked',
|
|
4555
4622
|
'none',
|
|
4556
4623
|
],
|
|
4557
|
-
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
|
|
4624
|
+
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`: fold done. `linked`: retired (the retired `link` op's answer). moveMethod answers `pending` only, with `pending` (the change, a defs#pendingChange) and `due`. `none`: findKey's key is no method of an account the calling PDS hosts.",
|
|
4558
4625
|
},
|
|
4559
4626
|
pending: {
|
|
4560
4627
|
type: 'ref',
|
|
4561
4628
|
ref: 'lex:pub.techne.draft.identity.defs#pendingChange',
|
|
4629
|
+
description: "The change that waits. moveMethod's `pending` answer carries the change here, as `did`'s `list` shows it (`other` and `method`: the account the method comes from and that method), with `due`; `list` answers every pending change of the account as an array.",
|
|
4630
|
+
},
|
|
4631
|
+
due: {
|
|
4632
|
+
type: 'string',
|
|
4633
|
+
format: 'datetime',
|
|
4634
|
+
description: 'moveMethod `pending`: when the move is due (now for one a recovery method of `from` proved, else 7 days on). The platform completes it then or after a failed try, unless it is cancelled or dropped.',
|
|
4562
4635
|
},
|
|
4563
4636
|
method: {
|
|
4564
4637
|
type: 'string',
|
|
4565
|
-
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.",
|
|
4638
|
+
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. addChannel `boundElsewhere` when both accounts hold something: the other account's method id, for `moveMethod` (identity.finishAddMethod's session answer leaves it out).",
|
|
4566
4639
|
},
|
|
4567
4640
|
codes: {
|
|
4568
4641
|
type: 'array',
|
|
@@ -4577,6 +4650,7 @@ export const schemaDict = {
|
|
|
4577
4650
|
type: 'ref',
|
|
4578
4651
|
ref: 'lex:pub.techne.draft.identity.defs#methodView',
|
|
4579
4652
|
},
|
|
4653
|
+
description: "list: the account's methods (`value` on emails and phones; see defs#methodView).",
|
|
4580
4654
|
},
|
|
4581
4655
|
hasRecovery: {
|
|
4582
4656
|
type: 'boolean',
|
|
@@ -4587,10 +4661,11 @@ export const schemaDict = {
|
|
|
4587
4661
|
type: 'ref',
|
|
4588
4662
|
ref: 'lex:pub.techne.draft.identity.manageMethods#notice',
|
|
4589
4663
|
},
|
|
4664
|
+
description: 'Unused, kept for older clients: always empty. The platform emails every notice itself.',
|
|
4590
4665
|
},
|
|
4591
4666
|
count: {
|
|
4592
4667
|
type: 'integer',
|
|
4593
|
-
description: '
|
|
4668
|
+
description: 'dueDeletesDone: how many were confirmed. noticesSent (unused, kept for older clients): always 0.',
|
|
4594
4669
|
},
|
|
4595
4670
|
signInMethods: {
|
|
4596
4671
|
type: 'array',
|
|
@@ -4631,15 +4706,36 @@ export const schemaDict = {
|
|
|
4631
4706
|
format: 'did',
|
|
4632
4707
|
description: 'fold: the kept account. findKey: the account the key signs in to.',
|
|
4633
4708
|
},
|
|
4709
|
+
other: {
|
|
4710
|
+
type: 'string',
|
|
4711
|
+
format: 'did',
|
|
4712
|
+
description: "addChannel `boundElsewhere` when both accounts hold something: the account the channel signs in to (for `moveMethod`'s `from`).",
|
|
4713
|
+
},
|
|
4714
|
+
otherPerson: {
|
|
4715
|
+
type: 'array',
|
|
4716
|
+
items: {
|
|
4717
|
+
type: 'ref',
|
|
4718
|
+
ref: 'lex:pub.techne.draft.identity.defs#personMember',
|
|
4719
|
+
},
|
|
4720
|
+
description: 'addChannel `boundElsewhere` (either form): the other accounts of the person of the account the channel signs in to, now (`did`, `handle` when known), that account itself left out; empty when it is alone.',
|
|
4721
|
+
},
|
|
4634
4722
|
emptied: {
|
|
4635
4723
|
type: 'string',
|
|
4636
4724
|
format: 'did',
|
|
4637
4725
|
description: 'fold: the account folded in and deleted.',
|
|
4638
4726
|
},
|
|
4727
|
+
person: {
|
|
4728
|
+
type: 'array',
|
|
4729
|
+
items: {
|
|
4730
|
+
type: 'ref',
|
|
4731
|
+
ref: 'lex:pub.techne.draft.identity.defs#personMember',
|
|
4732
|
+
},
|
|
4733
|
+
description: "list: the other accounts of `did`'s person (empty when it is alone). moveMethod no longer answers `done`, which carried the person's accounts here.",
|
|
4734
|
+
},
|
|
4639
4735
|
link: {
|
|
4640
4736
|
type: 'ref',
|
|
4641
4737
|
ref: 'lex:pub.techne.draft.identity.defs#linkView',
|
|
4642
|
-
description: "
|
|
4738
|
+
description: "Retired: the retired `link` op's answer.",
|
|
4643
4739
|
},
|
|
4644
4740
|
frozen: {
|
|
4645
4741
|
type: 'boolean',
|
|
@@ -4675,7 +4771,7 @@ export const schemaDict = {
|
|
|
4675
4771
|
},
|
|
4676
4772
|
{
|
|
4677
4773
|
name: 'NotFound',
|
|
4678
|
-
description: 'No such method or pending change on the account.',
|
|
4774
|
+
description: 'No such method or pending change on the account (moveMethod: `from` has no such method).',
|
|
4679
4775
|
},
|
|
4680
4776
|
{
|
|
4681
4777
|
name: 'NotYourMethod',
|
|
@@ -4683,19 +4779,19 @@ export const schemaDict = {
|
|
|
4683
4779
|
},
|
|
4684
4780
|
{
|
|
4685
4781
|
name: 'LastMethod',
|
|
4686
|
-
description:
|
|
4782
|
+
description: "It would leave no way to sign in (unlink: the method handed to `other` is `did`'s only one).",
|
|
4687
4783
|
},
|
|
4688
4784
|
{
|
|
4689
4785
|
name: 'RecoveryProtected',
|
|
4690
|
-
description: 'Only a recovery method can do this to a recovery method.',
|
|
4786
|
+
description: 'Only a recovery method can do this to a recovery method (moveMethod: of `from`; unlink: of `did`).',
|
|
4691
4787
|
},
|
|
4692
4788
|
{
|
|
4693
4789
|
name: 'NeedsRecoveryMethod',
|
|
4694
|
-
description: 'Needs a fresh step-up of a recovery method.',
|
|
4790
|
+
description: 'Needs a fresh step-up of a recovery method (unlink: or of the method handed to `other` itself).',
|
|
4695
4791
|
},
|
|
4696
4792
|
{
|
|
4697
4793
|
name: 'StepUpRequired',
|
|
4698
|
-
description: "Needs a fresh step-up (an account's first recovery mark, `newRecoveryCodes`, `fold` and `
|
|
4794
|
+
description: "Needs a fresh step-up (an account's first recovery mark, `newRecoveryCodes`, `fold`, `moveMethod` and `unlink` included).",
|
|
4699
4795
|
},
|
|
4700
4796
|
{
|
|
4701
4797
|
name: 'SameMethod',
|
|
@@ -4703,19 +4799,19 @@ export const schemaDict = {
|
|
|
4703
4799
|
},
|
|
4704
4800
|
{
|
|
4705
4801
|
name: 'MethodFrozen',
|
|
4706
|
-
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).",
|
|
4802
|
+
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; for `unlink`: the method handed to `other` is).",
|
|
4707
4803
|
},
|
|
4708
4804
|
{
|
|
4709
4805
|
name: 'InvalidToken',
|
|
4710
|
-
description: 'fold
|
|
4806
|
+
description: 'fold: the offer is unknown, used, expired, for the other action, or not made to `did` on this hook.',
|
|
4711
4807
|
},
|
|
4712
4808
|
{
|
|
4713
4809
|
name: 'ProtectedAccount',
|
|
4714
|
-
description: 'addChannel / fold
|
|
4810
|
+
description: 'addChannel / fold: 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, and addChannel answers this before any `boundElsewhere`, so nothing about the other account is sent (HTTP 409).',
|
|
4715
4811
|
},
|
|
4716
4812
|
{
|
|
4717
4813
|
name: 'NotEmpty',
|
|
4718
|
-
description: 'fold: the account to fold gained a record or is 7 days old or more; link instead (HTTP 409).',
|
|
4814
|
+
description: 'fold: the account to fold gained a record or is 7 days old or more; link it with `moveMethod` instead (HTTP 409).',
|
|
4719
4815
|
},
|
|
4720
4816
|
{
|
|
4721
4817
|
name: 'ProgramRefused',
|
|
@@ -4729,6 +4825,38 @@ export const schemaDict = {
|
|
|
4729
4825
|
name: 'IsRecovery',
|
|
4730
4826
|
description: 'setPrograms on: the method is a recovery method, or its first mark is waiting (HTTP 409).',
|
|
4731
4827
|
},
|
|
4828
|
+
{
|
|
4829
|
+
name: 'FromStepUpRequired',
|
|
4830
|
+
description: "moveMethod: `fromStepUp` is missing, malformed, not fresh, or names none of `from`'s methods (HTTP 403).",
|
|
4831
|
+
},
|
|
4832
|
+
{
|
|
4833
|
+
name: 'Frozen',
|
|
4834
|
+
description: 'moveMethod: a method of an account of either person is frozen; nothing is scheduled (HTTP 409).',
|
|
4835
|
+
},
|
|
4836
|
+
{
|
|
4837
|
+
name: 'PendingChange',
|
|
4838
|
+
description: 'moveMethod: an account of either person has a pending change, a move included; nothing is scheduled (HTTP 409).',
|
|
4839
|
+
},
|
|
4840
|
+
{
|
|
4841
|
+
name: 'TooMany',
|
|
4842
|
+
description: 'moveMethod: the person would hold more than 4 accounts (HTTP 409).',
|
|
4843
|
+
},
|
|
4844
|
+
{
|
|
4845
|
+
name: 'Same',
|
|
4846
|
+
description: 'moveMethod: the two accounts are already one person, or the same account (HTTP 409).',
|
|
4847
|
+
},
|
|
4848
|
+
{
|
|
4849
|
+
name: 'NoKey',
|
|
4850
|
+
description: 'moveMethod: no key this platform or the identity PDS holds can write `alsoKnownAs` for an account of either person; nothing is scheduled (HTTP 409).',
|
|
4851
|
+
},
|
|
4852
|
+
{
|
|
4853
|
+
name: 'NeedsMethod',
|
|
4854
|
+
description: "unlink: `other` would be left with no way to sign in; name one of `did`'s email or phone methods to hand it (`method`) (HTTP 409).",
|
|
4855
|
+
},
|
|
4856
|
+
{
|
|
4857
|
+
name: 'NotLinked',
|
|
4858
|
+
description: "unlink: `other` is not in `did`'s person, or is `did` (HTTP 404).",
|
|
4859
|
+
},
|
|
4732
4860
|
],
|
|
4733
4861
|
},
|
|
4734
4862
|
stepUp: {
|
|
@@ -4767,6 +4895,7 @@ export const schemaDict = {
|
|
|
4767
4895
|
},
|
|
4768
4896
|
notice: {
|
|
4769
4897
|
type: 'object',
|
|
4898
|
+
description: "Unused, kept for older clients: `notices` always answers an empty list. The platform emails every notice itself, to the account's email methods only.",
|
|
4770
4899
|
required: ['id', 'did', 'event', 'to', 'createdAt'],
|
|
4771
4900
|
properties: {
|
|
4772
4901
|
id: {
|
|
@@ -4785,8 +4914,16 @@ export const schemaDict = {
|
|
|
4785
4914
|
'freeze',
|
|
4786
4915
|
'waitDropped',
|
|
4787
4916
|
'programsOn',
|
|
4917
|
+
'moveMethod',
|
|
4918
|
+
'linked',
|
|
4919
|
+
'unlinked',
|
|
4920
|
+
'moveDropped',
|
|
4921
|
+
'moveTimedOut',
|
|
4922
|
+
'moveCancelled',
|
|
4923
|
+
'akaLeft',
|
|
4924
|
+
'emailLeft',
|
|
4788
4925
|
],
|
|
4789
|
-
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,
|
|
4926
|
+
description: "What the notice is about: a change that started to wait (`removeMethod`, `deleteAccount`, `markRecovery`, `moveMethod`), a `freeze`, `waitDropped`: the change in `pending` was not completed because one of the account's methods was frozen during its wait, `programsOn`: programs can now sign in with one of the account's Nostr keys (`setPrograms` on; no `pending`), `linked` / `unlinked`: a link (moveMethod completed) or an unlink changed the account's person, `moveDropped` / `moveTimedOut` / `moveCancelled`: a move was dropped because a key can't be used or the identity PDS refused it for good, because it still could not be written 24 hours past due, or because something changed on one of its accounts, or `akaLeft` / `emailLeft`: an `alsoKnownAs` entry or an identity-PDS account email the platform owed removing was given up and is left.",
|
|
4790
4927
|
},
|
|
4791
4928
|
to: {
|
|
4792
4929
|
type: 'ref',
|
|
@@ -4825,6 +4962,7 @@ export const schemaDict = {
|
|
|
4825
4962
|
},
|
|
4826
4963
|
noticeTo: {
|
|
4827
4964
|
type: 'object',
|
|
4965
|
+
description: "An email or phone number in full: `sendTo`'s `to`. Also the shape of #notice's `to`, which is unused and kept for older clients (notices go to email methods only).",
|
|
4828
4966
|
required: ['type', 'value'],
|
|
4829
4967
|
properties: {
|
|
4830
4968
|
type: {
|
|
@@ -5326,7 +5464,7 @@ export const schemaDict = {
|
|
|
5326
5464
|
defs: {
|
|
5327
5465
|
main: {
|
|
5328
5466
|
type: 'procedure',
|
|
5329
|
-
description: "
|
|
5467
|
+
description: "Retired (Linking v2): the platform no longer serves it, and no client should call it. An account leaves its person with identity.manageMethods `unlink` now. Kept so the name and its shapes stay published. It was: end an alias link: deletes the caller's pub.techne.draft.accountLink naming `other`, and the other account's too when this host holds it, and removes the `alsoKnownAs` entries the link added (signed here, or by the identity PDS for accounts it made).",
|
|
5330
5468
|
input: {
|
|
5331
5469
|
encoding: 'application/json',
|
|
5332
5470
|
schema: {
|
|
@@ -5371,7 +5509,7 @@ export const schemaDict = {
|
|
|
5371
5509
|
defs: {
|
|
5372
5510
|
main: {
|
|
5373
5511
|
type: 'procedure',
|
|
5374
|
-
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
|
|
5512
|
+
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 an email notice to each of the account's email methods, and any of its methods 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.",
|
|
5375
5513
|
input: {
|
|
5376
5514
|
encoding: 'application/json',
|
|
5377
5515
|
schema: {
|
|
@@ -5426,6 +5564,102 @@ export const schemaDict = {
|
|
|
5426
5564
|
},
|
|
5427
5565
|
},
|
|
5428
5566
|
},
|
|
5567
|
+
PubTechneDraftIdentityWriteAsCollective: {
|
|
5568
|
+
lexicon: 1,
|
|
5569
|
+
id: 'pub.techne.draft.identity.writeAsCollective',
|
|
5570
|
+
defs: {
|
|
5571
|
+
main: {
|
|
5572
|
+
type: 'procedure',
|
|
5573
|
+
description: "Write as a collective: a batch of creates, updates and deletes applied atomically to the repo of a collective account whose credential this service holds, written with that credential. The same input and output as com.atproto.repo.applyWrites, with `repo` the collective's DID; each write is a com.atproto.repo.applyWrites#create, #update or #delete. The service checks the caller's role in the collective first: whoever manages the collective's own member space (`pub.techne.draft.space.collective.member/self`) writes as it; a member of a circle who only writes there deletes its own membership; a new collective's creator writes its first records; a collective that lets every signed-in account post a type takes one such create. A collective that keeps its memberships and descriptor in its member space (a circle) has them created and updated there with pub.techne.draft.permissioned.putRecords, never here (a delete is applied here), and a `block` is never created or updated as a collective. An app reaches it through the caller's own PDS (`atproto-proxy: <service DID>#atproto_appview`), which forwards it with the caller's service-auth token; the app's OAuth scope needs `rpc:pub.techne.draft.identity.writeAsCollective?aud=<service DID>%23atproto_appview`. An agent's token from this service, or a session with it, calls it directly. Its writes are public records in the collective's repo, and the caller's authority is its role there, so the app's `space:` scopes need not reach them (the `rpc:` scope above is enough). It places nothing in a space: a write that names a `space` is refused, and pub.techne.draft.permissioned.putRecords writes into a collective's space. Your own repo is not written here: write it at your PDS with com.atproto.repo.applyWrites. One call spends one of the caller's writes.",
|
|
5574
|
+
input: {
|
|
5575
|
+
encoding: 'application/json',
|
|
5576
|
+
schema: {
|
|
5577
|
+
type: 'object',
|
|
5578
|
+
required: ['repo', 'writes'],
|
|
5579
|
+
properties: {
|
|
5580
|
+
repo: {
|
|
5581
|
+
type: 'string',
|
|
5582
|
+
format: 'did',
|
|
5583
|
+
description: "The collective's DID. Not the caller's own.",
|
|
5584
|
+
},
|
|
5585
|
+
validate: {
|
|
5586
|
+
type: 'boolean',
|
|
5587
|
+
description: "As com.atproto.repo.applyWrites: passed to the collective's PDS.",
|
|
5588
|
+
},
|
|
5589
|
+
writes: {
|
|
5590
|
+
type: 'array',
|
|
5591
|
+
items: {
|
|
5592
|
+
type: 'union',
|
|
5593
|
+
refs: [
|
|
5594
|
+
'lex:com.atproto.repo.applyWrites#create',
|
|
5595
|
+
'lex:com.atproto.repo.applyWrites#update',
|
|
5596
|
+
'lex:com.atproto.repo.applyWrites#delete',
|
|
5597
|
+
],
|
|
5598
|
+
closed: true,
|
|
5599
|
+
},
|
|
5600
|
+
},
|
|
5601
|
+
swapCommit: {
|
|
5602
|
+
type: 'string',
|
|
5603
|
+
format: 'cid',
|
|
5604
|
+
description: "As com.atproto.repo.applyWrites: the whole batch fails unless the collective's repo is at this commit.",
|
|
5605
|
+
},
|
|
5606
|
+
},
|
|
5607
|
+
},
|
|
5608
|
+
},
|
|
5609
|
+
output: {
|
|
5610
|
+
encoding: 'application/json',
|
|
5611
|
+
schema: {
|
|
5612
|
+
type: 'object',
|
|
5613
|
+
required: [],
|
|
5614
|
+
properties: {
|
|
5615
|
+
commit: {
|
|
5616
|
+
type: 'ref',
|
|
5617
|
+
ref: 'lex:com.atproto.repo.defs#commitMeta',
|
|
5618
|
+
},
|
|
5619
|
+
results: {
|
|
5620
|
+
type: 'array',
|
|
5621
|
+
items: {
|
|
5622
|
+
type: 'union',
|
|
5623
|
+
refs: [
|
|
5624
|
+
'lex:com.atproto.repo.applyWrites#createResult',
|
|
5625
|
+
'lex:com.atproto.repo.applyWrites#updateResult',
|
|
5626
|
+
'lex:com.atproto.repo.applyWrites#deleteResult',
|
|
5627
|
+
],
|
|
5628
|
+
closed: true,
|
|
5629
|
+
},
|
|
5630
|
+
},
|
|
5631
|
+
},
|
|
5632
|
+
},
|
|
5633
|
+
},
|
|
5634
|
+
errors: [
|
|
5635
|
+
{
|
|
5636
|
+
name: 'InvalidRequest',
|
|
5637
|
+
description: "HTTP 400 (or the body extractor's 413, 415 or 422 for a body that is not JSON). Malformed input; `repo` is the caller's own DID (write your own repo at your PDS); a write names a `space` the app's `space:` scopes cover, or the token carries none (write it there with pub.techne.draft.permissioned.putRecords); or the collective's PDS refused the writes (its reason in the message, e.g. InvalidSwap when `swapCommit` did not match).",
|
|
5638
|
+
},
|
|
5639
|
+
{
|
|
5640
|
+
name: 'Forbidden',
|
|
5641
|
+
description: 'HTTP 403. The caller may not write as `repo`, or not this write: a record above its own role, a `block`, or a membership or descriptor the collective keeps in its member space.',
|
|
5642
|
+
},
|
|
5643
|
+
{
|
|
5644
|
+
name: 'NotAuthorized',
|
|
5645
|
+
description: "HTTP 403. A write names a `space` the app's `space:` scopes do not cover writing to.",
|
|
5646
|
+
},
|
|
5647
|
+
{
|
|
5648
|
+
name: 'LastManager',
|
|
5649
|
+
description: "HTTP 409. The writes would leave a circle's members with no manager.",
|
|
5650
|
+
},
|
|
5651
|
+
{
|
|
5652
|
+
name: 'PayloadTooLarge',
|
|
5653
|
+
description: "HTTP 413, from the collective's PDS.",
|
|
5654
|
+
},
|
|
5655
|
+
{
|
|
5656
|
+
name: 'RateLimitExceeded',
|
|
5657
|
+
description: "HTTP 429. Too many writes from this DID, or the collective's PDS is rate-limiting.",
|
|
5658
|
+
},
|
|
5659
|
+
],
|
|
5660
|
+
},
|
|
5661
|
+
},
|
|
5662
|
+
},
|
|
5429
5663
|
PubTechneDraftInterest: {
|
|
5430
5664
|
lexicon: 1,
|
|
5431
5665
|
id: 'pub.techne.draft.interest',
|
|
@@ -5704,7 +5938,7 @@ export const schemaDict = {
|
|
|
5704
5938
|
main: {
|
|
5705
5939
|
type: 'record',
|
|
5706
5940
|
key: 'any',
|
|
5707
|
-
description: "The rkey is the operator's DID, or `{did}-{millis}` for a later period after one has ended, so each period keeps its own record.
|
|
5941
|
+
description: "The rkey is the operator's DID, or `{did}-{millis}` for a later period after one has ended, so each period keeps its own record. Enforced by the AppView on read: a record counts only at one of those rkeys and only with `subject` = that DID.",
|
|
5708
5942
|
record: {
|
|
5709
5943
|
type: 'object',
|
|
5710
5944
|
required: ['subject', 'createdAt'],
|
|
@@ -5908,11 +6142,11 @@ export const schemaDict = {
|
|
|
5908
6142
|
PubTechneDraftPermissionedDeleteRecord: {
|
|
5909
6143
|
lexicon: 1,
|
|
5910
6144
|
id: 'pub.techne.draft.permissioned.deleteRecord',
|
|
5911
|
-
description: "Delete a record from the caller's own repo (a takedown, a mistake, or a `share` the owner withdraws, which stops that reader's future reads, with a 'revoke-read' receipt once no share in its source space names it). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden; a caller whose account is being deleted, or is deleted, is refused (AccountDeleting). The body is removed; a tombstone receipt stays in listChanges, in the space the record counted in, so readers drop their copies. Deleting a record that does not exist is a no-op unless swapCid is given (then it is InvalidSwap) or the delete names an app's space the caller may not delete in (then it is Forbidden). A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 2 MiB (2,097,152 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused write still spends one of the caller's writes (RateLimitExceeded). When the call's token carries space scopes from Techne's ePDS, the delete must name its `space`, and one the scopes do not cover is refused 403 Forbidden. A record written for an app's space (a pub.techne.draft.space.private space) is deleted only by
|
|
6145
|
+
description: "Delete a record from the caller's own repo (a takedown, a mistake, or a `share` the owner withdraws, which stops that reader's future reads, with a 'revoke-read' receipt once no share in its source space names it). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden; a caller whose account is being deleted, or is deleted, is refused (AccountDeleting). The body is removed; a tombstone receipt stays in listChanges, in the space the record counted in, so readers drop their copies. Deleting a record that does not exist is a no-op unless swapCid is given (then it is InvalidSwap) or the delete names an app's space the caller may not delete in (then it is Forbidden). A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 2 MiB (2,097,152 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused write still spends one of the caller's writes (RateLimitExceeded). When the call's token carries space scopes from Techne's ePDS, the delete must name its `space`, and one the scopes do not cover is refused 403 Forbidden. A record written for an app's space (a pub.techne.draft.space.private space) is deleted only by a caller whose `space:` scopes cover a delete there or whose token carries no `space:` scopes; any other caller is refused 403 Forbidden and nothing is deleted, even when nothing is at the key. Draft tier.",
|
|
5912
6146
|
defs: {
|
|
5913
6147
|
main: {
|
|
5914
6148
|
type: 'procedure',
|
|
5915
|
-
description: "Delete one of your own permissioned records (or a collective's or circle's whose own member space you manage). One key holds one record per space: `space` names which goes; without it, the key's one record, Conflict when there are several. A tombstone stays in listChanges so readers drop their copies. Deleting a missing record is a no-op unless swapCid is given (InvalidSwap), or it names an app's space the caller may not delete in (Forbidden). When the call's token carries space scopes from Techne's ePDS, the delete must name its `space`, and one the scopes do not cover is refused 403 Forbidden. A record written for an app's space is deleted only
|
|
6149
|
+
description: "Delete one of your own permissioned records (or a collective's or circle's whose own member space you manage). One key holds one record per space: `space` names which goes; without it, the key's one record, Conflict when there are several. A tombstone stays in listChanges so readers drop their copies. Deleting a missing record is a no-op unless swapCid is given (InvalidSwap), or it names an app's space the caller may not delete in (Forbidden). When the call's token carries space scopes from Techne's ePDS, the delete must name its `space`, and one the scopes do not cover is refused 403 Forbidden. A record written for an app's space is deleted only under `space:` scopes covering it or with no `space:` scopes: anyone else is 403 Forbidden. Draft tier.",
|
|
5916
6150
|
input: {
|
|
5917
6151
|
encoding: 'application/json',
|
|
5918
6152
|
schema: {
|
|
@@ -5966,7 +6200,7 @@ export const schemaDict = {
|
|
|
5966
6200
|
},
|
|
5967
6201
|
{
|
|
5968
6202
|
name: 'Forbidden',
|
|
5969
|
-
description: "HTTP 403. repo is not the caller's own (or a collective's or circle's the caller may write as, see the description); or the call's `space:` scopes do not cover the delete; or the record was written for an app's space (pub.techne.draft.space.private)
|
|
6203
|
+
description: "HTTP 403. repo is not the caller's own (or a collective's or circle's the caller may write as, see the description); or the call's `space:` scopes do not cover the delete; or the record was written for an app's space (pub.techne.draft.space.private) under `space:` scopes that do not cover a delete there. Nothing is deleted.",
|
|
5970
6204
|
},
|
|
5971
6205
|
{
|
|
5972
6206
|
name: 'LastManager',
|
|
@@ -6345,11 +6579,11 @@ export const schemaDict = {
|
|
|
6345
6579
|
PubTechneDraftPermissionedPutRecord: {
|
|
6346
6580
|
lexicon: 1,
|
|
6347
6581
|
id: 'pub.techne.draft.permissioned.putRecord',
|
|
6348
|
-
description: "Write a record into the caller's own repo, as a permissioned record (the generic private write). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden: a record is only ever written into its writer's repo. There is no write gate on a first write and no collection check: any collection may be written, for any space, and a first write is never refused
|
|
6582
|
+
description: "Write a record into the caller's own repo, as a permissioned record (the generic private write). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden: a record is only ever written into its writer's repo. There is no write gate on a first write and no collection check: any collection may be written, for any space, and a first write is never refused by its space's policy (only by the token's `space:` scopes). Replacing a record already written for an app's space (a pub.techne.draft.space.private space): only a caller whose `space:` scopes cover a put there, or whose token carries no `space:` scopes, may replace it; any other caller is refused 403 Forbidden and nothing is written. One collection is refused there: one of the platform's own record types named for an app's space (pub.techne.draft.space.private) is refused as InvalidRequest, since our own types keep their declared homes (the adopted community.lexicon.calendar.event and .rsvp are not refused there: they are the app's own data, and an RSVP there projects no claim). Otherwise what it counts for is the managing app's admission of the version as it is written: the record counts in the `space` it names only when that space's write policy admits the writer and, for a collection with a published lexicon, the space type declares the collection; it is then read by whoever the space's read policy admits. A record for a pub.techne.draft.space.private space is a space like any other: a write there counts when its owner writes it under `space:` scopes covering it or with no `space:` scopes (which app is calling is not asked); a write under scopes that do not cover it is refused like any write out of scope. Otherwise it is stored in the writer's repo, counts in no space, and only its writer reads it (a record written for an app's space and not admitted there is read by no one); write it again to ask again (for an app's space only the callers that may replace a record there can). A write into a space whose authority's account is being deleted, or is deleted, is stored the same way and counts in no space (the space goes with that account). A caller whose own account is being deleted, or is deleted, is refused (AccountDeleting). The output's `space` says where it counts. A source keeps what it does not publish in its own pub.techne.draft.space.source (at://{source}/pub.techne.draft.space.source/self): its permissioned descriptions, the `share`s naming its readers (writing one admits its subject, who gets a 'granted' receipt; deleting the last one naming a reader gives a 'revoke-read'. A share keeps one space per key, so it is never moved out of the space: writing it for another space is refused as Conflict), and a scraper's raw payloads and crawl state. A body in a collection with a published lexicon must satisfy it (InvalidRequest otherwise); any other collection is stored as written. Writing the current version again for the same space records no new version: if it counts there it is a no-op; if it was not admitted, admission is asked again, and a version admitted now is placed in the space with a receipt. In an app's space this holds only for the callers that may replace a record there; anyone else's write of the same version is refused Forbidden. A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 2 MiB (2,097,152 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused write still spends one of the caller's writes (RateLimitExceeded). When the call's token carries space scopes from Techne's ePDS, a write to a space they do not cover is refused 403 Forbidden. `space` is required: a write that names no space is refused as InvalidRequest (HTTP 400; for putRecords the whole call, and nothing is written), since public records are written with com.atproto.repo.putRecord and a record only the caller reads goes in its own pub.techne.draft.space.personal. Records written before this rule with no space stay stored and readable by their writer. Draft tier.",
|
|
6349
6583
|
defs: {
|
|
6350
6584
|
main: {
|
|
6351
6585
|
type: 'procedure',
|
|
6352
|
-
description: "Write one record into your own repo (or a collective's or circle's whose own member space you manage; a circle member holding only its write leg writes membership adds and their own claim) as a permissioned record, for the `space` it names (required: no space is InvalidRequest; public records go through com.atproto.repo.putRecord, and a record only you read goes in your space.personal). Any collection; a body of a collection with a published lexicon must satisfy it. It counts in that space only when the space's write policy admits you (and, for one of our own types, the space type declares the collection); otherwise it is stored and only you read it. A first write is never refused
|
|
6586
|
+
description: "Write one record into your own repo (or a collective's or circle's whose own member space you manage; a circle member holding only its write leg writes membership adds and their own claim) as a permissioned record, for the `space` it names (required: no space is InvalidRequest; public records go through com.atproto.repo.putRecord, and a record only you read goes in your space.personal). Any collection; a body of a collection with a published lexicon must satisfy it. It counts in that space only when the space's write policy admits you (and, for one of our own types, the space type declares the collection); otherwise it is stored and only you read it. A first write is never refused by its space's policy (only by your token's `space:` scopes). A pub.techne.draft.space.private record counts there when written under `space:` scopes covering it or with no `space:` scopes; which app is calling is not asked. Replacing a record already written there needs `space:` scopes covering it, or none; anyone else is 403 Forbidden. The output's `space` says where it counts. Writing the current version again is a no-op (in an app's space, only under covering scopes or with no `space:` scopes; else Forbidden). One write of your rate (RateLimitExceeded). A token with space scopes from Techne's ePDS: a write to a space they do not cover is 403 Forbidden. Draft tier.",
|
|
6353
6587
|
input: {
|
|
6354
6588
|
encoding: 'application/json',
|
|
6355
6589
|
schema: {
|
|
@@ -6419,7 +6653,7 @@ export const schemaDict = {
|
|
|
6419
6653
|
space: {
|
|
6420
6654
|
type: 'string',
|
|
6421
6655
|
format: 'at-uri',
|
|
6422
|
-
description: "The space the record counts in now. Absent when it counts in none (the space's write policy does not admit the writer
|
|
6656
|
+
description: "The space the record counts in now. Absent when it counts in none (the space's write policy does not admit the writer).",
|
|
6423
6657
|
},
|
|
6424
6658
|
},
|
|
6425
6659
|
},
|
|
@@ -6431,7 +6665,7 @@ export const schemaDict = {
|
|
|
6431
6665
|
},
|
|
6432
6666
|
{
|
|
6433
6667
|
name: 'Forbidden',
|
|
6434
|
-
description: "HTTP 403. repo is not the caller's own (or a collective's or circle's the caller may write as, see the description); or the call's `space:` scopes do not cover the write; or the write replaces a record already written for an app's space (pub.techne.draft.space.private)
|
|
6668
|
+
description: "HTTP 403. repo is not the caller's own (or a collective's or circle's the caller may write as, see the description); or the call's `space:` scopes do not cover the write; or the write replaces a record already written for an app's space (pub.techne.draft.space.private) under `space:` scopes that do not cover a put there. A first write is never refused by its space's policy (only by the token's `space:` scopes). Nothing is written.",
|
|
6435
6669
|
},
|
|
6436
6670
|
{
|
|
6437
6671
|
name: 'LastManager',
|
|
@@ -6472,11 +6706,11 @@ export const schemaDict = {
|
|
|
6472
6706
|
PubTechneDraftPermissionedPutRecords: {
|
|
6473
6707
|
lexicon: 1,
|
|
6474
6708
|
id: 'pub.techne.draft.permissioned.putRecords',
|
|
6475
|
-
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
|
|
6709
|
+
description: "Write up to 200 records into the caller's own repo in one call: each write is applied in order, exactly as putRecord applies it (the same admission, receipts, no-op re-put and swapCid), each in its own transaction. NOT atomic: a write that is refused does not undo the writes before it or stop the ones after it, and each write's result says what happened to it. That is why this is not called applyWrites: atproto's com.atproto.repo.applyWrites commits all of its writes or none, and this does not (each write keeps putRecord's own per-record locking, so a batch never holds more than one record's locks). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden and nothing is written. A write refused for itself (a malformed or invalid record, a swapCid that does not match, a conflict) is reported in its result as the error putRecord would have answered, and the next write is applied, except in a roster batch: one with any pub.techne.draft.membership write, in whatever repo. A roster batch of more than one write is first checked whole, and a write in it that putRecord would refuse before reading anything (malformed, over 2 MiB, failing its lexicon, or naming a space it cannot be written into) refuses the call as InvalidRequest (HTTP 400) with nothing written; it then stops at its first refused write, and every write after that one is reported as Conflict and not written. Since any prefix of a roster batch may be what is left written, a batch written as a circle that has a manager must keep one after every prefix of its membership writes (see LastManager), not only after the whole batch: to make someone else manager, put their membership at role 30 or above before the caller's own lower one. A refusal that holds for the whole call stops it with that error, and no later write is applied: the caller's account is being deleted, or is deleted (AccountDeleting; what it wrote goes with the account), or a failure inside the AppView (HTTP 500; the writes applied before it stay written, so read them back or send the batch again: writing the current version again for the same space is a no-op). Callers should treat a failed batch as all-or-nothing and send it again whole: re-putting the records that landed is a no-op (in an app's space only under `space:` scopes covering it or with no `space:` scopes; anyone else's re-put there is Forbidden), and at the move to atproto's permissioned data this method becomes the owner's own PDS com.atproto.repo.applyWrites, which is atomic. One call spends one of the caller's writes (RateLimitExceeded), whatever the number of writes it carries. A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 8 MiB (8,388,608 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON or carries no writes or more than 200; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused call still spends one of the caller's writes. Each write is checked against the token's space scopes as putRecord checks it, and a write that replaces a record already written for an app's space (a pub.techne.draft.space.private space) under `space:` scopes that do not cover a put there is refused as putRecord refuses it; either refusal is that write's result (Forbidden), and the next write is applied (in a roster batch, the writes after it are Conflict, not written). A first write is never refused by its space's policy (only by the token's `space:` scopes). `space` is required: a write that names no space is refused as InvalidRequest (HTTP 400; for putRecords the whole call, and nothing is written), since public records are written with com.atproto.repo.putRecord and a record only the caller reads goes in its own pub.techne.draft.space.personal. Records written before this rule with no space stay stored and readable by their writer. Draft tier.",
|
|
6476
6710
|
defs: {
|
|
6477
6711
|
main: {
|
|
6478
6712
|
type: 'procedure',
|
|
6479
|
-
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
|
|
6713
|
+
description: "Up to 200 putRecord writes, applied in order, each in its own transaction, for one write of your rate. Not atomic: each write's result says what happened to it, and a write refused for itself does not stop the others (AccountDeleting or an HTTP 500 stops the rest), except in a roster batch (one with any pub.techne.draft.membership write), which stops at its first refused write and reports each later one as Conflict, not written; as a circle, every prefix of its membership writes must keep the circle a manager. Send a failed batch again whole: re-putting what landed is a no-op (in an app's space, only under covering scopes or with no `space:` scopes). Space scopes and space.private apply to each write as in putRecord: a first write is never refused by its space's policy (only by the token's `space:` scopes), but replacing a record already written for an app's space needs `space:` scopes covering it or no `space:` scopes, and that write's result is Forbidden. Every write names its `space` (a write with none refuses the whole call, InvalidRequest; public records go through com.atproto.repo.putRecord). Draft tier.",
|
|
6480
6714
|
input: {
|
|
6481
6715
|
encoding: 'application/json',
|
|
6482
6716
|
schema: {
|
|
@@ -6620,7 +6854,7 @@ export const schemaDict = {
|
|
|
6620
6854
|
properties: {
|
|
6621
6855
|
error: {
|
|
6622
6856
|
type: 'string',
|
|
6623
|
-
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
|
|
6857
|
+
description: "InvalidRequest (malformed, a body that fails its collection's published lexicon, or a record over 2 MiB, more than a putRecord body may be), InvalidSwap (swapCid did not match the current version), Conflict (the same key holds a public record in the caller's repo, or a concurrent write replaced this version before it was recorded), IdentityConflict (the write would change a contact's identity, which writing again never fixes; see putRecord), DuplicatePhone (a contact write introduces a number another of the caller's active contacts carries; see putRecord), RateLimitExceeded (a contact write that binds a number to an account found the caller's phone lookups spent; retry it in a minute) or Forbidden (the call's `space:` scopes do not cover the write, or it replaces a record already written for an app's space under `space:` scopes that do not cover it; see putRecord).",
|
|
6624
6858
|
knownValues: [
|
|
6625
6859
|
'InvalidRequest',
|
|
6626
6860
|
'InvalidSwap',
|
|
@@ -6724,7 +6958,7 @@ export const schemaDict = {
|
|
|
6724
6958
|
main: {
|
|
6725
6959
|
type: 'record',
|
|
6726
6960
|
key: 'any',
|
|
6727
|
-
description: 'Publishers use sidecar_rkey(subject AT-URI), one research record per place per writer.
|
|
6961
|
+
description: 'Publishers use sidecar_rkey(subject AT-URI), one research record per place per writer. Readers do not depend on the key: the AppView uses the newest research record about a place from a trusted writer.',
|
|
6728
6962
|
record: {
|
|
6729
6963
|
type: 'object',
|
|
6730
6964
|
required: ['subject', 'createdAt'],
|
|
@@ -7147,7 +7381,7 @@ export const schemaDict = {
|
|
|
7147
7381
|
main: {
|
|
7148
7382
|
type: 'record',
|
|
7149
7383
|
key: 'any',
|
|
7150
|
-
description:
|
|
7384
|
+
description: "Publishers use sidecar_rkey(curated record AT-URI), so each curated record has one provenance per curator. Readers do not depend on the key: the AppView finds a curated record's provenance by `subject` in the curator's repo.",
|
|
7151
7385
|
record: {
|
|
7152
7386
|
type: 'object',
|
|
7153
7387
|
required: ['subject', 'sources', 'readiness', 'createdAt'],
|
|
@@ -7893,6 +8127,32 @@ export const schemaDict = {
|
|
|
7893
8127
|
type: 'string',
|
|
7894
8128
|
format: 'handle',
|
|
7895
8129
|
},
|
|
8130
|
+
linked: {
|
|
8131
|
+
type: 'array',
|
|
8132
|
+
items: {
|
|
8133
|
+
type: 'ref',
|
|
8134
|
+
ref: 'lex:pub.techne.draft.query.getRecords#linkedHandle',
|
|
8135
|
+
},
|
|
8136
|
+
description: 'The other accounts linked to this one now (the same person; links are public, alsoKnownAs on both DIDs). Absent when none, and while a sign-in method of any account of the person is frozen (a freeze pauses the link). A linked account that is not active or is suspended is left out.',
|
|
8137
|
+
},
|
|
8138
|
+
},
|
|
8139
|
+
},
|
|
8140
|
+
linkedHandle: {
|
|
8141
|
+
type: 'object',
|
|
8142
|
+
required: ['did'],
|
|
8143
|
+
properties: {
|
|
8144
|
+
did: {
|
|
8145
|
+
type: 'string',
|
|
8146
|
+
format: 'did',
|
|
8147
|
+
},
|
|
8148
|
+
handle: {
|
|
8149
|
+
type: 'string',
|
|
8150
|
+
format: 'handle',
|
|
8151
|
+
},
|
|
8152
|
+
displayName: {
|
|
8153
|
+
type: 'string',
|
|
8154
|
+
description: "The linked account's public profile name, when it has one.",
|
|
8155
|
+
},
|
|
7896
8156
|
},
|
|
7897
8157
|
},
|
|
7898
8158
|
resolved: {
|
|
@@ -8314,7 +8574,7 @@ export const schemaDict = {
|
|
|
8314
8574
|
main: {
|
|
8315
8575
|
type: 'record',
|
|
8316
8576
|
key: 'any',
|
|
8317
|
-
description:
|
|
8577
|
+
description: "Publishers use sidecar_rkey(subject AT-URI), so a rule holds one receipt per record, updated when it reprocesses. Readers do not depend on the key: the AppView counts a receipt from the rule's account about the record's current cid.",
|
|
8318
8578
|
record: {
|
|
8319
8579
|
type: 'object',
|
|
8320
8580
|
required: ['subject', 'createdAt'],
|
|
@@ -9271,7 +9531,7 @@ export const schemaDict = {
|
|
|
9271
9531
|
main: {
|
|
9272
9532
|
type: 'record',
|
|
9273
9533
|
key: 'any',
|
|
9274
|
-
description: "Writers use the retired identity's DID as the rkey, so each writer holds at most one per identity.
|
|
9534
|
+
description: "Writers use the retired identity's DID as the rkey, so each writer holds at most one per identity. Enforced by the AppView on read: a retirement at any other key is not counted.",
|
|
9275
9535
|
record: {
|
|
9276
9536
|
type: 'object',
|
|
9277
9537
|
required: ['subject', 'createdAt'],
|
|
@@ -9335,7 +9595,7 @@ export const schemaDict = {
|
|
|
9335
9595
|
main: {
|
|
9336
9596
|
type: 'record',
|
|
9337
9597
|
key: 'any',
|
|
9338
|
-
description: 'One record per pair: publishers put the lower AT-URI in `subject` and use pair_rkey(subject, other) (regenos_lexicons::sidecar), so the reversed pair cannot get a second record.
|
|
9598
|
+
description: 'One record per pair: publishers put the lower AT-URI in `subject` and use pair_rkey(subject, other) (regenos_lexicons::sidecar), so the reversed pair cannot get a second record. Readers do not depend on the key: the AppView walks pairs from both ends, so a reversed or repeated pair is the same link. A pair asserted both sameAs and distinctFrom by writers a reader trusts is a conflict that reader resolves.',
|
|
9339
9599
|
record: {
|
|
9340
9600
|
type: 'object',
|
|
9341
9601
|
required: ['subject', 'other', 'createdAt'],
|
|
@@ -9501,7 +9761,7 @@ export const schemaDict = {
|
|
|
9501
9761
|
main: {
|
|
9502
9762
|
type: 'record',
|
|
9503
9763
|
key: 'any',
|
|
9504
|
-
description: 'Publishers use sidecar_rkey(subject AT-URI), one per record. `
|
|
9764
|
+
description: 'Publishers use sidecar_rkey(subject AT-URI), one per record. Readers mostly find source sidecars by `subject` at any key; the commons curator reads only this key to tell whether a source item is gone upstream.',
|
|
9505
9765
|
record: {
|
|
9506
9766
|
type: 'object',
|
|
9507
9767
|
required: ['subject', 'sourceStatus', 'lastSeenAt', 'createdAt'],
|
|
@@ -9609,7 +9869,7 @@ export const schemaDict = {
|
|
|
9609
9869
|
},
|
|
9610
9870
|
},
|
|
9611
9871
|
},
|
|
9612
|
-
description: 'Publishers use an immutable content-derived rkey: changed credit or license content creates a new record and CID; existing content keys are never rewritten.
|
|
9872
|
+
description: 'Publishers use an immutable content-derived rkey: changed credit or license content creates a new record and CID; existing content keys are never rewritten. Readers do not depend on the key: a sourceAttribution is read only through a strongRef (uri and cid) that names it.',
|
|
9613
9873
|
},
|
|
9614
9874
|
},
|
|
9615
9875
|
},
|
|
@@ -9705,7 +9965,7 @@ export const schemaDict = {
|
|
|
9705
9965
|
main: {
|
|
9706
9966
|
type: 'record',
|
|
9707
9967
|
key: 'any',
|
|
9708
|
-
description:
|
|
9968
|
+
description: "Publishers use sidecar_rkey(subject AT-URI), so a writer's rewrite replaces its one summary. Readers do not depend on the key: the AppView finds summaries by `subject` and its cid and uses the newest from a trusted writer.",
|
|
9709
9969
|
record: {
|
|
9710
9970
|
type: 'object',
|
|
9711
9971
|
required: ['subject', 'text', 'createdAt'],
|
|
@@ -9821,7 +10081,7 @@ export const schemaDict = {
|
|
|
9821
10081
|
main: {
|
|
9822
10082
|
type: 'record',
|
|
9823
10083
|
key: 'any',
|
|
9824
|
-
description: 'Publishers use sidecar_rkey(subject AT-URI), so a writer holds one verdict per record, updated when a new version is judged.
|
|
10084
|
+
description: 'Publishers use sidecar_rkey(subject AT-URI), so a writer holds one verdict per record, updated when a new version is judged. Readers do not depend on the key: any trusted verdict naming the subject counts.',
|
|
9825
10085
|
record: {
|
|
9826
10086
|
type: 'object',
|
|
9827
10087
|
required: ['subject', 'values', 'createdAt'],
|
|
@@ -9859,7 +10119,7 @@ export const schemaDict = {
|
|
|
9859
10119
|
main: {
|
|
9860
10120
|
type: 'record',
|
|
9861
10121
|
key: 'any',
|
|
9862
|
-
description: 'The record key is the subject DID, so an issuer holds at most one per account.
|
|
10122
|
+
description: 'The record key is the subject DID, so an issuer holds at most one per account. Enforced by the AppView on read: a verification at any other key is not counted.',
|
|
9863
10123
|
record: {
|
|
9864
10124
|
type: 'object',
|
|
9865
10125
|
required: ['subject', 'createdAt'],
|
|
@@ -9937,7 +10197,7 @@ export const schemaDict = {
|
|
|
9937
10197
|
defs: {
|
|
9938
10198
|
main: {
|
|
9939
10199
|
type: 'procedure',
|
|
9940
|
-
description: "Let an app read a space: writes the space authority's pub.techne.draft.appAccess for the space and the app, placed in the space. Whoever passes the space type's published manage leg may call it (the owner of a personal space; Facilitator and up for a collective's): the record is written with the authority's pen, which is what the manage leg grants. Approving again is a no-op. A member's request (pub.techne.draft.appAccessRequest) for the same space and app becomes approved. Its only other effect is clearing the request from the approvers' inboxes.",
|
|
10200
|
+
description: "Let an app read a space: writes the space authority's pub.techne.draft.appAccess for the space and the app, placed in the space. Whoever passes the space type's published manage leg may call it (the owner of a personal space itself, never another account linked to it; Facilitator and up for a collective's, a role held by any of the caller's linked accounts included): the record is written into the authority's repo with the authority's pen, which is what the manage leg grants. Approving again is a no-op. A member's request (pub.techne.draft.appAccessRequest) for the same space and app becomes approved. Its only other effect is clearing the request from the approvers' inboxes.",
|
|
9941
10201
|
input: {
|
|
9942
10202
|
encoding: 'application/json',
|
|
9943
10203
|
schema: {
|
|
@@ -9987,7 +10247,7 @@ export const schemaDict = {
|
|
|
9987
10247
|
},
|
|
9988
10248
|
{
|
|
9989
10249
|
name: 'NotAuthorized',
|
|
9990
|
-
description: "The caller does not pass the space type's manage leg.",
|
|
10250
|
+
description: "The caller does not pass the space type's manage leg: for a personal space, the caller is not its owner (an account linked to the owner is refused too).",
|
|
9991
10251
|
},
|
|
9992
10252
|
],
|
|
9993
10253
|
},
|
|
@@ -10227,7 +10487,7 @@ export const schemaDict = {
|
|
|
10227
10487
|
defs: {
|
|
10228
10488
|
main: {
|
|
10229
10489
|
type: 'query',
|
|
10230
|
-
description: "Whether an app may read a space, derived and never stored: `approved` when the authority's pub.techne.draft.appAccess exists, `pending` when a pub.techne.draft.appAccessRequest counts without one, `none` otherwise. A request counts only while its requester can read the space, and for a caller who is not an approver only the caller's own
|
|
10490
|
+
description: "Whether an app may read a space, derived and never stored: `approved` when the authority's pub.techne.draft.appAccess exists, `pending` when a pub.techne.draft.appAccessRequest counts without one, `none` otherwise. A request counts only while its requester can read the space, and for a caller who is not an approver only requests by the caller's own accounts (its person) count (an approver sees every request). Nothing stores a denial. `approvers` are who can approve it, each an account social.scenius.approveAppAccess accepts: the manage-leg holders, or the owner of a personal space itself (never another account linked to it). `requesterIsApprover` says the caller's own account is one of them, so approving is one tap and sends no notification. Approvers are notified of a request only when its requester can read the space and is not an approver. Only a reader of the space may ask.",
|
|
10231
10491
|
parameters: {
|
|
10232
10492
|
type: 'params',
|
|
10233
10493
|
properties: {
|
|
@@ -10482,7 +10742,7 @@ export const schemaDict = {
|
|
|
10482
10742
|
defs: {
|
|
10483
10743
|
main: {
|
|
10484
10744
|
type: 'query',
|
|
10485
|
-
description:
|
|
10745
|
+
description: "What an app gets from the caller, for its sign-in to list: every space the caller's person passes the manage leg of (the caller's own, and its linked accounts' spaces, included) whose authority has approved the app, each with the criteria that approval states for future spaces.",
|
|
10486
10746
|
parameters: {
|
|
10487
10747
|
type: 'params',
|
|
10488
10748
|
properties: {
|
|
@@ -11359,6 +11619,7 @@ export const ids = {
|
|
|
11359
11619
|
PubTechneDraftIdentityRevokeLinkToken: 'pub.techne.draft.identity.revokeLinkToken',
|
|
11360
11620
|
PubTechneDraftIdentityUnlinkAccount: 'pub.techne.draft.identity.unlinkAccount',
|
|
11361
11621
|
PubTechneDraftIdentityUnlinkMethod: 'pub.techne.draft.identity.unlinkMethod',
|
|
11622
|
+
PubTechneDraftIdentityWriteAsCollective: 'pub.techne.draft.identity.writeAsCollective',
|
|
11362
11623
|
PubTechneDraftInterest: 'pub.techne.draft.interest',
|
|
11363
11624
|
PubTechneDraftIntroProposal: 'pub.techne.draft.introProposal',
|
|
11364
11625
|
PubTechneDraftInvite: 'pub.techne.draft.invite',
|