@aws-sdk/client-cognito-sync 3.899.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.
Files changed (2) hide show
  1. package/dist-cjs/index.js +1399 -1558
  2. package/package.json +37 -37
package/dist-cjs/index.js CHANGED
@@ -1,1587 +1,1428 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/index.ts
22
- var index_exports = {};
23
- __export(index_exports, {
24
- AlreadyStreamedException: () => AlreadyStreamedException,
25
- BulkPublishCommand: () => BulkPublishCommand,
26
- BulkPublishStatus: () => BulkPublishStatus,
27
- CognitoSync: () => CognitoSync,
28
- CognitoSyncClient: () => CognitoSyncClient,
29
- CognitoSyncServiceException: () => CognitoSyncServiceException,
30
- ConcurrentModificationException: () => ConcurrentModificationException,
31
- DeleteDatasetCommand: () => DeleteDatasetCommand,
32
- DescribeDatasetCommand: () => DescribeDatasetCommand,
33
- DescribeIdentityPoolUsageCommand: () => DescribeIdentityPoolUsageCommand,
34
- DescribeIdentityUsageCommand: () => DescribeIdentityUsageCommand,
35
- DuplicateRequestException: () => DuplicateRequestException,
36
- GetBulkPublishDetailsCommand: () => GetBulkPublishDetailsCommand,
37
- GetCognitoEventsCommand: () => GetCognitoEventsCommand,
38
- GetIdentityPoolConfigurationCommand: () => GetIdentityPoolConfigurationCommand,
39
- InternalErrorException: () => InternalErrorException,
40
- InvalidConfigurationException: () => InvalidConfigurationException,
41
- InvalidLambdaFunctionOutputException: () => InvalidLambdaFunctionOutputException,
42
- InvalidParameterException: () => InvalidParameterException,
43
- LambdaThrottledException: () => LambdaThrottledException,
44
- LimitExceededException: () => LimitExceededException,
45
- ListDatasetsCommand: () => ListDatasetsCommand,
46
- ListIdentityPoolUsageCommand: () => ListIdentityPoolUsageCommand,
47
- ListRecordsCommand: () => ListRecordsCommand,
48
- NotAuthorizedException: () => NotAuthorizedException,
49
- Operation: () => Operation,
50
- Platform: () => Platform,
51
- RegisterDeviceCommand: () => RegisterDeviceCommand,
52
- ResourceConflictException: () => ResourceConflictException,
53
- ResourceNotFoundException: () => ResourceNotFoundException,
54
- SetCognitoEventsCommand: () => SetCognitoEventsCommand,
55
- SetIdentityPoolConfigurationCommand: () => SetIdentityPoolConfigurationCommand,
56
- StreamingStatus: () => StreamingStatus,
57
- SubscribeToDatasetCommand: () => SubscribeToDatasetCommand,
58
- TooManyRequestsException: () => TooManyRequestsException,
59
- UnsubscribeFromDatasetCommand: () => UnsubscribeFromDatasetCommand,
60
- UpdateRecordsCommand: () => UpdateRecordsCommand,
61
- __Client: () => import_smithy_client.Client
62
- });
63
- module.exports = __toCommonJS(index_exports);
64
-
65
- // src/CognitoSyncClient.ts
66
- var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
67
- var import_middleware_logger = require("@aws-sdk/middleware-logger");
68
- var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
69
- var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
70
- var import_config_resolver = require("@smithy/config-resolver");
71
- var import_core = require("@smithy/core");
72
- var import_middleware_content_length = require("@smithy/middleware-content-length");
73
- var import_middleware_endpoint = require("@smithy/middleware-endpoint");
74
- var import_middleware_retry = require("@smithy/middleware-retry");
75
-
76
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
77
-
78
- // src/endpoint/EndpointParameters.ts
79
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
80
- return Object.assign(options, {
81
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
82
- useFipsEndpoint: options.useFipsEndpoint ?? false,
83
- defaultSigningName: "cognito-sync"
84
- });
85
- }, "resolveClientEndpointParameters");
86
- var commonParams = {
87
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
88
- Endpoint: { type: "builtInParams", name: "endpoint" },
89
- Region: { type: "builtInParams", name: "region" },
90
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
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: "cognito-sync",
25
+ });
26
+ };
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" },
91
32
  };
92
33
 
93
- // src/CognitoSyncClient.ts
94
- var import_runtimeConfig = require("././runtimeConfig");
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
+ };
71
+ };
95
72
 
96
- // src/runtimeExtensions.ts
97
- var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
98
- var import_protocol_http = require("@smithy/protocol-http");
99
- 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
+ };
100
78
 
101
- // src/auth/httpAuthExtensionConfiguration.ts
102
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
103
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
104
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
105
- let _credentials = runtimeConfig.credentials;
106
- return {
107
- setHttpAuthScheme(httpAuthScheme) {
108
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
109
- if (index === -1) {
110
- _httpAuthSchemes.push(httpAuthScheme);
111
- } else {
112
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
113
- }
114
- },
115
- httpAuthSchemes() {
116
- return _httpAuthSchemes;
117
- },
118
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
119
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
120
- },
121
- httpAuthSchemeProvider() {
122
- return _httpAuthSchemeProvider;
123
- },
124
- setCredentials(credentials) {
125
- _credentials = credentials;
126
- },
127
- credentials() {
128
- return _credentials;
79
+ class CognitoSyncClient 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.defaultCognitoSyncHttpAuthSchemeParametersProvider,
102
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
103
+ "aws.auth#sigv4": config.credentials,
104
+ }),
105
+ }));
106
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
129
107
  }
130
- };
131
- }, "getHttpAuthExtensionConfiguration");
132
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
133
- return {
134
- httpAuthSchemes: config.httpAuthSchemes(),
135
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
136
- credentials: config.credentials()
137
- };
138
- }, "resolveHttpAuthRuntimeConfig");
139
-
140
- // src/runtimeExtensions.ts
141
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
142
- const extensionConfiguration = Object.assign(
143
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
144
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
145
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
146
- getHttpAuthExtensionConfiguration(runtimeConfig)
147
- );
148
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
149
- return Object.assign(
150
- runtimeConfig,
151
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
152
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
153
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
154
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
155
- );
156
- }, "resolveRuntimeExtensions");
108
+ destroy() {
109
+ super.destroy();
110
+ }
111
+ }
157
112
 
158
- // src/CognitoSyncClient.ts
159
- var CognitoSyncClient = class extends import_smithy_client.Client {
160
- static {
161
- __name(this, "CognitoSyncClient");
162
- }
163
- /**
164
- * The resolved configuration of CognitoSyncClient class. This is resolved and normalized from the {@link CognitoSyncClientConfig | constructor configuration interface}.
165
- */
166
- config;
167
- constructor(...[configuration]) {
168
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
169
- super(_config_0);
170
- this.initConfig = _config_0;
171
- const _config_1 = resolveClientEndpointParameters(_config_0);
172
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
173
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
174
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
175
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
176
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
177
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
178
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
179
- this.config = _config_8;
180
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
181
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
182
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
183
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
184
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
185
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
186
- this.middlewareStack.use(
187
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
188
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultCognitoSyncHttpAuthSchemeParametersProvider,
189
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
190
- "aws.auth#sigv4": config.credentials
191
- }), "identityProviderConfigProvider")
192
- })
193
- );
194
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
195
- }
196
- /**
197
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
198
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
199
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
200
- */
201
- destroy() {
202
- super.destroy();
203
- }
113
+ class CognitoSyncServiceException extends smithyClient.ServiceException {
114
+ constructor(options) {
115
+ super(options);
116
+ Object.setPrototypeOf(this, CognitoSyncServiceException.prototype);
117
+ }
118
+ }
119
+
120
+ class AlreadyStreamedException extends CognitoSyncServiceException {
121
+ name = "AlreadyStreamedException";
122
+ $fault = "client";
123
+ constructor(opts) {
124
+ super({
125
+ name: "AlreadyStreamedException",
126
+ $fault: "client",
127
+ ...opts,
128
+ });
129
+ Object.setPrototypeOf(this, AlreadyStreamedException.prototype);
130
+ }
131
+ }
132
+ class DuplicateRequestException extends CognitoSyncServiceException {
133
+ name = "DuplicateRequestException";
134
+ $fault = "client";
135
+ constructor(opts) {
136
+ super({
137
+ name: "DuplicateRequestException",
138
+ $fault: "client",
139
+ ...opts,
140
+ });
141
+ Object.setPrototypeOf(this, DuplicateRequestException.prototype);
142
+ }
143
+ }
144
+ class InternalErrorException extends CognitoSyncServiceException {
145
+ name = "InternalErrorException";
146
+ $fault = "server";
147
+ constructor(opts) {
148
+ super({
149
+ name: "InternalErrorException",
150
+ $fault: "server",
151
+ ...opts,
152
+ });
153
+ Object.setPrototypeOf(this, InternalErrorException.prototype);
154
+ }
155
+ }
156
+ class InvalidParameterException extends CognitoSyncServiceException {
157
+ name = "InvalidParameterException";
158
+ $fault = "client";
159
+ constructor(opts) {
160
+ super({
161
+ name: "InvalidParameterException",
162
+ $fault: "client",
163
+ ...opts,
164
+ });
165
+ Object.setPrototypeOf(this, InvalidParameterException.prototype);
166
+ }
167
+ }
168
+ class NotAuthorizedException extends CognitoSyncServiceException {
169
+ name = "NotAuthorizedException";
170
+ $fault = "client";
171
+ constructor(opts) {
172
+ super({
173
+ name: "NotAuthorizedException",
174
+ $fault: "client",
175
+ ...opts,
176
+ });
177
+ Object.setPrototypeOf(this, NotAuthorizedException.prototype);
178
+ }
179
+ }
180
+ class ResourceNotFoundException extends CognitoSyncServiceException {
181
+ name = "ResourceNotFoundException";
182
+ $fault = "client";
183
+ constructor(opts) {
184
+ super({
185
+ name: "ResourceNotFoundException",
186
+ $fault: "client",
187
+ ...opts,
188
+ });
189
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
190
+ }
191
+ }
192
+ class ResourceConflictException extends CognitoSyncServiceException {
193
+ name = "ResourceConflictException";
194
+ $fault = "client";
195
+ constructor(opts) {
196
+ super({
197
+ name: "ResourceConflictException",
198
+ $fault: "client",
199
+ ...opts,
200
+ });
201
+ Object.setPrototypeOf(this, ResourceConflictException.prototype);
202
+ }
203
+ }
204
+ class TooManyRequestsException extends CognitoSyncServiceException {
205
+ name = "TooManyRequestsException";
206
+ $fault = "client";
207
+ constructor(opts) {
208
+ super({
209
+ name: "TooManyRequestsException",
210
+ $fault: "client",
211
+ ...opts,
212
+ });
213
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
214
+ }
215
+ }
216
+ const BulkPublishStatus = {
217
+ FAILED: "FAILED",
218
+ IN_PROGRESS: "IN_PROGRESS",
219
+ NOT_STARTED: "NOT_STARTED",
220
+ SUCCEEDED: "SUCCEEDED",
204
221
  };
