@atproto/api 0.32.2 → 0.32.4
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 +22 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +9 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +300 -0
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +164 -0
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/tools/ozone/inbox/getReport.d.ts +20 -0
- package/dist/client/types/tools/ozone/inbox/getReport.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/inbox/getReport.js +14 -0
- package/dist/client/types/tools/ozone/inbox/getReport.js.map +1 -1
- package/dist/client/types/tools/ozone/report/getStatGroupDetails.d.ts +59 -0
- package/dist/client/types/tools/ozone/report/getStatGroupDetails.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/getStatGroupDetails.js +37 -0
- package/dist/client/types/tools/ozone/report/getStatGroupDetails.js.map +1 -0
- package/package.json +7 -7
|
@@ -47,12 +47,32 @@ export interface ReportView {
|
|
|
47
47
|
record?: {
|
|
48
48
|
[_ in string]: unknown;
|
|
49
49
|
};
|
|
50
|
+
accountStatus?: AccountStatus;
|
|
51
|
+
subjectStatus?: RecordStatus;
|
|
50
52
|
status: 'pending' | 'resolved' | (string & {});
|
|
51
53
|
createdAt: string;
|
|
52
54
|
updatedAt: string;
|
|
53
55
|
}
|
|
54
56
|
export declare function isReportView<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.inbox.getReport", "reportView">;
|
|
55
57
|
export declare function validateReportView<V>(v: V): ValidationResult<ReportView & V>;
|
|
58
|
+
export interface AccountStatus {
|
|
59
|
+
$type?: 'tools.ozone.inbox.getReport#accountStatus';
|
|
60
|
+
/** Current enforcement by this moderation service. */
|
|
61
|
+
enforcement: 'none' | 'suspended' | 'takendown' | (string & {});
|
|
62
|
+
/** Last known account hosting state, omitted when unknown. */
|
|
63
|
+
hosting?: 'active' | 'deleted' | 'deactivated' | 'suspended' | 'takendown' | (string & {});
|
|
64
|
+
}
|
|
65
|
+
export declare function isAccountStatus<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.inbox.getReport", "accountStatus">;
|
|
66
|
+
export declare function validateAccountStatus<V>(v: V): ValidationResult<AccountStatus & V>;
|
|
67
|
+
export interface RecordStatus {
|
|
68
|
+
$type?: 'tools.ozone.inbox.getReport#recordStatus';
|
|
69
|
+
/** Whether this moderation service has taken down the record. */
|
|
70
|
+
takendown: boolean;
|
|
71
|
+
/** Whether the record has been deleted by its repository, omitted when unknown. */
|
|
72
|
+
deleted?: boolean;
|
|
73
|
+
}
|
|
74
|
+
export declare function isRecordStatus<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.inbox.getReport", "recordStatus">;
|
|
75
|
+
export declare function validateRecordStatus<V>(v: V): ValidationResult<RecordStatus & V>;
|
|
56
76
|
export interface ResolutionView {
|
|
57
77
|
$type?: 'tools.ozone.inbox.getReport#resolutionView';
|
|
58
78
|
outcome: 'actionTaken' | 'noAction' | 'other' | (string & {});
|
|
@@ -1 +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;A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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"}
|
|
@@ -27,6 +27,20 @@ export function isReportView(v) {
|
|
|
27
27
|
export function validateReportView(v) {
|
|
28
28
|
return validate(v, id, hashReportView);
|
|
29
29
|
}
|
|
30
|
+
const hashAccountStatus = 'accountStatus';
|
|
31
|
+
export function isAccountStatus(v) {
|
|
32
|
+
return is$typed(v, id, hashAccountStatus);
|
|
33
|
+
}
|
|
34
|
+
export function validateAccountStatus(v) {
|
|
35
|
+
return validate(v, id, hashAccountStatus);
|
|
36
|
+
}
|
|
37
|
+
const hashRecordStatus = 'recordStatus';
|
|
38
|
+
export function isRecordStatus(v) {
|
|
39
|
+
return is$typed(v, id, hashRecordStatus);
|
|
40
|
+
}
|
|
41
|
+
export function validateRecordStatus(v) {
|
|
42
|
+
return validate(v, id, hashRecordStatus);
|
|
43
|
+
}
|
|
30
44
|
const hashResolutionView = 'resolutionView';
|
|
31
45
|
export function isResolutionView(v) {
|
|
32
46
|
return is$typed(v, id, hashResolutionView);
|
|
@@ -1 +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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M,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 accountStatus?: AccountStatus\n subjectStatus?: RecordStatus\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 AccountStatus {\n $type?: 'tools.ozone.inbox.getReport#accountStatus'\n /** Current enforcement by this moderation service. */\n enforcement: 'none' | 'suspended' | 'takendown' | (string & {})\n /** Last known account hosting state, omitted when unknown. */\n hosting?:\n | 'active'\n | 'deleted'\n | 'deactivated'\n | 'suspended'\n | 'takendown'\n | (string & {})\n}\n\nconst hashAccountStatus = 'accountStatus'\n\nexport function isAccountStatus<V>(v: V) {\n return is$typed(v, id, hashAccountStatus)\n}\n\nexport function validateAccountStatus<V>(v: V) {\n return validate<AccountStatus & V>(v, id, hashAccountStatus)\n}\n\nexport interface RecordStatus {\n $type?: 'tools.ozone.inbox.getReport#recordStatus'\n /** Whether this moderation service has taken down the record. */\n takendown: boolean\n /** Whether the record has been deleted by its repository, omitted when unknown. */\n deleted?: boolean\n}\n\nconst hashRecordStatus = 'recordStatus'\n\nexport function isRecordStatus<V>(v: V) {\n return is$typed(v, id, hashRecordStatus)\n}\n\nexport function validateRecordStatus<V>(v: V) {\n return validate<RecordStatus & V>(v, id, hashRecordStatus)\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,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type HeadersMap, XRPCError } from '@atproto/xrpc';
|
|
5
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
6
|
+
export type QueryParams = {
|
|
7
|
+
/** Queue stat group. Use -1 for unqueued reports; otherwise use a positive queue ID. Requires queue access. */
|
|
8
|
+
queueId?: number;
|
|
9
|
+
/** Moderator stat group, based on current report assignment. Requires administrator access. */
|
|
10
|
+
moderatorDid?: string;
|
|
11
|
+
/** Report-type stat group. Counts only the specified reasons. */
|
|
12
|
+
reportTypes?: string[];
|
|
13
|
+
/** First UTC calendar day to include, inclusive. Defaults to today. The range must not exceed 120 calendar days. */
|
|
14
|
+
startDate?: string;
|
|
15
|
+
/** Last UTC calendar day to include, inclusive. Defaults to today. */
|
|
16
|
+
endDate?: string;
|
|
17
|
+
};
|
|
18
|
+
export type InputSchema = undefined;
|
|
19
|
+
export interface OutputSchema {
|
|
20
|
+
/** When the live query started. */
|
|
21
|
+
computedAt: string;
|
|
22
|
+
/** First included UTC calendar day, at midnight. */
|
|
23
|
+
startDate: string;
|
|
24
|
+
/** Last included UTC calendar day, at midnight. */
|
|
25
|
+
endDate: string;
|
|
26
|
+
reportTypeBreakdown: ReportTypeBreakdown;
|
|
27
|
+
}
|
|
28
|
+
export interface CallOptions {
|
|
29
|
+
signal?: AbortSignal;
|
|
30
|
+
headers?: HeadersMap;
|
|
31
|
+
}
|
|
32
|
+
export interface Response {
|
|
33
|
+
success: boolean;
|
|
34
|
+
headers: HeadersMap;
|
|
35
|
+
data: OutputSchema;
|
|
36
|
+
}
|
|
37
|
+
export declare class QueueNotFoundError extends XRPCError {
|
|
38
|
+
constructor(src: XRPCError);
|
|
39
|
+
}
|
|
40
|
+
export declare function toKnownErr(e: any): any;
|
|
41
|
+
export interface ReportTypeStats {
|
|
42
|
+
$type?: 'tools.ozone.report.getStatGroupDetails#reportTypeStats';
|
|
43
|
+
/** Fully qualified report reason. */
|
|
44
|
+
reportType: string;
|
|
45
|
+
/** Unmuted reports received during the requested UTC calendar days. */
|
|
46
|
+
inboundCount: number;
|
|
47
|
+
}
|
|
48
|
+
export declare function isReportTypeStats<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.report.getStatGroupDetails", "reportTypeStats">;
|
|
49
|
+
export declare function validateReportTypeStats<V>(v: V): ValidationResult<ReportTypeStats & V>;
|
|
50
|
+
/** Unmuted inbound reports by actual reason, across all statuses, within the selected stat group and UTC date range. */
|
|
51
|
+
export interface ReportTypeBreakdown {
|
|
52
|
+
$type?: 'tools.ozone.report.getStatGroupDetails#reportTypeBreakdown';
|
|
53
|
+
/** Total unmuted inbound reports in this breakdown. */
|
|
54
|
+
totalCount: number;
|
|
55
|
+
stats: ReportTypeStats[];
|
|
56
|
+
}
|
|
57
|
+
export declare function isReportTypeBreakdown<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.report.getStatGroupDetails", "reportTypeBreakdown">;
|
|
58
|
+
export declare function validateReportTypeBreakdown<V>(v: V): ValidationResult<ReportTypeBreakdown & V>;
|
|
59
|
+
//# sourceMappingURL=getStatGroupDetails.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getStatGroupDetails.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/report/getStatGroupDetails.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;AAajE,MAAM,MAAM,WAAW,GAAG;IACxB,+GAA+G;IAC/G,OAAO,CAAC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AAM,CAAA;IAClB,KAAK,EAAE,eAAe,EAAE,CAAA;CACzB;AAID,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,uHAE5C;AAED,wBAAgB,2BAA2B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,6CAElD"}
|
|
@@ -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.report.getStatGroupDetails';
|
|
11
|
+
export class QueueNotFoundError 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 === 'QueueNotFound')
|
|
19
|
+
return new QueueNotFoundError(e);
|
|
20
|
+
}
|
|
21
|
+
return e;
|
|
22
|
+
}
|
|
23
|
+
const hashReportTypeStats = 'reportTypeStats';
|
|
24
|
+
export function isReportTypeStats(v) {
|
|
25
|
+
return is$typed(v, id, hashReportTypeStats);
|
|
26
|
+
}
|
|
27
|
+
export function validateReportTypeStats(v) {
|
|
28
|
+
return validate(v, id, hashReportTypeStats);
|
|
29
|
+
}
|
|
30
|
+
const hashReportTypeBreakdown = 'reportTypeBreakdown';
|
|
31
|
+
export function isReportTypeBreakdown(v) {
|
|
32
|
+
return is$typed(v, id, hashReportTypeBreakdown);
|
|
33
|
+
}
|
|
34
|
+
export function validateReportTypeBreakdown(v) {
|
|
35
|
+
return validate(v, id, hashReportTypeBreakdown);
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=getStatGroupDetails.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getStatGroupDetails.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/report/getStatGroupDetails.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,wCAAwC,CAAA;AAqCnD,MAAM,OAAO,kBAAmB,SAAQ,SAAS;IAC/C,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;IACxE,CAAC;CACF;AAED,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,SAAS,EAAE,CAAC;QAC3B,IAAI,CAAC,CAAC,KAAK,KAAK,eAAe;YAAE,OAAO,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAAA;IACnE,CAAC;IAED,OAAO,CAAC,CAAA;AACV,CAAC;AAUD,MAAM,mBAAmB,GAAG,iBAAiB,CAAA;AAE7C,MAAM,UAAU,iBAAiB,CAAI,CAAI;IACvC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,mBAAmB,CAAC,CAAA;AAC7C,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAI,CAAI;IAC7C,OAAO,QAAQ,CAAsB,CAAC,EAAE,EAAE,EAAE,mBAAmB,CAAC,CAAA;AAClE,CAAC;AAUD,MAAM,uBAAuB,GAAG,qBAAqB,CAAA;AAErD,MAAM,UAAU,qBAAqB,CAAI,CAAI;IAC3C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,uBAAuB,CAAC,CAAA;AACjD,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAI,CAAI;IACjD,OAAO,QAAQ,CAA0B,CAAC,EAAE,EAAE,EAAE,uBAAuB,CAAC,CAAA;AAC1E,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.report.getStatGroupDetails'\n\nexport type QueryParams = {\n /** Queue stat group. Use -1 for unqueued reports; otherwise use a positive queue ID. Requires queue access. */\n queueId?: number\n /** Moderator stat group, based on current report assignment. Requires administrator access. */\n moderatorDid?: string\n /** Report-type stat group. Counts only the specified reasons. */\n reportTypes?: string[]\n /** First UTC calendar day to include, inclusive. Defaults to today. The range must not exceed 120 calendar days. */\n startDate?: string\n /** Last UTC calendar day to include, inclusive. Defaults to today. */\n endDate?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n /** When the live query started. */\n computedAt: string\n /** First included UTC calendar day, at midnight. */\n startDate: string\n /** Last included UTC calendar day, at midnight. */\n endDate: string\n reportTypeBreakdown: ReportTypeBreakdown\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 QueueNotFoundError 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 === 'QueueNotFound') return new QueueNotFoundError(e)\n }\n\n return e\n}\n\nexport interface ReportTypeStats {\n $type?: 'tools.ozone.report.getStatGroupDetails#reportTypeStats'\n /** Fully qualified report reason. */\n reportType: string\n /** Unmuted reports received during the requested UTC calendar days. */\n inboundCount: number\n}\n\nconst hashReportTypeStats = 'reportTypeStats'\n\nexport function isReportTypeStats<V>(v: V) {\n return is$typed(v, id, hashReportTypeStats)\n}\n\nexport function validateReportTypeStats<V>(v: V) {\n return validate<ReportTypeStats & V>(v, id, hashReportTypeStats)\n}\n\n/** Unmuted inbound reports by actual reason, across all statuses, within the selected stat group and UTC date range. */\nexport interface ReportTypeBreakdown {\n $type?: 'tools.ozone.report.getStatGroupDetails#reportTypeBreakdown'\n /** Total unmuted inbound reports in this breakdown. */\n totalCount: number\n stats: ReportTypeStats[]\n}\n\nconst hashReportTypeBreakdown = 'reportTypeBreakdown'\n\nexport function isReportTypeBreakdown<V>(v: V) {\n return is$typed(v, id, hashReportTypeBreakdown)\n}\n\nexport function validateReportTypeBreakdown<V>(v: V) {\n return validate<ReportTypeBreakdown & V>(v, id, hashReportTypeBreakdown)\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/api",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Client library for atproto and Bluesky",
|
|
6
6
|
"keywords": [
|
|
@@ -31,18 +31,18 @@
|
|
|
31
31
|
"node": ">=22"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@atproto/common-web": "^0.5.
|
|
35
|
-
"@atproto/lexicon": "^0.7.
|
|
36
|
-
"@atproto/syntax": "^0.7.
|
|
37
|
-
"@atproto/xrpc": "^0.8.
|
|
34
|
+
"@atproto/common-web": "^0.5.19",
|
|
35
|
+
"@atproto/lexicon": "^0.7.21",
|
|
36
|
+
"@atproto/syntax": "^0.7.9",
|
|
37
|
+
"@atproto/xrpc": "^0.8.20",
|
|
38
38
|
"await-lock": "^3.0.0",
|
|
39
39
|
"multiformats": "^13.0.0",
|
|
40
40
|
"tlds": "^1.234.0",
|
|
41
41
|
"zod": "^3.23.8"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@atproto/lex-cli": "^0.10.
|
|
45
|
-
"@atproto/lex-installer": "^0.2.
|
|
44
|
+
"@atproto/lex-cli": "^0.10.20",
|
|
45
|
+
"@atproto/lex-installer": "^0.2.11",
|
|
46
46
|
"@jest/globals": "^28.1.3",
|
|
47
47
|
"http-terminator": "^3.2.0",
|
|
48
48
|
"jest": "^30.5.2",
|