@wildix/xbees-kite-client 1.0.15 → 1.0.17

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/Kite.js +18 -0
  2. package/dist-cjs/KiteClient.js +4 -5
  3. package/dist-cjs/commands/GetSmsNumberConfigurationCommand.js +21 -0
  4. package/dist-cjs/commands/GetWhatsAppNumberConfigurationCommand.js +21 -0
  5. package/dist-cjs/commands/ListSmsConfigurationsCommand.js +21 -0
  6. package/dist-cjs/commands/ListSmsNumbersCommand.js +21 -0
  7. package/dist-cjs/commands/ListWhatsAppConfigurationsCommand.js +21 -0
  8. package/dist-cjs/commands/ListWhatsAppNumbersCommand.js +21 -0
  9. package/dist-cjs/commands/ListWhatsAppTemplatesCommand.js +21 -0
  10. package/dist-cjs/commands/PutSmsNumberConfigurationCommand.js +21 -0
  11. package/dist-cjs/commands/PutWhatsAppNumberConfigurationCommand.js +21 -0
  12. package/dist-cjs/commands/index.js +9 -0
  13. package/dist-cjs/models/models_0.js +113 -22
  14. package/dist-cjs/protocols/Aws_restJson1.js +342 -76
  15. package/dist-cjs/runtimeConfig.browser.js +1 -1
  16. package/dist-cjs/runtimeConfig.js +4 -3
  17. package/dist-cjs/runtimeExtensions.js +2 -10
  18. package/dist-es/Kite.js +18 -0
  19. package/dist-es/KiteClient.js +4 -5
  20. package/dist-es/commands/GetSmsNumberConfigurationCommand.js +17 -0
  21. package/dist-es/commands/GetWhatsAppNumberConfigurationCommand.js +17 -0
  22. package/dist-es/commands/ListSmsConfigurationsCommand.js +17 -0
  23. package/dist-es/commands/ListSmsNumbersCommand.js +17 -0
  24. package/dist-es/commands/ListWhatsAppConfigurationsCommand.js +17 -0
  25. package/dist-es/commands/ListWhatsAppNumbersCommand.js +17 -0
  26. package/dist-es/commands/ListWhatsAppTemplatesCommand.js +17 -0
  27. package/dist-es/commands/PutSmsNumberConfigurationCommand.js +17 -0
  28. package/dist-es/commands/PutWhatsAppNumberConfigurationCommand.js +17 -0
  29. package/dist-es/commands/index.js +9 -0
  30. package/dist-es/models/models_0.js +105 -15
  31. package/dist-es/protocols/Aws_restJson1.js +296 -48
  32. package/dist-es/runtimeConfig.browser.js +2 -2
  33. package/dist-es/runtimeConfig.js +5 -4
  34. package/dist-es/runtimeExtensions.js +2 -10
  35. package/dist-types/Kite.d.ts +67 -0
  36. package/dist-types/KiteClient.d.ts +11 -2
  37. package/dist-types/commands/CancelCalendarEventCommand.d.ts +17 -0
  38. package/dist-types/commands/CreateOrUpdateWidgetPreviewCommand.d.ts +118 -0
  39. package/dist-types/commands/CreateWidgetCommand.d.ts +118 -0
  40. package/dist-types/commands/DeleteWidgetCommand.d.ts +14 -0
  41. package/dist-types/commands/GetCalendarSlotsCommand.d.ts +14 -0
  42. package/dist-types/commands/GetConfigCommand.d.ts +14 -0
  43. package/dist-types/commands/GetSmsNumberConfigurationCommand.d.ts +178 -0
  44. package/dist-types/commands/GetWhatsAppNumberConfigurationCommand.d.ts +178 -0
  45. package/dist-types/commands/GetWidgetCommand.d.ts +66 -0
  46. package/dist-types/commands/ListAgentsCommand.d.ts +14 -0
  47. package/dist-types/commands/ListServicesCommand.d.ts +14 -0
  48. package/dist-types/commands/ListSmsConfigurationsCommand.d.ts +179 -0
  49. package/dist-types/commands/ListSmsNumbersCommand.d.ts +82 -0
  50. package/dist-types/commands/ListWhatsAppConfigurationsCommand.d.ts +179 -0
  51. package/dist-types/commands/ListWhatsAppNumbersCommand.d.ts +82 -0
  52. package/dist-types/commands/ListWhatsAppTemplatesCommand.d.ts +118 -0
  53. package/dist-types/commands/ListWidgetsCommand.d.ts +66 -0
  54. package/dist-types/commands/PutSmsNumberConfigurationCommand.d.ts +270 -0
  55. package/dist-types/commands/PutWhatsAppNumberConfigurationCommand.d.ts +270 -0
  56. package/dist-types/commands/RescheduleCalendarEventCommand.d.ts +17 -0
  57. package/dist-types/commands/ScheduleCalendarEventCommand.d.ts +17 -0
  58. package/dist-types/commands/UpdateWidgetCommand.d.ts +118 -0
  59. package/dist-types/commands/index.d.ts +9 -0
  60. package/dist-types/models/models_0.d.ts +869 -161
  61. package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
  62. package/dist-types/runtimeConfig.browser.d.ts +2 -1
  63. package/dist-types/runtimeConfig.d.ts +2 -1
  64. package/dist-types/runtimeConfig.native.d.ts +2 -1
  65. package/package.json +37 -33
