Files
orca/cloud/apps/push/src/push-delivery-payload.ts
T
Jinwoo Hong eb2f2d52ae feat(cloud): native push gateway and dedicated infrastructure (1/3) (#19912)
* refactor(cloud): share PostgreSQL schema startup between services

* feat(cloud): add durable native push notification gateway

* infra(push): define dedicated gateway resources and operational checks

* fix(push): bound cross-host admission and simplify gateway configuration

* fix(push): validate deploy configuration and preserve topic-error registrations
2026-09-10 17:59:46 -04:00

9 lines
347 B
TypeScript

import type { PushNotification } from '@orca-cloud/push-contract'
export function parsePushDeliveryPayload(payload: string): PushNotification {
const value: unknown = JSON.parse(payload)
if (!value || typeof value !== 'object' || Array.isArray(value))
throw new Error('invalid_push_delivery_payload')
return value as PushNotification
}