@aws-sdk/client-socialmessaging 3.927.0 → 3.929.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 (45) hide show
  1. package/dist-cjs/index.js +1106 -1014
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/SocialMessagingClient.js +2 -0
  4. package/dist-es/commands/AssociateWhatsAppBusinessAccountCommand.js +3 -10
  5. package/dist-es/commands/CreateWhatsAppMessageTemplateCommand.js +3 -9
  6. package/dist-es/commands/CreateWhatsAppMessageTemplateFromLibraryCommand.js +3 -9
  7. package/dist-es/commands/CreateWhatsAppMessageTemplateMediaCommand.js +3 -10
  8. package/dist-es/commands/DeleteWhatsAppMessageMediaCommand.js +3 -9
  9. package/dist-es/commands/DeleteWhatsAppMessageTemplateCommand.js +3 -9
  10. package/dist-es/commands/DisassociateWhatsAppBusinessAccountCommand.js +3 -9
  11. package/dist-es/commands/GetLinkedWhatsAppBusinessAccountCommand.js +3 -9
  12. package/dist-es/commands/GetLinkedWhatsAppBusinessAccountPhoneNumberCommand.js +3 -9
  13. package/dist-es/commands/GetWhatsAppMessageMediaCommand.js +3 -10
  14. package/dist-es/commands/GetWhatsAppMessageTemplateCommand.js +3 -9
  15. package/dist-es/commands/ListLinkedWhatsAppBusinessAccountsCommand.js +3 -9
  16. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  17. package/dist-es/commands/ListWhatsAppMessageTemplatesCommand.js +3 -9
  18. package/dist-es/commands/ListWhatsAppTemplateLibraryCommand.js +3 -9
  19. package/dist-es/commands/PostWhatsAppMessageMediaCommand.js +3 -10
  20. package/dist-es/commands/PutWhatsAppBusinessAccountEventDestinationsCommand.js +3 -9
  21. package/dist-es/commands/SendWhatsAppMessageCommand.js +3 -10
  22. package/dist-es/commands/TagResourceCommand.js +3 -9
  23. package/dist-es/commands/UntagResourceCommand.js +3 -9
  24. package/dist-es/commands/UpdateWhatsAppMessageTemplateCommand.js +3 -9
  25. package/dist-es/models/models_0.js +0 -52
  26. package/dist-es/runtimeConfig.shared.js +2 -0
  27. package/dist-es/schemas/schemas_0.js +1053 -0
  28. package/dist-types/SocialMessagingClient.d.ts +10 -1
  29. package/dist-types/models/models_0.d.ts +0 -44
  30. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  31. package/dist-types/runtimeConfig.d.ts +1 -0
  32. package/dist-types/runtimeConfig.native.d.ts +1 -0
  33. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  34. package/dist-types/schemas/schemas_0.d.ts +116 -0
  35. package/dist-types/ts3.4/SocialMessagingClient.d.ts +4 -0
  36. package/dist-types/ts3.4/models/models_0.d.ts +0 -31
  37. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  38. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  39. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  40. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  41. package/dist-types/ts3.4/schemas/schemas_0.d.ts +123 -0
  42. package/package.json +5 -5
  43. package/dist-es/protocols/Aws_restJson1.js +0 -789
  44. package/dist-types/protocols/Aws_restJson1.d.ts +0 -191
  45. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -257
@@ -1,4 +1,3 @@
1
- import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
1
  import { SocialMessagingServiceException as __BaseException } from "./SocialMessagingServiceException";
3
2
  export class AccessDeniedByMetaException extends __BaseException {
4
3
  name = "AccessDeniedByMetaException";
@@ -115,54 +114,3 @@ export class ResourceNotFoundException extends __BaseException {
115
114
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
116
115
  }
117
116
  }
118
- export const WabaPhoneNumberSetupFinalizationFilterSensitiveLog = (obj) => ({
119
- ...obj,
120
- ...(obj.twoFactorPin && { twoFactorPin: SENSITIVE_STRING }),
121
- });
122
- export const WhatsAppSetupFinalizationFilterSensitiveLog = (obj) => ({
123
- ...obj,
124
- ...(obj.associateInProgressToken && { associateInProgressToken: SENSITIVE_STRING }),
125
- ...(obj.phoneNumbers && {
126
- phoneNumbers: obj.phoneNumbers.map((item) => WabaPhoneNumberSetupFinalizationFilterSensitiveLog(item)),
127
- }),
128
- });
129
- export const AssociateWhatsAppBusinessAccountInputFilterSensitiveLog = (obj) => ({
130
- ...obj,
131
- ...(obj.setupFinalization && {
132
- setupFinalization: WhatsAppSetupFinalizationFilterSensitiveLog(obj.setupFinalization),
133
- }),
134
- });
135
- export const WhatsAppSignupCallbackResultFilterSensitiveLog = (obj) => ({
136
- ...obj,
137
- ...(obj.associateInProgressToken && { associateInProgressToken: SENSITIVE_STRING }),
138
- });
139
- export const AssociateWhatsAppBusinessAccountOutputFilterSensitiveLog = (obj) => ({
140
- ...obj,
141
- ...(obj.signupCallbackResult && {
142
- signupCallbackResult: WhatsAppSignupCallbackResultFilterSensitiveLog(obj.signupCallbackResult),
143
- }),
144
- });
145
- export const S3FileFilterSensitiveLog = (obj) => ({
146
- ...obj,
147
- });
148
- export const CreateWhatsAppMessageTemplateMediaInputFilterSensitiveLog = (obj) => ({
149
- ...obj,
150
- ...(obj.sourceS3File && { sourceS3File: SENSITIVE_STRING }),
151
- });
152
- export const S3PresignedUrlFilterSensitiveLog = (obj) => ({
153
- ...obj,
154
- });
155
- export const GetWhatsAppMessageMediaInputFilterSensitiveLog = (obj) => ({
156
- ...obj,
157
- ...(obj.destinationS3PresignedUrl && { destinationS3PresignedUrl: SENSITIVE_STRING }),
158
- ...(obj.destinationS3File && { destinationS3File: SENSITIVE_STRING }),
159
- });
160
- export const PostWhatsAppMessageMediaInputFilterSensitiveLog = (obj) => ({
161
- ...obj,
162
- ...(obj.sourceS3PresignedUrl && { sourceS3PresignedUrl: SENSITIVE_STRING }),
163
- ...(obj.sourceS3File && { sourceS3File: SENSITIVE_STRING }),
164
- });
165
- export const SendWhatsAppMessageInputFilterSensitiveLog = (obj) => ({
166
- ...obj,
167
- ...(obj.message && { message: SENSITIVE_STRING }),
168
- });
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.socialmessaging" }),
25
27
  serviceId: config?.serviceId ?? "SocialMessaging",
26
28
  urlParser: config?.urlParser ?? parseUrl,
27
29
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,