@atproto/pds 0.4.21 → 0.4.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/actor-store/blob/reader.d.ts +4 -0
  3. package/dist/actor-store/blob/reader.d.ts.map +1 -1
  4. package/dist/actor-store/blob/reader.js +9 -3
  5. package/dist/actor-store/blob/reader.js.map +1 -1
  6. package/dist/api/com/atproto/repo/putRecord.d.ts.map +1 -1
  7. package/dist/api/com/atproto/repo/putRecord.js +19 -1
  8. package/dist/api/com/atproto/repo/putRecord.js.map +1 -1
  9. package/dist/index.js +1 -1
  10. package/dist/lexicon/index.d.ts +59 -0
  11. package/dist/lexicon/index.d.ts.map +1 -1
  12. package/dist/lexicon/index.js +164 -1
  13. package/dist/lexicon/index.js.map +1 -1
  14. package/dist/lexicon/lexicons.d.ts +912 -0
  15. package/dist/lexicon/lexicons.d.ts.map +1 -1
  16. package/dist/lexicon/lexicons.js +938 -0
  17. package/dist/lexicon/lexicons.js.map +1 -1
  18. package/dist/lexicon/types/app/bsky/actor/defs.d.ts +7 -0
  19. package/dist/lexicon/types/app/bsky/actor/defs.d.ts.map +1 -1
  20. package/dist/lexicon/types/app/bsky/actor/defs.js +11 -1
  21. package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
  22. package/dist/lexicon/types/chat/bsky/actor/declaration.d.ts +11 -0
  23. package/dist/lexicon/types/chat/bsky/actor/declaration.d.ts.map +1 -0
  24. package/dist/lexicon/types/chat/bsky/actor/declaration.js +17 -0
  25. package/dist/lexicon/types/chat/bsky/actor/declaration.js.map +1 -0
  26. package/dist/lexicon/types/chat/bsky/actor/defs.d.ts +21 -0
  27. package/dist/lexicon/types/chat/bsky/actor/defs.d.ts.map +1 -0
  28. package/dist/lexicon/types/chat/bsky/actor/defs.js +16 -0
  29. package/dist/lexicon/types/chat/bsky/actor/defs.js.map +1 -0
  30. package/dist/lexicon/types/chat/bsky/actor/deleteAccount.d.ts +33 -0
  31. package/dist/lexicon/types/chat/bsky/actor/deleteAccount.d.ts.map +1 -0
  32. package/dist/lexicon/types/chat/bsky/actor/deleteAccount.js +3 -0
  33. package/dist/lexicon/types/chat/bsky/actor/deleteAccount.js.map +1 -0
  34. package/dist/lexicon/types/chat/bsky/actor/exportAccountData.d.ts +32 -0
  35. package/dist/lexicon/types/chat/bsky/actor/exportAccountData.d.ts.map +1 -0
  36. package/dist/lexicon/types/chat/bsky/actor/exportAccountData.js +3 -0
  37. package/dist/lexicon/types/chat/bsky/actor/exportAccountData.js.map +1 -0
  38. package/dist/lexicon/types/chat/bsky/convo/defs.d.ts +109 -0
  39. package/dist/lexicon/types/chat/bsky/convo/defs.d.ts.map +1 -0
  40. package/dist/lexicon/types/chat/bsky/convo/defs.js +106 -0
  41. package/dist/lexicon/types/chat/bsky/convo/defs.js.map +1 -0
  42. package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.d.ts +39 -0
  43. package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.d.ts.map +1 -0
  44. package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.js +3 -0
  45. package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.js.map +1 -0
  46. package/dist/lexicon/types/chat/bsky/convo/getConvo.d.ts +36 -0
  47. package/dist/lexicon/types/chat/bsky/convo/getConvo.d.ts.map +1 -0
  48. package/dist/lexicon/types/chat/bsky/convo/getConvo.js +3 -0
  49. package/dist/lexicon/types/chat/bsky/convo/getConvo.js.map +1 -0
  50. package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.d.ts +36 -0
  51. package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.d.ts.map +1 -0
  52. package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.js +3 -0
  53. package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.js.map +1 -0
  54. package/dist/lexicon/types/chat/bsky/convo/getLog.d.ts +40 -0
  55. package/dist/lexicon/types/chat/bsky/convo/getLog.d.ts.map +1 -0
  56. package/dist/lexicon/types/chat/bsky/convo/getLog.js +3 -0
  57. package/dist/lexicon/types/chat/bsky/convo/getLog.js.map +1 -0
  58. package/dist/lexicon/types/chat/bsky/convo/getMessages.d.ts +42 -0
  59. package/dist/lexicon/types/chat/bsky/convo/getMessages.d.ts.map +1 -0
  60. package/dist/lexicon/types/chat/bsky/convo/getMessages.js +3 -0
  61. package/dist/lexicon/types/chat/bsky/convo/getMessages.js.map +1 -0
  62. package/dist/lexicon/types/chat/bsky/convo/leaveConvo.d.ts +41 -0
  63. package/dist/lexicon/types/chat/bsky/convo/leaveConvo.d.ts.map +1 -0
  64. package/dist/lexicon/types/chat/bsky/convo/leaveConvo.js +3 -0
  65. package/dist/lexicon/types/chat/bsky/convo/leaveConvo.js.map +1 -0
  66. package/dist/lexicon/types/chat/bsky/convo/listConvos.d.ts +38 -0
  67. package/dist/lexicon/types/chat/bsky/convo/listConvos.d.ts.map +1 -0
  68. package/dist/lexicon/types/chat/bsky/convo/listConvos.js +3 -0
  69. package/dist/lexicon/types/chat/bsky/convo/listConvos.js.map +1 -0
  70. package/dist/lexicon/types/chat/bsky/convo/muteConvo.d.ts +41 -0
  71. package/dist/lexicon/types/chat/bsky/convo/muteConvo.d.ts.map +1 -0
  72. package/dist/lexicon/types/chat/bsky/convo/muteConvo.js +3 -0
  73. package/dist/lexicon/types/chat/bsky/convo/muteConvo.js.map +1 -0
  74. package/dist/lexicon/types/chat/bsky/convo/sendMessage.d.ts +39 -0
  75. package/dist/lexicon/types/chat/bsky/convo/sendMessage.d.ts.map +1 -0
  76. package/dist/lexicon/types/chat/bsky/convo/sendMessage.js +3 -0
  77. package/dist/lexicon/types/chat/bsky/convo/sendMessage.js.map +1 -0
  78. package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.d.ts +49 -0
  79. package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.d.ts.map +1 -0
  80. package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.js +16 -0
  81. package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.js.map +1 -0
  82. package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.d.ts +41 -0
  83. package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.d.ts.map +1 -0
  84. package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.js +3 -0
  85. package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.js.map +1 -0
  86. package/dist/lexicon/types/chat/bsky/convo/updateRead.d.ts +42 -0
  87. package/dist/lexicon/types/chat/bsky/convo/updateRead.d.ts.map +1 -0
  88. package/dist/lexicon/types/chat/bsky/convo/updateRead.js +3 -0
  89. package/dist/lexicon/types/chat/bsky/convo/updateRead.js.map +1 -0
  90. package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.d.ts +47 -0
  91. package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.d.ts.map +1 -0
  92. package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.js +16 -0
  93. package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.js.map +1 -0
  94. package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.d.ts +43 -0
  95. package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.d.ts.map +1 -0
  96. package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.js +3 -0
  97. package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.js.map +1 -0
  98. package/dist/lexicon/types/chat/bsky/moderation/updateActorAccess.d.ts +31 -0
  99. package/dist/lexicon/types/chat/bsky/moderation/updateActorAccess.d.ts.map +1 -0
  100. package/dist/lexicon/types/chat/bsky/moderation/updateActorAccess.js +3 -0
  101. package/dist/lexicon/types/chat/bsky/moderation/updateActorAccess.js.map +1 -0
  102. package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts +2 -1
  103. package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts.map +1 -1
  104. package/dist/lexicon/types/tools/ozone/moderation/defs.js.map +1 -1
  105. package/package.json +9 -9
  106. package/src/actor-store/blob/reader.ts +13 -4
  107. package/src/api/com/atproto/repo/putRecord.ts +34 -1
  108. package/src/index.ts +1 -1
  109. package/src/lexicon/index.ts +254 -0
  110. package/src/lexicon/lexicons.ts +940 -0
  111. package/src/lexicon/types/app/bsky/actor/defs.ts +20 -0
  112. package/src/lexicon/types/chat/bsky/actor/declaration.ts +25 -0
  113. package/src/lexicon/types/chat/bsky/actor/defs.ts +34 -0
  114. package/src/lexicon/types/chat/bsky/actor/deleteAccount.ts +42 -0
  115. package/src/lexicon/types/chat/bsky/actor/exportAccountData.ts +38 -0
  116. package/src/lexicon/types/chat/bsky/convo/defs.ts +215 -0
  117. package/src/lexicon/types/chat/bsky/convo/deleteMessageForSelf.ts +48 -0
  118. package/src/lexicon/types/chat/bsky/convo/getConvo.ts +46 -0
  119. package/src/lexicon/types/chat/bsky/convo/getConvoForMembers.ts +46 -0
  120. package/src/lexicon/types/chat/bsky/convo/getLog.ts +53 -0
  121. package/src/lexicon/types/chat/bsky/convo/getMessages.ts +53 -0
  122. package/src/lexicon/types/chat/bsky/convo/leaveConvo.ts +50 -0
  123. package/src/lexicon/types/chat/bsky/convo/listConvos.ts +48 -0
  124. package/src/lexicon/types/chat/bsky/convo/muteConvo.ts +50 -0
  125. package/src/lexicon/types/chat/bsky/convo/sendMessage.ts +48 -0
  126. package/src/lexicon/types/chat/bsky/convo/sendMessageBatch.ts +68 -0
  127. package/src/lexicon/types/chat/bsky/convo/unmuteConvo.ts +50 -0
  128. package/src/lexicon/types/chat/bsky/convo/updateRead.ts +51 -0
  129. package/src/lexicon/types/chat/bsky/moderation/getActorMetadata.ts +67 -0
  130. package/src/lexicon/types/chat/bsky/moderation/getMessageContext.ts +54 -0
  131. package/src/lexicon/types/chat/bsky/moderation/updateActorAccess.ts +40 -0
  132. package/src/lexicon/types/tools/ozone/moderation/defs.ts +2 -0
  133. package/tests/crud.test.ts +30 -0
  134. package/tests/server.test.ts +1 -1
