@aws-sdk/client-codeguru-reviewer 3.928.0 → 3.930.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist-cjs/index.js +826 -733
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/CodeGuruReviewerClient.js +2 -0
  4. package/dist-es/commands/AssociateRepositoryCommand.js +3 -9
  5. package/dist-es/commands/CreateCodeReviewCommand.js +3 -9
  6. package/dist-es/commands/DescribeCodeReviewCommand.js +3 -9
  7. package/dist-es/commands/DescribeRecommendationFeedbackCommand.js +3 -9
  8. package/dist-es/commands/DescribeRepositoryAssociationCommand.js +3 -9
  9. package/dist-es/commands/DisassociateRepositoryCommand.js +3 -9
  10. package/dist-es/commands/ListCodeReviewsCommand.js +3 -9
  11. package/dist-es/commands/ListRecommendationFeedbackCommand.js +3 -9
  12. package/dist-es/commands/ListRecommendationsCommand.js +3 -9
  13. package/dist-es/commands/ListRepositoryAssociationsCommand.js +3 -9
  14. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  15. package/dist-es/commands/PutRecommendationFeedbackCommand.js +3 -9
  16. package/dist-es/commands/TagResourceCommand.js +3 -9
  17. package/dist-es/commands/UntagResourceCommand.js +3 -9
  18. package/dist-es/runtimeConfig.shared.js +2 -0
  19. package/dist-es/schemas/schemas_0.js +797 -0
  20. package/dist-types/CodeGuruReviewerClient.d.ts +10 -1
  21. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  22. package/dist-types/runtimeConfig.d.ts +1 -0
  23. package/dist-types/runtimeConfig.native.d.ts +1 -0
  24. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  25. package/dist-types/schemas/schemas_0.d.ts +95 -0
  26. package/dist-types/ts3.4/CodeGuruReviewerClient.d.ts +4 -0
  27. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  28. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  29. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  30. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  31. package/dist-types/ts3.4/schemas/schemas_0.d.ts +100 -0
  32. package/package.json +34 -35
  33. package/dist-es/protocols/Aws_restJson1.js +0 -623
  34. package/dist-types/protocols/Aws_restJson1.d.ts +0 -128
  35. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -173
package/dist-cjs/index.js CHANGED
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,9 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
- var uuid = require('@smithy/uuid');
20
18
  var utilWaiter = require('@smithy/util-waiter');
21
19
 
