@wildix/xbees-kite-client 1.2.0 → 1.2.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.
@@ -1,46 +1,33 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListAgentsFilter = exports.WidgetNotFoundException = exports.RouteTarget = exports.RouteRule = exports.KiteVariant = exports.KiteFeatures = exports.EventNotFoundException = exports.WidgetTarget = exports.WidgetRouteRule = exports.RouteTimeFrameDay = exports.RouteActionTask = exports.RouteActionCondition = exports.TargetNotFoundException = exports.Element = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelAccess = exports.ChannelNotFoundException = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChannelType = exports.TemplateStatus = exports.ParameterFormat = exports.ComponentType = exports.ComponentFormat = exports.TemplateCategory = exports.ButtonType = exports.RateLimitExceededException = exports.ForbiddenException = exports.ValidationException = exports.NotFoundException = void 0;
3
+ exports.ListAgentsFilter = exports.WidgetNotFoundException = exports.RouteTarget = exports.RouteRule = exports.KiteVariant = exports.KiteFeatures = exports.EventNotFoundException = exports.WidgetTarget = exports.WidgetRouteRule = exports.RouteTimeFrameDay = exports.RouteActionTask = exports.RouteActionCondition = exports.TargetNotFoundException = exports.ChannelNotFoundException = exports.Element = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.TemplateStatus = exports.ParameterFormat = exports.ComponentType = exports.ComponentFormat = exports.TemplateCategory = exports.ButtonType = exports.ValidationException = exports.RateLimitExceededException = exports.NotFoundException = exports.ForbiddenException = void 0;
4
4
  const KiteServiceException_1 = require("./KiteServiceException");
