@atproto/api 0.20.5 → 0.20.7

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 (77) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/client/index.d.ts +19 -0
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +44 -0
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/lexicons.d.ts +766 -66
  7. package/dist/client/lexicons.d.ts.map +1 -1
  8. package/dist/client/lexicons.js +422 -28
  9. package/dist/client/lexicons.js.map +1 -1
  10. package/dist/client/types/app/bsky/actor/defs.d.ts +4 -0
  11. package/dist/client/types/app/bsky/actor/defs.d.ts.map +1 -1
  12. package/dist/client/types/app/bsky/actor/defs.js.map +1 -1
  13. package/dist/client/types/chat/bsky/actor/getStatus.d.ts +2 -0
  14. package/dist/client/types/chat/bsky/actor/getStatus.d.ts.map +1 -1
  15. package/dist/client/types/chat/bsky/actor/getStatus.js.map +1 -1
  16. package/dist/client/types/chat/bsky/convo/defs.d.ts +38 -10
  17. package/dist/client/types/chat/bsky/convo/defs.d.ts.map +1 -1
  18. package/dist/client/types/chat/bsky/convo/defs.js +21 -0
  19. package/dist/client/types/chat/bsky/convo/defs.js.map +1 -1
  20. package/dist/client/types/chat/bsky/convo/getConvoForMembers.d.ts +3 -0
  21. package/dist/client/types/chat/bsky/convo/getConvoForMembers.d.ts.map +1 -1
  22. package/dist/client/types/chat/bsky/convo/getConvoForMembers.js +7 -0
  23. package/dist/client/types/chat/bsky/convo/getConvoForMembers.js.map +1 -1
  24. package/dist/client/types/chat/bsky/convo/getLog.d.ts +1 -1
  25. package/dist/client/types/chat/bsky/convo/getLog.d.ts.map +1 -1
  26. package/dist/client/types/chat/bsky/convo/getLog.js.map +1 -1
  27. package/dist/client/types/chat/bsky/embed/joinLink.d.ts +19 -0
  28. package/dist/client/types/chat/bsky/embed/joinLink.d.ts.map +1 -0
  29. package/dist/client/types/chat/bsky/embed/joinLink.js +19 -0
  30. package/dist/client/types/chat/bsky/embed/joinLink.js.map +1 -0
  31. package/dist/client/types/chat/bsky/group/addMembers.d.ts +3 -0
  32. package/dist/client/types/chat/bsky/group/addMembers.d.ts.map +1 -1
  33. package/dist/client/types/chat/bsky/group/addMembers.js +7 -0
  34. package/dist/client/types/chat/bsky/group/addMembers.js.map +1 -1
  35. package/dist/client/types/chat/bsky/group/createGroup.d.ts +3 -0
  36. package/dist/client/types/chat/bsky/group/createGroup.d.ts.map +1 -1
  37. package/dist/client/types/chat/bsky/group/createGroup.js +7 -0
  38. package/dist/client/types/chat/bsky/group/createGroup.js.map +1 -1
  39. package/dist/client/types/chat/bsky/group/updateJoinRequestsRead.d.ts +29 -0
  40. package/dist/client/types/chat/bsky/group/updateJoinRequestsRead.d.ts.map +1 -0
  41. package/dist/client/types/chat/bsky/group/updateJoinRequestsRead.js +28 -0
  42. package/dist/client/types/chat/bsky/group/updateJoinRequestsRead.js.map +1 -0
  43. package/dist/client/types/chat/bsky/group/withdrawJoinRequest.d.ts +26 -0
  44. package/dist/client/types/chat/bsky/group/withdrawJoinRequest.d.ts.map +1 -0
  45. package/dist/client/types/chat/bsky/group/withdrawJoinRequest.js +21 -0
  46. package/dist/client/types/chat/bsky/group/withdrawJoinRequest.js.map +1 -0
  47. package/dist/client/types/chat/bsky/moderation/defs.d.ts +42 -0
  48. package/dist/client/types/chat/bsky/moderation/defs.d.ts.map +1 -0
  49. package/dist/client/types/chat/bsky/moderation/defs.js +26 -0
  50. package/dist/client/types/chat/bsky/moderation/defs.js.map +1 -0
  51. package/dist/client/types/chat/bsky/moderation/getConvo.d.ts +26 -0
  52. package/dist/client/types/chat/bsky/moderation/getConvo.d.ts.map +1 -0
  53. package/dist/client/types/chat/bsky/moderation/getConvo.js +21 -0
  54. package/dist/client/types/chat/bsky/moderation/getConvo.js.map +1 -0
  55. package/dist/client/types/chat/bsky/moderation/getConvoMembers.d.ts +29 -0
  56. package/dist/client/types/chat/bsky/moderation/getConvoMembers.d.ts.map +1 -0
  57. package/dist/client/types/chat/bsky/moderation/getConvoMembers.js +21 -0
  58. package/dist/client/types/chat/bsky/moderation/getConvoMembers.js.map +1 -0
  59. package/dist/client/types/chat/bsky/moderation/subscribeModEvents.d.ts +12 -0
  60. package/dist/client/types/chat/bsky/moderation/subscribeModEvents.d.ts.map +1 -1
  61. package/dist/client/types/chat/bsky/moderation/subscribeModEvents.js +7 -0
  62. package/dist/client/types/chat/bsky/moderation/subscribeModEvents.js.map +1 -1
  63. package/dist/client/types/com/atproto/server/getServiceAuth.d.ts +1 -1
  64. package/dist/client/types/com/atproto/server/getServiceAuth.d.ts.map +1 -1
  65. package/dist/client/types/com/atproto/server/getServiceAuth.js.map +1 -1
  66. package/dist/client/types/tools/ozone/moderation/defs.d.ts +10 -3
  67. package/dist/client/types/tools/ozone/moderation/defs.d.ts.map +1 -1
  68. package/dist/client/types/tools/ozone/moderation/defs.js +7 -0
  69. package/dist/client/types/tools/ozone/moderation/defs.js.map +1 -1
  70. package/dist/client/types/tools/ozone/moderation/queryEvents.d.ts +2 -2
  71. package/dist/client/types/tools/ozone/moderation/queryEvents.d.ts.map +1 -1
  72. package/dist/client/types/tools/ozone/moderation/queryEvents.js.map +1 -1
  73. package/dist/client/types/tools/ozone/moderation/queryStatuses.d.ts +2 -2
  74. package/dist/client/types/tools/ozone/moderation/queryStatuses.d.ts.map +1 -1
  75. package/dist/client/types/tools/ozone/moderation/queryStatuses.js.map +1 -1
  76. package/package.json +1 -1
  77. package/tsconfig.build.tsbuildinfo +1 -1
