import { l } from "@atproto/lex-schema"; import * as AdminDefs from "../../../com/atproto/admin/defs.defs.js"; import * as RepoStrongRef from "../../../com/atproto/repo/strongRef.defs.js"; declare const $nsid = "tools.ozone.inbox.defs"; type $nsid = typeof $nsid; export { $nsid }; /** A subject belonging to the viewer that has moderation actions against it. */ type SubjectView = { $type?: "tools.ozone.inbox.defs#subjectView"; /** * DID of the moderation service that took the actions. */ "src": l.DidString; "subject": l.$Typed | l.$Typed | l.Unknown$TypedObject; "enforcement": EnforcementView; "appeal"?: AppealView; "availableActions"?: ("appeal" | l.UnknownString)[]; "latestAction"?: ActionView; "actionCount"?: number; "createdAt": l.DatetimeString; "updatedAt": l.DatetimeString; "isRead": boolean; }; export type { SubjectView }; /** A subject belonging to the viewer that has moderation actions against it. */ declare const subjectView: l.TypedObjectSchema<"tools.ozone.inbox.defs#subjectView", l.Validator>; export { subjectView }; /** The current enforcement state of a subject. */ type EnforcementView = { $type?: "tools.ozone.inbox.defs#enforcementView"; "state": "none" | "labeled" | "removed" | "suspended" | "takendown" | l.UnknownString; "scope"?: "network" | "app" | "labelOnly" | l.UnknownString; "expiresAt"?: l.DatetimeString; /** * Active label values on the subject, excluding negated and expired labels. */ "labels"?: (string)[]; }; export type { EnforcementView }; /** The current enforcement state of a subject. */ declare const enforcementView: l.TypedObjectSchema<"tools.ozone.inbox.defs#enforcementView", l.Validator>; export { enforcementView }; /** The state of the viewer's appeal against the actions on a subject. */ type AppealView = { $type?: "tools.ozone.inbox.defs#appealView"; "state": "none" | "pending" | "resolved" | "superseded" | "expired" | l.UnknownString; "appealedAt"?: l.DatetimeString; /** * When the appeal's report was closed. */ "resolvedAt"?: l.DatetimeString; /** * Decision on a resolved appeal. */ "outcome"?: "approved" | "denied" | l.UnknownString; "appealableUntil"?: l.DatetimeString; }; export type { AppealView }; /** The state of the viewer's appeal against the actions on a subject. */ declare const appealView: l.TypedObjectSchema<"tools.ozone.inbox.defs#appealView", l.Validator>; export { appealView }; /** A single moderation action taken against a subject. */ type ActionView = { $type?: "tools.ozone.inbox.defs#actionView"; /** * Action ID (moderation event ID). */ "id": number; /** * Public action type. */ "type": string; "scope"?: "network" | "app" | "labelOnly" | l.UnknownString; "createdAt": l.DatetimeString; "reversedAt"?: l.DatetimeString; "expiresAt"?: l.DatetimeString; /** * Label values, for labelApplied/labelRemoved. */ "labels"?: (string)[]; /** * Policies applied by a takedown action. */ "policies"?: (PolicyView)[]; }; export type { ActionView }; /** A single moderation action taken against a subject. */ declare const actionView: l.TypedObjectSchema<"tools.ozone.inbox.defs#actionView", l.Validator>; export { actionView }; type PolicyView = { $type?: "tools.ozone.inbox.defs#policyView"; "key": string; "displayName": string; "link": l.UriString; }; export type { PolicyView }; declare const policyView: l.TypedObjectSchema<"tools.ozone.inbox.defs#policyView", l.Validator>; export { policyView }; /** 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. */ type SubjectViewDetail = { $type?: "tools.ozone.inbox.defs#subjectViewDetail"; "src": l.DidString; "isRead": boolean; "subject": l.$Typed | l.$Typed | l.Unknown$TypedObject; /** * Raw record JSON for the subject, when the subject is a record and the record is available. */ "record"?: l.LexMap; /** * Best-effort current profile information for an account subject. */ "account"?: AccountPreview; "enforcement": EnforcementView; "appeal"?: AppealView; "availableActions"?: ("appeal" | l.UnknownString)[]; /** * A page of action history, most recent first. Reversal timestamps include changes outside this page. */ "actions": (ActionView)[]; /** * Cursor for the next page of action history. Omitted when no older actions remain. */ "cursor"?: string; /** * Omitted when the subject has never been reported, e.g. proactive enforcement. */ "reports"?: ReportsSummary; "createdAt": l.DatetimeString; "updatedAt": l.DatetimeString; }; export type { SubjectViewDetail }; /** 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. */ declare const subjectViewDetail: l.TypedObjectSchema<"tools.ozone.inbox.defs#subjectViewDetail", l.Validator>; export { subjectViewDetail }; /** Current account information, when available; this is not a snapshot of the account at the time of the action. */ type AccountPreview = { $type?: "tools.ozone.inbox.defs#accountPreview"; "handle"?: l.HandleString; /** * Raw app.bsky.actor.profile record, when available. */ "profile"?: l.LexMap; }; export type { AccountPreview }; /** Current account information, when available; this is not a snapshot of the account at the time of the action. */ declare const accountPreview: l.TypedObjectSchema<"tools.ozone.inbox.defs#accountPreview", l.Validator>; export { accountPreview }; /** Aggregate view of reports filed against this subject. Deliberately carries no report IDs, no count, and no reporter identities. */ type ReportsSummary = { $type?: "tools.ozone.inbox.defs#reportsSummary"; /** * Distinct reason types reported, deduplicated and unordered. Excludes reasonAppeal. */ "reasonTypes": (string)[]; /** * Day of the earliest report, truncated to midnight UTC. Render as a date; the time component is not meaningful. */ "firstReportedOn": l.DatetimeString; /** * Day of the most recent report, truncated to midnight UTC. Render as a date; the time component is not meaningful. */ "lastReportedOn": l.DatetimeString; }; export type { ReportsSummary }; /** Aggregate view of reports filed against this subject. Deliberately carries no report IDs, no count, and no reporter identities. */ declare const reportsSummary: l.TypedObjectSchema<"tools.ozone.inbox.defs#reportsSummary", l.Validator>; export { reportsSummary }; type Notification = { $type?: "tools.ozone.inbox.defs#notification"; "id": number; "reason": "reportResolved" | "reportReopened" | "actionTaken" | "actionReversed" | "appealResolved" | "standingChanged" | l.UnknownString; "target": l.$Typed | l.$Typed | l.$Typed | l.Unknown$TypedObject; "isRead": boolean; "createdAt": l.DatetimeString; }; export type { Notification }; declare const notification: l.TypedObjectSchema<"tools.ozone.inbox.defs#notification", l.Validator>; export { notification }; /** Push notification preferences by moderation notification category. These preferences do not hide in-app inbox activity. Each category defaults to enabled. */ type NotificationPreferences = { $type?: "tools.ozone.inbox.defs#notificationPreferences"; /** * Notify about outcomes of reports filed by the account (reportResolved and reportReopened). */ "reports": boolean; /** * 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. */ "account": boolean; /** * Notify when labels are applied to or removed from the account or its content (labelApplied and labelRemoved actions). */ "labels": boolean; }; export type { NotificationPreferences }; /** Push notification preferences by moderation notification category. These preferences do not hide in-app inbox activity. Each category defaults to enabled. */ declare const notificationPreferences: l.TypedObjectSchema<"tools.ozone.inbox.defs#notificationPreferences", l.Validator>; export { notificationPreferences }; /** Reference to a report by its report table ID, as used by getReport and Ozone's report detail page. */ type ReportRef = { $type?: "tools.ozone.inbox.defs#reportRef"; "reportId": number; "subject"?: l.$Typed | l.$Typed | l.Unknown$TypedObject; "status"?: "pending" | "resolved" | l.UnknownString; }; export type { ReportRef }; /** Reference to a report by its report table ID, as used by getReport and Ozone's report detail page. */ declare const reportRef: l.TypedObjectSchema<"tools.ozone.inbox.defs#reportRef", l.Validator>; export { reportRef }; type SubjectRef = { $type?: "tools.ozone.inbox.defs#subjectRef"; /** * Decision captured when an appealResolved notification was created. Omitted when the outcome is unknown. */ "appealOutcome"?: "approved" | "denied" | l.UnknownString; "subject": l.$Typed | l.$Typed | l.Unknown$TypedObject; "actionType"?: string; "actionId"?: number; }; export type { SubjectRef }; declare const subjectRef: l.TypedObjectSchema<"tools.ozone.inbox.defs#subjectRef", l.Validator>; export { subjectRef }; type StandingRef = { $type?: "tools.ozone.inbox.defs#standingRef"; "standing": "good" | "warning" | "atRisk" | l.UnknownString; "previousStanding"?: "good" | "warning" | "atRisk" | l.UnknownString; }; export type { StandingRef }; declare const standingRef: l.TypedObjectSchema<"tools.ozone.inbox.defs#standingRef", l.Validator>; export { standingRef }; //# sourceMappingURL=defs.defs.d.ts.map