@atproto/pds 0.4.58 → 0.4.60

Sign up to get free protection for your applications and to get access to all the features.
Files changed (130) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/dist/actor-store/repo/sql-repo-reader.d.ts.map +1 -1
  3. package/dist/actor-store/repo/sql-repo-reader.js +2 -5
  4. package/dist/actor-store/repo/sql-repo-reader.js.map +1 -1
  5. package/dist/api/app/bsky/actor/getProfile.d.ts.map +1 -1
  6. package/dist/api/app/bsky/actor/getProfile.js +2 -9
  7. package/dist/api/app/bsky/actor/getProfile.js.map +1 -1
  8. package/dist/api/app/bsky/actor/getProfiles.d.ts.map +1 -1
  9. package/dist/api/app/bsky/actor/getProfiles.js +2 -6
  10. package/dist/api/app/bsky/actor/getProfiles.js.map +1 -1
  11. package/dist/api/app/bsky/feed/getActorLikes.d.ts.map +1 -1
  12. package/dist/api/app/bsky/feed/getActorLikes.js +2 -9
  13. package/dist/api/app/bsky/feed/getActorLikes.js.map +1 -1
  14. package/dist/api/app/bsky/feed/getAuthorFeed.d.ts.map +1 -1
  15. package/dist/api/app/bsky/feed/getAuthorFeed.js +2 -9
  16. package/dist/api/app/bsky/feed/getAuthorFeed.js.map +1 -1
  17. package/dist/api/app/bsky/feed/getFeed.d.ts.map +1 -1
  18. package/dist/api/app/bsky/feed/getFeed.js +2 -1
  19. package/dist/api/app/bsky/feed/getFeed.js.map +1 -1
  20. package/dist/api/app/bsky/feed/getPostThread.d.ts.map +1 -1
  21. package/dist/api/app/bsky/feed/getPostThread.js +12 -14
  22. package/dist/api/app/bsky/feed/getPostThread.js.map +1 -1
  23. package/dist/api/app/bsky/feed/getTimeline.d.ts.map +1 -1
  24. package/dist/api/app/bsky/feed/getTimeline.js +2 -6
  25. package/dist/api/app/bsky/feed/getTimeline.js.map +1 -1
  26. package/dist/api/com/atproto/repo/getRecord.js +1 -1
  27. package/dist/api/com/atproto/repo/getRecord.js.map +1 -1
  28. package/dist/api/com/atproto/server/requestPasswordReset.js +1 -1
  29. package/dist/api/com/atproto/server/requestPasswordReset.js.map +1 -1
  30. package/dist/config/config.d.ts +9 -0
  31. package/dist/config/config.d.ts.map +1 -1
  32. package/dist/config/config.js +10 -1
  33. package/dist/config/config.js.map +1 -1
  34. package/dist/config/env.d.ts +6 -1
  35. package/dist/config/env.d.ts.map +1 -1
  36. package/dist/config/env.js +8 -1
  37. package/dist/config/env.js.map +1 -1
  38. package/dist/context.d.ts +6 -2
  39. package/dist/context.d.ts.map +1 -1
  40. package/dist/context.js +55 -11
  41. package/dist/context.js.map +1 -1
  42. package/dist/index.d.ts.map +1 -1
  43. package/dist/index.js +1 -0
  44. package/dist/index.js.map +1 -1
  45. package/dist/lexicon/lexicons.d.ts +77 -0
  46. package/dist/lexicon/lexicons.d.ts.map +1 -1
  47. package/dist/lexicon/lexicons.js +86 -3
  48. package/dist/lexicon/lexicons.js.map +1 -1
  49. package/dist/lexicon/types/app/bsky/actor/defs.d.ts +16 -0
  50. package/dist/lexicon/types/app/bsky/actor/defs.d.ts.map +1 -1
  51. package/dist/lexicon/types/app/bsky/actor/defs.js +9 -1
  52. package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
  53. package/dist/lexicon/types/app/bsky/actor/profile.d.ts +1 -0
  54. package/dist/lexicon/types/app/bsky/actor/profile.d.ts.map +1 -1
  55. package/dist/lexicon/types/app/bsky/actor/profile.js.map +1 -1
  56. package/dist/lexicon/types/app/bsky/feed/defs.d.ts +13 -2
  57. package/dist/lexicon/types/app/bsky/feed/defs.d.ts.map +1 -1
  58. package/dist/lexicon/types/app/bsky/feed/defs.js +21 -1
  59. package/dist/lexicon/types/app/bsky/feed/defs.js.map +1 -1
  60. package/dist/lexicon/types/app/bsky/feed/getAuthorFeed.d.ts +1 -0
  61. package/dist/lexicon/types/app/bsky/feed/getAuthorFeed.d.ts.map +1 -1
  62. package/dist/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.d.ts +2 -0
  63. package/dist/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.d.ts.map +1 -1
  64. package/dist/lexicon/types/app/bsky/unspecced/getSuggestionsSkeleton.d.ts +2 -0
  65. package/dist/lexicon/types/app/bsky/unspecced/getSuggestionsSkeleton.d.ts.map +1 -1
  66. package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts +2 -0
  67. package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts.map +1 -1
  68. package/dist/lexicon/types/tools/ozone/moderation/defs.js.map +1 -1
  69. package/dist/lexicon/types/tools/ozone/moderation/queryStatuses.d.ts +3 -0
  70. package/dist/lexicon/types/tools/ozone/moderation/queryStatuses.d.ts.map +1 -1
  71. package/dist/mailer/index.d.ts +1 -1
  72. package/dist/mailer/index.d.ts.map +1 -1
  73. package/dist/mailer/index.js.map +1 -1
  74. package/dist/mailer/templates/confirm-email.js +1 -1
  75. package/dist/mailer/templates/confirm-email.js.map +2 -2
  76. package/dist/mailer/templates/delete-account.js +1 -1
  77. package/dist/mailer/templates/delete-account.js.map +2 -2
  78. package/dist/mailer/templates/plc-operation.js +1 -1
  79. package/dist/mailer/templates/plc-operation.js.map +2 -2
  80. package/dist/mailer/templates/reset-password.js +1 -1
  81. package/dist/mailer/templates/reset-password.js.map +2 -2
  82. package/dist/mailer/templates/update-email.js +1 -1
  83. package/dist/mailer/templates/update-email.js.map +2 -2
  84. package/dist/pipethrough.d.ts +26 -26
  85. package/dist/pipethrough.d.ts.map +1 -1
  86. package/dist/pipethrough.js +328 -228
  87. package/dist/pipethrough.js.map +1 -1
  88. package/dist/read-after-write/util.d.ts +13 -5
  89. package/dist/read-after-write/util.d.ts.map +1 -1
  90. package/dist/read-after-write/util.js +37 -22
  91. package/dist/read-after-write/util.js.map +1 -1
  92. package/package.json +16 -15
  93. package/src/actor-store/repo/sql-repo-reader.ts +3 -6
  94. package/src/api/app/bsky/actor/getProfile.ts +3 -17
  95. package/src/api/app/bsky/actor/getProfiles.ts +3 -15
  96. package/src/api/app/bsky/feed/getActorLikes.ts +3 -19
  97. package/src/api/app/bsky/feed/getAuthorFeed.ts +3 -17
  98. package/src/api/app/bsky/feed/getFeed.ts +3 -1
  99. package/src/api/app/bsky/feed/getPostThread.ts +16 -23
  100. package/src/api/app/bsky/feed/getTimeline.ts +3 -14
  101. package/src/api/com/atproto/repo/getRecord.ts +1 -1
  102. package/src/api/com/atproto/server/requestPasswordReset.ts +1 -1
  103. package/src/config/config.ts +21 -1
  104. package/src/config/env.ts +20 -2
  105. package/src/context.ts +62 -17
  106. package/src/index.ts +1 -0
  107. package/src/lexicon/lexicons.ts +92 -3
  108. package/src/lexicon/types/app/bsky/actor/defs.ts +25 -0
  109. package/src/lexicon/types/app/bsky/actor/profile.ts +1 -0
  110. package/src/lexicon/types/app/bsky/feed/defs.ts +38 -2
  111. package/src/lexicon/types/app/bsky/feed/getAuthorFeed.ts +1 -0
  112. package/src/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.ts +2 -0
  113. package/src/lexicon/types/app/bsky/unspecced/getSuggestionsSkeleton.ts +2 -0
  114. package/src/lexicon/types/tools/ozone/moderation/defs.ts +2 -0
  115. package/src/lexicon/types/tools/ozone/moderation/queryStatuses.ts +3 -0
  116. package/src/mailer/index.ts +1 -1
  117. package/src/mailer/templates/confirm-email.hbs +106 -336
  118. package/src/mailer/templates/delete-account.hbs +110 -346
  119. package/src/mailer/templates/plc-operation.hbs +107 -338
  120. package/src/mailer/templates/reset-password.d.ts +1 -1
  121. package/src/mailer/templates/reset-password.hbs +108 -344
  122. package/src/mailer/templates/update-email.hbs +107 -337
  123. package/src/pipethrough.ts +489 -233
  124. package/src/read-after-write/util.ts +58 -32
  125. package/tests/account-deletion.test.ts +1 -1
  126. package/tests/account.test.ts +2 -2
  127. package/tests/email-confirmation.test.ts +2 -2
  128. package/tests/plc-operations.test.ts +1 -1
  129. package/tests/proxied/proxy-catchall.test.ts +255 -0
  130. package/tests/proxied/proxy-header.test.ts +31 -1
