{"version":3,"sources":["../../../src/window/clients/call.ts"],"names":[],"mappings":"AAyBO,MAAM,UAAW,CAAA;AAAA,EACb,MAAA;AAAA,EAET,YAAY,MAAsB,EAAA;AAChC,IAAA,IAAA,CAAK,MAAS,GAAA,MAAA;AAAA;AAChB,EAEA,MAAM,MAAM,MAAyB,EAAA;AACnC,IAAM,MAAA,CAAC,EAAE,CAAI,GAAA,MAAM,KAAK,MAAO,CAAA,IAAA,CAAgB,kBAAkB,MAAM,CAAA;AAEvE,IAAO,OAAA,EAAA;AAAA;AAEX","file":"call.mjs","sourcesContent":["import { WindowClient } from '../window-client';\nimport { CallModality } from '../types';\n\nexport interface StartCallParams {\n  /**\n   * Comma-separated list of user IDs representing the participants of the call.\n   *\n   * @remarks\n   * Currently the User ID field supports the Microsoft Entra UserPrincipalName,\n   * typically an email address, or in case of a PSTN call, it supports a pstn\n   * mri 4:\\<phonenumber>.\n   */\n  targets: string[];\n\n  /**\n   * List of modalities for the call. Defaults to [“audio”].\n   */\n  requestedModalities?: CallModality[];\n\n  /**\n   * An optional parameter that informs about the source of the deep link\n   */\n  source?: string;\n}\n\nexport class CallClient {\n  readonly window: WindowClient;\n\n  constructor(client: WindowClient) {\n    this.window = client;\n  }\n\n  async start(params: StartCallParams) {\n    const [ok] = await this.window.send<[boolean]>('call.startCall', params);\n\n    return ok;\n  }\n}\n"]}