@aws-sdk/client-codeartifact 3.535.0 → 3.539.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 (67) hide show
  1. package/README.md +149 -6
  2. package/dist-cjs/index.js +609 -2
  3. package/dist-es/Codeartifact.js +20 -0
  4. package/dist-es/commands/CreatePackageGroupCommand.js +24 -0
  5. package/dist-es/commands/DeletePackageGroupCommand.js +24 -0
  6. package/dist-es/commands/DescribePackageGroupCommand.js +24 -0
  7. package/dist-es/commands/GetAssociatedPackageGroupCommand.js +24 -0
  8. package/dist-es/commands/GetAuthorizationTokenCommand.js +2 -1
  9. package/dist-es/commands/ListAllowedRepositoriesForGroupCommand.js +24 -0
  10. package/dist-es/commands/ListAssociatedPackagesCommand.js +24 -0
  11. package/dist-es/commands/ListPackageGroupsCommand.js +24 -0
  12. package/dist-es/commands/ListSubPackageGroupsCommand.js +24 -0
  13. package/dist-es/commands/UpdatePackageGroupCommand.js +24 -0
  14. package/dist-es/commands/UpdatePackageGroupOriginConfigurationCommand.js +24 -0
  15. package/dist-es/commands/index.js +10 -0
  16. package/dist-es/models/models_0.js +22 -0
  17. package/dist-es/pagination/ListAllowedRepositoriesForGroupPaginator.js +4 -0
  18. package/dist-es/pagination/ListAssociatedPackagesPaginator.js +4 -0
  19. package/dist-es/pagination/ListPackageGroupsPaginator.js +4 -0
  20. package/dist-es/pagination/ListSubPackageGroupsPaginator.js +4 -0
  21. package/dist-es/pagination/index.js +4 -0
  22. package/dist-es/protocols/Aws_restJson1.js +347 -0
  23. package/dist-types/Codeartifact.d.ts +139 -6
  24. package/dist-types/CodeartifactClient.d.ts +81 -8
  25. package/dist-types/commands/CreatePackageGroupCommand.d.ts +129 -0
  26. package/dist-types/commands/DeletePackageCommand.d.ts +1 -1
  27. package/dist-types/commands/DeletePackageGroupCommand.d.ts +123 -0
  28. package/dist-types/commands/DescribePackageGroupCommand.d.ts +110 -0
  29. package/dist-types/commands/GetAssociatedPackageGroupCommand.d.ts +112 -0
  30. package/dist-types/commands/GetRepositoryEndpointCommand.d.ts +10 -0
  31. package/dist-types/commands/ListAllowedRepositoriesForGroupCommand.d.ts +97 -0
  32. package/dist-types/commands/ListAssociatedPackagesCommand.d.ts +92 -0
  33. package/dist-types/commands/ListPackageGroupsCommand.d.ts +114 -0
  34. package/dist-types/commands/ListSubPackageGroupsCommand.d.ts +117 -0
  35. package/dist-types/commands/PublishPackageVersionCommand.d.ts +3 -3
  36. package/dist-types/commands/UpdatePackageGroupCommand.d.ts +117 -0
  37. package/dist-types/commands/UpdatePackageGroupOriginConfigurationCommand.d.ts +141 -0
  38. package/dist-types/commands/index.d.ts +10 -0
  39. package/dist-types/index.d.ts +69 -6
  40. package/dist-types/models/models_0.d.ts +1258 -159
  41. package/dist-types/pagination/ListAllowedRepositoriesForGroupPaginator.d.ts +7 -0
  42. package/dist-types/pagination/ListAssociatedPackagesPaginator.d.ts +7 -0
  43. package/dist-types/pagination/ListPackageGroupsPaginator.d.ts +7 -0
  44. package/dist-types/pagination/ListSubPackageGroupsPaginator.d.ts +7 -0
  45. package/dist-types/pagination/index.d.ts +4 -0
  46. package/dist-types/protocols/Aws_restJson1.d.ts +90 -0
  47. package/dist-types/ts3.4/Codeartifact.d.ts +176 -0
  48. package/dist-types/ts3.4/CodeartifactClient.d.ts +60 -0
  49. package/dist-types/ts3.4/commands/CreatePackageGroupCommand.d.ts +39 -0
  50. package/dist-types/ts3.4/commands/DeletePackageGroupCommand.d.ts +39 -0
  51. package/dist-types/ts3.4/commands/DescribePackageGroupCommand.d.ts +39 -0
  52. package/dist-types/ts3.4/commands/GetAssociatedPackageGroupCommand.d.ts +39 -0
  53. package/dist-types/ts3.4/commands/ListAllowedRepositoriesForGroupCommand.d.ts +39 -0
  54. package/dist-types/ts3.4/commands/ListAssociatedPackagesCommand.d.ts +39 -0
  55. package/dist-types/ts3.4/commands/ListPackageGroupsCommand.d.ts +39 -0
  56. package/dist-types/ts3.4/commands/ListSubPackageGroupsCommand.d.ts +39 -0
  57. package/dist-types/ts3.4/commands/UpdatePackageGroupCommand.d.ts +39 -0
  58. package/dist-types/ts3.4/commands/UpdatePackageGroupOriginConfigurationCommand.d.ts +39 -0
  59. package/dist-types/ts3.4/commands/index.d.ts +10 -0
  60. package/dist-types/ts3.4/models/models_0.d.ts +196 -6
  61. package/dist-types/ts3.4/pagination/ListAllowedRepositoriesForGroupPaginator.d.ts +11 -0
  62. package/dist-types/ts3.4/pagination/ListAssociatedPackagesPaginator.d.ts +11 -0
  63. package/dist-types/ts3.4/pagination/ListPackageGroupsPaginator.d.ts +11 -0
  64. package/dist-types/ts3.4/pagination/ListSubPackageGroupsPaginator.d.ts +11 -0
  65. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  66. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +120 -0
  67. package/package.json +1 -1
@@ -82,6 +82,89 @@ export interface AssetSummary {
82
82
  */
83
83
  hashes?: Partial<Record<HashAlgorithm, string>>;
84
84
  }
85
+ /**
86
+ * @public
87
+ * @enum
88
+ */
89
+ export declare const PackageGroupAssociationType: {
90
+ readonly STRONG: "STRONG";
91
+ readonly WEAK: "WEAK";
92
+ };
93
+ /**
94
+ * @public
95
+ */
96
+ export type PackageGroupAssociationType = (typeof PackageGroupAssociationType)[keyof typeof PackageGroupAssociationType];
97
+ /**
98
+ * @public
99
+ * @enum
100
+ */
101
+ export declare const PackageFormat: {
102
+ readonly GENERIC: "generic";
103
+ readonly MAVEN: "maven";
104
+ readonly NPM: "npm";
105
+ readonly NUGET: "nuget";
106
+ readonly PYPI: "pypi";
107
+ readonly SWIFT: "swift";
108
+ };
109
+ /**
110
+ * @public
111
+ */
112
+ export type PackageFormat = (typeof PackageFormat)[keyof typeof PackageFormat];
113
+ /**
114
+ * <p>
115
+ * A package associated with a package group.
116
+ * </p>
117
+ * @public
118
+ */
119
+ export interface AssociatedPackage {
120
+ /**
121
+ * <p>A format that specifies the type of the associated package.</p>
122
+ * @public
123
+ */
124
+ format?: PackageFormat;
125
+ /**
126
+ * <p>The namespace of the associated package. The package component that specifies its
127
+ * namespace depends on its type. For example:</p>
128
+ * <ul>
129
+ * <li>
130
+ * <p>
131
+ * The namespace of a Maven package version is its <code>groupId</code>.
132
+ * </p>
133
+ * </li>
134
+ * <li>
135
+ * <p>
136
+ * The namespace of an npm or Swift package version is its <code>scope</code>.
137
+ * </p>
138
+ * </li>
139
+ * <li>
140
+ * <p>The namespace of a generic package is its <code>namespace</code>.</p>
141
+ * </li>
142
+ * <li>
143
+ * <p>
144
+ * Python and NuGet package versions do not contain a corresponding component, package versions
145
+ * of those formats do not have a namespace.
146
+ * </p>
147
+ * </li>
148
+ * </ul>
149
+ * @public
150
+ */
151
+ namespace?: string;
152
+ /**
153
+ * <p>
154
+ * The name of the associated package.
155
+ * </p>
156
+ * @public
157
+ */
158
+ package?: string;
159
+ /**
160
+ * <p>Describes the strength of the association between the package and package group. A strong match can be thought of as an
161
+ * exact match, and a weak match can be thought of as a variation match, for example, the package name matches a variation of the package group pattern.
162
+ * For more information about package group pattern matching, including strong and weak matches, see <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/package-group-definition-syntax-matching-behavior.html">Package group definition syntax and matching behavior</a>
163
+ * in the <i>CodeArtifact User Guide</i>.</p>
164
+ * @public
165
+ */
166
+ associationType?: PackageGroupAssociationType;
167
+ }
85
168
  /**
86
169
  * @public
87
170
  */
@@ -155,22 +238,6 @@ export interface AssociateExternalConnectionRequest {
155
238
  */
156
239
  externalConnection: string | undefined;
157
240
  }
158
- /**
159
- * @public
160
- * @enum
161
- */
162
- export declare const PackageFormat: {
163
- readonly GENERIC: "generic";
164
- readonly MAVEN: "maven";
165
- readonly NPM: "npm";
166
- readonly NUGET: "nuget";
167
- readonly PYPI: "pypi";
168
- readonly SWIFT: "swift";
169
- };
170
- /**
171
- * @public
172
- */
173
- export type PackageFormat = (typeof PackageFormat)[keyof typeof PackageFormat];
174
241
  /**
175
242
  * @public
176
243
  * @enum
@@ -534,28 +601,41 @@ export interface CopyPackageVersionsRequest {
534
601
  */
535
602
  format: PackageFormat | undefined;
