UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

32 lines 1.1 kB
/** * @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 */ import { __awaiter } from "tslib"; /* Custom modules */ import { createNodeDescriptor } from "../../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 */ export const RESET_STATE = createNodeDescriptor({ type: "resetState", defaultLabel: "Reset State", summary: "UI__NODE_EDITOR__RESET_STATE__SUMMARY", appearance: { showIcon: false }, fields: [], tags: ["logic"], function: ({ cognigy }) => __awaiter(void 0, void 0, void 0, function* () { const { api, input } = cognigy; const state = yield api.resetState(); input.state = state; api.logDebugMessage(`UI__DEBUG_MODE__RESET_STATE__MESSAGE`); }) }); //# sourceMappingURL=resetState.js.map