@atproto/api 0.32.3 → 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 +11 -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 +220 -0
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +118 -0
- package/dist/client/lexicons.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
|
@@ -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,EAAE,MAAM,CAAA;IAChB,+FAA+F;IAC/F,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,iEAAiE;IACjE,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,oHAAoH;IACpH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,sEAAsE;IACtE,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,mCAAmC;IACnC,UAAU,EAAE,MAAM,CAAA;IAClB,oDAAoD;IACpD,SAAS,EAAE,MAAM,CAAA;IACjB,mDAAmD;IACnD,OAAO,EAAE,MAAM,CAAA;IACf,mBAAmB,EAAE,mBAAmB,CAAA;CACzC;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,kBAAmB,SAAQ,SAAS;IAC/C,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAMhC;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,wDAAwD,CAAA;IAChE,qCAAqC;IACrC,UAAU,EAAE,MAAM,CAAA;IAClB,uEAAuE;IACvE,YAAY,EAAE,MAAM,CAAA;CACrB;AAID,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,mHAExC;AAED,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,yCAE9C;AAED,wHAAwH;AACxH,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,4DAA4D,CAAA;IACpE,uDAAuD;IACvD,UAAU,EAAE,MAAM,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",
|