@aws-sdk/client-keyspaces 3.312.0 → 3.316.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.
@@ -8,63 +8,63 @@ const models_0_1 = require("../models/models_0");
8
8
  const se_CreateKeyspaceCommand = async (input, context) => {
9
9
  const headers = sharedHeaders("CreateKeyspace");
10
10
  let body;
11
- body = JSON.stringify(se_CreateKeyspaceRequest(input, context));
11
+ body = JSON.stringify((0, smithy_client_1._json)(input));
12
12
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
13
13
  };
14
14
  exports.se_CreateKeyspaceCommand = se_CreateKeyspaceCommand;
15
15
  const se_CreateTableCommand = async (input, context) => {
16
16
  const headers = sharedHeaders("CreateTable");
17
17
  let body;
18
- body = JSON.stringify(se_CreateTableRequest(input, context));
18
+ body = JSON.stringify((0, smithy_client_1._json)(input));
19
19
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
20
20
  };
21
21
  exports.se_CreateTableCommand = se_CreateTableCommand;
22
22
  const se_DeleteKeyspaceCommand = async (input, context) => {
23
23
  const headers = sharedHeaders("DeleteKeyspace");
24
24
  let body;
25
- body = JSON.stringify(se_DeleteKeyspaceRequest(input, context));
25
+ body = JSON.stringify((0, smithy_client_1._json)(input));
26
26
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
27
27
  };
28
28
  exports.se_DeleteKeyspaceCommand = se_DeleteKeyspaceCommand;
29
29
  const se_DeleteTableCommand = async (input, context) => {
30
30
  const headers = sharedHeaders("DeleteTable");
31
31
  let body;
32
- body = JSON.stringify(se_DeleteTableRequest(input, context));
32
+ body = JSON.stringify((0, smithy_client_1._json)(input));
33
33
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
34
34
  };
35
35
  exports.se_DeleteTableCommand = se_DeleteTableCommand;
36
36
  const se_GetKeyspaceCommand = async (input, context) => {
37
37
  const headers = sharedHeaders("GetKeyspace");
38
38
  let body;
39
- body = JSON.stringify(se_GetKeyspaceRequest(input, context));
39
+ body = JSON.stringify((0, smithy_client_1._json)(input));
40
40
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
41
41
  };
42
42
  exports.se_GetKeyspaceCommand = se_GetKeyspaceCommand;
43
43
  const se_GetTableCommand = async (input, context) => {
44
44
  const headers = sharedHeaders("GetTable");
45
45
  let body;
46
- body = JSON.stringify(se_GetTableRequest(input, context));
46
+ body = JSON.stringify((0, smithy_client_1._json)(input));
47
47
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
48
48
  };
49
49
  exports.se_GetTableCommand = se_GetTableCommand;
50
50
  const se_ListKeyspacesCommand = async (input, context) => {
51
51
  const headers = sharedHeaders("ListKeyspaces");
52
52
  let body;
53
- body = JSON.stringify(se_ListKeyspacesRequest(input, context));
53
+ body = JSON.stringify((0, smithy_client_1._json)(input));
54
54
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
55
55
  };
56
56
  exports.se_ListKeyspacesCommand = se_ListKeyspacesCommand;
57
57
  const se_ListTablesCommand = async (input, context) => {
58
58
  const headers = sharedHeaders("ListTables");
59
59
  let body;
60
- body = JSON.stringify(se_ListTablesRequest(input, context));
60
+ body = JSON.stringify((0, smithy_client_1._json)(input));
61
61
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
62
62
  };
63
63
  exports.se_ListTablesCommand = se_ListTablesCommand;
64
64
  const se_ListTagsForResourceCommand = async (input, context) => {
65
65
  const headers = sharedHeaders("ListTagsForResource");
66
66
  let body;
67
- body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
67
+ body = JSON.stringify((0, smithy_client_1._json)(input));
68
68
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
69
69
  };
70
70
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
@@ -78,21 +78,21 @@ exports.se_RestoreTableCommand = se_RestoreTableCommand;
78
78
  const se_TagResourceCommand = async (input, context) => {
79
79
  const headers = sharedHeaders("TagResource");
80
80
  let body;
81
- body = JSON.stringify(se_TagResourceRequest(input, context));
81
+ body = JSON.stringify((0, smithy_client_1._json)(input));
82
82
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
83
83
  };
84
84
  exports.se_TagResourceCommand = se_TagResourceCommand;
85
85
  const se_UntagResourceCommand = async (input, context) => {
86
86
  const headers = sharedHeaders("UntagResource");
87
87
  let body;
88
- body = JSON.stringify(se_UntagResourceRequest(input, context));
88
+ body = JSON.stringify((0, smithy_client_1._json)(input));
89
89
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
90
90
  };
91
91
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
92
92
  const se_UpdateTableCommand = async (input, context) => {
93
93
  const headers = sharedHeaders("UpdateTable");
94
94
  let body;
95
- body = JSON.stringify(se_UpdateTableRequest(input, context));
95
+ body = JSON.stringify((0, smithy_client_1._json)(input));
96
96
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
97
97
  };
98
98
  exports.se_UpdateTableCommand = se_UpdateTableCommand;
@@ -102,12 +102,12 @@ const de_CreateKeyspaceCommand = async (output, context) => {
102
102
  }
103
103
  const data = await parseBody(output.body, context);
104
104
  let contents = {};
105
- contents = de_CreateKeyspaceResponse(data, context);
105
+ contents = (0, smithy_client_1._json)(data);
106
106
  const response = {
107
107
  $metadata: deserializeMetadata(output),
108
108
  ...contents,
109
109
  };
110
- return Promise.resolve(response);
110
+ return response;
111
111
  };
112
112
  exports.de_CreateKeyspaceCommand = de_CreateKeyspaceCommand;
