@wildix/xbees-kite-client 1.5.0 → 3.1.1

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 (128) hide show
  1. package/dist-cjs/Kite.js +3 -3
  2. package/dist-cjs/KiteClient.js +34 -28
  3. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  4. package/dist-cjs/auth/httpAuthSchemeProvider.js +40 -0
  5. package/dist-cjs/commands/CancelCalendarEventCommand.js +10 -11
  6. package/dist-cjs/commands/CreateOrUpdateWidgetPreviewCommand.js +10 -11
  7. package/dist-cjs/commands/CreateWidgetCommand.js +10 -11
  8. package/dist-cjs/commands/DeleteWidgetCommand.js +10 -11
  9. package/dist-cjs/commands/GetCalendarSlotsCommand.js +10 -11
  10. package/dist-cjs/commands/GetConfigCommand.js +10 -11
  11. package/dist-cjs/commands/GetSmsNumberConfigurationCommand.js +10 -11
  12. package/dist-cjs/commands/GetWhatsAppNumberConfigurationCommand.js +10 -11
  13. package/dist-cjs/commands/GetWidgetCommand.js +10 -11
  14. package/dist-cjs/commands/ListAgentsCommand.js +10 -11
  15. package/dist-cjs/commands/ListServicesCommand.js +10 -11
  16. package/dist-cjs/commands/ListSmsConfigurationsCommand.js +10 -11
  17. package/dist-cjs/commands/ListSmsNumbersCommand.js +10 -11
  18. package/dist-cjs/commands/ListWhatsAppConfigurationsCommand.js +10 -11
  19. package/dist-cjs/commands/ListWhatsAppNumbersCommand.js +10 -11
  20. package/dist-cjs/commands/ListWhatsAppTemplatesCommand.js +10 -11
  21. package/dist-cjs/commands/ListWidgetsCommand.js +10 -11
  22. package/dist-cjs/commands/PutSmsNumberConfigurationCommand.js +10 -11
  23. package/dist-cjs/commands/PutWhatsAppNumberConfigurationCommand.js +10 -11
  24. package/dist-cjs/commands/RescheduleCalendarEventCommand.js +10 -11
  25. package/dist-cjs/commands/ScheduleCalendarEventCommand.js +10 -11
  26. package/dist-cjs/commands/UpdateWidgetCommand.js +10 -11
  27. package/dist-cjs/endpoint/EndpointParameters.js +16 -0
  28. package/dist-cjs/endpoint/bdd.js +28 -0
  29. package/dist-cjs/endpoint/endpointResolver.js +16 -0
  30. package/dist-cjs/index.js +7 -4
  31. package/dist-cjs/models/KiteSyntheticServiceException.js +12 -0
  32. package/dist-cjs/models/enums.js +80 -0
  33. package/dist-cjs/models/errors.js +116 -0
  34. package/dist-cjs/models/models_0.js +0 -303
  35. package/dist-cjs/runtimeConfig.browser.js +11 -11
  36. package/dist-cjs/runtimeConfig.js +22 -18
  37. package/dist-cjs/runtimeConfig.shared.js +30 -10
  38. package/dist-cjs/runtimeExtensions.js +6 -5
  39. package/dist-cjs/schemas/schemas_0.js +1160 -0
  40. package/dist-es/Kite.js +4 -4
  41. package/dist-es/KiteClient.js +30 -24
  42. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  43. package/dist-es/auth/httpAuthSchemeProvider.js +34 -0
  44. package/dist-es/commands/CancelCalendarEventCommand.js +9 -10
  45. package/dist-es/commands/CreateOrUpdateWidgetPreviewCommand.js +9 -10
  46. package/dist-es/commands/CreateWidgetCommand.js +9 -10
  47. package/dist-es/commands/DeleteWidgetCommand.js +9 -10
  48. package/dist-es/commands/GetCalendarSlotsCommand.js +9 -10
  49. package/dist-es/commands/GetConfigCommand.js +9 -10
  50. package/dist-es/commands/GetSmsNumberConfigurationCommand.js +9 -10
  51. package/dist-es/commands/GetWhatsAppNumberConfigurationCommand.js +9 -10
  52. package/dist-es/commands/GetWidgetCommand.js +9 -10
  53. package/dist-es/commands/ListAgentsCommand.js +9 -10
  54. package/dist-es/commands/ListServicesCommand.js +9 -10
  55. package/dist-es/commands/ListSmsConfigurationsCommand.js +9 -10
  56. package/dist-es/commands/ListSmsNumbersCommand.js +9 -10
  57. package/dist-es/commands/ListWhatsAppConfigurationsCommand.js +9 -10
  58. package/dist-es/commands/ListWhatsAppNumbersCommand.js +9 -10
  59. package/dist-es/commands/ListWhatsAppTemplatesCommand.js +9 -10
  60. package/dist-es/commands/ListWidgetsCommand.js +9 -10
  61. package/dist-es/commands/PutSmsNumberConfigurationCommand.js +9 -10
  62. package/dist-es/commands/PutWhatsAppNumberConfigurationCommand.js +9 -10
  63. package/dist-es/commands/RescheduleCalendarEventCommand.js +9 -10
  64. package/dist-es/commands/ScheduleCalendarEventCommand.js +9 -10
  65. package/dist-es/commands/UpdateWidgetCommand.js +9 -10
  66. package/dist-es/endpoint/EndpointParameters.js +12 -0
  67. package/dist-es/endpoint/bdd.js +25 -0
  68. package/dist-es/endpoint/endpointResolver.js +12 -0
  69. package/dist-es/index.js +5 -2
  70. package/dist-es/models/KiteSyntheticServiceException.js +8 -0
  71. package/dist-es/models/enums.js +77 -0
  72. package/dist-es/models/errors.js +105 -0
  73. package/dist-es/models/models_0.js +1 -294
  74. package/dist-es/runtimeConfig.browser.js +7 -7
  75. package/dist-es/runtimeConfig.js +17 -13
  76. package/dist-es/runtimeConfig.shared.js +24 -4
  77. package/dist-es/runtimeExtensions.js +6 -5
  78. package/dist-es/schemas/schemas_0.js +1155 -0
  79. package/dist-types/Kite.d.ts +23 -23
  80. package/dist-types/KiteClient.d.ts +52 -34
  81. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  82. package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
  83. package/dist-types/commands/CancelCalendarEventCommand.d.ts +12 -8
  84. package/dist-types/commands/CreateOrUpdateWidgetPreviewCommand.d.ts +12 -8
  85. package/dist-types/commands/CreateWidgetCommand.d.ts +12 -8
  86. package/dist-types/commands/DeleteWidgetCommand.d.ts +12 -8
  87. package/dist-types/commands/GetCalendarSlotsCommand.d.ts +12 -8
  88. package/dist-types/commands/GetConfigCommand.d.ts +12 -8
  89. package/dist-types/commands/GetSmsNumberConfigurationCommand.d.ts +12 -8
  90. package/dist-types/commands/GetWhatsAppNumberConfigurationCommand.d.ts +12 -8
  91. package/dist-types/commands/GetWidgetCommand.d.ts +12 -8
  92. package/dist-types/commands/ListAgentsCommand.d.ts +12 -8
  93. package/dist-types/commands/ListServicesCommand.d.ts +12 -8
  94. package/dist-types/commands/ListSmsConfigurationsCommand.d.ts +12 -8
  95. package/dist-types/commands/ListSmsNumbersCommand.d.ts +12 -8
  96. package/dist-types/commands/ListWhatsAppConfigurationsCommand.d.ts +12 -8
  97. package/dist-types/commands/ListWhatsAppNumbersCommand.d.ts +12 -8
  98. package/dist-types/commands/ListWhatsAppTemplatesCommand.d.ts +12 -8
  99. package/dist-types/commands/ListWidgetsCommand.d.ts +12 -8
  100. package/dist-types/commands/PutSmsNumberConfigurationCommand.d.ts +12 -8
  101. package/dist-types/commands/PutWhatsAppNumberConfigurationCommand.d.ts +12 -8
  102. package/dist-types/commands/RescheduleCalendarEventCommand.d.ts +12 -8
  103. package/dist-types/commands/ScheduleCalendarEventCommand.d.ts +12 -8
  104. package/dist-types/commands/UpdateWidgetCommand.d.ts +12 -8
  105. package/dist-types/endpoint/EndpointParameters.d.ts +41 -0
  106. package/dist-types/endpoint/bdd.d.ts +2 -0
  107. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  108. package/dist-types/extensionConfiguration.d.ts +4 -3
  109. package/dist-types/index.d.ts +6 -2
  110. package/dist-types/models/{KiteServiceException.d.ts → KiteSyntheticServiceException.d.ts} +2 -2
  111. package/dist-types/models/enums.d.ts +197 -0
  112. package/dist-types/models/errors.d.ts +110 -0
  113. package/dist-types/models/models_0.d.ts +105 -381
  114. package/dist-types/runtimeConfig.browser.d.ts +35 -16
  115. package/dist-types/runtimeConfig.d.ts +34 -15
  116. package/dist-types/runtimeConfig.native.d.ts +36 -17
  117. package/dist-types/runtimeConfig.shared.d.ts +20 -3
  118. package/dist-types/runtimeExtensions.d.ts +1 -1
  119. package/dist-types/schemas/schemas_0.d.ts +153 -0
  120. package/package.json +14 -40
  121. package/dist-cjs/models/KiteServiceException.js +0 -12
  122. package/dist-cjs/models/index.js +0 -4
  123. package/dist-cjs/protocols/Aws_restJson1.js +0 -963
  124. package/dist-es/models/KiteServiceException.js +0 -8
  125. package/dist-es/models/index.js +0 -1
  126. package/dist-es/protocols/Aws_restJson1.js +0 -916
  127. package/dist-types/models/index.d.ts +0 -1
  128. package/dist-types/protocols/Aws_restJson1.d.ts +0 -200
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ListWhatsAppConfigurationsCommand = 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 ListWhatsAppConfigurationsCommand extends smithy_client_1.Command.classBuilder()
4
+ const client_1 = require("@smithy/core/client");
5
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
6
+ const endpoints_1 = require("@smithy/core/endpoints");
7
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
8
+ const schemas_0_1 = require("../schemas/schemas_0");
9
+ class ListWhatsAppConfigurationsCommand extends client_1.Command
10
+ .classBuilder()
11
+ .ep(EndpointParameters_1.commonParams)
9
12
  .m(function (Command, cs, config, o) {
10
- return [
11
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
- ];
13
+ return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
13
14
  })
