@wildix/xbees-kite-client 1.3.2 → 1.4.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.
@@ -38,8 +38,8 @@ const se_CreateOrUpdateWidgetPreviewCommand = async (input, context) => {
38
38
  'actions': _ => (0, smithy_client_1._json)(_),
39
39
  'anonymousSessionsEnabled': [],
40
40
  'anonymousSessionsOnly': [],
41
+ 'anonymousSessionsRandomNameEnabled': [],
41
42
  'appearance': _ => (0, smithy_client_1._json)(_),
42
- 'minimumBookingGapMinutes': [],
43
43
  'name': [],
44
44
  'routes': _ => se_WidgetRoutesList(_, context),
45
45
  'target': _ => (0, smithy_client_1._json)(_),
@@ -67,8 +67,8 @@ const se_CreateWidgetCommand = async (input, context) => {
67
67
  'actions': _ => (0, smithy_client_1._json)(_),
68
68
  'anonymousSessionsEnabled': [],
69
69
  'anonymousSessionsOnly': [],
70
+ 'anonymousSessionsRandomNameEnabled': [],
70
71
  'appearance': _ => (0, smithy_client_1._json)(_),
71
- 'minimumBookingGapMinutes': [],
72
72
  'name': [],
73
73
  'routes': _ => se_WidgetRoutesList(_, context),
74
74
  'target': _ => (0, smithy_client_1._json)(_),
@@ -409,8 +409,8 @@ const se_UpdateWidgetCommand = async (input, context) => {
409
409
  'actions': _ => (0, smithy_client_1._json)(_),
410
410
  'anonymousSessionsEnabled': [],
411
411
  'anonymousSessionsOnly': [],
412
+ 'anonymousSessionsRandomNameEnabled': [],
412
413
  'appearance': _ => (0, smithy_client_1._json)(_),
413
- 'minimumBookingGapMinutes': [],
414
414
  'name': [],
415
415
  'routes': _ => se_WidgetRoutesList(_, context),
416
416
  'target': _ => (0, smithy_client_1._json)(_),
@@ -912,11 +912,11 @@ const de_Widget = (output, context) => {
912
912
  'actions': smithy_client_1._json,
913
913
  'anonymousSessionsEnabled': smithy_client_1.expectBoolean,
914
914
  'anonymousSessionsOnly': smithy_client_1.expectBoolean,
915
+ 'anonymousSessionsRandomNameEnabled': smithy_client_1.expectBoolean,
915
916
  'appearance': smithy_client_1._json,
916
917
  'company': smithy_client_1.expectString,
917
918
  'createdAt': smithy_client_1.expectString,
918
919
  'id': smithy_client_1.expectString,
919
- 'minimumBookingGapMinutes': smithy_client_1.expectInt32,
920
920
  'name': smithy_client_1.expectString,
921
921
  'routes': (_) => de_WidgetRoutesList(_, context),
922
922
  'target': (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
@@ -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, expectInt32 as __expectInt32, 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 = {};
@@ -34,8 +34,8 @@ export const se_CreateOrUpdateWidgetPreviewCommand = async (input, context) => {
34
34
  'actions': _ => _json(_),
35
35
  'anonymousSessionsEnabled': [],
36
36
  'anonymousSessionsOnly': [],
37
+ 'anonymousSessionsRandomNameEnabled': [],
37
38
  'appearance': _ => _json(_),
38
- 'minimumBookingGapMinutes': [],
39
39
  'name': [],
40
40
  'routes': _ => se_WidgetRoutesList(_, context),
41
41
  'target': _ => _json(_),
@@ -62,8 +62,8 @@ export const se_CreateWidgetCommand = async (input, context) => {
62
62
  'actions': _ => _json(_),
63
63
  'anonymousSessionsEnabled': [],
64
64
  'anonymousSessionsOnly': [],
65
+ 'anonymousSessionsRandomNameEnabled': [],
65
66
  'appearance': _ => _json(_),
66
- 'minimumBookingGapMinutes': [],
67
67
  'name': [],
68
68
  'routes': _ => se_WidgetRoutesList(_, context),
69
69
  'target': _ => _json(_),
@@ -385,8 +385,8 @@ export const se_UpdateWidgetCommand = async (input, context) => {
385
385
  'actions': _ => _json(_),
386
386
  'anonymousSessionsEnabled': [],
387
387
  'anonymousSessionsOnly': [],
388
+ 'anonymousSessionsRandomNameEnabled': [],
388
389
  'appearance': _ => _json(_),
389
- 'minimumBookingGapMinutes': [],
390
390
  'name': [],
391
391
  'routes': _ => se_WidgetRoutesList(_, context),
392
392
  'target': _ => _json(_),
@@ -865,11 +865,11 @@ const de_Widget = (output, context) => {
865
865
  'actions': _json,
866
866
  'anonymousSessionsEnabled': __expectBoolean,
867
867
  'anonymousSessionsOnly': __expectBoolean,
868
+ 'anonymousSessionsRandomNameEnabled': __expectBoolean,
868
869
  'appearance': _json,
869
870
  'company': __expectString,
870
871
  'createdAt': __expectString,
871
872
  'id': __expectString,
872
- 'minimumBookingGapMinutes': __expectInt32,
873
873
  'name': __expectString,
874
874
  'routes': (_) => de_WidgetRoutesList(_, context),
875
875
  'target': (_) => _json(__expectUnion(_)),
@@ -214,7 +214,6 @@ declare const CreateOrUpdateWidgetPreviewCommand_base: {
214
214
  * delay: Number("int"),
215
215
  * },
216
216
  * ],
217
- * minimumBookingGapMinutes: Number("int"),
218
217
  * name: "STRING_VALUE", // required
219
218
  * target: {// Union: only one key present
220
219
  * service: {
@@ -230,6 +229,7 @@ declare const CreateOrUpdateWidgetPreviewCommand_base: {
230
229
  * },
231
230
  * anonymousSessionsEnabled: true || false,
232
231
  * anonymousSessionsOnly: true || false,
232
+ * anonymousSessionsRandomNameEnabled: true || false,
233
233
  * actions: [
234
234
  * {
235
235
  * id: "STRING_VALUE", // required
@@ -474,7 +474,6 @@ declare const CreateOrUpdateWidgetPreviewCommand_base: {
474
474
  * // delay: Number("int"),
475
475
  * // },
476
476
  * // ],
477
- * // minimumBookingGapMinutes: Number("int"),
478
477
  * // name: "STRING_VALUE", // required
479
478
  * // target: {// Union: only one key present
480
479
  * // service: {
@@ -490,6 +489,7 @@ declare const CreateOrUpdateWidgetPreviewCommand_base: {
490
489
  * // },
491
490
  * // anonymousSessionsEnabled: true || false,
492
491
  * // anonymousSessionsOnly: true || false,
492
+ * // anonymousSessionsRandomNameEnabled: true || false,
493
493
  * // actions: [
494
494
  * // {
495
495
  * // id: "STRING_VALUE", // required
@@ -214,7 +214,6 @@ declare const CreateWidgetCommand_base: {
214
214
  * delay: Number("int"),
215
215
  * },
216
216
  * ],
217
- * minimumBookingGapMinutes: Number("int"),
218
217
  * name: "STRING_VALUE", // required
219
218
  * target: {// Union: only one key present
220
219
  * service: {
@@ -230,6 +229,7 @@ declare const CreateWidgetCommand_base: {
230
229
  * },
231
230
  * anonymousSessionsEnabled: true || false,
232
231
  * anonymousSessionsOnly: true || false,
232
+ * anonymousSessionsRandomNameEnabled: true || false,
233
233
  * actions: [
234
234
  * {
235
235
  * id: "STRING_VALUE", // required
@@ -473,7 +473,6 @@ declare const CreateWidgetCommand_base: {
473
473
  * // delay: Number("int"),
474
474
  * // },
475
475
  * // ],
476
- * // minimumBookingGapMinutes: Number("int"),
477
476
  * // name: "STRING_VALUE", // required
478
477
  * // target: {// Union: only one key present
479
478
  * // service: {
@@ -489,6 +488,7 @@ declare const CreateWidgetCommand_base: {
489
488
  * // },
490
489
  * // anonymousSessionsEnabled: true || false,
491
490
  * // anonymousSessionsOnly: true || false,
491
+ * // anonymousSessionsRandomNameEnabled: true || false,
492
492
  * // actions: [
493
493
  * // {
494
494
  * // id: "STRING_VALUE", // required
@@ -126,7 +126,7 @@ declare const GetConfigCommand_base: {
126
126
  * // ],
127
127
  * // anonymousSessionsEnabled: true || false,
128
128
  * // anonymousSessionsOnly: true || false,
129
- * // minimumBookingGapMinutes: Number("int"),
129
+ * // anonymousSessionsRandomNameEnabled: true || false,
130
130
  * // features: [ // KiteFeaturesList
131
131
  * // "scheduling",
132
132
  * // ],
@@ -220,7 +220,6 @@ declare const GetWidgetCommand_base: {
220
220
  * // delay: Number("int"),
221
221
  * // },
222
222
  * // ],
223
- * // minimumBookingGapMinutes: Number("int"),
224
223
  * // name: "STRING_VALUE", // required
225
224
  * // target: {// Union: only one key present
226
225
  * // service: {
@@ -236,6 +235,7 @@ declare const GetWidgetCommand_base: {
236
235
  * // },
237
236
  * // anonymousSessionsEnabled: true || false,
238
237
  * // anonymousSessionsOnly: true || false,
238
+ * // anonymousSessionsRandomNameEnabled: true || false,
239
239
  * // actions: [
240
240
  * // {
241
241
  * // id: "STRING_VALUE", // required
@@ -221,7 +221,6 @@ declare const ListWidgetsCommand_base: {
221
221
  * // delay: Number("int"),
222
222
  * // },
223
223
  * // ],
224
- * // minimumBookingGapMinutes: Number("int"),
225
224
  * // name: "STRING_VALUE", // required
226
225
  * // target: {// Union: only one key present
227
226
  * // service: {
@@ -237,6 +236,7 @@ declare const ListWidgetsCommand_base: {
237
236
  * // },
238
237
  * // anonymousSessionsEnabled: true || false,
239
238
  * // anonymousSessionsOnly: true || false,
239
+ * // anonymousSessionsRandomNameEnabled: true || false,
240
240
  * // actions: [
241
241
  * // {
242
242
  * // id: "STRING_VALUE", // required
@@ -214,7 +214,6 @@ declare const UpdateWidgetCommand_base: {
214
214
  * delay: Number("int"),
215
215
  * },
216
216
  * ],
217
- * minimumBookingGapMinutes: Number("int"),
218
217
  * name: "STRING_VALUE", // required
219
218
  * target: {// Union: only one key present
220
219
  * service: {
@@ -230,6 +229,7 @@ declare const UpdateWidgetCommand_base: {
230
229
  * },
231
230
  * anonymousSessionsEnabled: true || false,
232
231
  * anonymousSessionsOnly: true || false,
232
+ * anonymousSessionsRandomNameEnabled: true || false,
233
233
  * actions: [
234
234
  * {
235
235
  * id: "STRING_VALUE", // required
@@ -474,7 +474,6 @@ declare const UpdateWidgetCommand_base: {
474
474
  * // delay: Number("int"),
475
475
  * // },
476
476
  * // ],
477
- * // minimumBookingGapMinutes: Number("int"),
478
477
  * // name: "STRING_VALUE", // required
479
478
  * // target: {// Union: only one key present
480
479
  * // service: {
@@ -490,6 +489,7 @@ declare const UpdateWidgetCommand_base: {
490
489
  * // },
491
490
  * // anonymousSessionsEnabled: true || false,
492
491
  * // anonymousSessionsOnly: true || false,
492
+ * // anonymousSessionsRandomNameEnabled: true || false,
493
493
  * // actions: [
494
494
  * // {
495
495
  * // id: "STRING_VALUE", // required
@@ -1166,11 +1166,6 @@ export interface CreateOrUpdateWidgetPreviewInput {
1166
1166
  * @public
1167
1167
  */
1168
1168
  welcomeMessages?: (WidgetWelcomeMessage)[] | undefined;
1169
- /**
1170
- * Minimum gap in minutes between the current time and the earliest calendar slot that can be booked. If omitted or set to 0, current behavior is preserved.
1171
- * @public
1172
- */
1173
- minimumBookingGapMinutes?: number | undefined;
1174
1169
  name: string;
1175
1170
  /**
1176
1171
  * The primary target for the widget. This target is used if no route rules are matched. The target can be a service, an agent, or a bot, and it specifies where the widget directs its interactions.
@@ -1178,15 +1173,20 @@ export interface CreateOrUpdateWidgetPreviewInput {
1178
1173
  */
1179
1174
  target: WidgetTarget;
1180
1175
  /**
1181
- * Controls whether unauthenticated users are allowed to start guest sessions through this widget. If omitted, the widget should be treated as authenticated-only.
1176
+ * Controls whether unauthenticated users are allowed to start guest sessions through this widget. If omitted, false is assumed and the widget should be treated as authenticated-only.
1182
1177
  * @public
1183
1178
  */
1184
1179
  anonymousSessionsEnabled?: boolean | undefined;
1185
1180
  /**
1186
- * Controls whether only unauthenticated users are allowed to start guest sessions through this widget. When enabled, anonymousSessionsEnabled is treated as enabled as well.
1181
+ * Controls whether only unauthenticated users are allowed to start guest sessions through this widget. If omitted, false is assumed. When enabled, anonymousSessionsEnabled is treated as enabled as well, login methods should be hidden, and the widget should start the anonymous flow directly.
1187
1182
  * @public
1188
1183
  */
1189
1184
  anonymousSessionsOnly?: boolean | undefined;
1185
+ /**
1186
+ * Controls whether anonymous visitors should receive generated display names instead of entering names manually. Applies only when anonymous sessions are allowed. If omitted, false is assumed.
1187
+ * @public
1188
+ */
1189
+ anonymousSessionsRandomNameEnabled?: boolean | undefined;
1190
1190
  /**
1191
1191
  * Actions that will be used if the specified route and the conditions within a specific action are met.
1192
1192
  * @public
@@ -1218,11 +1218,6 @@ export interface Widget {
1218
1218
  * @public
1219
1219
  */
1220
1220
  welcomeMessages?: (WidgetWelcomeMessage)[] | undefined;
1221
- /**
1222
- * Minimum gap in minutes between the current time and the earliest calendar slot that can be booked. If omitted or set to 0, current behavior is preserved.
1223
- * @public
1224
- */
1225
- minimumBookingGapMinutes?: number | undefined;
1226
1221
  name: string;
1227
1222
  /**
1228
1223
  * The primary target for the widget. This target is used if no route rules are matched. The target can be a service, an agent, or a bot, and it specifies where the widget directs its interactions.
@@ -1230,15 +1225,20 @@ export interface Widget {
1230
1225
  */
1231
1226
  target: WidgetTarget;
1232
1227
  /**
1233
- * Controls whether unauthenticated users are allowed to start guest sessions through this widget. If omitted, the widget should be treated as authenticated-only.
1228
+ * Controls whether unauthenticated users are allowed to start guest sessions through this widget. If omitted, false is assumed and the widget should be treated as authenticated-only.
1234
1229
  * @public
1235
1230
  */
1236
1231
  anonymousSessionsEnabled?: boolean | undefined;
1237
1232
  /**
1238
- * Controls whether only unauthenticated users are allowed to start guest sessions through this widget. When enabled, anonymousSessionsEnabled is treated as enabled as well.
1233
+ * Controls whether only unauthenticated users are allowed to start guest sessions through this widget. If omitted, false is assumed. When enabled, anonymousSessionsEnabled is treated as enabled as well, login methods should be hidden, and the widget should start the anonymous flow directly.
1239
1234
  * @public
1240
1235
  */
1241
1236
  anonymousSessionsOnly?: boolean | undefined;
1237
+ /**
1238
+ * Controls whether anonymous visitors should receive generated display names instead of entering names manually. Applies only when anonymous sessions are allowed. If omitted, false is assumed.
1239
+ * @public
1240
+ */
1241
+ anonymousSessionsRandomNameEnabled?: boolean | undefined;
1242
1242
  /**
1243
1243
  * Actions that will be used if the specified route and the conditions within a specific action are met.
1244
1244
  * @public
@@ -1274,11 +1274,6 @@ export interface CreateWidgetInput {
1274
1274
  * @public
1275
1275
  */
1276
1276
  welcomeMessages?: (WidgetWelcomeMessage)[] | undefined;
1277
- /**
1278
- * Minimum gap in minutes between the current time and the earliest calendar slot that can be booked. If omitted or set to 0, current behavior is preserved.
1279
- * @public
1280
- */
1281
- minimumBookingGapMinutes?: number | undefined;
1282
1277
  name: string;
1283
1278
  /**
1284
1279
  * The primary target for the widget. This target is used if no route rules are matched. The target can be a service, an agent, or a bot, and it specifies where the widget directs its interactions.
@@ -1286,15 +1281,20 @@ export interface CreateWidgetInput {
1286
1281
  */
1287
1282
  target: WidgetTarget;
1288
1283
  /**
1289
- * Controls whether unauthenticated users are allowed to start guest sessions through this widget. If omitted, the widget should be treated as authenticated-only.
1284
+ * Controls whether unauthenticated users are allowed to start guest sessions through this widget. If omitted, false is assumed and the widget should be treated as authenticated-only.
1290
1285
  * @public
1291
1286
  */
1292
1287
  anonymousSessionsEnabled?: boolean | undefined;
1293
1288
  /**
1294
- * Controls whether only unauthenticated users are allowed to start guest sessions through this widget. When enabled, anonymousSessionsEnabled is treated as enabled as well.
1289
+ * Controls whether only unauthenticated users are allowed to start guest sessions through this widget. If omitted, false is assumed. When enabled, anonymousSessionsEnabled is treated as enabled as well, login methods should be hidden, and the widget should start the anonymous flow directly.
1295
1290
  * @public
1296
1291
  */
1297
1292
  anonymousSessionsOnly?: boolean | undefined;
1293
+ /**
1294
+ * Controls whether anonymous visitors should receive generated display names instead of entering names manually. Applies only when anonymous sessions are allowed. If omitted, false is assumed.
1295
+ * @public
1296
+ */
1297
+ anonymousSessionsRandomNameEnabled?: boolean | undefined;
1298
1298
  /**
1299
1299
  * Actions that will be used if the specified route and the conditions within a specific action are met.
1300
1300
  * @public
@@ -1437,20 +1437,20 @@ export interface KiteConfig {
1437
1437
  */
1438
1438
  welcomeMessages?: (WidgetWelcomeMessage)[] | undefined;
1439
1439
  /**
1440
- * Controls whether unauthenticated users are allowed to start guest sessions through this widget.
1440
+ * Controls whether unauthenticated users are allowed to start guest sessions through this widget. If omitted, false is assumed and the widget should be treated as authenticated-only.
1441
1441
  * @public
1442
1442
  */
1443
1443
  anonymousSessionsEnabled?: boolean | undefined;
1444
1444
  /**
1445
- * Controls whether only unauthenticated users are allowed to start guest sessions through this widget.
1445
+ * Controls whether only unauthenticated users are allowed to start guest sessions through this widget. If omitted, false is assumed. When enabled, anonymousSessionsEnabled is treated as enabled as well, login methods should be hidden, and the widget should start the anonymous flow directly.
1446
1446
  * @public
1447
1447
  */
1448
1448
  anonymousSessionsOnly?: boolean | undefined;
1449
1449
  /**
1450
- * Minimum gap in minutes between the current time and the earliest calendar slot that can be booked. If omitted or set to 0, current behavior is preserved.
1450
+ * Controls whether anonymous visitors should receive generated display names instead of entering names manually. Applies only when anonymous sessions are allowed. If omitted, false is assumed.
1451
1451
  * @public
1452
1452
  */
1453
- minimumBookingGapMinutes?: number | undefined;
1453
+ anonymousSessionsRandomNameEnabled?: boolean | undefined;
1454
1454
  /**
1455
1455
  * A list of features that are supported.
1456
1456
  * @public
@@ -2113,11 +2113,6 @@ export interface UpdateWidgetInput {
2113
2113
  * @public
2114
2114
  */
2115
2115
  welcomeMessages?: (WidgetWelcomeMessage)[] | undefined;
2116
- /**
2117
- * Minimum gap in minutes between the current time and the earliest calendar slot that can be booked. If omitted or set to 0, current behavior is preserved.
2118
- * @public
2119
- */
2120
- minimumBookingGapMinutes?: number | undefined;
2121
2116
  name: string;
2122
2117
  /**
2123
2118
  * The primary target for the widget. This target is used if no route rules are matched. The target can be a service, an agent, or a bot, and it specifies where the widget directs its interactions.
@@ -2125,15 +2120,20 @@ export interface UpdateWidgetInput {
2125
2120
  */
2126
2121
  target: WidgetTarget;
2127
2122
  /**
2128
- * Controls whether unauthenticated users are allowed to start guest sessions through this widget. If omitted, the widget should be treated as authenticated-only.
2123
+ * Controls whether unauthenticated users are allowed to start guest sessions through this widget. If omitted, false is assumed and the widget should be treated as authenticated-only.
2129
2124
  * @public
2130
2125
  */
2131
2126
  anonymousSessionsEnabled?: boolean | undefined;
2132
2127
  /**
2133
- * Controls whether only unauthenticated users are allowed to start guest sessions through this widget. When enabled, anonymousSessionsEnabled is treated as enabled as well.
2128
+ * Controls whether only unauthenticated users are allowed to start guest sessions through this widget. If omitted, false is assumed. When enabled, anonymousSessionsEnabled is treated as enabled as well, login methods should be hidden, and the widget should start the anonymous flow directly.
2134
2129
  * @public
2135
2130
  */
2136
2131
  anonymousSessionsOnly?: boolean | undefined;
2132
+ /**
2133
+ * Controls whether anonymous visitors should receive generated display names instead of entering names manually. Applies only when anonymous sessions are allowed. If omitted, false is assumed.
2134
+ * @public
2135
+ */
2136
+ anonymousSessionsRandomNameEnabled?: boolean | undefined;
2137
2137
  /**
2138
2138
  * Actions that will be used if the specified route and the conditions within a specific action are met.
2139
2139
  * @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.3.2",
4
+ "version": "1.4.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",