{"version":3,"sources":["../../src/telemetry/observability_endpoint.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2026 LiveKit, Inc.\n//\n// SPDX-License-Identifier: Apache-2.0\n/**\n * Where the observability exporters send data.\n *\n * `cloudHostname` is the pre-1.8 spelling: a bare host that always implied `https`. It is still\n * accepted so callers compiled against earlier releases keep working, and resolves to exactly the\n * URL they got before. New callers should pass `observabilityUrl`, which can also carry a scheme,\n * a port, and a base path.\n */\nexport type ObservabilityEndpoint =\n  | {\n      /** Base URL for LiveKit Cloud observability, without a trailing slash. */\n      observabilityUrl: string;\n      cloudHostname?: undefined;\n    }\n  | {\n      observabilityUrl?: undefined;\n      /** @deprecated Pass `observabilityUrl` instead. A bare hostname is assumed to be `https`. */\n      cloudHostname: string;\n    };\n\n/** Resolve an {@link ObservabilityEndpoint} to the base URL consumers append their path to. */\nexport function resolveObservabilityUrl(endpoint: ObservabilityEndpoint): string {\n  if (endpoint.observabilityUrl) {\n    return endpoint.observabilityUrl;\n  }\n\n  if (endpoint.cloudHostname) {\n    return `https://${endpoint.cloudHostname}`;\n  }\n\n  throw new Error('observabilityUrl is required for LiveKit Cloud observability');\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAwBO,SAAS,wBAAwB,UAAyC;AAC/E,MAAI,SAAS,kBAAkB;AAC7B,WAAO,SAAS;AAAA,EAClB;AAEA,MAAI,SAAS,eAAe;AAC1B,WAAO,WAAW,SAAS,aAAa;AAAA,EAC1C;AAEA,QAAM,IAAI,MAAM,8DAA8D;AAChF;","names":[]}