@atproto/pds 0.4.140 → 0.4.142

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/account-manager/account-manager.d.ts.map +1 -1
  3. package/dist/account-manager/account-manager.js +3 -0
  4. package/dist/account-manager/account-manager.js.map +1 -1
  5. package/dist/account-manager/helpers/scrypt.d.ts +2 -0
  6. package/dist/account-manager/helpers/scrypt.d.ts.map +1 -1
  7. package/dist/account-manager/helpers/scrypt.js +3 -1
  8. package/dist/account-manager/helpers/scrypt.js.map +1 -1
  9. package/dist/account-manager/oauth-store.js +1 -1
  10. package/dist/account-manager/oauth-store.js.map +1 -1
  11. package/dist/api/com/atproto/admin/updateAccountPassword.d.ts.map +1 -1
  12. package/dist/api/com/atproto/admin/updateAccountPassword.js +5 -0
  13. package/dist/api/com/atproto/admin/updateAccountPassword.js.map +1 -1
  14. package/dist/api/com/atproto/server/createAccount.d.ts.map +1 -1
  15. package/dist/api/com/atproto/server/createAccount.js +4 -0
  16. package/dist/api/com/atproto/server/createAccount.js.map +1 -1
  17. package/dist/api/com/atproto/server/createSession.d.ts.map +1 -1
  18. package/dist/api/com/atproto/server/createSession.js +4 -0
  19. package/dist/api/com/atproto/server/createSession.js.map +1 -1
  20. package/dist/api/com/atproto/server/deleteAccount.d.ts.map +1 -1
  21. package/dist/api/com/atproto/server/deleteAccount.js +4 -0
  22. package/dist/api/com/atproto/server/deleteAccount.js.map +1 -1
  23. package/dist/api/com/atproto/server/resetPassword.d.ts.map +1 -1
  24. package/dist/api/com/atproto/server/resetPassword.js +5 -0
  25. package/dist/api/com/atproto/server/resetPassword.js.map +1 -1
  26. package/dist/lexicon/lexicons.d.ts +116 -124
  27. package/dist/lexicon/lexicons.d.ts.map +1 -1
  28. package/dist/lexicon/lexicons.js +68 -66
  29. package/dist/lexicon/lexicons.js.map +1 -1
  30. package/dist/lexicon/types/app/bsky/unspecced/defs.d.ts +33 -0
  31. package/dist/lexicon/types/app/bsky/unspecced/defs.d.ts.map +1 -1
  32. package/dist/lexicon/types/app/bsky/unspecced/defs.js +36 -0
  33. package/dist/lexicon/types/app/bsky/unspecced/defs.js.map +1 -1
  34. package/dist/lexicon/types/app/bsky/unspecced/getPostThreadHiddenV2.d.ts +5 -13
  35. package/dist/lexicon/types/app/bsky/unspecced/getPostThreadHiddenV2.d.ts.map +1 -1
  36. package/dist/lexicon/types/app/bsky/unspecced/getPostThreadHiddenV2.js +0 -9
  37. package/dist/lexicon/types/app/bsky/unspecced/getPostThreadHiddenV2.js.map +1 -1
  38. package/dist/lexicon/types/app/bsky/unspecced/getPostThreadV2.d.ts +2 -29
  39. package/dist/lexicon/types/app/bsky/unspecced/getPostThreadV2.d.ts.map +1 -1
  40. package/dist/lexicon/types/app/bsky/unspecced/getPostThreadV2.js +0 -36
  41. package/dist/lexicon/types/app/bsky/unspecced/getPostThreadV2.js.map +1 -1
  42. package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts +1 -1
  43. package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts.map +1 -1
  44. package/dist/lexicon/types/tools/ozone/moderation/defs.js.map +1 -1
  45. package/package.json +9 -9
  46. package/src/account-manager/account-manager.ts +4 -0
  47. package/src/account-manager/helpers/scrypt.ts +3 -0
  48. package/src/account-manager/oauth-store.ts +1 -1
  49. package/src/api/com/atproto/admin/updateAccountPassword.ts +7 -0
  50. package/src/api/com/atproto/server/createAccount.ts +7 -0
  51. package/src/api/com/atproto/server/createSession.ts +7 -0
  52. package/src/api/com/atproto/server/deleteAccount.ts +5 -0
  53. package/src/api/com/atproto/server/resetPassword.ts +6 -0
  54. package/src/lexicon/lexicons.ts +74 -71
  55. package/src/lexicon/types/app/bsky/unspecced/defs.ts +73 -0
  56. package/src/lexicon/types/app/bsky/unspecced/getPostThreadHiddenV2.ts +5 -22
  57. package/src/lexicon/types/app/bsky/unspecced/getPostThreadV2.ts +5 -72
  58. package/src/lexicon/types/tools/ozone/moderation/defs.ts +1 -0
  59. package/tests/proxied/admin.test.ts +1 -1
