@aws-sdk/client-codeartifact 3.474.0 → 3.477.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.
@@ -2,47 +2,39 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_DescribePackageCommand = exports.de_DescribeDomainCommand = exports.de_DeleteRepositoryPermissionsPolicyCommand = exports.de_DeleteRepositoryCommand = exports.de_DeletePackageVersionsCommand = exports.de_DeletePackageCommand = exports.de_DeleteDomainPermissionsPolicyCommand = exports.de_DeleteDomainCommand = exports.de_CreateRepositoryCommand = exports.de_CreateDomainCommand = exports.de_CopyPackageVersionsCommand = exports.de_AssociateExternalConnectionCommand = exports.se_UpdateRepositoryCommand = exports.se_UpdatePackageVersionsStatusCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_PutRepositoryPermissionsPolicyCommand = exports.se_PutPackageOriginConfigurationCommand = exports.se_PutDomainPermissionsPolicyCommand = exports.se_PublishPackageVersionCommand = exports.se_ListTagsForResourceCommand = exports.se_ListRepositoriesInDomainCommand = exports.se_ListRepositoriesCommand = exports.se_ListPackageVersionsCommand = exports.se_ListPackageVersionDependenciesCommand = exports.se_ListPackageVersionAssetsCommand = exports.se_ListPackagesCommand = exports.se_ListDomainsCommand = exports.se_GetRepositoryPermissionsPolicyCommand = exports.se_GetRepositoryEndpointCommand = exports.se_GetPackageVersionReadmeCommand = exports.se_GetPackageVersionAssetCommand = exports.se_GetDomainPermissionsPolicyCommand = exports.se_GetAuthorizationTokenCommand = exports.se_DisposePackageVersionsCommand = exports.se_DisassociateExternalConnectionCommand = exports.se_DescribeRepositoryCommand = exports.se_DescribePackageVersionCommand = exports.se_DescribePackageCommand = exports.se_DescribeDomainCommand = exports.se_DeleteRepositoryPermissionsPolicyCommand = exports.se_DeleteRepositoryCommand = exports.se_DeletePackageVersionsCommand = exports.se_DeletePackageCommand = exports.se_DeleteDomainPermissionsPolicyCommand = exports.se_DeleteDomainCommand = exports.se_CreateRepositoryCommand = exports.se_CreateDomainCommand = exports.se_CopyPackageVersionsCommand = exports.se_AssociateExternalConnectionCommand = void 0;
4
4
  exports.de_UpdateRepositoryCommand = exports.de_UpdatePackageVersionsStatusCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_PutRepositoryPermissionsPolicyCommand = exports.de_PutPackageOriginConfigurationCommand = exports.de_PutDomainPermissionsPolicyCommand = exports.de_PublishPackageVersionCommand = exports.de_ListTagsForResourceCommand = exports.de_ListRepositoriesInDomainCommand = exports.de_ListRepositoriesCommand = exports.de_ListPackageVersionsCommand = exports.de_ListPackageVersionDependenciesCommand = exports.de_ListPackageVersionAssetsCommand = exports.de_ListPackagesCommand = exports.de_ListDomainsCommand = exports.de_GetRepositoryPermissionsPolicyCommand = exports.de_GetRepositoryEndpointCommand = exports.de_GetPackageVersionReadmeCommand = exports.de_GetPackageVersionAssetCommand = exports.de_GetDomainPermissionsPolicyCommand = exports.de_GetAuthorizationTokenCommand = exports.de_DisposePackageVersionsCommand = exports.de_DisassociateExternalConnectionCommand = exports.de_DescribeRepositoryCommand = exports.de_DescribePackageVersionCommand = void 0;
5
- const protocol_http_1 = require("@smithy/protocol-http");
5
+ const core_1 = require("@smithy/core");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  const CodeartifactServiceException_1 = require("../models/CodeartifactServiceException");
8
8
  const models_0_1 = require("../models/models_0");
