@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,539 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import * as C from "@distilled.cloud/core/category";
|
|
3
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs/acme.json (from RFC 8555). Do not edit.
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
5
|
+
import { AcmeProtocol } from "../protocol.js";
|
|
6
|
+
import * as Retry from "../retry.js";
|
|
7
|
+
import * as T from "../traits.js";
|
|
8
|
+
/** The request specified an account that does not exist. */
|
|
9
|
+
export class AcmeAccountDoesNotExist extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
10
|
+
/*@__PURE__*/ S.TaggedError()("AcmeAccountDoesNotExist", {
|
|
11
|
+
code: S.Number,
|
|
12
|
+
message: S.String,
|
|
13
|
+
type: S.String,
|
|
14
|
+
detail: S.optional(S.String),
|
|
15
|
+
}), [{ message: { matches: "^urn:ietf:params:acme:error:accountDoesNotExist$" } }]) {
|
|
16
|
+
}
|
|
17
|
+
/** The request specified a certificate to be revoked that has already been revoked. */
|
|
18
|
+
export class AcmeAlreadyRevoked extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
19
|
+
/*@__PURE__*/ S.TaggedError()("AcmeAlreadyRevoked", {
|
|
20
|
+
code: S.Number,
|
|
21
|
+
message: S.String,
|
|
22
|
+
type: S.String,
|
|
23
|
+
detail: S.optional(S.String),
|
|
24
|
+
}), [{ message: { matches: "^urn:ietf:params:acme:error:alreadyRevoked$" } }]) {
|
|
25
|
+
}
|
|
26
|
+
/** The CSR is unacceptable (e.g., due to a short key). */
|
|
27
|
+
export class AcmeBadCsr extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
28
|
+
/*@__PURE__*/ S.TaggedError()("AcmeBadCsr", {
|
|
29
|
+
code: S.Number,
|
|
30
|
+
message: S.String,
|
|
31
|
+
type: S.String,
|
|
32
|
+
detail: S.optional(S.String),
|
|
33
|
+
}), [{ message: { matches: "^urn:ietf:params:acme:error:badCSR$" } }]) {
|
|
34
|
+
}
|
|
35
|
+
/** The client sent an unacceptable anti-replay nonce. */
|
|
36
|
+
export class AcmeBadNonce extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
37
|
+
/*@__PURE__*/ S.TaggedError()("AcmeBadNonce", {
|
|
38
|
+
code: S.Number,
|
|
39
|
+
message: S.String,
|
|
40
|
+
type: S.String,
|
|
41
|
+
detail: S.optional(S.String),
|
|
42
|
+
}), [{ message: { matches: "^urn:ietf:params:acme:error:badNonce$" } }]) {
|
|
43
|
+
}
|
|
44
|
+
/** The JWS was signed by a public key the server does not support. */
|
|
45
|
+
export class AcmeBadPublicKey extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
46
|
+
/*@__PURE__*/ S.TaggedError()("AcmeBadPublicKey", {
|
|
47
|
+
code: S.Number,
|
|
48
|
+
message: S.String,
|
|
49
|
+
type: S.String,
|
|
50
|
+
detail: S.optional(S.String),
|
|
51
|
+
}), [{ message: { matches: "^urn:ietf:params:acme:error:badPublicKey$" } }]) {
|
|
52
|
+
}
|
|
53
|
+
/** The revocation reason provided is not allowed by the server. */
|
|
54
|
+
export class AcmeBadRevocationReason extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
55
|
+
/*@__PURE__*/ S.TaggedError()("AcmeBadRevocationReason", {
|
|
56
|
+
code: S.Number,
|
|
57
|
+
message: S.String,
|
|
58
|
+
type: S.String,
|
|
59
|
+
detail: S.optional(S.String),
|
|
60
|
+
}), [{ message: { matches: "^urn:ietf:params:acme:error:badRevocationReason$" } }]) {
|
|
61
|
+
}
|
|
62
|
+
/** The JWS was signed with an algorithm the server does not support. */
|
|
63
|
+
export class AcmeBadSignatureAlgorithm extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
64
|
+
/*@__PURE__*/ S.TaggedError()("AcmeBadSignatureAlgorithm", {
|
|
65
|
+
code: S.Number,
|
|
66
|
+
message: S.String,
|
|
67
|
+
type: S.String,
|
|
68
|
+
detail: S.optional(S.String),
|
|
69
|
+
}), [{ message: { matches: "^urn:ietf:params:acme:error:badSignatureAlgorithm$" } }]) {
|
|
70
|
+
}
|
|
71
|
+
/** Certification Authority Authorization (CAA) records forbid the CA from issuing a certificate. */
|
|
72
|
+
export class AcmeCaa extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
73
|
+
/*@__PURE__*/ S.TaggedError()("AcmeCaa", {
|
|
74
|
+
code: S.Number,
|
|
75
|
+
message: S.String,
|
|
76
|
+
type: S.String,
|
|
77
|
+
detail: S.optional(S.String),
|
|
78
|
+
}), [{ message: { matches: "^urn:ietf:params:acme:error:caa$" } }]) {
|
|
79
|
+
}
|
|
80
|
+
/** The server could not connect to validation target. */
|
|
81
|
+
export class AcmeConnection extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
82
|
+
/*@__PURE__*/ S.TaggedError()("AcmeConnection", {
|
|
83
|
+
code: S.Number,
|
|
84
|
+
message: S.String,
|
|
85
|
+
type: S.String,
|
|
86
|
+
detail: S.optional(S.String),
|
|
87
|
+
}), [{ message: { matches: "^urn:ietf:params:acme:error:connection$" } }]) {
|
|
88
|
+
}
|
|
89
|
+
/** There was a problem with a DNS query during identifier validation. */
|
|
90
|
+
export class AcmeDns extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
91
|
+
/*@__PURE__*/ S.TaggedError()("AcmeDns", {
|
|
92
|
+
code: S.Number,
|
|
93
|
+
message: S.String,
|
|
94
|
+
type: S.String,
|
|
95
|
+
detail: S.optional(S.String),
|
|
96
|
+
}), [{ message: { matches: "^urn:ietf:params:acme:error:dns$" } }]) {
|
|
97
|
+
}
|
|
98
|
+
/** The request must include a value for the "externalAccountBinding" field. */
|
|
99
|
+
export class AcmeExternalAccountRequired extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
100
|
+
/*@__PURE__*/ S.TaggedError()("AcmeExternalAccountRequired", {
|
|
101
|
+
code: S.Number,
|
|
102
|
+
message: S.String,
|
|
103
|
+
type: S.String,
|
|
104
|
+
detail: S.optional(S.String),
|
|
105
|
+
}), [{ message: { matches: "^urn:ietf:params:acme:error:externalAccountRequired$" } }]) {
|
|
106
|
+
}
|
|
107
|
+
/** Response received didn't match the challenge's requirements. */
|
|
108
|
+
export class AcmeIncorrectResponse extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
109
|
+
/*@__PURE__*/ S.TaggedError()("AcmeIncorrectResponse", {
|
|
110
|
+
code: S.Number,
|
|
111
|
+
message: S.String,
|
|
112
|
+
type: S.String,
|
|
113
|
+
detail: S.optional(S.String),
|
|
114
|
+
}), [{ message: { matches: "^urn:ietf:params:acme:error:incorrectResponse$" } }]) {
|
|
115
|
+
}
|
|
116
|
+
/** A contact URL for an account was invalid. */
|
|
117
|
+
export class AcmeInvalidContact extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
118
|
+
/*@__PURE__*/ S.TaggedError()("AcmeInvalidContact", {
|
|
119
|
+
code: S.Number,
|
|
120
|
+
message: S.String,
|
|
121
|
+
type: S.String,
|
|
122
|
+
detail: S.optional(S.String),
|
|
123
|
+
}), [{ message: { matches: "^urn:ietf:params:acme:error:invalidContact$" } }]) {
|
|
124
|
+
}
|
|
125
|
+
/** The request message was malformed. */
|
|
126
|
+
export class AcmeMalformed extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
127
|
+
/*@__PURE__*/ S.TaggedError()("AcmeMalformed", {
|
|
128
|
+
code: S.Number,
|
|
129
|
+
message: S.String,
|
|
130
|
+
type: S.String,
|
|
131
|
+
detail: S.optional(S.String),
|
|
132
|
+
}), [{ message: { matches: "^urn:ietf:params:acme:error:malformed$" } }]) {
|
|
133
|
+
}
|
|
134
|
+
/** The request attempted to finalize an order that is not ready to be finalized. */
|
|
135
|
+
export class AcmeOrderNotReady extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
136
|
+
/*@__PURE__*/ S.TaggedError()("AcmeOrderNotReady", {
|
|
137
|
+
code: S.Number,
|
|
138
|
+
message: S.String,
|
|
139
|
+
type: S.String,
|
|
140
|
+
detail: S.optional(S.String),
|
|
141
|
+
}), [{ message: { matches: "^urn:ietf:params:acme:error:orderNotReady$" } }]) {
|
|
142
|
+
}
|
|
143
|
+
/** The request exceeds a rate limit. */
|
|
144
|
+
export class AcmeRateLimited extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
145
|
+
/*@__PURE__*/ S.TaggedError()("AcmeRateLimited", {
|
|
146
|
+
retryAfter: S.optional(S.Duration),
|
|
147
|
+
code: S.Number,
|
|
148
|
+
message: S.String,
|
|
149
|
+
type: S.String,
|
|
150
|
+
detail: S.optional(S.String),
|
|
151
|
+
}).pipe(C.withThrottlingError, C.withRetryableError), [{ message: { matches: "^urn:ietf:params:acme:error:rateLimited$" } }]) {
|
|
152
|
+
}
|
|
153
|
+
/** The server will not issue certificates for the identifier. */
|
|
154
|
+
export class AcmeRejectedIdentifier extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
155
|
+
/*@__PURE__*/ S.TaggedError()("AcmeRejectedIdentifier", {
|
|
156
|
+
code: S.Number,
|
|
157
|
+
message: S.String,
|
|
158
|
+
type: S.String,
|
|
159
|
+
detail: S.optional(S.String),
|
|
160
|
+
}), [{ message: { matches: "^urn:ietf:params:acme:error:rejectedIdentifier$" } }]) {
|
|
161
|
+
}
|
|
162
|
+
/** The server experienced an internal error. */
|
|
163
|
+
export class AcmeServerInternal extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
164
|
+
/*@__PURE__*/ S.TaggedError()("AcmeServerInternal", {
|
|
165
|
+
code: S.Number,
|
|
166
|
+
message: S.String,
|
|
167
|
+
type: S.String,
|
|
168
|
+
detail: S.optional(S.String),
|
|
169
|
+
}).pipe(C.withRetryableError), [{ message: { matches: "^urn:ietf:params:acme:error:serverInternal$" } }]) {
|
|
170
|
+
}
|
|
171
|
+
/** The server received a TLS error during validation. */
|
|
172
|
+
export class AcmeTls extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
173
|
+
/*@__PURE__*/ S.TaggedError()("AcmeTls", {
|
|
174
|
+
code: S.Number,
|
|
175
|
+
message: S.String,
|
|
176
|
+
type: S.String,
|
|
177
|
+
detail: S.optional(S.String),
|
|
178
|
+
}), [{ message: { matches: "^urn:ietf:params:acme:error:tls$" } }]) {
|
|
179
|
+
}
|
|
180
|
+
/** The client lacks sufficient authorization. */
|
|
181
|
+
export class AcmeUnauthorized extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
182
|
+
/*@__PURE__*/ S.TaggedError()("AcmeUnauthorized", {
|
|
183
|
+
code: S.Number,
|
|
184
|
+
message: S.String,
|
|
185
|
+
type: S.String,
|
|
186
|
+
detail: S.optional(S.String),
|
|
187
|
+
}), [{ message: { matches: "^urn:ietf:params:acme:error:unauthorized$" } }]) {
|
|
188
|
+
}
|
|
189
|
+
/** A contact URL for an account used an unsupported protocol scheme. */
|
|
190
|
+
export class AcmeUnsupportedContact extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
191
|
+
/*@__PURE__*/ S.TaggedError()("AcmeUnsupportedContact", {
|
|
192
|
+
code: S.Number,
|
|
193
|
+
message: S.String,
|
|
194
|
+
type: S.String,
|
|
195
|
+
detail: S.optional(S.String),
|
|
196
|
+
}), [{ message: { matches: "^urn:ietf:params:acme:error:unsupportedContact$" } }]) {
|
|
197
|
+
}
|
|
198
|
+
/** An identifier is of an unsupported type. */
|
|
199
|
+
export class AcmeUnsupportedIdentifier extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
200
|
+
/*@__PURE__*/ S.TaggedError()("AcmeUnsupportedIdentifier", {
|
|
201
|
+
code: S.Number,
|
|
202
|
+
message: S.String,
|
|
203
|
+
type: S.String,
|
|
204
|
+
detail: S.optional(S.String),
|
|
205
|
+
}), [{ message: { matches: "^urn:ietf:params:acme:error:unsupportedIdentifier$" } }]) {
|
|
206
|
+
}
|
|
207
|
+
/** Visit the "instance" URL and take actions specified there. */
|
|
208
|
+
export class AcmeUserActionRequired extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
209
|
+
/*@__PURE__*/ S.TaggedError()("AcmeUserActionRequired", {
|
|
210
|
+
code: S.Number,
|
|
211
|
+
message: S.String,
|
|
212
|
+
type: S.String,
|
|
213
|
+
detail: S.optional(S.String),
|
|
214
|
+
}), [{ message: { matches: "^urn:ietf:params:acme:error:userActionRequired$" } }]) {
|
|
215
|
+
}
|
|
216
|
+
export const DeactivateAuthorizationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
217
|
+
url: S.String.pipe(T.Label()),
|
|
218
|
+
status: S.String,
|
|
219
|
+
}).pipe(T.Http({ method: "POST", uri: "/authz/{url}/deactivate", code: 200 }))).annotate({
|
|
220
|
+
identifier: "DeactivateAuthorizationRequest",
|
|
221
|
+
});
|
|
222
|
+
export const Identifier = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
223
|
+
type: S.String,
|
|
224
|
+
value: S.String,
|
|
225
|
+
})).annotate({ identifier: "Identifier" });
|
|
226
|
+
export const Subproblem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
227
|
+
type: S.optional(S.String),
|
|
228
|
+
detail: S.optional(S.String),
|
|
229
|
+
identifier: S.optional(Identifier),
|
|
230
|
+
})).annotate({ identifier: "Subproblem" });
|
|
231
|
+
export const ProblemSubproblemsList = /*@__PURE__*/ S.Array(Subproblem);
|
|
232
|
+
export const Problem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
233
|
+
type: S.optional(S.String),
|
|
234
|
+
detail: S.optional(S.String),
|
|
235
|
+
status: S.optional(S.Number),
|
|
236
|
+
instance: S.optional(S.String),
|
|
237
|
+
identifier: S.optional(Identifier),
|
|
238
|
+
subproblems: S.optional(ProblemSubproblemsList),
|
|
239
|
+
})).annotate({ identifier: "Problem" });
|
|
240
|
+
export const Challenge = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
241
|
+
type: S.String,
|
|
242
|
+
url: S.String,
|
|
243
|
+
status: S.String,
|
|
244
|
+
validated: S.optional(S.String),
|
|
245
|
+
token: S.optional(S.String),
|
|
246
|
+
error: S.optional(Problem),
|
|
247
|
+
})).annotate({ identifier: "Challenge" });
|
|
248
|
+
export const AuthorizationChallengesList = /*@__PURE__*/ S.Array(Challenge);
|
|
249
|
+
export const Authorization = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
250
|
+
identifier: Identifier,
|
|
251
|
+
status: S.String,
|
|
252
|
+
expires: S.optional(S.String),
|
|
253
|
+
challenges: AuthorizationChallengesList,
|
|
254
|
+
wildcard: S.optional(S.Boolean),
|
|
255
|
+
})).annotate({ identifier: "Authorization" });
|
|
256
|
+
export const DownloadCertificateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
257
|
+
url: S.String.pipe(T.Label()),
|
|
258
|
+
}).pipe(T.Http({ method: "POST", uri: "/cert/{url}", code: 200 }))).annotate({
|
|
259
|
+
identifier: "DownloadCertificateRequest",
|
|
260
|
+
});
|
|
261
|
+
export const CertificateChainAlternatesList = /*@__PURE__*/ S.Array(S.String);
|
|
262
|
+
export const CertificateChain = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
263
|
+
chain: S.String,
|
|
264
|
+
alternates: S.optional(CertificateChainAlternatesList),
|
|
265
|
+
})).annotate({ identifier: "CertificateChain" });
|
|
266
|
+
export const FinalizeOrderRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
267
|
+
url: S.String.pipe(T.Label()),
|
|
268
|
+
csr: S.String,
|
|
269
|
+
}).pipe(T.Http({ method: "POST", uri: "/finalize/{url}", code: 200 }))).annotate({ identifier: "FinalizeOrderRequest" });
|
|
270
|
+
export const OrderResponseIdentifiersList = /*@__PURE__*/ S.Array(Identifier);
|
|
271
|
+
export const OrderResponseAuthorizationsList = /*@__PURE__*/ S.Array(S.String);
|
|
272
|
+
export const OrderResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
273
|
+
status: S.String,
|
|
274
|
+
expires: S.optional(S.String),
|
|
275
|
+
identifiers: OrderResponseIdentifiersList,
|
|
276
|
+
notBefore: S.optional(S.String),
|
|
277
|
+
notAfter: S.optional(S.String),
|
|
278
|
+
error: S.optional(Problem),
|
|
279
|
+
authorizations: OrderResponseAuthorizationsList,
|
|
280
|
+
finalize: S.String,
|
|
281
|
+
certificate: S.optional(S.String),
|
|
282
|
+
location: S.optional(S.String),
|
|
283
|
+
})).annotate({ identifier: "OrderResponse" });
|
|
284
|
+
export const GetAuthorizationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
285
|
+
url: S.String.pipe(T.Label()),
|
|
286
|
+
}).pipe(T.Http({ method: "POST", uri: "/authz/{url}", code: 200 }))).annotate({ identifier: "GetAuthorizationRequest" });
|
|
287
|
+
export const GetDirectoryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/directory", code: 200 }))).annotate({ identifier: "GetDirectoryRequest" });
|
|
288
|
+
export const DirectoryMetaCaaIdentitiesList = /*@__PURE__*/ S.Array(S.String);
|
|
289
|
+
export const DirectoryMeta = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
290
|
+
termsOfService: S.optional(S.String),
|
|
291
|
+
website: S.optional(S.String),
|
|
292
|
+
caaIdentities: S.optional(DirectoryMetaCaaIdentitiesList),
|
|
293
|
+
externalAccountRequired: S.optional(S.Boolean),
|
|
294
|
+
})).annotate({ identifier: "DirectoryMeta" });
|
|
295
|
+
export const Directory = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
296
|
+
newNonce: S.String,
|
|
297
|
+
newAccount: S.String,
|
|
298
|
+
newOrder: S.String,
|
|
299
|
+
newAuthz: S.optional(S.String),
|
|
300
|
+
revokeCert: S.String,
|
|
301
|
+
keyChange: S.optional(S.String),
|
|
302
|
+
meta: S.optional(DirectoryMeta),
|
|
303
|
+
})).annotate({ identifier: "Directory" });
|
|
304
|
+
export const GetOrderRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
305
|
+
url: S.String.pipe(T.Label()),
|
|
306
|
+
}).pipe(T.Http({ method: "POST", uri: "/order/{url}", code: 200 }))).annotate({ identifier: "GetOrderRequest" });
|
|
307
|
+
export const NewAccountRequestContactList = /*@__PURE__*/ S.Array(S.String);
|
|
308
|
+
export const ExternalAccountBinding = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
309
|
+
protected: S.String,
|
|
310
|
+
payload: S.String,
|
|
311
|
+
signature: S.String,
|
|
312
|
+
})).annotate({ identifier: "ExternalAccountBinding" });
|
|
313
|
+
export const NewAccountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
314
|
+
contact: S.optional(NewAccountRequestContactList),
|
|
315
|
+
termsOfServiceAgreed: S.optional(S.Boolean),
|
|
316
|
+
onlyReturnExisting: S.optional(S.Boolean),
|
|
317
|
+
externalAccountBinding: S.optional(ExternalAccountBinding),
|
|
318
|
+
}).pipe(T.Http({ method: "POST", uri: "/newAccount", code: 200 }))).annotate({ identifier: "NewAccountRequest" });
|
|
319
|
+
export const AccountResponseContactList = /*@__PURE__*/ S.Array(S.String);
|
|
320
|
+
export const AccountResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
321
|
+
status: S.String,
|
|
322
|
+
contact: S.optional(AccountResponseContactList),
|
|
323
|
+
termsOfServiceAgreed: S.optional(S.Boolean),
|
|
324
|
+
orders: S.optional(S.String),
|
|
325
|
+
location: S.optional(S.String),
|
|
326
|
+
})).annotate({ identifier: "AccountResponse" });
|
|
327
|
+
export const NewNonceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/newNonce", code: 200 }))).annotate({ identifier: "NewNonceRequest" });
|
|
328
|
+
export const NonceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
329
|
+
replayNonce: S.String,
|
|
330
|
+
})).annotate({ identifier: "NonceResponse" });
|
|
331
|
+
export const NewOrderRequestIdentifiersList = /*@__PURE__*/ S.Array(Identifier);
|
|
332
|
+
export const NewOrderRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
333
|
+
identifiers: NewOrderRequestIdentifiersList,
|
|
334
|
+
notBefore: S.optional(S.String),
|
|
335
|
+
notAfter: S.optional(S.String),
|
|
336
|
+
}).pipe(T.Http({ method: "POST", uri: "/newOrder", code: 200 }))).annotate({ identifier: "NewOrderRequest" });
|
|
337
|
+
export const RespondChallengeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
338
|
+
url: S.String.pipe(T.Label()),
|
|
339
|
+
}).pipe(T.Http({ method: "POST", uri: "/challenge/{url}", code: 200 }))).annotate({ identifier: "RespondChallengeRequest" });
|
|
340
|
+
export const RevokeCertificateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
341
|
+
certificate: S.String,
|
|
342
|
+
reason: S.optional(S.Number),
|
|
343
|
+
}).pipe(T.Http({ method: "POST", uri: "/revokeCert", code: 200 }))).annotate({ identifier: "RevokeCertificateRequest" });
|
|
344
|
+
export const RevokeCertificateResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
345
|
+
identifier: "RevokeCertificateResponse",
|
|
346
|
+
});
|
|
347
|
+
export const UpdateAccountRequestContactList = /*@__PURE__*/ S.Array(S.String);
|
|
348
|
+
export const UpdateAccountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
349
|
+
url: S.String.pipe(T.Label()),
|
|
350
|
+
contact: S.optional(UpdateAccountRequestContactList),
|
|
351
|
+
status: S.optional(S.String),
|
|
352
|
+
}).pipe(T.Http({ method: "POST", uri: "/account/{url}", code: 200 }))).annotate({ identifier: "UpdateAccountRequest" });
|
|
353
|
+
/** Deactivate the authorization at `url` */
|
|
354
|
+
export const deactivateAuthorization = /*@__PURE__*/ API.make(() => ({
|
|
355
|
+
input: DeactivateAuthorizationRequest,
|
|
356
|
+
output: Authorization,
|
|
357
|
+
errors: [
|
|
358
|
+
AcmeAccountDoesNotExist,
|
|
359
|
+
AcmeBadNonce,
|
|
360
|
+
AcmeMalformed,
|
|
361
|
+
AcmeRateLimited,
|
|
362
|
+
AcmeServerInternal,
|
|
363
|
+
AcmeUnauthorized,
|
|
364
|
+
],
|
|
365
|
+
protocol: AcmeProtocol,
|
|
366
|
+
retry: Retry.Retry,
|
|
367
|
+
}));
|
|
368
|
+
/** Download the PEM certificate chain at `url` (POST-as-GET) */
|
|
369
|
+
export const downloadCertificate = /*@__PURE__*/ API.make(() => ({
|
|
370
|
+
input: DownloadCertificateRequest,
|
|
371
|
+
output: CertificateChain,
|
|
372
|
+
errors: [
|
|
373
|
+
AcmeAccountDoesNotExist,
|
|
374
|
+
AcmeBadNonce,
|
|
375
|
+
AcmeMalformed,
|
|
376
|
+
AcmeRateLimited,
|
|
377
|
+
AcmeServerInternal,
|
|
378
|
+
AcmeUnauthorized,
|
|
379
|
+
],
|
|
380
|
+
protocol: AcmeProtocol,
|
|
381
|
+
retry: Retry.Retry,
|
|
382
|
+
}));
|
|
383
|
+
/** Submit the CSR to the order's finalize URL */
|
|
384
|
+
export const finalizeOrder = /*@__PURE__*/ API.make(() => ({
|
|
385
|
+
input: FinalizeOrderRequest,
|
|
386
|
+
output: OrderResponse,
|
|
387
|
+
errors: [
|
|
388
|
+
AcmeAccountDoesNotExist,
|
|
389
|
+
AcmeBadCsr,
|
|
390
|
+
AcmeBadNonce,
|
|
391
|
+
AcmeMalformed,
|
|
392
|
+
AcmeOrderNotReady,
|
|
393
|
+
AcmeRateLimited,
|
|
394
|
+
AcmeServerInternal,
|
|
395
|
+
AcmeUnauthorized,
|
|
396
|
+
],
|
|
397
|
+
protocol: AcmeProtocol,
|
|
398
|
+
retry: Retry.Retry,
|
|
399
|
+
}));
|
|
400
|
+
/** Fetch the authorization at `url` (POST-as-GET) */
|
|
401
|
+
export const getAuthorization = /*@__PURE__*/ API.make(() => ({
|
|
402
|
+
input: GetAuthorizationRequest,
|
|
403
|
+
output: Authorization,
|
|
404
|
+
errors: [
|
|
405
|
+
AcmeAccountDoesNotExist,
|
|
406
|
+
AcmeBadNonce,
|
|
407
|
+
AcmeMalformed,
|
|
408
|
+
AcmeRateLimited,
|
|
409
|
+
AcmeServerInternal,
|
|
410
|
+
AcmeUnauthorized,
|
|
411
|
+
],
|
|
412
|
+
protocol: AcmeProtocol,
|
|
413
|
+
retry: Retry.Retry,
|
|
414
|
+
}));
|
|
415
|
+
/** Fetch the CA's directory of resource URLs */
|
|
416
|
+
export const getDirectory = /*@__PURE__*/ API.make(() => ({
|
|
417
|
+
input: GetDirectoryRequest,
|
|
418
|
+
output: Directory,
|
|
419
|
+
errors: [],
|
|
420
|
+
protocol: AcmeProtocol,
|
|
421
|
+
retry: Retry.Retry,
|
|
422
|
+
}));
|
|
423
|
+
/** Fetch the order at `url` (POST-as-GET) */
|
|
424
|
+
export const getOrder = /*@__PURE__*/ API.make(() => ({
|
|
425
|
+
input: GetOrderRequest,
|
|
426
|
+
output: OrderResponse,
|
|
427
|
+
errors: [
|
|
428
|
+
AcmeAccountDoesNotExist,
|
|
429
|
+
AcmeBadNonce,
|
|
430
|
+
AcmeMalformed,
|
|
431
|
+
AcmeRateLimited,
|
|
432
|
+
AcmeServerInternal,
|
|
433
|
+
AcmeUnauthorized,
|
|
434
|
+
],
|
|
435
|
+
protocol: AcmeProtocol,
|
|
436
|
+
retry: Retry.Retry,
|
|
437
|
+
}));
|
|
438
|
+
/** Create an account, or find the existing account for this key */
|
|
439
|
+
export const newAccount = /*@__PURE__*/ API.make(() => ({
|
|
440
|
+
input: NewAccountRequest,
|
|
441
|
+
output: AccountResponse,
|
|
442
|
+
errors: [
|
|
443
|
+
AcmeAccountDoesNotExist,
|
|
444
|
+
AcmeBadNonce,
|
|
445
|
+
AcmeBadPublicKey,
|
|
446
|
+
AcmeBadSignatureAlgorithm,
|
|
447
|
+
AcmeExternalAccountRequired,
|
|
448
|
+
AcmeInvalidContact,
|
|
449
|
+
AcmeMalformed,
|
|
450
|
+
AcmeRateLimited,
|
|
451
|
+
AcmeServerInternal,
|
|
452
|
+
AcmeUnauthorized,
|
|
453
|
+
AcmeUnsupportedContact,
|
|
454
|
+
AcmeUserActionRequired,
|
|
455
|
+
],
|
|
456
|
+
protocol: AcmeProtocol,
|
|
457
|
+
retry: Retry.Retry,
|
|
458
|
+
}));
|
|
459
|
+
/** Get a fresh anti-replay nonce (the `Replay-Nonce` header) */
|
|
460
|
+
export const newNonce = /*@__PURE__*/ API.make(() => ({
|
|
461
|
+
input: NewNonceRequest,
|
|
462
|
+
output: NonceResponse,
|
|
463
|
+
errors: [],
|
|
464
|
+
protocol: AcmeProtocol,
|
|
465
|
+
retry: Retry.Retry,
|
|
466
|
+
}));
|
|
467
|
+
/** Create an order for a set of identifiers */
|
|
468
|
+
export const newOrder = /*@__PURE__*/ API.make(() => ({
|
|
469
|
+
input: NewOrderRequest,
|
|
470
|
+
output: OrderResponse,
|
|
471
|
+
errors: [
|
|
472
|
+
AcmeAccountDoesNotExist,
|
|
473
|
+
AcmeBadNonce,
|
|
474
|
+
AcmeMalformed,
|
|
475
|
+
AcmeRateLimited,
|
|
476
|
+
AcmeRejectedIdentifier,
|
|
477
|
+
AcmeServerInternal,
|
|
478
|
+
AcmeUnauthorized,
|
|
479
|
+
AcmeUnsupportedIdentifier,
|
|
480
|
+
AcmeUserActionRequired,
|
|
481
|
+
],
|
|
482
|
+
protocol: AcmeProtocol,
|
|
483
|
+
retry: Retry.Retry,
|
|
484
|
+
}));
|
|
485
|
+
/** Tell the CA the challenge at `url` is ready to be validated */
|
|
486
|
+
export const respondChallenge = /*@__PURE__*/ API.make(() => ({
|
|
487
|
+
input: RespondChallengeRequest,
|
|
488
|
+
output: Challenge,
|
|
489
|
+
errors: [
|
|
490
|
+
AcmeAccountDoesNotExist,
|
|
491
|
+
AcmeBadNonce,
|
|
492
|
+
AcmeCaa,
|
|
493
|
+
AcmeConnection,
|
|
494
|
+
AcmeDns,
|
|
495
|
+
AcmeIncorrectResponse,
|
|
496
|
+
AcmeMalformed,
|
|
497
|
+
AcmeRateLimited,
|
|
498
|
+
AcmeServerInternal,
|
|
499
|
+
AcmeTls,
|
|
500
|
+
AcmeUnauthorized,
|
|
501
|
+
],
|
|
502
|
+
protocol: AcmeProtocol,
|
|
503
|
+
retry: Retry.Retry,
|
|
504
|
+
}));
|
|
505
|
+
/** Revoke a certificate */
|
|
506
|
+
export const revokeCertificate = /*@__PURE__*/ API.make(() => ({
|
|
507
|
+
input: RevokeCertificateRequest,
|
|
508
|
+
output: RevokeCertificateResponse,
|
|
509
|
+
errors: [
|
|
510
|
+
AcmeAccountDoesNotExist,
|
|
511
|
+
AcmeAlreadyRevoked,
|
|
512
|
+
AcmeBadNonce,
|
|
513
|
+
AcmeBadRevocationReason,
|
|
514
|
+
AcmeMalformed,
|
|
515
|
+
AcmeRateLimited,
|
|
516
|
+
AcmeServerInternal,
|
|
517
|
+
AcmeUnauthorized,
|
|
518
|
+
],
|
|
519
|
+
protocol: AcmeProtocol,
|
|
520
|
+
retry: Retry.Retry,
|
|
521
|
+
}));
|
|
522
|
+
/** Update (or deactivate) the account at `url` */
|
|
523
|
+
export const updateAccount = /*@__PURE__*/ API.make(() => ({
|
|
524
|
+
input: UpdateAccountRequest,
|
|
525
|
+
output: AccountResponse,
|
|
526
|
+
errors: [
|
|
527
|
+
AcmeAccountDoesNotExist,
|
|
528
|
+
AcmeBadNonce,
|
|
529
|
+
AcmeInvalidContact,
|
|
530
|
+
AcmeMalformed,
|
|
531
|
+
AcmeRateLimited,
|
|
532
|
+
AcmeServerInternal,
|
|
533
|
+
AcmeUnauthorized,
|
|
534
|
+
AcmeUnsupportedContact,
|
|
535
|
+
],
|
|
536
|
+
protocol: AcmeProtocol,
|
|
537
|
+
retry: Retry.Retry,
|
|
538
|
+
}));
|
|
539
|
+
//# sourceMappingURL=acme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acme.js","sourceRoot":"","sources":["../../src/services/acme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,gCAAgC,CAAC;AACpD,sGAAsG;AACtG,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAClD,OAAO,EAAE,YAAY,EAAwC,MAAM,gBAAgB,CAAC;AACpF,OAAO,KAAK,KAAK,MAAM,aAAa,CAAC;AACrC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAIlC,4DAA4D;AAC5D,MAAM,OAAO,uBACX,SAAQ,aAAa,CAAb,aAAa,CAAC,CAAC,CAAC,kBAAkB;AACxC,aAAa,CAAC,CAAC,CAAC,WAAW,EAA2B,CAAC,yBAAyB,EAAE;IAChF,IAAI,EAAE,CAAC,CAAC,MAAM;IACd,OAAO,EAAE,CAAC,CAAC,MAAM;IACjB,IAAI,EAAE,CAAC,CAAC,MAAM;IACd,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC;CAC7B,CAAC,EACF,CAAC,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,kDAAkD,EAAE,EAAE,CAAC,CAC/E;CAAG;AAEN,uFAAuF;AACvF,MAAM,OAAO,kBACX,SAAQ,aAAa,CAAb,aAAa,CAAC,CAAC,CAAC,kBAAkB;AACxC,aAAa,CAAC,CAAC,CAAC,WAAW,EAAsB,CAAC,oBAAoB,EAAE;IACtE,IAAI,EAAE,CAAC,CAAC,MAAM;IACd,OAAO,EAAE,CAAC,CAAC,MAAM;IACjB,IAAI,EAAE,CAAC,CAAC,MAA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,GAK1B,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAChC,KAAK,EAAE,wBAAwB;IAC/B,MAAM,EAAE,yBAAyB;IACjC,MAAM,EAAE;QACN,uBAAuB;QACvB,kBAAkB;QAClB,YAAY;QACZ,uBAAuB;QACvB,aAAa;QACb,eAAe;QACf,kBAAkB;QAClB,gBAAgB;KACjB;IACD,QAAQ,EAAE,YAAY;IACtB,KAAK,EAAE,KAAK,CAAC,KAAK;CACnB,CAAC,CAAC,CAAC;AAYJ,kDAAkD;AAClD,MAAM,CAAC,MAAM,aAAa,GAKtB,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAChC,KAAK,EAAE,oBAAoB;IAC3B,MAAM,EAAE,eAAe;IACvB,MAAM,EAAE;QACN,uBAAuB;QACvB,YAAY;QACZ,kBAAkB;QAClB,aAAa;QACb,eAAe;QACf,kBAAkB;QAClB,gBAAgB;QAChB,sBAAsB;KACvB;IACD,QAAQ,EAAE,YAAY;IACtB,KAAK,EAAE,KAAK,CAAC,KAAK;CACnB,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC"}
|
package/lib/traits.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ACME SDK trait surface — hand-written.
|
|
3
|
+
*
|
|
4
|
+
* Re-exports the generic protocol traits from core so generated operations
|
|
5
|
+
* import everything from one place (`import * as T from "../traits.ts"`).
|
|
6
|
+
* ACME is JWS-signed JSON, so
|
|
7
|
+
* there are no ACME-specific traits — the REST-protocol traits
|
|
8
|
+
* (`SensitiveValue` / `RawResponse` / `RawResponseRoot`) come from
|
|
9
|
+
* `core/protocol-rest`.
|
|
10
|
+
*/
|
|
11
|
+
export { SensitiveValue, RawResponse, RawResponseRoot, sensitiveValueSymbol, rawResponseSymbol, rawResponseRootSymbol, } from "@distilled.cloud/core/protocol-rest";
|
|
12
|
+
export { Body, Header, Query, Label, Http, ResponseCode, HttpBody, FormDataFile, KeyDictionary, UnionCases, applyErrorMatchers, getErrorMatchers, type HttpTrait, type ErrorMatcher, bodySymbol, headerSymbol, querySymbol, labelSymbol, httpSymbol, responseCodeSymbol, httpBodySymbol, formDataFileSymbol, keyDictionarySymbol, unionCasesSymbol, errorMatchersSymbol, } from "@distilled.cloud/core/trait";
|
|
13
|
+
//# sourceMappingURL=traits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"traits.d.ts","sourceRoot":"","sources":["../src/traits.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EACL,cAAc,EACd,WAAW,EACX,eAAe,EACf,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EACL,IAAI,EACJ,MAAM,EACN,KAAK,EACL,KAAK,EACL,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,aAAa,EACb,UAAU,EACV,kBAAkB,EAClB,gBAAgB,EAChB,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACV,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,6BAA6B,CAAC"}
|
package/lib/traits.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ACME SDK trait surface — hand-written.
|
|
3
|
+
*
|
|
4
|
+
* Re-exports the generic protocol traits from core so generated operations
|
|
5
|
+
* import everything from one place (`import * as T from "../traits.ts"`).
|
|
6
|
+
* ACME is JWS-signed JSON, so
|
|
7
|
+
* there are no ACME-specific traits — the REST-protocol traits
|
|
8
|
+
* (`SensitiveValue` / `RawResponse` / `RawResponseRoot`) come from
|
|
9
|
+
* `core/protocol-rest`.
|
|
10
|
+
*/
|
|
11
|
+
export { SensitiveValue, RawResponse, RawResponseRoot, sensitiveValueSymbol, rawResponseSymbol, rawResponseRootSymbol, } from "@distilled.cloud/core/protocol-rest";
|
|
12
|
+
export { Body, Header, Query, Label, Http, ResponseCode, HttpBody, FormDataFile, KeyDictionary, UnionCases, applyErrorMatchers, getErrorMatchers, bodySymbol, headerSymbol, querySymbol, labelSymbol, httpSymbol, responseCodeSymbol, httpBodySymbol, formDataFileSymbol, keyDictionarySymbol, unionCasesSymbol, errorMatchersSymbol, } from "@distilled.cloud/core/trait";
|
|
13
|
+
//# sourceMappingURL=traits.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"traits.js","sourceRoot":"","sources":["../src/traits.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EACL,cAAc,EACd,WAAW,EACX,eAAe,EACf,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EACL,IAAI,EACJ,MAAM,EACN,KAAK,EACL,KAAK,EACL,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,aAAa,EACb,UAAU,EACV,kBAAkB,EAClB,gBAAgB,EAGhB,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACV,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,6BAA6B,CAAC"}
|