@atproto/api 0.26.0 → 0.27.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 +8 -0
- package/dist/client/lexicons.d.ts +20 -0
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +10 -0
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/tools/ozone/inbox/defs.d.ts +4 -0
- package/dist/client/types/tools/ozone/inbox/defs.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/inbox/defs.js.map +1 -1
- package/package.json +2 -2
|
@@ -42,6 +42,8 @@ export interface AppealView {
|
|
|
42
42
|
appealedAt?: string;
|
|
43
43
|
/** When the appeal's report was closed. */
|
|
44
44
|
resolvedAt?: string;
|
|
45
|
+
/** Decision on a resolved appeal. */
|
|
46
|
+
outcome?: 'approved' | 'denied' | (string & {});
|
|
45
47
|
appealableUntil?: string;
|
|
46
48
|
}
|
|
47
49
|
export declare function isAppealView<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.inbox.defs", "appealView">;
|
|
@@ -146,6 +148,8 @@ export declare function isReportRef<V>(v: V): v is import("../../../../util.js")
|
|
|
146
148
|
export declare function validateReportRef<V>(v: V): ValidationResult<ReportRef & V>;
|
|
147
149
|
export interface SubjectRef {
|
|
148
150
|
$type?: 'tools.ozone.inbox.defs#subjectRef';
|
|
151
|
+
/** Decision captured when an appealResolved notification was created. Omitted when the outcome is unknown. */
|
|
152
|
+
appealOutcome?: 'approved' | 'denied' | (string & {});
|
|
149
153
|
subject: $Typed<ComAtprotoAdminDefs.RepoRef> | $Typed<ComAtprotoRepoStrongRef.Main> | {
|
|
150
154
|
$type: string;
|
|
151
155
|
};
|
|
@@ -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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QAAQ,CAAgB,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAA;AACtD,CAAC;AAYD,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 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 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,aAAa,CAAI,CAAI;IACnC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,eAA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AQ,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 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"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Client library for atproto and Bluesky",
|
|
6
6
|
"keywords": [
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"multiformats": "^13.0.0",
|
|
36
36
|
"tlds": "^1.234.0",
|
|
37
37
|
"zod": "^3.23.8",
|
|
38
|
-
"@atproto/common-web": "^0.5.14",
|
|
39
38
|
"@atproto/lexicon": "^0.7.16",
|
|
40
39
|
"@atproto/syntax": "^0.7.6",
|
|
40
|
+
"@atproto/common-web": "^0.5.14",
|
|
41
41
|
"@atproto/xrpc": "^0.8.15"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|