22
20
  const resolveClientEndpointParameters = (options) => {
@@ -93,6 +91,7 @@ class CodeGuruReviewerClient extends smithyClient.Client {
93
91
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
94
92
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
95
93
  this.config = _config_8;
94
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
96
95
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
97
96
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
98
97
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -112,14 +111,14 @@ class CodeGuruReviewerClient extends smithyClient.Client {
112
111
  }
113
112
  }
114
113
 
115
- class CodeGuruReviewerServiceException extends smithyClient.ServiceException {
114
+ let CodeGuruReviewerServiceException$1 = class CodeGuruReviewerServiceException extends smithyClient.ServiceException {
116
115
  constructor(options) {
117
116
  super(options);
118
117
  Object.setPrototypeOf(this, CodeGuruReviewerServiceException.prototype);
119
118
  }
120
- }
119
+ };
121
120
 
122
- class AccessDeniedException extends CodeGuruReviewerServiceException {
121
+ let AccessDeniedException$1 = class AccessDeniedException extends CodeGuruReviewerServiceException$1 {
123
122
  name = "AccessDeniedException";
124
123
  $fault = "client";
125
124
  Message;
@@ -132,7 +131,7 @@ class AccessDeniedException extends CodeGuruReviewerServiceException {
132
131
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
133
132
  this.Message = opts.Message;
134
133
  }
135
- }
134
+ };
136
135
  const AnalysisType = {
137
136
  CODE_QUALITY: "CodeQuality",
138
137
  SECURITY: "Security",
@@ -155,7 +154,7 @@ const RepositoryAssociationState = {
155
154
  DISASSOCIATING: "Disassociating",
156
155
  FAILED: "Failed",
157
156
  };
158
- class ConflictException extends CodeGuruReviewerServiceException {
157
+ let ConflictException$1 = class ConflictException extends CodeGuruReviewerServiceException$1 {
159
158
  name = "ConflictException";
160
159
  $fault = "client";
161
160
  Message;
@@ -168,8 +167,8 @@ class ConflictException extends CodeGuruReviewerServiceException {
168
167
  Object.setPrototypeOf(this, ConflictException.prototype);
169
168
  this.Message = opts.Message;
170
169
  }
171
- }
172
- class InternalServerException extends CodeGuruReviewerServiceException {
170
+ };
171
+ let InternalServerException$1 = class InternalServerException extends CodeGuruReviewerServiceException$1 {
173
172
  name = "InternalServerException";
174
173
  $fault = "server";
175
174
  Message;
@@ -182,8 +181,8 @@ class InternalServerException extends CodeGuruReviewerServiceException {
182
181
  Object.setPrototypeOf(this, InternalServerException.prototype);
183
182
  this.Message = opts.Message;
184
183
  }
185
- }
186
- class ThrottlingException extends CodeGuruReviewerServiceException {
184
+ };
185
+ let ThrottlingException$1 = class ThrottlingException extends CodeGuruReviewerServiceException$1 {
187
186
  name = "ThrottlingException";
188
187
  $fault = "client";
189
188
  Message;
@@ -196,8 +195,8 @@ class ThrottlingException extends CodeGuruReviewerServiceException {
196
195
  Object.setPrototypeOf(this, ThrottlingException.prototype);
197
196
  this.Message = opts.Message;
198
197
  }
199
- }
200
- class ValidationException extends CodeGuruReviewerServiceException {
198
+ };
199
+ let ValidationException$1 = class ValidationException extends CodeGuruReviewerServiceException$1 {
201
200
  name = "ValidationException";
202
201
  $fault = "client";
203
202
  Message;
@@ -210,7 +209,7 @@ class ValidationException extends CodeGuruReviewerServiceException {
210
209
  Object.setPrototypeOf(this, ValidationException.prototype);
211
210
  this.Message = opts.Message;
212
211
  }
213
- }
212
+ };
214
213
  const VendorName = {
215
214
  GITHUB: "GitHub",
216
215
  GITLAB: "GitLab",
@@ -231,7 +230,7 @@ const Type = {
231
230
  PULL_REQUEST: "PullRequest",
232
231
  REPOSITORY_ANALYSIS: "RepositoryAnalysis",
233
232
  };
234
- class ResourceNotFoundException extends CodeGuruReviewerServiceException {
233
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends CodeGuruReviewerServiceException$1 {
235
234
  name = "ResourceNotFoundException";
236
235
  $fault = "client";
237
236
  Message;
@@ -244,12 +243,12 @@ class ResourceNotFoundException extends CodeGuruReviewerServiceException {
244
243
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
245
244
  this.Message = opts.Message;
246
245
  }
247
- }
246
+ };
248
247
  const Reaction = {
249
248
  THUMBS_DOWN: "ThumbsDown",
250
249
  THUMBS_UP: "ThumbsUp",
251
250
  };
252
- class NotFoundException extends CodeGuruReviewerServiceException {
251
+ let NotFoundException$1 = class NotFoundException extends CodeGuruReviewerServiceException$1 {
253
252
  name = "NotFoundException";
254
253
  $fault = "client";
255
254
  Message;
@@ -262,7 +261,7 @@ class NotFoundException extends CodeGuruReviewerServiceException {
262
261
  Object.setPrototypeOf(this, NotFoundException.prototype);
263
262
  this.Message = opts.Message;
264
263
  }
265
- }
264
+ };
266
265
  const RecommendationCategory = {
267
266
  AWS_BEST_PRACTICES: "AWSBestPractices",
268
267
  AWS_CLOUDFORMATION_ISSUES: "AWSCloudFormationIssues",
@@ -284,637 +283,796 @@ const Severity = {
284
283
  MEDIUM: "Medium",
285
284
  };
286
285
 
287
- const se_AssociateRepositoryCommand = async (input, context) => {
288
- const b = core.requestBuilder(input, context);
289
- const headers = {
290
- "content-type": "application/json",
291
- };
292
- b.bp("/associations");
293
- let body;
294
- body = JSON.stringify(smithyClient.take(input, {
295
- ClientRequestToken: [true, (_) => _ ?? uuid.v4()],
296
- KMSKeyDetails: (_) => smithyClient._json(_),
297
- Repository: (_) => smithyClient._json(_),
298
- Tags: (_) => smithyClient._json(_),
299
- }));
300
- b.m("POST").h(headers).b(body);
301
- return b.build();
302
- };
303
- const se_CreateCodeReviewCommand = async (input, context) => {
304
- const b = core.requestBuilder(input, context);
305
- const headers = {
306
- "content-type": "application/json",
307
- };
308
- b.bp("/codereviews");
309
- let body;
310
- body = JSON.stringify(smithyClient.take(input, {
311
- ClientRequestToken: [true, (_) => _ ?? uuid.v4()],
312
- Name: [],
313
- RepositoryAssociationArn: [],
314
- Type: (_) => smithyClient._json(_),
315
- }));
316
- b.m("POST").h(headers).b(body);
317
- return b.build();
318
- };
319
- const se_DescribeCodeReviewCommand = async (input, context) => {
320
- const b = core.requestBuilder(input, context);
321
- const headers = {};
322
- b.bp("/codereviews/{CodeReviewArn}");
323
- b.p("CodeReviewArn", () => input.CodeReviewArn, "{CodeReviewArn}", false);
324
- let body;
325
- b.m("GET").h(headers).b(body);
326
- return b.build();
327
- };
328
- const se_DescribeRecommendationFeedbackCommand = async (input, context) => {
329
- const b = core.requestBuilder(input, context);
330
- const headers = {};
331
- b.bp("/feedback/{CodeReviewArn}");
332
- b.p("CodeReviewArn", () => input.CodeReviewArn, "{CodeReviewArn}", false);
333
- const query = smithyClient.map({
334
- [_RI]: [, smithyClient.expectNonNull(input[_RI], `RecommendationId`)],
335
- [_UI]: [, input[_UI]],
336
- });
337
- let body;
338
- b.m("GET").h(headers).q(query).b(body);
339
- return b.build();
340
- };
341
- const se_DescribeRepositoryAssociationCommand = async (input, context) => {
342
- const b = core.requestBuilder(input, context);
343
- const headers = {};
344
- b.bp("/associations/{AssociationArn}");
345
- b.p("AssociationArn", () => input.AssociationArn, "{AssociationArn}", false);
346
- let body;
347
- b.m("GET").h(headers).b(body);
348
- return b.build();
349
- };
350
- const se_DisassociateRepositoryCommand = async (input, context) => {
351
- const b = core.requestBuilder(input, context);
352
- const headers = {};
353
- b.bp("/associations/{AssociationArn}");
354
- b.p("AssociationArn", () => input.AssociationArn, "{AssociationArn}", false);
355
- let body;
356
- b.m("DELETE").h(headers).b(body);
357
- return b.build();
358
- };
359
- const se_ListCodeReviewsCommand = async (input, context) => {
360
- const b = core.requestBuilder(input, context);
361
- const headers = {};
362
- b.bp("/codereviews");
363
- const query = smithyClient.map({
364
- [_PT]: [() => input.ProviderTypes !== void 0, () => input[_PT] || []],
365
- [_S]: [() => input.States !== void 0, () => input[_S] || []],
366
- [_RN]: [() => input.RepositoryNames !== void 0, () => input[_RN] || []],
367
- [_T]: [, smithyClient.expectNonNull(input[_T], `Type`)],
368
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
369
- [_NT]: [, input[_NT]],
370
- });
371
- let body;
372
- b.m("GET").h(headers).q(query).b(body);
373
- return b.build();
374
- };
375
- const se_ListRecommendationFeedbackCommand = async (input, context) => {
376
- const b = core.requestBuilder(input, context);
377
- const headers = {};
378
- b.bp("/feedback/{CodeReviewArn}/RecommendationFeedback");
379
- b.p("CodeReviewArn", () => input.CodeReviewArn, "{CodeReviewArn}", false);
380
- const query = smithyClient.map({
381
- [_NT]: [, input[_NT]],
382
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
383
- [_UIs]: [() => input.UserIds !== void 0, () => input[_UIs] || []],
384
- [_RIe]: [() => input.RecommendationIds !== void 0, () => input[_RIe] || []],
385
- });
386
- let body;
387
- b.m("GET").h(headers).q(query).b(body);
388
- return b.build();
389
- };
390
- const se_ListRecommendationsCommand = async (input, context) => {
391
- const b = core.requestBuilder(input, context);
392
- const headers = {};
393
- b.bp("/codereviews/{CodeReviewArn}/Recommendations");
394
- b.p("CodeReviewArn", () => input.CodeReviewArn, "{CodeReviewArn}", false);
395
- const query = smithyClient.map({
396
- [_NT]: [, input[_NT]],
397
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
398
- });
399
- let body;
400
- b.m("GET").h(headers).q(query).b(body);
401
- return b.build();
402
- };
403
- const se_ListRepositoryAssociationsCommand = async (input, context) => {
404
- const b = core.requestBuilder(input, context);
405
- const headers = {};
406
- b.bp("/associations");
407
- const query = smithyClient.map({
408
- [_PTr]: [() => input.ProviderTypes !== void 0, () => input[_PT] || []],
409
- [_St]: [() => input.States !== void 0, () => input[_S] || []],
410
- [_Na]: [() => input.Names !== void 0, () => input[_N] || []],
411
- [_Ow]: [() => input.Owners !== void 0, () => input[_O] || []],
412
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
413
- [_NT]: [, input[_NT]],
414
- });
415
- let body;
416
- b.m("GET").h(headers).q(query).b(body);
417
- return b.build();
418
- };
419
- const se_ListTagsForResourceCommand = async (input, context) => {
420
- const b = core.requestBuilder(input, context);
421
- const headers = {};
422
- b.bp("/tags/{resourceArn}");
423
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
424
- let body;
425
- b.m("GET").h(headers).b(body);
426
- return b.build();
427
- };
428
- const se_PutRecommendationFeedbackCommand = async (input, context) => {
429
- const b = core.requestBuilder(input, context);
430
- const headers = {
431
- "content-type": "application/json",
432
- };
433
- b.bp("/feedback");
434
- let body;
435
- body = JSON.stringify(smithyClient.take(input, {
436
- CodeReviewArn: [],
437
- Reactions: (_) => smithyClient._json(_),
438
- RecommendationId: [],
439
- }));
440
- b.m("PUT").h(headers).b(body);
441
- return b.build();
442
- };
443
- const se_TagResourceCommand = async (input, context) => {
444
- const b = core.requestBuilder(input, context);
445
- const headers = {
446
- "content-type": "application/json",
447
- };
448
- b.bp("/tags/{resourceArn}");
449
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
450
- let body;
451
- body = JSON.stringify(smithyClient.take(input, {
452
- Tags: (_) => smithyClient._json(_),
453
- }));
454
- b.m("POST").h(headers).b(body);
455
- return b.build();
456
- };
457
- const se_UntagResourceCommand = async (input, context) => {
458
- const b = core.requestBuilder(input, context);
459
- const headers = {};
460
- b.bp("/tags/{resourceArn}");
461
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
462
- const query = smithyClient.map({
463
- [_tK]: [smithyClient.expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
464
- });
465
- let body;
466
- b.m("DELETE").h(headers).q(query).b(body);
467
- return b.build();
468
- };
469
- const de_AssociateRepositoryCommand = async (output, context) => {
470
- if (output.statusCode !== 200 && output.statusCode >= 300) {
471
- return de_CommandError(output, context);
472
- }
473
- const contents = smithyClient.map({
474
- $metadata: deserializeMetadata(output),
475
- });
476
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
477
- const doc = smithyClient.take(data, {
478
- RepositoryAssociation: (_) => de_RepositoryAssociation(_),
479
- Tags: smithyClient._json,
480
- });
481
- Object.assign(contents, doc);
482
- return contents;
483
- };
484
- const de_CreateCodeReviewCommand = async (output, context) => {
485
- if (output.statusCode !== 200 && output.statusCode >= 300) {
486
- return de_CommandError(output, context);
487
- }
488
- const contents = smithyClient.map({
489
- $metadata: deserializeMetadata(output),
490
- });
491
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
492
- const doc = smithyClient.take(data, {
493
- CodeReview: (_) => de_CodeReview(_),
494
- });
495
- Object.assign(contents, doc);
496
- return contents;
497
- };
498
- const de_DescribeCodeReviewCommand = async (output, context) => {
499
- if (output.statusCode !== 200 && output.statusCode >= 300) {
500
- return de_CommandError(output, context);
501
- }
502
- const contents = smithyClient.map({
503
- $metadata: deserializeMetadata(output),
504
- });
505
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
506
- const doc = smithyClient.take(data, {
507
- CodeReview: (_) => de_CodeReview(_),
508
- });
509
- Object.assign(contents, doc);
510
- return contents;
511
- };
512
- const de_DescribeRecommendationFeedbackCommand = async (output, context) => {
513
- if (output.statusCode !== 200 && output.statusCode >= 300) {
514
- return de_CommandError(output, context);
515
- }
516
- const contents = smithyClient.map({
517
- $metadata: deserializeMetadata(output),
518
- });
519
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
520
- const doc = smithyClient.take(data, {
521
- RecommendationFeedback: (_) => de_RecommendationFeedback(_),
522
- });
523
- Object.assign(contents, doc);
524
- return contents;
525
- };
526
- const de_DescribeRepositoryAssociationCommand = async (output, context) => {
527
- if (output.statusCode !== 200 && output.statusCode >= 300) {
528
- return de_CommandError(output, context);
529
- }
530
- const contents = smithyClient.map({
531
- $metadata: deserializeMetadata(output),
532
- });
533
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
534
- const doc = smithyClient.take(data, {
535
- RepositoryAssociation: (_) => de_RepositoryAssociation(_),
536
- Tags: smithyClient._json,
537
- });
538
- Object.assign(contents, doc);
539
- return contents;
540
- };
541
- const de_DisassociateRepositoryCommand = async (output, context) => {
542
- if (output.statusCode !== 200 && output.statusCode >= 300) {
543
- return de_CommandError(output, context);
544
- }
545
- const contents = smithyClient.map({
546
- $metadata: deserializeMetadata(output),
547
- });
548
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
549
- const doc = smithyClient.take(data, {
550
- RepositoryAssociation: (_) => de_RepositoryAssociation(_),
551
- Tags: smithyClient._json,
552
- });
553
- Object.assign(contents, doc);
554
- return contents;
555
- };
556
- const de_ListCodeReviewsCommand = async (output, context) => {
557
- if (output.statusCode !== 200 && output.statusCode >= 300) {
558
- return de_CommandError(output, context);
559
- }
560
- const contents = smithyClient.map({
561
- $metadata: deserializeMetadata(output),
562
- });
563
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
564
- const doc = smithyClient.take(data, {
565
- CodeReviewSummaries: (_) => de_CodeReviewSummaries(_),
566
- NextToken: smithyClient.expectString,
567
- });
568
- Object.assign(contents, doc);
569
- return contents;
570
- };
571
- const de_ListRecommendationFeedbackCommand = async (output, context) => {
572
- if (output.statusCode !== 200 && output.statusCode >= 300) {
573
- return de_CommandError(output, context);
574
- }
575
- const contents = smithyClient.map({
576
- $metadata: deserializeMetadata(output),
577
- });
578
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
579
- const doc = smithyClient.take(data, {
580
- NextToken: smithyClient.expectString,
581
- RecommendationFeedbackSummaries: smithyClient._json,
582
- });
583
- Object.assign(contents, doc);
584
- return contents;
585
- };
586
- const de_ListRecommendationsCommand = async (output, context) => {
587
- if (output.statusCode !== 200 && output.statusCode >= 300) {
588
- return de_CommandError(output, context);
589
- }
590
- const contents = smithyClient.map({
591
- $metadata: deserializeMetadata(output),
592
- });
593
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
594
- const doc = smithyClient.take(data, {
595
- NextToken: smithyClient.expectString,
596
- RecommendationSummaries: smithyClient._json,
597
- });
598
- Object.assign(contents, doc);
599
- return contents;
600
- };
601
- const de_ListRepositoryAssociationsCommand = async (output, context) => {
602
- if (output.statusCode !== 200 && output.statusCode >= 300) {
603
- return de_CommandError(output, context);
604
- }
605
- const contents = smithyClient.map({
606
- $metadata: deserializeMetadata(output),
607
- });
608
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
609
- const doc = smithyClient.take(data, {
610
- NextToken: smithyClient.expectString,
611
- RepositoryAssociationSummaries: (_) => de_RepositoryAssociationSummaries(_),
612
- });
613
- Object.assign(contents, doc);
614
- return contents;
615
- };
616
- const de_ListTagsForResourceCommand = async (output, context) => {
617
- if (output.statusCode !== 200 && output.statusCode >= 300) {
618
- return de_CommandError(output, context);
619
- }
620
- const contents = smithyClient.map({
621
- $metadata: deserializeMetadata(output),
622
- });
623
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
624
- const doc = smithyClient.take(data, {
625
- Tags: smithyClient._json,
626
- });
627
- Object.assign(contents, doc);
628
- return contents;
629
- };
630
- const de_PutRecommendationFeedbackCommand = async (output, context) => {
631
- if (output.statusCode !== 200 && output.statusCode >= 300) {
632
- return de_CommandError(output, context);
633
- }
634
- const contents = smithyClient.map({
635
- $metadata: deserializeMetadata(output),
636
- });
637
- await smithyClient.collectBody(output.body, context);
638
- return contents;
639
- };
640
- const de_TagResourceCommand = async (output, context) => {
641
- if (output.statusCode !== 200 && output.statusCode >= 300) {
642
- return de_CommandError(output, context);
643
- }
644
- const contents = smithyClient.map({
645
- $metadata: deserializeMetadata(output),
646
- });
647
- await smithyClient.collectBody(output.body, context);
648
- return contents;
649
- };
650
- const de_UntagResourceCommand = async (output, context) => {
651
- if (output.statusCode !== 200 && output.statusCode >= 300) {
652
- return de_CommandError(output, context);
653
- }
654
- const contents = smithyClient.map({
655
- $metadata: deserializeMetadata(output),
656
- });
657
- await smithyClient.collectBody(output.body, context);
658
- return contents;
659
- };
660
- const de_CommandError = async (output, context) => {
661
- const parsedOutput = {
662
- ...output,
663
- body: await core$1.parseJsonErrorBody(output.body, context),
664
- };
665
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
666
- switch (errorCode) {
667
- case "AccessDeniedException":
668
- case "com.amazonaws.codegurureviewer#AccessDeniedException":
669
- throw await de_AccessDeniedExceptionRes(parsedOutput);
670
- case "ConflictException":
671
- case "com.amazonaws.codegurureviewer#ConflictException":
672
- throw await de_ConflictExceptionRes(parsedOutput);
673
- case "InternalServerException":
674
- case "com.amazonaws.codegurureviewer#InternalServerException":
675
- throw await de_InternalServerExceptionRes(parsedOutput);
676
- case "ThrottlingException":
677
- case "com.amazonaws.codegurureviewer#ThrottlingException":
678
- throw await de_ThrottlingExceptionRes(parsedOutput);
679
- case "ValidationException":
680
- case "com.amazonaws.codegurureviewer#ValidationException":
681
- throw await de_ValidationExceptionRes(parsedOutput);
682
- case "ResourceNotFoundException":
683
- case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
684
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
685
- case "NotFoundException":
686
- case "com.amazonaws.codegurureviewer#NotFoundException":
687
- throw await de_NotFoundExceptionRes(parsedOutput);
688
- default:
689
- const parsedBody = parsedOutput.body;
690
- return throwDefaultError({
691
- output,
692
- parsedBody,
693
- errorCode,
694
- });
695
- }
696
- };
697
- const throwDefaultError = smithyClient.withBaseException(CodeGuruReviewerServiceException);
698
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
699
- const contents = smithyClient.map({});
700
- const data = parsedOutput.body;
701
- const doc = smithyClient.take(data, {
702
- Message: smithyClient.expectString,
703
- });
704
- Object.assign(contents, doc);
705
- const exception = new AccessDeniedException({
706
- $metadata: deserializeMetadata(parsedOutput),
707
- ...contents,
708
- });
709
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
710
- };
711
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
712
- const contents = smithyClient.map({});
713
- const data = parsedOutput.body;
714
- const doc = smithyClient.take(data, {
715
- Message: smithyClient.expectString,
716
- });
717
- Object.assign(contents, doc);
718
- const exception = new ConflictException({
719
- $metadata: deserializeMetadata(parsedOutput),
720
- ...contents,
721
- });
722
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
723
- };
724
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
725
- const contents = smithyClient.map({});
726
- const data = parsedOutput.body;
727
- const doc = smithyClient.take(data, {
728
- Message: smithyClient.expectString,
729
- });
730
- Object.assign(contents, doc);
731
- const exception = new InternalServerException({
732
- $metadata: deserializeMetadata(parsedOutput),
733
- ...contents,
734
- });
735
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
736
- };
737
- const de_NotFoundExceptionRes = async (parsedOutput, context) => {
738
- const contents = smithyClient.map({});
739
- const data = parsedOutput.body;
740
- const doc = smithyClient.take(data, {
741
- Message: smithyClient.expectString,
742
- });
743
- Object.assign(contents, doc);
744
- const exception = new NotFoundException({
745
- $metadata: deserializeMetadata(parsedOutput),
746
- ...contents,
747
- });
748
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
749
- };
750
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
751
- const contents = smithyClient.map({});
752
- const data = parsedOutput.body;
753
- const doc = smithyClient.take(data, {
754
- Message: smithyClient.expectString,
755
- });
756
- Object.assign(contents, doc);
757
- const exception = new ResourceNotFoundException({
758
- $metadata: deserializeMetadata(parsedOutput),
759
- ...contents,
760
- });
761
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
762
- };
763
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
764
- const contents = smithyClient.map({});
765
- const data = parsedOutput.body;
766
- const doc = smithyClient.take(data, {
767
- Message: smithyClient.expectString,
768
- });
769
- Object.assign(contents, doc);
770
- const exception = new ThrottlingException({
771
- $metadata: deserializeMetadata(parsedOutput),
772
- ...contents,
773
- });
774
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
775
- };
776
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
777
- const contents = smithyClient.map({});
778
- const data = parsedOutput.body;
779
- const doc = smithyClient.take(data, {
780
- Message: smithyClient.expectString,
781
- });
782
- Object.assign(contents, doc);
783
- const exception = new ValidationException({
784
- $metadata: deserializeMetadata(parsedOutput),
785
- ...contents,
786
- });
787
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
788
- };
789
- const de_CodeReview = (output, context) => {
790
- return smithyClient.take(output, {
791
- AnalysisTypes: smithyClient._json,
792
- AssociationArn: smithyClient.expectString,
793
- CodeReviewArn: smithyClient.expectString,
794
- ConfigFileState: smithyClient.expectString,
795
- CreatedTimeStamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
796
- LastUpdatedTimeStamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
797
- Metrics: smithyClient._json,
798
- Name: smithyClient.expectString,
799
- Owner: smithyClient.expectString,
800
- ProviderType: smithyClient.expectString,
801
- PullRequestId: smithyClient.expectString,
802
- RepositoryName: smithyClient.expectString,
803
- SourceCodeType: smithyClient._json,
804
- State: smithyClient.expectString,
805
- StateReason: smithyClient.expectString,
806
- Type: smithyClient.expectString,
807
- });
808
- };
809
- const de_CodeReviewSummaries = (output, context) => {
810
- const retVal = (output || [])
811
- .filter((e) => e != null)
812
- .map((entry) => {
813
- return de_CodeReviewSummary(entry);
814
- });
815
- return retVal;
816
- };
817
- const de_CodeReviewSummary = (output, context) => {
818
- return smithyClient.take(output, {
819
- CodeReviewArn: smithyClient.expectString,
820
- CreatedTimeStamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
821
- LastUpdatedTimeStamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
822
- MetricsSummary: smithyClient._json,
823
- Name: smithyClient.expectString,
824
- Owner: smithyClient.expectString,
825
- ProviderType: smithyClient.expectString,
826
- PullRequestId: smithyClient.expectString,
827
- RepositoryName: smithyClient.expectString,
828
- SourceCodeType: smithyClient._json,
829
- State: smithyClient.expectString,
830
- Type: smithyClient.expectString,
831
- });
832
- };
833
- const de_RecommendationFeedback = (output, context) => {
834
- return smithyClient.take(output, {
835
- CodeReviewArn: smithyClient.expectString,
836
- CreatedTimeStamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
837
- LastUpdatedTimeStamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
838
- Reactions: smithyClient._json,
839
- RecommendationId: smithyClient.expectString,
840
- UserId: smithyClient.expectString,
841
- });
842
- };
843
- const de_RepositoryAssociation = (output, context) => {
844
- return smithyClient.take(output, {
845
- AssociationArn: smithyClient.expectString,
846
- AssociationId: smithyClient.expectString,
847
- ConnectionArn: smithyClient.expectString,
848
- CreatedTimeStamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
849
- KMSKeyDetails: smithyClient._json,
850
- LastUpdatedTimeStamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
851
- Name: smithyClient.expectString,
852
- Owner: smithyClient.expectString,
853
- ProviderType: smithyClient.expectString,
854
- S3RepositoryDetails: smithyClient._json,
855
- State: smithyClient.expectString,
856
- StateReason: smithyClient.expectString,
857
- });
858
- };
859
- const de_RepositoryAssociationSummaries = (output, context) => {
860
- const retVal = (output || [])
861
- .filter((e) => e != null)
862
- .map((entry) => {
863
- return de_RepositoryAssociationSummary(entry);
864
- });
865
- return retVal;
866
- };
867
- const de_RepositoryAssociationSummary = (output, context) => {
868
- return smithyClient.take(output, {
869
- AssociationArn: smithyClient.expectString,
870
- AssociationId: smithyClient.expectString,
871
- ConnectionArn: smithyClient.expectString,
872
- LastUpdatedTimeStamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
873
- Name: smithyClient.expectString,
874
- Owner: smithyClient.expectString,
875
- ProviderType: smithyClient.expectString,
876
- State: smithyClient.expectString,
877
- });
878
- };
879
- const deserializeMetadata = (output) => ({
880
- httpStatusCode: output.statusCode,
881
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
882
- extendedRequestId: output.headers["x-amz-id-2"],
883
- cfId: output.headers["x-amz-cf-id"],
884
- });
286
+ const _AA = "AssociationArn";
287
+ const _ADE = "AccessDeniedException";
288
+ const _AI = "AssociationId";
289
+ const _AR = "AssociateRepository";
290
+ const _ARR = "AssociateRepositoryRequest";
291
+ const _ARRs = "AssociateRepositoryResponse";
292
+ const _AT = "AnalysisTypes";
293
+ const _B = "Bitbucket";
294
+ const _BAOK = "BuildArtifactsObjectKey";
295
+ const _BD = "BranchDiff";
296
+ const _BDSCT = "BranchDiffSourceCodeType";
297
+ const _BN = "BranchName";
298
+ const _BNu = "BucketName";
299
+ const _CA = "CodeArtifacts";
300
+ const _CAo = "ConnectionArn";
301
+ const _CC = "CodeCommit";
302
+ const _CCR = "CodeCommitRepository";
303
+ const _CCRR = "CreateCodeReviewRequest";
304
+ const _CCRRr = "CreateCodeReviewResponse";
305
+ const _CCRr = "CreateCodeReview";
306
+ const _CD = "CommitDiff";
307
+ const _CDSCT = "CommitDiffSourceCodeType";
308
+ const _CE = "ConflictException";
309
+ const _CFS = "ConfigFileState";
310
+ const _CR = "CodeReview";
311
+ const _CRA = "CodeReviewArn";
312
+ const _CRS = "CodeReviewSummary";
313
+ const _CRSo = "CodeReviewSummaries";
314
+ const _CRT = "ClientRequestToken";
315
+ const _CRTo = "CodeReviewType";
316
+ const _CTS = "CreatedTimeStamp";
317
+ const _D = "Description";
318
+ const _DBN = "DestinationBranchName";
319
+ const _DC = "DestinationCommit";
320
+ const _DCR = "DescribeCodeReview";
321
+ const _DCRR = "DescribeCodeReviewRequest";
322
+ const _DCRRe = "DescribeCodeReviewResponse";
323
+ const _DR = "DisassociateRepository";
324
+ const _DRA = "DescribeRepositoryAssociation";
325
+ const _DRAR = "DescribeRepositoryAssociationRequest";
326
+ const _DRARe = "DescribeRepositoryAssociationResponse";
327
+ const _DRF = "DescribeRecommendationFeedback";
328
+ const _DRFR = "DescribeRecommendationFeedbackRequest";
329
+ const _DRFRe = "DescribeRecommendationFeedbackResponse";
330
+ const _DRR = "DisassociateRepositoryRequest";
331
+ const _DRRi = "DisassociateRepositoryResponse";
332
+ const _De = "Details";
333
+ const _EI = "EventInfo";
334
+ const _EL = "EndLine";
335
+ const _EO = "EncryptionOption";
336
+ const _FC = "FindingsCount";
337
+ const _FP = "FilePath";
338
+ const _GHES = "GitHubEnterpriseServer";
339
+ const _ISE = "InternalServerException";
340
+ const _KMSKD = "KMSKeyDetails";
341
+ const _KMSKI = "KMSKeyId";
342
+ const _LCR = "ListCodeReviews";
343
+ const _LCRR = "ListCodeReviewsRequest";
344
+ const _LCRRi = "ListCodeReviewsResponse";
345
+ const _LD = "LongDescription";
346
+ const _LR = "ListRecommendations";
347
+ const _LRA = "ListRepositoryAssociations";
348
+ const _LRAR = "ListRepositoryAssociationsRequest";
349
+ const _LRARi = "ListRepositoryAssociationsResponse";
350
+ const _LRF = "ListRecommendationFeedback";
351
+ const _LRFR = "ListRecommendationFeedbackRequest";
352
+ const _LRFRi = "ListRecommendationFeedbackResponse";
353
+ const _LRR = "ListRecommendationsRequest";
354
+ const _LRRi = "ListRecommendationsResponse";
355
+ const _LTFR = "ListTagsForResource";
356
+ const _LTFRR = "ListTagsForResourceRequest";
357
+ const _LTFRRi = "ListTagsForResourceResponse";
358
+ const _LUTS = "LastUpdatedTimeStamp";
359
+ const _M = "Message";
360
+ const _MBC = "MergeBaseCommit";
361
+ const _MLOCC = "MeteredLinesOfCodeCount";
885
362
  const _MR = "MaxResults";
