@aws-sdk/client-cognito-sync 3.986.0 → 3.988.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -15,6 +15,9 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
15
15
  var runtimeConfig = require('./runtimeConfig');
16
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
17
17
  var protocolHttp = require('@smithy/protocol-http');
18
+ var schemas_0 = require('./schemas/schemas_0');
19
+ var errors = require('./models/errors');
20
+ var CognitoSyncServiceException = require('./models/CognitoSyncServiceException');
18
21
 
19
22
  const resolveClientEndpointParameters = (options) => {
20
23
  return Object.assign(options, {
@@ -110,646 +113,6 @@ class CognitoSyncClient extends smithyClient.Client {
110
113
  }
111
114
  }
112
115
 
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
- class InvalidConfigurationException extends CognitoSyncServiceException {
217
- name = "InvalidConfigurationException";
218
- $fault = "client";
219
- constructor(opts) {
220
- super({
221
- name: "InvalidConfigurationException",
222
- $fault: "client",
223
- ...opts,
224
- });
225
- Object.setPrototypeOf(this, InvalidConfigurationException.prototype);
226
- }
227
- }
228
- class ConcurrentModificationException extends CognitoSyncServiceException {
229
- name = "ConcurrentModificationException";
230
- $fault = "client";
231
- constructor(opts) {
232
- super({
233
- name: "ConcurrentModificationException",
234
- $fault: "client",
235
- ...opts,
236
- });
237
- Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
238
- }
239
- }
240
- class InvalidLambdaFunctionOutputException extends CognitoSyncServiceException {
241
- name = "InvalidLambdaFunctionOutputException";
242
- $fault = "client";
243
- constructor(opts) {
244
- super({
245
- name: "InvalidLambdaFunctionOutputException",
246
- $fault: "client",
247
- ...opts,
248
- });
249
- Object.setPrototypeOf(this, InvalidLambdaFunctionOutputException.prototype);
250
- }
251
- }
252
- class LambdaThrottledException extends CognitoSyncServiceException {
253
- name = "LambdaThrottledException";
254
- $fault = "client";
255
- constructor(opts) {
256
- super({
257
- name: "LambdaThrottledException",
258
- $fault: "client",
259
- ...opts,
260
- });
261
- Object.setPrototypeOf(this, LambdaThrottledException.prototype);
262
- }
263
- }
264
- class LimitExceededException extends CognitoSyncServiceException {
265
- name = "LimitExceededException";
266
- $fault = "client";
267
- constructor(opts) {
268
- super({
269
- name: "LimitExceededException",
270
- $fault: "client",
271
- ...opts,
272
- });
273
- Object.setPrototypeOf(this, LimitExceededException.prototype);
274
- }
275
- }
276
-
277
- const _AA = "ApplicationArns";
278
- const _ASE = "AlreadyStreamedException";
279
- const _BP = "BulkPublish";
280
- const _BPCT = "BulkPublishCompleteTime";
281
- const _BPR = "BulkPublishRequest";
282
- const _BPRu = "BulkPublishResponse";
283
- const _BPS = "BulkPublishStatus";
284
- const _BPST = "BulkPublishStartTime";
285
- const _C = "Count";
286
- const _CC = "ClientContext";
287
- const _CD = "CreationDate";
288
- const _CME = "ConcurrentModificationException";
289
- const _CS = "CognitoStreams";
290
- const _D = "Dataset";
291
- const _DC = "DatasetCount";
292
- const _DD = "DeleteDataset";
293
- const _DDARSC = "DatasetDeletedAfterRequestedSyncCount";
294
- const _DDR = "DeleteDatasetRequest";
295
- const _DDRe = "DeleteDatasetResponse";
296
- const _DDRes = "DescribeDatasetRequest";
297
- const _DDResc = "DescribeDatasetResponse";
298
- const _DDe = "DescribeDataset";
299
- const _DE = "DatasetExists";
300
- const _DI = "DeviceId";
301
- const _DIPU = "DescribeIdentityPoolUsage";
302
- const _DIPUR = "DescribeIdentityPoolUsageRequest";
303
- const _DIPURe = "DescribeIdentityPoolUsageResponse";
304
- const _DIU = "DescribeIdentityUsage";
305
- const _DIUR = "DescribeIdentityUsageRequest";
306
- const _DIURe = "DescribeIdentityUsageResponse";
307
- const _DL = "DatasetList";
308
- const _DLMD = "DeviceLastModifiedDate";
309
- const _DN = "DatasetName";
310
- const _DRE = "DuplicateRequestException";
311
- const _DS = "DataStorage";
312
- const _DSC = "DatasetSyncCount";
313
- const _Da = "Datasets";
314
- const _E = "Events";
315
- const _FM = "FailureMessage";
316
- const _GBPD = "GetBulkPublishDetails";
317
- const _GBPDR = "GetBulkPublishDetailsRequest";
318
- const _GBPDRe = "GetBulkPublishDetailsResponse";
319
- const _GCE = "GetCognitoEvents";
320
- const _GCER = "GetCognitoEventsRequest";
321
- const _GCERe = "GetCognitoEventsResponse";
322
- const _GIPC = "GetIdentityPoolConfiguration";
323
- const _GIPCR = "GetIdentityPoolConfigurationRequest";
324
- const _GIPCRe = "GetIdentityPoolConfigurationResponse";
325
- const _ICE = "InvalidConfigurationException";
326
- const _IEE = "InternalErrorException";
327
- const _II = "IdentityId";
328
- const _ILFOE = "InvalidLambdaFunctionOutputException";
329
- const _IPE = "InvalidParameterException";
330
- const _IPI = "IdentityPoolId";
331
- const _IPU = "IdentityPoolUsage";
332
- const _IPUL = "IdentityPoolUsageList";
333
- const _IPUd = "IdentityPoolUsages";
334
- const _IU = "IdentityUsage";
335
- const _K = "Key";
336
- const _LD = "ListDatasets";
337
- const _LDR = "ListDatasetsRequest";
338
- const _LDRi = "ListDatasetsResponse";
339
- const _LEE = "LimitExceededException";
340
- const _LIPU = "ListIdentityPoolUsage";
341
- const _LIPUR = "ListIdentityPoolUsageRequest";
342
- const _LIPURi = "ListIdentityPoolUsageResponse";
343
- const _LMB = "LastModifiedBy";
344
- const _LMD = "LastModifiedDate";
345
- const _LR = "ListRecords";
346
- const _LRR = "ListRecordsRequest";
347
- const _LRRi = "ListRecordsResponse";
348
- const _LSC = "LastSyncCount";
349
- const _LTE = "LambdaThrottledException";
350
- const _MDN = "MergedDatasetNames";
351
- const _MR = "MaxResults";
352
- const _NAE = "NotAuthorizedException";
353
- const _NR = "NumRecords";
354
- const _NT = "NextToken";
355
- const _O = "Op";
356
- const _P = "Platform";
357
- const _PS = "PushSync";
358
- const _R = "Records";
359
- const _RA = "RoleArn";
360
- const _RCE = "ResourceConflictException";
361
- const _RD = "RegisterDevice";
362
- const _RDR = "RegisterDeviceRequest";
363
- const _RDRe = "RegisterDeviceResponse";
364
- const _RL = "RecordList";
365
- const _RNFE = "ResourceNotFoundException";
366
- const _RP = "RecordPatch";
367
- const _RPL = "RecordPatchList";
368
- const _RPe = "RecordPatches";
369
- const _Re = "Record";
370
- const _SC = "SyncCount";
371
- const _SCE = "SetCognitoEvents";
372
- const _SCER = "SetCognitoEventsRequest";
373
- const _SIPC = "SetIdentityPoolConfiguration";
374
- const _SIPCR = "SetIdentityPoolConfigurationRequest";
375
- const _SIPCRe = "SetIdentityPoolConfigurationResponse";
376
- const _SN = "StreamName";
377
- const _SS = "StreamingStatus";
378
- const _SSC = "SyncSessionsCount";
379
- const _SST = "SyncSessionToken";
380
- const _STD = "SubscribeToDataset";
381
- const _STDR = "SubscribeToDatasetRequest";
382
- const _STDRu = "SubscribeToDatasetResponse";
383
- const _T = "Token";
384
- const _TMRE = "TooManyRequestsException";
385
- const _UFD = "UnsubscribeFromDataset";
386
- const _UFDR = "UnsubscribeFromDatasetRequest";
387
- const _UFDRn = "UnsubscribeFromDatasetResponse";
388
- const _UR = "UpdateRecords";
389
- const _URR = "UpdateRecordsRequest";
390
- const _URRp = "UpdateRecordsResponse";
391
- const _V = "Value";
392
- const _aQE = "awsQueryError";
393
- const _c = "client";
394
- const _e = "error";
395
- const _h = "http";
396
- const _hE = "httpError";
397
- const _hH = "httpHeader";
398
- const _hQ = "httpQuery";
399
- const _lSC = "lastSyncCount";
400
- const _m = "message";
401
- const _mR = "maxResults";
402
- const _nT = "nextToken";
403
- const _s = "server";
404
- const _sST = "syncSessionToken";
405
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.cognitosync";
406
- const _xaCC = "x-amz-Client-Context";
407
- const n0 = "com.amazonaws.cognitosync";
408
- var AlreadyStreamedException$ = [-3, n0, _ASE,
409
- { [_aQE]: [`AlreadyStreamed`, 400], [_e]: _c, [_hE]: 400 },
410
- [_m],
411
- [0], 1
412
- ];
413
- schema.TypeRegistry.for(n0).registerError(AlreadyStreamedException$, AlreadyStreamedException);
414
- var BulkPublishRequest$ = [3, n0, _BPR,
415
- 0,
416
- [_IPI],
417
- [[0, 1]], 1
418
- ];
419
- var BulkPublishResponse$ = [3, n0, _BPRu,
420
- 0,
421
- [_IPI],
422
- [0]
423
- ];
424
- var CognitoStreams$ = [3, n0, _CS,
425
- 0,
426
- [_SN, _RA, _SS],
427
- [0, 0, 0]
428
- ];
429
- var ConcurrentModificationException$ = [-3, n0, _CME,
430
- { [_aQE]: [`ConcurrentModification`, 400], [_e]: _c, [_hE]: 400 },
431
- [_m],
432
- [0], 1
433
- ];
434
- schema.TypeRegistry.for(n0).registerError(ConcurrentModificationException$, ConcurrentModificationException);
435
- var Dataset$ = [3, n0, _D,
436
- 0,
437
- [_II, _DN, _CD, _LMD, _LMB, _DS, _NR],
438
- [0, 0, 4, 4, 0, 1, 1]
439
- ];
440
- var DeleteDatasetRequest$ = [3, n0, _DDR,
441
- 0,
442
- [_IPI, _II, _DN],
443
- [[0, 1], [0, 1], [0, 1]], 3
444
- ];
445
- var DeleteDatasetResponse$ = [3, n0, _DDRe,
446
- 0,
447
- [_D],
448
- [() => Dataset$]
449
- ];
450
- var DescribeDatasetRequest$ = [3, n0, _DDRes,
451
- 0,
452
- [_IPI, _II, _DN],
453
- [[0, 1], [0, 1], [0, 1]], 3
454
- ];
455
- var DescribeDatasetResponse$ = [3, n0, _DDResc,
456
- 0,
457
- [_D],
458
- [() => Dataset$]
459
- ];
460
- var DescribeIdentityPoolUsageRequest$ = [3, n0, _DIPUR,
461
- 0,
462
- [_IPI],
463
- [[0, 1]], 1
464
- ];
465
- var DescribeIdentityPoolUsageResponse$ = [3, n0, _DIPURe,
466
- 0,
467
- [_IPU],
468
- [() => IdentityPoolUsage$]
469
- ];
470
- var DescribeIdentityUsageRequest$ = [3, n0, _DIUR,
471
- 0,
472
- [_IPI, _II],
473
- [[0, 1], [0, 1]], 2
474
- ];
475
- var DescribeIdentityUsageResponse$ = [3, n0, _DIURe,
476
- 0,
477
- [_IU],
478
- [() => IdentityUsage$]
479
- ];
480
- var DuplicateRequestException$ = [-3, n0, _DRE,
481
- { [_aQE]: [`DuplicateRequest`, 400], [_e]: _c, [_hE]: 400 },
482
- [_m],
483
- [0], 1
484
- ];
485
- schema.TypeRegistry.for(n0).registerError(DuplicateRequestException$, DuplicateRequestException);
486
- var GetBulkPublishDetailsRequest$ = [3, n0, _GBPDR,
487
- 0,
488
- [_IPI],
489
- [[0, 1]], 1
490
- ];
491
- var GetBulkPublishDetailsResponse$ = [3, n0, _GBPDRe,
492
- 0,
493
- [_IPI, _BPST, _BPCT, _BPS, _FM],
494
- [0, 4, 4, 0, 0]
495
- ];
496
- var GetCognitoEventsRequest$ = [3, n0, _GCER,
497
- 0,
498
- [_IPI],
499
- [[0, 1]], 1
500
- ];
501
- var GetCognitoEventsResponse$ = [3, n0, _GCERe,
502
- 0,
503
- [_E],
504
- [128 | 0]
505
- ];
506
- var GetIdentityPoolConfigurationRequest$ = [3, n0, _GIPCR,
507
- 0,
508
- [_IPI],
509
- [[0, 1]], 1
510
- ];
511
- var GetIdentityPoolConfigurationResponse$ = [3, n0, _GIPCRe,
512
- 0,
513
- [_IPI, _PS, _CS],
514
- [0, () => PushSync$, () => CognitoStreams$]
515
- ];
516
- var IdentityPoolUsage$ = [3, n0, _IPU,
517
- 0,
518
- [_IPI, _SSC, _DS, _LMD],
519
- [0, 1, 1, 4]
520
- ];
521
- var IdentityUsage$ = [3, n0, _IU,
522
- 0,
523
- [_II, _IPI, _LMD, _DC, _DS],
524
- [0, 0, 4, 1, 1]
525
- ];
526
- var InternalErrorException$ = [-3, n0, _IEE,
527
- { [_aQE]: [`InternalError`, 500], [_e]: _s, [_hE]: 500 },
528
- [_m],
529
- [0], 1
530
- ];
531
- schema.TypeRegistry.for(n0).registerError(InternalErrorException$, InternalErrorException);
532
- var InvalidConfigurationException$ = [-3, n0, _ICE,
533
- { [_aQE]: [`InvalidConfiguration`, 400], [_e]: _c, [_hE]: 400 },
534
- [_m],
535
- [0], 1
536
- ];
537
- schema.TypeRegistry.for(n0).registerError(InvalidConfigurationException$, InvalidConfigurationException);
538
- var InvalidLambdaFunctionOutputException$ = [-3, n0, _ILFOE,
539
- { [_aQE]: [`InvalidLambdaFunctionOutput`, 400], [_e]: _c, [_hE]: 400 },
540
- [_m],
541
- [0], 1
542
- ];
543
- schema.TypeRegistry.for(n0).registerError(InvalidLambdaFunctionOutputException$, InvalidLambdaFunctionOutputException);
544
- var InvalidParameterException$ = [-3, n0, _IPE,
545
- { [_aQE]: [`InvalidParameter`, 400], [_e]: _c, [_hE]: 400 },
546
- [_m],
547
- [0], 1
548
- ];
549
- schema.TypeRegistry.for(n0).registerError(InvalidParameterException$, InvalidParameterException);
550
- var LambdaThrottledException$ = [-3, n0, _LTE,
551
- { [_aQE]: [`LambdaThrottled`, 429], [_e]: _c, [_hE]: 429 },
552
- [_m],
553
- [0], 1
554
- ];
555
- schema.TypeRegistry.for(n0).registerError(LambdaThrottledException$, LambdaThrottledException);
556
- var LimitExceededException$ = [-3, n0, _LEE,
557
- { [_aQE]: [`LimitExceeded`, 400], [_e]: _c, [_hE]: 400 },
558
- [_m],
559
- [0], 1
560
- ];
561
- schema.TypeRegistry.for(n0).registerError(LimitExceededException$, LimitExceededException);
562
- var ListDatasetsRequest$ = [3, n0, _LDR,
563
- 0,
564
- [_IPI, _II, _NT, _MR],
565
- [[0, 1], [0, 1], [0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]], 2
566
- ];
567
- var ListDatasetsResponse$ = [3, n0, _LDRi,
568
- 0,
569
- [_Da, _C, _NT],
570
- [() => DatasetList, 1, 0]
571
- ];
572
- var ListIdentityPoolUsageRequest$ = [3, n0, _LIPUR,
573
- 0,
574
- [_NT, _MR],
575
- [[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]]
576
- ];
577
- var ListIdentityPoolUsageResponse$ = [3, n0, _LIPURi,
578
- 0,
579
- [_IPUd, _MR, _C, _NT],
580
- [() => IdentityPoolUsageList, 1, 1, 0]
581
- ];
582
- var ListRecordsRequest$ = [3, n0, _LRR,
583
- 0,
584
- [_IPI, _II, _DN, _LSC, _NT, _MR, _SST],
585
- [[0, 1], [0, 1], [0, 1], [1, { [_hQ]: _lSC }], [0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _sST }]], 3
586
- ];
587
- var ListRecordsResponse$ = [3, n0, _LRRi,
588
- 0,
589
- [_R, _NT, _C, _DSC, _LMB, _MDN, _DE, _DDARSC, _SST],
590
- [() => RecordList, 0, 1, 1, 0, 64 | 0, 2, 2, 0]
591
- ];
592
- var NotAuthorizedException$ = [-3, n0, _NAE,
593
- { [_aQE]: [`NotAuthorizedError`, 403], [_e]: _c, [_hE]: 403 },
594
- [_m],
595
- [0], 1
596
- ];
597
- schema.TypeRegistry.for(n0).registerError(NotAuthorizedException$, NotAuthorizedException);
598
- var PushSync$ = [3, n0, _PS,
599
- 0,
600
- [_AA, _RA],
601
- [64 | 0, 0]
602
- ];
603
- var _Record$ = [3, n0, _Re,
604
- 0,
605
- [_K, _V, _SC, _LMD, _LMB, _DLMD],
606
- [0, 0, 1, 4, 0, 4]
607
- ];
608
- var RecordPatch$ = [3, n0, _RP,
609
- 0,
610
- [_O, _K, _SC, _V, _DLMD],
611
- [0, 0, 1, 0, 4], 3
612
- ];
613
- var RegisterDeviceRequest$ = [3, n0, _RDR,
614
- 0,
615
- [_IPI, _II, _P, _T],
616
- [[0, 1], [0, 1], 0, 0], 4
617
- ];
618
- var RegisterDeviceResponse$ = [3, n0, _RDRe,
619
- 0,
620
- [_DI],
621
- [0]
622
- ];
623
- var ResourceConflictException$ = [-3, n0, _RCE,
624
- { [_aQE]: [`ResourceConflict`, 409], [_e]: _c, [_hE]: 409 },
625
- [_m],
626
- [0], 1
627
- ];
628
- schema.TypeRegistry.for(n0).registerError(ResourceConflictException$, ResourceConflictException);
629
- var ResourceNotFoundException$ = [-3, n0, _RNFE,
630
- { [_aQE]: [`ResourceNotFound`, 404], [_e]: _c, [_hE]: 404 },
631
- [_m],
632
- [0], 1
633
- ];
634
- schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
635
- var SetCognitoEventsRequest$ = [3, n0, _SCER,
636
- 0,
637
- [_IPI, _E],
638
- [[0, 1], 128 | 0], 2
639
- ];
640
- var SetIdentityPoolConfigurationRequest$ = [3, n0, _SIPCR,
641
- 0,
642
- [_IPI, _PS, _CS],
643
- [[0, 1], () => PushSync$, () => CognitoStreams$], 1
644
- ];
645
- var SetIdentityPoolConfigurationResponse$ = [3, n0, _SIPCRe,
646
- 0,
647
- [_IPI, _PS, _CS],
648
- [0, () => PushSync$, () => CognitoStreams$]
649
- ];
650
- var SubscribeToDatasetRequest$ = [3, n0, _STDR,
651
- 0,
652
- [_IPI, _II, _DN, _DI],
653
- [[0, 1], [0, 1], [0, 1], [0, 1]], 4
654
- ];
655
- var SubscribeToDatasetResponse$ = [3, n0, _STDRu,
656
- 0,
657
- [],
658
- []
659
- ];
660
- var TooManyRequestsException$ = [-3, n0, _TMRE,
661
- { [_aQE]: [`TooManyRequests`, 429], [_e]: _c, [_hE]: 429 },
662
- [_m],
663
- [0], 1
664
- ];
665
- schema.TypeRegistry.for(n0).registerError(TooManyRequestsException$, TooManyRequestsException);
666
- var UnsubscribeFromDatasetRequest$ = [3, n0, _UFDR,
667
- 0,
668
- [_IPI, _II, _DN, _DI],
669
- [[0, 1], [0, 1], [0, 1], [0, 1]], 4
670
- ];
671
- var UnsubscribeFromDatasetResponse$ = [3, n0, _UFDRn,
672
- 0,
673
- [],
674
- []
675
- ];
676
- var UpdateRecordsRequest$ = [3, n0, _URR,
677
- 0,
678
- [_IPI, _II, _DN, _SST, _DI, _RPe, _CC],
679
- [[0, 1], [0, 1], [0, 1], 0, 0, () => RecordPatchList, [0, { [_hH]: _xaCC }]], 4
680
- ];
681
- var UpdateRecordsResponse$ = [3, n0, _URRp,
682
- 0,
683
- [_R],
684
- [() => RecordList]
685
- ];
686
- var __Unit = "unit";
687
- var CognitoSyncServiceException$ = [-3, _sm, "CognitoSyncServiceException", 0, [], []];
688
- schema.TypeRegistry.for(_sm).registerError(CognitoSyncServiceException$, CognitoSyncServiceException);
689
- var DatasetList = [1, n0, _DL,
690
- 0, () => Dataset$
691
- ];
692
- var IdentityPoolUsageList = [1, n0, _IPUL,
693
- 0, () => IdentityPoolUsage$
694
- ];
695
- var RecordList = [1, n0, _RL,
696
- 0, () => _Record$
697
- ];
698
- var RecordPatchList = [1, n0, _RPL,
699
- 0, () => RecordPatch$
700
- ];
701
- var BulkPublish$ = [9, n0, _BP,
702
- { [_h]: ["POST", "/identitypools/{IdentityPoolId}/bulkpublish", 200] }, () => BulkPublishRequest$, () => BulkPublishResponse$
703
- ];
704
- var DeleteDataset$ = [9, n0, _DD,
705
- { [_h]: ["DELETE", "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}", 200] }, () => DeleteDatasetRequest$, () => DeleteDatasetResponse$
706
- ];
707
- var DescribeDataset$ = [9, n0, _DDe,
708
- { [_h]: ["GET", "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}", 200] }, () => DescribeDatasetRequest$, () => DescribeDatasetResponse$
709
- ];
710
- var DescribeIdentityPoolUsage$ = [9, n0, _DIPU,
711
- { [_h]: ["GET", "/identitypools/{IdentityPoolId}", 200] }, () => DescribeIdentityPoolUsageRequest$, () => DescribeIdentityPoolUsageResponse$
712
- ];
713
- var DescribeIdentityUsage$ = [9, n0, _DIU,
714
- { [_h]: ["GET", "/identitypools/{IdentityPoolId}/identities/{IdentityId}", 200] }, () => DescribeIdentityUsageRequest$, () => DescribeIdentityUsageResponse$
715
- ];
716
- var GetBulkPublishDetails$ = [9, n0, _GBPD,
717
- { [_h]: ["POST", "/identitypools/{IdentityPoolId}/getBulkPublishDetails", 200] }, () => GetBulkPublishDetailsRequest$, () => GetBulkPublishDetailsResponse$
718
- ];
719
- var GetCognitoEvents$ = [9, n0, _GCE,
720
- { [_h]: ["GET", "/identitypools/{IdentityPoolId}/events", 200] }, () => GetCognitoEventsRequest$, () => GetCognitoEventsResponse$
721
- ];
722
- var GetIdentityPoolConfiguration$ = [9, n0, _GIPC,
723
- { [_h]: ["GET", "/identitypools/{IdentityPoolId}/configuration", 200] }, () => GetIdentityPoolConfigurationRequest$, () => GetIdentityPoolConfigurationResponse$
724
- ];
725
- var ListDatasets$ = [9, n0, _LD,
726
- { [_h]: ["GET", "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets", 200] }, () => ListDatasetsRequest$, () => ListDatasetsResponse$
727
- ];
728
- var ListIdentityPoolUsage$ = [9, n0, _LIPU,
729
- { [_h]: ["GET", "/identitypools", 200] }, () => ListIdentityPoolUsageRequest$, () => ListIdentityPoolUsageResponse$
730
- ];
731
- var ListRecords$ = [9, n0, _LR,
732
- { [_h]: ["GET", "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/records", 200] }, () => ListRecordsRequest$, () => ListRecordsResponse$
733
- ];
734
- var RegisterDevice$ = [9, n0, _RD,
735
- { [_h]: ["POST", "/identitypools/{IdentityPoolId}/identity/{IdentityId}/device", 200] }, () => RegisterDeviceRequest$, () => RegisterDeviceResponse$
736
- ];
737
- var SetCognitoEvents$ = [9, n0, _SCE,
738
- { [_h]: ["POST", "/identitypools/{IdentityPoolId}/events", 200] }, () => SetCognitoEventsRequest$, () => __Unit
739
- ];
740
- var SetIdentityPoolConfiguration$ = [9, n0, _SIPC,
741
- { [_h]: ["POST", "/identitypools/{IdentityPoolId}/configuration", 200] }, () => SetIdentityPoolConfigurationRequest$, () => SetIdentityPoolConfigurationResponse$
742
- ];
743
- var SubscribeToDataset$ = [9, n0, _STD,
744
- { [_h]: ["POST", "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/subscriptions/{DeviceId}", 200] }, () => SubscribeToDatasetRequest$, () => SubscribeToDatasetResponse$
745
- ];
746
- var UnsubscribeFromDataset$ = [9, n0, _UFD,
747
- { [_h]: ["DELETE", "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/subscriptions/{DeviceId}", 200] }, () => UnsubscribeFromDatasetRequest$, () => UnsubscribeFromDatasetResponse$
748
- ];
749
- var UpdateRecords$ = [9, n0, _UR,
750
- { [_h]: ["POST", "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}", 200] }, () => UpdateRecordsRequest$, () => UpdateRecordsResponse$
751
- ];
752
-
753
116
  class BulkPublishCommand extends smithyClient.Command
754
117
  .classBuilder()
755
118
  .ep(commonParams)
@@ -758,7 +121,7 @@ class BulkPublishCommand extends smithyClient.Command
758
121
  })
