UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

34 lines 1.08 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.microsoftGetTokenNode = void 0; /* Custom modules */ const createNodeDescriptor_1 = require("../../createNodeDescriptor"); const design_1 = require("./utils/design"); /** * Node name: 'microsoftGetToken' * * Purpose: * Manually request permissions or token exchange */ exports.microsoftGetTokenNode = (0, createNodeDescriptor_1.createNodeDescriptor)({ type: "microsoftGetToken", defaultLabel: "Get Token", summary: "UI__NODE_EDITOR__MICROSOFT__GET_TOKEN__SUMMARY", appearance: { showIcon: true, color: design_1.nodeColor }, tags: ["microsoft"], function: async ({ cognigy }) => { const { api } = cognigy; api.addToContext("microsoftSsoPermissionRequest", "pending", "simple"); await api.say("", { _cognigy: { _microsoftBotFramework: { json: { requestMicrosoftSsoPermissions: true }, }, }, }); } }); //# sourceMappingURL=getToken.js.map