@aws-sdk/client-codecommit 3.388.0 → 3.395.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/README.md +30 -32
  2. package/dist-cjs/CodeCommit.js +2 -0
  3. package/dist-cjs/CodeCommitClient.js +4 -2
  4. package/dist-cjs/clientConfiguration.js +2 -0
  5. package/dist-cjs/commands/ListFileCommitHistoryCommand.js +46 -0
  6. package/dist-cjs/commands/index.js +1 -0
  7. package/dist-cjs/endpoint/ruleset.js +3 -3
  8. package/dist-cjs/models/models_0.js +1 -27
  9. package/dist-cjs/models/models_1.js +27 -1
  10. package/dist-cjs/pagination/ListFileCommitHistoryPaginator.js +29 -0
  11. package/dist-cjs/pagination/index.js +1 -0
  12. package/dist-cjs/protocols/Aws_json1_1.js +85 -6
  13. package/dist-cjs/runtimeConfig.shared.js +1 -0
  14. package/dist-cjs/runtimeExtensions.js +16 -0
  15. package/dist-es/CodeCommit.js +2 -0
  16. package/dist-es/CodeCommitClient.js +4 -2
  17. package/dist-es/clientConfiguration.js +1 -0
  18. package/dist-es/commands/ListFileCommitHistoryCommand.js +42 -0
  19. package/dist-es/commands/index.js +1 -0
  20. package/dist-es/endpoint/ruleset.js +3 -3
  21. package/dist-es/models/models_0.js +0 -24
  22. package/dist-es/models/models_1.js +24 -0
  23. package/dist-es/pagination/ListFileCommitHistoryPaginator.js +25 -0
  24. package/dist-es/pagination/index.js +1 -0
  25. package/dist-es/protocols/Aws_json1_1.js +79 -2
  26. package/dist-es/runtimeConfig.shared.js +1 -0
  27. package/dist-es/runtimeExtensions.js +12 -0
  28. package/dist-types/CodeCommit.d.ts +100 -109
  29. package/dist-types/CodeCommitClient.d.ts +102 -112
  30. package/dist-types/clientConfiguration.d.ts +6 -0
  31. package/dist-types/commands/AssociateApprovalRuleTemplateWithRepositoryCommand.d.ts +4 -6
  32. package/dist-types/commands/BatchAssociateApprovalRuleTemplateWithRepositoriesCommand.d.ts +3 -4
  33. package/dist-types/commands/BatchDescribeMergeConflictsCommand.d.ts +12 -13
  34. package/dist-types/commands/BatchDisassociateApprovalRuleTemplateFromRepositoriesCommand.d.ts +3 -4
  35. package/dist-types/commands/BatchGetCommitsCommand.d.ts +1 -2
  36. package/dist-types/commands/BatchGetRepositoriesCommand.d.ts +2 -3
  37. package/dist-types/commands/CreateApprovalRuleTemplateCommand.d.ts +7 -9
  38. package/dist-types/commands/CreateBranchCommand.d.ts +3 -3
  39. package/dist-types/commands/CreateCommitCommand.d.ts +6 -7
  40. package/dist-types/commands/CreatePullRequestCommand.d.ts +4 -5
  41. package/dist-types/commands/CreateRepositoryCommand.d.ts +2 -3
  42. package/dist-types/commands/CreateUnreferencedMergeCommitCommand.d.ts +8 -9
  43. package/dist-types/commands/DeleteApprovalRuleTemplateCommand.d.ts +2 -3
  44. package/dist-types/commands/DeleteBranchCommand.d.ts +1 -2
  45. package/dist-types/commands/DeleteFileCommand.d.ts +1 -2
  46. package/dist-types/commands/DeleteRepositoryCommand.d.ts +2 -3
  47. package/dist-types/commands/DescribeMergeConflictsCommand.d.ts +12 -13
  48. package/dist-types/commands/DescribePullRequestEventsCommand.d.ts +7 -7
  49. package/dist-types/commands/DisassociateApprovalRuleTemplateFromRepositoryCommand.d.ts +4 -6
  50. package/dist-types/commands/GetApprovalRuleTemplateCommand.d.ts +3 -4
  51. package/dist-types/commands/GetBlobCommand.d.ts +3 -4
  52. package/dist-types/commands/GetBranchCommand.d.ts +1 -2
  53. package/dist-types/commands/GetCommentCommand.d.ts +1 -1
  54. package/dist-types/commands/GetCommentsForComparedCommitCommand.d.ts +3 -4
  55. package/dist-types/commands/GetCommentsForPullRequestCommand.d.ts +3 -4
  56. package/dist-types/commands/GetCommitCommand.d.ts +1 -2
  57. package/dist-types/commands/GetDifferencesCommand.d.ts +2 -3
  58. package/dist-types/commands/GetFileCommand.d.ts +4 -5
  59. package/dist-types/commands/GetFolderCommand.d.ts +3 -4
  60. package/dist-types/commands/GetMergeCommitCommand.d.ts +3 -4
  61. package/dist-types/commands/GetMergeConflictsCommand.d.ts +12 -13
  62. package/dist-types/commands/GetMergeOptionsCommand.d.ts +4 -5
  63. package/dist-types/commands/GetPullRequestApprovalStatesCommand.d.ts +1 -1
  64. package/dist-types/commands/GetPullRequestCommand.d.ts +2 -2
  65. package/dist-types/commands/GetRepositoryCommand.d.ts +2 -4
  66. package/dist-types/commands/GetRepositoryTriggersCommand.d.ts +2 -3
  67. package/dist-types/commands/ListApprovalRuleTemplatesCommand.d.ts +2 -2
  68. package/dist-types/commands/ListAssociatedApprovalRuleTemplatesForRepositoryCommand.d.ts +1 -2
  69. package/dist-types/commands/ListBranchesCommand.d.ts +1 -2
  70. package/dist-types/commands/ListFileCommitHistoryCommand.d.ts +153 -0
  71. package/dist-types/commands/ListPullRequestsCommand.d.ts +5 -5
  72. package/dist-types/commands/ListRepositoriesCommand.d.ts +2 -2
  73. package/dist-types/commands/ListRepositoriesForApprovalRuleTemplateCommand.d.ts +3 -4
  74. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -8
  75. package/dist-types/commands/MergeBranchesByFastForwardCommand.d.ts +1 -2
  76. package/dist-types/commands/MergeBranchesBySquashCommand.d.ts +6 -7
  77. package/dist-types/commands/MergeBranchesByThreeWayCommand.d.ts +6 -7
  78. package/dist-types/commands/MergePullRequestByFastForwardCommand.d.ts +3 -4
  79. package/dist-types/commands/MergePullRequestBySquashCommand.d.ts +8 -9
  80. package/dist-types/commands/MergePullRequestByThreeWayCommand.d.ts +8 -9
  81. package/dist-types/commands/OverridePullRequestApprovalRulesCommand.d.ts +1 -1
  82. package/dist-types/commands/PostCommentForComparedCommitCommand.d.ts +4 -5
  83. package/dist-types/commands/PostCommentForPullRequestCommand.d.ts +4 -5
  84. package/dist-types/commands/PostCommentReplyCommand.d.ts +1 -1
  85. package/dist-types/commands/PutCommentReactionCommand.d.ts +1 -1
  86. package/dist-types/commands/PutFileCommand.d.ts +3 -4
  87. package/dist-types/commands/PutRepositoryTriggersCommand.d.ts +4 -5
  88. package/dist-types/commands/TagResourceCommand.d.ts +8 -9
  89. package/dist-types/commands/TestRepositoryTriggersCommand.d.ts +4 -5
  90. package/dist-types/commands/UntagResourceCommand.d.ts +7 -9
  91. package/dist-types/commands/UpdateApprovalRuleTemplateContentCommand.d.ts +3 -4
  92. package/dist-types/commands/UpdateApprovalRuleTemplateDescriptionCommand.d.ts +5 -7
  93. package/dist-types/commands/UpdateApprovalRuleTemplateNameCommand.d.ts +4 -5
  94. package/dist-types/commands/UpdateCommentCommand.d.ts +1 -1
  95. package/dist-types/commands/UpdateDefaultBranchCommand.d.ts +2 -3
  96. package/dist-types/commands/UpdatePullRequestApprovalStateCommand.d.ts +1 -1
  97. package/dist-types/commands/UpdatePullRequestDescriptionCommand.d.ts +2 -2
  98. package/dist-types/commands/UpdatePullRequestStatusCommand.d.ts +3 -3
  99. package/dist-types/commands/UpdatePullRequestTitleCommand.d.ts +2 -2
  100. package/dist-types/commands/UpdateRepositoryDescriptionCommand.d.ts +2 -3
  101. package/dist-types/commands/UpdateRepositoryNameCommand.d.ts +4 -5
  102. package/dist-types/commands/index.d.ts +1 -0
  103. package/dist-types/index.d.ts +93 -109
  104. package/dist-types/models/models_0.d.ts +153 -114
  105. package/dist-types/models/models_1.d.ts +68 -30
  106. package/dist-types/pagination/ListFileCommitHistoryPaginator.d.ts +7 -0
  107. package/dist-types/pagination/index.d.ts +1 -0
  108. package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
  109. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  110. package/dist-types/runtimeConfig.d.ts +1 -0
  111. package/dist-types/runtimeConfig.native.d.ts +1 -0
  112. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  113. package/dist-types/runtimeExtensions.d.ts +17 -0
  114. package/dist-types/ts3.4/CodeCommit.d.ts +17 -0
  115. package/dist-types/ts3.4/CodeCommitClient.d.ts +9 -0
  116. package/dist-types/ts3.4/clientConfiguration.d.ts +3 -0
  117. package/dist-types/ts3.4/commands/ListFileCommitHistoryCommand.d.ts +42 -0
  118. package/dist-types/ts3.4/commands/ListPullRequestsCommand.d.ts +2 -4
  119. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  120. package/dist-types/ts3.4/models/models_0.d.ts +17 -18
  121. package/dist-types/ts3.4/models/models_1.d.ts +18 -0
  122. package/dist-types/ts3.4/pagination/ListFileCommitHistoryPaginator.d.ts +11 -0
  123. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  124. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
  125. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
  126. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
  127. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  128. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  129. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  130. package/package.json +28 -28
