@aws-sdk/client-artifact 3.1074.0 → 3.1076.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.
package/dist-cjs/index.js CHANGED
@@ -1,21 +1,57 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultArtifactHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { GetAccountSettings$, GetReport$, GetReportMetadata$, GetTermForReport$, ListCustomerAgreements$, ListReports$, ListReportVersions$, PutAccountSettings$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { ArtifactServiceException } = require("./models/ArtifactServiceException");
18
- exports.ArtifactServiceException = ArtifactServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
16
+
17
+ const defaultArtifactHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
+ return {
19
+ operation: getSmithyContext(context).operation,
20
+ region: await normalizeProvider(config.region)() || (() => {
21
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
22
+ })(),
23
+ };
24
+ };
25
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
26
+ return {
27
+ schemeId: "aws.auth#sigv4",
28
+ signingProperties: {
29
+ name: "artifact",
30
+ region: authParameters.region,
31
+ },
32
+ propertiesExtractor: (config, context) => ({
33
+ signingProperties: {
34
+ config,
35
+ context,
36
+ },
37
+ }),
38
+ };
39
+ }
40
+ const defaultArtifactHttpAuthSchemeProvider = (authParameters) => {
41
+ const options = [];
42
+ switch (authParameters.operation) {
43
+ default: {
44
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
45
+ }
46
+ }
47
+ return options;
48
+ };
49
+ const resolveHttpAuthSchemeConfig = (config) => {
50
+ const config_0 = resolveAwsSdkSigV4Config(config);
51
+ return Object.assign(config_0, {
52
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
53
+ });
54
+ };
19
55
 
