@atproto/api 0.19.14 → 0.19.16
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.
- package/CHANGELOG.md +12 -0
- package/dist/client/index.d.ts +71 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +172 -3
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +17024 -13878
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +1789 -122
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/embed/external.d.ts +2 -0
- package/dist/client/types/app/bsky/embed/external.d.ts.map +1 -1
- package/dist/client/types/app/bsky/embed/external.js.map +1 -1
- package/dist/client/types/tools/ozone/moderation/emitEvent.d.ts +16 -0
- package/dist/client/types/tools/ozone/moderation/emitEvent.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/moderation/emitEvent.js +9 -0
- package/dist/client/types/tools/ozone/moderation/emitEvent.js.map +1 -1
- package/dist/client/types/tools/ozone/queue/assignModerator.d.ts +29 -0
- package/dist/client/types/tools/ozone/queue/assignModerator.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/queue/assignModerator.js +26 -0
- package/dist/client/types/tools/ozone/queue/assignModerator.js.map +1 -0
- package/dist/client/types/tools/ozone/queue/createQueue.d.ts +37 -0
- package/dist/client/types/tools/ozone/queue/createQueue.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/queue/createQueue.js +26 -0
- package/dist/client/types/tools/ozone/queue/createQueue.js.map +1 -0
- package/dist/client/types/tools/ozone/queue/defs.d.ts +62 -0
- package/dist/client/types/tools/ozone/queue/defs.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/queue/defs.js +34 -0
- package/dist/client/types/tools/ozone/queue/defs.js.map +1 -0
- package/dist/client/types/tools/ozone/queue/deleteQueue.d.ts +29 -0
- package/dist/client/types/tools/ozone/queue/deleteQueue.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/queue/deleteQueue.js +11 -0
- package/dist/client/types/tools/ozone/queue/deleteQueue.js.map +1 -0
- package/dist/client/types/tools/ozone/queue/getAssignments.d.ts +31 -0
- package/dist/client/types/tools/ozone/queue/getAssignments.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/queue/getAssignments.js +11 -0
- package/dist/client/types/tools/ozone/queue/getAssignments.js.map +1 -0
- package/dist/client/types/tools/ozone/queue/listQueues.d.ts +33 -0
- package/dist/client/types/tools/ozone/queue/listQueues.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/queue/listQueues.js +11 -0
- package/dist/client/types/tools/ozone/queue/listQueues.js.map +1 -0
- package/dist/client/types/tools/ozone/queue/routeReports.d.ts +33 -0
- package/dist/client/types/tools/ozone/queue/routeReports.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/queue/routeReports.js +26 -0
- package/dist/client/types/tools/ozone/queue/routeReports.js.map +1 -0
- package/dist/client/types/tools/ozone/queue/unassignModerator.d.ts +26 -0
- package/dist/client/types/tools/ozone/queue/unassignModerator.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/queue/unassignModerator.js +26 -0
- package/dist/client/types/tools/ozone/queue/unassignModerator.js.map +1 -0
- package/dist/client/types/tools/ozone/queue/updateQueue.d.ts +32 -0
- package/dist/client/types/tools/ozone/queue/updateQueue.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/queue/updateQueue.js +11 -0
- package/dist/client/types/tools/ozone/queue/updateQueue.js.map +1 -0
- package/dist/client/types/tools/ozone/report/assignModerator.d.ts +36 -0
- package/dist/client/types/tools/ozone/report/assignModerator.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/assignModerator.js +34 -0
- package/dist/client/types/tools/ozone/report/assignModerator.js.map +1 -0
- package/dist/client/types/tools/ozone/report/createActivity.d.ts +45 -0
- package/dist/client/types/tools/ozone/report/createActivity.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/createActivity.js +42 -0
- package/dist/client/types/tools/ozone/report/createActivity.js.map +1 -0
- package/dist/client/types/tools/ozone/report/defs.d.ts +185 -0
- package/dist/client/types/tools/ozone/report/defs.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/report/defs.js +108 -0
- package/dist/client/types/tools/ozone/report/defs.js.map +1 -1
- package/dist/client/types/tools/ozone/report/getAssignments.d.ts +31 -0
- package/dist/client/types/tools/ozone/report/getAssignments.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/getAssignments.js +11 -0
- package/dist/client/types/tools/ozone/report/getAssignments.js.map +1 -0
- package/dist/client/types/tools/ozone/report/getHistoricalStats.d.ts +37 -0
- package/dist/client/types/tools/ozone/report/getHistoricalStats.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/getHistoricalStats.js +11 -0
- package/dist/client/types/tools/ozone/report/getHistoricalStats.js.map +1 -0
- package/dist/client/types/tools/ozone/report/getLatestReport.d.ts +24 -0
- package/dist/client/types/tools/ozone/report/getLatestReport.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/getLatestReport.js +26 -0
- package/dist/client/types/tools/ozone/report/getLatestReport.js.map +1 -0
- package/dist/client/types/tools/ozone/report/getLiveStats.d.ts +28 -0
- package/dist/client/types/tools/ozone/report/getLiveStats.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/getLiveStats.js +11 -0
- package/dist/client/types/tools/ozone/report/getLiveStats.js.map +1 -0
- package/dist/client/types/tools/ozone/report/getReport.d.ts +25 -0
- package/dist/client/types/tools/ozone/report/getReport.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/getReport.js +26 -0
- package/dist/client/types/tools/ozone/report/getReport.js.map +1 -0
- package/dist/client/types/tools/ozone/report/listActivities.d.ts +27 -0
- package/dist/client/types/tools/ozone/report/listActivities.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/listActivities.js +11 -0
- package/dist/client/types/tools/ozone/report/listActivities.js.map +1 -0
- package/dist/client/types/tools/ozone/report/queryReports.d.ts +49 -0
- package/dist/client/types/tools/ozone/report/queryReports.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/queryReports.js +11 -0
- package/dist/client/types/tools/ozone/report/queryReports.js.map +1 -0
- package/dist/client/types/tools/ozone/report/reassignQueue.d.ts +45 -0
- package/dist/client/types/tools/ozone/report/reassignQueue.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/reassignQueue.js +58 -0
- package/dist/client/types/tools/ozone/report/reassignQueue.js.map +1 -0
- package/dist/client/types/tools/ozone/report/refreshStats.d.ts +28 -0
- package/dist/client/types/tools/ozone/report/refreshStats.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/refreshStats.js +11 -0
- package/dist/client/types/tools/ozone/report/refreshStats.js.map +1 -0
- package/dist/client/types/tools/ozone/report/unassignModerator.d.ts +27 -0
- package/dist/client/types/tools/ozone/report/unassignModerator.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/unassignModerator.js +26 -0
- package/dist/client/types/tools/ozone/report/unassignModerator.js.map +1 -0
- package/package.json +3 -3
- package/src/client/index.ts +292 -0
- package/src/client/lexicons.ts +1910 -160
- package/src/client/types/app/bsky/embed/external.ts +2 -0
- package/src/client/types/tools/ozone/moderation/emitEvent.ts +24 -0
- package/src/client/types/tools/ozone/queue/assignModerator.ts +55 -0
- package/src/client/types/tools/ozone/queue/createQueue.ts +63 -0
- package/src/client/types/tools/ozone/queue/defs.ts +99 -0
- package/src/client/types/tools/ozone/queue/deleteQueue.ts +48 -0
- package/src/client/types/tools/ozone/queue/getAssignments.ts +49 -0
- package/src/client/types/tools/ozone/queue/listQueues.ts +51 -0
- package/src/client/types/tools/ozone/queue/routeReports.ts +59 -0
- package/src/client/types/tools/ozone/queue/unassignModerator.ts +51 -0
- package/src/client/types/tools/ozone/queue/updateQueue.ts +51 -0
- package/src/client/types/tools/ozone/report/assignModerator.ts +66 -0
- package/src/client/types/tools/ozone/report/createActivity.ts +85 -0
- package/src/client/types/tools/ozone/report/defs.ts +327 -0
- package/src/client/types/tools/ozone/report/getAssignments.ts +49 -0
- package/src/client/types/tools/ozone/report/getHistoricalStats.ts +55 -0
- package/src/client/types/tools/ozone/report/getLatestReport.ts +49 -0
- package/src/client/types/tools/ozone/report/getLiveStats.ts +46 -0
- package/src/client/types/tools/ozone/report/getReport.ts +49 -0
- package/src/client/types/tools/ozone/report/listActivities.ts +45 -0
- package/src/client/types/tools/ozone/report/queryReports.ts +73 -0
- package/src/client/types/tools/ozone/report/reassignQueue.ts +88 -0
- package/src/client/types/tools/ozone/report/refreshStats.ts +46 -0
- package/src/client/types/tools/ozone/report/unassignModerator.ts +53 -0
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -15,6 +15,8 @@ export interface External {
|
|
|
15
15
|
title: string;
|
|
16
16
|
description: string;
|
|
17
17
|
thumb?: BlobRef;
|
|
18
|
+
/** The URI of the Atmosphere record representing this external content, if it exists. Example: a site.standard.document record. */
|
|
19
|
+
associatedRecord?: string;
|
|
18
20
|
}
|
|
19
21
|
export declare function isExternal<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.embed.external", "external">;
|
|
20
22
|
export declare function validateExternal<V>(v: V): ValidationResult<External & V>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/embed/external.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAajE,4HAA4H;AAC5H,MAAM,WAAW,IAAI;IACnB,KAAK,CAAC,EAAE,yBAAyB,CAAA;IACjC,QAAQ,EAAE,QAAQ,CAAA;CACnB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sFAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,EAAE,kCAAkC,CAAA;IAC1C,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/embed/external.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAajE,4HAA4H;AAC5H,MAAM,WAAW,IAAI;IACnB,KAAK,CAAC,EAAE,yBAAyB,CAAA;IACjC,QAAQ,EAAE,QAAQ,CAAA;CACnB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sFAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,EAAE,kCAAkC,CAAA;IAC1C,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,mIAAmI;IACnI,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;AAID,wBAAgB,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,0FAEjC;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,kCAEvC;AAED,MAAM,WAAW,IAAI;IACnB,KAAK,CAAC,EAAE,8BAA8B,CAAA;IACtC,QAAQ,EAAE,YAAY,CAAA;CACvB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sFAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,sCAAsC,CAAA;IAC9C,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAID,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8FAErC;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sCAE3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/embed/external.ts"],"names":[],"mappings":";;AAwBA,wBAEC;AAED,oCAEC;
|
|
1
|
+
{"version":3,"file":"external.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/embed/external.ts"],"names":[],"mappings":";;AAwBA,wBAEC;AAED,oCAEC;AAcD,gCAEC;AAED,4CAEC;AASD,wBAEC;AAED,oCAEC;AAYD,wCAEC;AAED,oDAEC;AA9ED,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,yBAAyB,CAAA;AAQpC,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,SAAgB,MAAM,CAAI,CAAI;IAC5B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAClC,CAAC;AAED,SAAgB,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAC5C,CAAC;AAYD,MAAM,YAAY,GAAG,UAAU,CAAA;AAE/B,SAAgB,UAAU,CAAI,CAAI;IAChC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,YAAY,CAAC,CAAA;AACtC,CAAC;AAED,SAAgB,gBAAgB,CAAI,CAAI;IACtC,OAAO,QAAQ,CAAe,CAAC,EAAE,EAAE,EAAE,YAAY,CAAC,CAAA;AACpD,CAAC;AAOD,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,SAAgB,MAAM,CAAI,CAAI;IAC5B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAClC,CAAC;AAED,SAAgB,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAC5C,CAAC;AAUD,MAAM,gBAAgB,GAAG,cAAc,CAAA;AAEvC,SAAgB,cAAc,CAAI,CAAI;IACpC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAA;AAC1C,CAAC;AAED,SAAgB,oBAAoB,CAAI,CAAI;IAC1C,OAAO,QAAQ,CAAmB,CAAC,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAA;AAC5D,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'\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 = 'app.bsky.embed.external'\n\n/** A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post). */\nexport interface Main {\n $type?: 'app.bsky.embed.external'\n external: External\n}\n\nconst hashMain = 'main'\n\nexport function isMain<V>(v: V) {\n return is$typed(v, id, hashMain)\n}\n\nexport function validateMain<V>(v: V) {\n return validate<Main & V>(v, id, hashMain)\n}\n\nexport interface External {\n $type?: 'app.bsky.embed.external#external'\n uri: string\n title: string\n description: string\n thumb?: BlobRef\n /** The URI of the Atmosphere record representing this external content, if it exists. Example: a site.standard.document record. */\n associatedRecord?: string\n}\n\nconst hashExternal = 'external'\n\nexport function isExternal<V>(v: V) {\n return is$typed(v, id, hashExternal)\n}\n\nexport function validateExternal<V>(v: V) {\n return validate<External & V>(v, id, hashExternal)\n}\n\nexport interface View {\n $type?: 'app.bsky.embed.external#view'\n external: ViewExternal\n}\n\nconst hashView = 'view'\n\nexport function isView<V>(v: V) {\n return is$typed(v, id, hashView)\n}\n\nexport function validateView<V>(v: V) {\n return validate<View & V>(v, id, hashView)\n}\n\nexport interface ViewExternal {\n $type?: 'app.bsky.embed.external#viewExternal'\n uri: string\n title: string\n description: string\n thumb?: string\n}\n\nconst hashViewExternal = 'viewExternal'\n\nexport function isViewExternal<V>(v: V) {\n return is$typed(v, id, hashViewExternal)\n}\n\nexport function validateViewExternal<V>(v: V) {\n return validate<ViewExternal & V>(v, id, hashViewExternal)\n}\n"]}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* GENERATED CODE - DO NOT MODIFY
|
|
3
3
|
*/
|
|
4
4
|
import { HeadersMap, XRPCError } from '@atproto/xrpc';
|
|
5
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
6
|
import { type $Typed } from '../../../../util';
|
|
6
7
|
import type * as ToolsOzoneModerationDefs from './defs.js';
|
|
7
8
|
import type * as ComAtprotoAdminDefs from '../../../com/atproto/admin/defs.js';
|
|
@@ -19,6 +20,7 @@ export interface InputSchema {
|
|
|
19
20
|
modTool?: ToolsOzoneModerationDefs.ModTool;
|
|
20
21
|
/** An optional external ID for the event, used to deduplicate events from external systems. Fails when an event of same type with the same external ID exists for the same subject. */
|
|
21
22
|
externalId?: string;
|
|
23
|
+
reportAction?: ReportAction;
|
|
22
24
|
}
|
|
23
25
|
export type OutputSchema = ToolsOzoneModerationDefs.ModEventView;
|
|
24
26
|
export interface CallOptions {
|
|
@@ -39,4 +41,18 @@ export declare class DuplicateExternalIdError extends XRPCError {
|
|
|
39
41
|
constructor(src: XRPCError);
|
|
40
42
|
}
|
|
41
43
|
export declare function toKnownErr(e: any): any;
|
|
44
|
+
/** Target specific reports when emitting a moderation event */
|
|
45
|
+
export interface ReportAction {
|
|
46
|
+
$type?: 'tools.ozone.moderation.emitEvent#reportAction';
|
|
47
|
+
/** Target specific report IDs */
|
|
48
|
+
ids?: number[];
|
|
49
|
+
/** Target reports matching these report types on the subject (fully qualified NSIDs) */
|
|
50
|
+
types?: string[];
|
|
51
|
+
/** Target ALL reports on the subject */
|
|
52
|
+
all?: boolean;
|
|
53
|
+
/** Note to send to reporter(s) when actioning their report */
|
|
54
|
+
note?: string;
|
|
55
|
+
}
|
|
56
|
+
export declare function isReportAction<V>(v: V): v is import("../../../../util").$TypedObject<V, "tools.ozone.moderation.emitEvent", "reportAction">;
|
|
57
|
+
export declare function validateReportAction<V>(v: V): ValidationResult<ReportAction & V>;
|
|
42
58
|
//# sourceMappingURL=emitEvent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emitEvent.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/moderation/emitEvent.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"emitEvent.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/moderation/emitEvent.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACrD,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,KAAK,wBAAwB,MAAM,WAAW,CAAA;AAC1D,OAAO,KAAK,KAAK,mBAAmB,MAAM,oCAAoC,CAAA;AAC9E,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AAMtF,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,KAAK,EACD,MAAM,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,GACjD,MAAM,CAAC,wBAAwB,CAAC,mBAAmB,CAAC,GACpD,MAAM,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,GACjD,MAAM,CAAC,wBAAwB,CAAC,eAAe,CAAC,GAChD,MAAM,CAAC,wBAAwB,CAAC,aAAa,CAAC,GAC9C,MAAM,CAAC,wBAAwB,CAAC,cAAc,CAAC,GAC/C,MAAM,CAAC,wBAAwB,CAAC,YAAY,CAAC,GAC7C,MAAM,CAAC,wBAAwB,CAAC,cAAc,CAAC,GAC/C,MAAM,CAAC,wBAAwB,CAAC,oBAAoB,CAAC,GACrD,MAAM,CAAC,wBAAwB,CAAC,sBAAsB,CAAC,GACvD,MAAM,CAAC,wBAAwB,CAAC,uBAAuB,CAAC,GACxD,MAAM,CAAC,wBAAwB,CAAC,qBAAqB,CAAC,GACtD,MAAM,CAAC,wBAAwB,CAAC,aAAa,CAAC,GAC9C,MAAM,CAAC,wBAAwB,CAAC,cAAc,CAAC,GAC/C,MAAM,CAAC,wBAAwB,CAAC,WAAW,CAAC,GAC5C,MAAM,CAAC,wBAAwB,CAAC,YAAY,CAAC,GAC7C,MAAM,CAAC,wBAAwB,CAAC,aAAa,CAAC,GAC9C,MAAM,CAAC,wBAAwB,CAAC,WAAW,CAAC,GAC5C,MAAM,CAAC,wBAAwB,CAAC,qBAAqB,CAAC,GACtD,MAAM,CAAC,wBAAwB,CAAC,iBAAiB,CAAC,GAClD,MAAM,CAAC,wBAAwB,CAAC,yBAAyB,CAAC,GAC1D,MAAM,CAAC,wBAAwB,CAAC,sBAAsB,CAAC,GACvD,MAAM,CAAC,wBAAwB,CAAC,6BAA6B,CAAC,GAC9D,MAAM,CAAC,wBAAwB,CAAC,qBAAqB,CAAC,GACtD,MAAM,CAAC,wBAAwB,CAAC,4BAA4B,CAAC,GAC7D;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACrB,OAAO,EACH,MAAM,CAAC,mBAAmB,CAAC,OAAO,CAAC,GACnC,MAAM,CAAC,uBAAuB,CAAC,IAAI,CAAC,GACpC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACrB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAA;IAC1B,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,wBAAwB,CAAC,OAAO,CAAA;IAC1C,uLAAuL;IACvL,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,YAAY,CAAA;CAC5B;AAED,MAAM,MAAM,YAAY,GAAG,wBAAwB,CAAC,YAAY,CAAA;AAEhE,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,qBAAsB,SAAQ,SAAS;gBACtC,GAAG,EAAE,SAAS;CAG3B;AAED,qBAAa,wBAAyB,SAAQ,SAAS;gBACzC,GAAG,EAAE,SAAS;CAG3B;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAQhC;AAED,+DAA+D;AAC/D,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,+CAA+C,CAAA;IACvD,iCAAiC;IACjC,GAAG,CAAC,EAAE,MAAM,EAAE,CAAA;IACd,wFAAwF;IACxF,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,wCAAwC;IACxC,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,8DAA8D;IAC9D,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAID,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,uGAErC;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sCAE3C"}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DuplicateExternalIdError = exports.SubjectHasActionError = void 0;
|
|
4
4
|
exports.toKnownErr = toKnownErr;
|
|
5
|
+
exports.isReportAction = isReportAction;
|
|
6
|
+
exports.validateReportAction = validateReportAction;
|
|
5
7
|
/**
|
|
6
8
|
* GENERATED CODE - DO NOT MODIFY
|
|
7
9
|
*/
|
|
@@ -31,4 +33,11 @@ function toKnownErr(e) {
|
|
|
31
33
|
}
|
|
32
34
|
return e;
|
|
33
35
|
}
|
|
36
|
+
const hashReportAction = 'reportAction';
|
|
37
|
+
function isReportAction(v) {
|
|
38
|
+
return is$typed(v, id, hashReportAction);
|
|
39
|
+
}
|
|
40
|
+
function validateReportAction(v) {
|
|
41
|
+
return validate(v, id, hashReportAction);
|
|
42
|
+
}
|
|
34
43
|
//# sourceMappingURL=emitEvent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emitEvent.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/moderation/emitEvent.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"emitEvent.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/moderation/emitEvent.ts"],"names":[],"mappings":";;;AAyFA,gCAQC;AAiBD,wCAEC;AAED,oDAEC;AAxHD;;GAEG;AACH,wCAAqD;AAGrD,mDAA4D;AAC5D,2CAIyB;AAKzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,kCAAkC,CAAA;AA2D7C,MAAa,qBAAsB,SAAQ,gBAAS;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;AAJD,sDAIC;AAED,MAAa,wBAAyB,SAAQ,gBAAS;IACrD,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,4DAIC;AAED,SAAgB,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,gBAAS,EAAE,CAAC;QAC3B,IAAI,CAAC,CAAC,KAAK,KAAK,kBAAkB;YAAE,OAAO,IAAI,qBAAqB,CAAC,CAAC,CAAC,CAAA;QACvE,IAAI,CAAC,CAAC,KAAK,KAAK,qBAAqB;YACnC,OAAO,IAAI,wBAAwB,CAAC,CAAC,CAAC,CAAA;IAC1C,CAAC;IAED,OAAO,CAAC,CAAA;AACV,CAAC;AAeD,MAAM,gBAAgB,GAAG,cAAc,CAAA;AAEvC,SAAgB,cAAc,CAAI,CAAI;IACpC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAA;AAC1C,CAAC;AAED,SAAgB,oBAAoB,CAAI,CAAI;IAC1C,OAAO,QAAQ,CAAmB,CAAC,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAA;AAC5D,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 ToolsOzoneModerationDefs from './defs.js'\nimport type * as ComAtprotoAdminDefs from '../../../com/atproto/admin/defs.js'\nimport type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.moderation.emitEvent'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n event:\n | $Typed<ToolsOzoneModerationDefs.ModEventTakedown>\n | $Typed<ToolsOzoneModerationDefs.ModEventAcknowledge>\n | $Typed<ToolsOzoneModerationDefs.ModEventEscalate>\n | $Typed<ToolsOzoneModerationDefs.ModEventComment>\n | $Typed<ToolsOzoneModerationDefs.ModEventLabel>\n | $Typed<ToolsOzoneModerationDefs.ModEventReport>\n | $Typed<ToolsOzoneModerationDefs.ModEventMute>\n | $Typed<ToolsOzoneModerationDefs.ModEventUnmute>\n | $Typed<ToolsOzoneModerationDefs.ModEventMuteReporter>\n | $Typed<ToolsOzoneModerationDefs.ModEventUnmuteReporter>\n | $Typed<ToolsOzoneModerationDefs.ModEventReverseTakedown>\n | $Typed<ToolsOzoneModerationDefs.ModEventResolveAppeal>\n | $Typed<ToolsOzoneModerationDefs.ModEventEmail>\n | $Typed<ToolsOzoneModerationDefs.ModEventDivert>\n | $Typed<ToolsOzoneModerationDefs.ModEventTag>\n | $Typed<ToolsOzoneModerationDefs.AccountEvent>\n | $Typed<ToolsOzoneModerationDefs.IdentityEvent>\n | $Typed<ToolsOzoneModerationDefs.RecordEvent>\n | $Typed<ToolsOzoneModerationDefs.ModEventPriorityScore>\n | $Typed<ToolsOzoneModerationDefs.AgeAssuranceEvent>\n | $Typed<ToolsOzoneModerationDefs.AgeAssuranceOverrideEvent>\n | $Typed<ToolsOzoneModerationDefs.AgeAssurancePurgeEvent>\n | $Typed<ToolsOzoneModerationDefs.RevokeAccountCredentialsEvent>\n | $Typed<ToolsOzoneModerationDefs.ScheduleTakedownEvent>\n | $Typed<ToolsOzoneModerationDefs.CancelScheduledTakedownEvent>\n | { $type: string }\n subject:\n | $Typed<ComAtprotoAdminDefs.RepoRef>\n | $Typed<ComAtprotoRepoStrongRef.Main>\n | { $type: string }\n subjectBlobCids?: string[]\n createdBy: string\n modTool?: ToolsOzoneModerationDefs.ModTool\n /** An optional external ID for the event, used to deduplicate events from external systems. Fails when an event of same type with the same external ID exists for the same subject. */\n externalId?: string\n reportAction?: ReportAction\n}\n\nexport type OutputSchema = ToolsOzoneModerationDefs.ModEventView\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 SubjectHasActionError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class DuplicateExternalIdError 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 === 'SubjectHasAction') return new SubjectHasActionError(e)\n if (e.error === 'DuplicateExternalId')\n return new DuplicateExternalIdError(e)\n }\n\n return e\n}\n\n/** Target specific reports when emitting a moderation event */\nexport interface ReportAction {\n $type?: 'tools.ozone.moderation.emitEvent#reportAction'\n /** Target specific report IDs */\n ids?: number[]\n /** Target reports matching these report types on the subject (fully qualified NSIDs) */\n types?: string[]\n /** Target ALL reports on the subject */\n all?: boolean\n /** Note to send to reporter(s) when actioning their report */\n note?: string\n}\n\nconst hashReportAction = 'reportAction'\n\nexport function isReportAction<V>(v: V) {\n return is$typed(v, id, hashReportAction)\n}\n\nexport function validateReportAction<V>(v: V) {\n return validate<ReportAction & V>(v, id, hashReportAction)\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 ToolsOzoneQueueDefs from './defs.js';
|
|
6
|
+
export type QueryParams = {};
|
|
7
|
+
export interface InputSchema {
|
|
8
|
+
/** The ID of the queue to assign the user to. */
|
|
9
|
+
queueId: number;
|
|
10
|
+
/** DID to be assigned. */
|
|
11
|
+
did: string;
|
|
12
|
+
}
|
|
13
|
+
export type OutputSchema = ToolsOzoneQueueDefs.AssignmentView;
|
|
14
|
+
export interface CallOptions {
|
|
15
|
+
signal?: AbortSignal;
|
|
16
|
+
headers?: HeadersMap;
|
|
17
|
+
qp?: QueryParams;
|
|
18
|
+
encoding?: 'application/json';
|
|
19
|
+
}
|
|
20
|
+
export interface Response {
|
|
21
|
+
success: boolean;
|
|
22
|
+
headers: HeadersMap;
|
|
23
|
+
data: OutputSchema;
|
|
24
|
+
}
|
|
25
|
+
export declare class InvalidAssignmentError extends XRPCError {
|
|
26
|
+
constructor(src: XRPCError);
|
|
27
|
+
}
|
|
28
|
+
export declare function toKnownErr(e: any): any;
|
|
29
|
+
//# sourceMappingURL=assignModerator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assignModerator.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/queue/assignModerator.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AASrD,OAAO,KAAK,KAAK,mBAAmB,MAAM,WAAW,CAAA;AAMrD,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,iDAAiD;IACjD,OAAO,EAAE,MAAM,CAAA;IACf,0BAA0B;IAC1B,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,MAAM,YAAY,GAAG,mBAAmB,CAAC,cAAc,CAAA;AAE7D,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,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.assignModerator';
|
|
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=assignModerator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assignModerator.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/queue/assignModerator.ts"],"names":[],"mappings":";;;AAgDA,gCAMC;AAtDD;;GAEG;AACH,wCAAqD;AAGrD,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,mCAAmC,CAAA;AA0B9C,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'\nimport type * as ToolsOzoneQueueDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.queue.assignModerator'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n /** The ID of the queue to assign the user to. */\n queueId: number\n /** DID to be assigned. */\n did: string\n}\n\nexport type OutputSchema = ToolsOzoneQueueDefs.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 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,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap, XRPCError } from '@atproto/xrpc';
|
|
5
|
+
import type * as ToolsOzoneQueueDefs from './defs.js';
|
|
6
|
+
export type QueryParams = {};
|
|
7
|
+
export interface InputSchema {
|
|
8
|
+
/** Display name for the queue (must be unique) */
|
|
9
|
+
name: string;
|
|
10
|
+
/** Subject types this queue accepts */
|
|
11
|
+
subjectTypes: ('account' | 'record' | 'message' | (string & {}))[];
|
|
12
|
+
/** Collection name for record subjects. Required if subjectTypes includes 'record'. */
|
|
13
|
+
collection?: string;
|
|
14
|
+
/** Report reason types (fully qualified NSIDs) */
|
|
15
|
+
reportTypes: string[];
|
|
16
|
+
/** Optional description of the queue */
|
|
17
|
+
description?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface OutputSchema {
|
|
20
|
+
queue: ToolsOzoneQueueDefs.QueueView;
|
|
21
|
+
}
|
|
22
|
+
export interface CallOptions {
|
|
23
|
+
signal?: AbortSignal;
|
|
24
|
+
headers?: HeadersMap;
|
|
25
|
+
qp?: QueryParams;
|
|
26
|
+
encoding?: 'application/json';
|
|
27
|
+
}
|
|
28
|
+
export interface Response {
|
|
29
|
+
success: boolean;
|
|
30
|
+
headers: HeadersMap;
|
|
31
|
+
data: OutputSchema;
|
|
32
|
+
}
|
|
33
|
+
export declare class ConflictingQueueError extends XRPCError {
|
|
34
|
+
constructor(src: XRPCError);
|
|
35
|
+
}
|
|
36
|
+
export declare function toKnownErr(e: any): any;
|
|
37
|
+
//# sourceMappingURL=createQueue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createQueue.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/queue/createQueue.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AASrD,OAAO,KAAK,KAAK,mBAAmB,MAAM,WAAW,CAAA;AAMrD,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,kDAAkD;IAClD,IAAI,EAAE,MAAM,CAAA;IACZ,uCAAuC;IACvC,YAAY,EAAE,CAAC,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,EAAE,CAAA;IAClE,uFAAuF;IACvF,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,kDAAkD;IAClD,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,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,qBAAa,qBAAsB,SAAQ,SAAS;gBACtC,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.ConflictingQueueError = 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.createQueue';
|
|
13
|
+
class ConflictingQueueError extends xrpc_1.XRPCError {
|
|
14
|
+
constructor(src) {
|
|
15
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.ConflictingQueueError = ConflictingQueueError;
|
|
19
|
+
function toKnownErr(e) {
|
|
20
|
+
if (e instanceof xrpc_1.XRPCError) {
|
|
21
|
+
if (e.error === 'ConflictingQueue')
|
|
22
|
+
return new ConflictingQueueError(e);
|
|
23
|
+
}
|
|
24
|
+
return e;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=createQueue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createQueue.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/queue/createQueue.ts"],"names":[],"mappings":";;;AAwDA,gCAMC;AA9DD;;GAEG;AACH,wCAAqD;AAGrD,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,+BAA+B,CAAA;AAkC1C,MAAa,qBAAsB,SAAQ,gBAAS;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;AAJD,sDAIC;AAED,SAAgB,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,gBAAS,EAAE,CAAC;QAC3B,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'\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.createQueue'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n /** Display name for the queue (must be unique) */\n name: string\n /** Subject types this queue accepts */\n subjectTypes: ('account' | 'record' | 'message' | (string & {}))[]\n /** Collection name for record subjects. Required if subjectTypes includes 'record'. */\n collection?: string\n /** Report reason types (fully qualified NSIDs) */\n reportTypes: string[]\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 class ConflictingQueueError 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 === 'ConflictingQueue') return new ConflictingQueueError(e)\n }\n\n return e\n}\n"]}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
|
+
import type * as ToolsOzoneTeamDefs from '../team/defs.js';
|
|
6
|
+
export interface QueueView {
|
|
7
|
+
$type?: 'tools.ozone.queue.defs#queueView';
|
|
8
|
+
/** Queue ID */
|
|
9
|
+
id: number;
|
|
10
|
+
/** Display name of the queue */
|
|
11
|
+
name: string;
|
|
12
|
+
/** Subject types this queue accepts. */
|
|
13
|
+
subjectTypes: ('account' | 'record' | 'message' | (string & {}))[];
|
|
14
|
+
/** Collection name for record subjects (e.g., 'app.bsky.feed.post') */
|
|
15
|
+
collection?: string;
|
|
16
|
+
/** Report reason types this queue accepts (fully qualified NSIDs) */
|
|
17
|
+
reportTypes: string[];
|
|
18
|
+
/** Optional description of the queue */
|
|
19
|
+
description?: string;
|
|
20
|
+
/** DID of moderator who created this queue */
|
|
21
|
+
createdBy: string;
|
|
22
|
+
createdAt: string;
|
|
23
|
+
updatedAt: string;
|
|
24
|
+
/** Whether this queue is currently active */
|
|
25
|
+
enabled: boolean;
|
|
26
|
+
/** When the queue was deleted, if applicable */
|
|
27
|
+
deletedAt?: string;
|
|
28
|
+
stats: QueueStats;
|
|
29
|
+
}
|
|
30
|
+
export declare function isQueueView<V>(v: V): v is import("../../../../util").$TypedObject<V, "tools.ozone.queue.defs", "queueView">;
|
|
31
|
+
export declare function validateQueueView<V>(v: V): ValidationResult<QueueView & V>;
|
|
32
|
+
export interface QueueStats {
|
|
33
|
+
$type?: 'tools.ozone.queue.defs#queueStats';
|
|
34
|
+
/** Number of reports in 'open' status */
|
|
35
|
+
pendingCount?: number;
|
|
36
|
+
/** Number of reports in 'closed' status */
|
|
37
|
+
actionedCount?: number;
|
|
38
|
+
/** Number of reports in 'escalated' status */
|
|
39
|
+
escalatedCount?: number;
|
|
40
|
+
/** Reports received in this queue in the last 24 hours. */
|
|
41
|
+
inboundCount?: number;
|
|
42
|
+
/** Percentage of reports actioned (actionedCount / inboundCount * 100), rounded to nearest integer. Absent when inboundCount is 0. */
|
|
43
|
+
actionRate?: number;
|
|
44
|
+
/** Average time in seconds from report creation to close, for reports closed in this period. */
|
|
45
|
+
avgHandlingTimeSec?: number;
|
|
46
|
+
/** When these statistics were last computed */
|
|
47
|
+
lastUpdated?: string;
|
|
48
|
+
}
|
|
49
|
+
export declare function isQueueStats<V>(v: V): v is import("../../../../util").$TypedObject<V, "tools.ozone.queue.defs", "queueStats">;
|
|
50
|
+
export declare function validateQueueStats<V>(v: V): ValidationResult<QueueStats & V>;
|
|
51
|
+
export interface AssignmentView {
|
|
52
|
+
$type?: 'tools.ozone.queue.defs#assignmentView';
|
|
53
|
+
id: number;
|
|
54
|
+
did: string;
|
|
55
|
+
moderator?: ToolsOzoneTeamDefs.Member;
|
|
56
|
+
queue: QueueView;
|
|
57
|
+
startAt: string;
|
|
58
|
+
endAt?: string;
|
|
59
|
+
}
|
|
60
|
+
export declare function isAssignmentView<V>(v: V): v is import("../../../../util").$TypedObject<V, "tools.ozone.queue.defs", "assignmentView">;
|
|
61
|
+
export declare function validateAssignmentView<V>(v: V): ValidationResult<AssignmentView & V>;
|
|
62
|
+
//# sourceMappingURL=defs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/queue/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,kBAAkB,MAAM,iBAAiB,CAAA;AAM1D,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,kCAAkC,CAAA;IAC1C,eAAe;IACf,EAAE,EAAE,MAAM,CAAA;IACV,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,wCAAwC;IACxC,YAAY,EAAE,CAAC,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,EAAE,CAAA;IAClE,uEAAuE;IACvE,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,qEAAqE;IACrE,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,8CAA8C;IAC9C,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,6CAA6C;IAC7C,OAAO,EAAE,OAAO,CAAA;IAChB,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,UAAU,CAAA;CAClB;AAID,wBAAgB,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,0FAElC;AAED,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,mCAExC;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,mCAAmC,CAAA;IAC3C,yCAAyC;IACzC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,2CAA2C;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,8CAA8C;IAC9C,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,2DAA2D;IAC3D,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,sIAAsI;IACtI,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,gGAAgG;IAChG,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,+CAA+C;IAC/C,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAID,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,2FAEnC;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,oCAEzC;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,uCAAuC,CAAA;IAC/C,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAA;IACrC,KAAK,EAAE,SAAS,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAID,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,+FAEvC;AAED,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,wCAE7C"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isQueueView = isQueueView;
|
|
4
|
+
exports.validateQueueView = validateQueueView;
|
|
5
|
+
exports.isQueueStats = isQueueStats;
|
|
6
|
+
exports.validateQueueStats = validateQueueStats;
|
|
7
|
+
exports.isAssignmentView = isAssignmentView;
|
|
8
|
+
exports.validateAssignmentView = validateAssignmentView;
|
|
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.defs';
|
|
13
|
+
const hashQueueView = 'queueView';
|
|
14
|
+
function isQueueView(v) {
|
|
15
|
+
return is$typed(v, id, hashQueueView);
|
|
16
|
+
}
|
|
17
|
+
function validateQueueView(v) {
|
|
18
|
+
return validate(v, id, hashQueueView);
|
|
19
|
+
}
|
|
20
|
+
const hashQueueStats = 'queueStats';
|
|
21
|
+
function isQueueStats(v) {
|
|
22
|
+
return is$typed(v, id, hashQueueStats);
|
|
23
|
+
}
|
|
24
|
+
function validateQueueStats(v) {
|
|
25
|
+
return validate(v, id, hashQueueStats);
|
|
26
|
+
}
|
|
27
|
+
const hashAssignmentView = 'assignmentView';
|
|
28
|
+
function isAssignmentView(v) {
|
|
29
|
+
return is$typed(v, id, hashAssignmentView);
|
|
30
|
+
}
|
|
31
|
+
function validateAssignmentView(v) {
|
|
32
|
+
return validate(v, id, hashAssignmentView);
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=defs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/queue/defs.ts"],"names":[],"mappings":";;AA4CA,kCAEC;AAED,8CAEC;AAsBD,oCAEC;AAED,gDAEC;AAcD,4CAEC;AAED,wDAEC;AA7FD,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,wBAAwB,CAAA;AA2BnC,MAAM,aAAa,GAAG,WAAW,CAAA;AAEjC,SAAgB,WAAW,CAAI,CAAI;IACjC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAA;AACvC,CAAC;AAED,SAAgB,iBAAiB,CAAI,CAAI;IACvC,OAAO,QAAQ,CAAgB,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAA;AACtD,CAAC;AAoBD,MAAM,cAAc,GAAG,YAAY,CAAA;AAEnC,SAAgB,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,cAAc,CAAC,CAAA;AACxC,CAAC;AAED,SAAgB,kBAAkB,CAAI,CAAI;IACxC,OAAO,QAAQ,CAAiB,CAAC,EAAE,EAAE,EAAE,cAAc,CAAC,CAAA;AACxD,CAAC;AAYD,MAAM,kBAAkB,GAAG,gBAAgB,CAAA;AAE3C,SAAgB,gBAAgB,CAAI,CAAI;IACtC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,kBAAkB,CAAC,CAAA;AAC5C,CAAC;AAED,SAAgB,sBAAsB,CAAI,CAAI;IAC5C,OAAO,QAAQ,CAAqB,CAAC,EAAE,EAAE,EAAE,kBAAkB,CAAC,CAAA;AAChE,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'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as ToolsOzoneTeamDefs from '../team/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.queue.defs'\n\nexport interface QueueView {\n $type?: 'tools.ozone.queue.defs#queueView'\n /** Queue ID */\n id: number\n /** Display name of the queue */\n name: string\n /** Subject types this queue accepts. */\n subjectTypes: ('account' | 'record' | 'message' | (string & {}))[]\n /** Collection name for record subjects (e.g., 'app.bsky.feed.post') */\n collection?: string\n /** Report reason types this queue accepts (fully qualified NSIDs) */\n reportTypes: string[]\n /** Optional description of the queue */\n description?: string\n /** DID of moderator who created this queue */\n createdBy: string\n createdAt: string\n updatedAt: string\n /** Whether this queue is currently active */\n enabled: boolean\n /** When the queue was deleted, if applicable */\n deletedAt?: string\n stats: QueueStats\n}\n\nconst hashQueueView = 'queueView'\n\nexport function isQueueView<V>(v: V) {\n return is$typed(v, id, hashQueueView)\n}\n\nexport function validateQueueView<V>(v: V) {\n return validate<QueueView & V>(v, id, hashQueueView)\n}\n\nexport interface QueueStats {\n $type?: 'tools.ozone.queue.defs#queueStats'\n /** Number of reports in 'open' status */\n pendingCount?: number\n /** Number of reports in 'closed' status */\n actionedCount?: number\n /** Number of reports in 'escalated' status */\n escalatedCount?: number\n /** Reports received in this queue in the last 24 hours. */\n inboundCount?: number\n /** Percentage of reports actioned (actionedCount / inboundCount * 100), rounded to nearest integer. Absent when inboundCount is 0. */\n actionRate?: number\n /** Average time in seconds from report creation to close, for reports closed in this period. */\n avgHandlingTimeSec?: number\n /** When these statistics were last computed */\n lastUpdated?: string\n}\n\nconst hashQueueStats = 'queueStats'\n\nexport function isQueueStats<V>(v: V) {\n return is$typed(v, id, hashQueueStats)\n}\n\nexport function validateQueueStats<V>(v: V) {\n return validate<QueueStats & V>(v, id, hashQueueStats)\n}\n\nexport interface AssignmentView {\n $type?: 'tools.ozone.queue.defs#assignmentView'\n id: number\n did: string\n moderator?: ToolsOzoneTeamDefs.Member\n queue: QueueView\n startAt: string\n endAt?: string\n}\n\nconst hashAssignmentView = 'assignmentView'\n\nexport function isAssignmentView<V>(v: V) {\n return is$typed(v, id, hashAssignmentView)\n}\n\nexport function validateAssignmentView<V>(v: V) {\n return validate<AssignmentView & V>(v, id, hashAssignmentView)\n}\n"]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap } from '@atproto/xrpc';
|
|
5
|
+
export type QueryParams = {};
|
|
6
|
+
export interface InputSchema {
|
|
7
|
+
/** ID of the queue to delete */
|
|
8
|
+
queueId: number;
|
|
9
|
+
/** Optional: migrate all reports to this queue. If not specified, reports will be set to unassigned (-1). */
|
|
10
|
+
migrateToQueueId?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface OutputSchema {
|
|
13
|
+
deleted: boolean;
|
|
14
|
+
/** Number of reports that were migrated (if migration occurred) */
|
|
15
|
+
reportsMigrated?: number;
|
|
16
|
+
}
|
|
17
|
+
export interface CallOptions {
|
|
18
|
+
signal?: AbortSignal;
|
|
19
|
+
headers?: HeadersMap;
|
|
20
|
+
qp?: QueryParams;
|
|
21
|
+
encoding?: 'application/json';
|
|
22
|
+
}
|
|
23
|
+
export interface Response {
|
|
24
|
+
success: boolean;
|
|
25
|
+
headers: HeadersMap;
|
|
26
|
+
data: OutputSchema;
|
|
27
|
+
}
|
|
28
|
+
export declare function toKnownErr(e: any): any;
|
|
29
|
+
//# sourceMappingURL=deleteQueue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteQueue.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/queue/deleteQueue.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AAcrD,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,gCAAgC;IAChC,OAAO,EAAE,MAAM,CAAA;IACf,6GAA6G;IAC7G,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,OAAO,CAAA;IAChB,mEAAmE;IACnE,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB;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.deleteQueue';
|
|
8
|
+
function toKnownErr(e) {
|
|
9
|
+
return e;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=deleteQueue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteQueue.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/queue/deleteQueue.ts"],"names":[],"mappings":";;AA6CA,gCAEC;AAzCD,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,+BAA+B,CAAA;AA8B1C,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'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.queue.deleteQueue'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n /** ID of the queue to delete */\n queueId: number\n /** Optional: migrate all reports to this queue. If not specified, reports will be set to unassigned (-1). */\n migrateToQueueId?: number\n}\n\nexport interface OutputSchema {\n deleted: boolean\n /** Number of reports that were migrated (if migration occurred) */\n reportsMigrated?: 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 function toKnownErr(e: any) {\n return e\n}\n"]}
|
|
@@ -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"}
|