Type Alias YoutubePubSubInspection

YoutubePubSubInspection: {
    agrees: boolean | null;
    found: boolean;
    hub: {
        lastDelivery: string | null;
        lastError: string | null;
        leaseExpiresAt: string | null;
        raw: string | null;
        state:
            | "verified"
            | "unverified"
            | "not-found"
            | "unknown";
    } | null;
    receipts: {
        at: number;
        outcome: string;
        title: string | null;
        videoId: string | null;
    }[];
    redis: {
        renewalDueAt: number | null;
        scheduled: boolean;
    };
    streamerId: string | null;
    username: string;
}

agrees: null = Google's page could not be read - unknown, NOT a disagreement. hub.raw = the unparsed page when hub.state is 'unknown'.

Type declaration

  • agrees: boolean | null
  • found: boolean
  • hub: {
        lastDelivery: string | null;
        lastError: string | null;
        leaseExpiresAt: string | null;
        raw: string | null;
        state:
            | "verified"
            | "unverified"
            | "not-found"
            | "unknown";
    } | null
  • receipts: {
        at: number;
        outcome: string;
        title: string | null;
        videoId: string | null;
    }[]

    Webhooks Google sent us, newest first (epoch ms). Empty = nothing arrived in 30 days.

  • redis: {
        renewalDueAt: number | null;
        scheduled: boolean;
    }
    • renewalDueAt: number | null
    • scheduled: boolean
  • streamerId: string | null
  • username: string