@atproto/api 0.19.18 → 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 (34) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/client/lexicons.d.ts +1022 -104
  3. package/dist/client/lexicons.d.ts.map +1 -1
  4. package/dist/client/lexicons.js +581 -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 +1 -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.map +1 -1
  12. package/dist/client/types/chat/bsky/group/addMembers.d.ts +1 -1
  13. package/dist/client/types/chat/bsky/group/addMembers.d.ts.map +1 -1
  14. package/dist/client/types/chat/bsky/group/addMembers.js +5 -5
  15. package/dist/client/types/chat/bsky/group/addMembers.js.map +1 -1
  16. package/dist/client/types/chat/bsky/group/createGroup.d.ts +1 -1
  17. package/dist/client/types/chat/bsky/group/createGroup.d.ts.map +1 -1
  18. package/dist/client/types/chat/bsky/group/createGroup.js +5 -5
  19. package/dist/client/types/chat/bsky/group/createGroup.js.map +1 -1
  20. package/dist/client/types/chat/bsky/moderation/getMessageContext.d.ts +5 -1
  21. package/dist/client/types/chat/bsky/moderation/getMessageContext.d.ts.map +1 -1
  22. package/dist/client/types/chat/bsky/moderation/getMessageContext.js.map +1 -1
  23. package/dist/client/types/chat/bsky/moderation/subscribeModEvents.d.ts +206 -0
  24. package/dist/client/types/chat/bsky/moderation/subscribeModEvents.d.ts.map +1 -1
  25. package/dist/client/types/chat/bsky/moderation/subscribeModEvents.js +81 -0
  26. package/dist/client/types/chat/bsky/moderation/subscribeModEvents.js.map +1 -1
  27. package/package.json +1 -1
  28. package/src/client/lexicons.ts +606 -7
  29. package/src/client/types/app/bsky/embed/external.ts +2 -1
  30. package/src/client/types/chat/bsky/convo/defs.ts +1 -1
  31. package/src/client/types/chat/bsky/group/addMembers.ts +2 -3
  32. package/src/client/types/chat/bsky/group/createGroup.ts +2 -3
  33. package/src/client/types/chat/bsky/moderation/getMessageContext.ts +4 -1
  34. package/src/client/types/chat/bsky/moderation/subscribeModEvents.ts +328 -0
@@ -1,4 +1,5 @@
1
1
  import { type ValidationResult } from '@atproto/lexicon';
