mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-15 02:49:33 +01:00
21 lines
464 B
TypeScript
21 lines
464 B
TypeScript
/**
|
|||
|
|
* @fileoverview Web Push notification type definitions
|
||
|
|
*/
|
||
|
|
|
||
|
|
/** A registered push subscription */
|
||
|
|
export interface PushSubscriptionRecord {
|
||
|
|
id: string;
|
||
|
|
endpoint: string;
|
||
|
|
keys: { p256dh: string; auth: string };
|
||
|
|
userAgent: string;
|
||
|
|
createdAt: number;
|
||
|
|
lastUsedAt: number;
|
||
|
|
pushPreferences: Record<string, boolean>;
|
||
|
|
}
|
||
|
|
|
||
|
|
/** VAPID key pair for Web Push */
|
||
|
|
export interface VapidKeys {
|
||
|
|
publicKey: string;
|
||
|
|
privateKey: string;
|
||
|
|
generatedAt: number;
|
||
|
|
}
|