@wildix/xbees-users-client 1.0.1 → 1.0.3

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.
Files changed (44) hide show
  1. package/dist-cjs/Users.js +16 -0
  2. package/dist-cjs/commands/CreateBotApiKeyCommand.js +41 -0
  3. package/dist-cjs/commands/CreateBotCommand.js +41 -0
  4. package/dist-cjs/commands/DeleteBotApiKeyCommand.js +41 -0
  5. package/dist-cjs/commands/DeleteBotCommand.js +41 -0
  6. package/dist-cjs/commands/ListBotApiKeysCommand.js +41 -0
  7. package/dist-cjs/commands/ListBotsCommand.js +41 -0
  8. package/dist-cjs/commands/UpdateBotCommand.js +41 -0
  9. package/dist-cjs/commands/VerifyBotSecretKeyCommand.js +41 -0
  10. package/dist-cjs/commands/index.js +8 -0
  11. package/dist-cjs/models/models_0.js +63 -1
  12. package/dist-cjs/protocols/Aws_restJson1.js +548 -1
  13. package/dist-es/Users.js +16 -0
  14. package/dist-es/commands/CreateBotApiKeyCommand.js +37 -0
  15. package/dist-es/commands/CreateBotCommand.js +37 -0
  16. package/dist-es/commands/DeleteBotApiKeyCommand.js +37 -0
  17. package/dist-es/commands/DeleteBotCommand.js +37 -0
  18. package/dist-es/commands/ListBotApiKeysCommand.js +37 -0
  19. package/dist-es/commands/ListBotsCommand.js +37 -0
  20. package/dist-es/commands/UpdateBotCommand.js +37 -0
  21. package/dist-es/commands/VerifyBotSecretKeyCommand.js +37 -0
  22. package/dist-es/commands/index.js +8 -0
  23. package/dist-es/models/models_0.js +58 -0
  24. package/dist-es/protocols/Aws_restJson1.js +533 -2
  25. package/dist-types/Users.d.ts +56 -0
  26. package/dist-types/UsersClient.d.ts +10 -2
  27. package/dist-types/commands/BatchGetUsersPbxLinkDataCommand.d.ts +2 -0
  28. package/dist-types/commands/BatchGetUsersStreamLinkDataCommand.d.ts +2 -0
  29. package/dist-types/commands/CreateBotApiKeyCommand.d.ts +113 -0
  30. package/dist-types/commands/CreateBotCommand.d.ts +132 -0
  31. package/dist-types/commands/DeleteBotApiKeyCommand.d.ts +79 -0
  32. package/dist-types/commands/DeleteBotCommand.d.ts +76 -0
  33. package/dist-types/commands/ListBotApiKeysCommand.d.ts +82 -0
  34. package/dist-types/commands/ListBotsCommand.d.ts +108 -0
  35. package/dist-types/commands/UpdateBotCommand.d.ts +133 -0
  36. package/dist-types/commands/VerifyBotSecretKeyCommand.d.ts +79 -0
  37. package/dist-types/commands/index.d.ts +8 -0
  38. package/dist-types/models/models_0.d.ts +247 -0
  39. package/dist-types/protocols/Aws_restJson1.d.ts +72 -0
  40. package/dist-types/runtimeConfig.browser.d.ts +3 -3
  41. package/dist-types/runtimeConfig.d.ts +3 -3
  42. package/dist-types/runtimeConfig.native.d.ts +3 -3
  43. package/dist-types/runtimeConfig.shared.d.ts +2 -2
  44. package/package.json +2 -2
