@wildix/xbees-kite-client 1.4.1 → 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,36 +1,55 @@
1
1
  import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
2
- import { KiteClientConfig } from "./KiteClient";
2
+ import type { KiteClientConfig } from "./KiteClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: KiteClientConfig) => {
7
7
  runtime: string;
8
- defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
8
+ defaultsMode: import("@smithy/types").Provider<import("@smithy/core/client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
10
+ defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
11
11
  maxAttempts: number | import("@smithy/types").Provider<number>;
12
- requestHandler: import("@smithy/protocol-http").HttpHandler<any> | RequestHandler;
12
+ requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
13
13
  retryMode: string | import("@smithy/types").Provider<string>;
14
14
  sha256: import("@smithy/types").HashConstructor;
15
- streamCollector: import("@smithy/types").StreamCollector;
16
- env?: "stage" | "stable" | "prod" | undefined;
17
- token?: import("@wildix/smithy-utils").TokenProvider | undefined;
15
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
18
16
  cacheMiddleware?: boolean | undefined;
19
- protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
20
- protocolSettings?: {
17
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
18
+ protocolSettings: {
19
+ defaultNamespace?: string;
21
20
  [setting: string]: unknown;
22
- defaultNamespace?: string | undefined;
23
- } | undefined;
21
+ };
24
22
  apiVersion: string;
25
23
  urlParser: import("@smithy/types").UrlParser;
26
24
  base64Decoder: import("@smithy/types").Decoder;
27
- base64Encoder: (_input: string | Uint8Array) => string;
25
+ base64Encoder: (_input: Uint8Array | string) => string;
28
26
  utf8Decoder: import("@smithy/types").Decoder;
29
- utf8Encoder: (input: string | Uint8Array) => string;
27
+ utf8Encoder: (input: Uint8Array | string) => string;
30
28
  disableHostPrefix: boolean;
29
+ profile?: string;
31
30
  logger: import("@smithy/types").Logger;
32
31
  extensions: import("./runtimeExtensions").RuntimeExtension[];
33
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
34
- userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
35
- retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
32
+ customUserAgent?: string | import("@smithy/types").UserAgent;
33
+ userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
34
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
35
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
36
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
37
+ logger?: import("@smithy/types").Logger;
38
+ }) => import("@smithy/types").EndpointV2;
39
+ tls?: boolean;
40
+ useDualstackEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
41
+ useFipsEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
42
+ serviceConfiguredEndpoint?: never;
43
+ authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
44
+ httpAuthSchemes: {
45
+ schemeId: string;
46
+ identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
47
+ signer: import("@smithy/core").HttpBearerAuthSigner;
48
+ }[];
49
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").KiteHttpAuthSchemeProvider;
50
+ token?: import("@smithy/types").TokenIdentity | import("@smithy/types").TokenIdentityProvider;
51
+ clientContextParams?: {
52
+ env?: string | undefined | import("@smithy/types").Provider<string | undefined>;
53
+ };
54
+ env?: string | undefined | import("@smithy/types").Provider<string | undefined>;
36
55
  };
@@ -1,36 +1,55 @@
1
1
  import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
2
- import { KiteClientConfig } from "./KiteClient";
2
+ import type { KiteClientConfig } from "./KiteClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: KiteClientConfig) => {
7
7
  runtime: string;
