This repository has been archived on 2026-02-28. You can view files and clone it, but cannot push or open issues or pull requests.
ServerSpacebarOld/src/schemas/uncategorised/DeviceNotificationSchema.ts
2025-12-07 23:21:40 +02:00

35 lines
658 B
TypeScript

export type PushProvider = "gcm" | "apns" | "apns_internal" | "apns_voip" | "apns_internal_voip" | "webpush";
export interface DeviceNotificationSchema {
provider: PushProvider;
token?: string;
voip_provider?: PushProvider;
voip_token?: string;
webpush_subscription?: {
/**
* @minLength 1
* @maxLength 2048
*/
endpoint: string;
/**
* @minimum 0
* @TJS-type integer
*/
expirationTime?: number;
keys: {
/**
* @minLength 1
* @maxLength 256
*/
p256dh: string;
/**
* @minLength 1
* @maxLength 256
*/
auth: string;
};
};
bypass_server_throttling_supported?: boolean;
bundle_id?: string;
}