jsfe 1.6.0 → 1.7.1

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 (103) hide show
  1. package/README.md +32 -4
  2. package/dist/forms/action-projection.d.ts +4 -0
  3. package/dist/forms/action-projection.d.ts.map +1 -0
  4. package/dist/forms/action-projection.js +21 -0
  5. package/dist/forms/action-recovery.d.ts +12 -0
  6. package/dist/forms/action-recovery.d.ts.map +1 -0
  7. package/dist/forms/action-recovery.js +125 -0
  8. package/dist/forms/action-tools.d.ts +29 -0
  9. package/dist/forms/action-tools.d.ts.map +1 -0
  10. package/dist/forms/action-tools.js +6 -0
  11. package/dist/forms/address-flows.d.ts +2 -0
  12. package/dist/forms/address-flows.d.ts.map +1 -0
  13. package/dist/forms/address-flows.js +39 -0
  14. package/dist/forms/choice-flow.d.ts +419 -0
  15. package/dist/forms/choice-flow.d.ts.map +1 -0
  16. package/dist/forms/choice-flow.js +707 -0
  17. package/dist/forms/contracts.d.ts +237 -0
  18. package/dist/forms/contracts.d.ts.map +1 -0
  19. package/dist/forms/contracts.js +278 -0
  20. package/dist/forms/flows.d.ts +611 -0
  21. package/dist/forms/flows.d.ts.map +1 -0
  22. package/dist/forms/flows.js +675 -0
  23. package/dist/forms/identity-flows.d.ts +17 -0
  24. package/dist/forms/identity-flows.d.ts.map +1 -0
  25. package/dist/forms/identity-flows.js +302 -0
  26. package/dist/forms/index.d.ts +7 -0
  27. package/dist/forms/index.d.ts.map +1 -0
  28. package/dist/forms/index.js +10 -0
  29. package/dist/forms/prompt-compiler.d.ts +3 -0
  30. package/dist/forms/prompt-compiler.d.ts.map +1 -0
  31. package/dist/forms/prompt-compiler.js +30 -0
  32. package/dist/forms/session-actions.d.ts +14 -0
  33. package/dist/forms/session-actions.d.ts.map +1 -0
  34. package/dist/forms/session-actions.js +40 -0
  35. package/dist/helpers/address.d.ts +27 -0
  36. package/dist/helpers/address.d.ts.map +1 -0
  37. package/dist/helpers/address.js +29 -0
  38. package/dist/helpers/answer.d.ts +5 -0
  39. package/dist/helpers/answer.d.ts.map +1 -1
  40. package/dist/helpers/answer.js +5 -3
  41. package/dist/helpers/choice-offer.d.ts +3 -0
  42. package/dist/helpers/choice-offer.d.ts.map +1 -0
  43. package/dist/helpers/choice-offer.js +6 -0
  44. package/dist/helpers/form-actions.d.ts +13 -0
  45. package/dist/helpers/form-actions.d.ts.map +1 -0
  46. package/dist/helpers/form-actions.js +144 -0
  47. package/dist/helpers/form-sources.d.ts +7 -0
  48. package/dist/helpers/form-sources.d.ts.map +1 -0
  49. package/dist/helpers/form-sources.js +47 -0
  50. package/dist/helpers/form-state.d.ts +94 -0
  51. package/dist/helpers/form-state.d.ts.map +1 -0
  52. package/dist/helpers/form-state.js +870 -0
  53. package/dist/helpers/index.d.ts +114 -1
  54. package/dist/helpers/index.d.ts.map +1 -1
  55. package/dist/helpers/index.js +9 -4
  56. package/dist/helpers/match-inputs.d.ts +14 -0
  57. package/dist/helpers/match-inputs.d.ts.map +1 -1
  58. package/dist/helpers/match-inputs.js +154 -41
  59. package/dist/helpers/money.d.ts +12 -0
  60. package/dist/helpers/money.d.ts.map +1 -0
  61. package/dist/helpers/money.js +54 -0
  62. package/dist/helpers/spoken-money.d.ts +20 -0
  63. package/dist/helpers/spoken-money.d.ts.map +1 -0
  64. package/dist/helpers/spoken-money.js +143 -0
  65. package/dist/host/action-journal.d.ts +98 -0
  66. package/dist/host/action-journal.d.ts.map +1 -0
  67. package/dist/host/action-journal.js +218 -0
  68. package/dist/host/action-session.d.ts +12 -0
  69. package/dist/host/action-session.d.ts.map +1 -0
  70. package/dist/host/action-session.js +29 -0
  71. package/dist/host/capabilities.d.ts +14 -0
  72. package/dist/host/capabilities.d.ts.map +1 -0
  73. package/dist/host/capabilities.js +60 -0
  74. package/dist/host/checkpoint-codec-error.d.ts +6 -0
  75. package/dist/host/checkpoint-codec-error.d.ts.map +1 -0
  76. package/dist/host/checkpoint-codec-error.js +4 -0
  77. package/dist/host/index.d.ts +6 -0
  78. package/dist/host/index.d.ts.map +1 -1
  79. package/dist/host/index.js +6 -0
  80. package/dist/host/intent-stages.d.ts +1 -0
  81. package/dist/host/intent-stages.d.ts.map +1 -1
  82. package/dist/host/intent-stages.js +3 -3
  83. package/dist/host/node.d.ts +17 -0
  84. package/dist/host/node.d.ts.map +1 -0
  85. package/dist/host/node.js +64 -0
  86. package/dist/host/recovery-identity.d.ts +16 -0
  87. package/dist/host/recovery-identity.d.ts.map +1 -0
  88. package/dist/host/recovery-identity.js +73 -0
  89. package/dist/host/recovery-policy.d.ts +5 -0
  90. package/dist/host/recovery-policy.d.ts.map +1 -0
  91. package/dist/host/recovery-policy.js +54 -0
  92. package/dist/host/runtime-manifest.d.ts +3 -0
  93. package/dist/host/runtime-manifest.d.ts.map +1 -0
  94. package/dist/host/runtime-manifest.js +38 -0
  95. package/dist/index.d.ts +61 -0
  96. package/dist/index.d.ts.map +1 -1
  97. package/dist/index.js +186 -45
  98. package/dist/runtime-identity.d.ts +3 -0
  99. package/dist/runtime-identity.d.ts.map +1 -0
  100. package/dist/runtime-identity.js +1 -0
  101. package/docs/development-release.md +25 -0
  102. package/docs/forms.md +132 -0
  103. package/package.json +15 -4
