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