@@ -0,0 +1,37 @@
1
+ import { de_DeleteBotApiKeyCommand, se_DeleteBotApiKeyCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ export { $Command };
6
+ export class DeleteBotApiKeyCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ resolveMiddleware(clientStack, configuration, options) {
12
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
+ const stack = clientStack.concat(this.middlewareStack);
14
+ const { logger } = configuration;
15
+ const clientName = "UsersClient";
16
+ const commandName = "DeleteBotApiKeyCommand";
17
+ const handlerExecutionContext = {
18
+ logger,
19
+ clientName,
20
+ commandName,
21
+ inputFilterSensitiveLog: (_) => _,
22
+ outputFilterSensitiveLog: (_) => _,
23
+ [SMITHY_CONTEXT_KEY]: {
24
+ service: "Users",
25
+ operation: "DeleteBotApiKey",
26
+ },
27
+ };
28
+ const { requestHandler } = configuration;
29
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
+ }
31
+ serialize(input, context) {
32
+ return se_DeleteBotApiKeyCommand(input, context);
33
+ }
34
+ deserialize(output, context) {
35
+ return de_DeleteBotApiKeyCommand(output, context);
36
+ }
37
+ }
@@ -0,0 +1,37 @@
1
+ import { de_DeleteBotCommand, se_DeleteBotCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ export { $Command };
6
+ export class DeleteBotCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ resolveMiddleware(clientStack, configuration, options) {
12
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
+ const stack = clientStack.concat(this.middlewareStack);
14
+ const { logger } = configuration;
15
+ const clientName = "UsersClient";
16
+ const commandName = "DeleteBotCommand";
17
+ const handlerExecutionContext = {
18
+ logger,
19
+ clientName,
20
+ commandName,
21
+ inputFilterSensitiveLog: (_) => _,
22
+ outputFilterSensitiveLog: (_) => _,
23
+ [SMITHY_CONTEXT_KEY]: {
24
+ service: "Users",
25
+ operation: "DeleteBot",
26
+ },
27
+ };
28
+ const { requestHandler } = configuration;
29
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
+ }
31
+ serialize(input, context) {
32
+ return se_DeleteBotCommand(input, context);
33
+ }
34
+ deserialize(output, context) {
35
+ return de_DeleteBotCommand(output, context);
36
+ }
37
+ }
@@ -0,0 +1,37 @@
1
+ import { de_ListBotApiKeysCommand, se_ListBotApiKeysCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ export { $Command };
6
+ export class ListBotApiKeysCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ resolveMiddleware(clientStack, configuration, options) {
12
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
+ const stack = clientStack.concat(this.middlewareStack);
14
+ const { logger } = configuration;
15
+ const clientName = "UsersClient";
16
+ const commandName = "ListBotApiKeysCommand";
17
+ const handlerExecutionContext = {
18
+ logger,
19
+ clientName,
20
+ commandName,
21
+ inputFilterSensitiveLog: (_) => _,
22
+ outputFilterSensitiveLog: (_) => _,
23
+ [SMITHY_CONTEXT_KEY]: {
24
+ service: "Users",
25
+ operation: "ListBotApiKeys",
26
+ },
27
+ };
28
+ const { requestHandler } = configuration;
29
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
+ }
31
+ serialize(input, context) {
32
+ return se_ListBotApiKeysCommand(input, context);
33
+ }
34
+ deserialize(output, context) {
35
+ return de_ListBotApiKeysCommand(output, context);
36
+ }
37
+ }
@@ -0,0 +1,37 @@
1
+ import { de_ListBotsCommand, se_ListBotsCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ export { $Command };
6
+ export class ListBotsCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ resolveMiddleware(clientStack, configuration, options) {
12
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
+ const stack = clientStack.concat(this.middlewareStack);
14
+ const { logger } = configuration;
15
+ const clientName = "UsersClient";
16
+ const commandName = "ListBotsCommand";
17
+ const handlerExecutionContext = {
18
+ logger,
19
+ clientName,
20
+ commandName,
21
+ inputFilterSensitiveLog: (_) => _,
22
+ outputFilterSensitiveLog: (_) => _,
23
+ [SMITHY_CONTEXT_KEY]: {
24
+ service: "Users",
25
+ operation: "ListBots",
26
+ },
27
+ };
28
+ const { requestHandler } = configuration;
29
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
+ }
31
+ serialize(input, context) {
32
+ return se_ListBotsCommand(input, context);
33
+ }
34
+ deserialize(output, context) {
35
+ return de_ListBotsCommand(output, context);
36
+ }
37
+ }
@@ -0,0 +1,37 @@
1
+ import { de_UpdateBotCommand, se_UpdateBotCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ export { $Command };
6
+ export class UpdateBotCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ resolveMiddleware(clientStack, configuration, options) {
12
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
+ const stack = clientStack.concat(this.middlewareStack);
14
+ const { logger } = configuration;
15
+ const clientName = "UsersClient";
16
+ const commandName = "UpdateBotCommand";
17
+ const handlerExecutionContext = {
18
+ logger,
19
+ clientName,
20
+ commandName,
21
+ inputFilterSensitiveLog: (_) => _,
22
+ outputFilterSensitiveLog: (_) => _,
23
+ [SMITHY_CONTEXT_KEY]: {
24
+ service: "Users",
25
+ operation: "UpdateBot",
26
+ },
27
+ };
28
+ const { requestHandler } = configuration;
29
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
+ }
31
+ serialize(input, context) {
32
+ return se_UpdateBotCommand(input, context);
33
+ }
34
+ deserialize(output, context) {
35
+ return de_UpdateBotCommand(output, context);
36
+ }
37
+ }
@@ -0,0 +1,37 @@
1
+ import { de_VerifyBotSecretKeyCommand, se_VerifyBotSecretKeyCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ export { $Command };
6
+ export class VerifyBotSecretKeyCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ resolveMiddleware(clientStack, configuration, options) {
12
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
+ const stack = clientStack.concat(this.middlewareStack);
14
+ const { logger } = configuration;
15
+ const clientName = "UsersClient";
16
+ const commandName = "VerifyBotSecretKeyCommand";
17
+ const handlerExecutionContext = {
18
+ logger,
19
+ clientName,
20
+ commandName,
21
+ inputFilterSensitiveLog: (_) => _,
22
+ outputFilterSensitiveLog: (_) => _,
23
+ [SMITHY_CONTEXT_KEY]: {
24
+ service: "Users",
25
+ operation: "VerifyBotSecretKey",
26
+ },
27
+ };
28
+ const { requestHandler } = configuration;
29
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
+ }
31
+ serialize(input, context) {
32
+ return se_VerifyBotSecretKeyCommand(input, context);
33
+ }
34
+ deserialize(output, context) {
35
+ return de_VerifyBotSecretKeyCommand(output, context);
36
+ }
37
+ }
@@ -1,2 +1,10 @@
1
1
  export * from "./BatchGetUsersPbxLinkDataCommand";
