@atproto/api 0.14.11 → 0.14.13

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 (42) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/client/index.d.ts +9 -0
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +25 -3
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/lexicons.d.ts +534 -4
  7. package/dist/client/lexicons.d.ts.map +1 -1
  8. package/dist/client/lexicons.js +287 -0
  9. package/dist/client/lexicons.js.map +1 -1
  10. package/dist/client/types/chat/bsky/convo/addReaction.d.ts +37 -0
  11. package/dist/client/types/chat/bsky/convo/addReaction.d.ts.map +1 -0
  12. package/dist/client/types/chat/bsky/convo/addReaction.js +42 -0
  13. package/dist/client/types/chat/bsky/convo/addReaction.js.map +1 -0
  14. package/dist/client/types/chat/bsky/convo/defs.d.ts +45 -1
  15. package/dist/client/types/chat/bsky/convo/defs.d.ts.map +1 -1
  16. package/dist/client/types/chat/bsky/convo/defs.js +45 -0
  17. package/dist/client/types/chat/bsky/convo/defs.js.map +1 -1
  18. package/dist/client/types/chat/bsky/convo/getLog.d.ts +1 -1
  19. package/dist/client/types/chat/bsky/convo/getLog.d.ts.map +1 -1
  20. package/dist/client/types/chat/bsky/convo/getLog.js.map +1 -1
  21. package/dist/client/types/chat/bsky/convo/removeReaction.d.ts +34 -0
  22. package/dist/client/types/chat/bsky/convo/removeReaction.d.ts.map +1 -0
  23. package/dist/client/types/chat/bsky/convo/removeReaction.js +34 -0
  24. package/dist/client/types/chat/bsky/convo/removeReaction.js.map +1 -0
  25. package/dist/client/types/tools/ozone/moderation/defs.d.ts +14 -0
  26. package/dist/client/types/tools/ozone/moderation/defs.d.ts.map +1 -1
  27. package/dist/client/types/tools/ozone/moderation/defs.js +9 -0
  28. package/dist/client/types/tools/ozone/moderation/defs.js.map +1 -1
  29. package/dist/client/types/tools/ozone/moderation/getSubjects.d.ts +23 -0
  30. package/dist/client/types/tools/ozone/moderation/getSubjects.d.ts.map +1 -0
  31. package/dist/client/types/tools/ozone/moderation/getSubjects.js +11 -0
  32. package/dist/client/types/tools/ozone/moderation/getSubjects.js.map +1 -0
  33. package/package.json +1 -1
  34. package/src/client/index.ts +40 -0
  35. package/src/client/lexicons.ts +295 -0
  36. package/src/client/types/chat/bsky/convo/addReaction.ts +73 -0
  37. package/src/client/types/chat/bsky/convo/defs.ts +86 -0
  38. package/src/client/types/chat/bsky/convo/getLog.ts +5 -0
  39. package/src/client/types/chat/bsky/convo/removeReaction.ts +65 -0
  40. package/src/client/types/tools/ozone/moderation/defs.ts +21 -0
  41. package/src/client/types/tools/ozone/moderation/getSubjects.ts +42 -0
  42. package/tsconfig.build.tsbuildinfo +1 -1
@@ -191,6 +191,7 @@ import * as ChatBskyActorDefs from './types/chat/bsky/actor/defs.js'
191
191
  import * as ChatBskyActorDeleteAccount from './types/chat/bsky/actor/deleteAccount.js'
192
192
  import * as ChatBskyActorExportAccountData from './types/chat/bsky/actor/exportAccountData.js'
193
193
  import * as ChatBskyConvoAcceptConvo from './types/chat/bsky/convo/acceptConvo.js'
194
+ import * as ChatBskyConvoAddReaction from './types/chat/bsky/convo/addReaction.js'
194
195
  import * as ChatBskyConvoDefs from './types/chat/bsky/convo/defs.js'
195
196
  import * as ChatBskyConvoDeleteMessageForSelf from './types/chat/bsky/convo/deleteMessageForSelf.js'
196
197
  import * as ChatBskyConvoGetConvo from './types/chat/bsky/convo/getConvo.js'
@@ -201,6 +202,7 @@ import * as ChatBskyConvoGetMessages from './types/chat/bsky/convo/getMessages.j
201
202
  import * as ChatBskyConvoLeaveConvo from './types/chat/bsky/convo/leaveConvo.js'
