@wildix/xbees-kite-client 1.0.4 → 1.0.7
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/Kite.js +2 -0
- package/dist-cjs/commands/ListCalendarSlotsCommand.js +21 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +33 -1
- package/dist-cjs/protocols/Aws_restJson1.js +31 -2
- package/dist-es/Kite.js +2 -0
- package/dist-es/commands/ListCalendarSlotsCommand.js +17 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +32 -0
- package/dist-es/protocols/Aws_restJson1.js +28 -1
- package/dist-types/Kite.d.ts +7 -0
- package/dist-types/KiteClient.d.ts +3 -2
- package/dist-types/commands/CreateWidgetCommand.d.ts +72 -12
- package/dist-types/commands/GetConfigCommand.d.ts +53 -5
- package/dist-types/commands/GetWidgetCommand.d.ts +36 -6
- package/dist-types/commands/ListCalendarSlotsCommand.d.ts +64 -0
- package/dist-types/commands/ListWidgetsCommand.d.ts +36 -6
- package/dist-types/commands/UpdateWidgetCommand.d.ts +72 -12
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +173 -17
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/package.json +3 -2
package/dist-cjs/Kite.js
CHANGED
|
@@ -7,6 +7,7 @@ const DeleteWidgetCommand_1 = require("./commands/DeleteWidgetCommand");
|
|
|
7
7
|
const GetConfigCommand_1 = require("./commands/GetConfigCommand");
|
|
8
8
|
const GetWidgetCommand_1 = require("./commands/GetWidgetCommand");
|
|
9
9
|
const ListAgentsCommand_1 = require("./commands/ListAgentsCommand");
|
|
10
|
+
const ListCalendarSlotsCommand_1 = require("./commands/ListCalendarSlotsCommand");
|
|
10
11
|
const ListServicesCommand_1 = require("./commands/ListServicesCommand");
|
|
11
12
|
const ListWidgetsCommand_1 = require("./commands/ListWidgetsCommand");
|
|
12
13
|
const UpdateWidgetCommand_1 = require("./commands/UpdateWidgetCommand");
|
|
@@ -17,6 +18,7 @@ const commands = {
|
|
|
17
18
|
GetConfigCommand: GetConfigCommand_1.GetConfigCommand,
|
|
18
19
|
GetWidgetCommand: GetWidgetCommand_1.GetWidgetCommand,
|
|
19
20
|
ListAgentsCommand: ListAgentsCommand_1.ListAgentsCommand,
|
|
21
|
+
ListCalendarSlotsCommand: ListCalendarSlotsCommand_1.ListCalendarSlotsCommand,
|
|
20
22
|
ListServicesCommand: ListServicesCommand_1.ListServicesCommand,
|
|
21
23
|
ListWidgetsCommand: ListWidgetsCommand_1.ListWidgetsCommand,
|
|
22
24
|
UpdateWidgetCommand: UpdateWidgetCommand_1.UpdateWidgetCommand,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListCalendarSlotsCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class ListCalendarSlotsCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("Kite", "ListCalendarSlots", {})
|
|
15
|
+
.n("KiteClient", "ListCalendarSlotsCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_ListCalendarSlotsCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_ListCalendarSlotsCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.ListCalendarSlotsCommand = ListCalendarSlotsCommand;
|
|
@@ -6,6 +6,7 @@ tslib_1.__exportStar(require("./DeleteWidgetCommand"), exports);
|
|
|
6
6
|
tslib_1.__exportStar(require("./GetConfigCommand"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./GetWidgetCommand"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./ListAgentsCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./ListCalendarSlotsCommand"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./ListServicesCommand"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./ListWidgetsCommand"), exports);
|
|
11
12
|
tslib_1.__exportStar(require("./UpdateWidgetCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListAgentsFilter = exports.WidgetNotFoundException = exports.TargetNotFoundException = exports.KiteVariant = exports.KiteFeatures = exports.WidgetTarget = exports.WidgetRouteRule = exports.WidgetRouteTimeFrameDay = exports.RateLimitExceededException = exports.ForbiddenException = exports.ValidationException = void 0;
|
|
3
|
+
exports.ListAgentsFilter = exports.WidgetNotFoundException = exports.TargetNotFoundException = exports.KiteVariant = exports.KiteFeatures = exports.WidgetTarget = exports.WidgetRouteRule = exports.WidgetRouteTimeFrameDay = exports.Element = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = 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) {
|
|
@@ -45,6 +45,38 @@ class RateLimitExceededException extends KiteServiceException_1.KiteServiceExcep
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
exports.RateLimitExceededException = RateLimitExceededException;
|
|
48
|
+
var ButtonHandler;
|
|
49
|
+
(function (ButtonHandler) {
|
|
50
|
+
ButtonHandler.visit = (value, visitor) => {
|
|
51
|
+
if (value.link !== undefined)
|
|
52
|
+
return visitor.link(value.link);
|
|
53
|
+
if (value.reply !== undefined)
|
|
54
|
+
return visitor.reply(value.reply);
|
|
55
|
+
if (value.action !== undefined)
|
|
56
|
+
return visitor.action(value.action);
|
|
57
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
58
|
+
};
|
|
59
|
+
})(ButtonHandler = exports.ButtonHandler || (exports.ButtonHandler = {}));
|
|
60
|
+
exports.ButtonVariant = {
|
|
61
|
+
CONTAINED: "contained",
|
|
62
|
+
OUTLINED: "outlined",
|
|
63
|
+
};
|
|
64
|
+
var ActionElement;
|
|
65
|
+
(function (ActionElement) {
|
|
66
|
+
ActionElement.visit = (value, visitor) => {
|
|
67
|
+
if (value.button !== undefined)
|
|
68
|
+
return visitor.button(value.button);
|
|
69
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
70
|
+
};
|
|
71
|
+
})(ActionElement = exports.ActionElement || (exports.ActionElement = {}));
|
|
72
|
+
var Element;
|
|
73
|
+
(function (Element) {
|
|
74
|
+
Element.visit = (value, visitor) => {
|
|
75
|
+
if (value.actions !== undefined)
|
|
76
|
+
return visitor.actions(value.actions);
|
|
77
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
78
|
+
};
|
|
79
|
+
})(Element = exports.Element || (exports.Element = {}));
|
|
48
80
|
exports.WidgetRouteTimeFrameDay = {
|
|
49
81
|
EVERY_DAY: "EVERY_DAY",
|
|
50
82
|
FRIDAY: "FRIDAY",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateWidgetCommand = exports.de_ListWidgetsCommand = exports.de_ListServicesCommand = exports.de_ListAgentsCommand = exports.de_GetWidgetCommand = exports.de_GetConfigCommand = exports.de_DeleteWidgetCommand = exports.de_CreateWidgetCommand = exports.se_UpdateWidgetCommand = exports.se_ListWidgetsCommand = exports.se_ListServicesCommand = exports.se_ListAgentsCommand = exports.se_GetWidgetCommand = exports.se_GetConfigCommand = exports.se_DeleteWidgetCommand = exports.se_CreateWidgetCommand = void 0;
|
|
3
|
+
exports.de_UpdateWidgetCommand = exports.de_ListWidgetsCommand = exports.de_ListServicesCommand = exports.de_ListCalendarSlotsCommand = exports.de_ListAgentsCommand = exports.de_GetWidgetCommand = exports.de_GetConfigCommand = exports.de_DeleteWidgetCommand = exports.de_CreateWidgetCommand = exports.se_UpdateWidgetCommand = exports.se_ListWidgetsCommand = exports.se_ListServicesCommand = exports.se_ListCalendarSlotsCommand = exports.se_ListAgentsCommand = exports.se_GetWidgetCommand = exports.se_GetConfigCommand = exports.se_DeleteWidgetCommand = exports.se_CreateWidgetCommand = void 0;
|
|
4
4
|
const KiteServiceException_1 = require("../models/KiteServiceException");
|
|
5
5
|
const models_0_1 = require("../models/models_0");
|
|
6
6
|
const core_1 = require("@smithy/core");
|
|
@@ -89,6 +89,18 @@ const se_ListAgentsCommand = async (input, context) => {
|
|
|
89
89
|
return b.build();
|
|
90
90
|
};
|
|
91
91
|
exports.se_ListAgentsCommand = se_ListAgentsCommand;
|
|
92
|
+
const se_ListCalendarSlotsCommand = async (input, context) => {
|
|
93
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
94
|
+
const headers = {};
|
|
95
|
+
b.bp("/v2/kite/calendar/slots/{targetId}");
|
|
96
|
+
b.p('targetId', () => input.targetId, '{targetId}', false);
|
|
97
|
+
let body;
|
|
98
|
+
b.m("POST")
|
|
99
|
+
.h(headers)
|
|
100
|
+
.b(body);
|
|
101
|
+
return b.build();
|
|
102
|
+
};
|
|
103
|
+
exports.se_ListCalendarSlotsCommand = se_ListCalendarSlotsCommand;
|
|
92
104
|
const se_ListServicesCommand = async (input, context) => {
|
|
93
105
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
94
106
|
const headers = {};
|
|
@@ -215,6 +227,17 @@ const de_ListAgentsCommand = async (output, context) => {
|
|
|
215
227
|
return contents;
|
|
216
228
|
};
|
|
217
229
|
exports.de_ListAgentsCommand = de_ListAgentsCommand;
|
|
230
|
+
const de_ListCalendarSlotsCommand = async (output, context) => {
|
|
231
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
232
|
+
return de_CommandError(output, context);
|
|
233
|
+
}
|
|
234
|
+
const contents = (0, smithy_client_1.map)({
|
|
235
|
+
$metadata: deserializeMetadata(output),
|
|
236
|
+
});
|
|
237
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
238
|
+
return contents;
|
|
239
|
+
};
|
|
240
|
+
exports.de_ListCalendarSlotsCommand = de_ListCalendarSlotsCommand;
|
|
218
241
|
const de_ListServicesCommand = async (output, context) => {
|
|
219
242
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
220
243
|
return de_CommandError(output, context);
|
|
@@ -239,7 +262,7 @@ const de_ListWidgetsCommand = async (output, context) => {
|
|
|
239
262
|
});
|
|
240
263
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
241
264
|
const doc = (0, smithy_client_1.take)(data, {
|
|
242
|
-
'widgets':
|
|
265
|
+
'widgets': _ => de_WidgetsList(_, context),
|
|
243
266
|
});
|
|
244
267
|
Object.assign(contents, doc);
|
|
245
268
|
return contents;
|
|
@@ -362,6 +385,12 @@ const de_WidgetNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
362
385
|
});
|
|
363
386
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
364
387
|
};
|
|
388
|
+
const de_WidgetsList = (output, context) => {
|
|
389
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
390
|
+
return (0, smithy_client_1._json)(entry);
|
|
391
|
+
});
|
|
392
|
+
return retVal;
|
|
393
|
+
};
|
|
365
394
|
const deserializeMetadata = (output) => ({
|
|
366
395
|
httpStatusCode: output.statusCode,
|
|
367
396
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
package/dist-es/Kite.js
CHANGED
|
@@ -4,6 +4,7 @@ import { DeleteWidgetCommand, } from "./commands/DeleteWidgetCommand";
|
|
|
4
4
|
import { GetConfigCommand, } from "./commands/GetConfigCommand";
|
|
5
5
|
import { GetWidgetCommand, } from "./commands/GetWidgetCommand";
|
|
6
6
|
import { ListAgentsCommand, } from "./commands/ListAgentsCommand";
|
|
7
|
+
import { ListCalendarSlotsCommand, } from "./commands/ListCalendarSlotsCommand";
|
|
7
8
|
import { ListServicesCommand, } from "./commands/ListServicesCommand";
|
|
8
9
|
import { ListWidgetsCommand, } from "./commands/ListWidgetsCommand";
|
|
9
10
|
import { UpdateWidgetCommand, } from "./commands/UpdateWidgetCommand";
|
|
@@ -14,6 +15,7 @@ const commands = {
|
|
|
14
15
|
GetConfigCommand,
|
|
15
16
|
GetWidgetCommand,
|
|
16
17
|
ListAgentsCommand,
|
|
18
|
+
ListCalendarSlotsCommand,
|
|
17
19
|
ListServicesCommand,
|
|
18
20
|
ListWidgetsCommand,
|
|
19
21
|
UpdateWidgetCommand,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_ListCalendarSlotsCommand, se_ListCalendarSlotsCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class ListCalendarSlotsCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("Kite", "ListCalendarSlots", {})
|
|
12
|
+
.n("KiteClient", "ListCalendarSlotsCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_ListCalendarSlotsCommand)
|
|
15
|
+
.de(de_ListCalendarSlotsCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -3,6 +3,7 @@ export * from "./DeleteWidgetCommand";
|
|
|
3
3
|
export * from "./GetConfigCommand";
|
|
4
4
|
export * from "./GetWidgetCommand";
|
|
5
5
|
export * from "./ListAgentsCommand";
|
|
6
|
+
export * from "./ListCalendarSlotsCommand";
|
|
6
7
|
export * from "./ListServicesCommand";
|
|
7
8
|
export * from "./ListWidgetsCommand";
|
|
8
9
|
export * from "./UpdateWidgetCommand";
|
|
@@ -39,6 +39,38 @@ export class RateLimitExceededException extends __BaseException {
|
|
|
39
39
|
this.retryAfter = opts.retryAfter;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
+
export var ButtonHandler;
|
|
43
|
+
(function (ButtonHandler) {
|
|
44
|
+
ButtonHandler.visit = (value, visitor) => {
|
|
45
|
+
if (value.link !== undefined)
|
|
46
|
+
return visitor.link(value.link);
|
|
47
|
+
if (value.reply !== undefined)
|
|
48
|
+
return visitor.reply(value.reply);
|
|
49
|
+
if (value.action !== undefined)
|
|
50
|
+
return visitor.action(value.action);
|
|
51
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
52
|
+
};
|
|
53
|
+
})(ButtonHandler || (ButtonHandler = {}));
|
|
54
|
+
export const ButtonVariant = {
|
|
55
|
+
CONTAINED: "contained",
|
|
56
|
+
OUTLINED: "outlined",
|
|
57
|
+
};
|
|
58
|
+
export var ActionElement;
|
|
59
|
+
(function (ActionElement) {
|
|
60
|
+
ActionElement.visit = (value, visitor) => {
|
|
61
|
+
if (value.button !== undefined)
|
|
62
|
+
return visitor.button(value.button);
|
|
63
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
64
|
+
};
|
|
65
|
+
})(ActionElement || (ActionElement = {}));
|
|
66
|
+
export var Element;
|
|
67
|
+
(function (Element) {
|
|
68
|
+
Element.visit = (value, visitor) => {
|
|
69
|
+
if (value.actions !== undefined)
|
|
70
|
+
return visitor.actions(value.actions);
|
|
71
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
72
|
+
};
|
|
73
|
+
})(Element || (Element = {}));
|
|
42
74
|
export const WidgetRouteTimeFrameDay = {
|
|
43
75
|
EVERY_DAY: "EVERY_DAY",
|
|
44
76
|
FRIDAY: "FRIDAY",
|
|
@@ -81,6 +81,17 @@ export const se_ListAgentsCommand = async (input, context) => {
|
|
|
81
81
|
.b(body);
|
|
82
82
|
return b.build();
|
|
83
83
|
};
|
|
84
|
+
export const se_ListCalendarSlotsCommand = async (input, context) => {
|
|
85
|
+
const b = rb(input, context);
|
|
86
|
+
const headers = {};
|
|
87
|
+
b.bp("/v2/kite/calendar/slots/{targetId}");
|
|
88
|
+
b.p('targetId', () => input.targetId, '{targetId}', false);
|
|
89
|
+
let body;
|
|
90
|
+
b.m("POST")
|
|
91
|
+
.h(headers)
|
|
92
|
+
.b(body);
|
|
93
|
+
return b.build();
|
|
94
|
+
};
|
|
84
95
|
export const se_ListServicesCommand = async (input, context) => {
|
|
85
96
|
const b = rb(input, context);
|
|
86
97
|
const headers = {};
|
|
@@ -199,6 +210,16 @@ export const de_ListAgentsCommand = async (output, context) => {
|
|
|
199
210
|
Object.assign(contents, doc);
|
|
200
211
|
return contents;
|
|
201
212
|
};
|
|
213
|
+
export const de_ListCalendarSlotsCommand = async (output, context) => {
|
|
214
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
215
|
+
return de_CommandError(output, context);
|
|
216
|
+
}
|
|
217
|
+
const contents = map({
|
|
218
|
+
$metadata: deserializeMetadata(output),
|
|
219
|
+
});
|
|
220
|
+
await collectBody(output.body, context);
|
|
221
|
+
return contents;
|
|
222
|
+
};
|
|
202
223
|
export const de_ListServicesCommand = async (output, context) => {
|
|
203
224
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
204
225
|
return de_CommandError(output, context);
|
|
@@ -222,7 +243,7 @@ export const de_ListWidgetsCommand = async (output, context) => {
|
|
|
222
243
|
});
|
|
223
244
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
224
245
|
const doc = take(data, {
|
|
225
|
-
'widgets':
|
|
246
|
+
'widgets': _ => de_WidgetsList(_, context),
|
|
226
247
|
});
|
|
227
248
|
Object.assign(contents, doc);
|
|
228
249
|
return contents;
|
|
@@ -343,6 +364,12 @@ const de_WidgetNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
343
364
|
});
|
|
344
365
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
345
366
|
};
|
|
367
|
+
const de_WidgetsList = (output, context) => {
|
|
368
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
369
|
+
return _json(entry);
|
|
370
|
+
});
|
|
371
|
+
return retVal;
|
|
372
|
+
};
|
|
346
373
|
const deserializeMetadata = (output) => ({
|
|
347
374
|
httpStatusCode: output.statusCode,
|
|
348
375
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
package/dist-types/Kite.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { DeleteWidgetCommandInput, DeleteWidgetCommandOutput } from "./commands/
|
|
|
4
4
|
import { GetConfigCommandInput, GetConfigCommandOutput } from "./commands/GetConfigCommand";
|
|
5
5
|
import { GetWidgetCommandInput, GetWidgetCommandOutput } from "./commands/GetWidgetCommand";
|
|
6
6
|
import { ListAgentsCommandInput, ListAgentsCommandOutput } from "./commands/ListAgentsCommand";
|
|
7
|
+
import { ListCalendarSlotsCommandInput, ListCalendarSlotsCommandOutput } from "./commands/ListCalendarSlotsCommand";
|
|
7
8
|
import { ListServicesCommandInput, ListServicesCommandOutput } from "./commands/ListServicesCommand";
|
|
8
9
|
import { ListWidgetsCommandInput, ListWidgetsCommandOutput } from "./commands/ListWidgetsCommand";
|
|
9
10
|
import { UpdateWidgetCommandInput, UpdateWidgetCommandOutput } from "./commands/UpdateWidgetCommand";
|
|
@@ -39,6 +40,12 @@ export interface Kite {
|
|
|
39
40
|
listAgents(args: ListAgentsCommandInput, options?: __HttpHandlerOptions): Promise<ListAgentsCommandOutput>;
|
|
40
41
|
listAgents(args: ListAgentsCommandInput, cb: (err: any, data?: ListAgentsCommandOutput) => void): void;
|
|
41
42
|
listAgents(args: ListAgentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAgentsCommandOutput) => void): void;
|
|
43
|
+
/**
|
|
44
|
+
* @see {@link ListCalendarSlotsCommand}
|
|
45
|
+
*/
|
|
46
|
+
listCalendarSlots(args: ListCalendarSlotsCommandInput, options?: __HttpHandlerOptions): Promise<ListCalendarSlotsCommandOutput>;
|
|
47
|
+
listCalendarSlots(args: ListCalendarSlotsCommandInput, cb: (err: any, data?: ListCalendarSlotsCommandOutput) => void): void;
|
|
48
|
+
listCalendarSlots(args: ListCalendarSlotsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCalendarSlotsCommandOutput) => void): void;
|
|
42
49
|
/**
|
|
43
50
|
* @see {@link ListServicesCommand}
|
|
44
51
|
*/
|
|
@@ -3,6 +3,7 @@ import { DeleteWidgetCommandInput, DeleteWidgetCommandOutput } from "./commands/
|
|
|
3
3
|
import { GetConfigCommandInput, GetConfigCommandOutput } from "./commands/GetConfigCommand";
|
|
4
4
|
import { GetWidgetCommandInput, GetWidgetCommandOutput } from "./commands/GetWidgetCommand";
|
|
5
5
|
import { ListAgentsCommandInput, ListAgentsCommandOutput } from "./commands/ListAgentsCommand";
|
|
6
|
+
import { ListCalendarSlotsCommandInput, ListCalendarSlotsCommandOutput } from "./commands/ListCalendarSlotsCommand";
|
|
6
7
|
import { ListServicesCommandInput, ListServicesCommandOutput } from "./commands/ListServicesCommand";
|
|
7
8
|
import { ListWidgetsCommandInput, ListWidgetsCommandOutput } from "./commands/ListWidgetsCommand";
|
|
8
9
|
import { UpdateWidgetCommandInput, UpdateWidgetCommandOutput } from "./commands/UpdateWidgetCommand";
|
|
@@ -17,11 +18,11 @@ export { __Client };
|
|
|
17
18
|
/**
|
|
18
19
|
* @public
|
|
19
20
|
*/
|
|
20
|
-
export type ServiceInputTypes = CreateWidgetCommandInput | DeleteWidgetCommandInput | GetConfigCommandInput | GetWidgetCommandInput | ListAgentsCommandInput | ListServicesCommandInput | ListWidgetsCommandInput | UpdateWidgetCommandInput;
|
|
21
|
+
export type ServiceInputTypes = CreateWidgetCommandInput | DeleteWidgetCommandInput | GetConfigCommandInput | GetWidgetCommandInput | ListAgentsCommandInput | ListCalendarSlotsCommandInput | ListServicesCommandInput | ListWidgetsCommandInput | UpdateWidgetCommandInput;
|
|
21
22
|
/**
|
|
22
23
|
* @public
|
|
23
24
|
*/
|
|
24
|
-
export type ServiceOutputTypes = CreateWidgetCommandOutput | DeleteWidgetCommandOutput | GetConfigCommandOutput | GetWidgetCommandOutput | ListAgentsCommandOutput | ListServicesCommandOutput | ListWidgetsCommandOutput | UpdateWidgetCommandOutput;
|
|
25
|
+
export type ServiceOutputTypes = CreateWidgetCommandOutput | DeleteWidgetCommandOutput | GetConfigCommandOutput | GetWidgetCommandOutput | ListAgentsCommandOutput | ListCalendarSlotsCommandOutput | ListServicesCommandOutput | ListWidgetsCommandOutput | UpdateWidgetCommandOutput;
|
|
25
26
|
/**
|
|
26
27
|
* @public
|
|
27
28
|
*/
|
|
@@ -74,13 +74,43 @@ declare const CreateWidgetCommand_base: {
|
|
|
74
74
|
* },
|
|
75
75
|
* },
|
|
76
76
|
* ],
|
|
77
|
-
* welcomeMessages: [ //
|
|
78
|
-
* { //
|
|
77
|
+
* welcomeMessages: [ // WidgetWelcomeMessagesList
|
|
78
|
+
* { // WidgetWelcomeMessage
|
|
79
79
|
* text: "STRING_VALUE",
|
|
80
|
-
*
|
|
81
|
-
* { //
|
|
82
|
-
*
|
|
83
|
-
*
|
|
80
|
+
* elements: [ // ElementsList
|
|
81
|
+
* { // Element Union: only one key present
|
|
82
|
+
* actions: [ // ActionsElementsList
|
|
83
|
+
* { // ActionElement Union: only one key present
|
|
84
|
+
* button: { // ButtonElement
|
|
85
|
+
* text: "STRING_VALUE", // required
|
|
86
|
+
* variant: "contained" || "outlined",
|
|
87
|
+
* disabled: true || false,
|
|
88
|
+
* handler: { // ButtonHandler Union: only one key present
|
|
89
|
+
* link: { // ButtonLinkHandler
|
|
90
|
+
* url: "STRING_VALUE", // required
|
|
91
|
+
* },
|
|
92
|
+
* reply: { // ButtonReplyHandler
|
|
93
|
+
* text: "STRING_VALUE",
|
|
94
|
+
* },
|
|
95
|
+
* action: { // ButtonActionHandler
|
|
96
|
+
* id: "STRING_VALUE", // required
|
|
97
|
+
* },
|
|
98
|
+
* },
|
|
99
|
+
* },
|
|
100
|
+
* },
|
|
101
|
+
* ],
|
|
102
|
+
* },
|
|
103
|
+
* ],
|
|
104
|
+
* attachments: [ // MessageAttachmentList
|
|
105
|
+
* { // MessageAttachment
|
|
106
|
+
* id: "STRING_VALUE", // required
|
|
107
|
+
* fsId: "STRING_VALUE", // required
|
|
108
|
+
* mime: "STRING_VALUE",
|
|
109
|
+
* name: "STRING_VALUE", // required
|
|
110
|
+
* size: Number("int"), // required
|
|
111
|
+
* width: Number("int"),
|
|
112
|
+
* height: Number("int"),
|
|
113
|
+
* thumbnail: "STRING_VALUE",
|
|
84
114
|
* },
|
|
85
115
|
* ],
|
|
86
116
|
* delay: Number("int"),
|
|
@@ -144,13 +174,43 @@ declare const CreateWidgetCommand_base: {
|
|
|
144
174
|
* // },
|
|
145
175
|
* // },
|
|
146
176
|
* // ],
|
|
147
|
-
* // welcomeMessages: [ //
|
|
148
|
-
* // { //
|
|
177
|
+
* // welcomeMessages: [ // WidgetWelcomeMessagesList
|
|
178
|
+
* // { // WidgetWelcomeMessage
|
|
149
179
|
* // text: "STRING_VALUE",
|
|
150
|
-
* //
|
|
151
|
-
* // { //
|
|
152
|
-
* //
|
|
153
|
-
* //
|
|
180
|
+
* // elements: [ // ElementsList
|
|
181
|
+
* // { // Element Union: only one key present
|
|
182
|
+
* // actions: [ // ActionsElementsList
|
|
183
|
+
* // { // ActionElement Union: only one key present
|
|
184
|
+
* // button: { // ButtonElement
|
|
185
|
+
* // text: "STRING_VALUE", // required
|
|
186
|
+
* // variant: "contained" || "outlined",
|
|
187
|
+
* // disabled: true || false,
|
|
188
|
+
* // handler: { // ButtonHandler Union: only one key present
|
|
189
|
+
* // link: { // ButtonLinkHandler
|
|
190
|
+
* // url: "STRING_VALUE", // required
|
|
191
|
+
* // },
|
|
192
|
+
* // reply: { // ButtonReplyHandler
|
|
193
|
+
* // text: "STRING_VALUE",
|
|
194
|
+
* // },
|
|
195
|
+
* // action: { // ButtonActionHandler
|
|
196
|
+
* // id: "STRING_VALUE", // required
|
|
197
|
+
* // },
|
|
198
|
+
* // },
|
|
199
|
+
* // },
|
|
200
|
+
* // },
|
|
201
|
+
* // ],
|
|
202
|
+
* // },
|
|
203
|
+
* // ],
|
|
204
|
+
* // attachments: [ // MessageAttachmentList
|
|
205
|
+
* // { // MessageAttachment
|
|
206
|
+
* // id: "STRING_VALUE", // required
|
|
207
|
+
* // fsId: "STRING_VALUE", // required
|
|
208
|
+
* // mime: "STRING_VALUE",
|
|
209
|
+
* // name: "STRING_VALUE", // required
|
|
210
|
+
* // size: Number("int"), // required
|
|
211
|
+
* // width: Number("int"),
|
|
212
|
+
* // height: Number("int"),
|
|
213
|
+
* // thumbnail: "STRING_VALUE",
|
|
154
214
|
* // },
|
|
155
215
|
* // ],
|
|
156
216
|
* // delay: Number("int"),
|
|
@@ -85,13 +85,61 @@ declare const GetConfigCommand_base: {
|
|
|
85
85
|
* // welcomeMessages: [ // WelcomeMessagesList
|
|
86
86
|
* // { // WelcomeMessage
|
|
87
87
|
* // text: "STRING_VALUE",
|
|
88
|
-
* //
|
|
89
|
-
* // { //
|
|
90
|
-
* //
|
|
91
|
-
* //
|
|
88
|
+
* // elements: [ // ElementsList
|
|
89
|
+
* // { // Element Union: only one key present
|
|
90
|
+
* // actions: [ // ActionsElementsList
|
|
91
|
+
* // { // ActionElement Union: only one key present
|
|
92
|
+
* // button: { // ButtonElement
|
|
93
|
+
* // text: "STRING_VALUE", // required
|
|
94
|
+
* // variant: "contained" || "outlined",
|
|
95
|
+
* // disabled: true || false,
|
|
96
|
+
* // handler: { // ButtonHandler Union: only one key present
|
|
97
|
+
* // link: { // ButtonLinkHandler
|
|
98
|
+
* // url: "STRING_VALUE", // required
|
|
99
|
+
* // },
|
|
100
|
+
* // reply: { // ButtonReplyHandler
|
|
101
|
+
* // text: "STRING_VALUE",
|
|
102
|
+
* // },
|
|
103
|
+
* // action: { // ButtonActionHandler
|
|
104
|
+
* // id: "STRING_VALUE", // required
|
|
105
|
+
* // },
|
|
106
|
+
* // },
|
|
107
|
+
* // },
|
|
108
|
+
* // },
|
|
109
|
+
* // ],
|
|
92
110
|
* // },
|
|
93
111
|
* // ],
|
|
94
|
-
* //
|
|
112
|
+
* // attachments: [ // MessageAttachmentList
|
|
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
|
+
* // messageId: "STRING_VALUE", // required
|
|
125
|
+
* // user: {
|
|
126
|
+
* // id: "STRING_VALUE", // required
|
|
127
|
+
* // name: "STRING_VALUE",
|
|
128
|
+
* // email: "STRING_VALUE",
|
|
129
|
+
* // phone: "STRING_VALUE",
|
|
130
|
+
* // picture: "STRING_VALUE",
|
|
131
|
+
* // locale: "STRING_VALUE",
|
|
132
|
+
* // timeZone: "STRING_VALUE",
|
|
133
|
+
* // company: "STRING_VALUE",
|
|
134
|
+
* // bot: true || false,
|
|
135
|
+
* // pbxDomain: "STRING_VALUE",
|
|
136
|
+
* // pbxPort: "STRING_VALUE",
|
|
137
|
+
* // pbxExtension: "STRING_VALUE",
|
|
138
|
+
* // pbxSerial: "STRING_VALUE",
|
|
139
|
+
* // pbxUserId: "STRING_VALUE",
|
|
140
|
+
* // createdAt: "STRING_VALUE",
|
|
141
|
+
* // updatedAt: "STRING_VALUE",
|
|
142
|
+
* // },
|
|
95
143
|
* // },
|
|
96
144
|
* // ],
|
|
97
145
|
* // features: [ // KiteFeaturesList
|
|
@@ -80,13 +80,43 @@ declare const GetWidgetCommand_base: {
|
|
|
80
80
|
* // },
|
|
81
81
|
* // },
|
|
82
82
|
* // ],
|
|
83
|
-
* // welcomeMessages: [ //
|
|
84
|
-
* // { //
|
|
83
|
+
* // welcomeMessages: [ // WidgetWelcomeMessagesList
|
|
84
|
+
* // { // WidgetWelcomeMessage
|
|
85
85
|
* // text: "STRING_VALUE",
|
|
86
|
-
* //
|
|
87
|
-
* // { //
|
|
88
|
-
* //
|
|
89
|
-
* //
|
|
86
|
+
* // elements: [ // ElementsList
|
|
87
|
+
* // { // Element Union: only one key present
|
|
88
|
+
* // actions: [ // ActionsElementsList
|
|
89
|
+
* // { // ActionElement Union: only one key present
|
|
90
|
+
* // button: { // ButtonElement
|
|
91
|
+
* // text: "STRING_VALUE", // required
|
|
92
|
+
* // variant: "contained" || "outlined",
|
|
93
|
+
* // disabled: true || false,
|
|
94
|
+
* // handler: { // ButtonHandler Union: only one key present
|
|
95
|
+
* // link: { // ButtonLinkHandler
|
|
96
|
+
* // url: "STRING_VALUE", // required
|
|
97
|
+
* // },
|
|
98
|
+
* // reply: { // ButtonReplyHandler
|
|
99
|
+
* // text: "STRING_VALUE",
|
|
100
|
+
* // },
|
|
101
|
+
* // action: { // ButtonActionHandler
|
|
102
|
+
* // id: "STRING_VALUE", // required
|
|
103
|
+
* // },
|
|
104
|
+
* // },
|
|
105
|
+
* // },
|
|
106
|
+
* // },
|
|
107
|
+
* // ],
|
|
108
|
+
* // },
|
|
109
|
+
* // ],
|
|
110
|
+
* // attachments: [ // MessageAttachmentList
|
|
111
|
+
* // { // MessageAttachment
|
|
112
|
+
* // id: "STRING_VALUE", // required
|
|
113
|
+
* // fsId: "STRING_VALUE", // required
|
|
114
|
+
* // mime: "STRING_VALUE",
|
|
115
|
+
* // name: "STRING_VALUE", // required
|
|
116
|
+
* // size: Number("int"), // required
|
|
117
|
+
* // width: Number("int"),
|
|
118
|
+
* // height: Number("int"),
|
|
119
|
+
* // thumbnail: "STRING_VALUE",
|
|
90
120
|
* // },
|
|
91
121
|
* // ],
|
|
92
122
|
* // delay: Number("int"),
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KiteClient";
|
|
2
|
+
import { ListCalendarSlotsInput, ListCalendarSlotsOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListCalendarSlotsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListCalendarSlotsCommandInput extends ListCalendarSlotsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListCalendarSlotsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListCalendarSlotsCommandOutput extends ListCalendarSlotsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListCalendarSlotsCommand_base: {
|
|
25
|
+
new (input: ListCalendarSlotsCommandInput): import("@smithy/smithy-client").CommandImpl<ListCalendarSlotsCommandInput, ListCalendarSlotsCommandOutput, KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: ListCalendarSlotsCommandInput): import("@smithy/smithy-client").CommandImpl<ListCalendarSlotsCommandInput, ListCalendarSlotsCommandOutput, KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { KiteClient, ListCalendarSlotsCommand } from "@wildix/xbees-kite-client"; // ES Modules import
|
|
36
|
+
* // const { KiteClient, ListCalendarSlotsCommand } = require("@wildix/xbees-kite-client"); // CommonJS import
|
|
37
|
+
* const client = new KiteClient(config);
|
|
38
|
+
* const input = { // ListCalendarSlotsInput
|
|
39
|
+
* targetId: "STRING_VALUE", // required
|
|
40
|
+
* };
|
|
41
|
+
* const command = new ListCalendarSlotsCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // {};
|
|
44
|
+
*
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* @param ListCalendarSlotsCommandInput - {@link ListCalendarSlotsCommandInput}
|
|
48
|
+
* @returns {@link ListCalendarSlotsCommandOutput}
|
|
49
|
+
* @see {@link ListCalendarSlotsCommandInput} for command's `input` shape.
|
|
50
|
+
* @see {@link ListCalendarSlotsCommandOutput} for command's `response` shape.
|
|
51
|
+
* @see {@link KiteClientResolvedConfig | config} for KiteClient's `config` shape.
|
|
52
|
+
*
|
|
53
|
+
* @throws {@link ValidationException} (client fault)
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link RateLimitExceededException} (client fault)
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link KiteServiceException}
|
|
60
|
+
* <p>Base exception class for all service exceptions from Kite service.</p>
|
|
61
|
+
*
|
|
62
|
+
*/
|
|
63
|
+
export declare class ListCalendarSlotsCommand extends ListCalendarSlotsCommand_base {
|
|
64
|
+
}
|
|
@@ -82,13 +82,43 @@ declare const ListWidgetsCommand_base: {
|
|
|
82
82
|
* // },
|
|
83
83
|
* // },
|
|
84
84
|
* // ],
|
|
85
|
-
* // welcomeMessages: [ //
|
|
86
|
-
* // { //
|
|
85
|
+
* // welcomeMessages: [ // WidgetWelcomeMessagesList
|
|
86
|
+
* // { // WidgetWelcomeMessage
|
|
87
87
|
* // text: "STRING_VALUE",
|
|
88
|
-
* //
|
|
89
|
-
* // { //
|
|
90
|
-
* //
|
|
91
|
-
* //
|
|
88
|
+
* // elements: [ // ElementsList
|
|
89
|
+
* // { // Element Union: only one key present
|
|
90
|
+
* // actions: [ // ActionsElementsList
|
|
91
|
+
* // { // ActionElement Union: only one key present
|
|
92
|
+
* // button: { // ButtonElement
|
|
93
|
+
* // text: "STRING_VALUE", // required
|
|
94
|
+
* // variant: "contained" || "outlined",
|
|
95
|
+
* // disabled: true || false,
|
|
96
|
+
* // handler: { // ButtonHandler Union: only one key present
|
|
97
|
+
* // link: { // ButtonLinkHandler
|
|
98
|
+
* // url: "STRING_VALUE", // required
|
|
99
|
+
* // },
|
|
100
|
+
* // reply: { // ButtonReplyHandler
|
|
101
|
+
* // text: "STRING_VALUE",
|
|
102
|
+
* // },
|
|
103
|
+
* // action: { // ButtonActionHandler
|
|
104
|
+
* // id: "STRING_VALUE", // required
|
|
105
|
+
* // },
|
|
106
|
+
* // },
|
|
107
|
+
* // },
|
|
108
|
+
* // },
|
|
109
|
+
* // ],
|
|
110
|
+
* // },
|
|
111
|
+
* // ],
|
|
112
|
+
* // attachments: [ // MessageAttachmentList
|
|
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",
|
|
92
122
|
* // },
|
|
93
123
|
* // ],
|
|
94
124
|
* // delay: Number("int"),
|
|
@@ -74,13 +74,43 @@ declare const UpdateWidgetCommand_base: {
|
|
|
74
74
|
* },
|
|
75
75
|
* },
|
|
76
76
|
* ],
|
|
77
|
-
* welcomeMessages: [ //
|
|
78
|
-
* { //
|
|
77
|
+
* welcomeMessages: [ // WidgetWelcomeMessagesList
|
|
78
|
+
* { // WidgetWelcomeMessage
|
|
79
79
|
* text: "STRING_VALUE",
|
|
80
|
-
*
|
|
81
|
-
* { //
|
|
82
|
-
*
|
|
83
|
-
*
|
|
80
|
+
* elements: [ // ElementsList
|
|
81
|
+
* { // Element Union: only one key present
|
|
82
|
+
* actions: [ // ActionsElementsList
|
|
83
|
+
* { // ActionElement Union: only one key present
|
|
84
|
+
* button: { // ButtonElement
|
|
85
|
+
* text: "STRING_VALUE", // required
|
|
86
|
+
* variant: "contained" || "outlined",
|
|
87
|
+
* disabled: true || false,
|
|
88
|
+
* handler: { // ButtonHandler Union: only one key present
|
|
89
|
+
* link: { // ButtonLinkHandler
|
|
90
|
+
* url: "STRING_VALUE", // required
|
|
91
|
+
* },
|
|
92
|
+
* reply: { // ButtonReplyHandler
|
|
93
|
+
* text: "STRING_VALUE",
|
|
94
|
+
* },
|
|
95
|
+
* action: { // ButtonActionHandler
|
|
96
|
+
* id: "STRING_VALUE", // required
|
|
97
|
+
* },
|
|
98
|
+
* },
|
|
99
|
+
* },
|
|
100
|
+
* },
|
|
101
|
+
* ],
|
|
102
|
+
* },
|
|
103
|
+
* ],
|
|
104
|
+
* attachments: [ // MessageAttachmentList
|
|
105
|
+
* { // MessageAttachment
|
|
106
|
+
* id: "STRING_VALUE", // required
|
|
107
|
+
* fsId: "STRING_VALUE", // required
|
|
108
|
+
* mime: "STRING_VALUE",
|
|
109
|
+
* name: "STRING_VALUE", // required
|
|
110
|
+
* size: Number("int"), // required
|
|
111
|
+
* width: Number("int"),
|
|
112
|
+
* height: Number("int"),
|
|
113
|
+
* thumbnail: "STRING_VALUE",
|
|
84
114
|
* },
|
|
85
115
|
* ],
|
|
86
116
|
* delay: Number("int"),
|
|
@@ -145,13 +175,43 @@ declare const UpdateWidgetCommand_base: {
|
|
|
145
175
|
* // },
|
|
146
176
|
* // },
|
|
147
177
|
* // ],
|
|
148
|
-
* // welcomeMessages: [ //
|
|
149
|
-
* // { //
|
|
178
|
+
* // welcomeMessages: [ // WidgetWelcomeMessagesList
|
|
179
|
+
* // { // WidgetWelcomeMessage
|
|
150
180
|
* // text: "STRING_VALUE",
|
|
151
|
-
* //
|
|
152
|
-
* // { //
|
|
153
|
-
* //
|
|
154
|
-
* //
|
|
181
|
+
* // elements: [ // ElementsList
|
|
182
|
+
* // { // Element Union: only one key present
|
|
183
|
+
* // actions: [ // ActionsElementsList
|
|
184
|
+
* // { // ActionElement Union: only one key present
|
|
185
|
+
* // button: { // ButtonElement
|
|
186
|
+
* // text: "STRING_VALUE", // required
|
|
187
|
+
* // variant: "contained" || "outlined",
|
|
188
|
+
* // disabled: true || false,
|
|
189
|
+
* // handler: { // ButtonHandler Union: only one key present
|
|
190
|
+
* // link: { // ButtonLinkHandler
|
|
191
|
+
* // url: "STRING_VALUE", // required
|
|
192
|
+
* // },
|
|
193
|
+
* // reply: { // ButtonReplyHandler
|
|
194
|
+
* // text: "STRING_VALUE",
|
|
195
|
+
* // },
|
|
196
|
+
* // action: { // ButtonActionHandler
|
|
197
|
+
* // id: "STRING_VALUE", // required
|
|
198
|
+
* // },
|
|
199
|
+
* // },
|
|
200
|
+
* // },
|
|
201
|
+
* // },
|
|
202
|
+
* // ],
|
|
203
|
+
* // },
|
|
204
|
+
* // ],
|
|
205
|
+
* // attachments: [ // MessageAttachmentList
|
|
206
|
+
* // { // MessageAttachment
|
|
207
|
+
* // id: "STRING_VALUE", // required
|
|
208
|
+
* // fsId: "STRING_VALUE", // required
|
|
209
|
+
* // mime: "STRING_VALUE",
|
|
210
|
+
* // name: "STRING_VALUE", // required
|
|
211
|
+
* // size: Number("int"), // required
|
|
212
|
+
* // width: Number("int"),
|
|
213
|
+
* // height: Number("int"),
|
|
214
|
+
* // thumbnail: "STRING_VALUE",
|
|
155
215
|
* // },
|
|
156
216
|
* // ],
|
|
157
217
|
* // delay: Number("int"),
|
|
@@ -3,6 +3,7 @@ export * from "./DeleteWidgetCommand";
|
|
|
3
3
|
export * from "./GetConfigCommand";
|
|
4
4
|
export * from "./GetWidgetCommand";
|
|
5
5
|
export * from "./ListAgentsCommand";
|
|
6
|
+
export * from "./ListCalendarSlotsCommand";
|
|
6
7
|
export * from "./ListServicesCommand";
|
|
7
8
|
export * from "./ListWidgetsCommand";
|
|
8
9
|
export * from "./UpdateWidgetCommand";
|
|
@@ -77,17 +77,165 @@ export interface User {
|
|
|
77
77
|
/**
|
|
78
78
|
* @public
|
|
79
79
|
*/
|
|
80
|
-
export interface
|
|
80
|
+
export interface ButtonActionHandler {
|
|
81
81
|
/**
|
|
82
|
-
*
|
|
82
|
+
* A unique ID of the action within the message.
|
|
83
83
|
* @public
|
|
84
84
|
*/
|
|
85
|
+
id: string;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
export interface ButtonLinkHandler {
|
|
91
|
+
url: string;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* @public
|
|
95
|
+
*/
|
|
96
|
+
export interface ButtonReplyHandler {
|
|
97
|
+
text?: string;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* @public
|
|
101
|
+
*/
|
|
102
|
+
export type ButtonHandler = ButtonHandler.ActionMember | ButtonHandler.LinkMember | ButtonHandler.ReplyMember | ButtonHandler.$UnknownMember;
|
|
103
|
+
/**
|
|
104
|
+
* @public
|
|
105
|
+
*/
|
|
106
|
+
export declare namespace ButtonHandler {
|
|
107
|
+
interface LinkMember {
|
|
108
|
+
link: ButtonLinkHandler;
|
|
109
|
+
reply?: never;
|
|
110
|
+
action?: never;
|
|
111
|
+
$unknown?: never;
|
|
112
|
+
}
|
|
113
|
+
interface ReplyMember {
|
|
114
|
+
link?: never;
|
|
115
|
+
reply: ButtonReplyHandler;
|
|
116
|
+
action?: never;
|
|
117
|
+
$unknown?: never;
|
|
118
|
+
}
|
|
119
|
+
interface ActionMember {
|
|
120
|
+
link?: never;
|
|
121
|
+
reply?: never;
|
|
122
|
+
action: ButtonActionHandler;
|
|
123
|
+
$unknown?: never;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* @public
|
|
127
|
+
*/
|
|
128
|
+
interface $UnknownMember {
|
|
129
|
+
link?: never;
|
|
130
|
+
reply?: never;
|
|
131
|
+
action?: never;
|
|
132
|
+
$unknown: [string, any];
|
|
133
|
+
}
|
|
134
|
+
interface Visitor<T> {
|
|
135
|
+
link: (value: ButtonLinkHandler) => T;
|
|
136
|
+
reply: (value: ButtonReplyHandler) => T;
|
|
137
|
+
action: (value: ButtonActionHandler) => T;
|
|
138
|
+
_: (name: string, value: any) => T;
|
|
139
|
+
}
|
|
140
|
+
const visit: <T>(value: ButtonHandler, visitor: Visitor<T>) => T;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* @public
|
|
144
|
+
* @enum
|
|
145
|
+
*/
|
|
146
|
+
export declare const ButtonVariant: {
|
|
147
|
+
readonly CONTAINED: "contained";
|
|
148
|
+
readonly OUTLINED: "outlined";
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* @public
|
|
152
|
+
*/
|
|
153
|
+
export type ButtonVariant = typeof ButtonVariant[keyof typeof ButtonVariant];
|
|
154
|
+
/**
|
|
155
|
+
* @public
|
|
156
|
+
*/
|
|
157
|
+
export interface ButtonElement {
|
|
85
158
|
text: string;
|
|
159
|
+
variant?: ButtonVariant;
|
|
160
|
+
disabled?: boolean;
|
|
161
|
+
handler?: ButtonHandler;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* @public
|
|
165
|
+
*/
|
|
166
|
+
export type ActionElement = ActionElement.ButtonMember | ActionElement.$UnknownMember;
|
|
167
|
+
/**
|
|
168
|
+
* @public
|
|
169
|
+
*/
|
|
170
|
+
export declare namespace ActionElement {
|
|
171
|
+
interface ButtonMember {
|
|
172
|
+
button: ButtonElement;
|
|
173
|
+
$unknown?: never;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* @public
|
|
177
|
+
*/
|
|
178
|
+
interface $UnknownMember {
|
|
179
|
+
button?: never;
|
|
180
|
+
$unknown: [string, any];
|
|
181
|
+
}
|
|
182
|
+
interface Visitor<T> {
|
|
183
|
+
button: (value: ButtonElement) => T;
|
|
184
|
+
_: (name: string, value: any) => T;
|
|
185
|
+
}
|
|
186
|
+
const visit: <T>(value: ActionElement, visitor: Visitor<T>) => T;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* @public
|
|
190
|
+
*/
|
|
191
|
+
export interface MessageAttachment {
|
|
192
|
+
id: string;
|
|
86
193
|
/**
|
|
87
|
-
*
|
|
194
|
+
* This *is* documentation about the field. Describe here what fsId and how to get it.
|
|
88
195
|
* @public
|
|
89
196
|
*/
|
|
90
|
-
|
|
197
|
+
fsId: string;
|
|
198
|
+
mime?: string;
|
|
199
|
+
name: string;
|
|
200
|
+
size: number;
|
|
201
|
+
width?: number;
|
|
202
|
+
height?: number;
|
|
203
|
+
thumbnail?: string;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* @public
|
|
207
|
+
*/
|
|
208
|
+
export type Element = Element.ActionsMember | Element.$UnknownMember;
|
|
209
|
+
/**
|
|
210
|
+
* @public
|
|
211
|
+
*/
|
|
212
|
+
export declare namespace Element {
|
|
213
|
+
interface ActionsMember {
|
|
214
|
+
actions: (ActionElement)[];
|
|
215
|
+
$unknown?: never;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* @public
|
|
219
|
+
*/
|
|
220
|
+
interface $UnknownMember {
|
|
221
|
+
actions?: never;
|
|
222
|
+
$unknown: [string, any];
|
|
223
|
+
}
|
|
224
|
+
interface Visitor<T> {
|
|
225
|
+
actions: (value: (ActionElement)[]) => T;
|
|
226
|
+
_: (name: string, value: any) => T;
|
|
227
|
+
}
|
|
228
|
+
const visit: <T>(value: Element, visitor: Visitor<T>) => T;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* @public
|
|
232
|
+
*/
|
|
233
|
+
export interface WelcomeMessage {
|
|
234
|
+
text?: string;
|
|
235
|
+
elements?: (Element)[];
|
|
236
|
+
attachments?: (MessageAttachment)[];
|
|
237
|
+
messageId: string;
|
|
238
|
+
user: User;
|
|
91
239
|
}
|
|
92
240
|
/**
|
|
93
241
|
* @public
|
|
@@ -307,17 +455,10 @@ export interface WidgetRoute {
|
|
|
307
455
|
/**
|
|
308
456
|
* @public
|
|
309
457
|
*/
|
|
310
|
-
export interface
|
|
311
|
-
/**
|
|
312
|
-
* Welcome message text.
|
|
313
|
-
* @public
|
|
314
|
-
*/
|
|
458
|
+
export interface WidgetWelcomeMessage {
|
|
315
459
|
text?: string;
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
* @public
|
|
319
|
-
*/
|
|
320
|
-
predefinedReplies?: (MessagePredefinedReply)[];
|
|
460
|
+
elements?: (Element)[];
|
|
461
|
+
attachments?: (MessageAttachment)[];
|
|
321
462
|
/**
|
|
322
463
|
* The time in milliseconds until the message will be visible to the end user.
|
|
323
464
|
* @public
|
|
@@ -342,7 +483,7 @@ export interface CreateWidgetInput {
|
|
|
342
483
|
* A list of welcome messages that will be sent to the user when they first interact with the widget.
|
|
343
484
|
* @public
|
|
344
485
|
*/
|
|
345
|
-
welcomeMessages?: (
|
|
486
|
+
welcomeMessages?: (WidgetWelcomeMessage)[];
|
|
346
487
|
name: string;
|
|
347
488
|
/**
|
|
348
489
|
* 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.
|
|
@@ -373,7 +514,7 @@ export interface Widget {
|
|
|
373
514
|
* A list of welcome messages that will be sent to the user when they first interact with the widget.
|
|
374
515
|
* @public
|
|
375
516
|
*/
|
|
376
|
-
welcomeMessages?: (
|
|
517
|
+
welcomeMessages?: (WidgetWelcomeMessage)[];
|
|
377
518
|
name: string;
|
|
378
519
|
/**
|
|
379
520
|
* 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.
|
|
@@ -604,6 +745,21 @@ export interface ListAgentsInput {
|
|
|
604
745
|
export interface ListAgentsOutput {
|
|
605
746
|
users: (User)[];
|
|
606
747
|
}
|
|
748
|
+
/**
|
|
749
|
+
* @public
|
|
750
|
+
*/
|
|
751
|
+
export interface ListCalendarSlotsInput {
|
|
752
|
+
/**
|
|
753
|
+
* The unique identifier of the Kite widget or email of the agent (example: 36cv69ao or john.doe@example.com).
|
|
754
|
+
* @public
|
|
755
|
+
*/
|
|
756
|
+
targetId: string;
|
|
757
|
+
}
|
|
758
|
+
/**
|
|
759
|
+
* @public
|
|
760
|
+
*/
|
|
761
|
+
export interface ListCalendarSlotsOutput {
|
|
762
|
+
}
|
|
607
763
|
/**
|
|
608
764
|
* @public
|
|
609
765
|
*/
|
|
@@ -677,7 +833,7 @@ export interface UpdateWidgetInput {
|
|
|
677
833
|
* A list of welcome messages that will be sent to the user when they first interact with the widget.
|
|
678
834
|
* @public
|
|
679
835
|
*/
|
|
680
|
-
welcomeMessages?: (
|
|
836
|
+
welcomeMessages?: (WidgetWelcomeMessage)[];
|
|
681
837
|
name: string;
|
|
682
838
|
/**
|
|
683
839
|
* 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.
|
|
@@ -3,6 +3,7 @@ import { DeleteWidgetCommandInput, DeleteWidgetCommandOutput } from "../commands
|
|
|
3
3
|
import { GetConfigCommandInput, GetConfigCommandOutput } from "../commands/GetConfigCommand";
|
|
4
4
|
import { GetWidgetCommandInput, GetWidgetCommandOutput } from "../commands/GetWidgetCommand";
|
|
5
5
|
import { ListAgentsCommandInput, ListAgentsCommandOutput } from "../commands/ListAgentsCommand";
|
|
6
|
+
import { ListCalendarSlotsCommandInput, ListCalendarSlotsCommandOutput } from "../commands/ListCalendarSlotsCommand";
|
|
6
7
|
import { ListServicesCommandInput, ListServicesCommandOutput } from "../commands/ListServicesCommand";
|
|
7
8
|
import { ListWidgetsCommandInput, ListWidgetsCommandOutput } from "../commands/ListWidgetsCommand";
|
|
8
9
|
import { UpdateWidgetCommandInput, UpdateWidgetCommandOutput } from "../commands/UpdateWidgetCommand";
|
|
@@ -28,6 +29,10 @@ export declare const se_GetWidgetCommand: (input: GetWidgetCommandInput, context
|
|
|
28
29
|
* serializeAws_restJson1ListAgentsCommand
|
|
29
30
|
*/
|
|
30
31
|
export declare const se_ListAgentsCommand: (input: ListAgentsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
32
|
+
/**
|
|
33
|
+
* serializeAws_restJson1ListCalendarSlotsCommand
|
|
34
|
+
*/
|
|
35
|
+
export declare const se_ListCalendarSlotsCommand: (input: ListCalendarSlotsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
31
36
|
/**
|
|
32
37
|
* serializeAws_restJson1ListServicesCommand
|
|
33
38
|
*/
|
|
@@ -60,6 +65,10 @@ export declare const de_GetWidgetCommand: (output: __HttpResponse, context: __Se
|
|
|
60
65
|
* deserializeAws_restJson1ListAgentsCommand
|
|
61
66
|
*/
|
|
62
67
|
export declare const de_ListAgentsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListAgentsCommandOutput>;
|
|
68
|
+
/**
|
|
69
|
+
* deserializeAws_restJson1ListCalendarSlotsCommand
|
|
70
|
+
*/
|
|
71
|
+
export declare const de_ListCalendarSlotsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListCalendarSlotsCommandOutput>;
|
|
63
72
|
/**
|
|
64
73
|
* deserializeAws_restJson1ListServicesCommand
|
|
65
74
|
*/
|
|
@@ -16,6 +16,7 @@ export declare const getRuntimeConfig: (config: KiteClientConfig) => {
|
|
|
16
16
|
env: "stage" | "stable" | "prod";
|
|
17
17
|
token: import("@wildix/smithy-utils").TokenProvider;
|
|
18
18
|
apiVersion: string;
|
|
19
|
+
cacheMiddleware?: boolean | undefined;
|
|
19
20
|
urlParser: import("@smithy/types").UrlParser;
|
|
20
21
|
base64Decoder: import("@smithy/types").Decoder;
|
|
21
22
|
base64Encoder: (_input: string | Uint8Array) => string;
|
|
@@ -16,6 +16,7 @@ export declare const getRuntimeConfig: (config: KiteClientConfig) => {
|
|
|
16
16
|
env: "stage" | "stable" | "prod";
|
|
17
17
|
token: import("@wildix/smithy-utils").TokenProvider;
|
|
18
18
|
apiVersion: string;
|
|
19
|
+
cacheMiddleware?: boolean | undefined;
|
|
19
20
|
urlParser: import("@smithy/types").UrlParser;
|
|
20
21
|
base64Decoder: import("@smithy/types").Decoder;
|
|
21
22
|
base64Encoder: (_input: string | Uint8Array) => string;
|
|
@@ -9,6 +9,7 @@ export declare const getRuntimeConfig: (config: KiteClientConfig) => {
|
|
|
9
9
|
token: import("@wildix/smithy-utils").TokenProvider;
|
|
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
11
|
apiVersion: string;
|
|
12
|
+
cacheMiddleware?: boolean | undefined;
|
|
12
13
|
urlParser: import("@smithy/types").UrlParser;
|
|
13
14
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
14
15
|
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.0.
|
|
4
|
+
"version": "1.0.7",
|
|
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",
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
"build:types": "tsc -p tsconfig.types.json",
|
|
10
10
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
11
11
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
|
|
12
|
-
"prepack": "yarn run clean && yarn run build"
|
|
12
|
+
"prepack": "yarn run clean && yarn run build",
|
|
13
|
+
"postpublish": "node ../../scripts/postpublish.js"
|
|
13
14
|
},
|
|
14
15
|
"main": "./dist-cjs/index.js",
|
|
15
16
|
"types": "./dist-types/index.d.ts",
|