UNPKG

@volley/recognition-client-sdk

Version:

Recognition Service TypeScript/Node.js Client SDK

26 lines 919 B
/** * URL Builder for Recognition Client * Handles WebSocket URL construction with query parameters */ import type { GameContextV1, Stage } from '@recog/shared-types'; import type { RecognitionCallbackUrl } from '../recognition-client.types.js'; export interface UrlBuilderConfig { url?: string; stage?: Stage | string; audioUtteranceId: string; callbackUrls?: RecognitionCallbackUrl[]; userId?: string; gameSessionId?: string; deviceId?: string; accountId?: string; questionAnswerId?: string; platform?: string; gameContext?: GameContextV1; } /** * Build WebSocket URL with all query parameters * Either `url` or `stage` must be provided (or defaults to production if neither provided) * If both are provided, `url` takes precedence over `stage` */ export declare function buildWebSocketUrl(config: UrlBuilderConfig): string; //# sourceMappingURL=url-builder.d.ts.map