mirror of
https://github.com/stablyai/orca.git
synced 2026-09-22 16:02:32 +00:00
* 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
9 lines
347 B
TypeScript
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
|
|
}
|