205
-
206
- // src/CognitoSync.ts
207
-
208
-
209
- // src/commands/BulkPublishCommand.ts
210
-
211
- var import_middleware_serde = require("@smithy/middleware-serde");
212
-
213
-
214
- // src/protocols/Aws_restJson1.ts
215
- var import_core2 = require("@aws-sdk/core");
216
-
217
-
218
-
219
- // src/models/CognitoSyncServiceException.ts
220
-
221
- var CognitoSyncServiceException = class _CognitoSyncServiceException extends import_smithy_client.ServiceException {
222
- static {
223
- __name(this, "CognitoSyncServiceException");
224
- }
225
- /**
226
- * @internal
227
- */
228
- constructor(options) {
229
- super(options);
230
- Object.setPrototypeOf(this, _CognitoSyncServiceException.prototype);
231
- }
222
+ const StreamingStatus = {
223
+ DISABLED: "DISABLED",
224
+ ENABLED: "ENABLED",
232
225
  };
233
-
234
- // src/models/models_0.ts
235
- var AlreadyStreamedException = class _AlreadyStreamedException extends CognitoSyncServiceException {
236
- static {
237
- __name(this, "AlreadyStreamedException");
238
- }
239
- name = "AlreadyStreamedException";
240
- $fault = "client";
241
- /**
242
- * @internal
243
- */
244
- constructor(opts) {
245
- super({
246
- name: "AlreadyStreamedException",
247
- $fault: "client",
248
- ...opts
249
- });
250
- Object.setPrototypeOf(this, _AlreadyStreamedException.prototype);
251
- }
252
- };
253
- var DuplicateRequestException = class _DuplicateRequestException extends CognitoSyncServiceException {
254
- static {
255
- __name(this, "DuplicateRequestException");
256
- }
257
- name = "DuplicateRequestException";
258
- $fault = "client";
259
- /**
260
- * @internal
261
- */
262
- constructor(opts) {
263
- super({
264
- name: "DuplicateRequestException",
265
- $fault: "client",
266
- ...opts
267
- });
268
- Object.setPrototypeOf(this, _DuplicateRequestException.prototype);
269
- }
270
- };
271
- var InternalErrorException = class _InternalErrorException extends CognitoSyncServiceException {
272
- static {
273
- __name(this, "InternalErrorException");
274
- }
275
- name = "InternalErrorException";
276
- $fault = "server";
277
- /**
278
- * @internal
279
- */
280
- constructor(opts) {
281
- super({
282
- name: "InternalErrorException",
283
- $fault: "server",
284
- ...opts
285
- });
286
- Object.setPrototypeOf(this, _InternalErrorException.prototype);
287
- }
288
- };
289
- var InvalidParameterException = class _InvalidParameterException extends CognitoSyncServiceException {
290
- static {
291
- __name(this, "InvalidParameterException");
292
- }
293
- name = "InvalidParameterException";
294
- $fault = "client";
295
- /**
296
- * @internal
297
- */
298
- constructor(opts) {
299
- super({
300
- name: "InvalidParameterException",
301
- $fault: "client",
302
- ...opts
303
- });
304
- Object.setPrototypeOf(this, _InvalidParameterException.prototype);
305
- }
306
- };
307
- var NotAuthorizedException = class _NotAuthorizedException extends CognitoSyncServiceException {
308
- static {
309
- __name(this, "NotAuthorizedException");
310
- }
311
- name = "NotAuthorizedException";
312
- $fault = "client";
313
- /**
314
- * @internal
315
- */
316
- constructor(opts) {
317
- super({
318
- name: "NotAuthorizedException",
319
- $fault: "client",
320
- ...opts
321
- });
322
- Object.setPrototypeOf(this, _NotAuthorizedException.prototype);
323
- }
324
- };
325
- var ResourceNotFoundException = class _ResourceNotFoundException extends CognitoSyncServiceException {
326
- static {
327
- __name(this, "ResourceNotFoundException");
328
- }
329
- name = "ResourceNotFoundException";
330
- $fault = "client";
331
- /**
332
- * @internal
333
- */
334
- constructor(opts) {
335
- super({
336
- name: "ResourceNotFoundException",
337
- $fault: "client",
338
- ...opts
339
- });
340
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
341
- }
342
- };
343
- var ResourceConflictException = class _ResourceConflictException extends CognitoSyncServiceException {
344
- static {
345
- __name(this, "ResourceConflictException");
346
- }
347
- name = "ResourceConflictException";
348
- $fault = "client";
349
- /**
350
- * @internal
351
- */
352
- constructor(opts) {
353
- super({
354
- name: "ResourceConflictException",
355
- $fault: "client",
356
- ...opts
357
- });
358
- Object.setPrototypeOf(this, _ResourceConflictException.prototype);
359
- }
360
- };
361
- var TooManyRequestsException = class _TooManyRequestsException extends CognitoSyncServiceException {
362
- static {
363
- __name(this, "TooManyRequestsException");
364
- }
365
- name = "TooManyRequestsException";
366
- $fault = "client";
367
- /**
368
- * @internal
369
- */
370
- constructor(opts) {
371
- super({
372
- name: "TooManyRequestsException",
373
- $fault: "client",
374
- ...opts
375
- });
376
- Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
377
- }
378
- };
379
- var BulkPublishStatus = {
380
- FAILED: "FAILED",
381
- IN_PROGRESS: "IN_PROGRESS",
382
- NOT_STARTED: "NOT_STARTED",
383
- SUCCEEDED: "SUCCEEDED"
384
- };
385
- var StreamingStatus = {
386
- DISABLED: "DISABLED",
387
- ENABLED: "ENABLED"
388
- };
389
- var InvalidConfigurationException = class _InvalidConfigurationException extends CognitoSyncServiceException {
390
- static {
391
- __name(this, "InvalidConfigurationException");
392
- }
393
- name = "InvalidConfigurationException";
394
- $fault = "client";
395
- /**
396
- * @internal
397
- */
398
- constructor(opts) {
399
- super({
400
- name: "InvalidConfigurationException",
401
- $fault: "client",
402
- ...opts
403
- });
404
- Object.setPrototypeOf(this, _InvalidConfigurationException.prototype);
405
- }
406
- };
407
- var Platform = {
408
- ADM: "ADM",
409
- APNS: "APNS",
410
- APNS_SANDBOX: "APNS_SANDBOX",
411
- GCM: "GCM"
412
- };
413
- var ConcurrentModificationException = class _ConcurrentModificationException extends CognitoSyncServiceException {
414
- static {
415
- __name(this, "ConcurrentModificationException");
416
- }
417
- name = "ConcurrentModificationException";
418
- $fault = "client";
419
- /**
420
- * @internal
421
- */
422
- constructor(opts) {
423
- super({
424
- name: "ConcurrentModificationException",
425
- $fault: "client",
426
- ...opts
427
- });
428
- Object.setPrototypeOf(this, _ConcurrentModificationException.prototype);
429
- }
430
- };
431
- var InvalidLambdaFunctionOutputException = class _InvalidLambdaFunctionOutputException extends CognitoSyncServiceException {
432
- static {
433
- __name(this, "InvalidLambdaFunctionOutputException");
434
- }
435
- name = "InvalidLambdaFunctionOutputException";
436
- $fault = "client";
437
- /**
438
- * @internal
439
- */
440
- constructor(opts) {
441
- super({
442
- name: "InvalidLambdaFunctionOutputException",
443
- $fault: "client",
444
- ...opts
445
- });
446
- Object.setPrototypeOf(this, _InvalidLambdaFunctionOutputException.prototype);
447
- }
448
- };
449
- var LambdaThrottledException = class _LambdaThrottledException extends CognitoSyncServiceException {
450
- static {
451
- __name(this, "LambdaThrottledException");
452
- }
453
- name = "LambdaThrottledException";
454
- $fault = "client";
455
- /**
456
- * @internal
457
- */
458
- constructor(opts) {
459
- super({
460
- name: "LambdaThrottledException",
461
- $fault: "client",
462
- ...opts
463
- });
464
- Object.setPrototypeOf(this, _LambdaThrottledException.prototype);
465
- }
466
- };
467
- var LimitExceededException = class _LimitExceededException extends CognitoSyncServiceException {
468
- static {
469
- __name(this, "LimitExceededException");
470
- }
471
- name = "LimitExceededException";
472
- $fault = "client";
473
- /**
474
- * @internal
475
- */
476
- constructor(opts) {
477
- super({
478
- name: "LimitExceededException",
479
- $fault: "client",
480
- ...opts
481
- });
482
- Object.setPrototypeOf(this, _LimitExceededException.prototype);
483
- }
484
- };
485
- var Operation = {
486
- remove: "remove",
487
- replace: "replace"
226
+ class InvalidConfigurationException extends CognitoSyncServiceException {
227
+ name = "InvalidConfigurationException";
228
+ $fault = "client";
229
+ constructor(opts) {
230
+ super({
231
+ name: "InvalidConfigurationException",
232
+ $fault: "client",
233
+ ...opts,
234
+ });
235
+ Object.setPrototypeOf(this, InvalidConfigurationException.prototype);
236
+ }
237
+ }
238
+ const Platform = {
239
+ ADM: "ADM",
240
+ APNS: "APNS",
241
+ APNS_SANDBOX: "APNS_SANDBOX",
242
+ GCM: "GCM",
488
243
  };
489
-
490
- // src/protocols/Aws_restJson1.ts
491
- var se_BulkPublishCommand = /* @__PURE__ */ __name(async (input, context) => {
492
- const b = (0, import_core.requestBuilder)(input, context);
493
- const headers = {};
494
- b.bp("/identitypools/{IdentityPoolId}/bulkpublish");
495
- b.p("IdentityPoolId", () => input.IdentityPoolId, "{IdentityPoolId}", false);
496
- let body;
497
- b.m("POST").h(headers).b(body);
498
- return b.build();
499
- }, "se_BulkPublishCommand");
500
- var se_DeleteDatasetCommand = /* @__PURE__ */ __name(async (input, context) => {
501
- const b = (0, import_core.requestBuilder)(input, context);
502
- const headers = {};
503
- b.bp("/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}");
504
- b.p("IdentityPoolId", () => input.IdentityPoolId, "{IdentityPoolId}", false);
505
- b.p("IdentityId", () => input.IdentityId, "{IdentityId}", false);
506
- b.p("DatasetName", () => input.DatasetName, "{DatasetName}", false);
507
- let body;
508
- b.m("DELETE").h(headers).b(body);
509
- return b.build();
510
- }, "se_DeleteDatasetCommand");
511
- var se_DescribeDatasetCommand = /* @__PURE__ */ __name(async (input, context) => {
512
- const b = (0, import_core.requestBuilder)(input, context);
513
- const headers = {};
514
- b.bp("/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}");
515
- b.p("IdentityPoolId", () => input.IdentityPoolId, "{IdentityPoolId}", false);
516
- b.p("IdentityId", () => input.IdentityId, "{IdentityId}", false);
517
- b.p("DatasetName", () => input.DatasetName, "{DatasetName}", false);
518
- let body;
519
- b.m("GET").h(headers).b(body);
520
- return b.build();
521
- }, "se_DescribeDatasetCommand");
522
- var se_DescribeIdentityPoolUsageCommand = /* @__PURE__ */ __name(async (input, context) => {
523
- const b = (0, import_core.requestBuilder)(input, context);
524
- const headers = {};
525
- b.bp("/identitypools/{IdentityPoolId}");
526
- b.p("IdentityPoolId", () => input.IdentityPoolId, "{IdentityPoolId}", false);
527
- let body;
528
- b.m("GET").h(headers).b(body);
529
- return b.build();
530
- }, "se_DescribeIdentityPoolUsageCommand");
531
- var se_DescribeIdentityUsageCommand = /* @__PURE__ */ __name(async (input, context) => {
532
- const b = (0, import_core.requestBuilder)(input, context);
533
- const headers = {};
534
- b.bp("/identitypools/{IdentityPoolId}/identities/{IdentityId}");
535
- b.p("IdentityPoolId", () => input.IdentityPoolId, "{IdentityPoolId}", false);
536
- b.p("IdentityId", () => input.IdentityId, "{IdentityId}", false);
537
- let body;
538
- b.m("GET").h(headers).b(body);
539
- return b.build();
540
- }, "se_DescribeIdentityUsageCommand");
541
- var se_GetBulkPublishDetailsCommand = /* @__PURE__ */ __name(async (input, context) => {
542
- const b = (0, import_core.requestBuilder)(input, context);
543
- const headers = {};
544
- b.bp("/identitypools/{IdentityPoolId}/getBulkPublishDetails");
545
- b.p("IdentityPoolId", () => input.IdentityPoolId, "{IdentityPoolId}", false);
546
- let body;
547
- b.m("POST").h(headers).b(body);
548
- return b.build();
549
- }, "se_GetBulkPublishDetailsCommand");
550
- var se_GetCognitoEventsCommand = /* @__PURE__ */ __name(async (input, context) => {
551
- const b = (0, import_core.requestBuilder)(input, context);
552
- const headers = {};
553
- b.bp("/identitypools/{IdentityPoolId}/events");
554
- b.p("IdentityPoolId", () => input.IdentityPoolId, "{IdentityPoolId}", false);
555
- let body;
556
- b.m("GET").h(headers).b(body);
557
- return b.build();
558
- }, "se_GetCognitoEventsCommand");
559
- var se_GetIdentityPoolConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
560
- const b = (0, import_core.requestBuilder)(input, context);
561
- const headers = {};
562
- b.bp("/identitypools/{IdentityPoolId}/configuration");
563
- b.p("IdentityPoolId", () => input.IdentityPoolId, "{IdentityPoolId}", false);
564
- let body;
565
- b.m("GET").h(headers).b(body);
566
- return b.build();
567
- }, "se_GetIdentityPoolConfigurationCommand");
568
- var se_ListDatasetsCommand = /* @__PURE__ */ __name(async (input, context) => {
569
- const b = (0, import_core.requestBuilder)(input, context);
570
- const headers = {};
571
- b.bp("/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets");
572
- b.p("IdentityPoolId", () => input.IdentityPoolId, "{IdentityPoolId}", false);
573
- b.p("IdentityId", () => input.IdentityId, "{IdentityId}", false);
574
- const query = (0, import_smithy_client.map)({
575
- [_nT]: [, input[_NT]],
576
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
577
- });
578
- let body;
579
- b.m("GET").h(headers).q(query).b(body);
580
- return b.build();
581
- }, "se_ListDatasetsCommand");
582
- var se_ListIdentityPoolUsageCommand = /* @__PURE__ */ __name(async (input, context) => {
583
- const b = (0, import_core.requestBuilder)(input, context);
584
- const headers = {};
585
- b.bp("/identitypools");
586
- const query = (0, import_smithy_client.map)({
587
- [_nT]: [, input[_NT]],
588
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
589
- });
590
- let body;
591
- b.m("GET").h(headers).q(query).b(body);
592
- return b.build();
593
- }, "se_ListIdentityPoolUsageCommand");
594
- var se_ListRecordsCommand = /* @__PURE__ */ __name(async (input, context) => {
595
- const b = (0, import_core.requestBuilder)(input, context);
596
- const headers = {};
597
- b.bp("/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/records");
598
- b.p("IdentityPoolId", () => input.IdentityPoolId, "{IdentityPoolId}", false);
599
- b.p("IdentityId", () => input.IdentityId, "{IdentityId}", false);
600
- b.p("DatasetName", () => input.DatasetName, "{DatasetName}", false);
601
- const query = (0, import_smithy_client.map)({
602
- [_lSC]: [() => input.LastSyncCount !== void 0, () => input[_LSC].toString()],
603
- [_nT]: [, input[_NT]],
604
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
605
- [_sST]: [, input[_SST]]
606
- });
607
- let body;
608
- b.m("GET").h(headers).q(query).b(body);
609
- return b.build();
610
- }, "se_ListRecordsCommand");
611
- var se_RegisterDeviceCommand = /* @__PURE__ */ __name(async (input, context) => {
612
- const b = (0, import_core.requestBuilder)(input, context);
613
- const headers = {
614
- "content-type": "application/json"
615
- };
616
- b.bp("/identitypools/{IdentityPoolId}/identity/{IdentityId}/device");
617
- b.p("IdentityPoolId", () => input.IdentityPoolId, "{IdentityPoolId}", false);
618
- b.p("IdentityId", () => input.IdentityId, "{IdentityId}", false);
619
- let body;
620
- body = JSON.stringify(
621
- (0, import_smithy_client.take)(input, {
622
- Platform: [],
623
- Token: []
624
- })
625
- );
626
- b.m("POST").h(headers).b(body);
627
- return b.build();
628
- }, "se_RegisterDeviceCommand");
629
- var se_SetCognitoEventsCommand = /* @__PURE__ */ __name(async (input, context) => {
630
- const b = (0, import_core.requestBuilder)(input, context);
631
- const headers = {
632
- "content-type": "application/json"
633
- };
634
- b.bp("/identitypools/{IdentityPoolId}/events");
635
- b.p("IdentityPoolId", () => input.IdentityPoolId, "{IdentityPoolId}", false);
636
- let body;
637
- body = JSON.stringify(
638
- (0, import_smithy_client.take)(input, {
639
- Events: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Events")
640
- })
641
- );
642
- b.m("POST").h(headers).b(body);
643
- return b.build();
644
- }, "se_SetCognitoEventsCommand");
645
- var se_SetIdentityPoolConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
646
- const b = (0, import_core.requestBuilder)(input, context);
647
- const headers = {
648
- "content-type": "application/json"
649
- };
650
- b.bp("/identitypools/{IdentityPoolId}/configuration");
651
- b.p("IdentityPoolId", () => input.IdentityPoolId, "{IdentityPoolId}", false);
652
- let body;
653
- body = JSON.stringify(
654
- (0, import_smithy_client.take)(input, {
655
- CognitoStreams: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "CognitoStreams"),
656
- PushSync: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "PushSync")
657
- })
658
- );
659
- b.m("POST").h(headers).b(body);
660
- return b.build();
661
- }, "se_SetIdentityPoolConfigurationCommand");
662
- var se_SubscribeToDatasetCommand = /* @__PURE__ */ __name(async (input, context) => {
663
- const b = (0, import_core.requestBuilder)(input, context);
664
- const headers = {};
665
- b.bp("/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/subscriptions/{DeviceId}");
666
- b.p("IdentityPoolId", () => input.IdentityPoolId, "{IdentityPoolId}", false);
667
- b.p("IdentityId", () => input.IdentityId, "{IdentityId}", false);
668
- b.p("DatasetName", () => input.DatasetName, "{DatasetName}", false);
669
- b.p("DeviceId", () => input.DeviceId, "{DeviceId}", false);
670
- let body;
671
- b.m("POST").h(headers).b(body);
672
- return b.build();
673
- }, "se_SubscribeToDatasetCommand");
674
- var se_UnsubscribeFromDatasetCommand = /* @__PURE__ */ __name(async (input, context) => {
675
- const b = (0, import_core.requestBuilder)(input, context);
676
- const headers = {};
677
- b.bp("/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/subscriptions/{DeviceId}");
678
- b.p("IdentityPoolId", () => input.IdentityPoolId, "{IdentityPoolId}", false);
679
- b.p("IdentityId", () => input.IdentityId, "{IdentityId}", false);
680
- b.p("DatasetName", () => input.DatasetName, "{DatasetName}", false);
681
- b.p("DeviceId", () => input.DeviceId, "{DeviceId}", false);
682
- let body;
683
- b.m("DELETE").h(headers).b(body);
684
- return b.build();
685
- }, "se_UnsubscribeFromDatasetCommand");
686
- var se_UpdateRecordsCommand = /* @__PURE__ */ __name(async (input, context) => {
687
- const b = (0, import_core.requestBuilder)(input, context);
688
- const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
689
- "content-type": "application/json",
690
- [_xacc]: input[_CC]
691
- });
692
- b.bp("/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}");
693
- b.p("IdentityPoolId", () => input.IdentityPoolId, "{IdentityPoolId}", false);
694
- b.p("IdentityId", () => input.IdentityId, "{IdentityId}", false);
695
- b.p("DatasetName", () => input.DatasetName, "{DatasetName}", false);
696
- let body;
697
- body = JSON.stringify(
698
- (0, import_smithy_client.take)(input, {
699
- DeviceId: [],
700
- RecordPatches: /* @__PURE__ */ __name((_) => se_RecordPatchList(_, context), "RecordPatches"),
701
- SyncSessionToken: []
702
- })
703
- );
704
- b.m("POST").h(headers).b(body);
705
- return b.build();
706
- }, "se_UpdateRecordsCommand");
707
- var de_BulkPublishCommand = /* @__PURE__ */ __name(async (output, context) => {
708
- if (output.statusCode !== 200 && output.statusCode >= 300) {
709
- return de_CommandError(output, context);
710
- }
711
- const contents = (0, import_smithy_client.map)({
712
- $metadata: deserializeMetadata(output)
713
- });
714
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
715
- const doc = (0, import_smithy_client.take)(data, {
716
- IdentityPoolId: import_smithy_client.expectString
717
- });
718
- Object.assign(contents, doc);
719
- return contents;
720
- }, "de_BulkPublishCommand");
721
- var de_DeleteDatasetCommand = /* @__PURE__ */ __name(async (output, context) => {
722
- if (output.statusCode !== 200 && output.statusCode >= 300) {
723
- return de_CommandError(output, context);
724
- }
725
- const contents = (0, import_smithy_client.map)({
726
- $metadata: deserializeMetadata(output)
727
- });
728
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
729
- const doc = (0, import_smithy_client.take)(data, {
730
- Dataset: /* @__PURE__ */ __name((_) => de_Dataset(_, context), "Dataset")
731
- });
732
- Object.assign(contents, doc);
733
- return contents;
734
- }, "de_DeleteDatasetCommand");
735
- var de_DescribeDatasetCommand = /* @__PURE__ */ __name(async (output, context) => {
736
- if (output.statusCode !== 200 && output.statusCode >= 300) {
737
- return de_CommandError(output, context);
738
- }
739
- const contents = (0, import_smithy_client.map)({
740
- $metadata: deserializeMetadata(output)
741
- });
742
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
743
- const doc = (0, import_smithy_client.take)(data, {
744
- Dataset: /* @__PURE__ */ __name((_) => de_Dataset(_, context), "Dataset")
745
- });
746
- Object.assign(contents, doc);
747
- return contents;
748
- }, "de_DescribeDatasetCommand");
749
- var de_DescribeIdentityPoolUsageCommand = /* @__PURE__ */ __name(async (output, context) => {
750
- if (output.statusCode !== 200 && output.statusCode >= 300) {
751
- return de_CommandError(output, context);
752
- }
753
- const contents = (0, import_smithy_client.map)({
754
- $metadata: deserializeMetadata(output)
755
- });
756
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
757
- const doc = (0, import_smithy_client.take)(data, {
758
- IdentityPoolUsage: /* @__PURE__ */ __name((_) => de_IdentityPoolUsage(_, context), "IdentityPoolUsage")
759
- });
760
- Object.assign(contents, doc);
761
- return contents;
762
- }, "de_DescribeIdentityPoolUsageCommand");
763
- var de_DescribeIdentityUsageCommand = /* @__PURE__ */ __name(async (output, context) => {
764
- if (output.statusCode !== 200 && output.statusCode >= 300) {
765
- return de_CommandError(output, context);
766
- }
767
- const contents = (0, import_smithy_client.map)({
768
- $metadata: deserializeMetadata(output)
769
- });
770
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
771
- const doc = (0, import_smithy_client.take)(data, {
772
- IdentityUsage: /* @__PURE__ */ __name((_) => de_IdentityUsage(_, context), "IdentityUsage")
773
- });
774
- Object.assign(contents, doc);
775
- return contents;
776
- }, "de_DescribeIdentityUsageCommand");
777
- var de_GetBulkPublishDetailsCommand = /* @__PURE__ */ __name(async (output, context) => {
778
- if (output.statusCode !== 200 && output.statusCode >= 300) {
779
- return de_CommandError(output, context);
780
- }
781
- const contents = (0, import_smithy_client.map)({
782
- $metadata: deserializeMetadata(output)
783
- });
784
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
785
- const doc = (0, import_smithy_client.take)(data, {
786
- BulkPublishCompleteTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "BulkPublishCompleteTime"),
787
- BulkPublishStartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "BulkPublishStartTime"),
788
- BulkPublishStatus: import_smithy_client.expectString,
789
- FailureMessage: import_smithy_client.expectString,
790
- IdentityPoolId: import_smithy_client.expectString
791
- });
792
- Object.assign(contents, doc);
793
- return contents;
794
- }, "de_GetBulkPublishDetailsCommand");
795
- var de_GetCognitoEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
796
- if (output.statusCode !== 200 && output.statusCode >= 300) {
797
- return de_CommandError(output, context);
798
- }
799
- const contents = (0, import_smithy_client.map)({
800
- $metadata: deserializeMetadata(output)
801
- });
802
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
803
- const doc = (0, import_smithy_client.take)(data, {
804
- Events: import_smithy_client._json
805
- });
806
- Object.assign(contents, doc);
807
- return contents;
808
- }, "de_GetCognitoEventsCommand");
809
- var de_GetIdentityPoolConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
810
- if (output.statusCode !== 200 && output.statusCode >= 300) {
811
- return de_CommandError(output, context);
812
- }
813
- const contents = (0, import_smithy_client.map)({
814
- $metadata: deserializeMetadata(output)
815
- });
816
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
817
- const doc = (0, import_smithy_client.take)(data, {
818
- CognitoStreams: import_smithy_client._json,
819
- IdentityPoolId: import_smithy_client.expectString,
820
- PushSync: import_smithy_client._json
821
- });
822
- Object.assign(contents, doc);
823
- return contents;
824
- }, "de_GetIdentityPoolConfigurationCommand");
825
- var de_ListDatasetsCommand = /* @__PURE__ */ __name(async (output, context) => {
826
- if (output.statusCode !== 200 && output.statusCode >= 300) {
827
- return de_CommandError(output, context);
828
- }
829
- const contents = (0, import_smithy_client.map)({
830
- $metadata: deserializeMetadata(output)
831
- });
832
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
833
- const doc = (0, import_smithy_client.take)(data, {
834
- Count: import_smithy_client.expectInt32,
835
- Datasets: /* @__PURE__ */ __name((_) => de_DatasetList(_, context), "Datasets"),
836
- NextToken: import_smithy_client.expectString
837
- });
838
- Object.assign(contents, doc);
839
- return contents;
840
- }, "de_ListDatasetsCommand");
841
- var de_ListIdentityPoolUsageCommand = /* @__PURE__ */ __name(async (output, context) => {
842
- if (output.statusCode !== 200 && output.statusCode >= 300) {
843
- return de_CommandError(output, context);
844
- }
845
- const contents = (0, import_smithy_client.map)({
846
- $metadata: deserializeMetadata(output)
847
- });
848
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
849
- const doc = (0, import_smithy_client.take)(data, {
850
- Count: import_smithy_client.expectInt32,
851
- IdentityPoolUsages: /* @__PURE__ */ __name((_) => de_IdentityPoolUsageList(_, context), "IdentityPoolUsages"),
852
- MaxResults: import_smithy_client.expectInt32,
853
- NextToken: import_smithy_client.expectString
854
- });
855
- Object.assign(contents, doc);
856
- return contents;
857
- }, "de_ListIdentityPoolUsageCommand");
858
- var de_ListRecordsCommand = /* @__PURE__ */ __name(async (output, context) => {
859
- if (output.statusCode !== 200 && output.statusCode >= 300) {
860
- return de_CommandError(output, context);
861
- }
862
- const contents = (0, import_smithy_client.map)({
863
- $metadata: deserializeMetadata(output)
864
- });
865
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
866
- const doc = (0, import_smithy_client.take)(data, {
867
- Count: import_smithy_client.expectInt32,
868
- DatasetDeletedAfterRequestedSyncCount: import_smithy_client.expectBoolean,
869
- DatasetExists: import_smithy_client.expectBoolean,
870
- DatasetSyncCount: import_smithy_client.expectLong,
871
- LastModifiedBy: import_smithy_client.expectString,
872
- MergedDatasetNames: import_smithy_client._json,
873
- NextToken: import_smithy_client.expectString,
874
- Records: /* @__PURE__ */ __name((_) => de_RecordList(_, context), "Records"),
875
- SyncSessionToken: import_smithy_client.expectString
876
- });
877
- Object.assign(contents, doc);
878
- return contents;
879
- }, "de_ListRecordsCommand");
880
- var de_RegisterDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
881
- if (output.statusCode !== 200 && output.statusCode >= 300) {
882
- return de_CommandError(output, context);
883
- }
884
- const contents = (0, import_smithy_client.map)({
885
- $metadata: deserializeMetadata(output)
886
- });
887
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
888
- const doc = (0, import_smithy_client.take)(data, {
889
- DeviceId: import_smithy_client.expectString
890
- });
891
- Object.assign(contents, doc);
892
- return contents;
893
- }, "de_RegisterDeviceCommand");
894
- var de_SetCognitoEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
895
- if (output.statusCode !== 200 && output.statusCode >= 300) {
896
- return de_CommandError(output, context);
897
- }
898
- const contents = (0, import_smithy_client.map)({
899
- $metadata: deserializeMetadata(output)
900
- });
901
- await (0, import_smithy_client.collectBody)(output.body, context);
902
- return contents;
903
- }, "de_SetCognitoEventsCommand");
904
- var de_SetIdentityPoolConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
905
- if (output.statusCode !== 200 && output.statusCode >= 300) {
906
- return de_CommandError(output, context);
907
- }
908
- const contents = (0, import_smithy_client.map)({
909
- $metadata: deserializeMetadata(output)
910
- });
911
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
912
- const doc = (0, import_smithy_client.take)(data, {
913
- CognitoStreams: import_smithy_client._json,
914
- IdentityPoolId: import_smithy_client.expectString,
915
- PushSync: import_smithy_client._json
916
- });
917
- Object.assign(contents, doc);
918
- return contents;
919
- }, "de_SetIdentityPoolConfigurationCommand");
920
- var de_SubscribeToDatasetCommand = /* @__PURE__ */ __name(async (output, context) => {
921
- if (output.statusCode !== 200 && output.statusCode >= 300) {
922
- return de_CommandError(output, context);
923
- }
924
- const contents = (0, import_smithy_client.map)({
925
- $metadata: deserializeMetadata(output)
926
- });
927
- await (0, import_smithy_client.collectBody)(output.body, context);
928
- return contents;
929
- }, "de_SubscribeToDatasetCommand");
930
- var de_UnsubscribeFromDatasetCommand = /* @__PURE__ */ __name(async (output, context) => {
931
- if (output.statusCode !== 200 && output.statusCode >= 300) {
932
- return de_CommandError(output, context);
933
- }
934
- const contents = (0, import_smithy_client.map)({
935
- $metadata: deserializeMetadata(output)
936
- });
937
- await (0, import_smithy_client.collectBody)(output.body, context);
938
- return contents;
939
- }, "de_UnsubscribeFromDatasetCommand");
940
- var de_UpdateRecordsCommand = /* @__PURE__ */ __name(async (output, context) => {
941
- if (output.statusCode !== 200 && output.statusCode >= 300) {
942
- return de_CommandError(output, context);
943
- }
944
- const contents = (0, import_smithy_client.map)({
945
- $metadata: deserializeMetadata(output)
946
- });
947
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
948
- const doc = (0, import_smithy_client.take)(data, {
949
- Records: /* @__PURE__ */ __name((_) => de_RecordList(_, context), "Records")
950
- });
951
- Object.assign(contents, doc);
952
- return contents;
953
- }, "de_UpdateRecordsCommand");
954
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
955
- const parsedOutput = {
956
- ...output,
957
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
958
- };
959
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
960
- switch (errorCode) {
961
- case "AlreadyStreamedException":
962
- case "com.amazonaws.cognitosync#AlreadyStreamedException":
963
- throw await de_AlreadyStreamedExceptionRes(parsedOutput, context);
964
- case "DuplicateRequestException":
965
- case "com.amazonaws.cognitosync#DuplicateRequestException":
966
- throw await de_DuplicateRequestExceptionRes(parsedOutput, context);
967
- case "InternalErrorException":
968
- case "com.amazonaws.cognitosync#InternalErrorException":
969
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
970
- case "InvalidParameterException":
971
- case "com.amazonaws.cognitosync#InvalidParameterException":
972
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
973
- case "NotAuthorizedException":
974
- case "com.amazonaws.cognitosync#NotAuthorizedException":
975
- throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
976
- case "ResourceNotFoundException":
977
- case "com.amazonaws.cognitosync#ResourceNotFoundException":
978
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
979
- case "ResourceConflictException":
980
- case "com.amazonaws.cognitosync#ResourceConflictException":
981
- throw await de_ResourceConflictExceptionRes(parsedOutput, context);
982
- case "TooManyRequestsException":
983
- case "com.amazonaws.cognitosync#TooManyRequestsException":
984
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
985
- case "InvalidConfigurationException":
986
- case "com.amazonaws.cognitosync#InvalidConfigurationException":
987
- throw await de_InvalidConfigurationExceptionRes(parsedOutput, context);
988
- case "ConcurrentModificationException":
989
- case "com.amazonaws.cognitosync#ConcurrentModificationException":
990
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
991
- case "InvalidLambdaFunctionOutputException":
992
- case "com.amazonaws.cognitosync#InvalidLambdaFunctionOutputException":
993
- throw await de_InvalidLambdaFunctionOutputExceptionRes(parsedOutput, context);
994
- case "LambdaThrottledException":
995
- case "com.amazonaws.cognitosync#LambdaThrottledException":
996
- throw await de_LambdaThrottledExceptionRes(parsedOutput, context);
997
- case "LimitExceededException":
998
- case "com.amazonaws.cognitosync#LimitExceededException":
999
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1000
- default:
1001
- const parsedBody = parsedOutput.body;
1002
- return throwDefaultError({
1003
- output,
1004
- parsedBody,
1005
- errorCode
1006
- });
1007
- }
1008
- }, "de_CommandError");
1009
- var throwDefaultError = (0, import_smithy_client.withBaseException)(CognitoSyncServiceException);
1010
- var de_AlreadyStreamedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1011
- const contents = (0, import_smithy_client.map)({});
1012
- const data = parsedOutput.body;
1013
- const doc = (0, import_smithy_client.take)(data, {
1014
- message: import_smithy_client.expectString
1015
- });
1016
- Object.assign(contents, doc);
1017
- const exception = new AlreadyStreamedException({
1018
- $metadata: deserializeMetadata(parsedOutput),
1019
- ...contents
1020
- });
1021
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1022
- }, "de_AlreadyStreamedExceptionRes");
1023
- var de_ConcurrentModificationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1024
- const contents = (0, import_smithy_client.map)({});
1025
- const data = parsedOutput.body;
1026
- const doc = (0, import_smithy_client.take)(data, {
1027
- message: import_smithy_client.expectString
1028
- });
1029
- Object.assign(contents, doc);
1030
- const exception = new ConcurrentModificationException({
1031
- $metadata: deserializeMetadata(parsedOutput),
1032
- ...contents
1033
- });
1034
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1035
- }, "de_ConcurrentModificationExceptionRes");
1036
- var de_DuplicateRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1037
- const contents = (0, import_smithy_client.map)({});
1038
- const data = parsedOutput.body;
1039
- const doc = (0, import_smithy_client.take)(data, {
1040
- message: import_smithy_client.expectString
1041
- });
1042
- Object.assign(contents, doc);
1043
- const exception = new DuplicateRequestException({
1044
- $metadata: deserializeMetadata(parsedOutput),
1045
- ...contents
1046
- });
1047
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1048
- }, "de_DuplicateRequestExceptionRes");
1049
- var de_InternalErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1050
- const contents = (0, import_smithy_client.map)({});
1051
- const data = parsedOutput.body;
1052
- const doc = (0, import_smithy_client.take)(data, {
1053
- message: import_smithy_client.expectString
1054
- });
1055
- Object.assign(contents, doc);
1056
- const exception = new InternalErrorException({
1057
- $metadata: deserializeMetadata(parsedOutput),
1058
- ...contents
1059
- });
1060
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1061
- }, "de_InternalErrorExceptionRes");
1062
- var de_InvalidConfigurationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1063
- const contents = (0, import_smithy_client.map)({});
1064
- const data = parsedOutput.body;
1065
- const doc = (0, import_smithy_client.take)(data, {
1066
- message: import_smithy_client.expectString
1067
- });
1068
- Object.assign(contents, doc);
1069
- const exception = new InvalidConfigurationException({
1070
- $metadata: deserializeMetadata(parsedOutput),
1071
- ...contents
1072
- });
1073
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1074
- }, "de_InvalidConfigurationExceptionRes");
1075
- var de_InvalidLambdaFunctionOutputExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1076
- const contents = (0, import_smithy_client.map)({});
1077
- const data = parsedOutput.body;
1078
- const doc = (0, import_smithy_client.take)(data, {
1079
- message: import_smithy_client.expectString
1080
- });
1081
- Object.assign(contents, doc);
1082
- const exception = new InvalidLambdaFunctionOutputException({
1083
- $metadata: deserializeMetadata(parsedOutput),
1084
- ...contents
1085
- });
1086
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1087
- }, "de_InvalidLambdaFunctionOutputExceptionRes");
1088
- var de_InvalidParameterExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1089
- const contents = (0, import_smithy_client.map)({});
1090
- const data = parsedOutput.body;
1091
- const doc = (0, import_smithy_client.take)(data, {
1092
- message: import_smithy_client.expectString
1093
- });
1094
- Object.assign(contents, doc);
1095
- const exception = new InvalidParameterException({
1096
- $metadata: deserializeMetadata(parsedOutput),
1097
- ...contents
1098
- });
1099
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1100
- }, "de_InvalidParameterExceptionRes");
1101
- var de_LambdaThrottledExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1102
- const contents = (0, import_smithy_client.map)({});
1103
- const data = parsedOutput.body;
1104
- const doc = (0, import_smithy_client.take)(data, {
1105
- message: import_smithy_client.expectString
1106
- });
1107
- Object.assign(contents, doc);
1108
- const exception = new LambdaThrottledException({
1109
- $metadata: deserializeMetadata(parsedOutput),
1110
- ...contents
1111
- });
1112
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1113
- }, "de_LambdaThrottledExceptionRes");
1114
- var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1115
- const contents = (0, import_smithy_client.map)({});
1116
- const data = parsedOutput.body;
1117
- const doc = (0, import_smithy_client.take)(data, {
1118
- message: import_smithy_client.expectString
1119
- });
1120
- Object.assign(contents, doc);
1121
- const exception = new LimitExceededException({
1122
- $metadata: deserializeMetadata(parsedOutput),
1123
- ...contents
1124
- });
1125
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1126
- }, "de_LimitExceededExceptionRes");
1127
- var de_NotAuthorizedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1128
- const contents = (0, import_smithy_client.map)({});
1129
- const data = parsedOutput.body;
1130
- const doc = (0, import_smithy_client.take)(data, {
1131
- message: import_smithy_client.expectString
1132
- });
1133
- Object.assign(contents, doc);
1134
- const exception = new NotAuthorizedException({
1135
- $metadata: deserializeMetadata(parsedOutput),
1136
- ...contents
1137
- });
1138
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1139
- }, "de_NotAuthorizedExceptionRes");
1140
- var de_ResourceConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1141
- const contents = (0, import_smithy_client.map)({});
1142
- const data = parsedOutput.body;
1143
- const doc = (0, import_smithy_client.take)(data, {
1144
- message: import_smithy_client.expectString
1145
- });
1146
- Object.assign(contents, doc);
1147
- const exception = new ResourceConflictException({
1148
- $metadata: deserializeMetadata(parsedOutput),
1149
- ...contents
1150
- });
1151
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1152
- }, "de_ResourceConflictExceptionRes");
1153
- var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1154
- const contents = (0, import_smithy_client.map)({});
1155
- const data = parsedOutput.body;
1156
- const doc = (0, import_smithy_client.take)(data, {
1157
- message: import_smithy_client.expectString
1158
- });
1159
- Object.assign(contents, doc);
1160
- const exception = new ResourceNotFoundException({
1161
- $metadata: deserializeMetadata(parsedOutput),
1162
- ...contents
1163
- });
1164
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1165
- }, "de_ResourceNotFoundExceptionRes");
1166
- var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1167
- const contents = (0, import_smithy_client.map)({});
1168
- const data = parsedOutput.body;
1169
- const doc = (0, import_smithy_client.take)(data, {
1170
- message: import_smithy_client.expectString
1171
- });
1172
- Object.assign(contents, doc);
1173
- const exception = new TooManyRequestsException({
1174
- $metadata: deserializeMetadata(parsedOutput),
1175
- ...contents
1176
- });
1177
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1178
- }, "de_TooManyRequestsExceptionRes");
1179
- var se_RecordPatch = /* @__PURE__ */ __name((input, context) => {
1180
- return (0, import_smithy_client.take)(input, {
1181
- DeviceLastModifiedDate: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "DeviceLastModifiedDate"),
1182
- Key: [],
1183
- Op: [],
1184
- SyncCount: [],
1185
- Value: []
1186
- });
1187
- }, "se_RecordPatch");
1188
- var se_RecordPatchList = /* @__PURE__ */ __name((input, context) => {
1189
- return input.filter((e) => e != null).map((entry) => {
1190
- return se_RecordPatch(entry, context);
1191
- });
1192
- }, "se_RecordPatchList");
1193
- var de_Dataset = /* @__PURE__ */ __name((output, context) => {
1194
- return (0, import_smithy_client.take)(output, {
1195
- CreationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationDate"),
1196
- DataStorage: import_smithy_client.expectLong,
1197
- DatasetName: import_smithy_client.expectString,
1198
- IdentityId: import_smithy_client.expectString,
1199
- LastModifiedBy: import_smithy_client.expectString,
1200
- LastModifiedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModifiedDate"),
1201
- NumRecords: import_smithy_client.expectLong
1202
- });
1203
- }, "de_Dataset");
1204
- var de_DatasetList = /* @__PURE__ */ __name((output, context) => {
1205
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1206
- return de_Dataset(entry, context);
1207
- });
1208
- return retVal;
1209
- }, "de_DatasetList");
1210
- var de_IdentityPoolUsage = /* @__PURE__ */ __name((output, context) => {
1211
- return (0, import_smithy_client.take)(output, {
1212
- DataStorage: import_smithy_client.expectLong,
1213
- IdentityPoolId: import_smithy_client.expectString,
1214
- LastModifiedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModifiedDate"),
1215
- SyncSessionsCount: import_smithy_client.expectLong
1216
- });
1217
- }, "de_IdentityPoolUsage");
1218
- var de_IdentityPoolUsageList = /* @__PURE__ */ __name((output, context) => {
1219
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1220
- return de_IdentityPoolUsage(entry, context);
1221
- });
1222
- return retVal;
1223
- }, "de_IdentityPoolUsageList");
1224
- var de_IdentityUsage = /* @__PURE__ */ __name((output, context) => {
1225
- return (0, import_smithy_client.take)(output, {
1226
- DataStorage: import_smithy_client.expectLong,
1227
- DatasetCount: import_smithy_client.expectInt32,
1228
- IdentityId: import_smithy_client.expectString,
1229
- IdentityPoolId: import_smithy_client.expectString,
1230
- LastModifiedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModifiedDate")
1231
- });
1232
- }, "de_IdentityUsage");
1233
- var de__Record = /* @__PURE__ */ __name((output, context) => {
1234
- return (0, import_smithy_client.take)(output, {
1235
- DeviceLastModifiedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "DeviceLastModifiedDate"),
1236
- Key: import_smithy_client.expectString,
1237
- LastModifiedBy: import_smithy_client.expectString,
1238
- LastModifiedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModifiedDate"),
1239
- SyncCount: import_smithy_client.expectLong,
1240
- Value: import_smithy_client.expectString
1241
- });
1242
- }, "de__Record");
1243
- var de_RecordList = /* @__PURE__ */ __name((output, context) => {
1244
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1245
- return de__Record(entry, context);
1246
- });
1247
- return retVal;
1248
- }, "de_RecordList");
1249
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1250
- httpStatusCode: output.statusCode,
1251
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1252
- extendedRequestId: output.headers["x-amz-id-2"],
1253
- cfId: output.headers["x-amz-cf-id"]
1254
- }), "deserializeMetadata");
1255
- var _CC = "ClientContext";
1256
- var _LSC = "LastSyncCount";
1257
- var _MR = "MaxResults";
1258
- var _NT = "NextToken";
1259
- var _SST = "SyncSessionToken";
1260
- var _lSC = "lastSyncCount";
1261
- var _mR = "maxResults";
1262
- var _nT = "nextToken";
1263
- var _sST = "syncSessionToken";
1264
- var _xacc = "x-amz-client-context";
1265
-
1266
- // src/commands/BulkPublishCommand.ts
1267
- var BulkPublishCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1268
- return [
1269
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1270
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1271
- ];
1272
- }).s("AWSCognitoSyncService", "BulkPublish", {}).n("CognitoSyncClient", "BulkPublishCommand").f(void 0, void 0).ser(se_BulkPublishCommand).de(de_BulkPublishCommand).build() {
1273
- static {
1274
- __name(this, "BulkPublishCommand");
1275
- }
244
+ class ConcurrentModificationException extends CognitoSyncServiceException {
245
+ name = "ConcurrentModificationException";
246
+ $fault = "client";
247
+ constructor(opts) {
248
+ super({
249
+ name: "ConcurrentModificationException",
250
+ $fault: "client",
251
+ ...opts,
252
+ });
253
+ Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
254
+ }
255
+ }
256
+ class InvalidLambdaFunctionOutputException extends CognitoSyncServiceException {
257
+ name = "InvalidLambdaFunctionOutputException";
258
+ $fault = "client";
259
+ constructor(opts) {
260
+ super({
261
+ name: "InvalidLambdaFunctionOutputException",
262
+ $fault: "client",
263
+ ...opts,
264
+ });
265
+ Object.setPrototypeOf(this, InvalidLambdaFunctionOutputException.prototype);
266
+ }
267
+ }
268
+ class LambdaThrottledException extends CognitoSyncServiceException {
269
+ name = "LambdaThrottledException";
270
+ $fault = "client";
271
+ constructor(opts) {
272
+ super({
273
+ name: "LambdaThrottledException",
274
+ $fault: "client",
275
+ ...opts,
276
+ });
277
+ Object.setPrototypeOf(this, LambdaThrottledException.prototype);
278
+ }
279
+ }
280
+ class LimitExceededException extends CognitoSyncServiceException {
281
+ name = "LimitExceededException";
282
+ $fault = "client";
283
+ constructor(opts) {
284
+ super({
285
+ name: "LimitExceededException",
286
+ $fault: "client",
287
+ ...opts,
288
+ });
289
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
290
+ }
291
+ }
292
+ const Operation = {
293
+ remove: "remove",
294
+ replace: "replace",
1276
295
  };
1277
296
 
1278
- // src/commands/DeleteDatasetCommand.ts
1279
-
1280
-
1281
-
1282
- var DeleteDatasetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1283
- return [
1284
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1285
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1286
- ];
1287
- }).s("AWSCognitoSyncService", "DeleteDataset", {}).n("CognitoSyncClient", "DeleteDatasetCommand").f(void 0, void 0).ser(se_DeleteDatasetCommand).de(de_DeleteDatasetCommand).build() {
1288
- static {
1289
- __name(this, "DeleteDatasetCommand");
1290
- }
297
+ const se_BulkPublishCommand = async (input, context) => {
298
+ const b = core.requestBuilder(input, context);
299
+ const headers = {};
300
+ b.bp("/identitypools/{IdentityPoolId}/bulkpublish");
301
+ b.p("IdentityPoolId", () => input.IdentityPoolId, "{IdentityPoolId}", false);
302
+ let body;
303
+ b.m("POST").h(headers).b(body);
304
+ return b.build();
1291
305
  };
1292
-
1293
- // src/commands/DescribeDatasetCommand.ts
1294
-
1295
-
1296
-
1297
- var DescribeDatasetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1298
- return [
1299
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1300
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1301
- ];
1302
- }).s("AWSCognitoSyncService", "DescribeDataset", {}).n("CognitoSyncClient", "DescribeDatasetCommand").f(void 0, void 0).ser(se_DescribeDatasetCommand).de(de_DescribeDatasetCommand).build() {
1303
- static {
1304
- __name(this, "DescribeDatasetCommand");
1305
- }
306
+ const se_DeleteDatasetCommand = async (input, context) => {
307
+ const b = core.requestBuilder(input, context);
308
+ const headers = {};
309
+ b.bp("/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}");
310
+ b.p("IdentityPoolId", () => input.IdentityPoolId, "{IdentityPoolId}", false);
311
+ b.p("IdentityId", () => input.IdentityId, "{IdentityId}", false);
312
+ b.p("DatasetName", () => input.DatasetName, "{DatasetName}", false);
313
+ let body;
314
+ b.m("DELETE").h(headers).b(body);
315
+ return b.build();
1306
316
  };
1307
-
1308
- // src/commands/DescribeIdentityPoolUsageCommand.ts
1309
-
1310
-
1311
-
1312
- var DescribeIdentityPoolUsageCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1313
- return [
1314
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1315
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1316
- ];
1317
- }).s("AWSCognitoSyncService", "DescribeIdentityPoolUsage", {}).n("CognitoSyncClient", "DescribeIdentityPoolUsageCommand").f(void 0, void 0).ser(se_DescribeIdentityPoolUsageCommand).de(de_DescribeIdentityPoolUsageCommand).build() {
1318
- static {
1319
- __name(this, "DescribeIdentityPoolUsageCommand");
1320
- }
317
+ const se_DescribeDatasetCommand = async (input, context) => {
318
+ const b = core.requestBuilder(input, context);
319
+ const headers = {};
320
+ b.bp("/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}");
321
+ b.p("IdentityPoolId", () => input.IdentityPoolId, "{IdentityPoolId}", false);
322
+ b.p("IdentityId", () => input.IdentityId, "{IdentityId}", false);
323
+ b.p("DatasetName", () => input.DatasetName, "{DatasetName}", false);
324
+ let body;
325
+ b.m("GET").h(headers).b(body);
326
+ return b.build();
1321
327
  };
1322
-
1323
- // src/commands/DescribeIdentityUsageCommand.ts
1324
-
1325
-
1326
-
1327
- var DescribeIdentityUsageCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1328
- return [
1329
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1330
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1331
- ];
1332
- }).s("AWSCognitoSyncService", "DescribeIdentityUsage", {}).n("CognitoSyncClient", "DescribeIdentityUsageCommand").f(void 0, void 0).ser(se_DescribeIdentityUsageCommand).de(de_DescribeIdentityUsageCommand).build() {
1333
- static {
1334
- __name(this, "DescribeIdentityUsageCommand");
1335
- }
328
+ const se_DescribeIdentityPoolUsageCommand = async (input, context) => {
329
+ const b = core.requestBuilder(input, context);
330
+ const headers = {};
331
+ b.bp("/identitypools/{IdentityPoolId}");
332
+ b.p("IdentityPoolId", () => input.IdentityPoolId, "{IdentityPoolId}", false);
333
+ let body;
334
+ b.m("GET").h(headers).b(body);
335
+ return b.build();
1336
336
  };
1337
-
1338
- // src/commands/GetBulkPublishDetailsCommand.ts
1339
-
1340
-
1341
-
1342
- var GetBulkPublishDetailsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1343
- return [
1344
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1345
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1346
- ];
1347
- }).s("AWSCognitoSyncService", "GetBulkPublishDetails", {}).n("CognitoSyncClient", "GetBulkPublishDetailsCommand").f(void 0, void 0).ser(se_GetBulkPublishDetailsCommand).de(de_GetBulkPublishDetailsCommand).build() {
1348
- static {
1349
- __name(this, "GetBulkPublishDetailsCommand");
1350
- }
337
+ const se_DescribeIdentityUsageCommand = async (input, context) => {
338
+ const b = core.requestBuilder(input, context);
339
+ const headers = {};
340
+ b.bp("/identitypools/{IdentityPoolId}/identities/{IdentityId}");
341
+ b.p("IdentityPoolId", () => input.IdentityPoolId, "{IdentityPoolId}", false);
342
+ b.p("IdentityId", () => input.IdentityId, "{IdentityId}", false);
343
+ let body;
344
+ b.m("GET").h(headers).b(body);
345
+ return b.build();
1351
346
  };
1352
-
1353
- // src/commands/GetCognitoEventsCommand.ts
1354
-
1355
-
1356
-
1357
- var GetCognitoEventsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1358
- return [
1359
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1360
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1361
- ];
1362
- }).s("AWSCognitoSyncService", "GetCognitoEvents", {}).n("CognitoSyncClient", "GetCognitoEventsCommand").f(void 0, void 0).ser(se_GetCognitoEventsCommand).de(de_GetCognitoEventsCommand).build() {
1363
- static {
1364
- __name(this, "GetCognitoEventsCommand");
1365
- }
347
+ const se_GetBulkPublishDetailsCommand = async (input, context) => {
348
+ const b = core.requestBuilder(input, context);
349
+ const headers = {};
350
+ b.bp("/identitypools/{IdentityPoolId}/getBulkPublishDetails");
351
+ b.p("IdentityPoolId", () => input.IdentityPoolId, "{IdentityPoolId}", false);
352
+ let body;
353
+ b.m("POST").h(headers).b(body);
354
+ return b.build();
1366
355
  };
1367
-
1368
- // src/commands/GetIdentityPoolConfigurationCommand.ts
1369
-
1370
-
1371
-
1372
- var GetIdentityPoolConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1373
- return [
1374
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1375
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1376
- ];
1377
- }).s("AWSCognitoSyncService", "GetIdentityPoolConfiguration", {}).n("CognitoSyncClient", "GetIdentityPoolConfigurationCommand").f(void 0, void 0).ser(se_GetIdentityPoolConfigurationCommand).de(de_GetIdentityPoolConfigurationCommand).build() {
1378
- static {
1379
- __name(this, "GetIdentityPoolConfigurationCommand");
1380
- }
356
+ const se_GetCognitoEventsCommand = async (input, context) => {
357
+ const b = core.requestBuilder(input, context);
358
+ const headers = {};
359
+ b.bp("/identitypools/{IdentityPoolId}/events");
360
+ b.p("IdentityPoolId", () => input.IdentityPoolId, "{IdentityPoolId}", false);
361
+ let body;
362
+ b.m("GET").h(headers).b(body);
363
+ return b.build();
1381
364
  };
1382
-
1383
- // src/commands/ListDatasetsCommand.ts
1384
-
1385
-
1386
-
1387
- var ListDatasetsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1388
- return [
1389
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1390
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1391
- ];
1392
- }).s("AWSCognitoSyncService", "ListDatasets", {}).n("CognitoSyncClient", "ListDatasetsCommand").f(void 0, void 0).ser(se_ListDatasetsCommand).de(de_ListDatasetsCommand).build() {
1393
- static {
1394
- __name(this, "ListDatasetsCommand");
1395
- }
365
+ const se_GetIdentityPoolConfigurationCommand = async (input, context) => {
366
+ const b = core.requestBuilder(input, context);
367
+ const headers = {};
368
+ b.bp("/identitypools/{IdentityPoolId}/configuration");
369
+ b.p("IdentityPoolId", () => input.IdentityPoolId, "{IdentityPoolId}", false);
370
+ let body;
371
+ b.m("GET").h(headers).b(body);
372
+ return b.build();
1396
373
  };
1397
-
1398
- // src/commands/ListIdentityPoolUsageCommand.ts
1399
-
1400
-
1401
-
1402
- var ListIdentityPoolUsageCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1403
- return [
1404
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1405
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1406
- ];
1407
- }).s("AWSCognitoSyncService", "ListIdentityPoolUsage", {}).n("CognitoSyncClient", "ListIdentityPoolUsageCommand").f(void 0, void 0).ser(se_ListIdentityPoolUsageCommand).de(de_ListIdentityPoolUsageCommand).build() {
1408
- static {
1409
- __name(this, "ListIdentityPoolUsageCommand");
1410
- }
374
+ const se_ListDatasetsCommand = async (input, context) => {
375
+ const b = core.requestBuilder(input, context);
376
+ const headers = {};
377
+ b.bp("/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets");
378
+ b.p("IdentityPoolId", () => input.IdentityPoolId, "{IdentityPoolId}", false);
379
+ b.p("IdentityId", () => input.IdentityId, "{IdentityId}", false);
380
+ const query = smithyClient.map({
381
+ [_nT]: [, input[_NT]],
382
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
383
+ });
384
+ let body;
385
+ b.m("GET").h(headers).q(query).b(body);
386
+ return b.build();
1411
387
  };
1412
-
1413
- // src/commands/ListRecordsCommand.ts
1414
-
1415
-
1416
-
1417
- var ListRecordsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1418
- return [
1419
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1420
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1421
- ];
1422
- }).s("AWSCognitoSyncService", "ListRecords", {}).n("CognitoSyncClient", "ListRecordsCommand").f(void 0, void 0).ser(se_ListRecordsCommand).de(de_ListRecordsCommand).build() {
1423
- static {
1424
- __name(this, "ListRecordsCommand");
1425
- }
388
+ const se_ListIdentityPoolUsageCommand = async (input, context) => {
389
+ const b = core.requestBuilder(input, context);
390
+ const headers = {};
391
+ b.bp("/identitypools");
392
+ const query = smithyClient.map({
393
+ [_nT]: [, input[_NT]],
394
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
395
+ });
396
+ let body;
397
+ b.m("GET").h(headers).q(query).b(body);
398
+ return b.build();
1426
399
  };
1427
-
1428
- // src/commands/RegisterDeviceCommand.ts
1429
-
1430
-
1431
-
1432
- var RegisterDeviceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1433
- return [
1434
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1435
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1436
- ];
1437
- }).s("AWSCognitoSyncService", "RegisterDevice", {}).n("CognitoSyncClient", "RegisterDeviceCommand").f(void 0, void 0).ser(se_RegisterDeviceCommand).de(de_RegisterDeviceCommand).build() {
1438
- static {
1439
- __name(this, "RegisterDeviceCommand");
1440
- }
400
+ const se_ListRecordsCommand = async (input, context) => {
401
+ const b = core.requestBuilder(input, context);
402
+ const headers = {};
403
+ b.bp("/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/records");
404
+ b.p("IdentityPoolId", () => input.IdentityPoolId, "{IdentityPoolId}", false);
405
+ b.p("IdentityId", () => input.IdentityId, "{IdentityId}", false);
406
+ b.p("DatasetName", () => input.DatasetName, "{DatasetName}", false);
407
+ const query = smithyClient.map({
408
+ [_lSC]: [() => input.LastSyncCount !== void 0, () => input[_LSC].toString()],
409
+ [_nT]: [, input[_NT]],
410
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
411
+ [_sST]: [, input[_SST]],
412
+ });
413
+ let body;
414
+ b.m("GET").h(headers).q(query).b(body);
415
+ return b.build();
1441
416
  };
1442
-
1443
- // src/commands/SetCognitoEventsCommand.ts
1444
-
1445
-
1446
-
1447
- var SetCognitoEventsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1448
- return [
1449
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1450
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1451
- ];
1452
- }).s("AWSCognitoSyncService", "SetCognitoEvents", {}).n("CognitoSyncClient", "SetCognitoEventsCommand").f(void 0, void 0).ser(se_SetCognitoEventsCommand).de(de_SetCognitoEventsCommand).build() {
1453
- static {
1454
- __name(this, "SetCognitoEventsCommand");
1455
- }
417
+ const se_RegisterDeviceCommand = async (input, context) => {
418
+ const b = core.requestBuilder(input, context);
419
+ const headers = {
420
+ "content-type": "application/json",
421
+ };
422
+ b.bp("/identitypools/{IdentityPoolId}/identity/{IdentityId}/device");
423
+ b.p("IdentityPoolId", () => input.IdentityPoolId, "{IdentityPoolId}", false);
424
+ b.p("IdentityId", () => input.IdentityId, "{IdentityId}", false);
425
+ let body;
426
+ body = JSON.stringify(smithyClient.take(input, {
427
+ Platform: [],
428
+ Token: [],
429
+ }));
430
+ b.m("POST").h(headers).b(body);
431
+ return b.build();
1456
432
  };
1457
-
1458
- // src/commands/SetIdentityPoolConfigurationCommand.ts
1459
-
1460
-
1461
-
1462
- var SetIdentityPoolConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1463
- return [
1464
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1465
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1466
- ];
1467
- }).s("AWSCognitoSyncService", "SetIdentityPoolConfiguration", {}).n("CognitoSyncClient", "SetIdentityPoolConfigurationCommand").f(void 0, void 0).ser(se_SetIdentityPoolConfigurationCommand).de(de_SetIdentityPoolConfigurationCommand).build() {
1468
- static {
1469
- __name(this, "SetIdentityPoolConfigurationCommand");
1470
- }
433
+ const se_SetCognitoEventsCommand = async (input, context) => {
434
+ const b = core.requestBuilder(input, context);
435
+ const headers = {
436
+ "content-type": "application/json",
437
+ };
438
+ b.bp("/identitypools/{IdentityPoolId}/events");
439
+ b.p("IdentityPoolId", () => input.IdentityPoolId, "{IdentityPoolId}", false);
440
+ let body;
441
+ body = JSON.stringify(smithyClient.take(input, {
442
+ Events: (_) => smithyClient._json(_),
443
+ }));
444
+ b.m("POST").h(headers).b(body);
445
+ return b.build();
1471
446
  };
1472
-
1473
- // src/commands/SubscribeToDatasetCommand.ts
1474
-
1475
-
1476
-
1477
- var SubscribeToDatasetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1478
- return [
1479
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1480
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1481
- ];
1482
- }).s("AWSCognitoSyncService", "SubscribeToDataset", {}).n("CognitoSyncClient", "SubscribeToDatasetCommand").f(void 0, void 0).ser(se_SubscribeToDatasetCommand).de(de_SubscribeToDatasetCommand).build() {
1483
- static {
1484
- __name(this, "SubscribeToDatasetCommand");
1485
- }
447
+ const se_SetIdentityPoolConfigurationCommand = async (input, context) => {
448
+ const b = core.requestBuilder(input, context);
449
+ const headers = {
450
+ "content-type": "application/json",
451
+ };
452
+ b.bp("/identitypools/{IdentityPoolId}/configuration");
453
+ b.p("IdentityPoolId", () => input.IdentityPoolId, "{IdentityPoolId}", false);
454
+ let body;
455
+ body = JSON.stringify(smithyClient.take(input, {
456
+ CognitoStreams: (_) => smithyClient._json(_),
457
+ PushSync: (_) => smithyClient._json(_),
458
+ }));
459
+ b.m("POST").h(headers).b(body);
460
+ return b.build();
1486
461
  };
1487
-
1488
- // src/commands/UnsubscribeFromDatasetCommand.ts
1489
-
1490
-
1491
-
1492
- var UnsubscribeFromDatasetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1493
- return [
1494
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1495
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1496
- ];
1497
- }).s("AWSCognitoSyncService", "UnsubscribeFromDataset", {}).n("CognitoSyncClient", "UnsubscribeFromDatasetCommand").f(void 0, void 0).ser(se_UnsubscribeFromDatasetCommand).de(de_UnsubscribeFromDatasetCommand).build() {
1498
- static {
1499
- __name(this, "UnsubscribeFromDatasetCommand");
1500
- }
462
+ const se_SubscribeToDatasetCommand = async (input, context) => {
463
+ const b = core.requestBuilder(input, context);
464
+ const headers = {};
465
+ b.bp("/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/subscriptions/{DeviceId}");
466
+ b.p("IdentityPoolId", () => input.IdentityPoolId, "{IdentityPoolId}", false);
467
+ b.p("IdentityId", () => input.IdentityId, "{IdentityId}", false);
468
+ b.p("DatasetName", () => input.DatasetName, "{DatasetName}", false);
469
+ b.p("DeviceId", () => input.DeviceId, "{DeviceId}", false);
470
+ let body;
471
+ b.m("POST").h(headers).b(body);
472
+ return b.build();
1501
473
  };
1502
-
1503
- // src/commands/UpdateRecordsCommand.ts
1504
-
1505
-
1506
-
1507
- var UpdateRecordsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1508
- return [
1509
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1510
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1511
- ];
1512
- }).s("AWSCognitoSyncService", "UpdateRecords", {}).n("CognitoSyncClient", "UpdateRecordsCommand").f(void 0, void 0).ser(se_UpdateRecordsCommand).de(de_UpdateRecordsCommand).build() {
1513
- static {
1514
- __name(this, "UpdateRecordsCommand");
1515
- }
474
+ const se_UnsubscribeFromDatasetCommand = async (input, context) => {
475
+ const b = core.requestBuilder(input, context);
476
+ const headers = {};
477
+ b.bp("/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/subscriptions/{DeviceId}");
478
+ b.p("IdentityPoolId", () => input.IdentityPoolId, "{IdentityPoolId}", false);
479
+ b.p("IdentityId", () => input.IdentityId, "{IdentityId}", false);
480
+ b.p("DatasetName", () => input.DatasetName, "{DatasetName}", false);
481
+ b.p("DeviceId", () => input.DeviceId, "{DeviceId}", false);
482
+ let body;
483
+ b.m("DELETE").h(headers).b(body);
484
+ return b.build();
1516
485
  };
1517
-
1518
- // src/CognitoSync.ts
1519
- var commands = {
1520
- BulkPublishCommand,
1521
- DeleteDatasetCommand,
1522
- DescribeDatasetCommand,
1523
- DescribeIdentityPoolUsageCommand,
1524
- DescribeIdentityUsageCommand,
1525
- GetBulkPublishDetailsCommand,
1526
- GetCognitoEventsCommand,
1527
- GetIdentityPoolConfigurationCommand,
1528
- ListDatasetsCommand,
1529
- ListIdentityPoolUsageCommand,
1530
- ListRecordsCommand,
1531
- RegisterDeviceCommand,
1532
- SetCognitoEventsCommand,
1533
- SetIdentityPoolConfigurationCommand,
1534
- SubscribeToDatasetCommand,
1535
- UnsubscribeFromDatasetCommand,
1536
- UpdateRecordsCommand
1537
- };
1538
- var CognitoSync = class extends CognitoSyncClient {
1539
- static {
1540
- __name(this, "CognitoSync");
1541
- }
1542
- };
1543
- (0, import_smithy_client.createAggregatedClient)(commands, CognitoSync);
1544
- // Annotate the CommonJS export names for ESM import in node:
1545
-
1546
- 0 && (module.exports = {
1547
- CognitoSyncServiceException,
1548
- __Client,
1549
- CognitoSyncClient,
1550
- CognitoSync,
1551
- $Command,
1552
- BulkPublishCommand,
1553
- DeleteDatasetCommand,
1554
- DescribeDatasetCommand,
1555
- DescribeIdentityPoolUsageCommand,
1556
- DescribeIdentityUsageCommand,
1557
- GetBulkPublishDetailsCommand,
1558
- GetCognitoEventsCommand,
1559
- GetIdentityPoolConfigurationCommand,
1560
- ListDatasetsCommand,
1561
- ListIdentityPoolUsageCommand,
1562
- ListRecordsCommand,
1563
- RegisterDeviceCommand,
1564
- SetCognitoEventsCommand,
1565
- SetIdentityPoolConfigurationCommand,
1566
- SubscribeToDatasetCommand,
1567
- UnsubscribeFromDatasetCommand,
1568
- UpdateRecordsCommand,
1569
- AlreadyStreamedException,
1570
- DuplicateRequestException,
1571
- InternalErrorException,
1572
- InvalidParameterException,
1573
- NotAuthorizedException,
1574
- ResourceNotFoundException,
1575
- ResourceConflictException,
1576
- TooManyRequestsException,
1577
- BulkPublishStatus,
1578
- StreamingStatus,
1579
- InvalidConfigurationException,
1580
- Platform,
1581
- ConcurrentModificationException,
1582
- InvalidLambdaFunctionOutputException,
1583
- LambdaThrottledException,
1584
- LimitExceededException,
1585
- Operation
486
+ const se_UpdateRecordsCommand = async (input, context) => {
487
+ const b = core.requestBuilder(input, context);
488
+ const headers = smithyClient.map({}, smithyClient.isSerializableHeaderValue, {
489
+ "content-type": "application/json",
490
+ [_xacc]: input[_CC],
491
+ });
492
+ b.bp("/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}");
493
+ b.p("IdentityPoolId", () => input.IdentityPoolId, "{IdentityPoolId}", false);
494
+ b.p("IdentityId", () => input.IdentityId, "{IdentityId}", false);
495
+ b.p("DatasetName", () => input.DatasetName, "{DatasetName}", false);
496
+ let body;
497
+ body = JSON.stringify(smithyClient.take(input, {
498
+ DeviceId: [],
499
+ RecordPatches: (_) => se_RecordPatchList(_),
500
+ SyncSessionToken: [],
501
+ }));
502
+ b.m("POST").h(headers).b(body);
503
+ return b.build();
504
+ };
505
+ const de_BulkPublishCommand = async (output, context) => {
506
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
507
+ return de_CommandError(output, context);
508
+ }
509
+ const contents = smithyClient.map({
510
+ $metadata: deserializeMetadata(output),
511
+ });
512
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
513
+ const doc = smithyClient.take(data, {
514
+ IdentityPoolId: smithyClient.expectString,
515
+ });
516
+ Object.assign(contents, doc);
517
+ return contents;
518
+ };
519
+ const de_DeleteDatasetCommand = async (output, context) => {
520
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
521
+ return de_CommandError(output, context);
522
+ }
523
+ const contents = smithyClient.map({
524
+ $metadata: deserializeMetadata(output),
525
+ });
526
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
527
+ const doc = smithyClient.take(data, {
528
+ Dataset: (_) => de_Dataset(_),
529
+ });
530
+ Object.assign(contents, doc);
531
+ return contents;
532
+ };
533
+ const de_DescribeDatasetCommand = async (output, context) => {
534
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
535
+ return de_CommandError(output, context);
536
+ }
537
+ const contents = smithyClient.map({
538
+ $metadata: deserializeMetadata(output),
539
+ });
540
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
541
+ const doc = smithyClient.take(data, {
542
+ Dataset: (_) => de_Dataset(_),
543
+ });
544
+ Object.assign(contents, doc);
545
+ return contents;
546
+ };
547
+ const de_DescribeIdentityPoolUsageCommand = async (output, context) => {
548
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
549
+ return de_CommandError(output, context);
550
+ }
551
+ const contents = smithyClient.map({
552
+ $metadata: deserializeMetadata(output),
553
+ });
554
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
555
+ const doc = smithyClient.take(data, {
556
+ IdentityPoolUsage: (_) => de_IdentityPoolUsage(_),
557
+ });
558
+ Object.assign(contents, doc);
559
+ return contents;
560
+ };
561
+ const de_DescribeIdentityUsageCommand = async (output, context) => {
562
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
563
+ return de_CommandError(output, context);
564
+ }
565
+ const contents = smithyClient.map({
566
+ $metadata: deserializeMetadata(output),
567
+ });
568
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
569
+ const doc = smithyClient.take(data, {
570
+ IdentityUsage: (_) => de_IdentityUsage(_),
571
+ });
572
+ Object.assign(contents, doc);
573
+ return contents;
574
+ };
575
+ const de_GetBulkPublishDetailsCommand = async (output, context) => {
576
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
577
+ return de_CommandError(output, context);
578
+ }
579
+ const contents = smithyClient.map({
580
+ $metadata: deserializeMetadata(output),
581
+ });
582
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
583
+ const doc = smithyClient.take(data, {
584
+ BulkPublishCompleteTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
585
+ BulkPublishStartTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
586
+ BulkPublishStatus: smithyClient.expectString,
587
+ FailureMessage: smithyClient.expectString,
588
+ IdentityPoolId: smithyClient.expectString,
589
+ });
590
+ Object.assign(contents, doc);
591
+ return contents;
592
+ };
593
+ const de_GetCognitoEventsCommand = async (output, context) => {
594
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
595
+ return de_CommandError(output, context);
596
+ }
597
+ const contents = smithyClient.map({
598
+ $metadata: deserializeMetadata(output),
599
+ });
600
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
601
+ const doc = smithyClient.take(data, {
602
+ Events: smithyClient._json,
603
+ });
604
+ Object.assign(contents, doc);
605
+ return contents;
606
+ };
607
+ const de_GetIdentityPoolConfigurationCommand = async (output, context) => {
608
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
609
+ return de_CommandError(output, context);
610
+ }
611
+ const contents = smithyClient.map({
612
+ $metadata: deserializeMetadata(output),
613
+ });
614
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
615
+ const doc = smithyClient.take(data, {
616
+ CognitoStreams: smithyClient._json,
617
+ IdentityPoolId: smithyClient.expectString,
618
+ PushSync: smithyClient._json,
619
+ });
620
+ Object.assign(contents, doc);
621
+ return contents;
622
+ };
623
+ const de_ListDatasetsCommand = async (output, context) => {
624
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
625
+ return de_CommandError(output, context);
626
+ }
627
+ const contents = smithyClient.map({
628
+ $metadata: deserializeMetadata(output),
629
+ });
630
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
631
+ const doc = smithyClient.take(data, {
632
+ Count: smithyClient.expectInt32,
633
+ Datasets: (_) => de_DatasetList(_),
634
+ NextToken: smithyClient.expectString,
635
+ });
636
+ Object.assign(contents, doc);
637
+ return contents;
638
+ };
639
+ const de_ListIdentityPoolUsageCommand = async (output, context) => {
640
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
641
+ return de_CommandError(output, context);
642
+ }
643
+ const contents = smithyClient.map({
644
+ $metadata: deserializeMetadata(output),
645
+ });
646
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
647
+ const doc = smithyClient.take(data, {
648
+ Count: smithyClient.expectInt32,
649
+ IdentityPoolUsages: (_) => de_IdentityPoolUsageList(_),
650
+ MaxResults: smithyClient.expectInt32,
651
+ NextToken: smithyClient.expectString,
652
+ });
653
+ Object.assign(contents, doc);
654
+ return contents;
655
+ };
656
+ const de_ListRecordsCommand = async (output, context) => {
657
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
658
+ return de_CommandError(output, context);
659
+ }
660
+ const contents = smithyClient.map({
661
+ $metadata: deserializeMetadata(output),
662
+ });
663
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
664
+ const doc = smithyClient.take(data, {
665
+ Count: smithyClient.expectInt32,
666
+ DatasetDeletedAfterRequestedSyncCount: smithyClient.expectBoolean,
667
+ DatasetExists: smithyClient.expectBoolean,
668
+ DatasetSyncCount: smithyClient.expectLong,
669
+ LastModifiedBy: smithyClient.expectString,
670
+ MergedDatasetNames: smithyClient._json,
671
+ NextToken: smithyClient.expectString,
672
+ Records: (_) => de_RecordList(_),
673
+ SyncSessionToken: smithyClient.expectString,
674
+ });
675
+ Object.assign(contents, doc);
676
+ return contents;
677
+ };
678
+ const de_RegisterDeviceCommand = async (output, context) => {
679
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
680
+ return de_CommandError(output, context);
681
+ }
682
+ const contents = smithyClient.map({
683
+ $metadata: deserializeMetadata(output),
684
+ });
685
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
686
+ const doc = smithyClient.take(data, {
687
+ DeviceId: smithyClient.expectString,
688
+ });
689
+ Object.assign(contents, doc);
690
+ return contents;
691
+ };
692
+ const de_SetCognitoEventsCommand = async (output, context) => {
693
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
694
+ return de_CommandError(output, context);
695
+ }
696
+ const contents = smithyClient.map({
697
+ $metadata: deserializeMetadata(output),
698
+ });
699
+ await smithyClient.collectBody(output.body, context);
700
+ return contents;
701
+ };
702
+ const de_SetIdentityPoolConfigurationCommand = async (output, context) => {
703
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
704
+ return de_CommandError(output, context);
705
+ }
706
+ const contents = smithyClient.map({
707
+ $metadata: deserializeMetadata(output),
708
+ });
709
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
710
+ const doc = smithyClient.take(data, {
711
+ CognitoStreams: smithyClient._json,
712
+ IdentityPoolId: smithyClient.expectString,
713
+ PushSync: smithyClient._json,
714
+ });
715
+ Object.assign(contents, doc);
716
+ return contents;
717
+ };
718
+ const de_SubscribeToDatasetCommand = async (output, context) => {
719
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
720
+ return de_CommandError(output, context);
721
+ }
722
+ const contents = smithyClient.map({
723
+ $metadata: deserializeMetadata(output),
724
+ });
725
+ await smithyClient.collectBody(output.body, context);
726
+ return contents;
727
+ };
728
+ const de_UnsubscribeFromDatasetCommand = async (output, context) => {
729
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
730
+ return de_CommandError(output, context);
731
+ }
732
+ const contents = smithyClient.map({
733
+ $metadata: deserializeMetadata(output),
734
+ });
735
+ await smithyClient.collectBody(output.body, context);
736
+ return contents;
737
+ };
738
+ const de_UpdateRecordsCommand = async (output, context) => {
739
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
740
+ return de_CommandError(output, context);
741
+ }
742
+ const contents = smithyClient.map({
743
+ $metadata: deserializeMetadata(output),
744
+ });
745
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
746
+ const doc = smithyClient.take(data, {
747
+ Records: (_) => de_RecordList(_),
748
+ });
749
+ Object.assign(contents, doc);
750
+ return contents;
751
+ };
752
+ const de_CommandError = async (output, context) => {
753
+ const parsedOutput = {
754
+ ...output,
755
+ body: await core$1.parseJsonErrorBody(output.body, context),
756
+ };
757
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
758
+ switch (errorCode) {
759
+ case "AlreadyStreamedException":
760
+ case "com.amazonaws.cognitosync#AlreadyStreamedException":
761
+ throw await de_AlreadyStreamedExceptionRes(parsedOutput);
762
+ case "DuplicateRequestException":
763
+ case "com.amazonaws.cognitosync#DuplicateRequestException":
764
+ throw await de_DuplicateRequestExceptionRes(parsedOutput);
765
+ case "InternalErrorException":
766
+ case "com.amazonaws.cognitosync#InternalErrorException":
767
+ throw await de_InternalErrorExceptionRes(parsedOutput);
768
+ case "InvalidParameterException":
769
+ case "com.amazonaws.cognitosync#InvalidParameterException":
770
+ throw await de_InvalidParameterExceptionRes(parsedOutput);
771
+ case "NotAuthorizedException":
772
+ case "com.amazonaws.cognitosync#NotAuthorizedException":
773
+ throw await de_NotAuthorizedExceptionRes(parsedOutput);
774
+ case "ResourceNotFoundException":
775
+ case "com.amazonaws.cognitosync#ResourceNotFoundException":
776
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput);
777
+ case "ResourceConflictException":
778
+ case "com.amazonaws.cognitosync#ResourceConflictException":
779
+ throw await de_ResourceConflictExceptionRes(parsedOutput);
780
+ case "TooManyRequestsException":
781
+ case "com.amazonaws.cognitosync#TooManyRequestsException":
782
+ throw await de_TooManyRequestsExceptionRes(parsedOutput);
783
+ case "InvalidConfigurationException":
784
+ case "com.amazonaws.cognitosync#InvalidConfigurationException":
785
+ throw await de_InvalidConfigurationExceptionRes(parsedOutput);
786
+ case "ConcurrentModificationException":
787
+ case "com.amazonaws.cognitosync#ConcurrentModificationException":
788
+ throw await de_ConcurrentModificationExceptionRes(parsedOutput);
789
+ case "InvalidLambdaFunctionOutputException":
790
+ case "com.amazonaws.cognitosync#InvalidLambdaFunctionOutputException":
791
+ throw await de_InvalidLambdaFunctionOutputExceptionRes(parsedOutput);
792
+ case "LambdaThrottledException":
793
+ case "com.amazonaws.cognitosync#LambdaThrottledException":
794
+ throw await de_LambdaThrottledExceptionRes(parsedOutput);
795
+ case "LimitExceededException":
796
+ case "com.amazonaws.cognitosync#LimitExceededException":
797
+ throw await de_LimitExceededExceptionRes(parsedOutput);
798
+ default:
799
+ const parsedBody = parsedOutput.body;
800
+ return throwDefaultError({
801
+ output,
802
+ parsedBody,
803
+ errorCode,
804
+ });
805
+ }
806
+ };
807
+ const throwDefaultError = smithyClient.withBaseException(CognitoSyncServiceException);
808
+ const de_AlreadyStreamedExceptionRes = async (parsedOutput, context) => {
809
+ const contents = smithyClient.map({});
810
+ const data = parsedOutput.body;
811
+ const doc = smithyClient.take(data, {
812
+ message: smithyClient.expectString,
813
+ });
814
+ Object.assign(contents, doc);
815
+ const exception = new AlreadyStreamedException({
816
+ $metadata: deserializeMetadata(parsedOutput),
817
+ ...contents,
818
+ });
819
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
820
+ };
821
+ const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
822
+ const contents = smithyClient.map({});
823
+ const data = parsedOutput.body;
824
+ const doc = smithyClient.take(data, {
825
+ message: smithyClient.expectString,
826
+ });
827
+ Object.assign(contents, doc);
828
+ const exception = new ConcurrentModificationException({
829
+ $metadata: deserializeMetadata(parsedOutput),
830
+ ...contents,
831
+ });
832
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
833
+ };
834
+ const de_DuplicateRequestExceptionRes = async (parsedOutput, context) => {
835
+ const contents = smithyClient.map({});
836
+ const data = parsedOutput.body;
837
+ const doc = smithyClient.take(data, {
838
+ message: smithyClient.expectString,
839
+ });
840
+ Object.assign(contents, doc);
841
+ const exception = new DuplicateRequestException({
842
+ $metadata: deserializeMetadata(parsedOutput),
843
+ ...contents,
844
+ });
845
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
846
+ };
847
+ const de_InternalErrorExceptionRes = async (parsedOutput, context) => {
848
+ const contents = smithyClient.map({});
849
+ const data = parsedOutput.body;
850
+ const doc = smithyClient.take(data, {
851
+ message: smithyClient.expectString,
852
+ });
853
+ Object.assign(contents, doc);
854
+ const exception = new InternalErrorException({
855
+ $metadata: deserializeMetadata(parsedOutput),
856
+ ...contents,
857
+ });
858
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
859
+ };
860
+ const de_InvalidConfigurationExceptionRes = async (parsedOutput, context) => {
861
+ const contents = smithyClient.map({});
862
+ const data = parsedOutput.body;
863
+ const doc = smithyClient.take(data, {
864
+ message: smithyClient.expectString,
865
+ });
866
+ Object.assign(contents, doc);
867
+ const exception = new InvalidConfigurationException({
868
+ $metadata: deserializeMetadata(parsedOutput),
869
+ ...contents,
870
+ });
871
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
872
+ };
873
+ const de_InvalidLambdaFunctionOutputExceptionRes = async (parsedOutput, context) => {
874
+ const contents = smithyClient.map({});
875
+ const data = parsedOutput.body;
876
+ const doc = smithyClient.take(data, {
877
+ message: smithyClient.expectString,
878
+ });
879
+ Object.assign(contents, doc);
880
+ const exception = new InvalidLambdaFunctionOutputException({
881
+ $metadata: deserializeMetadata(parsedOutput),
882
+ ...contents,
883
+ });
884
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
885
+ };
886
+ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
887
+ const contents = smithyClient.map({});
888
+ const data = parsedOutput.body;
889
+ const doc = smithyClient.take(data, {
890
+ message: smithyClient.expectString,
891
+ });
892
+ Object.assign(contents, doc);
893
+ const exception = new InvalidParameterException({
894
+ $metadata: deserializeMetadata(parsedOutput),
895
+ ...contents,
896
+ });
897
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
898
+ };
899
+ const de_LambdaThrottledExceptionRes = async (parsedOutput, context) => {
900
+ const contents = smithyClient.map({});
901
+ const data = parsedOutput.body;
902
+ const doc = smithyClient.take(data, {
903
+ message: smithyClient.expectString,
904
+ });
905
+ Object.assign(contents, doc);
906
+ const exception = new LambdaThrottledException({
907
+ $metadata: deserializeMetadata(parsedOutput),
908
+ ...contents,
909
+ });
910
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
911
+ };
912
+ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
913
+ const contents = smithyClient.map({});
914
+ const data = parsedOutput.body;
915
+ const doc = smithyClient.take(data, {
916
+ message: smithyClient.expectString,
917
+ });
918
+ Object.assign(contents, doc);
919
+ const exception = new LimitExceededException({
920
+ $metadata: deserializeMetadata(parsedOutput),
921
+ ...contents,
922
+ });
923
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
924
+ };
925
+ const de_NotAuthorizedExceptionRes = async (parsedOutput, context) => {
926
+ const contents = smithyClient.map({});
927
+ const data = parsedOutput.body;
928
+ const doc = smithyClient.take(data, {
929
+ message: smithyClient.expectString,
930
+ });
931
+ Object.assign(contents, doc);
932
+ const exception = new NotAuthorizedException({
933
+ $metadata: deserializeMetadata(parsedOutput),
934
+ ...contents,
935
+ });
936
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
937
+ };
938
+ const de_ResourceConflictExceptionRes = async (parsedOutput, context) => {
939
+ const contents = smithyClient.map({});
940
+ const data = parsedOutput.body;
941
+ const doc = smithyClient.take(data, {
942
+ message: smithyClient.expectString,
943
+ });
944
+ Object.assign(contents, doc);
945
+ const exception = new ResourceConflictException({
946
+ $metadata: deserializeMetadata(parsedOutput),
947
+ ...contents,
948
+ });
949
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
950
+ };
951
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
952
+ const contents = smithyClient.map({});
953
+ const data = parsedOutput.body;
954
+ const doc = smithyClient.take(data, {
955
+ message: smithyClient.expectString,
956
+ });
957
+ Object.assign(contents, doc);
958
+ const exception = new ResourceNotFoundException({
959
+ $metadata: deserializeMetadata(parsedOutput),
960
+ ...contents,
961
+ });
962
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
963
+ };
964
+ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
965
+ const contents = smithyClient.map({});
966
+ const data = parsedOutput.body;
967
+ const doc = smithyClient.take(data, {
968
+ message: smithyClient.expectString,
969
+ });
970
+ Object.assign(contents, doc);
971
+ const exception = new TooManyRequestsException({
972
+ $metadata: deserializeMetadata(parsedOutput),
973
+ ...contents,
974
+ });
975
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
976
+ };
977
+ const se_RecordPatch = (input, context) => {
978
+ return smithyClient.take(input, {
979
+ DeviceLastModifiedDate: (_) => _.getTime() / 1_000,
980
+ Key: [],
981
+ Op: [],
982
+ SyncCount: [],
983
+ Value: [],
984
+ });
985
+ };
986
+ const se_RecordPatchList = (input, context) => {
987
+ return input
988
+ .filter((e) => e != null)
989
+ .map((entry) => {
990
+ return se_RecordPatch(entry);
991
+ });
992
+ };
993
+ const de_Dataset = (output, context) => {
994
+ return smithyClient.take(output, {
995
+ CreationDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
996
+ DataStorage: smithyClient.expectLong,
997
+ DatasetName: smithyClient.expectString,
998
+ IdentityId: smithyClient.expectString,
999
+ LastModifiedBy: smithyClient.expectString,
1000
+ LastModifiedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1001
+ NumRecords: smithyClient.expectLong,
1002
+ });
1003
+ };
1004
+ const de_DatasetList = (output, context) => {
1005
+ const retVal = (output || [])
1006
+ .filter((e) => e != null)
1007
+ .map((entry) => {
1008
+ return de_Dataset(entry);
1009
+ });
1010
+ return retVal;
1011
+ };
1012
+ const de_IdentityPoolUsage = (output, context) => {
1013
+ return smithyClient.take(output, {
1014
+ DataStorage: smithyClient.expectLong,
1015
+ IdentityPoolId: smithyClient.expectString,
1016
+ LastModifiedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1017
+ SyncSessionsCount: smithyClient.expectLong,
1018
+ });
1019
+ };
1020
+ const de_IdentityPoolUsageList = (output, context) => {
1021
+ const retVal = (output || [])
1022
+ .filter((e) => e != null)
1023
+ .map((entry) => {
1024
+ return de_IdentityPoolUsage(entry);
1025
+ });
1026
+ return retVal;
1027
+ };
1028
+ const de_IdentityUsage = (output, context) => {
1029
+ return smithyClient.take(output, {
1030
+ DataStorage: smithyClient.expectLong,
1031
+ DatasetCount: smithyClient.expectInt32,
1032
+ IdentityId: smithyClient.expectString,
1033
+ IdentityPoolId: smithyClient.expectString,
1034
+ LastModifiedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1035
+ });
1036
+ };
1037
+ const de__Record = (output, context) => {
1038
+ return smithyClient.take(output, {
1039
+ DeviceLastModifiedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1040
+ Key: smithyClient.expectString,
1041
+ LastModifiedBy: smithyClient.expectString,
1042
+ LastModifiedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1043
+ SyncCount: smithyClient.expectLong,
1044
+ Value: smithyClient.expectString,
1045
+ });
1046
+ };
1047
+ const de_RecordList = (output, context) => {
1048
+ const retVal = (output || [])
1049
+ .filter((e) => e != null)
1050
+ .map((entry) => {
1051
+ return de__Record(entry);
1052
+ });
1053
+ return retVal;
1054
+ };
1055
+ const deserializeMetadata = (output) => ({
1056
+ httpStatusCode: output.statusCode,
1057
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1058
+ extendedRequestId: output.headers["x-amz-id-2"],
1059
+ cfId: output.headers["x-amz-cf-id"],
1586
1060
  });
