@atproto/api 0.19.15 → 0.19.17

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 (143) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/client/index.d.ts +74 -3
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +178 -9
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/lexicons.d.ts +11272 -8116
  7. package/dist/client/lexicons.d.ts.map +1 -1
  8. package/dist/client/lexicons.js +1800 -128
  9. package/dist/client/lexicons.js.map +1 -1
  10. package/dist/client/types/chat/bsky/convo/listConvos.d.ts +2 -0
  11. package/dist/client/types/chat/bsky/convo/listConvos.d.ts.map +1 -1
  12. package/dist/client/types/chat/bsky/convo/listConvos.js.map +1 -1
  13. package/dist/client/types/chat/bsky/group/defs.d.ts +6 -4
  14. package/dist/client/types/chat/bsky/group/defs.d.ts.map +1 -1
  15. package/dist/client/types/chat/bsky/group/defs.js +7 -7
  16. package/dist/client/types/chat/bsky/group/defs.js.map +1 -1
  17. package/dist/client/types/chat/bsky/group/{getGroupPublicInfo.d.ts → getJoinLinkPreview.d.ts} +2 -2
  18. package/dist/client/types/chat/bsky/group/getJoinLinkPreview.d.ts.map +1 -0
  19. package/dist/client/types/chat/bsky/group/{getGroupPublicInfo.js → getJoinLinkPreview.js} +2 -2
  20. package/dist/client/types/chat/bsky/group/{getGroupPublicInfo.js.map → getJoinLinkPreview.js.map} +1 -1
  21. package/dist/client/types/tools/ozone/moderation/emitEvent.d.ts +16 -0
  22. package/dist/client/types/tools/ozone/moderation/emitEvent.d.ts.map +1 -1
  23. package/dist/client/types/tools/ozone/moderation/emitEvent.js +9 -0
  24. package/dist/client/types/tools/ozone/moderation/emitEvent.js.map +1 -1
  25. package/dist/client/types/tools/ozone/queue/assignModerator.d.ts +29 -0
  26. package/dist/client/types/tools/ozone/queue/assignModerator.d.ts.map +1 -0
  27. package/dist/client/types/tools/ozone/queue/assignModerator.js +26 -0
  28. package/dist/client/types/tools/ozone/queue/assignModerator.js.map +1 -0
  29. package/dist/client/types/tools/ozone/queue/createQueue.d.ts +37 -0
  30. package/dist/client/types/tools/ozone/queue/createQueue.d.ts.map +1 -0
  31. package/dist/client/types/tools/ozone/queue/createQueue.js +26 -0
  32. package/dist/client/types/tools/ozone/queue/createQueue.js.map +1 -0
  33. package/dist/client/types/tools/ozone/queue/defs.d.ts +62 -0
  34. package/dist/client/types/tools/ozone/queue/defs.d.ts.map +1 -0
  35. package/dist/client/types/tools/ozone/queue/defs.js +34 -0
  36. package/dist/client/types/tools/ozone/queue/defs.js.map +1 -0
  37. package/dist/client/types/tools/ozone/queue/deleteQueue.d.ts +29 -0
  38. package/dist/client/types/tools/ozone/queue/deleteQueue.d.ts.map +1 -0
  39. package/dist/client/types/tools/ozone/queue/deleteQueue.js +11 -0
  40. package/dist/client/types/tools/ozone/queue/deleteQueue.js.map +1 -0
  41. package/dist/client/types/tools/ozone/queue/getAssignments.d.ts +31 -0
  42. package/dist/client/types/tools/ozone/queue/getAssignments.d.ts.map +1 -0
  43. package/dist/client/types/tools/ozone/queue/getAssignments.js +11 -0
  44. package/dist/client/types/tools/ozone/queue/getAssignments.js.map +1 -0
  45. package/dist/client/types/tools/ozone/queue/listQueues.d.ts +33 -0
  46. package/dist/client/types/tools/ozone/queue/listQueues.d.ts.map +1 -0
  47. package/dist/client/types/tools/ozone/queue/listQueues.js +11 -0
  48. package/dist/client/types/tools/ozone/queue/listQueues.js.map +1 -0
  49. package/dist/client/types/tools/ozone/queue/routeReports.d.ts +33 -0
  50. package/dist/client/types/tools/ozone/queue/routeReports.d.ts.map +1 -0
  51. package/dist/client/types/tools/ozone/queue/routeReports.js +26 -0
  52. package/dist/client/types/tools/ozone/queue/routeReports.js.map +1 -0
  53. package/dist/client/types/tools/ozone/queue/unassignModerator.d.ts +26 -0
  54. package/dist/client/types/tools/ozone/queue/unassignModerator.d.ts.map +1 -0
  55. package/dist/client/types/tools/ozone/queue/unassignModerator.js +26 -0
  56. package/dist/client/types/tools/ozone/queue/unassignModerator.js.map +1 -0
  57. package/dist/client/types/tools/ozone/queue/updateQueue.d.ts +32 -0
  58. package/dist/client/types/tools/ozone/queue/updateQueue.d.ts.map +1 -0
  59. package/dist/client/types/tools/ozone/queue/updateQueue.js +11 -0
  60. package/dist/client/types/tools/ozone/queue/updateQueue.js.map +1 -0
  61. package/dist/client/types/tools/ozone/report/assignModerator.d.ts +36 -0
  62. package/dist/client/types/tools/ozone/report/assignModerator.d.ts.map +1 -0
  63. package/dist/client/types/tools/ozone/report/assignModerator.js +34 -0
  64. package/dist/client/types/tools/ozone/report/assignModerator.js.map +1 -0
  65. package/dist/client/types/tools/ozone/report/createActivity.d.ts +45 -0
  66. package/dist/client/types/tools/ozone/report/createActivity.d.ts.map +1 -0
  67. package/dist/client/types/tools/ozone/report/createActivity.js +42 -0
  68. package/dist/client/types/tools/ozone/report/createActivity.js.map +1 -0
  69. package/dist/client/types/tools/ozone/report/defs.d.ts +185 -0
  70. package/dist/client/types/tools/ozone/report/defs.d.ts.map +1 -1
  71. package/dist/client/types/tools/ozone/report/defs.js +108 -0
  72. package/dist/client/types/tools/ozone/report/defs.js.map +1 -1
  73. package/dist/client/types/tools/ozone/report/getAssignments.d.ts +31 -0
  74. package/dist/client/types/tools/ozone/report/getAssignments.d.ts.map +1 -0
  75. package/dist/client/types/tools/ozone/report/getAssignments.js +11 -0
  76. package/dist/client/types/tools/ozone/report/getAssignments.js.map +1 -0
  77. package/dist/client/types/tools/ozone/report/getHistoricalStats.d.ts +37 -0
  78. package/dist/client/types/tools/ozone/report/getHistoricalStats.d.ts.map +1 -0
  79. package/dist/client/types/tools/ozone/report/getHistoricalStats.js +11 -0
  80. package/dist/client/types/tools/ozone/report/getHistoricalStats.js.map +1 -0
  81. package/dist/client/types/tools/ozone/report/getLatestReport.d.ts +24 -0
  82. package/dist/client/types/tools/ozone/report/getLatestReport.d.ts.map +1 -0
  83. package/dist/client/types/tools/ozone/report/getLatestReport.js +26 -0
  84. package/dist/client/types/tools/ozone/report/getLatestReport.js.map +1 -0
  85. package/dist/client/types/tools/ozone/report/getLiveStats.d.ts +28 -0
  86. package/dist/client/types/tools/ozone/report/getLiveStats.d.ts.map +1 -0
  87. package/dist/client/types/tools/ozone/report/getLiveStats.js +11 -0
  88. package/dist/client/types/tools/ozone/report/getLiveStats.js.map +1 -0
  89. package/dist/client/types/tools/ozone/report/getReport.d.ts +25 -0
  90. package/dist/client/types/tools/ozone/report/getReport.d.ts.map +1 -0
  91. package/dist/client/types/tools/ozone/report/getReport.js +26 -0
  92. package/dist/client/types/tools/ozone/report/getReport.js.map +1 -0
  93. package/dist/client/types/tools/ozone/report/listActivities.d.ts +27 -0
  94. package/dist/client/types/tools/ozone/report/listActivities.d.ts.map +1 -0
  95. package/dist/client/types/tools/ozone/report/listActivities.js +11 -0
  96. package/dist/client/types/tools/ozone/report/listActivities.js.map +1 -0
  97. package/dist/client/types/tools/ozone/report/queryReports.d.ts +49 -0
  98. package/dist/client/types/tools/ozone/report/queryReports.d.ts.map +1 -0
  99. package/dist/client/types/tools/ozone/report/queryReports.js +11 -0
  100. package/dist/client/types/tools/ozone/report/queryReports.js.map +1 -0
  101. package/dist/client/types/tools/ozone/report/reassignQueue.d.ts +45 -0
  102. package/dist/client/types/tools/ozone/report/reassignQueue.d.ts.map +1 -0
  103. package/dist/client/types/tools/ozone/report/reassignQueue.js +58 -0
  104. package/dist/client/types/tools/ozone/report/reassignQueue.js.map +1 -0
  105. package/dist/client/types/tools/ozone/report/refreshStats.d.ts +28 -0
  106. package/dist/client/types/tools/ozone/report/refreshStats.d.ts.map +1 -0
  107. package/dist/client/types/tools/ozone/report/refreshStats.js +11 -0
  108. package/dist/client/types/tools/ozone/report/refreshStats.js.map +1 -0
  109. package/dist/client/types/tools/ozone/report/unassignModerator.d.ts +27 -0
  110. package/dist/client/types/tools/ozone/report/unassignModerator.d.ts.map +1 -0
  111. package/dist/client/types/tools/ozone/report/unassignModerator.js +26 -0
  112. package/dist/client/types/tools/ozone/report/unassignModerator.js.map +1 -0
  113. package/package.json +1 -1
  114. package/src/client/index.ts +300 -8
  115. package/src/client/lexicons.ts +1920 -164
  116. package/src/client/types/chat/bsky/convo/listConvos.ts +2 -0
  117. package/src/client/types/chat/bsky/group/defs.ts +9 -7
  118. package/src/client/types/chat/bsky/group/{getGroupPublicInfo.ts → getJoinLinkPreview.ts} +2 -2
  119. package/src/client/types/tools/ozone/moderation/emitEvent.ts +24 -0
  120. package/src/client/types/tools/ozone/queue/assignModerator.ts +55 -0
  121. package/src/client/types/tools/ozone/queue/createQueue.ts +63 -0
  122. package/src/client/types/tools/ozone/queue/defs.ts +99 -0
  123. package/src/client/types/tools/ozone/queue/deleteQueue.ts +48 -0
  124. package/src/client/types/tools/ozone/queue/getAssignments.ts +49 -0
  125. package/src/client/types/tools/ozone/queue/listQueues.ts +51 -0
  126. package/src/client/types/tools/ozone/queue/routeReports.ts +59 -0
  127. package/src/client/types/tools/ozone/queue/unassignModerator.ts +51 -0
  128. package/src/client/types/tools/ozone/queue/updateQueue.ts +51 -0
  129. package/src/client/types/tools/ozone/report/assignModerator.ts +66 -0
  130. package/src/client/types/tools/ozone/report/createActivity.ts +85 -0
  131. package/src/client/types/tools/ozone/report/defs.ts +327 -0
  132. package/src/client/types/tools/ozone/report/getAssignments.ts +49 -0
  133. package/src/client/types/tools/ozone/report/getHistoricalStats.ts +55 -0
  134. package/src/client/types/tools/ozone/report/getLatestReport.ts +49 -0
  135. package/src/client/types/tools/ozone/report/getLiveStats.ts +46 -0
  136. package/src/client/types/tools/ozone/report/getReport.ts +49 -0
  137. package/src/client/types/tools/ozone/report/listActivities.ts +45 -0
  138. package/src/client/types/tools/ozone/report/queryReports.ts +73 -0
  139. package/src/client/types/tools/ozone/report/reassignQueue.ts +88 -0
  140. package/src/client/types/tools/ozone/report/refreshStats.ts +46 -0
  141. package/src/client/types/tools/ozone/report/unassignModerator.ts +53 -0
  142. package/tsconfig.build.tsbuildinfo +1 -1
  143. package/dist/client/types/chat/bsky/group/getGroupPublicInfo.d.ts.map +0 -1
