@atproto/pds 0.4.60 → 0.4.61

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/account-manager/helpers/account.d.ts +1 -0
  3. package/dist/account-manager/helpers/account.d.ts.map +1 -1
  4. package/dist/account-manager/helpers/account.js +15 -1
  5. package/dist/account-manager/helpers/account.js.map +1 -1
  6. package/dist/account-manager/helpers/invite.d.ts +1 -1
  7. package/dist/account-manager/helpers/invite.d.ts.map +1 -1
  8. package/dist/account-manager/helpers/invite.js +20 -9
  9. package/dist/account-manager/helpers/invite.js.map +1 -1
  10. package/dist/account-manager/index.d.ts +2 -0
  11. package/dist/account-manager/index.d.ts.map +1 -1
  12. package/dist/account-manager/index.js +8 -1
  13. package/dist/account-manager/index.js.map +1 -1
  14. package/dist/api/com/atproto/admin/getAccountInfo.d.ts.map +1 -1
  15. package/dist/api/com/atproto/admin/getAccountInfo.js +6 -14
  16. package/dist/api/com/atproto/admin/getAccountInfo.js.map +1 -1
  17. package/dist/api/com/atproto/admin/getAccountInfos.d.ts +4 -0
  18. package/dist/api/com/atproto/admin/getAccountInfos.d.ts.map +1 -0
  19. package/dist/api/com/atproto/admin/getAccountInfos.js +32 -0
  20. package/dist/api/com/atproto/admin/getAccountInfos.js.map +1 -0
  21. package/dist/api/com/atproto/admin/index.d.ts.map +1 -1
  22. package/dist/api/com/atproto/admin/index.js +2 -0
  23. package/dist/api/com/atproto/admin/index.js.map +1 -1
  24. package/dist/api/com/atproto/admin/util.d.ts +17 -0
  25. package/dist/api/com/atproto/admin/util.d.ts.map +1 -1
  26. package/dist/api/com/atproto/admin/util.js +27 -1
  27. package/dist/api/com/atproto/admin/util.js.map +1 -1
  28. package/dist/api/com/atproto/repo/getRecord.d.ts.map +1 -1
  29. package/dist/api/com/atproto/repo/getRecord.js +1 -1
  30. package/dist/api/com/atproto/repo/getRecord.js.map +1 -1
  31. package/dist/config/config.d.ts +8 -0
  32. package/dist/config/config.d.ts.map +1 -1
  33. package/dist/config/config.js +1 -0
  34. package/dist/config/config.js.map +1 -1
  35. package/dist/config/env.d.ts +1 -0
  36. package/dist/config/env.d.ts.map +1 -1
  37. package/dist/config/env.js +1 -0
  38. package/dist/config/env.js.map +1 -1
  39. package/dist/lexicon/index.d.ts +4 -0
  40. package/dist/lexicon/index.d.ts.map +1 -1
  41. package/dist/lexicon/index.js +8 -0
  42. package/dist/lexicon/index.js.map +1 -1
  43. package/dist/lexicon/lexicons.d.ts +85 -0
  44. package/dist/lexicon/lexicons.d.ts.map +1 -1
  45. package/dist/lexicon/lexicons.js +93 -0
  46. package/dist/lexicon/lexicons.js.map +1 -1
  47. package/dist/lexicon/types/com/atproto/repo/getRecord.d.ts +1 -0
  48. package/dist/lexicon/types/com/atproto/repo/getRecord.d.ts.map +1 -1
  49. package/dist/lexicon/types/tools/ozone/moderation/getRecords.d.ts +39 -0
  50. package/dist/lexicon/types/tools/ozone/moderation/getRecords.d.ts.map +1 -0
  51. package/dist/lexicon/types/tools/ozone/moderation/getRecords.js +3 -0
  52. package/dist/lexicon/types/tools/ozone/moderation/getRecords.js.map +1 -0
  53. package/dist/lexicon/types/tools/ozone/moderation/getRepos.d.ts +39 -0
  54. package/dist/lexicon/types/tools/ozone/moderation/getRepos.d.ts.map +1 -0
  55. package/dist/lexicon/types/tools/ozone/moderation/getRepos.js +3 -0
  56. package/dist/lexicon/types/tools/ozone/moderation/getRepos.js.map +1 -0
  57. package/dist/mailer/templates/confirm-email.js +1 -1
  58. package/dist/mailer/templates/confirm-email.js.map +1 -1
  59. package/dist/mailer/templates/delete-account.js +1 -1
  60. package/dist/mailer/templates/delete-account.js.map +1 -1
  61. package/dist/mailer/templates/plc-operation.js +1 -1
  62. package/dist/mailer/templates/plc-operation.js.map +1 -1
  63. package/dist/mailer/templates/reset-password.js +1 -1
  64. package/dist/mailer/templates/reset-password.js.map +1 -1
  65. package/dist/mailer/templates/update-email.js +1 -1
  66. package/dist/mailer/templates/update-email.js.map +1 -1
  67. package/dist/pipethrough.d.ts +1 -1
  68. package/dist/pipethrough.d.ts.map +1 -1
  69. package/dist/pipethrough.js +105 -73
  70. package/dist/pipethrough.js.map +1 -1
  71. package/package.json +11 -11
  72. package/src/account-manager/helpers/account.ts +22 -0
  73. package/src/account-manager/helpers/invite.ts +19 -9
  74. package/src/account-manager/index.ts +13 -1
  75. package/src/api/com/atproto/admin/getAccountInfo.ts +6 -13
  76. package/src/api/com/atproto/admin/getAccountInfos.ts +33 -0
  77. package/src/api/com/atproto/admin/index.ts +2 -0
  78. package/src/api/com/atproto/admin/util.ts +38 -0
  79. package/src/api/com/atproto/repo/getRecord.ts +4 -1
  80. package/src/config/config.ts +10 -0
  81. package/src/config/env.ts +2 -0
  82. package/src/lexicon/index.ts +24 -0
  83. package/src/lexicon/lexicons.ts +93 -0
  84. package/src/lexicon/types/com/atproto/repo/getRecord.ts +1 -0
  85. package/src/lexicon/types/tools/ozone/moderation/getRecords.ts +50 -0
  86. package/src/lexicon/types/tools/ozone/moderation/getRepos.ts +50 -0
  87. package/src/mailer/templates/confirm-email.hbs +1 -1
  88. package/src/mailer/templates/delete-account.hbs +1 -1
  89. package/src/mailer/templates/plc-operation.hbs +1 -1
  90. package/src/mailer/templates/reset-password.hbs +1 -1
  91. package/src/mailer/templates/update-email.hbs +1 -1
  92. package/src/pipethrough.ts +131 -92
  93. package/tests/proxied/read-after-write.test.ts +77 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @atproto/pds
