@atproto/api 0.19.17 → 0.19.19

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 (35) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/client/lexicons.d.ts +1057 -113
  3. package/dist/client/lexicons.d.ts.map +1 -1
  4. package/dist/client/lexicons.js +594 -7
  5. package/dist/client/lexicons.js.map +1 -1
  6. package/dist/client/types/app/bsky/embed/external.d.ts +2 -1
  7. package/dist/client/types/app/bsky/embed/external.d.ts.map +1 -1
  8. package/dist/client/types/app/bsky/embed/external.js.map +1 -1
  9. package/dist/client/types/chat/bsky/convo/defs.d.ts +8 -1
  10. package/dist/client/types/chat/bsky/convo/defs.d.ts.map +1 -1
  11. package/dist/client/types/chat/bsky/convo/defs.js +9 -0
  12. package/dist/client/types/chat/bsky/convo/defs.js.map +1 -1
  13. package/dist/client/types/chat/bsky/group/addMembers.d.ts +1 -1
  14. package/dist/client/types/chat/bsky/group/addMembers.d.ts.map +1 -1
  15. package/dist/client/types/chat/bsky/group/addMembers.js +5 -5
  16. package/dist/client/types/chat/bsky/group/addMembers.js.map +1 -1
  17. package/dist/client/types/chat/bsky/group/createGroup.d.ts +1 -1
  18. package/dist/client/types/chat/bsky/group/createGroup.d.ts.map +1 -1
  19. package/dist/client/types/chat/bsky/group/createGroup.js +5 -5
  20. package/dist/client/types/chat/bsky/group/createGroup.js.map +1 -1
  21. package/dist/client/types/chat/bsky/moderation/getMessageContext.d.ts +5 -1
  22. package/dist/client/types/chat/bsky/moderation/getMessageContext.d.ts.map +1 -1
  23. package/dist/client/types/chat/bsky/moderation/getMessageContext.js.map +1 -1
  24. package/dist/client/types/chat/bsky/moderation/subscribeModEvents.d.ts +206 -0
  25. package/dist/client/types/chat/bsky/moderation/subscribeModEvents.d.ts.map +1 -1
  26. package/dist/client/types/chat/bsky/moderation/subscribeModEvents.js +81 -0
  27. package/dist/client/types/chat/bsky/moderation/subscribeModEvents.js.map +1 -1
  28. package/package.json +1 -1
  29. package/src/client/lexicons.ts +619 -7
  30. package/src/client/types/app/bsky/embed/external.ts +2 -1
  31. package/src/client/types/chat/bsky/convo/defs.ts +17 -1
  32. package/src/client/types/chat/bsky/group/addMembers.ts +2 -3
  33. package/src/client/types/chat/bsky/group/createGroup.ts +2 -3
  34. package/src/client/types/chat/bsky/moderation/getMessageContext.ts +4 -1
  35. package/src/client/types/chat/bsky/moderation/subscribeModEvents.ts +328 -0
@@ -2509,9 +2509,12 @@ export declare const schemaDict: {
2509
2509
  readonly accept: ["image/*"];
2510
2510
  readonly maxSize: 1000000;
2511
2511
  };
2512
- readonly associatedRecord: {
2513
- readonly type: "string";
2514
- readonly format: "at-uri";
2512
+ readonly associatedRecords: {
2513
+ readonly type: "array";
2514
+ readonly items: {
2515
+ readonly type: "ref";
2516
+ readonly ref: "lex:com.atproto.repo.strongRef";
2517
+ };
2515
2518
  readonly description: "The URI of the Atmosphere record representing this external content, if it exists. Example: a site.standard.document record.";
2516
2519
  };
2517
2520
  };
@@ -9291,6 +9294,19 @@ export declare const schemaDict: {
9291
9294
  readonly type: "string";
9292
9295
  readonly knownValues: ["request", "accepted"];
9293
9296
  };
