@kagal/acme 0.1.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.
@@ -0,0 +1,1331 @@
1
+ import * as v from 'valibot';
2
+ import { A as ACMEProtectedHeader, a as ACMERequestHeader, b as Account, e as Authorization, B as Base64url, i as CertID, j as Challenge, n as DeactivateAccount, o as DeactivateAuthorization, p as Directory, q as DirectoryMeta, F as Finalize, s as FlattenedJWS, I as Identifier, J as JWK, w as JWSProtectedHeader, K as KeyChange, N as NewAccount, x as NewAuthz, y as NewOrder, z as Order, P as Problem, M as RenewalInfo, Q as RevokeCert, S as Subproblem } from './shared/acme.DkI8KXwO.js';
3
+
4
+ /**
5
+ * {@link Account} schema.
6
+ *
7
+ * @remarks
8
+ * Uses `looseObject` — unknown fields pass through.
9
+ * `externalAccountBinding` is validated as a
10
+ * {@link FlattenedJWSSchema} (structural alias).
11
+ *
12
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc8555#section-7.1.2}
13
+ */
14
+ declare const AccountSchema: v.LooseObjectSchema<{
15
+ readonly status: v.PicklistSchema<readonly ["valid", "deactivated", "revoked"], undefined>;
16
+ readonly contact: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
17
+ readonly termsOfServiceAgreed: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
18
+ readonly externalAccountBinding: v.OptionalSchema<v.StrictObjectSchema<{
19
+ readonly protected: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "invalid base64url length">]>;
20
+ readonly payload: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "invalid base64url length">]>;
21
+ readonly signature: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "invalid base64url length">]>;
22
+ }, undefined>, undefined>;
23
+ readonly orders: v.StringSchema<undefined>;
24
+ }, undefined>;
25
+
26
+ /**
27
+ * {@link Authorization} schema — discriminated on
28
+ * `status`.
29
+ *
30
+ * @remarks
31
+ * Uses `looseObject` — unknown fields pass through.
32
+ * `expires` is required when status is `'valid'`.
33
+ *
34
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc8555#section-7.1.4}
35
+ */
36
+ declare const AuthorizationSchema: v.VariantSchema<"status", [v.LooseObjectSchema<{
37
+ readonly status: v.LiteralSchema<"pending", undefined>;
38
+ readonly expires: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
39
+ readonly identifier: v.LooseObjectSchema<{
40
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
41
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
42
+ }, undefined>;
43
+ readonly challenges: v.ArraySchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
44
+ readonly type: v.LiteralSchema<"dns-01", undefined>;
45
+ readonly url: v.StringSchema<undefined>;
46
+ readonly status: v.PicklistSchema<readonly ["pending", "processing", "valid", "invalid"], undefined>;
47
+ readonly validated: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
48
+ readonly error: v.OptionalSchema<v.LooseObjectSchema<{
49
+ readonly type: v.StringSchema<undefined>;
50
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
51
+ readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
52
+ readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 100, undefined>, v.MaxValueAction<number, 599, undefined>]>, undefined>;
53
+ readonly instance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
54
+ readonly identifier: v.OptionalSchema<v.LooseObjectSchema<{
55
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
56
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
57
+ }, undefined>, undefined>;
58
+ readonly subproblems: v.OptionalSchema<v.ArraySchema<v.LooseObjectSchema<{
59
+ readonly type: v.StringSchema<undefined>;
60
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
61
+ readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
62
+ readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 100, undefined>, v.MaxValueAction<number, 599, undefined>]>, undefined>;
63
+ readonly instance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
64
+ readonly identifier: v.OptionalSchema<v.LooseObjectSchema<{
65
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
66
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
67
+ }, undefined>, undefined>;
68
+ }, undefined>, undefined>, undefined>;
69
+ }, undefined>, undefined>;
70
+ readonly token: v.StringSchema<undefined>;
71
+ }, undefined>, v.LooseObjectSchema<{
72
+ readonly type: v.LiteralSchema<"http-01", undefined>;
73
+ readonly url: v.StringSchema<undefined>;
74
+ readonly status: v.PicklistSchema<readonly ["pending", "processing", "valid", "invalid"], undefined>;
75
+ readonly validated: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
76
+ readonly error: v.OptionalSchema<v.LooseObjectSchema<{
77
+ readonly type: v.StringSchema<undefined>;
78
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
79
+ readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
80
+ readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 100, undefined>, v.MaxValueAction<number, 599, undefined>]>, undefined>;
81
+ readonly instance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
82
+ readonly identifier: v.OptionalSchema<v.LooseObjectSchema<{
83
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
84
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
85
+ }, undefined>, undefined>;
86
+ readonly subproblems: v.OptionalSchema<v.ArraySchema<v.LooseObjectSchema<{
87
+ readonly type: v.StringSchema<undefined>;
88
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
89
+ readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
90
+ readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 100, undefined>, v.MaxValueAction<number, 599, undefined>]>, undefined>;
91
+ readonly instance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
92
+ readonly identifier: v.OptionalSchema<v.LooseObjectSchema<{
93
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
94
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
95
+ }, undefined>, undefined>;
96
+ }, undefined>, undefined>, undefined>;
97
+ }, undefined>, undefined>;
98
+ readonly token: v.StringSchema<undefined>;
99
+ }, undefined>, v.LooseObjectSchema<{
100
+ readonly type: v.LiteralSchema<"tls-alpn-01", undefined>;
101
+ readonly url: v.StringSchema<undefined>;
102
+ readonly status: v.PicklistSchema<readonly ["pending", "processing", "valid", "invalid"], undefined>;
103
+ readonly validated: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
104
+ readonly error: v.OptionalSchema<v.LooseObjectSchema<{
105
+ readonly type: v.StringSchema<undefined>;
106
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
107
+ readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
108
+ readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 100, undefined>, v.MaxValueAction<number, 599, undefined>]>, undefined>;
109
+ readonly instance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
110
+ readonly identifier: v.OptionalSchema<v.LooseObjectSchema<{
111
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
112
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
113
+ }, undefined>, undefined>;
114
+ readonly subproblems: v.OptionalSchema<v.ArraySchema<v.LooseObjectSchema<{
115
+ readonly type: v.StringSchema<undefined>;
116
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
117
+ readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
118
+ readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 100, undefined>, v.MaxValueAction<number, 599, undefined>]>, undefined>;
119
+ readonly instance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
120
+ readonly identifier: v.OptionalSchema<v.LooseObjectSchema<{
121
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
122
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
123
+ }, undefined>, undefined>;
124
+ }, undefined>, undefined>, undefined>;
125
+ }, undefined>, undefined>;
126
+ readonly token: v.StringSchema<undefined>;
127
+ }, undefined>], undefined>, undefined>;
128
+ readonly wildcard: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
129
+ }, undefined>, v.LooseObjectSchema<{
130
+ readonly status: v.LiteralSchema<"valid", undefined>;
131
+ readonly expires: v.StringSchema<undefined>;
132
+ readonly identifier: v.LooseObjectSchema<{
133
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
134
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
135
+ }, undefined>;
136
+ readonly challenges: v.ArraySchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
137
+ readonly type: v.LiteralSchema<"dns-01", undefined>;
138
+ readonly url: v.StringSchema<undefined>;
139
+ readonly status: v.PicklistSchema<readonly ["pending", "processing", "valid", "invalid"], undefined>;
140
+ readonly validated: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
141
+ readonly error: v.OptionalSchema<v.LooseObjectSchema<{
142
+ readonly type: v.StringSchema<undefined>;
143
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
144
+ readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
145
+ readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 100, undefined>, v.MaxValueAction<number, 599, undefined>]>, undefined>;
146
+ readonly instance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
147
+ readonly identifier: v.OptionalSchema<v.LooseObjectSchema<{
148
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
149
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
150
+ }, undefined>, undefined>;
151
+ readonly subproblems: v.OptionalSchema<v.ArraySchema<v.LooseObjectSchema<{
152
+ readonly type: v.StringSchema<undefined>;
153
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
154
+ readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
155
+ readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 100, undefined>, v.MaxValueAction<number, 599, undefined>]>, undefined>;
156
+ readonly instance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
157
+ readonly identifier: v.OptionalSchema<v.LooseObjectSchema<{
158
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
159
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
160
+ }, undefined>, undefined>;
161
+ }, undefined>, undefined>, undefined>;
162
+ }, undefined>, undefined>;
163
+ readonly token: v.StringSchema<undefined>;
164
+ }, undefined>, v.LooseObjectSchema<{
165
+ readonly type: v.LiteralSchema<"http-01", undefined>;
166
+ readonly url: v.StringSchema<undefined>;
167
+ readonly status: v.PicklistSchema<readonly ["pending", "processing", "valid", "invalid"], undefined>;
168
+ readonly validated: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
169
+ readonly error: v.OptionalSchema<v.LooseObjectSchema<{
170
+ readonly type: v.StringSchema<undefined>;
171
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
172
+ readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
173
+ readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 100, undefined>, v.MaxValueAction<number, 599, undefined>]>, undefined>;
174
+ readonly instance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
175
+ readonly identifier: v.OptionalSchema<v.LooseObjectSchema<{
176
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
177
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
178
+ }, undefined>, undefined>;
179
+ readonly subproblems: v.OptionalSchema<v.ArraySchema<v.LooseObjectSchema<{
180
+ readonly type: v.StringSchema<undefined>;
181
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
182
+ readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
183
+ readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 100, undefined>, v.MaxValueAction<number, 599, undefined>]>, undefined>;
184
+ readonly instance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
185
+ readonly identifier: v.OptionalSchema<v.LooseObjectSchema<{
186
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
187
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
188
+ }, undefined>, undefined>;
189
+ }, undefined>, undefined>, undefined>;
190
+ }, undefined>, undefined>;
191
+ readonly token: v.StringSchema<undefined>;
192
+ }, undefined>, v.LooseObjectSchema<{
193
+ readonly type: v.LiteralSchema<"tls-alpn-01", undefined>;
194
+ readonly url: v.StringSchema<undefined>;
195
+ readonly status: v.PicklistSchema<readonly ["pending", "processing", "valid", "invalid"], undefined>;
196
+ readonly validated: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
197
+ readonly error: v.OptionalSchema<v.LooseObjectSchema<{
198
+ readonly type: v.StringSchema<undefined>;
199
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
200
+ readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
201
+ readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 100, undefined>, v.MaxValueAction<number, 599, undefined>]>, undefined>;
202
+ readonly instance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
203
+ readonly identifier: v.OptionalSchema<v.LooseObjectSchema<{
204
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
205
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
206
+ }, undefined>, undefined>;
207
+ readonly subproblems: v.OptionalSchema<v.ArraySchema<v.LooseObjectSchema<{
208
+ readonly type: v.StringSchema<undefined>;
209
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
210
+ readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
211
+ readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 100, undefined>, v.MaxValueAction<number, 599, undefined>]>, undefined>;
212
+ readonly instance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
213
+ readonly identifier: v.OptionalSchema<v.LooseObjectSchema<{
214
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
215
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
216
+ }, undefined>, undefined>;
217
+ }, undefined>, undefined>, undefined>;
218
+ }, undefined>, undefined>;
219
+ readonly token: v.StringSchema<undefined>;
220
+ }, undefined>], undefined>, undefined>;
221
+ readonly wildcard: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
222
+ }, undefined>, v.LooseObjectSchema<{
223
+ readonly status: v.PicklistSchema<("invalid" | "deactivated" | "expired" | "revoked")[], undefined>;
224
+ readonly expires: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
225
+ readonly identifier: v.LooseObjectSchema<{
226
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
227
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
228
+ }, undefined>;
229
+ readonly challenges: v.ArraySchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
230
+ readonly type: v.LiteralSchema<"dns-01", undefined>;
231
+ readonly url: v.StringSchema<undefined>;
232
+ readonly status: v.PicklistSchema<readonly ["pending", "processing", "valid", "invalid"], undefined>;
233
+ readonly validated: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
234
+ readonly error: v.OptionalSchema<v.LooseObjectSchema<{
235
+ readonly type: v.StringSchema<undefined>;
236
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
237
+ readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
238
+ readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 100, undefined>, v.MaxValueAction<number, 599, undefined>]>, undefined>;
239
+ readonly instance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
240
+ readonly identifier: v.OptionalSchema<v.LooseObjectSchema<{
241
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
242
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
243
+ }, undefined>, undefined>;
244
+ readonly subproblems: v.OptionalSchema<v.ArraySchema<v.LooseObjectSchema<{
245
+ readonly type: v.StringSchema<undefined>;
246
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
247
+ readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
248
+ readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 100, undefined>, v.MaxValueAction<number, 599, undefined>]>, undefined>;
249
+ readonly instance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
250
+ readonly identifier: v.OptionalSchema<v.LooseObjectSchema<{
251
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
252
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
253
+ }, undefined>, undefined>;
254
+ }, undefined>, undefined>, undefined>;
255
+ }, undefined>, undefined>;
256
+ readonly token: v.StringSchema<undefined>;
257
+ }, undefined>, v.LooseObjectSchema<{
258
+ readonly type: v.LiteralSchema<"http-01", undefined>;
259
+ readonly url: v.StringSchema<undefined>;
260
+ readonly status: v.PicklistSchema<readonly ["pending", "processing", "valid", "invalid"], undefined>;
261
+ readonly validated: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
262
+ readonly error: v.OptionalSchema<v.LooseObjectSchema<{
263
+ readonly type: v.StringSchema<undefined>;
264
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
265
+ readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
266
+ readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 100, undefined>, v.MaxValueAction<number, 599, undefined>]>, undefined>;
267
+ readonly instance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
268
+ readonly identifier: v.OptionalSchema<v.LooseObjectSchema<{
269
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
270
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
271
+ }, undefined>, undefined>;
272
+ readonly subproblems: v.OptionalSchema<v.ArraySchema<v.LooseObjectSchema<{
273
+ readonly type: v.StringSchema<undefined>;
274
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
275
+ readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
276
+ readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 100, undefined>, v.MaxValueAction<number, 599, undefined>]>, undefined>;
277
+ readonly instance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
278
+ readonly identifier: v.OptionalSchema<v.LooseObjectSchema<{
279
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
280
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
281
+ }, undefined>, undefined>;
282
+ }, undefined>, undefined>, undefined>;
283
+ }, undefined>, undefined>;
284
+ readonly token: v.StringSchema<undefined>;
285
+ }, undefined>, v.LooseObjectSchema<{
286
+ readonly type: v.LiteralSchema<"tls-alpn-01", undefined>;
287
+ readonly url: v.StringSchema<undefined>;
288
+ readonly status: v.PicklistSchema<readonly ["pending", "processing", "valid", "invalid"], undefined>;
289
+ readonly validated: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
290
+ readonly error: v.OptionalSchema<v.LooseObjectSchema<{
291
+ readonly type: v.StringSchema<undefined>;
292
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
293
+ readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
294
+ readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 100, undefined>, v.MaxValueAction<number, 599, undefined>]>, undefined>;
295
+ readonly instance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
296
+ readonly identifier: v.OptionalSchema<v.LooseObjectSchema<{
297
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
298
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
299
+ }, undefined>, undefined>;
300
+ readonly subproblems: v.OptionalSchema<v.ArraySchema<v.LooseObjectSchema<{
301
+ readonly type: v.StringSchema<undefined>;
302
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
303
+ readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
304
+ readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 100, undefined>, v.MaxValueAction<number, 599, undefined>]>, undefined>;
305
+ readonly instance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
306
+ readonly identifier: v.OptionalSchema<v.LooseObjectSchema<{
307
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
308
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
309
+ }, undefined>, undefined>;
310
+ }, undefined>, undefined>, undefined>;
311
+ }, undefined>, undefined>;
312
+ readonly token: v.StringSchema<undefined>;
313
+ }, undefined>], undefined>, undefined>;
314
+ readonly wildcard: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
315
+ }, undefined>], undefined>;
316
+
317
+ /**
318
+ * {@link Challenge} schema — discriminated on `type`.
319
+ *
320
+ * @remarks
321
+ * Uses `looseObject` — unknown fields pass through.
322
+ * The union is closed: unknown challenge types fail
323
+ * validation. Consumers must upgrade to support new
324
+ * challenge types from future RFCs.
325
+ *
326
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc8555#section-7.1.5}
327
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc8737}
328
+ */
329
+ declare const ChallengeSchema: v.VariantSchema<"type", [v.LooseObjectSchema<{
330
+ readonly type: v.LiteralSchema<"dns-01", undefined>;
331
+ readonly url: v.StringSchema<undefined>;
332
+ readonly status: v.PicklistSchema<readonly ["pending", "processing", "valid", "invalid"], undefined>;
333
+ readonly validated: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
334
+ readonly error: v.OptionalSchema<v.LooseObjectSchema<{
335
+ readonly type: v.StringSchema<undefined>;
336
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
337
+ readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
338
+ readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 100, undefined>, v.MaxValueAction<number, 599, undefined>]>, undefined>;
339
+ readonly instance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
340
+ readonly identifier: v.OptionalSchema<v.LooseObjectSchema<{
341
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
342
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
343
+ }, undefined>, undefined>;
344
+ readonly subproblems: v.OptionalSchema<v.ArraySchema<v.LooseObjectSchema<{
345
+ readonly type: v.StringSchema<undefined>;
346
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
347
+ readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
348
+ readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 100, undefined>, v.MaxValueAction<number, 599, undefined>]>, undefined>;
349
+ readonly instance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
350
+ readonly identifier: v.OptionalSchema<v.LooseObjectSchema<{
351
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
352
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
353
+ }, undefined>, undefined>;
354
+ }, undefined>, undefined>, undefined>;
355
+ }, undefined>, undefined>;
356
+ readonly token: v.StringSchema<undefined>;
357
+ }, undefined>, v.LooseObjectSchema<{
358
+ readonly type: v.LiteralSchema<"http-01", undefined>;
359
+ readonly url: v.StringSchema<undefined>;
360
+ readonly status: v.PicklistSchema<readonly ["pending", "processing", "valid", "invalid"], undefined>;
361
+ readonly validated: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
362
+ readonly error: v.OptionalSchema<v.LooseObjectSchema<{
363
+ readonly type: v.StringSchema<undefined>;
364
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
365
+ readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
366
+ readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 100, undefined>, v.MaxValueAction<number, 599, undefined>]>, undefined>;
367
+ readonly instance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
368
+ readonly identifier: v.OptionalSchema<v.LooseObjectSchema<{
369
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
370
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
371
+ }, undefined>, undefined>;
372
+ readonly subproblems: v.OptionalSchema<v.ArraySchema<v.LooseObjectSchema<{
373
+ readonly type: v.StringSchema<undefined>;
374
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
375
+ readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
376
+ readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 100, undefined>, v.MaxValueAction<number, 599, undefined>]>, undefined>;
377
+ readonly instance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
378
+ readonly identifier: v.OptionalSchema<v.LooseObjectSchema<{
379
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
380
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
381
+ }, undefined>, undefined>;
382
+ }, undefined>, undefined>, undefined>;
383
+ }, undefined>, undefined>;
384
+ readonly token: v.StringSchema<undefined>;
385
+ }, undefined>, v.LooseObjectSchema<{
386
+ readonly type: v.LiteralSchema<"tls-alpn-01", undefined>;
387
+ readonly url: v.StringSchema<undefined>;
388
+ readonly status: v.PicklistSchema<readonly ["pending", "processing", "valid", "invalid"], undefined>;
389
+ readonly validated: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
390
+ readonly error: v.OptionalSchema<v.LooseObjectSchema<{
391
+ readonly type: v.StringSchema<undefined>;
392
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
393
+ readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
394
+ readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 100, undefined>, v.MaxValueAction<number, 599, undefined>]>, undefined>;
395
+ readonly instance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
396
+ readonly identifier: v.OptionalSchema<v.LooseObjectSchema<{
397
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
398
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
399
+ }, undefined>, undefined>;
400
+ readonly subproblems: v.OptionalSchema<v.ArraySchema<v.LooseObjectSchema<{
401
+ readonly type: v.StringSchema<undefined>;
402
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
403
+ readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
404
+ readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 100, undefined>, v.MaxValueAction<number, 599, undefined>]>, undefined>;
405
+ readonly instance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
406
+ readonly identifier: v.OptionalSchema<v.LooseObjectSchema<{
407
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
408
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
409
+ }, undefined>, undefined>;
410
+ }, undefined>, undefined>, undefined>;
411
+ }, undefined>, undefined>;
412
+ readonly token: v.StringSchema<undefined>;
413
+ }, undefined>], undefined>;
414
+
415
+ /**
416
+ * {@link DirectoryMeta} schema.
417
+ *
418
+ * @remarks
419
+ * Uses `looseObject` — unknown fields pass through.
420
+ * Includes Profiles `profiles`
421
+ * (draft-ietf-acme-profiles) extension.
422
+ *
423
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc8555#section-7.1.1}
424
+ */
425
+ declare const DirectoryMetaSchema: v.LooseObjectSchema<{
426
+ readonly termsOfService: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
427
+ readonly website: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
428
+ readonly caaIdentities: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
429
+ readonly externalAccountRequired: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
430
+ readonly profiles: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;
431
+ }, undefined>;
432
+ /**
433
+ * {@link Directory} schema.
434
+ *
435
+ * @remarks
436
+ * Uses `looseObject` — unknown fields pass through.
437
+ *
438
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc8555#section-7.1.1}
439
+ */
440
+ declare const DirectorySchema: v.LooseObjectSchema<{
441
+ readonly newNonce: v.StringSchema<undefined>;
442
+ readonly newAccount: v.StringSchema<undefined>;
443
+ readonly newOrder: v.StringSchema<undefined>;
444
+ readonly newAuthz: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
445
+ readonly revokeCert: v.StringSchema<undefined>;
446
+ readonly keyChange: v.StringSchema<undefined>;
447
+ readonly renewalInfo: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
448
+ readonly meta: v.OptionalSchema<v.LooseObjectSchema<{
449
+ readonly termsOfService: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
450
+ readonly website: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
451
+ readonly caaIdentities: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
452
+ readonly externalAccountRequired: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
453
+ readonly profiles: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;
454
+ }, undefined>, undefined>;
455
+ }, undefined>;
456
+
457
+ /**
458
+ * Non-empty {@link Base64url} schema.
459
+ *
460
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc7515#section-2}
461
+ */
462
+ declare const Base64urlSchema: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "invalid base64url length">]>;
463
+ /**
464
+ * {@link Base64url} schema allowing empty string
465
+ * (POST-as-GET payload, RFC 8555 §6.3).
466
+ *
467
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc8555#section-6.3}
468
+ */
469
+ declare const Base64urlOrEmptySchema: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "invalid base64url length">]>;
470
+
471
+ /**
472
+ * {@link Finalize} schema (RFC 8555 §7.4).
473
+ *
474
+ * @remarks
475
+ * Uses `strictObject` — the CSR is the only
476
+ * expected field. Validates base64url encoding.
477
+ *
478
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc8555#section-7.4}
479
+ */
480
+ declare const FinalizeSchema: v.StrictObjectSchema<{
481
+ readonly csr: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "invalid base64url length">]>;
482
+ }, undefined>;
483
+
484
+ /**
485
+ * {@link Identifier} schema.
486
+ *
487
+ * @remarks
488
+ * Uses `looseObject` — unknown fields pass through.
489
+ *
490
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc8555#section-9.7.7}
491
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc8738}
492
+ */
493
+ declare const IdentifierSchema: v.LooseObjectSchema<{
494
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
495
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
496
+ }, undefined>;
497
+ /**
498
+ * Strict {@link Identifier} schema for request
499
+ * payloads.
500
+ *
501
+ * @remarks
502
+ * Uses `strictObject` — the client controls the
503
+ * structure.
504
+ *
505
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc8555#section-9.7.7}
506
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc8738}
507
+ */
508
+ declare const StrictIdentifierSchema: v.StrictObjectSchema<{
509
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
510
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
511
+ }, undefined>;
512
+
513
+ /**
514
+ * {@link JWK} schema (RFC 7517).
515
+ *
516
+ * @remarks
517
+ * Uses `v.variant` on `kty` to discriminate
518
+ * EC, OKP, and RSA key types. Each variant uses
519
+ * `looseObject` — JWKs may contain additional
520
+ * members (RFC 7517 §4).
521
+ *
522
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc7517}
523
+ */
524
+ declare const JWKSchema: v.VariantSchema<"kty", [v.LooseObjectSchema<{
525
+ readonly kid: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
526
+ readonly alg: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
527
+ readonly use: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
528
+ readonly key_ops: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
529
+ readonly x5u: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
530
+ readonly x5c: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
531
+ readonly x5t: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
532
+ readonly 'x5t#S256': v.OptionalSchema<v.StringSchema<undefined>, undefined>;
533
+ readonly kty: v.LiteralSchema<"EC", undefined>;
534
+ readonly crv: v.StringSchema<undefined>;
535
+ readonly x: v.StringSchema<undefined>;
536
+ readonly y: v.StringSchema<undefined>;
537
+ }, undefined>, v.LooseObjectSchema<{
538
+ readonly kid: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
539
+ readonly alg: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
540
+ readonly use: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
541
+ readonly key_ops: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
542
+ readonly x5u: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
543
+ readonly x5c: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
544
+ readonly x5t: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
545
+ readonly 'x5t#S256': v.OptionalSchema<v.StringSchema<undefined>, undefined>;
546
+ readonly kty: v.LiteralSchema<"OKP", undefined>;
547
+ readonly crv: v.StringSchema<undefined>;
548
+ readonly x: v.StringSchema<undefined>;
549
+ }, undefined>, v.LooseObjectSchema<{
550
+ readonly kid: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
551
+ readonly alg: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
552
+ readonly use: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
553
+ readonly key_ops: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
554
+ readonly x5u: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
555
+ readonly x5c: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
556
+ readonly x5t: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
557
+ readonly 'x5t#S256': v.OptionalSchema<v.StringSchema<undefined>, undefined>;
558
+ readonly kty: v.LiteralSchema<"RSA", undefined>;
559
+ readonly n: v.StringSchema<undefined>;
560
+ readonly e: v.StringSchema<undefined>;
561
+ }, undefined>], undefined>;
562
+
563
+ /**
564
+ * {@link FlattenedJWS} schema (RFC 7515 §7.2.2).
565
+ *
566
+ * @remarks
567
+ * Uses `strictObject` — the three base64url fields
568
+ * are the only expected properties. `payload` may be
569
+ * empty for POST-as-GET requests (RFC 8555 §6.3).
570
+ *
571
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc7515#section-7.2.2}
572
+ */
573
+ declare const FlattenedJWSSchema: v.StrictObjectSchema<{
574
+ readonly protected: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "invalid base64url length">]>;
575
+ readonly payload: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "invalid base64url length">]>;
576
+ readonly signature: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "invalid base64url length">]>;
577
+ }, undefined>;
578
+ /**
579
+ * {@link JWSProtectedHeader} schema (RFC 7515 §4.1).
580
+ *
581
+ * @remarks
582
+ * Uses `looseObject` — JWS headers may contain
583
+ * additional registered or private parameters.
584
+ *
585
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc7515#section-4.1}
586
+ */
587
+ declare const JWSProtectedHeaderSchema: v.LooseObjectSchema<{
588
+ readonly alg: v.StringSchema<undefined>;
589
+ readonly jwk: v.OptionalSchema<v.VariantSchema<"kty", [v.LooseObjectSchema<{
590
+ readonly kid: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
591
+ readonly alg: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
592
+ readonly use: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
593
+ readonly key_ops: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
594
+ readonly x5u: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
595
+ readonly x5c: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
596
+ readonly x5t: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
597
+ readonly 'x5t#S256': v.OptionalSchema<v.StringSchema<undefined>, undefined>;
598
+ readonly kty: v.LiteralSchema<"EC", undefined>;
599
+ readonly crv: v.StringSchema<undefined>;
600
+ readonly x: v.StringSchema<undefined>;
601
+ readonly y: v.StringSchema<undefined>;
602
+ }, undefined>, v.LooseObjectSchema<{
603
+ readonly kid: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
604
+ readonly alg: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
605
+ readonly use: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
606
+ readonly key_ops: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
607
+ readonly x5u: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
608
+ readonly x5c: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
609
+ readonly x5t: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
610
+ readonly 'x5t#S256': v.OptionalSchema<v.StringSchema<undefined>, undefined>;
611
+ readonly kty: v.LiteralSchema<"OKP", undefined>;
612
+ readonly crv: v.StringSchema<undefined>;
613
+ readonly x: v.StringSchema<undefined>;
614
+ }, undefined>, v.LooseObjectSchema<{
615
+ readonly kid: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
616
+ readonly alg: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
617
+ readonly use: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
618
+ readonly key_ops: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
619
+ readonly x5u: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
620
+ readonly x5c: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
621
+ readonly x5t: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
622
+ readonly 'x5t#S256': v.OptionalSchema<v.StringSchema<undefined>, undefined>;
623
+ readonly kty: v.LiteralSchema<"RSA", undefined>;
624
+ readonly n: v.StringSchema<undefined>;
625
+ readonly e: v.StringSchema<undefined>;
626
+ }, undefined>], undefined>, undefined>;
627
+ readonly kid: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
628
+ }, undefined>;
629
+ /**
630
+ * {@link ACMEProtectedHeader} schema (RFC 8555 §6.2).
631
+ *
632
+ * @remarks
633
+ * Uses `looseObject` — extends
634
+ * {@link JWSProtectedHeaderSchema} with ACME-required
635
+ * `nonce` and `url`.
636
+ *
637
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc8555#section-6.2}
638
+ */
639
+ declare const ACMEProtectedHeaderSchema: v.LooseObjectSchema<{
640
+ readonly nonce: v.StringSchema<undefined>;
641
+ readonly url: v.StringSchema<undefined>;
642
+ readonly alg: v.StringSchema<undefined>;
643
+ readonly jwk: v.OptionalSchema<v.VariantSchema<"kty", [v.LooseObjectSchema<{
644
+ readonly kid: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
645
+ readonly alg: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
646
+ readonly use: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
647
+ readonly key_ops: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
648
+ readonly x5u: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
649
+ readonly x5c: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
650
+ readonly x5t: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
651
+ readonly 'x5t#S256': v.OptionalSchema<v.StringSchema<undefined>, undefined>;
652
+ readonly kty: v.LiteralSchema<"EC", undefined>;
653
+ readonly crv: v.StringSchema<undefined>;
654
+ readonly x: v.StringSchema<undefined>;
655
+ readonly y: v.StringSchema<undefined>;
656
+ }, undefined>, v.LooseObjectSchema<{
657
+ readonly kid: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
658
+ readonly alg: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
659
+ readonly use: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
660
+ readonly key_ops: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
661
+ readonly x5u: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
662
+ readonly x5c: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
663
+ readonly x5t: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
664
+ readonly 'x5t#S256': v.OptionalSchema<v.StringSchema<undefined>, undefined>;
665
+ readonly kty: v.LiteralSchema<"OKP", undefined>;
666
+ readonly crv: v.StringSchema<undefined>;
667
+ readonly x: v.StringSchema<undefined>;
668
+ }, undefined>, v.LooseObjectSchema<{
669
+ readonly kid: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
670
+ readonly alg: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
671
+ readonly use: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
672
+ readonly key_ops: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
673
+ readonly x5u: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
674
+ readonly x5c: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
675
+ readonly x5t: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
676
+ readonly 'x5t#S256': v.OptionalSchema<v.StringSchema<undefined>, undefined>;
677
+ readonly kty: v.LiteralSchema<"RSA", undefined>;
678
+ readonly n: v.StringSchema<undefined>;
679
+ readonly e: v.StringSchema<undefined>;
680
+ }, undefined>], undefined>, undefined>;
681
+ readonly kid: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
682
+ }, undefined>;
683
+ /**
684
+ * {@link ACMERequestHeader} schema (RFC 8555 §6.2).
685
+ *
686
+ * @remarks
687
+ * Enforces `jwk` XOR `kid` — servers MUST reject
688
+ * headers containing both. Uses `looseObject` for
689
+ * header extensibility with a `check` action for
690
+ * mutual exclusion.
691
+ *
692
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc8555#section-6.2}
693
+ */
694
+ declare const ACMERequestHeaderSchema: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LooseObjectSchema<{
695
+ readonly jwk: v.VariantSchema<"kty", [v.LooseObjectSchema<{
696
+ readonly kid: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
697
+ readonly alg: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
698
+ readonly use: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
699
+ readonly key_ops: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
700
+ readonly x5u: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
701
+ readonly x5c: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
702
+ readonly x5t: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
703
+ readonly 'x5t#S256': v.OptionalSchema<v.StringSchema<undefined>, undefined>;
704
+ readonly kty: v.LiteralSchema<"EC", undefined>;
705
+ readonly crv: v.StringSchema<undefined>;
706
+ readonly x: v.StringSchema<undefined>;
707
+ readonly y: v.StringSchema<undefined>;
708
+ }, undefined>, v.LooseObjectSchema<{
709
+ readonly kid: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
710
+ readonly alg: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
711
+ readonly use: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
712
+ readonly key_ops: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
713
+ readonly x5u: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
714
+ readonly x5c: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
715
+ readonly x5t: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
716
+ readonly 'x5t#S256': v.OptionalSchema<v.StringSchema<undefined>, undefined>;
717
+ readonly kty: v.LiteralSchema<"OKP", undefined>;
718
+ readonly crv: v.StringSchema<undefined>;
719
+ readonly x: v.StringSchema<undefined>;
720
+ }, undefined>, v.LooseObjectSchema<{
721
+ readonly kid: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
722
+ readonly alg: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
723
+ readonly use: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
724
+ readonly key_ops: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
725
+ readonly x5u: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
726
+ readonly x5c: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
727
+ readonly x5t: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
728
+ readonly 'x5t#S256': v.OptionalSchema<v.StringSchema<undefined>, undefined>;
729
+ readonly kty: v.LiteralSchema<"RSA", undefined>;
730
+ readonly n: v.StringSchema<undefined>;
731
+ readonly e: v.StringSchema<undefined>;
732
+ }, undefined>], undefined>;
733
+ readonly alg: v.StringSchema<undefined>;
734
+ readonly nonce: v.StringSchema<undefined>;
735
+ readonly url: v.StringSchema<undefined>;
736
+ }, undefined>, v.LooseObjectSchema<{
737
+ readonly kid: v.StringSchema<undefined>;
738
+ readonly alg: v.StringSchema<undefined>;
739
+ readonly nonce: v.StringSchema<undefined>;
740
+ readonly url: v.StringSchema<undefined>;
741
+ }, undefined>], undefined>, v.CheckAction<({
742
+ jwk: ({
743
+ kid?: string | undefined;
744
+ alg?: string | undefined;
745
+ use?: string | undefined;
746
+ key_ops?: readonly string[] | undefined;
747
+ x5u?: string | undefined;
748
+ x5c?: readonly string[] | undefined;
749
+ x5t?: string | undefined;
750
+ 'x5t#S256'?: string | undefined;
751
+ kty: "EC";
752
+ crv: string;
753
+ x: string;
754
+ y: string;
755
+ } & {
756
+ [key: string]: unknown;
757
+ }) | ({
758
+ kid?: string | undefined;
759
+ alg?: string | undefined;
760
+ use?: string | undefined;
761
+ key_ops?: readonly string[] | undefined;
762
+ x5u?: string | undefined;
763
+ x5c?: readonly string[] | undefined;
764
+ x5t?: string | undefined;
765
+ 'x5t#S256'?: string | undefined;
766
+ kty: "OKP";
767
+ crv: string;
768
+ x: string;
769
+ } & {
770
+ [key: string]: unknown;
771
+ }) | ({
772
+ kid?: string | undefined;
773
+ alg?: string | undefined;
774
+ use?: string | undefined;
775
+ key_ops?: readonly string[] | undefined;
776
+ x5u?: string | undefined;
777
+ x5c?: readonly string[] | undefined;
778
+ x5t?: string | undefined;
779
+ 'x5t#S256'?: string | undefined;
780
+ kty: "RSA";
781
+ n: string;
782
+ e: string;
783
+ } & {
784
+ [key: string]: unknown;
785
+ });
786
+ alg: string;
787
+ nonce: string;
788
+ url: string;
789
+ } & {
790
+ [key: string]: unknown;
791
+ }) | ({
792
+ kid: string;
793
+ alg: string;
794
+ nonce: string;
795
+ url: string;
796
+ } & {
797
+ [key: string]: unknown;
798
+ }), "Provide 'jwk' or 'kid', not both">]>;
799
+
800
+ /**
801
+ * {@link KeyChange} schema (RFC 8555 §7.3.5).
802
+ *
803
+ * @remarks
804
+ * Uses `strictObject` — the inner JWS payload has
805
+ * exactly two fields.
806
+ *
807
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc8555#section-7.3.5}
808
+ */
809
+ declare const KeyChangeSchema: v.StrictObjectSchema<{
810
+ readonly account: v.StringSchema<undefined>;
811
+ readonly oldKey: v.VariantSchema<"kty", [v.LooseObjectSchema<{
812
+ readonly kid: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
813
+ readonly alg: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
814
+ readonly use: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
815
+ readonly key_ops: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
816
+ readonly x5u: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
817
+ readonly x5c: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
818
+ readonly x5t: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
819
+ readonly 'x5t#S256': v.OptionalSchema<v.StringSchema<undefined>, undefined>;
820
+ readonly kty: v.LiteralSchema<"EC", undefined>;
821
+ readonly crv: v.StringSchema<undefined>;
822
+ readonly x: v.StringSchema<undefined>;
823
+ readonly y: v.StringSchema<undefined>;
824
+ }, undefined>, v.LooseObjectSchema<{
825
+ readonly kid: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
826
+ readonly alg: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
827
+ readonly use: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
828
+ readonly key_ops: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
829
+ readonly x5u: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
830
+ readonly x5c: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
831
+ readonly x5t: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
832
+ readonly 'x5t#S256': v.OptionalSchema<v.StringSchema<undefined>, undefined>;
833
+ readonly kty: v.LiteralSchema<"OKP", undefined>;
834
+ readonly crv: v.StringSchema<undefined>;
835
+ readonly x: v.StringSchema<undefined>;
836
+ }, undefined>, v.LooseObjectSchema<{
837
+ readonly kid: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
838
+ readonly alg: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
839
+ readonly use: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
840
+ readonly key_ops: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
841
+ readonly x5u: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
842
+ readonly x5c: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
843
+ readonly x5t: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
844
+ readonly 'x5t#S256': v.OptionalSchema<v.StringSchema<undefined>, undefined>;
845
+ readonly kty: v.LiteralSchema<"RSA", undefined>;
846
+ readonly n: v.StringSchema<undefined>;
847
+ readonly e: v.StringSchema<undefined>;
848
+ }, undefined>], undefined>;
849
+ }, undefined>;
850
+
851
+ /**
852
+ * {@link NewAccount} schema (RFC 8555 §7.3).
853
+ *
854
+ * @remarks
855
+ * Uses `strictObject` — request payloads have a
856
+ * fixed set of fields.
857
+ *
858
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc8555#section-7.3}
859
+ */
860
+ declare const NewAccountSchema: v.StrictObjectSchema<{
861
+ readonly contact: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
862
+ readonly termsOfServiceAgreed: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
863
+ readonly onlyReturnExisting: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
864
+ readonly externalAccountBinding: v.OptionalSchema<v.StrictObjectSchema<{
865
+ readonly protected: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "invalid base64url length">]>;
866
+ readonly payload: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "invalid base64url length">]>;
867
+ readonly signature: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "invalid base64url length">]>;
868
+ }, undefined>, undefined>;
869
+ }, undefined>;
870
+ /**
871
+ * {@link DeactivateAccount} schema
872
+ * (RFC 8555 §7.3.6).
873
+ *
874
+ * @remarks
875
+ * Uses `strictObject` — deactivation sends only
876
+ * `status: 'deactivated'`.
877
+ *
878
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc8555#section-7.3.6}
879
+ */
880
+ declare const DeactivateAccountSchema: v.StrictObjectSchema<{
881
+ readonly status: v.LiteralSchema<"deactivated", undefined>;
882
+ }, undefined>;
883
+
884
+ /**
885
+ * {@link NewAuthz} schema (RFC 8555 §7.4.1).
886
+ *
887
+ * @remarks
888
+ * Uses `strictObject` — request payloads have a
889
+ * fixed set of fields.
890
+ *
891
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc8555#section-7.4.1}
892
+ */
893
+ declare const NewAuthzSchema: v.StrictObjectSchema<{
894
+ readonly identifier: v.StrictObjectSchema<{
895
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
896
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
897
+ }, undefined>;
898
+ }, undefined>;
899
+ /**
900
+ * {@link DeactivateAuthorization} schema
901
+ * (RFC 8555 §7.5.2).
902
+ *
903
+ * @remarks
904
+ * Uses `strictObject` — deactivation sends only
905
+ * `status: 'deactivated'`.
906
+ *
907
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc8555#section-7.5.2}
908
+ */
909
+ declare const DeactivateAuthorizationSchema: v.StrictObjectSchema<{
910
+ readonly status: v.LiteralSchema<"deactivated", undefined>;
911
+ }, undefined>;
912
+
913
+ /**
914
+ * {@link NewOrder} schema (RFC 8555 §7.4).
915
+ *
916
+ * @remarks
917
+ * Uses `strictObject` — request payloads have a
918
+ * fixed set of fields. Includes ARI `replaces`
919
+ * (RFC 9773) and Profiles `profile`
920
+ * (draft-ietf-acme-profiles) extensions.
921
+ *
922
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc8555#section-7.4}
923
+ */
924
+ declare const NewOrderSchema: v.StrictObjectSchema<{
925
+ readonly identifiers: v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
926
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
927
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
928
+ }, undefined>, undefined>, v.MinLengthAction<{
929
+ type: "dns" | "ip";
930
+ value: string;
931
+ }[], 1, undefined>]>;
932
+ readonly notBefore: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
933
+ readonly notAfter: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
934
+ readonly profile: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
935
+ readonly replaces: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
936
+ }, undefined>;
937
+
938
+ /**
939
+ * {@link Order} schema.
940
+ *
941
+ * @remarks
942
+ * Uses `looseObject` — unknown fields pass through.
943
+ * Includes ARI `replaces` (RFC 9773) and Profiles
944
+ * `profile` (draft-ietf-acme-profiles) extensions.
945
+ *
946
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc8555#section-7.1.3}
947
+ */
948
+ declare const OrderSchema: v.LooseObjectSchema<{
949
+ readonly status: v.PicklistSchema<readonly ["pending", "ready", "processing", "valid", "invalid"], undefined>;
950
+ readonly expires: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
951
+ readonly identifiers: v.ArraySchema<v.LooseObjectSchema<{
952
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
953
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
954
+ }, undefined>, undefined>;
955
+ readonly notBefore: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
956
+ readonly notAfter: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
957
+ readonly error: v.OptionalSchema<v.LooseObjectSchema<{
958
+ readonly type: v.StringSchema<undefined>;
959
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
960
+ readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
961
+ readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 100, undefined>, v.MaxValueAction<number, 599, undefined>]>, undefined>;
962
+ readonly instance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
963
+ readonly identifier: v.OptionalSchema<v.LooseObjectSchema<{
964
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
965
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
966
+ }, undefined>, undefined>;
967
+ readonly subproblems: v.OptionalSchema<v.ArraySchema<v.LooseObjectSchema<{
968
+ readonly type: v.StringSchema<undefined>;
969
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
970
+ readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
971
+ readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 100, undefined>, v.MaxValueAction<number, 599, undefined>]>, undefined>;
972
+ readonly instance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
973
+ readonly identifier: v.OptionalSchema<v.LooseObjectSchema<{
974
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
975
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
976
+ }, undefined>, undefined>;
977
+ }, undefined>, undefined>, undefined>;
978
+ }, undefined>, undefined>;
979
+ readonly authorizations: v.ArraySchema<v.StringSchema<undefined>, undefined>;
980
+ readonly finalize: v.StringSchema<undefined>;
981
+ readonly certificate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
982
+ readonly replaces: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
983
+ readonly profile: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
984
+ }, undefined>;
985
+
986
+ /**
987
+ * {@link Subproblem} schema.
988
+ *
989
+ * @remarks
990
+ * Uses `looseObject` — unknown fields pass through.
991
+ *
992
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc8555#section-6.7.1}
993
+ */
994
+ declare const SubproblemSchema: v.LooseObjectSchema<{
995
+ readonly type: v.StringSchema<undefined>;
996
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
997
+ readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
998
+ readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 100, undefined>, v.MaxValueAction<number, 599, undefined>]>, undefined>;
999
+ readonly instance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1000
+ readonly identifier: v.OptionalSchema<v.LooseObjectSchema<{
1001
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
1002
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1003
+ }, undefined>, undefined>;
1004
+ }, undefined>;
1005
+ /**
1006
+ * {@link Problem} schema.
1007
+ *
1008
+ * @remarks
1009
+ * Uses `looseObject` — unknown fields pass through.
1010
+ * `type` is validated as a plain string, not against
1011
+ * {@link ErrorTypes}, to accept server-defined URNs
1012
+ * beyond the ACME namespace.
1013
+ *
1014
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc7807}
1015
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc8555#section-6.7.1}
1016
+ */
1017
+ declare const ProblemSchema: v.LooseObjectSchema<{
1018
+ readonly type: v.StringSchema<undefined>;
1019
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1020
+ readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1021
+ readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 100, undefined>, v.MaxValueAction<number, 599, undefined>]>, undefined>;
1022
+ readonly instance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1023
+ readonly identifier: v.OptionalSchema<v.LooseObjectSchema<{
1024
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
1025
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1026
+ }, undefined>, undefined>;
1027
+ readonly subproblems: v.OptionalSchema<v.ArraySchema<v.LooseObjectSchema<{
1028
+ readonly type: v.StringSchema<undefined>;
1029
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1030
+ readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1031
+ readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 100, undefined>, v.MaxValueAction<number, 599, undefined>]>, undefined>;
1032
+ readonly instance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1033
+ readonly identifier: v.OptionalSchema<v.LooseObjectSchema<{
1034
+ type: v.PicklistSchema<readonly ["dns", "ip"], undefined>;
1035
+ value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1036
+ }, undefined>, undefined>;
1037
+ }, undefined>, undefined>, undefined>;
1038
+ }, undefined>;
1039
+
1040
+ /**
1041
+ * {@link RenewalInfo} schema (RFC 9773 §4).
1042
+ *
1043
+ * @remarks
1044
+ * Uses `looseObject` — unknown fields pass through.
1045
+ *
1046
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc9773#section-4}
1047
+ */
1048
+ declare const RenewalInfoSchema: v.LooseObjectSchema<{
1049
+ readonly suggestedWindow: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
1050
+ readonly start: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
1051
+ readonly end: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
1052
+ }, undefined>, v.CheckAction<{
1053
+ start: string;
1054
+ end: string;
1055
+ }, "'start' must be before 'end'">]>;
1056
+ readonly explanationURL: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1057
+ }, undefined>;
1058
+ /**
1059
+ * {@link CertID} schema (RFC 9773 §4.1).
1060
+ *
1061
+ * @remarks
1062
+ * Validates the `base64url(AKI).base64url(Serial)`
1063
+ * format used to identify certificates in ARI.
1064
+ *
1065
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc9773#section-4.1}
1066
+ */
1067
+ declare const CertIDSchema: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
1068
+
1069
+ /**
1070
+ * {@link RevokeCert} schema (RFC 8555 §7.6).
1071
+ *
1072
+ * @remarks
1073
+ * Uses `strictObject` — only `certificate` and
1074
+ * optional `reason` are expected.
1075
+ *
1076
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc8555#section-7.6}
1077
+ */
1078
+ declare const RevokeCertSchema: v.StrictObjectSchema<{
1079
+ readonly certificate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, "invalid base64url length">]>;
1080
+ readonly reason: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.PicklistSchema<[0, 1, 2, 3, 4, 5, 6, 8, 9, 10], undefined>]>, undefined>;
1081
+ }, undefined>;
1082
+
1083
+ /**
1084
+ * Successful validation — discriminate on `success`.
1085
+ *
1086
+ * @typeParam T - the validated type
1087
+ */
1088
+ type ValidationSuccess<T> = {
1089
+ success: true;
1090
+ data: T;
1091
+ };
1092
+ /**
1093
+ * Failed validation — discriminate on `success`.
1094
+ *
1095
+ * @remarks
1096
+ * `issues` contains Valibot's structured error
1097
+ * details (path, message, expected/received).
1098
+ */
1099
+ type ValidationFailure = {
1100
+ success: false;
1101
+ issues: v.BaseIssue<unknown>[];
1102
+ };
1103
+ /**
1104
+ * Discriminated validation result.
1105
+ *
1106
+ * @typeParam T - the validated type on success
1107
+ *
1108
+ * @example
1109
+ * ```typescript
1110
+ * const result = validateOrder(json);
1111
+ * if (result.success) {
1112
+ * result.data; // Order
1113
+ * } else {
1114
+ * result.issues; // BaseIssue<unknown>[]
1115
+ * }
1116
+ * ```
1117
+ */
1118
+ type ValidationResult<T> = ValidationFailure | ValidationSuccess<T>;
1119
+ /**
1120
+ * Validate a {@link Base64url} string.
1121
+ *
1122
+ * @param input - raw string
1123
+ * @returns {@link ValidationResult} with
1124
+ * {@link Base64url} on success
1125
+ */
1126
+ declare function validateBase64url(input: unknown): ValidationResult<Base64url>;
1127
+ /**
1128
+ * Validate a {@link Base64url} string, allowing empty
1129
+ * (POST-as-GET payload).
1130
+ *
1131
+ * @param input - raw string
1132
+ * @returns {@link ValidationResult} with
1133
+ * {@link Base64url} or empty string on success
1134
+ */
1135
+ declare function validateBase64urlOrEmpty(input: unknown): ValidationResult<string>;
1136
+ /**
1137
+ * Validate an {@link Account} payload.
1138
+ *
1139
+ * @param input - parsed JSON
1140
+ * @returns {@link ValidationResult} with
1141
+ * {@link Account} on success
1142
+ */
1143
+ declare function validateAccount(input: unknown): ValidationResult<Account>;
1144
+ /**
1145
+ * Validate an {@link Authorization} payload.
1146
+ *
1147
+ * @param input - parsed JSON
1148
+ * @returns {@link ValidationResult} with
1149
+ * {@link Authorization} on success
1150
+ */
1151
+ declare function validateAuthorization(input: unknown): ValidationResult<Authorization>;
1152
+ /**
1153
+ * Validate a {@link Challenge} payload.
1154
+ *
1155
+ * @param input - parsed JSON
1156
+ * @returns {@link ValidationResult} with
1157
+ * {@link Challenge} on success
1158
+ */
1159
+ declare function validateChallenge(input: unknown): ValidationResult<Challenge>;
1160
+ /**
1161
+ * Validate a {@link CertID} string.
1162
+ *
1163
+ * @param input - raw string
1164
+ * @returns {@link ValidationResult} with
1165
+ * {@link CertID} on success
1166
+ */
1167
+ declare function validateCertID(input: unknown): ValidationResult<CertID>;
1168
+ /**
1169
+ * Validate a {@link Directory} payload.
1170
+ *
1171
+ * @param input - parsed JSON
1172
+ * @returns {@link ValidationResult} with
1173
+ * {@link Directory} on success
1174
+ */
1175
+ declare function validateDirectory(input: unknown): ValidationResult<Directory>;
1176
+ /**
1177
+ * Validate a {@link DirectoryMeta} payload.
1178
+ *
1179
+ * @param input - parsed JSON
1180
+ * @returns {@link ValidationResult} with
1181
+ * {@link DirectoryMeta} on success
1182
+ */
1183
+ declare function validateDirectoryMeta(input: unknown): ValidationResult<DirectoryMeta>;
1184
+ /**
1185
+ * Validate a {@link Finalize} payload.
1186
+ *
1187
+ * @param input - parsed JSON
1188
+ * @returns {@link ValidationResult} with
1189
+ * {@link Finalize} on success
1190
+ */
1191
+ declare function validateFinalize(input: unknown): ValidationResult<Finalize>;
1192
+ /**
1193
+ * Validate a {@link FlattenedJWS} payload.
1194
+ *
1195
+ * @param input - parsed JSON
1196
+ * @returns {@link ValidationResult} with
1197
+ * {@link FlattenedJWS} on success
1198
+ */
1199
+ declare function validateFlattenedJWS(input: unknown): ValidationResult<FlattenedJWS>;
1200
+ /**
1201
+ * Validate a {@link JWSProtectedHeader} payload.
1202
+ *
1203
+ * @param input - decoded protected header JSON
1204
+ * @returns {@link ValidationResult} with
1205
+ * {@link JWSProtectedHeader} on success
1206
+ */
1207
+ declare function validateJWSProtectedHeader(input: unknown): ValidationResult<JWSProtectedHeader>;
1208
+ /**
1209
+ * Validate an {@link ACMEProtectedHeader} payload.
1210
+ *
1211
+ * @param input - decoded protected header JSON
1212
+ * @returns {@link ValidationResult} with
1213
+ * {@link ACMEProtectedHeader} on success
1214
+ */
1215
+ declare function validateACMEProtectedHeader(input: unknown): ValidationResult<ACMEProtectedHeader>;
1216
+ /**
1217
+ * Validate an {@link ACMERequestHeader} payload.
1218
+ *
1219
+ * @param input - decoded protected header JSON
1220
+ * @returns {@link ValidationResult} with
1221
+ * {@link ACMERequestHeader} on success
1222
+ */
1223
+ declare function validateACMERequestHeader(input: unknown): ValidationResult<ACMERequestHeader>;
1224
+ /**
1225
+ * Validate an {@link Identifier} payload.
1226
+ *
1227
+ * @param input - parsed JSON
1228
+ * @returns {@link ValidationResult} with
1229
+ * {@link Identifier} on success
1230
+ */
1231
+ declare function validateIdentifier(input: unknown): ValidationResult<Identifier>;
1232
+ /**
1233
+ * Validate an {@link Order} payload.
1234
+ *
1235
+ * @param input - parsed JSON
1236
+ * @returns {@link ValidationResult} with
1237
+ * {@link Order} on success
1238
+ */
1239
+ declare function validateOrder(input: unknown): ValidationResult<Order>;
1240
+ /**
1241
+ * Validate a {@link Problem} payload.
1242
+ *
1243
+ * @param input - parsed JSON
1244
+ * @returns {@link ValidationResult} with
1245
+ * {@link Problem} on success
1246
+ */
1247
+ declare function validateProblem(input: unknown): ValidationResult<Problem>;
1248
+ /**
1249
+ * Validate a {@link RenewalInfo} payload.
1250
+ *
1251
+ * @param input - parsed JSON
1252
+ * @returns {@link ValidationResult} with
1253
+ * {@link RenewalInfo} on success
1254
+ */
1255
+ declare function validateRenewalInfo(input: unknown): ValidationResult<RenewalInfo>;
1256
+ /**
1257
+ * Validate a {@link RevokeCert} payload.
1258
+ *
1259
+ * @param input - parsed JSON
1260
+ * @returns {@link ValidationResult} with
1261
+ * {@link RevokeCert} on success
1262
+ */
1263
+ declare function validateRevokeCert(input: unknown): ValidationResult<RevokeCert>;
1264
+ /**
1265
+ * Validate a {@link Subproblem} payload.
1266
+ *
1267
+ * @param input - parsed JSON
1268
+ * @returns {@link ValidationResult} with
1269
+ * {@link Subproblem} on success
1270
+ */
1271
+ declare function validateSubproblem(input: unknown): ValidationResult<Subproblem>;
1272
+ /**
1273
+ * Validate a {@link JWK} payload.
1274
+ *
1275
+ * @param input - parsed JSON
1276
+ * @returns {@link ValidationResult} with
1277
+ * {@link JWK} on success
1278
+ */
1279
+ declare function validateJWK(input: unknown): ValidationResult<JWK>;
1280
+ /**
1281
+ * Validate a {@link KeyChange} payload.
1282
+ *
1283
+ * @param input - parsed JSON
1284
+ * @returns {@link ValidationResult} with
1285
+ * {@link KeyChange} on success
1286
+ */
1287
+ declare function validateKeyChange(input: unknown): ValidationResult<KeyChange>;
1288
+ /**
1289
+ * Validate a {@link NewAccount} payload.
1290
+ *
1291
+ * @param input - parsed JSON
1292
+ * @returns {@link ValidationResult} with
1293
+ * {@link NewAccount} on success
1294
+ */
1295
+ declare function validateNewAccount(input: unknown): ValidationResult<NewAccount>;
1296
+ /**
1297
+ * Validate a {@link DeactivateAccount} payload.
1298
+ *
1299
+ * @param input - parsed JSON
1300
+ * @returns {@link ValidationResult} with
1301
+ * {@link DeactivateAccount} on success
1302
+ */
1303
+ declare function validateDeactivateAccount(input: unknown): ValidationResult<DeactivateAccount>;
1304
+ /**
1305
+ * Validate a {@link NewOrder} payload.
1306
+ *
1307
+ * @param input - parsed JSON
1308
+ * @returns {@link ValidationResult} with
1309
+ * {@link NewOrder} on success
1310
+ */
1311
+ declare function validateNewOrder(input: unknown): ValidationResult<NewOrder>;
1312
+ /**
1313
+ * Validate a {@link NewAuthz} payload.
1314
+ *
1315
+ * @param input - parsed JSON
1316
+ * @returns {@link ValidationResult} with
1317
+ * {@link NewAuthz} on success
1318
+ */
1319
+ declare function validateNewAuthz(input: unknown): ValidationResult<NewAuthz>;
1320
+ /**
1321
+ * Validate a {@link DeactivateAuthorization}
1322
+ * payload.
1323
+ *
1324
+ * @param input - parsed JSON
1325
+ * @returns {@link ValidationResult} with
1326
+ * {@link DeactivateAuthorization} on success
1327
+ */
1328
+ declare function validateDeactivateAuthorization(input: unknown): ValidationResult<DeactivateAuthorization>;
1329
+
1330
+ export { ACMEProtectedHeaderSchema, ACMERequestHeaderSchema, AccountSchema, AuthorizationSchema, Base64urlOrEmptySchema, Base64urlSchema, CertIDSchema, ChallengeSchema, DeactivateAccountSchema, DeactivateAuthorizationSchema, DirectoryMetaSchema, DirectorySchema, FinalizeSchema, FlattenedJWSSchema, IdentifierSchema, JWKSchema, JWSProtectedHeaderSchema, KeyChangeSchema, NewAccountSchema, NewAuthzSchema, NewOrderSchema, OrderSchema, ProblemSchema, RenewalInfoSchema, RevokeCertSchema, StrictIdentifierSchema, SubproblemSchema, validateACMEProtectedHeader, validateACMERequestHeader, validateAccount, validateAuthorization, validateBase64url, validateBase64urlOrEmpty, validateCertID, validateChallenge, validateDeactivateAccount, validateDeactivateAuthorization, validateDirectory, validateDirectoryMeta, validateFinalize, validateFlattenedJWS, validateIdentifier, validateJWK, validateJWSProtectedHeader, validateKeyChange, validateNewAccount, validateNewAuthz, validateNewOrder, validateOrder, validateProblem, validateRenewalInfo, validateRevokeCert, validateSubproblem };
1331
+ export type { ValidationFailure, ValidationResult, ValidationSuccess };