@@ -4053,6 +4053,10 @@ exports.schemaDict = {
4053
4053
  ref: 'lex:com.atproto.label.defs#label',
4054
4054
  },
4055
4055
  },
4056
+ pinnedPost: {
4057
+ type: 'ref',
4058
+ ref: 'lex:com.atproto.repo.strongRef',
4059
+ },
4056
4060
  },
4057
4061
  },
4058
4062
  profileAssociated: {
@@ -4424,6 +4428,15 @@ exports.schemaDict = {
4424
4428
  maxLength: 100,
4425
4429
  },
4426
4430
  },
4431
+ nuxs: {
4432
+ description: 'Storage for NUXs the user has encountered.',
4433
+ type: 'array',
4434
+ maxLength: 100,
4435
+ items: {
4436
+ type: 'ref',
4437
+ ref: 'lex:app.bsky.actor.defs#nux',
4438
+ },
4439
+ },
4427
4440
  },
4428
4441
  },
4429
4442
  bskyAppProgressGuide: {
@@ -4437,6 +4450,32 @@ exports.schemaDict = {
4437
4450
  },
4438
4451
  },
4439
4452
  },
4453
+ nux: {
4454
+ type: 'object',
4455
+ description: 'A new user experiences (NUX) storage object',
4456
+ required: ['id', 'completed'],
4457
+ properties: {
4458
+ id: {
4459
+ type: 'string',
4460
+ maxLength: 100,
4461
+ },
4462
+ completed: {
4463
+ type: 'boolean',
4464
+ default: false,
4465
+ },
4466
+ data: {
4467
+ description: 'Arbitrary data for the NUX. The structure is defined by the NUX itself. Limited to 300 characters.',
4468
+ type: 'string',
4469
+ maxLength: 3000,
4470
+ maxGraphemes: 300,
4471
+ },
4472
+ expiresAt: {
4473
+ type: 'string',
4474
+ format: 'datetime',
4475
+ description: 'The date and time at which the NUX will expire and should be considered completed.',
4476
+ },
4477
+ },
4478
+ },
4440
4479
  },