9
9
  const se_AssociateExternalConnectionCommand = async (input, context) => {
10
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
+ const b = (0, core_1.requestBuilder)(input, context);
11
11
  const headers = {};
12
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository/external-connection";
12
+ b.bp("/v1/repository/external-connection");
13
13
  const query = (0, smithy_client_1.map)({
14
- domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
15
- "domain-owner": [, input.domainOwner],
16
- repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
17
- "external-connection": [, (0, smithy_client_1.expectNonNull)(input.externalConnection, `externalConnection`)],
14
+ [_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
15
+ [_do]: [, input[_dO]],
16
+ [_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
17
+ [_ec]: [, (0, smithy_client_1.expectNonNull)(input[_eC], `externalConnection`)],
18
18
  });
19
19
  let body;
20
- return new protocol_http_1.HttpRequest({
21
- protocol,
22
- hostname,
23
- port,
24
- method: "POST",
25
- headers,
26
- path: resolvedPath,
27
- query,
28
- body,
29
- });
20
+ b.m("POST").h(headers).q(query).b(body);
21
+ return b.build();
30
22
  };
31
23
  exports.se_AssociateExternalConnectionCommand = se_AssociateExternalConnectionCommand;
32
24
  const se_CopyPackageVersionsCommand = async (input, context) => {
33
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
25
+ const b = (0, core_1.requestBuilder)(input, context);
34
26
  const headers = {
35
27
  "content-type": "application/json",
36
28
  };
37
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/versions/copy";
29
+ b.bp("/v1/package/versions/copy");
38
30
  const query = (0, smithy_client_1.map)({
39
- domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
40
- "domain-owner": [, input.domainOwner],
41
- "source-repository": [, (0, smithy_client_1.expectNonNull)(input.sourceRepository, `sourceRepository`)],
42
- "destination-repository": [, (0, smithy_client_1.expectNonNull)(input.destinationRepository, `destinationRepository`)],
43
- format: [, (0, smithy_client_1.expectNonNull)(input.format, `format`)],
44
- namespace: [, input.namespace],
45
- package: [, (0, smithy_client_1.expectNonNull)(input.package, `package`)],
31
+ [_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
32
+ [_do]: [, input[_dO]],
33
+ [_sr]: [, (0, smithy_client_1.expectNonNull)(input[_sR], `sourceRepository`)],
34
+ [_dr]: [, (0, smithy_client_1.expectNonNull)(input[_dR], `destinationRepository`)],
35
+ [_f]: [, (0, smithy_client_1.expectNonNull)(input[_f], `format`)],
36
+ [_n]: [, input[_n]],
37
+ [_p]: [, (0, smithy_client_1.expectNonNull)(input[_p], `package`)],
46
38
  });
47
39
  let body;
48
40
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -51,54 +43,38 @@ const se_CopyPackageVersionsCommand = async (input, context) => {
51
43
  versionRevisions: (_) => (0, smithy_client_1._json)(_),
52
44
  versions: (_) => (0, smithy_client_1._json)(_),
53
45
  }));
54
- return new protocol_http_1.HttpRequest({
55
- protocol,
56
- hostname,
57
- port,
58
- method: "POST",
59
- headers,
60
- path: resolvedPath,
61
- query,
62
- body,
63
- });
46
+ b.m("POST").h(headers).q(query).b(body);
47
+ return b.build();
64
48
  };
65
49
  exports.se_CopyPackageVersionsCommand = se_CopyPackageVersionsCommand;
66
50
  const se_CreateDomainCommand = async (input, context) => {
67
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
51
+ const b = (0, core_1.requestBuilder)(input, context);
68
52
  const headers = {
69
53
  "content-type": "application/json",
70
54
  };
71
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domain";
55
+ b.bp("/v1/domain");
72
56
  const query = (0, smithy_client_1.map)({
73
- domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
57
+ [_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
74
58
  });
75
59
  let body;
76
60
  body = JSON.stringify((0, smithy_client_1.take)(input, {
77
61
  encryptionKey: [],
78
62
  tags: (_) => (0, smithy_client_1._json)(_),
79
63
  }));
80
- return new protocol_http_1.HttpRequest({
81
- protocol,
82
- hostname,
83
- port,
84
- method: "POST",
85
- headers,
86
- path: resolvedPath,
87
- query,
88
- body,
89
- });
64
+ b.m("POST").h(headers).q(query).b(body);
65
+ return b.build();
90
66
  };
91
67
  exports.se_CreateDomainCommand = se_CreateDomainCommand;
92
68
  const se_CreateRepositoryCommand = async (input, context) => {
93
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
69
+ const b = (0, core_1.requestBuilder)(input, context);
94
70
  const headers = {
95
71
  "content-type": "application/json",
96
72
  };
97
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository";
73
+ b.bp("/v1/repository");
98
74
  const query = (0, smithy_client_1.map)({
99
- domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
100
- "domain-owner": [, input.domainOwner],
101
- repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
75
+ [_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
76
+ [_do]: [, input[_dO]],
77
+ [_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
102
78
  });
103
79
  let body;
104
80
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -106,292 +82,196 @@ const se_CreateRepositoryCommand = async (input, context) => {
106
82
  tags: (_) => (0, smithy_client_1._json)(_),
107
83
  upstreams: (_) => (0, smithy_client_1._json)(_),
108
84
  }));
109
- return new protocol_http_1.HttpRequest({
110
- protocol,
111
- hostname,
112
- port,
113
- method: "POST",
114
- headers,
115
- path: resolvedPath,
116
- query,
117
- body,
118
- });
85
+ b.m("POST").h(headers).q(query).b(body);
86
+ return b.build();
119
87
  };
120
88
  exports.se_CreateRepositoryCommand = se_CreateRepositoryCommand;
121
89
  const se_DeleteDomainCommand = async (input, context) => {
122
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
90
+ const b = (0, core_1.requestBuilder)(input, context);
123
91
  const headers = {};
124
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domain";
92
+ b.bp("/v1/domain");
125
93
  const query = (0, smithy_client_1.map)({
126
- domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
127
- "domain-owner": [, input.domainOwner],
94
+ [_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
95
+ [_do]: [, input[_dO]],
128
96
  });
129
97
  let body;
130
- return new protocol_http_1.HttpRequest({
131
- protocol,
132
- hostname,
133
- port,
134
- method: "DELETE",
135
- headers,
136
- path: resolvedPath,
137
- query,
138
- body,
139
- });
98
+ b.m("DELETE").h(headers).q(query).b(body);
99
+ return b.build();
140
100
  };
141
101
  exports.se_DeleteDomainCommand = se_DeleteDomainCommand;
142
102
  const se_DeleteDomainPermissionsPolicyCommand = async (input, context) => {
143
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
103
+ const b = (0, core_1.requestBuilder)(input, context);
144
104
  const headers = {};
145
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domain/permissions/policy";
105
+ b.bp("/v1/domain/permissions/policy");
146
106
  const query = (0, smithy_client_1.map)({
147
- domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
148
- "domain-owner": [, input.domainOwner],
149
- "policy-revision": [, input.policyRevision],
107
+ [_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
108
+ [_do]: [, input[_dO]],
109
+ [_pr]: [, input[_pR]],
150
110
  });
151
111
  let body;
152
- return new protocol_http_1.HttpRequest({
153
- protocol,
154
- hostname,
155
- port,
156
- method: "DELETE",
157
- headers,
158
- path: resolvedPath,
159
- query,
160
- body,
161
- });
112
+ b.m("DELETE").h(headers).q(query).b(body);
113
+ return b.build();
162
114
  };
163
115
  exports.se_DeleteDomainPermissionsPolicyCommand = se_DeleteDomainPermissionsPolicyCommand;
164
116
  const se_DeletePackageCommand = async (input, context) => {
165
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
117
+ const b = (0, core_1.requestBuilder)(input, context);
166
118
  const headers = {};
167
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package";
119
+ b.bp("/v1/package");
168
120
  const query = (0, smithy_client_1.map)({
169
- domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
170
- "domain-owner": [, input.domainOwner],
171
- repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
172
- format: [, (0, smithy_client_1.expectNonNull)(input.format, `format`)],
173
- namespace: [, input.namespace],
174
- package: [, (0, smithy_client_1.expectNonNull)(input.package, `package`)],
121
+ [_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
122
+ [_do]: [, input[_dO]],
123
+ [_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
124
+ [_f]: [, (0, smithy_client_1.expectNonNull)(input[_f], `format`)],
125
+ [_n]: [, input[_n]],
126
+ [_p]: [, (0, smithy_client_1.expectNonNull)(input[_p], `package`)],
175
127
  });
176
128
  let body;
177
- return new protocol_http_1.HttpRequest({
178
- protocol,
179
- hostname,
180
- port,
181
- method: "DELETE",
182
- headers,
183
- path: resolvedPath,
184
- query,
185
- body,
186
- });
129
+ b.m("DELETE").h(headers).q(query).b(body);
130
+ return b.build();
187
131
  };
188
132
  exports.se_DeletePackageCommand = se_DeletePackageCommand;
189
133
  const se_DeletePackageVersionsCommand = async (input, context) => {
190
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
134
+ const b = (0, core_1.requestBuilder)(input, context);
191
135
  const headers = {
192
136
  "content-type": "application/json",
193
137
  };
194
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/versions/delete";
138
+ b.bp("/v1/package/versions/delete");
195
139
  const query = (0, smithy_client_1.map)({
196
- domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
197
- "domain-owner": [, input.domainOwner],
198
- repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
199
- format: [, (0, smithy_client_1.expectNonNull)(input.format, `format`)],
200
- namespace: [, input.namespace],
201
- package: [, (0, smithy_client_1.expectNonNull)(input.package, `package`)],
140
+ [_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
141
+ [_do]: [, input[_dO]],
142
+ [_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
143
+ [_f]: [, (0, smithy_client_1.expectNonNull)(input[_f], `format`)],
144
+ [_n]: [, input[_n]],
145
+ [_p]: [, (0, smithy_client_1.expectNonNull)(input[_p], `package`)],
202
146
  });
203
147
  let body;
204
148
  body = JSON.stringify((0, smithy_client_1.take)(input, {
205
149
  expectedStatus: [],
206
150
  versions: (_) => (0, smithy_client_1._json)(_),
207
151
  }));
208
- return new protocol_http_1.HttpRequest({
209
- protocol,
210
- hostname,
211
- port,
212
- method: "POST",
213
- headers,
214
- path: resolvedPath,
215
- query,
216
- body,
217
- });
152
+ b.m("POST").h(headers).q(query).b(body);
153
+ return b.build();
218
154
  };
219
155
  exports.se_DeletePackageVersionsCommand = se_DeletePackageVersionsCommand;
220
156
  const se_DeleteRepositoryCommand = async (input, context) => {
221
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
157
+ const b = (0, core_1.requestBuilder)(input, context);
222
158
  const headers = {};
223
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository";
159
+ b.bp("/v1/repository");
224
160
  const query = (0, smithy_client_1.map)({
225
- domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
226
- "domain-owner": [, input.domainOwner],
227
- repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
161
+ [_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
162
+ [_do]: [, input[_dO]],
163
+ [_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
228
164
  });
229
165
  let body;
230
- return new protocol_http_1.HttpRequest({
231
- protocol,
232
- hostname,
233
- port,
234
- method: "DELETE",
235
- headers,
236
- path: resolvedPath,
237
- query,
238
- body,
239
- });
166
+ b.m("DELETE").h(headers).q(query).b(body);
167
+ return b.build();
240
168
  };
241
169
  exports.se_DeleteRepositoryCommand = se_DeleteRepositoryCommand;
242
170
  const se_DeleteRepositoryPermissionsPolicyCommand = async (input, context) => {
243
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
171
+ const b = (0, core_1.requestBuilder)(input, context);
244
172
  const headers = {};
245
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository/permissions/policies";
173
+ b.bp("/v1/repository/permissions/policies");
246
174
  const query = (0, smithy_client_1.map)({
247
- domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
248
- "domain-owner": [, input.domainOwner],
249
- repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
250
- "policy-revision": [, input.policyRevision],
175
+ [_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
176
+ [_do]: [, input[_dO]],
177
+ [_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
178
+ [_pr]: [, input[_pR]],
251
179
  });
252
180
  let body;
253
- return new protocol_http_1.HttpRequest({
254
- protocol,
255
- hostname,
256
- port,
257
- method: "DELETE",
258
- headers,
259
- path: resolvedPath,
260
- query,
261
- body,
262
- });
181
+ b.m("DELETE").h(headers).q(query).b(body);
182
+ return b.build();
263
183
  };
264
184
  exports.se_DeleteRepositoryPermissionsPolicyCommand = se_DeleteRepositoryPermissionsPolicyCommand;
265
185
  const se_DescribeDomainCommand = async (input, context) => {
266
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
186
+ const b = (0, core_1.requestBuilder)(input, context);
267
187
  const headers = {};
268
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domain";
188
+ b.bp("/v1/domain");
269
189
  const query = (0, smithy_client_1.map)({
270
- domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
271
- "domain-owner": [, input.domainOwner],
190
+ [_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
191
+ [_do]: [, input[_dO]],
272
192
  });
273
193
  let body;
274
- return new protocol_http_1.HttpRequest({
275
- protocol,
276
- hostname,
277
- port,
278
- method: "GET",
279
- headers,
280
- path: resolvedPath,
281
- query,
282
- body,
283
- });
194
+ b.m("GET").h(headers).q(query).b(body);
195
+ return b.build();
284
196
  };
285
197
  exports.se_DescribeDomainCommand = se_DescribeDomainCommand;
286
198
  const se_DescribePackageCommand = async (input, context) => {
287
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
199
+ const b = (0, core_1.requestBuilder)(input, context);
288
200
  const headers = {};
289
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package";
201
+ b.bp("/v1/package");
290
202
  const query = (0, smithy_client_1.map)({
291
- domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
292
- "domain-owner": [, input.domainOwner],
293
- repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
294
- format: [, (0, smithy_client_1.expectNonNull)(input.format, `format`)],
295
- namespace: [, input.namespace],
296
- package: [, (0, smithy_client_1.expectNonNull)(input.package, `package`)],
203
+ [_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
204
+ [_do]: [, input[_dO]],
205
+ [_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
206
+ [_f]: [, (0, smithy_client_1.expectNonNull)(input[_f], `format`)],
207
+ [_n]: [, input[_n]],
208
+ [_p]: [, (0, smithy_client_1.expectNonNull)(input[_p], `package`)],
297
209
  });
298
210
  let body;
299
- return new protocol_http_1.HttpRequest({
300
- protocol,
301
- hostname,
302
- port,
303
- method: "GET",
304
- headers,
305
- path: resolvedPath,
306
- query,
307
- body,
308
- });
211
+ b.m("GET").h(headers).q(query).b(body);
212
+ return b.build();
309
213
  };
310
214
  exports.se_DescribePackageCommand = se_DescribePackageCommand;
311
215
  const se_DescribePackageVersionCommand = async (input, context) => {
312
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
216
+ const b = (0, core_1.requestBuilder)(input, context);
313
217
  const headers = {};
314
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/version";
218
+ b.bp("/v1/package/version");
315
219
  const query = (0, smithy_client_1.map)({
316
- domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
317
- "domain-owner": [, input.domainOwner],
318
- repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
319
- format: [, (0, smithy_client_1.expectNonNull)(input.format, `format`)],
320
- namespace: [, input.namespace],
321
- package: [, (0, smithy_client_1.expectNonNull)(input.package, `package`)],
322
- version: [, (0, smithy_client_1.expectNonNull)(input.packageVersion, `packageVersion`)],
220
+ [_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
221
+ [_do]: [, input[_dO]],
222
+ [_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
223
+ [_f]: [, (0, smithy_client_1.expectNonNull)(input[_f], `format`)],
224
+ [_n]: [, input[_n]],
225
+ [_p]: [, (0, smithy_client_1.expectNonNull)(input[_p], `package`)],
226
+ [_v]: [, (0, smithy_client_1.expectNonNull)(input[_pV], `packageVersion`)],
323
227
  });
324
228
  let body;
325
- return new protocol_http_1.HttpRequest({
326
- protocol,
327
- hostname,
328
- port,
329
- method: "GET",
330
- headers,
331
- path: resolvedPath,
332
- query,
333
- body,
334
- });
229
+ b.m("GET").h(headers).q(query).b(body);
230
+ return b.build();
335
231
  };
336
232
  exports.se_DescribePackageVersionCommand = se_DescribePackageVersionCommand;
337
233
  const se_DescribeRepositoryCommand = async (input, context) => {
338
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
234
+ const b = (0, core_1.requestBuilder)(input, context);
339
235
  const headers = {};
340
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository";
236
+ b.bp("/v1/repository");
341
237
  const query = (0, smithy_client_1.map)({
342
- domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
343
- "domain-owner": [, input.domainOwner],
344
- repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
238
+ [_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
239
+ [_do]: [, input[_dO]],
240
+ [_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
345
241
  });
346
242
  let body;
347
- return new protocol_http_1.HttpRequest({
348
- protocol,
349
- hostname,
350
- port,
351
- method: "GET",
352
- headers,
353
- path: resolvedPath,
354
- query,
355
- body,
356
- });
243
+ b.m("GET").h(headers).q(query).b(body);
244
+ return b.build();
357
245
  };
358
246
  exports.se_DescribeRepositoryCommand = se_DescribeRepositoryCommand;
359
247
  const se_DisassociateExternalConnectionCommand = async (input, context) => {
360
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
248
+ const b = (0, core_1.requestBuilder)(input, context);
361
249
  const headers = {};
362
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository/external-connection";
250
+ b.bp("/v1/repository/external-connection");
363
251
  const query = (0, smithy_client_1.map)({
364
- domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
365
- "domain-owner": [, input.domainOwner],
366
- repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
367
- "external-connection": [, (0, smithy_client_1.expectNonNull)(input.externalConnection, `externalConnection`)],
252
+ [_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
253
+ [_do]: [, input[_dO]],
254
+ [_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
255
+ [_ec]: [, (0, smithy_client_1.expectNonNull)(input[_eC], `externalConnection`)],
368
256
  });
369
257
  let body;
370
- return new protocol_http_1.HttpRequest({
371
- protocol,
372
- hostname,
373
- port,
374
- method: "DELETE",
375
- headers,
376
- path: resolvedPath,
377
- query,
378
- body,
379
- });
258
+ b.m("DELETE").h(headers).q(query).b(body);
259
+ return b.build();
380
260
  };
381
261
  exports.se_DisassociateExternalConnectionCommand = se_DisassociateExternalConnectionCommand;
382
262
  const se_DisposePackageVersionsCommand = async (input, context) => {
383
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
263
+ const b = (0, core_1.requestBuilder)(input, context);
384
264
  const headers = {
385
265
  "content-type": "application/json",
386
266
  };
387
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/versions/dispose";
267
+ b.bp("/v1/package/versions/dispose");
388
268
  const query = (0, smithy_client_1.map)({
389
- domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
390
- "domain-owner": [, input.domainOwner],
391
- repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
392
- format: [, (0, smithy_client_1.expectNonNull)(input.format, `format`)],
393
- namespace: [, input.namespace],
394
- package: [, (0, smithy_client_1.expectNonNull)(input.package, `package`)],
269
+ [_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
270
+ [_do]: [, input[_dO]],
271
+ [_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
272
+ [_f]: [, (0, smithy_client_1.expectNonNull)(input[_f], `format`)],
273
+ [_n]: [, input[_n]],
274
+ [_p]: [, (0, smithy_client_1.expectNonNull)(input[_p], `package`)],
395
275
  });
396
276
  let body;
397
277
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -399,403 +279,276 @@ const se_DisposePackageVersionsCommand = async (input, context) => {
399
279
  versionRevisions: (_) => (0, smithy_client_1._json)(_),
400
280
  versions: (_) => (0, smithy_client_1._json)(_),
401
281
  }));
402
- return new protocol_http_1.HttpRequest({
403
- protocol,
404
- hostname,
405
- port,
406
- method: "POST",
407
- headers,
408
- path: resolvedPath,
409
- query,
410
- body,
411
- });
282
+ b.m("POST").h(headers).q(query).b(body);
283
+ return b.build();
412
284
  };
413
285
  exports.se_DisposePackageVersionsCommand = se_DisposePackageVersionsCommand;
414
286
  const se_GetAuthorizationTokenCommand = async (input, context) => {
415
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
287
+ const b = (0, core_1.requestBuilder)(input, context);
416
288
  const headers = {};
417
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/authorization-token";
289
+ b.bp("/v1/authorization-token");
418
290
  const query = (0, smithy_client_1.map)({
419
- domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
420
- "domain-owner": [, input.domainOwner],
421
- duration: [() => input.durationSeconds !== void 0, () => input.durationSeconds.toString()],
291
+ [_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
292
+ [_do]: [, input[_dO]],
293
+ [_du]: [() => input.durationSeconds !== void 0, () => input[_dS].toString()],
422
294
  });
423
295
  let body;
424
- return new protocol_http_1.HttpRequest({
425
- protocol,
426
- hostname,
427
- port,
428
- method: "POST",
429
- headers,
430
- path: resolvedPath,
431
- query,
432
- body,
433
- });
296
+ b.m("POST").h(headers).q(query).b(body);
297
+ return b.build();
434
298
  };
435
299
  exports.se_GetAuthorizationTokenCommand = se_GetAuthorizationTokenCommand;
436
300
  const se_GetDomainPermissionsPolicyCommand = async (input, context) => {
437
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
301
+ const b = (0, core_1.requestBuilder)(input, context);
438
302
  const headers = {};
439
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domain/permissions/policy";
303
+ b.bp("/v1/domain/permissions/policy");
440
304
  const query = (0, smithy_client_1.map)({
441
- domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
442
- "domain-owner": [, input.domainOwner],
305
+ [_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
306
+ [_do]: [, input[_dO]],
443
307
  });
444
308
  let body;
445
- return new protocol_http_1.HttpRequest({
446
- protocol,
447
- hostname,
448
- port,
449
- method: "GET",
450
- headers,
451
- path: resolvedPath,
452
- query,
453
- body,
454
- });
309
+ b.m("GET").h(headers).q(query).b(body);
310
+ return b.build();
455
311
  };
456
312
  exports.se_GetDomainPermissionsPolicyCommand = se_GetDomainPermissionsPolicyCommand;
457
313
  const se_GetPackageVersionAssetCommand = async (input, context) => {
458
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
314
+ const b = (0, core_1.requestBuilder)(input, context);
459
315
  const headers = {};
460
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/version/asset";
316
+ b.bp("/v1/package/version/asset");
461
317
  const query = (0, smithy_client_1.map)({
462
- domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
463
- "domain-owner": [, input.domainOwner],
464
- repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
465
- format: [, (0, smithy_client_1.expectNonNull)(input.format, `format`)],
466
- namespace: [, input.namespace],
467
- package: [, (0, smithy_client_1.expectNonNull)(input.package, `package`)],
468
- version: [, (0, smithy_client_1.expectNonNull)(input.packageVersion, `packageVersion`)],
469
- asset: [, (0, smithy_client_1.expectNonNull)(input.asset, `asset`)],
470
- revision: [, input.packageVersionRevision],
318
+ [_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
319
+ [_do]: [, input[_dO]],
320
+ [_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
321
+ [_f]: [, (0, smithy_client_1.expectNonNull)(input[_f], `format`)],
322
+ [_n]: [, input[_n]],
323
+ [_p]: [, (0, smithy_client_1.expectNonNull)(input[_p], `package`)],
324
+ [_v]: [, (0, smithy_client_1.expectNonNull)(input[_pV], `packageVersion`)],
325
+ [_a]: [, (0, smithy_client_1.expectNonNull)(input[_a], `asset`)],
326
+ [_re]: [, input[_pVR]],
471
327
  });
472
328
  let body;
473
- return new protocol_http_1.HttpRequest({
474
- protocol,
475
- hostname,
476
- port,
477
- method: "GET",
478
- headers,
479
- path: resolvedPath,
480
- query,
481
- body,
482
- });
329
+ b.m("GET").h(headers).q(query).b(body);
330
+ return b.build();
483
331
  };
484
332
  exports.se_GetPackageVersionAssetCommand = se_GetPackageVersionAssetCommand;
485
333
  const se_GetPackageVersionReadmeCommand = async (input, context) => {
486
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
334
+ const b = (0, core_1.requestBuilder)(input, context);
487
335
  const headers = {};
488
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/version/readme";
336
+ b.bp("/v1/package/version/readme");
489
337
  const query = (0, smithy_client_1.map)({
490
- domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
491
- "domain-owner": [, input.domainOwner],
492
- repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
493
- format: [, (0, smithy_client_1.expectNonNull)(input.format, `format`)],
494
- namespace: [, input.namespace],
495
- package: [, (0, smithy_client_1.expectNonNull)(input.package, `package`)],
496
- version: [, (0, smithy_client_1.expectNonNull)(input.packageVersion, `packageVersion`)],
338
+ [_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
339
+ [_do]: [, input[_dO]],
340
+ [_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
341
+ [_f]: [, (0, smithy_client_1.expectNonNull)(input[_f], `format`)],
342
+ [_n]: [, input[_n]],
343
+ [_p]: [, (0, smithy_client_1.expectNonNull)(input[_p], `package`)],
344
+ [_v]: [, (0, smithy_client_1.expectNonNull)(input[_pV], `packageVersion`)],
497
345
  });
498
346
  let body;
499
- return new protocol_http_1.HttpRequest({
500
- protocol,
501
- hostname,
502
- port,
503
- method: "GET",
504
- headers,
505
- path: resolvedPath,
506
- query,
507
- body,
508
- });
347
+ b.m("GET").h(headers).q(query).b(body);
348
+ return b.build();
509
349
  };
510
350
  exports.se_GetPackageVersionReadmeCommand = se_GetPackageVersionReadmeCommand;
511
351
  const se_GetRepositoryEndpointCommand = async (input, context) => {
512
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
352
+ const b = (0, core_1.requestBuilder)(input, context);
513
353
  const headers = {};
514
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository/endpoint";
354
+ b.bp("/v1/repository/endpoint");
515
355
  const query = (0, smithy_client_1.map)({
516
- domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
517
- "domain-owner": [, input.domainOwner],
518
- repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
519
- format: [, (0, smithy_client_1.expectNonNull)(input.format, `format`)],
356
+ [_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
357
+ [_do]: [, input[_dO]],
358
+ [_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
359
+ [_f]: [, (0, smithy_client_1.expectNonNull)(input[_f], `format`)],
520
360
  });
521
361
  let body;
522
- return new protocol_http_1.HttpRequest({
523
- protocol,
524
- hostname,
525
- port,
526
- method: "GET",
527
- headers,
528
- path: resolvedPath,
529
- query,
530
- body,
531
- });
362
+ b.m("GET").h(headers).q(query).b(body);
363
+ return b.build();
532
364
  };
533
365
  exports.se_GetRepositoryEndpointCommand = se_GetRepositoryEndpointCommand;
534
366
  const se_GetRepositoryPermissionsPolicyCommand = async (input, context) => {
535
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
367
+ const b = (0, core_1.requestBuilder)(input, context);
536
368
  const headers = {};
537
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository/permissions/policy";
369
+ b.bp("/v1/repository/permissions/policy");
538
370
  const query = (0, smithy_client_1.map)({
539
- domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
540
- "domain-owner": [, input.domainOwner],
541
- repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
371
+ [_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
372
+ [_do]: [, input[_dO]],
373
+ [_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
542
374
  });
543
375
  let body;
544
- return new protocol_http_1.HttpRequest({
545
- protocol,
546
- hostname,
547
- port,
548
- method: "GET",
549
- headers,
550
- path: resolvedPath,
551
- query,
552
- body,
553
- });
376
+ b.m("GET").h(headers).q(query).b(body);
377
+ return b.build();
554
378
  };
555
379
  exports.se_GetRepositoryPermissionsPolicyCommand = se_GetRepositoryPermissionsPolicyCommand;
556
380
  const se_ListDomainsCommand = async (input, context) => {
557
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
381
+ const b = (0, core_1.requestBuilder)(input, context);
558
382
  const headers = {
559
383
  "content-type": "application/json",
560
384
  };
561
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domains";
385
+ b.bp("/v1/domains");
562
386
  let body;
563
387
  body = JSON.stringify((0, smithy_client_1.take)(input, {
564
388
  maxResults: [],
565
389
  nextToken: [],
566
390
  }));
567
- return new protocol_http_1.HttpRequest({
568
- protocol,
569
- hostname,
570
- port,
571
- method: "POST",
572
- headers,
573
- path: resolvedPath,
574
- body,
575
- });
391
+ b.m("POST").h(headers).b(body);
392
+ return b.build();
576
393
  };
577
394
  exports.se_ListDomainsCommand = se_ListDomainsCommand;
578
395
  const se_ListPackagesCommand = async (input, context) => {
579
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
396
+ const b = (0, core_1.requestBuilder)(input, context);
580
397
  const headers = {};
581
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/packages";
398
+ b.bp("/v1/packages");
582
399
  const query = (0, smithy_client_1.map)({
583
- domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
584
- "domain-owner": [, input.domainOwner],
585
- repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
586
- format: [, input.format],
587
- namespace: [, input.namespace],
588
- "package-prefix": [, input.packagePrefix],
589
- "max-results": [() => input.maxResults !== void 0, () => input.maxResults.toString()],
590
- "next-token": [, input.nextToken],
591
- publish: [, input.publish],
592
- upstream: [, input.upstream],
400
+ [_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
401
+ [_do]: [, input[_dO]],
402
+ [_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
403
+ [_f]: [, input[_f]],
404
+ [_n]: [, input[_n]],
405
+ [_pp]: [, input[_pP]],
406
+ [_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
407
+ [_nt]: [, input[_nT]],
408
+ [_pu]: [, input[_pu]],
409
+ [_u]: [, input[_u]],
593
410
  });
594
411
  let body;
595
- return new protocol_http_1.HttpRequest({
596
- protocol,
597
- hostname,
598
- port,
599
- method: "POST",
600
- headers,
601
- path: resolvedPath,
602
- query,
603
- body,
604
- });
412
+ b.m("POST").h(headers).q(query).b(body);
413
+ return b.build();
605
414
  };
606
415
  exports.se_ListPackagesCommand = se_ListPackagesCommand;
607
416
  const se_ListPackageVersionAssetsCommand = async (input, context) => {
608
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
417
+ const b = (0, core_1.requestBuilder)(input, context);
609
418
  const headers = {};
610
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/version/assets";
419
+ b.bp("/v1/package/version/assets");
611
420
  const query = (0, smithy_client_1.map)({
612
- domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
613
- "domain-owner": [, input.domainOwner],
614
- repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
615
- format: [, (0, smithy_client_1.expectNonNull)(input.format, `format`)],
616
- namespace: [, input.namespace],
617
- package: [, (0, smithy_client_1.expectNonNull)(input.package, `package`)],
618
- version: [, (0, smithy_client_1.expectNonNull)(input.packageVersion, `packageVersion`)],
619
- "max-results": [() => input.maxResults !== void 0, () => input.maxResults.toString()],
620
- "next-token": [, input.nextToken],
421
+ [_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
422
+ [_do]: [, input[_dO]],
423
+ [_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
424
+ [_f]: [, (0, smithy_client_1.expectNonNull)(input[_f], `format`)],
425
+ [_n]: [, input[_n]],
426
+ [_p]: [, (0, smithy_client_1.expectNonNull)(input[_p], `package`)],
427
+ [_v]: [, (0, smithy_client_1.expectNonNull)(input[_pV], `packageVersion`)],
428
+ [_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
429
+ [_nt]: [, input[_nT]],
621
430
  });
622
431
  let body;
623
- return new protocol_http_1.HttpRequest({
624
- protocol,
625
- hostname,
626
- port,
627
- method: "POST",
628
- headers,
629
- path: resolvedPath,
630
- query,
631
- body,
632
- });
432
+ b.m("POST").h(headers).q(query).b(body);
433
+ return b.build();
633
434
  };
634
435
  exports.se_ListPackageVersionAssetsCommand = se_ListPackageVersionAssetsCommand;
635
436
  const se_ListPackageVersionDependenciesCommand = async (input, context) => {
636
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
437
+ const b = (0, core_1.requestBuilder)(input, context);
637
438
  const headers = {};
638
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/version/dependencies";
439
+ b.bp("/v1/package/version/dependencies");
639
440
  const query = (0, smithy_client_1.map)({
640
- domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
641
- "domain-owner": [, input.domainOwner],
642
- repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
643
- format: [, (0, smithy_client_1.expectNonNull)(input.format, `format`)],
644
- namespace: [, input.namespace],
645
- package: [, (0, smithy_client_1.expectNonNull)(input.package, `package`)],
646
- version: [, (0, smithy_client_1.expectNonNull)(input.packageVersion, `packageVersion`)],
647
- "next-token": [, input.nextToken],
441
+ [_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
442
+ [_do]: [, input[_dO]],
443
+ [_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
444
+ [_f]: [, (0, smithy_client_1.expectNonNull)(input[_f], `format`)],
445
+ [_n]: [, input[_n]],
446
+ [_p]: [, (0, smithy_client_1.expectNonNull)(input[_p], `package`)],
447
+ [_v]: [, (0, smithy_client_1.expectNonNull)(input[_pV], `packageVersion`)],
448
+ [_nt]: [, input[_nT]],
648
449
  });
649
450
  let body;
650
- return new protocol_http_1.HttpRequest({
651
- protocol,
652
- hostname,
653
- port,
654
- method: "POST",
655
- headers,
656
- path: resolvedPath,
657
- query,
658
- body,
659
- });
451
+ b.m("POST").h(headers).q(query).b(body);
452
+ return b.build();
660
453
  };
661
454
  exports.se_ListPackageVersionDependenciesCommand = se_ListPackageVersionDependenciesCommand;
662
455
  const se_ListPackageVersionsCommand = async (input, context) => {
663
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
456
+ const b = (0, core_1.requestBuilder)(input, context);
664
457
  const headers = {};
665
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/versions";
458
+ b.bp("/v1/package/versions");
666
459
  const query = (0, smithy_client_1.map)({
667
- domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
668
- "domain-owner": [, input.domainOwner],
669
- repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
670
- format: [, (0, smithy_client_1.expectNonNull)(input.format, `format`)],
671
- namespace: [, input.namespace],
672
- package: [, (0, smithy_client_1.expectNonNull)(input.package, `package`)],
673
- status: [, input.status],
674
- sortBy: [, input.sortBy],
675
- "max-results": [() => input.maxResults !== void 0, () => input.maxResults.toString()],
676
- "next-token": [, input.nextToken],
677
- originType: [, input.originType],
460
+ [_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
461
+ [_do]: [, input[_dO]],
462
+ [_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
463
+ [_f]: [, (0, smithy_client_1.expectNonNull)(input[_f], `format`)],
464
+ [_n]: [, input[_n]],
465
+ [_p]: [, (0, smithy_client_1.expectNonNull)(input[_p], `package`)],
466
+ [_s]: [, input[_s]],
467
+ [_sB]: [, input[_sB]],
468
+ [_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
469
+ [_nt]: [, input[_nT]],
470
+ [_oT]: [, input[_oT]],
678
471
  });
679
472
  let body;
680
- return new protocol_http_1.HttpRequest({
681
- protocol,
682
- hostname,
683
- port,
684
- method: "POST",
685
- headers,
686
- path: resolvedPath,
687
- query,
688
- body,
689
- });
473
+ b.m("POST").h(headers).q(query).b(body);
474
+ return b.build();
690
475
  };
691
476
  exports.se_ListPackageVersionsCommand = se_ListPackageVersionsCommand;
692
477
  const se_ListRepositoriesCommand = async (input, context) => {
693
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
478
+ const b = (0, core_1.requestBuilder)(input, context);
694
479
  const headers = {};
695
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repositories";
480
+ b.bp("/v1/repositories");
696
481
  const query = (0, smithy_client_1.map)({
697
- "repository-prefix": [, input.repositoryPrefix],
698
- "max-results": [() => input.maxResults !== void 0, () => input.maxResults.toString()],
699
- "next-token": [, input.nextToken],
482
+ [_rp]: [, input[_rP]],
483
+ [_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
484
+ [_nt]: [, input[_nT]],
700
485
  });
701
486
  let body;
702
- return new protocol_http_1.HttpRequest({
703
- protocol,
704
- hostname,
705
- port,
706
- method: "POST",
707
- headers,
708
- path: resolvedPath,
709
- query,
710
- body,
711
- });
487
+ b.m("POST").h(headers).q(query).b(body);
488
+ return b.build();
712
489
  };
713
490
  exports.se_ListRepositoriesCommand = se_ListRepositoriesCommand;
714
491
  const se_ListRepositoriesInDomainCommand = async (input, context) => {
715
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
492
+ const b = (0, core_1.requestBuilder)(input, context);
716
493
  const headers = {};
717
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domain/repositories";
494
+ b.bp("/v1/domain/repositories");
718
495
  const query = (0, smithy_client_1.map)({
719
- domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
720
- "domain-owner": [, input.domainOwner],
721
- "administrator-account": [, input.administratorAccount],
722
- "repository-prefix": [, input.repositoryPrefix],
723
- "max-results": [() => input.maxResults !== void 0, () => input.maxResults.toString()],
724
- "next-token": [, input.nextToken],
496
+ [_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
497
+ [_do]: [, input[_dO]],
498
+ [_aa]: [, input[_aA]],
499
+ [_rp]: [, input[_rP]],
500
+ [_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
501
+ [_nt]: [, input[_nT]],
725
502
  });
726
503
  let body;
727
- return new protocol_http_1.HttpRequest({
728
- protocol,
729
- hostname,
730
- port,
731
- method: "POST",
732
- headers,
733
- path: resolvedPath,
734
- query,
735
- body,
736
- });
504
+ b.m("POST").h(headers).q(query).b(body);
505
+ return b.build();
737
506
  };
738
507
  exports.se_ListRepositoriesInDomainCommand = se_ListRepositoriesInDomainCommand;
739
508
  const se_ListTagsForResourceCommand = async (input, context) => {
740
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
509
+ const b = (0, core_1.requestBuilder)(input, context);
741
510
  const headers = {};
742
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags";
511
+ b.bp("/v1/tags");
743
512
  const query = (0, smithy_client_1.map)({
744
- resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
513
+ [_rA]: [, (0, smithy_client_1.expectNonNull)(input[_rA], `resourceArn`)],
745
514
  });
746
515
  let body;
747
- return new protocol_http_1.HttpRequest({
748
- protocol,
749
- hostname,
750
- port,
751
- method: "POST",
752
- headers,
753
- path: resolvedPath,
754
- query,
755
- body,
756
- });
516
+ b.m("POST").h(headers).q(query).b(body);
517
+ return b.build();
757
518
  };
758
519
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
759
520
  const se_PublishPackageVersionCommand = async (input, context) => {
760
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
521
+ const b = (0, core_1.requestBuilder)(input, context);
761
522
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
762
523
  "content-type": "application/octet-stream",
763
- "x-amz-content-sha256": input.assetSHA256,
524
+ [_xacs]: input[_aSHA],
764
525
  });
765
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/version/publish";
526
+ b.bp("/v1/package/version/publish");
766
527
  const query = (0, smithy_client_1.map)({
767
- domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
768
- "domain-owner": [, input.domainOwner],
769
- repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
770
- format: [, (0, smithy_client_1.expectNonNull)(input.format, `format`)],
771
- namespace: [, input.namespace],
772
- package: [, (0, smithy_client_1.expectNonNull)(input.package, `package`)],
773
- version: [, (0, smithy_client_1.expectNonNull)(input.packageVersion, `packageVersion`)],
774
- asset: [, (0, smithy_client_1.expectNonNull)(input.assetName, `assetName`)],
775
- unfinished: [() => input.unfinished !== void 0, () => input.unfinished.toString()],
528
+ [_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
529
+ [_do]: [, input[_dO]],
530
+ [_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
531
+ [_f]: [, (0, smithy_client_1.expectNonNull)(input[_f], `format`)],
532
+ [_n]: [, input[_n]],
533
+ [_p]: [, (0, smithy_client_1.expectNonNull)(input[_p], `package`)],
534
+ [_v]: [, (0, smithy_client_1.expectNonNull)(input[_pV], `packageVersion`)],
535
+ [_a]: [, (0, smithy_client_1.expectNonNull)(input[_aN], `assetName`)],
536
+ [_un]: [() => input.unfinished !== void 0, () => input[_un].toString()],
776
537
  });
777
538
  let body;
778
539
  if (input.assetContent !== undefined) {
779
540
  body = input.assetContent;
780
541
  }
781
- return new protocol_http_1.HttpRequest({
782
- protocol,
783
- hostname,
784
- port,
785
- method: "POST",
786
- headers,
787
- path: resolvedPath,
788
- query,
789
- body,
790
- });
542
+ b.m("POST").h(headers).q(query).b(body);
543
+ return b.build();
791
544
  };
792
545
  exports.se_PublishPackageVersionCommand = se_PublishPackageVersionCommand;
793
546
  const se_PutDomainPermissionsPolicyCommand = async (input, context) => {
794
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
547
+ const b = (0, core_1.requestBuilder)(input, context);
795
548
  const headers = {
796
549
  "content-type": "application/json",
797
550
  };
798
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domain/permissions/policy";
551
+ b.bp("/v1/domain/permissions/policy");
799
552
  let body;
800
553
  body = JSON.stringify((0, smithy_client_1.take)(input, {
801
554
  domain: [],
@@ -803,138 +556,99 @@ const se_PutDomainPermissionsPolicyCommand = async (input, context) => {
803
556
  policyDocument: [],
804
557
  policyRevision: [],
805
558
  }));
806
- return new protocol_http_1.HttpRequest({
807
- protocol,
808
- hostname,
809
- port,
810
- method: "PUT",
811
- headers,
812
- path: resolvedPath,
813
- body,
814
- });
559
+ b.m("PUT").h(headers).b(body);
560
+ return b.build();
815
561
  };
816
562
  exports.se_PutDomainPermissionsPolicyCommand = se_PutDomainPermissionsPolicyCommand;
817
563
  const se_PutPackageOriginConfigurationCommand = async (input, context) => {
818
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
564
+ const b = (0, core_1.requestBuilder)(input, context);
819
565
  const headers = {
820
566
  "content-type": "application/json",
821
567
  };
822
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package";
568
+ b.bp("/v1/package");
823
569
  const query = (0, smithy_client_1.map)({
824
- domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
825
- "domain-owner": [, input.domainOwner],
826
- repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
827
- format: [, (0, smithy_client_1.expectNonNull)(input.format, `format`)],
828
- namespace: [, input.namespace],
829
- package: [, (0, smithy_client_1.expectNonNull)(input.package, `package`)],
570
+ [_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
571
+ [_do]: [, input[_dO]],
572
+ [_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
573
+ [_f]: [, (0, smithy_client_1.expectNonNull)(input[_f], `format`)],
574
+ [_n]: [, input[_n]],
575
+ [_p]: [, (0, smithy_client_1.expectNonNull)(input[_p], `package`)],
830
576
  });
831
577
  let body;
832
578
  body = JSON.stringify((0, smithy_client_1.take)(input, {
833
579
  restrictions: (_) => (0, smithy_client_1._json)(_),
834
580
  }));
835
- return new protocol_http_1.HttpRequest({
836
- protocol,
837
- hostname,
838
- port,
839
- method: "POST",
840
- headers,
841
- path: resolvedPath,
842
- query,
843
- body,
844
- });
581
+ b.m("POST").h(headers).q(query).b(body);
582
+ return b.build();
845
583
  };
846
584
  exports.se_PutPackageOriginConfigurationCommand = se_PutPackageOriginConfigurationCommand;
847
585
  const se_PutRepositoryPermissionsPolicyCommand = async (input, context) => {
848
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
586
+ const b = (0, core_1.requestBuilder)(input, context);
849
587
  const headers = {
850
588
  "content-type": "application/json",
851
589
  };
852
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository/permissions/policy";
590
+ b.bp("/v1/repository/permissions/policy");
853
591
  const query = (0, smithy_client_1.map)({
854
- domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
855
- "domain-owner": [, input.domainOwner],
856
- repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
592
+ [_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
593
+ [_do]: [, input[_dO]],
594
+ [_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
857
595
  });
858
596
  let body;
859
597
  body = JSON.stringify((0, smithy_client_1.take)(input, {
860
598
  policyDocument: [],
861
599
  policyRevision: [],
862
600
  }));
863
- return new protocol_http_1.HttpRequest({
864
- protocol,
865
- hostname,
866
- port,
867
- method: "PUT",
868
- headers,
869
- path: resolvedPath,
870
- query,
871
- body,
872
- });
601
+ b.m("PUT").h(headers).q(query).b(body);
602
+ return b.build();
873
603
  };
874
604
  exports.se_PutRepositoryPermissionsPolicyCommand = se_PutRepositoryPermissionsPolicyCommand;
875
605
  const se_TagResourceCommand = async (input, context) => {
876
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
606
+ const b = (0, core_1.requestBuilder)(input, context);
877
607
  const headers = {
878
608
  "content-type": "application/json",
879
609
  };
880
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tag";
610
+ b.bp("/v1/tag");
881
611
  const query = (0, smithy_client_1.map)({
882
- resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
612
+ [_rA]: [, (0, smithy_client_1.expectNonNull)(input[_rA], `resourceArn`)],
883
613
  });
884
614
  let body;
885
615
  body = JSON.stringify((0, smithy_client_1.take)(input, {
886
616
  tags: (_) => (0, smithy_client_1._json)(_),
887
617
  }));
888
- return new protocol_http_1.HttpRequest({
889
- protocol,
890
- hostname,
891
- port,
892
- method: "POST",
893
- headers,
894
- path: resolvedPath,
895
- query,
896
- body,
897
- });
618
+ b.m("POST").h(headers).q(query).b(body);
619
+ return b.build();
898
620
  };
899
621
  exports.se_TagResourceCommand = se_TagResourceCommand;
900
622
  const se_UntagResourceCommand = async (input, context) => {
901
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
623
+ const b = (0, core_1.requestBuilder)(input, context);
902
624
  const headers = {
903
625
  "content-type": "application/json",
904
626
  };
905
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/untag";
627
+ b.bp("/v1/untag");
906
628
  const query = (0, smithy_client_1.map)({
907
- resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
629
+ [_rA]: [, (0, smithy_client_1.expectNonNull)(input[_rA], `resourceArn`)],
908
630
  });
909
631
  let body;
910
632
  body = JSON.stringify((0, smithy_client_1.take)(input, {
911
633
  tagKeys: (_) => (0, smithy_client_1._json)(_),
912
634
  }));
913
- return new protocol_http_1.HttpRequest({
914
- protocol,
915
- hostname,
916
- port,
917
- method: "POST",
918
- headers,
919
- path: resolvedPath,
920
- query,
921
- body,
922
- });
635
+ b.m("POST").h(headers).q(query).b(body);
636
+ return b.build();
923
637
  };
924
638
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
925
639
  const se_UpdatePackageVersionsStatusCommand = async (input, context) => {
926
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
640
+ const b = (0, core_1.requestBuilder)(input, context);
927
641
  const headers = {
928
642
  "content-type": "application/json",
929
643
  };
930
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/versions/update_status";
644
+ b.bp("/v1/package/versions/update_status");
931
645
  const query = (0, smithy_client_1.map)({
932
- domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
933
- "domain-owner": [, input.domainOwner],
934
- repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
935
- format: [, (0, smithy_client_1.expectNonNull)(input.format, `format`)],
936
- namespace: [, input.namespace],
937
- package: [, (0, smithy_client_1.expectNonNull)(input.package, `package`)],
646
+ [_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
647
+ [_do]: [, input[_dO]],
648
+ [_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
649
+ [_f]: [, (0, smithy_client_1.expectNonNull)(input[_f], `format`)],
650
+ [_n]: [, input[_n]],
651
+ [_p]: [, (0, smithy_client_1.expectNonNull)(input[_p], `package`)],
938
652
  });
939
653
  let body;
940
654
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -943,44 +657,28 @@ const se_UpdatePackageVersionsStatusCommand = async (input, context) => {
943
657
  versionRevisions: (_) => (0, smithy_client_1._json)(_),
944
658
  versions: (_) => (0, smithy_client_1._json)(_),
945
659
  }));
946
- return new protocol_http_1.HttpRequest({
947
- protocol,
948
- hostname,
949
- port,
950
- method: "POST",
951
- headers,
952
- path: resolvedPath,
953
- query,
954
- body,
955
- });
660
+ b.m("POST").h(headers).q(query).b(body);
661
+ return b.build();
956
662
  };
957
663
  exports.se_UpdatePackageVersionsStatusCommand = se_UpdatePackageVersionsStatusCommand;
958
664
  const se_UpdateRepositoryCommand = async (input, context) => {
959
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
665
+ const b = (0, core_1.requestBuilder)(input, context);
960
666
  const headers = {
961
667
  "content-type": "application/json",
962
668
  };
963
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository";
669
+ b.bp("/v1/repository");
964
670
  const query = (0, smithy_client_1.map)({
965
- domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
966
- "domain-owner": [, input.domainOwner],
967
- repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
671
+ [_d]: [, (0, smithy_client_1.expectNonNull)(input[_d], `domain`)],
672
+ [_do]: [, input[_dO]],
673
+ [_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `repository`)],
968
674
  });
969
675
  let body;
970
676
  body = JSON.stringify((0, smithy_client_1.take)(input, {
971
677
  description: [],
972
678
  upstreams: (_) => (0, smithy_client_1._json)(_),
973
679
  }));
974
- return new protocol_http_1.HttpRequest({
975
- protocol,
976
- hostname,
977
- port,
978
- method: "PUT",
979
- headers,
980
- path: resolvedPath,
981
- query,
982
- body,
983
- });
680
+ b.m("PUT").h(headers).q(query).b(body);
681
+ return b.build();
984
682
  };
985
683
  exports.se_UpdateRepositoryCommand = se_UpdateRepositoryCommand;
986
684
  const de_AssociateExternalConnectionCommand = async (output, context) => {
@@ -1872,9 +1570,9 @@ const de_GetPackageVersionAssetCommand = async (output, context) => {
1872
1570
  }
1873
1571
  const contents = (0, smithy_client_1.map)({
1874
1572
  $metadata: deserializeMetadata(output),
1875
- assetName: [, output.headers["x-assetname"]],
1876
- packageVersion: [, output.headers["x-packageversion"]],
1877
- packageVersionRevision: [, output.headers["x-packageversionrevision"]],
1573
+ [_aN]: [, output.headers[_xa]],
1574
+ [_pV]: [, output.headers[_xp]],
1575
+ [_pVR]: [, output.headers[_xp_]],
1878
1576
  });
1879
1577
  const data = output.body;
1880
1578
  context.sdkStreamMixin(data);
@@ -2904,10 +2602,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
2904
2602
  };
2905
2603
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
2906
2604
  const contents = (0, smithy_client_1.map)({
2907
- retryAfterSeconds: [
2908
- () => void 0 !== parsedOutput.headers["retry-after"],
2909
- () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
2910
- ],
2605
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
2911
2606
  });
2912
2607
  const data = parsedOutput.body;
2913
2608
  const doc = (0, smithy_client_1.take)(data, {
@@ -3026,6 +2721,53 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
3026
2721
  value !== "" &&
3027
2722
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
3028
2723
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
2724
+ const _a = "asset";
2725
+ const _aA = "administratorAccount";
2726
+ const _aN = "assetName";
2727
+ const _aSHA = "assetSHA256";
2728
+ const _aa = "administrator-account";
2729
+ const _d = "domain";
2730
+ const _dO = "domainOwner";
2731
+ const _dR = "destinationRepository";
2732
+ const _dS = "durationSeconds";
2733
+ const _do = "domain-owner";
2734
+ const _dr = "destination-repository";
2735
+ const _du = "duration";
2736
+ const _eC = "externalConnection";
2737
+ const _ec = "external-connection";
2738
+ const _f = "format";
2739
+ const _mR = "maxResults";
2740
+ const _mr = "max-results";
2741
+ const _n = "namespace";
2742
+ const _nT = "nextToken";
2743
+ const _nt = "next-token";
2744
+ const _oT = "originType";
2745
+ const _p = "package";
2746
+ const _pP = "packagePrefix";
2747
+ const _pR = "policyRevision";
2748
+ const _pV = "packageVersion";
2749
+ const _pVR = "packageVersionRevision";
2750
+ const _pp = "package-prefix";
2751
+ const _pr = "policy-revision";
2752
+ const _pu = "publish";
2753
+ const _r = "repository";
2754
+ const _rA = "resourceArn";
2755
+ const _rAS = "retryAfterSeconds";
2756
+ const _rP = "repositoryPrefix";
2757
+ const _ra = "retry-after";
2758
+ const _re = "revision";
2759
+ const _rp = "repository-prefix";
2760
+ const _s = "status";
2761
+ const _sB = "sortBy";
2762
+ const _sR = "sourceRepository";
2763
+ const _sr = "source-repository";
2764
+ const _u = "upstream";
2765
+ const _un = "unfinished";
2766
+ const _v = "version";
2767
+ const _xa = "x-assetname";
2768
+ const _xacs = "x-amz-content-sha256";
2769
+ const _xp = "x-packageversion";
2770
+ const _xp_ = "x-packageversionrevision";
3029
2771
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
3030
2772
  if (encoded.length) {
3031
2773
  return JSON.parse(encoded);