@aws-sdk/client-codeguru-reviewer 3.428.0 → 3.429.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.
@@ -64,7 +64,7 @@ export interface KMSKeyDetails {
64
64
  * Management Service (KMS) (<code>AWS_OWNED_CMK</code>) or customer managed
65
65
  * (<code>CUSTOMER_MANAGED_CMK</code>).</p>
66
66
  */
67
- EncryptionOption?: EncryptionOption | string;
67
+ EncryptionOption?: EncryptionOption;
68
68
  }
69
69
  /**
70
70
  * @public
@@ -316,7 +316,7 @@ export interface RepositoryAssociation {
316
316
  * @public
317
317
  * <p>The provider type of the repository association.</p>
318
318
  */
319
- ProviderType?: ProviderType | string;
319
+ ProviderType?: ProviderType;
320
320
  /**
321
321
  * @public
322
322
  * <p>The state of the repository association.</p>
@@ -356,7 +356,7 @@ export interface RepositoryAssociation {
356
356
  * </li>
357
357
  * </ul>
358
358
  */
359
- State?: RepositoryAssociationState | string;
359
+ State?: RepositoryAssociationState;
360
360
  /**
361
361
  * @public
362
362
  * <p>A description of why the repository association is in the current state.</p>
@@ -600,7 +600,7 @@ export interface RequestMetadata {
600
600
  * <code>ProviderType</code> is <code>S3Bucket</code> and the CI/CD repository vendor name
601
601
  * is GitHub. For more information, see the definition for <code>ProviderType</code> in <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html">RepositoryAssociation</a>.</p>
602
602
  */
603
- VendorName?: VendorName | string;
603
+ VendorName?: VendorName;
604
604
  }
605
605
  /**
606
606
  * @public
@@ -706,7 +706,7 @@ export interface CodeReviewType {
706
706
  * <p>They types of analysis performed during a repository analysis or a pull request review.
707
707
  * You can specify either <code>Security</code>, <code>CodeQuality</code>, or both.</p>
708
708
  */
709
- AnalysisTypes?: (AnalysisType | string)[];
709
+ AnalysisTypes?: AnalysisType[];
710
710
  }
711
711
  /**
712
712
  * @public
@@ -840,7 +840,7 @@ export interface CodeReview {
840
840
  * <p>The type of repository that contains the reviewed code (for example, GitHub or
841
841
  * Bitbucket).</p>
842
842
  */
843
- ProviderType?: ProviderType | string;
843
+ ProviderType?: ProviderType;
844
844
  /**
845
845
  * @public
846
846
  * <p>The valid code review states are:</p>
@@ -863,7 +863,7 @@ export interface CodeReview {
863
863
  * </li>
864
864
  * </ul>
865
865
  */
866
- State?: JobState | string;
866
+ State?: JobState;
867
867
  /**
868
868
  * @public
869
869
  * <p>The reason for the state of the code review.</p>
@@ -883,7 +883,7 @@ export interface CodeReview {
883
883
  * @public
884
884
  * <p>The type of code review.</p>
885
885
  */
886
- Type?: Type | string;
886
+ Type?: Type;
887
887
  /**
888
888
  * @public
889
889
  * <p>The pull request ID for the code review.</p>
@@ -910,14 +910,14 @@ export interface CodeReview {
910
910
  * <p>The types of analysis performed during a repository analysis or a pull request review.
911
911
  * You can specify either <code>Security</code>, <code>CodeQuality</code>, or both.</p>
912
912
  */
913
- AnalysisTypes?: (AnalysisType | string)[];
913
+ AnalysisTypes?: AnalysisType[];
914
914
  /**
915
915
  * @public
916
916
  * <p>The state of the <code>aws-codeguru-reviewer.yml</code> configuration file that allows
917
917
  * the configuration of the CodeGuru Reviewer analysis. The file either exists, doesn't exist, or exists
918
918
  * with errors at the root directory of your repository.</p>
919
919
  */
920
- ConfigFileState?: ConfigFileState | string;
920
+ ConfigFileState?: ConfigFileState;
921
921
  }
922
922
  /**
923
923
  * @public
@@ -1025,7 +1025,7 @@ export interface RecommendationFeedback {
1025
1025
  * <p>List for storing reactions. Reactions are utf-8 text code for emojis. You can send an
1026
1026
  * empty list to clear off all your feedback.</p>
1027
1027
  */
1028
- Reactions?: (Reaction | string)[];
1028
+ Reactions?: Reaction[];
1029
1029
  /**
1030
1030
  * @public
1031
1031
  * <p>The ID of the user that made the API call.</p>
@@ -1155,7 +1155,7 @@ export interface ListCodeReviewsRequest {
1155
1155
  * result. For example, <code>providerTypes=[GitHub]</code> lists code reviews from
1156
1156
  * GitHub.</p>
1157
1157
  */
