export type MediaOrigin = { url: string; type: string; length: number }; export type SourceMedia = MediaOrigin & { contentHash?: { algorithm: "sha-256"; value: string }; }; export type EpisodeRecord = { $type: "place.pod.episode"; showUri: string; title: string; guid: string; createdAt: string; audioUrl: string; audioMimeType: string; audioSizeBytes: number; media: MediaOrigin & { primary: MediaOrigin; source?: SourceMedia }; [key: string]: unknown; }; export type ShowRecord = { $type: "place.pod.show"; title: string; resolverAnalytics?: boolean; [key: string]: unknown; }; export type RecordEnvelope = { uri: string; cid: string; value: unknown }; export type RecordReader = { get(uri: string): Promise }; export type RegisteredShow = { id: string; uri: string; publisherDid: string; cid: string; record: ShowRecord; updatedAt: string; }; export type ResolverMapping = { id: string; showUri: string; episodeUri: string; episodeGuid: string; recordCid: string; record: EpisodeRecord; primary: MediaOrigin; analyticsEnabled: boolean; status: "active" | "withdrawn" | "unavailable"; version: number; verifiedAt: string; }; export type AnalyticsEvent = { resolverId: string; showUri: string; mappingVersion: number; timestamp: string; method: "GET" | "HEAD"; userAgentClass: string; rangeKind: "full" | "probe" | "partial"; ipPseudonym?: string; }; export type AnalyticsSink = { record(event: AnalyticsEvent): Promise }; export type PlatformCredential = { platform: string; token: string };