@wildix/xbees-users-client 1.0.7 → 1.0.9

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 (65) hide show
  1. package/dist-cjs/Users.js +6 -0
  2. package/dist-cjs/UsersClient.js +7 -3
  3. package/dist-cjs/commands/BatchGetUsersPbxLinkDataCommand.js +12 -32
  4. package/dist-cjs/commands/BatchGetUsersStreamLinkDataCommand.js +12 -32
  5. package/dist-cjs/commands/CreateBotApiKeyCommand.js +12 -32
  6. package/dist-cjs/commands/CreateBotCommand.js +12 -32
  7. package/dist-cjs/commands/DeleteBotApiKeyCommand.js +12 -32
  8. package/dist-cjs/commands/DeleteBotCommand.js +12 -32
  9. package/dist-cjs/commands/GetBotCallbackCommand.js +21 -0
  10. package/dist-cjs/commands/GetBotCommand.js +21 -0
  11. package/dist-cjs/commands/ListBotApiKeysCommand.js +12 -32
  12. package/dist-cjs/commands/ListBotsCommand.js +12 -32
  13. package/dist-cjs/commands/UpdateBotCallbackCommand.js +21 -0
  14. package/dist-cjs/commands/UpdateBotCommand.js +12 -32
  15. package/dist-cjs/commands/VerifyBotSecretKeyCommand.js +12 -32
  16. package/dist-cjs/commands/index.js +3 -0
  17. package/dist-cjs/models/models_0.js +25 -21
  18. package/dist-cjs/protocols/Aws_restJson1.js +200 -352
  19. package/dist-cjs/runtimeConfig.browser.js +5 -1
  20. package/dist-cjs/runtimeConfig.js +5 -1
  21. package/dist-cjs/runtimeConfig.shared.js +13 -11
  22. package/dist-es/Users.js +6 -0
  23. package/dist-es/UsersClient.js +7 -3
  24. package/dist-es/commands/BatchGetUsersPbxLinkDataCommand.js +12 -32
  25. package/dist-es/commands/BatchGetUsersStreamLinkDataCommand.js +12 -32
  26. package/dist-es/commands/CreateBotApiKeyCommand.js +12 -32
  27. package/dist-es/commands/CreateBotCommand.js +12 -32
  28. package/dist-es/commands/DeleteBotApiKeyCommand.js +12 -32
  29. package/dist-es/commands/DeleteBotCommand.js +12 -32
  30. package/dist-es/commands/GetBotCallbackCommand.js +17 -0
  31. package/dist-es/commands/GetBotCommand.js +17 -0
  32. package/dist-es/commands/ListBotApiKeysCommand.js +12 -32
  33. package/dist-es/commands/ListBotsCommand.js +12 -32
  34. package/dist-es/commands/UpdateBotCallbackCommand.js +17 -0
  35. package/dist-es/commands/UpdateBotCommand.js +12 -32
  36. package/dist-es/commands/VerifyBotSecretKeyCommand.js +12 -32
  37. package/dist-es/commands/index.js +3 -0
  38. package/dist-es/models/models_0.js +22 -18
  39. package/dist-es/protocols/Aws_restJson1.js +192 -350
  40. package/dist-es/runtimeConfig.browser.js +4 -1
  41. package/dist-es/runtimeConfig.js +4 -1
  42. package/dist-es/runtimeConfig.shared.js +13 -11
  43. package/dist-types/Users.d.ts +22 -0
  44. package/dist-types/UsersClient.d.ts +18 -9
  45. package/dist-types/commands/BatchGetUsersPbxLinkDataCommand.d.ts +7 -19
  46. package/dist-types/commands/BatchGetUsersStreamLinkDataCommand.d.ts +7 -19
  47. package/dist-types/commands/CreateBotApiKeyCommand.d.ts +11 -45
  48. package/dist-types/commands/CreateBotCommand.d.ts +32 -66
  49. package/dist-types/commands/DeleteBotApiKeyCommand.d.ts +7 -19
  50. package/dist-types/commands/DeleteBotCommand.d.ts +7 -19
  51. package/dist-types/commands/GetBotCallbackCommand.d.ts +91 -0
  52. package/dist-types/commands/GetBotCommand.d.ts +73 -0
  53. package/dist-types/commands/ListBotApiKeysCommand.d.ts +7 -19
  54. package/dist-types/commands/ListBotsCommand.d.ts +9 -45
  55. package/dist-types/commands/UpdateBotCallbackCommand.d.ts +115 -0
  56. package/dist-types/commands/UpdateBotCommand.d.ts +12 -71
  57. package/dist-types/commands/VerifyBotSecretKeyCommand.d.ts +7 -19
  58. package/dist-types/commands/index.d.ts +3 -0
  59. package/dist-types/index.d.ts +2 -0
  60. package/dist-types/models/models_0.d.ts +155 -62
  61. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  62. package/dist-types/runtimeConfig.browser.d.ts +3 -4
  63. package/dist-types/runtimeConfig.d.ts +3 -4
  64. package/dist-types/runtimeConfig.native.d.ts +3 -4
  65. package/package.json +32 -31