@@ -0,0 +1,28 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { XRPCError } from '@atproto/xrpc';
5
+ import { validate as _validate } from '../../../../lexicons.js';
6
+ import { is$typed as _is$typed, } from '../../../../util.js';
7
+ const is$typed = _is$typed, validate = _validate;
8
+ const id = 'chat.bsky.group.updateJoinRequestsRead';
9
+ export class InvalidConvoError extends XRPCError {
10
+ constructor(src) {
11
+ super(src.status, src.error, src.message, src.headers, { cause: src });
12
+ }
13
+ }
14
+ export class InsufficientRoleError extends XRPCError {
15
+ constructor(src) {
16
+ super(src.status, src.error, src.message, src.headers, { cause: src });
17
+ }
18
+ }
19
+ export function toKnownErr(e) {
20
+ if (e instanceof XRPCError) {
21
+ if (e.error === 'InvalidConvo')
22
+ return new InvalidConvoError(e);
23
+ if (e.error === 'InsufficientRole')
24
+ return new InsufficientRoleError(e);
25
+ }
26
+ return e;
27
+ }
28
+ //# sourceMappingURL=updateJoinRequestsRead.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateJoinRequestsRead.js","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/group/updateJoinRequestsRead.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAc,SAAS,EAAE,MAAM,eAAe,CAAA;AAGrD,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAE5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,wCAAwC,CAAA;AAuBnD,MAAM,OAAO,iBAAkB,SAAQ,SAAS;IAC9C,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;IACxE,CAAC;CACF;AAED,MAAM,OAAO,qBAAsB,SAAQ,SAAS;IAClD,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;IACxE,CAAC;CACF;AAED,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,SAAS,EAAE,CAAC;QAC3B,IAAI,CAAC,CAAC,KAAK,KAAK,cAAc;YAAE,OAAO,IAAI,iBAAiB,CAAC,CAAC,CAAC,CAAA;QAC/D,IAAI,CAAC,CAAC,KAAK,KAAK,kBAAkB;YAAE,OAAO,IAAI,qBAAqB,CAAC,CAAC,CAAC,CAAA;IACzE,CAAC;IAED,OAAO,CAAC,CAAA;AACV,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.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'chat.bsky.group.updateJoinRequestsRead'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n convoId: string\n}\n\nexport interface OutputSchema {}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n qp?: QueryParams\n encoding?: 'application/json'\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport class InvalidConvoError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class InsufficientRoleError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n if (e.error === 'InvalidConvo') return new InvalidConvoError(e)\n if (e.error === 'InsufficientRole') return new InsufficientRoleError(e)\n }\n\n return e\n}\n"]}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap, XRPCError } from '@atproto/xrpc';
5
+ export type QueryParams = {};
6
+ export interface InputSchema {
7
+ convoId: string;
8
+ }
9
+ export interface OutputSchema {
10
+ }
11
+ export interface CallOptions {
12
+ signal?: AbortSignal;
13
+ headers?: HeadersMap;
14
+ qp?: QueryParams;
15
+ encoding?: 'application/json';
16
+ }
17
+ export interface Response {
18
+ success: boolean;
19
+ headers: HeadersMap;
20
+ data: OutputSchema;
21
+ }
22
+ export declare class InvalidJoinRequestError extends XRPCError {
23
+ constructor(src: XRPCError);
24
+ }
25
+ export declare function toKnownErr(e: any): any;
26
+ //# sourceMappingURL=withdrawJoinRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withdrawJoinRequest.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/group/withdrawJoinRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAcrD,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,YAAY;CAAG;AAEhC,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,EAAE,CAAC,EAAE,WAAW,CAAA;IAChB,QAAQ,CAAC,EAAE,kBAAkB,CAAA;CAC9B;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,qBAAa,uBAAwB,SAAQ,SAAS;gBACxC,GAAG,EAAE,SAAS;CAG3B;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAMhC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { XRPCError } from '@atproto/xrpc';
5
+ import { validate as _validate } from '../../../../lexicons.js';
6
+ import { is$typed as _is$typed, } from '../../../../util.js';
7
+ const is$typed = _is$typed, validate = _validate;
8
+ const id = 'chat.bsky.group.withdrawJoinRequest';
9
+ export class InvalidJoinRequestError extends XRPCError {
10
+ constructor(src) {
11
+ super(src.status, src.error, src.message, src.headers, { cause: src });
12
+ }
13
+ }
14
+ export function toKnownErr(e) {
15
+ if (e instanceof XRPCError) {
16
+ if (e.error === 'InvalidJoinRequest')
17
+ return new InvalidJoinRequestError(e);
18
+ }
19
+ return e;
20
+ }
21
+ //# sourceMappingURL=withdrawJoinRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withdrawJoinRequest.js","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/group/withdrawJoinRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAc,SAAS,EAAE,MAAM,eAAe,CAAA;AAGrD,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAE5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,qCAAqC,CAAA;AAuBhD,MAAM,OAAO,uBAAwB,SAAQ,SAAS;IACpD,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;IACxE,CAAC;CACF;AAED,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,SAAS,EAAE,CAAC;QAC3B,IAAI,CAAC,CAAC,KAAK,KAAK,oBAAoB;YAAE,OAAO,IAAI,uBAAuB,CAAC,CAAC,CAAC,CAAA;IAC7E,CAAC;IAED,OAAO,CAAC,CAAA;AACV,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.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'chat.bsky.group.withdrawJoinRequest'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n convoId: string\n}\n\nexport interface OutputSchema {}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n qp?: QueryParams\n encoding?: 'application/json'\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport class InvalidJoinRequestError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n if (e.error === 'InvalidJoinRequest') return new InvalidJoinRequestError(e)\n }\n\n return e\n}\n"]}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type ValidationResult } from '@atproto/lexicon';
5
+ import { type $Typed } from '../../../../util.js';
6
+ import type * as ChatBskyGroupDefs from '../group/defs.js';
7
+ import type * as ChatBskyConvoDefs from '../convo/defs.js';
8
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. A view of a conversation for moderation purposes. Unlike chat.bsky.convo.defs#convoView, it does not include viewer-specific data (such as muted, unreadCount, status, lastMessage, lastReaction), since the requester is a moderator and not a member of the conversation. The member list is not included; use chat.bsky.moderation.getConvoMembers to list members. */
9
+ export interface ConvoView {
10
+ $type?: 'chat.bsky.moderation.defs#convoView';
11
+ id: string;
12
+ rev: string;
13
+ kind?: $Typed<DirectConvo> | $Typed<GroupConvo> | {
14
+ $type: string;
15
+ };
16
+ }
17
+ export declare function isConvoView<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "chat.bsky.moderation.defs", "convoView">;
18
+ export declare function validateConvoView<V>(v: V): ValidationResult<ConvoView & V>;
19
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. Data specific to a direct conversation, for moderation purposes. */
20
+ export interface DirectConvo {
21
+ $type?: 'chat.bsky.moderation.defs#directConvo';
22
+ }
23
+ export declare function isDirectConvo<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "chat.bsky.moderation.defs", "directConvo">;
24
+ export declare function validateDirectConvo<V>(v: V): ValidationResult<DirectConvo & V>;
25
+ /** [NOTE: This is under active development and should be considered unstable while this note is here]. Data specific to a group conversation, for moderation purposes. Unlike chat.bsky.convo.defs#groupConvo, it does not include viewer-specific data (such as unreadJoinRequestCount), since the requester is a moderator and not a member of the conversation. */
26
+ export interface GroupConvo {
27
+ $type?: 'chat.bsky.moderation.defs#groupConvo';
28
+ createdAt: string;
29
+ joinLink?: ChatBskyGroupDefs.JoinLinkView;
30
+ /** The total number of pending join requests for the group conversation. This information is only visible to the owner and to moderators. Capped at 21. */
31
+ joinRequestCount: number;
32
+ lockStatus: ChatBskyConvoDefs.ConvoLockStatus;
33
+ /** The total number of members in the group conversation. */
34
+ memberCount: number;
35
+ /** The maximum number of members allowed in the group conversation. */
36
+ memberLimit: number;
37
+ /** The display name of the group conversation. */
38
+ name: string;
39
+ }
40
+ export declare function isGroupConvo<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "chat.bsky.moderation.defs", "groupConvo">;
41
+ export declare function validateGroupConvo<V>(v: V): ValidationResult<GroupConvo & V>;
42
+ //# sourceMappingURL=defs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/moderation/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EA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EAAE,CAAC,EAAE,CAAC,oCAEzC"}
@@ -0,0 +1,26 @@
1
+ import { validate as _validate } from '../../../../lexicons.js';
2
+ import { is$typed as _is$typed, } from '../../../../util.js';
3
+ const is$typed = _is$typed, validate = _validate;
4
+ const id = 'chat.bsky.moderation.defs';
5
+ const hashConvoView = 'convoView';
6
+ export function isConvoView(v) {
7
+ return is$typed(v, id, hashConvoView);
8
+ }
9
+ export function validateConvoView(v) {
10
+ return validate(v, id, hashConvoView);
11
+ }
12
+ const hashDirectConvo = 'directConvo';
13
+ export function isDirectConvo(v) {
14
+ return is$typed(v, id, hashDirectConvo);
15
+ }
16
+ export function validateDirectConvo(v) {
17
+ return validate(v, id, hashDirectConvo);
18
+ }
19
+ const hashGroupConvo = 'groupConvo';
20
+ export function isGroupConvo(v) {
21
+ return is$typed(v, id, hashGroupConvo);
22
+ }
23
+ export function validateGroupConvo(v) {
24
+ return validate(v, id, hashGroupConvo);
25
+ }
26
+ //# sourceMappingURL=defs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/moderation/defs.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAI5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,2BAA2B,CAAA;AAUtC,MAAM,aAAa,GAAG,WAAW,CAAA;AAEjC,MAAM,UAAU,WAAW,CAAI,CAAI;IACjC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAA;AACvC,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAI,CAAI;IACvC,OAAO,QAAQ,CAAgB,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAA;AACtD,CAAC;AAOD,MAAM,eAAe,GAAG,aAAa,CAAA;AAErC,MAAM,UAAU,aAAa,CAAI,CAAI;IACnC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AACzC,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAI,CAAI;IACzC,OAAO,QAAQ,CAAkB,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AAC1D,CAAC;AAkBD,MAAM,cAAc,GAAG,YAAY,CAAA;AAEnC,MAAM,UAAU,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,cAAc,CAAC,CAAA;AACxC,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAI,CAAI;IACxC,OAAO,QAAQ,CAAiB,CAAC,EAAE,EAAE,EAAE,cAAc,CAAC,CAAA;AACxD,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as ChatBskyGroupDefs from '../group/defs.js'\nimport type * as ChatBskyConvoDefs from '../convo/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'chat.bsky.moderation.defs'\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. A view of a conversation for moderation purposes. Unlike chat.bsky.convo.defs#convoView, it does not include viewer-specific data (such as muted, unreadCount, status, lastMessage, lastReaction), since the requester is a moderator and not a member of the conversation. The member list is not included; use chat.bsky.moderation.getConvoMembers to list members. */\nexport interface ConvoView {\n $type?: 'chat.bsky.moderation.defs#convoView'\n id: string\n rev: string\n kind?: $Typed<DirectConvo> | $Typed<GroupConvo> | { $type: string }\n}\n\nconst hashConvoView = 'convoView'\n\nexport function isConvoView<V>(v: V) {\n return is$typed(v, id, hashConvoView)\n}\n\nexport function validateConvoView<V>(v: V) {\n return validate<ConvoView & V>(v, id, hashConvoView)\n}\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Data specific to a direct conversation, for moderation purposes. */\nexport interface DirectConvo {\n $type?: 'chat.bsky.moderation.defs#directConvo'\n}\n\nconst hashDirectConvo = 'directConvo'\n\nexport function isDirectConvo<V>(v: V) {\n return is$typed(v, id, hashDirectConvo)\n}\n\nexport function validateDirectConvo<V>(v: V) {\n return validate<DirectConvo & V>(v, id, hashDirectConvo)\n}\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. Data specific to a group conversation, for moderation purposes. Unlike chat.bsky.convo.defs#groupConvo, it does not include viewer-specific data (such as unreadJoinRequestCount), since the requester is a moderator and not a member of the conversation. */\nexport interface GroupConvo {\n $type?: 'chat.bsky.moderation.defs#groupConvo'\n createdAt: string\n joinLink?: ChatBskyGroupDefs.JoinLinkView\n /** The total number of pending join requests for the group conversation. This information is only visible to the owner and to moderators. Capped at 21. */\n joinRequestCount: number\n lockStatus: ChatBskyConvoDefs.ConvoLockStatus\n /** The total number of members in the group conversation. */\n memberCount: number\n /** The maximum number of members allowed in the group conversation. */\n memberLimit: number\n /** The display name of the group conversation. */\n name: string\n}\n\nconst hashGroupConvo = 'groupConvo'\n\nexport function isGroupConvo<V>(v: V) {\n return is$typed(v, id, hashGroupConvo)\n}\n\nexport function validateGroupConvo<V>(v: V) {\n return validate<GroupConvo & V>(v, id, hashGroupConvo)\n}\n"]}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap, XRPCError } from '@atproto/xrpc';
5
+ import type * as ChatBskyModerationDefs from './defs.js';
6
+ export type QueryParams = {
7
+ convoId: string;
8
+ };
9
+ export type InputSchema = undefined;
10
+ export interface OutputSchema {
11
+ convo: ChatBskyModerationDefs.ConvoView;
12
+ }
13
+ export interface CallOptions {
14
+ signal?: AbortSignal;
15
+ headers?: HeadersMap;
16
+ }
17
+ export interface Response {
18
+ success: boolean;
19
+ headers: HeadersMap;
20
+ data: OutputSchema;
21
+ }
22
+ export declare class InvalidConvoError extends XRPCError {
23
+ constructor(src: XRPCError);
24
+ }
25
+ export declare function toKnownErr(e: any): any;
26
+ //# sourceMappingURL=getConvo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getConvo.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/moderation/getConvo.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AASrD,OAAO,KAAK,KAAK,sBAAsB,MAAM,WAAW,CAAA;AAMxD,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,sBAAsB,CAAC,SAAS,CAAA;CACxC;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,qBAAa,iBAAkB,SAAQ,SAAS;gBAClC,GAAG,EAAE,SAAS;CAG3B;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAMhC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { XRPCError } from '@atproto/xrpc';
5
+ import { validate as _validate } from '../../../../lexicons.js';
6
+ import { is$typed as _is$typed, } from '../../../../util.js';
7
+ const is$typed = _is$typed, validate = _validate;
8
+ const id = 'chat.bsky.moderation.getConvo';
9
+ export class InvalidConvoError extends XRPCError {
10
+ constructor(src) {
11
+ super(src.status, src.error, src.message, src.headers, { cause: src });
12
+ }
13
+ }
14
+ export function toKnownErr(e) {
15
+ if (e instanceof XRPCError) {
16
+ if (e.error === 'InvalidConvo')
17
+ return new InvalidConvoError(e);
18
+ }
19
+ return e;
20
+ }
21
+ //# sourceMappingURL=getConvo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getConvo.js","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/moderation/getConvo.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAc,SAAS,EAAE,MAAM,eAAe,CAAA;AAGrD,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAG5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,+BAA+B,CAAA;AAsB1C,MAAM,OAAO,iBAAkB,SAAQ,SAAS;IAC9C,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;IACxE,CAAC;CACF;AAED,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,SAAS,EAAE,CAAC;QAC3B,IAAI,CAAC,CAAC,KAAK,KAAK,cAAc;YAAE,OAAO,IAAI,iBAAiB,CAAC,CAAC,CAAC,CAAA;IACjE,CAAC;IAED,OAAO,CAAC,CAAA;AACV,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.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as ChatBskyModerationDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'chat.bsky.moderation.getConvo'\n\nexport type QueryParams = {\n convoId: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n convo: ChatBskyModerationDefs.ConvoView\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport class InvalidConvoError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n if (e.error === 'InvalidConvo') return new InvalidConvoError(e)\n }\n\n return e\n}\n"]}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap, XRPCError } from '@atproto/xrpc';
5
+ import type * as ChatBskyActorDefs from '../actor/defs.js';
6
+ export type QueryParams = {
7
+ convoId: string;
8
+ limit?: number;
9
+ cursor?: string;
10
+ };
11
+ export type InputSchema = undefined;
12
+ export interface OutputSchema {
13
+ cursor?: string;
14
+ members: ChatBskyActorDefs.ProfileViewBasic[];
15
+ }
16
+ export interface CallOptions {
17
+ signal?: AbortSignal;
18
+ headers?: HeadersMap;
19
+ }
20
+ export interface Response {
21
+ success: boolean;
22
+ headers: HeadersMap;
23
+ data: OutputSchema;
24
+ }
25
+ export declare class InvalidConvoError extends XRPCError {
26
+ constructor(src: XRPCError);
27
+ }
28
+ export declare function toKnownErr(e: any): any;
29
+ //# sourceMappingURL=getConvoMembers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getConvoMembers.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/moderation/getConvoMembers.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AASrD,OAAO,KAAK,KAAK,iBAAiB,MAAM,kBAAkB,CAAA;AAM1D,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,iBAAiB,CAAC,gBAAgB,EAAE,CAAA;CAC9C;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,qBAAa,iBAAkB,SAAQ,SAAS;gBAClC,GAAG,EAAE,SAAS;CAG3B;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAMhC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { XRPCError } from '@atproto/xrpc';
5
+ import { validate as _validate } from '../../../../lexicons.js';
6
+ import { is$typed as _is$typed, } from '../../../../util.js';
7
+ const is$typed = _is$typed, validate = _validate;
8
+ const id = 'chat.bsky.moderation.getConvoMembers';
9
+ export class InvalidConvoError extends XRPCError {
10
+ constructor(src) {
11
+ super(src.status, src.error, src.message, src.headers, { cause: src });
12
+ }
13
+ }
14
+ export function toKnownErr(e) {
15
+ if (e instanceof XRPCError) {
16
+ if (e.error === 'InvalidConvo')
17
+ return new InvalidConvoError(e);
18
+ }
19
+ return e;
20
+ }
21
+ //# sourceMappingURL=getConvoMembers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getConvoMembers.js","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/moderation/getConvoMembers.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAc,SAAS,EAAE,MAAM,eAAe,CAAA;AAGrD,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAG5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,sCAAsC,CAAA;AAyBjD,MAAM,OAAO,iBAAkB,SAAQ,SAAS;IAC9C,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;IACxE,CAAC;CACF;AAED,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,SAAS,EAAE,CAAC;QAC3B,IAAI,CAAC,CAAC,KAAK,KAAK,cAAc;YAAE,OAAO,IAAI,iBAAiB,CAAC,CAAC,CAAC,CAAA;IACjE,CAAC;IAED,OAAO,CAAC,CAAA;AACV,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.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as ChatBskyActorDefs from '../actor/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'chat.bsky.moderation.getConvoMembers'\n\nexport type QueryParams = {\n convoId: string\n limit?: number\n cursor?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n cursor?: string\n members: ChatBskyActorDefs.ProfileViewBasic[]\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport class InvalidConvoError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n if (e.error === 'InvalidConvo') return new InvalidConvoError(e)\n }\n\n return e\n}\n"]}
@@ -218,4 +218,16 @@ export interface EventGroupChatUpdated {
218
218
  }
