@aws-sdk/client-artifact 3.893.0 → 3.895.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,11 +1,1057 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ArtifactServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./ArtifactClient"), exports);
6
- tslib_1.__exportStar(require("./Artifact"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- var ArtifactServiceException_1 = require("./models/ArtifactServiceException");
11
- Object.defineProperty(exports, "ArtifactServiceException", { enumerable: true, get: function () { return ArtifactServiceException_1.ArtifactServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
+ AcceptanceType: () => AcceptanceType,
25
+ AccessDeniedException: () => AccessDeniedException,
26
+ AgreementType: () => AgreementType,
27
+ Artifact: () => Artifact,
28
+ ArtifactClient: () => ArtifactClient,
29
+ ArtifactServiceException: () => ArtifactServiceException,
30
+ ConflictException: () => ConflictException,
31
+ CustomerAgreementState: () => CustomerAgreementState,
32
+ GetAccountSettingsCommand: () => GetAccountSettingsCommand,
33
+ GetReportCommand: () => GetReportCommand,
34
+ GetReportMetadataCommand: () => GetReportMetadataCommand,
35
+ GetTermForReportCommand: () => GetTermForReportCommand,
36
+ InternalServerException: () => InternalServerException,
37
+ ListCustomerAgreementsCommand: () => ListCustomerAgreementsCommand,
38
+ ListReportsCommand: () => ListReportsCommand,
39
+ NotificationSubscriptionStatus: () => NotificationSubscriptionStatus,
40
+ PublishedState: () => PublishedState,
41
+ PutAccountSettingsCommand: () => PutAccountSettingsCommand,
42
+ ResourceNotFoundException: () => ResourceNotFoundException,
43
+ ServiceQuotaExceededException: () => ServiceQuotaExceededException,
44
+ ThrottlingException: () => ThrottlingException,
45
+ UploadState: () => UploadState,
46
+ ValidationException: () => ValidationException,
47
+ ValidationExceptionReason: () => ValidationExceptionReason,
48
+ __Client: () => import_smithy_client.Client,
49
+ paginateListCustomerAgreements: () => paginateListCustomerAgreements,
50
+ paginateListReports: () => paginateListReports
51
+ });
52
+ module.exports = __toCommonJS(index_exports);
53
+
54
+ // src/ArtifactClient.ts
55
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
56
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
57
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
58
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
59
+ var import_config_resolver = require("@smithy/config-resolver");
60
+ var import_core = require("@smithy/core");
61
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
62
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
63
+ var import_middleware_retry = require("@smithy/middleware-retry");
64
+
65
+ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
66
+
67
+ // src/endpoint/EndpointParameters.ts
68
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
69
+ return Object.assign(options, {
70
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
71
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
72
+ defaultSigningName: "artifact"
73
+ });
74
+ }, "resolveClientEndpointParameters");
75
+ var commonParams = {
76
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
77
+ Endpoint: { type: "builtInParams", name: "endpoint" },
78
+ Region: { type: "builtInParams", name: "region" },
79
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
80
+ };
81
+
82
+ // src/ArtifactClient.ts
83
+ var import_runtimeConfig = require("././runtimeConfig");
84
+
85
+ // src/runtimeExtensions.ts
86
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
87
+ var import_protocol_http = require("@smithy/protocol-http");
88
+ var import_smithy_client = require("@smithy/smithy-client");
89
+
90
+ // src/auth/httpAuthExtensionConfiguration.ts
91
+ var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
92
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
93
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
94
+ let _credentials = runtimeConfig.credentials;
95
+ return {
96
+ setHttpAuthScheme(httpAuthScheme) {
97
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
98
+ if (index === -1) {
99
+ _httpAuthSchemes.push(httpAuthScheme);
100
+ } else {
101
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
102
+ }
103
+ },
104
+ httpAuthSchemes() {
105
+ return _httpAuthSchemes;
106
+ },
107
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
108
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
109
+ },
110
+ httpAuthSchemeProvider() {
111
+ return _httpAuthSchemeProvider;
112
+ },
113
+ setCredentials(credentials) {
114
+ _credentials = credentials;
115
+ },
116
+ credentials() {
117
+ return _credentials;
118
+ }
119
+ };
120
+ }, "getHttpAuthExtensionConfiguration");
121
+ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
122
+ return {
123
+ httpAuthSchemes: config.httpAuthSchemes(),
124
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
125
+ credentials: config.credentials()
126
+ };
127
+ }, "resolveHttpAuthRuntimeConfig");
128
+
129
+ // src/runtimeExtensions.ts
130
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
131
+ const extensionConfiguration = Object.assign(
132
+ (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
133
+ (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
134
+ (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
135
+ getHttpAuthExtensionConfiguration(runtimeConfig)
136
+ );
137
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
138
+ return Object.assign(
139
+ runtimeConfig,
140
+ (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
141
+ (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
142
+ (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
143
+ resolveHttpAuthRuntimeConfig(extensionConfiguration)
144
+ );
145
+ }, "resolveRuntimeExtensions");
146
+
147
+ // src/ArtifactClient.ts
148
+ var ArtifactClient = class extends import_smithy_client.Client {
149
+ static {
150
+ __name(this, "ArtifactClient");
151
+ }
152
+ /**
153
+ * The resolved configuration of ArtifactClient class. This is resolved and normalized from the {@link ArtifactClientConfig | constructor configuration interface}.
154
+ */
155
+ config;
156
+ constructor(...[configuration]) {
157
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
158
+ super(_config_0);
159
+ this.initConfig = _config_0;
160
+ const _config_1 = resolveClientEndpointParameters(_config_0);
161
+ const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
162
+ const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
163
+ const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
164
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
165
+ const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
166
+ const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
167
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
168
+ this.config = _config_8;
169
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
170
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
171
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
172
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
173
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
174
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
175
+ this.middlewareStack.use(
176
+ (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
177
+ httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultArtifactHttpAuthSchemeParametersProvider,
178
+ identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
179
+ "aws.auth#sigv4": config.credentials
180
+ }), "identityProviderConfigProvider")
181
+ })
182
+ );
183
+ this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
184
+ }
185
+ /**
186
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
187
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
188
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
189
+ */
190
+ destroy() {
191
+ super.destroy();
192
+ }
193
+ };
194
+
195
+ // src/Artifact.ts
196
+
197
+
198
+ // src/commands/GetAccountSettingsCommand.ts
199
+
200
+ var import_middleware_serde = require("@smithy/middleware-serde");
201
+
202
+
203
+ // src/protocols/Aws_restJson1.ts
204
+ var import_core2 = require("@aws-sdk/core");
205
+
206
+
207
+
208
+ // src/models/ArtifactServiceException.ts
209
+
210
+ var ArtifactServiceException = class _ArtifactServiceException extends import_smithy_client.ServiceException {
211
+ static {
212
+ __name(this, "ArtifactServiceException");
213
+ }
214
+ /**
215
+ * @internal
216
+ */
217
+ constructor(options) {
218
+ super(options);
219
+ Object.setPrototypeOf(this, _ArtifactServiceException.prototype);
220
+ }
221
+ };
222
+
223
+ // src/models/models_0.ts
224
+ var AcceptanceType = {
225
+ /**
226
+ * Require explicit click-through acceptance of the
227
+ * Term associated with this Report.
228
+ */
229
+ EXPLICIT: "EXPLICIT",
230
+ /**
231
+ * Do not require explicit click-through acceptance
232
+ * of the Term associated with this Report
233
+ */
234
+ PASSTHROUGH: "PASSTHROUGH"
235
+ };
236
+ var AccessDeniedException = class _AccessDeniedException extends ArtifactServiceException {
237
+ static {
238
+ __name(this, "AccessDeniedException");
239
+ }
240
+ name = "AccessDeniedException";
241
+ $fault = "client";
242
+ /**
243
+ * @internal
244
+ */
245
+ constructor(opts) {
246
+ super({
247
+ name: "AccessDeniedException",
248
+ $fault: "client",
249
+ ...opts
250
+ });
251
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
252
+ }
253
+ };
254
+ var NotificationSubscriptionStatus = {
255
+ NOT_SUBSCRIBED: "NOT_SUBSCRIBED",
256
+ SUBSCRIBED: "SUBSCRIBED"
257
+ };
258
+ var ConflictException = class _ConflictException extends ArtifactServiceException {
259
+ static {
260
+ __name(this, "ConflictException");
261
+ }
262
+ name = "ConflictException";
263
+ $fault = "client";
264
+ /**
265
+ * <p>Identifier of the affected resource.</p>
266
+ * @public
267
+ */
268
+ resourceId;
269
+ /**
270
+ * <p>Type of the affected resource.</p>
271
+ * @public
272
+ */
273
+ resourceType;
274
+ /**
275
+ * @internal
276
+ */
277
+ constructor(opts) {
278
+ super({
279
+ name: "ConflictException",
280
+ $fault: "client",
281
+ ...opts
282
+ });
283
+ Object.setPrototypeOf(this, _ConflictException.prototype);
284
+ this.resourceId = opts.resourceId;
285
+ this.resourceType = opts.resourceType;
286
+ }
287
+ };
288
+ var InternalServerException = class _InternalServerException extends ArtifactServiceException {
289
+ static {
290
+ __name(this, "InternalServerException");
291
+ }
292
+ name = "InternalServerException";
293
+ $fault = "server";
294
+ $retryable = {};
295
+ /**
296
+ * <p>Number of seconds in which the caller can retry the request.</p>
297
+ * @public
298
+ */
299
+ retryAfterSeconds;
300
+ /**
301
+ * @internal
302
+ */
303
+ constructor(opts) {
304
+ super({
305
+ name: "InternalServerException",
306
+ $fault: "server",
307
+ ...opts
308
+ });
309
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
310
+ this.retryAfterSeconds = opts.retryAfterSeconds;
311
+ }
312
+ };
313
+ var ResourceNotFoundException = class _ResourceNotFoundException extends ArtifactServiceException {
314
+ static {
315
+ __name(this, "ResourceNotFoundException");
316
+ }
317
+ name = "ResourceNotFoundException";
318
+ $fault = "client";
319
+ /**
320
+ * <p>Identifier of the affected resource.</p>
321
+ * @public
322
+ */
323
+ resourceId;
324
+ /**
325
+ * <p>Type of the affected resource.</p>
326
+ * @public
327
+ */
328
+ resourceType;
329
+ /**
330
+ * @internal
331
+ */
332
+ constructor(opts) {
333
+ super({
334
+ name: "ResourceNotFoundException",
335
+ $fault: "client",
336
+ ...opts
337
+ });
338
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
339
+ this.resourceId = opts.resourceId;
340
+ this.resourceType = opts.resourceType;
341
+ }
342
+ };
343
+ var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends ArtifactServiceException {
344
+ static {
345
+ __name(this, "ServiceQuotaExceededException");
346
+ }
347
+ name = "ServiceQuotaExceededException";
348
+ $fault = "client";
349
+ /**
350
+ * <p>Identifier of the affected resource.</p>
351
+ * @public
352
+ */
353
+ resourceId;
354
+ /**
355
+ * <p>Type of the affected resource.</p>
356
+ * @public
357
+ */
358
+ resourceType;
359
+ /**
360
+ * <p>Code for the affected service.</p>
361
+ * @public
362
+ */
363
+ serviceCode;
364
+ /**
365
+ * <p>Code for the affected quota.</p>
366
+ * @public
367
+ */
368
+ quotaCode;
369
+ /**
370
+ * @internal
371
+ */
372
+ constructor(opts) {
373
+ super({
374
+ name: "ServiceQuotaExceededException",
375
+ $fault: "client",
376
+ ...opts
377
+ });
378
+ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
379
+ this.resourceId = opts.resourceId;
380
+ this.resourceType = opts.resourceType;
381
+ this.serviceCode = opts.serviceCode;
382
+ this.quotaCode = opts.quotaCode;
383
+ }
384
+ };
385
+ var ThrottlingException = class _ThrottlingException extends ArtifactServiceException {
386
+ static {
387
+ __name(this, "ThrottlingException");
388
+ }
389
+ name = "ThrottlingException";
390
+ $fault = "client";
391
+ $retryable = {
392
+ throttling: true
393
+ };
394
+ /**
395
+ * <p>Code for the affected service.</p>
396
+ * @public
397
+ */
398
+ serviceCode;
399
+ /**
400
+ * <p>Code for the affected quota.</p>
401
+ * @public
402
+ */
403
+ quotaCode;
404
+ /**
405
+ * <p>Number of seconds in which the caller can retry the request.</p>
406
+ * @public
407
+ */
408
+ retryAfterSeconds;
409
+ /**
410
+ * @internal
411
+ */
412
+ constructor(opts) {
413
+ super({
414
+ name: "ThrottlingException",
415
+ $fault: "client",
416
+ ...opts
417
+ });
418
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
419
+ this.serviceCode = opts.serviceCode;
420
+ this.quotaCode = opts.quotaCode;
421
+ this.retryAfterSeconds = opts.retryAfterSeconds;
422
+ }
423
+ };
424
+ var ValidationExceptionReason = {
425
+ CANNOT_PARSE: "cannotParse",
426
+ FIELD_VALIDATION_FAILED: "fieldValidationFailed",
427
+ INVALID_TOKEN: "invalidToken",
428
+ OTHER: "other",
429
+ UNKNOWN_OPERATION: "unknownOperation"
430
+ };
431
+ var ValidationException = class _ValidationException extends ArtifactServiceException {
432
+ static {
433
+ __name(this, "ValidationException");
434
+ }
435
+ name = "ValidationException";
436
+ $fault = "client";
437
+ /**
438
+ * <p>Reason the request failed validation.</p>
439
+ * @public
440
+ */
441
+ reason;
442
+ /**
443
+ * <p>The field that caused the error, if applicable.</p>
444
+ * @public
445
+ */
446
+ fieldList;
447
+ /**
448
+ * @internal
449
+ */
450
+ constructor(opts) {
451
+ super({
452
+ name: "ValidationException",
453
+ $fault: "client",
454
+ ...opts
455
+ });
456
+ Object.setPrototypeOf(this, _ValidationException.prototype);
457
+ this.reason = opts.reason;
458
+ this.fieldList = opts.fieldList;
459
+ }
460
+ };
461
+ var AgreementType = {
462
+ CUSTOM: "CUSTOM",
463
+ DEFAULT: "DEFAULT",
464
+ MODIFIED: "MODIFIED"
465
+ };
466
+ var CustomerAgreementState = {
467
+ ACTIVE: "ACTIVE",
468
+ AWS_TERMINATED: "AWS_TERMINATED",
469
+ CUSTOMER_TERMINATED: "CUSTOMER_TERMINATED"
470
+ };
471
+ var PublishedState = {
472
+ PUBLISHED: "PUBLISHED",
473
+ UNPUBLISHED: "UNPUBLISHED"
474
+ };
475
+ var UploadState = {
476
+ COMPLETE: "COMPLETE",
477
+ FAILED: "FAILED",
478
+ FAULT: "FAULT",
479
+ PROCESSING: "PROCESSING"
480
+ };
481
+
482
+ // src/protocols/Aws_restJson1.ts
483
+ var se_GetAccountSettingsCommand = /* @__PURE__ */ __name(async (input, context) => {
484
+ const b = (0, import_core.requestBuilder)(input, context);
485
+ const headers = {};
486
+ b.bp("/v1/account-settings/get");
487
+ let body;
488
+ b.m("GET").h(headers).b(body);
489
+ return b.build();
490
+ }, "se_GetAccountSettingsCommand");
491
+ var se_GetReportCommand = /* @__PURE__ */ __name(async (input, context) => {
492
+ const b = (0, import_core.requestBuilder)(input, context);
493
+ const headers = {};
494
+ b.bp("/v1/report/get");
495
+ const query = (0, import_smithy_client.map)({
496
+ [_rI]: [, (0, import_smithy_client.expectNonNull)(input[_rI], `reportId`)],
497
+ [_rV]: [() => input.reportVersion !== void 0, () => input[_rV].toString()],
498
+ [_tT]: [, (0, import_smithy_client.expectNonNull)(input[_tT], `termToken`)]
499
+ });
500
+ let body;
501
+ b.m("GET").h(headers).q(query).b(body);
502
+ return b.build();
503
+ }, "se_GetReportCommand");
504
+ var se_GetReportMetadataCommand = /* @__PURE__ */ __name(async (input, context) => {
505
+ const b = (0, import_core.requestBuilder)(input, context);
506
+ const headers = {};
507
+ b.bp("/v1/report/getMetadata");
508
+ const query = (0, import_smithy_client.map)({
509
+ [_rI]: [, (0, import_smithy_client.expectNonNull)(input[_rI], `reportId`)],
510
+ [_rV]: [() => input.reportVersion !== void 0, () => input[_rV].toString()]
511
+ });
512
+ let body;
513
+ b.m("GET").h(headers).q(query).b(body);
514
+ return b.build();
515
+ }, "se_GetReportMetadataCommand");
516
+ var se_GetTermForReportCommand = /* @__PURE__ */ __name(async (input, context) => {
517
+ const b = (0, import_core.requestBuilder)(input, context);
518
+ const headers = {};
519
+ b.bp("/v1/report/getTermForReport");
520
+ const query = (0, import_smithy_client.map)({
521
+ [_rI]: [, (0, import_smithy_client.expectNonNull)(input[_rI], `reportId`)],
522
+ [_rV]: [() => input.reportVersion !== void 0, () => input[_rV].toString()]
523
+ });
524
+ let body;
525
+ b.m("GET").h(headers).q(query).b(body);
526
+ return b.build();
527
+ }, "se_GetTermForReportCommand");
528
+ var se_ListCustomerAgreementsCommand = /* @__PURE__ */ __name(async (input, context) => {
529
+ const b = (0, import_core.requestBuilder)(input, context);
530
+ const headers = {};
531
+ b.bp("/v1/customer-agreement/list");
532
+ const query = (0, import_smithy_client.map)({
533
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
534
+ [_nT]: [, input[_nT]]
535
+ });
536
+ let body;
537
+ b.m("GET").h(headers).q(query).b(body);
538
+ return b.build();
539
+ }, "se_ListCustomerAgreementsCommand");
540
+ var se_ListReportsCommand = /* @__PURE__ */ __name(async (input, context) => {
541
+ const b = (0, import_core.requestBuilder)(input, context);
542
+ const headers = {};
543
+ b.bp("/v1/report/list");
544
+ const query = (0, import_smithy_client.map)({
545
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
546
+ [_nT]: [, input[_nT]]
547
+ });
548
+ let body;
549
+ b.m("GET").h(headers).q(query).b(body);
550
+ return b.build();
551
+ }, "se_ListReportsCommand");
552
+ var se_PutAccountSettingsCommand = /* @__PURE__ */ __name(async (input, context) => {
553
+ const b = (0, import_core.requestBuilder)(input, context);
554
+ const headers = {
555
+ "content-type": "application/json"
556
+ };
557
+ b.bp("/v1/account-settings/put");
558
+ let body;
559
+ body = JSON.stringify(
560
+ (0, import_smithy_client.take)(input, {
561
+ notificationSubscriptionStatus: []
562
+ })
563
+ );
564
+ b.m("PUT").h(headers).b(body);
565
+ return b.build();
566
+ }, "se_PutAccountSettingsCommand");
567
+ var de_GetAccountSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
568
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
569
+ return de_CommandError(output, context);
570
+ }
571
+ const contents = (0, import_smithy_client.map)({
572
+ $metadata: deserializeMetadata(output)
573
+ });
574
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
575
+ const doc = (0, import_smithy_client.take)(data, {
576
+ accountSettings: import_smithy_client._json
577
+ });
578
+ Object.assign(contents, doc);
579
+ return contents;
580
+ }, "de_GetAccountSettingsCommand");
581
+ var de_GetReportCommand = /* @__PURE__ */ __name(async (output, context) => {
582
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
583
+ return de_CommandError(output, context);
584
+ }
585
+ const contents = (0, import_smithy_client.map)({
586
+ $metadata: deserializeMetadata(output)
587
+ });
588
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
589
+ const doc = (0, import_smithy_client.take)(data, {
590
+ documentPresignedUrl: import_smithy_client.expectString
591
+ });
592
+ Object.assign(contents, doc);
593
+ return contents;
594
+ }, "de_GetReportCommand");
595
+ var de_GetReportMetadataCommand = /* @__PURE__ */ __name(async (output, context) => {
596
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
597
+ return de_CommandError(output, context);
598
+ }
599
+ const contents = (0, import_smithy_client.map)({
600
+ $metadata: deserializeMetadata(output)
601
+ });
602
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
603
+ const doc = (0, import_smithy_client.take)(data, {
604
+ reportDetails: /* @__PURE__ */ __name((_) => de_ReportDetail(_, context), "reportDetails")
605
+ });
606
+ Object.assign(contents, doc);
607
+ return contents;
608
+ }, "de_GetReportMetadataCommand");
609
+ var de_GetTermForReportCommand = /* @__PURE__ */ __name(async (output, context) => {
610
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
611
+ return de_CommandError(output, context);
612
+ }
613
+ const contents = (0, import_smithy_client.map)({
614
+ $metadata: deserializeMetadata(output)
615
+ });
616
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
617
+ const doc = (0, import_smithy_client.take)(data, {
618
+ documentPresignedUrl: import_smithy_client.expectString,
619
+ termToken: import_smithy_client.expectString
620
+ });
621
+ Object.assign(contents, doc);
622
+ return contents;
623
+ }, "de_GetTermForReportCommand");
624
+ var de_ListCustomerAgreementsCommand = /* @__PURE__ */ __name(async (output, context) => {
625
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
626
+ return de_CommandError(output, context);
627
+ }
628
+ const contents = (0, import_smithy_client.map)({
629
+ $metadata: deserializeMetadata(output)
630
+ });
631
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
632
+ const doc = (0, import_smithy_client.take)(data, {
633
+ customerAgreements: /* @__PURE__ */ __name((_) => de_CustomerAgreementList(_, context), "customerAgreements"),
634
+ nextToken: import_smithy_client.expectString
635
+ });
636
+ Object.assign(contents, doc);
637
+ return contents;
638
+ }, "de_ListCustomerAgreementsCommand");
639
+ var de_ListReportsCommand = /* @__PURE__ */ __name(async (output, context) => {
640
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
641
+ return de_CommandError(output, context);
642
+ }
643
+ const contents = (0, import_smithy_client.map)({
644
+ $metadata: deserializeMetadata(output)
645
+ });
646
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
647
+ const doc = (0, import_smithy_client.take)(data, {
648
+ nextToken: import_smithy_client.expectString,
649
+ reports: /* @__PURE__ */ __name((_) => de_ReportsList(_, context), "reports")
650
+ });
651
+ Object.assign(contents, doc);
652
+ return contents;
653
+ }, "de_ListReportsCommand");
654
+ var de_PutAccountSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
655
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
656
+ return de_CommandError(output, context);
657
+ }
658
+ const contents = (0, import_smithy_client.map)({
659
+ $metadata: deserializeMetadata(output)
660
+ });
661
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
662
+ const doc = (0, import_smithy_client.take)(data, {
663
+ accountSettings: import_smithy_client._json
664
+ });
665
+ Object.assign(contents, doc);
666
+ return contents;
667
+ }, "de_PutAccountSettingsCommand");
668
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
669
+ const parsedOutput = {
670
+ ...output,
671
+ body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
672
+ };
673
+ const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
674
+ switch (errorCode) {
675
+ case "AccessDeniedException":
676
+ case "com.amazonaws.artifact#AccessDeniedException":
677
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
678
+ case "ConflictException":
679
+ case "com.amazonaws.artifact#ConflictException":
680
+ throw await de_ConflictExceptionRes(parsedOutput, context);
681
+ case "InternalServerException":
682
+ case "com.amazonaws.artifact#InternalServerException":
683
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
684
+ case "ResourceNotFoundException":
685
+ case "com.amazonaws.artifact#ResourceNotFoundException":
686
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
687
+ case "ServiceQuotaExceededException":
688
+ case "com.amazonaws.artifact#ServiceQuotaExceededException":
689
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
690
+ case "ThrottlingException":
691
+ case "com.amazonaws.artifact#ThrottlingException":
692
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
693
+ case "ValidationException":
694
+ case "com.amazonaws.artifact#ValidationException":
695
+ throw await de_ValidationExceptionRes(parsedOutput, context);
696
+ default:
697
+ const parsedBody = parsedOutput.body;
698
+ return throwDefaultError({
699
+ output,
700
+ parsedBody,
701
+ errorCode
702
+ });
703
+ }
704
+ }, "de_CommandError");
705
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(ArtifactServiceException);
706
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
707
+ const contents = (0, import_smithy_client.map)({});
708
+ const data = parsedOutput.body;
709
+ const doc = (0, import_smithy_client.take)(data, {
710
+ message: import_smithy_client.expectString
711
+ });
712
+ Object.assign(contents, doc);
713
+ const exception = new AccessDeniedException({
714
+ $metadata: deserializeMetadata(parsedOutput),
715
+ ...contents
716
+ });
717
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
718
+ }, "de_AccessDeniedExceptionRes");
719
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
720
+ const contents = (0, import_smithy_client.map)({});
721
+ const data = parsedOutput.body;
722
+ const doc = (0, import_smithy_client.take)(data, {
723
+ message: import_smithy_client.expectString,
724
+ resourceId: import_smithy_client.expectString,
725
+ resourceType: import_smithy_client.expectString
726
+ });
727
+ Object.assign(contents, doc);
728
+ const exception = new ConflictException({
729
+ $metadata: deserializeMetadata(parsedOutput),
730
+ ...contents
731
+ });
732
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
733
+ }, "de_ConflictExceptionRes");
734
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
735
+ const contents = (0, import_smithy_client.map)({
736
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
737
+ });
738
+ const data = parsedOutput.body;
739
+ const doc = (0, import_smithy_client.take)(data, {
740
+ message: import_smithy_client.expectString
741
+ });
742
+ Object.assign(contents, doc);
743
+ const exception = new InternalServerException({
744
+ $metadata: deserializeMetadata(parsedOutput),
745
+ ...contents
746
+ });
747
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
748
+ }, "de_InternalServerExceptionRes");
749
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
750
+ const contents = (0, import_smithy_client.map)({});
751
+ const data = parsedOutput.body;
752
+ const doc = (0, import_smithy_client.take)(data, {
753
+ message: import_smithy_client.expectString,
754
+ resourceId: import_smithy_client.expectString,
755
+ resourceType: import_smithy_client.expectString
756
+ });
757
+ Object.assign(contents, doc);
758
+ const exception = new ResourceNotFoundException({
759
+ $metadata: deserializeMetadata(parsedOutput),
760
+ ...contents
761
+ });
762
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
763
+ }, "de_ResourceNotFoundExceptionRes");
764
+ var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
765
+ const contents = (0, import_smithy_client.map)({});
766
+ const data = parsedOutput.body;
767
+ const doc = (0, import_smithy_client.take)(data, {
768
+ message: import_smithy_client.expectString,
769
+ quotaCode: import_smithy_client.expectString,
770
+ resourceId: import_smithy_client.expectString,
771
+ resourceType: import_smithy_client.expectString,
772
+ serviceCode: import_smithy_client.expectString
773
+ });
774
+ Object.assign(contents, doc);
775
+ const exception = new ServiceQuotaExceededException({
776
+ $metadata: deserializeMetadata(parsedOutput),
777
+ ...contents
778
+ });
779
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
780
+ }, "de_ServiceQuotaExceededExceptionRes");
781
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
782
+ const contents = (0, import_smithy_client.map)({
783
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
784
+ });
785
+ const data = parsedOutput.body;
786
+ const doc = (0, import_smithy_client.take)(data, {
787
+ message: import_smithy_client.expectString,
788
+ quotaCode: import_smithy_client.expectString,
789
+ serviceCode: import_smithy_client.expectString
790
+ });
791
+ Object.assign(contents, doc);
792
+ const exception = new ThrottlingException({
793
+ $metadata: deserializeMetadata(parsedOutput),
794
+ ...contents
795
+ });
796
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
797
+ }, "de_ThrottlingExceptionRes");
798
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
799
+ const contents = (0, import_smithy_client.map)({});
800
+ const data = parsedOutput.body;
801
+ const doc = (0, import_smithy_client.take)(data, {
802
+ fieldList: import_smithy_client._json,
803
+ message: import_smithy_client.expectString,
804
+ reason: import_smithy_client.expectString
805
+ });
806
+ Object.assign(contents, doc);
807
+ const exception = new ValidationException({
808
+ $metadata: deserializeMetadata(parsedOutput),
809
+ ...contents
810
+ });
811
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
812
+ }, "de_ValidationExceptionRes");
813
+ var de_CustomerAgreementList = /* @__PURE__ */ __name((output, context) => {
814
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
815
+ return de_CustomerAgreementSummary(entry, context);
816
+ });
817
+ return retVal;
818
+ }, "de_CustomerAgreementList");
819
+ var de_CustomerAgreementSummary = /* @__PURE__ */ __name((output, context) => {
820
+ return (0, import_smithy_client.take)(output, {
821
+ acceptanceTerms: import_smithy_client._json,
822
+ agreementArn: import_smithy_client.expectString,
823
+ arn: import_smithy_client.expectString,
824
+ awsAccountId: import_smithy_client.expectString,
825
+ description: import_smithy_client.expectString,
826
+ effectiveEnd: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "effectiveEnd"),
827
+ effectiveStart: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "effectiveStart"),
828
+ id: import_smithy_client.expectString,
829
+ name: import_smithy_client.expectString,
830
+ organizationArn: import_smithy_client.expectString,
831
+ state: import_smithy_client.expectString,
832
+ terminateTerms: import_smithy_client._json,
833
+ type: import_smithy_client.expectString
834
+ });
835
+ }, "de_CustomerAgreementSummary");
836
+ var de_ReportDetail = /* @__PURE__ */ __name((output, context) => {
837
+ return (0, import_smithy_client.take)(output, {
838
+ acceptanceType: import_smithy_client.expectString,
839
+ arn: import_smithy_client.expectString,
840
+ category: import_smithy_client.expectString,
841
+ companyName: import_smithy_client.expectString,
842
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
843
+ deletedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "deletedAt"),
844
+ description: import_smithy_client.expectString,
845
+ id: import_smithy_client.expectString,
846
+ lastModifiedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "lastModifiedAt"),
847
+ name: import_smithy_client.expectString,
848
+ periodEnd: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "periodEnd"),
849
+ periodStart: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "periodStart"),
850
+ productName: import_smithy_client.expectString,
851
+ sequenceNumber: import_smithy_client.expectLong,
852
+ series: import_smithy_client.expectString,
853
+ state: import_smithy_client.expectString,
854
+ statusMessage: import_smithy_client.expectString,
855
+ termArn: import_smithy_client.expectString,
856
+ uploadState: import_smithy_client.expectString,
857
+ version: import_smithy_client.expectLong
858
+ });
859
+ }, "de_ReportDetail");
860
+ var de_ReportsList = /* @__PURE__ */ __name((output, context) => {
861
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
862
+ return de_ReportSummary(entry, context);
863
+ });
864
+ return retVal;
865
+ }, "de_ReportsList");
866
+ var de_ReportSummary = /* @__PURE__ */ __name((output, context) => {
867
+ return (0, import_smithy_client.take)(output, {
868
+ acceptanceType: import_smithy_client.expectString,
869
+ arn: import_smithy_client.expectString,
870
+ category: import_smithy_client.expectString,
871
+ companyName: import_smithy_client.expectString,
872
+ description: import_smithy_client.expectString,
873
+ id: import_smithy_client.expectString,
874
+ name: import_smithy_client.expectString,
875
+ periodEnd: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "periodEnd"),
876
+ periodStart: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "periodStart"),
877
+ productName: import_smithy_client.expectString,
878
+ series: import_smithy_client.expectString,
879
+ state: import_smithy_client.expectString,
880
+ statusMessage: import_smithy_client.expectString,
881
+ uploadState: import_smithy_client.expectString,
882
+ version: import_smithy_client.expectLong
883
+ });
884
+ }, "de_ReportSummary");
885
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
886
+ httpStatusCode: output.statusCode,
887
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
888
+ extendedRequestId: output.headers["x-amz-id-2"],
889
+ cfId: output.headers["x-amz-cf-id"]
890
+ }), "deserializeMetadata");
891
+ var _mR = "maxResults";
892
+ var _nT = "nextToken";
893
+ var _rAS = "retryAfterSeconds";
894
+ var _rI = "reportId";
895
+ var _rV = "reportVersion";
896
+ var _ra = "retry-after";
897
+ var _tT = "termToken";
898
+
899
+ // src/commands/GetAccountSettingsCommand.ts
900
+ var GetAccountSettingsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
901
+ return [
902
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
903
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
904
+ ];
905
+ }).s("Artifact", "GetAccountSettings", {}).n("ArtifactClient", "GetAccountSettingsCommand").f(void 0, void 0).ser(se_GetAccountSettingsCommand).de(de_GetAccountSettingsCommand).build() {
906
+ static {
907
+ __name(this, "GetAccountSettingsCommand");
908
+ }
909
+ };
910
+
911
+ // src/commands/GetReportCommand.ts
912
+
913
+
914
+
915
+ var GetReportCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
916
+ return [
917
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
918
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
919
+ ];
920
+ }).s("Artifact", "GetReport", {}).n("ArtifactClient", "GetReportCommand").f(void 0, void 0).ser(se_GetReportCommand).de(de_GetReportCommand).build() {
921
+ static {
922
+ __name(this, "GetReportCommand");
923
+ }
924
+ };
925
+
926
+ // src/commands/GetReportMetadataCommand.ts
927
+
928
+
929
+
930
+ var GetReportMetadataCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
931
+ return [
932
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
933
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
934
+ ];
935
+ }).s("Artifact", "GetReportMetadata", {}).n("ArtifactClient", "GetReportMetadataCommand").f(void 0, void 0).ser(se_GetReportMetadataCommand).de(de_GetReportMetadataCommand).build() {
936
+ static {
937
+ __name(this, "GetReportMetadataCommand");
938
+ }
939
+ };
940
+
941
+ // src/commands/GetTermForReportCommand.ts
942
+
943
+
944
+
945
+ var GetTermForReportCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
946
+ return [
947
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
948
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
949
+ ];
950
+ }).s("Artifact", "GetTermForReport", {}).n("ArtifactClient", "GetTermForReportCommand").f(void 0, void 0).ser(se_GetTermForReportCommand).de(de_GetTermForReportCommand).build() {
951
+ static {
952
+ __name(this, "GetTermForReportCommand");
953
+ }
954
+ };
955
+
956
+ // src/commands/ListCustomerAgreementsCommand.ts
957
+
958
+
959
+
960
+ var ListCustomerAgreementsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
961
+ return [
962
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
963
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
964
+ ];
965
+ }).s("Artifact", "ListCustomerAgreements", {}).n("ArtifactClient", "ListCustomerAgreementsCommand").f(void 0, void 0).ser(se_ListCustomerAgreementsCommand).de(de_ListCustomerAgreementsCommand).build() {
966
+ static {
967
+ __name(this, "ListCustomerAgreementsCommand");
968
+ }
969
+ };
970
+
971
+ // src/commands/ListReportsCommand.ts
972
+
973
+
974
+
975
+ var ListReportsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
976
+ return [
977
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
978
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
979
+ ];
980
+ }).s("Artifact", "ListReports", {}).n("ArtifactClient", "ListReportsCommand").f(void 0, void 0).ser(se_ListReportsCommand).de(de_ListReportsCommand).build() {
981
+ static {
982
+ __name(this, "ListReportsCommand");
983
+ }
984
+ };
985
+
986
+ // src/commands/PutAccountSettingsCommand.ts
987
+
988
+
989
+
990
+ var PutAccountSettingsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
991
+ return [
992
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
993
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
994
+ ];
995
+ }).s("Artifact", "PutAccountSettings", {}).n("ArtifactClient", "PutAccountSettingsCommand").f(void 0, void 0).ser(se_PutAccountSettingsCommand).de(de_PutAccountSettingsCommand).build() {
996
+ static {
997
+ __name(this, "PutAccountSettingsCommand");
998
+ }
999
+ };
1000
+
1001
+ // src/Artifact.ts
1002
+ var commands = {
1003
+ GetAccountSettingsCommand,
1004
+ GetReportCommand,
1005
+ GetReportMetadataCommand,
1006
+ GetTermForReportCommand,
1007
+ ListCustomerAgreementsCommand,
1008
+ ListReportsCommand,
1009
+ PutAccountSettingsCommand
1010
+ };
1011
+ var Artifact = class extends ArtifactClient {
1012
+ static {
1013
+ __name(this, "Artifact");
1014
+ }
1015
+ };
1016
+ (0, import_smithy_client.createAggregatedClient)(commands, Artifact);
1017
+
1018
+ // src/pagination/ListCustomerAgreementsPaginator.ts
1019
+
1020
+ var paginateListCustomerAgreements = (0, import_core.createPaginator)(ArtifactClient, ListCustomerAgreementsCommand, "nextToken", "nextToken", "maxResults");
1021
+
1022
+ // src/pagination/ListReportsPaginator.ts
1023
+
1024
+ var paginateListReports = (0, import_core.createPaginator)(ArtifactClient, ListReportsCommand, "nextToken", "nextToken", "maxResults");
1025
+ // Annotate the CommonJS export names for ESM import in node:
1026
+
1027
+ 0 && (module.exports = {
1028
+ ArtifactServiceException,
1029
+ __Client,
1030
+ ArtifactClient,
1031
+ Artifact,
1032
+ $Command,
1033
+ GetAccountSettingsCommand,
1034
+ GetReportCommand,
1035
+ GetReportMetadataCommand,
1036
+ GetTermForReportCommand,
1037
+ ListCustomerAgreementsCommand,
1038
+ ListReportsCommand,
1039
+ PutAccountSettingsCommand,
1040
+ paginateListCustomerAgreements,
1041
+ paginateListReports,
1042
+ AcceptanceType,
1043
+ AccessDeniedException,
1044
+ NotificationSubscriptionStatus,
1045
+ ConflictException,
1046
+ InternalServerException,
1047
+ ResourceNotFoundException,
1048
+ ServiceQuotaExceededException,
1049
+ ThrottlingException,
1050
+ ValidationExceptionReason,
1051
+ ValidationException,
1052
+ AgreementType,
1053
+ CustomerAgreementState,
1054
+ PublishedState,
1055
+ UploadState
1056
+ });
1057
+