@wildix/xbees-kite-client 1.3.3 → 1.4.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,6 +1,6 @@
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.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;
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.ChannelNotFoundException = exports.Element = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.TargetNotFoundException = 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
5
  class ForbiddenException extends KiteServiceException_1.KiteServiceException {
6
6
  name = "ForbiddenException";
@@ -96,6 +96,19 @@ exports.TemplateStatus = {
96
96
  PAUSED: "PAUSED",
97
97
  REJECTED: "REJECTED",
98
98
  };
99
+ class TargetNotFoundException extends KiteServiceException_1.KiteServiceException {
100
+ name = "TargetNotFoundException";
101
+ $fault = "client";
102
+ constructor(opts) {
103
+ super({
104
+ name: "TargetNotFoundException",
105
+ $fault: "client",
106
+ ...opts
107
+ });
108
+ Object.setPrototypeOf(this, TargetNotFoundException.prototype);
109
+ }
110
+ }
111
+ exports.TargetNotFoundException = TargetNotFoundException;
99
112
  exports.ChannelAccess = {
100
113
  PRIVATE: "private",
101
114
  PUBLIC: "public",
@@ -163,19 +176,6 @@ class ChannelNotFoundException extends KiteServiceException_1.KiteServiceExcepti
163
176
  }
164
177
  }
165
178
  exports.ChannelNotFoundException = ChannelNotFoundException;
166
- class TargetNotFoundException extends KiteServiceException_1.KiteServiceException {
167
- name = "TargetNotFoundException";
168
- $fault = "client";
169
- constructor(opts) {
170
- super({
171
- name: "TargetNotFoundException",
172
- $fault: "client",
173
- ...opts
174
- });
175
- Object.setPrototypeOf(this, TargetNotFoundException.prototype);
176
- }
177
- }
178
- exports.TargetNotFoundException = TargetNotFoundException;
179
179
  var RouteActionCondition;