759
122
  .s("AWSCognitoSyncService", "BulkPublish", {})
760
123
  .n("CognitoSyncClient", "BulkPublishCommand")
761
- .sc(BulkPublish$)
124
+ .sc(schemas_0.BulkPublish$)
762
125
  .build() {
763
126
  }
764
127
 
@@ -770,7 +133,7 @@ class DeleteDatasetCommand extends smithyClient.Command
770
133
  })
771
134
  .s("AWSCognitoSyncService", "DeleteDataset", {})
772
135
  .n("CognitoSyncClient", "DeleteDatasetCommand")
773
- .sc(DeleteDataset$)
136
+ .sc(schemas_0.DeleteDataset$)
774
137
  .build() {
775
138
  }
776
139
 
@@ -782,7 +145,7 @@ class DescribeDatasetCommand extends smithyClient.Command
782
145
  })
783
146
  .s("AWSCognitoSyncService", "DescribeDataset", {})
784
147
  .n("CognitoSyncClient", "DescribeDatasetCommand")
785
- .sc(DescribeDataset$)
148
+ .sc(schemas_0.DescribeDataset$)
786
149
  .build() {
787
150
  }
788
151
 
@@ -794,7 +157,7 @@ class DescribeIdentityPoolUsageCommand extends smithyClient.Command
794
157
  })
