@atproto/api 0.24.1 → 0.24.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +5 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +1188 -6
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +606 -3
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/embed/external.d.ts +103 -0
- package/dist/client/types/app/bsky/embed/external.d.ts.map +1 -1
- package/dist/client/types/app/bsky/embed/external.js +42 -0
- package/dist/client/types/app/bsky/embed/external.js.map +1 -1
- package/dist/client/types/app/bsky/embed/getEmbedExternalView.d.ts +4 -0
- package/dist/client/types/app/bsky/embed/getEmbedExternalView.d.ts.map +1 -1
- package/dist/client/types/app/bsky/embed/getEmbedExternalView.js.map +1 -1
- package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreTab.d.ts +88 -0
- package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreTab.d.ts.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreTab.js +56 -0
- package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreTab.js.map +1 -0
- package/dist/client/types/tools/ozone/queue/defs.d.ts +9 -1
- package/dist/client/types/tools/ozone/queue/defs.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/queue/defs.js.map +1 -1
- package/dist/client/types/tools/ozone/report/defs.d.ts +18 -2
- 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/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/report/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAyB,OAAO,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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 /** 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"]}
|
|
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,k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CAAI,CAAI;IAChD,OAAO,QAAQ,CAAyB,CAAC,EAAE,EAAE,EAAE,sBAAsB,CAAC,CAAA;AACxE,CAAC;AAiDD,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;AAmDD,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 unmuted reports currently not closed. */\n pendingCount?: number\n /** Unmuted pending reports past their closure target. */\n closureTargetOverdueCount?: number\n /** Reports whose closure meets their closure target. */\n closureTargetMetCount?: number\n /** Reports whose closure exceeds their closure target. */\n closureTargetMissedCount?: number\n /** Percent of reports meeting their closure target. */\n closureTargetMetRate?: 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 unmuted reports not closed at the end of this UTC day, or at computation time for the current day. */\n pendingCount?: number\n /** Unmuted pending reports past their closure target at the snapshot time. */\n closureTargetOverdueCount?: number\n /** Reports whose closure meets their closure target. */\n closureTargetMetCount?: number\n /** Reports whose closure exceeds their closure target. */\n closureTargetMissedCount?: number\n /** Percent of reports meeting their closure target. */\n closureTargetMetRate?: 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"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/api",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Client library for atproto and Bluesky",
|
|
6
6
|
"keywords": [
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"multiformats": "^13.0.0",
|
|
36
36
|
"tlds": "^1.234.0",
|
|
37
37
|
"zod": "^3.23.8",
|
|
38
|
-
"@atproto/common-web": "^0.5.14",
|
|
39
38
|
"@atproto/lexicon": "^0.7.16",
|
|
39
|
+
"@atproto/common-web": "^0.5.14",
|
|
40
40
|
"@atproto/syntax": "^0.7.6",
|
|
41
41
|
"@atproto/xrpc": "^0.8.15"
|
|
42
42
|
},
|