@navios/jwt 0.1.1 → 0.2.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,1406 @@
1
+ import type { BoundInjectionToken } from '@navios/core';
2
+ import type { FactoryContext } from '@navios/core';
3
+ import type { FactoryInjectionToken } from '@navios/core';
4
+ import { InjectionToken } from '@navios/core';
5
+ import jwt from 'jsonwebtoken';
6
+ import { LoggerInstance } from '@navios/core';
7
+ import { objectInputType } from 'zod';
8
+ import { objectOutputType } from 'zod';
9
+ import { RequestType as RequestType_2 } from './options/jwt-service.options.mjs';
10
+ import type { Secret as Secret_2 } from 'jsonwebtoken';
11
+ import { z } from 'zod';
12
+ import { ZodAny } from 'zod';
13
+ import { ZodArray } from 'zod';
14
+ import { ZodBoolean } from 'zod';
15
+ import { ZodEnum } from 'zod';
16
+ import { ZodFunction } from 'zod';
17
+ import { ZodNativeEnum } from 'zod';
18
+ import { ZodNumber } from 'zod';
19
+ import { ZodObject } from 'zod';
20
+ import { ZodOptional } from 'zod';
21
+ import { ZodPromise } from 'zod';
22
+ import { ZodString } from 'zod';
23
+ import { ZodTuple } from 'zod';
24
+ import { ZodType } from 'zod';
25
+ import { ZodTypeAny } from 'zod';
26
+ import { ZodTypeDef } from 'zod';
27
+ import { ZodUnion } from 'zod';
28
+ import { ZodUnknown } from 'zod';
29
+
30
+ declare const AlgorithmType: z.ZodEnum<["HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512", "PS256", "PS384", "PS512", "none"]>;
31
+ export { AlgorithmType }
32
+ export { AlgorithmType as AlgorithmType_alias_1 }
33
+
34
+ declare type GetSecretKeyResult = string | Buffer | Secret_2;
35
+ export { GetSecretKeyResult }
36
+ export { GetSecretKeyResult as GetSecretKeyResult_alias_1 }
37
+
38
+ export declare const JsonWebTokenError: typeof jwt.JsonWebTokenError;
39
+
40
+ declare type JwtHeader = z.infer<typeof JwtHeaderSchema>;
41
+ export { JwtHeader }
42
+ export { JwtHeader as JwtHeader_alias_1 }
43
+
44
+ declare const JwtHeaderSchema: z.ZodObject<{
45
+ alg: z.ZodUnion<[z.ZodEnum<["HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512", "PS256", "PS384", "PS512", "none"]>, z.ZodString]>;
46
+ typ: z.ZodOptional<z.ZodString>;
47
+ cty: z.ZodOptional<z.ZodString>;
48
+ crit: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
49
+ kid: z.ZodOptional<z.ZodString>;
50
+ jku: z.ZodOptional<z.ZodString>;
51
+ x5u: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
52
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
53
+ x5t: z.ZodOptional<z.ZodString>;
54
+ x5c: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
55
+ }, "strip", z.ZodTypeAny, {
56
+ alg: string;
57
+ typ?: string | undefined;
58
+ cty?: string | undefined;
59
+ crit?: string[] | undefined;
60
+ kid?: string | undefined;
61
+ jku?: string | undefined;
62
+ x5u?: string | string[] | undefined;
63
+ 'x5t#S256'?: string | undefined;
64
+ x5t?: string | undefined;
65
+ x5c?: string | string[] | undefined;
66
+ }, {
67
+ alg: string;
68
+ typ?: string | undefined;
69
+ cty?: string | undefined;
70
+ crit?: string[] | undefined;
71
+ kid?: string | undefined;
72
+ jku?: string | undefined;
73
+ x5u?: string | string[] | undefined;
74
+ 'x5t#S256'?: string | undefined;
75
+ x5t?: string | undefined;
76
+ x5c?: string | string[] | undefined;
77
+ }>;
78
+ export { JwtHeaderSchema }
79
+ export { JwtHeaderSchema as JwtHeaderSchema_alias_1 }
80
+
81
+ declare class JwtService {
82
+ private readonly options;
83
+ logger: LoggerInstance;
84
+ constructor(options?: JwtServiceOptions);
85
+ sign(payload: string, options?: Omit<JwtSignOptions, keyof SignOptions>): string;
86
+ sign(payload: Buffer | object, options?: JwtSignOptions): string;
87
+ signAsync(payload: string, options?: Omit<JwtSignOptions, keyof jwt.SignOptions>): Promise<string>;
88
+ signAsync(payload: Buffer | object, options?: JwtSignOptions): Promise<string>;
89
+ verify<T extends object = any>(token: string, options?: JwtVerifyOptions): T;
90
+ verifyAsync<T extends object = any>(token: string, options?: JwtVerifyOptions): Promise<T>;
91
+ decode<T = any>(token: string, options?: jwt.DecodeOptions): T;
92
+ private mergeJwtOptions;
93
+ private getSecretKey;
94
+ }
95
+ export { JwtService }
96
+ export { JwtService as JwtService_alias_1 }
97
+
98
+ declare class JwtServiceFactory {
99
+ create(ctx: FactoryContext, args: JwtServiceOptions): Promise<JwtService>;
100
+ }
101
+ export { JwtServiceFactory }
102
+ export { JwtServiceFactory as JwtServiceFactory_alias_1 }
103
+
104
+ declare type JwtServiceOptions = z.infer<typeof JwtServiceOptionsSchema>;
105
+ export { JwtServiceOptions }
106
+ export { JwtServiceOptions as JwtServiceOptions_alias_1 }
107
+
108
+ declare const JwtServiceOptionsSchema: z.ZodObject<{
109
+ signOptions: z.ZodOptional<z.ZodObject<{
110
+ algorithm: z.ZodOptional<z.ZodEnum<["HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512", "PS256", "PS384", "PS512", "none"]>>;
111
+ keyid: z.ZodOptional<z.ZodString>;
112
+ expiresIn: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
113
+ notBefore: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
114
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
115
+ subject: z.ZodOptional<z.ZodString>;
116
+ issuer: z.ZodOptional<z.ZodString>;
117
+ jwtid: z.ZodOptional<z.ZodString>;
118
+ mutatePayload: z.ZodOptional<z.ZodBoolean>;
119
+ noTimestamp: z.ZodOptional<z.ZodBoolean>;
120
+ header: z.ZodOptional<z.ZodObject<{
121
+ alg: z.ZodUnion<[z.ZodEnum<["HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512", "PS256", "PS384", "PS512", "none"]>, z.ZodString]>;
122
+ typ: z.ZodOptional<z.ZodString>;
123
+ cty: z.ZodOptional<z.ZodString>;
124
+ crit: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
125
+ kid: z.ZodOptional<z.ZodString>;
126
+ jku: z.ZodOptional<z.ZodString>;
127
+ x5u: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
128
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
129
+ x5t: z.ZodOptional<z.ZodString>;
130
+ x5c: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
131
+ }, "strip", z.ZodTypeAny, {
132
+ alg: string;
133
+ typ?: string | undefined;
134
+ cty?: string | undefined;
135
+ crit?: string[] | undefined;
136
+ kid?: string | undefined;
137
+ jku?: string | undefined;
138
+ x5u?: string | string[] | undefined;
139
+ 'x5t#S256'?: string | undefined;
140
+ x5t?: string | undefined;
141
+ x5c?: string | string[] | undefined;
142
+ }, {
143
+ alg: string;
144
+ typ?: string | undefined;
145
+ cty?: string | undefined;
146
+ crit?: string[] | undefined;
147
+ kid?: string | undefined;
148
+ jku?: string | undefined;
149
+ x5u?: string | string[] | undefined;
150
+ 'x5t#S256'?: string | undefined;
151
+ x5t?: string | undefined;
152
+ x5c?: string | string[] | undefined;
153
+ }>>;
154
+ encoding: z.ZodOptional<z.ZodString>;
155
+ allowInsecureKeySizes: z.ZodOptional<z.ZodBoolean>;
156
+ allowInvalidAsymmetricKeyTypes: z.ZodOptional<z.ZodBoolean>;
157
+ }, "strip", z.ZodTypeAny, {
158
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none" | undefined;
159
+ keyid?: string | undefined;
160
+ expiresIn?: string | number | undefined;
161
+ notBefore?: string | number | undefined;
162
+ audience?: string | string[] | undefined;
163
+ subject?: string | undefined;
164
+ issuer?: string | undefined;
165
+ jwtid?: string | undefined;
166
+ mutatePayload?: boolean | undefined;
167
+ noTimestamp?: boolean | undefined;
168
+ header?: {
169
+ alg: string;
170
+ typ?: string | undefined;
171
+ cty?: string | undefined;
172
+ crit?: string[] | undefined;
173
+ kid?: string | undefined;
174
+ jku?: string | undefined;
175
+ x5u?: string | string[] | undefined;
176
+ 'x5t#S256'?: string | undefined;
177
+ x5t?: string | undefined;
178
+ x5c?: string | string[] | undefined;
179
+ } | undefined;
180
+ encoding?: string | undefined;
181
+ allowInsecureKeySizes?: boolean | undefined;
182
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
183
+ }, {
184
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none" | undefined;
185
+ keyid?: string | undefined;
186
+ expiresIn?: string | number | undefined;
187
+ notBefore?: string | number | undefined;
188
+ audience?: string | string[] | undefined;
189
+ subject?: string | undefined;
190
+ issuer?: string | undefined;
191
+ jwtid?: string | undefined;
192
+ mutatePayload?: boolean | undefined;
193
+ noTimestamp?: boolean | undefined;
194
+ header?: {
195
+ alg: string;
196
+ typ?: string | undefined;
197
+ cty?: string | undefined;
198
+ crit?: string[] | undefined;
199
+ kid?: string | undefined;
200
+ jku?: string | undefined;
201
+ x5u?: string | string[] | undefined;
202
+ 'x5t#S256'?: string | undefined;
203
+ x5t?: string | undefined;
204
+ x5c?: string | string[] | undefined;
205
+ } | undefined;
206
+ encoding?: string | undefined;
207
+ allowInsecureKeySizes?: boolean | undefined;
208
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
209
+ }>>;
210
+ secret: z.ZodOptional<z.ZodString>;
211
+ publicKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>]>>;
212
+ privateKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodObject<{
213
+ type: z.ZodString;
214
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
215
+ type: z.ZodString;
216
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
217
+ type: z.ZodString;
218
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
219
+ key: z.ZodUnion<[z.ZodString, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>]>;
220
+ passphrase: z.ZodString;
221
+ }, "strip", z.ZodTypeAny, {
222
+ key: string | Buffer<ArrayBufferLike>;
223
+ passphrase: string;
224
+ }, {
225
+ key: string | Buffer<ArrayBufferLike>;
226
+ passphrase: string;
227
+ }>]>>;
228
+ verifyOptions: z.ZodOptional<z.ZodObject<{
229
+ algorithms: z.ZodOptional<z.ZodArray<z.ZodEnum<["HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512", "PS256", "PS384", "PS512", "none"]>, "many">>;
230
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>, z.ZodArray<z.ZodString, "many">]>>;
231
+ clockTimestamp: z.ZodOptional<z.ZodNumber>;
232
+ clockTolerance: z.ZodOptional<z.ZodNumber>;
233
+ complete: z.ZodOptional<z.ZodBoolean>;
234
+ issuer: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
235
+ ignoreExpiration: z.ZodOptional<z.ZodBoolean>;
236
+ ignoreNotBefore: z.ZodOptional<z.ZodBoolean>;
237
+ jwtid: z.ZodOptional<z.ZodString>;
238
+ nonce: z.ZodOptional<z.ZodString>;
239
+ subject: z.ZodOptional<z.ZodString>;
240
+ maxAge: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
241
+ allowInvalidAsymmetricKeyTypes: z.ZodOptional<z.ZodBoolean>;
242
+ }, "strip", z.ZodTypeAny, {
243
+ audience?: string | RegExp | string[] | undefined;
244
+ subject?: string | undefined;
245
+ issuer?: string | string[] | undefined;
246
+ jwtid?: string | undefined;
247
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
248
+ algorithms?: ("HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none")[] | undefined;
249
+ clockTimestamp?: number | undefined;
250
+ clockTolerance?: number | undefined;
251
+ complete?: boolean | undefined;
252
+ ignoreExpiration?: boolean | undefined;
253
+ ignoreNotBefore?: boolean | undefined;
254
+ nonce?: string | undefined;
255
+ maxAge?: string | number | undefined;
256
+ }, {
257
+ audience?: string | RegExp | string[] | undefined;
258
+ subject?: string | undefined;
259
+ issuer?: string | string[] | undefined;
260
+ jwtid?: string | undefined;
261
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
262
+ algorithms?: ("HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none")[] | undefined;
263
+ clockTimestamp?: number | undefined;
264
+ clockTolerance?: number | undefined;
265
+ complete?: boolean | undefined;
266
+ ignoreExpiration?: boolean | undefined;
267
+ ignoreNotBefore?: boolean | undefined;
268
+ nonce?: string | undefined;
269
+ maxAge?: string | number | undefined;
270
+ }>>;
271
+ secretOrKeyProvider: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodNativeEnum<typeof RequestType>, z.ZodAny, z.ZodOptional<z.ZodUnion<[z.ZodObject<{
272
+ algorithm: z.ZodOptional<z.ZodEnum<["HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512", "PS256", "PS384", "PS512", "none"]>>;
273
+ keyid: z.ZodOptional<z.ZodString>;
274
+ expiresIn: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
275
+ notBefore: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
276
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
277
+ subject: z.ZodOptional<z.ZodString>;
278
+ issuer: z.ZodOptional<z.ZodString>;
279
+ jwtid: z.ZodOptional<z.ZodString>;
280
+ mutatePayload: z.ZodOptional<z.ZodBoolean>;
281
+ noTimestamp: z.ZodOptional<z.ZodBoolean>;
282
+ header: z.ZodOptional<z.ZodObject<{
283
+ alg: z.ZodUnion<[z.ZodEnum<["HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512", "PS256", "PS384", "PS512", "none"]>, z.ZodString]>;
284
+ typ: z.ZodOptional<z.ZodString>;
285
+ cty: z.ZodOptional<z.ZodString>;
286
+ crit: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
287
+ kid: z.ZodOptional<z.ZodString>;
288
+ jku: z.ZodOptional<z.ZodString>;
289
+ x5u: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
290
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
291
+ x5t: z.ZodOptional<z.ZodString>;
292
+ x5c: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
293
+ }, "strip", z.ZodTypeAny, {
294
+ alg: string;
295
+ typ?: string | undefined;
296
+ cty?: string | undefined;
297
+ crit?: string[] | undefined;
298
+ kid?: string | undefined;
299
+ jku?: string | undefined;
300
+ x5u?: string | string[] | undefined;
301
+ 'x5t#S256'?: string | undefined;
302
+ x5t?: string | undefined;
303
+ x5c?: string | string[] | undefined;
304
+ }, {
305
+ alg: string;
306
+ typ?: string | undefined;
307
+ cty?: string | undefined;
308
+ crit?: string[] | undefined;
309
+ kid?: string | undefined;
310
+ jku?: string | undefined;
311
+ x5u?: string | string[] | undefined;
312
+ 'x5t#S256'?: string | undefined;
313
+ x5t?: string | undefined;
314
+ x5c?: string | string[] | undefined;
315
+ }>>;
316
+ encoding: z.ZodOptional<z.ZodString>;
317
+ allowInsecureKeySizes: z.ZodOptional<z.ZodBoolean>;
318
+ allowInvalidAsymmetricKeyTypes: z.ZodOptional<z.ZodBoolean>;
319
+ }, "strip", z.ZodTypeAny, {
320
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none" | undefined;
321
+ keyid?: string | undefined;
322
+ expiresIn?: string | number | undefined;
323
+ notBefore?: string | number | undefined;
324
+ audience?: string | string[] | undefined;
325
+ subject?: string | undefined;
326
+ issuer?: string | undefined;
327
+ jwtid?: string | undefined;
328
+ mutatePayload?: boolean | undefined;
329
+ noTimestamp?: boolean | undefined;
330
+ header?: {
331
+ alg: string;
332
+ typ?: string | undefined;
333
+ cty?: string | undefined;
334
+ crit?: string[] | undefined;
335
+ kid?: string | undefined;
336
+ jku?: string | undefined;
337
+ x5u?: string | string[] | undefined;
338
+ 'x5t#S256'?: string | undefined;
339
+ x5t?: string | undefined;
340
+ x5c?: string | string[] | undefined;
341
+ } | undefined;
342
+ encoding?: string | undefined;
343
+ allowInsecureKeySizes?: boolean | undefined;
344
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
345
+ }, {
346
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none" | undefined;
347
+ keyid?: string | undefined;
348
+ expiresIn?: string | number | undefined;
349
+ notBefore?: string | number | undefined;
350
+ audience?: string | string[] | undefined;
351
+ subject?: string | undefined;
352
+ issuer?: string | undefined;
353
+ jwtid?: string | undefined;
354
+ mutatePayload?: boolean | undefined;
355
+ noTimestamp?: boolean | undefined;
356
+ header?: {
357
+ alg: string;
358
+ typ?: string | undefined;
359
+ cty?: string | undefined;
360
+ crit?: string[] | undefined;
361
+ kid?: string | undefined;
362
+ jku?: string | undefined;
363
+ x5u?: string | string[] | undefined;
364
+ 'x5t#S256'?: string | undefined;
365
+ x5t?: string | undefined;
366
+ x5c?: string | string[] | undefined;
367
+ } | undefined;
368
+ encoding?: string | undefined;
369
+ allowInsecureKeySizes?: boolean | undefined;
370
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
371
+ }>, z.ZodObject<{
372
+ algorithms: z.ZodOptional<z.ZodArray<z.ZodEnum<["HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512", "PS256", "PS384", "PS512", "none"]>, "many">>;
373
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>, z.ZodArray<z.ZodString, "many">]>>;
374
+ clockTimestamp: z.ZodOptional<z.ZodNumber>;
375
+ clockTolerance: z.ZodOptional<z.ZodNumber>;
376
+ complete: z.ZodOptional<z.ZodBoolean>;
377
+ issuer: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
378
+ ignoreExpiration: z.ZodOptional<z.ZodBoolean>;
379
+ ignoreNotBefore: z.ZodOptional<z.ZodBoolean>;
380
+ jwtid: z.ZodOptional<z.ZodString>;
381
+ nonce: z.ZodOptional<z.ZodString>;
382
+ subject: z.ZodOptional<z.ZodString>;
383
+ maxAge: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
384
+ allowInvalidAsymmetricKeyTypes: z.ZodOptional<z.ZodBoolean>;
385
+ }, "strip", z.ZodTypeAny, {
386
+ audience?: string | RegExp | string[] | undefined;
387
+ subject?: string | undefined;
388
+ issuer?: string | string[] | undefined;
389
+ jwtid?: string | undefined;
390
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
391
+ algorithms?: ("HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none")[] | undefined;
392
+ clockTimestamp?: number | undefined;
393
+ clockTolerance?: number | undefined;
394
+ complete?: boolean | undefined;
395
+ ignoreExpiration?: boolean | undefined;
396
+ ignoreNotBefore?: boolean | undefined;
397
+ nonce?: string | undefined;
398
+ maxAge?: string | number | undefined;
399
+ }, {
400
+ audience?: string | RegExp | string[] | undefined;
401
+ subject?: string | undefined;
402
+ issuer?: string | string[] | undefined;
403
+ jwtid?: string | undefined;
404
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
405
+ algorithms?: ("HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none")[] | undefined;
406
+ clockTimestamp?: number | undefined;
407
+ clockTolerance?: number | undefined;
408
+ complete?: boolean | undefined;
409
+ ignoreExpiration?: boolean | undefined;
410
+ ignoreNotBefore?: boolean | undefined;
411
+ nonce?: string | undefined;
412
+ maxAge?: string | number | undefined;
413
+ }>]>>], z.ZodUnknown>, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodObject<{
414
+ type: z.ZodString;
415
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
416
+ type: z.ZodString;
417
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
418
+ type: z.ZodString;
419
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
420
+ key: z.ZodUnion<[z.ZodString, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>]>;
421
+ passphrase: z.ZodString;
422
+ }, "strip", z.ZodTypeAny, {
423
+ key: string | Buffer<ArrayBufferLike>;
424
+ passphrase: string;
425
+ }, {
426
+ key: string | Buffer<ArrayBufferLike>;
427
+ passphrase: string;
428
+ }>]>, z.ZodPromise<z.ZodUnion<[z.ZodString, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodObject<{
429
+ type: z.ZodString;
430
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
431
+ type: z.ZodString;
432
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
433
+ type: z.ZodString;
434
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
435
+ key: z.ZodUnion<[z.ZodString, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>]>;
436
+ passphrase: z.ZodString;
437
+ }, "strip", z.ZodTypeAny, {
438
+ key: string | Buffer<ArrayBufferLike>;
439
+ passphrase: string;
440
+ }, {
441
+ key: string | Buffer<ArrayBufferLike>;
442
+ passphrase: string;
443
+ }>]>>]>>>;
444
+ }, "strip", z.ZodTypeAny, {
445
+ signOptions?: {
446
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none" | undefined;
447
+ keyid?: string | undefined;
448
+ expiresIn?: string | number | undefined;
449
+ notBefore?: string | number | undefined;
450
+ audience?: string | string[] | undefined;
451
+ subject?: string | undefined;
452
+ issuer?: string | undefined;
453
+ jwtid?: string | undefined;
454
+ mutatePayload?: boolean | undefined;
455
+ noTimestamp?: boolean | undefined;
456
+ header?: {
457
+ alg: string;
458
+ typ?: string | undefined;
459
+ cty?: string | undefined;
460
+ crit?: string[] | undefined;
461
+ kid?: string | undefined;
462
+ jku?: string | undefined;
463
+ x5u?: string | string[] | undefined;
464
+ 'x5t#S256'?: string | undefined;
465
+ x5t?: string | undefined;
466
+ x5c?: string | string[] | undefined;
467
+ } | undefined;
468
+ encoding?: string | undefined;
469
+ allowInsecureKeySizes?: boolean | undefined;
470
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
471
+ } | undefined;
472
+ secret?: string | undefined;
473
+ publicKey?: string | Buffer<ArrayBufferLike> | undefined;
474
+ privateKey?: string | Buffer<ArrayBufferLike> | z.objectOutputType<{
475
+ type: z.ZodString;
476
+ }, z.ZodTypeAny, "passthrough"> | {
477
+ key: string | Buffer<ArrayBufferLike>;
478
+ passphrase: string;
479
+ } | undefined;
480
+ verifyOptions?: {
481
+ audience?: string | RegExp | string[] | undefined;
482
+ subject?: string | undefined;
483
+ issuer?: string | string[] | undefined;
484
+ jwtid?: string | undefined;
485
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
486
+ algorithms?: ("HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none")[] | undefined;
487
+ clockTimestamp?: number | undefined;
488
+ clockTolerance?: number | undefined;
489
+ complete?: boolean | undefined;
490
+ ignoreExpiration?: boolean | undefined;
491
+ ignoreNotBefore?: boolean | undefined;
492
+ nonce?: string | undefined;
493
+ maxAge?: string | number | undefined;
494
+ } | undefined;
495
+ secretOrKeyProvider?: ((args_0: RequestType, args_1: any, args_2: {
496
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none" | undefined;
497
+ keyid?: string | undefined;
498
+ expiresIn?: string | number | undefined;
499
+ notBefore?: string | number | undefined;
500
+ audience?: string | string[] | undefined;
501
+ subject?: string | undefined;
502
+ issuer?: string | undefined;
503
+ jwtid?: string | undefined;
504
+ mutatePayload?: boolean | undefined;
505
+ noTimestamp?: boolean | undefined;
506
+ header?: {
507
+ alg: string;
508
+ typ?: string | undefined;
509
+ cty?: string | undefined;
510
+ crit?: string[] | undefined;
511
+ kid?: string | undefined;
512
+ jku?: string | undefined;
513
+ x5u?: string | string[] | undefined;
514
+ 'x5t#S256'?: string | undefined;
515
+ x5t?: string | undefined;
516
+ x5c?: string | string[] | undefined;
517
+ } | undefined;
518
+ encoding?: string | undefined;
519
+ allowInsecureKeySizes?: boolean | undefined;
520
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
521
+ } | {
522
+ audience?: string | RegExp | string[] | undefined;
523
+ subject?: string | undefined;
524
+ issuer?: string | string[] | undefined;
525
+ jwtid?: string | undefined;
526
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
527
+ algorithms?: ("HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none")[] | undefined;
528
+ clockTimestamp?: number | undefined;
529
+ clockTolerance?: number | undefined;
530
+ complete?: boolean | undefined;
531
+ ignoreExpiration?: boolean | undefined;
532
+ ignoreNotBefore?: boolean | undefined;
533
+ nonce?: string | undefined;
534
+ maxAge?: string | number | undefined;
535
+ } | undefined, ...args: unknown[]) => string | Buffer<ArrayBufferLike> | z.objectOutputType<{
536
+ type: z.ZodString;
537
+ }, z.ZodTypeAny, "passthrough"> | {
538
+ key: string | Buffer<ArrayBufferLike>;
539
+ passphrase: string;
540
+ } | Promise<string | Buffer<ArrayBufferLike> | z.objectOutputType<{
541
+ type: z.ZodString;
542
+ }, z.ZodTypeAny, "passthrough"> | {
543
+ key: string | Buffer<ArrayBufferLike>;
544
+ passphrase: string;
545
+ }>) | undefined;
546
+ }, {
547
+ signOptions?: {
548
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none" | undefined;
549
+ keyid?: string | undefined;
550
+ expiresIn?: string | number | undefined;
551
+ notBefore?: string | number | undefined;
552
+ audience?: string | string[] | undefined;
553
+ subject?: string | undefined;
554
+ issuer?: string | undefined;
555
+ jwtid?: string | undefined;
556
+ mutatePayload?: boolean | undefined;
557
+ noTimestamp?: boolean | undefined;
558
+ header?: {
559
+ alg: string;
560
+ typ?: string | undefined;
561
+ cty?: string | undefined;
562
+ crit?: string[] | undefined;
563
+ kid?: string | undefined;
564
+ jku?: string | undefined;
565
+ x5u?: string | string[] | undefined;
566
+ 'x5t#S256'?: string | undefined;
567
+ x5t?: string | undefined;
568
+ x5c?: string | string[] | undefined;
569
+ } | undefined;
570
+ encoding?: string | undefined;
571
+ allowInsecureKeySizes?: boolean | undefined;
572
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
573
+ } | undefined;
574
+ secret?: string | undefined;
575
+ publicKey?: string | Buffer<ArrayBufferLike> | undefined;
576
+ privateKey?: string | Buffer<ArrayBufferLike> | z.objectInputType<{
577
+ type: z.ZodString;
578
+ }, z.ZodTypeAny, "passthrough"> | {
579
+ key: string | Buffer<ArrayBufferLike>;
580
+ passphrase: string;
581
+ } | undefined;
582
+ verifyOptions?: {
583
+ audience?: string | RegExp | string[] | undefined;
584
+ subject?: string | undefined;
585
+ issuer?: string | string[] | undefined;
586
+ jwtid?: string | undefined;
587
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
588
+ algorithms?: ("HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none")[] | undefined;
589
+ clockTimestamp?: number | undefined;
590
+ clockTolerance?: number | undefined;
591
+ complete?: boolean | undefined;
592
+ ignoreExpiration?: boolean | undefined;
593
+ ignoreNotBefore?: boolean | undefined;
594
+ nonce?: string | undefined;
595
+ maxAge?: string | number | undefined;
596
+ } | undefined;
597
+ secretOrKeyProvider?: ((args_0: RequestType, args_1: any, args_2: {
598
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none" | undefined;
599
+ keyid?: string | undefined;
600
+ expiresIn?: string | number | undefined;
601
+ notBefore?: string | number | undefined;
602
+ audience?: string | string[] | undefined;
603
+ subject?: string | undefined;
604
+ issuer?: string | undefined;
605
+ jwtid?: string | undefined;
606
+ mutatePayload?: boolean | undefined;
607
+ noTimestamp?: boolean | undefined;
608
+ header?: {
609
+ alg: string;
610
+ typ?: string | undefined;
611
+ cty?: string | undefined;
612
+ crit?: string[] | undefined;
613
+ kid?: string | undefined;
614
+ jku?: string | undefined;
615
+ x5u?: string | string[] | undefined;
616
+ 'x5t#S256'?: string | undefined;
617
+ x5t?: string | undefined;
618
+ x5c?: string | string[] | undefined;
619
+ } | undefined;
620
+ encoding?: string | undefined;
621
+ allowInsecureKeySizes?: boolean | undefined;
622
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
623
+ } | {
624
+ audience?: string | RegExp | string[] | undefined;
625
+ subject?: string | undefined;
626
+ issuer?: string | string[] | undefined;
627
+ jwtid?: string | undefined;
628
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
629
+ algorithms?: ("HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none")[] | undefined;
630
+ clockTimestamp?: number | undefined;
631
+ clockTolerance?: number | undefined;
632
+ complete?: boolean | undefined;
633
+ ignoreExpiration?: boolean | undefined;
634
+ ignoreNotBefore?: boolean | undefined;
635
+ nonce?: string | undefined;
636
+ maxAge?: string | number | undefined;
637
+ } | undefined, ...args: unknown[]) => string | Buffer<ArrayBufferLike> | z.objectInputType<{
638
+ type: z.ZodString;
639
+ }, z.ZodTypeAny, "passthrough"> | {
640
+ key: string | Buffer<ArrayBufferLike>;
641
+ passphrase: string;
642
+ } | Promise<string | Buffer<ArrayBufferLike> | z.objectInputType<{
643
+ type: z.ZodString;
644
+ }, z.ZodTypeAny, "passthrough"> | {
645
+ key: string | Buffer<ArrayBufferLike>;
646
+ passphrase: string;
647
+ }>) | undefined;
648
+ }>;
649
+ export { JwtServiceOptionsSchema }
650
+ export { JwtServiceOptionsSchema as JwtServiceOptionsSchema_alias_1 }
651
+
652
+ declare const JwtServiceToken: InjectionToken<JwtService, ZodObject< {
653
+ signOptions: ZodOptional<ZodObject< {
654
+ algorithm: ZodOptional<ZodEnum<["HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512", "PS256", "PS384", "PS512", "none"]>>;
655
+ keyid: ZodOptional<ZodString>;
656
+ expiresIn: ZodOptional<ZodUnion<[ZodString, ZodNumber]>>;
657
+ notBefore: ZodOptional<ZodUnion<[ZodString, ZodNumber]>>;
658
+ audience: ZodOptional<ZodUnion<[ZodString, ZodArray<ZodString, "many">]>>;
659
+ subject: ZodOptional<ZodString>;
660
+ issuer: ZodOptional<ZodString>;
661
+ jwtid: ZodOptional<ZodString>;
662
+ mutatePayload: ZodOptional<ZodBoolean>;
663
+ noTimestamp: ZodOptional<ZodBoolean>;
664
+ header: ZodOptional<ZodObject< {
665
+ alg: ZodUnion<[ZodEnum<["HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512", "PS256", "PS384", "PS512", "none"]>, ZodString]>;
666
+ typ: ZodOptional<ZodString>;
667
+ cty: ZodOptional<ZodString>;
668
+ crit: ZodOptional<ZodArray<ZodString, "many">>;
669
+ kid: ZodOptional<ZodString>;
670
+ jku: ZodOptional<ZodString>;
671
+ x5u: ZodOptional<ZodUnion<[ZodString, ZodArray<ZodString, "many">]>>;
672
+ 'x5t#S256': ZodOptional<ZodString>;
673
+ x5t: ZodOptional<ZodString>;
674
+ x5c: ZodOptional<ZodUnion<[ZodString, ZodArray<ZodString, "many">]>>;
675
+ }, "strip", ZodTypeAny, {
676
+ alg: string;
677
+ typ?: string | undefined;
678
+ cty?: string | undefined;
679
+ crit?: string[] | undefined;
680
+ kid?: string | undefined;
681
+ jku?: string | undefined;
682
+ x5u?: string | string[] | undefined;
683
+ 'x5t#S256'?: string | undefined;
684
+ x5t?: string | undefined;
685
+ x5c?: string | string[] | undefined;
686
+ }, {
687
+ alg: string;
688
+ typ?: string | undefined;
689
+ cty?: string | undefined;
690
+ crit?: string[] | undefined;
691
+ kid?: string | undefined;
692
+ jku?: string | undefined;
693
+ x5u?: string | string[] | undefined;
694
+ 'x5t#S256'?: string | undefined;
695
+ x5t?: string | undefined;
696
+ x5c?: string | string[] | undefined;
697
+ }>>;
698
+ encoding: ZodOptional<ZodString>;
699
+ allowInsecureKeySizes: ZodOptional<ZodBoolean>;
700
+ allowInvalidAsymmetricKeyTypes: ZodOptional<ZodBoolean>;
701
+ }, "strip", ZodTypeAny, {
702
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none" | undefined;
703
+ keyid?: string | undefined;
704
+ expiresIn?: string | number | undefined;
705
+ notBefore?: string | number | undefined;
706
+ audience?: string | string[] | undefined;
707
+ subject?: string | undefined;
708
+ issuer?: string | undefined;
709
+ jwtid?: string | undefined;
710
+ mutatePayload?: boolean | undefined;
711
+ noTimestamp?: boolean | undefined;
712
+ header?: {
713
+ alg: string;
714
+ typ?: string | undefined;
715
+ cty?: string | undefined;
716
+ crit?: string[] | undefined;
717
+ kid?: string | undefined;
718
+ jku?: string | undefined;
719
+ x5u?: string | string[] | undefined;
720
+ 'x5t#S256'?: string | undefined;
721
+ x5t?: string | undefined;
722
+ x5c?: string | string[] | undefined;
723
+ } | undefined;
724
+ encoding?: string | undefined;
725
+ allowInsecureKeySizes?: boolean | undefined;
726
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
727
+ }, {
728
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none" | undefined;
729
+ keyid?: string | undefined;
730
+ expiresIn?: string | number | undefined;
731
+ notBefore?: string | number | undefined;
732
+ audience?: string | string[] | undefined;
733
+ subject?: string | undefined;
734
+ issuer?: string | undefined;
735
+ jwtid?: string | undefined;
736
+ mutatePayload?: boolean | undefined;
737
+ noTimestamp?: boolean | undefined;
738
+ header?: {
739
+ alg: string;
740
+ typ?: string | undefined;
741
+ cty?: string | undefined;
742
+ crit?: string[] | undefined;
743
+ kid?: string | undefined;
744
+ jku?: string | undefined;
745
+ x5u?: string | string[] | undefined;
746
+ 'x5t#S256'?: string | undefined;
747
+ x5t?: string | undefined;
748
+ x5c?: string | string[] | undefined;
749
+ } | undefined;
750
+ encoding?: string | undefined;
751
+ allowInsecureKeySizes?: boolean | undefined;
752
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
753
+ }>>;
754
+ secret: ZodOptional<ZodString>;
755
+ publicKey: ZodOptional<ZodUnion<[ZodString, ZodType<Buffer<ArrayBufferLike>, ZodTypeDef, Buffer<ArrayBufferLike>>]>>;
756
+ privateKey: ZodOptional<ZodUnion<[ZodString, ZodType<Buffer<ArrayBufferLike>, ZodTypeDef, Buffer<ArrayBufferLike>>, ZodObject< {
757
+ type: ZodString;
758
+ }, "passthrough", ZodTypeAny, objectOutputType< {
759
+ type: ZodString;
760
+ }, ZodTypeAny, "passthrough">, objectInputType< {
761
+ type: ZodString;
762
+ }, ZodTypeAny, "passthrough">>, ZodObject< {
763
+ key: ZodUnion<[ZodString, ZodType<Buffer<ArrayBufferLike>, ZodTypeDef, Buffer<ArrayBufferLike>>]>;
764
+ passphrase: ZodString;
765
+ }, "strip", ZodTypeAny, {
766
+ key: string | Buffer<ArrayBufferLike>;
767
+ passphrase: string;
768
+ }, {
769
+ key: string | Buffer<ArrayBufferLike>;
770
+ passphrase: string;
771
+ }>]>>;
772
+ verifyOptions: ZodOptional<ZodObject< {
773
+ algorithms: ZodOptional<ZodArray<ZodEnum<["HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512", "PS256", "PS384", "PS512", "none"]>, "many">>;
774
+ audience: ZodOptional<ZodUnion<[ZodString, ZodType<RegExp, ZodTypeDef, RegExp>, ZodArray<ZodString, "many">]>>;
775
+ clockTimestamp: ZodOptional<ZodNumber>;
776
+ clockTolerance: ZodOptional<ZodNumber>;
777
+ complete: ZodOptional<ZodBoolean>;
778
+ issuer: ZodOptional<ZodUnion<[ZodString, ZodArray<ZodString, "many">]>>;
779
+ ignoreExpiration: ZodOptional<ZodBoolean>;
780
+ ignoreNotBefore: ZodOptional<ZodBoolean>;
781
+ jwtid: ZodOptional<ZodString>;
782
+ nonce: ZodOptional<ZodString>;
783
+ subject: ZodOptional<ZodString>;
784
+ maxAge: ZodOptional<ZodUnion<[ZodString, ZodNumber]>>;
785
+ allowInvalidAsymmetricKeyTypes: ZodOptional<ZodBoolean>;
786
+ }, "strip", ZodTypeAny, {
787
+ audience?: string | RegExp | string[] | undefined;
788
+ subject?: string | undefined;
789
+ issuer?: string | string[] | undefined;
790
+ jwtid?: string | undefined;
791
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
792
+ algorithms?: ("HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none")[] | undefined;
793
+ clockTimestamp?: number | undefined;
794
+ clockTolerance?: number | undefined;
795
+ complete?: boolean | undefined;
796
+ ignoreExpiration?: boolean | undefined;
797
+ ignoreNotBefore?: boolean | undefined;
798
+ nonce?: string | undefined;
799
+ maxAge?: string | number | undefined;
800
+ }, {
801
+ audience?: string | RegExp | string[] | undefined;
802
+ subject?: string | undefined;
803
+ issuer?: string | string[] | undefined;
804
+ jwtid?: string | undefined;
805
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
806
+ algorithms?: ("HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none")[] | undefined;
807
+ clockTimestamp?: number | undefined;
808
+ clockTolerance?: number | undefined;
809
+ complete?: boolean | undefined;
810
+ ignoreExpiration?: boolean | undefined;
811
+ ignoreNotBefore?: boolean | undefined;
812
+ nonce?: string | undefined;
813
+ maxAge?: string | number | undefined;
814
+ }>>;
815
+ secretOrKeyProvider: ZodOptional<ZodFunction<ZodTuple<[ZodNativeEnum<RequestType_2>, ZodAny, ZodOptional<ZodUnion<[ZodObject< {
816
+ algorithm: ZodOptional<ZodEnum<["HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512", "PS256", "PS384", "PS512", "none"]>>;
817
+ keyid: ZodOptional<ZodString>;
818
+ expiresIn: ZodOptional<ZodUnion<[ZodString, ZodNumber]>>;
819
+ notBefore: ZodOptional<ZodUnion<[ZodString, ZodNumber]>>;
820
+ audience: ZodOptional<ZodUnion<[ZodString, ZodArray<ZodString, "many">]>>;
821
+ subject: ZodOptional<ZodString>;
822
+ issuer: ZodOptional<ZodString>;
823
+ jwtid: ZodOptional<ZodString>;
824
+ mutatePayload: ZodOptional<ZodBoolean>;
825
+ noTimestamp: ZodOptional<ZodBoolean>;
826
+ header: ZodOptional<ZodObject< {
827
+ alg: ZodUnion<[ZodEnum<["HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512", "PS256", "PS384", "PS512", "none"]>, ZodString]>;
828
+ typ: ZodOptional<ZodString>;
829
+ cty: ZodOptional<ZodString>;
830
+ crit: ZodOptional<ZodArray<ZodString, "many">>;
831
+ kid: ZodOptional<ZodString>;
832
+ jku: ZodOptional<ZodString>;
833
+ x5u: ZodOptional<ZodUnion<[ZodString, ZodArray<ZodString, "many">]>>;
834
+ 'x5t#S256': ZodOptional<ZodString>;
835
+ x5t: ZodOptional<ZodString>;
836
+ x5c: ZodOptional<ZodUnion<[ZodString, ZodArray<ZodString, "many">]>>;
837
+ }, "strip", ZodTypeAny, {
838
+ alg: string;
839
+ typ?: string | undefined;
840
+ cty?: string | undefined;
841
+ crit?: string[] | undefined;
842
+ kid?: string | undefined;
843
+ jku?: string | undefined;
844
+ x5u?: string | string[] | undefined;
845
+ 'x5t#S256'?: string | undefined;
846
+ x5t?: string | undefined;
847
+ x5c?: string | string[] | undefined;
848
+ }, {
849
+ alg: string;
850
+ typ?: string | undefined;
851
+ cty?: string | undefined;
852
+ crit?: string[] | undefined;
853
+ kid?: string | undefined;
854
+ jku?: string | undefined;
855
+ x5u?: string | string[] | undefined;
856
+ 'x5t#S256'?: string | undefined;
857
+ x5t?: string | undefined;
858
+ x5c?: string | string[] | undefined;
859
+ }>>;
860
+ encoding: ZodOptional<ZodString>;
861
+ allowInsecureKeySizes: ZodOptional<ZodBoolean>;
862
+ allowInvalidAsymmetricKeyTypes: ZodOptional<ZodBoolean>;
863
+ }, "strip", ZodTypeAny, {
864
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none" | undefined;
865
+ keyid?: string | undefined;
866
+ expiresIn?: string | number | undefined;
867
+ notBefore?: string | number | undefined;
868
+ audience?: string | string[] | undefined;
869
+ subject?: string | undefined;
870
+ issuer?: string | undefined;
871
+ jwtid?: string | undefined;
872
+ mutatePayload?: boolean | undefined;
873
+ noTimestamp?: boolean | undefined;
874
+ header?: {
875
+ alg: string;
876
+ typ?: string | undefined;
877
+ cty?: string | undefined;
878
+ crit?: string[] | undefined;
879
+ kid?: string | undefined;
880
+ jku?: string | undefined;
881
+ x5u?: string | string[] | undefined;
882
+ 'x5t#S256'?: string | undefined;
883
+ x5t?: string | undefined;
884
+ x5c?: string | string[] | undefined;
885
+ } | undefined;
886
+ encoding?: string | undefined;
887
+ allowInsecureKeySizes?: boolean | undefined;
888
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
889
+ }, {
890
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none" | undefined;
891
+ keyid?: string | undefined;
892
+ expiresIn?: string | number | undefined;
893
+ notBefore?: string | number | undefined;
894
+ audience?: string | string[] | undefined;
895
+ subject?: string | undefined;
896
+ issuer?: string | undefined;
897
+ jwtid?: string | undefined;
898
+ mutatePayload?: boolean | undefined;
899
+ noTimestamp?: boolean | undefined;
900
+ header?: {
901
+ alg: string;
902
+ typ?: string | undefined;
903
+ cty?: string | undefined;
904
+ crit?: string[] | undefined;
905
+ kid?: string | undefined;
906
+ jku?: string | undefined;
907
+ x5u?: string | string[] | undefined;
908
+ 'x5t#S256'?: string | undefined;
909
+ x5t?: string | undefined;
910
+ x5c?: string | string[] | undefined;
911
+ } | undefined;
912
+ encoding?: string | undefined;
913
+ allowInsecureKeySizes?: boolean | undefined;
914
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
915
+ }>, ZodObject< {
916
+ algorithms: ZodOptional<ZodArray<ZodEnum<["HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512", "PS256", "PS384", "PS512", "none"]>, "many">>;
917
+ audience: ZodOptional<ZodUnion<[ZodString, ZodType<RegExp, ZodTypeDef, RegExp>, ZodArray<ZodString, "many">]>>;
918
+ clockTimestamp: ZodOptional<ZodNumber>;
919
+ clockTolerance: ZodOptional<ZodNumber>;
920
+ complete: ZodOptional<ZodBoolean>;
921
+ issuer: ZodOptional<ZodUnion<[ZodString, ZodArray<ZodString, "many">]>>;
922
+ ignoreExpiration: ZodOptional<ZodBoolean>;
923
+ ignoreNotBefore: ZodOptional<ZodBoolean>;
924
+ jwtid: ZodOptional<ZodString>;
925
+ nonce: ZodOptional<ZodString>;
926
+ subject: ZodOptional<ZodString>;
927
+ maxAge: ZodOptional<ZodUnion<[ZodString, ZodNumber]>>;
928
+ allowInvalidAsymmetricKeyTypes: ZodOptional<ZodBoolean>;
929
+ }, "strip", ZodTypeAny, {
930
+ audience?: string | RegExp | string[] | undefined;
931
+ subject?: string | undefined;
932
+ issuer?: string | string[] | undefined;
933
+ jwtid?: string | undefined;
934
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
935
+ algorithms?: ("HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none")[] | undefined;
936
+ clockTimestamp?: number | undefined;
937
+ clockTolerance?: number | undefined;
938
+ complete?: boolean | undefined;
939
+ ignoreExpiration?: boolean | undefined;
940
+ ignoreNotBefore?: boolean | undefined;
941
+ nonce?: string | undefined;
942
+ maxAge?: string | number | undefined;
943
+ }, {
944
+ audience?: string | RegExp | string[] | undefined;
945
+ subject?: string | undefined;
946
+ issuer?: string | string[] | undefined;
947
+ jwtid?: string | undefined;
948
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
949
+ algorithms?: ("HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none")[] | undefined;
950
+ clockTimestamp?: number | undefined;
951
+ clockTolerance?: number | undefined;
952
+ complete?: boolean | undefined;
953
+ ignoreExpiration?: boolean | undefined;
954
+ ignoreNotBefore?: boolean | undefined;
955
+ nonce?: string | undefined;
956
+ maxAge?: string | number | undefined;
957
+ }>]>>], ZodUnknown>, ZodUnion<[ZodUnion<[ZodString, ZodType<Buffer<ArrayBufferLike>, ZodTypeDef, Buffer<ArrayBufferLike>>, ZodObject< {
958
+ type: ZodString;
959
+ }, "passthrough", ZodTypeAny, objectOutputType< {
960
+ type: ZodString;
961
+ }, ZodTypeAny, "passthrough">, objectInputType< {
962
+ type: ZodString;
963
+ }, ZodTypeAny, "passthrough">>, ZodObject< {
964
+ key: ZodUnion<[ZodString, ZodType<Buffer<ArrayBufferLike>, ZodTypeDef, Buffer<ArrayBufferLike>>]>;
965
+ passphrase: ZodString;
966
+ }, "strip", ZodTypeAny, {
967
+ key: string | Buffer<ArrayBufferLike>;
968
+ passphrase: string;
969
+ }, {
970
+ key: string | Buffer<ArrayBufferLike>;
971
+ passphrase: string;
972
+ }>]>, ZodPromise<ZodUnion<[ZodString, ZodType<Buffer<ArrayBufferLike>, ZodTypeDef, Buffer<ArrayBufferLike>>, ZodObject< {
973
+ type: ZodString;
974
+ }, "passthrough", ZodTypeAny, objectOutputType< {
975
+ type: ZodString;
976
+ }, ZodTypeAny, "passthrough">, objectInputType< {
977
+ type: ZodString;
978
+ }, ZodTypeAny, "passthrough">>, ZodObject< {
979
+ key: ZodUnion<[ZodString, ZodType<Buffer<ArrayBufferLike>, ZodTypeDef, Buffer<ArrayBufferLike>>]>;
980
+ passphrase: ZodString;
981
+ }, "strip", ZodTypeAny, {
982
+ key: string | Buffer<ArrayBufferLike>;
983
+ passphrase: string;
984
+ }, {
985
+ key: string | Buffer<ArrayBufferLike>;
986
+ passphrase: string;
987
+ }>]>>]>>>;
988
+ }, "strip", ZodTypeAny, {
989
+ signOptions?: {
990
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none" | undefined;
991
+ keyid?: string | undefined;
992
+ expiresIn?: string | number | undefined;
993
+ notBefore?: string | number | undefined;
994
+ audience?: string | string[] | undefined;
995
+ subject?: string | undefined;
996
+ issuer?: string | undefined;
997
+ jwtid?: string | undefined;
998
+ mutatePayload?: boolean | undefined;
999
+ noTimestamp?: boolean | undefined;
1000
+ header?: {
1001
+ alg: string;
1002
+ typ?: string | undefined;
1003
+ cty?: string | undefined;
1004
+ crit?: string[] | undefined;
1005
+ kid?: string | undefined;
1006
+ jku?: string | undefined;
1007
+ x5u?: string | string[] | undefined;
1008
+ 'x5t#S256'?: string | undefined;
1009
+ x5t?: string | undefined;
1010
+ x5c?: string | string[] | undefined;
1011
+ } | undefined;
1012
+ encoding?: string | undefined;
1013
+ allowInsecureKeySizes?: boolean | undefined;
1014
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
1015
+ } | undefined;
1016
+ secret?: string | undefined;
1017
+ publicKey?: string | Buffer<ArrayBufferLike> | undefined;
1018
+ privateKey?: string | Buffer<ArrayBufferLike> | objectOutputType< {
1019
+ type: ZodString;
1020
+ }, ZodTypeAny, "passthrough"> | {
1021
+ key: string | Buffer<ArrayBufferLike>;
1022
+ passphrase: string;
1023
+ } | undefined;
1024
+ verifyOptions?: {
1025
+ audience?: string | RegExp | string[] | undefined;
1026
+ subject?: string | undefined;
1027
+ issuer?: string | string[] | undefined;
1028
+ jwtid?: string | undefined;
1029
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
1030
+ algorithms?: ("HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none")[] | undefined;
1031
+ clockTimestamp?: number | undefined;
1032
+ clockTolerance?: number | undefined;
1033
+ complete?: boolean | undefined;
1034
+ ignoreExpiration?: boolean | undefined;
1035
+ ignoreNotBefore?: boolean | undefined;
1036
+ nonce?: string | undefined;
1037
+ maxAge?: string | number | undefined;
1038
+ } | undefined;
1039
+ secretOrKeyProvider?: ((args_0: RequestType_2, args_1: any, args_2: {
1040
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none" | undefined;
1041
+ keyid?: string | undefined;
1042
+ expiresIn?: string | number | undefined;
1043
+ notBefore?: string | number | undefined;
1044
+ audience?: string | string[] | undefined;
1045
+ subject?: string | undefined;
1046
+ issuer?: string | undefined;
1047
+ jwtid?: string | undefined;
1048
+ mutatePayload?: boolean | undefined;
1049
+ noTimestamp?: boolean | undefined;
1050
+ header?: {
1051
+ alg: string;
1052
+ typ?: string | undefined;
1053
+ cty?: string | undefined;
1054
+ crit?: string[] | undefined;
1055
+ kid?: string | undefined;
1056
+ jku?: string | undefined;
1057
+ x5u?: string | string[] | undefined;
1058
+ 'x5t#S256'?: string | undefined;
1059
+ x5t?: string | undefined;
1060
+ x5c?: string | string[] | undefined;
1061
+ } | undefined;
1062
+ encoding?: string | undefined;
1063
+ allowInsecureKeySizes?: boolean | undefined;
1064
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
1065
+ } | {
1066
+ audience?: string | RegExp | string[] | undefined;
1067
+ subject?: string | undefined;
1068
+ issuer?: string | string[] | undefined;
1069
+ jwtid?: string | undefined;
1070
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
1071
+ algorithms?: ("HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none")[] | undefined;
1072
+ clockTimestamp?: number | undefined;
1073
+ clockTolerance?: number | undefined;
1074
+ complete?: boolean | undefined;
1075
+ ignoreExpiration?: boolean | undefined;
1076
+ ignoreNotBefore?: boolean | undefined;
1077
+ nonce?: string | undefined;
1078
+ maxAge?: string | number | undefined;
1079
+ } | undefined, ...args: unknown[]) => string | Buffer<ArrayBufferLike> | objectOutputType< {
1080
+ type: ZodString;
1081
+ }, ZodTypeAny, "passthrough"> | {
1082
+ key: string | Buffer<ArrayBufferLike>;
1083
+ passphrase: string;
1084
+ } | Promise<string | Buffer<ArrayBufferLike> | objectOutputType< {
1085
+ type: ZodString;
1086
+ }, ZodTypeAny, "passthrough"> | {
1087
+ key: string | Buffer<ArrayBufferLike>;
1088
+ passphrase: string;
1089
+ }>) | undefined;
1090
+ }, {
1091
+ signOptions?: {
1092
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none" | undefined;
1093
+ keyid?: string | undefined;
1094
+ expiresIn?: string | number | undefined;
1095
+ notBefore?: string | number | undefined;
1096
+ audience?: string | string[] | undefined;
1097
+ subject?: string | undefined;
1098
+ issuer?: string | undefined;
1099
+ jwtid?: string | undefined;
1100
+ mutatePayload?: boolean | undefined;
1101
+ noTimestamp?: boolean | undefined;
1102
+ header?: {
1103
+ alg: string;
1104
+ typ?: string | undefined;
1105
+ cty?: string | undefined;
1106
+ crit?: string[] | undefined;
1107
+ kid?: string | undefined;
1108
+ jku?: string | undefined;
1109
+ x5u?: string | string[] | undefined;
1110
+ 'x5t#S256'?: string | undefined;
1111
+ x5t?: string | undefined;
1112
+ x5c?: string | string[] | undefined;
1113
+ } | undefined;
1114
+ encoding?: string | undefined;
1115
+ allowInsecureKeySizes?: boolean | undefined;
1116
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
1117
+ } | undefined;
1118
+ secret?: string | undefined;
1119
+ publicKey?: string | Buffer<ArrayBufferLike> | undefined;
1120
+ privateKey?: string | Buffer<ArrayBufferLike> | objectInputType< {
1121
+ type: ZodString;
1122
+ }, ZodTypeAny, "passthrough"> | {
1123
+ key: string | Buffer<ArrayBufferLike>;
1124
+ passphrase: string;
1125
+ } | undefined;
1126
+ verifyOptions?: {
1127
+ audience?: string | RegExp | string[] | undefined;
1128
+ subject?: string | undefined;
1129
+ issuer?: string | string[] | undefined;
1130
+ jwtid?: string | undefined;
1131
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
1132
+ algorithms?: ("HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none")[] | undefined;
1133
+ clockTimestamp?: number | undefined;
1134
+ clockTolerance?: number | undefined;
1135
+ complete?: boolean | undefined;
1136
+ ignoreExpiration?: boolean | undefined;
1137
+ ignoreNotBefore?: boolean | undefined;
1138
+ nonce?: string | undefined;
1139
+ maxAge?: string | number | undefined;
1140
+ } | undefined;
1141
+ secretOrKeyProvider?: ((args_0: RequestType_2, args_1: any, args_2: {
1142
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none" | undefined;
1143
+ keyid?: string | undefined;
1144
+ expiresIn?: string | number | undefined;
1145
+ notBefore?: string | number | undefined;
1146
+ audience?: string | string[] | undefined;
1147
+ subject?: string | undefined;
1148
+ issuer?: string | undefined;
1149
+ jwtid?: string | undefined;
1150
+ mutatePayload?: boolean | undefined;
1151
+ noTimestamp?: boolean | undefined;
1152
+ header?: {
1153
+ alg: string;
1154
+ typ?: string | undefined;
1155
+ cty?: string | undefined;
1156
+ crit?: string[] | undefined;
1157
+ kid?: string | undefined;
1158
+ jku?: string | undefined;
1159
+ x5u?: string | string[] | undefined;
1160
+ 'x5t#S256'?: string | undefined;
1161
+ x5t?: string | undefined;
1162
+ x5c?: string | string[] | undefined;
1163
+ } | undefined;
1164
+ encoding?: string | undefined;
1165
+ allowInsecureKeySizes?: boolean | undefined;
1166
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
1167
+ } | {
1168
+ audience?: string | RegExp | string[] | undefined;
1169
+ subject?: string | undefined;
1170
+ issuer?: string | string[] | undefined;
1171
+ jwtid?: string | undefined;
1172
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
1173
+ algorithms?: ("HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none")[] | undefined;
1174
+ clockTimestamp?: number | undefined;
1175
+ clockTolerance?: number | undefined;
1176
+ complete?: boolean | undefined;
1177
+ ignoreExpiration?: boolean | undefined;
1178
+ ignoreNotBefore?: boolean | undefined;
1179
+ nonce?: string | undefined;
1180
+ maxAge?: string | number | undefined;
1181
+ } | undefined, ...args: unknown[]) => string | Buffer<ArrayBufferLike> | objectInputType< {
1182
+ type: ZodString;
1183
+ }, ZodTypeAny, "passthrough"> | {
1184
+ key: string | Buffer<ArrayBufferLike>;
1185
+ passphrase: string;
1186
+ } | Promise<string | Buffer<ArrayBufferLike> | objectInputType< {
1187
+ type: ZodString;
1188
+ }, ZodTypeAny, "passthrough"> | {
1189
+ key: string | Buffer<ArrayBufferLike>;
1190
+ passphrase: string;
1191
+ }>) | undefined;
1192
+ }>>;
1193
+ export { JwtServiceToken }
1194
+ export { JwtServiceToken as JwtServiceToken_alias_1 }
1195
+
1196
+ declare interface JwtSignOptions extends SignOptions {
1197
+ secret?: string | Buffer;
1198
+ privateKey?: Secret;
1199
+ }
1200
+ export { JwtSignOptions }
1201
+ export { JwtSignOptions as JwtSignOptions_alias_1 }
1202
+
1203
+ declare interface JwtVerifyOptions extends VerifyOptions {
1204
+ secret?: string | Buffer;
1205
+ publicKey?: string | Buffer;
1206
+ }
1207
+ export { JwtVerifyOptions }
1208
+ export { JwtVerifyOptions as JwtVerifyOptions_alias_1 }
1209
+
1210
+ export declare const NotBeforeError: typeof jwt.NotBeforeError;
1211
+
1212
+ declare function provideJwtService(config: JwtServiceOptions | (() => Promise<JwtServiceOptions>)): BoundInjectionToken<JwtService, typeof JwtServiceOptionsSchema> | FactoryInjectionToken<JwtService, typeof JwtServiceOptionsSchema>;
1213
+ export { provideJwtService }
1214
+ export { provideJwtService as provideJwtService_alias_1 }
1215
+
1216
+ declare enum RequestType {
1217
+ Sign = "Sign",
1218
+ Verify = "Verify"
1219
+ }
1220
+ export { RequestType }
1221
+ export { RequestType as RequestType_alias_1 }
1222
+
1223
+ declare type Secret = z.infer<typeof SecretSchema>;
1224
+ export { Secret }
1225
+ export { Secret as Secret_alias_1 }
1226
+
1227
+ declare const SecretSchema: z.ZodUnion<[z.ZodString, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodObject<{
1228
+ type: z.ZodString;
1229
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1230
+ type: z.ZodString;
1231
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1232
+ type: z.ZodString;
1233
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1234
+ key: z.ZodUnion<[z.ZodString, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>]>;
1235
+ passphrase: z.ZodString;
1236
+ }, "strip", z.ZodTypeAny, {
1237
+ key: string | Buffer<ArrayBufferLike>;
1238
+ passphrase: string;
1239
+ }, {
1240
+ key: string | Buffer<ArrayBufferLike>;
1241
+ passphrase: string;
1242
+ }>]>;
1243
+ export { SecretSchema }
1244
+ export { SecretSchema as SecretSchema_alias_1 }
1245
+
1246
+ declare type SignOptions = z.infer<typeof SignOptionsSchema>;
1247
+ export { SignOptions }
1248
+ export { SignOptions as SignOptions_alias_1 }
1249
+
1250
+ declare const SignOptionsSchema: z.ZodObject<{
1251
+ algorithm: z.ZodOptional<z.ZodEnum<["HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512", "PS256", "PS384", "PS512", "none"]>>;
1252
+ keyid: z.ZodOptional<z.ZodString>;
1253
+ expiresIn: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1254
+ notBefore: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1255
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1256
+ subject: z.ZodOptional<z.ZodString>;
1257
+ issuer: z.ZodOptional<z.ZodString>;
1258
+ jwtid: z.ZodOptional<z.ZodString>;
1259
+ mutatePayload: z.ZodOptional<z.ZodBoolean>;
1260
+ noTimestamp: z.ZodOptional<z.ZodBoolean>;
1261
+ header: z.ZodOptional<z.ZodObject<{
1262
+ alg: z.ZodUnion<[z.ZodEnum<["HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512", "PS256", "PS384", "PS512", "none"]>, z.ZodString]>;
1263
+ typ: z.ZodOptional<z.ZodString>;
1264
+ cty: z.ZodOptional<z.ZodString>;
1265
+ crit: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1266
+ kid: z.ZodOptional<z.ZodString>;
1267
+ jku: z.ZodOptional<z.ZodString>;
1268
+ x5u: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1269
+ 'x5t#S256': z.ZodOptional<z.ZodString>;
1270
+ x5t: z.ZodOptional<z.ZodString>;
1271
+ x5c: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1272
+ }, "strip", z.ZodTypeAny, {
1273
+ alg: string;
1274
+ typ?: string | undefined;
1275
+ cty?: string | undefined;
1276
+ crit?: string[] | undefined;
1277
+ kid?: string | undefined;
1278
+ jku?: string | undefined;
1279
+ x5u?: string | string[] | undefined;
1280
+ 'x5t#S256'?: string | undefined;
1281
+ x5t?: string | undefined;
1282
+ x5c?: string | string[] | undefined;
1283
+ }, {
1284
+ alg: string;
1285
+ typ?: string | undefined;
1286
+ cty?: string | undefined;
1287
+ crit?: string[] | undefined;
1288
+ kid?: string | undefined;
1289
+ jku?: string | undefined;
1290
+ x5u?: string | string[] | undefined;
1291
+ 'x5t#S256'?: string | undefined;
1292
+ x5t?: string | undefined;
1293
+ x5c?: string | string[] | undefined;
1294
+ }>>;
1295
+ encoding: z.ZodOptional<z.ZodString>;
1296
+ allowInsecureKeySizes: z.ZodOptional<z.ZodBoolean>;
1297
+ allowInvalidAsymmetricKeyTypes: z.ZodOptional<z.ZodBoolean>;
1298
+ }, "strip", z.ZodTypeAny, {
1299
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none" | undefined;
1300
+ keyid?: string | undefined;
1301
+ expiresIn?: string | number | undefined;
1302
+ notBefore?: string | number | undefined;
1303
+ audience?: string | string[] | undefined;
1304
+ subject?: string | undefined;
1305
+ issuer?: string | undefined;
1306
+ jwtid?: string | undefined;
1307
+ mutatePayload?: boolean | undefined;
1308
+ noTimestamp?: boolean | undefined;
1309
+ header?: {
1310
+ alg: string;
1311
+ typ?: string | undefined;
1312
+ cty?: string | undefined;
1313
+ crit?: string[] | undefined;
1314
+ kid?: string | undefined;
1315
+ jku?: string | undefined;
1316
+ x5u?: string | string[] | undefined;
1317
+ 'x5t#S256'?: string | undefined;
1318
+ x5t?: string | undefined;
1319
+ x5c?: string | string[] | undefined;
1320
+ } | undefined;
1321
+ encoding?: string | undefined;
1322
+ allowInsecureKeySizes?: boolean | undefined;
1323
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
1324
+ }, {
1325
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none" | undefined;
1326
+ keyid?: string | undefined;
1327
+ expiresIn?: string | number | undefined;
1328
+ notBefore?: string | number | undefined;
1329
+ audience?: string | string[] | undefined;
1330
+ subject?: string | undefined;
1331
+ issuer?: string | undefined;
1332
+ jwtid?: string | undefined;
1333
+ mutatePayload?: boolean | undefined;
1334
+ noTimestamp?: boolean | undefined;
1335
+ header?: {
1336
+ alg: string;
1337
+ typ?: string | undefined;
1338
+ cty?: string | undefined;
1339
+ crit?: string[] | undefined;
1340
+ kid?: string | undefined;
1341
+ jku?: string | undefined;
1342
+ x5u?: string | string[] | undefined;
1343
+ 'x5t#S256'?: string | undefined;
1344
+ x5t?: string | undefined;
1345
+ x5c?: string | string[] | undefined;
1346
+ } | undefined;
1347
+ encoding?: string | undefined;
1348
+ allowInsecureKeySizes?: boolean | undefined;
1349
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
1350
+ }>;
1351
+ export { SignOptionsSchema }
1352
+ export { SignOptionsSchema as SignOptionsSchema_alias_1 }
1353
+
1354
+ export declare const TokenExpiredError: typeof jwt.TokenExpiredError;
1355
+
1356
+ declare type VerifyOptions = z.infer<typeof VerifyOptionsSchema>;
1357
+ export { VerifyOptions }
1358
+ export { VerifyOptions as VerifyOptions_alias_1 }
1359
+
1360
+ declare const VerifyOptionsSchema: z.ZodObject<{
1361
+ algorithms: z.ZodOptional<z.ZodArray<z.ZodEnum<["HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512", "PS256", "PS384", "PS512", "none"]>, "many">>;
1362
+ audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>, z.ZodArray<z.ZodString, "many">]>>;
1363
+ clockTimestamp: z.ZodOptional<z.ZodNumber>;
1364
+ clockTolerance: z.ZodOptional<z.ZodNumber>;
1365
+ complete: z.ZodOptional<z.ZodBoolean>;
1366
+ issuer: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1367
+ ignoreExpiration: z.ZodOptional<z.ZodBoolean>;
1368
+ ignoreNotBefore: z.ZodOptional<z.ZodBoolean>;
1369
+ jwtid: z.ZodOptional<z.ZodString>;
1370
+ nonce: z.ZodOptional<z.ZodString>;
1371
+ subject: z.ZodOptional<z.ZodString>;
1372
+ maxAge: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1373
+ allowInvalidAsymmetricKeyTypes: z.ZodOptional<z.ZodBoolean>;
1374
+ }, "strip", z.ZodTypeAny, {
1375
+ audience?: string | RegExp | string[] | undefined;
1376
+ subject?: string | undefined;
1377
+ issuer?: string | string[] | undefined;
1378
+ jwtid?: string | undefined;
1379
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
1380
+ algorithms?: ("HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none")[] | undefined;
1381
+ clockTimestamp?: number | undefined;
1382
+ clockTolerance?: number | undefined;
1383
+ complete?: boolean | undefined;
1384
+ ignoreExpiration?: boolean | undefined;
1385
+ ignoreNotBefore?: boolean | undefined;
1386
+ nonce?: string | undefined;
1387
+ maxAge?: string | number | undefined;
1388
+ }, {
1389
+ audience?: string | RegExp | string[] | undefined;
1390
+ subject?: string | undefined;
1391
+ issuer?: string | string[] | undefined;
1392
+ jwtid?: string | undefined;
1393
+ allowInvalidAsymmetricKeyTypes?: boolean | undefined;
1394
+ algorithms?: ("HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "none")[] | undefined;
1395
+ clockTimestamp?: number | undefined;
1396
+ clockTolerance?: number | undefined;
1397
+ complete?: boolean | undefined;
1398
+ ignoreExpiration?: boolean | undefined;
1399
+ ignoreNotBefore?: boolean | undefined;
1400
+ nonce?: string | undefined;
1401
+ maxAge?: string | number | undefined;
1402
+ }>;
1403
+ export { VerifyOptionsSchema }
1404
+ export { VerifyOptionsSchema as VerifyOptionsSchema_alias_1 }
1405
+
1406
+ export { }