202
203
  import * as ChatBskyConvoListConvos from './types/chat/bsky/convo/listConvos.js'
203
204
  import * as ChatBskyConvoMuteConvo from './types/chat/bsky/convo/muteConvo.js'
205
+ import * as ChatBskyConvoRemoveReaction from './types/chat/bsky/convo/removeReaction.js'
204
206
  import * as ChatBskyConvoSendMessage from './types/chat/bsky/convo/sendMessage.js'
205
207
  import * as ChatBskyConvoSendMessageBatch from './types/chat/bsky/convo/sendMessageBatch.js'
206
208
  import * as ChatBskyConvoUnmuteConvo from './types/chat/bsky/convo/unmuteConvo.js'
@@ -222,6 +224,7 @@ import * as ToolsOzoneModerationGetRecords from './types/tools/ozone/moderation/
222
224
  import * as ToolsOzoneModerationGetRepo from './types/tools/ozone/moderation/getRepo.js'
223
225
  import * as ToolsOzoneModerationGetReporterStats from './types/tools/ozone/moderation/getReporterStats.js'
224
226
  import * as ToolsOzoneModerationGetRepos from './types/tools/ozone/moderation/getRepos.js'
227
+ import * as ToolsOzoneModerationGetSubjects from './types/tools/ozone/moderation/getSubjects.js'
225
228
  import * as ToolsOzoneModerationQueryEvents from './types/tools/ozone/moderation/queryEvents.js'
226
229
  import * as ToolsOzoneModerationQueryStatuses from './types/tools/ozone/moderation/queryStatuses.js'
227
230
  import * as ToolsOzoneModerationSearchRepos from './types/tools/ozone/moderation/searchRepos.js'
@@ -429,6 +432,7 @@ export * as ChatBskyActorDefs from './types/chat/bsky/actor/defs.js'
429
432
  export * as ChatBskyActorDeleteAccount from './types/chat/bsky/actor/deleteAccount.js'
430
433
  export * as ChatBskyActorExportAccountData from './types/chat/bsky/actor/exportAccountData.js'
431
434
  export * as ChatBskyConvoAcceptConvo from './types/chat/bsky/convo/acceptConvo.js'
435
+ export * as ChatBskyConvoAddReaction from './types/chat/bsky/convo/addReaction.js'
432
436
  export * as ChatBskyConvoDefs from './types/chat/bsky/convo/defs.js'
433
437
  export * as ChatBskyConvoDeleteMessageForSelf from './types/chat/bsky/convo/deleteMessageForSelf.js'
434
438
  export * as ChatBskyConvoGetConvo from './types/chat/bsky/convo/getConvo.js'
@@ -439,6 +443,7 @@ export * as ChatBskyConvoGetMessages from './types/chat/bsky/convo/getMessages.j
439
443
  export * as ChatBskyConvoLeaveConvo from './types/chat/bsky/convo/leaveConvo.js'
440
444
  export * as ChatBskyConvoListConvos from './types/chat/bsky/convo/listConvos.js'
441
445
  export * as ChatBskyConvoMuteConvo from './types/chat/bsky/convo/muteConvo.js'
446
+ export * as ChatBskyConvoRemoveReaction from './types/chat/bsky/convo/removeReaction.js'
442
447
  export * as ChatBskyConvoSendMessage from './types/chat/bsky/convo/sendMessage.js'
443
448
  export * as ChatBskyConvoSendMessageBatch from './types/chat/bsky/convo/sendMessageBatch.js'
444
449
  export * as ChatBskyConvoUnmuteConvo from './types/chat/bsky/convo/unmuteConvo.js'
@@ -460,6 +465,7 @@ export * as ToolsOzoneModerationGetRecords from './types/tools/ozone/moderation/
460
465
  export * as ToolsOzoneModerationGetRepo from './types/tools/ozone/moderation/getRepo.js'
461
466
  export * as ToolsOzoneModerationGetReporterStats from './types/tools/ozone/moderation/getReporterStats.js'
462
467
  export * as ToolsOzoneModerationGetRepos from './types/tools/ozone/moderation/getRepos.js'
468
+ export * as ToolsOzoneModerationGetSubjects from './types/tools/ozone/moderation/getSubjects.js'
463
469
  export * as ToolsOzoneModerationQueryEvents from './types/tools/ozone/moderation/queryEvents.js'
464
470
  export * as ToolsOzoneModerationQueryStatuses from './types/tools/ozone/moderation/queryStatuses.js'