@@ -1,6 +1,45 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { CodeCommitServiceException as __BaseException } from "./CodeCommitServiceException";
3
3
  import { ApprovalRule, ApprovalRuleTemplate, ApprovalState, Comment, ConflictDetailLevelTypeEnum, ConflictResolution, ConflictResolutionStrategyTypeEnum, FileModeTypeEnum, Location, OverrideStatus, PullRequest, PullRequestStatusEnum, RepositoryTrigger } from "./models_0";
4
+ /**
5
+ * @public
6
+ */
7
+ export interface ListPullRequestsOutput {
8
+ /**
9
+ * @public
10
+ * <p>The system-generated IDs of the pull requests.</p>
11
+ */
12
+ pullRequestIds: string[] | undefined;
13
+ /**
14
+ * @public
15
+ * <p>An enumeration token that allows the operation to batch the next results of the operation.</p>
16
+ */
17
+ nextToken?: string;
18
+ }
19
+ /**
20
+ * @public
21
+ * <p>The specified sort order is not valid.</p>
22
+ */
23
+ export declare class InvalidOrderException extends __BaseException {
24
+ readonly name: "InvalidOrderException";
25
+ readonly $fault: "client";
26
+ /**
27
+ * @internal
28
+ */
29
+ constructor(opts: __ExceptionOptionType<InvalidOrderException, __BaseException>);
30
+ }
31
+ /**
32
+ * @public
33
+ * <p>The specified sort by value is not valid.</p>
34
+ */
35
+ export declare class InvalidSortByException extends __BaseException {
36
+ readonly name: "InvalidSortByException";
37
+ readonly $fault: "client";
38
+ /**
39
+ * @internal
40
+ */
41
+ constructor(opts: __ExceptionOptionType<InvalidSortByException, __BaseException>);
42
+ }
4
43
  /**
5
44
  * @public
6
45
  * @enum
@@ -33,7 +72,7 @@ export interface ListRepositoriesInput {
33
72
  /**
34
73
  * @public
35
74
  * <p>An enumeration token that allows the operation to batch the results of the operation.
36
- * Batch sizes are 1,000 for list repository operations. When the client sends the token back to AWS CodeCommit,
75
+ * Batch sizes are 1,000 for list repository operations. When the client sends the token back to CodeCommit,
37
76
  * another page of 1,000 records is retrieved.</p>
38
77
  */
