@distilled.cloud/acme 0.0.0-placeholder → 1.0.0-rc.14
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/LICENSE +201 -0
- package/README.md +75 -0
- package/lib/credentials.d.ts +50 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +57 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +73 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +50 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +30 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +30 -0
- package/lib/index.js.map +1 -0
- package/lib/jose.d.ts +66 -0
- package/lib/jose.d.ts.map +1 -0
- package/lib/jose.js +121 -0
- package/lib/jose.js.map +1 -0
- package/lib/protocol.d.ts +27 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +404 -0
- package/lib/protocol.js.map +1 -0
- package/lib/protocol.test.d.ts +2 -0
- package/lib/protocol.test.d.ts.map +1 -0
- package/lib/protocol.test.js +533 -0
- package/lib/protocol.test.js.map +1 -0
- package/lib/retry.d.ts +33 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +33 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/acme.d.ts +509 -0
- package/lib/services/acme.d.ts.map +1 -0
- package/lib/services/acme.js +539 -0
- package/lib/services/acme.js.map +1 -0
- package/lib/services/index.d.ts +2 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +3 -0
- package/lib/services/index.js.map +1 -0
- package/lib/traits.d.ts +13 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +13 -0
- package/lib/traits.js.map +1 -0
- package/package.json +79 -6
- package/src/credentials.ts +100 -0
- package/src/errors.ts +91 -0
- package/src/index.ts +29 -0
- package/src/jose.ts +207 -0
- package/src/protocol.test.ts +806 -0
- package/src/protocol.ts +533 -0
- package/src/retry.ts +49 -0
- package/src/services/acme.ts +1096 -0
- package/src/services/index.ts +2 -0
- package/src/traits.ts +46 -0
|
@@ -0,0 +1,509 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import { type AcmeOpError, type AcmeOpContext } from "../protocol.ts";
|
|
4
|
+
export type { AcmeOpError, AcmeOpContext };
|
|
5
|
+
declare const AcmeAccountDoesNotExist_base: S.Class<AcmeAccountDoesNotExist, S.TaggedStruct<"AcmeAccountDoesNotExist", {
|
|
6
|
+
readonly code: any;
|
|
7
|
+
readonly message: any;
|
|
8
|
+
readonly type: any;
|
|
9
|
+
readonly detail: any;
|
|
10
|
+
}>, import("effect/Cause").YieldableError>;
|
|
11
|
+
/** The request specified an account that does not exist. */
|
|
12
|
+
export declare class AcmeAccountDoesNotExist extends /*@__PURE__*/ AcmeAccountDoesNotExist_base {
|
|
13
|
+
}
|
|
14
|
+
declare const AcmeAlreadyRevoked_base: S.Class<AcmeAlreadyRevoked, S.TaggedStruct<"AcmeAlreadyRevoked", {
|
|
15
|
+
readonly code: any;
|
|
16
|
+
readonly message: any;
|
|
17
|
+
readonly type: any;
|
|
18
|
+
readonly detail: any;
|
|
19
|
+
}>, import("effect/Cause").YieldableError>;
|
|
20
|
+
/** The request specified a certificate to be revoked that has already been revoked. */
|
|
21
|
+
export declare class AcmeAlreadyRevoked extends /*@__PURE__*/ AcmeAlreadyRevoked_base {
|
|
22
|
+
}
|
|
23
|
+
declare const AcmeBadCsr_base: S.Class<AcmeBadCsr, S.TaggedStruct<"AcmeBadCsr", {
|
|
24
|
+
readonly code: any;
|
|
25
|
+
readonly message: any;
|
|
26
|
+
readonly type: any;
|
|
27
|
+
readonly detail: any;
|
|
28
|
+
}>, import("effect/Cause").YieldableError>;
|
|
29
|
+
/** The CSR is unacceptable (e.g., due to a short key). */
|
|
30
|
+
export declare class AcmeBadCsr extends /*@__PURE__*/ AcmeBadCsr_base {
|
|
31
|
+
}
|
|
32
|
+
declare const AcmeBadNonce_base: S.Class<AcmeBadNonce, S.TaggedStruct<"AcmeBadNonce", {
|
|
33
|
+
readonly code: any;
|
|
34
|
+
readonly message: any;
|
|
35
|
+
readonly type: any;
|
|
36
|
+
readonly detail: any;
|
|
37
|
+
}>, import("effect/Cause").YieldableError>;
|
|
38
|
+
/** The client sent an unacceptable anti-replay nonce. */
|
|
39
|
+
export declare class AcmeBadNonce extends /*@__PURE__*/ AcmeBadNonce_base {
|
|
40
|
+
}
|
|
41
|
+
declare const AcmeBadPublicKey_base: S.Class<AcmeBadPublicKey, S.TaggedStruct<"AcmeBadPublicKey", {
|
|
42
|
+
readonly code: any;
|
|
43
|
+
readonly message: any;
|
|
44
|
+
readonly type: any;
|
|
45
|
+
readonly detail: any;
|
|
46
|
+
}>, import("effect/Cause").YieldableError>;
|
|
47
|
+
/** The JWS was signed by a public key the server does not support. */
|
|
48
|
+
export declare class AcmeBadPublicKey extends /*@__PURE__*/ AcmeBadPublicKey_base {
|
|
49
|
+
}
|
|
50
|
+
declare const AcmeBadRevocationReason_base: S.Class<AcmeBadRevocationReason, S.TaggedStruct<"AcmeBadRevocationReason", {
|
|
51
|
+
readonly code: any;
|
|
52
|
+
readonly message: any;
|
|
53
|
+
readonly type: any;
|
|
54
|
+
readonly detail: any;
|
|
55
|
+
}>, import("effect/Cause").YieldableError>;
|
|
56
|
+
/** The revocation reason provided is not allowed by the server. */
|
|
57
|
+
export declare class AcmeBadRevocationReason extends /*@__PURE__*/ AcmeBadRevocationReason_base {
|
|
58
|
+
}
|
|
59
|
+
declare const AcmeBadSignatureAlgorithm_base: S.Class<AcmeBadSignatureAlgorithm, S.TaggedStruct<"AcmeBadSignatureAlgorithm", {
|
|
60
|
+
readonly code: any;
|
|
61
|
+
readonly message: any;
|
|
62
|
+
readonly type: any;
|
|
63
|
+
readonly detail: any;
|
|
64
|
+
}>, import("effect/Cause").YieldableError>;
|
|
65
|
+
/** The JWS was signed with an algorithm the server does not support. */
|
|
66
|
+
export declare class AcmeBadSignatureAlgorithm extends /*@__PURE__*/ AcmeBadSignatureAlgorithm_base {
|
|
67
|
+
}
|
|
68
|
+
declare const AcmeCaa_base: S.Class<AcmeCaa, S.TaggedStruct<"AcmeCaa", {
|
|
69
|
+
readonly code: any;
|
|
70
|
+
readonly message: any;
|
|
71
|
+
readonly type: any;
|
|
72
|
+
readonly detail: any;
|
|
73
|
+
}>, import("effect/Cause").YieldableError>;
|
|
74
|
+
/** Certification Authority Authorization (CAA) records forbid the CA from issuing a certificate. */
|
|
75
|
+
export declare class AcmeCaa extends /*@__PURE__*/ AcmeCaa_base {
|
|
76
|
+
}
|
|
77
|
+
declare const AcmeConnection_base: S.Class<AcmeConnection, S.TaggedStruct<"AcmeConnection", {
|
|
78
|
+
readonly code: any;
|
|
79
|
+
readonly message: any;
|
|
80
|
+
readonly type: any;
|
|
81
|
+
readonly detail: any;
|
|
82
|
+
}>, import("effect/Cause").YieldableError>;
|
|
83
|
+
/** The server could not connect to validation target. */
|
|
84
|
+
export declare class AcmeConnection extends /*@__PURE__*/ AcmeConnection_base {
|
|
85
|
+
}
|
|
86
|
+
declare const AcmeDns_base: S.Class<AcmeDns, S.TaggedStruct<"AcmeDns", {
|
|
87
|
+
readonly code: any;
|
|
88
|
+
readonly message: any;
|
|
89
|
+
readonly type: any;
|
|
90
|
+
readonly detail: any;
|
|
91
|
+
}>, import("effect/Cause").YieldableError>;
|
|
92
|
+
/** There was a problem with a DNS query during identifier validation. */
|
|
93
|
+
export declare class AcmeDns extends /*@__PURE__*/ AcmeDns_base {
|
|
94
|
+
}
|
|
95
|
+
declare const AcmeExternalAccountRequired_base: S.Class<AcmeExternalAccountRequired, S.TaggedStruct<"AcmeExternalAccountRequired", {
|
|
96
|
+
readonly code: any;
|
|
97
|
+
readonly message: any;
|
|
98
|
+
readonly type: any;
|
|
99
|
+
readonly detail: any;
|
|
100
|
+
}>, import("effect/Cause").YieldableError>;
|
|
101
|
+
/** The request must include a value for the "externalAccountBinding" field. */
|
|
102
|
+
export declare class AcmeExternalAccountRequired extends /*@__PURE__*/ AcmeExternalAccountRequired_base {
|
|
103
|
+
}
|
|
104
|
+
declare const AcmeIncorrectResponse_base: S.Class<AcmeIncorrectResponse, S.TaggedStruct<"AcmeIncorrectResponse", {
|
|
105
|
+
readonly code: any;
|
|
106
|
+
readonly message: any;
|
|
107
|
+
readonly type: any;
|
|
108
|
+
readonly detail: any;
|
|
109
|
+
}>, import("effect/Cause").YieldableError>;
|
|
110
|
+
/** Response received didn't match the challenge's requirements. */
|
|
111
|
+
export declare class AcmeIncorrectResponse extends /*@__PURE__*/ AcmeIncorrectResponse_base {
|
|
112
|
+
}
|
|
113
|
+
declare const AcmeInvalidContact_base: S.Class<AcmeInvalidContact, S.TaggedStruct<"AcmeInvalidContact", {
|
|
114
|
+
readonly code: any;
|
|
115
|
+
readonly message: any;
|
|
116
|
+
readonly type: any;
|
|
117
|
+
readonly detail: any;
|
|
118
|
+
}>, import("effect/Cause").YieldableError>;
|
|
119
|
+
/** A contact URL for an account was invalid. */
|
|
120
|
+
export declare class AcmeInvalidContact extends /*@__PURE__*/ AcmeInvalidContact_base {
|
|
121
|
+
}
|
|
122
|
+
declare const AcmeMalformed_base: S.Class<AcmeMalformed, S.TaggedStruct<"AcmeMalformed", {
|
|
123
|
+
readonly code: any;
|
|
124
|
+
readonly message: any;
|
|
125
|
+
readonly type: any;
|
|
126
|
+
readonly detail: any;
|
|
127
|
+
}>, import("effect/Cause").YieldableError>;
|
|
128
|
+
/** The request message was malformed. */
|
|
129
|
+
export declare class AcmeMalformed extends /*@__PURE__*/ AcmeMalformed_base {
|
|
130
|
+
}
|
|
131
|
+
declare const AcmeOrderNotReady_base: S.Class<AcmeOrderNotReady, S.TaggedStruct<"AcmeOrderNotReady", {
|
|
132
|
+
readonly code: any;
|
|
133
|
+
readonly message: any;
|
|
134
|
+
readonly type: any;
|
|
135
|
+
readonly detail: any;
|
|
136
|
+
}>, import("effect/Cause").YieldableError>;
|
|
137
|
+
/** The request attempted to finalize an order that is not ready to be finalized. */
|
|
138
|
+
export declare class AcmeOrderNotReady extends /*@__PURE__*/ AcmeOrderNotReady_base {
|
|
139
|
+
}
|
|
140
|
+
declare const AcmeRateLimited_base: S.Class<AcmeRateLimited, S.TaggedStruct<"AcmeRateLimited", {
|
|
141
|
+
readonly retryAfter: any;
|
|
142
|
+
readonly code: any;
|
|
143
|
+
readonly message: any;
|
|
144
|
+
readonly type: any;
|
|
145
|
+
readonly detail: any;
|
|
146
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
147
|
+
"@distilled.cloud/error/categories": {
|
|
148
|
+
ThrottlingError: true;
|
|
149
|
+
};
|
|
150
|
+
}) & (new (...args: any[]) => {
|
|
151
|
+
"@distilled.cloud/error/categories": {
|
|
152
|
+
RetryableError: true;
|
|
153
|
+
};
|
|
154
|
+
});
|
|
155
|
+
/** The request exceeds a rate limit. */
|
|
156
|
+
export declare class AcmeRateLimited extends /*@__PURE__*/ AcmeRateLimited_base {
|
|
157
|
+
}
|
|
158
|
+
declare const AcmeRejectedIdentifier_base: S.Class<AcmeRejectedIdentifier, S.TaggedStruct<"AcmeRejectedIdentifier", {
|
|
159
|
+
readonly code: any;
|
|
160
|
+
readonly message: any;
|
|
161
|
+
readonly type: any;
|
|
162
|
+
readonly detail: any;
|
|
163
|
+
}>, import("effect/Cause").YieldableError>;
|
|
164
|
+
/** The server will not issue certificates for the identifier. */
|
|
165
|
+
export declare class AcmeRejectedIdentifier extends /*@__PURE__*/ AcmeRejectedIdentifier_base {
|
|
166
|
+
}
|
|
167
|
+
declare const AcmeServerInternal_base: S.Class<AcmeServerInternal, S.TaggedStruct<"AcmeServerInternal", {
|
|
168
|
+
readonly code: any;
|
|
169
|
+
readonly message: any;
|
|
170
|
+
readonly type: any;
|
|
171
|
+
readonly detail: any;
|
|
172
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
173
|
+
"@distilled.cloud/error/categories": {
|
|
174
|
+
RetryableError: true;
|
|
175
|
+
};
|
|
176
|
+
});
|
|
177
|
+
/** The server experienced an internal error. */
|
|
178
|
+
export declare class AcmeServerInternal extends /*@__PURE__*/ AcmeServerInternal_base {
|
|
179
|
+
}
|
|
180
|
+
declare const AcmeTls_base: S.Class<AcmeTls, S.TaggedStruct<"AcmeTls", {
|
|
181
|
+
readonly code: any;
|
|
182
|
+
readonly message: any;
|
|
183
|
+
readonly type: any;
|
|
184
|
+
readonly detail: any;
|
|
185
|
+
}>, import("effect/Cause").YieldableError>;
|
|
186
|
+
/** The server received a TLS error during validation. */
|
|
187
|
+
export declare class AcmeTls extends /*@__PURE__*/ AcmeTls_base {
|
|
188
|
+
}
|
|
189
|
+
declare const AcmeUnauthorized_base: S.Class<AcmeUnauthorized, S.TaggedStruct<"AcmeUnauthorized", {
|
|
190
|
+
readonly code: any;
|
|
191
|
+
readonly message: any;
|
|
192
|
+
readonly type: any;
|
|
193
|
+
readonly detail: any;
|
|
194
|
+
}>, import("effect/Cause").YieldableError>;
|
|
195
|
+
/** The client lacks sufficient authorization. */
|
|
196
|
+
export declare class AcmeUnauthorized extends /*@__PURE__*/ AcmeUnauthorized_base {
|
|
197
|
+
}
|
|
198
|
+
declare const AcmeUnsupportedContact_base: S.Class<AcmeUnsupportedContact, S.TaggedStruct<"AcmeUnsupportedContact", {
|
|
199
|
+
readonly code: any;
|
|
200
|
+
readonly message: any;
|
|
201
|
+
readonly type: any;
|
|
202
|
+
readonly detail: any;
|
|
203
|
+
}>, import("effect/Cause").YieldableError>;
|
|
204
|
+
/** A contact URL for an account used an unsupported protocol scheme. */
|
|
205
|
+
export declare class AcmeUnsupportedContact extends /*@__PURE__*/ AcmeUnsupportedContact_base {
|
|
206
|
+
}
|
|
207
|
+
declare const AcmeUnsupportedIdentifier_base: S.Class<AcmeUnsupportedIdentifier, S.TaggedStruct<"AcmeUnsupportedIdentifier", {
|
|
208
|
+
readonly code: any;
|
|
209
|
+
readonly message: any;
|
|
210
|
+
readonly type: any;
|
|
211
|
+
readonly detail: any;
|
|
212
|
+
}>, import("effect/Cause").YieldableError>;
|
|
213
|
+
/** An identifier is of an unsupported type. */
|
|
214
|
+
export declare class AcmeUnsupportedIdentifier extends /*@__PURE__*/ AcmeUnsupportedIdentifier_base {
|
|
215
|
+
}
|
|
216
|
+
declare const AcmeUserActionRequired_base: S.Class<AcmeUserActionRequired, S.TaggedStruct<"AcmeUserActionRequired", {
|
|
217
|
+
readonly code: any;
|
|
218
|
+
readonly message: any;
|
|
219
|
+
readonly type: any;
|
|
220
|
+
readonly detail: any;
|
|
221
|
+
}>, import("effect/Cause").YieldableError>;
|
|
222
|
+
/** Visit the "instance" URL and take actions specified there. */
|
|
223
|
+
export declare class AcmeUserActionRequired extends /*@__PURE__*/ AcmeUserActionRequired_base {
|
|
224
|
+
}
|
|
225
|
+
export interface DeactivateAuthorizationRequest {
|
|
226
|
+
/** Absolute URL of the resource, as returned by the CA. */
|
|
227
|
+
url: string;
|
|
228
|
+
/** Always `deactivated`. */
|
|
229
|
+
status: string;
|
|
230
|
+
}
|
|
231
|
+
export declare const DeactivateAuthorizationRequest: S.Schema<DeactivateAuthorizationRequest>;
|
|
232
|
+
export interface Identifier {
|
|
233
|
+
/** The type of identifier. This document defines the "dns" identifier type. See the registry defined in Section 9.7.7 for any others. */
|
|
234
|
+
type: string;
|
|
235
|
+
/** The identifier itself. */
|
|
236
|
+
value: string;
|
|
237
|
+
}
|
|
238
|
+
export declare const Identifier: S.Schema<Identifier>;
|
|
239
|
+
export interface Subproblem {
|
|
240
|
+
/** The error type URI. */
|
|
241
|
+
type?: string;
|
|
242
|
+
/** A human-readable explanation. */
|
|
243
|
+
detail?: string;
|
|
244
|
+
/** The identifier this subproblem is about. */
|
|
245
|
+
identifier?: Identifier;
|
|
246
|
+
}
|
|
247
|
+
export declare const Subproblem: S.Schema<Subproblem>;
|
|
248
|
+
export type ProblemSubproblemsList = Array<Subproblem>;
|
|
249
|
+
export declare const ProblemSubproblemsList: S.Schema<ProblemSubproblemsList>;
|
|
250
|
+
/** RFC 7807 problem document (RFC 8555 §6.7). */
|
|
251
|
+
export interface Problem {
|
|
252
|
+
/** The error type URI, e.g. `urn:ietf:params:acme:error:malformed`. */
|
|
253
|
+
type?: string;
|
|
254
|
+
/** A human-readable explanation. */
|
|
255
|
+
detail?: string;
|
|
256
|
+
/** The HTTP status code. */
|
|
257
|
+
status?: number;
|
|
258
|
+
/** A URI reference identifying this occurrence. */
|
|
259
|
+
instance?: string;
|
|
260
|
+
/** The identifier the error relates to. */
|
|
261
|
+
identifier?: Identifier;
|
|
262
|
+
/** Errors for individual identifiers (RFC 8555 §6.7.1). */
|
|
263
|
+
subproblems?: ProblemSubproblemsList;
|
|
264
|
+
}
|
|
265
|
+
export declare const Problem: S.Schema<Problem>;
|
|
266
|
+
/** RFC 8555 §8 */
|
|
267
|
+
export interface Challenge {
|
|
268
|
+
/** The type of challenge encoded in the object. */
|
|
269
|
+
type: string;
|
|
270
|
+
/** The URL to which a response can be posted. */
|
|
271
|
+
url: string;
|
|
272
|
+
/** The status of this challenge. Possible values are "pending", "processing", "valid", and "invalid" (see Section 7.1.6). */
|
|
273
|
+
status: string;
|
|
274
|
+
/** The time at which the server validated this challenge, encoded in the format specified in [RFC3339]. This field is REQUIRED if the "status" field is "valid". */
|
|
275
|
+
validated?: string;
|
|
276
|
+
/** A random value that uniquely identifies the challenge. This value MUST have at least 128 bits of entropy. It MUST NOT contain any characters outside the base64url alphabet and MUST NOT include base64 padding characters ("="). See [RFC4086] for additional information on randomness requirements. */
|
|
277
|
+
token?: string;
|
|
278
|
+
/** Error that occurred while the server was validating the challenge, if any, structured as a problem document [RFC7807]. Multiple errors can be indicated by using subproblems Section 6.7.1. A challenge object with an error MUST have status equal to "invalid". */
|
|
279
|
+
error?: Problem;
|
|
280
|
+
}
|
|
281
|
+
export declare const Challenge: S.Schema<Challenge>;
|
|
282
|
+
export type AuthorizationChallengesList = Array<Challenge>;
|
|
283
|
+
export declare const AuthorizationChallengesList: S.Schema<AuthorizationChallengesList>;
|
|
284
|
+
/** RFC 8555 §7.1.4 */
|
|
285
|
+
export interface Authorization {
|
|
286
|
+
/** The identifier that the account is authorized to represent. */
|
|
287
|
+
identifier: Identifier;
|
|
288
|
+
/** The status of this authorization. Possible values are "pending", "valid", "invalid", "deactivated", "expired", and "revoked". See Section 7.1.6. */
|
|
289
|
+
status: string;
|
|
290
|
+
/** The timestamp after which the server will consider this authorization invalid, encoded in the format specified in [RFC3339]. This field is REQUIRED for objects with "valid" in the "status" field. */
|
|
291
|
+
expires?: string;
|
|
292
|
+
/** For pending authorizations, the challenges that the client can fulfill in order to prove possession of the identifier. For valid authorizations, the challenge that was validated. For invalid authorizations, the challenge that was attempted and failed. Each array entry is an object with parameters required to validate the challenge. A client should attempt to fulfill one of these challenges, and a server should consider any one of the challenges sufficient to make the authorization valid. */
|
|
293
|
+
challenges: AuthorizationChallengesList;
|
|
294
|
+
/** This field MUST be present and true for authorizations created as a result of a newOrder request containing a DNS identifier with a value that was a wildcard domain name. For other authorizations, it MUST be absent. Wildcard domain names are described in Section 7.1.3. */
|
|
295
|
+
wildcard?: boolean;
|
|
296
|
+
}
|
|
297
|
+
export declare const Authorization: S.Schema<Authorization>;
|
|
298
|
+
export interface DownloadCertificateRequest {
|
|
299
|
+
/** Absolute URL of the resource, as returned by the CA. */
|
|
300
|
+
url: string;
|
|
301
|
+
}
|
|
302
|
+
export declare const DownloadCertificateRequest: S.Schema<DownloadCertificateRequest>;
|
|
303
|
+
/** Alternate chain URLs from `Link: <url>;rel="alternate"` headers. */
|
|
304
|
+
export type CertificateChainAlternatesList = Array<string>;
|
|
305
|
+
export declare const CertificateChainAlternatesList: S.Schema<CertificateChainAlternatesList>;
|
|
306
|
+
export interface CertificateChain {
|
|
307
|
+
/** PEM certificate chain (`application/pem-certificate-chain`), leaf first. */
|
|
308
|
+
chain: string;
|
|
309
|
+
/** Alternate chain URLs from `Link: <url>;rel="alternate"` headers. */
|
|
310
|
+
alternates?: CertificateChainAlternatesList;
|
|
311
|
+
}
|
|
312
|
+
export declare const CertificateChain: S.Schema<CertificateChain>;
|
|
313
|
+
export interface FinalizeOrderRequest {
|
|
314
|
+
/** Absolute URL of the resource, as returned by the CA. */
|
|
315
|
+
url: string;
|
|
316
|
+
/** A CSR encoding the parameters for the certificate being requested [RFC2986]. The CSR is sent in the base64url-encoded version of the DER format. (Note: Because this field uses base64url, and does not include headers, it is different from PEM.) */
|
|
317
|
+
csr: string;
|
|
318
|
+
}
|
|
319
|
+
export declare const FinalizeOrderRequest: S.Schema<FinalizeOrderRequest>;
|
|
320
|
+
export type OrderResponseIdentifiersList = Array<Identifier>;
|
|
321
|
+
export declare const OrderResponseIdentifiersList: S.Schema<OrderResponseIdentifiersList>;
|
|
322
|
+
export type OrderResponseAuthorizationsList = Array<string>;
|
|
323
|
+
export declare const OrderResponseAuthorizationsList: S.Schema<OrderResponseAuthorizationsList>;
|
|
324
|
+
/** RFC 8555 §7.1.3, plus the `Location` header as `location`. */
|
|
325
|
+
export interface OrderResponse {
|
|
326
|
+
/** The status of this order. Possible values are "pending", "ready", "processing", "valid", and "invalid". See Section 7.1.6. */
|
|
327
|
+
status: string;
|
|
328
|
+
/** The timestamp after which the server will consider this order invalid, encoded in the format specified in [RFC3339]. This field is REQUIRED for objects with "pending" or "valid" in the status field. */
|
|
329
|
+
expires?: string;
|
|
330
|
+
/** An array of identifier objects that the order pertains to. */
|
|
331
|
+
identifiers: OrderResponseIdentifiersList;
|
|
332
|
+
/** The requested value of the notBefore field in the certificate, in the date format defined in [RFC3339]. */
|
|
333
|
+
notBefore?: string;
|
|
334
|
+
/** The requested value of the notAfter field in the certificate, in the date format defined in [RFC3339]. */
|
|
335
|
+
notAfter?: string;
|
|
336
|
+
/** The error that occurred while processing the order, if any. This field is structured as a problem document [RFC7807]. */
|
|
337
|
+
error?: Problem;
|
|
338
|
+
/** For pending orders, the authorizations that the client needs to complete before the requested certificate can be issued (see Section 7.5), including unexpired authorizations that the client has completed in the past for identifiers specified in the order. The authorizations required are dictated by server policy; there may not be a 1:1 relationship between the order identifiers and the authorizations required. For final orders (in the "valid" or "invalid" state), the authorizations that were completed. Each entry is a URL from which an authorization can be fetched with a POST-as-GET request. */
|
|
339
|
+
authorizations: OrderResponseAuthorizationsList;
|
|
340
|
+
/** A URL that a CSR must be POSTed to once all of the order's authorizations are satisfied to finalize the order. The result of a successful finalization will be the population of the certificate URL for the order. */
|
|
341
|
+
finalize: string;
|
|
342
|
+
/** A URL for the certificate that has been issued in response to this order. */
|
|
343
|
+
certificate?: string;
|
|
344
|
+
/** The order URL (`Location` header). */
|
|
345
|
+
location?: string;
|
|
346
|
+
}
|
|
347
|
+
export declare const OrderResponse: S.Schema<OrderResponse>;
|
|
348
|
+
export interface GetAuthorizationRequest {
|
|
349
|
+
/** Absolute URL of the resource, as returned by the CA. */
|
|
350
|
+
url: string;
|
|
351
|
+
}
|
|
352
|
+
export declare const GetAuthorizationRequest: S.Schema<GetAuthorizationRequest>;
|
|
353
|
+
export interface GetDirectoryRequest {
|
|
354
|
+
}
|
|
355
|
+
export declare const GetDirectoryRequest: S.Schema<GetDirectoryRequest>;
|
|
356
|
+
export type DirectoryMetaCaaIdentitiesList = Array<string>;
|
|
357
|
+
export declare const DirectoryMetaCaaIdentitiesList: S.Schema<DirectoryMetaCaaIdentitiesList>;
|
|
358
|
+
export interface DirectoryMeta {
|
|
359
|
+
/** A URL identifying the current terms of service. */
|
|
360
|
+
termsOfService?: string;
|
|
361
|
+
/** An HTTP or HTTPS URL locating a website providing more information about the ACME server. */
|
|
362
|
+
website?: string;
|
|
363
|
+
/** The hostnames that the ACME server recognizes as referring to itself for the purposes of CAA record validation as defined in [RFC6844]. Each string MUST represent the same sequence of ASCII code points that the server will expect to see as the "Issuer Domain Name" in a CAA issue or issuewild property tag. This allows clients to determine the correct issuer domain name to use when configuring CAA records. */
|
|
364
|
+
caaIdentities?: DirectoryMetaCaaIdentitiesList;
|
|
365
|
+
/** If this field is present and set to "true", then the CA requires that all newAccount requests include an "externalAccountBinding" field associating the new account with an external account. */
|
|
366
|
+
externalAccountRequired?: boolean;
|
|
367
|
+
}
|
|
368
|
+
export declare const DirectoryMeta: S.Schema<DirectoryMeta>;
|
|
369
|
+
/** RFC 8555 §7.1.1 */
|
|
370
|
+
export interface Directory {
|
|
371
|
+
/** URL of the new nonce resource. */
|
|
372
|
+
newNonce: string;
|
|
373
|
+
/** URL of the new account resource. */
|
|
374
|
+
newAccount: string;
|
|
375
|
+
/** URL of the new order resource. */
|
|
376
|
+
newOrder: string;
|
|
377
|
+
/** URL of the new authorization resource. */
|
|
378
|
+
newAuthz?: string;
|
|
379
|
+
/** URL of the revoke certificate resource. */
|
|
380
|
+
revokeCert: string;
|
|
381
|
+
/** URL of the key change resource. */
|
|
382
|
+
keyChange?: string;
|
|
383
|
+
/** Metadata relating to the service provided by the ACME server. */
|
|
384
|
+
meta?: DirectoryMeta;
|
|
385
|
+
}
|
|
386
|
+
export declare const Directory: S.Schema<Directory>;
|
|
387
|
+
export interface GetOrderRequest {
|
|
388
|
+
/** Absolute URL of the resource, as returned by the CA. */
|
|
389
|
+
url: string;
|
|
390
|
+
}
|
|
391
|
+
export declare const GetOrderRequest: S.Schema<GetOrderRequest>;
|
|
392
|
+
export type NewAccountRequestContactList = Array<string>;
|
|
393
|
+
export declare const NewAccountRequestContactList: S.Schema<NewAccountRequestContactList>;
|
|
394
|
+
/** A JWS binding this account to an existing CA account (RFC 8555 §7.3.4). The protocol builds it from the credentials' EAB key id and HMAC key. */
|
|
395
|
+
export interface ExternalAccountBinding {
|
|
396
|
+
protected: string;
|
|
397
|
+
payload: string;
|
|
398
|
+
signature: string;
|
|
399
|
+
}
|
|
400
|
+
export declare const ExternalAccountBinding: S.Schema<ExternalAccountBinding>;
|
|
401
|
+
export interface NewAccountRequest {
|
|
402
|
+
/** Same meaning as the corresponding server field defined in Section 7.1.2. */
|
|
403
|
+
contact?: NewAccountRequestContactList;
|
|
404
|
+
/** Same meaning as the corresponding server field defined in Section 7.1.2. */
|
|
405
|
+
termsOfServiceAgreed?: boolean;
|
|
406
|
+
/** If this field is present with the value "true", then the server MUST NOT create a new account if one does not already exist. This allows a client to look up an account URL based on an account key (see Section 7.3.1). */
|
|
407
|
+
onlyReturnExisting?: boolean;
|
|
408
|
+
/** Same meaning as the corresponding server field defined in Section 7.1.2 */
|
|
409
|
+
externalAccountBinding?: ExternalAccountBinding;
|
|
410
|
+
}
|
|
411
|
+
export declare const NewAccountRequest: S.Schema<NewAccountRequest>;
|
|
412
|
+
export type AccountResponseContactList = Array<string>;
|
|
413
|
+
export declare const AccountResponseContactList: S.Schema<AccountResponseContactList>;
|
|
414
|
+
/** RFC 8555 §7.1.2, plus the `Location` header as `location`. */
|
|
415
|
+
export interface AccountResponse {
|
|
416
|
+
/** The status of this account. Possible values are "valid", "deactivated", and "revoked". The value "deactivated" should be used to indicate client-initiated deactivation whereas "revoked" should be used to indicate server- initiated deactivation. See Section 7.1.6. */
|
|
417
|
+
status: string;
|
|
418
|
+
/** An array of URLs that the server can use to contact the client for issues related to this account. For example, the server may wish to notify the client about server-initiated revocation or certificate expiration. For information on supported URL schemes, see Section 7.3. */
|
|
419
|
+
contact?: AccountResponseContactList;
|
|
420
|
+
/** Including this field in a newAccount request, with a value of true, indicates the client's agreement with the terms of service. This field cannot be updated by the client. */
|
|
421
|
+
termsOfServiceAgreed?: boolean;
|
|
422
|
+
/** A URL from which a list of orders submitted by this account can be fetched via a POST-as-GET request, as described in Section 7.1.2.1. */
|
|
423
|
+
orders?: string;
|
|
424
|
+
/** The account URL (`Location` header); the `kid` for every later request. */
|
|
425
|
+
location?: string;
|
|
426
|
+
}
|
|
427
|
+
export declare const AccountResponse: S.Schema<AccountResponse>;
|
|
428
|
+
export interface NewNonceRequest {
|
|
429
|
+
}
|
|
430
|
+
export declare const NewNonceRequest: S.Schema<NewNonceRequest>;
|
|
431
|
+
export interface NonceResponse {
|
|
432
|
+
/** The `Replay-Nonce` header. */
|
|
433
|
+
replayNonce: string;
|
|
434
|
+
}
|
|
435
|
+
export declare const NonceResponse: S.Schema<NonceResponse>;
|
|
436
|
+
export type NewOrderRequestIdentifiersList = Array<Identifier>;
|
|
437
|
+
export declare const NewOrderRequestIdentifiersList: S.Schema<NewOrderRequestIdentifiersList>;
|
|
438
|
+
export interface NewOrderRequest {
|
|
439
|
+
/** An array of identifier objects that the client wishes to submit an order for. */
|
|
440
|
+
identifiers: NewOrderRequestIdentifiersList;
|
|
441
|
+
/** The requested value of the notBefore field in the certificate, in the date format defined in [RFC3339]. */
|
|
442
|
+
notBefore?: string;
|
|
443
|
+
/** The requested value of the notAfter field in the certificate, in the date format defined in [RFC3339]. */
|
|
444
|
+
notAfter?: string;
|
|
445
|
+
}
|
|
446
|
+
export declare const NewOrderRequest: S.Schema<NewOrderRequest>;
|
|
447
|
+
export interface RespondChallengeRequest {
|
|
448
|
+
/** Absolute URL of the resource, as returned by the CA. */
|
|
449
|
+
url: string;
|
|
450
|
+
}
|
|
451
|
+
export declare const RespondChallengeRequest: S.Schema<RespondChallengeRequest>;
|
|
452
|
+
export interface RevokeCertificateRequest {
|
|
453
|
+
/** The certificate to be revoked, in the base64url-encoded version of the DER format. (Note: Because this field uses base64url, and does not include headers, it is different from PEM.) */
|
|
454
|
+
certificate: string;
|
|
455
|
+
/** One of the revocation reasonCodes defined in Section 5.3.1 of [RFC5280] to be used when generating OCSP responses and CRLs. If this field is not set, the server SHOULD omit the reasonCode CRL entry extension when generating OCSP responses and CRLs. The server MAY disallow a subset of reasonCodes from being used by the user. If a request contains a disallowed reasonCode, then the server MUST reject it with the error type "urn:ietf:params:acme:error:badRevocationReason". The problem document detail SHOULD indicate which reasonCodes are allowed. */
|
|
456
|
+
reason?: number;
|
|
457
|
+
}
|
|
458
|
+
export declare const RevokeCertificateRequest: S.Schema<RevokeCertificateRequest>;
|
|
459
|
+
export interface RevokeCertificateResponse {
|
|
460
|
+
}
|
|
461
|
+
export declare const RevokeCertificateResponse: S.Schema<RevokeCertificateResponse>;
|
|
462
|
+
export type UpdateAccountRequestContactList = Array<string>;
|
|
463
|
+
export declare const UpdateAccountRequestContactList: S.Schema<UpdateAccountRequestContactList>;
|
|
464
|
+
export interface UpdateAccountRequest {
|
|
465
|
+
/** Absolute URL of the resource, as returned by the CA. */
|
|
466
|
+
url: string;
|
|
467
|
+
/** An array of URLs that the server can use to contact the client for issues related to this account. For example, the server may wish to notify the client about server-initiated revocation or certificate expiration. For information on supported URL schemes, see Section 7.3. */
|
|
468
|
+
contact?: UpdateAccountRequestContactList;
|
|
469
|
+
/** `deactivated` to deactivate the account (RFC 8555 §7.3.6). */
|
|
470
|
+
status?: string;
|
|
471
|
+
}
|
|
472
|
+
export declare const UpdateAccountRequest: S.Schema<UpdateAccountRequest>;
|
|
473
|
+
export type DeactivateAuthorizationError = AcmeAccountDoesNotExist | AcmeBadNonce | AcmeMalformed | AcmeRateLimited | AcmeServerInternal | AcmeUnauthorized | AcmeOpError;
|
|
474
|
+
/** Deactivate the authorization at `url` */
|
|
475
|
+
export declare const deactivateAuthorization: API.OperationMethod<DeactivateAuthorizationRequest, Authorization, DeactivateAuthorizationError, AcmeOpContext>;
|
|
476
|
+
export type DownloadCertificateError = AcmeAccountDoesNotExist | AcmeBadNonce | AcmeMalformed | AcmeRateLimited | AcmeServerInternal | AcmeUnauthorized | AcmeOpError;
|
|
477
|
+
/** Download the PEM certificate chain at `url` (POST-as-GET) */
|
|
478
|
+
export declare const downloadCertificate: API.OperationMethod<DownloadCertificateRequest, CertificateChain, DownloadCertificateError, AcmeOpContext>;
|
|
479
|
+
export type FinalizeOrderError = AcmeAccountDoesNotExist | AcmeBadCsr | AcmeBadNonce | AcmeMalformed | AcmeOrderNotReady | AcmeRateLimited | AcmeServerInternal | AcmeUnauthorized | AcmeOpError;
|
|
480
|
+
/** Submit the CSR to the order's finalize URL */
|
|
481
|
+
export declare const finalizeOrder: API.OperationMethod<FinalizeOrderRequest, OrderResponse, FinalizeOrderError, AcmeOpContext>;
|
|
482
|
+
export type GetAuthorizationError = AcmeAccountDoesNotExist | AcmeBadNonce | AcmeMalformed | AcmeRateLimited | AcmeServerInternal | AcmeUnauthorized | AcmeOpError;
|
|
483
|
+
/** Fetch the authorization at `url` (POST-as-GET) */
|
|
484
|
+
export declare const getAuthorization: API.OperationMethod<GetAuthorizationRequest, Authorization, GetAuthorizationError, AcmeOpContext>;
|
|
485
|
+
export type GetDirectoryError = AcmeOpError;
|
|
486
|
+
/** Fetch the CA's directory of resource URLs */
|
|
487
|
+
export declare const getDirectory: API.OperationMethod<GetDirectoryRequest, Directory, GetDirectoryError, AcmeOpContext>;
|
|
488
|
+
export type GetOrderError = AcmeAccountDoesNotExist | AcmeBadNonce | AcmeMalformed | AcmeRateLimited | AcmeServerInternal | AcmeUnauthorized | AcmeOpError;
|
|
489
|
+
/** Fetch the order at `url` (POST-as-GET) */
|
|
490
|
+
export declare const getOrder: API.OperationMethod<GetOrderRequest, OrderResponse, GetOrderError, AcmeOpContext>;
|
|
491
|
+
export type NewAccountError = AcmeAccountDoesNotExist | AcmeBadNonce | AcmeBadPublicKey | AcmeBadSignatureAlgorithm | AcmeExternalAccountRequired | AcmeInvalidContact | AcmeMalformed | AcmeRateLimited | AcmeServerInternal | AcmeUnauthorized | AcmeUnsupportedContact | AcmeUserActionRequired | AcmeOpError;
|
|
492
|
+
/** Create an account, or find the existing account for this key */
|
|
493
|
+
export declare const newAccount: API.OperationMethod<NewAccountRequest, AccountResponse, NewAccountError, AcmeOpContext>;
|
|
494
|
+
export type NewNonceError = AcmeOpError;
|
|
495
|
+
/** Get a fresh anti-replay nonce (the `Replay-Nonce` header) */
|
|
496
|
+
export declare const newNonce: API.OperationMethod<NewNonceRequest, NonceResponse, NewNonceError, AcmeOpContext>;
|
|
497
|
+
export type NewOrderError = AcmeAccountDoesNotExist | AcmeBadNonce | AcmeMalformed | AcmeRateLimited | AcmeRejectedIdentifier | AcmeServerInternal | AcmeUnauthorized | AcmeUnsupportedIdentifier | AcmeUserActionRequired | AcmeOpError;
|
|
498
|
+
/** Create an order for a set of identifiers */
|
|
499
|
+
export declare const newOrder: API.OperationMethod<NewOrderRequest, OrderResponse, NewOrderError, AcmeOpContext>;
|
|
500
|
+
export type RespondChallengeError = AcmeAccountDoesNotExist | AcmeBadNonce | AcmeCaa | AcmeConnection | AcmeDns | AcmeIncorrectResponse | AcmeMalformed | AcmeRateLimited | AcmeServerInternal | AcmeTls | AcmeUnauthorized | AcmeOpError;
|
|
501
|
+
/** Tell the CA the challenge at `url` is ready to be validated */
|
|
502
|
+
export declare const respondChallenge: API.OperationMethod<RespondChallengeRequest, Challenge, RespondChallengeError, AcmeOpContext>;
|
|
503
|
+
export type RevokeCertificateError = AcmeAccountDoesNotExist | AcmeAlreadyRevoked | AcmeBadNonce | AcmeBadRevocationReason | AcmeMalformed | AcmeRateLimited | AcmeServerInternal | AcmeUnauthorized | AcmeOpError;
|
|
504
|
+
/** Revoke a certificate */
|
|
505
|
+
export declare const revokeCertificate: API.OperationMethod<RevokeCertificateRequest, RevokeCertificateResponse, RevokeCertificateError, AcmeOpContext>;
|
|
506
|
+
export type UpdateAccountError = AcmeAccountDoesNotExist | AcmeBadNonce | AcmeInvalidContact | AcmeMalformed | AcmeRateLimited | AcmeServerInternal | AcmeUnauthorized | AcmeUnsupportedContact | AcmeOpError;
|
|
507
|
+
/** Update (or deactivate) the account at `url` */
|
|
508
|
+
export declare const updateAccount: API.OperationMethod<UpdateAccountRequest, AccountResponse, UpdateAccountError, AcmeOpContext>;
|
|
509
|
+
//# sourceMappingURL=acme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acme.d.ts","sourceRoot":"","sources":["../../src/services/acme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAGjD,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAClD,OAAO,EAAgB,KAAK,WAAW,EAAE,K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