@atproto/api 0.13.2-next.0 → 0.13.2

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 (76) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/client/index.d.ts +27 -17
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +55 -39
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/lexicons.d.ts +155 -235
  7. package/dist/client/lexicons.d.ts.map +1 -1
  8. package/dist/client/lexicons.js +160 -247
  9. package/dist/client/lexicons.js.map +1 -1
  10. package/dist/client/types/app/bsky/embed/images.d.ts +10 -3
  11. package/dist/client/types/app/bsky/embed/images.d.ts.map +1 -1
  12. package/dist/client/types/app/bsky/embed/images.js +11 -1
  13. package/dist/client/types/app/bsky/embed/images.js.map +1 -1
  14. package/dist/client/types/app/bsky/embed/record.d.ts +9 -3
  15. package/dist/client/types/app/bsky/embed/record.d.ts.map +1 -1
  16. package/dist/client/types/app/bsky/embed/record.js +11 -1
  17. package/dist/client/types/app/bsky/embed/record.js.map +1 -1
  18. package/dist/client/types/app/bsky/embed/recordWithMedia.d.ts +2 -3
  19. package/dist/client/types/app/bsky/embed/recordWithMedia.d.ts.map +1 -1
  20. package/dist/client/types/app/bsky/embed/recordWithMedia.js.map +1 -1
  21. package/dist/client/types/app/bsky/feed/defs.d.ts +3 -2
  22. package/dist/client/types/app/bsky/feed/defs.d.ts.map +1 -1
  23. package/dist/client/types/app/bsky/feed/defs.js.map +1 -1
  24. package/dist/client/types/app/bsky/feed/getQuotes.d.ts +31 -0
  25. package/dist/client/types/app/bsky/feed/getQuotes.d.ts.map +1 -0
  26. package/dist/client/types/app/bsky/{video/getUploadLimits.js → feed/getQuotes.js} +7 -1
  27. package/dist/client/types/app/bsky/feed/getQuotes.js.map +1 -0
  28. package/dist/client/types/app/bsky/feed/post.d.ts +1 -2
  29. package/dist/client/types/app/bsky/feed/post.d.ts.map +1 -1
  30. package/dist/client/types/app/bsky/feed/post.js.map +1 -1
  31. package/dist/client/types/app/bsky/feed/postgate.d.ts +25 -0
  32. package/dist/client/types/app/bsky/feed/postgate.d.ts.map +1 -0
  33. package/dist/client/types/app/bsky/feed/postgate.js +27 -0
  34. package/dist/client/types/app/bsky/feed/postgate.js.map +1 -0
  35. package/dist/client/types/app/bsky/feed/threadgate.d.ts +2 -0
  36. package/dist/client/types/app/bsky/feed/threadgate.d.ts.map +1 -1
  37. package/dist/client/types/app/bsky/feed/threadgate.js.map +1 -1
  38. package/package.json +4 -4
  39. package/src/client/index.ts +78 -53
  40. package/src/client/lexicons.ts +164 -250
  41. package/src/client/types/app/bsky/embed/images.ts +21 -3
  42. package/src/client/types/app/bsky/embed/record.ts +19 -2
  43. package/src/client/types/app/bsky/embed/recordWithMedia.ts +0 -3
  44. package/src/client/types/app/bsky/feed/defs.ts +2 -2
  45. package/src/client/types/app/bsky/{video/getJobStatus.ts → feed/getQuotes.ts} +16 -7
  46. package/src/client/types/app/bsky/feed/post.ts +0 -2
  47. package/src/client/types/app/bsky/feed/postgate.ts +47 -0
  48. package/src/client/types/app/bsky/feed/threadgate.ts +2 -0
  49. package/dist/client/types/app/bsky/embed/defs.d.ts +0 -13
  50. package/dist/client/types/app/bsky/embed/defs.d.ts.map +0 -1
  51. package/dist/client/types/app/bsky/embed/defs.js +0 -16
  52. package/dist/client/types/app/bsky/embed/defs.js.map +0 -1
  53. package/dist/client/types/app/bsky/embed/video.d.ts +0 -33
  54. package/dist/client/types/app/bsky/embed/video.d.ts.map +0 -1
  55. package/dist/client/types/app/bsky/embed/video.js +0 -35
  56. package/dist/client/types/app/bsky/embed/video.js.map +0 -1
  57. package/dist/client/types/app/bsky/video/defs.d.ts +0 -19
  58. package/dist/client/types/app/bsky/video/defs.d.ts.map +0 -1
  59. package/dist/client/types/app/bsky/video/defs.js +0 -16
  60. package/dist/client/types/app/bsky/video/defs.js.map +0 -1
  61. package/dist/client/types/app/bsky/video/getJobStatus.d.ts +0 -24
  62. package/dist/client/types/app/bsky/video/getJobStatus.d.ts.map +0 -1
  63. package/dist/client/types/app/bsky/video/getJobStatus.js +0 -8
  64. package/dist/client/types/app/bsky/video/getJobStatus.js.map +0 -1
  65. package/dist/client/types/app/bsky/video/getUploadLimits.d.ts +0 -26
  66. package/dist/client/types/app/bsky/video/getUploadLimits.d.ts.map +0 -1
  67. package/dist/client/types/app/bsky/video/getUploadLimits.js.map +0 -1
  68. package/dist/client/types/app/bsky/video/uploadVideo.d.ts +0 -25
  69. package/dist/client/types/app/bsky/video/uploadVideo.d.ts.map +0 -1
  70. package/dist/client/types/app/bsky/video/uploadVideo.js +0 -8
  71. package/dist/client/types/app/bsky/video/uploadVideo.js.map +0 -1
  72. package/src/client/types/app/bsky/embed/defs.ts +0 -26
  73. package/src/client/types/app/bsky/embed/video.ts +0 -67
  74. package/src/client/types/app/bsky/video/defs.ts +0 -32
  75. package/src/client/types/app/bsky/video/getUploadLimits.ts +0 -36
  76. package/src/client/types/app/bsky/video/uploadVideo.ts +0 -35