1158
- ProviderTypes?: (ProviderType | string)[];
1158
+ ProviderTypes?: ProviderType[];
1159
1159
  /**
1160
1160
  * @public
1161
1161
  * <p>List of states for filtering that needs to be applied before displaying the result. For
@@ -1180,7 +1180,7 @@ export interface ListCodeReviewsRequest {
1180
1180
  * </li>
1181
1181
  * </ul>
1182
1182
  */
1183
- States?: (JobState | string)[];
1183
+ States?: JobState[];
1184
1184
  /**
1185
1185
  * @public
1186
1186
  * <p>List of repository names for filtering that needs to be applied before displaying the
@@ -1191,7 +1191,7 @@ export interface ListCodeReviewsRequest {
1191
1191
  * @public
1192
1192
  * <p>The type of code reviews to list in the response.</p>
1193
1193
  */
1194
- Type: Type | string | undefined;
1194
+ Type: Type | undefined;
1195
1195
  /**
1196
1196
  * @public
1197
1197
  * <p>The maximum number of results that are returned per call. The default is 100.</p>
@@ -1281,7 +1281,7 @@ export interface CodeReviewSummary {
1281
1281
  * @public
1282
1282
  * <p>The provider type of the repository association.</p>
1283
1283
  */
1284
- ProviderType?: ProviderType | string;
1284
+ ProviderType?: ProviderType;
1285
1285
  /**
1286
1286
  * @public
1287
1287
  * <p>The state of the code review.</p>
@@ -1305,7 +1305,7 @@ export interface CodeReviewSummary {
1305
1305
  * </li>
1306
1306
  * </ul>
1307
1307
  */
1308
- State?: JobState | string;
1308
+ State?: JobState;
1309
1309
  /**
1310
1310
  * @public
1311
1311
  * <p>The time, in milliseconds since the epoch, when the code review was created.</p>
@@ -1320,7 +1320,7 @@ export interface CodeReviewSummary {
1320
1320
  * @public
1321
1321
  * <p>The type of the code review.</p>
1322
1322
  */
1323
- Type?: Type | string;
1323
+ Type?: Type;
1324
1324
  /**
1325
1325
  * @public
1326
1326
  * <p>The pull request ID for the code review.</p>
@@ -1406,7 +1406,7 @@ export interface RecommendationFeedbackSummary {
1406
1406
  * @public
1407
1407
  * <p>List for storing reactions. Reactions are utf-8 text code for emojis.</p>
1408
1408
  */
1409
- Reactions?: (Reaction | string)[];
1409
+ Reactions?: Reaction[];
1410
1410
  /**
1411
1411
  * @public
1412
1412
  * <p>The ID of the user that gave the feedback.</p>
@@ -1561,7 +1561,7 @@ export interface RecommendationSummary {
1561
1561
  * @public
1562
1562
  * <p>The type of a recommendation.</p>
1563
1563
  */
1564
- RecommendationCategory?: RecommendationCategory | string;
1564
+ RecommendationCategory?: RecommendationCategory;
1565
1565
  /**
1566
1566
  * @public
1567
1567
  * <p>Metadata about a rule. Rule metadata includes an ID, a name, a list of tags, and a short and long description. CodeGuru Reviewer uses rules to analyze code. A rule's recommendation is included in analysis results if code is detected that violates the rule.</p>
@@ -1571,7 +1571,7 @@ export interface RecommendationSummary {
1571
1571
  * @public
1572
1572
  * <p>The severity of the issue in the code that generated this recommendation.</p>
1573
1573
  */
1574
- Severity?: Severity | string;
1574
+ Severity?: Severity;
1575
1575
  }
1576
1576
  /**
1577
1577
  * @public
@@ -1596,7 +1596,7 @@ export interface ListRepositoryAssociationsRequest {
1596
1596
  * @public
1597
1597
  * <p>List of provider types to use as a filter.</p>
1598
1598
  */
1599
- ProviderTypes?: (ProviderType | string)[];
1599
+ ProviderTypes?: ProviderType[];
1600
1600
  /**
1601
1601
  * @public
1602
1602
  * <p>List of repository association states to use as a filter.</p>
@@ -1636,7 +1636,7 @@ export interface ListRepositoryAssociationsRequest {
1636
1636
  * </li>
1637
1637
  * </ul>
1638
1638
  */
1639
- States?: (RepositoryAssociationState | string)[];
1639
+ States?: RepositoryAssociationState[];
1640
1640
  /**
1641
1641
  * @public
1642
1642
  * <p>List of repository names to use as a filter.</p>
@@ -1718,7 +1718,7 @@ export interface RepositoryAssociationSummary {
1718
1718
  * @public
1719
1719
  * <p>The provider type of the repository association.</p>
1720
1720
  */