8
- defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
8
+ defaultsMode: import("@smithy/types").Provider<import("@smithy/core/client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
10
+ defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
11
11
  maxAttempts: number | import("@smithy/types").Provider<number>;
12
- requestHandler: RequestHandler | import("@smithy/protocol-http").HttpHandler<any>;
12
+ requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
13
13
  retryMode: string | import("@smithy/types").Provider<string>;
14
14
  sha256: import("@smithy/types").HashConstructor;
15
- streamCollector: import("@smithy/types").StreamCollector;
15
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
16
16
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
17
- env?: "stage" | "stable" | "prod" | undefined;
18
- token?: import("@wildix/smithy-utils").TokenProvider | undefined;
19
17
  cacheMiddleware?: boolean | undefined;
20
- protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
21
- protocolSettings?: {
18
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
19
+ protocolSettings: {
20
+ defaultNamespace?: string;
22
21
  [setting: string]: unknown;
23
- defaultNamespace?: string | undefined;
24
- } | undefined;
22
+ };
25
23
  apiVersion: string;
26
24
  urlParser: import("@smithy/types").UrlParser;
27
25
  base64Decoder: import("@smithy/types").Decoder;
28
- base64Encoder: (_input: string | Uint8Array) => string;
26
+ base64Encoder: (_input: Uint8Array | string) => string;
29
27
  utf8Decoder: import("@smithy/types").Decoder;
30
- utf8Encoder: (input: string | Uint8Array) => string;
28
+ utf8Encoder: (input: Uint8Array | string) => string;
31
29
  disableHostPrefix: boolean;
30
+ profile?: string;
32
31
  logger: import("@smithy/types").Logger;
33
32
  extensions: import("./runtimeExtensions").RuntimeExtension[];
34
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
35
- retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
33
+ customUserAgent?: string | import("@smithy/types").UserAgent;
34
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
35
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
36
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
37
+ logger?: import("@smithy/types").Logger;
38
+ }) => import("@smithy/types").EndpointV2;
39
+ tls?: boolean;
40
+ useDualstackEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
41
+ useFipsEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
42
+ serviceConfiguredEndpoint?: never;
43
+ authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
44
+ httpAuthSchemes: {
45
+ schemeId: string;
46
+ identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
47
+ signer: import("@smithy/core").HttpBearerAuthSigner;
48
+ }[];
49
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").KiteHttpAuthSchemeProvider;
50
+ token?: import("@smithy/types").TokenIdentity | import("@smithy/types").TokenIdentityProvider;
51
+ clientContextParams?: {
52
+ env?: string | undefined | import("@smithy/types").Provider<string | undefined>;
53
+ };
54
+ env?: string | undefined | import("@smithy/types").Provider<string | undefined>;
36
55
  };
@@ -1,35 +1,54 @@
1
- import { KiteClientConfig } from "./KiteClient";
1
+ import type { KiteClientConfig } from "./KiteClient";
2
2
  /**
3
3
  * @internal
4
4
  */
5
5
  export declare const getRuntimeConfig: (config: KiteClientConfig) => {
6
6
  runtime: string;
7
7
  sha256: import("@smithy/types").HashConstructor;
8
- env?: "stage" | "stable" | "prod" | undefined;
9
- token?: import("@wildix/smithy-utils").TokenProvider | undefined;
10
- requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
11
- cacheMiddleware?: boolean | undefined;
12
- protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
13
- protocolSettings?: {
8
+ requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/core/protocols").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
9
+ cacheMiddleware?: boolean;
10
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
11
+ protocolSettings: {
12
+ defaultNamespace?: string;
14
13
  [setting: string]: unknown;
15
- defaultNamespace?: string | undefined;
16
- } | undefined;
14
+ };
17
15
  apiVersion: string;
18
16
  urlParser: import("@smithy/types").UrlParser;
19
17
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
20
- streamCollector: import("@smithy/types").StreamCollector;
18
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
21
19
  base64Decoder: import("@smithy/types").Decoder;
22
- base64Encoder: (_input: string | Uint8Array) => string;
20
+ base64Encoder: (_input: Uint8Array | string) => string;
23
21
  utf8Decoder: import("@smithy/types").Decoder;
24
- utf8Encoder: (input: string | Uint8Array) => string;
22
+ utf8Encoder: (input: Uint8Array | string) => string;
25
23
  disableHostPrefix: boolean;
26
- defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
24
+ profile?: string;
25
+ defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
27
26
  maxAttempts: number | import("@smithy/types").Provider<number>;
28
27
  retryMode: string | import("@smithy/types").Provider<string>;
29
28
  logger: import("@smithy/types").Logger;
30
29
  extensions: import("./runtimeExtensions").RuntimeExtension[];
31
- defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
32
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
33
- userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
34
- retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
30
+ defaultsMode: import("@smithy/core/client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/core/client").DefaultsMode>;
31
+ customUserAgent?: string | import("@smithy/types").UserAgent;
32
+ userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
33
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
34
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
35
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
36
+ logger?: import("@smithy/types").Logger;
37
+ }) => import("@smithy/types").EndpointV2;
38
+ tls?: boolean;
39
+ useDualstackEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
40
+ useFipsEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
41
+ serviceConfiguredEndpoint?: never;
42
+ authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
43
+ httpAuthSchemes: {
44
+ schemeId: string;
45
+ identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
46
+ signer: import("@smithy/core").HttpBearerAuthSigner;
47
+ }[];
48
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").KiteHttpAuthSchemeProvider;
49
+ token?: import("@smithy/types").TokenIdentity | import("@smithy/types").TokenIdentityProvider;
50
+ clientContextParams?: {
51
+ env?: string | undefined | import("@smithy/types").Provider<string | undefined>;
52
+ };
53
+ env?: string | undefined | import("@smithy/types").Provider<string | undefined>;
35
54
  };