2
+ /** Fired when the first message was sent on a convo. */
2
3
  export interface EventConvoFirstMessage {
3
4
  $type?: 'chat.bsky.moderation.subscribeModEvents#eventConvoFirstMessage';
4
5
  convoId: string;
@@ -12,4 +13,209 @@ export interface EventConvoFirstMessage {
12
13
  }
13
14
  export declare function isEventConvoFirstMessage<V>(v: V): v is import("../../../../util").$TypedObject<V, "chat.bsky.moderation.subscribeModEvents", "eventConvoFirstMessage">;
14
15
  export declare function validateEventConvoFirstMessage<V>(v: V): ValidationResult<EventConvoFirstMessage & V>;
16
+ /** Fire when a group chat is created. */
17
+ export interface EventGroupChatCreated {
18
+ $type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatCreated';
19
+ /** The DID of the actor performing the action. For this event, same as ownerDid. */
20
+ actorDid: string;
21
+ /** When the group was originally created. */
22
+ convoCreatedAt: string;
23
+ convoId: string;
24
+ createdAt: string;
25
+ /** Current member count at the time of the event. */
26
+ groupMemberCount: number;
27
+ /** The name set at creation time. */
28
+ groupName: string;
29
+ /** DIDs of everyone added at creation time. */
30
+ initialMemberDids: string[];
31
+ /** The DID of the group chat owner. */
32
+ ownerDid: string;
33
+ rev: string;
34
+ }
35
+ export declare function isEventGroupChatCreated<V>(v: V): v is import("../../../../util").$TypedObject<V, "chat.bsky.moderation.subscribeModEvents", "eventGroupChatCreated">;
36
+ export declare function validateEventGroupChatCreated<V>(v: V): ValidationResult<EventGroupChatCreated & V>;
37
+ /** Fired when a member is added to a group chat. Note that members are added in the 'request' state. */
38
+ export interface EventGroupChatMemberAdded {
39
+ $type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatMemberAdded';
40
+ /** The DID of the actor performing the action. For this event, same as ownerDid. */
41
+ actorDid: string;
42
+ /** When the group was originally created. */
43
+ convoCreatedAt: string;
44
+ convoId: string;
45
+ createdAt: string;
46
+ /** Current member count at the time of the event. */
47
+ groupMemberCount: number;
48
+ groupName: string;
49
+ /** The DID of the group chat owner. */
50
+ ownerDid: string;
51
+ /** The number of members who have not yet accepted the convo. */
52
+ requestMembersCount: number;
53
+ rev: string;
54
+ /** The DID of the member who was added. */
55
+ subjectDid: string;
56
+ /** Whether the added member follows the group owner. */
57
+ subjectFollowsOwner: boolean;
58
+ }
59
+ export declare function isEventGroupChatMemberAdded<V>(v: V): v is import("../../../../util").$TypedObject<V, "chat.bsky.moderation.subscribeModEvents", "eventGroupChatMemberAdded">;
60
+ export declare function validateEventGroupChatMemberAdded<V>(v: V): ValidationResult<EventGroupChatMemberAdded & V>;
61
+ /** Fired when a member joins a group chat via an join link that does not require approval. */
62
+ export interface EventGroupChatMemberJoined {
63
+ $type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatMemberJoined';
64
+ /** The DID of the person joining. */
65
+ actorDid: string;
66
+ /** When the group was originally created. */
67
+ convoCreatedAt: string;
68
+ convoId: string;
69
+ createdAt: string;
70
+ /** Current member count at the time of the event. */
71
+ groupMemberCount: number;
72
+ groupName: string;
73
+ /** The code of the join link used to join. */
74
+ joinLinkCode: string;
75
+ /** The DID of the group chat owner. */
76
+ ownerDid: string;
77
+ rev: string;
78
+ /** Whether the joining member follows the group owner. */
79
+ subjectFollowsOwner: boolean;
80
+ }
81
+ export declare function isEventGroupChatMemberJoined<V>(v: V): v is import("../../../../util").$TypedObject<V, "chat.bsky.moderation.subscribeModEvents", "eventGroupChatMemberJoined">;
82
+ export declare function validateEventGroupChatMemberJoined<V>(v: V): ValidationResult<EventGroupChatMemberJoined & V>;
83
+ /** Fired when a user requests to join a group chat via an join link that requires approval. */
84
+ export interface EventGroupChatJoinRequest {
85
+ $type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatJoinRequest';
86
+ /** The DID of the person requesting to join. */
87
+ actorDid: string;
88
+ /** When the group was originally created. */
89
+ convoCreatedAt: string;
90
+ convoId: string;
91
+ createdAt: string;
92
+ /** Current member count at the time of the event. */
93
+ groupMemberCount: number;
94
+ groupName: string;
95
+ /** The code of the join link used to request joining. */
96
+ joinLinkCode: string;
97
+ /** The DID of the group chat owner. */
98
+ ownerDid: string;
99
+ rev: string;
100
+ /** Whether the requesting member follows the group owner. */
101
+ subjectFollowsOwner: boolean;
102
+ }
103
+ export declare function isEventGroupChatJoinRequest<V>(v: V): v is import("../../../../util").$TypedObject<V, "chat.bsky.moderation.subscribeModEvents", "eventGroupChatJoinRequest">;
104
+ export declare function validateEventGroupChatJoinRequest<V>(v: V): ValidationResult<EventGroupChatJoinRequest & V>;
105
+ /** Fired when a join request is approved by the group owner. */
106
+ export interface EventGroupChatJoinRequestApproved {
107
+ $type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatJoinRequestApproved';
108
+ /** The DID of the owner approving the request. */
109
+ actorDid: string;
110
+ /** When the group was originally created. */
111
+ convoCreatedAt: string;
112
+ convoId: string;
113
+ createdAt: string;
114
+ /** Current member count at the time of the event. */
115
+ groupMemberCount: number;
116
+ groupName: string;
117
+ /** The DID of the group chat owner. */
118
+ ownerDid: string;
119
+ rev: string;
120
+ /** The DID of the member whose request was approved. */
121
+ subjectDid: string;
122
+ }
123
+ export declare function isEventGroupChatJoinRequestApproved<V>(v: V): v is import("../../../../util").$TypedObject<V, "chat.bsky.moderation.subscribeModEvents", "eventGroupChatJoinRequestApproved">;
124
+ export declare function validateEventGroupChatJoinRequestApproved<V>(v: V): ValidationResult<EventGroupChatJoinRequestApproved & V>;
125
+ /** Fired when a join request is rejected by the group owner. */
126
+ export interface EventGroupChatJoinRequestRejected {
127
+ $type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatJoinRequestRejected';
128
+ /** The DID of the owner rejecting the request. */
129
+ actorDid: string;
130
+ /** When the group was originally created. */
131
+ convoCreatedAt: string;
132
+ convoId: string;
133
+ createdAt: string;
134
+ /** Current member count at the time of the event. */
135
+ groupMemberCount: number;
136
+ groupName: string;
137
+ /** The DID of the group chat owner. */
138
+ ownerDid: string;
139
+ rev: string;
140
+ /** The DID of the member whose request was rejected. */
141
+ subjectDid: string;
142
+ }
143
+ export declare function isEventGroupChatJoinRequestRejected<V>(v: V): v is import("../../../../util").$TypedObject<V, "chat.bsky.moderation.subscribeModEvents", "eventGroupChatJoinRequestRejected">;
144
+ export declare function validateEventGroupChatJoinRequestRejected<V>(v: V): ValidationResult<EventGroupChatJoinRequestRejected & V>;
145
+ /** Fired when a user accepts a chat convo, either explicitly or by sending a message. */
146
+ export interface EventChatAccepted {
147
+ $type?: 'chat.bsky.moderation.subscribeModEvents#eventChatAccepted';
148
+ /** The DID of the person accepting the convo. */
149
+ actorDid: string;
150
+ /** When the convo was originally created. */
151
+ convoCreatedAt: string;
152
+ convoId: string;
153
+ createdAt: string;
154
+ /** Current member count at the time of the event. Only present for group convos. */
155
+ groupMemberCount?: number;
156
+ /** The name of the group chat. Only present for group convos. */
157
+ groupName?: string;
158
+ /** How the convo was accepted. */
159
+ method: 'explicit' | 'message' | (string & {});
160
+ /** The DID of the group chat owner. Only present for group convos. */
161
+ ownerDid?: string;
162
+ rev: string;
163
+ }
164
+ export declare function isEventChatAccepted<V>(v: V): v is import("../../../../util").$TypedObject<V, "chat.bsky.moderation.subscribeModEvents", "eventChatAccepted">;
165
+ export declare function validateEventChatAccepted<V>(v: V): ValidationResult<EventChatAccepted & V>;
166
+ /** Fired when a member leaves or is removed from a group chat. */
167
+ export interface EventGroupChatMemberLeft {
168
+ $type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatMemberLeft';
169
+ /** The DID of the actor. For voluntary: the person leaving. For kicked: the owner. */
170
+ actorDid: string;
171
+ /** When the group was originally created. */
172
+ convoCreatedAt: string;
173
+ convoId: string;
174
+ createdAt: string;
175
+ /** Current member count at the time of the event. */
176
+ groupMemberCount: number;
177
+ groupName: string;
178
+ /** How the member left. */
179
+ leaveMethod: 'voluntary' | 'kicked' | (string & {});
180
+ /** The DID of the group chat owner. */
181
+ ownerDid: string;
182
+ rev: string;
183
+ /** The DID of the member who left or was removed. */
184
+ subjectDid: string;
185
+ }
186
+ export declare function isEventGroupChatMemberLeft<V>(v: V): v is import("../../../../util").$TypedObject<V, "chat.bsky.moderation.subscribeModEvents", "eventGroupChatMemberLeft">;
187
+ export declare function validateEventGroupChatMemberLeft<V>(v: V): ValidationResult<EventGroupChatMemberLeft & V>;
188
+ /** Fired when a group chat's metadata or status changes. */
189
+ export interface EventGroupChatUpdated {
190
+ $type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatUpdated';
191
+ /** The DID of the actor performing the action (the owner). */
192
+ actorDid: string;
193
+ /** When the group was originally created. */
194
+ convoCreatedAt: string;
195
+ convoId: string;
196
+ createdAt: string;
197
+ /** Current member count at the time of the event. */
198
+ groupMemberCount: number;
199
+ /** Current group name. */
200
+ groupName: string;
201
+ /** The code of the join link. Only present when updateType is join-link-related. */
202
+ joinLinkCode?: string;
203
+ /** Whether the join link is restricted to followers of the owner. Only present when updateType is join-link-related. */
204
+ joinLinkFollowersOnly?: boolean;
205
+ /** Whether the join link requires owner approval to join. Only present when updateType is join-link-related. */
206
+ joinLinkRequiresApproval?: boolean;
207
+ /** Why the group was locked. Only present when updateType is 'locked'. */
208
+ lockReason?: 'owner_action' | 'owner_left' | 'owner_deactivated' | 'owner_deleted' | 'owner_taken_down' | 'label_applied' | (string & {});
209
+ /** The new group name. Only present when updateType is 'name_changed'. */
210
+ newName?: string;
211
+ /** The previous group name. Only present when updateType is 'name_changed'. */
212
+ oldName?: string;
213
+ /** The DID of the group chat owner. */
214
+ ownerDid: string;
215
+ rev: string;
216
+ /** What changed. */
217
+ updateType: 'name_changed' | 'locked' | 'locked_permanently' | 'unlocked' | 'join_link_created' | 'join_link_disabled' | 'join_link_settings_changed' | (string & {});
218
+ }
219
+ export declare function isEventGroupChatUpdated<V>(v: V): v is import("../../../../util").$TypedObject<V, "chat.bsky.moderation.subscribeModEvents", "eventGroupChatUpdated">;
220
+ export declare function validateEventGroupChatUpdated<V>(v: V): ValidationResult<EventGroupChatUpdated & V>;
15
221
  //# sourceMappingURL=subscribeModEvents.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscribeModEvents.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/moderation/subscribeModEvents.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,MAAM,WAAW,sBAAsB;IACrC,KAAK,CAAC,EAAE,gEAAgE,CAAA;IACxE,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,qGAAqG;IACrG,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,GAAG,EAAE,MAAM,CAAA;IACX,qCAAqC;IACrC,IAAI,EAAE,MAAM,CAAA;CACb;AAID,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,wHAE/C;AAED,wBAAgB,8BAA8B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,gDAErD"}
1
+ {"version":3,"file":"subscribeModEvents.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/moderation/subscribeModEvents.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,wDAAwD;AACxD,MAAM,WAAW,sBAAsB;IACrC,KAAK,CAAC,EAAE,gEAAgE,CAAA;IACxE,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,q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,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,uHAE9C;AAED,wBAAgB,6BAA6B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,+CAEpD"}
@@ -2,6 +2,24 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isEventConvoFirstMessage = isEventConvoFirstMessage;
4
4
  exports.validateEventConvoFirstMessage = validateEventConvoFirstMessage;
5
+ exports.isEventGroupChatCreated = isEventGroupChatCreated;
6
+ exports.validateEventGroupChatCreated = validateEventGroupChatCreated;
7
+ exports.isEventGroupChatMemberAdded = isEventGroupChatMemberAdded;
8
+ exports.validateEventGroupChatMemberAdded = validateEventGroupChatMemberAdded;
9
+ exports.isEventGroupChatMemberJoined = isEventGroupChatMemberJoined;
10
+ exports.validateEventGroupChatMemberJoined = validateEventGroupChatMemberJoined;
11
+ exports.isEventGroupChatJoinRequest = isEventGroupChatJoinRequest;
12
+ exports.validateEventGroupChatJoinRequest = validateEventGroupChatJoinRequest;
13
+ exports.isEventGroupChatJoinRequestApproved = isEventGroupChatJoinRequestApproved;
14
+ exports.validateEventGroupChatJoinRequestApproved = validateEventGroupChatJoinRequestApproved;
15
+ exports.isEventGroupChatJoinRequestRejected = isEventGroupChatJoinRequestRejected;
16
+ exports.validateEventGroupChatJoinRequestRejected = validateEventGroupChatJoinRequestRejected;
17
+ exports.isEventChatAccepted = isEventChatAccepted;
18
+ exports.validateEventChatAccepted = validateEventChatAccepted;
19
+ exports.isEventGroupChatMemberLeft = isEventGroupChatMemberLeft;
20
+ exports.validateEventGroupChatMemberLeft = validateEventGroupChatMemberLeft;
21
+ exports.isEventGroupChatUpdated = isEventGroupChatUpdated;
22
+ exports.validateEventGroupChatUpdated = validateEventGroupChatUpdated;
5
23
  const lexicons_1 = require("../../../../lexicons");
6
24
  const util_1 = require("../../../../util");
7
25
  const is$typed = util_1.is$typed, validate = lexicons_1.validate;
@@ -13,4 +31,67 @@ function isEventConvoFirstMessage(v) {
13
31
  function validateEventConvoFirstMessage(v) {
14
32
  return validate(v, id, hashEventConvoFirstMessage);
15
33
  }
34
+ const hashEventGroupChatCreated = 'eventGroupChatCreated';
35
+ function isEventGroupChatCreated(v) {
36
+ return is$typed(v, id, hashEventGroupChatCreated);
37
+ }
38
+ function validateEventGroupChatCreated(v) {
39
+ return validate(v, id, hashEventGroupChatCreated);
40
+ }
41
+ const hashEventGroupChatMemberAdded = 'eventGroupChatMemberAdded';
42
+ function isEventGroupChatMemberAdded(v) {
43
+ return is$typed(v, id, hashEventGroupChatMemberAdded);
44
+ }
45
+ function validateEventGroupChatMemberAdded(v) {
46
+ return validate(v, id, hashEventGroupChatMemberAdded);
47
+ }
48
+ const hashEventGroupChatMemberJoined = 'eventGroupChatMemberJoined';
49
+ function isEventGroupChatMemberJoined(v) {
50
+ return is$typed(v, id, hashEventGroupChatMemberJoined);
51
+ }
52
+ function validateEventGroupChatMemberJoined(v) {
53
+ return validate(v, id, hashEventGroupChatMemberJoined);
54
+ }
55
+ const hashEventGroupChatJoinRequest = 'eventGroupChatJoinRequest';
56
+ function isEventGroupChatJoinRequest(v) {
57
+ return is$typed(v, id, hashEventGroupChatJoinRequest);
58
+ }
59
+ function validateEventGroupChatJoinRequest(v) {
60
+ return validate(v, id, hashEventGroupChatJoinRequest);
61
+ }
62
+ const hashEventGroupChatJoinRequestApproved = 'eventGroupChatJoinRequestApproved';
63
+ function isEventGroupChatJoinRequestApproved(v) {
64
+ return is$typed(v, id, hashEventGroupChatJoinRequestApproved);
65
+ }
66
+ function validateEventGroupChatJoinRequestApproved(v) {
67
+ return validate(v, id, hashEventGroupChatJoinRequestApproved);
68
+ }
69
+ const hashEventGroupChatJoinRequestRejected = 'eventGroupChatJoinRequestRejected';
70
+ function isEventGroupChatJoinRequestRejected(v) {
71
+ return is$typed(v, id, hashEventGroupChatJoinRequestRejected);
72
+ }
73
+ function validateEventGroupChatJoinRequestRejected(v) {
74
+ return validate(v, id, hashEventGroupChatJoinRequestRejected);
75
+ }
76
+ const hashEventChatAccepted = 'eventChatAccepted';
77
+ function isEventChatAccepted(v) {
78
+ return is$typed(v, id, hashEventChatAccepted);
79
+ }
80
+ function validateEventChatAccepted(v) {
81
+ return validate(v, id, hashEventChatAccepted);
82
+ }
83
+ const hashEventGroupChatMemberLeft = 'eventGroupChatMemberLeft';
84
+ function isEventGroupChatMemberLeft(v) {
85
+ return is$typed(v, id, hashEventGroupChatMemberLeft);
86
+ }
87
+ function validateEventGroupChatMemberLeft(v) {
88
+ return validate(v, id, hashEventGroupChatMemberLeft);
89
+ }
90
+ const hashEventGroupChatUpdated = 'eventGroupChatUpdated';
91
+ function isEventGroupChatUpdated(v) {
92
+ return is$typed(v, id, hashEventGroupChatUpdated);
93
+ }
94
+ function validateEventGroupChatUpdated(v) {
95
+ return validate(v, id, hashEventGroupChatUpdated);
96
+ }
16
97
  //# sourceMappingURL=subscribeModEvents.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscribeModEvents.js","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/moderation/subscribeModEvents.ts"],"names":[],"mappings":";;AA+BA,4DAEC;AAED,wEAEC;AA/BD,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,yCAAyC,CAAA;AAcpD,MAAM,0BAA0B,GAAG,wBAAwB,CAAA;AAE3D,SAAgB,wBAAwB,CAAI,CAAI;IAC9C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,0BAA0B,CAAC,CAAA;AACpD,CAAC;AAED,SAAgB,8BAA8B,CAAI,CAAI;IACpD,OAAO,QAAQ,CAA6B,CAAC,EAAE,EAAE,EAAE,0BAA0B,CAAC,CAAA;AAChF,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'chat.bsky.moderation.subscribeModEvents'\n\nexport interface EventConvoFirstMessage {\n $type?: 'chat.bsky.moderation.subscribeModEvents#eventConvoFirstMessage'\n convoId: string\n createdAt: string\n messageId?: string\n /** The list of DIDs message recipients. Does not include the sender, which is in the `user` field */\n recipients: string[]\n rev: string\n /** The DID of the message author. */\n user: string\n}\n\nconst hashEventConvoFirstMessage = 'eventConvoFirstMessage'\n\nexport function isEventConvoFirstMessage<V>(v: V) {\n return is$typed(v, id, hashEventConvoFirstMessage)\n}\n\nexport function validateEventConvoFirstMessage<V>(v: V) {\n return validate<EventConvoFirstMessage & V>(v, id, hashEventConvoFirstMessage)\n}\n"]}
1
+ {"version":3,"file":"subscribeModEvents.js","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/moderation/subscribeModEvents.ts"],"names":[],"mappings":";;AAgCA,4DAEC;AAED,wEAEC;AAwBD,0DAEC;AAED,sEAEC;AA2BD,kEAEC;AAED,8EAMC;AAyBD,oEAEC;AAED,gFAMC;AAyBD,kEAEC;AAED,8EAMC;AAwBD,kFAEC;AAED,8FAMC;AAwBD,kFAEC;AAED,8FAMC;AAwBD,kDAEC;AAED,8DAEC;AAyBD,gEAEC;AAED,4EAMC;AAmDD,0DAEC;AAED,sEAEC;AAvWD,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,yCAAyC,CAAA;AAepD,MAAM,0BAA0B,GAAG,wBAAwB,CAAA;AAE3D,SAAgB,wBAAwB,CAAI,CAAI;IAC9C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,0BAA0B,CAAC,CAAA;AACpD,CAAC;AAED,SAAgB,8BAA8B,CAAI,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QAAQ,CAA4B,CAAC,EAAE,EAAE,EAAE,yBAAyB,CAAC,CAAA;AAC9E,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'chat.bsky.moderation.subscribeModEvents'\n\n/** Fired when the first message was sent on a convo. */\nexport interface EventConvoFirstMessage {\n $type?: 'chat.bsky.moderation.subscribeModEvents#eventConvoFirstMessage'\n convoId: string\n createdAt: string\n messageId?: string\n /** The list of DIDs message recipients. Does not include the sender, which is in the `user` field */\n recipients: string[]\n rev: string\n /** The DID of the message author. */\n user: string\n}\n\nconst hashEventConvoFirstMessage = 'eventConvoFirstMessage'\n\nexport function isEventConvoFirstMessage<V>(v: V) {\n return is$typed(v, id, hashEventConvoFirstMessage)\n}\n\nexport function validateEventConvoFirstMessage<V>(v: V) {\n return validate<EventConvoFirstMessage & V>(v, id, hashEventConvoFirstMessage)\n}\n\n/** Fire when a group chat is created. */\nexport interface EventGroupChatCreated {\n $type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatCreated'\n /** The DID of the actor performing the action. For this event, same as ownerDid. */\n actorDid: string\n /** When the group was originally created. */\n convoCreatedAt: string\n convoId: string\n createdAt: string\n /** Current member count at the time of the event. */\n groupMemberCount: number\n /** The name set at creation time. */\n groupName: string\n /** DIDs of everyone added at creation time. */\n initialMemberDids: string[]\n /** The DID of the group chat owner. */\n ownerDid: string\n rev: string\n}\n\nconst hashEventGroupChatCreated = 'eventGroupChatCreated'\n\nexport function isEventGroupChatCreated<V>(v: V) {\n return is$typed(v, id, hashEventGroupChatCreated)\n}\n\nexport function validateEventGroupChatCreated<V>(v: V) {\n return validate<EventGroupChatCreated & V>(v, id, hashEventGroupChatCreated)\n}\n\n/** Fired when a member is added to a group chat. Note that members are added in the 'request' state. */\nexport interface EventGroupChatMemberAdded {\n $type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatMemberAdded'\n /** The DID of the actor performing the action. For this event, same as ownerDid. */\n actorDid: string\n /** When the group was originally created. */\n convoCreatedAt: string\n convoId: string\n createdAt: string\n /** Current member count at the time of the event. */\n groupMemberCount: number\n groupName: string\n /** The DID of the group chat owner. */\n ownerDid: string\n /** The number of members who have not yet accepted the convo. */\n requestMembersCount: number\n rev: string\n /** The DID of the member who was added. */\n subjectDid: string\n /** Whether the added member follows the group owner. */\n subjectFollowsOwner: boolean\n}\n\nconst hashEventGroupChatMemberAdded = 'eventGroupChatMemberAdded'\n\nexport function isEventGroupChatMemberAdded<V>(v: V) {\n return is$typed(v, id, hashEventGroupChatMemberAdded)\n}\n\nexport function validateEventGroupChatMemberAdded<V>(v: V) {\n return validate<EventGroupChatMemberAdded & V>(\n v,\n id,\n hashEventGroupChatMemberAdded,\n )\n}\n\n/** Fired when a member joins a group chat via an join link that does not require approval. */\nexport interface EventGroupChatMemberJoined {\n $type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatMemberJoined'\n /** The DID of the person joining. */\n actorDid: string\n /** When the group was originally created. */\n convoCreatedAt: string\n convoId: string\n createdAt: string\n /** Current member count at the time of the event. */\n groupMemberCount: number\n groupName: string\n /** The code of the join link used to join. */\n joinLinkCode: string\n /** The DID of the group chat owner. */\n ownerDid: string\n rev: string\n /** Whether the joining member follows the group owner. */\n subjectFollowsOwner: boolean\n}\n\nconst hashEventGroupChatMemberJoined = 'eventGroupChatMemberJoined'\n\nexport function isEventGroupChatMemberJoined<V>(v: V) {\n return is$typed(v, id, hashEventGroupChatMemberJoined)\n}\n\nexport function validateEventGroupChatMemberJoined<V>(v: V) {\n return validate<EventGroupChatMemberJoined & V>(\n v,\n id,\n hashEventGroupChatMemberJoined,\n )\n}\n\n/** Fired when a user requests to join a group chat via an join link that requires approval. */\nexport interface EventGroupChatJoinRequest {\n $type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatJoinRequest'\n /** The DID of the person requesting to join. */\n actorDid: string\n /** When the group was originally created. */\n convoCreatedAt: string\n convoId: string\n createdAt: string\n /** Current member count at the time of the event. */\n groupMemberCount: number\n groupName: string\n /** The code of the join link used to request joining. */\n joinLinkCode: string\n /** The DID of the group chat owner. */\n ownerDid: string\n rev: string\n /** Whether the requesting member follows the group owner. */\n subjectFollowsOwner: boolean\n}\n\nconst hashEventGroupChatJoinRequest = 'eventGroupChatJoinRequest'\n\nexport function isEventGroupChatJoinRequest<V>(v: V) {\n return is$typed(v, id, hashEventGroupChatJoinRequest)\n}\n\nexport function validateEventGroupChatJoinRequest<V>(v: V) {\n return validate<EventGroupChatJoinRequest & V>(\n v,\n id,\n hashEventGroupChatJoinRequest,\n )\n}\n\n/** Fired when a join request is approved by the group owner. */\nexport interface EventGroupChatJoinRequestApproved {\n $type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatJoinRequestApproved'\n /** The DID of the owner approving the request. */\n actorDid: string\n /** When the group was originally created. */\n convoCreatedAt: string\n convoId: string\n createdAt: string\n /** Current member count at the time of the event. */\n groupMemberCount: number\n groupName: string\n /** The DID of the group chat owner. */\n ownerDid: string\n rev: string\n /** The DID of the member whose request was approved. */\n subjectDid: string\n}\n\nconst hashEventGroupChatJoinRequestApproved =\n 'eventGroupChatJoinRequestApproved'\n\nexport function isEventGroupChatJoinRequestApproved<V>(v: V) {\n return is$typed(v, id, hashEventGroupChatJoinRequestApproved)\n}\n\nexport function validateEventGroupChatJoinRequestApproved<V>(v: V) {\n return validate<EventGroupChatJoinRequestApproved & V>(\n v,\n id,\n hashEventGroupChatJoinRequestApproved,\n )\n}\n\n/** Fired when a join request is rejected by the group owner. */\nexport interface EventGroupChatJoinRequestRejected {\n $type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatJoinRequestRejected'\n /** The DID of the owner rejecting the request. */\n actorDid: string\n /** When the group was originally created. */\n convoCreatedAt: string\n convoId: string\n createdAt: string\n /** Current member count at the time of the event. */\n groupMemberCount: number\n groupName: string\n /** The DID of the group chat owner. */\n ownerDid: string\n rev: string\n /** The DID of the member whose request was rejected. */\n subjectDid: string\n}\n\nconst hashEventGroupChatJoinRequestRejected =\n 'eventGroupChatJoinRequestRejected'\n\nexport function isEventGroupChatJoinRequestRejected<V>(v: V) {\n return is$typed(v, id, hashEventGroupChatJoinRequestRejected)\n}\n\nexport function validateEventGroupChatJoinRequestRejected<V>(v: V) {\n return validate<EventGroupChatJoinRequestRejected & V>(\n v,\n id,\n hashEventGroupChatJoinRequestRejected,\n )\n}\n\n/** Fired when a user accepts a chat convo, either explicitly or by sending a message. */\nexport interface EventChatAccepted {\n $type?: 'chat.bsky.moderation.subscribeModEvents#eventChatAccepted'\n /** The DID of the person accepting the convo. */\n actorDid: string\n /** When the convo was originally created. */\n convoCreatedAt: string\n convoId: string\n createdAt: string\n /** Current member count at the time of the event. Only present for group convos. */\n groupMemberCount?: number\n /** The name of the group chat. Only present for group convos. */\n groupName?: string\n /** How the convo was accepted. */\n method: 'explicit' | 'message' | (string & {})\n /** The DID of the group chat owner. Only present for group convos. */\n ownerDid?: string\n rev: string\n}\n\nconst hashEventChatAccepted = 'eventChatAccepted'\n\nexport function isEventChatAccepted<V>(v: V) {\n return is$typed(v, id, hashEventChatAccepted)\n}\n\nexport function validateEventChatAccepted<V>(v: V) {\n return validate<EventChatAccepted & V>(v, id, hashEventChatAccepted)\n}\n\n/** Fired when a member leaves or is removed from a group chat. */\nexport interface EventGroupChatMemberLeft {\n $type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatMemberLeft'\n /** The DID of the actor. For voluntary: the person leaving. For kicked: the owner. */\n actorDid: string\n /** When the group was originally created. */\n convoCreatedAt: string\n convoId: string\n createdAt: string\n /** Current member count at the time of the event. */\n groupMemberCount: number\n groupName: string\n /** How the member left. */\n leaveMethod: 'voluntary' | 'kicked' | (string & {})\n /** The DID of the group chat owner. */\n ownerDid: string\n rev: string\n /** The DID of the member who left or was removed. */\n subjectDid: string\n}\n\nconst hashEventGroupChatMemberLeft = 'eventGroupChatMemberLeft'\n\nexport function isEventGroupChatMemberLeft<V>(v: V) {\n return is$typed(v, id, hashEventGroupChatMemberLeft)\n}\n\nexport function validateEventGroupChatMemberLeft<V>(v: V) {\n return validate<EventGroupChatMemberLeft & V>(\n v,\n id,\n hashEventGroupChatMemberLeft,\n )\n}\n\n/** Fired when a group chat's metadata or status changes. */\nexport interface EventGroupChatUpdated {\n $type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatUpdated'\n /** The DID of the actor performing the action (the owner). */\n actorDid: string\n /** When the group was originally created. */\n convoCreatedAt: string\n convoId: string\n createdAt: string\n /** Current member count at the time of the event. */\n groupMemberCount: number\n /** Current group name. */\n groupName: string\n /** The code of the join link. Only present when updateType is join-link-related. */\n joinLinkCode?: string\n /** Whether the join link is restricted to followers of the owner. Only present when updateType is join-link-related. */\n joinLinkFollowersOnly?: boolean\n /** Whether the join link requires owner approval to join. Only present when updateType is join-link-related. */\n joinLinkRequiresApproval?: boolean\n /** Why the group was locked. Only present when updateType is 'locked'. */\n lockReason?:\n | 'owner_action'\n | 'owner_left'\n | 'owner_deactivated'\n | 'owner_deleted'\n | 'owner_taken_down'\n | 'label_applied'\n | (string & {})\n /** The new group name. Only present when updateType is 'name_changed'. */\n newName?: string\n /** The previous group name. Only present when updateType is 'name_changed'. */\n oldName?: string\n /** The DID of the group chat owner. */\n ownerDid: string\n rev: string\n /** What changed. */\n updateType:\n | 'name_changed'\n | 'locked'\n | 'locked_permanently'\n | 'unlocked'\n | 'join_link_created'\n | 'join_link_disabled'\n | 'join_link_settings_changed'\n | (string & {})\n}\n\nconst hashEventGroupChatUpdated = 'eventGroupChatUpdated'\n\nexport function isEventGroupChatUpdated<V>(v: V) {\n return is$typed(v, id, hashEventGroupChatUpdated)\n}\n\nexport function validateEventGroupChatUpdated<V>(v: V) {\n return validate<EventGroupChatUpdated & V>(v, id, hashEventGroupChatUpdated)\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/api",
3
- "version": "0.19.18",
3
+ "version": "0.19.19",
4
4
  "license": "MIT",
5
5
  "description": "Client library for atproto and Bluesky",
6
6
  "keywords": [