@aws-sdk/client-codecommit 3.686.0 → 3.691.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.
@@ -17,14 +17,14 @@ import {
17
17
  RepositoryTrigger,
18
18
  } from "./models_0";
19
19
  export interface FileVersion {
20
- commit?: Commit;
21
- blobId?: string;
22
- path?: string;
23
- revisionChildren?: string[];
20
+ commit?: Commit | undefined;
21
+ blobId?: string | undefined;
22
+ path?: string | undefined;
23
+ revisionChildren?: string[] | undefined;
24
24
  }
25
25
  export interface ListFileCommitHistoryResponse {
26
26
  revisionDag: FileVersion[] | undefined;
27
- nextToken?: string;
27
+ nextToken?: string | undefined;
28
28
  }
29
29
  export declare class InvalidAuthorArnException extends __BaseException {
30
30
  readonly name: "InvalidAuthorArnException";
@@ -45,14 +45,14 @@ export declare class InvalidPullRequestStatusException extends __BaseException {
45
45
  }
46
46
  export interface ListPullRequestsInput {
47
47
  repositoryName: string | undefined;
48
- authorArn?: string;
49
- pullRequestStatus?: PullRequestStatusEnum;
50
- nextToken?: string;
51
- maxResults?: number;
48
+ authorArn?: string | undefined;
49
+ pullRequestStatus?: PullRequestStatusEnum | undefined;
50
+ nextToken?: string | undefined;
51
+ maxResults?: number | undefined;
52
52
  }
53
53
  export interface ListPullRequestsOutput {
54
54
  pullRequestIds: string[] | undefined;
55
- nextToken?: string;
55
+ nextToken?: string | undefined;
56
56
  }
57
57
  export declare class InvalidOrderException extends __BaseException {
58
58
  readonly name: "InvalidOrderException";
@@ -79,26 +79,26 @@ export declare const SortByEnum: {
79
79
  };
80
80
  export type SortByEnum = (typeof SortByEnum)[keyof typeof SortByEnum];
81
81
  export interface ListRepositoriesInput {
82
- nextToken?: string;
83
- sortBy?: SortByEnum;
84
- order?: OrderEnum;
82
+ nextToken?: string | undefined;
83
+ sortBy?: SortByEnum | undefined;
84
+ order?: OrderEnum | undefined;
85
85
  }
86
86
  export interface RepositoryNameIdPair {
87
- repositoryName?: string;
88
- repositoryId?: string;
87
+ repositoryName?: string | undefined;
88
+ repositoryId?: string | undefined;
89
89
  }
90
90
  export interface ListRepositoriesOutput {
91
- repositories?: RepositoryNameIdPair[];
92
- nextToken?: string;
91
+ repositories?: RepositoryNameIdPair[] | undefined;
92
+ nextToken?: string | undefined;
93
93
  }
94
94
  export interface ListRepositoriesForApprovalRuleTemplateInput {
95
95
  approvalRuleTemplateName: string | undefined;
96
- nextToken?: string;
97
- maxResults?: number;
96
+ nextToken?: string | undefined;
97
+ maxResults?: number | undefined;
98
98
  }
99
99
  export interface ListRepositoriesForApprovalRuleTemplateOutput {
100
- repositoryNames?: string[];
101
- nextToken?: string;
100
+ repositoryNames?: string[] | undefined;
101
+ nextToken?: string | undefined;
102
102
  }
103
103
  export declare class InvalidResourceArnException extends __BaseException {
104
104
  readonly name: "InvalidResourceArnException";
@@ -109,11 +109,11 @@ export declare class InvalidResourceArnException extends __BaseException {
109
109
  }
110
110
  export interface ListTagsForResourceInput {
111
111
  resourceArn: string | undefined;
112
- nextToken?: string;
112
+ nextToken?: string | undefined;
113
113
  }
114
114
  export interface ListTagsForResourceOutput {
115
- tags?: Record<string, string>;
116
- nextToken?: string;
115
+ tags?: Record<string, string> | undefined;
116
+ nextToken?: string | undefined;
117
117
  }
118
118
  export declare class ResourceArnRequiredException extends __BaseException {
119
119
  readonly name: "ResourceArnRequiredException";
@@ -133,53 +133,53 @@ export interface MergeBranchesByFastForwardInput {
133
133
  repositoryName: string | undefined;
134
134
  sourceCommitSpecifier: string | undefined;
135
135
  destinationCommitSpecifier: string | undefined;
136
- targetBranch?: string;
136
+ targetBranch?: string | undefined;
137
137
  }
138
138
  export interface MergeBranchesByFastForwardOutput {
139
- commitId?: string;
140
- treeId?: string;
139
+ commitId?: string | undefined;
140
+ treeId?: string | undefined;
141
141
  }
142
142
  export interface MergeBranchesBySquashInput {
143
143
  repositoryName: string | undefined;
144
144
  sourceCommitSpecifier: string | undefined;
145
145
  destinationCommitSpecifier: string | undefined;
146
- targetBranch?: string;
147
- conflictDetailLevel?: ConflictDetailLevelTypeEnum;
148
- conflictResolutionStrategy?: ConflictResolutionStrategyTypeEnum;
149
- authorName?: string;
150
- email?: string;
151
- commitMessage?: string;
152
- keepEmptyFolders?: boolean;
153
- conflictResolution?: ConflictResolution;
146
+ targetBranch?: string | undefined;
147
+ conflictDetailLevel?: ConflictDetailLevelTypeEnum | undefined;
148
+ conflictResolutionStrategy?: ConflictResolutionStrategyTypeEnum | undefined;
149
+ authorName?: string | undefined;
150
+ email?: string | undefined;
151
+ commitMessage?: string | undefined;
152
+ keepEmptyFolders?: boolean | undefined;
153
+ conflictResolution?: ConflictResolution | undefined;
154
154
  }
155
155
  export interface MergeBranchesBySquashOutput {
156
- commitId?: string;
157
- treeId?: string;
156
+ commitId?: string | undefined;
157
+ treeId?: string | undefined;
158
158
  }
159
159
  export interface MergeBranchesByThreeWayInput {
160
160
  repositoryName: string | undefined;
161
161
  sourceCommitSpecifier: string | undefined;
162
162
  destinationCommitSpecifier: string | undefined;
163
- targetBranch?: string;
164
- conflictDetailLevel?: ConflictDetailLevelTypeEnum;
165
- conflictResolutionStrategy?: ConflictResolutionStrategyTypeEnum;
166
- authorName?: string;
167
- email?: string;
168
- commitMessage?: string;
169
- keepEmptyFolders?: boolean;
170
- conflictResolution?: ConflictResolution;
163
+ targetBranch?: string | undefined;
164
+ conflictDetailLevel?: ConflictDetailLevelTypeEnum | undefined;
165
+ conflictResolutionStrategy?: ConflictResolutionStrategyTypeEnum | undefined;
166
+ authorName?: string | undefined;
167
+ email?: string | undefined;
168
+ commitMessage?: string | undefined;
169
+ keepEmptyFolders?: boolean | undefined;
170
+ conflictResolution?: ConflictResolution | undefined;
171
171
  }
172
172
  export interface MergeBranchesByThreeWayOutput {
173
- commitId?: string;
174
- treeId?: string;
173
+ commitId?: string | undefined;
174
+ treeId?: string | undefined;
175
175
  }
176
176
  export interface MergePullRequestByFastForwardInput {
177
177
  pullRequestId: string | undefined;
178
178
  repositoryName: string | undefined;
179
- sourceCommitId?: string;
179
+ sourceCommitId?: string | undefined;
180
180
  }
181
181
  export interface MergePullRequestByFastForwardOutput {
182
- pullRequest?: PullRequest;
182
+ pullRequest?: PullRequest | undefined;
183
183
  }
184
184
  export declare class PullRequestApprovalRulesNotSatisfiedException extends __BaseException {
185
185
  readonly name: "PullRequestApprovalRulesNotSatisfiedException";
@@ -204,32 +204,32 @@ export declare class TipOfSourceReferenceIsDifferentException extends __BaseExce
204
204
  export interface MergePullRequestBySquashInput {
205
205
  pullRequestId: string | undefined;
206
206
  repositoryName: string | undefined;
207
- sourceCommitId?: string;
208
- conflictDetailLevel?: ConflictDetailLevelTypeEnum;
209
- conflictResolutionStrategy?: ConflictResolutionStrategyTypeEnum;
210
- commitMessage?: string;
211
- authorName?: string;
212
- email?: string;
213
- keepEmptyFolders?: boolean;
214
- conflictResolution?: ConflictResolution;
207
+ sourceCommitId?: string | undefined;
208
+ conflictDetailLevel?: ConflictDetailLevelTypeEnum | undefined;
209
+ conflictResolutionStrategy?: ConflictResolutionStrategyTypeEnum | undefined;
210
+ commitMessage?: string | undefined;
211
+ authorName?: string | undefined;
212
+ email?: string | undefined;
213
+ keepEmptyFolders?: boolean | undefined;
214
+ conflictResolution?: ConflictResolution | undefined;
215
215
  }
216
216
  export interface MergePullRequestBySquashOutput {
217
- pullRequest?: PullRequest;
217
+ pullRequest?: PullRequest | undefined;
218
218
  }
219
219
  export interface MergePullRequestByThreeWayInput {
220
220
  pullRequestId: string | undefined;
221
221
  repositoryName: string | undefined;
222
- sourceCommitId?: string;
223
- conflictDetailLevel?: ConflictDetailLevelTypeEnum;
224
- conflictResolutionStrategy?: ConflictResolutionStrategyTypeEnum;
225
- commitMessage?: string;
226
- authorName?: string;
227
- email?: string;
228
- keepEmptyFolders?: boolean;
229
- conflictResolution?: ConflictResolution;
222
+ sourceCommitId?: string | undefined;
223
+ conflictDetailLevel?: ConflictDetailLevelTypeEnum | undefined;
224
+ conflictResolutionStrategy?: ConflictResolutionStrategyTypeEnum | undefined;
225
+ commitMessage?: string | undefined;
226
+ authorName?: string | undefined;
227
+ email?: string | undefined;
228
+ keepEmptyFolders?: boolean | undefined;
229
+ conflictResolution?: ConflictResolution | undefined;
230
230
  }
231
231
  export interface MergePullRequestByThreeWayOutput {
232
- pullRequest?: PullRequest;
232
+ pullRequest?: PullRequest | undefined;
233
233
  }
234
234
  export declare class InvalidOverrideStatusException extends __BaseException {
235
235
  readonly name: "InvalidOverrideStatusException";
@@ -306,47 +306,47 @@ export declare class InvalidRelativeFileVersionEnumException extends __BaseExcep
306
306
  }
307
307
  export interface PostCommentForComparedCommitInput {
308
308
  repositoryName: string | undefined;
309
- beforeCommitId?: string;
309
+ beforeCommitId?: string | undefined;
310
310
  afterCommitId: string | undefined;
311
- location?: Location;
311
+ location?: Location | undefined;
312
312
  content: string | undefined;
313
- clientRequestToken?: string;
313
+ clientRequestToken?: string | undefined;
314
314
  }
315
315
  export interface PostCommentForComparedCommitOutput {
316
- repositoryName?: string;
317
- beforeCommitId?: string;
318
- afterCommitId?: string;
319
- beforeBlobId?: string;
320
- afterBlobId?: string;
321
- location?: Location;
322
- comment?: Comment;
316
+ repositoryName?: string | undefined;
317
+ beforeCommitId?: string | undefined;
318
+ afterCommitId?: string | undefined;
319
+ beforeBlobId?: string | undefined;
320
+ afterBlobId?: string | undefined;
321
+ location?: Location | undefined;
322
+ comment?: Comment | undefined;
323
323
  }
324
324
  export interface PostCommentForPullRequestInput {
325
325
  pullRequestId: string | undefined;
326
326
  repositoryName: string | undefined;
327
327
  beforeCommitId: string | undefined;
328
328
  afterCommitId: string | undefined;
329
- location?: Location;
329
+ location?: Location | undefined;
330
330
  content: string | undefined;
331
- clientRequestToken?: string;
331
+ clientRequestToken?: string | undefined;
332
332
  }
333
333
  export interface PostCommentForPullRequestOutput {
334
- repositoryName?: string;
335
- pullRequestId?: string;
336
- beforeCommitId?: string;
337
- afterCommitId?: string;
338
- beforeBlobId?: string;
339
- afterBlobId?: string;
340
- location?: Location;
341
- comment?: Comment;
334
+ repositoryName?: string | undefined;
335
+ pullRequestId?: string | undefined;
336
+ beforeCommitId?: string | undefined;
337
+ afterCommitId?: string | undefined;
338
+ beforeBlobId?: string | undefined;
339
+ afterBlobId?: string | undefined;
340
+ location?: Location | undefined;
341
+ comment?: Comment | undefined;
342
342
  }
343
343
  export interface PostCommentReplyInput {
344
344
  inReplyTo: string | undefined;
345
- clientRequestToken?: string;
345
+ clientRequestToken?: string | undefined;
346
346
  content: string | undefined;
347
347
  }
348
348
  export interface PostCommentReplyOutput {
349
- comment?: Comment;
349
+ comment?: Comment | undefined;
350
350
  }
351
351
  export declare class InvalidReactionValueException extends __BaseException {
352
352
  readonly name: "InvalidReactionValueException";
@@ -385,11 +385,11 @@ export interface PutFileInput {
385
385
  branchName: string | undefined;
386
386
  fileContent: Uint8Array | undefined;
387
387
  filePath: string | undefined;
388
- fileMode?: FileModeTypeEnum;
389
- parentCommitId?: string;
390
- commitMessage?: string;
391
- name?: string;
392
- email?: string;
388
+ fileMode?: FileModeTypeEnum | undefined;
389
+ parentCommitId?: string | undefined;
390
+ commitMessage?: string | undefined;
391
+ name?: string | undefined;
392
+ email?: string | undefined;
393
393
  }
394
394
  export interface PutFileOutput {
395
395
  commitId: string | undefined;
@@ -488,7 +488,7 @@ export interface PutRepositoryTriggersInput {
488
488
  triggers: RepositoryTrigger[] | undefined;
489
489
  }
490
490
  export interface PutRepositoryTriggersOutput {
491
- configurationId?: string;
491
+ configurationId?: string | undefined;
492
492
  }
493
493
  export declare class RepositoryTriggerBranchNameListRequiredException extends __BaseException {
494
494
  readonly name: "RepositoryTriggerBranchNameListRequiredException";
@@ -556,12 +556,12 @@ export interface TestRepositoryTriggersInput {
556
556
  triggers: RepositoryTrigger[] | undefined;
557
557
  }
558
558
  export interface RepositoryTriggerExecutionFailure {
559
- trigger?: string;
560
- failureMessage?: string;
559
+ trigger?: string | undefined;
560
+ failureMessage?: string | undefined;
561
561
  }
562
562
  export interface TestRepositoryTriggersOutput {
563
- successfulExecutions?: string[];
564
- failedExecutions?: RepositoryTriggerExecutionFailure[];
563
+ successfulExecutions?: string[] | undefined;
564
+ failedExecutions?: RepositoryTriggerExecutionFailure[] | undefined;
565
565
  }
566
566
  export declare class InvalidTagKeysListException extends __BaseException {
567
567
  readonly name: "InvalidTagKeysListException";
@@ -594,7 +594,7 @@ export declare class InvalidRuleContentSha256Exception extends __BaseException {
594
594
  export interface UpdateApprovalRuleTemplateContentInput {
595
595
  approvalRuleTemplateName: string | undefined;
596
596
  newRuleContent: string | undefined;
597
- existingRuleContentSha256?: string;
597
+ existingRuleContentSha256?: string | undefined;
598
598
  }
599
599
  export interface UpdateApprovalRuleTemplateContentOutput {
600
600
  approvalRuleTemplate: ApprovalRuleTemplate | undefined;
@@ -628,7 +628,7 @@ export interface UpdateCommentInput {
628
628
  content: string | undefined;
629
629
  }
630
630
  export interface UpdateCommentOutput {
631
- comment?: Comment;
631
+ comment?: Comment | undefined;
632
632
  }
633
633
  export interface UpdateDefaultBranchInput {
634
634
  repositoryName: string | undefined;
@@ -637,7 +637,7 @@ export interface UpdateDefaultBranchInput {
637
637
  export interface UpdatePullRequestApprovalRuleContentInput {
638
638
  pullRequestId: string | undefined;
639
639
  approvalRuleName: string | undefined;
640
- existingRuleContentSha256?: string;
640
+ existingRuleContentSha256?: string | undefined;
641
641
  newRuleContent: string | undefined;
642
642
  }
643
643
  export interface UpdatePullRequestApprovalRuleContentOutput {
@@ -718,7 +718,7 @@ export interface UpdatePullRequestTitleOutput {
718
718
  }
719
719
  export interface UpdateRepositoryDescriptionInput {
720
720
  repositoryName: string | undefined;
721
- repositoryDescription?: string;
721
+ repositoryDescription?: string | undefined;
722
722
  }
723
723
  export declare class EncryptionKeyRequiredException extends __BaseException {
724
724
  readonly name: "EncryptionKeyRequiredException";
@@ -732,9 +732,9 @@ export interface UpdateRepositoryEncryptionKeyInput {
732
732
  kmsKeyId: string | undefined;
733
733
  }
734
734
  export interface UpdateRepositoryEncryptionKeyOutput {
735
- repositoryId?: string;
736
- kmsKeyId?: string;
737
- originalKmsKeyId?: string;
735
+ repositoryId?: string | undefined;
736
+ kmsKeyId?: string | undefined;
737
+ originalKmsKeyId?: string | undefined;
738
738
  }
739
739
  export interface UpdateRepositoryNameInput {
740
740
  oldName: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-codecommit",
3
3
  "description": "AWS SDK for JavaScript Codecommit Client for Node.js, Browser and React Native",
4
- "version": "3.686.0",
4
+ "version": "3.691.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-codecommit",
@@ -20,19 +20,19 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.686.0",
24
- "@aws-sdk/client-sts": "3.686.0",
25
- "@aws-sdk/core": "3.686.0",
26
- "@aws-sdk/credential-provider-node": "3.686.0",
23
+ "@aws-sdk/client-sso-oidc": "3.691.0",
24
+ "@aws-sdk/client-sts": "3.691.0",
25
+ "@aws-sdk/core": "3.691.0",
26
+ "@aws-sdk/credential-provider-node": "3.691.0",
27
27
  "@aws-sdk/middleware-host-header": "3.686.0",
28
28
  "@aws-sdk/middleware-logger": "3.686.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.686.0",
30
- "@aws-sdk/middleware-user-agent": "3.686.0",
30
+ "@aws-sdk/middleware-user-agent": "3.691.0",
31
31
  "@aws-sdk/region-config-resolver": "3.686.0",
32
32
  "@aws-sdk/types": "3.686.0",
33
33
  "@aws-sdk/util-endpoints": "3.686.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.686.0",
35
- "@aws-sdk/util-user-agent-node": "3.686.0",
35
+ "@aws-sdk/util-user-agent-node": "3.691.0",
36
36
  "@smithy/config-resolver": "^3.0.10",
37
37
  "@smithy/core": "^2.5.1",
38
38
  "@smithy/fetch-http-handler": "^4.0.0",