@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
package/README.md CHANGED
@@ -6,25 +6,24 @@
6
6
 
7
7
  AWS SDK for JavaScript CodeCommit Client for Node.js, Browser and React Native.
8
8
 
9
- <fullname>AWS CodeCommit</fullname>
10
-
11
- <p>This is the <i>AWS CodeCommit API Reference</i>. This reference provides descriptions of the operations and data types for
12
- AWS CodeCommit API along with usage examples.</p>
13
- <p>You can use the AWS CodeCommit API to work with the following objects:</p>
9
+ <fullname>CodeCommit</fullname>
14
10
 
11
+ <p>This is the <i>CodeCommit API Reference</i>. This reference provides descriptions of the operations and data types for
12
+ CodeCommit API along with usage examples.</p>
13
+ <p>You can use the CodeCommit API to work with the following objects:</p>
15
14
  <p>Repositories, by calling the following:</p>
16
15
  <ul>
17
16
  <li>
18
17
  <p>
19
- <a>BatchGetRepositories</a>, which returns information about one or more repositories associated with your AWS account.</p>
18
+ <a>BatchGetRepositories</a>, which returns information about one or more repositories associated with your Amazon Web Services account.</p>
20
19
  </li>
21
20
  <li>
22
21
  <p>
23
- <a>CreateRepository</a>, which creates an AWS CodeCommit repository.</p>
22
+ <a>CreateRepository</a>, which creates an CodeCommit repository.</p>
24
23
  </li>
25
24
  <li>
26
25
  <p>
27
- <a>DeleteRepository</a>, which deletes an AWS CodeCommit repository.</p>
26
+ <a>DeleteRepository</a>, which deletes an CodeCommit repository.</p>
28
27
  </li>
29
28
  <li>
30
29
  <p>
@@ -32,7 +31,7 @@ AWS CodeCommit API along with usage examples.</p>
32
31
  </li>
33
32
  <li>
34
33
  <p>
35
- <a>ListRepositories</a>, which lists all AWS CodeCommit repositories associated with your AWS account.</p>
34
+ <a>ListRepositories</a>, which lists all CodeCommit repositories associated with your Amazon Web Services account.</p>
36
35
  </li>
37
36
  <li>
38
37
  <p>
@@ -46,7 +45,6 @@ repository can access it until you send them the new HTTPS or SSH URL to
46
45
  use.</p>
47
46
  </li>
48
47
  </ul>
49
-
50
48
  <p>Branches, by calling the following:</p>
51
49
  <ul>
52
50
  <li>
@@ -71,7 +69,6 @@ repository.</p>
71
69
  <a>UpdateDefaultBranch</a>, which changes the default branch for a repository.</p>
72
70
  </li>
73
71
  </ul>
74
-
75
72
  <p>Files, by calling the following:</p>
76
73
  <ul>
77
74
  <li>
@@ -93,10 +90,13 @@ individual Git blob object in a repository.</p>
93
90
  </li>
94
91
  <li>
95
92
  <p>
93
+ <a>ListFileCommitHistory</a>, which retrieves a list of commits and changes to a specified file. </p>
94
+ </li>
95
+ <li>
96
+ <p>
96
97
  <a>PutFile</a>, which adds or modifies a single file in a specified repository and branch.</p>
97
98
  </li>
98
99
  </ul>
99
-
100
100
  <p>Commits, by calling the following:</p>
101
101
  <ul>
102
102
  <li>
@@ -119,7 +119,6 @@ differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID,
119
119
  or other fully qualified reference).</p>
120
120
  </li>
121
121
  </ul>
122
-
123
122
  <p>Merges, by calling the following:</p>
124
123
  <ul>
125
124
  <li>
@@ -139,7 +138,6 @@ of a file in a potential merge.</p>
139
138
  <li>
140
139
  <p>
141
140
  <a>GetMergeCommit</a>, which returns information about the merge between a source and destination commit. </p>
142
-
143
141
  </li>
144
142
  <li>
145
143
  <p>
@@ -147,7 +145,6 @@ of a file in a potential merge.</p>
147
145
  between the source and destination branch in a pull request.</p>
148
146
  </li>
149
147
  <li>
150
-
151
148
  <p>
152
149
  <a>GetMergeOptions</a>, which returns information about the available merge options between two branches or commit specifiers.</p>
153
150
  </li>
@@ -164,7 +161,6 @@ between the source and destination branch in a pull request.</p>
164
161
  <a>MergeBranchesByThreeWay</a>, which merges two branches using the three-way merge option.</p>
165
162
  </li>
166
163
  </ul>
167
-
168
164
  <p>Pull requests, by calling the following:</p>
169
165
  <ul>
170
166
  <li>
@@ -192,7 +188,6 @@ between the source and destination branch in a pull request.</p>
192
188
  <a>GetCommentsForPullRequest</a>, which returns information about comments on a specified pull request.</p>
193
189
  </li>
194
190
  <li>
195
-
196
191
  <p>
197
192
  <a>GetPullRequest</a>, which returns information about a specified pull request.</p>
198
193
  </li>
@@ -221,7 +216,7 @@ branch for that pull request using the squash merge option.</p>
221
216
  </li>
222
217
  <li>
223
218
  <p>
224
- <a>MergePullRequestByThreeWay</a>. which merges the source destination branch of a pull request into the specified destination
219
+ <a>MergePullRequestByThreeWay</a>, which merges the source destination branch of a pull request into the specified destination
225
220
  branch for that pull request using the three-way merge option.</p>
226
221
  </li>
227
222
  <li>
@@ -253,21 +248,20 @@ branch for that pull request using the three-way merge option.</p>
253
248
  <a>UpdatePullRequestTitle</a>, which updates the title of a pull request.</p>
254
249
  </li>
255
250
  </ul>
256
-
257
251
  <p>Approval rule templates, by calling the following:</p>
258
252
  <ul>
259
253
  <li>
260
254
  <p>
261
255
  <a>AssociateApprovalRuleTemplateWithRepository</a>, which associates a template
262
256
  with a specified repository. After the template is associated with a repository,
263
- AWS CodeCommit creates approval rules that match the template conditions on
257
+ CodeCommit creates approval rules that match the template conditions on
264
258
  every pull request created in the specified repository.</p>
265
259
  </li>
266
260
  <li>
267
261
  <p>
268
262
  <a>BatchAssociateApprovalRuleTemplateWithRepositories</a>, which associates a
269
263
  template with one or more specified repositories. After the template is
270
- associated with a repository, AWS CodeCommit creates approval rules that match
264
+ associated with a repository, CodeCommit creates approval rules that match
271
265
  the template conditions on every pull request created in the specified
272
266
  repositories.</p>
273
267
  </li>
@@ -281,7 +275,7 @@ created in those repositories.</p>
281
275
  <li>