465
471
  export * as ToolsOzoneModerationSearchRepos from './types/tools/ozone/moderation/searchRepos.js'
@@ -3481,6 +3487,17 @@ export class ChatBskyConvoNS {
3481
3487
  )
3482
3488
  }
3483
3489
 
3490
+ addReaction(
3491
+ data?: ChatBskyConvoAddReaction.InputSchema,
3492
+ opts?: ChatBskyConvoAddReaction.CallOptions,
3493
+ ): Promise<ChatBskyConvoAddReaction.Response> {
3494
+ return this._client
3495
+ .call('chat.bsky.convo.addReaction', opts?.qp, data, opts)
3496
+ .catch((e) => {
3497
+ throw ChatBskyConvoAddReaction.toKnownErr(e)
3498
+ })
3499
+ }
3500
+
3484
3501
  deleteMessageForSelf(
3485
3502
  data?: ChatBskyConvoDeleteMessageForSelf.InputSchema,
3486
3503
  opts?: ChatBskyConvoDeleteMessageForSelf.CallOptions,
@@ -3574,6 +3591,17 @@ export class ChatBskyConvoNS {
3574
3591
  return this._client.call('chat.bsky.convo.muteConvo', opts?.qp, data, opts)
3575
3592
  }
3576
3593
 
3594
+ removeReaction(
3595
+ data?: ChatBskyConvoRemoveReaction.InputSchema,
3596
+ opts?: ChatBskyConvoRemoveReaction.CallOptions,
3597
+ ): Promise<ChatBskyConvoRemoveReaction.Response> {
3598
+ return this._client
3599
+ .call('chat.bsky.convo.removeReaction', opts?.qp, data, opts)
3600
+ .catch((e) => {
3601
+ throw ChatBskyConvoRemoveReaction.toKnownErr(e)
3602
+ })
3603
+ }
3604
+
3577
3605
  sendMessage(
3578
3606
  data?: ChatBskyConvoSendMessage.InputSchema,
3579
3607
  opts?: ChatBskyConvoSendMessage.CallOptions,
@@ -3848,6 +3876,18 @@ export class ToolsOzoneModerationNS {
3848
3876
  )
3849
3877
  }
3850
3878
 
3879
+ getSubjects(
3880
+ params?: ToolsOzoneModerationGetSubjects.QueryParams,
3881
+ opts?: ToolsOzoneModerationGetSubjects.CallOptions,
3882
+ ): Promise<ToolsOzoneModerationGetSubjects.Response> {
3883
+ return this._client.call(
3884
+ 'tools.ozone.moderation.getSubjects',
3885
+ params,
3886
+ undefined,
3887
+ opts,
3888
+ )
3889
+ }
3890
+
3851
3891
  queryEvents(
3852
3892
  params?: ToolsOzoneModerationQueryEvents.QueryParams,
3853
3893
  opts?: ToolsOzoneModerationQueryEvents.CallOptions,
@@ -10458,6 +10458,69 @@ export const schemaDict = {
10458
10458
  },
10459
10459
  },
10460
10460
  },