795
158
  .s("AWSCognitoSyncService", "DescribeIdentityPoolUsage", {})
796
159
  .n("CognitoSyncClient", "DescribeIdentityPoolUsageCommand")
797
- .sc(DescribeIdentityPoolUsage$)
160
+ .sc(schemas_0.DescribeIdentityPoolUsage$)
798
161
  .build() {
799
162
  }
800
163
 
@@ -806,7 +169,7 @@ class DescribeIdentityUsageCommand extends smithyClient.Command
806
169
  })
807
170
  .s("AWSCognitoSyncService", "DescribeIdentityUsage", {})
808
171
  .n("CognitoSyncClient", "DescribeIdentityUsageCommand")
809
- .sc(DescribeIdentityUsage$)
172
+ .sc(schemas_0.DescribeIdentityUsage$)
810
173
  .build() {
811
174
  }
812
175
 
@@ -818,7 +181,7 @@ class GetBulkPublishDetailsCommand extends smithyClient.Command
818
181
  })
819
182
  .s("AWSCognitoSyncService", "GetBulkPublishDetails", {})
820
183
  .n("CognitoSyncClient", "GetBulkPublishDetailsCommand")
821
- .sc(GetBulkPublishDetails$)
184
+ .sc(schemas_0.GetBulkPublishDetails$)
822
185
  .build() {
823
186
  }