113
113
  const de_CreateKeyspaceCommandError = async (output, context) => {
@@ -134,10 +134,9 @@ const de_CreateKeyspaceCommandError = async (output, context) => {
134
134
  throw await de_ValidationExceptionRes(parsedOutput, context);
135
135
  default:
136
136
  const parsedBody = parsedOutput.body;
137
- (0, smithy_client_1.throwDefaultError)({
137
+ return throwDefaultError({
138
138
  output,
139
139
  parsedBody,
140
- exceptionCtor: KeyspacesServiceException_1.KeyspacesServiceException,
141
140
  errorCode,
142
141
  });
143
142
  }
@@ -148,12 +147,12 @@ const de_CreateTableCommand = async (output, context) => {
148
147
  }
149
148
  const data = await parseBody(output.body, context);
150
149
  let contents = {};
151
- contents = de_CreateTableResponse(data, context);
150
+ contents = (0, smithy_client_1._json)(data);
152
151
  const response = {
153
152
  $metadata: deserializeMetadata(output),
154
153
  ...contents,
155
154
  };
156
- return Promise.resolve(response);
155
+ return response;
157
156
  };
158
157
  exports.de_CreateTableCommand = de_CreateTableCommand;
159
158
  const de_CreateTableCommandError = async (output, context) => {
@@ -183,10 +182,9 @@ const de_CreateTableCommandError = async (output, context) => {
183
182
  throw await de_ValidationExceptionRes(parsedOutput, context);
184
183
  default:
185
184
  const parsedBody = parsedOutput.body;
186
- (0, smithy_client_1.throwDefaultError)({
185
+ return throwDefaultError({
187
186
  output,
188
187
  parsedBody,
189
- exceptionCtor: KeyspacesServiceException_1.KeyspacesServiceException,
190
188
  errorCode,
191
189
  });
192
190
  }
@@ -197,12 +195,12 @@ const de_DeleteKeyspaceCommand = async (output, context) => {
197
195
  }
198
196
  const data = await parseBody(output.body, context);
199
197
  let contents = {};
200
- contents = de_DeleteKeyspaceResponse(data, context);
198
+ contents = (0, smithy_client_1._json)(data);
201
199
  const response = {
202
200
  $metadata: deserializeMetadata(output),
203
201
  ...contents,
204
202
  };
205
- return Promise.resolve(response);
203
+ return response;
206
204
  };
207
205
  exports.de_DeleteKeyspaceCommand = de_DeleteKeyspaceCommand;
208
206
  const de_DeleteKeyspaceCommandError = async (output, context) => {
@@ -232,10 +230,9 @@ const de_DeleteKeyspaceCommandError = async (output, context) => {
232
230
  throw await de_ValidationExceptionRes(parsedOutput, context);
233
231
  default:
234
232
  const parsedBody = parsedOutput.body;
235
- (0, smithy_client_1.throwDefaultError)({
233
+ return throwDefaultError({
236
234
  output,
237
235
  parsedBody,
238
- exceptionCtor: KeyspacesServiceException_1.KeyspacesServiceException,
239
236
  errorCode,
240
237
  });
241
238
  }
@@ -246,12 +243,12 @@ const de_DeleteTableCommand = async (output, context) => {
246
243
  }
247
244
  const data = await parseBody(output.body, context);
248
245
  let contents = {};
249
- contents = de_DeleteTableResponse(data, context);
246
+ contents = (0, smithy_client_1._json)(data);
250
247
  const response = {
251
248
  $metadata: deserializeMetadata(output),
252
249
  ...contents,
253
250
  };
254
- return Promise.resolve(response);
251
+ return response;
255
252
  };
256
253
  exports.de_DeleteTableCommand = de_DeleteTableCommand;
257
254
  const de_DeleteTableCommandError = async (output, context) => {
@@ -281,10 +278,9 @@ const de_DeleteTableCommandError = async (output, context) => {
281
278
  throw await de_ValidationExceptionRes(parsedOutput, context);
282
279
  default:
283
280
  const parsedBody = parsedOutput.body;
284
- (0, smithy_client_1.throwDefaultError)({
281
+ return throwDefaultError({
285
282
  output,
286
283
  parsedBody,
287
- exceptionCtor: KeyspacesServiceException_1.KeyspacesServiceException,
288
284
  errorCode,
289
285
  });
290
286
  }
@@ -295,12 +291,12 @@ const de_GetKeyspaceCommand = async (output, context) => {
295
291
  }
296
292
  const data = await parseBody(output.body, context);
297
293
  let contents = {};
298
- contents = de_GetKeyspaceResponse(data, context);
294
+ contents = (0, smithy_client_1._json)(data);
299
295
  const response = {
300
296
  $metadata: deserializeMetadata(output),
301
297
  ...contents,
302
298
  };
303
- return Promise.resolve(response);
299
+ return response;
304
300
  };
305
301
  exports.de_GetKeyspaceCommand = de_GetKeyspaceCommand;
306
302
  const de_GetKeyspaceCommandError = async (output, context) => {
@@ -327,10 +323,9 @@ const de_GetKeyspaceCommandError = async (output, context) => {
327
323
  throw await de_ValidationExceptionRes(parsedOutput, context);
328
324
  default:
329
325
  const parsedBody = parsedOutput.body;
330
- (0, smithy_client_1.throwDefaultError)({
326
+ return throwDefaultError({
331
327
  output,
332
328
  parsedBody,
333
- exceptionCtor: KeyspacesServiceException_1.KeyspacesServiceException,
334
329
  errorCode,
335
330
  });
336
331
  }
@@ -346,7 +341,7 @@ const de_GetTableCommand = async (output, context) => {
346
341
  $metadata: deserializeMetadata(output),
347
342
  ...contents,
348
343
  };
349
- return Promise.resolve(response);
344
+ return response;
350
345
  };
351
346
  exports.de_GetTableCommand = de_GetTableCommand;
352
347
  const de_GetTableCommandError = async (output, context) => {
@@ -373,10 +368,9 @@ const de_GetTableCommandError = async (output, context) => {
373
368
  throw await de_ValidationExceptionRes(parsedOutput, context);
374
369
  default:
375
370
  const parsedBody = parsedOutput.body;
376
- (0, smithy_client_1.throwDefaultError)({
371
+ return throwDefaultError({
377
372
  output,
378
373
  parsedBody,
379
- exceptionCtor: KeyspacesServiceException_1.KeyspacesServiceException,
380
374
  errorCode,
381
375
  });
382
376
  }
@@ -387,12 +381,12 @@ const de_ListKeyspacesCommand = async (output, context) => {
387
381
  }
388
382
  const data = await parseBody(output.body, context);
389
383
  let contents = {};
390
- contents = de_ListKeyspacesResponse(data, context);
384
+ contents = (0, smithy_client_1._json)(data);
391
385
  const response = {
392
386
  $metadata: deserializeMetadata(output),
393
387
  ...contents,
394
388
  };
395
- return Promise.resolve(response);
389
+ return response;
396
390
  };
397
391
  exports.de_ListKeyspacesCommand = de_ListKeyspacesCommand;
398
392
  const de_ListKeyspacesCommandError = async (output, context) => {
@@ -419,10 +413,9 @@ const de_ListKeyspacesCommandError = async (output, context) => {
419
413
  throw await de_ValidationExceptionRes(parsedOutput, context);
420
414
  default:
421
415
  const parsedBody = parsedOutput.body;
422
- (0, smithy_client_1.throwDefaultError)({
416
+ return throwDefaultError({
423
417
  output,
424
418
  parsedBody,
425
- exceptionCtor: KeyspacesServiceException_1.KeyspacesServiceException,
426
419
  errorCode,
427
420
  });
428
421
  }
@@ -433,12 +426,12 @@ const de_ListTablesCommand = async (output, context) => {
433
426
  }
434
427
  const data = await parseBody(output.body, context);
435
428
  let contents = {};
436
- contents = de_ListTablesResponse(data, context);
429
+ contents = (0, smithy_client_1._json)(data);
437
430
  const response = {
438
431
  $metadata: deserializeMetadata(output),
439
432
  ...contents,
440
433
  };
441
- return Promise.resolve(response);
434
+ return response;
442
435
  };
443
436
  exports.de_ListTablesCommand = de_ListTablesCommand;
444
437
  const de_ListTablesCommandError = async (output, context) => {
@@ -465,10 +458,9 @@ const de_ListTablesCommandError = async (output, context) => {
465
458
  throw await de_ValidationExceptionRes(parsedOutput, context);
466
459
  default:
467
460
  const parsedBody = parsedOutput.body;
468
- (0, smithy_client_1.throwDefaultError)({
461
+ return throwDefaultError({
469
462
  output,
470
463
  parsedBody,
471
- exceptionCtor: KeyspacesServiceException_1.KeyspacesServiceException,
472
464
  errorCode,
473
465
  });
474
466
  }
@@ -479,12 +471,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
479
471
  }
480
472
  const data = await parseBody(output.body, context);
481
473
  let contents = {};
482
- contents = de_ListTagsForResourceResponse(data, context);
474
+ contents = (0, smithy_client_1._json)(data);
483
475
  const response = {
484
476
  $metadata: deserializeMetadata(output),
485
477
  ...contents,
486
478
  };
487
- return Promise.resolve(response);
479
+ return response;
488
480
  };
489
481
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
490
482
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -511,10 +503,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
511
503
  throw await de_ValidationExceptionRes(parsedOutput, context);
512
504
  default:
513
505
  const parsedBody = parsedOutput.body;
514
- (0, smithy_client_1.throwDefaultError)({
506
+ return throwDefaultError({
515
507
  output,
516
508
  parsedBody,
517
- exceptionCtor: KeyspacesServiceException_1.KeyspacesServiceException,
518
509
  errorCode,
519
510
  });
520
511
  }
@@ -525,12 +516,12 @@ const de_RestoreTableCommand = async (output, context) => {
525
516
  }
526
517
  const data = await parseBody(output.body, context);
527
518
  let contents = {};
528
- contents = de_RestoreTableResponse(data, context);
519
+ contents = (0, smithy_client_1._json)(data);
529
520
  const response = {
530
521
  $metadata: deserializeMetadata(output),
531
522
  ...contents,
532
523
  };
533
- return Promise.resolve(response);
524
+ return response;
534
525
  };
535
526
  exports.de_RestoreTableCommand = de_RestoreTableCommand;
536
527
  const de_RestoreTableCommandError = async (output, context) => {
@@ -560,10 +551,9 @@ const de_RestoreTableCommandError = async (output, context) => {
560
551
  throw await de_ValidationExceptionRes(parsedOutput, context);
561
552
  default:
562
553
  const parsedBody = parsedOutput.body;
563
- (0, smithy_client_1.throwDefaultError)({
554
+ return throwDefaultError({
564
555
  output,
565
556
  parsedBody,
566
- exceptionCtor: KeyspacesServiceException_1.KeyspacesServiceException,
567
557
  errorCode,
568
558
  });
569
559
  }
@@ -574,12 +564,12 @@ const de_TagResourceCommand = async (output, context) => {
574
564
  }
575
565
  const data = await parseBody(output.body, context);
576
566
  let contents = {};
577
- contents = de_TagResourceResponse(data, context);
567
+ contents = (0, smithy_client_1._json)(data);
578
568
  const response = {
579
569
  $metadata: deserializeMetadata(output),
580
570
  ...contents,
581
571
  };
582
- return Promise.resolve(response);
572
+ return response;
583
573
  };
584
574
  exports.de_TagResourceCommand = de_TagResourceCommand;
585
575
  const de_TagResourceCommandError = async (output, context) => {
@@ -606,10 +596,9 @@ const de_TagResourceCommandError = async (output, context) => {
606
596
  throw await de_ValidationExceptionRes(parsedOutput, context);
607
597
  default:
608
598
  const parsedBody = parsedOutput.body;
609
- (0, smithy_client_1.throwDefaultError)({
599
+ return throwDefaultError({
610
600
  output,
611
601
  parsedBody,
612
- exceptionCtor: KeyspacesServiceException_1.KeyspacesServiceException,
613
602
  errorCode,
614
603
  });
615
604
  }
@@ -620,12 +609,12 @@ const de_UntagResourceCommand = async (output, context) => {
620
609
  }
621
610
  const data = await parseBody(output.body, context);
622
611
  let contents = {};
623
- contents = de_UntagResourceResponse(data, context);
612
+ contents = (0, smithy_client_1._json)(data);
624
613
  const response = {
625
614
  $metadata: deserializeMetadata(output),
626
615
  ...contents,
627
616
  };
628
- return Promise.resolve(response);
617
+ return response;
629
618
  };
630
619
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
631
620
  const de_UntagResourceCommandError = async (output, context) => {
@@ -655,10 +644,9 @@ const de_UntagResourceCommandError = async (output, context) => {
655
644
  throw await de_ValidationExceptionRes(parsedOutput, context);
656
645
  default:
657
646
  const parsedBody = parsedOutput.body;
658
- (0, smithy_client_1.throwDefaultError)({
647
+ return throwDefaultError({
659
648
  output,
660
649
  parsedBody,
661
- exceptionCtor: KeyspacesServiceException_1.KeyspacesServiceException,
662
650
  errorCode,
663
651
  });
664
652
  }
@@ -669,12 +657,12 @@ const de_UpdateTableCommand = async (output, context) => {
669
657
  }
670
658
  const data = await parseBody(output.body, context);
671
659
  let contents = {};
672
- contents = de_UpdateTableResponse(data, context);
660
+ contents = (0, smithy_client_1._json)(data);
673
661
  const response = {
674
662
  $metadata: deserializeMetadata(output),
675
663
  ...contents,
676
664
  };
677
- return Promise.resolve(response);
665
+ return response;
678
666
  };
679
667
  exports.de_UpdateTableCommand = de_UpdateTableCommand;
680
668
  const de_UpdateTableCommandError = async (output, context) => {
@@ -704,17 +692,16 @@ const de_UpdateTableCommandError = async (output, context) => {
704
692
  throw await de_ValidationExceptionRes(parsedOutput, context);
705
693
  default:
706
694
  const parsedBody = parsedOutput.body;
707
- (0, smithy_client_1.throwDefaultError)({
695
+ return throwDefaultError({
708
696
  output,
709
697
  parsedBody,
710
- exceptionCtor: KeyspacesServiceException_1.KeyspacesServiceException,
711
698
  errorCode,
712
699
  });
713
700
  }
714
701
  };
715
702
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
716
703
  const body = parsedOutput.body;
717
- const deserialized = de_AccessDeniedException(body, context);
704
+ const deserialized = (0, smithy_client_1._json)(body);
718
705
  const exception = new models_0_1.AccessDeniedException({
719
706
  $metadata: deserializeMetadata(parsedOutput),
720
707
  ...deserialized,
@@ -723,7 +710,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
723
710
  };
724
711
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
725
712
  const body = parsedOutput.body;
726
- const deserialized = de_ConflictException(body, context);
713
+ const deserialized = (0, smithy_client_1._json)(body);
727
714
  const exception = new models_0_1.ConflictException({
728
715
  $metadata: deserializeMetadata(parsedOutput),
729
716
  ...deserialized,
@@ -732,7 +719,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
732
719
  };
733
720
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
734
721
  const body = parsedOutput.body;
735
- const deserialized = de_InternalServerException(body, context);
722
+ const deserialized = (0, smithy_client_1._json)(body);
736
723
  const exception = new models_0_1.InternalServerException({
737
724
  $metadata: deserializeMetadata(parsedOutput),
738
725
  ...deserialized,
@@ -741,7 +728,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
741
728
  };
742
729
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
743
730
  const body = parsedOutput.body;
744
- const deserialized = de_ResourceNotFoundException(body, context);
731
+ const deserialized = (0, smithy_client_1._json)(body);
745
732
  const exception = new models_0_1.ResourceNotFoundException({
746
733
  $metadata: deserializeMetadata(parsedOutput),
747
734
  ...deserialized,
@@ -750,7 +737,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
750
737
  };
751
738
  const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
752
739
  const body = parsedOutput.body;
753
- const deserialized = de_ServiceQuotaExceededException(body, context);
740
+ const deserialized = (0, smithy_client_1._json)(body);
754
741
  const exception = new models_0_1.ServiceQuotaExceededException({
755
742
  $metadata: deserializeMetadata(parsedOutput),
756
743
  ...deserialized,
@@ -759,516 +746,56 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
759
746
  };
760
747
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
761
748
  const body = parsedOutput.body;
762
- const deserialized = de_ValidationException(body, context);
749
+ const deserialized = (0, smithy_client_1._json)(body);
763
750
  const exception = new models_0_1.ValidationException({
764
751
  $metadata: deserializeMetadata(parsedOutput),
765
752
  ...deserialized,
766
753
  });
767
754
  return (0, smithy_client_1.decorateServiceException)(exception, body);
768
755
  };
769
- const se_CapacitySpecification = (input, context) => {
770
- return {
771
- ...(input.readCapacityUnits != null && { readCapacityUnits: input.readCapacityUnits }),
772
- ...(input.throughputMode != null && { throughputMode: input.throughputMode }),
773
- ...(input.writeCapacityUnits != null && { writeCapacityUnits: input.writeCapacityUnits }),
774
- };
775
- };
776
- const se_ClientSideTimestamps = (input, context) => {
777
- return {
778
- ...(input.status != null && { status: input.status }),
779
- };
780
- };
781
- const se_ClusteringKey = (input, context) => {
782
- return {
783
- ...(input.name != null && { name: input.name }),
784
- ...(input.orderBy != null && { orderBy: input.orderBy }),
785
- };
786
- };
787
- const se_ClusteringKeyList = (input, context) => {
788
- return input
789
- .filter((e) => e != null)
790
- .map((entry) => {
791
- return se_ClusteringKey(entry, context);
792
- });
793
- };
794
- const se_ColumnDefinition = (input, context) => {
795
- return {
796
- ...(input.name != null && { name: input.name }),
797
- ...(input.type != null && { type: input.type }),
798
- };
799
- };
800
- const se_ColumnDefinitionList = (input, context) => {
801
- return input
802
- .filter((e) => e != null)
803
- .map((entry) => {
804
- return se_ColumnDefinition(entry, context);
805
- });
806
- };
807
- const se_Comment = (input, context) => {
808
- return {
809
- ...(input.message != null && { message: input.message }),
810
- };
811
- };
812
- const se_CreateKeyspaceRequest = (input, context) => {
813
- return {
814
- ...(input.keyspaceName != null && { keyspaceName: input.keyspaceName }),
815
- ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
816
- };
817
- };
818
- const se_CreateTableRequest = (input, context) => {
819
- return {
820
- ...(input.capacitySpecification != null && {
821
- capacitySpecification: se_CapacitySpecification(input.capacitySpecification, context),
822
- }),
823
- ...(input.clientSideTimestamps != null && {
824
- clientSideTimestamps: se_ClientSideTimestamps(input.clientSideTimestamps, context),
825
- }),
826
- ...(input.comment != null && { comment: se_Comment(input.comment, context) }),
827
- ...(input.defaultTimeToLive != null && { defaultTimeToLive: input.defaultTimeToLive }),
828
- ...(input.encryptionSpecification != null && {
829
- encryptionSpecification: se_EncryptionSpecification(input.encryptionSpecification, context),
830
- }),
831
- ...(input.keyspaceName != null && { keyspaceName: input.keyspaceName }),
832
- ...(input.pointInTimeRecovery != null && {
833
- pointInTimeRecovery: se_PointInTimeRecovery(input.pointInTimeRecovery, context),
834
- }),
835
- ...(input.schemaDefinition != null && { schemaDefinition: se_SchemaDefinition(input.schemaDefinition, context) }),
836
- ...(input.tableName != null && { tableName: input.tableName }),
837
- ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
838
- ...(input.ttl != null && { ttl: se_TimeToLive(input.ttl, context) }),
839
- };
840
- };
841
- const se_DeleteKeyspaceRequest = (input, context) => {
842
- return {
843
- ...(input.keyspaceName != null && { keyspaceName: input.keyspaceName }),
844
- };
845
- };
846
- const se_DeleteTableRequest = (input, context) => {
847
- return {
848
- ...(input.keyspaceName != null && { keyspaceName: input.keyspaceName }),
849
- ...(input.tableName != null && { tableName: input.tableName }),
850
- };
851
- };
852
- const se_EncryptionSpecification = (input, context) => {
853
- return {
854
- ...(input.kmsKeyIdentifier != null && { kmsKeyIdentifier: input.kmsKeyIdentifier }),
855
- ...(input.type != null && { type: input.type }),
856
- };
857
- };
858
- const se_GetKeyspaceRequest = (input, context) => {
859
- return {
860
- ...(input.keyspaceName != null && { keyspaceName: input.keyspaceName }),
861
- };
862
- };
863
- const se_GetTableRequest = (input, context) => {
864
- return {
865
- ...(input.keyspaceName != null && { keyspaceName: input.keyspaceName }),
866
- ...(input.tableName != null && { tableName: input.tableName }),
867
- };
868
- };
869
- const se_ListKeyspacesRequest = (input, context) => {
870
- return {
871
- ...(input.maxResults != null && { maxResults: input.maxResults }),
872
- ...(input.nextToken != null && { nextToken: input.nextToken }),
873
- };
874
- };
875
- const se_ListTablesRequest = (input, context) => {
876
- return {
877
- ...(input.keyspaceName != null && { keyspaceName: input.keyspaceName }),
878
- ...(input.maxResults != null && { maxResults: input.maxResults }),
879
- ...(input.nextToken != null && { nextToken: input.nextToken }),
880
- };
881
- };
882
- const se_ListTagsForResourceRequest = (input, context) => {
883
- return {
884
- ...(input.maxResults != null && { maxResults: input.maxResults }),
885
- ...(input.nextToken != null && { nextToken: input.nextToken }),
886
- ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
887
- };
888
- };
889
- const se_PartitionKey = (input, context) => {
890
- return {
891
- ...(input.name != null && { name: input.name }),
892
- };
893
- };
894
- const se_PartitionKeyList = (input, context) => {
895
- return input
896
- .filter((e) => e != null)
897
- .map((entry) => {
898
- return se_PartitionKey(entry, context);
899
- });
900
- };
901
- const se_PointInTimeRecovery = (input, context) => {
902
- return {
903
- ...(input.status != null && { status: input.status }),
904
- };
905
- };
906
756
  const se_RestoreTableRequest = (input, context) => {
907
- return {
908
- ...(input.capacitySpecificationOverride != null && {
909
- capacitySpecificationOverride: se_CapacitySpecification(input.capacitySpecificationOverride, context),
910
- }),
911
- ...(input.encryptionSpecificationOverride != null && {
912
- encryptionSpecificationOverride: se_EncryptionSpecification(input.encryptionSpecificationOverride, context),
913
- }),
914
- ...(input.pointInTimeRecoveryOverride != null && {
915
- pointInTimeRecoveryOverride: se_PointInTimeRecovery(input.pointInTimeRecoveryOverride, context),
916
- }),
917
- ...(input.restoreTimestamp != null && { restoreTimestamp: Math.round(input.restoreTimestamp.getTime() / 1000) }),
918
- ...(input.sourceKeyspaceName != null && { sourceKeyspaceName: input.sourceKeyspaceName }),
919
- ...(input.sourceTableName != null && { sourceTableName: input.sourceTableName }),
920
- ...(input.tagsOverride != null && { tagsOverride: se_TagList(input.tagsOverride, context) }),
921
- ...(input.targetKeyspaceName != null && { targetKeyspaceName: input.targetKeyspaceName }),
922
- ...(input.targetTableName != null && { targetTableName: input.targetTableName }),
923
- };
924
- };
925
- const se_SchemaDefinition = (input, context) => {
926
- return {
927
- ...(input.allColumns != null && { allColumns: se_ColumnDefinitionList(input.allColumns, context) }),
928
- ...(input.clusteringKeys != null && { clusteringKeys: se_ClusteringKeyList(input.clusteringKeys, context) }),
929
- ...(input.partitionKeys != null && { partitionKeys: se_PartitionKeyList(input.partitionKeys, context) }),
930
- ...(input.staticColumns != null && { staticColumns: se_StaticColumnList(input.staticColumns, context) }),
931
- };
932
- };
933
- const se_StaticColumn = (input, context) => {
934
- return {
935
- ...(input.name != null && { name: input.name }),
936
- };
937
- };
938
- const se_StaticColumnList = (input, context) => {
939
- return input
940
- .filter((e) => e != null)
941
- .map((entry) => {
942
- return se_StaticColumn(entry, context);
943
- });
944
- };
945
- const se_Tag = (input, context) => {
946
- return {
947
- ...(input.key != null && { key: input.key }),
948
- ...(input.value != null && { value: input.value }),
949
- };
950
- };
951
- const se_TagList = (input, context) => {
952
- return input
953
- .filter((e) => e != null)
954
- .map((entry) => {
955
- return se_Tag(entry, context);
757
+ return (0, smithy_client_1.take)(input, {
758
+ capacitySpecificationOverride: smithy_client_1._json,
759
+ encryptionSpecificationOverride: smithy_client_1._json,
760
+ pointInTimeRecoveryOverride: smithy_client_1._json,
761
+ restoreTimestamp: (_) => Math.round(_.getTime() / 1000),
762
+ sourceKeyspaceName: [],
763
+ sourceTableName: [],
764
+ tagsOverride: smithy_client_1._json,
765
+ targetKeyspaceName: [],
766
+ targetTableName: [],
956
767
  });
957
768
  };
958
- const se_TagResourceRequest = (input, context) => {
959
- return {
960
- ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
961
- ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
962
- };
963
- };
964
- const se_TimeToLive = (input, context) => {
965
- return {
966
- ...(input.status != null && { status: input.status }),
967
- };
968
- };
969
- const se_UntagResourceRequest = (input, context) => {
970
- return {
971
- ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
972
- ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
973
- };
974
- };
975
- const se_UpdateTableRequest = (input, context) => {
976
- return {
977
- ...(input.addColumns != null && { addColumns: se_ColumnDefinitionList(input.addColumns, context) }),
978
- ...(input.capacitySpecification != null && {
979
- capacitySpecification: se_CapacitySpecification(input.capacitySpecification, context),
980
- }),
981
- ...(input.clientSideTimestamps != null && {
982
- clientSideTimestamps: se_ClientSideTimestamps(input.clientSideTimestamps, context),
983
- }),
984
- ...(input.defaultTimeToLive != null && { defaultTimeToLive: input.defaultTimeToLive }),
985
- ...(input.encryptionSpecification != null && {
986
- encryptionSpecification: se_EncryptionSpecification(input.encryptionSpecification, context),
987
- }),
988
- ...(input.keyspaceName != null && { keyspaceName: input.keyspaceName }),
989
- ...(input.pointInTimeRecovery != null && {
990
- pointInTimeRecovery: se_PointInTimeRecovery(input.pointInTimeRecovery, context),
991
- }),
992
- ...(input.tableName != null && { tableName: input.tableName }),
993
- ...(input.ttl != null && { ttl: se_TimeToLive(input.ttl, context) }),
994
- };
995
- };
996
- const de_AccessDeniedException = (output, context) => {
997
- return {
998
- message: (0, smithy_client_1.expectString)(output.message),
999
- };
1000
- };
1001
769
  const de_CapacitySpecificationSummary = (output, context) => {
1002
- return {
1003
- lastUpdateToPayPerRequestTimestamp: output.lastUpdateToPayPerRequestTimestamp != null
1004
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateToPayPerRequestTimestamp)))
1005
- : undefined,
1006
- readCapacityUnits: (0, smithy_client_1.expectLong)(output.readCapacityUnits),
1007
- throughputMode: (0, smithy_client_1.expectString)(output.throughputMode),
1008
- writeCapacityUnits: (0, smithy_client_1.expectLong)(output.writeCapacityUnits),
1009
- };
1010
- };
1011
- const de_ClientSideTimestamps = (output, context) => {
1012
- return {
1013
- status: (0, smithy_client_1.expectString)(output.status),
1014
- };
1015
- };
1016
- const de_ClusteringKey = (output, context) => {
1017
- return {
1018
- name: (0, smithy_client_1.expectString)(output.name),
1019
- orderBy: (0, smithy_client_1.expectString)(output.orderBy),
1020
- };
1021
- };
1022
- const de_ClusteringKeyList = (output, context) => {
1023
- const retVal = (output || [])
1024
- .filter((e) => e != null)
1025
- .map((entry) => {
1026
- if (entry === null) {
1027
- return null;
1028
- }
1029
- return de_ClusteringKey(entry, context);
770
+ return (0, smithy_client_1.take)(output, {
771
+ lastUpdateToPayPerRequestTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
772
+ readCapacityUnits: smithy_client_1.expectLong,
773
+ throughputMode: smithy_client_1.expectString,
774
+ writeCapacityUnits: smithy_client_1.expectLong,
1030
775
  });
1031
- return retVal;
1032
- };
1033
- const de_ColumnDefinition = (output, context) => {
1034
- return {
1035
- name: (0, smithy_client_1.expectString)(output.name),
1036
- type: (0, smithy_client_1.expectString)(output.type),
1037
- };
1038
- };
1039
- const de_ColumnDefinitionList = (output, context) => {
1040
- const retVal = (output || [])
1041
- .filter((e) => e != null)
1042
- .map((entry) => {
1043
- if (entry === null) {
1044
- return null;
1045
- }
1046
- return de_ColumnDefinition(entry, context);
1047
- });
1048
- return retVal;
1049
- };
1050
- const de_Comment = (output, context) => {
1051
- return {
1052
- message: (0, smithy_client_1.expectString)(output.message),
1053
- };
1054
- };
1055
- const de_ConflictException = (output, context) => {
1056
- return {
1057
- message: (0, smithy_client_1.expectString)(output.message),
1058
- };
1059
- };
1060
- const de_CreateKeyspaceResponse = (output, context) => {
1061
- return {
1062
- resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
1063
- };
1064
- };
1065
- const de_CreateTableResponse = (output, context) => {
1066
- return {
1067
- resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
1068
- };
1069
- };
1070
- const de_DeleteKeyspaceResponse = (output, context) => {
1071
- return {};
1072
- };
1073
- const de_DeleteTableResponse = (output, context) => {
1074
- return {};
1075
- };
1076
- const de_EncryptionSpecification = (output, context) => {
1077
- return {
1078
- kmsKeyIdentifier: (0, smithy_client_1.expectString)(output.kmsKeyIdentifier),
1079
- type: (0, smithy_client_1.expectString)(output.type),
1080
- };
1081
- };
1082
- const de_GetKeyspaceResponse = (output, context) => {
1083
- return {
1084
- keyspaceName: (0, smithy_client_1.expectString)(output.keyspaceName),
1085
- resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
1086
- };
1087
776
  };
1088
777
  const de_GetTableResponse = (output, context) => {
1089
- return {
1090
- capacitySpecification: output.capacitySpecification != null
1091
- ? de_CapacitySpecificationSummary(output.capacitySpecification, context)
1092
- : undefined,
1093
- clientSideTimestamps: output.clientSideTimestamps != null ? de_ClientSideTimestamps(output.clientSideTimestamps, context) : undefined,
1094
- comment: output.comment != null ? de_Comment(output.comment, context) : undefined,
1095
- creationTimestamp: output.creationTimestamp != null
1096
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTimestamp)))
1097
- : undefined,
1098
- defaultTimeToLive: (0, smithy_client_1.expectInt32)(output.defaultTimeToLive),
1099
- encryptionSpecification: output.encryptionSpecification != null
1100
- ? de_EncryptionSpecification(output.encryptionSpecification, context)
1101
- : undefined,
1102
- keyspaceName: (0, smithy_client_1.expectString)(output.keyspaceName),
1103
- pointInTimeRecovery: output.pointInTimeRecovery != null
1104
- ? de_PointInTimeRecoverySummary(output.pointInTimeRecovery, context)
1105
- : undefined,
1106
- resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
1107
- schemaDefinition: output.schemaDefinition != null ? de_SchemaDefinition(output.schemaDefinition, context) : undefined,
1108
- status: (0, smithy_client_1.expectString)(output.status),
1109
- tableName: (0, smithy_client_1.expectString)(output.tableName),
1110
- ttl: output.ttl != null ? de_TimeToLive(output.ttl, context) : undefined,
1111
- };
1112
- };
1113
- const de_InternalServerException = (output, context) => {
1114
- return {
1115
- message: (0, smithy_client_1.expectString)(output.message),
1116
- };
1117
- };
1118
- const de_KeyspaceSummary = (output, context) => {
1119
- return {
1120
- keyspaceName: (0, smithy_client_1.expectString)(output.keyspaceName),
1121
- resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
1122
- };
1123
- };
1124
- const de_KeyspaceSummaryList = (output, context) => {
1125
- const retVal = (output || [])
1126
- .filter((e) => e != null)
1127
- .map((entry) => {
1128
- if (entry === null) {
1129
- return null;
1130
- }
1131
- return de_KeyspaceSummary(entry, context);
1132
- });
1133
- return retVal;
1134
- };
1135
- const de_ListKeyspacesResponse = (output, context) => {
1136
- return {
1137
- keyspaces: output.keyspaces != null ? de_KeyspaceSummaryList(output.keyspaces, context) : undefined,
1138
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
1139
- };
1140
- };
1141
- const de_ListTablesResponse = (output, context) => {
1142
- return {
1143
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
1144
- tables: output.tables != null ? de_TableSummaryList(output.tables, context) : undefined,
1145
- };
1146
- };
1147
- const de_ListTagsForResourceResponse = (output, context) => {
1148
- return {
1149
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
1150
- tags: output.tags != null ? de_TagList(output.tags, context) : undefined,
1151
- };
1152
- };
1153
- const de_PartitionKey = (output, context) => {
1154
- return {
1155
- name: (0, smithy_client_1.expectString)(output.name),
1156
- };
1157
- };
1158
- const de_PartitionKeyList = (output, context) => {
1159
- const retVal = (output || [])
1160
- .filter((e) => e != null)
1161
- .map((entry) => {
1162
- if (entry === null) {
1163
- return null;
1164
- }
1165
- return de_PartitionKey(entry, context);
778
+ return (0, smithy_client_1.take)(output, {
779
+ capacitySpecification: (_) => de_CapacitySpecificationSummary(_, context),
780
+ clientSideTimestamps: smithy_client_1._json,
781
+ comment: smithy_client_1._json,
782
+ creationTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
783
+ defaultTimeToLive: smithy_client_1.expectInt32,
784
+ encryptionSpecification: smithy_client_1._json,
785
+ keyspaceName: smithy_client_1.expectString,
786
+ pointInTimeRecovery: (_) => de_PointInTimeRecoverySummary(_, context),
787
+ resourceArn: smithy_client_1.expectString,
788
+ schemaDefinition: smithy_client_1._json,
789
+ status: smithy_client_1.expectString,
790
+ tableName: smithy_client_1.expectString,
791
+ ttl: smithy_client_1._json,
1166
792
  });
1167
- return retVal;
1168
793
  };
1169
794
  const de_PointInTimeRecoverySummary = (output, context) => {
1170
- return {
1171
- earliestRestorableTimestamp: output.earliestRestorableTimestamp != null
1172
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.earliestRestorableTimestamp)))
1173
- : undefined,
1174
- status: (0, smithy_client_1.expectString)(output.status),
1175
- };
1176
- };
1177
- const de_ResourceNotFoundException = (output, context) => {
1178
- return {
1179
- message: (0, smithy_client_1.expectString)(output.message),
1180
- resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
1181
- };
1182
- };
1183
- const de_RestoreTableResponse = (output, context) => {
1184
- return {
1185
- restoredTableARN: (0, smithy_client_1.expectString)(output.restoredTableARN),
1186
- };
1187
- };
1188
- const de_SchemaDefinition = (output, context) => {
1189
- return {
1190
- allColumns: output.allColumns != null ? de_ColumnDefinitionList(output.allColumns, context) : undefined,
1191
- clusteringKeys: output.clusteringKeys != null ? de_ClusteringKeyList(output.clusteringKeys, context) : undefined,
1192
- partitionKeys: output.partitionKeys != null ? de_PartitionKeyList(output.partitionKeys, context) : undefined,
1193
- staticColumns: output.staticColumns != null ? de_StaticColumnList(output.staticColumns, context) : undefined,
1194
- };
1195
- };
1196
- const de_ServiceQuotaExceededException = (output, context) => {
1197
- return {
1198
- message: (0, smithy_client_1.expectString)(output.message),
1199
- };
1200
- };
1201
- const de_StaticColumn = (output, context) => {
1202
- return {
1203
- name: (0, smithy_client_1.expectString)(output.name),
1204
- };
1205
- };
1206
- const de_StaticColumnList = (output, context) => {
1207
- const retVal = (output || [])
1208
- .filter((e) => e != null)
1209
- .map((entry) => {
1210
- if (entry === null) {
1211
- return null;
1212
- }
1213
- return de_StaticColumn(entry, context);
1214
- });
1215
- return retVal;
1216
- };
1217
- const de_TableSummary = (output, context) => {
1218
- return {
1219
- keyspaceName: (0, smithy_client_1.expectString)(output.keyspaceName),
1220
- resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
1221
- tableName: (0, smithy_client_1.expectString)(output.tableName),
1222
- };
1223
- };
1224
- const de_TableSummaryList = (output, context) => {
1225
- const retVal = (output || [])
1226
- .filter((e) => e != null)
1227
- .map((entry) => {
1228
- if (entry === null) {
1229
- return null;
1230
- }
1231
- return de_TableSummary(entry, context);
1232
- });
1233
- return retVal;
1234
- };
1235
- const de_Tag = (output, context) => {
1236
- return {
1237
- key: (0, smithy_client_1.expectString)(output.key),
1238
- value: (0, smithy_client_1.expectString)(output.value),
1239
- };
1240
- };
1241
- const de_TagList = (output, context) => {
1242
- const retVal = (output || [])
1243
- .filter((e) => e != null)
1244
- .map((entry) => {
1245
- if (entry === null) {
1246
- return null;
1247
- }
1248
- return de_Tag(entry, context);
795
+ return (0, smithy_client_1.take)(output, {
796
+ earliestRestorableTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
797
+ status: smithy_client_1.expectString,
1249
798
  });
1250
- return retVal;
1251
- };
1252
- const de_TagResourceResponse = (output, context) => {
1253
- return {};
1254
- };
1255
- const de_TimeToLive = (output, context) => {
1256
- return {
1257
- status: (0, smithy_client_1.expectString)(output.status),
1258
- };
1259
- };
1260
- const de_UntagResourceResponse = (output, context) => {
1261
- return {};
1262
- };
1263
- const de_UpdateTableResponse = (output, context) => {
1264
- return {
1265
- resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
1266
- };
1267
- };
1268
- const de_ValidationException = (output, context) => {
1269
- return {
1270
- message: (0, smithy_client_1.expectString)(output.message),
1271
- };
1272
799
  };
1273
800
  const deserializeMetadata = (output) => ({
1274
801
  httpStatusCode: output.statusCode,
@@ -1283,6 +810,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
1283
810
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
1284
811
  };
1285
812
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
813
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(KeyspacesServiceException_1.KeyspacesServiceException);
1286
814
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1287
815
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1288
816
  const contents = {