4441
4480
  },
4442
4481
  AppBskyActorGetPreferences: {
@@ -4620,6 +4659,10 @@ exports.schemaDict = {
4620
4659
  type: 'ref',
4621
4660
  ref: 'lex:com.atproto.repo.strongRef',
4622
4661
  },
4662
+ pinnedPost: {
4663
+ type: 'ref',
4664
+ ref: 'lex:com.atproto.repo.strongRef',
4665
+ },
4623
4666
  createdAt: {
4624
4667
  type: 'string',
4625
4668
  format: 'datetime',
@@ -5263,6 +5306,9 @@ exports.schemaDict = {
5263
5306
  embeddingDisabled: {
5264
5307
  type: 'boolean',
5265
5308
  },
5309
+ pinned: {
5310
+ type: 'boolean',
5311
+ },
5266
5312
  },
5267
5313
  },
5268
5314
  feedViewPost: {
@@ -5279,7 +5325,10 @@ exports.schemaDict = {
5279
5325
  },
5280
5326
  reason: {
5281
5327
  type: 'union',
5282
- refs: ['lex:app.bsky.feed.defs#reasonRepost'],
5328
+ refs: [
5329
+ 'lex:app.bsky.feed.defs#reasonRepost',
5330
+ 'lex:app.bsky.feed.defs#reasonPin',
5331
+ ],
5283
5332
  },
5284
5333
  feedContext: {
5285
5334
  type: 'string',
@@ -5329,6 +5378,10 @@ exports.schemaDict = {
5329
5378
  },
5330
5379
  },
5331
5380
  },
5381
+ reasonPin: {
5382
+ type: 'object',
5383
+ properties: {},
5384
+ },
5332
5385
  threadViewPost: {
5333
5386
  type: 'object',
5334
5387
  required: ['post'],
@@ -5486,7 +5539,10 @@ exports.schemaDict = {
5486
5539
  },
5487
5540
  reason: {
5488
5541
  type: 'union',
5489
- refs: ['lex:app.bsky.feed.defs#skeletonReasonRepost'],
5542
+ refs: [
5543
+ 'lex:app.bsky.feed.defs#skeletonReasonRepost',
5544
+ 'lex:app.bsky.feed.defs#skeletonReasonPin',
5545
+ ],
5490
5546
  },
5491
5547
  feedContext: {
5492
5548
  type: 'string',
@@ -5505,6 +5561,10 @@ exports.schemaDict = {
5505
5561
  },
5506
5562
  },
5507
5563
  },
5564
+ skeletonReasonPin: {
5565
+ type: 'object',
5566
+ properties: {},
5567
+ },
5508
5568
  threadgateView: {
5509
5569
  type: 'object',
5510
5570
  properties: {
@@ -5859,6 +5919,10 @@ exports.schemaDict = {
5859
5919
  ],
5860
5920
  default: 'posts_with_replies',
5861
5921
  },
5922
+ includePins: {
5923
+ type: 'boolean',
5924
+ default: false,
5925
+ },
5862
5926
  },
5863
5927
  },