10461
+ ChatBskyConvoAddReaction: {
10462
+ lexicon: 1,
10463
+ id: 'chat.bsky.convo.addReaction',
10464
+ defs: {
10465
+ main: {
10466
+ type: 'procedure',
10467
+ description:
10468
+ 'Adds an emoji reaction to a message. Requires authentication. It is idempotent, so multiple calls from the same user with the same emoji result in a single reaction.',
10469
+ input: {
10470
+ encoding: 'application/json',
10471
+ schema: {
10472
+ type: 'object',
10473
+ required: ['convoId', 'messageId', 'value'],
10474
+ properties: {
10475
+ convoId: {
10476
+ type: 'string',
10477
+ },
10478
+ messageId: {
10479
+ type: 'string',
10480
+ },
10481
+ value: {
10482
+ type: 'string',
10483
+ minLength: 1,
10484
+ maxLength: 32,
10485
+ minGraphemes: 1,
10486
+ maxGraphemes: 1,
10487
+ },
10488
+ },
10489
+ },
10490
+ },
10491
+ output: {
10492
+ encoding: 'application/json',
10493
+ schema: {
10494
+ type: 'object',
10495
+ required: ['message'],
10496
+ properties: {
10497
+ message: {
10498
+ type: 'ref',
10499
+ ref: 'lex:chat.bsky.convo.defs#messageView',
10500
+ },
10501
+ },
10502
+ },
10503
+ },
10504
+ errors: [
10505
+ {
10506
+ name: 'ReactionMessageDeleted',
10507
+ description:
10508
+ 'Indicates that the message has been deleted and reactions can no longer be added/removed.',
10509
+ },
10510
+ {
10511
+ name: 'ReactionLimitReached',
10512
+ description:
10513
+ "Indicates that the message has the maximum number of reactions allowed for a single user, and the requested reaction wasn't yet present. If it was already present, the request will not fail since it is idempotent.",
10514
+ },
10515
+ {
10516
+ name: 'ReactionInvalidValue',
10517
+ description:
10518
+ 'Indicates the value for the reaction is not acceptable. In general, this means it is not an emoji.',
10519
+ },
10520
+ ],
10521
+ },
10522
+ },
10523
+ },
10461
10524
  ChatBskyConvoDefs: {
10462
10525
  lexicon: 1,
10463
10526
  id: 'chat.bsky.convo.defs',
@@ -10528,6 +10591,13 @@ export const schemaDict = {
10528
10591
  type: 'union',
10529
10592
  refs: ['lex:app.bsky.embed.record#view'],
10530
10593
  },
10594
+ reactions: {
10595
+ type: 'array',
10596
+ items: {
10597
+ type: 'ref',
10598
+ ref: 'lex:chat.bsky.convo.defs#reactionView',
10599
+ },
10600
+ },
10531
10601
  sender: {
10532
10602
  type: 'ref',
10533
10603
  ref: 'lex:chat.bsky.convo.defs#messageViewSender',
@@ -10568,6 +10638,47 @@ export const schemaDict = {
10568
10638
  },
10569
10639
  },
10570
10640
  },
10641
+ reactionView: {
10642
+ type: 'object',
10643
+ required: ['value', 'sender', 'createdAt'],
10644
+ properties: {
10645
+ value: {
10646
+ type: 'string',
10647
+ },
10648
+ sender: {
10649
+ type: 'ref',
10650
+ ref: 'lex:chat.bsky.convo.defs#reactionViewSender',
10651
+ },
10652
+ createdAt: {
10653
+ type: 'string',
10654
+ format: 'datetime',
10655
+ },
10656
+ },
10657
+ },
10658
+ reactionViewSender: {
10659
+ type: 'object',
10660
+ required: ['did'],
10661
+ properties: {
10662
+ did: {
10663
+ type: 'string',
10664
+ format: 'did',
10665
+ },
10666
+ },
10667
+ },
10668
+ messageAndReactionView: {
10669
+ type: 'object',
10670
+ required: ['message', 'reaction'],
10671
+ properties: {
10672
+ message: {
10673
+ type: 'ref',
10674
+ ref: 'lex:chat.bsky.convo.defs#messageView',
10675
+ },
10676
+ reaction: {
10677
+ type: 'ref',
10678
+ ref: 'lex:chat.bsky.convo.defs#reactionView',
10679
+ },
10680
+ },
10681
+ },
10571
10682
  convoView: {
10572
10683
  type: 'object',
10573
10684
  required: ['id', 'rev', 'members', 'muted', 'unreadCount'],
@@ -10590,6 +10701,7 @@ export const schemaDict = {
10590
10701
  refs: [
10591
10702
  'lex:chat.bsky.convo.defs#messageView',
10592
10703
  'lex:chat.bsky.convo.defs#deletedMessageView',
10704
+ 'lex:chat.bsky.convo.defs#messageAndReactionView',
10593
10705
  ],
10594
10706
  },
10595
10707
  muted: {
@@ -10721,6 +10833,52 @@ export const schemaDict = {
10721
10833
  },
10722
10834
  },
10723
10835
  },