20
56
  const resolveClientEndpointParameters = (options) => {
21
57
  return Object.assign(options, {
@@ -31,6 +67,543 @@ const commonParams = {
31
67
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
68
  };
33
69
 
70
+ var version = "3.1075.0";
71
+ var packageInfo = {
72
+ version: version};
73
+
74
+ const k = "ref";
75
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = { "authSchemes": [{ "name": "sigv4", "signingRegion": "{PartitionResult#implicitGlobalRegion}" }] }, j = [{ [k]: "Region" }];
76
+ const _data = {
77
+ conditions: [
78
+ [c, [g]],
79
+ [c, j],
80
+ ["aws.partition", j, d],
81
+ [e, [{ [k]: "UseFIPS" }, b]],
82
+ [e, [{ [k]: "UseDualStack" }, b]],
83
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
84
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
85
+ ],
86
+ results: [
87
+ [a],
88
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
89
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
90
+ [g, {}],
91
+ ["https://artifact-fips.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}", i],
92
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
93
+ ["https://artifact-fips.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dnsSuffix}", i],
94
+ [a, "FIPS is enabled but this partition does not support FIPS"],
95
+ ["https://artifact.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}", i],
96
+ [a, "DualStack is enabled but this partition does not support DualStack"],
97
+ ["https://artifact.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dnsSuffix}", i],
98
+ [a, "Invalid Configuration: Missing Region"]
99
+ ]
100
+ };
101
+ const root = 2;
102
+ const r = 100_000_000;
103
+ const nodes = new Int32Array([
104
+ -1, 1, -1,
105
+ 0, 12, 3,
106
+ 1, 4, r + 11,
107
+ 2, 5, r + 11,
108
+ 3, 8, 6,
109
+ 4, 7, r + 10,
110
+ 5, r + 8, r + 9,
111
+ 4, 10, 9,
112
+ 6, r + 6, r + 7,
113
+ 5, 11, r + 5,
114
+ 6, r + 4, r + 5,
115
+ 3, r + 1, 13,
116
+ 4, r + 2, r + 3,
117
+ ]);
118
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
119
+
120
+ const cache = new EndpointCache({
121
+ size: 50,
122
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
123
+ });
124
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
125
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
126
+ endpointParams: endpointParams,
127
+ logger: context.logger,
128
+ }));
129
+ };
130
+ customEndpointFunctions.aws = awsEndpointFunctions;
131
+
132
+ class ArtifactServiceException extends ServiceException {
133
+ constructor(options) {
134
+ super(options);
135
+ Object.setPrototypeOf(this, ArtifactServiceException.prototype);
136
+ }
137
+ }
138
+
139
+ class AccessDeniedException extends ArtifactServiceException {
140
+ name = "AccessDeniedException";
141
+ $fault = "client";
142
+ constructor(opts) {
143
+ super({
144
+ name: "AccessDeniedException",
145
+ $fault: "client",
146
+ ...opts,
147
+ });
148
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
149
+ }
150
+ }
151
+ class ConflictException extends ArtifactServiceException {
152
+ name = "ConflictException";
153
+ $fault = "client";
154
+ resourceId;
155
+ resourceType;
156
+ constructor(opts) {
157
+ super({
158
+ name: "ConflictException",
159
+ $fault: "client",
160
+ ...opts,
161
+ });
162
+ Object.setPrototypeOf(this, ConflictException.prototype);
163
+ this.resourceId = opts.resourceId;
164
+ this.resourceType = opts.resourceType;
165
+ }
166
+ }
167
+ class InternalServerException extends ArtifactServiceException {
168
+ name = "InternalServerException";
169
+ $fault = "server";
170
+ $retryable = {};
171
+ retryAfterSeconds;
172
+ constructor(opts) {
173
+ super({
174
+ name: "InternalServerException",
175
+ $fault: "server",
176
+ ...opts,
177
+ });
178
+ Object.setPrototypeOf(this, InternalServerException.prototype);
179
+ this.retryAfterSeconds = opts.retryAfterSeconds;
180
+ }
181
+ }
182
+ class ResourceNotFoundException extends ArtifactServiceException {
183
+ name = "ResourceNotFoundException";
184
+ $fault = "client";
185
+ resourceId;
186
+ resourceType;
187
+ constructor(opts) {
188
+ super({
189
+ name: "ResourceNotFoundException",
190
+ $fault: "client",
191
+ ...opts,
192
+ });
193
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
194
+ this.resourceId = opts.resourceId;
195
+ this.resourceType = opts.resourceType;
196
+ }
197
+ }
198
+ class ServiceQuotaExceededException extends ArtifactServiceException {
199
+ name = "ServiceQuotaExceededException";
200
+ $fault = "client";
201
+ resourceId;
202
+ resourceType;
203
+ serviceCode;
204
+ quotaCode;
205
+ constructor(opts) {
206
+ super({
207
+ name: "ServiceQuotaExceededException",
208
+ $fault: "client",
209
+ ...opts,
210
+ });
211
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
212
+ this.resourceId = opts.resourceId;
213
+ this.resourceType = opts.resourceType;
214
+ this.serviceCode = opts.serviceCode;
215
+ this.quotaCode = opts.quotaCode;
216
+ }
217
+ }
218
+ class ThrottlingException extends ArtifactServiceException {
219
+ name = "ThrottlingException";
220
+ $fault = "client";
221
+ $retryable = {
222
+ throttling: true,
223
+ };
224
+ serviceCode;
225
+ quotaCode;
226
+ retryAfterSeconds;
227
+ constructor(opts) {
228
+ super({
229
+ name: "ThrottlingException",
230
+ $fault: "client",
231
+ ...opts,
232
+ });
233
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
234
+ this.serviceCode = opts.serviceCode;
235
+ this.quotaCode = opts.quotaCode;
236
+ this.retryAfterSeconds = opts.retryAfterSeconds;
237
+ }
238
+ }
239
+ class ValidationException extends ArtifactServiceException {
240
+ name = "ValidationException";
241
+ $fault = "client";
242
+ reason;
243
+ fieldList;
244
+ constructor(opts) {
245
+ super({
246
+ name: "ValidationException",
247
+ $fault: "client",
248
+ ...opts,
249
+ });
250
+ Object.setPrototypeOf(this, ValidationException.prototype);
251
+ this.reason = opts.reason;
252
+ this.fieldList = opts.fieldList;
253
+ }
254
+ }
255
+
256
+ const _ADE = "AccessDeniedException";
257
+ const _AS = "AccountSettings";
258
+ const _CAL = "CustomerAgreementList";
259
+ const _CAS = "CustomerAgreementSummary";
260
+ const _CE = "ConflictException";
261
+ const _GAS = "GetAccountSettings";
262
+ const _GASR = "GetAccountSettingsRequest";
263
+ const _GASRe = "GetAccountSettingsResponse";
264
+ const _GR = "GetReport";
265
+ const _GRM = "GetReportMetadata";
266
+ const _GRMR = "GetReportMetadataRequest";
267
+ const _GRMRe = "GetReportMetadataResponse";
268
+ const _GRR = "GetReportRequest";
269
+ const _GRRe = "GetReportResponse";
270
+ const _GTFR = "GetTermForReport";
271
+ const _GTFRR = "GetTermForReportRequest";
272
+ const _GTFRRe = "GetTermForReportResponse";
273
+ const _ISE = "InternalServerException";
274
+ const _LCA = "ListCustomerAgreements";
275
+ const _LCAR = "ListCustomerAgreementsRequest";
276
+ const _LCARi = "ListCustomerAgreementsResponse";
277
+ const _LR = "ListReports";
278
+ const _LRR = "ListReportsRequest";
279
+ const _LRRi = "ListReportsResponse";
280
+ const _LRV = "ListReportVersions";
281
+ const _LRVR = "ListReportVersionsRequest";
282
+ const _LRVRi = "ListReportVersionsResponse";
283
+ const _PAS = "PutAccountSettings";
284
+ const _PASR = "PutAccountSettingsRequest";
285
+ const _PASRu = "PutAccountSettingsResponse";
286
+ const _RA = "Retry-After";
287
+ const _RD = "ReportDetail";
288
+ const _RL = "ReportsList";
289
+ const _RNFE = "ResourceNotFoundException";
290
+ const _RS = "ReportSummary";
291
+ const _SQEE = "ServiceQuotaExceededException";
292
+ const _TE = "ThrottlingException";
293
+ const _VE = "ValidationException";
294
+ const _VEF = "ValidationExceptionField";
295
+ const _VEFL = "ValidationExceptionFieldList";
296
+ const _a = "arn";
297
+ const _aA = "agreementArn";
298
+ const _aAI = "awsAccountId";
299
+ const _aS = "accountSettings";
300
+ const _aT = "acceptanceTerms";
301
+ const _aTc = "acceptanceType";
302
+ const _c = "client";
303
+ const _cA = "customerAgreements";
304
+ const _cAr = "createdAt";
305
+ const _cN = "companyName";
306
+ const _ca = "category";
307
+ const _d = "description";
308
+ const _dA = "deletedAt";
309
+ const _dPU = "documentPresignedUrl";
310
+ const _e = "error";
311
+ const _eE = "effectiveEnd";
312
+ const _eS = "effectiveStart";
313
+ const _fL = "fieldList";
314
+ const _h = "http";
315
+ const _hE = "httpError";
316
+ const _hH = "httpHeader";
317
+ const _hQ = "httpQuery";
318
+ const _i = "id";
319
+ const _lMA = "lastModifiedAt";
320
+ const _m = "message";
321
+ const _mR = "maxResults";
322
+ const _n = "name";
323
+ const _nSS = "notificationSubscriptionStatus";
324
+ const _nT = "nextToken";
325
+ const _oA = "organizationArn";
326
+ const _pE = "periodEnd";
327
+ const _pN = "productName";
328
+ const _pS = "periodStart";
329
+ const _qC = "quotaCode";
330
+ const _r = "reason";
331
+ const _rAS = "retryAfterSeconds";
332
+ const _rD = "reportDetails";
333
+ const _rI = "resourceId";
334
+ const _rIe = "reportId";
335
+ const _rT = "resourceType";
336
+ const _rV = "reportVersion";
337
+ const _re = "reports";
338
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.artifact";
339
+ const _sC = "serviceCode";
340
+ const _sM = "statusMessage";
341
+ const _sN = "sequenceNumber";
342
+ const _se = "server";
343
+ const _ser = "series";
344
+ const _st = "state";
345
+ const _t = "type";
346
+ const _tA = "termArn";
347
+ const _tT = "terminateTerms";
348
+ const _tTe = "termToken";
349
+ const _uS = "uploadState";
350
+ const _v = "version";
351
+ const n0 = "com.amazonaws.artifact";
352
+ const _s_registry = TypeRegistry.for(_s);
353
+ var ArtifactServiceException$ = [-3, _s, "ArtifactServiceException", 0, [], []];
354
+ _s_registry.registerError(ArtifactServiceException$, ArtifactServiceException);
355
+ const n0_registry = TypeRegistry.for(n0);
356
+ var AccessDeniedException$ = [-3, n0, _ADE,
357
+ { [_e]: _c, [_hE]: 403 },
358
+ [_m],
359
+ [0], 1
360
+ ];
361
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
362
+ var ConflictException$ = [-3, n0, _CE,
363
+ { [_e]: _c, [_hE]: 409 },
364
+ [_m, _rI, _rT],
365
+ [0, 0, 0], 3
366
+ ];
367
+ n0_registry.registerError(ConflictException$, ConflictException);
368
+ var InternalServerException$ = [-3, n0, _ISE,
369
+ { [_e]: _se, [_hE]: 500 },
370
+ [_m, _rAS],
371
+ [0, [1, { [_hH]: _RA }]], 1
372
+ ];
373
+ n0_registry.registerError(InternalServerException$, InternalServerException);
374
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
375
+ { [_e]: _c, [_hE]: 404 },
376
+ [_m, _rI, _rT],
377
+ [0, 0, 0], 3
378
+ ];
379
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
380
+ var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
381
+ { [_e]: _c, [_hE]: 402 },
382
+ [_m, _rI, _rT, _sC, _qC],
383
+ [0, 0, 0, 0, 0], 5
384
+ ];
385
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
386
+ var ThrottlingException$ = [-3, n0, _TE,
387
+ { [_e]: _c, [_hE]: 429 },
388
+ [_m, _sC, _qC, _rAS],
389
+ [0, 0, 0, [1, { [_hH]: _RA }]], 1
390
+ ];
391
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
392
+ var ValidationException$ = [-3, n0, _VE,
393
+ { [_e]: _c, [_hE]: 400 },
394
+ [_m, _r, _fL],
395
+ [0, 0, () => ValidationExceptionFieldList], 2
396
+ ];
397
+ n0_registry.registerError(ValidationException$, ValidationException);
398
+ const errorTypeRegistries = [
399
+ _s_registry,
400
+ n0_registry,
401
+ ];
402
+ var AccountSettings$ = [3, n0, _AS,
403
+ 0,
404
+ [_nSS],
405
+ [0]
406
+ ];
407
+ var CustomerAgreementSummary$ = [3, n0, _CAS,
408
+ 0,
409
+ [_n, _a, _i, _aA, _aAI, _oA, _eS, _eE, _st, _d, _aT, _tT, _t],
410
+ [0, 0, 0, 0, 0, 0, 5, 5, 0, 0, 64 | 0, 64 | 0, 0]
411
+ ];
412
+ var GetAccountSettingsRequest$ = [3, n0, _GASR,
413
+ 0,
414
+ [],
415
+ []
416
+ ];
417
+ var GetAccountSettingsResponse$ = [3, n0, _GASRe,
418
+ 0,
419
+ [_aS],
420
+ [() => AccountSettings$]
421
+ ];
422
+ var GetReportMetadataRequest$ = [3, n0, _GRMR,
423
+ 0,
424
+ [_rIe, _rV],
425
+ [[0, { [_hQ]: _rIe }], [1, { [_hQ]: _rV }]], 1
426
+ ];
427
+ var GetReportMetadataResponse$ = [3, n0, _GRMRe,
428
+ 0,
429
+ [_rD],
430
+ [() => ReportDetail$]
431
+ ];
432
+ var GetReportRequest$ = [3, n0, _GRR,
433
+ 0,
434
+ [_rIe, _tTe, _rV],
435
+ [[0, { [_hQ]: _rIe }], [0, { [_hQ]: _tTe }], [1, { [_hQ]: _rV }]], 2
436
+ ];
437
+ var GetReportResponse$ = [3, n0, _GRRe,
438
+ 0,
439
+ [_dPU],
440
+ [0]
441
+ ];
442
+ var GetTermForReportRequest$ = [3, n0, _GTFRR,
443
+ 0,
444
+ [_rIe, _rV],
445
+ [[0, { [_hQ]: _rIe }], [1, { [_hQ]: _rV }]], 1
446
+ ];
447
+ var GetTermForReportResponse$ = [3, n0, _GTFRRe,
448
+ 0,
449
+ [_dPU, _tTe],
450
+ [0, 0]
451
+ ];
452
+ var ListCustomerAgreementsRequest$ = [3, n0, _LCAR,
453
+ 0,
454
+ [_mR, _nT],
455
+ [[1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]]
456
+ ];
457
+ var ListCustomerAgreementsResponse$ = [3, n0, _LCARi,
458
+ 0,
459
+ [_cA, _nT],
460
+ [() => CustomerAgreementList, 0], 1
461
+ ];
462
+ var ListReportsRequest$ = [3, n0, _LRR,
463
+ 0,
464
+ [_mR, _nT],
465
+ [[1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]]
466
+ ];
467
+ var ListReportsResponse$ = [3, n0, _LRRi,
468
+ 0,
469
+ [_re, _nT],
470
+ [() => ReportsList, 0]
471
+ ];
472
+ var ListReportVersionsRequest$ = [3, n0, _LRVR,
473
+ 0,
474
+ [_rIe, _mR, _nT],
475
+ [[0, { [_hQ]: _rIe }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]], 1
476
+ ];
477
+ var ListReportVersionsResponse$ = [3, n0, _LRVRi,
478
+ 0,
479
+ [_re, _nT],
480
+ [() => ReportsList, 0], 1
481
+ ];
482
+ var PutAccountSettingsRequest$ = [3, n0, _PASR,
483
+ 0,
484
+ [_nSS],
485
+ [0]
486
+ ];
487
+ var PutAccountSettingsResponse$ = [3, n0, _PASRu,
488
+ 0,
489
+ [_aS],
490
+ [() => AccountSettings$]
491
+ ];
492
+ var ReportDetail$ = [3, n0, _RD,
493
+ 0,
494
+ [_i, _n, _d, _pS, _pE, _cAr, _lMA, _dA, _st, _a, _ser, _ca, _cN, _pN, _tA, _v, _aTc, _sN, _uS, _sM],
495
+ [0, 0, 0, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0]
496
+ ];
497
+ var ReportSummary$ = [3, n0, _RS,
498
+ 0,
499
+ [_i, _n, _st, _a, _v, _uS, _d, _pS, _pE, _ser, _ca, _cN, _pN, _sM, _aTc],
500
+ [0, 0, 0, 0, 1, 0, 0, 5, 5, 0, 0, 0, 0, 0, 0]
501
+ ];
502
+ var ValidationExceptionField$ = [3, n0, _VEF,
503
+ 0,
504
+ [_n, _m],
505
+ [0, 0], 2
506
+ ];
507
+ var CustomerAgreementList = [1, n0, _CAL,
508
+ 0, () => CustomerAgreementSummary$
509
+ ];
510
+ var ReportsList = [1, n0, _RL,
511
+ 0, () => ReportSummary$
512
+ ];
513
+ var ValidationExceptionFieldList = [1, n0, _VEFL,
514
+ 0, () => ValidationExceptionField$
515
+ ];
516
+ var GetAccountSettings$ = [9, n0, _GAS,
517
+ { [_h]: ["GET", "/v1/account-settings/get", 200] }, () => GetAccountSettingsRequest$, () => GetAccountSettingsResponse$
518
+ ];
519
+ var GetReport$ = [9, n0, _GR,
520
+ { [_h]: ["GET", "/v1/report/get", 200] }, () => GetReportRequest$, () => GetReportResponse$
521
+ ];
522
+ var GetReportMetadata$ = [9, n0, _GRM,
523
+ { [_h]: ["GET", "/v1/report/getMetadata", 200] }, () => GetReportMetadataRequest$, () => GetReportMetadataResponse$
524
+ ];
525
+ var GetTermForReport$ = [9, n0, _GTFR,
526
+ { [_h]: ["GET", "/v1/report/getTermForReport", 200] }, () => GetTermForReportRequest$, () => GetTermForReportResponse$
527
+ ];
528
+ var ListCustomerAgreements$ = [9, n0, _LCA,
529
+ { [_h]: ["GET", "/v1/customer-agreement/list", 200] }, () => ListCustomerAgreementsRequest$, () => ListCustomerAgreementsResponse$
530
+ ];
531
+ var ListReports$ = [9, n0, _LR,
532
+ { [_h]: ["GET", "/v1/report/list", 200] }, () => ListReportsRequest$, () => ListReportsResponse$
533
+ ];
534
+ var ListReportVersions$ = [9, n0, _LRV,
535
+ { [_h]: ["GET", "/v1/report/listVersions", 200] }, () => ListReportVersionsRequest$, () => ListReportVersionsResponse$
536
+ ];
537
+ var PutAccountSettings$ = [9, n0, _PAS,
538
+ { [_h]: ["PUT", "/v1/account-settings/put", 200] }, () => PutAccountSettingsRequest$, () => PutAccountSettingsResponse$
539
+ ];
540
+
541
+ const getRuntimeConfig$1 = (config) => {
542
+ return {
543
+ apiVersion: "2018-05-10",
544
+ base64Decoder: config?.base64Decoder ?? fromBase64,
545
+ base64Encoder: config?.base64Encoder ?? toBase64,
546
+ disableHostPrefix: config?.disableHostPrefix ?? false,
547
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
548
+ extensions: config?.extensions ?? [],
549
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultArtifactHttpAuthSchemeProvider,
550
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
551
+ {
552
+ schemeId: "aws.auth#sigv4",
553
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
554
+ signer: new AwsSdkSigV4Signer(),
555
+ },
556
+ ],
557
+ logger: config?.logger ?? new NoOpLogger(),
558
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
559
+ protocolSettings: config?.protocolSettings ?? {
560
+ defaultNamespace: "com.amazonaws.artifact",
561
+ errorTypeRegistries,
562
+ version: "2018-05-10",
563
+ serviceTarget: "Artifact",
564
+ },
565
+ serviceId: config?.serviceId ?? "Artifact",
566
+ urlParser: config?.urlParser ?? parseUrl,
567
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
568
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
569
+ };
570
+ };
571
+
572
+ const getRuntimeConfig = (config) => {
573
+ emitWarningIfUnsupportedVersion(process.version);
574
+ const defaultsMode = resolveDefaultsModeConfig(config);
575
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
576
+ const clientSharedValues = getRuntimeConfig$1(config);
577
+ emitWarningIfUnsupportedVersion$1(process.version);
578
+ const loaderConfig = {
579
+ profile: config?.profile,
580
+ logger: clientSharedValues.logger,
581
+ };
582
+ return {
583
+ ...clientSharedValues,
584
+ ...config,
585
+ runtime: "node",
586
+ defaultsMode,
587
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
588
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
589
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
590
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
591
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
592
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
593
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
594
+ retryMode: config?.retryMode ??
595
+ loadConfig({
596
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
597
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
598
+ }, config),
599
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
600
+ streamCollector: config?.streamCollector ?? streamCollector,
601
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
602
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
603
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
604
+ };
605
+ };
606
+
34
607
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
608
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
609
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -269,22 +842,68 @@ const UploadState = {
269
842
  };