886
- const _N = "Names";
363
+ const _MS = "MetricsSummary";
364
+ const _Me = "Metrics";
365
+ const _N = "Name";
366
+ const _NFE = "NotFoundException";
887
367
  const _NT = "NextToken";
888
- const _Na = "Name";
889
- const _O = "Owners";
890
- const _Ow = "Owner";
891
- const _PT = "ProviderTypes";
892
- const _PTr = "ProviderType";
368
+ const _Na = "Names";
369
+ const _O = "Owner";
370
+ const _Ow = "Owners";
371
+ const _PRF = "PutRecommendationFeedback";
372
+ const _PRFR = "PutRecommendationFeedbackRequest";
373
+ const _PRFRu = "PutRecommendationFeedbackResponse";
374
+ const _PRI = "PullRequestId";
375
+ const _PT = "ProviderType";
376
+ const _PTr = "ProviderTypes";
377
+ const _R = "Repository";
378
+ const _RA = "RepositoryAssociation";
379
+ const _RAA = "RepositoryAssociationArn";
380
+ const _RAS = "RepositoryAssociationSummaries";
381
+ const _RASe = "RepositoryAssociationSummary";
382
+ const _RAe = "RepositoryAnalysis";
383
+ const _RC = "RecommendationCategory";
384
+ const _RF = "RecommendationFeedback";
385
+ const _RFS = "RecommendationFeedbackSummaries";
386
+ const _RFSe = "RecommendationFeedbackSummary";
387
+ const _RH = "RepositoryHead";
388
+ const _RHSCT = "RepositoryHeadSourceCodeType";
893
389
  const _RI = "RecommendationId";