2
2
  export * from "./BatchGetUsersStreamLinkDataCommand";
3
+ export * from "./CreateBotCommand";
4
+ export * from "./CreateBotApiKeyCommand";
5
+ export * from "./DeleteBotCommand";
6
+ export * from "./DeleteBotApiKeyCommand";
7
+ export * from "./ListBotApiKeysCommand";
8
+ export * from "./ListBotsCommand";
9
+ export * from "./UpdateBotCommand";
10
+ export * from "./VerifyBotSecretKeyCommand";
@@ -1,4 +1,16 @@
1
1
  import { UsersServiceException as __BaseException } from "./UsersServiceException";
2
+ export class ForbiddenException extends __BaseException {
3
+ constructor(opts) {
4
+ super({
5
+ name: "ForbiddenException",
6
+ $fault: "client",
7
+ ...opts
8
+ });
9
+ this.name = "ForbiddenException";
10
+ this.$fault = "client";
11
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
12
+ }
13
+ }
2
14
  export class ValidationException extends __BaseException {
3
15
  constructor(opts) {
4
16
  super({
@@ -11,3 +23,49 @@ export class ValidationException extends __BaseException {
11
23
  Object.setPrototypeOf(this, ValidationException.prototype);
12
24
  }
13
25
  }
26
+ export var BotCallbackSettings;
27
+ (function (BotCallbackSettings) {
28
+ BotCallbackSettings.visit = (value, visitor) => {
29
+ if (value.webhook !== undefined)
30
+ return visitor.webhook(value.webhook);
31
+ if (value.sqs !== undefined)
32
+ return visitor.sqs(value.sqs);
33
+ return visitor._(value.$unknown[0], value.$unknown[1]);
34
+ };
35
+ })(BotCallbackSettings || (BotCallbackSettings = {}));
36
+ export class BotApiKeyNotFoundException extends __BaseException {
37
+ constructor(opts) {
38
+ super({
39
+ name: "BotApiKeyNotFoundException",
40
+ $fault: "client",
41
+ ...opts
42
+ });
43
+ this.name = "BotApiKeyNotFoundException";
44
+ this.$fault = "client";
45
+ Object.setPrototypeOf(this, BotApiKeyNotFoundException.prototype);
46
+ }
47
+ }
48
+ export class BotNotFoundException extends __BaseException {
49
+ constructor(opts) {
50
+ super({
51
+ name: "BotNotFoundException",
52
+ $fault: "client",
53
+ ...opts
54
+ });
55
+ this.name = "BotNotFoundException";
56
+ this.$fault = "client";
57
+ Object.setPrototypeOf(this, BotNotFoundException.prototype);
58
+ }
59
+ }
60
+ export class BotSecretKeyNotValidException extends __BaseException {
61
+ constructor(opts) {
62
+ super({
63
+ name: "BotSecretKeyNotValidException",
64
+ $fault: "client",
65
+ ...opts
66
+ });
67
+ this.name = "BotSecretKeyNotValidException";
68
+ this.$fault = "client";
69
+ Object.setPrototypeOf(this, BotSecretKeyNotValidException.prototype);
70
+ }
71
+ }