UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

34 lines 1.16 kB
"use strict"; /** * @deprecated since 2026.7.0 — The "State" feature has been deprecated and will be removed in an upcoming release. * See https://cognigy.visualstudio.com/Aluminium/_workitems/edit/122834 */ Object.defineProperty(exports, "__esModule", { value: true }); exports.RESET_STATE = void 0; /* Custom modules */ const createNodeDescriptor_1 = require("../../createNodeDescriptor"); /** * @deprecated since 2026.7.0 — The "State" feature has been deprecated and will be removed in an upcoming release. * * Node name: 'resetState' * * Purpose: * Resets the state of the current brain to default */ exports.RESET_STATE = (0, createNodeDescriptor_1.createNodeDescriptor)({ type: "resetState", defaultLabel: "Reset State", summary: "UI__NODE_EDITOR__RESET_STATE__SUMMARY", appearance: { showIcon: false }, fields: [], tags: ["logic"], function: async ({ cognigy }) => { const { api, input } = cognigy; const state = await api.resetState(); input.state = state; api.logDebugMessage(`UI__DEBUG_MODE__RESET_STATE__MESSAGE`); } }); //# sourceMappingURL=resetState.js.map