@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,93 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ListTagsForResourceInput, ListTagsForResourceOutput } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, SocialMessagingClientResolvedConfig } from "../SocialMessagingClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListTagsForResourceCommand}.
14
+ */
15
+ export interface ListTagsForResourceCommandInput extends ListTagsForResourceInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListTagsForResourceCommand}.
21
+ */
22
+ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceOutput, __MetadataBearer {
23
+ }
24
+ declare const ListTagsForResourceCommand_base: {
25
+ new (input: ListTagsForResourceCommandInput): import("@smithy/smithy-client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: ListTagsForResourceCommandInput): import("@smithy/smithy-client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>List all tags associated with a resource, such as a phone number or WABA.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { SocialMessagingClient, ListTagsForResourceCommand } from "@aws-sdk/client-socialmessaging"; // ES Modules import
35
+ * // const { SocialMessagingClient, ListTagsForResourceCommand } = require("@aws-sdk/client-socialmessaging"); // CommonJS import
36
+ * const client = new SocialMessagingClient(config);
37
+ * const input = { // ListTagsForResourceInput
38
+ * resourceArn: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new ListTagsForResourceCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // ListTagsForResourceOutput
43
+ * // statusCode: Number("int"),
44
+ * // tags: [ // TagList
45
+ * // { // Tag
46
+ * // key: "STRING_VALUE", // required
47
+ * // value: "STRING_VALUE",
48
+ * // },
49
+ * // ],
50
+ * // };
51
+ *
52
+ * ```
53
+ *
54
+ * @param ListTagsForResourceCommandInput - {@link ListTagsForResourceCommandInput}
55
+ * @returns {@link ListTagsForResourceCommandOutput}
56
+ * @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
57
+ * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
58
+ * @see {@link SocialMessagingClientResolvedConfig | config} for SocialMessagingClient's `config` shape.
59
+ *
60
+ * @throws {@link InternalServiceException} (server fault)
61
+ * <p>The request processing has failed because of an unknown error, exception, or
62
+ * failure.</p>
63
+ *
64
+ * @throws {@link InvalidParametersException} (client fault)
65
+ * <p>One or more parameters provided to the action are not valid.</p>
66
+ *
67
+ * @throws {@link ThrottledRequestException} (client fault)
68
+ * <p>The request was denied due to request throttling.</p>
69
+ *
70
+ * @throws {@link AccessDeniedException} (client fault)
71
+ * <p>You do not have sufficient access to perform this action.</p>
72
+ *
73
+ * @throws {@link ValidationException} (client fault)
74
+ * <p>The request contains an invalid parameter value. </p>
75
+ *
76
+ * @throws {@link SocialMessagingServiceException}
77
+ * <p>Base exception class for all service exceptions from SocialMessaging service.</p>
78
+ *
79
+ * @public
80
+ */
81
+ export declare class ListTagsForResourceCommand extends ListTagsForResourceCommand_base {
82
+ /** @internal type navigation helper, not in runtime. */
83
+ protected static __types: {
84
+ api: {
85
+ input: ListTagsForResourceInput;
86
+ output: ListTagsForResourceOutput;
87
+ };
88
+ sdk: {
89
+ input: ListTagsForResourceCommandInput;
90
+ output: ListTagsForResourceCommandOutput;
91
+ };
92
+ };
93
+ }
@@ -0,0 +1,110 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { PostWhatsAppMessageMediaInput, PostWhatsAppMessageMediaOutput } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, SocialMessagingClientResolvedConfig } from "../SocialMessagingClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link PostWhatsAppMessageMediaCommand}.
14
+ */
15
+ export interface PostWhatsAppMessageMediaCommandInput extends PostWhatsAppMessageMediaInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link PostWhatsAppMessageMediaCommand}.
21
+ */
22
+ export interface PostWhatsAppMessageMediaCommandOutput extends PostWhatsAppMessageMediaOutput, __MetadataBearer {
23
+ }
24
+ declare const PostWhatsAppMessageMediaCommand_base: {
25
+ new (input: PostWhatsAppMessageMediaCommandInput): import("@smithy/smithy-client").CommandImpl<PostWhatsAppMessageMediaCommandInput, PostWhatsAppMessageMediaCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: PostWhatsAppMessageMediaCommandInput): import("@smithy/smithy-client").CommandImpl<PostWhatsAppMessageMediaCommandInput, PostWhatsAppMessageMediaCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Upload a media file to the WhatsApp service. Only the specified
31
+ * <code>originationPhoneNumberId</code> has the permissions to send the media file when
32
+ * using <a href="https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_SendWhatsAppMessage.html">SendWhatsAppMessage</a>. You must use either <code>sourceS3File</code>
33
+ * or <code>sourceS3PresignedUrl</code> for the source. If both or neither are specified then an
34
+ * <code>InvalidParameterException</code> is returned.</p>
35
+ * @example
36
+ * Use a bare-bones client and the command you need to make an API call.
37
+ * ```javascript
38
+ * import { SocialMessagingClient, PostWhatsAppMessageMediaCommand } from "@aws-sdk/client-socialmessaging"; // ES Modules import
39
+ * // const { SocialMessagingClient, PostWhatsAppMessageMediaCommand } = require("@aws-sdk/client-socialmessaging"); // CommonJS import
40
+ * const client = new SocialMessagingClient(config);
41
+ * const input = { // PostWhatsAppMessageMediaInput
42
+ * originationPhoneNumberId: "STRING_VALUE", // required
43
+ * sourceS3PresignedUrl: { // S3PresignedUrl
44
+ * url: "STRING_VALUE", // required
45
+ * headers: { // Headers // required
46
+ * "<keys>": "STRING_VALUE",
47
+ * },
48
+ * },
49
+ * sourceS3File: { // S3File
50
+ * bucketName: "STRING_VALUE", // required
51
+ * key: "STRING_VALUE", // required
52
+ * },
53
+ * };
54
+ * const command = new PostWhatsAppMessageMediaCommand(input);
55
+ * const response = await client.send(command);
56
+ * // { // PostWhatsAppMessageMediaOutput
57
+ * // mediaId: "STRING_VALUE",
58
+ * // };
59
+ *
60
+ * ```
61
+ *
62
+ * @param PostWhatsAppMessageMediaCommandInput - {@link PostWhatsAppMessageMediaCommandInput}
63
+ * @returns {@link PostWhatsAppMessageMediaCommandOutput}
64
+ * @see {@link PostWhatsAppMessageMediaCommandInput} for command's `input` shape.
65
+ * @see {@link PostWhatsAppMessageMediaCommandOutput} for command's `response` shape.
66
+ * @see {@link SocialMessagingClientResolvedConfig | config} for SocialMessagingClient's `config` shape.
67
+ *
68
+ * @throws {@link AccessDeniedByMetaException} (client fault)
69
+ * <p>You do not have sufficient access to perform this action.</p>
70
+ *
71
+ * @throws {@link DependencyException} (server fault)
72
+ * <p>Thrown when performing an action because a dependency would be broken.</p>
73
+ *
74
+ * @throws {@link InternalServiceException} (server fault)
75
+ * <p>The request processing has failed because of an unknown error, exception, or
76
+ * failure.</p>
77
+ *
78
+ * @throws {@link InvalidParametersException} (client fault)
79
+ * <p>One or more parameters provided to the action are not valid.</p>
80
+ *
81
+ * @throws {@link ResourceNotFoundException} (client fault)
82
+ * <p>The resource was not found.</p>
83
+ *
84
+ * @throws {@link ThrottledRequestException} (client fault)
85
+ * <p>The request was denied due to request throttling.</p>
86
+ *
87
+ * @throws {@link AccessDeniedException} (client fault)
88
+ * <p>You do not have sufficient access to perform this action.</p>
89
+ *
90
+ * @throws {@link ValidationException} (client fault)
91
+ * <p>The request contains an invalid parameter value. </p>
92
+ *
93
+ * @throws {@link SocialMessagingServiceException}
94
+ * <p>Base exception class for all service exceptions from SocialMessaging service.</p>
95
+ *
96
+ * @public
97
+ */
98
+ export declare class PostWhatsAppMessageMediaCommand extends PostWhatsAppMessageMediaCommand_base {
99
+ /** @internal type navigation helper, not in runtime. */
100
+ protected static __types: {
101
+ api: {
102
+ input: PostWhatsAppMessageMediaInput;
103
+ output: PostWhatsAppMessageMediaOutput;
104
+ };
105
+ sdk: {
106
+ input: PostWhatsAppMessageMediaCommandInput;
107
+ output: PostWhatsAppMessageMediaCommandOutput;
108
+ };
109
+ };
110
+ }
@@ -0,0 +1,90 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { PutWhatsAppBusinessAccountEventDestinationsInput, PutWhatsAppBusinessAccountEventDestinationsOutput } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, SocialMessagingClientResolvedConfig } from "../SocialMessagingClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link PutWhatsAppBusinessAccountEventDestinationsCommand}.
14
+ */
15
+ export interface PutWhatsAppBusinessAccountEventDestinationsCommandInput extends PutWhatsAppBusinessAccountEventDestinationsInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link PutWhatsAppBusinessAccountEventDestinationsCommand}.
21
+ */
22
+ export interface PutWhatsAppBusinessAccountEventDestinationsCommandOutput extends PutWhatsAppBusinessAccountEventDestinationsOutput, __MetadataBearer {
23
+ }
24
+ declare const PutWhatsAppBusinessAccountEventDestinationsCommand_base: {
25
+ new (input: PutWhatsAppBusinessAccountEventDestinationsCommandInput): import("@smithy/smithy-client").CommandImpl<PutWhatsAppBusinessAccountEventDestinationsCommandInput, PutWhatsAppBusinessAccountEventDestinationsCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: PutWhatsAppBusinessAccountEventDestinationsCommandInput): import("@smithy/smithy-client").CommandImpl<PutWhatsAppBusinessAccountEventDestinationsCommandInput, PutWhatsAppBusinessAccountEventDestinationsCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Add an event destination to log event data from WhatsApp for a WhatsApp Business Account (WABA). A WABA can only have one event destination at a time. All resources associated with the WABA use the same event destination.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { SocialMessagingClient, PutWhatsAppBusinessAccountEventDestinationsCommand } from "@aws-sdk/client-socialmessaging"; // ES Modules import
35
+ * // const { SocialMessagingClient, PutWhatsAppBusinessAccountEventDestinationsCommand } = require("@aws-sdk/client-socialmessaging"); // CommonJS import
36
+ * const client = new SocialMessagingClient(config);
37
+ * const input = { // PutWhatsAppBusinessAccountEventDestinationsInput
38
+ * id: "STRING_VALUE", // required
39
+ * eventDestinations: [ // WhatsAppBusinessAccountEventDestinations // required
40
+ * { // WhatsAppBusinessAccountEventDestination
41
+ * eventDestinationArn: "STRING_VALUE", // required
42
+ * },
43
+ * ],
44
+ * };
45
+ * const command = new PutWhatsAppBusinessAccountEventDestinationsCommand(input);
46
+ * const response = await client.send(command);
47
+ * // {};
48
+ *
49
+ * ```
50
+ *
51
+ * @param PutWhatsAppBusinessAccountEventDestinationsCommandInput - {@link PutWhatsAppBusinessAccountEventDestinationsCommandInput}
52
+ * @returns {@link PutWhatsAppBusinessAccountEventDestinationsCommandOutput}
53
+ * @see {@link PutWhatsAppBusinessAccountEventDestinationsCommandInput} for command's `input` shape.
54
+ * @see {@link PutWhatsAppBusinessAccountEventDestinationsCommandOutput} for command's `response` shape.
55
+ * @see {@link SocialMessagingClientResolvedConfig | config} for SocialMessagingClient's `config` shape.
56
+ *
57
+ * @throws {@link InternalServiceException} (server fault)
58
+ * <p>The request processing has failed because of an unknown error, exception, or
59
+ * failure.</p>
60
+ *
61
+ * @throws {@link InvalidParametersException} (client fault)
62
+ * <p>One or more parameters provided to the action are not valid.</p>
63
+ *
64
+ * @throws {@link ThrottledRequestException} (client fault)
65
+ * <p>The request was denied due to request throttling.</p>
66
+ *
67
+ * @throws {@link AccessDeniedException} (client fault)
68
+ * <p>You do not have sufficient access to perform this action.</p>
69
+ *
70
+ * @throws {@link ValidationException} (client fault)
71
+ * <p>The request contains an invalid parameter value. </p>
72
+ *
73
+ * @throws {@link SocialMessagingServiceException}
74
+ * <p>Base exception class for all service exceptions from SocialMessaging service.</p>
75
+ *
76
+ * @public
77
+ */
78
+ export declare class PutWhatsAppBusinessAccountEventDestinationsCommand extends PutWhatsAppBusinessAccountEventDestinationsCommand_base {
79
+ /** @internal type navigation helper, not in runtime. */
80
+ protected static __types: {
81
+ api: {
82
+ input: PutWhatsAppBusinessAccountEventDestinationsInput;
83
+ output: {};
84
+ };
85
+ sdk: {
86
+ input: PutWhatsAppBusinessAccountEventDestinationsCommandInput;
87
+ output: PutWhatsAppBusinessAccountEventDestinationsCommandOutput;
88
+ };
89
+ };
90
+ }
@@ -0,0 +1,99 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { SendWhatsAppMessageInput, SendWhatsAppMessageOutput } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, SocialMessagingClientResolvedConfig } from "../SocialMessagingClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link SendWhatsAppMessageCommand}.
14
+ */
15
+ export interface SendWhatsAppMessageCommandInput extends SendWhatsAppMessageInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link SendWhatsAppMessageCommand}.
21
+ */
22
+ export interface SendWhatsAppMessageCommandOutput extends SendWhatsAppMessageOutput, __MetadataBearer {
23
+ }
24
+ declare const SendWhatsAppMessageCommand_base: {
25
+ new (input: SendWhatsAppMessageCommandInput): import("@smithy/smithy-client").CommandImpl<SendWhatsAppMessageCommandInput, SendWhatsAppMessageCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: SendWhatsAppMessageCommandInput): import("@smithy/smithy-client").CommandImpl<SendWhatsAppMessageCommandInput, SendWhatsAppMessageCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Send a WhatsApp message. For examples of sending a message using the Amazon Web Services
31
+ * CLI, see <a href="https://docs.aws.amazon.com/social-messaging/latest/userguide/send-message.html">Sending messages</a> in the
32
+ * <i>
33
+ * <i>Amazon Web Services End User Messaging Social User Guide</i>
34
+ * </i>.</p>
35
+ * @example
36
+ * Use a bare-bones client and the command you need to make an API call.
37
+ * ```javascript
38
+ * import { SocialMessagingClient, SendWhatsAppMessageCommand } from "@aws-sdk/client-socialmessaging"; // ES Modules import
39
+ * // const { SocialMessagingClient, SendWhatsAppMessageCommand } = require("@aws-sdk/client-socialmessaging"); // CommonJS import
40
+ * const client = new SocialMessagingClient(config);
41
+ * const input = { // SendWhatsAppMessageInput
42
+ * originationPhoneNumberId: "STRING_VALUE", // required
43
+ * message: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
44
+ * metaApiVersion: "STRING_VALUE", // required
45
+ * };
46
+ * const command = new SendWhatsAppMessageCommand(input);
47
+ * const response = await client.send(command);
48
+ * // { // SendWhatsAppMessageOutput
49
+ * // messageId: "STRING_VALUE",
50
+ * // };
51
+ *
52
+ * ```
53
+ *
54
+ * @param SendWhatsAppMessageCommandInput - {@link SendWhatsAppMessageCommandInput}
55
+ * @returns {@link SendWhatsAppMessageCommandOutput}
56
+ * @see {@link SendWhatsAppMessageCommandInput} for command's `input` shape.
57
+ * @see {@link SendWhatsAppMessageCommandOutput} for command's `response` shape.
58
+ * @see {@link SocialMessagingClientResolvedConfig | config} for SocialMessagingClient's `config` shape.
59
+ *
60
+ * @throws {@link DependencyException} (server fault)
61
+ * <p>Thrown when performing an action because a dependency would be broken.</p>
62
+ *
63
+ * @throws {@link InternalServiceException} (server fault)
64
+ * <p>The request processing has failed because of an unknown error, exception, or
65
+ * failure.</p>
66
+ *
67
+ * @throws {@link InvalidParametersException} (client fault)
68
+ * <p>One or more parameters provided to the action are not valid.</p>
69
+ *
70
+ * @throws {@link ResourceNotFoundException} (client fault)
71
+ * <p>The resource was not found.</p>
72
+ *
73
+ * @throws {@link ThrottledRequestException} (client fault)
74
+ * <p>The request was denied due to request throttling.</p>
75
+ *
76
+ * @throws {@link AccessDeniedException} (client fault)
77
+ * <p>You do not have sufficient access to perform this action.</p>
78
+ *
79
+ * @throws {@link ValidationException} (client fault)
80
+ * <p>The request contains an invalid parameter value. </p>
81
+ *
82
+ * @throws {@link SocialMessagingServiceException}
83
+ * <p>Base exception class for all service exceptions from SocialMessaging service.</p>
84
+ *
85
+ * @public
86
+ */
87
+ export declare class SendWhatsAppMessageCommand extends SendWhatsAppMessageCommand_base {
88
+ /** @internal type navigation helper, not in runtime. */
89
+ protected static __types: {
90
+ api: {
91
+ input: SendWhatsAppMessageInput;
92
+ output: SendWhatsAppMessageOutput;
93
+ };
94
+ sdk: {
95
+ input: SendWhatsAppMessageCommandInput;
96
+ output: SendWhatsAppMessageCommandOutput;
97
+ };
98
+ };
99
+ }
@@ -0,0 +1,94 @@
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 { ServiceInputTypes, ServiceOutputTypes, SocialMessagingClientResolvedConfig } from "../SocialMessagingClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link TagResourceCommand}.
14
+ */
15
+ export interface TagResourceCommandInput extends TagResourceInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link TagResourceCommand}.
21
+ */
22
+ export interface TagResourceCommandOutput extends TagResourceOutput, __MetadataBearer {
23
+ }
24
+ declare const TagResourceCommand_base: {
25
+ new (input: TagResourceCommandInput): import("@smithy/smithy-client").CommandImpl<TagResourceCommandInput, TagResourceCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: TagResourceCommandInput): import("@smithy/smithy-client").CommandImpl<TagResourceCommandInput, TagResourceCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Adds or overwrites only the specified tags for the specified resource. When you specify
31
+ * an existing tag key, the value is overwritten with the new value.</p>
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { SocialMessagingClient, TagResourceCommand } from "@aws-sdk/client-socialmessaging"; // ES Modules import
36
+ * // const { SocialMessagingClient, TagResourceCommand } = require("@aws-sdk/client-socialmessaging"); // CommonJS import
37
+ * const client = new SocialMessagingClient(config);
38
+ * const input = { // TagResourceInput
39
+ * resourceArn: "STRING_VALUE", // required
40
+ * tags: [ // TagList // required
41
+ * { // Tag
42
+ * key: "STRING_VALUE", // required
43
+ * value: "STRING_VALUE",
44
+ * },
45
+ * ],
46
+ * };
47
+ * const command = new TagResourceCommand(input);
48
+ * const response = await client.send(command);
49
+ * // { // TagResourceOutput
50
+ * // statusCode: Number("int"),
51
+ * // };
52
+ *
53
+ * ```
54
+ *
55
+ * @param TagResourceCommandInput - {@link TagResourceCommandInput}
56
+ * @returns {@link TagResourceCommandOutput}
57
+ * @see {@link TagResourceCommandInput} for command's `input` shape.
58
+ * @see {@link TagResourceCommandOutput} for command's `response` shape.
59
+ * @see {@link SocialMessagingClientResolvedConfig | config} for SocialMessagingClient's `config` shape.
60
+ *
61
+ * @throws {@link InternalServiceException} (server fault)
62
+ * <p>The request processing has failed because of an unknown error, exception, or
63
+ * failure.</p>
64
+ *
65
+ * @throws {@link InvalidParametersException} (client fault)
66
+ * <p>One or more parameters provided to the action are not valid.</p>
67
+ *
68
+ * @throws {@link ThrottledRequestException} (client fault)
69
+ * <p>The request was denied due to request throttling.</p>
70
+ *
71
+ * @throws {@link AccessDeniedException} (client fault)
72
+ * <p>You do not have sufficient access to perform this action.</p>
73
+ *
74
+ * @throws {@link ValidationException} (client fault)
75
+ * <p>The request contains an invalid parameter value. </p>
76
+ *
77
+ * @throws {@link SocialMessagingServiceException}
78
+ * <p>Base exception class for all service exceptions from SocialMessaging service.</p>
79
+ *
80
+ * @public
81
+ */
82
+ export declare class TagResourceCommand extends TagResourceCommand_base {
83
+ /** @internal type navigation helper, not in runtime. */
84
+ protected static __types: {
85
+ api: {
86
+ input: TagResourceInput;
87
+ output: TagResourceOutput;
88
+ };
89
+ sdk: {
90
+ input: TagResourceCommandInput;
91
+ output: TagResourceCommandOutput;
92
+ };
93
+ };
94
+ }
@@ -0,0 +1,90 @@
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 { ServiceInputTypes, ServiceOutputTypes, SocialMessagingClientResolvedConfig } from "../SocialMessagingClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UntagResourceCommand}.
14
+ */
15
+ export interface UntagResourceCommandInput extends UntagResourceInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UntagResourceCommand}.
21
+ */
22
+ export interface UntagResourceCommandOutput extends UntagResourceOutput, __MetadataBearer {
23
+ }
24
+ declare const UntagResourceCommand_base: {
25
+ new (input: UntagResourceCommandInput): import("@smithy/smithy-client").CommandImpl<UntagResourceCommandInput, UntagResourceCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: UntagResourceCommandInput): import("@smithy/smithy-client").CommandImpl<UntagResourceCommandInput, UntagResourceCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Removes the specified tags from a resource. </p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { SocialMessagingClient, UntagResourceCommand } from "@aws-sdk/client-socialmessaging"; // ES Modules import
35
+ * // const { SocialMessagingClient, UntagResourceCommand } = require("@aws-sdk/client-socialmessaging"); // CommonJS import
36
+ * const client = new SocialMessagingClient(config);
37
+ * const input = { // UntagResourceInput
38
+ * resourceArn: "STRING_VALUE", // required
39
+ * tagKeys: [ // StringList // required
40
+ * "STRING_VALUE",
41
+ * ],
42
+ * };
43
+ * const command = new UntagResourceCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // UntagResourceOutput
46
+ * // statusCode: Number("int"),
47
+ * // };
48
+ *
49
+ * ```
50
+ *
51
+ * @param UntagResourceCommandInput - {@link UntagResourceCommandInput}
52
+ * @returns {@link UntagResourceCommandOutput}
53
+ * @see {@link UntagResourceCommandInput} for command's `input` shape.
54
+ * @see {@link UntagResourceCommandOutput} for command's `response` shape.
55
+ * @see {@link SocialMessagingClientResolvedConfig | config} for SocialMessagingClient's `config` shape.
56
+ *
57
+ * @throws {@link InternalServiceException} (server fault)
58
+ * <p>The request processing has failed because of an unknown error, exception, or
59
+ * failure.</p>
60
+ *
61
+ * @throws {@link InvalidParametersException} (client fault)
62
+ * <p>One or more parameters provided to the action are not valid.</p>
63
+ *
64
+ * @throws {@link ThrottledRequestException} (client fault)
65
+ * <p>The request was denied due to request throttling.</p>
66
+ *
67
+ * @throws {@link AccessDeniedException} (client fault)
68
+ * <p>You do not have sufficient access to perform this action.</p>
69
+ *
70
+ * @throws {@link ValidationException} (client fault)
71
+ * <p>The request contains an invalid parameter value. </p>
72
+ *
73
+ * @throws {@link SocialMessagingServiceException}
74
+ * <p>Base exception class for all service exceptions from SocialMessaging service.</p>
75
+ *
76
+ * @public
77
+ */
78
+ export declare class UntagResourceCommand extends UntagResourceCommand_base {
79
+ /** @internal type navigation helper, not in runtime. */
80
+ protected static __types: {
81
+ api: {
82
+ input: UntagResourceInput;
83
+ output: UntagResourceOutput;
84
+ };
85
+ sdk: {
86
+ input: UntagResourceCommandInput;
87
+ output: UntagResourceCommandOutput;
88
+ };
89
+ };
90
+ }
@@ -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,40 @@
1
+ import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface ClientInputEndpointParameters {
6
+ region?: string | Provider<string>;
7
+ useDualstackEndpoint?: boolean | Provider<boolean>;
8
+ useFipsEndpoint?: boolean | Provider<boolean>;
9
+ endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
10
+ }
11
+ export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
12
+ defaultSigningName: string;
13
+ };
14
+ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientInputEndpointParameters & {
15
+ defaultSigningName: string;
16
+ };
17
+ export declare const commonParams: {
18
+ readonly UseFIPS: {
19
+ readonly type: "builtInParams";
20
+ readonly name: "useFipsEndpoint";
21
+ };
22
+ readonly Endpoint: {
23
+ readonly type: "builtInParams";
24
+ readonly name: "endpoint";
25
+ };
26
+ readonly Region: {
27
+ readonly type: "builtInParams";
28
+ readonly name: "region";
29
+ };
30
+ readonly UseDualStack: {
31
+ readonly type: "builtInParams";
32
+ readonly name: "useDualstackEndpoint";
33
+ };
34
+ };
35
+ export interface EndpointParameters extends __EndpointParameters {
36
+ Region?: string;
37
+ UseDualStack?: boolean;
38
+ UseFIPS?: boolean;
39
+ Endpoint?: string;
40
+ }
@@ -0,0 +1,5 @@
1
+ import { EndpointV2, Logger } from "@smithy/types";
2
+ import { EndpointParameters } from "./EndpointParameters";
3
+ export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
4
+ logger?: Logger;
5
+ }) => 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
+ /**
6
+ * @internal
7
+ */
8
+ export interface SocialMessagingExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration, HttpAuthExtensionConfiguration {
9
+ }