UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

32 lines 1.01 kB
import { __awaiter } from "tslib"; /* Custom modules */ import { createNodeDescriptor } from "../../createNodeDescriptor"; import { nodeColor } from "./utils/design"; /** * Node name: 'microsoftGetToken' * * Purpose: * Manually request permissions or token exchange */ export const microsoftGetTokenNode = createNodeDescriptor({ type: "microsoftGetToken", defaultLabel: "Get Token", summary: "UI__NODE_EDITOR__MICROSOFT__GET_TOKEN__SUMMARY", appearance: { showIcon: true, color: nodeColor }, tags: ["microsoft"], function: ({ cognigy }) => __awaiter(void 0, void 0, void 0, function* () { const { api } = cognigy; api.addToContext("microsoftSsoPermissionRequest", "pending", "simple"); yield api.say("", { _cognigy: { _microsoftBotFramework: { json: { requestMicrosoftSsoPermissions: true }, }, }, }); }) }); //# sourceMappingURL=getToken.js.map