@atproto/api 0.23.1 → 0.24.0
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 +20 -0
- package/dist/client/index.d.ts +33 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +63 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +3391 -1631
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +1138 -174
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/unspecced/getOnboardingSuggestedStarterPacks.d.ts +2 -0
- package/dist/client/types/app/bsky/unspecced/getOnboardingSuggestedStarterPacks.d.ts.map +1 -1
- package/dist/client/types/app/bsky/unspecced/getOnboardingSuggestedStarterPacks.js.map +1 -1
- package/dist/client/types/app/bsky/unspecced/getOnboardingSuggestedStarterPacksSkeleton.d.ts +2 -0
- package/dist/client/types/app/bsky/unspecced/getOnboardingSuggestedStarterPacksSkeleton.d.ts.map +1 -1
- package/dist/client/types/app/bsky/unspecced/getOnboardingSuggestedStarterPacksSkeleton.js.map +1 -1
- package/dist/client/types/app/bsky/unspecced/getSuggestedFeeds.d.ts +2 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedFeeds.d.ts.map +1 -1
- package/dist/client/types/app/bsky/unspecced/getSuggestedFeeds.js.map +1 -1
- package/dist/client/types/app/bsky/unspecced/getSuggestedFeedsSkeleton.d.ts +2 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedFeedsSkeleton.d.ts.map +1 -1
- package/dist/client/types/app/bsky/unspecced/getSuggestedFeedsSkeleton.js.map +1 -1
- package/dist/client/types/app/bsky/unspecced/getSuggestedStarterPacks.d.ts +2 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedStarterPacks.d.ts.map +1 -1
- package/dist/client/types/app/bsky/unspecced/getSuggestedStarterPacks.js.map +1 -1
- package/dist/client/types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.d.ts +2 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.d.ts.map +1 -1
- package/dist/client/types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.js.map +1 -1
- package/dist/client/types/tools/ozone/inbox/defs.d.ts +94 -4
- package/dist/client/types/tools/ozone/inbox/defs.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/inbox/defs.js +56 -0
- package/dist/client/types/tools/ozone/inbox/defs.js.map +1 -1
- package/dist/client/types/tools/ozone/inbox/getAccountStatus.d.ts +29 -0
- package/dist/client/types/tools/ozone/inbox/getAccountStatus.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/inbox/getAccountStatus.js +14 -0
- package/dist/client/types/tools/ozone/inbox/getAccountStatus.js.map +1 -0
- package/dist/client/types/tools/ozone/inbox/getActionedSubject.d.ts +31 -0
- package/dist/client/types/tools/ozone/inbox/getActionedSubject.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/inbox/getActionedSubject.js +23 -0
- package/dist/client/types/tools/ozone/inbox/getActionedSubject.js.map +1 -0
- package/dist/client/types/tools/ozone/inbox/getNotificationPreferences.d.ts +24 -0
- package/dist/client/types/tools/ozone/inbox/getNotificationPreferences.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/inbox/getNotificationPreferences.js +14 -0
- package/dist/client/types/tools/ozone/inbox/getNotificationPreferences.js.map +1 -0
- package/dist/client/types/tools/ozone/inbox/getReport.d.ts +66 -0
- package/dist/client/types/tools/ozone/inbox/getReport.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/inbox/getReport.js +37 -0
- package/dist/client/types/tools/ozone/inbox/getReport.js.map +1 -0
- package/dist/client/types/tools/ozone/inbox/getUnreadCount.d.ts +34 -0
- package/dist/client/types/tools/ozone/inbox/getUnreadCount.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/inbox/getUnreadCount.js +21 -0
- package/dist/client/types/tools/ozone/inbox/getUnreadCount.js.map +1 -0
- package/dist/client/types/tools/ozone/inbox/listActionedSubjects.d.ts +32 -0
- package/dist/client/types/tools/ozone/inbox/listActionedSubjects.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/inbox/listActionedSubjects.js +14 -0
- package/dist/client/types/tools/ozone/inbox/listActionedSubjects.js.map +1 -0
- package/dist/client/types/tools/ozone/inbox/listNotifications.d.ts +30 -0
- package/dist/client/types/tools/ozone/inbox/listNotifications.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/inbox/listNotifications.js +14 -0
- package/dist/client/types/tools/ozone/inbox/listNotifications.js.map +1 -0
- package/dist/client/types/tools/ozone/inbox/listReports.d.ts +58 -0
- package/dist/client/types/tools/ozone/inbox/listReports.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/inbox/listReports.js +21 -0
- package/dist/client/types/tools/ozone/inbox/listReports.js.map +1 -0
- package/dist/client/types/tools/ozone/inbox/putNotificationPreferences.d.ts +25 -0
- package/dist/client/types/tools/ozone/inbox/putNotificationPreferences.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/inbox/putNotificationPreferences.js +14 -0
- package/dist/client/types/tools/ozone/inbox/putNotificationPreferences.js.map +1 -0
- package/dist/client/types/tools/ozone/inbox/updateSeen.d.ts +27 -0
- package/dist/client/types/tools/ozone/inbox/updateSeen.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/inbox/updateSeen.js +14 -0
- package/dist/client/types/tools/ozone/inbox/updateSeen.js.map +1 -0
- package/dist/client/types/tools/ozone/moderation/defs.d.ts +6 -0
- package/dist/client/types/tools/ozone/moderation/defs.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/moderation/defs.js.map +1 -1
- package/dist/client/types/tools/ozone/server/getCapabilities.d.ts +27 -0
- package/dist/client/types/tools/ozone/server/getCapabilities.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/server/getCapabilities.js +21 -0
- package/dist/client/types/tools/ozone/server/getCapabilities.js.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type HeadersMap, XRPCError } from '@atproto/xrpc';
|
|
5
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
6
|
+
import { type $Typed } from '../../../../util.js';
|
|
7
|
+
import type * as ComAtprotoAdminDefs from '../../../com/atproto/admin/defs.js';
|
|
8
|
+
import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
|
|
9
|
+
import type * as ChatBskyConvoDefs from '../../../chat/bsky/convo/defs.js';
|
|
10
|
+
export type QueryParams = {
|
|
11
|
+
/** Reporter to preview. Defaults to the authenticated account; another account requires an active moderator, triage, or admin credential. */
|
|
12
|
+
did?: string;
|
|
13
|
+
/** Report ID (report table ID), as returned by listReports. */
|
|
14
|
+
id: number;
|
|
15
|
+
};
|
|
16
|
+
export type InputSchema = undefined;
|
|
17
|
+
export interface OutputSchema {
|
|
18
|
+
report: ReportView;
|
|
19
|
+
resolution?: ResolutionView;
|
|
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 class NotFoundError extends XRPCError {
|
|
31
|
+
constructor(src: XRPCError);
|
|
32
|
+
}
|
|
33
|
+
export declare function toKnownErr(e: any): any;
|
|
34
|
+
export interface ReportView {
|
|
35
|
+
$type?: 'tools.ozone.inbox.getReport#reportView';
|
|
36
|
+
/** DID of the moderation service that received the report. */
|
|
37
|
+
src: string;
|
|
38
|
+
/** Report ID (report table ID), used by Ozone's report detail page. */
|
|
39
|
+
id: number;
|
|
40
|
+
/** The exact fully-qualified reason NSID submitted with and stored on the report. */
|
|
41
|
+
reasonType: string;
|
|
42
|
+
reason?: string;
|
|
43
|
+
subject: $Typed<ComAtprotoAdminDefs.RepoRef> | $Typed<ComAtprotoRepoStrongRef.Main> | $Typed<ChatBskyConvoDefs.MessageRef> | $Typed<ChatBskyConvoDefs.ConvoRef> | {
|
|
44
|
+
$type: string;
|
|
45
|
+
};
|
|
46
|
+
/** Raw record JSON for the subject, when the subject is a record and the record is available. */
|
|
47
|
+
record?: {
|
|
48
|
+
[_ in string]: unknown;
|
|
49
|
+
};
|
|
50
|
+
status: 'pending' | 'resolved' | (string & {});
|
|
51
|
+
createdAt: string;
|
|
52
|
+
updatedAt: string;
|
|
53
|
+
}
|
|
54
|
+
export declare function isReportView<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.inbox.getReport", "reportView">;
|
|
55
|
+
export declare function validateReportView<V>(v: V): ValidationResult<ReportView & V>;
|
|
56
|
+
export interface ResolutionView {
|
|
57
|
+
$type?: 'tools.ozone.inbox.getReport#resolutionView';
|
|
58
|
+
outcome: 'actionTaken' | 'noAction' | 'other' | (string & {});
|
|
59
|
+
/** Public action associated with this report's resolution. See the public action vocabulary table. */
|
|
60
|
+
actionTaken?: string;
|
|
61
|
+
scope?: 'network' | 'app' | 'labelOnly' | (string & {});
|
|
62
|
+
resolvedAt: string;
|
|
63
|
+
}
|
|
64
|
+
export declare function isResolutionView<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.inbox.getReport", "resolutionView">;
|
|
65
|
+
export declare function validateResolutionView<V>(v: V): ValidationResult<ResolutionView & V>;
|
|
66
|
+
//# sourceMappingURL=getReport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getReport.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/getReport.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,KAAK,mBAAmB,MAAM,oCAAoC,CAAA;AAC9E,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AACtF,OAAO,KAAK,KAAK,iBAAiB,MAAM,kCAAkC,CAAA;AAM1E,MAAM,MAAM,WAAW,GAAG;IACxB,6IAA6I;IAC7I,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,+DAA+D;IAC/D,EAAE,EAAE,MAAM,CAAA;CACX,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,UAAU,CAAA;IAClB,UAAU,CAAC,EAAE,cAAc,CAAA;CAC5B;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,aAAc,SAAQ,SAAS;IAC1C,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAMhC;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,wCAAwC,CAAA;IAChD,8DAA8D;IAC9D,GAAG,EAAE,MAAM,CAAA;IACX,uEAAuE;IACvE,EAAE,EAAE,MAAM,CAAA;IACV,qFAAqF;IACrF,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,EACH,MAAM,CAAC,mBAAmB,CAAC,OAAO,CAAC,GACnC,MAAM,CAAC,uBAAuB,CAAC,IAAI,CAAC,GACpC,MAAM,CAAC,iBAAiB,CAAC,UAAU,CAAC,GACpC,MAAM,CAAC,iBAAiB,CAAC,QAAQ,CAAC,GAClC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACrB,iGAAiG;IACjG,MAAM,CAAC,EAAE;SAAG,CAAC,IAAI,MAAM,GAAG,OAAO;KAAE,CAAA;IACnC,MAAM,EAAE,SAAS,GAAG,UAAU,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IAC9C,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;CAClB;AAID,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,mGAEnC;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,oCAEzC;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,4CAA4C,CAAA;IACpD,OAAO,EAAE,aAAa,GAAG,UAAU,GAAG,OAAO,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IAC7D,sGAAsG;IACtG,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,SAAS,GAAG,KAAK,GAAG,WAAW,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACvD,UAAU,EAAE,MAAM,CAAA;CACnB;AAID,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,uGAEvC;AAED,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,wCAE7C"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { XRPCError } from '@atproto/xrpc';
|
|
5
|
+
import { BlobRef } from '@atproto/lexicon';
|
|
6
|
+
import { CID } from 'multiformats/cid';
|
|
7
|
+
import { validate as _validate } from '../../../../lexicons.js';
|
|
8
|
+
import { is$typed as _is$typed, } from '../../../../util.js';
|
|
9
|
+
const is$typed = _is$typed, validate = _validate;
|
|
10
|
+
const id = 'tools.ozone.inbox.getReport';
|
|
11
|
+
export class NotFoundError extends XRPCError {
|
|
12
|
+
constructor(src) {
|
|
13
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export function toKnownErr(e) {
|
|
17
|
+
if (e instanceof XRPCError) {
|
|
18
|
+
if (e.error === 'NotFound')
|
|
19
|
+
return new NotFoundError(e);
|
|
20
|
+
}
|
|
21
|
+
return e;
|
|
22
|
+
}
|
|
23
|
+
const hashReportView = 'reportView';
|
|
24
|
+
export function isReportView(v) {
|
|
25
|
+
return is$typed(v, id, hashReportView);
|
|
26
|
+
}
|
|
27
|
+
export function validateReportView(v) {
|
|
28
|
+
return validate(v, id, hashReportView);
|
|
29
|
+
}
|
|
30
|
+
const hashResolutionView = 'resolutionView';
|
|
31
|
+
export function isResolutionView(v) {
|
|
32
|
+
return is$typed(v, id, hashResolutionView);
|
|
33
|
+
}
|
|
34
|
+
export function validateResolutionView(v) {
|
|
35
|
+
return validate(v, id, hashResolutionView);
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=getReport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getReport.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/getReport.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAmB,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAyB,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAK5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,6BAA6B,CAAA;AA0BxC,MAAM,OAAO,aAAc,SAAQ,SAAS;IAC1C,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;IACxE,CAAC;CACF;AAED,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,SAAS,EAAE,CAAC;QAC3B,IAAI,CAAC,CAAC,KAAK,KAAK,UAAU;YAAE,OAAO,IAAI,aAAa,CAAC,CAAC,CAAC,CAAA;IACzD,CAAC;IAED,OAAO,CAAC,CAAA;AACV,CAAC;AAwBD,MAAM,cAAc,GAAG,YAAY,CAAA;AAEnC,MAAM,UAAU,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,cAAc,CAAC,CAAA;AACxC,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAI,CAAI;IACxC,OAAO,QAAQ,CAAiB,CAAC,EAAE,EAAE,EAAE,cAAc,CAAC,CAAA;AACxD,CAAC;AAWD,MAAM,kBAAkB,GAAG,gBAAgB,CAAA;AAE3C,MAAM,UAAU,gBAAgB,CAAI,CAAI;IACtC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,kBAAkB,CAAC,CAAA;AAC5C,CAAC;AAED,MAAM,UAAU,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 HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as ComAtprotoAdminDefs from '../../../com/atproto/admin/defs.js'\nimport type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\nimport type * as ChatBskyConvoDefs from '../../../chat/bsky/convo/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.inbox.getReport'\n\nexport type QueryParams = {\n /** Reporter to preview. Defaults to the authenticated account; another account requires an active moderator, triage, or admin credential. */\n did?: string\n /** Report ID (report table ID), as returned by listReports. */\n id: number\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n report: ReportView\n resolution?: ResolutionView\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 NotFoundError 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 === 'NotFound') return new NotFoundError(e)\n }\n\n return e\n}\n\nexport interface ReportView {\n $type?: 'tools.ozone.inbox.getReport#reportView'\n /** DID of the moderation service that received the report. */\n src: string\n /** Report ID (report table ID), used by Ozone's report detail page. */\n id: number\n /** The exact fully-qualified reason NSID submitted with and stored on the report. */\n reasonType: string\n reason?: string\n subject:\n | $Typed<ComAtprotoAdminDefs.RepoRef>\n | $Typed<ComAtprotoRepoStrongRef.Main>\n | $Typed<ChatBskyConvoDefs.MessageRef>\n | $Typed<ChatBskyConvoDefs.ConvoRef>\n | { $type: string }\n /** Raw record JSON for the subject, when the subject is a record and the record is available. */\n record?: { [_ in string]: unknown }\n status: 'pending' | 'resolved' | (string & {})\n createdAt: string\n updatedAt: string\n}\n\nconst hashReportView = 'reportView'\n\nexport function isReportView<V>(v: V) {\n return is$typed(v, id, hashReportView)\n}\n\nexport function validateReportView<V>(v: V) {\n return validate<ReportView & V>(v, id, hashReportView)\n}\n\nexport interface ResolutionView {\n $type?: 'tools.ozone.inbox.getReport#resolutionView'\n outcome: 'actionTaken' | 'noAction' | 'other' | (string & {})\n /** Public action associated with this report's resolution. See the public action vocabulary table. */\n actionTaken?: string\n scope?: 'network' | 'app' | 'labelOnly' | (string & {})\n resolvedAt: string\n}\n\nconst hashResolutionView = 'resolutionView'\n\nexport function isResolutionView<V>(v: V) {\n return is$typed(v, id, hashResolutionView)\n}\n\nexport function validateResolutionView<V>(v: V) {\n return validate<ResolutionView & V>(v, id, hashResolutionView)\n}\n"]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type HeadersMap } from '@atproto/xrpc';
|
|
5
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
6
|
+
export type QueryParams = {
|
|
7
|
+
section?: 'reports' | 'subjects' | 'accountStatus' | (string & {});
|
|
8
|
+
/** Account to preview. Only Ozone staff can read another account; this does not change its read state. */
|
|
9
|
+
did?: string;
|
|
10
|
+
};
|
|
11
|
+
export type InputSchema = undefined;
|
|
12
|
+
export interface OutputSchema {
|
|
13
|
+
unreadCounts: UnreadCounts;
|
|
14
|
+
}
|
|
15
|
+
export interface CallOptions {
|
|
16
|
+
signal?: AbortSignal;
|
|
17
|
+
headers?: HeadersMap;
|
|
18
|
+
}
|
|
19
|
+
export interface Response {
|
|
20
|
+
success: boolean;
|
|
21
|
+
headers: HeadersMap;
|
|
22
|
+
data: OutputSchema;
|
|
23
|
+
}
|
|
24
|
+
export declare function toKnownErr(e: any): any;
|
|
25
|
+
export interface UnreadCounts {
|
|
26
|
+
$type?: 'tools.ozone.inbox.getUnreadCount#unreadCounts';
|
|
27
|
+
total: number;
|
|
28
|
+
reports?: number;
|
|
29
|
+
subjects?: number;
|
|
30
|
+
accountStatus?: number;
|
|
31
|
+
}
|
|
32
|
+
export declare function isUnreadCounts<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.inbox.getUnreadCount", "unreadCounts">;
|
|
33
|
+
export declare function validateUnreadCounts<V>(v: V): ValidationResult<UnreadCounts & V>;
|
|
34
|
+
//# sourceMappingURL=getUnreadCount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getUnreadCount.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/getUnreadCount.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAa,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,eAAe,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IAClE,0GAA0G;IAC1G,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,YAAY,EAAE,YAAY,CAAA;CAC3B;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;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,+CAA+C,CAAA;IACvD,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAID,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,0GAErC;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sCAE3C"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { XRPCError } from '@atproto/xrpc';
|
|
5
|
+
import { BlobRef } from '@atproto/lexicon';
|
|
6
|
+
import { CID } from 'multiformats/cid';
|
|
7
|
+
import { validate as _validate } from '../../../../lexicons.js';
|
|
8
|
+
import { is$typed as _is$typed, } from '../../../../util.js';
|
|
9
|
+
const is$typed = _is$typed, validate = _validate;
|
|
10
|
+
const id = 'tools.ozone.inbox.getUnreadCount';
|
|
11
|
+
export function toKnownErr(e) {
|
|
12
|
+
return e;
|
|
13
|
+
}
|
|
14
|
+
const hashUnreadCounts = 'unreadCounts';
|
|
15
|
+
export function isUnreadCounts(v) {
|
|
16
|
+
return is$typed(v, id, hashUnreadCounts);
|
|
17
|
+
}
|
|
18
|
+
export function validateUnreadCounts(v) {
|
|
19
|
+
return validate(v, id, hashUnreadCounts);
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=getUnreadCount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getUnreadCount.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/getUnreadCount.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAmB,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAyB,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAE5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,kCAAkC,CAAA;AAwB7C,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC;AAUD,MAAM,gBAAgB,GAAG,cAAc,CAAA;AAEvC,MAAM,UAAU,cAAc,CAAI,CAAI;IACpC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAA;AAC1C,CAAC;AAED,MAAM,UAAU,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 HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.inbox.getUnreadCount'\n\nexport type QueryParams = {\n section?: 'reports' | 'subjects' | 'accountStatus' | (string & {})\n /** Account to preview. Only Ozone staff can read another account; this does not change its read state. */\n did?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n unreadCounts: UnreadCounts\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\nexport interface UnreadCounts {\n $type?: 'tools.ozone.inbox.getUnreadCount#unreadCounts'\n total: number\n reports?: number\n subjects?: number\n accountStatus?: number\n}\n\nconst hashUnreadCounts = 'unreadCounts'\n\nexport function isUnreadCounts<V>(v: V) {\n return is$typed(v, id, hashUnreadCounts)\n}\n\nexport function validateUnreadCounts<V>(v: V) {\n return validate<UnreadCounts & V>(v, id, hashUnreadCounts)\n}\n"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type HeadersMap } from '@atproto/xrpc';
|
|
5
|
+
import type * as ToolsOzoneInboxDefs from './defs.js';
|
|
6
|
+
export type QueryParams = {
|
|
7
|
+
/** Account to preview. Defaults to the authenticated account; another account requires an active moderator, triage, or admin credential. */
|
|
8
|
+
did?: string;
|
|
9
|
+
/** Filter subject activity. pending includes subjects whose latest appeal report is not closed; resolved includes subjects whose latest appeal report is closed. unread includes subjects whose public updatedAt is after the subjects section's seenAt watermark. */
|
|
10
|
+
filter?: 'all' | 'pending' | 'resolved' | 'unread';
|
|
11
|
+
sortField?: 'createdAt' | 'updatedAt';
|
|
12
|
+
sortDirection?: 'asc' | 'desc';
|
|
13
|
+
limit?: number;
|
|
14
|
+
/** An opaque cursor for pagination. */
|
|
15
|
+
cursor?: string;
|
|
16
|
+
};
|
|
17
|
+
export type InputSchema = undefined;
|
|
18
|
+
export interface OutputSchema {
|
|
19
|
+
cursor?: string;
|
|
20
|
+
subjects: ToolsOzoneInboxDefs.SubjectView[];
|
|
21
|
+
}
|
|
22
|
+
export interface CallOptions {
|
|
23
|
+
signal?: AbortSignal;
|
|
24
|
+
headers?: HeadersMap;
|
|
25
|
+
}
|
|
26
|
+
export interface Response {
|
|
27
|
+
success: boolean;
|
|
28
|
+
headers: HeadersMap;
|
|
29
|
+
data: OutputSchema;
|
|
30
|
+
}
|
|
31
|
+
export declare function toKnownErr(e: any): any;
|
|
32
|
+
//# sourceMappingURL=listActionedSubjects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listActionedSubjects.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/listActionedSubjects.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAa,MAAM,eAAe,CAAA;AAS1D,OAAO,KAAK,KAAK,mBAAmB,MAAM,WAAW,CAAA;AAMrD,MAAM,MAAM,WAAW,GAAG;IACxB,4IAA4I;IAC5I,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,sQAAsQ;IACtQ,MAAM,CAAC,EAAE,KAAK,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,CAAA;IAClD,SAAS,CAAC,EAAE,WAAW,GAAG,WAAW,CAAA;IACrC,aAAa,CAAC,EAAE,KAAK,GAAG,MAAM,CAAA;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,uCAAuC;IACvC,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,QAAQ,EAAE,mBAAmB,CAAC,WAAW,EAAE,CAAA;CAC5C;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,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { XRPCError } from '@atproto/xrpc';
|
|
5
|
+
import { BlobRef } from '@atproto/lexicon';
|
|
6
|
+
import { CID } from 'multiformats/cid';
|
|
7
|
+
import { validate as _validate } from '../../../../lexicons.js';
|
|
8
|
+
import { is$typed as _is$typed, } from '../../../../util.js';
|
|
9
|
+
const is$typed = _is$typed, validate = _validate;
|
|
10
|
+
const id = 'tools.ozone.inbox.listActionedSubjects';
|
|
11
|
+
export function toKnownErr(e) {
|
|
12
|
+
return e;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=listActionedSubjects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listActionedSubjects.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/listActionedSubjects.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAmB,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAyB,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAG5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,wCAAwC,CAAA;AA+BnD,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as ToolsOzoneInboxDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.inbox.listActionedSubjects'\n\nexport type QueryParams = {\n /** Account to preview. Defaults to the authenticated account; another account requires an active moderator, triage, or admin credential. */\n did?: string\n /** Filter subject activity. pending includes subjects whose latest appeal report is not closed; resolved includes subjects whose latest appeal report is closed. unread includes subjects whose public updatedAt is after the subjects section's seenAt watermark. */\n filter?: 'all' | 'pending' | 'resolved' | 'unread'\n sortField?: 'createdAt' | 'updatedAt'\n sortDirection?: 'asc' | 'desc'\n limit?: number\n /** An opaque cursor for pagination. */\n cursor?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n cursor?: string\n subjects: ToolsOzoneInboxDefs.SubjectView[]\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,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type HeadersMap } from '@atproto/xrpc';
|
|
5
|
+
import type * as ToolsOzoneInboxDefs from './defs.js';
|
|
6
|
+
export type QueryParams = {
|
|
7
|
+
section?: 'reports' | 'subjects' | 'accountStatus' | (string & {});
|
|
8
|
+
reasons?: 'reportResolved' | 'reportReopened' | 'actionTaken' | 'actionReversed' | 'appealResolved' | 'standingChanged' | (string & {})[];
|
|
9
|
+
unreadOnly?: boolean;
|
|
10
|
+
limit?: number;
|
|
11
|
+
cursor?: string;
|
|
12
|
+
/** Account to preview. Only Ozone staff can read another account; this does not change its read state. */
|
|
13
|
+
did?: string;
|
|
14
|
+
};
|
|
15
|
+
export type InputSchema = undefined;
|
|
16
|
+
export interface OutputSchema {
|
|
17
|
+
cursor?: string;
|
|
18
|
+
notifications: ToolsOzoneInboxDefs.Notification[];
|
|
19
|
+
}
|
|
20
|
+
export interface CallOptions {
|
|
21
|
+
signal?: AbortSignal;
|
|
22
|
+
headers?: HeadersMap;
|
|
23
|
+
}
|
|
24
|
+
export interface Response {
|
|
25
|
+
success: boolean;
|
|
26
|
+
headers: HeadersMap;
|
|
27
|
+
data: OutputSchema;
|
|
28
|
+
}
|
|
29
|
+
export declare function toKnownErr(e: any): any;
|
|
30
|
+
//# sourceMappingURL=listNotifications.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listNotifications.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/listNotifications.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAa,MAAM,eAAe,CAAA;AAS1D,OAAO,KAAK,KAAK,mBAAmB,MAAM,WAAW,CAAA;AAMrD,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,eAAe,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IAClE,OAAO,CAAC,EACJ,gBAAgB,GAChB,gBAAgB,GAChB,aAAa,GACb,gBAAgB,GAChB,gBAAgB,GAChB,iBAAiB,GACjB,CAAC,MAAM,GAAG,EAAE,CAAC,EAAE,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,0GAA0G;IAC1G,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,mBAAmB,CAAC,YAAY,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,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { XRPCError } from '@atproto/xrpc';
|
|
5
|
+
import { BlobRef } from '@atproto/lexicon';
|
|
6
|
+
import { CID } from 'multiformats/cid';
|
|
7
|
+
import { validate as _validate } from '../../../../lexicons.js';
|
|
8
|
+
import { is$typed as _is$typed, } from '../../../../util.js';
|
|
9
|
+
const is$typed = _is$typed, validate = _validate;
|
|
10
|
+
const id = 'tools.ozone.inbox.listNotifications';
|
|
11
|
+
export function toKnownErr(e) {
|
|
12
|
+
return e;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=listNotifications.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listNotifications.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/listNotifications.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAmB,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAyB,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAG5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,qCAAqC,CAAA;AAoChD,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as ToolsOzoneInboxDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.inbox.listNotifications'\n\nexport type QueryParams = {\n section?: 'reports' | 'subjects' | 'accountStatus' | (string & {})\n reasons?:\n | 'reportResolved'\n | 'reportReopened'\n | 'actionTaken'\n | 'actionReversed'\n | 'appealResolved'\n | 'standingChanged'\n | (string & {})[]\n unreadOnly?: boolean\n limit?: number\n cursor?: string\n /** Account to preview. Only Ozone staff can read another account; this does not change its read state. */\n did?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n cursor?: string\n notifications: ToolsOzoneInboxDefs.Notification[]\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,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type HeadersMap } from '@atproto/xrpc';
|
|
5
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
6
|
+
import { type $Typed } from '../../../../util.js';
|
|
7
|
+
import type * as ComAtprotoAdminDefs from '../../../com/atproto/admin/defs.js';
|
|
8
|
+
import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
|
|
9
|
+
import type * as ChatBskyConvoDefs from '../../../chat/bsky/convo/defs.js';
|
|
10
|
+
export type QueryParams = {
|
|
11
|
+
/** Account to preview. Defaults to the authenticated account; another account requires an active moderator, triage, or admin credential. */
|
|
12
|
+
did?: string;
|
|
13
|
+
/** Filter report activity. unread includes reports whose updatedAt is after the reports section's seenAt watermark. */
|
|
14
|
+
filter?: 'all' | 'pending' | 'resolved' | 'unread';
|
|
15
|
+
sortField?: 'createdAt' | 'updatedAt';
|
|
16
|
+
sortDirection?: 'asc' | 'desc';
|
|
17
|
+
limit?: number;
|
|
18
|
+
/** An opaque cursor for pagination. */
|
|
19
|
+
cursor?: string;
|
|
20
|
+
};
|
|
21
|
+
export type InputSchema = undefined;
|
|
22
|
+
export interface OutputSchema {
|
|
23
|
+
cursor?: string;
|
|
24
|
+
reports: ReportView[];
|
|
25
|
+
}
|
|
26
|
+
export interface CallOptions {
|
|
27
|
+
signal?: AbortSignal;
|
|
28
|
+
headers?: HeadersMap;
|
|
29
|
+
}
|
|
30
|
+
export interface Response {
|
|
31
|
+
success: boolean;
|
|
32
|
+
headers: HeadersMap;
|
|
33
|
+
data: OutputSchema;
|
|
34
|
+
}
|
|
35
|
+
export declare function toKnownErr(e: any): any;
|
|
36
|
+
export interface ReportView {
|
|
37
|
+
$type?: 'tools.ozone.inbox.listReports#reportView';
|
|
38
|
+
/** DID of the moderation service that received the report. */
|
|
39
|
+
src: string;
|
|
40
|
+
/** Report ID (report table ID), used by getReport and Ozone's report detail page. */
|
|
41
|
+
id: number;
|
|
42
|
+
isRead: boolean;
|
|
43
|
+
/** The exact fully-qualified reason NSID submitted with and stored on the report. */
|
|
44
|
+
reasonType: string;
|
|
45
|
+
reason?: string;
|
|
46
|
+
/** Public action associated with this report's transition to resolved. See the public action vocabulary table. */
|
|
47
|
+
lastActionTaken?: string;
|
|
48
|
+
scope?: 'network' | 'app' | 'labelOnly' | (string & {});
|
|
49
|
+
subject: $Typed<ComAtprotoAdminDefs.RepoRef> | $Typed<ComAtprotoRepoStrongRef.Main> | $Typed<ChatBskyConvoDefs.MessageRef> | $Typed<ChatBskyConvoDefs.ConvoRef> | {
|
|
50
|
+
$type: string;
|
|
51
|
+
};
|
|
52
|
+
status: 'pending' | 'resolved' | (string & {});
|
|
53
|
+
createdAt: string;
|
|
54
|
+
updatedAt: string;
|
|
55
|
+
}
|
|
56
|
+
export declare function isReportView<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.inbox.listReports", "reportView">;
|
|
57
|
+
export declare function validateReportView<V>(v: V): ValidationResult<ReportView & V>;
|
|
58
|
+
//# sourceMappingURL=listReports.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listReports.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/listReports.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAa,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,KAAK,mBAAmB,MAAM,oCAAoC,CAAA;AAC9E,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AACtF,OAAO,KAAK,KAAK,iBAAiB,MAAM,kCAAkC,CAAA;AAM1E,MAAM,MAAM,WAAW,GAAG;IACxB,4IAA4I;IAC5I,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,uHAAuH;IACvH,MAAM,CAAC,EAAE,KAAK,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,CAAA;IAClD,SAAS,CAAC,EAAE,WAAW,GAAG,WAAW,CAAA;IACrC,aAAa,CAAC,EAAE,KAAK,GAAG,MAAM,CAAA;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,uCAAuC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,UAAU,EAAE,CAAA;CACtB;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;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,0CAA0C,CAAA;IAClD,8DAA8D;IAC9D,GAAG,EAAE,MAAM,CAAA;IACX,qFAAqF;IACrF,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,OAAO,CAAA;IACf,qFAAqF;IACrF,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,kHAAkH;IAClH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,KAAK,CAAC,EAAE,SAAS,GAAG,KAAK,GAAG,WAAW,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACvD,OAAO,EACH,MAAM,CAAC,mBAAmB,CAAC,OAAO,CAAC,GACnC,MAAM,CAAC,uBAAuB,CAAC,IAAI,CAAC,GACpC,MAAM,CAAC,iBAAiB,CAAC,UAAU,CAAC,GACpC,MAAM,CAAC,iBAAiB,CAAC,QAAQ,CAAC,GAClC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACrB,MAAM,EAAE,SAAS,GAAG,UAAU,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IAC9C,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;CAClB;AAID,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,qGAEnC;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,oCAEzC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { XRPCError } from '@atproto/xrpc';
|
|
5
|
+
import { BlobRef } from '@atproto/lexicon';
|
|
6
|
+
import { CID } from 'multiformats/cid';
|
|
7
|
+
import { validate as _validate } from '../../../../lexicons.js';
|
|
8
|
+
import { is$typed as _is$typed, } from '../../../../util.js';
|
|
9
|
+
const is$typed = _is$typed, validate = _validate;
|
|
10
|
+
const id = 'tools.ozone.inbox.listReports';
|
|
11
|
+
export function toKnownErr(e) {
|
|
12
|
+
return e;
|
|
13
|
+
}
|
|
14
|
+
const hashReportView = 'reportView';
|
|
15
|
+
export function isReportView(v) {
|
|
16
|
+
return is$typed(v, id, hashReportView);
|
|
17
|
+
}
|
|
18
|
+
export function validateReportView(v) {
|
|
19
|
+
return validate(v, id, hashReportView);
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=listReports.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listReports.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/listReports.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAmB,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAyB,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAK5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,+BAA+B,CAAA;AA+B1C,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC;AA0BD,MAAM,cAAc,GAAG,YAAY,CAAA;AAEnC,MAAM,UAAU,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,cAAc,CAAC,CAAA;AACxC,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAI,CAAI;IACxC,OAAO,QAAQ,CAAiB,CAAC,EAAE,EAAE,EAAE,cAAc,CAAC,CAAA;AACxD,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as ComAtprotoAdminDefs from '../../../com/atproto/admin/defs.js'\nimport type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\nimport type * as ChatBskyConvoDefs from '../../../chat/bsky/convo/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.inbox.listReports'\n\nexport type QueryParams = {\n /** Account to preview. Defaults to the authenticated account; another account requires an active moderator, triage, or admin credential. */\n did?: string\n /** Filter report activity. unread includes reports whose updatedAt is after the reports section's seenAt watermark. */\n filter?: 'all' | 'pending' | 'resolved' | 'unread'\n sortField?: 'createdAt' | 'updatedAt'\n sortDirection?: 'asc' | 'desc'\n limit?: number\n /** An opaque cursor for pagination. */\n cursor?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n cursor?: string\n reports: ReportView[]\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\nexport interface ReportView {\n $type?: 'tools.ozone.inbox.listReports#reportView'\n /** DID of the moderation service that received the report. */\n src: string\n /** Report ID (report table ID), used by getReport and Ozone's report detail page. */\n id: number\n isRead: boolean\n /** The exact fully-qualified reason NSID submitted with and stored on the report. */\n reasonType: string\n reason?: string\n /** Public action associated with this report's transition to resolved. See the public action vocabulary table. */\n lastActionTaken?: string\n scope?: 'network' | 'app' | 'labelOnly' | (string & {})\n subject:\n | $Typed<ComAtprotoAdminDefs.RepoRef>\n | $Typed<ComAtprotoRepoStrongRef.Main>\n | $Typed<ChatBskyConvoDefs.MessageRef>\n | $Typed<ChatBskyConvoDefs.ConvoRef>\n | { $type: string }\n status: 'pending' | 'resolved' | (string & {})\n createdAt: string\n updatedAt: string\n}\n\nconst hashReportView = 'reportView'\n\nexport function isReportView<V>(v: V) {\n return is$typed(v, id, hashReportView)\n}\n\nexport function validateReportView<V>(v: V) {\n return validate<ReportView & V>(v, id, hashReportView)\n}\n"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type HeadersMap } from '@atproto/xrpc';
|
|
5
|
+
import type * as ToolsOzoneInboxDefs from './defs.js';
|
|
6
|
+
export type QueryParams = {};
|
|
7
|
+
export interface InputSchema {
|
|
8
|
+
push: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface OutputSchema {
|
|
11
|
+
preferences: ToolsOzoneInboxDefs.NotificationPreferences;
|
|
12
|
+
}
|
|
13
|
+
export interface CallOptions {
|
|
14
|
+
signal?: AbortSignal;
|
|
15
|
+
headers?: HeadersMap;
|
|
16
|
+
qp?: QueryParams;
|
|
17
|
+
encoding?: 'application/json';
|
|
18
|
+
}
|
|
19
|
+
export interface Response {
|
|
20
|
+
success: boolean;
|
|
21
|
+
headers: HeadersMap;
|
|
22
|
+
data: OutputSchema;
|
|
23
|
+
}
|
|
24
|
+
export declare function toKnownErr(e: any): any;
|
|
25
|
+
//# sourceMappingURL=putNotificationPreferences.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"putNotificationPreferences.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/putNotificationPreferences.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAa,MAAM,eAAe,CAAA;AAS1D,OAAO,KAAK,KAAK,mBAAmB,MAAM,WAAW,CAAA;AAMrD,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,OAAO,CAAA;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,mBAAmB,CAAC,uBAAuB,CAAA;CACzD;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,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { XRPCError } from '@atproto/xrpc';
|
|
5
|
+
import { BlobRef } from '@atproto/lexicon';
|
|
6
|
+
import { CID } from 'multiformats/cid';
|
|
7
|
+
import { validate as _validate } from '../../../../lexicons.js';
|
|
8
|
+
import { is$typed as _is$typed, } from '../../../../util.js';
|
|
9
|
+
const is$typed = _is$typed, validate = _validate;
|
|
10
|
+
const id = 'tools.ozone.inbox.putNotificationPreferences';
|
|
11
|
+
export function toKnownErr(e) {
|
|
12
|
+
return e;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=putNotificationPreferences.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"putNotificationPreferences.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/putNotificationPreferences.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAmB,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAyB,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAG5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,8CAA8C,CAAA;AAyBzD,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as ToolsOzoneInboxDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.inbox.putNotificationPreferences'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n push: boolean\n}\n\nexport interface OutputSchema {\n preferences: ToolsOzoneInboxDefs.NotificationPreferences\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,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type HeadersMap } from '@atproto/xrpc';
|
|
5
|
+
export type QueryParams = {};
|
|
6
|
+
export interface InputSchema {
|
|
7
|
+
sections: ('reports' | 'subjects' | 'accountStatus' | (string & {}))[];
|
|
8
|
+
/** Mark each requested section read up to this instant. Defaults to server time and is clamped to server time when in the future. Newer existing watermarks are preserved independently for each section. */
|
|
9
|
+
seenAt?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface OutputSchema {
|
|
12
|
+
/** The earliest resulting watermark across the requested sections, in UTC. Every requested section is read through this instant; individual sections may already have newer watermarks. */
|
|
13
|
+
seenAt: string;
|
|
14
|
+
}
|
|
15
|
+
export interface CallOptions {
|
|
16
|
+
signal?: AbortSignal;
|
|
17
|
+
headers?: HeadersMap;
|
|
18
|
+
qp?: QueryParams;
|
|
19
|
+
encoding?: 'application/json';
|
|
20
|
+
}
|
|
21
|
+
export interface Response {
|
|
22
|
+
success: boolean;
|
|
23
|
+
headers: HeadersMap;
|
|
24
|
+
data: OutputSchema;
|
|
25
|
+
}
|
|
26
|
+
export declare function toKnownErr(e: any): any;
|
|
27
|
+
//# sourceMappingURL=updateSeen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateSeen.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/updateSeen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAa,MAAM,eAAe,CAAA;AAc1D,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,CAAC,SAAS,GAAG,UAAU,GAAG,eAAe,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,EAAE,CAAA;IACtE,6MAA6M;IAC7M,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,2LAA2L;IAC3L,MAAM,EAAE,MAAM,CAAA;CACf;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,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { XRPCError } from '@atproto/xrpc';
|
|
5
|
+
import { BlobRef } from '@atproto/lexicon';
|
|
6
|
+
import { CID } from 'multiformats/cid';
|
|
7
|
+
import { validate as _validate } from '../../../../lexicons.js';
|
|
8
|
+
import { is$typed as _is$typed, } from '../../../../util.js';
|
|
9
|
+
const is$typed = _is$typed, validate = _validate;
|
|
10
|
+
const id = 'tools.ozone.inbox.updateSeen';
|
|
11
|
+
export function toKnownErr(e) {
|
|
12
|
+
return e;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=updateSeen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateSeen.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/updateSeen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAmB,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAyB,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAE5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,8BAA8B,CAAA;AA4BzC,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.inbox.updateSeen'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n sections: ('reports' | 'subjects' | 'accountStatus' | (string & {}))[]\n /** Mark each requested section read up to this instant. Defaults to server time and is clamped to server time when in the future. Newer existing watermarks are preserved independently for each section. */\n seenAt?: string\n}\n\nexport interface OutputSchema {\n /** The earliest resulting watermark across the requested sections, in UTC. Every requested section is read through this instant; individual sections may already have newer watermarks. */\n seenAt: string\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n qp?: QueryParams\n encoding?: 'application/json'\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n return e\n}\n"]}
|
|
@@ -216,6 +216,12 @@ export declare function validateModEventComment<V>(v: V): ValidationResult<ModEv
|
|
|
216
216
|
/** Report a subject */
|
|
217
217
|
export interface ModEventReport {
|
|
218
218
|
$type?: 'tools.ozone.moderation.defs#modEventReport';
|
|
219
|
+
/** Moderator who submitted this appeal on behalf of the affected account. Returned by moderator event APIs. */
|
|
220
|
+
appealSubmittedBy?: string;
|
|
221
|
+
/** Action reference type recorded when this appeal was submitted. */
|
|
222
|
+
appealActionType?: string;
|
|
223
|
+
appealActionId?: number;
|
|
224
|
+
appealLabel?: string;
|
|
219
225
|
comment?: string;
|
|
220
226
|
/** Set to true if the reporter was muted from reporting at the time of the event. These reports won't impact the reviewState of the subject. */
|
|
221
227
|
isReporterMuted?: boolean;
|