@@ -1,15 +1,32 @@
1
- import { KiteClientConfig } from "./KiteClient";
1
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
2
+ import { HttpBearerAuthSigner } from "@smithy/core";
3
+ import type { IdentityProviderConfig } from "@smithy/types";
4
+ import type { KiteClientConfig } from "./KiteClient";
2
5
  /**
3
6
  * @internal
4
7
  */
5
8
  export declare const getRuntimeConfig: (config: KiteClientConfig) => {
6
9
  apiVersion: string;
7
10
  base64Decoder: import("@smithy/types").Decoder;
8
- base64Encoder: (_input: string | Uint8Array) => string;
11
+ base64Encoder: (_input: Uint8Array | string) => string;
9
12
  disableHostPrefix: boolean;
13
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
14
+ logger?: import("@smithy/types").Logger;
15
+ }) => import("@smithy/types").EndpointV2;
10
16
  extensions: import("./runtimeExtensions").RuntimeExtension[];
17
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").KiteHttpAuthSchemeProvider;
18
+ httpAuthSchemes: {
19
+ schemeId: string;
20
+ identityProvider: (ipc: IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
21
+ signer: HttpBearerAuthSigner;
22
+ }[];
11
23
  logger: import("@smithy/types").Logger;
24
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof AwsRestJsonProtocol;
25
+ protocolSettings: {
26
+ [setting: string]: unknown;
27
+ defaultNamespace?: string;
28
+ };
12
29
  urlParser: import("@smithy/types").UrlParser;
13
30
  utf8Decoder: import("@smithy/types").Decoder;
14
- utf8Encoder: (input: string | Uint8Array) => string;
31
+ utf8Encoder: (input: Uint8Array | string) => string;
15
32
  };
@@ -1,4 +1,4 @@
1
- import { KiteExtensionConfiguration } from "./extensionConfiguration";
1
+ import type { KiteExtensionConfiguration } from "./extensionConfiguration";
2
2
  /**
3
3
  * @public
4
4
  */
