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