894
390
  const _RIe = "RecommendationIds";
895
- const _RN = "RepositoryNames";
896
- const _S = "States";
897
- const _St = "State";
898
- const _T = "Type";
391
+ const _RIeq = "RequestId";
392
+ const _RIu = "RuleId";
393
+ const _RM = "RuleMetadata";
394
+ const _RMe = "RequestMetadata";
395
+ const _RN = "RepositoryName";
396
+ const _RNFE = "ResourceNotFoundException";
397
+ const _RNe = "RepositoryNames";
398
+ const _RNu = "RuleName";
399
+ const _RS = "RecommendationSummaries";
400
+ const _RSe = "RecommendationSummary";
401
+ const _RT = "RuleTags";
402
+ const _Re = "Reactions";
403
+ const _Req = "Requester";
404
+ const _S = "State";
405
+ const _SB = "S3Bucket";
406
+ const _SBN = "SourceBranchName";
407
+ const _SBR = "S3BucketRepository";
408
+ const _SC = "SourceCommit";
409
+ const _SCAOK = "SourceCodeArtifactsObjectKey";
410
+ const _SCT = "SourceCodeType";
411
+ const _SD = "ShortDescription";
412
+ const _SL = "StartLine";
413
+ const _SLOCC = "SuppressedLinesOfCodeCount";
414
+ const _SR = "StateReason";
415
+ const _SRD = "S3RepositoryDetails";
416
+ const _SRe = "S3Repository";
417
+ const _Se = "Severity";
418
+ const _St = "States";
419
+ const _T = "Tags";
420
+ const _TE = "ThrottlingException";
899
421
  const _TK = "TagKeys";
