import { APIResource } from "../../core/resource.js"; import { APIPromise } from "../../core/api-promise.js"; import { RequestOptions } from "../../internal/request-options.js"; /** * CLI integration endpoints */ export declare class Realtime extends APIResource { /** * Authenticate CLI client access to a private-cli-{nanoId} Pusher channel */ auth(body: RealtimeAuthParams, options?: RequestOptions): APIPromise; /** * Get the Pusher key and project nanoId for the CLI realtime trigger channel. The * CLI subscribes to private-cli-{project_id}. */ credentials(options?: RequestOptions): APIPromise; } export interface RealtimeAuthResponse { /** * The authentication string for Pusher */ auth: string; /** * Channel data for presence channels */ channel_data?: string; } export interface RealtimeCredentialsResponse { /** * The project nanoId associated with the API Key provided. Used as part of the CLI * channel name: private-cli-{project_id} */ project_id: string; /** * The Pusher cluster for subscribing to the trigger */ pusher_cluster: string; /** * The Pusher client key for subscribing to the trigger */ pusher_key: string; } export interface RealtimeAuthParams { /** * The channel name to authenticate for */ channel_name: string; /** * The socket ID for Pusher authentication */ socket_id: string; } export declare namespace Realtime { export { type RealtimeAuthResponse as RealtimeAuthResponse, type RealtimeCredentialsResponse as RealtimeCredentialsResponse, type RealtimeAuthParams as RealtimeAuthParams, }; } //# sourceMappingURL=realtime.d.ts.map