@aws-sdk/client-socialmessaging 3.928.0 → 3.930.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.
- package/dist-cjs/index.js +1106 -1014
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/SocialMessagingClient.js +2 -0
- package/dist-es/commands/AssociateWhatsAppBusinessAccountCommand.js +3 -10
- package/dist-es/commands/CreateWhatsAppMessageTemplateCommand.js +3 -9
- package/dist-es/commands/CreateWhatsAppMessageTemplateFromLibraryCommand.js +3 -9
- package/dist-es/commands/CreateWhatsAppMessageTemplateMediaCommand.js +3 -10
- package/dist-es/commands/DeleteWhatsAppMessageMediaCommand.js +3 -9
- package/dist-es/commands/DeleteWhatsAppMessageTemplateCommand.js +3 -9
- package/dist-es/commands/DisassociateWhatsAppBusinessAccountCommand.js +3 -9
- package/dist-es/commands/GetLinkedWhatsAppBusinessAccountCommand.js +3 -9
- package/dist-es/commands/GetLinkedWhatsAppBusinessAccountPhoneNumberCommand.js +3 -9
- package/dist-es/commands/GetWhatsAppMessageMediaCommand.js +3 -10
- package/dist-es/commands/GetWhatsAppMessageTemplateCommand.js +3 -9
- package/dist-es/commands/ListLinkedWhatsAppBusinessAccountsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ListWhatsAppMessageTemplatesCommand.js +3 -9
- package/dist-es/commands/ListWhatsAppTemplateLibraryCommand.js +3 -9
- package/dist-es/commands/PostWhatsAppMessageMediaCommand.js +3 -10
- package/dist-es/commands/PutWhatsAppBusinessAccountEventDestinationsCommand.js +3 -9
- package/dist-es/commands/SendWhatsAppMessageCommand.js +3 -10
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateWhatsAppMessageTemplateCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -52
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +1053 -0
- package/dist-types/SocialMessagingClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -44
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +116 -0
- package/dist-types/ts3.4/SocialMessagingClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -31
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +123 -0
- package/package.json +33 -33
- package/dist-es/protocols/Aws_restJson1.js +0 -789
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -191
- 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,
|