@@ -0,0 +1,419 @@
1
+ /** Shared platform choice transport, moved into JSFE so all hosts use one implementation. */
2
+ export const FLOWS: {
3
+ id: string;
4
+ name: string;
5
+ version: string;
6
+ description: string;
7
+ parameters: ({
8
+ name: string;
9
+ type: string;
10
+ description: string;
11
+ required?: undefined;
12
+ } | {
13
+ name: string;
14
+ type: string;
15
+ description: string;
16
+ required: boolean;
17
+ })[];
18
+ variables: {
19
+ ac_answer: {
20
+ type: string;
21
+ value: string;
22
+ };
23
+ ac_key: {
24
+ type: string;
25
+ value: string;
26
+ };
27
+ ac_other: {
28
+ type: string;
29
+ value: boolean;
30
+ };
31
+ ac_q_es: {
32
+ type: string;
33
+ value: string;
34
+ };
35
+ ac_retry: {
36
+ type: string;
37
+ value: string;
38
+ };
39
+ ac_retry_es: {
40
+ type: string;
41
+ value: string;
42
+ };
43
+ ac_exit_ctx: {
44
+ type: string;
45
+ value: string;
46
+ };
47
+ ac_exit_ctx_es: {
48
+ type: string;
49
+ value: string;
50
+ };
51
+ ac_missed: {
52
+ type: string;
53
+ value: boolean;
54
+ };
55
+ answer_key: {
56
+ type: string;
57
+ description: string;
58
+ value: string;
59
+ };
60
+ ac_offer: {
61
+ type: string;
62
+ value: null;
63
+ };
64
+ ac_q: {
65
+ type: string;
66
+ value: string;
67
+ };
68
+ ac_code: {
69
+ type: string;
70
+ value: string;
71
+ };
72
+ ac_late: {
73
+ type: string;
74
+ value: boolean;
75
+ };
76
+ ac_marked: {
77
+ type: string;
78
+ value: boolean;
79
+ };
80
+ as_spoken: {
81
+ type: string;
82
+ value: boolean;
83
+ };
84
+ contract: {
85
+ type: string;
86
+ value: {
87
+ version: number;
88
+ role: string;
89
+ summary: string;
90
+ parametersFrom: string;
91
+ };
92
+ };
93
+ };
94
+ steps: ({
95
+ id: string;
96
+ type: string;
97
+ variable: string;
98
+ value: string;
99
+ asSpoken?: undefined;
100
+ value_es?: undefined;
101
+ pii?: undefined;
102
+ branches?: undefined;
103
+ } | {
104
+ id: string;
105
+ type: string;
106
+ variable: string;
107
+ asSpoken: string;
108
+ value: string;
109
+ value_es: string;
110
+ pii: string;
111
+ branches?: undefined;
112
+ } | {
113
+ id: string;
114
+ type: string;
115
+ branches: {
116
+ "condition: ac_late": {
117
+ id: string;
118
+ type: string;
119
+ value: string;
120
+ callType: string;
121
+ parameters: {
122
+ question: string;
123
+ question_es: string;
124
+ code: string;
125
+ };
126
+ };
127
+ default: {
128
+ id: string;
129
+ type: string;
130
+ variable: string;
131
+ value: string;
132
+ };
133
+ "condition: /^[\\s\u00BF\u00A1]*(?:(?:por favor|please|a|que|me lo|me|lo|puede|can you|could you)\\s+)*(?:repetir|repite|rep[i\u00ED]t[ae](?:lo|la|me|melo|nos)?|rep[i\u00ED]tamelo|otra vez|de nuevo|repeat(?:\\s+(?:that|it))?|say (?:that|it) again|again|one more time)(?:\\s+(?:por favor|please|la pregunta|las opciones|eso|that|it))*[\\s.!?\u00BF,]*$/i.test(String(ac_answer || '')) && pickChoice(ac_answer, choices, ac_other) === ''"?: undefined;
134
+ "condition: typeof answer_precheck !== 'undefined' && answer_precheck && String(ac_answer || '').trim()"?: undefined;
135
+ "condition: ac_key === '' && typeof answer_validator !== 'undefined' && answer_validator && String(ac_answer || '').trim()"?: undefined;
136
+ "condition: ac_missed"?: undefined;
137
+ "condition: ac_missed && /^[\\s\u00BF\u00A1]*(?:(?:por favor|please|a|que|me lo|me|lo|puede|can you|could you)\\s+)*(?:repetir|repite|rep[i\u00ED]t[ae](?:lo|la|me|melo|nos)?|rep[i\u00ED]tamelo|otra vez|de nuevo|repeat(?:\\s+(?:that|it))?|say (?:that|it) again|again|one more time)(?:\\s+(?:por favor|please|la pregunta|las opciones|eso|that|it))*[\\s.!?\u00BF,]*$/i.test(String(ac_answer || '')) && pickChoice(ac_answer, choices, ac_other) === ''"?: undefined;
138
+ "condition: ac_key === '__switch'"?: undefined;
139
+ "condition: ac_key === '__agent'"?: undefined;
140
+ "condition: ac_key === '__exit'"?: undefined;
141
+ "condition: ac_key === '__text'"?: undefined;
142
+ "condition: ac_key === '__amount'"?: undefined;
143
+ "condition: ac_key === '__elsewhere'"?: undefined;
144
+ "condition: ac_key === '' && ac_other"?: undefined;
145
+ "condition: ac_key === ''"?: undefined;
146
+ };
147
+ variable?: undefined;
148
+ value?: undefined;
149
+ asSpoken?: undefined;
150
+ value_es?: undefined;
151
+ pii?: undefined;
152
+ } | {
153
+ id: string;
154
+ type: string;
155
+ branches: {
156
+ "condition: /^[\\s\u00BF\u00A1]*(?:(?:por favor|please|a|que|me lo|me|lo|puede|can you|could you)\\s+)*(?:repetir|repite|rep[i\u00ED]t[ae](?:lo|la|me|melo|nos)?|rep[i\u00ED]tamelo|otra vez|de nuevo|repeat(?:\\s+(?:that|it))?|say (?:that|it) again|again|one more time)(?:\\s+(?:por favor|please|la pregunta|las opciones|eso|that|it))*[\\s.!?\u00BF,]*$/i.test(String(ac_answer || '')) && pickChoice(ac_answer, choices, ac_other) === ''": {
157
+ id: string;
158
+ type: string;
159
+ variable: string;
160
+ asSpoken: string;
161
+ value: string;
162
+ value_es: string;
163
+ pii: string;
164
+ };
165
+ default: {
166
+ id: string;
167
+ type: string;
168
+ variable: string;
169
+ value: string;
170
+ };
171
+ "condition: ac_late"?: undefined;
172
+ "condition: typeof answer_precheck !== 'undefined' && answer_precheck && String(ac_answer || '').trim()"?: undefined;
173
+ "condition: ac_key === '' && typeof answer_validator !== 'undefined' && answer_validator && String(ac_answer || '').trim()"?: undefined;
174
+ "condition: ac_missed"?: undefined;
175
+ "condition: ac_missed && /^[\\s\u00BF\u00A1]*(?:(?:por favor|please|a|que|me lo|me|lo|puede|can you|could you)\\s+)*(?:repetir|repite|rep[i\u00ED]t[ae](?:lo|la|me|melo|nos)?|rep[i\u00ED]tamelo|otra vez|de nuevo|repeat(?:\\s+(?:that|it))?|say (?:that|it) again|again|one more time)(?:\\s+(?:por favor|please|la pregunta|las opciones|eso|that|it))*[\\s.!?\u00BF,]*$/i.test(String(ac_answer || '')) && pickChoice(ac_answer, choices, ac_other) === ''"?: undefined;
176
+ "condition: ac_key === '__switch'"?: undefined;
177
+ "condition: ac_key === '__agent'"?: undefined;
178
+ "condition: ac_key === '__exit'"?: undefined;
179
+ "condition: ac_key === '__text'"?: undefined;
180
+ "condition: ac_key === '__amount'"?: undefined;
181
+ "condition: ac_key === '__elsewhere'"?: undefined;
182
+ "condition: ac_key === '' && ac_other"?: undefined;
183
+ "condition: ac_key === ''"?: undefined;
184
+ };
185
+ variable?: undefined;
186
+ value?: undefined;
187
+ asSpoken?: undefined;
188
+ value_es?: undefined;
189
+ pii?: undefined;
190
+ } | {
191
+ id: string;
192
+ type: string;
193
+ branches: {
194
+ "condition: typeof answer_precheck !== 'undefined' && answer_precheck && String(ac_answer || '').trim()": {
195
+ id: string;
196
+ type: string;
197
+ value: string;
198
+ callType: string;
199
+ parameters: {
200
+ answer: string;
201
+ };
202
+ };
203
+ default: {
204
+ id: string;
205
+ type: string;
206
+ variable: string;
207
+ value: string;
208
+ };
209
+ "condition: ac_late"?: undefined;
210
+ "condition: /^[\\s\u00BF\u00A1]*(?:(?:por favor|please|a|que|me lo|me|lo|puede|can you|could you)\\s+)*(?:repetir|repite|rep[i\u00ED]t[ae](?:lo|la|me|melo|nos)?|rep[i\u00ED]tamelo|otra vez|de nuevo|repeat(?:\\s+(?:that|it))?|say (?:that|it) again|again|one more time)(?:\\s+(?:por favor|please|la pregunta|las opciones|eso|that|it))*[\\s.!?\u00BF,]*$/i.test(String(ac_answer || '')) && pickChoice(ac_answer, choices, ac_other) === ''"?: undefined;
211
+ "condition: ac_key === '' && typeof answer_validator !== 'undefined' && answer_validator && String(ac_answer || '').trim()"?: undefined;
212
+ "condition: ac_missed"?: undefined;
213
+ "condition: ac_missed && /^[\\s\u00BF\u00A1]*(?:(?:por favor|please|a|que|me lo|me|lo|puede|can you|could you)\\s+)*(?:repetir|repite|rep[i\u00ED]t[ae](?:lo|la|me|melo|nos)?|rep[i\u00ED]tamelo|otra vez|de nuevo|repeat(?:\\s+(?:that|it))?|say (?:that|it) again|again|one more time)(?:\\s+(?:por favor|please|la pregunta|las opciones|eso|that|it))*[\\s.!?\u00BF,]*$/i.test(String(ac_answer || '')) && pickChoice(ac_answer, choices, ac_other) === ''"?: undefined;
214
+ "condition: ac_key === '__switch'"?: undefined;
215
+ "condition: ac_key === '__agent'"?: undefined;
216
+ "condition: ac_key === '__exit'"?: undefined;
217
+ "condition: ac_key === '__text'"?: undefined;
218
+ "condition: ac_key === '__amount'"?: undefined;
219
+ "condition: ac_key === '__elsewhere'"?: undefined;
220
+ "condition: ac_key === '' && ac_other"?: undefined;
221
+ "condition: ac_key === ''"?: undefined;
222
+ };
223
+ variable?: undefined;
224
+ value?: undefined;
225
+ asSpoken?: undefined;
226
+ value_es?: undefined;
227
+ pii?: undefined;
228
+ } | {
229
+ id: string;
230
+ type: string;
231
+ branches: {
232
+ "condition: ac_key === '' && typeof answer_validator !== 'undefined' && answer_validator && String(ac_answer || '').trim()": {
233
+ id: string;
234
+ type: string;
235
+ value: string;
236
+ callType: string;
237
+ parameters: {
238
+ answer: string;
239
+ };
240
+ };
241
+ default: {
242
+ id: string;
243
+ type: string;
244
+ variable: string;
245
+ value: string;
246
+ };
247
+ "condition: ac_late"?: undefined;
248
+ "condition: /^[\\s\u00BF\u00A1]*(?:(?:por favor|please|a|que|me lo|me|lo|puede|can you|could you)\\s+)*(?:repetir|repite|rep[i\u00ED]t[ae](?:lo|la|me|melo|nos)?|rep[i\u00ED]tamelo|otra vez|de nuevo|repeat(?:\\s+(?:that|it))?|say (?:that|it) again|again|one more time)(?:\\s+(?:por favor|please|la pregunta|las opciones|eso|that|it))*[\\s.!?\u00BF,]*$/i.test(String(ac_answer || '')) && pickChoice(ac_answer, choices, ac_other) === ''"?: undefined;
249
+ "condition: typeof answer_precheck !== 'undefined' && answer_precheck && String(ac_answer || '').trim()"?: undefined;
250
+ "condition: ac_missed"?: undefined;
251
+ "condition: ac_missed && /^[\\s\u00BF\u00A1]*(?:(?:por favor|please|a|que|me lo|me|lo|puede|can you|could you)\\s+)*(?:repetir|repite|rep[i\u00ED]t[ae](?:lo|la|me|melo|nos)?|rep[i\u00ED]tamelo|otra vez|de nuevo|repeat(?:\\s+(?:that|it))?|say (?:that|it) again|again|one more time)(?:\\s+(?:por favor|please|la pregunta|las opciones|eso|that|it))*[\\s.!?\u00BF,]*$/i.test(String(ac_answer || '')) && pickChoice(ac_answer, choices, ac_other) === ''"?: undefined;
252
+ "condition: ac_key === '__switch'"?: undefined;
253
+ "condition: ac_key === '__agent'"?: undefined;
254
+ "condition: ac_key === '__exit'"?: undefined;
255
+ "condition: ac_key === '__text'"?: undefined;
256
+ "condition: ac_key === '__amount'"?: undefined;
257
+ "condition: ac_key === '__elsewhere'"?: undefined;
258
+ "condition: ac_key === '' && ac_other"?: undefined;
259
+ "condition: ac_key === ''"?: undefined;
260
+ };
261
+ variable?: undefined;
262
+ value?: undefined;
263
+ asSpoken?: undefined;
264
+ value_es?: undefined;
265
+ pii?: undefined;
266
+ } | {
267
+ id: string;
268
+ type: string;
269
+ branches: {
270
+ "condition: ac_missed": {
271
+ id: string;
272
+ type: string;
273
+ variable: string;
274
+ asSpoken: string;
275
+ value: string;
276
+ value_es: string;
277
+ pii: string;
278
+ };
279
+ default: {
280
+ id: string;
281
+ type: string;
282
+ variable: string;
283
+ value: string;
284
+ };
285
+ "condition: ac_late"?: undefined;
286
+ "condition: /^[\\s\u00BF\u00A1]*(?:(?:por favor|please|a|que|me lo|me|lo|puede|can you|could you)\\s+)*(?:repetir|repite|rep[i\u00ED]t[ae](?:lo|la|me|melo|nos)?|rep[i\u00ED]tamelo|otra vez|de nuevo|repeat(?:\\s+(?:that|it))?|say (?:that|it) again|again|one more time)(?:\\s+(?:por favor|please|la pregunta|las opciones|eso|that|it))*[\\s.!?\u00BF,]*$/i.test(String(ac_answer || '')) && pickChoice(ac_answer, choices, ac_other) === ''"?: undefined;
287
+ "condition: typeof answer_precheck !== 'undefined' && answer_precheck && String(ac_answer || '').trim()"?: undefined;
288
+ "condition: ac_key === '' && typeof answer_validator !== 'undefined' && answer_validator && String(ac_answer || '').trim()"?: undefined;
289
+ "condition: ac_missed && /^[\\s\u00BF\u00A1]*(?:(?:por favor|please|a|que|me lo|me|lo|puede|can you|could you)\\s+)*(?:repetir|repite|rep[i\u00ED]t[ae](?:lo|la|me|melo|nos)?|rep[i\u00ED]tamelo|otra vez|de nuevo|repeat(?:\\s+(?:that|it))?|say (?:that|it) again|again|one more time)(?:\\s+(?:por favor|please|la pregunta|las opciones|eso|that|it))*[\\s.!?\u00BF,]*$/i.test(String(ac_answer || '')) && pickChoice(ac_answer, choices, ac_other) === ''"?: undefined;
290
+ "condition: ac_key === '__switch'"?: undefined;
291
+ "condition: ac_key === '__agent'"?: undefined;
292
+ "condition: ac_key === '__exit'"?: undefined;
293
+ "condition: ac_key === '__text'"?: undefined;
294
+ "condition: ac_key === '__amount'"?: undefined;
295
+ "condition: ac_key === '__elsewhere'"?: undefined;
296
+ "condition: ac_key === '' && ac_other"?: undefined;
297
+ "condition: ac_key === ''"?: undefined;
298
+ };
299
+ variable?: undefined;
300
+ value?: undefined;
301
+ asSpoken?: undefined;
302
+ value_es?: undefined;
303
+ pii?: undefined;
304
+ } | {
305
+ id: string;
306
+ type: string;
307
+ branches: {
308
+ "condition: ac_missed && /^[\\s\u00BF\u00A1]*(?:(?:por favor|please|a|que|me lo|me|lo|puede|can you|could you)\\s+)*(?:repetir|repite|rep[i\u00ED]t[ae](?:lo|la|me|melo|nos)?|rep[i\u00ED]tamelo|otra vez|de nuevo|repeat(?:\\s+(?:that|it))?|say (?:that|it) again|again|one more time)(?:\\s+(?:por favor|please|la pregunta|las opciones|eso|that|it))*[\\s.!?\u00BF,]*$/i.test(String(ac_answer || '')) && pickChoice(ac_answer, choices, ac_other) === ''": {
309
+ id: string;
310
+ type: string;
311
+ variable: string;
312
+ asSpoken: string;
313
+ value: string;
314
+ value_es: string;
315
+ pii: string;
316
+ };
317
+ default: {
318
+ id: string;
319
+ type: string;
320
+ variable: string;
321
+ value: string;
322
+ };
323
+ "condition: ac_late"?: undefined;
324
+ "condition: /^[\\s\u00BF\u00A1]*(?:(?:por favor|please|a|que|me lo|me|lo|puede|can you|could you)\\s+)*(?:repetir|repite|rep[i\u00ED]t[ae](?:lo|la|me|melo|nos)?|rep[i\u00ED]tamelo|otra vez|de nuevo|repeat(?:\\s+(?:that|it))?|say (?:that|it) again|again|one more time)(?:\\s+(?:por favor|please|la pregunta|las opciones|eso|that|it))*[\\s.!?\u00BF,]*$/i.test(String(ac_answer || '')) && pickChoice(ac_answer, choices, ac_other) === ''"?: undefined;
325
+ "condition: typeof answer_precheck !== 'undefined' && answer_precheck && String(ac_answer || '').trim()"?: undefined;
326
+ "condition: ac_key === '' && typeof answer_validator !== 'undefined' && answer_validator && String(ac_answer || '').trim()"?: undefined;
327
+ "condition: ac_missed"?: undefined;
328
+ "condition: ac_key === '__switch'"?: undefined;
329
+ "condition: ac_key === '__agent'"?: undefined;
330
+ "condition: ac_key === '__exit'"?: undefined;
331
+ "condition: ac_key === '__text'"?: undefined;
332
+ "condition: ac_key === '__amount'"?: undefined;
333
+ "condition: ac_key === '__elsewhere'"?: undefined;
334
+ "condition: ac_key === '' && ac_other"?: undefined;
335
+ "condition: ac_key === ''"?: undefined;
336
+ };
337
+ variable?: undefined;
338
+ value?: undefined;
339
+ asSpoken?: undefined;
340
+ value_es?: undefined;
341
+ pii?: undefined;
342
+ } | {
343
+ id: string;
344
+ type: string;
345
+ branches: {
346
+ "condition: ac_key === '__switch'": {
347
+ id: string;
348
+ type: string;
349
+ value: string;
350
+ callType: string;
351
+ };
352
+ "condition: ac_key === '__agent'": {
353
+ id: string;
354
+ type: string;
355
+ value: string;
356
+ callType: string;
357
+ };
358
+ "condition: ac_key === '__exit'": {
359
+ id: string;
360
+ type: string;
361
+ value: string;
362
+ callType: string;
363
+ parameters: {
364
+ support_context: string;
365
+ support_context_es: string;
366
+ };
367
+ };
368
+ "condition: ac_key === '__text'": {
369
+ id: string;
370
+ type: string;
371
+ value: string;
372
+ callType: string;
373
+ };
374
+ "condition: ac_key === '__amount'": {
375
+ id: string;
376
+ type: string;
377
+ variable: string;
378
+ value: string;
379
+ };
380
+ "condition: ac_key === '__elsewhere'": {
381
+ id: string;
382
+ type: string;
383
+ outcome: string;
384
+ reason: string;
385
+ };
386
+ "condition: ac_key === '' && ac_other": {
387
+ id: string;
388
+ type: string;
389
+ variable: string;
390
+ value: string;
391
+ };
392
+ "condition: ac_key === ''": {
393
+ id: string;
394
+ type: string;
395
+ outcome: string;
396
+ reason: string;
397
+ };
398
+ default: {
399
+ id: string;
400
+ type: string;
401
+ variable: string;
402
+ value: string;
403
+ };
404
+ "condition: ac_late"?: undefined;
405
+ "condition: /^[\\s\u00BF\u00A1]*(?:(?:por favor|please|a|que|me lo|me|lo|puede|can you|could you)\\s+)*(?:repetir|repite|rep[i\u00ED]t[ae](?:lo|la|me|melo|nos)?|rep[i\u00ED]tamelo|otra vez|de nuevo|repeat(?:\\s+(?:that|it))?|say (?:that|it) again|again|one more time)(?:\\s+(?:por favor|please|la pregunta|las opciones|eso|that|it))*[\\s.!?\u00BF,]*$/i.test(String(ac_answer || '')) && pickChoice(ac_answer, choices, ac_other) === ''"?: undefined;
406
+ "condition: typeof answer_precheck !== 'undefined' && answer_precheck && String(ac_answer || '').trim()"?: undefined;
407
+ "condition: ac_key === '' && typeof answer_validator !== 'undefined' && answer_validator && String(ac_answer || '').trim()"?: undefined;
408
+ "condition: ac_missed"?: undefined;
409
+ "condition: ac_missed && /^[\\s\u00BF\u00A1]*(?:(?:por favor|please|a|que|me lo|me|lo|puede|can you|could you)\\s+)*(?:repetir|repite|rep[i\u00ED]t[ae](?:lo|la|me|melo|nos)?|rep[i\u00ED]tamelo|otra vez|de nuevo|repeat(?:\\s+(?:that|it))?|say (?:that|it) again|again|one more time)(?:\\s+(?:por favor|please|la pregunta|las opciones|eso|that|it))*[\\s.!?\u00BF,]*$/i.test(String(ac_answer || '')) && pickChoice(ac_answer, choices, ac_other) === ''"?: undefined;
410
+ };
411
+ variable?: undefined;
412
+ value?: undefined;
413
+ asSpoken?: undefined;
414
+ value_es?: undefined;
415
+ pii?: undefined;
416
+ })[];
417
+ scope: string;
418
+ }[];
419
+ //# sourceMappingURL=choice-flow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"choice-flow.d.ts","sourceRoot":"","sources":["../../src/forms/choice-flow.js"],"names":[],"mappings":"AAAA,6FAA6F;AAC7F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAisBE"}