14
15
  .s("Kite", "ListWhatsAppConfigurations", {})
15
16
  .n("KiteClient", "ListWhatsAppConfigurationsCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_ListWhatsAppConfigurationsCommand)
18
- .de(Aws_restJson1_1.de_ListWhatsAppConfigurationsCommand)
17
+ .sc(schemas_0_1.ListWhatsAppConfigurations$)
19
18
  .build() {
20
19
  }
21
20
  exports.ListWhatsAppConfigurationsCommand = ListWhatsAppConfigurationsCommand;
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ListWhatsAppNumbersCommand = 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 ListWhatsAppNumbersCommand extends smithy_client_1.Command.classBuilder()
4
+ const client_1 = require("@smithy/core/client");
5
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
6
+ const endpoints_1 = require("@smithy/core/endpoints");
7
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
8
+ const schemas_0_1 = require("../schemas/schemas_0");
9
+ class ListWhatsAppNumbersCommand extends client_1.Command
10
+ .classBuilder()
11
+ .ep(EndpointParameters_1.commonParams)
9
12
  .m(function (Command, cs, config, o) {
10
- return [
11
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
- ];
13
+ return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
13
14
  })
14
15
  .s("Kite", "ListWhatsAppNumbers", {})
15
16
  .n("KiteClient", "ListWhatsAppNumbersCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_ListWhatsAppNumbersCommand)
18
- .de(Aws_restJson1_1.de_ListWhatsAppNumbersCommand)
17
+ .sc(schemas_0_1.ListWhatsAppNumbers$)
19
18
  .build() {
20
19
  }
21
20
  exports.ListWhatsAppNumbersCommand = ListWhatsAppNumbersCommand;
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ListWhatsAppTemplatesCommand = 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 ListWhatsAppTemplatesCommand extends smithy_client_1.Command.classBuilder()
4
+ const client_1 = require("@smithy/core/client");
5
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
6
+ const endpoints_1 = require("@smithy/core/endpoints");
7
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
8
+ const schemas_0_1 = require("../schemas/schemas_0");
9
+ class ListWhatsAppTemplatesCommand extends client_1.Command
10
+ .classBuilder()
11
+ .ep(EndpointParameters_1.commonParams)
9
12
  .m(function (Command, cs, config, o) {
10
- return [
11
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
- ];
13
+ return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
13
14
  })
14
15
  .s("Kite", "ListWhatsAppTemplates", {})
15
16
  .n("KiteClient", "ListWhatsAppTemplatesCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_ListWhatsAppTemplatesCommand)
18
- .de(Aws_restJson1_1.de_ListWhatsAppTemplatesCommand)
17
+ .sc(schemas_0_1.ListWhatsAppTemplates$)
19
18
  .build() {
20
19
  }
21
20
  exports.ListWhatsAppTemplatesCommand = ListWhatsAppTemplatesCommand;
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ListWidgetsCommand = 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 ListWidgetsCommand extends smithy_client_1.Command.classBuilder()
4
+ const client_1 = require("@smithy/core/client");
5
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
6
+ const endpoints_1 = require("@smithy/core/endpoints");
7
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
8
+ const schemas_0_1 = require("../schemas/schemas_0");
9
+ class ListWidgetsCommand extends client_1.Command
10
+ .classBuilder()
11
+ .ep(EndpointParameters_1.commonParams)
9
12
  .m(function (Command, cs, config, o) {
10
- return [
11
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
- ];
13
+ return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
13
14
  })
14
15
  .s("Kite", "ListWidgets", {})
15
16
  .n("KiteClient", "ListWidgetsCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_ListWidgetsCommand)
18
- .de(Aws_restJson1_1.de_ListWidgetsCommand)
17
+ .sc(schemas_0_1.ListWidgets$)
19
18
  .build() {
20
19
  }
21
20
  exports.ListWidgetsCommand = ListWidgetsCommand;
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PutSmsNumberConfigurationCommand = 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 PutSmsNumberConfigurationCommand extends smithy_client_1.Command.classBuilder()
4
+ const client_1 = require("@smithy/core/client");
5
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
6
+ const endpoints_1 = require("@smithy/core/endpoints");
7
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
8
+ const schemas_0_1 = require("../schemas/schemas_0");
9
+ class PutSmsNumberConfigurationCommand extends client_1.Command
10
+ .classBuilder()
11
+ .ep(EndpointParameters_1.commonParams)
9
12
  .m(function (Command, cs, config, o) {
10
- return [
11
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
- ];
13
+ return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
13
14
  })
14
15
  .s("Kite", "PutSmsNumberConfiguration", {})
15
16
  .n("KiteClient", "PutSmsNumberConfigurationCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_PutSmsNumberConfigurationCommand)
18
- .de(Aws_restJson1_1.de_PutSmsNumberConfigurationCommand)
17
+ .sc(schemas_0_1.PutSmsNumberConfiguration$)
19
18
  .build() {
20
19
  }
21
20
  exports.PutSmsNumberConfigurationCommand = PutSmsNumberConfigurationCommand;
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PutWhatsAppNumberConfigurationCommand = 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 PutWhatsAppNumberConfigurationCommand extends smithy_client_1.Command.classBuilder()
4
+ const client_1 = require("@smithy/core/client");
5
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
6
+ const endpoints_1 = require("@smithy/core/endpoints");
7
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
8
+ const schemas_0_1 = require("../schemas/schemas_0");
9
+ class PutWhatsAppNumberConfigurationCommand extends client_1.Command
10
+ .classBuilder()
11
+ .ep(EndpointParameters_1.commonParams)
9
12
  .m(function (Command, cs, config, o) {
10
- return [
11
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
- ];
13
+ return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
13
14
  })
14
15
  .s("Kite", "PutWhatsAppNumberConfiguration", {})
15
16
  .n("KiteClient", "PutWhatsAppNumberConfigurationCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_PutWhatsAppNumberConfigurationCommand)
18
- .de(Aws_restJson1_1.de_PutWhatsAppNumberConfigurationCommand)
17
+ .sc(schemas_0_1.PutWhatsAppNumberConfiguration$)
19
18
  .build() {
20
19
  }
21
20
  exports.PutWhatsAppNumberConfigurationCommand = PutWhatsAppNumberConfigurationCommand;
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RescheduleCalendarEventCommand = 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 RescheduleCalendarEventCommand extends smithy_client_1.Command.classBuilder()
4
+ const client_1 = require("@smithy/core/client");
5
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
6
+ const endpoints_1 = require("@smithy/core/endpoints");
7
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
8
+ const schemas_0_1 = require("../schemas/schemas_0");
9
+ class RescheduleCalendarEventCommand extends client_1.Command
10
+ .classBuilder()
11
+ .ep(EndpointParameters_1.commonParams)
9
12
  .m(function (Command, cs, config, o) {
10
- return [
11
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
- ];
13
+ return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
13
14
  })
14
15
  .s("Kite", "RescheduleCalendarEvent", {})
15
16
  .n("KiteClient", "RescheduleCalendarEventCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_RescheduleCalendarEventCommand)
18
- .de(Aws_restJson1_1.de_RescheduleCalendarEventCommand)
17
+ .sc(schemas_0_1.RescheduleCalendarEvent$)
19
18
  .build() {
20
19
  }
21
20
  exports.RescheduleCalendarEventCommand = RescheduleCalendarEventCommand;
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ScheduleCalendarEventCommand = 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 ScheduleCalendarEventCommand extends smithy_client_1.Command.classBuilder()
4
+ const client_1 = require("@smithy/core/client");
5
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
6
+ const endpoints_1 = require("@smithy/core/endpoints");
7
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
8
+ const schemas_0_1 = require("../schemas/schemas_0");
9
+ class ScheduleCalendarEventCommand extends client_1.Command
10
+ .classBuilder()
11
+ .ep(EndpointParameters_1.commonParams)
9
12
  .m(function (Command, cs, config, o) {
10
- return [
11
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
- ];
13
+ return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
13
14
  })
14
15
  .s("Kite", "ScheduleCalendarEvent", {})
15
16
  .n("KiteClient", "ScheduleCalendarEventCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_ScheduleCalendarEventCommand)
18
- .de(Aws_restJson1_1.de_ScheduleCalendarEventCommand)
17
+ .sc(schemas_0_1.ScheduleCalendarEvent$)
19
18
  .build() {
20
19
  }
21
20
  exports.ScheduleCalendarEventCommand = ScheduleCalendarEventCommand;
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UpdateWidgetCommand = 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 UpdateWidgetCommand extends smithy_client_1.Command.classBuilder()
4
+ const client_1 = require("@smithy/core/client");
5
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
6
+ const endpoints_1 = require("@smithy/core/endpoints");
7
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
8
+ const schemas_0_1 = require("../schemas/schemas_0");
9
+ class UpdateWidgetCommand extends client_1.Command
10
+ .classBuilder()
11
+ .ep(EndpointParameters_1.commonParams)
9
12
  .m(function (Command, cs, config, o) {
10
- return [
11
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
- ];
13
+ return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
13
14
  })
14
15
  .s("Kite", "UpdateWidget", {})
15
16
  .n("KiteClient", "UpdateWidgetCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_UpdateWidgetCommand)
18
- .de(Aws_restJson1_1.de_UpdateWidgetCommand)
17
+ .sc(schemas_0_1.UpdateWidget$)
19
18
  .build() {
20
19
  }
21
20
  exports.UpdateWidgetCommand = UpdateWidgetCommand;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.commonParams = exports.resolveClientEndpointParameters = void 0;
4
+ const clientContextParamDefaults = {};
5
+ const resolveClientEndpointParameters = (options) => {
6
+ return Object.assign(options, {
7
+ env: options.env ?? "prod",
8
+ defaultSigningName: "",
9
+ clientContextParams: Object.assign(clientContextParamDefaults, options.clientContextParams),
10
+ });
11
+ };
12
+ exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
13
+ exports.commonParams = {
14
+ env: { type: "clientContextParams", name: "env" },
15
+ endpoint: { type: "builtInParams", name: "endpoint" },
16
+ };
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.bdd = void 0;
4
+ const endpoints_1 = require("@smithy/core/endpoints");
5
+ const a = "stringEquals", b = { "ref": "endpoint" }, c = { "ref": "env" };
6
+ const _data = {
7
+ conditions: [
8
+ ["isSet", [b]],
9
+ [a, [c, "stable"]],
10
+ [a, [c, "stage"]]
11
+ ],
12
+ results: [
13
+ [-1],
14
+ [b, {}],
15
+ ["https://api-stable.x-bees.com", {}],
16
+ ["https://api-stage.x-bees.com", {}],
17
+ ["https://api.x-bees.com", {}]
18
+ ]
19
+ };
20
+ const root = 2;
21
+ const r = 100_000_000;
22
+ const nodes = new Int32Array([
23
+ -1, 1, -1,
24
+ 0, r + 1, 3,
25
+ 1, r + 2, 4,
26
+ 2, r + 3, r + 4,
27
+ ]);
28
+ exports.bdd = endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaultEndpointResolver = void 0;
4
+ const endpoints_1 = require("@smithy/core/endpoints");
5
+ const bdd_1 = require("./bdd");
6
+ const cache = new endpoints_1.EndpointCache({
7
+ size: 50,
8
+ params: ["endpoint", "env"],
9
+ });
10
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
11
+ return cache.get(endpointParams, () => (0, endpoints_1.decideEndpoint)(bdd_1.bdd, {
12
+ endpointParams: endpointParams,
13
+ logger: context.logger,
14
+ }));
15
+ };
16
+ exports.defaultEndpointResolver = defaultEndpointResolver;
package/dist-cjs/index.js CHANGED
@@ -1,10 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.KiteServiceException = void 0;
3
+ exports.KiteSyntheticServiceException = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  tslib_1.__exportStar(require("./KiteClient"), exports);
6
6
  tslib_1.__exportStar(require("./Kite"), exports);
7
7
  tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./models"), exports);
9
- var KiteServiceException_1 = require("./models/KiteServiceException");
10
- Object.defineProperty(exports, "KiteServiceException", { enumerable: true, get: function () { return KiteServiceException_1.KiteServiceException; } });
8
+ tslib_1.__exportStar(require("./schemas/schemas_0"), exports);
9
+ tslib_1.__exportStar(require("./models/enums"), exports);
10
+ tslib_1.__exportStar(require("./models/errors"), exports);
11
+ tslib_1.__exportStar(require("./models/models_0"), exports);
12
+ var KiteSyntheticServiceException_1 = require("./models/KiteSyntheticServiceException");
13
+ Object.defineProperty(exports, "KiteSyntheticServiceException", { enumerable: true, get: function () { return KiteSyntheticServiceException_1.KiteSyntheticServiceException; } });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KiteSyntheticServiceException = exports.__ServiceException = void 0;
4
+ const client_1 = require("@smithy/core/client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
6
+ class KiteSyntheticServiceException extends client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, KiteSyntheticServiceException.prototype);
10
+ }
11
+ }
12
+ exports.KiteSyntheticServiceException = KiteSyntheticServiceException;
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KiteVariant = exports.KiteFeatures = exports.RouteTimeFrameDay = exports.ButtonVariant = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.TemplateStatus = exports.ParameterFormat = exports.ComponentType = exports.ComponentFormat = exports.TemplateCategory = exports.ButtonType = void 0;
4
+ exports.ButtonType = {
5
+ APP: "APP",
6
+ CATALOG: "CATALOG",
7
+ FLOW: "FLOW",
8
+ MPM: "MPM",
9
+ OTP: "OTP",
10
+ PHONE_NUMBER: "PHONE_NUMBER",
11
+ QUICK_REPLY: "QUICK_REPLY",
12
+ URL: "URL",
13
+ VOICE_CALL: "VOICE_CALL",
14
+ };
15
+ exports.TemplateCategory = {
16
+ AUTHENTICATION: "AUTHENTICATION",
17
+ MARKETING: "MARKETING",
18
+ UTILITY: "UTILITY",
19
+ };
20
+ exports.ComponentFormat = {
21
+ IMAGE: "IMAGE",
22
+ TEXT: "TEXT",
23
+ };
24
+ exports.ComponentType = {
25
+ BODY: "BODY",
26
+ BUTTONS: "BUTTONS",
27
+ FOOTER: "FOOTER",
28
+ HEADER: "HEADER",
29
+ };
30
+ exports.ParameterFormat = {
31
+ NAMED: "NAMED",
32
+ };
33
+ exports.TemplateStatus = {
34
+ APPROVED: "APPROVED",
35
+ PAUSED: "PAUSED",
36
+ REJECTED: "REJECTED",
37
+ };
38
+ exports.ChannelAccess = {
39
+ PRIVATE: "private",
40
+ PUBLIC: "public",
41
+ };
42
+ exports.ChannelType = {
43
+ DIRECT: "direct",
44
+ GROUP: "group",
45
+ };
46
+ exports.ChannelContextEventAttendeeStatus = {
47
+ ACCEPTED: "accepted",
48
+ DECLINED: "declined",
49
+ NONE: "none",
50
+ TENTATIVE: "tentative",
51
+ };
52
+ exports.ChannelContextSource = {
53
+ KITE: "kite",
54
+ };
55
+ exports.ChannelWhatsAppStatus = {
56
+ CHANNEL_CLOSED: "24h_channel_closed",
57
+ };
58
+ exports.ButtonVariant = {
59
+ CONTAINED: "contained",
60
+ OUTLINED: "outlined",
61
+ };
62
+ exports.RouteTimeFrameDay = {
63
+ EVERY_DAY: "EVERY_DAY",
64
+ FRIDAY: "FRIDAY",
65
+ MONDAY: "MONDAY",
66
+ SATURDAY: "SATURDAY",
67
+ SUNDAY: "SUNDAY",
68
+ THURSDAY: "THURSDAY",
69
+ TUESDAY: "TUESDAY",
70
+ WEDNESDAY: "WEDNESDAY",
71
+ WEEKDAYS: "WEEKDAYS",
72
+ WEEKENDS: "WEEKENDS",
73
+ };
74
+ exports.KiteFeatures = {
75
+ SCHEDULING: "scheduling",
76
+ };
77
+ exports.KiteVariant = {
78
+ DIRECT: "direct",
79
+ GROUP: "group",
80
+ };
@@ -0,0 +1,116 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WidgetNotFoundException = exports.EventNotFoundException = exports.ChannelNotFoundException = exports.TargetNotFoundException = exports.ValidationException = exports.RateLimitExceededException = exports.NotFoundException = exports.ForbiddenException = void 0;
4
+ const KiteSyntheticServiceException_1 = require("./KiteSyntheticServiceException");
5
+ class ForbiddenException extends KiteSyntheticServiceException_1.KiteSyntheticServiceException {
6
+ name = "ForbiddenException";
7
+ $fault = "client";
8
+ constructor(opts) {
9
+ super({
10
+ name: "ForbiddenException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
15
+ }
16
+ }
17
+ exports.ForbiddenException = ForbiddenException;
18
+ class NotFoundException extends KiteSyntheticServiceException_1.KiteSyntheticServiceException {
19
+ name = "NotFoundException";
20
+ $fault = "client";
21
+ constructor(opts) {
22
+ super({
23
+ name: "NotFoundException",
24
+ $fault: "client",
25
+ ...opts,
26
+ });
27
+ Object.setPrototypeOf(this, NotFoundException.prototype);
28
+ }
29
+ }
30
+ exports.NotFoundException = NotFoundException;
31
+ class RateLimitExceededException extends KiteSyntheticServiceException_1.KiteSyntheticServiceException {
32
+ name = "RateLimitExceededException";
33
+ $fault = "client";
34
+ rateLimit;
35
+ rateLimitRemaining;
36
+ rateLimitReset;
37
+ retryAfter;
38
+ constructor(opts) {
39
+ super({
40
+ name: "RateLimitExceededException",
41
+ $fault: "client",
42
+ ...opts,
43
+ });
44
+ Object.setPrototypeOf(this, RateLimitExceededException.prototype);
45
+ this.rateLimit = opts.rateLimit;
46
+ this.rateLimitRemaining = opts.rateLimitRemaining;
47
+ this.rateLimitReset = opts.rateLimitReset;
48
+ this.retryAfter = opts.retryAfter;
49
+ }
50
+ }
51
+ exports.RateLimitExceededException = RateLimitExceededException;
52
+ class ValidationException extends KiteSyntheticServiceException_1.KiteSyntheticServiceException {
53
+ name = "ValidationException";
54
+ $fault = "client";
55
+ constructor(opts) {
56
+ super({
57
+ name: "ValidationException",
58
+ $fault: "client",
59
+ ...opts,
60
+ });
61
+ Object.setPrototypeOf(this, ValidationException.prototype);
62
+ }
63
+ }
64
+ exports.ValidationException = ValidationException;
65
+ class TargetNotFoundException extends KiteSyntheticServiceException_1.KiteSyntheticServiceException {
66
+ name = "TargetNotFoundException";
67
+ $fault = "client";
68
+ constructor(opts) {
69
+ super({
70
+ name: "TargetNotFoundException",
71
+ $fault: "client",
72
+ ...opts,
73
+ });
74
+ Object.setPrototypeOf(this, TargetNotFoundException.prototype);
75
+ }
76
+ }
77
+ exports.TargetNotFoundException = TargetNotFoundException;
78
+ class ChannelNotFoundException extends KiteSyntheticServiceException_1.KiteSyntheticServiceException {
79
+ name = "ChannelNotFoundException";
80
+ $fault = "client";
81
+ constructor(opts) {
82
+ super({
83
+ name: "ChannelNotFoundException",
84
+ $fault: "client",
85
+ ...opts,
86
+ });
87
+ Object.setPrototypeOf(this, ChannelNotFoundException.prototype);
88
+ }
89
+ }
90
+ exports.ChannelNotFoundException = ChannelNotFoundException;
91
+ class EventNotFoundException extends KiteSyntheticServiceException_1.KiteSyntheticServiceException {
92
+ name = "EventNotFoundException";
93
+ $fault = "client";
94
+ constructor(opts) {
95
+ super({
96
+ name: "EventNotFoundException",
97
+ $fault: "client",
98
+ ...opts,
99
+ });
100
+ Object.setPrototypeOf(this, EventNotFoundException.prototype);
101
+ }
102
+ }
103
+ exports.EventNotFoundException = EventNotFoundException;
104
+ class WidgetNotFoundException extends KiteSyntheticServiceException_1.KiteSyntheticServiceException {
105
+ name = "WidgetNotFoundException";
106
+ $fault = "client";
107
+ constructor(opts) {
108
+ super({
109
+ name: "WidgetNotFoundException",
110
+ $fault: "client",
111
+ ...opts,
112
+ });
113
+ Object.setPrototypeOf(this, WidgetNotFoundException.prototype);
114
+ }
115
+ }
116
+ exports.WidgetNotFoundException = WidgetNotFoundException;