5864
5928
  output: {
@@ -6901,7 +6965,7 @@ exports.schemaDict = {
6901
6965
  main: {
6902
6966
  type: 'record',
6903
6967
  key: 'tid',
6904
- description: "Record defining interaction gating rules for a thread (aka, reply controls). The record key (rkey) of the threadgate record must match the record key of the thread's root post, and that record must be in the same repository..",
6968
+ description: "Record defining interaction gating rules for a thread (aka, reply controls). The record key (rkey) of the threadgate record must match the record key of the thread's root post, and that record must be in the same repository.",
6905
6969
  record: {
6906
6970
  type: 'object',
6907
6971
  required: ['post', 'createdAt'],
@@ -7954,6 +8018,11 @@ exports.schemaDict = {
7954
8018
  ref: 'lex:app.bsky.actor.defs#profileView',
7955
8019
  },
7956
8020
  },
8021
+ isFallback: {
8022
+ type: 'boolean',
8023
+ description: 'If true, response has fallen-back to generic results, and is not scoped using relativeToDid',
8024
+ default: false,
8025
+ },
7957
8026
  },
7958
8027
  },
7959
8028
  },
@@ -8886,6 +8955,11 @@ exports.schemaDict = {
8886
8955
  ref: 'lex:app.bsky.unspecced.defs#skeletonSearchActor',
8887
8956
  },
8888
8957
  },
8958
+ relativeToDid: {
8959
+ type: 'string',
8960
+ format: 'did',
8961
+ description: 'DID of the account these suggestions are relative to. If this is returned undefined, suggestions are based on the viewer.',
8962
+ },
8889
8963
  },
8890
8964
  },
8891
8965
  },
@@ -10617,6 +10691,10 @@ exports.schemaDict = {
10617
10691
  type: 'integer',
10618
10692
  description: 'Indicates how long the takedown should be in effect before automatically expiring.',
10619
10693
  },
10694
+ acknowledgeAccountSubjects: {
10695
+ type: 'boolean',
10696
+ description: 'If true, all other reports on content authored by this account will be resolved (acknowledged).',
10697
+ },
10620
10698
  },
10621
10699
  },
10622
10700
  modEventReverseTakedown: {
@@ -11416,9 +11494,14 @@ exports.schemaDict = {
11416
11494
  parameters: {
11417
11495
  type: 'params',
11418
11496
  properties: {
11497
+ includeAllUserRecords: {
11498
+ type: 'boolean',
11499
+ description: "All subjects belonging to the account specified in the 'subject' param will be returned.",
11500
+ },
11419
11501
  subject: {
11420
11502
  type: 'string',
11421
11503
  format: 'uri',
11504
+ description: 'The subject to get the status for.',
11422
11505
  },
11423
11506
  comment: {
11424
11507
  type: 'string',