@@ -9863,6 +9863,61 @@ exports.schemaDict = {
9863
9863
  },
9864
9864
  },
9865
9865
  },
9866
+ threadItemPost: {
9867
+ type: 'object',
9868
+ required: [
9869
+ 'post',
9870
+ 'moreParents',
9871
+ 'moreReplies',
9872
+ 'opThread',
9873
+ 'hiddenByThreadgate',
9874
+ 'mutedByViewer',
9875
+ ],
9876
+ properties: {
9877
+ post: {
9878
+ type: 'ref',
9879
+ ref: 'lex:app.bsky.feed.defs#postView',
9880
+ },
9881
+ moreParents: {
9882
+ type: 'boolean',
9883
+ description: 'This post has more parents that were not present in the response. This is just a boolean, without the number of parents.',
9884
+ },
9885
+ moreReplies: {
9886
+ type: 'integer',
9887
+ description: 'This post has more replies that were not present in the response. This is a numeric value, which is best-effort and might not be accurate.',
9888
+ },
9889
+ opThread: {
9890
+ type: 'boolean',
9891
+ description: 'This post is part of a contiguous thread by the OP from the thread root. Many different OP threads can happen in the same thread.',
9892
+ },
9893
+ hiddenByThreadgate: {
9894
+ type: 'boolean',
9895
+ description: 'The threadgate created by the author indicates this post as a reply to be hidden for everyone consuming the thread.',
9896
+ },
9897
+ mutedByViewer: {
9898
+ type: 'boolean',
9899
+ description: 'This is by an account muted by the viewer requesting it.',
9900
+ },
9901
+ },
9902
+ },
9903
+ threadItemNoUnauthenticated: {
9904
+ type: 'object',
9905
+ properties: {},
9906
+ },
9907
+ threadItemNotFound: {
9908
+ type: 'object',
9909
+ properties: {},
9910
+ },
9911
+ threadItemBlocked: {
9912
+ type: 'object',
9913
+ required: ['author'],
9914
+ properties: {
9915
+ author: {
9916
+ type: 'ref',
9917
+ ref: 'lex:app.bsky.feed.defs#blockedAuthor',
9918
+ },
9919
+ },
9920
+ },
9866
9921
  },
9867
9922
  },
9868
9923
  AppBskyUnspeccedGetConfig: {
@@ -9972,6 +10027,11 @@ exports.schemaDict = {
9972
10027
  format: 'at-uri',
9973
10028
  description: 'Reference (AT-URI) to post record. This is the anchor post.',
9974
10029
  },
10030
+ prioritizeFollowedUsers: {
10031
+ type: 'boolean',
10032
+ description: 'Whether to prioritize posts from followed users. It only has effect when the user is authenticated.',
10033
+ default: false,
10034
+ },
9975
10035
  },
9976
10036
  },