@@ -4796,28 +4796,6 @@ export const schemaDict = {
4796
4796
  },
4797
4797
  },
4798
4798
  },
4799
- AppBskyEmbedDefs: {
4800
- lexicon: 1,
4801
- id: 'app.bsky.embed.defs',
4802
- defs: {
4803
- aspectRatio: {
4804
- type: 'object',
4805
- description:
4806
- 'width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit.',
4807
- required: ['width', 'height'],
4808
- properties: {
4809
- width: {
4810
- type: 'integer',
4811
- minimum: 1,
4812
- },
4813
- height: {
4814
- type: 'integer',
4815
- minimum: 1,
4816
- },
4817
- },
4818
- },
4819
- },
4820
- },
4821
4799
  AppBskyEmbedExternal: {
4822
4800
  lexicon: 1,
4823
4801
  id: 'app.bsky.embed.external',
@@ -4922,7 +4900,23 @@ export const schemaDict = {
4922
4900
  },
4923
4901
  aspectRatio: {
4924
4902
  type: 'ref',
4925
- ref: 'lex:app.bsky.embed.defs#aspectRatio',
4903
+ ref: 'lex:app.bsky.embed.images#aspectRatio',
4904
+ },
4905
+ },
4906
+ },
4907
+ aspectRatio: {
4908
+ type: 'object',
4909
+ description:
4910
+ 'width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit.',
4911
+ required: ['width', 'height'],
4912
+ properties: {
4913
+ width: {
4914
+ type: 'integer',
4915
+ minimum: 1,
4916
+ },
4917
+ height: {
4918
+ type: 'integer',
4919
+ minimum: 1,
4926
4920
  },
4927
4921
  },
4928
4922
  },
@@ -4963,7 +4957,7 @@ export const schemaDict = {
4963
4957
  },
4964
4958
  aspectRatio: {
4965
4959
  type: 'ref',
4966
- ref: 'lex:app.bsky.embed.defs#aspectRatio',
4960
+ ref: 'lex:app.bsky.embed.images#aspectRatio',
4967
4961
  },
4968
4962
  },
4969
4963
  },