@@ -21,7 +21,7 @@ const getRuntimeConfig = (config) => {
21
21
  runtime: "browser",
22
22
  defaultsMode,
23
23
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
24
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: package_json_1.default.name, clientVersion: package_json_1.default.version }),
24
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: package_json_1.default.name, clientVersion: package_json_1.default.version }),
25
25
  maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
26
26
  requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
27
27
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
@@ -25,12 +25,13 @@ const getRuntimeConfig = (config) => {
25
25
  runtime: "node",
26
26
  defaultsMode,
27
27
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
28
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: package_json_1.default.name, clientVersion: package_json_1.default.version }),
29
- maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
28
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: package_json_1.default.name, clientVersion: package_json_1.default.version }),
29
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
30
30
  requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
31
- retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE, }),
31
+ retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE, }, config),
32
32
  sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
33
33
  streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
34
+ userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, { profile: 'wildix' }),
34
35
  };
35
36
  };
36
37
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -3,17 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveRuntimeExtensions = void 0;
4
4
  const protocol_http_1 = require("@smithy/protocol-http");
5
5
  const smithy_client_1 = require("@smithy/smithy-client");
6
- const asPartial = (t) => t;
7
6
  const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
8
- const extensionConfiguration = {
9
- ...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
10
- ...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
11
- };
7
+ const extensionConfiguration = Object.assign((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig), (0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig));
12
8
  extensions.forEach(extension => extension.configure(extensionConfiguration));
13
- return {
14
- ...runtimeConfig,
15
- ...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
16
- ...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
17
- };
9
+ return Object.assign(runtimeConfig, (0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration));
18
10
  };
19
11
  exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
package/dist-es/Kite.js CHANGED
@@ -5,10 +5,19 @@ import { CreateWidgetCommand, } from "./commands/CreateWidgetCommand";
5
5
  import { DeleteWidgetCommand, } from "./commands/DeleteWidgetCommand";
6
6
  import { GetCalendarSlotsCommand, } from "./commands/GetCalendarSlotsCommand";
7
7
  import { GetConfigCommand, } from "./commands/GetConfigCommand";
8
+ import { GetSmsNumberConfigurationCommand, } from "./commands/GetSmsNumberConfigurationCommand";
9
+ import { GetWhatsAppNumberConfigurationCommand, } from "./commands/GetWhatsAppNumberConfigurationCommand";
8
10
  import { GetWidgetCommand, } from "./commands/GetWidgetCommand";
9
11
  import { ListAgentsCommand, } from "./commands/ListAgentsCommand";
10
12
  import { ListServicesCommand, } from "./commands/ListServicesCommand";
