techne-sdk 0.3.4 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +159 -0
- package/README.md +3 -1
- package/dist/auth/account.d.ts +67 -0
- package/dist/auth/account.js +136 -0
- package/dist/auth/hosts.d.ts +4 -0
- package/dist/auth/hosts.js +4 -0
- package/dist/auth/index.d.ts +30 -5
- package/dist/auth/index.js +80 -12
- package/dist/catalog/catalog.gen.d.ts +24 -24
- package/dist/catalog/catalog.gen.js +1256 -85
- package/dist/generated/index.d.ts +9 -0
- package/dist/generated/index.js +27 -0
- package/dist/generated/lexicons.d.ts +1539 -147
- package/dist/generated/lexicons.js +1020 -202
- package/dist/generated/nsid.d.ts +18 -0
- package/dist/generated/nsid.js +18 -0
- package/dist/generated/nsid.json +18 -0
- package/dist/generated/types/pub/techne/draft/beacon.d.ts +2 -0
- package/dist/generated/types/pub/techne/draft/collective.d.ts +1 -1
- package/dist/generated/types/pub/techne/draft/commons/moveAccountHandle.d.ts +3 -0
- package/dist/generated/types/pub/techne/draft/commons/moveAccountHandle.js +7 -0
- package/dist/generated/types/pub/techne/draft/identity/attest.d.ts +6 -0
- package/dist/generated/types/pub/techne/draft/identity/attest.js +14 -0
- package/dist/generated/types/pub/techne/draft/identity/beginAddMethod.d.ts +6 -0
- package/dist/generated/types/pub/techne/draft/identity/beginAddMethod.js +14 -0
- package/dist/generated/types/pub/techne/draft/identity/cancelPendingChange.d.ts +29 -0
- package/dist/generated/types/pub/techne/draft/identity/cancelPendingChange.js +27 -0
- package/dist/generated/types/pub/techne/draft/identity/defs.d.ts +22 -4
- package/dist/generated/types/pub/techne/draft/identity/defs.js +7 -0
- package/dist/generated/types/pub/techne/draft/identity/finishAddMethod.d.ts +12 -0
- package/dist/generated/types/pub/techne/draft/identity/finishAddMethod.js +28 -0
- package/dist/generated/types/pub/techne/draft/identity/fold.d.ts +3 -0
- package/dist/generated/types/pub/techne/draft/identity/fold.js +7 -0
- package/dist/generated/types/pub/techne/draft/identity/holdForPhone.d.ts +1 -1
- package/dist/generated/types/pub/techne/draft/identity/link.d.ts +3 -0
- package/dist/generated/types/pub/techne/draft/identity/link.js +7 -0
- package/dist/generated/types/pub/techne/draft/identity/listMethods.d.ts +6 -1
- package/dist/generated/types/pub/techne/draft/identity/manageMethods.d.ts +225 -0
- package/dist/generated/types/pub/techne/draft/identity/manageMethods.js +209 -0
- package/dist/generated/types/pub/techne/draft/identity/openAccountPage.d.ts +40 -0
- package/dist/generated/types/pub/techne/draft/identity/openAccountPage.js +55 -0
- package/dist/generated/types/pub/techne/draft/identity/resolve.d.ts +10 -0
- package/dist/generated/types/pub/techne/draft/identity/unlinkMethod.d.ts +6 -0
- package/dist/generated/types/pub/techne/draft/identity/unlinkMethod.js +7 -0
- package/dist/generated/types/pub/techne/draft/membership.d.ts +1 -1
- package/dist/generated/types/pub/techne/draft/permissioned/deleteRecord.d.ts +3 -0
- package/dist/generated/types/pub/techne/draft/permissioned/deleteRecord.js +7 -0
- package/dist/generated/types/pub/techne/draft/permissioned/putRecord.d.ts +3 -0
- package/dist/generated/types/pub/techne/draft/permissioned/putRecord.js +7 -0
- package/dist/generated/types/pub/techne/draft/permissioned/putRecords.d.ts +5 -2
- package/dist/generated/types/pub/techne/draft/permissioned/putRecords.js +7 -0
- package/dist/generated/types/pub/techne/draft/registry/blockIndex.d.ts +7 -1
- package/dist/generated/types/pub/techne/draft/registry/blockIndex.js +17 -3
- package/dist/generated/types/pub/techne/draft/registry/purgeType.d.ts +7 -1
- package/dist/generated/types/pub/techne/draft/registry/purgeType.js +17 -3
- package/dist/generated/types/pub/techne/draft/summary.d.ts +2 -0
- package/dist/wasm/techne-wasm.gen.js +1 -1
- package/dist/wasm/techne-wasm2js.gen.js +9950 -9947
- package/package.json +2 -1
|
@@ -1388,6 +1388,16 @@ export declare const schemaDict: {
|
|
|
1388
1388
|
readonly maxLength: 64;
|
|
1389
1389
|
readonly description: "Optional: one emoji the lighter picked for this beacon (its card mark and map pin glyph).";
|
|
1390
1390
|
};
|
|
1391
|
+
readonly answerEmojis: {
|
|
1392
|
+
readonly type: "array";
|
|
1393
|
+
readonly maxLength: 3;
|
|
1394
|
+
readonly items: {
|
|
1395
|
+
readonly type: "string";
|
|
1396
|
+
readonly maxGraphemes: 1;
|
|
1397
|
+
readonly maxLength: 64;
|
|
1398
|
+
};
|
|
1399
|
+
readonly description: "Optional: the emoji the lighter picked for the answers, in this order: going (I'm in), interested (Maybe), notgoing (Can't go). A missing or empty entry means the app's own emoji for that answer.";
|
|
1400
|
+
};
|
|
1391
1401
|
readonly createdAt: {
|
|
1392
1402
|
readonly type: "string";
|
|
1393
1403
|
readonly format: "datetime";
|
|
@@ -1572,7 +1582,7 @@ export declare const schemaDict: {
|
|
|
1572
1582
|
};
|
|
1573
1583
|
readonly collectiveType: {
|
|
1574
1584
|
readonly type: "string";
|
|
1575
|
-
readonly description: "Free-form collective type/category label. The value \"beacon.circle\" marks a Beacon circle on a descriptor placed in its own DID's pub.techne.draft.space.collective.member/self, whoever made that DID or wrote it. A Beacon circle is a private group whose descriptor and memberships live only in that member space,
|
|
1585
|
+
readonly description: "Free-form collective type/category label. The value \"beacon.circle\" marks a Beacon circle on a descriptor placed in its own DID's pub.techne.draft.space.collective.member/self, whoever made that DID or wrote it. A Beacon circle is a private group whose descriptor and memberships live only in that member space, and which a pub.techne.draft.accessRule#groupTarget may name. Roles: a member holds 20 and the manager 40 (the founder, until they make someone else manager). Where the platform holds the circle's credential, any member may add people and leave; only the manager renames, sets the emoji, removes people and makes someone manager (one putRecords: that member at 40, the manager's own claim at 20). A write that would leave members with nobody at >= 30 is refused (LastManager). A circle whose last member leaves is deleted, and so is one whose only member deletes their account; an account that alone manages a circle hands it to the longest-standing other member when it is deleted. Circles made before these roles hold every member at 40 until the operator lowers them. A circle whose DID someone else holds is managed by its holder.";
|
|
1576
1586
|
readonly maxLength: 64;
|
|
1577
1587
|
};
|
|
1578
1588
|
readonly sceneType: {
|
|
@@ -1833,7 +1843,7 @@ export declare const schemaDict: {
|
|
|
1833
1843
|
readonly defs: {
|
|
1834
1844
|
readonly main: {
|
|
1835
1845
|
readonly type: "procedure";
|
|
1836
|
-
readonly description: "Move a custodial account's handle to the deployment's current handle domain (handles move from *.scenius.social to the settled domain). Served by the AppView, operator-only
|
|
1846
|
+
readonly description: "Move a custodial account's handle to the deployment's current handle domain (handles move from *.scenius.social to the settled domain). Served by the AppView, operator-only: the caller's DID is one of OPERATOR_DIDS and the call carries the moderate scope. Keeps the account's label unless `label` is given; updates the handle on the PDS and in the AppView. An account has one valid handle at a time: the previous one is retired, never issued again, and links that carry it redirect to the account's DID route. Everything else already refers to the account by DID and does not change.";
|
|
1837
1847
|
readonly input: {
|
|
1838
1848
|
readonly encoding: "application/json";
|
|
1839
1849
|
readonly schema: {
|
|
@@ -1881,7 +1891,10 @@ export declare const schemaDict: {
|
|
|
1881
1891
|
readonly description: "No signed-in caller.";
|
|
1882
1892
|
}, {
|
|
1883
1893
|
readonly name: "NotAuthorized";
|
|
1884
|
-
readonly description: "The caller is not an operator.";
|
|
1894
|
+
readonly description: "The caller is not an operator, or the call does not carry the moderate scope (HTTP 403).";
|
|
1895
|
+
}, {
|
|
1896
|
+
readonly name: "ProgramRefused";
|
|
1897
|
+
readonly description: "The caller is a program's token: a program never reaches an operator method (HTTP 403).";
|
|
1885
1898
|
}, {
|
|
1886
1899
|
readonly name: "InvalidRequest";
|
|
1887
1900
|
readonly description: "`did` is not a DID; the account's keys are not held here (a BYOD account moves its own handle); the account has no handle and no `label` was given; the label is reserved or not a valid handle label; or the account has no claimed handle yet.";
|
|
@@ -2893,7 +2906,7 @@ export declare const schemaDict: {
|
|
|
2893
2906
|
readonly defs: {
|
|
2894
2907
|
readonly main: {
|
|
2895
2908
|
readonly type: "procedure";
|
|
2896
|
-
readonly description: "A PDS's issuer hook: the PDS verified a one-time code for `channel` and signed `did` in (or created it). The issuer binds an unbound channel to the account and issues a pub.techne.draft.credential, or re-issues when it is already bound to that account. It never moves a bound channel, and binds only accounts whose DID document names the calling PDS (`#atproto_pds`). Authenticated and signed exactly as identity.resolve. Delivered at least once; idempotent per (channel, did).";
|
|
2909
|
+
readonly description: "A PDS's issuer hook: the PDS verified a one-time code for `channel` and signed `did` in (or created it). The issuer binds an unbound channel to the account and issues a pub.techne.draft.credential, or re-issues when it is already bound to that account. A phone it binds or re-binds releases the invitations and holds waiting on that number to the account (as a sign-in on the platform does). It never moves a bound channel, never signs in a frozen method (`MethodFrozen`), never binds a phone number back to the account that removed it (`ChannelReleased`), and binds only accounts whose DID document names the calling PDS (`#atproto_pds`). Authenticated and signed exactly as identity.resolve. Delivered at least once; idempotent per (channel, did).";
|
|
2897
2910
|
readonly input: {
|
|
2898
2911
|
readonly encoding: "application/json";
|
|
2899
2912
|
readonly schema: {
|
|
@@ -2957,6 +2970,12 @@ export declare const schemaDict: {
|
|
|
2957
2970
|
}, {
|
|
2958
2971
|
readonly name: "ChannelBound";
|
|
2959
2972
|
readonly description: "The channel is bound to another account (HTTP 409). Never retried.";
|
|
2973
|
+
}, {
|
|
2974
|
+
readonly name: "ChannelReleased";
|
|
2975
|
+
readonly description: "The account named by `did` removed this phone number (identity.unlinkMethod) and nobody has bound it since (HTTP 409). Never retried: the account gets the number back only by adding it again (identity.finishAddMethod).";
|
|
2976
|
+
}, {
|
|
2977
|
+
readonly name: "MethodFrozen";
|
|
2978
|
+
readonly description: "This channel is a frozen method of the account (identity.manageMethods `freeze`; HTTP 403): it does not sign in until the freeze ends. Not retried.";
|
|
2960
2979
|
}, {
|
|
2961
2980
|
readonly name: "RateLimitExceeded";
|
|
2962
2981
|
readonly description: "As identity.resolve (HTTP 429).";
|
|
@@ -2970,7 +2989,7 @@ export declare const schemaDict: {
|
|
|
2970
2989
|
readonly defs: {
|
|
2971
2990
|
readonly main: {
|
|
2972
2991
|
readonly type: "procedure";
|
|
2973
|
-
readonly description: "Start adding a sign-in method to the caller's account: sends a 6-digit code to the channel
|
|
2992
|
+
readonly description: "Start adding a sign-in method to the caller's account: sends a 6-digit code to the channel: an email, or a phone by SMS. To change a phone number, add the new one, then remove the old one with identity.unlinkMethod. The code is good for 10 minutes and 5 attempts; finish with identity.finishAddMethod. Signed-in members only.";
|
|
2974
2993
|
readonly input: {
|
|
2975
2994
|
readonly encoding: "application/json";
|
|
2976
2995
|
readonly schema: {
|
|
@@ -3007,10 +3026,58 @@ export declare const schemaDict: {
|
|
|
3007
3026
|
readonly description: "No signed-in caller.";
|
|
3008
3027
|
}, {
|
|
3009
3028
|
readonly name: "InvalidRequest";
|
|
3010
|
-
readonly description: "The channel is not a valid email, or its type cannot be added
|
|
3029
|
+
readonly description: "The channel is not a valid email or E.164 phone number, or its type cannot be added on this server.";
|
|
3011
3030
|
}, {
|
|
3012
3031
|
readonly name: "RateLimitExceeded";
|
|
3013
3032
|
readonly description: "Too many codes sent to this address (HTTP 429).";
|
|
3033
|
+
}, {
|
|
3034
|
+
readonly name: "MethodFrozen";
|
|
3035
|
+
readonly description: "The channel is a frozen sign-in method of an account (HTTP 403); it can't be proved anywhere until the freeze ends.";
|
|
3036
|
+
}, {
|
|
3037
|
+
readonly name: "SendFailed";
|
|
3038
|
+
readonly description: "The code could not be texted to that phone number (HTTP 502). Try again.";
|
|
3039
|
+
}];
|
|
3040
|
+
};
|
|
3041
|
+
};
|
|
3042
|
+
};
|
|
3043
|
+
readonly PubTechneDraftIdentityCancelPendingChange: {
|
|
3044
|
+
readonly lexicon: 1;
|
|
3045
|
+
readonly id: "pub.techne.draft.identity.cancelPendingChange";
|
|
3046
|
+
readonly defs: {
|
|
3047
|
+
readonly main: {
|
|
3048
|
+
readonly type: "procedure";
|
|
3049
|
+
readonly description: "Cancel one of the caller's pending sign-in changes (a method removal, an account deletion or a first recovery mark that waits; its `id` is the `pending` identity.listMethods, identity.unlinkMethod or deleteAccount answered), by the sign-in method rules: any of the account's methods may cancel a wait, so a signed-in session may, with no step-up. For an account whose PDS has no account page of its own; the identity PDS cancels through identity.manageMethods `cancel`. A frozen method may cancel too, its own removal included. Nothing else changes.";
|
|
3050
|
+
readonly input: {
|
|
3051
|
+
readonly encoding: "application/json";
|
|
3052
|
+
readonly schema: {
|
|
3053
|
+
readonly type: "object";
|
|
3054
|
+
readonly required: ["id"];
|
|
3055
|
+
readonly properties: {
|
|
3056
|
+
readonly id: {
|
|
3057
|
+
readonly type: "string";
|
|
3058
|
+
readonly maxLength: 64;
|
|
3059
|
+
};
|
|
3060
|
+
};
|
|
3061
|
+
};
|
|
3062
|
+
};
|
|
3063
|
+
readonly output: {
|
|
3064
|
+
readonly encoding: "application/json";
|
|
3065
|
+
readonly schema: {
|
|
3066
|
+
readonly type: "object";
|
|
3067
|
+
readonly required: ["ok"];
|
|
3068
|
+
readonly properties: {
|
|
3069
|
+
readonly ok: {
|
|
3070
|
+
readonly type: "boolean";
|
|
3071
|
+
};
|
|
3072
|
+
};
|
|
3073
|
+
};
|
|
3074
|
+
};
|
|
3075
|
+
readonly errors: [{
|
|
3076
|
+
readonly name: "AuthenticationRequired";
|
|
3077
|
+
readonly description: "No signed-in caller.";
|
|
3078
|
+
}, {
|
|
3079
|
+
readonly name: "NotFound";
|
|
3080
|
+
readonly description: "No such pending change on the caller's account, or it already completed or was cancelled.";
|
|
3014
3081
|
}];
|
|
3015
3082
|
};
|
|
3016
3083
|
};
|
|
@@ -3130,7 +3197,7 @@ export declare const schemaDict: {
|
|
|
3130
3197
|
readonly defs: {
|
|
3131
3198
|
readonly main: {
|
|
3132
3199
|
readonly type: "procedure";
|
|
3133
|
-
readonly description: "Make a link token on the caller's identity PDS: a secret anyone can redeem (redeemLinkToken) once (one-time, the default) or any number of times by different accounts (`reusable`). With `grant`, the platform keeps a write it makes for each account that redeems it: when the identity PDS reports a redemption, the platform writes the redeemer's own pub.techne.draft.identity.linkRedemption record in their personal space and then writes `grant.write` as `grant.actAs` with the redeemer's DID in every \"$subject\" slot, exactly as identity.holdForPhone releases a hold: the caller must be able to write as `actAs` now and when the link is redeemed, a block either way between the redeemer and the caller or `actAs` writes nothing, and the record must be one permissioned.putRecord would take with the caller's DID in the slot. A one-time link's grant goes after its one write; a reusable link's is written once for each redeemer, under its own record key. A release never writes over a record already at its key: one there stays, and that redeemer's write is not made. Only an account hosted on the platform's identity PDS can make links. One call spends one of the caller's writes.";
|
|
3200
|
+
readonly description: "Make a link token on the caller's identity PDS: a secret anyone can redeem (redeemLinkToken) once (one-time, the default) or any number of times by different accounts (`reusable`). With `grant`, the platform keeps a write it makes for each account that redeems it: when the identity PDS reports a redemption, the platform writes the redeemer's own pub.techne.draft.identity.linkRedemption record in their personal space and then writes `grant.write` as `grant.actAs` with the redeemer's DID in every \"$subject\" slot (and their name in every \"$name\" slot), exactly as identity.holdForPhone releases a hold: the caller must be able to write as `actAs` now and when the link is redeemed, a block either way between the redeemer and the caller or `actAs` writes nothing, and the record must be one permissioned.putRecord would take with the caller's DID in the slot. A one-time link's grant goes after its one write; a reusable link's is written once for each redeemer, under its own record key. A release never writes over a record already at its key: one there stays, and that redeemer's write is not made. A pub.techne.draft.contact grant is likewise not made when any active contact of `actAs` already names the redeemer, by its `did` or by a saved number that resolves to them (an archived one does not count), so a grant like {name: \"$name\", did: \"$subject\"} adds each person to the owner's People once. Only an account hosted on the platform's identity PDS can make links. One call spends one of the caller's writes.";
|
|
3134
3201
|
readonly input: {
|
|
3135
3202
|
readonly encoding: "application/json";
|
|
3136
3203
|
readonly schema: {
|
|
@@ -3221,27 +3288,68 @@ export declare const schemaDict: {
|
|
|
3221
3288
|
};
|
|
3222
3289
|
readonly methodView: {
|
|
3223
3290
|
readonly type: "object";
|
|
3224
|
-
readonly description: "One sign-in method
|
|
3291
|
+
readonly description: "One sign-in method of the caller's account, masked.";
|
|
3225
3292
|
readonly required: ["bid", "type", "masked", "boundAt"];
|
|
3226
3293
|
readonly properties: {
|
|
3227
3294
|
readonly bid: {
|
|
3228
3295
|
readonly type: "string";
|
|
3229
3296
|
readonly maxLength: 64;
|
|
3230
|
-
readonly description: "The binding id (the credential's record key). Names the method in unlinkMethod.";
|
|
3297
|
+
readonly description: "The method's id: the binding id (the credential's record key) of an email or phone, else the platform's id for it. Names the method in unlinkMethod and manageMethods.";
|
|
3231
3298
|
};
|
|
3232
3299
|
readonly type: {
|
|
3233
3300
|
readonly type: "string";
|
|
3234
|
-
readonly knownValues: ["email", "phone"];
|
|
3301
|
+
readonly knownValues: ["email", "phone", "passkey", "nostr", "recoveryCodes"];
|
|
3235
3302
|
};
|
|
3236
3303
|
readonly masked: {
|
|
3237
3304
|
readonly type: "string";
|
|
3238
3305
|
readonly maxLength: 320;
|
|
3239
|
-
readonly description: "The channel with most of it hidden, e.g. `j•••@example.com`, `+1 ••• ••• 4567`.";
|
|
3306
|
+
readonly 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)`.";
|
|
3240
3307
|
};
|
|
3241
3308
|
readonly boundAt: {
|
|
3242
3309
|
readonly type: "string";
|
|
3243
3310
|
readonly format: "datetime";
|
|
3244
3311
|
};
|
|
3312
|
+
readonly recovery: {
|
|
3313
|
+
readonly type: "boolean";
|
|
3314
|
+
readonly description: "A recovery method of this account. Private: only the account sees it.";
|
|
3315
|
+
};
|
|
3316
|
+
readonly frozenUntil: {
|
|
3317
|
+
readonly type: "string";
|
|
3318
|
+
readonly format: "datetime";
|
|
3319
|
+
readonly description: "Frozen: it signs in nowhere until then, or until a recovery method lifts it.";
|
|
3320
|
+
};
|
|
3321
|
+
readonly programs: {
|
|
3322
|
+
readonly type: "boolean";
|
|
3323
|
+
readonly description: "\"Programs can sign in with this key\" (identity.manageMethods setPrograms). Present on the types that support it (a Nostr key), off by default. Never on for a recovery method.";
|
|
3324
|
+
};
|
|
3325
|
+
};
|
|
3326
|
+
};
|
|
3327
|
+
readonly pendingChange: {
|
|
3328
|
+
readonly type: "object";
|
|
3329
|
+
readonly description: "A change that waits for its time (a method's removal or the account's deletion, 7 days; the account's first recovery mark, 24 hours). Any of the account's methods, a frozen one too, can cancel it until then; a wait during which one of the account's methods was frozen (and not lifted early by a recovery method) is dropped when it runs out, not completed.";
|
|
3330
|
+
readonly required: ["id", "kind", "createdAt", "dueAt"];
|
|
3331
|
+
readonly properties: {
|
|
3332
|
+
readonly id: {
|
|
3333
|
+
readonly type: "string";
|
|
3334
|
+
readonly maxLength: 64;
|
|
3335
|
+
};
|
|
3336
|
+
readonly kind: {
|
|
3337
|
+
readonly type: "string";
|
|
3338
|
+
readonly knownValues: ["removeMethod", "deleteAccount", "markRecovery"];
|
|
3339
|
+
};
|
|
3340
|
+
readonly method: {
|
|
3341
|
+
readonly type: "string";
|
|
3342
|
+
readonly maxLength: 64;
|
|
3343
|
+
readonly description: "The method it removes or marks.";
|
|
3344
|
+
};
|
|
3345
|
+
readonly createdAt: {
|
|
3346
|
+
readonly type: "string";
|
|
3347
|
+
readonly format: "datetime";
|
|
3348
|
+
};
|
|
3349
|
+
readonly dueAt: {
|
|
3350
|
+
readonly type: "string";
|
|
3351
|
+
readonly format: "datetime";
|
|
3352
|
+
};
|
|
3245
3353
|
};
|
|
3246
3354
|
};
|
|
3247
3355
|
readonly linkView: {
|
|
@@ -3400,6 +3508,18 @@ export declare const schemaDict: {
|
|
|
3400
3508
|
}, {
|
|
3401
3509
|
readonly name: "InvalidCode";
|
|
3402
3510
|
readonly description: "The code is wrong, expired or used up, or the challenge is not the caller's.";
|
|
3511
|
+
}, {
|
|
3512
|
+
readonly name: "RateLimitExceeded";
|
|
3513
|
+
readonly description: "A phone code: the provider that sent it is refusing more checks for this number for now (HTTP 429). Wait a few minutes.";
|
|
3514
|
+
}, {
|
|
3515
|
+
readonly name: "MethodFrozen";
|
|
3516
|
+
readonly description: "The channel was frozen on its account since the code was sent, or it would be new to the caller's account while one of its methods is frozen (HTTP 403).";
|
|
3517
|
+
}, {
|
|
3518
|
+
readonly name: "ProtectedAccount";
|
|
3519
|
+
readonly 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.";
|
|
3520
|
+
}, {
|
|
3521
|
+
readonly name: "UpstreamFailure";
|
|
3522
|
+
readonly description: "A phone code: the provider that sent it could not be asked whether it matches (HTTP 502). The code is not spent; try again.";
|
|
3403
3523
|
}];
|
|
3404
3524
|
};
|
|
3405
3525
|
readonly offer: {
|
|
@@ -3485,6 +3605,9 @@ export declare const schemaDict: {
|
|
|
3485
3605
|
}, {
|
|
3486
3606
|
readonly name: "InvalidToken";
|
|
3487
3607
|
readonly description: "The token is unknown, used, expired, or was issued to another session.";
|
|
3608
|
+
}, {
|
|
3609
|
+
readonly name: "ProtectedAccount";
|
|
3610
|
+
readonly description: "One of the two accounts has a recovery mark, a live freeze, a pending change, or a passkey, Nostr key or recovery codes since the offer (HTTP 409).";
|
|
3488
3611
|
}, {
|
|
3489
3612
|
readonly name: "NotEmpty";
|
|
3490
3613
|
readonly description: "The account to fold gained a record or is 7 days old or more; link instead.";
|
|
@@ -3498,7 +3621,7 @@ export declare const schemaDict: {
|
|
|
3498
3621
|
readonly defs: {
|
|
3499
3622
|
readonly main: {
|
|
3500
3623
|
readonly type: "procedure";
|
|
3501
|
-
readonly description: "Hold a write until someone proves a phone number: when an account proves `phone`, the platform fills every string value exactly \"$subject\" in `write.record` (and \"$subject\" in `write.rkey`) with that account's DID
|
|
3624
|
+
readonly description: "Hold a write until someone proves a phone number: when an account proves `phone`, the platform fills every string value exactly \"$subject\" in `write.record` (and \"$subject\" in `write.rkey`) with that account's DID, every value exactly \"$now\" in the record with the time and every value exactly \"$name\" with that account's name (its public pub.techne.draft.actor.profile displayName, trimmed, at most 64 graphemes, else its handle; a write waits until one is known), and writes the record as `actAs` in `write.space` with what it holds for that account. Only the number's keyed hash is kept; the template may not contain the number. Every hold is answered alike, whether or not the number already has an account: one that has is released the next time it is proved (each phone sign-in proves it), never at once, so nothing here says whether a number has an account or whose it is. The caller must be able to write as `actAs` (its own DID, a collective or circle whose own member space (`space.collective.member/self`) it manages, or a collective it made that has nothing placed yet), now and again when the number is proved; a hold whose caller no longer may, or with a block either way between the new account and the caller or `actAs`, is dropped unwritten, as is one whose record the space does not admit. The record must be one permissioned.putRecord would take with the caller's DID in the slot, and must carry the slot. The nightly sweep deletes a hold 180 days after it was made. Holding again with the same number, `actAs`, `collection`, `space`, `rkey` and record `space` answers the existing hold unchanged (the first template wins; withdraw it with releasePhoneHold and hold again to change it). The template is shown to everyone who may write as `actAs` and read `space` (listPhoneHolds). Identity knows nothing about what the record means. Any signed-in DID; one call spends one of the caller's writes.";
|
|
3502
3625
|
readonly input: {
|
|
3503
3626
|
readonly encoding: "application/json";
|
|
3504
3627
|
readonly schema: {
|
|
@@ -3569,7 +3692,7 @@ export declare const schemaDict: {
|
|
|
3569
3692
|
};
|
|
3570
3693
|
readonly record: {
|
|
3571
3694
|
readonly type: "unknown";
|
|
3572
|
-
readonly description: "The record, with the \"$subject\" (and optionally \"$now\") slots as string values.";
|
|
3695
|
+
readonly description: "The record, with the \"$subject\" (and optionally \"$now\" and \"$name\") slots as string values.";
|
|
3573
3696
|
};
|
|
3574
3697
|
};
|
|
3575
3698
|
};
|
|
@@ -3619,6 +3742,9 @@ export declare const schemaDict: {
|
|
|
3619
3742
|
}, {
|
|
3620
3743
|
readonly name: "InvalidToken";
|
|
3621
3744
|
readonly description: "The token is unknown, used, expired, or was issued to another session.";
|
|
3745
|
+
}, {
|
|
3746
|
+
readonly name: "ProtectedAccount";
|
|
3747
|
+
readonly description: "One of the two accounts has a recovery mark, a live freeze, a pending change, or a passkey, Nostr key or recovery codes since the offer (HTTP 409).";
|
|
3622
3748
|
}, {
|
|
3623
3749
|
readonly name: "InvalidRequest";
|
|
3624
3750
|
readonly description: "`primary` names neither account, or the other account's keys are not held here (sign in to it and link from there).";
|
|
@@ -3867,7 +3993,16 @@ export declare const schemaDict: {
|
|
|
3867
3993
|
readonly defs: {
|
|
3868
3994
|
readonly main: {
|
|
3869
3995
|
readonly type: "query";
|
|
3870
|
-
readonly description: "The caller's sign-in methods (masked) and the account's alias links. Signed-in members only.";
|
|
3996
|
+
readonly description: "The caller's sign-in methods (masked, with their recovery mark and freeze), its pending changes, and the account's alias links. Emails and phones only unless `allTypes` (shipped clients label every row as an email). Signed-in members only.";
|
|
3997
|
+
readonly parameters: {
|
|
3998
|
+
readonly type: "params";
|
|
3999
|
+
readonly properties: {
|
|
4000
|
+
readonly allTypes: {
|
|
4001
|
+
readonly type: "boolean";
|
|
4002
|
+
readonly description: "Also list passkeys, Nostr keys and the recovery-code set.";
|
|
4003
|
+
};
|
|
4004
|
+
};
|
|
4005
|
+
};
|
|
3871
4006
|
readonly output: {
|
|
3872
4007
|
readonly encoding: "application/json";
|
|
3873
4008
|
readonly schema: {
|
|
@@ -3888,6 +4023,14 @@ export declare const schemaDict: {
|
|
|
3888
4023
|
readonly ref: "lex:pub.techne.draft.identity.defs#linkView";
|
|
3889
4024
|
};
|
|
3890
4025
|
};
|
|
4026
|
+
readonly pending: {
|
|
4027
|
+
readonly type: "array";
|
|
4028
|
+
readonly description: "The account's pending changes, soonest first (the account page shows them at the top, with Cancel).";
|
|
4029
|
+
readonly items: {
|
|
4030
|
+
readonly type: "ref";
|
|
4031
|
+
readonly ref: "lex:pub.techne.draft.identity.defs#pendingChange";
|
|
4032
|
+
};
|
|
4033
|
+
};
|
|
3891
4034
|
};
|
|
3892
4035
|
};
|
|
3893
4036
|
};
|
|
@@ -3994,22 +4137,116 @@ export declare const schemaDict: {
|
|
|
3994
4137
|
};
|
|
3995
4138
|
};
|
|
3996
4139
|
};
|
|
3997
|
-
readonly
|
|
4140
|
+
readonly PubTechneDraftIdentityManageMethods: {
|
|
3998
4141
|
readonly lexicon: 1;
|
|
3999
|
-
readonly id: "pub.techne.draft.identity.
|
|
4142
|
+
readonly id: "pub.techne.draft.identity.manageMethods";
|
|
4000
4143
|
readonly defs: {
|
|
4001
4144
|
readonly main: {
|
|
4002
4145
|
readonly type: "procedure";
|
|
4003
|
-
readonly description: "
|
|
4146
|
+
readonly 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.";
|
|
4004
4147
|
readonly input: {
|
|
4005
4148
|
readonly encoding: "application/json";
|
|
4006
4149
|
readonly schema: {
|
|
4007
4150
|
readonly type: "object";
|
|
4008
|
-
readonly required: ["
|
|
4151
|
+
readonly required: ["v", "op"];
|
|
4009
4152
|
readonly properties: {
|
|
4153
|
+
readonly v: {
|
|
4154
|
+
readonly type: "integer";
|
|
4155
|
+
readonly const: 1;
|
|
4156
|
+
};
|
|
4157
|
+
readonly op: {
|
|
4158
|
+
readonly type: "string";
|
|
4159
|
+
readonly knownValues: ["list", "signInMethods", "sendTo", "remove", "cancel", "freeze", "unfreeze", "mark", "unmark", "signOut", "delete", "addExternal", "newRecoveryCodes", "redeemCode", "setPrograms", "importBackupEmails", "findKey", "notices", "noticesSent", "dueDeletes", "dueDeletesDone", "addChannel", "fold", "link", "operator"];
|
|
4160
|
+
};
|
|
4161
|
+
readonly did: {
|
|
4162
|
+
readonly type: "string";
|
|
4163
|
+
readonly format: "did";
|
|
4164
|
+
readonly description: "The signed-in account. Required for every op but `notices`, `noticesSent`, `dueDeletes` and `dueDeletesDone`.";
|
|
4165
|
+
};
|
|
4166
|
+
readonly stepUp: {
|
|
4167
|
+
readonly type: "ref";
|
|
4168
|
+
readonly ref: "lex:pub.techne.draft.identity.manageMethods#stepUp";
|
|
4169
|
+
};
|
|
4170
|
+
readonly method: {
|
|
4171
|
+
readonly type: "string";
|
|
4172
|
+
readonly maxLength: 64;
|
|
4173
|
+
readonly description: "The method acted on (its `id` in `list` or `signInMethods`).";
|
|
4174
|
+
};
|
|
4175
|
+
readonly pending: {
|
|
4176
|
+
readonly type: "string";
|
|
4177
|
+
readonly maxLength: 64;
|
|
4178
|
+
readonly description: "The pending change `cancel` cancels.";
|
|
4179
|
+
};
|
|
4180
|
+
readonly signOut: {
|
|
4181
|
+
readonly type: "boolean";
|
|
4182
|
+
readonly description: "With `freeze`: also sign out everywhere.";
|
|
4183
|
+
};
|
|
4184
|
+
readonly external: {
|
|
4185
|
+
readonly type: "ref";
|
|
4186
|
+
readonly ref: "lex:pub.techne.draft.identity.manageMethods#external";
|
|
4187
|
+
};
|
|
4188
|
+
readonly code: {
|
|
4189
|
+
readonly type: "string";
|
|
4190
|
+
readonly maxLength: 64;
|
|
4191
|
+
readonly description: "A recovery code, for `redeemCode`.";
|
|
4192
|
+
};
|
|
4193
|
+
readonly ids: {
|
|
4194
|
+
readonly type: "array";
|
|
4195
|
+
readonly maxLength: 100;
|
|
4196
|
+
readonly items: {
|
|
4197
|
+
readonly type: "integer";
|
|
4198
|
+
};
|
|
4199
|
+
readonly description: "Notice ids, for `noticesSent`.";
|
|
4200
|
+
};
|
|
4201
|
+
readonly emails: {
|
|
4202
|
+
readonly type: "array";
|
|
4203
|
+
readonly maxLength: 10;
|
|
4204
|
+
readonly items: {
|
|
4205
|
+
readonly type: "string";
|
|
4206
|
+
readonly maxLength: 320;
|
|
4207
|
+
};
|
|
4208
|
+
readonly description: "Retired, not read: a bare list has no verification dates, so the cutoff can't hold. importBackupEmails without `backupEmails` is 400 InvalidRequest.";
|
|
4209
|
+
};
|
|
4210
|
+
readonly backupEmails: {
|
|
4211
|
+
readonly type: "array";
|
|
4212
|
+
readonly maxLength: 10;
|
|
4213
|
+
readonly items: {
|
|
4214
|
+
readonly type: "ref";
|
|
4215
|
+
readonly ref: "lex:pub.techne.draft.identity.manageMethods#backupEmail";
|
|
4216
|
+
};
|
|
4217
|
+
readonly description: "importBackupEmails: the account's verified backup email addresses, all of them, each with when the PDS verified it.";
|
|
4218
|
+
};
|
|
4219
|
+
readonly dids: {
|
|
4220
|
+
readonly type: "array";
|
|
4221
|
+
readonly maxLength: 100;
|
|
4222
|
+
readonly items: {
|
|
4223
|
+
readonly type: "string";
|
|
4224
|
+
readonly format: "did";
|
|
4225
|
+
};
|
|
4226
|
+
readonly description: "dueDeletesDone: the accounts whose PDS account was deleted.";
|
|
4227
|
+
};
|
|
4228
|
+
readonly channel: {
|
|
4229
|
+
readonly type: "ref";
|
|
4230
|
+
readonly ref: "lex:pub.techne.draft.identity.defs#channel";
|
|
4231
|
+
readonly description: "addChannel: the email or phone the PDS just proved (a code it sent and checked).";
|
|
4232
|
+
};
|
|
4010
4233
|
readonly token: {
|
|
4011
4234
|
readonly type: "string";
|
|
4012
|
-
readonly maxLength:
|
|
4235
|
+
readonly maxLength: 128;
|
|
4236
|
+
readonly description: "fold / link: the offer's token from addChannel.";
|
|
4237
|
+
};
|
|
4238
|
+
readonly primary: {
|
|
4239
|
+
readonly type: "string";
|
|
4240
|
+
readonly format: "did";
|
|
4241
|
+
readonly description: "link: which of the two accounts is the primary.";
|
|
4242
|
+
};
|
|
4243
|
+
readonly on: {
|
|
4244
|
+
readonly type: "boolean";
|
|
4245
|
+
readonly description: "setPrograms: on or off.";
|
|
4246
|
+
};
|
|
4247
|
+
readonly program: {
|
|
4248
|
+
readonly type: "boolean";
|
|
4249
|
+
readonly description: "A program made this request: a session or token the PDS's programmatic sign-in opened. Account security is refused (ProgramRefused).";
|
|
4013
4250
|
};
|
|
4014
4251
|
};
|
|
4015
4252
|
};
|
|
@@ -4018,55 +4255,452 @@ export declare const schemaDict: {
|
|
|
4018
4255
|
readonly encoding: "application/json";
|
|
4019
4256
|
readonly schema: {
|
|
4020
4257
|
readonly type: "object";
|
|
4021
|
-
readonly required: ["
|
|
4258
|
+
readonly required: ["v"];
|
|
4022
4259
|
readonly properties: {
|
|
4023
|
-
readonly
|
|
4260
|
+
readonly v: {
|
|
4261
|
+
readonly type: "integer";
|
|
4262
|
+
readonly const: 1;
|
|
4263
|
+
};
|
|
4264
|
+
readonly status: {
|
|
4024
4265
|
readonly type: "string";
|
|
4266
|
+
readonly knownValues: ["done", "pending", "deleted", "deleting", "bound", "invalid", "hasRecovery", "indexOff", "alreadyImported", "added", "alreadyYours", "boundElsewhere", "unavailable", "folded", "linked", "none"];
|
|
4267
|
+
readonly description: "`done`: it happened now. `pending`: it waits (`pending`). `deleted` / `deleting` (`delete` done now): the account is gone / its local half is gone and a sweep finishes the rest (deleteAccount's `deleted` / `pending`; a deletion that could not start answers 503 Unavailable, try again). `bound`: addExternal's key is on another account. `invalid`: redeemCode's code is wrong, used, or the set is not a recovery method or is frozen. `hasRecovery`: importBackupEmails found a recovery method on the account; nothing changed. `indexOff`: importBackupEmails can't mark anything while the identity index is off; nothing changed. `alreadyImported`: importBackupEmails ran for this account before; nothing changed. `added` / `alreadyYours` / `boundElsewhere` / `unavailable`: addChannel, as identity.finishAddMethod. `folded` / `linked`: fold / link done. `none`: findKey's key is no method of an account the calling PDS hosts.";
|
|
4025
4268
|
};
|
|
4026
|
-
readonly
|
|
4269
|
+
readonly pending: {
|
|
4270
|
+
readonly type: "ref";
|
|
4271
|
+
readonly ref: "lex:pub.techne.draft.identity.defs#pendingChange";
|
|
4272
|
+
};
|
|
4273
|
+
readonly method: {
|
|
4027
4274
|
readonly type: "string";
|
|
4275
|
+
readonly 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.";
|
|
4028
4276
|
};
|
|
4029
|
-
readonly
|
|
4277
|
+
readonly codes: {
|
|
4278
|
+
readonly type: "array";
|
|
4279
|
+
readonly items: {
|
|
4280
|
+
readonly type: "string";
|
|
4281
|
+
};
|
|
4282
|
+
readonly description: "newRecoveryCodes: the codes, shown once.";
|
|
4283
|
+
};
|
|
4284
|
+
readonly methods: {
|
|
4285
|
+
readonly type: "array";
|
|
4286
|
+
readonly items: {
|
|
4287
|
+
readonly type: "ref";
|
|
4288
|
+
readonly ref: "lex:pub.techne.draft.identity.defs#methodView";
|
|
4289
|
+
};
|
|
4290
|
+
};
|
|
4291
|
+
readonly hasRecovery: {
|
|
4292
|
+
readonly type: "boolean";
|
|
4293
|
+
};
|
|
4294
|
+
readonly notices: {
|
|
4295
|
+
readonly type: "array";
|
|
4296
|
+
readonly items: {
|
|
4297
|
+
readonly type: "ref";
|
|
4298
|
+
readonly ref: "lex:pub.techne.draft.identity.manageMethods#notice";
|
|
4299
|
+
};
|
|
4300
|
+
};
|
|
4301
|
+
readonly count: {
|
|
4302
|
+
readonly type: "integer";
|
|
4303
|
+
readonly description: "noticesSent / dueDeletesDone: how many were confirmed.";
|
|
4304
|
+
};
|
|
4305
|
+
readonly signInMethods: {
|
|
4306
|
+
readonly type: "array";
|
|
4307
|
+
readonly items: {
|
|
4308
|
+
readonly type: "ref";
|
|
4309
|
+
readonly ref: "lex:pub.techne.draft.identity.manageMethods#signInMethod";
|
|
4310
|
+
};
|
|
4311
|
+
readonly description: "signInMethods: the account's methods that can sign in now (not frozen), oldest first.";
|
|
4312
|
+
};
|
|
4313
|
+
readonly to: {
|
|
4314
|
+
readonly type: "ref";
|
|
4315
|
+
readonly ref: "lex:pub.techne.draft.identity.manageMethods#noticeTo";
|
|
4316
|
+
readonly description: "sendTo: where the code goes, in full.";
|
|
4317
|
+
};
|
|
4318
|
+
readonly imported: {
|
|
4319
|
+
readonly type: "array";
|
|
4320
|
+
readonly items: {
|
|
4321
|
+
readonly type: "ref";
|
|
4322
|
+
readonly ref: "lex:pub.techne.draft.identity.manageMethods#importedEmail";
|
|
4323
|
+
};
|
|
4324
|
+
readonly description: "importBackupEmails: each address sent, with what happened to it.";
|
|
4325
|
+
};
|
|
4326
|
+
readonly dueDeletes: {
|
|
4327
|
+
readonly type: "array";
|
|
4328
|
+
readonly items: {
|
|
4329
|
+
readonly type: "ref";
|
|
4330
|
+
readonly ref: "lex:pub.techne.draft.identity.manageMethods#dueDelete";
|
|
4331
|
+
};
|
|
4332
|
+
readonly description: "dueDeletes: accounts to delete on the PDS, oldest first.";
|
|
4333
|
+
};
|
|
4334
|
+
readonly offer: {
|
|
4335
|
+
readonly type: "ref";
|
|
4336
|
+
readonly ref: "lex:pub.techne.draft.identity.finishAddMethod#offer";
|
|
4337
|
+
readonly description: "addChannel `boundElsewhere`: what `did` can do, with `fold` or `link`.";
|
|
4338
|
+
};
|
|
4339
|
+
readonly did: {
|
|
4030
4340
|
readonly type: "string";
|
|
4341
|
+
readonly format: "did";
|
|
4342
|
+
readonly description: "fold: the kept account. findKey: the account the key signs in to.";
|
|
4031
4343
|
};
|
|
4032
|
-
readonly
|
|
4344
|
+
readonly emptied: {
|
|
4033
4345
|
readonly type: "string";
|
|
4034
4346
|
readonly format: "did";
|
|
4347
|
+
readonly description: "fold: the account folded in and deleted.";
|
|
4035
4348
|
};
|
|
4036
|
-
readonly
|
|
4349
|
+
readonly link: {
|
|
4350
|
+
readonly type: "ref";
|
|
4351
|
+
readonly ref: "lex:pub.techne.draft.identity.defs#linkView";
|
|
4352
|
+
readonly description: "link: the link, from `did`'s side.";
|
|
4353
|
+
};
|
|
4354
|
+
readonly frozen: {
|
|
4037
4355
|
readonly type: "boolean";
|
|
4356
|
+
readonly description: "findKey: the key's method is frozen now and can't sign in.";
|
|
4038
4357
|
};
|
|
4039
|
-
readonly
|
|
4040
|
-
readonly type: "
|
|
4041
|
-
readonly
|
|
4358
|
+
readonly programs: {
|
|
4359
|
+
readonly type: "boolean";
|
|
4360
|
+
readonly description: "findKey: \"Programs can sign in with this key\" is on.";
|
|
4042
4361
|
};
|
|
4043
|
-
readonly
|
|
4362
|
+
readonly operator: {
|
|
4044
4363
|
readonly type: "boolean";
|
|
4364
|
+
readonly description: "operator: whether `did` is one of the platform's operators.";
|
|
4045
4365
|
};
|
|
4046
4366
|
};
|
|
4047
4367
|
};
|
|
4048
4368
|
};
|
|
4049
4369
|
readonly errors: [{
|
|
4370
|
+
readonly name: "BadSignature";
|
|
4371
|
+
}, {
|
|
4050
4372
|
readonly name: "InvalidRequest";
|
|
4051
|
-
readonly description: "HTTP 400: a field out of bounds, or a body that is not JSON; 415: not application/json; 422: not the input's shape.";
|
|
4052
4373
|
}, {
|
|
4053
|
-
readonly name: "
|
|
4054
|
-
readonly description: "HTTP 400: the link is unknown, revoked, expired or already used by another account (\"this link no longer works\").";
|
|
4374
|
+
readonly name: "UnknownAccount";
|
|
4055
4375
|
}, {
|
|
4056
|
-
readonly name: "
|
|
4057
|
-
readonly description: "HTTP 400: the caller made this link.";
|
|
4376
|
+
readonly name: "RateLimitExceeded";
|
|
4058
4377
|
}, {
|
|
4059
|
-
readonly name: "
|
|
4060
|
-
readonly description: "
|
|
4378
|
+
readonly name: "Unavailable";
|
|
4379
|
+
readonly description: "Try again (`redeemCode` and `newRecoveryCodes` also while the platform's identity keys are not loaded).";
|
|
4061
4380
|
}, {
|
|
4062
|
-
readonly name: "
|
|
4063
|
-
readonly description: "
|
|
4381
|
+
readonly name: "NotFound";
|
|
4382
|
+
readonly description: "No such method or pending change on the account.";
|
|
4064
4383
|
}, {
|
|
4065
|
-
readonly name: "
|
|
4066
|
-
readonly description: "
|
|
4067
|
-
}
|
|
4068
|
-
|
|
4069
|
-
|
|
4384
|
+
readonly name: "NotYourMethod";
|
|
4385
|
+
readonly description: "The step-up names a method that is not the account's.";
|
|
4386
|
+
}, {
|
|
4387
|
+
readonly name: "LastMethod";
|
|
4388
|
+
readonly description: "It would leave no way to sign in.";
|
|
4389
|
+
}, {
|
|
4390
|
+
readonly name: "RecoveryProtected";
|
|
4391
|
+
readonly description: "Only a recovery method can do this to a recovery method.";
|
|
4392
|
+
}, {
|
|
4393
|
+
readonly name: "NeedsRecoveryMethod";
|
|
4394
|
+
readonly description: "Needs a fresh step-up of a recovery method.";
|
|
4395
|
+
}, {
|
|
4396
|
+
readonly name: "StepUpRequired";
|
|
4397
|
+
readonly description: "Needs a fresh step-up (an account's first recovery mark, `newRecoveryCodes`, `fold` and `link` included).";
|
|
4398
|
+
}, {
|
|
4399
|
+
readonly name: "SameMethod";
|
|
4400
|
+
readonly description: "A method cannot freeze itself.";
|
|
4401
|
+
}, {
|
|
4402
|
+
readonly name: "MethodFrozen";
|
|
4403
|
+
readonly 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).";
|
|
4404
|
+
}, {
|
|
4405
|
+
readonly name: "InvalidToken";
|
|
4406
|
+
readonly description: "fold / link: the offer is unknown, used, expired, for the other action, or not made to `did` on this hook.";
|
|
4407
|
+
}, {
|
|
4408
|
+
readonly name: "ProtectedAccount";
|
|
4409
|
+
readonly description: "addChannel / fold / link: one of the two accounts has a recovery mark, a live freeze, a pending change, or a passkey, Nostr key or recovery codes; it is never folded or linked (HTTP 409).";
|
|
4410
|
+
}, {
|
|
4411
|
+
readonly name: "NotEmpty";
|
|
4412
|
+
readonly description: "fold: the account to fold gained a record or is 7 days old or more; link instead (HTTP 409).";
|
|
4413
|
+
}, {
|
|
4414
|
+
readonly name: "ProgramRefused";
|
|
4415
|
+
readonly description: "A program asked (`program`, or a step-up by a key with programs on): account security needs a person on a method no program holds.";
|
|
4416
|
+
}, {
|
|
4417
|
+
readonly name: "ProgramsOn";
|
|
4418
|
+
readonly description: "mark: the key has programs on; turn that off first (HTTP 409).";
|
|
4419
|
+
}, {
|
|
4420
|
+
readonly name: "IsRecovery";
|
|
4421
|
+
readonly description: "setPrograms on: the method is a recovery method, or its first mark is waiting (HTTP 409).";
|
|
4422
|
+
}];
|
|
4423
|
+
};
|
|
4424
|
+
readonly stepUp: {
|
|
4425
|
+
readonly type: "object";
|
|
4426
|
+
readonly description: "What the PDS's step-up proved.";
|
|
4427
|
+
readonly required: ["method", "provedAt"];
|
|
4428
|
+
readonly properties: {
|
|
4429
|
+
readonly method: {
|
|
4430
|
+
readonly type: "ref";
|
|
4431
|
+
readonly ref: "lex:pub.techne.draft.identity.manageMethods#provedMethod";
|
|
4432
|
+
};
|
|
4433
|
+
readonly provedAt: {
|
|
4434
|
+
readonly type: "string";
|
|
4435
|
+
readonly format: "datetime";
|
|
4436
|
+
};
|
|
4437
|
+
};
|
|
4438
|
+
};
|
|
4439
|
+
readonly external: {
|
|
4440
|
+
readonly type: "object";
|
|
4441
|
+
readonly required: ["type", "ref"];
|
|
4442
|
+
readonly properties: {
|
|
4443
|
+
readonly type: {
|
|
4444
|
+
readonly type: "string";
|
|
4445
|
+
readonly knownValues: ["passkey", "nostr"];
|
|
4446
|
+
};
|
|
4447
|
+
readonly ref: {
|
|
4448
|
+
readonly type: "string";
|
|
4449
|
+
readonly maxLength: 512;
|
|
4450
|
+
readonly description: "The passkey credential id, or the Nostr key (hex).";
|
|
4451
|
+
};
|
|
4452
|
+
readonly label: {
|
|
4453
|
+
readonly type: "string";
|
|
4454
|
+
readonly maxLength: 128;
|
|
4455
|
+
};
|
|
4456
|
+
};
|
|
4457
|
+
};
|
|
4458
|
+
readonly notice: {
|
|
4459
|
+
readonly type: "object";
|
|
4460
|
+
readonly required: ["id", "did", "event", "to", "createdAt"];
|
|
4461
|
+
readonly properties: {
|
|
4462
|
+
readonly id: {
|
|
4463
|
+
readonly type: "integer";
|
|
4464
|
+
};
|
|
4465
|
+
readonly did: {
|
|
4466
|
+
readonly type: "string";
|
|
4467
|
+
readonly format: "did";
|
|
4468
|
+
};
|
|
4469
|
+
readonly event: {
|
|
4470
|
+
readonly type: "string";
|
|
4471
|
+
readonly knownValues: ["removeMethod", "deleteAccount", "markRecovery", "freeze", "waitDropped", "programsOn"];
|
|
4472
|
+
readonly description: "What the notice is about: a change that started to wait (`removeMethod`, `deleteAccount`, `markRecovery`), a `freeze`, `waitDropped`: the change in `pending` was not completed because one of the account's methods was frozen during its wait, or `programsOn`: programs can now sign in with one of the account's Nostr keys (`setPrograms` on; no `pending`).";
|
|
4473
|
+
};
|
|
4474
|
+
readonly to: {
|
|
4475
|
+
readonly type: "ref";
|
|
4476
|
+
readonly ref: "lex:pub.techne.draft.identity.manageMethods#noticeTo";
|
|
4477
|
+
};
|
|
4478
|
+
readonly pending: {
|
|
4479
|
+
readonly type: "ref";
|
|
4480
|
+
readonly ref: "lex:pub.techne.draft.identity.defs#pendingChange";
|
|
4481
|
+
};
|
|
4482
|
+
readonly createdAt: {
|
|
4483
|
+
readonly type: "string";
|
|
4484
|
+
readonly format: "datetime";
|
|
4485
|
+
};
|
|
4486
|
+
};
|
|
4487
|
+
};
|
|
4488
|
+
readonly provedMethod: {
|
|
4489
|
+
readonly type: "object";
|
|
4490
|
+
readonly required: ["type"];
|
|
4491
|
+
readonly properties: {
|
|
4492
|
+
readonly type: {
|
|
4493
|
+
readonly type: "string";
|
|
4494
|
+
readonly knownValues: ["email", "phone", "passkey", "nostr", "recoveryCodes"];
|
|
4495
|
+
};
|
|
4496
|
+
readonly value: {
|
|
4497
|
+
readonly type: "string";
|
|
4498
|
+
readonly maxLength: 512;
|
|
4499
|
+
readonly description: "The email or E.164 phone, the passkey credential id, or the Nostr key (hex). None for recoveryCodes.";
|
|
4500
|
+
};
|
|
4501
|
+
};
|
|
4502
|
+
};
|
|
4503
|
+
readonly noticeTo: {
|
|
4504
|
+
readonly type: "object";
|
|
4505
|
+
readonly required: ["type", "value"];
|
|
4506
|
+
readonly properties: {
|
|
4507
|
+
readonly type: {
|
|
4508
|
+
readonly type: "string";
|
|
4509
|
+
readonly knownValues: ["email", "phone", "nostr"];
|
|
4510
|
+
};
|
|
4511
|
+
readonly value: {
|
|
4512
|
+
readonly type: "string";
|
|
4513
|
+
};
|
|
4514
|
+
};
|
|
4515
|
+
};
|
|
4516
|
+
readonly signInMethod: {
|
|
4517
|
+
readonly type: "object";
|
|
4518
|
+
readonly description: "One way to sign in, as a page may show it before anyone has signed in: an email as `***a@***e.***m` (the last character of each dot-separated part), a phone as `•••• 97` (its last two digits), a passkey or Nostr key by its label.";
|
|
4519
|
+
readonly required: ["id", "type", "display"];
|
|
4520
|
+
readonly properties: {
|
|
4521
|
+
readonly id: {
|
|
4522
|
+
readonly type: "string";
|
|
4523
|
+
readonly description: "The method id (for `sendTo`, and the PDS's own passkey or Nostr challenge).";
|
|
4524
|
+
};
|
|
4525
|
+
readonly type: {
|
|
4526
|
+
readonly type: "string";
|
|
4527
|
+
readonly knownValues: ["email", "phone", "passkey", "nostr"];
|
|
4528
|
+
};
|
|
4529
|
+
readonly display: {
|
|
4530
|
+
readonly type: "string";
|
|
4531
|
+
};
|
|
4532
|
+
};
|
|
4533
|
+
};
|
|
4534
|
+
readonly importedEmail: {
|
|
4535
|
+
readonly type: "object";
|
|
4536
|
+
readonly required: ["email", "status"];
|
|
4537
|
+
readonly properties: {
|
|
4538
|
+
readonly email: {
|
|
4539
|
+
readonly type: "string";
|
|
4540
|
+
};
|
|
4541
|
+
readonly status: {
|
|
4542
|
+
readonly type: "string";
|
|
4543
|
+
readonly knownValues: ["marked", "boundElsewhere", "released", "invalid", "afterCutoff"];
|
|
4544
|
+
readonly description: "`marked`: an email method of the account now, marked for recovery. `boundElsewhere`: on another account, left there. `released`: the account removed it; only adding it again binds it back. `invalid`: not an email address. `afterCutoff`: verified at or after 2026-11-13T00:00:00Z, not imported (add it and mark it under the rules).";
|
|
4545
|
+
};
|
|
4546
|
+
};
|
|
4547
|
+
readonly description: "One address importBackupEmails was sent, with what happened to it.";
|
|
4548
|
+
};
|
|
4549
|
+
readonly backupEmail: {
|
|
4550
|
+
readonly type: "object";
|
|
4551
|
+
readonly description: "One backup email importBackupEmails moves, with when the PDS verified it.";
|
|
4552
|
+
readonly required: ["email", "verifiedAt"];
|
|
4553
|
+
readonly properties: {
|
|
4554
|
+
readonly email: {
|
|
4555
|
+
readonly type: "string";
|
|
4556
|
+
readonly maxLength: 320;
|
|
4557
|
+
};
|
|
4558
|
+
readonly verifiedAt: {
|
|
4559
|
+
readonly type: "string";
|
|
4560
|
+
readonly format: "datetime";
|
|
4561
|
+
readonly description: "When the PDS verified the address. Only one verified before 2026-11-13T00:00:00Z is imported.";
|
|
4562
|
+
};
|
|
4563
|
+
};
|
|
4564
|
+
};
|
|
4565
|
+
readonly dueDelete: {
|
|
4566
|
+
readonly type: "object";
|
|
4567
|
+
readonly description: "An account whose scheduled deletion ran on the platform: the PDS deletes its PDS account, then confirms (`dueDeletesDone`). An account already gone from the PDS counts as deleted.";
|
|
4568
|
+
readonly required: ["did", "deletedAt"];
|
|
4569
|
+
readonly properties: {
|
|
4570
|
+
readonly did: {
|
|
4571
|
+
readonly type: "string";
|
|
4572
|
+
readonly format: "did";
|
|
4573
|
+
};
|
|
4574
|
+
readonly deletedAt: {
|
|
4575
|
+
readonly type: "string";
|
|
4576
|
+
readonly format: "datetime";
|
|
4577
|
+
readonly description: "When the platform deleted its side.";
|
|
4578
|
+
};
|
|
4579
|
+
};
|
|
4580
|
+
};
|
|
4581
|
+
};
|
|
4582
|
+
};
|
|
4583
|
+
readonly PubTechneDraftIdentityOpenAccountPage: {
|
|
4584
|
+
readonly lexicon: 1;
|
|
4585
|
+
readonly id: "pub.techne.draft.identity.openAccountPage";
|
|
4586
|
+
readonly defs: {
|
|
4587
|
+
readonly main: {
|
|
4588
|
+
readonly type: "procedure";
|
|
4589
|
+
readonly description: "A link that opens the caller's account page on their PDS already signed in, for an app to open in the system browser. The link works once, until `expiresAt` (60 seconds today). It signs in to view the page only: changing a sign-in method or deleting the account there still asks for a code or a passkey. Signed-in members only, from a browser or device session: any other bearer token (an agent token, an app's OAuth token, a program's token) is refused.";
|
|
4590
|
+
readonly output: {
|
|
4591
|
+
readonly encoding: "application/json";
|
|
4592
|
+
readonly schema: {
|
|
4593
|
+
readonly type: "object";
|
|
4594
|
+
readonly required: ["url", "expiresAt"];
|
|
4595
|
+
readonly properties: {
|
|
4596
|
+
readonly url: {
|
|
4597
|
+
readonly type: "string";
|
|
4598
|
+
readonly format: "uri";
|
|
4599
|
+
readonly maxLength: 2048;
|
|
4600
|
+
readonly description: "Open it once, before expiresAt.";
|
|
4601
|
+
};
|
|
4602
|
+
readonly expiresAt: {
|
|
4603
|
+
readonly type: "string";
|
|
4604
|
+
readonly format: "datetime";
|
|
4605
|
+
};
|
|
4606
|
+
};
|
|
4607
|
+
};
|
|
4608
|
+
};
|
|
4609
|
+
readonly errors: [{
|
|
4610
|
+
readonly name: "AuthenticationRequired";
|
|
4611
|
+
readonly description: "No signed-in caller.";
|
|
4612
|
+
}, {
|
|
4613
|
+
readonly name: "NotAuthorized";
|
|
4614
|
+
readonly description: "The caller's bearer token is neither a device session nor an agent token, such as an app's OAuth token (HTTP 403).";
|
|
4615
|
+
}, {
|
|
4616
|
+
readonly name: "ProgramRefused";
|
|
4617
|
+
readonly description: "The caller is an agent token or a program's token: neither opens the account page (HTTP 403).";
|
|
4618
|
+
}, {
|
|
4619
|
+
readonly name: "NotFound";
|
|
4620
|
+
readonly description: "This server has no account page for the caller: its PDS is not ours, or none is set up (HTTP 404). Open the account page without a link.";
|
|
4621
|
+
}, {
|
|
4622
|
+
readonly name: "RateLimitExceeded";
|
|
4623
|
+
readonly description: "Too many links for this account (HTTP 429).";
|
|
4624
|
+
}, {
|
|
4625
|
+
readonly name: "Unavailable";
|
|
4626
|
+
readonly description: "The PDS did not answer (HTTP 502). Open the account page without a link.";
|
|
4627
|
+
}];
|
|
4628
|
+
};
|
|
4629
|
+
};
|
|
4630
|
+
};
|
|
4631
|
+
readonly PubTechneDraftIdentityRedeemLinkToken: {
|
|
4632
|
+
readonly lexicon: 1;
|
|
4633
|
+
readonly id: "pub.techne.draft.identity.redeemLinkToken";
|
|
4634
|
+
readonly defs: {
|
|
4635
|
+
readonly main: {
|
|
4636
|
+
readonly type: "procedure";
|
|
4637
|
+
readonly description: "Redeem a link token as the caller. The identity PDS records it and reports it to the platform, which writes the caller's linkRedemption record and the link's grant, usually before this answers. Redeeming again a link the caller already redeemed answers `repeat` and changes nothing. One call spends one of the caller's writes. An older link (one the served app made before link tokens) writes no linkRedemption record.";
|
|
4638
|
+
readonly input: {
|
|
4639
|
+
readonly encoding: "application/json";
|
|
4640
|
+
readonly schema: {
|
|
4641
|
+
readonly type: "object";
|
|
4642
|
+
readonly required: ["token"];
|
|
4643
|
+
readonly properties: {
|
|
4644
|
+
readonly token: {
|
|
4645
|
+
readonly type: "string";
|
|
4646
|
+
readonly maxLength: 512;
|
|
4647
|
+
};
|
|
4648
|
+
};
|
|
4649
|
+
};
|
|
4650
|
+
};
|
|
4651
|
+
readonly output: {
|
|
4652
|
+
readonly encoding: "application/json";
|
|
4653
|
+
readonly schema: {
|
|
4654
|
+
readonly type: "object";
|
|
4655
|
+
readonly required: ["id", "app", "target", "owner", "reusable", "redeemedAt", "repeat"];
|
|
4656
|
+
readonly properties: {
|
|
4657
|
+
readonly id: {
|
|
4658
|
+
readonly type: "string";
|
|
4659
|
+
};
|
|
4660
|
+
readonly app: {
|
|
4661
|
+
readonly type: "string";
|
|
4662
|
+
};
|
|
4663
|
+
readonly target: {
|
|
4664
|
+
readonly type: "string";
|
|
4665
|
+
};
|
|
4666
|
+
readonly owner: {
|
|
4667
|
+
readonly type: "string";
|
|
4668
|
+
readonly format: "did";
|
|
4669
|
+
};
|
|
4670
|
+
readonly reusable: {
|
|
4671
|
+
readonly type: "boolean";
|
|
4672
|
+
};
|
|
4673
|
+
readonly redeemedAt: {
|
|
4674
|
+
readonly type: "string";
|
|
4675
|
+
readonly format: "datetime";
|
|
4676
|
+
};
|
|
4677
|
+
readonly repeat: {
|
|
4678
|
+
readonly type: "boolean";
|
|
4679
|
+
};
|
|
4680
|
+
};
|
|
4681
|
+
};
|
|
4682
|
+
};
|
|
4683
|
+
readonly errors: [{
|
|
4684
|
+
readonly name: "InvalidRequest";
|
|
4685
|
+
readonly description: "HTTP 400: a field out of bounds, or a body that is not JSON; 415: not application/json; 422: not the input's shape.";
|
|
4686
|
+
}, {
|
|
4687
|
+
readonly name: "LinkNotUsable";
|
|
4688
|
+
readonly description: "HTTP 400: the link is unknown, revoked, expired or already used by another account (\"this link no longer works\").";
|
|
4689
|
+
}, {
|
|
4690
|
+
readonly name: "OwnLink";
|
|
4691
|
+
readonly description: "HTTP 400: the caller made this link.";
|
|
4692
|
+
}, {
|
|
4693
|
+
readonly name: "NotSupported";
|
|
4694
|
+
readonly description: "HTTP 400: link tokens are not available to this caller (its account is not hosted on the platform's identity PDS, or the platform has no identity PDS configured), and the token names none of the served app's older links that still open for it.";
|
|
4695
|
+
}, {
|
|
4696
|
+
readonly name: "RateLimitExceeded";
|
|
4697
|
+
readonly description: "HTTP 429: too many writes, or too many short codes that named no link, from this DID.";
|
|
4698
|
+
}, {
|
|
4699
|
+
readonly name: "UpstreamFailure";
|
|
4700
|
+
readonly description: "HTTP 502: the identity PDS could not be reached, refused the credential the platform holds for the caller, or answered with a failure; try again.";
|
|
4701
|
+
}];
|
|
4702
|
+
};
|
|
4703
|
+
};
|
|
4070
4704
|
};
|
|
4071
4705
|
readonly PubTechneDraftIdentityReleasePhoneHold: {
|
|
4072
4706
|
readonly lexicon: 1;
|
|
@@ -4186,7 +4820,7 @@ export declare const schemaDict: {
|
|
|
4186
4820
|
readonly defs: {
|
|
4187
4821
|
readonly main: {
|
|
4188
4822
|
readonly type: "procedure";
|
|
4189
|
-
readonly description: "A PDS's identity-resolver hook: which account, if any, a verified channel is bound to. Asked after the PDS has verified a one-time code for the channel and before it creates any account. Authenticated only by the `epds-signature` header (HMAC-SHA256 over `<t>\\n req\\n <path>\\n <body>` with the PDS's hook secret); no session, OAuth or service token is accepted. The response carries its own `epds-signature` (direction `res`), and a caller treats an unsigned or badly signed response as a failure. `bound` carries `did` only when the calling PDS hosts that account; otherwise the PDS must not create an account. `unavailable` (the account is deleted or taken down, or the issuer is not endorsed) never leads to creation.";
|
|
4823
|
+
readonly description: "A PDS's identity-resolver hook: which account, if any, a verified channel is bound to. Asked after the PDS has verified a one-time code for the channel and before it creates any account. Authenticated only by the `epds-signature` header (HMAC-SHA256 over `<t>\\n req\\n <path>\\n <body>` with the PDS's hook secret); no session, OAuth or service token is accepted. The response carries its own `epds-signature` (direction `res`), and a caller treats an unsigned or badly signed response as a failure. `bound` carries `did` only when the calling PDS hosts that account; otherwise the PDS must not create an account. `unavailable` (the account is deleted or taken down, or the issuer is not endorsed) never leads to creation. `unbound` with `released` names a phone number its account removed: see `released`.";
|
|
4190
4824
|
readonly input: {
|
|
4191
4825
|
readonly encoding: "application/json";
|
|
4192
4826
|
readonly schema: {
|
|
@@ -4227,6 +4861,30 @@ export declare const schemaDict: {
|
|
|
4227
4861
|
readonly format: "did";
|
|
4228
4862
|
readonly description: "Present only with `bound`, and only when the calling PDS hosts the account.";
|
|
4229
4863
|
};
|
|
4864
|
+
readonly released: {
|
|
4865
|
+
readonly type: "boolean";
|
|
4866
|
+
readonly description: "Present (true) only with `unbound`: the phone number was removed from an account (identity.unlinkMethod) and nobody has bound it since. The PDS must not sign the number in to an account it kept for it before (a placeholder from an earlier sign-in); it starts a new account instead. Email channels never carry it.";
|
|
4867
|
+
};
|
|
4868
|
+
readonly releasedFrom: {
|
|
4869
|
+
readonly type: "string";
|
|
4870
|
+
readonly format: "did";
|
|
4871
|
+
readonly description: "Present only with `released`, and only when the calling PDS hosts the account that removed the number: that account's DID. A PDS that keeps an account per phone number (a placeholder) uses it to tell two placeholders apart: the old account's, which must not sign in with this number again, and the one it started for the number's new holder after the removal, which it finds by this DID and `releaseId` and signs in until the number is bound to it. Binding the number back to this account through identity.attest is refused (`ChannelReleased`).";
|
|
4872
|
+
};
|
|
4873
|
+
readonly frozen: {
|
|
4874
|
+
readonly type: "boolean";
|
|
4875
|
+
readonly description: "Present (true) only with `did`: this method of the account is frozen (identity.manageMethods `freeze`). The PDS refuses the sign-in and creates nothing; the account's other methods still sign in.";
|
|
4876
|
+
};
|
|
4877
|
+
readonly frozenUntil: {
|
|
4878
|
+
readonly type: "string";
|
|
4879
|
+
readonly format: "datetime";
|
|
4880
|
+
readonly description: "Present only with `frozen`: when the freeze ends, unless a recovery method lifts it sooner.";
|
|
4881
|
+
};
|
|
4882
|
+
readonly releaseId: {
|
|
4883
|
+
readonly type: "string";
|
|
4884
|
+
readonly minLength: 1;
|
|
4885
|
+
readonly maxLength: 64;
|
|
4886
|
+
readonly description: "Present only with `releasedFrom`: the platform's id for that removal, fresh each time the number is removed. A PDS keys the number's next holder's account on `releasedFrom` and `releaseId` together, so an account that later removed the number itself is never handed on to the holder after it.";
|
|
4887
|
+
};
|
|
4230
4888
|
};
|
|
4231
4889
|
};
|
|
4232
4890
|
};
|
|
@@ -4340,7 +4998,7 @@ export declare const schemaDict: {
|
|
|
4340
4998
|
readonly defs: {
|
|
4341
4999
|
readonly main: {
|
|
4342
5000
|
readonly type: "procedure";
|
|
4343
|
-
readonly description: "Remove a sign-in method from the caller's account: its credential is revoked (`unlinked`), the channel stops signing in to this account, and its attested pub.techne.draft.contactChannel is deleted. Its next sign-in is treated as new. Refused for the account's last method.";
|
|
5001
|
+
readonly description: "Remove a sign-in method from the caller's account, by the sign-in method rules (identity.manageMethods): this method carries no step-up, so the removal always waits 7 days with notice to every method and any of them can cancel it (`status: pending`, `pending`); a recovery method is not removed this way (`RecoveryProtected`), and the last way to sign in never is. When it completes: its credential is revoked (`unlinked`), the channel stops signing in to this account, and its attested pub.techne.draft.contactChannel is deleted. Its next sign-in is treated as new. A removed phone number is marked released: identity.resolve answers `unbound` with `released` and `releasedFrom` (this account) until someone binds it, so a PDS never signs it in to this account again through a placeholder it kept, and identity.attest refuses binding it back here (`ChannelReleased`); only adding it again (identity.finishAddMethod) does. Refused for the account's last method.";
|
|
4344
5002
|
readonly input: {
|
|
4345
5003
|
readonly encoding: "application/json";
|
|
4346
5004
|
readonly schema: {
|
|
@@ -4363,6 +5021,14 @@ export declare const schemaDict: {
|
|
|
4363
5021
|
readonly ok: {
|
|
4364
5022
|
readonly type: "boolean";
|
|
4365
5023
|
};
|
|
5024
|
+
readonly status: {
|
|
5025
|
+
readonly type: "string";
|
|
5026
|
+
readonly knownValues: ["pending"];
|
|
5027
|
+
};
|
|
5028
|
+
readonly pending: {
|
|
5029
|
+
readonly type: "ref";
|
|
5030
|
+
readonly ref: "lex:pub.techne.draft.identity.defs#pendingChange";
|
|
5031
|
+
};
|
|
4366
5032
|
};
|
|
4367
5033
|
};
|
|
4368
5034
|
};
|
|
@@ -4374,7 +5040,10 @@ export declare const schemaDict: {
|
|
|
4374
5040
|
readonly description: "No such method on the caller's account.";
|
|
4375
5041
|
}, {
|
|
4376
5042
|
readonly name: "LastMethod";
|
|
4377
|
-
readonly description: "It is the account's only sign-in method.";
|
|
5043
|
+
readonly description: "It is the account's only sign-in method (counting those already waiting to be removed).";
|
|
5044
|
+
}, {
|
|
5045
|
+
readonly name: "RecoveryProtected";
|
|
5046
|
+
readonly description: "It is a recovery method; only a recovery method removes it (identity.manageMethods).";
|
|
4378
5047
|
}];
|
|
4379
5048
|
};
|
|
4380
5049
|
};
|
|
@@ -4601,7 +5270,7 @@ export declare const schemaDict: {
|
|
|
4601
5270
|
readonly addedBy: {
|
|
4602
5271
|
readonly type: "string";
|
|
4603
5272
|
readonly format: "did";
|
|
4604
|
-
readonly description: "The member on whose initiative the authority authored this claim. Attribution DATA carried in the claim body
|
|
5273
|
+
readonly description: "The member on whose initiative the authority authored this claim. Attribution DATA carried in the claim body, read by NO policy predicate (the boundedness invariant is untouched: nothing evaluates access from this field). Who sets it: whoever writes the claim with the authority's pen. A writer holding only the write leg of a circle's member space (role 20-29, who may write adds and their own claim, nothing else) must name themselves or nobody on an add, and a re-put of their own claim keeps the stored value. A writer holding manage may put any DID here (the platform checks only that it is a DID); `proposeInvite` (`xrpc/invite.rs`) stamps the caller who passed `manage` and carries it forward from the pending claim at bind. A circle founder's own claim names themself (\"Started by\"); a collective made with identity.createCollective writes its founder's claim without addedBy. Meant for in-space (permissioned) rosters only; a firehose membership claim's `addedBy` would publish \"who recruited whom\" as a new world-readable social edge with no surface asking anyone's consent for that, so no PUBLIC-collective writer stamps it. CAVEAT: deriving meaning from this field's ABSENCE would be fragile (any legacy or imported claim satisfies \"absent addedBy\" without having founded anything), so a reader must not lean on absence; the intended fix, the day one is needed, is a positive `founder` marker.";
|
|
4605
5274
|
};
|
|
4606
5275
|
readonly createdAt: {
|
|
4607
5276
|
readonly type: "string";
|
|
@@ -4861,11 +5530,11 @@ export declare const schemaDict: {
|
|
|
4861
5530
|
readonly PubTechneDraftPermissionedDeleteRecord: {
|
|
4862
5531
|
readonly lexicon: 1;
|
|
4863
5532
|
readonly id: "pub.techne.draft.permissioned.deleteRecord";
|
|
4864
|
-
readonly description: "Delete a record from the caller's own repo (a takedown, a mistake, or a `share` the owner withdraws, which stops that reader's future reads, with a 'revoke-read' receipt once no share in its source space names it). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not), or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden; a caller whose account is being deleted, or is deleted, is refused (AccountDeleting). The body is removed; a tombstone receipt stays in listChanges, in the space the record counted in, so readers drop their copies. Deleting a record that does not exist is a no-op unless swapCid is given (then it is InvalidSwap). A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 2 MiB (2,097,152 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused write still spends one of the caller's writes (RateLimitExceeded). When the call's token carries space scopes from Techne's ePDS, the delete must name its `space`, and one the scopes do not cover is refused 403 Forbidden. Draft tier.";
|
|
5533
|
+
readonly description: "Delete a record from the caller's own repo (a takedown, a mistake, or a `share` the owner withdraws, which stops that reader's future reads, with a 'revoke-read' receipt once no share in its source space names it). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden; a caller whose account is being deleted, or is deleted, is refused (AccountDeleting). The body is removed; a tombstone receipt stays in listChanges, in the space the record counted in, so readers drop their copies. Deleting a record that does not exist is a no-op unless swapCid is given (then it is InvalidSwap) or the delete names an app's space the caller may not delete in (then it is Forbidden). A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 2 MiB (2,097,152 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused write still spends one of the caller's writes (RateLimitExceeded). When the call's token carries space scopes from Techne's ePDS, the delete must name its `space`, and one the scopes do not cover is refused 403 Forbidden. A record written for an app's space (a pub.techne.draft.space.private space) is deleted only by the app its key names or a caller whose `space:` scopes cover a delete there; any other caller is refused 403 Forbidden and nothing is deleted, the record's own writer included when the record counted in no space, and even when nothing is at the key. That includes a session or agent token that names no app or another app (an agent token without `space:` scopes, a session cookie or device session minted for another app), so such a record is changed only by its app or under a grant covering it. Draft tier.";
|
|
4865
5534
|
readonly defs: {
|
|
4866
5535
|
readonly main: {
|
|
4867
5536
|
readonly type: "procedure";
|
|
4868
|
-
readonly description: "Delete one of your own permissioned records (or a collective's or circle's whose own member space you manage). One key holds one record per space: `space` names which goes; without it, the key's one record, Conflict when there are several. A tombstone stays in listChanges so readers drop their copies. Deleting a missing record is a no-op unless swapCid is given (InvalidSwap). When the call's token carries space scopes from Techne's ePDS, the delete must name its `space`, and one the scopes do not cover is refused 403 Forbidden. Draft tier.";
|
|
5537
|
+
readonly description: "Delete one of your own permissioned records (or a collective's or circle's whose own member space you manage). One key holds one record per space: `space` names which goes; without it, the key's one record, Conflict when there are several. A tombstone stays in listChanges so readers drop their copies. Deleting a missing record is a no-op unless swapCid is given (InvalidSwap), or it names an app's space the caller may not delete in (Forbidden). When the call's token carries space scopes from Techne's ePDS, the delete must name its `space`, and one the scopes do not cover is refused 403 Forbidden. A record written for an app's space is deleted only by the app its key names or under `space:` scopes covering it: anyone else, its writer included, is 403 Forbidden. Draft tier.";
|
|
4869
5538
|
readonly input: {
|
|
4870
5539
|
readonly encoding: "application/json";
|
|
4871
5540
|
readonly schema: {
|
|
@@ -4917,7 +5586,10 @@ export declare const schemaDict: {
|
|
|
4917
5586
|
readonly description: "HTTP 400. Malformed parameters. Also HTTP 413, 415, 400 or 422 for a request body that is not the method's input (see the description).";
|
|
4918
5587
|
}, {
|
|
4919
5588
|
readonly name: "Forbidden";
|
|
4920
|
-
readonly description: "HTTP 403. repo is not the caller's own.";
|
|
5589
|
+
readonly description: "HTTP 403. repo is not the caller's own (or a collective's or circle's the caller may write as, see the description); or the call's `space:` scopes do not cover the delete; or the record was written for an app's space (pub.techne.draft.space.private) and the caller is neither the app its key names nor holds `space:` scopes covering a delete there. Nothing is deleted.";
|
|
5590
|
+
}, {
|
|
5591
|
+
readonly name: "LastManager";
|
|
5592
|
+
readonly description: "HTTP 409. The write, as a circle, would leave it with members and nobody at role >= 30. Make someone else manager first. Nothing is written.";
|
|
4921
5593
|
}, {
|
|
4922
5594
|
readonly name: "AccountDeleting";
|
|
4923
5595
|
readonly description: "HTTP 403. The caller's account is being deleted, or is deleted. Nothing is written.";
|
|
@@ -5269,11 +5941,11 @@ export declare const schemaDict: {
|
|
|
5269
5941
|
readonly PubTechneDraftPermissionedPutRecord: {
|
|
5270
5942
|
readonly lexicon: 1;
|
|
5271
5943
|
readonly id: "pub.techne.draft.permissioned.putRecord";
|
|
5272
|
-
readonly description: "Write a record into the caller's own repo, as a permissioned record (the generic private write). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not), or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden: a record is only ever written into its writer's repo. There is no write gate and no collection check: any collection may be written, for any space
|
|
5944
|
+
readonly description: "Write a record into the caller's own repo, as a permissioned record (the generic private write). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden: a record is only ever written into its writer's repo. There is no write gate on a first write and no collection check: any collection may be written, for any space, and a first write is never refused for its space. Replacing a record already written for an app's space (a pub.techne.draft.space.private space) is: only the app its key names, or a caller whose `space:` scopes cover a put there, may replace it; any other caller is refused 403 Forbidden and nothing is written, the record's own writer included when the record counted in no space. That includes a session or agent token that names no app or another app (an agent token without `space:` scopes, a session cookie or device session minted for another app), so such a record is changed only by its app or under a grant covering it. One collection is refused there: one of the platform's own record types named for an app's space (pub.techne.draft.space.private) is refused as InvalidRequest, since our own types keep their declared homes (the adopted community.lexicon.calendar.event and .rsvp are not refused there: they are the app's own data, and an RSVP there projects no claim). Otherwise what it counts for is the managing app's admission of the version as it is written: the record counts in the `space` it names only when that space's write policy admits the writer and, for a collection with a published lexicon, the space type declares the collection; it is then read by whoever the space's read policy admits. A record for a pub.techne.draft.space.private space counts there only when written by the app its key names (the managing app) or by a caller whose `space:` scopes cover that space; written by anyone else it is stored and counts in no space (the output has no `space`). Otherwise it is stored in the writer's repo, counts in no space, and only its writer reads it; write it again to ask again (for an app's space only the callers that may replace a record there can). A write into a space whose authority's account is being deleted, or is deleted, is stored the same way and counts in no space (the space goes with that account). A caller whose own account is being deleted, or is deleted, is refused (AccountDeleting). The output's `space` says where it counts. A source keeps what it does not publish in its own pub.techne.draft.space.source (at://{source}/pub.techne.draft.space.source/self): its permissioned descriptions, the `share`s naming its readers (writing one admits its subject, who gets a 'granted' receipt; deleting the last one naming a reader gives a 'revoke-read'. A share keeps one space per key, so it is never moved out of the space: writing it for another space is refused as Conflict), and a scraper's raw payloads and crawl state. A body in a collection with a published lexicon must satisfy it (InvalidRequest otherwise); any other collection is stored as written. Writing the current version again for the same space records no new version: if it counts there it is a no-op; if it was not admitted, admission is asked again, and a version admitted now is placed in the space with a receipt. In an app's space this holds only for the callers that may replace a record there; anyone else's write of the same version is refused Forbidden. A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 2 MiB (2,097,152 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused write still spends one of the caller's writes (RateLimitExceeded). When the call's token carries space scopes from Techne's ePDS, a write to a space they do not cover is refused 403 Forbidden. `space` is required: a write that names no space is refused as InvalidRequest (HTTP 400; for putRecords the whole call, and nothing is written), since public records are written with com.atproto.repo.putRecord and a record only the caller reads goes in its own pub.techne.draft.space.personal. Records written before this rule with no space stay stored and readable by their writer. Draft tier.";
|
|
5273
5945
|
readonly defs: {
|
|
5274
5946
|
readonly main: {
|
|
5275
5947
|
readonly type: "procedure";
|
|
5276
|
-
readonly description: "Write one record into your own repo (or a collective's or circle's whose own member space you manage) as a permissioned record, for the `space` it names (required: no space is InvalidRequest; public records go through com.atproto.repo.putRecord, and a record only you read goes in your space.personal). Any collection; a body of a collection with a published lexicon must satisfy it. It counts in that space only when the space's write policy admits you (and, for one of our own types, the space type declares the collection); otherwise it is stored and only you read it. A write is never refused for its space. A pub.techne.draft.space.private record counts there only when written by the app its key names; else it counts in no space. The output's `space` says where it counts. Writing the current version again is a no-op. One write of your rate (RateLimitExceeded). A token with space scopes from Techne's ePDS: a write to a space they do not cover is 403 Forbidden. Draft tier.";
|
|
5948
|
+
readonly description: "Write one record into your own repo (or a collective's or circle's whose own member space you manage; a circle member holding only its write leg writes membership adds and their own claim) as a permissioned record, for the `space` it names (required: no space is InvalidRequest; public records go through com.atproto.repo.putRecord, and a record only you read goes in your space.personal). Any collection; a body of a collection with a published lexicon must satisfy it. It counts in that space only when the space's write policy admits you (and, for one of our own types, the space type declares the collection); otherwise it is stored and only you read it. A first write is never refused for its space. A pub.techne.draft.space.private record counts there only when written by the app its key names (or under `space:` scopes covering it); else it counts in no space. Replacing a record already written there needs that app or those scopes: anyone else, its writer included, is 403 Forbidden. The output's `space` says where it counts. Writing the current version again is a no-op (in an app's space, only for that app or under covering scopes; else Forbidden). One write of your rate (RateLimitExceeded). A token with space scopes from Techne's ePDS: a write to a space they do not cover is 403 Forbidden. Draft tier.";
|
|
5277
5949
|
readonly input: {
|
|
5278
5950
|
readonly encoding: "application/json";
|
|
5279
5951
|
readonly schema: {
|
|
@@ -5353,7 +6025,10 @@ export declare const schemaDict: {
|
|
|
5353
6025
|
readonly description: "HTTP 400. Malformed input (no `space`: name one, since public records go through com.atproto.repo.putRecord; a bad DID, NSID, record key or space address, a record whose $type is not collection, or one with no DAG-CBOR form), or a body that fails its collection's published lexicon. Also HTTP 413, 415, 400 or 422 for a request body that is not the method's input (see the description).";
|
|
5354
6026
|
}, {
|
|
5355
6027
|
readonly name: "Forbidden";
|
|
5356
|
-
readonly description: "HTTP 403. repo is not the caller's own.";
|
|
6028
|
+
readonly description: "HTTP 403. repo is not the caller's own (or a collective's or circle's the caller may write as, see the description); or the call's `space:` scopes do not cover the write; or the write replaces a record already written for an app's space (pub.techne.draft.space.private) and the caller is neither the app its key names nor holds `space:` scopes covering a put there. A first write is never refused for its space. Nothing is written.";
|
|
6029
|
+
}, {
|
|
6030
|
+
readonly name: "LastManager";
|
|
6031
|
+
readonly description: "HTTP 409. The write, as a circle, would leave it with members and nobody at role >= 30. Make someone else manager first. Nothing is written.";
|
|
5357
6032
|
}, {
|
|
5358
6033
|
readonly name: "AccountDeleting";
|
|
5359
6034
|
readonly description: "HTTP 403. The caller's account is being deleted, or is deleted. Nothing is written.";
|
|
@@ -5382,11 +6057,11 @@ export declare const schemaDict: {
|
|
|
5382
6057
|
readonly PubTechneDraftPermissionedPutRecords: {
|
|
5383
6058
|
readonly lexicon: 1;
|
|
5384
6059
|
readonly id: "pub.techne.draft.permissioned.putRecords";
|
|
5385
|
-
readonly description: "Write up to 200 records into the caller's own repo in one call: each write is applied in order, exactly as putRecord applies it (the same admission, receipts, no-op re-put and swapCid), each in its own transaction. NOT atomic: a write that is refused does not undo the writes before it or stop the ones after it, and each write's result says what happened to it. That is why this is not called applyWrites: atproto's com.atproto.repo.applyWrites commits all of its writes or none, and this does not (each write keeps putRecord's own per-record locking, so a batch never holds more than one record's locks). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not), or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden and nothing is written. A write refused for itself (a malformed or invalid record, a swapCid that does not match, a conflict) is reported in its result as the error putRecord would have answered, and the next write is applied. A refusal that holds for the whole call stops it with that error, and no later write is applied: the caller's account is being deleted, or is deleted (AccountDeleting; what it wrote goes with the account), or a failure inside the AppView (HTTP 500; the writes applied before it stay written, so read them back or send the batch again: writing the current version again for the same space is a no-op). Callers should treat a failed batch as all-or-nothing and send it again whole: re-putting the records that landed is a no-op, and at the move to atproto's permissioned data this method becomes the owner's own PDS com.atproto.repo.applyWrites, which is atomic. One call spends one of the caller's writes (RateLimitExceeded), whatever the number of writes it carries. A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 8 MiB (8,388,608 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON or carries no writes or more than 200; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused call still spends one of the caller's writes. Each write is checked against the token's space scopes as putRecord checks it. `space` is required: a write that names no space is refused as InvalidRequest (HTTP 400; for putRecords the whole call, and nothing is written), since public records are written with com.atproto.repo.putRecord and a record only the caller reads goes in its own pub.techne.draft.space.personal. Records written before this rule with no space stay stored and readable by their writer. Draft tier.";
|
|
6060
|
+
readonly description: "Write up to 200 records into the caller's own repo in one call: each write is applied in order, exactly as putRecord applies it (the same admission, receipts, no-op re-put and swapCid), each in its own transaction. NOT atomic: a write that is refused does not undo the writes before it or stop the ones after it, and each write's result says what happened to it. That is why this is not called applyWrites: atproto's com.atproto.repo.applyWrites commits all of its writes or none, and this does not (each write keeps putRecord's own per-record locking, so a batch never holds more than one record's locks). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden and nothing is written. A write refused for itself (a malformed or invalid record, a swapCid that does not match, a conflict) is reported in its result as the error putRecord would have answered, and the next write is applied, except in a roster batch: one with any pub.techne.draft.membership write, in whatever repo. A roster batch of more than one write is first checked whole, and a write in it that putRecord would refuse before reading anything (malformed, over 2 MiB, failing its lexicon, or naming a space it cannot be written into) refuses the call as InvalidRequest (HTTP 400) with nothing written; it then stops at its first refused write, and every write after that one is reported as Conflict and not written. Since any prefix of a roster batch may be what is left written, a batch written as a circle that has a manager must keep one after every prefix of its membership writes (see LastManager), not only after the whole batch: to make someone else manager, put their membership at role 30 or above before the caller's own lower one. A refusal that holds for the whole call stops it with that error, and no later write is applied: the caller's account is being deleted, or is deleted (AccountDeleting; what it wrote goes with the account), or a failure inside the AppView (HTTP 500; the writes applied before it stay written, so read them back or send the batch again: writing the current version again for the same space is a no-op). Callers should treat a failed batch as all-or-nothing and send it again whole: re-putting the records that landed is a no-op (in an app's space only for its app or under `space:` scopes covering it; anyone else's re-put there is Forbidden), and at the move to atproto's permissioned data this method becomes the owner's own PDS com.atproto.repo.applyWrites, which is atomic. One call spends one of the caller's writes (RateLimitExceeded), whatever the number of writes it carries. A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 8 MiB (8,388,608 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON or carries no writes or more than 200; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused call still spends one of the caller's writes. Each write is checked against the token's space scopes as putRecord checks it, and a write that replaces a record already written for an app's space (a pub.techne.draft.space.private space) by a caller that is neither the app its key names nor holds `space:` scopes covering a put there is refused as putRecord refuses it; either refusal is that write's result (Forbidden), and the next write is applied (in a roster batch, the writes after it are Conflict, not written). A first write is never refused for its space. `space` is required: a write that names no space is refused as InvalidRequest (HTTP 400; for putRecords the whole call, and nothing is written), since public records are written with com.atproto.repo.putRecord and a record only the caller reads goes in its own pub.techne.draft.space.personal. Records written before this rule with no space stay stored and readable by their writer. Draft tier.";
|
|
5386
6061
|
readonly defs: {
|
|
5387
6062
|
readonly main: {
|
|
5388
6063
|
readonly type: "procedure";
|
|
5389
|
-
readonly description: "Up to 200 putRecord writes, applied in order, each in its own transaction, for one write of your rate. Not atomic: each write's result says what happened to it, and a write refused for itself does not stop the others (AccountDeleting or an HTTP 500 stops the rest). Send a failed batch again whole: re-putting what landed is a no-op. Space scopes and space.private apply to each write as in putRecord. Every write names its `space` (a write with none refuses the whole call, InvalidRequest; public records go through com.atproto.repo.putRecord). Draft tier.";
|
|
6064
|
+
readonly description: "Up to 200 putRecord writes, applied in order, each in its own transaction, for one write of your rate. Not atomic: each write's result says what happened to it, and a write refused for itself does not stop the others (AccountDeleting or an HTTP 500 stops the rest), except in a roster batch (one with any pub.techne.draft.membership write), which stops at its first refused write and reports each later one as Conflict, not written; as a circle, every prefix of its membership writes must keep the circle a manager. Send a failed batch again whole: re-putting what landed is a no-op (in an app's space, only for its app or under covering scopes). Space scopes and space.private apply to each write as in putRecord: a first write is never refused for its space, but replacing a record already written for an app's space needs the app its key names or `space:` scopes covering it, and that write's result is Forbidden. Every write names its `space` (a write with none refuses the whole call, InvalidRequest; public records go through com.atproto.repo.putRecord). Draft tier.";
|
|
5390
6065
|
readonly input: {
|
|
5391
6066
|
readonly encoding: "application/json";
|
|
5392
6067
|
readonly schema: {
|
|
@@ -5434,7 +6109,10 @@ export declare const schemaDict: {
|
|
|
5434
6109
|
readonly description: "HTTP 400. Malformed input (a bad repo DID, no writes or more than 200, or a write with no `space`: name one, since public records go through com.atproto.repo.putRecord; nothing is written). Also HTTP 413, 415, 400 or 422 for a request body that is not the method's input (see the description). A write that is malformed on its own is reported in its result instead.";
|
|
5435
6110
|
}, {
|
|
5436
6111
|
readonly name: "Forbidden";
|
|
5437
|
-
readonly description: "HTTP 403. repo is not the caller's own. Nothing is written.";
|
|
6112
|
+
readonly description: "HTTP 403. repo is not the caller's own (or a collective's or circle's the caller may write as, see the description). Nothing is written.";
|
|
6113
|
+
}, {
|
|
6114
|
+
readonly name: "LastManager";
|
|
6115
|
+
readonly description: "HTTP 409. The write, as a circle, would leave it with members and nobody at role >= 30, after the whole batch or after any prefix of its membership writes (a roster batch stops at its first refused write, so any prefix may be what is left written). Make someone else manager first. Nothing is written.";
|
|
5438
6116
|
}, {
|
|
5439
6117
|
readonly name: "AccountDeleting";
|
|
5440
6118
|
readonly description: "HTTP 403. The caller's account is being deleted, or is deleted. Nothing more is written; writes applied before the deletion began go with the account.";
|
|
@@ -5517,8 +6195,8 @@ export declare const schemaDict: {
|
|
|
5517
6195
|
readonly properties: {
|
|
5518
6196
|
readonly error: {
|
|
5519
6197
|
readonly type: "string";
|
|
5520
|
-
readonly 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)
|
|
5521
|
-
readonly knownValues: ["InvalidRequest", "InvalidSwap", "Conflict", "IdentityConflict", "DuplicatePhone"];
|
|
6198
|
+
readonly description: "InvalidRequest (malformed, a body that fails its collection's published lexicon, or a record over 2 MiB, more than a putRecord body may be), InvalidSwap (swapCid did not match the current version), Conflict (the same key holds a public record in the caller's repo, or a concurrent write replaced this version before it was recorded), IdentityConflict (the write would change a contact's identity, which writing again never fixes; see putRecord), DuplicatePhone (a contact write introduces a number another of the caller's active contacts carries; see putRecord), RateLimitExceeded (a contact write that binds a number to an account found the caller's phone lookups spent; retry it in a minute) or Forbidden (the call's `space:` scopes do not cover the write, or it replaces a record already written for an app's space and the caller is neither the app its key names nor holds `space:` scopes covering it; see putRecord).";
|
|
6199
|
+
readonly knownValues: ["InvalidRequest", "InvalidSwap", "Conflict", "IdentityConflict", "DuplicatePhone", "RateLimitExceeded", "Forbidden"];
|
|
5522
6200
|
};
|
|
5523
6201
|
readonly message: {
|
|
5524
6202
|
readonly type: "string";
|
|
@@ -7188,7 +7866,7 @@ export declare const schemaDict: {
|
|
|
7188
7866
|
readonly defs: {
|
|
7189
7867
|
readonly main: {
|
|
7190
7868
|
readonly type: "procedure";
|
|
7191
|
-
readonly description: "Operator only. Stop indexing one author's records of a community or requested type, and remove the ones this platform indexed. The block outlives the author's account here, so neither the firehose nor a backfill brings the records back. Other authors' records of the type are untouched. The records stay in the author's repo; this platform stops serving them.";
|
|
7869
|
+
readonly description: "Operator only, with the moderate scope. Stop indexing one author's records of a community or requested type, and remove the ones this platform indexed. The block outlives the author's account here, so neither the firehose nor a backfill brings the records back. Other authors' records of the type are untouched. The records stay in the author's repo; this platform stops serving them.";
|
|
7192
7870
|
readonly input: {
|
|
7193
7871
|
readonly encoding: "application/json";
|
|
7194
7872
|
readonly schema: {
|
|
@@ -7245,11 +7923,17 @@ export declare const schemaDict: {
|
|
|
7245
7923
|
readonly name: "AuthenticationRequired";
|
|
7246
7924
|
readonly description: "Blocking is a signed-in act.";
|
|
7247
7925
|
}, {
|
|
7248
|
-
readonly name: "
|
|
7249
|
-
readonly description: "The caller is not an operator of this platform.";
|
|
7926
|
+
readonly name: "NotAuthorized";
|
|
7927
|
+
readonly description: "The caller is not an operator of this platform, or the call does not carry the moderate scope (HTTP 403).";
|
|
7928
|
+
}, {
|
|
7929
|
+
readonly name: "ProgramRefused";
|
|
7930
|
+
readonly description: "The caller is a program's token: a program never reaches an operator method (HTTP 403).";
|
|
7250
7931
|
}, {
|
|
7251
7932
|
readonly name: "UnknownType";
|
|
7252
7933
|
readonly description: "`nsid` names no community or requested type (our own types are not limited).";
|
|
7934
|
+
}, {
|
|
7935
|
+
readonly name: "InvalidRequest";
|
|
7936
|
+
readonly description: "`reason` is blank or over 1000 characters, or `author` is not a DID (HTTP 400).";
|
|
7253
7937
|
}];
|
|
7254
7938
|
};
|
|
7255
7939
|
};
|
|
@@ -7838,7 +8522,7 @@ export declare const schemaDict: {
|
|
|
7838
8522
|
readonly defs: {
|
|
7839
8523
|
readonly main: {
|
|
7840
8524
|
readonly type: "procedure";
|
|
7841
|
-
readonly description: "Operator only. Stop indexing a community or requested type and remove every record of it this platform indexed. The type is marked blocked (it is no longer loaded, searched or listed, except in listTypes filtered to its creator (`creator`) and in getType, which still answer it as blocked) and put on the block list, so neither the firehose nor a backfill brings its records back. The records stay in their authors' repos; this platform stops serving them. Our own platform types cannot be purged.";
|
|
8525
|
+
readonly description: "Operator only, with the moderate scope. Stop indexing a community or requested type and remove every record of it this platform indexed. The type is marked blocked (it is no longer loaded, searched or listed, except in listTypes filtered to its creator (`creator`) and in getType, which still answer it as blocked) and put on the block list, so neither the firehose nor a backfill brings its records back. The records stay in their authors' repos; this platform stops serving them. Our own platform types cannot be purged.";
|
|
7842
8526
|
readonly input: {
|
|
7843
8527
|
readonly encoding: "application/json";
|
|
7844
8528
|
readonly schema: {
|
|
@@ -7886,11 +8570,17 @@ export declare const schemaDict: {
|
|
|
7886
8570
|
readonly name: "AuthenticationRequired";
|
|
7887
8571
|
readonly description: "Purging is a signed-in act.";
|
|
7888
8572
|
}, {
|
|
7889
|
-
readonly name: "
|
|
7890
|
-
readonly description: "The caller is not an operator of this platform.";
|
|
8573
|
+
readonly name: "NotAuthorized";
|
|
8574
|
+
readonly description: "The caller is not an operator of this platform, or the call does not carry the moderate scope (HTTP 403).";
|
|
8575
|
+
}, {
|
|
8576
|
+
readonly name: "ProgramRefused";
|
|
8577
|
+
readonly description: "The caller is a program's token: a program never reaches an operator method (HTTP 403).";
|
|
7891
8578
|
}, {
|
|
7892
8579
|
readonly name: "UnknownType";
|
|
7893
8580
|
readonly description: "`nsid` names no community or requested type (our own types cannot be purged).";
|
|
8581
|
+
}, {
|
|
8582
|
+
readonly name: "InvalidRequest";
|
|
8583
|
+
readonly description: "`reason` is blank or over 1000 characters (HTTP 400).";
|
|
7894
8584
|
}];
|
|
7895
8585
|
};
|
|
7896
8586
|
};
|
|
@@ -8032,7 +8722,7 @@ export declare const schemaDict: {
|
|
|
8032
8722
|
readonly PubTechneDraftRsvpNote: {
|
|
8033
8723
|
readonly lexicon: 1;
|
|
8034
8724
|
readonly id: "pub.techne.draft.rsvpNote";
|
|
8035
|
-
readonly description: "A short note a person writes with their response to a beacon (\"running 15 late\"). Authored by the responder, rkey = the rkey of the responder's own community.lexicon.calendar.rsvp, so there is at most one note per response and an edit is a re-put. Placed
|
|
8725
|
+
readonly description: "A short note a person writes with their response to a beacon (\"running 15 late\"). Authored by the responder, rkey = the rkey of the responder's own community.lexicon.calendar.rsvp, so there is at most one note per response and an edit is a re-put. Placed beside the RSVP it annotates, so it has exactly the RSVP's audience: in the beacon's pub.techne.draft.space.beacon for a going or interested answer, or in the responder's own pub.techne.draft.space.beaconDecline for a #notgoing one; when the answer changes it moves with the RSVP into the beaconDecline space, and is deleted when the answer leaves that space (never re-published to the beacon's audience). A separate record rather than a field on the community RSVP, which we adopt and never extend.";
|
|
8036
8726
|
readonly defs: {
|
|
8037
8727
|
readonly main: {
|
|
8038
8728
|
readonly type: "record";
|
|
@@ -8440,6 +9130,12 @@ export declare const schemaDict: {
|
|
|
8440
9130
|
readonly maxGraphemes: 100;
|
|
8441
9131
|
readonly description: "The line, as plain text.";
|
|
8442
9132
|
};
|
|
9133
|
+
readonly emoji: {
|
|
9134
|
+
readonly type: "string";
|
|
9135
|
+
readonly maxGraphemes: 1;
|
|
9136
|
+
readonly maxLength: 64;
|
|
9137
|
+
readonly description: "Optional: one emoji for the record (a card mark and map pin glyph). A single emoji, no flags; readers fall back to their own when absent.";
|
|
9138
|
+
};
|
|
8443
9139
|
readonly createdAt: {
|
|
8444
9140
|
readonly type: "string";
|
|
8445
9141
|
readonly format: "datetime";
|
|
@@ -11268,6 +11964,16 @@ export declare const schemas: ({
|
|
|
11268
11964
|
readonly maxLength: 64;
|
|
11269
11965
|
readonly description: "Optional: one emoji the lighter picked for this beacon (its card mark and map pin glyph).";
|
|
11270
11966
|
};
|
|
11967
|
+
readonly answerEmojis: {
|
|
11968
|
+
readonly type: "array";
|
|
11969
|
+
readonly maxLength: 3;
|
|
11970
|
+
readonly items: {
|
|
11971
|
+
readonly type: "string";
|
|
11972
|
+
readonly maxGraphemes: 1;
|
|
11973
|
+
readonly maxLength: 64;
|
|
11974
|
+
};
|
|
11975
|
+
readonly description: "Optional: the emoji the lighter picked for the answers, in this order: going (I'm in), interested (Maybe), notgoing (Can't go). A missing or empty entry means the app's own emoji for that answer.";
|
|
11976
|
+
};
|
|
11271
11977
|
readonly createdAt: {
|
|
11272
11978
|
readonly type: "string";
|
|
11273
11979
|
readonly format: "datetime";
|
|
@@ -11446,7 +12152,7 @@ export declare const schemas: ({
|
|
|
11446
12152
|
};
|
|
11447
12153
|
readonly collectiveType: {
|
|
11448
12154
|
readonly type: "string";
|
|
11449
|
-
readonly description: "Free-form collective type/category label. The value \"beacon.circle\" marks a Beacon circle on a descriptor placed in its own DID's pub.techne.draft.space.collective.member/self, whoever made that DID or wrote it. A Beacon circle is a private group whose descriptor and memberships live only in that member space,
|
|
12155
|
+
readonly description: "Free-form collective type/category label. The value \"beacon.circle\" marks a Beacon circle on a descriptor placed in its own DID's pub.techne.draft.space.collective.member/self, whoever made that DID or wrote it. A Beacon circle is a private group whose descriptor and memberships live only in that member space, and which a pub.techne.draft.accessRule#groupTarget may name. Roles: a member holds 20 and the manager 40 (the founder, until they make someone else manager). Where the platform holds the circle's credential, any member may add people and leave; only the manager renames, sets the emoji, removes people and makes someone manager (one putRecords: that member at 40, the manager's own claim at 20). A write that would leave members with nobody at >= 30 is refused (LastManager). A circle whose last member leaves is deleted, and so is one whose only member deletes their account; an account that alone manages a circle hands it to the longest-standing other member when it is deleted. Circles made before these roles hold every member at 40 until the operator lowers them. A circle whose DID someone else holds is managed by its holder.";
|
|
11450
12156
|
readonly maxLength: 64;
|
|
11451
12157
|
};
|
|
11452
12158
|
readonly sceneType: {
|
|
@@ -11704,7 +12410,7 @@ export declare const schemas: ({
|
|
|
11704
12410
|
readonly defs: {
|
|
11705
12411
|
readonly main: {
|
|
11706
12412
|
readonly type: "procedure";
|
|
11707
|
-
readonly description: "Move a custodial account's handle to the deployment's current handle domain (handles move from *.scenius.social to the settled domain). Served by the AppView, operator-only
|
|
12413
|
+
readonly description: "Move a custodial account's handle to the deployment's current handle domain (handles move from *.scenius.social to the settled domain). Served by the AppView, operator-only: the caller's DID is one of OPERATOR_DIDS and the call carries the moderate scope. Keeps the account's label unless `label` is given; updates the handle on the PDS and in the AppView. An account has one valid handle at a time: the previous one is retired, never issued again, and links that carry it redirect to the account's DID route. Everything else already refers to the account by DID and does not change.";
|
|
11708
12414
|
readonly input: {
|
|
11709
12415
|
readonly encoding: "application/json";
|
|
11710
12416
|
readonly schema: {
|
|
@@ -11752,7 +12458,10 @@ export declare const schemas: ({
|
|
|
11752
12458
|
readonly description: "No signed-in caller.";
|
|
11753
12459
|
}, {
|
|
11754
12460
|
readonly name: "NotAuthorized";
|
|
11755
|
-
readonly description: "The caller is not an operator.";
|
|
12461
|
+
readonly description: "The caller is not an operator, or the call does not carry the moderate scope (HTTP 403).";
|
|
12462
|
+
}, {
|
|
12463
|
+
readonly name: "ProgramRefused";
|
|
12464
|
+
readonly description: "The caller is a program's token: a program never reaches an operator method (HTTP 403).";
|
|
11756
12465
|
}, {
|
|
11757
12466
|
readonly name: "InvalidRequest";
|
|
11758
12467
|
readonly description: "`did` is not a DID; the account's keys are not held here (a BYOD account moves its own handle); the account has no handle and no `label` was given; the label is reserved or not a valid handle label; or the account has no claimed handle yet.";
|
|
@@ -12744,7 +13453,7 @@ export declare const schemas: ({
|
|
|
12744
13453
|
readonly defs: {
|
|
12745
13454
|
readonly main: {
|
|
12746
13455
|
readonly type: "procedure";
|
|
12747
|
-
readonly description: "A PDS's issuer hook: the PDS verified a one-time code for `channel` and signed `did` in (or created it). The issuer binds an unbound channel to the account and issues a pub.techne.draft.credential, or re-issues when it is already bound to that account. It never moves a bound channel, and binds only accounts whose DID document names the calling PDS (`#atproto_pds`). Authenticated and signed exactly as identity.resolve. Delivered at least once; idempotent per (channel, did).";
|
|
13456
|
+
readonly description: "A PDS's issuer hook: the PDS verified a one-time code for `channel` and signed `did` in (or created it). The issuer binds an unbound channel to the account and issues a pub.techne.draft.credential, or re-issues when it is already bound to that account. A phone it binds or re-binds releases the invitations and holds waiting on that number to the account (as a sign-in on the platform does). It never moves a bound channel, never signs in a frozen method (`MethodFrozen`), never binds a phone number back to the account that removed it (`ChannelReleased`), and binds only accounts whose DID document names the calling PDS (`#atproto_pds`). Authenticated and signed exactly as identity.resolve. Delivered at least once; idempotent per (channel, did).";
|
|
12748
13457
|
readonly input: {
|
|
12749
13458
|
readonly encoding: "application/json";
|
|
12750
13459
|
readonly schema: {
|
|
@@ -12808,6 +13517,12 @@ export declare const schemas: ({
|
|
|
12808
13517
|
}, {
|
|
12809
13518
|
readonly name: "ChannelBound";
|
|
12810
13519
|
readonly description: "The channel is bound to another account (HTTP 409). Never retried.";
|
|
13520
|
+
}, {
|
|
13521
|
+
readonly name: "ChannelReleased";
|
|
13522
|
+
readonly description: "The account named by `did` removed this phone number (identity.unlinkMethod) and nobody has bound it since (HTTP 409). Never retried: the account gets the number back only by adding it again (identity.finishAddMethod).";
|
|
13523
|
+
}, {
|
|
13524
|
+
readonly name: "MethodFrozen";
|
|
13525
|
+
readonly description: "This channel is a frozen method of the account (identity.manageMethods `freeze`; HTTP 403): it does not sign in until the freeze ends. Not retried.";
|
|
12811
13526
|
}, {
|
|
12812
13527
|
readonly name: "RateLimitExceeded";
|
|
12813
13528
|
readonly description: "As identity.resolve (HTTP 429).";
|
|
@@ -12820,7 +13535,7 @@ export declare const schemas: ({
|
|
|
12820
13535
|
readonly defs: {
|
|
12821
13536
|
readonly main: {
|
|
12822
13537
|
readonly type: "procedure";
|
|
12823
|
-
readonly description: "Start adding a sign-in method to the caller's account: sends a 6-digit code to the channel
|
|
13538
|
+
readonly description: "Start adding a sign-in method to the caller's account: sends a 6-digit code to the channel: an email, or a phone by SMS. To change a phone number, add the new one, then remove the old one with identity.unlinkMethod. The code is good for 10 minutes and 5 attempts; finish with identity.finishAddMethod. Signed-in members only.";
|
|
12824
13539
|
readonly input: {
|
|
12825
13540
|
readonly encoding: "application/json";
|
|
12826
13541
|
readonly schema: {
|
|
@@ -12838,16 +13553,66 @@ export declare const schemas: ({
|
|
|
12838
13553
|
readonly encoding: "application/json";
|
|
12839
13554
|
readonly schema: {
|
|
12840
13555
|
readonly type: "object";
|
|
12841
|
-
readonly required: ["challenge", "expiresAt"];
|
|
13556
|
+
readonly required: ["challenge", "expiresAt"];
|
|
13557
|
+
readonly properties: {
|
|
13558
|
+
readonly challenge: {
|
|
13559
|
+
readonly type: "string";
|
|
13560
|
+
readonly maxLength: 128;
|
|
13561
|
+
readonly description: "Names this attempt in identity.finishAddMethod.";
|
|
13562
|
+
};
|
|
13563
|
+
readonly expiresAt: {
|
|
13564
|
+
readonly type: "string";
|
|
13565
|
+
readonly format: "datetime";
|
|
13566
|
+
};
|
|
13567
|
+
};
|
|
13568
|
+
};
|
|
13569
|
+
};
|
|
13570
|
+
readonly errors: [{
|
|
13571
|
+
readonly name: "AuthenticationRequired";
|
|
13572
|
+
readonly description: "No signed-in caller.";
|
|
13573
|
+
}, {
|
|
13574
|
+
readonly name: "InvalidRequest";
|
|
13575
|
+
readonly description: "The channel is not a valid email or E.164 phone number, or its type cannot be added on this server.";
|
|
13576
|
+
}, {
|
|
13577
|
+
readonly name: "RateLimitExceeded";
|
|
13578
|
+
readonly description: "Too many codes sent to this address (HTTP 429).";
|
|
13579
|
+
}, {
|
|
13580
|
+
readonly name: "MethodFrozen";
|
|
13581
|
+
readonly description: "The channel is a frozen sign-in method of an account (HTTP 403); it can't be proved anywhere until the freeze ends.";
|
|
13582
|
+
}, {
|
|
13583
|
+
readonly name: "SendFailed";
|
|
13584
|
+
readonly description: "The code could not be texted to that phone number (HTTP 502). Try again.";
|
|
13585
|
+
}];
|
|
13586
|
+
};
|
|
13587
|
+
};
|
|
13588
|
+
} | {
|
|
13589
|
+
readonly lexicon: 1;
|
|
13590
|
+
readonly id: "pub.techne.draft.identity.cancelPendingChange";
|
|
13591
|
+
readonly defs: {
|
|
13592
|
+
readonly main: {
|
|
13593
|
+
readonly type: "procedure";
|
|
13594
|
+
readonly description: "Cancel one of the caller's pending sign-in changes (a method removal, an account deletion or a first recovery mark that waits; its `id` is the `pending` identity.listMethods, identity.unlinkMethod or deleteAccount answered), by the sign-in method rules: any of the account's methods may cancel a wait, so a signed-in session may, with no step-up. For an account whose PDS has no account page of its own; the identity PDS cancels through identity.manageMethods `cancel`. A frozen method may cancel too, its own removal included. Nothing else changes.";
|
|
13595
|
+
readonly input: {
|
|
13596
|
+
readonly encoding: "application/json";
|
|
13597
|
+
readonly schema: {
|
|
13598
|
+
readonly type: "object";
|
|
13599
|
+
readonly required: ["id"];
|
|
13600
|
+
readonly properties: {
|
|
13601
|
+
readonly id: {
|
|
13602
|
+
readonly type: "string";
|
|
13603
|
+
readonly maxLength: 64;
|
|
13604
|
+
};
|
|
13605
|
+
};
|
|
13606
|
+
};
|
|
13607
|
+
};
|
|
13608
|
+
readonly output: {
|
|
13609
|
+
readonly encoding: "application/json";
|
|
13610
|
+
readonly schema: {
|
|
13611
|
+
readonly type: "object";
|
|
13612
|
+
readonly required: ["ok"];
|
|
12842
13613
|
readonly properties: {
|
|
12843
|
-
readonly
|
|
12844
|
-
readonly type: "
|
|
12845
|
-
readonly maxLength: 128;
|
|
12846
|
-
readonly description: "Names this attempt in identity.finishAddMethod.";
|
|
12847
|
-
};
|
|
12848
|
-
readonly expiresAt: {
|
|
12849
|
-
readonly type: "string";
|
|
12850
|
-
readonly format: "datetime";
|
|
13614
|
+
readonly ok: {
|
|
13615
|
+
readonly type: "boolean";
|
|
12851
13616
|
};
|
|
12852
13617
|
};
|
|
12853
13618
|
};
|
|
@@ -12856,11 +13621,8 @@ export declare const schemas: ({
|
|
|
12856
13621
|
readonly name: "AuthenticationRequired";
|
|
12857
13622
|
readonly description: "No signed-in caller.";
|
|
12858
13623
|
}, {
|
|
12859
|
-
readonly name: "
|
|
12860
|
-
readonly description: "
|
|
12861
|
-
}, {
|
|
12862
|
-
readonly name: "RateLimitExceeded";
|
|
12863
|
-
readonly description: "Too many codes sent to this address (HTTP 429).";
|
|
13624
|
+
readonly name: "NotFound";
|
|
13625
|
+
readonly description: "No such pending change on the caller's account, or it already completed or was cancelled.";
|
|
12864
13626
|
}];
|
|
12865
13627
|
};
|
|
12866
13628
|
};
|
|
@@ -12977,7 +13739,7 @@ export declare const schemas: ({
|
|
|
12977
13739
|
readonly defs: {
|
|
12978
13740
|
readonly main: {
|
|
12979
13741
|
readonly type: "procedure";
|
|
12980
|
-
readonly description: "Make a link token on the caller's identity PDS: a secret anyone can redeem (redeemLinkToken) once (one-time, the default) or any number of times by different accounts (`reusable`). With `grant`, the platform keeps a write it makes for each account that redeems it: when the identity PDS reports a redemption, the platform writes the redeemer's own pub.techne.draft.identity.linkRedemption record in their personal space and then writes `grant.write` as `grant.actAs` with the redeemer's DID in every \"$subject\" slot, exactly as identity.holdForPhone releases a hold: the caller must be able to write as `actAs` now and when the link is redeemed, a block either way between the redeemer and the caller or `actAs` writes nothing, and the record must be one permissioned.putRecord would take with the caller's DID in the slot. A one-time link's grant goes after its one write; a reusable link's is written once for each redeemer, under its own record key. A release never writes over a record already at its key: one there stays, and that redeemer's write is not made. Only an account hosted on the platform's identity PDS can make links. One call spends one of the caller's writes.";
|
|
13742
|
+
readonly description: "Make a link token on the caller's identity PDS: a secret anyone can redeem (redeemLinkToken) once (one-time, the default) or any number of times by different accounts (`reusable`). With `grant`, the platform keeps a write it makes for each account that redeems it: when the identity PDS reports a redemption, the platform writes the redeemer's own pub.techne.draft.identity.linkRedemption record in their personal space and then writes `grant.write` as `grant.actAs` with the redeemer's DID in every \"$subject\" slot (and their name in every \"$name\" slot), exactly as identity.holdForPhone releases a hold: the caller must be able to write as `actAs` now and when the link is redeemed, a block either way between the redeemer and the caller or `actAs` writes nothing, and the record must be one permissioned.putRecord would take with the caller's DID in the slot. A one-time link's grant goes after its one write; a reusable link's is written once for each redeemer, under its own record key. A release never writes over a record already at its key: one there stays, and that redeemer's write is not made. A pub.techne.draft.contact grant is likewise not made when any active contact of `actAs` already names the redeemer, by its `did` or by a saved number that resolves to them (an archived one does not count), so a grant like {name: \"$name\", did: \"$subject\"} adds each person to the owner's People once. Only an account hosted on the platform's identity PDS can make links. One call spends one of the caller's writes.";
|
|
12981
13743
|
readonly input: {
|
|
12982
13744
|
readonly encoding: "application/json";
|
|
12983
13745
|
readonly schema: {
|
|
@@ -13067,27 +13829,68 @@ export declare const schemas: ({
|
|
|
13067
13829
|
};
|
|
13068
13830
|
readonly methodView: {
|
|
13069
13831
|
readonly type: "object";
|
|
13070
|
-
readonly description: "One sign-in method
|
|
13832
|
+
readonly description: "One sign-in method of the caller's account, masked.";
|
|
13071
13833
|
readonly required: ["bid", "type", "masked", "boundAt"];
|
|
13072
13834
|
readonly properties: {
|
|
13073
13835
|
readonly bid: {
|
|
13074
13836
|
readonly type: "string";
|
|
13075
13837
|
readonly maxLength: 64;
|
|
13076
|
-
readonly description: "The binding id (the credential's record key). Names the method in unlinkMethod.";
|
|
13838
|
+
readonly description: "The method's id: the binding id (the credential's record key) of an email or phone, else the platform's id for it. Names the method in unlinkMethod and manageMethods.";
|
|
13077
13839
|
};
|
|
13078
13840
|
readonly type: {
|
|
13079
13841
|
readonly type: "string";
|
|
13080
|
-
readonly knownValues: ["email", "phone"];
|
|
13842
|
+
readonly knownValues: ["email", "phone", "passkey", "nostr", "recoveryCodes"];
|
|
13081
13843
|
};
|
|
13082
13844
|
readonly masked: {
|
|
13083
13845
|
readonly type: "string";
|
|
13084
13846
|
readonly maxLength: 320;
|
|
13085
|
-
readonly description: "The channel with most of it hidden, e.g. `j•••@example.com`, `+1 ••• ••• 4567`.";
|
|
13847
|
+
readonly 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)`.";
|
|
13086
13848
|
};
|
|
13087
13849
|
readonly boundAt: {
|
|
13088
13850
|
readonly type: "string";
|
|
13089
13851
|
readonly format: "datetime";
|
|
13090
13852
|
};
|
|
13853
|
+
readonly recovery: {
|
|
13854
|
+
readonly type: "boolean";
|
|
13855
|
+
readonly description: "A recovery method of this account. Private: only the account sees it.";
|
|
13856
|
+
};
|
|
13857
|
+
readonly frozenUntil: {
|
|
13858
|
+
readonly type: "string";
|
|
13859
|
+
readonly format: "datetime";
|
|
13860
|
+
readonly description: "Frozen: it signs in nowhere until then, or until a recovery method lifts it.";
|
|
13861
|
+
};
|
|
13862
|
+
readonly programs: {
|
|
13863
|
+
readonly type: "boolean";
|
|
13864
|
+
readonly description: "\"Programs can sign in with this key\" (identity.manageMethods setPrograms). Present on the types that support it (a Nostr key), off by default. Never on for a recovery method.";
|
|
13865
|
+
};
|
|
13866
|
+
};
|
|
13867
|
+
};
|
|
13868
|
+
readonly pendingChange: {
|
|
13869
|
+
readonly type: "object";
|
|
13870
|
+
readonly description: "A change that waits for its time (a method's removal or the account's deletion, 7 days; the account's first recovery mark, 24 hours). Any of the account's methods, a frozen one too, can cancel it until then; a wait during which one of the account's methods was frozen (and not lifted early by a recovery method) is dropped when it runs out, not completed.";
|
|
13871
|
+
readonly required: ["id", "kind", "createdAt", "dueAt"];
|
|
13872
|
+
readonly properties: {
|
|
13873
|
+
readonly id: {
|
|
13874
|
+
readonly type: "string";
|
|
13875
|
+
readonly maxLength: 64;
|
|
13876
|
+
};
|
|
13877
|
+
readonly kind: {
|
|
13878
|
+
readonly type: "string";
|
|
13879
|
+
readonly knownValues: ["removeMethod", "deleteAccount", "markRecovery"];
|
|
13880
|
+
};
|
|
13881
|
+
readonly method: {
|
|
13882
|
+
readonly type: "string";
|
|
13883
|
+
readonly maxLength: 64;
|
|
13884
|
+
readonly description: "The method it removes or marks.";
|
|
13885
|
+
};
|
|
13886
|
+
readonly createdAt: {
|
|
13887
|
+
readonly type: "string";
|
|
13888
|
+
readonly format: "datetime";
|
|
13889
|
+
};
|
|
13890
|
+
readonly dueAt: {
|
|
13891
|
+
readonly type: "string";
|
|
13892
|
+
readonly format: "datetime";
|
|
13893
|
+
};
|
|
13091
13894
|
};
|
|
13092
13895
|
};
|
|
13093
13896
|
readonly linkView: {
|
|
@@ -13245,6 +14048,18 @@ export declare const schemas: ({
|
|
|
13245
14048
|
}, {
|
|
13246
14049
|
readonly name: "InvalidCode";
|
|
13247
14050
|
readonly description: "The code is wrong, expired or used up, or the challenge is not the caller's.";
|
|
14051
|
+
}, {
|
|
14052
|
+
readonly name: "RateLimitExceeded";
|
|
14053
|
+
readonly description: "A phone code: the provider that sent it is refusing more checks for this number for now (HTTP 429). Wait a few minutes.";
|
|
14054
|
+
}, {
|
|
14055
|
+
readonly name: "MethodFrozen";
|
|
14056
|
+
readonly description: "The channel was frozen on its account since the code was sent, or it would be new to the caller's account while one of its methods is frozen (HTTP 403).";
|
|
14057
|
+
}, {
|
|
14058
|
+
readonly name: "ProtectedAccount";
|
|
14059
|
+
readonly 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.";
|
|
14060
|
+
}, {
|
|
14061
|
+
readonly name: "UpstreamFailure";
|
|
14062
|
+
readonly description: "A phone code: the provider that sent it could not be asked whether it matches (HTTP 502). The code is not spent; try again.";
|
|
13248
14063
|
}];
|
|
13249
14064
|
};
|
|
13250
14065
|
readonly offer: {
|
|
@@ -13329,6 +14144,9 @@ export declare const schemas: ({
|
|
|
13329
14144
|
}, {
|
|
13330
14145
|
readonly name: "InvalidToken";
|
|
13331
14146
|
readonly description: "The token is unknown, used, expired, or was issued to another session.";
|
|
14147
|
+
}, {
|
|
14148
|
+
readonly name: "ProtectedAccount";
|
|
14149
|
+
readonly description: "One of the two accounts has a recovery mark, a live freeze, a pending change, or a passkey, Nostr key or recovery codes since the offer (HTTP 409).";
|
|
13332
14150
|
}, {
|
|
13333
14151
|
readonly name: "NotEmpty";
|
|
13334
14152
|
readonly description: "The account to fold gained a record or is 7 days old or more; link instead.";
|
|
@@ -13341,7 +14159,7 @@ export declare const schemas: ({
|
|
|
13341
14159
|
readonly defs: {
|
|
13342
14160
|
readonly main: {
|
|
13343
14161
|
readonly type: "procedure";
|
|
13344
|
-
readonly description: "Hold a write until someone proves a phone number: when an account proves `phone`, the platform fills every string value exactly \"$subject\" in `write.record` (and \"$subject\" in `write.rkey`) with that account's DID
|
|
14162
|
+
readonly description: "Hold a write until someone proves a phone number: when an account proves `phone`, the platform fills every string value exactly \"$subject\" in `write.record` (and \"$subject\" in `write.rkey`) with that account's DID, every value exactly \"$now\" in the record with the time and every value exactly \"$name\" with that account's name (its public pub.techne.draft.actor.profile displayName, trimmed, at most 64 graphemes, else its handle; a write waits until one is known), and writes the record as `actAs` in `write.space` with what it holds for that account. Only the number's keyed hash is kept; the template may not contain the number. Every hold is answered alike, whether or not the number already has an account: one that has is released the next time it is proved (each phone sign-in proves it), never at once, so nothing here says whether a number has an account or whose it is. The caller must be able to write as `actAs` (its own DID, a collective or circle whose own member space (`space.collective.member/self`) it manages, or a collective it made that has nothing placed yet), now and again when the number is proved; a hold whose caller no longer may, or with a block either way between the new account and the caller or `actAs`, is dropped unwritten, as is one whose record the space does not admit. The record must be one permissioned.putRecord would take with the caller's DID in the slot, and must carry the slot. The nightly sweep deletes a hold 180 days after it was made. Holding again with the same number, `actAs`, `collection`, `space`, `rkey` and record `space` answers the existing hold unchanged (the first template wins; withdraw it with releasePhoneHold and hold again to change it). The template is shown to everyone who may write as `actAs` and read `space` (listPhoneHolds). Identity knows nothing about what the record means. Any signed-in DID; one call spends one of the caller's writes.";
|
|
13345
14163
|
readonly input: {
|
|
13346
14164
|
readonly encoding: "application/json";
|
|
13347
14165
|
readonly schema: {
|
|
@@ -13412,7 +14230,7 @@ export declare const schemas: ({
|
|
|
13412
14230
|
};
|
|
13413
14231
|
readonly record: {
|
|
13414
14232
|
readonly type: "unknown";
|
|
13415
|
-
readonly description: "The record, with the \"$subject\" (and optionally \"$now\") slots as string values.";
|
|
14233
|
+
readonly description: "The record, with the \"$subject\" (and optionally \"$now\" and \"$name\") slots as string values.";
|
|
13416
14234
|
};
|
|
13417
14235
|
};
|
|
13418
14236
|
};
|
|
@@ -13461,6 +14279,9 @@ export declare const schemas: ({
|
|
|
13461
14279
|
}, {
|
|
13462
14280
|
readonly name: "InvalidToken";
|
|
13463
14281
|
readonly description: "The token is unknown, used, expired, or was issued to another session.";
|
|
14282
|
+
}, {
|
|
14283
|
+
readonly name: "ProtectedAccount";
|
|
14284
|
+
readonly description: "One of the two accounts has a recovery mark, a live freeze, a pending change, or a passkey, Nostr key or recovery codes since the offer (HTTP 409).";
|
|
13464
14285
|
}, {
|
|
13465
14286
|
readonly name: "InvalidRequest";
|
|
13466
14287
|
readonly description: "`primary` names neither account, or the other account's keys are not held here (sign in to it and link from there).";
|
|
@@ -13704,7 +14525,16 @@ export declare const schemas: ({
|
|
|
13704
14525
|
readonly defs: {
|
|
13705
14526
|
readonly main: {
|
|
13706
14527
|
readonly type: "query";
|
|
13707
|
-
readonly description: "The caller's sign-in methods (masked) and the account's alias links. Signed-in members only.";
|
|
14528
|
+
readonly description: "The caller's sign-in methods (masked, with their recovery mark and freeze), its pending changes, and the account's alias links. Emails and phones only unless `allTypes` (shipped clients label every row as an email). Signed-in members only.";
|
|
14529
|
+
readonly parameters: {
|
|
14530
|
+
readonly type: "params";
|
|
14531
|
+
readonly properties: {
|
|
14532
|
+
readonly allTypes: {
|
|
14533
|
+
readonly type: "boolean";
|
|
14534
|
+
readonly description: "Also list passkeys, Nostr keys and the recovery-code set.";
|
|
14535
|
+
};
|
|
14536
|
+
};
|
|
14537
|
+
};
|
|
13708
14538
|
readonly output: {
|
|
13709
14539
|
readonly encoding: "application/json";
|
|
13710
14540
|
readonly schema: {
|
|
@@ -13725,6 +14555,14 @@ export declare const schemas: ({
|
|
|
13725
14555
|
readonly ref: "lex:pub.techne.draft.identity.defs#linkView";
|
|
13726
14556
|
};
|
|
13727
14557
|
};
|
|
14558
|
+
readonly pending: {
|
|
14559
|
+
readonly type: "array";
|
|
14560
|
+
readonly description: "The account's pending changes, soonest first (the account page shows them at the top, with Cancel).";
|
|
14561
|
+
readonly items: {
|
|
14562
|
+
readonly type: "ref";
|
|
14563
|
+
readonly ref: "lex:pub.techne.draft.identity.defs#pendingChange";
|
|
14564
|
+
};
|
|
14565
|
+
};
|
|
13728
14566
|
};
|
|
13729
14567
|
};
|
|
13730
14568
|
};
|
|
@@ -13757,76 +14595,565 @@ export declare const schemas: ({
|
|
|
13757
14595
|
readonly type: "string";
|
|
13758
14596
|
readonly format: "did";
|
|
13759
14597
|
};
|
|
13760
|
-
};
|
|
13761
|
-
};
|
|
13762
|
-
};
|
|
13763
|
-
readonly output: {
|
|
13764
|
-
readonly encoding: "application/json";
|
|
13765
|
-
readonly schema: {
|
|
13766
|
-
readonly type: "object";
|
|
13767
|
-
readonly required: ["holds"];
|
|
13768
|
-
readonly properties: {
|
|
13769
|
-
readonly holds: {
|
|
14598
|
+
};
|
|
14599
|
+
};
|
|
14600
|
+
};
|
|
14601
|
+
readonly output: {
|
|
14602
|
+
readonly encoding: "application/json";
|
|
14603
|
+
readonly schema: {
|
|
14604
|
+
readonly type: "object";
|
|
14605
|
+
readonly required: ["holds"];
|
|
14606
|
+
readonly properties: {
|
|
14607
|
+
readonly holds: {
|
|
14608
|
+
readonly type: "array";
|
|
14609
|
+
readonly items: {
|
|
14610
|
+
readonly type: "ref";
|
|
14611
|
+
readonly ref: "lex:pub.techne.draft.identity.listPhoneHolds#holdView";
|
|
14612
|
+
};
|
|
14613
|
+
};
|
|
14614
|
+
};
|
|
14615
|
+
};
|
|
14616
|
+
};
|
|
14617
|
+
readonly errors: [{
|
|
14618
|
+
readonly name: "InvalidRequest";
|
|
14619
|
+
readonly description: "HTTP 400: `actAs` or one of `alsoActAs` is not a DID, or more than 99 `alsoActAs`.";
|
|
14620
|
+
}, {
|
|
14621
|
+
readonly name: "Forbidden";
|
|
14622
|
+
readonly description: "HTTP 403: the caller may not write as `actAs` (with `alsoActAs`: as any of them).";
|
|
14623
|
+
}];
|
|
14624
|
+
};
|
|
14625
|
+
readonly holdView: {
|
|
14626
|
+
readonly type: "object";
|
|
14627
|
+
readonly required: ["id", "askedBy", "collection", "record", "createdAt"];
|
|
14628
|
+
readonly properties: {
|
|
14629
|
+
readonly id: {
|
|
14630
|
+
readonly type: "string";
|
|
14631
|
+
};
|
|
14632
|
+
readonly actAs: {
|
|
14633
|
+
readonly type: "string";
|
|
14634
|
+
readonly format: "did";
|
|
14635
|
+
readonly description: "The account the hold would write as.";
|
|
14636
|
+
};
|
|
14637
|
+
readonly askedBy: {
|
|
14638
|
+
readonly type: "string";
|
|
14639
|
+
readonly format: "did";
|
|
14640
|
+
};
|
|
14641
|
+
readonly app: {
|
|
14642
|
+
readonly type: "string";
|
|
14643
|
+
};
|
|
14644
|
+
readonly collection: {
|
|
14645
|
+
readonly type: "string";
|
|
14646
|
+
readonly format: "nsid";
|
|
14647
|
+
};
|
|
14648
|
+
readonly rkey: {
|
|
14649
|
+
readonly type: "string";
|
|
14650
|
+
readonly description: "The record key template.";
|
|
14651
|
+
};
|
|
14652
|
+
readonly space: {
|
|
14653
|
+
readonly type: "string";
|
|
14654
|
+
};
|
|
14655
|
+
readonly record: {
|
|
14656
|
+
readonly type: "unknown";
|
|
14657
|
+
readonly description: "The record template, slots unfilled.";
|
|
14658
|
+
};
|
|
14659
|
+
readonly createdAt: {
|
|
14660
|
+
readonly type: "string";
|
|
14661
|
+
readonly format: "datetime";
|
|
14662
|
+
};
|
|
14663
|
+
readonly name: {
|
|
14664
|
+
readonly type: "string";
|
|
14665
|
+
readonly description: "On a hold the caller asked for, the name the caller saved for its number: the `name` of the caller's own active `contact` on that number (the newest, when there are several), read when the listing is made. Never on a hold someone else asked for, and nothing of it is stored on the hold.";
|
|
14666
|
+
};
|
|
14667
|
+
};
|
|
14668
|
+
};
|
|
14669
|
+
};
|
|
14670
|
+
} | {
|
|
14671
|
+
readonly lexicon: 1;
|
|
14672
|
+
readonly id: "pub.techne.draft.identity.manageMethods";
|
|
14673
|
+
readonly defs: {
|
|
14674
|
+
readonly main: {
|
|
14675
|
+
readonly type: "procedure";
|
|
14676
|
+
readonly 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.";
|
|
14677
|
+
readonly input: {
|
|
14678
|
+
readonly encoding: "application/json";
|
|
14679
|
+
readonly schema: {
|
|
14680
|
+
readonly type: "object";
|
|
14681
|
+
readonly required: ["v", "op"];
|
|
14682
|
+
readonly properties: {
|
|
14683
|
+
readonly v: {
|
|
14684
|
+
readonly type: "integer";
|
|
14685
|
+
readonly const: 1;
|
|
14686
|
+
};
|
|
14687
|
+
readonly op: {
|
|
14688
|
+
readonly type: "string";
|
|
14689
|
+
readonly knownValues: ["list", "signInMethods", "sendTo", "remove", "cancel", "freeze", "unfreeze", "mark", "unmark", "signOut", "delete", "addExternal", "newRecoveryCodes", "redeemCode", "setPrograms", "importBackupEmails", "findKey", "notices", "noticesSent", "dueDeletes", "dueDeletesDone", "addChannel", "fold", "link", "operator"];
|
|
14690
|
+
};
|
|
14691
|
+
readonly did: {
|
|
14692
|
+
readonly type: "string";
|
|
14693
|
+
readonly format: "did";
|
|
14694
|
+
readonly description: "The signed-in account. Required for every op but `notices`, `noticesSent`, `dueDeletes` and `dueDeletesDone`.";
|
|
14695
|
+
};
|
|
14696
|
+
readonly stepUp: {
|
|
14697
|
+
readonly type: "ref";
|
|
14698
|
+
readonly ref: "lex:pub.techne.draft.identity.manageMethods#stepUp";
|
|
14699
|
+
};
|
|
14700
|
+
readonly method: {
|
|
14701
|
+
readonly type: "string";
|
|
14702
|
+
readonly maxLength: 64;
|
|
14703
|
+
readonly description: "The method acted on (its `id` in `list` or `signInMethods`).";
|
|
14704
|
+
};
|
|
14705
|
+
readonly pending: {
|
|
14706
|
+
readonly type: "string";
|
|
14707
|
+
readonly maxLength: 64;
|
|
14708
|
+
readonly description: "The pending change `cancel` cancels.";
|
|
14709
|
+
};
|
|
14710
|
+
readonly signOut: {
|
|
14711
|
+
readonly type: "boolean";
|
|
14712
|
+
readonly description: "With `freeze`: also sign out everywhere.";
|
|
14713
|
+
};
|
|
14714
|
+
readonly external: {
|
|
14715
|
+
readonly type: "ref";
|
|
14716
|
+
readonly ref: "lex:pub.techne.draft.identity.manageMethods#external";
|
|
14717
|
+
};
|
|
14718
|
+
readonly code: {
|
|
14719
|
+
readonly type: "string";
|
|
14720
|
+
readonly maxLength: 64;
|
|
14721
|
+
readonly description: "A recovery code, for `redeemCode`.";
|
|
14722
|
+
};
|
|
14723
|
+
readonly ids: {
|
|
14724
|
+
readonly type: "array";
|
|
14725
|
+
readonly maxLength: 100;
|
|
14726
|
+
readonly items: {
|
|
14727
|
+
readonly type: "integer";
|
|
14728
|
+
};
|
|
14729
|
+
readonly description: "Notice ids, for `noticesSent`.";
|
|
14730
|
+
};
|
|
14731
|
+
readonly emails: {
|
|
14732
|
+
readonly type: "array";
|
|
14733
|
+
readonly maxLength: 10;
|
|
14734
|
+
readonly items: {
|
|
14735
|
+
readonly type: "string";
|
|
14736
|
+
readonly maxLength: 320;
|
|
14737
|
+
};
|
|
14738
|
+
readonly description: "Retired, not read: a bare list has no verification dates, so the cutoff can't hold. importBackupEmails without `backupEmails` is 400 InvalidRequest.";
|
|
14739
|
+
};
|
|
14740
|
+
readonly backupEmails: {
|
|
14741
|
+
readonly type: "array";
|
|
14742
|
+
readonly maxLength: 10;
|
|
14743
|
+
readonly items: {
|
|
14744
|
+
readonly type: "ref";
|
|
14745
|
+
readonly ref: "lex:pub.techne.draft.identity.manageMethods#backupEmail";
|
|
14746
|
+
};
|
|
14747
|
+
readonly description: "importBackupEmails: the account's verified backup email addresses, all of them, each with when the PDS verified it.";
|
|
14748
|
+
};
|
|
14749
|
+
readonly dids: {
|
|
14750
|
+
readonly type: "array";
|
|
14751
|
+
readonly maxLength: 100;
|
|
14752
|
+
readonly items: {
|
|
14753
|
+
readonly type: "string";
|
|
14754
|
+
readonly format: "did";
|
|
14755
|
+
};
|
|
14756
|
+
readonly description: "dueDeletesDone: the accounts whose PDS account was deleted.";
|
|
14757
|
+
};
|
|
14758
|
+
readonly channel: {
|
|
14759
|
+
readonly type: "ref";
|
|
14760
|
+
readonly ref: "lex:pub.techne.draft.identity.defs#channel";
|
|
14761
|
+
readonly description: "addChannel: the email or phone the PDS just proved (a code it sent and checked).";
|
|
14762
|
+
};
|
|
14763
|
+
readonly token: {
|
|
14764
|
+
readonly type: "string";
|
|
14765
|
+
readonly maxLength: 128;
|
|
14766
|
+
readonly description: "fold / link: the offer's token from addChannel.";
|
|
14767
|
+
};
|
|
14768
|
+
readonly primary: {
|
|
14769
|
+
readonly type: "string";
|
|
14770
|
+
readonly format: "did";
|
|
14771
|
+
readonly description: "link: which of the two accounts is the primary.";
|
|
14772
|
+
};
|
|
14773
|
+
readonly on: {
|
|
14774
|
+
readonly type: "boolean";
|
|
14775
|
+
readonly description: "setPrograms: on or off.";
|
|
14776
|
+
};
|
|
14777
|
+
readonly program: {
|
|
14778
|
+
readonly type: "boolean";
|
|
14779
|
+
readonly description: "A program made this request: a session or token the PDS's programmatic sign-in opened. Account security is refused (ProgramRefused).";
|
|
14780
|
+
};
|
|
14781
|
+
};
|
|
14782
|
+
};
|
|
14783
|
+
};
|
|
14784
|
+
readonly output: {
|
|
14785
|
+
readonly encoding: "application/json";
|
|
14786
|
+
readonly schema: {
|
|
14787
|
+
readonly type: "object";
|
|
14788
|
+
readonly required: ["v"];
|
|
14789
|
+
readonly properties: {
|
|
14790
|
+
readonly v: {
|
|
14791
|
+
readonly type: "integer";
|
|
14792
|
+
readonly const: 1;
|
|
14793
|
+
};
|
|
14794
|
+
readonly status: {
|
|
14795
|
+
readonly type: "string";
|
|
14796
|
+
readonly knownValues: ["done", "pending", "deleted", "deleting", "bound", "invalid", "hasRecovery", "indexOff", "alreadyImported", "added", "alreadyYours", "boundElsewhere", "unavailable", "folded", "linked", "none"];
|
|
14797
|
+
readonly description: "`done`: it happened now. `pending`: it waits (`pending`). `deleted` / `deleting` (`delete` done now): the account is gone / its local half is gone and a sweep finishes the rest (deleteAccount's `deleted` / `pending`; a deletion that could not start answers 503 Unavailable, try again). `bound`: addExternal's key is on another account. `invalid`: redeemCode's code is wrong, used, or the set is not a recovery method or is frozen. `hasRecovery`: importBackupEmails found a recovery method on the account; nothing changed. `indexOff`: importBackupEmails can't mark anything while the identity index is off; nothing changed. `alreadyImported`: importBackupEmails ran for this account before; nothing changed. `added` / `alreadyYours` / `boundElsewhere` / `unavailable`: addChannel, as identity.finishAddMethod. `folded` / `linked`: fold / link done. `none`: findKey's key is no method of an account the calling PDS hosts.";
|
|
14798
|
+
};
|
|
14799
|
+
readonly pending: {
|
|
14800
|
+
readonly type: "ref";
|
|
14801
|
+
readonly ref: "lex:pub.techne.draft.identity.defs#pendingChange";
|
|
14802
|
+
};
|
|
14803
|
+
readonly method: {
|
|
14804
|
+
readonly type: "string";
|
|
14805
|
+
readonly 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.";
|
|
14806
|
+
};
|
|
14807
|
+
readonly codes: {
|
|
14808
|
+
readonly type: "array";
|
|
14809
|
+
readonly items: {
|
|
14810
|
+
readonly type: "string";
|
|
14811
|
+
};
|
|
14812
|
+
readonly description: "newRecoveryCodes: the codes, shown once.";
|
|
14813
|
+
};
|
|
14814
|
+
readonly methods: {
|
|
14815
|
+
readonly type: "array";
|
|
14816
|
+
readonly items: {
|
|
14817
|
+
readonly type: "ref";
|
|
14818
|
+
readonly ref: "lex:pub.techne.draft.identity.defs#methodView";
|
|
14819
|
+
};
|
|
14820
|
+
};
|
|
14821
|
+
readonly hasRecovery: {
|
|
14822
|
+
readonly type: "boolean";
|
|
14823
|
+
};
|
|
14824
|
+
readonly notices: {
|
|
14825
|
+
readonly type: "array";
|
|
14826
|
+
readonly items: {
|
|
14827
|
+
readonly type: "ref";
|
|
14828
|
+
readonly ref: "lex:pub.techne.draft.identity.manageMethods#notice";
|
|
14829
|
+
};
|
|
14830
|
+
};
|
|
14831
|
+
readonly count: {
|
|
14832
|
+
readonly type: "integer";
|
|
14833
|
+
readonly description: "noticesSent / dueDeletesDone: how many were confirmed.";
|
|
14834
|
+
};
|
|
14835
|
+
readonly signInMethods: {
|
|
13770
14836
|
readonly type: "array";
|
|
13771
14837
|
readonly items: {
|
|
13772
14838
|
readonly type: "ref";
|
|
13773
|
-
readonly ref: "lex:pub.techne.draft.identity.
|
|
14839
|
+
readonly ref: "lex:pub.techne.draft.identity.manageMethods#signInMethod";
|
|
14840
|
+
};
|
|
14841
|
+
readonly description: "signInMethods: the account's methods that can sign in now (not frozen), oldest first.";
|
|
14842
|
+
};
|
|
14843
|
+
readonly to: {
|
|
14844
|
+
readonly type: "ref";
|
|
14845
|
+
readonly ref: "lex:pub.techne.draft.identity.manageMethods#noticeTo";
|
|
14846
|
+
readonly description: "sendTo: where the code goes, in full.";
|
|
14847
|
+
};
|
|
14848
|
+
readonly imported: {
|
|
14849
|
+
readonly type: "array";
|
|
14850
|
+
readonly items: {
|
|
14851
|
+
readonly type: "ref";
|
|
14852
|
+
readonly ref: "lex:pub.techne.draft.identity.manageMethods#importedEmail";
|
|
13774
14853
|
};
|
|
14854
|
+
readonly description: "importBackupEmails: each address sent, with what happened to it.";
|
|
14855
|
+
};
|
|
14856
|
+
readonly dueDeletes: {
|
|
14857
|
+
readonly type: "array";
|
|
14858
|
+
readonly items: {
|
|
14859
|
+
readonly type: "ref";
|
|
14860
|
+
readonly ref: "lex:pub.techne.draft.identity.manageMethods#dueDelete";
|
|
14861
|
+
};
|
|
14862
|
+
readonly description: "dueDeletes: accounts to delete on the PDS, oldest first.";
|
|
14863
|
+
};
|
|
14864
|
+
readonly offer: {
|
|
14865
|
+
readonly type: "ref";
|
|
14866
|
+
readonly ref: "lex:pub.techne.draft.identity.finishAddMethod#offer";
|
|
14867
|
+
readonly description: "addChannel `boundElsewhere`: what `did` can do, with `fold` or `link`.";
|
|
14868
|
+
};
|
|
14869
|
+
readonly did: {
|
|
14870
|
+
readonly type: "string";
|
|
14871
|
+
readonly format: "did";
|
|
14872
|
+
readonly description: "fold: the kept account. findKey: the account the key signs in to.";
|
|
14873
|
+
};
|
|
14874
|
+
readonly emptied: {
|
|
14875
|
+
readonly type: "string";
|
|
14876
|
+
readonly format: "did";
|
|
14877
|
+
readonly description: "fold: the account folded in and deleted.";
|
|
14878
|
+
};
|
|
14879
|
+
readonly link: {
|
|
14880
|
+
readonly type: "ref";
|
|
14881
|
+
readonly ref: "lex:pub.techne.draft.identity.defs#linkView";
|
|
14882
|
+
readonly description: "link: the link, from `did`'s side.";
|
|
14883
|
+
};
|
|
14884
|
+
readonly frozen: {
|
|
14885
|
+
readonly type: "boolean";
|
|
14886
|
+
readonly description: "findKey: the key's method is frozen now and can't sign in.";
|
|
14887
|
+
};
|
|
14888
|
+
readonly programs: {
|
|
14889
|
+
readonly type: "boolean";
|
|
14890
|
+
readonly description: "findKey: \"Programs can sign in with this key\" is on.";
|
|
14891
|
+
};
|
|
14892
|
+
readonly operator: {
|
|
14893
|
+
readonly type: "boolean";
|
|
14894
|
+
readonly description: "operator: whether `did` is one of the platform's operators.";
|
|
13775
14895
|
};
|
|
13776
14896
|
};
|
|
13777
14897
|
};
|
|
13778
14898
|
};
|
|
13779
14899
|
readonly errors: [{
|
|
14900
|
+
readonly name: "BadSignature";
|
|
14901
|
+
}, {
|
|
13780
14902
|
readonly name: "InvalidRequest";
|
|
13781
|
-
readonly description: "HTTP 400: `actAs` or one of `alsoActAs` is not a DID, or more than 99 `alsoActAs`.";
|
|
13782
14903
|
}, {
|
|
13783
|
-
readonly name: "
|
|
13784
|
-
|
|
14904
|
+
readonly name: "UnknownAccount";
|
|
14905
|
+
}, {
|
|
14906
|
+
readonly name: "RateLimitExceeded";
|
|
14907
|
+
}, {
|
|
14908
|
+
readonly name: "Unavailable";
|
|
14909
|
+
readonly description: "Try again (`redeemCode` and `newRecoveryCodes` also while the platform's identity keys are not loaded).";
|
|
14910
|
+
}, {
|
|
14911
|
+
readonly name: "NotFound";
|
|
14912
|
+
readonly description: "No such method or pending change on the account.";
|
|
14913
|
+
}, {
|
|
14914
|
+
readonly name: "NotYourMethod";
|
|
14915
|
+
readonly description: "The step-up names a method that is not the account's.";
|
|
14916
|
+
}, {
|
|
14917
|
+
readonly name: "LastMethod";
|
|
14918
|
+
readonly description: "It would leave no way to sign in.";
|
|
14919
|
+
}, {
|
|
14920
|
+
readonly name: "RecoveryProtected";
|
|
14921
|
+
readonly description: "Only a recovery method can do this to a recovery method.";
|
|
14922
|
+
}, {
|
|
14923
|
+
readonly name: "NeedsRecoveryMethod";
|
|
14924
|
+
readonly description: "Needs a fresh step-up of a recovery method.";
|
|
14925
|
+
}, {
|
|
14926
|
+
readonly name: "StepUpRequired";
|
|
14927
|
+
readonly description: "Needs a fresh step-up (an account's first recovery mark, `newRecoveryCodes`, `fold` and `link` included).";
|
|
14928
|
+
}, {
|
|
14929
|
+
readonly name: "SameMethod";
|
|
14930
|
+
readonly description: "A method cannot freeze itself.";
|
|
14931
|
+
}, {
|
|
14932
|
+
readonly name: "MethodFrozen";
|
|
14933
|
+
readonly 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).";
|
|
14934
|
+
}, {
|
|
14935
|
+
readonly name: "InvalidToken";
|
|
14936
|
+
readonly description: "fold / link: the offer is unknown, used, expired, for the other action, or not made to `did` on this hook.";
|
|
14937
|
+
}, {
|
|
14938
|
+
readonly name: "ProtectedAccount";
|
|
14939
|
+
readonly description: "addChannel / fold / link: one of the two accounts has a recovery mark, a live freeze, a pending change, or a passkey, Nostr key or recovery codes; it is never folded or linked (HTTP 409).";
|
|
14940
|
+
}, {
|
|
14941
|
+
readonly name: "NotEmpty";
|
|
14942
|
+
readonly description: "fold: the account to fold gained a record or is 7 days old or more; link instead (HTTP 409).";
|
|
14943
|
+
}, {
|
|
14944
|
+
readonly name: "ProgramRefused";
|
|
14945
|
+
readonly description: "A program asked (`program`, or a step-up by a key with programs on): account security needs a person on a method no program holds.";
|
|
14946
|
+
}, {
|
|
14947
|
+
readonly name: "ProgramsOn";
|
|
14948
|
+
readonly description: "mark: the key has programs on; turn that off first (HTTP 409).";
|
|
14949
|
+
}, {
|
|
14950
|
+
readonly name: "IsRecovery";
|
|
14951
|
+
readonly description: "setPrograms on: the method is a recovery method, or its first mark is waiting (HTTP 409).";
|
|
13785
14952
|
}];
|
|
13786
14953
|
};
|
|
13787
|
-
readonly
|
|
14954
|
+
readonly stepUp: {
|
|
13788
14955
|
readonly type: "object";
|
|
13789
|
-
readonly
|
|
14956
|
+
readonly description: "What the PDS's step-up proved.";
|
|
14957
|
+
readonly required: ["method", "provedAt"];
|
|
13790
14958
|
readonly properties: {
|
|
13791
|
-
readonly
|
|
14959
|
+
readonly method: {
|
|
14960
|
+
readonly type: "ref";
|
|
14961
|
+
readonly ref: "lex:pub.techne.draft.identity.manageMethods#provedMethod";
|
|
14962
|
+
};
|
|
14963
|
+
readonly provedAt: {
|
|
13792
14964
|
readonly type: "string";
|
|
14965
|
+
readonly format: "datetime";
|
|
13793
14966
|
};
|
|
13794
|
-
|
|
14967
|
+
};
|
|
14968
|
+
};
|
|
14969
|
+
readonly external: {
|
|
14970
|
+
readonly type: "object";
|
|
14971
|
+
readonly required: ["type", "ref"];
|
|
14972
|
+
readonly properties: {
|
|
14973
|
+
readonly type: {
|
|
13795
14974
|
readonly type: "string";
|
|
13796
|
-
readonly
|
|
13797
|
-
readonly description: "The account the hold would write as.";
|
|
14975
|
+
readonly knownValues: ["passkey", "nostr"];
|
|
13798
14976
|
};
|
|
13799
|
-
readonly
|
|
14977
|
+
readonly ref: {
|
|
14978
|
+
readonly type: "string";
|
|
14979
|
+
readonly maxLength: 512;
|
|
14980
|
+
readonly description: "The passkey credential id, or the Nostr key (hex).";
|
|
14981
|
+
};
|
|
14982
|
+
readonly label: {
|
|
14983
|
+
readonly type: "string";
|
|
14984
|
+
readonly maxLength: 128;
|
|
14985
|
+
};
|
|
14986
|
+
};
|
|
14987
|
+
};
|
|
14988
|
+
readonly notice: {
|
|
14989
|
+
readonly type: "object";
|
|
14990
|
+
readonly required: ["id", "did", "event", "to", "createdAt"];
|
|
14991
|
+
readonly properties: {
|
|
14992
|
+
readonly id: {
|
|
14993
|
+
readonly type: "integer";
|
|
14994
|
+
};
|
|
14995
|
+
readonly did: {
|
|
13800
14996
|
readonly type: "string";
|
|
13801
14997
|
readonly format: "did";
|
|
13802
14998
|
};
|
|
13803
|
-
readonly
|
|
14999
|
+
readonly event: {
|
|
13804
15000
|
readonly type: "string";
|
|
15001
|
+
readonly knownValues: ["removeMethod", "deleteAccount", "markRecovery", "freeze", "waitDropped", "programsOn"];
|
|
15002
|
+
readonly description: "What the notice is about: a change that started to wait (`removeMethod`, `deleteAccount`, `markRecovery`), a `freeze`, `waitDropped`: the change in `pending` was not completed because one of the account's methods was frozen during its wait, or `programsOn`: programs can now sign in with one of the account's Nostr keys (`setPrograms` on; no `pending`).";
|
|
13805
15003
|
};
|
|
13806
|
-
readonly
|
|
15004
|
+
readonly to: {
|
|
15005
|
+
readonly type: "ref";
|
|
15006
|
+
readonly ref: "lex:pub.techne.draft.identity.manageMethods#noticeTo";
|
|
15007
|
+
};
|
|
15008
|
+
readonly pending: {
|
|
15009
|
+
readonly type: "ref";
|
|
15010
|
+
readonly ref: "lex:pub.techne.draft.identity.defs#pendingChange";
|
|
15011
|
+
};
|
|
15012
|
+
readonly createdAt: {
|
|
13807
15013
|
readonly type: "string";
|
|
13808
|
-
readonly format: "
|
|
15014
|
+
readonly format: "datetime";
|
|
13809
15015
|
};
|
|
13810
|
-
|
|
15016
|
+
};
|
|
15017
|
+
};
|
|
15018
|
+
readonly provedMethod: {
|
|
15019
|
+
readonly type: "object";
|
|
15020
|
+
readonly required: ["type"];
|
|
15021
|
+
readonly properties: {
|
|
15022
|
+
readonly type: {
|
|
13811
15023
|
readonly type: "string";
|
|
13812
|
-
readonly
|
|
15024
|
+
readonly knownValues: ["email", "phone", "passkey", "nostr", "recoveryCodes"];
|
|
13813
15025
|
};
|
|
13814
|
-
readonly
|
|
15026
|
+
readonly value: {
|
|
13815
15027
|
readonly type: "string";
|
|
15028
|
+
readonly maxLength: 512;
|
|
15029
|
+
readonly description: "The email or E.164 phone, the passkey credential id, or the Nostr key (hex). None for recoveryCodes.";
|
|
13816
15030
|
};
|
|
13817
|
-
|
|
13818
|
-
|
|
13819
|
-
|
|
15031
|
+
};
|
|
15032
|
+
};
|
|
15033
|
+
readonly noticeTo: {
|
|
15034
|
+
readonly type: "object";
|
|
15035
|
+
readonly required: ["type", "value"];
|
|
15036
|
+
readonly properties: {
|
|
15037
|
+
readonly type: {
|
|
15038
|
+
readonly type: "string";
|
|
15039
|
+
readonly knownValues: ["email", "phone", "nostr"];
|
|
13820
15040
|
};
|
|
13821
|
-
readonly
|
|
15041
|
+
readonly value: {
|
|
15042
|
+
readonly type: "string";
|
|
15043
|
+
};
|
|
15044
|
+
};
|
|
15045
|
+
};
|
|
15046
|
+
readonly signInMethod: {
|
|
15047
|
+
readonly type: "object";
|
|
15048
|
+
readonly description: "One way to sign in, as a page may show it before anyone has signed in: an email as `***a@***e.***m` (the last character of each dot-separated part), a phone as `•••• 97` (its last two digits), a passkey or Nostr key by its label.";
|
|
15049
|
+
readonly required: ["id", "type", "display"];
|
|
15050
|
+
readonly properties: {
|
|
15051
|
+
readonly id: {
|
|
15052
|
+
readonly type: "string";
|
|
15053
|
+
readonly description: "The method id (for `sendTo`, and the PDS's own passkey or Nostr challenge).";
|
|
15054
|
+
};
|
|
15055
|
+
readonly type: {
|
|
15056
|
+
readonly type: "string";
|
|
15057
|
+
readonly knownValues: ["email", "phone", "passkey", "nostr"];
|
|
15058
|
+
};
|
|
15059
|
+
readonly display: {
|
|
15060
|
+
readonly type: "string";
|
|
15061
|
+
};
|
|
15062
|
+
};
|
|
15063
|
+
};
|
|
15064
|
+
readonly importedEmail: {
|
|
15065
|
+
readonly type: "object";
|
|
15066
|
+
readonly required: ["email", "status"];
|
|
15067
|
+
readonly properties: {
|
|
15068
|
+
readonly email: {
|
|
15069
|
+
readonly type: "string";
|
|
15070
|
+
};
|
|
15071
|
+
readonly status: {
|
|
15072
|
+
readonly type: "string";
|
|
15073
|
+
readonly knownValues: ["marked", "boundElsewhere", "released", "invalid", "afterCutoff"];
|
|
15074
|
+
readonly description: "`marked`: an email method of the account now, marked for recovery. `boundElsewhere`: on another account, left there. `released`: the account removed it; only adding it again binds it back. `invalid`: not an email address. `afterCutoff`: verified at or after 2026-11-13T00:00:00Z, not imported (add it and mark it under the rules).";
|
|
15075
|
+
};
|
|
15076
|
+
};
|
|
15077
|
+
readonly description: "One address importBackupEmails was sent, with what happened to it.";
|
|
15078
|
+
};
|
|
15079
|
+
readonly backupEmail: {
|
|
15080
|
+
readonly type: "object";
|
|
15081
|
+
readonly description: "One backup email importBackupEmails moves, with when the PDS verified it.";
|
|
15082
|
+
readonly required: ["email", "verifiedAt"];
|
|
15083
|
+
readonly properties: {
|
|
15084
|
+
readonly email: {
|
|
15085
|
+
readonly type: "string";
|
|
15086
|
+
readonly maxLength: 320;
|
|
15087
|
+
};
|
|
15088
|
+
readonly verifiedAt: {
|
|
13822
15089
|
readonly type: "string";
|
|
13823
15090
|
readonly format: "datetime";
|
|
15091
|
+
readonly description: "When the PDS verified the address. Only one verified before 2026-11-13T00:00:00Z is imported.";
|
|
13824
15092
|
};
|
|
13825
|
-
|
|
15093
|
+
};
|
|
15094
|
+
};
|
|
15095
|
+
readonly dueDelete: {
|
|
15096
|
+
readonly type: "object";
|
|
15097
|
+
readonly description: "An account whose scheduled deletion ran on the platform: the PDS deletes its PDS account, then confirms (`dueDeletesDone`). An account already gone from the PDS counts as deleted.";
|
|
15098
|
+
readonly required: ["did", "deletedAt"];
|
|
15099
|
+
readonly properties: {
|
|
15100
|
+
readonly did: {
|
|
13826
15101
|
readonly type: "string";
|
|
13827
|
-
readonly
|
|
15102
|
+
readonly format: "did";
|
|
15103
|
+
};
|
|
15104
|
+
readonly deletedAt: {
|
|
15105
|
+
readonly type: "string";
|
|
15106
|
+
readonly format: "datetime";
|
|
15107
|
+
readonly description: "When the platform deleted its side.";
|
|
15108
|
+
};
|
|
15109
|
+
};
|
|
15110
|
+
};
|
|
15111
|
+
};
|
|
15112
|
+
} | {
|
|
15113
|
+
readonly lexicon: 1;
|
|
15114
|
+
readonly id: "pub.techne.draft.identity.openAccountPage";
|
|
15115
|
+
readonly defs: {
|
|
15116
|
+
readonly main: {
|
|
15117
|
+
readonly type: "procedure";
|
|
15118
|
+
readonly description: "A link that opens the caller's account page on their PDS already signed in, for an app to open in the system browser. The link works once, until `expiresAt` (60 seconds today). It signs in to view the page only: changing a sign-in method or deleting the account there still asks for a code or a passkey. Signed-in members only, from a browser or device session: any other bearer token (an agent token, an app's OAuth token, a program's token) is refused.";
|
|
15119
|
+
readonly output: {
|
|
15120
|
+
readonly encoding: "application/json";
|
|
15121
|
+
readonly schema: {
|
|
15122
|
+
readonly type: "object";
|
|
15123
|
+
readonly required: ["url", "expiresAt"];
|
|
15124
|
+
readonly properties: {
|
|
15125
|
+
readonly url: {
|
|
15126
|
+
readonly type: "string";
|
|
15127
|
+
readonly format: "uri";
|
|
15128
|
+
readonly maxLength: 2048;
|
|
15129
|
+
readonly description: "Open it once, before expiresAt.";
|
|
15130
|
+
};
|
|
15131
|
+
readonly expiresAt: {
|
|
15132
|
+
readonly type: "string";
|
|
15133
|
+
readonly format: "datetime";
|
|
15134
|
+
};
|
|
15135
|
+
};
|
|
13828
15136
|
};
|
|
13829
15137
|
};
|
|
15138
|
+
readonly errors: [{
|
|
15139
|
+
readonly name: "AuthenticationRequired";
|
|
15140
|
+
readonly description: "No signed-in caller.";
|
|
15141
|
+
}, {
|
|
15142
|
+
readonly name: "NotAuthorized";
|
|
15143
|
+
readonly description: "The caller's bearer token is neither a device session nor an agent token, such as an app's OAuth token (HTTP 403).";
|
|
15144
|
+
}, {
|
|
15145
|
+
readonly name: "ProgramRefused";
|
|
15146
|
+
readonly description: "The caller is an agent token or a program's token: neither opens the account page (HTTP 403).";
|
|
15147
|
+
}, {
|
|
15148
|
+
readonly name: "NotFound";
|
|
15149
|
+
readonly description: "This server has no account page for the caller: its PDS is not ours, or none is set up (HTTP 404). Open the account page without a link.";
|
|
15150
|
+
}, {
|
|
15151
|
+
readonly name: "RateLimitExceeded";
|
|
15152
|
+
readonly description: "Too many links for this account (HTTP 429).";
|
|
15153
|
+
}, {
|
|
15154
|
+
readonly name: "Unavailable";
|
|
15155
|
+
readonly description: "The PDS did not answer (HTTP 502). Open the account page without a link.";
|
|
15156
|
+
}];
|
|
13830
15157
|
};
|
|
13831
15158
|
};
|
|
13832
15159
|
} | {
|
|
@@ -14018,7 +15345,7 @@ export declare const schemas: ({
|
|
|
14018
15345
|
readonly defs: {
|
|
14019
15346
|
readonly main: {
|
|
14020
15347
|
readonly type: "procedure";
|
|
14021
|
-
readonly description: "A PDS's identity-resolver hook: which account, if any, a verified channel is bound to. Asked after the PDS has verified a one-time code for the channel and before it creates any account. Authenticated only by the `epds-signature` header (HMAC-SHA256 over `<t>\\n req\\n <path>\\n <body>` with the PDS's hook secret); no session, OAuth or service token is accepted. The response carries its own `epds-signature` (direction `res`), and a caller treats an unsigned or badly signed response as a failure. `bound` carries `did` only when the calling PDS hosts that account; otherwise the PDS must not create an account. `unavailable` (the account is deleted or taken down, or the issuer is not endorsed) never leads to creation.";
|
|
15348
|
+
readonly description: "A PDS's identity-resolver hook: which account, if any, a verified channel is bound to. Asked after the PDS has verified a one-time code for the channel and before it creates any account. Authenticated only by the `epds-signature` header (HMAC-SHA256 over `<t>\\n req\\n <path>\\n <body>` with the PDS's hook secret); no session, OAuth or service token is accepted. The response carries its own `epds-signature` (direction `res`), and a caller treats an unsigned or badly signed response as a failure. `bound` carries `did` only when the calling PDS hosts that account; otherwise the PDS must not create an account. `unavailable` (the account is deleted or taken down, or the issuer is not endorsed) never leads to creation. `unbound` with `released` names a phone number its account removed: see `released`.";
|
|
14022
15349
|
readonly input: {
|
|
14023
15350
|
readonly encoding: "application/json";
|
|
14024
15351
|
readonly schema: {
|
|
@@ -14059,6 +15386,30 @@ export declare const schemas: ({
|
|
|
14059
15386
|
readonly format: "did";
|
|
14060
15387
|
readonly description: "Present only with `bound`, and only when the calling PDS hosts the account.";
|
|
14061
15388
|
};
|
|
15389
|
+
readonly released: {
|
|
15390
|
+
readonly type: "boolean";
|
|
15391
|
+
readonly description: "Present (true) only with `unbound`: the phone number was removed from an account (identity.unlinkMethod) and nobody has bound it since. The PDS must not sign the number in to an account it kept for it before (a placeholder from an earlier sign-in); it starts a new account instead. Email channels never carry it.";
|
|
15392
|
+
};
|
|
15393
|
+
readonly releasedFrom: {
|
|
15394
|
+
readonly type: "string";
|
|
15395
|
+
readonly format: "did";
|
|
15396
|
+
readonly description: "Present only with `released`, and only when the calling PDS hosts the account that removed the number: that account's DID. A PDS that keeps an account per phone number (a placeholder) uses it to tell two placeholders apart: the old account's, which must not sign in with this number again, and the one it started for the number's new holder after the removal, which it finds by this DID and `releaseId` and signs in until the number is bound to it. Binding the number back to this account through identity.attest is refused (`ChannelReleased`).";
|
|
15397
|
+
};
|
|
15398
|
+
readonly frozen: {
|
|
15399
|
+
readonly type: "boolean";
|
|
15400
|
+
readonly description: "Present (true) only with `did`: this method of the account is frozen (identity.manageMethods `freeze`). The PDS refuses the sign-in and creates nothing; the account's other methods still sign in.";
|
|
15401
|
+
};
|
|
15402
|
+
readonly frozenUntil: {
|
|
15403
|
+
readonly type: "string";
|
|
15404
|
+
readonly format: "datetime";
|
|
15405
|
+
readonly description: "Present only with `frozen`: when the freeze ends, unless a recovery method lifts it sooner.";
|
|
15406
|
+
};
|
|
15407
|
+
readonly releaseId: {
|
|
15408
|
+
readonly type: "string";
|
|
15409
|
+
readonly minLength: 1;
|
|
15410
|
+
readonly maxLength: 64;
|
|
15411
|
+
readonly description: "Present only with `releasedFrom`: the platform's id for that removal, fresh each time the number is removed. A PDS keys the number's next holder's account on `releasedFrom` and `releaseId` together, so an account that later removed the number itself is never handed on to the holder after it.";
|
|
15412
|
+
};
|
|
14062
15413
|
};
|
|
14063
15414
|
};
|
|
14064
15415
|
};
|
|
@@ -14169,7 +15520,7 @@ export declare const schemas: ({
|
|
|
14169
15520
|
readonly defs: {
|
|
14170
15521
|
readonly main: {
|
|
14171
15522
|
readonly type: "procedure";
|
|
14172
|
-
readonly description: "Remove a sign-in method from the caller's account: its credential is revoked (`unlinked`), the channel stops signing in to this account, and its attested pub.techne.draft.contactChannel is deleted. Its next sign-in is treated as new. Refused for the account's last method.";
|
|
15523
|
+
readonly description: "Remove a sign-in method from the caller's account, by the sign-in method rules (identity.manageMethods): this method carries no step-up, so the removal always waits 7 days with notice to every method and any of them can cancel it (`status: pending`, `pending`); a recovery method is not removed this way (`RecoveryProtected`), and the last way to sign in never is. When it completes: its credential is revoked (`unlinked`), the channel stops signing in to this account, and its attested pub.techne.draft.contactChannel is deleted. Its next sign-in is treated as new. A removed phone number is marked released: identity.resolve answers `unbound` with `released` and `releasedFrom` (this account) until someone binds it, so a PDS never signs it in to this account again through a placeholder it kept, and identity.attest refuses binding it back here (`ChannelReleased`); only adding it again (identity.finishAddMethod) does. Refused for the account's last method.";
|
|
14173
15524
|
readonly input: {
|
|
14174
15525
|
readonly encoding: "application/json";
|
|
14175
15526
|
readonly schema: {
|
|
@@ -14192,6 +15543,14 @@ export declare const schemas: ({
|
|
|
14192
15543
|
readonly ok: {
|
|
14193
15544
|
readonly type: "boolean";
|
|
14194
15545
|
};
|
|
15546
|
+
readonly status: {
|
|
15547
|
+
readonly type: "string";
|
|
15548
|
+
readonly knownValues: ["pending"];
|
|
15549
|
+
};
|
|
15550
|
+
readonly pending: {
|
|
15551
|
+
readonly type: "ref";
|
|
15552
|
+
readonly ref: "lex:pub.techne.draft.identity.defs#pendingChange";
|
|
15553
|
+
};
|
|
14195
15554
|
};
|
|
14196
15555
|
};
|
|
14197
15556
|
};
|
|
@@ -14203,7 +15562,10 @@ export declare const schemas: ({
|
|
|
14203
15562
|
readonly description: "No such method on the caller's account.";
|
|
14204
15563
|
}, {
|
|
14205
15564
|
readonly name: "LastMethod";
|
|
14206
|
-
readonly description: "It is the account's only sign-in method.";
|
|
15565
|
+
readonly description: "It is the account's only sign-in method (counting those already waiting to be removed).";
|
|
15566
|
+
}, {
|
|
15567
|
+
readonly name: "RecoveryProtected";
|
|
15568
|
+
readonly description: "It is a recovery method; only a recovery method removes it (identity.manageMethods).";
|
|
14207
15569
|
}];
|
|
14208
15570
|
};
|
|
14209
15571
|
};
|
|
@@ -14424,7 +15786,7 @@ export declare const schemas: ({
|
|
|
14424
15786
|
readonly addedBy: {
|
|
14425
15787
|
readonly type: "string";
|
|
14426
15788
|
readonly format: "did";
|
|
14427
|
-
readonly description: "The member on whose initiative the authority authored this claim. Attribution DATA carried in the claim body
|
|
15789
|
+
readonly description: "The member on whose initiative the authority authored this claim. Attribution DATA carried in the claim body, read by NO policy predicate (the boundedness invariant is untouched: nothing evaluates access from this field). Who sets it: whoever writes the claim with the authority's pen. A writer holding only the write leg of a circle's member space (role 20-29, who may write adds and their own claim, nothing else) must name themselves or nobody on an add, and a re-put of their own claim keeps the stored value. A writer holding manage may put any DID here (the platform checks only that it is a DID); `proposeInvite` (`xrpc/invite.rs`) stamps the caller who passed `manage` and carries it forward from the pending claim at bind. A circle founder's own claim names themself (\"Started by\"); a collective made with identity.createCollective writes its founder's claim without addedBy. Meant for in-space (permissioned) rosters only; a firehose membership claim's `addedBy` would publish \"who recruited whom\" as a new world-readable social edge with no surface asking anyone's consent for that, so no PUBLIC-collective writer stamps it. CAVEAT: deriving meaning from this field's ABSENCE would be fragile (any legacy or imported claim satisfies \"absent addedBy\" without having founded anything), so a reader must not lean on absence; the intended fix, the day one is needed, is a positive `founder` marker.";
|
|
14428
15790
|
};
|
|
14429
15791
|
readonly createdAt: {
|
|
14430
15792
|
readonly type: "string";
|
|
@@ -14678,11 +16040,11 @@ export declare const schemas: ({
|
|
|
14678
16040
|
} | {
|
|
14679
16041
|
readonly lexicon: 1;
|
|
14680
16042
|
readonly id: "pub.techne.draft.permissioned.deleteRecord";
|
|
14681
|
-
readonly description: "Delete a record from the caller's own repo (a takedown, a mistake, or a `share` the owner withdraws, which stops that reader's future reads, with a 'revoke-read' receipt once no share in its source space names it). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not), or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden; a caller whose account is being deleted, or is deleted, is refused (AccountDeleting). The body is removed; a tombstone receipt stays in listChanges, in the space the record counted in, so readers drop their copies. Deleting a record that does not exist is a no-op unless swapCid is given (then it is InvalidSwap). A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 2 MiB (2,097,152 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused write still spends one of the caller's writes (RateLimitExceeded). When the call's token carries space scopes from Techne's ePDS, the delete must name its `space`, and one the scopes do not cover is refused 403 Forbidden. Draft tier.";
|
|
16043
|
+
readonly description: "Delete a record from the caller's own repo (a takedown, a mistake, or a `share` the owner withdraws, which stops that reader's future reads, with a 'revoke-read' receipt once no share in its source space names it). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden; a caller whose account is being deleted, or is deleted, is refused (AccountDeleting). The body is removed; a tombstone receipt stays in listChanges, in the space the record counted in, so readers drop their copies. Deleting a record that does not exist is a no-op unless swapCid is given (then it is InvalidSwap) or the delete names an app's space the caller may not delete in (then it is Forbidden). A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 2 MiB (2,097,152 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused write still spends one of the caller's writes (RateLimitExceeded). When the call's token carries space scopes from Techne's ePDS, the delete must name its `space`, and one the scopes do not cover is refused 403 Forbidden. A record written for an app's space (a pub.techne.draft.space.private space) is deleted only by the app its key names or a caller whose `space:` scopes cover a delete there; any other caller is refused 403 Forbidden and nothing is deleted, the record's own writer included when the record counted in no space, and even when nothing is at the key. That includes a session or agent token that names no app or another app (an agent token without `space:` scopes, a session cookie or device session minted for another app), so such a record is changed only by its app or under a grant covering it. Draft tier.";
|
|
14682
16044
|
readonly defs: {
|
|
14683
16045
|
readonly main: {
|
|
14684
16046
|
readonly type: "procedure";
|
|
14685
|
-
readonly description: "Delete one of your own permissioned records (or a collective's or circle's whose own member space you manage). One key holds one record per space: `space` names which goes; without it, the key's one record, Conflict when there are several. A tombstone stays in listChanges so readers drop their copies. Deleting a missing record is a no-op unless swapCid is given (InvalidSwap). When the call's token carries space scopes from Techne's ePDS, the delete must name its `space`, and one the scopes do not cover is refused 403 Forbidden. Draft tier.";
|
|
16047
|
+
readonly description: "Delete one of your own permissioned records (or a collective's or circle's whose own member space you manage). One key holds one record per space: `space` names which goes; without it, the key's one record, Conflict when there are several. A tombstone stays in listChanges so readers drop their copies. Deleting a missing record is a no-op unless swapCid is given (InvalidSwap), or it names an app's space the caller may not delete in (Forbidden). When the call's token carries space scopes from Techne's ePDS, the delete must name its `space`, and one the scopes do not cover is refused 403 Forbidden. A record written for an app's space is deleted only by the app its key names or under `space:` scopes covering it: anyone else, its writer included, is 403 Forbidden. Draft tier.";
|
|
14686
16048
|
readonly input: {
|
|
14687
16049
|
readonly encoding: "application/json";
|
|
14688
16050
|
readonly schema: {
|
|
@@ -14734,7 +16096,10 @@ export declare const schemas: ({
|
|
|
14734
16096
|
readonly description: "HTTP 400. Malformed parameters. Also HTTP 413, 415, 400 or 422 for a request body that is not the method's input (see the description).";
|
|
14735
16097
|
}, {
|
|
14736
16098
|
readonly name: "Forbidden";
|
|
14737
|
-
readonly description: "HTTP 403. repo is not the caller's own.";
|
|
16099
|
+
readonly description: "HTTP 403. repo is not the caller's own (or a collective's or circle's the caller may write as, see the description); or the call's `space:` scopes do not cover the delete; or the record was written for an app's space (pub.techne.draft.space.private) and the caller is neither the app its key names nor holds `space:` scopes covering a delete there. Nothing is deleted.";
|
|
16100
|
+
}, {
|
|
16101
|
+
readonly name: "LastManager";
|
|
16102
|
+
readonly description: "HTTP 409. The write, as a circle, would leave it with members and nobody at role >= 30. Make someone else manager first. Nothing is written.";
|
|
14738
16103
|
}, {
|
|
14739
16104
|
readonly name: "AccountDeleting";
|
|
14740
16105
|
readonly description: "HTTP 403. The caller's account is being deleted, or is deleted. Nothing is written.";
|
|
@@ -15081,11 +16446,11 @@ export declare const schemas: ({
|
|
|
15081
16446
|
} | {
|
|
15082
16447
|
readonly lexicon: 1;
|
|
15083
16448
|
readonly id: "pub.techne.draft.permissioned.putRecord";
|
|
15084
|
-
readonly description: "Write a record into the caller's own repo, as a permissioned record (the generic private write). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not), or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden: a record is only ever written into its writer's repo. There is no write gate and no collection check: any collection may be written, for any space
|
|
16449
|
+
readonly description: "Write a record into the caller's own repo, as a permissioned record (the generic private write). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden: a record is only ever written into its writer's repo. There is no write gate on a first write and no collection check: any collection may be written, for any space, and a first write is never refused for its space. Replacing a record already written for an app's space (a pub.techne.draft.space.private space) is: only the app its key names, or a caller whose `space:` scopes cover a put there, may replace it; any other caller is refused 403 Forbidden and nothing is written, the record's own writer included when the record counted in no space. That includes a session or agent token that names no app or another app (an agent token without `space:` scopes, a session cookie or device session minted for another app), so such a record is changed only by its app or under a grant covering it. One collection is refused there: one of the platform's own record types named for an app's space (pub.techne.draft.space.private) is refused as InvalidRequest, since our own types keep their declared homes (the adopted community.lexicon.calendar.event and .rsvp are not refused there: they are the app's own data, and an RSVP there projects no claim). Otherwise what it counts for is the managing app's admission of the version as it is written: the record counts in the `space` it names only when that space's write policy admits the writer and, for a collection with a published lexicon, the space type declares the collection; it is then read by whoever the space's read policy admits. A record for a pub.techne.draft.space.private space counts there only when written by the app its key names (the managing app) or by a caller whose `space:` scopes cover that space; written by anyone else it is stored and counts in no space (the output has no `space`). Otherwise it is stored in the writer's repo, counts in no space, and only its writer reads it; write it again to ask again (for an app's space only the callers that may replace a record there can). A write into a space whose authority's account is being deleted, or is deleted, is stored the same way and counts in no space (the space goes with that account). A caller whose own account is being deleted, or is deleted, is refused (AccountDeleting). The output's `space` says where it counts. A source keeps what it does not publish in its own pub.techne.draft.space.source (at://{source}/pub.techne.draft.space.source/self): its permissioned descriptions, the `share`s naming its readers (writing one admits its subject, who gets a 'granted' receipt; deleting the last one naming a reader gives a 'revoke-read'. A share keeps one space per key, so it is never moved out of the space: writing it for another space is refused as Conflict), and a scraper's raw payloads and crawl state. A body in a collection with a published lexicon must satisfy it (InvalidRequest otherwise); any other collection is stored as written. Writing the current version again for the same space records no new version: if it counts there it is a no-op; if it was not admitted, admission is asked again, and a version admitted now is placed in the space with a receipt. In an app's space this holds only for the callers that may replace a record there; anyone else's write of the same version is refused Forbidden. A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 2 MiB (2,097,152 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused write still spends one of the caller's writes (RateLimitExceeded). When the call's token carries space scopes from Techne's ePDS, a write to a space they do not cover is refused 403 Forbidden. `space` is required: a write that names no space is refused as InvalidRequest (HTTP 400; for putRecords the whole call, and nothing is written), since public records are written with com.atproto.repo.putRecord and a record only the caller reads goes in its own pub.techne.draft.space.personal. Records written before this rule with no space stay stored and readable by their writer. Draft tier.";
|
|
15085
16450
|
readonly defs: {
|
|
15086
16451
|
readonly main: {
|
|
15087
16452
|
readonly type: "procedure";
|
|
15088
|
-
readonly description: "Write one record into your own repo (or a collective's or circle's whose own member space you manage) as a permissioned record, for the `space` it names (required: no space is InvalidRequest; public records go through com.atproto.repo.putRecord, and a record only you read goes in your space.personal). Any collection; a body of a collection with a published lexicon must satisfy it. It counts in that space only when the space's write policy admits you (and, for one of our own types, the space type declares the collection); otherwise it is stored and only you read it. A write is never refused for its space. A pub.techne.draft.space.private record counts there only when written by the app its key names; else it counts in no space. The output's `space` says where it counts. Writing the current version again is a no-op. One write of your rate (RateLimitExceeded). A token with space scopes from Techne's ePDS: a write to a space they do not cover is 403 Forbidden. Draft tier.";
|
|
16453
|
+
readonly description: "Write one record into your own repo (or a collective's or circle's whose own member space you manage; a circle member holding only its write leg writes membership adds and their own claim) as a permissioned record, for the `space` it names (required: no space is InvalidRequest; public records go through com.atproto.repo.putRecord, and a record only you read goes in your space.personal). Any collection; a body of a collection with a published lexicon must satisfy it. It counts in that space only when the space's write policy admits you (and, for one of our own types, the space type declares the collection); otherwise it is stored and only you read it. A first write is never refused for its space. A pub.techne.draft.space.private record counts there only when written by the app its key names (or under `space:` scopes covering it); else it counts in no space. Replacing a record already written there needs that app or those scopes: anyone else, its writer included, is 403 Forbidden. The output's `space` says where it counts. Writing the current version again is a no-op (in an app's space, only for that app or under covering scopes; else Forbidden). One write of your rate (RateLimitExceeded). A token with space scopes from Techne's ePDS: a write to a space they do not cover is 403 Forbidden. Draft tier.";
|
|
15089
16454
|
readonly input: {
|
|
15090
16455
|
readonly encoding: "application/json";
|
|
15091
16456
|
readonly schema: {
|
|
@@ -15165,7 +16530,10 @@ export declare const schemas: ({
|
|
|
15165
16530
|
readonly description: "HTTP 400. Malformed input (no `space`: name one, since public records go through com.atproto.repo.putRecord; a bad DID, NSID, record key or space address, a record whose $type is not collection, or one with no DAG-CBOR form), or a body that fails its collection's published lexicon. Also HTTP 413, 415, 400 or 422 for a request body that is not the method's input (see the description).";
|
|
15166
16531
|
}, {
|
|
15167
16532
|
readonly name: "Forbidden";
|
|
15168
|
-
readonly description: "HTTP 403. repo is not the caller's own.";
|
|
16533
|
+
readonly description: "HTTP 403. repo is not the caller's own (or a collective's or circle's the caller may write as, see the description); or the call's `space:` scopes do not cover the write; or the write replaces a record already written for an app's space (pub.techne.draft.space.private) and the caller is neither the app its key names nor holds `space:` scopes covering a put there. A first write is never refused for its space. Nothing is written.";
|
|
16534
|
+
}, {
|
|
16535
|
+
readonly name: "LastManager";
|
|
16536
|
+
readonly description: "HTTP 409. The write, as a circle, would leave it with members and nobody at role >= 30. Make someone else manager first. Nothing is written.";
|
|
15169
16537
|
}, {
|
|
15170
16538
|
readonly name: "AccountDeleting";
|
|
15171
16539
|
readonly description: "HTTP 403. The caller's account is being deleted, or is deleted. Nothing is written.";
|
|
@@ -15193,11 +16561,11 @@ export declare const schemas: ({
|
|
|
15193
16561
|
} | {
|
|
15194
16562
|
readonly lexicon: 1;
|
|
15195
16563
|
readonly id: "pub.techne.draft.permissioned.putRecords";
|
|
15196
|
-
readonly description: "Write up to 200 records into the caller's own repo in one call: each write is applied in order, exactly as putRecord applies it (the same admission, receipts, no-op re-put and swapCid), each in its own transaction. NOT atomic: a write that is refused does not undo the writes before it or stop the ones after it, and each write's result says what happened to it. That is why this is not called applyWrites: atproto's com.atproto.repo.applyWrites commits all of its writes or none, and this does not (each write keeps putRecord's own per-record locking, so a batch never holds more than one record's locks). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not), or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden and nothing is written. A write refused for itself (a malformed or invalid record, a swapCid that does not match, a conflict) is reported in its result as the error putRecord would have answered, and the next write is applied. A refusal that holds for the whole call stops it with that error, and no later write is applied: the caller's account is being deleted, or is deleted (AccountDeleting; what it wrote goes with the account), or a failure inside the AppView (HTTP 500; the writes applied before it stay written, so read them back or send the batch again: writing the current version again for the same space is a no-op). Callers should treat a failed batch as all-or-nothing and send it again whole: re-putting the records that landed is a no-op, and at the move to atproto's permissioned data this method becomes the owner's own PDS com.atproto.repo.applyWrites, which is atomic. One call spends one of the caller's writes (RateLimitExceeded), whatever the number of writes it carries. A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 8 MiB (8,388,608 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON or carries no writes or more than 200; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused call still spends one of the caller's writes. Each write is checked against the token's space scopes as putRecord checks it. `space` is required: a write that names no space is refused as InvalidRequest (HTTP 400; for putRecords the whole call, and nothing is written), since public records are written with com.atproto.repo.putRecord and a record only the caller reads goes in its own pub.techne.draft.space.personal. Records written before this rule with no space stay stored and readable by their writer. Draft tier.";
|
|
16564
|
+
readonly description: "Write up to 200 records into the caller's own repo in one call: each write is applied in order, exactly as putRecord applies it (the same admission, receipts, no-op re-put and swapCid), each in its own transaction. NOT atomic: a write that is refused does not undo the writes before it or stop the ones after it, and each write's result says what happened to it. That is why this is not called applyWrites: atproto's com.atproto.repo.applyWrites commits all of its writes or none, and this does not (each write keeps putRecord's own per-record locking, so a batch never holds more than one record's locks). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not); in a circle (a collective whose descriptor names a circle type) a caller holding only that space's write leg (role 20-29) holds the pen for pub.techne.draft.membership writes alone: an add (a new claim at a key that holds none now, not ending, whose addedBy is the caller or absent) or the caller's own claim (its leave, or a re-put keeping its subject and addedBy); anything else as the circle is Forbidden, or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden and nothing is written. A write refused for itself (a malformed or invalid record, a swapCid that does not match, a conflict) is reported in its result as the error putRecord would have answered, and the next write is applied, except in a roster batch: one with any pub.techne.draft.membership write, in whatever repo. A roster batch of more than one write is first checked whole, and a write in it that putRecord would refuse before reading anything (malformed, over 2 MiB, failing its lexicon, or naming a space it cannot be written into) refuses the call as InvalidRequest (HTTP 400) with nothing written; it then stops at its first refused write, and every write after that one is reported as Conflict and not written. Since any prefix of a roster batch may be what is left written, a batch written as a circle that has a manager must keep one after every prefix of its membership writes (see LastManager), not only after the whole batch: to make someone else manager, put their membership at role 30 or above before the caller's own lower one. A refusal that holds for the whole call stops it with that error, and no later write is applied: the caller's account is being deleted, or is deleted (AccountDeleting; what it wrote goes with the account), or a failure inside the AppView (HTTP 500; the writes applied before it stay written, so read them back or send the batch again: writing the current version again for the same space is a no-op). Callers should treat a failed batch as all-or-nothing and send it again whole: re-putting the records that landed is a no-op (in an app's space only for its app or under `space:` scopes covering it; anyone else's re-put there is Forbidden), and at the move to atproto's permissioned data this method becomes the owner's own PDS com.atproto.repo.applyWrites, which is atomic. One call spends one of the caller's writes (RateLimitExceeded), whatever the number of writes it carries. A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 8 MiB (8,388,608 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON or carries no writes or more than 200; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused call still spends one of the caller's writes. Each write is checked against the token's space scopes as putRecord checks it, and a write that replaces a record already written for an app's space (a pub.techne.draft.space.private space) by a caller that is neither the app its key names nor holds `space:` scopes covering a put there is refused as putRecord refuses it; either refusal is that write's result (Forbidden), and the next write is applied (in a roster batch, the writes after it are Conflict, not written). A first write is never refused for its space. `space` is required: a write that names no space is refused as InvalidRequest (HTTP 400; for putRecords the whole call, and nothing is written), since public records are written with com.atproto.repo.putRecord and a record only the caller reads goes in its own pub.techne.draft.space.personal. Records written before this rule with no space stay stored and readable by their writer. Draft tier.";
|
|
15197
16565
|
readonly defs: {
|
|
15198
16566
|
readonly main: {
|
|
15199
16567
|
readonly type: "procedure";
|
|
15200
|
-
readonly description: "Up to 200 putRecord writes, applied in order, each in its own transaction, for one write of your rate. Not atomic: each write's result says what happened to it, and a write refused for itself does not stop the others (AccountDeleting or an HTTP 500 stops the rest). Send a failed batch again whole: re-putting what landed is a no-op. Space scopes and space.private apply to each write as in putRecord. Every write names its `space` (a write with none refuses the whole call, InvalidRequest; public records go through com.atproto.repo.putRecord). Draft tier.";
|
|
16568
|
+
readonly description: "Up to 200 putRecord writes, applied in order, each in its own transaction, for one write of your rate. Not atomic: each write's result says what happened to it, and a write refused for itself does not stop the others (AccountDeleting or an HTTP 500 stops the rest), except in a roster batch (one with any pub.techne.draft.membership write), which stops at its first refused write and reports each later one as Conflict, not written; as a circle, every prefix of its membership writes must keep the circle a manager. Send a failed batch again whole: re-putting what landed is a no-op (in an app's space, only for its app or under covering scopes). Space scopes and space.private apply to each write as in putRecord: a first write is never refused for its space, but replacing a record already written for an app's space needs the app its key names or `space:` scopes covering it, and that write's result is Forbidden. Every write names its `space` (a write with none refuses the whole call, InvalidRequest; public records go through com.atproto.repo.putRecord). Draft tier.";
|
|
15201
16569
|
readonly input: {
|
|
15202
16570
|
readonly encoding: "application/json";
|
|
15203
16571
|
readonly schema: {
|
|
@@ -15245,7 +16613,10 @@ export declare const schemas: ({
|
|
|
15245
16613
|
readonly description: "HTTP 400. Malformed input (a bad repo DID, no writes or more than 200, or a write with no `space`: name one, since public records go through com.atproto.repo.putRecord; nothing is written). Also HTTP 413, 415, 400 or 422 for a request body that is not the method's input (see the description). A write that is malformed on its own is reported in its result instead.";
|
|
15246
16614
|
}, {
|
|
15247
16615
|
readonly name: "Forbidden";
|
|
15248
|
-
readonly description: "HTTP 403. repo is not the caller's own. Nothing is written.";
|
|
16616
|
+
readonly description: "HTTP 403. repo is not the caller's own (or a collective's or circle's the caller may write as, see the description). Nothing is written.";
|
|
16617
|
+
}, {
|
|
16618
|
+
readonly name: "LastManager";
|
|
16619
|
+
readonly description: "HTTP 409. The write, as a circle, would leave it with members and nobody at role >= 30, after the whole batch or after any prefix of its membership writes (a roster batch stops at its first refused write, so any prefix may be what is left written). Make someone else manager first. Nothing is written.";
|
|
15249
16620
|
}, {
|
|
15250
16621
|
readonly name: "AccountDeleting";
|
|
15251
16622
|
readonly description: "HTTP 403. The caller's account is being deleted, or is deleted. Nothing more is written; writes applied before the deletion began go with the account.";
|
|
@@ -15328,8 +16699,8 @@ export declare const schemas: ({
|
|
|
15328
16699
|
readonly properties: {
|
|
15329
16700
|
readonly error: {
|
|
15330
16701
|
readonly type: "string";
|
|
15331
|
-
readonly 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)
|
|
15332
|
-
readonly knownValues: ["InvalidRequest", "InvalidSwap", "Conflict", "IdentityConflict", "DuplicatePhone"];
|
|
16702
|
+
readonly description: "InvalidRequest (malformed, a body that fails its collection's published lexicon, or a record over 2 MiB, more than a putRecord body may be), InvalidSwap (swapCid did not match the current version), Conflict (the same key holds a public record in the caller's repo, or a concurrent write replaced this version before it was recorded), IdentityConflict (the write would change a contact's identity, which writing again never fixes; see putRecord), DuplicatePhone (a contact write introduces a number another of the caller's active contacts carries; see putRecord), RateLimitExceeded (a contact write that binds a number to an account found the caller's phone lookups spent; retry it in a minute) or Forbidden (the call's `space:` scopes do not cover the write, or it replaces a record already written for an app's space and the caller is neither the app its key names nor holds `space:` scopes covering it; see putRecord).";
|
|
16703
|
+
readonly knownValues: ["InvalidRequest", "InvalidSwap", "Conflict", "IdentityConflict", "DuplicatePhone", "RateLimitExceeded", "Forbidden"];
|
|
15333
16704
|
};
|
|
15334
16705
|
readonly message: {
|
|
15335
16706
|
readonly type: "string";
|
|
@@ -16983,7 +18354,7 @@ export declare const schemas: ({
|
|
|
16983
18354
|
readonly defs: {
|
|
16984
18355
|
readonly main: {
|
|
16985
18356
|
readonly type: "procedure";
|
|
16986
|
-
readonly description: "Operator only. Stop indexing one author's records of a community or requested type, and remove the ones this platform indexed. The block outlives the author's account here, so neither the firehose nor a backfill brings the records back. Other authors' records of the type are untouched. The records stay in the author's repo; this platform stops serving them.";
|
|
18357
|
+
readonly description: "Operator only, with the moderate scope. Stop indexing one author's records of a community or requested type, and remove the ones this platform indexed. The block outlives the author's account here, so neither the firehose nor a backfill brings the records back. Other authors' records of the type are untouched. The records stay in the author's repo; this platform stops serving them.";
|
|
16987
18358
|
readonly input: {
|
|
16988
18359
|
readonly encoding: "application/json";
|
|
16989
18360
|
readonly schema: {
|
|
@@ -17040,11 +18411,17 @@ export declare const schemas: ({
|
|
|
17040
18411
|
readonly name: "AuthenticationRequired";
|
|
17041
18412
|
readonly description: "Blocking is a signed-in act.";
|
|
17042
18413
|
}, {
|
|
17043
|
-
readonly name: "
|
|
17044
|
-
readonly description: "The caller is not an operator of this platform.";
|
|
18414
|
+
readonly name: "NotAuthorized";
|
|
18415
|
+
readonly description: "The caller is not an operator of this platform, or the call does not carry the moderate scope (HTTP 403).";
|
|
18416
|
+
}, {
|
|
18417
|
+
readonly name: "ProgramRefused";
|
|
18418
|
+
readonly description: "The caller is a program's token: a program never reaches an operator method (HTTP 403).";
|
|
17045
18419
|
}, {
|
|
17046
18420
|
readonly name: "UnknownType";
|
|
17047
18421
|
readonly description: "`nsid` names no community or requested type (our own types are not limited).";
|
|
18422
|
+
}, {
|
|
18423
|
+
readonly name: "InvalidRequest";
|
|
18424
|
+
readonly description: "`reason` is blank or over 1000 characters, or `author` is not a DID (HTTP 400).";
|
|
17048
18425
|
}];
|
|
17049
18426
|
};
|
|
17050
18427
|
};
|
|
@@ -17626,7 +19003,7 @@ export declare const schemas: ({
|
|
|
17626
19003
|
readonly defs: {
|
|
17627
19004
|
readonly main: {
|
|
17628
19005
|
readonly type: "procedure";
|
|
17629
|
-
readonly description: "Operator only. Stop indexing a community or requested type and remove every record of it this platform indexed. The type is marked blocked (it is no longer loaded, searched or listed, except in listTypes filtered to its creator (`creator`) and in getType, which still answer it as blocked) and put on the block list, so neither the firehose nor a backfill brings its records back. The records stay in their authors' repos; this platform stops serving them. Our own platform types cannot be purged.";
|
|
19006
|
+
readonly description: "Operator only, with the moderate scope. Stop indexing a community or requested type and remove every record of it this platform indexed. The type is marked blocked (it is no longer loaded, searched or listed, except in listTypes filtered to its creator (`creator`) and in getType, which still answer it as blocked) and put on the block list, so neither the firehose nor a backfill brings its records back. The records stay in their authors' repos; this platform stops serving them. Our own platform types cannot be purged.";
|
|
17630
19007
|
readonly input: {
|
|
17631
19008
|
readonly encoding: "application/json";
|
|
17632
19009
|
readonly schema: {
|
|
@@ -17674,11 +19051,17 @@ export declare const schemas: ({
|
|
|
17674
19051
|
readonly name: "AuthenticationRequired";
|
|
17675
19052
|
readonly description: "Purging is a signed-in act.";
|
|
17676
19053
|
}, {
|
|
17677
|
-
readonly name: "
|
|
17678
|
-
readonly description: "The caller is not an operator of this platform.";
|
|
19054
|
+
readonly name: "NotAuthorized";
|
|
19055
|
+
readonly description: "The caller is not an operator of this platform, or the call does not carry the moderate scope (HTTP 403).";
|
|
19056
|
+
}, {
|
|
19057
|
+
readonly name: "ProgramRefused";
|
|
19058
|
+
readonly description: "The caller is a program's token: a program never reaches an operator method (HTTP 403).";
|
|
17679
19059
|
}, {
|
|
17680
19060
|
readonly name: "UnknownType";
|
|
17681
19061
|
readonly description: "`nsid` names no community or requested type (our own types cannot be purged).";
|
|
19062
|
+
}, {
|
|
19063
|
+
readonly name: "InvalidRequest";
|
|
19064
|
+
readonly description: "`reason` is blank or over 1000 characters (HTTP 400).";
|
|
17682
19065
|
}];
|
|
17683
19066
|
};
|
|
17684
19067
|
};
|
|
@@ -17816,7 +19199,7 @@ export declare const schemas: ({
|
|
|
17816
19199
|
} | {
|
|
17817
19200
|
readonly lexicon: 1;
|
|
17818
19201
|
readonly id: "pub.techne.draft.rsvpNote";
|
|
17819
|
-
readonly description: "A short note a person writes with their response to a beacon (\"running 15 late\"). Authored by the responder, rkey = the rkey of the responder's own community.lexicon.calendar.rsvp, so there is at most one note per response and an edit is a re-put. Placed
|
|
19202
|
+
readonly description: "A short note a person writes with their response to a beacon (\"running 15 late\"). Authored by the responder, rkey = the rkey of the responder's own community.lexicon.calendar.rsvp, so there is at most one note per response and an edit is a re-put. Placed beside the RSVP it annotates, so it has exactly the RSVP's audience: in the beacon's pub.techne.draft.space.beacon for a going or interested answer, or in the responder's own pub.techne.draft.space.beaconDecline for a #notgoing one; when the answer changes it moves with the RSVP into the beaconDecline space, and is deleted when the answer leaves that space (never re-published to the beacon's audience). A separate record rather than a field on the community RSVP, which we adopt and never extend.";
|
|
17820
19203
|
readonly defs: {
|
|
17821
19204
|
readonly main: {
|
|
17822
19205
|
readonly type: "record";
|
|
@@ -18215,6 +19598,12 @@ export declare const schemas: ({
|
|
|
18215
19598
|
readonly maxGraphemes: 100;
|
|
18216
19599
|
readonly description: "The line, as plain text.";
|
|
18217
19600
|
};
|
|
19601
|
+
readonly emoji: {
|
|
19602
|
+
readonly type: "string";
|
|
19603
|
+
readonly maxGraphemes: 1;
|
|
19604
|
+
readonly maxLength: 64;
|
|
19605
|
+
readonly description: "Optional: one emoji for the record (a card mark and map pin glyph). A single emoji, no flags; readers fall back to their own when absent.";
|
|
19606
|
+
};
|
|
18218
19607
|
readonly createdAt: {
|
|
18219
19608
|
readonly type: "string";
|
|
18220
19609
|
readonly format: "datetime";
|
|
@@ -19722,6 +21111,7 @@ export declare const ids: {
|
|
|
19722
21111
|
readonly PubTechneDraftIdentityAccountsForPhones: "pub.techne.draft.identity.accountsForPhones";
|
|
19723
21112
|
readonly PubTechneDraftIdentityAttest: "pub.techne.draft.identity.attest";
|
|
19724
21113
|
readonly PubTechneDraftIdentityBeginAddMethod: "pub.techne.draft.identity.beginAddMethod";
|
|
21114
|
+
readonly PubTechneDraftIdentityCancelPendingChange: "pub.techne.draft.identity.cancelPendingChange";
|
|
19725
21115
|
readonly PubTechneDraftIdentityCheckLinkToken: "pub.techne.draft.identity.checkLinkToken";
|
|
19726
21116
|
readonly PubTechneDraftIdentityCreateCollective: "pub.techne.draft.identity.createCollective";
|
|
19727
21117
|
readonly PubTechneDraftIdentityCreateLinkToken: "pub.techne.draft.identity.createLinkToken";
|
|
@@ -19736,6 +21126,8 @@ export declare const ids: {
|
|
|
19736
21126
|
readonly PubTechneDraftIdentityListLinkTokens: "pub.techne.draft.identity.listLinkTokens";
|
|
19737
21127
|
readonly PubTechneDraftIdentityListMethods: "pub.techne.draft.identity.listMethods";
|
|
19738
21128
|
readonly PubTechneDraftIdentityListPhoneHolds: "pub.techne.draft.identity.listPhoneHolds";
|
|
21129
|
+
readonly PubTechneDraftIdentityManageMethods: "pub.techne.draft.identity.manageMethods";
|
|
21130
|
+
readonly PubTechneDraftIdentityOpenAccountPage: "pub.techne.draft.identity.openAccountPage";
|
|
19739
21131
|
readonly PubTechneDraftIdentityRedeemLinkToken: "pub.techne.draft.identity.redeemLinkToken";
|
|
19740
21132
|
readonly PubTechneDraftIdentityReleasePhoneHold: "pub.techne.draft.identity.releasePhoneHold";
|
|
19741
21133
|
readonly PubTechneDraftIdentityResetLinkToken: "pub.techne.draft.identity.resetLinkToken";
|