@@ -4995,6 +4989,7 @@ export const schemaDict = {
4995
4989
  'lex:app.bsky.embed.record#viewRecord',
4996
4990
  'lex:app.bsky.embed.record#viewNotFound',
4997
4991
  'lex:app.bsky.embed.record#viewBlocked',
4992
+ 'lex:app.bsky.embed.record#viewDetached',
4998
4993
  'lex:app.bsky.feed.defs#generatorView',
4999
4994
  'lex:app.bsky.graph.defs#listView',
5000
4995
  'lex:app.bsky.labeler.defs#labelerView',
@@ -5045,7 +5040,6 @@ export const schemaDict = {
5045
5040
  type: 'union',
5046
5041
  refs: [
5047
5042
  'lex:app.bsky.embed.images#view',
5048
- 'lex:app.bsky.embed.video#view',
5049
5043
  'lex:app.bsky.embed.external#view',
5050
5044
  'lex:app.bsky.embed.record#view',
5051
5045
  'lex:app.bsky.embed.recordWithMedia#view',
@@ -5090,6 +5084,20 @@ export const schemaDict = {
5090
5084
  },
5091
5085
  },
5092
5086
  },
5087
+ viewDetached: {
5088
+ type: 'object',
5089
+ required: ['uri', 'detached'],
5090
+ properties: {
5091
+ uri: {
5092
+ type: 'string',
5093
+ format: 'at-uri',
5094
+ },
5095
+ detached: {
5096
+ type: 'boolean',
5097
+ const: true,
5098
+ },
5099
+ },
5100
+ },
5093
5101
  },
5094
5102
  },
5095
5103
  AppBskyEmbedRecordWithMedia: {
@@ -5108,11 +5116,7 @@ export const schemaDict = {
5108
5116
  },
5109
5117
  media: {
5110
5118
  type: 'union',
5111
- refs: [
5112
- 'lex:app.bsky.embed.images',
5113
- 'lex:app.bsky.embed.video',
5114
- 'lex:app.bsky.embed.external',
5115
- ],
5119
+ refs: ['lex:app.bsky.embed.images', 'lex:app.bsky.embed.external'],
5116
5120
  },
5117
5121
  },
5118
5122
  },
@@ -5128,7 +5132,6 @@ export const schemaDict = {
5128
5132
  type: 'union',
5129
5133
  refs: [
5130
5134
  'lex:app.bsky.embed.images#view',
5131
- 'lex:app.bsky.embed.video#view',
5132
5135
  'lex:app.bsky.embed.external#view',
5133
5136
  ],
5134
5137
  },
@@ -5136,85 +5139,6 @@ export const schemaDict = {
5136
5139
  },
5137
5140
  },
5138
5141
  },
