@wildix/xbees-kite-client 1.0.19 → 1.0.20
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.
- package/dist-cjs/models/models_0.js +10 -0
- package/dist-es/models/models_0.js +10 -0
- package/dist-types/commands/CreateOrUpdateWidgetPreviewCommand.d.ts +128 -0
- package/dist-types/commands/CreateWidgetCommand.d.ts +128 -0
- package/dist-types/commands/GetSmsNumberConfigurationCommand.d.ts +64 -0
- package/dist-types/commands/GetWhatsAppNumberConfigurationCommand.d.ts +64 -0
- package/dist-types/commands/GetWidgetCommand.d.ts +64 -0
- package/dist-types/commands/ListSmsConfigurationsCommand.d.ts +64 -0
- package/dist-types/commands/ListWhatsAppConfigurationsCommand.d.ts +64 -0
- package/dist-types/commands/ListWidgetsCommand.d.ts +64 -0
- package/dist-types/commands/PutSmsNumberConfigurationCommand.d.ts +128 -0
- package/dist-types/commands/PutWhatsAppNumberConfigurationCommand.d.ts +128 -0
- package/dist-types/commands/UpdateWidgetCommand.d.ts +128 -0
- package/dist-types/models/models_0.d.ts +160 -2
- package/package.json +1 -1
|
@@ -74,6 +74,12 @@ declare const PutWhatsAppNumberConfigurationCommand_base: {
|
|
|
74
74
|
* readTimeout: { // RouteReadTimeoutCondition
|
|
75
75
|
* timeout: Number("int"), // required
|
|
76
76
|
* },
|
|
77
|
+
* inactivityTimeout: { // InactivityTimeoutCondition
|
|
78
|
+
* timeout: Number("int"), // required
|
|
79
|
+
* },
|
|
80
|
+
* evaluation: { // RouteEvaluationCondition
|
|
81
|
+
* prompt: "STRING_VALUE", // required
|
|
82
|
+
* },
|
|
77
83
|
* },
|
|
78
84
|
* ],
|
|
79
85
|
* task: { // RouteActionTask Union: only one key present
|
|
@@ -81,12 +87,38 @@ declare const PutWhatsAppNumberConfigurationCommand_base: {
|
|
|
81
87
|
* botId: "STRING_VALUE", // required
|
|
82
88
|
* text: "STRING_VALUE", // required
|
|
83
89
|
* },
|
|
90
|
+
* sendGenerativeMessage: { // RouteSendGenerativeMessageTask
|
|
91
|
+
* botId: "STRING_VALUE", // required
|
|
92
|
+
* },
|
|
84
93
|
* addMembers: { // RouteAddMembersTask
|
|
85
94
|
* emails: [ // RouteAddMembersUsersList // required
|
|
86
95
|
* "STRING_VALUE",
|
|
87
96
|
* ],
|
|
88
97
|
* },
|
|
98
|
+
* notifyMessage: { // RouteNotifyMessage
|
|
99
|
+
* botId: "STRING_VALUE", // required
|
|
100
|
+
* userId: "STRING_VALUE",
|
|
101
|
+
* channelId: "STRING_VALUE",
|
|
102
|
+
* text: "STRING_VALUE", // required
|
|
103
|
+
* variables: [ // RouteGenerativeVariablesList
|
|
104
|
+
* { // RouteGenerativeVariable
|
|
105
|
+
* term: "STRING_VALUE", // required
|
|
106
|
+
* description: "STRING_VALUE", // required
|
|
107
|
+
* },
|
|
108
|
+
* ],
|
|
109
|
+
* },
|
|
110
|
+
* notifyEmail: { // RouteNotifyEmail
|
|
111
|
+
* recipient: "STRING_VALUE", // required
|
|
112
|
+
* text: "STRING_VALUE", // required
|
|
113
|
+
* variables: [
|
|
114
|
+
* {
|
|
115
|
+
* term: "STRING_VALUE", // required
|
|
116
|
+
* description: "STRING_VALUE", // required
|
|
117
|
+
* },
|
|
118
|
+
* ],
|
|
119
|
+
* },
|
|
89
120
|
* },
|
|
121
|
+
* once: true || false,
|
|
90
122
|
* },
|
|
91
123
|
* ],
|
|
92
124
|
* },
|
|
@@ -114,6 +146,12 @@ declare const PutWhatsAppNumberConfigurationCommand_base: {
|
|
|
114
146
|
* readTimeout: {
|
|
115
147
|
* timeout: Number("int"), // required
|
|
116
148
|
* },
|
|
149
|
+
* inactivityTimeout: {
|
|
150
|
+
* timeout: Number("int"), // required
|
|
151
|
+
* },
|
|
152
|
+
* evaluation: {
|
|
153
|
+
* prompt: "STRING_VALUE", // required
|
|
154
|
+
* },
|
|
117
155
|
* },
|
|
118
156
|
* ],
|
|
119
157
|
* task: {// Union: only one key present
|
|
@@ -121,12 +159,38 @@ declare const PutWhatsAppNumberConfigurationCommand_base: {
|
|
|
121
159
|
* botId: "STRING_VALUE", // required
|
|
122
160
|
* text: "STRING_VALUE", // required
|
|
123
161
|
* },
|
|
162
|
+
* sendGenerativeMessage: {
|
|
163
|
+
* botId: "STRING_VALUE", // required
|
|
164
|
+
* },
|
|
124
165
|
* addMembers: {
|
|
125
166
|
* emails: [ // required
|
|
126
167
|
* "STRING_VALUE",
|
|
127
168
|
* ],
|
|
128
169
|
* },
|
|
170
|
+
* notifyMessage: {
|
|
171
|
+
* botId: "STRING_VALUE", // required
|
|
172
|
+
* userId: "STRING_VALUE",
|
|
173
|
+
* channelId: "STRING_VALUE",
|
|
174
|
+
* text: "STRING_VALUE", // required
|
|
175
|
+
* variables: [
|
|
176
|
+
* {
|
|
177
|
+
* term: "STRING_VALUE", // required
|
|
178
|
+
* description: "STRING_VALUE", // required
|
|
179
|
+
* },
|
|
180
|
+
* ],
|
|
181
|
+
* },
|
|
182
|
+
* notifyEmail: {
|
|
183
|
+
* recipient: "STRING_VALUE", // required
|
|
184
|
+
* text: "STRING_VALUE", // required
|
|
185
|
+
* variables: [
|
|
186
|
+
* {
|
|
187
|
+
* term: "STRING_VALUE", // required
|
|
188
|
+
* description: "STRING_VALUE", // required
|
|
189
|
+
* },
|
|
190
|
+
* ],
|
|
191
|
+
* },
|
|
129
192
|
* },
|
|
193
|
+
* once: true || false,
|
|
130
194
|
* },
|
|
131
195
|
* ],
|
|
132
196
|
* companyId: "STRING_VALUE",
|
|
@@ -174,6 +238,12 @@ declare const PutWhatsAppNumberConfigurationCommand_base: {
|
|
|
174
238
|
* // readTimeout: { // RouteReadTimeoutCondition
|
|
175
239
|
* // timeout: Number("int"), // required
|
|
176
240
|
* // },
|
|
241
|
+
* // inactivityTimeout: { // InactivityTimeoutCondition
|
|
242
|
+
* // timeout: Number("int"), // required
|
|
243
|
+
* // },
|
|
244
|
+
* // evaluation: { // RouteEvaluationCondition
|
|
245
|
+
* // prompt: "STRING_VALUE", // required
|
|
246
|
+
* // },
|
|
177
247
|
* // },
|
|
178
248
|
* // ],
|
|
179
249
|
* // task: { // RouteActionTask Union: only one key present
|
|
@@ -181,12 +251,38 @@ declare const PutWhatsAppNumberConfigurationCommand_base: {
|
|
|
181
251
|
* // botId: "STRING_VALUE", // required
|
|
182
252
|
* // text: "STRING_VALUE", // required
|
|
183
253
|
* // },
|
|
254
|
+
* // sendGenerativeMessage: { // RouteSendGenerativeMessageTask
|
|
255
|
+
* // botId: "STRING_VALUE", // required
|
|
256
|
+
* // },
|
|
184
257
|
* // addMembers: { // RouteAddMembersTask
|
|
185
258
|
* // emails: [ // RouteAddMembersUsersList // required
|
|
186
259
|
* // "STRING_VALUE",
|
|
187
260
|
* // ],
|
|
188
261
|
* // },
|
|
262
|
+
* // notifyMessage: { // RouteNotifyMessage
|
|
263
|
+
* // botId: "STRING_VALUE", // required
|
|
264
|
+
* // userId: "STRING_VALUE",
|
|
265
|
+
* // channelId: "STRING_VALUE",
|
|
266
|
+
* // text: "STRING_VALUE", // required
|
|
267
|
+
* // variables: [ // RouteGenerativeVariablesList
|
|
268
|
+
* // { // RouteGenerativeVariable
|
|
269
|
+
* // term: "STRING_VALUE", // required
|
|
270
|
+
* // description: "STRING_VALUE", // required
|
|
271
|
+
* // },
|
|
272
|
+
* // ],
|
|
273
|
+
* // },
|
|
274
|
+
* // notifyEmail: { // RouteNotifyEmail
|
|
275
|
+
* // recipient: "STRING_VALUE", // required
|
|
276
|
+
* // text: "STRING_VALUE", // required
|
|
277
|
+
* // variables: [
|
|
278
|
+
* // {
|
|
279
|
+
* // term: "STRING_VALUE", // required
|
|
280
|
+
* // description: "STRING_VALUE", // required
|
|
281
|
+
* // },
|
|
282
|
+
* // ],
|
|
283
|
+
* // },
|
|
189
284
|
* // },
|
|
285
|
+
* // once: true || false,
|
|
190
286
|
* // },
|
|
191
287
|
* // ],
|
|
192
288
|
* // },
|
|
@@ -214,6 +310,12 @@ declare const PutWhatsAppNumberConfigurationCommand_base: {
|
|
|
214
310
|
* // readTimeout: {
|
|
215
311
|
* // timeout: Number("int"), // required
|
|
216
312
|
* // },
|
|
313
|
+
* // inactivityTimeout: {
|
|
314
|
+
* // timeout: Number("int"), // required
|
|
315
|
+
* // },
|
|
316
|
+
* // evaluation: {
|
|
317
|
+
* // prompt: "STRING_VALUE", // required
|
|
318
|
+
* // },
|
|
217
319
|
* // },
|
|
218
320
|
* // ],
|
|
219
321
|
* // task: {// Union: only one key present
|
|
@@ -221,12 +323,38 @@ declare const PutWhatsAppNumberConfigurationCommand_base: {
|
|
|
221
323
|
* // botId: "STRING_VALUE", // required
|
|
222
324
|
* // text: "STRING_VALUE", // required
|
|
223
325
|
* // },
|
|
326
|
+
* // sendGenerativeMessage: {
|
|
327
|
+
* // botId: "STRING_VALUE", // required
|
|
328
|
+
* // },
|
|
224
329
|
* // addMembers: {
|
|
225
330
|
* // emails: [ // required
|
|
226
331
|
* // "STRING_VALUE",
|
|
227
332
|
* // ],
|
|
228
333
|
* // },
|
|
334
|
+
* // notifyMessage: {
|
|
335
|
+
* // botId: "STRING_VALUE", // required
|
|
336
|
+
* // userId: "STRING_VALUE",
|
|
337
|
+
* // channelId: "STRING_VALUE",
|
|
338
|
+
* // text: "STRING_VALUE", // required
|
|
339
|
+
* // variables: [
|
|
340
|
+
* // {
|
|
341
|
+
* // term: "STRING_VALUE", // required
|
|
342
|
+
* // description: "STRING_VALUE", // required
|
|
343
|
+
* // },
|
|
344
|
+
* // ],
|
|
345
|
+
* // },
|
|
346
|
+
* // notifyEmail: {
|
|
347
|
+
* // recipient: "STRING_VALUE", // required
|
|
348
|
+
* // text: "STRING_VALUE", // required
|
|
349
|
+
* // variables: [
|
|
350
|
+
* // {
|
|
351
|
+
* // term: "STRING_VALUE", // required
|
|
352
|
+
* // description: "STRING_VALUE", // required
|
|
353
|
+
* // },
|
|
354
|
+
* // ],
|
|
355
|
+
* // },
|
|
229
356
|
* // },
|
|
357
|
+
* // once: true || false,
|
|
230
358
|
* // },
|
|
231
359
|
* // ],
|
|
232
360
|
* // companyId: "STRING_VALUE", // required
|
|
@@ -113,6 +113,12 @@ declare const UpdateWidgetCommand_base: {
|
|
|
113
113
|
* readTimeout: { // RouteReadTimeoutCondition
|
|
114
114
|
* timeout: Number("int"), // required
|
|
115
115
|
* },
|
|
116
|
+
* inactivityTimeout: { // InactivityTimeoutCondition
|
|
117
|
+
* timeout: Number("int"), // required
|
|
118
|
+
* },
|
|
119
|
+
* evaluation: { // RouteEvaluationCondition
|
|
120
|
+
* prompt: "STRING_VALUE", // required
|
|
121
|
+
* },
|
|
116
122
|
* },
|
|
117
123
|
* ],
|
|
118
124
|
* task: { // RouteActionTask Union: only one key present
|
|
@@ -120,12 +126,38 @@ declare const UpdateWidgetCommand_base: {
|
|
|
120
126
|
* botId: "STRING_VALUE", // required
|
|
121
127
|
* text: "STRING_VALUE", // required
|
|
122
128
|
* },
|
|
129
|
+
* sendGenerativeMessage: { // RouteSendGenerativeMessageTask
|
|
130
|
+
* botId: "STRING_VALUE", // required
|
|
131
|
+
* },
|
|
123
132
|
* addMembers: { // RouteAddMembersTask
|
|
124
133
|
* emails: [ // RouteAddMembersUsersList // required
|
|
125
134
|
* "STRING_VALUE",
|
|
126
135
|
* ],
|
|
127
136
|
* },
|
|
137
|
+
* notifyMessage: { // RouteNotifyMessage
|
|
138
|
+
* botId: "STRING_VALUE", // required
|
|
139
|
+
* userId: "STRING_VALUE",
|
|
140
|
+
* channelId: "STRING_VALUE",
|
|
141
|
+
* text: "STRING_VALUE", // required
|
|
142
|
+
* variables: [ // RouteGenerativeVariablesList
|
|
143
|
+
* { // RouteGenerativeVariable
|
|
144
|
+
* term: "STRING_VALUE", // required
|
|
145
|
+
* description: "STRING_VALUE", // required
|
|
146
|
+
* },
|
|
147
|
+
* ],
|
|
148
|
+
* },
|
|
149
|
+
* notifyEmail: { // RouteNotifyEmail
|
|
150
|
+
* recipient: "STRING_VALUE", // required
|
|
151
|
+
* text: "STRING_VALUE", // required
|
|
152
|
+
* variables: [
|
|
153
|
+
* {
|
|
154
|
+
* term: "STRING_VALUE", // required
|
|
155
|
+
* description: "STRING_VALUE", // required
|
|
156
|
+
* },
|
|
157
|
+
* ],
|
|
158
|
+
* },
|
|
128
159
|
* },
|
|
160
|
+
* once: true || false,
|
|
129
161
|
* },
|
|
130
162
|
* ],
|
|
131
163
|
* },
|
|
@@ -185,6 +217,12 @@ declare const UpdateWidgetCommand_base: {
|
|
|
185
217
|
* readTimeout: {
|
|
186
218
|
* timeout: Number("int"), // required
|
|
187
219
|
* },
|
|
220
|
+
* inactivityTimeout: {
|
|
221
|
+
* timeout: Number("int"), // required
|
|
222
|
+
* },
|
|
223
|
+
* evaluation: {
|
|
224
|
+
* prompt: "STRING_VALUE", // required
|
|
225
|
+
* },
|
|
188
226
|
* },
|
|
189
227
|
* ],
|
|
190
228
|
* task: {// Union: only one key present
|
|
@@ -192,12 +230,38 @@ declare const UpdateWidgetCommand_base: {
|
|
|
192
230
|
* botId: "STRING_VALUE", // required
|
|
193
231
|
* text: "STRING_VALUE", // required
|
|
194
232
|
* },
|
|
233
|
+
* sendGenerativeMessage: {
|
|
234
|
+
* botId: "STRING_VALUE", // required
|
|
235
|
+
* },
|
|
195
236
|
* addMembers: {
|
|
196
237
|
* emails: [ // required
|
|
197
238
|
* "STRING_VALUE",
|
|
198
239
|
* ],
|
|
199
240
|
* },
|
|
241
|
+
* notifyMessage: {
|
|
242
|
+
* botId: "STRING_VALUE", // required
|
|
243
|
+
* userId: "STRING_VALUE",
|
|
244
|
+
* channelId: "STRING_VALUE",
|
|
245
|
+
* text: "STRING_VALUE", // required
|
|
246
|
+
* variables: [
|
|
247
|
+
* {
|
|
248
|
+
* term: "STRING_VALUE", // required
|
|
249
|
+
* description: "STRING_VALUE", // required
|
|
250
|
+
* },
|
|
251
|
+
* ],
|
|
252
|
+
* },
|
|
253
|
+
* notifyEmail: {
|
|
254
|
+
* recipient: "STRING_VALUE", // required
|
|
255
|
+
* text: "STRING_VALUE", // required
|
|
256
|
+
* variables: [
|
|
257
|
+
* {
|
|
258
|
+
* term: "STRING_VALUE", // required
|
|
259
|
+
* description: "STRING_VALUE", // required
|
|
260
|
+
* },
|
|
261
|
+
* ],
|
|
262
|
+
* },
|
|
200
263
|
* },
|
|
264
|
+
* once: true || false,
|
|
201
265
|
* },
|
|
202
266
|
* ],
|
|
203
267
|
* companyId: "STRING_VALUE",
|
|
@@ -285,6 +349,12 @@ declare const UpdateWidgetCommand_base: {
|
|
|
285
349
|
* // readTimeout: { // RouteReadTimeoutCondition
|
|
286
350
|
* // timeout: Number("int"), // required
|
|
287
351
|
* // },
|
|
352
|
+
* // inactivityTimeout: { // InactivityTimeoutCondition
|
|
353
|
+
* // timeout: Number("int"), // required
|
|
354
|
+
* // },
|
|
355
|
+
* // evaluation: { // RouteEvaluationCondition
|
|
356
|
+
* // prompt: "STRING_VALUE", // required
|
|
357
|
+
* // },
|
|
288
358
|
* // },
|
|
289
359
|
* // ],
|
|
290
360
|
* // task: { // RouteActionTask Union: only one key present
|
|
@@ -292,12 +362,38 @@ declare const UpdateWidgetCommand_base: {
|
|
|
292
362
|
* // botId: "STRING_VALUE", // required
|
|
293
363
|
* // text: "STRING_VALUE", // required
|
|
294
364
|
* // },
|
|
365
|
+
* // sendGenerativeMessage: { // RouteSendGenerativeMessageTask
|
|
366
|
+
* // botId: "STRING_VALUE", // required
|
|
367
|
+
* // },
|
|
295
368
|
* // addMembers: { // RouteAddMembersTask
|
|
296
369
|
* // emails: [ // RouteAddMembersUsersList // required
|
|
297
370
|
* // "STRING_VALUE",
|
|
298
371
|
* // ],
|
|
299
372
|
* // },
|
|
373
|
+
* // notifyMessage: { // RouteNotifyMessage
|
|
374
|
+
* // botId: "STRING_VALUE", // required
|
|
375
|
+
* // userId: "STRING_VALUE",
|
|
376
|
+
* // channelId: "STRING_VALUE",
|
|
377
|
+
* // text: "STRING_VALUE", // required
|
|
378
|
+
* // variables: [ // RouteGenerativeVariablesList
|
|
379
|
+
* // { // RouteGenerativeVariable
|
|
380
|
+
* // term: "STRING_VALUE", // required
|
|
381
|
+
* // description: "STRING_VALUE", // required
|
|
382
|
+
* // },
|
|
383
|
+
* // ],
|
|
384
|
+
* // },
|
|
385
|
+
* // notifyEmail: { // RouteNotifyEmail
|
|
386
|
+
* // recipient: "STRING_VALUE", // required
|
|
387
|
+
* // text: "STRING_VALUE", // required
|
|
388
|
+
* // variables: [
|
|
389
|
+
* // {
|
|
390
|
+
* // term: "STRING_VALUE", // required
|
|
391
|
+
* // description: "STRING_VALUE", // required
|
|
392
|
+
* // },
|
|
393
|
+
* // ],
|
|
394
|
+
* // },
|
|
300
395
|
* // },
|
|
396
|
+
* // once: true || false,
|
|
301
397
|
* // },
|
|
302
398
|
* // ],
|
|
303
399
|
* // },
|
|
@@ -357,6 +453,12 @@ declare const UpdateWidgetCommand_base: {
|
|
|
357
453
|
* // readTimeout: {
|
|
358
454
|
* // timeout: Number("int"), // required
|
|
359
455
|
* // },
|
|
456
|
+
* // inactivityTimeout: {
|
|
457
|
+
* // timeout: Number("int"), // required
|
|
458
|
+
* // },
|
|
459
|
+
* // evaluation: {
|
|
460
|
+
* // prompt: "STRING_VALUE", // required
|
|
461
|
+
* // },
|
|
360
462
|
* // },
|
|
361
463
|
* // ],
|
|
362
464
|
* // task: {// Union: only one key present
|
|
@@ -364,12 +466,38 @@ declare const UpdateWidgetCommand_base: {
|
|
|
364
466
|
* // botId: "STRING_VALUE", // required
|
|
365
467
|
* // text: "STRING_VALUE", // required
|
|
366
468
|
* // },
|
|
469
|
+
* // sendGenerativeMessage: {
|
|
470
|
+
* // botId: "STRING_VALUE", // required
|
|
471
|
+
* // },
|
|
367
472
|
* // addMembers: {
|
|
368
473
|
* // emails: [ // required
|
|
369
474
|
* // "STRING_VALUE",
|
|
370
475
|
* // ],
|
|
371
476
|
* // },
|
|
477
|
+
* // notifyMessage: {
|
|
478
|
+
* // botId: "STRING_VALUE", // required
|
|
479
|
+
* // userId: "STRING_VALUE",
|
|
480
|
+
* // channelId: "STRING_VALUE",
|
|
481
|
+
* // text: "STRING_VALUE", // required
|
|
482
|
+
* // variables: [
|
|
483
|
+
* // {
|
|
484
|
+
* // term: "STRING_VALUE", // required
|
|
485
|
+
* // description: "STRING_VALUE", // required
|
|
486
|
+
* // },
|
|
487
|
+
* // ],
|
|
488
|
+
* // },
|
|
489
|
+
* // notifyEmail: {
|
|
490
|
+
* // recipient: "STRING_VALUE", // required
|
|
491
|
+
* // text: "STRING_VALUE", // required
|
|
492
|
+
* // variables: [
|
|
493
|
+
* // {
|
|
494
|
+
* // term: "STRING_VALUE", // required
|
|
495
|
+
* // description: "STRING_VALUE", // required
|
|
496
|
+
* // },
|
|
497
|
+
* // ],
|
|
498
|
+
* // },
|
|
372
499
|
* // },
|
|
500
|
+
* // once: true || false,
|
|
373
501
|
* // },
|
|
374
502
|
* // ],
|
|
375
503
|
* // id: "STRING_VALUE", // required
|
|
@@ -597,6 +597,26 @@ export interface CancelCalendarEventOutput {
|
|
|
597
597
|
channel: Channel;
|
|
598
598
|
event: CalendarEvent;
|
|
599
599
|
}
|
|
600
|
+
/**
|
|
601
|
+
* @public
|
|
602
|
+
*/
|
|
603
|
+
export interface RouteEvaluationCondition {
|
|
604
|
+
/**
|
|
605
|
+
* A natural language prompt used to evaluate the content of a customer's message using AI. The prompt should be formulated to guide the AI in determining whether the message or conversation meets a specific condition.
|
|
606
|
+
* @public
|
|
607
|
+
*/
|
|
608
|
+
prompt: string;
|
|
609
|
+
}
|
|
610
|
+
/**
|
|
611
|
+
* @public
|
|
612
|
+
*/
|
|
613
|
+
export interface InactivityTimeoutCondition {
|
|
614
|
+
/**
|
|
615
|
+
* Timeout in seconds since last activity in the channel.
|
|
616
|
+
* @public
|
|
617
|
+
*/
|
|
618
|
+
timeout: number;
|
|
619
|
+
}
|
|
600
620
|
/**
|
|
601
621
|
* @public
|
|
602
622
|
*/
|
|
@@ -620,7 +640,7 @@ export interface RouteReplyTimeoutCondition {
|
|
|
620
640
|
/**
|
|
621
641
|
* @public
|
|
622
642
|
*/
|
|
623
|
-
export type RouteActionCondition = RouteActionCondition.ReadTimeoutMember | RouteActionCondition.ReplyTimeoutMember | RouteActionCondition.$UnknownMember;
|
|
643
|
+
export type RouteActionCondition = RouteActionCondition.EvaluationMember | RouteActionCondition.InactivityTimeoutMember | RouteActionCondition.ReadTimeoutMember | RouteActionCondition.ReplyTimeoutMember | RouteActionCondition.$UnknownMember;
|
|
624
644
|
/**
|
|
625
645
|
* @public
|
|
626
646
|
*/
|
|
@@ -628,11 +648,29 @@ export declare namespace RouteActionCondition {
|
|
|
628
648
|
interface ReplyTimeoutMember {
|
|
629
649
|
replyTimeout: RouteReplyTimeoutCondition;
|
|
630
650
|
readTimeout?: never;
|
|
651
|
+
inactivityTimeout?: never;
|
|
652
|
+
evaluation?: never;
|
|
631
653
|
$unknown?: never;
|
|
632
654
|
}
|
|
633
655
|
interface ReadTimeoutMember {
|
|
634
656
|
replyTimeout?: never;
|
|
635
657
|
readTimeout: RouteReadTimeoutCondition;
|
|
658
|
+
inactivityTimeout?: never;
|
|
659
|
+
evaluation?: never;
|
|
660
|
+
$unknown?: never;
|
|
661
|
+
}
|
|
662
|
+
interface InactivityTimeoutMember {
|
|
663
|
+
replyTimeout?: never;
|
|
664
|
+
readTimeout?: never;
|
|
665
|
+
inactivityTimeout: InactivityTimeoutCondition;
|
|
666
|
+
evaluation?: never;
|
|
667
|
+
$unknown?: never;
|
|
668
|
+
}
|
|
669
|
+
interface EvaluationMember {
|
|
670
|
+
replyTimeout?: never;
|
|
671
|
+
readTimeout?: never;
|
|
672
|
+
inactivityTimeout?: never;
|
|
673
|
+
evaluation: RouteEvaluationCondition;
|
|
636
674
|
$unknown?: never;
|
|
637
675
|
}
|
|
638
676
|
/**
|
|
@@ -641,11 +679,15 @@ export declare namespace RouteActionCondition {
|
|
|
641
679
|
interface $UnknownMember {
|
|
642
680
|
replyTimeout?: never;
|
|
643
681
|
readTimeout?: never;
|
|
682
|
+
inactivityTimeout?: never;
|
|
683
|
+
evaluation?: never;
|
|
644
684
|
$unknown: [string, any];
|
|
645
685
|
}
|
|
646
686
|
interface Visitor<T> {
|
|
647
687
|
replyTimeout: (value: RouteReplyTimeoutCondition) => T;
|
|
648
688
|
readTimeout: (value: RouteReadTimeoutCondition) => T;
|
|
689
|
+
inactivityTimeout: (value: InactivityTimeoutCondition) => T;
|
|
690
|
+
evaluation: (value: RouteEvaluationCondition) => T;
|
|
649
691
|
_: (name: string, value: any) => T;
|
|
650
692
|
}
|
|
651
693
|
const visit: <T>(value: RouteActionCondition, visitor: Visitor<T>) => T;
|
|
@@ -656,6 +698,81 @@ export declare namespace RouteActionCondition {
|
|
|
656
698
|
export interface RouteAddMembersTask {
|
|
657
699
|
emails: (string)[];
|
|
658
700
|
}
|
|
701
|
+
/**
|
|
702
|
+
* @public
|
|
703
|
+
*/
|
|
704
|
+
export interface RouteGenerativeVariable {
|
|
705
|
+
/**
|
|
706
|
+
* Variable name, to be used in the message. Example: 'reason_of_complain'.
|
|
707
|
+
* @public
|
|
708
|
+
*/
|
|
709
|
+
term: string;
|
|
710
|
+
/**
|
|
711
|
+
* A description to guide AI when resolving the variable.
|
|
712
|
+
* @public
|
|
713
|
+
*/
|
|
714
|
+
description: string;
|
|
715
|
+
}
|
|
716
|
+
/**
|
|
717
|
+
* @public
|
|
718
|
+
*/
|
|
719
|
+
export interface RouteNotifyEmail {
|
|
720
|
+
/**
|
|
721
|
+
* An email where to send the message.
|
|
722
|
+
* @public
|
|
723
|
+
*/
|
|
724
|
+
recipient: string;
|
|
725
|
+
/**
|
|
726
|
+
* Email content to be sent to the recipient. Can include variables for generative variables.
|
|
727
|
+
* @public
|
|
728
|
+
*/
|
|
729
|
+
text: string;
|
|
730
|
+
/**
|
|
731
|
+
* List of generative variables that can be used to customize the email message content.
|
|
732
|
+
* @public
|
|
733
|
+
*/
|
|
734
|
+
variables?: (RouteGenerativeVariable)[] | undefined;
|
|
735
|
+
}
|
|
736
|
+
/**
|
|
737
|
+
* @public
|
|
738
|
+
*/
|
|
739
|
+
export interface RouteNotifyMessage {
|
|
740
|
+
/**
|
|
741
|
+
* Identifier of the chatbot from whom the message will be sent.
|
|
742
|
+
* @public
|
|
743
|
+
*/
|
|
744
|
+
botId: string;
|
|
745
|
+
/**
|
|
746
|
+
* Identifier of the user who should receive the message.
|
|
747
|
+
* @public
|
|
748
|
+
*/
|
|
749
|
+
userId?: string | undefined;
|
|
750
|
+
/**
|
|
751
|
+
* Identifier of the channel where message should be sent.
|
|
752
|
+
* @public
|
|
753
|
+
*/
|
|
754
|
+
channelId?: string | undefined;
|
|
755
|
+
/**
|
|
756
|
+
* Email content to be sent to the recipient. Can include variables for generative variables.
|
|
757
|
+
* @public
|
|
758
|
+
*/
|
|
759
|
+
text: string;
|
|
760
|
+
/**
|
|
761
|
+
* List of generative variables that can be used to customize the email message content.
|
|
762
|
+
* @public
|
|
763
|
+
*/
|
|
764
|
+
variables?: (RouteGenerativeVariable)[] | undefined;
|
|
765
|
+
}
|
|
766
|
+
/**
|
|
767
|
+
* @public
|
|
768
|
+
*/
|
|
769
|
+
export interface RouteSendGenerativeMessageTask {
|
|
770
|
+
/**
|
|
771
|
+
* Identifier of the chatbot that should generate the message.
|
|
772
|
+
* @public
|
|
773
|
+
*/
|
|
774
|
+
botId: string;
|
|
775
|
+
}
|
|
659
776
|
/**
|
|
660
777
|
* @public
|
|
661
778
|
*/
|
|
@@ -674,19 +791,49 @@ export interface RouteSendMessageTask {
|
|
|
674
791
|
/**
|
|
675
792
|
* @public
|
|
676
793
|
*/
|
|
677
|
-
export type RouteActionTask = RouteActionTask.AddMembersMember | RouteActionTask.SendMessageMember | RouteActionTask.$UnknownMember;
|
|
794
|
+
export type RouteActionTask = RouteActionTask.AddMembersMember | RouteActionTask.NotifyEmailMember | RouteActionTask.NotifyMessageMember | RouteActionTask.SendGenerativeMessageMember | RouteActionTask.SendMessageMember | RouteActionTask.$UnknownMember;
|
|
678
795
|
/**
|
|
679
796
|
* @public
|
|
680
797
|
*/
|
|
681
798
|
export declare namespace RouteActionTask {
|
|
682
799
|
interface SendMessageMember {
|
|
683
800
|
sendMessage: RouteSendMessageTask;
|
|
801
|
+
sendGenerativeMessage?: never;
|
|
802
|
+
addMembers?: never;
|
|
803
|
+
notifyMessage?: never;
|
|
804
|
+
notifyEmail?: never;
|
|
805
|
+
$unknown?: never;
|
|
806
|
+
}
|
|
807
|
+
interface SendGenerativeMessageMember {
|
|
808
|
+
sendMessage?: never;
|
|
809
|
+
sendGenerativeMessage: RouteSendGenerativeMessageTask;
|
|
684
810
|
addMembers?: never;
|
|
811
|
+
notifyMessage?: never;
|
|
812
|
+
notifyEmail?: never;
|
|
685
813
|
$unknown?: never;
|
|
686
814
|
}
|
|
687
815
|
interface AddMembersMember {
|
|
688
816
|
sendMessage?: never;
|
|
817
|
+
sendGenerativeMessage?: never;
|
|
689
818
|
addMembers: RouteAddMembersTask;
|
|
819
|
+
notifyMessage?: never;
|
|
820
|
+
notifyEmail?: never;
|
|
821
|
+
$unknown?: never;
|
|
822
|
+
}
|
|
823
|
+
interface NotifyMessageMember {
|
|
824
|
+
sendMessage?: never;
|
|
825
|
+
sendGenerativeMessage?: never;
|
|
826
|
+
addMembers?: never;
|
|
827
|
+
notifyMessage: RouteNotifyMessage;
|
|
828
|
+
notifyEmail?: never;
|
|
829
|
+
$unknown?: never;
|
|
830
|
+
}
|
|
831
|
+
interface NotifyEmailMember {
|
|
832
|
+
sendMessage?: never;
|
|
833
|
+
sendGenerativeMessage?: never;
|
|
834
|
+
addMembers?: never;
|
|
835
|
+
notifyMessage?: never;
|
|
836
|
+
notifyEmail: RouteNotifyEmail;
|
|
690
837
|
$unknown?: never;
|
|
691
838
|
}
|
|
692
839
|
/**
|
|
@@ -694,12 +841,18 @@ export declare namespace RouteActionTask {
|
|
|
694
841
|
*/
|
|
695
842
|
interface $UnknownMember {
|
|
696
843
|
sendMessage?: never;
|
|
844
|
+
sendGenerativeMessage?: never;
|
|
697
845
|
addMembers?: never;
|
|
846
|
+
notifyMessage?: never;
|
|
847
|
+
notifyEmail?: never;
|
|
698
848
|
$unknown: [string, any];
|
|
699
849
|
}
|
|
700
850
|
interface Visitor<T> {
|
|
701
851
|
sendMessage: (value: RouteSendMessageTask) => T;
|
|
852
|
+
sendGenerativeMessage: (value: RouteSendGenerativeMessageTask) => T;
|
|
702
853
|
addMembers: (value: RouteAddMembersTask) => T;
|
|
854
|
+
notifyMessage: (value: RouteNotifyMessage) => T;
|
|
855
|
+
notifyEmail: (value: RouteNotifyEmail) => T;
|
|
703
856
|
_: (name: string, value: any) => T;
|
|
704
857
|
}
|
|
705
858
|
const visit: <T>(value: RouteActionTask, visitor: Visitor<T>) => T;
|
|
@@ -719,6 +872,11 @@ export interface RouteAction {
|
|
|
719
872
|
* @public
|
|
720
873
|
*/
|
|
721
874
|
task: RouteActionTask;
|
|
875
|
+
/**
|
|
876
|
+
* Indicates whether the action should be run only once, regardless of how many times the conditions are met.
|
|
877
|
+
* @public
|
|
878
|
+
*/
|
|
879
|
+
once?: boolean | undefined;
|
|
722
880
|
}
|
|
723
881
|
/**
|
|
724
882
|
* @public
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-kite-client",
|
|
3
3
|
"description": "@wildix/xbees-kite-client client",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.20",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|