270
843
 
271
844
  exports.AcceptanceType = AcceptanceType;
845
+ exports.AccessDeniedException = AccessDeniedException;
846
+ exports.AccessDeniedException$ = AccessDeniedException$;
847
+ exports.AccountSettings$ = AccountSettings$;
272
848
  exports.AgreementType = AgreementType;
273
849
  exports.Artifact = Artifact;
274
850
  exports.ArtifactClient = ArtifactClient;
851
+ exports.ArtifactServiceException = ArtifactServiceException;
852
+ exports.ArtifactServiceException$ = ArtifactServiceException$;
853
+ exports.ConflictException = ConflictException;
854
+ exports.ConflictException$ = ConflictException$;
275
855
  exports.CustomerAgreementState = CustomerAgreementState;
856
+ exports.CustomerAgreementSummary$ = CustomerAgreementSummary$;
857
+ exports.GetAccountSettings$ = GetAccountSettings$;
276
858
  exports.GetAccountSettingsCommand = GetAccountSettingsCommand;
859
+ exports.GetAccountSettingsRequest$ = GetAccountSettingsRequest$;
860
+ exports.GetAccountSettingsResponse$ = GetAccountSettingsResponse$;
861
+ exports.GetReport$ = GetReport$;
277
862
  exports.GetReportCommand = GetReportCommand;