180
180
  (function (RouteActionCondition) {
181
181
  RouteActionCondition.visit = (value, visitor) => {
@@ -89,6 +89,18 @@ export const TemplateStatus = {
89
89
  PAUSED: "PAUSED",
90
90
  REJECTED: "REJECTED",
91
91
  };
92
+ export class TargetNotFoundException extends __BaseException {
93
+ name = "TargetNotFoundException";
94
+ $fault = "client";
95
+ constructor(opts) {
96
+ super({
97
+ name: "TargetNotFoundException",
98
+ $fault: "client",
99
+ ...opts
100
+ });
101
+ Object.setPrototypeOf(this, TargetNotFoundException.prototype);
102
+ }
103
+ }
92
104
  export const ChannelAccess = {
93
105
  PRIVATE: "private",
94
106
  PUBLIC: "public",
@@ -155,18 +167,6 @@ export class ChannelNotFoundException extends __BaseException {
155
167
  Object.setPrototypeOf(this, ChannelNotFoundException.prototype);
156
168
  }
157
169
  }
158
- export class TargetNotFoundException extends __BaseException {
159
- name = "TargetNotFoundException";
160
- $fault = "client";
161
- constructor(opts) {
162
- super({
163
- name: "TargetNotFoundException",
164
- $fault: "client",
165
- ...opts
166
- });
167
- Object.setPrototypeOf(this, TargetNotFoundException.prototype);
168
- }
169
- }
170
170
  export var RouteActionCondition;
171
171
  (function (RouteActionCondition) {
172
172
  RouteActionCondition.visit = (value, visitor) => {
@@ -50,8 +50,8 @@ declare const GetConfigCommand_base: {
50
50
  * // uri: "STRING_VALUE", // required
51
51
  * // title: "STRING_VALUE", // required
52
52
  * // },
53
- * // agents: [ // UsersList // required
54
- * // { // User
53
+ * // agents: [ // KiteConfigAgentsList // required
54
+ * // { // KiteConfigAgent
55
55
  * // id: "STRING_VALUE", // required
56
56
  * // name: "STRING_VALUE",
57
57
  * // email: "STRING_VALUE",
@@ -61,10 +61,7 @@ declare const GetConfigCommand_base: {
61
61
  * // timeZone: "STRING_VALUE",
62
62
  * // company: "STRING_VALUE",
63
63
  * // bot: true || false,
64
- * // pbxDomain: "STRING_VALUE",
65
- * // pbxPort: "STRING_VALUE",
66
64
  * // pbxExtension: "STRING_VALUE",
67
- * // pbxSerial: "STRING_VALUE",
68
65
  * // pbxUserId: "STRING_VALUE",
69
66
  * // pbxGroupId: "STRING_VALUE",
70
67
  * // createdAt: "STRING_VALUE",
@@ -207,6 +207,17 @@ export interface TemplateWithParameters {
207
207
  name: string;
208
208
  parameters?: (TemplateParameter)[] | undefined;
209
209
  }
210
+ /**
211
+ * @public
212
+ */
213
+ export declare class TargetNotFoundException extends __BaseException {
214
+ readonly name: "TargetNotFoundException";
215
+ readonly $fault: "client";
216
+ /**
217
+ * @internal
218
+ */
219
+ constructor(opts: __ExceptionOptionType<TargetNotFoundException, __BaseException>);
220
+ }
210
221
  /**
211
222
  * @public
212
223
  * @enum
@@ -587,17 +598,6 @@ export interface Service {
587
598
  extensions: (string)[];
588
599
  pbx: ServicePbx;
589
600
  }
590
- /**
591
- * @public
592
- */
593
- export declare class TargetNotFoundException extends __BaseException {
594
- readonly name: "TargetNotFoundException";
595
- readonly $fault: "client";
596
- /**
597
- * @internal
598
- */
599
- constructor(opts: __ExceptionOptionType<TargetNotFoundException, __BaseException>);
600
- }
601
601
  /**
602
602
  * @public
603
603
  */
@@ -1173,17 +1173,17 @@ export interface CreateOrUpdateWidgetPreviewInput {
1173
1173
  */
1174
1174
  target: WidgetTarget;
1175
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.
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.
1177
1177
  * @public
1178
1178
  */
1179
1179
  anonymousSessionsEnabled?: boolean | undefined;
1180
1180
  /**
1181
- * 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.
1182
1182
  * @public
1183
1183
  */
1184
1184
  anonymousSessionsOnly?: boolean | undefined;
1185
1185
  /**
1186
- * Controls whether anonymous visitors should receive generated display names instead of entering names manually. Applies only when anonymous sessions are allowed.
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
1187
  * @public
1188
1188
  */
1189
1189
  anonymousSessionsRandomNameEnabled?: boolean | undefined;
@@ -1225,17 +1225,17 @@ export interface Widget {
1225
1225
  */
1226
1226
  target: WidgetTarget;
1227
1227
  /**
1228
- * 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.
1229
1229
  * @public
1230
1230
  */
1231
1231
  anonymousSessionsEnabled?: boolean | undefined;
1232
1232
  /**
1233
- * 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.
1234
1234
  * @public
1235
1235
  */
1236
1236
  anonymousSessionsOnly?: boolean | undefined;
1237
1237
  /**
1238
- * Controls whether anonymous visitors should receive generated display names instead of entering names manually. Applies only when anonymous sessions are allowed.
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
1239
  * @public
1240
1240
  */
1241
1241
  anonymousSessionsRandomNameEnabled?: boolean | undefined;
@@ -1281,17 +1281,17 @@ export interface CreateWidgetInput {
1281
1281
  */
1282
1282
  target: WidgetTarget;
1283
1283
  /**
1284
- * 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.
1285
1285
  * @public
1286
1286
  */
1287
1287
  anonymousSessionsEnabled?: boolean | undefined;
1288
1288
  /**
1289
- * 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.
1290
1290
  * @public
1291
1291
  */
1292
1292
  anonymousSessionsOnly?: boolean | undefined;
1293
1293
  /**
1294
- * Controls whether anonymous visitors should receive generated display names instead of entering names manually. Applies only when anonymous sessions are allowed.
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
1295
  * @public
1296
1296
  */
1297
1297
  anonymousSessionsRandomNameEnabled?: boolean | undefined;
@@ -1374,6 +1374,25 @@ export interface GetConfigInput {
1374
1374
  */
1375
1375
  targetRouteId?: string | undefined;
1376
1376
  }
1377
+ /**
1378
+ * @public
1379
+ */
1380
+ export interface KiteConfigAgent {
1381
+ id: string;
1382
+ name?: string | undefined;
1383
+ email?: string | undefined;
1384
+ phone?: string | undefined;
1385
+ picture?: string | undefined;
1386
+ locale?: string | undefined;
1387
+ timeZone?: string | undefined;
1388
+ company?: string | undefined;
1389
+ bot?: boolean | undefined;
1390
+ pbxExtension?: string | undefined;
1391
+ pbxUserId?: string | undefined;
1392
+ pbxGroupId?: string | undefined;
1393
+ createdAt?: string | undefined;
1394
+ updatedAt?: string | undefined;
1395
+ }
1377
1396
  /**
1378
1397
  * @public
1379
1398
  * @enum
@@ -1425,7 +1444,7 @@ export interface KiteConfig {
1425
1444
  targetRouteId?: string | undefined;
1426
1445
  targetVariant: KiteVariant;
1427
1446
  targetService?: KiteTargetService | undefined;
1428
- agents: (User)[];
1447
+ agents: (KiteConfigAgent)[];
1429
1448
  /**
1430
1449
  * The appearance settings like color scheme or custom texts.
1431
1450
  * @public
@@ -1437,17 +1456,17 @@ export interface KiteConfig {
1437
1456
  */
1438
1457
  welcomeMessages?: (WidgetWelcomeMessage)[] | undefined;
1439
1458
  /**
1440
- * Controls whether unauthenticated users are allowed to start guest sessions through this widget.
1459
+ * 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
1460
  * @public
1442
1461
  */
1443
1462
  anonymousSessionsEnabled?: boolean | undefined;
1444
1463
  /**
1445
- * Controls whether only unauthenticated users are allowed to start guest sessions through this widget.
1464
+ * 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
1465
  * @public
1447
1466
  */
1448
1467
  anonymousSessionsOnly?: boolean | undefined;
1449
1468
  /**
1450
- * Controls whether anonymous visitors should receive generated display names instead of entering names manually.
1469
+ * 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
1470
  * @public
1452
1471
  */
1453
1472
  anonymousSessionsRandomNameEnabled?: boolean | undefined;
@@ -2120,17 +2139,17 @@ export interface UpdateWidgetInput {
2120
2139
  */
2121
2140
  target: WidgetTarget;
2122
2141
  /**
2123
- * Controls whether unauthenticated users are allowed to start guest sessions through this widget. If omitted, the widget should be treated as authenticated-only.
2142
+ * 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.
2124
2143
  * @public
2125
2144
  */
2126
2145
  anonymousSessionsEnabled?: boolean | undefined;
2127
2146
  /**
2128
- * Controls whether only unauthenticated users are allowed to start guest sessions through this widget. When enabled, anonymousSessionsEnabled is treated as enabled as well.
2147
+ * 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.
2129
2148
  * @public
2130
2149
  */
2131
2150
  anonymousSessionsOnly?: boolean | undefined;
2132
2151
  /**
2133
- * Controls whether anonymous visitors should receive generated display names instead of entering names manually. Applies only when anonymous sessions are allowed.
2152
+ * 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
2153
  * @public
2135
2154
  */
2136
2155
  anonymousSessionsRandomNameEnabled?: boolean | undefined;
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.3",
4
+ "version": "1.4.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",