@aws-sdk/client-artifact 3.928.0 → 3.929.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 +459 -488
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/ArtifactClient.js +2 -0
- package/dist-es/commands/GetAccountSettingsCommand.js +3 -9
- package/dist-es/commands/GetReportCommand.js +3 -9
- package/dist-es/commands/GetReportMetadataCommand.js +3 -9
- package/dist-es/commands/GetTermForReportCommand.js +3 -9
- package/dist-es/commands/ListCustomerAgreementsCommand.js +3 -9
- package/dist-es/commands/ListReportsCommand.js +3 -9
- package/dist-es/commands/PutAccountSettingsCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +428 -0
- package/dist-types/ArtifactClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +40 -0
- package/dist-types/ts3.4/ArtifactClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +45 -0
- package/package.json +2 -2
- package/dist-es/protocols/Aws_restJson1.js +0 -423
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -65
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -89
|
@@ -29,6 +29,7 @@ export declare const getRuntimeConfig: (config: ArtifactClientConfig) => {
|
|
|
29
29
|
profile?: string;
|
|
30
30
|
logger: import("@smithy/types").Logger;
|
|
31
31
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
32
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
32
33
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
33
34
|
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
34
35
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
@@ -31,6 +31,7 @@ export declare const getRuntimeConfig: (config: ArtifactClientConfig) => {
|
|
|
31
31
|
profile?: string;
|
|
32
32
|
logger: import("@smithy/types").Logger;
|
|
33
33
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
34
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
34
35
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
35
36
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
36
37
|
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: ArtifactClientConfig) => {
|
|
|
27
27
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
28
28
|
logger: import("@smithy/types").Logger;
|
|
29
29
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
30
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
30
31
|
defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
|
|
31
32
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
32
33
|
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -14,6 +14,7 @@ export declare const getRuntimeConfig: (config: ArtifactClientConfig) => {
|
|
|
14
14
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").ArtifactHttpAuthSchemeProvider;
|
|
15
15
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
16
16
|
logger: import("@smithy/types").Logger;
|
|
17
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
17
18
|
serviceId: string;
|
|
18
19
|
urlParser: import("@smithy/types").UrlParser;
|
|
19
20
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { StaticErrorSchema, StaticListSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
|
|
2
|
+
export declare var AccessDeniedException: StaticErrorSchema;
|
|
3
|
+
export declare var AccountSettings: StaticStructureSchema;
|
|
4
|
+
export declare var ConflictException: StaticErrorSchema;
|
|
5
|
+
export declare var CustomerAgreementSummary: StaticStructureSchema;
|
|
6
|
+
export declare var GetAccountSettingsRequest: StaticStructureSchema;
|
|
7
|
+
export declare var GetAccountSettingsResponse: StaticStructureSchema;
|
|
8
|
+
export declare var GetReportMetadataRequest: StaticStructureSchema;
|
|
9
|
+
export declare var GetReportMetadataResponse: StaticStructureSchema;
|
|
10
|
+
export declare var GetReportRequest: StaticStructureSchema;
|
|
11
|
+
export declare var GetReportResponse: StaticStructureSchema;
|
|
12
|
+
export declare var GetTermForReportRequest: StaticStructureSchema;
|
|
13
|
+
export declare var GetTermForReportResponse: StaticStructureSchema;
|
|
14
|
+
export declare var InternalServerException: StaticErrorSchema;
|
|
15
|
+
export declare var ListCustomerAgreementsRequest: StaticStructureSchema;
|
|
16
|
+
export declare var ListCustomerAgreementsResponse: StaticStructureSchema;
|
|
17
|
+
export declare var ListReportsRequest: StaticStructureSchema;
|
|
18
|
+
export declare var ListReportsResponse: StaticStructureSchema;
|
|
19
|
+
export declare var PutAccountSettingsRequest: StaticStructureSchema;
|
|
20
|
+
export declare var PutAccountSettingsResponse: StaticStructureSchema;
|
|
21
|
+
export declare var ReportDetail: StaticStructureSchema;
|
|
22
|
+
export declare var ReportSummary: StaticStructureSchema;
|
|
23
|
+
export declare var ResourceNotFoundException: StaticErrorSchema;
|
|
24
|
+
export declare var ServiceQuotaExceededException: StaticErrorSchema;
|
|
25
|
+
export declare var ThrottlingException: StaticErrorSchema;
|
|
26
|
+
export declare var ValidationException: StaticErrorSchema;
|
|
27
|
+
export declare var ValidationExceptionField: StaticStructureSchema;
|
|
28
|
+
export declare var __Unit: "unit";
|
|
29
|
+
export declare var ArtifactServiceException: StaticErrorSchema;
|
|
30
|
+
export declare var AgreementTerms: number;
|
|
31
|
+
export declare var CustomerAgreementList: StaticListSchema;
|
|
32
|
+
export declare var ReportsList: StaticListSchema;
|
|
33
|
+
export declare var ValidationExceptionFieldList: StaticListSchema;
|
|
34
|
+
export declare var GetAccountSettings: StaticOperationSchema;
|
|
35
|
+
export declare var GetReport: StaticOperationSchema;
|
|
36
|
+
export declare var GetReportMetadata: StaticOperationSchema;
|
|
37
|
+
export declare var GetTermForReport: StaticOperationSchema;
|
|
38
|
+
export declare var ListCustomerAgreements: StaticOperationSchema;
|
|
39
|
+
export declare var ListReports: StaticOperationSchema;
|
|
40
|
+
export declare var PutAccountSettings: StaticOperationSchema;
|
|
@@ -30,10 +30,13 @@ import {
|
|
|
30
30
|
BodyLengthCalculator as __BodyLengthCalculator,
|
|
31
31
|
CheckOptionalClientConfig as __CheckOptionalClientConfig,
|
|
32
32
|
ChecksumConstructor as __ChecksumConstructor,
|
|
33
|
+
ClientProtocol,
|
|
33
34
|
Decoder as __Decoder,
|
|
34
35
|
Encoder as __Encoder,
|
|
35
36
|
HashConstructor as __HashConstructor,
|
|
36
37
|
HttpHandlerOptions as __HttpHandlerOptions,
|
|
38
|
+
HttpRequest,
|
|
39
|
+
HttpResponse,
|
|
37
40
|
Logger as __Logger,
|
|
38
41
|
Provider as __Provider,
|
|
39
42
|
Provider,
|
|
@@ -120,6 +123,7 @@ export interface ClientDefaults
|
|
|
120
123
|
retryMode?: string | __Provider<string>;
|
|
121
124
|
logger?: __Logger;
|
|
122
125
|
extensions?: RuntimeExtension[];
|
|
126
|
+
protocol?: ClientProtocol<HttpRequest, HttpResponse>;
|
|
123
127
|
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
124
128
|
}
|
|
125
129
|
export type ArtifactClientConfigType = Partial<
|
|
@@ -38,6 +38,10 @@ export declare const getRuntimeConfig: (config: ArtifactClientConfig) => {
|
|
|
38
38
|
profile?: string;
|
|
39
39
|
logger: import("@smithy/types").Logger;
|
|
40
40
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
41
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
42
|
+
import("@smithy/types").HttpRequest,
|
|
43
|
+
import("@smithy/types").HttpResponse
|
|
44
|
+
>;
|
|
41
45
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
42
46
|
userAgentAppId?:
|
|
43
47
|
| string
|
|
@@ -38,6 +38,10 @@ export declare const getRuntimeConfig: (config: ArtifactClientConfig) => {
|
|
|
38
38
|
profile?: string;
|
|
39
39
|
logger: import("@smithy/types").Logger;
|
|
40
40
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
41
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
42
|
+
import("@smithy/types").HttpRequest,
|
|
43
|
+
import("@smithy/types").HttpResponse
|
|
44
|
+
>;
|
|
41
45
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
42
46
|
retryStrategy?:
|
|
43
47
|
| import("@smithy/types").RetryStrategy
|
|
@@ -37,6 +37,10 @@ export declare const getRuntimeConfig: (config: ArtifactClientConfig) => {
|
|
|
37
37
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
38
38
|
logger: import("@smithy/types").Logger;
|
|
39
39
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
40
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
41
|
+
import("@smithy/types").HttpRequest,
|
|
42
|
+
import("@smithy/types").HttpResponse
|
|
43
|
+
>;
|
|
40
44
|
defaultsMode:
|
|
41
45
|
| import("@smithy/smithy-client").DefaultsMode
|
|
42
46
|
| import("@smithy/types").Provider<
|
|
@@ -14,6 +14,10 @@ export declare const getRuntimeConfig: (config: ArtifactClientConfig) => {
|
|
|
14
14
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").ArtifactHttpAuthSchemeProvider;
|
|
15
15
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
16
16
|
logger: import("@smithy/types").Logger;
|
|
17
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
18
|
+
import("@smithy/types").HttpRequest,
|
|
19
|
+
import("@smithy/types").HttpResponse
|
|
20
|
+
>;
|
|
17
21
|
serviceId: string;
|
|
18
22
|
urlParser: import("@smithy/types").UrlParser;
|
|
19
23
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StaticErrorSchema,
|
|
3
|
+
StaticListSchema,
|
|
4
|
+
StaticOperationSchema,
|
|
5
|
+
StaticStructureSchema,
|
|
6
|
+
} from "@smithy/types";
|
|
7
|
+
export declare var AccessDeniedException: StaticErrorSchema;
|
|
8
|
+
export declare var AccountSettings: StaticStructureSchema;
|
|
9
|
+
export declare var ConflictException: StaticErrorSchema;
|
|
10
|
+
export declare var CustomerAgreementSummary: StaticStructureSchema;
|
|
11
|
+
export declare var GetAccountSettingsRequest: StaticStructureSchema;
|
|
12
|
+
export declare var GetAccountSettingsResponse: StaticStructureSchema;
|
|
13
|
+
export declare var GetReportMetadataRequest: StaticStructureSchema;
|
|
14
|
+
export declare var GetReportMetadataResponse: StaticStructureSchema;
|
|
15
|
+
export declare var GetReportRequest: StaticStructureSchema;
|
|
16
|
+
export declare var GetReportResponse: StaticStructureSchema;
|
|
17
|
+
export declare var GetTermForReportRequest: StaticStructureSchema;
|
|
18
|
+
export declare var GetTermForReportResponse: StaticStructureSchema;
|
|
19
|
+
export declare var InternalServerException: StaticErrorSchema;
|
|
20
|
+
export declare var ListCustomerAgreementsRequest: StaticStructureSchema;
|
|
21
|
+
export declare var ListCustomerAgreementsResponse: StaticStructureSchema;
|
|
22
|
+
export declare var ListReportsRequest: StaticStructureSchema;
|
|
23
|
+
export declare var ListReportsResponse: StaticStructureSchema;
|
|
24
|
+
export declare var PutAccountSettingsRequest: StaticStructureSchema;
|
|
25
|
+
export declare var PutAccountSettingsResponse: StaticStructureSchema;
|
|
26
|
+
export declare var ReportDetail: StaticStructureSchema;
|
|
27
|
+
export declare var ReportSummary: StaticStructureSchema;
|
|
28
|
+
export declare var ResourceNotFoundException: StaticErrorSchema;
|
|
29
|
+
export declare var ServiceQuotaExceededException: StaticErrorSchema;
|
|
30
|
+
export declare var ThrottlingException: StaticErrorSchema;
|
|
31
|
+
export declare var ValidationException: StaticErrorSchema;
|
|
32
|
+
export declare var ValidationExceptionField: StaticStructureSchema;
|
|
33
|
+
export declare var __Unit: "unit";
|
|
34
|
+
export declare var ArtifactServiceException: StaticErrorSchema;
|
|
35
|
+
export declare var AgreementTerms: number;
|
|
36
|
+
export declare var CustomerAgreementList: StaticListSchema;
|
|
37
|
+
export declare var ReportsList: StaticListSchema;
|
|
38
|
+
export declare var ValidationExceptionFieldList: StaticListSchema;
|
|
39
|
+
export declare var GetAccountSettings: StaticOperationSchema;
|
|
40
|
+
export declare var GetReport: StaticOperationSchema;
|
|
41
|
+
export declare var GetReportMetadata: StaticOperationSchema;
|
|
42
|
+
export declare var GetTermForReport: StaticOperationSchema;
|
|
43
|
+
export declare var ListCustomerAgreements: StaticOperationSchema;
|
|
44
|
+
export declare var ListReports: StaticOperationSchema;
|
|
45
|
+
export declare var PutAccountSettings: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-artifact",
|
|
3
3
|
"description": "AWS SDK for JavaScript Artifact Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.929.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-artifact",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
23
|
"@aws-sdk/core": "3.928.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.929.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.922.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.922.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.922.0",
|
|
@@ -1,423 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { ArtifactServiceException as __BaseException } from "../models/ArtifactServiceException";
|
|
5
|
-
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
|
-
export const se_GetAccountSettingsCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {};
|
|
9
|
-
b.bp("/v1/account-settings/get");
|
|
10
|
-
let body;
|
|
11
|
-
b.m("GET").h(headers).b(body);
|
|
12
|
-
return b.build();
|
|
13
|
-
};
|
|
14
|
-
export const se_GetReportCommand = async (input, context) => {
|
|
15
|
-
const b = rb(input, context);
|
|
16
|
-
const headers = {};
|
|
17
|
-
b.bp("/v1/report/get");
|
|
18
|
-
const query = map({
|
|
19
|
-
[_rI]: [, __expectNonNull(input[_rI], `reportId`)],
|
|
20
|
-
[_rV]: [() => input.reportVersion !== void 0, () => input[_rV].toString()],
|
|
21
|
-
[_tT]: [, __expectNonNull(input[_tT], `termToken`)],
|
|
22
|
-
});
|
|
23
|
-
let body;
|
|
24
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
25
|
-
return b.build();
|
|
26
|
-
};
|
|
27
|
-
export const se_GetReportMetadataCommand = async (input, context) => {
|
|
28
|
-
const b = rb(input, context);
|
|
29
|
-
const headers = {};
|
|
30
|
-
b.bp("/v1/report/getMetadata");
|
|
31
|
-
const query = map({
|
|
32
|
-
[_rI]: [, __expectNonNull(input[_rI], `reportId`)],
|
|
33
|
-
[_rV]: [() => input.reportVersion !== void 0, () => input[_rV].toString()],
|
|
34
|
-
});
|
|
35
|
-
let body;
|
|
36
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
37
|
-
return b.build();
|
|
38
|
-
};
|
|
39
|
-
export const se_GetTermForReportCommand = async (input, context) => {
|
|
40
|
-
const b = rb(input, context);
|
|
41
|
-
const headers = {};
|
|
42
|
-
b.bp("/v1/report/getTermForReport");
|
|
43
|
-
const query = map({
|
|
44
|
-
[_rI]: [, __expectNonNull(input[_rI], `reportId`)],
|
|
45
|
-
[_rV]: [() => input.reportVersion !== void 0, () => input[_rV].toString()],
|
|
46
|
-
});
|
|
47
|
-
let body;
|
|
48
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
49
|
-
return b.build();
|
|
50
|
-
};
|
|
51
|
-
export const se_ListCustomerAgreementsCommand = async (input, context) => {
|
|
52
|
-
const b = rb(input, context);
|
|
53
|
-
const headers = {};
|
|
54
|
-
b.bp("/v1/customer-agreement/list");
|
|
55
|
-
const query = map({
|
|
56
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
57
|
-
[_nT]: [, input[_nT]],
|
|
58
|
-
});
|
|
59
|
-
let body;
|
|
60
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
61
|
-
return b.build();
|
|
62
|
-
};
|
|
63
|
-
export const se_ListReportsCommand = async (input, context) => {
|
|
64
|
-
const b = rb(input, context);
|
|
65
|
-
const headers = {};
|
|
66
|
-
b.bp("/v1/report/list");
|
|
67
|
-
const query = map({
|
|
68
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
69
|
-
[_nT]: [, input[_nT]],
|
|
70
|
-
});
|
|
71
|
-
let body;
|
|
72
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
73
|
-
return b.build();
|
|
74
|
-
};
|
|
75
|
-
export const se_PutAccountSettingsCommand = async (input, context) => {
|
|
76
|
-
const b = rb(input, context);
|
|
77
|
-
const headers = {
|
|
78
|
-
"content-type": "application/json",
|
|
79
|
-
};
|
|
80
|
-
b.bp("/v1/account-settings/put");
|
|
81
|
-
let body;
|
|
82
|
-
body = JSON.stringify(take(input, {
|
|
83
|
-
notificationSubscriptionStatus: [],
|
|
84
|
-
}));
|
|
85
|
-
b.m("PUT").h(headers).b(body);
|
|
86
|
-
return b.build();
|
|
87
|
-
};
|
|
88
|
-
export const de_GetAccountSettingsCommand = async (output, context) => {
|
|
89
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
90
|
-
return de_CommandError(output, context);
|
|
91
|
-
}
|
|
92
|
-
const contents = map({
|
|
93
|
-
$metadata: deserializeMetadata(output),
|
|
94
|
-
});
|
|
95
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
96
|
-
const doc = take(data, {
|
|
97
|
-
accountSettings: _json,
|
|
98
|
-
});
|
|
99
|
-
Object.assign(contents, doc);
|
|
100
|
-
return contents;
|
|
101
|
-
};
|
|
102
|
-
export const de_GetReportCommand = async (output, context) => {
|
|
103
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
104
|
-
return de_CommandError(output, context);
|
|
105
|
-
}
|
|
106
|
-
const contents = map({
|
|
107
|
-
$metadata: deserializeMetadata(output),
|
|
108
|
-
});
|
|
109
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
110
|
-
const doc = take(data, {
|
|
111
|
-
documentPresignedUrl: __expectString,
|
|
112
|
-
});
|
|
113
|
-
Object.assign(contents, doc);
|
|
114
|
-
return contents;
|
|
115
|
-
};
|
|
116
|
-
export const de_GetReportMetadataCommand = async (output, context) => {
|
|
117
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
118
|
-
return de_CommandError(output, context);
|
|
119
|
-
}
|
|
120
|
-
const contents = map({
|
|
121
|
-
$metadata: deserializeMetadata(output),
|
|
122
|
-
});
|
|
123
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
124
|
-
const doc = take(data, {
|
|
125
|
-
reportDetails: (_) => de_ReportDetail(_, context),
|
|
126
|
-
});
|
|
127
|
-
Object.assign(contents, doc);
|
|
128
|
-
return contents;
|
|
129
|
-
};
|
|
130
|
-
export const de_GetTermForReportCommand = async (output, context) => {
|
|
131
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
132
|
-
return de_CommandError(output, context);
|
|
133
|
-
}
|
|
134
|
-
const contents = map({
|
|
135
|
-
$metadata: deserializeMetadata(output),
|
|
136
|
-
});
|
|
137
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
138
|
-
const doc = take(data, {
|
|
139
|
-
documentPresignedUrl: __expectString,
|
|
140
|
-
termToken: __expectString,
|
|
141
|
-
});
|
|
142
|
-
Object.assign(contents, doc);
|
|
143
|
-
return contents;
|
|
144
|
-
};
|
|
145
|
-
export const de_ListCustomerAgreementsCommand = async (output, context) => {
|
|
146
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
147
|
-
return de_CommandError(output, context);
|
|
148
|
-
}
|
|
149
|
-
const contents = map({
|
|
150
|
-
$metadata: deserializeMetadata(output),
|
|
151
|
-
});
|
|
152
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
153
|
-
const doc = take(data, {
|
|
154
|
-
customerAgreements: (_) => de_CustomerAgreementList(_, context),
|
|
155
|
-
nextToken: __expectString,
|
|
156
|
-
});
|
|
157
|
-
Object.assign(contents, doc);
|
|
158
|
-
return contents;
|
|
159
|
-
};
|
|
160
|
-
export const de_ListReportsCommand = async (output, context) => {
|
|
161
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
162
|
-
return de_CommandError(output, context);
|
|
163
|
-
}
|
|
164
|
-
const contents = map({
|
|
165
|
-
$metadata: deserializeMetadata(output),
|
|
166
|
-
});
|
|
167
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
168
|
-
const doc = take(data, {
|
|
169
|
-
nextToken: __expectString,
|
|
170
|
-
reports: (_) => de_ReportsList(_, context),
|
|
171
|
-
});
|
|
172
|
-
Object.assign(contents, doc);
|
|
173
|
-
return contents;
|
|
174
|
-
};
|
|
175
|
-
export const de_PutAccountSettingsCommand = async (output, context) => {
|
|
176
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
177
|
-
return de_CommandError(output, context);
|
|
178
|
-
}
|
|
179
|
-
const contents = map({
|
|
180
|
-
$metadata: deserializeMetadata(output),
|
|
181
|
-
});
|
|
182
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
183
|
-
const doc = take(data, {
|
|
184
|
-
accountSettings: _json,
|
|
185
|
-
});
|
|
186
|
-
Object.assign(contents, doc);
|
|
187
|
-
return contents;
|
|
188
|
-
};
|
|
189
|
-
const de_CommandError = async (output, context) => {
|
|
190
|
-
const parsedOutput = {
|
|
191
|
-
...output,
|
|
192
|
-
body: await parseErrorBody(output.body, context),
|
|
193
|
-
};
|
|
194
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
195
|
-
switch (errorCode) {
|
|
196
|
-
case "AccessDeniedException":
|
|
197
|
-
case "com.amazonaws.artifact#AccessDeniedException":
|
|
198
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
199
|
-
case "ConflictException":
|
|
200
|
-
case "com.amazonaws.artifact#ConflictException":
|
|
201
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
202
|
-
case "InternalServerException":
|
|
203
|
-
case "com.amazonaws.artifact#InternalServerException":
|
|
204
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
205
|
-
case "ResourceNotFoundException":
|
|
206
|
-
case "com.amazonaws.artifact#ResourceNotFoundException":
|
|
207
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
208
|
-
case "ServiceQuotaExceededException":
|
|
209
|
-
case "com.amazonaws.artifact#ServiceQuotaExceededException":
|
|
210
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
211
|
-
case "ThrottlingException":
|
|
212
|
-
case "com.amazonaws.artifact#ThrottlingException":
|
|
213
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
214
|
-
case "ValidationException":
|
|
215
|
-
case "com.amazonaws.artifact#ValidationException":
|
|
216
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
217
|
-
default:
|
|
218
|
-
const parsedBody = parsedOutput.body;
|
|
219
|
-
return throwDefaultError({
|
|
220
|
-
output,
|
|
221
|
-
parsedBody,
|
|
222
|
-
errorCode,
|
|
223
|
-
});
|
|
224
|
-
}
|
|
225
|
-
};
|
|
226
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
227
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
228
|
-
const contents = map({});
|
|
229
|
-
const data = parsedOutput.body;
|
|
230
|
-
const doc = take(data, {
|
|
231
|
-
message: __expectString,
|
|
232
|
-
});
|
|
233
|
-
Object.assign(contents, doc);
|
|
234
|
-
const exception = new AccessDeniedException({
|
|
235
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
236
|
-
...contents,
|
|
237
|
-
});
|
|
238
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
239
|
-
};
|
|
240
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
241
|
-
const contents = map({});
|
|
242
|
-
const data = parsedOutput.body;
|
|
243
|
-
const doc = take(data, {
|
|
244
|
-
message: __expectString,
|
|
245
|
-
resourceId: __expectString,
|
|
246
|
-
resourceType: __expectString,
|
|
247
|
-
});
|
|
248
|
-
Object.assign(contents, doc);
|
|
249
|
-
const exception = new ConflictException({
|
|
250
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
251
|
-
...contents,
|
|
252
|
-
});
|
|
253
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
254
|
-
};
|
|
255
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
256
|
-
const contents = map({
|
|
257
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
|
|
258
|
-
});
|
|
259
|
-
const data = parsedOutput.body;
|
|
260
|
-
const doc = take(data, {
|
|
261
|
-
message: __expectString,
|
|
262
|
-
});
|
|
263
|
-
Object.assign(contents, doc);
|
|
264
|
-
const exception = new InternalServerException({
|
|
265
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
266
|
-
...contents,
|
|
267
|
-
});
|
|
268
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
269
|
-
};
|
|
270
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
271
|
-
const contents = map({});
|
|
272
|
-
const data = parsedOutput.body;
|
|
273
|
-
const doc = take(data, {
|
|
274
|
-
message: __expectString,
|
|
275
|
-
resourceId: __expectString,
|
|
276
|
-
resourceType: __expectString,
|
|
277
|
-
});
|
|
278
|
-
Object.assign(contents, doc);
|
|
279
|
-
const exception = new ResourceNotFoundException({
|
|
280
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
281
|
-
...contents,
|
|
282
|
-
});
|
|
283
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
284
|
-
};
|
|
285
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
286
|
-
const contents = map({});
|
|
287
|
-
const data = parsedOutput.body;
|
|
288
|
-
const doc = take(data, {
|
|
289
|
-
message: __expectString,
|
|
290
|
-
quotaCode: __expectString,
|
|
291
|
-
resourceId: __expectString,
|
|
292
|
-
resourceType: __expectString,
|
|
293
|
-
serviceCode: __expectString,
|
|
294
|
-
});
|
|
295
|
-
Object.assign(contents, doc);
|
|
296
|
-
const exception = new ServiceQuotaExceededException({
|
|
297
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
298
|
-
...contents,
|
|
299
|
-
});
|
|
300
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
301
|
-
};
|
|
302
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
303
|
-
const contents = map({
|
|
304
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
|
|
305
|
-
});
|
|
306
|
-
const data = parsedOutput.body;
|
|
307
|
-
const doc = take(data, {
|
|
308
|
-
message: __expectString,
|
|
309
|
-
quotaCode: __expectString,
|
|
310
|
-
serviceCode: __expectString,
|
|
311
|
-
});
|
|
312
|
-
Object.assign(contents, doc);
|
|
313
|
-
const exception = new ThrottlingException({
|
|
314
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
315
|
-
...contents,
|
|
316
|
-
});
|
|
317
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
318
|
-
};
|
|
319
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
320
|
-
const contents = map({});
|
|
321
|
-
const data = parsedOutput.body;
|
|
322
|
-
const doc = take(data, {
|
|
323
|
-
fieldList: _json,
|
|
324
|
-
message: __expectString,
|
|
325
|
-
reason: __expectString,
|
|
326
|
-
});
|
|
327
|
-
Object.assign(contents, doc);
|
|
328
|
-
const exception = new ValidationException({
|
|
329
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
330
|
-
...contents,
|
|
331
|
-
});
|
|
332
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
333
|
-
};
|
|
334
|
-
const de_CustomerAgreementList = (output, context) => {
|
|
335
|
-
const retVal = (output || [])
|
|
336
|
-
.filter((e) => e != null)
|
|
337
|
-
.map((entry) => {
|
|
338
|
-
return de_CustomerAgreementSummary(entry, context);
|
|
339
|
-
});
|
|
340
|
-
return retVal;
|
|
341
|
-
};
|
|
342
|
-
const de_CustomerAgreementSummary = (output, context) => {
|
|
343
|
-
return take(output, {
|
|
344
|
-
acceptanceTerms: _json,
|
|
345
|
-
agreementArn: __expectString,
|
|
346
|
-
arn: __expectString,
|
|
347
|
-
awsAccountId: __expectString,
|
|
348
|
-
description: __expectString,
|
|
349
|
-
effectiveEnd: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
350
|
-
effectiveStart: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
351
|
-
id: __expectString,
|
|
352
|
-
name: __expectString,
|
|
353
|
-
organizationArn: __expectString,
|
|
354
|
-
state: __expectString,
|
|
355
|
-
terminateTerms: _json,
|
|
356
|
-
type: __expectString,
|
|
357
|
-
});
|
|
358
|
-
};
|
|
359
|
-
const de_ReportDetail = (output, context) => {
|
|
360
|
-
return take(output, {
|
|
361
|
-
acceptanceType: __expectString,
|
|
362
|
-
arn: __expectString,
|
|
363
|
-
category: __expectString,
|
|
364
|
-
companyName: __expectString,
|
|
365
|
-
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
366
|
-
deletedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
367
|
-
description: __expectString,
|
|
368
|
-
id: __expectString,
|
|
369
|
-
lastModifiedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
370
|
-
name: __expectString,
|
|
371
|
-
periodEnd: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
372
|
-
periodStart: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
373
|
-
productName: __expectString,
|
|
374
|
-
sequenceNumber: __expectLong,
|
|
375
|
-
series: __expectString,
|
|
376
|
-
state: __expectString,
|
|
377
|
-
statusMessage: __expectString,
|
|
378
|
-
termArn: __expectString,
|
|
379
|
-
uploadState: __expectString,
|
|
380
|
-
version: __expectLong,
|
|
381
|
-
});
|
|
382
|
-
};
|
|
383
|
-
const de_ReportsList = (output, context) => {
|
|
384
|
-
const retVal = (output || [])
|
|
385
|
-
.filter((e) => e != null)
|
|
386
|
-
.map((entry) => {
|
|
387
|
-
return de_ReportSummary(entry, context);
|
|
388
|
-
});
|
|
389
|
-
return retVal;
|
|
390
|
-
};
|
|
391
|
-
const de_ReportSummary = (output, context) => {
|
|
392
|
-
return take(output, {
|
|
393
|
-
acceptanceType: __expectString,
|
|
394
|
-
arn: __expectString,
|
|
395
|
-
category: __expectString,
|
|
396
|
-
companyName: __expectString,
|
|
397
|
-
description: __expectString,
|
|
398
|
-
id: __expectString,
|
|
399
|
-
name: __expectString,
|
|
400
|
-
periodEnd: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
401
|
-
periodStart: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
402
|
-
productName: __expectString,
|
|
403
|
-
series: __expectString,
|
|
404
|
-
state: __expectString,
|
|
405
|
-
statusMessage: __expectString,
|
|
406
|
-
uploadState: __expectString,
|
|
407
|
-
version: __expectLong,
|
|
408
|
-
});
|
|
409
|
-
};
|
|
410
|
-
const deserializeMetadata = (output) => ({
|
|
411
|
-
httpStatusCode: output.statusCode,
|
|
412
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
413
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
414
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
415
|
-
});
|
|
416
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
417
|
-
const _mR = "maxResults";
|
|
418
|
-
const _nT = "nextToken";
|
|
419
|
-
const _rAS = "retryAfterSeconds";
|
|
420
|
-
const _rI = "reportId";
|
|
421
|
-
const _rV = "reportVersion";
|
|
422
|
-
const _ra = "retry-after";
|
|
423
|
-
const _tT = "termToken";
|