10836
+ logAddReaction: {
10837
+ type: 'object',
10838
+ required: ['rev', 'convoId', 'message', 'reaction'],
10839
+ properties: {
10840
+ rev: {
10841
+ type: 'string',
10842
+ },
10843
+ convoId: {
10844
+ type: 'string',
10845
+ },
10846
+ message: {
10847
+ type: 'union',
10848
+ refs: [
10849
+ 'lex:chat.bsky.convo.defs#messageView',
10850
+ 'lex:chat.bsky.convo.defs#deletedMessageView',
10851
+ ],
10852
+ },
10853
+ reaction: {
10854
+ type: 'ref',
10855
+ ref: 'lex:chat.bsky.convo.defs#reactionView',
10856
+ },
10857
+ },
10858
+ },
10859
+ logRemoveReaction: {
10860
+ type: 'object',
10861
+ required: ['rev', 'convoId', 'message', 'reaction'],
10862
+ properties: {
10863
+ rev: {
10864
+ type: 'string',
10865
+ },
10866
+ convoId: {
10867
+ type: 'string',
10868
+ },
10869
+ message: {
10870
+ type: 'union',
10871
+ refs: [
10872
+ 'lex:chat.bsky.convo.defs#messageView',
10873
+ 'lex:chat.bsky.convo.defs#deletedMessageView',
10874
+ ],
10875
+ },
10876
+ reaction: {
10877
+ type: 'ref',
10878
+ ref: 'lex:chat.bsky.convo.defs#reactionView',
10879
+ },
10880
+ },
10881
+ },
10724
10882
  },
10725
10883
  },
10726
10884
  ChatBskyConvoDeleteMessageForSelf: {
@@ -10896,8 +11054,13 @@ export const schemaDict = {
10896
11054
  'lex:chat.bsky.convo.defs#logBeginConvo',
10897
11055
  'lex:chat.bsky.convo.defs#logAcceptConvo',
10898
11056
  'lex:chat.bsky.convo.defs#logLeaveConvo',
11057
+ 'lex:chat.bsky.convo.defs#logMuteConvo',
11058
+ 'lex:chat.bsky.convo.defs#logUnmuteConvo',
10899
11059
  'lex:chat.bsky.convo.defs#logCreateMessage',
10900
11060
  'lex:chat.bsky.convo.defs#logDeleteMessage',
11061
+ 'lex:chat.bsky.convo.defs#logReadMessage',
11062
+ 'lex:chat.bsky.convo.defs#logAddReaction',
11063
+ 'lex:chat.bsky.convo.defs#logRemoveReaction',
10901
11064
  ],
10902
11065
  },
10903
11066
  },
@@ -11076,6 +11239,64 @@ export const schemaDict = {
11076
11239
  },
11077
11240
  },
11078
11241
  },
11242
+ ChatBskyConvoRemoveReaction: {
11243
+ lexicon: 1,
11244
+ id: 'chat.bsky.convo.removeReaction',
11245
+ defs: {
11246
+ main: {
11247
+ type: 'procedure',
11248
+ description:
11249
+ "Removes an emoji reaction from a message. Requires authentication. It is idempotent, so multiple calls from the same user with the same emoji result in that reaction not being present, even if it already wasn't.",
11250
+ input: {
11251
+ encoding: 'application/json',
11252
+ schema: {
11253
+ type: 'object',
11254
+ required: ['convoId', 'messageId', 'value'],
11255
+ properties: {
11256
+ convoId: {
11257
+ type: 'string',
11258
+ },
11259
+ messageId: {
11260
+ type: 'string',
11261
+ },
11262
+ value: {
11263
+ type: 'string',
11264
+ minLength: 1,
11265
+ maxLength: 32,
11266
+ minGraphemes: 1,
11267
+ maxGraphemes: 1,
11268
+ },
11269
+ },
11270
+ },
11271
+ },
11272
+ output: {
11273
+ encoding: 'application/json',
11274
+ schema: {
11275
+ type: 'object',
11276
+ required: ['message'],
11277
+ properties: {
11278
+ message: {
11279
+ type: 'ref',
11280
+ ref: 'lex:chat.bsky.convo.defs#messageView',
11281
+ },
11282
+ },
11283
+ },
11284
+ },
11285
+ errors: [
11286
+ {
11287
+ name: 'ReactionMessageDeleted',
11288
+ description:
11289
+ 'Indicates that the message has been deleted and reactions can no longer be added/removed.',
11290
+ },
11291
+ {
11292
+ name: 'ReactionInvalidValue',
11293
+ description:
11294
+ 'Indicates the value for the reaction is not acceptable. In general, this means it is not an emoji.',
11295
+ },
11296
+ ],
11297
+ },
11298
+ },
11299
+ },
11079
11300
  ChatBskyConvoSendMessage: {
11080
11301
  lexicon: 1,
11081
11302
  id: 'chat.bsky.convo.sendMessage',
@@ -11882,6 +12103,37 @@ export const schemaDict = {
11882
12103
  },
11883
12104
  },
11884
12105
  },