219
219
  export declare function isEventGroupChatUpdated<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "chat.bsky.moderation.subscribeModEvents", "eventGroupChatUpdated">;
220
220
  export declare function validateEventGroupChatUpdated<V>(v: V): ValidationResult<EventGroupChatUpdated & V>;
221
+ /** Fired when a user exceeds a rate limit. */
222
+ export interface EventRateLimitExceeded {
223
+ $type?: 'chat.bsky.moderation.subscribeModEvents#eventRateLimitExceeded';
224
+ /** The DID of the user who hit the rate limit. */
225
+ actorDid: string;
226
+ createdAt: string;
227
+ /** The NSID of the endpoint that was rate limited. */
228
+ endpoint: string;
229
+ rev: string;
230
+ }
231
+ export declare function isEventRateLimitExceeded<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "chat.bsky.moderation.subscribeModEvents", "eventRateLimitExceeded">;
232
+ export declare function validateEventRateLimitExceeded<V>(v: V): ValidationResult<EventRateLimitExceeded & V>;
221
233
  //# 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,wDAAwD;AACxD,MAAM,WAAW,sBAAsB;IACrC,KAAK,CAAC,EAAE,gEAAgE,CAAA;IACxE,OAAO,EAAE,MA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nB,oBAAoB,GACpB,4BAA4B,GAC5B,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;CAClB;AAID,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,0HAE9C;AAED,wBAAgB,6BAA6B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,+CAEpD"}
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,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,2HAE/C;AAED,wBAAgB,8BAA8B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,gDAErD;AAED,yCAAyC;AACzC,MAAM,WAAW,qBAAqB;IACpC,KAAK,CAAC,EAAE,+DAA+D,CAAA;IACvE,oFAAoF;IACpF,QAAQ,EAAE,MAAM,CAAA;IAChB,6CAA6C;IAC7C,cAAc,EAAE,MAAM,CAAA;IACtB,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,qDAAqD;IACrD,gBAAgB,EAAE,MAAM,CAAA;IACxB,qCAAqC;IACrC,SAAS,EAAE,MAAM,CAAA;IACjB,+CAA+C;IAC/C,iBAAiB,EAAE,MAAM,EAAE,CAAA;IAC3B,uCAAuC;IACvC,QAAQ,EAAE,MAAM,CAAA;I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AAgH;IAChH,wBAAwB,CAAC,EAAE,OAAO,CAAA;IAClC,0EAA0E;IAC1E,UAAU,CAAC,EACP,cAAc,GACd,YAAY,GACZ,mBAAmB,GACnB,eAAe,GACf,iBAAiB,GACjB,kBAAkB,GAClB,eAAe,GACf,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACjB,0EAA0E;IAC1E,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,+EAA+E;IAC/E,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,uCAAuC;IACvC,QAAQ,EAAE,MAAM,CAAA;IAChB,GAAG,EAAE,MAAM,CAAA;IACX,oBAAoB;IACpB,UAAU,EACN,cAAc,GACd,QAAQ,GACR,oBAAoB,GACpB,UAAU,GACV,mBAAmB,GACnB,oBAAoB,GACpB,4BAA4B,GAC5B,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;CAClB;AAID,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,0HAE9C;AAED,wBAAgB,6BAA6B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,+CAEpD;AAED,8CAA8C;AAC9C,MAAM,WAAW,sBAAsB;IACrC,KAAK,CAAC,EAAE,gEAAgE,CAAA;IACxE,kDAAkD;IAClD,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,sDAAsD;IACtD,QAAQ,EAAE,MAAM,CAAA;IAChB,GAAG,EAAE,MAAM,CAAA;CACZ;AAID,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,2HAE/C;AAED,wBAAgB,8BAA8B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,gDAErD"}
@@ -72,4 +72,11 @@ export function isEventGroupChatUpdated(v) {
72
72
  export function validateEventGroupChatUpdated(v) {
73
73
  return validate(v, id, hashEventGroupChatUpdated);
74
74
  }
75
+ const hashEventRateLimitExceeded = 'eventRateLimitExceeded';
76
+ export function isEventRateLimitExceeded(v) {
77
+ return is$typed(v, id, hashEventRateLimitExceeded);
78
+ }
79
+ export function validateEventRateLimitExceeded(v) {
80
+ return validate(v, id, hashEventRateLimitExceeded);
81
+ }
75
82
  //# sourceMappingURL=subscribeModEvents.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscribeModEvents.js","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/moderation/subscribeModEvents.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAE5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,yCAAyC,CAAA;AAepD,MAAM,0BAA0B,GAAG,wBAAwB,CAAA;AAE3D,MAAM,UAAU,wBAAwB,CAAI,CAAI;IAC9C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,0BAA0B,CAAC,CAAA;AACpD,CAAC;AAED,MAAM,UAAU,8BAA8B,CAAI,CAAI;IACpD,OAAO,QAAQ,CAA6B,CAAC,EAAE,EAAE,EAAE,0BAA0B,CAAC,CAAA;AAChF,CAAC;AAsBD,MAAM,yBAAyB,GAAG,uBAAuB,CAAA;AAEzD,MAAM,UAAU,uBAAuB,CAAI,CAAI;IAC7C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,yBAAyB,CAAC,CAAA;AACnD,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAI,CAAI;IACnD,OAAO,QAAQ,CAA4B,CAAC,EAAE,EAAE,EAAE,yBAAyB,CAAC,CAAA;AAC9E,CAAC;AAyBD,MAAM,6BAA6B,GAAG,2BAA2B,CAAA;AAEjE,MAAM,UAAU,2BAA2B,CAAI,CAAI;IACjD,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,6BAA6B,CAAC,CAAA;AACvD,CAAC;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AAsBD,MAAM,qBAAqB,GAAG,mBAAmB,CAAA;AAEjD,MAAM,UAAU,mBAAmB,CAAI,CAAI;IACzC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,qBAAqB,CAAC,CAAA;AAC/C,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAI,CAAI;IAC/C,OAAO,QAAQ,CAAwB,CAAC,EAAE,EAAE,EAAE,qBAAqB,CAAC,CAAA;AACtE,CAAC;AAuBD,MAAM,4BAA4B,GAAG,0BAA0B,CAAA;AAE/D,MAAM,UAAU,0BAA0B,CAAI,CAAI;IAChD,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,4BAA4B,CAAC,CAAA;AACtD,CAAC;AAED,MAAM,UAAU,gCAAgC,CAAI,CAAI;IACtD,OAAO,QAAQ,CACb,CAAC,EACD,EAAE,EACF,4BAA4B,CAC7B,CAAA;AACH,CAAC;AAkDD,MAAM,yBAAyB,GAAG,uBAAuB,CAAA;AAEzD,MAAM,UAAU,uBAAuB,CAAI,CAAI;IAC7C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,yBAAyB,CAAC,CAAA;AACnD,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAI,CAAI;IACnD,OAAO,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.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\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_suspended'\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"]}
1
+ {"version":3,"file":"subscribeModEvents.js","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/moderation/subscribeModEvents.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAE5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,yCAAyC,CAAA;AAepD,MAAM,0BAA0B,GA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,EAAE,EACF,4BAA4B,CAC7B,CAAA;AACH,CAAC;AAkDD,MAAM,yBAAyB,GAAG,uBAAuB,CAAA;AAEzD,MAAM,UAAU,uBAAuB,CAAI,CAAI;IAC7C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,yBAAyB,CAAC,CAAA;AACnD,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAI,CAAI;IACnD,OAAO,QAAQ,CAA4B,CAAC,EAAE,EAAE,EAAE,yBAAyB,CAAC,CAAA;AAC9E,CAAC;AAaD,MAAM,0BAA0B,GAAG,wBAAwB,CAAA;AAE3D,MAAM,UAAU,wBAAwB,CAAI,CAAI;IAC9C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,0BAA0B,CAAC,CAAA;AACpD,CAAC;AAED,MAAM,UAAU,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.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\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_suspended'\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\n/** Fired when a user exceeds a rate limit. */\nexport interface EventRateLimitExceeded {\n $type?: 'chat.bsky.moderation.subscribeModEvents#eventRateLimitExceeded'\n /** The DID of the user who hit the rate limit. */\n actorDid: string\n createdAt: string\n /** The NSID of the endpoint that was rate limited. */\n endpoint: string\n rev: string\n}\n\nconst hashEventRateLimitExceeded = 'eventRateLimitExceeded'\n\nexport function isEventRateLimitExceeded<V>(v: V) {\n return is$typed(v, id, hashEventRateLimitExceeded)\n}\n\nexport function validateEventRateLimitExceeded<V>(v: V) {\n return validate<EventRateLimitExceeded & V>(v, id, hashEventRateLimitExceeded)\n}\n"]}
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import { HeadersMap, XRPCError } from '@atproto/xrpc';
5
5
  export type QueryParams = {
6
- /** The DID of the service that the token will be used to authenticate with */
6
+ /** The DID or `did#serviceId` reference of the service that the token will be used to authenticate with. */
7
7
  aud: string;
8
8
  /** The time in Unix Epoch seconds that the JWT expires. Defaults to 60 seconds in the future. The service may enforce certain time bounds on tokens depending on the requested scope. */
9
9
  exp?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"getServiceAuth.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/server/getServiceAuth.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAcrD,MAAM,MAAM,WAAW,GAAG;IACxB,8EAA8E;IAC9E,GAAG,EAAE,MAAM,CAAA;IACX,yLAAyL;IACzL,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,2DAA2D;IAC3D,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,qBAAa,kBAAmB,SAAQ,SAAS;gBACnC,GAAG,EAAE,SAAS;CAG3B;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAMhC"}
