@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,173 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SendWhatsAppMessageInputFilterSensitiveLog = exports.PostWhatsAppMessageMediaInputFilterSensitiveLog = exports.GetWhatsAppMessageMediaInputFilterSensitiveLog = exports.S3PresignedUrlFilterSensitiveLog = exports.S3FileFilterSensitiveLog = exports.AssociateWhatsAppBusinessAccountOutputFilterSensitiveLog = exports.WhatsAppSignupCallbackResultFilterSensitiveLog = exports.AssociateWhatsAppBusinessAccountInputFilterSensitiveLog = exports.WhatsAppSetupFinalizationFilterSensitiveLog = exports.WabaPhoneNumberSetupFinalizationFilterSensitiveLog = exports.ResourceNotFoundException = exports.InternalServiceException = exports.ValidationException = exports.ThrottledRequestException = exports.InvalidParametersException = exports.DependencyException = exports.RegistrationStatus = exports.AccessDeniedException = exports.AccessDeniedByMetaException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ const SocialMessagingServiceException_1 = require("./SocialMessagingServiceException");
6
+ class AccessDeniedByMetaException extends SocialMessagingServiceException_1.SocialMessagingServiceException {
7
+ constructor(opts) {
8
+ super({
9
+ name: "AccessDeniedByMetaException",
10
+ $fault: "client",
11
+ ...opts,
12
+ });
13
+ this.name = "AccessDeniedByMetaException";
14
+ this.$fault = "client";
15
+ Object.setPrototypeOf(this, AccessDeniedByMetaException.prototype);
16
+ }
17
+ }
18
+ exports.AccessDeniedByMetaException = AccessDeniedByMetaException;
19
+ class AccessDeniedException extends SocialMessagingServiceException_1.SocialMessagingServiceException {
20
+ constructor(opts) {
21
+ super({
22
+ name: "AccessDeniedException",
23
+ $fault: "client",
24
+ ...opts,
25
+ });
26
+ this.name = "AccessDeniedException";
27
+ this.$fault = "client";
28
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
29
+ }
30
+ }
31
+ exports.AccessDeniedException = AccessDeniedException;
32
+ exports.RegistrationStatus = {
33
+ COMPLETE: "COMPLETE",
34
+ INCOMPLETE: "INCOMPLETE",
35
+ };
36
+ class DependencyException extends SocialMessagingServiceException_1.SocialMessagingServiceException {
37
+ constructor(opts) {
38
+ super({
39
+ name: "DependencyException",
40
+ $fault: "server",
41
+ ...opts,
42
+ });
43
+ this.name = "DependencyException";
44
+ this.$fault = "server";
45
+ this.$retryable = {};
46
+ Object.setPrototypeOf(this, DependencyException.prototype);
47
+ }
48
+ }
49
+ exports.DependencyException = DependencyException;
50
+ class InvalidParametersException extends SocialMessagingServiceException_1.SocialMessagingServiceException {
51
+ constructor(opts) {
52
+ super({
53
+ name: "InvalidParametersException",
54
+ $fault: "client",
55
+ ...opts,
56
+ });
57
+ this.name = "InvalidParametersException";
58
+ this.$fault = "client";
59
+ Object.setPrototypeOf(this, InvalidParametersException.prototype);
60
+ }
61
+ }
62
+ exports.InvalidParametersException = InvalidParametersException;
63
+ class ThrottledRequestException extends SocialMessagingServiceException_1.SocialMessagingServiceException {
64
+ constructor(opts) {
65
+ super({
66
+ name: "ThrottledRequestException",
67
+ $fault: "client",
68
+ ...opts,
69
+ });
70
+ this.name = "ThrottledRequestException";
71
+ this.$fault = "client";
72
+ this.$retryable = {};
73
+ Object.setPrototypeOf(this, ThrottledRequestException.prototype);
74
+ }
75
+ }
76
+ exports.ThrottledRequestException = ThrottledRequestException;
77
+ class ValidationException extends SocialMessagingServiceException_1.SocialMessagingServiceException {
78
+ constructor(opts) {
79
+ super({
80
+ name: "ValidationException",
81
+ $fault: "client",
82
+ ...opts,
83
+ });
84
+ this.name = "ValidationException";
85
+ this.$fault = "client";
86
+ Object.setPrototypeOf(this, ValidationException.prototype);
87
+ }
88
+ }
89
+ exports.ValidationException = ValidationException;
90
+ class InternalServiceException extends SocialMessagingServiceException_1.SocialMessagingServiceException {
91
+ constructor(opts) {
92
+ super({
93
+ name: "InternalServiceException",
94
+ $fault: "server",
95
+ ...opts,
96
+ });
97
+ this.name = "InternalServiceException";
98
+ this.$fault = "server";
99
+ this.$retryable = {};
100
+ Object.setPrototypeOf(this, InternalServiceException.prototype);
101
+ }
102
+ }
103
+ exports.InternalServiceException = InternalServiceException;
104
+ class ResourceNotFoundException extends SocialMessagingServiceException_1.SocialMessagingServiceException {
105
+ constructor(opts) {
106
+ super({
107
+ name: "ResourceNotFoundException",
108
+ $fault: "client",
109
+ ...opts,
110
+ });
111
+ this.name = "ResourceNotFoundException";
112
+ this.$fault = "client";
113
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
114
+ }
115
+ }
116
+ exports.ResourceNotFoundException = ResourceNotFoundException;
117
+ const WabaPhoneNumberSetupFinalizationFilterSensitiveLog = (obj) => ({
118
+ ...obj,
119
+ ...(obj.twoFactorPin && { twoFactorPin: smithy_client_1.SENSITIVE_STRING }),
120
+ });
121
+ exports.WabaPhoneNumberSetupFinalizationFilterSensitiveLog = WabaPhoneNumberSetupFinalizationFilterSensitiveLog;
122
+ const WhatsAppSetupFinalizationFilterSensitiveLog = (obj) => ({
123
+ ...obj,
124
+ ...(obj.associateInProgressToken && { associateInProgressToken: smithy_client_1.SENSITIVE_STRING }),
125
+ ...(obj.phoneNumbers && {
126
+ phoneNumbers: obj.phoneNumbers.map((item) => (0, exports.WabaPhoneNumberSetupFinalizationFilterSensitiveLog)(item)),
127
+ }),
128
+ });
129
+ exports.WhatsAppSetupFinalizationFilterSensitiveLog = WhatsAppSetupFinalizationFilterSensitiveLog;
130
+ const AssociateWhatsAppBusinessAccountInputFilterSensitiveLog = (obj) => ({
131
+ ...obj,
132
+ ...(obj.setupFinalization && {
133
+ setupFinalization: (0, exports.WhatsAppSetupFinalizationFilterSensitiveLog)(obj.setupFinalization),
134
+ }),
135
+ });
136
+ exports.AssociateWhatsAppBusinessAccountInputFilterSensitiveLog = AssociateWhatsAppBusinessAccountInputFilterSensitiveLog;
137
+ const WhatsAppSignupCallbackResultFilterSensitiveLog = (obj) => ({
138
+ ...obj,
139
+ ...(obj.associateInProgressToken && { associateInProgressToken: smithy_client_1.SENSITIVE_STRING }),
140
+ });
141
+ exports.WhatsAppSignupCallbackResultFilterSensitiveLog = WhatsAppSignupCallbackResultFilterSensitiveLog;
142
+ const AssociateWhatsAppBusinessAccountOutputFilterSensitiveLog = (obj) => ({
143
+ ...obj,
144
+ ...(obj.signupCallbackResult && {
145
+ signupCallbackResult: (0, exports.WhatsAppSignupCallbackResultFilterSensitiveLog)(obj.signupCallbackResult),
146
+ }),
147
+ });
148
+ exports.AssociateWhatsAppBusinessAccountOutputFilterSensitiveLog = AssociateWhatsAppBusinessAccountOutputFilterSensitiveLog;
149
+ const S3FileFilterSensitiveLog = (obj) => ({
150
+ ...obj,
151
+ });
152
+ exports.S3FileFilterSensitiveLog = S3FileFilterSensitiveLog;
153
+ const S3PresignedUrlFilterSensitiveLog = (obj) => ({
154
+ ...obj,
155
+ });
156
+ exports.S3PresignedUrlFilterSensitiveLog = S3PresignedUrlFilterSensitiveLog;
157
+ const GetWhatsAppMessageMediaInputFilterSensitiveLog = (obj) => ({
158
+ ...obj,
159
+ ...(obj.destinationS3PresignedUrl && { destinationS3PresignedUrl: smithy_client_1.SENSITIVE_STRING }),
160
+ ...(obj.destinationS3File && { destinationS3File: smithy_client_1.SENSITIVE_STRING }),
161
+ });
162
+ exports.GetWhatsAppMessageMediaInputFilterSensitiveLog = GetWhatsAppMessageMediaInputFilterSensitiveLog;
163
+ const PostWhatsAppMessageMediaInputFilterSensitiveLog = (obj) => ({
164
+ ...obj,
165
+ ...(obj.sourceS3PresignedUrl && { sourceS3PresignedUrl: smithy_client_1.SENSITIVE_STRING }),
166
+ ...(obj.sourceS3File && { sourceS3File: smithy_client_1.SENSITIVE_STRING }),
167
+ });
168
+ exports.PostWhatsAppMessageMediaInputFilterSensitiveLog = PostWhatsAppMessageMediaInputFilterSensitiveLog;
169
+ const SendWhatsAppMessageInputFilterSensitiveLog = (obj) => ({
170
+ ...obj,
171
+ ...(obj.message && { message: smithy_client_1.SENSITIVE_STRING }),
172
+ });
173
+ exports.SendWhatsAppMessageInputFilterSensitiveLog = SendWhatsAppMessageInputFilterSensitiveLog;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListLinkedWhatsAppBusinessAccounts = void 0;
4
+ const core_1 = require("@smithy/core");
5
+ const ListLinkedWhatsAppBusinessAccountsCommand_1 = require("../commands/ListLinkedWhatsAppBusinessAccountsCommand");
6
+ const SocialMessagingClient_1 = require("../SocialMessagingClient");
7
+ exports.paginateListLinkedWhatsAppBusinessAccounts = (0, core_1.createPaginator)(SocialMessagingClient_1.SocialMessagingClient, ListLinkedWhatsAppBusinessAccountsCommand_1.ListLinkedWhatsAppBusinessAccountsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./Interfaces"), exports);
5
+ tslib_1.__exportStar(require("./ListLinkedWhatsAppBusinessAccountsPaginator"), exports);