5139
- AppBskyEmbedVideo: {
5140
- lexicon: 1,
5141
- id: 'app.bsky.embed.video',
5142
- description: 'A video embedded in a Bluesky record (eg, a post).',
5143
- defs: {
5144
- main: {
5145
- type: 'object',
5146
- required: ['video'],
5147
- properties: {
5148
- video: {
5149
- type: 'blob',
5150
- accept: ['video/mp4'],
5151
- maxSize: 50000000,
5152
- },
5153
- captions: {
5154
- type: 'array',
5155
- items: {
5156
- type: 'ref',
5157
- ref: 'lex:app.bsky.embed.video#caption',
5158
- },
5159
- maxLength: 20,
5160
- },
5161
- alt: {
5162
- type: 'string',
5163
- description:
5164
- 'Alt text description of the video, for accessibility.',
5165
- maxGraphemes: 1000,
5166
- maxLength: 10000,
5167
- },
5168
- aspectRatio: {
5169
- type: 'ref',
5170
- ref: 'lex:app.bsky.embed.defs#aspectRatio',
5171
- },
5172
- },
5173
- },
5174
- caption: {
5175
- type: 'object',
5176
- required: ['lang', 'file'],
5177
- properties: {
5178
- lang: {
5179
- type: 'string',
5180
- format: 'language',
5181
- },
5182
- file: {
5183
- type: 'blob',
5184
- accept: ['text/vtt'],
5185
- maxSize: 20000,
5186
- },
5187
- },
5188
- },
5189
- view: {
5190
- type: 'object',
5191
- required: ['cid', 'playlist'],
5192
- properties: {
5193
- cid: {
5194
- type: 'string',
5195
- format: 'cid',
5196
- },
5197
- playlist: {
5198
- type: 'string',
5199
- format: 'uri',
5200
- },
5201
- thumbnail: {
5202
- type: 'string',
5203
- format: 'uri',
5204
- },
5205
- alt: {
5206
- type: 'string',
5207
- maxGraphemes: 1000,
5208
- maxLength: 10000,
5209
- },
5210
- aspectRatio: {
5211
- type: 'ref',
5212
- ref: 'lex:app.bsky.embed.defs#aspectRatio',
5213
- },
5214
- },
5215
- },
5216
- },
5217
- },
5218
5142
  AppBskyFeedDefs: {
5219
5143
  lexicon: 1,
5220
5144
  id: 'app.bsky.feed.defs',
@@ -5242,7 +5166,6 @@ export const schemaDict = {
5242
5166
  type: 'union',
5243
5167
  refs: [
5244
5168
  'lex:app.bsky.embed.images#view',
5245
- 'lex:app.bsky.embed.video#view',
5246
5169
  'lex:app.bsky.embed.external#view',
5247
5170
  'lex:app.bsky.embed.record#view',
5248
5171
  'lex:app.bsky.embed.recordWithMedia#view',
@@ -5257,6 +5180,9 @@ export const schemaDict = {
5257
5180
  likeCount: {
5258
5181
  type: 'integer',
5259
5182
  },
5183
+ quoteCount: {
5184
+ type: 'integer',
5185
+ },
5260
5186
  indexedAt: {
5261
5187
  type: 'string',
5262
5188
  format: 'datetime',
@@ -5297,6 +5223,9 @@ export const schemaDict = {
5297
5223
  replyDisabled: {
5298
5224
  type: 'boolean',
5299
5225
  },
5226
+ embeddingDisabled: {
5227
+ type: 'boolean',
5228
+ },
5300
5229
  },
5301
5230
  },
5302
5231
  feedViewPost: {
@@ -6372,6 +6301,69 @@ export const schemaDict = {
6372
6301
  },
6373
6302
  },
6374
6303
  },
6304
+ AppBskyFeedGetQuotes: {
6305
+ lexicon: 1,
6306
+ id: 'app.bsky.feed.getQuotes',
6307
+ defs: {
6308
+ main: {
6309
+ type: 'query',
6310
+ description: 'Get a list of quotes for a given post.',
6311
+ parameters: {
6312
+ type: 'params',
6313
+ required: ['uri'],
6314
+ properties: {
6315
+ uri: {
6316
+ type: 'string',
6317
+ format: 'at-uri',
6318
+ description: 'Reference (AT-URI) of post record',
6319
+ },
6320
+ cid: {
6321
+ type: 'string',
6322
+ format: 'cid',
6323
+ description:
6324
+ 'If supplied, filters to quotes of specific version (by CID) of the post record.',
6325
+ },
6326
+ limit: {
6327
+ type: 'integer',
6328
+ minimum: 1,
6329
+ maximum: 100,
6330
+ default: 50,
6331
+ },
6332
+ cursor: {
6333
+ type: 'string',
6334
+ },
6335
+ },
6336
+ },
6337
+ output: {
6338
+ encoding: 'application/json',
6339
+ schema: {
6340
+ type: 'object',
6341
+ required: ['uri', 'posts'],
6342
+ properties: {
6343
+ uri: {
6344
+ type: 'string',
6345
+ format: 'at-uri',
6346
+ },
6347
+ cid: {
6348
+ type: 'string',
6349
+ format: 'cid',
6350
+ },
6351
+ cursor: {
6352
+ type: 'string',
6353
+ },
6354
+ posts: {
6355
+ type: 'array',
6356
+ items: {
6357
+ type: 'ref',
6358
+ ref: 'lex:app.bsky.feed.defs#postView',
6359
+ },
6360
+ },
6361
+ },
6362
+ },
6363
+ },
6364
+ },
6365
+ },
6366
+ },
6375
6367
  AppBskyFeedGetRepostedBy: {
6376
6368
  lexicon: 1,
6377
6369
  id: 'app.bsky.feed.getRepostedBy',
@@ -6597,7 +6589,6 @@ export const schemaDict = {
6597
6589
  type: 'union',
6598
6590
  refs: [
6599
6591
  'lex:app.bsky.embed.images',
6600
- 'lex:app.bsky.embed.video',
6601
6592
  'lex:app.bsky.embed.external',
6602
6593
  'lex:app.bsky.embed.record',
6603
6594
  'lex:app.bsky.embed.recordWithMedia',
@@ -6689,6 +6680,56 @@ export const schemaDict = {
6689
6680
  },
6690
6681
  },
6691
6682
  },
6683
+ AppBskyFeedPostgate: {
6684
+ lexicon: 1,
6685
+ id: 'app.bsky.feed.postgate',
6686
+ defs: {
6687
+ main: {
6688
+ type: 'record',
6689
+ key: 'tid',
6690
+ description:
6691
+ 'Record defining interaction rules for a post. The record key (rkey) of the postgate record must match the record key of the post, and that record must be in the same repository.',
6692
+ record: {
6693
+ type: 'object',
6694
+ required: ['post', 'createdAt'],
6695
+ properties: {
6696
+ createdAt: {
6697
+ type: 'string',
6698
+ format: 'datetime',
6699
+ },
6700
+ post: {
6701
+ type: 'string',
6702
+ format: 'at-uri',
6703
+ description: 'Reference (AT-URI) to the post record.',
6704
+ },
6705
+ detachedEmbeddingUris: {
6706
+ type: 'array',
6707
+ maxLength: 50,
6708
+ items: {
6709
+ type: 'string',
6710
+ format: 'at-uri',
6711
+ },
6712
+ description:
6713
+ 'List of AT-URIs embedding this post that the author has detached from.',
6714
+ },
6715
+ embeddingRules: {
6716
+ type: 'array',
6717
+ maxLength: 5,
6718
+ items: {
6719
+ type: 'union',
6720
+ refs: ['lex:app.bsky.feed.postgate#disableRule'],
6721
+ },
6722
+ },
6723
+ },
6724
+ },
6725
+ },
6726
+ disableRule: {
6727
+ type: 'object',
6728
+ description: 'Disables embedding of this post.',
6729
+ properties: {},
6730
+ },
6731
+ },
6732
+ },
6692
6733
  AppBskyFeedRepost: {
6693
6734
  lexicon: 1,
6694
6735
  id: 'app.bsky.feed.repost',
@@ -6900,6 +6941,15 @@ export const schemaDict = {
6900
6941
  type: 'string',
6901
6942
  format: 'datetime',
6902
6943
  },
6944
+ hiddenReplies: {
6945
+ type: 'array',
6946
+ maxLength: 50,
6947
+ items: {
6948
+ type: 'string',
6949
+ format: 'at-uri',
6950
+ },
6951
+ description: 'List of hidden reply URIs.',
6952
+ },
6903
6953
  },
6904
6954
  },
6905
6955
  },
@@ -9142,138 +9192,6 @@ export const schemaDict = {
9142
9192
  },
9143
9193
  },
9144
9194
  },