1
+ {"version":3,"file":"getServiceAuth.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/server/getServiceAuth.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAcrD,MAAM,MAAM,WAAW,GAAG;IACxB,4GAA4G;IAC5G,GAAG,EAAE,MAAM,CAAA;IACX,yLAAyL;IACzL,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,2DAA2D;IAC3D,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,qBAAa,kBAAmB,SAAQ,SAAS;gBACnC,GAAG,EAAE,SAAS;CAG3B;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAMhC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getServiceAuth.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/server/getServiceAuth.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAc,SAAS,EAAE,MAAM,eAAe,CAAA;AAGrD,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAE5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,mCAAmC,CAAA;AA2B9C,MAAM,OAAO,kBAAmB,SAAQ,SAAS;IAC/C,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;IACxE,CAAC;CACF;AAED,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,SAAS,EAAE,CAAC;QAC3B,IAAI,CAAC,CAAC,KAAK,KAAK,eAAe;YAAE,OAAO,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAAA;IACnE,CAAC;IAED,OAAO,CAAC,CAAA;AACV,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.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'com.atproto.server.getServiceAuth'\n\nexport type QueryParams = {\n /** The DID of the service that the token will be used to authenticate with */\n aud: string\n /** The time in Unix Epoch seconds that the JWT expires. Defaults to 60 seconds in the future. The service may enforce certain time bounds on tokens depending on the requested scope. */\n exp?: number\n /** Lexicon (XRPC) method to bind the requested token to */\n lxm?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n token: string\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport class BadExpirationError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n if (e.error === 'BadExpiration') return new BadExpirationError(e)\n }\n\n return e\n}\n"]}
1
+ {"version":3,"file":"getServiceAuth.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/server/getServiceAuth.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAc,SAAS,EAAE,MAAM,eAAe,CAAA;AAGrD,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAE5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,mCAAmC,CAAA;AA2B9C,MAAM,OAAO,kBAAmB,SAAQ,SAAS;IAC/C,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;IACxE,CAAC;CACF;AAED,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,SAAS,EAAE,CAAC;QAC3B,IAAI,CAAC,CAAC,KAAK,KAAK,eAAe;YAAE,OAAO,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAAA;IACnE,CAAC;IAED,OAAO,CAAC,CAAA;AACV,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.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'com.atproto.server.getServiceAuth'\n\nexport type QueryParams = {\n /** The DID or `did#serviceId` reference of the service that the token will be used to authenticate with. */\n aud: string\n /** The time in Unix Epoch seconds that the JWT expires. Defaults to 60 seconds in the future. The service may enforce certain time bounds on tokens depending on the requested scope. */\n exp?: number\n /** Lexicon (XRPC) method to bind the requested token to */\n lxm?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n token: string\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport class BadExpirationError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n if (e.error === 'BadExpiration') return new BadExpirationError(e)\n }\n\n return e\n}\n"]}
@@ -16,7 +16,7 @@ export interface ModEventView {
16
16
  event: $Typed<ModEventTakedown> | $Typed<ModEventReverseTakedown> | $Typed<ModEventComment> | $Typed<ModEventReport> | $Typed<ModEventLabel> | $Typed<ModEventAcknowledge> | $Typed<ModEventEscalate> | $Typed<ModEventMute> | $Typed<ModEventUnmute> | $Typed<ModEventMuteReporter> | $Typed<ModEventUnmuteReporter> | $Typed<ModEventEmail> | $Typed<ModEventResolveAppeal> | $Typed<ModEventDivert> | $Typed<ModEventTag> | $Typed<AccountEvent> | $Typed<IdentityEvent> | $Typed<RecordEvent> | $Typed<ModEventPriorityScore> | $Typed<AgeAssuranceEvent> | $Typed<AgeAssuranceOverrideEvent> | $Typed<AgeAssurancePurgeEvent> | $Typed<RevokeAccountCredentialsEvent> | $Typed<ScheduleTakedownEvent> | $Typed<CancelScheduledTakedownEvent> | {
17
17
  $type: string;
18
18
  };
19
- subject: $Typed<ComAtprotoAdminDefs.RepoRef> | $Typed<ComAtprotoRepoStrongRef.Main> | $Typed<ChatBskyConvoDefs.MessageRef> | {
19
+ subject: $Typed<ComAtprotoAdminDefs.RepoRef> | $Typed<ComAtprotoRepoStrongRef.Main> | $Typed<ChatBskyConvoDefs.MessageRef> | $Typed<ChatBskyConvoDefs.ConvoRef> | {
20
20
  $type: string;
21
21
  };
22
22
  subjectBlobCids: string[];
@@ -34,7 +34,7 @@ export interface ModEventViewDetail {
34
34
  event: $Typed<ModEventTakedown> | $Typed<ModEventReverseTakedown> | $Typed<ModEventComment> | $Typed<ModEventReport> | $Typed<ModEventLabel> | $Typed<ModEventAcknowledge> | $Typed<ModEventEscalate> | $Typed<ModEventMute> | $Typed<ModEventUnmute> | $Typed<ModEventMuteReporter> | $Typed<ModEventUnmuteReporter> | $Typed<ModEventEmail> | $Typed<ModEventResolveAppeal> | $Typed<ModEventDivert> | $Typed<ModEventTag> | $Typed<AccountEvent> | $Typed<IdentityEvent> | $Typed<RecordEvent> | $Typed<ModEventPriorityScore> | $Typed<AgeAssuranceEvent> | $Typed<AgeAssuranceOverrideEvent> | $Typed<AgeAssurancePurgeEvent> | $Typed<RevokeAccountCredentialsEvent> | $Typed<ScheduleTakedownEvent> | $Typed<CancelScheduledTakedownEvent> | {
35
35
  $type: string;
36
36
  };
37
- subject: $Typed<RepoView> | $Typed<RepoViewNotFound> | $Typed<RecordView> | $Typed<RecordViewNotFound> | {
37
+ subject: $Typed<RepoView> | $Typed<RepoViewNotFound> | $Typed<RecordView> | $Typed<RecordViewNotFound> | $Typed<ConvoView> | {
38
38
  $type: string;
39
39
  };
40
40
  subjectBlobs: BlobView[];
@@ -47,7 +47,7 @@ export declare function validateModEventViewDetail<V>(v: V): ValidationResult<Mo
47
47
  export interface SubjectStatusView {
48
48
  $type?: 'tools.ozone.moderation.defs#subjectStatusView';
49
49
  id: number;
50
- subject: $Typed<ComAtprotoAdminDefs.RepoRef> | $Typed<ComAtprotoRepoStrongRef.Main> | $Typed<ChatBskyConvoDefs.MessageRef> | {
50
+ subject: $Typed<ComAtprotoAdminDefs.RepoRef> | $Typed<ComAtprotoRepoStrongRef.Main> | $Typed<ChatBskyConvoDefs.MessageRef> | $Typed<ChatBskyConvoDefs.ConvoRef> | {
51
51
  $type: string;
52
52
  };
53
53
  hosting?: $Typed<AccountHosting> | $Typed<RecordHosting> | {
@@ -514,6 +514,13 @@ export interface RecordViewNotFound {
514
514
  }
515
515
  export declare function isRecordViewNotFound<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.moderation.defs", "recordViewNotFound">;
516
516
  export declare function validateRecordViewNotFound<V>(v: V): ValidationResult<RecordViewNotFound & V>;
517
+ export interface ConvoView {
518
+ $type?: 'tools.ozone.moderation.defs#convoView';
519
+ did: string;
520
+ convoId: string;
521
+ }
522
+ export declare function isConvoView<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.moderation.defs", "convoView">;
523
+ export declare function validateConvoView<V>(v: V): ValidationResult<ConvoView & V>;
517
524
  export interface Moderation {
518
525
  $type?: 'tools.ozone.moderation.defs#moderation';
519
526
  subjectStatus?: SubjectStatusView;