@@ -0,0 +1,153 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
2
+ import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema, StaticUnionSchema } from "@smithy/types";
3
+ export declare var KiteSyntheticServiceException$: StaticErrorSchema;
4
+ export declare var ForbiddenException$: StaticErrorSchema;
5
+ export declare var NotFoundException$: StaticErrorSchema;
6
+ export declare var RateLimitExceededException$: StaticErrorSchema;
7
+ export declare var ValidationException$: StaticErrorSchema;
8
+ export declare var ChannelNotFoundException$: StaticErrorSchema;
9
+ export declare var EventNotFoundException$: StaticErrorSchema;
10
+ export declare var TargetNotFoundException$: StaticErrorSchema;
11
+ export declare var WidgetNotFoundException$: StaticErrorSchema;
12
+ /**
13
+ * TypeRegistry instances containing modeled errors.
14
+ * @internal
15
+ *
16
+ */
17
+ export declare const errorTypeRegistries: TypeRegistry[];
18
+ export declare var BodyTextNamedParam$: StaticStructureSchema;
19
+ export declare var Button$: StaticStructureSchema;
20
+ export declare var Component$: StaticStructureSchema;
21
+ export declare var ComponentExample$: StaticStructureSchema;
22
+ export declare var Template$: StaticStructureSchema;
23
+ export declare var TemplateParameter$: StaticStructureSchema;
24
+ export declare var TemplateWithParameters$: StaticStructureSchema;
25
+ export declare var CalendarAvailability$: StaticStructureSchema;
26
+ export declare var CalendarAvailabilitySettings$: StaticStructureSchema;
27
+ export declare var CalendarDaySlots$: StaticStructureSchema;
28
+ export declare var CalendarSlot$: StaticStructureSchema;
29
+ export declare var ButtonActionHandler$: StaticStructureSchema;
30
+ export declare var ButtonElement$: StaticStructureSchema;
31
+ export declare var ButtonLinkHandler$: StaticStructureSchema;
32
+ export declare var ButtonReplyHandler$: StaticStructureSchema;
33
+ export declare var Channel$: StaticStructureSchema;
34
+ export declare var ChannelContext$: StaticStructureSchema;
35
+ export declare var ChannelContextEvent$: StaticStructureSchema;
36
+ export declare var ChannelContextEventAttendee$: StaticStructureSchema;
37
+ export declare var ChannelContextPushToTalk$: StaticStructureSchema;
38
+ export declare var MessageTemplateConfig$: StaticStructureSchema;
39
+ export declare var User$: StaticStructureSchema;
40
+ export declare var CalendarEvent$: StaticStructureSchema;
41
+ export declare var CancelCalendarEventInput$: StaticStructureSchema;
42
+ export declare var CancelCalendarEventOutput$: StaticStructureSchema;
43
+ export declare var CreateOrUpdateWidgetPreviewInput$: StaticStructureSchema;
44
+ export declare var CreateOrUpdateWidgetPreviewOutput$: StaticStructureSchema;
45
+ export declare var CreateWidgetInput$: StaticStructureSchema;
46
+ export declare var CreateWidgetOutput$: StaticStructureSchema;
47
+ export declare var DeleteWidgetInput$: StaticStructureSchema;
48
+ export declare var DeleteWidgetOutput$: StaticStructureSchema;
49
+ export declare var GetCalendarSlotsInput$: StaticStructureSchema;
50
+ export declare var GetCalendarSlotsOutput$: StaticStructureSchema;
51
+ export declare var GetConfigInput$: StaticStructureSchema;
52
+ export declare var GetConfigOutput$: StaticStructureSchema;
53
+ export declare var GetSmsNumberConfigurationInput$: StaticStructureSchema;
54
+ export declare var GetSmsNumberConfigurationOutput$: StaticStructureSchema;
55
+ export declare var GetWhatsAppNumberConfigurationInput$: StaticStructureSchema;
56
+ export declare var GetWhatsAppNumberConfigurationOutput$: StaticStructureSchema;
57
+ export declare var GetWidgetInput$: StaticStructureSchema;
58
+ export declare var GetWidgetOutput$: StaticStructureSchema;
59
+ export declare var InactivityTimeoutCondition$: StaticStructureSchema;
60
+ export declare var KiteConfig$: StaticStructureSchema;
61
+ export declare var KiteConfigAgent$: StaticStructureSchema;
62
+ export declare var KiteTargetService$: StaticStructureSchema;
63
+ export declare var ListAgentsInput$: StaticStructureSchema;
64
+ export declare var ListAgentsOutput$: StaticStructureSchema;
65
+ export declare var ListServicesInput$: StaticStructureSchema;
66
+ export declare var ListServicesOutput$: StaticStructureSchema;
67
+ export declare var ListSmsConfigurationsInput$: StaticStructureSchema;
68
+ export declare var ListSmsConfigurationsOutput$: StaticStructureSchema;
69
+ export declare var ListSmsNumbersInput$: StaticStructureSchema;
70
+ export declare var ListSmsNumbersOutput$: StaticStructureSchema;
71
+ export declare var ListWhatsAppConfigurationsInput$: StaticStructureSchema;
72
+ export declare var ListWhatsAppConfigurationsOutput$: StaticStructureSchema;
73
+ export declare var ListWhatsAppNumbersInput$: StaticStructureSchema;
74
+ export declare var ListWhatsAppNumbersOutput$: StaticStructureSchema;
75
+ export declare var ListWhatsAppTemplatesInput$: StaticStructureSchema;
76
+ export declare var ListWhatsAppTemplatesOutput$: StaticStructureSchema;
77
+ export declare var ListWidgetsInput$: StaticStructureSchema;
78
+ export declare var ListWidgetsOutput$: StaticStructureSchema;
79
+ export declare var PutSmsNumberConfigurationInput$: StaticStructureSchema;
80
+ export declare var PutSmsNumberConfigurationOutput$: StaticStructureSchema;
81
+ export declare var PutWhatsAppNumberConfigurationInput$: StaticStructureSchema;
82
+ export declare var PutWhatsAppNumberConfigurationOutput$: StaticStructureSchema;
83
+ export declare var RescheduleCalendarEventInput$: StaticStructureSchema;
84
+ export declare var RescheduleCalendarEventOutput$: StaticStructureSchema;
85
+ export declare var RouteAction$: StaticStructureSchema;
86
+ export declare var RouteAddMembersTask$: StaticStructureSchema;
87
+ export declare var RouteAgentTarget$: StaticStructureSchema;
88
+ export declare var RouteBotTarget$: StaticStructureSchema;
89
+ export declare var RouteEvaluationCondition$: StaticStructureSchema;
90
+ export declare var RouteGenerativeVariable$: StaticStructureSchema;
91
+ export declare var RouteNotifyEmail$: StaticStructureSchema;
92
+ export declare var RouteNotifyMessage$: StaticStructureSchema;
93
+ export declare var RouteReadTimeoutCondition$: StaticStructureSchema;
94
+ export declare var RouteReplyTimeoutCondition$: StaticStructureSchema;
95
+ export declare var RouteSendGenerativeMessageTask$: StaticStructureSchema;
96
+ export declare var RouteSendMessageTask$: StaticStructureSchema;
97
+ export declare var RouteServiceTarget$: StaticStructureSchema;
98
+ export declare var RouteTimeFrameRule$: StaticStructureSchema;
99
+ export declare var ScheduleCalendarEventInput$: StaticStructureSchema;
100
+ export declare var ScheduleCalendarEventOutput$: StaticStructureSchema;
101
+ export declare var Service$: StaticStructureSchema;
102
+ export declare var ServicePbx$: StaticStructureSchema;
103
+ export declare var ServiceSettings$: StaticStructureSchema;
104
+ export declare var SmsConfig$: StaticStructureSchema;
105
+ export declare var SmsConfigRoute$: StaticStructureSchema;
106
+ export declare var SmsServiceNumber$: StaticStructureSchema;
107
+ export declare var UpdateWidgetInput$: StaticStructureSchema;
108
+ export declare var UpdateWidgetOutput$: StaticStructureSchema;
109
+ export declare var WhatsAppConfig$: StaticStructureSchema;
110
+ export declare var WhatsAppConfigRoute$: StaticStructureSchema;
111
+ export declare var WhatsAppServiceNumber$: StaticStructureSchema;
112
+ export declare var Widget$: StaticStructureSchema;
113
+ export declare var WidgetAgentTarget$: StaticStructureSchema;
114
+ export declare var WidgetAppearance$: StaticStructureSchema;
115
+ export declare var WidgetBotTarget$: StaticStructureSchema;
116
+ export declare var WidgetPalleteSettings$: StaticStructureSchema;
117
+ export declare var WidgetRoute$: StaticStructureSchema;
118
+ export declare var WidgetRouteTimeFrameRule$: StaticStructureSchema;
119
+ export declare var WidgetServiceTarget$: StaticStructureSchema;
120
+ export declare var WidgetTextSettings$: StaticStructureSchema;
121
+ export declare var WidgetWelcomeMessage$: StaticStructureSchema;
122
+ export declare var ActionElement$: StaticUnionSchema;
123
+ export declare var ButtonHandler$: StaticUnionSchema;
124
+ export declare var Element$: StaticUnionSchema;
125
+ export declare var ListAgentsFilter$: StaticUnionSchema;
126
+ export declare var RouteActionCondition$: StaticUnionSchema;
127
+ export declare var RouteActionTask$: StaticUnionSchema;
128
+ export declare var RouteRule$: StaticUnionSchema;
129
+ export declare var RouteTarget$: StaticUnionSchema;
130
+ export declare var WidgetRouteRule$: StaticUnionSchema;
131
+ export declare var WidgetTarget$: StaticUnionSchema;
132
+ export declare var CancelCalendarEvent$: StaticOperationSchema;
133
+ export declare var CreateOrUpdateWidgetPreview$: StaticOperationSchema;
134
+ export declare var CreateWidget$: StaticOperationSchema;
135
+ export declare var DeleteWidget$: StaticOperationSchema;
136
+ export declare var GetCalendarSlots$: StaticOperationSchema;
137
+ export declare var GetConfig$: StaticOperationSchema;
138
+ export declare var GetSmsNumberConfiguration$: StaticOperationSchema;
139
+ export declare var GetWhatsAppNumberConfiguration$: StaticOperationSchema;
140
+ export declare var GetWidget$: StaticOperationSchema;
141
+ export declare var ListAgents$: StaticOperationSchema;
142
+ export declare var ListServices$: StaticOperationSchema;
143
+ export declare var ListSmsConfigurations$: StaticOperationSchema;
144
+ export declare var ListSmsNumbers$: StaticOperationSchema;
145
+ export declare var ListWhatsAppConfigurations$: StaticOperationSchema;
146
+ export declare var ListWhatsAppNumbers$: StaticOperationSchema;
147
+ export declare var ListWhatsAppTemplates$: StaticOperationSchema;
148
+ export declare var ListWidgets$: StaticOperationSchema;
149
+ export declare var PutSmsNumberConfiguration$: StaticOperationSchema;
150
+ export declare var PutWhatsAppNumberConfiguration$: StaticOperationSchema;
151
+ export declare var RescheduleCalendarEvent$: StaticOperationSchema;
152
+ export declare var ScheduleCalendarEvent$: StaticOperationSchema;
153
+ export declare var UpdateWidget$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@wildix/xbees-kite-client",
3
3
  "description": "@wildix/xbees-kite-client client",
