@atproto/api 0.32.1 → 0.32.3

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.
@@ -7,8 +7,8 @@ export type QueryParams = {
7
7
  actor: string;
8
8
  limit?: number;
9
9
  cursor?: string;
10
- /** Combinations of post/repost types to include in response. */
11
- filter?: 'posts_with_replies' | 'posts_no_replies' | 'posts_with_media' | 'posts_and_author_threads' | 'posts_with_video' | (string & {});
10
+ /** Combinations of post/repost types to include in response. The posts_and_replies_only filter includes authored top-level posts and replies, but excludes reposts. */
11
+ filter?: 'posts_with_replies' | 'posts_and_replies_only' | 'posts_no_replies' | 'posts_with_media' | 'posts_and_author_threads' | 'posts_with_video' | (string & {});
12
12
  includePins?: boolean;
13
13
  };
14
14
  export type InputSchema = undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"getAuthorFeed.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/feed/getAuthorFeed.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAS1D,OAAO,KAAK,KAAK,eAAe,MAAM,WAAW,CAAA;AAMjD,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,gEAAgE;IAChE,MAAM,CAAC,EACH,oBAAoB,GACpB,kBAAkB,GAClB,kBAAkB,GAClB,0BAA0B,GAC1B,kBAAkB,GAClB,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,eAAe,CAAC,YAAY,EAAE,CAAA;CACrC;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,iBAAkB,SAAQ,SAAS;IAC9C,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,qBAAa,mBAAoB,SAAQ,SAAS;IAChD,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAOhC"}
