UNPKG

@microsoft/agents-copilotstudio-client

Version:

Microsoft Copilot Studio Client for JavaScript. Copilot Studio Client.

24 lines 930 B
"use strict"; /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.ScopeHelper = void 0; const powerPlatformEnvironment_1 = require("./powerPlatformEnvironment"); /** * Utility class for generating authentication scope URLs for Copilot Studio. */ class ScopeHelper { /** * Returns the scope URL needed to connect to Copilot Studio from the connection settings. * This is used for authentication token audience configuration. * @param settings Copilot Studio connection settings. * @returns The scope URL for token audience (e.g., "https://api.powerplatform.com/.default"). */ static getScopeFromSettings(settings) { return (0, powerPlatformEnvironment_1.getTokenAudience)(settings); } } exports.ScopeHelper = ScopeHelper; //# sourceMappingURL=scopeHelper.js.map