9977
10037
  output: {
@@ -9982,7 +10042,7 @@ exports.schemaDict = {
9982
10042
  properties: {
9983
10043
  thread: {
9984
10044
  type: 'array',
9985
- description: 'A flat list of thread hidden items. The depth of each item is indicated by the depth property inside the item.',
10045
+ description: 'A flat list of hidden thread items. The depth of each item is indicated by the depth property inside the item.',
9986
10046
  items: {
9987
10047
  type: 'ref',
9988
10048
  ref: 'lex:app.bsky.unspecced.getPostThreadHiddenV2#threadHiddenItem',
@@ -10006,27 +10066,7 @@ exports.schemaDict = {
10006
10066
  },
10007
10067
  value: {
10008
10068
  type: 'union',
10009
- refs: [
10010
- 'lex:app.bsky.unspecced.getPostThreadHiddenV2#threadHiddenItemPost',
10011
- ],
10012
- },
10013
- },
10014
- },
10015
- threadHiddenItemPost: {
10016
- type: 'object',
10017
- required: ['post', 'hiddenByThreadgate', 'mutedByViewer'],
10018
- properties: {
10019
- post: {
10020
- type: 'ref',
10021
- ref: 'lex:app.bsky.feed.defs#postView',
10022
- },
10023
- hiddenByThreadgate: {
10024
- type: 'boolean',
10025
- description: 'The threadgate created by the author indicates this post as a reply to be hidden for everyone consuming the thread.',
10026
- },
10027
- mutedByViewer: {
10028
- type: 'boolean',
10029
- description: 'This is by an account muted by the viewer requesting it.',
10069
+ refs: ['lex:app.bsky.unspecced.defs#threadItemPost'],
10030
10070
  },
10031
10071
  },
10032
10072
  },
@@ -10121,54 +10161,14 @@ exports.schemaDict = {
10121
10161
  value: {
10122
10162
  type: 'union',
10123
10163
  refs: [
10124
- 'lex:app.bsky.unspecced.getPostThreadV2#threadItemPost',
10125
- 'lex:app.bsky.unspecced.getPostThreadV2#threadItemNoUnauthenticated',
10126
- 'lex:app.bsky.unspecced.getPostThreadV2#threadItemNotFound',
10127
- 'lex:app.bsky.unspecced.getPostThreadV2#threadItemBlocked',
10164
+ 'lex:app.bsky.unspecced.defs#threadItemPost',
10165
+ 'lex:app.bsky.unspecced.defs#threadItemNoUnauthenticated',
10166
+ 'lex:app.bsky.unspecced.defs#threadItemNotFound',
10167
+ 'lex:app.bsky.unspecced.defs#threadItemBlocked',
10128
10168
  ],
10129
10169
  },
10130
10170
  },
10131
10171
  },
10132
- threadItemPost: {
10133
- type: 'object',
10134
- required: ['post', 'moreParents', 'moreReplies', 'opThread'],
10135
- properties: {
10136
- post: {
10137
- type: 'ref',
10138
- ref: 'lex:app.bsky.feed.defs#postView',
10139
- },
10140
- moreParents: {
10141
- type: 'boolean',
10142
- description: 'This post has more parents that were not present in the response. This is just a boolean, without the number of parents.',
10143
- },
10144
- moreReplies: {
10145
- type: 'integer',
10146
- description: 'This post has more replies that were not present in the response. This is a numeric value, which is best-effort and might not be accurate.',
10147
- },
10148
- opThread: {
10149
- type: 'boolean',
10150
- description: 'This post is part of a contiguous thread by the OP from the thread root. Many different OP threads can happen in the same thread.',
10151
- },
10152
- },
10153
- },
10154
- threadItemNoUnauthenticated: {
10155
- type: 'object',
10156
- properties: {},
10157
- },
10158
- threadItemNotFound: {
10159
- type: 'object',
10160
- properties: {},
10161
- },
10162
- threadItemBlocked: {
10163
- type: 'object',
10164
- required: ['author'],
10165
- properties: {
10166
- author: {
10167
- type: 'ref',
10168
- ref: 'lex:app.bsky.feed.defs#blockedAuthor',
10169
- },
10170
- },
10171
- },
10172
10172
  },
10173
10173
  },
10174
10174
  AppBskyUnspeccedGetSuggestedFeeds: {
@@ -12820,6 +12820,7 @@ exports.schemaDict = {
12820
12820
  refs: [
12821
12821
  'lex:com.atproto.admin.defs#repoRef',
12822
12822
  'lex:com.atproto.repo.strongRef',
12823
+ 'lex:chat.bsky.convo.defs#messageRef',
12823
12824
  ],
12824
12825
  },
12825
12826
  hosting: {
@@ -15663,6 +15664,7 @@ exports.schemaDict = {
15663
15664
  },
15664
15665
  createdAt: {
15665
15666
  type: 'string',
15667
+ format: 'datetime',
15666
15668
  description: 'Timestamp for verification record. Defaults to current time when not specified.',
15667
15669
  },
15668
15670
  },