9145
- AppBskyVideoDefs: {
9146
- lexicon: 1,
9147
- id: 'app.bsky.video.defs',
9148
- defs: {
9149
- jobStatus: {
9150
- type: 'object',
9151
- required: ['jobId', 'did', 'state'],
9152
- properties: {
9153
- jobId: {
9154
- type: 'string',
9155
- },
9156
- did: {
9157
- type: 'string',
9158
- format: 'did',
9159
- },
9160
- state: {
9161
- type: 'string',
9162
- description:
9163
- 'The state of the video processing job. All values not listed as a known value indicate that the job is in process.',
9164
- knownValues: ['JOB_STATE_COMPLETED', 'JOB_STATE_FAILED'],
9165
- },
9166
- progress: {
9167
- type: 'integer',
9168
- minimum: 0,
9169
- maximum: 100,
9170
- description: 'Progress within the current processing state.',
9171
- },
9172
- blob: {
9173
- type: 'blob',
9174
- },
9175
- error: {
9176
- type: 'string',
9177
- },
9178
- message: {
9179
- type: 'string',
9180
- },
9181
- },
9182
- },
9183
- },
9184
- },
9185
- AppBskyVideoGetJobStatus: {
9186
- lexicon: 1,
9187
- id: 'app.bsky.video.getJobStatus',
9188
- defs: {
9189
- main: {
9190
- type: 'query',
9191
- description: 'Get status details for a video processing job.',
9192
- parameters: {
9193
- type: 'params',
9194
- required: ['jobId'],
9195
- properties: {
9196
- jobId: {
9197
- type: 'string',
9198
- },
9199
- },
9200
- },
9201
- output: {
9202
- encoding: 'application/json',
9203
- schema: {
9204
- type: 'object',
9205
- required: ['jobStatus'],
9206
- properties: {
9207
- jobStatus: {
9208
- type: 'ref',
9209
- ref: 'lex:app.bsky.video.defs#jobStatus',
9210
- },
9211
- },
9212
- },
9213
- },
9214
- },
9215
- },
9216
- },
9217
- AppBskyVideoGetUploadLimits: {
9218
- lexicon: 1,
9219
- id: 'app.bsky.video.getUploadLimits',
9220
- defs: {
9221
- main: {
9222
- type: 'query',
9223
- description: 'Get video upload limits for the authenticated user.',
9224
- output: {
9225
- encoding: 'application/json',
9226
- schema: {
9227
- type: 'object',
9228
- required: ['canUpload'],
9229
- properties: {
9230
- canUpload: {
9231
- type: 'boolean',
9232
- },
9233
- remainingDailyVideos: {
9234
- type: 'integer',
9235
- },
9236
- remainingDailyBytes: {
9237
- type: 'integer',
9238
- },
9239
- message: {
9240
- type: 'string',
9241
- },
9242
- error: {
9243
- type: 'string',
9244
- },
9245
- },
9246
- },
9247
- },
9248
- },
9249
- },
9250
- },
9251
- AppBskyVideoUploadVideo: {
9252
- lexicon: 1,
9253
- id: 'app.bsky.video.uploadVideo',
9254
- defs: {
9255
- main: {
9256
- type: 'procedure',
9257
- description: 'Upload a video to be processed then stored on the PDS.',
9258
- input: {
9259
- encoding: 'video/mp4',
9260
- },
9261
- output: {
9262
- encoding: 'application/json',
9263
- schema: {
9264
- type: 'object',
9265
- required: ['jobStatus'],
9266
- properties: {
9267
- jobStatus: {
9268
- type: 'ref',
9269
- ref: 'lex:app.bsky.video.defs#jobStatus',
9270
- },
9271
- },
9272
- },
9273
- },
9274
- },
9275
- },
9276
- },
9277
9195
  ChatBskyActorDeclaration: {
9278
9196
  lexicon: 1,
9279
9197
  id: 'chat.bsky.actor.declaration',
@@ -11999,12 +11917,10 @@ export const ids = {
11999
11917
  AppBskyActorPutPreferences: 'app.bsky.actor.putPreferences',
12000
11918
  AppBskyActorSearchActors: 'app.bsky.actor.searchActors',
12001
11919
  AppBskyActorSearchActorsTypeahead: 'app.bsky.actor.searchActorsTypeahead',
12002
- AppBskyEmbedDefs: 'app.bsky.embed.defs',
12003
11920
  AppBskyEmbedExternal: 'app.bsky.embed.external',
12004
11921
  AppBskyEmbedImages: 'app.bsky.embed.images',
12005
11922
  AppBskyEmbedRecord: 'app.bsky.embed.record',
12006
11923
  AppBskyEmbedRecordWithMedia: 'app.bsky.embed.recordWithMedia',
12007
- AppBskyEmbedVideo: 'app.bsky.embed.video',
12008
11924
  AppBskyFeedDefs: 'app.bsky.feed.defs',
12009
11925
  AppBskyFeedDescribeFeedGenerator: 'app.bsky.feed.describeFeedGenerator',
12010
11926
  AppBskyFeedGenerator: 'app.bsky.feed.generator',
@@ -12019,11 +11935,13 @@ export const ids = {
12019
11935
  AppBskyFeedGetListFeed: 'app.bsky.feed.getListFeed',
12020
11936
  AppBskyFeedGetPostThread: 'app.bsky.feed.getPostThread',
12021
11937
  AppBskyFeedGetPosts: 'app.bsky.feed.getPosts',
11938
+ AppBskyFeedGetQuotes: 'app.bsky.feed.getQuotes',
12022
11939
  AppBskyFeedGetRepostedBy: 'app.bsky.feed.getRepostedBy',
12023
11940
  AppBskyFeedGetSuggestedFeeds: 'app.bsky.feed.getSuggestedFeeds',
12024
11941
  AppBskyFeedGetTimeline: 'app.bsky.feed.getTimeline',
12025
11942
  AppBskyFeedLike: 'app.bsky.feed.like',
12026
11943
  AppBskyFeedPost: 'app.bsky.feed.post',
11944
+ AppBskyFeedPostgate: 'app.bsky.feed.postgate',
12027
11945
  AppBskyFeedRepost: 'app.bsky.feed.repost',
12028
11946
  AppBskyFeedSearchPosts: 'app.bsky.feed.searchPosts',
12029
11947
  AppBskyFeedSendInteractions: 'app.bsky.feed.sendInteractions',
@@ -12076,10 +11994,6 @@ export const ids = {
12076
11994
  AppBskyUnspeccedSearchActorsSkeleton:
12077
11995
  'app.bsky.unspecced.searchActorsSkeleton',
12078
11996
  AppBskyUnspeccedSearchPostsSkeleton: 'app.bsky.unspecced.searchPostsSkeleton',
12079
- AppBskyVideoDefs: 'app.bsky.video.defs',
12080
- AppBskyVideoGetJobStatus: 'app.bsky.video.getJobStatus',
12081
- AppBskyVideoGetUploadLimits: 'app.bsky.video.getUploadLimits',
12082
- AppBskyVideoUploadVideo: 'app.bsky.video.uploadVideo',
12083
11997
  ChatBskyActorDeclaration: 'chat.bsky.actor.declaration',
12084
11998
  ChatBskyActorDefs: 'chat.bsky.actor.defs',
12085
11999
  ChatBskyActorDeleteAccount: 'chat.bsky.actor.deleteAccount',
@@ -5,7 +5,6 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
5
5
  import { isObj, hasProp } from '../../../../util'
6
6
  import { lexicons } from '../../../../lexicons'
7
7
  import { CID } from 'multiformats/cid'
8
- import * as AppBskyEmbedDefs from './defs'
9
8
 
10
9
  export interface Main {
11
10
  images: Image[]
@@ -29,7 +28,7 @@ export interface Image {
29
28
  image: BlobRef
30
29
  /** Alt text description of the image, for accessibility. */
31
30
  alt: string
32
- aspectRatio?: AppBskyEmbedDefs.AspectRatio
31
+ aspectRatio?: AspectRatio
33
32
  [k: string]: unknown
34
33
  }
35
34
 
@@ -43,6 +42,25 @@ export function validateImage(v: unknown): ValidationResult {
43
42
  return lexicons.validate('app.bsky.embed.images#image', v)
44
43
  }
45
44
 
45
+ /** width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit. */
46
+ export interface AspectRatio {
47
+ width: number
48
+ height: number
49
+ [k: string]: unknown
50
+ }
51
+
52
+ export function isAspectRatio(v: unknown): v is AspectRatio {
53
+ return (
54
+ isObj(v) &&
55
+ hasProp(v, '$type') &&
56
+ v.$type === 'app.bsky.embed.images#aspectRatio'
57
+ )
58
+ }
59
+
60
+ export function validateAspectRatio(v: unknown): ValidationResult {
61
+ return lexicons.validate('app.bsky.embed.images#aspectRatio', v)
62
+ }
63
+
46
64
  export interface View {
47
65
  images: ViewImage[]
48
66
  [k: string]: unknown
@@ -65,7 +83,7 @@ export interface ViewImage {
65
83
  fullsize: string
66
84
  /** Alt text description of the image, for accessibility. */
67
85
  alt: string
68
- aspectRatio?: AppBskyEmbedDefs.AspectRatio
86
+ aspectRatio?: AspectRatio
69
87
  [k: string]: unknown
70
88
  }
71
89
 
@@ -12,7 +12,6 @@ import * as AppBskyLabelerDefs from '../labeler/defs'
12
12
  import * as AppBskyActorDefs from '../actor/defs'
13
13
  import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'
14
14
  import * as AppBskyEmbedImages from './images'
15
- import * as AppBskyEmbedVideo from './video'
16
15
  import * as AppBskyEmbedExternal from './external'
17
16
  import * as AppBskyEmbedRecordWithMedia from './recordWithMedia'
18
17
 
@@ -39,6 +38,7 @@ export interface View {
39
38
  | ViewRecord
40
39
  | ViewNotFound
41
40
  | ViewBlocked
41
+ | ViewDetached
42
42
  | AppBskyFeedDefs.GeneratorView
43
43
  | AppBskyGraphDefs.ListView
44
44
  | AppBskyLabelerDefs.LabelerView
@@ -69,7 +69,6 @@ export interface ViewRecord {
69
69
  likeCount?: number
70
70
  embeds?: (
71
71
  | AppBskyEmbedImages.View
72
- | AppBskyEmbedVideo.View
73
72
  | AppBskyEmbedExternal.View
74
73
  | View
75
74
  | AppBskyEmbedRecordWithMedia.View
@@ -127,3 +126,21 @@ export function isViewBlocked(v: unknown): v is ViewBlocked {
127
126
  export function validateViewBlocked(v: unknown): ValidationResult {
128
127
  return lexicons.validate('app.bsky.embed.record#viewBlocked', v)
129
128
  }
129
+
130
+ export interface ViewDetached {
131
+ uri: string
132
+ detached: true
133
+ [k: string]: unknown
134
+ }
135
+
136
+ export function isViewDetached(v: unknown): v is ViewDetached {
137
+ return (
138
+ isObj(v) &&
139
+ hasProp(v, '$type') &&
140
+ v.$type === 'app.bsky.embed.record#viewDetached'
141
+ )
142
+ }
143
+
144
+ export function validateViewDetached(v: unknown): ValidationResult {
145
+ return lexicons.validate('app.bsky.embed.record#viewDetached', v)
146
+ }
@@ -7,14 +7,12 @@ import { lexicons } from '../../../../lexicons'
7
7
  import { CID } from 'multiformats/cid'
8
8
  import * as AppBskyEmbedRecord from './record'
9
9
  import * as AppBskyEmbedImages from './images'
10
- import * as AppBskyEmbedVideo from './video'
11
10
  import * as AppBskyEmbedExternal from './external'
12
11
 
13
12
  export interface Main {
14
13
  record: AppBskyEmbedRecord.Main
15
14
  media:
16
15
  | AppBskyEmbedImages.Main
17
- | AppBskyEmbedVideo.Main
18
16
  | AppBskyEmbedExternal.Main
19
17
  | { $type: string; [k: string]: unknown }
20
18
  [k: string]: unknown
@@ -37,7 +35,6 @@ export interface View {
37
35
  record: AppBskyEmbedRecord.View
38
36
  media:
39
37
  | AppBskyEmbedImages.View
40
- | AppBskyEmbedVideo.View
41
38
  | AppBskyEmbedExternal.View
42
39
  | { $type: string; [k: string]: unknown }
43
40
  [k: string]: unknown
@@ -7,7 +7,6 @@ import { lexicons } from '../../../../lexicons'
7
7
  import { CID } from 'multiformats/cid'
8
8
  import * as AppBskyActorDefs from '../actor/defs'
9
9
  import * as AppBskyEmbedImages from '../embed/images'
10
- import * as AppBskyEmbedVideo from '../embed/video'
11
10
  import * as AppBskyEmbedExternal from '../embed/external'
12
11
  import * as AppBskyEmbedRecord from '../embed/record'
13
12
  import * as AppBskyEmbedRecordWithMedia from '../embed/recordWithMedia'
@@ -22,7 +21,6 @@ export interface PostView {
22
21
  record: {}
23
22
  embed?:
24
23
  | AppBskyEmbedImages.View
25
- | AppBskyEmbedVideo.View
26
24
  | AppBskyEmbedExternal.View
27
25
  | AppBskyEmbedRecord.View
28
26
  | AppBskyEmbedRecordWithMedia.View
@@ -30,6 +28,7 @@ export interface PostView {
30
28
  replyCount?: number
31
29
  repostCount?: number
32
30
  likeCount?: number
31
+ quoteCount?: number
33
32
  indexedAt: string
34
33
  viewer?: ViewerState
35
34
  labels?: ComAtprotoLabelDefs.Label[]
@@ -53,6 +52,7 @@ export interface ViewerState {
53
52
  like?: string
54
53
  threadMuted?: boolean
55
54
  replyDisabled?: boolean
55
+ embeddingDisabled?: boolean
56
56
  [k: string]: unknown
57
57
  }
58
58