@atproto/pds 0.5.11 → 0.5.14

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 (322) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/dist/api/app/bsky/notification/index.d.ts.map +1 -1
  3. package/dist/api/app/bsky/notification/index.js +2 -0
  4. package/dist/api/app/bsky/notification/index.js.map +1 -1
  5. package/dist/api/app/bsky/notification/unregisterPush.d.ts +4 -0
  6. package/dist/api/app/bsky/notification/unregisterPush.d.ts.map +1 -0
  7. package/dist/api/app/bsky/notification/unregisterPush.js +48 -0
  8. package/dist/api/app/bsky/notification/unregisterPush.js.map +1 -0
  9. package/package.json +42 -38
  10. package/build.templates.cjs +0 -22
  11. package/example.env +0 -42
  12. package/jest.config.cjs +0 -27
  13. package/src/account-manager/account-manager.ts +0 -916
  14. package/src/account-manager/db/index.ts +0 -21
  15. package/src/account-manager/db/migrations/001-init.ts +0 -115
  16. package/src/account-manager/db/migrations/002-account-deactivation.ts +0 -17
  17. package/src/account-manager/db/migrations/003-privileged-app-passwords.ts +0 -12
  18. package/src/account-manager/db/migrations/004-oauth.ts +0 -122
  19. package/src/account-manager/db/migrations/005-oauth-account-management.ts +0 -136
  20. package/src/account-manager/db/migrations/006-oauth-permission-sets.ts +0 -20
  21. package/src/account-manager/db/migrations/007-lexicon-failures-index.ts +0 -14
  22. package/src/account-manager/db/migrations/index.ts +0 -17
  23. package/src/account-manager/db/schema/account-device.ts +0 -14
  24. package/src/account-manager/db/schema/account.ts +0 -16
  25. package/src/account-manager/db/schema/actor.ts +0 -17
  26. package/src/account-manager/db/schema/app-password.ts +0 -13
  27. package/src/account-manager/db/schema/authorization-request.ts +0 -30
  28. package/src/account-manager/db/schema/authorized-client.ts +0 -23
  29. package/src/account-manager/db/schema/device.ts +0 -18
  30. package/src/account-manager/db/schema/email-token.ts +0 -19
  31. package/src/account-manager/db/schema/index.ts +0 -43
  32. package/src/account-manager/db/schema/invite-code.ts +0 -24
  33. package/src/account-manager/db/schema/lexicon.ts +0 -15
  34. package/src/account-manager/db/schema/refresh-token.ts +0 -11
  35. package/src/account-manager/db/schema/repo-root.ts +0 -12
  36. package/src/account-manager/db/schema/token.ts +0 -38
  37. package/src/account-manager/db/schema/used-refresh-token.ts +0 -13
  38. package/src/account-manager/helpers/account-device.ts +0 -63
  39. package/src/account-manager/helpers/account.ts +0 -355
  40. package/src/account-manager/helpers/auth.ts +0 -222
  41. package/src/account-manager/helpers/authorization-request.ts +0 -90
  42. package/src/account-manager/helpers/authorized-client.ts +0 -75
  43. package/src/account-manager/helpers/device.ts +0 -47
  44. package/src/account-manager/helpers/email-token.ts +0 -87
  45. package/src/account-manager/helpers/invite.ts +0 -263
  46. package/src/account-manager/helpers/lexicon.ts +0 -67
  47. package/src/account-manager/helpers/password.ts +0 -136
  48. package/src/account-manager/helpers/repo.ts +0 -24
  49. package/src/account-manager/helpers/scrypt.ts +0 -53
  50. package/src/account-manager/helpers/token.ts +0 -158
  51. package/src/account-manager/helpers/used-refresh-token.ts +0 -30
  52. package/src/account-manager/oauth-store.ts +0 -880
  53. package/src/account-manager/scope-reference-getter.ts +0 -106
  54. package/src/actor-store/actor-store-reader.ts +0 -45
  55. package/src/actor-store/actor-store-resources.ts +0 -8
  56. package/src/actor-store/actor-store-transactor.ts +0 -31
  57. package/src/actor-store/actor-store-writer.ts +0 -17
  58. package/src/actor-store/actor-store.ts +0 -210
  59. package/src/actor-store/blob/reader.ts +0 -160
  60. package/src/actor-store/blob/transactor.ts +0 -383
  61. package/src/actor-store/db/index.ts +0 -20
  62. package/src/actor-store/db/migrations/001-init.ts +0 -105
  63. package/src/actor-store/db/migrations/index.ts +0 -5
  64. package/src/actor-store/db/schema/account-pref.ts +0 -11
  65. package/src/actor-store/db/schema/backlink.ts +0 -9
  66. package/src/actor-store/db/schema/blob.ts +0 -14
  67. package/src/actor-store/db/schema/index.ts +0 -23
  68. package/src/actor-store/db/schema/record-blob.ts +0 -8
  69. package/src/actor-store/db/schema/record.ts +0 -14
  70. package/src/actor-store/db/schema/repo-block.ts +0 -10
  71. package/src/actor-store/db/schema/repo-root.ts +0 -10
  72. package/src/actor-store/migrate.ts +0 -39
  73. package/src/actor-store/preference/reader.ts +0 -48
  74. package/src/actor-store/preference/transactor.ts +0 -55
  75. package/src/actor-store/preference/util.ts +0 -39
  76. package/src/actor-store/record/reader.ts +0 -374
  77. package/src/actor-store/record/transactor.ts +0 -111
  78. package/src/actor-store/repo/reader.ts +0 -31
  79. package/src/actor-store/repo/sql-repo-reader.ts +0 -150
  80. package/src/actor-store/repo/sql-repo-transactor.ts +0 -105
  81. package/src/actor-store/repo/transactor.ts +0 -227
  82. package/src/api/app/bsky/actor/getPreferences.ts +0 -57
  83. package/src/api/app/bsky/actor/getProfile.ts +0 -41
  84. package/src/api/app/bsky/actor/getProfiles.ts +0 -51
  85. package/src/api/app/bsky/actor/index.ts +0 -13
  86. package/src/api/app/bsky/actor/putPreferences.ts +0 -62
  87. package/src/api/app/bsky/feed/getActorLikes.ts +0 -63
  88. package/src/api/app/bsky/feed/getAuthorFeed.ts +0 -84
  89. package/src/api/app/bsky/feed/getFeed.ts +0 -47
  90. package/src/api/app/bsky/feed/getPostThread.ts +0 -251
  91. package/src/api/app/bsky/feed/getTimeline.ts +0 -50
  92. package/src/api/app/bsky/feed/index.ts +0 -15
  93. package/src/api/app/bsky/index.ts +0 -11
  94. package/src/api/app/bsky/notification/index.ts +0 -7
  95. package/src/api/app/bsky/notification/registerPush.ts +0 -71
  96. package/src/api/app/bsky/util/resolver.ts +0 -20
  97. package/src/api/com/atproto/admin/deleteAccount.ts +0 -22
  98. package/src/api/com/atproto/admin/disableAccountInvites.ts +0 -18
  99. package/src/api/com/atproto/admin/disableInviteCodes.ts +0 -21
  100. package/src/api/com/atproto/admin/enableAccountInvites.ts +0 -18
  101. package/src/api/com/atproto/admin/getAccountInfo.ts +0 -32
  102. package/src/api/com/atproto/admin/getAccountInfos.ts +0 -34
  103. package/src/api/com/atproto/admin/getInviteCodes.ts +0 -126
  104. package/src/api/com/atproto/admin/getSubjectStatus.ts +0 -76
  105. package/src/api/com/atproto/admin/index.ts +0 -31
  106. package/src/api/com/atproto/admin/sendEmail.ts +0 -47
  107. package/src/api/com/atproto/admin/updateAccountEmail.ts +0 -32
  108. package/src/api/com/atproto/admin/updateAccountHandle.ts +0 -47
  109. package/src/api/com/atproto/admin/updateAccountPassword.ts +0 -34
  110. package/src/api/com/atproto/admin/updateSubjectStatus.ts +0 -68
  111. package/src/api/com/atproto/admin/util.ts +0 -66
  112. package/src/api/com/atproto/identity/getRecommendedDidCredentials.ts +0 -50
  113. package/src/api/com/atproto/identity/index.ts +0 -17
  114. package/src/api/com/atproto/identity/requestPlcOperationSignature.ts +0 -59
  115. package/src/api/com/atproto/identity/resolveHandle.ts +0 -50
  116. package/src/api/com/atproto/identity/signPlcOperation.ts +0 -85
  117. package/src/api/com/atproto/identity/submitPlcOperation.ts +0 -65
  118. package/src/api/com/atproto/identity/updateHandle.ts +0 -66
  119. package/src/api/com/atproto/index.ts +0 -19
  120. package/src/api/com/atproto/moderation/createReport.ts +0 -41
  121. package/src/api/com/atproto/moderation/index.ts +0 -7
  122. package/src/api/com/atproto/repo/applyWrites.ts +0 -226
  123. package/src/api/com/atproto/repo/createRecord.ts +0 -143
  124. package/src/api/com/atproto/repo/deleteRecord.ts +0 -122
  125. package/src/api/com/atproto/repo/describeRepo.ts +0 -43
  126. package/src/api/com/atproto/repo/getRecord.ts +0 -40
  127. package/src/api/com/atproto/repo/importRepo.ts +0 -101
  128. package/src/api/com/atproto/repo/index.ts +0 -25
  129. package/src/api/com/atproto/repo/listMissingBlobs.ts +0 -29
  130. package/src/api/com/atproto/repo/listRecords.ts +0 -36
  131. package/src/api/com/atproto/repo/putRecord.ts +0 -211
  132. package/src/api/com/atproto/repo/uploadBlob.ts +0 -60
  133. package/src/api/com/atproto/server/activateAccount.ts +0 -37
  134. package/src/api/com/atproto/server/checkAccountStatus.ts +0 -51
  135. package/src/api/com/atproto/server/confirmEmail.ts +0 -39
  136. package/src/api/com/atproto/server/createAccount.ts +0 -327
  137. package/src/api/com/atproto/server/createAppPassword.ts +0 -53
  138. package/src/api/com/atproto/server/createInviteCode.ts +0 -38
  139. package/src/api/com/atproto/server/createInviteCodes.ts +0 -42
  140. package/src/api/com/atproto/server/createSession.ts +0 -97
  141. package/src/api/com/atproto/server/deactivateAccount.ts +0 -41
  142. package/src/api/com/atproto/server/deleteAccount.ts +0 -85
  143. package/src/api/com/atproto/server/deleteSession.ts +0 -23
  144. package/src/api/com/atproto/server/describeServer.ts +0 -29
  145. package/src/api/com/atproto/server/getAccountInviteCodes.ts +0 -142
  146. package/src/api/com/atproto/server/getServiceAuth.ts +0 -111
  147. package/src/api/com/atproto/server/getSession.ts +0 -80
  148. package/src/api/com/atproto/server/index.ts +0 -55
  149. package/src/api/com/atproto/server/listAppPasswords.ts +0 -45
  150. package/src/api/com/atproto/server/refreshSession.ts +0 -72
  151. package/src/api/com/atproto/server/requestAccountDelete.ts +0 -66
  152. package/src/api/com/atproto/server/requestEmailConfirmation.ts +0 -68
  153. package/src/api/com/atproto/server/requestEmailUpdate.ts +0 -86
  154. package/src/api/com/atproto/server/requestPasswordReset.ts +0 -52
  155. package/src/api/com/atproto/server/reserveSigningKey.ts +0 -15
  156. package/src/api/com/atproto/server/resetPassword.ts +0 -50
  157. package/src/api/com/atproto/server/revokeAppPassword.ts +0 -42
  158. package/src/api/com/atproto/server/updateEmail.ts +0 -52
  159. package/src/api/com/atproto/server/util.ts +0 -136
  160. package/src/api/com/atproto/sync/deprecated/getCheckout.ts +0 -27
  161. package/src/api/com/atproto/sync/deprecated/getHead.ts +0 -33
  162. package/src/api/com/atproto/sync/getBlob.ts +0 -61
  163. package/src/api/com/atproto/sync/getBlocks.ts +0 -37
  164. package/src/api/com/atproto/sync/getLatestCommit.ts +0 -33
  165. package/src/api/com/atproto/sync/getRecord.ts +0 -49
  166. package/src/api/com/atproto/sync/getRepo.ts +0 -75
  167. package/src/api/com/atproto/sync/getRepoStatus.ts +0 -34
  168. package/src/api/com/atproto/sync/index.ts +0 -27
  169. package/src/api/com/atproto/sync/listBlobs.ts +0 -33
  170. package/src/api/com/atproto/sync/listRepos.ts +0 -74
  171. package/src/api/com/atproto/sync/subscribeRepos.ts +0 -73
  172. package/src/api/com/atproto/sync/util.ts +0 -37
  173. package/src/api/com/atproto/temp/checkSignupQueue.ts +0 -34
  174. package/src/api/com/atproto/temp/index.ts +0 -7
  175. package/src/api/index.ts +0 -10
  176. package/src/api/proxy.ts +0 -44
  177. package/src/app-view.ts +0 -24
  178. package/src/auth-output.ts +0 -52
  179. package/src/auth-routes.ts +0 -64
  180. package/src/auth-scope.ts +0 -40
  181. package/src/auth-verifier.ts +0 -668
  182. package/src/background.ts +0 -65
  183. package/src/basic-routes.ts +0 -52
  184. package/src/bsky-app-view.ts +0 -33
  185. package/src/config/config.ts +0 -553
  186. package/src/config/env.ts +0 -167
  187. package/src/config/index.ts +0 -3
  188. package/src/config/secrets.ts +0 -54
  189. package/src/context.ts +0 -523
  190. package/src/crawlers.ts +0 -46
  191. package/src/db/cast.ts +0 -52
  192. package/src/db/db.ts +0 -140
  193. package/src/db/index.ts +0 -4
  194. package/src/db/migrator.ts +0 -40
  195. package/src/db/pagination.ts +0 -132
  196. package/src/db/tables/moderation.ts +0 -80
  197. package/src/db/util.ts +0 -108
  198. package/src/did-cache/db/index.ts +0 -21
  199. package/src/did-cache/db/migrations.ts +0 -17
  200. package/src/did-cache/db/schema.ts +0 -9
  201. package/src/did-cache/index.ts +0 -131
  202. package/src/disk-blobstore.ts +0 -172
  203. package/src/error.ts +0 -19
  204. package/src/handle/explicit-slurs.ts +0 -22
  205. package/src/handle/index.ts +0 -49
  206. package/src/handle/reserved.ts +0 -1059
  207. package/src/image/image-url-builder.ts +0 -16
  208. package/src/index.ts +0 -189
  209. package/src/lexicons.ts +0 -4
  210. package/src/logger.ts +0 -35
  211. package/src/mailer/index.ts +0 -111
  212. package/src/mailer/moderation.ts +0 -33
  213. package/src/mailer/templates/confirm-email.d.ts +0 -4
  214. package/src/mailer/templates/confirm-email.hbs +0 -158
  215. package/src/mailer/templates/delete-account.d.ts +0 -4
  216. package/src/mailer/templates/delete-account.hbs +0 -156
  217. package/src/mailer/templates/plc-operation.d.ts +0 -4
  218. package/src/mailer/templates/plc-operation.hbs +0 -153
  219. package/src/mailer/templates/reset-password.d.ts +0 -4
  220. package/src/mailer/templates/reset-password.hbs +0 -154
  221. package/src/mailer/templates/update-email.d.ts +0 -4
  222. package/src/mailer/templates/update-email.hbs +0 -153
  223. package/src/mailer/templates.ts +0 -17
  224. package/src/pipethrough.ts +0 -716
  225. package/src/rate-limits.ts +0 -59
  226. package/src/read-after-write/index.ts +0 -3
  227. package/src/read-after-write/types.ts +0 -35
  228. package/src/read-after-write/util.ts +0 -101
  229. package/src/read-after-write/viewer.ts +0 -290
  230. package/src/redis.ts +0 -25
  231. package/src/repo/index.ts +0 -2
  232. package/src/repo/prepare.ts +0 -266
  233. package/src/repo/types.ts +0 -65
  234. package/src/scripts/README.md +0 -40
  235. package/src/scripts/index.ts +0 -20
  236. package/src/scripts/publish-identity.ts +0 -60
  237. package/src/scripts/rebuild-repo.ts +0 -119
  238. package/src/scripts/rotate-keys.ts +0 -146
  239. package/src/scripts/sequencer-recovery/index.ts +0 -23
  240. package/src/scripts/sequencer-recovery/recoverer.ts +0 -297
  241. package/src/scripts/sequencer-recovery/recovery-db.ts +0 -65
  242. package/src/scripts/sequencer-recovery/repair-repos.ts +0 -49
  243. package/src/scripts/sequencer-recovery/user-queues.ts +0 -44
  244. package/src/scripts/util.ts +0 -7
  245. package/src/sequencer/db/index.ts +0 -21
  246. package/src/sequencer/db/migrations/001-init.ts +0 -35
  247. package/src/sequencer/db/migrations/index.ts +0 -5
  248. package/src/sequencer/db/schema.ts +0 -19
  249. package/src/sequencer/events.ts +0 -199
  250. package/src/sequencer/index.ts +0 -3
  251. package/src/sequencer/outbox.ts +0 -123
  252. package/src/sequencer/sequencer.ts +0 -290
  253. package/src/util/compression.ts +0 -16
  254. package/src/util/debug.ts +0 -10
  255. package/src/util/http.ts +0 -31
  256. package/src/util/types.ts +0 -7
  257. package/src/well-known.ts +0 -30
  258. package/test.env +0 -2
  259. package/tests/__snapshots__/takedown-appeal.test.ts.snap +0 -43
  260. package/tests/_oauth_client_assets_middleware.ts +0 -23
  261. package/tests/_puppeteer.ts +0 -147
  262. package/tests/_types.d.ts +0 -16
  263. package/tests/_util.ts +0 -191
  264. package/tests/account-deactivation.test.ts +0 -204
  265. package/tests/account-deletion.test.ts +0 -300
  266. package/tests/account-manager.test.ts +0 -462
  267. package/tests/account-migration.test.ts +0 -221
  268. package/tests/account-status.test.ts +0 -206
  269. package/tests/account.test.ts +0 -595
  270. package/tests/app-passwords.test.ts +0 -262
  271. package/tests/auth.test.ts +0 -405
  272. package/tests/blob-deletes.test.ts +0 -204
  273. package/tests/create-post.test.ts +0 -79
  274. package/tests/crud.test.ts +0 -1595
  275. package/tests/db.test.ts +0 -170
  276. package/tests/email-confirmation.test.ts +0 -227
  277. package/tests/entryway-mock.ts +0 -323
  278. package/tests/entryway.test.ts +0 -145
  279. package/tests/file-uploads.test.ts +0 -301
  280. package/tests/get-service-auth.test.ts +0 -81
  281. package/tests/handle-validation.test.ts +0 -56
  282. package/tests/handles.test.ts +0 -274
  283. package/tests/invite-codes.test.ts +0 -367
  284. package/tests/invites-admin.test.ts +0 -252
  285. package/tests/moderation.test.ts +0 -280
  286. package/tests/moderator-auth.test.ts +0 -177
  287. package/tests/oauth.test.ts +0 -334
  288. package/tests/plc-operations.test.ts +0 -239
  289. package/tests/preferences.test.ts +0 -352
  290. package/tests/proxied/__snapshots__/admin.test.ts.snap +0 -516
  291. package/tests/proxied/__snapshots__/feedgen.test.ts.snap +0 -215
  292. package/tests/proxied/__snapshots__/views.test.ts.snap +0 -4456
  293. package/tests/proxied/admin.test.ts +0 -340
  294. package/tests/proxied/feedgen.test.ts +0 -66
  295. package/tests/proxied/notif.test.ts +0 -85
  296. package/tests/proxied/procedures.test.ts +0 -175
  297. package/tests/proxied/proxy-catchall.test.ts +0 -256
  298. package/tests/proxied/proxy-header.test.ts +0 -239
  299. package/tests/proxied/proxy-oauth-aud.test.ts +0 -182
  300. package/tests/proxied/read-after-write.test.ts +0 -382
  301. package/tests/proxied/views.test.ts +0 -608
  302. package/tests/races.test.ts +0 -89
  303. package/tests/rate-limits.test.ts +0 -70
  304. package/tests/recovery.test.ts +0 -180
  305. package/tests/seeds/basic.ts +0 -165
  306. package/tests/seeds/follows.ts +0 -57
  307. package/tests/seeds/likes.ts +0 -14
  308. package/tests/seeds/reposts.ts +0 -18
  309. package/tests/seeds/thread.ts +0 -40
  310. package/tests/seeds/users-bulk.ts +0 -246
  311. package/tests/seeds/users.ts +0 -67
  312. package/tests/sequencer.test.ts +0 -251
  313. package/tests/server.test.ts +0 -151
  314. package/tests/sync/invertible-ops.test.ts +0 -99
  315. package/tests/sync/list.test.ts +0 -43
  316. package/tests/sync/subscribe-repos.test.ts +0 -672
  317. package/tests/sync/sync.test.ts +0 -316
  318. package/tests/takedown-appeal.test.ts +0 -166
  319. package/tsconfig.build.json +0 -9
  320. package/tsconfig.build.tsbuildinfo +0 -1
  321. package/tsconfig.json +0 -7
  322. package/tsconfig.tests.json +0 -8
