@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
@@ -3654,6 +3654,20 @@ exports.schemaDict = {
3654
3654
  labeler: {
3655
3655
  type: 'boolean',
3656
3656
  },
3657
+ chat: {
3658
+ type: 'ref',
3659
+ ref: 'lex:app.bsky.actor.defs#profileAssociatedChat',
3660
+ },
3661
+ },
3662
+ },
3663
+ profileAssociatedChat: {
3664
+ type: 'object',
3665
+ required: ['allowIncoming'],
3666
+ properties: {
3667
+ allowIncoming: {
3668
+ type: 'string',
3669
+ knownValues: ['all', 'none', 'following'],
3670
+ },
3657
3671
  },
3658
3672
  },
3659
3673
  viewerState: {
@@ -7929,6 +7943,909 @@ exports.schemaDict = {
7929
7943
  },
7930
7944
  },
7931
7945
  },
7946
+ ChatBskyActorDeclaration: {
7947
+ lexicon: 1,
7948
+ id: 'chat.bsky.actor.declaration',
7949
+ defs: {
7950
+ main: {
7951
+ type: 'record',
7952
+ description: 'A declaration of a Bluesky chat account.',
7953
+ key: 'literal:self',
7954
+ record: {
7955
+ type: 'object',
7956
+ required: ['allowIncoming'],
7957
+ properties: {
7958
+ allowIncoming: {
7959
+ type: 'string',
7960
+ knownValues: ['all', 'none', 'following'],
7961
+ },
7962
+ },
7963
+ },
7964
+ },
7965
+ },
7966
+ },
7967
+ ChatBskyActorDefs: {
7968
+ lexicon: 1,
7969
+ id: 'chat.bsky.actor.defs',
7970
+ defs: {
7971
+ profileViewBasic: {
7972
+ type: 'object',
7973
+ required: ['did', 'handle'],
7974
+ properties: {
7975
+ did: {
7976
+ type: 'string',
7977
+ format: 'did',
7978
+ },
7979
+ handle: {
7980
+ type: 'string',
7981
+ format: 'handle',
7982
+ },
7983
+ displayName: {
7984
+ type: 'string',
7985
+ maxGraphemes: 64,
7986
+ maxLength: 640,
7987
+ },
7988
+ avatar: {
7989
+ type: 'string',
7990
+ format: 'uri',
7991
+ },
7992
+ associated: {
7993
+ type: 'ref',
7994
+ ref: 'lex:app.bsky.actor.defs#profileAssociated',
7995
+ },
7996
+ viewer: {
7997
+ type: 'ref',
7998
+ ref: 'lex:app.bsky.actor.defs#viewerState',
7999
+ },
8000
+ labels: {
8001
+ type: 'array',
8002
+ items: {
8003
+ type: 'ref',
8004
+ ref: 'lex:com.atproto.label.defs#label',
8005
+ },
8006
+ },
8007
+ chatDisabled: {
8008
+ type: 'boolean',
8009
+ description: 'Set to true when the actor cannot actively participate in converations',
8010
+ },
8011
+ },
8012
+ },
8013
+ },
8014
+ },
8015
+ ChatBskyActorDeleteAccount: {
8016
+ lexicon: 1,
8017
+ id: 'chat.bsky.actor.deleteAccount',
8018
+ defs: {
8019
+ main: {
8020
+ type: 'procedure',
8021
+ output: {
8022
+ encoding: 'application/json',
8023
+ schema: {
8024
+ type: 'object',
8025
+ properties: {},
8026
+ },
8027
+ },
8028
+ },
8029
+ },
8030
+ },
8031
+ ChatBskyActorExportAccountData: {
8032
+ lexicon: 1,
8033
+ id: 'chat.bsky.actor.exportAccountData',
8034
+ defs: {
8035
+ main: {
8036
+ type: 'query',
8037
+ output: {
8038
+ encoding: 'application/jsonl',
8039
+ },
8040
+ },
8041
+ },
8042
+ },
8043
+ ChatBskyConvoDefs: {
8044
+ lexicon: 1,
8045
+ id: 'chat.bsky.convo.defs',
8046
+ defs: {
8047
+ messageRef: {
8048
+ type: 'object',
8049
+ required: ['did', 'messageId', 'convoId'],
8050
+ properties: {
8051
+ did: {
8052
+ type: 'string',
8053
+ format: 'did',
8054
+ },
8055
+ convoId: {
8056
+ type: 'string',
8057
+ },
8058
+ messageId: {
8059
+ type: 'string',
8060
+ },
8061
+ },
8062
+ },
8063
+ messageInput: {
8064
+ type: 'object',
8065
+ required: ['text'],
8066
+ properties: {
8067
+ text: {
8068
+ type: 'string',
8069
+ maxLength: 10000,
8070
+ maxGraphemes: 1000,
8071
+ },
8072
+ facets: {
8073
+ type: 'array',
8074
+ description: 'Annotations of text (mentions, URLs, hashtags, etc)',
8075
+ items: {
8076
+ type: 'ref',
8077
+ ref: 'lex:app.bsky.richtext.facet',
8078
+ },
8079
+ },
8080
+ embed: {
8081
+ type: 'union',
8082
+ refs: ['lex:app.bsky.embed.record'],
8083
+ },
8084
+ },
8085
+ },
8086
+ messageView: {
8087
+ type: 'object',
8088
+ required: ['id', 'rev', 'text', 'sender', 'sentAt'],
8089
+ properties: {
8090
+ id: {
8091
+ type: 'string',
8092
+ },
8093
+ rev: {
8094
+ type: 'string',
8095
+ },
8096
+ text: {
8097
+ type: 'string',
8098
+ maxLength: 10000,
8099
+ maxGraphemes: 1000,
8100
+ },
8101
+ facets: {
8102
+ type: 'array',
8103
+ description: 'Annotations of text (mentions, URLs, hashtags, etc)',
8104
+ items: {
8105
+ type: 'ref',
8106
+ ref: 'lex:app.bsky.richtext.facet',
8107
+ },
8108
+ },
8109
+ embed: {
8110
+ type: 'union',
8111
+ refs: ['lex:app.bsky.embed.record'],
8112
+ },
8113
+ sender: {
8114
+ type: 'ref',
8115
+ ref: 'lex:chat.bsky.convo.defs#messageViewSender',
8116
+ },
8117
+ sentAt: {
8118
+ type: 'string',
8119
+ format: 'datetime',
8120
+ },
8121
+ },
8122
+ },
8123
+ deletedMessageView: {
8124
+ type: 'object',
8125
+ required: ['id', 'rev', 'sender', 'sentAt'],
8126
+ properties: {
8127
+ id: {
8128
+ type: 'string',
8129
+ },
8130
+ rev: {
8131
+ type: 'string',
8132
+ },
8133
+ sender: {
8134
+ type: 'ref',
8135
+ ref: 'lex:chat.bsky.convo.defs#messageViewSender',
8136
+ },
8137
+ sentAt: {
8138
+ type: 'string',
8139
+ format: 'datetime',
8140
+ },
8141
+ },
8142
+ },
8143
+ messageViewSender: {
8144
+ type: 'object',
8145
+ required: ['did'],
8146
+ properties: {
8147
+ did: {
8148
+ type: 'string',
8149
+ format: 'did',
8150
+ },
8151
+ },
8152
+ },
8153
+ convoView: {
8154
+ type: 'object',
8155
+ required: ['id', 'rev', 'members', 'muted', 'unreadCount'],
8156
+ properties: {
8157
+ id: {
8158
+ type: 'string',
8159
+ },
8160
+ rev: {
8161
+ type: 'string',
8162
+ },
8163
+ members: {
8164
+ type: 'array',
8165
+ items: {
8166
+ type: 'ref',
8167
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
8168
+ },
8169
+ },
8170
+ lastMessage: {
8171
+ type: 'union',
8172
+ refs: [
8173
+ 'lex:chat.bsky.convo.defs#messageView',
8174
+ 'lex:chat.bsky.convo.defs#deletedMessageView',
8175
+ ],
8176
+ },
8177
+ muted: {
8178
+ type: 'boolean',
8179
+ },
8180
+ unreadCount: {
8181
+ type: 'integer',
8182
+ },
8183
+ },
8184
+ },
8185
+ logBeginConvo: {
8186
+ type: 'object',
8187
+ required: ['rev', 'convoId'],
8188
+ properties: {
8189
+ rev: {
8190
+ type: 'string',
8191
+ },
8192
+ convoId: {
8193
+ type: 'string',
8194
+ },
8195
+ },
8196
+ },
8197
+ logLeaveConvo: {
8198
+ type: 'object',
8199
+ required: ['rev', 'convoId'],
8200
+ properties: {
8201
+ rev: {
8202
+ type: 'string',
8203
+ },
8204
+ convoId: {
8205
+ type: 'string',
8206
+ },
8207
+ },
8208
+ },
8209
+ logCreateMessage: {
8210
+ type: 'object',
8211
+ required: ['rev', 'convoId', 'message'],
8212
+ properties: {
8213
+ rev: {
8214
+ type: 'string',
8215
+ },
8216
+ convoId: {
8217
+ type: 'string',
8218
+ },
8219
+ message: {
8220
+ type: 'union',
8221
+ refs: [
8222
+ 'lex:chat.bsky.convo.defs#messageView',
8223
+ 'lex:chat.bsky.convo.defs#deletedMessageView',
8224
+ ],
8225
+ },
8226
+ },
8227
+ },
8228
+ logDeleteMessage: {
8229
+ type: 'object',
8230
+ required: ['rev', 'convoId', 'message'],
8231
+ properties: {
8232
+ rev: {
8233
+ type: 'string',
8234
+ },
8235
+ convoId: {
8236
+ type: 'string',
8237
+ },
8238
+ message: {
8239
+ type: 'union',
8240
+ refs: [
8241
+ 'lex:chat.bsky.convo.defs#messageView',
8242
+ 'lex:chat.bsky.convo.defs#deletedMessageView',
8243
+ ],
8244
+ },
8245
+ },
8246
+ },
8247
+ },
8248
+ },
8249
+ ChatBskyConvoDeleteMessageForSelf: {
8250
+ lexicon: 1,
8251
+ id: 'chat.bsky.convo.deleteMessageForSelf',
8252
+ defs: {
8253
+ main: {
8254
+ type: 'procedure',
8255
+ input: {
8256
+ encoding: 'application/json',
8257
+ schema: {
8258
+ type: 'object',
8259
+ required: ['convoId', 'messageId'],
8260
+ properties: {
8261
+ convoId: {
8262
+ type: 'string',
8263
+ },
8264
+ messageId: {
8265
+ type: 'string',
8266
+ },
8267
+ },
8268
+ },
8269
+ },
8270
+ output: {
8271
+ encoding: 'application/json',
8272
+ schema: {
8273
+ type: 'ref',
8274
+ ref: 'lex:chat.bsky.convo.defs#deletedMessageView',
8275
+ },
8276
+ },
8277
+ },
8278
+ },
8279
+ },
8280
+ ChatBskyConvoGetConvo: {
8281
+ lexicon: 1,
8282
+ id: 'chat.bsky.convo.getConvo',
8283
+ defs: {
8284
+ main: {
8285
+ type: 'query',
8286
+ parameters: {
8287
+ type: 'params',
8288
+ required: ['convoId'],
8289
+ properties: {
8290
+ convoId: {
8291
+ type: 'string',
8292
+ },
8293
+ },
8294
+ },
8295
+ output: {
8296
+ encoding: 'application/json',
8297
+ schema: {
8298
+ type: 'object',
8299
+ required: ['convo'],
8300
+ properties: {
8301
+ convo: {
8302
+ type: 'ref',
8303
+ ref: 'lex:chat.bsky.convo.defs#convoView',
8304
+ },
8305
+ },
8306
+ },
8307
+ },
8308
+ },
8309
+ },
8310
+ },
8311
+ ChatBskyConvoGetConvoForMembers: {
8312
+ lexicon: 1,
8313
+ id: 'chat.bsky.convo.getConvoForMembers',
8314
+ defs: {
8315
+ main: {
8316
+ type: 'query',
8317
+ parameters: {
8318
+ type: 'params',
8319
+ required: ['members'],
8320
+ properties: {
8321
+ members: {
8322
+ type: 'array',
8323
+ minLength: 1,
8324
+ maxLength: 10,
8325
+ items: {
8326
+ type: 'string',
8327
+ format: 'did',
8328
+ },
8329
+ },
8330
+ },
8331
+ },
8332
+ output: {
8333
+ encoding: 'application/json',
8334
+ schema: {
8335
+ type: 'object',
8336
+ required: ['convo'],
8337
+ properties: {
8338
+ convo: {
8339
+ type: 'ref',
8340
+ ref: 'lex:chat.bsky.convo.defs#convoView',
8341
+ },
8342
+ },
8343
+ },
8344
+ },
8345
+ },
8346
+ },
8347
+ },
8348
+ ChatBskyConvoGetLog: {
8349
+ lexicon: 1,
8350
+ id: 'chat.bsky.convo.getLog',
8351
+ defs: {
8352
+ main: {
8353
+ type: 'query',
8354
+ parameters: {
8355
+ type: 'params',
8356
+ required: [],
8357
+ properties: {
8358
+ cursor: {
8359
+ type: 'string',
8360
+ },
8361
+ },
8362
+ },
8363
+ output: {
8364
+ encoding: 'application/json',
8365
+ schema: {
8366
+ type: 'object',
8367
+ required: ['logs'],
8368
+ properties: {
8369
+ cursor: {
8370
+ type: 'string',
8371
+ },
8372
+ logs: {
8373
+ type: 'array',
8374
+ items: {
8375
+ type: 'union',
8376
+ refs: [
8377
+ 'lex:chat.bsky.convo.defs#logBeginConvo',
8378
+ 'lex:chat.bsky.convo.defs#logLeaveConvo',
8379
+ 'lex:chat.bsky.convo.defs#logCreateMessage',
8380
+ 'lex:chat.bsky.convo.defs#logDeleteMessage',
8381
+ ],
8382
+ },
8383
+ },
8384
+ },
8385
+ },
8386
+ },
8387
+ },
8388
+ },
8389
+ },
8390
+ ChatBskyConvoGetMessages: {
8391
+ lexicon: 1,
8392
+ id: 'chat.bsky.convo.getMessages',
8393
+ defs: {
8394
+ main: {
8395
+ type: 'query',
8396
+ parameters: {
8397
+ type: 'params',
8398
+ required: ['convoId'],
8399
+ properties: {
8400
+ convoId: {
8401
+ type: 'string',
8402
+ },
8403
+ limit: {
8404
+ type: 'integer',
8405
+ minimum: 1,
8406
+ maximum: 100,
8407
+ default: 50,
8408
+ },
8409
+ cursor: {
8410
+ type: 'string',
8411
+ },
8412
+ },
8413
+ },
8414
+ output: {
8415
+ encoding: 'application/json',
8416
+ schema: {
8417
+ type: 'object',
8418
+ required: ['messages'],
8419
+ properties: {
8420
+ cursor: {
8421
+ type: 'string',
8422
+ },
8423
+ messages: {
8424
+ type: 'array',
8425
+ items: {
8426
+ type: 'union',
8427
+ refs: [
8428
+ 'lex:chat.bsky.convo.defs#messageView',
8429
+ 'lex:chat.bsky.convo.defs#deletedMessageView',
8430
+ ],
8431
+ },
8432
+ },
8433
+ },
8434
+ },
8435
+ },
8436
+ },
8437
+ },
8438
+ },
8439
+ ChatBskyConvoLeaveConvo: {
8440
+ lexicon: 1,
8441
+ id: 'chat.bsky.convo.leaveConvo',
8442
+ defs: {
8443
+ main: {
8444
+ type: 'procedure',
8445
+ input: {
8446
+ encoding: 'application/json',
8447
+ schema: {
8448
+ type: 'object',
8449
+ required: ['convoId'],
8450
+ properties: {
8451
+ convoId: {
8452
+ type: 'string',
8453
+ },
8454
+ },
8455
+ },
8456
+ },
8457
+ output: {
8458
+ encoding: 'application/json',
8459
+ schema: {
8460
+ type: 'object',
8461
+ required: ['convoId', 'rev'],
8462
+ properties: {
8463
+ convoId: {
8464
+ type: 'string',
8465
+ },
8466
+ rev: {
8467
+ type: 'string',
8468
+ },
8469
+ },
8470
+ },
8471
+ },
8472
+ },
8473
+ },
8474
+ },
8475
+ ChatBskyConvoListConvos: {
8476
+ lexicon: 1,
8477
+ id: 'chat.bsky.convo.listConvos',
8478
+ defs: {
8479
+ main: {
8480
+ type: 'query',
8481
+ parameters: {
8482
+ type: 'params',
8483
+ properties: {
8484
+ limit: {
8485
+ type: 'integer',
8486
+ minimum: 1,
8487
+ maximum: 100,
8488
+ default: 50,
8489
+ },
8490
+ cursor: {
8491
+ type: 'string',
8492
+ },
8493
+ },
8494
+ },
8495
+ output: {
8496
+ encoding: 'application/json',
8497
+ schema: {
8498
+ type: 'object',
8499
+ required: ['convos'],
8500
+ properties: {
8501
+ cursor: {
8502
+ type: 'string',
8503
+ },
8504
+ convos: {
8505
+ type: 'array',
8506
+ items: {
8507
+ type: 'ref',
8508
+ ref: 'lex:chat.bsky.convo.defs#convoView',
8509
+ },
8510
+ },
8511
+ },
8512
+ },
8513
+ },
8514
+ },
8515
+ },
8516
+ },
8517
+ ChatBskyConvoMuteConvo: {
8518
+ lexicon: 1,
8519
+ id: 'chat.bsky.convo.muteConvo',
8520
+ defs: {
8521
+ main: {
8522
+ type: 'procedure',
8523
+ input: {
8524
+ encoding: 'application/json',
8525
+ schema: {
8526
+ type: 'object',
8527
+ required: ['convoId'],
8528
+ properties: {
8529
+ convoId: {
8530
+ type: 'string',
8531
+ },
8532
+ },
8533
+ },
8534
+ },
8535
+ output: {
8536
+ encoding: 'application/json',
8537
+ schema: {
8538
+ type: 'object',
8539
+ required: ['convo'],
8540
+ properties: {
8541
+ convo: {
8542
+ type: 'ref',
8543
+ ref: 'lex:chat.bsky.convo.defs#convoView',
8544
+ },
8545
+ },
8546
+ },
8547
+ },
8548
+ },
8549
+ },
8550
+ },
8551
+ ChatBskyConvoSendMessage: {
8552
+ lexicon: 1,
8553
+ id: 'chat.bsky.convo.sendMessage',
8554
+ defs: {
8555
+ main: {
8556
+ type: 'procedure',
8557
+ input: {
8558
+ encoding: 'application/json',
8559
+ schema: {
8560
+ type: 'object',
8561
+ required: ['convoId', 'message'],
8562
+ properties: {
8563
+ convoId: {
8564
+ type: 'string',
8565
+ },
8566
+ message: {
8567
+ type: 'ref',
8568
+ ref: 'lex:chat.bsky.convo.defs#messageInput',
8569
+ },
8570
+ },
8571
+ },
8572
+ },
8573
+ output: {
8574
+ encoding: 'application/json',
8575
+ schema: {
8576
+ type: 'ref',
8577
+ ref: 'lex:chat.bsky.convo.defs#messageView',
8578
+ },
8579
+ },
8580
+ },
8581
+ },
8582
+ },
8583
+ ChatBskyConvoSendMessageBatch: {
8584
+ lexicon: 1,
8585
+ id: 'chat.bsky.convo.sendMessageBatch',
8586
+ defs: {
8587
+ main: {
8588
+ type: 'procedure',
8589
+ input: {
8590
+ encoding: 'application/json',
8591
+ schema: {
8592
+ type: 'object',
8593
+ required: ['items'],
8594
+ properties: {
8595
+ items: {
8596
+ type: 'array',
8597
+ maxLength: 100,
8598
+ items: {
8599
+ type: 'ref',
8600
+ ref: 'lex:chat.bsky.convo.sendMessageBatch#batchItem',
8601
+ },
8602
+ },
8603
+ },
8604
+ },
8605
+ },
8606
+ output: {
8607
+ encoding: 'application/json',
8608
+ schema: {
8609
+ type: 'object',
8610
+ required: ['items'],
8611
+ properties: {
8612
+ items: {
8613
+ type: 'array',
8614
+ items: {
8615
+ type: 'ref',
8616
+ ref: 'lex:chat.bsky.convo.defs#messageView',
8617
+ },
8618
+ },
8619
+ },
8620
+ },
8621
+ },
8622
+ },
8623
+ batchItem: {
8624
+ type: 'object',
8625
+ required: ['convoId', 'message'],
8626
+ properties: {
8627
+ convoId: {
8628
+ type: 'string',
8629
+ },
8630
+ message: {
8631
+ type: 'ref',
8632
+ ref: 'lex:chat.bsky.convo.defs#messageInput',
8633
+ },
8634
+ },
8635
+ },
8636
+ },
8637
+ },
8638
+ ChatBskyConvoUnmuteConvo: {
8639
+ lexicon: 1,
8640
+ id: 'chat.bsky.convo.unmuteConvo',
8641
+ defs: {
8642
+ main: {
8643
+ type: 'procedure',
8644
+ input: {
8645
+ encoding: 'application/json',
8646
+ schema: {
8647
+ type: 'object',
8648
+ required: ['convoId'],
8649
+ properties: {
8650
+ convoId: {
8651
+ type: 'string',
8652
+ },
8653
+ },
8654
+ },
8655
+ },
8656
+ output: {
8657
+ encoding: 'application/json',
8658
+ schema: {
8659
+ type: 'object',
8660
+ required: ['convo'],
8661
+ properties: {
8662
+ convo: {
8663
+ type: 'ref',
8664
+ ref: 'lex:chat.bsky.convo.defs#convoView',
8665
+ },
8666
+ },
8667
+ },
8668
+ },
8669
+ },
8670
+ },
8671
+ },
8672
+ ChatBskyConvoUpdateRead: {
8673
+ lexicon: 1,
8674
+ id: 'chat.bsky.convo.updateRead',
8675
+ defs: {
8676
+ main: {
8677
+ type: 'procedure',
8678
+ input: {
8679
+ encoding: 'application/json',
8680
+ schema: {
8681
+ type: 'object',
8682
+ required: ['convoId'],
8683
+ properties: {
8684
+ convoId: {
8685
+ type: 'string',
8686
+ },
8687
+ messageId: {
8688
+ type: 'string',
8689
+ },
8690
+ },
8691
+ },
8692
+ },
8693
+ output: {
8694
+ encoding: 'application/json',
8695
+ schema: {
8696
+ type: 'object',
8697
+ required: ['convo'],
8698
+ properties: {
8699
+ convo: {
8700
+ type: 'ref',
8701
+ ref: 'lex:chat.bsky.convo.defs#convoView',
8702
+ },
8703
+ },
8704
+ },
8705
+ },
8706
+ },
8707
+ },
8708
+ },
8709
+ ChatBskyModerationGetActorMetadata: {
8710
+ lexicon: 1,
8711
+ id: 'chat.bsky.moderation.getActorMetadata',
8712
+ defs: {
8713
+ main: {
8714
+ type: 'query',
8715
+ parameters: {
8716
+ type: 'params',
8717
+ required: ['actor'],
8718
+ properties: {
8719
+ actor: {
8720
+ type: 'string',
8721
+ format: 'did',
8722
+ },
8723
+ },
8724
+ },
8725
+ output: {
8726
+ encoding: 'application/json',
8727
+ schema: {
8728
+ type: 'object',
8729
+ required: ['day', 'month', 'all'],
8730
+ properties: {
8731
+ day: {
8732
+ type: 'ref',
8733
+ ref: 'lex:chat.bsky.moderation.getActorMetadata#metadata',
8734
+ },
8735
+ month: {
8736
+ type: 'ref',
8737
+ ref: 'lex:chat.bsky.moderation.getActorMetadata#metadata',
8738
+ },
8739
+ all: {
8740
+ type: 'ref',
8741
+ ref: 'lex:chat.bsky.moderation.getActorMetadata#metadata',
8742
+ },
8743
+ },
8744
+ },
8745
+ },
8746
+ },
8747
+ metadata: {
8748
+ type: 'object',
8749
+ required: [
8750
+ 'messagesSent',
8751
+ 'messagesReceived',
8752
+ 'convos',
8753
+ 'convosStarted',
8754
+ ],
8755
+ properties: {
8756
+ messagesSent: {
8757
+ type: 'integer',
8758
+ },
8759
+ messagesReceived: {
8760
+ type: 'integer',
8761
+ },
8762
+ convos: {
8763
+ type: 'integer',
8764
+ },
8765
+ convosStarted: {
8766
+ type: 'integer',
8767
+ },
8768
+ },
8769
+ },
8770
+ },
8771
+ },
8772
+ ChatBskyModerationGetMessageContext: {
8773
+ lexicon: 1,
8774
+ id: 'chat.bsky.moderation.getMessageContext',
8775
+ defs: {
8776
+ main: {
8777
+ type: 'query',
8778
+ parameters: {
8779
+ type: 'params',
8780
+ required: ['messageId'],
8781
+ properties: {
8782
+ convoId: {
8783
+ type: 'string',
8784
+ description: 'Conversation that the message is from. NOTE: this field will eventually be required.',
8785
+ },
8786
+ messageId: {
8787
+ type: 'string',
8788
+ },
8789
+ before: {
8790
+ type: 'integer',
8791
+ default: 5,
8792
+ },
8793
+ after: {
8794
+ type: 'integer',
8795
+ default: 5,
8796
+ },
8797
+ },
8798
+ },
8799
+ output: {
8800
+ encoding: 'application/json',
8801
+ schema: {
8802
+ type: 'object',
8803
+ required: ['messages'],
8804
+ properties: {
8805
+ messages: {
8806
+ type: 'array',
8807
+ items: {
8808
+ type: 'union',
8809
+ refs: [
8810
+ 'lex:chat.bsky.convo.defs#messageView',
8811
+ 'lex:chat.bsky.convo.defs#deletedMessageView',
8812
+ ],
8813
+ },
8814
+ },
8815
+ },
8816
+ },
8817
+ },
8818
+ },
8819
+ },
8820
+ },
8821
+ ChatBskyModerationUpdateActorAccess: {
8822
+ lexicon: 1,
8823
+ id: 'chat.bsky.moderation.updateActorAccess',
8824
+ defs: {
8825
+ main: {
8826
+ type: 'procedure',
8827
+ input: {
8828
+ encoding: 'application/json',
8829
+ schema: {
8830
+ type: 'object',
8831
+ required: ['actor', 'allowAccess'],
8832
+ properties: {
8833
+ actor: {
8834
+ type: 'string',
8835
+ format: 'did',
8836
+ },
8837
+ allowAccess: {
8838
+ type: 'boolean',
8839
+ },
8840
+ ref: {
8841
+ type: 'string',
8842
+ },
8843
+ },
8844
+ },
8845
+ },
8846
+ },
8847
+ },
8848
+ },
7932
8849
  ToolsOzoneCommunicationCreateTemplate: {
7933
8850
  lexicon: 1,
7934
8851
  id: 'tools.ozone.communication.createTemplate',
@@ -8163,6 +9080,7 @@ exports.schemaDict = {
8163
9080
  refs: [
8164
9081
  'lex:com.atproto.admin.defs#repoRef',
8165
9082
  'lex:com.atproto.repo.strongRef',
9083
+ 'lex:chat.bsky.convo.defs#messageRef',
8166
9084
  ],
8167
9085
  },
8168
9086
  subjectBlobCids: {
@@ -9474,6 +10392,26 @@ exports.ids = {
9474
10392
  AppBskyUnspeccedGetTaggedSuggestions: 'app.bsky.unspecced.getTaggedSuggestions',
9475
10393
  AppBskyUnspeccedSearchActorsSkeleton: 'app.bsky.unspecced.searchActorsSkeleton',
9476
10394
  AppBskyUnspeccedSearchPostsSkeleton: 'app.bsky.unspecced.searchPostsSkeleton',
10395
+ ChatBskyActorDeclaration: 'chat.bsky.actor.declaration',
10396
+ ChatBskyActorDefs: 'chat.bsky.actor.defs',
10397
+ ChatBskyActorDeleteAccount: 'chat.bsky.actor.deleteAccount',
10398
+ ChatBskyActorExportAccountData: 'chat.bsky.actor.exportAccountData',
10399
+ ChatBskyConvoDefs: 'chat.bsky.convo.defs',
10400
+ ChatBskyConvoDeleteMessageForSelf: 'chat.bsky.convo.deleteMessageForSelf',
10401
+ ChatBskyConvoGetConvo: 'chat.bsky.convo.getConvo',
10402
+ ChatBskyConvoGetConvoForMembers: 'chat.bsky.convo.getConvoForMembers',
10403
+ ChatBskyConvoGetLog: 'chat.bsky.convo.getLog',
10404
+ ChatBskyConvoGetMessages: 'chat.bsky.convo.getMessages',
10405
+ ChatBskyConvoLeaveConvo: 'chat.bsky.convo.leaveConvo',
10406
+ ChatBskyConvoListConvos: 'chat.bsky.convo.listConvos',
10407
+ ChatBskyConvoMuteConvo: 'chat.bsky.convo.muteConvo',
10408
+ ChatBskyConvoSendMessage: 'chat.bsky.convo.sendMessage',
10409
+ ChatBskyConvoSendMessageBatch: 'chat.bsky.convo.sendMessageBatch',
10410
+ ChatBskyConvoUnmuteConvo: 'chat.bsky.convo.unmuteConvo',
10411
+ ChatBskyConvoUpdateRead: 'chat.bsky.convo.updateRead',
10412
+ ChatBskyModerationGetActorMetadata: 'chat.bsky.moderation.getActorMetadata',
10413
+ ChatBskyModerationGetMessageContext: 'chat.bsky.moderation.getMessageContext',
10414
+ ChatBskyModerationUpdateActorAccess: 'chat.bsky.moderation.updateActorAccess',
9477
10415
  ToolsOzoneCommunicationCreateTemplate: 'tools.ozone.communication.createTemplate',
9478
10416
  ToolsOzoneCommunicationDefs: 'tools.ozone.communication.defs',
9479
10417
  ToolsOzoneCommunicationDeleteTemplate: 'tools.ozone.communication.deleteTemplate',