1061
+ const _CC = "ClientContext";
1062
+ const _LSC = "LastSyncCount";
1063
+ const _MR = "MaxResults";
1064
+ const _NT = "NextToken";
1065
+ const _SST = "SyncSessionToken";
1066
+ const _lSC = "lastSyncCount";
1067
+ const _mR = "maxResults";
1068
+ const _nT = "nextToken";
1069
+ const _sST = "syncSessionToken";
1070
+ const _xacc = "x-amz-client-context";
1071
+
1072
+ class BulkPublishCommand extends smithyClient.Command
1073
+ .classBuilder()
1074
+ .ep(commonParams)
1075
+ .m(function (Command, cs, config, o) {
1076
+ return [
1077
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1078
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1079
+ ];
1080
+ })
1081
+ .s("AWSCognitoSyncService", "BulkPublish", {})
1082
+ .n("CognitoSyncClient", "BulkPublishCommand")
1083
+ .f(void 0, void 0)
1084
+ .ser(se_BulkPublishCommand)
1085
+ .de(de_BulkPublishCommand)
1086
+ .build() {
1087
+ }
1088
+
1089
+ class DeleteDatasetCommand extends smithyClient.Command
1090
+ .classBuilder()
1091
+ .ep(commonParams)
1092
+ .m(function (Command, cs, config, o) {
1093
+ return [
1094
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1095
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1096
+ ];
1097
+ })
1098
+ .s("AWSCognitoSyncService", "DeleteDataset", {})
1099
+ .n("CognitoSyncClient", "DeleteDatasetCommand")
1100
+ .f(void 0, void 0)
1101
+ .ser(se_DeleteDatasetCommand)
1102
+ .de(de_DeleteDatasetCommand)
1103
+ .build() {
1104
+ }
1105
+
1106
+ class DescribeDatasetCommand extends smithyClient.Command
1107
+ .classBuilder()
1108
+ .ep(commonParams)
1109
+ .m(function (Command, cs, config, o) {
1110
+ return [
1111
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1112
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1113
+ ];
1114
+ })
1115
+ .s("AWSCognitoSyncService", "DescribeDataset", {})
1116
+ .n("CognitoSyncClient", "DescribeDatasetCommand")
1117
+ .f(void 0, void 0)
1118
+ .ser(se_DescribeDatasetCommand)
1119
+ .de(de_DescribeDatasetCommand)
1120
+ .build() {
1121
+ }
1122
+
1123
+ class DescribeIdentityPoolUsageCommand extends smithyClient.Command
1124
+ .classBuilder()
1125
+ .ep(commonParams)
1126
+ .m(function (Command, cs, config, o) {
1127
+ return [
1128
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1129
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1130
+ ];
1131
+ })
1132
+ .s("AWSCognitoSyncService", "DescribeIdentityPoolUsage", {})
1133
+ .n("CognitoSyncClient", "DescribeIdentityPoolUsageCommand")
1134
+ .f(void 0, void 0)
1135
+ .ser(se_DescribeIdentityPoolUsageCommand)
1136
+ .de(de_DescribeIdentityPoolUsageCommand)
1137
+ .build() {
1138
+ }
1139
+
1140
+ class DescribeIdentityUsageCommand extends smithyClient.Command
1141
+ .classBuilder()
1142
+ .ep(commonParams)
1143
+ .m(function (Command, cs, config, o) {
1144
+ return [
1145
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1146
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1147
+ ];
1148
+ })
1149
+ .s("AWSCognitoSyncService", "DescribeIdentityUsage", {})
1150
+ .n("CognitoSyncClient", "DescribeIdentityUsageCommand")
1151
+ .f(void 0, void 0)
1152
+ .ser(se_DescribeIdentityUsageCommand)
1153
+ .de(de_DescribeIdentityUsageCommand)
1154
+ .build() {
1155
+ }
1156
+
1157
+ class GetBulkPublishDetailsCommand extends smithyClient.Command
1158
+ .classBuilder()
1159
+ .ep(commonParams)
1160
+ .m(function (Command, cs, config, o) {
1161
+ return [
1162
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1163
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1164
+ ];
1165
+ })
1166
+ .s("AWSCognitoSyncService", "GetBulkPublishDetails", {})
1167
+ .n("CognitoSyncClient", "GetBulkPublishDetailsCommand")
1168
+ .f(void 0, void 0)
1169
+ .ser(se_GetBulkPublishDetailsCommand)
1170
+ .de(de_GetBulkPublishDetailsCommand)
1171
+ .build() {
1172
+ }
1173
+
1174
+ class GetCognitoEventsCommand extends smithyClient.Command
1175
+ .classBuilder()
1176
+ .ep(commonParams)
1177
+ .m(function (Command, cs, config, o) {
1178
+ return [
1179
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1180
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1181
+ ];
1182
+ })
1183
+ .s("AWSCognitoSyncService", "GetCognitoEvents", {})
1184
+ .n("CognitoSyncClient", "GetCognitoEventsCommand")
1185
+ .f(void 0, void 0)
1186
+ .ser(se_GetCognitoEventsCommand)
1187
+ .de(de_GetCognitoEventsCommand)
1188
+ .build() {
1189
+ }
1190
+
1191
+ class GetIdentityPoolConfigurationCommand extends smithyClient.Command
1192
+ .classBuilder()
1193
+ .ep(commonParams)
1194
+ .m(function (Command, cs, config, o) {
1195
+ return [
1196
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1197
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1198
+ ];
1199
+ })
1200
+ .s("AWSCognitoSyncService", "GetIdentityPoolConfiguration", {})
1201
+ .n("CognitoSyncClient", "GetIdentityPoolConfigurationCommand")
1202
+ .f(void 0, void 0)
1203
+ .ser(se_GetIdentityPoolConfigurationCommand)
1204
+ .de(de_GetIdentityPoolConfigurationCommand)
1205
+ .build() {
1206
+ }
1207
+
1208
+ class ListDatasetsCommand extends smithyClient.Command
1209
+ .classBuilder()
1210
+ .ep(commonParams)
1211
+ .m(function (Command, cs, config, o) {
1212
+ return [
1213
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1214
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1215
+ ];
1216
+ })
1217
+ .s("AWSCognitoSyncService", "ListDatasets", {})
1218
+ .n("CognitoSyncClient", "ListDatasetsCommand")
1219
+ .f(void 0, void 0)
1220
+ .ser(se_ListDatasetsCommand)
1221
+ .de(de_ListDatasetsCommand)
1222
+ .build() {
1223
+ }
1224
+
1225
+ class ListIdentityPoolUsageCommand extends smithyClient.Command
1226
+ .classBuilder()
1227
+ .ep(commonParams)
1228
+ .m(function (Command, cs, config, o) {
1229
+ return [
1230
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1231
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1232
+ ];
1233
+ })
1234
+ .s("AWSCognitoSyncService", "ListIdentityPoolUsage", {})
1235
+ .n("CognitoSyncClient", "ListIdentityPoolUsageCommand")
1236
+ .f(void 0, void 0)
1237
+ .ser(se_ListIdentityPoolUsageCommand)
1238
+ .de(de_ListIdentityPoolUsageCommand)
1239
+ .build() {
1240
+ }
1241
+
1242
+ class ListRecordsCommand extends smithyClient.Command
1243
+ .classBuilder()
1244
+ .ep(commonParams)
1245
+ .m(function (Command, cs, config, o) {
1246
+ return [
1247
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1248
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1249
+ ];
1250
+ })
1251
+ .s("AWSCognitoSyncService", "ListRecords", {})
1252
+ .n("CognitoSyncClient", "ListRecordsCommand")
1253
+ .f(void 0, void 0)
1254
+ .ser(se_ListRecordsCommand)
1255
+ .de(de_ListRecordsCommand)
1256
+ .build() {
1257
+ }
1258
+
1259
+ class RegisterDeviceCommand extends smithyClient.Command
1260
+ .classBuilder()
1261
+ .ep(commonParams)
1262
+ .m(function (Command, cs, config, o) {
1263
+ return [
1264
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1265
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1266
+ ];
1267
+ })
1268
+ .s("AWSCognitoSyncService", "RegisterDevice", {})
1269
+ .n("CognitoSyncClient", "RegisterDeviceCommand")
1270
+ .f(void 0, void 0)
1271
+ .ser(se_RegisterDeviceCommand)
1272
+ .de(de_RegisterDeviceCommand)
1273
+ .build() {
1274
+ }
1275
+
1276
+ class SetCognitoEventsCommand extends smithyClient.Command
1277
+ .classBuilder()
1278
+ .ep(commonParams)
1279
+ .m(function (Command, cs, config, o) {
1280
+ return [
1281
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1282
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1283
+ ];
1284
+ })
1285
+ .s("AWSCognitoSyncService", "SetCognitoEvents", {})
1286
+ .n("CognitoSyncClient", "SetCognitoEventsCommand")
1287
+ .f(void 0, void 0)
1288
+ .ser(se_SetCognitoEventsCommand)
1289
+ .de(de_SetCognitoEventsCommand)
1290
+ .build() {
1291
+ }
1292
+
1293
+ class SetIdentityPoolConfigurationCommand extends smithyClient.Command
1294
+ .classBuilder()
1295
+ .ep(commonParams)
1296
+ .m(function (Command, cs, config, o) {
1297
+ return [
1298
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1299
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1300
+ ];
1301
+ })
1302
+ .s("AWSCognitoSyncService", "SetIdentityPoolConfiguration", {})
1303
+ .n("CognitoSyncClient", "SetIdentityPoolConfigurationCommand")
1304
+ .f(void 0, void 0)
1305
+ .ser(se_SetIdentityPoolConfigurationCommand)
1306
+ .de(de_SetIdentityPoolConfigurationCommand)
1307
+ .build() {
1308
+ }
1309
+
1310
+ class SubscribeToDatasetCommand extends smithyClient.Command
1311
+ .classBuilder()
1312
+ .ep(commonParams)
1313
+ .m(function (Command, cs, config, o) {
1314
+ return [
1315
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1316
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1317
+ ];
1318
+ })
1319
+ .s("AWSCognitoSyncService", "SubscribeToDataset", {})
1320
+ .n("CognitoSyncClient", "SubscribeToDatasetCommand")
1321
+ .f(void 0, void 0)
1322
+ .ser(se_SubscribeToDatasetCommand)
1323
+ .de(de_SubscribeToDatasetCommand)
1324
+ .build() {
1325
+ }
1326
+
1327
+ class UnsubscribeFromDatasetCommand extends smithyClient.Command
1328
+ .classBuilder()
1329
+ .ep(commonParams)
1330
+ .m(function (Command, cs, config, o) {
1331
+ return [
1332
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1333
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1334
+ ];
1335
+ })
1336
+ .s("AWSCognitoSyncService", "UnsubscribeFromDataset", {})
1337
+ .n("CognitoSyncClient", "UnsubscribeFromDatasetCommand")
1338
+ .f(void 0, void 0)
1339
+ .ser(se_UnsubscribeFromDatasetCommand)
1340
+ .de(de_UnsubscribeFromDatasetCommand)
1341
+ .build() {
1342
+ }
1343
+
1344
+ class UpdateRecordsCommand extends smithyClient.Command
1345
+ .classBuilder()
1346
+ .ep(commonParams)
1347
+ .m(function (Command, cs, config, o) {
1348
+ return [
1349
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1350
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1351
+ ];
1352
+ })
1353
+ .s("AWSCognitoSyncService", "UpdateRecords", {})
1354
+ .n("CognitoSyncClient", "UpdateRecordsCommand")
1355
+ .f(void 0, void 0)
1356
+ .ser(se_UpdateRecordsCommand)
1357
+ .de(de_UpdateRecordsCommand)
1358
+ .build() {
1359
+ }
1360
+
1361
+ const commands = {
1362
+ BulkPublishCommand,
1363
+ DeleteDatasetCommand,
1364
+ DescribeDatasetCommand,
1365
+ DescribeIdentityPoolUsageCommand,
1366
+ DescribeIdentityUsageCommand,
1367
+ GetBulkPublishDetailsCommand,
1368
+ GetCognitoEventsCommand,
1369
+ GetIdentityPoolConfigurationCommand,
1370
+ ListDatasetsCommand,
1371
+ ListIdentityPoolUsageCommand,
1372
+ ListRecordsCommand,
1373
+ RegisterDeviceCommand,
1374
+ SetCognitoEventsCommand,
1375
+ SetIdentityPoolConfigurationCommand,
1376
+ SubscribeToDatasetCommand,
1377
+ UnsubscribeFromDatasetCommand,
1378
+ UpdateRecordsCommand,
1379
+ };
1380
+ class CognitoSync extends CognitoSyncClient {
1381
+ }
1382
+ smithyClient.createAggregatedClient(commands, CognitoSync);
1587
1383
 