1721
- ProviderType?: ProviderType | string;
1721
+ ProviderType?: ProviderType;
1722
1722
  /**
1723
1723
  * @public
1724
1724
  * <p>The state of the repository association.</p>
@@ -1758,7 +1758,7 @@ export interface RepositoryAssociationSummary {
1758
1758
  * </li>
1759
1759
  * </ul>
1760
1760
  */
1761
- State?: RepositoryAssociationState | string;
1761
+ State?: RepositoryAssociationState;
1762
1762
  }
1763
1763
  /**
1764
1764
  * @public
@@ -1832,7 +1832,7 @@ export interface PutRecommendationFeedbackRequest {
1832
1832
  * <p>List for storing reactions. Reactions are utf-8 text code for emojis. If you send an
1833
1833
  * empty list it clears all your feedback.</p>
1834
1834
  */
1835
- Reactions: (Reaction | string)[] | undefined;
1835
+ Reactions: Reaction[] | undefined;
1836
1836
  }
1837
1837
  /**
1838
1838
  * @public
@@ -21,7 +21,7 @@ export type EncryptionOption =
21
21
  (typeof EncryptionOption)[keyof typeof EncryptionOption];
22
22
  export interface KMSKeyDetails {
23
23
  KMSKeyId?: string;
24
- EncryptionOption?: EncryptionOption | string;
24
+ EncryptionOption?: EncryptionOption;
25
25
  }
26
26
  export interface ThirdPartySourceRepository {
27
27
  Name: string | undefined;
@@ -78,8 +78,8 @@ export interface RepositoryAssociation {
78
78
  ConnectionArn?: string;
79
79
  Name?: string;
80
80
  Owner?: string;
81
- ProviderType?: ProviderType | string;
82
- State?: RepositoryAssociationState | string;
81
+ ProviderType?: ProviderType;
82
+ State?: RepositoryAssociationState;
83
83
  StateReason?: string;
84
84
  LastUpdatedTimeStamp?: Date;
85
85
  CreatedTimeStamp?: Date;
@@ -146,7 +146,7 @@ export interface RequestMetadata {
146
146
  RequestId?: string;
147
147
  Requester?: string;
148
148
  EventInfo?: EventInfo;
149
- VendorName?: VendorName | string;
149
+ VendorName?: VendorName;
150
150
  }
151
151
  export interface S3BucketRepository {
152
152
  Name: string | undefined;
@@ -165,7 +165,7 @@ export interface RepositoryAnalysis {
165
165
  }
166
166
  export interface CodeReviewType {
167
167
  RepositoryAnalysis: RepositoryAnalysis | undefined;
168
- AnalysisTypes?: (AnalysisType | string)[];
168
+ AnalysisTypes?: AnalysisType[];
169
169
  }
170
170
  export interface CreateCodeReviewRequest {
171
171
  Name: string | undefined;
@@ -202,18 +202,18 @@ export interface CodeReview {
202
202
  CodeReviewArn?: string;
203
203
  RepositoryName?: string;
204
204
  Owner?: string;
205
- ProviderType?: ProviderType | string;
206
- State?: JobState | string;
205
+ ProviderType?: ProviderType;
206
+ State?: JobState;
207
207
  StateReason?: string;
208
208
  CreatedTimeStamp?: Date;
209
209
  LastUpdatedTimeStamp?: Date;
210
- Type?: Type | string;
210
+ Type?: Type;
211
211
  PullRequestId?: string;
212
212
  SourceCodeType?: SourceCodeType;
213
213
  AssociationArn?: string;
214
214
  Metrics?: Metrics;
215
- AnalysisTypes?: (AnalysisType | string)[];
216
- ConfigFileState?: ConfigFileState | string;
215
+ AnalysisTypes?: AnalysisType[];
216
+ ConfigFileState?: ConfigFileState;
217
217
  }
218
218
  export interface CreateCodeReviewResponse {
219
219
  CodeReview?: CodeReview;
@@ -245,7 +245,7 @@ export type Reaction = (typeof Reaction)[keyof typeof Reaction];
245
245
  export interface RecommendationFeedback {
246
246
  CodeReviewArn?: string;
247
247
  RecommendationId?: string;
248
- Reactions?: (Reaction | string)[];
248
+ Reactions?: Reaction[];
249
249
  UserId?: string;
250
250
  CreatedTimeStamp?: Date;
251
251
  LastUpdatedTimeStamp?: Date;
@@ -274,10 +274,10 @@ export interface DisassociateRepositoryResponse {
274
274
  Tags?: Record<string, string>;
275
275
  }
276
276
  export interface ListCodeReviewsRequest {
277
- ProviderTypes?: (ProviderType | string)[];
278
- States?: (JobState | string)[];
277
+ ProviderTypes?: ProviderType[];
278
+ States?: JobState[];
279
279
  RepositoryNames?: string[];
280
- Type: Type | string | undefined;
280
+ Type: Type | undefined;
281
281
  MaxResults?: number;
282
282
  NextToken?: string;
283
283
  }
@@ -291,11 +291,11 @@ export interface CodeReviewSummary {
291
291
  CodeReviewArn?: string;
292
292
  RepositoryName?: string;
293
293
  Owner?: string;
294
- ProviderType?: ProviderType | string;
295
- State?: JobState | string;
294
+ ProviderType?: ProviderType;
295
+ State?: JobState;
296
296
  CreatedTimeStamp?: Date;
297
297
  LastUpdatedTimeStamp?: Date;
298
- Type?: Type | string;
298
+ Type?: Type;
299
299
  PullRequestId?: string;
300
300
  MetricsSummary?: MetricsSummary;
301
301
  SourceCodeType?: SourceCodeType;
@@ -313,7 +313,7 @@ export interface ListRecommendationFeedbackRequest {
313
313
  }
314
314
  export interface RecommendationFeedbackSummary {
315
315
  RecommendationId?: string;
316
- Reactions?: (Reaction | string)[];
316
+ Reactions?: Reaction[];
317
317
  UserId?: string;
318
318
  }
319
319
  export interface ListRecommendationFeedbackResponse {
@@ -361,17 +361,17 @@ export interface RecommendationSummary {
361
361
  StartLine?: number;
362
362
  EndLine?: number;
363
363
  Description?: string;
364
- RecommendationCategory?: RecommendationCategory | string;
364
+ RecommendationCategory?: RecommendationCategory;
365
365
  RuleMetadata?: RuleMetadata;
366
- Severity?: Severity | string;
366
+ Severity?: Severity;
367
367
  }
368
368
  export interface ListRecommendationsResponse {
369
369
  RecommendationSummaries?: RecommendationSummary[];
370
370
  NextToken?: string;
371
371
  }
372
372
  export interface ListRepositoryAssociationsRequest {
373
- ProviderTypes?: (ProviderType | string)[];
374
- States?: (RepositoryAssociationState | string)[];
373
+ ProviderTypes?: ProviderType[];
374
+ States?: RepositoryAssociationState[];
375
375
  Names?: string[];
376
376
  Owners?: string[];
377
377
  MaxResults?: number;
@@ -384,8 +384,8 @@ export interface RepositoryAssociationSummary {
384
384
  AssociationId?: string;
385
385
  Name?: string;
386
386
  Owner?: string;
387
- ProviderType?: ProviderType | string;
388
- State?: RepositoryAssociationState | string;
387
+ ProviderType?: ProviderType;
388
+ State?: RepositoryAssociationState;
389
389
  }
390
390
  export interface ListRepositoryAssociationsResponse {
391
391
  RepositoryAssociationSummaries?: RepositoryAssociationSummary[];
@@ -400,7 +400,7 @@ export interface ListTagsForResourceResponse {
400
400
  export interface PutRecommendationFeedbackRequest {
401
401
  CodeReviewArn: string | undefined;
402
402
  RecommendationId: string | undefined;
403
- Reactions: (Reaction | string)[] | undefined;
403
+ Reactions: Reaction[] | undefined;
404
404
  }
405
405
  export interface PutRecommendationFeedbackResponse {}
406
406
  export interface TagResourceRequest {
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.428.0",
4
+ "version": "3.429.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.428.0",
25
- "@aws-sdk/credential-provider-node": "3.428.0",
26
- "@aws-sdk/middleware-host-header": "3.428.0",
24
+ "@aws-sdk/client-sts": "3.429.0",
25
+ "@aws-sdk/credential-provider-node": "3.429.0",
26
+ "@aws-sdk/middleware-host-header": "3.429.0",
27
27
  "@aws-sdk/middleware-logger": "3.428.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.428.0",
29
29
  "@aws-sdk/middleware-signing": "3.428.0",
@@ -38,7 +38,7 @@
38
38
  "@smithy/hash-node": "^2.0.11",
39
39
  "@smithy/invalid-dependency": "^2.0.11",
40
40
  "@smithy/middleware-content-length": "^2.0.13",
41
- "@smithy/middleware-endpoint": "^2.1.0",
41
+ "@smithy/middleware-endpoint": "^2.1.1",
42
42
  "@smithy/middleware-retry": "^2.0.16",
43
43
  "@smithy/middleware-serde": "^2.0.11",
44
44
  "@smithy/middleware-stack": "^2.0.5",