{"version":3,"file":"version.mjs","sources":["../../src/version.ts"],"sourcesContent":["import { version as v } from '../package.json';\n\nexport const version = v;\n\n/** First server protocol version that creates the single peer connection data channels as\n * negotiated (fixed SCTP stream IDs) instead of opening them in-band. */\nexport const PROTOCOL_NEGOTIATED_DATA_CHANNELS = 18;\n\nexport const protocolVersion = PROTOCOL_NEGOTIATED_DATA_CHANNELS;\n\n/** Initial client protocol. */\nexport const CLIENT_PROTOCOL_DEFAULT = 0;\n/** Replaces RPC v1 protocol with a v2 data streams based one to support unlimited request /\n * response payload length. */\nexport const CLIENT_PROTOCOL_DATA_STREAM_RPC = 1;\n/** \"Data streams v2\": the client knows how to receive a single-packet data stream (a stream whose\n * entire payload is smuggled into the header packet, with no chunk/trailer packets). Senders only\n * use the single-packet optimization when the recipient advertises at least this protocol. */\nexport const CLIENT_PROTOCOL_DATA_STREAM_V2 = 2;\n/** The client rebuilds transcription events from `lk.transcription` text streams, so senders may\n * omit the legacy `Transcription` data packet. Read in both directions: a client advertising this\n * needs no legacy packets, and an agent advertising it publishes every transcription on the\n * `lk.transcription` stream channel. */\nexport const CLIENT_PROTOCOL_TRANSCRIPTION_STREAMS = 3;\n\n/** The client protocol version indicates what level of support that the client has for\n * client <-> client api interactions. */\nexport const clientProtocol = CLIENT_PROTOCOL_TRANSCRIPTION_STREAMS;\n"],"names":["version","v","PROTOCOL_NEGOTIATED_DATA_CHANNELS","protocolVersion","CLIENT_PROTOCOL_DEFAULT","CLIENT_PROTOCOL_DATA_STREAM_RPC","CLIENT_PROTOCOL_DATA_STREAM_V2","CLIENT_PROTOCOL_TRANSCRIPTION_STREAMS","clientProtocol"],"mappings":"sDAEO,MAAMA,OAAO,GAAGC;AAEvB;AACyE;AAClE,MAAMC,iCAAiC,GAAG;AAE1C,MAAMC,eAAe,GAAGD;AAE/B;AACO,MAAME,uBAAuB,GAAG;AACvC;AAC8B;AACvB,MAAMC,+BAA+B,GAAG;AAC/C;;AAE8F;AACvF,MAAMC,8BAA8B,GAAG;AAC9C;;;AAGwC;AACjC,MAAMC,qCAAqC,GAAG;AAErD;AACyC;AAClC,MAAMC,cAAc,GAAGD"}