282
276
  <p>
283
277
  <a>CreateApprovalRuleTemplate</a>, which creates a template for approval rules that can then be associated with one or more repositories
284
- in your AWS account.</p>
278
+ in your Amazon Web Services account.</p>
285
279
  </li>
286
280
  <li>
287
281
  <p>
@@ -300,7 +294,7 @@ specified repository.</p>
300
294
  </li>
301
295
  <li>
302
296
  <p>
303
- <a>ListApprovalRuleTemplates</a>, which lists all approval rule templates in the AWS Region in your AWS account.</p>
297
+ <a>ListApprovalRuleTemplates</a>, which lists all approval rule templates in the Amazon Web Services Region in your Amazon Web Services account.</p>
304
298
  </li>
305
299
  <li>
306
300
  <p>
@@ -324,7 +318,6 @@ approval rule template.</p>
324
318
  <a>UpdateApprovalRuleTemplateContent</a>, which updates the content of an approval rule template.</p>
325
319
  </li>
326
320
  </ul>
327
-
328
321
  <p>Comments in a repository, by calling the following:</p>
329
322
  <ul>
330
323
  <li>
@@ -361,23 +354,21 @@ in a repository.</p>
361
354
  <a>UpdateComment</a>, which updates the content of a comment on a commit in a repository.</p>
362
355
  </li>
363
356
  </ul>
364
-
365
- <p>Tags used to tag resources in AWS CodeCommit (not Git tags), by calling the following:</p>
357
+ <p>Tags used to tag resources in CodeCommit (not Git tags), by calling the following:</p>
366
358
  <ul>
367
359
  <li>
368
360
  <p>
369
- <a>ListTagsForResource</a>, which gets information about AWS tags for a specified Amazon Resource Name (ARN) in AWS CodeCommit.</p>
361
+ <a>ListTagsForResource</a>, which gets information about Amazon Web Servicestags for a specified Amazon Resource Name (ARN) in CodeCommit.</p>
370
362
  </li>
371
363
  <li>
372
364
  <p>
373
- <a>TagResource</a>, which adds or updates tags for a resource in AWS CodeCommit.</p>
365
+ <a>TagResource</a>, which adds or updates tags for a resource in CodeCommit.</p>
374
366
  </li>
375
367
  <li>
376
368
  <p>
377
- <a>UntagResource</a>, which removes tags for a resource in AWS CodeCommit.</p>
369
+ <a>UntagResource</a>, which removes tags for a resource in CodeCommit.</p>
378
370
  </li>
379
371
  </ul>
380
-
381
372
  <p>Triggers, by calling the following:</p>
382
373
  <ul>
383
374
  <li>
@@ -396,8 +387,7 @@ be used to create or delete triggers.</p>
396
387
  by sending data to the trigger target.</p>
397
388
  </li>
398
389
  </ul>
399
-
400
- <p>For information about how to use AWS CodeCommit, see the <a href="https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html">AWS CodeCommit User Guide</a>.</p>
390
+ <p>For information about how to use CodeCommit, see the <a href="https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html">CodeCommit User Guide</a>.</p>
401
391
 
402
392
  ## Installing
403
393
 
@@ -953,6 +943,14 @@ ListBranches
953
943
 
954
944
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecommit/classes/listbranchescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecommit/interfaces/listbranchescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecommit/interfaces/listbranchescommandoutput.html)
955
945
 
946
+ </details>
947
+ <details>
948
+ <summary>
949
+ ListFileCommitHistory
950
+ </summary>
951
+
952
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecommit/classes/listfilecommithistorycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecommit/interfaces/listfilecommithistorycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-codecommit/interfaces/listfilecommithistorycommandoutput.html)
953
+
956
954
  </details>
957
955
  <details>
958
956
  <summary>
@@ -48,6 +48,7 @@ const GetRepositoryTriggersCommand_1 = require("./commands/GetRepositoryTriggers
48
48
  const ListApprovalRuleTemplatesCommand_1 = require("./commands/ListApprovalRuleTemplatesCommand");
49
49
  const ListAssociatedApprovalRuleTemplatesForRepositoryCommand_1 = require("./commands/ListAssociatedApprovalRuleTemplatesForRepositoryCommand");
50
50
  const ListBranchesCommand_1 = require("./commands/ListBranchesCommand");
51
+ const ListFileCommitHistoryCommand_1 = require("./commands/ListFileCommitHistoryCommand");
51
52
  const ListPullRequestsCommand_1 = require("./commands/ListPullRequestsCommand");
52
53
  const ListRepositoriesCommand_1 = require("./commands/ListRepositoriesCommand");
53
54
  const ListRepositoriesForApprovalRuleTemplateCommand_1 = require("./commands/ListRepositoriesForApprovalRuleTemplateCommand");
@@ -126,6 +127,7 @@ const commands = {
126
127
  ListApprovalRuleTemplatesCommand: ListApprovalRuleTemplatesCommand_1.ListApprovalRuleTemplatesCommand,
127
128
  ListAssociatedApprovalRuleTemplatesForRepositoryCommand: ListAssociatedApprovalRuleTemplatesForRepositoryCommand_1.ListAssociatedApprovalRuleTemplatesForRepositoryCommand,
128
129
  ListBranchesCommand: ListBranchesCommand_1.ListBranchesCommand,
130
+ ListFileCommitHistoryCommand: ListFileCommitHistoryCommand_1.ListFileCommitHistoryCommand,
129
131
  ListPullRequestsCommand: ListPullRequestsCommand_1.ListPullRequestsCommand,
130
132
  ListRepositoriesCommand: ListRepositoriesCommand_1.ListRepositoriesCommand,
131
133
  ListRepositoriesForApprovalRuleTemplateCommand: ListRepositoriesForApprovalRuleTemplateCommand_1.ListRepositoriesForApprovalRuleTemplateCommand,
@@ -14,6 +14,7 @@ const smithy_client_1 = require("@smithy/smithy-client");
14
14
  Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
15
15
  const EndpointParameters_1 = require("./endpoint/EndpointParameters");
16
16
  const runtimeConfig_1 = require("./runtimeConfig");
17
+ const runtimeExtensions_1 = require("./runtimeExtensions");
17
18
  class CodeCommitClient extends smithy_client_1.Client {
18
19
  constructor(...[configuration]) {
19
20
  const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
@@ -24,8 +25,9 @@ class CodeCommitClient extends smithy_client_1.Client {
24
25
  const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
25
26
  const _config_6 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_5);
26
27
  const _config_7 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_6);
27
- super(_config_7);
28
- this.config = _config_7;
28
+ const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []);
29
+ super(_config_8);
30
+ this.config = _config_8;
29
31
  this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
30
32
  this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
31
33
  this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListFileCommitHistoryCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
+ class ListFileCommitHistoryCommand extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListFileCommitHistoryCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "CodeCommitClient";
28
+ const commandName = "ListFileCommitHistoryCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_json1_1_1.se_ListFileCommitHistoryCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_json1_1_1.de_ListFileCommitHistoryCommand)(output, context);
44
+ }
45
+ }
46
+ exports.ListFileCommitHistoryCommand = ListFileCommitHistoryCommand;
@@ -46,6 +46,7 @@ tslib_1.__exportStar(require("./GetRepositoryTriggersCommand"), exports);
46
46
  tslib_1.__exportStar(require("./ListApprovalRuleTemplatesCommand"), exports);
