@atproto/api 0.23.2 → 0.24.1
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 +24 -0
- package/dist/client/index.d.ts +33 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +63 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +3417 -1639
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +1159 -186
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/embed/record.d.ts +4 -0
- package/dist/client/types/app/bsky/embed/record.d.ts.map +1 -1
- package/dist/client/types/app/bsky/embed/record.js.map +1 -1
- package/dist/client/types/tools/ozone/inbox/defs.d.ts +94 -4
- package/dist/client/types/tools/ozone/inbox/defs.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/inbox/defs.js +56 -0
- package/dist/client/types/tools/ozone/inbox/defs.js.map +1 -1
- package/dist/client/types/tools/ozone/inbox/getAccountStatus.d.ts +29 -0
- package/dist/client/types/tools/ozone/inbox/getAccountStatus.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/inbox/getAccountStatus.js +14 -0
- package/dist/client/types/tools/ozone/inbox/getAccountStatus.js.map +1 -0
- package/dist/client/types/tools/ozone/inbox/getActionedSubject.d.ts +31 -0
- package/dist/client/types/tools/ozone/inbox/getActionedSubject.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/inbox/getActionedSubject.js +23 -0
- package/dist/client/types/tools/ozone/inbox/getActionedSubject.js.map +1 -0
- package/dist/client/types/tools/ozone/inbox/getNotificationPreferences.d.ts +24 -0
- package/dist/client/types/tools/ozone/inbox/getNotificationPreferences.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/inbox/getNotificationPreferences.js +14 -0
- package/dist/client/types/tools/ozone/inbox/getNotificationPreferences.js.map +1 -0
- package/dist/client/types/tools/ozone/inbox/getReport.d.ts +66 -0
- package/dist/client/types/tools/ozone/inbox/getReport.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/inbox/getReport.js +37 -0
- package/dist/client/types/tools/ozone/inbox/getReport.js.map +1 -0
- package/dist/client/types/tools/ozone/inbox/getUnreadCount.d.ts +34 -0
- package/dist/client/types/tools/ozone/inbox/getUnreadCount.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/inbox/getUnreadCount.js +21 -0
- package/dist/client/types/tools/ozone/inbox/getUnreadCount.js.map +1 -0
- package/dist/client/types/tools/ozone/inbox/listActionedSubjects.d.ts +32 -0
- package/dist/client/types/tools/ozone/inbox/listActionedSubjects.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/inbox/listActionedSubjects.js +14 -0
- package/dist/client/types/tools/ozone/inbox/listActionedSubjects.js.map +1 -0
- package/dist/client/types/tools/ozone/inbox/listNotifications.d.ts +30 -0
- package/dist/client/types/tools/ozone/inbox/listNotifications.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/inbox/listNotifications.js +14 -0
- package/dist/client/types/tools/ozone/inbox/listNotifications.js.map +1 -0
- package/dist/client/types/tools/ozone/inbox/listReports.d.ts +58 -0
- package/dist/client/types/tools/ozone/inbox/listReports.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/inbox/listReports.js +21 -0
- package/dist/client/types/tools/ozone/inbox/listReports.js.map +1 -0
- package/dist/client/types/tools/ozone/inbox/putNotificationPreferences.d.ts +25 -0
- package/dist/client/types/tools/ozone/inbox/putNotificationPreferences.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/inbox/putNotificationPreferences.js +14 -0
- package/dist/client/types/tools/ozone/inbox/putNotificationPreferences.js.map +1 -0
- package/dist/client/types/tools/ozone/inbox/updateSeen.d.ts +27 -0
- package/dist/client/types/tools/ozone/inbox/updateSeen.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/inbox/updateSeen.js +14 -0
- package/dist/client/types/tools/ozone/inbox/updateSeen.js.map +1 -0
- package/dist/client/types/tools/ozone/moderation/defs.d.ts +6 -0
- package/dist/client/types/tools/ozone/moderation/defs.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/moderation/defs.js.map +1 -1
- package/dist/client/types/tools/ozone/report/defs.d.ts +10 -0
- package/dist/client/types/tools/ozone/report/defs.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/report/defs.js.map +1 -1
- package/dist/client/types/tools/ozone/server/getCapabilities.d.ts +27 -0
- package/dist/client/types/tools/ozone/server/getCapabilities.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/server/getCapabilities.js +21 -0
- package/dist/client/types/tools/ozone/server/getCapabilities.js.map +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/moderation/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;AAS5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,6BAA6B,CAAA;AA8CxC,MAAM,gBAAgB,GAAG,cAAc,CAAA;AAEvC,MAAM,UAAU,cAAc,CAAI,CAAI;IACpC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAA;AAC1C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAI,CAAI;IAC1C,OAAO,QAAQ,CAAmB,CAAC,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAA;AAC5D,CAAC;AA6CD,MAAM,sBAAsB,GAAG,oBAAoB,CAAA;AAEnD,MAAM,UAAU,oBAAoB,CAAI,CAAI;IAC1C,OAAO,Q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4B,CAAA;AAC1E,oEAAoE;AACpE,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,EAAE,4BAA4B,CAAA;AAqC1E,MAAM,uBAAuB,GAAG,qBAAqB,CAAA;AAErD,MAAM,UAAU,qBAAqB,CAAI,CAAI;IAC3C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,uBAAuB,CAAC,CAAA;AACjD,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAI,CAAI;IACjD,OAAO,QAAQ,CAA0B,CAAC,EAAE,EAAE,EAAE,uBAAuB,CAAC,CAAA;AAC1E,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type 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'\nimport type * as ComAtprotoModerationDefs from '../../../com/atproto/moderation/defs.js'\nimport type * as AppBskyAgeassuranceDefs from '../../../app/bsky/ageassurance/defs.js'\nimport type * as ComAtprotoServerDefs from '../../../com/atproto/server/defs.js'\nimport type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.moderation.defs'\n\nexport interface ModEventView {\n $type?: 'tools.ozone.moderation.defs#modEventView'\n id: number\n event:\n | $Typed<ModEventTakedown>\n | $Typed<ModEventReverseTakedown>\n | $Typed<ModEventComment>\n | $Typed<ModEventReport>\n | $Typed<ModEventLabel>\n | $Typed<ModEventAcknowledge>\n | $Typed<ModEventEscalate>\n | $Typed<ModEventMute>\n | $Typed<ModEventUnmute>\n | $Typed<ModEventMuteReporter>\n | $Typed<ModEventUnmuteReporter>\n | $Typed<ModEventEmail>\n | $Typed<ModEventResolveAppeal>\n | $Typed<ModEventDivert>\n | $Typed<ModEventTag>\n | $Typed<AccountEvent>\n | $Typed<IdentityEvent>\n | $Typed<RecordEvent>\n | $Typed<ModEventPriorityScore>\n | $Typed<AgeAssuranceEvent>\n | $Typed<AgeAssuranceOverrideEvent>\n | $Typed<AgeAssurancePurgeEvent>\n | $Typed<RevokeAccountCredentialsEvent>\n | $Typed<ScheduleTakedownEvent>\n | $Typed<CancelScheduledTakedownEvent>\n | { $type: string }\n subject:\n | $Typed<ComAtprotoAdminDefs.RepoRef>\n | $Typed<ComAtprotoRepoStrongRef.Main>\n | $Typed<ChatBskyConvoDefs.MessageRef>\n | $Typed<ChatBskyConvoDefs.ConvoRef>\n | { $type: string }\n subjectBlobCids: string[]\n createdBy: string\n createdAt: string\n creatorHandle?: string\n subjectHandle?: string\n modTool?: ModTool\n}\n\nconst hashModEventView = 'modEventView'\n\nexport function isModEventView<V>(v: V) {\n return is$typed(v, id, hashModEventView)\n}\n\nexport function validateModEventView<V>(v: V) {\n return validate<ModEventView & V>(v, id, hashModEventView)\n}\n\nexport interface ModEventViewDetail {\n $type?: 'tools.ozone.moderation.defs#modEventViewDetail'\n id: number\n event:\n | $Typed<ModEventTakedown>\n | $Typed<ModEventReverseTakedown>\n | $Typed<ModEventComment>\n | $Typed<ModEventReport>\n | $Typed<ModEventLabel>\n | $Typed<ModEventAcknowledge>\n | $Typed<ModEventEscalate>\n | $Typed<ModEventMute>\n | $Typed<ModEventUnmute>\n | $Typed<ModEventMuteReporter>\n | $Typed<ModEventUnmuteReporter>\n | $Typed<ModEventEmail>\n | $Typed<ModEventResolveAppeal>\n | $Typed<ModEventDivert>\n | $Typed<ModEventTag>\n | $Typed<AccountEvent>\n | $Typed<IdentityEvent>\n | $Typed<RecordEvent>\n | $Typed<ModEventPriorityScore>\n | $Typed<AgeAssuranceEvent>\n | $Typed<AgeAssuranceOverrideEvent>\n | $Typed<AgeAssurancePurgeEvent>\n | $Typed<RevokeAccountCredentialsEvent>\n | $Typed<ScheduleTakedownEvent>\n | $Typed<CancelScheduledTakedownEvent>\n | { $type: string }\n subject:\n | $Typed<RepoView>\n | $Typed<RepoViewNotFound>\n | $Typed<RecordView>\n | $Typed<RecordViewNotFound>\n | $Typed<ConvoView>\n | { $type: string }\n subjectBlobs: BlobView[]\n createdBy: string\n createdAt: string\n modTool?: ModTool\n}\n\nconst hashModEventViewDetail = 'modEventViewDetail'\n\nexport function isModEventViewDetail<V>(v: V) {\n return is$typed(v, id, hashModEventViewDetail)\n}\n\nexport function validateModEventViewDetail<V>(v: V) {\n return validate<ModEventViewDetail & V>(v, id, hashModEventViewDetail)\n}\n\nexport interface SubjectStatusView {\n $type?: 'tools.ozone.moderation.defs#subjectStatusView'\n id: number\n subject:\n | $Typed<ComAtprotoAdminDefs.RepoRef>\n | $Typed<ComAtprotoRepoStrongRef.Main>\n | $Typed<ChatBskyConvoDefs.MessageRef>\n | $Typed<ChatBskyConvoDefs.ConvoRef>\n | { $type: string }\n hosting?: $Typed<AccountHosting> | $Typed<RecordHosting> | { $type: string }\n subjectBlobCids?: string[]\n subjectRepoHandle?: string\n /** Timestamp referencing when the last update was made to the moderation status of the subject */\n updatedAt: string\n /** Timestamp referencing the first moderation status impacting event was emitted on the subject */\n createdAt: string\n reviewState: SubjectReviewState\n /** Sticky comment on the subject. */\n comment?: string\n /** Numeric value representing the level of priority. Higher score means higher priority. */\n priorityScore?: number\n muteUntil?: string\n muteReportingUntil?: string\n lastReviewedBy?: string\n lastReviewedAt?: string\n lastReportedAt?: string\n /** Timestamp referencing when the author of the subject appealed a moderation action */\n lastAppealedAt?: string\n takendown?: boolean\n /** True indicates that the a previously taken moderator action was appealed against, by the author of the content. False indicates last appeal was resolved by moderators. */\n appealed?: boolean\n suspendUntil?: string\n tags?: string[]\n accountStats?: AccountStats\n recordsStats?: RecordsStats\n accountStrike?: AccountStrike\n /** Current age assurance state of the subject. */\n ageAssuranceState?:\n 'pending' | 'assured' | 'unknown' | 'reset' | 'blocked' | (string & {})\n /** Whether or not the last successful update to age assurance was made by the user or admin. */\n ageAssuranceUpdatedBy?: 'admin' | 'user' | (string & {})\n}\n\nconst hashSubjectStatusView = 'subjectStatusView'\n\nexport function isSubjectStatusView<V>(v: V) {\n return is$typed(v, id, hashSubjectStatusView)\n}\n\nexport function validateSubjectStatusView<V>(v: V) {\n return validate<SubjectStatusView & V>(v, id, hashSubjectStatusView)\n}\n\n/** Detailed view of a subject. For record subjects, the author's repo and profile will be returned. */\nexport interface SubjectView {\n $type?: 'tools.ozone.moderation.defs#subjectView'\n type: ComAtprotoModerationDefs.SubjectType\n subject: string\n status?: SubjectStatusView\n repo?: RepoViewDetail\n profile?: { $type: string }\n record?: RecordViewDetail\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/** Statistics about a particular account subject */\nexport interface AccountStats {\n $type?: 'tools.ozone.moderation.defs#accountStats'\n /** Total number of reports on the account */\n reportCount?: number\n /** Total number of appeals against a moderation action on the account */\n appealCount?: number\n /** Number of times the account was suspended */\n suspendCount?: number\n /** Number of times the account was escalated */\n escalateCount?: number\n /** Number of times the account was taken down */\n takedownCount?: number\n}\n\nconst hashAccountStats = 'accountStats'\n\nexport function isAccountStats<V>(v: V) {\n return is$typed(v, id, hashAccountStats)\n}\n\nexport function validateAccountStats<V>(v: V) {\n return validate<AccountStats & V>(v, id, hashAccountStats)\n}\n\n/** Statistics about a set of record subject items */\nexport interface RecordsStats {\n $type?: 'tools.ozone.moderation.defs#recordsStats'\n /** Cumulative sum of the number of reports on the items in the set */\n totalReports?: number\n /** Number of items that were reported at least once */\n reportedCount?: number\n /** Number of items that were escalated at least once */\n escalatedCount?: number\n /** Number of items that were appealed at least once */\n appealedCount?: number\n /** Total number of item in the set */\n subjectCount?: number\n /** Number of item currently in \"reviewOpen\" or \"reviewEscalated\" state */\n pendingCount?: number\n /** Number of item currently in \"reviewNone\" or \"reviewClosed\" state */\n processedCount?: number\n /** Number of item currently taken down */\n takendownCount?: number\n}\n\nconst hashRecordsStats = 'recordsStats'\n\nexport function isRecordsStats<V>(v: V) {\n return is$typed(v, id, hashRecordsStats)\n}\n\nexport function validateRecordsStats<V>(v: V) {\n return validate<RecordsStats & V>(v, id, hashRecordsStats)\n}\n\n/** Strike information for an account */\nexport interface AccountStrike {\n $type?: 'tools.ozone.moderation.defs#accountStrike'\n /** Current number of active strikes (excluding expired strikes) */\n activeStrikeCount?: number\n /** Total number of strikes ever received (including expired strikes) */\n totalStrikeCount?: number\n /** Timestamp of the first strike received */\n firstStrikeAt?: string\n /** Timestamp of the most recent strike received */\n lastStrikeAt?: string\n}\n\nconst hashAccountStrike = 'accountStrike'\n\nexport function isAccountStrike<V>(v: V) {\n return is$typed(v, id, hashAccountStrike)\n}\n\nexport function validateAccountStrike<V>(v: V) {\n return validate<AccountStrike & V>(v, id, hashAccountStrike)\n}\n\nexport type SubjectReviewState =\n | 'tools.ozone.moderation.defs#reviewOpen'\n | 'tools.ozone.moderation.defs#reviewEscalated'\n | 'tools.ozone.moderation.defs#reviewClosed'\n | 'tools.ozone.moderation.defs#reviewNone'\n | (string & {})\n\n/** Moderator review status of a subject: Open. Indicates that the subject needs to be reviewed by a moderator */\nexport const REVIEWOPEN = `${id}#reviewOpen`\n/** Moderator review status of a subject: Escalated. Indicates that the subject was escalated for review by a moderator */\nexport const REVIEWESCALATED = `${id}#reviewEscalated`\n/** Moderator review status of a subject: Closed. Indicates that the subject was already reviewed and resolved by a moderator */\nexport const REVIEWCLOSED = `${id}#reviewClosed`\n/** Moderator review status of a subject: Unnecessary. Indicates that the subject does not need a review at the moment but there is probably some moderation related metadata available for it */\nexport const REVIEWNONE = `${id}#reviewNone`\n\n/** Take down a subject permanently or temporarily */\nexport interface ModEventTakedown {\n $type?: 'tools.ozone.moderation.defs#modEventTakedown'\n comment?: string\n /** Indicates how long the takedown should be in effect before automatically expiring. */\n durationInHours?: number\n /** If true, all other reports on content authored by this account will be resolved (acknowledged). */\n acknowledgeAccountSubjects?: boolean\n /** Names/Keywords of the policies that drove the decision. */\n policies?: string[]\n /** Severity level of the violation (e.g., 'sev-0', 'sev-1', 'sev-2', etc.). */\n severityLevel?: string\n /** List of services where the takedown should be applied. If empty or not provided, takedown is applied on all configured services. */\n targetServices?: ('appview' | 'pds' | (string & {}))[]\n /** Number of strikes to assign to the user for this violation. */\n strikeCount?: number\n /** When the strike should expire. If not provided, the strike never expires. */\n strikeExpiresAt?: string\n}\n\nconst hashModEventTakedown = 'modEventTakedown'\n\nexport function isModEventTakedown<V>(v: V) {\n return is$typed(v, id, hashModEventTakedown)\n}\n\nexport function validateModEventTakedown<V>(v: V) {\n return validate<ModEventTakedown & V>(v, id, hashModEventTakedown)\n}\n\n/** Revert take down action on a subject */\nexport interface ModEventReverseTakedown {\n $type?: 'tools.ozone.moderation.defs#modEventReverseTakedown'\n /** Describe reasoning behind the reversal. */\n comment?: string\n /** Names/Keywords of the policy infraction for which takedown is being reversed. */\n policies?: string[]\n /** Severity level of the violation. Usually set from the last policy infraction's severity. */\n severityLevel?: string\n /** Number of strikes to subtract from the user's strike count. Usually set from the last policy infraction's severity. */\n strikeCount?: number\n}\n\nconst hashModEventReverseTakedown = 'modEventReverseTakedown'\n\nexport function isModEventReverseTakedown<V>(v: V) {\n return is$typed(v, id, hashModEventReverseTakedown)\n}\n\nexport function validateModEventReverseTakedown<V>(v: V) {\n return validate<ModEventReverseTakedown & V>(\n v,\n id,\n hashModEventReverseTakedown,\n )\n}\n\n/** Resolve appeal on a subject */\nexport interface ModEventResolveAppeal {\n $type?: 'tools.ozone.moderation.defs#modEventResolveAppeal'\n /** Describe resolution. */\n comment?: string\n}\n\nconst hashModEventResolveAppeal = 'modEventResolveAppeal'\n\nexport function isModEventResolveAppeal<V>(v: V) {\n return is$typed(v, id, hashModEventResolveAppeal)\n}\n\nexport function validateModEventResolveAppeal<V>(v: V) {\n return validate<ModEventResolveAppeal & V>(v, id, hashModEventResolveAppeal)\n}\n\n/** Add a comment to a subject. An empty comment will clear any previously set sticky comment. */\nexport interface ModEventComment {\n $type?: 'tools.ozone.moderation.defs#modEventComment'\n comment?: string\n /** Make the comment persistent on the subject */\n sticky?: boolean\n}\n\nconst hashModEventComment = 'modEventComment'\n\nexport function isModEventComment<V>(v: V) {\n return is$typed(v, id, hashModEventComment)\n}\n\nexport function validateModEventComment<V>(v: V) {\n return validate<ModEventComment & V>(v, id, hashModEventComment)\n}\n\n/** Report a subject */\nexport interface ModEventReport {\n $type?: 'tools.ozone.moderation.defs#modEventReport'\n comment?: string\n /** Set to true if the reporter was muted from reporting at the time of the event. These reports won't impact the reviewState of the subject. */\n isReporterMuted?: boolean\n reportType: ComAtprotoModerationDefs.ReasonType\n}\n\nconst hashModEventReport = 'modEventReport'\n\nexport function isModEventReport<V>(v: V) {\n return is$typed(v, id, hashModEventReport)\n}\n\nexport function validateModEventReport<V>(v: V) {\n return validate<ModEventReport & V>(v, id, hashModEventReport)\n}\n\n/** Apply/Negate labels on a subject */\nexport interface ModEventLabel {\n $type?: 'tools.ozone.moderation.defs#modEventLabel'\n comment?: string\n createLabelVals: string[]\n negateLabelVals: string[]\n /** Indicates how long the label will remain on the subject. Only applies on labels that are being added. */\n durationInHours?: number\n}\n\nconst hashModEventLabel = 'modEventLabel'\n\nexport function isModEventLabel<V>(v: V) {\n return is$typed(v, id, hashModEventLabel)\n}\n\nexport function validateModEventLabel<V>(v: V) {\n return validate<ModEventLabel & V>(v, id, hashModEventLabel)\n}\n\n/** Set priority score of the subject. Higher score means higher priority. */\nexport interface ModEventPriorityScore {\n $type?: 'tools.ozone.moderation.defs#modEventPriorityScore'\n comment?: string\n score: number\n}\n\nconst hashModEventPriorityScore = 'modEventPriorityScore'\n\nexport function isModEventPriorityScore<V>(v: V) {\n return is$typed(v, id, hashModEventPriorityScore)\n}\n\nexport function validateModEventPriorityScore<V>(v: V) {\n return validate<ModEventPriorityScore & V>(v, id, hashModEventPriorityScore)\n}\n\n/** Age assurance info coming directly from users. Only works on DID subjects. */\nexport interface AgeAssuranceEvent {\n $type?: 'tools.ozone.moderation.defs#ageAssuranceEvent'\n /** The date and time of this write operation. */\n createdAt: string\n /** The unique identifier for this instance of the age assurance flow, in UUID format. */\n attemptId: string\n /** The status of the Age Assurance process. */\n status: 'unknown' | 'pending' | 'assured' | (string & {})\n access?: AppBskyAgeassuranceDefs.Access\n /** The ISO 3166-1 alpha-2 country code provided when beginning the Age Assurance flow. */\n countryCode?: string\n /** The ISO 3166-2 region code provided when beginning the Age Assurance flow. */\n regionCode?: string\n /** The IP address used when initiating the AA flow. */\n initIp?: string\n /** The user agent used when initiating the AA flow. */\n initUa?: string\n /** The IP address used when completing the AA flow. */\n completeIp?: string\n /** The user agent used when completing the AA flow. */\n completeUa?: string\n}\n\nconst hashAgeAssuranceEvent = 'ageAssuranceEvent'\n\nexport function isAgeAssuranceEvent<V>(v: V) {\n return is$typed(v, id, hashAgeAssuranceEvent)\n}\n\nexport function validateAgeAssuranceEvent<V>(v: V) {\n return validate<AgeAssuranceEvent & V>(v, id, hashAgeAssuranceEvent)\n}\n\n/** Age assurance status override by moderators. Only works on DID subjects. */\nexport interface AgeAssuranceOverrideEvent {\n $type?: 'tools.ozone.moderation.defs#ageAssuranceOverrideEvent'\n /** The status to be set for the user decided by a moderator, overriding whatever value the user had previously. Use reset to default to original state. */\n status: 'assured' | 'reset' | 'blocked' | (string & {})\n access?: AppBskyAgeassuranceDefs.Access\n /** Comment describing the reason for the override. */\n comment: string\n}\n\nconst hashAgeAssuranceOverrideEvent = 'ageAssuranceOverrideEvent'\n\nexport function isAgeAssuranceOverrideEvent<V>(v: V) {\n return is$typed(v, id, hashAgeAssuranceOverrideEvent)\n}\n\nexport function validateAgeAssuranceOverrideEvent<V>(v: V) {\n return validate<AgeAssuranceOverrideEvent & V>(\n v,\n id,\n hashAgeAssuranceOverrideEvent,\n )\n}\n\n/** Purges all age assurance events for the subject. Only works on DID subjects. Moderator-only. */\nexport interface AgeAssurancePurgeEvent {\n $type?: 'tools.ozone.moderation.defs#ageAssurancePurgeEvent'\n /** Comment describing the reason for the purge. */\n comment: string\n}\n\nconst hashAgeAssurancePurgeEvent = 'ageAssurancePurgeEvent'\n\nexport function isAgeAssurancePurgeEvent<V>(v: V) {\n return is$typed(v, id, hashAgeAssurancePurgeEvent)\n}\n\nexport function validateAgeAssurancePurgeEvent<V>(v: V) {\n return validate<AgeAssurancePurgeEvent & V>(v, id, hashAgeAssurancePurgeEvent)\n}\n\n/** Account credentials revocation by moderators. Only works on DID subjects. */\nexport interface RevokeAccountCredentialsEvent {\n $type?: 'tools.ozone.moderation.defs#revokeAccountCredentialsEvent'\n /** Comment describing the reason for the revocation. */\n comment: string\n}\n\nconst hashRevokeAccountCredentialsEvent = 'revokeAccountCredentialsEvent'\n\nexport function isRevokeAccountCredentialsEvent<V>(v: V) {\n return is$typed(v, id, hashRevokeAccountCredentialsEvent)\n}\n\nexport function validateRevokeAccountCredentialsEvent<V>(v: V) {\n return validate<RevokeAccountCredentialsEvent & V>(\n v,\n id,\n hashRevokeAccountCredentialsEvent,\n )\n}\n\nexport interface ModEventAcknowledge {\n $type?: 'tools.ozone.moderation.defs#modEventAcknowledge'\n comment?: string\n /** If true, all other reports on content authored by this account will be resolved (acknowledged). */\n acknowledgeAccountSubjects?: boolean\n}\n\nconst hashModEventAcknowledge = 'modEventAcknowledge'\n\nexport function isModEventAcknowledge<V>(v: V) {\n return is$typed(v, id, hashModEventAcknowledge)\n}\n\nexport function validateModEventAcknowledge<V>(v: V) {\n return validate<ModEventAcknowledge & V>(v, id, hashModEventAcknowledge)\n}\n\nexport interface ModEventEscalate {\n $type?: 'tools.ozone.moderation.defs#modEventEscalate'\n comment?: string\n}\n\nconst hashModEventEscalate = 'modEventEscalate'\n\nexport function isModEventEscalate<V>(v: V) {\n return is$typed(v, id, hashModEventEscalate)\n}\n\nexport function validateModEventEscalate<V>(v: V) {\n return validate<ModEventEscalate & V>(v, id, hashModEventEscalate)\n}\n\n/** Mute incoming reports on a subject */\nexport interface ModEventMute {\n $type?: 'tools.ozone.moderation.defs#modEventMute'\n comment?: string\n /** Indicates how long the subject should remain muted. */\n durationInHours: number\n}\n\nconst hashModEventMute = 'modEventMute'\n\nexport function isModEventMute<V>(v: V) {\n return is$typed(v, id, hashModEventMute)\n}\n\nexport function validateModEventMute<V>(v: V) {\n return validate<ModEventMute & V>(v, id, hashModEventMute)\n}\n\n/** Unmute action on a subject */\nexport interface ModEventUnmute {\n $type?: 'tools.ozone.moderation.defs#modEventUnmute'\n /** Describe reasoning behind the reversal. */\n comment?: string\n}\n\nconst hashModEventUnmute = 'modEventUnmute'\n\nexport function isModEventUnmute<V>(v: V) {\n return is$typed(v, id, hashModEventUnmute)\n}\n\nexport function validateModEventUnmute<V>(v: V) {\n return validate<ModEventUnmute & V>(v, id, hashModEventUnmute)\n}\n\n/** Mute incoming reports from an account */\nexport interface ModEventMuteReporter {\n $type?: 'tools.ozone.moderation.defs#modEventMuteReporter'\n comment?: string\n /** Indicates how long the account should remain muted. Falsy value here means a permanent mute. */\n durationInHours?: number\n}\n\nconst hashModEventMuteReporter = 'modEventMuteReporter'\n\nexport function isModEventMuteReporter<V>(v: V) {\n return is$typed(v, id, hashModEventMuteReporter)\n}\n\nexport function validateModEventMuteReporter<V>(v: V) {\n return validate<ModEventMuteReporter & V>(v, id, hashModEventMuteReporter)\n}\n\n/** Unmute incoming reports from an account */\nexport interface ModEventUnmuteReporter {\n $type?: 'tools.ozone.moderation.defs#modEventUnmuteReporter'\n /** Describe reasoning behind the reversal. */\n comment?: string\n}\n\nconst hashModEventUnmuteReporter = 'modEventUnmuteReporter'\n\nexport function isModEventUnmuteReporter<V>(v: V) {\n return is$typed(v, id, hashModEventUnmuteReporter)\n}\n\nexport function validateModEventUnmuteReporter<V>(v: V) {\n return validate<ModEventUnmuteReporter & V>(v, id, hashModEventUnmuteReporter)\n}\n\n/** Keep a log of outgoing email to a user */\nexport interface ModEventEmail {\n $type?: 'tools.ozone.moderation.defs#modEventEmail'\n /** The subject line of the email sent to the user. */\n subjectLine: string\n /** The content of the email sent to the user. */\n content?: string\n /** Additional comment about the outgoing comm. */\n comment?: string\n /** Names/Keywords of the policies that necessitated the email. */\n policies?: string[]\n /** Severity level of the violation. Normally 'sev-1' that adds strike on repeat offense */\n severityLevel?: string\n /** Number of strikes to assign to the user for this violation. Normally 0 as an indicator of a warning and only added as a strike on a repeat offense. */\n strikeCount?: number\n /** When the strike should expire. If not provided, the strike never expires. */\n strikeExpiresAt?: string\n /** Indicates whether the email was successfully delivered to the user's inbox. */\n isDelivered?: boolean\n}\n\nconst hashModEventEmail = 'modEventEmail'\n\nexport function isModEventEmail<V>(v: V) {\n return is$typed(v, id, hashModEventEmail)\n}\n\nexport function validateModEventEmail<V>(v: V) {\n return validate<ModEventEmail & V>(v, id, hashModEventEmail)\n}\n\n/** Divert a record's blobs to a 3rd party service for further scanning/tagging */\nexport interface ModEventDivert {\n $type?: 'tools.ozone.moderation.defs#modEventDivert'\n comment?: string\n}\n\nconst hashModEventDivert = 'modEventDivert'\n\nexport function isModEventDivert<V>(v: V) {\n return is$typed(v, id, hashModEventDivert)\n}\n\nexport function validateModEventDivert<V>(v: V) {\n return validate<ModEventDivert & V>(v, id, hashModEventDivert)\n}\n\n/** Add/Remove a tag on a subject */\nexport interface ModEventTag {\n $type?: 'tools.ozone.moderation.defs#modEventTag'\n /** Tags to be added to the subject. If already exists, won't be duplicated. */\n add: string[]\n /** Tags to be removed to the subject. Ignores a tag If it doesn't exist, won't be duplicated. */\n remove: string[]\n /** Additional comment about added/removed tags. */\n comment?: string\n /** Indicates how long the tags being added should remain before automatically being removed. Only applies to tags being added. */\n durationInHours?: number\n}\n\nconst hashModEventTag = 'modEventTag'\n\nexport function isModEventTag<V>(v: V) {\n return is$typed(v, id, hashModEventTag)\n}\n\nexport function validateModEventTag<V>(v: V) {\n return validate<ModEventTag & V>(v, id, hashModEventTag)\n}\n\n/** Logs account status related events on a repo subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking. */\nexport interface AccountEvent {\n $type?: 'tools.ozone.moderation.defs#accountEvent'\n comment?: string\n /** Indicates that the account has a repository which can be fetched from the host that emitted this event. */\n active: boolean\n status?:\n | 'unknown'\n | 'deactivated'\n | 'deleted'\n | 'takendown'\n | 'suspended'\n | 'tombstoned'\n | (string & {})\n timestamp: string\n}\n\nconst hashAccountEvent = 'accountEvent'\n\nexport function isAccountEvent<V>(v: V) {\n return is$typed(v, id, hashAccountEvent)\n}\n\nexport function validateAccountEvent<V>(v: V) {\n return validate<AccountEvent & V>(v, id, hashAccountEvent)\n}\n\n/** Logs identity related events on a repo subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking. */\nexport interface IdentityEvent {\n $type?: 'tools.ozone.moderation.defs#identityEvent'\n comment?: string\n handle?: string\n pdsHost?: string\n tombstone?: boolean\n timestamp: string\n}\n\nconst hashIdentityEvent = 'identityEvent'\n\nexport function isIdentityEvent<V>(v: V) {\n return is$typed(v, id, hashIdentityEvent)\n}\n\nexport function validateIdentityEvent<V>(v: V) {\n return validate<IdentityEvent & V>(v, id, hashIdentityEvent)\n}\n\n/** Logs lifecycle event on a record subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking. */\nexport interface RecordEvent {\n $type?: 'tools.ozone.moderation.defs#recordEvent'\n comment?: string\n op: 'create' | 'update' | 'delete' | (string & {})\n cid?: string\n timestamp: string\n}\n\nconst hashRecordEvent = 'recordEvent'\n\nexport function isRecordEvent<V>(v: V) {\n return is$typed(v, id, hashRecordEvent)\n}\n\nexport function validateRecordEvent<V>(v: V) {\n return validate<RecordEvent & V>(v, id, hashRecordEvent)\n}\n\n/** Logs a scheduled takedown action for an account. */\nexport interface ScheduleTakedownEvent {\n $type?: 'tools.ozone.moderation.defs#scheduleTakedownEvent'\n comment?: string\n executeAt?: string\n executeAfter?: string\n executeUntil?: string\n}\n\nconst hashScheduleTakedownEvent = 'scheduleTakedownEvent'\n\nexport function isScheduleTakedownEvent<V>(v: V) {\n return is$typed(v, id, hashScheduleTakedownEvent)\n}\n\nexport function validateScheduleTakedownEvent<V>(v: V) {\n return validate<ScheduleTakedownEvent & V>(v, id, hashScheduleTakedownEvent)\n}\n\n/** Logs cancellation of a scheduled takedown action for an account. */\nexport interface CancelScheduledTakedownEvent {\n $type?: 'tools.ozone.moderation.defs#cancelScheduledTakedownEvent'\n comment?: string\n}\n\nconst hashCancelScheduledTakedownEvent = 'cancelScheduledTakedownEvent'\n\nexport function isCancelScheduledTakedownEvent<V>(v: V) {\n return is$typed(v, id, hashCancelScheduledTakedownEvent)\n}\n\nexport function validateCancelScheduledTakedownEvent<V>(v: V) {\n return validate<CancelScheduledTakedownEvent & V>(\n v,\n id,\n hashCancelScheduledTakedownEvent,\n )\n}\n\nexport interface RepoView {\n $type?: 'tools.ozone.moderation.defs#repoView'\n did: string\n handle: string\n email?: string\n relatedRecords: { [_ in string]: unknown }[]\n indexedAt: string\n moderation: Moderation\n invitedBy?: ComAtprotoServerDefs.InviteCode\n invitesDisabled?: boolean\n inviteNote?: string\n deactivatedAt?: string\n threatSignatures?: ComAtprotoAdminDefs.ThreatSignature[]\n}\n\nconst hashRepoView = 'repoView'\n\nexport function isRepoView<V>(v: V) {\n return is$typed(v, id, hashRepoView)\n}\n\nexport function validateRepoView<V>(v: V) {\n return validate<RepoView & V>(v, id, hashRepoView)\n}\n\nexport interface RepoViewDetail {\n $type?: 'tools.ozone.moderation.defs#repoViewDetail'\n did: string\n handle: string\n email?: string\n relatedRecords: { [_ in string]: unknown }[]\n indexedAt: string\n moderation: ModerationDetail\n labels?: ComAtprotoLabelDefs.Label[]\n invitedBy?: ComAtprotoServerDefs.InviteCode\n invites?: ComAtprotoServerDefs.InviteCode[]\n invitesDisabled?: boolean\n inviteNote?: string\n emailConfirmedAt?: string\n deactivatedAt?: string\n threatSignatures?: ComAtprotoAdminDefs.ThreatSignature[]\n}\n\nconst hashRepoViewDetail = 'repoViewDetail'\n\nexport function isRepoViewDetail<V>(v: V) {\n return is$typed(v, id, hashRepoViewDetail)\n}\n\nexport function validateRepoViewDetail<V>(v: V) {\n return validate<RepoViewDetail & V>(v, id, hashRepoViewDetail)\n}\n\nexport interface RepoViewNotFound {\n $type?: 'tools.ozone.moderation.defs#repoViewNotFound'\n did: string\n}\n\nconst hashRepoViewNotFound = 'repoViewNotFound'\n\nexport function isRepoViewNotFound<V>(v: V) {\n return is$typed(v, id, hashRepoViewNotFound)\n}\n\nexport function validateRepoViewNotFound<V>(v: V) {\n return validate<RepoViewNotFound & V>(v, id, hashRepoViewNotFound)\n}\n\nexport interface RecordView {\n $type?: 'tools.ozone.moderation.defs#recordView'\n uri: string\n cid: string\n value: { [_ in string]: unknown }\n blobCids: string[]\n indexedAt: string\n moderation: Moderation\n repo: RepoView\n}\n\nconst hashRecordView = 'recordView'\n\nexport function isRecordView<V>(v: V) {\n return is$typed(v, id, hashRecordView)\n}\n\nexport function validateRecordView<V>(v: V) {\n return validate<RecordView & V>(v, id, hashRecordView)\n}\n\nexport interface RecordViewDetail {\n $type?: 'tools.ozone.moderation.defs#recordViewDetail'\n uri: string\n cid: string\n value: { [_ in string]: unknown }\n blobs: BlobView[]\n labels?: ComAtprotoLabelDefs.Label[]\n indexedAt: string\n moderation: ModerationDetail\n repo: RepoView\n}\n\nconst hashRecordViewDetail = 'recordViewDetail'\n\nexport function isRecordViewDetail<V>(v: V) {\n return is$typed(v, id, hashRecordViewDetail)\n}\n\nexport function validateRecordViewDetail<V>(v: V) {\n return validate<RecordViewDetail & V>(v, id, hashRecordViewDetail)\n}\n\nexport interface RecordViewNotFound {\n $type?: 'tools.ozone.moderation.defs#recordViewNotFound'\n uri: string\n}\n\nconst hashRecordViewNotFound = 'recordViewNotFound'\n\nexport function isRecordViewNotFound<V>(v: V) {\n return is$typed(v, id, hashRecordViewNotFound)\n}\n\nexport function validateRecordViewNotFound<V>(v: V) {\n return validate<RecordViewNotFound & V>(v, id, hashRecordViewNotFound)\n}\n\nexport interface ConvoView {\n $type?: 'tools.ozone.moderation.defs#convoView'\n did: string\n convoId: string\n}\n\nconst hashConvoView = 'convoView'\n\nexport function isConvoView<V>(v: V) {\n return is$typed(v, id, hashConvoView)\n}\n\nexport function validateConvoView<V>(v: V) {\n return validate<ConvoView & V>(v, id, hashConvoView)\n}\n\nexport interface Moderation {\n $type?: 'tools.ozone.moderation.defs#moderation'\n subjectStatus?: SubjectStatusView\n}\n\nconst hashModeration = 'moderation'\n\nexport function isModeration<V>(v: V) {\n return is$typed(v, id, hashModeration)\n}\n\nexport function validateModeration<V>(v: V) {\n return validate<Moderation & V>(v, id, hashModeration)\n}\n\nexport interface ModerationDetail {\n $type?: 'tools.ozone.moderation.defs#moderationDetail'\n subjectStatus?: SubjectStatusView\n}\n\nconst hashModerationDetail = 'moderationDetail'\n\nexport function isModerationDetail<V>(v: V) {\n return is$typed(v, id, hashModerationDetail)\n}\n\nexport function validateModerationDetail<V>(v: V) {\n return validate<ModerationDetail & V>(v, id, hashModerationDetail)\n}\n\nexport interface BlobView {\n $type?: 'tools.ozone.moderation.defs#blobView'\n cid: string\n mimeType: string\n size: number\n createdAt: string\n details?: $Typed<ImageDetails> | $Typed<VideoDetails> | { $type: string }\n moderation?: Moderation\n}\n\nconst hashBlobView = 'blobView'\n\nexport function isBlobView<V>(v: V) {\n return is$typed(v, id, hashBlobView)\n}\n\nexport function validateBlobView<V>(v: V) {\n return validate<BlobView & V>(v, id, hashBlobView)\n}\n\nexport interface ImageDetails {\n $type?: 'tools.ozone.moderation.defs#imageDetails'\n width: number\n height: number\n}\n\nconst hashImageDetails = 'imageDetails'\n\nexport function isImageDetails<V>(v: V) {\n return is$typed(v, id, hashImageDetails)\n}\n\nexport function validateImageDetails<V>(v: V) {\n return validate<ImageDetails & V>(v, id, hashImageDetails)\n}\n\nexport interface VideoDetails {\n $type?: 'tools.ozone.moderation.defs#videoDetails'\n width: number\n height: number\n length: number\n}\n\nconst hashVideoDetails = 'videoDetails'\n\nexport function isVideoDetails<V>(v: V) {\n return is$typed(v, id, hashVideoDetails)\n}\n\nexport function validateVideoDetails<V>(v: V) {\n return validate<VideoDetails & V>(v, id, hashVideoDetails)\n}\n\nexport interface AccountHosting {\n $type?: 'tools.ozone.moderation.defs#accountHosting'\n status:\n | 'takendown'\n | 'suspended'\n | 'deleted'\n | 'deactivated'\n | 'unknown'\n | (string & {})\n updatedAt?: string\n createdAt?: string\n deletedAt?: string\n deactivatedAt?: string\n reactivatedAt?: string\n}\n\nconst hashAccountHosting = 'accountHosting'\n\nexport function isAccountHosting<V>(v: V) {\n return is$typed(v, id, hashAccountHosting)\n}\n\nexport function validateAccountHosting<V>(v: V) {\n return validate<AccountHosting & V>(v, id, hashAccountHosting)\n}\n\nexport interface RecordHosting {\n $type?: 'tools.ozone.moderation.defs#recordHosting'\n status: 'deleted' | 'unknown' | (string & {})\n updatedAt?: string\n createdAt?: string\n deletedAt?: string\n}\n\nconst hashRecordHosting = 'recordHosting'\n\nexport function isRecordHosting<V>(v: V) {\n return is$typed(v, id, hashRecordHosting)\n}\n\nexport function validateRecordHosting<V>(v: V) {\n return validate<RecordHosting & V>(v, id, hashRecordHosting)\n}\n\nexport interface ReporterStats {\n $type?: 'tools.ozone.moderation.defs#reporterStats'\n did: string\n /** The total number of reports made by the user on accounts. */\n accountReportCount: number\n /** The total number of reports made by the user on records. */\n recordReportCount: number\n /** The total number of accounts reported by the user. */\n reportedAccountCount: number\n /** The total number of records reported by the user. */\n reportedRecordCount: number\n /** The total number of accounts taken down as a result of the user's reports. */\n takendownAccountCount: number\n /** The total number of records taken down as a result of the user's reports. */\n takendownRecordCount: number\n /** The total number of accounts labeled as a result of the user's reports. */\n labeledAccountCount: number\n /** The total number of records labeled as a result of the user's reports. */\n labeledRecordCount: number\n}\n\nconst hashReporterStats = 'reporterStats'\n\nexport function isReporterStats<V>(v: V) {\n return is$typed(v, id, hashReporterStats)\n}\n\nexport function validateReporterStats<V>(v: V) {\n return validate<ReporterStats & V>(v, id, hashReporterStats)\n}\n\n/** Moderation tool information for tracing the source of the action */\nexport interface ModTool {\n $type?: 'tools.ozone.moderation.defs#modTool'\n /** Name/identifier of the source (e.g., 'automod', 'ozone/workspace') */\n name: string\n /** Additional arbitrary metadata about the source */\n meta?: { [_ in string]: unknown }\n}\n\nconst hashModTool = 'modTool'\n\nexport function isModTool<V>(v: V) {\n return is$typed(v, id, hashModTool)\n}\n\nexport function validateModTool<V>(v: V) {\n return validate<ModTool & V>(v, id, hashModTool)\n}\n\n/** Moderation event timeline event for a PLC create operation */\nexport const TIMELINEEVENTPLCCREATE = `${id}#timelineEventPlcCreate`\n/** Moderation event timeline event for generic PLC operation */\nexport const TIMELINEEVENTPLCOPERATION = `${id}#timelineEventPlcOperation`\n/** Moderation event timeline event for a PLC tombstone operation */\nexport const TIMELINEEVENTPLCTOMBSTONE = `${id}#timelineEventPlcTombstone`\n\n/** View of a scheduled moderation action */\nexport interface ScheduledActionView {\n $type?: 'tools.ozone.moderation.defs#scheduledActionView'\n /** Auto-incrementing row ID */\n id: number\n /** Type of action to be executed */\n action: 'takedown' | (string & {})\n /** Serialized event object that will be propagated to the event when performed */\n eventData?: { [_ in string]: unknown }\n /** Subject DID for the action */\n did: string\n /** Exact time to execute the action */\n executeAt?: string\n /** Earliest time to execute the action (for randomized scheduling) */\n executeAfter?: string\n /** Latest time to execute the action (for randomized scheduling) */\n executeUntil?: string\n /** Whether execution time should be randomized within the specified range */\n randomizeExecution?: boolean\n /** DID of the user who created this scheduled action */\n createdBy: string\n /** When the scheduled action was created */\n createdAt: string\n /** When the scheduled action was last updated */\n updatedAt?: string\n /** Current status of the scheduled action */\n status: 'pending' | 'executed' | 'cancelled' | 'failed' | (string & {})\n /** When the action was last attempted to be executed */\n lastExecutedAt?: string\n /** Reason for the last execution failure */\n lastFailureReason?: string\n /** ID of the moderation event created when action was successfully executed */\n executionEventId?: number\n}\n\nconst hashScheduledActionView = 'scheduledActionView'\n\nexport function isScheduledActionView<V>(v: V) {\n return is$typed(v, id, hashScheduledActionView)\n}\n\nexport function validateScheduledActionView<V>(v: V) {\n return validate<ScheduledActionView & V>(v, id, hashScheduledActionView)\n}\n"]}
|
|
1
|
+
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/moderation/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;AAS5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,6BAA6B,CAAA;AA8CxC,MAAM,gBAAgB,GAAG,cAAc,CAAA;AAEvC,MAAM,UAAU,cAAc,CAAI,CAAI;IACpC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAA;AAC1C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAI,CAAI;IAC1C,OAAO,QAAQ,CAAmB,CAAC,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAA;AAC5D,CAAC;AA6CD,MAAM,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;AA6CD,MAAM,qBAAqB,G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EAAE,EAAE,uBAAuB,CAAC,CAAA;AACjD,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAI,CAAI;IACjD,OAAO,QAAQ,CAA0B,CAAC,EAAE,EAAE,EAAE,uBAAuB,CAAC,CAAA;AAC1E,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type 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'\nimport type * as ComAtprotoModerationDefs from '../../../com/atproto/moderation/defs.js'\nimport type * as AppBskyAgeassuranceDefs from '../../../app/bsky/ageassurance/defs.js'\nimport type * as ComAtprotoServerDefs from '../../../com/atproto/server/defs.js'\nimport type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.moderation.defs'\n\nexport interface ModEventView {\n $type?: 'tools.ozone.moderation.defs#modEventView'\n id: number\n event:\n | $Typed<ModEventTakedown>\n | $Typed<ModEventReverseTakedown>\n | $Typed<ModEventComment>\n | $Typed<ModEventReport>\n | $Typed<ModEventLabel>\n | $Typed<ModEventAcknowledge>\n | $Typed<ModEventEscalate>\n | $Typed<ModEventMute>\n | $Typed<ModEventUnmute>\n | $Typed<ModEventMuteReporter>\n | $Typed<ModEventUnmuteReporter>\n | $Typed<ModEventEmail>\n | $Typed<ModEventResolveAppeal>\n | $Typed<ModEventDivert>\n | $Typed<ModEventTag>\n | $Typed<AccountEvent>\n | $Typed<IdentityEvent>\n | $Typed<RecordEvent>\n | $Typed<ModEventPriorityScore>\n | $Typed<AgeAssuranceEvent>\n | $Typed<AgeAssuranceOverrideEvent>\n | $Typed<AgeAssurancePurgeEvent>\n | $Typed<RevokeAccountCredentialsEvent>\n | $Typed<ScheduleTakedownEvent>\n | $Typed<CancelScheduledTakedownEvent>\n | { $type: string }\n subject:\n | $Typed<ComAtprotoAdminDefs.RepoRef>\n | $Typed<ComAtprotoRepoStrongRef.Main>\n | $Typed<ChatBskyConvoDefs.MessageRef>\n | $Typed<ChatBskyConvoDefs.ConvoRef>\n | { $type: string }\n subjectBlobCids: string[]\n createdBy: string\n createdAt: string\n creatorHandle?: string\n subjectHandle?: string\n modTool?: ModTool\n}\n\nconst hashModEventView = 'modEventView'\n\nexport function isModEventView<V>(v: V) {\n return is$typed(v, id, hashModEventView)\n}\n\nexport function validateModEventView<V>(v: V) {\n return validate<ModEventView & V>(v, id, hashModEventView)\n}\n\nexport interface ModEventViewDetail {\n $type?: 'tools.ozone.moderation.defs#modEventViewDetail'\n id: number\n event:\n | $Typed<ModEventTakedown>\n | $Typed<ModEventReverseTakedown>\n | $Typed<ModEventComment>\n | $Typed<ModEventReport>\n | $Typed<ModEventLabel>\n | $Typed<ModEventAcknowledge>\n | $Typed<ModEventEscalate>\n | $Typed<ModEventMute>\n | $Typed<ModEventUnmute>\n | $Typed<ModEventMuteReporter>\n | $Typed<ModEventUnmuteReporter>\n | $Typed<ModEventEmail>\n | $Typed<ModEventResolveAppeal>\n | $Typed<ModEventDivert>\n | $Typed<ModEventTag>\n | $Typed<AccountEvent>\n | $Typed<IdentityEvent>\n | $Typed<RecordEvent>\n | $Typed<ModEventPriorityScore>\n | $Typed<AgeAssuranceEvent>\n | $Typed<AgeAssuranceOverrideEvent>\n | $Typed<AgeAssurancePurgeEvent>\n | $Typed<RevokeAccountCredentialsEvent>\n | $Typed<ScheduleTakedownEvent>\n | $Typed<CancelScheduledTakedownEvent>\n | { $type: string }\n subject:\n | $Typed<RepoView>\n | $Typed<RepoViewNotFound>\n | $Typed<RecordView>\n | $Typed<RecordViewNotFound>\n | $Typed<ConvoView>\n | { $type: string }\n subjectBlobs: BlobView[]\n createdBy: string\n createdAt: string\n modTool?: ModTool\n}\n\nconst hashModEventViewDetail = 'modEventViewDetail'\n\nexport function isModEventViewDetail<V>(v: V) {\n return is$typed(v, id, hashModEventViewDetail)\n}\n\nexport function validateModEventViewDetail<V>(v: V) {\n return validate<ModEventViewDetail & V>(v, id, hashModEventViewDetail)\n}\n\nexport interface SubjectStatusView {\n $type?: 'tools.ozone.moderation.defs#subjectStatusView'\n id: number\n subject:\n | $Typed<ComAtprotoAdminDefs.RepoRef>\n | $Typed<ComAtprotoRepoStrongRef.Main>\n | $Typed<ChatBskyConvoDefs.MessageRef>\n | $Typed<ChatBskyConvoDefs.ConvoRef>\n | { $type: string }\n hosting?: $Typed<AccountHosting> | $Typed<RecordHosting> | { $type: string }\n subjectBlobCids?: string[]\n subjectRepoHandle?: string\n /** Timestamp referencing when the last update was made to the moderation status of the subject */\n updatedAt: string\n /** Timestamp referencing the first moderation status impacting event was emitted on the subject */\n createdAt: string\n reviewState: SubjectReviewState\n /** Sticky comment on the subject. */\n comment?: string\n /** Numeric value representing the level of priority. Higher score means higher priority. */\n priorityScore?: number\n muteUntil?: string\n muteReportingUntil?: string\n lastReviewedBy?: string\n lastReviewedAt?: string\n lastReportedAt?: string\n /** Timestamp referencing when the author of the subject appealed a moderation action */\n lastAppealedAt?: string\n takendown?: boolean\n /** True indicates that the a previously taken moderator action was appealed against, by the author of the content. False indicates last appeal was resolved by moderators. */\n appealed?: boolean\n suspendUntil?: string\n tags?: string[]\n accountStats?: AccountStats\n recordsStats?: RecordsStats\n accountStrike?: AccountStrike\n /** Current age assurance state of the subject. */\n ageAssuranceState?:\n 'pending' | 'assured' | 'unknown' | 'reset' | 'blocked' | (string & {})\n /** Whether or not the last successful update to age assurance was made by the user or admin. */\n ageAssuranceUpdatedBy?: 'admin' | 'user' | (string & {})\n}\n\nconst hashSubjectStatusView = 'subjectStatusView'\n\nexport function isSubjectStatusView<V>(v: V) {\n return is$typed(v, id, hashSubjectStatusView)\n}\n\nexport function validateSubjectStatusView<V>(v: V) {\n return validate<SubjectStatusView & V>(v, id, hashSubjectStatusView)\n}\n\n/** Detailed view of a subject. For record subjects, the author's repo and profile will be returned. */\nexport interface SubjectView {\n $type?: 'tools.ozone.moderation.defs#subjectView'\n type: ComAtprotoModerationDefs.SubjectType\n subject: string\n status?: SubjectStatusView\n repo?: RepoViewDetail\n profile?: { $type: string }\n record?: RecordViewDetail\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/** Statistics about a particular account subject */\nexport interface AccountStats {\n $type?: 'tools.ozone.moderation.defs#accountStats'\n /** Total number of reports on the account */\n reportCount?: number\n /** Total number of appeals against a moderation action on the account */\n appealCount?: number\n /** Number of times the account was suspended */\n suspendCount?: number\n /** Number of times the account was escalated */\n escalateCount?: number\n /** Number of times the account was taken down */\n takedownCount?: number\n}\n\nconst hashAccountStats = 'accountStats'\n\nexport function isAccountStats<V>(v: V) {\n return is$typed(v, id, hashAccountStats)\n}\n\nexport function validateAccountStats<V>(v: V) {\n return validate<AccountStats & V>(v, id, hashAccountStats)\n}\n\n/** Statistics about a set of record subject items */\nexport interface RecordsStats {\n $type?: 'tools.ozone.moderation.defs#recordsStats'\n /** Cumulative sum of the number of reports on the items in the set */\n totalReports?: number\n /** Number of items that were reported at least once */\n reportedCount?: number\n /** Number of items that were escalated at least once */\n escalatedCount?: number\n /** Number of items that were appealed at least once */\n appealedCount?: number\n /** Total number of item in the set */\n subjectCount?: number\n /** Number of item currently in \"reviewOpen\" or \"reviewEscalated\" state */\n pendingCount?: number\n /** Number of item currently in \"reviewNone\" or \"reviewClosed\" state */\n processedCount?: number\n /** Number of item currently taken down */\n takendownCount?: number\n}\n\nconst hashRecordsStats = 'recordsStats'\n\nexport function isRecordsStats<V>(v: V) {\n return is$typed(v, id, hashRecordsStats)\n}\n\nexport function validateRecordsStats<V>(v: V) {\n return validate<RecordsStats & V>(v, id, hashRecordsStats)\n}\n\n/** Strike information for an account */\nexport interface AccountStrike {\n $type?: 'tools.ozone.moderation.defs#accountStrike'\n /** Current number of active strikes (excluding expired strikes) */\n activeStrikeCount?: number\n /** Total number of strikes ever received (including expired strikes) */\n totalStrikeCount?: number\n /** Timestamp of the first strike received */\n firstStrikeAt?: string\n /** Timestamp of the most recent strike received */\n lastStrikeAt?: string\n}\n\nconst hashAccountStrike = 'accountStrike'\n\nexport function isAccountStrike<V>(v: V) {\n return is$typed(v, id, hashAccountStrike)\n}\n\nexport function validateAccountStrike<V>(v: V) {\n return validate<AccountStrike & V>(v, id, hashAccountStrike)\n}\n\nexport type SubjectReviewState =\n | 'tools.ozone.moderation.defs#reviewOpen'\n | 'tools.ozone.moderation.defs#reviewEscalated'\n | 'tools.ozone.moderation.defs#reviewClosed'\n | 'tools.ozone.moderation.defs#reviewNone'\n | (string & {})\n\n/** Moderator review status of a subject: Open. Indicates that the subject needs to be reviewed by a moderator */\nexport const REVIEWOPEN = `${id}#reviewOpen`\n/** Moderator review status of a subject: Escalated. Indicates that the subject was escalated for review by a moderator */\nexport const REVIEWESCALATED = `${id}#reviewEscalated`\n/** Moderator review status of a subject: Closed. Indicates that the subject was already reviewed and resolved by a moderator */\nexport const REVIEWCLOSED = `${id}#reviewClosed`\n/** Moderator review status of a subject: Unnecessary. Indicates that the subject does not need a review at the moment but there is probably some moderation related metadata available for it */\nexport const REVIEWNONE = `${id}#reviewNone`\n\n/** Take down a subject permanently or temporarily */\nexport interface ModEventTakedown {\n $type?: 'tools.ozone.moderation.defs#modEventTakedown'\n comment?: string\n /** Indicates how long the takedown should be in effect before automatically expiring. */\n durationInHours?: number\n /** If true, all other reports on content authored by this account will be resolved (acknowledged). */\n acknowledgeAccountSubjects?: boolean\n /** Names/Keywords of the policies that drove the decision. */\n policies?: string[]\n /** Severity level of the violation (e.g., 'sev-0', 'sev-1', 'sev-2', etc.). */\n severityLevel?: string\n /** List of services where the takedown should be applied. If empty or not provided, takedown is applied on all configured services. */\n targetServices?: ('appview' | 'pds' | (string & {}))[]\n /** Number of strikes to assign to the user for this violation. */\n strikeCount?: number\n /** When the strike should expire. If not provided, the strike never expires. */\n strikeExpiresAt?: string\n}\n\nconst hashModEventTakedown = 'modEventTakedown'\n\nexport function isModEventTakedown<V>(v: V) {\n return is$typed(v, id, hashModEventTakedown)\n}\n\nexport function validateModEventTakedown<V>(v: V) {\n return validate<ModEventTakedown & V>(v, id, hashModEventTakedown)\n}\n\n/** Revert take down action on a subject */\nexport interface ModEventReverseTakedown {\n $type?: 'tools.ozone.moderation.defs#modEventReverseTakedown'\n /** Describe reasoning behind the reversal. */\n comment?: string\n /** Names/Keywords of the policy infraction for which takedown is being reversed. */\n policies?: string[]\n /** Severity level of the violation. Usually set from the last policy infraction's severity. */\n severityLevel?: string\n /** Number of strikes to subtract from the user's strike count. Usually set from the last policy infraction's severity. */\n strikeCount?: number\n}\n\nconst hashModEventReverseTakedown = 'modEventReverseTakedown'\n\nexport function isModEventReverseTakedown<V>(v: V) {\n return is$typed(v, id, hashModEventReverseTakedown)\n}\n\nexport function validateModEventReverseTakedown<V>(v: V) {\n return validate<ModEventReverseTakedown & V>(\n v,\n id,\n hashModEventReverseTakedown,\n )\n}\n\n/** Resolve appeal on a subject */\nexport interface ModEventResolveAppeal {\n $type?: 'tools.ozone.moderation.defs#modEventResolveAppeal'\n /** Describe resolution. */\n comment?: string\n}\n\nconst hashModEventResolveAppeal = 'modEventResolveAppeal'\n\nexport function isModEventResolveAppeal<V>(v: V) {\n return is$typed(v, id, hashModEventResolveAppeal)\n}\n\nexport function validateModEventResolveAppeal<V>(v: V) {\n return validate<ModEventResolveAppeal & V>(v, id, hashModEventResolveAppeal)\n}\n\n/** Add a comment to a subject. An empty comment will clear any previously set sticky comment. */\nexport interface ModEventComment {\n $type?: 'tools.ozone.moderation.defs#modEventComment'\n comment?: string\n /** Make the comment persistent on the subject */\n sticky?: boolean\n}\n\nconst hashModEventComment = 'modEventComment'\n\nexport function isModEventComment<V>(v: V) {\n return is$typed(v, id, hashModEventComment)\n}\n\nexport function validateModEventComment<V>(v: V) {\n return validate<ModEventComment & V>(v, id, hashModEventComment)\n}\n\n/** Report a subject */\nexport interface ModEventReport {\n $type?: 'tools.ozone.moderation.defs#modEventReport'\n /** Moderator who submitted this appeal on behalf of the affected account. Returned by moderator event APIs. */\n appealSubmittedBy?: string\n /** Action reference type recorded when this appeal was submitted. */\n appealActionType?: string\n appealActionId?: number\n appealLabel?: string\n comment?: string\n /** Set to true if the reporter was muted from reporting at the time of the event. These reports won't impact the reviewState of the subject. */\n isReporterMuted?: boolean\n reportType: ComAtprotoModerationDefs.ReasonType\n}\n\nconst hashModEventReport = 'modEventReport'\n\nexport function isModEventReport<V>(v: V) {\n return is$typed(v, id, hashModEventReport)\n}\n\nexport function validateModEventReport<V>(v: V) {\n return validate<ModEventReport & V>(v, id, hashModEventReport)\n}\n\n/** Apply/Negate labels on a subject */\nexport interface ModEventLabel {\n $type?: 'tools.ozone.moderation.defs#modEventLabel'\n comment?: string\n createLabelVals: string[]\n negateLabelVals: string[]\n /** Indicates how long the label will remain on the subject. Only applies on labels that are being added. */\n durationInHours?: number\n}\n\nconst hashModEventLabel = 'modEventLabel'\n\nexport function isModEventLabel<V>(v: V) {\n return is$typed(v, id, hashModEventLabel)\n}\n\nexport function validateModEventLabel<V>(v: V) {\n return validate<ModEventLabel & V>(v, id, hashModEventLabel)\n}\n\n/** Set priority score of the subject. Higher score means higher priority. */\nexport interface ModEventPriorityScore {\n $type?: 'tools.ozone.moderation.defs#modEventPriorityScore'\n comment?: string\n score: number\n}\n\nconst hashModEventPriorityScore = 'modEventPriorityScore'\n\nexport function isModEventPriorityScore<V>(v: V) {\n return is$typed(v, id, hashModEventPriorityScore)\n}\n\nexport function validateModEventPriorityScore<V>(v: V) {\n return validate<ModEventPriorityScore & V>(v, id, hashModEventPriorityScore)\n}\n\n/** Age assurance info coming directly from users. Only works on DID subjects. */\nexport interface AgeAssuranceEvent {\n $type?: 'tools.ozone.moderation.defs#ageAssuranceEvent'\n /** The date and time of this write operation. */\n createdAt: string\n /** The unique identifier for this instance of the age assurance flow, in UUID format. */\n attemptId: string\n /** The status of the Age Assurance process. */\n status: 'unknown' | 'pending' | 'assured' | (string & {})\n access?: AppBskyAgeassuranceDefs.Access\n /** The ISO 3166-1 alpha-2 country code provided when beginning the Age Assurance flow. */\n countryCode?: string\n /** The ISO 3166-2 region code provided when beginning the Age Assurance flow. */\n regionCode?: string\n /** The IP address used when initiating the AA flow. */\n initIp?: string\n /** The user agent used when initiating the AA flow. */\n initUa?: string\n /** The IP address used when completing the AA flow. */\n completeIp?: string\n /** The user agent used when completing the AA flow. */\n completeUa?: string\n}\n\nconst hashAgeAssuranceEvent = 'ageAssuranceEvent'\n\nexport function isAgeAssuranceEvent<V>(v: V) {\n return is$typed(v, id, hashAgeAssuranceEvent)\n}\n\nexport function validateAgeAssuranceEvent<V>(v: V) {\n return validate<AgeAssuranceEvent & V>(v, id, hashAgeAssuranceEvent)\n}\n\n/** Age assurance status override by moderators. Only works on DID subjects. */\nexport interface AgeAssuranceOverrideEvent {\n $type?: 'tools.ozone.moderation.defs#ageAssuranceOverrideEvent'\n /** The status to be set for the user decided by a moderator, overriding whatever value the user had previously. Use reset to default to original state. */\n status: 'assured' | 'reset' | 'blocked' | (string & {})\n access?: AppBskyAgeassuranceDefs.Access\n /** Comment describing the reason for the override. */\n comment: string\n}\n\nconst hashAgeAssuranceOverrideEvent = 'ageAssuranceOverrideEvent'\n\nexport function isAgeAssuranceOverrideEvent<V>(v: V) {\n return is$typed(v, id, hashAgeAssuranceOverrideEvent)\n}\n\nexport function validateAgeAssuranceOverrideEvent<V>(v: V) {\n return validate<AgeAssuranceOverrideEvent & V>(\n v,\n id,\n hashAgeAssuranceOverrideEvent,\n )\n}\n\n/** Purges all age assurance events for the subject. Only works on DID subjects. Moderator-only. */\nexport interface AgeAssurancePurgeEvent {\n $type?: 'tools.ozone.moderation.defs#ageAssurancePurgeEvent'\n /** Comment describing the reason for the purge. */\n comment: string\n}\n\nconst hashAgeAssurancePurgeEvent = 'ageAssurancePurgeEvent'\n\nexport function isAgeAssurancePurgeEvent<V>(v: V) {\n return is$typed(v, id, hashAgeAssurancePurgeEvent)\n}\n\nexport function validateAgeAssurancePurgeEvent<V>(v: V) {\n return validate<AgeAssurancePurgeEvent & V>(v, id, hashAgeAssurancePurgeEvent)\n}\n\n/** Account credentials revocation by moderators. Only works on DID subjects. */\nexport interface RevokeAccountCredentialsEvent {\n $type?: 'tools.ozone.moderation.defs#revokeAccountCredentialsEvent'\n /** Comment describing the reason for the revocation. */\n comment: string\n}\n\nconst hashRevokeAccountCredentialsEvent = 'revokeAccountCredentialsEvent'\n\nexport function isRevokeAccountCredentialsEvent<V>(v: V) {\n return is$typed(v, id, hashRevokeAccountCredentialsEvent)\n}\n\nexport function validateRevokeAccountCredentialsEvent<V>(v: V) {\n return validate<RevokeAccountCredentialsEvent & V>(\n v,\n id,\n hashRevokeAccountCredentialsEvent,\n )\n}\n\nexport interface ModEventAcknowledge {\n $type?: 'tools.ozone.moderation.defs#modEventAcknowledge'\n comment?: string\n /** If true, all other reports on content authored by this account will be resolved (acknowledged). */\n acknowledgeAccountSubjects?: boolean\n}\n\nconst hashModEventAcknowledge = 'modEventAcknowledge'\n\nexport function isModEventAcknowledge<V>(v: V) {\n return is$typed(v, id, hashModEventAcknowledge)\n}\n\nexport function validateModEventAcknowledge<V>(v: V) {\n return validate<ModEventAcknowledge & V>(v, id, hashModEventAcknowledge)\n}\n\nexport interface ModEventEscalate {\n $type?: 'tools.ozone.moderation.defs#modEventEscalate'\n comment?: string\n}\n\nconst hashModEventEscalate = 'modEventEscalate'\n\nexport function isModEventEscalate<V>(v: V) {\n return is$typed(v, id, hashModEventEscalate)\n}\n\nexport function validateModEventEscalate<V>(v: V) {\n return validate<ModEventEscalate & V>(v, id, hashModEventEscalate)\n}\n\n/** Mute incoming reports on a subject */\nexport interface ModEventMute {\n $type?: 'tools.ozone.moderation.defs#modEventMute'\n comment?: string\n /** Indicates how long the subject should remain muted. */\n durationInHours: number\n}\n\nconst hashModEventMute = 'modEventMute'\n\nexport function isModEventMute<V>(v: V) {\n return is$typed(v, id, hashModEventMute)\n}\n\nexport function validateModEventMute<V>(v: V) {\n return validate<ModEventMute & V>(v, id, hashModEventMute)\n}\n\n/** Unmute action on a subject */\nexport interface ModEventUnmute {\n $type?: 'tools.ozone.moderation.defs#modEventUnmute'\n /** Describe reasoning behind the reversal. */\n comment?: string\n}\n\nconst hashModEventUnmute = 'modEventUnmute'\n\nexport function isModEventUnmute<V>(v: V) {\n return is$typed(v, id, hashModEventUnmute)\n}\n\nexport function validateModEventUnmute<V>(v: V) {\n return validate<ModEventUnmute & V>(v, id, hashModEventUnmute)\n}\n\n/** Mute incoming reports from an account */\nexport interface ModEventMuteReporter {\n $type?: 'tools.ozone.moderation.defs#modEventMuteReporter'\n comment?: string\n /** Indicates how long the account should remain muted. Falsy value here means a permanent mute. */\n durationInHours?: number\n}\n\nconst hashModEventMuteReporter = 'modEventMuteReporter'\n\nexport function isModEventMuteReporter<V>(v: V) {\n return is$typed(v, id, hashModEventMuteReporter)\n}\n\nexport function validateModEventMuteReporter<V>(v: V) {\n return validate<ModEventMuteReporter & V>(v, id, hashModEventMuteReporter)\n}\n\n/** Unmute incoming reports from an account */\nexport interface ModEventUnmuteReporter {\n $type?: 'tools.ozone.moderation.defs#modEventUnmuteReporter'\n /** Describe reasoning behind the reversal. */\n comment?: string\n}\n\nconst hashModEventUnmuteReporter = 'modEventUnmuteReporter'\n\nexport function isModEventUnmuteReporter<V>(v: V) {\n return is$typed(v, id, hashModEventUnmuteReporter)\n}\n\nexport function validateModEventUnmuteReporter<V>(v: V) {\n return validate<ModEventUnmuteReporter & V>(v, id, hashModEventUnmuteReporter)\n}\n\n/** Keep a log of outgoing email to a user */\nexport interface ModEventEmail {\n $type?: 'tools.ozone.moderation.defs#modEventEmail'\n /** The subject line of the email sent to the user. */\n subjectLine: string\n /** The content of the email sent to the user. */\n content?: string\n /** Additional comment about the outgoing comm. */\n comment?: string\n /** Names/Keywords of the policies that necessitated the email. */\n policies?: string[]\n /** Severity level of the violation. Normally 'sev-1' that adds strike on repeat offense */\n severityLevel?: string\n /** Number of strikes to assign to the user for this violation. Normally 0 as an indicator of a warning and only added as a strike on a repeat offense. */\n strikeCount?: number\n /** When the strike should expire. If not provided, the strike never expires. */\n strikeExpiresAt?: string\n /** Indicates whether the email was successfully delivered to the user's inbox. */\n isDelivered?: boolean\n}\n\nconst hashModEventEmail = 'modEventEmail'\n\nexport function isModEventEmail<V>(v: V) {\n return is$typed(v, id, hashModEventEmail)\n}\n\nexport function validateModEventEmail<V>(v: V) {\n return validate<ModEventEmail & V>(v, id, hashModEventEmail)\n}\n\n/** Divert a record's blobs to a 3rd party service for further scanning/tagging */\nexport interface ModEventDivert {\n $type?: 'tools.ozone.moderation.defs#modEventDivert'\n comment?: string\n}\n\nconst hashModEventDivert = 'modEventDivert'\n\nexport function isModEventDivert<V>(v: V) {\n return is$typed(v, id, hashModEventDivert)\n}\n\nexport function validateModEventDivert<V>(v: V) {\n return validate<ModEventDivert & V>(v, id, hashModEventDivert)\n}\n\n/** Add/Remove a tag on a subject */\nexport interface ModEventTag {\n $type?: 'tools.ozone.moderation.defs#modEventTag'\n /** Tags to be added to the subject. If already exists, won't be duplicated. */\n add: string[]\n /** Tags to be removed to the subject. Ignores a tag If it doesn't exist, won't be duplicated. */\n remove: string[]\n /** Additional comment about added/removed tags. */\n comment?: string\n /** Indicates how long the tags being added should remain before automatically being removed. Only applies to tags being added. */\n durationInHours?: number\n}\n\nconst hashModEventTag = 'modEventTag'\n\nexport function isModEventTag<V>(v: V) {\n return is$typed(v, id, hashModEventTag)\n}\n\nexport function validateModEventTag<V>(v: V) {\n return validate<ModEventTag & V>(v, id, hashModEventTag)\n}\n\n/** Logs account status related events on a repo subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking. */\nexport interface AccountEvent {\n $type?: 'tools.ozone.moderation.defs#accountEvent'\n comment?: string\n /** Indicates that the account has a repository which can be fetched from the host that emitted this event. */\n active: boolean\n status?:\n | 'unknown'\n | 'deactivated'\n | 'deleted'\n | 'takendown'\n | 'suspended'\n | 'tombstoned'\n | (string & {})\n timestamp: string\n}\n\nconst hashAccountEvent = 'accountEvent'\n\nexport function isAccountEvent<V>(v: V) {\n return is$typed(v, id, hashAccountEvent)\n}\n\nexport function validateAccountEvent<V>(v: V) {\n return validate<AccountEvent & V>(v, id, hashAccountEvent)\n}\n\n/** Logs identity related events on a repo subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking. */\nexport interface IdentityEvent {\n $type?: 'tools.ozone.moderation.defs#identityEvent'\n comment?: string\n handle?: string\n pdsHost?: string\n tombstone?: boolean\n timestamp: string\n}\n\nconst hashIdentityEvent = 'identityEvent'\n\nexport function isIdentityEvent<V>(v: V) {\n return is$typed(v, id, hashIdentityEvent)\n}\n\nexport function validateIdentityEvent<V>(v: V) {\n return validate<IdentityEvent & V>(v, id, hashIdentityEvent)\n}\n\n/** Logs lifecycle event on a record subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking. */\nexport interface RecordEvent {\n $type?: 'tools.ozone.moderation.defs#recordEvent'\n comment?: string\n op: 'create' | 'update' | 'delete' | (string & {})\n cid?: string\n timestamp: string\n}\n\nconst hashRecordEvent = 'recordEvent'\n\nexport function isRecordEvent<V>(v: V) {\n return is$typed(v, id, hashRecordEvent)\n}\n\nexport function validateRecordEvent<V>(v: V) {\n return validate<RecordEvent & V>(v, id, hashRecordEvent)\n}\n\n/** Logs a scheduled takedown action for an account. */\nexport interface ScheduleTakedownEvent {\n $type?: 'tools.ozone.moderation.defs#scheduleTakedownEvent'\n comment?: string\n executeAt?: string\n executeAfter?: string\n executeUntil?: string\n}\n\nconst hashScheduleTakedownEvent = 'scheduleTakedownEvent'\n\nexport function isScheduleTakedownEvent<V>(v: V) {\n return is$typed(v, id, hashScheduleTakedownEvent)\n}\n\nexport function validateScheduleTakedownEvent<V>(v: V) {\n return validate<ScheduleTakedownEvent & V>(v, id, hashScheduleTakedownEvent)\n}\n\n/** Logs cancellation of a scheduled takedown action for an account. */\nexport interface CancelScheduledTakedownEvent {\n $type?: 'tools.ozone.moderation.defs#cancelScheduledTakedownEvent'\n comment?: string\n}\n\nconst hashCancelScheduledTakedownEvent = 'cancelScheduledTakedownEvent'\n\nexport function isCancelScheduledTakedownEvent<V>(v: V) {\n return is$typed(v, id, hashCancelScheduledTakedownEvent)\n}\n\nexport function validateCancelScheduledTakedownEvent<V>(v: V) {\n return validate<CancelScheduledTakedownEvent & V>(\n v,\n id,\n hashCancelScheduledTakedownEvent,\n )\n}\n\nexport interface RepoView {\n $type?: 'tools.ozone.moderation.defs#repoView'\n did: string\n handle: string\n email?: string\n relatedRecords: { [_ in string]: unknown }[]\n indexedAt: string\n moderation: Moderation\n invitedBy?: ComAtprotoServerDefs.InviteCode\n invitesDisabled?: boolean\n inviteNote?: string\n deactivatedAt?: string\n threatSignatures?: ComAtprotoAdminDefs.ThreatSignature[]\n}\n\nconst hashRepoView = 'repoView'\n\nexport function isRepoView<V>(v: V) {\n return is$typed(v, id, hashRepoView)\n}\n\nexport function validateRepoView<V>(v: V) {\n return validate<RepoView & V>(v, id, hashRepoView)\n}\n\nexport interface RepoViewDetail {\n $type?: 'tools.ozone.moderation.defs#repoViewDetail'\n did: string\n handle: string\n email?: string\n relatedRecords: { [_ in string]: unknown }[]\n indexedAt: string\n moderation: ModerationDetail\n labels?: ComAtprotoLabelDefs.Label[]\n invitedBy?: ComAtprotoServerDefs.InviteCode\n invites?: ComAtprotoServerDefs.InviteCode[]\n invitesDisabled?: boolean\n inviteNote?: string\n emailConfirmedAt?: string\n deactivatedAt?: string\n threatSignatures?: ComAtprotoAdminDefs.ThreatSignature[]\n}\n\nconst hashRepoViewDetail = 'repoViewDetail'\n\nexport function isRepoViewDetail<V>(v: V) {\n return is$typed(v, id, hashRepoViewDetail)\n}\n\nexport function validateRepoViewDetail<V>(v: V) {\n return validate<RepoViewDetail & V>(v, id, hashRepoViewDetail)\n}\n\nexport interface RepoViewNotFound {\n $type?: 'tools.ozone.moderation.defs#repoViewNotFound'\n did: string\n}\n\nconst hashRepoViewNotFound = 'repoViewNotFound'\n\nexport function isRepoViewNotFound<V>(v: V) {\n return is$typed(v, id, hashRepoViewNotFound)\n}\n\nexport function validateRepoViewNotFound<V>(v: V) {\n return validate<RepoViewNotFound & V>(v, id, hashRepoViewNotFound)\n}\n\nexport interface RecordView {\n $type?: 'tools.ozone.moderation.defs#recordView'\n uri: string\n cid: string\n value: { [_ in string]: unknown }\n blobCids: string[]\n indexedAt: string\n moderation: Moderation\n repo: RepoView\n}\n\nconst hashRecordView = 'recordView'\n\nexport function isRecordView<V>(v: V) {\n return is$typed(v, id, hashRecordView)\n}\n\nexport function validateRecordView<V>(v: V) {\n return validate<RecordView & V>(v, id, hashRecordView)\n}\n\nexport interface RecordViewDetail {\n $type?: 'tools.ozone.moderation.defs#recordViewDetail'\n uri: string\n cid: string\n value: { [_ in string]: unknown }\n blobs: BlobView[]\n labels?: ComAtprotoLabelDefs.Label[]\n indexedAt: string\n moderation: ModerationDetail\n repo: RepoView\n}\n\nconst hashRecordViewDetail = 'recordViewDetail'\n\nexport function isRecordViewDetail<V>(v: V) {\n return is$typed(v, id, hashRecordViewDetail)\n}\n\nexport function validateRecordViewDetail<V>(v: V) {\n return validate<RecordViewDetail & V>(v, id, hashRecordViewDetail)\n}\n\nexport interface RecordViewNotFound {\n $type?: 'tools.ozone.moderation.defs#recordViewNotFound'\n uri: string\n}\n\nconst hashRecordViewNotFound = 'recordViewNotFound'\n\nexport function isRecordViewNotFound<V>(v: V) {\n return is$typed(v, id, hashRecordViewNotFound)\n}\n\nexport function validateRecordViewNotFound<V>(v: V) {\n return validate<RecordViewNotFound & V>(v, id, hashRecordViewNotFound)\n}\n\nexport interface ConvoView {\n $type?: 'tools.ozone.moderation.defs#convoView'\n did: string\n convoId: string\n}\n\nconst hashConvoView = 'convoView'\n\nexport function isConvoView<V>(v: V) {\n return is$typed(v, id, hashConvoView)\n}\n\nexport function validateConvoView<V>(v: V) {\n return validate<ConvoView & V>(v, id, hashConvoView)\n}\n\nexport interface Moderation {\n $type?: 'tools.ozone.moderation.defs#moderation'\n subjectStatus?: SubjectStatusView\n}\n\nconst hashModeration = 'moderation'\n\nexport function isModeration<V>(v: V) {\n return is$typed(v, id, hashModeration)\n}\n\nexport function validateModeration<V>(v: V) {\n return validate<Moderation & V>(v, id, hashModeration)\n}\n\nexport interface ModerationDetail {\n $type?: 'tools.ozone.moderation.defs#moderationDetail'\n subjectStatus?: SubjectStatusView\n}\n\nconst hashModerationDetail = 'moderationDetail'\n\nexport function isModerationDetail<V>(v: V) {\n return is$typed(v, id, hashModerationDetail)\n}\n\nexport function validateModerationDetail<V>(v: V) {\n return validate<ModerationDetail & V>(v, id, hashModerationDetail)\n}\n\nexport interface BlobView {\n $type?: 'tools.ozone.moderation.defs#blobView'\n cid: string\n mimeType: string\n size: number\n createdAt: string\n details?: $Typed<ImageDetails> | $Typed<VideoDetails> | { $type: string }\n moderation?: Moderation\n}\n\nconst hashBlobView = 'blobView'\n\nexport function isBlobView<V>(v: V) {\n return is$typed(v, id, hashBlobView)\n}\n\nexport function validateBlobView<V>(v: V) {\n return validate<BlobView & V>(v, id, hashBlobView)\n}\n\nexport interface ImageDetails {\n $type?: 'tools.ozone.moderation.defs#imageDetails'\n width: number\n height: number\n}\n\nconst hashImageDetails = 'imageDetails'\n\nexport function isImageDetails<V>(v: V) {\n return is$typed(v, id, hashImageDetails)\n}\n\nexport function validateImageDetails<V>(v: V) {\n return validate<ImageDetails & V>(v, id, hashImageDetails)\n}\n\nexport interface VideoDetails {\n $type?: 'tools.ozone.moderation.defs#videoDetails'\n width: number\n height: number\n length: number\n}\n\nconst hashVideoDetails = 'videoDetails'\n\nexport function isVideoDetails<V>(v: V) {\n return is$typed(v, id, hashVideoDetails)\n}\n\nexport function validateVideoDetails<V>(v: V) {\n return validate<VideoDetails & V>(v, id, hashVideoDetails)\n}\n\nexport interface AccountHosting {\n $type?: 'tools.ozone.moderation.defs#accountHosting'\n status:\n | 'takendown'\n | 'suspended'\n | 'deleted'\n | 'deactivated'\n | 'unknown'\n | (string & {})\n updatedAt?: string\n createdAt?: string\n deletedAt?: string\n deactivatedAt?: string\n reactivatedAt?: string\n}\n\nconst hashAccountHosting = 'accountHosting'\n\nexport function isAccountHosting<V>(v: V) {\n return is$typed(v, id, hashAccountHosting)\n}\n\nexport function validateAccountHosting<V>(v: V) {\n return validate<AccountHosting & V>(v, id, hashAccountHosting)\n}\n\nexport interface RecordHosting {\n $type?: 'tools.ozone.moderation.defs#recordHosting'\n status: 'deleted' | 'unknown' | (string & {})\n updatedAt?: string\n createdAt?: string\n deletedAt?: string\n}\n\nconst hashRecordHosting = 'recordHosting'\n\nexport function isRecordHosting<V>(v: V) {\n return is$typed(v, id, hashRecordHosting)\n}\n\nexport function validateRecordHosting<V>(v: V) {\n return validate<RecordHosting & V>(v, id, hashRecordHosting)\n}\n\nexport interface ReporterStats {\n $type?: 'tools.ozone.moderation.defs#reporterStats'\n did: string\n /** The total number of reports made by the user on accounts. */\n accountReportCount: number\n /** The total number of reports made by the user on records. */\n recordReportCount: number\n /** The total number of accounts reported by the user. */\n reportedAccountCount: number\n /** The total number of records reported by the user. */\n reportedRecordCount: number\n /** The total number of accounts taken down as a result of the user's reports. */\n takendownAccountCount: number\n /** The total number of records taken down as a result of the user's reports. */\n takendownRecordCount: number\n /** The total number of accounts labeled as a result of the user's reports. */\n labeledAccountCount: number\n /** The total number of records labeled as a result of the user's reports. */\n labeledRecordCount: number\n}\n\nconst hashReporterStats = 'reporterStats'\n\nexport function isReporterStats<V>(v: V) {\n return is$typed(v, id, hashReporterStats)\n}\n\nexport function validateReporterStats<V>(v: V) {\n return validate<ReporterStats & V>(v, id, hashReporterStats)\n}\n\n/** Moderation tool information for tracing the source of the action */\nexport interface ModTool {\n $type?: 'tools.ozone.moderation.defs#modTool'\n /** Name/identifier of the source (e.g., 'automod', 'ozone/workspace') */\n name: string\n /** Additional arbitrary metadata about the source */\n meta?: { [_ in string]: unknown }\n}\n\nconst hashModTool = 'modTool'\n\nexport function isModTool<V>(v: V) {\n return is$typed(v, id, hashModTool)\n}\n\nexport function validateModTool<V>(v: V) {\n return validate<ModTool & V>(v, id, hashModTool)\n}\n\n/** Moderation event timeline event for a PLC create operation */\nexport const TIMELINEEVENTPLCCREATE = `${id}#timelineEventPlcCreate`\n/** Moderation event timeline event for generic PLC operation */\nexport const TIMELINEEVENTPLCOPERATION = `${id}#timelineEventPlcOperation`\n/** Moderation event timeline event for a PLC tombstone operation */\nexport const TIMELINEEVENTPLCTOMBSTONE = `${id}#timelineEventPlcTombstone`\n\n/** View of a scheduled moderation action */\nexport interface ScheduledActionView {\n $type?: 'tools.ozone.moderation.defs#scheduledActionView'\n /** Auto-incrementing row ID */\n id: number\n /** Type of action to be executed */\n action: 'takedown' | (string & {})\n /** Serialized event object that will be propagated to the event when performed */\n eventData?: { [_ in string]: unknown }\n /** Subject DID for the action */\n did: string\n /** Exact time to execute the action */\n executeAt?: string\n /** Earliest time to execute the action (for randomized scheduling) */\n executeAfter?: string\n /** Latest time to execute the action (for randomized scheduling) */\n executeUntil?: string\n /** Whether execution time should be randomized within the specified range */\n randomizeExecution?: boolean\n /** DID of the user who created this scheduled action */\n createdBy: string\n /** When the scheduled action was created */\n createdAt: string\n /** When the scheduled action was last updated */\n updatedAt?: string\n /** Current status of the scheduled action */\n status: 'pending' | 'executed' | 'cancelled' | 'failed' | (string & {})\n /** When the action was last attempted to be executed */\n lastExecutedAt?: string\n /** Reason for the last execution failure */\n lastFailureReason?: string\n /** ID of the moderation event created when action was successfully executed */\n executionEventId?: number\n}\n\nconst hashScheduledActionView = 'scheduledActionView'\n\nexport function isScheduledActionView<V>(v: V) {\n return is$typed(v, id, hashScheduledActionView)\n}\n\nexport function validateScheduledActionView<V>(v: V) {\n return validate<ScheduledActionView & V>(v, id, hashScheduledActionView)\n}\n"]}
|
|
@@ -109,6 +109,16 @@ export interface ReportView {
|
|
|
109
109
|
status: 'open' | 'closed' | 'escalated' | 'queued' | 'assigned' | (string & {});
|
|
110
110
|
subject: ToolsOzoneModerationDefs.SubjectView;
|
|
111
111
|
reportType: ComAtprotoModerationDefs.ReasonType;
|
|
112
|
+
/** Priority level assigned to the report. */
|
|
113
|
+
priorityLevel?: string;
|
|
114
|
+
/** Report priority score. Higher scores have higher priority. */
|
|
115
|
+
priorityScore?: number;
|
|
116
|
+
/** Target resolution duration in minutes. */
|
|
117
|
+
priorityTargetMinutes?: number;
|
|
118
|
+
/** Time from report creation to its last closure. */
|
|
119
|
+
resolutionTimeSec?: number;
|
|
120
|
+
/** Whether the current closure occurred within the report's snapshotted target. */
|
|
121
|
+
priorityTargetMet?: boolean;
|
|
112
122
|
/** DID of the user who made the report */
|
|
113
123
|
reportedBy: string;
|
|
114
124
|
reporter: ToolsOzoneModerationDefs.SubjectView;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/report/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,kBAAkB,MAAM,iBAAiB,CAAA;AAC1D,OAAO,KAAK,KAAK,wBAAwB,MAAM,uBAAuB,CAAA;AACtE,OAAO,KAAK,KAAK,wBAAwB,MAAM,yCAAyC,CAAA;AACxF,OAAO,KAAK,KAAK,mBAAmB,MAAM,kBAAkB,CAAA;AAM5D,MAAM,MAAM,UAAU,GAClB,sCAAsC,GACtC,qCAAqC,GACrC,8CAA8C,GA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,CAAC,EAAE,MAAM,CAAA;IACzB,wEAAwE;IACxE,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,6EAA6E;IAC7E,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,wEAAwE;IACxE,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,kEAAkE;IAClE,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,sEAAsE;IACtE,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,gEAAgE;IAChE,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,uGAAuG;IACvG,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,wEAAwE;IACxE,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,wEAAwE;IACxE,oBAAoB,CAAC,EAAE,MAAM,CAAA;CAC9B;AAID,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,oGAExC;AAED,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,yCAE9C;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,wCAAwC,CAAA;IAChD,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAA;IACrC,KAAK,CAAC,EAAE,mBAAmB,CAAC,SAAS,CAAA;IACrC,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAID,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,mGAEvC;AAED,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,wCAE7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/report/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,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,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;AAyCD,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;AA2CD,MAAM,mBAAmB,GAAG,iBAAiB,CAAA;AAE7C,MAAM,UAAU,iBAAiB,CAAI,CAAI;IACvC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,mBAAmB,CAAC,CAAA;AAC7C,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAI,CAAI;IAC7C,OAAO,QAAQ,CAAsB,CAAC,EAAE,EAAE,EAAE,mBAAmB,CAAC,CAAA;AAClE,CAAC;AAaD,MAAM,kBAAkB,GAAG,gBAAgB,CAAA;AAE3C,MAAM,UAAU,gBAAgB,CAAI,CAAI;IACtC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,kBAAkB,CAAC,CAAA;AAC5C,CAAC;AAED,MAAM,UAAU,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 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 ToolsOzoneTeamDefs from '../team/defs.js'\nimport type * as ToolsOzoneModerationDefs from '../moderation/defs.js'\nimport type * as ComAtprotoModerationDefs from '../../../com/atproto/moderation/defs.js'\nimport type * as ToolsOzoneQueueDefs from '../queue/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.report.defs'\n\nexport type ReasonType =\n | 'tools.ozone.report.defs#reasonAppeal'\n | 'tools.ozone.report.defs#reasonOther'\n | 'tools.ozone.report.defs#reasonViolenceAnimal'\n | 'tools.ozone.report.defs#reasonViolenceThreats'\n | 'tools.ozone.report.defs#reasonViolenceGraphicContent'\n | 'tools.ozone.report.defs#reasonViolenceGlorification'\n | 'tools.ozone.report.defs#reasonViolenceExtremistContent'\n | 'tools.ozone.report.defs#reasonViolenceTrafficking'\n | 'tools.ozone.report.defs#reasonViolenceOther'\n | 'tools.ozone.report.defs#reasonSexualAbuseContent'\n | 'tools.ozone.report.defs#reasonSexualNCII'\n | 'tools.ozone.report.defs#reasonSexualDeepfake'\n | 'tools.ozone.report.defs#reasonSexualAnimal'\n | 'tools.ozone.report.defs#reasonSexualUnlabeled'\n | 'tools.ozone.report.defs#reasonSexualOther'\n | 'tools.ozone.report.defs#reasonChildSafetyCSAM'\n | 'tools.ozone.report.defs#reasonChildSafetyGroom'\n | 'tools.ozone.report.defs#reasonChildSafetyPrivacy'\n | 'tools.ozone.report.defs#reasonChildSafetyHarassment'\n | 'tools.ozone.report.defs#reasonChildSafetyOther'\n | 'tools.ozone.report.defs#reasonHarassmentTroll'\n | 'tools.ozone.report.defs#reasonHarassmentTargeted'\n | 'tools.ozone.report.defs#reasonHarassmentHateSpeech'\n | 'tools.ozone.report.defs#reasonHarassmentDoxxing'\n | 'tools.ozone.report.defs#reasonHarassmentOther'\n | 'tools.ozone.report.defs#reasonMisleadingBot'\n | 'tools.ozone.report.defs#reasonMisleadingImpersonation'\n | 'tools.ozone.report.defs#reasonMisleadingSpam'\n | 'tools.ozone.report.defs#reasonMisleadingScam'\n | 'tools.ozone.report.defs#reasonMisleadingElections'\n | 'tools.ozone.report.defs#reasonMisleadingOther'\n | 'tools.ozone.report.defs#reasonRuleSiteSecurity'\n | 'tools.ozone.report.defs#reasonRuleProhibitedSales'\n | 'tools.ozone.report.defs#reasonRuleBanEvasion'\n | 'tools.ozone.report.defs#reasonRuleOther'\n | 'tools.ozone.report.defs#reasonSelfHarmContent'\n | 'tools.ozone.report.defs#reasonSelfHarmED'\n | 'tools.ozone.report.defs#reasonSelfHarmStunts'\n | 'tools.ozone.report.defs#reasonSelfHarmSubstances'\n | 'tools.ozone.report.defs#reasonSelfHarmOther'\n | (string & {})\n\n/** Appeal a previously taken moderation action */\nexport const REASONAPPEAL = `${id}#reasonAppeal`\n/** An issue not included in these options */\nexport const REASONOTHER = `${id}#reasonOther`\n/** Animal welfare violations */\nexport const REASONVIOLENCEANIMAL = `${id}#reasonViolenceAnimal`\n/** Threats or incitement */\nexport const REASONVIOLENCETHREATS = `${id}#reasonViolenceThreats`\n/** Graphic violent content */\nexport const REASONVIOLENCEGRAPHICCONTENT = `${id}#reasonViolenceGraphicContent`\n/** Glorification of violence */\nexport const REASONVIOLENCEGLORIFICATION = `${id}#reasonViolenceGlorification`\n/** Extremist content. These reports will be sent only be sent to the application's Moderation Authority. */\nexport const REASONVIOLENCEEXTREMISTCONTENT = `${id}#reasonViolenceExtremistContent`\n/** Human trafficking */\nexport const REASONVIOLENCETRAFFICKING = `${id}#reasonViolenceTrafficking`\n/** Other violent content */\nexport const REASONVIOLENCEOTHER = `${id}#reasonViolenceOther`\n/** Adult sexual abuse content */\nexport const REASONSEXUALABUSECONTENT = `${id}#reasonSexualAbuseContent`\n/** Non-consensual intimate imagery */\nexport const REASONSEXUALNCII = `${id}#reasonSexualNCII`\n/** Deepfake adult content */\nexport const REASONSEXUALDEEPFAKE = `${id}#reasonSexualDeepfake`\n/** Animal sexual abuse */\nexport const REASONSEXUALANIMAL = `${id}#reasonSexualAnimal`\n/** Unlabelled adult content */\nexport const REASONSEXUALUNLABELED = `${id}#reasonSexualUnlabeled`\n/** Other sexual violence content */\nexport const REASONSEXUALOTHER = `${id}#reasonSexualOther`\n/** Child sexual abuse material (CSAM). These reports will be sent only be sent to the application's Moderation Authority. */\nexport const REASONCHILDSAFETYCSAM = `${id}#reasonChildSafetyCSAM`\n/** Grooming or predatory behavior. These reports will be sent only be sent to the application's Moderation Authority. */\nexport const REASONCHILDSAFETYGROOM = `${id}#reasonChildSafetyGroom`\n/** Privacy violation involving a minor */\nexport const REASONCHILDSAFETYPRIVACY = `${id}#reasonChildSafetyPrivacy`\n/** Harassment or bullying of minors */\nexport const REASONCHILDSAFETYHARASSMENT = `${id}#reasonChildSafetyHarassment`\n/** Other child safety. These reports will be sent only be sent to the application's Moderation Authority. */\nexport const REASONCHILDSAFETYOTHER = `${id}#reasonChildSafetyOther`\n/** Trolling */\nexport const REASONHARASSMENTTROLL = `${id}#reasonHarassmentTroll`\n/** Targeted harassment */\nexport const REASONHARASSMENTTARGETED = `${id}#reasonHarassmentTargeted`\n/** Hate speech */\nexport const REASONHARASSMENTHATESPEECH = `${id}#reasonHarassmentHateSpeech`\n/** Doxxing */\nexport const REASONHARASSMENTDOXXING = `${id}#reasonHarassmentDoxxing`\n/** Other harassing or hateful content */\nexport const REASONHARASSMENTOTHER = `${id}#reasonHarassmentOther`\n/** Fake account or bot */\nexport const REASONMISLEADINGBOT = `${id}#reasonMisleadingBot`\n/** Impersonation */\nexport const REASONMISLEADINGIMPERSONATION = `${id}#reasonMisleadingImpersonation`\n/** Spam */\nexport const REASONMISLEADINGSPAM = `${id}#reasonMisleadingSpam`\n/** Scam */\nexport const REASONMISLEADINGSCAM = `${id}#reasonMisleadingScam`\n/** False information about elections */\nexport const REASONMISLEADINGELECTIONS = `${id}#reasonMisleadingElections`\n/** Other misleading content */\nexport const REASONMISLEADINGOTHER = `${id}#reasonMisleadingOther`\n/** Hacking or system attacks */\nexport const REASONRULESITESECURITY = `${id}#reasonRuleSiteSecurity`\n/** Promoting or selling prohibited items or services */\nexport const REASONRULEPROHIBITEDSALES = `${id}#reasonRuleProhibitedSales`\n/** Banned user returning */\nexport const REASONRULEBANEVASION = `${id}#reasonRuleBanEvasion`\n/** Other */\nexport const REASONRULEOTHER = `${id}#reasonRuleOther`\n/** Content promoting or depicting self-harm */\nexport const REASONSELFHARMCONTENT = `${id}#reasonSelfHarmContent`\n/** Eating disorders */\nexport const REASONSELFHARMED = `${id}#reasonSelfHarmED`\n/** Dangerous challenges or activities */\nexport const REASONSELFHARMSTUNTS = `${id}#reasonSelfHarmStunts`\n/** Dangerous substances or drug abuse */\nexport const REASONSELFHARMSUBSTANCES = `${id}#reasonSelfHarmSubstances`\n/** Other dangerous content */\nexport const REASONSELFHARMOTHER = `${id}#reasonSelfHarmOther`\n\n/** Information about the moderator currently assigned to a report. */\nexport interface ReportAssignment {\n $type?: 'tools.ozone.report.defs#reportAssignment'\n /** DID of the assigned moderator */\n did: string\n moderator?: ToolsOzoneTeamDefs.Member\n /** When the report was assigned */\n assignedAt: string\n}\n\nconst hashReportAssignment = 'reportAssignment'\n\nexport function isReportAssignment<V>(v: V) {\n return is$typed(v, id, hashReportAssignment)\n}\n\nexport function validateReportAssignment<V>(v: V) {\n return validate<ReportAssignment & V>(v, id, hashReportAssignment)\n}\n\nexport interface ReportView {\n $type?: 'tools.ozone.report.defs#reportView'\n /** Report ID */\n id: number\n /** ID of the moderation event that created this report */\n eventId: number\n /** Current status of the report */\n status:\n 'open' | 'closed' | 'escalated' | 'queued' | 'assigned' | (string & {})\n subject: ToolsOzoneModerationDefs.SubjectView\n reportType: ComAtprotoModerationDefs.ReasonType\n /** DID of the user who made the report */\n reportedBy: string\n reporter: ToolsOzoneModerationDefs.SubjectView\n /** Comment provided by the reporter */\n comment?: string\n /** When the report was created */\n createdAt: string\n /** When the report was last updated */\n updatedAt?: string\n /** When the report was assigned to its current queue */\n queuedAt?: string\n /** Array of moderation event IDs representing actions taken on this report, in append order (most recently linked event last) */\n actionEventIds?: number[]\n /** Optional: expanded action events */\n actions?: ToolsOzoneModerationDefs.ModEventView[]\n /** Note sent to reporter when report was actioned */\n actionNote?: string\n subjectStatus?: ToolsOzoneModerationDefs.SubjectStatusView\n /** Number of other pending reports on the same subject */\n relatedReportCount?: number\n assignment?: ReportAssignment\n queue?: ToolsOzoneQueueDefs.QueueView\n /** Whether this report is muted. A report is muted if the reporter was muted or the subject was muted at the time the report was created. */\n isMuted?: boolean\n /** Whether this report was emitted by automated tooling. */\n isAutomated: boolean\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\n/** Activity recording a report being routed to a queue. */\nexport interface QueueActivity {\n $type?: 'tools.ozone.report.defs#queueActivity'\n /** The report's status before this activity. Populated automatically from the report row; not required in input. */\n previousStatus?:\n 'open' | 'closed' | 'escalated' | 'queued' | 'assigned' | (string & {})\n}\n\nconst hashQueueActivity = 'queueActivity'\n\nexport function isQueueActivity<V>(v: V) {\n return is$typed(v, id, hashQueueActivity)\n}\n\nexport function validateQueueActivity<V>(v: V) {\n return validate<QueueActivity & V>(v, id, hashQueueActivity)\n}\n\n/** Activity recording a moderator being assigned to a report. */\nexport interface AssignmentActivity {\n $type?: 'tools.ozone.report.defs#assignmentActivity'\n /** The report's status before this activity. Populated automatically from the report row; not required in input. */\n previousStatus?:\n 'open' | 'closed' | 'escalated' | 'queued' | 'assigned' | (string & {})\n}\n\nconst hashAssignmentActivity = 'assignmentActivity'\n\nexport function isAssignmentActivity<V>(v: V) {\n return is$typed(v, id, hashAssignmentActivity)\n}\n\nexport function validateAssignmentActivity<V>(v: V) {\n return validate<AssignmentActivity & V>(v, id, hashAssignmentActivity)\n}\n\n/** Activity recording a moderator being unassigned from a report. */\nexport interface UnassignmentActivity {\n $type?: 'tools.ozone.report.defs#unassignmentActivity'\n /** The report's status immediately before the moderator was unassigned. May be absent on older activities. */\n previousStatus?:\n 'open' | 'closed' | 'escalated' | 'queued' | 'assigned' | (string & {})\n /** The report's status immediately after the moderator was unassigned. May equal previousStatus if unassignment did not change the report's status, or be absent on older activities. */\n nextStatus?:\n 'open' | 'closed' | 'escalated' | 'queued' | 'assigned' | (string & {})\n}\n\nconst hashUnassignmentActivity = 'unassignmentActivity'\n\nexport function isUnassignmentActivity<V>(v: V) {\n return is$typed(v, id, hashUnassignmentActivity)\n}\n\nexport function validateUnassignmentActivity<V>(v: V) {\n return validate<UnassignmentActivity & V>(v, id, hashUnassignmentActivity)\n}\n\n/** Activity recording a report being escalated. */\nexport interface EscalationActivity {\n $type?: 'tools.ozone.report.defs#escalationActivity'\n /** The report's status before this activity. Populated automatically from the report row; not required in input. */\n previousStatus?:\n 'open' | 'closed' | 'escalated' | 'queued' | 'assigned' | (string & {})\n}\n\nconst hashEscalationActivity = 'escalationActivity'\n\nexport function isEscalationActivity<V>(v: V) {\n return is$typed(v, id, hashEscalationActivity)\n}\n\nexport function validateEscalationActivity<V>(v: V) {\n return validate<EscalationActivity & V>(v, id, hashEscalationActivity)\n}\n\n/** Activity recording a report being closed. */\nexport interface CloseActivity {\n $type?: 'tools.ozone.report.defs#closeActivity'\n /** The report's status before this activity. Populated automatically from the report row; not required in input. */\n previousStatus?:\n 'open' | 'closed' | 'escalated' | 'queued' | 'assigned' | (string & {})\n}\n\nconst hashCloseActivity = 'closeActivity'\n\nexport function isCloseActivity<V>(v: V) {\n return is$typed(v, id, hashCloseActivity)\n}\n\nexport function validateCloseActivity<V>(v: V) {\n return validate<CloseActivity & V>(v, id, hashCloseActivity)\n}\n\n/** Activity recording a closed report being reopened. Only valid when the report is in 'closed' status. */\nexport interface ReopenActivity {\n $type?: 'tools.ozone.report.defs#reopenActivity'\n /** The report's status before this activity. Populated automatically from the report row; not required in input. */\n previousStatus?:\n 'open' | 'closed' | 'escalated' | 'queued' | 'assigned' | (string & {})\n}\n\nconst hashReopenActivity = 'reopenActivity'\n\nexport function isReopenActivity<V>(v: V) {\n return is$typed(v, id, hashReopenActivity)\n}\n\nexport function validateReopenActivity<V>(v: V) {\n return validate<ReopenActivity & V>(v, id, hashReopenActivity)\n}\n\n/** Activity recording a note on a report. Use internalNote for moderator-only notes or publicNote for reporter-visible notes (or both). */\nexport interface NoteActivity {\n $type?: 'tools.ozone.report.defs#noteActivity'\n}\n\nconst hashNoteActivity = 'noteActivity'\n\nexport function isNoteActivity<V>(v: V) {\n return is$typed(v, id, hashNoteActivity)\n}\n\nexport function validateNoteActivity<V>(v: V) {\n return validate<NoteActivity & V>(v, id, hashNoteActivity)\n}\n\n/** A single activity entry on a report. */\nexport interface ReportActivityView {\n $type?: 'tools.ozone.report.defs#reportActivityView'\n /** Activity ID */\n id: number\n /** ID of the report this activity belongs to */\n reportId: number\n activity:\n | $Typed<QueueActivity>\n | $Typed<AssignmentActivity>\n | $Typed<UnassignmentActivity>\n | $Typed<EscalationActivity>\n | $Typed<CloseActivity>\n | $Typed<ReopenActivity>\n | $Typed<NoteActivity>\n | { $type: string }\n /** Optional moderator-only note. Not visible to reporters. */\n internalNote?: string\n /** Optional public note, potentially visible to the reporter. */\n publicNote?: string\n /** Extensible JSON payload for loose activity-specific metadata (e.g. assignmentId). */\n meta?: { [_ in string]: unknown }\n /** True if this activity was created by an automated process (e.g. queue router) rather than a direct human action. */\n isAutomated: boolean\n /** DID of the actor who created this activity, or the service DID for automated activities. */\n createdBy: string\n moderator?: ToolsOzoneTeamDefs.Member\n report?: ReportView\n /** When this activity was created */\n createdAt: string\n}\n\nconst hashReportActivityView = 'reportActivityView'\n\nexport function isReportActivityView<V>(v: V) {\n return is$typed(v, id, hashReportActivityView)\n}\n\nexport function validateReportActivityView<V>(v: V) {\n return validate<ReportActivityView & V>(v, id, hashReportActivityView)\n}\n\n/** Live statistics for reports for the current calendar day, filterable by queue, moderator, or report type. */\nexport interface LiveStats {\n $type?: 'tools.ozone.report.defs#liveStats'\n /** Number of reports currently not closed. */\n pendingCount?: number\n /** Number of close transitions. */\n closedCount?: number\n /** Number of closures whose last report action is label, tag, or takedown. */\n actionedCount?: number\n /** Number of closures whose last report action is not label, tag, or takedown. */\n acknowledgedCount?: number\n /** Number of reports escalated. */\n escalatedCount?: number\n /** Reports received. */\n inboundCount?: number\n /** Closures whose last report action is a label event. */\n labelActionCount?: number\n /** Closures whose last report action is a tag event. */\n tagActionCount?: number\n /** Closures whose last report action is a takedown event. */\n takedownActionCount?: number\n /** Sum of report assignment-to-close seconds. */\n ahtDurationSec?: number\n /** Number of assigned closed-report samples in ahtDurationSec. */\n ahtSampleCount?: number\n /** Sum of report creation-to-close seconds. */\n resolutionDurationSec?: number\n /** Number of closed-report samples in resolutionDurationSec. */\n resolutionSampleCount?: number\n /** Percentage of closures actioned (actionedCount / closedCount * 100), rounded to nearest integer. */\n actionRate?: number\n /** Average handling time in seconds from report assignment to close. */\n avgHandlingTimeSec?: number\n /** Average resolution time in seconds from report creation to close. */\n avgResolutionTimeSec?: number\n /** When these statistics were last computed. */\n lastUpdated?: string\n}\n\nconst hashLiveStats = 'liveStats'\n\nexport function isLiveStats<V>(v: V) {\n return is$typed(v, id, hashLiveStats)\n}\n\nexport function validateLiveStats<V>(v: V) {\n return validate<LiveStats & V>(v, id, hashLiveStats)\n}\n\n/** A single daily snapshot of report statistics for a calendar date. */\nexport interface HistoricalStats {\n $type?: 'tools.ozone.report.defs#historicalStats'\n /** The calendar date this snapshot covers (YYYY-MM-DD). */\n date: string\n /** When this snapshot was last computed. */\n computedAt?: string\n /** Number of reports not closed at time of computation. */\n pendingCount?: number\n /** Number of close transitions during this day. */\n closedCount?: number\n /** Number of closures whose last report action is label, tag, or takedown during this day. */\n actionedCount?: number\n /** Number of closures whose last report action is not label, tag, or takedown during this day. */\n acknowledgedCount?: number\n /** Number of reports escalated during this day. */\n escalatedCount?: number\n /** Reports received during this day. */\n inboundCount?: number\n /** Closures whose last report action is a label event during this day. */\n labelActionCount?: number\n /** Closures whose last report action is a tag event during this day. */\n tagActionCount?: number\n /** Closures whose last report action is a takedown event during this day. */\n takedownActionCount?: number\n /** Sum of report assignment-to-close seconds for this day's samples. */\n ahtDurationSec?: number\n /** Number of assigned closed-report samples in ahtDurationSec. */\n ahtSampleCount?: number\n /** Sum of report creation-to-close seconds for this day's samples. */\n resolutionDurationSec?: number\n /** Number of closed-report samples in resolutionDurationSec. */\n resolutionSampleCount?: number\n /** Percentage of closures actioned (actionedCount / closedCount * 100), rounded to nearest integer. */\n actionRate?: number\n /** Average handling time in seconds from report assignment to close. */\n avgHandlingTimeSec?: number\n /** Average resolution time in seconds from report creation to close. */\n avgResolutionTimeSec?: number\n}\n\nconst hashHistoricalStats = 'historicalStats'\n\nexport function isHistoricalStats<V>(v: V) {\n return is$typed(v, id, hashHistoricalStats)\n}\n\nexport function validateHistoricalStats<V>(v: V) {\n return validate<HistoricalStats & V>(v, id, hashHistoricalStats)\n}\n\nexport interface AssignmentView {\n $type?: 'tools.ozone.report.defs#assignmentView'\n id: number\n did: string\n moderator?: ToolsOzoneTeamDefs.Member\n queue?: ToolsOzoneQueueDefs.QueueView\n reportId: number\n startAt: string\n endAt?: string\n}\n\nconst hashAssignmentView = 'assignmentView'\n\nexport function isAssignmentView<V>(v: V) {\n return is$typed(v, id, hashAssignmentView)\n}\n\nexport function validateAssignmentView<V>(v: V) {\n return validate<AssignmentView & V>(v, id, hashAssignmentView)\n}\n"]}
|
|
1
|
+
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/report/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;AAM5B,MAAM,QAAQ,GAAG,SAAS,EACxB,Q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AAQ,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;AA2CD,MAAM,mBAAmB,GAAG,iBAAiB,CAAA;AAE7C,MAAM,UAAU,iBAAiB,CAAI,CAAI;IACvC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,mBAAmB,CAAC,CAAA;AAC7C,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAI,CAAI;IAC7C,OAAO,QAAQ,CAAsB,CAAC,EAAE,EAAE,EAAE,mBAAmB,CAAC,CAAA;AAClE,CAAC;AAaD,MAAM,kBAAkB,GAAG,gBAAgB,CAAA;AAE3C,MAAM,UAAU,gBAAgB,CAAI,CAAI;IACtC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,kBAAkB,CAAC,CAAA;AAC5C,CAAC;AAED,MAAM,UAAU,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 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 ToolsOzoneTeamDefs from '../team/defs.js'\nimport type * as ToolsOzoneModerationDefs from '../moderation/defs.js'\nimport type * as ComAtprotoModerationDefs from '../../../com/atproto/moderation/defs.js'\nimport type * as ToolsOzoneQueueDefs from '../queue/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.report.defs'\n\nexport type ReasonType =\n | 'tools.ozone.report.defs#reasonAppeal'\n | 'tools.ozone.report.defs#reasonOther'\n | 'tools.ozone.report.defs#reasonViolenceAnimal'\n | 'tools.ozone.report.defs#reasonViolenceThreats'\n | 'tools.ozone.report.defs#reasonViolenceGraphicContent'\n | 'tools.ozone.report.defs#reasonViolenceGlorification'\n | 'tools.ozone.report.defs#reasonViolenceExtremistContent'\n | 'tools.ozone.report.defs#reasonViolenceTrafficking'\n | 'tools.ozone.report.defs#reasonViolenceOther'\n | 'tools.ozone.report.defs#reasonSexualAbuseContent'\n | 'tools.ozone.report.defs#reasonSexualNCII'\n | 'tools.ozone.report.defs#reasonSexualDeepfake'\n | 'tools.ozone.report.defs#reasonSexualAnimal'\n | 'tools.ozone.report.defs#reasonSexualUnlabeled'\n | 'tools.ozone.report.defs#reasonSexualOther'\n | 'tools.ozone.report.defs#reasonChildSafetyCSAM'\n | 'tools.ozone.report.defs#reasonChildSafetyGroom'\n | 'tools.ozone.report.defs#reasonChildSafetyPrivacy'\n | 'tools.ozone.report.defs#reasonChildSafetyHarassment'\n | 'tools.ozone.report.defs#reasonChildSafetyOther'\n | 'tools.ozone.report.defs#reasonHarassmentTroll'\n | 'tools.ozone.report.defs#reasonHarassmentTargeted'\n | 'tools.ozone.report.defs#reasonHarassmentHateSpeech'\n | 'tools.ozone.report.defs#reasonHarassmentDoxxing'\n | 'tools.ozone.report.defs#reasonHarassmentOther'\n | 'tools.ozone.report.defs#reasonMisleadingBot'\n | 'tools.ozone.report.defs#reasonMisleadingImpersonation'\n | 'tools.ozone.report.defs#reasonMisleadingSpam'\n | 'tools.ozone.report.defs#reasonMisleadingScam'\n | 'tools.ozone.report.defs#reasonMisleadingElections'\n | 'tools.ozone.report.defs#reasonMisleadingOther'\n | 'tools.ozone.report.defs#reasonRuleSiteSecurity'\n | 'tools.ozone.report.defs#reasonRuleProhibitedSales'\n | 'tools.ozone.report.defs#reasonRuleBanEvasion'\n | 'tools.ozone.report.defs#reasonRuleOther'\n | 'tools.ozone.report.defs#reasonSelfHarmContent'\n | 'tools.ozone.report.defs#reasonSelfHarmED'\n | 'tools.ozone.report.defs#reasonSelfHarmStunts'\n | 'tools.ozone.report.defs#reasonSelfHarmSubstances'\n | 'tools.ozone.report.defs#reasonSelfHarmOther'\n | (string & {})\n\n/** Appeal a previously taken moderation action */\nexport const REASONAPPEAL = `${id}#reasonAppeal`\n/** An issue not included in these options */\nexport const REASONOTHER = `${id}#reasonOther`\n/** Animal welfare violations */\nexport const REASONVIOLENCEANIMAL = `${id}#reasonViolenceAnimal`\n/** Threats or incitement */\nexport const REASONVIOLENCETHREATS = `${id}#reasonViolenceThreats`\n/** Graphic violent content */\nexport const REASONVIOLENCEGRAPHICCONTENT = `${id}#reasonViolenceGraphicContent`\n/** Glorification of violence */\nexport const REASONVIOLENCEGLORIFICATION = `${id}#reasonViolenceGlorification`\n/** Extremist content. These reports will be sent only be sent to the application's Moderation Authority. */\nexport const REASONVIOLENCEEXTREMISTCONTENT = `${id}#reasonViolenceExtremistContent`\n/** Human trafficking */\nexport const REASONVIOLENCETRAFFICKING = `${id}#reasonViolenceTrafficking`\n/** Other violent content */\nexport const REASONVIOLENCEOTHER = `${id}#reasonViolenceOther`\n/** Adult sexual abuse content */\nexport const REASONSEXUALABUSECONTENT = `${id}#reasonSexualAbuseContent`\n/** Non-consensual intimate imagery */\nexport const REASONSEXUALNCII = `${id}#reasonSexualNCII`\n/** Deepfake adult content */\nexport const REASONSEXUALDEEPFAKE = `${id}#reasonSexualDeepfake`\n/** Animal sexual abuse */\nexport const REASONSEXUALANIMAL = `${id}#reasonSexualAnimal`\n/** Unlabelled adult content */\nexport const REASONSEXUALUNLABELED = `${id}#reasonSexualUnlabeled`\n/** Other sexual violence content */\nexport const REASONSEXUALOTHER = `${id}#reasonSexualOther`\n/** Child sexual abuse material (CSAM). These reports will be sent only be sent to the application's Moderation Authority. */\nexport const REASONCHILDSAFETYCSAM = `${id}#reasonChildSafetyCSAM`\n/** Grooming or predatory behavior. These reports will be sent only be sent to the application's Moderation Authority. */\nexport const REASONCHILDSAFETYGROOM = `${id}#reasonChildSafetyGroom`\n/** Privacy violation involving a minor */\nexport const REASONCHILDSAFETYPRIVACY = `${id}#reasonChildSafetyPrivacy`\n/** Harassment or bullying of minors */\nexport const REASONCHILDSAFETYHARASSMENT = `${id}#reasonChildSafetyHarassment`\n/** Other child safety. These reports will be sent only be sent to the application's Moderation Authority. */\nexport const REASONCHILDSAFETYOTHER = `${id}#reasonChildSafetyOther`\n/** Trolling */\nexport const REASONHARASSMENTTROLL = `${id}#reasonHarassmentTroll`\n/** Targeted harassment */\nexport const REASONHARASSMENTTARGETED = `${id}#reasonHarassmentTargeted`\n/** Hate speech */\nexport const REASONHARASSMENTHATESPEECH = `${id}#reasonHarassmentHateSpeech`\n/** Doxxing */\nexport const REASONHARASSMENTDOXXING = `${id}#reasonHarassmentDoxxing`\n/** Other harassing or hateful content */\nexport const REASONHARASSMENTOTHER = `${id}#reasonHarassmentOther`\n/** Fake account or bot */\nexport const REASONMISLEADINGBOT = `${id}#reasonMisleadingBot`\n/** Impersonation */\nexport const REASONMISLEADINGIMPERSONATION = `${id}#reasonMisleadingImpersonation`\n/** Spam */\nexport const REASONMISLEADINGSPAM = `${id}#reasonMisleadingSpam`\n/** Scam */\nexport const REASONMISLEADINGSCAM = `${id}#reasonMisleadingScam`\n/** False information about elections */\nexport const REASONMISLEADINGELECTIONS = `${id}#reasonMisleadingElections`\n/** Other misleading content */\nexport const REASONMISLEADINGOTHER = `${id}#reasonMisleadingOther`\n/** Hacking or system attacks */\nexport const REASONRULESITESECURITY = `${id}#reasonRuleSiteSecurity`\n/** Promoting or selling prohibited items or services */\nexport const REASONRULEPROHIBITEDSALES = `${id}#reasonRuleProhibitedSales`\n/** Banned user returning */\nexport const REASONRULEBANEVASION = `${id}#reasonRuleBanEvasion`\n/** Other */\nexport const REASONRULEOTHER = `${id}#reasonRuleOther`\n/** Content promoting or depicting self-harm */\nexport const REASONSELFHARMCONTENT = `${id}#reasonSelfHarmContent`\n/** Eating disorders */\nexport const REASONSELFHARMED = `${id}#reasonSelfHarmED`\n/** Dangerous challenges or activities */\nexport const REASONSELFHARMSTUNTS = `${id}#reasonSelfHarmStunts`\n/** Dangerous substances or drug abuse */\nexport const REASONSELFHARMSUBSTANCES = `${id}#reasonSelfHarmSubstances`\n/** Other dangerous content */\nexport const REASONSELFHARMOTHER = `${id}#reasonSelfHarmOther`\n\n/** Information about the moderator currently assigned to a report. */\nexport interface ReportAssignment {\n $type?: 'tools.ozone.report.defs#reportAssignment'\n /** DID of the assigned moderator */\n did: string\n moderator?: ToolsOzoneTeamDefs.Member\n /** When the report was assigned */\n assignedAt: string\n}\n\nconst hashReportAssignment = 'reportAssignment'\n\nexport function isReportAssignment<V>(v: V) {\n return is$typed(v, id, hashReportAssignment)\n}\n\nexport function validateReportAssignment<V>(v: V) {\n return validate<ReportAssignment & V>(v, id, hashReportAssignment)\n}\n\nexport interface ReportView {\n $type?: 'tools.ozone.report.defs#reportView'\n /** Report ID */\n id: number\n /** ID of the moderation event that created this report */\n eventId: number\n /** Current status of the report */\n status:\n 'open' | 'closed' | 'escalated' | 'queued' | 'assigned' | (string & {})\n subject: ToolsOzoneModerationDefs.SubjectView\n reportType: ComAtprotoModerationDefs.ReasonType\n /** Priority level assigned to the report. */\n priorityLevel?: string\n /** Report priority score. Higher scores have higher priority. */\n priorityScore?: number\n /** Target resolution duration in minutes. */\n priorityTargetMinutes?: number\n /** Time from report creation to its last closure. */\n resolutionTimeSec?: number\n /** Whether the current closure occurred within the report's snapshotted target. */\n priorityTargetMet?: boolean\n /** DID of the user who made the report */\n reportedBy: string\n reporter: ToolsOzoneModerationDefs.SubjectView\n /** Comment provided by the reporter */\n comment?: string\n /** When the report was created */\n createdAt: string\n /** When the report was last updated */\n updatedAt?: string\n /** When the report was assigned to its current queue */\n queuedAt?: string\n /** Array of moderation event IDs representing actions taken on this report, in append order (most recently linked event last) */\n actionEventIds?: number[]\n /** Optional: expanded action events */\n actions?: ToolsOzoneModerationDefs.ModEventView[]\n /** Note sent to reporter when report was actioned */\n actionNote?: string\n subjectStatus?: ToolsOzoneModerationDefs.SubjectStatusView\n /** Number of other pending reports on the same subject */\n relatedReportCount?: number\n assignment?: ReportAssignment\n queue?: ToolsOzoneQueueDefs.QueueView\n /** Whether this report is muted. A report is muted if the reporter was muted or the subject was muted at the time the report was created. */\n isMuted?: boolean\n /** Whether this report was emitted by automated tooling. */\n isAutomated: boolean\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\n/** Activity recording a report being routed to a queue. */\nexport interface QueueActivity {\n $type?: 'tools.ozone.report.defs#queueActivity'\n /** The report's status before this activity. Populated automatically from the report row; not required in input. */\n previousStatus?:\n 'open' | 'closed' | 'escalated' | 'queued' | 'assigned' | (string & {})\n}\n\nconst hashQueueActivity = 'queueActivity'\n\nexport function isQueueActivity<V>(v: V) {\n return is$typed(v, id, hashQueueActivity)\n}\n\nexport function validateQueueActivity<V>(v: V) {\n return validate<QueueActivity & V>(v, id, hashQueueActivity)\n}\n\n/** Activity recording a moderator being assigned to a report. */\nexport interface AssignmentActivity {\n $type?: 'tools.ozone.report.defs#assignmentActivity'\n /** The report's status before this activity. Populated automatically from the report row; not required in input. */\n previousStatus?:\n 'open' | 'closed' | 'escalated' | 'queued' | 'assigned' | (string & {})\n}\n\nconst hashAssignmentActivity = 'assignmentActivity'\n\nexport function isAssignmentActivity<V>(v: V) {\n return is$typed(v, id, hashAssignmentActivity)\n}\n\nexport function validateAssignmentActivity<V>(v: V) {\n return validate<AssignmentActivity & V>(v, id, hashAssignmentActivity)\n}\n\n/** Activity recording a moderator being unassigned from a report. */\nexport interface UnassignmentActivity {\n $type?: 'tools.ozone.report.defs#unassignmentActivity'\n /** The report's status immediately before the moderator was unassigned. May be absent on older activities. */\n previousStatus?:\n 'open' | 'closed' | 'escalated' | 'queued' | 'assigned' | (string & {})\n /** The report's status immediately after the moderator was unassigned. May equal previousStatus if unassignment did not change the report's status, or be absent on older activities. */\n nextStatus?:\n 'open' | 'closed' | 'escalated' | 'queued' | 'assigned' | (string & {})\n}\n\nconst hashUnassignmentActivity = 'unassignmentActivity'\n\nexport function isUnassignmentActivity<V>(v: V) {\n return is$typed(v, id, hashUnassignmentActivity)\n}\n\nexport function validateUnassignmentActivity<V>(v: V) {\n return validate<UnassignmentActivity & V>(v, id, hashUnassignmentActivity)\n}\n\n/** Activity recording a report being escalated. */\nexport interface EscalationActivity {\n $type?: 'tools.ozone.report.defs#escalationActivity'\n /** The report's status before this activity. Populated automatically from the report row; not required in input. */\n previousStatus?:\n 'open' | 'closed' | 'escalated' | 'queued' | 'assigned' | (string & {})\n}\n\nconst hashEscalationActivity = 'escalationActivity'\n\nexport function isEscalationActivity<V>(v: V) {\n return is$typed(v, id, hashEscalationActivity)\n}\n\nexport function validateEscalationActivity<V>(v: V) {\n return validate<EscalationActivity & V>(v, id, hashEscalationActivity)\n}\n\n/** Activity recording a report being closed. */\nexport interface CloseActivity {\n $type?: 'tools.ozone.report.defs#closeActivity'\n /** The report's status before this activity. Populated automatically from the report row; not required in input. */\n previousStatus?:\n 'open' | 'closed' | 'escalated' | 'queued' | 'assigned' | (string & {})\n}\n\nconst hashCloseActivity = 'closeActivity'\n\nexport function isCloseActivity<V>(v: V) {\n return is$typed(v, id, hashCloseActivity)\n}\n\nexport function validateCloseActivity<V>(v: V) {\n return validate<CloseActivity & V>(v, id, hashCloseActivity)\n}\n\n/** Activity recording a closed report being reopened. Only valid when the report is in 'closed' status. */\nexport interface ReopenActivity {\n $type?: 'tools.ozone.report.defs#reopenActivity'\n /** The report's status before this activity. Populated automatically from the report row; not required in input. */\n previousStatus?:\n 'open' | 'closed' | 'escalated' | 'queued' | 'assigned' | (string & {})\n}\n\nconst hashReopenActivity = 'reopenActivity'\n\nexport function isReopenActivity<V>(v: V) {\n return is$typed(v, id, hashReopenActivity)\n}\n\nexport function validateReopenActivity<V>(v: V) {\n return validate<ReopenActivity & V>(v, id, hashReopenActivity)\n}\n\n/** Activity recording a note on a report. Use internalNote for moderator-only notes or publicNote for reporter-visible notes (or both). */\nexport interface NoteActivity {\n $type?: 'tools.ozone.report.defs#noteActivity'\n}\n\nconst hashNoteActivity = 'noteActivity'\n\nexport function isNoteActivity<V>(v: V) {\n return is$typed(v, id, hashNoteActivity)\n}\n\nexport function validateNoteActivity<V>(v: V) {\n return validate<NoteActivity & V>(v, id, hashNoteActivity)\n}\n\n/** A single activity entry on a report. */\nexport interface ReportActivityView {\n $type?: 'tools.ozone.report.defs#reportActivityView'\n /** Activity ID */\n id: number\n /** ID of the report this activity belongs to */\n reportId: number\n activity:\n | $Typed<QueueActivity>\n | $Typed<AssignmentActivity>\n | $Typed<UnassignmentActivity>\n | $Typed<EscalationActivity>\n | $Typed<CloseActivity>\n | $Typed<ReopenActivity>\n | $Typed<NoteActivity>\n | { $type: string }\n /** Optional moderator-only note. Not visible to reporters. */\n internalNote?: string\n /** Optional public note, potentially visible to the reporter. */\n publicNote?: string\n /** Extensible JSON payload for loose activity-specific metadata (e.g. assignmentId). */\n meta?: { [_ in string]: unknown }\n /** True if this activity was created by an automated process (e.g. queue router) rather than a direct human action. */\n isAutomated: boolean\n /** DID of the actor who created this activity, or the service DID for automated activities. */\n createdBy: string\n moderator?: ToolsOzoneTeamDefs.Member\n report?: ReportView\n /** When this activity was created */\n createdAt: string\n}\n\nconst hashReportActivityView = 'reportActivityView'\n\nexport function isReportActivityView<V>(v: V) {\n return is$typed(v, id, hashReportActivityView)\n}\n\nexport function validateReportActivityView<V>(v: V) {\n return validate<ReportActivityView & V>(v, id, hashReportActivityView)\n}\n\n/** Live statistics for reports for the current calendar day, filterable by queue, moderator, or report type. */\nexport interface LiveStats {\n $type?: 'tools.ozone.report.defs#liveStats'\n /** Number of reports currently not closed. */\n pendingCount?: number\n /** Number of close transitions. */\n closedCount?: number\n /** Number of closures whose last report action is label, tag, or takedown. */\n actionedCount?: number\n /** Number of closures whose last report action is not label, tag, or takedown. */\n acknowledgedCount?: number\n /** Number of reports escalated. */\n escalatedCount?: number\n /** Reports received. */\n inboundCount?: number\n /** Closures whose last report action is a label event. */\n labelActionCount?: number\n /** Closures whose last report action is a tag event. */\n tagActionCount?: number\n /** Closures whose last report action is a takedown event. */\n takedownActionCount?: number\n /** Sum of report assignment-to-close seconds. */\n ahtDurationSec?: number\n /** Number of assigned closed-report samples in ahtDurationSec. */\n ahtSampleCount?: number\n /** Sum of report creation-to-close seconds. */\n resolutionDurationSec?: number\n /** Number of closed-report samples in resolutionDurationSec. */\n resolutionSampleCount?: number\n /** Percentage of closures actioned (actionedCount / closedCount * 100), rounded to nearest integer. */\n actionRate?: number\n /** Average handling time in seconds from report assignment to close. */\n avgHandlingTimeSec?: number\n /** Average resolution time in seconds from report creation to close. */\n avgResolutionTimeSec?: number\n /** When these statistics were last computed. */\n lastUpdated?: string\n}\n\nconst hashLiveStats = 'liveStats'\n\nexport function isLiveStats<V>(v: V) {\n return is$typed(v, id, hashLiveStats)\n}\n\nexport function validateLiveStats<V>(v: V) {\n return validate<LiveStats & V>(v, id, hashLiveStats)\n}\n\n/** A single daily snapshot of report statistics for a calendar date. */\nexport interface HistoricalStats {\n $type?: 'tools.ozone.report.defs#historicalStats'\n /** The calendar date this snapshot covers (YYYY-MM-DD). */\n date: string\n /** When this snapshot was last computed. */\n computedAt?: string\n /** Number of reports not closed at time of computation. */\n pendingCount?: number\n /** Number of close transitions during this day. */\n closedCount?: number\n /** Number of closures whose last report action is label, tag, or takedown during this day. */\n actionedCount?: number\n /** Number of closures whose last report action is not label, tag, or takedown during this day. */\n acknowledgedCount?: number\n /** Number of reports escalated during this day. */\n escalatedCount?: number\n /** Reports received during this day. */\n inboundCount?: number\n /** Closures whose last report action is a label event during this day. */\n labelActionCount?: number\n /** Closures whose last report action is a tag event during this day. */\n tagActionCount?: number\n /** Closures whose last report action is a takedown event during this day. */\n takedownActionCount?: number\n /** Sum of report assignment-to-close seconds for this day's samples. */\n ahtDurationSec?: number\n /** Number of assigned closed-report samples in ahtDurationSec. */\n ahtSampleCount?: number\n /** Sum of report creation-to-close seconds for this day's samples. */\n resolutionDurationSec?: number\n /** Number of closed-report samples in resolutionDurationSec. */\n resolutionSampleCount?: number\n /** Percentage of closures actioned (actionedCount / closedCount * 100), rounded to nearest integer. */\n actionRate?: number\n /** Average handling time in seconds from report assignment to close. */\n avgHandlingTimeSec?: number\n /** Average resolution time in seconds from report creation to close. */\n avgResolutionTimeSec?: number\n}\n\nconst hashHistoricalStats = 'historicalStats'\n\nexport function isHistoricalStats<V>(v: V) {\n return is$typed(v, id, hashHistoricalStats)\n}\n\nexport function validateHistoricalStats<V>(v: V) {\n return validate<HistoricalStats & V>(v, id, hashHistoricalStats)\n}\n\nexport interface AssignmentView {\n $type?: 'tools.ozone.report.defs#assignmentView'\n id: number\n did: string\n moderator?: ToolsOzoneTeamDefs.Member\n queue?: ToolsOzoneQueueDefs.QueueView\n reportId: number\n startAt: string\n endAt?: string\n}\n\nconst hashAssignmentView = 'assignmentView'\n\nexport function isAssignmentView<V>(v: V) {\n return is$typed(v, id, hashAssignmentView)\n}\n\nexport function validateAssignmentView<V>(v: V) {\n return validate<AssignmentView & V>(v, id, hashAssignmentView)\n}\n"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type HeadersMap } from '@atproto/xrpc';
|
|
5
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
6
|
+
export type QueryParams = {};
|
|
7
|
+
export type InputSchema = undefined;
|
|
8
|
+
export interface OutputSchema {
|
|
9
|
+
notifications?: NotificationConfig;
|
|
10
|
+
}
|
|
11
|
+
export interface CallOptions {
|
|
12
|
+
signal?: AbortSignal;
|
|
13
|
+
headers?: HeadersMap;
|
|
14
|
+
}
|
|
15
|
+
export interface Response {
|
|
16
|
+
success: boolean;
|
|
17
|
+
headers: HeadersMap;
|
|
18
|
+
data: OutputSchema;
|
|
19
|
+
}
|
|
20
|
+
export declare function toKnownErr(e: any): any;
|
|
21
|
+
export interface NotificationConfig {
|
|
22
|
+
$type?: 'tools.ozone.server.getCapabilities#notificationConfig';
|
|
23
|
+
channels: ('inApp' | 'push' | (string & {}))[];
|
|
24
|
+
}
|
|
25
|
+
export declare function isNotificationConfig<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.server.getCapabilities", "notificationConfig">;
|
|
26
|
+
export declare function validateNotificationConfig<V>(v: V): ValidationResult<NotificationConfig & V>;
|
|
27
|
+
//# sourceMappingURL=getCapabilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCapabilities.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/server/getCapabilities.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAa,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAC5B,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,aAAa,CAAC,EAAE,kBAAkB,CAAA;CACnC;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,kBAAkB;IACjC,KAAK,CAAC,EAAE,uDAAuD,CAAA;IAC/D,QAAQ,EAAE,CAAC,OAAO,GAAG,MAAM,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,EAAE,CAAA;CAC/C;AAID,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,kHAE3C;AAED,wBAAgB,0BAA0B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,4CAEjD"}
|
|
@@ -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 = 'tools.ozone.server.getCapabilities';
|
|
11
|
+
export function toKnownErr(e) {
|
|
12
|
+
return e;
|
|
13
|
+
}
|
|
14
|
+
const hashNotificationConfig = 'notificationConfig';
|
|
15
|
+
export function isNotificationConfig(v) {
|
|
16
|
+
return is$typed(v, id, hashNotificationConfig);
|
|
17
|
+
}
|
|
18
|
+
export function validateNotificationConfig(v) {
|
|
19
|
+
return validate(v, id, hashNotificationConfig);
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=getCapabilities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCapabilities.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/server/getCapabilities.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAmB,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAyB,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAE5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,oCAAoC,CAAA;AAoB/C,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC;AAOD,MAAM,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","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.server.getCapabilities'\n\nexport type QueryParams = {}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n notifications?: NotificationConfig\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 NotificationConfig {\n $type?: 'tools.ozone.server.getCapabilities#notificationConfig'\n channels: ('inApp' | 'push' | (string & {}))[]\n}\n\nconst hashNotificationConfig = 'notificationConfig'\n\nexport function isNotificationConfig<V>(v: V) {\n return is$typed(v, id, hashNotificationConfig)\n}\n\nexport function validateNotificationConfig<V>(v: V) {\n return validate<NotificationConfig & V>(v, id, hashNotificationConfig)\n}\n"]}
|