@venturialstd/workflow 0.1.162 → 0.1.164

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/dist/dtos/create-workflow-canvas-element.dto.d.ts +13 -0
  2. package/dist/dtos/create-workflow-canvas-element.dto.d.ts.map +1 -0
  3. package/dist/dtos/create-workflow-canvas-element.dto.js +61 -0
  4. package/dist/dtos/create-workflow-canvas-element.dto.js.map +1 -0
  5. package/dist/dtos/index.d.ts +1 -0
  6. package/dist/dtos/index.d.ts.map +1 -1
  7. package/dist/dtos/index.js +1 -0
  8. package/dist/dtos/index.js.map +1 -1
  9. package/dist/entities/workflow-canvas-element.entity.d.ts +21 -0
  10. package/dist/entities/workflow-canvas-element.entity.d.ts.map +1 -0
  11. package/dist/entities/workflow-canvas-element.entity.js +100 -0
  12. package/dist/entities/workflow-canvas-element.entity.js.map +1 -0
  13. package/dist/index.d.ts +3 -0
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +3 -0
  16. package/dist/index.js.map +1 -1
  17. package/dist/modules/chatbot/actions/ask-question.action.d.ts +3 -0
  18. package/dist/modules/chatbot/actions/ask-question.action.d.ts.map +1 -0
  19. package/dist/modules/chatbot/actions/ask-question.action.js +42 -0
  20. package/dist/modules/chatbot/actions/ask-question.action.js.map +1 -0
  21. package/dist/modules/chatbot/actions/index.d.ts +4 -0
  22. package/dist/modules/chatbot/actions/index.d.ts.map +1 -0
  23. package/dist/modules/chatbot/actions/index.js +20 -0
  24. package/dist/modules/chatbot/actions/index.js.map +1 -0
  25. package/dist/modules/chatbot/actions/send-buttons.action.d.ts +3 -0
  26. package/dist/modules/chatbot/actions/send-buttons.action.d.ts.map +1 -0
  27. package/dist/modules/chatbot/actions/send-buttons.action.js +67 -0
  28. package/dist/modules/chatbot/actions/send-buttons.action.js.map +1 -0
  29. package/dist/modules/chatbot/actions/send-message.action.d.ts +3 -0
  30. package/dist/modules/chatbot/actions/send-message.action.d.ts.map +1 -0
  31. package/dist/modules/chatbot/actions/send-message.action.js +52 -0
  32. package/dist/modules/chatbot/actions/send-message.action.js.map +1 -0
  33. package/dist/modules/chatbot/chatbot-nest.module.d.ts +3 -0
  34. package/dist/modules/chatbot/chatbot-nest.module.d.ts.map +1 -0
  35. package/dist/modules/chatbot/chatbot-nest.module.js +21 -0
  36. package/dist/modules/chatbot/chatbot-nest.module.js.map +1 -0
  37. package/dist/modules/chatbot/chatbot.module.d.ts +3 -0
  38. package/dist/modules/chatbot/chatbot.module.d.ts.map +1 -0
  39. package/dist/modules/chatbot/chatbot.module.js +17 -0
  40. package/dist/modules/chatbot/chatbot.module.js.map +1 -0
  41. package/dist/modules/chatbot/credentials.d.ts +3 -0
  42. package/dist/modules/chatbot/credentials.d.ts.map +1 -0
  43. package/dist/modules/chatbot/credentials.js +5 -0
  44. package/dist/modules/chatbot/credentials.js.map +1 -0
  45. package/dist/modules/chatbot/services/ask-question.service.d.ts +5 -0
  46. package/dist/modules/chatbot/services/ask-question.service.d.ts.map +1 -0
  47. package/dist/modules/chatbot/services/ask-question.service.js +25 -0
  48. package/dist/modules/chatbot/services/ask-question.service.js.map +1 -0
  49. package/dist/modules/chatbot/services/index.d.ts +5 -0
  50. package/dist/modules/chatbot/services/index.d.ts.map +1 -0
  51. package/dist/modules/chatbot/services/index.js +21 -0
  52. package/dist/modules/chatbot/services/index.js.map +1 -0
  53. package/dist/modules/chatbot/services/send-buttons.service.d.ts +5 -0
  54. package/dist/modules/chatbot/services/send-buttons.service.d.ts.map +1 -0
  55. package/dist/modules/chatbot/services/send-buttons.service.js +25 -0
  56. package/dist/modules/chatbot/services/send-buttons.service.js.map +1 -0
  57. package/dist/modules/chatbot/services/send-message.service.d.ts +5 -0
  58. package/dist/modules/chatbot/services/send-message.service.d.ts.map +1 -0
  59. package/dist/modules/chatbot/services/send-message.service.js +27 -0
  60. package/dist/modules/chatbot/services/send-message.service.js.map +1 -0
  61. package/dist/modules/chatbot/services/user-responded.service.d.ts +5 -0
  62. package/dist/modules/chatbot/services/user-responded.service.d.ts.map +1 -0
  63. package/dist/modules/chatbot/services/user-responded.service.js +25 -0
  64. package/dist/modules/chatbot/services/user-responded.service.js.map +1 -0
  65. package/dist/modules/chatbot/triggers/index.d.ts +2 -0
  66. package/dist/modules/chatbot/triggers/index.d.ts.map +1 -0
  67. package/dist/modules/chatbot/triggers/index.js +18 -0
  68. package/dist/modules/chatbot/triggers/index.js.map +1 -0
  69. package/dist/modules/chatbot/triggers/user-responded.trigger.d.ts +3 -0
  70. package/dist/modules/chatbot/triggers/user-responded.trigger.d.ts.map +1 -0
  71. package/dist/modules/chatbot/triggers/user-responded.trigger.js +45 -0
  72. package/dist/modules/chatbot/triggers/user-responded.trigger.js.map +1 -0
  73. package/dist/modules/chatgpt/actions/chat-completion.action.d.ts.map +1 -1
  74. package/dist/modules/chatgpt/actions/chat-completion.action.js +27 -109
  75. package/dist/modules/chatgpt/actions/chat-completion.action.js.map +1 -1
  76. package/dist/modules/chatgpt/actions/chat-purpose.action.d.ts +3 -0
  77. package/dist/modules/chatgpt/actions/chat-purpose.action.d.ts.map +1 -0
  78. package/dist/modules/chatgpt/actions/chat-purpose.action.js +229 -0
  79. package/dist/modules/chatgpt/actions/chat-purpose.action.js.map +1 -0
  80. package/dist/modules/chatgpt/actions/create-embedding.action.d.ts.map +1 -1
  81. package/dist/modules/chatgpt/actions/create-embedding.action.js +10 -16
  82. package/dist/modules/chatgpt/actions/create-embedding.action.js.map +1 -1
  83. package/dist/modules/chatgpt/actions/generate-image.action.d.ts.map +1 -1
  84. package/dist/modules/chatgpt/actions/generate-image.action.js +19 -35
  85. package/dist/modules/chatgpt/actions/generate-image.action.js.map +1 -1
  86. package/dist/modules/chatgpt/actions/index.d.ts +1 -0
  87. package/dist/modules/chatgpt/actions/index.d.ts.map +1 -1
  88. package/dist/modules/chatgpt/actions/index.js +1 -0
  89. package/dist/modules/chatgpt/actions/index.js.map +1 -1
  90. package/dist/modules/chatgpt/actions/speech-to-text.action.d.ts.map +1 -1
  91. package/dist/modules/chatgpt/actions/speech-to-text.action.js +18 -31
  92. package/dist/modules/chatgpt/actions/speech-to-text.action.js.map +1 -1
  93. package/dist/modules/chatgpt/actions/text-to-speech.action.d.ts.map +1 -1
  94. package/dist/modules/chatgpt/actions/text-to-speech.action.js +15 -32
  95. package/dist/modules/chatgpt/actions/text-to-speech.action.js.map +1 -1
  96. package/dist/modules/chatgpt/auth/chatgpt-auth.service.d.ts +3 -0
  97. package/dist/modules/chatgpt/auth/chatgpt-auth.service.d.ts.map +1 -1
  98. package/dist/modules/chatgpt/auth/chatgpt-auth.service.js +33 -36
  99. package/dist/modules/chatgpt/auth/chatgpt-auth.service.js.map +1 -1
  100. package/dist/modules/chatgpt/auth/index.d.ts +2 -0
  101. package/dist/modules/chatgpt/auth/index.d.ts.map +1 -0
  102. package/dist/modules/chatgpt/auth/index.js +6 -0
  103. package/dist/modules/chatgpt/auth/index.js.map +1 -0
  104. package/dist/modules/chatgpt/chatgpt-nest.module.d.ts.map +1 -1
  105. package/dist/modules/chatgpt/chatgpt-nest.module.js +9 -6
  106. package/dist/modules/chatgpt/chatgpt-nest.module.js.map +1 -1
  107. package/dist/modules/chatgpt/chatgpt.module.d.ts.map +1 -1
  108. package/dist/modules/chatgpt/chatgpt.module.js +3 -2
  109. package/dist/modules/chatgpt/chatgpt.module.js.map +1 -1
  110. package/dist/modules/chatgpt/services/chat-completion.service.d.ts +2 -4
  111. package/dist/modules/chatgpt/services/chat-completion.service.d.ts.map +1 -1
  112. package/dist/modules/chatgpt/services/chat-completion.service.js +21 -100
  113. package/dist/modules/chatgpt/services/chat-completion.service.js.map +1 -1
  114. package/dist/modules/chatgpt/services/chat-purpose.service.d.ts +24 -0
  115. package/dist/modules/chatgpt/services/chat-purpose.service.d.ts.map +1 -0
  116. package/dist/modules/chatgpt/services/chat-purpose.service.js +396 -0
  117. package/dist/modules/chatgpt/services/chat-purpose.service.js.map +1 -0
  118. package/dist/modules/chatgpt/services/index.d.ts +1 -0
  119. package/dist/modules/chatgpt/services/index.d.ts.map +1 -1
  120. package/dist/modules/chatgpt/services/index.js +1 -0
  121. package/dist/modules/chatgpt/services/index.js.map +1 -1
  122. package/dist/modules/chatgpt/types/purpose-memory.types.d.ts +38 -0
  123. package/dist/modules/chatgpt/types/purpose-memory.types.d.ts.map +1 -0
  124. package/dist/modules/chatgpt/types/purpose-memory.types.js +28 -0
  125. package/dist/modules/chatgpt/types/purpose-memory.types.js.map +1 -0
  126. package/dist/modules/chatgpt/utils/purpose-cache-key.util.d.ts +5 -0
  127. package/dist/modules/chatgpt/utils/purpose-cache-key.util.d.ts.map +1 -0
  128. package/dist/modules/chatgpt/utils/purpose-cache-key.util.js +15 -0
  129. package/dist/modules/chatgpt/utils/purpose-cache-key.util.js.map +1 -0
  130. package/dist/modules/chatgpt/utils/purpose-schema.validator.d.ts +2 -0
  131. package/dist/modules/chatgpt/utils/purpose-schema.validator.d.ts.map +1 -0
  132. package/dist/modules/chatgpt/utils/purpose-schema.validator.js +34 -0
  133. package/dist/modules/chatgpt/utils/purpose-schema.validator.js.map +1 -0
  134. package/dist/modules/chatgpt/utils/token-estimate.util.d.ts +7 -0
  135. package/dist/modules/chatgpt/utils/token-estimate.util.d.ts.map +1 -0
  136. package/dist/modules/chatgpt/utils/token-estimate.util.js +20 -0
  137. package/dist/modules/chatgpt/utils/token-estimate.util.js.map +1 -0
  138. package/dist/modules/index.d.ts +1 -0
  139. package/dist/modules/index.d.ts.map +1 -1
  140. package/dist/modules/index.js +5 -1
  141. package/dist/modules/index.js.map +1 -1
  142. package/dist/services/workflow-canvas-element.service.d.ts +15 -0
  143. package/dist/services/workflow-canvas-element.service.d.ts.map +1 -0
  144. package/dist/services/workflow-canvas-element.service.js +67 -0
  145. package/dist/services/workflow-canvas-element.service.js.map +1 -0
  146. package/dist/services/workflow-sse.service.d.ts +4 -1
  147. package/dist/services/workflow-sse.service.d.ts.map +1 -1
  148. package/dist/services/workflow-sse.service.js +8 -0
  149. package/dist/services/workflow-sse.service.js.map +1 -1
  150. package/dist/workflow-core.module.d.ts.map +1 -1
  151. package/dist/workflow-core.module.js +5 -0
  152. package/dist/workflow-core.module.js.map +1 -1
  153. package/dist/workflow.module.d.ts.map +1 -1
  154. package/dist/workflow.module.js +3 -0
  155. package/dist/workflow.module.js.map +1 -1
  156. package/package.json +119 -118
  157. package/dist/modules/chatgpt/constants/chatgpt-completion.constants.d.ts +0 -4
  158. package/dist/modules/chatgpt/constants/chatgpt-completion.constants.d.ts.map +0 -1
  159. package/dist/modules/chatgpt/constants/chatgpt-completion.constants.js +0 -32
  160. package/dist/modules/chatgpt/constants/chatgpt-completion.constants.js.map +0 -1
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.chatbotCredentials = void 0;
4
+ exports.chatbotCredentials = [];
5
+ //# sourceMappingURL=credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credentials.js","sourceRoot":"","sources":["../../../src/modules/chatbot/credentials.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAgC,EAG9D,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { IWorkflowActionService, WorkflowActionContext } from '../../types';
2
+ export declare class AskQuestionService implements IWorkflowActionService {
3
+ perform(inputs: Record<string, unknown>, _context: WorkflowActionContext): Promise<Record<string, unknown>>;
4
+ }
5
+ //# sourceMappingURL=ask-question.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ask-question.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/chatbot/services/ask-question.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE5E,qBACa,kBAAmB,YAAW,sBAAsB;IACzD,OAAO,CACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,QAAQ,EAAE,qBAAqB,GAC9B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAapC"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.AskQuestionService = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ let AskQuestionService = class AskQuestionService {
12
+ async perform(inputs, _context) {
13
+ const _message = inputs.message;
14
+ const _startTime = Date.now();
15
+ return {
16
+ userResponse: '',
17
+ responseTime: 0,
18
+ };
19
+ }
20
+ };
21
+ exports.AskQuestionService = AskQuestionService;
22
+ exports.AskQuestionService = AskQuestionService = __decorate([
23
+ (0, common_1.Injectable)()
24
+ ], AskQuestionService);
25
+ //# sourceMappingURL=ask-question.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ask-question.service.js","sourceRoot":"","sources":["../../../../src/modules/chatbot/services/ask-question.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAKrC,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC7B,KAAK,CAAC,OAAO,CACX,MAA+B,EAC/B,QAA+B;QAI/B,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAiB,CAAC;QAC1C,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QAI9B,OAAO;YACL,YAAY,EAAE,EAAE;YAChB,YAAY,EAAE,CAAC;SAChB,CAAC;IACJ,CAAC;CACF,CAAA;AAjBY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;GACA,kBAAkB,CAiB9B"}
@@ -0,0 +1,5 @@
1
+ export * from './ask-question.service';
2
+ export * from './send-buttons.service';
3
+ export * from './send-message.service';
4
+ export * from './user-responded.service';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/chatbot/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ask-question.service"), exports);
18
+ __exportStar(require("./send-buttons.service"), exports);
19
+ __exportStar(require("./send-message.service"), exports);
20
+ __exportStar(require("./user-responded.service"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/chatbot/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,yDAAuC;AACvC,yDAAuC;AACvC,2DAAyC"}
@@ -0,0 +1,5 @@
1
+ import { IWorkflowActionService, WorkflowActionContext } from '../../types';
2
+ export declare class SendButtonsService implements IWorkflowActionService {
3
+ perform(inputs: Record<string, unknown>, _context: WorkflowActionContext): Promise<Record<string, unknown>>;
4
+ }
5
+ //# sourceMappingURL=send-buttons.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-buttons.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/chatbot/services/send-buttons.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE5E,qBACa,kBAAmB,YAAW,sBAAsB;IACzD,OAAO,CACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,QAAQ,EAAE,qBAAqB,GAC9B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAYpC"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.SendButtonsService = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ let SendButtonsService = class SendButtonsService {
12
+ async perform(inputs, _context) {
13
+ const _message = inputs.message;
14
+ const _buttons = inputs.buttons;
15
+ return {
16
+ selectedButton: '',
17
+ selectedButtonLabel: '',
18
+ };
19
+ }
20
+ };
21
+ exports.SendButtonsService = SendButtonsService;
22
+ exports.SendButtonsService = SendButtonsService = __decorate([
23
+ (0, common_1.Injectable)()
24
+ ], SendButtonsService);
25
+ //# sourceMappingURL=send-buttons.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-buttons.service.js","sourceRoot":"","sources":["../../../../src/modules/chatbot/services/send-buttons.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAKrC,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC7B,KAAK,CAAC,OAAO,CACX,MAA+B,EAC/B,QAA+B;QAI/B,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAiB,CAAC;QAC1C,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAkD,CAAC;QAG3E,OAAO;YACL,cAAc,EAAE,EAAE;YAClB,mBAAmB,EAAE,EAAE;SACxB,CAAC;IACJ,CAAC;CACF,CAAA;AAhBY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;GACA,kBAAkB,CAgB9B"}
@@ -0,0 +1,5 @@
1
+ import { IWorkflowActionService, WorkflowActionContext } from '../../types';
2
+ export declare class SendMessageService implements IWorkflowActionService {
3
+ perform(inputs: Record<string, unknown>, _context: WorkflowActionContext): Promise<Record<string, unknown>>;
4
+ }
5
+ //# sourceMappingURL=send-message.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-message.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/chatbot/services/send-message.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE5E,qBACa,kBAAmB,YAAW,sBAAsB;IACzD,OAAO,CACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,QAAQ,EAAE,qBAAqB,GAC9B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAepC"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.SendMessageService = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ let SendMessageService = class SendMessageService {
12
+ async perform(inputs, _context) {
13
+ const _message = inputs.message;
14
+ const _waitForResponse = inputs.waitForResponse || false;
15
+ const messageId = `msg_${Date.now()}`;
16
+ const sentAt = new Date();
17
+ return {
18
+ messageId,
19
+ sentAt: sentAt.toISOString(),
20
+ };
21
+ }
22
+ };
23
+ exports.SendMessageService = SendMessageService;
24
+ exports.SendMessageService = SendMessageService = __decorate([
25
+ (0, common_1.Injectable)()
26
+ ], SendMessageService);
27
+ //# sourceMappingURL=send-message.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-message.service.js","sourceRoot":"","sources":["../../../../src/modules/chatbot/services/send-message.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAKrC,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC7B,KAAK,CAAC,OAAO,CACX,MAA+B,EAC/B,QAA+B;QAI/B,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAiB,CAAC;QAC1C,MAAM,gBAAgB,GAAI,MAAM,CAAC,eAA2B,IAAI,KAAK,CAAC;QAGtE,MAAM,SAAS,GAAG,OAAO,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC;QACtC,MAAM,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QAE1B,OAAO;YACL,SAAS;YACT,MAAM,EAAE,MAAM,CAAC,WAAW,EAAE;SAC7B,CAAC;IACJ,CAAC;CACF,CAAA;AAnBY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;GACA,kBAAkB,CAmB9B"}
@@ -0,0 +1,5 @@
1
+ import { IWorkflowActionService, WorkflowActionContext } from '../../types';
2
+ export declare class UserRespondedService implements IWorkflowActionService {
3
+ perform(inputs: Record<string, unknown>, _context: WorkflowActionContext): Promise<Record<string, unknown>>;
4
+ }
5
+ //# sourceMappingURL=user-responded.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-responded.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/chatbot/services/user-responded.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE5E,qBACa,oBAAqB,YAAW,sBAAsB;IAC3D,OAAO,CACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,QAAQ,EAAE,qBAAqB,GAC9B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAYpC"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.UserRespondedService = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ let UserRespondedService = class UserRespondedService {
12
+ async perform(inputs, _context) {
13
+ const userId = inputs.userId;
14
+ return {
15
+ message: '',
16
+ timestamp: new Date().toISOString(),
17
+ userId,
18
+ };
19
+ }
20
+ };
21
+ exports.UserRespondedService = UserRespondedService;
22
+ exports.UserRespondedService = UserRespondedService = __decorate([
23
+ (0, common_1.Injectable)()
24
+ ], UserRespondedService);
25
+ //# sourceMappingURL=user-responded.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-responded.service.js","sourceRoot":"","sources":["../../../../src/modules/chatbot/services/user-responded.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAKrC,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,KAAK,CAAC,OAAO,CACX,MAA+B,EAC/B,QAA+B;QAI/B,MAAM,MAAM,GAAG,MAAM,CAAC,MAAgB,CAAC;QAGvC,OAAO;YACL,OAAO,EAAE,EAAE;YACX,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACnC,MAAM;SACP,CAAC;IACJ,CAAC;CACF,CAAA;AAhBY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;GACA,oBAAoB,CAgBhC"}
@@ -0,0 +1,2 @@
1
+ export * from './user-responded.trigger';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/chatbot/triggers/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./user-responded.trigger"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/chatbot/triggers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC"}
@@ -0,0 +1,3 @@
1
+ import { WorkflowActionTrigger } from '../../types';
2
+ export declare const userRespondedTrigger: WorkflowActionTrigger;
3
+ //# sourceMappingURL=user-responded.trigger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-responded.trigger.d.ts","sourceRoot":"","sources":["../../../../src/modules/chatbot/triggers/user-responded.trigger.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAG/E,eAAO,MAAM,oBAAoB,EAAE,qBAsClC,CAAC"}
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.userRespondedTrigger = void 0;
4
+ const types_1 = require("../../types");
5
+ const user_responded_service_1 = require("../services/user-responded.service");
6
+ exports.userRespondedTrigger = {
7
+ key: 'user-responded',
8
+ name: 'User Responded',
9
+ description: 'Triggered when user sends a message',
10
+ category: types_1.NODE_CATEGORY.TRIGGER,
11
+ icon: '👤',
12
+ serviceClass: user_responded_service_1.UserRespondedService,
13
+ inputs: [
14
+ {
15
+ id: 'userId',
16
+ name: 'User ID',
17
+ description: 'Identifier of the user who responded',
18
+ type: types_1.FIELD_TYPE.STRING,
19
+ validation: {
20
+ required: true,
21
+ },
22
+ },
23
+ ],
24
+ outputs: [
25
+ {
26
+ id: 'message',
27
+ name: 'Message',
28
+ description: 'The message content from the user',
29
+ type: types_1.FIELD_TYPE.STRING,
30
+ },
31
+ {
32
+ id: 'timestamp',
33
+ name: 'Timestamp',
34
+ description: 'When the message was received',
35
+ type: types_1.FIELD_TYPE.DATE,
36
+ },
37
+ {
38
+ id: 'userId',
39
+ name: 'User ID',
40
+ description: 'Identifier of the user',
41
+ type: types_1.FIELD_TYPE.STRING,
42
+ },
43
+ ],
44
+ };
45
+ //# sourceMappingURL=user-responded.trigger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-responded.trigger.js","sourceRoot":"","sources":["../../../../src/modules/chatbot/triggers/user-responded.trigger.ts"],"names":[],"mappings":";;;AAAA,uCAA+E;AAC/E,+EAA0E;AAE7D,QAAA,oBAAoB,GAA0B;IACzD,GAAG,EAAE,gBAAgB;IACrB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,qCAAqC;IAClD,QAAQ,EAAE,qBAAa,CAAC,OAAO;IAC/B,IAAI,EAAE,IAAI;IACV,YAAY,EAAE,6CAAoB;IAClC,MAAM,EAAE;QACN;YACE,EAAE,EAAE,QAAQ;YACZ,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;aACf;SACF;KACF;IACD,OAAO,EAAE;QACP;YACE,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,mCAAmC;YAChD,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,WAAW;YACf,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,kBAAU,CAAC,IAAI;SACtB;QACD;YACE,EAAE,EAAE,QAAQ;YACZ,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;KACF;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"chat-completion.action.d.ts","sourceRoot":"","sources":["../../../../src/modules/chatgpt/actions/chat-completion.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAIrB,eAAO,MAAM,oBAAoB,EAAE,qBAkKlC,CAAC"}
1
+ {"version":3,"file":"chat-completion.action.d.ts","sourceRoot":"","sources":["../../../../src/modules/chatgpt/actions/chat-completion.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAGrB,eAAO,MAAM,oBAAoB,EAAE,qBA+ElC,CAAC"}
@@ -2,30 +2,35 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.chatCompletionAction = void 0;
4
4
  const types_1 = require("../../types");
5
- const chatgpt_completion_constants_1 = require("../constants/chatgpt-completion.constants");
6
5
  const chat_completion_service_1 = require("../services/chat-completion.service");
7
6
  exports.chatCompletionAction = {
8
7
  key: 'chat-completion',
9
8
  name: 'Chat Completion',
10
- description: 'Generate a chat completion using ChatGPT',
9
+ description: 'Send a message to ChatGPT and get a reply.',
11
10
  category: types_1.NODE_CATEGORY.ACTION,
12
11
  icon: '💬',
13
12
  serviceClass: chat_completion_service_1.ChatCompletionService,
14
13
  inputs: [
15
14
  {
16
- id: 'messages',
17
- name: 'Messages',
18
- description: 'Array of chat messages (role and content)',
19
- type: types_1.FIELD_TYPE.JSON,
20
- validation: {
21
- required: true,
22
- },
23
- placeholder: '[{"role": "user", "content": "Hello!"}]',
15
+ id: 'message',
16
+ name: 'Message',
17
+ description: 'The question or text to send.',
18
+ type: types_1.FIELD_TYPE.STRING,
19
+ validation: { required: true },
20
+ placeholder: 'e.g. What is the capital of France?',
21
+ },
22
+ {
23
+ id: 'systemInstructions',
24
+ name: 'System instructions',
25
+ description: 'Optional. How the assistant should behave.',
26
+ type: types_1.FIELD_TYPE.STRING,
27
+ validation: { required: false },
28
+ placeholder: 'e.g. You are a helpful assistant that answers in Spanish.',
24
29
  },
25
30
  {
26
31
  id: 'model',
27
32
  name: 'Model',
28
- description: 'ChatGPT model to use',
33
+ description: 'ChatGPT model to use.',
29
34
  type: types_1.FIELD_TYPE.STRING,
30
35
  validation: {
31
36
  required: false,
@@ -40,129 +45,42 @@ exports.chatCompletionAction = {
40
45
  { label: 'GPT-3.5 Turbo', value: 'gpt-3.5-turbo' },
41
46
  ],
42
47
  },
43
- {
44
- id: 'phone',
45
- name: 'Phone',
46
- description: 'Phone number',
47
- type: types_1.FIELD_TYPE.STRING,
48
- validation: {
49
- required: false,
50
- minLength: 10,
51
- maxLength: 15,
52
- },
53
- },
54
48
  {
55
49
  id: 'temperature',
56
50
  name: 'Temperature',
57
- description: 'Controls randomness (0.0 to 2.0)',
51
+ description: 'Response randomness (0 = focused, 2 = creative).',
58
52
  type: types_1.FIELD_TYPE.NUMBER,
59
- validation: {
60
- required: false,
61
- min: 0,
62
- max: 2,
63
- },
53
+ validation: { required: false, min: 0, max: 2 },
64
54
  defaultValue: 0.7,
65
55
  },
66
56
  {
67
57
  id: 'maxTokens',
68
- name: 'Max Tokens',
69
- description: 'Maximum number of tokens to generate',
58
+ name: 'Max tokens',
59
+ description: 'Maximum reply length.',
70
60
  type: types_1.FIELD_TYPE.NUMBER,
71
- validation: {
72
- required: false,
73
- min: 1,
74
- max: 4000,
75
- },
61
+ validation: { required: false, min: 1, max: 4000 },
76
62
  defaultValue: 2000,
77
63
  },
78
- {
79
- id: 'enableMemoryPersistence',
80
- name: 'Enable Memory Persistence',
81
- description: 'Enable memory persistence to store chat history in Redis',
82
- type: types_1.FIELD_TYPE.BOOLEAN,
83
- validation: {
84
- required: false,
85
- },
86
- defaultValue: false,
87
- },
88
- {
89
- id: 'memoryKey',
90
- name: 'Memory Key',
91
- description: 'Key to identify the memory in Redis',
92
- type: types_1.FIELD_TYPE.STRING,
93
- validation: {
94
- required: false,
95
- },
96
- },
97
- {
98
- id: 'memoryTimePersistence',
99
- name: 'Memory Time Persistence',
100
- description: 'Time to persist memory in Redis (in minutes)',
101
- type: types_1.FIELD_TYPE.NUMBER,
102
- validation: {
103
- required: false,
104
- min: 1,
105
- },
106
- defaultValue: 60,
107
- },
108
- {
109
- id: 'stopExecutionUntilPurposeFinish',
110
- name: 'Stop Execution Until Purpose Finish',
111
- description: 'Stop workflow execution until the purpose is finished (AI will determine completion)',
112
- type: types_1.FIELD_TYPE.BOOLEAN,
113
- validation: {
114
- required: false,
115
- },
116
- defaultValue: false,
117
- },
118
- {
119
- id: 'systemInstructions',
120
- name: 'System Instructions',
121
- description: 'System prompt/instructions for ChatGPT (will be added as a system message)',
122
- type: types_1.FIELD_TYPE.STRING,
123
- validation: {
124
- required: false,
125
- },
126
- defaultValue: chatgpt_completion_constants_1.CHATGPT_COMPLETION_CONSTANTS.SYSTEM_INSTRUCTIONS,
127
- },
128
64
  ],
129
65
  outputs: [
130
66
  {
131
67
  id: 'content',
132
- name: 'Content',
133
- description: 'The generated message content',
134
- type: types_1.FIELD_TYPE.STRING,
135
- },
136
- {
137
- id: 'role',
138
- name: 'Role',
139
- description: 'The role of the message (assistant)',
140
- type: types_1.FIELD_TYPE.STRING,
141
- },
142
- {
143
- id: 'model',
144
- name: 'Model Used',
145
- description: 'The model that was used',
68
+ name: 'Reply',
69
+ description: 'The assistant reply text.',
146
70
  type: types_1.FIELD_TYPE.STRING,
147
71
  },
148
72
  {
149
73
  id: 'tokensUsed',
150
- name: 'Tokens Used',
151
- description: 'Number of tokens consumed',
74
+ name: 'Tokens used',
75
+ description: 'Number of tokens consumed.',
152
76
  type: types_1.FIELD_TYPE.NUMBER,
153
77
  },
154
78
  {
155
79
  id: 'cost',
156
- name: 'Cost',
157
- description: 'Estimated cost in USD',
80
+ name: 'Cost (USD)',
81
+ description: 'Estimated cost in USD.',
158
82
  type: types_1.FIELD_TYPE.NUMBER,
159
83
  },
160
- {
161
- id: 'messageId',
162
- name: 'Message ID',
163
- description: 'Unique identifier for the message',
164
- type: types_1.FIELD_TYPE.STRING,
165
- },
166
84
  ],
167
85
  };
168
86
  //# sourceMappingURL=chat-completion.action.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chat-completion.action.js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EAAE,qCAAqC;YAC3C,WAAW,EACT,sFAAsF;YACxF,IAAI,EAAE,kBAAU,CAAC,OAAO;YACxB,UAAU,EAAE;gBACV,QAAQ,EAAE,KAAK;aAChB;YACD,YAAY,EAAE,KAAK;SACpB;QACD;YACE,EAAE,EAAE,oBAAoB;YACxB,IAAI,EAAE,qBAAqB;YAC3B,WAAW,EAAE,4EAA4E;YACzF,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,KAAK;aAChB;YACD,YAAY,EAAE,2DAA4B,CAAC,mBAAmB;SAC/D;KACF;IACD,OAAO,EAAE;QACP;YACE,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,MAAM;YACV,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,OAAO;YACX,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,yBAAyB;YACtC,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,YAAY;YAChB,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,2BAA2B;YACxC,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,MAAM;YACV,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,WAAW;YACf,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,mCAAmC;YAChD,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"chat-completion.action.js","sourceRoot":"","sources":["../../../../src/modules/chatgpt/actions/chat-completion.action.ts"],"names":[],"mappings":";;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,EAAE,eAAe,EAAE;aACnD;SACF;QACD;YACE,EAAE,EAAE,aAAa;YACjB,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,kDAAkD;YAC/D,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE;YAC/C,YAAY,EAAE,GAAG;SAClB;QACD;YACE,EAAE,EAAE,WAAW;YACf,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE;YAClD,YAAY,EAAE,IAAI;SACnB;KACF;IACD,OAAO,EAAE;QACP;YACE,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,2BAA2B;YACxC,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,YAAY;YAChB,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,MAAM;YACV,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;KACF;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { WorkflowActionTrigger } from '../../types';
2
+ export declare const chatPurposeAction: WorkflowActionTrigger;
3
+ //# sourceMappingURL=chat-purpose.action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat-purpose.action.d.ts","sourceRoot":"","sources":["../../../../src/modules/chatgpt/actions/chat-purpose.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAGrB,eAAO,MAAM,iBAAiB,EAAE,qBAqO/B,CAAC"}