863
+ exports.GetReportMetadata$ = GetReportMetadata$;
278
864
  exports.GetReportMetadataCommand = GetReportMetadataCommand;
865
+ exports.GetReportMetadataRequest$ = GetReportMetadataRequest$;
866
+ exports.GetReportMetadataResponse$ = GetReportMetadataResponse$;
867
+ exports.GetReportRequest$ = GetReportRequest$;
868
+ exports.GetReportResponse$ = GetReportResponse$;
869
+ exports.GetTermForReport$ = GetTermForReport$;
279
870
  exports.GetTermForReportCommand = GetTermForReportCommand;
871
+ exports.GetTermForReportRequest$ = GetTermForReportRequest$;
872
+ exports.GetTermForReportResponse$ = GetTermForReportResponse$;
873
+ exports.InternalServerException = InternalServerException;
874
+ exports.InternalServerException$ = InternalServerException$;
875
+ exports.ListCustomerAgreements$ = ListCustomerAgreements$;
280
876
  exports.ListCustomerAgreementsCommand = ListCustomerAgreementsCommand;
877
+ exports.ListCustomerAgreementsRequest$ = ListCustomerAgreementsRequest$;
878
+ exports.ListCustomerAgreementsResponse$ = ListCustomerAgreementsResponse$;
879
+ exports.ListReportVersions$ = ListReportVersions$;
281
880
  exports.ListReportVersionsCommand = ListReportVersionsCommand;