422
+ const _TPSR = "ThirdPartySourceRepository";
423
+ const _TR = "TagResource";
424
+ const _TRR = "TagResourceRequest";
425
+ const _TRRa = "TagResourceResponse";
426
+ const _Ty = "Type";
900
427
  const _UI = "UserId";
901
428
  const _UIs = "UserIds";
429
+ const _UR = "UntagResource";
430
+ const _URR = "UntagResourceRequest";
431
+ const _URRn = "UntagResourceResponse";
432
+ const _VE = "ValidationException";
433
+ const _VN = "VendorName";
434
+ const _c = "client";
435
+ const _e = "error";
436
+ const _h = "http";
437
+ const _hE = "httpError";
438
+ const _hQ = "httpQuery";
439
+ const _rA = "resourceArn";
440
+ const _s = "server";
441
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.codegurureviewer";
902
442
  const _tK = "tagKeys";
443
+ const n0 = "com.amazonaws.codegurureviewer";
444
+ var AccessDeniedException = [
445
+ -3,
446
+ n0,
447
+ _ADE,
448
+ {
449
+ [_e]: _c,
450
+ [_hE]: 403,
451
+ },
452
+ [_M],
453
+ [0],
454
+ ];
455
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
456
+ var AssociateRepositoryRequest = [
457
+ 3,
458
+ n0,
459
+ _ARR,
460
+ 0,
461
+ [_R, _CRT, _T, _KMSKD],
462
+ [() => Repository, [0, 4], 128 | 0, () => KMSKeyDetails],
463
+ ];
464
+ var AssociateRepositoryResponse = [
465
+ 3,
466
+ n0,
467
+ _ARRs,
468
+ 0,
469
+ [_RA, _T],
470
+ [() => RepositoryAssociation, 128 | 0],
471
+ ];
472
+ var BranchDiffSourceCodeType = [3, n0, _BDSCT, 0, [_SBN, _DBN], [0, 0]];
473
+ var CodeArtifacts = [3, n0, _CA, 0, [_SCAOK, _BAOK], [0, 0]];
474
+ var CodeCommitRepository = [3, n0, _CCR, 0, [_N], [0]];
475
+ var CodeReview = [
476
+ 3,
477
+ n0,
478
+ _CR,
479
+ 0,
480
+ [_N, _CRA, _RN, _O, _PT, _S, _SR, _CTS, _LUTS, _Ty, _PRI, _SCT, _AA, _Me, _AT, _CFS],
481
+ [0, 0, 0, 0, 0, 0, 0, 4, 4, 0, 0, () => SourceCodeType, 0, () => Metrics, 64 | 0, 0],
482
+ ];
483
+ var CodeReviewSummary = [
484
+ 3,
485
+ n0,
486
+ _CRS,
487
+ 0,
488
+ [_N, _CRA, _RN, _O, _PT, _S, _CTS, _LUTS, _Ty, _PRI, _MS, _SCT],
489
+ [0, 0, 0, 0, 0, 0, 4, 4, 0, 0, () => MetricsSummary, () => SourceCodeType],
490
+ ];
491
+ var CodeReviewType = [3, n0, _CRTo, 0, [_RAe, _AT], [() => RepositoryAnalysis, 64 | 0]];
492
+ var CommitDiffSourceCodeType = [3, n0, _CDSCT, 0, [_SC, _DC, _MBC], [0, 0, 0]];
493
+ var ConflictException = [
494
+ -3,
495
+ n0,
496
+ _CE,
497
+ {
498
+ [_e]: _c,
499
+ [_hE]: 409,
500
+ },
501
+ [_M],
502
+ [0],
503
+ ];
504
+ schema.TypeRegistry.for(n0).registerError(ConflictException, ConflictException$1);
505
+ var CreateCodeReviewRequest = [
506
+ 3,
507
+ n0,
508
+ _CCRR,
509
+ 0,
510
+ [_N, _RAA, _Ty, _CRT],
511
+ [0, 0, () => CodeReviewType, [0, 4]],
512
+ ];
513
+ var CreateCodeReviewResponse = [3, n0, _CCRRr, 0, [_CR], [() => CodeReview]];
514
+ var DescribeCodeReviewRequest = [3, n0, _DCRR, 0, [_CRA], [[0, 1]]];
515
+ var DescribeCodeReviewResponse = [3, n0, _DCRRe, 0, [_CR], [() => CodeReview]];
516
+ var DescribeRecommendationFeedbackRequest = [
517
+ 3,
518
+ n0,
519
+ _DRFR,
520
+ 0,
521
+ [_CRA, _RI, _UI],
522
+ [
523
+ [0, 1],
524
+ [
525
+ 0,
526
+ {
527
+ [_hQ]: _RI,
528
+ },
529
+ ],
530
+ [
531
+ 0,
532
+ {
533
+ [_hQ]: _UI,
534
+ },
535
+ ],
536
+ ],
537
+ ];
538
+ var DescribeRecommendationFeedbackResponse = [
539
+ 3,
540
+ n0,
541
+ _DRFRe,
542
+ 0,
543
+ [_RF],
544
+ [() => RecommendationFeedback],
545
+ ];
546
+ var DescribeRepositoryAssociationRequest = [3, n0, _DRAR, 0, [_AA], [[0, 1]]];
547
+ var DescribeRepositoryAssociationResponse = [
548
+ 3,
549
+ n0,
550
+ _DRARe,
551
+ 0,
552
+ [_RA, _T],
553
+ [() => RepositoryAssociation, 128 | 0],
554
+ ];
555
+ var DisassociateRepositoryRequest = [3, n0, _DRR, 0, [_AA], [[0, 1]]];
556
+ var DisassociateRepositoryResponse = [
557
+ 3,
558
+ n0,
559
+ _DRRi,
560
+ 0,
561
+ [_RA, _T],
562
+ [() => RepositoryAssociation, 128 | 0],
563
+ ];
564
+ var EventInfo = [3, n0, _EI, 0, [_N, _S], [0, 0]];
565
+ var InternalServerException = [
566
+ -3,
567
+ n0,
568
+ _ISE,
569
+ {
570
+ [_e]: _s,
571
+ [_hE]: 500,
572
+ },
573
+ [_M],
574
+ [0],
575
+ ];
576
+ schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
577
+ var KMSKeyDetails = [3, n0, _KMSKD, 0, [_KMSKI, _EO], [0, 0]];
578
+ var ListCodeReviewsRequest = [
579
+ 3,
580
+ n0,
581
+ _LCRR,
582
+ 0,
583
+ [_PTr, _St, _RNe, _Ty, _MR, _NT],
584
+ [
585
+ [
586
+ 64 | 0,
587
+ {
588
+ [_hQ]: _PTr,
589
+ },
590
+ ],
591
+ [
592
+ 64 | 0,
593
+ {
594
+ [_hQ]: _St,
595
+ },
596
+ ],
597
+ [
598
+ 64 | 0,
599
+ {
600
+ [_hQ]: _RNe,
601
+ },
602
+ ],
603
+ [
604
+ 0,
605
+ {
606
+ [_hQ]: _Ty,
607
+ },
608
+ ],
609
+ [
610
+ 1,
611
+ {
612
+ [_hQ]: _MR,
613
+ },
614
+ ],
615
+ [
616
+ 0,
617
+ {
618
+ [_hQ]: _NT,
619
+ },
620
+ ],
621
+ ],
622
+ ];
623
+ var ListCodeReviewsResponse = [
624
+ 3,
625
+ n0,
626
+ _LCRRi,
627
+ 0,
628
+ [_CRSo, _NT],
629
+ [() => CodeReviewSummaries, 0],
630
+ ];
631
+ var ListRecommendationFeedbackRequest = [
632
+ 3,
633
+ n0,
634
+ _LRFR,
635
+ 0,
636
+ [_NT, _MR, _CRA, _UIs, _RIe],
637
+ [
638
+ [
639
+ 0,
640
+ {
641
+ [_hQ]: _NT,
642
+ },
643
+ ],
644
+ [
645
+ 1,
646
+ {
647
+ [_hQ]: _MR,
648
+ },
649
+ ],
650
+ [0, 1],
651
+ [
652
+ 64 | 0,
653
+ {
654
+ [_hQ]: _UIs,
655
+ },
656
+ ],
657
+ [
658
+ 64 | 0,
659
+ {
660
+ [_hQ]: _RIe,
661
+ },
662
+ ],
663
+ ],
664
+ ];
665
+ var ListRecommendationFeedbackResponse = [
666
+ 3,
667
+ n0,
668
+ _LRFRi,
669
+ 0,
670
+ [_RFS, _NT],
671
+ [() => RecommendationFeedbackSummaries, 0],
672
+ ];
673
+ var ListRecommendationsRequest = [
674
+ 3,
675
+ n0,
676
+ _LRR,
677
+ 0,
678
+ [_NT, _MR, _CRA],
679
+ [
680
+ [
681
+ 0,
682
+ {
683
+ [_hQ]: _NT,
684
+ },
685
+ ],
686
+ [
687
+ 1,
688
+ {
689
+ [_hQ]: _MR,
690
+ },
691
+ ],
692
+ [0, 1],
693
+ ],
694
+ ];
695
+ var ListRecommendationsResponse = [
696
+ 3,
697
+ n0,
698
+ _LRRi,
699
+ 0,
700
+ [_RS, _NT],
701
+ [() => RecommendationSummaries, 0],
702
+ ];
703
+ var ListRepositoryAssociationsRequest = [
704
+ 3,
705
+ n0,
706
+ _LRAR,
707
+ 0,
708
+ [_PTr, _St, _Na, _Ow, _MR, _NT],
709
+ [
710
+ [
711
+ 64 | 0,
712
+ {
713
+ [_hQ]: _PT,
714
+ },
715
+ ],
716
+ [
717
+ 64 | 0,
718
+ {
719
+ [_hQ]: _S,
720
+ },
721
+ ],
722
+ [
723
+ 64 | 0,
724
+ {
725
+ [_hQ]: _N,
726
+ },
727
+ ],
728
+ [
729
+ 64 | 0,
730
+ {
731
+ [_hQ]: _O,
732
+ },
733
+ ],
734
+ [
735
+ 1,
736
+ {
737
+ [_hQ]: _MR,
738
+ },
739
+ ],
740
+ [
741
+ 0,
742
+ {
743
+ [_hQ]: _NT,
744
+ },
745
+ ],
746
+ ],
747
+ ];
748
+ var ListRepositoryAssociationsResponse = [
749
+ 3,
750
+ n0,
751
+ _LRARi,
752
+ 0,
753
+ [_RAS, _NT],
754
+ [() => RepositoryAssociationSummaries, 0],
755
+ ];
756
+ var ListTagsForResourceRequest = [3, n0, _LTFRR, 0, [_rA], [[0, 1]]];
757
+ var ListTagsForResourceResponse = [3, n0, _LTFRRi, 0, [_T], [128 | 0]];
758
+ var Metrics = [3, n0, _Me, 0, [_MLOCC, _SLOCC, _FC], [1, 1, 1]];
759
+ var MetricsSummary = [3, n0, _MS, 0, [_MLOCC, _SLOCC, _FC], [1, 1, 1]];
760
+ var NotFoundException = [
761
+ -3,
762
+ n0,
763
+ _NFE,
764
+ {
765
+ [_e]: _c,
766
+ [_hE]: 404,
767
+ },
768
+ [_M],
769
+ [0],
770
+ ];
771
+ schema.TypeRegistry.for(n0).registerError(NotFoundException, NotFoundException$1);
772
+ var PutRecommendationFeedbackRequest = [
773
+ 3,
774
+ n0,
775
+ _PRFR,
776
+ 0,
777
+ [_CRA, _RI, _Re],
778
+ [0, 0, 64 | 0],
779
+ ];
780
+ var PutRecommendationFeedbackResponse = [3, n0, _PRFRu, 0, [], []];
781
+ var RecommendationFeedback = [
782
+ 3,
783
+ n0,
784
+ _RF,
785
+ 0,
786
+ [_CRA, _RI, _Re, _UI, _CTS, _LUTS],
787
+ [0, 0, 64 | 0, 0, 4, 4],
788
+ ];
789
+ var RecommendationFeedbackSummary = [3, n0, _RFSe, 0, [_RI, _Re, _UI], [0, 64 | 0, 0]];
790
+ var RecommendationSummary = [
791
+ 3,
792
+ n0,
793
+ _RSe,
794
+ 0,
795
+ [_FP, _RI, _SL, _EL, _D, _RC, _RM, _Se],
796
+ [0, 0, 1, 1, 0, 0, () => RuleMetadata, 0],
797
+ ];
798
+ var Repository = [
799
+ 3,
800
+ n0,
801
+ _R,
802
+ 0,
803
+ [_CC, _B, _GHES, _SB],
804
+ [() => CodeCommitRepository, () => ThirdPartySourceRepository, () => ThirdPartySourceRepository, () => S3Repository],
805
+ ];
806
+ var RepositoryAnalysis = [
807
+ 3,
808
+ n0,
809
+ _RAe,
810
+ 0,
811
+ [_RH, _SCT],
812
+ [() => RepositoryHeadSourceCodeType, () => SourceCodeType],
813
+ ];
814
+ var RepositoryAssociation = [
815
+ 3,
816
+ n0,
817
+ _RA,
818
+ 0,
819
+ [_AI, _AA, _CAo, _N, _O, _PT, _S, _SR, _LUTS, _CTS, _KMSKD, _SRD],
820
+ [0, 0, 0, 0, 0, 0, 0, 0, 4, 4, () => KMSKeyDetails, () => S3RepositoryDetails],
821
+ ];
822
+ var RepositoryAssociationSummary = [
823
+ 3,
824
+ n0,
825
+ _RASe,
826
+ 0,
827
+ [_AA, _CAo, _LUTS, _AI, _N, _O, _PT, _S],
828
+ [0, 0, 4, 0, 0, 0, 0, 0],
829
+ ];
830
+ var RepositoryHeadSourceCodeType = [3, n0, _RHSCT, 0, [_BN], [0]];
831
+ var RequestMetadata = [
832
+ 3,
833
+ n0,
834
+ _RMe,
835
+ 0,
836
+ [_RIeq, _Req, _EI, _VN],
837
+ [0, 0, () => EventInfo, 0],
838
+ ];
839
+ var ResourceNotFoundException = [
840
+ -3,
841
+ n0,
842
+ _RNFE,
843
+ {
844
+ [_e]: _c,
845
+ [_hE]: 404,
846
+ },
847
+ [_M],
848
+ [0],
849
+ ];
850
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
851
+ var RuleMetadata = [3, n0, _RM, 0, [_RIu, _RNu, _SD, _LD, _RT], [0, 0, 0, 0, 64 | 0]];
852
+ var S3BucketRepository = [3, n0, _SBR, 0, [_N, _De], [0, () => S3RepositoryDetails]];
853
+ var S3Repository = [3, n0, _SRe, 0, [_N, _BNu], [0, 0]];
854
+ var S3RepositoryDetails = [3, n0, _SRD, 0, [_BNu, _CA], [0, () => CodeArtifacts]];
855
+ var SourceCodeType = [
856
+ 3,
857
+ n0,
858
+ _SCT,
859
+ 0,
860
+ [_CD, _RH, _BD, _SBR, _RMe],
861
+ [
862
+ () => CommitDiffSourceCodeType,
863
+ () => RepositoryHeadSourceCodeType,
864
+ () => BranchDiffSourceCodeType,
865
+ () => S3BucketRepository,
866
+ () => RequestMetadata,
867
+ ],
868
+ ];
869
+ var TagResourceRequest = [3, n0, _TRR, 0, [_rA, _T], [[0, 1], 128 | 0]];
870
+ var TagResourceResponse = [3, n0, _TRRa, 0, [], []];
871
+ var ThirdPartySourceRepository = [3, n0, _TPSR, 0, [_N, _CAo, _O], [0, 0, 0]];
872
+ var ThrottlingException = [
873
+ -3,
874
+ n0,
875
+ _TE,
876
+ {
877
+ [_e]: _c,
878
+ [_hE]: 429,
879
+ },
880
+ [_M],
881
+ [0],
882
+ ];
883
+ schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
884
+ var UntagResourceRequest = [
885
+ 3,
886
+ n0,
887
+ _URR,
888
+ 0,
889
+ [_rA, _TK],
890
+ [
891
+ [0, 1],
892
+ [
893
+ 64 | 0,
894
+ {
895
+ [_hQ]: _tK,
896
+ },
897
+ ],
898
+ ],
899
+ ];
900
+ var UntagResourceResponse = [3, n0, _URRn, 0, [], []];
901
+ var ValidationException = [
902
+ -3,
903
+ n0,
904
+ _VE,
905
+ {
906
+ [_e]: _c,
907
+ [_hE]: 400,
908
+ },
909
+ [_M],
910
+ [0],
911
+ ];
912
+ schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
913
+ var CodeGuruReviewerServiceException = [
914
+ -3,
915
+ _sm,
916
+ "CodeGuruReviewerServiceException",
917
+ 0,
918
+ [],
919
+ [],
920
+ ];
921
+ schema.TypeRegistry.for(_sm).registerError(CodeGuruReviewerServiceException, CodeGuruReviewerServiceException$1);
922
+ var CodeReviewSummaries = [1, n0, _CRSo, 0, () => CodeReviewSummary];
923
+ var RecommendationFeedbackSummaries = [1, n0, _RFS, 0, () => RecommendationFeedbackSummary];
924
+ var RecommendationSummaries = [1, n0, _RS, 0, () => RecommendationSummary];
925
+ var RepositoryAssociationSummaries = [1, n0, _RAS, 0, () => RepositoryAssociationSummary];
926
+ var AssociateRepository = [
927
+ 9,
928
+ n0,
929
+ _AR,
930
+ {
931
+ [_h]: ["POST", "/associations", 200],
932
+ },
933
+ () => AssociateRepositoryRequest,
934
+ () => AssociateRepositoryResponse,
935
+ ];
936
+ var CreateCodeReview = [
937
+ 9,
938
+ n0,
939
+ _CCRr,
940
+ {
941
+ [_h]: ["POST", "/codereviews", 200],
942
+ },
943
+ () => CreateCodeReviewRequest,
944
+ () => CreateCodeReviewResponse,
945
+ ];
946
+ var DescribeCodeReview = [
947
+ 9,
948
+ n0,
949
+ _DCR,
950
+ {
951
+ [_h]: ["GET", "/codereviews/{CodeReviewArn}", 200],
952
+ },
953
+ () => DescribeCodeReviewRequest,
954
+ () => DescribeCodeReviewResponse,
955
+ ];
956
+ var DescribeRecommendationFeedback = [
957
+ 9,
958
+ n0,
959
+ _DRF,
960
+ {
961
+ [_h]: ["GET", "/feedback/{CodeReviewArn}", 200],
962
+ },
963
+ () => DescribeRecommendationFeedbackRequest,
964
+ () => DescribeRecommendationFeedbackResponse,
965
+ ];
966
+ var DescribeRepositoryAssociation = [
967
+ 9,
968
+ n0,
969
+ _DRA,
970
+ {
971
+ [_h]: ["GET", "/associations/{AssociationArn}", 200],
972
+ },
973
+ () => DescribeRepositoryAssociationRequest,
974
+ () => DescribeRepositoryAssociationResponse,
975
+ ];
976
+ var DisassociateRepository = [
977
+ 9,
978
+ n0,
979
+ _DR,
980
+ {
981
+ [_h]: ["DELETE", "/associations/{AssociationArn}", 200],
982
+ },
983
+ () => DisassociateRepositoryRequest,
984
+ () => DisassociateRepositoryResponse,
985
+ ];
986
+ var ListCodeReviews = [
987
+ 9,
988
+ n0,
989
+ _LCR,
990
+ {
991
+ [_h]: ["GET", "/codereviews", 200],
992
+ },
993
+ () => ListCodeReviewsRequest,
994
+ () => ListCodeReviewsResponse,
995
+ ];
996
+ var ListRecommendationFeedback = [
997
+ 9,
998
+ n0,
999
+ _LRF,
1000
+ {
1001
+ [_h]: ["GET", "/feedback/{CodeReviewArn}/RecommendationFeedback", 200],
1002
+ },
1003
+ () => ListRecommendationFeedbackRequest,
1004
+ () => ListRecommendationFeedbackResponse,
1005
+ ];
1006
+ var ListRecommendations = [
1007
+ 9,
1008
+ n0,
1009
+ _LR,
1010
+ {
1011
+ [_h]: ["GET", "/codereviews/{CodeReviewArn}/Recommendations", 200],
1012
+ },
1013
+ () => ListRecommendationsRequest,
1014
+ () => ListRecommendationsResponse,
1015
+ ];
1016
+ var ListRepositoryAssociations = [
1017
+ 9,
1018
+ n0,
1019
+ _LRA,
1020
+ {
1021
+ [_h]: ["GET", "/associations", 200],
1022
+ },
1023
+ () => ListRepositoryAssociationsRequest,
1024
+ () => ListRepositoryAssociationsResponse,
1025
+ ];
1026
+ var ListTagsForResource = [
1027
+ 9,
1028
+ n0,
1029
+ _LTFR,
1030
+ {
1031
+ [_h]: ["GET", "/tags/{resourceArn}", 200],
1032
+ },
1033
+ () => ListTagsForResourceRequest,
1034
+ () => ListTagsForResourceResponse,
1035
+ ];
1036
+ var PutRecommendationFeedback = [
1037
+ 9,
1038
+ n0,
1039
+ _PRF,
1040
+ {
1041
+ [_h]: ["PUT", "/feedback", 200],
1042
+ },
1043
+ () => PutRecommendationFeedbackRequest,
1044
+ () => PutRecommendationFeedbackResponse,
1045
+ ];
1046
+ var TagResource = [
1047
+ 9,
1048
+ n0,
1049
+ _TR,
1050
+ {
1051
+ [_h]: ["POST", "/tags/{resourceArn}", 200],
1052
+ },
1053
+ () => TagResourceRequest,
1054
+ () => TagResourceResponse,
1055
+ ];
1056
+ var UntagResource = [
1057
+ 9,
1058
+ n0,
1059
+ _UR,
1060
+ {
1061
+ [_h]: ["DELETE", "/tags/{resourceArn}", 200],
1062
+ },
1063
+ () => UntagResourceRequest,
1064
+ () => UntagResourceResponse,
1065
+ ];
903
1066
 
