@atproto/pds 0.4.175 → 0.4.176

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 (39) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/lexicon/index.d.ts +11 -0
  3. package/dist/lexicon/index.d.ts.map +1 -1
  4. package/dist/lexicon/index.js +32 -1
  5. package/dist/lexicon/index.js.map +1 -1
  6. package/dist/lexicon/lexicons.d.ts +288 -0
  7. package/dist/lexicon/lexicons.d.ts.map +1 -1
  8. package/dist/lexicon/lexicons.js +156 -0
  9. package/dist/lexicon/lexicons.js.map +1 -1
  10. package/dist/lexicon/types/app/bsky/bookmark/createBookmark.d.ts +16 -0
  11. package/dist/lexicon/types/app/bsky/bookmark/createBookmark.d.ts.map +1 -0
  12. package/dist/lexicon/types/app/bsky/bookmark/createBookmark.js +7 -0
  13. package/dist/lexicon/types/app/bsky/bookmark/createBookmark.js.map +1 -0
  14. package/dist/lexicon/types/app/bsky/bookmark/defs.d.ts +25 -0
  15. package/dist/lexicon/types/app/bsky/bookmark/defs.d.ts.map +1 -0
  16. package/dist/lexicon/types/app/bsky/bookmark/defs.js +25 -0
  17. package/dist/lexicon/types/app/bsky/bookmark/defs.js.map +1 -0
  18. package/dist/lexicon/types/app/bsky/bookmark/deleteBookmark.d.ts +15 -0
  19. package/dist/lexicon/types/app/bsky/bookmark/deleteBookmark.d.ts.map +1 -0
  20. package/dist/lexicon/types/app/bsky/bookmark/deleteBookmark.js +7 -0
  21. package/dist/lexicon/types/app/bsky/bookmark/deleteBookmark.js.map +1 -0
  22. package/dist/lexicon/types/app/bsky/bookmark/getBookmarks.d.ts +24 -0
  23. package/dist/lexicon/types/app/bsky/bookmark/getBookmarks.d.ts.map +1 -0
  24. package/dist/lexicon/types/app/bsky/bookmark/getBookmarks.js +7 -0
  25. package/dist/lexicon/types/app/bsky/bookmark/getBookmarks.js.map +1 -0
  26. package/dist/lexicon/types/app/bsky/feed/defs.d.ts +2 -0
  27. package/dist/lexicon/types/app/bsky/feed/defs.d.ts.map +1 -1
  28. package/dist/lexicon/types/app/bsky/feed/defs.js.map +1 -1
  29. package/package.json +7 -7
  30. package/src/lexicon/index.ts +49 -0
  31. package/src/lexicon/lexicons.ts +162 -0
  32. package/src/lexicon/types/app/bsky/bookmark/createBookmark.ts +35 -0
  33. package/src/lexicon/types/app/bsky/bookmark/defs.ts +54 -0
  34. package/src/lexicon/types/app/bsky/bookmark/deleteBookmark.ts +34 -0
  35. package/src/lexicon/types/app/bsky/bookmark/getBookmarks.ts +42 -0
  36. package/src/lexicon/types/app/bsky/feed/defs.ts +2 -0
  37. package/tests/proxied/__snapshots__/feedgen.test.ts.snap +4 -0
  38. package/tests/proxied/__snapshots__/views.test.ts.snap +80 -0
  39. package/tsconfig.build.tsbuildinfo +1 -1
@@ -1126,6 +1126,152 @@ exports.schemaDict = {
1126
1126
  },
1127
1127
  },
1128
1128
  },
