Packbase SDK

Pack-host types

Rules, activity trends, and Pack-rule report responses.

These types describe pb.packs(id).host. They belong to Pack management, rather than platform administration.

FamilyExported shapesImportant fields
Welcome and rulesPackRule, PackHostRules, PackWelcome, PackRulesInputVersioned rules, accepted version, eligibility, and expected_version
ActivityPackActivityRange, PackActivityCounts, PackActivityPoint, PackActivityTrend, PackInsightsSelected and previous windows, timezone, bucket bounds, distinct contributors
ReportsPackRuleReportInput, PackRuleReportResult, PackRuleReport, PackRuleReportPage, PackReportHistoryVersioned rule snapshot, reporter, notes, visible howl, public host actions
ActionsPackReportStatus, PackReportAction, PackReportActionInputQueue status, requested enforcement, required explanation
Inbox metadataPackReportOutcomeMetadata, PackHostNotificationPack and report identifiers
const  = .('pack-id').
const : PackInsights = await .({ : 'Australia/Melbourne' })
const :  = await .({ : 'open' })
for (const  of ..) .(., ., .)
for (const  of .) .(.., ..)

PackInsights.current and .previous contain members, posts, replies, and contributors. Trend intervals are hour, day, or week. Counts and bucket bounds are scoped to the requested range; contributor counts are distinct per bucket and cannot be summed to obtain distinct contributors for the full range.

Report states are open, resolved, dismissed, and escalated. Actions are resolve, dismiss, escalate, delete_howl, kick, and ban. A report queue uses the normal data, has_more, and optional cursor shape. A visible report can include a hydrated howl; unavailable content must not be reconstructed from retained client state. The SDK does not expose platform-private case data through these types.