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.
Files changed (59) hide show
  1. package/CHANGELOG.md +159 -0
  2. package/README.md +3 -1
  3. package/dist/auth/account.d.ts +67 -0
  4. package/dist/auth/account.js +136 -0
  5. package/dist/auth/hosts.d.ts +4 -0
  6. package/dist/auth/hosts.js +4 -0
  7. package/dist/auth/index.d.ts +30 -5
  8. package/dist/auth/index.js +80 -12
  9. package/dist/catalog/catalog.gen.d.ts +24 -24
  10. package/dist/catalog/catalog.gen.js +1256 -85
  11. package/dist/generated/index.d.ts +9 -0
  12. package/dist/generated/index.js +27 -0
  13. package/dist/generated/lexicons.d.ts +1539 -147
  14. package/dist/generated/lexicons.js +1020 -202
  15. package/dist/generated/nsid.d.ts +18 -0
  16. package/dist/generated/nsid.js +18 -0
  17. package/dist/generated/nsid.json +18 -0
  18. package/dist/generated/types/pub/techne/draft/beacon.d.ts +2 -0
  19. package/dist/generated/types/pub/techne/draft/collective.d.ts +1 -1
  20. package/dist/generated/types/pub/techne/draft/commons/moveAccountHandle.d.ts +3 -0
  21. package/dist/generated/types/pub/techne/draft/commons/moveAccountHandle.js +7 -0
  22. package/dist/generated/types/pub/techne/draft/identity/attest.d.ts +6 -0
  23. package/dist/generated/types/pub/techne/draft/identity/attest.js +14 -0
  24. package/dist/generated/types/pub/techne/draft/identity/beginAddMethod.d.ts +6 -0
  25. package/dist/generated/types/pub/techne/draft/identity/beginAddMethod.js +14 -0
  26. package/dist/generated/types/pub/techne/draft/identity/cancelPendingChange.d.ts +29 -0
  27. package/dist/generated/types/pub/techne/draft/identity/cancelPendingChange.js +27 -0
  28. package/dist/generated/types/pub/techne/draft/identity/defs.d.ts +22 -4
  29. package/dist/generated/types/pub/techne/draft/identity/defs.js +7 -0
  30. package/dist/generated/types/pub/techne/draft/identity/finishAddMethod.d.ts +12 -0
  31. package/dist/generated/types/pub/techne/draft/identity/finishAddMethod.js +28 -0
  32. package/dist/generated/types/pub/techne/draft/identity/fold.d.ts +3 -0
  33. package/dist/generated/types/pub/techne/draft/identity/fold.js +7 -0
  34. package/dist/generated/types/pub/techne/draft/identity/holdForPhone.d.ts +1 -1
  35. package/dist/generated/types/pub/techne/draft/identity/link.d.ts +3 -0
  36. package/dist/generated/types/pub/techne/draft/identity/link.js +7 -0
  37. package/dist/generated/types/pub/techne/draft/identity/listMethods.d.ts +6 -1
  38. package/dist/generated/types/pub/techne/draft/identity/manageMethods.d.ts +225 -0
  39. package/dist/generated/types/pub/techne/draft/identity/manageMethods.js +209 -0
  40. package/dist/generated/types/pub/techne/draft/identity/openAccountPage.d.ts +40 -0
  41. package/dist/generated/types/pub/techne/draft/identity/openAccountPage.js +55 -0
  42. package/dist/generated/types/pub/techne/draft/identity/resolve.d.ts +10 -0
  43. package/dist/generated/types/pub/techne/draft/identity/unlinkMethod.d.ts +6 -0
  44. package/dist/generated/types/pub/techne/draft/identity/unlinkMethod.js +7 -0
  45. package/dist/generated/types/pub/techne/draft/membership.d.ts +1 -1
  46. package/dist/generated/types/pub/techne/draft/permissioned/deleteRecord.d.ts +3 -0
  47. package/dist/generated/types/pub/techne/draft/permissioned/deleteRecord.js +7 -0
  48. package/dist/generated/types/pub/techne/draft/permissioned/putRecord.d.ts +3 -0
  49. package/dist/generated/types/pub/techne/draft/permissioned/putRecord.js +7 -0
  50. package/dist/generated/types/pub/techne/draft/permissioned/putRecords.d.ts +5 -2
  51. package/dist/generated/types/pub/techne/draft/permissioned/putRecords.js +7 -0
  52. package/dist/generated/types/pub/techne/draft/registry/blockIndex.d.ts +7 -1
  53. package/dist/generated/types/pub/techne/draft/registry/blockIndex.js +17 -3
  54. package/dist/generated/types/pub/techne/draft/registry/purgeType.d.ts +7 -1
  55. package/dist/generated/types/pub/techne/draft/registry/purgeType.js +17 -3
  56. package/dist/generated/types/pub/techne/draft/summary.d.ts +2 -0
  57. package/dist/wasm/techne-wasm.gen.js +1 -1
  58. package/dist/wasm/techne-wasm2js.gen.js +9950 -9947
  59. package/package.json +2 -1
