@aws-sdk/client-codeguru-reviewer 3.987.0 → 3.989.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.
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultCodeGuruReviewerHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
8
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
+ import { errorTypeRegistries } from "./schemas/schemas_0";
9
10
  export const getRuntimeConfig = (config) => {
10
11
  return {
11
12
  apiVersion: "2019-09-19",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsRestJsonProtocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.codegurureviewer",
30
+ errorTypeRegistries,
29
31
  version: "2019-09-19",
30
32
  serviceTarget: "AWSGuruFrontendService",
31
33
  },
@@ -152,19 +152,63 @@ const _h = "http";
152
152
  const _hE = "httpError";
153
153
  const _hQ = "httpQuery";
154
154
  const _rA = "resourceArn";
155
- const _s = "server";
156
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.codegurureviewer";
155
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.codegurureviewer";
156
+ const _se = "server";
157
157
  const _tK = "tagKeys";
158
158
  const n0 = "com.amazonaws.codegurureviewer";
159
159
  import { TypeRegistry } from "@smithy/core/schema";
160
160
  import { CodeGuruReviewerServiceException } from "../models/CodeGuruReviewerServiceException";
161
161
  import { AccessDeniedException, ConflictException, InternalServerException, NotFoundException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/errors";
162
+ const _s_registry = TypeRegistry.for(_s);
163
+ export var CodeGuruReviewerServiceException$ = [-3, _s, "CodeGuruReviewerServiceException", 0, [], []];
164
+ _s_registry.registerError(CodeGuruReviewerServiceException$, CodeGuruReviewerServiceException);
165
+ const n0_registry = TypeRegistry.for(n0);
162
166
  export var AccessDeniedException$ = [-3, n0, _ADE,
163
167
  { [_e]: _c, [_hE]: 403 },
164
168
  [_M],
165
169
  [0]
166
170
  ];
167
- TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
171
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
172
+ export var ConflictException$ = [-3, n0, _CE,
173
+ { [_e]: _c, [_hE]: 409 },
174
+ [_M],
175
+ [0]
176
+ ];
177
+ n0_registry.registerError(ConflictException$, ConflictException);
178
+ export var InternalServerException$ = [-3, n0, _ISE,
179
+ { [_e]: _se, [_hE]: 500 },
180
+ [_M],
181
+ [0]
182
+ ];
183
+ n0_registry.registerError(InternalServerException$, InternalServerException);
184
+ export var NotFoundException$ = [-3, n0, _NFE,
185
+ { [_e]: _c, [_hE]: 404 },
186
+ [_M],
187
+ [0]
188
+ ];
189
+ n0_registry.registerError(NotFoundException$, NotFoundException);
190
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
191
+ { [_e]: _c, [_hE]: 404 },
192
+ [_M],
193
+ [0]
194
+ ];
195
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
196
+ export var ThrottlingException$ = [-3, n0, _TE,
197
+ { [_e]: _c, [_hE]: 429 },
198
+ [_M],
199
+ [0]
200
+ ];
201
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
202
+ export var ValidationException$ = [-3, n0, _VE,
203
+ { [_e]: _c, [_hE]: 400 },
204
+ [_M],
205
+ [0]
206
+ ];
207
+ n0_registry.registerError(ValidationException$, ValidationException);
208
+ export const errorTypeRegistries = [
209
+ _s_registry,
210
+ n0_registry,
211
+ ];
168
212
  export var AssociateRepositoryRequest$ = [3, n0, _ARR,
169
213
  0,
170
214
  [_R, _CRT, _T, _KMSKD],
@@ -210,12 +254,6 @@ export var CommitDiffSourceCodeType$ = [3, n0, _CDSCT,
210
254
  [_SC, _DC, _MBC],
211
255
  [0, 0, 0]
212
256
  ];
213
- export var ConflictException$ = [-3, n0, _CE,
214
- { [_e]: _c, [_hE]: 409 },
215
- [_M],
216
- [0]
217
- ];
218
- TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
219
257
  export var CreateCodeReviewRequest$ = [3, n0, _CCRR,
220
258
  0,
221
259
  [_N, _RAA, _Ty, _CRT],
@@ -271,12 +309,6 @@ export var EventInfo$ = [3, n0, _EI,
271
309
  [_N, _S],
272
310
  [0, 0]
273
311
  ];
274
- export var InternalServerException$ = [-3, n0, _ISE,
275
- { [_e]: _s, [_hE]: 500 },
276
- [_M],
277
- [0]
278
- ];
279
- TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
280
312
  export var KMSKeyDetails$ = [3, n0, _KMSKD,
281
313
  0,
282
314
  [_KMSKI, _EO],
@@ -342,12 +374,6 @@ export var MetricsSummary$ = [3, n0, _MS,
342
374
  [_MLOCC, _SLOCC, _FC],
343
375
  [1, 1, 1]
344
376
  ];
345
- export var NotFoundException$ = [-3, n0, _NFE,
346
- { [_e]: _c, [_hE]: 404 },
347
- [_M],
348
- [0]
349
- ];
350
- TypeRegistry.for(n0).registerError(NotFoundException$, NotFoundException);
351
377
  export var PutRecommendationFeedbackRequest$ = [3, n0, _PRFR,
352
378
  0,
353
379
  [_CRA, _RI, _Re],
@@ -403,12 +429,6 @@ export var RequestMetadata$ = [3, n0, _RMe,
403
429
  [_RIeq, _Req, _EI, _VN],
404
430
  [0, 0, () => EventInfo$, 0]
405
431
  ];
406
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
407
- { [_e]: _c, [_hE]: 404 },
408
- [_M],
409
- [0]
410
- ];
411
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
412
432
  export var RuleMetadata$ = [3, n0, _RM,
413
433
  0,
414
434
  [_RIu, _RNu, _SD, _LD, _RT],
@@ -449,12 +469,6 @@ export var ThirdPartySourceRepository$ = [3, n0, _TPSR,
449
469
  [_N, _CAo, _O],
450
470
  [0, 0, 0], 3
451
471
  ];
452
- export var ThrottlingException$ = [-3, n0, _TE,
453
- { [_e]: _c, [_hE]: 429 },
454
- [_M],
455
- [0]
456
- ];
457
- TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
458
472
  export var UntagResourceRequest$ = [3, n0, _URR,
459
473
  0,
460
474
  [_rA, _TK],
@@ -465,14 +479,6 @@ export var UntagResourceResponse$ = [3, n0, _URRn,
465
479
  [],
466
480
  []
467
481
  ];
468
- export var ValidationException$ = [-3, n0, _VE,
469
- { [_e]: _c, [_hE]: 400 },
470
- [_M],
471
- [0]
472
- ];
473
- TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
474
- export var CodeGuruReviewerServiceException$ = [-3, _sm, "CodeGuruReviewerServiceException", 0, [], []];
475
- TypeRegistry.for(_sm).registerError(CodeGuruReviewerServiceException$, CodeGuruReviewerServiceException);
476
482
  var AnalysisTypes = 64 | 0;
477
483
  var CodeReviewSummaries = [1, n0, _CRSo,
478
484
  0, () => CodeReviewSummary$
@@ -1,5 +1,19 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var CodeGuruReviewerServiceException$: StaticErrorSchema;
2
4
  export declare var AccessDeniedException$: StaticErrorSchema;
5
+ export declare var ConflictException$: StaticErrorSchema;
6
+ export declare var InternalServerException$: StaticErrorSchema;
7
+ export declare var NotFoundException$: StaticErrorSchema;
8
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
9
+ export declare var ThrottlingException$: StaticErrorSchema;
10
+ export declare var ValidationException$: StaticErrorSchema;
11
+ /**
12
+ * TypeRegistry instances containing modeled errors.
13
+ * @internal
14
+ *
15
+ */
16
+ export declare const errorTypeRegistries: TypeRegistry[];
3
17
  export declare var AssociateRepositoryRequest$: StaticStructureSchema;
4
18
  export declare var AssociateRepositoryResponse$: StaticStructureSchema;
5
19
  export declare var BranchDiffSourceCodeType$: StaticStructureSchema;
@@ -9,7 +23,6 @@ export declare var CodeReview$: StaticStructureSchema;
9
23
  export declare var CodeReviewSummary$: StaticStructureSchema;
10
24
  export declare var CodeReviewType$: StaticStructureSchema;
11
25
  export declare var CommitDiffSourceCodeType$: StaticStructureSchema;
12
- export declare var ConflictException$: StaticErrorSchema;
13
26
  export declare var CreateCodeReviewRequest$: StaticStructureSchema;
14
27
  export declare var CreateCodeReviewResponse$: StaticStructureSchema;
15
28
  export declare var DescribeCodeReviewRequest$: StaticStructureSchema;
@@ -21,7 +34,6 @@ export declare var DescribeRepositoryAssociationResponse$: StaticStructureSchema
21
34
  export declare var DisassociateRepositoryRequest$: StaticStructureSchema;
22
35
  export declare var DisassociateRepositoryResponse$: StaticStructureSchema;
23
36
  export declare var EventInfo$: StaticStructureSchema;
24
- export declare var InternalServerException$: StaticErrorSchema;
25
37
  export declare var KMSKeyDetails$: StaticStructureSchema;
26
38
  export declare var ListCodeReviewsRequest$: StaticStructureSchema;
27
39
  export declare var ListCodeReviewsResponse$: StaticStructureSchema;
@@ -35,7 +47,6 @@ export declare var ListTagsForResourceRequest$: StaticStructureSchema;
35
47
  export declare var ListTagsForResourceResponse$: StaticStructureSchema;
36
48
  export declare var Metrics$: StaticStructureSchema;
37
49
  export declare var MetricsSummary$: StaticStructureSchema;
38
- export declare var NotFoundException$: StaticErrorSchema;
39
50
  export declare var PutRecommendationFeedbackRequest$: StaticStructureSchema;
40
51
  export declare var PutRecommendationFeedbackResponse$: StaticStructureSchema;
41
52
  export declare var RecommendationFeedback$: StaticStructureSchema;
@@ -47,7 +58,6 @@ export declare var RepositoryAssociation$: StaticStructureSchema;
47
58
  export declare var RepositoryAssociationSummary$: StaticStructureSchema;
48
59
  export declare var RepositoryHeadSourceCodeType$: StaticStructureSchema;
49
60
  export declare var RequestMetadata$: StaticStructureSchema;
50
- export declare var ResourceNotFoundException$: StaticErrorSchema;
51
61
  export declare var RuleMetadata$: StaticStructureSchema;
52
62
  export declare var S3BucketRepository$: StaticStructureSchema;
53
63
  export declare var S3Repository$: StaticStructureSchema;
@@ -56,11 +66,8 @@ export declare var SourceCodeType$: StaticStructureSchema;
56
66
  export declare var TagResourceRequest$: StaticStructureSchema;
57
67
  export declare var TagResourceResponse$: StaticStructureSchema;
58
68
  export declare var ThirdPartySourceRepository$: StaticStructureSchema;
59
- export declare var ThrottlingException$: StaticErrorSchema;
60
69
  export declare var UntagResourceRequest$: StaticStructureSchema;
61
70
  export declare var UntagResourceResponse$: StaticStructureSchema;
62
- export declare var ValidationException$: StaticErrorSchema;
63
- export declare var CodeGuruReviewerServiceException$: StaticErrorSchema;
64
71
  export declare var AssociateRepository$: StaticOperationSchema;
65
72
  export declare var CreateCodeReview$: StaticOperationSchema;
66
73
  export declare var DescribeCodeReview$: StaticOperationSchema;
@@ -1,9 +1,18 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import {
2
3
  StaticErrorSchema,
3
4
  StaticOperationSchema,
4
5
  StaticStructureSchema,
5
6
  } from "@smithy/types";
7
+ export declare var CodeGuruReviewerServiceException$: StaticErrorSchema;
6
8
  export declare var AccessDeniedException$: StaticErrorSchema;
9
+ export declare var ConflictException$: StaticErrorSchema;
10
+ export declare var InternalServerException$: StaticErrorSchema;
11
+ export declare var NotFoundException$: StaticErrorSchema;
12
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
13
+ export declare var ThrottlingException$: StaticErrorSchema;
14
+ export declare var ValidationException$: StaticErrorSchema;
15
+ export declare const errorTypeRegistries: TypeRegistry[];
7
16
  export declare var AssociateRepositoryRequest$: StaticStructureSchema;
8
17
  export declare var AssociateRepositoryResponse$: StaticStructureSchema;
9
18
  export declare var BranchDiffSourceCodeType$: StaticStructureSchema;
@@ -13,7 +22,6 @@ export declare var CodeReview$: StaticStructureSchema;
13
22
  export declare var CodeReviewSummary$: StaticStructureSchema;
14
23
  export declare var CodeReviewType$: StaticStructureSchema;
15
24
  export declare var CommitDiffSourceCodeType$: StaticStructureSchema;
16
- export declare var ConflictException$: StaticErrorSchema;
17
25
  export declare var CreateCodeReviewRequest$: StaticStructureSchema;
18
26
  export declare var CreateCodeReviewResponse$: StaticStructureSchema;
19
27
  export declare var DescribeCodeReviewRequest$: StaticStructureSchema;
@@ -25,7 +33,6 @@ export declare var DescribeRepositoryAssociationResponse$: StaticStructureSchema
25
33
  export declare var DisassociateRepositoryRequest$: StaticStructureSchema;
26
34
  export declare var DisassociateRepositoryResponse$: StaticStructureSchema;
27
35
  export declare var EventInfo$: StaticStructureSchema;
28
- export declare var InternalServerException$: StaticErrorSchema;
29
36
  export declare var KMSKeyDetails$: StaticStructureSchema;
30
37
  export declare var ListCodeReviewsRequest$: StaticStructureSchema;
31
38
  export declare var ListCodeReviewsResponse$: StaticStructureSchema;
@@ -39,7 +46,6 @@ export declare var ListTagsForResourceRequest$: StaticStructureSchema;
39
46
  export declare var ListTagsForResourceResponse$: StaticStructureSchema;
40
47
  export declare var Metrics$: StaticStructureSchema;
41
48
  export declare var MetricsSummary$: StaticStructureSchema;
42
- export declare var NotFoundException$: StaticErrorSchema;
43
49
  export declare var PutRecommendationFeedbackRequest$: StaticStructureSchema;
44
50
  export declare var PutRecommendationFeedbackResponse$: StaticStructureSchema;
45
51
  export declare var RecommendationFeedback$: StaticStructureSchema;
@@ -51,7 +57,6 @@ export declare var RepositoryAssociation$: StaticStructureSchema;
51
57
  export declare var RepositoryAssociationSummary$: StaticStructureSchema;
52
58
  export declare var RepositoryHeadSourceCodeType$: StaticStructureSchema;
53
59
  export declare var RequestMetadata$: StaticStructureSchema;
54
- export declare var ResourceNotFoundException$: StaticErrorSchema;
55
60
  export declare var RuleMetadata$: StaticStructureSchema;
56
61
  export declare var S3BucketRepository$: StaticStructureSchema;
57
62
  export declare var S3Repository$: StaticStructureSchema;
@@ -60,11 +65,8 @@ export declare var SourceCodeType$: StaticStructureSchema;
60
65
  export declare var TagResourceRequest$: StaticStructureSchema;
61
66
  export declare var TagResourceResponse$: StaticStructureSchema;
62
67
  export declare var ThirdPartySourceRepository$: StaticStructureSchema;
63
- export declare var ThrottlingException$: StaticErrorSchema;
64
68
  export declare var UntagResourceRequest$: StaticStructureSchema;
65
69
  export declare var UntagResourceResponse$: StaticStructureSchema;
66
- export declare var ValidationException$: StaticErrorSchema;
67
- export declare var CodeGuruReviewerServiceException$: StaticErrorSchema;
68
70
  export declare var AssociateRepository$: StaticOperationSchema;
69
71
  export declare var CreateCodeReview$: StaticOperationSchema;
70
72
  export declare var DescribeCodeReview$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-codeguru-reviewer",
3
3
  "description": "AWS SDK for JavaScript Codeguru Reviewer Client for Node.js, Browser and React Native",
4
- "version": "3.987.0",
4
+ "version": "3.989.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-codeguru-reviewer",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.7",
25
- "@aws-sdk/credential-provider-node": "^3.972.6",
24
+ "@aws-sdk/core": "^3.973.9",
25
+ "@aws-sdk/credential-provider-node": "^3.972.8",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.3",
27
27
  "@aws-sdk/middleware-logger": "^3.972.3",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.3",
29
- "@aws-sdk/middleware-user-agent": "^3.972.7",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.9",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.3",
31
31
  "@aws-sdk/types": "^3.973.1",
32
- "@aws-sdk/util-endpoints": "3.987.0",
32
+ "@aws-sdk/util-endpoints": "3.989.0",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.3",
34
- "@aws-sdk/util-user-agent-node": "^3.972.5",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.7",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.22.1",
36
+ "@smithy/core": "^3.23.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.13",
42
- "@smithy/middleware-retry": "^4.4.30",
41
+ "@smithy/middleware-endpoint": "^4.4.14",
42
+ "@smithy/middleware-retry": "^4.4.31",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
- "@smithy/node-http-handler": "^4.4.9",
46
+ "@smithy/node-http-handler": "^4.4.10",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.11.2",
48
+ "@smithy/smithy-client": "^4.11.3",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.29",
55
- "@smithy/util-defaults-mode-node": "^4.2.32",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.30",
55
+ "@smithy/util-defaults-mode-node": "^4.2.33",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",