12106
+ subjectView: {
12107
+ description:
12108
+ "Detailed view of a subject. For record subjects, the author's repo and profile will be returned.",
12109
+ type: 'object',
12110
+ required: ['type', 'subject'],
12111
+ properties: {
12112
+ type: {
12113
+ type: 'ref',
12114
+ ref: 'lex:com.atproto.moderation.defs#subjectType',
12115
+ },
12116
+ subject: {
12117
+ type: 'string',
12118
+ },
12119
+ status: {
12120
+ type: 'ref',
12121
+ ref: 'lex:tools.ozone.moderation.defs#subjectStatusView',
12122
+ },
12123
+ repo: {
12124
+ type: 'ref',
12125
+ ref: 'lex:tools.ozone.moderation.defs#repoViewDetail',
12126
+ },
12127
+ profile: {
12128
+ type: 'union',
12129
+ refs: [],
12130
+ },
12131
+ record: {
12132
+ type: 'ref',
12133
+ ref: 'lex:tools.ozone.moderation.defs#recordViewDetail',
12134
+ },
12135
+ },
12136
+ },
11885
12137
  accountStats: {
11886
12138
  description: 'Statistics about a particular account subject',
11887
12139
  type: 'object',
@@ -13044,6 +13296,46 @@ export const schemaDict = {
13044
13296
  },
13045
13297
  },
13046
13298
  },
