@atproto/pds 0.4.29 → 0.4.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (206) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/account-manager/helpers/account.d.ts +13 -1
  3. package/dist/account-manager/helpers/account.d.ts.map +1 -1
  4. package/dist/account-manager/helpers/account.js +24 -7
  5. package/dist/account-manager/helpers/account.js.map +1 -1
  6. package/dist/account-manager/index.d.ts +4 -1
  7. package/dist/account-manager/index.d.ts.map +1 -1
  8. package/dist/account-manager/index.js +2 -2
  9. package/dist/account-manager/index.js.map +1 -1
  10. package/dist/api/app/bsky/actor/getPreferences.js +1 -1
  11. package/dist/api/app/bsky/actor/getPreferences.js.map +1 -1
  12. package/dist/api/app/bsky/actor/getProfile.js +1 -1
  13. package/dist/api/app/bsky/actor/getProfile.js.map +1 -1
  14. package/dist/api/app/bsky/actor/getProfiles.js +1 -1
  15. package/dist/api/app/bsky/actor/getProfiles.js.map +1 -1
  16. package/dist/api/app/bsky/actor/putPreferences.js +1 -1
  17. package/dist/api/app/bsky/actor/putPreferences.js.map +1 -1
  18. package/dist/api/app/bsky/feed/getActorLikes.js +1 -1
  19. package/dist/api/app/bsky/feed/getActorLikes.js.map +1 -1
  20. package/dist/api/app/bsky/feed/getAuthorFeed.js +1 -1
  21. package/dist/api/app/bsky/feed/getAuthorFeed.js.map +1 -1
  22. package/dist/api/app/bsky/feed/getFeed.js +1 -1
  23. package/dist/api/app/bsky/feed/getFeed.js.map +1 -1
  24. package/dist/api/app/bsky/feed/getPostThread.js +1 -1
  25. package/dist/api/app/bsky/feed/getPostThread.js.map +1 -1
  26. package/dist/api/app/bsky/feed/getTimeline.js +1 -1
  27. package/dist/api/app/bsky/feed/getTimeline.js.map +1 -1
  28. package/dist/api/app/bsky/notification/registerPush.d.ts.map +1 -1
  29. package/dist/api/app/bsky/notification/registerPush.js +4 -1
  30. package/dist/api/app/bsky/notification/registerPush.js.map +1 -1
  31. package/dist/api/chat/index.js +14 -14
  32. package/dist/api/chat/index.js.map +1 -1
  33. package/dist/api/com/atproto/admin/getAccountInfo.d.ts.map +1 -1
  34. package/dist/api/com/atproto/admin/getAccountInfo.js +1 -0
  35. package/dist/api/com/atproto/admin/getAccountInfo.js.map +1 -1
  36. package/dist/api/com/atproto/admin/getSubjectStatus.d.ts.map +1 -1
  37. package/dist/api/com/atproto/admin/getSubjectStatus.js +4 -3
  38. package/dist/api/com/atproto/admin/getSubjectStatus.js.map +1 -1
  39. package/dist/api/com/atproto/admin/updateSubjectStatus.d.ts.map +1 -1
  40. package/dist/api/com/atproto/admin/updateSubjectStatus.js +11 -1
  41. package/dist/api/com/atproto/admin/updateSubjectStatus.js.map +1 -1
  42. package/dist/api/com/atproto/identity/getRecommendedDidCredentials.js +1 -1
  43. package/dist/api/com/atproto/identity/getRecommendedDidCredentials.js.map +1 -1
  44. package/dist/api/com/atproto/identity/requestPlcOperationSignature.js +1 -1
  45. package/dist/api/com/atproto/identity/requestPlcOperationSignature.js.map +1 -1
  46. package/dist/api/com/atproto/identity/signPlcOperation.js +1 -1
  47. package/dist/api/com/atproto/identity/signPlcOperation.js.map +1 -1
  48. package/dist/api/com/atproto/identity/submitPlcOperation.js +1 -1
  49. package/dist/api/com/atproto/identity/submitPlcOperation.js.map +1 -1
  50. package/dist/api/com/atproto/identity/updateHandle.js +1 -1
  51. package/dist/api/com/atproto/identity/updateHandle.js.map +1 -1
  52. package/dist/api/com/atproto/repo/applyWrites.d.ts.map +1 -1
  53. package/dist/api/com/atproto/repo/applyWrites.js +4 -1
  54. package/dist/api/com/atproto/repo/applyWrites.js.map +1 -1
  55. package/dist/api/com/atproto/repo/createRecord.d.ts.map +1 -1
  56. package/dist/api/com/atproto/repo/createRecord.js +4 -1
  57. package/dist/api/com/atproto/repo/createRecord.js.map +1 -1
  58. package/dist/api/com/atproto/repo/deleteRecord.d.ts.map +1 -1
  59. package/dist/api/com/atproto/repo/deleteRecord.js +4 -1
  60. package/dist/api/com/atproto/repo/deleteRecord.js.map +1 -1
  61. package/dist/api/com/atproto/repo/importRepo.d.ts.map +1 -1
  62. package/dist/api/com/atproto/repo/importRepo.js +3 -1
  63. package/dist/api/com/atproto/repo/importRepo.js.map +1 -1
  64. package/dist/api/com/atproto/repo/listMissingBlobs.js +1 -1
  65. package/dist/api/com/atproto/repo/listMissingBlobs.js.map +1 -1
  66. package/dist/api/com/atproto/repo/putRecord.d.ts.map +1 -1
  67. package/dist/api/com/atproto/repo/putRecord.js +4 -1
  68. package/dist/api/com/atproto/repo/putRecord.js.map +1 -1
  69. package/dist/api/com/atproto/repo/uploadBlob.d.ts.map +1 -1
  70. package/dist/api/com/atproto/repo/uploadBlob.js +3 -1
  71. package/dist/api/com/atproto/repo/uploadBlob.js.map +1 -1
  72. package/dist/api/com/atproto/server/activateAccount.js +1 -1
  73. package/dist/api/com/atproto/server/activateAccount.js.map +1 -1
  74. package/dist/api/com/atproto/server/checkAccountStatus.js +1 -1
  75. package/dist/api/com/atproto/server/checkAccountStatus.js.map +1 -1
  76. package/dist/api/com/atproto/server/confirmEmail.js +1 -1
  77. package/dist/api/com/atproto/server/confirmEmail.js.map +1 -1
  78. package/dist/api/com/atproto/server/createAppPassword.d.ts.map +1 -1
  79. package/dist/api/com/atproto/server/createAppPassword.js +3 -1
  80. package/dist/api/com/atproto/server/createAppPassword.js.map +1 -1
  81. package/dist/api/com/atproto/server/createSession.d.ts.map +1 -1
  82. package/dist/api/com/atproto/server/createSession.js +2 -0
  83. package/dist/api/com/atproto/server/createSession.js.map +1 -1
  84. package/dist/api/com/atproto/server/deactivateAccount.js +1 -1
  85. package/dist/api/com/atproto/server/deactivateAccount.js.map +1 -1
  86. package/dist/api/com/atproto/server/getAccountInviteCodes.js +1 -1
  87. package/dist/api/com/atproto/server/getAccountInviteCodes.js.map +1 -1
  88. package/dist/api/com/atproto/server/getServiceAuth.js +1 -1
  89. package/dist/api/com/atproto/server/getServiceAuth.js.map +1 -1
  90. package/dist/api/com/atproto/server/getSession.d.ts.map +1 -1
  91. package/dist/api/com/atproto/server/getSession.js +7 -2
  92. package/dist/api/com/atproto/server/getSession.js.map +1 -1
  93. package/dist/api/com/atproto/server/listAppPasswords.js +1 -1
  94. package/dist/api/com/atproto/server/listAppPasswords.js.map +1 -1
  95. package/dist/api/com/atproto/server/refreshSession.d.ts.map +1 -1
  96. package/dist/api/com/atproto/server/refreshSession.js +2 -0
  97. package/dist/api/com/atproto/server/refreshSession.js.map +1 -1
  98. package/dist/api/com/atproto/server/requestAccountDelete.js +1 -1
  99. package/dist/api/com/atproto/server/requestAccountDelete.js.map +1 -1
  100. package/dist/api/com/atproto/server/requestEmailConfirmation.js +1 -1
  101. package/dist/api/com/atproto/server/requestEmailConfirmation.js.map +1 -1
  102. package/dist/api/com/atproto/server/requestEmailUpdate.js +1 -1
  103. package/dist/api/com/atproto/server/requestEmailUpdate.js.map +1 -1
  104. package/dist/api/com/atproto/server/revokeAppPassword.js +1 -1
  105. package/dist/api/com/atproto/server/revokeAppPassword.js.map +1 -1
  106. package/dist/api/com/atproto/server/updateEmail.js +1 -1
  107. package/dist/api/com/atproto/server/updateEmail.js.map +1 -1
  108. package/dist/api/com/atproto/sync/getRepoStatus.js +1 -1
  109. package/dist/api/com/atproto/sync/getRepoStatus.js.map +1 -1
  110. package/dist/api/com/atproto/sync/listRepos.js +2 -2
  111. package/dist/api/com/atproto/sync/listRepos.js.map +1 -1
  112. package/dist/api/com/atproto/sync/util.d.ts +1 -8
  113. package/dist/api/com/atproto/sync/util.d.ts.map +1 -1
  114. package/dist/api/com/atproto/sync/util.js +1 -17
  115. package/dist/api/com/atproto/sync/util.js.map +1 -1
  116. package/dist/api/com/atproto/temp/checkSignupQueue.d.ts.map +1 -1
  117. package/dist/api/com/atproto/temp/checkSignupQueue.js +4 -1
  118. package/dist/api/com/atproto/temp/checkSignupQueue.js.map +1 -1
  119. package/dist/auth-verifier.d.ts +13 -7
  120. package/dist/auth-verifier.d.ts.map +1 -1
  121. package/dist/auth-verifier.js +29 -46
  122. package/dist/auth-verifier.js.map +1 -1
  123. package/dist/lexicon/lexicons.d.ts +44 -0
  124. package/dist/lexicon/lexicons.d.ts.map +1 -1
  125. package/dist/lexicon/lexicons.js +44 -0
  126. package/dist/lexicon/lexicons.js.map +1 -1
  127. package/dist/lexicon/types/com/atproto/admin/defs.d.ts +1 -0
  128. package/dist/lexicon/types/com/atproto/admin/defs.d.ts.map +1 -1
  129. package/dist/lexicon/types/com/atproto/admin/defs.js.map +1 -1
  130. package/dist/lexicon/types/com/atproto/admin/getSubjectStatus.d.ts +1 -0
  131. package/dist/lexicon/types/com/atproto/admin/getSubjectStatus.d.ts.map +1 -1
  132. package/dist/lexicon/types/com/atproto/admin/updateSubjectStatus.d.ts +1 -0
  133. package/dist/lexicon/types/com/atproto/admin/updateSubjectStatus.d.ts.map +1 -1
  134. package/dist/lexicon/types/com/atproto/server/createSession.d.ts +3 -0
  135. package/dist/lexicon/types/com/atproto/server/createSession.d.ts.map +1 -1
  136. package/dist/lexicon/types/com/atproto/server/getSession.d.ts +3 -0
  137. package/dist/lexicon/types/com/atproto/server/getSession.d.ts.map +1 -1
  138. package/dist/lexicon/types/com/atproto/server/refreshSession.d.ts +3 -0
  139. package/dist/lexicon/types/com/atproto/server/refreshSession.d.ts.map +1 -1
  140. package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts +2 -0
  141. package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts.map +1 -1
  142. package/dist/lexicon/types/tools/ozone/moderation/defs.js.map +1 -1
  143. package/dist/pipethrough.d.ts.map +1 -1
  144. package/dist/pipethrough.js +17 -14
  145. package/dist/pipethrough.js.map +1 -1
  146. package/package.json +4 -4
  147. package/src/account-manager/helpers/account.ts +30 -6
  148. package/src/account-manager/index.ts +2 -2
  149. package/src/api/app/bsky/actor/getPreferences.ts +1 -1
  150. package/src/api/app/bsky/actor/getProfile.ts +1 -1
  151. package/src/api/app/bsky/actor/getProfiles.ts +1 -1
  152. package/src/api/app/bsky/actor/putPreferences.ts +1 -1
  153. package/src/api/app/bsky/feed/getActorLikes.ts +1 -1
  154. package/src/api/app/bsky/feed/getAuthorFeed.ts +1 -1
  155. package/src/api/app/bsky/feed/getFeed.ts +1 -1
  156. package/src/api/app/bsky/feed/getPostThread.ts +1 -1
  157. package/src/api/app/bsky/feed/getTimeline.ts +1 -1
  158. package/src/api/app/bsky/notification/registerPush.ts +4 -1
  159. package/src/api/chat/index.ts +14 -14
  160. package/src/api/com/atproto/admin/getAccountInfo.ts +1 -0
  161. package/src/api/com/atproto/admin/getSubjectStatus.ts +4 -3
  162. package/src/api/com/atproto/admin/updateSubjectStatus.ts +11 -1
  163. package/src/api/com/atproto/identity/getRecommendedDidCredentials.ts +1 -1
  164. package/src/api/com/atproto/identity/requestPlcOperationSignature.ts +1 -1
  165. package/src/api/com/atproto/identity/signPlcOperation.ts +1 -1
  166. package/src/api/com/atproto/identity/submitPlcOperation.ts +1 -1
  167. package/src/api/com/atproto/identity/updateHandle.ts +1 -1
  168. package/src/api/com/atproto/repo/applyWrites.ts +4 -1
  169. package/src/api/com/atproto/repo/createRecord.ts +4 -1
  170. package/src/api/com/atproto/repo/deleteRecord.ts +4 -1
  171. package/src/api/com/atproto/repo/importRepo.ts +3 -1
  172. package/src/api/com/atproto/repo/listMissingBlobs.ts +1 -1
  173. package/src/api/com/atproto/repo/putRecord.ts +4 -1
  174. package/src/api/com/atproto/repo/uploadBlob.ts +3 -1
  175. package/src/api/com/atproto/server/activateAccount.ts +1 -1
  176. package/src/api/com/atproto/server/checkAccountStatus.ts +1 -1
  177. package/src/api/com/atproto/server/confirmEmail.ts +1 -1
  178. package/src/api/com/atproto/server/createAppPassword.ts +3 -1
  179. package/src/api/com/atproto/server/createSession.ts +2 -0
  180. package/src/api/com/atproto/server/deactivateAccount.ts +1 -1
  181. package/src/api/com/atproto/server/getAccountInviteCodes.ts +1 -1
  182. package/src/api/com/atproto/server/getServiceAuth.ts +1 -1
  183. package/src/api/com/atproto/server/getSession.ts +7 -2
  184. package/src/api/com/atproto/server/listAppPasswords.ts +1 -1
  185. package/src/api/com/atproto/server/refreshSession.ts +2 -0
  186. package/src/api/com/atproto/server/requestAccountDelete.ts +1 -1
  187. package/src/api/com/atproto/server/requestEmailConfirmation.ts +1 -1
  188. package/src/api/com/atproto/server/requestEmailUpdate.ts +1 -1
  189. package/src/api/com/atproto/server/revokeAppPassword.ts +1 -1
  190. package/src/api/com/atproto/server/updateEmail.ts +1 -1
  191. package/src/api/com/atproto/sync/getRepoStatus.ts +2 -2
  192. package/src/api/com/atproto/sync/listRepos.ts +1 -1
  193. package/src/api/com/atproto/sync/util.ts +1 -24
  194. package/src/api/com/atproto/temp/checkSignupQueue.ts +4 -1
  195. package/src/auth-verifier.ts +62 -47
  196. package/src/lexicon/lexicons.ts +47 -0
  197. package/src/lexicon/types/com/atproto/admin/defs.ts +1 -0
  198. package/src/lexicon/types/com/atproto/admin/getSubjectStatus.ts +1 -0
  199. package/src/lexicon/types/com/atproto/admin/updateSubjectStatus.ts +1 -0
  200. package/src/lexicon/types/com/atproto/server/createSession.ts +3 -0
  201. package/src/lexicon/types/com/atproto/server/getSession.ts +3 -0
  202. package/src/lexicon/types/com/atproto/server/refreshSession.ts +3 -0
  203. package/src/lexicon/types/tools/ozone/moderation/defs.ts +2 -0
  204. package/src/pipethrough.ts +5 -4
  205. package/tests/account-deactivation.test.ts +31 -2
  206. package/tests/auth.test.ts +3 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @atproto/pds
