@minded-ai/mindedjs 1.0.91 → 1.0.93

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 (109) hide show
  1. package/README.md +1 -1
  2. package/dist/agent.d.ts +3 -9
  3. package/dist/agent.d.ts.map +1 -1
  4. package/dist/agent.js +46 -74
  5. package/dist/agent.js.map +1 -1
  6. package/dist/checkpointer/checkpointSaverFactory.d.ts +1 -3
  7. package/dist/checkpointer/checkpointSaverFactory.d.ts.map +1 -1
  8. package/dist/checkpointer/checkpointSaverFactory.js +38 -5
  9. package/dist/checkpointer/checkpointSaverFactory.js.map +1 -1
  10. package/dist/events/AgentEvents.d.ts +1 -8
  11. package/dist/events/AgentEvents.d.ts.map +1 -1
  12. package/dist/events/AgentEvents.js +0 -1
  13. package/dist/events/AgentEvents.js.map +1 -1
  14. package/dist/index.d.ts +4 -2
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +7 -2
  17. package/dist/index.js.map +1 -1
  18. package/dist/interfaces/zendesk.d.ts.map +1 -1
  19. package/dist/interfaces/zendesk.js +70 -48
  20. package/dist/interfaces/zendesk.js.map +1 -1
  21. package/dist/internalTools/appActionRunnerTool.d.ts +1 -2
  22. package/dist/internalTools/appActionRunnerTool.d.ts.map +1 -1
  23. package/dist/internalTools/appActionRunnerTool.js +36 -2
  24. package/dist/internalTools/appActionRunnerTool.js.map +1 -1
  25. package/dist/internalTools/sendPlaceholderMessage.d.ts +14 -0
  26. package/dist/internalTools/sendPlaceholderMessage.d.ts.map +1 -0
  27. package/dist/internalTools/sendPlaceholderMessage.js +61 -0
  28. package/dist/internalTools/sendPlaceholderMessage.js.map +1 -0
  29. package/dist/internalTools/timer.d.ts +93 -0
  30. package/dist/internalTools/timer.d.ts.map +1 -0
  31. package/dist/internalTools/timer.js +152 -0
  32. package/dist/internalTools/timer.js.map +1 -0
  33. package/dist/nodes/addAppToolNode.d.ts.map +1 -1
  34. package/dist/nodes/addAppToolNode.js +2 -2
  35. package/dist/nodes/addAppToolNode.js.map +1 -1
  36. package/dist/nodes/addJumpToNode.d.ts.map +1 -1
  37. package/dist/nodes/addJumpToNode.js +2 -2
  38. package/dist/nodes/addJumpToNode.js.map +1 -1
  39. package/dist/nodes/addJunctionNode.d.ts +7 -0
  40. package/dist/nodes/addJunctionNode.d.ts.map +1 -0
  41. package/dist/nodes/addJunctionNode.js +20 -0
  42. package/dist/nodes/addJunctionNode.js.map +1 -0
  43. package/dist/nodes/addPromptNode.d.ts.map +1 -1
  44. package/dist/nodes/addPromptNode.js +2 -2
  45. package/dist/nodes/addPromptNode.js.map +1 -1
  46. package/dist/nodes/addToolNode.d.ts.map +1 -1
  47. package/dist/nodes/addToolNode.js +2 -2
  48. package/dist/nodes/addToolNode.js.map +1 -1
  49. package/dist/nodes/addToolRunNode.d.ts.map +1 -1
  50. package/dist/nodes/addToolRunNode.js +1 -2
  51. package/dist/nodes/addToolRunNode.js.map +1 -1
  52. package/dist/nodes/addTriggerNode.d.ts.map +1 -1
  53. package/dist/nodes/addTriggerNode.js +1 -2
  54. package/dist/nodes/addTriggerNode.js.map +1 -1
  55. package/dist/nodes/nodeFactory.d.ts.map +1 -1
  56. package/dist/nodes/nodeFactory.js +2 -5
  57. package/dist/nodes/nodeFactory.js.map +1 -1
  58. package/dist/platform/mindedCheckpointSaver.d.ts +1 -3
  59. package/dist/platform/mindedCheckpointSaver.d.ts.map +1 -1
  60. package/dist/platform/mindedCheckpointSaver.js +43 -10
  61. package/dist/platform/mindedCheckpointSaver.js.map +1 -1
  62. package/dist/platform/mindedConnection.d.ts +14 -14
  63. package/dist/platform/mindedConnection.d.ts.map +1 -1
  64. package/dist/platform/mindedConnection.js +152 -131
  65. package/dist/platform/mindedConnection.js.map +1 -1
  66. package/dist/platform/mindedConnectionTypes.d.ts +38 -38
  67. package/dist/platform/mindedConnectionTypes.js +24 -24
  68. package/dist/platform/piiGateway/gateway.d.ts +1 -3
  69. package/dist/platform/piiGateway/gateway.d.ts.map +1 -1
  70. package/dist/platform/piiGateway/gateway.js +39 -6
  71. package/dist/platform/piiGateway/gateway.js.map +1 -1
  72. package/dist/playbooks/playbooks.d.ts +1 -2
  73. package/dist/playbooks/playbooks.d.ts.map +1 -1
  74. package/dist/playbooks/playbooks.js +4 -3
  75. package/dist/playbooks/playbooks.js.map +1 -1
  76. package/dist/types/Agent.types.d.ts +9 -13
  77. package/dist/types/Agent.types.d.ts.map +1 -1
  78. package/dist/types/Agent.types.js +1 -10
  79. package/dist/types/Agent.types.js.map +1 -1
  80. package/dist/voice/voiceSession.d.ts.map +1 -1
  81. package/dist/voice/voiceSession.js +39 -5
  82. package/dist/voice/voiceSession.js.map +1 -1
  83. package/docs/SUMMARY.md +4 -0
  84. package/docs/tooling/timers.md +61 -0
  85. package/package.json +2 -3
  86. package/src/agent.ts +60 -91
  87. package/src/checkpointer/checkpointSaverFactory.ts +5 -6
  88. package/src/events/AgentEvents.ts +1 -8
  89. package/src/index.ts +3 -2
  90. package/src/interfaces/zendesk.ts +38 -37
  91. package/src/internalTools/appActionRunnerTool.ts +4 -4
  92. package/src/internalTools/sendPlaceholderMessage.ts +27 -0
  93. package/src/internalTools/timer.ts +137 -0
  94. package/src/nodes/addAppToolNode.ts +3 -3
  95. package/src/nodes/addJumpToNode.ts +3 -3
  96. package/src/nodes/addJunctionNode.ts +19 -0
  97. package/src/nodes/addPromptNode.ts +3 -3
  98. package/src/nodes/addToolNode.ts +2 -3
  99. package/src/nodes/addToolRunNode.ts +2 -3
  100. package/src/nodes/addTriggerNode.ts +3 -3
  101. package/src/nodes/nodeFactory.ts +2 -7
  102. package/src/platform/mindedCheckpointSaver.ts +27 -27
  103. package/src/platform/mindedConnection.ts +176 -147
  104. package/src/platform/mindedConnectionTypes.ts +38 -38
  105. package/src/platform/piiGateway/gateway.ts +8 -10
  106. package/src/playbooks/playbooks.ts +5 -5
  107. package/src/types/Agent.types.ts +10 -15
  108. package/src/voice/voiceSession.ts +6 -5
  109. package/docs-structure.md +0 -141
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,mCAAgC;AAKvB,sFALA,aAAK,OAKA;AAJd,sDAA8B;AAId,iBAJT,gBAAM,CAIS;AAHtB,2CAAwC;AAGhB,uFAHf,eAAM,OAGe;AAsB9B,mDAQ6B;AAP3B,uGAAA,QAAQ,OAAA;AACR,0GAAA,WAAW,OAAA;AACX,uGAAA,QAAQ,OAAA;AAER,kHAAA,mBAAmB,OAAA;AAEnB,gHAAA,iBAAiB,OAAA;AAGnB,mDAQ6B;AAP3B,8GAAA,eAAe,OAAA;AAMf,0GAAA,WAAW,OAAA;AAKb,gDAA+C;AAAtC,kGAAA,OAAO,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,mCAAgC;AAOvB,sFAPA,aAAK,OAOA;AANd,sDAA8B;AAMd,iBANT,gBAAM,CAMS;AALtB,2CAAwC;AAKhB,uFALf,eAAM,OAKe;AAJ9B,mFAAgF;AAIhD,uGAJvB,+CAAsB,OAIuB;AAHtD,iDAAyE;AAGjB,2FAH/C,kBAAU,OAG+C;AAAE,4FAH/C,mBAAW,OAG+C;AAAE,wFAH/C,eAAO,OAG+C;AAsBxF,mDAQ6B;AAP3B,uGAAA,QAAQ,OAAA;AACR,0GAAA,WAAW,OAAA;AACX,uGAAA,QAAQ,OAAA;AAER,kHAAA,mBAAmB,OAAA;AAEnB,gHAAA,iBAAiB,OAAA;AAGnB,mDAO6B;AAD3B,0GAAA,WAAW,OAAA;AAKb,gDAA+C;AAAtC,kGAAA,OAAO,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"zendesk.d.ts","sourceRoot":"","sources":["../../src/interfaces/zendesk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAGjC,eAAO,MAAM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A;KAAE;sCAWvB;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE;6CAWd;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,GAAG,EAAE,CAAA;KAAE;mCAW9C;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE;CAU1E,CAAC"}
@@ -1,6 +1,40 @@
1
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
2
35
  Object.defineProperty(exports, "__esModule", { value: true });