824
187
 
@@ -830,7 +193,7 @@ class GetCognitoEventsCommand extends smithyClient.Command
830
193
  })
831
194
  .s("AWSCognitoSyncService", "GetCognitoEvents", {})
832
195
  .n("CognitoSyncClient", "GetCognitoEventsCommand")
833
- .sc(GetCognitoEvents$)
196
+ .sc(schemas_0.GetCognitoEvents$)
834
197
  .build() {
835
198
  }
836
199
 
@@ -842,7 +205,7 @@ class GetIdentityPoolConfigurationCommand extends smithyClient.Command
842
205
  })
843
206
  .s("AWSCognitoSyncService", "GetIdentityPoolConfiguration", {})
844
207
  .n("CognitoSyncClient", "GetIdentityPoolConfigurationCommand")
845
- .sc(GetIdentityPoolConfiguration$)
208
+ .sc(schemas_0.GetIdentityPoolConfiguration$)
846
209
  .build() {
847
210
  }
848
211
 
@@ -854,7 +217,7 @@ class ListDatasetsCommand extends smithyClient.Command
854
217
  })
855
218
  .s("AWSCognitoSyncService", "ListDatasets", {})
856
219
  .n("CognitoSyncClient", "ListDatasetsCommand")
857
- .sc(ListDatasets$)
220
+ .sc(schemas_0.ListDatasets$)
858
221
  .build() {
859
222
  }