@@ -1,1059 +0,0 @@
1
- const atpSpecific = [
2
- 'at',
3
- 'atp',
4
- 'plc',
5
- 'pds',
6
- 'did',
7
- 'repo',
8
- 'tid',
9
- 'nsid',
10
- 'xrpc',
11
- 'lex',
12
- 'lexicon',
13
- 'bsky',
14
- 'bluesky',
15
- 'handle',
16
- ]
17
-
18
- // naively pulled from: https://radwebhosting.com/client_area/knowledgebase/196/List-of-Banned-Subdomain-Prefixes.html
19
- const commonlyReserved = [
20
- 'about',
21
- 'abuse',
22
- 'access',
23
- 'account',
24
- 'accounts',
25
- 'acme',
26
- 'activate',
27
- 'activities',
28
- 'activity',
29
- 'ad',
30
- 'add',
31
- 'address',
32
- 'adm',
33
- 'admanager',
34
- 'admin',
35
- 'administration',
36
- 'administrator',
37
- 'administrators',
38
- 'admins',
39
- 'ads',
40
- 'adsense',
41
- 'adult',
42
- 'advertising',
43
- 'adwords',
44
- 'affiliate',
45
- 'affiliatepage',
46
- 'affiliates',
47
- 'afp',
48
- 'ajax',
49
- 'all',
50
- 'alpha',
51
- 'analysis',
52
- 'analytics',
53
- 'android',
54
- 'anon',
55
- 'anonymous',
56
- 'answer',
57
- 'answers',
58
- 'ap',
59
- 'api',
60
- 'apis',
61
- 'app',
62
- 'appengine',
63
- 'appnews',
64
- 'apps',
65
- 'archive',
66
- 'archives',
67
- 'article',
68
- 'asdf',
69
- 'asset',
70
- 'assets',
71
- 'auth',
72
- 'authentication',
73
- 'avatar',
74
- 'backup',
75
- 'bank',
76
- 'banner',
77
- 'banners',
78
- 'base',
79
- 'beginners',
80
- 'beta',
81
- 'billing',
82
- 'bin',
83
- 'binaries',
84
- 'binary',
85
- 'blackberry',
86
- 'blog',
87
- 'blogs',
88
- 'blogsearch',
89
- 'board',
90
- 'book',
91
- 'bookmark',
92
- 'bookmarks',
93
- 'books',
94
- 'bot',
95
- 'bots',
96
- 'bug',
97
- 'bugs',
98
- 'business',
99
- 'buy',
100
- 'buzz',
101
- 'cache',
102
- 'calendar',
103
- 'call',
104
- 'campaign',
105
- 'cancel',
106
- 'captcha',
107
- 'career',
108
- 'careers',
109
- 'cart',
110
- 'catalog',
111
- 'catalogs',
112
- 'categories',
113
- 'category',
114
- 'cdn',
115
- 'cgi',
116
- 'cgi-bin',
117
- 'changelog',
118
- 'chart',
119
- 'charts',
120
- 'chat',
121
- 'check',
122
- 'checked',
123
- 'checking',
124
- 'checkout',
125
- 'client',
126
- 'cliente',
127
- 'clients',
128
- 'clients1',
129
- 'cnarne',
130
- 'code',
131
- 'comercial',
132
- 'comment',
133
- 'comments',
134
- 'communities',
135
- 'community',
136
- 'company',
137
- 'compare',
138
- 'compras',
139
- 'config',
140
- 'configuration',
141
- 'confirm',
142
- 'confirmation',
143
- 'connect',
144
- 'contact',
145
- 'contacts',
146
- 'contactus',
147
- 'contact-us',
148
- 'contact_us',
149
- 'content',
150
- 'contest',
151
- 'contribute',
152
- 'contributor',
153
- 'contributors',
154
- 'coppa',
155
- 'copyright',
156
- 'copyrights',
157
- 'core',
158
- 'corp',
159
- 'countries',
160
- 'country',
161
- 'cpanel',
162
- 'create',
163
- 'css',
164
- 'cssproxy',
165
- 'customise',
166
- 'customize',
167
- 'dashboard',
168
- 'data',
169
- 'db',
170
- 'default',
171
- 'delete',
172
- 'demo',
173
- 'design',
174
- 'designer',
175
- 'desktop',
176
- 'destroy',
177
- 'dev',
178
- 'devel',
179
- 'developer',
180
- 'developers',
181
- 'devs',
182
- 'diagram',
183
- 'diary',
184
- 'dict',
185
- 'dictionary',
186
- 'die',
187
- 'dir',
188
- 'directory',
189
- 'direct_messages',
190
- 'direct-messages',
191
- 'dist',
192
- 'diversity',
193
- 'dl',
194
- 'dmca',
195
- 'doc',
196
- 'docs',
197
- 'documentation',
198
- 'documentations',
199
- 'documents',
200
- 'domain',
201
- 'domains',
202
- 'donate',
203
- 'download',
204
- 'downloads',
205
- 'e',
206
- 'e-mail',
207
- 'earth',
208
- 'ecommerce',
209
- 'edit',
210
- 'edits',
211
- 'editor',
212
- 'edu',
213
- 'education',
214
- 'email',
215
- 'embed',
216
- 'embedded',
217
- 'employment',
218
- 'employments',
219
- 'empty',
220
- 'enable',
221
- 'encrypted',
222
- 'end',
223
- 'engine',
224
- 'enterprise',
225
- 'enterprises',
226
- 'entries',
227
- 'entry',
228
- 'error',
229
- 'errorlog',
230
- 'errors',
231
- 'eval',
232
- 'event',
233
- 'example',
234
- 'examplecommunity',
235
- 'exampleopenid',
236
- 'examplesyn',
237
- 'examplesyndicated',
238
- 'exampleusername',
239
- 'exchange',
240
- 'exit',
241
- 'explore',
242
- 'faq',
243
- 'faqs',
244
- 'favorite',
245
- 'favorites',
246
- 'favourite',
247
- 'favourites',
248
- 'feature',
249
- 'features',
250
- 'feed',
251
- 'feedback',
252
- 'feedburner',
253
- 'feedproxy',
254
- 'feeds',
255
- 'file',
256
- 'files',
257
- 'finance',
258
- 'folder',
259
- 'folders',
260
- 'first',
261
- 'following',
262
- 'forgot',
263
- 'form',
264
- 'forms',
265
- 'forum',
266
- 'forums',
267
- 'founder',
268
- 'free',
269
- 'friend',
270
- 'friends',
271
- 'ftp',
272
- 'fuck',
273
- 'fun',
274
- 'fusion',
275
- 'gadget',
276
- 'gadgets',
277
- 'game',
278
- 'games',
279
- 'gears',
280
- 'general',
281
- 'geographic',
282
- 'get',
283
- 'gettingstarted',
284
- 'gift',
285
- 'gifts',
286
- 'gist',
287
- 'git',
288
- 'github',
289
- 'gmail',
290
- 'go',
291
- 'golang',
292
- 'goto',
293
- 'gov',
294
- 'graph',
295
- 'graphs',
296
- 'group',
297
- 'groups',
298
- 'guest',
299
- 'guests',
300
- 'guide',
301
- 'guides',
302
- 'hack',
303
- 'hacks',
304
- 'head',
305
- 'help',
306
- 'home',
307
- 'homepage',
308
- 'host',
309
- 'hosting',
310
- 'hostmaster',
311
- 'hostname',
312
- 'howto',
313
- 'how-to',
314
- 'how_to',
315
- 'html',
316
- 'htrnl',
317
- 'http',
318
- 'httpd',
319
- 'https',
320
- 'i',
321
- 'iamges',
322
- 'icon',
323
- 'icons',
324
- 'id',
325
- 'idea',
326
- 'ideas',
327
- 'im',
328
- 'image',
329
- 'images',
330
- 'img',
331
- 'imap',
332
- 'inbox',
333
- 'inboxes',
334
- 'index',
335
- 'indexes',
336
- 'info',
337
- 'information',
338
- 'inquiry',
339
- 'intranet',
340
- 'investor',
341
- 'investors',
342
- 'invitation',
343
- 'invitations',
344
- 'invite',
345
- 'invoice',
346
- 'invoices',
347
- 'imac',
348
- 'ios',
349
- 'ipad',
350
- 'iphone',
351
- 'irc',
352
- 'irnages',
353
- 'irng',
354
- 'is',
355
- 'issue',
356
- 'issues',
357
- 'it',
358
- 'item',
359
- 'items',
360
- 'java',
361
- 'javascript',
362
- 'job',
363
- 'jobs',
364
- 'join',
365
- 'js',
366
- 'json',
367
- 'jump',
368
- 'kb',
369
- 'knowledge-base',
370
- 'knowledgebase',
371
- 'lab',
372
- 'labs',
373
- 'language',
374
- 'languages',
375
- 'last',
376
- 'ldap_status',
377
- 'ldap-status',
378
- 'ldapstatus',
379
- 'legal',
380
- 'license',
381
- 'licenses',
382
- 'link',
383
- 'links',
384
- 'linux',
385
- 'list',
386
- 'lists',
387
- 'livejournal',
388
- 'lj',
389
- 'local',
390
- 'locale',
391
- 'location',
392
- 'log',
393
- 'log-in',
394
- 'log-out',
395
- 'login',
396
- 'logout',
397
- 'logs',
398
- 'log_in',
399
- 'log_out',
400
- 'm',
401
- 'mac',
402
- 'macos',
403
- 'macosx',
404
- 'mac-os',
405
- 'mac-os-x',
406
- 'mac_os_x',
407
- 'mail',
408
- 'mailer',
409
- 'mailing',
410
- 'main',
411
- 'maintenance',
412
- 'manage',
413
- 'manager',
414
- 'manual',
415
- 'map',
416
- 'maps',
417
- 'marketing',
418
- 'master',
419
- 'me',
420
- 'media',
421
- 'member',
422
- 'members',
423
- 'memories',
424
- 'memory',
425
- 'merchandise',
426
- 'message',
427
- 'messages',
428
- 'messenger',
429
- 'mg',
430
- 'microblog',
431
- 'microblogs',
432
- 'mine',
433
- 'mis',
434
- 'misc',
435
- 'mms',
436
- 'mob',
437
- 'mobile',
438
- 'model',
439
- 'models',
440
- 'money',
441
- 'movie',
442
- 'movies',
443
- 'mp3',
444
- 'mp4',
445
- 'msg',
446
- 'msn',
447
- 'music',
448
- 'mx',
449
- 'my',
450
- 'mymme',
451
- 'mysql',
452
- 'name',
453
- 'named',
454
- 'nan',
455
- 'navi',
456
- 'navigation',
457
- 'net',
458
- 'network',
459
- 'networks',
460
- 'new',
461
- 'news',
462
- 'newsletter',
463
- 'nick',
464
- 'nickname',
465
- 'nil',
466
- 'none',
467
- 'notes',
468
- 'noticias',
469
- 'notification',
470
- 'notifications',
471
- 'notify',
472
- 'ns',
473
- 'ns1',
474
- 'ns2',
475
- 'ns3',
476
- 'ns4',
477
- 'ns5',
478
- 'null',
479
- 'oauth',
480
- 'oauth-clients',
481
- 'oauth_clients',
482
- 'ocsp',
483
- 'offer',
484
- 'offers',
485
- 'official',
486
- 'old',
487
- 'online',
488
- 'openid',
489
- 'operator',
490
- 'option',
491
- 'options',
492
- 'order',
493
- 'orders',
494
- 'org',
495
- 'organization',
496
- 'organizations',
497
- 'other',
498
- 'overview',
499
- 'owner',
500
- 'owners',
501
- 'p0rn',
502
- 'pack',
503
- 'page',
504
- 'pager',
505
- 'pages',
506
- 'paid',
507
- 'panel',
508
- 'partner',
509
- 'partnerpage',
510
- 'partners',
511
- 'password',
512
- 'patch',
513
- 'pay',
514
- 'payment',
515
- 'people',
516
- 'perl',
517
- 'person',
518
- 'phone',
519
- 'photo',
520
- 'photoalbum',
521
- 'photos',
522
- 'php',
523
- 'phpmyadmin',
524
- 'phppgadmin',
525
- 'phpredisadmin',
526
- 'pic',
527
- 'pics',
528
- 'picture',
529
- 'pictures',
530
- 'ping',
531
- 'pixel',
532
- 'places',
533
- 'plan',
534
- 'plans',
535
- 'plugin',
536
- 'plugins',
537
- 'podcasts',
538
- 'policies',
539
- 'policy',
540
- 'pop',
541
- 'pop3',
542
- 'popular',
543
- 'porn',
544
- 'portal',
545
- 'portals',
546
- 'post',
547
- 'postfix',
548
- 'postmaster',
549
- 'posts',
550
- 'pr',
551
- 'pr0n',
552
- 'premium',
553
- 'press',
554
- 'price',
555
- 'pricing',
556
- 'principles',
557
- 'print',
558
- 'privacy',
559
- 'privacy-policy',
560
- 'privacypolicy',
561
- 'privacy_policy',
562
- 'private',
563
- 'prod',
564
- 'product',
565
- 'production',
566
- 'products',
567
- 'profile',
568
- 'profiles',
569
- 'project',
570
- 'projects',
571
- 'promo',
572
- 'promotions',
573
- 'proxies',
574
- 'proxy',
575
- 'pub',
576
- 'public',
577
- 'purchase',
578
- 'purpose',
579
- 'put',
580
- 'python',
581
- 'queries',
582
- 'query',
583
- 'radio',
584
- 'random',
585
- 'ranking',
586
- 'read',
587
- 'reader',
588
- 'readme',
589
- 'recent',
590
- 'recruit',
591
- 'recruitment',
592
- 'redirect',
593
- 'register',
594
- 'registration',
595
- 'release',
596
- 'remove',
597
- 'replies',
598
- 'report',
599
- 'reports',
600
- 'repositories',
601
- 'repository',
602
- 'req',
603
- 'request',
604
- 'requests',
605
- 'research',
606
- 'reset',
607
- 'resolve',
608
- 'resolver',
609
- 'review',
610
- 'rnail',
611
- 'rnicrosoft',
612
- 'roc',
613
- 'root',
614
- 'rss',
615
- 'ruby',
616
- 'rule',
617
- 'sag',
618
- 'sale',
619
- 'sales',
620
- 'sample',
621
- 'samples',
622
- 'sandbox',
623
- 'save',
624
- 'scholar',
625
- 'school',
626
- 'schools',
627
- 'script',
628
- 'scripts',
629
- 'search',
630
- 'secure',
631
- 'security',
632
- 'self',
633
- 'seminars',
634
- 'send',
635
- 'server',
636
- 'server-info',
637
- 'server_info',
638
- 'server-status',
639
- 'server_status',
640
- 'servers',
641
- 'service',
642
- 'services',
643
- 'session',
644
- 'sessions',
645
- 'setting',
646
- 'settings',
647
- 'setup',
648
- 'share',
649
- 'shop',
650
- 'shopping',
651
- 'shortcut',
652
- 'shortcuts',
653
- 'show',
654
- 'sign-in',
655
- 'sign-up',
656
- 'signin',
657
- 'signout',
658
- 'signup',
659
- 'sign_in',
660
- 'sign_up',
661
- 'site',
662
- 'sitemap',
663
- 'sitemaps',
664
- 'sitenews',
665
- 'sites',
666
- 'sketchup',
667
- 'sky',
668
- 'slash',
669
- 'slashinvoice',
670
- 'slut',
671
- 'smartphone',
672
- 'sms',
673
- 'smtp',
674
- 'soap',
675
- 'software',
676
- 'sorry',
677
- 'source',
678
- 'spec',
679
- 'special',
680
- 'spreadsheet',
681
- 'spreadsheets',
682
- 'sql',
683
- 'src',
684
- 'srntp',
685
- 'ssh',
686
- 'ssl',
687
- 'ssladmin',
688
- 'ssladministrator',
689
- 'sslwebmaster',
690
- 'ssytem',
691
- 'staff',
692
- 'stage',
693
- 'staging',
694
- 'start',
695
- 'stat',
696
- 'state',
697
- 'static',
698
- 'statistics',
699
- 'stats',
700
- 'status',
701
- 'store',
702
- 'stores',
703
- 'stories',
704
- 'style',
705
- 'styleguide',
706
- 'styles',
707
- 'stylesheet',
708
- 'stylesheets',
709
- 'subdomain',
710
- 'subscribe',
711
- 'subscription',
712
- 'subscriptions',
713
- 'suggest',
714
- 'suggestqueries',
715
- 'support',
716
- 'survey',
717
- 'surveys',
718
- 'surveytool',
719
- 'svn',
720
- 'swf',
721
- 'syn',
722
- 'sync',
723
- 'syndicated',
724
- 'sys',
725
- 'sysadmin',
726
- 'sysadministrator',
727
- 'sysadmins',
728
- 'system',
729
- 'tablet',
730
- 'tablets',
731
- 'tag',
732
- 'tags',
733
- 'talk',
734
- 'talkgadget',
735
- 'task',
736
- 'tasks',
737
- 'team',
738
- 'teams',
739
- 'tech',
740
- 'telnet',
741
- 'term',
742
- 'terms',
743
- 'terms-of-service',
744
- 'termsofservice',
745
- 'terms_of_service',
746
- 'test',
747
- 'testing',
748
- 'tests',
749
- 'text',
750
- 'theme',
751
- 'themes',
752
- 'thread',
753
- 'threads',
754
- 'ticket',
755
- 'tickets',
756
- 'tmp',
757
- 'todo',
758
- 'to-do',
759
- 'to_do',
760
- 'toml',
761
- 'tool',
762
- 'toolbar',
763
- 'toolbars',
764
- 'tools',
765
- 'top',
766
- 'topic',
767
- 'topics',
768
- 'tos',
769
- 'tour',
770
- 'trac',
771
- 'translate',
772
- 'trace',
773
- 'translation',
774
- 'translations',
775
- 'translator',
776
- 'trends',
777
- 'tutorial',
778
- 'tux',
779
- 'tv',
780
- 'twitter',
781
- 'txt',
782
- 'ul',
783
- 'undef',
784
- 'unfollow',
785
- 'unsubscribe',
786
- 'update',
787
- 'updates',
788
- 'upgrade',
789
- 'upgrades',
790
- 'upi',
791
- 'upload',
792
- 'uploads',
793
- 'url',
794
- 'usage',
795
- 'user',
796
- 'username',
797
- 'usernames',
798
- 'users',
799
- 'uuid',
800
- 'validation',
801
- 'validations',
802
- 'ver',
803
- 'version',
804
- 'video',
805
- 'videos',
806
- 'video-stats',
807
- 'visitor',
808
- 'visitors',
809
- 'voice',
810
- 'volunteer',
811
- 'volunteers',
812
- 'w',
813
- 'watch',
814
- 'wave',
815
- 'weather',
816
- 'web',
817
- 'webdisk',
818
- 'webhook',
819
- 'webhooks',
820
- 'webmail',
821
- 'webmaster',
822
- 'webmasters',
823
- 'webrnail',
824
- 'website',
825
- 'websites',
826
- 'welcome',
827
- 'whm',
828
- 'whois',
829
- 'widget',
830
- 'widgets',
831
- 'wifi',
832
- 'wiki',
833
- 'wikis',
834
- 'win',
835
- 'windows',
836
- 'word',
837
- 'work',
838
- 'works',
839
- 'workshop',
840
- 'wpad',
841
- 'ww',
842
- 'wws',
843
- 'www',
844
- 'wwws',
845
- 'wwww',
846
- 'xfn',
847
- 'xhtml',
848
- 'xhtrnl',
849
- 'xml',
850
- 'xmpp',
851
- 'xpg',
852
- 'xxx',
853
- 'yaml',
854
- 'year',
855
- 'yml',
856
- 'you',
857
- 'yourdomain',
858
- 'yourname',
859
- 'yoursite',
860
- 'yourusername',
861
- ]
862
-
863
- const famousAccounts = [
864
- // reserving some large twitter accounts (top 100 by followers according to wikidata dump)
865
- '10ronaldinho',
866
- '3gerardpique',
867
- 'aclu',
868
- 'adele',
869
- 'akshaykumar',
870
- 'aliaa08',
871
- 'aliciakeys',
872
- 'amitshah',
873
- 'andresiniesta8',
874
- 'anushkasharma',
875
- 'arianagrande',
876
- 'arrahman',
877
- 'arvindkejriwal',
878
- 'avrillavigne',
879
- 'barackobama',
880
- 'bbcbreaking',
881
- 'bbcworld',
882
- 'beingsalmankhan',
883
- 'billgates',
884
- 'britneyspears',
885
- 'brunomars',
886
- 'bts_bighit',
887
- 'bts_twt',
888
- 'championsleague',
889
- 'chrisbrown',
890
- 'cnnbrk',
891
- 'coldplay',
892
- 'conanobrien',
893
- 'cristiano',
894
- 'danieltosh',
895
- 'davidguetta',
896
- 'ddlovato',
897
- 'deepikapadukone',
898
- 'drake',
899
- 'elisapie',
900
- 'ellendegeneres',
901
- 'elonmusk',
902
- 'eminem',
903
- 'emmawatson',
904
- 'fcbarcelona',
905
- 'foxnews',
906
- 'harry_styles',
907
- 'hillaryclinton',
908
- 'iamsrk',
909
- 'ihrithik',
910
- 'imvkohli',
911
- 'instagram',
912
- 'jimmyfallon',
913
- 'jlo',
914
- 'joebiden',
915
- 'jtimberlake',
916
- 'justinbieber',
917
- 'kaka',
918
- 'kanyewest',
919
- 'katyperry',
920
- 'kendalljenner',
921
- 'kevinhart4real',
922
- 'khloekardashian',
923
- 'kimkardashian',
924
- 'kingjames',
925
- 'kourtneykardash',
926
- 'kyliejenner',
927
- 'ladygaga',
928
- 'liampayne',
929
- 'liltunechi',
930
- 'manutd',
931
- 'mariahcarey',
932
- 'mileycyrus',
933
- 'mohamadalarefe',
934
- 'narendramodi',
935
- 'nasa',
936
- 'nba',
937
- 'neymarjr',
938
- 'nfl',
939
- 'niallofficial',
940
- 'nickiminaj',
941
- 'npr',
942
- 'nytimes',
943
- 'onedirection',
944
- 'oprah',
945
- 'pink',
946
- 'pitbull',
947
- 'playstation',
948
- 'pmoindia',
949
- 'premierleague',
950
- 'priyankachopra',
951
- 'realdonaldtrump',
952
- 'ricky_martin',
953
- 'rihanna',
954
- 'sachin_rt',
955
- 'selenagomez',
956
- 'shakira',
957
- 'shawnmendes',
958
- 'sportscenter',
959
- 'srbachchan',
960
- 'subhisharma100',
961
- 'taylorswift13',
962
- 'theeconomist',
963
- 'twitter',
964
- 'virendersehwag',
965
- 'whitehouse45',
966
- 'wizkhalifa',
967
- 'youtube',
968
- 'zaynmalik',
969
-
970
- // some top instagram (https://en.wikipedia.org/wiki/List_of_most-followed_Instagram_accounts)
971
- 'beyonce',
972
- 'billieeilish',
973
- 'leomessi',
974
- 'natgeo',
975
- 'nike',
976
- 'snoopdogg',
977
- 'taylorswift',
978
- 'therock',
979
-
980
- // ... and a couple more prominent accounts, subjectively
981
- '10downingstreet',
982
- 'aoc',
983
- 'carterjwm',
984
- 'dril',
985
- 'gretathunberg',
986
- 'kamalaharris',
987
- 'kremlinrussia_e',
988
- 'potus',
989
- 'rondesantisfl',
990
- 'ukraine',
991
- 'washingtonpost',
992
- 'yousuck2020',
993
- 'zelenskyyua',
994
-
995
- // top japan-specific accounts
996
- 'akiko_lawson',
997
- 'ariyoshihiroiki',
998
- 'asahi',
999
- 'dozle_official',
1000
- 'famima_now',
1001
- 'ff_xiv_jp',
1002
- 'fujitv',
1003
- 'gigazine',
1004
- 'hajimesyacho',
1005
- 'hikakin',
1006
- 'jocx',
1007
- 'jotx',
1008
- 'kiyo_saiore',
1009
- 'mainichi',
1010
- 'matsu_bouzu',
1011
- 'naomiosaka',
1012
- 'nhk',
1013
- 'nikkei',
1014
- 'nintendo',
1015
- 'ntv',
1016
- 'oowareware1945',
1017
- 'pamyurin',
1018
- 'poke_times',
1019
- 'rolaworld',
1020
- 'seikintv',
1021
- 'starbucksjapan',
1022
- 'tbs',
1023
- 'tbs_pr',
1024
- 'tvasahi',
1025
- 'tvtokyo',
1026
- 'yokoono',
1027
- 'yomiuri_online',
1028
-
1029
- // top brazil-specific accounts
1030
- 'brasildefato',
1031
- 'claudialeitte',
1032
- 'correio',
1033
- 'em_com',
1034
- 'estadao',
1035
- 'folha',
1036
- 'gazetadopovo',
1037
- 'ivetesangalo',
1038
- 'jairbolsonaro',
1039
- 'jornaldobrasil',
1040
- 'jornaloglobo',
1041
- 'lucianohuck',
1042
- 'lulaoficial',
1043
- 'marcosmion',
1044
- 'paulocoelho',
1045
- 'portalr7',
1046
- 'rede_globo',
1047
- 'zerohora',
1048
- ]
1049
-
1050
- export const reservedSubdomains: Record<string, boolean> = [
1051
- ...atpSpecific,
1052
- ...commonlyReserved,
1053
- ...famousAccounts,
1054
- ].reduce((acc, cur) => {
1055
- return {
1056
- ...acc,
1057
- [cur]: true,
1058
- }
1059
- }, {})