UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

27 lines 954 B
import { __awaiter } from "tslib"; /* Custom modules */ import { createNodeDescriptor } from "../../createNodeDescriptor"; import { nodeColor } from "./utils/design"; /** * Node name: 'microsoftInvalidateToken' * * Purpose: * The SSO token gets removed */ export const microsoftInvalidateTokenNode = createNodeDescriptor({ type: "microsoftInvalidateToken", defaultLabel: "Invalidate Token", summary: "UI__NODE_EDITOR__MICROSOFT__INVALID_TOKEN__SUMMARY", appearance: { showIcon: true, color: nodeColor }, fields: [], tags: ["microsoft"], function: ({ cognigy }) => __awaiter(void 0, void 0, void 0, function* () { const { api } = cognigy; api.addToContext("microsoftSsoPermissionRequest", "declined", "simple"); yield api.say("", { _cognigy: { _microsoftBotFramework: { json: { revokeMicrosoftSsoPermissions: true } } } }); }) }); //# sourceMappingURL=invalidateToken.js.map