860
223
 
@@ -866,7 +229,7 @@ class ListIdentityPoolUsageCommand extends smithyClient.Command
866
229
  })
867
230
  .s("AWSCognitoSyncService", "ListIdentityPoolUsage", {})
868
231
  .n("CognitoSyncClient", "ListIdentityPoolUsageCommand")
869
- .sc(ListIdentityPoolUsage$)
232
+ .sc(schemas_0.ListIdentityPoolUsage$)
870
233
  .build() {
871
234
  }
872
235
 
@@ -878,7 +241,7 @@ class ListRecordsCommand extends smithyClient.Command
878
241
  })
879
242
  .s("AWSCognitoSyncService", "ListRecords", {})
880
243
  .n("CognitoSyncClient", "ListRecordsCommand")
881
- .sc(ListRecords$)
244
+ .sc(schemas_0.ListRecords$)
882
245
  .build() {
883
246
  }
884
247
 
@@ -890,7 +253,7 @@ class RegisterDeviceCommand extends smithyClient.Command
890
253
  })
891
254
  .s("AWSCognitoSyncService", "RegisterDevice", {})
892
255
  .n("CognitoSyncClient", "RegisterDeviceCommand")
893
- .sc(RegisterDevice$)
256
+ .sc(schemas_0.RegisterDevice$)
894
257
  .build() {
895
258
  }
