35 lines
658 B
TypeScript
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;
|
|
}
|