47
47
  tslib_1.__exportStar(require("./ListAssociatedApprovalRuleTemplatesForRepositoryCommand"), exports);
48
48
  tslib_1.__exportStar(require("./ListBranchesCommand"), exports);
49
+ tslib_1.__exportStar(require("./ListFileCommitHistoryCommand"), exports);
49
50
  tslib_1.__exportStar(require("./ListPullRequestsCommand"), exports);
50
51
  tslib_1.__exportStar(require("./ListRepositoriesCommand"), exports);
51
52
  tslib_1.__exportStar(require("./ListRepositoriesForApprovalRuleTemplateCommand"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const p = "required", q = "fn", r = "argv", s = "ref";
5
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = { [p]: false, "type": "String" }, f = { [p]: true, "default": false, "type": "Boolean" }, g = { [s]: "Endpoint" }, h = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, i = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, j = {}, k = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsFIPS"] }] }, l = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsDualStack"] }] }, m = [g], n = [h], o = [i];
6
- const _data = { version: "1.0", parameters: { Region: e, UseDualStack: f, UseFIPS: f, Endpoint: e }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [q]: "isSet", [r]: m }, { [q]: "parseURL", [r]: m, assign: "url" }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: g, properties: j, headers: j }, type: d }] }] }, { conditions: [h, i], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ endpoint: { url: "https://codecommit-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [k], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://codecommit-fips.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://codecommit.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://codecommit.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] };
4
+ const q = "required", r = "fn", s = "argv", t = "ref";
5
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://codecommit-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://codecommit-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://codecommit.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://codecommit.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
7
7
  exports.ruleSet = _data;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BlobIdRequiredException = exports.BlobIdDoesNotExistException = exports.BeforeCommitIdAndAfterCommitIdAreSameException = exports.CommitIdsListRequiredException = exports.CommitIdsLimitExceededException = exports.TipsDivergenceExceededException = exports.MergeOptionRequiredException = exports.MaximumItemsToCompareExceededException = exports.MaximumFileContentToLoadExceededException = exports.InvalidMergeOptionException = exports.InvalidMaxMergeHunksException = exports.InvalidMaxConflictFilesException = exports.InvalidContinuationTokenException = exports.InvalidConflictResolutionStrategyException = exports.InvalidConflictDetailLevelException = exports.InvalidCommitException = exports.CommitRequiredException = exports.CommitDoesNotExistException = exports.ObjectTypeEnum = exports.ChangeTypeEnum = exports.FileModeTypeEnum = exports.MergeOptionTypeEnum = exports.ConflictResolutionStrategyTypeEnum = exports.ConflictDetailLevelTypeEnum = exports.RepositoryNamesRequiredException = exports.MaximumRepositoryNamesExceededException = exports.AuthorDoesNotExistException = exports.RepositoryNameRequiredException = exports.RepositoryDoesNotExistException = exports.MaximumRuleTemplatesAssociatedWithRepositoryException = exports.InvalidRepositoryNameException = exports.InvalidApprovalRuleTemplateNameException = exports.EncryptionKeyUnavailableException = exports.EncryptionKeyNotFoundException = exports.EncryptionKeyDisabledException = exports.EncryptionKeyAccessDeniedException = exports.EncryptionIntegrityChecksFailedException = exports.ApprovalStateRequiredException = exports.ApprovalRuleTemplateNameRequiredException = exports.ApprovalRuleTemplateNameAlreadyExistsException = exports.ApprovalRuleTemplateInUseException = exports.ApprovalRuleTemplateDoesNotExistException = exports.ApprovalRuleTemplateContentRequiredException = exports.OverrideStatus = exports.ApprovalRuleNameRequiredException = exports.ApprovalRuleNameAlreadyExistsException = exports.ApprovalRuleDoesNotExistException = exports.ApprovalRuleContentRequiredException = exports.ApprovalState = exports.ActorDoesNotExistException = void 0;
4
4
  exports.ReferenceDoesNotExistException = exports.MultipleRepositoriesInPullRequestException = exports.MaximumOpenPullRequestsExceededException = exports.InvalidTitleException = exports.InvalidTargetsException = exports.InvalidTargetException = exports.InvalidReferenceNameException = exports.InvalidDescriptionException = exports.InvalidClientRequestTokenException = exports.IdempotencyParameterMismatchException = exports.PullRequestStatusEnum = exports.SourceFileOrContentRequiredException = exports.SamePathRequestException = exports.RestrictedSourceFileException = exports.PutFileEntryConflictException = exports.PathRequiredException = exports.ParentCommitIdRequiredException = exports.ParentCommitIdOutdatedException = exports.ParentCommitDoesNotExistException = exports.NoChangeException = exports.NameLengthExceededException = exports.MaximumFileEntriesExceededException = exports.InvalidPathException = exports.InvalidParentCommitIdException = exports.InvalidFileModeException = exports.InvalidEmailException = exports.InvalidDeletionParameterException = exports.FolderContentSizeLimitExceededException = exports.FilePathConflictsWithSubmodulePathException = exports.FileNameConflictsWithDirectoryNameException = exports.FileModeRequiredException = exports.FileEntryRequiredException = exports.FileDoesNotExistException = exports.FileContentSizeLimitExceededException = exports.FileContentAndSourceFileSpecifiedException = exports.DirectoryNameConflictsWithFileNameException = exports.CommitMessageLengthExceededException = exports.InvalidCommitIdException = exports.InvalidBranchNameException = exports.CommitIdRequiredException = exports.NumberOfRuleTemplatesExceededException = exports.InvalidApprovalRuleTemplateDescriptionException = exports.InvalidApprovalRuleTemplateContentException = exports.ClientRequestTokenRequiredException = exports.CannotModifyApprovalRuleFromTemplateException = exports.CannotDeleteApprovalRuleFromTemplateException = exports.BranchNameRequiredException = exports.BranchNameIsTagNameException = exports.BranchNameExistsException = exports.BranchDoesNotExistException = void 0;
5
5
  exports.FolderDoesNotExistException = exports.PathDoesNotExistException = exports.CommitIdDoesNotExistException = exports.RepositoryNotAssociatedWithPullRequestException = exports.RelativeFileVersionEnum = exports.InvalidReactionUserArnException = exports.InvalidBlobIdException = exports.FileTooLargeException = exports.RevisionNotCurrentException = exports.RevisionIdRequiredException = exports.InvalidRevisionIdException = exports.InvalidPullRequestEventTypeException = exports.InvalidMaxResultsException = exports.InvalidActorArnException = exports.PullRequestEventType = exports.InvalidCommentIdException = exports.CommentIdRequiredException = exports.CommentDoesNotExistException = exports.CommentDeletedException = exports.DefaultBranchCannotBeDeletedException = exports.ReplacementTypeRequiredException = exports.ReplacementContentRequiredException = exports.MultipleConflictResolutionEntriesException = exports.MaximumConflictResolutionEntriesExceededException = exports.ManualMergeRequiredException = exports.InvalidReplacementTypeException = exports.InvalidReplacementContentException = exports.InvalidConflictResolutionException = exports.ReplacementTypeEnum = exports.ConcurrentReferenceUpdateException = exports.TooManyTagsException = exports.TagPolicyException = exports.RepositoryNameExistsException = exports.RepositoryLimitExceededException = exports.InvalidTagsMapException = exports.InvalidSystemTagUsageException = exports.InvalidRepositoryDescriptionException = exports.PullRequestIdRequiredException = exports.PullRequestDoesNotExistException = exports.PullRequestAlreadyClosedException = exports.NumberOfRulesExceededException = exports.InvalidPullRequestIdException = exports.InvalidApprovalRuleNameException = exports.InvalidApprovalRuleContentException = exports.TitleRequiredException = exports.TargetsRequiredException = exports.TargetRequiredException = exports.SourceAndDestinationAreSameException = exports.ReferenceTypeNotSupportedException = exports.ReferenceNameRequiredException = void 0;
6
- exports.InvalidSortByException = exports.InvalidOrderException = exports.InvalidPullRequestStatusException = exports.InvalidAuthorArnException = exports.RepositoryTriggerEventEnum = exports.InvalidSourceCommitSpecifierException = exports.InvalidDestinationCommitSpecifierException = void 0;
6
+ exports.InvalidPullRequestStatusException = exports.InvalidAuthorArnException = exports.RepositoryTriggerEventEnum = exports.InvalidSourceCommitSpecifierException = exports.InvalidDestinationCommitSpecifierException = void 0;
7
7
  const CodeCommitServiceException_1 = require("./CodeCommitServiceException");
8
8
  class ActorDoesNotExistException extends CodeCommitServiceException_1.CodeCommitServiceException {
9
9
  constructor(opts) {
@@ -1921,29 +1921,3 @@ class InvalidPullRequestStatusException extends CodeCommitServiceException_1.Cod
1921
1921
  }
1922
1922
  }
1923
1923
  exports.InvalidPullRequestStatusException = InvalidPullRequestStatusException;
1924
- class InvalidOrderException extends CodeCommitServiceException_1.CodeCommitServiceException {
1925
- constructor(opts) {
1926
- super({
1927
- name: "InvalidOrderException",
1928
- $fault: "client",
1929
- ...opts,
1930
- });
1931
- this.name = "InvalidOrderException";
1932
- this.$fault = "client";
1933
- Object.setPrototypeOf(this, InvalidOrderException.prototype);
1934
- }
1935
- }
1936
- exports.InvalidOrderException = InvalidOrderException;
1937
- class InvalidSortByException extends CodeCommitServiceException_1.CodeCommitServiceException {
1938
- constructor(opts) {
1939
- super({
1940
- name: "InvalidSortByException",
1941
- $fault: "client",
1942
- ...opts,
1943
- });
1944
- this.name = "InvalidSortByException";
1945
- this.$fault = "client";
1946
- Object.setPrototypeOf(this, InvalidSortByException.prototype);
1947
- }
1948
- }
1949
- exports.InvalidSortByException = InvalidSortByException;
@@ -1,7 +1,33 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PullRequestStatusRequiredException = exports.InvalidPullRequestStatusUpdateException = exports.PullRequestCannotBeApprovedByAuthorException = exports.MaximumNumberOfApprovalsExceededException = exports.InvalidApprovalStateException = exports.CommentNotCreatedByCallerException = exports.InvalidRuleContentSha256Exception = exports.TagKeysListRequiredException = exports.InvalidTagKeysListException = exports.TagsMapRequiredException = exports.RepositoryTriggersListRequiredException = exports.RepositoryTriggerNameRequiredException = exports.RepositoryTriggerEventsListRequiredException = exports.RepositoryTriggerDestinationArnRequiredException = exports.RepositoryTriggerBranchNameListRequiredException = exports.MaximumRepositoryTriggersExceededException = exports.MaximumBranchesExceededException = exports.InvalidRepositoryTriggerRegionException = exports.InvalidRepositoryTriggerNameException = exports.InvalidRepositoryTriggerEventsException = exports.InvalidRepositoryTriggerDestinationArnException = exports.InvalidRepositoryTriggerCustomDataException = exports.InvalidRepositoryTriggerBranchNameException = exports.SameFileContentException = exports.FileContentRequiredException = exports.ReactionValueRequiredException = exports.ReactionLimitExceededException = exports.InvalidReactionValueException = exports.InvalidRelativeFileVersionEnumException = exports.InvalidFilePositionException = exports.InvalidFileLocationException = exports.CommentContentSizeLimitExceededException = exports.CommentContentRequiredException = exports.OverrideStatusRequiredException = exports.OverrideAlreadySetException = exports.InvalidOverrideStatusException = exports.TipOfSourceReferenceIsDifferentException = exports.PullRequestApprovalRulesNotSatisfiedException = exports.InvalidTargetBranchException = exports.ResourceArnRequiredException = exports.InvalidResourceArnException = exports.SortByEnum = exports.OrderEnum = void 0;
3
+ exports.PullRequestStatusRequiredException = exports.InvalidPullRequestStatusUpdateException = exports.PullRequestCannotBeApprovedByAuthorException = exports.MaximumNumberOfApprovalsExceededException = exports.InvalidApprovalStateException = exports.CommentNotCreatedByCallerException = exports.InvalidRuleContentSha256Exception = exports.TagKeysListRequiredException = exports.InvalidTagKeysListException = exports.TagsMapRequiredException = exports.RepositoryTriggersListRequiredException = exports.RepositoryTriggerNameRequiredException = exports.RepositoryTriggerEventsListRequiredException = exports.RepositoryTriggerDestinationArnRequiredException = exports.RepositoryTriggerBranchNameListRequiredException = exports.MaximumRepositoryTriggersExceededException = exports.MaximumBranchesExceededException = exports.InvalidRepositoryTriggerRegionException = exports.InvalidRepositoryTriggerNameException = exports.InvalidRepositoryTriggerEventsException = exports.InvalidRepositoryTriggerDestinationArnException = exports.InvalidRepositoryTriggerCustomDataException = exports.InvalidRepositoryTriggerBranchNameException = exports.SameFileContentException = exports.FileContentRequiredException = exports.ReactionValueRequiredException = exports.ReactionLimitExceededException = exports.InvalidReactionValueException = exports.InvalidRelativeFileVersionEnumException = exports.InvalidFilePositionException = exports.InvalidFileLocationException = exports.CommentContentSizeLimitExceededException = exports.CommentContentRequiredException = exports.OverrideStatusRequiredException = exports.OverrideAlreadySetException = exports.InvalidOverrideStatusException = exports.TipOfSourceReferenceIsDifferentException = exports.PullRequestApprovalRulesNotSatisfiedException = exports.InvalidTargetBranchException = exports.ResourceArnRequiredException = exports.InvalidResourceArnException = exports.SortByEnum = exports.OrderEnum = exports.InvalidSortByException = exports.InvalidOrderException = void 0;
4
4
  const CodeCommitServiceException_1 = require("./CodeCommitServiceException");
5
+ class InvalidOrderException extends CodeCommitServiceException_1.CodeCommitServiceException {
6
+ constructor(opts) {
7
+ super({
8
+ name: "InvalidOrderException",
9
+ $fault: "client",
10
+ ...opts,
11
+ });
12
+ this.name = "InvalidOrderException";
13
+ this.$fault = "client";
14
+ Object.setPrototypeOf(this, InvalidOrderException.prototype);
15
+ }
16
+ }
17
+ exports.InvalidOrderException = InvalidOrderException;
18
+ class InvalidSortByException extends CodeCommitServiceException_1.CodeCommitServiceException {
19
+ constructor(opts) {
20
+ super({
21
+ name: "InvalidSortByException",
22
+ $fault: "client",
23
+ ...opts,
24
+ });
25
+ this.name = "InvalidSortByException";
26
+ this.$fault = "client";
27
+ Object.setPrototypeOf(this, InvalidSortByException.prototype);
28
+ }
29
+ }
30
+ exports.InvalidSortByException = InvalidSortByException;
5
31
  exports.OrderEnum = {
6
32
  ASCENDING: "ascending",
7
33
  DESCENDING: "descending",
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListFileCommitHistory = void 0;
4
+ const CodeCommitClient_1 = require("../CodeCommitClient");
5
+ const ListFileCommitHistoryCommand_1 = require("../commands/ListFileCommitHistoryCommand");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListFileCommitHistoryCommand_1.ListFileCommitHistoryCommand(input), ...args);
8
+ };
9
+ async function* paginateListFileCommitHistory(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["maxResults"] = config.pageSize;
16
+ if (config.client instanceof CodeCommitClient_1.CodeCommitClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListFileCommitHistory = paginateListFileCommitHistory;
@@ -12,6 +12,7 @@ tslib_1.__exportStar(require("./Interfaces"), exports);
12
12
  tslib_1.__exportStar(require("./ListApprovalRuleTemplatesPaginator"), exports);
13
13
  tslib_1.__exportStar(require("./ListAssociatedApprovalRuleTemplatesForRepositoryPaginator"), exports);
14
14
  tslib_1.__exportStar(require("./ListBranchesPaginator"), exports);
15
+ tslib_1.__exportStar(require("./ListFileCommitHistoryPaginator"), exports);
15
16
  tslib_1.__exportStar(require("./ListPullRequestsPaginator"), exports);
16
17
  tslib_1.__exportStar(require("./ListRepositoriesForApprovalRuleTemplatePaginator"), exports);
17
18
  tslib_1.__exportStar(require("./ListRepositoriesPaginator"), exports);
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_MergeBranchesByFastForwardCommand = exports.se_ListTagsForResourceCommand = exports.se_ListRepositoriesForApprovalRuleTemplateCommand = exports.se_ListRepositoriesCommand = exports.se_ListPullRequestsCommand = exports.se_ListBranchesCommand = exports.se_ListAssociatedApprovalRuleTemplatesForRepositoryCommand = exports.se_ListApprovalRuleTemplatesCommand = exports.se_GetRepositoryTriggersCommand = exports.se_GetRepositoryCommand = exports.se_GetPullRequestOverrideStateCommand = exports.se_GetPullRequestApprovalStatesCommand = exports.se_GetPullRequestCommand = exports.se_GetMergeOptionsCommand = exports.se_GetMergeConflictsCommand = exports.se_GetMergeCommitCommand = exports.se_GetFolderCommand = exports.se_GetFileCommand = exports.se_GetDifferencesCommand = exports.se_GetCommitCommand = exports.se_GetCommentsForPullRequestCommand = exports.se_GetCommentsForComparedCommitCommand = exports.se_GetCommentReactionsCommand = exports.se_GetCommentCommand = exports.se_GetBranchCommand = exports.se_GetBlobCommand = exports.se_GetApprovalRuleTemplateCommand = exports.se_EvaluatePullRequestApprovalRulesCommand = exports.se_DisassociateApprovalRuleTemplateFromRepositoryCommand = exports.se_DescribePullRequestEventsCommand = exports.se_DescribeMergeConflictsCommand = exports.se_DeleteRepositoryCommand = exports.se_DeletePullRequestApprovalRuleCommand = exports.se_DeleteFileCommand = exports.se_DeleteCommentContentCommand = exports.se_DeleteBranchCommand = exports.se_DeleteApprovalRuleTemplateCommand = exports.se_CreateUnreferencedMergeCommitCommand = exports.se_CreateRepositoryCommand = exports.se_CreatePullRequestApprovalRuleCommand = exports.se_CreatePullRequestCommand = exports.se_CreateCommitCommand = exports.se_CreateBranchCommand = exports.se_CreateApprovalRuleTemplateCommand = exports.se_BatchGetRepositoriesCommand = exports.se_BatchGetCommitsCommand = exports.se_BatchDisassociateApprovalRuleTemplateFromRepositoriesCommand = exports.se_BatchDescribeMergeConflictsCommand = exports.se_BatchAssociateApprovalRuleTemplateWithRepositoriesCommand = exports.se_AssociateApprovalRuleTemplateWithRepositoryCommand = void 0;
4
- exports.de_EvaluatePullRequestApprovalRulesCommand = exports.de_DisassociateApprovalRuleTemplateFromRepositoryCommand = exports.de_DescribePullRequestEventsCommand = exports.de_DescribeMergeConflictsCommand = exports.de_DeleteRepositoryCommand = exports.de_DeletePullRequestApprovalRuleCommand = exports.de_DeleteFileCommand = exports.de_DeleteCommentContentCommand = exports.de_DeleteBranchCommand = exports.de_DeleteApprovalRuleTemplateCommand = exports.de_CreateUnreferencedMergeCommitCommand = exports.de_CreateRepositoryCommand = exports.de_CreatePullRequestApprovalRuleCommand = exports.de_CreatePullRequestCommand = exports.de_CreateCommitCommand = exports.de_CreateBranchCommand = exports.de_CreateApprovalRuleTemplateCommand = exports.de_BatchGetRepositoriesCommand = exports.de_BatchGetCommitsCommand = exports.de_BatchDisassociateApprovalRuleTemplateFromRepositoriesCommand = exports.de_BatchDescribeMergeConflictsCommand = exports.de_BatchAssociateApprovalRuleTemplateWithRepositoriesCommand = exports.de_AssociateApprovalRuleTemplateWithRepositoryCommand = exports.se_UpdateRepositoryNameCommand = exports.se_UpdateRepositoryDescriptionCommand = exports.se_UpdatePullRequestTitleCommand = exports.se_UpdatePullRequestStatusCommand = exports.se_UpdatePullRequestDescriptionCommand = exports.se_UpdatePullRequestApprovalStateCommand = exports.se_UpdatePullRequestApprovalRuleContentCommand = exports.se_UpdateDefaultBranchCommand = exports.se_UpdateCommentCommand = exports.se_UpdateApprovalRuleTemplateNameCommand = exports.se_UpdateApprovalRuleTemplateDescriptionCommand = exports.se_UpdateApprovalRuleTemplateContentCommand = exports.se_UntagResourceCommand = exports.se_TestRepositoryTriggersCommand = exports.se_TagResourceCommand = exports.se_PutRepositoryTriggersCommand = exports.se_PutFileCommand = exports.se_PutCommentReactionCommand = exports.se_PostCommentReplyCommand = exports.se_PostCommentForPullRequestCommand = exports.se_PostCommentForComparedCommitCommand = exports.se_OverridePullRequestApprovalRulesCommand = exports.se_MergePullRequestByThreeWayCommand = exports.se_MergePullRequestBySquashCommand = exports.se_MergePullRequestByFastForwardCommand = exports.se_MergeBranchesByThreeWayCommand = exports.se_MergeBranchesBySquashCommand = void 0;
5
- exports.de_UpdatePullRequestDescriptionCommand = exports.de_UpdatePullRequestApprovalStateCommand = exports.de_UpdatePullRequestApprovalRuleContentCommand = exports.de_UpdateDefaultBranchCommand = exports.de_UpdateCommentCommand = exports.de_UpdateApprovalRuleTemplateNameCommand = exports.de_UpdateApprovalRuleTemplateDescriptionCommand = exports.de_UpdateApprovalRuleTemplateContentCommand = exports.de_UntagResourceCommand = exports.de_TestRepositoryTriggersCommand = exports.de_TagResourceCommand = exports.de_PutRepositoryTriggersCommand = exports.de_PutFileCommand = exports.de_PutCommentReactionCommand = exports.de_PostCommentReplyCommand = exports.de_PostCommentForPullRequestCommand = exports.de_PostCommentForComparedCommitCommand = exports.de_OverridePullRequestApprovalRulesCommand = exports.de_MergePullRequestByThreeWayCommand = exports.de_MergePullRequestBySquashCommand = exports.de_MergePullRequestByFastForwardCommand = exports.de_MergeBranchesByThreeWayCommand = exports.de_MergeBranchesBySquashCommand = exports.de_MergeBranchesByFastForwardCommand = exports.de_ListTagsForResourceCommand = exports.de_ListRepositoriesForApprovalRuleTemplateCommand = exports.de_ListRepositoriesCommand = exports.de_ListPullRequestsCommand = exports.de_ListBranchesCommand = exports.de_ListAssociatedApprovalRuleTemplatesForRepositoryCommand = exports.de_ListApprovalRuleTemplatesCommand = exports.de_GetRepositoryTriggersCommand = exports.de_GetRepositoryCommand = exports.de_GetPullRequestOverrideStateCommand = exports.de_GetPullRequestApprovalStatesCommand = exports.de_GetPullRequestCommand = exports.de_GetMergeOptionsCommand = exports.de_GetMergeConflictsCommand = exports.de_GetMergeCommitCommand = exports.de_GetFolderCommand = exports.de_GetFileCommand = exports.de_GetDifferencesCommand = exports.de_GetCommitCommand = exports.de_GetCommentsForPullRequestCommand = exports.de_GetCommentsForComparedCommitCommand = exports.de_GetCommentReactionsCommand = exports.de_GetCommentCommand = exports.de_GetBranchCommand = exports.de_GetBlobCommand = exports.de_GetApprovalRuleTemplateCommand = void 0;
6
- exports.de_UpdateRepositoryNameCommand = exports.de_UpdateRepositoryDescriptionCommand = exports.de_UpdatePullRequestTitleCommand = exports.de_UpdatePullRequestStatusCommand = void 0;
3
+ exports.se_ListTagsForResourceCommand = exports.se_ListRepositoriesForApprovalRuleTemplateCommand = exports.se_ListRepositoriesCommand = exports.se_ListPullRequestsCommand = exports.se_ListFileCommitHistoryCommand = exports.se_ListBranchesCommand = exports.se_ListAssociatedApprovalRuleTemplatesForRepositoryCommand = exports.se_ListApprovalRuleTemplatesCommand = exports.se_GetRepositoryTriggersCommand = exports.se_GetRepositoryCommand = exports.se_GetPullRequestOverrideStateCommand = exports.se_GetPullRequestApprovalStatesCommand = exports.se_GetPullRequestCommand = exports.se_GetMergeOptionsCommand = exports.se_GetMergeConflictsCommand = exports.se_GetMergeCommitCommand = exports.se_GetFolderCommand = exports.se_GetFileCommand = exports.se_GetDifferencesCommand = exports.se_GetCommitCommand = exports.se_GetCommentsForPullRequestCommand = exports.se_GetCommentsForComparedCommitCommand = exports.se_GetCommentReactionsCommand = exports.se_GetCommentCommand = exports.se_GetBranchCommand = exports.se_GetBlobCommand = exports.se_GetApprovalRuleTemplateCommand = exports.se_EvaluatePullRequestApprovalRulesCommand = exports.se_DisassociateApprovalRuleTemplateFromRepositoryCommand = exports.se_DescribePullRequestEventsCommand = exports.se_DescribeMergeConflictsCommand = exports.se_DeleteRepositoryCommand = exports.se_DeletePullRequestApprovalRuleCommand = exports.se_DeleteFileCommand = exports.se_DeleteCommentContentCommand = exports.se_DeleteBranchCommand = exports.se_DeleteApprovalRuleTemplateCommand = exports.se_CreateUnreferencedMergeCommitCommand = exports.se_CreateRepositoryCommand = exports.se_CreatePullRequestApprovalRuleCommand = exports.se_CreatePullRequestCommand = exports.se_CreateCommitCommand = exports.se_CreateBranchCommand = exports.se_CreateApprovalRuleTemplateCommand = exports.se_BatchGetRepositoriesCommand = exports.se_BatchGetCommitsCommand = exports.se_BatchDisassociateApprovalRuleTemplateFromRepositoriesCommand = exports.se_BatchDescribeMergeConflictsCommand = exports.se_BatchAssociateApprovalRuleTemplateWithRepositoriesCommand = exports.se_AssociateApprovalRuleTemplateWithRepositoryCommand = void 0;
4
+ exports.de_DisassociateApprovalRuleTemplateFromRepositoryCommand = exports.de_DescribePullRequestEventsCommand = exports.de_DescribeMergeConflictsCommand = exports.de_DeleteRepositoryCommand = exports.de_DeletePullRequestApprovalRuleCommand = exports.de_DeleteFileCommand = exports.de_DeleteCommentContentCommand = exports.de_DeleteBranchCommand = exports.de_DeleteApprovalRuleTemplateCommand = exports.de_CreateUnreferencedMergeCommitCommand = exports.de_CreateRepositoryCommand = exports.de_CreatePullRequestApprovalRuleCommand = exports.de_CreatePullRequestCommand = exports.de_CreateCommitCommand = exports.de_CreateBranchCommand = exports.de_CreateApprovalRuleTemplateCommand = exports.de_BatchGetRepositoriesCommand = exports.de_BatchGetCommitsCommand = exports.de_BatchDisassociateApprovalRuleTemplateFromRepositoriesCommand = exports.de_BatchDescribeMergeConflictsCommand = exports.de_BatchAssociateApprovalRuleTemplateWithRepositoriesCommand = exports.de_AssociateApprovalRuleTemplateWithRepositoryCommand = exports.se_UpdateRepositoryNameCommand = exports.se_UpdateRepositoryDescriptionCommand = exports.se_UpdatePullRequestTitleCommand = exports.se_UpdatePullRequestStatusCommand = exports.se_UpdatePullRequestDescriptionCommand = exports.se_UpdatePullRequestApprovalStateCommand = exports.se_UpdatePullRequestApprovalRuleContentCommand = exports.se_UpdateDefaultBranchCommand = exports.se_UpdateCommentCommand = exports.se_UpdateApprovalRuleTemplateNameCommand = exports.se_UpdateApprovalRuleTemplateDescriptionCommand = exports.se_UpdateApprovalRuleTemplateContentCommand = exports.se_UntagResourceCommand = exports.se_TestRepositoryTriggersCommand = exports.se_TagResourceCommand = exports.se_PutRepositoryTriggersCommand = exports.se_PutFileCommand = exports.se_PutCommentReactionCommand = exports.se_PostCommentReplyCommand = exports.se_PostCommentForPullRequestCommand = exports.se_PostCommentForComparedCommitCommand = exports.se_OverridePullRequestApprovalRulesCommand = exports.se_MergePullRequestByThreeWayCommand = exports.se_MergePullRequestBySquashCommand = exports.se_MergePullRequestByFastForwardCommand = exports.se_MergeBranchesByThreeWayCommand = exports.se_MergeBranchesBySquashCommand = exports.se_MergeBranchesByFastForwardCommand = void 0;
5
+ exports.de_UpdatePullRequestApprovalRuleContentCommand = exports.de_UpdateDefaultBranchCommand = exports.de_UpdateCommentCommand = exports.de_UpdateApprovalRuleTemplateNameCommand = exports.de_UpdateApprovalRuleTemplateDescriptionCommand = exports.de_UpdateApprovalRuleTemplateContentCommand = exports.de_UntagResourceCommand = exports.de_TestRepositoryTriggersCommand = exports.de_TagResourceCommand = exports.de_PutRepositoryTriggersCommand = exports.de_PutFileCommand = exports.de_PutCommentReactionCommand = exports.de_PostCommentReplyCommand = exports.de_PostCommentForPullRequestCommand = exports.de_PostCommentForComparedCommitCommand = exports.de_OverridePullRequestApprovalRulesCommand = exports.de_MergePullRequestByThreeWayCommand = exports.de_MergePullRequestBySquashCommand = exports.de_MergePullRequestByFastForwardCommand = exports.de_MergeBranchesByThreeWayCommand = exports.de_MergeBranchesBySquashCommand = exports.de_MergeBranchesByFastForwardCommand = exports.de_ListTagsForResourceCommand = exports.de_ListRepositoriesForApprovalRuleTemplateCommand = exports.de_ListRepositoriesCommand = exports.de_ListPullRequestsCommand = exports.de_ListFileCommitHistoryCommand = exports.de_ListBranchesCommand = exports.de_ListAssociatedApprovalRuleTemplatesForRepositoryCommand = exports.de_ListApprovalRuleTemplatesCommand = exports.de_GetRepositoryTriggersCommand = exports.de_GetRepositoryCommand = exports.de_GetPullRequestOverrideStateCommand = exports.de_GetPullRequestApprovalStatesCommand = exports.de_GetPullRequestCommand = exports.de_GetMergeOptionsCommand = exports.de_GetMergeConflictsCommand = exports.de_GetMergeCommitCommand = exports.de_GetFolderCommand = exports.de_GetFileCommand = exports.de_GetDifferencesCommand = exports.de_GetCommitCommand = exports.de_GetCommentsForPullRequestCommand = exports.de_GetCommentsForComparedCommitCommand = exports.de_GetCommentReactionsCommand = exports.de_GetCommentCommand = exports.de_GetBranchCommand = exports.de_GetBlobCommand = exports.de_GetApprovalRuleTemplateCommand = exports.de_EvaluatePullRequestApprovalRulesCommand = void 0;
6
+ exports.de_UpdateRepositoryNameCommand = exports.de_UpdateRepositoryDescriptionCommand = exports.de_UpdatePullRequestTitleCommand = exports.de_UpdatePullRequestStatusCommand = exports.de_UpdatePullRequestDescriptionCommand = exports.de_UpdatePullRequestApprovalStateCommand = void 0;
7
7
  const protocol_http_1 = require("@smithy/protocol-http");
8
8
  const smithy_client_1 = require("@smithy/smithy-client");
9
9
  const uuid_1 = require("uuid");
@@ -325,6 +325,13 @@ const se_ListBranchesCommand = async (input, context) => {
325
325
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
326
326
  };
327
327
  exports.se_ListBranchesCommand = se_ListBranchesCommand;
328
+ const se_ListFileCommitHistoryCommand = async (input, context) => {
329
+ const headers = sharedHeaders("ListFileCommitHistory");
330
+ let body;
331
+ body = JSON.stringify((0, smithy_client_1._json)(input));
332
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
333
+ };
334
+ exports.se_ListFileCommitHistoryCommand = se_ListFileCommitHistoryCommand;
328
335
  const se_ListPullRequestsCommand = async (input, context) => {
329
336
  const headers = sharedHeaders("ListPullRequests");
330
337
  let body;
@@ -3627,6 +3634,78 @@ const de_ListBranchesCommandError = async (output, context) => {
3627
3634
  });
3628
3635
  }
3629
3636
  };
3637
+ const de_ListFileCommitHistoryCommand = async (output, context) => {
3638
+ if (output.statusCode >= 300) {
3639
+ return de_ListFileCommitHistoryCommandError(output, context);
3640
+ }
3641
+ const data = await parseBody(output.body, context);
3642
+ let contents = {};
3643
+ contents = (0, smithy_client_1._json)(data);
3644
+ const response = {
3645
+ $metadata: deserializeMetadata(output),
3646
+ ...contents,
3647
+ };
3648
+ return response;
3649
+ };
3650
+ exports.de_ListFileCommitHistoryCommand = de_ListFileCommitHistoryCommand;
3651
+ const de_ListFileCommitHistoryCommandError = async (output, context) => {
3652
+ const parsedOutput = {
3653
+ ...output,
3654
+ body: await parseErrorBody(output.body, context),
3655
+ };
3656
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3657
+ switch (errorCode) {
3658
+ case "CommitDoesNotExistException":
3659
+ case "com.amazonaws.codecommit#CommitDoesNotExistException":
3660
+ throw await de_CommitDoesNotExistExceptionRes(parsedOutput, context);
3661
+ case "CommitRequiredException":
3662
+ case "com.amazonaws.codecommit#CommitRequiredException":
3663
+ throw await de_CommitRequiredExceptionRes(parsedOutput, context);
3664
+ case "EncryptionIntegrityChecksFailedException":
3665
+ case "com.amazonaws.codecommit#EncryptionIntegrityChecksFailedException":
3666
+ throw await de_EncryptionIntegrityChecksFailedExceptionRes(parsedOutput, context);
3667
+ case "EncryptionKeyAccessDeniedException":
3668
+ case "com.amazonaws.codecommit#EncryptionKeyAccessDeniedException":
3669
+ throw await de_EncryptionKeyAccessDeniedExceptionRes(parsedOutput, context);
3670
+ case "EncryptionKeyDisabledException":
3671
+ case "com.amazonaws.codecommit#EncryptionKeyDisabledException":
3672
+ throw await de_EncryptionKeyDisabledExceptionRes(parsedOutput, context);
3673
+ case "EncryptionKeyNotFoundException":
3674
+ case "com.amazonaws.codecommit#EncryptionKeyNotFoundException":
3675
+ throw await de_EncryptionKeyNotFoundExceptionRes(parsedOutput, context);
3676
+ case "EncryptionKeyUnavailableException":
3677
+ case "com.amazonaws.codecommit#EncryptionKeyUnavailableException":
3678
+ throw await de_EncryptionKeyUnavailableExceptionRes(parsedOutput, context);
3679
+ case "InvalidCommitException":
3680
+ case "com.amazonaws.codecommit#InvalidCommitException":
3681
+ throw await de_InvalidCommitExceptionRes(parsedOutput, context);
3682
+ case "InvalidContinuationTokenException":
3683
+ case "com.amazonaws.codecommit#InvalidContinuationTokenException":
3684
+ throw await de_InvalidContinuationTokenExceptionRes(parsedOutput, context);
3685
+ case "InvalidMaxResultsException":
3686
+ case "com.amazonaws.codecommit#InvalidMaxResultsException":
3687
+ throw await de_InvalidMaxResultsExceptionRes(parsedOutput, context);
3688
+ case "InvalidRepositoryNameException":
3689
+ case "com.amazonaws.codecommit#InvalidRepositoryNameException":
3690
+ throw await de_InvalidRepositoryNameExceptionRes(parsedOutput, context);
3691
+ case "RepositoryDoesNotExistException":
3692
+ case "com.amazonaws.codecommit#RepositoryDoesNotExistException":
3693
+ throw await de_RepositoryDoesNotExistExceptionRes(parsedOutput, context);
3694
+ case "RepositoryNameRequiredException":
3695
+ case "com.amazonaws.codecommit#RepositoryNameRequiredException":
3696
+ throw await de_RepositoryNameRequiredExceptionRes(parsedOutput, context);
3697
+ case "TipsDivergenceExceededException":
3698
+ case "com.amazonaws.codecommit#TipsDivergenceExceededException":
3699
+ throw await de_TipsDivergenceExceededExceptionRes(parsedOutput, context);
3700
+ default:
3701
+ const parsedBody = parsedOutput.body;
3702
+ return throwDefaultError({
3703
+ output,
3704
+ parsedBody,
3705
+ errorCode,
3706
+ });
3707
+ }
3708
+ };
3630
3709
  const de_ListPullRequestsCommand = async (output, context) => {
3631
3710
  if (output.statusCode >= 300) {
3632
3711
  return de_ListPullRequestsCommandError(output, context);
@@ -6795,7 +6874,7 @@ const de_InvalidMergeOptionExceptionRes = async (parsedOutput, context) => {
6795
6874
  const de_InvalidOrderExceptionRes = async (parsedOutput, context) => {
6796
6875
  const body = parsedOutput.body;
6797
6876
  const deserialized = (0, smithy_client_1._json)(body);
6798
- const exception = new models_0_1.InvalidOrderException({
6877
+ const exception = new models_1_1.InvalidOrderException({
6799
6878
  $metadata: deserializeMetadata(parsedOutput),
6800
6879
  ...deserialized,
6801
6880
  });
@@ -7020,7 +7099,7 @@ const de_InvalidRuleContentSha256ExceptionRes = async (parsedOutput, context) =>
7020
7099
  const de_InvalidSortByExceptionRes = async (parsedOutput, context) => {
7021
7100
  const body = parsedOutput.body;
7022
7101
  const deserialized = (0, smithy_client_1._json)(body);
7023
- const exception = new models_0_1.InvalidSortByException({
7102
+ const exception = new models_1_1.InvalidSortByException({
7024
7103
  $metadata: deserializeMetadata(parsedOutput),
7025
7104
  ...deserialized,
7026
7105
  });
@@ -12,6 +12,7 @@ const getRuntimeConfig = (config) => ({
12
12
  base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
13
13
  disableHostPrefix: config?.disableHostPrefix ?? false,
14
14
  endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
15
+ extensions: config?.extensions ?? [],
15
16
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
16
17
  serviceId: config?.serviceId ?? "CodeCommit",
17
18
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,