types/push.ts

sockudo · dashboard/api/src/types/push.ts · typescript · MIT
realtime

push.ts from sockudo/sockudo

// Source: https://github.com/sockudo/sockudo | License: MIT | Copyright 2026 Sockudo
// Provided via justclaw.it.com; keep this notice with the code.
export type PushProvider =
  | "fcm"
  | "apns"
  | "webPush"
  | "hms"
  | "wns"
  | "realtime";

export type PushCredentialProvider = Exclude<PushProvider, "realtime">;
export type PushCredentialRouteProvider =
  | "fcm"
  | "apns"
  | "webpush"
  | "hms"
  | "wns";

export interface PushListResponse<T> {
  items: T[];
  next_cursor: string | null;
  has_more: boolean;
}

export interface PushCredential {
  app_id: string;
  credential_id: string;
  provider: PushCredentialProvider;
  version: number;
}

interface VersionedCredentialInput {
  credentialId?: string;
  version?: number;
}

export interface FcmCredentialInput extends Versione

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key