2
2
 
3
+ ## 0.4.31
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2539](https://github.com/bluesky-social/atproto/pull/2539) [`9495af23b`](https://github.com/bluesky-social/atproto/commit/9495af23bdb328cfc71182ac80e6eb61863d7a46) Thanks [@dholms](https://github.com/dholms)! - Allow updating deactivation state through admin.updateSubjectStatus
8
+
9
+ - Updated dependencies [[`9495af23b`](https://github.com/bluesky-social/atproto/commit/9495af23bdb328cfc71182ac80e6eb61863d7a46)]:
10
+ - @atproto/api@0.12.16
11
+
12
+ ## 0.4.30
13
+
14
+ ### Patch Changes
15
+
16
+ - [#2531](https://github.com/bluesky-social/atproto/pull/2531) [`255d5ea1f`](https://github.com/bluesky-social/atproto/commit/255d5ea1f06726547cdbe59c83bd18f2d4746912) Thanks [@dholms](https://github.com/dholms)! - Account deactivation. Current hosting status returned on session routes.
17
+
18
+ - Updated dependencies [[`255d5ea1f`](https://github.com/bluesky-social/atproto/commit/255d5ea1f06726547cdbe59c83bd18f2d4746912)]:
19
+ - @atproto/api@0.12.15
20
+
3
21
  ## 0.4.29
4
22
 
5
23
  ### Patch Changes
@@ -6,6 +6,8 @@ export type ActorAccount = ActorEntry & {
6
6
  email: string | null;
7
7
  emailConfirmedAt: string | null;
8
8
  invitesDisabled: 0 | 1 | null;
9
+ active: boolean;
10
+ status?: AccountStatus;
9
11
  };
10
12
  export type AvailabilityFlags = {
11
13
  includeTakenDown?: boolean;
@@ -34,8 +36,18 @@ export declare const deleteAccount: (db: AccountDb, did: string) => Promise<void
34
36
  export declare const updateHandle: (db: AccountDb, did: string, handle: string) => Promise<void>;
35
37
  export declare const updateEmail: (db: AccountDb, did: string, email: string) => Promise<void>;
36
38
  export declare const setEmailConfirmedAt: (db: AccountDb, did: string, emailConfirmedAt: string) => Promise<void>;
37
- export declare const getAccountTakedownStatus: (db: AccountDb, did: string) => Promise<StatusAttr | null>;
39
+ export declare const getAccountAdminStatus: (db: AccountDb, did: string) => Promise<{
40
+ takedown: StatusAttr;
41
+ deactivated: StatusAttr;
42
+ } | null>;
38
43
  export declare const updateAccountTakedownStatus: (db: AccountDb, did: string, takedown: StatusAttr) => Promise<void>;
39
44
  export declare const deactivateAccount: (db: AccountDb, did: string, deleteAfter: string | null) => Promise<void>;
40
45
  export declare const activateAccount: (db: AccountDb, did: string) => Promise<void>;
46
+ export declare const formatAccountStatus: (account: {
47
+ takedownRef: string | null;
48
+ deactivatedAt: string | null;
49
+ }) => {
50
+ active: boolean;
51
+ status?: AccountStatus;
52
+ };
41
53
  //# sourceMappingURL=account.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/account-manager/helpers/account.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,4CAA4C,CAAA;AAGvE,qBAAa,sBAAuB,SAAQ,KAAK;CAAG;AAEpD,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG;IACtC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,eAAe,EAAE,CAAC,GAAG,CAAC,GAAG,IAAI,CAAA;CAC9B,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAC7B,CAAA;AAED,oBAAY,aAAa;IACvB,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,WAAW,gBAAgB;CAC5B;AAyBD,eAAO,MAAM,UAAU,+BAER,MAAM,UACX,iBAAiB,KACxB,QAAQ,YAAY,GAAG,IAAI,CAW7B,CAAA;AAED,eAAO,MAAM,iBAAiB,yBAErB,MAAM,UACL,iBAAiB,KACxB,QAAQ,YAAY,GAAG,IAAI,CAK7B,CAAA;AAED,eAAO,MAAM,aAAa,wBAElB;IACJ,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,kBAqBF,CAAA;AAED,eAAO,MAAM,eAAe,wBAEpB;IACJ,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,cAAc,EAAE,MAAM,CAAA;CACvB,kBAiBF,CAAA;AAED,eAAO,MAAM,aAAa,uBAEnB,MAAM,K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ACf,MAAM,CAAC,EAAE,aAAa,CAAA;CAavB,CAAA"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.activateAccount = exports.deactivateAccount = exports.updateAccountTakedownStatus = exports.getAccountTakedownStatus = exports.setEmailConfirmedAt = exports.updateEmail = exports.updateHandle = exports.deleteAccount = exports.registerAccount = exports.registerActor = exports.getAccountByEmail = exports.getAccount = exports.AccountStatus = exports.UserAlreadyExistsError = void 0;
3
+ exports.formatAccountStatus = exports.activateAccount = exports.deactivateAccount = exports.updateAccountTakedownStatus = exports.getAccountAdminStatus = exports.setEmailConfirmedAt = exports.updateEmail = exports.updateHandle = exports.deleteAccount = exports.registerAccount = exports.registerActor = exports.getAccountByEmail = exports.getAccount = exports.AccountStatus = exports.UserAlreadyExistsError = void 0;
4
4
  const db_1 = require("../../db");
5
5
  const common_1 = require("@atproto/common");
6
6
  class UserAlreadyExistsError extends Error {
@@ -45,14 +45,14 @@ const getAccount = async (db, handleOrDid, flags) => {
45
45
  }
46
46
  })
47
47
  .executeTakeFirst();
48
- return found || null;
48
+ return found ? { ...found, ...(0, exports.formatAccountStatus)(found) } : null;
49
49
  };
50
50
  exports.getAccount = getAccount;
51
51
  const getAccountByEmail = async (db, email, flags) => {
52
52
  const found = await selectAccountQB(db, flags)
53
53
  .where('email', '=', email.toLowerCase())
54
54
  .executeTakeFirst();
55
- return found || null;
55
+ return found ? { ...found, ...(0, exports.formatAccountStatus)(found) } : null;
56
56
  };
57
57
  exports.getAccountByEmail = getAccountByEmail;
58
58
  const registerActor = async (db, opts) => {
@@ -134,19 +134,21 @@ const setEmailConfirmedAt = async (db, did, emailConfirmedAt) => {
134
134
  .where('did', '=', did));
135
135
  };
136
136
  exports.setEmailConfirmedAt = setEmailConfirmedAt;
137
- const getAccountTakedownStatus = async (db, did) => {
137
+ const getAccountAdminStatus = async (db, did) => {
138
138
  const res = await db.db
139
139
  .selectFrom('actor')
140
- .select('takedownRef')
140
+ .select(['takedownRef', 'deactivatedAt'])
141
141
  .where('did', '=', did)
142
142
  .executeTakeFirst();
143
143
  if (!res)
144
144
  return null;
145
- return res.takedownRef
145
+ const takedown = res.takedownRef
146
146
  ? { applied: true, ref: res.takedownRef }
147
147
  : { applied: false };
148
+ const deactivated = res.deactivatedAt ? { applied: true } : { applied: false };
149
+ return { takedown, deactivated };
148
150
  };
149
- exports.getAccountTakedownStatus = getAccountTakedownStatus;
151
+ exports.getAccountAdminStatus = getAccountAdminStatus;
150
152
  const updateAccountTakedownStatus = async (db, did, takedown) => {
151
153
  const takedownRef = takedown.applied
152
154
  ? takedown.ref ?? new Date().toISOString()
@@ -174,4 +176,19 @@ const activateAccount = async (db, did) => {
174
176
  .where('did', '=', did));
175
177
  };
176
178
  exports.activateAccount = activateAccount;
179
+ const formatAccountStatus = (account) => {
180
+ let status = undefined;
181
+ if (account.takedownRef) {
182
+ status = AccountStatus.Takendown;
183
+ }
184
+ else if (account.deactivatedAt) {
185
+ status = AccountStatus.Deactivated;
186
+ }
187
+ const active = !status;
188
+ return {
189
+ active,
190
+ status,
191
+ };
192
+ };
193
+ exports.formatAccountStatus = formatAccountStatus;
177
194
  //# sourceMappingURL=account.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"account.js","sourceRoot":"","sources":["../../../src/account-manager/helpers/account.ts"],"names":[],"mappings":";;;AAAA,iCAAqE;AAGrE,4CAAqC;AAErC,MAAa,sBAAuB,SAAQ,KAAK;CAAG;AAApD,wDAAoD;AAapD,IAAY,aAMX;AAND,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,wCAAuB,CAAA;IACvB,wCAAuB,CAAA;IACvB,oCAAmB,CAAA;IACnB,4CAA2B,CAAA;AAC7B,CAAC,EANW,aAAa,6BAAb,aAAa,QAMxB;AAED,MAAM,eAAe,GAAG,CAAC,EAAa,EAAE,KAAyB,EAAE,EAAE;IACnE,MAAM,EAAE,gBAAgB,GAAG,KAAK,EAAE,kBAAkB,GAAG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AAI,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;QAC1C,CAAC,CAAC,IAAI,CAAA;IACR,MAAM,EAAE,CAAC,gBAAgB,CACvB,EAAE,CAAC,EAAE,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,CAAC,CACvE,CAAA;AACH,CAAC,CAAA;AAXY,QAAA,2BAA2B,+BAWvC;AAEM,MAAM,iBAAiB,GAAG,KAAK,EACpC,EAAa,EACb,GAAW,EACX,WAA0B,EAC1B,EAAE;IACF,MAAM,EAAE,CAAC,gBAAgB,CACvB,EAAE,CAAC,EAAE;SACF,WAAW,CAAC,OAAO,CAAC;SACpB,GAAG,CAAC;QACH,aAAa,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;QACvC,WAAW;KACZ,CAAC;SACD,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,CAAC,CAC1B,CAAA;AACH,CAAC,CAAA;AAdY,QAAA,iBAAiB,qBAc7B;AAEM,MAAM,eAAe,GAAG,KAAK,EAAE,EAAa,EAAE,GAAW,EAAE,EAAE;IAClE,MAAM,EAAE,CAAC,gBAAgB,CACvB,EAAE,CAAC,EAAE;SACF,WAAW,CAAC,OAAO,CAAC;SACpB,GAAG,CAAC;QACH,aAAa,EAAE,IAAI;QACnB,WAAW,EAAE,IAAI;KAClB,CAAC;SACD,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,CAAC,CAC1B,CAAA;AACH,CAAC,CAAA;AAVY,QAAA,eAAe,mBAU3B"}
1
+ {"version":3,"file":"account.js","sourceRoot":"","sources":["../../../src/account-manager/helpers/account.ts"],"names":[],"mappings":";;;AAAA,iCAAqE;AAGrE,4CAAqC;AAErC,MAAa,sBAAuB,SAAQ,KAAK;CAAG;AAApD,wDAAoD;AAepD,IAAY,aAMX;AAND,WAAY,aAAa;IACvB,kCAAi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C,WAAW;KACZ,CAAC;SACD,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,CAAC,CAC1B,CAAA;AACH,CAAC,CAAA;AAdY,QAAA,iBAAiB,qBAc7B;AAEM,MAAM,eAAe,GAAG,KAAK,EAAE,EAAa,EAAE,GAAW,EAAE,EAAE;IAClE,MAAM,EAAE,CAAC,gBAAgB,CACvB,EAAE,CAAC,EAAE;SACF,WAAW,CAAC,OAAO,CAAC;SACpB,GAAG,CAAC;QACH,aAAa,EAAE,IAAI;QACnB,WAAW,EAAE,IAAI;KAClB,CAAC;SACD,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,CAAC,CAC1B,CAAA;AACH,CAAC,CAAA;AAVY,QAAA,eAAe,mBAU3B;AAEM,MAAM,mBAAmB,GAAG,CAAC,OAGnC,EAGC,EAAE;IACF,IAAI,MAAM,GAA8B,SAAS,CAAA;IACjD,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;QACxB,MAAM,GAAG,aAAa,CAAC,SAAS,CAAA;IAClC,CAAC;SAAM,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC;QACjC,MAAM,GAAG,aAAa,CAAC,WAAW,CAAA;IACpC,CAAC;IACD,MAAM,MAAM,GAAG,CAAC,MAAM,CAAA;IACtB,OAAO;QACL,MAAM;QACN,MAAM;KACP,CAAA;AACH,CAAC,CAAA;AAlBY,QAAA,mBAAmB,uBAkB/B"}
@@ -37,7 +37,10 @@ export declare class AccountManager {
37
37
  updateHandle(did: string, handle: string): Promise<void>;
38
38
  deleteAccount(did: string): Promise<void>;
39
39
  takedownAccount(did: string, takedown: StatusAttr): Promise<void>;
40
- getAccountTakedownStatus(did: string): Promise<StatusAttr | null>;
40
+ getAccountAdminStatus(did: string): Promise<{
41
+ takedown: StatusAttr;
42
+ deactivated: StatusAttr;
43
+ } | null>;
41
44
  updateRepoRoot(did: string, cid: CID, rev: string): Promise<void>;
42
45
  deactivateAccount(did: string, deleteAfter: string | null): Promise<void>;
43
46
  activateAccount(did: string): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/account-manager/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAsB,MAAM,MAAM,CAAA;AAEvE,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAGhD,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAA;AAC1C,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAA;AAG9C,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAA;AAEpE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEjD,qBAAa,cAAc;IAKvB,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,UAAU;IALpB,EAAE,EAAE,SAAS,CAAA;gBAGX,UAAU,EAAE,MAAM,EACV,MAAM,EAAE,SAAS,EACjB,UAAU,EAAE,MAAM,EAC1B,wBAAwB,UAAQ;IAK5B,cAAc;IAKpB,KAAK;IAOC,UAAU,CACd,WAAW,EAAE,MAAM,EACnB,KAAK,CAAC,EAAE,OAAO,CAAC,iBAAiB,GAChC,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IAIzB,iBAAiB,CACrB,KAAK,EAAE,MAAM,EACb,KAAK,CAAC,EAAE,OAAO,CAAC,iBAAiB,GAChC,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IAIzB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAMjD,cAAc,CAClB,WAAW,EAAE,MAAM,EACnB,KAAK,CAAC,EAAE,OAAO,CAAC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G,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE;IAYjD,WAAW,CAAC,IAAI,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE;IAUhD,aAAa,CAAC,IAAI,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE;IASvD,qBAAqB,CAAC,IAAI,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE;CAWpE"}
@@ -149,8 +149,8 @@ class AccountManager {
149
149
  auth.revokeRefreshTokensByDid(dbTxn, did),
150
150
  ]));
151
151
  }
152
- async getAccountTakedownStatus(did) {
153
- return account.getAccountTakedownStatus(this.db, did);
152
+ async getAccountAdminStatus(did) {
153
+ return account.getAccountAdminStatus(this.db, did);
154
154
  }
155
155
  async updateRepoRoot(did, cid, rev) {
156
156
  return repo.updateRoot(this.db, did, cid, rev);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/account-manager/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,4CAAsC;AAEtC,6BAAuE;AACvE,yDAA0C;AAC1C,2DAA4C;AAC5C,+CAAiD;AAEjD,qDAAsC;AACtC,qDAAsC;AACtC,yDAA0C;AAC1C,6DAA8C;AAC9C,kEAAmD;AACnD,oDAA4C;AAG5C,6CAAiD;AAAxC,wGAAA,aAAa,OAAA;AAEtB,MAAa,cAAc;IAGzB,YACE,UAAkB,EACV,MAAiB,EACjB,UAAkB,EAC1B,wBAAwB,GAAG,KAAK;QAFhC;;;;mBAAQ,MAAM;WAAW;QACzB;;;;mBAAQ,UAAU;WAAQ;QAL5B;;;;;WAAa;QAQX,IAAI,CAAC,EAAE,GAAG,IAAA,UAAK,EAAC,UAAU,EAAE,wBAAwB,CAAC,CAAA;IACvD,CAAC;IAED,KAAK,CAAC,cAA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AC,KAAK,EAAE,GAAG,EAAE,KAAK,CAAC;YACtC,UAAU,CAAC,oBAAoB,CAAC,KAAK,EAAE,GAAG,CAAC;SAC5C,CAAC,CACH,CAAA;IACH,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,IAAyC;QAC3D,MAAM,GAAG,GAAG,MAAM,UAAU,CAAC,0BAA0B,CACrD,IAAI,CAAC,EAAE,EACP,gBAAgB,EAChB,IAAI,CAAC,KAAK,CACX,CAAA;QACD,MAAM,IAAI,CAAC,qBAAqB,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAA;IACpE,CAAC;IAED,KAAK,CAAC,qBAAqB,CAAC,IAAuC;QACjE,MAAM,EAAE,GAAG,EAAE,GAAG,IAAI,CAAA;QACpB,MAAM,cAAc,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;QACjE,MAAM,IAAI,CAAC,EAAE,CAAC,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CACxC,OAAO,CAAC,GAAG,CAAC;YACV,QAAQ,CAAC,kBAAkB,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,cAAc,EAAE,CAAC;YAC3D,UAAU,CAAC,gBAAgB,CAAC,KAAK,EAAE,GAAG,EAAE,gBAAgB,CAAC;YACzD,IAAI,CAAC,wBAAwB,CAAC,KAAK,EAAE,GAAG,CAAC;SAC1C,CAAC,CACH,CAAA;IACH,CAAC;CACF;AA/XD,wCA+XC"}
@@ -5,7 +5,7 @@ function default_1(server, ctx) {
5
5
  if (!ctx.cfg.bskyAppView)
6
6
  return;
7
7
  server.app.bsky.actor.getPreferences({
8
- auth: ctx.authVerifier.access,
8
+ auth: ctx.authVerifier.accessStandard(),
9
9
  handler: async ({ auth }) => {
10
10
  const requester = auth.credentials.did;
11
11
  let preferences = await ctx.actorStore.read(requester, (store) => store.pref.getPreferences('app.bsky'));
@@ -1 +1 @@
1
- {"version":3,"file":"getPreferences.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/actor/getPreferences.ts"],"names":[],"mappings":";;AAEA,6DAAqD;AAErD,mBAAyB,MAAc,EAAE,GAAe;IACtD,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,WAAW;QAAE,OAAM;IAChC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC;QACnC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,MAAM;QAC7B,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;YAC1B,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAA;YACtC,IAAI,WAAW,GAAG,MAAM,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAC/D,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,CACtC,CAAA;YACD,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,KAAK,yBAAS,CAAC,MAAM,EAAE,CAAC;gBAChD,gDAAgD;gBAChD,WAAW,GAAG,WAAW,CAAC,MAAM,CAC9B,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,KAAK,yCAAyC,CACnE,CAAA;YACH,CAAC;YACD,OAAO;gBACL,QAAQ,EAAE,kBAAkB;gBAC5B,IAAI,EAAE,EAAE,WAAW,EAAE;aACtB,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AArBD,4BAqBC"}
1
+ {"version":3,"file":"getPreferences.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/actor/getPreferences.ts"],"names":[],"mappings":";;AAEA,6DAAqD;AAErD,mBAAyB,MAAc,EAAE,GAAe;IACtD,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,WAAW;QAAE,OAAM;IAChC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC;QACnC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,cAAc,EAAE;QACvC,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;YAC1B,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAA;YACtC,IAAI,WAAW,GAAG,MAAM,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAC/D,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,CACtC,CAAA;YACD,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,KAAK,yBAAS,CAAC,MAAM,EAAE,CAAC;gBAChD,gDAAgD;gBAChD,WAAW,GAAG,WAAW,CAAC,MAAM,CAC9B,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,KAAK,yCAAyC,CACnE,CAAA;YACH,CAAC;YACD,OAAO;gBACL,QAAQ,EAAE,kBAAkB;gBAC5B,IAAI,EAAE,EAAE,WAAW,EAAE;aACtB,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AArBD,4BAqBC"}
@@ -8,7 +8,7 @@ function default_1(server, ctx) {
8
8
  if (!bskyAppView)
9
9
  return;
10
10
  server.app.bsky.actor.getProfile({
11
- auth: ctx.authVerifier.access,
11
+ auth: ctx.authVerifier.accessStandard(),
12
12
  handler: async ({ req, auth }) => {
13
13
  const requester = auth.credentials.did;
14
14
  const res = await (0, pipethrough_1.pipethrough)(ctx, req, requester);
@@ -1 +1 @@
1
- {"version":3,"file":"getProfile.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/actor/getProfile.ts"],"names":[],"mappings":";;AAGA,mEAIqC;AACrC,yDAAqD;AAErD,MAAM,WAAW,GAAG,2BAA2B,CAAA;AAE/C,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC,GAAG,CAAA;IAC/B,IAAI,CAAC,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AC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC;QAC/B,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,cAAc,EAAE;QACvC,OAAO,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE;YAC/B,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAA;YACtC,MAAM,GAAG,GAAG,MAAM,IAAA,yBAAW,EAAC,GAAG,EAAE,GAAG,EAAE,SAAS,CAAC,CAAA;YAClD,IAAI,CAAC,SAAS,EAAE,CAAC;gBACf,OAAO,GAAG,CAAA;YACZ,CAAC;YACD,OAAO,IAAA,uCAAoB,EACzB,GAAG,EACH,WAAW,EACX,SAAS,EACT,GAAG,EACH,eAAe,CAChB,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AApBD,4BAoBC;AAED,MAAM,eAAe,GAAG,KAAK,EAC3B,WAAwB,EACxB,QAAsB,EACtB,KAAmB,EACnB,SAAiB,EACM,EAAE;IACzB,IAAI,CAAC,KAAK,CAAC,OAAO;QAAE,OAAO,QAAQ,CAAA;IACnC,IAAI,QAAQ,CAAC,GAAG,KAAK,SAAS;QAAE,OAAO,QAAQ,CAAA;IAC/C,OAAO,WAAW,CAAC,qBAAqB,CAAC,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;AAC1E,CAAC,CAAA"}
@@ -8,7 +8,7 @@ function default_1(server, ctx) {
8
8
  if (!bskyAppView)
9
9
  return;
10
10
  server.app.bsky.actor.getProfiles({
11
- auth: ctx.authVerifier.access,
11
+ auth: ctx.authVerifier.accessStandard(),
12
12
  handler: async ({ req, auth }) => {
13
13
  const requester = auth.credentials.did;
14
14
  const res = await (0, pipethrough_1.pipethrough)(ctx, req, requester);
@@ -1 +1 @@
1
- {"version":3,"file":"getProfiles.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/actor/getProfiles.ts"],"names":[],"mappings":";;AAGA,yDAAq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,GAAG,QAAQ;QACX,QAAQ;KACT,CAAA;AACH,CAAC,CAAA"}
@@ -5,7 +5,7 @@ function default_1(server, ctx) {
5
5
  if (!ctx.cfg.bskyAppView)
6
6
  return;
7
7
  server.app.bsky.actor.putPreferences({
8
- auth: ctx.authVerifier.accessCheckTakedown,
8
+ auth: ctx.authVerifier.accessStandard({ checkTakedown: true }),
9
9
  handler: async ({ auth, input }) => {
10
10
  const { preferences } = input.body;
11
11
  const requester = auth.credentials.did;
@@ -1 +1 @@
1
- {"version":3,"file":"putPreferences.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/actor/putPreferences.ts"],"names":[],"mappings":";;AAAA,sDAA0D;AAK1D,mBAAyB,MAAc,EAAE,GAAe;IACtD,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,WAAW;QAAE,OAAM;IAChC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC;QACnC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,mBAAmB;QAC1C,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE;YACjC,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC,IAAI,CAAA;YAClC,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAA;YACtC,MAAM,kBAAkB,GAAwB,EAAE,CAAA;YAClD,KAAK,MAAM,IAAI,IAAI,WAAW,EAAE,CAAC;gBAC/B,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;oBACnC,kBAAkB,CAAC,IAAI,CAAC,IAAyB,CAAC,CAAA;gBACpD,CAAC;qBAAM,CAAC;oBACN,MAAM,IAAI,iCAAmB,CAAC,+BAA+B,CAAC,CAAA;gBAChE,CAAC;YACH,CAAC;YACD,MAAM,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE;gBAC1D,M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AC,CAAA;AACJ,CAAC;AApBD,4BAoBC"}
@@ -8,7 +8,7 @@ function default_1(server, ctx) {
8
8
  if (!bskyAppView)
9
9
  return;
10
10
  server.app.bsky.feed.getActorLikes({
11
- auth: ctx.authVerifier.access,
11
+ auth: ctx.authVerifier.accessStandard(),
12
12
  handler: async ({ req, auth }) => {
13
13
  const requester = auth.credentials.did;
14
14
  const res = await (0, pipethrough_1.pipethrough)(ctx, req, requester);
@@ -1 +1 @@
1
- {"version":3,"file":"getActorLikes.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getActorLikes.ts"],"names":[],"mappings":";;AAGA,mEAIqC;AACrC,yDAAqD;AAErD,MAAM,WAAW,GAAG,6BAA6B,CAAA;AAEjD,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC,GAAG,CAAA;IAC/B,IAAI,CAAC,WAAW;QAAE,OAAM;IACxB,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC;QACjC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,MAAM;QAC7B,OAAO,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE;YAC/B,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAA;YACtC,MAAM,GAAG,GAAG,MAAM,IAAA,yBAAW,EAAC,GAAG,EAAE,GAAG,EAAE,SAAS,CAAC,CAAA;YAElD,IAAI,CAAC,SAAS,EAAE,CAAC;gBACf,OAAO,GAAG,CAAA;YACZ,CAAC;YAED,OAAO,MAAM,IAAA,uCAAoB,EAC/B,GAAG,EACH,WAAW,EACX,SAAS,EACT,GAAG,EACH,cAAc,CACf,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AAtBD,4BAsBC;AAED,MAAM,cAAc,GAAG,KAAK,EAC1B,WAAwB,EACxB,QAAsB,EACtB,KAAmB,EACnB,SAAiB,EACM,EAAE;IACzB,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,CAAA;IAC/B,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAA;IACxB,wDAAwD;IACxD,IAAI,SAAS,EAAE,CAAC;QACd,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;YACvB,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,KAAK,SAAS,EAAE,CAAC;gBACvC,OAAO;oBACL,GAAG,IAAI;oBACP,IAAI,EAAE;wBACJ,GAAG,IAAI,CAAC,IAAI;wBACZ,MAAM,EAAE,WAAW,CAAC,sBAAsB,CACxC,IAAI,CAAC,IAAI,CAAC,MAAM,EAChB,SAAS,CAAC,MAAM,CACjB;qBACF;iBACF,CAAA;YACH,CAAC;iBAAM,CAAC;gBACN,OAAO,IAAI,CAAA;YACb,CAAC;QACH,CAAC,CAAC,CAAA;IACJ,CAAC;IACD,OAAO;QACL,GAAG,QAAQ;QACX,IAAI;KACL,CAAA;AACH,CAAC,CAAA"}
1
+ {"version":3,"file":"getActorLikes.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getActorLikes.ts"],"names":[],"mappings":";;AAGA,mEAIqC;AACrC,yDAAqD;AAErD,MAAM,WAAW,GAAG,6BAA6B,CAAA;AAEjD,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC,GAAG,CAAA;IAC/B,IAAI,CAAC,WAAW;QAAE,OAAM;IACxB,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC;QACjC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,cAAc,EAAE;QACvC,OAAO,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE;YAC/B,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAA;YACtC,MAAM,GAAG,GAAG,MAAM,IAAA,yBAAW,EAAC,GAAG,EAAE,GAAG,EAAE,SAAS,CAAC,CAAA;YAElD,IAAI,CAAC,SAAS,EAAE,CAAC;gBACf,OAAO,GAAG,CAAA;YACZ,CAAC;YAED,OAAO,MAAM,IAAA,uCAAoB,EAC/B,GAAG,EACH,WAAW,EACX,SAAS,EACT,GAAG,EACH,cAAc,CACf,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AAtBD,4BAsBC;AAED,MAAM,cAAc,GAAG,KAAK,EAC1B,WAAwB,EACxB,QAAsB,EACtB,KAAmB,EACnB,SAAiB,EACM,EAAE;IACzB,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,CAAA;IAC/B,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAA;IACxB,wDAAwD;IACxD,IAAI,SAAS,EAAE,CAAC;QACd,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;YACvB,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,KAAK,SAAS,EAAE,CAAC;gBACvC,OAAO;oBACL,GAAG,IAAI;oBACP,IAAI,EAAE;wBACJ,GAAG,IAAI,CAAC,IAAI;wBACZ,MAAM,EAAE,WAAW,CAAC,sBAAsB,CACxC,IAAI,CAAC,IAAI,CAAC,MAAM,EAChB,SAAS,CAAC,MAAM,CACjB;qBACF;iBACF,CAAA;YACH,CAAC;iBAAM,CAAC;gBACN,OAAO,IAAI,CAAA;YACb,CAAC;QACH,CAAC,CAAC,CAAA;IACJ,CAAC;IACD,OAAO;QACL,GAAG,QAAQ;QACX,IAAI;KACL,CAAA;AACH,CAAC,CAAA"}
@@ -9,7 +9,7 @@ function default_1(server, ctx) {
9
9
  if (!bskyAppView)
10
10
  return;
11
11
  server.app.bsky.feed.getAuthorFeed({
12
- auth: ctx.authVerifier.access,
12
+ auth: ctx.authVerifier.accessStandard(),
13
13
  handler: async ({ req, auth }) => {
14
14
  const requester = auth.credentials.did;
15
15
  const res = await (0, pipethrough_1.pipethrough)(ctx, req, requester);
@@ -1 +1 @@
1
- {"version":3,"file":"getAuthorFeed.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getAuthorFeed.ts"],"names":[],"mappings":";;AAGA,uEAA6E;AAC7E,mEAIqC;AACrC,yDAAqD;AAErD,MAAM,WAAW,GAAG,6BAA6B,CAAA;AAEjD,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC,GAAG,CAAA;IAC/B,IAAI,CAAC,WAAW;QAAE,OAAM;IACxB,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC;QACjC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,MAAM;QAC7B,OAAO,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE;YAC/B,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAA;YACtC,MAAM,GAAG,GAAG,MAAM,IAAA,yBAAW,EAAC,GAAG,EAAE,GAAG,EAAE,SAAS,CAAC,CAAA;YAClD,IAAI,CAAC,SAAS,EAAE,CAAC;gBACf,OAAO,GAAG,CAAA;YACZ,CAAC;YACD,OAAO,MAAM,IAAA,uCAAoB,EAC/B,GAAG,EACH,WAAW,EACX,SAAS,EACT,GAAG,EACH,cAAc,CACf,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AApBD,4BAoBC;AAED,MAAM,cAAc,GAAG,KAAK,EAC1B,WAAwB,EACxB,QAAsB,EACtB,KAAmB,EACnB,SAAiB,EACM,EAAE;IACzB,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,CAAA;IAC/B,yBAAyB;IACzB,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,SAAS,CAAC,EAAE,CAAC;QACtC,OAAO,QAAQ,CAAA;IACjB,CAAC;IACD,IAAI,IAAI,GAAG,QAAQ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B,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,KAAK,SAAS,EAAE,CAAC;gBACvC,OAAO;oBACL,GAAG,IAAI;oBACP,IAAI,EAAE;wBACJ,GAAG,IAAI,CAAC,IAAI;wBACZ,MAAM,EAAE,WAAW,CAAC,sBAAsB,CACxC,IAAI,CAAC,IAAI,CAAC,MAAM,EAChB,SAAS,CAAC,MAAM,CACjB;qBACF;iBACF,CAAA;YACH,CAAC;iBAAM,CAAC;gBACN,OAAO,IAAI,CAAA;YACb,CAAC;QACH,CAAC,CAAC,CAAA;IACJ,CAAC;IACD,IAAI,GAAG,MAAM,WAAW,CAAC,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAA;IACtE,OAAO;QACL,GAAG,QAAQ;QACX,IAAI;KACL,CAAA;AACH,CAAC,CAAA;AAED,MAAM,WAAW,GAAG,CAAC,IAAkB,EAAE,SAAiB,EAAE,EAAE;IAC5D,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;IAC7B,IAAI,CAAC,KAAK;QAAE,OAAO,KAAK,CAAA;IACxB,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,KAAK,SAAS;QAAE,OAAO,IAAI,CAAA;IACrE,IAAI,IAAA,qBAAc,EAAC,KAAK,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,GAAG,KAAK,SAAS;QACnE,OAAO,IAAI,CAAA;IACb,OAAO,KAAK,CAAA;AACd,CAAC,CAAA"}
@@ -7,7 +7,7 @@ function default_1(server, ctx) {
7
7
  if (!appViewAgent || !bskyAppView)
8
8
  return;
9
9
  server.app.bsky.feed.getFeed({
10
- auth: ctx.authVerifier.access,
10
+ auth: ctx.authVerifier.accessStandard(),
11
11
  handler: async ({ params, auth, req }) => {
12
12
  const requester = auth.credentials.did;
13
13
  const { data: feed } = await appViewAgent.api.app.bsky.feed.getFeedGenerator({ feed: params.feed }, await ctx.appviewAuthHeaders(requester));
@@ -1 +1 @@
1
- {"version":3,"file":"getFeed.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getFeed.ts"],"names":[],"mappings":";;AAEA,yDAAqD;AAErD,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,EAAE,YAAY,EAAE,GAAG,GAAG,CAAA;IAC5B,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC,GAAG,CAAA;IAC/B,IAAI,CAAC,YAAY,IAAI,CAAC,WAAW;QAAE,OAAM;IACzC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;QAC3B,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,MAAM;QAC7B,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE;YACvC,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAA;YAEtC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAClB,MAAM,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CACnD,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,EACrB,MAAM,GAAG,CAAC,kBAAkB,CAAC,SAAS,CAAC,CACxC,CAAA;YACH,OAAO,IAAA,yBAAW,EAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QACxD,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AAjBD,4BAiBC"}
1
+ {"version":3,"file":"getFeed.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getFeed.ts"],"names":[],"mappings":";;AAEA,yDAAqD;AAErD,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,EAAE,YAAY,EAAE,GAAG,GAAG,CAAA;IAC5B,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC,GAAG,CAAA;IAC/B,IAAI,CAAC,YAAY,IAAI,CAAC,WAAW;QAAE,OAAM;IACzC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;QAC3B,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,cAAc,EAAE;QACvC,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE;YACvC,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAA;YAEtC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAClB,MAAM,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CACnD,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,EACrB,MAAM,GAAG,CAAC,kBAAkB,CAAC,SAAS,CAAC,CACxC,CAAA;YACH,OAAO,IAAA,yBAAW,EAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QACxD,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AAjBD,4BAiBC"}
@@ -15,7 +15,7 @@ function default_1(server, ctx) {
15
15
  if (!bskyAppView)
16
16
  return;
17
17
  server.app.bsky.feed.getPostThread({
18
- auth: ctx.authVerifier.access,
18
+ auth: ctx.authVerifier.accessStandard(),
19
19
  handler: async ({ req, auth, params }) => {
20
20
  const requester = auth.credentials.did;
21
21
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"getPostThread.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getPostThread.ts"],"names":[],"mappings":";;;;;AAAA,8DAAgC;AAChC,4CAAuC;AACvC,wCAAkD;AAGlD,uEAGqD;AAMrD,mEAQqC;AACrC,yDAAqD;AAErD,MAAM,WAAW,GAAG,6BAA6B,CAAA;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AC,CAAA"}
@@ -8,7 +8,7 @@ function default_1(server, ctx) {
8
8
  if (!bskyAppView)
9
9
  return;
10
10
  server.app.bsky.feed.getTimeline({
11
- auth: ctx.authVerifier.access,
11
+ auth: ctx.authVerifier.accessStandard(),
12
12
  handler: async ({ req, auth }) => {
13
13
  const requester = auth.credentials.did;
14
14
  const res = await (0, pipethrough_1.pipethrough)(ctx, req, requester);
@@ -1 +1 @@
1
- {"version":3,"file":"getTimeline.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getTimeline.ts"],"names":[],"mappings":";;AAGA,mEAIqC;AACrC,yDAAqD;AAErD,MAAM,WAAW,GAAG,2BAA2B,CAAA;AAE/C,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC,GAAG,CAAA;IAC/B,IAAI,CAAC,WAAW;QAAE,OAAM;IACxB,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC;QAC/B,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,MAAM;QAC7B,OAAO,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE;YAC/B,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAA;YACtC,MAAM,GAAG,GAAG,MAAM,IAAA,yBAAW,EAAC,GAAG,EAAE,GAAG,EAAE,SAAS,CAAC,CAAA;YAClD,OAAO,MAAM,IAAA,uCAAoB,EAC/B,GAAG,EACH,WAAW,EACX,SAAS,EACT,GAAG,EACH,gBAAgB,CACjB,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AAjBD,4BAiBC;AAED,MAAM,gBAAgB,GAAG,KAAK,EAC5B,WAAwB,EACxB,QAAsB,EACtB,KAAmB,EACI,EAAE;IACzB,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC,0BAA0B,CACvD,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,EAClB,KAAK,CAAC,KAAK,CACZ,CAAA;IACD,OAAO;QACL,GAAG,QAAQ;QACX,IAAI;KACL,CAAA;AACH,CAAC,CAAA"}
1
+ {"version":3,"file":"getTimeline.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getTimeline.ts"],"names":[],"mappings":";;AAGA,mEAIqC;AACrC,yDAAqD;AAErD,MAAM,WAAW,GAAG,2BAA2B,CAAA;AAE/C,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC,GAAG,CAAA;IAC/B,IAAI,CAAC,WAAW;QAAE,OAAM;IACxB,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC;QAC/B,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,cAAc,EAAE;QACvC,OAAO,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE;YAC/B,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAA;YACtC,MAAM,GAAG,GAAG,MAAM,IAAA,yBAAW,EAAC,GAAG,EAAE,GAAG,EAAE,SAAS,CAAC,CAAA;YAClD,OAAO,MAAM,IAAA,uCAAoB,EAC/B,GAAG,EACH,WAAW,EACX,SAAS,EACT,GAAG,EACH,gBAAgB,CACjB,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AAjBD,4BAiBC;AAED,MAAM,gBAAgB,GAAG,KAAK,EAC5B,WAAwB,EACxB,QAAsB,EACtB,KAAmB,EACI,EAAE;IACzB,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC,0BAA0B,CACvD,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,EAClB,KAAK,CAAC,KAAK,CACZ,CAAA;IACD,OAAO;QACL,GAAG,QAAQ;QACX,IAAI;KACL,CAAA;AACH,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"registerPush.d.ts","sourceRoot":"","sources":["../../../../../src/api/app/bsky/notification/registerPush.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAM5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QA6BvD"}
1
+ {"version":3,"file":"registerPush.d.ts","sourceRoot":"","sources":["../../../../../src/api/app/bsky/notification/registerPush.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAO5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QA+BvD"}
@@ -4,12 +4,15 @@ const identity_1 = require("@atproto/identity");
4
4
  const xrpc_server_1 = require("@atproto/xrpc-server");
5
5
  const api_1 = require("@atproto/api");
6
6
  const resolver_1 = require("../util/resolver");
7
+ const auth_verifier_1 = require("../../../../auth-verifier");
7
8
  function default_1(server, ctx) {
8
9
  const { appViewAgent } = ctx;
9
10
  if (!appViewAgent)
10
11
  return;
11
12
  server.app.bsky.notification.registerPush({
12
- auth: ctx.authVerifier.accessDeactived,
13
+ auth: ctx.authVerifier.accessStandard({
14
+ additional: [auth_verifier_1.AuthScope.SignupQueued],
15
+ }),
13
16
  handler: async ({ auth, input }) => {
14
17
  const { serviceDid } = input.body;
15
18
  const { credentials: { did }, } = auth;
@@ -1 +1 @@
1
- {"version":3,"file":"registerPush.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/notification/registerPush.ts"],"names":[],"mappings":";;AAEA,gDAA4C;AAC5C,sDAA0D;AAC1D,sCAAuC;AACvC,+CAA4C;AAE5C,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,EAAE,YAAY,EAAE,GAAG,GAAG,CAAA;IAC5B,IAAI,CAAC,YAAY;QAAE,OAAM;IACzB,MAAM,CAAC,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mBAAQ,EAAC,GAAG,CAAC,CAAA;IACnC,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,MAAM,IAAI,iCAAmB,CAC3B,yDAAyD,UAAU,EAAE,CACtE,CAAA;IACH,CAAC;IACD,OAAO,aAAa,CAAA;AACtB,CAAC,CAAA"}
1
+ {"version":3,"file":"registerPush.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/notification/registerPush.ts"],"names":[],"mappings":";;AAEA,gDAA4C;AAC5C,sDAA0D;AAC1D,sCAAuC;AACvC,+CAA4C;AAC5C,6DAAqD;AAErD,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,EAAE,YAAY,EAAE,GAAG,GAAG,CAAA;IAC5B,IAAI,CAAC,YAAY;QAAE,OAAM;IACzB,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC;QACxC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,cAAc,CAAC;YACpC,UAAU,EAAE,CAAC,yBAAS,CAAC,YAAY,CAAC;SACrC,CAAC;QACF,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE;YACjC,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC,IAAI,CAAA;YACjC,MAAM,EACJ,WAAW,EAAE,EAAE,GAAG,EAAE,GACrB,GAAG,IAAI,CAAA;YAER,MAAM,WAAW,GAAG,MAAM,GAAG,CAAC,kBAAkB,CAAC,GAAG,EAAE,UAAU,CAAC,CAAA;YAEjE,IAAI,GAAG,CAAC,GAAG,CAAC,WAAW,EAAE,GAAG,KAAK,UAAU,EAAE,CAAC;gBAC5C,MAAM,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,EAAE;oBACpE,GAAG,WAAW;oBACd,QAAQ,EAAE,kBAAkB;iBAC7B,CAAC,CAAA;gBACF,OAAM;YACR,CAAC;YAED,MAAM,aAAa,GAAG,MAAM,WAAW,CAAC,GAAG,EAAE,UAAU,CAAC,CAAA;YACxD,MAAM,KAAK,GAAG,IAAI,cAAQ,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC,CAAA;YACtD,MAAM,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,EAAE;gBAC7D,GAAG,WAAW;gBACd,QAAQ,EAAE,kBAAkB;aAC7B,CAAC,CAAA;QACJ,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AA/BD,4BA+BC;AAED,MAAM,WAAW,GAAG,KAAK,EAAE,GAAe,EAAE,UAAkB,EAAE,EAAE;IAChE,MAAM,GAAG,GAAG,MAAM,IAAA,oBAAS,EAAC,GAAG,EAAE,UAAU,CAAC,CAAA;IAC5C,MAAM,aAAa,GAAG,IAAA,mBAAQ,EAAC,GAAG,CAAC,CAAA;IACnC,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,MAAM,IAAI,iCAAmB,CAC3B,yDAAyD,UAAU,EAAE,CACtE,CAAA;IACH,CAAC;IACD,OAAO,aAAa,CAAA;AACtB,CAAC,CAAA"}
@@ -3,85 +3,85 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const pipethrough_1 = require("../../pipethrough");
4
4
  function default_1(server, ctx) {
5
5
  server.chat.bsky.actor.deleteAccount({
6
- auth: ctx.authVerifier.accessAppPassPrivileged,
6
+ auth: ctx.authVerifier.accessPrivileged(),
7
7
  handler: async ({ req, auth }) => {
8
8
  return (0, pipethrough_1.pipethroughProcedure)(ctx, req, auth.credentials.did);
9
9
  },
10
10
  });
11
11
  server.chat.bsky.actor.exportAccountData({
12
- auth: ctx.authVerifier.accessAppPassPrivileged,
12
+ auth: ctx.authVerifier.accessPrivileged(),
13
13
  handler: ({ req, auth }) => {
14
14
  return (0, pipethrough_1.pipethrough)(ctx, req, auth.credentials.did);
15
15
  },
16
16
  });
17
17
  server.chat.bsky.convo.deleteMessageForSelf({
18
- auth: ctx.authVerifier.accessAppPassPrivileged,
18
+ auth: ctx.authVerifier.accessPrivileged(),
19
19
  handler: ({ req, auth, input }) => {
20
20
  return (0, pipethrough_1.pipethroughProcedure)(ctx, req, auth.credentials.did, input.body);
21
21
  },
22
22
  });
23
23
  server.chat.bsky.convo.getConvo({
24
- auth: ctx.authVerifier.accessAppPassPrivileged,
24
+ auth: ctx.authVerifier.accessPrivileged(),
25
25
  handler: ({ req, auth }) => {
26
26
  return (0, pipethrough_1.pipethrough)(ctx, req, auth.credentials.did);
27
27
  },
28
28
  });
29
29
  server.chat.bsky.convo.getConvoForMembers({
30
- auth: ctx.authVerifier.accessAppPassPrivileged,
30
+ auth: ctx.authVerifier.accessPrivileged(),
31
31
  handler: ({ req, auth }) => {
32
32
  return (0, pipethrough_1.pipethrough)(ctx, req, auth.credentials.did);
33
33
  },
34
34
  });
35
35
  server.chat.bsky.convo.getLog({
36
- auth: ctx.authVerifier.accessAppPassPrivileged,
36
+ auth: ctx.authVerifier.accessPrivileged(),
37
37
  handler: ({ req, auth }) => {
38
38
  return (0, pipethrough_1.pipethrough)(ctx, req, auth.credentials.did);
39
39
  },
40
40
  });
41
41
  server.chat.bsky.convo.getMessages({
42
- auth: ctx.authVerifier.accessAppPassPrivileged,
42
+ auth: ctx.authVerifier.accessPrivileged(),
43
43
  handler: ({ req, auth }) => {
44
44
  return (0, pipethrough_1.pipethrough)(ctx, req, auth.credentials.did);
45
45
  },
46
46
  });
47
47
  server.chat.bsky.convo.leaveConvo({
48
- auth: ctx.authVerifier.accessAppPassPrivileged,
48
+ auth: ctx.authVerifier.accessPrivileged(),
49
49
  handler: ({ req, auth, input }) => {
50
50
  return (0, pipethrough_1.pipethroughProcedure)(ctx, req, auth.credentials.did, input.body);
51
51
  },
52
52
  });
53
53
  server.chat.bsky.convo.listConvos({
54
- auth: ctx.authVerifier.accessAppPassPrivileged,
54
+ auth: ctx.authVerifier.accessPrivileged(),
55
55
  handler: ({ req, auth }) => {
56
56
  return (0, pipethrough_1.pipethrough)(ctx, req, auth.credentials.did);
57
57
  },
58
58
  });
59
59
  server.chat.bsky.convo.muteConvo({
60
- auth: ctx.authVerifier.accessAppPassPrivileged,
60
+ auth: ctx.authVerifier.accessPrivileged(),
61
61
  handler: ({ req, auth, input }) => {
62
62
  return (0, pipethrough_1.pipethroughProcedure)(ctx, req, auth.credentials.did, input.body);
63
63
  },
64
64
  });
65
65
  server.chat.bsky.convo.sendMessage({
66
- auth: ctx.authVerifier.accessAppPassPrivileged,
66
+ auth: ctx.authVerifier.accessPrivileged(),
67
67
  handler: ({ req, auth, input }) => {
68
68
  return (0, pipethrough_1.pipethroughProcedure)(ctx, req, auth.credentials.did, input.body);
69
69
  },
70
70
  });
71
71
  server.chat.bsky.convo.sendMessageBatch({
72
- auth: ctx.authVerifier.accessAppPassPrivileged,
72
+ auth: ctx.authVerifier.accessPrivileged(),
73
73
  handler: ({ req, auth, input }) => {
74
74
  return (0, pipethrough_1.pipethroughProcedure)(ctx, req, auth.credentials.did, input.body);
75
75
  },
76
76
  });
77
77
  server.chat.bsky.convo.unmuteConvo({
78
- auth: ctx.authVerifier.accessAppPassPrivileged,
78
+ auth: ctx.authVerifier.accessPrivileged(),
79
79
  handler: ({ req, auth, input }) => {
80
80
  return (0, pipethrough_1.pipethroughProcedure)(ctx, req, auth.credentials.did, input.body);
81
81
  },
82
82
  });
83
83
  server.chat.bsky.convo.updateRead({
84
- auth: ctx.authVerifier.accessAppPassPrivileged,
84
+ auth: ctx.authVerifier.accessPrivileged(),
85
85
  handler: ({ req, auth, input }) => {
86
86
  return (0, pipethrough_1.pipethroughProcedure)(ctx, req, auth.credentials.did, input.body);
87
87
  },