1384
+ Object.defineProperty(exports, "$Command", {
1385
+ enumerable: true,
1386
+ get: function () { return smithyClient.Command; }
1387
+ });
1388
+ Object.defineProperty(exports, "__Client", {
1389
+ enumerable: true,
1390
+ get: function () { return smithyClient.Client; }
1391
+ });
1392
+ exports.AlreadyStreamedException = AlreadyStreamedException;
1393
+ exports.BulkPublishCommand = BulkPublishCommand;
1394
+ exports.BulkPublishStatus = BulkPublishStatus;
1395
+ exports.CognitoSync = CognitoSync;
1396
+ exports.CognitoSyncClient = CognitoSyncClient;
1397
+ exports.CognitoSyncServiceException = CognitoSyncServiceException;
1398
+ exports.ConcurrentModificationException = ConcurrentModificationException;
1399
+ exports.DeleteDatasetCommand = DeleteDatasetCommand;
1400
+ exports.DescribeDatasetCommand = DescribeDatasetCommand;
1401
+ exports.DescribeIdentityPoolUsageCommand = DescribeIdentityPoolUsageCommand;
1402
+ exports.DescribeIdentityUsageCommand = DescribeIdentityUsageCommand;
1403
+ exports.DuplicateRequestException = DuplicateRequestException;
1404
+ exports.GetBulkPublishDetailsCommand = GetBulkPublishDetailsCommand;
1405
+ exports.GetCognitoEventsCommand = GetCognitoEventsCommand;
1406
+ exports.GetIdentityPoolConfigurationCommand = GetIdentityPoolConfigurationCommand;
1407
+ exports.InternalErrorException = InternalErrorException;
1408
+ exports.InvalidConfigurationException = InvalidConfigurationException;
1409
+ exports.InvalidLambdaFunctionOutputException = InvalidLambdaFunctionOutputException;
1410
+ exports.InvalidParameterException = InvalidParameterException;
1411
+ exports.LambdaThrottledException = LambdaThrottledException;
1412
+ exports.LimitExceededException = LimitExceededException;
1413
+ exports.ListDatasetsCommand = ListDatasetsCommand;
1414
+ exports.ListIdentityPoolUsageCommand = ListIdentityPoolUsageCommand;
1415
+ exports.ListRecordsCommand = ListRecordsCommand;
1416
+ exports.NotAuthorizedException = NotAuthorizedException;
1417
+ exports.Operation = Operation;
1418
+ exports.Platform = Platform;
1419
+ exports.RegisterDeviceCommand = RegisterDeviceCommand;
1420
+ exports.ResourceConflictException = ResourceConflictException;
1421
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1422
+ exports.SetCognitoEventsCommand = SetCognitoEventsCommand;
1423
+ exports.SetIdentityPoolConfigurationCommand = SetIdentityPoolConfigurationCommand;
1424
+ exports.StreamingStatus = StreamingStatus;
1425
+ exports.SubscribeToDatasetCommand = SubscribeToDatasetCommand;
1426
+ exports.TooManyRequestsException = TooManyRequestsException;
1427
+ exports.UnsubscribeFromDatasetCommand = UnsubscribeFromDatasetCommand;
1428
+ exports.UpdateRecordsCommand = UpdateRecordsCommand;