UNPKG

@microsoft/agents-copilotstudio-client

Version:

Microsoft Copilot Studio Client for JavaScript. Copilot Studio Client.

41 lines 1.64 kB
"use strict"; /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.loadCopilotStudioConnectionSettingsFromEnv = exports.ConnectionSettings = void 0; /** * Represents the settings required to establish a connection to Copilot Studio. */ class ConnectionSettings { constructor() { /** The client ID of the application. */ this.appClientId = ''; /** The tenant ID of the application. */ this.tenantId = ''; /** The environment ID of the application. */ this.environmentId = ''; /** The cloud environment of the application. */ this.cloud = ''; } } exports.ConnectionSettings = ConnectionSettings; /** * Loads the connection settings for Copilot Studio from environment variables. * @returns The connection settings. */ const loadCopilotStudioConnectionSettingsFromEnv = () => { var _a, _b, _c; return { appClientId: (_a = process.env.appClientId) !== null && _a !== void 0 ? _a : '', tenantId: (_b = process.env.tenantId) !== null && _b !== void 0 ? _b : '', environmentId: (_c = process.env.environmentId) !== null && _c !== void 0 ? _c : '', cloud: process.env.cloud, customPowerPlatformCloud: process.env.customPowerPlatformCloud, agentIdentifier: process.env.agentIdentifier, copilotAgentType: process.env.copilotAgentType }; }; exports.loadCopilotStudioConnectionSettingsFromEnv = loadCopilotStudioConnectionSettingsFromEnv; //# sourceMappingURL=connectionSettings.js.map