896
259
 
@@ -902,7 +265,7 @@ class SetCognitoEventsCommand extends smithyClient.Command
902
265
  })
903
266
  .s("AWSCognitoSyncService", "SetCognitoEvents", {})
904
267
  .n("CognitoSyncClient", "SetCognitoEventsCommand")
905
- .sc(SetCognitoEvents$)
268
+ .sc(schemas_0.SetCognitoEvents$)
906
269
  .build() {
907
270
  }
908
271
 
@@ -914,7 +277,7 @@ class SetIdentityPoolConfigurationCommand extends smithyClient.Command
914
277
  })
915
278
  .s("AWSCognitoSyncService", "SetIdentityPoolConfiguration", {})
916
279
  .n("CognitoSyncClient", "SetIdentityPoolConfigurationCommand")
917
- .sc(SetIdentityPoolConfiguration$)
280
+ .sc(schemas_0.SetIdentityPoolConfiguration$)
918
281
  .build() {
919
282
  }
920
283
 
@@ -926,7 +289,7 @@ class SubscribeToDatasetCommand extends smithyClient.Command
926
289
  })
927
290
  .s("AWSCognitoSyncService", "SubscribeToDataset", {})
928
291
  .n("CognitoSyncClient", "SubscribeToDatasetCommand")
929
- .sc(SubscribeToDataset$)
292
+ .sc(schemas_0.SubscribeToDataset$)
930
293
  .build() {
931
294
  }