536
603
  /**
537
- * <p>The namespace of the package versions to be copied. The package version component that specifies its
538
- * namespace depends on its type. For example:</p>
604
+ * <p>The namespace of the package versions to be copied. The package component that specifies its namespace depends on its type. For example:</p>
605
+ * <note>
606
+ * <p>The namespace is required when copying package versions of the following formats:</p>
607
+ * <ul>
608
+ * <li>
609
+ * <p>Maven</p>
610
+ * </li>
611
+ * <li>
612
+ * <p>Swift</p>
613
+ * </li>
614
+ * <li>
615
+ * <p>generic</p>
616
+ * </li>
617
+ * </ul>
618
+ * </note>
539
619
  * <ul>
540
620
  * <li>
541
621
  * <p>
542
- * The namespace of a Maven package version is its <code>groupId</code>. The namespace is required when copying Maven package versions.
622
+ * The namespace of a Maven package version is its <code>groupId</code>.
543
623
  * </p>
544
624
  * </li>
545
625
  * <li>
546
626
  * <p>
547
- * The namespace of an npm package version is its <code>scope</code>.
627
+ * The namespace of an npm or Swift package version is its <code>scope</code>.
548
628
  * </p>
549
629
  * </li>
550
630
  * <li>
631
+ * <p>The namespace of a generic package is its <code>namespace</code>.</p>
632
+ * </li>
633
+ * <li>
551
634
  * <p>
552
635
  * Python and NuGet package versions do not contain a corresponding component, package versions
553
636
  * of those formats do not have a namespace.
554
637
  * </p>
555
638
  * </li>
556
- * <li>
557
- * <p> The namespace of a generic package is its <code>namespace</code>. </p>
558
- * </li>
559
639
  * </ul>
560
640
  * @public
561
641
  */
@@ -906,6 +986,221 @@ export interface CreateDomainResult {
906
986
  */
907
987
  domain?: DomainDescription;
908
988
  }
989
+ /**
990
+ * @public
991
+ */
992
+ export interface CreatePackageGroupRequest {
993
+ /**
994
+ * <p>
995
+ * The name of the domain in which you want to create a package group.
996
+ * </p>
997
+ * @public
998
+ */
999
+ domain: string | undefined;
1000
+ /**
1001
+ * <p>
1002
+ * The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include
1003
+ * dashes or spaces.
1004
+ * </p>
1005
+ * @public
1006
+ */
1007
+ domainOwner?: string;
1008
+ /**
1009
+ * <p>The pattern of the package group to create. The pattern is also the identifier of the package group. </p>
1010
+ * @public
1011
+ */
1012
+ packageGroup: string | undefined;
1013
+ /**
1014
+ * <p>
1015
+ * The contact information for the created package group.
1016
+ * </p>
1017
+ * @public
1018
+ */
1019
+ contactInfo?: string;
1020
+ /**
1021
+ * <p>
1022
+ * A description of the package group.
1023
+ * </p>
1024
+ * @public
1025
+ */
1026
+ description?: string;
1027
+ /**
1028
+ * <p>One or more tag key-value pairs for the package group.</p>
1029
+ * @public
1030
+ */
1031
+ tags?: Tag[];
1032
+ }
1033
+ /**
1034
+ * @public
1035
+ * @enum
1036
+ */
1037
+ export declare const PackageGroupOriginRestrictionType: {
1038
+ readonly EXTERNAL_UPSTREAM: "EXTERNAL_UPSTREAM";
1039
+ readonly INTERNAL_UPSTREAM: "INTERNAL_UPSTREAM";
1040
+ readonly PUBLISH: "PUBLISH";
1041
+ };
1042
+ /**
1043
+ * @public
1044
+ */
1045
+ export type PackageGroupOriginRestrictionType = (typeof PackageGroupOriginRestrictionType)[keyof typeof PackageGroupOriginRestrictionType];
1046
+ /**
1047
+ * @public
1048
+ * @enum
1049
+ */
1050
+ export declare const PackageGroupOriginRestrictionMode: {
1051
+ readonly ALLOW: "ALLOW";
1052
+ readonly ALLOW_SPECIFIC_REPOSITORIES: "ALLOW_SPECIFIC_REPOSITORIES";
1053
+ readonly BLOCK: "BLOCK";
1054
+ readonly INHERIT: "INHERIT";
1055
+ };
1056
+ /**
1057
+ * @public
1058
+ */
1059
+ export type PackageGroupOriginRestrictionMode = (typeof PackageGroupOriginRestrictionMode)[keyof typeof PackageGroupOriginRestrictionMode];
1060
+ /**
1061
+ * <p>Information about the identifiers of a package group.</p>
1062
+ * @public
1063
+ */
1064
+ export interface PackageGroupReference {
1065
+ /**
1066
+ * <p>
1067
+ * The ARN of the package group.
1068
+ * </p>
1069
+ * @public
1070
+ */
1071
+ arn?: string;
1072
+ /**
1073
+ * <p>
1074
+ * The pattern of the package group. The pattern determines which packages are associated with the package group, and is
1075
+ * also the identifier of the package group.
1076
+ * </p>
1077
+ * @public
1078
+ */
1079
+ pattern?: string;
1080
+ }
1081
+ /**
1082
+ * <p>Contains information about the configured restrictions of the origin controls of a package group.</p>
1083
+ * @public
1084
+ */
1085
+ export interface PackageGroupOriginRestriction {
1086
+ /**
1087
+ * <p>The package group origin restriction setting. If the value of <code>mode</code> is <code>ALLOW</code>,
1088
+ * <code>ALLOW_SPECIFIC_REPOSITORIES</code>, or <code>BLOCK</code>, then the value of <code>effectiveMode</code>
1089
+ * is the same. Otherwise, when the value is <code>INHERIT</code>, then the value of <code>effectiveMode</code> is the value of
1090
+ * <code>mode</code> of the first parent group which does not have a value of <code>INHERIT</code>.</p>
1091
+ * @public
1092
+ */
1093
+ mode?: PackageGroupOriginRestrictionMode;
1094
+ /**
1095
+ * <p>The effective package group origin restriction setting. If the value of <code>mode</code> is <code>ALLOW</code>,
1096
+ * <code>ALLOW_SPECIFIC_REPOSITORIES</code>, or <code>BLOCK</code>, then the value of <code>effectiveMode</code>
1097
+ * is the same. Otherwise, when the value of <code>mode</code> is <code>INHERIT</code>, then the value of <code>effectiveMode</code> is the value of
1098
+ * <code>mode</code> of the first parent group which does not have a value of <code>INHERIT</code>.</p>
1099
+ * @public
1100
+ */
1101
+ effectiveMode?: PackageGroupOriginRestrictionMode;
1102
+ /**
1103
+ * <p>The parent package group that the package group origin restrictions are inherited from.</p>
1104
+ * @public
1105
+ */
1106
+ inheritedFrom?: PackageGroupReference;
1107
+ /**
1108
+ * <p>The number of repositories in the allowed repository list.</p>
1109
+ * @public
1110
+ */
1111
+ repositoriesCount?: number;
1112
+ }
1113
+ /**
1114
+ * <p>The package group origin configuration that determines how package versions can enter repositories.</p>
1115
+ * @public
1116
+ */
1117
+ export interface PackageGroupOriginConfiguration {
1118
+ /**
1119
+ * <p>The origin configuration settings that determine how package versions can enter repositories.</p>
1120
+ * @public
1121
+ */
1122
+ restrictions?: Partial<Record<PackageGroupOriginRestrictionType, PackageGroupOriginRestriction>>;
1123
+ }
1124
+ /**
1125
+ * <p>
1126
+ * The description of the package group.
1127
+ * </p>
1128
+ * @public
1129
+ */
1130
+ export interface PackageGroupDescription {
1131
+ /**
1132
+ * <p>
1133
+ * The ARN of the package group.
1134
+ * </p>
1135
+ * @public
1136
+ */
1137
+ arn?: string;
1138
+ /**
1139
+ * <p>
1140
+ * The pattern of the package group. The pattern determines which packages are associated with the package group.
1141
+ * </p>
1142
+ * @public
1143
+ */
1144
+ pattern?: string;
1145
+ /**
1146
+ * <p>
1147
+ * The name of the domain that contains the package group.
1148
+ * </p>
1149
+ * @public
1150
+ */
1151
+ domainName?: string;
1152
+ /**
1153
+ * <p>
1154
+ * The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include
1155
+ * dashes or spaces.
1156
+ * </p>
1157
+ * @public
1158
+ */
1159
+ domainOwner?: string;
1160
+ /**
1161
+ * <p>A timestamp that represents the date and time the package group was created.</p>
1162
+ * @public
1163
+ */
1164
+ createdTime?: Date;
1165
+ /**
1166
+ * <p>
1167
+ * The contact information of the package group.
1168
+ * </p>
1169
+ * @public
1170
+ */
1171
+ contactInfo?: string;
1172
+ /**
1173
+ * <p>
1174
+ * The description of the package group.
1175
+ * </p>
1176
+ * @public
1177
+ */
1178
+ description?: string;
1179
+ /**
1180
+ * <p>The package group origin configuration that determines how package versions can enter repositories.</p>
1181
+ * @public
1182
+ */
1183
+ originConfiguration?: PackageGroupOriginConfiguration;
1184
+ /**
1185
+ * <p>
1186
+ * The direct parent package group of the package group.
1187
+ * </p>
1188
+ * @public
1189
+ */
1190
+ parent?: PackageGroupReference;
1191
+ }
1192
+ /**
1193
+ * @public
1194
+ */
1195
+ export interface CreatePackageGroupResult {
1196
+ /**
1197
+ * <p>
1198
+ * Information about the created package group after processing the request.
1199
+ * </p>
1200
+ * @public
1201
+ */
1202
+ packageGroup?: PackageGroupDescription;
1203
+ }
909
1204
  /**
910
1205
  * <p>
911
1206
  * Information about an upstream repository. A list of <code>UpstreamRepository</code> objects is an input parameter to
@@ -941,7 +1236,7 @@ export interface CreateRepositoryRequest {
941
1236
  */
942
1237
  domainOwner?: string;
943
1238
  /**
944
- * <p> The name of the repository to create. </p>
1239
+ * <p>The name of the repository to create. </p>
945
1240
  * @public
946
1241
  */
947
1242
  repository: string | undefined;