1
+ {"version":3,"file":"getAuthorFeed.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/feed/getAuthorFeed.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAS1D,OAAO,KAAK,KAAK,eAAe,MAAM,WAAW,CAAA;AAMjD,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,uKAAuK;IACvK,MAAM,CAAC,EACH,oBAAoB,GACpB,wBAAwB,GACxB,kBAAkB,GAClB,kBAAkB,GAClB,0BAA0B,GAC1B,kBAAkB,GAClB,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,eAAe,CAAC,YAAY,EAAE,CAAA;CACrC;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,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AO,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,cAAc;YAAE,OAAO,IAAI,iBAAiB,CAAC,CAAC,CAAC,CAAA;QAC/D,IAAI,CAAC,CAAC,KAAK,KAAK,gBAAgB;YAAE,OAAO,IAAI,mBAAmB,CAAC,CAAC,CAAC,CAAA;IACrE,CAAC;IAED,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 AppBskyFeedDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.feed.getAuthorFeed'\n\nexport type QueryParams = {\n actor: string\n limit?: number\n cursor?: string\n /** Combinations of post/repost types to include in response. */\n filter?:\n | 'posts_with_replies'\n | 'posts_no_replies'\n | 'posts_with_media'\n | 'posts_and_author_threads'\n | 'posts_with_video'\n | (string & {})\n includePins?: boolean\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n cursor?: string\n feed: AppBskyFeedDefs.FeedViewPost[]\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 BlockedActorError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class BlockedByActorError 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 === 'BlockedActor') return new BlockedActorError(e)\n if (e.error === 'BlockedByActor') return new BlockedByActorError(e)\n }\n\n return e\n}\n"]}
1
+ {"version":3,"file":"getAuthorFeed.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/feed/getAuthorFeed.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,6BAA6B,CAAA;AAmCxC,MAAM,OAAO,iBAAkB,SAAQ,SAAS;IAC9C,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,OAAO,mBAAoB,SAAQ,SAAS;IAChD,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,cAAc;YAAE,OAAO,IAAI,iBAAiB,CAAC,CAAC,CAAC,CAAA;QAC/D,IAAI,CAAC,CAAC,KAAK,KAAK,gBAAgB;YAAE,OAAO,IAAI,mBAAmB,CAAC,CAAC,CAAC,CAAA;IACrE,CAAC;IAED,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 AppBskyFeedDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.feed.getAuthorFeed'\n\nexport type QueryParams = {\n actor: string\n limit?: number\n cursor?: string\n /** Combinations of post/repost types to include in response. The posts_and_replies_only filter includes authored top-level posts and replies, but excludes reposts. */\n filter?:\n | 'posts_with_replies'\n | 'posts_and_replies_only'\n | 'posts_no_replies'\n | 'posts_with_media'\n | 'posts_and_author_threads'\n | 'posts_with_video'\n | (string & {})\n includePins?: boolean\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n cursor?: string\n feed: AppBskyFeedDefs.FeedViewPost[]\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 BlockedActorError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class BlockedByActorError 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 === 'BlockedActor') return new BlockedActorError(e)\n if (e.error === 'BlockedByActor') return new BlockedByActorError(e)\n }\n\n return e\n}\n"]}
@@ -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,EA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AC,sCAE3C;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,4CAA4C,CAAA;IACpD,OAAO,EAAE,aAAa,GAAG,UAAU,GAAG,OAAO,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IAC7D,sGAAsG;IACtG,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,SAAS,GAAG,KAAK,GAAG,WAAW,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACvD,UAAU,EAAE,MAAM,CAAA;CACnB;AAID,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,uGAEvC;AAED,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,wCAE7C"}
@@ -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,S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O NOT MODIFY\n */\nimport { type HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as ComAtprotoAdminDefs from '../../../com/atproto/admin/defs.js'\nimport type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\nimport type * as ChatBskyConvoDefs from '../../../chat/bsky/convo/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.inbox.getReport'\n\nexport type QueryParams = {\n /** Reporter to preview. Defaults to the authenticated account; another account requires an active moderator, triage, or admin credential. */\n did?: string\n /** Report ID (report table ID), as returned by listReports. */\n id: number\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n report: ReportView\n resolution?: ResolutionView\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport class NotFoundError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n if (e.error === 'NotFound') return new NotFoundError(e)\n }\n\n return e\n}\n\nexport interface ReportView {\n $type?: 'tools.ozone.inbox.getReport#reportView'\n /** DID of the moderation service that received the report. */\n src: string\n /** Report ID (report table ID), used by Ozone's report detail page. */\n id: number\n /** The exact fully-qualified reason NSID submitted with and stored on the report. */\n reasonType: string\n reason?: string\n subject:\n | $Typed<ComAtprotoAdminDefs.RepoRef>\n | $Typed<ComAtprotoRepoStrongRef.Main>\n | $Typed<ChatBskyConvoDefs.MessageRef>\n | $Typed<ChatBskyConvoDefs.ConvoRef>\n | { $type: string }\n /** Raw record JSON for the subject, when the subject is a record and the record is available. */\n record?: { [_ in string]: unknown }\n status: 'pending' | 'resolved' | (string & {})\n createdAt: string\n updatedAt: string\n}\n\nconst hashReportView = 'reportView'\n\nexport function isReportView<V>(v: V) {\n return is$typed(v, id, hashReportView)\n}\n\nexport function validateReportView<V>(v: V) {\n return validate<ReportView & V>(v, id, hashReportView)\n}\n\nexport interface ResolutionView {\n $type?: 'tools.ozone.inbox.getReport#resolutionView'\n outcome: 'actionTaken' | 'noAction' | 'other' | (string & {})\n /** Public action associated with this report's resolution. See the public action vocabulary table. */\n actionTaken?: string\n scope?: 'network' | 'app' | 'labelOnly' | (string & {})\n resolvedAt: string\n}\n\nconst hashResolutionView = 'resolutionView'\n\nexport function isResolutionView<V>(v: V) {\n return is$typed(v, id, hashResolutionView)\n}\n\nexport function validateResolutionView<V>(v: V) {\n return validate<ResolutionView & V>(v, id, hashResolutionView)\n}\n"]}
1
+ {"version":3,"file":"getReport.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/getReport.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAmB,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAyB,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAK5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,6BAA6B,CAAA;AA0BxC,MAAM,OAAO,aAAc,SAAQ,SAAS;IAC1C,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;IACxE,CAAC;C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AU,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"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/api",
3
- "version": "0.32.1",
3
+ "version": "0.32.3",
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.17",
35
- "@atproto/lexicon": "^0.7.19",
36
- "@atproto/syntax": "^0.7.7",
37
- "@atproto/xrpc": "^0.8.18",
34
+ "@atproto/common-web": "^0.5.18",
35
+ "@atproto/lexicon": "^0.7.20",
36
+ "@atproto/syntax": "^0.7.8",
37
+ "@atproto/xrpc": "^0.8.19",
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.18",
45
- "@atproto/lex-installer": "^0.2.8",
44
+ "@atproto/lex-cli": "^0.10.19",
45
+ "@atproto/lex-installer": "^0.2.10",
46
46
  "@jest/globals": "^28.1.3",
47
47
  "http-terminator": "^3.2.0",
48
48
  "jest": "^30.5.2",