13299
+ ToolsOzoneModerationGetSubjects: {
13300
+ lexicon: 1,
13301
+ id: 'tools.ozone.moderation.getSubjects',
13302
+ defs: {
13303
+ main: {
13304
+ type: 'query',
13305
+ description: 'Get details about subjects.',
13306
+ parameters: {
13307
+ type: 'params',
13308
+ required: ['subjects'],
13309
+ properties: {
13310
+ subjects: {
13311
+ type: 'array',
13312
+ maxLength: 100,
13313
+ minLength: 1,
13314
+ items: {
13315
+ type: 'string',
13316
+ },
13317
+ },
13318
+ },
13319
+ },
13320
+ output: {
13321
+ encoding: 'application/json',
13322
+ schema: {
13323
+ type: 'object',
13324
+ required: ['subjects'],
13325
+ properties: {
13326
+ subjects: {
13327
+ type: 'array',
13328
+ items: {
13329
+ type: 'ref',
13330
+ ref: 'lex:tools.ozone.moderation.defs#subjectView',
13331
+ },
13332
+ },
13333
+ },
13334
+ },
13335
+ },
13336
+ },
13337
+ },
13338
+ },
13047
13339
  ToolsOzoneModerationQueryEvents: {
13048
13340
  lexicon: 1,
13049
13341
  id: 'tools.ozone.moderation.queryEvents',
@@ -14690,6 +14982,7 @@ export const ids = {
14690
14982
  ChatBskyActorDeleteAccount: 'chat.bsky.actor.deleteAccount',
14691
14983
  ChatBskyActorExportAccountData: 'chat.bsky.actor.exportAccountData',
14692
14984
  ChatBskyConvoAcceptConvo: 'chat.bsky.convo.acceptConvo',
14985
+ ChatBskyConvoAddReaction: 'chat.bsky.convo.addReaction',
14693
14986
  ChatBskyConvoDefs: 'chat.bsky.convo.defs',
14694
14987
  ChatBskyConvoDeleteMessageForSelf: 'chat.bsky.convo.deleteMessageForSelf',
14695
14988
  ChatBskyConvoGetConvo: 'chat.bsky.convo.getConvo',
@@ -14700,6 +14993,7 @@ export const ids = {
14700
14993
  ChatBskyConvoLeaveConvo: 'chat.bsky.convo.leaveConvo',
14701
14994
  ChatBskyConvoListConvos: 'chat.bsky.convo.listConvos',
14702
14995
  ChatBskyConvoMuteConvo: 'chat.bsky.convo.muteConvo',
14996
+ ChatBskyConvoRemoveReaction: 'chat.bsky.convo.removeReaction',
14703
14997
  ChatBskyConvoSendMessage: 'chat.bsky.convo.sendMessage',
14704
14998
  ChatBskyConvoSendMessageBatch: 'chat.bsky.convo.sendMessageBatch',
14705
14999
  ChatBskyConvoUnmuteConvo: 'chat.bsky.convo.unmuteConvo',
@@ -14726,6 +15020,7 @@ export const ids = {
14726
15020
  ToolsOzoneModerationGetReporterStats:
14727
15021
  'tools.ozone.moderation.getReporterStats',
14728
15022
  ToolsOzoneModerationGetRepos: 'tools.ozone.moderation.getRepos',
15023
+ ToolsOzoneModerationGetSubjects: 'tools.ozone.moderation.getSubjects',
14729
15024
  ToolsOzoneModerationQueryEvents: 'tools.ozone.moderation.queryEvents',
14730
15025
  ToolsOzoneModerationQueryStatuses: 'tools.ozone.moderation.queryStatuses',
14731
15026
  ToolsOzoneModerationSearchRepos: 'tools.ozone.moderation.searchRepos',
@@ -0,0 +1,73 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap, XRPCError } from '@atproto/xrpc'
5
+ import { type ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { CID } from 'multiformats/cid'
7
+ import { validate as _validate } from '../../../../lexicons'
8
+ import {
9
+ type $Typed,
10
+ is$typed as _is$typed,
11
+ type OmitKey,
12
+ } from '../../../../util'
13
+ import type * as ChatBskyConvoDefs from './defs.js'
14
+
15
+ const is$typed = _is$typed,
16
+ validate = _validate
17
+ const id = 'chat.bsky.convo.addReaction'
18
+
19
+ export interface QueryParams {}
20
+
21
+ export interface InputSchema {
22
+ convoId: string
23
+ messageId: string
24
+ value: string
25
+ }
26
+
27
+ export interface OutputSchema {
28
+ message: ChatBskyConvoDefs.MessageView
29
+ }
30
+
31
+ export interface CallOptions {
32
+ signal?: AbortSignal
33
+ headers?: HeadersMap
34
+ qp?: QueryParams
35
+ encoding?: 'application/json'
36
+ }
37
+
38
+ export interface Response {
39
+ success: boolean
40
+ headers: HeadersMap
41
+ data: OutputSchema
42
+ }
43
+
44
+ export class ReactionMessageDeletedError extends XRPCError {
45
+ constructor(src: XRPCError) {
46
+ super(src.status, src.error, src.message, src.headers, { cause: src })
47
+ }
48
+ }
49
+
50
+ export class ReactionLimitReachedError extends XRPCError {
51
+ constructor(src: XRPCError) {
52
+ super(src.status, src.error, src.message, src.headers, { cause: src })
53
+ }
54
+ }
55
+
56
+ export class ReactionInvalidValueError extends XRPCError {
57
+ constructor(src: XRPCError) {
58
+ super(src.status, src.error, src.message, src.headers, { cause: src })
59
+ }
60
+ }
61
+
62
+ export function toKnownErr(e: any) {
63
+ if (e instanceof XRPCError) {
64
+ if (e.error === 'ReactionMessageDeleted')
65
+ return new ReactionMessageDeletedError(e)
66
+ if (e.error === 'ReactionLimitReached')
67
+ return new ReactionLimitReachedError(e)
68
+ if (e.error === 'ReactionInvalidValue')
69
+ return new ReactionInvalidValueError(e)
70
+ }
71
+
72
+ return e
73
+ }
@@ -60,6 +60,7 @@ export interface MessageView {
60
60
  /** Annotations of text (mentions, URLs, hashtags, etc) */
61
61
  facets?: AppBskyRichtextFacet.Main[]
62
62
  embed?: $Typed<AppBskyEmbedRecord.View> | { $type: string }
63
+ reactions?: ReactionView[]
63
64
  sender: MessageViewSender
64
65
  sentAt: string
65
66
  }
@@ -107,6 +108,54 @@ export function validateMessageViewSender<V>(v: V) {
107
108
  return validate<MessageViewSender & V>(v, id, hashMessageViewSender)
108
109
  }
109
110
 
111
+ export interface ReactionView {
112
+ $type?: 'chat.bsky.convo.defs#reactionView'
113
+ value: string
114
+ sender: ReactionViewSender
115
+ createdAt: string
116
+ }
117
+
118
+ const hashReactionView = 'reactionView'
119
+
120
+ export function isReactionView<V>(v: V) {
121
+ return is$typed(v, id, hashReactionView)
122
+ }
123
+
124
+ export function validateReactionView<V>(v: V) {
125
+ return validate<ReactionView & V>(v, id, hashReactionView)
126
+ }
127
+
128
+ export interface ReactionViewSender {
129
+ $type?: 'chat.bsky.convo.defs#reactionViewSender'
130
+ did: string
131
+ }
132
+
133
+ const hashReactionViewSender = 'reactionViewSender'
134
+
135
+ export function isReactionViewSender<V>(v: V) {
136
+ return is$typed(v, id, hashReactionViewSender)
137
+ }
138
+
139
+ export function validateReactionViewSender<V>(v: V) {
140
+ return validate<ReactionViewSender & V>(v, id, hashReactionViewSender)
141
+ }
142
+
143
+ export interface MessageAndReactionView {
144
+ $type?: 'chat.bsky.convo.defs#messageAndReactionView'
145
+ message: MessageView
146
+ reaction: ReactionView
147
+ }
148
+
149
+ const hashMessageAndReactionView = 'messageAndReactionView'
150
+
151
+ export function isMessageAndReactionView<V>(v: V) {
152
+ return is$typed(v, id, hashMessageAndReactionView)
153
+ }
154
+
155
+ export function validateMessageAndReactionView<V>(v: V) {
156
+ return validate<MessageAndReactionView & V>(v, id, hashMessageAndReactionView)
157
+ }
158
+
110
159
  export interface ConvoView {
111
160
  $type?: 'chat.bsky.convo.defs#convoView'
112
161
  id: string
@@ -115,6 +164,7 @@ export interface ConvoView {
115
164
  lastMessage?:
116
165
  | $Typed<MessageView>
117
166
  | $Typed<DeletedMessageView>
167
+ | $Typed<MessageAndReactionView>
118
168
  | { $type: string }
119
169
  muted: boolean
120
170
  status?: 'request' | 'accepted' | (string & {})
@@ -261,3 +311,39 @@ export function isLogReadMessage<V>(v: V) {
261
311
  export function validateLogReadMessage<V>(v: V) {
262
312
  return validate<LogReadMessage & V>(v, id, hashLogReadMessage)
263
313
  }
314
+
315
+ export interface LogAddReaction {
316
+ $type?: 'chat.bsky.convo.defs#logAddReaction'
317
+ rev: string
318
+ convoId: string
319
+ message: $Typed<MessageView> | $Typed<DeletedMessageView> | { $type: string }
320
+ reaction: ReactionView
321
+ }
322
+
323
+ const hashLogAddReaction = 'logAddReaction'
324
+
325
+ export function isLogAddReaction<V>(v: V) {
326
+ return is$typed(v, id, hashLogAddReaction)
327
+ }
328
+
329
+ export function validateLogAddReaction<V>(v: V) {
330
+ return validate<LogAddReaction & V>(v, id, hashLogAddReaction)
331
+ }
332
+
333
+ export interface LogRemoveReaction {
334
+ $type?: 'chat.bsky.convo.defs#logRemoveReaction'
335
+ rev: string
336
+ convoId: string
337
+ message: $Typed<MessageView> | $Typed<DeletedMessageView> | { $type: string }
338
+ reaction: ReactionView
339
+ }
340
+
341
+ const hashLogRemoveReaction = 'logRemoveReaction'
342
+
343
+ export function isLogRemoveReaction<V>(v: V) {
344
+ return is$typed(v, id, hashLogRemoveReaction)
345
+ }
346
+
347
+ export function validateLogRemoveReaction<V>(v: V) {
348
+ return validate<LogRemoveReaction & V>(v, id, hashLogRemoveReaction)
349
+ }
@@ -28,8 +28,13 @@ export interface OutputSchema {
28
28
  | $Typed<ChatBskyConvoDefs.LogBeginConvo>
29
29
  | $Typed<ChatBskyConvoDefs.LogAcceptConvo>
30
30
  | $Typed<ChatBskyConvoDefs.LogLeaveConvo>
31
+ | $Typed<ChatBskyConvoDefs.LogMuteConvo>
32
+ | $Typed<ChatBskyConvoDefs.LogUnmuteConvo>
31
33
  | $Typed<ChatBskyConvoDefs.LogCreateMessage>
32
34
  | $Typed<ChatBskyConvoDefs.LogDeleteMessage>
35
+ | $Typed<ChatBskyConvoDefs.LogReadMessage>
36
+ | $Typed<ChatBskyConvoDefs.LogAddReaction>
37
+ | $Typed<ChatBskyConvoDefs.LogRemoveReaction>
33
38
  | { $type: string }
34
39
  )[]
35
40
  }