13
+ import { ListSmsConfigurationsCommand, } from "./commands/ListSmsConfigurationsCommand";
14
+ import { ListSmsNumbersCommand, } from "./commands/ListSmsNumbersCommand";
15
+ import { ListWhatsAppConfigurationsCommand, } from "./commands/ListWhatsAppConfigurationsCommand";
16
+ import { ListWhatsAppNumbersCommand, } from "./commands/ListWhatsAppNumbersCommand";
17
+ import { ListWhatsAppTemplatesCommand, } from "./commands/ListWhatsAppTemplatesCommand";
11
18
  import { ListWidgetsCommand, } from "./commands/ListWidgetsCommand";
19
+ import { PutSmsNumberConfigurationCommand, } from "./commands/PutSmsNumberConfigurationCommand";
20
+ import { PutWhatsAppNumberConfigurationCommand, } from "./commands/PutWhatsAppNumberConfigurationCommand";
12
21
  import { RescheduleCalendarEventCommand, } from "./commands/RescheduleCalendarEventCommand";
13
22
  import { ScheduleCalendarEventCommand, } from "./commands/ScheduleCalendarEventCommand";
14
23
  import { UpdateWidgetCommand, } from "./commands/UpdateWidgetCommand";
@@ -20,10 +29,19 @@ const commands = {
20
29
  DeleteWidgetCommand,
21
30
  GetCalendarSlotsCommand,
22
31
  GetConfigCommand,
32
+ GetSmsNumberConfigurationCommand,
33
+ GetWhatsAppNumberConfigurationCommand,
23
34
  GetWidgetCommand,
24
35
  ListAgentsCommand,
25
36
  ListServicesCommand,
37
+ ListSmsConfigurationsCommand,
38
+ ListSmsNumbersCommand,
39
+ ListWhatsAppConfigurationsCommand,
40
+ ListWhatsAppNumbersCommand,
41
+ ListWhatsAppTemplatesCommand,
26
42
  ListWidgetsCommand,
43
+ PutSmsNumberConfigurationCommand,
44
+ PutWhatsAppNumberConfigurationCommand,
27
45
  RescheduleCalendarEventCommand,
28
46
  ScheduleCalendarEventCommand,
29
47
  UpdateWidgetCommand,
@@ -7,8 +7,11 @@ import { Client as __Client, } from "@smithy/smithy-client";
7
7
  import { authorizationMiddleware } from '@wildix/smithy-utils';
8
8
  export { __Client };
9
9
  export class KiteClient extends __Client {
10
+ config;
10
11
  constructor(...[configuration]) {
11
12
  let _config_0 = __getRuntimeConfig(configuration || {});
13
+ super(_config_0);
14
+ this.initConfig = _config_0;
12
15
  let _config_1 = resolveUserAgentConfig(_config_0);
13
16
  let _config_2 = resolveRetryConfig(_config_1);
14
17
  let _config_3 = resolveRuntimeExtensions(_config_2, configuration?.extensions || []);
@@ -21,11 +24,7 @@ export class KiteClient extends __Client {
21
24
  path: ''
22
25
  };
23
26
  };
24
- const config = {
25
- ..._config_3,
26
- endpoint,
27
- };
28
- super(config);
27
+ const config = { ..._config_3, endpoint };
29
28
  this.config = config;
30
29
  if (configuration?.token) {
31
30
  this.middlewareStack.add(authorizationMiddleware.bind(this, configuration.token), { step: "build" });
@@ -0,0 +1,17 @@
1
+ import { de_GetSmsNumberConfigurationCommand, se_GetSmsNumberConfigurationCommand, } 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 GetSmsNumberConfigurationCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Kite", "GetSmsNumberConfiguration", {})
12
+ .n("KiteClient", "GetSmsNumberConfigurationCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetSmsNumberConfigurationCommand)
15
+ .de(de_GetSmsNumberConfigurationCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetWhatsAppNumberConfigurationCommand, se_GetWhatsAppNumberConfigurationCommand, } 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 GetWhatsAppNumberConfigurationCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Kite", "GetWhatsAppNumberConfiguration", {})
12
+ .n("KiteClient", "GetWhatsAppNumberConfigurationCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetWhatsAppNumberConfigurationCommand)
15
+ .de(de_GetWhatsAppNumberConfigurationCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_ListSmsConfigurationsCommand, se_ListSmsConfigurationsCommand, } 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 ListSmsConfigurationsCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Kite", "ListSmsConfigurations", {})
12
+ .n("KiteClient", "ListSmsConfigurationsCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_ListSmsConfigurationsCommand)
15
+ .de(de_ListSmsConfigurationsCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_ListSmsNumbersCommand, se_ListSmsNumbersCommand, } 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 ListSmsNumbersCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Kite", "ListSmsNumbers", {})
12
+ .n("KiteClient", "ListSmsNumbersCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_ListSmsNumbersCommand)
15
+ .de(de_ListSmsNumbersCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_ListWhatsAppConfigurationsCommand, se_ListWhatsAppConfigurationsCommand, } 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 ListWhatsAppConfigurationsCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Kite", "ListWhatsAppConfigurations", {})
12
+ .n("KiteClient", "ListWhatsAppConfigurationsCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_ListWhatsAppConfigurationsCommand)
15
+ .de(de_ListWhatsAppConfigurationsCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_ListWhatsAppNumbersCommand, se_ListWhatsAppNumbersCommand, } 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 ListWhatsAppNumbersCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Kite", "ListWhatsAppNumbers", {})
12
+ .n("KiteClient", "ListWhatsAppNumbersCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_ListWhatsAppNumbersCommand)
15
+ .de(de_ListWhatsAppNumbersCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_ListWhatsAppTemplatesCommand, se_ListWhatsAppTemplatesCommand, } 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 ListWhatsAppTemplatesCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Kite", "ListWhatsAppTemplates", {})
12
+ .n("KiteClient", "ListWhatsAppTemplatesCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_ListWhatsAppTemplatesCommand)
15
+ .de(de_ListWhatsAppTemplatesCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_PutSmsNumberConfigurationCommand, se_PutSmsNumberConfigurationCommand, } 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 PutSmsNumberConfigurationCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Kite", "PutSmsNumberConfiguration", {})
12
+ .n("KiteClient", "PutSmsNumberConfigurationCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_PutSmsNumberConfigurationCommand)
15
+ .de(de_PutSmsNumberConfigurationCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_PutWhatsAppNumberConfigurationCommand, se_PutWhatsAppNumberConfigurationCommand, } 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 PutWhatsAppNumberConfigurationCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Kite", "PutWhatsAppNumberConfiguration", {})
12
+ .n("KiteClient", "PutWhatsAppNumberConfigurationCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_PutWhatsAppNumberConfigurationCommand)
15
+ .de(de_PutWhatsAppNumberConfigurationCommand)
16
+ .build() {
17
+ }
@@ -4,10 +4,19 @@ export * from "./CreateWidgetCommand";
4
4
  export * from "./DeleteWidgetCommand";
5
5
  export * from "./GetCalendarSlotsCommand";
6
6
  export * from "./GetConfigCommand";
7
+ export * from "./GetSmsNumberConfigurationCommand";
8
+ export * from "./GetWhatsAppNumberConfigurationCommand";
7
9
  export * from "./GetWidgetCommand";
8
10
  export * from "./ListAgentsCommand";
9
11
  export * from "./ListServicesCommand";
12
+ export * from "./ListSmsConfigurationsCommand";
13
+ export * from "./ListSmsNumbersCommand";
14
+ export * from "./ListWhatsAppConfigurationsCommand";
15
+ export * from "./ListWhatsAppNumbersCommand";
16
+ export * from "./ListWhatsAppTemplatesCommand";
10
17
  export * from "./ListWidgetsCommand";
18
+ export * from "./PutSmsNumberConfigurationCommand";
19
+ export * from "./PutWhatsAppNumberConfigurationCommand";
11
20
  export * from "./RescheduleCalendarEventCommand";
12
21
  export * from "./ScheduleCalendarEventCommand";
13
22
  export * from "./UpdateWidgetCommand";
@@ -1,37 +1,53 @@
1
1
  import { KiteServiceException as __BaseException } from "./KiteServiceException";
2
+ export class NotFoundException extends __BaseException {
3
+ name = "NotFoundException";
4
+ $fault = "client";
5
+ constructor(opts) {
6
+ super({
7
+ name: "NotFoundException",
8
+ $fault: "client",
9
+ ...opts
10
+ });
11
+ Object.setPrototypeOf(this, NotFoundException.prototype);
12
+ }
13
+ }
2
14
  export class ValidationException extends __BaseException {
15
+ name = "ValidationException";
16
+ $fault = "client";
3
17
  constructor(opts) {
4
18
  super({
5
19
  name: "ValidationException",
6
20
  $fault: "client",
7
21
  ...opts
8
22
  });
9
- this.name = "ValidationException";
10
- this.$fault = "client";
11
23
  Object.setPrototypeOf(this, ValidationException.prototype);
12
24
  }
13
25
  }
14
26
  export class ForbiddenException extends __BaseException {
27
+ name = "ForbiddenException";
28
+ $fault = "client";
15
29
  constructor(opts) {
16
30
  super({
17
31
  name: "ForbiddenException",
18
32
  $fault: "client",
19
33
  ...opts
20
34
  });
21
- this.name = "ForbiddenException";
22
- this.$fault = "client";
23
35
  Object.setPrototypeOf(this, ForbiddenException.prototype);
24
36
  }
25
37
  }
26
38
  export class RateLimitExceededException extends __BaseException {
39
+ name = "RateLimitExceededException";
40
+ $fault = "client";
41
+ rateLimit;
42
+ rateLimitRemaining;
43
+ rateLimitReset;
44
+ retryAfter;
27
45
  constructor(opts) {
28
46
  super({
29
47
  name: "RateLimitExceededException",
30
48
  $fault: "client",
31
49
  ...opts
32
50
  });
33
- this.name = "RateLimitExceededException";
34
- this.$fault = "client";
35
51
  Object.setPrototypeOf(this, RateLimitExceededException.prototype);
36
52
  this.rateLimit = opts.rateLimit;
37
53
  this.rateLimitRemaining = opts.rateLimitRemaining;
@@ -39,6 +55,40 @@ export class RateLimitExceededException extends __BaseException {
39
55
  this.retryAfter = opts.retryAfter;
40
56
  }
41
57
  }
58
+ export const ButtonType = {
59
+ APP: "APP",
60
+ CATALOG: "CATALOG",
61
+ FLOW: "FLOW",
62
+ MPM: "MPM",
63
+ OTP: "OTP",
64
+ PHONE_NUMBER: "PHONE_NUMBER",
65
+ QUICK_REPLY: "QUICK_REPLY",
66
+ URL: "URL",
67
+ VOICE_CALL: "VOICE_CALL",
68
+ };
69
+ export const TemplateCategory = {
70
+ AUTHENTICATION: "AUTHENTICATION",
71
+ MARKETING: "MARKETING",
72
+ UTILITY: "UTILITY",
73
+ };
74
+ export const ComponentFormat = {
75
+ IMAGE: "IMAGE",
76
+ TEXT: "TEXT",
77
+ };
78
+ export const ComponentType = {
79
+ BODY: "BODY",
80
+ BUTTONS: "BUTTONS",
81
+ FOOTER: "FOOTER",
82
+ HEADER: "HEADER",
83
+ };
84
+ export const ParameterFormat = {
85
+ NAMED: "NAMED",
86
+ };
87
+ export const TemplateStatus = {
88
+ APPROVED: "APPROVED",
89
+ PAUSED: "PAUSED",
90
+ REJECTED: "REJECTED",
91
+ };
42
92
  export const ChannelType = {
43
93
  DIRECT: "direct",
44
94
  GROUP: "group",
@@ -68,14 +118,14 @@ export var ActionElement;
68
118
  };
69
119
  })(ActionElement || (ActionElement = {}));
70
120
  export class ChannelNotFoundException extends __BaseException {
121
+ name = "ChannelNotFoundException";
122
+ $fault = "client";
71
123
  constructor(opts) {
72
124
  super({
73
125
  name: "ChannelNotFoundException",
74
126
  $fault: "client",
75
127
  ...opts
76
128
  });
77
- this.name = "ChannelNotFoundException";
78
- this.$fault = "client";
79
129
  Object.setPrototypeOf(this, ChannelNotFoundException.prototype);
80
130
  }
81
131
  }
@@ -104,18 +154,38 @@ export var Element;
104
154
  };
105
155
  })(Element || (Element = {}));
106
156
  export class TargetNotFoundException extends __BaseException {
157
+ name = "TargetNotFoundException";
158
+ $fault = "client";
107
159
  constructor(opts) {
108
160
  super({
109
161
  name: "TargetNotFoundException",
110
162
  $fault: "client",
111
163
  ...opts
112
164
  });
113
- this.name = "TargetNotFoundException";
114
- this.$fault = "client";
115
165
  Object.setPrototypeOf(this, TargetNotFoundException.prototype);
116
166
  }
117
167
  }
118
- export const WidgetRouteTimeFrameDay = {
168
+ export var RouteActionCondition;
169
+ (function (RouteActionCondition) {
170
+ RouteActionCondition.visit = (value, visitor) => {
171
+ if (value.replyTimeout !== undefined)
172
+ return visitor.replyTimeout(value.replyTimeout);
173
+ if (value.readTimeout !== undefined)
174
+ return visitor.readTimeout(value.readTimeout);
175
+ return visitor._(value.$unknown[0], value.$unknown[1]);
176
+ };
177
+ })(RouteActionCondition || (RouteActionCondition = {}));
178
+ export var RouteActionTask;
179
+ (function (RouteActionTask) {
180
+ RouteActionTask.visit = (value, visitor) => {
181
+ if (value.sendMessage !== undefined)
182
+ return visitor.sendMessage(value.sendMessage);
183
+ if (value.addMembers !== undefined)
184
+ return visitor.addMembers(value.addMembers);
185
+ return visitor._(value.$unknown[0], value.$unknown[1]);
186
+ };
187
+ })(RouteActionTask || (RouteActionTask = {}));
188
+ export const RouteTimeFrameDay = {
119
189
  EVERY_DAY: "EVERY_DAY",
120
190
  FRIDAY: "FRIDAY",
121
191
  MONDAY: "MONDAY",
@@ -148,14 +218,14 @@ export var WidgetTarget;
148
218
  };
149
219
  })(WidgetTarget || (WidgetTarget = {}));
150
220
  export class EventNotFoundException extends __BaseException {
221
+ name = "EventNotFoundException";
222
+ $fault = "client";
151
223
  constructor(opts) {
152
224
  super({
153
225
  name: "EventNotFoundException",
154
226
  $fault: "client",
155
227
  ...opts
156
228
  });
157
- this.name = "EventNotFoundException";
158
- this.$fault = "client";
159
229
  Object.setPrototypeOf(this, EventNotFoundException.prototype);
160
230
  }
161
231
  }
@@ -166,15 +236,35 @@ export const KiteVariant = {
166
236
  DIRECT: "direct",
167
237
  GROUP: "group",
168
238
  };
239
+ export var RouteRule;
240
+ (function (RouteRule) {
241
+ RouteRule.visit = (value, visitor) => {
242
+ if (value.timeFrame !== undefined)
243
+ return visitor.timeFrame(value.timeFrame);
244
+ return visitor._(value.$unknown[0], value.$unknown[1]);
245
+ };
246
+ })(RouteRule || (RouteRule = {}));
247
+ export var RouteTarget;
248
+ (function (RouteTarget) {
249
+ RouteTarget.visit = (value, visitor) => {
250
+ if (value.service !== undefined)
251
+ return visitor.service(value.service);
252
+ if (value.agent !== undefined)
253
+ return visitor.agent(value.agent);
254
+ if (value.bot !== undefined)
255
+ return visitor.bot(value.bot);
256
+ return visitor._(value.$unknown[0], value.$unknown[1]);
257
+ };
258
+ })(RouteTarget || (RouteTarget = {}));
169
259
  export class WidgetNotFoundException extends __BaseException {
260
+ name = "WidgetNotFoundException";
261
+ $fault = "client";
170
262
  constructor(opts) {
171
263
  super({
172
264
  name: "WidgetNotFoundException",
173
265
  $fault: "client",
174
266
  ...opts
175
267
  });
176
- this.name = "WidgetNotFoundException";
177
- this.$fault = "client";
178
268
  Object.setPrototypeOf(this, WidgetNotFoundException.prototype);
179
269
  }
180
270
  }