@@ -3779,6 +3779,20 @@ export const schemaDict = {
3779
3779
  labeler: {
3780
3780
  type: 'boolean',
3781
3781
  },
3782
+ chat: {
3783
+ type: 'ref',
3784
+ ref: 'lex:app.bsky.actor.defs#profileAssociatedChat',
3785
+ },
3786
+ },
3787
+ },
3788
+ profileAssociatedChat: {
3789
+ type: 'object',
3790
+ required: ['allowIncoming'],
3791
+ properties: {
3792
+ allowIncoming: {
3793
+ type: 'string',
3794
+ knownValues: ['all', 'none', 'following'],
3795
+ },
3782
3796
  },
3783
3797
  },
3784
3798
  viewerState: {
@@ -8188,6 +8202,911 @@ export const schemaDict = {
8188
8202
  },
8189
8203
  },
8190
8204
  },
8205
+ ChatBskyActorDeclaration: {
8206
+ lexicon: 1,
8207
+ id: 'chat.bsky.actor.declaration',
8208
+ defs: {
8209
+ main: {
8210
+ type: 'record',
8211
+ description: 'A declaration of a Bluesky chat account.',
8212
+ key: 'literal:self',
8213
+ record: {
8214
+ type: 'object',
8215
+ required: ['allowIncoming'],
8216
+ properties: {
8217
+ allowIncoming: {
8218
+ type: 'string',
8219
+ knownValues: ['all', 'none', 'following'],
8220
+ },
8221
+ },
8222
+ },
8223
+ },
8224
+ },
8225
+ },
8226
+ ChatBskyActorDefs: {
8227
+ lexicon: 1,
8228
+ id: 'chat.bsky.actor.defs',
8229
+ defs: {
8230
+ profileViewBasic: {
8231
+ type: 'object',
8232
+ required: ['did', 'handle'],
8233
+ properties: {
8234
+ did: {
8235
+ type: 'string',
8236
+ format: 'did',
8237
+ },
8238
+ handle: {
8239
+ type: 'string',
8240
+ format: 'handle',
8241
+ },
8242
+ displayName: {
8243
+ type: 'string',
8244
+ maxGraphemes: 64,
8245
+ maxLength: 640,
8246
+ },
8247
+ avatar: {
8248
+ type: 'string',
8249
+ format: 'uri',
8250
+ },
8251
+ associated: {
8252
+ type: 'ref',
8253
+ ref: 'lex:app.bsky.actor.defs#profileAssociated',
8254
+ },
8255
+ viewer: {
8256
+ type: 'ref',
8257
+ ref: 'lex:app.bsky.actor.defs#viewerState',
8258
+ },
8259
+ labels: {
8260
+ type: 'array',
8261
+ items: {
8262
+ type: 'ref',
8263
+ ref: 'lex:com.atproto.label.defs#label',
8264
+ },
8265
+ },
8266
+ chatDisabled: {
8267
+ type: 'boolean',
8268
+ description:
8269
+ 'Set to true when the actor cannot actively participate in converations',
8270
+ },
8271
+ },
8272
+ },
8273
+ },
8274
+ },
8275
+ ChatBskyActorDeleteAccount: {
8276
+ lexicon: 1,
8277
+ id: 'chat.bsky.actor.deleteAccount',
8278
+ defs: {
8279
+ main: {
8280
+ type: 'procedure',
8281
+ output: {
8282
+ encoding: 'application/json',
8283
+ schema: {
8284
+ type: 'object',
8285
+ properties: {},
8286
+ },
8287
+ },
8288
+ },
8289
+ },
8290
+ },
8291
+ ChatBskyActorExportAccountData: {
8292
+ lexicon: 1,
8293
+ id: 'chat.bsky.actor.exportAccountData',
8294
+ defs: {
8295
+ main: {
8296
+ type: 'query',
8297
+ output: {
8298
+ encoding: 'application/jsonl',
8299
+ },
8300
+ },
8301
+ },
8302
+ },
8303
+ ChatBskyConvoDefs: {
8304
+ lexicon: 1,
8305
+ id: 'chat.bsky.convo.defs',
8306
+ defs: {
8307
+ messageRef: {
8308
+ type: 'object',
8309
+ required: ['did', 'messageId', 'convoId'],
8310
+ properties: {
8311
+ did: {
8312
+ type: 'string',
8313
+ format: 'did',
8314
+ },
8315
+ convoId: {
8316
+ type: 'string',
8317
+ },
8318
+ messageId: {
8319
+ type: 'string',
8320
+ },
8321
+ },
8322
+ },
8323
+ messageInput: {
8324
+ type: 'object',
8325
+ required: ['text'],
8326
+ properties: {
8327
+ text: {
8328
+ type: 'string',
8329
+ maxLength: 10000,
8330
+ maxGraphemes: 1000,
8331
+ },
8332
+ facets: {
8333
+ type: 'array',
8334
+ description: 'Annotations of text (mentions, URLs, hashtags, etc)',
8335
+ items: {
8336
+ type: 'ref',
8337
+ ref: 'lex:app.bsky.richtext.facet',
8338
+ },
8339
+ },
8340
+ embed: {
8341
+ type: 'union',
8342
+ refs: ['lex:app.bsky.embed.record'],
8343
+ },
8344
+ },
8345
+ },
8346
+ messageView: {
8347
+ type: 'object',
8348
+ required: ['id', 'rev', 'text', 'sender', 'sentAt'],
8349
+ properties: {
8350
+ id: {
8351
+ type: 'string',
8352
+ },
8353
+ rev: {
8354
+ type: 'string',
8355
+ },
8356
+ text: {
8357
+ type: 'string',
8358
+ maxLength: 10000,
8359
+ maxGraphemes: 1000,
8360
+ },
8361
+ facets: {
8362
+ type: 'array',
8363
+ description: 'Annotations of text (mentions, URLs, hashtags, etc)',
8364
+ items: {
8365
+ type: 'ref',
8366
+ ref: 'lex:app.bsky.richtext.facet',
8367
+ },
8368
+ },
8369
+ embed: {
8370
+ type: 'union',
8371
+ refs: ['lex:app.bsky.embed.record'],
8372
+ },
8373
+ sender: {
8374
+ type: 'ref',
8375
+ ref: 'lex:chat.bsky.convo.defs#messageViewSender',
8376
+ },
8377
+ sentAt: {
8378
+ type: 'string',
8379
+ format: 'datetime',
8380
+ },
8381
+ },
8382
+ },
8383
+ deletedMessageView: {
8384
+ type: 'object',
8385
+ required: ['id', 'rev', 'sender', 'sentAt'],
8386
+ properties: {
8387
+ id: {
8388
+ type: 'string',
8389
+ },
8390
+ rev: {
8391
+ type: 'string',
8392
+ },
8393
+ sender: {
8394
+ type: 'ref',
8395
+ ref: 'lex:chat.bsky.convo.defs#messageViewSender',
8396
+ },
8397
+ sentAt: {
8398
+ type: 'string',
8399
+ format: 'datetime',
8400
+ },
8401
+ },
8402
+ },
8403
+ messageViewSender: {
8404
+ type: 'object',
8405
+ required: ['did'],
8406
+ properties: {
8407
+ did: {
8408
+ type: 'string',
8409
+ format: 'did',
8410
+ },
8411
+ },
8412
+ },
8413
+ convoView: {
8414
+ type: 'object',
8415
+ required: ['id', 'rev', 'members', 'muted', 'unreadCount'],
8416
+ properties: {
8417
+ id: {
8418
+ type: 'string',
8419
+ },
8420
+ rev: {
8421
+ type: 'string',
8422
+ },
8423
+ members: {
8424
+ type: 'array',
8425
+ items: {
8426
+ type: 'ref',
8427
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
8428
+ },
8429
+ },
8430
+ lastMessage: {
8431
+ type: 'union',
8432
+ refs: [
8433
+ 'lex:chat.bsky.convo.defs#messageView',
8434
+ 'lex:chat.bsky.convo.defs#deletedMessageView',
8435
+ ],
8436
+ },
8437
+ muted: {
8438
+ type: 'boolean',
8439
+ },
8440
+ unreadCount: {
8441
+ type: 'integer',
8442
+ },
8443
+ },
8444
+ },
8445
+ logBeginConvo: {
8446
+ type: 'object',
8447
+ required: ['rev', 'convoId'],
8448
+ properties: {
8449
+ rev: {
8450
+ type: 'string',
8451
+ },
8452
+ convoId: {
8453
+ type: 'string',
8454
+ },
8455
+ },
8456
+ },
8457
+ logLeaveConvo: {
8458
+ type: 'object',
8459
+ required: ['rev', 'convoId'],
8460
+ properties: {
8461
+ rev: {
8462
+ type: 'string',
8463
+ },
8464
+ convoId: {
8465
+ type: 'string',
8466
+ },
8467
+ },
8468
+ },
8469
+ logCreateMessage: {
8470
+ type: 'object',
8471
+ required: ['rev', 'convoId', 'message'],
8472
+ properties: {
8473
+ rev: {
8474
+ type: 'string',
8475
+ },
8476
+ convoId: {
8477
+ type: 'string',
8478
+ },
8479
+ message: {
8480
+ type: 'union',
8481
+ refs: [
8482
+ 'lex:chat.bsky.convo.defs#messageView',
8483
+ 'lex:chat.bsky.convo.defs#deletedMessageView',
8484
+ ],
8485
+ },
8486
+ },
8487
+ },
8488
+ logDeleteMessage: {
8489
+ type: 'object',
8490
+ required: ['rev', 'convoId', 'message'],
8491
+ properties: {
8492
+ rev: {
8493
+ type: 'string',
8494
+ },
8495
+ convoId: {
8496
+ type: 'string',
8497
+ },
8498
+ message: {
8499
+ type: 'union',
8500
+ refs: [
8501
+ 'lex:chat.bsky.convo.defs#messageView',
8502
+ 'lex:chat.bsky.convo.defs#deletedMessageView',
8503
+ ],
8504
+ },
8505
+ },
8506
+ },
8507
+ },
8508
+ },
8509
+ ChatBskyConvoDeleteMessageForSelf: {
8510
+ lexicon: 1,
8511
+ id: 'chat.bsky.convo.deleteMessageForSelf',
8512
+ defs: {
8513
+ main: {
8514
+ type: 'procedure',
8515
+ input: {
8516
+ encoding: 'application/json',
8517
+ schema: {
8518
+ type: 'object',
8519
+ required: ['convoId', 'messageId'],
8520
+ properties: {
8521
+ convoId: {
8522
+ type: 'string',
8523
+ },
8524
+ messageId: {
8525
+ type: 'string',
8526
+ },
8527
+ },
8528
+ },
8529
+ },
8530
+ output: {
8531
+ encoding: 'application/json',
8532
+ schema: {
8533
+ type: 'ref',
8534
+ ref: 'lex:chat.bsky.convo.defs#deletedMessageView',
8535
+ },
8536
+ },
8537
+ },
8538
+ },
8539
+ },
8540
+ ChatBskyConvoGetConvo: {
8541
+ lexicon: 1,
8542
+ id: 'chat.bsky.convo.getConvo',
8543
+ defs: {
8544
+ main: {
8545
+ type: 'query',
8546
+ parameters: {
8547
+ type: 'params',
8548
+ required: ['convoId'],
8549
+ properties: {
8550
+ convoId: {
8551
+ type: 'string',
8552
+ },
8553
+ },
8554
+ },
8555
+ output: {
8556
+ encoding: 'application/json',
8557
+ schema: {
8558
+ type: 'object',
8559
+ required: ['convo'],
8560
+ properties: {
8561
+ convo: {
8562
+ type: 'ref',
8563
+ ref: 'lex:chat.bsky.convo.defs#convoView',
8564
+ },
8565
+ },
8566
+ },
8567
+ },
8568
+ },
8569
+ },
8570
+ },
8571
+ ChatBskyConvoGetConvoForMembers: {
8572
+ lexicon: 1,
8573
+ id: 'chat.bsky.convo.getConvoForMembers',
8574
+ defs: {
8575
+ main: {
8576
+ type: 'query',
8577
+ parameters: {
8578
+ type: 'params',
8579
+ required: ['members'],
8580
+ properties: {
8581
+ members: {
8582
+ type: 'array',
8583
+ minLength: 1,
8584
+ maxLength: 10,
8585
+ items: {
8586
+ type: 'string',
8587
+ format: 'did',
8588
+ },
8589
+ },
8590
+ },
8591
+ },
8592
+ output: {
8593
+ encoding: 'application/json',
8594
+ schema: {
8595
+ type: 'object',
8596
+ required: ['convo'],
8597
+ properties: {
8598
+ convo: {
8599
+ type: 'ref',
8600
+ ref: 'lex:chat.bsky.convo.defs#convoView',
8601
+ },
8602
+ },
8603
+ },
8604
+ },
8605
+ },
8606
+ },
8607
+ },
8608
+ ChatBskyConvoGetLog: {
8609
+ lexicon: 1,
8610
+ id: 'chat.bsky.convo.getLog',
8611
+ defs: {
8612
+ main: {
8613
+ type: 'query',
8614
+ parameters: {
8615
+ type: 'params',
8616
+ required: [],
8617
+ properties: {
8618
+ cursor: {
8619
+ type: 'string',
8620
+ },
8621
+ },
8622
+ },
8623
+ output: {
8624
+ encoding: 'application/json',
8625
+ schema: {
8626
+ type: 'object',
8627
+ required: ['logs'],
8628
+ properties: {
8629
+ cursor: {
8630
+ type: 'string',
8631
+ },
8632
+ logs: {
8633
+ type: 'array',
8634
+ items: {
8635
+ type: 'union',
8636
+ refs: [
8637
+ 'lex:chat.bsky.convo.defs#logBeginConvo',
8638
+ 'lex:chat.bsky.convo.defs#logLeaveConvo',
8639
+ 'lex:chat.bsky.convo.defs#logCreateMessage',
8640
+ 'lex:chat.bsky.convo.defs#logDeleteMessage',
8641
+ ],
8642
+ },
8643
+ },
8644
+ },
8645
+ },
8646
+ },
8647
+ },
8648
+ },
8649
+ },
8650
+ ChatBskyConvoGetMessages: {
8651
+ lexicon: 1,
8652
+ id: 'chat.bsky.convo.getMessages',
8653
+ defs: {
8654
+ main: {
8655
+ type: 'query',
8656
+ parameters: {
8657
+ type: 'params',
8658
+ required: ['convoId'],
8659
+ properties: {
8660
+ convoId: {
8661
+ type: 'string',
8662
+ },
8663
+ limit: {
8664
+ type: 'integer',
8665
+ minimum: 1,
8666
+ maximum: 100,
8667
+ default: 50,
8668
+ },
8669
+ cursor: {
8670
+ type: 'string',
8671
+ },
8672
+ },
8673
+ },
8674
+ output: {
8675
+ encoding: 'application/json',
8676
+ schema: {
8677
+ type: 'object',
8678
+ required: ['messages'],
8679
+ properties: {
8680
+ cursor: {
8681
+ type: 'string',
8682
+ },
8683
+ messages: {
8684
+ type: 'array',
8685
+ items: {
8686
+ type: 'union',
8687
+ refs: [
8688
+ 'lex:chat.bsky.convo.defs#messageView',
8689
+ 'lex:chat.bsky.convo.defs#deletedMessageView',
8690
+ ],
8691
+ },
8692
+ },
8693
+ },
8694
+ },
8695
+ },
8696
+ },
8697
+ },
8698
+ },
8699
+ ChatBskyConvoLeaveConvo: {
8700
+ lexicon: 1,
8701
+ id: 'chat.bsky.convo.leaveConvo',
8702
+ defs: {
8703
+ main: {
8704
+ type: 'procedure',
8705
+ input: {
8706
+ encoding: 'application/json',
8707
+ schema: {
8708
+ type: 'object',
8709
+ required: ['convoId'],
8710
+ properties: {
8711
+ convoId: {
8712
+ type: 'string',
8713
+ },
8714
+ },
8715
+ },
8716
+ },
8717
+ output: {
8718
+ encoding: 'application/json',
8719
+ schema: {
8720
+ type: 'object',
8721
+ required: ['convoId', 'rev'],
8722
+ properties: {
8723
+ convoId: {
8724
+ type: 'string',
8725
+ },
8726
+ rev: {
8727
+ type: 'string',
8728
+ },
8729
+ },
8730
+ },
8731
+ },
8732
+ },
8733
+ },
8734
+ },
8735
+ ChatBskyConvoListConvos: {
8736
+ lexicon: 1,
8737
+ id: 'chat.bsky.convo.listConvos',
8738
+ defs: {
8739
+ main: {
8740
+ type: 'query',
8741
+ parameters: {
8742
+ type: 'params',
8743
+ properties: {
8744
+ limit: {
8745
+ type: 'integer',
8746
+ minimum: 1,
8747
+ maximum: 100,
8748
+ default: 50,
8749
+ },
8750
+ cursor: {
8751
+ type: 'string',
8752
+ },
8753
+ },
8754
+ },
8755
+ output: {
8756
+ encoding: 'application/json',
8757
+ schema: {
8758
+ type: 'object',
8759
+ required: ['convos'],
8760
+ properties: {
8761
+ cursor: {
8762
+ type: 'string',
8763
+ },
8764
+ convos: {
8765
+ type: 'array',
8766
+ items: {
8767
+ type: 'ref',
8768
+ ref: 'lex:chat.bsky.convo.defs#convoView',
8769
+ },
8770
+ },
8771
+ },
8772
+ },
8773
+ },
8774
+ },
8775
+ },
8776
+ },
8777
+ ChatBskyConvoMuteConvo: {
8778
+ lexicon: 1,
8779
+ id: 'chat.bsky.convo.muteConvo',
8780
+ defs: {
8781
+ main: {
8782
+ type: 'procedure',
8783
+ input: {
8784
+ encoding: 'application/json',
8785
+ schema: {
8786
+ type: 'object',
8787
+ required: ['convoId'],
8788
+ properties: {
8789
+ convoId: {
8790
+ type: 'string',
8791
+ },
8792
+ },
8793
+ },
8794
+ },
8795
+ output: {
8796
+ encoding: 'application/json',
8797
+ schema: {
8798
+ type: 'object',
8799
+ required: ['convo'],
8800
+ properties: {
8801
+ convo: {
8802
+ type: 'ref',
8803
+ ref: 'lex:chat.bsky.convo.defs#convoView',
8804
+ },
8805
+ },
8806
+ },
8807
+ },
8808
+ },
8809
+ },
8810
+ },
8811
+ ChatBskyConvoSendMessage: {
8812
+ lexicon: 1,
8813
+ id: 'chat.bsky.convo.sendMessage',
8814
+ defs: {
8815
+ main: {
8816
+ type: 'procedure',
8817
+ input: {
8818
+ encoding: 'application/json',
8819
+ schema: {
8820
+ type: 'object',
8821
+ required: ['convoId', 'message'],
8822
+ properties: {
8823
+ convoId: {
8824
+ type: 'string',
8825
+ },
8826
+ message: {
8827
+ type: 'ref',
8828
+ ref: 'lex:chat.bsky.convo.defs#messageInput',
8829
+ },
8830
+ },
8831
+ },
8832
+ },
8833
+ output: {
8834
+ encoding: 'application/json',
8835
+ schema: {
8836
+ type: 'ref',
8837
+ ref: 'lex:chat.bsky.convo.defs#messageView',
8838
+ },
8839
+ },
8840
+ },
8841
+ },
8842
+ },
8843
+ ChatBskyConvoSendMessageBatch: {
8844
+ lexicon: 1,
8845
+ id: 'chat.bsky.convo.sendMessageBatch',
8846
+ defs: {
8847
+ main: {
8848
+ type: 'procedure',
8849
+ input: {
8850
+ encoding: 'application/json',
8851
+ schema: {
8852
+ type: 'object',
8853
+ required: ['items'],
8854
+ properties: {
8855
+ items: {
8856
+ type: 'array',
8857
+ maxLength: 100,
8858
+ items: {
8859
+ type: 'ref',
8860
+ ref: 'lex:chat.bsky.convo.sendMessageBatch#batchItem',
8861
+ },
8862
+ },
8863
+ },
8864
+ },
8865
+ },
8866
+ output: {
8867
+ encoding: 'application/json',
8868
+ schema: {
8869
+ type: 'object',
8870
+ required: ['items'],
8871
+ properties: {
8872
+ items: {
8873
+ type: 'array',
8874
+ items: {
8875
+ type: 'ref',
8876
+ ref: 'lex:chat.bsky.convo.defs#messageView',
8877
+ },
8878
+ },
8879
+ },
8880
+ },
8881
+ },
8882
+ },
8883
+ batchItem: {
8884
+ type: 'object',
8885
+ required: ['convoId', 'message'],
8886
+ properties: {
8887
+ convoId: {
8888
+ type: 'string',
8889
+ },
8890
+ message: {
8891
+ type: 'ref',
8892
+ ref: 'lex:chat.bsky.convo.defs#messageInput',
8893
+ },
8894
+ },
8895
+ },
8896
+ },
8897
+ },
8898
+ ChatBskyConvoUnmuteConvo: {
8899
+ lexicon: 1,
8900
+ id: 'chat.bsky.convo.unmuteConvo',
8901
+ defs: {
8902
+ main: {
8903
+ type: 'procedure',
8904
+ input: {
8905
+ encoding: 'application/json',
8906
+ schema: {
8907
+ type: 'object',
8908
+ required: ['convoId'],
8909
+ properties: {
8910
+ convoId: {
8911
+ type: 'string',
8912
+ },
8913
+ },
8914
+ },
8915
+ },
8916
+ output: {
8917
+ encoding: 'application/json',
8918
+ schema: {
8919
+ type: 'object',
8920
+ required: ['convo'],
8921
+ properties: {
8922
+ convo: {
8923
+ type: 'ref',
8924
+ ref: 'lex:chat.bsky.convo.defs#convoView',
8925
+ },
8926
+ },
8927
+ },
8928
+ },
8929
+ },
8930
+ },
8931
+ },
8932
+ ChatBskyConvoUpdateRead: {
8933
+ lexicon: 1,
8934
+ id: 'chat.bsky.convo.updateRead',
8935
+ defs: {
8936
+ main: {
8937
+ type: 'procedure',
8938
+ input: {
8939
+ encoding: 'application/json',
8940
+ schema: {
8941
+ type: 'object',
8942
+ required: ['convoId'],
8943
+ properties: {
8944
+ convoId: {
8945
+ type: 'string',
8946
+ },
8947
+ messageId: {
8948
+ type: 'string',
8949
+ },
8950
+ },
8951
+ },
8952
+ },
8953
+ output: {
8954
+ encoding: 'application/json',
8955
+ schema: {
8956
+ type: 'object',
8957
+ required: ['convo'],
8958
+ properties: {
8959
+ convo: {
8960
+ type: 'ref',
8961
+ ref: 'lex:chat.bsky.convo.defs#convoView',
8962
+ },
8963
+ },
8964
+ },
8965
+ },
8966
+ },
8967
+ },
8968
+ },
8969
+ ChatBskyModerationGetActorMetadata: {
8970
+ lexicon: 1,
8971
+ id: 'chat.bsky.moderation.getActorMetadata',
8972
+ defs: {
8973
+ main: {
8974
+ type: 'query',
8975
+ parameters: {
8976
+ type: 'params',
8977
+ required: ['actor'],
8978
+ properties: {
8979
+ actor: {
8980
+ type: 'string',
8981
+ format: 'did',
8982
+ },
8983
+ },
8984
+ },
8985
+ output: {
8986
+ encoding: 'application/json',
8987
+ schema: {
8988
+ type: 'object',
8989
+ required: ['day', 'month', 'all'],
8990
+ properties: {
8991
+ day: {
8992
+ type: 'ref',
8993
+ ref: 'lex:chat.bsky.moderation.getActorMetadata#metadata',
8994
+ },
8995
+ month: {
8996
+ type: 'ref',
8997
+ ref: 'lex:chat.bsky.moderation.getActorMetadata#metadata',
8998
+ },
8999
+ all: {
9000
+ type: 'ref',
9001
+ ref: 'lex:chat.bsky.moderation.getActorMetadata#metadata',
9002
+ },
9003
+ },
9004
+ },
9005
+ },
9006
+ },
9007
+ metadata: {
9008
+ type: 'object',
9009
+ required: [
9010
+ 'messagesSent',
9011
+ 'messagesReceived',
9012
+ 'convos',
9013
+ 'convosStarted',
9014
+ ],
9015
+ properties: {
9016
+ messagesSent: {
9017
+ type: 'integer',
9018
+ },
9019
+ messagesReceived: {
9020
+ type: 'integer',
9021
+ },
9022
+ convos: {
9023
+ type: 'integer',
9024
+ },
9025
+ convosStarted: {
9026
+ type: 'integer',
9027
+ },
9028
+ },
9029
+ },
9030
+ },
9031
+ },
9032
+ ChatBskyModerationGetMessageContext: {
9033
+ lexicon: 1,
9034
+ id: 'chat.bsky.moderation.getMessageContext',
9035
+ defs: {
9036
+ main: {
9037
+ type: 'query',
9038
+ parameters: {
9039
+ type: 'params',
9040
+ required: ['messageId'],
9041
+ properties: {
9042
+ convoId: {
9043
+ type: 'string',
9044
+ description:
9045
+ 'Conversation that the message is from. NOTE: this field will eventually be required.',
9046
+ },
9047
+ messageId: {
9048
+ type: 'string',
9049
+ },
9050
+ before: {
9051
+ type: 'integer',
9052
+ default: 5,
9053
+ },
9054
+ after: {
9055
+ type: 'integer',
9056
+ default: 5,
9057
+ },
9058
+ },
9059
+ },
9060
+ output: {
9061
+ encoding: 'application/json',
9062
+ schema: {
9063
+ type: 'object',
9064
+ required: ['messages'],
9065
+ properties: {
9066
+ messages: {
9067
+ type: 'array',
9068
+ items: {
9069
+ type: 'union',
9070
+ refs: [
9071
+ 'lex:chat.bsky.convo.defs#messageView',
9072
+ 'lex:chat.bsky.convo.defs#deletedMessageView',
9073
+ ],
9074
+ },
9075
+ },
9076
+ },
9077
+ },
9078
+ },
9079
+ },
9080
+ },
9081
+ },
9082
+ ChatBskyModerationUpdateActorAccess: {
9083
+ lexicon: 1,
9084
+ id: 'chat.bsky.moderation.updateActorAccess',
9085
+ defs: {
9086
+ main: {
9087
+ type: 'procedure',
9088
+ input: {
9089
+ encoding: 'application/json',
9090
+ schema: {
9091
+ type: 'object',
9092
+ required: ['actor', 'allowAccess'],
9093
+ properties: {
9094
+ actor: {
9095
+ type: 'string',
9096
+ format: 'did',
9097
+ },
9098
+ allowAccess: {
9099
+ type: 'boolean',
9100
+ },
9101
+ ref: {
9102
+ type: 'string',
9103
+ },
9104
+ },
9105
+ },
9106
+ },
9107
+ },
9108
+ },
9109
+ },
8191
9110
  ToolsOzoneCommunicationCreateTemplate: {
8192
9111
  lexicon: 1,
8193
9112
  id: 'tools.ozone.communication.createTemplate',
@@ -8427,6 +9346,7 @@ export const schemaDict = {
8427
9346
  refs: [
8428
9347
  'lex:com.atproto.admin.defs#repoRef',
8429
9348
  'lex:com.atproto.repo.strongRef',
9349
+ 'lex:chat.bsky.convo.defs#messageRef',
8430
9350
  ],
8431
9351
  },
8432
9352
  subjectBlobCids: {
@@ -9778,6 +10698,26 @@ export const ids = {
9778
10698
  AppBskyUnspeccedSearchActorsSkeleton:
9779
10699
  'app.bsky.unspecced.searchActorsSkeleton',
9780
10700
  AppBskyUnspeccedSearchPostsSkeleton: 'app.bsky.unspecced.searchPostsSkeleton',
10701
+ ChatBskyActorDeclaration: 'chat.bsky.actor.declaration',
10702
+ ChatBskyActorDefs: 'chat.bsky.actor.defs',
10703
+ ChatBskyActorDeleteAccount: 'chat.bsky.actor.deleteAccount',
10704
+ ChatBskyActorExportAccountData: 'chat.bsky.actor.exportAccountData',
10705
+ ChatBskyConvoDefs: 'chat.bsky.convo.defs',
10706
+ ChatBskyConvoDeleteMessageForSelf: 'chat.bsky.convo.deleteMessageForSelf',
10707
+ ChatBskyConvoGetConvo: 'chat.bsky.convo.getConvo',
10708
+ ChatBskyConvoGetConvoForMembers: 'chat.bsky.convo.getConvoForMembers',
10709
+ ChatBskyConvoGetLog: 'chat.bsky.convo.getLog',
10710
+ ChatBskyConvoGetMessages: 'chat.bsky.convo.getMessages',
10711
+ ChatBskyConvoLeaveConvo: 'chat.bsky.convo.leaveConvo',
10712
+ ChatBskyConvoListConvos: 'chat.bsky.convo.listConvos',
10713
+ ChatBskyConvoMuteConvo: 'chat.bsky.convo.muteConvo',
10714
+ ChatBskyConvoSendMessage: 'chat.bsky.convo.sendMessage',
10715
+ ChatBskyConvoSendMessageBatch: 'chat.bsky.convo.sendMessageBatch',
10716
+ ChatBskyConvoUnmuteConvo: 'chat.bsky.convo.unmuteConvo',
10717
+ ChatBskyConvoUpdateRead: 'chat.bsky.convo.updateRead',
10718
+ ChatBskyModerationGetActorMetadata: 'chat.bsky.moderation.getActorMetadata',
10719
+ ChatBskyModerationGetMessageContext: 'chat.bsky.moderation.getMessageContext',
10720
+ ChatBskyModerationUpdateActorAccess: 'chat.bsky.moderation.updateActorAccess',
9781
10721
  ToolsOzoneCommunicationCreateTemplate:
9782
10722
  'tools.ozone.communication.createTemplate',
9783
10723
  ToolsOzoneCommunicationDefs: 'tools.ozone.communication.defs',