3
36
  exports.zendesk = void 0;
37
+ const mindedConnection = __importStar(require("../platform/mindedConnection"));
4
38
  const mindedConnectionTypes_1 = require("../platform/mindedConnectionTypes");
5
39
  exports.zendesk = {
6
40
  agent: null,
@@ -8,11 +42,10 @@ exports.zendesk = {
8
42
  exports.zendesk.agent = agent;
9
43
  },
10
44
  sendMessage: async (sessionId, message) => {
11
- var _a;
12
- if (!((_a = exports.zendesk.agent) === null || _a === void 0 ? void 0 : _a.mindedConnection))
45
+ if (!mindedConnection.isConnected())
13
46
  return;
14
- return await exports.zendesk.agent.mindedConnection.awaitEmit(mindedConnectionTypes_1.MindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL, {
15
- type: mindedConnectionTypes_1.MindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL,
47
+ return await mindedConnection.awaitEmit(mindedConnectionTypes_1.mindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL, {
48
+ type: mindedConnectionTypes_1.mindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL,
16
49
  interfaceName: 'zendesk',
17
50
  sessionId,
18
51
  functionName: 'sendMessage',
@@ -20,11 +53,10 @@ exports.zendesk = {
20
53
  });
21
54
  },
22
55
  sendComment: async (sessionId, comment) => {
23
- var _a;
24
- if (!((_a = exports.zendesk.agent) === null || _a === void 0 ? void 0 : _a.mindedConnection))
56
+ if (!mindedConnection.isConnected())
25
57
  return;
26
- return await exports.zendesk.agent.mindedConnection.awaitEmit(mindedConnectionTypes_1.MindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL, {
27
- type: mindedConnectionTypes_1.MindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL,
58
+ return await mindedConnection.awaitEmit(mindedConnectionTypes_1.mindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL, {
59
+ type: mindedConnectionTypes_1.mindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL,
28
60
  interfaceName: 'zendesk',
29
61
  sessionId,
30
62
  functionName: 'sendComment',
@@ -32,11 +64,10 @@ exports.zendesk = {
32
64
  });
33
65
  },
34
66
  sendPublicComment: async (sessionId, comment) => {
35
- var _a;
36
- if (!((_a = exports.zendesk.agent) === null || _a === void 0 ? void 0 : _a.mindedConnection))
67
+ if (!mindedConnection.isConnected())
37
68
  return;
38
- return await exports.zendesk.agent.mindedConnection.awaitEmit(mindedConnectionTypes_1.MindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL, {
39
- type: mindedConnectionTypes_1.MindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL,
69
+ return await mindedConnection.awaitEmit(mindedConnectionTypes_1.mindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL, {
70
+ type: mindedConnectionTypes_1.mindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL,
40
71
  interfaceName: 'zendesk',
41
72
  sessionId,
42
73
  functionName: 'sendPublicComment',
@@ -44,11 +75,10 @@ exports.zendesk = {
44
75
  });
45
76
  },
46
77
  getConversation: async (sessionId) => {
47
- var _a;
48
- if (!((_a = exports.zendesk.agent) === null || _a === void 0 ? void 0 : _a.mindedConnection))
78
+ if (!mindedConnection.isConnected())
49
79
  return;
50
- return await exports.zendesk.agent.mindedConnection.awaitEmit(mindedConnectionTypes_1.MindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL, {
51
- type: mindedConnectionTypes_1.MindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL,
80
+ return await mindedConnection.awaitEmit(mindedConnectionTypes_1.mindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL, {
81
+ type: mindedConnectionTypes_1.mindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL,
52
82
  interfaceName: 'zendesk',
53
83
  sessionId,
54
84
  functionName: 'getConversation',
@@ -56,11 +86,10 @@ exports.zendesk = {
56
86
  });
57
87
  },
58
88
  getConversationMessages: async (sessionId) => {
59
- var _a;
60
- if (!((_a = exports.zendesk.agent) === null || _a === void 0 ? void 0 : _a.mindedConnection))
89
+ if (!mindedConnection.isConnected())
61
90
  return;
62
- return await exports.zendesk.agent.mindedConnection.awaitEmit(mindedConnectionTypes_1.MindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL, {
63
- type: mindedConnectionTypes_1.MindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL,
91
+ return await mindedConnection.awaitEmit(mindedConnectionTypes_1.mindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL, {
92
+ type: mindedConnectionTypes_1.mindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL,
64
93
  interfaceName: 'zendesk',
65
94
  sessionId,
66
95
  functionName: 'getConversationMessages',
@@ -68,11 +97,10 @@ exports.zendesk = {
68
97
  });
69
98
  },
70
99
  addTag: async (sessionId, tag) => {
71
- var _a;
72
- if (!((_a = exports.zendesk.agent) === null || _a === void 0 ? void 0 : _a.mindedConnection))
100
+ if (!mindedConnection.isConnected())
73
101
  return;
74
- return await exports.zendesk.agent.mindedConnection.awaitEmit(mindedConnectionTypes_1.MindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL, {
75
- type: mindedConnectionTypes_1.MindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL,
102
+ return await mindedConnection.awaitEmit(mindedConnectionTypes_1.mindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL, {
103
+ type: mindedConnectionTypes_1.mindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL,
76
104
  interfaceName: 'zendesk',
77
105
  sessionId,
78
106
  functionName: 'addTag',
@@ -80,11 +108,10 @@ exports.zendesk = {
80
108
  });
81
109
  },
82
110
  getTicket: async (sessionId) => {
83
- var _a;
84
- if (!((_a = exports.zendesk.agent) === null || _a === void 0 ? void 0 : _a.mindedConnection))
111
+ if (!mindedConnection.isConnected())
85
112
  return;
86
- return await exports.zendesk.agent.mindedConnection.awaitEmit(mindedConnectionTypes_1.MindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL, {
87
- type: mindedConnectionTypes_1.MindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL,
113
+ return await mindedConnection.awaitEmit(mindedConnectionTypes_1.mindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL, {
114
+ type: mindedConnectionTypes_1.mindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL,
88
115
  interfaceName: 'zendesk',
89
116
  sessionId,
90
117
  functionName: 'getTicket',
@@ -94,11 +121,10 @@ exports.zendesk = {
94
121
  });
95
122
  },
96
123
  createTicket: async ({ sessionId, subject, ticketBody, priority, tags, customFields, }) => {
97
- var _a;
98
- if (!((_a = exports.zendesk.agent) === null || _a === void 0 ? void 0 : _a.mindedConnection))
124
+ if (!mindedConnection.isConnected())
99
125
  return;
100
- return await exports.zendesk.agent.mindedConnection.awaitEmit(mindedConnectionTypes_1.MindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL, {
101
- type: mindedConnectionTypes_1.MindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL,
126
+ return await mindedConnection.awaitEmit(mindedConnectionTypes_1.mindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL, {
127
+ type: mindedConnectionTypes_1.mindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL,
102
128
  interfaceName: 'zendesk',
103
129
  sessionId,
104
130
  functionName: 'createTicket',
@@ -106,11 +132,10 @@ exports.zendesk = {
106
132
  });
107
133
  },
108
134
  markTicketAsSolved: async ({ sessionId }) => {
109
- var _a;
110
- if (!((_a = exports.zendesk.agent) === null || _a === void 0 ? void 0 : _a.mindedConnection))
135
+ if (!mindedConnection.isConnected())
111
136
  return;
112
- return await exports.zendesk.agent.mindedConnection.awaitEmit(mindedConnectionTypes_1.MindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL, {
113
- type: mindedConnectionTypes_1.MindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL,
137
+ return await mindedConnection.awaitEmit(mindedConnectionTypes_1.mindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL, {
138
+ type: mindedConnectionTypes_1.mindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL,
114
139
  interfaceName: 'zendesk',
115
140
  sessionId,
116
141
  functionName: 'markTicketAsSolved',
@@ -118,11 +143,10 @@ exports.zendesk = {
118
143
  });
119
144
  },
120
145
  markTicketAsOpen: async ({ sessionId }) => {
121
- var _a;
122
- if (!((_a = exports.zendesk.agent) === null || _a === void 0 ? void 0 : _a.mindedConnection))
146
+ if (!mindedConnection.isConnected())
123
147
  return;
124
- return await exports.zendesk.agent.mindedConnection.awaitEmit(mindedConnectionTypes_1.MindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL, {
125
- type: mindedConnectionTypes_1.MindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL,
148
+ return await mindedConnection.awaitEmit(mindedConnectionTypes_1.mindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL, {
149
+ type: mindedConnectionTypes_1.mindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL,
126
150
  interfaceName: 'zendesk',
127
151
  sessionId,
128
152
  functionName: 'markTicketAsOpen',
@@ -130,11 +154,10 @@ exports.zendesk = {
130
154
  });
131
155
  },
132
156
  setCustomFields: async ({ sessionId, fields }) => {
133
- var _a;
134
- if (!((_a = exports.zendesk.agent) === null || _a === void 0 ? void 0 : _a.mindedConnection))
157
+ if (!mindedConnection.isConnected())
135
158
  return;
136
- return await exports.zendesk.agent.mindedConnection.awaitEmit(mindedConnectionTypes_1.MindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL, {
137
- type: mindedConnectionTypes_1.MindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL,
159
+ return await mindedConnection.awaitEmit(mindedConnectionTypes_1.mindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL, {
160
+ type: mindedConnectionTypes_1.mindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL,
138
161
  interfaceName: 'zendesk',
139
162
  sessionId,
140
163
  functionName: 'setCustomFields',
@@ -142,11 +165,10 @@ exports.zendesk = {
142
165
  });
143
166
  },
144
167
  search: async ({ sessionId, query }) => {
145
- var _a;
146
- if (!((_a = exports.zendesk.agent) === null || _a === void 0 ? void 0 : _a.mindedConnection))
168
+ if (!mindedConnection.isConnected())
147
169
  return;
148
- return await exports.zendesk.agent.mindedConnection.awaitEmit(mindedConnectionTypes_1.MindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL, {
149
- type: mindedConnectionTypes_1.MindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL,
170
+ return await mindedConnection.awaitEmit(mindedConnectionTypes_1.mindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL, {
171
+ type: mindedConnectionTypes_1.mindedConnectionSocketMessageType.INTERFACE_FUNCTION_CALL,
150
172
  interfaceName: 'zendesk',
151
173
  sessionId,
152
174
  functionName: 'search',
@@ -1 +1 @@
1
- {"version":3,"file":"zendesk.js","sourceRoot":"","sources":["../../src/interfaces/zendesk.ts"],"names":[],"mappings":";;;AACA,6EAAsF;AAEzE,QAAA,OAAO,GAAG;IACrB,KAAK,EAAE,IAAoB;IAC3B,IAAI,EAAE,KAAK,EAAE,KAAY,EAAE,EAAE;QAC3B,eAAO,CAAC,KAAK,GAAG,KAAK,CAAC;IACxB,CAAC;IAED,WAAW,EAAE,KAAK,EAAE,SAAiB,EAAE,OAAe,EAAE,EAAE;;QACxD,IAAI,CAAC,CAAA,MAAA,eAAO,CAAC,KAAK,0CAAE,gBAAgB,CAAA;YAAE,OAAO;QAC7C,OAAO,MAAM,eAAO,CAAC,KAAK,CAAC,gBAAgB,CAAC,SAAS,CAAC,yDAAiC,CAAC,uBAAuB,EAAE;YAC/G,IAAI,EAAE,yDAAiC,CAAC,uBAAuB;YAC/D,aAAa,EAAE,SAAS;YACxB,SAAS;YACT,YAAY,EAAE,aAAa;YAC3B,YAAY,EAAE,EAAE,OAAO,EAAE;SAC1B,CAAC,CAAC;IACL,CAAC;IAED,WAAW,EAAE,KAAK,EAAE,SAAiB,EAAE,OAAe,EAAE,EAAE;;QACxD,IAAI,CAAC,CAAA,MAAA,eAAO,CAAC,KAAK,0CAAE,gBAAgB,CAAA;YAAE,OAAO;QAC7C,OAAO,MAAM,eAAO,CAAC,KAAK,CAAC,gBA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iC,CAAC,uBAAuB;YAC/D,aAAa,EAAE,SAAS;YACxB,SAAS;YACT,YAAY,EAAE,iBAAiB;YAC/B,YAAY,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE;SACpC,CAAC,CAAC;IACL,CAAC;IAED,MAAM,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,KAAK,EAAwC,EAAE,EAAE;QAC3E,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE;YAAE,OAAO;QAC5C,OAAO,MAAM,gBAAgB,CAAC,SAAS,CAAC,yDAAiC,CAAC,uBAAuB,EAAE;YACjG,IAAI,EAAE,yDAAiC,CAAC,uBAAuB;YAC/D,aAAa,EAAE,SAAS;YACxB,SAAS;YACT,YAAY,EAAE,QAAQ;YACtB,YAAY,EAAE,EAAE,KAAK,EAAE;SACxB,CAAC,CAAC;IACL,CAAC;CACF,CAAC"}
@@ -1,7 +1,6 @@
1
- import { MindedConnection } from '../platform/mindedConnection';
2
1
  import { ActionInputParam } from '../types/Flows.types';
3
2
  import { Tool } from '../types/Tools.types';
4
- declare const appActionRunnerToolCreator: (schema: ActionInputParam[], nodeTitle: string, mindedConnection: MindedConnection) => Tool<any, any>;
3
+ declare const appActionRunnerToolCreator: (schema: ActionInputParam[], nodeTitle: string) => Tool<any, any>;
5
4
  export declare const getAppActionRunnerTool: (nodeTitle: string) => Tool<any, any>;
6
5
  export default appActionRunnerToolCreator;
7
6
  //# sourceMappingURL=appActionRunnerTool.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"appActionRunnerTool.d.ts","sourceRoot":"","sources":["../../src/internalTools/appActionRunnerTool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,IAAI,EAAoB,MAAM,sBAAsB,CAAC;AAuB9D,QAAA,MAAM,0BAA0B,GAAI,QAAQ,gBAAgB,EAAE,EAAE,WAAW,MAAM,EAAE,kBAAkB,gBAAgB,KAAG,IAAI,CAAC,GAAG,EAAE,GAAG,CA0CpI,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,WAAW,MAAM,mBAEvD,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
1
+ {"version":3,"file":"appActionRunnerTool.d.ts","sourceRoot":"","sources":["../../src/internalTools/appActionRunnerTool.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,IAAI,EAAoB,MAAM,sBAAsB,CAAC;AAuB9D,QAAA,MAAM,0BAA0B,GAAI,QAAQ,gBAAgB,EAAE,EAAE,WAAW,MAAM,KAAG,IAAI,CAAC,GAAG,EAAE,GAAG,CA0ChG,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,WAAW,MAAM,mBAEvD,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
@@ -1,6 +1,40 @@
1
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
2
35
  Object.defineProperty(exports, "__esModule", { value: true });
3
36
  exports.getAppActionRunnerTool = void 0;
37
+ const mindedConnection = __importStar(require("../platform/mindedConnection"));
4
38
  const mindedConnectionTypes_1 = require("../platform/mindedConnectionTypes");
5
39
  const zod_1 = require("zod");
6
40
  const typeToZodMap = {
@@ -21,7 +55,7 @@ const convertToZodSchema = (schema) => {
21
55
  return zod_1.z.object(zodSchema);
22
56
  };
23
57
  const createdTools = {};
24
- const appActionRunnerToolCreator = (schema, nodeTitle, mindedConnection) => {
58
+ const appActionRunnerToolCreator = (schema, nodeTitle) => {
25
59
  const zodSchema = convertToZodSchema(schema.reduce((acc, param) => {
26
60
  if (param.required) {
27
61
  acc[param.name] = { type: param.type, example: param.example };
@@ -40,7 +74,7 @@ const appActionRunnerToolCreator = (schema, nodeTitle, mindedConnection) => {
40
74
  description,
41
75
  input: zodSchema,
42
76
  execute: async ({ input, state }) => {
43
- const response = await mindedConnection.awaitEmit(mindedConnectionTypes_1.MindedConnectionSocketMessageType.OnAppAction, {
77
+ const response = await mindedConnection.awaitEmit(mindedConnectionTypes_1.mindedConnectionSocketMessageType.OnAppAction, {
44
78
  nodeTitle,
45
79
  actionInput: input,
46
80
  }, 20000);
@@ -1 +1 @@
1
- {"version":3,"file":"appActionRunnerTool.js","sourceRoot":"","sources":["../../src/internalTools/appActionRunnerTool.ts"],"names":[],"mappings":";;;AACA,6EAAsF;AAGtF,6BAAwB;AAExB,MAAM,YAAY,GAAG;IACnB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,OAAO,EAAE,O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,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;QAC3B,IAAI,KAAK,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;YAChC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC;QAClC,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAyB,CAAC,EAC7B,IAAI,EACJ,CAAC,CACF,EAAE,CAAC;IAEJ,MAAM,IAAI,GAAG;QACX,IAAI,EAAE,SAAS;QACf,WAAW;QACX,KAAK,EAAE,SAAS;QAChB,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,EAAsC,EAAE,EAAE;YACtE,MAAM,QAAQ,GAAG,MAAM,gBAAgB,CAAC,SAAS,CAC/C,yDAAiC,CAAC,WAAW,EAC7C;gBACE,SAAS;gBACT,WAAW,EAAE,KAAK;aACnB,EACD,KAAK,CACN,CAAC;YACF,OAAO;gBACL,KAAK;gBACL,MAAM,EAAE,QAA4B;aACrC,CAAC;QACJ,CAAC;KACF,CAAC;IACF,YAAY,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;IAC/B,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEK,MAAM,sBAAsB,GAAG,CAAC,SAAiB,EAAE,EAAE;IAC1D,OAAO,YAAY,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC,CAAC;AAFW,QAAA,sBAAsB,0BAEjC;AAEF,kBAAe,0BAA0B,CAAC"}
1
+ {"version":3,"file":"appActionRunnerTool.js","sourceRoot":"","sources":["../../src/internalTools/appActionRunnerTool.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+EAAiE;AACjE,6EAAsF;AAGtF,6BAAwB;AAExB,MAAM,YAAY,GAAG;IACnB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,OAA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C,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;QAC3B,IAAI,KAAK,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;YAChC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC;QAClC,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAyB,CAAC,EAC7B,IAAI,EACJ,CAAC,CACF,EAAE,CAAC;IAEJ,MAAM,IAAI,GAAG;QACX,IAAI,EAAE,SAAS;QACf,WAAW;QACX,KAAK,EAAE,SAAS;QAChB,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,EAAsC,EAAE,EAAE;YACtE,MAAM,QAAQ,GAAG,MAAM,gBAAgB,CAAC,SAAS,CAC/C,yDAAiC,CAAC,WAAW,EAC7C;gBACE,SAAS;gBACT,WAAW,EAAE,KAAK;aACnB,EACD,KAAK,CACN,CAAC;YACF,OAAO;gBACL,KAAK;gBACL,MAAM,EAAE,QAA4B;aACrC,CAAC;QACJ,CAAC;KACF,CAAC;IACF,YAAY,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;IAC/B,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEK,MAAM,sBAAsB,GAAG,CAAC,SAAiB,EAAE,EAAE;IAC1D,OAAO,YAAY,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC,CAAC;AAFW,QAAA,sBAAsB,0BAEjC;AAEF,kBAAe,0BAA0B,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Send a placeholder message to the dashboard voice session.
3
+ * This is typically used for voice sessions to provide immediate feedback to users.
4
+ *
5
+ * @param params - The parameters for sending the placeholder message
6
+ * @param params.sessionId - The session ID of the voice session
7
+ * @param params.message - The placeholder message to send
8
+ * @throws {Error} When the Minded connection is not established
9
+ */
10
+ export declare function sendPlaceholderMessage(params: {
11
+ sessionId: string;
12
+ message: string;
13
+ }): Promise<void>;
14
+ //# sourceMappingURL=sendPlaceholderMessage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendPlaceholderMessage.d.ts","sourceRoot":"","sources":["../../src/internalTools/sendPlaceholderMessage.ts"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH,wBAAsB,sBAAsB,CAAC,MAAM,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAc1G"}
@@ -0,0 +1,61 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.sendPlaceholderMessage = sendPlaceholderMessage;
37
+ const mindedConnection = __importStar(require("../platform/mindedConnection"));
38
+ const mindedConnectionTypes_1 = require("../platform/mindedConnectionTypes");
39
+ /**
40
+ * Send a placeholder message to the dashboard voice session.
41
+ * This is typically used for voice sessions to provide immediate feedback to users.
42
+ *
43
+ * @param params - The parameters for sending the placeholder message
44
+ * @param params.sessionId - The session ID of the voice session
45
+ * @param params.message - The placeholder message to send
46
+ * @throws {Error} When the Minded connection is not established
47
+ */
48
+ async function sendPlaceholderMessage(params) {
49
+ const { sessionId, message } = params;
50
+ if (!mindedConnection.isConnected()) {
51
+ throw new Error('Minded connection is not established when trying to send placeholder message');
52
+ }
53
+ const connection = mindedConnection;
54
+ connection.emit(mindedConnectionTypes_1.mindedConnectionSocketMessageType.DASHBOARD_VOICE_PLACEHOLDER_MESSAGES, {
55
+ sessionId,
56
+ message,
57
+ timestamp: Date.now(),
58
+ type: mindedConnectionTypes_1.mindedConnectionSocketMessageType.DASHBOARD_VOICE_PLACEHOLDER_MESSAGES,
59
+ });
60
+ }
61
+ //# sourceMappingURL=sendPlaceholderMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendPlaceholderMessage.js","sourceRoot":"","sources":["../../src/internalTools/sendPlaceholderMessage.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,wDAcC;AA1BD,+EAAiE;AACjE,6EAAsF;AAEtF;;;;;;;;GAQG;AACI,KAAK,UAAU,sBAAsB,CAAC,MAA8C;IACzF,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;IAEtC,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,EAAE,CAAC;QACpC,MAAM,IAAI,KAAK,CAAC,8EAA8E,CAAC,CAAC;IAClG,CAAC;IAED,MAAM,UAAU,GAAG,gBAAgB,CAAC;IACpC,UAAU,CAAC,IAAI,CAAC,yDAAiC,CAAC,oCAAoC,EAAE;QACtF,SAAS;QACT,OAAO;QACP,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;QACrB,IAAI,EAAE,yDAAiC,CAAC,oCAAoC;KAC7E,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,93 @@
1
+ import { TimerResetResponse, TimerCancelResponse } from '../platform/mindedConnectionTypes';
2
+ export declare const timerHandlers: Map<string, {
3
+ handler: (params: {
4
+ sessionId: string;
5
+ payload: Record<string, any>;
6
+ }) => void | Promise<void>;
7
+ }[]>;
8
+ /**
9
+ * Reset or set a timer for a specific session.
10
+ * When the timer expires, all registered timer handlers will be called.
11
+ *
12
+ * @param params - The timer configuration
13
+ * @param params.sessionId - The session ID to associate the timer with
14
+ * @param params.seconds - Number of seconds until the timer expires
15
+ * @param params.timerName - Unique name for this timer (used for cancellation and identification)
16
+ * @param params.eventArgs - Additional data to pass to the timer handler when it triggers
17
+ * @returns Promise resolving to timer reset response
18
+ * @throws {Error} When the Minded connection is not established
19
+ *
20
+ * @example
21
+ * ```typescript
22
+ * import { resetTimer } from '@minded-ai/mindedjs';
23
+ *
24
+ * // Set a timer to follow up in 10 seconds
25
+ * await resetTimer({
26
+ * sessionId: 'session-123',
27
+ * seconds: 10,
28
+ * timerName: 'followup',
29
+ * payload: {
30
+ * message: 'Are you still there?'
31
+ * }
32
+ * });
33
+ * ```
34
+ */
35
+ export declare function resetTimer({ sessionId, seconds, timerName, payload }: {
36
+ sessionId: string;
37
+ seconds: number;
38
+ timerName: string;
39
+ payload?: Record<string, any>;
40
+ }): Promise<TimerResetResponse>;
41
+ /**
42
+ * Cancel an existing timer for a specific session.
43
+ *
44
+ * @param sessionId - The session ID the timer is associated with
45
+ * @param timerName - The name of the timer to cancel
46
+ * @returns Promise resolving to timer cancel response
47
+ * @throws {Error} When the Minded connection is not established
48
+ *
49
+ * @example
50
+ * ```typescript
51
+ * import { cancelTimer } from '@minded-ai/mindedjs';
52
+ *
53
+ * // Cancel a previously set timer
54
+ * await cancelTimer('session-123', 'followup');
55
+ * ```
56
+ */
57
+ export declare function cancelTimer(sessionId: string, timerName: string): Promise<TimerCancelResponse>;
58
+ /**
59
+ * Register a handler for timer trigger events for a specific timer name.
60
+ * The handler will be called when the specified timer expires for any session.
61
+ *
62
+ * @param params - The configuration for the timer handler
63
+ * @param params.timerName - The name of the timer to handle
64
+ * @param params.handler - Function to call when the timer triggers
65
+ *
66
+ * @example
67
+ * ```typescript
68
+ * import { onTimer } from '@minded-ai/mindedjs';
69
+ *
70
+ * // Register a handler for the 'followup' timer
71
+ * onTimer({
72
+ * timerName: 'followup',
73
+ * handler: async ({ sessionId, payload }) => {
74
+ * console.log(`Followup timer triggered for session ${sessionId}`);
75
+ *
76
+ * // Handle the followup timer
77
+ * await agent.invoke({
78
+ * triggerName: 'timerFollowup',
79
+ * triggerBody: { message: payload.message },
80
+ * sessionId
81
+ * });
82
+ * }
83
+ * });
84
+ * ```
85
+ */
86
+ export declare function onTimer({ timerName, handler }: {
87
+ timerName: string;
88
+ handler: (params: {
89
+ sessionId: string;
90
+ payload: Record<string, any>;
91
+ }) => void | Promise<void>;
92
+ }): void;
93
+ //# sourceMappingURL=timer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timer.d.ts","sourceRoot":"","sources":["../../src/internalTools/timer.ts"],"names":[],"mappings":"AACA,OAAO,EAAqC,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAG/H,eAAO,MAAM,aAAa;aACf,CAAC,MAAM,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;KAAE,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAC3F,CAAC;AAEN;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAsB,UAAU,CAAC,EAC/B,SAAS,EACT,OAAO,EACP,SAAS,EACT,OAAY,EACb,EAAE;IACD,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC/B,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAO9B;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAQpG;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,OAAO,CAAC,EACtB,SAAS,EACT,OAAO,EACR,EAAE;IACD,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,CAAC,MAAM,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;KAAE,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAChG,GAAG,IAAI,CASP"}