2
2
 
3
+ ## 0.4.61
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2834](https://github.com/bluesky-social/atproto/pull/2834) [`4098d9890`](https://github.com/bluesky-social/atproto/commit/4098d9890173f4d6c6512f2d8994eebbf12b5e13) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Allow defaulting to unencoded responses when proxying client requests that do not specify accept-encoding
8
+
9
+ - [#2836](https://github.com/bluesky-social/atproto/pull/2836) [`a2bad977a`](https://github.com/bluesky-social/atproto/commit/a2bad977a8d941b4075ea3ffee3d6f7a0c0f467c) Thanks [@foysalit](https://github.com/foysalit)! - Add getRepos and getRecords endpoints for bulk fetching
10
+
11
+ - Updated dependencies [[`4098d9890`](https://github.com/bluesky-social/atproto/commit/4098d9890173f4d6c6512f2d8994eebbf12b5e13), [`a2bad977a`](https://github.com/bluesky-social/atproto/commit/a2bad977a8d941b4075ea3ffee3d6f7a0c0f467c), [`1226ed268`](https://github.com/bluesky-social/atproto/commit/1226ed2682970a58ae433b9deb11290333988ddd)]:
12
+ - @atproto/common@0.4.4
13
+ - @atproto/api@0.13.9
14
+ - @atproto/oauth-provider@0.2.3
15
+ - @atproto/aws@0.2.7
16
+ - @atproto/crypto@0.4.1
17
+ - @atproto/repo@0.5.3
18
+ - @atproto/xrpc-server@0.7.1
19
+
3
20
  ## 0.4.60
4
21
 
5
22
  ### Patch Changes
@@ -34,6 +34,7 @@ export declare const selectAccountQB: (db: AccountDb, flags?: AvailabilityFlags)
34
34
  email_token: import("../db").EmailToken;
35
35
  }, "account" | "actor", import("kysely/dist/cjs/util/type-utils").MergePartial<Partial<Omit<{}, never>>, Partial<Omit<{}, never>>>, "actor.did" | "account.email" | "account.invitesDisabled" | "account.emailConfirmedAt" | "actor.handle" | "actor.createdAt" | "actor.takedownRef" | "actor.deactivatedAt" | "actor.deleteAfter">;
36
36
  export declare const getAccount: (db: AccountDb, handleOrDid: string, flags?: AvailabilityFlags) => Promise<ActorAccount | null>;
37
+ export declare const getAccounts: (db: AccountDb, dids: string[], flags?: AvailabilityFlags) => Promise<Map<string, ActorAccount>>;
37
38
  export declare const getAccountByEmail: (db: AccountDb, email: string, flags?: AvailabilityFlags) => Promise<ActorAccount | null>;
38
39
  export declare const registerActor: (db: AccountDb, opts: {
39
40
  did: string;
@@ -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,O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GAAG,IAAI,kBAW3B,CAAA;AAED,eAAO,MAAM,eAAe,uBAA8B,MAAM,kBAU/D,CAAA;AAED,eAAO,MAAM,mBAAmB,YACrB,IAAI,GAAG;IACd,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;CAC7B;;;;;;;;;;;;CAWF,CAAA"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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.selectAccountQB = 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.getAccounts = exports.getAccount = exports.selectAccountQB = 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 {
@@ -49,6 +49,20 @@ const getAccount = async (db, handleOrDid, flags) => {
49
49
  return found || null;
50
50
  };
51
51
  exports.getAccount = getAccount;
52
+ const getAccounts = async (db, dids, flags) => {
53
+ const results = new Map();
54
+ if (!dids.length) {
55
+ return results;
56
+ }
57
+ const accounts = await (0, exports.selectAccountQB)(db, flags)
58
+ .where('actor.did', 'in', dids)
59
+ .execute();
60
+ accounts.forEach((account) => {
61
+ results.set(account.did, account);
62
+ });
63
+ return results;
64
+ };
65
+ exports.getAccounts = getAccounts;
52
66
  const getAccountByEmail = async (db, email, flags) => {
53
67
  const found = await (0, exports.selectAccountQB)(db, flags)
54
68
  .where('email', '=', email.toLowerCase())
@@ -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;AAEM,MAAM,eAAe,GAAG,CAAC,EAAa,EAAE,KAAyB,EAAE,EAAE;IAC1E,MAAM,EAAE,gBAAgB,GAAG,KAAK,EAAE,kBAAkB,GAAG,KAAK,EAAE,GAAG,KAAK,IAAI,EAAE,CAAA;IAC5E,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,OAAO,CAAA;IAC7B,OAAO,EAAE,CAAC,EAAE;SACT,UAAU,CAAC,OAAO,CAAC;SACnB,QAAQ,CAAC,SAAS,EAAE,WAAW,EAAE,aAAa,CAAC;SAC/C,EAAE,CAAC,CAAC,gBAAgB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,IAAA,yBAAoB,EAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;SAC3E,EAAE,CAAC,CAAC,kBAAkB,EAAE,CAAC,EAAE,EAAE,EAAE,CAC9B,EAAE,CAAC,KAAK,CAAC,qBAAqB,EAAE,IAAI,EAAE,IAAI,CAAC,CAC5C;SACA,MAAM,CAAC;QACN,WAAW;QACX,cAAc;QACd,iBAAiB;QACjB,mBAAmB;QACnB,qBAAqB;QACrB,mBAAmB;QACnB,eAAe;QACf,0BAA0B;QAC1B,yBAAyB;KAC1B,CAAC,CAAA;AACN,CAAC,CAAA;AArBY,QAAA,eAAe,mB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,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;QAC/B,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,CAAC,SAAS,EAAW,CAAA;IACpE,CAAC;SAAM,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC;QACjC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,CAAC,WAAW,EAAW,CAAA;IACtE,CAAC;SAAM,CAAC;QACN,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAW,CAAA;IACrD,CAAC;AACH,CAAC,CAAA;AAfY,QAAA,mBAAmB,uBAe/B"}
@@ -11,7 +11,7 @@ export declare const recordInviteUse: (db: AccountDb, opts: {
11
11
  }) => Promise<void>;
12
12
  export declare const ensureInviteIsAvailable: (db: AccountDb, inviteCode: string) => Promise<void>;
13
13
  export declare const selectInviteCodesQb: (db: AccountDb) => import("kysely/dist/cjs/parser/select-parser").SelectAllQueryBuilder<import("kysely/dist/cjs/parser/table-parser").From<import("../db").DatabaseSchema, import("kysely").AliasedQueryBuilder<import("kysely/dist/cjs/parser/table-parser").From<import("../db").DatabaseSchema, "invite_code">, "invite_code", import("kysely").Selection<import("kysely/dist/cjs/parser/table-parser").From<import("../db").DatabaseSchema, "invite_code">, "invite_code", "invite_code.code as code" | "invite_code.availableUses as available" | "invite_code.disabled as disabled" | "invite_code.forAccount as forAccount" | "invite_code.createdBy as createdBy" | "invite_code.createdAt as createdAt" | import("kysely").AliasedQueryBuilder<import("kysely/dist/cjs/parser/table-parser").From<import("../db").DatabaseSchema, "invite_code_use">, "invite_code_use", import("kysely").Selection<import("kysely/dist/cjs/parser/table-parser").From<import("../db").DatabaseSchema, "invite_code_use">, "invite_code_use", import("kysely").AliasedRawBuilder<number, "count">>, "uses">>, "codes">>, "codes", {}, "codes">;
14
- export declare const getAccountInviteCodes: (db: AccountDb, did: string) => Promise<CodeDetail[]>;
14
+ export declare const getAccountsInviteCodes: (db: AccountDb, dids: string[]) => Promise<Map<string, CodeDetail[]>>;
15
15
  export declare const getInviteCodesUses: (db: AccountDb, codes: string[]) => Promise<Record<string, CodeUse[]>>;
16
16
  export declare const getInvitedByForAccounts: (db: AccountDb, dids: string[]) => Promise<Record<string, CodeDetail>>;
17
17
  export declare const disableInviteCodes: (db: AccountDb, opts: {
@@ -1 +1 @@
1
- {"version":3,"file":"invite.d.ts","sourceRoot":"","sources":["../../../src/account-manager/helpers/invite.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAc,MAAM,OAAO,CAAA;AAG7C,eAAO,MAAM,iBAAiB,4BAElB;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,EAAE,CAAA;CAAE,EAAE,YACtC,MAAM,kBAkBjB,CAAA;AAED,eAAO,MAAM,wBAAwB,8BAEvB,MAAM,SACX,MAAM,EAAE,iBACA,MAAM,YACX,CAAC,GAAG,CAAC,KACd,QAAQ,UAAU,EAAE,CAkCtB,CAAA;AAED,eAAO,MAAM,eAAe,wBAEpB;IACJ,GAAG,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,GAAG,EAAE,MAAM,CAAA;CACZ,kBAUF,CAAA;AAED,eAAO,MAAM,uBAAuB,8BAEtB,MAAM,KACjB,QAAQ,IAAI,CA4Bd,CAAA;AAED,eAAO,MAAM,mBAAmB,ykCAkB/B,CAAA;AAED,eAAO,MAAM,qBAAqB,uBAE3B,MAAM,KACV,QAAQ,UAAU,EAAE,CAWtB,CAAA;AAED,eAAO,MAAM,kBAAkB,yBAEtB,MAAM,EAAE,KACd,QAAQ,OAAO,MAAM,EAAE,OAAO,EAAE,CAAC,CAgBnC,CAAA;AAED,eAAO,MAAM,uBAAuB,wBAE5B,MAAM,EAAE,KACb,QAAQ,OAAO,MAAM,EAAE,UAAU,CAAC,CA6BpC,CAAA;AAED,eAAO,MAAM,kBAAkB,wBAEvB;IAAE,KAA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I,MAAM,EAAE,UAAU,EAAE,CAAC,CAqBnC,CAAA;AAED,eAAO,MAAM,kBAAkB,yBAEtB,MAAM,EAAE,KACd,QAAQ,OAAO,MAAM,EAAE,OAAO,EAAE,CAAC,CAgBnC,CAAA;AAED,eAAO,MAAM,uBAAuB,wBAE5B,MAAM,EAAE,KACb,QAAQ,OAAO,MAAM,EAAE,UAAU,CAAC,CA6BpC,CAAA;AAED,eAAO,MAAM,kBAAkB,wBAEvB;IAAE,KAAK,EAAE,MAAM,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;CAAE,kBAmB9C,CAAA;AAED,eAAO,MAAM,yBAAyB,uBAE/B,MAAM,YACD,OAAO,kBAQlB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,OAAO,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,OAAO,EAAE,CAAA;CAChB,CAAA;AAED,KAAK,OAAO,GAAG;IACb,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf,CAAA"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.setAccountInvitesDisabled = exports.disableInviteCodes = exports.getInvitedByForAccounts = exports.getInviteCodesUses = exports.getAccountInviteCodes = exports.selectInviteCodesQb = exports.ensureInviteIsAvailable = exports.recordInviteUse = exports.createAccountInviteCodes = exports.createInviteCodes = void 0;
3
+ exports.setAccountInvitesDisabled = exports.disableInviteCodes = exports.getInvitedByForAccounts = exports.getInviteCodesUses = exports.getAccountsInviteCodes = exports.selectInviteCodesQb = exports.ensureInviteIsAvailable = exports.recordInviteUse = exports.createAccountInviteCodes = exports.createInviteCodes = void 0;
4
4
  const common_1 = require("@atproto/common");
5
5
  const xrpc_server_1 = require("@atproto/xrpc-server");
6
6
  const db_1 = require("../../db");
@@ -96,19 +96,30 @@ const selectInviteCodesQb = (db) => {
96
96
  return db.db.selectFrom(builder.as('codes')).selectAll();
97
97
  };
98
98
  exports.selectInviteCodesQb = selectInviteCodesQb;
99
- const getAccountInviteCodes = async (db, did) => {
99
+ const getAccountsInviteCodes = async (db, dids) => {
100
+ const results = new Map();
101
+ // We don't want to pass an empty array to kysely and let's avoid running a query entirely if there is nothing to match for
102
+ if (!dids.length)
103
+ return results;
100
104
  const res = await (0, exports.selectInviteCodesQb)(db)
101
- .where('forAccount', '=', did)
105
+ .where('forAccount', 'in', dids)
102
106
  .execute();
103
107
  const codes = res.map((row) => row.code);
104
108
  const uses = await (0, exports.getInviteCodesUses)(db, codes);
105
- return res.map((row) => ({
106
- ...row,
107
- uses: uses[row.code] ?? [],
108
- disabled: row.disabled === 1,
109
- }));
109
+ res.forEach((row) => {
110
+ const existing = results.get(row.forAccount) ?? [];
111
+ results.set(row.forAccount, [
112
+ ...existing,
113
+ {
114
+ ...row,
115
+ uses: uses[row.code] ?? [],
116
+ disabled: row.disabled === 1,
117
+ },
118
+ ]);
119
+ });
120
+ return results;
110
121
  };
111
- exports.getAccountInviteCodes = getAccountInviteCodes;
122
+ exports.getAccountsInviteCodes = getAccountsInviteCodes;
112
123
  const getInviteCodesUses = async (db, codes) => {
113
124
  const uses = {};
114
125
  if (codes.length > 0) {
@@ -1 +1 @@
1
- {"version":3,"file":"invite.js","sourceRoot":"","sources":["../../../src/account-manager/helpers/invite.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,sDAA0D;AAE1D,iCAAmC;AAE5B,MAAM,iBAAiB,GAAG,KAAK,EACpC,EAAa,EACb,QAAgD,EAChD,QAAgB,EAChB,EAAE;IACF,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAA;IACpC,MAAM,IAAI,GAAG,QAAQ,CAAC,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AE,QAAQ,EAAE,CAAC,EAAE,CAAC;aACpB,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,CAC9B,CAAA;IACH,CAAC;IACD,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACxB,MAAM,EAAE,CAAC,gBAAgB,CACvB,EAAE,CAAC,EAAE;aACF,WAAW,CAAC,aAAa,CAAC;aAC1B,GAAG,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC;aACpB,KAAK,CAAC,YAAY,EAAE,IAAI,EAAE,QAAQ,CAAC,CACvC,CAAA;IACH,CAAC;AACH,CAAC,CAAA;AArBY,QAAA,kBAAkB,sBAqB9B;AAEM,MAAM,yBAAyB,GAAG,KAAK,EAC5C,EAAa,EACb,GAAW,EACX,QAAiB,EACjB,EAAE;IACF,MAAM,EAAE,CAAC,gBAAgB,CACvB,EAAE,CAAC,EAAE;SACF,WAAW,CAAC,SAAS,CAAC;SACtB,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,CAAC;SACtB,GAAG,CAAC,EAAE,eAAe,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAC9C,CAAA;AACH,CAAC,CAAA;AAXY,QAAA,yBAAyB,6BAWrC"}
@@ -19,6 +19,7 @@ export declare class AccountManager implements AccountStore, RequestStore, Devic
19
19
  migrateOrThrow(): Promise<void>;
20
20
  close(): void;
21
21
  getAccount(handleOrDid: string, flags?: account.AvailabilityFlags): Promise<ActorAccount | null>;
22
+ getAccounts(dids: string[], flags?: account.AvailabilityFlags): Promise<Map<string, ActorAccount>>;
22
23
  getAccountByEmail(email: string, flags?: account.AvailabilityFlags): Promise<ActorAccount | null>;
23
24
  isAccountActivated(did: string): Promise<boolean>;
24
25
  getDidForActor(handleOrDid: string, flags?: account.AvailabilityFlags): Promise<string | null>;
@@ -75,6 +76,7 @@ export declare class AccountManager implements AccountStore, RequestStore, Devic
75
76
  }[], useCount: number): Promise<void>;
76
77
  createAccountInviteCodes(forAccount: string, codes: string[], expectedTotal: number, disabled: 0 | 1): Promise<invite.CodeDetail[]>;
77
78
  getAccountInvitesCodes(did: string): Promise<invite.CodeDetail[]>;
79
+ getAccountsInvitesCodes(dids: string[]): Promise<Map<string, invite.CodeDetail[]>>;
78
80
  getInvitedByForAccounts(dids: string[]): Promise<Record<string, invite.CodeDetail>>;
79
81
  getInviteCodesUses(codes: string[]): Promise<Record<string, {
80
82
  usedBy: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/account-manager/index.ts"],"names":[],"mappings":";AACA,OAAO,EACL,WAAW,EACX,YAAY,EACZ,IAAI,EACJ,UAAU,EACV,QAAQ,EACR,WAAW,EACX,kBAAkB,EAClB,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,SAAS,EACT,OAAO,EACP,SAAS,EACT,UAAU,EACV,iBAAiB,EAClB,MAAM,yBAAyB,CAAA;AAEhC,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAGvC,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAE/C,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAA;AACpE,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAsB,MAAM,MAAM,CAAA;AACvE,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAM/D,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAA;AAC1C,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAA;AAM9C,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAEtE,qBAAa,cACX,YAAW,YAAY,EAAE,YAAY,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IAOjE,YAAY,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IAIjE,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,GAAG,UAAU,CAAC;IAK1D,YAAY,CAChB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,GACxB,OAAO,CAAC,IAAI,CAAC;IAIV,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAO/C,WAAW,CACf,EAAE,EAAE,OAAO,EACX,IAAI,EAAE,SAAS,EACf,YAAY,CAAC,EAAE,YAAY,GAC1B,OAAO,CAAC,IAAI,CAAC;IAgBV,SAAS,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;IAKtD,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAK5C,WAAW,CACf,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,OAAO,EACnB,eAAe,EAAE,YAAY,EAC7B,OAAO,EAAE,YAAY,GACpB,OAAO,CAAC,IAAI,CAAC;IA6BV,uBAAuB,CAC3B,YAAY,EAAE,YAAY,GACzB,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;IAatB,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;CAI7D"}
@@ -85,6 +85,9 @@ class AccountManager {
85
85
  async getAccount(handleOrDid, flags) {
86
86
  return account.getAccount(this.db, handleOrDid, flags);
87
87
  }
88
+ async getAccounts(dids, flags) {
89
+ return account.getAccounts(this.db, dids, flags);
90
+ }
88
91
  async getAccountByEmail(email, flags) {
89
92
  return account.getAccountByEmail(this.db, email, flags);
90
93
  }
@@ -296,7 +299,11 @@ class AccountManager {
296
299
  return invite.createAccountInviteCodes(this.db, forAccount, codes, expectedTotal, disabled);
297
300
  }
298
301
  async getAccountInvitesCodes(did) {
299
- return invite.getAccountInviteCodes(this.db, did);
302
+ const inviteCodes = await invite.getAccountsInviteCodes(this.db, [did]);
303
+ return inviteCodes.get(did) ?? [];
304
+ }
305
+ async getAccountsInvitesCodes(dids) {
306
+ return invite.getAccountsInviteCodes(this.db, dids);
300
307
  }
301
308
  async getInvitedByForAccounts(dids) {
302
309
  return invite.getInvitedByForAccounts(this.db, dids);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/account-manager/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAA4C;AAqB5C,sDAAwD;AAIxD,oDAA4C;AAE5C,8BAAmC;AAEnC,6BAAuE;AACvE,2DAA4C;AAC5C,+CAA+D;AAC/D,qDAAsC;AACtC,6EAA8D;AAC9D,yDAA0C;AAC1C,wEAAyD;AACzD,kEAAmD;AACnD,yDAA0C;AAC1C,6DAA8C;AAC9C,qDAAsC;AACtC,yDAA0C;AAC1C,uDAAwC;AACxC,+EAAgE;AAEhE,6CAAsE;AAA7D,wGAAA,aAAa,OAAA;AAAE,8GAAA,mBAAmB,OAAA;AAE3C,MAAa,cAAc;IAKzB,YACU,eAAgC,EACxC,UAAkB,EACV,MAAiB,EACjB,UAAkB,EAC1B,wBAAwB,GAAG,KAAK;QAJhC;;;;mBAAQ,eAAe;WAAiB;QAExC;;;;mBAAQ,MAAM;WAAW;QACzB;;;;mBAAQ,UAAU;WAAQ;QAN5B;;;;;WAAa;QASX,IAAI,CAAC,EAAE,GAAG,IAAA,UAAK,EAAC,UAAU,EAAE,wBAAwB,CAAC,CAAA;IACvD,CAAC;IAED,KAAK,CAAC,cAAc;QAClB,MAAM,IAAI,CAAC,EAAE,CAAC,SAAS,EAAE,CAAA;QACzB,MAAM,IAAA,gBAAW,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,sBAAsB,EAAE,CAAA;IACrD,CAAC;IAED,KAAK;QACH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,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,gBAAgB,EAAE,CAAA;QACpE,OAAO,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;IAC7D,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,IAAU;QAC9B,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,gBAAgB,EAAE,CAAA;QACtE,OAAO,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;IAC7D,CAAC;CACF;AA/pBD,wCA+pBC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getAccountInfo.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/admin/getAccountInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAI5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAkCvD"}
1
+ {"version":3,"file":"getAccountInfo.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/admin/getAccountInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAK5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QA0BvD"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const xrpc_server_1 = require("@atproto/xrpc-server");
4
- const syntax_1 = require("@atproto/syntax");
4
+ const util_1 = require("./util");
5
5
  function default_1(server, ctx) {
6
6
  server.com.atproto.admin.getAccountInfo({
7
7
  auth: ctx.authVerifier.moderator,
@@ -20,19 +20,11 @@ function default_1(server, ctx) {
20
20
  const managesOwnInvites = !ctx.cfg.entryway;
21
21
  return {
22
22
  encoding: 'application/json',
23
- body: {
24
- did: account.did,
25
- handle: account.handle ?? syntax_1.INVALID_HANDLE,
26
- email: account.email ?? undefined,
27
- indexedAt: account.createdAt,
28
- emailConfirmedAt: account.emailConfirmedAt ?? undefined,
29
- invitedBy: managesOwnInvites ? invitedBy[params.did] : undefined,
30
- invites: managesOwnInvites ? invites : undefined,
31
- invitesDisabled: managesOwnInvites
32
- ? account.invitesDisabled === 1
33
- : undefined,
34
- deactivatedAt: account.deactivatedAt ?? undefined,
35
- },
23
+ body: (0, util_1.formatAccountInfo)(account, {
24
+ managesOwnInvites,
25
+ invitedBy,
26
+ invites,
27
+ }),
36
28
  };
37
29
  },
38
30
  });
@@ -1 +1 @@
1
- {"version":3,"file":"getAccountInfo.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/admin/getAccountInfo.ts"],"names":[],"mappings":";;AAEA,sDAA0D;AAC1D,4CAAgD;AAEhD,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC;QACtC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,SAAS;QAChC,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;YAC5B,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,SAAS,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;gBACtD,GAAG,CAAC,cAAc,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,EAAE;oBACxC,kBAAkB,EAAE,IAAI;oBACxB,gBAAgB,EAAE,IAAI;iBACvB,CAAC;gBACF,GAAG,CAAC,cAAc,CAAC,sBAA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,CAAC;QACtC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,SAAS;QAChC,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;YAC5B,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,SAAS,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;gBACtD,GAAG,CAAC,cAAc,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,EAAE;oBACxC,kBAAkB,EAAE,IAAI;oBACxB,gBAAgB,EAAE,IAAI;iBACvB,CAAC;gBACF,GAAG,CAAC,cAAc,CAAC,sBAAsB,CAAC,MAAM,CAAC,GAAG,CAAC;gBACrD,GAAG,CAAC,cAAc,CAAC,uBAAuB,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;aACzD,CAAC,CAAA;YACF,IAAI,CAAC,OAAO,EAAE,CAAC;gBACb,MAAM,IAAI,iCAAmB,CAAC,mBAAmB,EAAE,UAAU,CAAC,CAAA;YAChE,CAAC;YACD,MAAM,iBAAiB,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAA;YAC3C,OAAO;gBACL,QAAQ,EAAE,kBAAkB;gBAC5B,IAAI,EAAE,IAAA,wBAAiB,EAAC,OAAO,EAAE;oBAC/B,iBAAiB;oBACjB,SAAS;oBACT,OAAO;iBACR,CAAC;aACH,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AA1BD,4BA0BC"}
@@ -0,0 +1,4 @@
1
+ import { Server } from '../../../../lexicon';
2
+ import AppContext from '../../../../context';
3
+ export default function (server: Server, ctx: AppContext): void;
4
+ //# sourceMappingURL=getAccountInfos.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAccountInfos.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/admin/getAccountInfos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAG5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QA4BvD"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const util_1 = require("./util");
4
+ function default_1(server, ctx) {
5
+ server.com.atproto.admin.getAccountInfos({
6
+ auth: ctx.authVerifier.moderator,
7
+ handler: async ({ params }) => {
8
+ const [accounts, invites, invitedBy] = await Promise.all([
9
+ ctx.accountManager.getAccounts(params.dids, {
10
+ includeDeactivated: true,
11
+ includeTakenDown: true,
12
+ }),
13
+ ctx.accountManager.getAccountsInvitesCodes(params.dids),
14
+ ctx.accountManager.getInvitedByForAccounts(params.dids),
15
+ ]);
16
+ const managesOwnInvites = !ctx.cfg.entryway;
17
+ const infos = Array.from(accounts.values()).map((account) => {
18
+ return (0, util_1.formatAccountInfo)(account, {
19
+ managesOwnInvites,
20
+ invitedBy,
21
+ invites,
22
+ });
23
+ });
24
+ return {
25
+ encoding: 'application/json',
26
+ body: { infos },
27
+ };
28
+ },
29
+ });
30
+ }
31
+ exports.default = default_1;
32
+ //# sourceMappingURL=getAccountInfos.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAccountInfos.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/admin/getAccountInfos.ts"],"names":[],"mappings":";;AAEA,iCAA0C;AAE1C,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,eAAe,CAAC;QACvC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,SAAS;QAChC,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;YAC5B,MAAM,CAAC,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;gBACvD,GAAG,CAAC,cAAc,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,EAAE;oBAC1C,kBAAkB,EAAE,IAAI;oBACxB,gBAAgB,EAAE,IAAI;iBACvB,CAAC;gBACF,GAAG,CAAC,cAAc,CAAC,uBAAuB,CAAC,MAAM,CAAC,IAAI,CAAC;gBACvD,GAAG,CAAC,cAAc,CAAC,uBAAuB,CAAC,MAAM,CAAC,IAAI,CAAC;aACxD,CAAC,CAAA;YAEF,MAAM,iBAAiB,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAA;YAC3C,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;gBAC1D,OAAO,IAAA,wBAAiB,EAAC,OAAO,EAAE;oBAChC,iBAAiB;oBACjB,SAAS;oBACT,OAAO;iBACR,CAAC,CAAA;YACJ,CAAC,CAAC,CAAA;YAEF,OAAO;gBACL,QAAQ,EAAE,kBAAkB;gBAC5B,IAAI,EAAE,EAAE,KAAK,EAAE;aAChB,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AA5BD,4BA4BC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/admin/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAc5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAavD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/admin/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAe5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAcvD"}
@@ -15,10 +15,12 @@ const updateAccountEmail_1 = __importDefault(require("./updateAccountEmail"));
15
15
  const updateAccountPassword_1 = __importDefault(require("./updateAccountPassword"));
16
16
  const sendEmail_1 = __importDefault(require("./sendEmail"));
17
17
  const deleteAccount_1 = __importDefault(require("./deleteAccount"));
18
+ const getAccountInfos_1 = __importDefault(require("./getAccountInfos"));
18
19
  function default_1(server, ctx) {
19
20
  (0, updateSubjectStatus_1.default)(server, ctx);
20
21
  (0, getSubjectStatus_1.default)(server, ctx);
21
22
  (0, getAccountInfo_1.default)(server, ctx);
23
+ (0, getAccountInfos_1.default)(server, ctx);
22
24
  (0, enableAccountInvites_1.default)(server, ctx);
23
25
  (0, disableAccountInvites_1.default)(server, ctx);
24
26
  (0, disableInviteCodes_1.default)(server, ctx);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/admin/index.ts"],"names":[],"mappings":";;;;;AAEA,gFAAuD;AACvD,0EAAiD;AACjD,sEAA6C;AAC7C,kFAAyD;AACzD,oFAA2D;AAC3D,8EAAqD;AACrD,sEAA6C;AAC7C,gFAAuD;AACvD,8EAAqD;AACrD,oFAA2D;AAC3D,4DAAmC;AACnC,oEAA2C;AAE3C,mBAAyB,MAAc,EAAE,GAAe;IACtD,IAAA,6BAAmB,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAChC,IAAA,0BAAgB,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC7B,IAAA,wBAAc,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAA,8BAAoB,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACjC,IAAA,+BAAqB,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAClC,IAAA,4BAAkB,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC/B,IAAA,wBAAc,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAA,6BAAmB,EAAC,MAAM,EAAE,GA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MAAM,EAAE,GAAG,CAAC,CAAA;IACtB,IAAA,uBAAa,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AAC5B,CAAC;AAdD,4BAcC"}
@@ -1,4 +1,6 @@
1
1
  import express from 'express';
2
+ import { ActorAccount } from '../../../../account-manager/helpers/account';
3
+ import { CodeDetail } from '../../../../account-manager/helpers/invite';
2
4
  export declare function authPassthru(req: express.Request, withEncoding?: false): {
3
5
  headers: {
4
6
  authorization: string;
@@ -11,4 +13,19 @@ export declare function authPassthru(req: express.Request, withEncoding: true):
11
13
  };
12
14
  encoding: 'application/json';
13
15
  } | undefined;
16
+ export declare function formatAccountInfo(account: ActorAccount, { managesOwnInvites, invitedBy, invites, }: {
17
+ managesOwnInvites: boolean;
18
+ invites: Map<string, CodeDetail[]> | CodeDetail[];
19
+ invitedBy: Record<string, CodeDetail>;
20
+ }): {
21
+ did: string;
22
+ handle: string;
23
+ email: string | undefined;
24
+ indexedAt: string;
25
+ emailConfirmedAt: string | undefined;
26
+ invitedBy: CodeDetail | undefined;
27
+ invites: CodeDetail[] | undefined;
28
+ invitesDisabled: boolean | undefined;
29
+ deactivatedAt: string | undefined;
30
+ };
14
31
  //# sourceMappingURL=util.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/admin/util.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAA;AAI7B,wBAAgB,YAAY,CAC1B,GAAG,EAAE,OAAO,CAAC,OAAO,EACpB,YAAY,CAAC,EAAE,KAAK,GACnB;IAAE,OAAO,EAAE;QAAE,aAAa,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,GAAG,SAAS,CAAA;AAE1E,wBAAgB,YAAY,CAC1B,GAAG,EAAE,OAAO,CAAC,OAAO,EACpB,YAAY,EAAE,IAAI,GAEhB;IAAE,OAAO,EAAE;QAAE,aAAa,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,QAAQ,EAAE,kBAAkB,CAAA;CAAE,GACpE,SAAS,CAAA"}
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/admin/util.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAA;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAA;AAE1E,OAAO,EAAE,UAAU,EAAE,MAAM,4CAA4C,CAAA;AAIvE,wBAAgB,YAAY,CAC1B,GAAG,EAAE,OAAO,CAAC,OAAO,EACpB,YAAY,CAAC,EAAE,KAAK,GACnB;IAAE,OAAO,EAAE;QAAE,aAAa,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,GAAG,SAAS,CAAA;AAE1E,wBAAgB,YAAY,CAC1B,GAAG,EAAE,OAAO,CAAC,OAAO,EACpB,YAAY,EAAE,IAAI,GAEhB;IAAE,OAAO,EAAE;QAAE,aAAa,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,QAAQ,EAAE,kBAAkB,CAAA;CAAE,GACpE,SAAS,CAAA;AAWb,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,YAAY,EACrB,EACE,iBAAiB,EACjB,SAAS,EACT,OAAO,GACR,EAAE;IACD,iBAAiB,EAAE,OAAO,CAAA;IAC1B,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,EAAE,CAAC,GAAG,UAAU,EAAE,CAAA;IACjD,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;CACtC;;;;;;;;;;EAuBF"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.authPassthru = void 0;
3
+ exports.formatAccountInfo = exports.authPassthru = void 0;
4
+ const syntax_1 = require("@atproto/syntax");
4
5
  function authPassthru(req, withEncoding) {
5
6
  if (req.headers.authorization) {
6
7
  return {
@@ -10,4 +11,29 @@ function authPassthru(req, withEncoding) {
10
11
  }
11
12
  }
12
13
  exports.authPassthru = authPassthru;
14
+ function formatAccountInfo(account, { managesOwnInvites, invitedBy, invites, }) {
15
+ let invitesResults;
16
+ if (managesOwnInvites) {
17
+ if (Array.isArray(invites)) {
18
+ invitesResults = invites;
19
+ }
20
+ else {
21
+ invitesResults = invites.get(account.did) || [];
22
+ }
23
+ }
24
+ return {
25
+ did: account.did,
26
+ handle: account.handle ?? syntax_1.INVALID_HANDLE,
27
+ email: account.email ?? undefined,
28
+ indexedAt: account.createdAt,
29
+ emailConfirmedAt: account.emailConfirmedAt ?? undefined,
30
+ invitedBy: managesOwnInvites ? invitedBy[account.did] : undefined,
31
+ invites: invitesResults,
32
+ invitesDisabled: managesOwnInvites
33
+ ? account.invitesDisabled === 1
34
+ : undefined,
35
+ deactivatedAt: account.deactivatedAt ?? undefined,
36
+ };
37
+ }
38
+ exports.formatAccountInfo = formatAccountInfo;
13
39
  //# sourceMappingURL=util.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"util.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/admin/util.ts"],"names":[],"mappings":";;;AAgBA,SAAgB,YAAY,CAAC,GAAoB,EAAE,YAAsB;IACvE,IAAI,GAAG,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC;QAC9B,OAAO;YACL,OAAO,EAAE,EAAE,aAAa,EAAE,GAAG,CAAC,OAAO,CAAC,aAAa,EAAE;YACrD,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS;SACxD,CAAA;IACH,CAAC;AACH,CAAC;AAPD,oCAOC"}
1
+ {"version":3,"file":"util.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/admin/util.ts"],"names":[],"mappings":";;;AAEA,4CAAgD;AAiBhD,SAAgB,YAAY,CAAC,GAAoB,EAAE,YAAsB;IACvE,IAAI,GAAG,CAAC,OAAO,CAAC,aAAa,EAAE,C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,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAI5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QA8BvD"}
1
+ {"version":3,"file":"getRecord.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/repo/getRecord.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAI5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAiCvD"}
@@ -12,7 +12,7 @@ function default_1(server, ctx) {
12
12
  const uri = syntax_1.AtUri.make(did, collection, rkey);
13
13
  const record = await ctx.actorStore.read(did, (store) => store.record.getRecord(uri, cid ?? null));
14
14
  if (!record || record.takedownRef !== null) {
15
- throw new xrpc_server_1.InvalidRequestError(`Could not locate record: ${uri}`);
15
+ throw new xrpc_server_1.InvalidRequestError(`Could not locate record: ${uri}`, 'RecordNotFound');
16
16
  }
17
17
  return {
18
18
  encoding: 'application/json',