@wildix/xbees-kite-client 1.0.1 → 1.0.2
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/ListAgentsCommand.js +21 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +43 -3
- package/dist-es/Kite.js +2 -0
- package/dist-es/commands/ListAgentsCommand.js +17 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +40 -2
- package/dist-types/Kite.d.ts +8 -0
- package/dist-types/KiteClient.d.ts +3 -2
- package/dist-types/commands/GetConfigCommand.d.ts +1 -0
- package/dist-types/commands/ListAgentsCommand.d.ts +91 -0
- package/dist-types/commands/ListServicesCommand.d.ts +6 -20
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +39 -2
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/package.json +2 -2
package/dist-cjs/Kite.js
CHANGED
|
@@ -6,6 +6,7 @@ const CreateWidgetCommand_1 = require("./commands/CreateWidgetCommand");
|
|
|
6
6
|
const DeleteWidgetCommand_1 = require("./commands/DeleteWidgetCommand");
|
|
7
7
|
const GetConfigCommand_1 = require("./commands/GetConfigCommand");
|
|
8
8
|
const GetWidgetCommand_1 = require("./commands/GetWidgetCommand");
|
|
9
|
+
const ListAgentsCommand_1 = require("./commands/ListAgentsCommand");
|
|
9
10
|
const ListServicesCommand_1 = require("./commands/ListServicesCommand");
|
|
10
11
|
const ListWidgetsCommand_1 = require("./commands/ListWidgetsCommand");
|
|
11
12
|
const UpdateWidgetCommand_1 = require("./commands/UpdateWidgetCommand");
|
|
@@ -15,6 +16,7 @@ const commands = {
|
|
|
15
16
|
DeleteWidgetCommand: DeleteWidgetCommand_1.DeleteWidgetCommand,
|
|
16
17
|
GetConfigCommand: GetConfigCommand_1.GetConfigCommand,
|
|
17
18
|
GetWidgetCommand: GetWidgetCommand_1.GetWidgetCommand,
|
|
19
|
+
ListAgentsCommand: ListAgentsCommand_1.ListAgentsCommand,
|
|
18
20
|
ListServicesCommand: ListServicesCommand_1.ListServicesCommand,
|
|
19
21
|
ListWidgetsCommand: ListWidgetsCommand_1.ListWidgetsCommand,
|
|
20
22
|
UpdateWidgetCommand: UpdateWidgetCommand_1.UpdateWidgetCommand,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListAgentsCommand = 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 ListAgentsCommand 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", "ListAgents", {})
|
|
15
|
+
.n("KiteClient", "ListAgentsCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_ListAgentsCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_ListAgentsCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.ListAgentsCommand = ListAgentsCommand;
|
|
@@ -5,6 +5,7 @@ tslib_1.__exportStar(require("./CreateWidgetCommand"), exports);
|
|
|
5
5
|
tslib_1.__exportStar(require("./DeleteWidgetCommand"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./GetConfigCommand"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./GetWidgetCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./ListAgentsCommand"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./ListServicesCommand"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./ListWidgetsCommand"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./UpdateWidgetCommand"), exports);
|
|
@@ -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_GetWidgetCommand = exports.de_GetConfigCommand = exports.de_DeleteWidgetCommand = exports.de_CreateWidgetCommand = exports.se_UpdateWidgetCommand = exports.se_ListWidgetsCommand = exports.se_ListServicesCommand = 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_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;
|
|
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");
|
|
@@ -46,9 +46,13 @@ const se_GetConfigCommand = async (input, context) => {
|
|
|
46
46
|
const headers = {};
|
|
47
47
|
b.bp("/v2/kite/config/{targetId}");
|
|
48
48
|
b.p('targetId', () => input.targetId, '{targetId}', false);
|
|
49
|
+
const query = (0, smithy_client_1.map)({
|
|
50
|
+
[_r]: [, input[_tRI]],
|
|
51
|
+
});
|
|
49
52
|
let body;
|
|
50
53
|
b.m("GET")
|
|
51
54
|
.h(headers)
|
|
55
|
+
.q(query)
|
|
52
56
|
.b(body);
|
|
53
57
|
return b.build();
|
|
54
58
|
};
|
|
@@ -65,16 +69,35 @@ const se_GetWidgetCommand = async (input, context) => {
|
|
|
65
69
|
return b.build();
|
|
66
70
|
};
|
|
67
71
|
exports.se_GetWidgetCommand = se_GetWidgetCommand;
|
|
68
|
-
const
|
|
72
|
+
const se_ListAgentsCommand = async (input, context) => {
|
|
69
73
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
70
74
|
const headers = {
|
|
71
75
|
'content-type': 'application/json',
|
|
72
76
|
};
|
|
77
|
+
b.bp("/v2/kite/agents");
|
|
78
|
+
let body;
|
|
79
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
80
|
+
'emails': _ => (0, smithy_client_1._json)(_),
|
|
81
|
+
'extensions': _ => (0, smithy_client_1._json)(_),
|
|
82
|
+
'service': [],
|
|
83
|
+
}));
|
|
84
|
+
b.m("POST")
|
|
85
|
+
.h(headers)
|
|
86
|
+
.b(body);
|
|
87
|
+
return b.build();
|
|
88
|
+
};
|
|
89
|
+
exports.se_ListAgentsCommand = se_ListAgentsCommand;
|
|
90
|
+
const se_ListServicesCommand = async (input, context) => {
|
|
91
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
92
|
+
const headers = {};
|
|
73
93
|
b.bp("/v2/kite/services");
|
|
94
|
+
const query = (0, smithy_client_1.map)({
|
|
95
|
+
[_c]: [, input[_cI]],
|
|
96
|
+
});
|
|
74
97
|
let body;
|
|
75
|
-
body = "";
|
|
76
98
|
b.m("GET")
|
|
77
99
|
.h(headers)
|
|
100
|
+
.q(query)
|
|
78
101
|
.b(body);
|
|
79
102
|
return b.build();
|
|
80
103
|
};
|
|
@@ -175,6 +198,21 @@ const de_GetWidgetCommand = async (output, context) => {
|
|
|
175
198
|
return contents;
|
|
176
199
|
};
|
|
177
200
|
exports.de_GetWidgetCommand = de_GetWidgetCommand;
|
|
201
|
+
const de_ListAgentsCommand = async (output, context) => {
|
|
202
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
203
|
+
return de_CommandError(output, context);
|
|
204
|
+
}
|
|
205
|
+
const contents = (0, smithy_client_1.map)({
|
|
206
|
+
$metadata: deserializeMetadata(output),
|
|
207
|
+
});
|
|
208
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
209
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
210
|
+
'users': smithy_client_1._json,
|
|
211
|
+
});
|
|
212
|
+
Object.assign(contents, doc);
|
|
213
|
+
return contents;
|
|
214
|
+
};
|
|
215
|
+
exports.de_ListAgentsCommand = de_ListAgentsCommand;
|
|
178
216
|
const de_ListServicesCommand = async (output, context) => {
|
|
179
217
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
180
218
|
return de_CommandError(output, context);
|
|
@@ -337,11 +375,13 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
337
375
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
338
376
|
const _c = "company";
|
|
339
377
|
const _cI = "companyId";
|
|
378
|
+
const _r = "route";
|
|
340
379
|
const _rA = "retryAfter";
|
|
341
380
|
const _rL = "rateLimit";
|
|
342
381
|
const _rLR = "rateLimitRemaining";
|
|
343
382
|
const _rLRa = "rateLimitReset";
|
|
344
383
|
const _ra = "retry-after";
|
|
384
|
+
const _tRI = "targetRouteId";
|
|
345
385
|
const _xrl = "x-ratelimit-limit";
|
|
346
386
|
const _xrr = "x-ratelimit-remaining";
|
|
347
387
|
const _xrr_ = "x-ratelimit-reset";
|
package/dist-es/Kite.js
CHANGED
|
@@ -3,6 +3,7 @@ import { CreateWidgetCommand, } from "./commands/CreateWidgetCommand";
|
|
|
3
3
|
import { DeleteWidgetCommand, } from "./commands/DeleteWidgetCommand";
|
|
4
4
|
import { GetConfigCommand, } from "./commands/GetConfigCommand";
|
|
5
5
|
import { GetWidgetCommand, } from "./commands/GetWidgetCommand";
|
|
6
|
+
import { ListAgentsCommand, } from "./commands/ListAgentsCommand";
|
|
6
7
|
import { ListServicesCommand, } from "./commands/ListServicesCommand";
|
|
7
8
|
import { ListWidgetsCommand, } from "./commands/ListWidgetsCommand";
|
|
8
9
|
import { UpdateWidgetCommand, } from "./commands/UpdateWidgetCommand";
|
|
@@ -12,6 +13,7 @@ const commands = {
|
|
|
12
13
|
DeleteWidgetCommand,
|
|
13
14
|
GetConfigCommand,
|
|
14
15
|
GetWidgetCommand,
|
|
16
|
+
ListAgentsCommand,
|
|
15
17
|
ListServicesCommand,
|
|
16
18
|
ListWidgetsCommand,
|
|
17
19
|
UpdateWidgetCommand,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_ListAgentsCommand, se_ListAgentsCommand, } 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 ListAgentsCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("Kite", "ListAgents", {})
|
|
12
|
+
.n("KiteClient", "ListAgentsCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_ListAgentsCommand)
|
|
15
|
+
.de(de_ListAgentsCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -2,6 +2,7 @@ export * from "./CreateWidgetCommand";
|
|
|
2
2
|
export * from "./DeleteWidgetCommand";
|
|
3
3
|
export * from "./GetConfigCommand";
|
|
4
4
|
export * from "./GetWidgetCommand";
|
|
5
|
+
export * from "./ListAgentsCommand";
|
|
5
6
|
export * from "./ListServicesCommand";
|
|
6
7
|
export * from "./ListWidgetsCommand";
|
|
7
8
|
export * from "./UpdateWidgetCommand";
|
|
@@ -41,9 +41,13 @@ export const se_GetConfigCommand = async (input, context) => {
|
|
|
41
41
|
const headers = {};
|
|
42
42
|
b.bp("/v2/kite/config/{targetId}");
|
|
43
43
|
b.p('targetId', () => input.targetId, '{targetId}', false);
|
|
44
|
+
const query = map({
|
|
45
|
+
[_r]: [, input[_tRI]],
|
|
46
|
+
});
|
|
44
47
|
let body;
|
|
45
48
|
b.m("GET")
|
|
46
49
|
.h(headers)
|
|
50
|
+
.q(query)
|
|
47
51
|
.b(body);
|
|
48
52
|
return b.build();
|
|
49
53
|
};
|
|
@@ -58,16 +62,34 @@ export const se_GetWidgetCommand = async (input, context) => {
|
|
|
58
62
|
.b(body);
|
|
59
63
|
return b.build();
|
|
60
64
|
};
|
|
61
|
-
export const
|
|
65
|
+
export const se_ListAgentsCommand = async (input, context) => {
|
|
62
66
|
const b = rb(input, context);
|
|
63
67
|
const headers = {
|
|
64
68
|
'content-type': 'application/json',
|
|
65
69
|
};
|
|
70
|
+
b.bp("/v2/kite/agents");
|
|
71
|
+
let body;
|
|
72
|
+
body = JSON.stringify(take(input, {
|
|
73
|
+
'emails': _ => _json(_),
|
|
74
|
+
'extensions': _ => _json(_),
|
|
75
|
+
'service': [],
|
|
76
|
+
}));
|
|
77
|
+
b.m("POST")
|
|
78
|
+
.h(headers)
|
|
79
|
+
.b(body);
|
|
80
|
+
return b.build();
|
|
81
|
+
};
|
|
82
|
+
export const se_ListServicesCommand = async (input, context) => {
|
|
83
|
+
const b = rb(input, context);
|
|
84
|
+
const headers = {};
|
|
66
85
|
b.bp("/v2/kite/services");
|
|
86
|
+
const query = map({
|
|
87
|
+
[_c]: [, input[_cI]],
|
|
88
|
+
});
|
|
67
89
|
let body;
|
|
68
|
-
body = "";
|
|
69
90
|
b.m("GET")
|
|
70
91
|
.h(headers)
|
|
92
|
+
.q(query)
|
|
71
93
|
.b(body);
|
|
72
94
|
return b.build();
|
|
73
95
|
};
|
|
@@ -161,6 +183,20 @@ export const de_GetWidgetCommand = async (output, context) => {
|
|
|
161
183
|
Object.assign(contents, doc);
|
|
162
184
|
return contents;
|
|
163
185
|
};
|
|
186
|
+
export const de_ListAgentsCommand = async (output, context) => {
|
|
187
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
188
|
+
return de_CommandError(output, context);
|
|
189
|
+
}
|
|
190
|
+
const contents = map({
|
|
191
|
+
$metadata: deserializeMetadata(output),
|
|
192
|
+
});
|
|
193
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
194
|
+
const doc = take(data, {
|
|
195
|
+
'users': _json,
|
|
196
|
+
});
|
|
197
|
+
Object.assign(contents, doc);
|
|
198
|
+
return contents;
|
|
199
|
+
};
|
|
164
200
|
export const de_ListServicesCommand = async (output, context) => {
|
|
165
201
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
166
202
|
return de_CommandError(output, context);
|
|
@@ -320,11 +356,13 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
320
356
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
321
357
|
const _c = "company";
|
|
322
358
|
const _cI = "companyId";
|
|
359
|
+
const _r = "route";
|
|
323
360
|
const _rA = "retryAfter";
|
|
324
361
|
const _rL = "rateLimit";
|
|
325
362
|
const _rLR = "rateLimitRemaining";
|
|
326
363
|
const _rLRa = "rateLimitReset";
|
|
327
364
|
const _ra = "retry-after";
|
|
365
|
+
const _tRI = "targetRouteId";
|
|
328
366
|
const _xrl = "x-ratelimit-limit";
|
|
329
367
|
const _xrr = "x-ratelimit-remaining";
|
|
330
368
|
const _xrr_ = "x-ratelimit-reset";
|
package/dist-types/Kite.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { CreateWidgetCommandInput, CreateWidgetCommandOutput } from "./commands/
|
|
|
3
3
|
import { DeleteWidgetCommandInput, DeleteWidgetCommandOutput } from "./commands/DeleteWidgetCommand";
|
|
4
4
|
import { GetConfigCommandInput, GetConfigCommandOutput } from "./commands/GetConfigCommand";
|
|
5
5
|
import { GetWidgetCommandInput, GetWidgetCommandOutput } from "./commands/GetWidgetCommand";
|
|
6
|
+
import { ListAgentsCommandInput, ListAgentsCommandOutput } from "./commands/ListAgentsCommand";
|
|
6
7
|
import { ListServicesCommandInput, ListServicesCommandOutput } from "./commands/ListServicesCommand";
|
|
7
8
|
import { ListWidgetsCommandInput, ListWidgetsCommandOutput } from "./commands/ListWidgetsCommand";
|
|
8
9
|
import { UpdateWidgetCommandInput, UpdateWidgetCommandOutput } from "./commands/UpdateWidgetCommand";
|
|
@@ -32,6 +33,13 @@ export interface Kite {
|
|
|
32
33
|
getWidget(args: GetWidgetCommandInput, options?: __HttpHandlerOptions): Promise<GetWidgetCommandOutput>;
|
|
33
34
|
getWidget(args: GetWidgetCommandInput, cb: (err: any, data?: GetWidgetCommandOutput) => void): void;
|
|
34
35
|
getWidget(args: GetWidgetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetWidgetCommandOutput) => void): void;
|
|
36
|
+
/**
|
|
37
|
+
* @see {@link ListAgentsCommand}
|
|
38
|
+
*/
|
|
39
|
+
listAgents(): Promise<ListAgentsCommandOutput>;
|
|
40
|
+
listAgents(args: ListAgentsCommandInput, options?: __HttpHandlerOptions): Promise<ListAgentsCommandOutput>;
|
|
41
|
+
listAgents(args: ListAgentsCommandInput, cb: (err: any, data?: ListAgentsCommandOutput) => void): void;
|
|
42
|
+
listAgents(args: ListAgentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAgentsCommandOutput) => void): void;
|
|
35
43
|
/**
|
|
36
44
|
* @see {@link ListServicesCommand}
|
|
37
45
|
*/
|
|
@@ -2,6 +2,7 @@ import { CreateWidgetCommandInput, CreateWidgetCommandOutput } from "./commands/
|
|
|
2
2
|
import { DeleteWidgetCommandInput, DeleteWidgetCommandOutput } from "./commands/DeleteWidgetCommand";
|
|
3
3
|
import { GetConfigCommandInput, GetConfigCommandOutput } from "./commands/GetConfigCommand";
|
|
4
4
|
import { GetWidgetCommandInput, GetWidgetCommandOutput } from "./commands/GetWidgetCommand";
|
|
5
|
+
import { ListAgentsCommandInput, ListAgentsCommandOutput } from "./commands/ListAgentsCommand";
|
|
5
6
|
import { ListServicesCommandInput, ListServicesCommandOutput } from "./commands/ListServicesCommand";
|
|
6
7
|
import { ListWidgetsCommandInput, ListWidgetsCommandOutput } from "./commands/ListWidgetsCommand";
|
|
7
8
|
import { UpdateWidgetCommandInput, UpdateWidgetCommandOutput } from "./commands/UpdateWidgetCommand";
|
|
@@ -15,11 +16,11 @@ export { __Client };
|
|
|
15
16
|
/**
|
|
16
17
|
* @public
|
|
17
18
|
*/
|
|
18
|
-
export type ServiceInputTypes = CreateWidgetCommandInput | DeleteWidgetCommandInput | GetConfigCommandInput | GetWidgetCommandInput | ListServicesCommandInput | ListWidgetsCommandInput | UpdateWidgetCommandInput;
|
|
19
|
+
export type ServiceInputTypes = CreateWidgetCommandInput | DeleteWidgetCommandInput | GetConfigCommandInput | GetWidgetCommandInput | ListAgentsCommandInput | ListServicesCommandInput | ListWidgetsCommandInput | UpdateWidgetCommandInput;
|
|
19
20
|
/**
|
|
20
21
|
* @public
|
|
21
22
|
*/
|
|
22
|
-
export type ServiceOutputTypes = CreateWidgetCommandOutput | DeleteWidgetCommandOutput | GetConfigCommandOutput | GetWidgetCommandOutput | ListServicesCommandOutput | ListWidgetsCommandOutput | UpdateWidgetCommandOutput;
|
|
23
|
+
export type ServiceOutputTypes = CreateWidgetCommandOutput | DeleteWidgetCommandOutput | GetConfigCommandOutput | GetWidgetCommandOutput | ListAgentsCommandOutput | ListServicesCommandOutput | ListWidgetsCommandOutput | UpdateWidgetCommandOutput;
|
|
23
24
|
/**
|
|
24
25
|
* @public
|
|
25
26
|
*/
|
|
@@ -37,6 +37,7 @@ declare const GetConfigCommand_base: {
|
|
|
37
37
|
* const client = new KiteClient(config);
|
|
38
38
|
* const input = { // GetConfigInput
|
|
39
39
|
* targetId: "STRING_VALUE", // required
|
|
40
|
+
* targetRouteId: "STRING_VALUE",
|
|
40
41
|
* };
|
|
41
42
|
* const command = new GetConfigCommand(input);
|
|
42
43
|
* const response = await client.send(command);
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KiteClient";
|
|
2
|
+
import { ListAgentsInput, ListAgentsOutput } 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 ListAgentsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListAgentsCommandInput extends ListAgentsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListAgentsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListAgentsCommandOutput extends ListAgentsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListAgentsCommand_base: {
|
|
25
|
+
new (input: ListAgentsCommandInput): import("@smithy/smithy-client").CommandImpl<ListAgentsCommandInput, ListAgentsCommandOutput, KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListAgentsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListAgentsCommandInput, ListAgentsCommandOutput, 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, ListAgentsCommand } from "@wildix/xbees-kite-client"; // ES Modules import
|
|
36
|
+
* // const { KiteClient, ListAgentsCommand } = require("@wildix/xbees-kite-client"); // CommonJS import
|
|
37
|
+
* const client = new KiteClient(config);
|
|
38
|
+
* const input = { // ListAgentsInput
|
|
39
|
+
* service: "STRING_VALUE",
|
|
40
|
+
* extensions: [ // ExtensionsList
|
|
41
|
+
* "STRING_VALUE",
|
|
42
|
+
* ],
|
|
43
|
+
* emails: [ // EmailsList
|
|
44
|
+
* "STRING_VALUE",
|
|
45
|
+
* ],
|
|
46
|
+
* };
|
|
47
|
+
* const command = new ListAgentsCommand(input);
|
|
48
|
+
* const response = await client.send(command);
|
|
49
|
+
* // { // ListAgentsOutput
|
|
50
|
+
* // users: [ // UsersList // required
|
|
51
|
+
* // { // User
|
|
52
|
+
* // id: "STRING_VALUE", // required
|
|
53
|
+
* // name: "STRING_VALUE",
|
|
54
|
+
* // email: "STRING_VALUE",
|
|
55
|
+
* // phone: "STRING_VALUE",
|
|
56
|
+
* // picture: "STRING_VALUE",
|
|
57
|
+
* // locale: "STRING_VALUE",
|
|
58
|
+
* // timeZone: "STRING_VALUE",
|
|
59
|
+
* // company: "STRING_VALUE",
|
|
60
|
+
* // bot: true || false,
|
|
61
|
+
* // pbxDomain: "STRING_VALUE",
|
|
62
|
+
* // pbxPort: "STRING_VALUE",
|
|
63
|
+
* // pbxExtension: "STRING_VALUE",
|
|
64
|
+
* // pbxSerial: "STRING_VALUE",
|
|
65
|
+
* // pbxUserId: "STRING_VALUE",
|
|
66
|
+
* // createdAt: "STRING_VALUE",
|
|
67
|
+
* // updatedAt: "STRING_VALUE",
|
|
68
|
+
* // },
|
|
69
|
+
* // ],
|
|
70
|
+
* // };
|
|
71
|
+
*
|
|
72
|
+
* ```
|
|
73
|
+
*
|
|
74
|
+
* @param ListAgentsCommandInput - {@link ListAgentsCommandInput}
|
|
75
|
+
* @returns {@link ListAgentsCommandOutput}
|
|
76
|
+
* @see {@link ListAgentsCommandInput} for command's `input` shape.
|
|
77
|
+
* @see {@link ListAgentsCommandOutput} for command's `response` shape.
|
|
78
|
+
* @see {@link KiteClientResolvedConfig | config} for KiteClient's `config` shape.
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ValidationException} (client fault)
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link LimitExceededException} (client fault)
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link KiteServiceException}
|
|
87
|
+
* <p>Base exception class for all service exceptions from Kite service.</p>
|
|
88
|
+
*
|
|
89
|
+
*/
|
|
90
|
+
export declare class ListAgentsCommand extends ListAgentsCommand_base {
|
|
91
|
+
}
|
|
@@ -35,34 +35,20 @@ declare const ListServicesCommand_base: {
|
|
|
35
35
|
* import { KiteClient, ListServicesCommand } from "@wildix/xbees-kite-client"; // ES Modules import
|
|
36
36
|
* // const { KiteClient, ListServicesCommand } = require("@wildix/xbees-kite-client"); // CommonJS import
|
|
37
37
|
* const client = new KiteClient(config);
|
|
38
|
-
* const input = {
|
|
38
|
+
* const input = { // ListServicesInput
|
|
39
|
+
* companyId: "STRING_VALUE",
|
|
40
|
+
* };
|
|
39
41
|
* const command = new ListServicesCommand(input);
|
|
40
42
|
* const response = await client.send(command);
|
|
41
43
|
* // { // ListServicesOutput
|
|
42
44
|
* // services: [ // ServicesList // required
|
|
43
45
|
* // { // Service
|
|
44
46
|
* // id: Number("int"), // required
|
|
47
|
+
* // uri: "STRING_VALUE", // required
|
|
45
48
|
* // title: "STRING_VALUE", // required
|
|
46
49
|
* // settings: {},
|
|
47
|
-
* //
|
|
48
|
-
* //
|
|
49
|
-
* // id: "STRING_VALUE", // required
|
|
50
|
-
* // name: "STRING_VALUE",
|
|
51
|
-
* // email: "STRING_VALUE",
|
|
52
|
-
* // phone: "STRING_VALUE",
|
|
53
|
-
* // picture: "STRING_VALUE",
|
|
54
|
-
* // locale: "STRING_VALUE",
|
|
55
|
-
* // timeZone: "STRING_VALUE",
|
|
56
|
-
* // company: "STRING_VALUE",
|
|
57
|
-
* // bot: true || false,
|
|
58
|
-
* // pbxDomain: "STRING_VALUE",
|
|
59
|
-
* // pbxPort: "STRING_VALUE",
|
|
60
|
-
* // pbxExtension: "STRING_VALUE",
|
|
61
|
-
* // pbxSerial: "STRING_VALUE",
|
|
62
|
-
* // pbxUserId: "STRING_VALUE",
|
|
63
|
-
* // createdAt: "STRING_VALUE",
|
|
64
|
-
* // updatedAt: "STRING_VALUE",
|
|
65
|
-
* // },
|
|
50
|
+
* // extensions: [ // ExtensionsList // required
|
|
51
|
+
* // "STRING_VALUE",
|
|
66
52
|
* // ],
|
|
67
53
|
* // pbx: { // ServicePbx
|
|
68
54
|
* // domain: "STRING_VALUE", // required
|
|
@@ -2,6 +2,7 @@ export * from "./CreateWidgetCommand";
|
|
|
2
2
|
export * from "./DeleteWidgetCommand";
|
|
3
3
|
export * from "./GetConfigCommand";
|
|
4
4
|
export * from "./GetWidgetCommand";
|
|
5
|
+
export * from "./ListAgentsCommand";
|
|
5
6
|
export * from "./ListServicesCommand";
|
|
6
7
|
export * from "./ListWidgetsCommand";
|
|
7
8
|
export * from "./UpdateWidgetCommand";
|
|
@@ -411,10 +411,15 @@ export interface DeleteWidgetOutput {
|
|
|
411
411
|
*/
|
|
412
412
|
export interface GetConfigInput {
|
|
413
413
|
/**
|
|
414
|
-
*
|
|
414
|
+
* The unique identifier of the Kite widget or email of the agent (example: 36cv69ao or vadim.ruban@wildix.com).
|
|
415
415
|
* @public
|
|
416
416
|
*/
|
|
417
417
|
targetId: string;
|
|
418
|
+
/**
|
|
419
|
+
* The unique identifier of the route for time-based configuration.
|
|
420
|
+
* @public
|
|
421
|
+
*/
|
|
422
|
+
targetRouteId?: string;
|
|
418
423
|
}
|
|
419
424
|
/**
|
|
420
425
|
* @public
|
|
@@ -524,10 +529,41 @@ export declare class WidgetNotFoundException extends __BaseException {
|
|
|
524
529
|
*/
|
|
525
530
|
constructor(opts: __ExceptionOptionType<WidgetNotFoundException, __BaseException>);
|
|
526
531
|
}
|
|
532
|
+
/**
|
|
533
|
+
* @public
|
|
534
|
+
*/
|
|
535
|
+
export interface ListAgentsInput {
|
|
536
|
+
/**
|
|
537
|
+
* The unique identifier of the service.
|
|
538
|
+
* @public
|
|
539
|
+
*/
|
|
540
|
+
service?: string;
|
|
541
|
+
/**
|
|
542
|
+
* A list of extensions that could be used inside Kite based conversation.
|
|
543
|
+
* @public
|
|
544
|
+
*/
|
|
545
|
+
extensions?: (string)[];
|
|
546
|
+
/**
|
|
547
|
+
* A list of emails that could be used inside Kite based conversation.
|
|
548
|
+
* @public
|
|
549
|
+
*/
|
|
550
|
+
emails?: (string)[];
|
|
551
|
+
}
|
|
552
|
+
/**
|
|
553
|
+
* @public
|
|
554
|
+
*/
|
|
555
|
+
export interface ListAgentsOutput {
|
|
556
|
+
users: (User)[];
|
|
557
|
+
}
|
|
527
558
|
/**
|
|
528
559
|
* @public
|
|
529
560
|
*/
|
|
530
561
|
export interface ListServicesInput {
|
|
562
|
+
/**
|
|
563
|
+
* The unique identifier of the organization when a service token is used.
|
|
564
|
+
* @public
|
|
565
|
+
*/
|
|
566
|
+
companyId?: string;
|
|
531
567
|
}
|
|
532
568
|
/**
|
|
533
569
|
* @public
|
|
@@ -546,9 +582,10 @@ export interface ServiceSettings {
|
|
|
546
582
|
*/
|
|
547
583
|
export interface Service {
|
|
548
584
|
id: number;
|
|
585
|
+
uri: string;
|
|
549
586
|
title: string;
|
|
550
587
|
settings: ServiceSettings;
|
|
551
|
-
|
|
588
|
+
extensions: (string)[];
|
|
552
589
|
pbx: ServicePbx;
|
|
553
590
|
}
|
|
554
591
|
/**
|
|
@@ -2,6 +2,7 @@ import { CreateWidgetCommandInput, CreateWidgetCommandOutput } from "../commands
|
|
|
2
2
|
import { DeleteWidgetCommandInput, DeleteWidgetCommandOutput } from "../commands/DeleteWidgetCommand";
|
|
3
3
|
import { GetConfigCommandInput, GetConfigCommandOutput } from "../commands/GetConfigCommand";
|
|
4
4
|
import { GetWidgetCommandInput, GetWidgetCommandOutput } from "../commands/GetWidgetCommand";
|
|
5
|
+
import { ListAgentsCommandInput, ListAgentsCommandOutput } from "../commands/ListAgentsCommand";
|
|
5
6
|
import { ListServicesCommandInput, ListServicesCommandOutput } from "../commands/ListServicesCommand";
|
|
6
7
|
import { ListWidgetsCommandInput, ListWidgetsCommandOutput } from "../commands/ListWidgetsCommand";
|
|
7
8
|
import { UpdateWidgetCommandInput, UpdateWidgetCommandOutput } from "../commands/UpdateWidgetCommand";
|
|
@@ -23,6 +24,10 @@ export declare const se_GetConfigCommand: (input: GetConfigCommandInput, context
|
|
|
23
24
|
* serializeAws_restJson1GetWidgetCommand
|
|
24
25
|
*/
|
|
25
26
|
export declare const se_GetWidgetCommand: (input: GetWidgetCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
27
|
+
/**
|
|
28
|
+
* serializeAws_restJson1ListAgentsCommand
|
|
29
|
+
*/
|
|
30
|
+
export declare const se_ListAgentsCommand: (input: ListAgentsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
26
31
|
/**
|
|
27
32
|
* serializeAws_restJson1ListServicesCommand
|
|
28
33
|
*/
|
|
@@ -51,6 +56,10 @@ export declare const de_GetConfigCommand: (output: __HttpResponse, context: __Se
|
|
|
51
56
|
* deserializeAws_restJson1GetWidgetCommand
|
|
52
57
|
*/
|
|
53
58
|
export declare const de_GetWidgetCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetWidgetCommandOutput>;
|
|
59
|
+
/**
|
|
60
|
+
* deserializeAws_restJson1ListAgentsCommand
|
|
61
|
+
*/
|
|
62
|
+
export declare const de_ListAgentsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListAgentsCommandOutput>;
|
|
54
63
|
/**
|
|
55
64
|
* deserializeAws_restJson1ListServicesCommand
|
|
56
65
|
*/
|
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.2",
|
|
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",
|
|
@@ -75,4 +75,4 @@
|
|
|
75
75
|
"react-native": {
|
|
76
76
|
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
|
77
77
|
}
|
|
78
|
-
}
|
|
78
|
+
}
|