@aws-sdk/client-socialmessaging 3.901.0 → 3.906.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 +1467 -1634
- package/package.json +5 -5
package/dist-cjs/index.js
CHANGED
|
@@ -1,1683 +1,1516 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
|
|
20
|
+
const resolveClientEndpointParameters = (options) => {
|
|
21
|
+
return Object.assign(options, {
|
|
22
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
23
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
24
|
+
defaultSigningName: "social-messaging",
|
|
25
|
+
});
|
|
10
26
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
27
|
+
const commonParams = {
|
|
28
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
29
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
30
|
+
Region: { type: "builtInParams", name: "region" },
|
|
31
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
18
32
|
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
|
|
21
|
-
// src/index.ts
|
|
22
|
-
var index_exports = {};
|
|
23
|
-
__export(index_exports, {
|
|
24
|
-
AccessDeniedByMetaException: () => AccessDeniedByMetaException,
|
|
25
|
-
AccessDeniedException: () => AccessDeniedException,
|
|
26
|
-
AssociateWhatsAppBusinessAccountCommand: () => AssociateWhatsAppBusinessAccountCommand,
|
|
27
|
-
AssociateWhatsAppBusinessAccountInputFilterSensitiveLog: () => AssociateWhatsAppBusinessAccountInputFilterSensitiveLog,
|
|
28
|
-
AssociateWhatsAppBusinessAccountOutputFilterSensitiveLog: () => AssociateWhatsAppBusinessAccountOutputFilterSensitiveLog,
|
|
29
|
-
CreateWhatsAppMessageTemplateCommand: () => CreateWhatsAppMessageTemplateCommand,
|
|
30
|
-
CreateWhatsAppMessageTemplateFromLibraryCommand: () => CreateWhatsAppMessageTemplateFromLibraryCommand,
|
|
31
|
-
CreateWhatsAppMessageTemplateMediaCommand: () => CreateWhatsAppMessageTemplateMediaCommand,
|
|
32
|
-
CreateWhatsAppMessageTemplateMediaInputFilterSensitiveLog: () => CreateWhatsAppMessageTemplateMediaInputFilterSensitiveLog,
|
|
33
|
-
DeleteWhatsAppMessageMediaCommand: () => DeleteWhatsAppMessageMediaCommand,
|
|
34
|
-
DeleteWhatsAppMessageTemplateCommand: () => DeleteWhatsAppMessageTemplateCommand,
|
|
35
|
-
DependencyException: () => DependencyException,
|
|
36
|
-
DisassociateWhatsAppBusinessAccountCommand: () => DisassociateWhatsAppBusinessAccountCommand,
|
|
37
|
-
GetLinkedWhatsAppBusinessAccountCommand: () => GetLinkedWhatsAppBusinessAccountCommand,
|
|
38
|
-
GetLinkedWhatsAppBusinessAccountPhoneNumberCommand: () => GetLinkedWhatsAppBusinessAccountPhoneNumberCommand,
|
|
39
|
-
GetWhatsAppMessageMediaCommand: () => GetWhatsAppMessageMediaCommand,
|
|
40
|
-
GetWhatsAppMessageMediaInputFilterSensitiveLog: () => GetWhatsAppMessageMediaInputFilterSensitiveLog,
|
|
41
|
-
GetWhatsAppMessageTemplateCommand: () => GetWhatsAppMessageTemplateCommand,
|
|
42
|
-
InternalServiceException: () => InternalServiceException,
|
|
43
|
-
InvalidParametersException: () => InvalidParametersException,
|
|
44
|
-
LimitExceededException: () => LimitExceededException,
|
|
45
|
-
ListLinkedWhatsAppBusinessAccountsCommand: () => ListLinkedWhatsAppBusinessAccountsCommand,
|
|
46
|
-
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
47
|
-
ListWhatsAppMessageTemplatesCommand: () => ListWhatsAppMessageTemplatesCommand,
|
|
48
|
-
ListWhatsAppTemplateLibraryCommand: () => ListWhatsAppTemplateLibraryCommand,
|
|
49
|
-
PostWhatsAppMessageMediaCommand: () => PostWhatsAppMessageMediaCommand,
|
|
50
|
-
PostWhatsAppMessageMediaInputFilterSensitiveLog: () => PostWhatsAppMessageMediaInputFilterSensitiveLog,
|
|
51
|
-
PutWhatsAppBusinessAccountEventDestinationsCommand: () => PutWhatsAppBusinessAccountEventDestinationsCommand,
|
|
52
|
-
RegistrationStatus: () => RegistrationStatus,
|
|
53
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
54
|
-
S3FileFilterSensitiveLog: () => S3FileFilterSensitiveLog,
|
|
55
|
-
S3PresignedUrlFilterSensitiveLog: () => S3PresignedUrlFilterSensitiveLog,
|
|
56
|
-
SendWhatsAppMessageCommand: () => SendWhatsAppMessageCommand,
|
|
57
|
-
SendWhatsAppMessageInputFilterSensitiveLog: () => SendWhatsAppMessageInputFilterSensitiveLog,
|
|
58
|
-
SocialMessaging: () => SocialMessaging,
|
|
59
|
-
SocialMessagingClient: () => SocialMessagingClient,
|
|
60
|
-
SocialMessagingServiceException: () => SocialMessagingServiceException,
|
|
61
|
-
TagResourceCommand: () => TagResourceCommand,
|
|
62
|
-
ThrottledRequestException: () => ThrottledRequestException,
|
|
63
|
-
UntagResourceCommand: () => UntagResourceCommand,
|
|
64
|
-
UpdateWhatsAppMessageTemplateCommand: () => UpdateWhatsAppMessageTemplateCommand,
|
|
65
|
-
ValidationException: () => ValidationException,
|
|
66
|
-
WabaPhoneNumberSetupFinalizationFilterSensitiveLog: () => WabaPhoneNumberSetupFinalizationFilterSensitiveLog,
|
|
67
|
-
WhatsAppSetupFinalizationFilterSensitiveLog: () => WhatsAppSetupFinalizationFilterSensitiveLog,
|
|
68
|
-
WhatsAppSignupCallbackResultFilterSensitiveLog: () => WhatsAppSignupCallbackResultFilterSensitiveLog,
|
|
69
|
-
__Client: () => import_smithy_client.Client,
|
|
70
|
-
paginateListLinkedWhatsAppBusinessAccounts: () => paginateListLinkedWhatsAppBusinessAccounts,
|
|
71
|
-
paginateListWhatsAppMessageTemplates: () => paginateListWhatsAppMessageTemplates,
|
|
72
|
-
paginateListWhatsAppTemplateLibrary: () => paginateListWhatsAppTemplateLibrary
|
|
73
|
-
});
|
|
74
|
-
module.exports = __toCommonJS(index_exports);
|
|
75
|
-
|
|
76
|
-
// src/SocialMessagingClient.ts
|
|
77
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
78
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
79
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
80
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
81
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
82
|
-
var import_core = require("@smithy/core");
|
|
83
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
84
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
85
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
86
33
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
34
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
37
|
+
let _credentials = runtimeConfig.credentials;
|
|
38
|
+
return {
|
|
39
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
40
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
41
|
+
if (index === -1) {
|
|
42
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
httpAuthSchemes() {
|
|
49
|
+
return _httpAuthSchemes;
|
|
50
|
+
},
|
|
51
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
52
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
53
|
+
},
|
|
54
|
+
httpAuthSchemeProvider() {
|
|
55
|
+
return _httpAuthSchemeProvider;
|
|
56
|
+
},
|
|
57
|
+
setCredentials(credentials) {
|
|
58
|
+
_credentials = credentials;
|
|
59
|
+
},
|
|
60
|
+
credentials() {
|
|
61
|
+
return _credentials;
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
66
|
+
return {
|
|
67
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
68
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
69
|
+
credentials: config.credentials(),
|
|
70
|
+
};
|
|
102
71
|
};
|
|
103
72
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
var import_protocol_http = require("@smithy/protocol-http");
|
|
110
|
-
var import_smithy_client = require("@smithy/smithy-client");
|
|
73
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
74
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
75
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
76
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
77
|
+
};
|
|
111
78
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
79
|
+
class SocialMessagingClient extends smithyClient.Client {
|
|
80
|
+
config;
|
|
81
|
+
constructor(...[configuration]) {
|
|
82
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
83
|
+
super(_config_0);
|
|
84
|
+
this.initConfig = _config_0;
|
|
85
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
86
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
87
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
88
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
89
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
90
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
91
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
|
+
this.config = _config_8;
|
|
94
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
101
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSocialMessagingHttpAuthSchemeParametersProvider,
|
|
102
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
103
|
+
"aws.auth#sigv4": config.credentials,
|
|
104
|
+
}),
|
|
105
|
+
}));
|
|
106
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
140
107
|
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
146
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
147
|
-
credentials: config.credentials()
|
|
148
|
-
};
|
|
149
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
150
|
-
|
|
151
|
-
// src/runtimeExtensions.ts
|
|
152
|
-
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
153
|
-
const extensionConfiguration = Object.assign(
|
|
154
|
-
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
155
|
-
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
156
|
-
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
157
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
158
|
-
);
|
|
159
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
160
|
-
return Object.assign(
|
|
161
|
-
runtimeConfig,
|
|
162
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
163
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
164
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
165
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
166
|
-
);
|
|
167
|
-
}, "resolveRuntimeExtensions");
|
|
108
|
+
destroy() {
|
|
109
|
+
super.destroy();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
168
112
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
})
|
|
204
|
-
);
|
|
205
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
209
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
210
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
211
|
-
*/
|
|
212
|
-
destroy() {
|
|
213
|
-
super.destroy();
|
|
214
|
-
}
|
|
113
|
+
class SocialMessagingServiceException extends smithyClient.ServiceException {
|
|
114
|
+
constructor(options) {
|
|
115
|
+
super(options);
|
|
116
|
+
Object.setPrototypeOf(this, SocialMessagingServiceException.prototype);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
class AccessDeniedByMetaException extends SocialMessagingServiceException {
|
|
121
|
+
name = "AccessDeniedByMetaException";
|
|
122
|
+
$fault = "client";
|
|
123
|
+
constructor(opts) {
|
|
124
|
+
super({
|
|
125
|
+
name: "AccessDeniedByMetaException",
|
|
126
|
+
$fault: "client",
|
|
127
|
+
...opts,
|
|
128
|
+
});
|
|
129
|
+
Object.setPrototypeOf(this, AccessDeniedByMetaException.prototype);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
class AccessDeniedException extends SocialMessagingServiceException {
|
|
133
|
+
name = "AccessDeniedException";
|
|
134
|
+
$fault = "client";
|
|
135
|
+
constructor(opts) {
|
|
136
|
+
super({
|
|
137
|
+
name: "AccessDeniedException",
|
|
138
|
+
$fault: "client",
|
|
139
|
+
...opts,
|
|
140
|
+
});
|
|
141
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
const RegistrationStatus = {
|
|
145
|
+
COMPLETE: "COMPLETE",
|
|
146
|
+
INCOMPLETE: "INCOMPLETE",
|
|
215
147
|
};
|
|
148
|
+
class DependencyException extends SocialMessagingServiceException {
|
|
149
|
+
name = "DependencyException";
|
|
150
|
+
$fault = "server";
|
|
151
|
+
$retryable = {};
|
|
152
|
+
constructor(opts) {
|
|
153
|
+
super({
|
|
154
|
+
name: "DependencyException",
|
|
155
|
+
$fault: "server",
|
|
156
|
+
...opts,
|
|
157
|
+
});
|
|
158
|
+
Object.setPrototypeOf(this, DependencyException.prototype);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
class InvalidParametersException extends SocialMessagingServiceException {
|
|
162
|
+
name = "InvalidParametersException";
|
|
163
|
+
$fault = "client";
|
|
164
|
+
constructor(opts) {
|
|
165
|
+
super({
|
|
166
|
+
name: "InvalidParametersException",
|
|
167
|
+
$fault: "client",
|
|
168
|
+
...opts,
|
|
169
|
+
});
|
|
170
|
+
Object.setPrototypeOf(this, InvalidParametersException.prototype);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
class LimitExceededException extends SocialMessagingServiceException {
|
|
174
|
+
name = "LimitExceededException";
|
|
175
|
+
$fault = "client";
|
|
176
|
+
constructor(opts) {
|
|
177
|
+
super({
|
|
178
|
+
name: "LimitExceededException",
|
|
179
|
+
$fault: "client",
|
|
180
|
+
...opts,
|
|
181
|
+
});
|
|
182
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
class ThrottledRequestException extends SocialMessagingServiceException {
|
|
186
|
+
name = "ThrottledRequestException";
|
|
187
|
+
$fault = "client";
|
|
188
|
+
$retryable = {};
|
|
189
|
+
constructor(opts) {
|
|
190
|
+
super({
|
|
191
|
+
name: "ThrottledRequestException",
|
|
192
|
+
$fault: "client",
|
|
193
|
+
...opts,
|
|
194
|
+
});
|
|
195
|
+
Object.setPrototypeOf(this, ThrottledRequestException.prototype);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
class ValidationException extends SocialMessagingServiceException {
|
|
199
|
+
name = "ValidationException";
|
|
200
|
+
$fault = "client";
|
|
201
|
+
constructor(opts) {
|
|
202
|
+
super({
|
|
203
|
+
name: "ValidationException",
|
|
204
|
+
$fault: "client",
|
|
205
|
+
...opts,
|
|
206
|
+
});
|
|
207
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
class InternalServiceException extends SocialMessagingServiceException {
|
|
211
|
+
name = "InternalServiceException";
|
|
212
|
+
$fault = "server";
|
|
213
|
+
$retryable = {};
|
|
214
|
+
constructor(opts) {
|
|
215
|
+
super({
|
|
216
|
+
name: "InternalServiceException",
|
|
217
|
+
$fault: "server",
|
|
218
|
+
...opts,
|
|
219
|
+
});
|
|
220
|
+
Object.setPrototypeOf(this, InternalServiceException.prototype);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
class ResourceNotFoundException extends SocialMessagingServiceException {
|
|
224
|
+
name = "ResourceNotFoundException";
|
|
225
|
+
$fault = "client";
|
|
226
|
+
constructor(opts) {
|
|
227
|
+
super({
|
|
228
|
+
name: "ResourceNotFoundException",
|
|
229
|
+
$fault: "client",
|
|
230
|
+
...opts,
|
|
231
|
+
});
|
|
232
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
const WabaPhoneNumberSetupFinalizationFilterSensitiveLog = (obj) => ({
|
|
236
|
+
...obj,
|
|
237
|
+
...(obj.twoFactorPin && { twoFactorPin: smithyClient.SENSITIVE_STRING }),
|
|
238
|
+
});
|
|
239
|
+
const WhatsAppSetupFinalizationFilterSensitiveLog = (obj) => ({
|
|
240
|
+
...obj,
|
|
241
|
+
...(obj.associateInProgressToken && { associateInProgressToken: smithyClient.SENSITIVE_STRING }),
|
|
242
|
+
...(obj.phoneNumbers && {
|
|
243
|
+
phoneNumbers: obj.phoneNumbers.map((item) => WabaPhoneNumberSetupFinalizationFilterSensitiveLog(item)),
|
|
244
|
+
}),
|
|
245
|
+
});
|
|
246
|
+
const AssociateWhatsAppBusinessAccountInputFilterSensitiveLog = (obj) => ({
|
|
247
|
+
...obj,
|
|
248
|
+
...(obj.setupFinalization && {
|
|
249
|
+
setupFinalization: WhatsAppSetupFinalizationFilterSensitiveLog(obj.setupFinalization),
|
|
250
|
+
}),
|
|
251
|
+
});
|
|
252
|
+
const WhatsAppSignupCallbackResultFilterSensitiveLog = (obj) => ({
|
|
253
|
+
...obj,
|
|
254
|
+
...(obj.associateInProgressToken && { associateInProgressToken: smithyClient.SENSITIVE_STRING }),
|
|
255
|
+
});
|
|
256
|
+
const AssociateWhatsAppBusinessAccountOutputFilterSensitiveLog = (obj) => ({
|
|
257
|
+
...obj,
|
|
258
|
+
...(obj.signupCallbackResult && {
|
|
259
|
+
signupCallbackResult: WhatsAppSignupCallbackResultFilterSensitiveLog(obj.signupCallbackResult),
|
|
260
|
+
}),
|
|
261
|
+
});
|
|
262
|
+
const S3FileFilterSensitiveLog = (obj) => ({
|
|
263
|
+
...obj,
|
|
264
|
+
});
|
|
265
|
+
const CreateWhatsAppMessageTemplateMediaInputFilterSensitiveLog = (obj) => ({
|
|
266
|
+
...obj,
|
|
267
|
+
...(obj.sourceS3File && { sourceS3File: smithyClient.SENSITIVE_STRING }),
|
|
268
|
+
});
|
|
269
|
+
const S3PresignedUrlFilterSensitiveLog = (obj) => ({
|
|
270
|
+
...obj,
|
|
271
|
+
});
|
|
272
|
+
const GetWhatsAppMessageMediaInputFilterSensitiveLog = (obj) => ({
|
|
273
|
+
...obj,
|
|
274
|
+
...(obj.destinationS3PresignedUrl && { destinationS3PresignedUrl: smithyClient.SENSITIVE_STRING }),
|
|
275
|
+
...(obj.destinationS3File && { destinationS3File: smithyClient.SENSITIVE_STRING }),
|
|
276
|
+
});
|
|
277
|
+
const PostWhatsAppMessageMediaInputFilterSensitiveLog = (obj) => ({
|
|
278
|
+
...obj,
|
|
279
|
+
...(obj.sourceS3PresignedUrl && { sourceS3PresignedUrl: smithyClient.SENSITIVE_STRING }),
|
|
280
|
+
...(obj.sourceS3File && { sourceS3File: smithyClient.SENSITIVE_STRING }),
|
|
281
|
+
});
|
|
282
|
+
const SendWhatsAppMessageInputFilterSensitiveLog = (obj) => ({
|
|
283
|
+
...obj,
|
|
284
|
+
...(obj.message && { message: smithyClient.SENSITIVE_STRING }),
|
|
285
|
+
});
|
|
216
286
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
var SocialMessagingServiceException = class _SocialMessagingServiceException extends import_smithy_client.ServiceException {
|
|
231
|
-
static {
|
|
232
|
-
__name(this, "SocialMessagingServiceException");
|
|
233
|
-
}
|
|
234
|
-
/**
|
|
235
|
-
* @internal
|
|
236
|
-
*/
|
|
237
|
-
constructor(options) {
|
|
238
|
-
super(options);
|
|
239
|
-
Object.setPrototypeOf(this, _SocialMessagingServiceException.prototype);
|
|
240
|
-
}
|
|
287
|
+
const se_AssociateWhatsAppBusinessAccountCommand = async (input, context) => {
|
|
288
|
+
const b = core.requestBuilder(input, context);
|
|
289
|
+
const headers = {
|
|
290
|
+
"content-type": "application/json",
|
|
291
|
+
};
|
|
292
|
+
b.bp("/v1/whatsapp/signup");
|
|
293
|
+
let body;
|
|
294
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
295
|
+
setupFinalization: (_) => smithyClient._json(_),
|
|
296
|
+
signupCallback: (_) => smithyClient._json(_),
|
|
297
|
+
}));
|
|
298
|
+
b.m("POST").h(headers).b(body);
|
|
299
|
+
return b.build();
|
|
241
300
|
};
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
name: "AccessDeniedByMetaException",
|
|
256
|
-
$fault: "client",
|
|
257
|
-
...opts
|
|
258
|
-
});
|
|
259
|
-
Object.setPrototypeOf(this, _AccessDeniedByMetaException.prototype);
|
|
260
|
-
}
|
|
301
|
+
const se_CreateWhatsAppMessageTemplateCommand = async (input, context) => {
|
|
302
|
+
const b = core.requestBuilder(input, context);
|
|
303
|
+
const headers = {
|
|
304
|
+
"content-type": "application/json",
|
|
305
|
+
};
|
|
306
|
+
b.bp("/v1/whatsapp/template/put");
|
|
307
|
+
let body;
|
|
308
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
309
|
+
id: [],
|
|
310
|
+
templateDefinition: (_) => context.base64Encoder(_),
|
|
311
|
+
}));
|
|
312
|
+
b.m("POST").h(headers).b(body);
|
|
313
|
+
return b.build();
|
|
261
314
|
};
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
...opts
|
|
276
|
-
});
|
|
277
|
-
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
278
|
-
}
|
|
315
|
+
const se_CreateWhatsAppMessageTemplateFromLibraryCommand = async (input, context) => {
|
|
316
|
+
const b = core.requestBuilder(input, context);
|
|
317
|
+
const headers = {
|
|
318
|
+
"content-type": "application/json",
|
|
319
|
+
};
|
|
320
|
+
b.bp("/v1/whatsapp/template/create");
|
|
321
|
+
let body;
|
|
322
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
323
|
+
id: [],
|
|
324
|
+
metaLibraryTemplate: (_) => smithyClient._json(_),
|
|
325
|
+
}));
|
|
326
|
+
b.m("POST").h(headers).b(body);
|
|
327
|
+
return b.build();
|
|
279
328
|
};
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
329
|
+
const se_CreateWhatsAppMessageTemplateMediaCommand = async (input, context) => {
|
|
330
|
+
const b = core.requestBuilder(input, context);
|
|
331
|
+
const headers = {
|
|
332
|
+
"content-type": "application/json",
|
|
333
|
+
};
|
|
334
|
+
b.bp("/v1/whatsapp/template/media");
|
|
335
|
+
let body;
|
|
336
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
337
|
+
id: [],
|
|
338
|
+
sourceS3File: (_) => smithyClient._json(_),
|
|
339
|
+
}));
|
|
340
|
+
b.m("POST").h(headers).b(body);
|
|
341
|
+
return b.build();
|
|
283
342
|
};
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
super({
|
|
296
|
-
name: "DependencyException",
|
|
297
|
-
$fault: "server",
|
|
298
|
-
...opts
|
|
299
|
-
});
|
|
300
|
-
Object.setPrototypeOf(this, _DependencyException.prototype);
|
|
301
|
-
}
|
|
343
|
+
const se_DeleteWhatsAppMessageMediaCommand = async (input, context) => {
|
|
344
|
+
const b = core.requestBuilder(input, context);
|
|
345
|
+
const headers = {};
|
|
346
|
+
b.bp("/v1/whatsapp/media");
|
|
347
|
+
const query = smithyClient.map({
|
|
348
|
+
[_mI]: [, smithyClient.expectNonNull(input[_mI], `mediaId`)],
|
|
349
|
+
[_oPNI]: [, smithyClient.expectNonNull(input[_oPNI], `originationPhoneNumberId`)],
|
|
350
|
+
});
|
|
351
|
+
let body;
|
|
352
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
353
|
+
return b.build();
|
|
302
354
|
};
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
...opts
|
|
317
|
-
});
|
|
318
|
-
Object.setPrototypeOf(this, _InvalidParametersException.prototype);
|
|
319
|
-
}
|
|
355
|
+
const se_DeleteWhatsAppMessageTemplateCommand = async (input, context) => {
|
|
356
|
+
const b = core.requestBuilder(input, context);
|
|
357
|
+
const headers = {};
|
|
358
|
+
b.bp("/v1/whatsapp/template");
|
|
359
|
+
const query = smithyClient.map({
|
|
360
|
+
[_mTI]: [, input[_mTI]],
|
|
361
|
+
[_dAT]: [() => input.deleteAllLanguages !== void 0, () => input[_dAL].toString()],
|
|
362
|
+
[_i]: [, smithyClient.expectNonNull(input[_i], `id`)],
|
|
363
|
+
[_tN]: [, smithyClient.expectNonNull(input[_tN], `templateName`)],
|
|
364
|
+
});
|
|
365
|
+
let body;
|
|
366
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
367
|
+
return b.build();
|
|
320
368
|
};
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
super({
|
|
332
|
-
name: "LimitExceededException",
|
|
333
|
-
$fault: "client",
|
|
334
|
-
...opts
|
|
335
|
-
});
|
|
336
|
-
Object.setPrototypeOf(this, _LimitExceededException.prototype);
|
|
337
|
-
}
|
|
369
|
+
const se_DisassociateWhatsAppBusinessAccountCommand = async (input, context) => {
|
|
370
|
+
const b = core.requestBuilder(input, context);
|
|
371
|
+
const headers = {};
|
|
372
|
+
b.bp("/v1/whatsapp/waba/disassociate");
|
|
373
|
+
const query = smithyClient.map({
|
|
374
|
+
[_i]: [, smithyClient.expectNonNull(input[_i], `id`)],
|
|
375
|
+
});
|
|
376
|
+
let body;
|
|
377
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
378
|
+
return b.build();
|
|
338
379
|
};
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
constructor(opts) {
|
|
350
|
-
super({
|
|
351
|
-
name: "ThrottledRequestException",
|
|
352
|
-
$fault: "client",
|
|
353
|
-
...opts
|
|
354
|
-
});
|
|
355
|
-
Object.setPrototypeOf(this, _ThrottledRequestException.prototype);
|
|
356
|
-
}
|
|
380
|
+
const se_GetLinkedWhatsAppBusinessAccountCommand = async (input, context) => {
|
|
381
|
+
const b = core.requestBuilder(input, context);
|
|
382
|
+
const headers = {};
|
|
383
|
+
b.bp("/v1/whatsapp/waba/details");
|
|
384
|
+
const query = smithyClient.map({
|
|
385
|
+
[_i]: [, smithyClient.expectNonNull(input[_i], `id`)],
|
|
386
|
+
});
|
|
387
|
+
let body;
|
|
388
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
389
|
+
return b.build();
|
|
357
390
|
};
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
super({
|
|
369
|
-
name: "ValidationException",
|
|
370
|
-
$fault: "client",
|
|
371
|
-
...opts
|
|
372
|
-
});
|
|
373
|
-
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
374
|
-
}
|
|
391
|
+
const se_GetLinkedWhatsAppBusinessAccountPhoneNumberCommand = async (input, context) => {
|
|
392
|
+
const b = core.requestBuilder(input, context);
|
|
393
|
+
const headers = {};
|
|
394
|
+
b.bp("/v1/whatsapp/waba/phone/details");
|
|
395
|
+
const query = smithyClient.map({
|
|
396
|
+
[_i]: [, smithyClient.expectNonNull(input[_i], `id`)],
|
|
397
|
+
});
|
|
398
|
+
let body;
|
|
399
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
400
|
+
return b.build();
|
|
375
401
|
};
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
Object.setPrototypeOf(this, _InternalServiceException.prototype);
|
|
393
|
-
}
|
|
402
|
+
const se_GetWhatsAppMessageMediaCommand = async (input, context) => {
|
|
403
|
+
const b = core.requestBuilder(input, context);
|
|
404
|
+
const headers = {
|
|
405
|
+
"content-type": "application/json",
|
|
406
|
+
};
|
|
407
|
+
b.bp("/v1/whatsapp/media/get");
|
|
408
|
+
let body;
|
|
409
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
410
|
+
destinationS3File: (_) => smithyClient._json(_),
|
|
411
|
+
destinationS3PresignedUrl: (_) => smithyClient._json(_),
|
|
412
|
+
mediaId: [],
|
|
413
|
+
metadataOnly: [],
|
|
414
|
+
originationPhoneNumberId: [],
|
|
415
|
+
}));
|
|
416
|
+
b.m("POST").h(headers).b(body);
|
|
417
|
+
return b.build();
|
|
394
418
|
};
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
name: "ResourceNotFoundException",
|
|
407
|
-
$fault: "client",
|
|
408
|
-
...opts
|
|
409
|
-
});
|
|
410
|
-
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
411
|
-
}
|
|
419
|
+
const se_GetWhatsAppMessageTemplateCommand = async (input, context) => {
|
|
420
|
+
const b = core.requestBuilder(input, context);
|
|
421
|
+
const headers = {};
|
|
422
|
+
b.bp("/v1/whatsapp/template");
|
|
423
|
+
const query = smithyClient.map({
|
|
424
|
+
[_mTI]: [, smithyClient.expectNonNull(input[_mTI], `metaTemplateId`)],
|
|
425
|
+
[_i]: [, smithyClient.expectNonNull(input[_i], `id`)],
|
|
426
|
+
});
|
|
427
|
+
let body;
|
|
428
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
429
|
+
return b.build();
|
|
412
430
|
};
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
var AssociateWhatsAppBusinessAccountInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
425
|
-
...obj,
|
|
426
|
-
...obj.setupFinalization && {
|
|
427
|
-
setupFinalization: WhatsAppSetupFinalizationFilterSensitiveLog(obj.setupFinalization)
|
|
428
|
-
}
|
|
429
|
-
}), "AssociateWhatsAppBusinessAccountInputFilterSensitiveLog");
|
|
430
|
-
var WhatsAppSignupCallbackResultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
431
|
-
...obj,
|
|
432
|
-
...obj.associateInProgressToken && { associateInProgressToken: import_smithy_client.SENSITIVE_STRING }
|
|
433
|
-
}), "WhatsAppSignupCallbackResultFilterSensitiveLog");
|
|
434
|
-
var AssociateWhatsAppBusinessAccountOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
435
|
-
...obj,
|
|
436
|
-
...obj.signupCallbackResult && {
|
|
437
|
-
signupCallbackResult: WhatsAppSignupCallbackResultFilterSensitiveLog(obj.signupCallbackResult)
|
|
438
|
-
}
|
|
439
|
-
}), "AssociateWhatsAppBusinessAccountOutputFilterSensitiveLog");
|
|
440
|
-
var S3FileFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
441
|
-
...obj
|
|
442
|
-
}), "S3FileFilterSensitiveLog");
|
|
443
|
-
var CreateWhatsAppMessageTemplateMediaInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
444
|
-
...obj,
|
|
445
|
-
...obj.sourceS3File && { sourceS3File: import_smithy_client.SENSITIVE_STRING }
|
|
446
|
-
}), "CreateWhatsAppMessageTemplateMediaInputFilterSensitiveLog");
|
|
447
|
-
var S3PresignedUrlFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
448
|
-
...obj
|
|
449
|
-
}), "S3PresignedUrlFilterSensitiveLog");
|
|
450
|
-
var GetWhatsAppMessageMediaInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
451
|
-
...obj,
|
|
452
|
-
...obj.destinationS3PresignedUrl && { destinationS3PresignedUrl: import_smithy_client.SENSITIVE_STRING },
|
|
453
|
-
...obj.destinationS3File && { destinationS3File: import_smithy_client.SENSITIVE_STRING }
|
|
454
|
-
}), "GetWhatsAppMessageMediaInputFilterSensitiveLog");
|
|
455
|
-
var PostWhatsAppMessageMediaInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
456
|
-
...obj,
|
|
457
|
-
...obj.sourceS3PresignedUrl && { sourceS3PresignedUrl: import_smithy_client.SENSITIVE_STRING },
|
|
458
|
-
...obj.sourceS3File && { sourceS3File: import_smithy_client.SENSITIVE_STRING }
|
|
459
|
-
}), "PostWhatsAppMessageMediaInputFilterSensitiveLog");
|
|
460
|
-
var SendWhatsAppMessageInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
461
|
-
...obj,
|
|
462
|
-
...obj.message && { message: import_smithy_client.SENSITIVE_STRING }
|
|
463
|
-
}), "SendWhatsAppMessageInputFilterSensitiveLog");
|
|
464
|
-
|
|
465
|
-
// src/protocols/Aws_restJson1.ts
|
|
466
|
-
var import_core2 = require("@aws-sdk/core");
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
var se_AssociateWhatsAppBusinessAccountCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
470
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
471
|
-
const headers = {
|
|
472
|
-
"content-type": "application/json"
|
|
473
|
-
};
|
|
474
|
-
b.bp("/v1/whatsapp/signup");
|
|
475
|
-
let body;
|
|
476
|
-
body = JSON.stringify(
|
|
477
|
-
(0, import_smithy_client.take)(input, {
|
|
478
|
-
setupFinalization: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "setupFinalization"),
|
|
479
|
-
signupCallback: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "signupCallback")
|
|
480
|
-
})
|
|
481
|
-
);
|
|
482
|
-
b.m("POST").h(headers).b(body);
|
|
483
|
-
return b.build();
|
|
484
|
-
}, "se_AssociateWhatsAppBusinessAccountCommand");
|
|
485
|
-
var se_CreateWhatsAppMessageTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
486
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
487
|
-
const headers = {
|
|
488
|
-
"content-type": "application/json"
|
|
489
|
-
};
|
|
490
|
-
b.bp("/v1/whatsapp/template/put");
|
|
491
|
-
let body;
|
|
492
|
-
body = JSON.stringify(
|
|
493
|
-
(0, import_smithy_client.take)(input, {
|
|
494
|
-
id: [],
|
|
495
|
-
templateDefinition: /* @__PURE__ */ __name((_) => context.base64Encoder(_), "templateDefinition")
|
|
496
|
-
})
|
|
497
|
-
);
|
|
498
|
-
b.m("POST").h(headers).b(body);
|
|
499
|
-
return b.build();
|
|
500
|
-
}, "se_CreateWhatsAppMessageTemplateCommand");
|
|
501
|
-
var se_CreateWhatsAppMessageTemplateFromLibraryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
502
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
503
|
-
const headers = {
|
|
504
|
-
"content-type": "application/json"
|
|
505
|
-
};
|
|
506
|
-
b.bp("/v1/whatsapp/template/create");
|
|
507
|
-
let body;
|
|
508
|
-
body = JSON.stringify(
|
|
509
|
-
(0, import_smithy_client.take)(input, {
|
|
510
|
-
id: [],
|
|
511
|
-
metaLibraryTemplate: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "metaLibraryTemplate")
|
|
512
|
-
})
|
|
513
|
-
);
|
|
514
|
-
b.m("POST").h(headers).b(body);
|
|
515
|
-
return b.build();
|
|
516
|
-
}, "se_CreateWhatsAppMessageTemplateFromLibraryCommand");
|
|
517
|
-
var se_CreateWhatsAppMessageTemplateMediaCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
518
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
519
|
-
const headers = {
|
|
520
|
-
"content-type": "application/json"
|
|
521
|
-
};
|
|
522
|
-
b.bp("/v1/whatsapp/template/media");
|
|
523
|
-
let body;
|
|
524
|
-
body = JSON.stringify(
|
|
525
|
-
(0, import_smithy_client.take)(input, {
|
|
526
|
-
id: [],
|
|
527
|
-
sourceS3File: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "sourceS3File")
|
|
528
|
-
})
|
|
529
|
-
);
|
|
530
|
-
b.m("POST").h(headers).b(body);
|
|
531
|
-
return b.build();
|
|
532
|
-
}, "se_CreateWhatsAppMessageTemplateMediaCommand");
|
|
533
|
-
var se_DeleteWhatsAppMessageMediaCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
534
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
535
|
-
const headers = {};
|
|
536
|
-
b.bp("/v1/whatsapp/media");
|
|
537
|
-
const query = (0, import_smithy_client.map)({
|
|
538
|
-
[_mI]: [, (0, import_smithy_client.expectNonNull)(input[_mI], `mediaId`)],
|
|
539
|
-
[_oPNI]: [, (0, import_smithy_client.expectNonNull)(input[_oPNI], `originationPhoneNumberId`)]
|
|
540
|
-
});
|
|
541
|
-
let body;
|
|
542
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
543
|
-
return b.build();
|
|
544
|
-
}, "se_DeleteWhatsAppMessageMediaCommand");
|
|
545
|
-
var se_DeleteWhatsAppMessageTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
546
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
547
|
-
const headers = {};
|
|
548
|
-
b.bp("/v1/whatsapp/template");
|
|
549
|
-
const query = (0, import_smithy_client.map)({
|
|
550
|
-
[_mTI]: [, input[_mTI]],
|
|
551
|
-
[_dAT]: [() => input.deleteAllLanguages !== void 0, () => input[_dAL].toString()],
|
|
552
|
-
[_i]: [, (0, import_smithy_client.expectNonNull)(input[_i], `id`)],
|
|
553
|
-
[_tN]: [, (0, import_smithy_client.expectNonNull)(input[_tN], `templateName`)]
|
|
554
|
-
});
|
|
555
|
-
let body;
|
|
556
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
557
|
-
return b.build();
|
|
558
|
-
}, "se_DeleteWhatsAppMessageTemplateCommand");
|
|
559
|
-
var se_DisassociateWhatsAppBusinessAccountCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
560
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
561
|
-
const headers = {};
|
|
562
|
-
b.bp("/v1/whatsapp/waba/disassociate");
|
|
563
|
-
const query = (0, import_smithy_client.map)({
|
|
564
|
-
[_i]: [, (0, import_smithy_client.expectNonNull)(input[_i], `id`)]
|
|
565
|
-
});
|
|
566
|
-
let body;
|
|
567
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
568
|
-
return b.build();
|
|
569
|
-
}, "se_DisassociateWhatsAppBusinessAccountCommand");
|
|
570
|
-
var se_GetLinkedWhatsAppBusinessAccountCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
571
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
572
|
-
const headers = {};
|
|
573
|
-
b.bp("/v1/whatsapp/waba/details");
|
|
574
|
-
const query = (0, import_smithy_client.map)({
|
|
575
|
-
[_i]: [, (0, import_smithy_client.expectNonNull)(input[_i], `id`)]
|
|
576
|
-
});
|
|
577
|
-
let body;
|
|
578
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
579
|
-
return b.build();
|
|
580
|
-
}, "se_GetLinkedWhatsAppBusinessAccountCommand");
|
|
581
|
-
var se_GetLinkedWhatsAppBusinessAccountPhoneNumberCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
582
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
583
|
-
const headers = {};
|
|
584
|
-
b.bp("/v1/whatsapp/waba/phone/details");
|
|
585
|
-
const query = (0, import_smithy_client.map)({
|
|
586
|
-
[_i]: [, (0, import_smithy_client.expectNonNull)(input[_i], `id`)]
|
|
587
|
-
});
|
|
588
|
-
let body;
|
|
589
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
590
|
-
return b.build();
|
|
591
|
-
}, "se_GetLinkedWhatsAppBusinessAccountPhoneNumberCommand");
|
|
592
|
-
var se_GetWhatsAppMessageMediaCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
593
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
594
|
-
const headers = {
|
|
595
|
-
"content-type": "application/json"
|
|
596
|
-
};
|
|
597
|
-
b.bp("/v1/whatsapp/media/get");
|
|
598
|
-
let body;
|
|
599
|
-
body = JSON.stringify(
|
|
600
|
-
(0, import_smithy_client.take)(input, {
|
|
601
|
-
destinationS3File: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "destinationS3File"),
|
|
602
|
-
destinationS3PresignedUrl: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "destinationS3PresignedUrl"),
|
|
603
|
-
mediaId: [],
|
|
604
|
-
metadataOnly: [],
|
|
605
|
-
originationPhoneNumberId: []
|
|
606
|
-
})
|
|
607
|
-
);
|
|
608
|
-
b.m("POST").h(headers).b(body);
|
|
609
|
-
return b.build();
|
|
610
|
-
}, "se_GetWhatsAppMessageMediaCommand");
|
|
611
|
-
var se_GetWhatsAppMessageTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
612
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
613
|
-
const headers = {};
|
|
614
|
-
b.bp("/v1/whatsapp/template");
|
|
615
|
-
const query = (0, import_smithy_client.map)({
|
|
616
|
-
[_mTI]: [, (0, import_smithy_client.expectNonNull)(input[_mTI], `metaTemplateId`)],
|
|
617
|
-
[_i]: [, (0, import_smithy_client.expectNonNull)(input[_i], `id`)]
|
|
618
|
-
});
|
|
619
|
-
let body;
|
|
620
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
621
|
-
return b.build();
|
|
622
|
-
}, "se_GetWhatsAppMessageTemplateCommand");
|
|
623
|
-
var se_ListLinkedWhatsAppBusinessAccountsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
624
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
625
|
-
const headers = {};
|
|
626
|
-
b.bp("/v1/whatsapp/waba/list");
|
|
627
|
-
const query = (0, import_smithy_client.map)({
|
|
628
|
-
[_nT]: [, input[_nT]],
|
|
629
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
|
|
630
|
-
});
|
|
631
|
-
let body;
|
|
632
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
633
|
-
return b.build();
|
|
634
|
-
}, "se_ListLinkedWhatsAppBusinessAccountsCommand");
|
|
635
|
-
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
636
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
637
|
-
const headers = {};
|
|
638
|
-
b.bp("/v1/tags/list");
|
|
639
|
-
const query = (0, import_smithy_client.map)({
|
|
640
|
-
[_rA]: [, (0, import_smithy_client.expectNonNull)(input[_rA], `resourceArn`)]
|
|
641
|
-
});
|
|
642
|
-
let body;
|
|
643
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
644
|
-
return b.build();
|
|
645
|
-
}, "se_ListTagsForResourceCommand");
|
|
646
|
-
var se_ListWhatsAppMessageTemplatesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
647
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
648
|
-
const headers = {};
|
|
649
|
-
b.bp("/v1/whatsapp/template/list");
|
|
650
|
-
const query = (0, import_smithy_client.map)({
|
|
651
|
-
[_i]: [, (0, import_smithy_client.expectNonNull)(input[_i], `id`)],
|
|
652
|
-
[_nT]: [, input[_nT]],
|
|
653
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
|
|
654
|
-
});
|
|
655
|
-
let body;
|
|
656
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
657
|
-
return b.build();
|
|
658
|
-
}, "se_ListWhatsAppMessageTemplatesCommand");
|
|
659
|
-
var se_ListWhatsAppTemplateLibraryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
660
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
661
|
-
const headers = {
|
|
662
|
-
"content-type": "application/json"
|
|
663
|
-
};
|
|
664
|
-
b.bp("/v1/whatsapp/template/library");
|
|
665
|
-
const query = (0, import_smithy_client.map)({
|
|
666
|
-
[_i]: [, (0, import_smithy_client.expectNonNull)(input[_i], `id`)]
|
|
667
|
-
});
|
|
668
|
-
let body;
|
|
669
|
-
body = JSON.stringify(
|
|
670
|
-
(0, import_smithy_client.take)(input, {
|
|
671
|
-
filters: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "filters"),
|
|
672
|
-
maxResults: [],
|
|
673
|
-
nextToken: []
|
|
674
|
-
})
|
|
675
|
-
);
|
|
676
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
677
|
-
return b.build();
|
|
678
|
-
}, "se_ListWhatsAppTemplateLibraryCommand");
|
|
679
|
-
var se_PostWhatsAppMessageMediaCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
680
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
681
|
-
const headers = {
|
|
682
|
-
"content-type": "application/json"
|
|
683
|
-
};
|
|
684
|
-
b.bp("/v1/whatsapp/media");
|
|
685
|
-
let body;
|
|
686
|
-
body = JSON.stringify(
|
|
687
|
-
(0, import_smithy_client.take)(input, {
|
|
688
|
-
originationPhoneNumberId: [],
|
|
689
|
-
sourceS3File: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "sourceS3File"),
|
|
690
|
-
sourceS3PresignedUrl: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "sourceS3PresignedUrl")
|
|
691
|
-
})
|
|
692
|
-
);
|
|
693
|
-
b.m("POST").h(headers).b(body);
|
|
694
|
-
return b.build();
|
|
695
|
-
}, "se_PostWhatsAppMessageMediaCommand");
|
|
696
|
-
var se_PutWhatsAppBusinessAccountEventDestinationsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
697
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
698
|
-
const headers = {
|
|
699
|
-
"content-type": "application/json"
|
|
700
|
-
};
|
|
701
|
-
b.bp("/v1/whatsapp/waba/eventdestinations");
|
|
702
|
-
let body;
|
|
703
|
-
body = JSON.stringify(
|
|
704
|
-
(0, import_smithy_client.take)(input, {
|
|
705
|
-
eventDestinations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "eventDestinations"),
|
|
706
|
-
id: []
|
|
707
|
-
})
|
|
708
|
-
);
|
|
709
|
-
b.m("PUT").h(headers).b(body);
|
|
710
|
-
return b.build();
|
|
711
|
-
}, "se_PutWhatsAppBusinessAccountEventDestinationsCommand");
|
|
712
|
-
var se_SendWhatsAppMessageCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
713
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
714
|
-
const headers = {
|
|
715
|
-
"content-type": "application/json"
|
|
716
|
-
};
|
|
717
|
-
b.bp("/v1/whatsapp/send");
|
|
718
|
-
let body;
|
|
719
|
-
body = JSON.stringify(
|
|
720
|
-
(0, import_smithy_client.take)(input, {
|
|
721
|
-
message: /* @__PURE__ */ __name((_) => context.base64Encoder(_), "message"),
|
|
722
|
-
metaApiVersion: [],
|
|
723
|
-
originationPhoneNumberId: []
|
|
724
|
-
})
|
|
725
|
-
);
|
|
726
|
-
b.m("POST").h(headers).b(body);
|
|
727
|
-
return b.build();
|
|
728
|
-
}, "se_SendWhatsAppMessageCommand");
|
|
729
|
-
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
730
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
731
|
-
const headers = {
|
|
732
|
-
"content-type": "application/json"
|
|
733
|
-
};
|
|
734
|
-
b.bp("/v1/tags/tag-resource");
|
|
735
|
-
let body;
|
|
736
|
-
body = JSON.stringify(
|
|
737
|
-
(0, import_smithy_client.take)(input, {
|
|
738
|
-
resourceArn: [],
|
|
739
|
-
tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
|
|
740
|
-
})
|
|
741
|
-
);
|
|
742
|
-
b.m("POST").h(headers).b(body);
|
|
743
|
-
return b.build();
|
|
744
|
-
}, "se_TagResourceCommand");
|
|
745
|
-
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
746
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
747
|
-
const headers = {
|
|
748
|
-
"content-type": "application/json"
|
|
749
|
-
};
|
|
750
|
-
b.bp("/v1/tags/untag-resource");
|
|
751
|
-
let body;
|
|
752
|
-
body = JSON.stringify(
|
|
753
|
-
(0, import_smithy_client.take)(input, {
|
|
754
|
-
resourceArn: [],
|
|
755
|
-
tagKeys: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tagKeys")
|
|
756
|
-
})
|
|
757
|
-
);
|
|
758
|
-
b.m("POST").h(headers).b(body);
|
|
759
|
-
return b.build();
|
|
760
|
-
}, "se_UntagResourceCommand");
|
|
761
|
-
var se_UpdateWhatsAppMessageTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
762
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
763
|
-
const headers = {
|
|
764
|
-
"content-type": "application/json"
|
|
765
|
-
};
|
|
766
|
-
b.bp("/v1/whatsapp/template");
|
|
767
|
-
let body;
|
|
768
|
-
body = JSON.stringify(
|
|
769
|
-
(0, import_smithy_client.take)(input, {
|
|
770
|
-
id: [],
|
|
771
|
-
metaTemplateId: [],
|
|
772
|
-
templateCategory: [],
|
|
773
|
-
templateComponents: /* @__PURE__ */ __name((_) => context.base64Encoder(_), "templateComponents")
|
|
774
|
-
})
|
|
775
|
-
);
|
|
776
|
-
b.m("POST").h(headers).b(body);
|
|
777
|
-
return b.build();
|
|
778
|
-
}, "se_UpdateWhatsAppMessageTemplateCommand");
|
|
779
|
-
var de_AssociateWhatsAppBusinessAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
780
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
781
|
-
return de_CommandError(output, context);
|
|
782
|
-
}
|
|
783
|
-
const contents = (0, import_smithy_client.map)({
|
|
784
|
-
$metadata: deserializeMetadata(output)
|
|
785
|
-
});
|
|
786
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
787
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
788
|
-
signupCallbackResult: import_smithy_client._json,
|
|
789
|
-
statusCode: import_smithy_client.expectInt32
|
|
790
|
-
});
|
|
791
|
-
Object.assign(contents, doc);
|
|
792
|
-
return contents;
|
|
793
|
-
}, "de_AssociateWhatsAppBusinessAccountCommand");
|
|
794
|
-
var de_CreateWhatsAppMessageTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
795
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
796
|
-
return de_CommandError(output, context);
|
|
797
|
-
}
|
|
798
|
-
const contents = (0, import_smithy_client.map)({
|
|
799
|
-
$metadata: deserializeMetadata(output)
|
|
800
|
-
});
|
|
801
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
802
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
803
|
-
category: import_smithy_client.expectString,
|
|
804
|
-
metaTemplateId: import_smithy_client.expectString,
|
|
805
|
-
templateStatus: import_smithy_client.expectString
|
|
806
|
-
});
|
|
807
|
-
Object.assign(contents, doc);
|
|
808
|
-
return contents;
|
|
809
|
-
}, "de_CreateWhatsAppMessageTemplateCommand");
|
|
810
|
-
var de_CreateWhatsAppMessageTemplateFromLibraryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
811
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
812
|
-
return de_CommandError(output, context);
|
|
813
|
-
}
|
|
814
|
-
const contents = (0, import_smithy_client.map)({
|
|
815
|
-
$metadata: deserializeMetadata(output)
|
|
816
|
-
});
|
|
817
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
818
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
819
|
-
category: import_smithy_client.expectString,
|
|
820
|
-
metaTemplateId: import_smithy_client.expectString,
|
|
821
|
-
templateStatus: import_smithy_client.expectString
|
|
822
|
-
});
|
|
823
|
-
Object.assign(contents, doc);
|
|
824
|
-
return contents;
|
|
825
|
-
}, "de_CreateWhatsAppMessageTemplateFromLibraryCommand");
|
|
826
|
-
var de_CreateWhatsAppMessageTemplateMediaCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
827
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
828
|
-
return de_CommandError(output, context);
|
|
829
|
-
}
|
|
830
|
-
const contents = (0, import_smithy_client.map)({
|
|
831
|
-
$metadata: deserializeMetadata(output)
|
|
832
|
-
});
|
|
833
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
834
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
835
|
-
metaHeaderHandle: import_smithy_client.expectString
|
|
836
|
-
});
|
|
837
|
-
Object.assign(contents, doc);
|
|
838
|
-
return contents;
|
|
839
|
-
}, "de_CreateWhatsAppMessageTemplateMediaCommand");
|
|
840
|
-
var de_DeleteWhatsAppMessageMediaCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
841
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
842
|
-
return de_CommandError(output, context);
|
|
843
|
-
}
|
|
844
|
-
const contents = (0, import_smithy_client.map)({
|
|
845
|
-
$metadata: deserializeMetadata(output)
|
|
846
|
-
});
|
|
847
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
848
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
849
|
-
success: import_smithy_client.expectBoolean
|
|
850
|
-
});
|
|
851
|
-
Object.assign(contents, doc);
|
|
852
|
-
return contents;
|
|
853
|
-
}, "de_DeleteWhatsAppMessageMediaCommand");
|
|
854
|
-
var de_DeleteWhatsAppMessageTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
855
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
856
|
-
return de_CommandError(output, context);
|
|
857
|
-
}
|
|
858
|
-
const contents = (0, import_smithy_client.map)({
|
|
859
|
-
$metadata: deserializeMetadata(output)
|
|
860
|
-
});
|
|
861
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
862
|
-
return contents;
|
|
863
|
-
}, "de_DeleteWhatsAppMessageTemplateCommand");
|
|
864
|
-
var de_DisassociateWhatsAppBusinessAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
865
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
866
|
-
return de_CommandError(output, context);
|
|
867
|
-
}
|
|
868
|
-
const contents = (0, import_smithy_client.map)({
|
|
869
|
-
$metadata: deserializeMetadata(output)
|
|
870
|
-
});
|
|
871
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
872
|
-
return contents;
|
|
873
|
-
}, "de_DisassociateWhatsAppBusinessAccountCommand");
|
|
874
|
-
var de_GetLinkedWhatsAppBusinessAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
875
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
876
|
-
return de_CommandError(output, context);
|
|
877
|
-
}
|
|
878
|
-
const contents = (0, import_smithy_client.map)({
|
|
879
|
-
$metadata: deserializeMetadata(output)
|
|
880
|
-
});
|
|
881
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
882
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
883
|
-
account: /* @__PURE__ */ __name((_) => de_LinkedWhatsAppBusinessAccount(_, context), "account")
|
|
884
|
-
});
|
|
885
|
-
Object.assign(contents, doc);
|
|
886
|
-
return contents;
|
|
887
|
-
}, "de_GetLinkedWhatsAppBusinessAccountCommand");
|
|
888
|
-
var de_GetLinkedWhatsAppBusinessAccountPhoneNumberCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
889
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
890
|
-
return de_CommandError(output, context);
|
|
891
|
-
}
|
|
892
|
-
const contents = (0, import_smithy_client.map)({
|
|
893
|
-
$metadata: deserializeMetadata(output)
|
|
894
|
-
});
|
|
895
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
896
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
897
|
-
linkedWhatsAppBusinessAccountId: import_smithy_client.expectString,
|
|
898
|
-
phoneNumber: import_smithy_client._json
|
|
899
|
-
});
|
|
900
|
-
Object.assign(contents, doc);
|
|
901
|
-
return contents;
|
|
902
|
-
}, "de_GetLinkedWhatsAppBusinessAccountPhoneNumberCommand");
|
|
903
|
-
var de_GetWhatsAppMessageMediaCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
904
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
905
|
-
return de_CommandError(output, context);
|
|
906
|
-
}
|
|
907
|
-
const contents = (0, import_smithy_client.map)({
|
|
908
|
-
$metadata: deserializeMetadata(output)
|
|
909
|
-
});
|
|
910
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
911
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
912
|
-
fileSize: import_smithy_client.expectLong,
|
|
913
|
-
mimeType: import_smithy_client.expectString
|
|
914
|
-
});
|
|
915
|
-
Object.assign(contents, doc);
|
|
916
|
-
return contents;
|
|
917
|
-
}, "de_GetWhatsAppMessageMediaCommand");
|
|
918
|
-
var de_GetWhatsAppMessageTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
919
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
920
|
-
return de_CommandError(output, context);
|
|
921
|
-
}
|
|
922
|
-
const contents = (0, import_smithy_client.map)({
|
|
923
|
-
$metadata: deserializeMetadata(output)
|
|
924
|
-
});
|
|
925
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
926
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
927
|
-
template: import_smithy_client.expectString
|
|
928
|
-
});
|
|
929
|
-
Object.assign(contents, doc);
|
|
930
|
-
return contents;
|
|
931
|
-
}, "de_GetWhatsAppMessageTemplateCommand");
|
|
932
|
-
var de_ListLinkedWhatsAppBusinessAccountsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
933
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
934
|
-
return de_CommandError(output, context);
|
|
935
|
-
}
|
|
936
|
-
const contents = (0, import_smithy_client.map)({
|
|
937
|
-
$metadata: deserializeMetadata(output)
|
|
938
|
-
});
|
|
939
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
940
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
941
|
-
linkedAccounts: /* @__PURE__ */ __name((_) => de_LinkedWhatsAppBusinessAccountSummaryList(_, context), "linkedAccounts"),
|
|
942
|
-
nextToken: import_smithy_client.expectString
|
|
943
|
-
});
|
|
944
|
-
Object.assign(contents, doc);
|
|
945
|
-
return contents;
|
|
946
|
-
}, "de_ListLinkedWhatsAppBusinessAccountsCommand");
|
|
947
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
948
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
949
|
-
return de_CommandError(output, context);
|
|
950
|
-
}
|
|
951
|
-
const contents = (0, import_smithy_client.map)({
|
|
952
|
-
$metadata: deserializeMetadata(output)
|
|
953
|
-
});
|
|
954
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
955
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
956
|
-
statusCode: import_smithy_client.expectInt32,
|
|
957
|
-
tags: import_smithy_client._json
|
|
958
|
-
});
|
|
959
|
-
Object.assign(contents, doc);
|
|
960
|
-
return contents;
|
|
961
|
-
}, "de_ListTagsForResourceCommand");
|
|
962
|
-
var de_ListWhatsAppMessageTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
963
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
964
|
-
return de_CommandError(output, context);
|
|
965
|
-
}
|
|
966
|
-
const contents = (0, import_smithy_client.map)({
|
|
967
|
-
$metadata: deserializeMetadata(output)
|
|
968
|
-
});
|
|
969
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
970
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
971
|
-
nextToken: import_smithy_client.expectString,
|
|
972
|
-
templates: import_smithy_client._json
|
|
973
|
-
});
|
|
974
|
-
Object.assign(contents, doc);
|
|
975
|
-
return contents;
|
|
976
|
-
}, "de_ListWhatsAppMessageTemplatesCommand");
|
|
977
|
-
var de_ListWhatsAppTemplateLibraryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
978
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
979
|
-
return de_CommandError(output, context);
|
|
980
|
-
}
|
|
981
|
-
const contents = (0, import_smithy_client.map)({
|
|
982
|
-
$metadata: deserializeMetadata(output)
|
|
983
|
-
});
|
|
984
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
985
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
986
|
-
metaLibraryTemplates: import_smithy_client._json,
|
|
987
|
-
nextToken: import_smithy_client.expectString
|
|
988
|
-
});
|
|
989
|
-
Object.assign(contents, doc);
|
|
990
|
-
return contents;
|
|
991
|
-
}, "de_ListWhatsAppTemplateLibraryCommand");
|
|
992
|
-
var de_PostWhatsAppMessageMediaCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
993
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
994
|
-
return de_CommandError(output, context);
|
|
995
|
-
}
|
|
996
|
-
const contents = (0, import_smithy_client.map)({
|
|
997
|
-
$metadata: deserializeMetadata(output)
|
|
998
|
-
});
|
|
999
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1000
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1001
|
-
mediaId: import_smithy_client.expectString
|
|
1002
|
-
});
|
|
1003
|
-
Object.assign(contents, doc);
|
|
1004
|
-
return contents;
|
|
1005
|
-
}, "de_PostWhatsAppMessageMediaCommand");
|
|
1006
|
-
var de_PutWhatsAppBusinessAccountEventDestinationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1007
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1008
|
-
return de_CommandError(output, context);
|
|
1009
|
-
}
|
|
1010
|
-
const contents = (0, import_smithy_client.map)({
|
|
1011
|
-
$metadata: deserializeMetadata(output)
|
|
1012
|
-
});
|
|
1013
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1014
|
-
return contents;
|
|
1015
|
-
}, "de_PutWhatsAppBusinessAccountEventDestinationsCommand");
|
|
1016
|
-
var de_SendWhatsAppMessageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1017
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1018
|
-
return de_CommandError(output, context);
|
|
1019
|
-
}
|
|
1020
|
-
const contents = (0, import_smithy_client.map)({
|
|
1021
|
-
$metadata: deserializeMetadata(output)
|
|
1022
|
-
});
|
|
1023
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1024
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1025
|
-
messageId: import_smithy_client.expectString
|
|
1026
|
-
});
|
|
1027
|
-
Object.assign(contents, doc);
|
|
1028
|
-
return contents;
|
|
1029
|
-
}, "de_SendWhatsAppMessageCommand");
|
|
1030
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1031
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1032
|
-
return de_CommandError(output, context);
|
|
1033
|
-
}
|
|
1034
|
-
const contents = (0, import_smithy_client.map)({
|
|
1035
|
-
$metadata: deserializeMetadata(output)
|
|
1036
|
-
});
|
|
1037
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1038
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1039
|
-
statusCode: import_smithy_client.expectInt32
|
|
1040
|
-
});
|
|
1041
|
-
Object.assign(contents, doc);
|
|
1042
|
-
return contents;
|
|
1043
|
-
}, "de_TagResourceCommand");
|
|
1044
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1045
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1046
|
-
return de_CommandError(output, context);
|
|
1047
|
-
}
|
|
1048
|
-
const contents = (0, import_smithy_client.map)({
|
|
1049
|
-
$metadata: deserializeMetadata(output)
|
|
1050
|
-
});
|
|
1051
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1052
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1053
|
-
statusCode: import_smithy_client.expectInt32
|
|
1054
|
-
});
|
|
1055
|
-
Object.assign(contents, doc);
|
|
1056
|
-
return contents;
|
|
1057
|
-
}, "de_UntagResourceCommand");
|
|
1058
|
-
var de_UpdateWhatsAppMessageTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1059
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1060
|
-
return de_CommandError(output, context);
|
|
1061
|
-
}
|
|
1062
|
-
const contents = (0, import_smithy_client.map)({
|
|
1063
|
-
$metadata: deserializeMetadata(output)
|
|
1064
|
-
});
|
|
1065
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1066
|
-
return contents;
|
|
1067
|
-
}, "de_UpdateWhatsAppMessageTemplateCommand");
|
|
1068
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1069
|
-
const parsedOutput = {
|
|
1070
|
-
...output,
|
|
1071
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1072
|
-
};
|
|
1073
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1074
|
-
switch (errorCode) {
|
|
1075
|
-
case "AccessDeniedException":
|
|
1076
|
-
case "com.amazonaws.socialmessaging#AccessDeniedException":
|
|
1077
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1078
|
-
case "DependencyException":
|
|
1079
|
-
case "com.amazonaws.socialmessaging#DependencyException":
|
|
1080
|
-
throw await de_DependencyExceptionRes(parsedOutput, context);
|
|
1081
|
-
case "InvalidParametersException":
|
|
1082
|
-
case "com.amazonaws.socialmessaging#InvalidParametersException":
|
|
1083
|
-
throw await de_InvalidParametersExceptionRes(parsedOutput, context);
|
|
1084
|
-
case "LimitExceededException":
|
|
1085
|
-
case "com.amazonaws.socialmessaging#LimitExceededException":
|
|
1086
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1087
|
-
case "ThrottledRequestException":
|
|
1088
|
-
case "com.amazonaws.socialmessaging#ThrottledRequestException":
|
|
1089
|
-
throw await de_ThrottledRequestExceptionRes(parsedOutput, context);
|
|
1090
|
-
case "ValidationException":
|
|
1091
|
-
case "com.amazonaws.socialmessaging#ValidationException":
|
|
1092
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1093
|
-
case "InternalServiceException":
|
|
1094
|
-
case "com.amazonaws.socialmessaging#InternalServiceException":
|
|
1095
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1096
|
-
case "ResourceNotFoundException":
|
|
1097
|
-
case "com.amazonaws.socialmessaging#ResourceNotFoundException":
|
|
1098
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1099
|
-
case "AccessDeniedByMetaException":
|
|
1100
|
-
case "com.amazonaws.socialmessaging#AccessDeniedByMetaException":
|
|
1101
|
-
throw await de_AccessDeniedByMetaExceptionRes(parsedOutput, context);
|
|
1102
|
-
default:
|
|
1103
|
-
const parsedBody = parsedOutput.body;
|
|
1104
|
-
return throwDefaultError({
|
|
1105
|
-
output,
|
|
1106
|
-
parsedBody,
|
|
1107
|
-
errorCode
|
|
1108
|
-
});
|
|
1109
|
-
}
|
|
1110
|
-
}, "de_CommandError");
|
|
1111
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(SocialMessagingServiceException);
|
|
1112
|
-
var de_AccessDeniedByMetaExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1113
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1114
|
-
const data = parsedOutput.body;
|
|
1115
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1116
|
-
message: import_smithy_client.expectString
|
|
1117
|
-
});
|
|
1118
|
-
Object.assign(contents, doc);
|
|
1119
|
-
const exception = new AccessDeniedByMetaException({
|
|
1120
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1121
|
-
...contents
|
|
1122
|
-
});
|
|
1123
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1124
|
-
}, "de_AccessDeniedByMetaExceptionRes");
|
|
1125
|
-
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1126
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1127
|
-
const data = parsedOutput.body;
|
|
1128
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1129
|
-
message: import_smithy_client.expectString
|
|
1130
|
-
});
|
|
1131
|
-
Object.assign(contents, doc);
|
|
1132
|
-
const exception = new AccessDeniedException({
|
|
1133
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1134
|
-
...contents
|
|
1135
|
-
});
|
|
1136
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1137
|
-
}, "de_AccessDeniedExceptionRes");
|
|
1138
|
-
var de_DependencyExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1139
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1140
|
-
const data = parsedOutput.body;
|
|
1141
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1142
|
-
message: import_smithy_client.expectString
|
|
1143
|
-
});
|
|
1144
|
-
Object.assign(contents, doc);
|
|
1145
|
-
const exception = new DependencyException({
|
|
1146
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1147
|
-
...contents
|
|
1148
|
-
});
|
|
1149
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1150
|
-
}, "de_DependencyExceptionRes");
|
|
1151
|
-
var de_InternalServiceExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1152
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1153
|
-
const data = parsedOutput.body;
|
|
1154
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1155
|
-
message: import_smithy_client.expectString
|
|
1156
|
-
});
|
|
1157
|
-
Object.assign(contents, doc);
|
|
1158
|
-
const exception = new InternalServiceException({
|
|
1159
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1160
|
-
...contents
|
|
1161
|
-
});
|
|
1162
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1163
|
-
}, "de_InternalServiceExceptionRes");
|
|
1164
|
-
var de_InvalidParametersExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1165
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1166
|
-
const data = parsedOutput.body;
|
|
1167
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1168
|
-
message: import_smithy_client.expectString
|
|
1169
|
-
});
|
|
1170
|
-
Object.assign(contents, doc);
|
|
1171
|
-
const exception = new InvalidParametersException({
|
|
1172
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1173
|
-
...contents
|
|
1174
|
-
});
|
|
1175
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1176
|
-
}, "de_InvalidParametersExceptionRes");
|
|
1177
|
-
var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1178
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1179
|
-
const data = parsedOutput.body;
|
|
1180
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1181
|
-
message: import_smithy_client.expectString
|
|
1182
|
-
});
|
|
1183
|
-
Object.assign(contents, doc);
|
|
1184
|
-
const exception = new LimitExceededException({
|
|
1185
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1186
|
-
...contents
|
|
1187
|
-
});
|
|
1188
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1189
|
-
}, "de_LimitExceededExceptionRes");
|
|
1190
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1191
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1192
|
-
const data = parsedOutput.body;
|
|
1193
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1194
|
-
message: import_smithy_client.expectString
|
|
1195
|
-
});
|
|
1196
|
-
Object.assign(contents, doc);
|
|
1197
|
-
const exception = new ResourceNotFoundException({
|
|
1198
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1199
|
-
...contents
|
|
1200
|
-
});
|
|
1201
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1202
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
1203
|
-
var de_ThrottledRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1204
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1205
|
-
const data = parsedOutput.body;
|
|
1206
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1207
|
-
message: import_smithy_client.expectString
|
|
1208
|
-
});
|
|
1209
|
-
Object.assign(contents, doc);
|
|
1210
|
-
const exception = new ThrottledRequestException({
|
|
1211
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1212
|
-
...contents
|
|
1213
|
-
});
|
|
1214
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1215
|
-
}, "de_ThrottledRequestExceptionRes");
|
|
1216
|
-
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1217
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1218
|
-
const data = parsedOutput.body;
|
|
1219
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1220
|
-
message: import_smithy_client.expectString
|
|
1221
|
-
});
|
|
1222
|
-
Object.assign(contents, doc);
|
|
1223
|
-
const exception = new ValidationException({
|
|
1224
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1225
|
-
...contents
|
|
1226
|
-
});
|
|
1227
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1228
|
-
}, "de_ValidationExceptionRes");
|
|
1229
|
-
var de_LinkedWhatsAppBusinessAccount = /* @__PURE__ */ __name((output, context) => {
|
|
1230
|
-
return (0, import_smithy_client.take)(output, {
|
|
1231
|
-
arn: import_smithy_client.expectString,
|
|
1232
|
-
eventDestinations: import_smithy_client._json,
|
|
1233
|
-
id: import_smithy_client.expectString,
|
|
1234
|
-
linkDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "linkDate"),
|
|
1235
|
-
phoneNumbers: import_smithy_client._json,
|
|
1236
|
-
registrationStatus: import_smithy_client.expectString,
|
|
1237
|
-
wabaId: import_smithy_client.expectString,
|
|
1238
|
-
wabaName: import_smithy_client.expectString
|
|
1239
|
-
});
|
|
1240
|
-
}, "de_LinkedWhatsAppBusinessAccount");
|
|
1241
|
-
var de_LinkedWhatsAppBusinessAccountSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1242
|
-
return (0, import_smithy_client.take)(output, {
|
|
1243
|
-
arn: import_smithy_client.expectString,
|
|
1244
|
-
eventDestinations: import_smithy_client._json,
|
|
1245
|
-
id: import_smithy_client.expectString,
|
|
1246
|
-
linkDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "linkDate"),
|
|
1247
|
-
registrationStatus: import_smithy_client.expectString,
|
|
1248
|
-
wabaId: import_smithy_client.expectString,
|
|
1249
|
-
wabaName: import_smithy_client.expectString
|
|
1250
|
-
});
|
|
1251
|
-
}, "de_LinkedWhatsAppBusinessAccountSummary");
|
|
1252
|
-
var de_LinkedWhatsAppBusinessAccountSummaryList = /* @__PURE__ */ __name((output, context) => {
|
|
1253
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1254
|
-
return de_LinkedWhatsAppBusinessAccountSummary(entry, context);
|
|
1255
|
-
});
|
|
1256
|
-
return retVal;
|
|
1257
|
-
}, "de_LinkedWhatsAppBusinessAccountSummaryList");
|
|
1258
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1259
|
-
httpStatusCode: output.statusCode,
|
|
1260
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1261
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1262
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
1263
|
-
}), "deserializeMetadata");
|
|
1264
|
-
var _dAL = "deleteAllLanguages";
|
|
1265
|
-
var _dAT = "deleteAllTemplates";
|
|
1266
|
-
var _i = "id";
|
|
1267
|
-
var _mI = "mediaId";
|
|
1268
|
-
var _mR = "maxResults";
|
|
1269
|
-
var _mTI = "metaTemplateId";
|
|
1270
|
-
var _nT = "nextToken";
|
|
1271
|
-
var _oPNI = "originationPhoneNumberId";
|
|
1272
|
-
var _rA = "resourceArn";
|
|
1273
|
-
var _tN = "templateName";
|
|
1274
|
-
|
|
1275
|
-
// src/commands/AssociateWhatsAppBusinessAccountCommand.ts
|
|
1276
|
-
var AssociateWhatsAppBusinessAccountCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1277
|
-
return [
|
|
1278
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1279
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1280
|
-
];
|
|
1281
|
-
}).s("SocialMessaging", "AssociateWhatsAppBusinessAccount", {}).n("SocialMessagingClient", "AssociateWhatsAppBusinessAccountCommand").f(AssociateWhatsAppBusinessAccountInputFilterSensitiveLog, AssociateWhatsAppBusinessAccountOutputFilterSensitiveLog).ser(se_AssociateWhatsAppBusinessAccountCommand).de(de_AssociateWhatsAppBusinessAccountCommand).build() {
|
|
1282
|
-
static {
|
|
1283
|
-
__name(this, "AssociateWhatsAppBusinessAccountCommand");
|
|
1284
|
-
}
|
|
431
|
+
const se_ListLinkedWhatsAppBusinessAccountsCommand = async (input, context) => {
|
|
432
|
+
const b = core.requestBuilder(input, context);
|
|
433
|
+
const headers = {};
|
|
434
|
+
b.bp("/v1/whatsapp/waba/list");
|
|
435
|
+
const query = smithyClient.map({
|
|
436
|
+
[_nT]: [, input[_nT]],
|
|
437
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
438
|
+
});
|
|
439
|
+
let body;
|
|
440
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
441
|
+
return b.build();
|
|
1285
442
|
};
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
(
|
|
1295
|
-
|
|
1296
|
-
}).s("SocialMessaging", "CreateWhatsAppMessageTemplate", {}).n("SocialMessagingClient", "CreateWhatsAppMessageTemplateCommand").f(void 0, void 0).ser(se_CreateWhatsAppMessageTemplateCommand).de(de_CreateWhatsAppMessageTemplateCommand).build() {
|
|
1297
|
-
static {
|
|
1298
|
-
__name(this, "CreateWhatsAppMessageTemplateCommand");
|
|
1299
|
-
}
|
|
443
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
444
|
+
const b = core.requestBuilder(input, context);
|
|
445
|
+
const headers = {};
|
|
446
|
+
b.bp("/v1/tags/list");
|
|
447
|
+
const query = smithyClient.map({
|
|
448
|
+
[_rA]: [, smithyClient.expectNonNull(input[_rA], `resourceArn`)],
|
|
449
|
+
});
|
|
450
|
+
let body;
|
|
451
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
452
|
+
return b.build();
|
|
1300
453
|
};
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
__name(this, "CreateWhatsAppMessageTemplateFromLibraryCommand");
|
|
1314
|
-
}
|
|
454
|
+
const se_ListWhatsAppMessageTemplatesCommand = async (input, context) => {
|
|
455
|
+
const b = core.requestBuilder(input, context);
|
|
456
|
+
const headers = {};
|
|
457
|
+
b.bp("/v1/whatsapp/template/list");
|
|
458
|
+
const query = smithyClient.map({
|
|
459
|
+
[_i]: [, smithyClient.expectNonNull(input[_i], `id`)],
|
|
460
|
+
[_nT]: [, input[_nT]],
|
|
461
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
462
|
+
});
|
|
463
|
+
let body;
|
|
464
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
465
|
+
return b.build();
|
|
1315
466
|
};
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
467
|
+
const se_ListWhatsAppTemplateLibraryCommand = async (input, context) => {
|
|
468
|
+
const b = core.requestBuilder(input, context);
|
|
469
|
+
const headers = {
|
|
470
|
+
"content-type": "application/json",
|
|
471
|
+
};
|
|
472
|
+
b.bp("/v1/whatsapp/template/library");
|
|
473
|
+
const query = smithyClient.map({
|
|
474
|
+
[_i]: [, smithyClient.expectNonNull(input[_i], `id`)],
|
|
475
|
+
});
|
|
476
|
+
let body;
|
|
477
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
478
|
+
filters: (_) => smithyClient._json(_),
|
|
479
|
+
maxResults: [],
|
|
480
|
+
nextToken: [],
|
|
481
|
+
}));
|
|
482
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
483
|
+
return b.build();
|
|
1330
484
|
};
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
485
|
+
const se_PostWhatsAppMessageMediaCommand = async (input, context) => {
|
|
486
|
+
const b = core.requestBuilder(input, context);
|
|
487
|
+
const headers = {
|
|
488
|
+
"content-type": "application/json",
|
|
489
|
+
};
|
|
490
|
+
b.bp("/v1/whatsapp/media");
|
|
491
|
+
let body;
|
|
492
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
493
|
+
originationPhoneNumberId: [],
|
|
494
|
+
sourceS3File: (_) => smithyClient._json(_),
|
|
495
|
+
sourceS3PresignedUrl: (_) => smithyClient._json(_),
|
|
496
|
+
}));
|
|
497
|
+
b.m("POST").h(headers).b(body);
|
|
498
|
+
return b.build();
|
|
1345
499
|
};
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
})
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
}
|
|
500
|
+
const se_PutWhatsAppBusinessAccountEventDestinationsCommand = async (input, context) => {
|
|
501
|
+
const b = core.requestBuilder(input, context);
|
|
502
|
+
const headers = {
|
|
503
|
+
"content-type": "application/json",
|
|
504
|
+
};
|
|
505
|
+
b.bp("/v1/whatsapp/waba/eventdestinations");
|
|
506
|
+
let body;
|
|
507
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
508
|
+
eventDestinations: (_) => smithyClient._json(_),
|
|
509
|
+
id: [],
|
|
510
|
+
}));
|
|
511
|
+
b.m("PUT").h(headers).b(body);
|
|
512
|
+
return b.build();
|
|
1360
513
|
};
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
514
|
+
const se_SendWhatsAppMessageCommand = async (input, context) => {
|
|
515
|
+
const b = core.requestBuilder(input, context);
|
|
516
|
+
const headers = {
|
|
517
|
+
"content-type": "application/json",
|
|
518
|
+
};
|
|
519
|
+
b.bp("/v1/whatsapp/send");
|
|
520
|
+
let body;
|
|
521
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
522
|
+
message: (_) => context.base64Encoder(_),
|
|
523
|
+
metaApiVersion: [],
|
|
524
|
+
originationPhoneNumberId: [],
|
|
525
|
+
}));
|
|
526
|
+
b.m("POST").h(headers).b(body);
|
|
527
|
+
return b.build();
|
|
1375
528
|
};
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
})
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
}
|
|
529
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
530
|
+
const b = core.requestBuilder(input, context);
|
|
531
|
+
const headers = {
|
|
532
|
+
"content-type": "application/json",
|
|
533
|
+
};
|
|
534
|
+
b.bp("/v1/tags/tag-resource");
|
|
535
|
+
let body;
|
|
536
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
537
|
+
resourceArn: [],
|
|
538
|
+
tags: (_) => smithyClient._json(_),
|
|
539
|
+
}));
|
|
540
|
+
b.m("POST").h(headers).b(body);
|
|
541
|
+
return b.build();
|
|
1390
542
|
};
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
})
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
}
|
|
543
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
544
|
+
const b = core.requestBuilder(input, context);
|
|
545
|
+
const headers = {
|
|
546
|
+
"content-type": "application/json",
|
|
547
|
+
};
|
|
548
|
+
b.bp("/v1/tags/untag-resource");
|
|
549
|
+
let body;
|
|
550
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
551
|
+
resourceArn: [],
|
|
552
|
+
tagKeys: (_) => smithyClient._json(_),
|
|
553
|
+
}));
|
|
554
|
+
b.m("POST").h(headers).b(body);
|
|
555
|
+
return b.build();
|
|
1405
556
|
};
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
557
|
+
const se_UpdateWhatsAppMessageTemplateCommand = async (input, context) => {
|
|
558
|
+
const b = core.requestBuilder(input, context);
|
|
559
|
+
const headers = {
|
|
560
|
+
"content-type": "application/json",
|
|
561
|
+
};
|
|
562
|
+
b.bp("/v1/whatsapp/template");
|
|
563
|
+
let body;
|
|
564
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
565
|
+
id: [],
|
|
566
|
+
metaTemplateId: [],
|
|
567
|
+
templateCategory: [],
|
|
568
|
+
templateComponents: (_) => context.base64Encoder(_),
|
|
569
|
+
}));
|
|
570
|
+
b.m("POST").h(headers).b(body);
|
|
571
|
+
return b.build();
|
|
1420
572
|
};
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
(
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
573
|
+
const de_AssociateWhatsAppBusinessAccountCommand = async (output, context) => {
|
|
574
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
575
|
+
return de_CommandError(output, context);
|
|
576
|
+
}
|
|
577
|
+
const contents = smithyClient.map({
|
|
578
|
+
$metadata: deserializeMetadata(output),
|
|
579
|
+
});
|
|
580
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
581
|
+
const doc = smithyClient.take(data, {
|
|
582
|
+
signupCallbackResult: smithyClient._json,
|
|
583
|
+
statusCode: smithyClient.expectInt32,
|
|
584
|
+
});
|
|
585
|
+
Object.assign(contents, doc);
|
|
586
|
+
return contents;
|
|
1435
587
|
};
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
(
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
588
|
+
const de_CreateWhatsAppMessageTemplateCommand = async (output, context) => {
|
|
589
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
590
|
+
return de_CommandError(output, context);
|
|
591
|
+
}
|
|
592
|
+
const contents = smithyClient.map({
|
|
593
|
+
$metadata: deserializeMetadata(output),
|
|
594
|
+
});
|
|
595
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
596
|
+
const doc = smithyClient.take(data, {
|
|
597
|
+
category: smithyClient.expectString,
|
|
598
|
+
metaTemplateId: smithyClient.expectString,
|
|
599
|
+
templateStatus: smithyClient.expectString,
|
|
600
|
+
});
|
|
601
|
+
Object.assign(contents, doc);
|
|
602
|
+
return contents;
|
|
1450
603
|
};
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
(
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
604
|
+
const de_CreateWhatsAppMessageTemplateFromLibraryCommand = async (output, context) => {
|
|
605
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
606
|
+
return de_CommandError(output, context);
|
|
607
|
+
}
|
|
608
|
+
const contents = smithyClient.map({
|
|
609
|
+
$metadata: deserializeMetadata(output),
|
|
610
|
+
});
|
|
611
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
612
|
+
const doc = smithyClient.take(data, {
|
|
613
|
+
category: smithyClient.expectString,
|
|
614
|
+
metaTemplateId: smithyClient.expectString,
|
|
615
|
+
templateStatus: smithyClient.expectString,
|
|
616
|
+
});
|
|
617
|
+
Object.assign(contents, doc);
|
|
618
|
+
return contents;
|
|
1465
619
|
};
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
(
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
})
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
}
|
|
620
|
+
const de_CreateWhatsAppMessageTemplateMediaCommand = async (output, context) => {
|
|
621
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
622
|
+
return de_CommandError(output, context);
|
|
623
|
+
}
|
|
624
|
+
const contents = smithyClient.map({
|
|
625
|
+
$metadata: deserializeMetadata(output),
|
|
626
|
+
});
|
|
627
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
628
|
+
const doc = smithyClient.take(data, {
|
|
629
|
+
metaHeaderHandle: smithyClient.expectString,
|
|
630
|
+
});
|
|
631
|
+
Object.assign(contents, doc);
|
|
632
|
+
return contents;
|
|
1480
633
|
};
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
(
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
})
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
}
|
|
634
|
+
const de_DeleteWhatsAppMessageMediaCommand = async (output, context) => {
|
|
635
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
636
|
+
return de_CommandError(output, context);
|
|
637
|
+
}
|
|
638
|
+
const contents = smithyClient.map({
|
|
639
|
+
$metadata: deserializeMetadata(output),
|
|
640
|
+
});
|
|
641
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
642
|
+
const doc = smithyClient.take(data, {
|
|
643
|
+
success: smithyClient.expectBoolean,
|
|
644
|
+
});
|
|
645
|
+
Object.assign(contents, doc);
|
|
646
|
+
return contents;
|
|
1495
647
|
};
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
];
|
|
1506
|
-
}).s("SocialMessaging", "PostWhatsAppMessageMedia", {}).n("SocialMessagingClient", "PostWhatsAppMessageMediaCommand").f(PostWhatsAppMessageMediaInputFilterSensitiveLog, void 0).ser(se_PostWhatsAppMessageMediaCommand).de(de_PostWhatsAppMessageMediaCommand).build() {
|
|
1507
|
-
static {
|
|
1508
|
-
__name(this, "PostWhatsAppMessageMediaCommand");
|
|
1509
|
-
}
|
|
648
|
+
const de_DeleteWhatsAppMessageTemplateCommand = async (output, context) => {
|
|
649
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
650
|
+
return de_CommandError(output, context);
|
|
651
|
+
}
|
|
652
|
+
const contents = smithyClient.map({
|
|
653
|
+
$metadata: deserializeMetadata(output),
|
|
654
|
+
});
|
|
655
|
+
await smithyClient.collectBody(output.body, context);
|
|
656
|
+
return contents;
|
|
1510
657
|
};
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
];
|
|
1521
|
-
}).s("SocialMessaging", "PutWhatsAppBusinessAccountEventDestinations", {}).n("SocialMessagingClient", "PutWhatsAppBusinessAccountEventDestinationsCommand").f(void 0, void 0).ser(se_PutWhatsAppBusinessAccountEventDestinationsCommand).de(de_PutWhatsAppBusinessAccountEventDestinationsCommand).build() {
|
|
1522
|
-
static {
|
|
1523
|
-
__name(this, "PutWhatsAppBusinessAccountEventDestinationsCommand");
|
|
1524
|
-
}
|
|
658
|
+
const de_DisassociateWhatsAppBusinessAccountCommand = async (output, context) => {
|
|
659
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
660
|
+
return de_CommandError(output, context);
|
|
661
|
+
}
|
|
662
|
+
const contents = smithyClient.map({
|
|
663
|
+
$metadata: deserializeMetadata(output),
|
|
664
|
+
});
|
|
665
|
+
await smithyClient.collectBody(output.body, context);
|
|
666
|
+
return contents;
|
|
1525
667
|
};
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
(
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
})
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
}
|
|
668
|
+
const de_GetLinkedWhatsAppBusinessAccountCommand = async (output, context) => {
|
|
669
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
670
|
+
return de_CommandError(output, context);
|
|
671
|
+
}
|
|
672
|
+
const contents = smithyClient.map({
|
|
673
|
+
$metadata: deserializeMetadata(output),
|
|
674
|
+
});
|
|
675
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
676
|
+
const doc = smithyClient.take(data, {
|
|
677
|
+
account: (_) => de_LinkedWhatsAppBusinessAccount(_),
|
|
678
|
+
});
|
|
679
|
+
Object.assign(contents, doc);
|
|
680
|
+
return contents;
|
|
1540
681
|
};
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
(
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
682
|
+
const de_GetLinkedWhatsAppBusinessAccountPhoneNumberCommand = async (output, context) => {
|
|
683
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
684
|
+
return de_CommandError(output, context);
|
|
685
|
+
}
|
|
686
|
+
const contents = smithyClient.map({
|
|
687
|
+
$metadata: deserializeMetadata(output),
|
|
688
|
+
});
|
|
689
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
690
|
+
const doc = smithyClient.take(data, {
|
|
691
|
+
linkedWhatsAppBusinessAccountId: smithyClient.expectString,
|
|
692
|
+
phoneNumber: smithyClient._json,
|
|
693
|
+
});
|
|
694
|
+
Object.assign(contents, doc);
|
|
695
|
+
return contents;
|
|
1555
696
|
};
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
(
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
697
|
+
const de_GetWhatsAppMessageMediaCommand = async (output, context) => {
|
|
698
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
699
|
+
return de_CommandError(output, context);
|
|
700
|
+
}
|
|
701
|
+
const contents = smithyClient.map({
|
|
702
|
+
$metadata: deserializeMetadata(output),
|
|
703
|
+
});
|
|
704
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
705
|
+
const doc = smithyClient.take(data, {
|
|
706
|
+
fileSize: smithyClient.expectLong,
|
|
707
|
+
mimeType: smithyClient.expectString,
|
|
708
|
+
});
|
|
709
|
+
Object.assign(contents, doc);
|
|
710
|
+
return contents;
|
|
1570
711
|
};
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
(
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
})
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
}
|
|
712
|
+
const de_GetWhatsAppMessageTemplateCommand = async (output, context) => {
|
|
713
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
714
|
+
return de_CommandError(output, context);
|
|
715
|
+
}
|
|
716
|
+
const contents = smithyClient.map({
|
|
717
|
+
$metadata: deserializeMetadata(output),
|
|
718
|
+
});
|
|
719
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
720
|
+
const doc = smithyClient.take(data, {
|
|
721
|
+
template: smithyClient.expectString,
|
|
722
|
+
});
|
|
723
|
+
Object.assign(contents, doc);
|
|
724
|
+
return contents;
|
|
1585
725
|
};
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
ListLinkedWhatsAppBusinessAccountsCommand,
|
|
1601
|
-
ListTagsForResourceCommand,
|
|
1602
|
-
ListWhatsAppMessageTemplatesCommand,
|
|
1603
|
-
ListWhatsAppTemplateLibraryCommand,
|
|
1604
|
-
PostWhatsAppMessageMediaCommand,
|
|
1605
|
-
PutWhatsAppBusinessAccountEventDestinationsCommand,
|
|
1606
|
-
SendWhatsAppMessageCommand,
|
|
1607
|
-
TagResourceCommand,
|
|
1608
|
-
UntagResourceCommand,
|
|
1609
|
-
UpdateWhatsAppMessageTemplateCommand
|
|
726
|
+
const de_ListLinkedWhatsAppBusinessAccountsCommand = async (output, context) => {
|
|
727
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
728
|
+
return de_CommandError(output, context);
|
|
729
|
+
}
|
|
730
|
+
const contents = smithyClient.map({
|
|
731
|
+
$metadata: deserializeMetadata(output),
|
|
732
|
+
});
|
|
733
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
734
|
+
const doc = smithyClient.take(data, {
|
|
735
|
+
linkedAccounts: (_) => de_LinkedWhatsAppBusinessAccountSummaryList(_),
|
|
736
|
+
nextToken: smithyClient.expectString,
|
|
737
|
+
});
|
|
738
|
+
Object.assign(contents, doc);
|
|
739
|
+
return contents;
|
|
1610
740
|
};
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
741
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
742
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
743
|
+
return de_CommandError(output, context);
|
|
744
|
+
}
|
|
745
|
+
const contents = smithyClient.map({
|
|
746
|
+
$metadata: deserializeMetadata(output),
|
|
747
|
+
});
|
|
748
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
749
|
+
const doc = smithyClient.take(data, {
|
|
750
|
+
statusCode: smithyClient.expectInt32,
|
|
751
|
+
tags: smithyClient._json,
|
|
752
|
+
});
|
|
753
|
+
Object.assign(contents, doc);
|
|
754
|
+
return contents;
|
|
1615
755
|
};
|
|
1616
|
-
(
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
756
|
+
const de_ListWhatsAppMessageTemplatesCommand = async (output, context) => {
|
|
757
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
758
|
+
return de_CommandError(output, context);
|
|
759
|
+
}
|
|
760
|
+
const contents = smithyClient.map({
|
|
761
|
+
$metadata: deserializeMetadata(output),
|
|
762
|
+
});
|
|
763
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
764
|
+
const doc = smithyClient.take(data, {
|
|
765
|
+
nextToken: smithyClient.expectString,
|
|
766
|
+
templates: smithyClient._json,
|
|
767
|
+
});
|
|
768
|
+
Object.assign(contents, doc);
|
|
769
|
+
return contents;
|
|
770
|
+
};
|
|
771
|
+
const de_ListWhatsAppTemplateLibraryCommand = async (output, context) => {
|
|
772
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
773
|
+
return de_CommandError(output, context);
|
|
774
|
+
}
|
|
775
|
+
const contents = smithyClient.map({
|
|
776
|
+
$metadata: deserializeMetadata(output),
|
|
777
|
+
});
|
|
778
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
779
|
+
const doc = smithyClient.take(data, {
|
|
780
|
+
metaLibraryTemplates: smithyClient._json,
|
|
781
|
+
nextToken: smithyClient.expectString,
|
|
782
|
+
});
|
|
783
|
+
Object.assign(contents, doc);
|
|
784
|
+
return contents;
|
|
785
|
+
};
|
|
786
|
+
const de_PostWhatsAppMessageMediaCommand = async (output, context) => {
|
|
787
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
788
|
+
return de_CommandError(output, context);
|
|
789
|
+
}
|
|
790
|
+
const contents = smithyClient.map({
|
|
791
|
+
$metadata: deserializeMetadata(output),
|
|
792
|
+
});
|
|
793
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
794
|
+
const doc = smithyClient.take(data, {
|
|
795
|
+
mediaId: smithyClient.expectString,
|
|
796
|
+
});
|
|
797
|
+
Object.assign(contents, doc);
|
|
798
|
+
return contents;
|
|
799
|
+
};
|
|
800
|
+
const de_PutWhatsAppBusinessAccountEventDestinationsCommand = async (output, context) => {
|
|
801
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
802
|
+
return de_CommandError(output, context);
|
|
803
|
+
}
|
|
804
|
+
const contents = smithyClient.map({
|
|
805
|
+
$metadata: deserializeMetadata(output),
|
|
806
|
+
});
|
|
807
|
+
await smithyClient.collectBody(output.body, context);
|
|
808
|
+
return contents;
|
|
809
|
+
};
|
|
810
|
+
const de_SendWhatsAppMessageCommand = async (output, context) => {
|
|
811
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
812
|
+
return de_CommandError(output, context);
|
|
813
|
+
}
|
|
814
|
+
const contents = smithyClient.map({
|
|
815
|
+
$metadata: deserializeMetadata(output),
|
|
816
|
+
});
|
|
817
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
818
|
+
const doc = smithyClient.take(data, {
|
|
819
|
+
messageId: smithyClient.expectString,
|
|
820
|
+
});
|
|
821
|
+
Object.assign(contents, doc);
|
|
822
|
+
return contents;
|
|
823
|
+
};
|
|
824
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
825
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
826
|
+
return de_CommandError(output, context);
|
|
827
|
+
}
|
|
828
|
+
const contents = smithyClient.map({
|
|
829
|
+
$metadata: deserializeMetadata(output),
|
|
830
|
+
});
|
|
831
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
832
|
+
const doc = smithyClient.take(data, {
|
|
833
|
+
statusCode: smithyClient.expectInt32,
|
|
834
|
+
});
|
|
835
|
+
Object.assign(contents, doc);
|
|
836
|
+
return contents;
|
|
837
|
+
};
|
|
838
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
839
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
840
|
+
return de_CommandError(output, context);
|
|
841
|
+
}
|
|
842
|
+
const contents = smithyClient.map({
|
|
843
|
+
$metadata: deserializeMetadata(output),
|
|
844
|
+
});
|
|
845
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
846
|
+
const doc = smithyClient.take(data, {
|
|
847
|
+
statusCode: smithyClient.expectInt32,
|
|
848
|
+
});
|
|
849
|
+
Object.assign(contents, doc);
|
|
850
|
+
return contents;
|
|
851
|
+
};
|
|
852
|
+
const de_UpdateWhatsAppMessageTemplateCommand = async (output, context) => {
|
|
853
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
854
|
+
return de_CommandError(output, context);
|
|
855
|
+
}
|
|
856
|
+
const contents = smithyClient.map({
|
|
857
|
+
$metadata: deserializeMetadata(output),
|
|
858
|
+
});
|
|
859
|
+
await smithyClient.collectBody(output.body, context);
|
|
860
|
+
return contents;
|
|
861
|
+
};
|
|
862
|
+
const de_CommandError = async (output, context) => {
|
|
863
|
+
const parsedOutput = {
|
|
864
|
+
...output,
|
|
865
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
866
|
+
};
|
|
867
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
868
|
+
switch (errorCode) {
|
|
869
|
+
case "AccessDeniedException":
|
|
870
|
+
case "com.amazonaws.socialmessaging#AccessDeniedException":
|
|
871
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
872
|
+
case "DependencyException":
|
|
873
|
+
case "com.amazonaws.socialmessaging#DependencyException":
|
|
874
|
+
throw await de_DependencyExceptionRes(parsedOutput);
|
|
875
|
+
case "InvalidParametersException":
|
|
876
|
+
case "com.amazonaws.socialmessaging#InvalidParametersException":
|
|
877
|
+
throw await de_InvalidParametersExceptionRes(parsedOutput);
|
|
878
|
+
case "LimitExceededException":
|
|
879
|
+
case "com.amazonaws.socialmessaging#LimitExceededException":
|
|
880
|
+
throw await de_LimitExceededExceptionRes(parsedOutput);
|
|
881
|
+
case "ThrottledRequestException":
|
|
882
|
+
case "com.amazonaws.socialmessaging#ThrottledRequestException":
|
|
883
|
+
throw await de_ThrottledRequestExceptionRes(parsedOutput);
|
|
884
|
+
case "ValidationException":
|
|
885
|
+
case "com.amazonaws.socialmessaging#ValidationException":
|
|
886
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
887
|
+
case "InternalServiceException":
|
|
888
|
+
case "com.amazonaws.socialmessaging#InternalServiceException":
|
|
889
|
+
throw await de_InternalServiceExceptionRes(parsedOutput);
|
|
890
|
+
case "ResourceNotFoundException":
|
|
891
|
+
case "com.amazonaws.socialmessaging#ResourceNotFoundException":
|
|
892
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
893
|
+
case "AccessDeniedByMetaException":
|
|
894
|
+
case "com.amazonaws.socialmessaging#AccessDeniedByMetaException":
|
|
895
|
+
throw await de_AccessDeniedByMetaExceptionRes(parsedOutput);
|
|
896
|
+
default:
|
|
897
|
+
const parsedBody = parsedOutput.body;
|
|
898
|
+
return throwDefaultError({
|
|
899
|
+
output,
|
|
900
|
+
parsedBody,
|
|
901
|
+
errorCode,
|
|
902
|
+
});
|
|
903
|
+
}
|
|
904
|
+
};
|
|
905
|
+
const throwDefaultError = smithyClient.withBaseException(SocialMessagingServiceException);
|
|
906
|
+
const de_AccessDeniedByMetaExceptionRes = async (parsedOutput, context) => {
|
|
907
|
+
const contents = smithyClient.map({});
|
|
908
|
+
const data = parsedOutput.body;
|
|
909
|
+
const doc = smithyClient.take(data, {
|
|
910
|
+
message: smithyClient.expectString,
|
|
911
|
+
});
|
|
912
|
+
Object.assign(contents, doc);
|
|
913
|
+
const exception = new AccessDeniedByMetaException({
|
|
914
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
915
|
+
...contents,
|
|
916
|
+
});
|
|
917
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
918
|
+
};
|
|
919
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
920
|
+
const contents = smithyClient.map({});
|
|
921
|
+
const data = parsedOutput.body;
|
|
922
|
+
const doc = smithyClient.take(data, {
|
|
923
|
+
message: smithyClient.expectString,
|
|
924
|
+
});
|
|
925
|
+
Object.assign(contents, doc);
|
|
926
|
+
const exception = new AccessDeniedException({
|
|
927
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
928
|
+
...contents,
|
|
929
|
+
});
|
|
930
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
931
|
+
};
|
|
932
|
+
const de_DependencyExceptionRes = async (parsedOutput, context) => {
|
|
933
|
+
const contents = smithyClient.map({});
|
|
934
|
+
const data = parsedOutput.body;
|
|
935
|
+
const doc = smithyClient.take(data, {
|
|
936
|
+
message: smithyClient.expectString,
|
|
937
|
+
});
|
|
938
|
+
Object.assign(contents, doc);
|
|
939
|
+
const exception = new DependencyException({
|
|
940
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
941
|
+
...contents,
|
|
942
|
+
});
|
|
943
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
944
|
+
};
|
|
945
|
+
const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
|
|
946
|
+
const contents = smithyClient.map({});
|
|
947
|
+
const data = parsedOutput.body;
|
|
948
|
+
const doc = smithyClient.take(data, {
|
|
949
|
+
message: smithyClient.expectString,
|
|
950
|
+
});
|
|
951
|
+
Object.assign(contents, doc);
|
|
952
|
+
const exception = new InternalServiceException({
|
|
953
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
954
|
+
...contents,
|
|
955
|
+
});
|
|
956
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
957
|
+
};
|
|
958
|
+
const de_InvalidParametersExceptionRes = async (parsedOutput, context) => {
|
|
959
|
+
const contents = smithyClient.map({});
|
|
960
|
+
const data = parsedOutput.body;
|
|
961
|
+
const doc = smithyClient.take(data, {
|
|
962
|
+
message: smithyClient.expectString,
|
|
963
|
+
});
|
|
964
|
+
Object.assign(contents, doc);
|
|
965
|
+
const exception = new InvalidParametersException({
|
|
966
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
967
|
+
...contents,
|
|
968
|
+
});
|
|
969
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
970
|
+
};
|
|
971
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
972
|
+
const contents = smithyClient.map({});
|
|
973
|
+
const data = parsedOutput.body;
|
|
974
|
+
const doc = smithyClient.take(data, {
|
|
975
|
+
message: smithyClient.expectString,
|
|
976
|
+
});
|
|
977
|
+
Object.assign(contents, doc);
|
|
978
|
+
const exception = new LimitExceededException({
|
|
979
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
980
|
+
...contents,
|
|
981
|
+
});
|
|
982
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
983
|
+
};
|
|
984
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
985
|
+
const contents = smithyClient.map({});
|
|
986
|
+
const data = parsedOutput.body;
|
|
987
|
+
const doc = smithyClient.take(data, {
|
|
988
|
+
message: smithyClient.expectString,
|
|
989
|
+
});
|
|
990
|
+
Object.assign(contents, doc);
|
|
991
|
+
const exception = new ResourceNotFoundException({
|
|
992
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
993
|
+
...contents,
|
|
994
|
+
});
|
|
995
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
996
|
+
};
|
|
997
|
+
const de_ThrottledRequestExceptionRes = async (parsedOutput, context) => {
|
|
998
|
+
const contents = smithyClient.map({});
|
|
999
|
+
const data = parsedOutput.body;
|
|
1000
|
+
const doc = smithyClient.take(data, {
|
|
1001
|
+
message: smithyClient.expectString,
|
|
1002
|
+
});
|
|
1003
|
+
Object.assign(contents, doc);
|
|
1004
|
+
const exception = new ThrottledRequestException({
|
|
1005
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1006
|
+
...contents,
|
|
1007
|
+
});
|
|
1008
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1009
|
+
};
|
|
1010
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1011
|
+
const contents = smithyClient.map({});
|
|
1012
|
+
const data = parsedOutput.body;
|
|
1013
|
+
const doc = smithyClient.take(data, {
|
|
1014
|
+
message: smithyClient.expectString,
|
|
1015
|
+
});
|
|
1016
|
+
Object.assign(contents, doc);
|
|
1017
|
+
const exception = new ValidationException({
|
|
1018
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1019
|
+
...contents,
|
|
1020
|
+
});
|
|
1021
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1022
|
+
};
|
|
1023
|
+
const de_LinkedWhatsAppBusinessAccount = (output, context) => {
|
|
1024
|
+
return smithyClient.take(output, {
|
|
1025
|
+
arn: smithyClient.expectString,
|
|
1026
|
+
eventDestinations: smithyClient._json,
|
|
1027
|
+
id: smithyClient.expectString,
|
|
1028
|
+
linkDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1029
|
+
phoneNumbers: smithyClient._json,
|
|
1030
|
+
registrationStatus: smithyClient.expectString,
|
|
1031
|
+
wabaId: smithyClient.expectString,
|
|
1032
|
+
wabaName: smithyClient.expectString,
|
|
1033
|
+
});
|
|
1034
|
+
};
|
|
1035
|
+
const de_LinkedWhatsAppBusinessAccountSummary = (output, context) => {
|
|
1036
|
+
return smithyClient.take(output, {
|
|
1037
|
+
arn: smithyClient.expectString,
|
|
1038
|
+
eventDestinations: smithyClient._json,
|
|
1039
|
+
id: smithyClient.expectString,
|
|
1040
|
+
linkDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1041
|
+
registrationStatus: smithyClient.expectString,
|
|
1042
|
+
wabaId: smithyClient.expectString,
|
|
1043
|
+
wabaName: smithyClient.expectString,
|
|
1044
|
+
});
|
|
1045
|
+
};
|
|
1046
|
+
const de_LinkedWhatsAppBusinessAccountSummaryList = (output, context) => {
|
|
1047
|
+
const retVal = (output || [])
|
|
1048
|
+
.filter((e) => e != null)
|
|
1049
|
+
.map((entry) => {
|
|
1050
|
+
return de_LinkedWhatsAppBusinessAccountSummary(entry);
|
|
1051
|
+
});
|
|
1052
|
+
return retVal;
|
|
1053
|
+
};
|
|
1054
|
+
const deserializeMetadata = (output) => ({
|
|
1055
|
+
httpStatusCode: output.statusCode,
|
|
1056
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1057
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1058
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1059
|
+
});
|
|
1060
|
+
const _dAL = "deleteAllLanguages";
|
|
1061
|
+
const _dAT = "deleteAllTemplates";
|
|
1062
|
+
const _i = "id";
|
|
1063
|
+
const _mI = "mediaId";
|
|
1064
|
+
const _mR = "maxResults";
|
|
1065
|
+
const _mTI = "metaTemplateId";
|
|
1066
|
+
const _nT = "nextToken";
|
|
1067
|
+
const _oPNI = "originationPhoneNumberId";
|
|
1068
|
+
const _rA = "resourceArn";
|
|
1069
|
+
const _tN = "templateName";
|
|
1070
|
+
|
|
1071
|
+
class AssociateWhatsAppBusinessAccountCommand extends smithyClient.Command
|
|
1072
|
+
.classBuilder()
|
|
1073
|
+
.ep(commonParams)
|
|
1074
|
+
.m(function (Command, cs, config, o) {
|
|
1075
|
+
return [
|
|
1076
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1077
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1078
|
+
];
|
|
1079
|
+
})
|
|
1080
|
+
.s("SocialMessaging", "AssociateWhatsAppBusinessAccount", {})
|
|
1081
|
+
.n("SocialMessagingClient", "AssociateWhatsAppBusinessAccountCommand")
|
|
1082
|
+
.f(AssociateWhatsAppBusinessAccountInputFilterSensitiveLog, AssociateWhatsAppBusinessAccountOutputFilterSensitiveLog)
|
|
1083
|
+
.ser(se_AssociateWhatsAppBusinessAccountCommand)
|
|
1084
|
+
.de(de_AssociateWhatsAppBusinessAccountCommand)
|
|
1085
|
+
.build() {
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
class CreateWhatsAppMessageTemplateCommand extends smithyClient.Command
|
|
1089
|
+
.classBuilder()
|
|
1090
|
+
.ep(commonParams)
|
|
1091
|
+
.m(function (Command, cs, config, o) {
|
|
1092
|
+
return [
|
|
1093
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1094
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1095
|
+
];
|
|
1096
|
+
})
|
|
1097
|
+
.s("SocialMessaging", "CreateWhatsAppMessageTemplate", {})
|
|
1098
|
+
.n("SocialMessagingClient", "CreateWhatsAppMessageTemplateCommand")
|
|
1099
|
+
.f(void 0, void 0)
|
|
1100
|
+
.ser(se_CreateWhatsAppMessageTemplateCommand)
|
|
1101
|
+
.de(de_CreateWhatsAppMessageTemplateCommand)
|
|
1102
|
+
.build() {
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
class CreateWhatsAppMessageTemplateFromLibraryCommand extends smithyClient.Command
|
|
1106
|
+
.classBuilder()
|
|
1107
|
+
.ep(commonParams)
|
|
1108
|
+
.m(function (Command, cs, config, o) {
|
|
1109
|
+
return [
|
|
1110
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1111
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1112
|
+
];
|
|
1113
|
+
})
|
|
1114
|
+
.s("SocialMessaging", "CreateWhatsAppMessageTemplateFromLibrary", {})
|
|
1115
|
+
.n("SocialMessagingClient", "CreateWhatsAppMessageTemplateFromLibraryCommand")
|
|
1116
|
+
.f(void 0, void 0)
|
|
1117
|
+
.ser(se_CreateWhatsAppMessageTemplateFromLibraryCommand)
|
|
1118
|
+
.de(de_CreateWhatsAppMessageTemplateFromLibraryCommand)
|
|
1119
|
+
.build() {
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
class CreateWhatsAppMessageTemplateMediaCommand extends smithyClient.Command
|
|
1123
|
+
.classBuilder()
|
|
1124
|
+
.ep(commonParams)
|
|
1125
|
+
.m(function (Command, cs, config, o) {
|
|
1126
|
+
return [
|
|
1127
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1128
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1129
|
+
];
|
|
1130
|
+
})
|
|
1131
|
+
.s("SocialMessaging", "CreateWhatsAppMessageTemplateMedia", {})
|
|
1132
|
+
.n("SocialMessagingClient", "CreateWhatsAppMessageTemplateMediaCommand")
|
|
1133
|
+
.f(CreateWhatsAppMessageTemplateMediaInputFilterSensitiveLog, void 0)
|
|
1134
|
+
.ser(se_CreateWhatsAppMessageTemplateMediaCommand)
|
|
1135
|
+
.de(de_CreateWhatsAppMessageTemplateMediaCommand)
|
|
1136
|
+
.build() {
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
class DeleteWhatsAppMessageMediaCommand extends smithyClient.Command
|
|
1140
|
+
.classBuilder()
|
|
1141
|
+
.ep(commonParams)
|
|
1142
|
+
.m(function (Command, cs, config, o) {
|
|
1143
|
+
return [
|
|
1144
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1145
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1146
|
+
];
|
|
1147
|
+
})
|
|
1148
|
+
.s("SocialMessaging", "DeleteWhatsAppMessageMedia", {})
|
|
1149
|
+
.n("SocialMessagingClient", "DeleteWhatsAppMessageMediaCommand")
|
|
1150
|
+
.f(void 0, void 0)
|
|
1151
|
+
.ser(se_DeleteWhatsAppMessageMediaCommand)
|
|
1152
|
+
.de(de_DeleteWhatsAppMessageMediaCommand)
|
|
1153
|
+
.build() {
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
class DeleteWhatsAppMessageTemplateCommand extends smithyClient.Command
|
|
1157
|
+
.classBuilder()
|
|
1158
|
+
.ep(commonParams)
|
|
1159
|
+
.m(function (Command, cs, config, o) {
|
|
1160
|
+
return [
|
|
1161
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1162
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1163
|
+
];
|
|
1164
|
+
})
|
|
1165
|
+
.s("SocialMessaging", "DeleteWhatsAppMessageTemplate", {})
|
|
1166
|
+
.n("SocialMessagingClient", "DeleteWhatsAppMessageTemplateCommand")
|
|
1167
|
+
.f(void 0, void 0)
|
|
1168
|
+
.ser(se_DeleteWhatsAppMessageTemplateCommand)
|
|
1169
|
+
.de(de_DeleteWhatsAppMessageTemplateCommand)
|
|
1170
|
+
.build() {
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
class DisassociateWhatsAppBusinessAccountCommand extends smithyClient.Command
|
|
1174
|
+
.classBuilder()
|
|
1175
|
+
.ep(commonParams)
|
|
1176
|
+
.m(function (Command, cs, config, o) {
|
|
1177
|
+
return [
|
|
1178
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1179
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1180
|
+
];
|
|
1181
|
+
})
|
|
1182
|
+
.s("SocialMessaging", "DisassociateWhatsAppBusinessAccount", {})
|
|
1183
|
+
.n("SocialMessagingClient", "DisassociateWhatsAppBusinessAccountCommand")
|
|
1184
|
+
.f(void 0, void 0)
|
|
1185
|
+
.ser(se_DisassociateWhatsAppBusinessAccountCommand)
|
|
1186
|
+
.de(de_DisassociateWhatsAppBusinessAccountCommand)
|
|
1187
|
+
.build() {
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
class GetLinkedWhatsAppBusinessAccountCommand extends smithyClient.Command
|
|
1191
|
+
.classBuilder()
|
|
1192
|
+
.ep(commonParams)
|
|
1193
|
+
.m(function (Command, cs, config, o) {
|
|
1194
|
+
return [
|
|
1195
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1196
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1197
|
+
];
|
|
1198
|
+
})
|
|
1199
|
+
.s("SocialMessaging", "GetLinkedWhatsAppBusinessAccount", {})
|
|
1200
|
+
.n("SocialMessagingClient", "GetLinkedWhatsAppBusinessAccountCommand")
|
|
1201
|
+
.f(void 0, void 0)
|
|
1202
|
+
.ser(se_GetLinkedWhatsAppBusinessAccountCommand)
|
|
1203
|
+
.de(de_GetLinkedWhatsAppBusinessAccountCommand)
|
|
1204
|
+
.build() {
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
class GetLinkedWhatsAppBusinessAccountPhoneNumberCommand extends smithyClient.Command
|
|
1208
|
+
.classBuilder()
|
|
1209
|
+
.ep(commonParams)
|
|
1210
|
+
.m(function (Command, cs, config, o) {
|
|
1211
|
+
return [
|
|
1212
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1213
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1214
|
+
];
|
|
1215
|
+
})
|
|
1216
|
+
.s("SocialMessaging", "GetLinkedWhatsAppBusinessAccountPhoneNumber", {})
|
|
1217
|
+
.n("SocialMessagingClient", "GetLinkedWhatsAppBusinessAccountPhoneNumberCommand")
|
|
1218
|
+
.f(void 0, void 0)
|
|
1219
|
+
.ser(se_GetLinkedWhatsAppBusinessAccountPhoneNumberCommand)
|
|
1220
|
+
.de(de_GetLinkedWhatsAppBusinessAccountPhoneNumberCommand)
|
|
1221
|
+
.build() {
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
class GetWhatsAppMessageMediaCommand extends smithyClient.Command
|
|
1225
|
+
.classBuilder()
|
|
1226
|
+
.ep(commonParams)
|
|
1227
|
+
.m(function (Command, cs, config, o) {
|
|
1228
|
+
return [
|
|
1229
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1230
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1231
|
+
];
|
|
1232
|
+
})
|
|
1233
|
+
.s("SocialMessaging", "GetWhatsAppMessageMedia", {})
|
|
1234
|
+
.n("SocialMessagingClient", "GetWhatsAppMessageMediaCommand")
|
|
1235
|
+
.f(GetWhatsAppMessageMediaInputFilterSensitiveLog, void 0)
|
|
1236
|
+
.ser(se_GetWhatsAppMessageMediaCommand)
|
|
1237
|
+
.de(de_GetWhatsAppMessageMediaCommand)
|
|
1238
|
+
.build() {
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
class GetWhatsAppMessageTemplateCommand extends smithyClient.Command
|
|
1242
|
+
.classBuilder()
|
|
1243
|
+
.ep(commonParams)
|
|
1244
|
+
.m(function (Command, cs, config, o) {
|
|
1245
|
+
return [
|
|
1246
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1247
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1248
|
+
];
|
|
1249
|
+
})
|
|
1250
|
+
.s("SocialMessaging", "GetWhatsAppMessageTemplate", {})
|
|
1251
|
+
.n("SocialMessagingClient", "GetWhatsAppMessageTemplateCommand")
|
|
1252
|
+
.f(void 0, void 0)
|
|
1253
|
+
.ser(se_GetWhatsAppMessageTemplateCommand)
|
|
1254
|
+
.de(de_GetWhatsAppMessageTemplateCommand)
|
|
1255
|
+
.build() {
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
class ListLinkedWhatsAppBusinessAccountsCommand extends smithyClient.Command
|
|
1259
|
+
.classBuilder()
|
|
1260
|
+
.ep(commonParams)
|
|
1261
|
+
.m(function (Command, cs, config, o) {
|
|
1262
|
+
return [
|
|
1263
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1264
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1265
|
+
];
|
|
1266
|
+
})
|
|
1267
|
+
.s("SocialMessaging", "ListLinkedWhatsAppBusinessAccounts", {})
|
|
1268
|
+
.n("SocialMessagingClient", "ListLinkedWhatsAppBusinessAccountsCommand")
|
|
1269
|
+
.f(void 0, void 0)
|
|
1270
|
+
.ser(se_ListLinkedWhatsAppBusinessAccountsCommand)
|
|
1271
|
+
.de(de_ListLinkedWhatsAppBusinessAccountsCommand)
|
|
1272
|
+
.build() {
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
1276
|
+
.classBuilder()
|
|
1277
|
+
.ep(commonParams)
|
|
1278
|
+
.m(function (Command, cs, config, o) {
|
|
1279
|
+
return [
|
|
1280
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1281
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1282
|
+
];
|
|
1283
|
+
})
|
|
1284
|
+
.s("SocialMessaging", "ListTagsForResource", {})
|
|
1285
|
+
.n("SocialMessagingClient", "ListTagsForResourceCommand")
|
|
1286
|
+
.f(void 0, void 0)
|
|
1287
|
+
.ser(se_ListTagsForResourceCommand)
|
|
1288
|
+
.de(de_ListTagsForResourceCommand)
|
|
1289
|
+
.build() {
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
class ListWhatsAppMessageTemplatesCommand extends smithyClient.Command
|
|
1293
|
+
.classBuilder()
|
|
1294
|
+
.ep(commonParams)
|
|
1295
|
+
.m(function (Command, cs, config, o) {
|
|
1296
|
+
return [
|
|
1297
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1298
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1299
|
+
];
|
|
1300
|
+
})
|
|
1301
|
+
.s("SocialMessaging", "ListWhatsAppMessageTemplates", {})
|
|
1302
|
+
.n("SocialMessagingClient", "ListWhatsAppMessageTemplatesCommand")
|
|
1303
|
+
.f(void 0, void 0)
|
|
1304
|
+
.ser(se_ListWhatsAppMessageTemplatesCommand)
|
|
1305
|
+
.de(de_ListWhatsAppMessageTemplatesCommand)
|
|
1306
|
+
.build() {
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
class ListWhatsAppTemplateLibraryCommand extends smithyClient.Command
|
|
1310
|
+
.classBuilder()
|
|
1311
|
+
.ep(commonParams)
|
|
1312
|
+
.m(function (Command, cs, config, o) {
|
|
1313
|
+
return [
|
|
1314
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1315
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1316
|
+
];
|
|
1317
|
+
})
|
|
1318
|
+
.s("SocialMessaging", "ListWhatsAppTemplateLibrary", {})
|
|
1319
|
+
.n("SocialMessagingClient", "ListWhatsAppTemplateLibraryCommand")
|
|
1320
|
+
.f(void 0, void 0)
|
|
1321
|
+
.ser(se_ListWhatsAppTemplateLibraryCommand)
|
|
1322
|
+
.de(de_ListWhatsAppTemplateLibraryCommand)
|
|
1323
|
+
.build() {
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
class PostWhatsAppMessageMediaCommand extends smithyClient.Command
|
|
1327
|
+
.classBuilder()
|
|
1328
|
+
.ep(commonParams)
|
|
1329
|
+
.m(function (Command, cs, config, o) {
|
|
1330
|
+
return [
|
|
1331
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1332
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1333
|
+
];
|
|
1334
|
+
})
|
|
1335
|
+
.s("SocialMessaging", "PostWhatsAppMessageMedia", {})
|
|
1336
|
+
.n("SocialMessagingClient", "PostWhatsAppMessageMediaCommand")
|
|
1337
|
+
.f(PostWhatsAppMessageMediaInputFilterSensitiveLog, void 0)
|
|
1338
|
+
.ser(se_PostWhatsAppMessageMediaCommand)
|
|
1339
|
+
.de(de_PostWhatsAppMessageMediaCommand)
|
|
1340
|
+
.build() {
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
class PutWhatsAppBusinessAccountEventDestinationsCommand extends smithyClient.Command
|
|
1344
|
+
.classBuilder()
|
|
1345
|
+
.ep(commonParams)
|
|
1346
|
+
.m(function (Command, cs, config, o) {
|
|
1347
|
+
return [
|
|
1348
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1349
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1350
|
+
];
|
|
1351
|
+
})
|
|
1352
|
+
.s("SocialMessaging", "PutWhatsAppBusinessAccountEventDestinations", {})
|
|
1353
|
+
.n("SocialMessagingClient", "PutWhatsAppBusinessAccountEventDestinationsCommand")
|
|
1354
|
+
.f(void 0, void 0)
|
|
1355
|
+
.ser(se_PutWhatsAppBusinessAccountEventDestinationsCommand)
|
|
1356
|
+
.de(de_PutWhatsAppBusinessAccountEventDestinationsCommand)
|
|
1357
|
+
.build() {
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
class SendWhatsAppMessageCommand extends smithyClient.Command
|
|
1361
|
+
.classBuilder()
|
|
1362
|
+
.ep(commonParams)
|
|
1363
|
+
.m(function (Command, cs, config, o) {
|
|
1364
|
+
return [
|
|
1365
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1366
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1367
|
+
];
|
|
1368
|
+
})
|
|
1369
|
+
.s("SocialMessaging", "SendWhatsAppMessage", {})
|
|
1370
|
+
.n("SocialMessagingClient", "SendWhatsAppMessageCommand")
|
|
1371
|
+
.f(SendWhatsAppMessageInputFilterSensitiveLog, void 0)
|
|
1372
|
+
.ser(se_SendWhatsAppMessageCommand)
|
|
1373
|
+
.de(de_SendWhatsAppMessageCommand)
|
|
1374
|
+
.build() {
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
class TagResourceCommand extends smithyClient.Command
|
|
1378
|
+
.classBuilder()
|
|
1379
|
+
.ep(commonParams)
|
|
1380
|
+
.m(function (Command, cs, config, o) {
|
|
1381
|
+
return [
|
|
1382
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1383
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1384
|
+
];
|
|
1385
|
+
})
|
|
1386
|
+
.s("SocialMessaging", "TagResource", {})
|
|
1387
|
+
.n("SocialMessagingClient", "TagResourceCommand")
|
|
1388
|
+
.f(void 0, void 0)
|
|
1389
|
+
.ser(se_TagResourceCommand)
|
|
1390
|
+
.de(de_TagResourceCommand)
|
|
1391
|
+
.build() {
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
1395
|
+
.classBuilder()
|
|
1396
|
+
.ep(commonParams)
|
|
1397
|
+
.m(function (Command, cs, config, o) {
|
|
1398
|
+
return [
|
|
1399
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1400
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1401
|
+
];
|
|
1402
|
+
})
|
|
1403
|
+
.s("SocialMessaging", "UntagResource", {})
|
|
1404
|
+
.n("SocialMessagingClient", "UntagResourceCommand")
|
|
1405
|
+
.f(void 0, void 0)
|
|
1406
|
+
.ser(se_UntagResourceCommand)
|
|
1407
|
+
.de(de_UntagResourceCommand)
|
|
1408
|
+
.build() {
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
class UpdateWhatsAppMessageTemplateCommand extends smithyClient.Command
|
|
1412
|
+
.classBuilder()
|
|
1413
|
+
.ep(commonParams)
|
|
1414
|
+
.m(function (Command, cs, config, o) {
|
|
1415
|
+
return [
|
|
1416
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1417
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1418
|
+
];
|
|
1419
|
+
})
|
|
1420
|
+
.s("SocialMessaging", "UpdateWhatsAppMessageTemplate", {})
|
|
1421
|
+
.n("SocialMessagingClient", "UpdateWhatsAppMessageTemplateCommand")
|
|
1422
|
+
.f(void 0, void 0)
|
|
1423
|
+
.ser(se_UpdateWhatsAppMessageTemplateCommand)
|
|
1424
|
+
.de(de_UpdateWhatsAppMessageTemplateCommand)
|
|
1425
|
+
.build() {
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
const commands = {
|
|
1429
|
+
AssociateWhatsAppBusinessAccountCommand,
|
|
1430
|
+
CreateWhatsAppMessageTemplateCommand,
|
|
1431
|
+
CreateWhatsAppMessageTemplateFromLibraryCommand,
|
|
1432
|
+
CreateWhatsAppMessageTemplateMediaCommand,
|
|
1433
|
+
DeleteWhatsAppMessageMediaCommand,
|
|
1434
|
+
DeleteWhatsAppMessageTemplateCommand,
|
|
1435
|
+
DisassociateWhatsAppBusinessAccountCommand,
|
|
1436
|
+
GetLinkedWhatsAppBusinessAccountCommand,
|
|
1437
|
+
GetLinkedWhatsAppBusinessAccountPhoneNumberCommand,
|
|
1438
|
+
GetWhatsAppMessageMediaCommand,
|
|
1439
|
+
GetWhatsAppMessageTemplateCommand,
|
|
1440
|
+
ListLinkedWhatsAppBusinessAccountsCommand,
|
|
1441
|
+
ListTagsForResourceCommand,
|
|
1442
|
+
ListWhatsAppMessageTemplatesCommand,
|
|
1443
|
+
ListWhatsAppTemplateLibraryCommand,
|
|
1444
|
+
PostWhatsAppMessageMediaCommand,
|
|
1445
|
+
PutWhatsAppBusinessAccountEventDestinationsCommand,
|
|
1446
|
+
SendWhatsAppMessageCommand,
|
|
1447
|
+
TagResourceCommand,
|
|
1448
|
+
UntagResourceCommand,
|
|
1449
|
+
UpdateWhatsAppMessageTemplateCommand,
|
|
1450
|
+
};
|
|
1451
|
+
class SocialMessaging extends SocialMessagingClient {
|
|
1452
|
+
}
|
|
1453
|
+
smithyClient.createAggregatedClient(commands, SocialMessaging);
|
|
1623
1454
|
|
|
1624
|
-
|
|
1455
|
+
const paginateListLinkedWhatsAppBusinessAccounts = core.createPaginator(SocialMessagingClient, ListLinkedWhatsAppBusinessAccountsCommand, "nextToken", "nextToken", "maxResults");
|
|
1625
1456
|
|
|
1626
|
-
|
|
1457
|
+
const paginateListWhatsAppMessageTemplates = core.createPaginator(SocialMessagingClient, ListWhatsAppMessageTemplatesCommand, "nextToken", "nextToken", "maxResults");
|
|
1627
1458
|
|
|
1628
|
-
|
|
1629
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1459
|
+
const paginateListWhatsAppTemplateLibrary = core.createPaginator(SocialMessagingClient, ListWhatsAppTemplateLibraryCommand, "nextToken", "nextToken", "maxResults");
|
|
1630
1460
|
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
SocialMessagingClient,
|
|
1635
|
-
SocialMessaging,
|
|
1636
|
-
$Command,
|
|
1637
|
-
AssociateWhatsAppBusinessAccountCommand,
|
|
1638
|
-
CreateWhatsAppMessageTemplateCommand,
|
|
1639
|
-
CreateWhatsAppMessageTemplateFromLibraryCommand,
|
|
1640
|
-
CreateWhatsAppMessageTemplateMediaCommand,
|
|
1641
|
-
DeleteWhatsAppMessageMediaCommand,
|
|
1642
|
-
DeleteWhatsAppMessageTemplateCommand,
|
|
1643
|
-
DisassociateWhatsAppBusinessAccountCommand,
|
|
1644
|
-
GetLinkedWhatsAppBusinessAccountCommand,
|
|
1645
|
-
GetLinkedWhatsAppBusinessAccountPhoneNumberCommand,
|
|
1646
|
-
GetWhatsAppMessageMediaCommand,
|
|
1647
|
-
GetWhatsAppMessageTemplateCommand,
|
|
1648
|
-
ListLinkedWhatsAppBusinessAccountsCommand,
|
|
1649
|
-
ListTagsForResourceCommand,
|
|
1650
|
-
ListWhatsAppMessageTemplatesCommand,
|
|
1651
|
-
ListWhatsAppTemplateLibraryCommand,
|
|
1652
|
-
PostWhatsAppMessageMediaCommand,
|
|
1653
|
-
PutWhatsAppBusinessAccountEventDestinationsCommand,
|
|
1654
|
-
SendWhatsAppMessageCommand,
|
|
1655
|
-
TagResourceCommand,
|
|
1656
|
-
UntagResourceCommand,
|
|
1657
|
-
UpdateWhatsAppMessageTemplateCommand,
|
|
1658
|
-
paginateListLinkedWhatsAppBusinessAccounts,
|
|
1659
|
-
paginateListWhatsAppMessageTemplates,
|
|
1660
|
-
paginateListWhatsAppTemplateLibrary,
|
|
1661
|
-
AccessDeniedByMetaException,
|
|
1662
|
-
AccessDeniedException,
|
|
1663
|
-
RegistrationStatus,
|
|
1664
|
-
DependencyException,
|
|
1665
|
-
InvalidParametersException,
|
|
1666
|
-
LimitExceededException,
|
|
1667
|
-
ThrottledRequestException,
|
|
1668
|
-
ValidationException,
|
|
1669
|
-
InternalServiceException,
|
|
1670
|
-
ResourceNotFoundException,
|
|
1671
|
-
WabaPhoneNumberSetupFinalizationFilterSensitiveLog,
|
|
1672
|
-
WhatsAppSetupFinalizationFilterSensitiveLog,
|
|
1673
|
-
AssociateWhatsAppBusinessAccountInputFilterSensitiveLog,
|
|
1674
|
-
WhatsAppSignupCallbackResultFilterSensitiveLog,
|
|
1675
|
-
AssociateWhatsAppBusinessAccountOutputFilterSensitiveLog,
|
|
1676
|
-
S3FileFilterSensitiveLog,
|
|
1677
|
-
CreateWhatsAppMessageTemplateMediaInputFilterSensitiveLog,
|
|
1678
|
-
S3PresignedUrlFilterSensitiveLog,
|
|
1679
|
-
GetWhatsAppMessageMediaInputFilterSensitiveLog,
|
|
1680
|
-
PostWhatsAppMessageMediaInputFilterSensitiveLog,
|
|
1681
|
-
SendWhatsAppMessageInputFilterSensitiveLog
|
|
1461
|
+
Object.defineProperty(exports, "$Command", {
|
|
1462
|
+
enumerable: true,
|
|
1463
|
+
get: function () { return smithyClient.Command; }
|
|
1682
1464
|
});
|
|
1683
|
-
|
|
1465
|
+
Object.defineProperty(exports, "__Client", {
|
|
1466
|
+
enumerable: true,
|
|
1467
|
+
get: function () { return smithyClient.Client; }
|
|
1468
|
+
});
|
|
1469
|
+
exports.AccessDeniedByMetaException = AccessDeniedByMetaException;
|
|
1470
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
1471
|
+
exports.AssociateWhatsAppBusinessAccountCommand = AssociateWhatsAppBusinessAccountCommand;
|
|
1472
|
+
exports.AssociateWhatsAppBusinessAccountInputFilterSensitiveLog = AssociateWhatsAppBusinessAccountInputFilterSensitiveLog;
|
|
1473
|
+
exports.AssociateWhatsAppBusinessAccountOutputFilterSensitiveLog = AssociateWhatsAppBusinessAccountOutputFilterSensitiveLog;
|
|
1474
|
+
exports.CreateWhatsAppMessageTemplateCommand = CreateWhatsAppMessageTemplateCommand;
|
|
1475
|
+
exports.CreateWhatsAppMessageTemplateFromLibraryCommand = CreateWhatsAppMessageTemplateFromLibraryCommand;
|
|
1476
|
+
exports.CreateWhatsAppMessageTemplateMediaCommand = CreateWhatsAppMessageTemplateMediaCommand;
|
|
1477
|
+
exports.CreateWhatsAppMessageTemplateMediaInputFilterSensitiveLog = CreateWhatsAppMessageTemplateMediaInputFilterSensitiveLog;
|
|
1478
|
+
exports.DeleteWhatsAppMessageMediaCommand = DeleteWhatsAppMessageMediaCommand;
|
|
1479
|
+
exports.DeleteWhatsAppMessageTemplateCommand = DeleteWhatsAppMessageTemplateCommand;
|
|
1480
|
+
exports.DependencyException = DependencyException;
|
|
1481
|
+
exports.DisassociateWhatsAppBusinessAccountCommand = DisassociateWhatsAppBusinessAccountCommand;
|
|
1482
|
+
exports.GetLinkedWhatsAppBusinessAccountCommand = GetLinkedWhatsAppBusinessAccountCommand;
|
|
1483
|
+
exports.GetLinkedWhatsAppBusinessAccountPhoneNumberCommand = GetLinkedWhatsAppBusinessAccountPhoneNumberCommand;
|
|
1484
|
+
exports.GetWhatsAppMessageMediaCommand = GetWhatsAppMessageMediaCommand;
|
|
1485
|
+
exports.GetWhatsAppMessageMediaInputFilterSensitiveLog = GetWhatsAppMessageMediaInputFilterSensitiveLog;
|
|
1486
|
+
exports.GetWhatsAppMessageTemplateCommand = GetWhatsAppMessageTemplateCommand;
|
|
1487
|
+
exports.InternalServiceException = InternalServiceException;
|
|
1488
|
+
exports.InvalidParametersException = InvalidParametersException;
|
|
1489
|
+
exports.LimitExceededException = LimitExceededException;
|
|
1490
|
+
exports.ListLinkedWhatsAppBusinessAccountsCommand = ListLinkedWhatsAppBusinessAccountsCommand;
|
|
1491
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
1492
|
+
exports.ListWhatsAppMessageTemplatesCommand = ListWhatsAppMessageTemplatesCommand;
|
|
1493
|
+
exports.ListWhatsAppTemplateLibraryCommand = ListWhatsAppTemplateLibraryCommand;
|
|
1494
|
+
exports.PostWhatsAppMessageMediaCommand = PostWhatsAppMessageMediaCommand;
|
|
1495
|
+
exports.PostWhatsAppMessageMediaInputFilterSensitiveLog = PostWhatsAppMessageMediaInputFilterSensitiveLog;
|
|
1496
|
+
exports.PutWhatsAppBusinessAccountEventDestinationsCommand = PutWhatsAppBusinessAccountEventDestinationsCommand;
|
|
1497
|
+
exports.RegistrationStatus = RegistrationStatus;
|
|
1498
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
1499
|
+
exports.S3FileFilterSensitiveLog = S3FileFilterSensitiveLog;
|
|
1500
|
+
exports.S3PresignedUrlFilterSensitiveLog = S3PresignedUrlFilterSensitiveLog;
|
|
1501
|
+
exports.SendWhatsAppMessageCommand = SendWhatsAppMessageCommand;
|
|
1502
|
+
exports.SendWhatsAppMessageInputFilterSensitiveLog = SendWhatsAppMessageInputFilterSensitiveLog;
|
|
1503
|
+
exports.SocialMessaging = SocialMessaging;
|
|
1504
|
+
exports.SocialMessagingClient = SocialMessagingClient;
|
|
1505
|
+
exports.SocialMessagingServiceException = SocialMessagingServiceException;
|
|
1506
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
1507
|
+
exports.ThrottledRequestException = ThrottledRequestException;
|
|
1508
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
1509
|
+
exports.UpdateWhatsAppMessageTemplateCommand = UpdateWhatsAppMessageTemplateCommand;
|
|
1510
|
+
exports.ValidationException = ValidationException;
|
|
1511
|
+
exports.WabaPhoneNumberSetupFinalizationFilterSensitiveLog = WabaPhoneNumberSetupFinalizationFilterSensitiveLog;
|
|
1512
|
+
exports.WhatsAppSetupFinalizationFilterSensitiveLog = WhatsAppSetupFinalizationFilterSensitiveLog;
|
|
1513
|
+
exports.WhatsAppSignupCallbackResultFilterSensitiveLog = WhatsAppSignupCallbackResultFilterSensitiveLog;
|
|
1514
|
+
exports.paginateListLinkedWhatsAppBusinessAccounts = paginateListLinkedWhatsAppBusinessAccounts;
|
|
1515
|
+
exports.paginateListWhatsAppMessageTemplates = paginateListWhatsAppMessageTemplates;
|
|
1516
|
+
exports.paginateListWhatsAppTemplateLibrary = paginateListWhatsAppTemplateLibrary;
|