4
- "version": "1.4.1",
4
+ "version": "3.1.1",
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",
8
8
  "build:es": "tsc -p tsconfig.es.json",
9
9
  "build:types": "tsc -p tsconfig.types.json",
10
10
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
11
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
11
+ "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
12
12
  "prepack": "yarn run clean && yarn run build",
13
13
  "postpublish": "node ../../scripts/postpublish.js"
14
14
  },
@@ -20,51 +20,25 @@
20
20
  "tslib": "^2.6.2",
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.775.0",
24
- "@aws-sdk/middleware-host-header": "3.775.0",
25
- "@aws-sdk/middleware-logger": "3.775.0",
26
- "@aws-sdk/middleware-recursion-detection": "3.775.0",
27
- "@aws-sdk/middleware-user-agent": "3.775.0",
28
- "@aws-sdk/types": "latest",
29
- "@aws-sdk/util-user-agent-browser": "3.775.0",
30
- "@aws-sdk/util-user-agent-node": "3.775.0",
31
- "@smithy/config-resolver": "^4.1.0",
32
- "@smithy/core": "^3.2.0",
33
- "@smithy/fetch-http-handler": "^5.0.2",
34
- "@smithy/hash-node": "^4.0.2",
35
- "@smithy/invalid-dependency": "^4.0.2",
36
- "@smithy/middleware-content-length": "^4.0.2",
37
- "@smithy/middleware-retry": "^4.1.0",
38
- "@smithy/middleware-serde": "^4.0.3",
39
- "@smithy/middleware-stack": "^4.0.2",
40
- "@smithy/node-config-provider": "^4.0.2",
41
- "@smithy/node-http-handler": "^4.0.4",
42
- "@smithy/protocol-http": "^5.1.0",
43
- "@smithy/smithy-client": "^4.2.0",
44
- "@smithy/types": "^4.2.0",
45
- "@smithy/url-parser": "^4.0.2",
46
- "@smithy/util-base64": "^4.0.0",
47
- "@smithy/util-body-length-browser": "^4.0.0",
48
- "@smithy/util-body-length-node": "^4.0.0",
49
- "@smithy/util-defaults-mode-browser": "^4.0.8",
50
- "@smithy/util-defaults-mode-node": "^4.0.8",
51
- "@smithy/util-retry": "^4.0.2",
52
- "@smithy/util-utf8": "^4.0.0",
53
- "@wildix/smithy-utils": "^1.0.3"
23
+ "@aws-sdk/core": "^3.974.15",
24
+ "@smithy/core": "^3.24.5",
25
+ "@smithy/fetch-http-handler": "^5.4.5",
26
+ "@smithy/node-http-handler": "^4.7.5",
27
+ "@smithy/types": "^4.14.2"
54
28
  },
