/** * System-level event names emitted on the realtime SSE stream * (`GET /v2/apps/{appId}/realtime`). * * The stream also emits `event: message` frames whose `data:` is forwarded * opaquely from the upstream source — typically a JSON string, but the API * does not enforce a schema. Consumers should `JSON.parse` and discriminate * internally per the feature they're listening to. * * Connection limits: at most 5 simultaneous connections per user (plus a * per-application cap) — exceeding it returns `REALTIME_MAX_CONNECTIONS`. * Each connection has a 10-minute TTL with one transparent internal * reconnection; clients must reconnect when the TTL expires. * * @see https://docs.squarecloud.app/en/api-reference/endpoint/apps/realtime */ type APIRealtimeSystemEvent = "REALTIME_CONNECTING" | "REALTIME_TIMEOUT" | "REALTIME_DISCONNECTED" | "REALTIME_RECONNECT" | "REALTIME_ERROR"; declare const APIRealtimeSystemEvent: { readonly Connecting: "REALTIME_CONNECTING"; readonly Timeout: "REALTIME_TIMEOUT"; readonly Disconnected: "REALTIME_DISCONNECTED"; readonly Reconnect: "REALTIME_RECONNECT"; readonly Error: "REALTIME_ERROR"; }; export { APIRealtimeSystemEvent };