9297
+ readonly convoRef: {
9298
+ readonly type: "object";
9299
+ readonly required: ["did", "convoId"];
9300
+ readonly properties: {
9301
+ readonly did: {
9302
+ readonly type: "string";
9303
+ readonly format: "did";
9304
+ };
9305
+ readonly convoId: {
9306
+ readonly type: "string";
9307
+ };
9308
+ };
9309
+ };
9294
9310
  readonly messageRef: {
9295
9311
  readonly type: "object";
9296
9312
  readonly required: ["did", "messageId", "convoId"];
@@ -9629,7 +9645,7 @@ export declare const schemaDict: {
9629
9645
  readonly type: "string";
9630
9646
  };
9631
9647
  readonly members: {
9632
- readonly description: "Members of this conversation. For direct convos, it will be an immutable list of the 2 members. For group convos, it will a list of important members (the first few members, the viewer, the member who invited the viewer, the member who sent the last message, the member who sent the last reaction), but will not contain the full list of members. Use chat.bsky.convo.getConvoMembers to list all members.";
9648
+ readonly description: "Members of this conversation. For direct convos, it will be an immutable list of the 2 members. For group convos, it will a list of important members (the first few members, the viewer, the member who added the viewer, the member who sent the last message, the member who sent the last reaction), but will not contain the full list of members. Use chat.bsky.convo.getConvoMembers to list all members.";
9633
9649
  readonly type: "array";
9634
9650
  readonly items: {
9635
9651
  readonly type: "ref";
@@ -11095,7 +11111,7 @@ export declare const schemaDict: {
11095
11111
  }, {
11096
11112
  readonly name: "BlockedActor";
11097
11113
  }, {
11098
- readonly name: "GroupInvitesDisabled";
11114
+ readonly name: "UserForbidsGroups";
11099
11115
  }, {
11100
11116
  readonly name: "ConvoLocked";
11101
11117
  }, {
@@ -11210,7 +11226,7 @@ export declare const schemaDict: {
11210
11226
  }, {
11211
11227
  readonly name: "BlockedActor";
11212
11228
  }, {
11213
- readonly name: "GroupInvitesDisabled";
11229
+ readonly name: "UserForbidsGroups";
11214
11230
  }, {
11215
11231
  readonly name: "NotFollowedBySender";
11216
11232
  }, {
@@ -11873,10 +11889,19 @@ export declare const schemaDict: {
11873
11889
  readonly before: {
11874
11890
  readonly type: "integer";
11875
11891
  readonly default: 5;
11892
+ readonly description: "Number of user messages before the target to include. System messages between the earliest returned user message and the target are also included, capped per gap by `maxInterleavedSystemMessages`. If there are no user messages before the target, up to `maxInterleavedSystemMessages` system messages immediately preceding the target are returned instead.";
11876
11893
  };
11877
11894
  readonly after: {
11878
11895
  readonly type: "integer";
11879
11896
  readonly default: 5;
11897
+ readonly description: "Number of user messages after the target to include. System messages between the target and the latest returned user message are also included, capped per gap by `maxInterleavedSystemMessages`. If there are no user messages after the target, up to `maxInterleavedSystemMessages` system messages immediately following the target are returned instead.";
11898
+ };
11899
+ readonly maxInterleavedSystemMessages: {
11900
+ readonly type: "integer";
11901
+ readonly default: 10;
11902
+ readonly minimum: 0;
11903
+ readonly maximum: 1000;
11904
+ readonly description: "Maximum number of system messages to include per gap between consecutive returned messages (and per side when there are no user messages on that side). Within a gap, the system messages closest to the earlier message are kept.";
11880
11905
  };
11881
11906
  };
11882
11907
  };
@@ -11890,7 +11915,7 @@ export declare const schemaDict: {
11890
11915
  readonly type: "array";
11891
11916
  readonly items: {
11892
11917
  readonly type: "union";
11893
- readonly refs: ["lex:chat.bsky.convo.defs#messageView", "lex:chat.bsky.convo.defs#deletedMessageView", "lex:chat.bsky.convo.defs#systemMessageView"];
11918
+ readonly refs: ["lex:chat.bsky.convo.defs#messageView", "lex:chat.bsky.convo.defs#systemMessageView"];
11894
11919
  };
11895
11920
  };
11896
11921
  };
@@ -11918,7 +11943,7 @@ export declare const schemaDict: {
11918
11943
  readonly message: {
11919
11944
  readonly schema: {
11920
11945
  readonly type: "union";
11921
- readonly refs: ["lex:chat.bsky.moderation.subscribeModEvents#eventConvoFirstMessage"];
11946
+ readonly refs: ["lex:chat.bsky.moderation.subscribeModEvents#eventConvoFirstMessage", "lex:chat.bsky.moderation.subscribeModEvents#eventGroupChatCreated", "lex:chat.bsky.moderation.subscribeModEvents#eventGroupChatMemberAdded", "lex:chat.bsky.moderation.subscribeModEvents#eventGroupChatMemberJoined", "lex:chat.bsky.moderation.subscribeModEvents#eventGroupChatJoinRequest", "lex:chat.bsky.moderation.subscribeModEvents#eventGroupChatJoinRequestApproved", "lex:chat.bsky.moderation.subscribeModEvents#eventGroupChatJoinRequestRejected", "lex:chat.bsky.moderation.subscribeModEvents#eventChatAccepted", "lex:chat.bsky.moderation.subscribeModEvents#eventGroupChatMemberLeft", "lex:chat.bsky.moderation.subscribeModEvents#eventGroupChatUpdated"];
11922
11947
  };
11923
11948
  };
11924
11949
  readonly errors: [{
@@ -11930,6 +11955,7 @@ export declare const schemaDict: {
11930
11955
  };
11931
11956
  readonly eventConvoFirstMessage: {
11932
11957
  readonly type: "object";
11958
+ readonly description: "Fired when the first message was sent on a convo.";
11933
11959
  readonly required: ["createdAt", "rev", "convoId", "user", "recipients"];
11934
11960
  readonly properties: {
11935
11961
  readonly convoId: {
@@ -11960,165 +11986,611 @@ export declare const schemaDict: {
11960
11986
  };
11961
11987
  };
11962
11988
  };
11963
- };
11964
- };
11965
- readonly ChatBskyModerationUpdateActorAccess: {
11966
- readonly lexicon: 1;
11967
- readonly id: "chat.bsky.moderation.updateActorAccess";
11968
- readonly defs: {
11969
- readonly main: {
11970
- readonly type: "procedure";
11971
- readonly input: {
11972
- readonly encoding: "application/json";
11973
- readonly schema: {
11974
- readonly type: "object";
11975
- readonly required: ["actor", "allowAccess"];
11976
- readonly properties: {
11977
- readonly actor: {
11978
- readonly type: "string";
11979
- readonly format: "did";
11980
- };
11981
- readonly allowAccess: {
11982
- readonly type: "boolean";
11983
- };
11984
- readonly ref: {
11985
- readonly type: "string";
11986
- };
11989
+ readonly eventGroupChatCreated: {
11990
+ readonly type: "object";
11991
+ readonly description: "Fire when a group chat is created.";
11992
+ readonly required: ["actorDid", "convoCreatedAt", "convoId", "createdAt", "groupMemberCount", "groupName", "initialMemberDids", "ownerDid", "rev"];
11993
+ readonly properties: {
11994
+ readonly actorDid: {
11995
+ readonly description: "The DID of the actor performing the action. For this event, same as ownerDid.";
11996
+ readonly type: "string";
11997
+ readonly format: "did";
11998
+ };
11999
+ readonly convoCreatedAt: {
12000
+ readonly description: "When the group was originally created.";
12001
+ readonly type: "string";
12002
+ readonly format: "datetime";
12003
+ };
12004
+ readonly convoId: {
12005
+ readonly type: "string";
12006
+ };
12007
+ readonly createdAt: {
12008
+ readonly type: "string";
12009
+ readonly format: "datetime";
12010
+ };
12011
+ readonly groupMemberCount: {
12012
+ readonly description: "Current member count at the time of the event.";
12013
+ readonly type: "integer";
12014
+ };
12015
+ readonly groupName: {
12016
+ readonly description: "The name set at creation time.";
12017
+ readonly type: "string";
12018
+ };
12019
+ readonly initialMemberDids: {
12020
+ readonly description: "DIDs of everyone added at creation time.";
12021
+ readonly type: "array";
12022
+ readonly items: {
12023
+ readonly type: "string";
12024
+ readonly format: "did";
11987
12025
  };
11988
12026
  };
12027
+ readonly ownerDid: {
12028
+ readonly description: "The DID of the group chat owner.";
12029
+ readonly type: "string";
12030
+ readonly format: "did";
12031
+ };
12032
+ readonly rev: {
12033
+ readonly type: "string";
12034
+ };
11989
12035
  };
11990
12036
  };
11991
- };
11992
- };
11993
- readonly ComAtprotoAdminDefs: {
11994
- readonly lexicon: 1;
11995
- readonly id: "com.atproto.admin.defs";
11996
- readonly defs: {
11997
- readonly statusAttr: {
12037
+ readonly eventGroupChatMemberAdded: {
11998
12038
  readonly type: "object";
11999
- readonly required: ["applied"];
12039
+ readonly description: "Fired when a member is added to a group chat. Note that members are added in the 'request' state.";
12040
+ readonly required: ["actorDid", "convoCreatedAt", "convoId", "createdAt", "groupMemberCount", "groupName", "ownerDid", "requestMembersCount", "rev", "subjectDid", "subjectFollowsOwner"];
12000
12041
  readonly properties: {
12001
- readonly applied: {
12002
- readonly type: "boolean";
12042
+ readonly actorDid: {
12043
+ readonly description: "The DID of the actor performing the action. For this event, same as ownerDid.";
12044
+ readonly type: "string";
12045
+ readonly format: "did";
12003
12046
  };
12004
- readonly ref: {
12047
+ readonly convoCreatedAt: {
12048
+ readonly description: "When the group was originally created.";
12049
+ readonly type: "string";
12050
+ readonly format: "datetime";
12051
+ };
12052
+ readonly convoId: {
12053
+ readonly type: "string";
12054
+ };
12055
+ readonly createdAt: {
12056
+ readonly type: "string";
12057
+ readonly format: "datetime";
12058
+ };
12059
+ readonly groupMemberCount: {
12060
+ readonly description: "Current member count at the time of the event.";
12061
+ readonly type: "integer";
12062
+ };
12063
+ readonly groupName: {
12064
+ readonly type: "string";
12065
+ };
12066
+ readonly ownerDid: {
12067
+ readonly description: "The DID of the group chat owner.";
12068
+ readonly type: "string";
12069
+ readonly format: "did";
12070
+ };
12071
+ readonly requestMembersCount: {
12072
+ readonly description: "The number of members who have not yet accepted the convo.";
12073
+ readonly type: "integer";
12074
+ };
12075
+ readonly rev: {
12076
+ readonly type: "string";
12077
+ };
12078
+ readonly subjectDid: {
12079
+ readonly description: "The DID of the member who was added.";
12005
12080
  readonly type: "string";
12081
+ readonly format: "did";
12082
+ };
12083
+ readonly subjectFollowsOwner: {
12084
+ readonly description: "Whether the added member follows the group owner.";
12085
+ readonly type: "boolean";
12006
12086
  };
12007
12087
  };
12008
12088
  };
12009
- readonly accountView: {
12089
+ readonly eventGroupChatMemberJoined: {
12010
12090
  readonly type: "object";
12011
- readonly required: ["did", "handle", "indexedAt"];
12091
+ readonly description: "Fired when a member joins a group chat via an join link that does not require approval.";
12092
+ readonly required: ["actorDid", "convoCreatedAt", "convoId", "createdAt", "groupMemberCount", "groupName", "joinLinkCode", "ownerDid", "rev", "subjectFollowsOwner"];
12012
12093
  readonly properties: {
12013
- readonly did: {
12094
+ readonly actorDid: {
12095
+ readonly description: "The DID of the person joining.";
12014
12096
  readonly type: "string";
12015
12097
  readonly format: "did";
12016
12098
  };
12017
- readonly handle: {
12099
+ readonly convoCreatedAt: {
12100
+ readonly description: "When the group was originally created.";
12018
12101
  readonly type: "string";
12019
- readonly format: "handle";
12102
+ readonly format: "datetime";
12020
12103
  };
12021
- readonly email: {
12104
+ readonly convoId: {
12022
12105
  readonly type: "string";
12023
12106
  };
12024
- readonly relatedRecords: {
12025
- readonly type: "array";
12026
- readonly items: {
12027
- readonly type: "unknown";
12028
- };
12029
- };
12030
- readonly indexedAt: {
12107
+ readonly createdAt: {
12031
12108
  readonly type: "string";
12032
12109
  readonly format: "datetime";
12033
12110
  };
12034
- readonly invitedBy: {
12035
- readonly type: "ref";
12036
- readonly ref: "lex:com.atproto.server.defs#inviteCode";
12111
+ readonly groupMemberCount: {
12112
+ readonly description: "Current member count at the time of the event.";
12113
+ readonly type: "integer";
12037
12114
  };
12038
- readonly invites: {
12039
- readonly type: "array";
12040
- readonly items: {
12041
- readonly type: "ref";
12042
- readonly ref: "lex:com.atproto.server.defs#inviteCode";
12043
- };
12115
+ readonly groupName: {
12116
+ readonly type: "string";
12044
12117
  };
12045
- readonly invitesDisabled: {
12118
+ readonly joinLinkCode: {
12119
+ readonly description: "The code of the join link used to join.";
12120
+ readonly type: "string";
12121
+ };
12122
+ readonly ownerDid: {
12123
+ readonly description: "The DID of the group chat owner.";
12124
+ readonly type: "string";
12125
+ readonly format: "did";
12126
+ };
12127
+ readonly rev: {
12128
+ readonly type: "string";
12129
+ };
12130
+ readonly subjectFollowsOwner: {
12131
+ readonly description: "Whether the joining member follows the group owner.";
12046
12132
  readonly type: "boolean";
12047
12133
  };
12048
- readonly emailConfirmedAt: {
12134
+ };
12135
+ };
12136
+ readonly eventGroupChatJoinRequest: {
12137
+ readonly type: "object";
12138
+ readonly description: "Fired when a user requests to join a group chat via an join link that requires approval.";
12139
+ readonly required: ["actorDid", "convoCreatedAt", "convoId", "createdAt", "groupMemberCount", "groupName", "joinLinkCode", "ownerDid", "rev", "subjectFollowsOwner"];
12140
+ readonly properties: {
12141
+ readonly actorDid: {
12142
+ readonly description: "The DID of the person requesting to join.";
12143
+ readonly type: "string";
12144
+ readonly format: "did";
12145
+ };
12146
+ readonly convoCreatedAt: {
12147
+ readonly description: "When the group was originally created.";
12049
12148
  readonly type: "string";
12050
12149
  readonly format: "datetime";
12051
12150
  };
12052
- readonly inviteNote: {
12151
+ readonly convoId: {
12053
12152
  readonly type: "string";
12054
12153
  };
12055
- readonly deactivatedAt: {
12154
+ readonly createdAt: {
12056
12155
  readonly type: "string";
12057
12156
  readonly format: "datetime";
12058
12157
  };
12059
- readonly threatSignatures: {
12060
- readonly type: "array";
12061
- readonly items: {
12062
- readonly type: "ref";
12063
- readonly ref: "lex:com.atproto.admin.defs#threatSignature";
12064
- };
12158
+ readonly groupMemberCount: {
12159
+ readonly description: "Current member count at the time of the event.";
12160
+ readonly type: "integer";
12161
+ };
12162
+ readonly groupName: {
12163
+ readonly type: "string";
12164
+ };
12165
+ readonly joinLinkCode: {
12166
+ readonly description: "The code of the join link used to request joining.";
12167
+ readonly type: "string";
12168
+ };
12169
+ readonly ownerDid: {
12170
+ readonly description: "The DID of the group chat owner.";
12171
+ readonly type: "string";
12172
+ readonly format: "did";
12173
+ };
12174
+ readonly rev: {
12175
+ readonly type: "string";
12176
+ };
12177
+ readonly subjectFollowsOwner: {
12178
+ readonly description: "Whether the requesting member follows the group owner.";
12179
+ readonly type: "boolean";
12065
12180
  };
12066
12181
  };
12067
12182
  };
12068
- readonly repoRef: {
12183
+ readonly eventGroupChatJoinRequestApproved: {
12069
12184
  readonly type: "object";
12070
- readonly required: ["did"];
12185
+ readonly description: "Fired when a join request is approved by the group owner.";
12186
+ readonly required: ["actorDid", "convoCreatedAt", "convoId", "createdAt", "groupMemberCount", "groupName", "ownerDid", "rev", "subjectDid"];
12071
12187
  readonly properties: {
12072
- readonly did: {
12188
+ readonly actorDid: {
12189
+ readonly description: "The DID of the owner approving the request.";
12190
+ readonly type: "string";
12191
+ readonly format: "did";
12192
+ };
12193
+ readonly convoCreatedAt: {
12194
+ readonly description: "When the group was originally created.";
12195
+ readonly type: "string";
12196
+ readonly format: "datetime";
12197
+ };
12198
+ readonly convoId: {
12199
+ readonly type: "string";
12200
+ };
12201
+ readonly createdAt: {
12202
+ readonly type: "string";
12203
+ readonly format: "datetime";
12204
+ };
12205
+ readonly groupMemberCount: {
12206
+ readonly description: "Current member count at the time of the event.";
12207
+ readonly type: "integer";
12208
+ };
12209
+ readonly groupName: {
12210
+ readonly type: "string";
12211
+ };
12212
+ readonly ownerDid: {
12213
+ readonly description: "The DID of the group chat owner.";
12214
+ readonly type: "string";
12215
+ readonly format: "did";
12216
+ };
12217
+ readonly rev: {
12218
+ readonly type: "string";
12219
+ };
12220
+ readonly subjectDid: {
12221
+ readonly description: "The DID of the member whose request was approved.";
12073
12222
  readonly type: "string";
12074
12223
  readonly format: "did";
12075
12224
  };
12076
12225
  };
12077
12226
  };
12078
- readonly repoBlobRef: {
12227
+ readonly eventGroupChatJoinRequestRejected: {
12079
12228
  readonly type: "object";
12080
- readonly required: ["did", "cid"];
12229
+ readonly description: "Fired when a join request is rejected by the group owner.";
12230
+ readonly required: ["actorDid", "convoCreatedAt", "convoId", "createdAt", "groupMemberCount", "groupName", "ownerDid", "rev", "subjectDid"];
12081
12231
  readonly properties: {
12082
- readonly did: {
12232
+ readonly actorDid: {
12233
+ readonly description: "The DID of the owner rejecting the request.";
12083
12234
  readonly type: "string";
12084
12235
  readonly format: "did";
12085
12236
  };
12086
- readonly cid: {
12237
+ readonly convoCreatedAt: {
12238
+ readonly description: "When the group was originally created.";
12087
12239
  readonly type: "string";
12088
- readonly format: "cid";
12240
+ readonly format: "datetime";
12089
12241
  };
12090
- readonly recordUri: {
12242
+ readonly convoId: {
12091
12243
  readonly type: "string";
12092
- readonly format: "at-uri";
12244
+ };
12245
+ readonly createdAt: {
12246
+ readonly type: "string";
12247
+ readonly format: "datetime";
12248
+ };
12249
+ readonly groupMemberCount: {
12250
+ readonly description: "Current member count at the time of the event.";
12251
+ readonly type: "integer";
12252
+ };
12253
+ readonly groupName: {
12254
+ readonly type: "string";
12255
+ };
12256
+ readonly ownerDid: {
12257
+ readonly description: "The DID of the group chat owner.";
12258
+ readonly type: "string";
12259
+ readonly format: "did";
12260
+ };
12261
+ readonly rev: {
12262
+ readonly type: "string";
12263
+ };
12264
+ readonly subjectDid: {
12265
+ readonly description: "The DID of the member whose request was rejected.";
12266
+ readonly type: "string";
12267
+ readonly format: "did";
12093
12268
  };
12094
12269
  };
12095
12270
  };
12096
- readonly threatSignature: {
12271
+ readonly eventChatAccepted: {
12097
12272
  readonly type: "object";
12098
- readonly required: ["property", "value"];
12273
+ readonly description: "Fired when a user accepts a chat convo, either explicitly or by sending a message.";
12274
+ readonly required: ["actorDid", "convoCreatedAt", "convoId", "createdAt", "method", "rev"];
12099
12275
  readonly properties: {
12100
- readonly property: {
12276
+ readonly actorDid: {
12277
+ readonly description: "The DID of the person accepting the convo.";
12101
12278
  readonly type: "string";
12279
+ readonly format: "did";
12102
12280
  };
12103
- readonly value: {
12281
+ readonly convoCreatedAt: {
12282
+ readonly description: "When the convo was originally created.";
12104
12283
  readonly type: "string";
12284
+ readonly format: "datetime";
12105
12285
  };
12106
- };
12107
- };
12108
- };
12109
- };
12110
- readonly ComAtprotoAdminDeleteAccount: {
12111
- readonly lexicon: 1;
12112
- readonly id: "com.atproto.admin.deleteAccount";
12113
- readonly defs: {
12114
- readonly main: {
12115
- readonly type: "procedure";
12116
- readonly description: "Delete a user account as an administrator.";
12117
- readonly input: {
12118
- readonly encoding: "application/json";
12119
- readonly schema: {
12120
- readonly type: "object";
12121
- readonly required: ["did"];
12286
+ readonly convoId: {
12287
+ readonly type: "string";
12288
+ };
12289
+ readonly createdAt: {
12290
+ readonly type: "string";
12291
+ readonly format: "datetime";
12292
+ };
12293
+ readonly groupMemberCount: {
12294
+ readonly description: "Current member count at the time of the event. Only present for group convos.";
12295
+ readonly type: "integer";
12296
+ };
12297
+ readonly groupName: {
12298
+ readonly description: "The name of the group chat. Only present for group convos.";
12299
+ readonly type: "string";
12300
+ };
12301
+ readonly method: {
12302
+ readonly description: "How the convo was accepted.";
12303
+ readonly type: "string";
12304
+ readonly knownValues: ["explicit", "message"];
12305
+ };
12306
+ readonly ownerDid: {
12307
+ readonly description: "The DID of the group chat owner. Only present for group convos.";
12308
+ readonly type: "string";
12309
+ readonly format: "did";
12310
+ };
12311
+ readonly rev: {
12312
+ readonly type: "string";
12313
+ };
12314
+ };
12315
+ };
12316
+ readonly eventGroupChatMemberLeft: {
12317
+ readonly type: "object";
12318
+ readonly description: "Fired when a member leaves or is removed from a group chat.";
12319
+ readonly required: ["actorDid", "convoCreatedAt", "convoId", "createdAt", "groupMemberCount", "groupName", "leaveMethod", "ownerDid", "rev", "subjectDid"];
12320
+ readonly properties: {
12321
+ readonly actorDid: {
12322
+ readonly description: "The DID of the actor. For voluntary: the person leaving. For kicked: the owner.";
12323
+ readonly type: "string";
12324
+ readonly format: "did";
12325
+ };
12326
+ readonly convoCreatedAt: {
12327
+ readonly description: "When the group was originally created.";
12328
+ readonly type: "string";
12329
+ readonly format: "datetime";
12330
+ };
12331
+ readonly convoId: {
12332
+ readonly type: "string";
12333
+ };
12334
+ readonly createdAt: {
12335
+ readonly type: "string";
12336
+ readonly format: "datetime";
12337
+ };
12338
+ readonly groupMemberCount: {
12339
+ readonly description: "Current member count at the time of the event.";
12340
+ readonly type: "integer";
12341
+ };
12342
+ readonly groupName: {
12343
+ readonly type: "string";
12344
+ };
12345
+ readonly leaveMethod: {
12346
+ readonly description: "How the member left.";
12347
+ readonly type: "string";
12348
+ readonly knownValues: ["voluntary", "kicked"];
12349
+ };
12350
+ readonly ownerDid: {
12351
+ readonly description: "The DID of the group chat owner.";
12352
+ readonly type: "string";
12353
+ readonly format: "did";
12354
+ };
12355
+ readonly rev: {
12356
+ readonly type: "string";
12357
+ };
12358
+ readonly subjectDid: {
12359
+ readonly description: "The DID of the member who left or was removed.";
12360
+ readonly type: "string";
12361
+ readonly format: "did";
12362
+ };
12363
+ };
12364
+ };
12365
+ readonly eventGroupChatUpdated: {
12366
+ readonly type: "object";
12367
+ readonly description: "Fired when a group chat's metadata or status changes.";
12368
+ readonly required: ["actorDid", "convoCreatedAt", "convoId", "createdAt", "groupMemberCount", "groupName", "ownerDid", "rev", "updateType"];
12369
+ readonly properties: {
12370
+ readonly actorDid: {
12371
+ readonly description: "The DID of the actor performing the action (the owner).";
12372
+ readonly type: "string";
12373
+ readonly format: "did";
12374
+ };
12375
+ readonly convoCreatedAt: {
12376
+ readonly description: "When the group was originally created.";
12377
+ readonly type: "string";
12378
+ readonly format: "datetime";
12379
+ };
12380
+ readonly convoId: {
12381
+ readonly type: "string";
12382
+ };
12383
+ readonly createdAt: {
12384
+ readonly type: "string";
12385
+ readonly format: "datetime";
12386
+ };
12387
+ readonly groupMemberCount: {
12388
+ readonly description: "Current member count at the time of the event.";
12389
+ readonly type: "integer";
12390
+ };
12391
+ readonly groupName: {
12392
+ readonly description: "Current group name.";
12393
+ readonly type: "string";
12394
+ };
12395
+ readonly joinLinkCode: {
12396
+ readonly description: "The code of the join link. Only present when updateType is join-link-related.";
12397
+ readonly type: "string";
12398
+ };
12399
+ readonly joinLinkFollowersOnly: {
12400
+ readonly description: "Whether the join link is restricted to followers of the owner. Only present when updateType is join-link-related.";
12401
+ readonly type: "boolean";
12402
+ };
12403
+ readonly joinLinkRequiresApproval: {
12404
+ readonly description: "Whether the join link requires owner approval to join. Only present when updateType is join-link-related.";
12405
+ readonly type: "boolean";
12406
+ };
12407
+ readonly lockReason: {
12408
+ readonly description: "Why the group was locked. Only present when updateType is 'locked'.";
12409
+ readonly type: "string";
12410
+ readonly knownValues: ["owner_action", "owner_left", "owner_deactivated", "owner_deleted", "owner_taken_down", "label_applied"];
12411
+ };
12412
+ readonly newName: {
12413
+ readonly description: "The new group name. Only present when updateType is 'name_changed'.";
12414
+ readonly type: "string";
12415
+ };
12416
+ readonly oldName: {
12417
+ readonly description: "The previous group name. Only present when updateType is 'name_changed'.";
12418
+ readonly type: "string";
12419
+ };
12420
+ readonly ownerDid: {
12421
+ readonly description: "The DID of the group chat owner.";
12422
+ readonly type: "string";
12423
+ readonly format: "did";
12424
+ };
12425
+ readonly rev: {
12426
+ readonly type: "string";
12427
+ };
12428
+ readonly updateType: {
12429
+ readonly description: "What changed.";
12430
+ readonly type: "string";
12431
+ readonly knownValues: ["name_changed", "locked", "locked_permanently", "unlocked", "join_link_created", "join_link_disabled", "join_link_settings_changed"];
12432
+ };
12433
+ };
12434
+ };
12435
+ };
12436
+ };
12437
+ readonly ChatBskyModerationUpdateActorAccess: {
12438
+ readonly lexicon: 1;
12439
+ readonly id: "chat.bsky.moderation.updateActorAccess";
12440
+ readonly defs: {
12441
+ readonly main: {
12442
+ readonly type: "procedure";
12443
+ readonly input: {
12444
+ readonly encoding: "application/json";
12445
+ readonly schema: {
12446
+ readonly type: "object";
12447
+ readonly required: ["actor", "allowAccess"];
12448
+ readonly properties: {
12449
+ readonly actor: {
12450
+ readonly type: "string";
12451
+ readonly format: "did";
12452
+ };
12453
+ readonly allowAccess: {
12454
+ readonly type: "boolean";
12455
+ };
12456
+ readonly ref: {
12457
+ readonly type: "string";
12458
+ };
12459
+ };
12460
+ };
12461
+ };
12462
+ };
12463
+ };
12464
+ };
12465
+ readonly ComAtprotoAdminDefs: {
12466
+ readonly lexicon: 1;
12467
+ readonly id: "com.atproto.admin.defs";
12468
+ readonly defs: {
12469
+ readonly statusAttr: {
12470
+ readonly type: "object";
12471
+ readonly required: ["applied"];
12472
+ readonly properties: {
12473
+ readonly applied: {
12474
+ readonly type: "boolean";
12475
+ };
12476
+ readonly ref: {
12477
+ readonly type: "string";
12478
+ };
12479
+ };
12480
+ };
12481
+ readonly accountView: {
12482
+ readonly type: "object";
12483
+ readonly required: ["did", "handle", "indexedAt"];
12484
+ readonly properties: {
12485
+ readonly did: {
12486
+ readonly type: "string";
12487
+ readonly format: "did";
12488
+ };
12489
+ readonly handle: {
12490
+ readonly type: "string";
12491
+ readonly format: "handle";
12492
+ };
12493
+ readonly email: {
12494
+ readonly type: "string";
12495
+ };
12496
+ readonly relatedRecords: {
12497
+ readonly type: "array";
12498
+ readonly items: {
12499
+ readonly type: "unknown";
12500
+ };
12501
+ };
12502
+ readonly indexedAt: {
12503
+ readonly type: "string";
12504
+ readonly format: "datetime";
12505
+ };
12506
+ readonly invitedBy: {
12507
+ readonly type: "ref";
12508
+ readonly ref: "lex:com.atproto.server.defs#inviteCode";
12509
+ };
12510
+ readonly invites: {
12511
+ readonly type: "array";
12512
+ readonly items: {
12513
+ readonly type: "ref";
12514
+ readonly ref: "lex:com.atproto.server.defs#inviteCode";
12515
+ };
12516
+ };
12517
+ readonly invitesDisabled: {
12518
+ readonly type: "boolean";
12519
+ };
12520
+ readonly emailConfirmedAt: {
12521
+ readonly type: "string";
12522
+ readonly format: "datetime";
12523
+ };
12524
+ readonly inviteNote: {
12525
+ readonly type: "string";
12526
+ };
12527
+ readonly deactivatedAt: {
12528
+ readonly type: "string";
12529
+ readonly format: "datetime";
12530
+ };
12531
+ readonly threatSignatures: {
12532
+ readonly type: "array";
12533
+ readonly items: {
12534
+ readonly type: "ref";
12535
+ readonly ref: "lex:com.atproto.admin.defs#threatSignature";
12536
+ };
12537
+ };
12538
+ };
12539
+ };
12540
+ readonly repoRef: {
12541
+ readonly type: "object";
12542
+ readonly required: ["did"];
12543
+ readonly properties: {
12544
+ readonly did: {
12545
+ readonly type: "string";
12546
+ readonly format: "did";
12547
+ };
12548
+ };
12549
+ };
12550
+ readonly repoBlobRef: {
12551
+ readonly type: "object";
12552
+ readonly required: ["did", "cid"];
12553
+ readonly properties: {
12554
+ readonly did: {
12555
+ readonly type: "string";
12556
+ readonly format: "did";
12557
+ };
12558
+ readonly cid: {
12559
+ readonly type: "string";
12560
+ readonly format: "cid";
12561
+ };
12562
+ readonly recordUri: {
12563
+ readonly type: "string";
12564
+ readonly format: "at-uri";
12565
+ };
12566
+ };
12567
+ };
12568
+ readonly threatSignature: {
12569
+ readonly type: "object";
12570
+ readonly required: ["property", "value"];
12571
+ readonly properties: {
12572
+ readonly property: {
12573
+ readonly type: "string";
12574
+ };
12575
+ readonly value: {
12576
+ readonly type: "string";
12577
+ };
12578
+ };
12579
+ };
12580
+ };
12581
+ };
12582
+ readonly ComAtprotoAdminDeleteAccount: {
12583
+ readonly lexicon: 1;
12584
+ readonly id: "com.atproto.admin.deleteAccount";
12585
+ readonly defs: {
12586
+ readonly main: {
12587
+ readonly type: "procedure";
12588
+ readonly description: "Delete a user account as an administrator.";
12589
+ readonly input: {
12590
+ readonly encoding: "application/json";
12591
+ readonly schema: {
12592
+ readonly type: "object";
12593
+ readonly required: ["did"];
12122
12594
  readonly properties: {
12123
12595
  readonly did: {
12124
12596
  readonly type: "string";
@@ -25058,9 +25530,12 @@ export declare const schemas: ({
25058
25530
  readonly accept: ["image/*"];
25059
25531
  readonly maxSize: 1000000;
25060
25532
  };
25061
- readonly associatedRecord: {
25062
- readonly type: "string";
25063
- readonly format: "at-uri";
25533
+ readonly associatedRecords: {
25534
+ readonly type: "array";
25535
+ readonly items: {
25536
+ readonly type: "ref";
25537
+ readonly ref: "lex:com.atproto.repo.strongRef";
25538
+ };
25064
25539
  readonly description: "The URI of the Atmosphere record representing this external content, if it exists. Example: a site.standard.document record.";
25065
25540
  };
25066
25541
  };
@@ -31722,6 +32197,19 @@ export declare const schemas: ({
31722
32197
  readonly type: "string";
31723
32198
  readonly knownValues: ["request", "accepted"];
31724
32199
  };
32200
+ readonly convoRef: {
32201
+ readonly type: "object";
32202
+ readonly required: ["did", "convoId"];
32203
+ readonly properties: {
32204
+ readonly did: {
32205
+ readonly type: "string";
32206
+ readonly format: "did";
32207
+ };
32208
+ readonly convoId: {
32209
+ readonly type: "string";
32210
+ };
32211
+ };
32212
+ };
31725
32213
  readonly messageRef: {
31726
32214
  readonly type: "object";
31727
32215
  readonly required: ["did", "messageId", "convoId"];
@@ -32060,7 +32548,7 @@ export declare const schemas: ({
32060
32548
  readonly type: "string";
32061
32549
  };
32062
32550
  readonly members: {
32063
- readonly description: "Members of this conversation. For direct convos, it will be an immutable list of the 2 members. For group convos, it will a list of important members (the first few members, the viewer, the member who invited the viewer, the member who sent the last message, the member who sent the last reaction), but will not contain the full list of members. Use chat.bsky.convo.getConvoMembers to list all members.";
32551
+ readonly description: "Members of this conversation. For direct convos, it will be an immutable list of the 2 members. For group convos, it will a list of important members (the first few members, the viewer, the member who added the viewer, the member who sent the last message, the member who sent the last reaction), but will not contain the full list of members. Use chat.bsky.convo.getConvoMembers to list all members.";
32064
32552
  readonly type: "array";
32065
32553
  readonly items: {
32066
32554
  readonly type: "ref";
@@ -33506,7 +33994,7 @@ export declare const schemas: ({
33506
33994
  }, {
33507
33995
  readonly name: "BlockedActor";
33508
33996
  }, {
33509
- readonly name: "GroupInvitesDisabled";
33997
+ readonly name: "UserForbidsGroups";
33510
33998
  }, {
33511
33999
  readonly name: "ConvoLocked";
33512
34000
  }, {
@@ -33619,7 +34107,7 @@ export declare const schemas: ({
33619
34107
  }, {
33620
34108
  readonly name: "BlockedActor";
33621
34109
  }, {
33622
- readonly name: "GroupInvitesDisabled";
34110
+ readonly name: "UserForbidsGroups";
33623
34111
  }, {
33624
34112
  readonly name: "NotFollowedBySender";
33625
34113
  }, {
@@ -34269,10 +34757,19 @@ export declare const schemas: ({
34269
34757
  readonly before: {
34270
34758
  readonly type: "integer";
34271
34759
  readonly default: 5;
34760
+ readonly description: "Number of user messages before the target to include. System messages between the earliest returned user message and the target are also included, capped per gap by `maxInterleavedSystemMessages`. If there are no user messages before the target, up to `maxInterleavedSystemMessages` system messages immediately preceding the target are returned instead.";
34272
34761
  };
34273
34762
  readonly after: {
34274
34763
  readonly type: "integer";
34275
34764
  readonly default: 5;
34765
+ readonly description: "Number of user messages after the target to include. System messages between the target and the latest returned user message are also included, capped per gap by `maxInterleavedSystemMessages`. If there are no user messages after the target, up to `maxInterleavedSystemMessages` system messages immediately following the target are returned instead.";
34766
+ };
34767
+ readonly maxInterleavedSystemMessages: {
34768
+ readonly type: "integer";
34769
+ readonly default: 10;
34770
+ readonly minimum: 0;
34771
+ readonly maximum: 1000;
34772
+ readonly description: "Maximum number of system messages to include per gap between consecutive returned messages (and per side when there are no user messages on that side). Within a gap, the system messages closest to the earlier message are kept.";
34276
34773
  };
34277
34774
  };
34278
34775
  };
@@ -34286,7 +34783,7 @@ export declare const schemas: ({
34286
34783
  readonly type: "array";
34287
34784
  readonly items: {
34288
34785
  readonly type: "union";
34289
- readonly refs: ["lex:chat.bsky.convo.defs#messageView", "lex:chat.bsky.convo.defs#deletedMessageView", "lex:chat.bsky.convo.defs#systemMessageView"];
34786
+ readonly refs: ["lex:chat.bsky.convo.defs#messageView", "lex:chat.bsky.convo.defs#systemMessageView"];
34290
34787
  };
34291
34788
  };
34292
34789
  };
@@ -34313,7 +34810,7 @@ export declare const schemas: ({
34313
34810
  readonly message: {
34314
34811
  readonly schema: {
34315
34812
  readonly type: "union";
34316
- readonly refs: ["lex:chat.bsky.moderation.subscribeModEvents#eventConvoFirstMessage"];
34813
+ readonly refs: ["lex:chat.bsky.moderation.subscribeModEvents#eventConvoFirstMessage", "lex:chat.bsky.moderation.subscribeModEvents#eventGroupChatCreated", "lex:chat.bsky.moderation.subscribeModEvents#eventGroupChatMemberAdded", "lex:chat.bsky.moderation.subscribeModEvents#eventGroupChatMemberJoined", "lex:chat.bsky.moderation.subscribeModEvents#eventGroupChatJoinRequest", "lex:chat.bsky.moderation.subscribeModEvents#eventGroupChatJoinRequestApproved", "lex:chat.bsky.moderation.subscribeModEvents#eventGroupChatJoinRequestRejected", "lex:chat.bsky.moderation.subscribeModEvents#eventChatAccepted", "lex:chat.bsky.moderation.subscribeModEvents#eventGroupChatMemberLeft", "lex:chat.bsky.moderation.subscribeModEvents#eventGroupChatUpdated"];
34317
34814
  };
34318
34815
  };
34319
34816
  readonly errors: [{
@@ -34325,6 +34822,7 @@ export declare const schemas: ({
34325
34822
  };
34326
34823
  readonly eventConvoFirstMessage: {
34327
34824
  readonly type: "object";
34825
+ readonly description: "Fired when the first message was sent on a convo.";
34328
34826
  readonly required: ["createdAt", "rev", "convoId", "user", "recipients"];
34329
34827
  readonly properties: {
34330
34828
  readonly convoId: {
@@ -34355,6 +34853,452 @@ export declare const schemas: ({
34355
34853
  };
34356
34854
  };
34357
34855
  };
34856
+ readonly eventGroupChatCreated: {
34857
+ readonly type: "object";
34858
+ readonly description: "Fire when a group chat is created.";
34859
+ readonly required: ["actorDid", "convoCreatedAt", "convoId", "createdAt", "groupMemberCount", "groupName", "initialMemberDids", "ownerDid", "rev"];
34860
+ readonly properties: {
34861
+ readonly actorDid: {
34862
+ readonly description: "The DID of the actor performing the action. For this event, same as ownerDid.";
34863
+ readonly type: "string";
34864
+ readonly format: "did";
34865
+ };
34866
+ readonly convoCreatedAt: {
34867
+ readonly description: "When the group was originally created.";
34868
+ readonly type: "string";
34869
+ readonly format: "datetime";
34870
+ };
34871
+ readonly convoId: {
34872
+ readonly type: "string";
34873
+ };
34874
+ readonly createdAt: {
34875
+ readonly type: "string";
34876
+ readonly format: "datetime";
34877
+ };
34878
+ readonly groupMemberCount: {
34879
+ readonly description: "Current member count at the time of the event.";
34880
+ readonly type: "integer";
34881
+ };
34882
+ readonly groupName: {
34883
+ readonly description: "The name set at creation time.";
34884
+ readonly type: "string";
34885
+ };
34886
+ readonly initialMemberDids: {
34887
+ readonly description: "DIDs of everyone added at creation time.";
34888
+ readonly type: "array";
34889
+ readonly items: {
34890
+ readonly type: "string";
34891
+ readonly format: "did";
34892
+ };
34893
+ };
34894
+ readonly ownerDid: {
34895
+ readonly description: "The DID of the group chat owner.";
34896
+ readonly type: "string";
34897
+ readonly format: "did";
34898
+ };
34899
+ readonly rev: {
34900
+ readonly type: "string";
34901
+ };
34902
+ };
34903
+ };
34904
+ readonly eventGroupChatMemberAdded: {
34905
+ readonly type: "object";
34906
+ readonly description: "Fired when a member is added to a group chat. Note that members are added in the 'request' state.";
34907
+ readonly required: ["actorDid", "convoCreatedAt", "convoId", "createdAt", "groupMemberCount", "groupName", "ownerDid", "requestMembersCount", "rev", "subjectDid", "subjectFollowsOwner"];
34908
+ readonly properties: {
34909
+ readonly actorDid: {
34910
+ readonly description: "The DID of the actor performing the action. For this event, same as ownerDid.";
34911
+ readonly type: "string";
34912
+ readonly format: "did";
34913
+ };
34914
+ readonly convoCreatedAt: {
34915
+ readonly description: "When the group was originally created.";
34916
+ readonly type: "string";
34917
+ readonly format: "datetime";
34918
+ };
34919
+ readonly convoId: {
34920
+ readonly type: "string";
34921
+ };
34922
+ readonly createdAt: {
34923
+ readonly type: "string";
34924
+ readonly format: "datetime";
34925
+ };
34926
+ readonly groupMemberCount: {
34927
+ readonly description: "Current member count at the time of the event.";
34928
+ readonly type: "integer";
34929
+ };
34930
+ readonly groupName: {
34931
+ readonly type: "string";
34932
+ };
34933
+ readonly ownerDid: {
34934
+ readonly description: "The DID of the group chat owner.";
34935
+ readonly type: "string";
34936
+ readonly format: "did";
34937
+ };
34938
+ readonly requestMembersCount: {
34939
+ readonly description: "The number of members who have not yet accepted the convo.";
34940
+ readonly type: "integer";
34941
+ };
34942
+ readonly rev: {
34943
+ readonly type: "string";
34944
+ };
34945
+ readonly subjectDid: {
34946
+ readonly description: "The DID of the member who was added.";
34947
+ readonly type: "string";
34948
+ readonly format: "did";
34949
+ };
34950
+ readonly subjectFollowsOwner: {
34951
+ readonly description: "Whether the added member follows the group owner.";
34952
+ readonly type: "boolean";
34953
+ };
34954
+ };
34955
+ };
34956
+ readonly eventGroupChatMemberJoined: {
34957
+ readonly type: "object";
34958
+ readonly description: "Fired when a member joins a group chat via an join link that does not require approval.";
34959
+ readonly required: ["actorDid", "convoCreatedAt", "convoId", "createdAt", "groupMemberCount", "groupName", "joinLinkCode", "ownerDid", "rev", "subjectFollowsOwner"];
34960
+ readonly properties: {
34961
+ readonly actorDid: {
34962
+ readonly description: "The DID of the person joining.";
34963
+ readonly type: "string";
34964
+ readonly format: "did";
34965
+ };
34966
+ readonly convoCreatedAt: {
34967
+ readonly description: "When the group was originally created.";
34968
+ readonly type: "string";
34969
+ readonly format: "datetime";
34970
+ };
34971
+ readonly convoId: {
34972
+ readonly type: "string";
34973
+ };
34974
+ readonly createdAt: {
34975
+ readonly type: "string";
34976
+ readonly format: "datetime";
34977
+ };
34978
+ readonly groupMemberCount: {
34979
+ readonly description: "Current member count at the time of the event.";
34980
+ readonly type: "integer";
34981
+ };
34982
+ readonly groupName: {
34983
+ readonly type: "string";
34984
+ };
34985
+ readonly joinLinkCode: {
34986
+ readonly description: "The code of the join link used to join.";
34987
+ readonly type: "string";
34988
+ };
34989
+ readonly ownerDid: {
34990
+ readonly description: "The DID of the group chat owner.";
34991
+ readonly type: "string";
34992
+ readonly format: "did";
34993
+ };
34994
+ readonly rev: {
34995
+ readonly type: "string";
34996
+ };
34997
+ readonly subjectFollowsOwner: {
34998
+ readonly description: "Whether the joining member follows the group owner.";
34999
+ readonly type: "boolean";
35000
+ };
35001
+ };
35002
+ };
35003
+ readonly eventGroupChatJoinRequest: {
35004
+ readonly type: "object";
35005
+ readonly description: "Fired when a user requests to join a group chat via an join link that requires approval.";
35006
+ readonly required: ["actorDid", "convoCreatedAt", "convoId", "createdAt", "groupMemberCount", "groupName", "joinLinkCode", "ownerDid", "rev", "subjectFollowsOwner"];
35007
+ readonly properties: {
35008
+ readonly actorDid: {
35009
+ readonly description: "The DID of the person requesting to join.";
35010
+ readonly type: "string";
35011
+ readonly format: "did";
35012
+ };
35013
+ readonly convoCreatedAt: {
35014
+ readonly description: "When the group was originally created.";
35015
+ readonly type: "string";
35016
+ readonly format: "datetime";
35017
+ };
35018
+ readonly convoId: {
35019
+ readonly type: "string";
35020
+ };
35021
+ readonly createdAt: {
35022
+ readonly type: "string";
35023
+ readonly format: "datetime";
35024
+ };
35025
+ readonly groupMemberCount: {
35026
+ readonly description: "Current member count at the time of the event.";
35027
+ readonly type: "integer";
35028
+ };
35029
+ readonly groupName: {
35030
+ readonly type: "string";
35031
+ };
35032
+ readonly joinLinkCode: {
35033
+ readonly description: "The code of the join link used to request joining.";
35034
+ readonly type: "string";
35035
+ };
35036
+ readonly ownerDid: {
35037
+ readonly description: "The DID of the group chat owner.";
35038
+ readonly type: "string";
35039
+ readonly format: "did";
35040
+ };
35041
+ readonly rev: {
35042
+ readonly type: "string";
35043
+ };
35044
+ readonly subjectFollowsOwner: {
35045
+ readonly description: "Whether the requesting member follows the group owner.";
35046
+ readonly type: "boolean";
35047
+ };
35048
+ };
35049
+ };
35050
+ readonly eventGroupChatJoinRequestApproved: {
35051
+ readonly type: "object";
35052
+ readonly description: "Fired when a join request is approved by the group owner.";
35053
+ readonly required: ["actorDid", "convoCreatedAt", "convoId", "createdAt", "groupMemberCount", "groupName", "ownerDid", "rev", "subjectDid"];
35054
+ readonly properties: {
35055
+ readonly actorDid: {
35056
+ readonly description: "The DID of the owner approving the request.";
35057
+ readonly type: "string";
35058
+ readonly format: "did";
35059
+ };
35060
+ readonly convoCreatedAt: {
35061
+ readonly description: "When the group was originally created.";
35062
+ readonly type: "string";
35063
+ readonly format: "datetime";
35064
+ };
35065
+ readonly convoId: {
35066
+ readonly type: "string";
35067
+ };
35068
+ readonly createdAt: {
35069
+ readonly type: "string";
35070
+ readonly format: "datetime";
35071
+ };
35072
+ readonly groupMemberCount: {
35073
+ readonly description: "Current member count at the time of the event.";
35074
+ readonly type: "integer";
35075
+ };
35076
+ readonly groupName: {
35077
+ readonly type: "string";
35078
+ };
35079
+ readonly ownerDid: {
35080
+ readonly description: "The DID of the group chat owner.";
35081
+ readonly type: "string";
35082
+ readonly format: "did";
35083
+ };
35084
+ readonly rev: {
35085
+ readonly type: "string";
35086
+ };
35087
+ readonly subjectDid: {
35088
+ readonly description: "The DID of the member whose request was approved.";
35089
+ readonly type: "string";
35090
+ readonly format: "did";
35091
+ };
35092
+ };
35093
+ };
35094
+ readonly eventGroupChatJoinRequestRejected: {
35095
+ readonly type: "object";
35096
+ readonly description: "Fired when a join request is rejected by the group owner.";
35097
+ readonly required: ["actorDid", "convoCreatedAt", "convoId", "createdAt", "groupMemberCount", "groupName", "ownerDid", "rev", "subjectDid"];
35098
+ readonly properties: {
35099
+ readonly actorDid: {
35100
+ readonly description: "The DID of the owner rejecting the request.";
35101
+ readonly type: "string";
35102
+ readonly format: "did";
35103
+ };
35104
+ readonly convoCreatedAt: {
35105
+ readonly description: "When the group was originally created.";
35106
+ readonly type: "string";
35107
+ readonly format: "datetime";
35108
+ };
35109
+ readonly convoId: {
35110
+ readonly type: "string";
35111
+ };
35112
+ readonly createdAt: {
35113
+ readonly type: "string";
35114
+ readonly format: "datetime";
35115
+ };
35116
+ readonly groupMemberCount: {
35117
+ readonly description: "Current member count at the time of the event.";
35118
+ readonly type: "integer";
35119
+ };
35120
+ readonly groupName: {
35121
+ readonly type: "string";
35122
+ };
35123
+ readonly ownerDid: {
35124
+ readonly description: "The DID of the group chat owner.";
35125
+ readonly type: "string";
35126
+ readonly format: "did";
35127
+ };
35128
+ readonly rev: {
35129
+ readonly type: "string";
35130
+ };
35131
+ readonly subjectDid: {
35132
+ readonly description: "The DID of the member whose request was rejected.";
35133
+ readonly type: "string";
35134
+ readonly format: "did";
35135
+ };
35136
+ };
35137
+ };
35138
+ readonly eventChatAccepted: {
35139
+ readonly type: "object";
35140
+ readonly description: "Fired when a user accepts a chat convo, either explicitly or by sending a message.";
35141
+ readonly required: ["actorDid", "convoCreatedAt", "convoId", "createdAt", "method", "rev"];
35142
+ readonly properties: {
35143
+ readonly actorDid: {
35144
+ readonly description: "The DID of the person accepting the convo.";
35145
+ readonly type: "string";
35146
+ readonly format: "did";
35147
+ };
35148
+ readonly convoCreatedAt: {
35149
+ readonly description: "When the convo was originally created.";
35150
+ readonly type: "string";
35151
+ readonly format: "datetime";
35152
+ };
35153
+ readonly convoId: {
35154
+ readonly type: "string";
35155
+ };
35156
+ readonly createdAt: {
35157
+ readonly type: "string";
35158
+ readonly format: "datetime";
35159
+ };
35160
+ readonly groupMemberCount: {
35161
+ readonly description: "Current member count at the time of the event. Only present for group convos.";
35162
+ readonly type: "integer";
35163
+ };
35164
+ readonly groupName: {
35165
+ readonly description: "The name of the group chat. Only present for group convos.";
35166
+ readonly type: "string";
35167
+ };
35168
+ readonly method: {
35169
+ readonly description: "How the convo was accepted.";
35170
+ readonly type: "string";
35171
+ readonly knownValues: ["explicit", "message"];
35172
+ };
35173
+ readonly ownerDid: {
35174
+ readonly description: "The DID of the group chat owner. Only present for group convos.";
35175
+ readonly type: "string";
35176
+ readonly format: "did";
35177
+ };
35178
+ readonly rev: {
35179
+ readonly type: "string";
35180
+ };
35181
+ };
35182
+ };
35183
+ readonly eventGroupChatMemberLeft: {
35184
+ readonly type: "object";
35185
+ readonly description: "Fired when a member leaves or is removed from a group chat.";
35186
+ readonly required: ["actorDid", "convoCreatedAt", "convoId", "createdAt", "groupMemberCount", "groupName", "leaveMethod", "ownerDid", "rev", "subjectDid"];
35187
+ readonly properties: {
35188
+ readonly actorDid: {
35189
+ readonly description: "The DID of the actor. For voluntary: the person leaving. For kicked: the owner.";
35190
+ readonly type: "string";
35191
+ readonly format: "did";
35192
+ };
35193
+ readonly convoCreatedAt: {
35194
+ readonly description: "When the group was originally created.";
35195
+ readonly type: "string";
35196
+ readonly format: "datetime";
35197
+ };
35198
+ readonly convoId: {
35199
+ readonly type: "string";
35200
+ };
35201
+ readonly createdAt: {
35202
+ readonly type: "string";
35203
+ readonly format: "datetime";
35204
+ };
35205
+ readonly groupMemberCount: {
35206
+ readonly description: "Current member count at the time of the event.";
35207
+ readonly type: "integer";
35208
+ };
35209
+ readonly groupName: {
35210
+ readonly type: "string";
35211
+ };
35212
+ readonly leaveMethod: {
35213
+ readonly description: "How the member left.";
35214
+ readonly type: "string";
35215
+ readonly knownValues: ["voluntary", "kicked"];
35216
+ };
35217
+ readonly ownerDid: {
35218
+ readonly description: "The DID of the group chat owner.";
35219
+ readonly type: "string";
35220
+ readonly format: "did";
35221
+ };
35222
+ readonly rev: {
35223
+ readonly type: "string";
35224
+ };
35225
+ readonly subjectDid: {
35226
+ readonly description: "The DID of the member who left or was removed.";
35227
+ readonly type: "string";
35228
+ readonly format: "did";
35229
+ };
35230
+ };
35231
+ };
35232
+ readonly eventGroupChatUpdated: {
35233
+ readonly type: "object";
35234
+ readonly description: "Fired when a group chat's metadata or status changes.";
35235
+ readonly required: ["actorDid", "convoCreatedAt", "convoId", "createdAt", "groupMemberCount", "groupName", "ownerDid", "rev", "updateType"];
35236
+ readonly properties: {
35237
+ readonly actorDid: {
35238
+ readonly description: "The DID of the actor performing the action (the owner).";
35239
+ readonly type: "string";
35240
+ readonly format: "did";
35241
+ };
35242
+ readonly convoCreatedAt: {
35243
+ readonly description: "When the group was originally created.";
35244
+ readonly type: "string";
35245
+ readonly format: "datetime";
35246
+ };
35247
+ readonly convoId: {
35248
+ readonly type: "string";
35249
+ };
35250
+ readonly createdAt: {
35251
+ readonly type: "string";
35252
+ readonly format: "datetime";
35253
+ };
35254
+ readonly groupMemberCount: {
35255
+ readonly description: "Current member count at the time of the event.";
35256
+ readonly type: "integer";
35257
+ };
35258
+ readonly groupName: {
35259
+ readonly description: "Current group name.";
35260
+ readonly type: "string";
35261
+ };
35262
+ readonly joinLinkCode: {
35263
+ readonly description: "The code of the join link. Only present when updateType is join-link-related.";
35264
+ readonly type: "string";
35265
+ };
35266
+ readonly joinLinkFollowersOnly: {
35267
+ readonly description: "Whether the join link is restricted to followers of the owner. Only present when updateType is join-link-related.";
35268
+ readonly type: "boolean";
35269
+ };
35270
+ readonly joinLinkRequiresApproval: {
35271
+ readonly description: "Whether the join link requires owner approval to join. Only present when updateType is join-link-related.";
35272
+ readonly type: "boolean";
35273
+ };
35274
+ readonly lockReason: {
35275
+ readonly description: "Why the group was locked. Only present when updateType is 'locked'.";
35276
+ readonly type: "string";
35277
+ readonly knownValues: ["owner_action", "owner_left", "owner_deactivated", "owner_deleted", "owner_taken_down", "label_applied"];
35278
+ };
35279
+ readonly newName: {
35280
+ readonly description: "The new group name. Only present when updateType is 'name_changed'.";
35281
+ readonly type: "string";
35282
+ };
35283
+ readonly oldName: {
35284
+ readonly description: "The previous group name. Only present when updateType is 'name_changed'.";
35285
+ readonly type: "string";
35286
+ };
35287
+ readonly ownerDid: {
35288
+ readonly description: "The DID of the group chat owner.";
35289
+ readonly type: "string";
35290
+ readonly format: "did";
35291
+ };
35292
+ readonly rev: {
35293
+ readonly type: "string";
35294
+ };
35295
+ readonly updateType: {
35296
+ readonly description: "What changed.";
35297
+ readonly type: "string";
35298
+ readonly knownValues: ["name_changed", "locked", "locked_permanently", "unlocked", "join_link_created", "join_link_disabled", "join_link_settings_changed"];
35299
+ };
35300
+ };
35301
+ };
34358
35302
  };
34359
35303
  } | {
34360
35304
  readonly lexicon: 1;