904
1067
  class AssociateRepositoryCommand extends smithyClient.Command
905
1068
  .classBuilder()
906
1069
  .ep(commonParams)
907
1070
  .m(function (Command, cs, config, o) {
908
- return [
909
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
910
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
911
- ];
1071
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
912
1072
  })
913
1073
  .s("AWSGuruFrontendService", "AssociateRepository", {})
914
1074
  .n("CodeGuruReviewerClient", "AssociateRepositoryCommand")
915
- .f(void 0, void 0)
916
- .ser(se_AssociateRepositoryCommand)
917
- .de(de_AssociateRepositoryCommand)
1075
+ .sc(AssociateRepository)
918
1076
  .build() {
919
1077
  }
920
1078
 
@@ -922,16 +1080,11 @@ class CreateCodeReviewCommand extends smithyClient.Command
922
1080
  .classBuilder()
923
1081
  .ep(commonParams)
924
1082
  .m(function (Command, cs, config, o) {
925
- return [
926
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
927
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
928
- ];
1083
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
929
1084
  })
930
1085
  .s("AWSGuruFrontendService", "CreateCodeReview", {})
931
1086
  .n("CodeGuruReviewerClient", "CreateCodeReviewCommand")
932
- .f(void 0, void 0)
933
- .ser(se_CreateCodeReviewCommand)
934
- .de(de_CreateCodeReviewCommand)
1087
+ .sc(CreateCodeReview)
935
1088
  .build() {
936
1089
  }
