@aws-sdk/client-socialmessaging 3.669.0

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 (143) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +334 -0
  3. package/dist-cjs/SocialMessaging.js +37 -0
  4. package/dist-cjs/SocialMessagingClient.js +50 -0
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  7. package/dist-cjs/commands/AssociateWhatsAppBusinessAccountCommand.js +27 -0
  8. package/dist-cjs/commands/DeleteWhatsAppMessageMediaCommand.js +26 -0
  9. package/dist-cjs/commands/DisassociateWhatsAppBusinessAccountCommand.js +26 -0
  10. package/dist-cjs/commands/GetLinkedWhatsAppBusinessAccountCommand.js +26 -0
  11. package/dist-cjs/commands/GetLinkedWhatsAppBusinessAccountPhoneNumberCommand.js +26 -0
  12. package/dist-cjs/commands/GetWhatsAppMessageMediaCommand.js +27 -0
  13. package/dist-cjs/commands/ListLinkedWhatsAppBusinessAccountsCommand.js +26 -0
  14. package/dist-cjs/commands/ListTagsForResourceCommand.js +26 -0
  15. package/dist-cjs/commands/PostWhatsAppMessageMediaCommand.js +27 -0
  16. package/dist-cjs/commands/PutWhatsAppBusinessAccountEventDestinationsCommand.js +26 -0
  17. package/dist-cjs/commands/SendWhatsAppMessageCommand.js +27 -0
  18. package/dist-cjs/commands/TagResourceCommand.js +26 -0
  19. package/dist-cjs/commands/UntagResourceCommand.js +26 -0
  20. package/dist-cjs/commands/index.js +16 -0
  21. package/dist-cjs/endpoint/EndpointParameters.js +18 -0
  22. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  23. package/dist-cjs/endpoint/ruleset.js +7 -0
  24. package/dist-cjs/extensionConfiguration.js +2 -0
  25. package/dist-cjs/index.js +11 -0
  26. package/dist-cjs/models/SocialMessagingServiceException.js +12 -0
  27. package/dist-cjs/models/index.js +4 -0
  28. package/dist-cjs/models/models_0.js +173 -0
  29. package/dist-cjs/pagination/Interfaces.js +2 -0
  30. package/dist-cjs/pagination/ListLinkedWhatsAppBusinessAccountsPaginator.js +7 -0
  31. package/dist-cjs/pagination/index.js +5 -0
  32. package/dist-cjs/protocols/Aws_restJson1.js +573 -0
  33. package/dist-cjs/runtimeConfig.browser.js +39 -0
  34. package/dist-cjs/runtimeConfig.js +50 -0
  35. package/dist-cjs/runtimeConfig.native.js +15 -0
  36. package/dist-cjs/runtimeConfig.shared.js +34 -0
  37. package/dist-cjs/runtimeExtensions.js +25 -0
  38. package/dist-es/SocialMessaging.js +33 -0
  39. package/dist-es/SocialMessagingClient.js +46 -0
  40. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  41. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  42. package/dist-es/commands/AssociateWhatsAppBusinessAccountCommand.js +23 -0
  43. package/dist-es/commands/DeleteWhatsAppMessageMediaCommand.js +22 -0
  44. package/dist-es/commands/DisassociateWhatsAppBusinessAccountCommand.js +22 -0
  45. package/dist-es/commands/GetLinkedWhatsAppBusinessAccountCommand.js +22 -0
  46. package/dist-es/commands/GetLinkedWhatsAppBusinessAccountPhoneNumberCommand.js +22 -0
  47. package/dist-es/commands/GetWhatsAppMessageMediaCommand.js +23 -0
  48. package/dist-es/commands/ListLinkedWhatsAppBusinessAccountsCommand.js +22 -0
  49. package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
  50. package/dist-es/commands/PostWhatsAppMessageMediaCommand.js +23 -0
  51. package/dist-es/commands/PutWhatsAppBusinessAccountEventDestinationsCommand.js +22 -0
  52. package/dist-es/commands/SendWhatsAppMessageCommand.js +23 -0
  53. package/dist-es/commands/TagResourceCommand.js +22 -0
  54. package/dist-es/commands/UntagResourceCommand.js +22 -0
  55. package/dist-es/commands/index.js +13 -0
  56. package/dist-es/endpoint/EndpointParameters.js +14 -0
  57. package/dist-es/endpoint/endpointResolver.js +14 -0
  58. package/dist-es/endpoint/ruleset.js +4 -0
  59. package/dist-es/extensionConfiguration.js +1 -0
  60. package/dist-es/index.js +6 -0
  61. package/dist-es/models/SocialMessagingServiceException.js +8 -0
  62. package/dist-es/models/index.js +1 -0
  63. package/dist-es/models/models_0.js +152 -0
  64. package/dist-es/pagination/Interfaces.js +1 -0
  65. package/dist-es/pagination/ListLinkedWhatsAppBusinessAccountsPaginator.js +4 -0
  66. package/dist-es/pagination/index.js +2 -0
  67. package/dist-es/protocols/Aws_restJson1.js +544 -0
  68. package/dist-es/runtimeConfig.browser.js +34 -0
  69. package/dist-es/runtimeConfig.js +45 -0
  70. package/dist-es/runtimeConfig.native.js +11 -0
  71. package/dist-es/runtimeConfig.shared.js +30 -0
  72. package/dist-es/runtimeExtensions.js +21 -0
  73. package/dist-types/SocialMessaging.d.ts +128 -0
  74. package/dist-types/SocialMessagingClient.d.ts +207 -0
  75. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  76. package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
  77. package/dist-types/commands/AssociateWhatsAppBusinessAccountCommand.d.ts +139 -0
  78. package/dist-types/commands/DeleteWhatsAppMessageMediaCommand.d.ts +97 -0
  79. package/dist-types/commands/DisassociateWhatsAppBusinessAccountCommand.d.ts +87 -0
  80. package/dist-types/commands/GetLinkedWhatsAppBusinessAccountCommand.d.ts +116 -0
  81. package/dist-types/commands/GetLinkedWhatsAppBusinessAccountPhoneNumberCommand.d.ts +103 -0
  82. package/dist-types/commands/GetWhatsAppMessageMediaCommand.d.ts +113 -0
  83. package/dist-types/commands/ListLinkedWhatsAppBusinessAccountsCommand.d.ts +106 -0
  84. package/dist-types/commands/ListTagsForResourceCommand.d.ts +93 -0
  85. package/dist-types/commands/PostWhatsAppMessageMediaCommand.d.ts +110 -0
  86. package/dist-types/commands/PutWhatsAppBusinessAccountEventDestinationsCommand.d.ts +90 -0
  87. package/dist-types/commands/SendWhatsAppMessageCommand.d.ts +99 -0
  88. package/dist-types/commands/TagResourceCommand.d.ts +94 -0
  89. package/dist-types/commands/UntagResourceCommand.d.ts +90 -0
  90. package/dist-types/commands/index.d.ts +13 -0
  91. package/dist-types/endpoint/EndpointParameters.d.ts +40 -0
  92. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  93. package/dist-types/endpoint/ruleset.d.ts +2 -0
  94. package/dist-types/extensionConfiguration.d.ts +9 -0
  95. package/dist-types/index.d.ts +39 -0
  96. package/dist-types/models/SocialMessagingServiceException.d.ts +14 -0
  97. package/dist-types/models/index.d.ts +1 -0
  98. package/dist-types/models/models_0.d.ts +969 -0
  99. package/dist-types/pagination/Interfaces.d.ts +8 -0
  100. package/dist-types/pagination/ListLinkedWhatsAppBusinessAccountsPaginator.d.ts +7 -0
  101. package/dist-types/pagination/index.d.ts +2 -0
  102. package/dist-types/protocols/Aws_restJson1.d.ts +119 -0
  103. package/dist-types/runtimeConfig.browser.d.ts +48 -0
  104. package/dist-types/runtimeConfig.d.ts +48 -0
  105. package/dist-types/runtimeConfig.native.d.ts +47 -0
  106. package/dist-types/runtimeConfig.shared.d.ts +21 -0
  107. package/dist-types/runtimeExtensions.d.ts +17 -0
  108. package/dist-types/ts3.4/SocialMessaging.d.ts +254 -0
  109. package/dist-types/ts3.4/SocialMessagingClient.d.ts +197 -0
  110. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  111. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
  112. package/dist-types/ts3.4/commands/AssociateWhatsAppBusinessAccountCommand.d.ts +51 -0
  113. package/dist-types/ts3.4/commands/DeleteWhatsAppMessageMediaCommand.d.ts +51 -0
  114. package/dist-types/ts3.4/commands/DisassociateWhatsAppBusinessAccountCommand.d.ts +51 -0
  115. package/dist-types/ts3.4/commands/GetLinkedWhatsAppBusinessAccountCommand.d.ts +51 -0
  116. package/dist-types/ts3.4/commands/GetLinkedWhatsAppBusinessAccountPhoneNumberCommand.d.ts +51 -0
  117. package/dist-types/ts3.4/commands/GetWhatsAppMessageMediaCommand.d.ts +51 -0
  118. package/dist-types/ts3.4/commands/ListLinkedWhatsAppBusinessAccountsCommand.d.ts +51 -0
  119. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  120. package/dist-types/ts3.4/commands/PostWhatsAppMessageMediaCommand.d.ts +51 -0
  121. package/dist-types/ts3.4/commands/PutWhatsAppBusinessAccountEventDestinationsCommand.d.ts +51 -0
  122. package/dist-types/ts3.4/commands/SendWhatsAppMessageCommand.d.ts +51 -0
  123. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
  124. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +47 -0
  125. package/dist-types/ts3.4/commands/index.d.ts +13 -0
  126. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  127. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  128. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  129. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  130. package/dist-types/ts3.4/index.d.ts +9 -0
  131. package/dist-types/ts3.4/models/SocialMessagingServiceException.d.ts +9 -0
  132. package/dist-types/ts3.4/models/index.d.ts +1 -0
  133. package/dist-types/ts3.4/models/models_0.d.ts +272 -0
  134. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  135. package/dist-types/ts3.4/pagination/ListLinkedWhatsAppBusinessAccountsPaginator.d.ts +11 -0
  136. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  137. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +161 -0
  138. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
  139. package/dist-types/ts3.4/runtimeConfig.d.ts +96 -0
  140. package/dist-types/ts3.4/runtimeConfig.native.d.ts +87 -0
  141. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +23 -0
  142. package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
  143. package/package.json +101 -0
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ PostWhatsAppMessageMediaInput,
5
+ PostWhatsAppMessageMediaOutput,
6
+ } from "../models/models_0";
7
+ import {
8
+ ServiceInputTypes,
9
+ ServiceOutputTypes,
10
+ SocialMessagingClientResolvedConfig,
11
+ } from "../SocialMessagingClient";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface PostWhatsAppMessageMediaCommandInput
15
+ extends PostWhatsAppMessageMediaInput {}
16
+ export interface PostWhatsAppMessageMediaCommandOutput
17
+ extends PostWhatsAppMessageMediaOutput,
18
+ __MetadataBearer {}
19
+ declare const PostWhatsAppMessageMediaCommand_base: {
20
+ new (
21
+ input: PostWhatsAppMessageMediaCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ PostWhatsAppMessageMediaCommandInput,
24
+ PostWhatsAppMessageMediaCommandOutput,
25
+ SocialMessagingClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ __0_0: PostWhatsAppMessageMediaCommandInput
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ PostWhatsAppMessageMediaCommandInput,
33
+ PostWhatsAppMessageMediaCommandOutput,
34
+ SocialMessagingClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class PostWhatsAppMessageMediaCommand extends PostWhatsAppMessageMediaCommand_base {
41
+ protected static __types: {
42
+ api: {
43
+ input: PostWhatsAppMessageMediaInput;
44
+ output: PostWhatsAppMessageMediaOutput;
45
+ };
46
+ sdk: {
47
+ input: PostWhatsAppMessageMediaCommandInput;
48
+ output: PostWhatsAppMessageMediaCommandOutput;
49
+ };
50
+ };
51
+ }
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ PutWhatsAppBusinessAccountEventDestinationsInput,
5
+ PutWhatsAppBusinessAccountEventDestinationsOutput,
6
+ } from "../models/models_0";
7
+ import {
8
+ ServiceInputTypes,
9
+ ServiceOutputTypes,
10
+ SocialMessagingClientResolvedConfig,
11
+ } from "../SocialMessagingClient";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface PutWhatsAppBusinessAccountEventDestinationsCommandInput
15
+ extends PutWhatsAppBusinessAccountEventDestinationsInput {}
16
+ export interface PutWhatsAppBusinessAccountEventDestinationsCommandOutput
17
+ extends PutWhatsAppBusinessAccountEventDestinationsOutput,
18
+ __MetadataBearer {}
19
+ declare const PutWhatsAppBusinessAccountEventDestinationsCommand_base: {
20
+ new (
21
+ input: PutWhatsAppBusinessAccountEventDestinationsCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ PutWhatsAppBusinessAccountEventDestinationsCommandInput,
24
+ PutWhatsAppBusinessAccountEventDestinationsCommandOutput,
25
+ SocialMessagingClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ __0_0: PutWhatsAppBusinessAccountEventDestinationsCommandInput
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ PutWhatsAppBusinessAccountEventDestinationsCommandInput,
33
+ PutWhatsAppBusinessAccountEventDestinationsCommandOutput,
34
+ SocialMessagingClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class PutWhatsAppBusinessAccountEventDestinationsCommand extends PutWhatsAppBusinessAccountEventDestinationsCommand_base {
41
+ protected static __types: {
42
+ api: {
43
+ input: PutWhatsAppBusinessAccountEventDestinationsInput;
44
+ output: {};
45
+ };
46
+ sdk: {
47
+ input: PutWhatsAppBusinessAccountEventDestinationsCommandInput;
48
+ output: PutWhatsAppBusinessAccountEventDestinationsCommandOutput;
49
+ };
50
+ };
51
+ }
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ SendWhatsAppMessageInput,
5
+ SendWhatsAppMessageOutput,
6
+ } from "../models/models_0";
7
+ import {
8
+ ServiceInputTypes,
9
+ ServiceOutputTypes,
10
+ SocialMessagingClientResolvedConfig,
11
+ } from "../SocialMessagingClient";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface SendWhatsAppMessageCommandInput
15
+ extends SendWhatsAppMessageInput {}
16
+ export interface SendWhatsAppMessageCommandOutput
17
+ extends SendWhatsAppMessageOutput,
18
+ __MetadataBearer {}
19
+ declare const SendWhatsAppMessageCommand_base: {
20
+ new (
21
+ input: SendWhatsAppMessageCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ SendWhatsAppMessageCommandInput,
24
+ SendWhatsAppMessageCommandOutput,
25
+ SocialMessagingClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ __0_0: SendWhatsAppMessageCommandInput
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ SendWhatsAppMessageCommandInput,
33
+ SendWhatsAppMessageCommandOutput,
34
+ SocialMessagingClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class SendWhatsAppMessageCommand extends SendWhatsAppMessageCommand_base {
41
+ protected static __types: {
42
+ api: {
43
+ input: SendWhatsAppMessageInput;
44
+ output: SendWhatsAppMessageOutput;
45
+ };
46
+ sdk: {
47
+ input: SendWhatsAppMessageCommandInput;
48
+ output: SendWhatsAppMessageCommandOutput;
49
+ };
50
+ };
51
+ }
@@ -0,0 +1,47 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { TagResourceInput, TagResourceOutput } from "../models/models_0";
4
+ import {
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ SocialMessagingClientResolvedConfig,
8
+ } from "../SocialMessagingClient";
9
+ export { __MetadataBearer };
10
+ export { $Command };
11
+ export interface TagResourceCommandInput extends TagResourceInput {}
12
+ export interface TagResourceCommandOutput
13
+ extends TagResourceOutput,
14
+ __MetadataBearer {}
15
+ declare const TagResourceCommand_base: {
16
+ new (
17
+ input: TagResourceCommandInput
18
+ ): import("@smithy/smithy-client").CommandImpl<
19
+ TagResourceCommandInput,
20
+ TagResourceCommandOutput,
21
+ SocialMessagingClientResolvedConfig,
22
+ ServiceInputTypes,
23
+ ServiceOutputTypes
24
+ >;
25
+ new (
26
+ __0_0: TagResourceCommandInput
27
+ ): import("@smithy/smithy-client").CommandImpl<
28
+ TagResourceCommandInput,
29
+ TagResourceCommandOutput,
30
+ SocialMessagingClientResolvedConfig,
31
+ ServiceInputTypes,
32
+ ServiceOutputTypes
33
+ >;
34
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
35
+ };
36
+ export declare class TagResourceCommand extends TagResourceCommand_base {
37
+ protected static __types: {
38
+ api: {
39
+ input: TagResourceInput;
40
+ output: TagResourceOutput;
41
+ };
42
+ sdk: {
43
+ input: TagResourceCommandInput;
44
+ output: TagResourceCommandOutput;
45
+ };
46
+ };
47
+ }
@@ -0,0 +1,47 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { UntagResourceInput, UntagResourceOutput } from "../models/models_0";
4
+ import {
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ SocialMessagingClientResolvedConfig,
8
+ } from "../SocialMessagingClient";
9
+ export { __MetadataBearer };
10
+ export { $Command };
11
+ export interface UntagResourceCommandInput extends UntagResourceInput {}
12
+ export interface UntagResourceCommandOutput
13
+ extends UntagResourceOutput,
14
+ __MetadataBearer {}
15
+ declare const UntagResourceCommand_base: {
16
+ new (
17
+ input: UntagResourceCommandInput
18
+ ): import("@smithy/smithy-client").CommandImpl<
19
+ UntagResourceCommandInput,
20
+ UntagResourceCommandOutput,
21
+ SocialMessagingClientResolvedConfig,
22
+ ServiceInputTypes,
23
+ ServiceOutputTypes
24
+ >;
25
+ new (
26
+ __0_0: UntagResourceCommandInput
27
+ ): import("@smithy/smithy-client").CommandImpl<
28
+ UntagResourceCommandInput,
29
+ UntagResourceCommandOutput,
30
+ SocialMessagingClientResolvedConfig,
31
+ ServiceInputTypes,
32
+ ServiceOutputTypes
33
+ >;
34
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
35
+ };
36
+ export declare class UntagResourceCommand extends UntagResourceCommand_base {
37
+ protected static __types: {
38
+ api: {
39
+ input: UntagResourceInput;
40
+ output: UntagResourceOutput;
41
+ };
42
+ sdk: {
43
+ input: UntagResourceCommandInput;
44
+ output: UntagResourceCommandOutput;
45
+ };
46
+ };
47
+ }
@@ -0,0 +1,13 @@
1
+ export * from "./AssociateWhatsAppBusinessAccountCommand";
2
+ export * from "./DeleteWhatsAppMessageMediaCommand";
3
+ export * from "./DisassociateWhatsAppBusinessAccountCommand";
4
+ export * from "./GetLinkedWhatsAppBusinessAccountCommand";
5
+ export * from "./GetLinkedWhatsAppBusinessAccountPhoneNumberCommand";
6
+ export * from "./GetWhatsAppMessageMediaCommand";
7
+ export * from "./ListLinkedWhatsAppBusinessAccountsCommand";
8
+ export * from "./ListTagsForResourceCommand";
9
+ export * from "./PostWhatsAppMessageMediaCommand";
10
+ export * from "./PutWhatsAppBusinessAccountEventDestinationsCommand";
11
+ export * from "./SendWhatsAppMessageCommand";
12
+ export * from "./TagResourceCommand";
13
+ export * from "./UntagResourceCommand";
@@ -0,0 +1,51 @@
1
+ import {
2
+ Endpoint,
3
+ EndpointParameters as __EndpointParameters,
4
+ EndpointV2,
5
+ Provider,
6
+ } from "@smithy/types";
7
+ export interface ClientInputEndpointParameters {
8
+ region?: string | Provider<string>;
9
+ useDualstackEndpoint?: boolean | Provider<boolean>;
10
+ useFipsEndpoint?: boolean | Provider<boolean>;
11
+ endpoint?:
12
+ | string
13
+ | Provider<string>
14
+ | Endpoint
15
+ | Provider<Endpoint>
16
+ | EndpointV2
17
+ | Provider<EndpointV2>;
18
+ }
19
+ export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
20
+ defaultSigningName: string;
21
+ };
22
+ export declare const resolveClientEndpointParameters: <T>(
23
+ options: T & ClientInputEndpointParameters
24
+ ) => T &
25
+ ClientInputEndpointParameters & {
26
+ defaultSigningName: string;
27
+ };
28
+ export declare const commonParams: {
29
+ readonly UseFIPS: {
30
+ readonly type: "builtInParams";
31
+ readonly name: "useFipsEndpoint";
32
+ };
33
+ readonly Endpoint: {
34
+ readonly type: "builtInParams";
35
+ readonly name: "endpoint";
36
+ };
37
+ readonly Region: {
38
+ readonly type: "builtInParams";
39
+ readonly name: "region";
40
+ };
41
+ readonly UseDualStack: {
42
+ readonly type: "builtInParams";
43
+ readonly name: "useDualstackEndpoint";
44
+ };
45
+ };
46
+ export interface EndpointParameters extends __EndpointParameters {
47
+ Region?: string;
48
+ UseDualStack?: boolean;
49
+ UseFIPS?: boolean;
50
+ Endpoint?: string;
51
+ }
@@ -0,0 +1,8 @@
1
+ import { EndpointV2, Logger } from "@smithy/types";
2
+ import { EndpointParameters } from "./EndpointParameters";
3
+ export declare const defaultEndpointResolver: (
4
+ endpointParams: EndpointParameters,
5
+ context?: {
6
+ logger?: Logger;
7
+ }
8
+ ) => EndpointV2;
@@ -0,0 +1,2 @@
1
+ import { RuleSetObject } from "@smithy/types";
2
+ export declare const ruleSet: RuleSetObject;
@@ -0,0 +1,9 @@
1
+ import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
+ import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
3
+ import { DefaultExtensionConfiguration } from "@smithy/types";
4
+ import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
5
+ export interface SocialMessagingExtensionConfiguration
6
+ extends HttpHandlerExtensionConfiguration,
7
+ DefaultExtensionConfiguration,
8
+ AwsRegionExtensionConfiguration,
9
+ HttpAuthExtensionConfiguration {}
@@ -0,0 +1,9 @@
1
+ export * from "./SocialMessagingClient";
2
+ export * from "./SocialMessaging";
3
+ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
4
+ export { RuntimeExtension } from "./runtimeExtensions";
5
+ export { SocialMessagingExtensionConfiguration } from "./extensionConfiguration";
6
+ export * from "./commands";
7
+ export * from "./pagination";
8
+ export * from "./models";
9
+ export { SocialMessagingServiceException } from "./models/SocialMessagingServiceException";
@@ -0,0 +1,9 @@
1
+ import {
2
+ ServiceException as __ServiceException,
3
+ ServiceExceptionOptions as __ServiceExceptionOptions,
4
+ } from "@smithy/smithy-client";
5
+ export { __ServiceExceptionOptions };
6
+ export { __ServiceException };
7
+ export declare class SocialMessagingServiceException extends __ServiceException {
8
+ constructor(options: __ServiceExceptionOptions);
9
+ }
@@ -0,0 +1 @@
1
+ export * from "./models_0";
@@ -0,0 +1,272 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { SocialMessagingServiceException as __BaseException } from "./SocialMessagingServiceException";
3
+ export declare class AccessDeniedByMetaException extends __BaseException {
4
+ readonly name: "AccessDeniedByMetaException";
5
+ readonly $fault: "client";
6
+ constructor(
7
+ opts: __ExceptionOptionType<AccessDeniedByMetaException, __BaseException>
8
+ );
9
+ }
10
+ export declare class AccessDeniedException extends __BaseException {
11
+ readonly name: "AccessDeniedException";
12
+ readonly $fault: "client";
13
+ constructor(
14
+ opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
15
+ );
16
+ }
17
+ export interface Tag {
18
+ key: string | undefined;
19
+ value?: string;
20
+ }
21
+ export interface WabaPhoneNumberSetupFinalization {
22
+ id: string | undefined;
23
+ twoFactorPin: string | undefined;
24
+ dataLocalizationRegion?: string;
25
+ tags?: Tag[];
26
+ }
27
+ export interface WhatsAppBusinessAccountEventDestination {
28
+ eventDestinationArn: string | undefined;
29
+ }
30
+ export interface WabaSetupFinalization {
31
+ id?: string;
32
+ eventDestinations?: WhatsAppBusinessAccountEventDestination[];
33
+ tags?: Tag[];
34
+ }
35
+ export interface WhatsAppSetupFinalization {
36
+ associateInProgressToken: string | undefined;
37
+ phoneNumbers: WabaPhoneNumberSetupFinalization[] | undefined;
38
+ phoneNumberParent?: string;
39
+ waba?: WabaSetupFinalization;
40
+ }
41
+ export interface WhatsAppSignupCallback {
42
+ accessToken: string | undefined;
43
+ }
44
+ export interface AssociateWhatsAppBusinessAccountInput {
45
+ signupCallback?: WhatsAppSignupCallback;
46
+ setupFinalization?: WhatsAppSetupFinalization;
47
+ }
48
+ export declare const RegistrationStatus: {
49
+ readonly COMPLETE: "COMPLETE";
50
+ readonly INCOMPLETE: "INCOMPLETE";
51
+ };
52
+ export type RegistrationStatus =
53
+ (typeof RegistrationStatus)[keyof typeof RegistrationStatus];
54
+ export interface WhatsAppPhoneNumberDetail {
55
+ arn: string | undefined;
56
+ phoneNumber: string | undefined;
57
+ phoneNumberId: string | undefined;
58
+ metaPhoneNumberId: string | undefined;
59
+ displayPhoneNumberName: string | undefined;
60
+ displayPhoneNumber: string | undefined;
61
+ qualityRating: string | undefined;
62
+ }
63
+ export interface LinkedWhatsAppBusinessAccountIdMetaData {
64
+ accountName?: string;
65
+ registrationStatus?: RegistrationStatus;
66
+ unregisteredWhatsAppPhoneNumbers?: WhatsAppPhoneNumberDetail[];
67
+ }
68
+ export interface WhatsAppSignupCallbackResult {
69
+ associateInProgressToken?: string;
70
+ linkedAccountsWithIncompleteSetup?: Record<
71
+ string,
72
+ LinkedWhatsAppBusinessAccountIdMetaData
73
+ >;
74
+ }
75
+ export interface AssociateWhatsAppBusinessAccountOutput {
76
+ signupCallbackResult?: WhatsAppSignupCallbackResult;
77
+ statusCode?: number;
78
+ }
79
+ export declare class DependencyException extends __BaseException {
80
+ readonly name: "DependencyException";
81
+ readonly $fault: "server";
82
+ $retryable: {};
83
+ constructor(
84
+ opts: __ExceptionOptionType<DependencyException, __BaseException>
85
+ );
86
+ }
87
+ export declare class InvalidParametersException extends __BaseException {
88
+ readonly name: "InvalidParametersException";
89
+ readonly $fault: "client";
90
+ constructor(
91
+ opts: __ExceptionOptionType<InvalidParametersException, __BaseException>
92
+ );
93
+ }
94
+ export declare class ThrottledRequestException extends __BaseException {
95
+ readonly name: "ThrottledRequestException";
96
+ readonly $fault: "client";
97
+ $retryable: {};
98
+ constructor(
99
+ opts: __ExceptionOptionType<ThrottledRequestException, __BaseException>
100
+ );
101
+ }
102
+ export declare class ValidationException extends __BaseException {
103
+ readonly name: "ValidationException";
104
+ readonly $fault: "client";
105
+ constructor(
106
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
107
+ );
108
+ }
109
+ export interface DeleteWhatsAppMessageMediaInput {
110
+ mediaId: string | undefined;
111
+ originationPhoneNumberId: string | undefined;
112
+ }
113
+ export interface DeleteWhatsAppMessageMediaOutput {
114
+ success?: boolean;
115
+ }
116
+ export declare class InternalServiceException extends __BaseException {
117
+ readonly name: "InternalServiceException";
118
+ readonly $fault: "server";
119
+ $retryable: {};
120
+ constructor(
121
+ opts: __ExceptionOptionType<InternalServiceException, __BaseException>
122
+ );
123
+ }
124
+ export declare class ResourceNotFoundException extends __BaseException {
125
+ readonly name: "ResourceNotFoundException";
126
+ readonly $fault: "client";
127
+ constructor(
128
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
129
+ );
130
+ }
131
+ export interface DisassociateWhatsAppBusinessAccountInput {
132
+ id: string | undefined;
133
+ }
134
+ export interface DisassociateWhatsAppBusinessAccountOutput {}
135
+ export interface GetLinkedWhatsAppBusinessAccountInput {
136
+ id: string | undefined;
137
+ }
138
+ export interface WhatsAppPhoneNumberSummary {
139
+ arn: string | undefined;
140
+ phoneNumber: string | undefined;
141
+ phoneNumberId: string | undefined;
142
+ metaPhoneNumberId: string | undefined;
143
+ displayPhoneNumberName: string | undefined;
144
+ displayPhoneNumber: string | undefined;
145
+ qualityRating: string | undefined;
146
+ }
147
+ export interface LinkedWhatsAppBusinessAccount {
148
+ arn: string | undefined;
149
+ id: string | undefined;
150
+ wabaId: string | undefined;
151
+ registrationStatus: RegistrationStatus | undefined;
152
+ linkDate: Date | undefined;
153
+ wabaName: string | undefined;
154
+ eventDestinations: WhatsAppBusinessAccountEventDestination[] | undefined;
155
+ phoneNumbers: WhatsAppPhoneNumberSummary[] | undefined;
156
+ }
157
+ export interface GetLinkedWhatsAppBusinessAccountOutput {
158
+ account?: LinkedWhatsAppBusinessAccount;
159
+ }
160
+ export interface GetLinkedWhatsAppBusinessAccountPhoneNumberInput {
161
+ id: string | undefined;
162
+ }
163
+ export interface GetLinkedWhatsAppBusinessAccountPhoneNumberOutput {
164
+ phoneNumber?: WhatsAppPhoneNumberDetail;
165
+ linkedWhatsAppBusinessAccountId?: string;
166
+ }
167
+ export interface S3File {
168
+ bucketName: string | undefined;
169
+ key: string | undefined;
170
+ }
171
+ export interface S3PresignedUrl {
172
+ url: string | undefined;
173
+ headers: Record<string, string> | undefined;
174
+ }
175
+ export interface GetWhatsAppMessageMediaInput {
176
+ mediaId: string | undefined;
177
+ originationPhoneNumberId: string | undefined;
178
+ metadataOnly?: boolean;
179
+ destinationS3PresignedUrl?: S3PresignedUrl;
180
+ destinationS3File?: S3File;
181
+ }
182
+ export interface GetWhatsAppMessageMediaOutput {
183
+ mimeType?: string;
184
+ fileSize?: number;
185
+ }
186
+ export interface ListLinkedWhatsAppBusinessAccountsInput {
187
+ nextToken?: string;
188
+ maxResults?: number;
189
+ }
190
+ export interface LinkedWhatsAppBusinessAccountSummary {
191
+ arn: string | undefined;
192
+ id: string | undefined;
193
+ wabaId: string | undefined;
194
+ registrationStatus: RegistrationStatus | undefined;
195
+ linkDate: Date | undefined;
196
+ wabaName: string | undefined;
197
+ eventDestinations: WhatsAppBusinessAccountEventDestination[] | undefined;
198
+ }
199
+ export interface ListLinkedWhatsAppBusinessAccountsOutput {
200
+ linkedAccounts?: LinkedWhatsAppBusinessAccountSummary[];
201
+ nextToken?: string;
202
+ }
203
+ export interface PutWhatsAppBusinessAccountEventDestinationsInput {
204
+ id: string | undefined;
205
+ eventDestinations: WhatsAppBusinessAccountEventDestination[] | undefined;
206
+ }
207
+ export interface PutWhatsAppBusinessAccountEventDestinationsOutput {}
208
+ export interface PostWhatsAppMessageMediaInput {
209
+ originationPhoneNumberId: string | undefined;
210
+ sourceS3PresignedUrl?: S3PresignedUrl;
211
+ sourceS3File?: S3File;
212
+ }
213
+ export interface PostWhatsAppMessageMediaOutput {
214
+ mediaId?: string;
215
+ }
216
+ export interface SendWhatsAppMessageInput {
217
+ originationPhoneNumberId: string | undefined;
218
+ message: Uint8Array | undefined;
219
+ metaApiVersion: string | undefined;
220
+ }
221
+ export interface SendWhatsAppMessageOutput {
222
+ messageId?: string;
223
+ }
224
+ export interface ListTagsForResourceInput {
225
+ resourceArn: string | undefined;
226
+ }
227
+ export interface ListTagsForResourceOutput {
228
+ statusCode?: number;
229
+ tags?: Tag[];
230
+ }
231
+ export interface TagResourceInput {
232
+ resourceArn: string | undefined;
233
+ tags: Tag[] | undefined;
234
+ }
235
+ export interface TagResourceOutput {
236
+ statusCode?: number;
237
+ }
238
+ export interface UntagResourceInput {
239
+ resourceArn: string | undefined;
240
+ tagKeys: string[] | undefined;
241
+ }
242
+ export interface UntagResourceOutput {
243
+ statusCode?: number;
244
+ }
245
+ export declare const WabaPhoneNumberSetupFinalizationFilterSensitiveLog: (
246
+ obj: WabaPhoneNumberSetupFinalization
247
+ ) => any;
248
+ export declare const WhatsAppSetupFinalizationFilterSensitiveLog: (
249
+ obj: WhatsAppSetupFinalization
250
+ ) => any;
251
+ export declare const AssociateWhatsAppBusinessAccountInputFilterSensitiveLog: (
252
+ obj: AssociateWhatsAppBusinessAccountInput
253
+ ) => any;
254
+ export declare const WhatsAppSignupCallbackResultFilterSensitiveLog: (
255
+ obj: WhatsAppSignupCallbackResult
256
+ ) => any;
257
+ export declare const AssociateWhatsAppBusinessAccountOutputFilterSensitiveLog: (
258
+ obj: AssociateWhatsAppBusinessAccountOutput
259
+ ) => any;
260
+ export declare const S3FileFilterSensitiveLog: (obj: S3File) => any;
261
+ export declare const S3PresignedUrlFilterSensitiveLog: (
262
+ obj: S3PresignedUrl
263
+ ) => any;
264
+ export declare const GetWhatsAppMessageMediaInputFilterSensitiveLog: (
265
+ obj: GetWhatsAppMessageMediaInput
266
+ ) => any;
267
+ export declare const PostWhatsAppMessageMediaInputFilterSensitiveLog: (
268
+ obj: PostWhatsAppMessageMediaInput
269
+ ) => any;
270
+ export declare const SendWhatsAppMessageInputFilterSensitiveLog: (
271
+ obj: SendWhatsAppMessageInput
272
+ ) => any;
@@ -0,0 +1,6 @@
1
+ import { PaginationConfiguration } from "@smithy/types";
2
+ import { SocialMessagingClient } from "../SocialMessagingClient";
3
+ export interface SocialMessagingPaginationConfiguration
4
+ extends PaginationConfiguration {
5
+ client: SocialMessagingClient;
6
+ }
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListLinkedWhatsAppBusinessAccountsCommandInput,
4
+ ListLinkedWhatsAppBusinessAccountsCommandOutput,
5
+ } from "../commands/ListLinkedWhatsAppBusinessAccountsCommand";
6
+ import { SocialMessagingPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListLinkedWhatsAppBusinessAccounts: (
8
+ config: SocialMessagingPaginationConfiguration,
9
+ input: ListLinkedWhatsAppBusinessAccountsCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListLinkedWhatsAppBusinessAccountsCommandOutput>;
@@ -0,0 +1,2 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListLinkedWhatsAppBusinessAccountsPaginator";