@@ -1,37 +1,17 @@
1
1
  import { de_VerifyBotSecretKeyCommand, se_VerifyBotSecretKeyCommand, } from "../protocols/Aws_restJson1";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
4
  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
- }
5
+ export class VerifyBotSecretKeyCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "VerifyBotSecretKey", {})
12
+ .n("UsersClient", "VerifyBotSecretKeyCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_VerifyBotSecretKeyCommand)
15
+ .de(de_VerifyBotSecretKeyCommand)
16
+ .build() {
37
17
  }
@@ -4,7 +4,10 @@ export * from "./CreateBotCommand";
4
4
  export * from "./CreateBotApiKeyCommand";
5
5
  export * from "./DeleteBotCommand";
6
6
  export * from "./DeleteBotApiKeyCommand";
7
+ export * from "./GetBotCommand";
8
+ export * from "./GetBotCallbackCommand";
7
9
  export * from "./ListBotApiKeysCommand";
8
10
  export * from "./ListBotsCommand";
9
11
  export * from "./UpdateBotCommand";
12
+ export * from "./UpdateBotCallbackCommand";
10
13
  export * from "./VerifyBotSecretKeyCommand";
@@ -1,38 +1,28 @@
1
1
  import { UsersServiceException as __BaseException } from "./UsersServiceException";
2
- export class ForbiddenException extends __BaseException {
2
+ export class ValidationException extends __BaseException {
3
3
  constructor(opts) {
4
4
  super({
5
- name: "ForbiddenException",
5
+ name: "ValidationException",
6
6
  $fault: "client",
7
7
  ...opts
8
8
  });
9
- this.name = "ForbiddenException";
9
+ this.name = "ValidationException";
10
10
  this.$fault = "client";
11
- Object.setPrototypeOf(this, ForbiddenException.prototype);
11
+ Object.setPrototypeOf(this, ValidationException.prototype);
12
12
  }
13
13
  }
14
- export class ValidationException extends __BaseException {
14
+ export class ForbiddenException extends __BaseException {
15
15
  constructor(opts) {
16
16
  super({
17
- name: "ValidationException",
17
+ name: "ForbiddenException",
18
18
  $fault: "client",
19
19
  ...opts
20
20
  });
21
- this.name = "ValidationException";
21
+ this.name = "ForbiddenException";
22
22
  this.$fault = "client";
23
- Object.setPrototypeOf(this, ValidationException.prototype);
23
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
24
24
  }
25
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
26
  export class BotApiKeyNotFoundException extends __BaseException {
37
27
  constructor(opts) {
38
28
  super({
@@ -45,6 +35,20 @@ export class BotApiKeyNotFoundException extends __BaseException {
45
35
  Object.setPrototypeOf(this, BotApiKeyNotFoundException.prototype);
46
36
  }
47
37
  }
38
+ export var BotEndpoint;
39
+ (function (BotEndpoint) {
40
+ BotEndpoint.visit = (value, visitor) => {
41
+ if (value.dialogflowCx !== undefined)
42
+ return visitor.dialogflowCx(value.dialogflowCx);
43
+ if (value.openAiAssistant !== undefined)
44
+ return visitor.openAiAssistant(value.openAiAssistant);
45
+ if (value.webhook !== undefined)
46
+ return visitor.webhook(value.webhook);
47
+ if (value.sqs !== undefined)
48
+ return visitor.sqs(value.sqs);
49
+ return visitor._(value.$unknown[0], value.$unknown[1]);
50
+ };
51
+ })(BotEndpoint || (BotEndpoint = {}));
48
52
  export class BotNotFoundException extends __BaseException {
49
53
  constructor(opts) {
50
54
  super({