@@ -1107,23 +1402,40 @@ export interface DeletePackageRequest {
1107
1402
  format: PackageFormat | undefined;
1108
1403
  /**
1109
1404
  * <p>The namespace of the package to delete. The package component that specifies its namespace depends on its type. For example:</p>
1405
+ * <note>
1406
+ * <p>The namespace is required when deleting packages of the following formats:</p>
1407
+ * <ul>
1408
+ * <li>
1409
+ * <p>Maven</p>
1410
+ * </li>
1411
+ * <li>
1412
+ * <p>Swift</p>
1413
+ * </li>
1414
+ * <li>
1415
+ * <p>generic</p>
1416
+ * </li>
1417
+ * </ul>
1418
+ * </note>
1110
1419
  * <ul>
1111
1420
  * <li>
1112
1421
  * <p>
1113
- * The namespace of a Maven package is its <code>groupId</code>. The namespace is required when deleting Maven package versions.
1422
+ * The namespace of a Maven package version is its <code>groupId</code>.
1423
+ * </p>
1424
+ * </li>
1425
+ * <li>
1426
+ * <p>
1427
+ * The namespace of an npm or Swift package version is its <code>scope</code>.
1114
1428
  * </p>
1115
1429
  * </li>
1116
1430
  * <li>
1117
- * <p> The namespace of an npm package is its <code>scope</code>.</p>
1431
+ * <p>The namespace of a generic package is its <code>namespace</code>.</p>
1118
1432
  * </li>
1119
1433
  * <li>
1120
1434
  * <p>
1121
- * Python and NuGet packages do not contain corresponding components, packages of those formats do not have a namespace.
1435
+ * Python and NuGet package versions do not contain a corresponding component, package versions
1436
+ * of those formats do not have a namespace.
1122
1437
  * </p>
1123
1438
  * </li>
1124
- * <li>
1125
- * <p> The namespace of a generic package is its <code>namespace</code>. </p>
1126
- * </li>
1127
1439
  * </ul>
1128
1440
  * @public
1129
1441
  */
@@ -1184,23 +1496,23 @@ export interface PackageSummary {
1184
1496
  * <ul>
1185
1497
  * <li>
1186
1498
  * <p>
1187
- * The namespace of a Maven package is its <code>groupId</code>.
1499
+ * The namespace of a Maven package version is its <code>groupId</code>.
1188
1500
  * </p>
1189
1501
  * </li>
1190
1502
  * <li>
1191
1503
  * <p>
1192
- * The namespace of an npm package is its <code>scope</code>.
1504
+ * The namespace of an npm or Swift package version is its <code>scope</code>.
1193
1505
  * </p>
1194
1506
  * </li>
1195
1507
  * <li>
1508
+ * <p>The namespace of a generic package is its <code>namespace</code>.</p>
1509
+ * </li>
1510
+ * <li>
1196
1511
  * <p>
1197
- * Python and NuGet packages do not contain a corresponding component, packages
1512
+ * Python and NuGet package versions do not contain a corresponding component, package versions
1198
1513
  * of those formats do not have a namespace.
1199
1514
  * </p>
1200
1515
  * </li>
1201
- * <li>
1202
- * <p> The namespace of a generic package is its <code>namespace</code>. </p>
1203
- * </li>
1204
1516
  * </ul>
1205
1517
  * @public
1206
1518
  */
@@ -1232,6 +1544,43 @@ export interface DeletePackageResult {
1232
1544
  */
1233
1545
  deletedPackage?: PackageSummary;
1234
1546
  }
1547
+ /**
1548
+ * @public
1549
+ */
1550
+ export interface DeletePackageGroupRequest {
1551
+ /**
1552
+ * <p>
1553
+ * The domain that contains the package group to be deleted.
1554
+ * </p>
1555
+ * @public
1556
+ */
1557
+ domain: string | undefined;
1558
+ /**
1559
+ * <p>
1560
+ * The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include
1561
+ * dashes or spaces.
1562
+ * </p>
1563
+ * @public
1564
+ */
1565
+ domainOwner?: string;
1566
+ /**
1567
+ * <p>The pattern of the package group to be deleted.</p>
1568
+ * @public
1569
+ */
1570
+ packageGroup: string | undefined;
1571
+ }
1572
+ /**
1573
+ * @public
1574
+ */
1575
+ export interface DeletePackageGroupResult {
1576
+ /**
1577
+ * <p>
1578
+ * Information about the deleted package group after processing the request.
1579
+ * </p>
1580
+ * @public
1581
+ */
1582
+ packageGroup?: PackageGroupDescription;
1583
+ }
1235
1584
  /**
1236
1585
  * @public
1237
1586
  */
@@ -1266,27 +1615,40 @@ export interface DeletePackageVersionsRequest {
1266
1615
  */
1267
1616
  format: PackageFormat | undefined;
1268
1617
  /**
1269
- * <p>The namespace of the package versions to be deleted. The package version component that specifies its
1270
- * namespace depends on its type. For example:</p>
1618
+ * <p>The namespace of the package versions to be deleted. The package component that specifies its namespace depends on its type. For example:</p>
1619
+ * <note>
1620
+ * <p>The namespace is required when deleting package versions of the following formats:</p>
1621
+ * <ul>
1622
+ * <li>
1623
+ * <p>Maven</p>
1624
+ * </li>
1625
+ * <li>
1626
+ * <p>Swift</p>
1627
+ * </li>
1628
+ * <li>
1629
+ * <p>generic</p>
1630
+ * </li>
1631
+ * </ul>
1632
+ * </note>
1271
1633
  * <ul>
1272
1634
  * <li>
1273
1635
  * <p>
1274
- * The namespace of a Maven package version is its <code>groupId</code>. The namespace is required when deleting Maven package versions.
1275
- * </p>
1636
+ * The namespace of a Maven package version is its <code>groupId</code>.
1637
+ * </p>
1276
1638
  * </li>
1277
1639
  * <li>
1278
1640
  * <p>
1279
- * The namespace of an npm package version is its <code>scope</code>.
1280
- * </p>
1641
+ * The namespace of an npm or Swift package version is its <code>scope</code>.
1642
+ * </p>
1281
1643
  * </li>
1282
1644
  * <li>
1283
- * <p>
1284
- * Python and NuGet package versions do not contain a corresponding component, package versions
1285
- * of those formats do not have a namespace.
1286
- * </p>
1645
+ * <p>The namespace of a generic package is its <code>namespace</code>.</p>
1287
1646
  * </li>
1288
1647
  * <li>
1289
- * <p> The namespace of a generic package is its <code>namespace</code>. </p>
1648
+ * <p>
1649
+ * Python and NuGet package versions do not contain a corresponding component, package versions
1650
+ * of those formats do not have a namespace.
1651
+ * </p>
1290
1652
  * </li>
1291
1653
  * </ul>
1292
1654
  * @public
@@ -1512,28 +1874,41 @@ export interface DescribePackageRequest {
1512
1874
  */
1513
1875
  format: PackageFormat | undefined;
1514
1876
  /**
1515
- * <p>The namespace of the requested package. The package component that specifies its
1516
- * namespace depends on its type. For example:</p>
1877
+ * <p>The namespace of the requested package. The package component that specifies its namespace depends on its type. For example:</p>
1878
+ * <note>
1879
+ * <p>The namespace is required when requesting packages of the following formats:</p>
1880
+ * <ul>
1881
+ * <li>
1882
+ * <p>Maven</p>
1883
+ * </li>
1884
+ * <li>
1885
+ * <p>Swift</p>
1886
+ * </li>
1887
+ * <li>
1888
+ * <p>generic</p>
1889
+ * </li>
1890
+ * </ul>
1891
+ * </note>
1517
1892
  * <ul>
1518
1893
  * <li>
1519
1894
  * <p>
1520
- * The namespace of a Maven package is its <code>groupId</code>. The namespace is required when requesting Maven packages.
1895
+ * The namespace of a Maven package version is its <code>groupId</code>.
1521
1896
  * </p>
1522
1897
  * </li>
1523
1898
  * <li>
1524
1899
  * <p>
1525
- * The namespace of an npm package is its <code>scope</code>.
1900
+ * The namespace of an npm or Swift package version is its <code>scope</code>.
1526
1901
  * </p>
1527
1902
  * </li>
1528
1903
  * <li>
1904
+ * <p>The namespace of a generic package is its <code>namespace</code>.</p>
1905
+ * </li>
1906
+ * <li>
1529
1907
  * <p>
1530
- * Python and NuGet packages do not contain a corresponding component, packages
1908
+ * Python and NuGet package versions do not contain a corresponding component, package versions
1531
1909
  * of those formats do not have a namespace.
1532
1910
  * </p>
1533
1911
  * </li>
1534
- * <li>
1535
- * <p> The namespace of a generic package is its <code>namespace</code>. </p>
1536
- * </li>
1537
1912
  * </ul>
1538
1913
  * @public
1539
1914
  */
@@ -1560,23 +1935,23 @@ export interface PackageDescription {
1560
1935
  * <ul>
1561
1936
  * <li>
1562
1937
  * <p>
1563
- * The namespace of a Maven package is its <code>groupId</code>.
1938
+ * The namespace of a Maven package version is its <code>groupId</code>.
1564
1939
  * </p>
1565
1940
  * </li>
1566
1941
  * <li>
1567
1942
  * <p>
1568
- * The namespace of an npm package is its <code>scope</code>.
1943
+ * The namespace of an npm or Swift package version is its <code>scope</code>.
1569
1944
  * </p>
1570
1945
  * </li>
1571
1946
  * <li>
1947
+ * <p>The namespace of a generic package is its <code>namespace</code>.</p>
1948
+ * </li>
1949
+ * <li>
1572
1950
  * <p>
1573
- * Python and NuGet packages do not contain a corresponding component, packages
1951
+ * Python and NuGet package versions do not contain a corresponding component, package versions
1574
1952
  * of those formats do not have a namespace.
1575
1953
  * </p>
1576
1954
  * </li>
1577
- * <li>
1578
- * <p> The namespace of a generic package is its <code>namespace</code>. </p>
1579
- * </li>
1580
1955
  * </ul>
1581
1956
  * @public
1582
1957
  */
@@ -1603,6 +1978,42 @@ export interface DescribePackageResult {
1603
1978
  */
1604
1979
  package: PackageDescription | undefined;
1605
1980
  }
1981
+ /**
1982
+ * @public
1983
+ */
1984
+ export interface DescribePackageGroupRequest {
1985
+ /**
1986
+ * <p>
1987
+ * The name of the domain that contains the package group.
1988
+ * </p>
1989
+ * @public
1990
+ */
1991
+ domain: string | undefined;
1992
+ /**
1993
+ * <p>
1994
+ * The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include
1995
+ * dashes or spaces.
1996
+ * </p>
1997
+ * @public
1998
+ */
1999
+ domainOwner?: string;
2000
+ /**
2001
+ * <p>The pattern of the requested package group.</p>
2002
+ * @public
2003
+ */
2004
+ packageGroup: string | undefined;
2005
+ }
2006
+ /**
2007
+ * @public
2008
+ */
2009
+ export interface DescribePackageGroupResult {
2010
+ /**
2011
+ * <p>A <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageGroupDescription.html">PackageGroupDescription</a> object
2012
+ * that contains information about the requested package group.</p>
2013
+ * @public
2014
+ */
2015
+ packageGroup?: PackageGroupDescription;
2016
+ }
1606
2017
  /**
1607
2018
  * @public
1608
2019
  */
@@ -1635,8 +2046,22 @@ export interface DescribePackageVersionRequest {
1635
2046
  */
1636
2047
  format: PackageFormat | undefined;
1637
2048
  /**
1638
- * <p>The namespace of the requested package version. The package version component that specifies its
2049
+ * <p>The namespace of the requested package version. The package component that specifies its
1639
2050
  * namespace depends on its type. For example:</p>
2051
+ * <note>
2052
+ * <p>The namespace is required when requesting package versions of the following formats:</p>
2053
+ * <ul>
2054
+ * <li>
2055
+ * <p>Maven</p>
2056
+ * </li>
2057
+ * <li>
2058
+ * <p>Swift</p>
2059
+ * </li>
2060
+ * <li>
2061
+ * <p>generic</p>
2062
+ * </li>
2063
+ * </ul>
2064
+ * </note>
1640
2065
  * <ul>
1641
2066
  * <li>
1642
2067
  * <p>
@@ -1645,18 +2070,18 @@ export interface DescribePackageVersionRequest {
1645
2070
  * </li>
1646
2071
  * <li>
1647
2072
  * <p>
1648
- * The namespace of an npm package version is its <code>scope</code>.
2073
+ * The namespace of an npm or Swift package version is its <code>scope</code>.
1649
2074
  * </p>
1650
2075
  * </li>
1651
2076
  * <li>
2077
+ * <p>The namespace of a generic package is its <code>namespace</code>.</p>
2078
+ * </li>
2079
+ * <li>
1652
2080
  * <p>
1653
2081
  * Python and NuGet package versions do not contain a corresponding component, package versions
1654
2082
  * of those formats do not have a namespace.
1655
2083
  * </p>
1656
2084
  * </li>
1657
- * <li>
1658
- * <p> The namespace of a generic package is its <code>namespace</code>. </p>
1659
- * </li>
1660
2085
  * </ul>
1661
2086
  * @public
1662
2087
  */
@@ -1700,6 +2125,10 @@ export interface LicenseInfo {
1700
2125
  * <p>Information about how a package originally entered the CodeArtifact domain. For packages published directly to CodeArtifact, the entry point is the repository it was published to.
1701
2126
  * For packages ingested from an external repository, the entry point is the external connection that it was ingested from. An external
1702
2127
  * connection is a CodeArtifact repository that is connected to an external repository such as the npm registry or NuGet gallery.</p>
2128
+ * <note>
2129
+ * <p>If a package version exists in a repository and is updated, for example if a package of the same version is added
2130
+ * with additional assets, the package version's <code>DomainEntryPoint</code> will not change from the original package version's value.</p>
2131
+ * </note>
1703
2132
  * @public
1704
2133
  */
1705
2134
  export interface DomainEntryPoint {
@@ -1760,7 +2189,7 @@ export interface PackageVersionDescription {
1760
2189
  */
1761
2190
  format?: PackageFormat;
1762
2191
  /**
1763
- * <p>The namespace of the package version. The package version component that specifies its
2192
+ * <p>The namespace of the package version. The package component that specifies its
1764
2193
  * namespace depends on its type. For example:</p>
1765
2194
  * <ul>
1766
2195
  * <li>
@@ -1770,18 +2199,18 @@ export interface PackageVersionDescription {
1770
2199
  * </li>
1771
2200
  * <li>
1772
2201
  * <p>
1773
- * The namespace of an npm package version is its <code>scope</code>.
2202
+ * The namespace of an npm or Swift package version is its <code>scope</code>.
1774
2203
  * </p>
1775
2204
  * </li>
1776
2205
  * <li>
2206
+ * <p>The namespace of a generic package is its <code>namespace</code>.</p>
2207
+ * </li>
2208
+ * <li>
1777
2209
  * <p>
1778
2210
  * Python and NuGet package versions do not contain a corresponding component, package versions
1779
2211
  * of those formats do not have a namespace.
1780
2212
  * </p>
1781
2213
  * </li>
1782
- * <li>
1783
- * <p> The namespace of a generic package is its <code>namespace</code>. </p>
1784
- * </li>
1785
2214
  * </ul>
1786
2215
  * @public
1787
2216
  */
@@ -1994,8 +2423,22 @@ export interface DisposePackageVersionsRequest {
1994
2423
  */
1995
2424
  format: PackageFormat | undefined;
1996
2425
  /**
1997
- * <p>The namespace of the package versions to be disposed. The package version component that specifies its
2426
+ * <p>The namespace of the package versions to be disposed. The package component that specifies its
1998
2427
  * namespace depends on its type. For example:</p>
2428
+ * <note>
2429
+ * <p>The namespace is required when disposing package versions of the following formats:</p>
2430
+ * <ul>
2431
+ * <li>
2432
+ * <p>Maven</p>
2433
+ * </li>
2434
+ * <li>
2435
+ * <p>Swift</p>
2436
+ * </li>
2437
+ * <li>
2438
+ * <p>generic</p>
2439
+ * </li>
2440
+ * </ul>
2441
+ * </note>
1999
2442
  * <ul>
2000
2443
  * <li>
2001
2444
  * <p>
@@ -2004,18 +2447,18 @@ export interface DisposePackageVersionsRequest {
2004
2447
  * </li>
2005
2448
  * <li>
2006
2449
  * <p>
2007
- * The namespace of an npm package version is its <code>scope</code>.
2450
+ * The namespace of an npm or Swift package version is its <code>scope</code>.
2008
2451
  * </p>
2009
2452
  * </li>
2010
2453
  * <li>
2454
+ * <p>The namespace of a generic package is its <code>namespace</code>.</p>
2455
+ * </li>
2456
+ * <li>
2011
2457
  * <p>
2012
2458
  * Python and NuGet package versions do not contain a corresponding component, package versions
2013
2459
  * of those formats do not have a namespace.
2014
2460
  * </p>
2015
2461
  * </li>
2016
- * <li>
2017
- * <p> The namespace of a generic package is its <code>namespace</code>. </p>
2018
- * </li>
2019
2462
  * </ul>
2020
2463
  * @public
2021
2464
  */
@@ -2101,6 +2544,97 @@ export interface DisposePackageVersionsResult {
2101
2544
  */
2102
2545
  failedVersions?: Record<string, PackageVersionError>;
2103
2546
  }
2547
+ /**
2548
+ * @public
2549
+ */
2550
+ export interface GetAssociatedPackageGroupRequest {
2551
+ /**
2552
+ * <p>
2553
+ * The name of the domain that contains the package from which to get the associated package group.
2554
+ * </p>
2555
+ * @public
2556
+ */
2557
+ domain: string | undefined;
2558
+ /**
2559
+ * <p>
2560
+ * The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include
2561
+ * dashes or spaces.
2562
+ * </p>
2563
+ * @public
2564
+ */
2565
+ domainOwner?: string;
2566
+ /**
2567
+ * <p>
2568
+ * The format of the package from which to get the associated package group.
2569
+ * </p>
2570
+ * @public
2571
+ */
2572
+ format: PackageFormat | undefined;
2573
+ /**
2574
+ * <p>The namespace of the package from which to get the associated package group. The package component that specifies its
2575
+ * namespace depends on its type. For example:</p>
2576
+ * <note>
2577
+ * <p>The namespace is required when getting associated package groups from packages of the following formats:</p>
2578
+ * <ul>
2579
+ * <li>
2580
+ * <p>Maven</p>
2581
+ * </li>
2582
+ * <li>
2583
+ * <p>Swift</p>
2584
+ * </li>
2585
+ * <li>
2586
+ * <p>generic</p>
2587
+ * </li>
2588
+ * </ul>
2589
+ * </note>
2590
+ * <ul>
2591
+ * <li>
2592
+ * <p>
2593
+ * The namespace of a Maven package version is its <code>groupId</code>.
2594
+ * </p>
2595
+ * </li>
2596
+ * <li>
2597
+ * <p>
2598
+ * The namespace of an npm or Swift package version is its <code>scope</code>.
2599
+ * </p>
2600
+ * </li>
2601
+ * <li>
2602
+ * <p>The namespace of a generic package is its <code>namespace</code>.</p>
2603
+ * </li>
2604
+ * <li>
2605
+ * <p>
2606
+ * Python and NuGet package versions do not contain a corresponding component, package versions
2607
+ * of those formats do not have a namespace.
2608
+ * </p>
2609
+ * </li>
2610
+ * </ul>
2611
+ * @public
2612
+ */
2613
+ namespace?: string;
2614
+ /**
2615
+ * <p>
2616
+ * The package from which to get the associated package group.
2617
+ * </p>
2618
+ * @public
2619
+ */
2620
+ package: string | undefined;
2621
+ }
2622
+ /**
2623
+ * @public
2624
+ */
2625
+ export interface GetAssociatedPackageGroupResult {
2626
+ /**
2627
+ * <p>The package group that is associated with the requested package.</p>
2628
+ * @public
2629
+ */
2630
+ packageGroup?: PackageGroupDescription;
2631
+ /**
2632
+ * <p>Describes the strength of the association between the package and package group. A strong match is also known as an
2633
+ * exact match, and a weak match is known as a relative match.</p>
2634
+ * @public
2635
+ */
2636
+ associationType?: PackageGroupAssociationType;
2637
+ }
2104
2638
  /**
2105
2639
  * @public
2106
2640
  */
@@ -2214,8 +2748,22 @@ export interface GetPackageVersionAssetRequest {
2214
2748
  */
2215
2749
  format: PackageFormat | undefined;
2216
2750
  /**
2217
- * <p>The namespace of the package version with the requested asset file. The package version component that specifies its
2751
+ * <p>The namespace of the package version with the requested asset file. The package component that specifies its
2218
2752
  * namespace depends on its type. For example:</p>
2753
+ * <note>
2754
+ * <p>The namespace is required when requesting assets from package versions of the following formats:</p>
2755
+ * <ul>
2756
+ * <li>
2757
+ * <p>Maven</p>
2758
+ * </li>
2759
+ * <li>
2760
+ * <p>Swift</p>
2761
+ * </li>
2762
+ * <li>
2763
+ * <p>generic</p>
2764
+ * </li>
2765
+ * </ul>
2766
+ * </note>
2219
2767
  * <ul>
2220
2768
  * <li>
2221
2769
  * <p>
@@ -2224,18 +2772,18 @@ export interface GetPackageVersionAssetRequest {
2224
2772
  * </li>
2225
2773
  * <li>
2226
2774
  * <p>
2227
- * The namespace of an npm package version is its <code>scope</code>.
2775
+ * The namespace of an npm or Swift package version is its <code>scope</code>.
2228
2776
  * </p>
2229
2777
  * </li>
2230
2778
  * <li>
2779
+ * <p>The namespace of a generic package is its <code>namespace</code>.</p>
2780
+ * </li>
2781
+ * <li>
2231
2782
  * <p>
2232
2783
  * Python and NuGet package versions do not contain a corresponding component, package versions
2233
2784
  * of those formats do not have a namespace.
2234
2785
  * </p>
2235
2786
  * </li>
2236
- * <li>
2237
- * <p> The namespace of a generic package is its <code>namespace</code>. </p>
2238
- * </li>
2239
2787
  * </ul>
2240
2788
  * @public
2241
2789
  */
@@ -2334,15 +2882,41 @@ export interface GetPackageVersionReadmeRequest {
2334
2882
  */
2335
2883
  format: PackageFormat | undefined;
2336
2884
  /**
2337
- * <p>The namespace of the package version with the requested readme file. The package version component that specifies its
2885
+ * <p>The namespace of the package version with the requested readme file. The package component that specifies its
2338
2886
  * namespace depends on its type. For example:</p>
2887
+ * <note>
2888
+ * <p>The namespace is required when requesting the readme from package versions of the following formats:</p>
2889
+ * <ul>
2890
+ * <li>
2891
+ * <p>Maven</p>
2892
+ * </li>
2893
+ * <li>
2894
+ * <p>Swift</p>
2895
+ * </li>
2896
+ * <li>
2897
+ * <p>generic</p>
2898
+ * </li>
2899
+ * </ul>
2900
+ * </note>
2339
2901
  * <ul>
2340
2902
  * <li>
2341
- * <p> The namespace of an npm package version is its <code>scope</code>. </p>
2903
+ * <p>
2904
+ * The namespace of a Maven package version is its <code>groupId</code>.
2905
+ * </p>
2906
+ * </li>
2907
+ * <li>
2908
+ * <p>
2909
+ * The namespace of an npm or Swift package version is its <code>scope</code>.
2910
+ * </p>
2342
2911
  * </li>
2343
2912
  * <li>
2344
- * <p> Python and NuGet package versions do not contain a corresponding component, package
2345
- * versions of those formats do not have a namespace. </p>
2913
+ * <p>The namespace of a generic package is its <code>namespace</code>.</p>
2914
+ * </li>
2915
+ * <li>
2916
+ * <p>
2917
+ * Python and NuGet package versions do not contain a corresponding component, package versions
2918
+ * of those formats do not have a namespace.
2919
+ * </p>
2346
2920
  * </li>
2347
2921
  * </ul>
2348
2922
  * @public
@@ -2375,7 +2949,7 @@ export interface GetPackageVersionReadmeResult {
2375
2949
  */
2376
2950
  format?: PackageFormat;
2377
2951
  /**
2378
- * <p>The namespace of the package version with the requested readme file. The package version component that specifies its
2952
+ * <p>The namespace of the package version with the requested readme file. The package component that specifies its
2379
2953
  * namespace depends on its type. For example:</p>
2380
2954
  * <ul>
2381
2955
  * <li>
@@ -2385,10 +2959,13 @@ export interface GetPackageVersionReadmeResult {
2385
2959
  * </li>
2386
2960
  * <li>
2387
2961
  * <p>
2388
- * The namespace of an npm package version is its <code>scope</code>.
2962
+ * The namespace of an npm or Swift package version is its <code>scope</code>.
2389
2963
  * </p>
2390
2964
  * </li>
2391
2965
  * <li>
2966
+ * <p>The namespace of a generic package is its <code>namespace</code>.</p>
2967
+ * </li>
2968
+ * <li>
2392
2969
  * <p>
2393
2970
  * Python and NuGet package versions do not contain a corresponding component, package versions
2394
2971
  * of those formats do not have a namespace.
@@ -2513,6 +3090,135 @@ export interface GetRepositoryPermissionsPolicyResult {
2513
3090
  */
2514
3091
  policy?: ResourcePolicy;
2515
3092
  }
3093
+ /**
3094
+ * @public
3095
+ */
3096
+ export interface ListAllowedRepositoriesForGroupRequest {
3097
+ /**
3098
+ * <p>
3099
+ * The name of the domain that contains the package group from which to list allowed repositories.
3100
+ * </p>
3101
+ * @public
3102
+ */
3103
+ domain: string | undefined;
3104
+ /**
3105
+ * <p>
3106
+ * The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include
3107
+ * dashes or spaces.
3108
+ * </p>
3109
+ * @public
3110
+ */
3111
+ domainOwner?: string;
3112
+ /**
3113
+ * <p>The pattern of the package group from which to list allowed repositories.</p>
3114
+ * @public
3115
+ */
3116
+ packageGroup: string | undefined;
3117
+ /**
3118
+ * <p>The origin configuration restriction type of which to list allowed repositories.</p>
3119
+ * @public
3120
+ */
3121
+ originRestrictionType: PackageGroupOriginRestrictionType | undefined;
3122
+ /**
3123
+ * <p>
3124
+ * The maximum number of results to return per page.
3125
+ * </p>
3126
+ * @public
3127
+ */
3128
+ maxResults?: number;
3129
+ /**
3130
+ * <p>
3131
+ * The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
3132
+ * </p>
3133
+ * @public
3134
+ */
3135
+ nextToken?: string;
3136
+ }
3137
+ /**
3138
+ * @public
3139
+ */
3140
+ export interface ListAllowedRepositoriesForGroupResult {
3141
+ /**
3142
+ * <p>The list of allowed repositories for the package group and origin configuration restriction type.</p>
3143
+ * @public
3144
+ */
3145
+ allowedRepositories?: string[];
3146
+ /**
3147
+ * <p>
3148
+ * The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
3149
+ * </p>
3150
+ * @public
3151
+ */
3152
+ nextToken?: string;
3153
+ }
3154
+ /**
3155
+ * @public
3156
+ */
3157
+ export interface ListAssociatedPackagesRequest {
3158
+ /**
3159
+ * <p>
3160
+ * The name of the domain that contains the package group from which to list associated packages.
3161
+ * </p>
3162
+ * @public
3163
+ */
3164
+ domain: string | undefined;
3165
+ /**
3166
+ * <p>
3167
+ * The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include
3168
+ * dashes or spaces.
3169
+ * </p>
3170
+ * @public
3171
+ */
3172
+ domainOwner?: string;
3173
+ /**
3174
+ * <p>
3175
+ * The pattern of the package group from which to list associated packages.
3176
+ * </p>
3177
+ * @public
3178
+ */
3179
+ packageGroup: string | undefined;
3180
+ /**
3181
+ * <p>
3182
+ * The maximum number of results to return per page.
3183
+ * </p>
3184
+ * @public
3185
+ */
3186
+ maxResults?: number;
3187
+ /**
3188
+ * <p>
3189
+ * The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
3190
+ * </p>
3191
+ * @public
3192
+ */
3193
+ nextToken?: string;
3194
+ /**
3195
+ * <p>
3196
+ * When this flag is included, <code>ListAssociatedPackages</code> will return a list of packages that would be associated with a package
3197
+ * group, even if it does not exist.
3198
+ * </p>
3199
+ * @public
3200
+ */
3201
+ preview?: boolean;
3202
+ }
3203
+ /**
3204
+ * @public
3205
+ */
3206
+ export interface ListAssociatedPackagesResult {
3207
+ /**
3208
+ * <p>
3209
+ * The list of packages associated with the requested package group.
3210
+ * </p>
3211
+ * @public
3212
+ */
3213
+ packages?: AssociatedPackage[];
3214
+ /**
3215
+ * <p>
3216
+ * The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
3217
+ * </p>
3218
+ * @public
3219
+ */
3220
+ nextToken?: string;
3221
+ }
2516
3222
  /**
2517
3223
  * @public
2518
3224
  */
@@ -2553,47 +3259,174 @@ export interface DomainSummary {
2553
3259
  * </p>
2554
3260
  * @public
2555
3261
  */
2556
- owner?: string;
3262
+ owner?: string;
3263
+ /**
3264
+ * <p>
3265
+ * The ARN of the domain.
3266
+ * </p>
3267
+ * @public
3268
+ */
3269
+ arn?: string;
3270
+ /**
3271
+ * <p>
3272
+ * A string that contains the status of the domain.
3273
+ * </p>
3274
+ * @public
3275
+ */
3276
+ status?: DomainStatus;
3277
+ /**
3278
+ * <p>
3279
+ * A timestamp that contains the date and time the domain was created.
3280
+ * </p>
3281
+ * @public
3282
+ */
3283
+ createdTime?: Date;
3284
+ /**
3285
+ * <p>
3286
+ * The key used to encrypt the domain.
3287
+ * </p>
3288
+ * @public
3289
+ */
3290
+ encryptionKey?: string;
3291
+ }
3292
+ /**
3293
+ * @public
3294
+ */
3295
+ export interface ListDomainsResult {
3296
+ /**
3297
+ * <p>
3298
+ * The returned list of <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_DomainSummary.html">DomainSummary</a> objects.
3299
+ * </p>
3300
+ * @public
3301
+ */
3302
+ domains?: DomainSummary[];
3303
+ /**
3304
+ * <p>
3305
+ * The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
3306
+ * </p>
3307
+ * @public
3308
+ */
3309
+ nextToken?: string;
3310
+ }
3311
+ /**
3312
+ * @public
3313
+ */
3314
+ export interface ListPackageGroupsRequest {
3315
+ /**
3316
+ * <p>
3317
+ * The domain for which you want to list package groups.
3318
+ * </p>
3319
+ * @public
3320
+ */
3321
+ domain: string | undefined;
3322
+ /**
3323
+ * <p>
3324
+ * The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include
3325
+ * dashes or spaces.
3326
+ * </p>
3327
+ * @public
3328
+ */
3329
+ domainOwner?: string;
3330
+ /**
3331
+ * <p>
3332
+ * The maximum number of results to return per page.
3333
+ * </p>
3334
+ * @public
3335
+ */
3336
+ maxResults?: number;
3337
+ /**
3338
+ * <p>
3339
+ * The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
3340
+ * </p>
3341
+ * @public
3342
+ */
3343
+ nextToken?: string;
3344
+ /**
3345
+ * <p>
3346
+ * A prefix for which to search package groups. When included, <code>ListPackageGroups</code> will return only
3347
+ * package groups with patterns that match the prefix.
3348
+ * </p>
3349
+ * @public
3350
+ */
3351
+ prefix?: string;
3352
+ }
3353
+ /**
3354
+ * <p>Details about a package group.</p>
3355
+ * @public
3356
+ */
3357
+ export interface PackageGroupSummary {
3358
+ /**
3359
+ * <p>
3360
+ * The ARN of the package group.
3361
+ * </p>
3362
+ * @public
3363
+ */
3364
+ arn?: string;
3365
+ /**
3366
+ * <p>
3367
+ * The pattern of the package group. The pattern determines which packages are associated with the package group.
3368
+ * </p>
3369
+ * @public
3370
+ */
3371
+ pattern?: string;
3372
+ /**
3373
+ * <p>
3374
+ * The domain that contains the package group.
3375
+ * </p>
3376
+ * @public
3377
+ */
3378
+ domainName?: string;
3379
+ /**
3380
+ * <p>
3381
+ * The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include
3382
+ * dashes or spaces.
3383
+ * </p>
3384
+ * @public
3385
+ */
3386
+ domainOwner?: string;
2557
3387
  /**
2558
- * <p>
2559
- * The ARN of the domain.
2560
- * </p>
3388
+ * <p>A timestamp that represents the date and time the repository was created.</p>
2561
3389
  * @public
2562
3390
  */
2563
- arn?: string;
3391
+ createdTime?: Date;
2564
3392
  /**
2565
3393
  * <p>
2566
- * A string that contains the status of the domain.
3394
+ * The contact information of the package group.
2567
3395
  * </p>
2568
3396
  * @public
2569
3397
  */
2570
- status?: DomainStatus;
3398
+ contactInfo?: string;
2571
3399
  /**
2572
3400
  * <p>
2573
- * A timestamp that contains the date and time the domain was created.
3401
+ * The description of the package group.
2574
3402
  * </p>
2575
3403
  * @public
2576
3404
  */
2577
- createdTime?: Date;
3405
+ description?: string;
3406
+ /**
3407
+ * <p>Details about the package origin configuration of a package group.</p>
3408
+ * @public
3409
+ */
3410
+ originConfiguration?: PackageGroupOriginConfiguration;
2578
3411
  /**
2579
3412
  * <p>
2580
- * The key used to encrypt the domain.
3413
+ * The direct parent package group of the package group.
2581
3414
  * </p>
2582
3415
  * @public
2583
3416
  */
2584
- encryptionKey?: string;
3417
+ parent?: PackageGroupReference;
2585
3418
  }
2586
3419
  /**
2587
3420
  * @public
2588
3421
  */
2589
- export interface ListDomainsResult {
3422
+ export interface ListPackageGroupsResult {
2590
3423
  /**
2591
3424
  * <p>
2592
- * The returned list of <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_DomainSummary.html">DomainSummary</a> objects.
2593
- * </p>
3425
+ * The list of package groups in the requested domain.
3426
+ * </p>
2594
3427
  * @public
2595
3428
  */
2596
- domains?: DomainSummary[];
3429
+ packageGroups?: PackageGroupSummary[];
2597
3430
  /**
2598
3431
  * <p>
2599
3432
  * The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
@@ -2634,28 +3467,30 @@ export interface ListPackagesRequest {
2634
3467
  */
2635
3468
  format?: PackageFormat;
2636
3469
  /**
2637
- * <p>The namespace prefix used to filter requested packages. Only packages with a namespace that starts with the provided string value are returned. Note that although this option is called <code>--namespace</code> and not <code>--namespace-prefix</code>, it has prefix-matching behavior.</p>
3470
+ * <p>The namespace prefix used to filter requested packages.
3471
+ * Only packages with a namespace that starts with the provided string value are returned.
3472
+ * Note that although this option is called <code>--namespace</code> and not <code>--namespace-prefix</code>, it has prefix-matching behavior.</p>
2638
3473
  * <p>Each package format uses namespace as follows:</p>
2639
3474
  * <ul>
2640
3475
  * <li>
2641
3476
  * <p>
2642
- * The namespace of a Maven package is its <code>groupId</code>.
3477
+ * The namespace of a Maven package version is its <code>groupId</code>.
2643
3478
  * </p>
2644
3479
  * </li>
2645
3480
  * <li>
2646
3481
  * <p>
2647
- * The namespace of an npm package is its <code>scope</code>.
3482
+ * The namespace of an npm or Swift package version is its <code>scope</code>.
2648
3483
  * </p>
2649
3484
  * </li>
2650
3485
  * <li>
3486
+ * <p>The namespace of a generic package is its <code>namespace</code>.</p>
3487
+ * </li>
3488
+ * <li>
2651
3489
  * <p>
2652
- * Python and NuGet packages do not contain a corresponding component, packages
3490
+ * Python and NuGet package versions do not contain a corresponding component, package versions
2653
3491
  * of those formats do not have a namespace.
2654
3492
  * </p>
2655
3493
  * </li>
2656
- * <li>
2657
- * <p> The namespace of a generic package is its <code>namespace</code>. </p>
2658
- * </li>
2659
3494
  * </ul>
2660
3495
  * @public
2661
3496
  */
@@ -2750,8 +3585,22 @@ export interface ListPackageVersionAssetsRequest {
2750
3585
  */
2751
3586
  format: PackageFormat | undefined;
2752
3587
  /**
2753
- * <p>The namespace of the package version that contains the requested package version assets. The package version component that specifies its
3588
+ * <p>The namespace of the package version that contains the requested package version assets. The package component that specifies its
2754
3589
  * namespace depends on its type. For example:</p>
3590
+ * <note>
3591
+ * <p>The namespace is required requesting assets from package versions of the following formats:</p>
3592
+ * <ul>
3593
+ * <li>
3594
+ * <p>Maven</p>
3595
+ * </li>
3596
+ * <li>
3597
+ * <p>Swift</p>
3598
+ * </li>
3599
+ * <li>
3600
+ * <p>generic</p>
3601
+ * </li>
3602
+ * </ul>
3603
+ * </note>
2755
3604
  * <ul>
2756
3605
  * <li>
2757
3606
  * <p>
@@ -2760,18 +3609,18 @@ export interface ListPackageVersionAssetsRequest {
2760
3609
  * </li>
2761
3610
  * <li>
2762
3611
  * <p>
2763
- * The namespace of an npm package version is its <code>scope</code>.
3612
+ * The namespace of an npm or Swift package version is its <code>scope</code>.
2764
3613
  * </p>
2765
3614
  * </li>
2766
3615
  * <li>
3616
+ * <p>The namespace of a generic package is its <code>namespace</code>.</p>
3617
+ * </li>
3618
+ * <li>
2767
3619
  * <p>
2768
3620
  * Python and NuGet package versions do not contain a corresponding component, package versions
2769
3621
  * of those formats do not have a namespace.
2770
3622
  * </p>
2771
3623
  * </li>
2772
- * <li>
2773
- * <p> The namespace of a generic package is its <code>namespace</code>. </p>
2774
- * </li>
2775
3624
  * </ul>
2776
3625
  * @public
2777
3626
  */
@@ -2817,24 +3666,27 @@ export interface ListPackageVersionAssetsResult {
2817
3666
  */
2818
3667
  format?: PackageFormat;
2819
3668
  /**
2820
- * <p>The namespace of the package version that contains the requested package version assets. The package version component that specifies its
3669
+ * <p>The namespace of the package version that contains the requested package version assets. The package component that specifies its
2821
3670
  * namespace depends on its type. For example:</p>
2822
3671
  * <ul>
2823
3672
  * <li>
2824
3673
  * <p>
2825
- * The namespace of a Maven package version is its <code>groupId</code>.
2826
- * </p>
3674
+ * The namespace of a Maven package version is its <code>groupId</code>.
3675
+ * </p>
2827
3676
  * </li>
2828
3677
  * <li>
2829
3678
  * <p>
2830
- * The namespace of an npm package version is its <code>scope</code>.
2831
- * </p>
3679
+ * The namespace of an npm or Swift package version is its <code>scope</code>.
3680
+ * </p>
3681
+ * </li>
3682
+ * <li>
3683
+ * <p>The namespace of a generic package is its <code>namespace</code>.</p>
2832
3684
  * </li>
2833
3685
  * <li>
2834
3686
  * <p>
2835
- * Python and NuGet package versions do not contain a corresponding component, package versions
2836
- * of those formats do not have a namespace.
2837
- * </p>
3687
+ * Python and NuGet package versions do not contain a corresponding component, package versions
3688
+ * of those formats do not have a namespace.
3689
+ * </p>
2838
3690
  * </li>
2839
3691
  * </ul>
2840
3692
  * @public
@@ -2910,8 +3762,22 @@ export interface ListPackageVersionDependenciesRequest {
2910
3762
  */
2911
3763
  format: PackageFormat | undefined;
2912
3764
  /**
2913
- * <p>The namespace of the package version with the requested dependencies. The package version component that specifies its
3765
+ * <p>The namespace of the package version with the requested dependencies. The package component that specifies its
2914
3766
  * namespace depends on its type. For example:</p>
3767
+ * <note>
3768
+ * <p>The namespace is required when listing dependencies from package versions of the following formats:</p>
3769
+ * <ul>
3770
+ * <li>
3771
+ * <p>Maven</p>
3772
+ * </li>
3773
+ * <li>
3774
+ * <p>Swift</p>
3775
+ * </li>
3776
+ * <li>
3777
+ * <p>generic</p>
3778
+ * </li>
3779
+ * </ul>
3780
+ * </note>
2915
3781
  * <ul>
2916
3782
  * <li>
2917
3783
  * <p>
@@ -2920,18 +3786,18 @@ export interface ListPackageVersionDependenciesRequest {
2920
3786
  * </li>
2921
3787
  * <li>
2922
3788
  * <p>
2923
- * The namespace of an npm package version is its <code>scope</code>.
3789
+ * The namespace of an npm or Swift package version is its <code>scope</code>.
2924
3790
  * </p>
2925
3791
  * </li>
2926
3792
  * <li>
3793
+ * <p>The namespace of a generic package is its <code>namespace</code>.</p>
3794
+ * </li>
3795
+ * <li>
2927
3796
  * <p>
2928
3797
  * Python and NuGet package versions do not contain a corresponding component, package versions
2929
3798
  * of those formats do not have a namespace.
2930
3799
  * </p>
2931
3800
  * </li>
2932
- * <li>
2933
- * <p> The namespace of a generic package is its <code>namespace</code>. </p>
2934
- * </li>
2935
3801
  * </ul>
2936
3802
  * @public
2937
3803
  */
@@ -2971,19 +3837,22 @@ export interface PackageDependency {
2971
3837
  * <ul>
2972
3838
  * <li>
2973
3839
  * <p>
2974
- * The namespace of a Maven package is its <code>groupId</code>.
2975
- * </p>
3840
+ * The namespace of a Maven package version is its <code>groupId</code>.
3841
+ * </p>
2976
3842
  * </li>
2977
3843
  * <li>
2978
3844
  * <p>
2979
- * The namespace of an npm package is its <code>scope</code>.
2980
- * </p>
3845
+ * The namespace of an npm or Swift package version is its <code>scope</code>.
3846
+ * </p>
3847
+ * </li>
3848
+ * <li>
3849
+ * <p>The namespace of a generic package is its <code>namespace</code>.</p>
2981
3850
  * </li>
2982
3851
  * <li>
2983
3852
  * <p>
2984
- * Python and NuGet packages do not contain a corresponding component, packages
2985
- * of those formats do not have a namespace.
2986
- * </p>
3853
+ * Python and NuGet package versions do not contain a corresponding component, package versions
3854
+ * of those formats do not have a namespace.
3855
+ * </p>
2987
3856
  * </li>
2988
3857
  * </ul>
2989
3858
  * @public
@@ -3042,7 +3911,7 @@ export interface ListPackageVersionDependenciesResult {
3042
3911
  */
3043
3912
  format?: PackageFormat;
3044
3913
  /**
3045
- * <p>The namespace of the package version that contains the returned dependencies. The package version component that specifies its
3914
+ * <p>The namespace of the package version that contains the returned dependencies. The package component that specifies its
3046
3915
  * namespace depends on its type. For example:</p>
3047
3916
  * <ul>
3048
3917
  * <li>
@@ -3052,10 +3921,13 @@ export interface ListPackageVersionDependenciesResult {
3052
3921
  * </li>
3053
3922
  * <li>
3054
3923
  * <p>
3055
- * The namespace of an npm package version is its <code>scope</code>.
3924
+ * The namespace of an npm or Swift package version is its <code>scope</code>.
3056
3925
  * </p>
3057
3926
  * </li>
3058
3927
  * <li>
3928
+ * <p>The namespace of a generic package is its <code>namespace</code>.</p>
3929
+ * </li>
3930
+ * <li>
3059
3931
  * <p>
3060
3932
  * Python and NuGet package versions do not contain a corresponding component, package versions
3061
3933
  * of those formats do not have a namespace.
@@ -3148,26 +4020,40 @@ export interface ListPackageVersionsRequest {
3148
4020
  /**
3149
4021
  * <p>The namespace of the package that contains the requested package versions. The package component that specifies its
3150
4022
  * namespace depends on its type. For example:</p>
4023
+ * <note>
4024
+ * <p>The namespace is required when deleting package versions of the following formats:</p>
4025
+ * <ul>
4026
+ * <li>
4027
+ * <p>Maven</p>
4028
+ * </li>
4029
+ * <li>
4030
+ * <p>Swift</p>
4031
+ * </li>
4032
+ * <li>
4033
+ * <p>generic</p>
4034
+ * </li>
4035
+ * </ul>
4036
+ * </note>
3151
4037
  * <ul>
3152
4038
  * <li>
3153
4039
  * <p>
3154
- * The namespace of a Maven package is its <code>groupId</code>.
4040
+ * The namespace of a Maven package version is its <code>groupId</code>.
3155
4041
  * </p>
3156
4042
  * </li>
3157
4043
  * <li>
3158
4044
  * <p>
3159
- * The namespace of an npm package is its <code>scope</code>.
4045
+ * The namespace of an npm or Swift package version is its <code>scope</code>.
3160
4046
  * </p>
3161
4047
  * </li>
3162
4048
  * <li>
4049
+ * <p>The namespace of a generic package is its <code>namespace</code>.</p>
4050
+ * </li>
4051
+ * <li>
3163
4052
  * <p>
3164
- * Python and NuGet packages do not contain a corresponding component, packages
4053
+ * Python and NuGet package versions do not contain a corresponding component, package versions
3165
4054
  * of those formats do not have a namespace.
3166
4055
  * </p>
3167
4056
  * </li>
3168
- * <li>
3169
- * <p> The namespace of a generic package is its <code>namespace</code>. </p>
3170
- * </li>
3171
4057
  * </ul>
3172
4058
  * @public
3173
4059
  */
@@ -3288,17 +4174,20 @@ export interface ListPackageVersionsResult {
3288
4174
  * <ul>
3289
4175
  * <li>
3290
4176
  * <p>
3291
- * The namespace of a Maven package is its <code>groupId</code>.
4177
+ * The namespace of a Maven package version is its <code>groupId</code>.
3292
4178
  * </p>
3293
4179
  * </li>
3294
4180
  * <li>
3295
4181
  * <p>
3296
- * The namespace of an npm package is its <code>scope</code>.
4182
+ * The namespace of an npm or Swift package version is its <code>scope</code>.
3297
4183
  * </p>
3298
4184
  * </li>
3299
4185
  * <li>
4186
+ * <p>The namespace of a generic package is its <code>namespace</code>.</p>
4187
+ * </li>
4188
+ * <li>
3300
4189
  * <p>
3301
- * Python and NuGet packages do not contain a corresponding component, packages
4190
+ * Python and NuGet package versions do not contain a corresponding component, package versions
3302
4191
  * of those formats do not have a namespace.
3303
4192
  * </p>
3304
4193
  * </li>
@@ -3497,6 +4386,66 @@ export interface ListRepositoriesInDomainResult {
3497
4386
  */
3498
4387
  nextToken?: string;
3499
4388
  }
4389
+ /**
4390
+ * @public
4391
+ */
4392
+ export interface ListSubPackageGroupsRequest {
4393
+ /**
4394
+ * <p>
4395
+ * The name of the domain which contains the package group from which to list sub package groups.
4396
+ * </p>
4397
+ * @public
4398
+ */
4399
+ domain: string | undefined;
4400
+ /**
4401
+ * <p>
4402
+ * The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include
4403
+ * dashes or spaces.
4404
+ * </p>
4405
+ * @public
4406
+ */
4407
+ domainOwner?: string;
4408
+ /**
4409
+ * <p>
4410
+ * The pattern of the package group from which to list sub package groups.
4411
+ * </p>
4412
+ * @public
4413
+ */
4414
+ packageGroup: string | undefined;
4415
+ /**
4416
+ * <p>
4417
+ * The maximum number of results to return per page.
4418
+ * </p>
4419
+ * @public
4420
+ */
4421
+ maxResults?: number;
4422
+ /**
4423
+ * <p>
4424
+ * The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
4425
+ * </p>
4426
+ * @public
4427
+ */
4428
+ nextToken?: string;
4429
+ }
4430
+ /**
4431
+ * @public
4432
+ */
4433
+ export interface ListSubPackageGroupsResult {
4434
+ /**
4435
+ * <p>
4436
+ * A list of sub package groups for the requested package group.
4437
+ * </p>
4438
+ * @public
4439
+ */
4440
+ packageGroups?: PackageGroupSummary[];
4441
+ /**
4442
+ * <p>
4443
+ * If there are additional results, this is the token for the next set of results.
4444
+ * </p>
4445
+ * @public
4446
+ */
4447
+ nextToken?: string;
4448
+ }
3500
4449
  /**
3501
4450
  * @public
3502
4451
  */
@@ -3565,7 +4514,7 @@ export interface PublishPackageVersionRequest {
3565
4514
  /**
3566
4515
  * <p>The name of the asset to publish. Asset names can include Unicode letters and numbers, and
3567
4516
  * the following special characters: <code>~ ! @ ^ & ( ) - ` _ + [ ] \{ \} ; , .
3568
- * `</code>
4517
+ * `</code>
3569
4518
  * </p>
3570
4519
  * @public
3571
4520
  */
@@ -3573,7 +4522,7 @@ export interface PublishPackageVersionRequest {
3573
4522
  /**
3574
4523
  * <p>The SHA256 hash of the <code>assetContent</code> to publish. This value must be calculated
3575
4524
  * by the caller and provided with the request (see <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/using-generic.html#publishing-generic-packages">Publishing a generic package</a> in the <i>CodeArtifact User
3576
- * Guide</i>).</p>
4525
+ * Guide</i>).</p>
3577
4526
  * <p>This value is used as an integrity check to verify that the <code>assetContent</code> has
3578
4527
  * not changed after it was originally sent.</p>
3579
4528
  * @public
@@ -3582,7 +4531,7 @@ export interface PublishPackageVersionRequest {
3582
4531
  /**
3583
4532
  * <p>Specifies whether the package version should remain in the <code>unfinished</code>
3584
4533
  * state. If omitted, the package version status will be set to <code>Published</code> (see
3585
- * <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/packages-overview.html#package-version-status">Package version status</a> in the <i>CodeArtifact User Guide</i>).</p>
4534
+ * <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/packages-overview.html#package-version-status">Package version status</a> in the <i>CodeArtifact User Guide</i>).</p>
3586
4535
  * <p>Valid values: <code>unfinished</code>
3587
4536
  * </p>
3588
4537
  * @public
@@ -3706,23 +4655,23 @@ export interface PutPackageOriginConfigurationRequest {
3706
4655
  * <ul>
3707
4656
  * <li>
3708
4657
  * <p>
3709
- * The namespace of a Maven package is its <code>groupId</code>.
4658
+ * The namespace of a Maven package version is its <code>groupId</code>.
3710
4659
  * </p>
3711
4660
  * </li>
3712
4661
  * <li>
3713
4662
  * <p>
3714
- * The namespace of an npm package is its <code>scope</code>.
4663
+ * The namespace of an npm or Swift package version is its <code>scope</code>.
3715
4664
  * </p>
3716
4665
  * </li>
3717
4666
  * <li>
4667
+ * <p>The namespace of a generic package is its <code>namespace</code>.</p>
4668
+ * </li>
4669
+ * <li>
3718
4670
  * <p>
3719
- * Python and NuGet packages do not contain a corresponding component, packages
4671
+ * Python and NuGet package versions do not contain a corresponding component, package versions
3720
4672
  * of those formats do not have a namespace.
3721
4673
  * </p>
3722
4674
  * </li>
3723
- * <li>
3724
- * <p> The namespace of a generic package is its <code>namespace</code>. </p>
3725
- * </li>
3726
4675
  * </ul>
3727
4676
  * @public
3728
4677
  */
@@ -3845,6 +4794,152 @@ export interface UntagResourceRequest {
3845
4794
  */
3846
4795
  export interface UntagResourceResult {
3847
4796
  }
4797
+ /**
4798
+ * @public
4799
+ */
4800
+ export interface UpdatePackageGroupRequest {
4801
+ /**
4802
+ * <p>
4803
+ * The name of the domain which contains the package group to be updated.
4804
+ * </p>
4805
+ * @public
4806
+ */
4807
+ domain: string | undefined;
4808
+ /**
4809
+ * <p>
4810
+ * The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include
4811
+ * dashes or spaces.
4812
+ * </p>
4813
+ * @public
4814
+ */
4815
+ domainOwner?: string;
4816
+ /**
4817
+ * <p>
4818
+ * The pattern of the package group to be updated.
4819
+ * </p>
4820
+ * @public
4821
+ */
4822
+ packageGroup: string | undefined;
4823
+ /**
4824
+ * <p>
4825
+ * Contact information which you want to update the requested package group with.
4826
+ * </p>
4827
+ * @public
4828
+ */
4829
+ contactInfo?: string;
4830
+ /**
4831
+ * <p>
4832
+ * The description you want to update the requested package group with.
4833
+ * </p>
4834
+ * @public
4835
+ */
4836
+ description?: string;
4837
+ }
4838
+ /**
4839
+ * @public
4840
+ */
4841
+ export interface UpdatePackageGroupResult {
4842
+ /**
4843
+ * <p>
4844
+ * The package group and information about it after the request has been processed.
4845
+ * </p>
4846
+ * @public
4847
+ */
4848
+ packageGroup?: PackageGroupDescription;
4849
+ }
4850
+ /**
4851
+ * <p>
4852
+ * Details about an allowed repository for a package group, including its name and origin configuration.
4853
+ * </p>
4854
+ * @public
4855
+ */
4856
+ export interface PackageGroupAllowedRepository {
4857
+ /**
4858
+ * <p>
4859
+ * The name of the allowed repository.
4860
+ * </p>
4861
+ * @public
4862
+ */
4863
+ repositoryName?: string;
4864
+ /**
4865
+ * <p>The origin configuration restriction type of the allowed repository.</p>
4866
+ * @public
4867
+ */
4868
+ originRestrictionType?: PackageGroupOriginRestrictionType;
4869
+ }
4870
+ /**
4871
+ * @public
4872
+ */
4873
+ export interface UpdatePackageGroupOriginConfigurationRequest {
4874
+ /**
4875
+ * <p>
4876
+ * The name of the domain which contains the package group for which to update the origin configuration.
4877
+ * </p>
4878
+ * @public
4879
+ */
4880
+ domain: string | undefined;
4881
+ /**
4882
+ * <p>
4883
+ * The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include
4884
+ * dashes or spaces.
4885
+ * </p>
4886
+ * @public
4887
+ */
4888
+ domainOwner?: string;
4889
+ /**
4890
+ * <p>
4891
+ * The pattern of the package group for which to update the origin configuration.
4892
+ * </p>
4893
+ * @public
4894
+ */
4895
+ packageGroup: string | undefined;
4896
+ /**
4897
+ * <p>
4898
+ * The origin configuration settings that determine how package versions can enter repositories.
4899
+ * </p>
4900
+ * @public
4901
+ */
4902
+ restrictions?: Partial<Record<PackageGroupOriginRestrictionType, PackageGroupOriginRestrictionMode>>;
4903
+ /**
4904
+ * <p>The repository name and restrictions to add to the allowed repository list of the specified package group.</p>
4905
+ * @public
4906
+ */
4907
+ addAllowedRepositories?: PackageGroupAllowedRepository[];
4908
+ /**
4909
+ * <p>The repository name and restrictions to remove from the allowed repository list of the specified package group.</p>
4910
+ * @public
4911
+ */
4912
+ removeAllowedRepositories?: PackageGroupAllowedRepository[];
4913
+ }
4914
+ /**
4915
+ * @public
4916
+ * @enum
4917
+ */
4918
+ export declare const PackageGroupAllowedRepositoryUpdateType: {
4919
+ readonly ADDED: "ADDED";
4920
+ readonly REMOVED: "REMOVED";
4921
+ };
4922
+ /**
4923
+ * @public
4924
+ */
4925
+ export type PackageGroupAllowedRepositoryUpdateType = (typeof PackageGroupAllowedRepositoryUpdateType)[keyof typeof PackageGroupAllowedRepositoryUpdateType];
4926
+ /**
4927
+ * @public
4928
+ */
4929
+ export interface UpdatePackageGroupOriginConfigurationResult {
4930
+ /**
4931
+ * <p>
4932
+ * The package group and information about it after processing the request.
4933
+ * </p>
4934
+ * @public
4935
+ */
4936
+ packageGroup?: PackageGroupDescription;
4937
+ /**
4938
+ * <p>Information about the updated allowed repositories after processing the request.</p>
4939
+ * @public
4940
+ */
4941
+ allowedRepositoryUpdates?: Partial<Record<PackageGroupOriginRestrictionType, Partial<Record<PackageGroupAllowedRepositoryUpdateType, string[]>>>>;
4942
+ }
3848
4943
  /**
3849
4944
  * @public
3850
4945
  */
@@ -3879,7 +4974,7 @@ export interface UpdatePackageVersionsStatusRequest {
3879
4974
  */
3880
4975
  format: PackageFormat | undefined;
3881
4976
  /**
3882
- * <p>The namespace of the package version to be updated. The package version component that specifies its
4977
+ * <p>The namespace of the package version to be updated. The package component that specifies its
3883
4978
  * namespace depends on its type. For example:</p>
3884
4979
  * <ul>
3885
4980
  * <li>
@@ -3889,18 +4984,18 @@ export interface UpdatePackageVersionsStatusRequest {
3889
4984
  * </li>
3890
4985
  * <li>
3891
4986
  * <p>
3892
- * The namespace of an npm package version is its <code>scope</code>.
4987
+ * The namespace of an npm or Swift package version is its <code>scope</code>.
3893
4988
  * </p>
3894
4989
  * </li>
3895
4990
  * <li>
4991
+ * <p>The namespace of a generic package is its <code>namespace</code>.</p>
4992
+ * </li>
4993
+ * <li>
3896
4994
  * <p>
3897
4995
  * Python and NuGet package versions do not contain a corresponding component, package versions
3898
4996
  * of those formats do not have a namespace.
3899
4997
  * </p>
3900
4998
  * </li>
3901
- * <li>
3902
- * <p> The namespace of a generic package is its <code>namespace</code>. </p>
3903
- * </li>
3904
4999
  * </ul>
3905
5000
  * @public
3906
5001
  */
@@ -4014,6 +5109,10 @@ export interface UpdateRepositoryResult {
4014
5109
  */
4015
5110
  repository?: RepositoryDescription;
4016
5111
  }
5112
+ /**
5113
+ * @internal
5114
+ */
5115
+ export declare const GetAuthorizationTokenResultFilterSensitiveLog: (obj: GetAuthorizationTokenResult) => any;
4017
5116
  /**
4018
5117
  * @internal
4019
5118
  */