{"version":3,"file":"attribute-typings.mjs","sources":["../../../src/room/attribute-typings.ts"],"sourcesContent":["// This file was generated from JSON Schema using quicktype, do not modify it directly.\n// The code generation lives at https://github.com/livekit/attribute-definitions\n//\n// To parse this data:\n//\n//   import { Convert, AgentAttributes, TranscriptionAttributes } from \"./file\";\n//\n//   const agentAttributes = Convert.toAgentAttributes(json);\n//   const transcriptionAttributes = Convert.toTranscriptionAttributes(json);\n\nexport interface AgentAttributes {\n  'lk.agent.inputs'?: AgentInput[];\n  'lk.agent.outputs'?: AgentOutput[];\n  'lk.agent.state'?: AgentState;\n  'lk.publish_on_behalf'?: string;\n  [property: string]: any;\n}\n\nexport type AgentInput = 'audio' | 'video' | 'text';\n\nexport type AgentOutput = 'transcription' | 'audio';\n\nexport type AgentState = 'idle' | 'initializing' | 'listening' | 'thinking' | 'speaking';\n\n/**\n * Schema for transcription-related attributes\n */\nexport interface TranscriptionAttributes {\n  /**\n   * The segment id of the transcription\n   */\n  'lk.segment_id'?: string;\n  /**\n   * The associated track id of the transcription\n   */\n  'lk.transcribed_track_id'?: string;\n  /**\n   * Whether the transcription is final\n   */\n  'lk.transcription_final'?: boolean;\n  [property: string]: any;\n}\n\n// Converts JSON strings to/from your types\nexport class Convert {\n  public static toAgentAttributes(json: string): AgentAttributes {\n    return JSON.parse(json);\n  }\n\n  public static agentAttributesToJson(value: AgentAttributes): string {\n    return JSON.stringify(value);\n  }\n\n  public static toTranscriptionAttributes(json: string): TranscriptionAttributes {\n    return JSON.parse(json);\n  }\n\n  public static transcriptionAttributesToJson(value: TranscriptionAttributes): string {\n    return JSON.stringify(value);\n  }\n}\n"],"names":["Convert","toAgentAttributes","json","JSON","parse","agentAttributesToJson","value","stringify","toTranscriptionAttributes","transcriptionAttributesToJson"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAmCA;MACaA,OAAO,CAAA;EACX,OAAOC,iBAAiBA,CAACC,IAAY,EAAA;AAC1C,IAAA,OAAOC,IAAI,CAACC,KAAK,CAACF,IAAI,CAAC;AACzB,EAAA;EAEO,OAAOG,qBAAqBA,CAACC,KAAsB,EAAA;AACxD,IAAA,OAAOH,IAAI,CAACI,SAAS,CAACD,KAAK,CAAC;AAC9B,EAAA;EAEO,OAAOE,yBAAyBA,CAACN,IAAY,EAAA;AAClD,IAAA,OAAOC,IAAI,CAACC,KAAK,CAACF,IAAI,CAAC;AACzB,EAAA;EAEO,OAAOO,6BAA6BA,CAACH,KAA8B,EAAA;AACxE,IAAA,OAAOH,IAAI,CAACI,SAAS,CAACD,KAAK,CAAC;AAC9B,EAAA;AACD"}