@@ -0,0 +1,31 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap } from '@atproto/xrpc';
5
+ import type * as ToolsOzoneQueueDefs from './defs.js';
6
+ export type QueryParams = {
7
+ /** When true, only returns active assignments. */
8
+ onlyActive?: boolean;
9
+ /** If specified, returns assignments for these queues only. */
10
+ queueIds?: number[];
11
+ /** If specified, returns assignments for these moderators only. */
12
+ dids?: string[];
13
+ limit?: number;
14
+ cursor?: string;
15
+ };
16
+ export type InputSchema = undefined;
17
+ export interface OutputSchema {
18
+ cursor?: string;
19
+ assignments: ToolsOzoneQueueDefs.AssignmentView[];
20
+ }
21
+ export interface CallOptions {
22
+ signal?: AbortSignal;
23
+ headers?: HeadersMap;
24
+ }
25
+ export interface Response {
26
+ success: boolean;
27
+ headers: HeadersMap;
28
+ data: OutputSchema;
29
+ }
30
+ export declare function toKnownErr(e: any): any;
31
+ //# sourceMappingURL=getAssignments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAssignments.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/queue/getAssignments.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AASrD,OAAO,KAAK,KAAK,mBAAmB,MAAM,WAAW,CAAA;AAMrD,MAAM,MAAM,WAAW,GAAG;IACxB,kDAAkD;IAClD,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,mEAAmE;IACnE,IAAI,CAAC,EAAE,MAAM,EAAE,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,WAAW,EAAE,mBAAmB,CAAC,cAAc,EAAE,CAAA;CAClD;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,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAEhC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toKnownErr = toKnownErr;
4
+ const lexicons_1 = require("../../../../lexicons");
5
+ const util_1 = require("../../../../util");
6
+ const is$typed = util_1.is$typed, validate = lexicons_1.validate;
7
+ const id = 'tools.ozone.queue.getAssignments';
8
+ function toKnownErr(e) {
9
+ return e;
10
+ }
11
+ //# sourceMappingURL=getAssignments.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAssignments.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/queue/getAssignments.ts"],"names":[],"mappings":";;AA8CA,gCAEC;AA1CD,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,kCAAkC,CAAA;AA8B7C,SAAgB,UAAU,CAAC,CAAM;IAC/B,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'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as ToolsOzoneQueueDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.queue.getAssignments'\n\nexport type QueryParams = {\n /** When true, only returns active assignments. */\n onlyActive?: boolean\n /** If specified, returns assignments for these queues only. */\n queueIds?: number[]\n /** If specified, returns assignments for these moderators only. */\n dids?: string[]\n limit?: number\n cursor?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n cursor?: string\n assignments: ToolsOzoneQueueDefs.AssignmentView[]\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 function toKnownErr(e: any) {\n return e\n}\n"]}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap } from '@atproto/xrpc';
5
+ import type * as ToolsOzoneQueueDefs from './defs.js';
6
+ export type QueryParams = {
7
+ /** Filter by enabled status. If not specified, returns all queues. */
8
+ enabled?: boolean;
9
+ /** Filter queues that handle this subject type ('account' or 'record'). */
10
+ subjectType?: string;
11
+ /** Filter queues by collection name (e.g. 'app.bsky.feed.post'). */
12
+ collection?: string;
13
+ /** Filter queues that handle any of these report reason types. */
14
+ reportTypes?: string[];
15
+ limit?: number;
16
+ cursor?: string;
17
+ };
18
+ export type InputSchema = undefined;
19
+ export interface OutputSchema {
20
+ cursor?: string;
21
+ queues: ToolsOzoneQueueDefs.QueueView[];
22
+ }
23
+ export interface CallOptions {
24
+ signal?: AbortSignal;
25
+ headers?: HeadersMap;
26
+ }
27
+ export interface Response {
28
+ success: boolean;
29
+ headers: HeadersMap;
30
+ data: OutputSchema;
31
+ }
32
+ export declare function toKnownErr(e: any): any;
33
+ //# sourceMappingURL=listQueues.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listQueues.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/queue/listQueues.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AASrD,OAAO,KAAK,KAAK,mBAAmB,MAAM,WAAW,CAAA;AAMrD,MAAM,MAAM,WAAW,GAAG;IACxB,sEAAsE;IACtE,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2EAA2E;IAC3E,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,oEAAoE;IACpE,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,kEAAkE;IAClE,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,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,MAAM,EAAE,mBAAmB,CAAC,SAAS,EAAE,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,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAEhC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toKnownErr = toKnownErr;
4
+ const lexicons_1 = require("../../../../lexicons");
5
+ const util_1 = require("../../../../util");
6
+ const is$typed = util_1.is$typed, validate = lexicons_1.validate;
7
+ const id = 'tools.ozone.queue.listQueues';
8
+ function toKnownErr(e) {
9
+ return e;
10
+ }
11
+ //# sourceMappingURL=listQueues.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listQueues.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/queue/listQueues.ts"],"names":[],"mappings":";;AAgDA,gCAEC;AA5CD,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,8BAA8B,CAAA;AAgCzC,SAAgB,UAAU,CAAC,CAAM;IAC/B,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'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as ToolsOzoneQueueDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.queue.listQueues'\n\nexport type QueryParams = {\n /** Filter by enabled status. If not specified, returns all queues. */\n enabled?: boolean\n /** Filter queues that handle this subject type ('account' or 'record'). */\n subjectType?: string\n /** Filter queues by collection name (e.g. 'app.bsky.feed.post'). */\n collection?: string\n /** Filter queues that handle any of these report reason types. */\n reportTypes?: string[]\n limit?: number\n cursor?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n cursor?: string\n queues: ToolsOzoneQueueDefs.QueueView[]\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 function toKnownErr(e: any) {\n return e\n}\n"]}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap, XRPCError } from '@atproto/xrpc';
5
+ export type QueryParams = {};
6
+ export interface InputSchema {
7
+ /** Start of report ID range (inclusive). */
8
+ startReportId: number;
9
+ /** End of report ID range (inclusive). Difference between start and end must be less than 5,000. */
10
+ endReportId: number;
11
+ }
12
+ export interface OutputSchema {
13
+ /** The number of reports assigned to a queue. */
14
+ assigned: number;
15
+ /** The number of reports with no matching queue. */
16
+ unmatched: number;
17
+ }
18
+ export interface CallOptions {
19
+ signal?: AbortSignal;
20
+ headers?: HeadersMap;
21
+ qp?: QueryParams;
22
+ encoding?: 'application/json';
23
+ }
24
+ export interface Response {
25
+ success: boolean;
26
+ headers: HeadersMap;
27
+ data: OutputSchema;
28
+ }
29
+ export declare class OutOfRangeError extends XRPCError {
30
+ constructor(src: XRPCError);
31
+ }
32
+ export declare function toKnownErr(e: any): any;
33
+ //# sourceMappingURL=routeReports.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routeReports.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/queue/routeReports.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,4CAA4C;IAC5C,aAAa,EAAE,MAAM,CAAA;IACrB,oGAAoG;IACpG,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,iDAAiD;IACjD,QAAQ,EAAE,MAAM,CAAA;IAChB,oDAAoD;IACpD,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,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,eAAgB,SAAQ,SAAS;gBAChC,GAAG,EAAE,SAAS;CAG3B;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAMhC"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OutOfRangeError = void 0;
4
+ exports.toKnownErr = toKnownErr;
5
+ /**
6
+ * GENERATED CODE - DO NOT MODIFY
7
+ */
8
+ const xrpc_1 = require("@atproto/xrpc");
9
+ const lexicons_1 = require("../../../../lexicons");
10
+ const util_1 = require("../../../../util");
11
+ const is$typed = util_1.is$typed, validate = lexicons_1.validate;
12
+ const id = 'tools.ozone.queue.routeReports';
13
+ class OutOfRangeError extends xrpc_1.XRPCError {
14
+ constructor(src) {
15
+ super(src.status, src.error, src.message, src.headers, { cause: src });
16
+ }
17
+ }
18
+ exports.OutOfRangeError = OutOfRangeError;
19
+ function toKnownErr(e) {
20
+ if (e instanceof xrpc_1.XRPCError) {
21
+ if (e.error === 'OutOfRange')
22
+ return new OutOfRangeError(e);
23
+ }
24
+ return e;
25
+ }
26
+ //# sourceMappingURL=routeReports.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routeReports.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/queue/routeReports.ts"],"names":[],"mappings":";;;AAoDA,gCAMC;AA1DD;;GAEG;AACH,wCAAqD;AAGrD,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,gCAAgC,CAAA;AA+B3C,MAAa,eAAgB,SAAQ,gBAAS;IAC5C,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;AAJD,0CAIC;AAED,SAAgB,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,gBAAS,EAAE,CAAC;QAC3B,IAAI,CAAC,CAAC,KAAK,KAAK,YAAY;YAAE,OAAO,IAAI,eAAe,CAAC,CAAC,CAAC,CAAA;IAC7D,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'\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 = 'tools.ozone.queue.routeReports'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n /** Start of report ID range (inclusive). */\n startReportId: number\n /** End of report ID range (inclusive). Difference between start and end must be less than 5,000. */\n endReportId: number\n}\n\nexport interface OutputSchema {\n /** The number of reports assigned to a queue. */\n assigned: number\n /** The number of reports with no matching queue. */\n unmatched: number\n}\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 OutOfRangeError 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 === 'OutOfRange') return new OutOfRangeError(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
+ /** The ID of the queue to unassign the user from. */
8
+ queueId: number;
9
+ /** DID to be unassigned. */
10
+ did: string;
11
+ }
12
+ export interface CallOptions {
13
+ signal?: AbortSignal;
14
+ headers?: HeadersMap;
15
+ qp?: QueryParams;
16
+ encoding?: 'application/json';
17
+ }
18
+ export interface Response {
19
+ success: boolean;
20
+ headers: HeadersMap;
21
+ }
22
+ export declare class InvalidAssignmentError extends XRPCError {
23
+ constructor(src: XRPCError);
24
+ }
25
+ export declare function toKnownErr(e: any): any;
26
+ //# sourceMappingURL=unassignModerator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unassignModerator.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/queue/unassignModerator.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,qDAAqD;IACrD,OAAO,EAAE,MAAM,CAAA;IACf,4BAA4B;IAC5B,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,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;CACpB;AAED,qBAAa,sBAAuB,SAAQ,SAAS;gBACvC,GAAG,EAAE,SAAS;CAG3B;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAMhC"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InvalidAssignmentError = void 0;
4
+ exports.toKnownErr = toKnownErr;
5
+ /**
6
+ * GENERATED CODE - DO NOT MODIFY
7
+ */
8
+ const xrpc_1 = require("@atproto/xrpc");
9
+ const lexicons_1 = require("../../../../lexicons");
10
+ const util_1 = require("../../../../util");
11
+ const is$typed = util_1.is$typed, validate = lexicons_1.validate;
12
+ const id = 'tools.ozone.queue.unassignModerator';
13
+ class InvalidAssignmentError extends xrpc_1.XRPCError {
14
+ constructor(src) {
15
+ super(src.status, src.error, src.message, src.headers, { cause: src });
16
+ }
17
+ }
18
+ exports.InvalidAssignmentError = InvalidAssignmentError;
19
+ function toKnownErr(e) {
20
+ if (e instanceof xrpc_1.XRPCError) {
21
+ if (e.error === 'InvalidAssignment')
22
+ return new InvalidAssignmentError(e);
23
+ }
24
+ return e;
25
+ }
26
+ //# sourceMappingURL=unassignModerator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unassignModerator.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/queue/unassignModerator.ts"],"names":[],"mappings":";;;AA4CA,gCAMC;AAlDD;;GAEG;AACH,wCAAqD;AAGrD,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,qCAAqC,CAAA;AAuBhD,MAAa,sBAAuB,SAAQ,gBAAS;IACnD,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;AAJD,wDAIC;AAED,SAAgB,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,gBAAS,EAAE,CAAC;QAC3B,IAAI,CAAC,CAAC,KAAK,KAAK,mBAAmB;YAAE,OAAO,IAAI,sBAAsB,CAAC,CAAC,CAAC,CAAA;IAC3E,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'\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 = 'tools.ozone.queue.unassignModerator'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n /** The ID of the queue to unassign the user from. */\n queueId: number\n /** DID to be unassigned. */\n did: string\n}\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}\n\nexport class InvalidAssignmentError 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 === 'InvalidAssignment') return new InvalidAssignmentError(e)\n }\n\n return e\n}\n"]}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap } from '@atproto/xrpc';
5
+ import type * as ToolsOzoneQueueDefs from './defs.js';
6
+ export type QueryParams = {};
7
+ export interface InputSchema {
8
+ /** ID of the queue to update */
9
+ queueId: number;
10
+ /** New display name for the queue */
11
+ name?: string;
12
+ /** Enable or disable the queue */
13
+ enabled?: boolean;
14
+ /** Optional description of the queue */
15
+ description?: string;
16
+ }
17
+ export interface OutputSchema {
18
+ queue: ToolsOzoneQueueDefs.QueueView;
19
+ }
20
+ export interface CallOptions {
21
+ signal?: AbortSignal;
22
+ headers?: HeadersMap;
23
+ qp?: QueryParams;
24
+ encoding?: 'application/json';
25
+ }
26
+ export interface Response {
27
+ success: boolean;
28
+ headers: HeadersMap;
29
+ data: OutputSchema;
30
+ }
31
+ export declare function toKnownErr(e: any): any;
32
+ //# sourceMappingURL=updateQueue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateQueue.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/queue/updateQueue.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AASrD,OAAO,KAAK,KAAK,mBAAmB,MAAM,WAAW,CAAA;AAMrD,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,gCAAgC;IAChC,OAAO,EAAE,MAAM,CAAA;IACf,qCAAqC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,kCAAkC;IAClC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,mBAAmB,CAAC,SAAS,CAAA;CACrC;AAED,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,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAEhC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toKnownErr = toKnownErr;
4
+ const lexicons_1 = require("../../../../lexicons");
5
+ const util_1 = require("../../../../util");
6
+ const is$typed = util_1.is$typed, validate = lexicons_1.validate;
7
+ const id = 'tools.ozone.queue.updateQueue';
8
+ function toKnownErr(e) {
9
+ return e;
10
+ }
11
+ //# sourceMappingURL=updateQueue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateQueue.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/queue/updateQueue.ts"],"names":[],"mappings":";;AAgDA,gCAEC;AA5CD,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,+BAA+B,CAAA;AAgC1C,SAAgB,UAAU,CAAC,CAAM;IAC/B,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'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as ToolsOzoneQueueDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.queue.updateQueue'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n /** ID of the queue to update */\n queueId: number\n /** New display name for the queue */\n name?: string\n /** Enable or disable the queue */\n enabled?: boolean\n /** Optional description of the queue */\n description?: string\n}\n\nexport interface OutputSchema {\n queue: ToolsOzoneQueueDefs.QueueView\n}\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 function toKnownErr(e: any) {\n return e\n}\n"]}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap, XRPCError } from '@atproto/xrpc';
5
+ import type * as ToolsOzoneReportDefs from './defs.js';
6
+ export type QueryParams = {};
7
+ export interface InputSchema {
8
+ /** The ID of the report to assign. */
9
+ reportId: number;
10
+ /** Optional queue ID to associate the assignment with. If not provided and the report has been assigned on a queue before, it will stay on that queue. */
11
+ queueId?: number;
12
+ /** DID to be assigned. Defaults to the caller's DID. Admins may assign to any moderator. */
13
+ did?: string;
14
+ /** When true, the assignment has no expiry (endAt is null). Throws AlreadyAssigned if another user already has a permanent assignment on this report. */
15
+ isPermanent?: boolean;
16
+ }
17
+ export type OutputSchema = ToolsOzoneReportDefs.AssignmentView;
18
+ export interface CallOptions {
19
+ signal?: AbortSignal;
20
+ headers?: HeadersMap;
21
+ qp?: QueryParams;
22
+ encoding?: 'application/json';
23
+ }
24
+ export interface Response {
25
+ success: boolean;
26
+ headers: HeadersMap;
27
+ data: OutputSchema;
28
+ }
29
+ export declare class AlreadyAssignedError extends XRPCError {
30
+ constructor(src: XRPCError);
31
+ }
32
+ export declare class InvalidAssignmentError extends XRPCError {
33
+ constructor(src: XRPCError);
34
+ }
35
+ export declare function toKnownErr(e: any): any;
36
+ //# sourceMappingURL=assignModerator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assignModerator.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/report/assignModerator.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AASrD,OAAO,KAAK,KAAK,oBAAoB,MAAM,WAAW,CAAA;AAMtD,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,sCAAsC;IACtC,QAAQ,EAAE,MAAM,CAAA;IAChB,0JAA0J;IAC1J,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,4FAA4F;IAC5F,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,yJAAyJ;IACzJ,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,MAAM,MAAM,YAAY,GAAG,oBAAoB,CAAC,cAAc,CAAA;AAE9D,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,oBAAqB,SAAQ,SAAS;gBACrC,GAAG,EAAE,SAAS;CAG3B;AAED,qBAAa,sBAAuB,SAAQ,SAAS;gBACvC,GAAG,EAAE,SAAS;CAG3B;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAOhC"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InvalidAssignmentError = exports.AlreadyAssignedError = void 0;
4
+ exports.toKnownErr = toKnownErr;
5
+ /**
6
+ * GENERATED CODE - DO NOT MODIFY
7
+ */
8
+ const xrpc_1 = require("@atproto/xrpc");
9
+ const lexicons_1 = require("../../../../lexicons");
10
+ const util_1 = require("../../../../util");
11
+ const is$typed = util_1.is$typed, validate = lexicons_1.validate;
12
+ const id = 'tools.ozone.report.assignModerator';
13
+ class AlreadyAssignedError extends xrpc_1.XRPCError {
14
+ constructor(src) {
15
+ super(src.status, src.error, src.message, src.headers, { cause: src });
16
+ }
17
+ }
18
+ exports.AlreadyAssignedError = AlreadyAssignedError;
19
+ class InvalidAssignmentError extends xrpc_1.XRPCError {
20
+ constructor(src) {
21
+ super(src.status, src.error, src.message, src.headers, { cause: src });
22
+ }
23
+ }
24
+ exports.InvalidAssignmentError = InvalidAssignmentError;
25
+ function toKnownErr(e) {
26
+ if (e instanceof xrpc_1.XRPCError) {
27
+ if (e.error === 'AlreadyAssigned')
28
+ return new AlreadyAssignedError(e);
29
+ if (e.error === 'InvalidAssignment')
30
+ return new InvalidAssignmentError(e);
31
+ }
32
+ return e;
33
+ }
34
+ //# sourceMappingURL=assignModerator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assignModerator.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/report/assignModerator.ts"],"names":[],"mappings":";;;AA0DA,gCAOC;AAjED;;GAEG;AACH,wCAAqD;AAGrD,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,oCAAoC,CAAA;AA8B/C,MAAa,oBAAqB,SAAQ,gBAAS;IACjD,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;AAJD,oDAIC;AAED,MAAa,sBAAuB,SAAQ,gBAAS;IACnD,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;AAJD,wDAIC;AAED,SAAgB,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,gBAAS,EAAE,CAAC;QAC3B,IAAI,CAAC,CAAC,KAAK,KAAK,iBAAiB;YAAE,OAAO,IAAI,oBAAoB,CAAC,CAAC,CAAC,CAAA;QACrE,IAAI,CAAC,CAAC,KAAK,KAAK,mBAAmB;YAAE,OAAO,IAAI,sBAAsB,CAAC,CAAC,CAAC,CAAA;IAC3E,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'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as ToolsOzoneReportDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.report.assignModerator'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n /** The ID of the report to assign. */\n reportId: number\n /** Optional queue ID to associate the assignment with. If not provided and the report has been assigned on a queue before, it will stay on that queue. */\n queueId?: number\n /** DID to be assigned. Defaults to the caller's DID. Admins may assign to any moderator. */\n did?: string\n /** When true, the assignment has no expiry (endAt is null). Throws AlreadyAssigned if another user already has a permanent assignment on this report. */\n isPermanent?: boolean\n}\n\nexport type OutputSchema = ToolsOzoneReportDefs.AssignmentView\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 AlreadyAssignedError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class InvalidAssignmentError 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 === 'AlreadyAssigned') return new AlreadyAssignedError(e)\n if (e.error === 'InvalidAssignment') return new InvalidAssignmentError(e)\n }\n\n return e\n}\n"]}
@@ -0,0 +1,45 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap, XRPCError } from '@atproto/xrpc';
5
+ import { type $Typed } from '../../../../util';
6
+ import type * as ToolsOzoneReportDefs from './defs.js';
7
+ export type QueryParams = {};
8
+ export interface InputSchema {
9
+ /** ID of the report to record activity on */
10
+ reportId: number;
11
+ activity: $Typed<ToolsOzoneReportDefs.QueueActivity> | $Typed<ToolsOzoneReportDefs.AssignmentActivity> | $Typed<ToolsOzoneReportDefs.EscalationActivity> | $Typed<ToolsOzoneReportDefs.CloseActivity> | $Typed<ToolsOzoneReportDefs.ReopenActivity> | $Typed<ToolsOzoneReportDefs.NoteActivity> | {
12
+ $type: string;
13
+ };
14
+ /** Optional moderator-only note. Not visible to reporters. */
15
+ internalNote?: string;
16
+ /** Optional public-facing note, potentially visible to the reporter. */
17
+ publicNote?: string;
18
+ /** Set true when this activity is triggered by an automated process. Defaults to false. */
19
+ isAutomated?: boolean;
20
+ }
21
+ export interface OutputSchema {
22
+ activity: ToolsOzoneReportDefs.ReportActivityView;
23
+ }
24
+ export interface CallOptions {
25
+ signal?: AbortSignal;
26
+ headers?: HeadersMap;
27
+ qp?: QueryParams;
28
+ encoding?: 'application/json';
29
+ }
30
+ export interface Response {
31
+ success: boolean;
32
+ headers: HeadersMap;
33
+ data: OutputSchema;
34
+ }
35
+ export declare class ReportNotFoundError extends XRPCError {
36
+ constructor(src: XRPCError);
37
+ }
38
+ export declare class InvalidStateTransitionError extends XRPCError {
39
+ constructor(src: XRPCError);
40
+ }
41
+ export declare class AlreadyInTargetStateError extends XRPCError {
42
+ constructor(src: XRPCError);
43
+ }
44
+ export declare function toKnownErr(e: any): any;
45
+ //# sourceMappingURL=createActivity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createActivity.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/report/createActivity.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAIrD,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,KAAK,oBAAoB,MAAM,WAAW,CAAA;AAMtD,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,6CAA6C;IAC7C,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EACJ,MAAM,CAAC,oBAAoB,CAAC,aAAa,CAAC,GAC1C,MAAM,CAAC,oBAAoB,CAAC,kBAAkB,CAAC,GAC/C,MAAM,CAAC,oBAAoB,CAAC,kBAAkB,CAAC,GAC/C,MAAM,CAAC,oBAAoB,CAAC,aAAa,CAAC,GAC1C,MAAM,CAAC,oBAAoB,CAAC,cAAc,CAAC,GAC3C,MAAM,CAAC,oBAAoB,CAAC,YAAY,CAAC,GACzC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACrB,8DAA8D;IAC9D,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,wEAAwE;IACxE,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,2FAA2F;IAC3F,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,oBAAoB,CAAC,kBAAkB,CAAA;CAClD;AAED,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,mBAAoB,SAAQ,SAAS;gBACpC,GAAG,EAAE,SAAS;CAG3B;AAED,qBAAa,2BAA4B,SAAQ,SAAS;gBAC5C,GAAG,EAAE,SAAS;CAG3B;AAED,qBAAa,yBAA0B,SAAQ,SAAS;gBAC1C,GAAG,EAAE,SAAS;CAG3B;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAUhC"}
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AlreadyInTargetStateError = exports.InvalidStateTransitionError = exports.ReportNotFoundError = void 0;
4
+ exports.toKnownErr = toKnownErr;
5
+ /**
6
+ * GENERATED CODE - DO NOT MODIFY
7
+ */
8
+ const xrpc_1 = require("@atproto/xrpc");
9
+ const lexicons_1 = require("../../../../lexicons");
10
+ const util_1 = require("../../../../util");
11
+ const is$typed = util_1.is$typed, validate = lexicons_1.validate;
12
+ const id = 'tools.ozone.report.createActivity';
13
+ class ReportNotFoundError extends xrpc_1.XRPCError {
14
+ constructor(src) {
15
+ super(src.status, src.error, src.message, src.headers, { cause: src });
16
+ }
17
+ }
18
+ exports.ReportNotFoundError = ReportNotFoundError;
19
+ class InvalidStateTransitionError extends xrpc_1.XRPCError {
20
+ constructor(src) {
21
+ super(src.status, src.error, src.message, src.headers, { cause: src });
22
+ }
23
+ }
24
+ exports.InvalidStateTransitionError = InvalidStateTransitionError;
25
+ class AlreadyInTargetStateError extends xrpc_1.XRPCError {
26
+ constructor(src) {
27
+ super(src.status, src.error, src.message, src.headers, { cause: src });
28
+ }
29
+ }
30
+ exports.AlreadyInTargetStateError = AlreadyInTargetStateError;
31
+ function toKnownErr(e) {
32
+ if (e instanceof xrpc_1.XRPCError) {
33
+ if (e.error === 'ReportNotFound')
34
+ return new ReportNotFoundError(e);
35
+ if (e.error === 'InvalidStateTransition')
36
+ return new InvalidStateTransitionError(e);
37
+ if (e.error === 'AlreadyInTargetState')
38
+ return new AlreadyInTargetStateError(e);
39
+ }
40
+ return e;
41
+ }
42
+ //# sourceMappingURL=createActivity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createActivity.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/report/createActivity.ts"],"names":[],"mappings":";;;AA0EA,gCAUC;AApFD;;GAEG;AACH,wCAAqD;AAGrD,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,mCAAmC,CAAA;AAwC9C,MAAa,mBAAoB,SAAQ,gBAAS;IAChD,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;AAJD,kDAIC;AAED,MAAa,2BAA4B,SAAQ,gBAAS;IACxD,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;AAJD,kEAIC;AAED,MAAa,yBAA0B,SAAQ,gBAAS;IACtD,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;AAJD,8DAIC;AAED,SAAgB,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,gBAAS,EAAE,CAAC;QAC3B,IAAI,CAAC,CAAC,KAAK,KAAK,gBAAgB;YAAE,OAAO,IAAI,mBAAmB,CAAC,CAAC,CAAC,CAAA;QACnE,IAAI,CAAC,CAAC,KAAK,KAAK,wBAAwB;YACtC,OAAO,IAAI,2BAA2B,CAAC,CAAC,CAAC,CAAA;QAC3C,IAAI,CAAC,CAAC,KAAK,KAAK,sBAAsB;YACpC,OAAO,IAAI,yBAAyB,CAAC,CAAC,CAAC,CAAA;IAC3C,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'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as ToolsOzoneReportDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.report.createActivity'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n /** ID of the report to record activity on */\n reportId: number\n activity:\n | $Typed<ToolsOzoneReportDefs.QueueActivity>\n | $Typed<ToolsOzoneReportDefs.AssignmentActivity>\n | $Typed<ToolsOzoneReportDefs.EscalationActivity>\n | $Typed<ToolsOzoneReportDefs.CloseActivity>\n | $Typed<ToolsOzoneReportDefs.ReopenActivity>\n | $Typed<ToolsOzoneReportDefs.NoteActivity>\n | { $type: string }\n /** Optional moderator-only note. Not visible to reporters. */\n internalNote?: string\n /** Optional public-facing note, potentially visible to the reporter. */\n publicNote?: string\n /** Set true when this activity is triggered by an automated process. Defaults to false. */\n isAutomated?: boolean\n}\n\nexport interface OutputSchema {\n activity: ToolsOzoneReportDefs.ReportActivityView\n}\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 ReportNotFoundError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class InvalidStateTransitionError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class AlreadyInTargetStateError 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 === 'ReportNotFound') return new ReportNotFoundError(e)\n if (e.error === 'InvalidStateTransition')\n return new InvalidStateTransitionError(e)\n if (e.error === 'AlreadyInTargetState')\n return new AlreadyInTargetStateError(e)\n }\n\n return e\n}\n"]}