932
295
 
@@ -938,7 +301,7 @@ class UnsubscribeFromDatasetCommand extends smithyClient.Command
938
301
  })
939
302
  .s("AWSCognitoSyncService", "UnsubscribeFromDataset", {})
940
303
  .n("CognitoSyncClient", "UnsubscribeFromDatasetCommand")
941
- .sc(UnsubscribeFromDataset$)
304
+ .sc(schemas_0.UnsubscribeFromDataset$)
942
305
  .build() {
943
306
  }
944
307
 
@@ -950,7 +313,7 @@ class UpdateRecordsCommand extends smithyClient.Command
950
313
  })
951
314
  .s("AWSCognitoSyncService", "UpdateRecords", {})
952
315
  .n("CognitoSyncClient", "UpdateRecordsCommand")
953
- .sc(UpdateRecords$)
316
+ .sc(schemas_0.UpdateRecords$)
954
317
  .build() {
955
318
  }
956
319
 
@@ -1006,111 +369,42 @@ Object.defineProperty(exports, "__Client", {
1006
369
  enumerable: true,
1007
370
  get: function () { return smithyClient.Client; }
1008
371
  });
1009
- exports.AlreadyStreamedException = AlreadyStreamedException;
1010
- exports.AlreadyStreamedException$ = AlreadyStreamedException$;
1011
- exports.BulkPublish$ = BulkPublish$;
372
+ Object.defineProperty(exports, "CognitoSyncServiceException", {
373
+ enumerable: true,
374
+ get: function () { return CognitoSyncServiceException.CognitoSyncServiceException; }
375
+ });
1012
376
  exports.BulkPublishCommand = BulkPublishCommand;
1013
- exports.BulkPublishRequest$ = BulkPublishRequest$;
1014
- exports.BulkPublishResponse$ = BulkPublishResponse$;
1015
377
  exports.BulkPublishStatus = BulkPublishStatus;
1016
- exports.CognitoStreams$ = CognitoStreams$;
1017
378
  exports.CognitoSync = CognitoSync;
1018
379
  exports.CognitoSyncClient = CognitoSyncClient;
1019
- exports.CognitoSyncServiceException = CognitoSyncServiceException;
1020
- exports.CognitoSyncServiceException$ = CognitoSyncServiceException$;
1021
- exports.ConcurrentModificationException = ConcurrentModificationException;
1022
- exports.ConcurrentModificationException$ = ConcurrentModificationException$;
1023
- exports.Dataset$ = Dataset$;
1024
- exports.DeleteDataset$ = DeleteDataset$;
1025
380
  exports.DeleteDatasetCommand = DeleteDatasetCommand;
1026
- exports.DeleteDatasetRequest$ = DeleteDatasetRequest$;
1027
- exports.DeleteDatasetResponse$ = DeleteDatasetResponse$;
1028
- exports.DescribeDataset$ = DescribeDataset$;
1029
381
  exports.DescribeDatasetCommand = DescribeDatasetCommand;
1030
- exports.DescribeDatasetRequest$ = DescribeDatasetRequest$;
1031
- exports.DescribeDatasetResponse$ = DescribeDatasetResponse$;
1032
- exports.DescribeIdentityPoolUsage$ = DescribeIdentityPoolUsage$;
1033
382
  exports.DescribeIdentityPoolUsageCommand = DescribeIdentityPoolUsageCommand;
1034
- exports.DescribeIdentityPoolUsageRequest$ = DescribeIdentityPoolUsageRequest$;
1035
- exports.DescribeIdentityPoolUsageResponse$ = DescribeIdentityPoolUsageResponse$;
1036
- exports.DescribeIdentityUsage$ = DescribeIdentityUsage$;
1037
383
  exports.DescribeIdentityUsageCommand = DescribeIdentityUsageCommand;
1038
- exports.DescribeIdentityUsageRequest$ = DescribeIdentityUsageRequest$;
1039
- exports.DescribeIdentityUsageResponse$ = DescribeIdentityUsageResponse$;
1040
- exports.DuplicateRequestException = DuplicateRequestException;
1041
- exports.DuplicateRequestException$ = DuplicateRequestException$;
1042
- exports.GetBulkPublishDetails$ = GetBulkPublishDetails$;
1043
384
  exports.GetBulkPublishDetailsCommand = GetBulkPublishDetailsCommand;
1044
- exports.GetBulkPublishDetailsRequest$ = GetBulkPublishDetailsRequest$;
1045
- exports.GetBulkPublishDetailsResponse$ = GetBulkPublishDetailsResponse$;
1046
- exports.GetCognitoEvents$ = GetCognitoEvents$;
1047
385
  exports.GetCognitoEventsCommand = GetCognitoEventsCommand;
1048
- exports.GetCognitoEventsRequest$ = GetCognitoEventsRequest$;
1049
- exports.GetCognitoEventsResponse$ = GetCognitoEventsResponse$;
1050
- exports.GetIdentityPoolConfiguration$ = GetIdentityPoolConfiguration$;
1051
386
  exports.GetIdentityPoolConfigurationCommand = GetIdentityPoolConfigurationCommand;