937
1090
 
@@ -939,16 +1092,11 @@ class DescribeCodeReviewCommand extends smithyClient.Command
939
1092
  .classBuilder()
940
1093
  .ep(commonParams)
941
1094
  .m(function (Command, cs, config, o) {
942
- return [
943
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
944
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
945
- ];
1095
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
946
1096
  })
947
1097
  .s("AWSGuruFrontendService", "DescribeCodeReview", {})
948
1098
  .n("CodeGuruReviewerClient", "DescribeCodeReviewCommand")
949
- .f(void 0, void 0)
950
- .ser(se_DescribeCodeReviewCommand)
951
- .de(de_DescribeCodeReviewCommand)
1099
+ .sc(DescribeCodeReview)
952
1100
  .build() {
953
1101
  }
954
1102
 
@@ -956,16 +1104,11 @@ class DescribeRecommendationFeedbackCommand extends smithyClient.Command
956
1104
  .classBuilder()
957
1105
  .ep(commonParams)
958
1106
  .m(function (Command, cs, config, o) {
959
- return [
960
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
961
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
962
- ];
1107
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
963
1108
  })
964
1109
  .s("AWSGuruFrontendService", "DescribeRecommendationFeedback", {})
965
1110
  .n("CodeGuruReviewerClient", "DescribeRecommendationFeedbackCommand")
966
- .f(void 0, void 0)
967
- .ser(se_DescribeRecommendationFeedbackCommand)
968
- .de(de_DescribeRecommendationFeedbackCommand)
1111
+ .sc(DescribeRecommendationFeedback)
969
1112
  .build() {
970
1113
  }
971
1114
 
@@ -973,16 +1116,11 @@ class DescribeRepositoryAssociationCommand extends smithyClient.Command
973
1116
  .classBuilder()
974
1117
  .ep(commonParams)
975
1118
  .m(function (Command, cs, config, o) {
976
- return [
977
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
978
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
979
- ];
1119
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
980
1120
  })
981
1121
  .s("AWSGuruFrontendService", "DescribeRepositoryAssociation", {})
982
1122
  .n("CodeGuruReviewerClient", "DescribeRepositoryAssociationCommand")
983
- .f(void 0, void 0)
984
- .ser(se_DescribeRepositoryAssociationCommand)
985
- .de(de_DescribeRepositoryAssociationCommand)
1123
+ .sc(DescribeRepositoryAssociation)
986
1124
  .build() {
987
1125
  }
988
1126
 
@@ -990,16 +1128,11 @@ class DisassociateRepositoryCommand extends smithyClient.Command
990
1128
  .classBuilder()
991
1129
  .ep(commonParams)
992
1130
  .m(function (Command, cs, config, o) {
993
- return [
994
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
995
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
996
- ];
1131
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
997
1132
  })
998
1133
  .s("AWSGuruFrontendService", "DisassociateRepository", {})
999
1134
  .n("CodeGuruReviewerClient", "DisassociateRepositoryCommand")
1000
- .f(void 0, void 0)
1001
- .ser(se_DisassociateRepositoryCommand)
1002
- .de(de_DisassociateRepositoryCommand)
1135
+ .sc(DisassociateRepository)
1003
1136
  .build() {
1004
1137
  }
1005
1138
 
@@ -1007,16 +1140,11 @@ class ListCodeReviewsCommand extends smithyClient.Command
1007
1140
  .classBuilder()
1008
1141
  .ep(commonParams)
1009
1142
  .m(function (Command, cs, config, o) {
1010
- return [
1011
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1012
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1013
- ];
1143
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1014
1144
  })
