@atproto/api 0.30.0 → 0.31.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 +47 -0
- package/dist/client/index.d.ts +34 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +45 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +666 -196
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +346 -98
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/unspecced/getAtmosphereApps.d.ts +40 -0
- package/dist/client/types/app/bsky/unspecced/getAtmosphereApps.d.ts.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getAtmosphereApps.js +21 -0
- package/dist/client/types/app/bsky/unspecced/getAtmosphereApps.js.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreTab.d.ts +4 -5
- package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreTab.d.ts.map +1 -1
- package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreTab.js.map +1 -1
- package/dist/client/types/app/bsky/unspecced/getAtmosphereTimeline.d.ts +81 -0
- package/dist/client/types/app/bsky/unspecced/getAtmosphereTimeline.d.ts.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getAtmosphereTimeline.js +49 -0
- package/dist/client/types/app/bsky/unspecced/getAtmosphereTimeline.js.map +1 -0
- package/dist/client/types/com/atproto/label/record.d.ts +22 -0
- package/dist/client/types/com/atproto/label/record.d.ts.map +1 -0
- package/dist/client/types/com/atproto/label/record.js +18 -0
- package/dist/client/types/com/atproto/label/record.js.map +1 -0
- package/dist/client/types/tools/ozone/inbox/defs.d.ts +12 -0
- package/dist/client/types/tools/ozone/inbox/defs.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/inbox/defs.js +7 -0
- package/dist/client/types/tools/ozone/inbox/defs.js.map +1 -1
- package/dist/client/types/tools/ozone/inbox/getAccountStatus.d.ts +4 -0
- package/dist/client/types/tools/ozone/inbox/getAccountStatus.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/inbox/getAccountStatus.js.map +1 -1
- package/dist/client/types/tools/ozone/moderation/defs.d.ts +0 -40
- package/dist/client/types/tools/ozone/moderation/defs.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/moderation/defs.js +0 -14
- package/dist/client/types/tools/ozone/moderation/defs.js.map +1 -1
- package/dist/client/types/tools/ozone/moderation/emitEvent.d.ts +2 -0
- package/dist/client/types/tools/ozone/moderation/emitEvent.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/moderation/emitEvent.js.map +1 -1
- package/dist/client/types/tools/ozone/moderation/queryStatuses.d.ts +2 -7
- package/dist/client/types/tools/ozone/moderation/queryStatuses.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/moderation/queryStatuses.js.map +1 -1
- package/dist/client/types/tools/ozone/report/closeReports.d.ts +2 -0
- package/dist/client/types/tools/ozone/report/closeReports.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/report/closeReports.js.map +1 -1
- package/package.json +9 -9
|
@@ -0,0 +1,40 @@
|
|
|
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 * as AppBskyActorDefs from '../actor/defs.js';
|
|
7
|
+
export type QueryParams = {
|
|
8
|
+
/** Only return apps with this category (exact match). Omit to return all apps. */
|
|
9
|
+
category?: string;
|
|
10
|
+
};
|
|
11
|
+
export type InputSchema = undefined;
|
|
12
|
+
export interface OutputSchema {
|
|
13
|
+
apps: AppCard[];
|
|
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 AppCard {
|
|
26
|
+
$type?: 'app.bsky.unspecced.getAtmosphereApps#appCard';
|
|
27
|
+
id?: string;
|
|
28
|
+
title?: string;
|
|
29
|
+
description?: string;
|
|
30
|
+
/** The app's logo, using its account avatar when available. */
|
|
31
|
+
logo?: string;
|
|
32
|
+
/** The app's banner, using its account banner when available. */
|
|
33
|
+
banner?: string;
|
|
34
|
+
url?: string;
|
|
35
|
+
category?: string;
|
|
36
|
+
profile?: AppBskyActorDefs.ProfileViewDetailed;
|
|
37
|
+
}
|
|
38
|
+
export declare function isAppCard<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.unspecced.getAtmosphereApps", "appCard">;
|
|
39
|
+
export declare function validateAppCard<V>(v: V): ValidationResult<AppCard & V>;
|
|
40
|
+
//# sourceMappingURL=getAtmosphereApps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAtmosphereApps.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getAtmosphereApps.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAa,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,gBAAgB,MAAM,kBAAkB,CAAA;AAMzD,MAAM,MAAM,WAAW,GAAG;IACxB,kFAAkF;IAClF,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,OAAO,EAAE,CAAA;CAChB;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,OAAO;IACtB,KAAK,CAAC,EAAE,8CAA8C,CAAA;IACtD,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,+DAA+D;IAC/D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,iEAAiE;IACjE,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,gBAAgB,CAAC,mBAAmB,CAAA;CAC/C;AAID,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,yGAEhC;AAED,wBAAgB,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,iCAEtC"}
|
|
@@ -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 = 'app.bsky.unspecced.getAtmosphereApps';
|
|
11
|
+
export function toKnownErr(e) {
|
|
12
|
+
return e;
|
|
13
|
+
}
|
|
14
|
+
const hashAppCard = 'appCard';
|
|
15
|
+
export function isAppCard(v) {
|
|
16
|
+
return is$typed(v, id, hashAppCard);
|
|
17
|
+
}
|
|
18
|
+
export function validateAppCard(v) {
|
|
19
|
+
return validate(v, id, hashAppCard);
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=getAtmosphereApps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAtmosphereApps.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getAtmosphereApps.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,sCAAsC,CAAA;AAuBjD,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC;AAgBD,MAAM,WAAW,GAAG,SAAS,CAAA;AAE7B,MAAM,UAAU,SAAS,CAAI,CAAI;IAC/B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,WAAW,CAAC,CAAA;AACrC,CAAC;AAED,MAAM,UAAU,eAAe,CAAI,CAAI;IACrC,OAAO,QAAQ,CAAc,CAAC,EAAE,EAAE,EAAE,WAAW,CAAC,CAAA;AAClD,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 AppBskyActorDefs from '../actor/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.unspecced.getAtmosphereApps'\n\nexport type QueryParams = {\n /** Only return apps with this category (exact match). Omit to return all apps. */\n category?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n apps: AppCard[]\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 AppCard {\n $type?: 'app.bsky.unspecced.getAtmosphereApps#appCard'\n id?: string\n title?: string\n description?: string\n /** The app's logo, using its account avatar when available. */\n logo?: string\n /** The app's banner, using its account banner when available. */\n banner?: string\n url?: string\n category?: string\n profile?: AppBskyActorDefs.ProfileViewDetailed\n}\n\nconst hashAppCard = 'appCard'\n\nexport function isAppCard<V>(v: V) {\n return is$typed(v, id, hashAppCard)\n}\n\nexport function validateAppCard<V>(v: V) {\n return validate<AppCard & V>(v, id, hashAppCard)\n}\n"]}
|
|
@@ -3,15 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { type HeadersMap } from '@atproto/xrpc';
|
|
5
5
|
import { type ValidationResult } from '@atproto/lexicon';
|
|
6
|
+
import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
|
|
6
7
|
import type * as AppBskyEmbedExternal from '../embed/external.js';
|
|
7
8
|
import type * as AppBskyActorDefs from '../actor/defs.js';
|
|
8
9
|
export type QueryParams = {
|
|
9
|
-
/** Preferred languages for article recommendations when algorithmic recommendations are enabled. Ignored otherwise. */
|
|
10
|
+
/** Preferred languages for article and photo gallery recommendations when their algorithmic recommendations are enabled. Ignored otherwise. */
|
|
10
11
|
langs?: string[];
|
|
11
|
-
/** The ISO 3166-1 alpha-2 country code used to select curated content. */
|
|
12
|
-
countryCode?: string;
|
|
13
|
-
/** The ISO 3166-2 region code used to select curated content. */
|
|
14
|
-
regionCode?: string;
|
|
15
12
|
};
|
|
16
13
|
export type InputSchema = undefined;
|
|
17
14
|
export interface OutputSchema {
|
|
@@ -68,6 +65,7 @@ export interface ArticleItem {
|
|
|
68
65
|
$type?: 'app.bsky.unspecced.getAtmosphereExploreTab#articleItem';
|
|
69
66
|
/** Deprecated. Retained for compatibility; always false. */
|
|
70
67
|
featured: boolean;
|
|
68
|
+
bskyPostRef?: ComAtprotoRepoStrongRef.Main;
|
|
71
69
|
view: AppBskyEmbedExternal.ViewArticle;
|
|
72
70
|
}
|
|
73
71
|
export declare function isArticleItem<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.unspecced.getAtmosphereExploreTab", "articleItem">;
|
|
@@ -92,6 +90,7 @@ export interface LivestreamItem {
|
|
|
92
90
|
$type?: 'app.bsky.unspecced.getAtmosphereExploreTab#livestreamItem';
|
|
93
91
|
/** Deprecated. Retained for compatibility; always false. */
|
|
94
92
|
featured: boolean;
|
|
93
|
+
bskyPostRef?: ComAtprotoRepoStrongRef.Main;
|
|
95
94
|
view: AppBskyEmbedExternal.ViewLivestream;
|
|
96
95
|
}
|
|
97
96
|
export declare function isLivestreamItem<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.unspecced.getAtmosphereExploreTab", "livestreamItem">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAtmosphereExploreTab.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getAtmosphereExploreTab.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAa,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,oBAAoB,MAAM,sBAAsB,CAAA;AACjE,OAAO,KAAK,KAAK,gBAAgB,MAAM,kBAAkB,CAAA;AAMzD,MAAM,MAAM,WAAW,GAAG;IACxB
|
|
1
|
+
{"version":3,"file":"getAtmosphereExploreTab.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getAtmosphereExploreTab.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAa,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AACtF,OAAO,KAAK,KAAK,oBAAoB,MAAM,sBAAsB,CAAA;AACjE,OAAO,KAAK,KAAK,gBAAgB,MAAM,kBAAkB,CAAA;AAMzD,MAAM,MAAM,WAAW,GAAG;IACxB,+IAA+I;IAC/I,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;CACjB,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,kBAAkB,CAAC,EAAE,kBAAkB,CAAA;IACvC,QAAQ,EAAE,WAAW,CAAA;IACrB,YAAY,EAAE,eAAe,CAAA;IAC7B,MAAM,EAAE,WAAW,CAAA;IACnB,WAAW,EAAE,cAAc,CAAA;IAC3B,IAAI,EAAE,OAAO,EAAE,CAAA;CAChB;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,WAAW;IAC1B,KAAK,CAAC,EAAE,wDAAwD,CAAA;IAChE,KAAK,EAAE,WAAW,EAAE,CAAA;IACpB,qJAAqJ;IACrJ,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAID,wBAAgB,aAAa,CAAC,CAAC,E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AE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAID,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,0HAE3C;AAED,wBAAgB,0BAA0B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,4CAEjD;AAED,MAAM,WAAW,OAAO;IACtB,KAAK,CAAC,EAAE,oDAAoD,CAAA;IAC5D,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,4FAA4F;IAC5F,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,wGAAwG;IACxG,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,8CAA8C;IAC9C,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,8CAA8C;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,gBAAgB,CAAC,mBAAmB,CAAA;CAC/C;AAID,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,+GAEhC;AAED,wBAAgB,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,iCAEtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAtmosphereExploreTab.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getAtmosphereExploreTab.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;A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AM,sBAAsB,GAAG,oBAAoB,CAAA;AAEnD,MAAM,UAAU,oBAAoB,CAAI,CAAI;IAC1C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,sBAAsB,CAAC,CAAA;AAChD,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAI,CAAI;IAChD,OAAO,QAAQ,CAAyB,CAAC,EAAE,EAAE,EAAE,sBAAsB,CAAC,CAAA;AACxE,CAAC;AAoBD,MAAM,WAAW,GAAG,SAAS,CAAA;AAE7B,MAAM,UAAU,SAAS,CAAI,CAAI;IAC/B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,WAAW,CAAC,CAAA;AACrC,CAAC;AAED,MAAM,UAAU,eAAe,CAAI,CAAI;IACrC,OAAO,QAAQ,CAAc,CAAC,EAAE,EAAE,EAAE,WAAW,CAAC,CAAA;AAClD,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 AppBskyEmbedExternal from '../embed/external.js'\nimport type * as AppBskyActorDefs from '../actor/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.unspecced.getAtmosphereExploreTab'\n\nexport type QueryParams = {\n /** Preferred languages for article recommendations when algorithmic recommendations are enabled. Ignored otherwise. */\n langs?: string[]\n /** The ISO 3166-1 alpha-2 country code used to select curated content. */\n countryCode?: string\n /** The ISO 3166-2 region code used to select curated content. */\n regionCode?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n announcementBanner?: AnnouncementBanner\n articles: ArticleList\n publications: PublicationList\n photos: GalleryList\n livestreams: LivestreamList\n apps: AppCard[]\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 ArticleList {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#articleList'\n items: ArticleItem[]\n /** Snowflake for this list's recommendation, use when submitting recommendation events. Omitted when the list is not algorithmically recommended. */\n recIdStr?: string\n}\n\nconst hashArticleList = 'articleList'\n\nexport function isArticleList<V>(v: V) {\n return is$typed(v, id, hashArticleList)\n}\n\nexport function validateArticleList<V>(v: V) {\n return validate<ArticleList & V>(v, id, hashArticleList)\n}\n\nexport interface PublicationList {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#publicationList'\n items: PublicationItem[]\n /** Snowflake for this list's recommendation, use when submitting recommendation events. Omitted when the list is not algorithmically recommended. */\n recIdStr?: string\n}\n\nconst hashPublicationList = 'publicationList'\n\nexport function isPublicationList<V>(v: V) {\n return is$typed(v, id, hashPublicationList)\n}\n\nexport function validatePublicationList<V>(v: V) {\n return validate<PublicationList & V>(v, id, hashPublicationList)\n}\n\nexport interface GalleryList {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#galleryList'\n items: GalleryItem[]\n /** Snowflake for this list's recommendation, use when submitting recommendation events. Omitted when the list is not algorithmically recommended. */\n recIdStr?: string\n}\n\nconst hashGalleryList = 'galleryList'\n\nexport function isGalleryList<V>(v: V) {\n return is$typed(v, id, hashGalleryList)\n}\n\nexport function validateGalleryList<V>(v: V) {\n return validate<GalleryList & V>(v, id, hashGalleryList)\n}\n\nexport interface LivestreamList {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#livestreamList'\n items: LivestreamItem[]\n /** Snowflake for this list's recommendation, use when submitting recommendation events. Omitted when the list is not algorithmically recommended. */\n recIdStr?: string\n}\n\nconst hashLivestreamList = 'livestreamList'\n\nexport function isLivestreamList<V>(v: V) {\n return is$typed(v, id, hashLivestreamList)\n}\n\nexport function validateLivestreamList<V>(v: V) {\n return validate<LivestreamList & V>(v, id, hashLivestreamList)\n}\n\nexport interface ArticleItem {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#articleItem'\n /** Deprecated. Retained for compatibility; always false. */\n featured: boolean\n view: AppBskyEmbedExternal.ViewArticle\n}\n\nconst hashArticleItem = 'articleItem'\n\nexport function isArticleItem<V>(v: V) {\n return is$typed(v, id, hashArticleItem)\n}\n\nexport function validateArticleItem<V>(v: V) {\n return validate<ArticleItem & V>(v, id, hashArticleItem)\n}\n\nexport interface PublicationItem {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#publicationItem'\n /** Deprecated. Retained for compatibility; always false. */\n featured: boolean\n view: AppBskyEmbedExternal.ViewArticlePublication\n}\n\nconst hashPublicationItem = 'publicationItem'\n\nexport function isPublicationItem<V>(v: V) {\n return is$typed(v, id, hashPublicationItem)\n}\n\nexport function validatePublicationItem<V>(v: V) {\n return validate<PublicationItem & V>(v, id, hashPublicationItem)\n}\n\nexport interface GalleryItem {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#galleryItem'\n /** Deprecated. Retained for compatibility; always false. */\n featured: boolean\n view: AppBskyEmbedExternal.ViewGallery\n}\n\nconst hashGalleryItem = 'galleryItem'\n\nexport function isGalleryItem<V>(v: V) {\n return is$typed(v, id, hashGalleryItem)\n}\n\nexport function validateGalleryItem<V>(v: V) {\n return validate<GalleryItem & V>(v, id, hashGalleryItem)\n}\n\nexport interface LivestreamItem {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#livestreamItem'\n /** Deprecated. Retained for compatibility; always false. */\n featured: boolean\n view: AppBskyEmbedExternal.ViewLivestream\n}\n\nconst hashLivestreamItem = 'livestreamItem'\n\nexport function isLivestreamItem<V>(v: V) {\n return is$typed(v, id, hashLivestreamItem)\n}\n\nexport function validateLivestreamItem<V>(v: V) {\n return validate<LivestreamItem & V>(v, id, hashLivestreamItem)\n}\n\nexport interface AnnouncementBanner {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#announcementBanner'\n id?: string\n title?: string\n description?: string\n url?: string\n image?: string\n overlayColor?: string\n textColor?: string\n}\n\nconst hashAnnouncementBanner = 'announcementBanner'\n\nexport function isAnnouncementBanner<V>(v: V) {\n return is$typed(v, id, hashAnnouncementBanner)\n}\n\nexport function validateAnnouncementBanner<V>(v: V) {\n return validate<AnnouncementBanner & V>(v, id, hashAnnouncementBanner)\n}\n\nexport interface AppCard {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#appCard'\n id?: string\n title?: string\n description?: string\n /** Compatibility field. The profile avatar when available, otherwise the editorial logo. */\n logo?: string\n /** Compatibility field. The profile banner when available, otherwise the editorial background image. */\n backgroundImage?: string\n /** Deprecated. Retained for compatibility. */\n overlayColor?: string\n /** Deprecated. Retained for compatibility. */\n textColor?: string\n url?: string\n category?: string\n profile?: AppBskyActorDefs.ProfileViewDetailed\n}\n\nconst hashAppCard = 'appCard'\n\nexport function isAppCard<V>(v: V) {\n return is$typed(v, id, hashAppCard)\n}\n\nexport function validateAppCard<V>(v: V) {\n return validate<AppCard & V>(v, id, hashAppCard)\n}\n"]}
|
|
1
|
+
{"version":3,"file":"getAtmosphereExploreTab.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getAtmosphereExploreTab.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,4CAA4C,CAAA;AA4BvD,MAAM,UA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AAI,CAAI;IAChD,OAAO,QAAQ,CAAyB,CAAC,EAAE,EAAE,EAAE,sBAAsB,CAAC,CAAA;AACxE,CAAC;AAoBD,MAAM,WAAW,GAAG,SAAS,CAAA;AAE7B,MAAM,UAAU,SAAS,CAAI,CAAI;IAC/B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,WAAW,CAAC,CAAA;AACrC,CAAC;AAED,MAAM,UAAU,eAAe,CAAI,CAAI;IACrC,OAAO,QAAQ,CAAc,CAAC,EAAE,EAAE,EAAE,WAAW,CAAC,CAAA;AAClD,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 ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\nimport type * as AppBskyEmbedExternal from '../embed/external.js'\nimport type * as AppBskyActorDefs from '../actor/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.unspecced.getAtmosphereExploreTab'\n\nexport type QueryParams = {\n /** Preferred languages for article and photo gallery recommendations when their algorithmic recommendations are enabled. Ignored otherwise. */\n langs?: string[]\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n announcementBanner?: AnnouncementBanner\n articles: ArticleList\n publications: PublicationList\n photos: GalleryList\n livestreams: LivestreamList\n apps: AppCard[]\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 ArticleList {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#articleList'\n items: ArticleItem[]\n /** Snowflake for this list's recommendation, use when submitting recommendation events. Omitted when the list is not algorithmically recommended. */\n recIdStr?: string\n}\n\nconst hashArticleList = 'articleList'\n\nexport function isArticleList<V>(v: V) {\n return is$typed(v, id, hashArticleList)\n}\n\nexport function validateArticleList<V>(v: V) {\n return validate<ArticleList & V>(v, id, hashArticleList)\n}\n\nexport interface PublicationList {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#publicationList'\n items: PublicationItem[]\n /** Snowflake for this list's recommendation, use when submitting recommendation events. Omitted when the list is not algorithmically recommended. */\n recIdStr?: string\n}\n\nconst hashPublicationList = 'publicationList'\n\nexport function isPublicationList<V>(v: V) {\n return is$typed(v, id, hashPublicationList)\n}\n\nexport function validatePublicationList<V>(v: V) {\n return validate<PublicationList & V>(v, id, hashPublicationList)\n}\n\nexport interface GalleryList {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#galleryList'\n items: GalleryItem[]\n /** Snowflake for this list's recommendation, use when submitting recommendation events. Omitted when the list is not algorithmically recommended. */\n recIdStr?: string\n}\n\nconst hashGalleryList = 'galleryList'\n\nexport function isGalleryList<V>(v: V) {\n return is$typed(v, id, hashGalleryList)\n}\n\nexport function validateGalleryList<V>(v: V) {\n return validate<GalleryList & V>(v, id, hashGalleryList)\n}\n\nexport interface LivestreamList {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#livestreamList'\n items: LivestreamItem[]\n /** Snowflake for this list's recommendation, use when submitting recommendation events. Omitted when the list is not algorithmically recommended. */\n recIdStr?: string\n}\n\nconst hashLivestreamList = 'livestreamList'\n\nexport function isLivestreamList<V>(v: V) {\n return is$typed(v, id, hashLivestreamList)\n}\n\nexport function validateLivestreamList<V>(v: V) {\n return validate<LivestreamList & V>(v, id, hashLivestreamList)\n}\n\nexport interface ArticleItem {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#articleItem'\n /** Deprecated. Retained for compatibility; always false. */\n featured: boolean\n bskyPostRef?: ComAtprotoRepoStrongRef.Main\n view: AppBskyEmbedExternal.ViewArticle\n}\n\nconst hashArticleItem = 'articleItem'\n\nexport function isArticleItem<V>(v: V) {\n return is$typed(v, id, hashArticleItem)\n}\n\nexport function validateArticleItem<V>(v: V) {\n return validate<ArticleItem & V>(v, id, hashArticleItem)\n}\n\nexport interface PublicationItem {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#publicationItem'\n /** Deprecated. Retained for compatibility; always false. */\n featured: boolean\n view: AppBskyEmbedExternal.ViewArticlePublication\n}\n\nconst hashPublicationItem = 'publicationItem'\n\nexport function isPublicationItem<V>(v: V) {\n return is$typed(v, id, hashPublicationItem)\n}\n\nexport function validatePublicationItem<V>(v: V) {\n return validate<PublicationItem & V>(v, id, hashPublicationItem)\n}\n\nexport interface GalleryItem {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#galleryItem'\n /** Deprecated. Retained for compatibility; always false. */\n featured: boolean\n view: AppBskyEmbedExternal.ViewGallery\n}\n\nconst hashGalleryItem = 'galleryItem'\n\nexport function isGalleryItem<V>(v: V) {\n return is$typed(v, id, hashGalleryItem)\n}\n\nexport function validateGalleryItem<V>(v: V) {\n return validate<GalleryItem & V>(v, id, hashGalleryItem)\n}\n\nexport interface LivestreamItem {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#livestreamItem'\n /** Deprecated. Retained for compatibility; always false. */\n featured: boolean\n bskyPostRef?: ComAtprotoRepoStrongRef.Main\n view: AppBskyEmbedExternal.ViewLivestream\n}\n\nconst hashLivestreamItem = 'livestreamItem'\n\nexport function isLivestreamItem<V>(v: V) {\n return is$typed(v, id, hashLivestreamItem)\n}\n\nexport function validateLivestreamItem<V>(v: V) {\n return validate<LivestreamItem & V>(v, id, hashLivestreamItem)\n}\n\nexport interface AnnouncementBanner {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#announcementBanner'\n id?: string\n title?: string\n description?: string\n url?: string\n image?: string\n overlayColor?: string\n textColor?: string\n}\n\nconst hashAnnouncementBanner = 'announcementBanner'\n\nexport function isAnnouncementBanner<V>(v: V) {\n return is$typed(v, id, hashAnnouncementBanner)\n}\n\nexport function validateAnnouncementBanner<V>(v: V) {\n return validate<AnnouncementBanner & V>(v, id, hashAnnouncementBanner)\n}\n\nexport interface AppCard {\n $type?: 'app.bsky.unspecced.getAtmosphereExploreTab#appCard'\n id?: string\n title?: string\n description?: string\n /** Compatibility field. The profile avatar when available, otherwise the editorial logo. */\n logo?: string\n /** Compatibility field. The profile banner when available, otherwise the editorial background image. */\n backgroundImage?: string\n /** Deprecated. Retained for compatibility. */\n overlayColor?: string\n /** Deprecated. Retained for compatibility. */\n textColor?: string\n url?: string\n category?: string\n profile?: AppBskyActorDefs.ProfileViewDetailed\n}\n\nconst hashAppCard = 'appCard'\n\nexport function isAppCard<V>(v: V) {\n return is$typed(v, id, hashAppCard)\n}\n\nexport function validateAppCard<V>(v: V) {\n return validate<AppCard & V>(v, id, hashAppCard)\n}\n"]}
|
|
@@ -0,0 +1,81 @@
|
|
|
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 ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
|
|
8
|
+
import type * as AppBskyEmbedExternal from '../embed/external.js';
|
|
9
|
+
import type * as AppBskyFeedDefs from '../feed/defs.js';
|
|
10
|
+
import type * as AppBskyActorDefs from '../actor/defs.js';
|
|
11
|
+
export type QueryParams = {
|
|
12
|
+
cursor?: string;
|
|
13
|
+
};
|
|
14
|
+
export type InputSchema = undefined;
|
|
15
|
+
export interface OutputSchema {
|
|
16
|
+
cursor?: string;
|
|
17
|
+
feed: ($Typed<ActivityItem> | $Typed<ActivityItemOverflow> | $Typed<ActivityGroup> | {
|
|
18
|
+
$type: string;
|
|
19
|
+
})[];
|
|
20
|
+
}
|
|
21
|
+
export interface CallOptions {
|
|
22
|
+
signal?: AbortSignal;
|
|
23
|
+
headers?: HeadersMap;
|
|
24
|
+
}
|
|
25
|
+
export interface Response {
|
|
26
|
+
success: boolean;
|
|
27
|
+
headers: HeadersMap;
|
|
28
|
+
data: OutputSchema;
|
|
29
|
+
}
|
|
30
|
+
export declare function toKnownErr(e: any): any;
|
|
31
|
+
export interface ActivityRecord {
|
|
32
|
+
$type?: 'app.bsky.unspecced.getAtmosphereTimeline#activityRecord';
|
|
33
|
+
uri: string;
|
|
34
|
+
cid: string;
|
|
35
|
+
indexedAt: string;
|
|
36
|
+
}
|
|
37
|
+
export declare function isActivityRecord<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.unspecced.getAtmosphereTimeline", "activityRecord">;
|
|
38
|
+
export declare function validateActivityRecord<V>(v: V): ValidationResult<ActivityRecord & V>;
|
|
39
|
+
export interface ViewerState {
|
|
40
|
+
$type?: 'app.bsky.unspecced.getAtmosphereTimeline#viewerState';
|
|
41
|
+
subscribed: boolean;
|
|
42
|
+
}
|
|
43
|
+
export declare function isViewerState<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.unspecced.getAtmosphereTimeline", "viewerState">;
|
|
44
|
+
export declare function validateViewerState<V>(v: V): ValidationResult<ViewerState & V>;
|
|
45
|
+
export interface ActivityItem {
|
|
46
|
+
$type?: 'app.bsky.unspecced.getAtmosphereTimeline#activityItem';
|
|
47
|
+
record: ActivityRecord;
|
|
48
|
+
collection: string;
|
|
49
|
+
viewerState: ViewerState;
|
|
50
|
+
bskyPostRef?: ComAtprotoRepoStrongRef.Main;
|
|
51
|
+
view?: $Typed<AppBskyEmbedExternal.ViewArticle> | $Typed<AppBskyEmbedExternal.ViewArticlePublication> | $Typed<AppBskyEmbedExternal.ViewGallery> | $Typed<AppBskyEmbedExternal.ViewLivestream> | $Typed<AppBskyFeedDefs.PostView> | {
|
|
52
|
+
$type: string;
|
|
53
|
+
};
|
|
54
|
+
/** Recommendations and shares attached to this article. Attached activities do not themselves contain related activity. */
|
|
55
|
+
relatedActivity?: ActivityItem[];
|
|
56
|
+
}
|
|
57
|
+
export declare function isActivityItem<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.unspecced.getAtmosphereTimeline", "activityItem">;
|
|
58
|
+
export declare function validateActivityItem<V>(v: V): ValidationResult<ActivityItem & V>;
|
|
59
|
+
/** Distinct additional activities omitted from this page for an author and collection, without hydrating the omitted records. */
|
|
60
|
+
export interface ActivityItemOverflow {
|
|
61
|
+
$type?: 'app.bsky.unspecced.getAtmosphereTimeline#activityItemOverflow';
|
|
62
|
+
count: number;
|
|
63
|
+
collection: string;
|
|
64
|
+
associatedProfiles: AppBskyActorDefs.ProfileViewBasic[];
|
|
65
|
+
}
|
|
66
|
+
export declare function isActivityItemOverflow<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.unspecced.getAtmosphereTimeline", "activityItemOverflow">;
|
|
67
|
+
export declare function validateActivityItemOverflow<V>(v: V): ValidationResult<ActivityItemOverflow & V>;
|
|
68
|
+
/** Two or more activities of the same collection, within a fixed window anchored at the newest member. The group occupies the newest member's position. */
|
|
69
|
+
export interface ActivityGroup {
|
|
70
|
+
$type?: 'app.bsky.unspecced.getAtmosphereTimeline#activityGroup';
|
|
71
|
+
id: string;
|
|
72
|
+
groupBy: 'subject' | 'actor' | (string & {});
|
|
73
|
+
collection: string;
|
|
74
|
+
indexedAt: string;
|
|
75
|
+
items: ActivityItem[];
|
|
76
|
+
subject?: string;
|
|
77
|
+
actor?: string;
|
|
78
|
+
}
|
|
79
|
+
export declare function isActivityGroup<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.unspecced.getAtmosphereTimeline", "activityGroup">;
|
|
80
|
+
export declare function validateActivityGroup<V>(v: V): ValidationResult<ActivityGroup & V>;
|
|
81
|
+
//# sourceMappingURL=getAtmosphereTimeline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getA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IAClB,kBAAkB,EAAE,gBAAgB,CAAC,gBAAgB,EAAE,CAAA;CACxD;AAID,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,0HAE7C;AAED,wBAAgB,4BAA4B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8CAEnD;AAED,2JAA2J;AAC3J,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,wDAAwD,CAAA;IAChE,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,SAAS,GAAG,OAAO,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IAC5C,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,YAAY,EAAE,CAAA;IACrB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAID,wBAAgB,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,mHAEtC;AAED,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,uCAE5C"}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 = 'app.bsky.unspecced.getAtmosphereTimeline';
|
|
11
|
+
export function toKnownErr(e) {
|
|
12
|
+
return e;
|
|
13
|
+
}
|
|
14
|
+
const hashActivityRecord = 'activityRecord';
|
|
15
|
+
export function isActivityRecord(v) {
|
|
16
|
+
return is$typed(v, id, hashActivityRecord);
|
|
17
|
+
}
|
|
18
|
+
export function validateActivityRecord(v) {
|
|
19
|
+
return validate(v, id, hashActivityRecord);
|
|
20
|
+
}
|
|
21
|
+
const hashViewerState = 'viewerState';
|
|
22
|
+
export function isViewerState(v) {
|
|
23
|
+
return is$typed(v, id, hashViewerState);
|
|
24
|
+
}
|
|
25
|
+
export function validateViewerState(v) {
|
|
26
|
+
return validate(v, id, hashViewerState);
|
|
27
|
+
}
|
|
28
|
+
const hashActivityItem = 'activityItem';
|
|
29
|
+
export function isActivityItem(v) {
|
|
30
|
+
return is$typed(v, id, hashActivityItem);
|
|
31
|
+
}
|
|
32
|
+
export function validateActivityItem(v) {
|
|
33
|
+
return validate(v, id, hashActivityItem);
|
|
34
|
+
}
|
|
35
|
+
const hashActivityItemOverflow = 'activityItemOverflow';
|
|
36
|
+
export function isActivityItemOverflow(v) {
|
|
37
|
+
return is$typed(v, id, hashActivityItemOverflow);
|
|
38
|
+
}
|
|
39
|
+
export function validateActivityItemOverflow(v) {
|
|
40
|
+
return validate(v, id, hashActivityItemOverflow);
|
|
41
|
+
}
|
|
42
|
+
const hashActivityGroup = 'activityGroup';
|
|
43
|
+
export function isActivityGroup(v) {
|
|
44
|
+
return is$typed(v, id, hashActivityGroup);
|
|
45
|
+
}
|
|
46
|
+
export function validateActivityGroup(v) {
|
|
47
|
+
return validate(v, id, hashActivityGroup);
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=getAtmosphereTimeline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAtmosphereTimeline.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getAtmosphereTimeline.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,E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AAE,wBAAwB,CAAC,CAAA;AAClD,CAAC;AAED,MAAM,UAAU,4BAA4B,CAAI,CAAI;IAClD,OAAO,QAAQ,CAA2B,CAAC,EAAE,EAAE,EAAE,wBAAwB,CAAC,CAAA;AAC5E,CAAC;AAcD,MAAM,iBAAiB,GAAG,eAAe,CAAA;AAEzC,MAAM,UAAU,eAAe,CAAI,CAAI;IACrC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,iBAAiB,CAAC,CAAA;AAC3C,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAI,CAAI;IAC3C,OAAO,QAAQ,CAAoB,CAAC,EAAE,EAAE,EAAE,iBAAiB,CAAC,CAAA;AAC9D,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 ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\nimport type * as AppBskyEmbedExternal from '../embed/external.js'\nimport type * as AppBskyFeedDefs from '../feed/defs.js'\nimport type * as AppBskyActorDefs from '../actor/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.unspecced.getAtmosphereTimeline'\n\nexport type QueryParams = {\n cursor?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n cursor?: string\n feed: (\n | $Typed<ActivityItem>\n | $Typed<ActivityItemOverflow>\n | $Typed<ActivityGroup>\n | { $type: string }\n )[]\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 ActivityRecord {\n $type?: 'app.bsky.unspecced.getAtmosphereTimeline#activityRecord'\n uri: string\n cid: string\n indexedAt: string\n}\n\nconst hashActivityRecord = 'activityRecord'\n\nexport function isActivityRecord<V>(v: V) {\n return is$typed(v, id, hashActivityRecord)\n}\n\nexport function validateActivityRecord<V>(v: V) {\n return validate<ActivityRecord & V>(v, id, hashActivityRecord)\n}\n\nexport interface ViewerState {\n $type?: 'app.bsky.unspecced.getAtmosphereTimeline#viewerState'\n subscribed: boolean\n}\n\nconst hashViewerState = 'viewerState'\n\nexport function isViewerState<V>(v: V) {\n return is$typed(v, id, hashViewerState)\n}\n\nexport function validateViewerState<V>(v: V) {\n return validate<ViewerState & V>(v, id, hashViewerState)\n}\n\nexport interface ActivityItem {\n $type?: 'app.bsky.unspecced.getAtmosphereTimeline#activityItem'\n record: ActivityRecord\n collection: string\n viewerState: ViewerState\n bskyPostRef?: ComAtprotoRepoStrongRef.Main\n view?:\n | $Typed<AppBskyEmbedExternal.ViewArticle>\n | $Typed<AppBskyEmbedExternal.ViewArticlePublication>\n | $Typed<AppBskyEmbedExternal.ViewGallery>\n | $Typed<AppBskyEmbedExternal.ViewLivestream>\n | $Typed<AppBskyFeedDefs.PostView>\n | { $type: string }\n /** Recommendations and shares attached to this article. Attached activities do not themselves contain related activity. */\n relatedActivity?: ActivityItem[]\n}\n\nconst hashActivityItem = 'activityItem'\n\nexport function isActivityItem<V>(v: V) {\n return is$typed(v, id, hashActivityItem)\n}\n\nexport function validateActivityItem<V>(v: V) {\n return validate<ActivityItem & V>(v, id, hashActivityItem)\n}\n\n/** Distinct additional activities omitted from this page for an author and collection, without hydrating the omitted records. */\nexport interface ActivityItemOverflow {\n $type?: 'app.bsky.unspecced.getAtmosphereTimeline#activityItemOverflow'\n count: number\n collection: string\n associatedProfiles: AppBskyActorDefs.ProfileViewBasic[]\n}\n\nconst hashActivityItemOverflow = 'activityItemOverflow'\n\nexport function isActivityItemOverflow<V>(v: V) {\n return is$typed(v, id, hashActivityItemOverflow)\n}\n\nexport function validateActivityItemOverflow<V>(v: V) {\n return validate<ActivityItemOverflow & V>(v, id, hashActivityItemOverflow)\n}\n\n/** Two or more activities of the same collection, within a fixed window anchored at the newest member. The group occupies the newest member's position. */\nexport interface ActivityGroup {\n $type?: 'app.bsky.unspecced.getAtmosphereTimeline#activityGroup'\n id: string\n groupBy: 'subject' | 'actor' | (string & {})\n collection: string\n indexedAt: string\n items: ActivityItem[]\n subject?: string\n actor?: string\n}\n\nconst hashActivityGroup = 'activityGroup'\n\nexport function isActivityGroup<V>(v: V) {\n return is$typed(v, id, hashActivityGroup)\n}\n\nexport function validateActivityGroup<V>(v: V) {\n return validate<ActivityGroup & V>(v, id, hashActivityGroup)\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
|
+
export interface Main {
|
|
6
|
+
$type: 'com.atproto.label.record';
|
|
7
|
+
/** URI of the record, repository (account), or other resource that this label applies to. Currently only intended for use in the context of atproto spaces. */
|
|
8
|
+
uri: string;
|
|
9
|
+
/** Optionally, CID specifying the specific version of 'uri' resource this label applies to. */
|
|
10
|
+
cid?: string;
|
|
11
|
+
/** The short string name of the value or type of this label. */
|
|
12
|
+
val: string;
|
|
13
|
+
/** Timestamp when this label was created. */
|
|
14
|
+
cts: string;
|
|
15
|
+
/** Timestamp at which this label expires (no longer applies). */
|
|
16
|
+
exp?: string;
|
|
17
|
+
[k: string]: unknown;
|
|
18
|
+
}
|
|
19
|
+
export declare function isMain<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "com.atproto.label.record", "main">;
|
|
20
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
21
|
+
export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
|
|
22
|
+
//# sourceMappingURL=record.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/label/record.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,0BAA0B,CAAA;IACjC,+JAA+J;IAC/J,GAAG,EAAE,MAAM,CAAA;IACX,+FAA+F;IAC/F,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,gEAAgE;IAChE,GAAG,EAAE,MAAM,CAAA;IACX,6CAA6C;IAC7C,GAAG,EAAE,MAAM,CAAA;IACX,iEAAiE;IACjE,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,0FAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,OAAO,EACL,KAAK,IAAI,IAAI,MAAM,EACnB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,cAAc,GAC/B,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { BlobRef } from '@atproto/lexicon';
|
|
5
|
+
import { CID } from 'multiformats/cid';
|
|
6
|
+
import { validate as _validate } from '../../../../lexicons.js';
|
|
7
|
+
import { is$typed as _is$typed, } from '../../../../util.js';
|
|
8
|
+
const is$typed = _is$typed, validate = _validate;
|
|
9
|
+
const id = 'com.atproto.label.record';
|
|
10
|
+
const hashMain = 'main';
|
|
11
|
+
export function isMain(v) {
|
|
12
|
+
return is$typed(v, id, hashMain);
|
|
13
|
+
}
|
|
14
|
+
export function validateMain(v) {
|
|
15
|
+
return validate(v, id, hashMain, true);
|
|
16
|
+
}
|
|
17
|
+
export { isMain as isRecord, validateMain as validateRecord, };
|
|
18
|
+
//# sourceMappingURL=record.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"record.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/label/record.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,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,0BAA0B,CAAA;AAiBrC,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,MAAM,UAAU,MAAM,CAAI,CAAI;IAC5B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAClC,CAAC;AAED,MAAM,UAAU,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAA;AAClD,CAAC;AAED,OAAO,EAEL,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,cAAc,GAC/B,CAAA","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.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 = 'com.atproto.label.record'\n\nexport interface Main {\n $type: 'com.atproto.label.record'\n /** URI of the record, repository (account), or other resource that this label applies to. Currently only intended for use in the context of atproto spaces. */\n uri: string\n /** Optionally, CID specifying the specific version of 'uri' resource this label applies to. */\n cid?: string\n /** The short string name of the value or type of this label. */\n val: string\n /** Timestamp when this label was created. */\n cts: string\n /** Timestamp at which this label expires (no longer applies). */\n exp?: string\n [k: string]: unknown\n}\n\nconst hashMain = 'main'\n\nexport function isMain<V>(v: V) {\n return is$typed(v, id, hashMain)\n}\n\nexport function validateMain<V>(v: V) {\n return validate<Main & V>(v, id, hashMain, true)\n}\n\nexport {\n type Main as Record,\n isMain as isRecord,\n validateMain as validateRecord,\n}\n"]}
|
|
@@ -86,6 +86,7 @@ export interface SubjectViewDetail {
|
|
|
86
86
|
record?: {
|
|
87
87
|
[_ in string]: unknown;
|
|
88
88
|
};
|
|
89
|
+
account?: AccountPreview;
|
|
89
90
|
enforcement: EnforcementView;
|
|
90
91
|
appeal?: AppealView;
|
|
91
92
|
availableActions?: ('appeal' | (string & {}))[];
|
|
@@ -99,6 +100,17 @@ export interface SubjectViewDetail {
|
|
|
99
100
|
}
|
|
100
101
|
export declare function isSubjectViewDetail<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.inbox.defs", "subjectViewDetail">;
|
|
101
102
|
export declare function validateSubjectViewDetail<V>(v: V): ValidationResult<SubjectViewDetail & V>;
|
|
103
|
+
/** Current account information, when available; this is not a snapshot of the account at the time of the action. */
|
|
104
|
+
export interface AccountPreview {
|
|
105
|
+
$type?: 'tools.ozone.inbox.defs#accountPreview';
|
|
106
|
+
handle?: string;
|
|
107
|
+
/** Raw app.bsky.actor.profile record, when available. */
|
|
108
|
+
profile?: {
|
|
109
|
+
[_ in string]: unknown;
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
export declare function isAccountPreview<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.inbox.defs", "accountPreview">;
|
|
113
|
+
export declare function validateAccountPreview<V>(v: V): ValidationResult<AccountPreview & V>;
|
|
102
114
|
/** Aggregate view of reports filed against this subject. Deliberately carries no report IDs, no count, and no reporter identities. */
|
|
103
115
|
export interface ReportsSummary {
|
|
104
116
|
$type?: 'tools.ozone.inbox.defs#reportsSummary';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,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;AAMtF,gFAAgF;AAChF,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,oCAAoC,CAAA;IAC5C,2DAA2D;IAC3D,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EACH,MAAM,CAAC,mBAAmB,CAAC,OAAO,CAAC,GACnC,MAAM,CAAC,uBAAuB,CAAC,IAAI,CAAC,GACpC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACrB,WAAW,EAAE,eAAe,CAAA;IAC5B,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,gBAAgB,CAAC,EAAE,CAAC,QAAQ,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,EAAE,CAAA;IAC/C,YAAY,CAAC,EAAE,UAAU,CAAA;IACzB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,OAAO,CAAA;CAChB;AAID,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,+FAEpC;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,qCAE1C;AAED,kDAAkD;AAClD,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,wCAAwC,CAAA;IAChD,KAAK,EACH,MAAM,GAAG,SAAS,GA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CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,qCAE1C"}
|
|
@@ -49,6 +49,13 @@ export function isSubjectViewDetail(v) {
|
|
|
49
49
|
export function validateSubjectViewDetail(v) {
|
|
50
50
|
return validate(v, id, hashSubjectViewDetail);
|
|
51
51
|
}
|
|
52
|
+
const hashAccountPreview = 'accountPreview';
|
|
53
|
+
export function isAccountPreview(v) {
|
|
54
|
+
return is$typed(v, id, hashAccountPreview);
|
|
55
|
+
}
|
|
56
|
+
export function validateAccountPreview(v) {
|
|
57
|
+
return validate(v, id, hashAccountPreview);
|
|
58
|
+
}
|
|
52
59
|
const hashReportsSummary = 'reportsSummary';
|
|
53
60
|
export function isReportsSummary(v) {
|
|
54
61
|
return is$typed(v, id, hashReportsSummary);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,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;AAI5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,wBAAwB,CAAA;AAqBnC,MAAM,eAAe,GAAG,aAAa,CAAA;AAErC,MAAM,UAAU,aAAa,CAAI,CAAI;IACnC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AACzC,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAI,CAAI;IACzC,OAAO,QAAQ,CAAkB,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AAC1D,CAAC;AAaD,MAAM,mBAAmB,GA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A;AACtD,CAAC;AAcD,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;AAQD,MAAM,eAAe,GAAG,aAAa,CAAA;AAErC,MAAM,UAAU,aAAa,CAAI,CAAI;IACnC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AACzC,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAI,CAAI;IACzC,OAAO,QAAQ,CAAkB,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AAC1D,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.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'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.inbox.defs'\n\n/** A subject belonging to the viewer that has moderation actions against it. */\nexport interface SubjectView {\n $type?: 'tools.ozone.inbox.defs#subjectView'\n /** DID of the moderation service that took the actions. */\n src: string\n subject:\n | $Typed<ComAtprotoAdminDefs.RepoRef>\n | $Typed<ComAtprotoRepoStrongRef.Main>\n | { $type: string }\n enforcement: EnforcementView\n appeal?: AppealView\n availableActions?: ('appeal' | (string & {}))[]\n latestAction?: ActionView\n actionCount?: number\n createdAt: string\n updatedAt: string\n isRead: boolean\n}\n\nconst hashSubjectView = 'subjectView'\n\nexport function isSubjectView<V>(v: V) {\n return is$typed(v, id, hashSubjectView)\n}\n\nexport function validateSubjectView<V>(v: V) {\n return validate<SubjectView & V>(v, id, hashSubjectView)\n}\n\n/** The current enforcement state of a subject. */\nexport interface EnforcementView {\n $type?: 'tools.ozone.inbox.defs#enforcementView'\n state:\n 'none' | 'labeled' | 'removed' | 'suspended' | 'takendown' | (string & {})\n scope?: 'network' | 'app' | 'labelOnly' | (string & {})\n expiresAt?: string\n /** Active label values on the subject, excluding negated and expired labels. */\n labels?: string[]\n}\n\nconst hashEnforcementView = 'enforcementView'\n\nexport function isEnforcementView<V>(v: V) {\n return is$typed(v, id, hashEnforcementView)\n}\n\nexport function validateEnforcementView<V>(v: V) {\n return validate<EnforcementView & V>(v, id, hashEnforcementView)\n}\n\n/** The state of the viewer's appeal against the actions on a subject. */\nexport interface AppealView {\n $type?: 'tools.ozone.inbox.defs#appealView'\n state:\n 'none' | 'pending' | 'resolved' | 'superseded' | 'expired' | (string & {})\n appealedAt?: string\n /** When the appeal's report was closed. */\n resolvedAt?: string\n /** Decision on a resolved appeal. */\n outcome?: 'approved' | 'denied' | (string & {})\n appealableUntil?: string\n}\n\nconst hashAppealView = 'appealView'\n\nexport function isAppealView<V>(v: V) {\n return is$typed(v, id, hashAppealView)\n}\n\nexport function validateAppealView<V>(v: V) {\n return validate<AppealView & V>(v, id, hashAppealView)\n}\n\n/** A single moderation action taken against a subject. */\nexport interface ActionView {\n $type?: 'tools.ozone.inbox.defs#actionView'\n /** Action ID (moderation event ID). */\n id: number\n /** Public action type. */\n type: string\n scope?: 'network' | 'app' | 'labelOnly' | (string & {})\n createdAt: string\n reversedAt?: string\n expiresAt?: string\n /** Label values, for labelApplied/labelRemoved. */\n labels?: string[]\n /** Policies applied by a takedown action. */\n policies?: PolicyView[]\n}\n\nconst hashActionView = 'actionView'\n\nexport function isActionView<V>(v: V) {\n return is$typed(v, id, hashActionView)\n}\n\nexport function validateActionView<V>(v: V) {\n return validate<ActionView & V>(v, id, hashActionView)\n}\n\nexport interface PolicyView {\n $type?: 'tools.ozone.inbox.defs#policyView'\n key: string\n displayName: string\n link: string\n}\n\nconst hashPolicyView = 'policyView'\n\nexport function isPolicyView<V>(v: V) {\n return is$typed(v, id, hashPolicyView)\n}\n\nexport function validatePolicyView<V>(v: V) {\n return validate<PolicyView & V>(v, id, hashPolicyView)\n}\n\n/** A subject with a page of its action history and an aggregate report summary. Follow cursor to retrieve older actions; enforcement and appeal describe the current subject state on every page. */\nexport interface SubjectViewDetail {\n $type?: 'tools.ozone.inbox.defs#subjectViewDetail'\n src: string\n isRead: boolean\n subject:\n | $Typed<ComAtprotoAdminDefs.RepoRef>\n | $Typed<ComAtprotoRepoStrongRef.Main>\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 enforcement: EnforcementView\n appeal?: AppealView\n availableActions?: ('appeal' | (string & {}))[]\n /** A page of action history, most recent first. Reversal timestamps include changes outside this page. */\n actions: ActionView[]\n /** Cursor for the next page of action history. Omitted when no older actions remain. */\n cursor?: string\n reports?: ReportsSummary\n createdAt: string\n updatedAt: string\n}\n\nconst hashSubjectViewDetail = 'subjectViewDetail'\n\nexport function isSubjectViewDetail<V>(v: V) {\n return is$typed(v, id, hashSubjectViewDetail)\n}\n\nexport function validateSubjectViewDetail<V>(v: V) {\n return validate<SubjectViewDetail & V>(v, id, hashSubjectViewDetail)\n}\n\n/** Aggregate view of reports filed against this subject. Deliberately carries no report IDs, no count, and no reporter identities. */\nexport interface ReportsSummary {\n $type?: 'tools.ozone.inbox.defs#reportsSummary'\n /** Distinct reason types reported, deduplicated and unordered. Excludes reasonAppeal. */\n reasonTypes: string[]\n /** Day of the earliest report, truncated to midnight UTC. Render as a date; the time component is not meaningful. */\n firstReportedOn: string\n /** Day of the most recent report, truncated to midnight UTC. Render as a date; the time component is not meaningful. */\n lastReportedOn: string\n}\n\nconst hashReportsSummary = 'reportsSummary'\n\nexport function isReportsSummary<V>(v: V) {\n return is$typed(v, id, hashReportsSummary)\n}\n\nexport function validateReportsSummary<V>(v: V) {\n return validate<ReportsSummary & V>(v, id, hashReportsSummary)\n}\n\nexport interface Notification {\n $type?: 'tools.ozone.inbox.defs#notification'\n id: number\n reason:\n | 'reportResolved'\n | 'reportReopened'\n | 'actionTaken'\n | 'actionReversed'\n | 'appealResolved'\n | 'standingChanged'\n | (string & {})\n target:\n | $Typed<ReportRef>\n | $Typed<SubjectRef>\n | $Typed<StandingRef>\n | { $type: string }\n isRead: boolean\n createdAt: string\n}\n\nconst hashNotification = 'notification'\n\nexport function isNotification<V>(v: V) {\n return is$typed(v, id, hashNotification)\n}\n\nexport function validateNotification<V>(v: V) {\n return validate<Notification & V>(v, id, hashNotification)\n}\n\n/** Push notification preferences by moderation notification category. These preferences do not hide in-app inbox activity. Each category defaults to enabled. */\nexport interface NotificationPreferences {\n $type?: 'tools.ozone.inbox.defs#notificationPreferences'\n /** Notify about outcomes of reports filed by the account (reportResolved and reportReopened). */\n reports: boolean\n /** Notify about moderation actions against the account or its content, action reversals, appeal outcomes, and standing changes. Label application and removal are controlled by labels. */\n account: boolean\n /** Notify when labels are applied to or removed from the account or its content (labelApplied and labelRemoved actions). */\n labels: boolean\n}\n\nconst hashNotificationPreferences = 'notificationPreferences'\n\nexport function isNotificationPreferences<V>(v: V) {\n return is$typed(v, id, hashNotificationPreferences)\n}\n\nexport function validateNotificationPreferences<V>(v: V) {\n return validate<NotificationPreferences & V>(\n v,\n id,\n hashNotificationPreferences,\n )\n}\n\n/** Reference to a report by its report table ID, as used by getReport and Ozone's report detail page. */\nexport interface ReportRef {\n $type?: 'tools.ozone.inbox.defs#reportRef'\n reportId: number\n subject?:\n | $Typed<ComAtprotoAdminDefs.RepoRef>\n | $Typed<ComAtprotoRepoStrongRef.Main>\n | { $type: string }\n status?: 'pending' | 'resolved' | (string & {})\n}\n\nconst hashReportRef = 'reportRef'\n\nexport function isReportRef<V>(v: V) {\n return is$typed(v, id, hashReportRef)\n}\n\nexport function validateReportRef<V>(v: V) {\n return validate<ReportRef & V>(v, id, hashReportRef)\n}\n\nexport interface SubjectRef {\n $type?: 'tools.ozone.inbox.defs#subjectRef'\n /** Decision captured when an appealResolved notification was created. Omitted when the outcome is unknown. */\n appealOutcome?: 'approved' | 'denied' | (string & {})\n subject:\n | $Typed<ComAtprotoAdminDefs.RepoRef>\n | $Typed<ComAtprotoRepoStrongRef.Main>\n | { $type: string }\n actionType?: string\n actionId?: number\n}\n\nconst hashSubjectRef = 'subjectRef'\n\nexport function isSubjectRef<V>(v: V) {\n return is$typed(v, id, hashSubjectRef)\n}\n\nexport function validateSubjectRef<V>(v: V) {\n return validate<SubjectRef & V>(v, id, hashSubjectRef)\n}\n\nexport interface StandingRef {\n $type?: 'tools.ozone.inbox.defs#standingRef'\n standing: 'good' | 'warning' | 'atRisk' | (string & {})\n previousStanding?: 'good' | 'warning' | 'atRisk' | (string & {})\n}\n\nconst hashStandingRef = 'standingRef'\n\nexport function isStandingRef<V>(v: V) {\n return is$typed(v, id, hashStandingRef)\n}\n\nexport function validateStandingRef<V>(v: V) {\n return validate<StandingRef & V>(v, id, hashStandingRef)\n}\n"]}
|
|
1
|
+
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,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;AAI5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,wBAAwB,CAAA;AAqBnC,MAAM,eAAe,GAAG,aAAa,CAAA;AAErC,MAAM,UAAU,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,2BAA2B,GAAG,yBAAyB,CAAA;AAE7D,MAAM,UAAU,yBAAyB,CAAI,CAAI;IAC/C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,2BAA2B,CAAC,CAAA;AACrD,CAAC;AAED,MAAM,UAAU,+BAA+B,CAAI,CAAI;IACrD,OAAO,QAAQ,CACb,CAAC,EACD,EAAE,EACF,2BAA2B,CAC5B,CAAA;AACH,CAAC;AAaD,MAAM,aAAa,GAAG,WAAW,CAAA;AAEjC,MAAM,UAAU,WAAW,CAAI,CAAI;IACjC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAA;AACvC,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAI,CAAI;IACvC,OAAO,QAAQ,CAAgB,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAA;AACtD,CAAC;AAcD,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;AAQD,MAAM,eAAe,GAAG,aAAa,CAAA;AAErC,MAAM,UAAU,aAAa,CAAI,CAAI;IACnC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AACzC,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAI,CAAI;IACzC,OAAO,QAAQ,CAAkB,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AAC1D,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.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'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.inbox.defs'\n\n/** A subject belonging to the viewer that has moderation actions against it. */\nexport interface SubjectView {\n $type?: 'tools.ozone.inbox.defs#subjectView'\n /** DID of the moderation service that took the actions. */\n src: string\n subject:\n | $Typed<ComAtprotoAdminDefs.RepoRef>\n | $Typed<ComAtprotoRepoStrongRef.Main>\n | { $type: string }\n enforcement: EnforcementView\n appeal?: AppealView\n availableActions?: ('appeal' | (string & {}))[]\n latestAction?: ActionView\n actionCount?: number\n createdAt: string\n updatedAt: string\n isRead: boolean\n}\n\nconst hashSubjectView = 'subjectView'\n\nexport function isSubjectView<V>(v: V) {\n return is$typed(v, id, hashSubjectView)\n}\n\nexport function validateSubjectView<V>(v: V) {\n return validate<SubjectView & V>(v, id, hashSubjectView)\n}\n\n/** The current enforcement state of a subject. */\nexport interface EnforcementView {\n $type?: 'tools.ozone.inbox.defs#enforcementView'\n state:\n 'none' | 'labeled' | 'removed' | 'suspended' | 'takendown' | (string & {})\n scope?: 'network' | 'app' | 'labelOnly' | (string & {})\n expiresAt?: string\n /** Active label values on the subject, excluding negated and expired labels. */\n labels?: string[]\n}\n\nconst hashEnforcementView = 'enforcementView'\n\nexport function isEnforcementView<V>(v: V) {\n return is$typed(v, id, hashEnforcementView)\n}\n\nexport function validateEnforcementView<V>(v: V) {\n return validate<EnforcementView & V>(v, id, hashEnforcementView)\n}\n\n/** The state of the viewer's appeal against the actions on a subject. */\nexport interface AppealView {\n $type?: 'tools.ozone.inbox.defs#appealView'\n state:\n 'none' | 'pending' | 'resolved' | 'superseded' | 'expired' | (string & {})\n appealedAt?: string\n /** When the appeal's report was closed. */\n resolvedAt?: string\n /** Decision on a resolved appeal. */\n outcome?: 'approved' | 'denied' | (string & {})\n appealableUntil?: string\n}\n\nconst hashAppealView = 'appealView'\n\nexport function isAppealView<V>(v: V) {\n return is$typed(v, id, hashAppealView)\n}\n\nexport function validateAppealView<V>(v: V) {\n return validate<AppealView & V>(v, id, hashAppealView)\n}\n\n/** A single moderation action taken against a subject. */\nexport interface ActionView {\n $type?: 'tools.ozone.inbox.defs#actionView'\n /** Action ID (moderation event ID). */\n id: number\n /** Public action type. */\n type: string\n scope?: 'network' | 'app' | 'labelOnly' | (string & {})\n createdAt: string\n reversedAt?: string\n expiresAt?: string\n /** Label values, for labelApplied/labelRemoved. */\n labels?: string[]\n /** Policies applied by a takedown action. */\n policies?: PolicyView[]\n}\n\nconst hashActionView = 'actionView'\n\nexport function isActionView<V>(v: V) {\n return is$typed(v, id, hashActionView)\n}\n\nexport function validateActionView<V>(v: V) {\n return validate<ActionView & V>(v, id, hashActionView)\n}\n\nexport interface PolicyView {\n $type?: 'tools.ozone.inbox.defs#policyView'\n key: string\n displayName: string\n link: string\n}\n\nconst hashPolicyView = 'policyView'\n\nexport function isPolicyView<V>(v: V) {\n return is$typed(v, id, hashPolicyView)\n}\n\nexport function validatePolicyView<V>(v: V) {\n return validate<PolicyView & V>(v, id, hashPolicyView)\n}\n\n/** A subject with a page of its action history and an aggregate report summary. Follow cursor to retrieve older actions; enforcement and appeal describe the current subject state on every page. */\nexport interface SubjectViewDetail {\n $type?: 'tools.ozone.inbox.defs#subjectViewDetail'\n src: string\n isRead: boolean\n subject:\n | $Typed<ComAtprotoAdminDefs.RepoRef>\n | $Typed<ComAtprotoRepoStrongRef.Main>\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 account?: AccountPreview\n enforcement: EnforcementView\n appeal?: AppealView\n availableActions?: ('appeal' | (string & {}))[]\n /** A page of action history, most recent first. Reversal timestamps include changes outside this page. */\n actions: ActionView[]\n /** Cursor for the next page of action history. Omitted when no older actions remain. */\n cursor?: string\n reports?: ReportsSummary\n createdAt: string\n updatedAt: string\n}\n\nconst hashSubjectViewDetail = 'subjectViewDetail'\n\nexport function isSubjectViewDetail<V>(v: V) {\n return is$typed(v, id, hashSubjectViewDetail)\n}\n\nexport function validateSubjectViewDetail<V>(v: V) {\n return validate<SubjectViewDetail & V>(v, id, hashSubjectViewDetail)\n}\n\n/** Current account information, when available; this is not a snapshot of the account at the time of the action. */\nexport interface AccountPreview {\n $type?: 'tools.ozone.inbox.defs#accountPreview'\n handle?: string\n /** Raw app.bsky.actor.profile record, when available. */\n profile?: { [_ in string]: unknown }\n}\n\nconst hashAccountPreview = 'accountPreview'\n\nexport function isAccountPreview<V>(v: V) {\n return is$typed(v, id, hashAccountPreview)\n}\n\nexport function validateAccountPreview<V>(v: V) {\n return validate<AccountPreview & V>(v, id, hashAccountPreview)\n}\n\n/** Aggregate view of reports filed against this subject. Deliberately carries no report IDs, no count, and no reporter identities. */\nexport interface ReportsSummary {\n $type?: 'tools.ozone.inbox.defs#reportsSummary'\n /** Distinct reason types reported, deduplicated and unordered. Excludes reasonAppeal. */\n reasonTypes: string[]\n /** Day of the earliest report, truncated to midnight UTC. Render as a date; the time component is not meaningful. */\n firstReportedOn: string\n /** Day of the most recent report, truncated to midnight UTC. Render as a date; the time component is not meaningful. */\n lastReportedOn: string\n}\n\nconst hashReportsSummary = 'reportsSummary'\n\nexport function isReportsSummary<V>(v: V) {\n return is$typed(v, id, hashReportsSummary)\n}\n\nexport function validateReportsSummary<V>(v: V) {\n return validate<ReportsSummary & V>(v, id, hashReportsSummary)\n}\n\nexport interface Notification {\n $type?: 'tools.ozone.inbox.defs#notification'\n id: number\n reason:\n | 'reportResolved'\n | 'reportReopened'\n | 'actionTaken'\n | 'actionReversed'\n | 'appealResolved'\n | 'standingChanged'\n | (string & {})\n target:\n | $Typed<ReportRef>\n | $Typed<SubjectRef>\n | $Typed<StandingRef>\n | { $type: string }\n isRead: boolean\n createdAt: string\n}\n\nconst hashNotification = 'notification'\n\nexport function isNotification<V>(v: V) {\n return is$typed(v, id, hashNotification)\n}\n\nexport function validateNotification<V>(v: V) {\n return validate<Notification & V>(v, id, hashNotification)\n}\n\n/** Push notification preferences by moderation notification category. These preferences do not hide in-app inbox activity. Each category defaults to enabled. */\nexport interface NotificationPreferences {\n $type?: 'tools.ozone.inbox.defs#notificationPreferences'\n /** Notify about outcomes of reports filed by the account (reportResolved and reportReopened). */\n reports: boolean\n /** Notify about moderation actions against the account or its content, action reversals, appeal outcomes, and standing changes. Label application and removal are controlled by labels. */\n account: boolean\n /** Notify when labels are applied to or removed from the account or its content (labelApplied and labelRemoved actions). */\n labels: boolean\n}\n\nconst hashNotificationPreferences = 'notificationPreferences'\n\nexport function isNotificationPreferences<V>(v: V) {\n return is$typed(v, id, hashNotificationPreferences)\n}\n\nexport function validateNotificationPreferences<V>(v: V) {\n return validate<NotificationPreferences & V>(\n v,\n id,\n hashNotificationPreferences,\n )\n}\n\n/** Reference to a report by its report table ID, as used by getReport and Ozone's report detail page. */\nexport interface ReportRef {\n $type?: 'tools.ozone.inbox.defs#reportRef'\n reportId: number\n subject?:\n | $Typed<ComAtprotoAdminDefs.RepoRef>\n | $Typed<ComAtprotoRepoStrongRef.Main>\n | { $type: string }\n status?: 'pending' | 'resolved' | (string & {})\n}\n\nconst hashReportRef = 'reportRef'\n\nexport function isReportRef<V>(v: V) {\n return is$typed(v, id, hashReportRef)\n}\n\nexport function validateReportRef<V>(v: V) {\n return validate<ReportRef & V>(v, id, hashReportRef)\n}\n\nexport interface SubjectRef {\n $type?: 'tools.ozone.inbox.defs#subjectRef'\n /** Decision captured when an appealResolved notification was created. Omitted when the outcome is unknown. */\n appealOutcome?: 'approved' | 'denied' | (string & {})\n subject:\n | $Typed<ComAtprotoAdminDefs.RepoRef>\n | $Typed<ComAtprotoRepoStrongRef.Main>\n | { $type: string }\n actionType?: string\n actionId?: number\n}\n\nconst hashSubjectRef = 'subjectRef'\n\nexport function isSubjectRef<V>(v: V) {\n return is$typed(v, id, hashSubjectRef)\n}\n\nexport function validateSubjectRef<V>(v: V) {\n return validate<SubjectRef & V>(v, id, hashSubjectRef)\n}\n\nexport interface StandingRef {\n $type?: 'tools.ozone.inbox.defs#standingRef'\n standing: 'good' | 'warning' | 'atRisk' | (string & {})\n previousStanding?: 'good' | 'warning' | 'atRisk' | (string & {})\n}\n\nconst hashStandingRef = 'standingRef'\n\nexport function isStandingRef<V>(v: V) {\n return is$typed(v, id, hashStandingRef)\n}\n\nexport function validateStandingRef<V>(v: V) {\n return validate<StandingRef & V>(v, id, hashStandingRef)\n}\n"]}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* GENERATED CODE - DO NOT MODIFY
|
|
3
3
|
*/
|
|
4
4
|
import { type HeadersMap } from '@atproto/xrpc';
|
|
5
|
+
import type * as ToolsOzoneInboxDefs from './defs.js';
|
|
5
6
|
export type QueryParams = {
|
|
6
7
|
/** Account to preview. Only Ozone staff can read another account; this does not change its read state. */
|
|
7
8
|
did?: string;
|
|
@@ -11,6 +12,9 @@ export interface OutputSchema {
|
|
|
11
12
|
/** DID of the moderation service returning this status. */
|
|
12
13
|
src: string;
|
|
13
14
|
standing: 'good' | 'warning' | 'atRisk' | (string & {});
|
|
15
|
+
/** Whether the account currently has any active strikes. */
|
|
16
|
+
hasActiveStrikes?: boolean;
|
|
17
|
+
enforcement?: ToolsOzoneInboxDefs.EnforcementView;
|
|
14
18
|
/** Newest account-status update or strike timestamp used to derive this standing, or the Unix epoch when neither exists. This is not a standing-transition timestamp; expiry can change standing without changing this value. */
|
|
15
19
|
updatedAt: string;
|
|
16
20
|
/** Time at which the current suspension expires. Present only for a temporary suspension. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAccountStatus.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/getAccountStatus.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAa,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"getAccountStatus.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/getAccountStatus.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,0GAA0G;IAC1G,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,2DAA2D;IAC3D,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACvD,4DAA4D;IAC5D,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,WAAW,CAAC,EAAE,mBAAmB,CAAC,eAAe,CAAA;IACjD,iOAAiO;IACjO,SAAS,EAAE,MAAM,CAAA;IACjB,6FAA6F;IAC7F,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;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":"getAccountStatus.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/getAccountStatus.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;
|
|
1
|
+
{"version":3,"file":"getAccountStatus.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/getAccountStatus.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,oCAAoC,CAAA;AAgC/C,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.getAccountStatus'\n\nexport type QueryParams = {\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 /** DID of the moderation service returning this status. */\n src: string\n standing: 'good' | 'warning' | 'atRisk' | (string & {})\n /** Whether the account currently has any active strikes. */\n hasActiveStrikes?: boolean\n enforcement?: ToolsOzoneInboxDefs.EnforcementView\n /** Newest account-status update or strike timestamp used to derive this standing, or the Unix epoch when neither exists. This is not a standing-transition timestamp; expiry can change standing without changing this value. */\n updatedAt: string\n /** Time at which the current suspension expires. Present only for a temporary suspension. */\n expiresAt?: string\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"]}
|