55
29
  "devDependencies": {
56
- "@tsconfig/node18": "18.2.4",
30
+ "@tsconfig/node20": "20.1.8",
57
31
  "concurrently": "7.0.0",
58
32
  "downlevel-dts": "0.10.1",
59
- "rimraf": "^3.0.0",
60
- "typescript": "~5.2.2",
61
- "@types/node": "^18.19.69"
33
+ "premove": "4.0.0",
34
+ "typescript": "~5.8.3",
35
+ "@types/node": "^20.14.8"
62
36
  },
63
37
  "engines": {
64
- "node": ">=18.0.0"
38
+ "node": ">=20.0.0"
65
39
  },
66
40
  "typesVersions": {
67
- "<4.0": {
41
+ "<4.5": {
68
42
  "dist-types/*": [
69
43
  "dist-types/ts3.4/*"
70
44
  ]
@@ -80,4 +54,4 @@
80
54
  "react-native": {
81
55
  "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
82
56
  }
83
- }
57
+ }
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.KiteServiceException = exports.__ServiceException = void 0;
4
- const smithy_client_1 = require("@smithy/smithy-client");
5
- Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
- class KiteServiceException extends smithy_client_1.ServiceException {
7
- constructor(options) {
8
- super(options);
9
- Object.setPrototypeOf(this, KiteServiceException.prototype);
10
- }
11
- }
12
- exports.KiteServiceException = KiteServiceException;
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./models_0"), exports);