39
78
  nextToken?: string;
@@ -77,7 +116,7 @@ export interface ListRepositoriesOutput {
77
116
  /**
78
117
  * @public
79
118
  * <p>An enumeration token that allows the operation to batch the results of the operation.
80
- * Batch sizes are 1,000 for list repository operations. When the client sends the token back to AWS CodeCommit,
119
+ * Batch sizes are 1,000 for list repository operations. When the client sends the token back to CodeCommit,
81
120
  * another page of 1,000 records is retrieved.</p>
82
121
  */
83
122
  nextToken?: string;
@@ -120,9 +159,9 @@ export interface ListRepositoriesForApprovalRuleTemplateOutput {
120
159
  }
121
160
  /**
122
161
  * @public
123
- * <p>The value for the resource ARN is not valid. For more information about resources in AWS CodeCommit, see
162
+ * <p>The value for the resource ARN is not valid. For more information about resources in CodeCommit, see
124
163
  * <a href="https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats">CodeCommit Resources and Operations</a>
125
- * in the AWS CodeCommit User Guide.</p>
164
+ * in the CodeCommit User Guide.</p>
126
165
  */
127
166
  export declare class InvalidResourceArnException extends __BaseException {
128
167
  readonly name: "InvalidResourceArnException";
@@ -166,9 +205,9 @@ export interface ListTagsForResourceOutput {
166
205
  }
167
206
  /**
168
207
  * @public
169
- * <p>A valid Amazon Resource Name (ARN) for an AWS CodeCommit resource is required. For a list of valid resources in AWS CodeCommit, see
208
+ * <p>A valid Amazon Resource Name (ARN) for an CodeCommit resource is required. For a list of valid resources in CodeCommit, see
170
209
  * <a href="https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats">CodeCommit Resources and Operations</a>
171
- * in the AWS CodeCommit User Guide.</p>
210
+ * in the CodeCommit User Guide.</p>
172
211
  */
173
212
  export declare class ResourceArnRequiredException extends __BaseException {
174
213
  readonly name: "ResourceArnRequiredException";
@@ -688,7 +727,7 @@ export declare class CommentContentRequiredException extends __BaseException {
688
727
  }
689
728
  /**
690
729
  * @public
691
- * <p>The comment is too large. Comments are limited to 1,000 characters.</p>
730
+ * <p>The comment is too large. Comments are limited to 10,240 characters.</p>
692
731
  */
693
732
  export declare class CommentContentSizeLimitExceededException extends __BaseException {
694
733
  readonly name: "CommentContentSizeLimitExceededException";
@@ -944,7 +983,7 @@ export interface PostCommentReplyOutput {
944
983
  }
945
984
  /**
946
985
  * @public
947
- * <p>The value of the reaction is not valid. For more information, see the <a href="https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html">AWS CodeCommit User Guide</a>.</p>
986
+ * <p>The value of the reaction is not valid. For more information, see the <a href="https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html">CodeCommit User Guide</a>.</p>
948
987
  */
949
988
  export declare class InvalidReactionValueException extends __BaseException {
950
989
  readonly name: "InvalidReactionValueException";
@@ -966,7 +1005,7 @@ export interface PutCommentReactionInput {
966
1005
  /**
967
1006
  * @public
968
1007
  * <p>The emoji reaction you want to add or update. To remove a reaction, provide a value of blank or null. You can also provide the value of none.
969
- * For information about emoji reaction values supported in AWS CodeCommit, see the <a href="https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-commit-comment.html#emoji-reaction-table">AWS CodeCommit User Guide</a>.</p>
1008
+ * For information about emoji reaction values supported in CodeCommit, see the <a href="https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-commit-comment.html#emoji-reaction-table">CodeCommit User Guide</a>.</p>
970
1009
  */
971
1010
  reactionValue: string | undefined;
972
1011
  }
@@ -1029,7 +1068,7 @@ export interface PutFileInput {
1029
1068
  /**
1030
1069
  * @public
1031
1070
  * <p>The name of the file you want to add or update, including the relative path to the file in the repository.</p>
1032
- * <note>
1071
+ * <note>
1033
1072
  * <p>If the path does not currently exist in the repository, the path is created as part of adding
1034
1073
  * the file.</p>
1035
1074
  * </note>
@@ -1045,7 +1084,7 @@ export interface PutFileInput {
1045
1084
  * @public
1046
1085
  * <p>The full commit ID of the head commit in the branch where you want to add or update the file. If this is an empty repository,
1047
1086
  * no commit ID is required. If this is not an empty repository, a commit ID is required. </p>
1048
- * <p>The commit ID must match the ID of the head commit at the time of the operation.
1087
+ * <p>The commit ID must match the ID of the head commit at the time of the operation.
1049
1088
  * Otherwise, an error occurs, and the file is not added or updated.</p>
1050
1089
  */
1051
1090
  parentCommitId?: string;
@@ -1162,8 +1201,8 @@ export declare class InvalidRepositoryTriggerNameException extends __BaseExcepti
1162
1201
  }
1163
1202
  /**
1164
1203
  * @public
1165
- * <p>The AWS Region for the trigger target does not match the AWS Region for the
1166
- * repository. Triggers must be created in the same Region as the target for the
1204
+ * <p>The Amazon Web Services Region for the trigger target does not match the Amazon Web Services Region for the
1205
+ * repository. Triggers must be created in the same Amazon Web Services Region as the target for the
1167
1206
  * trigger.</p>
1168
1207
  */
1169
1208
  export declare class InvalidRepositoryTriggerRegionException extends __BaseException {
@@ -1542,12 +1581,12 @@ export interface UpdateCommentOutput {
1542
1581
  export interface UpdateDefaultBranchInput {
1543
1582
  /**
1544
1583
  * @public
1545
- * <p>The name of the repository to set or change the default branch for.</p>
1584
+ * <p>The name of the repository for which you want to set or change the default branch.</p>
1546
1585
  */
1547
1586
  repositoryName: string | undefined;
1548
1587
  /**
1549
1588
  * @public
1550
- * <p>The name of the branch to set as the default.</p>
1589
+ * <p>The name of the branch to set as the default branch.</p>
1551
1590
  */
1552
1591
  defaultBranchName: string | undefined;
1553
1592
  }
@@ -1575,46 +1614,45 @@ export interface UpdatePullRequestApprovalRuleContentInput {
1575
1614
  /**
1576
1615
  * @public
1577
1616
  * <p>The updated content for the approval rule.</p>
1578
- * <note>
1617
+ * <note>
1579
1618
  * <p>When you update the content of the approval rule, you can specify approvers in an
1580
1619
  * approval pool in one of two ways:</p>
1581
1620
  * <ul>
1582
1621
  * <li>
1583
- * <p>
1622
+ * <p>
1584
1623
  * <b>CodeCommitApprovers</b>: This option only
1585
- * requires an AWS account and a resource. It can be used for both IAM users
1624
+ * requires an Amazon Web Services account and a resource. It can be used for both IAM users
1586
1625
  * and federated access users whose name matches the provided resource name.
1587
1626
  * This is a very powerful option that offers a great deal of flexibility. For
1588
- * example, if you specify the AWS account <i>123456789012</i>
1627
+ * example, if you specify the Amazon Web Services account <i>123456789012</i>
1589
1628
  * and <i>Mary_Major</i>, all of the following are counted as
1590
1629
  * approvals coming from that user:</p>
1591
- * <ul>
1630
+ * <ul>
1592
1631
  * <li>
1593
- * <p>An IAM user in the account
1632
+ * <p>An IAM user in the account
1594
1633
  * (arn:aws:iam::<i>123456789012</i>:user/<i>Mary_Major</i>)</p>
1595
- * </li>
1634
+ * </li>
1596
1635
  * <li>
1597
- * <p>A federated user identified in IAM as Mary_Major
1636
+ * <p>A federated user identified in IAM as Mary_Major
1598
1637
  * (arn:aws:sts::<i>123456789012</i>:federated-user/<i>Mary_Major</i>)</p>
1599
- * </li>
1638
+ * </li>
1600
1639
  * </ul>
1601
- * <p>This option does not recognize an active session of someone assuming the
1640
+ * <p>This option does not recognize an active session of someone assuming the
1602
1641
  * role of CodeCommitReview with a role session name of
1603
1642
  * <i>Mary_Major</i>
1604
1643
  * (arn:aws:sts::<i>123456789012</i>:assumed-role/CodeCommitReview/<i>Mary_Major</i>)
1605
1644
  * unless you include a wildcard (*Mary_Major).</p>
1606
- * </li>
1645
+ * </li>
1607
1646
  * <li>
1608
- * <p>
1647
+ * <p>
1609
1648
  * <b>Fully qualified ARN</b>: This option allows
1610
1649
  * you to specify the fully qualified Amazon Resource Name (ARN) of the IAM
1611
1650
  * user or role. </p>
1612
- * </li>
1651
+ * </li>
1613
1652
  * </ul>
1614
1653
  * <p>For more information about IAM ARNs, wildcards, and formats, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html">IAM
1615
1654
  * Identifiers</a> in the <i>IAM User Guide</i>.</p>
1616
- *
1617
- * </note>
1655
+ * </note>
1618
1656
  */
1619
1657
  newRuleContent: string | undefined;
1620
1658
  }
@@ -0,0 +1,7 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import { ListFileCommitHistoryCommandInput, ListFileCommitHistoryCommandOutput } from "../commands/ListFileCommitHistoryCommand";
3
+ import { CodeCommitPaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare function paginateListFileCommitHistory(config: CodeCommitPaginationConfiguration, input: ListFileCommitHistoryCommandInput, ...additionalArguments: any): Paginator<ListFileCommitHistoryCommandOutput>;
@@ -9,6 +9,7 @@ export * from "./Interfaces";
9
9
  export * from "./ListApprovalRuleTemplatesPaginator";
10
10
  export * from "./ListAssociatedApprovalRuleTemplatesForRepositoryPaginator";
11
11
  export * from "./ListBranchesPaginator";
12
+ export * from "./ListFileCommitHistoryPaginator";
12
13
  export * from "./ListPullRequestsPaginator";
13
14
  export * from "./ListRepositoriesForApprovalRuleTemplatePaginator";
14
15
  export * from "./ListRepositoriesPaginator";
@@ -45,6 +45,7 @@ import { GetRepositoryTriggersCommandInput, GetRepositoryTriggersCommandOutput }
45
45
  import { ListApprovalRuleTemplatesCommandInput, ListApprovalRuleTemplatesCommandOutput } from "../commands/ListApprovalRuleTemplatesCommand";
46
46
  import { ListAssociatedApprovalRuleTemplatesForRepositoryCommandInput, ListAssociatedApprovalRuleTemplatesForRepositoryCommandOutput } from "../commands/ListAssociatedApprovalRuleTemplatesForRepositoryCommand";
47
47
  import { ListBranchesCommandInput, ListBranchesCommandOutput } from "../commands/ListBranchesCommand";
48
+ import { ListFileCommitHistoryCommandInput, ListFileCommitHistoryCommandOutput } from "../commands/ListFileCommitHistoryCommand";
48
49
  import { ListPullRequestsCommandInput, ListPullRequestsCommandOutput } from "../commands/ListPullRequestsCommand";
49
50
  import { ListRepositoriesCommandInput, ListRepositoriesCommandOutput } from "../commands/ListRepositoriesCommand";
50
51
  import { ListRepositoriesForApprovalRuleTemplateCommandInput, ListRepositoriesForApprovalRuleTemplateCommandOutput } from "../commands/ListRepositoriesForApprovalRuleTemplateCommand";
@@ -257,6 +258,10 @@ export declare const se_ListAssociatedApprovalRuleTemplatesForRepositoryCommand:
257
258
  * serializeAws_json1_1ListBranchesCommand
258
259
  */
259
260
  export declare const se_ListBranchesCommand: (input: ListBranchesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
261
+ /**
262
+ * serializeAws_json1_1ListFileCommitHistoryCommand
263
+ */
264
+ export declare const se_ListFileCommitHistoryCommand: (input: ListFileCommitHistoryCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
260
265
  /**
261
266
  * serializeAws_json1_1ListPullRequestsCommand
262
267
  */
@@ -565,6 +570,10 @@ export declare const de_ListAssociatedApprovalRuleTemplatesForRepositoryCommand:
565
570
  * deserializeAws_json1_1ListBranchesCommand
566
571
  */
567
572
  export declare const de_ListBranchesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListBranchesCommandOutput>;
573
+ /**
574
+ * deserializeAws_json1_1ListFileCommitHistoryCommand
575
+ */
576
+ export declare const de_ListFileCommitHistoryCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListFileCommitHistoryCommandOutput>;
568
577
  /**
569
578
  * deserializeAws_json1_1ListPullRequestsCommand
570
579
  */
@@ -26,6 +26,7 @@ export declare const getRuntimeConfig: (config: CodeCommitClientConfig) => {
26
26
  disableHostPrefix: boolean;
27
27
  serviceId: string;
28
28
  logger: import("@smithy/types").Logger;
29
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
29
30
  endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
30
31
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
31
32
  logger?: import("@smithy/types").Logger | undefined;
@@ -26,6 +26,7 @@ export declare const getRuntimeConfig: (config: CodeCommitClientConfig) => {
26
26
  disableHostPrefix: boolean;
27
27
  serviceId: string;
28
28
  logger: import("@smithy/types").Logger;
29
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
29
30
  endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
30
31
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
31
32
  logger?: import("@smithy/types").Logger | undefined;
@@ -24,6 +24,7 @@ export declare const getRuntimeConfig: (config: CodeCommitClientConfig) => {
24
24
  maxAttempts: number | import("@smithy/types").Provider<number>;
25
25
  retryMode: string | import("@smithy/types").Provider<string>;
26
26
  logger: import("@smithy/types").Logger;
27
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
27
28
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
28
29
  endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
29
30
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
@@ -10,6 +10,7 @@ export declare const getRuntimeConfig: (config: CodeCommitClientConfig) => {
10
10
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
11
11
  logger?: import("@smithy/types").Logger | undefined;
12
12
  }) => import("@smithy/types").EndpointV2;
13
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
13
14
  logger: import("@smithy/types").Logger;
14
15
  serviceId: string;
15
16
  urlParser: import("@smithy/types").UrlParser;
@@ -0,0 +1,17 @@
1
+ import { CodeCommitClientConfiguration } from "./clientConfiguration";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface RuntimeExtension {
6
+ configureClient(clientConfiguration: CodeCommitClientConfiguration): void;
7
+ }
8
+ /**
9
+ * @public
10
+ */
11
+ export interface RuntimeExtensionsConfig {
12
+ extensions: RuntimeExtension[];
13
+ }
14
+ /**
15
+ * @internal
16
+ */
17
+ export declare const resolveRuntimeExtensions: (runtimeConfig: any, extensions: RuntimeExtension[]) => any;
@@ -180,6 +180,10 @@ import {
180
180
  ListBranchesCommandInput,
181
181
  ListBranchesCommandOutput,
182
182
  } from "./commands/ListBranchesCommand";
183
+ import {
184
+ ListFileCommitHistoryCommandInput,
185
+ ListFileCommitHistoryCommandOutput,
186
+ } from "./commands/ListFileCommitHistoryCommand";
183
187
  import {
184
188
  ListPullRequestsCommandInput,
185
189
  ListPullRequestsCommandOutput,
@@ -924,6 +928,19 @@ export interface CodeCommit {
924
928
  options: __HttpHandlerOptions,
925
929
  cb: (err: any, data?: ListBranchesCommandOutput) => void
926
930
  ): void;
931
+ listFileCommitHistory(
932
+ args: ListFileCommitHistoryCommandInput,
933
+ options?: __HttpHandlerOptions
934
+ ): Promise<ListFileCommitHistoryCommandOutput>;
935
+ listFileCommitHistory(
936
+ args: ListFileCommitHistoryCommandInput,
937
+ cb: (err: any, data?: ListFileCommitHistoryCommandOutput) => void
938
+ ): void;
939
+ listFileCommitHistory(
940
+ args: ListFileCommitHistoryCommandInput,
941
+ options: __HttpHandlerOptions,
942
+ cb: (err: any, data?: ListFileCommitHistoryCommandOutput) => void
943
+ ): void;
927
944
  listPullRequests(
928
945
  args: ListPullRequestsCommandInput,
929
946
  options?: __HttpHandlerOptions
@@ -225,6 +225,10 @@ import {
225
225
  ListBranchesCommandInput,
226
226
  ListBranchesCommandOutput,
227
227
  } from "./commands/ListBranchesCommand";
228
+ import {
229
+ ListFileCommitHistoryCommandInput,
230
+ ListFileCommitHistoryCommandOutput,
231
+ } from "./commands/ListFileCommitHistoryCommand";
228
232
  import {
229
233
  ListPullRequestsCommandInput,
230
234
  ListPullRequestsCommandOutput,
@@ -358,6 +362,7 @@ import {
358
362
  ClientResolvedEndpointParameters,
359
363
  EndpointParameters,
360
364
  } from "./endpoint/EndpointParameters";
365
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
361
366
  export { __Client };
362
367
  export type ServiceInputTypes =
363
368
  | AssociateApprovalRuleTemplateWithRepositoryCommandInput
@@ -405,6 +410,7 @@ export type ServiceInputTypes =
405
410
  | ListApprovalRuleTemplatesCommandInput
406
411
  | ListAssociatedApprovalRuleTemplatesForRepositoryCommandInput
407
412
  | ListBranchesCommandInput
413
+ | ListFileCommitHistoryCommandInput
408
414
  | ListPullRequestsCommandInput
409
415
  | ListRepositoriesCommandInput
410
416
  | ListRepositoriesForApprovalRuleTemplateCommandInput
@@ -483,6 +489,7 @@ export type ServiceOutputTypes =
483
489
  | ListApprovalRuleTemplatesCommandOutput
484
490
  | ListAssociatedApprovalRuleTemplatesForRepositoryCommandOutput
485
491
  | ListBranchesCommandOutput
492
+ | ListFileCommitHistoryCommandOutput
486
493
  | ListPullRequestsCommandOutput
487
494
  | ListRepositoriesCommandOutput
488
495
  | ListRepositoriesForApprovalRuleTemplateCommandOutput
@@ -537,6 +544,7 @@ export interface ClientDefaults
537
544
  maxAttempts?: number | __Provider<number>;
538
545
  retryMode?: string | __Provider<string>;
539
546
  logger?: __Logger;
547
+ extensions?: RuntimeExtension[];
540
548
  defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
541
549
  }
542
550
  export type CodeCommitClientConfigType = Partial<
@@ -554,6 +562,7 @@ export interface CodeCommitClientConfig extends CodeCommitClientConfigType {}
554
562
  export type CodeCommitClientResolvedConfigType =
555
563
  __SmithyResolvedConfiguration<__HttpHandlerOptions> &
556
564
  Required<ClientDefaults> &
565
+ RuntimeExtensionsConfig &
557
566
  RegionResolvedConfig &
558
567
  EndpointResolvedConfig<EndpointParameters> &
559
568
  RetryResolvedConfig &
@@ -0,0 +1,3 @@
1
+ import { DefaultClientConfiguration } from "@smithy/types";
2
+ export interface CodeCommitClientConfiguration
3
+ extends DefaultClientConfiguration {}
@@ -0,0 +1,42 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ CodeCommitClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../CodeCommitClient";
14
+ import {
15
+ ListFileCommitHistoryRequest,
16
+ ListFileCommitHistoryResponse,
17
+ } from "../models/models_0";
18
+ export { __MetadataBearer, $Command };
19
+ export interface ListFileCommitHistoryCommandInput
20
+ extends ListFileCommitHistoryRequest {}
21
+ export interface ListFileCommitHistoryCommandOutput
22
+ extends ListFileCommitHistoryResponse,
23
+ __MetadataBearer {}
24
+ export declare class ListFileCommitHistoryCommand extends $Command<
25
+ ListFileCommitHistoryCommandInput,
26
+ ListFileCommitHistoryCommandOutput,
27
+ CodeCommitClientResolvedConfig
28
+ > {
29
+ readonly input: ListFileCommitHistoryCommandInput;
30
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
+ constructor(input: ListFileCommitHistoryCommandInput);
32
+ resolveMiddleware(
33
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
34
+ configuration: CodeCommitClientResolvedConfig,
35
+ options?: __HttpHandlerOptions
36
+ ): Handler<
37
+ ListFileCommitHistoryCommandInput,
38
+ ListFileCommitHistoryCommandOutput
39
+ >;
40
+ private serialize;
41
+ private deserialize;
42
+ }
@@ -11,10 +11,8 @@ import {
11
11
  ServiceInputTypes,
12
12
  ServiceOutputTypes,
13
13
  } from "../CodeCommitClient";
14
- import {
15
- ListPullRequestsInput,
16
- ListPullRequestsOutput,
17
- } from "../models/models_0";
14
+ import { ListPullRequestsInput } from "../models/models_0";
15
+ import { ListPullRequestsOutput } from "../models/models_1";
18
16
  export { __MetadataBearer, $Command };
19
17
  export interface ListPullRequestsCommandInput extends ListPullRequestsInput {}
20
18
  export interface ListPullRequestsCommandOutput
@@ -43,6 +43,7 @@ export * from "./GetRepositoryTriggersCommand";
43
43
  export * from "./ListApprovalRuleTemplatesCommand";
44
44
  export * from "./ListAssociatedApprovalRuleTemplatesForRepositoryCommand";
45
45
  export * from "./ListBranchesCommand";
46
+ export * from "./ListFileCommitHistoryCommand";
46
47
  export * from "./ListPullRequestsCommand";
47
48
  export * from "./ListRepositoriesCommand";
48
49
  export * from "./ListRepositoriesForApprovalRuleTemplateCommand";
@@ -2048,6 +2048,23 @@ export interface ListBranchesOutput {
2048
2048
  branches?: string[];
2049
2049
  nextToken?: string;
2050
2050
  }
2051
+ export interface ListFileCommitHistoryRequest {
2052
+ repositoryName: string | undefined;
2053
+ commitSpecifier?: string;
2054
+ filePath: string | undefined;
2055
+ maxResults?: number;
2056
+ nextToken?: string;
2057
+ }
2058
+ export interface FileVersion {
2059
+ commit?: Commit;
2060
+ blobId?: string;
2061
+ path?: string;
2062
+ revisionChildren?: string[];
2063
+ }
2064
+ export interface ListFileCommitHistoryResponse {
2065
+ revisionDag: FileVersion[] | undefined;
2066
+ nextToken?: string;
2067
+ }
2051
2068
  export declare class InvalidAuthorArnException extends __BaseException {
2052
2069
  readonly name: "InvalidAuthorArnException";
2053
2070
  readonly $fault: "client";
@@ -2072,21 +2089,3 @@ export interface ListPullRequestsInput {
2072
2089
  nextToken?: string;
2073
2090
  maxResults?: number;
2074
2091
  }
2075
- export interface ListPullRequestsOutput {
2076
- pullRequestIds: string[] | undefined;
2077
- nextToken?: string;
2078
- }
2079
- export declare class InvalidOrderException extends __BaseException {
2080
- readonly name: "InvalidOrderException";
2081
- readonly $fault: "client";
2082
- constructor(
2083
- opts: __ExceptionOptionType<InvalidOrderException, __BaseException>
2084
- );
2085
- }
2086
- export declare class InvalidSortByException extends __BaseException {
2087
- readonly name: "InvalidSortByException";
2088
- readonly $fault: "client";
2089
- constructor(
2090
- opts: __ExceptionOptionType<InvalidSortByException, __BaseException>
2091
- );
2092
- }
@@ -15,6 +15,24 @@ import {
15
15
  PullRequestStatusEnum,
16
16
  RepositoryTrigger,
17
17
  } from "./models_0";
18
+ export interface ListPullRequestsOutput {
19
+ pullRequestIds: string[] | undefined;
20
+ nextToken?: string;
21
+ }
22
+ export declare class InvalidOrderException extends __BaseException {
23
+ readonly name: "InvalidOrderException";
24
+ readonly $fault: "client";
25
+ constructor(
26
+ opts: __ExceptionOptionType<InvalidOrderException, __BaseException>
27
+ );
28
+ }
29
+ export declare class InvalidSortByException extends __BaseException {
30
+ readonly name: "InvalidSortByException";
31
+ readonly $fault: "client";
32
+ constructor(
33
+ opts: __ExceptionOptionType<InvalidSortByException, __BaseException>
34
+ );
35
+ }
18
36
  export declare const OrderEnum: {
19
37
  readonly ASCENDING: "ascending";
20
38
  readonly DESCENDING: "descending";
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListFileCommitHistoryCommandInput,
4
+ ListFileCommitHistoryCommandOutput,
5
+ } from "../commands/ListFileCommitHistoryCommand";
6
+ import { CodeCommitPaginationConfiguration } from "./Interfaces";
7
+ export declare function paginateListFileCommitHistory(
8
+ config: CodeCommitPaginationConfiguration,
9
+ input: ListFileCommitHistoryCommandInput,
10
+ ...additionalArguments: any
11
+ ): Paginator<ListFileCommitHistoryCommandOutput>;
@@ -9,6 +9,7 @@ export * from "./Interfaces";
9
9
  export * from "./ListApprovalRuleTemplatesPaginator";
10
10
  export * from "./ListAssociatedApprovalRuleTemplatesForRepositoryPaginator";
11
11
  export * from "./ListBranchesPaginator";
12
+ export * from "./ListFileCommitHistoryPaginator";
12
13
  export * from "./ListPullRequestsPaginator";
13
14
  export * from "./ListRepositoriesForApprovalRuleTemplatePaginator";
14
15
  export * from "./ListRepositoriesPaginator";
@@ -183,6 +183,10 @@ import {
183
183
  ListBranchesCommandInput,
184
184
  ListBranchesCommandOutput,
185
185
  } from "../commands/ListBranchesCommand";
186
+ import {
187
+ ListFileCommitHistoryCommandInput,
188
+ ListFileCommitHistoryCommandOutput,
189
+ } from "../commands/ListFileCommitHistoryCommand";
186
190
  import {
187
191
  ListPullRequestsCommandInput,
188
192
  ListPullRequestsCommandOutput,
@@ -491,6 +495,10 @@ export declare const se_ListBranchesCommand: (
491
495
  input: ListBranchesCommandInput,
492
496
  context: __SerdeContext
493
497
  ) => Promise<__HttpRequest>;
498
+ export declare const se_ListFileCommitHistoryCommand: (
499
+ input: ListFileCommitHistoryCommandInput,
500
+ context: __SerdeContext
501
+ ) => Promise<__HttpRequest>;
494
502
  export declare const se_ListPullRequestsCommand: (
495
503
  input: ListPullRequestsCommandInput,
496
504
  context: __SerdeContext
@@ -799,6 +807,10 @@ export declare const de_ListBranchesCommand: (
799
807
  output: __HttpResponse,
800
808
  context: __SerdeContext
801
809
  ) => Promise<ListBranchesCommandOutput>;
810
+ export declare const de_ListFileCommitHistoryCommand: (
811
+ output: __HttpResponse,
812
+ context: __SerdeContext
813
+ ) => Promise<ListFileCommitHistoryCommandOutput>;
802
814
  export declare const de_ListPullRequestsCommand: (
803
815
  output: __HttpResponse,
804
816
  context: __SerdeContext
@@ -36,6 +36,7 @@ export declare const getRuntimeConfig: (config: CodeCommitClientConfig) => {
36
36
  disableHostPrefix: boolean;
37
37
  serviceId: string;
38
38
  logger: import("@smithy/types").Logger;
39
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
39
40
  endpoint?:
40
41
  | ((
41
42
  | string
@@ -36,6 +36,7 @@ export declare const getRuntimeConfig: (config: CodeCommitClientConfig) => {
36
36
  disableHostPrefix: boolean;
37
37
  serviceId: string;
38
38
  logger: import("@smithy/types").Logger;
39
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
39
40
  endpoint?:
40
41
  | ((
41
42
  | string
@@ -32,6 +32,7 @@ export declare const getRuntimeConfig: (config: CodeCommitClientConfig) => {
32
32
  maxAttempts: number | import("@smithy/types").Provider<number>;
33
33
  retryMode: string | import("@smithy/types").Provider<string>;
34
34
  logger: import("@smithy/types").Logger;
35
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
35
36
  defaultsMode:
36
37
  | import("@smithy/smithy-client").DefaultsMode
37
38
  | import("@smithy/types").Provider<
@@ -10,6 +10,7 @@ export declare const getRuntimeConfig: (config: CodeCommitClientConfig) => {
10
10
  logger?: import("@smithy/types").Logger | undefined;
11
11
  }
12
12
  ) => import("@smithy/types").EndpointV2;
13
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
13
14
  logger: import("@smithy/types").Logger;
14
15
  serviceId: string;
15
16
  urlParser: import("@smithy/types").UrlParser;