1129
+ AppBskyBookmarkCreateBookmark: {
1130
+ lexicon: 1,
1131
+ id: 'app.bsky.bookmark.createBookmark',
1132
+ defs: {
1133
+ main: {
1134
+ type: 'procedure',
1135
+ description: 'Creates a private bookmark for the specified record. Currently, only `app.bsky.feed.post` records are supported. Requires authentication.',
1136
+ input: {
1137
+ encoding: 'application/json',
1138
+ schema: {
1139
+ type: 'object',
1140
+ required: ['uri', 'cid'],
1141
+ properties: {
1142
+ uri: {
1143
+ type: 'string',
1144
+ format: 'at-uri',
1145
+ },
1146
+ cid: {
1147
+ type: 'string',
1148
+ format: 'cid',
1149
+ },
1150
+ },
1151
+ },
1152
+ },
1153
+ errors: [
1154
+ {
1155
+ name: 'UnsupportedCollection',
1156
+ description: 'The URI to be bookmarked is for an unsupported collection.',
1157
+ },
1158
+ ],
1159
+ },
1160
+ },
1161
+ },
1162
+ AppBskyBookmarkDefs: {
1163
+ lexicon: 1,
1164
+ id: 'app.bsky.bookmark.defs',
1165
+ defs: {
1166
+ bookmark: {
1167
+ description: 'Object used to store bookmark data in stash.',
1168
+ type: 'object',
1169
+ required: ['subject'],
1170
+ properties: {
1171
+ subject: {
1172
+ description: 'A strong ref to the record to be bookmarked. Currently, only `app.bsky.feed.post` records are supported.',
1173
+ type: 'ref',
1174
+ ref: 'lex:com.atproto.repo.strongRef',
1175
+ },
1176
+ },
1177
+ },
1178
+ bookmarkView: {
1179
+ type: 'object',
1180
+ required: ['subject', 'item'],
1181
+ properties: {
1182
+ subject: {
1183
+ description: 'A strong ref to the bookmarked record.',
1184
+ type: 'ref',
1185
+ ref: 'lex:com.atproto.repo.strongRef',
1186
+ },
1187
+ createdAt: {
1188
+ type: 'string',
1189
+ format: 'datetime',
1190
+ },
1191
+ item: {
1192
+ type: 'union',
1193
+ refs: [
1194
+ 'lex:app.bsky.feed.defs#blockedPost',
1195
+ 'lex:app.bsky.feed.defs#notFoundPost',
1196
+ 'lex:app.bsky.feed.defs#postView',
1197
+ ],
1198
+ },
1199
+ },
1200
+ },
1201
+ },
1202
+ },
1203
+ AppBskyBookmarkDeleteBookmark: {
1204
+ lexicon: 1,
1205
+ id: 'app.bsky.bookmark.deleteBookmark',
1206
+ defs: {
1207
+ main: {
1208
+ type: 'procedure',
1209
+ description: 'Deletes a private bookmark for the specified record. Currently, only `app.bsky.feed.post` records are supported. Requires authentication.',
1210
+ input: {
1211
+ encoding: 'application/json',
1212
+ schema: {
1213
+ type: 'object',
1214
+ required: ['uri'],
1215
+ properties: {
1216
+ uri: {
1217
+ type: 'string',
1218
+ format: 'at-uri',
1219
+ },
1220
+ },
1221
+ },
1222
+ },
1223
+ errors: [
1224
+ {
1225
+ name: 'UnsupportedCollection',
1226
+ description: 'The URI to be bookmarked is for an unsupported collection.',
1227
+ },
1228
+ ],
1229
+ },
1230
+ },
1231
+ },
1232
+ AppBskyBookmarkGetBookmarks: {
1233
+ lexicon: 1,
1234
+ id: 'app.bsky.bookmark.getBookmarks',
1235
+ defs: {
1236
+ main: {
1237
+ type: 'query',
1238
+ description: 'Gets views of records bookmarked by the authenticated user. Requires authentication.',
1239
+ parameters: {
1240
+ type: 'params',
1241
+ properties: {
1242
+ limit: {
1243
+ type: 'integer',
1244
+ minimum: 1,
1245
+ maximum: 100,
1246
+ default: 50,
1247
+ },
1248
+ cursor: {
1249
+ type: 'string',
1250
+ },
1251
+ },
1252
+ },
1253
+ output: {
1254
+ encoding: 'application/json',
1255
+ schema: {
1256
+ type: 'object',
1257
+ required: ['bookmarks'],
1258
+ properties: {
1259
+ cursor: {
1260
+ type: 'string',
1261
+ },
1262
+ bookmarks: {
1263
+ type: 'array',
1264
+ items: {
1265
+ type: 'ref',
1266
+ ref: 'lex:app.bsky.bookmark.defs#bookmarkView',
1267
+ },
1268
+ },
1269
+ },
1270
+ },
1271
+ },
1272
+ },
1273
+ },
1274
+ },
1129
1275
  AppBskyEmbedDefs: {
1130
1276
  lexicon: 1,
1131
1277
  id: 'app.bsky.embed.defs',
@@ -1588,6 +1734,9 @@ exports.schemaDict = {
1588
1734
  'lex:app.bsky.embed.recordWithMedia#view',
1589
1735
  ],
1590
1736
  },
1737
+ bookmarkCount: {
1738
+ type: 'integer',
1739
+ },
1591
1740
  replyCount: {
1592
1741
  type: 'integer',
1593
1742
  },
@@ -1633,6 +1782,9 @@ exports.schemaDict = {
1633
1782
  type: 'string',
1634
1783
  format: 'at-uri',
1635
1784
  },
1785
+ bookmarked: {
1786
+ type: 'boolean',
1787
+ },
1636
1788
  threadMuted: {
1637
1789
  type: 'boolean',
1638
1790
  },
@@ -17377,6 +17529,10 @@ exports.ids = {
17377
17529
  AppBskyActorSearchActors: 'app.bsky.actor.searchActors',
17378
17530
  AppBskyActorSearchActorsTypeahead: 'app.bsky.actor.searchActorsTypeahead',
17379
17531
  AppBskyActorStatus: 'app.bsky.actor.status',
17532
+ AppBskyBookmarkCreateBookmark: 'app.bsky.bookmark.createBookmark',
17533
+ AppBskyBookmarkDefs: 'app.bsky.bookmark.defs',
17534
+ AppBskyBookmarkDeleteBookmark: 'app.bsky.bookmark.deleteBookmark',
17535
+ AppBskyBookmarkGetBookmarks: 'app.bsky.bookmark.getBookmarks',
17380
17536
  AppBskyEmbedDefs: 'app.bsky.embed.defs',
17381
17537
  AppBskyEmbedExternal: 'app.bsky.embed.external',
17382
17538
  AppBskyEmbedImages: 'app.bsky.embed.images',