@aws-sdk/client-codeguru-reviewer 3.1075.0 → 3.1077.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +904 -15
- package/dist-es/runtimeConfig.browser.js +0 -2
- package/dist-es/runtimeConfig.js +1 -2
- package/dist-es/runtimeConfig.native.js +0 -2
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +8 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +8 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -2
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
- package/package.json +8 -10
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
- package/dist-cjs/endpoint/bdd.js +0 -46
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/CodeGuruReviewerServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -99
- package/dist-cjs/runtimeConfig.browser.js +0 -32
- package/dist-cjs/runtimeConfig.js +0 -45
- package/dist-cjs/runtimeConfig.native.js +0 -12
- package/dist-cjs/runtimeConfig.shared.js +0 -38
- package/dist-cjs/schemas/schemas_0.js +0 -610
package/dist-cjs/index.js
CHANGED
|
@@ -1,21 +1,58 @@
|
|
|
1
|
-
|
|
2
|
-
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
1
|
+
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
2
|
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
4
|
-
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
|
|
5
4
|
exports.$Command = Command;
|
|
6
5
|
exports.__Client = Client;
|
|
7
|
-
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
8
|
-
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
9
|
-
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
10
|
-
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
11
|
-
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
12
|
-
const {
|
|
13
|
-
const {
|
|
14
|
-
const {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const {
|
|
18
|
-
|
|
6
|
+
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
7
|
+
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
8
|
+
const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
9
|
+
const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
10
|
+
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
11
|
+
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
12
|
+
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
13
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
|
|
14
|
+
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
15
|
+
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
16
|
+
const { Sha256 } = require("@smithy/core/checksum");
|
|
17
|
+
|
|
18
|
+
const defaultCodeGuruReviewerHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
19
|
+
return {
|
|
20
|
+
operation: getSmithyContext(context).operation,
|
|
21
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
22
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
23
|
+
})(),
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
27
|
+
return {
|
|
28
|
+
schemeId: "aws.auth#sigv4",
|
|
29
|
+
signingProperties: {
|
|
30
|
+
name: "codeguru-reviewer",
|
|
31
|
+
region: authParameters.region,
|
|
32
|
+
},
|
|
33
|
+
propertiesExtractor: (config, context) => ({
|
|
34
|
+
signingProperties: {
|
|
35
|
+
config,
|
|
36
|
+
context,
|
|
37
|
+
},
|
|
38
|
+
}),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
const defaultCodeGuruReviewerHttpAuthSchemeProvider = (authParameters) => {
|
|
42
|
+
const options = [];
|
|
43
|
+
switch (authParameters.operation) {
|
|
44
|
+
default: {
|
|
45
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return options;
|
|
49
|
+
};
|
|
50
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
|
51
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
52
|
+
return Object.assign(config_0, {
|
|
53
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
54
|
+
});
|
|
55
|
+
};
|
|
19
56
|
|
|
20
57
|
const resolveClientEndpointParameters = (options) => {
|
|
21
58
|
return Object.assign(options, {
|
|
@@ -31,6 +68,773 @@ const commonParams = {
|
|
|
31
68
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
32
69
|
};
|
|
33
70
|
|
|
71
|
+
var version = "3.1076.0";
|
|
72
|
+
var packageInfo = {
|
|
73
|
+
version: version};
|
|
74
|
+
|
|
75
|
+
const k = "ref";
|
|
76
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
77
|
+
const _data = {
|
|
78
|
+
conditions: [
|
|
79
|
+
[c, [g]],
|
|
80
|
+
[c, j],
|
|
81
|
+
["aws.partition", j, d],
|
|
82
|
+
[e, [{ [k]: "UseFIPS" }, b]],
|
|
83
|
+
[e, [{ [k]: "UseDualStack" }, b]],
|
|
84
|
+
[e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
|
|
85
|
+
[e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
|
|
86
|
+
],
|
|
87
|
+
results: [
|
|
88
|
+
[a],
|
|
89
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
90
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
91
|
+
[g, i],
|
|
92
|
+
["https://codeguru-reviewer-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
93
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
94
|
+
["https://codeguru-reviewer-fips.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
95
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
96
|
+
["https://codeguru-reviewer.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
97
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
98
|
+
["https://codeguru-reviewer.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
99
|
+
[a, "Invalid Configuration: Missing Region"]
|
|
100
|
+
]
|
|
101
|
+
};
|
|
102
|
+
const root = 2;
|
|
103
|
+
const r = 100_000_000;
|
|
104
|
+
const nodes = new Int32Array([
|
|
105
|
+
-1, 1, -1,
|
|
106
|
+
0, 12, 3,
|
|
107
|
+
1, 4, r + 11,
|
|
108
|
+
2, 5, r + 11,
|
|
109
|
+
3, 8, 6,
|
|
110
|
+
4, 7, r + 10,
|
|
111
|
+
5, r + 8, r + 9,
|
|
112
|
+
4, 10, 9,
|
|
113
|
+
6, r + 6, r + 7,
|
|
114
|
+
5, 11, r + 5,
|
|
115
|
+
6, r + 4, r + 5,
|
|
116
|
+
3, r + 1, 13,
|
|
117
|
+
4, r + 2, r + 3,
|
|
118
|
+
]);
|
|
119
|
+
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
120
|
+
|
|
121
|
+
const cache = new EndpointCache({
|
|
122
|
+
size: 50,
|
|
123
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
124
|
+
});
|
|
125
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
126
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
127
|
+
endpointParams: endpointParams,
|
|
128
|
+
logger: context.logger,
|
|
129
|
+
}));
|
|
130
|
+
};
|
|
131
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
132
|
+
|
|
133
|
+
class CodeGuruReviewerServiceException extends ServiceException {
|
|
134
|
+
constructor(options) {
|
|
135
|
+
super(options);
|
|
136
|
+
Object.setPrototypeOf(this, CodeGuruReviewerServiceException.prototype);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
class AccessDeniedException extends CodeGuruReviewerServiceException {
|
|
141
|
+
name = "AccessDeniedException";
|
|
142
|
+
$fault = "client";
|
|
143
|
+
Message;
|
|
144
|
+
constructor(opts) {
|
|
145
|
+
super({
|
|
146
|
+
name: "AccessDeniedException",
|
|
147
|
+
$fault: "client",
|
|
148
|
+
...opts,
|
|
149
|
+
});
|
|
150
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
151
|
+
this.Message = opts.Message;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
class ConflictException extends CodeGuruReviewerServiceException {
|
|
155
|
+
name = "ConflictException";
|
|
156
|
+
$fault = "client";
|
|
157
|
+
Message;
|
|
158
|
+
constructor(opts) {
|
|
159
|
+
super({
|
|
160
|
+
name: "ConflictException",
|
|
161
|
+
$fault: "client",
|
|
162
|
+
...opts,
|
|
163
|
+
});
|
|
164
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
165
|
+
this.Message = opts.Message;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
class InternalServerException extends CodeGuruReviewerServiceException {
|
|
169
|
+
name = "InternalServerException";
|
|
170
|
+
$fault = "server";
|
|
171
|
+
Message;
|
|
172
|
+
constructor(opts) {
|
|
173
|
+
super({
|
|
174
|
+
name: "InternalServerException",
|
|
175
|
+
$fault: "server",
|
|
176
|
+
...opts,
|
|
177
|
+
});
|
|
178
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
179
|
+
this.Message = opts.Message;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
class ThrottlingException extends CodeGuruReviewerServiceException {
|
|
183
|
+
name = "ThrottlingException";
|
|
184
|
+
$fault = "client";
|
|
185
|
+
Message;
|
|
186
|
+
constructor(opts) {
|
|
187
|
+
super({
|
|
188
|
+
name: "ThrottlingException",
|
|
189
|
+
$fault: "client",
|
|
190
|
+
...opts,
|
|
191
|
+
});
|
|
192
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
193
|
+
this.Message = opts.Message;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
class ValidationException extends CodeGuruReviewerServiceException {
|
|
197
|
+
name = "ValidationException";
|
|
198
|
+
$fault = "client";
|
|
199
|
+
Message;
|
|
200
|
+
constructor(opts) {
|
|
201
|
+
super({
|
|
202
|
+
name: "ValidationException",
|
|
203
|
+
$fault: "client",
|
|
204
|
+
...opts,
|
|
205
|
+
});
|
|
206
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
207
|
+
this.Message = opts.Message;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
class ResourceNotFoundException extends CodeGuruReviewerServiceException {
|
|
211
|
+
name = "ResourceNotFoundException";
|
|
212
|
+
$fault = "client";
|
|
213
|
+
Message;
|
|
214
|
+
constructor(opts) {
|
|
215
|
+
super({
|
|
216
|
+
name: "ResourceNotFoundException",
|
|
217
|
+
$fault: "client",
|
|
218
|
+
...opts,
|
|
219
|
+
});
|
|
220
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
221
|
+
this.Message = opts.Message;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
class NotFoundException extends CodeGuruReviewerServiceException {
|
|
225
|
+
name = "NotFoundException";
|
|
226
|
+
$fault = "client";
|
|
227
|
+
Message;
|
|
228
|
+
constructor(opts) {
|
|
229
|
+
super({
|
|
230
|
+
name: "NotFoundException",
|
|
231
|
+
$fault: "client",
|
|
232
|
+
...opts,
|
|
233
|
+
});
|
|
234
|
+
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
235
|
+
this.Message = opts.Message;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
const _AA = "AssociationArn";
|
|
240
|
+
const _ADE = "AccessDeniedException";
|
|
241
|
+
const _AI = "AssociationId";
|
|
242
|
+
const _AR = "AssociateRepository";
|
|
243
|
+
const _ARR = "AssociateRepositoryRequest";
|
|
244
|
+
const _ARRs = "AssociateRepositoryResponse";
|
|
245
|
+
const _AT = "AnalysisTypes";
|
|
246
|
+
const _B = "Bitbucket";
|
|
247
|
+
const _BAOK = "BuildArtifactsObjectKey";
|
|
248
|
+
const _BD = "BranchDiff";
|
|
249
|
+
const _BDSCT = "BranchDiffSourceCodeType";
|
|
250
|
+
const _BN = "BranchName";
|
|
251
|
+
const _BNu = "BucketName";
|
|
252
|
+
const _CA = "CodeArtifacts";
|
|
253
|
+
const _CAo = "ConnectionArn";
|
|
254
|
+
const _CC = "CodeCommit";
|
|
255
|
+
const _CCR = "CodeCommitRepository";
|
|
256
|
+
const _CCRR = "CreateCodeReviewRequest";
|
|
257
|
+
const _CCRRr = "CreateCodeReviewResponse";
|
|
258
|
+
const _CCRr = "CreateCodeReview";
|
|
259
|
+
const _CD = "CommitDiff";
|
|
260
|
+
const _CDSCT = "CommitDiffSourceCodeType";
|
|
261
|
+
const _CE = "ConflictException";
|
|
262
|
+
const _CFS = "ConfigFileState";
|
|
263
|
+
const _CR = "CodeReview";
|
|
264
|
+
const _CRA = "CodeReviewArn";
|
|
265
|
+
const _CRS = "CodeReviewSummary";
|
|
266
|
+
const _CRSo = "CodeReviewSummaries";
|
|
267
|
+
const _CRT = "ClientRequestToken";
|
|
268
|
+
const _CRTo = "CodeReviewType";
|
|
269
|
+
const _CTS = "CreatedTimeStamp";
|
|
270
|
+
const _D = "Description";
|
|
271
|
+
const _DBN = "DestinationBranchName";
|
|
272
|
+
const _DC = "DestinationCommit";
|
|
273
|
+
const _DCR = "DescribeCodeReview";
|
|
274
|
+
const _DCRR = "DescribeCodeReviewRequest";
|
|
275
|
+
const _DCRRe = "DescribeCodeReviewResponse";
|
|
276
|
+
const _DR = "DisassociateRepository";
|
|
277
|
+
const _DRA = "DescribeRepositoryAssociation";
|
|
278
|
+
const _DRAR = "DescribeRepositoryAssociationRequest";
|
|
279
|
+
const _DRARe = "DescribeRepositoryAssociationResponse";
|
|
280
|
+
const _DRF = "DescribeRecommendationFeedback";
|
|
281
|
+
const _DRFR = "DescribeRecommendationFeedbackRequest";
|
|
282
|
+
const _DRFRe = "DescribeRecommendationFeedbackResponse";
|
|
283
|
+
const _DRR = "DisassociateRepositoryRequest";
|
|
284
|
+
const _DRRi = "DisassociateRepositoryResponse";
|
|
285
|
+
const _De = "Details";
|
|
286
|
+
const _EI = "EventInfo";
|
|
287
|
+
const _EL = "EndLine";
|
|
288
|
+
const _EO = "EncryptionOption";
|
|
289
|
+
const _FC = "FindingsCount";
|
|
290
|
+
const _FP = "FilePath";
|
|
291
|
+
const _GHES = "GitHubEnterpriseServer";
|
|
292
|
+
const _ISE = "InternalServerException";
|
|
293
|
+
const _KMSKD = "KMSKeyDetails";
|
|
294
|
+
const _KMSKI = "KMSKeyId";
|
|
295
|
+
const _LCR = "ListCodeReviews";
|
|
296
|
+
const _LCRR = "ListCodeReviewsRequest";
|
|
297
|
+
const _LCRRi = "ListCodeReviewsResponse";
|
|
298
|
+
const _LD = "LongDescription";
|
|
299
|
+
const _LR = "ListRecommendations";
|
|
300
|
+
const _LRA = "ListRepositoryAssociations";
|
|
301
|
+
const _LRAR = "ListRepositoryAssociationsRequest";
|
|
302
|
+
const _LRARi = "ListRepositoryAssociationsResponse";
|
|
303
|
+
const _LRF = "ListRecommendationFeedback";
|
|
304
|
+
const _LRFR = "ListRecommendationFeedbackRequest";
|
|
305
|
+
const _LRFRi = "ListRecommendationFeedbackResponse";
|
|
306
|
+
const _LRR = "ListRecommendationsRequest";
|
|
307
|
+
const _LRRi = "ListRecommendationsResponse";
|
|
308
|
+
const _LTFR = "ListTagsForResource";
|
|
309
|
+
const _LTFRR = "ListTagsForResourceRequest";
|
|
310
|
+
const _LTFRRi = "ListTagsForResourceResponse";
|
|
311
|
+
const _LUTS = "LastUpdatedTimeStamp";
|
|
312
|
+
const _M = "Message";
|
|
313
|
+
const _MBC = "MergeBaseCommit";
|
|
314
|
+
const _MLOCC = "MeteredLinesOfCodeCount";
|
|
315
|
+
const _MR = "MaxResults";
|
|
316
|
+
const _MS = "MetricsSummary";
|
|
317
|
+
const _Me = "Metrics";
|
|
318
|
+
const _N = "Name";
|
|
319
|
+
const _NFE = "NotFoundException";
|
|
320
|
+
const _NT = "NextToken";
|
|
321
|
+
const _Na = "Names";
|
|
322
|
+
const _O = "Owner";
|
|
323
|
+
const _Ow = "Owners";
|
|
324
|
+
const _PRF = "PutRecommendationFeedback";
|
|
325
|
+
const _PRFR = "PutRecommendationFeedbackRequest";
|
|
326
|
+
const _PRFRu = "PutRecommendationFeedbackResponse";
|
|
327
|
+
const _PRI = "PullRequestId";
|
|
328
|
+
const _PT = "ProviderType";
|
|
329
|
+
const _PTr = "ProviderTypes";
|
|
330
|
+
const _R = "Repository";
|
|
331
|
+
const _RA = "RepositoryAssociation";
|
|
332
|
+
const _RAA = "RepositoryAssociationArn";
|
|
333
|
+
const _RAS = "RepositoryAssociationSummaries";
|
|
334
|
+
const _RASe = "RepositoryAssociationSummary";
|
|
335
|
+
const _RAe = "RepositoryAnalysis";
|
|
336
|
+
const _RC = "RecommendationCategory";
|
|
337
|
+
const _RF = "RecommendationFeedback";
|
|
338
|
+
const _RFS = "RecommendationFeedbackSummaries";
|
|
339
|
+
const _RFSe = "RecommendationFeedbackSummary";
|
|
340
|
+
const _RH = "RepositoryHead";
|
|
341
|
+
const _RHSCT = "RepositoryHeadSourceCodeType";
|
|
342
|
+
const _RI = "RecommendationId";
|
|
343
|
+
const _RIe = "RecommendationIds";
|
|
344
|
+
const _RIeq = "RequestId";
|
|
345
|
+
const _RIu = "RuleId";
|
|
346
|
+
const _RM = "RuleMetadata";
|
|
347
|
+
const _RMe = "RequestMetadata";
|
|
348
|
+
const _RN = "RepositoryName";
|
|
349
|
+
const _RNFE = "ResourceNotFoundException";
|
|
350
|
+
const _RNe = "RepositoryNames";
|
|
351
|
+
const _RNu = "RuleName";
|
|
352
|
+
const _RS = "RecommendationSummaries";
|
|
353
|
+
const _RSe = "RecommendationSummary";
|
|
354
|
+
const _RT = "RuleTags";
|
|
355
|
+
const _Re = "Reactions";
|
|
356
|
+
const _Req = "Requester";
|
|
357
|
+
const _S = "State";
|
|
358
|
+
const _SB = "S3Bucket";
|
|
359
|
+
const _SBN = "SourceBranchName";
|
|
360
|
+
const _SBR = "S3BucketRepository";
|
|
361
|
+
const _SC = "SourceCommit";
|
|
362
|
+
const _SCAOK = "SourceCodeArtifactsObjectKey";
|
|
363
|
+
const _SCT = "SourceCodeType";
|
|
364
|
+
const _SD = "ShortDescription";
|
|
365
|
+
const _SL = "StartLine";
|
|
366
|
+
const _SLOCC = "SuppressedLinesOfCodeCount";
|
|
367
|
+
const _SR = "StateReason";
|
|
368
|
+
const _SRD = "S3RepositoryDetails";
|
|
369
|
+
const _SRe = "S3Repository";
|
|
370
|
+
const _Se = "Severity";
|
|
371
|
+
const _St = "States";
|
|
372
|
+
const _T = "Tags";
|
|
373
|
+
const _TE = "ThrottlingException";
|
|
374
|
+
const _TK = "TagKeys";
|
|
375
|
+
const _TPSR = "ThirdPartySourceRepository";
|
|
376
|
+
const _TR = "TagResource";
|
|
377
|
+
const _TRR = "TagResourceRequest";
|
|
378
|
+
const _TRRa = "TagResourceResponse";
|
|
379
|
+
const _Ty = "Type";
|
|
380
|
+
const _UI = "UserId";
|
|
381
|
+
const _UIs = "UserIds";
|
|
382
|
+
const _UR = "UntagResource";
|
|
383
|
+
const _URR = "UntagResourceRequest";
|
|
384
|
+
const _URRn = "UntagResourceResponse";
|
|
385
|
+
const _VE = "ValidationException";
|
|
386
|
+
const _VN = "VendorName";
|
|
387
|
+
const _c = "client";
|
|
388
|
+
const _e = "error";
|
|
389
|
+
const _h = "http";
|
|
390
|
+
const _hE = "httpError";
|
|
391
|
+
const _hQ = "httpQuery";
|
|
392
|
+
const _rA = "resourceArn";
|
|
393
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.codegurureviewer";
|
|
394
|
+
const _se = "server";
|
|
395
|
+
const _tK = "tagKeys";
|
|
396
|
+
const n0 = "com.amazonaws.codegurureviewer";
|
|
397
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
398
|
+
var CodeGuruReviewerServiceException$ = [-3, _s, "CodeGuruReviewerServiceException", 0, [], []];
|
|
399
|
+
_s_registry.registerError(CodeGuruReviewerServiceException$, CodeGuruReviewerServiceException);
|
|
400
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
401
|
+
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
402
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
403
|
+
[_M],
|
|
404
|
+
[0]
|
|
405
|
+
];
|
|
406
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
407
|
+
var ConflictException$ = [-3, n0, _CE,
|
|
408
|
+
{ [_e]: _c, [_hE]: 409 },
|
|
409
|
+
[_M],
|
|
410
|
+
[0]
|
|
411
|
+
];
|
|
412
|
+
n0_registry.registerError(ConflictException$, ConflictException);
|
|
413
|
+
var InternalServerException$ = [-3, n0, _ISE,
|
|
414
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
415
|
+
[_M],
|
|
416
|
+
[0]
|
|
417
|
+
];
|
|
418
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
419
|
+
var NotFoundException$ = [-3, n0, _NFE,
|
|
420
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
421
|
+
[_M],
|
|
422
|
+
[0]
|
|
423
|
+
];
|
|
424
|
+
n0_registry.registerError(NotFoundException$, NotFoundException);
|
|
425
|
+
var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
426
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
427
|
+
[_M],
|
|
428
|
+
[0]
|
|
429
|
+
];
|
|
430
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
431
|
+
var ThrottlingException$ = [-3, n0, _TE,
|
|
432
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
433
|
+
[_M],
|
|
434
|
+
[0]
|
|
435
|
+
];
|
|
436
|
+
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
437
|
+
var ValidationException$ = [-3, n0, _VE,
|
|
438
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
439
|
+
[_M],
|
|
440
|
+
[0]
|
|
441
|
+
];
|
|
442
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
443
|
+
const errorTypeRegistries = [
|
|
444
|
+
_s_registry,
|
|
445
|
+
n0_registry,
|
|
446
|
+
];
|
|
447
|
+
var AssociateRepositoryRequest$ = [3, n0, _ARR,
|
|
448
|
+
0,
|
|
449
|
+
[_R, _CRT, _T, _KMSKD],
|
|
450
|
+
[() => Repository$, [0, 4], 128 | 0, () => KMSKeyDetails$], 1
|
|
451
|
+
];
|
|
452
|
+
var AssociateRepositoryResponse$ = [3, n0, _ARRs,
|
|
453
|
+
0,
|
|
454
|
+
[_RA, _T],
|
|
455
|
+
[() => RepositoryAssociation$, 128 | 0]
|
|
456
|
+
];
|
|
457
|
+
var BranchDiffSourceCodeType$ = [3, n0, _BDSCT,
|
|
458
|
+
0,
|
|
459
|
+
[_SBN, _DBN],
|
|
460
|
+
[0, 0], 2
|
|
461
|
+
];
|
|
462
|
+
var CodeArtifacts$ = [3, n0, _CA,
|
|
463
|
+
0,
|
|
464
|
+
[_SCAOK, _BAOK],
|
|
465
|
+
[0, 0], 1
|
|
466
|
+
];
|
|
467
|
+
var CodeCommitRepository$ = [3, n0, _CCR,
|
|
468
|
+
0,
|
|
469
|
+
[_N],
|
|
470
|
+
[0], 1
|
|
471
|
+
];
|
|
472
|
+
var CodeReview$ = [3, n0, _CR,
|
|
473
|
+
0,
|
|
474
|
+
[_N, _CRA, _RN, _O, _PT, _S, _SR, _CTS, _LUTS, _Ty, _PRI, _SCT, _AA, _Me, _AT, _CFS],
|
|
475
|
+
[0, 0, 0, 0, 0, 0, 0, 4, 4, 0, 0, () => SourceCodeType$, 0, () => Metrics$, 64 | 0, 0]
|
|
476
|
+
];
|
|
477
|
+
var CodeReviewSummary$ = [3, n0, _CRS,
|
|
478
|
+
0,
|
|
479
|
+
[_N, _CRA, _RN, _O, _PT, _S, _CTS, _LUTS, _Ty, _PRI, _MS, _SCT],
|
|
480
|
+
[0, 0, 0, 0, 0, 0, 4, 4, 0, 0, () => MetricsSummary$, () => SourceCodeType$]
|
|
481
|
+
];
|
|
482
|
+
var CodeReviewType$ = [3, n0, _CRTo,
|
|
483
|
+
0,
|
|
484
|
+
[_RAe, _AT],
|
|
485
|
+
[() => RepositoryAnalysis$, 64 | 0], 1
|
|
486
|
+
];
|
|
487
|
+
var CommitDiffSourceCodeType$ = [3, n0, _CDSCT,
|
|
488
|
+
0,
|
|
489
|
+
[_SC, _DC, _MBC],
|
|
490
|
+
[0, 0, 0]
|
|
491
|
+
];
|
|
492
|
+
var CreateCodeReviewRequest$ = [3, n0, _CCRR,
|
|
493
|
+
0,
|
|
494
|
+
[_N, _RAA, _Ty, _CRT],
|
|
495
|
+
[0, 0, () => CodeReviewType$, [0, 4]], 3
|
|
496
|
+
];
|
|
497
|
+
var CreateCodeReviewResponse$ = [3, n0, _CCRRr,
|
|
498
|
+
0,
|
|
499
|
+
[_CR],
|
|
500
|
+
[() => CodeReview$]
|
|
501
|
+
];
|
|
502
|
+
var DescribeCodeReviewRequest$ = [3, n0, _DCRR,
|
|
503
|
+
0,
|
|
504
|
+
[_CRA],
|
|
505
|
+
[[0, 1]], 1
|
|
506
|
+
];
|
|
507
|
+
var DescribeCodeReviewResponse$ = [3, n0, _DCRRe,
|
|
508
|
+
0,
|
|
509
|
+
[_CR],
|
|
510
|
+
[() => CodeReview$]
|
|
511
|
+
];
|
|
512
|
+
var DescribeRecommendationFeedbackRequest$ = [3, n0, _DRFR,
|
|
513
|
+
0,
|
|
514
|
+
[_CRA, _RI, _UI],
|
|
515
|
+
[[0, 1], [0, { [_hQ]: _RI }], [0, { [_hQ]: _UI }]], 2
|
|
516
|
+
];
|
|
517
|
+
var DescribeRecommendationFeedbackResponse$ = [3, n0, _DRFRe,
|
|
518
|
+
0,
|
|
519
|
+
[_RF],
|
|
520
|
+
[() => RecommendationFeedback$]
|
|
521
|
+
];
|
|
522
|
+
var DescribeRepositoryAssociationRequest$ = [3, n0, _DRAR,
|
|
523
|
+
0,
|
|
524
|
+
[_AA],
|
|
525
|
+
[[0, 1]], 1
|
|
526
|
+
];
|
|
527
|
+
var DescribeRepositoryAssociationResponse$ = [3, n0, _DRARe,
|
|
528
|
+
0,
|
|
529
|
+
[_RA, _T],
|
|
530
|
+
[() => RepositoryAssociation$, 128 | 0]
|
|
531
|
+
];
|
|
532
|
+
var DisassociateRepositoryRequest$ = [3, n0, _DRR,
|
|
533
|
+
0,
|
|
534
|
+
[_AA],
|
|
535
|
+
[[0, 1]], 1
|
|
536
|
+
];
|
|
537
|
+
var DisassociateRepositoryResponse$ = [3, n0, _DRRi,
|
|
538
|
+
0,
|
|
539
|
+
[_RA, _T],
|
|
540
|
+
[() => RepositoryAssociation$, 128 | 0]
|
|
541
|
+
];
|
|
542
|
+
var EventInfo$ = [3, n0, _EI,
|
|
543
|
+
0,
|
|
544
|
+
[_N, _S],
|
|
545
|
+
[0, 0]
|
|
546
|
+
];
|
|
547
|
+
var KMSKeyDetails$ = [3, n0, _KMSKD,
|
|
548
|
+
0,
|
|
549
|
+
[_KMSKI, _EO],
|
|
550
|
+
[0, 0]
|
|
551
|
+
];
|
|
552
|
+
var ListCodeReviewsRequest$ = [3, n0, _LCRR,
|
|
553
|
+
0,
|
|
554
|
+
[_Ty, _PTr, _St, _RNe, _MR, _NT],
|
|
555
|
+
[[0, { [_hQ]: _Ty }], [64 | 0, { [_hQ]: _PTr }], [64 | 0, { [_hQ]: _St }], [64 | 0, { [_hQ]: _RNe }], [1, { [_hQ]: _MR }], [0, { [_hQ]: _NT }]], 1
|
|
556
|
+
];
|
|
557
|
+
var ListCodeReviewsResponse$ = [3, n0, _LCRRi,
|
|
558
|
+
0,
|
|
559
|
+
[_CRSo, _NT],
|
|
560
|
+
[() => CodeReviewSummaries, 0]
|
|
561
|
+
];
|
|
562
|
+
var ListRecommendationFeedbackRequest$ = [3, n0, _LRFR,
|
|
563
|
+
0,
|
|
564
|
+
[_CRA, _NT, _MR, _UIs, _RIe],
|
|
565
|
+
[[0, 1], [0, { [_hQ]: _NT }], [1, { [_hQ]: _MR }], [64 | 0, { [_hQ]: _UIs }], [64 | 0, { [_hQ]: _RIe }]], 1
|
|
566
|
+
];
|
|
567
|
+
var ListRecommendationFeedbackResponse$ = [3, n0, _LRFRi,
|
|
568
|
+
0,
|
|
569
|
+
[_RFS, _NT],
|
|
570
|
+
[() => RecommendationFeedbackSummaries, 0]
|
|
571
|
+
];
|
|
572
|
+
var ListRecommendationsRequest$ = [3, n0, _LRR,
|
|
573
|
+
0,
|
|
574
|
+
[_CRA, _NT, _MR],
|
|
575
|
+
[[0, 1], [0, { [_hQ]: _NT }], [1, { [_hQ]: _MR }]], 1
|
|
576
|
+
];
|
|
577
|
+
var ListRecommendationsResponse$ = [3, n0, _LRRi,
|
|
578
|
+
0,
|
|
579
|
+
[_RS, _NT],
|
|
580
|
+
[() => RecommendationSummaries, 0]
|
|
581
|
+
];
|
|
582
|
+
var ListRepositoryAssociationsRequest$ = [3, n0, _LRAR,
|
|
583
|
+
0,
|
|
584
|
+
[_PTr, _St, _Na, _Ow, _MR, _NT],
|
|
585
|
+
[[64 | 0, { [_hQ]: _PT }], [64 | 0, { [_hQ]: _S }], [64 | 0, { [_hQ]: _N }], [64 | 0, { [_hQ]: _O }], [1, { [_hQ]: _MR }], [0, { [_hQ]: _NT }]]
|
|
586
|
+
];
|
|
587
|
+
var ListRepositoryAssociationsResponse$ = [3, n0, _LRARi,
|
|
588
|
+
0,
|
|
589
|
+
[_RAS, _NT],
|
|
590
|
+
[() => RepositoryAssociationSummaries, 0]
|
|
591
|
+
];
|
|
592
|
+
var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
|
|
593
|
+
0,
|
|
594
|
+
[_rA],
|
|
595
|
+
[[0, 1]], 1
|
|
596
|
+
];
|
|
597
|
+
var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
|
|
598
|
+
0,
|
|
599
|
+
[_T],
|
|
600
|
+
[128 | 0]
|
|
601
|
+
];
|
|
602
|
+
var Metrics$ = [3, n0, _Me,
|
|
603
|
+
0,
|
|
604
|
+
[_MLOCC, _SLOCC, _FC],
|
|
605
|
+
[1, 1, 1]
|
|
606
|
+
];
|
|
607
|
+
var MetricsSummary$ = [3, n0, _MS,
|
|
608
|
+
0,
|
|
609
|
+
[_MLOCC, _SLOCC, _FC],
|
|
610
|
+
[1, 1, 1]
|
|
611
|
+
];
|
|
612
|
+
var PutRecommendationFeedbackRequest$ = [3, n0, _PRFR,
|
|
613
|
+
0,
|
|
614
|
+
[_CRA, _RI, _Re],
|
|
615
|
+
[0, 0, 64 | 0], 3
|
|
616
|
+
];
|
|
617
|
+
var PutRecommendationFeedbackResponse$ = [3, n0, _PRFRu,
|
|
618
|
+
0,
|
|
619
|
+
[],
|
|
620
|
+
[]
|
|
621
|
+
];
|
|
622
|
+
var RecommendationFeedback$ = [3, n0, _RF,
|
|
623
|
+
0,
|
|
624
|
+
[_CRA, _RI, _Re, _UI, _CTS, _LUTS],
|
|
625
|
+
[0, 0, 64 | 0, 0, 4, 4]
|
|
626
|
+
];
|
|
627
|
+
var RecommendationFeedbackSummary$ = [3, n0, _RFSe,
|
|
628
|
+
0,
|
|
629
|
+
[_RI, _Re, _UI],
|
|
630
|
+
[0, 64 | 0, 0]
|
|
631
|
+
];
|
|
632
|
+
var RecommendationSummary$ = [3, n0, _RSe,
|
|
633
|
+
0,
|
|
634
|
+
[_FP, _RI, _SL, _EL, _D, _RC, _RM, _Se],
|
|
635
|
+
[0, 0, 1, 1, 0, 0, () => RuleMetadata$, 0]
|
|
636
|
+
];
|
|
637
|
+
var Repository$ = [3, n0, _R,
|
|
638
|
+
0,
|
|
639
|
+
[_CC, _B, _GHES, _SB],
|
|
640
|
+
[() => CodeCommitRepository$, () => ThirdPartySourceRepository$, () => ThirdPartySourceRepository$, () => S3Repository$]
|
|
641
|
+
];
|
|
642
|
+
var RepositoryAnalysis$ = [3, n0, _RAe,
|
|
643
|
+
0,
|
|
644
|
+
[_RH, _SCT],
|
|
645
|
+
[() => RepositoryHeadSourceCodeType$, () => SourceCodeType$]
|
|
646
|
+
];
|
|
647
|
+
var RepositoryAssociation$ = [3, n0, _RA,
|
|
648
|
+
0,
|
|
649
|
+
[_AI, _AA, _CAo, _N, _O, _PT, _S, _SR, _LUTS, _CTS, _KMSKD, _SRD],
|
|
650
|
+
[0, 0, 0, 0, 0, 0, 0, 0, 4, 4, () => KMSKeyDetails$, () => S3RepositoryDetails$]
|
|
651
|
+
];
|
|
652
|
+
var RepositoryAssociationSummary$ = [3, n0, _RASe,
|
|
653
|
+
0,
|
|
654
|
+
[_AA, _CAo, _LUTS, _AI, _N, _O, _PT, _S],
|
|
655
|
+
[0, 0, 4, 0, 0, 0, 0, 0]
|
|
656
|
+
];
|
|
657
|
+
var RepositoryHeadSourceCodeType$ = [3, n0, _RHSCT,
|
|
658
|
+
0,
|
|
659
|
+
[_BN],
|
|
660
|
+
[0], 1
|
|
661
|
+
];
|
|
662
|
+
var RequestMetadata$ = [3, n0, _RMe,
|
|
663
|
+
0,
|
|
664
|
+
[_RIeq, _Req, _EI, _VN],
|
|
665
|
+
[0, 0, () => EventInfo$, 0]
|
|
666
|
+
];
|
|
667
|
+
var RuleMetadata$ = [3, n0, _RM,
|
|
668
|
+
0,
|
|
669
|
+
[_RIu, _RNu, _SD, _LD, _RT],
|
|
670
|
+
[0, 0, 0, 0, 64 | 0]
|
|
671
|
+
];
|
|
672
|
+
var S3BucketRepository$ = [3, n0, _SBR,
|
|
673
|
+
0,
|
|
674
|
+
[_N, _De],
|
|
675
|
+
[0, () => S3RepositoryDetails$], 1
|
|
676
|
+
];
|
|
677
|
+
var S3Repository$ = [3, n0, _SRe,
|
|
678
|
+
0,
|
|
679
|
+
[_N, _BNu],
|
|
680
|
+
[0, 0], 2
|
|
681
|
+
];
|
|
682
|
+
var S3RepositoryDetails$ = [3, n0, _SRD,
|
|
683
|
+
0,
|
|
684
|
+
[_BNu, _CA],
|
|
685
|
+
[0, () => CodeArtifacts$]
|
|
686
|
+
];
|
|
687
|
+
var SourceCodeType$ = [3, n0, _SCT,
|
|
688
|
+
0,
|
|
689
|
+
[_CD, _RH, _BD, _SBR, _RMe],
|
|
690
|
+
[() => CommitDiffSourceCodeType$, () => RepositoryHeadSourceCodeType$, () => BranchDiffSourceCodeType$, () => S3BucketRepository$, () => RequestMetadata$]
|
|
691
|
+
];
|
|
692
|
+
var TagResourceRequest$ = [3, n0, _TRR,
|
|
693
|
+
0,
|
|
694
|
+
[_rA, _T],
|
|
695
|
+
[[0, 1], 128 | 0], 2
|
|
696
|
+
];
|
|
697
|
+
var TagResourceResponse$ = [3, n0, _TRRa,
|
|
698
|
+
0,
|
|
699
|
+
[],
|
|
700
|
+
[]
|
|
701
|
+
];
|
|
702
|
+
var ThirdPartySourceRepository$ = [3, n0, _TPSR,
|
|
703
|
+
0,
|
|
704
|
+
[_N, _CAo, _O],
|
|
705
|
+
[0, 0, 0], 3
|
|
706
|
+
];
|
|
707
|
+
var UntagResourceRequest$ = [3, n0, _URR,
|
|
708
|
+
0,
|
|
709
|
+
[_rA, _TK],
|
|
710
|
+
[[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
|
|
711
|
+
];
|
|
712
|
+
var UntagResourceResponse$ = [3, n0, _URRn,
|
|
713
|
+
0,
|
|
714
|
+
[],
|
|
715
|
+
[]
|
|
716
|
+
];
|
|
717
|
+
var CodeReviewSummaries = [1, n0, _CRSo,
|
|
718
|
+
0, () => CodeReviewSummary$
|
|
719
|
+
];
|
|
720
|
+
var RecommendationFeedbackSummaries = [1, n0, _RFS,
|
|
721
|
+
0, () => RecommendationFeedbackSummary$
|
|
722
|
+
];
|
|
723
|
+
var RecommendationSummaries = [1, n0, _RS,
|
|
724
|
+
0, () => RecommendationSummary$
|
|
725
|
+
];
|
|
726
|
+
var RepositoryAssociationSummaries = [1, n0, _RAS,
|
|
727
|
+
0, () => RepositoryAssociationSummary$
|
|
728
|
+
];
|
|
729
|
+
var AssociateRepository$ = [9, n0, _AR,
|
|
730
|
+
{ [_h]: ["POST", "/associations", 200] }, () => AssociateRepositoryRequest$, () => AssociateRepositoryResponse$
|
|
731
|
+
];
|
|
732
|
+
var CreateCodeReview$ = [9, n0, _CCRr,
|
|
733
|
+
{ [_h]: ["POST", "/codereviews", 200] }, () => CreateCodeReviewRequest$, () => CreateCodeReviewResponse$
|
|
734
|
+
];
|
|
735
|
+
var DescribeCodeReview$ = [9, n0, _DCR,
|
|
736
|
+
{ [_h]: ["GET", "/codereviews/{CodeReviewArn}", 200] }, () => DescribeCodeReviewRequest$, () => DescribeCodeReviewResponse$
|
|
737
|
+
];
|
|
738
|
+
var DescribeRecommendationFeedback$ = [9, n0, _DRF,
|
|
739
|
+
{ [_h]: ["GET", "/feedback/{CodeReviewArn}", 200] }, () => DescribeRecommendationFeedbackRequest$, () => DescribeRecommendationFeedbackResponse$
|
|
740
|
+
];
|
|
741
|
+
var DescribeRepositoryAssociation$ = [9, n0, _DRA,
|
|
742
|
+
{ [_h]: ["GET", "/associations/{AssociationArn}", 200] }, () => DescribeRepositoryAssociationRequest$, () => DescribeRepositoryAssociationResponse$
|
|
743
|
+
];
|
|
744
|
+
var DisassociateRepository$ = [9, n0, _DR,
|
|
745
|
+
{ [_h]: ["DELETE", "/associations/{AssociationArn}", 200] }, () => DisassociateRepositoryRequest$, () => DisassociateRepositoryResponse$
|
|
746
|
+
];
|
|
747
|
+
var ListCodeReviews$ = [9, n0, _LCR,
|
|
748
|
+
{ [_h]: ["GET", "/codereviews", 200] }, () => ListCodeReviewsRequest$, () => ListCodeReviewsResponse$
|
|
749
|
+
];
|
|
750
|
+
var ListRecommendationFeedback$ = [9, n0, _LRF,
|
|
751
|
+
{ [_h]: ["GET", "/feedback/{CodeReviewArn}/RecommendationFeedback", 200] }, () => ListRecommendationFeedbackRequest$, () => ListRecommendationFeedbackResponse$
|
|
752
|
+
];
|
|
753
|
+
var ListRecommendations$ = [9, n0, _LR,
|
|
754
|
+
{ [_h]: ["GET", "/codereviews/{CodeReviewArn}/Recommendations", 200] }, () => ListRecommendationsRequest$, () => ListRecommendationsResponse$
|
|
755
|
+
];
|
|
756
|
+
var ListRepositoryAssociations$ = [9, n0, _LRA,
|
|
757
|
+
{ [_h]: ["GET", "/associations", 200] }, () => ListRepositoryAssociationsRequest$, () => ListRepositoryAssociationsResponse$
|
|
758
|
+
];
|
|
759
|
+
var ListTagsForResource$ = [9, n0, _LTFR,
|
|
760
|
+
{ [_h]: ["GET", "/tags/{resourceArn}", 200] }, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
|
|
761
|
+
];
|
|
762
|
+
var PutRecommendationFeedback$ = [9, n0, _PRF,
|
|
763
|
+
{ [_h]: ["PUT", "/feedback", 200] }, () => PutRecommendationFeedbackRequest$, () => PutRecommendationFeedbackResponse$
|
|
764
|
+
];
|
|
765
|
+
var TagResource$ = [9, n0, _TR,
|
|
766
|
+
{ [_h]: ["POST", "/tags/{resourceArn}", 200] }, () => TagResourceRequest$, () => TagResourceResponse$
|
|
767
|
+
];
|
|
768
|
+
var UntagResource$ = [9, n0, _UR,
|
|
769
|
+
{ [_h]: ["DELETE", "/tags/{resourceArn}", 200] }, () => UntagResourceRequest$, () => UntagResourceResponse$
|
|
770
|
+
];
|
|
771
|
+
|
|
772
|
+
const getRuntimeConfig$1 = (config) => {
|
|
773
|
+
return {
|
|
774
|
+
apiVersion: "2019-09-19",
|
|
775
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
776
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
777
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
778
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
779
|
+
extensions: config?.extensions ?? [],
|
|
780
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultCodeGuruReviewerHttpAuthSchemeProvider,
|
|
781
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
782
|
+
{
|
|
783
|
+
schemeId: "aws.auth#sigv4",
|
|
784
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
785
|
+
signer: new AwsSdkSigV4Signer(),
|
|
786
|
+
},
|
|
787
|
+
],
|
|
788
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
789
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
790
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
791
|
+
defaultNamespace: "com.amazonaws.codegurureviewer",
|
|
792
|
+
errorTypeRegistries,
|
|
793
|
+
version: "2019-09-19",
|
|
794
|
+
serviceTarget: "AWSGuruFrontendService",
|
|
795
|
+
},
|
|
796
|
+
serviceId: config?.serviceId ?? "CodeGuru Reviewer",
|
|
797
|
+
sha256: config?.sha256 ?? Sha256,
|
|
798
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
799
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
800
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
801
|
+
};
|
|
802
|
+
};
|
|
803
|
+
|
|
804
|
+
const getRuntimeConfig = (config) => {
|
|
805
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
806
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
807
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
808
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
809
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
810
|
+
const loaderConfig = {
|
|
811
|
+
profile: config?.profile,
|
|
812
|
+
logger: clientSharedValues.logger,
|
|
813
|
+
};
|
|
814
|
+
return {
|
|
815
|
+
...clientSharedValues,
|
|
816
|
+
...config,
|
|
817
|
+
runtime: "node",
|
|
818
|
+
defaultsMode,
|
|
819
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
820
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
821
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
|
|
822
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
823
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
824
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
825
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
826
|
+
retryMode: config?.retryMode ??
|
|
827
|
+
loadConfig({
|
|
828
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
829
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
830
|
+
}, config),
|
|
831
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
832
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
833
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
834
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
835
|
+
};
|
|
836
|
+
};
|
|
837
|
+
|
|
34
838
|
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
839
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
840
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
@@ -480,33 +1284,118 @@ const Severity = {
|
|
|
480
1284
|
MEDIUM: "Medium",
|
|
481
1285
|
};
|
|
482
1286
|
|
|
1287
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
1288
|
+
exports.AccessDeniedException$ = AccessDeniedException$;
|
|
483
1289
|
exports.AnalysisType = AnalysisType;
|
|
1290
|
+
exports.AssociateRepository$ = AssociateRepository$;
|
|
484
1291
|
exports.AssociateRepositoryCommand = AssociateRepositoryCommand;
|
|
1292
|
+
exports.AssociateRepositoryRequest$ = AssociateRepositoryRequest$;
|
|
1293
|
+
exports.AssociateRepositoryResponse$ = AssociateRepositoryResponse$;
|
|
1294
|
+
exports.BranchDiffSourceCodeType$ = BranchDiffSourceCodeType$;
|
|
1295
|
+
exports.CodeArtifacts$ = CodeArtifacts$;
|
|
1296
|
+
exports.CodeCommitRepository$ = CodeCommitRepository$;
|
|
485
1297
|
exports.CodeGuruReviewer = CodeGuruReviewer;
|
|
486
1298
|
exports.CodeGuruReviewerClient = CodeGuruReviewerClient;
|
|
1299
|
+
exports.CodeGuruReviewerServiceException = CodeGuruReviewerServiceException;
|
|
1300
|
+
exports.CodeGuruReviewerServiceException$ = CodeGuruReviewerServiceException$;
|
|
1301
|
+
exports.CodeReview$ = CodeReview$;
|
|
1302
|
+
exports.CodeReviewSummary$ = CodeReviewSummary$;
|
|
1303
|
+
exports.CodeReviewType$ = CodeReviewType$;
|
|
1304
|
+
exports.CommitDiffSourceCodeType$ = CommitDiffSourceCodeType$;
|
|
487
1305
|
exports.ConfigFileState = ConfigFileState;
|
|
1306
|
+
exports.ConflictException = ConflictException;
|
|
1307
|
+
exports.ConflictException$ = ConflictException$;
|
|
1308
|
+
exports.CreateCodeReview$ = CreateCodeReview$;
|
|
488
1309
|
exports.CreateCodeReviewCommand = CreateCodeReviewCommand;
|
|
1310
|
+
exports.CreateCodeReviewRequest$ = CreateCodeReviewRequest$;
|
|
1311
|
+
exports.CreateCodeReviewResponse$ = CreateCodeReviewResponse$;
|
|
1312
|
+
exports.DescribeCodeReview$ = DescribeCodeReview$;
|
|
489
1313
|
exports.DescribeCodeReviewCommand = DescribeCodeReviewCommand;
|
|
1314
|
+
exports.DescribeCodeReviewRequest$ = DescribeCodeReviewRequest$;
|
|
1315
|
+
exports.DescribeCodeReviewResponse$ = DescribeCodeReviewResponse$;
|
|
1316
|
+
exports.DescribeRecommendationFeedback$ = DescribeRecommendationFeedback$;
|
|
490
1317
|
exports.DescribeRecommendationFeedbackCommand = DescribeRecommendationFeedbackCommand;
|
|
1318
|
+
exports.DescribeRecommendationFeedbackRequest$ = DescribeRecommendationFeedbackRequest$;
|
|
1319
|
+
exports.DescribeRecommendationFeedbackResponse$ = DescribeRecommendationFeedbackResponse$;
|
|
1320
|
+
exports.DescribeRepositoryAssociation$ = DescribeRepositoryAssociation$;
|
|
491
1321
|
exports.DescribeRepositoryAssociationCommand = DescribeRepositoryAssociationCommand;
|
|
1322
|
+
exports.DescribeRepositoryAssociationRequest$ = DescribeRepositoryAssociationRequest$;
|
|
1323
|
+
exports.DescribeRepositoryAssociationResponse$ = DescribeRepositoryAssociationResponse$;
|
|
1324
|
+
exports.DisassociateRepository$ = DisassociateRepository$;
|
|
492
1325
|
exports.DisassociateRepositoryCommand = DisassociateRepositoryCommand;
|
|
1326
|
+
exports.DisassociateRepositoryRequest$ = DisassociateRepositoryRequest$;
|
|
1327
|
+
exports.DisassociateRepositoryResponse$ = DisassociateRepositoryResponse$;
|
|
493
1328
|
exports.EncryptionOption = EncryptionOption;
|
|
1329
|
+
exports.EventInfo$ = EventInfo$;
|
|
1330
|
+
exports.InternalServerException = InternalServerException;
|
|
1331
|
+
exports.InternalServerException$ = InternalServerException$;
|
|
494
1332
|
exports.JobState = JobState;
|
|
1333
|
+
exports.KMSKeyDetails$ = KMSKeyDetails$;
|
|
1334
|
+
exports.ListCodeReviews$ = ListCodeReviews$;
|
|
495
1335
|
exports.ListCodeReviewsCommand = ListCodeReviewsCommand;
|
|
1336
|
+
exports.ListCodeReviewsRequest$ = ListCodeReviewsRequest$;
|
|
1337
|
+
exports.ListCodeReviewsResponse$ = ListCodeReviewsResponse$;
|
|
1338
|
+
exports.ListRecommendationFeedback$ = ListRecommendationFeedback$;
|
|
496
1339
|
exports.ListRecommendationFeedbackCommand = ListRecommendationFeedbackCommand;
|
|
1340
|
+
exports.ListRecommendationFeedbackRequest$ = ListRecommendationFeedbackRequest$;
|
|
1341
|
+
exports.ListRecommendationFeedbackResponse$ = ListRecommendationFeedbackResponse$;
|
|
1342
|
+
exports.ListRecommendations$ = ListRecommendations$;
|
|
497
1343
|
exports.ListRecommendationsCommand = ListRecommendationsCommand;
|
|
1344
|
+
exports.ListRecommendationsRequest$ = ListRecommendationsRequest$;
|
|
1345
|
+
exports.ListRecommendationsResponse$ = ListRecommendationsResponse$;
|
|
1346
|
+
exports.ListRepositoryAssociations$ = ListRepositoryAssociations$;
|
|
498
1347
|
exports.ListRepositoryAssociationsCommand = ListRepositoryAssociationsCommand;
|
|
1348
|
+
exports.ListRepositoryAssociationsRequest$ = ListRepositoryAssociationsRequest$;
|
|
1349
|
+
exports.ListRepositoryAssociationsResponse$ = ListRepositoryAssociationsResponse$;
|
|
1350
|
+
exports.ListTagsForResource$ = ListTagsForResource$;
|
|
499
1351
|
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
1352
|
+
exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
|
|
1353
|
+
exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
|
|
1354
|
+
exports.Metrics$ = Metrics$;
|
|
1355
|
+
exports.MetricsSummary$ = MetricsSummary$;
|
|
1356
|
+
exports.NotFoundException = NotFoundException;
|
|
1357
|
+
exports.NotFoundException$ = NotFoundException$;
|
|
500
1358
|
exports.ProviderType = ProviderType;
|
|
1359
|
+
exports.PutRecommendationFeedback$ = PutRecommendationFeedback$;
|
|
501
1360
|
exports.PutRecommendationFeedbackCommand = PutRecommendationFeedbackCommand;
|
|
1361
|
+
exports.PutRecommendationFeedbackRequest$ = PutRecommendationFeedbackRequest$;
|
|
1362
|
+
exports.PutRecommendationFeedbackResponse$ = PutRecommendationFeedbackResponse$;
|
|
502
1363
|
exports.Reaction = Reaction;
|
|
503
1364
|
exports.RecommendationCategory = RecommendationCategory;
|
|
1365
|
+
exports.RecommendationFeedback$ = RecommendationFeedback$;
|
|
1366
|
+
exports.RecommendationFeedbackSummary$ = RecommendationFeedbackSummary$;
|
|
1367
|
+
exports.RecommendationSummary$ = RecommendationSummary$;
|
|
1368
|
+
exports.Repository$ = Repository$;
|
|
1369
|
+
exports.RepositoryAnalysis$ = RepositoryAnalysis$;
|
|
1370
|
+
exports.RepositoryAssociation$ = RepositoryAssociation$;
|
|
504
1371
|
exports.RepositoryAssociationState = RepositoryAssociationState;
|
|
1372
|
+
exports.RepositoryAssociationSummary$ = RepositoryAssociationSummary$;
|
|
1373
|
+
exports.RepositoryHeadSourceCodeType$ = RepositoryHeadSourceCodeType$;
|
|
1374
|
+
exports.RequestMetadata$ = RequestMetadata$;
|
|
1375
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
1376
|
+
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
1377
|
+
exports.RuleMetadata$ = RuleMetadata$;
|
|
1378
|
+
exports.S3BucketRepository$ = S3BucketRepository$;
|
|
1379
|
+
exports.S3Repository$ = S3Repository$;
|
|
1380
|
+
exports.S3RepositoryDetails$ = S3RepositoryDetails$;
|
|
505
1381
|
exports.Severity = Severity;
|
|
1382
|
+
exports.SourceCodeType$ = SourceCodeType$;
|
|
1383
|
+
exports.TagResource$ = TagResource$;
|
|
506
1384
|
exports.TagResourceCommand = TagResourceCommand;
|
|
1385
|
+
exports.TagResourceRequest$ = TagResourceRequest$;
|
|
1386
|
+
exports.TagResourceResponse$ = TagResourceResponse$;
|
|
1387
|
+
exports.ThirdPartySourceRepository$ = ThirdPartySourceRepository$;
|
|
1388
|
+
exports.ThrottlingException = ThrottlingException;
|
|
1389
|
+
exports.ThrottlingException$ = ThrottlingException$;
|
|
507
1390
|
exports.Type = Type;
|
|
1391
|
+
exports.UntagResource$ = UntagResource$;
|
|
508
1392
|
exports.UntagResourceCommand = UntagResourceCommand;
|
|
1393
|
+
exports.UntagResourceRequest$ = UntagResourceRequest$;
|
|
1394
|
+
exports.UntagResourceResponse$ = UntagResourceResponse$;
|
|
1395
|
+
exports.ValidationException = ValidationException;
|
|
1396
|
+
exports.ValidationException$ = ValidationException$;
|
|
509
1397
|
exports.VendorName = VendorName;
|
|
1398
|
+
exports.errorTypeRegistries = errorTypeRegistries;
|
|
510
1399
|
exports.paginateListCodeReviews = paginateListCodeReviews;
|
|
511
1400
|
exports.paginateListRecommendationFeedback = paginateListRecommendationFeedback;
|
|
512
1401
|
exports.paginateListRecommendations = paginateListRecommendations;
|