1052
- exports.GetIdentityPoolConfigurationRequest$ = GetIdentityPoolConfigurationRequest$;
1053
- exports.GetIdentityPoolConfigurationResponse$ = GetIdentityPoolConfigurationResponse$;
1054
- exports.IdentityPoolUsage$ = IdentityPoolUsage$;
1055
- exports.IdentityUsage$ = IdentityUsage$;
1056
- exports.InternalErrorException = InternalErrorException;
1057
- exports.InternalErrorException$ = InternalErrorException$;
1058
- exports.InvalidConfigurationException = InvalidConfigurationException;
1059
- exports.InvalidConfigurationException$ = InvalidConfigurationException$;
1060
- exports.InvalidLambdaFunctionOutputException = InvalidLambdaFunctionOutputException;
1061
- exports.InvalidLambdaFunctionOutputException$ = InvalidLambdaFunctionOutputException$;
1062
- exports.InvalidParameterException = InvalidParameterException;
1063
- exports.InvalidParameterException$ = InvalidParameterException$;
1064
- exports.LambdaThrottledException = LambdaThrottledException;
1065
- exports.LambdaThrottledException$ = LambdaThrottledException$;
1066
- exports.LimitExceededException = LimitExceededException;
1067
- exports.LimitExceededException$ = LimitExceededException$;
1068
- exports.ListDatasets$ = ListDatasets$;
1069
387
  exports.ListDatasetsCommand = ListDatasetsCommand;
1070
- exports.ListDatasetsRequest$ = ListDatasetsRequest$;
1071
- exports.ListDatasetsResponse$ = ListDatasetsResponse$;
1072
- exports.ListIdentityPoolUsage$ = ListIdentityPoolUsage$;
1073
388
  exports.ListIdentityPoolUsageCommand = ListIdentityPoolUsageCommand;
1074
- exports.ListIdentityPoolUsageRequest$ = ListIdentityPoolUsageRequest$;
1075
- exports.ListIdentityPoolUsageResponse$ = ListIdentityPoolUsageResponse$;
1076
- exports.ListRecords$ = ListRecords$;
1077
389
  exports.ListRecordsCommand = ListRecordsCommand;
1078
- exports.ListRecordsRequest$ = ListRecordsRequest$;
1079
- exports.ListRecordsResponse$ = ListRecordsResponse$;
1080
- exports.NotAuthorizedException = NotAuthorizedException;
1081
- exports.NotAuthorizedException$ = NotAuthorizedException$;
1082
390
  exports.Operation = Operation;
1083
391
  exports.Platform = Platform;
1084
- exports.PushSync$ = PushSync$;
1085
- exports.RecordPatch$ = RecordPatch$;
1086
- exports.RegisterDevice$ = RegisterDevice$;
1087
392
  exports.RegisterDeviceCommand = RegisterDeviceCommand;
1088
- exports.RegisterDeviceRequest$ = RegisterDeviceRequest$;
1089
- exports.RegisterDeviceResponse$ = RegisterDeviceResponse$;
1090
- exports.ResourceConflictException = ResourceConflictException;
1091
- exports.ResourceConflictException$ = ResourceConflictException$;
1092
- exports.ResourceNotFoundException = ResourceNotFoundException;
1093
- exports.ResourceNotFoundException$ = ResourceNotFoundException$;
1094
- exports.SetCognitoEvents$ = SetCognitoEvents$;
1095
393
  exports.SetCognitoEventsCommand = SetCognitoEventsCommand;
1096
- exports.SetCognitoEventsRequest$ = SetCognitoEventsRequest$;
1097
- exports.SetIdentityPoolConfiguration$ = SetIdentityPoolConfiguration$;
1098
394
  exports.SetIdentityPoolConfigurationCommand = SetIdentityPoolConfigurationCommand;
1099
- exports.SetIdentityPoolConfigurationRequest$ = SetIdentityPoolConfigurationRequest$;
1100
- exports.SetIdentityPoolConfigurationResponse$ = SetIdentityPoolConfigurationResponse$;
1101
395
  exports.StreamingStatus = StreamingStatus;
1102
- exports.SubscribeToDataset$ = SubscribeToDataset$;
1103
396
  exports.SubscribeToDatasetCommand = SubscribeToDatasetCommand;
1104
- exports.SubscribeToDatasetRequest$ = SubscribeToDatasetRequest$;
1105
- exports.SubscribeToDatasetResponse$ = SubscribeToDatasetResponse$;
1106
- exports.TooManyRequestsException = TooManyRequestsException;
1107
- exports.TooManyRequestsException$ = TooManyRequestsException$;
1108
- exports.UnsubscribeFromDataset$ = UnsubscribeFromDataset$;
1109
397
  exports.UnsubscribeFromDatasetCommand = UnsubscribeFromDatasetCommand;
1110
- exports.UnsubscribeFromDatasetRequest$ = UnsubscribeFromDatasetRequest$;
1111
- exports.UnsubscribeFromDatasetResponse$ = UnsubscribeFromDatasetResponse$;
1112
- exports.UpdateRecords$ = UpdateRecords$;
1113
398
  exports.UpdateRecordsCommand = UpdateRecordsCommand;
1114
- exports.UpdateRecordsRequest$ = UpdateRecordsRequest$;
1115
- exports.UpdateRecordsResponse$ = UpdateRecordsResponse$;
1116
- exports._Record$ = _Record$;
399
+ Object.keys(schemas_0).forEach(function (k) {
400
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
401
+ enumerable: true,
402
+ get: function () { return schemas_0[k]; }
403
+ });
404
+ });
405
+ Object.keys(errors).forEach(function (k) {
406
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
407
+ enumerable: true,
408
+ get: function () { return errors[k]; }
409
+ });
410
+ });