1015
1145
  .s("AWSGuruFrontendService", "ListCodeReviews", {})
1016
1146
  .n("CodeGuruReviewerClient", "ListCodeReviewsCommand")
1017
- .f(void 0, void 0)
1018
- .ser(se_ListCodeReviewsCommand)
1019
- .de(de_ListCodeReviewsCommand)
1147
+ .sc(ListCodeReviews)
1020
1148
  .build() {
1021
1149
  }
1022
1150
 
@@ -1024,16 +1152,11 @@ class ListRecommendationFeedbackCommand extends smithyClient.Command
1024
1152
  .classBuilder()
1025
1153
  .ep(commonParams)
1026
1154
  .m(function (Command, cs, config, o) {
1027
- return [
1028
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1029
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1030
- ];
1155
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1031
1156
  })
1032
1157
  .s("AWSGuruFrontendService", "ListRecommendationFeedback", {})
1033
1158
  .n("CodeGuruReviewerClient", "ListRecommendationFeedbackCommand")
1034
- .f(void 0, void 0)
1035
- .ser(se_ListRecommendationFeedbackCommand)
1036
- .de(de_ListRecommendationFeedbackCommand)
1159
+ .sc(ListRecommendationFeedback)
1037
1160
  .build() {
1038
1161
  }
1039
1162
 
@@ -1041,16 +1164,11 @@ class ListRecommendationsCommand extends smithyClient.Command
1041
1164
  .classBuilder()
1042
1165
  .ep(commonParams)
1043
1166
  .m(function (Command, cs, config, o) {
1044
- return [
1045
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1046
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1047
- ];
1167
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1048
1168
  })
1049
1169
  .s("AWSGuruFrontendService", "ListRecommendations", {})
1050
1170
  .n("CodeGuruReviewerClient", "ListRecommendationsCommand")
1051
- .f(void 0, void 0)
1052
- .ser(se_ListRecommendationsCommand)
1053
- .de(de_ListRecommendationsCommand)
1171
+ .sc(ListRecommendations)
1054
1172
  .build() {
1055
1173
  }
1056
1174
 
@@ -1058,16 +1176,11 @@ class ListRepositoryAssociationsCommand extends smithyClient.Command
1058
1176
  .classBuilder()
1059
1177
  .ep(commonParams)
1060
1178
  .m(function (Command, cs, config, o) {
1061
- return [
1062
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1063
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1064
- ];
1179
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1065
1180
  })
1066
1181
  .s("AWSGuruFrontendService", "ListRepositoryAssociations", {})
1067
1182
  .n("CodeGuruReviewerClient", "ListRepositoryAssociationsCommand")
1068
- .f(void 0, void 0)
1069
- .ser(se_ListRepositoryAssociationsCommand)
1070
- .de(de_ListRepositoryAssociationsCommand)
1183
+ .sc(ListRepositoryAssociations)
1071
1184
  .build() {
1072
1185
  }
1073
1186
 
@@ -1075,16 +1188,11 @@ class ListTagsForResourceCommand extends smithyClient.Command
1075
1188
  .classBuilder()
1076
1189
  .ep(commonParams)
1077
1190
  .m(function (Command, cs, config, o) {
1078
- return [
1079
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1080
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1081
- ];
1191
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1082
1192
  })
1083
1193
  .s("AWSGuruFrontendService", "ListTagsForResource", {})
1084
1194
  .n("CodeGuruReviewerClient", "ListTagsForResourceCommand")
1085
- .f(void 0, void 0)
1086
- .ser(se_ListTagsForResourceCommand)
1087
- .de(de_ListTagsForResourceCommand)
1195
+ .sc(ListTagsForResource)
1088
1196
  .build() {
1089
1197
  }
1090
1198
 
@@ -1092,16 +1200,11 @@ class PutRecommendationFeedbackCommand extends smithyClient.Command
1092
1200
  .classBuilder()
1093
1201
  .ep(commonParams)
1094
1202
  .m(function (Command, cs, config, o) {
1095
- return [
1096
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1097
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1098
- ];
1203
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1099
1204
  })
1100
1205
  .s("AWSGuruFrontendService", "PutRecommendationFeedback", {})
1101
1206
  .n("CodeGuruReviewerClient", "PutRecommendationFeedbackCommand")
1102
- .f(void 0, void 0)
1103
- .ser(se_PutRecommendationFeedbackCommand)
1104
- .de(de_PutRecommendationFeedbackCommand)
1207
+ .sc(PutRecommendationFeedback)
1105
1208
  .build() {
1106
1209
  }
1107
1210
 
@@ -1109,16 +1212,11 @@ class TagResourceCommand extends smithyClient.Command
1109
1212
  .classBuilder()
1110
1213
  .ep(commonParams)
1111
1214
  .m(function (Command, cs, config, o) {
1112
- return [
1113
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1114
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1115
- ];
1215
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1116
1216
  })
1117
1217
  .s("AWSGuruFrontendService", "TagResource", {})
1118
1218
  .n("CodeGuruReviewerClient", "TagResourceCommand")
1119
- .f(void 0, void 0)
1120
- .ser(se_TagResourceCommand)
1121
- .de(de_TagResourceCommand)
1219
+ .sc(TagResource)
1122
1220
  .build() {
1123
1221
  }
1124
1222
 
@@ -1126,16 +1224,11 @@ class UntagResourceCommand extends smithyClient.Command
1126
1224
  .classBuilder()
1127
1225
  .ep(commonParams)
1128
1226
  .m(function (Command, cs, config, o) {
1129
- return [
1130
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1131
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1132
- ];
1227
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1133
1228
  })
1134
1229
  .s("AWSGuruFrontendService", "UntagResource", {})
1135
1230
  .n("CodeGuruReviewerClient", "UntagResourceCommand")
1136
- .f(void 0, void 0)
1137
- .ser(se_UntagResourceCommand)
1138
- .de(de_UntagResourceCommand)
1231
+ .sc(UntagResource)
1139
1232
  .build() {
1140
1233
  }
1141
1234
 
@@ -1271,40 +1364,40 @@ Object.defineProperty(exports, "__Client", {
1271
1364
  enumerable: true,
1272
1365
  get: function () { return smithyClient.Client; }
1273
1366
  });
1274
- exports.AccessDeniedException = AccessDeniedException;
1367
+ exports.AccessDeniedException = AccessDeniedException$1;
1275
1368
  exports.AnalysisType = AnalysisType;
1276
1369
  exports.AssociateRepositoryCommand = AssociateRepositoryCommand;
1277
1370
  exports.CodeGuruReviewer = CodeGuruReviewer;
1278
1371
  exports.CodeGuruReviewerClient = CodeGuruReviewerClient;
1279
- exports.CodeGuruReviewerServiceException = CodeGuruReviewerServiceException;
1372
+ exports.CodeGuruReviewerServiceException = CodeGuruReviewerServiceException$1;
1280
1373
  exports.ConfigFileState = ConfigFileState;
1281
- exports.ConflictException = ConflictException;
1374
+ exports.ConflictException = ConflictException$1;
1282
1375
  exports.CreateCodeReviewCommand = CreateCodeReviewCommand;
1283
1376
  exports.DescribeCodeReviewCommand = DescribeCodeReviewCommand;
1284
1377
  exports.DescribeRecommendationFeedbackCommand = DescribeRecommendationFeedbackCommand;
1285
1378
  exports.DescribeRepositoryAssociationCommand = DescribeRepositoryAssociationCommand;
1286
1379
  exports.DisassociateRepositoryCommand = DisassociateRepositoryCommand;
1287
1380
  exports.EncryptionOption = EncryptionOption;
1288
- exports.InternalServerException = InternalServerException;
1381
+ exports.InternalServerException = InternalServerException$1;
1289
1382
  exports.JobState = JobState;
1290
1383
  exports.ListCodeReviewsCommand = ListCodeReviewsCommand;
1291
1384
  exports.ListRecommendationFeedbackCommand = ListRecommendationFeedbackCommand;
1292
1385
  exports.ListRecommendationsCommand = ListRecommendationsCommand;
1293
1386
  exports.ListRepositoryAssociationsCommand = ListRepositoryAssociationsCommand;
1294
1387
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1295
- exports.NotFoundException = NotFoundException;
1388
+ exports.NotFoundException = NotFoundException$1;
1296
1389
  exports.ProviderType = ProviderType;
1297
1390
  exports.PutRecommendationFeedbackCommand = PutRecommendationFeedbackCommand;
1298
1391
  exports.Reaction = Reaction;
1299
1392
  exports.RecommendationCategory = RecommendationCategory;
1300
1393
  exports.RepositoryAssociationState = RepositoryAssociationState;
1301
- exports.ResourceNotFoundException = ResourceNotFoundException;
1394
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
1302
1395
  exports.Severity = Severity;
1303
1396
  exports.TagResourceCommand = TagResourceCommand;
1304
- exports.ThrottlingException = ThrottlingException;
1397
+ exports.ThrottlingException = ThrottlingException$1;
1305
1398
  exports.Type = Type;
1306
1399
  exports.UntagResourceCommand = UntagResourceCommand;
1307
- exports.ValidationException = ValidationException;
1400
+ exports.ValidationException = ValidationException$1;
1308
1401
  exports.VendorName = VendorName;
1309
1402
  exports.paginateListCodeReviews = paginateListCodeReviews;
1310
1403
  exports.paginateListRecommendationFeedback = paginateListRecommendationFeedback;