@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.
- package/CHANGELOG.md +14 -0
- package/dist/client/index.d.ts +74 -3
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +178 -9
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +11272 -8116
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +1800 -128
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/chat/bsky/convo/listConvos.d.ts +2 -0
- package/dist/client/types/chat/bsky/convo/listConvos.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/convo/listConvos.js.map +1 -1
- package/dist/client/types/chat/bsky/group/defs.d.ts +6 -4
- package/dist/client/types/chat/bsky/group/defs.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/group/defs.js +7 -7
- package/dist/client/types/chat/bsky/group/defs.js.map +1 -1
- package/dist/client/types/chat/bsky/group/{getGroupPublicInfo.d.ts → getJoinLinkPreview.d.ts} +2 -2
- package/dist/client/types/chat/bsky/group/getJoinLinkPreview.d.ts.map +1 -0
- package/dist/client/types/chat/bsky/group/{getGroupPublicInfo.js → getJoinLinkPreview.js} +2 -2
- package/dist/client/types/chat/bsky/group/{getGroupPublicInfo.js.map → getJoinLinkPreview.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 +1 -1
- package/src/client/index.ts +300 -8
- package/src/client/lexicons.ts +1920 -164
- package/src/client/types/chat/bsky/convo/listConvos.ts +2 -0
- package/src/client/types/chat/bsky/group/defs.ts +9 -7
- package/src/client/types/chat/bsky/group/{getGroupPublicInfo.ts → getJoinLinkPreview.ts} +2 -2
- 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
- package/dist/client/types/chat/bsky/group/getGroupPublicInfo.d.ts.map +0 -1
|
@@ -11,6 +11,8 @@ export type QueryParams = {
|
|
|
11
11
|
status?: 'request' | 'accepted' | (string & {});
|
|
12
12
|
/** Filter by conversation kind. */
|
|
13
13
|
kind?: 'direct' | 'group' | (string & {});
|
|
14
|
+
/** Filter by conversation lock status. Values follow chat.bsky.convo.defs#convoLockStatus. */
|
|
15
|
+
lockStatus?: 'unlocked' | 'locked' | 'locked-permanently' | (string & {});
|
|
14
16
|
};
|
|
15
17
|
export type InputSchema = undefined;
|
|
16
18
|
export interface OutputSchema {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listConvos.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/convo/listConvos.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AASrD,OAAO,KAAK,KAAK,iBAAiB,MAAM,WAAW,CAAA;AAMnD,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,QAAQ,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACpC,iMAAiM;IACjM,MAAM,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IAC/C,mCAAmC;IACnC,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"listConvos.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/convo/listConvos.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AASrD,OAAO,KAAK,KAAK,iBAAiB,MAAM,WAAW,CAAA;AAMnD,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,QAAQ,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACpC,iMAAiM;IACjM,MAAM,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IAC/C,mCAAmC;IACnC,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACzC,8FAA8F;IAC9F,UAAU,CAAC,EAAE,UAAU,GAAG,QAAQ,GAAG,oBAAoB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;CAC1E,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,iBAAiB,CAAC,SAAS,EAAE,CAAA;CACtC;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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listConvos.js","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/convo/listConvos.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"listConvos.js","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/convo/listConvos.ts"],"names":[],"mappings":";;AA+CA,gCAEC;AA3CD,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,4BAA4B,CAAA;AA+BvC,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 ChatBskyConvoDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'chat.bsky.convo.listConvos'\n\nexport type QueryParams = {\n limit?: number\n cursor?: string\n readState?: 'unread' | (string & {})\n /** Filter convos by their status. It is discouraged to call with \"request\" and preferred to call chat.bsky.convo.listConvoRequests, which also includes group join requests made by the user. */\n status?: 'request' | 'accepted' | (string & {})\n /** Filter by conversation kind. */\n kind?: 'direct' | 'group' | (string & {})\n /** Filter by conversation lock status. Values follow chat.bsky.convo.defs#convoLockStatus. */\n lockStatus?: 'unlocked' | 'locked' | 'locked-permanently' | (string & {})\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n cursor?: string\n convos: ChatBskyConvoDefs.ConvoView[]\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n return e\n}\n"]}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
5
|
import type * as ChatBskyActorDefs from '../actor/defs.js';
|
|
6
|
+
import type * as ChatBskyConvoDefs from '../convo/defs.js';
|
|
6
7
|
export type LinkEnabledStatus = 'enabled' | 'disabled' | (string & {});
|
|
7
8
|
export type JoinRule = 'anyone' | 'followedByOwner' | (string & {});
|
|
8
9
|
export interface JoinLinkView {
|
|
@@ -15,15 +16,16 @@ export interface JoinLinkView {
|
|
|
15
16
|
}
|
|
16
17
|
export declare function isJoinLinkView<V>(v: V): v is import("../../../../util").$TypedObject<V, "chat.bsky.group.defs", "joinLinkView">;
|
|
17
18
|
export declare function validateJoinLinkView<V>(v: V): ValidationResult<JoinLinkView & V>;
|
|
18
|
-
export interface
|
|
19
|
-
$type?: 'chat.bsky.group.defs#
|
|
19
|
+
export interface JoinLinkPreviewView {
|
|
20
|
+
$type?: 'chat.bsky.group.defs#joinLinkPreviewView';
|
|
20
21
|
name: string;
|
|
21
22
|
owner: ChatBskyActorDefs.ProfileViewBasic;
|
|
22
23
|
memberCount: number;
|
|
23
24
|
requireApproval: boolean;
|
|
25
|
+
convo?: ChatBskyConvoDefs.ConvoView;
|
|
24
26
|
}
|
|
25
|
-
export declare function
|
|
26
|
-
export declare function
|
|
27
|
+
export declare function isJoinLinkPreviewView<V>(v: V): v is import("../../../../util").$TypedObject<V, "chat.bsky.group.defs", "joinLinkPreviewView">;
|
|
28
|
+
export declare function validateJoinLinkPreviewView<V>(v: V): ValidationResult<JoinLinkPreviewView & V>;
|
|
27
29
|
export interface JoinRequestView {
|
|
28
30
|
$type?: 'chat.bsky.group.defs#joinRequestView';
|
|
29
31
|
convoId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/group/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,iBAAiB,MAAM,kBAAkB,CAAA;AAM1D,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,UAAU,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;AACtE,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,iBAAiB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;AAEnE,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,mCAAmC,CAAA;IAC3C,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,iBAAiB,CAAA;IAChC,eAAe,EAAE,OAAO,CAAA;IACxB,QAAQ,EAAE,QAAQ,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;CAClB;AAID,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,2FAErC;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE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AC,EAAE,CAAC,6CAElD;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,sCAAsC,CAAA;IAC9C,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,iBAAiB,CAAC,gBAAgB,CAAA;IAC/C,WAAW,EAAE,MAAM,CAAA;CACpB;AAID,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8FAExC;AAED,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,yCAE9C"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isJoinLinkView = isJoinLinkView;
|
|
4
4
|
exports.validateJoinLinkView = validateJoinLinkView;
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
5
|
+
exports.isJoinLinkPreviewView = isJoinLinkPreviewView;
|
|
6
|
+
exports.validateJoinLinkPreviewView = validateJoinLinkPreviewView;
|
|
7
7
|
exports.isJoinRequestView = isJoinRequestView;
|
|
8
8
|
exports.validateJoinRequestView = validateJoinRequestView;
|
|
9
9
|
const lexicons_1 = require("../../../../lexicons");
|
|
@@ -17,12 +17,12 @@ function isJoinLinkView(v) {
|
|
|
17
17
|
function validateJoinLinkView(v) {
|
|
18
18
|
return validate(v, id, hashJoinLinkView);
|
|
19
19
|
}
|
|
20
|
-
const
|
|
21
|
-
function
|
|
22
|
-
return is$typed(v, id,
|
|
20
|
+
const hashJoinLinkPreviewView = 'joinLinkPreviewView';
|
|
21
|
+
function isJoinLinkPreviewView(v) {
|
|
22
|
+
return is$typed(v, id, hashJoinLinkPreviewView);
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
return validate(v, id,
|
|
24
|
+
function validateJoinLinkPreviewView(v) {
|
|
25
|
+
return validate(v, id, hashJoinLinkPreviewView);
|
|
26
26
|
}
|
|
27
27
|
const hashJoinRequestView = 'joinRequestView';
|
|
28
28
|
function isJoinRequestView(v) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/group/defs.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/group/defs.ts"],"names":[],"mappings":";;AAgCA,wCAEC;AAED,oDAEC;AAaD,sDAEC;AAED,kEAEC;AAWD,8CAEC;AAED,0DAEC;AArED,mDAA4D;AAC5D,2CAIyB;AAIzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,sBAAsB,CAAA;AAcjC,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;AAWD,MAAM,uBAAuB,GAAG,qBAAqB,CAAA;AAErD,SAAgB,qBAAqB,CAAI,CAAI;IAC3C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,uBAAuB,CAAC,CAAA;AACjD,CAAC;AAED,SAAgB,2BAA2B,CAAI,CAAI;IACjD,OAAO,QAAQ,CAA0B,CAAC,EAAE,EAAE,EAAE,uBAAuB,CAAC,CAAA;AAC1E,CAAC;AASD,MAAM,mBAAmB,GAAG,iBAAiB,CAAA;AAE7C,SAAgB,iBAAiB,CAAI,CAAI;IACvC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,mBAAmB,CAAC,CAAA;AAC7C,CAAC;AAED,SAAgB,uBAAuB,CAAI,CAAI;IAC7C,OAAO,QAAQ,CAAsB,CAAC,EAAE,EAAE,EAAE,mBAAmB,CAAC,CAAA;AAClE,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 ChatBskyActorDefs from '../actor/defs.js'\nimport type * as ChatBskyConvoDefs from '../convo/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'chat.bsky.group.defs'\n\nexport type LinkEnabledStatus = 'enabled' | 'disabled' | (string & {})\nexport type JoinRule = 'anyone' | 'followedByOwner' | (string & {})\n\nexport interface JoinLinkView {\n $type?: 'chat.bsky.group.defs#joinLinkView'\n code: string\n enabledStatus: LinkEnabledStatus\n requireApproval: boolean\n joinRule: JoinRule\n createdAt: string\n}\n\nconst hashJoinLinkView = 'joinLinkView'\n\nexport function isJoinLinkView<V>(v: V) {\n return is$typed(v, id, hashJoinLinkView)\n}\n\nexport function validateJoinLinkView<V>(v: V) {\n return validate<JoinLinkView & V>(v, id, hashJoinLinkView)\n}\n\nexport interface JoinLinkPreviewView {\n $type?: 'chat.bsky.group.defs#joinLinkPreviewView'\n name: string\n owner: ChatBskyActorDefs.ProfileViewBasic\n memberCount: number\n requireApproval: boolean\n convo?: ChatBskyConvoDefs.ConvoView\n}\n\nconst hashJoinLinkPreviewView = 'joinLinkPreviewView'\n\nexport function isJoinLinkPreviewView<V>(v: V) {\n return is$typed(v, id, hashJoinLinkPreviewView)\n}\n\nexport function validateJoinLinkPreviewView<V>(v: V) {\n return validate<JoinLinkPreviewView & V>(v, id, hashJoinLinkPreviewView)\n}\n\nexport interface JoinRequestView {\n $type?: 'chat.bsky.group.defs#joinRequestView'\n convoId: string\n requestedBy: ChatBskyActorDefs.ProfileViewBasic\n requestedAt: string\n}\n\nconst hashJoinRequestView = 'joinRequestView'\n\nexport function isJoinRequestView<V>(v: V) {\n return is$typed(v, id, hashJoinRequestView)\n}\n\nexport function validateJoinRequestView<V>(v: V) {\n return validate<JoinRequestView & V>(v, id, hashJoinRequestView)\n}\n"]}
|
package/dist/client/types/chat/bsky/group/{getGroupPublicInfo.d.ts → getJoinLinkPreview.d.ts}
RENAMED
|
@@ -8,7 +8,7 @@ export type QueryParams = {
|
|
|
8
8
|
};
|
|
9
9
|
export type InputSchema = undefined;
|
|
10
10
|
export interface OutputSchema {
|
|
11
|
-
|
|
11
|
+
joinLinkPreview: ChatBskyGroupDefs.JoinLinkPreviewView;
|
|
12
12
|
}
|
|
13
13
|
export interface CallOptions {
|
|
14
14
|
signal?: AbortSignal;
|
|
@@ -23,4 +23,4 @@ export declare class InvalidCodeError extends XRPCError {
|
|
|
23
23
|
constructor(src: XRPCError);
|
|
24
24
|
}
|
|
25
25
|
export declare function toKnownErr(e: any): any;
|
|
26
|
-
//# sourceMappingURL=
|
|
26
|
+
//# sourceMappingURL=getJoinLinkPreview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getJoinLinkPreview.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/group/getJoinLinkPreview.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AASrD,OAAO,KAAK,KAAK,iBAAiB,MAAM,WAAW,CAAA;AAMnD,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,eAAe,EAAE,iBAAiB,CAAC,mBAAmB,CAAA;CACvD;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,qBAAa,gBAAiB,SAAQ,SAAS;gBACjC,GAAG,EAAE,SAAS;CAG3B;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAMhC"}
|
|
@@ -9,7 +9,7 @@ const xrpc_1 = require("@atproto/xrpc");
|
|
|
9
9
|
const lexicons_1 = require("../../../../lexicons");
|
|
10
10
|
const util_1 = require("../../../../util");
|
|
11
11
|
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
|
12
|
-
const id = 'chat.bsky.group.
|
|
12
|
+
const id = 'chat.bsky.group.getJoinLinkPreview';
|
|
13
13
|
class InvalidCodeError extends xrpc_1.XRPCError {
|
|
14
14
|
constructor(src) {
|
|
15
15
|
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
@@ -23,4 +23,4 @@ function toKnownErr(e) {
|
|
|
23
23
|
}
|
|
24
24
|
return e;
|
|
25
25
|
}
|
|
26
|
-
//# sourceMappingURL=
|
|
26
|
+
//# sourceMappingURL=getJoinLinkPreview.js.map
|
package/dist/client/types/chat/bsky/group/{getGroupPublicInfo.js.map → getJoinLinkPreview.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"getJoinLinkPreview.js","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/group/getJoinLinkPreview.ts"],"names":[],"mappings":";;;AA4CA,gCAMC;AAlDD;;GAEG;AACH,wCAAqD;AAGrD,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,oCAAoC,CAAA;AAsB/C,MAAa,gBAAiB,SAAQ,gBAAS;IAC7C,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,4CAIC;AAED,SAAgB,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,gBAAS,EAAE,CAAC;QAC3B,IAAI,CAAC,CAAC,KAAK,KAAK,aAAa;YAAE,OAAO,IAAI,gBAAgB,CAAC,CAAC,CAAC,CAAA;IAC/D,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 ChatBskyGroupDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'chat.bsky.group.getJoinLinkPreview'\n\nexport type QueryParams = {\n code: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n joinLinkPreview: ChatBskyGroupDefs.JoinLinkPreviewView\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport class InvalidCodeError 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 === 'InvalidCode') return new InvalidCodeError(e)\n }\n\n return e\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,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AAsB,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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C,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"]}
|