@wildix/xbees-kite-client 1.0.22 → 1.1.0

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.
@@ -156,6 +156,8 @@ exports.ChannelWhatsAppStatus = {
156
156
  var Element;
157
157
  (function (Element) {
158
158
  Element.visit = (value, visitor) => {
159
+ if (value.template !== undefined)
160
+ return visitor.template(value.template);
159
161
  if (value.actions !== undefined)
160
162
  return visitor.actions(value.actions);
161
163
  return visitor._(value.$unknown[0], value.$unknown[1]);
@@ -38,7 +38,6 @@ const se_CreateOrUpdateWidgetPreviewCommand = async (input, context) => {
38
38
  'actions': _ => (0, smithy_client_1._json)(_),
39
39
  'appearance': _ => (0, smithy_client_1._json)(_),
40
40
  'name': [],
41
- 'reassign': [],
42
41
  'routes': _ => se_WidgetRoutesList(_, context),
43
42
  'target': _ => (0, smithy_client_1._json)(_),
44
43
  'temporaryWidgetId': [],
@@ -65,7 +64,6 @@ const se_CreateWidgetCommand = async (input, context) => {
65
64
  'actions': _ => (0, smithy_client_1._json)(_),
66
65
  'appearance': _ => (0, smithy_client_1._json)(_),
67
66
  'name': [],
68
- 'reassign': [],
69
67
  'routes': _ => se_WidgetRoutesList(_, context),
70
68
  'target': _ => (0, smithy_client_1._json)(_),
71
69
  'welcomeMessages': _ => (0, smithy_client_1._json)(_),
@@ -308,7 +306,6 @@ const se_PutSmsNumberConfigurationCommand = async (input, context) => {
308
306
  let body;
309
307
  body = JSON.stringify((0, smithy_client_1.take)(input, {
310
308
  'actions': _ => (0, smithy_client_1._json)(_),
311
- 'reassign': [],
312
309
  'routes': _ => (0, smithy_client_1._json)(_),
313
310
  'serviceUri': [],
314
311
  'target': _ => (0, smithy_client_1._json)(_),
@@ -333,7 +330,6 @@ const se_PutWhatsAppNumberConfigurationCommand = async (input, context) => {
333
330
  let body;
334
331
  body = JSON.stringify((0, smithy_client_1.take)(input, {
335
332
  'actions': _ => (0, smithy_client_1._json)(_),
336
- 'reassign': [],
337
333
  'routes': _ => (0, smithy_client_1._json)(_),
338
334
  'serviceUri': [],
339
335
  'target': _ => (0, smithy_client_1._json)(_),
@@ -407,7 +403,6 @@ const se_UpdateWidgetCommand = async (input, context) => {
407
403
  'actions': _ => (0, smithy_client_1._json)(_),
408
404
  'appearance': _ => (0, smithy_client_1._json)(_),
409
405
  'name': [],
410
- 'reassign': [],
411
406
  'routes': _ => se_WidgetRoutesList(_, context),
412
407
  'target': _ => (0, smithy_client_1._json)(_),
413
408
  'welcomeMessages': _ => (0, smithy_client_1._json)(_),
@@ -911,7 +906,6 @@ const de_Widget = (output, context) => {
911
906
  'createdAt': smithy_client_1.expectString,
912
907
  'id': smithy_client_1.expectString,
913
908
  'name': smithy_client_1.expectString,
914
- 'reassign': smithy_client_1.expectBoolean,
915
909
  'routes': (_) => de_WidgetRoutesList(_, context),
916
910
  'target': (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
917
911
  'updatedAt': smithy_client_1.expectString,
@@ -148,6 +148,8 @@ export const ChannelWhatsAppStatus = {
148
148
  export var Element;
149
149
  (function (Element) {
150
150
  Element.visit = (value, visitor) => {
151
+ if (value.template !== undefined)
152
+ return visitor.template(value.template);
151
153
  if (value.actions !== undefined)
152
154
  return visitor.actions(value.actions);
153
155
  return visitor._(value.$unknown[0], value.$unknown[1]);
@@ -2,7 +2,7 @@ import { KiteServiceException as __BaseException } from "../models/KiteServiceEx
2
2
  import { ChannelNotFoundException, EventNotFoundException, ForbiddenException, NotFoundException, RateLimitExceededException, TargetNotFoundException, ValidationException, WidgetNotFoundException, } from "../models/models_0";
3
3
  import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
4
4
  import { requestBuilder as rb } from "@smithy/core";
5
- import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, strictParseInt32 as __strictParseInt32, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
5
+ import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, strictParseInt32 as __strictParseInt32, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
6
6
  export const se_CancelCalendarEventCommand = async (input, context) => {
7
7
  const b = rb(input, context);
8
8
  const headers = {};
@@ -34,7 +34,6 @@ export const se_CreateOrUpdateWidgetPreviewCommand = async (input, context) => {
34
34
  'actions': _ => _json(_),
35
35
  'appearance': _ => _json(_),
36
36
  'name': [],
37
- 'reassign': [],
38
37
  'routes': _ => se_WidgetRoutesList(_, context),
39
38
  'target': _ => _json(_),
40
39
  'temporaryWidgetId': [],
@@ -60,7 +59,6 @@ export const se_CreateWidgetCommand = async (input, context) => {
60
59
  'actions': _ => _json(_),
61
60
  'appearance': _ => _json(_),
62
61
  'name': [],
63
- 'reassign': [],
64
62
  'routes': _ => se_WidgetRoutesList(_, context),
65
63
  'target': _ => _json(_),
66
64
  'welcomeMessages': _ => _json(_),
@@ -288,7 +286,6 @@ export const se_PutSmsNumberConfigurationCommand = async (input, context) => {
288
286
  let body;
289
287
  body = JSON.stringify(take(input, {
290
288
  'actions': _ => _json(_),
291
- 'reassign': [],
292
289
  'routes': _ => _json(_),
293
290
  'serviceUri': [],
294
291
  'target': _ => _json(_),
@@ -312,7 +309,6 @@ export const se_PutWhatsAppNumberConfigurationCommand = async (input, context) =
312
309
  let body;
313
310
  body = JSON.stringify(take(input, {
314
311
  'actions': _ => _json(_),
315
- 'reassign': [],
316
312
  'routes': _ => _json(_),
317
313
  'serviceUri': [],
318
314
  'target': _ => _json(_),
@@ -383,7 +379,6 @@ export const se_UpdateWidgetCommand = async (input, context) => {
383
379
  'actions': _ => _json(_),
384
380
  'appearance': _ => _json(_),
385
381
  'name': [],
386
- 'reassign': [],
387
382
  'routes': _ => se_WidgetRoutesList(_, context),
388
383
  'target': _ => _json(_),
389
384
  'welcomeMessages': _ => _json(_),
@@ -864,7 +859,6 @@ const de_Widget = (output, context) => {
864
859
  'createdAt': __expectString,
865
860
  'id': __expectString,
866
861
  'name': __expectString,
867
- 'reassign': __expectBoolean,
868
862
  'routes': (_) => de_WidgetRoutesList(_, context),
869
863
  'target': (_) => _json(__expectUnion(_)),
870
864
  'updatedAt': __expectString,
@@ -108,6 +108,8 @@ declare const CancelCalendarEventCommand_base: {
108
108
  * // whatsappStatus: "24h_channel_closed",
109
109
  * // broadcast: true || false,
110
110
  * // external: true || false,
111
+ * // autoRecord: true || false,
112
+ * // transcriptionLanguage: "STRING_VALUE",
111
113
  * // channelId: "STRING_VALUE", // required
112
114
  * // channelType: "direct" || "group", // required
113
115
  * // memberCount: Number("int"), // required
@@ -65,6 +65,17 @@ declare const CreateOrUpdateWidgetPreviewCommand_base: {
65
65
  * text: "STRING_VALUE",
66
66
  * elements: [ // ElementsList
67
67
  * { // Element Union: only one key present
68
+ * template: { // MessageTemplateConfig
69
+ * whatsapp: { // TemplateWithParameters
70
+ * name: "STRING_VALUE", // required
71
+ * parameters: [ // ListTemplateParameter // required
72
+ * { // TemplateParameter
73
+ * name: "STRING_VALUE", // required
74
+ * value: "STRING_VALUE", // required
75
+ * },
76
+ * ],
77
+ * },
78
+ * },
68
79
  * actions: [ // ActionsElementsList
69
80
  * { // ActionElement Union: only one key present
70
81
  * button: { // ButtonElement
@@ -167,6 +178,17 @@ declare const CreateOrUpdateWidgetPreviewCommand_base: {
167
178
  * text: "STRING_VALUE",
168
179
  * elements: [
169
180
  * {// Union: only one key present
181
+ * template: {
182
+ * whatsapp: {
183
+ * name: "STRING_VALUE", // required
184
+ * parameters: [ // required
185
+ * {
186
+ * name: "STRING_VALUE", // required
187
+ * value: "STRING_VALUE", // required
188
+ * },
189
+ * ],
190
+ * },
191
+ * },
170
192
  * actions: [
171
193
  * {// Union: only one key present
172
194
  * button: {
@@ -205,7 +227,6 @@ declare const CreateOrUpdateWidgetPreviewCommand_base: {
205
227
  * id: "STRING_VALUE", // required
206
228
  * },
207
229
  * },
208
- * reassign: true || false,
209
230
  * actions: [
210
231
  * {
211
232
  * id: "STRING_VALUE", // required
@@ -301,6 +322,17 @@ declare const CreateOrUpdateWidgetPreviewCommand_base: {
301
322
  * // text: "STRING_VALUE",
302
323
  * // elements: [ // ElementsList
303
324
  * // { // Element Union: only one key present
325
+ * // template: { // MessageTemplateConfig
326
+ * // whatsapp: { // TemplateWithParameters
327
+ * // name: "STRING_VALUE", // required
328
+ * // parameters: [ // ListTemplateParameter // required
329
+ * // { // TemplateParameter
330
+ * // name: "STRING_VALUE", // required
331
+ * // value: "STRING_VALUE", // required
332
+ * // },
333
+ * // ],
334
+ * // },
335
+ * // },
304
336
  * // actions: [ // ActionsElementsList
305
337
  * // { // ActionElement Union: only one key present
306
338
  * // button: { // ButtonElement
@@ -403,6 +435,17 @@ declare const CreateOrUpdateWidgetPreviewCommand_base: {
403
435
  * // text: "STRING_VALUE",
404
436
  * // elements: [
405
437
  * // {// Union: only one key present
438
+ * // template: {
439
+ * // whatsapp: {
440
+ * // name: "STRING_VALUE", // required
441
+ * // parameters: [ // required
442
+ * // {
443
+ * // name: "STRING_VALUE", // required
444
+ * // value: "STRING_VALUE", // required
445
+ * // },
446
+ * // ],
447
+ * // },
448
+ * // },
406
449
  * // actions: [
407
450
  * // {// Union: only one key present
408
451
  * // button: {
@@ -441,7 +484,6 @@ declare const CreateOrUpdateWidgetPreviewCommand_base: {
441
484
  * // id: "STRING_VALUE", // required
442
485
  * // },
443
486
  * // },
444
- * // reassign: true || false,
445
487
  * // actions: [
446
488
  * // {
447
489
  * // id: "STRING_VALUE", // required
@@ -65,6 +65,17 @@ declare const CreateWidgetCommand_base: {
65
65
  * text: "STRING_VALUE",
66
66
  * elements: [ // ElementsList
67
67
  * { // Element Union: only one key present
68
+ * template: { // MessageTemplateConfig
69
+ * whatsapp: { // TemplateWithParameters
70
+ * name: "STRING_VALUE", // required
71
+ * parameters: [ // ListTemplateParameter // required
72
+ * { // TemplateParameter
73
+ * name: "STRING_VALUE", // required
74
+ * value: "STRING_VALUE", // required
75
+ * },
76
+ * ],
77
+ * },
78
+ * },
68
79
  * actions: [ // ActionsElementsList
69
80
  * { // ActionElement Union: only one key present
70
81
  * button: { // ButtonElement
@@ -167,6 +178,17 @@ declare const CreateWidgetCommand_base: {
167
178
  * text: "STRING_VALUE",
168
179
  * elements: [
169
180
  * {// Union: only one key present
181
+ * template: {
182
+ * whatsapp: {
183
+ * name: "STRING_VALUE", // required
184
+ * parameters: [ // required
185
+ * {
186
+ * name: "STRING_VALUE", // required
187
+ * value: "STRING_VALUE", // required
188
+ * },
189
+ * ],
190
+ * },
191
+ * },
170
192
  * actions: [
171
193
  * {// Union: only one key present
172
194
  * button: {
@@ -205,7 +227,6 @@ declare const CreateWidgetCommand_base: {
205
227
  * id: "STRING_VALUE", // required
206
228
  * },
207
229
  * },
208
- * reassign: true || false,
209
230
  * actions: [
210
231
  * {
211
232
  * id: "STRING_VALUE", // required
@@ -300,6 +321,17 @@ declare const CreateWidgetCommand_base: {
300
321
  * // text: "STRING_VALUE",
301
322
  * // elements: [ // ElementsList
302
323
  * // { // Element Union: only one key present
324
+ * // template: { // MessageTemplateConfig
325
+ * // whatsapp: { // TemplateWithParameters
326
+ * // name: "STRING_VALUE", // required
327
+ * // parameters: [ // ListTemplateParameter // required
328
+ * // { // TemplateParameter
329
+ * // name: "STRING_VALUE", // required
330
+ * // value: "STRING_VALUE", // required
331
+ * // },
332
+ * // ],
333
+ * // },
334
+ * // },
303
335
  * // actions: [ // ActionsElementsList
304
336
  * // { // ActionElement Union: only one key present
305
337
  * // button: { // ButtonElement
@@ -402,6 +434,17 @@ declare const CreateWidgetCommand_base: {
402
434
  * // text: "STRING_VALUE",
403
435
  * // elements: [
404
436
  * // {// Union: only one key present
437
+ * // template: {
438
+ * // whatsapp: {
439
+ * // name: "STRING_VALUE", // required
440
+ * // parameters: [ // required
441
+ * // {
442
+ * // name: "STRING_VALUE", // required
443
+ * // value: "STRING_VALUE", // required
444
+ * // },
445
+ * // ],
446
+ * // },
447
+ * // },
405
448
  * // actions: [
406
449
  * // {// Union: only one key present
407
450
  * // button: {
@@ -440,7 +483,6 @@ declare const CreateWidgetCommand_base: {
440
483
  * // id: "STRING_VALUE", // required
441
484
  * // },
442
485
  * // },
443
- * // reassign: true || false,
444
486
  * // actions: [
445
487
  * // {
446
488
  * // id: "STRING_VALUE", // required
@@ -44,6 +44,7 @@ declare const GetConfigCommand_base: {
44
44
  * // { // GetConfigOutput
45
45
  * // config: { // KiteConfig
46
46
  * // targetId: "STRING_VALUE", // required
47
+ * // company: "STRING_VALUE", // required
47
48
  * // targetRouteId: "STRING_VALUE",
48
49
  * // targetVariant: "group" || "direct", // required
49
50
  * // targetService: { // KiteTargetService
@@ -87,6 +88,17 @@ declare const GetConfigCommand_base: {
87
88
  * // text: "STRING_VALUE",
88
89
  * // elements: [ // ElementsList
89
90
  * // { // Element Union: only one key present
91
+ * // template: { // MessageTemplateConfig
92
+ * // whatsapp: { // TemplateWithParameters
93
+ * // name: "STRING_VALUE", // required
94
+ * // parameters: [ // ListTemplateParameter // required
95
+ * // { // TemplateParameter
96
+ * // name: "STRING_VALUE", // required
97
+ * // value: "STRING_VALUE", // required
98
+ * // },
99
+ * // ],
100
+ * // },
101
+ * // },
90
102
  * // actions: [ // ActionsElementsList
91
103
  * // { // ActionElement Union: only one key present
92
104
  * // button: { // ButtonElement
@@ -141,7 +141,6 @@ declare const GetSmsNumberConfigurationCommand_base: {
141
141
  * // id: "STRING_VALUE", // required
142
142
  * // },
143
143
  * // },
144
- * // reassign: true || false,
145
144
  * // actions: [
146
145
  * // {
147
146
  * // id: "STRING_VALUE", // required
@@ -141,7 +141,6 @@ declare const GetWhatsAppNumberConfigurationCommand_base: {
141
141
  * // id: "STRING_VALUE", // required
142
142
  * // },
143
143
  * // },
144
- * // reassign: true || false,
145
144
  * // actions: [
146
145
  * // {
147
146
  * // id: "STRING_VALUE", // required
@@ -71,6 +71,17 @@ declare const GetWidgetCommand_base: {
71
71
  * // text: "STRING_VALUE",
72
72
  * // elements: [ // ElementsList
73
73
  * // { // Element Union: only one key present
74
+ * // template: { // MessageTemplateConfig
75
+ * // whatsapp: { // TemplateWithParameters
76
+ * // name: "STRING_VALUE", // required
77
+ * // parameters: [ // ListTemplateParameter // required
78
+ * // { // TemplateParameter
79
+ * // name: "STRING_VALUE", // required
80
+ * // value: "STRING_VALUE", // required
81
+ * // },
82
+ * // ],
83
+ * // },
84
+ * // },
74
85
  * // actions: [ // ActionsElementsList
75
86
  * // { // ActionElement Union: only one key present
76
87
  * // button: { // ButtonElement
@@ -173,6 +184,17 @@ declare const GetWidgetCommand_base: {
173
184
  * // text: "STRING_VALUE",
174
185
  * // elements: [
175
186
  * // {// Union: only one key present
187
+ * // template: {
188
+ * // whatsapp: {
189
+ * // name: "STRING_VALUE", // required
190
+ * // parameters: [ // required
191
+ * // {
192
+ * // name: "STRING_VALUE", // required
193
+ * // value: "STRING_VALUE", // required
194
+ * // },
195
+ * // ],
196
+ * // },
197
+ * // },
176
198
  * // actions: [
177
199
  * // {// Union: only one key present
178
200
  * // button: {
@@ -211,7 +233,6 @@ declare const GetWidgetCommand_base: {
211
233
  * // id: "STRING_VALUE", // required
212
234
  * // },
213
235
  * // },
214
- * // reassign: true || false,
215
236
  * // actions: [
216
237
  * // {
217
238
  * // id: "STRING_VALUE", // required
@@ -141,7 +141,6 @@ declare const ListSmsConfigurationsCommand_base: {
141
141
  * // id: "STRING_VALUE", // required
142
142
  * // },
143
143
  * // },
144
- * // reassign: true || false,
145
144
  * // actions: [
146
145
  * // {
147
146
  * // id: "STRING_VALUE", // required
@@ -141,7 +141,6 @@ declare const ListWhatsAppConfigurationsCommand_base: {
141
141
  * // id: "STRING_VALUE", // required
142
142
  * // },
143
143
  * // },
144
- * // reassign: true || false,
145
144
  * // actions: [
146
145
  * // {
147
146
  * // id: "STRING_VALUE", // required
@@ -73,6 +73,17 @@ declare const ListWidgetsCommand_base: {
73
73
  * // text: "STRING_VALUE",
74
74
  * // elements: [ // ElementsList
75
75
  * // { // Element Union: only one key present
76
+ * // template: { // MessageTemplateConfig
77
+ * // whatsapp: { // TemplateWithParameters
78
+ * // name: "STRING_VALUE", // required
79
+ * // parameters: [ // ListTemplateParameter // required
80
+ * // { // TemplateParameter
81
+ * // name: "STRING_VALUE", // required
82
+ * // value: "STRING_VALUE", // required
83
+ * // },
84
+ * // ],
85
+ * // },
86
+ * // },
76
87
  * // actions: [ // ActionsElementsList
77
88
  * // { // ActionElement Union: only one key present
78
89
  * // button: { // ButtonElement
@@ -175,6 +186,17 @@ declare const ListWidgetsCommand_base: {
175
186
  * // text: "STRING_VALUE",
176
187
  * // elements: [
177
188
  * // {// Union: only one key present
189
+ * // template: {
190
+ * // whatsapp: {
191
+ * // name: "STRING_VALUE", // required
192
+ * // parameters: [ // required
193
+ * // {
194
+ * // name: "STRING_VALUE", // required
195
+ * // value: "STRING_VALUE", // required
196
+ * // },
197
+ * // ],
198
+ * // },
199
+ * // },
178
200
  * // actions: [
179
201
  * // {// Union: only one key present
180
202
  * // button: {
@@ -213,7 +235,6 @@ declare const ListWidgetsCommand_base: {
213
235
  * // id: "STRING_VALUE", // required
214
236
  * // },
215
237
  * // },
216
- * // reassign: true || false,
217
238
  * // actions: [
218
239
  * // {
219
240
  * // id: "STRING_VALUE", // required
@@ -134,7 +134,6 @@ declare const PutSmsNumberConfigurationCommand_base: {
134
134
  * id: "STRING_VALUE", // required
135
135
  * },
136
136
  * },
137
- * reassign: true || false,
138
137
  * actions: [
139
138
  * {
140
139
  * id: "STRING_VALUE", // required
@@ -298,7 +297,6 @@ declare const PutSmsNumberConfigurationCommand_base: {
298
297
  * // id: "STRING_VALUE", // required
299
298
  * // },
300
299
  * // },
301
- * // reassign: true || false,
302
300
  * // actions: [
303
301
  * // {
304
302
  * // id: "STRING_VALUE", // required
@@ -134,7 +134,6 @@ declare const PutWhatsAppNumberConfigurationCommand_base: {
134
134
  * id: "STRING_VALUE", // required
135
135
  * },
136
136
  * },
137
- * reassign: true || false,
138
137
  * actions: [
139
138
  * {
140
139
  * id: "STRING_VALUE", // required
@@ -298,7 +297,6 @@ declare const PutWhatsAppNumberConfigurationCommand_base: {
298
297
  * // id: "STRING_VALUE", // required
299
298
  * // },
300
299
  * // },
301
- * // reassign: true || false,
302
300
  * // actions: [
303
301
  * // {
304
302
  * // id: "STRING_VALUE", // required
@@ -117,6 +117,8 @@ declare const RescheduleCalendarEventCommand_base: {
117
117
  * // whatsappStatus: "24h_channel_closed",
118
118
  * // broadcast: true || false,
119
119
  * // external: true || false,
120
+ * // autoRecord: true || false,
121
+ * // transcriptionLanguage: "STRING_VALUE",
120
122
  * // channelId: "STRING_VALUE", // required
121
123
  * // channelType: "direct" || "group", // required
122
124
  * // memberCount: Number("int"), // required
@@ -114,6 +114,8 @@ declare const ScheduleCalendarEventCommand_base: {
114
114
  * // whatsappStatus: "24h_channel_closed",
115
115
  * // broadcast: true || false,
116
116
  * // external: true || false,
117
+ * // autoRecord: true || false,
118
+ * // transcriptionLanguage: "STRING_VALUE",
117
119
  * // channelId: "STRING_VALUE", // required
118
120
  * // channelType: "direct" || "group", // required
119
121
  * // memberCount: Number("int"), // required
@@ -65,6 +65,17 @@ declare const UpdateWidgetCommand_base: {
65
65
  * text: "STRING_VALUE",
66
66
  * elements: [ // ElementsList
67
67
  * { // Element Union: only one key present
68
+ * template: { // MessageTemplateConfig
69
+ * whatsapp: { // TemplateWithParameters
70
+ * name: "STRING_VALUE", // required
71
+ * parameters: [ // ListTemplateParameter // required
72
+ * { // TemplateParameter
73
+ * name: "STRING_VALUE", // required
74
+ * value: "STRING_VALUE", // required
75
+ * },
76
+ * ],
77
+ * },
78
+ * },
68
79
  * actions: [ // ActionsElementsList
69
80
  * { // ActionElement Union: only one key present
70
81
  * button: { // ButtonElement
@@ -167,6 +178,17 @@ declare const UpdateWidgetCommand_base: {
167
178
  * text: "STRING_VALUE",
168
179
  * elements: [
169
180
  * {// Union: only one key present
181
+ * template: {
182
+ * whatsapp: {
183
+ * name: "STRING_VALUE", // required
184
+ * parameters: [ // required
185
+ * {
186
+ * name: "STRING_VALUE", // required
187
+ * value: "STRING_VALUE", // required
188
+ * },
189
+ * ],
190
+ * },
191
+ * },
170
192
  * actions: [
171
193
  * {// Union: only one key present
172
194
  * button: {
@@ -205,7 +227,6 @@ declare const UpdateWidgetCommand_base: {
205
227
  * id: "STRING_VALUE", // required
206
228
  * },
207
229
  * },
208
- * reassign: true || false,
209
230
  * actions: [
210
231
  * {
211
232
  * id: "STRING_VALUE", // required
@@ -301,6 +322,17 @@ declare const UpdateWidgetCommand_base: {
301
322
  * // text: "STRING_VALUE",
302
323
  * // elements: [ // ElementsList
303
324
  * // { // Element Union: only one key present
325
+ * // template: { // MessageTemplateConfig
326
+ * // whatsapp: { // TemplateWithParameters
327
+ * // name: "STRING_VALUE", // required
328
+ * // parameters: [ // ListTemplateParameter // required
329
+ * // { // TemplateParameter
330
+ * // name: "STRING_VALUE", // required
331
+ * // value: "STRING_VALUE", // required
332
+ * // },
333
+ * // ],
334
+ * // },
335
+ * // },
304
336
  * // actions: [ // ActionsElementsList
305
337
  * // { // ActionElement Union: only one key present
306
338
  * // button: { // ButtonElement
@@ -403,6 +435,17 @@ declare const UpdateWidgetCommand_base: {
403
435
  * // text: "STRING_VALUE",
404
436
  * // elements: [
405
437
  * // {// Union: only one key present
438
+ * // template: {
439
+ * // whatsapp: {
440
+ * // name: "STRING_VALUE", // required
441
+ * // parameters: [ // required
442
+ * // {
443
+ * // name: "STRING_VALUE", // required
444
+ * // value: "STRING_VALUE", // required
445
+ * // },
446
+ * // ],
447
+ * // },
448
+ * // },
406
449
  * // actions: [
407
450
  * // {// Union: only one key present
408
451
  * // button: {
@@ -441,7 +484,6 @@ declare const UpdateWidgetCommand_base: {
441
484
  * // id: "STRING_VALUE", // required
442
485
  * // },
443
486
  * // },
444
- * // reassign: true || false,
445
487
  * // actions: [
446
488
  * // {
447
489
  * // id: "STRING_VALUE", // required
@@ -193,6 +193,20 @@ export interface Template {
193
193
  subCategory?: string | undefined;
194
194
  id: string;
195
195
  }
196
+ /**
197
+ * @public
198
+ */
199
+ export interface TemplateParameter {
200
+ name: string;
201
+ value: string;
202
+ }
203
+ /**
204
+ * @public
205
+ */
206
+ export interface TemplateWithParameters {
207
+ name: string;
208
+ parameters: (TemplateParameter)[];
209
+ }
196
210
  /**
197
211
  * @public
198
212
  */
@@ -523,6 +537,8 @@ export interface Channel {
523
537
  whatsappStatus?: ChannelWhatsAppStatus | undefined;
524
538
  broadcast?: boolean | undefined;
525
539
  external?: boolean | undefined;
540
+ autoRecord?: boolean | undefined;
541
+ transcriptionLanguage?: string | undefined;
526
542
  channelId: string;
527
543
  channelType: ChannelType;
528
544
  memberCount: number;
@@ -533,12 +549,24 @@ export interface Channel {
533
549
  /**
534
550
  * @public
535
551
  */
536
- export type Element = Element.ActionsMember | Element.$UnknownMember;
552
+ export interface MessageTemplateConfig {
553
+ whatsapp?: TemplateWithParameters | undefined;
554
+ }
555
+ /**
556
+ * @public
557
+ */
558
+ export type Element = Element.ActionsMember | Element.TemplateMember | Element.$UnknownMember;
537
559
  /**
538
560
  * @public
539
561
  */
540
562
  export declare namespace Element {
563
+ interface TemplateMember {
564
+ template: MessageTemplateConfig;
565
+ actions?: never;
566
+ $unknown?: never;
567
+ }
541
568
  interface ActionsMember {
569
+ template?: never;
542
570
  actions: (ActionElement)[];
543
571
  $unknown?: never;
544
572
  }
@@ -546,10 +574,12 @@ export declare namespace Element {
546
574
  * @public
547
575
  */
548
576
  interface $UnknownMember {
577
+ template?: never;
549
578
  actions?: never;
550
579
  $unknown: [string, any];
551
580
  }
552
581
  interface Visitor<T> {
582
+ template: (value: MessageTemplateConfig) => T;
553
583
  actions: (value: (ActionElement)[]) => T;
554
584
  _: (name: string, value: any) => T;
555
585
  }
@@ -1140,11 +1170,6 @@ export interface CreateOrUpdateWidgetPreviewInput {
1140
1170
  * @public
1141
1171
  */
1142
1172
  target: WidgetTarget;
1143
- /**
1144
- * Determines whether the conversation should be assigned to the specified target and rules even if initially conversation have different target. If set to true, assignment will occur regardless of previously defined target. Defaults to false.
1145
- * @public
1146
- */
1147
- reassign?: boolean | undefined;
1148
1173
  /**
1149
1174
  * Actions that will be used if the specified route and the conditions within a specific action are met.
1150
1175
  * @public
@@ -1182,11 +1207,6 @@ export interface Widget {
1182
1207
  * @public
1183
1208
  */
1184
1209
  target: WidgetTarget;
1185
- /**
1186
- * Determines whether the conversation should be assigned to the specified target and rules even if initially conversation have different target. If set to true, assignment will occur regardless of previously defined target. Defaults to false.
1187
- * @public
1188
- */
1189
- reassign?: boolean | undefined;
1190
1210
  /**
1191
1211
  * Actions that will be used if the specified route and the conditions within a specific action are met.
1192
1212
  * @public
@@ -1228,11 +1248,6 @@ export interface CreateWidgetInput {
1228
1248
  * @public
1229
1249
  */
1230
1250
  target: WidgetTarget;
1231
- /**
1232
- * Determines whether the conversation should be assigned to the specified target and rules even if initially conversation have different target. If set to true, assignment will occur regardless of previously defined target. Defaults to false.
1233
- * @public
1234
- */
1235
- reassign?: boolean | undefined;
1236
1251
  /**
1237
1252
  * Actions that will be used if the specified route and the conditions within a specific action are met.
1238
1253
  * @public
@@ -1351,6 +1366,11 @@ export interface KiteConfig {
1351
1366
  * @public
1352
1367
  */
1353
1368
  targetId: string;
1369
+ /**
1370
+ * The unique identifier of the organization widget belongs to (example: it_w119845).
1371
+ * @public
1372
+ */
1373
+ company: string;
1354
1374
  /**
1355
1375
  * The unique identifier of the route for time-based configuration.
1356
1376
  * @public
@@ -1556,11 +1576,6 @@ export interface SmsConfig {
1556
1576
  * @public
1557
1577
  */
1558
1578
  target: RouteTarget;
1559
- /**
1560
- * Determines whether the conversation should be assigned to the specified target and rules even if initially conversation have different target. If set to true, assignment will occur regardless of previously defined target. Defaults to false.
1561
- * @public
1562
- */
1563
- reassign?: boolean | undefined;
1564
1579
  /**
1565
1580
  * Actions that will be used if the specified route and the conditions within a specific action are met.
1566
1581
  * @public
@@ -1624,11 +1639,6 @@ export interface WhatsAppConfig {
1624
1639
  * @public
1625
1640
  */
1626
1641
  target: RouteTarget;
1627
- /**
1628
- * Determines whether the conversation should be assigned to the specified target and rules even if initially conversation have different target. If set to true, assignment will occur regardless of previously defined target. Defaults to false.
1629
- * @public
1630
- */
1631
- reassign?: boolean | undefined;
1632
1642
  /**
1633
1643
  * Actions that will be used if the specified route and the conditions within a specific action are met.
1634
1644
  * @public
@@ -1910,11 +1920,6 @@ export interface PutSmsNumberConfigurationInput {
1910
1920
  * @public
1911
1921
  */
1912
1922
  target: RouteTarget;
1913
- /**
1914
- * Determines whether the conversation should be assigned to the specified target and rules even if initially conversation have different target. If set to true, assignment will occur regardless of previously defined target. Defaults to false.
1915
- * @public
1916
- */
1917
- reassign?: boolean | undefined;
1918
1923
  /**
1919
1924
  * Actions that will be used if the specified route and the conditions within a specific action are met.
1920
1925
  * @public
@@ -1952,11 +1957,6 @@ export interface PutWhatsAppNumberConfigurationInput {
1952
1957
  * @public
1953
1958
  */
1954
1959
  target: RouteTarget;
1955
- /**
1956
- * Determines whether the conversation should be assigned to the specified target and rules even if initially conversation have different target. If set to true, assignment will occur regardless of previously defined target. Defaults to false.
1957
- * @public
1958
- */
1959
- reassign?: boolean | undefined;
1960
1960
  /**
1961
1961
  * Actions that will be used if the specified route and the conditions within a specific action are met.
1962
1962
  * @public
@@ -2057,11 +2057,6 @@ export interface UpdateWidgetInput {
2057
2057
  * @public
2058
2058
  */
2059
2059
  target: WidgetTarget;
2060
- /**
2061
- * Determines whether the conversation should be assigned to the specified target and rules even if initially conversation have different target. If set to true, assignment will occur regardless of previously defined target. Defaults to false.
2062
- * @public
2063
- */
2064
- reassign?: boolean | undefined;
2065
2060
  /**
2066
2061
  * Actions that will be used if the specified route and the conditions within a specific action are met.
2067
2062
  * @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.22",
4
+ "version": "1.1.0",
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",