Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
// Lexicon schema: chat.bsky.moderation.subscribeModEvents
package chat
// ModerationSubscribeModEvents_EventChatAccepted is a "eventChatAccepted" in the chat.bsky.moderation.subscribeModEvents schema.//// Fired when a user accepts a chat convo, either explicitly or by sending a message.type ModerationSubscribeModEvents_EventChatAccepted struct { // actorDid: The DID of the person accepting the convo. ActorDid string `json:"actorDid" cborgen:"actorDid"` // convoCreatedAt: When the convo was originally created. ConvoCreatedAt string `json:"convoCreatedAt" cborgen:"convoCreatedAt"` ConvoId string `json:"convoId" cborgen:"convoId"` CreatedAt string `json:"createdAt" cborgen:"createdAt"` // groupMemberCount: Current member count at the time of the event. Only present for group convos. GroupMemberCount *int64 `json:"groupMemberCount,omitempty" cborgen:"groupMemberCount,omitempty"` // groupName: The name of the group chat. Only present for group convos. GroupName *string `json:"groupName,omitempty" cborgen:"groupName,omitempty"` // method: How the convo was accepted. Method string `json:"method" cborgen:"method"` // ownerDid: The DID of the group chat owner. Only present for group convos. OwnerDid *string `json:"ownerDid,omitempty" cborgen:"ownerDid,omitempty"` Rev string `json:"rev" cborgen:"rev"`}
// ModerationSubscribeModEvents_EventConvoFirstMessage is a "eventConvoFirstMessage" in the chat.bsky.moderation.subscribeModEvents schema.//// Fired when the first message was sent on a convo.type ModerationSubscribeModEvents_EventConvoFirstMessage struct { ConvoId string `json:"convoId" cborgen:"convoId"` CreatedAt string `json:"createdAt" cborgen:"createdAt"` MessageId *string `json:"messageId,omitempty" cborgen:"messageId,omitempty"` // recipients: The list of DIDs message recipients. Does not include the sender, which is in the `user` field Recipients []string `json:"recipients" cborgen:"recipients"` Rev string `json:"rev" cborgen:"rev"` // user: The DID of the message author. User string `json:"user" cborgen:"user"`}
// ModerationSubscribeModEvents_EventGroupChatCreated is a "eventGroupChatCreated" in the chat.bsky.moderation.subscribeModEvents schema.//// Fire when a group chat is created.type ModerationSubscribeModEvents_EventGroupChatCreated struct { // actorDid: The DID of the actor performing the action. For this event, same as ownerDid. ActorDid string `json:"actorDid" cborgen:"actorDid"` // convoCreatedAt: When the group was originally created. ConvoCreatedAt string `json:"convoCreatedAt" cborgen:"convoCreatedAt"` ConvoId string `json:"convoId" cborgen:"convoId"` CreatedAt string `json:"createdAt" cborgen:"createdAt"` // groupMemberCount: Current member count at the time of the event. GroupMemberCount int64 `json:"groupMemberCount" cborgen:"groupMemberCount"` // groupName: The name set at creation time. GroupName string `json:"groupName" cborgen:"groupName"` // initialMemberDids: DIDs of everyone added at creation time. InitialMemberDids []string `json:"initialMemberDids" cborgen:"initialMemberDids"` // ownerDid: The DID of the group chat owner. OwnerDid string `json:"ownerDid" cborgen:"ownerDid"` Rev string `json:"rev" cborgen:"rev"`}
// ModerationSubscribeModEvents_EventGroupChatJoinRequest is a "eventGroupChatJoinRequest" in the chat.bsky.moderation.subscribeModEvents schema.//// Fired when a user requests to join a group chat via an join link that requires approval.type ModerationSubscribeModEvents_EventGroupChatJoinRequest struct { // actorDid: The DID of the person requesting to join. ActorDid string `json:"actorDid" cborgen:"actorDid"` // convoCreatedAt: When the group was originally created. ConvoCreatedAt string `json:"convoCreatedAt" cborgen:"convoCreatedAt"` ConvoId string `json:"convoId" cborgen:"convoId"` CreatedAt string `json:"createdAt" cborgen:"createdAt"` // groupMemberCount: Current member count at the time of the event. GroupMemberCount int64 `json:"groupMemberCount" cborgen:"groupMemberCount"` GroupName string `json:"groupName" cborgen:"groupName"` // joinLinkCode: The code of the join link used to request joining. JoinLinkCode string `json:"joinLinkCode" cborgen:"joinLinkCode"` // ownerDid: The DID of the group chat owner. OwnerDid string `json:"ownerDid" cborgen:"ownerDid"` Rev string `json:"rev" cborgen:"rev"` // subjectFollowsOwner: Whether the requesting member follows the group owner. SubjectFollowsOwner bool `json:"subjectFollowsOwner" cborgen:"subjectFollowsOwner"`}
// ModerationSubscribeModEvents_EventGroupChatJoinRequestApproved is a "eventGroupChatJoinRequestApproved" in the chat.bsky.moderation.subscribeModEvents schema.//// Fired when a join request is approved by the group owner.type ModerationSubscribeModEvents_EventGroupChatJoinRequestApproved struct { // actorDid: The DID of the owner approving the request. ActorDid string `json:"actorDid" cborgen:"actorDid"` // convoCreatedAt: When the group was originally created. ConvoCreatedAt string `json:"convoCreatedAt" cborgen:"convoCreatedAt"` ConvoId string `json:"convoId" cborgen:"convoId"` CreatedAt string `json:"createdAt" cborgen:"createdAt"` // groupMemberCount: Current member count at the time of the event. GroupMemberCount int64 `json:"groupMemberCount" cborgen:"groupMemberCount"` GroupName string `json:"groupName" cborgen:"groupName"` // ownerDid: The DID of the group chat owner. OwnerDid string `json:"ownerDid" cborgen:"ownerDid"` Rev string `json:"rev" cborgen:"rev"` // subjectDid: The DID of the member whose request was approved. SubjectDid string `json:"subjectDid" cborgen:"subjectDid"`}
// ModerationSubscribeModEvents_EventGroupChatJoinRequestRejected is a "eventGroupChatJoinRequestRejected" in the chat.bsky.moderation.subscribeModEvents schema.//// Fired when a join request is rejected by the group owner.type ModerationSubscribeModEvents_EventGroupChatJoinRequestRejected struct { // actorDid: The DID of the owner rejecting the request. ActorDid string `json:"actorDid" cborgen:"actorDid"` // convoCreatedAt: When the group was originally created. ConvoCreatedAt string `json:"convoCreatedAt" cborgen:"convoCreatedAt"` ConvoId string `json:"convoId" cborgen:"convoId"` CreatedAt string `json:"createdAt" cborgen:"createdAt"` // groupMemberCount: Current member count at the time of the event. GroupMemberCount int64 `json:"groupMemberCount" cborgen:"groupMemberCount"` GroupName string `json:"groupName" cborgen:"groupName"` // ownerDid: The DID of the group chat owner. OwnerDid string `json:"ownerDid" cborgen:"ownerDid"` Rev string `json:"rev" cborgen:"rev"` // subjectDid: The DID of the member whose request was rejected. SubjectDid string `json:"subjectDid" cborgen:"subjectDid"`}
// ModerationSubscribeModEvents_EventGroupChatMemberAdded is a "eventGroupChatMemberAdded" in the chat.bsky.moderation.subscribeModEvents schema.//// Fired when a member is added to a group chat. Note that members are added in the 'request' state.type ModerationSubscribeModEvents_EventGroupChatMemberAdded struct { // actorDid: The DID of the actor performing the action. For this event, same as ownerDid. ActorDid string `json:"actorDid" cborgen:"actorDid"` // convoCreatedAt: When the group was originally created. ConvoCreatedAt string `json:"convoCreatedAt" cborgen:"convoCreatedAt"` ConvoId string `json:"convoId" cborgen:"convoId"` CreatedAt string `json:"createdAt" cborgen:"createdAt"` // groupMemberCount: Current member count at the time of the event. GroupMemberCount int64 `json:"groupMemberCount" cborgen:"groupMemberCount"` GroupName string `json:"groupName" cborgen:"groupName"` // ownerDid: The DID of the group chat owner. OwnerDid string `json:"ownerDid" cborgen:"ownerDid"` // requestMembersCount: The number of members who have not yet accepted the convo. RequestMembersCount int64 `json:"requestMembersCount" cborgen:"requestMembersCount"` Rev string `json:"rev" cborgen:"rev"` // subjectDid: The DID of the member who was added. SubjectDid string `json:"subjectDid" cborgen:"subjectDid"` // subjectFollowsOwner: Whether the added member follows the group owner. SubjectFollowsOwner bool `json:"subjectFollowsOwner" cborgen:"subjectFollowsOwner"`}
// ModerationSubscribeModEvents_EventGroupChatMemberJoined is a "eventGroupChatMemberJoined" in the chat.bsky.moderation.subscribeModEvents schema.//// Fired when a member joins a group chat via an join link that does not require approval.type ModerationSubscribeModEvents_EventGroupChatMemberJoined struct { // actorDid: The DID of the person joining. ActorDid string `json:"actorDid" cborgen:"actorDid"` // convoCreatedAt: When the group was originally created. ConvoCreatedAt string `json:"convoCreatedAt" cborgen:"convoCreatedAt"` ConvoId string `json:"convoId" cborgen:"convoId"` CreatedAt string `json:"createdAt" cborgen:"createdAt"` // groupMemberCount: Current member count at the time of the event. GroupMemberCount int64 `json:"groupMemberCount" cborgen:"groupMemberCount"` GroupName string `json:"groupName" cborgen:"groupName"` // joinLinkCode: The code of the join link used to join. JoinLinkCode string `json:"joinLinkCode" cborgen:"joinLinkCode"` // ownerDid: The DID of the group chat owner. OwnerDid string `json:"ownerDid" cborgen:"ownerDid"` Rev string `json:"rev" cborgen:"rev"` // subjectFollowsOwner: Whether the joining member follows the group owner. SubjectFollowsOwner bool `json:"subjectFollowsOwner" cborgen:"subjectFollowsOwner"`}
// ModerationSubscribeModEvents_EventGroupChatMemberLeft is a "eventGroupChatMemberLeft" in the chat.bsky.moderation.subscribeModEvents schema.//// Fired when a member leaves or is removed from a group chat.type ModerationSubscribeModEvents_EventGroupChatMemberLeft struct { // actorDid: The DID of the actor. For voluntary: the person leaving. For kicked: the owner. ActorDid string `json:"actorDid" cborgen:"actorDid"` // convoCreatedAt: When the group was originally created. ConvoCreatedAt string `json:"convoCreatedAt" cborgen:"convoCreatedAt"` ConvoId string `json:"convoId" cborgen:"convoId"` CreatedAt string `json:"createdAt" cborgen:"createdAt"` // groupMemberCount: Current member count at the time of the event. GroupMemberCount int64 `json:"groupMemberCount" cborgen:"groupMemberCount"` GroupName string `json:"groupName" cborgen:"groupName"` // leaveMethod: How the member left. LeaveMethod string `json:"leaveMethod" cborgen:"leaveMethod"` // ownerDid: The DID of the group chat owner. OwnerDid string `json:"ownerDid" cborgen:"ownerDid"` Rev string `json:"rev" cborgen:"rev"` // subjectDid: The DID of the member who left or was removed. SubjectDid string `json:"subjectDid" cborgen:"subjectDid"`}
// ModerationSubscribeModEvents_EventGroupChatUpdated is a "eventGroupChatUpdated" in the chat.bsky.moderation.subscribeModEvents schema.//// Fired when a group chat's metadata or status changes.type ModerationSubscribeModEvents_EventGroupChatUpdated struct { // actorDid: The DID of the actor performing the action (the owner). ActorDid string `json:"actorDid" cborgen:"actorDid"` // convoCreatedAt: When the group was originally created. ConvoCreatedAt string `json:"convoCreatedAt" cborgen:"convoCreatedAt"` ConvoId string `json:"convoId" cborgen:"convoId"` CreatedAt string `json:"createdAt" cborgen:"createdAt"` // groupMemberCount: Current member count at the time of the event. GroupMemberCount int64 `json:"groupMemberCount" cborgen:"groupMemberCount"` // groupName: Current group name. GroupName string `json:"groupName" cborgen:"groupName"` // joinLinkCode: The code of the join link. Only present when updateType is join-link-related. JoinLinkCode *string `json:"joinLinkCode,omitempty" cborgen:"joinLinkCode,omitempty"` // joinLinkFollowersOnly: Whether the join link is restricted to followers of the owner. Only present when updateType is join-link-related. JoinLinkFollowersOnly *bool `json:"joinLinkFollowersOnly,omitempty" cborgen:"joinLinkFollowersOnly,omitempty"` // joinLinkRequiresApproval: Whether the join link requires owner approval to join. Only present when updateType is join-link-related. JoinLinkRequiresApproval *bool `json:"joinLinkRequiresApproval,omitempty" cborgen:"joinLinkRequiresApproval,omitempty"` // lockReason: Why the group was locked. Only present when updateType is 'locked'. LockReason *string `json:"lockReason,omitempty" cborgen:"lockReason,omitempty"` // newName: The new group name. Only present when updateType is 'name_changed'. NewName *string `json:"newName,omitempty" cborgen:"newName,omitempty"` // oldName: The previous group name. Only present when updateType is 'name_changed'. OldName *string `json:"oldName,omitempty" cborgen:"oldName,omitempty"` // ownerDid: The DID of the group chat owner. OwnerDid string `json:"ownerDid" cborgen:"ownerDid"` Rev string `json:"rev" cborgen:"rev"` // updateType: What changed. UpdateType string `json:"updateType" cborgen:"updateType"`}
// ModerationSubscribeModEvents_EventRateLimitExceeded is a "eventRateLimitExceeded" in the chat.bsky.moderation.subscribeModEvents schema.//// Fired when a user exceeds a rate limit.type ModerationSubscribeModEvents_EventRateLimitExceeded struct { // actorDid: The DID of the user who hit the rate limit. ActorDid string `json:"actorDid" cborgen:"actorDid"` CreatedAt string `json:"createdAt" cborgen:"createdAt"` // endpoint: The NSID of the endpoint that was rate limited. Endpoint string `json:"endpoint" cborgen:"endpoint"` Rev string `json:"rev" cborgen:"rev"`}