5
- class NotFoundException extends KiteServiceException_1.KiteServiceException {
6
- name = "NotFoundException";
7
- $fault = "client";
8
- constructor(opts) {
9
- super({
10
- name: "NotFoundException",
11
- $fault: "client",
12
- ...opts
13
- });
14
- Object.setPrototypeOf(this, NotFoundException.prototype);
15
- }
16
- }
17
- exports.NotFoundException = NotFoundException;
18
- class ValidationException extends KiteServiceException_1.KiteServiceException {
19
- name = "ValidationException";
5
+ class ForbiddenException extends KiteServiceException_1.KiteServiceException {
6
+ name = "ForbiddenException";
20
7
  $fault = "client";
21
8
  constructor(opts) {
22
9
  super({
23
- name: "ValidationException",
10
+ name: "ForbiddenException",
24
11
  $fault: "client",
25
12
  ...opts
26
13
  });
27
- Object.setPrototypeOf(this, ValidationException.prototype);
14
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
28
15
  }
29
16
  }
30
- exports.ValidationException = ValidationException;
31
- class ForbiddenException extends KiteServiceException_1.KiteServiceException {
32
- name = "ForbiddenException";
17
+ exports.ForbiddenException = ForbiddenException;
18
+ class NotFoundException extends KiteServiceException_1.KiteServiceException {
19
+ name = "NotFoundException";
33
20
  $fault = "client";
34
21
  constructor(opts) {
35
22
  super({
36
- name: "ForbiddenException",
23
+ name: "NotFoundException",
37
24
  $fault: "client",
38
25
  ...opts
39
26
  });
40
- Object.setPrototypeOf(this, ForbiddenException.prototype);
27
+ Object.setPrototypeOf(this, NotFoundException.prototype);
41
28
  }
42
29
  }
43
- exports.ForbiddenException = ForbiddenException;
30
+ exports.NotFoundException = NotFoundException;
44
31
  class RateLimitExceededException extends KiteServiceException_1.KiteServiceException {
45
32
  name = "RateLimitExceededException";
46
33
  $fault = "client";
@@ -62,6 +49,19 @@ class RateLimitExceededException extends KiteServiceException_1.KiteServiceExcep
62
49
  }
63
50
  }
64
51
  exports.RateLimitExceededException = RateLimitExceededException;
52
+ class ValidationException extends KiteServiceException_1.KiteServiceException {
53
+ name = "ValidationException";
54
+ $fault = "client";
55
+ constructor(opts) {
56
+ super({
57
+ name: "ValidationException",
58
+ $fault: "client",
59
+ ...opts
60
+ });
61
+ Object.setPrototypeOf(this, ValidationException.prototype);
62
+ }
63
+ }
64
+ exports.ValidationException = ValidationException;
65
65
  exports.ButtonType = {
66
66
  APP: "APP",
67
67
  CATALOG: "CATALOG",
@@ -96,10 +96,26 @@ exports.TemplateStatus = {
96
96
  PAUSED: "PAUSED",
97
97
  REJECTED: "REJECTED",
98
98
  };
99
+ exports.ChannelAccess = {
100
+ PRIVATE: "private",
101
+ PUBLIC: "public",
102
+ };
99
103
  exports.ChannelType = {
100
104
  DIRECT: "direct",
101
105
  GROUP: "group",
102
106
  };
107
+ exports.ChannelContextEventAttendeeStatus = {
108
+ ACCEPTED: "accepted",
109
+ DECLINED: "declined",
110
+ NONE: "none",
111
+ TENTATIVE: "tentative",
112
+ };
113
+ exports.ChannelContextSource = {
114
+ KITE: "kite",
115
+ };
116
+ exports.ChannelWhatsAppStatus = {
117
+ CHANNEL_CLOSED: "24h_channel_closed",
118
+ };
103
119
  var ButtonHandler;
104
120
  (function (ButtonHandler) {
105
121
  ButtonHandler.visit = (value, visitor) => {
@@ -124,6 +140,16 @@ var ActionElement;
124
140
  return visitor._(value.$unknown[0], value.$unknown[1]);
125
141
  };
126
142
  })(ActionElement || (exports.ActionElement = ActionElement = {}));
143
+ var Element;
144
+ (function (Element) {
145
+ Element.visit = (value, visitor) => {
146
+ if (value.template !== undefined)
147
+ return visitor.template(value.template);
148
+ if (value.actions !== undefined)
149
+ return visitor.actions(value.actions);
150
+ return visitor._(value.$unknown[0], value.$unknown[1]);
151
+ };
152
+ })(Element || (exports.Element = Element = {}));
127
153
  class ChannelNotFoundException extends KiteServiceException_1.KiteServiceException {
128
154
  name = "ChannelNotFoundException";
129
155
  $fault = "client";
@@ -137,32 +163,6 @@ class ChannelNotFoundException extends KiteServiceException_1.KiteServiceExcepti
137
163
  }
138
164
  }
139
165
  exports.ChannelNotFoundException = ChannelNotFoundException;
140
- exports.ChannelAccess = {
141
- PRIVATE: "private",
142
- PUBLIC: "public",
143
- };
144
- exports.ChannelContextEventAttendeeStatus = {
145
- ACCEPTED: "accepted",
146
- DECLINED: "declined",
147
- NONE: "none",
148
- TENTATIVE: "tentative",
149
- };
150
- exports.ChannelContextSource = {
151
- KITE: "kite",
152
- };
153
- exports.ChannelWhatsAppStatus = {
154
- CHANNEL_CLOSED: "24h_channel_closed",
155
- };
156
- var Element;
157
- (function (Element) {
158
- Element.visit = (value, visitor) => {
159
- if (value.template !== undefined)
160
- return visitor.template(value.template);
161
- if (value.actions !== undefined)
162
- return visitor.actions(value.actions);
163
- return visitor._(value.$unknown[0], value.$unknown[1]);
164
- };
165
- })(Element || (exports.Element = Element = {}));
166
166
  class TargetNotFoundException extends KiteServiceException_1.KiteServiceException {
167
167
  name = "TargetNotFoundException";
168
168
  $fault = "client";
@@ -36,6 +36,7 @@ const se_CreateOrUpdateWidgetPreviewCommand = async (input, context) => {
36
36
  let body;
37
37
  body = JSON.stringify((0, smithy_client_1.take)(input, {
38
38
  'actions': _ => (0, smithy_client_1._json)(_),
39
+ 'anonymousSessionsEnabled': [],
39
40
  'appearance': _ => (0, smithy_client_1._json)(_),
40
41
  'name': [],
41
42
  'routes': _ => se_WidgetRoutesList(_, context),
@@ -62,6 +63,7 @@ const se_CreateWidgetCommand = async (input, context) => {
62
63
  let body;
63
64
  body = JSON.stringify((0, smithy_client_1.take)(input, {
64
65
  'actions': _ => (0, smithy_client_1._json)(_),
66
+ 'anonymousSessionsEnabled': [],
65
67
  'appearance': _ => (0, smithy_client_1._json)(_),
66
68
  'name': [],
67
69
  'routes': _ => se_WidgetRoutesList(_, context),
@@ -401,6 +403,7 @@ const se_UpdateWidgetCommand = async (input, context) => {
401
403
  let body;
402
404
  body = JSON.stringify((0, smithy_client_1.take)(input, {
403
405
  'actions': _ => (0, smithy_client_1._json)(_),
406
+ 'anonymousSessionsEnabled': [],
404
407
  'appearance': _ => (0, smithy_client_1._json)(_),
405
408
  'name': [],
406
409
  'routes': _ => se_WidgetRoutesList(_, context),
@@ -901,6 +904,7 @@ const se_WidgetRoutesList = (input, context) => {
901
904
  const de_Widget = (output, context) => {
902
905
  return (0, smithy_client_1.take)(output, {
903
906
  'actions': smithy_client_1._json,
907
+ 'anonymousSessionsEnabled': smithy_client_1.expectBoolean,
904
908
  'appearance': smithy_client_1._json,
905
909
  'company': smithy_client_1.expectString,
906
910
  'createdAt': smithy_client_1.expectString,
@@ -1,38 +1,26 @@
1
1
  import { KiteServiceException as __BaseException } from "./KiteServiceException";
2
- export class NotFoundException extends __BaseException {
3
- name = "NotFoundException";
4
- $fault = "client";
5
- constructor(opts) {
6
- super({
7
- name: "NotFoundException",
8
- $fault: "client",
9
- ...opts
10
- });
11
- Object.setPrototypeOf(this, NotFoundException.prototype);
12
- }
13
- }
14
- export class ValidationException extends __BaseException {
15
- name = "ValidationException";
2
+ export class ForbiddenException extends __BaseException {
3
+ name = "ForbiddenException";
16
4
  $fault = "client";
17
5
  constructor(opts) {
18
6
  super({
19
- name: "ValidationException",
7
+ name: "ForbiddenException",
20
8
  $fault: "client",
21
9
  ...opts
22
10
  });
23
- Object.setPrototypeOf(this, ValidationException.prototype);
11
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
24
12
  }
25
13
  }
26
- export class ForbiddenException extends __BaseException {
27
- name = "ForbiddenException";
14
+ export class NotFoundException extends __BaseException {
15
+ name = "NotFoundException";
28
16
  $fault = "client";
29
17
  constructor(opts) {
30
18
  super({
31
- name: "ForbiddenException",
19
+ name: "NotFoundException",
32
20
  $fault: "client",
33
21
  ...opts
34
22
  });
35
- Object.setPrototypeOf(this, ForbiddenException.prototype);
23
+ Object.setPrototypeOf(this, NotFoundException.prototype);
36
24
  }
37
25
  }
38
26
  export class RateLimitExceededException extends __BaseException {
@@ -55,6 +43,18 @@ export class RateLimitExceededException extends __BaseException {
55
43
  this.retryAfter = opts.retryAfter;
56
44
  }
57
45
  }
46
+ export class ValidationException extends __BaseException {
47
+ name = "ValidationException";
48
+ $fault = "client";
49
+ constructor(opts) {
50
+ super({
51
+ name: "ValidationException",
52
+ $fault: "client",
53
+ ...opts
54
+ });
55
+ Object.setPrototypeOf(this, ValidationException.prototype);
56
+ }
57
+ }
58
58
  export const ButtonType = {
59
59
  APP: "APP",
60
60
  CATALOG: "CATALOG",
@@ -89,10 +89,26 @@ export const TemplateStatus = {
89
89
  PAUSED: "PAUSED",
90
90
  REJECTED: "REJECTED",
91
91
  };
92
+ export const ChannelAccess = {
93
+ PRIVATE: "private",
94
+ PUBLIC: "public",
95
+ };
92
96
  export const ChannelType = {
93
97
  DIRECT: "direct",
94
98
  GROUP: "group",
95
99
  };
100
+ export const ChannelContextEventAttendeeStatus = {
101
+ ACCEPTED: "accepted",
102
+ DECLINED: "declined",
103
+ NONE: "none",
104
+ TENTATIVE: "tentative",
105
+ };
106
+ export const ChannelContextSource = {
107
+ KITE: "kite",
108
+ };
109
+ export const ChannelWhatsAppStatus = {
110
+ CHANNEL_CLOSED: "24h_channel_closed",
111
+ };
96
112
  export var ButtonHandler;
97
113
  (function (ButtonHandler) {
98
114
  ButtonHandler.visit = (value, visitor) => {
@@ -117,6 +133,16 @@ export var ActionElement;
117
133
  return visitor._(value.$unknown[0], value.$unknown[1]);
118
134
  };
119
135
  })(ActionElement || (ActionElement = {}));
136
+ export var Element;
137
+ (function (Element) {
138
+ Element.visit = (value, visitor) => {
139
+ if (value.template !== undefined)
140
+ return visitor.template(value.template);
141
+ if (value.actions !== undefined)
142
+ return visitor.actions(value.actions);
143
+ return visitor._(value.$unknown[0], value.$unknown[1]);
144
+ };
145
+ })(Element || (Element = {}));
120
146
  export class ChannelNotFoundException extends __BaseException {
121
147
  name = "ChannelNotFoundException";
122
148
  $fault = "client";
@@ -129,32 +155,6 @@ export class ChannelNotFoundException extends __BaseException {
129
155
  Object.setPrototypeOf(this, ChannelNotFoundException.prototype);
130
156
  }
131
157
  }
132
- export const ChannelAccess = {
133
- PRIVATE: "private",
134
- PUBLIC: "public",
135
- };
136
- export const ChannelContextEventAttendeeStatus = {
137
- ACCEPTED: "accepted",
138
- DECLINED: "declined",
139
- NONE: "none",
140
- TENTATIVE: "tentative",
141
- };
142
- export const ChannelContextSource = {
143
- KITE: "kite",
144
- };
145
- export const ChannelWhatsAppStatus = {
146
- CHANNEL_CLOSED: "24h_channel_closed",
147
- };
148
- export var Element;
149
- (function (Element) {
150
- Element.visit = (value, visitor) => {
151
- if (value.template !== undefined)
152
- return visitor.template(value.template);
153
- if (value.actions !== undefined)
154
- return visitor.actions(value.actions);
155
- return visitor._(value.$unknown[0], value.$unknown[1]);
156
- };
157
- })(Element || (Element = {}));
158
158
  export class TargetNotFoundException extends __BaseException {
159
159
  name = "TargetNotFoundException";
160
160
  $fault = "client";
@@ -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, 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, expectBoolean as __expectBoolean, 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 = {};
@@ -32,6 +32,7 @@ export const se_CreateOrUpdateWidgetPreviewCommand = async (input, context) => {
32
32
  let body;
33
33
  body = JSON.stringify(take(input, {
34
34
  'actions': _ => _json(_),
35
+ 'anonymousSessionsEnabled': [],
35
36
  'appearance': _ => _json(_),
36
37
  'name': [],
37
38
  'routes': _ => se_WidgetRoutesList(_, context),
@@ -57,6 +58,7 @@ export const se_CreateWidgetCommand = async (input, context) => {
57
58
  let body;
58
59
  body = JSON.stringify(take(input, {
59
60
  'actions': _ => _json(_),
61
+ 'anonymousSessionsEnabled': [],
60
62
  'appearance': _ => _json(_),
61
63
  'name': [],
62
64
  'routes': _ => se_WidgetRoutesList(_, context),
@@ -377,6 +379,7 @@ export const se_UpdateWidgetCommand = async (input, context) => {
377
379
  let body;
378
380
  body = JSON.stringify(take(input, {
379
381
  'actions': _ => _json(_),
382
+ 'anonymousSessionsEnabled': [],
380
383
  'appearance': _ => _json(_),
381
384
  'name': [],
382
385
  'routes': _ => se_WidgetRoutesList(_, context),
@@ -854,6 +857,7 @@ const se_WidgetRoutesList = (input, context) => {
854
857
  const de_Widget = (output, context) => {
855
858
  return take(output, {
856
859
  'actions': _json,
860
+ 'anonymousSessionsEnabled': __expectBoolean,
857
861
  'appearance': _json,
858
862
  'company': __expectString,
859
863
  'createdAt': __expectString,
@@ -97,6 +97,7 @@ declare const CancelCalendarEventCommand_base: {
97
97
  * // pbxExtension: "STRING_VALUE",
98
98
  * // pbxSerial: "STRING_VALUE",
99
99
  * // pbxUserId: "STRING_VALUE",
100
+ * // pbxGroupId: "STRING_VALUE",
100
101
  * // createdAt: "STRING_VALUE",
101
102
  * // updatedAt: "STRING_VALUE",
102
103
  * // },
@@ -109,6 +110,7 @@ declare const CancelCalendarEventCommand_base: {
109
110
  * // external: true || false,
110
111
  * // autoRecord: true || false,
111
112
  * // transcriptionLanguage: "STRING_VALUE",
113
+ * // wizyGuestViewOnly: true || false,
112
114
  * // channelId: "STRING_VALUE", // required
113
115
  * // channelType: "direct" || "group", // required
114
116
  * // memberCount: Number("int"), // required
@@ -68,7 +68,7 @@ declare const CreateOrUpdateWidgetPreviewCommand_base: {
68
68
  * template: { // MessageTemplateConfig
69
69
  * whatsapp: { // TemplateWithParameters
70
70
  * name: "STRING_VALUE", // required
71
- * parameters: [ // ListTemplateParameter // required
71
+ * parameters: [ // ListTemplateParameter
72
72
  * { // TemplateParameter
73
73
  * name: "STRING_VALUE", // required
74
74
  * value: "STRING_VALUE", // required
@@ -181,7 +181,7 @@ declare const CreateOrUpdateWidgetPreviewCommand_base: {
181
181
  * template: {
182
182
  * whatsapp: {
183
183
  * name: "STRING_VALUE", // required
184
- * parameters: [ // required
184
+ * parameters: [
185
185
  * {
186
186
  * name: "STRING_VALUE", // required
187
187
  * value: "STRING_VALUE", // required
@@ -227,6 +227,7 @@ declare const CreateOrUpdateWidgetPreviewCommand_base: {
227
227
  * id: "STRING_VALUE", // required
228
228
  * },
229
229
  * },
230
+ * anonymousSessionsEnabled: true || false,
230
231
  * actions: [
231
232
  * {
232
233
  * id: "STRING_VALUE", // required
@@ -325,7 +326,7 @@ declare const CreateOrUpdateWidgetPreviewCommand_base: {
325
326
  * // template: { // MessageTemplateConfig
326
327
  * // whatsapp: { // TemplateWithParameters
327
328
  * // name: "STRING_VALUE", // required
328
- * // parameters: [ // ListTemplateParameter // required
329
+ * // parameters: [ // ListTemplateParameter
329
330
  * // { // TemplateParameter
330
331
  * // name: "STRING_VALUE", // required
331
332
  * // value: "STRING_VALUE", // required
@@ -438,7 +439,7 @@ declare const CreateOrUpdateWidgetPreviewCommand_base: {
438
439
  * // template: {
439
440
  * // whatsapp: {
440
441
  * // name: "STRING_VALUE", // required
441
- * // parameters: [ // required
442
+ * // parameters: [
442
443
  * // {
443
444
  * // name: "STRING_VALUE", // required
444
445
  * // value: "STRING_VALUE", // required
@@ -484,6 +485,7 @@ declare const CreateOrUpdateWidgetPreviewCommand_base: {
484
485
  * // id: "STRING_VALUE", // required
485
486
  * // },
486
487
  * // },
488
+ * // anonymousSessionsEnabled: true || false,
487
489
  * // actions: [
488
490
  * // {
489
491
  * // id: "STRING_VALUE", // required
@@ -68,7 +68,7 @@ declare const CreateWidgetCommand_base: {
68
68
  * template: { // MessageTemplateConfig
69
69
  * whatsapp: { // TemplateWithParameters
70
70
  * name: "STRING_VALUE", // required
71
- * parameters: [ // ListTemplateParameter // required
71
+ * parameters: [ // ListTemplateParameter
72
72
  * { // TemplateParameter
73
73
  * name: "STRING_VALUE", // required
74
74
  * value: "STRING_VALUE", // required
@@ -181,7 +181,7 @@ declare const CreateWidgetCommand_base: {
181
181
  * template: {
182
182
  * whatsapp: {
183
183
  * name: "STRING_VALUE", // required
184
- * parameters: [ // required
184
+ * parameters: [
185
185
  * {
186
186
  * name: "STRING_VALUE", // required
187
187
  * value: "STRING_VALUE", // required
@@ -227,6 +227,7 @@ declare const CreateWidgetCommand_base: {
227
227
  * id: "STRING_VALUE", // required
228
228
  * },
229
229
  * },
230
+ * anonymousSessionsEnabled: true || false,
230
231
  * actions: [
231
232
  * {
232
233
  * id: "STRING_VALUE", // required
@@ -324,7 +325,7 @@ declare const CreateWidgetCommand_base: {
324
325
  * // template: { // MessageTemplateConfig
325
326
  * // whatsapp: { // TemplateWithParameters
326
327
  * // name: "STRING_VALUE", // required
327
- * // parameters: [ // ListTemplateParameter // required
328
+ * // parameters: [ // ListTemplateParameter
328
329
  * // { // TemplateParameter
329
330
  * // name: "STRING_VALUE", // required
330
331
  * // value: "STRING_VALUE", // required
@@ -437,7 +438,7 @@ declare const CreateWidgetCommand_base: {
437
438
  * // template: {
438
439
  * // whatsapp: {
439
440
  * // name: "STRING_VALUE", // required
440
- * // parameters: [ // required
441
+ * // parameters: [
441
442
  * // {
442
443
  * // name: "STRING_VALUE", // required
443
444
  * // value: "STRING_VALUE", // required
@@ -483,6 +484,7 @@ declare const CreateWidgetCommand_base: {
483
484
  * // id: "STRING_VALUE", // required
484
485
  * // },
485
486
  * // },
487
+ * // anonymousSessionsEnabled: true || false,
486
488
  * // actions: [
487
489
  * // {
488
490
  * // id: "STRING_VALUE", // required
@@ -66,6 +66,7 @@ declare const GetConfigCommand_base: {
66
66
  * // pbxExtension: "STRING_VALUE",
67
67
  * // pbxSerial: "STRING_VALUE",
68
68
  * // pbxUserId: "STRING_VALUE",
69
+ * // pbxGroupId: "STRING_VALUE",
69
70
  * // createdAt: "STRING_VALUE",
70
71
  * // updatedAt: "STRING_VALUE",
71
72
  * // },
@@ -90,7 +91,7 @@ declare const GetConfigCommand_base: {
90
91
  * // template: { // MessageTemplateConfig
91
92
  * // whatsapp: { // TemplateWithParameters
92
93
  * // name: "STRING_VALUE", // required
93
- * // parameters: [ // ListTemplateParameter // required
94
+ * // parameters: [ // ListTemplateParameter
94
95
  * // { // TemplateParameter
95
96
  * // name: "STRING_VALUE", // required
96
97
  * // value: "STRING_VALUE", // required
@@ -123,6 +124,7 @@ declare const GetConfigCommand_base: {
123
124
  * // delay: Number("int"),
124
125
  * // },
125
126
  * // ],
127
+ * // anonymousSessionsEnabled: true || false,
126
128
  * // features: [ // KiteFeaturesList
127
129
  * // "scheduling",
128
130
  * // ],
@@ -74,7 +74,7 @@ declare const GetWidgetCommand_base: {
74
74
  * // template: { // MessageTemplateConfig
75
75
  * // whatsapp: { // TemplateWithParameters
76
76
  * // name: "STRING_VALUE", // required
77
- * // parameters: [ // ListTemplateParameter // required
77
+ * // parameters: [ // ListTemplateParameter
78
78
  * // { // TemplateParameter
79
79
  * // name: "STRING_VALUE", // required
80
80
  * // value: "STRING_VALUE", // required
@@ -187,7 +187,7 @@ declare const GetWidgetCommand_base: {
187
187
  * // template: {
188
188
  * // whatsapp: {
189
189
  * // name: "STRING_VALUE", // required
190
- * // parameters: [ // required
190
+ * // parameters: [
191
191
  * // {
192
192
  * // name: "STRING_VALUE", // required
193
193
  * // value: "STRING_VALUE", // required
@@ -233,6 +233,7 @@ declare const GetWidgetCommand_base: {
233
233
  * // id: "STRING_VALUE", // required
234
234
  * // },
235
235
  * // },
236
+ * // anonymousSessionsEnabled: true || false,
236
237
  * // actions: [
237
238
  * // {
238
239
  * // id: "STRING_VALUE", // required
@@ -65,6 +65,7 @@ declare const ListAgentsCommand_base: {
65
65
  * // pbxExtension: "STRING_VALUE",
66
66
  * // pbxSerial: "STRING_VALUE",
67
67
  * // pbxUserId: "STRING_VALUE",
68
+ * // pbxGroupId: "STRING_VALUE",
68
69
  * // createdAt: "STRING_VALUE",
69
70
  * // updatedAt: "STRING_VALUE",
70
71
  * // },
@@ -75,7 +75,7 @@ declare const ListWidgetsCommand_base: {
75
75
  * // template: { // MessageTemplateConfig
76
76
  * // whatsapp: { // TemplateWithParameters
77
77
  * // name: "STRING_VALUE", // required
78
- * // parameters: [ // ListTemplateParameter // required
78
+ * // parameters: [ // ListTemplateParameter
79
79
  * // { // TemplateParameter
80
80
  * // name: "STRING_VALUE", // required
81
81
  * // value: "STRING_VALUE", // required
@@ -188,7 +188,7 @@ declare const ListWidgetsCommand_base: {
188
188
  * // template: {
189
189
  * // whatsapp: {
190
190
  * // name: "STRING_VALUE", // required
191
- * // parameters: [ // required
191
+ * // parameters: [
192
192
  * // {
193
193
  * // name: "STRING_VALUE", // required
194
194
  * // value: "STRING_VALUE", // required
@@ -234,6 +234,7 @@ declare const ListWidgetsCommand_base: {
234
234
  * // id: "STRING_VALUE", // required
235
235
  * // },
236
236
  * // },
237
+ * // anonymousSessionsEnabled: true || false,
237
238
  * // actions: [
238
239
  * // {
239
240
  * // id: "STRING_VALUE", // required
@@ -106,6 +106,7 @@ declare const RescheduleCalendarEventCommand_base: {
106
106
  * // pbxExtension: "STRING_VALUE",
107
107
  * // pbxSerial: "STRING_VALUE",
108
108
  * // pbxUserId: "STRING_VALUE",
109
+ * // pbxGroupId: "STRING_VALUE",
109
110
  * // createdAt: "STRING_VALUE",
110
111
  * // updatedAt: "STRING_VALUE",
111
112
  * // },
@@ -118,6 +119,7 @@ declare const RescheduleCalendarEventCommand_base: {
118
119
  * // external: true || false,
119
120
  * // autoRecord: true || false,
120
121
  * // transcriptionLanguage: "STRING_VALUE",
122
+ * // wizyGuestViewOnly: true || false,
121
123
  * // channelId: "STRING_VALUE", // required
122
124
  * // channelType: "direct" || "group", // required
123
125
  * // memberCount: Number("int"), // required
@@ -103,6 +103,7 @@ declare const ScheduleCalendarEventCommand_base: {
103
103
  * // pbxExtension: "STRING_VALUE",
104
104
  * // pbxSerial: "STRING_VALUE",
105
105
  * // pbxUserId: "STRING_VALUE",
106
+ * // pbxGroupId: "STRING_VALUE",
106
107
  * // createdAt: "STRING_VALUE",
107
108
  * // updatedAt: "STRING_VALUE",
108
109
  * // },
@@ -115,6 +116,7 @@ declare const ScheduleCalendarEventCommand_base: {
115
116
  * // external: true || false,
116
117
  * // autoRecord: true || false,
117
118
  * // transcriptionLanguage: "STRING_VALUE",
119
+ * // wizyGuestViewOnly: true || false,
118
120
  * // channelId: "STRING_VALUE", // required
119
121
  * // channelType: "direct" || "group", // required
120
122
  * // memberCount: Number("int"), // required
@@ -68,7 +68,7 @@ declare const UpdateWidgetCommand_base: {
68
68
  * template: { // MessageTemplateConfig
69
69
  * whatsapp: { // TemplateWithParameters
70
70
  * name: "STRING_VALUE", // required
71
- * parameters: [ // ListTemplateParameter // required
71
+ * parameters: [ // ListTemplateParameter
72
72
  * { // TemplateParameter
73
73
  * name: "STRING_VALUE", // required
74
74
  * value: "STRING_VALUE", // required
@@ -181,7 +181,7 @@ declare const UpdateWidgetCommand_base: {
181
181
  * template: {
182
182
  * whatsapp: {
183
183
  * name: "STRING_VALUE", // required
184
- * parameters: [ // required
184
+ * parameters: [
185
185
  * {
186
186
  * name: "STRING_VALUE", // required
187
187
  * value: "STRING_VALUE", // required
@@ -227,6 +227,7 @@ declare const UpdateWidgetCommand_base: {
227
227
  * id: "STRING_VALUE", // required
228
228
  * },
229
229
  * },
230
+ * anonymousSessionsEnabled: true || false,
230
231
  * actions: [
231
232
  * {
232
233
  * id: "STRING_VALUE", // required
@@ -325,7 +326,7 @@ declare const UpdateWidgetCommand_base: {
325
326
  * // template: { // MessageTemplateConfig
326
327
  * // whatsapp: { // TemplateWithParameters
327
328
  * // name: "STRING_VALUE", // required
328
- * // parameters: [ // ListTemplateParameter // required
329
+ * // parameters: [ // ListTemplateParameter
329
330
  * // { // TemplateParameter
330
331
  * // name: "STRING_VALUE", // required
331
332
  * // value: "STRING_VALUE", // required
@@ -438,7 +439,7 @@ declare const UpdateWidgetCommand_base: {
438
439
  * // template: {
439
440
  * // whatsapp: {
440
441
  * // name: "STRING_VALUE", // required
441
- * // parameters: [ // required
442
+ * // parameters: [
442
443
  * // {
443
444
  * // name: "STRING_VALUE", // required
444
445
  * // value: "STRING_VALUE", // required
@@ -484,6 +485,7 @@ declare const UpdateWidgetCommand_base: {
484
485
  * // id: "STRING_VALUE", // required
485
486
  * // },
486
487
  * // },
488
+ * // anonymousSessionsEnabled: true || false,
487
489
  * // actions: [
488
490
  * // {
489
491
  * // id: "STRING_VALUE", // required
@@ -3,35 +3,24 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-cli
3
3
  /**
4
4
  * @public
5
5
  */
6
- export declare class NotFoundException extends __BaseException {
7
- readonly name: "NotFoundException";
8
- readonly $fault: "client";
9
- /**
10
- * @internal
11
- */
12
- constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
13
- }
14
- /**
15
- * @public
16
- */
17
- export declare class ValidationException extends __BaseException {
18
- readonly name: "ValidationException";
6
+ export declare class ForbiddenException extends __BaseException {
7
+ readonly name: "ForbiddenException";
19
8
  readonly $fault: "client";
20
9
  /**
21
10
  * @internal
22
11
  */
23
- constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
12
+ constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
24
13
  }
25
14
  /**
26
15
  * @public
27
16
  */
28
- export declare class ForbiddenException extends __BaseException {
29
- readonly name: "ForbiddenException";
17
+ export declare class NotFoundException extends __BaseException {
18
+ readonly name: "NotFoundException";
30
19
  readonly $fault: "client";
31
20
  /**
32
21
  * @internal
33
22
  */
34
- constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
23
+ constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
35
24
  }
36
25
  /**
37
26
  * @public
@@ -64,6 +53,17 @@ export declare class RateLimitExceededException extends __BaseException {
64
53
  */
65
54
  constructor(opts: __ExceptionOptionType<RateLimitExceededException, __BaseException>);
66
55
  }
56
+ /**
57
+ * @public
58
+ */
59
+ export declare class ValidationException extends __BaseException {
60
+ readonly name: "ValidationException";
61
+ readonly $fault: "client";
62
+ /**
63
+ * @internal
64
+ */
65
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
66
+ }
67
67
  /**
68
68
  * @public
69
69
  */
@@ -205,8 +205,20 @@ export interface TemplateParameter {
205
205
  */
206
206
  export interface TemplateWithParameters {
207
207
  name: string;
208
- parameters: (TemplateParameter)[];
208
+ parameters?: (TemplateParameter)[] | undefined;
209
209
  }
210
+ /**
211
+ * @public
212
+ * @enum
213
+ */
214
+ export declare const ChannelAccess: {
215
+ readonly PRIVATE: "private";
216
+ readonly PUBLIC: "public";
217
+ };
218
+ /**
219
+ * @public
220
+ */
221
+ export type ChannelAccess = typeof ChannelAccess[keyof typeof ChannelAccess];
210
222
  /**
211
223
  * @public
212
224
  */
@@ -225,6 +237,7 @@ export interface User {
225
237
  pbxExtension?: string | undefined;
226
238
  pbxSerial?: string | undefined;
227
239
  pbxUserId?: string | undefined;
240
+ pbxGroupId?: string | undefined;
228
241
  createdAt?: string | undefined;
229
242
  updatedAt?: string | undefined;
230
243
  }
@@ -242,31 +255,123 @@ export declare const ChannelType: {
242
255
  export type ChannelType = typeof ChannelType[keyof typeof ChannelType];
243
256
  /**
244
257
  * @public
258
+ * @enum
245
259
  */
246
- export interface CalendarSlot {
247
- startTime?: string | undefined;
260
+ export declare const ChannelContextEventAttendeeStatus: {
261
+ readonly ACCEPTED: "accepted";
262
+ readonly DECLINED: "declined";
263
+ readonly NONE: "none";
264
+ readonly TENTATIVE: "tentative";
265
+ };
266
+ /**
267
+ * @public
268
+ */
269
+ export type ChannelContextEventAttendeeStatus = typeof ChannelContextEventAttendeeStatus[keyof typeof ChannelContextEventAttendeeStatus];
270
+ /**
271
+ * @public
272
+ */
273
+ export interface ChannelContextEventAttendee {
274
+ email: string;
275
+ name?: string | undefined;
276
+ status: ChannelContextEventAttendeeStatus;
248
277
  }
249
278
  /**
250
279
  * @public
251
280
  */
252
- export interface CalendarDaySlots {
253
- date?: string | undefined;
254
- slots?: (CalendarSlot)[] | undefined;
281
+ export interface ChannelContextEvent {
282
+ id?: string | undefined;
283
+ owner?: string | undefined;
284
+ start?: string | undefined;
285
+ end?: string | undefined;
286
+ summary?: string | undefined;
287
+ attendees?: (ChannelContextEventAttendee)[] | undefined;
255
288
  }
256
289
  /**
257
290
  * @public
258
291
  */
259
- export interface CalendarAvailabilitySettings {
260
- duration?: (string)[] | undefined;
292
+ export interface ChannelContextPushToTalk {
293
+ /**
294
+ * A unique identifier of x-hoppers broadcast conference. If present x-hoppers application will use broadcast and push-to-talk functionality for the channel.
295
+ * @public
296
+ */
297
+ broadcastId?: string | undefined;
261
298
  }
262
299
  /**
263
300
  * @public
301
+ * @enum
264
302
  */
265
- export interface CalendarAvailability {
266
- days?: (CalendarDaySlots)[] | undefined;
267
- duration?: string | undefined;
268
- timeZone?: string | undefined;
269
- settings?: CalendarAvailabilitySettings | undefined;
303
+ export declare const ChannelContextSource: {
304
+ readonly KITE: "kite";
305
+ };
306
+ /**
307
+ * @public
308
+ */
309
+ export type ChannelContextSource = typeof ChannelContextSource[keyof typeof ChannelContextSource];
310
+ /**
311
+ * @public
312
+ */
313
+ export interface ChannelContext {
314
+ source?: ChannelContextSource | undefined;
315
+ target?: string | undefined;
316
+ events?: (ChannelContextEvent)[] | undefined;
317
+ ptt?: ChannelContextPushToTalk | undefined;
318
+ }
319
+ /**
320
+ * @public
321
+ * @enum
322
+ */
323
+ export declare const ChannelWhatsAppStatus: {
324
+ readonly CHANNEL_CLOSED: "24h_channel_closed";
325
+ };
326
+ /**
327
+ * @public
328
+ */
329
+ export type ChannelWhatsAppStatus = typeof ChannelWhatsAppStatus[keyof typeof ChannelWhatsAppStatus];
330
+ /**
331
+ * @public
332
+ */
333
+ export interface Channel {
334
+ subject?: string | undefined;
335
+ description?: string | undefined;
336
+ /**
337
+ * Picture URL
338
+ * @public
339
+ */
340
+ picture?: string | undefined;
341
+ /**
342
+ * Picture dominant color represented by a hex value.
343
+ * @public
344
+ */
345
+ pictureColor?: string | undefined;
346
+ access?: ChannelAccess | undefined;
347
+ company?: string | undefined;
348
+ context?: ChannelContext | undefined;
349
+ kite?: boolean | undefined;
350
+ kiteTarget?: string | undefined;
351
+ kiteVariant?: string | undefined;
352
+ kiteAssign?: string | undefined;
353
+ kiteServiceName?: string | undefined;
354
+ kiteDefaultSubject?: string | undefined;
355
+ service?: string | undefined;
356
+ serviceTitle?: string | undefined;
357
+ serviceRecipient?: string | undefined;
358
+ assignee?: User | undefined;
359
+ telephony?: boolean | undefined;
360
+ sms?: boolean | undefined;
361
+ mms?: boolean | undefined;
362
+ whatsapp?: boolean | undefined;
363
+ whatsappStatus?: ChannelWhatsAppStatus | undefined;
364
+ broadcast?: boolean | undefined;
365
+ external?: boolean | undefined;
366
+ autoRecord?: boolean | undefined;
367
+ transcriptionLanguage?: string | undefined;
368
+ wizyGuestViewOnly?: boolean | undefined;
369
+ channelId: string;
370
+ channelType: ChannelType;
371
+ memberCount: number;
372
+ createdAt: string;
373
+ createdBy: string;
374
+ updatedAt?: string | undefined;
270
375
  }
271
376
  /**
272
377
  * @public
@@ -382,208 +487,105 @@ export declare namespace ActionElement {
382
487
  /**
383
488
  * @public
384
489
  */
385
- export declare class ChannelNotFoundException extends __BaseException {
386
- readonly name: "ChannelNotFoundException";
387
- readonly $fault: "client";
388
- /**
389
- * @internal
390
- */
391
- constructor(opts: __ExceptionOptionType<ChannelNotFoundException, __BaseException>);
392
- }
393
- /**
394
- * @public
395
- */
396
- export interface ServicePbx {
397
- domain: string;
398
- port: number;
399
- }
400
- /**
401
- * @public
402
- */
403
- export interface ServiceSettings {
404
- phoneNumber?: string | undefined;
405
- messagingNumber?: string | undefined;
406
- }
407
- /**
408
- * @public
409
- */
410
- export interface Service {
411
- id: number;
412
- uri: string;
413
- title: string;
414
- settings: ServiceSettings;
415
- extensions: (string)[];
416
- pbx: ServicePbx;
417
- }
418
- /**
419
- * @public
420
- * @enum
421
- */
422
- export declare const ChannelAccess: {
423
- readonly PRIVATE: "private";
424
- readonly PUBLIC: "public";
425
- };
426
- /**
427
- * @public
428
- */
429
- export type ChannelAccess = typeof ChannelAccess[keyof typeof ChannelAccess];
430
- /**
431
- * @public
432
- * @enum
433
- */
434
- export declare const ChannelContextEventAttendeeStatus: {
435
- readonly ACCEPTED: "accepted";
436
- readonly DECLINED: "declined";
437
- readonly NONE: "none";
438
- readonly TENTATIVE: "tentative";
439
- };
440
- /**
441
- * @public
442
- */
443
- export type ChannelContextEventAttendeeStatus = typeof ChannelContextEventAttendeeStatus[keyof typeof ChannelContextEventAttendeeStatus];
444
- /**
445
- * @public
446
- */
447
- export interface ChannelContextEventAttendee {
448
- email: string;
449
- name?: string | undefined;
450
- status: ChannelContextEventAttendeeStatus;
490
+ export interface MessageTemplateConfig {
491
+ whatsapp?: TemplateWithParameters | undefined;
451
492
  }
452
493
  /**
453
494
  * @public
454
495
  */
455
- export interface ChannelContextEvent {
456
- id?: string | undefined;
457
- owner?: string | undefined;
458
- start?: string | undefined;
459
- end?: string | undefined;
460
- summary?: string | undefined;
461
- attendees?: (ChannelContextEventAttendee)[] | undefined;
462
- }
496
+ export type Element = Element.ActionsMember | Element.TemplateMember | Element.$UnknownMember;
463
497
  /**
464
498
  * @public
465
499
  */
466
- export interface ChannelContextPushToTalk {
500
+ export declare namespace Element {
501
+ interface TemplateMember {
502
+ template: MessageTemplateConfig;
503
+ actions?: never;
504
+ $unknown?: never;
505
+ }
506
+ interface ActionsMember {
507
+ template?: never;
508
+ actions: (ActionElement)[];
509
+ $unknown?: never;
510
+ }
467
511
  /**
468
- * A unique identifier of x-hoppers broadcast conference. If present x-hoppers application will use broadcast and push-to-talk functionality for the channel.
469
512
  * @public
470
513
  */
471
- broadcastId?: string | undefined;
514
+ interface $UnknownMember {
515
+ template?: never;
516
+ actions?: never;
517
+ $unknown: [string, any];
518
+ }
519
+ interface Visitor<T> {
520
+ template: (value: MessageTemplateConfig) => T;
521
+ actions: (value: (ActionElement)[]) => T;
522
+ _: (name: string, value: any) => T;
523
+ }
524
+ const visit: <T>(value: Element, visitor: Visitor<T>) => T;
472
525
  }
473
- /**
474
- * @public
475
- * @enum
476
- */
477
- export declare const ChannelContextSource: {
478
- readonly KITE: "kite";
479
- };
480
526
  /**
481
527
  * @public
482
528
  */
483
- export type ChannelContextSource = typeof ChannelContextSource[keyof typeof ChannelContextSource];
529
+ export interface CalendarSlot {
530
+ startTime?: string | undefined;
531
+ }
484
532
  /**
485
533
  * @public
486
534
  */
487
- export interface ChannelContext {
488
- source?: ChannelContextSource | undefined;
489
- target?: string | undefined;
490
- events?: (ChannelContextEvent)[] | undefined;
491
- ptt?: ChannelContextPushToTalk | undefined;
535
+ export interface CalendarDaySlots {
536
+ date?: string | undefined;
537
+ slots?: (CalendarSlot)[] | undefined;
492
538
  }
493
539
  /**
494
540
  * @public
495
- * @enum
496
541
  */
497
- export declare const ChannelWhatsAppStatus: {
498
- readonly CHANNEL_CLOSED: "24h_channel_closed";
499
- };
542
+ export interface CalendarAvailabilitySettings {
543
+ duration?: (string)[] | undefined;
544
+ }
500
545
  /**
501
546
  * @public
502
547
  */
503
- export type ChannelWhatsAppStatus = typeof ChannelWhatsAppStatus[keyof typeof ChannelWhatsAppStatus];
548
+ export interface CalendarAvailability {
549
+ days?: (CalendarDaySlots)[] | undefined;
550
+ duration?: string | undefined;
551
+ timeZone?: string | undefined;
552
+ settings?: CalendarAvailabilitySettings | undefined;
553
+ }
504
554
  /**
505
555
  * @public
506
556
  */
507
- export interface Channel {
508
- subject?: string | undefined;
509
- description?: string | undefined;
510
- /**
511
- * Picture URL
512
- * @public
513
- */
514
- picture?: string | undefined;
557
+ export declare class ChannelNotFoundException extends __BaseException {
558
+ readonly name: "ChannelNotFoundException";
559
+ readonly $fault: "client";
515
560
  /**
516
- * Picture dominant color represented by a hex value.
517
- * @public
561
+ * @internal
518
562
  */
519
- pictureColor?: string | undefined;
520
- access?: ChannelAccess | undefined;
521
- company?: string | undefined;
522
- context?: ChannelContext | undefined;
523
- kite?: boolean | undefined;
524
- kiteTarget?: string | undefined;
525
- kiteVariant?: string | undefined;
526
- kiteAssign?: string | undefined;
527
- kiteServiceName?: string | undefined;
528
- kiteDefaultSubject?: string | undefined;
529
- service?: string | undefined;
530
- serviceTitle?: string | undefined;
531
- serviceRecipient?: string | undefined;
532
- assignee?: User | undefined;
533
- telephony?: boolean | undefined;
534
- sms?: boolean | undefined;
535
- mms?: boolean | undefined;
536
- whatsapp?: boolean | undefined;
537
- whatsappStatus?: ChannelWhatsAppStatus | undefined;
538
- broadcast?: boolean | undefined;
539
- external?: boolean | undefined;
540
- autoRecord?: boolean | undefined;
541
- transcriptionLanguage?: string | undefined;
542
- channelId: string;
543
- channelType: ChannelType;
544
- memberCount: number;
545
- createdAt: string;
546
- createdBy: string;
547
- updatedAt?: string | undefined;
563
+ constructor(opts: __ExceptionOptionType<ChannelNotFoundException, __BaseException>);
548
564
  }
549
565
  /**
550
566
  * @public
551
567
  */
552
- export interface MessageTemplateConfig {
553
- whatsapp?: TemplateWithParameters | undefined;
568
+ export interface ServicePbx {
569
+ domain: string;
570
+ port: number;
554
571
  }
555
572
  /**
556
573
  * @public
557
574
  */
558
- export type Element = Element.ActionsMember | Element.TemplateMember | Element.$UnknownMember;
575
+ export interface ServiceSettings {
576
+ phoneNumber?: string | undefined;
577
+ messagingNumber?: string | undefined;
578
+ }
559
579
  /**
560
580
  * @public
561
581
  */
562
- export declare namespace Element {
563
- interface TemplateMember {
564
- template: MessageTemplateConfig;
565
- actions?: never;
566
- $unknown?: never;
567
- }
568
- interface ActionsMember {
569
- template?: never;
570
- actions: (ActionElement)[];
571
- $unknown?: never;
572
- }
573
- /**
574
- * @public
575
- */
576
- interface $UnknownMember {
577
- template?: never;
578
- actions?: never;
579
- $unknown: [string, any];
580
- }
581
- interface Visitor<T> {
582
- template: (value: MessageTemplateConfig) => T;
583
- actions: (value: (ActionElement)[]) => T;
584
- _: (name: string, value: any) => T;
585
- }
586
- const visit: <T>(value: Element, visitor: Visitor<T>) => T;
582
+ export interface Service {
583
+ id: number;
584
+ uri: string;
585
+ title: string;
586
+ settings: ServiceSettings;
587
+ extensions: (string)[];
588
+ pbx: ServicePbx;
587
589
  }
588
590
  /**
589
591
  * @public
@@ -1170,6 +1172,11 @@ export interface CreateOrUpdateWidgetPreviewInput {
1170
1172
  * @public
1171
1173
  */
1172
1174
  target: WidgetTarget;
1175
+ /**
1176
+ * Controls whether unauthenticated users are allowed to start guest sessions through this widget. If omitted, the widget should be treated as authenticated-only.
1177
+ * @public
1178
+ */
1179
+ anonymousSessionsEnabled?: boolean | undefined;
1173
1180
  /**
1174
1181
  * Actions that will be used if the specified route and the conditions within a specific action are met.
1175
1182
  * @public
@@ -1207,6 +1214,11 @@ export interface Widget {
1207
1214
  * @public
1208
1215
  */
1209
1216
  target: WidgetTarget;
1217
+ /**
1218
+ * Controls whether unauthenticated users are allowed to start guest sessions through this widget. If omitted, the widget should be treated as authenticated-only.
1219
+ * @public
1220
+ */
1221
+ anonymousSessionsEnabled?: boolean | undefined;
1210
1222
  /**
1211
1223
  * Actions that will be used if the specified route and the conditions within a specific action are met.
1212
1224
  * @public
@@ -1248,6 +1260,11 @@ export interface CreateWidgetInput {
1248
1260
  * @public
1249
1261
  */
1250
1262
  target: WidgetTarget;
1263
+ /**
1264
+ * Controls whether unauthenticated users are allowed to start guest sessions through this widget. If omitted, the widget should be treated as authenticated-only.
1265
+ * @public
1266
+ */
1267
+ anonymousSessionsEnabled?: boolean | undefined;
1251
1268
  /**
1252
1269
  * Actions that will be used if the specified route and the conditions within a specific action are met.
1253
1270
  * @public
@@ -1389,6 +1406,11 @@ export interface KiteConfig {
1389
1406
  * @public
1390
1407
  */
1391
1408
  welcomeMessages?: (WidgetWelcomeMessage)[] | undefined;
1409
+ /**
1410
+ * Controls whether unauthenticated users are allowed to start guest sessions through this widget.
1411
+ * @public
1412
+ */
1413
+ anonymousSessionsEnabled?: boolean | undefined;
1392
1414
  /**
1393
1415
  * A list of features that are supported.
1394
1416
  * @public
@@ -2057,6 +2079,11 @@ export interface UpdateWidgetInput {
2057
2079
  * @public
2058
2080
  */
2059
2081
  target: WidgetTarget;
2082
+ /**
2083
+ * Controls whether unauthenticated users are allowed to start guest sessions through this widget. If omitted, the widget should be treated as authenticated-only.
2084
+ * @public
2085
+ */
2086
+ anonymousSessionsEnabled?: boolean | undefined;
2060
2087
  /**
2061
2088
  * Actions that will be used if the specified route and the conditions within a specific action are met.
2062
2089
  * @public
@@ -15,8 +15,13 @@ export declare const getRuntimeConfig: (config: KiteClientConfig) => {
15
15
  streamCollector: import("@smithy/types").StreamCollector;
16
16
  env?: "stage" | "stable" | "prod" | undefined;
17
17
  token?: import("@wildix/smithy-utils").TokenProvider | undefined;
18
- apiVersion: string;
19
18
  cacheMiddleware?: boolean | undefined;
19
+ protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
20
+ protocolSettings?: {
21
+ [setting: string]: unknown;
22
+ defaultNamespace?: string | undefined;
23
+ } | undefined;
24
+ apiVersion: string;
20
25
  urlParser: import("@smithy/types").UrlParser;
21
26
  base64Decoder: import("@smithy/types").Decoder;
22
27
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -16,8 +16,13 @@ export declare const getRuntimeConfig: (config: KiteClientConfig) => {
16
16
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
17
17
  env?: "stage" | "stable" | "prod" | undefined;
18
18
  token?: import("@wildix/smithy-utils").TokenProvider | undefined;
19
- apiVersion: string;
20
19
  cacheMiddleware?: boolean | undefined;
20
+ protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
21
+ protocolSettings?: {
22
+ [setting: string]: unknown;
23
+ defaultNamespace?: string | undefined;
24
+ } | undefined;
25
+ apiVersion: string;
21
26
  urlParser: import("@smithy/types").UrlParser;
22
27
  base64Decoder: import("@smithy/types").Decoder;
23
28
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -8,8 +8,13 @@ export declare const getRuntimeConfig: (config: KiteClientConfig) => {
8
8
  env?: "stage" | "stable" | "prod" | undefined;
9
9
  token?: import("@wildix/smithy-utils").TokenProvider | undefined;
10
10
  requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
11
- apiVersion: string;
12
11
  cacheMiddleware?: boolean | undefined;
12
+ protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
13
+ protocolSettings?: {
14
+ [setting: string]: unknown;
15
+ defaultNamespace?: string | undefined;
16
+ } | undefined;
17
+ apiVersion: string;
13
18
  urlParser: import("@smithy/types").UrlParser;
14
19
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
15
20
  streamCollector: import("@smithy/types").StreamCollector;
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.2.0",
4
+ "version": "1.2.1",
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",