881
+ exports.ListReportVersionsRequest$ = ListReportVersionsRequest$;
882
+ exports.ListReportVersionsResponse$ = ListReportVersionsResponse$;
883
+ exports.ListReports$ = ListReports$;
282
884
  exports.ListReportsCommand = ListReportsCommand;
885
+ exports.ListReportsRequest$ = ListReportsRequest$;
886
+ exports.ListReportsResponse$ = ListReportsResponse$;
283
887
  exports.NotificationSubscriptionStatus = NotificationSubscriptionStatus;
284
888
  exports.PublishedState = PublishedState;
889
+ exports.PutAccountSettings$ = PutAccountSettings$;
285
890
  exports.PutAccountSettingsCommand = PutAccountSettingsCommand;
891
+ exports.PutAccountSettingsRequest$ = PutAccountSettingsRequest$;
892
+ exports.PutAccountSettingsResponse$ = PutAccountSettingsResponse$;
893
+ exports.ReportDetail$ = ReportDetail$;
894
+ exports.ReportSummary$ = ReportSummary$;
895
+ exports.ResourceNotFoundException = ResourceNotFoundException;
896
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
897
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
898
+ exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
899
+ exports.ThrottlingException = ThrottlingException;
900
+ exports.ThrottlingException$ = ThrottlingException$;
286
901
  exports.UploadState = UploadState;
902
+ exports.ValidationException = ValidationException;
903
+ exports.ValidationException$ = ValidationException$;
904
+ exports.ValidationExceptionField$ = ValidationExceptionField$;
287
905
  exports.ValidationExceptionReason = ValidationExceptionReason;
906
+ exports.errorTypeRegistries = errorTypeRegistries;
288
907
  exports.paginateListCustomerAgreements = paginateListCustomerAgreements;
289
908
  exports.paginateListReportVersions = paginateListReportVersions;
290
909
  exports.paginateListReports = paginateListReports;
@@ -14,7 +14,7 @@ export declare const getRuntimeConfig: (config: ArtifactClientConfig) => {
14
14
  requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
15
15
  retryMode: string | import("@smithy/types").Provider<string>;
16
16
  sha256: import("@smithy/types").HashConstructor;
17
- streamCollector: import("@smithy/types").StreamCollector;
17
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
18
18
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
19
19
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
20
20
  cacheMiddleware?: boolean | undefined;