@aws-sdk/client-signer 3.345.0 → 3.347.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/README.md +28 -14
- package/dist-cjs/Signer.js +4 -0
- package/dist-cjs/commands/GetRevocationStatusCommand.js +46 -0
- package/dist-cjs/commands/SignPayloadCommand.js +46 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +32 -1
- package/dist-cjs/protocols/Aws_restJson1.js +154 -1
- package/dist-es/Signer.js +4 -0
- package/dist-es/commands/GetRevocationStatusCommand.js +42 -0
- package/dist-es/commands/SignPayloadCommand.js +42 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +31 -0
- package/dist-es/protocols/Aws_restJson1.js +150 -1
- package/dist-types/Signer.d.ts +26 -14
- package/dist-types/SignerClient.d.ts +16 -16
- package/dist-types/commands/DescribeSigningJobCommand.d.ts +6 -6
- package/dist-types/commands/GetRevocationStatusCommand.d.ts +96 -0
- package/dist-types/commands/GetSigningPlatformCommand.d.ts +7 -7
- package/dist-types/commands/GetSigningProfileCommand.d.ts +5 -5
- package/dist-types/commands/ListSigningJobsCommand.d.ts +2 -2
- package/dist-types/commands/ListSigningPlatformsCommand.d.ts +7 -7
- package/dist-types/commands/ListSigningProfilesCommand.d.ts +3 -3
- package/dist-types/commands/PutSigningProfileCommand.d.ts +6 -6
- package/dist-types/commands/SignPayloadCommand.d.ts +98 -0
- package/dist-types/commands/StartSigningJobCommand.d.ts +3 -4
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/index.d.ts +12 -14
- package/dist-types/models/models_0.d.ts +151 -11
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/ts3.4/Signer.d.ts +34 -0
- package/dist-types/ts3.4/SignerClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/GetRevocationStatusCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/SignPayloadCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +62 -7
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
- package/package.json +29 -29
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@aws-sdk/types";
|
|
9
|
+
import { SignPayloadRequest, SignPayloadResponse } from "../models/models_0";
|
|
10
|
+
import {
|
|
11
|
+
ServiceInputTypes,
|
|
12
|
+
ServiceOutputTypes,
|
|
13
|
+
SignerClientResolvedConfig,
|
|
14
|
+
} from "../SignerClient";
|
|
15
|
+
export { __MetadataBearer, $Command };
|
|
16
|
+
export interface SignPayloadCommandInput extends SignPayloadRequest {}
|
|
17
|
+
export interface SignPayloadCommandOutput
|
|
18
|
+
extends SignPayloadResponse,
|
|
19
|
+
__MetadataBearer {}
|
|
20
|
+
export declare class SignPayloadCommand extends $Command<
|
|
21
|
+
SignPayloadCommandInput,
|
|
22
|
+
SignPayloadCommandOutput,
|
|
23
|
+
SignerClientResolvedConfig
|
|
24
|
+
> {
|
|
25
|
+
readonly input: SignPayloadCommandInput;
|
|
26
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
27
|
+
constructor(input: SignPayloadCommandInput);
|
|
28
|
+
resolveMiddleware(
|
|
29
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
30
|
+
configuration: SignerClientResolvedConfig,
|
|
31
|
+
options?: __HttpHandlerOptions
|
|
32
|
+
): Handler<SignPayloadCommandInput, SignPayloadCommandOutput>;
|
|
33
|
+
private serialize;
|
|
34
|
+
private deserialize;
|
|
35
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./AddProfilePermissionCommand";
|
|
2
2
|
export * from "./CancelSigningProfileCommand";
|
|
3
3
|
export * from "./DescribeSigningJobCommand";
|
|
4
|
+
export * from "./GetRevocationStatusCommand";
|
|
4
5
|
export * from "./GetSigningPlatformCommand";
|
|
5
6
|
export * from "./GetSigningProfileCommand";
|
|
6
7
|
export * from "./ListProfilePermissionsCommand";
|
|
@@ -12,6 +13,7 @@ export * from "./PutSigningProfileCommand";
|
|
|
12
13
|
export * from "./RemoveProfilePermissionCommand";
|
|
13
14
|
export * from "./RevokeSignatureCommand";
|
|
14
15
|
export * from "./RevokeSigningProfileCommand";
|
|
16
|
+
export * from "./SignPayloadCommand";
|
|
15
17
|
export * from "./StartSigningJobCommand";
|
|
16
18
|
export * from "./TagResourceCommand";
|
|
17
19
|
export * from "./UntagResourceCommand";
|
|
@@ -76,17 +76,34 @@ export declare class BadRequestException extends __BaseException {
|
|
|
76
76
|
export interface CancelSigningProfileRequest {
|
|
77
77
|
profileName: string | undefined;
|
|
78
78
|
}
|
|
79
|
-
export
|
|
79
|
+
export declare const Category: {
|
|
80
|
+
readonly AWSIoT: "AWSIoT";
|
|
81
|
+
};
|
|
82
|
+
export type Category = (typeof Category)[keyof typeof Category];
|
|
80
83
|
export interface DescribeSigningJobRequest {
|
|
81
84
|
jobId: string | undefined;
|
|
82
85
|
}
|
|
83
|
-
export
|
|
84
|
-
|
|
86
|
+
export declare const EncryptionAlgorithm: {
|
|
87
|
+
readonly ECDSA: "ECDSA";
|
|
88
|
+
readonly RSA: "RSA";
|
|
89
|
+
};
|
|
90
|
+
export type EncryptionAlgorithm =
|
|
91
|
+
(typeof EncryptionAlgorithm)[keyof typeof EncryptionAlgorithm];
|
|
92
|
+
export declare const HashAlgorithm: {
|
|
93
|
+
readonly SHA1: "SHA1";
|
|
94
|
+
readonly SHA256: "SHA256";
|
|
95
|
+
};
|
|
96
|
+
export type HashAlgorithm = (typeof HashAlgorithm)[keyof typeof HashAlgorithm];
|
|
85
97
|
export interface SigningConfigurationOverrides {
|
|
86
98
|
encryptionAlgorithm?: EncryptionAlgorithm | string;
|
|
87
99
|
hashAlgorithm?: HashAlgorithm | string;
|
|
88
100
|
}
|
|
89
|
-
export
|
|
101
|
+
export declare const ImageFormat: {
|
|
102
|
+
readonly JSON: "JSON";
|
|
103
|
+
readonly JSONDetached: "JSONDetached";
|
|
104
|
+
readonly JSONEmbedded: "JSONEmbedded";
|
|
105
|
+
};
|
|
106
|
+
export type ImageFormat = (typeof ImageFormat)[keyof typeof ImageFormat];
|
|
90
107
|
export interface SigningPlatformOverrides {
|
|
91
108
|
signingConfiguration?: SigningConfigurationOverrides;
|
|
92
109
|
signingImageFormat?: ImageFormat | string;
|
|
@@ -114,7 +131,12 @@ export interface S3Source {
|
|
|
114
131
|
export interface Source {
|
|
115
132
|
s3?: S3Source;
|
|
116
133
|
}
|
|
117
|
-
export
|
|
134
|
+
export declare const SigningStatus: {
|
|
135
|
+
readonly Failed: "Failed";
|
|
136
|
+
readonly InProgress: "InProgress";
|
|
137
|
+
readonly Succeeded: "Succeeded";
|
|
138
|
+
};
|
|
139
|
+
export type SigningStatus = (typeof SigningStatus)[keyof typeof SigningStatus];
|
|
118
140
|
export interface DescribeSigningJobResponse {
|
|
119
141
|
jobId?: string;
|
|
120
142
|
source?: Source;
|
|
@@ -147,6 +169,16 @@ export interface EncryptionAlgorithmOptions {
|
|
|
147
169
|
allowedValues: (EncryptionAlgorithm | string)[] | undefined;
|
|
148
170
|
defaultValue: EncryptionAlgorithm | string | undefined;
|
|
149
171
|
}
|
|
172
|
+
export interface GetRevocationStatusRequest {
|
|
173
|
+
signatureTimestamp: Date | undefined;
|
|
174
|
+
platformId: string | undefined;
|
|
175
|
+
profileVersionArn: string | undefined;
|
|
176
|
+
jobArn: string | undefined;
|
|
177
|
+
certificateHashes: string[] | undefined;
|
|
178
|
+
}
|
|
179
|
+
export interface GetRevocationStatusResponse {
|
|
180
|
+
revokedEntities?: string[];
|
|
181
|
+
}
|
|
150
182
|
export interface GetSigningPlatformRequest {
|
|
151
183
|
platformId: string | undefined;
|
|
152
184
|
}
|
|
@@ -182,12 +214,23 @@ export interface SigningProfileRevocationRecord {
|
|
|
182
214
|
revokedAt?: Date;
|
|
183
215
|
revokedBy?: string;
|
|
184
216
|
}
|
|
185
|
-
export
|
|
217
|
+
export declare const ValidityType: {
|
|
218
|
+
readonly DAYS: "DAYS";
|
|
219
|
+
readonly MONTHS: "MONTHS";
|
|
220
|
+
readonly YEARS: "YEARS";
|
|
221
|
+
};
|
|
222
|
+
export type ValidityType = (typeof ValidityType)[keyof typeof ValidityType];
|
|
186
223
|
export interface SignatureValidityPeriod {
|
|
187
224
|
value?: number;
|
|
188
225
|
type?: ValidityType | string;
|
|
189
226
|
}
|
|
190
|
-
export
|
|
227
|
+
export declare const SigningProfileStatus: {
|
|
228
|
+
readonly Active: "Active";
|
|
229
|
+
readonly Canceled: "Canceled";
|
|
230
|
+
readonly Revoked: "Revoked";
|
|
231
|
+
};
|
|
232
|
+
export type SigningProfileStatus =
|
|
233
|
+
(typeof SigningProfileStatus)[keyof typeof SigningProfileStatus];
|
|
191
234
|
export interface GetSigningProfileResponse {
|
|
192
235
|
profileName?: string;
|
|
193
236
|
profileVersion?: string;
|
|
@@ -342,6 +385,18 @@ export interface RevokeSigningProfileRequest {
|
|
|
342
385
|
reason: string | undefined;
|
|
343
386
|
effectiveTime: Date | undefined;
|
|
344
387
|
}
|
|
388
|
+
export interface SignPayloadRequest {
|
|
389
|
+
profileName: string | undefined;
|
|
390
|
+
profileOwner?: string;
|
|
391
|
+
payload: Uint8Array | undefined;
|
|
392
|
+
payloadFormat: string | undefined;
|
|
393
|
+
}
|
|
394
|
+
export interface SignPayloadResponse {
|
|
395
|
+
jobId?: string;
|
|
396
|
+
jobOwner?: string;
|
|
397
|
+
metadata?: Record<string, string>;
|
|
398
|
+
signature?: Uint8Array;
|
|
399
|
+
}
|
|
345
400
|
export interface StartSigningJobRequest {
|
|
346
401
|
source: Source | undefined;
|
|
347
402
|
destination: Destination | undefined;
|
|
@@ -15,6 +15,10 @@ import {
|
|
|
15
15
|
DescribeSigningJobCommandInput,
|
|
16
16
|
DescribeSigningJobCommandOutput,
|
|
17
17
|
} from "../commands/DescribeSigningJobCommand";
|
|
18
|
+
import {
|
|
19
|
+
GetRevocationStatusCommandInput,
|
|
20
|
+
GetRevocationStatusCommandOutput,
|
|
21
|
+
} from "../commands/GetRevocationStatusCommand";
|
|
18
22
|
import {
|
|
19
23
|
GetSigningPlatformCommandInput,
|
|
20
24
|
GetSigningPlatformCommandOutput,
|
|
@@ -59,6 +63,10 @@ import {
|
|
|
59
63
|
RevokeSigningProfileCommandInput,
|
|
60
64
|
RevokeSigningProfileCommandOutput,
|
|
61
65
|
} from "../commands/RevokeSigningProfileCommand";
|
|
66
|
+
import {
|
|
67
|
+
SignPayloadCommandInput,
|
|
68
|
+
SignPayloadCommandOutput,
|
|
69
|
+
} from "../commands/SignPayloadCommand";
|
|
62
70
|
import {
|
|
63
71
|
StartSigningJobCommandInput,
|
|
64
72
|
StartSigningJobCommandOutput,
|
|
@@ -83,6 +91,10 @@ export declare const se_DescribeSigningJobCommand: (
|
|
|
83
91
|
input: DescribeSigningJobCommandInput,
|
|
84
92
|
context: __SerdeContext
|
|
85
93
|
) => Promise<__HttpRequest>;
|
|
94
|
+
export declare const se_GetRevocationStatusCommand: (
|
|
95
|
+
input: GetRevocationStatusCommandInput,
|
|
96
|
+
context: __SerdeContext
|
|
97
|
+
) => Promise<__HttpRequest>;
|
|
86
98
|
export declare const se_GetSigningPlatformCommand: (
|
|
87
99
|
input: GetSigningPlatformCommandInput,
|
|
88
100
|
context: __SerdeContext
|
|
@@ -127,6 +139,10 @@ export declare const se_RevokeSigningProfileCommand: (
|
|
|
127
139
|
input: RevokeSigningProfileCommandInput,
|
|
128
140
|
context: __SerdeContext
|
|
129
141
|
) => Promise<__HttpRequest>;
|
|
142
|
+
export declare const se_SignPayloadCommand: (
|
|
143
|
+
input: SignPayloadCommandInput,
|
|
144
|
+
context: __SerdeContext
|
|
145
|
+
) => Promise<__HttpRequest>;
|
|
130
146
|
export declare const se_StartSigningJobCommand: (
|
|
131
147
|
input: StartSigningJobCommandInput,
|
|
132
148
|
context: __SerdeContext
|
|
@@ -151,6 +167,10 @@ export declare const de_DescribeSigningJobCommand: (
|
|
|
151
167
|
output: __HttpResponse,
|
|
152
168
|
context: __SerdeContext
|
|
153
169
|
) => Promise<DescribeSigningJobCommandOutput>;
|
|
170
|
+
export declare const de_GetRevocationStatusCommand: (
|
|
171
|
+
output: __HttpResponse,
|
|
172
|
+
context: __SerdeContext
|
|
173
|
+
) => Promise<GetRevocationStatusCommandOutput>;
|
|
154
174
|
export declare const de_GetSigningPlatformCommand: (
|
|
155
175
|
output: __HttpResponse,
|
|
156
176
|
context: __SerdeContext
|
|
@@ -195,6 +215,10 @@ export declare const de_RevokeSigningProfileCommand: (
|
|
|
195
215
|
output: __HttpResponse,
|
|
196
216
|
context: __SerdeContext
|
|
197
217
|
) => Promise<RevokeSigningProfileCommandOutput>;
|
|
218
|
+
export declare const de_SignPayloadCommand: (
|
|
219
|
+
output: __HttpResponse,
|
|
220
|
+
context: __SerdeContext
|
|
221
|
+
) => Promise<SignPayloadCommandOutput>;
|
|
198
222
|
export declare const de_StartSigningJobCommand: (
|
|
199
223
|
output: __HttpResponse,
|
|
200
224
|
context: __SerdeContext
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-signer",
|
|
3
3
|
"description": "AWS SDK for JavaScript Signer Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.347.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,38 +21,38 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
33
|
-
"@aws-sdk/middleware-logger": "3.
|
|
34
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-serde": "3.
|
|
37
|
-
"@aws-sdk/middleware-signing": "3.
|
|
38
|
-
"@aws-sdk/middleware-stack": "3.
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
42
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
-
"@aws-sdk/types": "3.
|
|
44
|
-
"@aws-sdk/url-parser": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.347.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.347.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.347.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.347.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.347.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.347.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.347.0",
|
|
31
|
+
"@aws-sdk/middleware-endpoint": "3.347.0",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "3.347.0",
|
|
33
|
+
"@aws-sdk/middleware-logger": "3.347.0",
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "3.347.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.347.0",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.347.0",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.347.0",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.347.0",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.347.0",
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.347.0",
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.347.0",
|
|
42
|
+
"@aws-sdk/smithy-client": "3.347.0",
|
|
43
|
+
"@aws-sdk/types": "3.347.0",
|
|
44
|
+
"@aws-sdk/url-parser": "3.347.0",
|
|
45
45
|
"@aws-sdk/util-base64": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
51
|
-
"@aws-sdk/util-retry": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.347.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.347.0",
|
|
50
|
+
"@aws-sdk/util-endpoints": "3.347.0",
|
|
51
|
+
"@aws-sdk/util-retry": "3.347.0",
|
|
52
|
+
"@aws-sdk/util-user-agent-browser": "3.347.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-node": "3.347.0",
|
|
54
54
|
"@aws-sdk/util-utf8": "3.310.0",
|
|
55
|
-
"@aws-sdk/util-waiter": "3.
|
|
55
|
+
"@aws-sdk/util-waiter": "3.347.0",
|
|
56
56
|
"@smithy/protocol-http": "^1.0.1",
|
|
57
57
|
"@smithy/types": "^1.0.0",
|
|
58
58
|
"tslib": "^2.5.0",
|