@wildix/xbees-kite-client 1.0.11 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/models/models_0.js +34 -8
- package/dist-cjs/protocols/Aws_restJson1.js +62 -6
- package/dist-es/models/models_0.js +31 -7
- package/dist-es/protocols/Aws_restJson1.js +64 -8
- package/dist-types/commands/CancelCalendarEventCommand.d.ts +2 -0
- package/dist-types/commands/CreateWidgetCommand.d.ts +82 -22
- package/dist-types/commands/GetCalendarSlotsCommand.d.ts +2 -0
- package/dist-types/commands/GetConfigCommand.d.ts +3 -82
- package/dist-types/commands/GetWidgetCommand.d.ts +41 -11
- package/dist-types/commands/ListWidgetsCommand.d.ts +41 -11
- package/dist-types/commands/RescheduleCalendarEventCommand.d.ts +4 -0
- package/dist-types/commands/ScheduleCalendarEventCommand.d.ts +4 -0
- package/dist-types/commands/UpdateWidgetCommand.d.ts +82 -22
- package/dist-types/models/models_0.d.ts +49 -96
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListAgentsFilter = exports.WidgetNotFoundException = exports.
|
|
3
|
+
exports.ListAgentsFilter = exports.WidgetNotFoundException = exports.KiteVariant = exports.KiteFeatures = exports.TargetNotFoundException = exports.EventNotFoundException = exports.WidgetTarget = exports.WidgetRouteRule = exports.WidgetRouteTimeFrameDay = exports.Element = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelAccess = exports.ChannelNotFoundException = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChannelType = exports.RateLimitExceededException = exports.ForbiddenException = exports.ValidationException = void 0;
|
|
4
4
|
const KiteServiceException_1 = require("./KiteServiceException");
|
|
5
5
|
class ValidationException extends KiteServiceException_1.KiteServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -73,6 +73,19 @@ var ActionElement;
|
|
|
73
73
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
74
74
|
};
|
|
75
75
|
})(ActionElement = exports.ActionElement || (exports.ActionElement = {}));
|
|
76
|
+
class ChannelNotFoundException extends KiteServiceException_1.KiteServiceException {
|
|
77
|
+
constructor(opts) {
|
|
78
|
+
super({
|
|
79
|
+
name: "ChannelNotFoundException",
|
|
80
|
+
$fault: "client",
|
|
81
|
+
...opts
|
|
82
|
+
});
|
|
83
|
+
this.name = "ChannelNotFoundException";
|
|
84
|
+
this.$fault = "client";
|
|
85
|
+
Object.setPrototypeOf(this, ChannelNotFoundException.prototype);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
exports.ChannelNotFoundException = ChannelNotFoundException;
|
|
76
89
|
exports.ChannelAccess = {
|
|
77
90
|
PRIVATE: "private",
|
|
78
91
|
PUBLIC: "public",
|
|
@@ -129,13 +142,19 @@ var WidgetTarget;
|
|
|
129
142
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
130
143
|
};
|
|
131
144
|
})(WidgetTarget = exports.WidgetTarget || (exports.WidgetTarget = {}));
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
};
|
|
145
|
+
class EventNotFoundException extends KiteServiceException_1.KiteServiceException {
|
|
146
|
+
constructor(opts) {
|
|
147
|
+
super({
|
|
148
|
+
name: "EventNotFoundException",
|
|
149
|
+
$fault: "client",
|
|
150
|
+
...opts
|
|
151
|
+
});
|
|
152
|
+
this.name = "EventNotFoundException";
|
|
153
|
+
this.$fault = "client";
|
|
154
|
+
Object.setPrototypeOf(this, EventNotFoundException.prototype);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
exports.EventNotFoundException = EventNotFoundException;
|
|
139
158
|
class TargetNotFoundException extends KiteServiceException_1.KiteServiceException {
|
|
140
159
|
constructor(opts) {
|
|
141
160
|
super({
|
|
@@ -149,6 +168,13 @@ class TargetNotFoundException extends KiteServiceException_1.KiteServiceExceptio
|
|
|
149
168
|
}
|
|
150
169
|
}
|
|
151
170
|
exports.TargetNotFoundException = TargetNotFoundException;
|
|
171
|
+
exports.KiteFeatures = {
|
|
172
|
+
SCHEDULING: "scheduling",
|
|
173
|
+
};
|
|
174
|
+
exports.KiteVariant = {
|
|
175
|
+
DIRECT: "direct",
|
|
176
|
+
GROUP: "group",
|
|
177
|
+
};
|
|
152
178
|
class WidgetNotFoundException extends KiteServiceException_1.KiteServiceException {
|
|
153
179
|
constructor(opts) {
|
|
154
180
|
super({
|
|
@@ -36,7 +36,7 @@ const se_CreateWidgetCommand = async (input, context) => {
|
|
|
36
36
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
37
37
|
'appearance': _ => (0, smithy_client_1._json)(_),
|
|
38
38
|
'name': [],
|
|
39
|
-
'routes': _ => (
|
|
39
|
+
'routes': _ => se_WidgetRoutesList(_, context),
|
|
40
40
|
'target': _ => (0, smithy_client_1._json)(_),
|
|
41
41
|
'welcomeMessages': _ => (0, smithy_client_1._json)(_),
|
|
42
42
|
}));
|
|
@@ -218,7 +218,7 @@ const se_UpdateWidgetCommand = async (input, context) => {
|
|
|
218
218
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
219
219
|
'appearance': _ => (0, smithy_client_1._json)(_),
|
|
220
220
|
'name': [],
|
|
221
|
-
'routes': _ => (
|
|
221
|
+
'routes': _ => se_WidgetRoutesList(_, context),
|
|
222
222
|
'target': _ => (0, smithy_client_1._json)(_),
|
|
223
223
|
'welcomeMessages': _ => (0, smithy_client_1._json)(_),
|
|
224
224
|
}));
|
|
@@ -254,7 +254,7 @@ const de_CreateWidgetCommand = async (output, context) => {
|
|
|
254
254
|
});
|
|
255
255
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
256
256
|
const doc = (0, smithy_client_1.take)(data, {
|
|
257
|
-
'widget':
|
|
257
|
+
'widget': _ => de_Widget(_, context),
|
|
258
258
|
});
|
|
259
259
|
Object.assign(contents, doc);
|
|
260
260
|
return contents;
|
|
@@ -310,7 +310,7 @@ const de_GetWidgetCommand = async (output, context) => {
|
|
|
310
310
|
});
|
|
311
311
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
312
312
|
const doc = (0, smithy_client_1.take)(data, {
|
|
313
|
-
'widget':
|
|
313
|
+
'widget': _ => de_Widget(_, context),
|
|
314
314
|
});
|
|
315
315
|
Object.assign(contents, doc);
|
|
316
316
|
return contents;
|
|
@@ -402,7 +402,7 @@ const de_UpdateWidgetCommand = async (output, context) => {
|
|
|
402
402
|
});
|
|
403
403
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
404
404
|
const doc = (0, smithy_client_1.take)(data, {
|
|
405
|
-
'widget':
|
|
405
|
+
'widget': _ => de_Widget(_, context),
|
|
406
406
|
});
|
|
407
407
|
Object.assign(contents, doc);
|
|
408
408
|
return contents;
|
|
@@ -415,6 +415,9 @@ const de_CommandError = async (output, context) => {
|
|
|
415
415
|
};
|
|
416
416
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
417
417
|
switch (errorCode) {
|
|
418
|
+
case "ChannelNotFoundException":
|
|
419
|
+
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
420
|
+
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
418
421
|
case "ForbiddenException":
|
|
419
422
|
case "smithy.framework#ForbiddenException":
|
|
420
423
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
@@ -430,6 +433,9 @@ const de_CommandError = async (output, context) => {
|
|
|
430
433
|
case "WidgetNotFoundException":
|
|
431
434
|
case "wildix.xbees.kite#WidgetNotFoundException":
|
|
432
435
|
throw await de_WidgetNotFoundExceptionRes(parsedOutput, context);
|
|
436
|
+
case "EventNotFoundException":
|
|
437
|
+
case "wildix.xbees.kite#EventNotFoundException":
|
|
438
|
+
throw await de_EventNotFoundExceptionRes(parsedOutput, context);
|
|
433
439
|
default:
|
|
434
440
|
const parsedBody = parsedOutput.body;
|
|
435
441
|
return throwDefaultError({
|
|
@@ -484,6 +490,32 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
484
490
|
});
|
|
485
491
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
486
492
|
};
|
|
493
|
+
const de_ChannelNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
494
|
+
const contents = (0, smithy_client_1.map)({});
|
|
495
|
+
const data = parsedOutput.body;
|
|
496
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
497
|
+
'message': smithy_client_1.expectString,
|
|
498
|
+
});
|
|
499
|
+
Object.assign(contents, doc);
|
|
500
|
+
const exception = new models_0_1.ChannelNotFoundException({
|
|
501
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
502
|
+
...contents
|
|
503
|
+
});
|
|
504
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
505
|
+
};
|
|
506
|
+
const de_EventNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
507
|
+
const contents = (0, smithy_client_1.map)({});
|
|
508
|
+
const data = parsedOutput.body;
|
|
509
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
510
|
+
'message': smithy_client_1.expectString,
|
|
511
|
+
});
|
|
512
|
+
Object.assign(contents, doc);
|
|
513
|
+
const exception = new models_0_1.EventNotFoundException({
|
|
514
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
515
|
+
...contents
|
|
516
|
+
});
|
|
517
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
518
|
+
};
|
|
487
519
|
const de_TargetNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
488
520
|
const contents = (0, smithy_client_1.map)({});
|
|
489
521
|
const data = parsedOutput.body;
|
|
@@ -510,12 +542,36 @@ const de_WidgetNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
510
542
|
});
|
|
511
543
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
512
544
|
};
|
|
513
|
-
const
|
|
545
|
+
const se_WidgetRoutesList = (input, context) => {
|
|
546
|
+
return input.filter((e) => e != null).map(entry => {
|
|
547
|
+
return (0, smithy_client_1._json)(entry);
|
|
548
|
+
});
|
|
549
|
+
};
|
|
550
|
+
const de_Widget = (output, context) => {
|
|
551
|
+
return (0, smithy_client_1.take)(output, {
|
|
552
|
+
'appearance': smithy_client_1._json,
|
|
553
|
+
'company': smithy_client_1.expectString,
|
|
554
|
+
'createdAt': smithy_client_1.expectString,
|
|
555
|
+
'id': smithy_client_1.expectString,
|
|
556
|
+
'name': smithy_client_1.expectString,
|
|
557
|
+
'routes': (_) => de_WidgetRoutesList(_, context),
|
|
558
|
+
'target': (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
|
|
559
|
+
'updatedAt': smithy_client_1.expectString,
|
|
560
|
+
'welcomeMessages': smithy_client_1._json,
|
|
561
|
+
});
|
|
562
|
+
};
|
|
563
|
+
const de_WidgetRoutesList = (output, context) => {
|
|
514
564
|
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
515
565
|
return (0, smithy_client_1._json)(entry);
|
|
516
566
|
});
|
|
517
567
|
return retVal;
|
|
518
568
|
};
|
|
569
|
+
const de_WidgetsList = (output, context) => {
|
|
570
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
571
|
+
return de_Widget(entry, context);
|
|
572
|
+
});
|
|
573
|
+
return retVal;
|
|
574
|
+
};
|
|
519
575
|
const deserializeMetadata = (output) => ({
|
|
520
576
|
httpStatusCode: output.statusCode,
|
|
521
577
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -67,6 +67,18 @@ export var ActionElement;
|
|
|
67
67
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
68
68
|
};
|
|
69
69
|
})(ActionElement || (ActionElement = {}));
|
|
70
|
+
export class ChannelNotFoundException extends __BaseException {
|
|
71
|
+
constructor(opts) {
|
|
72
|
+
super({
|
|
73
|
+
name: "ChannelNotFoundException",
|
|
74
|
+
$fault: "client",
|
|
75
|
+
...opts
|
|
76
|
+
});
|
|
77
|
+
this.name = "ChannelNotFoundException";
|
|
78
|
+
this.$fault = "client";
|
|
79
|
+
Object.setPrototypeOf(this, ChannelNotFoundException.prototype);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
70
82
|
export const ChannelAccess = {
|
|
71
83
|
PRIVATE: "private",
|
|
72
84
|
PUBLIC: "public",
|
|
@@ -123,13 +135,18 @@ export var WidgetTarget;
|
|
|
123
135
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
124
136
|
};
|
|
125
137
|
})(WidgetTarget || (WidgetTarget = {}));
|
|
126
|
-
export
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
};
|
|
138
|
+
export class EventNotFoundException extends __BaseException {
|
|
139
|
+
constructor(opts) {
|
|
140
|
+
super({
|
|
141
|
+
name: "EventNotFoundException",
|
|
142
|
+
$fault: "client",
|
|
143
|
+
...opts
|
|
144
|
+
});
|
|
145
|
+
this.name = "EventNotFoundException";
|
|
146
|
+
this.$fault = "client";
|
|
147
|
+
Object.setPrototypeOf(this, EventNotFoundException.prototype);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
133
150
|
export class TargetNotFoundException extends __BaseException {
|
|
134
151
|
constructor(opts) {
|
|
135
152
|
super({
|
|
@@ -142,6 +159,13 @@ export class TargetNotFoundException extends __BaseException {
|
|
|
142
159
|
Object.setPrototypeOf(this, TargetNotFoundException.prototype);
|
|
143
160
|
}
|
|
144
161
|
}
|
|
162
|
+
export const KiteFeatures = {
|
|
163
|
+
SCHEDULING: "scheduling",
|
|
164
|
+
};
|
|
165
|
+
export const KiteVariant = {
|
|
166
|
+
DIRECT: "direct",
|
|
167
|
+
GROUP: "group",
|
|
168
|
+
};
|
|
145
169
|
export class WidgetNotFoundException extends __BaseException {
|
|
146
170
|
constructor(opts) {
|
|
147
171
|
super({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { KiteServiceException as __BaseException } from "../models/KiteServiceException";
|
|
2
|
-
import { ForbiddenException, RateLimitExceededException, TargetNotFoundException, ValidationException, WidgetNotFoundException, } from "../models/models_0";
|
|
2
|
+
import { ChannelNotFoundException, EventNotFoundException, ForbiddenException, RateLimitExceededException, TargetNotFoundException, ValidationException, WidgetNotFoundException, } from "../models/models_0";
|
|
3
3
|
import { requestBuilder as rb } from "@smithy/core";
|
|
4
|
-
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";
|
|
4
|
+
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, strictParseInt32 as __strictParseInt32, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
5
5
|
export const se_CancelCalendarEventCommand = async (input, context) => {
|
|
6
6
|
const b = rb(input, context);
|
|
7
7
|
const headers = {};
|
|
@@ -32,7 +32,7 @@ export const se_CreateWidgetCommand = async (input, context) => {
|
|
|
32
32
|
body = JSON.stringify(take(input, {
|
|
33
33
|
'appearance': _ => _json(_),
|
|
34
34
|
'name': [],
|
|
35
|
-
'routes': _ =>
|
|
35
|
+
'routes': _ => se_WidgetRoutesList(_, context),
|
|
36
36
|
'target': _ => _json(_),
|
|
37
37
|
'welcomeMessages': _ => _json(_),
|
|
38
38
|
}));
|
|
@@ -204,7 +204,7 @@ export const se_UpdateWidgetCommand = async (input, context) => {
|
|
|
204
204
|
body = JSON.stringify(take(input, {
|
|
205
205
|
'appearance': _ => _json(_),
|
|
206
206
|
'name': [],
|
|
207
|
-
'routes': _ =>
|
|
207
|
+
'routes': _ => se_WidgetRoutesList(_, context),
|
|
208
208
|
'target': _ => _json(_),
|
|
209
209
|
'welcomeMessages': _ => _json(_),
|
|
210
210
|
}));
|
|
@@ -238,7 +238,7 @@ export const de_CreateWidgetCommand = async (output, context) => {
|
|
|
238
238
|
});
|
|
239
239
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
240
240
|
const doc = take(data, {
|
|
241
|
-
'widget':
|
|
241
|
+
'widget': _ => de_Widget(_, context),
|
|
242
242
|
});
|
|
243
243
|
Object.assign(contents, doc);
|
|
244
244
|
return contents;
|
|
@@ -290,7 +290,7 @@ export const de_GetWidgetCommand = async (output, context) => {
|
|
|
290
290
|
});
|
|
291
291
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
292
292
|
const doc = take(data, {
|
|
293
|
-
'widget':
|
|
293
|
+
'widget': _ => de_Widget(_, context),
|
|
294
294
|
});
|
|
295
295
|
Object.assign(contents, doc);
|
|
296
296
|
return contents;
|
|
@@ -376,7 +376,7 @@ export const de_UpdateWidgetCommand = async (output, context) => {
|
|
|
376
376
|
});
|
|
377
377
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
378
378
|
const doc = take(data, {
|
|
379
|
-
'widget':
|
|
379
|
+
'widget': _ => de_Widget(_, context),
|
|
380
380
|
});
|
|
381
381
|
Object.assign(contents, doc);
|
|
382
382
|
return contents;
|
|
@@ -388,6 +388,9 @@ const de_CommandError = async (output, context) => {
|
|
|
388
388
|
};
|
|
389
389
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
390
390
|
switch (errorCode) {
|
|
391
|
+
case "ChannelNotFoundException":
|
|
392
|
+
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
393
|
+
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
391
394
|
case "ForbiddenException":
|
|
392
395
|
case "smithy.framework#ForbiddenException":
|
|
393
396
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
@@ -403,6 +406,9 @@ const de_CommandError = async (output, context) => {
|
|
|
403
406
|
case "WidgetNotFoundException":
|
|
404
407
|
case "wildix.xbees.kite#WidgetNotFoundException":
|
|
405
408
|
throw await de_WidgetNotFoundExceptionRes(parsedOutput, context);
|
|
409
|
+
case "EventNotFoundException":
|
|
410
|
+
case "wildix.xbees.kite#EventNotFoundException":
|
|
411
|
+
throw await de_EventNotFoundExceptionRes(parsedOutput, context);
|
|
406
412
|
default:
|
|
407
413
|
const parsedBody = parsedOutput.body;
|
|
408
414
|
return throwDefaultError({
|
|
@@ -457,6 +463,32 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
457
463
|
});
|
|
458
464
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
459
465
|
};
|
|
466
|
+
const de_ChannelNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
467
|
+
const contents = map({});
|
|
468
|
+
const data = parsedOutput.body;
|
|
469
|
+
const doc = take(data, {
|
|
470
|
+
'message': __expectString,
|
|
471
|
+
});
|
|
472
|
+
Object.assign(contents, doc);
|
|
473
|
+
const exception = new ChannelNotFoundException({
|
|
474
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
475
|
+
...contents
|
|
476
|
+
});
|
|
477
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
478
|
+
};
|
|
479
|
+
const de_EventNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
480
|
+
const contents = map({});
|
|
481
|
+
const data = parsedOutput.body;
|
|
482
|
+
const doc = take(data, {
|
|
483
|
+
'message': __expectString,
|
|
484
|
+
});
|
|
485
|
+
Object.assign(contents, doc);
|
|
486
|
+
const exception = new EventNotFoundException({
|
|
487
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
488
|
+
...contents
|
|
489
|
+
});
|
|
490
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
491
|
+
};
|
|
460
492
|
const de_TargetNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
461
493
|
const contents = map({});
|
|
462
494
|
const data = parsedOutput.body;
|
|
@@ -483,12 +515,36 @@ const de_WidgetNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
483
515
|
});
|
|
484
516
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
485
517
|
};
|
|
486
|
-
const
|
|
518
|
+
const se_WidgetRoutesList = (input, context) => {
|
|
519
|
+
return input.filter((e) => e != null).map(entry => {
|
|
520
|
+
return _json(entry);
|
|
521
|
+
});
|
|
522
|
+
};
|
|
523
|
+
const de_Widget = (output, context) => {
|
|
524
|
+
return take(output, {
|
|
525
|
+
'appearance': _json,
|
|
526
|
+
'company': __expectString,
|
|
527
|
+
'createdAt': __expectString,
|
|
528
|
+
'id': __expectString,
|
|
529
|
+
'name': __expectString,
|
|
530
|
+
'routes': (_) => de_WidgetRoutesList(_, context),
|
|
531
|
+
'target': (_) => _json(__expectUnion(_)),
|
|
532
|
+
'updatedAt': __expectString,
|
|
533
|
+
'welcomeMessages': _json,
|
|
534
|
+
});
|
|
535
|
+
};
|
|
536
|
+
const de_WidgetRoutesList = (output, context) => {
|
|
487
537
|
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
488
538
|
return _json(entry);
|
|
489
539
|
});
|
|
490
540
|
return retVal;
|
|
491
541
|
};
|
|
542
|
+
const de_WidgetsList = (output, context) => {
|
|
543
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
544
|
+
return de_Widget(entry, context);
|
|
545
|
+
});
|
|
546
|
+
return retVal;
|
|
547
|
+
};
|
|
492
548
|
const deserializeMetadata = (output) => ({
|
|
493
549
|
httpStatusCode: output.statusCode,
|
|
494
550
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -132,6 +132,8 @@ declare const CancelCalendarEventCommand_base: {
|
|
|
132
132
|
* @see {@link CancelCalendarEventCommandOutput} for command's `response` shape.
|
|
133
133
|
* @see {@link KiteClientResolvedConfig | config} for KiteClient's `config` shape.
|
|
134
134
|
*
|
|
135
|
+
* @throws {@link ChannelNotFoundException} (client fault)
|
|
136
|
+
*
|
|
135
137
|
* @throws {@link ValidationException} (client fault)
|
|
136
138
|
*
|
|
137
139
|
* @throws {@link ForbiddenException} (client fault)
|
|
@@ -60,6 +60,36 @@ declare const CreateWidgetCommand_base: {
|
|
|
60
60
|
* },
|
|
61
61
|
* },
|
|
62
62
|
* ],
|
|
63
|
+
* welcomeMessages: [ // WidgetWelcomeMessagesList
|
|
64
|
+
* { // WidgetWelcomeMessage
|
|
65
|
+
* text: "STRING_VALUE",
|
|
66
|
+
* elements: [ // ElementsList
|
|
67
|
+
* { // Element Union: only one key present
|
|
68
|
+
* actions: [ // ActionsElementsList
|
|
69
|
+
* { // ActionElement Union: only one key present
|
|
70
|
+
* button: { // ButtonElement
|
|
71
|
+
* text: "STRING_VALUE", // required
|
|
72
|
+
* variant: "contained" || "outlined",
|
|
73
|
+
* disabled: true || false,
|
|
74
|
+
* handler: { // ButtonHandler Union: only one key present
|
|
75
|
+
* link: { // ButtonLinkHandler
|
|
76
|
+
* url: "STRING_VALUE", // required
|
|
77
|
+
* },
|
|
78
|
+
* reply: { // ButtonReplyHandler
|
|
79
|
+
* text: "STRING_VALUE",
|
|
80
|
+
* },
|
|
81
|
+
* action: { // ButtonActionHandler
|
|
82
|
+
* id: "STRING_VALUE", // required
|
|
83
|
+
* },
|
|
84
|
+
* },
|
|
85
|
+
* },
|
|
86
|
+
* },
|
|
87
|
+
* ],
|
|
88
|
+
* },
|
|
89
|
+
* ],
|
|
90
|
+
* delay: Number("int"),
|
|
91
|
+
* },
|
|
92
|
+
* ],
|
|
63
93
|
* target: { // WidgetTarget Union: only one key present
|
|
64
94
|
* service: { // WidgetServiceTarget
|
|
65
95
|
* id: Number("int"), // required
|
|
@@ -74,25 +104,25 @@ declare const CreateWidgetCommand_base: {
|
|
|
74
104
|
* },
|
|
75
105
|
* },
|
|
76
106
|
* ],
|
|
77
|
-
* welcomeMessages: [
|
|
78
|
-
* {
|
|
107
|
+
* welcomeMessages: [
|
|
108
|
+
* {
|
|
79
109
|
* text: "STRING_VALUE",
|
|
80
|
-
* elements: [
|
|
81
|
-
* {
|
|
82
|
-
* actions: [
|
|
83
|
-
* {
|
|
84
|
-
* button: {
|
|
110
|
+
* elements: [
|
|
111
|
+
* {// Union: only one key present
|
|
112
|
+
* actions: [
|
|
113
|
+
* {// Union: only one key present
|
|
114
|
+
* button: {
|
|
85
115
|
* text: "STRING_VALUE", // required
|
|
86
116
|
* variant: "contained" || "outlined",
|
|
87
117
|
* disabled: true || false,
|
|
88
|
-
* handler: {
|
|
89
|
-
* link: {
|
|
118
|
+
* handler: {// Union: only one key present
|
|
119
|
+
* link: {
|
|
90
120
|
* url: "STRING_VALUE", // required
|
|
91
121
|
* },
|
|
92
|
-
* reply: {
|
|
122
|
+
* reply: {
|
|
93
123
|
* text: "STRING_VALUE",
|
|
94
124
|
* },
|
|
95
|
-
* action: {
|
|
125
|
+
* action: {
|
|
96
126
|
* id: "STRING_VALUE", // required
|
|
97
127
|
* },
|
|
98
128
|
* },
|
|
@@ -148,6 +178,36 @@ declare const CreateWidgetCommand_base: {
|
|
|
148
178
|
* // },
|
|
149
179
|
* // },
|
|
150
180
|
* // ],
|
|
181
|
+
* // welcomeMessages: [ // WidgetWelcomeMessagesList
|
|
182
|
+
* // { // WidgetWelcomeMessage
|
|
183
|
+
* // text: "STRING_VALUE",
|
|
184
|
+
* // elements: [ // ElementsList
|
|
185
|
+
* // { // Element Union: only one key present
|
|
186
|
+
* // actions: [ // ActionsElementsList
|
|
187
|
+
* // { // ActionElement Union: only one key present
|
|
188
|
+
* // button: { // ButtonElement
|
|
189
|
+
* // text: "STRING_VALUE", // required
|
|
190
|
+
* // variant: "contained" || "outlined",
|
|
191
|
+
* // disabled: true || false,
|
|
192
|
+
* // handler: { // ButtonHandler Union: only one key present
|
|
193
|
+
* // link: { // ButtonLinkHandler
|
|
194
|
+
* // url: "STRING_VALUE", // required
|
|
195
|
+
* // },
|
|
196
|
+
* // reply: { // ButtonReplyHandler
|
|
197
|
+
* // text: "STRING_VALUE",
|
|
198
|
+
* // },
|
|
199
|
+
* // action: { // ButtonActionHandler
|
|
200
|
+
* // id: "STRING_VALUE", // required
|
|
201
|
+
* // },
|
|
202
|
+
* // },
|
|
203
|
+
* // },
|
|
204
|
+
* // },
|
|
205
|
+
* // ],
|
|
206
|
+
* // },
|
|
207
|
+
* // ],
|
|
208
|
+
* // delay: Number("int"),
|
|
209
|
+
* // },
|
|
210
|
+
* // ],
|
|
151
211
|
* // target: { // WidgetTarget Union: only one key present
|
|
152
212
|
* // service: { // WidgetServiceTarget
|
|
153
213
|
* // id: Number("int"), // required
|
|
@@ -162,25 +222,25 @@ declare const CreateWidgetCommand_base: {
|
|
|
162
222
|
* // },
|
|
163
223
|
* // },
|
|
164
224
|
* // ],
|
|
165
|
-
* // welcomeMessages: [
|
|
166
|
-
* // {
|
|
225
|
+
* // welcomeMessages: [
|
|
226
|
+
* // {
|
|
167
227
|
* // text: "STRING_VALUE",
|
|
168
|
-
* // elements: [
|
|
169
|
-
* // {
|
|
170
|
-
* // actions: [
|
|
171
|
-
* // {
|
|
172
|
-
* // button: {
|
|
228
|
+
* // elements: [
|
|
229
|
+
* // {// Union: only one key present
|
|
230
|
+
* // actions: [
|
|
231
|
+
* // {// Union: only one key present
|
|
232
|
+
* // button: {
|
|
173
233
|
* // text: "STRING_VALUE", // required
|
|
174
234
|
* // variant: "contained" || "outlined",
|
|
175
235
|
* // disabled: true || false,
|
|
176
|
-
* // handler: {
|
|
177
|
-
* // link: {
|
|
236
|
+
* // handler: {// Union: only one key present
|
|
237
|
+
* // link: {
|
|
178
238
|
* // url: "STRING_VALUE", // required
|
|
179
239
|
* // },
|
|
180
|
-
* // reply: {
|
|
240
|
+
* // reply: {
|
|
181
241
|
* // text: "STRING_VALUE",
|
|
182
242
|
* // },
|
|
183
|
-
* // action: {
|
|
243
|
+
* // action: {
|
|
184
244
|
* // id: "STRING_VALUE", // required
|
|
185
245
|
* // },
|
|
186
246
|
* // },
|
|
@@ -75,6 +75,8 @@ declare const GetCalendarSlotsCommand_base: {
|
|
|
75
75
|
* @see {@link GetCalendarSlotsCommandOutput} for command's `response` shape.
|
|
76
76
|
* @see {@link KiteClientResolvedConfig | config} for KiteClient's `config` shape.
|
|
77
77
|
*
|
|
78
|
+
* @throws {@link TargetNotFoundException} (client fault)
|
|
79
|
+
*
|
|
78
80
|
* @throws {@link ValidationException} (client fault)
|
|
79
81
|
*
|
|
80
82
|
* @throws {@link ForbiddenException} (client fault)
|
|
@@ -82,8 +82,8 @@ declare const GetConfigCommand_base: {
|
|
|
82
82
|
* // topSubtitle: "STRING_VALUE",
|
|
83
83
|
* // },
|
|
84
84
|
* // },
|
|
85
|
-
* // welcomeMessages: [ //
|
|
86
|
-
* // { //
|
|
85
|
+
* // welcomeMessages: [ // WidgetWelcomeMessagesList
|
|
86
|
+
* // { // WidgetWelcomeMessage
|
|
87
87
|
* // text: "STRING_VALUE",
|
|
88
88
|
* // elements: [ // ElementsList
|
|
89
89
|
* // { // Element Union: only one key present
|
|
@@ -109,86 +109,7 @@ declare const GetConfigCommand_base: {
|
|
|
109
109
|
* // ],
|
|
110
110
|
* // },
|
|
111
111
|
* // ],
|
|
112
|
-
* //
|
|
113
|
-
* // { // MessageAttachment
|
|
114
|
-
* // id: "STRING_VALUE", // required
|
|
115
|
-
* // fsId: "STRING_VALUE", // required
|
|
116
|
-
* // mime: "STRING_VALUE",
|
|
117
|
-
* // name: "STRING_VALUE", // required
|
|
118
|
-
* // size: Number("int"), // required
|
|
119
|
-
* // width: Number("int"),
|
|
120
|
-
* // height: Number("int"),
|
|
121
|
-
* // thumbnail: "STRING_VALUE",
|
|
122
|
-
* // },
|
|
123
|
-
* // ],
|
|
124
|
-
* // quote: { // MessageQuote
|
|
125
|
-
* // messageId: "STRING_VALUE", // required
|
|
126
|
-
* // channelId: "STRING_VALUE", // required
|
|
127
|
-
* // user: {
|
|
128
|
-
* // id: "STRING_VALUE", // required
|
|
129
|
-
* // name: "STRING_VALUE",
|
|
130
|
-
* // email: "STRING_VALUE",
|
|
131
|
-
* // phone: "STRING_VALUE",
|
|
132
|
-
* // picture: "STRING_VALUE",
|
|
133
|
-
* // locale: "STRING_VALUE",
|
|
134
|
-
* // timeZone: "STRING_VALUE",
|
|
135
|
-
* // company: "STRING_VALUE",
|
|
136
|
-
* // bot: true || false,
|
|
137
|
-
* // pbxDomain: "STRING_VALUE",
|
|
138
|
-
* // pbxPort: "STRING_VALUE",
|
|
139
|
-
* // pbxExtension: "STRING_VALUE",
|
|
140
|
-
* // pbxSerial: "STRING_VALUE",
|
|
141
|
-
* // pbxUserId: "STRING_VALUE",
|
|
142
|
-
* // createdAt: "STRING_VALUE",
|
|
143
|
-
* // updatedAt: "STRING_VALUE",
|
|
144
|
-
* // },
|
|
145
|
-
* // text: "STRING_VALUE",
|
|
146
|
-
* // attachments: [
|
|
147
|
-
* // {
|
|
148
|
-
* // id: "STRING_VALUE", // required
|
|
149
|
-
* // fsId: "STRING_VALUE", // required
|
|
150
|
-
* // mime: "STRING_VALUE",
|
|
151
|
-
* // name: "STRING_VALUE", // required
|
|
152
|
-
* // size: Number("int"), // required
|
|
153
|
-
* // width: Number("int"),
|
|
154
|
-
* // height: Number("int"),
|
|
155
|
-
* // thumbnail: "STRING_VALUE",
|
|
156
|
-
* // },
|
|
157
|
-
* // ],
|
|
158
|
-
* // forward: { // MessageForward
|
|
159
|
-
* // forwardCompany: "STRING_VALUE",
|
|
160
|
-
* // forwardDate: "STRING_VALUE", // required
|
|
161
|
-
* // forwardEmail: "STRING_VALUE",
|
|
162
|
-
* // forwardName: "STRING_VALUE",
|
|
163
|
-
* // messageId: "STRING_VALUE", // required
|
|
164
|
-
* // channelId: "STRING_VALUE", // required
|
|
165
|
-
* // },
|
|
166
|
-
* // mentions: [
|
|
167
|
-
* // "<User>",
|
|
168
|
-
* // ],
|
|
169
|
-
* // giphy: { // MessageGiphy
|
|
170
|
-
* // id: "STRING_VALUE", // required
|
|
171
|
-
* // size: "STRING_VALUE", // required
|
|
172
|
-
* // url: "STRING_VALUE", // required
|
|
173
|
-
* // height: "STRING_VALUE", // required
|
|
174
|
-
* // width: "STRING_VALUE", // required
|
|
175
|
-
* // },
|
|
176
|
-
* // createdAt: "STRING_VALUE", // required
|
|
177
|
-
* // updatedAt: "STRING_VALUE",
|
|
178
|
-
* // },
|
|
179
|
-
* // forward: {
|
|
180
|
-
* // forwardCompany: "STRING_VALUE",
|
|
181
|
-
* // forwardDate: "STRING_VALUE", // required
|
|
182
|
-
* // forwardEmail: "STRING_VALUE",
|
|
183
|
-
* // forwardName: "STRING_VALUE",
|
|
184
|
-
* // messageId: "STRING_VALUE", // required
|
|
185
|
-
* // channelId: "STRING_VALUE", // required
|
|
186
|
-
* // },
|
|
187
|
-
* // messageId: "STRING_VALUE", // required
|
|
188
|
-
* // mentions: [ // UsersIdList
|
|
189
|
-
* // "STRING_VALUE",
|
|
190
|
-
* // ],
|
|
191
|
-
* // user: "<User>", // required
|
|
112
|
+
* // delay: Number("int"),
|
|
192
113
|
* // },
|
|
193
114
|
* // ],
|
|
194
115
|
* // features: [ // KiteFeaturesList
|
|
@@ -66,6 +66,36 @@ declare const GetWidgetCommand_base: {
|
|
|
66
66
|
* // },
|
|
67
67
|
* // },
|
|
68
68
|
* // ],
|
|
69
|
+
* // welcomeMessages: [ // WidgetWelcomeMessagesList
|
|
70
|
+
* // { // WidgetWelcomeMessage
|
|
71
|
+
* // text: "STRING_VALUE",
|
|
72
|
+
* // elements: [ // ElementsList
|
|
73
|
+
* // { // Element Union: only one key present
|
|
74
|
+
* // actions: [ // ActionsElementsList
|
|
75
|
+
* // { // ActionElement Union: only one key present
|
|
76
|
+
* // button: { // ButtonElement
|
|
77
|
+
* // text: "STRING_VALUE", // required
|
|
78
|
+
* // variant: "contained" || "outlined",
|
|
79
|
+
* // disabled: true || false,
|
|
80
|
+
* // handler: { // ButtonHandler Union: only one key present
|
|
81
|
+
* // link: { // ButtonLinkHandler
|
|
82
|
+
* // url: "STRING_VALUE", // required
|
|
83
|
+
* // },
|
|
84
|
+
* // reply: { // ButtonReplyHandler
|
|
85
|
+
* // text: "STRING_VALUE",
|
|
86
|
+
* // },
|
|
87
|
+
* // action: { // ButtonActionHandler
|
|
88
|
+
* // id: "STRING_VALUE", // required
|
|
89
|
+
* // },
|
|
90
|
+
* // },
|
|
91
|
+
* // },
|
|
92
|
+
* // },
|
|
93
|
+
* // ],
|
|
94
|
+
* // },
|
|
95
|
+
* // ],
|
|
96
|
+
* // delay: Number("int"),
|
|
97
|
+
* // },
|
|
98
|
+
* // ],
|
|
69
99
|
* // target: { // WidgetTarget Union: only one key present
|
|
70
100
|
* // service: { // WidgetServiceTarget
|
|
71
101
|
* // id: Number("int"), // required
|
|
@@ -80,25 +110,25 @@ declare const GetWidgetCommand_base: {
|
|
|
80
110
|
* // },
|
|
81
111
|
* // },
|
|
82
112
|
* // ],
|
|
83
|
-
* // welcomeMessages: [
|
|
84
|
-
* // {
|
|
113
|
+
* // welcomeMessages: [
|
|
114
|
+
* // {
|
|
85
115
|
* // text: "STRING_VALUE",
|
|
86
|
-
* // elements: [
|
|
87
|
-
* // {
|
|
88
|
-
* // actions: [
|
|
89
|
-
* // {
|
|
90
|
-
* // button: {
|
|
116
|
+
* // elements: [
|
|
117
|
+
* // {// Union: only one key present
|
|
118
|
+
* // actions: [
|
|
119
|
+
* // {// Union: only one key present
|
|
120
|
+
* // button: {
|
|
91
121
|
* // text: "STRING_VALUE", // required
|
|
92
122
|
* // variant: "contained" || "outlined",
|
|
93
123
|
* // disabled: true || false,
|
|
94
|
-
* // handler: {
|
|
95
|
-
* // link: {
|
|
124
|
+
* // handler: {// Union: only one key present
|
|
125
|
+
* // link: {
|
|
96
126
|
* // url: "STRING_VALUE", // required
|
|
97
127
|
* // },
|
|
98
|
-
* // reply: {
|
|
128
|
+
* // reply: {
|
|
99
129
|
* // text: "STRING_VALUE",
|
|
100
130
|
* // },
|
|
101
|
-
* // action: {
|
|
131
|
+
* // action: {
|
|
102
132
|
* // id: "STRING_VALUE", // required
|
|
103
133
|
* // },
|
|
104
134
|
* // },
|
|
@@ -68,6 +68,36 @@ declare const ListWidgetsCommand_base: {
|
|
|
68
68
|
* // },
|
|
69
69
|
* // },
|
|
70
70
|
* // ],
|
|
71
|
+
* // welcomeMessages: [ // WidgetWelcomeMessagesList
|
|
72
|
+
* // { // WidgetWelcomeMessage
|
|
73
|
+
* // text: "STRING_VALUE",
|
|
74
|
+
* // elements: [ // ElementsList
|
|
75
|
+
* // { // Element Union: only one key present
|
|
76
|
+
* // actions: [ // ActionsElementsList
|
|
77
|
+
* // { // ActionElement Union: only one key present
|
|
78
|
+
* // button: { // ButtonElement
|
|
79
|
+
* // text: "STRING_VALUE", // required
|
|
80
|
+
* // variant: "contained" || "outlined",
|
|
81
|
+
* // disabled: true || false,
|
|
82
|
+
* // handler: { // ButtonHandler Union: only one key present
|
|
83
|
+
* // link: { // ButtonLinkHandler
|
|
84
|
+
* // url: "STRING_VALUE", // required
|
|
85
|
+
* // },
|
|
86
|
+
* // reply: { // ButtonReplyHandler
|
|
87
|
+
* // text: "STRING_VALUE",
|
|
88
|
+
* // },
|
|
89
|
+
* // action: { // ButtonActionHandler
|
|
90
|
+
* // id: "STRING_VALUE", // required
|
|
91
|
+
* // },
|
|
92
|
+
* // },
|
|
93
|
+
* // },
|
|
94
|
+
* // },
|
|
95
|
+
* // ],
|
|
96
|
+
* // },
|
|
97
|
+
* // ],
|
|
98
|
+
* // delay: Number("int"),
|
|
99
|
+
* // },
|
|
100
|
+
* // ],
|
|
71
101
|
* // target: { // WidgetTarget Union: only one key present
|
|
72
102
|
* // service: { // WidgetServiceTarget
|
|
73
103
|
* // id: Number("int"), // required
|
|
@@ -82,25 +112,25 @@ declare const ListWidgetsCommand_base: {
|
|
|
82
112
|
* // },
|
|
83
113
|
* // },
|
|
84
114
|
* // ],
|
|
85
|
-
* // welcomeMessages: [
|
|
86
|
-
* // {
|
|
115
|
+
* // welcomeMessages: [
|
|
116
|
+
* // {
|
|
87
117
|
* // text: "STRING_VALUE",
|
|
88
|
-
* // elements: [
|
|
89
|
-
* // {
|
|
90
|
-
* // actions: [
|
|
91
|
-
* // {
|
|
92
|
-
* // button: {
|
|
118
|
+
* // elements: [
|
|
119
|
+
* // {// Union: only one key present
|
|
120
|
+
* // actions: [
|
|
121
|
+
* // {// Union: only one key present
|
|
122
|
+
* // button: {
|
|
93
123
|
* // text: "STRING_VALUE", // required
|
|
94
124
|
* // variant: "contained" || "outlined",
|
|
95
125
|
* // disabled: true || false,
|
|
96
|
-
* // handler: {
|
|
97
|
-
* // link: {
|
|
126
|
+
* // handler: {// Union: only one key present
|
|
127
|
+
* // link: {
|
|
98
128
|
* // url: "STRING_VALUE", // required
|
|
99
129
|
* // },
|
|
100
|
-
* // reply: {
|
|
130
|
+
* // reply: {
|
|
101
131
|
* // text: "STRING_VALUE",
|
|
102
132
|
* // },
|
|
103
|
-
* // action: {
|
|
133
|
+
* // action: {
|
|
104
134
|
* // id: "STRING_VALUE", // required
|
|
105
135
|
* // },
|
|
106
136
|
* // },
|
|
@@ -141,6 +141,10 @@ declare const RescheduleCalendarEventCommand_base: {
|
|
|
141
141
|
* @see {@link RescheduleCalendarEventCommandOutput} for command's `response` shape.
|
|
142
142
|
* @see {@link KiteClientResolvedConfig | config} for KiteClient's `config` shape.
|
|
143
143
|
*
|
|
144
|
+
* @throws {@link ChannelNotFoundException} (client fault)
|
|
145
|
+
*
|
|
146
|
+
* @throws {@link EventNotFoundException} (client fault)
|
|
147
|
+
*
|
|
144
148
|
* @throws {@link ValidationException} (client fault)
|
|
145
149
|
*
|
|
146
150
|
* @throws {@link ForbiddenException} (client fault)
|
|
@@ -138,6 +138,10 @@ declare const ScheduleCalendarEventCommand_base: {
|
|
|
138
138
|
* @see {@link ScheduleCalendarEventCommandOutput} for command's `response` shape.
|
|
139
139
|
* @see {@link KiteClientResolvedConfig | config} for KiteClient's `config` shape.
|
|
140
140
|
*
|
|
141
|
+
* @throws {@link TargetNotFoundException} (client fault)
|
|
142
|
+
*
|
|
143
|
+
* @throws {@link ChannelNotFoundException} (client fault)
|
|
144
|
+
*
|
|
141
145
|
* @throws {@link ValidationException} (client fault)
|
|
142
146
|
*
|
|
143
147
|
* @throws {@link ForbiddenException} (client fault)
|
|
@@ -60,6 +60,36 @@ declare const UpdateWidgetCommand_base: {
|
|
|
60
60
|
* },
|
|
61
61
|
* },
|
|
62
62
|
* ],
|
|
63
|
+
* welcomeMessages: [ // WidgetWelcomeMessagesList
|
|
64
|
+
* { // WidgetWelcomeMessage
|
|
65
|
+
* text: "STRING_VALUE",
|
|
66
|
+
* elements: [ // ElementsList
|
|
67
|
+
* { // Element Union: only one key present
|
|
68
|
+
* actions: [ // ActionsElementsList
|
|
69
|
+
* { // ActionElement Union: only one key present
|
|
70
|
+
* button: { // ButtonElement
|
|
71
|
+
* text: "STRING_VALUE", // required
|
|
72
|
+
* variant: "contained" || "outlined",
|
|
73
|
+
* disabled: true || false,
|
|
74
|
+
* handler: { // ButtonHandler Union: only one key present
|
|
75
|
+
* link: { // ButtonLinkHandler
|
|
76
|
+
* url: "STRING_VALUE", // required
|
|
77
|
+
* },
|
|
78
|
+
* reply: { // ButtonReplyHandler
|
|
79
|
+
* text: "STRING_VALUE",
|
|
80
|
+
* },
|
|
81
|
+
* action: { // ButtonActionHandler
|
|
82
|
+
* id: "STRING_VALUE", // required
|
|
83
|
+
* },
|
|
84
|
+
* },
|
|
85
|
+
* },
|
|
86
|
+
* },
|
|
87
|
+
* ],
|
|
88
|
+
* },
|
|
89
|
+
* ],
|
|
90
|
+
* delay: Number("int"),
|
|
91
|
+
* },
|
|
92
|
+
* ],
|
|
63
93
|
* target: { // WidgetTarget Union: only one key present
|
|
64
94
|
* service: { // WidgetServiceTarget
|
|
65
95
|
* id: Number("int"), // required
|
|
@@ -74,25 +104,25 @@ declare const UpdateWidgetCommand_base: {
|
|
|
74
104
|
* },
|
|
75
105
|
* },
|
|
76
106
|
* ],
|
|
77
|
-
* welcomeMessages: [
|
|
78
|
-
* {
|
|
107
|
+
* welcomeMessages: [
|
|
108
|
+
* {
|
|
79
109
|
* text: "STRING_VALUE",
|
|
80
|
-
* elements: [
|
|
81
|
-
* {
|
|
82
|
-
* actions: [
|
|
83
|
-
* {
|
|
84
|
-
* button: {
|
|
110
|
+
* elements: [
|
|
111
|
+
* {// Union: only one key present
|
|
112
|
+
* actions: [
|
|
113
|
+
* {// Union: only one key present
|
|
114
|
+
* button: {
|
|
85
115
|
* text: "STRING_VALUE", // required
|
|
86
116
|
* variant: "contained" || "outlined",
|
|
87
117
|
* disabled: true || false,
|
|
88
|
-
* handler: {
|
|
89
|
-
* link: {
|
|
118
|
+
* handler: {// Union: only one key present
|
|
119
|
+
* link: {
|
|
90
120
|
* url: "STRING_VALUE", // required
|
|
91
121
|
* },
|
|
92
|
-
* reply: {
|
|
122
|
+
* reply: {
|
|
93
123
|
* text: "STRING_VALUE",
|
|
94
124
|
* },
|
|
95
|
-
* action: {
|
|
125
|
+
* action: {
|
|
96
126
|
* id: "STRING_VALUE", // required
|
|
97
127
|
* },
|
|
98
128
|
* },
|
|
@@ -149,6 +179,36 @@ declare const UpdateWidgetCommand_base: {
|
|
|
149
179
|
* // },
|
|
150
180
|
* // },
|
|
151
181
|
* // ],
|
|
182
|
+
* // welcomeMessages: [ // WidgetWelcomeMessagesList
|
|
183
|
+
* // { // WidgetWelcomeMessage
|
|
184
|
+
* // text: "STRING_VALUE",
|
|
185
|
+
* // elements: [ // ElementsList
|
|
186
|
+
* // { // Element Union: only one key present
|
|
187
|
+
* // actions: [ // ActionsElementsList
|
|
188
|
+
* // { // ActionElement Union: only one key present
|
|
189
|
+
* // button: { // ButtonElement
|
|
190
|
+
* // text: "STRING_VALUE", // required
|
|
191
|
+
* // variant: "contained" || "outlined",
|
|
192
|
+
* // disabled: true || false,
|
|
193
|
+
* // handler: { // ButtonHandler Union: only one key present
|
|
194
|
+
* // link: { // ButtonLinkHandler
|
|
195
|
+
* // url: "STRING_VALUE", // required
|
|
196
|
+
* // },
|
|
197
|
+
* // reply: { // ButtonReplyHandler
|
|
198
|
+
* // text: "STRING_VALUE",
|
|
199
|
+
* // },
|
|
200
|
+
* // action: { // ButtonActionHandler
|
|
201
|
+
* // id: "STRING_VALUE", // required
|
|
202
|
+
* // },
|
|
203
|
+
* // },
|
|
204
|
+
* // },
|
|
205
|
+
* // },
|
|
206
|
+
* // ],
|
|
207
|
+
* // },
|
|
208
|
+
* // ],
|
|
209
|
+
* // delay: Number("int"),
|
|
210
|
+
* // },
|
|
211
|
+
* // ],
|
|
152
212
|
* // target: { // WidgetTarget Union: only one key present
|
|
153
213
|
* // service: { // WidgetServiceTarget
|
|
154
214
|
* // id: Number("int"), // required
|
|
@@ -163,25 +223,25 @@ declare const UpdateWidgetCommand_base: {
|
|
|
163
223
|
* // },
|
|
164
224
|
* // },
|
|
165
225
|
* // ],
|
|
166
|
-
* // welcomeMessages: [
|
|
167
|
-
* // {
|
|
226
|
+
* // welcomeMessages: [
|
|
227
|
+
* // {
|
|
168
228
|
* // text: "STRING_VALUE",
|
|
169
|
-
* // elements: [
|
|
170
|
-
* // {
|
|
171
|
-
* // actions: [
|
|
172
|
-
* // {
|
|
173
|
-
* // button: {
|
|
229
|
+
* // elements: [
|
|
230
|
+
* // {// Union: only one key present
|
|
231
|
+
* // actions: [
|
|
232
|
+
* // {// Union: only one key present
|
|
233
|
+
* // button: {
|
|
174
234
|
* // text: "STRING_VALUE", // required
|
|
175
235
|
* // variant: "contained" || "outlined",
|
|
176
236
|
* // disabled: true || false,
|
|
177
|
-
* // handler: {
|
|
178
|
-
* // link: {
|
|
237
|
+
* // handler: {// Union: only one key present
|
|
238
|
+
* // link: {
|
|
179
239
|
* // url: "STRING_VALUE", // required
|
|
180
240
|
* // },
|
|
181
|
-
* // reply: {
|
|
241
|
+
* // reply: {
|
|
182
242
|
* // text: "STRING_VALUE",
|
|
183
243
|
* // },
|
|
184
|
-
* // action: {
|
|
244
|
+
* // action: {
|
|
185
245
|
* // id: "STRING_VALUE", // required
|
|
186
246
|
* // },
|
|
187
247
|
* // },
|
|
@@ -225,6 +225,17 @@ export declare namespace ActionElement {
|
|
|
225
225
|
}
|
|
226
226
|
const visit: <T>(value: ActionElement, visitor: Visitor<T>) => T;
|
|
227
227
|
}
|
|
228
|
+
/**
|
|
229
|
+
* @public
|
|
230
|
+
*/
|
|
231
|
+
export declare class ChannelNotFoundException extends __BaseException {
|
|
232
|
+
readonly name: "ChannelNotFoundException";
|
|
233
|
+
readonly $fault: "client";
|
|
234
|
+
/**
|
|
235
|
+
* @internal
|
|
236
|
+
*/
|
|
237
|
+
constructor(opts: __ExceptionOptionType<ChannelNotFoundException, __BaseException>);
|
|
238
|
+
}
|
|
228
239
|
/**
|
|
229
240
|
* @public
|
|
230
241
|
* @enum
|
|
@@ -343,23 +354,6 @@ export interface Channel {
|
|
|
343
354
|
createdBy: string;
|
|
344
355
|
updatedAt?: string;
|
|
345
356
|
}
|
|
346
|
-
/**
|
|
347
|
-
* @public
|
|
348
|
-
*/
|
|
349
|
-
export interface MessageAttachment {
|
|
350
|
-
id: string;
|
|
351
|
-
/**
|
|
352
|
-
* This *is* documentation about the field. Describe here what fsId and how to get it.
|
|
353
|
-
* @public
|
|
354
|
-
*/
|
|
355
|
-
fsId: string;
|
|
356
|
-
mime?: string;
|
|
357
|
-
name: string;
|
|
358
|
-
size: number;
|
|
359
|
-
width?: number;
|
|
360
|
-
height?: number;
|
|
361
|
-
thumbnail?: string;
|
|
362
|
-
}
|
|
363
357
|
/**
|
|
364
358
|
* @public
|
|
365
359
|
*/
|
|
@@ -385,63 +379,6 @@ export declare namespace Element {
|
|
|
385
379
|
}
|
|
386
380
|
const visit: <T>(value: Element, visitor: Visitor<T>) => T;
|
|
387
381
|
}
|
|
388
|
-
/**
|
|
389
|
-
* @public
|
|
390
|
-
*/
|
|
391
|
-
export interface MessageForward {
|
|
392
|
-
forwardCompany?: string;
|
|
393
|
-
forwardDate: string;
|
|
394
|
-
forwardEmail?: string;
|
|
395
|
-
forwardName?: string;
|
|
396
|
-
messageId: string;
|
|
397
|
-
channelId: string;
|
|
398
|
-
}
|
|
399
|
-
/**
|
|
400
|
-
* @public
|
|
401
|
-
*/
|
|
402
|
-
export interface MessageGiphy {
|
|
403
|
-
id: string;
|
|
404
|
-
size: string;
|
|
405
|
-
url: string;
|
|
406
|
-
height: string;
|
|
407
|
-
width: string;
|
|
408
|
-
}
|
|
409
|
-
/**
|
|
410
|
-
* @public
|
|
411
|
-
*/
|
|
412
|
-
export interface MessageQuote {
|
|
413
|
-
messageId: string;
|
|
414
|
-
channelId: string;
|
|
415
|
-
user: User;
|
|
416
|
-
text?: string;
|
|
417
|
-
attachments?: (MessageAttachment)[];
|
|
418
|
-
forward?: MessageForward;
|
|
419
|
-
mentions?: (User)[];
|
|
420
|
-
giphy?: MessageGiphy;
|
|
421
|
-
createdAt: string;
|
|
422
|
-
updatedAt?: string;
|
|
423
|
-
}
|
|
424
|
-
/**
|
|
425
|
-
* @public
|
|
426
|
-
*/
|
|
427
|
-
export interface WelcomeMessage {
|
|
428
|
-
text?: string;
|
|
429
|
-
elements?: (Element)[];
|
|
430
|
-
attachments?: (MessageAttachment)[];
|
|
431
|
-
quote?: MessageQuote;
|
|
432
|
-
forward?: MessageForward;
|
|
433
|
-
/**
|
|
434
|
-
* The unique identifier of the message. If not provided, an ID will be auto-generated.
|
|
435
|
-
* @public
|
|
436
|
-
*/
|
|
437
|
-
messageId: string;
|
|
438
|
-
/**
|
|
439
|
-
* A list of user IDs mentioned in the message.
|
|
440
|
-
* @public
|
|
441
|
-
*/
|
|
442
|
-
mentions?: (string)[];
|
|
443
|
-
user: User;
|
|
444
|
-
}
|
|
445
382
|
/**
|
|
446
383
|
* @public
|
|
447
384
|
*/
|
|
@@ -679,26 +616,31 @@ export declare namespace WidgetTarget {
|
|
|
679
616
|
/**
|
|
680
617
|
* @public
|
|
681
618
|
*/
|
|
682
|
-
export interface
|
|
683
|
-
|
|
684
|
-
|
|
619
|
+
export interface WidgetWelcomeMessage {
|
|
620
|
+
text?: string;
|
|
621
|
+
elements?: (Element)[];
|
|
685
622
|
/**
|
|
686
|
-
* The
|
|
623
|
+
* The time in milliseconds until the message will be visible to the end user.
|
|
687
624
|
* @public
|
|
688
625
|
*/
|
|
689
|
-
|
|
626
|
+
delay?: number;
|
|
690
627
|
}
|
|
691
628
|
/**
|
|
692
629
|
* @public
|
|
693
630
|
*/
|
|
694
|
-
export interface
|
|
695
|
-
|
|
696
|
-
|
|
631
|
+
export interface WidgetRoute {
|
|
632
|
+
id: string;
|
|
633
|
+
rules: (WidgetRouteRule)[];
|
|
697
634
|
/**
|
|
698
|
-
*
|
|
635
|
+
* A list of welcome messages that will be sent to the user when they first interact with the widget.
|
|
699
636
|
* @public
|
|
700
637
|
*/
|
|
701
|
-
|
|
638
|
+
welcomeMessages?: (WidgetWelcomeMessage)[];
|
|
639
|
+
/**
|
|
640
|
+
* The target will be used if the specified route matches the specified rules. If no rules are matched, the default target of the widget will be used.
|
|
641
|
+
* @public
|
|
642
|
+
*/
|
|
643
|
+
target: WidgetTarget;
|
|
702
644
|
}
|
|
703
645
|
/**
|
|
704
646
|
* @public
|
|
@@ -782,6 +724,17 @@ export interface DeleteWidgetInput {
|
|
|
782
724
|
*/
|
|
783
725
|
export interface DeleteWidgetOutput {
|
|
784
726
|
}
|
|
727
|
+
/**
|
|
728
|
+
* @public
|
|
729
|
+
*/
|
|
730
|
+
export declare class EventNotFoundException extends __BaseException {
|
|
731
|
+
readonly name: "EventNotFoundException";
|
|
732
|
+
readonly $fault: "client";
|
|
733
|
+
/**
|
|
734
|
+
* @internal
|
|
735
|
+
*/
|
|
736
|
+
constructor(opts: __ExceptionOptionType<EventNotFoundException, __BaseException>);
|
|
737
|
+
}
|
|
785
738
|
/**
|
|
786
739
|
* @public
|
|
787
740
|
*/
|
|
@@ -803,6 +756,17 @@ export interface GetCalendarSlotsInput {
|
|
|
803
756
|
export interface GetCalendarSlotsOutput {
|
|
804
757
|
calendar: CalendarAvailability;
|
|
805
758
|
}
|
|
759
|
+
/**
|
|
760
|
+
* @public
|
|
761
|
+
*/
|
|
762
|
+
export declare class TargetNotFoundException extends __BaseException {
|
|
763
|
+
readonly name: "TargetNotFoundException";
|
|
764
|
+
readonly $fault: "client";
|
|
765
|
+
/**
|
|
766
|
+
* @internal
|
|
767
|
+
*/
|
|
768
|
+
constructor(opts: __ExceptionOptionType<TargetNotFoundException, __BaseException>);
|
|
769
|
+
}
|
|
806
770
|
/**
|
|
807
771
|
* @public
|
|
808
772
|
*/
|
|
@@ -874,7 +838,7 @@ export interface KiteConfig {
|
|
|
874
838
|
* A list of welcome messages that should be visible to the user.
|
|
875
839
|
* @public
|
|
876
840
|
*/
|
|
877
|
-
welcomeMessages?: (
|
|
841
|
+
welcomeMessages?: (WidgetWelcomeMessage)[];
|
|
878
842
|
/**
|
|
879
843
|
* A list of features that are supported.
|
|
880
844
|
* @public
|
|
@@ -887,17 +851,6 @@ export interface KiteConfig {
|
|
|
887
851
|
export interface GetConfigOutput {
|
|
888
852
|
config: KiteConfig;
|
|
889
853
|
}
|
|
890
|
-
/**
|
|
891
|
-
* @public
|
|
892
|
-
*/
|
|
893
|
-
export declare class TargetNotFoundException extends __BaseException {
|
|
894
|
-
readonly name: "TargetNotFoundException";
|
|
895
|
-
readonly $fault: "client";
|
|
896
|
-
/**
|
|
897
|
-
* @internal
|
|
898
|
-
*/
|
|
899
|
-
constructor(opts: __ExceptionOptionType<TargetNotFoundException, __BaseException>);
|
|
900
|
-
}
|
|
901
854
|
/**
|
|
902
855
|
* @public
|
|
903
856
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-kite-client",
|
|
3
3
|
"description": "@wildix/xbees-kite-client client",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.13",
|
|
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",
|