@@ -19,6 +19,7 @@ export declare const NSID: {
19
19
  readonly ATTENTION_PREFS: "pub.techne.draft.attentionPrefs";
20
20
  readonly AUTHORITY: "pub.techne";
21
21
  readonly AUTH_COMMONS: "pub.techne.draft.authCommons";
22
+ readonly AUTH_MODERATE: "pub.techne.draft.authModerate";
22
23
  readonly AUTH_OPERATOR: "pub.techne.draft.authOperator";
23
24
  readonly AUTH_PERMISSIONED: "pub.techne.draft.authPermissioned";
24
25
  readonly AUTH_READ: "pub.techne.draft.authRead";
@@ -82,10 +83,12 @@ export declare const NSID: {
82
83
  readonly FEED_RECIPE_SIGNAL_WEIGHT: "pub.techne.draft.feed.recipe#signalWeight";
83
84
  readonly GEO: "pub.techne.draft.geo";
84
85
  readonly HELD_AT: "pub.techne.draft.heldAt";
86
+ readonly HELD_AT_QUERY: "pub.techne.draft.heldAt.query";
85
87
  readonly IDENTITY_ACCOUNTS_FOR_PHONES: "pub.techne.draft.identity.accountsForPhones";
86
88
  readonly IDENTITY_ACCOUNTS_FOR_PHONES_ACCOUNT: "pub.techne.draft.identity.accountsForPhones#account";
87
89
  readonly IDENTITY_ATTEST: "pub.techne.draft.identity.attest";
88
90
  readonly IDENTITY_BEGIN_ADD_METHOD: "pub.techne.draft.identity.beginAddMethod";
91
+ readonly IDENTITY_CANCEL_PENDING_CHANGE: "pub.techne.draft.identity.cancelPendingChange";
89
92
  readonly IDENTITY_CHECK_LINK_TOKEN: "pub.techne.draft.identity.checkLinkToken";
90
93
  readonly IDENTITY_CREATE_COLLECTIVE: "pub.techne.draft.identity.createCollective";
91
94
  readonly IDENTITY_CREATE_LINK_TOKEN: "pub.techne.draft.identity.createLinkToken";
@@ -97,6 +100,7 @@ export declare const NSID: {
97
100
  readonly IDENTITY_DEFS_LINK_TOKEN_VIEW: "pub.techne.draft.identity.defs#linkTokenView";
98
101
  readonly IDENTITY_DEFS_LINK_VIEW: "pub.techne.draft.identity.defs#linkView";
99
102
  readonly IDENTITY_DEFS_METHOD_VIEW: "pub.techne.draft.identity.defs#methodView";
103
+ readonly IDENTITY_DEFS_PENDING_CHANGE: "pub.techne.draft.identity.defs#pendingChange";
100
104
  readonly IDENTITY_FINISH_ADD_METHOD: "pub.techne.draft.identity.finishAddMethod";
101
105
  readonly IDENTITY_FINISH_ADD_METHOD_OFFER: "pub.techne.draft.identity.finishAddMethod#offer";
102
106
  readonly IDENTITY_FOLD: "pub.techne.draft.identity.fold";
@@ -110,6 +114,17 @@ export declare const NSID: {
110
114
  readonly IDENTITY_LIST_METHODS: "pub.techne.draft.identity.listMethods";
111
115
  readonly IDENTITY_LIST_PHONE_HOLDS: "pub.techne.draft.identity.listPhoneHolds";
112
116
  readonly IDENTITY_LIST_PHONE_HOLDS_HOLD_VIEW: "pub.techne.draft.identity.listPhoneHolds#holdView";
117
+ readonly IDENTITY_MANAGE_METHODS: "pub.techne.draft.identity.manageMethods";
118
+ readonly IDENTITY_MANAGE_METHODS_BACKUP_EMAIL: "pub.techne.draft.identity.manageMethods#backupEmail";
119
+ readonly IDENTITY_MANAGE_METHODS_DUE_DELETE: "pub.techne.draft.identity.manageMethods#dueDelete";
120
+ readonly IDENTITY_MANAGE_METHODS_EXTERNAL: "pub.techne.draft.identity.manageMethods#external";
121
+ readonly IDENTITY_MANAGE_METHODS_IMPORTED_EMAIL: "pub.techne.draft.identity.manageMethods#importedEmail";
122
+ readonly IDENTITY_MANAGE_METHODS_NOTICE: "pub.techne.draft.identity.manageMethods#notice";
123
+ readonly IDENTITY_MANAGE_METHODS_NOTICE_TO: "pub.techne.draft.identity.manageMethods#noticeTo";
124
+ readonly IDENTITY_MANAGE_METHODS_PROVED_METHOD: "pub.techne.draft.identity.manageMethods#provedMethod";
125
+ readonly IDENTITY_MANAGE_METHODS_SIGN_IN_METHOD: "pub.techne.draft.identity.manageMethods#signInMethod";
126
+ readonly IDENTITY_MANAGE_METHODS_STEP_UP: "pub.techne.draft.identity.manageMethods#stepUp";
127
+ readonly IDENTITY_OPEN_ACCOUNT_PAGE: "pub.techne.draft.identity.openAccountPage";
113
128
  readonly IDENTITY_REDEEM_LINK_TOKEN: "pub.techne.draft.identity.redeemLinkToken";
114
129
  readonly IDENTITY_RELEASE_PHONE_HOLD: "pub.techne.draft.identity.releasePhoneHold";
115
130
  readonly IDENTITY_RESET_LINK_TOKEN: "pub.techne.draft.identity.resetLinkToken";
@@ -238,6 +253,8 @@ export declare const NSID: {
238
253
  readonly SOURCE_ATTRIBUTION: "pub.techne.draft.sourceAttribution";
239
254
  readonly SOURCE_REF: "pub.techne.draft.sourceRef";
240
255
  readonly SPACE_BEACON: "pub.techne.draft.space.beacon";
256
+ readonly SPACE_BEACON_DECLINE: "pub.techne.draft.space.beaconDecline";
257
+ readonly SPACE_BEACON_DECLINE_POLICY: "pub.techne.draft.space.beaconDecline.policy";
241
258
  readonly SPACE_BEACON_POLICY: "pub.techne.draft.space.beacon.policy";
242
259
  readonly SPACE_CIRCLE: "pub.techne.draft.space.circle";
243
260
  readonly SPACE_CIRCLE_POLICY: "pub.techne.draft.space.circle.policy";
@@ -489,6 +506,7 @@ export declare const METHOD: {
489
506
  readonly REGISTER_WEB_PUSH: "social.scenius.registerWebPush";
490
507
  readonly REMOVE_CONTENT: "social.scenius.removeContent";
491
508
  readonly REMOVE_GROUP_MEMBER: "social.scenius.removeGroupMember";
509
+ readonly REMOVE_PERSON: "social.scenius.removePerson";
492
510
  readonly RENAME_GROUP: "social.scenius.renameGroup";
493
511
  readonly RENAME_GROUP_DID_MEMBER: "social.scenius.renameGroup#didMember";
494
512
  readonly RENAME_GROUP_GROUP_VIEW: "social.scenius.renameGroup#groupView";
@@ -23,6 +23,7 @@ export const NSID = {
23
23
  ATTENTION_PREFS: 'pub.techne.draft.attentionPrefs',
24
24
  AUTHORITY: 'pub.techne',
25
25
  AUTH_COMMONS: 'pub.techne.draft.authCommons',
26
+ AUTH_MODERATE: 'pub.techne.draft.authModerate',
26
27
  AUTH_OPERATOR: 'pub.techne.draft.authOperator',
27
28
  AUTH_PERMISSIONED: 'pub.techne.draft.authPermissioned',
28
29
  AUTH_READ: 'pub.techne.draft.authRead',
@@ -86,10 +87,12 @@ export const NSID = {
86
87
  FEED_RECIPE_SIGNAL_WEIGHT: 'pub.techne.draft.feed.recipe#signalWeight',
87
88
  GEO: 'pub.techne.draft.geo',
88
89
  HELD_AT: 'pub.techne.draft.heldAt',
90
+ HELD_AT_QUERY: 'pub.techne.draft.heldAt.query',
89
91
  IDENTITY_ACCOUNTS_FOR_PHONES: 'pub.techne.draft.identity.accountsForPhones',
90
92
  IDENTITY_ACCOUNTS_FOR_PHONES_ACCOUNT: 'pub.techne.draft.identity.accountsForPhones#account',
91
93
  IDENTITY_ATTEST: 'pub.techne.draft.identity.attest',
92
94
  IDENTITY_BEGIN_ADD_METHOD: 'pub.techne.draft.identity.beginAddMethod',
95
+ IDENTITY_CANCEL_PENDING_CHANGE: 'pub.techne.draft.identity.cancelPendingChange',
93
96
  IDENTITY_CHECK_LINK_TOKEN: 'pub.techne.draft.identity.checkLinkToken',
94
97
  IDENTITY_CREATE_COLLECTIVE: 'pub.techne.draft.identity.createCollective',
95
98
  IDENTITY_CREATE_LINK_TOKEN: 'pub.techne.draft.identity.createLinkToken',
@@ -101,6 +104,7 @@ export const NSID = {
101
104
  IDENTITY_DEFS_LINK_TOKEN_VIEW: 'pub.techne.draft.identity.defs#linkTokenView',
102
105
  IDENTITY_DEFS_LINK_VIEW: 'pub.techne.draft.identity.defs#linkView',
103
106
  IDENTITY_DEFS_METHOD_VIEW: 'pub.techne.draft.identity.defs#methodView',
107
+ IDENTITY_DEFS_PENDING_CHANGE: 'pub.techne.draft.identity.defs#pendingChange',
104
108
  IDENTITY_FINISH_ADD_METHOD: 'pub.techne.draft.identity.finishAddMethod',
105
109
  IDENTITY_FINISH_ADD_METHOD_OFFER: 'pub.techne.draft.identity.finishAddMethod#offer',
106
110
  IDENTITY_FOLD: 'pub.techne.draft.identity.fold',
@@ -114,6 +118,17 @@ export const NSID = {
114
118
  IDENTITY_LIST_METHODS: 'pub.techne.draft.identity.listMethods',
115
119
  IDENTITY_LIST_PHONE_HOLDS: 'pub.techne.draft.identity.listPhoneHolds',
116
120
  IDENTITY_LIST_PHONE_HOLDS_HOLD_VIEW: 'pub.techne.draft.identity.listPhoneHolds#holdView',
121
+ IDENTITY_MANAGE_METHODS: 'pub.techne.draft.identity.manageMethods',
122
+ IDENTITY_MANAGE_METHODS_BACKUP_EMAIL: 'pub.techne.draft.identity.manageMethods#backupEmail',
123
+ IDENTITY_MANAGE_METHODS_DUE_DELETE: 'pub.techne.draft.identity.manageMethods#dueDelete',
124
+ IDENTITY_MANAGE_METHODS_EXTERNAL: 'pub.techne.draft.identity.manageMethods#external',
125
+ IDENTITY_MANAGE_METHODS_IMPORTED_EMAIL: 'pub.techne.draft.identity.manageMethods#importedEmail',
126
+ IDENTITY_MANAGE_METHODS_NOTICE: 'pub.techne.draft.identity.manageMethods#notice',
127
+ IDENTITY_MANAGE_METHODS_NOTICE_TO: 'pub.techne.draft.identity.manageMethods#noticeTo',
128
+ IDENTITY_MANAGE_METHODS_PROVED_METHOD: 'pub.techne.draft.identity.manageMethods#provedMethod',
129
+ IDENTITY_MANAGE_METHODS_SIGN_IN_METHOD: 'pub.techne.draft.identity.manageMethods#signInMethod',
130
+ IDENTITY_MANAGE_METHODS_STEP_UP: 'pub.techne.draft.identity.manageMethods#stepUp',
131
+ IDENTITY_OPEN_ACCOUNT_PAGE: 'pub.techne.draft.identity.openAccountPage',
117
132
  IDENTITY_REDEEM_LINK_TOKEN: 'pub.techne.draft.identity.redeemLinkToken',
118
133
  IDENTITY_RELEASE_PHONE_HOLD: 'pub.techne.draft.identity.releasePhoneHold',
119
134
  IDENTITY_RESET_LINK_TOKEN: 'pub.techne.draft.identity.resetLinkToken',
@@ -242,6 +257,8 @@ export const NSID = {
242
257
  SOURCE_ATTRIBUTION: 'pub.techne.draft.sourceAttribution',
243
258
  SOURCE_REF: 'pub.techne.draft.sourceRef',
244
259
  SPACE_BEACON: 'pub.techne.draft.space.beacon',
260
+ SPACE_BEACON_DECLINE: 'pub.techne.draft.space.beaconDecline',
261
+ SPACE_BEACON_DECLINE_POLICY: 'pub.techne.draft.space.beaconDecline.policy',
245
262
  SPACE_BEACON_POLICY: 'pub.techne.draft.space.beacon.policy',
246
263
  SPACE_CIRCLE: 'pub.techne.draft.space.circle',
247
264
  SPACE_CIRCLE_POLICY: 'pub.techne.draft.space.circle.policy',
@@ -493,6 +510,7 @@ export const METHOD = {
493
510
  REGISTER_WEB_PUSH: 'social.scenius.registerWebPush',
494
511
  REMOVE_CONTENT: 'social.scenius.removeContent',
495
512
  REMOVE_GROUP_MEMBER: 'social.scenius.removeGroupMember',
513
+ REMOVE_PERSON: 'social.scenius.removePerson',
496
514
  RENAME_GROUP: 'social.scenius.renameGroup',
497
515
  RENAME_GROUP_DID_MEMBER: 'social.scenius.renameGroup#didMember',
498
516
  RENAME_GROUP_GROUP_VIEW: 'social.scenius.renameGroup#groupView',
@@ -19,6 +19,7 @@
19
19
  "ATTENTION_PREFS": "pub.techne.draft.attentionPrefs",
20
20
  "AUTHORITY": "pub.techne",
21
21
  "AUTH_COMMONS": "pub.techne.draft.authCommons",
22
+ "AUTH_MODERATE": "pub.techne.draft.authModerate",
22
23
  "AUTH_OPERATOR": "pub.techne.draft.authOperator",
23
24
  "AUTH_PERMISSIONED": "pub.techne.draft.authPermissioned",
24
25
  "AUTH_READ": "pub.techne.draft.authRead",
@@ -82,10 +83,12 @@
82
83
  "FEED_RECIPE_SIGNAL_WEIGHT": "pub.techne.draft.feed.recipe#signalWeight",
83
84
  "GEO": "pub.techne.draft.geo",
84
85
  "HELD_AT": "pub.techne.draft.heldAt",
86
+ "HELD_AT_QUERY": "pub.techne.draft.heldAt.query",
85
87
  "IDENTITY_ACCOUNTS_FOR_PHONES": "pub.techne.draft.identity.accountsForPhones",
86
88
  "IDENTITY_ACCOUNTS_FOR_PHONES_ACCOUNT": "pub.techne.draft.identity.accountsForPhones#account",
87
89
  "IDENTITY_ATTEST": "pub.techne.draft.identity.attest",
88
90
  "IDENTITY_BEGIN_ADD_METHOD": "pub.techne.draft.identity.beginAddMethod",
91
+ "IDENTITY_CANCEL_PENDING_CHANGE": "pub.techne.draft.identity.cancelPendingChange",
89
92
  "IDENTITY_CHECK_LINK_TOKEN": "pub.techne.draft.identity.checkLinkToken",
90
93
  "IDENTITY_CREATE_COLLECTIVE": "pub.techne.draft.identity.createCollective",
91
94
  "IDENTITY_CREATE_LINK_TOKEN": "pub.techne.draft.identity.createLinkToken",
@@ -97,6 +100,7 @@
97
100
  "IDENTITY_DEFS_LINK_TOKEN_VIEW": "pub.techne.draft.identity.defs#linkTokenView",
98
101
  "IDENTITY_DEFS_LINK_VIEW": "pub.techne.draft.identity.defs#linkView",
99
102
  "IDENTITY_DEFS_METHOD_VIEW": "pub.techne.draft.identity.defs#methodView",
103
+ "IDENTITY_DEFS_PENDING_CHANGE": "pub.techne.draft.identity.defs#pendingChange",
100
104
  "IDENTITY_FINISH_ADD_METHOD": "pub.techne.draft.identity.finishAddMethod",
101
105
  "IDENTITY_FINISH_ADD_METHOD_OFFER": "pub.techne.draft.identity.finishAddMethod#offer",
102
106
  "IDENTITY_FOLD": "pub.techne.draft.identity.fold",
@@ -110,6 +114,17 @@
110
114
  "IDENTITY_LIST_METHODS": "pub.techne.draft.identity.listMethods",
111
115
  "IDENTITY_LIST_PHONE_HOLDS": "pub.techne.draft.identity.listPhoneHolds",
112
116
  "IDENTITY_LIST_PHONE_HOLDS_HOLD_VIEW": "pub.techne.draft.identity.listPhoneHolds#holdView",
117
+ "IDENTITY_MANAGE_METHODS": "pub.techne.draft.identity.manageMethods",
118
+ "IDENTITY_MANAGE_METHODS_BACKUP_EMAIL": "pub.techne.draft.identity.manageMethods#backupEmail",
119
+ "IDENTITY_MANAGE_METHODS_DUE_DELETE": "pub.techne.draft.identity.manageMethods#dueDelete",
120
+ "IDENTITY_MANAGE_METHODS_EXTERNAL": "pub.techne.draft.identity.manageMethods#external",
121
+ "IDENTITY_MANAGE_METHODS_IMPORTED_EMAIL": "pub.techne.draft.identity.manageMethods#importedEmail",
122
+ "IDENTITY_MANAGE_METHODS_NOTICE": "pub.techne.draft.identity.manageMethods#notice",
123
+ "IDENTITY_MANAGE_METHODS_NOTICE_TO": "pub.techne.draft.identity.manageMethods#noticeTo",
124
+ "IDENTITY_MANAGE_METHODS_PROVED_METHOD": "pub.techne.draft.identity.manageMethods#provedMethod",
125
+ "IDENTITY_MANAGE_METHODS_SIGN_IN_METHOD": "pub.techne.draft.identity.manageMethods#signInMethod",
126
+ "IDENTITY_MANAGE_METHODS_STEP_UP": "pub.techne.draft.identity.manageMethods#stepUp",
127
+ "IDENTITY_OPEN_ACCOUNT_PAGE": "pub.techne.draft.identity.openAccountPage",
113
128
  "IDENTITY_REDEEM_LINK_TOKEN": "pub.techne.draft.identity.redeemLinkToken",
114
129
  "IDENTITY_RELEASE_PHONE_HOLD": "pub.techne.draft.identity.releasePhoneHold",
115
130
  "IDENTITY_RESET_LINK_TOKEN": "pub.techne.draft.identity.resetLinkToken",
@@ -238,6 +253,8 @@
238
253
  "SOURCE_ATTRIBUTION": "pub.techne.draft.sourceAttribution",
239
254
  "SOURCE_REF": "pub.techne.draft.sourceRef",
240
255
  "SPACE_BEACON": "pub.techne.draft.space.beacon",
256
+ "SPACE_BEACON_DECLINE": "pub.techne.draft.space.beaconDecline",
257
+ "SPACE_BEACON_DECLINE_POLICY": "pub.techne.draft.space.beaconDecline.policy",
241
258
  "SPACE_BEACON_POLICY": "pub.techne.draft.space.beacon.policy",
242
259
  "SPACE_CIRCLE": "pub.techne.draft.space.circle",
243
260
  "SPACE_CIRCLE_POLICY": "pub.techne.draft.space.circle.policy",
@@ -488,6 +505,7 @@
488
505
  "REGISTER_WEB_PUSH": "social.scenius.registerWebPush",
489
506
  "REMOVE_CONTENT": "social.scenius.removeContent",
490
507
  "REMOVE_GROUP_MEMBER": "social.scenius.removeGroupMember",
508
+ "REMOVE_PERSON": "social.scenius.removePerson",
491
509
  "RENAME_GROUP": "social.scenius.renameGroup",
492
510
  "RENAME_GROUP_DID_MEMBER": "social.scenius.renameGroup#didMember",
493
511
  "RENAME_GROUP_GROUP_VIEW": "social.scenius.renameGroup#groupView",
@@ -9,6 +9,8 @@ export interface Main {
9
9
  note?: string;
10
10
  /** Optional: one emoji the lighter picked for this beacon (its card mark and map pin glyph). */
11
11
  emoji?: string;
12
+ /** 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. */
13
+ answerEmojis?: string[];
12
14
  createdAt: string;
13
15
  [k: string]: unknown;
14
16
  }
@@ -15,7 +15,7 @@ export interface Main {
15
15
  description?: string;
16
16
  /** Optional: one emoji (one grapheme cluster), the collective's mark. A client shows the avatar if there is one, else this emoji, else the first letter of the name. No color is stored; a client may derive one from the collective's DID. */
17
17
  emoji?: string;
18
- /** 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, where every member holds role 40 (where the platform holds the circle's credential, any member may add, remove and rename and nobody deletes it; a circle whose DID someone else holds is managed by its holder), and which a pub.techne.draft.accessRule#groupTarget may name. */
18
+ /** 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. */
19
19
  collectiveType?: string;
20
20
  /** Deprecated: the old name of collectiveType, kept so records written before 2026-10-09 still read. Writers set collectiveType only. Readers take collectiveType and fall back to sceneType when it is absent. */
21
21
  sceneType?: string;
@@ -33,6 +33,9 @@ export declare class AuthenticationRequiredError extends XRPCError {
33
33
  export declare class NotAuthorizedError extends XRPCError {
34
34
  constructor(src: XRPCError);
35
35
  }
36
+ export declare class ProgramRefusedError extends XRPCError {
37
+ constructor(src: XRPCError);
38
+ }
36
39
  export declare class InvalidRequestError extends XRPCError {
37
40
  constructor(src: XRPCError);
38
41
  }
@@ -16,6 +16,11 @@ export class NotAuthorizedError extends XRPCError {
16
16
  super(src.status, src.error, src.message, src.headers, { cause: src });
17
17
  }
18
18
  }
19
+ export class ProgramRefusedError extends XRPCError {
20
+ constructor(src) {
21
+ super(src.status, src.error, src.message, src.headers, { cause: src });
22
+ }
23
+ }
19
24
  export class InvalidRequestError extends XRPCError {
20
25
  constructor(src) {
21
26
  super(src.status, src.error, src.message, src.headers, { cause: src });
@@ -37,6 +42,8 @@ export function toKnownErr(e) {
37
42
  return new AuthenticationRequiredError(e);
38
43
  if (e.error === 'NotAuthorized')
39
44
  return new NotAuthorizedError(e);
45
+ if (e.error === 'ProgramRefused')
46
+ return new ProgramRefusedError(e);
40
47
  if (e.error === 'InvalidRequest')
41
48
  return new InvalidRequestError(e);
42
49
  if (e.error === 'HandleTaken')
@@ -42,6 +42,12 @@ export declare class UnknownAccountError extends XRPCError {
42
42
  export declare class ChannelBoundError extends XRPCError {
43
43
  constructor(src: XRPCError);
44
44
  }
45
+ export declare class ChannelReleasedError extends XRPCError {
46
+ constructor(src: XRPCError);
47
+ }
48
+ export declare class MethodFrozenError extends XRPCError {
49
+ constructor(src: XRPCError);
50
+ }
45
51
  export declare class RateLimitExceededError extends XRPCError {
46
52
  constructor(src: XRPCError);
47
53
  }
@@ -26,6 +26,16 @@ export class ChannelBoundError extends XRPCError {
26
26
  super(src.status, src.error, src.message, src.headers, { cause: src });
27
27
  }
28
28
  }
29
+ export class ChannelReleasedError extends XRPCError {
30
+ constructor(src) {
31
+ super(src.status, src.error, src.message, src.headers, { cause: src });
32
+ }
33
+ }
34
+ export class MethodFrozenError extends XRPCError {
35
+ constructor(src) {
36
+ super(src.status, src.error, src.message, src.headers, { cause: src });
37
+ }
38
+ }
29
39
  export class RateLimitExceededError extends XRPCError {
30
40
  constructor(src) {
31
41
  super(src.status, src.error, src.message, src.headers, { cause: src });
@@ -41,6 +51,10 @@ export function toKnownErr(e) {
41
51
  return new UnknownAccountError(e);
42
52
  if (e.error === 'ChannelBound')
43
53
  return new ChannelBoundError(e);
54
+ if (e.error === 'ChannelReleased')
55
+ return new ChannelReleasedError(e);
56
+ if (e.error === 'MethodFrozen')
57
+ return new MethodFrozenError(e);
44
58
  if (e.error === 'RateLimitExceeded')
45
59
  return new RateLimitExceededError(e);
46
60
  }
@@ -32,4 +32,10 @@ export declare class InvalidRequestError extends XRPCError {
32
32
  export declare class RateLimitExceededError extends XRPCError {
33
33
  constructor(src: XRPCError);
34
34
  }
35
+ export declare class MethodFrozenError extends XRPCError {
36
+ constructor(src: XRPCError);
37
+ }
38
+ export declare class SendFailedError extends XRPCError {
39
+ constructor(src: XRPCError);
40
+ }
35
41
  export declare function toKnownErr(e: any): any;
@@ -21,6 +21,16 @@ export class RateLimitExceededError extends XRPCError {
21
21
  super(src.status, src.error, src.message, src.headers, { cause: src });
22
22
  }
23
23
  }
24
+ export class MethodFrozenError extends XRPCError {
25
+ constructor(src) {
26
+ super(src.status, src.error, src.message, src.headers, { cause: src });
27
+ }
28
+ }
29
+ export class SendFailedError extends XRPCError {
30
+ constructor(src) {
31
+ super(src.status, src.error, src.message, src.headers, { cause: src });
32
+ }
33
+ }
24
34
  export function toKnownErr(e) {
25
35
  if (e instanceof XRPCError) {
26
36
  if (e.error === 'AuthenticationRequired')
@@ -29,6 +39,10 @@ export function toKnownErr(e) {
29
39
  return new InvalidRequestError(e);
30
40
  if (e.error === 'RateLimitExceeded')
31
41
  return new RateLimitExceededError(e);
42
+ if (e.error === 'MethodFrozen')
43
+ return new MethodFrozenError(e);
44
+ if (e.error === 'SendFailed')
45
+ return new SendFailedError(e);
32
46
  }
33
47
  return e;
34
48
  }
@@ -0,0 +1,29 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap, XRPCError } from '@atproto/xrpc';
5
+ export type QueryParams = {};
6
+ export interface InputSchema {
7
+ id: string;
8
+ }
9
+ export interface OutputSchema {
10
+ ok: boolean;
11
+ }
12
+ export interface CallOptions {
13
+ signal?: AbortSignal;
14
+ headers?: HeadersMap;
15
+ qp?: QueryParams;
16
+ encoding?: 'application/json';
17
+ }
18
+ export interface Response {
19
+ success: boolean;
20
+ headers: HeadersMap;
21
+ data: OutputSchema;
22
+ }
23
+ export declare class AuthenticationRequiredError extends XRPCError {
24
+ constructor(src: XRPCError);
25
+ }
26
+ export declare class NotFoundError extends XRPCError {
27
+ constructor(src: XRPCError);
28
+ }
29
+ export declare function toKnownErr(e: any): any;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { XRPCError } from '@atproto/xrpc';
5
+ import { validate as _validate } from '../../../../../lexicons.js';
6
+ import { is$typed as _is$typed, } from '../../../../../util.js';
7
+ const is$typed = _is$typed, validate = _validate;
8
+ const id = 'pub.techne.draft.identity.cancelPendingChange';
9
+ export class AuthenticationRequiredError extends XRPCError {
10
+ constructor(src) {
11
+ super(src.status, src.error, src.message, src.headers, { cause: src });
12
+ }
13
+ }
14
+ export class NotFoundError extends XRPCError {
15
+ constructor(src) {
16
+ super(src.status, src.error, src.message, src.headers, { cause: src });
17
+ }
18
+ }
19
+ export function toKnownErr(e) {
20
+ if (e instanceof XRPCError) {
21
+ if (e.error === 'AuthenticationRequired')
22
+ return new AuthenticationRequiredError(e);
23
+ if (e.error === 'NotFound')
24
+ return new NotFoundError(e);
25
+ }
26
+ return e;
27
+ }
@@ -11,18 +11,36 @@ export interface Channel {
11
11
  }
12
12
  export declare function isChannel<V>(v: V): v is import("../../../../../util.js").$TypedObject<V, "pub.techne.draft.identity.defs", "channel">;
13
13
  export declare function validateChannel<V>(v: V): ValidationResult<Channel & V>;
14
- /** One sign-in method bound to the caller's account, masked. */
14
+ /** One sign-in method of the caller's account, masked. */
15
15
  export interface MethodView {
16
16
  $type?: 'pub.techne.draft.identity.defs#methodView';
17
- /** The binding id (the credential's record key). Names the method in unlinkMethod. */
17
+ /** 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. */
18
18
  bid: string;
19
- type: 'email' | 'phone' | (string & {});
20
- /** The channel with most of it hidden, e.g. `j•••@example.com`, `+1 ••• ••• 4567`. */
19
+ type: 'email' | 'phone' | 'passkey' | 'nostr' | 'recoveryCodes' | (string & {});
20
+ /** 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)`. */
21
21
  masked: string;
22
22
  boundAt: string;
23
+ /** A recovery method of this account. Private: only the account sees it. */
24
+ recovery?: boolean;
25
+ /** Frozen: it signs in nowhere until then, or until a recovery method lifts it. */
26
+ frozenUntil?: string;
27
+ /** "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. */
28
+ programs?: boolean;
23
29
  }
24
30
  export declare function isMethodView<V>(v: V): v is import("../../../../../util.js").$TypedObject<V, "pub.techne.draft.identity.defs", "methodView">;
25
31
  export declare function validateMethodView<V>(v: V): ValidationResult<MethodView & V>;
32
+ /** 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. */
33
+ export interface PendingChange {
34
+ $type?: 'pub.techne.draft.identity.defs#pendingChange';
35
+ id: string;
36
+ kind: 'removeMethod' | 'deleteAccount' | 'markRecovery' | (string & {});
37
+ /** The method it removes or marks. */
38
+ method?: string;
39
+ createdAt: string;
40
+ dueAt: string;
41
+ }
42
+ export declare function isPendingChange<V>(v: V): v is import("../../../../../util.js").$TypedObject<V, "pub.techne.draft.identity.defs", "pendingChange">;
43
+ export declare function validatePendingChange<V>(v: V): ValidationResult<PendingChange & V>;
26
44
  /** An alias link between the caller's account and another. */
27
45
  export interface LinkView {
28
46
  $type?: 'pub.techne.draft.identity.defs#linkView';
@@ -16,6 +16,13 @@ export function isMethodView(v) {
16
16
  export function validateMethodView(v) {
17
17
  return validate(v, id, hashMethodView);
18
18
  }
19
+ const hashPendingChange = 'pendingChange';
20
+ export function isPendingChange(v) {
21
+ return is$typed(v, id, hashPendingChange);
22
+ }
23
+ export function validatePendingChange(v) {
24
+ return validate(v, id, hashPendingChange);
25
+ }
19
26
  const hashLinkView = 'linkView';
20
27
  export function isLinkView(v) {
21
28
  return is$typed(v, id, hashLinkView);
@@ -31,6 +31,18 @@ export declare class AuthenticationRequiredError extends XRPCError {
31
31
  export declare class InvalidCodeError extends XRPCError {
32
32
  constructor(src: XRPCError);
33
33
  }
34
+ export declare class RateLimitExceededError extends XRPCError {
35
+ constructor(src: XRPCError);
36
+ }
37
+ export declare class MethodFrozenError extends XRPCError {
38
+ constructor(src: XRPCError);
39
+ }
40
+ export declare class ProtectedAccountError extends XRPCError {
41
+ constructor(src: XRPCError);
42
+ }
43
+ export declare class UpstreamFailureError extends XRPCError {
44
+ constructor(src: XRPCError);
45
+ }
34
46
  export declare function toKnownErr(e: any): any;
35
47
  export interface Offer {
36
48
  $type?: 'pub.techne.draft.identity.finishAddMethod#offer';
@@ -16,12 +16,40 @@ export class InvalidCodeError extends XRPCError {
16
16
  super(src.status, src.error, src.message, src.headers, { cause: src });
17
17
  }
18
18
  }
19
+ export class RateLimitExceededError extends XRPCError {
20
+ constructor(src) {
21
+ super(src.status, src.error, src.message, src.headers, { cause: src });
22
+ }
23
+ }
24
+ export class MethodFrozenError extends XRPCError {
25
+ constructor(src) {
26
+ super(src.status, src.error, src.message, src.headers, { cause: src });
27
+ }
28
+ }
29
+ export class ProtectedAccountError extends XRPCError {
30
+ constructor(src) {
31
+ super(src.status, src.error, src.message, src.headers, { cause: src });
32
+ }
33
+ }
34
+ export class UpstreamFailureError extends XRPCError {
35
+ constructor(src) {
36
+ super(src.status, src.error, src.message, src.headers, { cause: src });
37
+ }
38
+ }
19
39
  export function toKnownErr(e) {
20
40
  if (e instanceof XRPCError) {
21
41
  if (e.error === 'AuthenticationRequired')
22
42
  return new AuthenticationRequiredError(e);
23
43
  if (e.error === 'InvalidCode')
24
44
  return new InvalidCodeError(e);
45
+ if (e.error === 'RateLimitExceeded')
46
+ return new RateLimitExceededError(e);
47
+ if (e.error === 'MethodFrozen')
48
+ return new MethodFrozenError(e);
49
+ if (e.error === 'ProtectedAccount')
50
+ return new ProtectedAccountError(e);
51
+ if (e.error === 'UpstreamFailure')
52
+ return new UpstreamFailureError(e);
25
53
  }
26
54
  return e;
27
55
  }
@@ -31,6 +31,9 @@ export declare class AuthenticationRequiredError extends XRPCError {
31
31
  export declare class InvalidTokenError extends XRPCError {
32
32
  constructor(src: XRPCError);
33
33
  }
34
+ export declare class ProtectedAccountError extends XRPCError {
35
+ constructor(src: XRPCError);
36
+ }
34
37
  export declare class NotEmptyError extends XRPCError {
35
38
  constructor(src: XRPCError);
36
39
  }
@@ -16,6 +16,11 @@ export class InvalidTokenError extends XRPCError {
16
16
  super(src.status, src.error, src.message, src.headers, { cause: src });
17
17
  }
18
18
  }
19
+ export class ProtectedAccountError extends XRPCError {
20
+ constructor(src) {
21
+ super(src.status, src.error, src.message, src.headers, { cause: src });
22
+ }
23
+ }
19
24
  export class NotEmptyError extends XRPCError {
20
25
  constructor(src) {
21
26
  super(src.status, src.error, src.message, src.headers, { cause: src });
@@ -27,6 +32,8 @@ export function toKnownErr(e) {
27
32
  return new AuthenticationRequiredError(e);
28
33
  if (e.error === 'InvalidToken')
29
34
  return new InvalidTokenError(e);
35
+ if (e.error === 'ProtectedAccount')
36
+ return new ProtectedAccountError(e);
30
37
  if (e.error === 'NotEmpty')
31
38
  return new NotEmptyError(e);
32
39
  }
@@ -45,7 +45,7 @@ export interface HeldWrite {
45
45
  rkey?: string;
46
46
  /** The space the record is for, as permissioned.putRecord's `space`. Required: a public record is not held. */
47
47
  space: string;
48
- /** The record, with the "$subject" (and optionally "$now") slots as string values. */
48
+ /** The record, with the "$subject" (and optionally "$now" and "$name") slots as string values. */
49
49
  record: {
50
50
  [_ in string]: unknown;
51
51
  };
@@ -29,6 +29,9 @@ export declare class AuthenticationRequiredError extends XRPCError {
29
29
  export declare class InvalidTokenError extends XRPCError {
30
30
  constructor(src: XRPCError);
31
31
  }
32
+ export declare class ProtectedAccountError extends XRPCError {
33
+ constructor(src: XRPCError);
34
+ }
32
35
  export declare class InvalidRequestError extends XRPCError {
33
36
  constructor(src: XRPCError);
34
37
  }
@@ -16,6 +16,11 @@ export class InvalidTokenError extends XRPCError {
16
16
  super(src.status, src.error, src.message, src.headers, { cause: src });
17
17
  }
18
18
  }
19
+ export class ProtectedAccountError extends XRPCError {
20
+ constructor(src) {
21
+ super(src.status, src.error, src.message, src.headers, { cause: src });
22
+ }
23
+ }
19
24
  export class InvalidRequestError extends XRPCError {
20
25
  constructor(src) {
21
26
  super(src.status, src.error, src.message, src.headers, { cause: src });
@@ -27,6 +32,8 @@ export function toKnownErr(e) {
27
32
  return new AuthenticationRequiredError(e);
28
33
  if (e.error === 'InvalidToken')
29
34
  return new InvalidTokenError(e);
35
+ if (e.error === 'ProtectedAccount')
36
+ return new ProtectedAccountError(e);
30
37
  if (e.error === 'InvalidRequest')
31
38
  return new InvalidRequestError(e);
32
39
  }
@@ -3,11 +3,16 @@
3
3
  */
4
4
  import { HeadersMap, XRPCError } from '@atproto/xrpc';
5
5
  import type * as PubTechneDraftIdentityDefs from './defs.js';
6
- export type QueryParams = {};
6
+ export type QueryParams = {
7
+ /** Also list passkeys, Nostr keys and the recovery-code set. */
8
+ allTypes?: boolean;
9
+ };
7
10
  export type InputSchema = undefined;
8
11
  export interface OutputSchema {
9
12
  methods: PubTechneDraftIdentityDefs.MethodView[];
10
13
  links: PubTechneDraftIdentityDefs.LinkView[];
14
+ /** The account's pending changes, soonest first (the account page shows them at the top, with Cancel). */
15
+ pending?: PubTechneDraftIdentityDefs.PendingChange[];
11
16
  }
12
17
  export interface CallOptions {
13
18
  signal?: AbortSignal;