@authhero/kysely-adapter 0.5.1 → 0.5.3
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/kysely-adapter.cjs +1 -1
- package/dist/kysely-adapter.d.ts +1144 -727
- package/dist/kysely-adapter.iife.js +1 -1
- package/dist/kysely-adapter.mjs +886 -777
- package/package.json +2 -2
package/dist/kysely-adapter.d.ts
CHANGED
|
@@ -297,94 +297,6 @@ declare enum CodeChallengeMethod {
|
|
|
297
297
|
S265 = "S256",
|
|
298
298
|
plain = "plain"
|
|
299
299
|
}
|
|
300
|
-
declare const authenticationCodeSchema: z.ZodObject<{
|
|
301
|
-
created_at: z.ZodString;
|
|
302
|
-
authParams: z.ZodObject<{
|
|
303
|
-
client_id: z.ZodString;
|
|
304
|
-
vendor_id: z.ZodOptional<z.ZodString>;
|
|
305
|
-
response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
|
|
306
|
-
response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
|
|
307
|
-
redirect_uri: z.ZodOptional<z.ZodString>;
|
|
308
|
-
audience: z.ZodOptional<z.ZodString>;
|
|
309
|
-
state: z.ZodOptional<z.ZodString>;
|
|
310
|
-
nonce: z.ZodOptional<z.ZodString>;
|
|
311
|
-
scope: z.ZodOptional<z.ZodString>;
|
|
312
|
-
code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
|
|
313
|
-
code_challenge: z.ZodOptional<z.ZodString>;
|
|
314
|
-
username: z.ZodOptional<z.ZodString>;
|
|
315
|
-
}, "strip", z.ZodTypeAny, {
|
|
316
|
-
client_id: string;
|
|
317
|
-
username?: string | undefined;
|
|
318
|
-
vendor_id?: string | undefined;
|
|
319
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
320
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
321
|
-
redirect_uri?: string | undefined;
|
|
322
|
-
audience?: string | undefined;
|
|
323
|
-
state?: string | undefined;
|
|
324
|
-
nonce?: string | undefined;
|
|
325
|
-
scope?: string | undefined;
|
|
326
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
327
|
-
code_challenge?: string | undefined;
|
|
328
|
-
}, {
|
|
329
|
-
client_id: string;
|
|
330
|
-
username?: string | undefined;
|
|
331
|
-
vendor_id?: string | undefined;
|
|
332
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
333
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
334
|
-
redirect_uri?: string | undefined;
|
|
335
|
-
audience?: string | undefined;
|
|
336
|
-
state?: string | undefined;
|
|
337
|
-
nonce?: string | undefined;
|
|
338
|
-
scope?: string | undefined;
|
|
339
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
340
|
-
code_challenge?: string | undefined;
|
|
341
|
-
}>;
|
|
342
|
-
code: z.ZodString;
|
|
343
|
-
user_id: z.ZodString;
|
|
344
|
-
expires_at: z.ZodString;
|
|
345
|
-
used_at: z.ZodOptional<z.ZodString>;
|
|
346
|
-
}, "strip", z.ZodTypeAny, {
|
|
347
|
-
code: string;
|
|
348
|
-
created_at: string;
|
|
349
|
-
user_id: string;
|
|
350
|
-
authParams: {
|
|
351
|
-
client_id: string;
|
|
352
|
-
username?: string | undefined;
|
|
353
|
-
vendor_id?: string | undefined;
|
|
354
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
355
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
356
|
-
redirect_uri?: string | undefined;
|
|
357
|
-
audience?: string | undefined;
|
|
358
|
-
state?: string | undefined;
|
|
359
|
-
nonce?: string | undefined;
|
|
360
|
-
scope?: string | undefined;
|
|
361
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
362
|
-
code_challenge?: string | undefined;
|
|
363
|
-
};
|
|
364
|
-
expires_at: string;
|
|
365
|
-
used_at?: string | undefined;
|
|
366
|
-
}, {
|
|
367
|
-
code: string;
|
|
368
|
-
created_at: string;
|
|
369
|
-
user_id: string;
|
|
370
|
-
authParams: {
|
|
371
|
-
client_id: string;
|
|
372
|
-
username?: string | undefined;
|
|
373
|
-
vendor_id?: string | undefined;
|
|
374
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
375
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
376
|
-
redirect_uri?: string | undefined;
|
|
377
|
-
audience?: string | undefined;
|
|
378
|
-
state?: string | undefined;
|
|
379
|
-
nonce?: string | undefined;
|
|
380
|
-
scope?: string | undefined;
|
|
381
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
382
|
-
code_challenge?: string | undefined;
|
|
383
|
-
};
|
|
384
|
-
expires_at: string;
|
|
385
|
-
used_at?: string | undefined;
|
|
386
|
-
}>;
|
|
387
|
-
export type AuthenticationCode = z.infer<typeof authenticationCodeSchema>;
|
|
388
300
|
declare const brandingSchema: z.ZodObject<{
|
|
389
301
|
colors: z.ZodOptional<z.ZodObject<{
|
|
390
302
|
primary: z.ZodString;
|
|
@@ -462,15 +374,259 @@ declare const brandingSchema: z.ZodObject<{
|
|
|
462
374
|
} | undefined;
|
|
463
375
|
}>;
|
|
464
376
|
export type Branding = z.infer<typeof brandingSchema>;
|
|
465
|
-
|
|
377
|
+
declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
378
|
+
id: z.ZodString;
|
|
379
|
+
name: z.ZodString;
|
|
380
|
+
domains: z.ZodArray<z.ZodObject<{
|
|
381
|
+
domain: z.ZodString;
|
|
382
|
+
dkim_private_key: z.ZodOptional<z.ZodString>;
|
|
383
|
+
dkim_public_key: z.ZodOptional<z.ZodString>;
|
|
384
|
+
email_api_key: z.ZodOptional<z.ZodString>;
|
|
385
|
+
email_service: z.ZodOptional<z.ZodUnion<[
|
|
386
|
+
z.ZodLiteral<"mailgun">,
|
|
387
|
+
z.ZodLiteral<"mailchannels">
|
|
388
|
+
]>>;
|
|
389
|
+
}, "strip", z.ZodTypeAny, {
|
|
390
|
+
domain: string;
|
|
391
|
+
dkim_private_key?: string | undefined;
|
|
392
|
+
dkim_public_key?: string | undefined;
|
|
393
|
+
email_api_key?: string | undefined;
|
|
394
|
+
email_service?: "mailgun" | "mailchannels" | undefined;
|
|
395
|
+
}, {
|
|
396
|
+
domain: string;
|
|
397
|
+
dkim_private_key?: string | undefined;
|
|
398
|
+
dkim_public_key?: string | undefined;
|
|
399
|
+
email_api_key?: string | undefined;
|
|
400
|
+
email_service?: "mailgun" | "mailchannels" | undefined;
|
|
401
|
+
}>, "many">;
|
|
402
|
+
allowed_callback_urls: z.ZodArray<z.ZodString, "many">;
|
|
403
|
+
allowed_logout_urls: z.ZodArray<z.ZodString, "many">;
|
|
404
|
+
allowed_web_origins: z.ZodArray<z.ZodString, "many">;
|
|
405
|
+
email_validation: z.ZodUnion<[
|
|
406
|
+
z.ZodLiteral<"enabled">,
|
|
407
|
+
z.ZodLiteral<"disabled">,
|
|
408
|
+
z.ZodLiteral<"enforced">
|
|
409
|
+
]>;
|
|
410
|
+
tenant_id: z.ZodString;
|
|
411
|
+
client_secret: z.ZodString;
|
|
412
|
+
disable_sign_ups: z.ZodBoolean;
|
|
413
|
+
tenant: z.ZodObject<{
|
|
414
|
+
name: z.ZodString;
|
|
415
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
416
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
417
|
+
primary_color: z.ZodOptional<z.ZodString>;
|
|
418
|
+
secondary_color: z.ZodOptional<z.ZodString>;
|
|
419
|
+
sender_email: z.ZodString;
|
|
420
|
+
sender_name: z.ZodString;
|
|
421
|
+
support_url: z.ZodOptional<z.ZodString>;
|
|
422
|
+
language: z.ZodOptional<z.ZodString>;
|
|
423
|
+
}, "strip", z.ZodTypeAny, {
|
|
424
|
+
name: string;
|
|
425
|
+
sender_email: string;
|
|
426
|
+
sender_name: string;
|
|
427
|
+
audience?: string | undefined;
|
|
428
|
+
logo?: string | undefined;
|
|
429
|
+
primary_color?: string | undefined;
|
|
430
|
+
secondary_color?: string | undefined;
|
|
431
|
+
support_url?: string | undefined;
|
|
432
|
+
language?: string | undefined;
|
|
433
|
+
}, {
|
|
434
|
+
name: string;
|
|
435
|
+
sender_email: string;
|
|
436
|
+
sender_name: string;
|
|
437
|
+
audience?: string | undefined;
|
|
438
|
+
logo?: string | undefined;
|
|
439
|
+
primary_color?: string | undefined;
|
|
440
|
+
secondary_color?: string | undefined;
|
|
441
|
+
support_url?: string | undefined;
|
|
442
|
+
language?: string | undefined;
|
|
443
|
+
}>;
|
|
444
|
+
}, {
|
|
445
|
+
connections: z.ZodArray<z.ZodObject<{
|
|
446
|
+
created_at: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
447
|
+
updated_at: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
448
|
+
id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
449
|
+
name: z.ZodOptional<z.ZodString>;
|
|
450
|
+
client_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
451
|
+
client_secret: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
452
|
+
authorization_endpoint: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
453
|
+
response_type: z.ZodOptional<z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>>;
|
|
454
|
+
response_mode: z.ZodOptional<z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>>;
|
|
455
|
+
private_key: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
456
|
+
kid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
457
|
+
team_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
458
|
+
token_endpoint: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
459
|
+
token_exchange_basic_auth: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
460
|
+
userinfo_endpoint: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
461
|
+
scope: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
462
|
+
}, "strip", z.ZodTypeAny, {
|
|
463
|
+
created_at?: string | undefined;
|
|
464
|
+
updated_at?: string | undefined;
|
|
465
|
+
name?: string | undefined;
|
|
466
|
+
id?: string | undefined;
|
|
467
|
+
client_secret?: string | undefined;
|
|
468
|
+
client_id?: string | undefined;
|
|
469
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
470
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
471
|
+
scope?: string | undefined;
|
|
472
|
+
authorization_endpoint?: string | undefined;
|
|
473
|
+
private_key?: string | undefined;
|
|
474
|
+
kid?: string | undefined;
|
|
475
|
+
team_id?: string | undefined;
|
|
476
|
+
token_endpoint?: string | undefined;
|
|
477
|
+
token_exchange_basic_auth?: boolean | undefined;
|
|
478
|
+
userinfo_endpoint?: string | undefined;
|
|
479
|
+
}, {
|
|
480
|
+
created_at?: string | undefined;
|
|
481
|
+
updated_at?: string | undefined;
|
|
482
|
+
name?: string | undefined;
|
|
483
|
+
id?: string | undefined;
|
|
484
|
+
client_secret?: string | undefined;
|
|
485
|
+
client_id?: string | undefined;
|
|
486
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
487
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
488
|
+
scope?: string | undefined;
|
|
489
|
+
authorization_endpoint?: string | undefined;
|
|
490
|
+
private_key?: string | undefined;
|
|
491
|
+
kid?: string | undefined;
|
|
492
|
+
team_id?: string | undefined;
|
|
493
|
+
token_endpoint?: string | undefined;
|
|
494
|
+
token_exchange_basic_auth?: boolean | undefined;
|
|
495
|
+
userinfo_endpoint?: string | undefined;
|
|
496
|
+
}>, "many">;
|
|
497
|
+
}>, "strip", z.ZodTypeAny, {
|
|
498
|
+
name: string;
|
|
466
499
|
id: string;
|
|
467
|
-
|
|
468
|
-
|
|
500
|
+
allowed_web_origins: string[];
|
|
501
|
+
allowed_callback_urls: string[];
|
|
502
|
+
allowed_logout_urls: string[];
|
|
503
|
+
email_validation: "enabled" | "disabled" | "enforced";
|
|
504
|
+
client_secret: string;
|
|
505
|
+
disable_sign_ups: boolean;
|
|
506
|
+
domains: {
|
|
507
|
+
domain: string;
|
|
508
|
+
dkim_private_key?: string | undefined;
|
|
509
|
+
dkim_public_key?: string | undefined;
|
|
510
|
+
email_api_key?: string | undefined;
|
|
511
|
+
email_service?: "mailgun" | "mailchannels" | undefined;
|
|
512
|
+
}[];
|
|
513
|
+
tenant_id: string;
|
|
514
|
+
tenant: {
|
|
515
|
+
name: string;
|
|
516
|
+
sender_email: string;
|
|
517
|
+
sender_name: string;
|
|
518
|
+
audience?: string | undefined;
|
|
519
|
+
logo?: string | undefined;
|
|
520
|
+
primary_color?: string | undefined;
|
|
521
|
+
secondary_color?: string | undefined;
|
|
522
|
+
support_url?: string | undefined;
|
|
523
|
+
language?: string | undefined;
|
|
524
|
+
};
|
|
525
|
+
connections: {
|
|
526
|
+
created_at?: string | undefined;
|
|
527
|
+
updated_at?: string | undefined;
|
|
528
|
+
name?: string | undefined;
|
|
529
|
+
id?: string | undefined;
|
|
530
|
+
client_secret?: string | undefined;
|
|
531
|
+
client_id?: string | undefined;
|
|
532
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
533
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
534
|
+
scope?: string | undefined;
|
|
535
|
+
authorization_endpoint?: string | undefined;
|
|
536
|
+
private_key?: string | undefined;
|
|
537
|
+
kid?: string | undefined;
|
|
538
|
+
team_id?: string | undefined;
|
|
539
|
+
token_endpoint?: string | undefined;
|
|
540
|
+
token_exchange_basic_auth?: boolean | undefined;
|
|
541
|
+
userinfo_endpoint?: string | undefined;
|
|
542
|
+
}[];
|
|
543
|
+
}, {
|
|
544
|
+
name: string;
|
|
545
|
+
id: string;
|
|
546
|
+
allowed_web_origins: string[];
|
|
547
|
+
allowed_callback_urls: string[];
|
|
548
|
+
allowed_logout_urls: string[];
|
|
549
|
+
email_validation: "enabled" | "disabled" | "enforced";
|
|
550
|
+
client_secret: string;
|
|
551
|
+
disable_sign_ups: boolean;
|
|
552
|
+
domains: {
|
|
553
|
+
domain: string;
|
|
554
|
+
dkim_private_key?: string | undefined;
|
|
555
|
+
dkim_public_key?: string | undefined;
|
|
556
|
+
email_api_key?: string | undefined;
|
|
557
|
+
email_service?: "mailgun" | "mailchannels" | undefined;
|
|
558
|
+
}[];
|
|
559
|
+
tenant_id: string;
|
|
560
|
+
tenant: {
|
|
561
|
+
name: string;
|
|
562
|
+
sender_email: string;
|
|
563
|
+
sender_name: string;
|
|
564
|
+
audience?: string | undefined;
|
|
565
|
+
logo?: string | undefined;
|
|
566
|
+
primary_color?: string | undefined;
|
|
567
|
+
secondary_color?: string | undefined;
|
|
568
|
+
support_url?: string | undefined;
|
|
569
|
+
language?: string | undefined;
|
|
570
|
+
};
|
|
571
|
+
connections: {
|
|
572
|
+
created_at?: string | undefined;
|
|
573
|
+
updated_at?: string | undefined;
|
|
574
|
+
name?: string | undefined;
|
|
575
|
+
id?: string | undefined;
|
|
576
|
+
client_secret?: string | undefined;
|
|
577
|
+
client_id?: string | undefined;
|
|
578
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
579
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
580
|
+
scope?: string | undefined;
|
|
581
|
+
authorization_endpoint?: string | undefined;
|
|
582
|
+
private_key?: string | undefined;
|
|
583
|
+
kid?: string | undefined;
|
|
584
|
+
team_id?: string | undefined;
|
|
585
|
+
token_endpoint?: string | undefined;
|
|
586
|
+
token_exchange_basic_auth?: boolean | undefined;
|
|
587
|
+
userinfo_endpoint?: string | undefined;
|
|
588
|
+
}[];
|
|
589
|
+
}>;
|
|
590
|
+
export type PartialClient = z.infer<typeof PartialClientSchema>;
|
|
591
|
+
declare const codeTypeSchema: z.ZodEnum<[
|
|
592
|
+
"password_reset",
|
|
593
|
+
"email_verification",
|
|
594
|
+
"otp",
|
|
595
|
+
"oauth2",
|
|
596
|
+
"oauth2_state",
|
|
597
|
+
"ticket"
|
|
598
|
+
]>;
|
|
599
|
+
export type CodeType = z.infer<typeof codeTypeSchema>;
|
|
600
|
+
declare const codeSchema: z.ZodObject<{
|
|
601
|
+
code_id: z.ZodString;
|
|
602
|
+
login_id: z.ZodString;
|
|
603
|
+
code_type: z.ZodEnum<[
|
|
604
|
+
"password_reset",
|
|
605
|
+
"email_verification",
|
|
606
|
+
"otp",
|
|
607
|
+
"oauth2",
|
|
608
|
+
"oauth2_state",
|
|
609
|
+
"ticket"
|
|
610
|
+
]>;
|
|
611
|
+
created_at: z.ZodString;
|
|
612
|
+
expires_at: z.ZodString;
|
|
613
|
+
used_at: z.ZodOptional<z.ZodString>;
|
|
614
|
+
}, "strip", z.ZodTypeAny, {
|
|
469
615
|
created_at: string;
|
|
616
|
+
code_id: string;
|
|
617
|
+
login_id: string;
|
|
618
|
+
code_type: "password_reset" | "email_verification" | "otp" | "oauth2" | "oauth2_state" | "ticket";
|
|
470
619
|
expires_at: string;
|
|
471
|
-
used_at?: string;
|
|
472
|
-
|
|
473
|
-
|
|
620
|
+
used_at?: string | undefined;
|
|
621
|
+
}, {
|
|
622
|
+
created_at: string;
|
|
623
|
+
code_id: string;
|
|
624
|
+
login_id: string;
|
|
625
|
+
code_type: "password_reset" | "email_verification" | "otp" | "oauth2" | "oauth2_state" | "ticket";
|
|
626
|
+
expires_at: string;
|
|
627
|
+
used_at?: string | undefined;
|
|
628
|
+
}>;
|
|
629
|
+
export type Code = z.infer<typeof codeSchema>;
|
|
474
630
|
declare const connectionInsertSchema: z.ZodObject<{
|
|
475
631
|
id: z.ZodOptional<z.ZodString>;
|
|
476
632
|
name: z.ZodString;
|
|
@@ -654,183 +810,35 @@ declare const hookSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
654
810
|
enabled?: boolean | undefined;
|
|
655
811
|
}>;
|
|
656
812
|
export type Hook = z.infer<typeof hookSchema>;
|
|
657
|
-
declare const
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
"serft"
|
|
674
|
-
]>;
|
|
675
|
-
export type LogType$1 = z.infer<typeof LogType>;
|
|
676
|
-
declare const logSchema: z.ZodObject<{
|
|
677
|
-
type: z.ZodEnum<[
|
|
678
|
-
"sapi",
|
|
679
|
-
"ssa",
|
|
680
|
-
"fsa",
|
|
681
|
-
"ss",
|
|
682
|
-
"ssa",
|
|
683
|
-
"fs",
|
|
684
|
-
"s",
|
|
685
|
-
"f",
|
|
686
|
-
"fp",
|
|
687
|
-
"slo",
|
|
688
|
-
"scoa",
|
|
689
|
-
"fcoa",
|
|
690
|
-
"seccft",
|
|
691
|
-
"cls",
|
|
692
|
-
"seacft",
|
|
693
|
-
"serft"
|
|
694
|
-
]>;
|
|
695
|
-
date: z.ZodString;
|
|
696
|
-
description: z.ZodOptional<z.ZodString>;
|
|
697
|
-
log_id: z.ZodOptional<z.ZodString>;
|
|
698
|
-
_id: z.ZodOptional<z.ZodString>;
|
|
699
|
-
ip: z.ZodString;
|
|
700
|
-
user_agent: z.ZodString;
|
|
701
|
-
details: z.ZodOptional<z.ZodAny>;
|
|
702
|
-
isMobile: z.ZodBoolean;
|
|
703
|
-
user_id: z.ZodOptional<z.ZodString>;
|
|
704
|
-
user_name: z.ZodOptional<z.ZodString>;
|
|
705
|
-
connection: z.ZodOptional<z.ZodString>;
|
|
706
|
-
connection_id: z.ZodOptional<z.ZodString>;
|
|
707
|
-
client_id: z.ZodOptional<z.ZodString>;
|
|
708
|
-
client_name: z.ZodOptional<z.ZodString>;
|
|
709
|
-
audience: z.ZodOptional<z.ZodString>;
|
|
710
|
-
scope: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
711
|
-
strategy: z.ZodOptional<z.ZodString>;
|
|
712
|
-
strategy_type: z.ZodOptional<z.ZodString>;
|
|
713
|
-
hostname: z.ZodOptional<z.ZodString>;
|
|
714
|
-
auth0_client: z.ZodOptional<z.ZodObject<{
|
|
715
|
-
name: z.ZodString;
|
|
716
|
-
version: z.ZodString;
|
|
717
|
-
env: z.ZodOptional<z.ZodObject<{
|
|
718
|
-
node: z.ZodOptional<z.ZodString>;
|
|
719
|
-
}, "strip", z.ZodTypeAny, {
|
|
720
|
-
node?: string | undefined;
|
|
721
|
-
}, {
|
|
722
|
-
node?: string | undefined;
|
|
723
|
-
}>>;
|
|
813
|
+
declare const loginInsertSchema: z.ZodObject<{
|
|
814
|
+
login_id: z.ZodString;
|
|
815
|
+
auth0Client: z.ZodOptional<z.ZodString>;
|
|
816
|
+
authParams: z.ZodObject<{
|
|
817
|
+
client_id: z.ZodString;
|
|
818
|
+
vendor_id: z.ZodOptional<z.ZodString>;
|
|
819
|
+
response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
|
|
820
|
+
response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
|
|
821
|
+
redirect_uri: z.ZodOptional<z.ZodString>;
|
|
822
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
823
|
+
state: z.ZodOptional<z.ZodString>;
|
|
824
|
+
nonce: z.ZodOptional<z.ZodString>;
|
|
825
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
826
|
+
code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
|
|
827
|
+
code_challenge: z.ZodOptional<z.ZodString>;
|
|
828
|
+
username: z.ZodOptional<z.ZodString>;
|
|
724
829
|
}, "strip", z.ZodTypeAny, {
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
}, "strip", z.ZodTypeAny, {
|
|
738
|
-
type: "sapi" | "ssa" | "fsa" | "ss" | "fs" | "s" | "f" | "fp" | "slo" | "scoa" | "fcoa" | "seacft" | "serft" | "cls" | "seccft";
|
|
739
|
-
date: string;
|
|
740
|
-
ip: string;
|
|
741
|
-
user_agent: string;
|
|
742
|
-
isMobile: boolean;
|
|
743
|
-
description?: string | undefined;
|
|
744
|
-
connection?: string | undefined;
|
|
745
|
-
user_id?: string | undefined;
|
|
746
|
-
client_id?: string | undefined;
|
|
747
|
-
audience?: string | undefined;
|
|
748
|
-
scope?: string[] | undefined;
|
|
749
|
-
log_id?: string | undefined;
|
|
750
|
-
_id?: string | undefined;
|
|
751
|
-
details?: any;
|
|
752
|
-
user_name?: string | undefined;
|
|
753
|
-
connection_id?: string | undefined;
|
|
754
|
-
client_name?: string | undefined;
|
|
755
|
-
strategy?: string | undefined;
|
|
756
|
-
strategy_type?: string | undefined;
|
|
757
|
-
hostname?: string | undefined;
|
|
758
|
-
auth0_client?: {
|
|
759
|
-
name: string;
|
|
760
|
-
version: string;
|
|
761
|
-
env?: {
|
|
762
|
-
node?: string | undefined;
|
|
763
|
-
} | undefined;
|
|
764
|
-
} | undefined;
|
|
765
|
-
}, {
|
|
766
|
-
type: "sapi" | "ssa" | "fsa" | "ss" | "fs" | "s" | "f" | "fp" | "slo" | "scoa" | "fcoa" | "seacft" | "serft" | "cls" | "seccft";
|
|
767
|
-
date: string;
|
|
768
|
-
ip: string;
|
|
769
|
-
user_agent: string;
|
|
770
|
-
isMobile: boolean;
|
|
771
|
-
description?: string | undefined;
|
|
772
|
-
connection?: string | undefined;
|
|
773
|
-
user_id?: string | undefined;
|
|
774
|
-
client_id?: string | undefined;
|
|
775
|
-
audience?: string | undefined;
|
|
776
|
-
scope?: string[] | undefined;
|
|
777
|
-
log_id?: string | undefined;
|
|
778
|
-
_id?: string | undefined;
|
|
779
|
-
details?: any;
|
|
780
|
-
user_name?: string | undefined;
|
|
781
|
-
connection_id?: string | undefined;
|
|
782
|
-
client_name?: string | undefined;
|
|
783
|
-
strategy?: string | undefined;
|
|
784
|
-
strategy_type?: string | undefined;
|
|
785
|
-
hostname?: string | undefined;
|
|
786
|
-
auth0_client?: {
|
|
787
|
-
name: string;
|
|
788
|
-
version: string;
|
|
789
|
-
env?: {
|
|
790
|
-
node?: string | undefined;
|
|
791
|
-
} | undefined;
|
|
792
|
-
} | undefined;
|
|
793
|
-
}>;
|
|
794
|
-
export type Log = z.infer<typeof logSchema>;
|
|
795
|
-
export type LogsResponse = Log & {
|
|
796
|
-
log_id: string;
|
|
797
|
-
_id: string;
|
|
798
|
-
};
|
|
799
|
-
declare const otpInsertSchema: z.ZodObject<{
|
|
800
|
-
id: z.ZodString;
|
|
801
|
-
email: z.ZodString;
|
|
802
|
-
code: z.ZodString;
|
|
803
|
-
ip: z.ZodOptional<z.ZodString>;
|
|
804
|
-
send: z.ZodEnum<[
|
|
805
|
-
"code",
|
|
806
|
-
"link"
|
|
807
|
-
]>;
|
|
808
|
-
authParams: z.ZodObject<{
|
|
809
|
-
client_id: z.ZodString;
|
|
810
|
-
vendor_id: z.ZodOptional<z.ZodString>;
|
|
811
|
-
response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
|
|
812
|
-
response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
|
|
813
|
-
redirect_uri: z.ZodOptional<z.ZodString>;
|
|
814
|
-
audience: z.ZodOptional<z.ZodString>;
|
|
815
|
-
state: z.ZodOptional<z.ZodString>;
|
|
816
|
-
nonce: z.ZodOptional<z.ZodString>;
|
|
817
|
-
scope: z.ZodOptional<z.ZodString>;
|
|
818
|
-
code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
|
|
819
|
-
code_challenge: z.ZodOptional<z.ZodString>;
|
|
820
|
-
username: z.ZodOptional<z.ZodString>;
|
|
821
|
-
}, "strip", z.ZodTypeAny, {
|
|
822
|
-
client_id: string;
|
|
823
|
-
username?: string | undefined;
|
|
824
|
-
vendor_id?: string | undefined;
|
|
825
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
826
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
827
|
-
redirect_uri?: string | undefined;
|
|
828
|
-
audience?: string | undefined;
|
|
829
|
-
state?: string | undefined;
|
|
830
|
-
nonce?: string | undefined;
|
|
831
|
-
scope?: string | undefined;
|
|
832
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
833
|
-
code_challenge?: string | undefined;
|
|
830
|
+
client_id: string;
|
|
831
|
+
username?: string | undefined;
|
|
832
|
+
vendor_id?: string | undefined;
|
|
833
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
834
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
835
|
+
redirect_uri?: string | undefined;
|
|
836
|
+
audience?: string | undefined;
|
|
837
|
+
state?: string | undefined;
|
|
838
|
+
nonce?: string | undefined;
|
|
839
|
+
scope?: string | undefined;
|
|
840
|
+
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
841
|
+
code_challenge?: string | undefined;
|
|
834
842
|
}, {
|
|
835
843
|
client_id: string;
|
|
836
844
|
username?: string | undefined;
|
|
@@ -846,12 +854,11 @@ declare const otpInsertSchema: z.ZodObject<{
|
|
|
846
854
|
code_challenge?: string | undefined;
|
|
847
855
|
}>;
|
|
848
856
|
expires_at: z.ZodString;
|
|
849
|
-
|
|
850
|
-
|
|
857
|
+
deleted_at: z.ZodString;
|
|
858
|
+
ip: z.ZodOptional<z.ZodString>;
|
|
851
859
|
}, "strip", z.ZodTypeAny, {
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
id: string;
|
|
860
|
+
login_id: string;
|
|
861
|
+
expires_at: string;
|
|
855
862
|
authParams: {
|
|
856
863
|
client_id: string;
|
|
857
864
|
username?: string | undefined;
|
|
@@ -866,15 +873,12 @@ declare const otpInsertSchema: z.ZodObject<{
|
|
|
866
873
|
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
867
874
|
code_challenge?: string | undefined;
|
|
868
875
|
};
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
user_id?: string | undefined;
|
|
872
|
-
used_at?: string | undefined;
|
|
876
|
+
deleted_at: string;
|
|
877
|
+
auth0Client?: string | undefined;
|
|
873
878
|
ip?: string | undefined;
|
|
874
879
|
}, {
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
id: string;
|
|
880
|
+
login_id: string;
|
|
881
|
+
expires_at: string;
|
|
878
882
|
authParams: {
|
|
879
883
|
client_id: string;
|
|
880
884
|
username?: string | undefined;
|
|
@@ -889,22 +893,16 @@ declare const otpInsertSchema: z.ZodObject<{
|
|
|
889
893
|
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
890
894
|
code_challenge?: string | undefined;
|
|
891
895
|
};
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
user_id?: string | undefined;
|
|
895
|
-
used_at?: string | undefined;
|
|
896
|
+
deleted_at: string;
|
|
897
|
+
auth0Client?: string | undefined;
|
|
896
898
|
ip?: string | undefined;
|
|
897
899
|
}>;
|
|
898
|
-
export type
|
|
899
|
-
declare const
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
send: z.ZodEnum<[
|
|
905
|
-
"code",
|
|
906
|
-
"link"
|
|
907
|
-
]>;
|
|
900
|
+
export type LoginInsert = z.infer<typeof loginInsertSchema>;
|
|
901
|
+
declare const loginSchema: z.ZodObject<{
|
|
902
|
+
created_at: z.ZodString;
|
|
903
|
+
updated_at: z.ZodString;
|
|
904
|
+
login_id: z.ZodString;
|
|
905
|
+
auth0Client: z.ZodOptional<z.ZodString>;
|
|
908
906
|
authParams: z.ZodObject<{
|
|
909
907
|
client_id: z.ZodString;
|
|
910
908
|
vendor_id: z.ZodOptional<z.ZodString>;
|
|
@@ -946,14 +944,13 @@ declare const otpSchema: z.ZodObject<{
|
|
|
946
944
|
code_challenge?: string | undefined;
|
|
947
945
|
}>;
|
|
948
946
|
expires_at: z.ZodString;
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
created_at: z.ZodString;
|
|
947
|
+
deleted_at: z.ZodString;
|
|
948
|
+
ip: z.ZodOptional<z.ZodString>;
|
|
952
949
|
}, "strip", z.ZodTypeAny, {
|
|
953
|
-
code: string;
|
|
954
950
|
created_at: string;
|
|
955
|
-
|
|
956
|
-
|
|
951
|
+
updated_at: string;
|
|
952
|
+
login_id: string;
|
|
953
|
+
expires_at: string;
|
|
957
954
|
authParams: {
|
|
958
955
|
client_id: string;
|
|
959
956
|
username?: string | undefined;
|
|
@@ -968,16 +965,14 @@ declare const otpSchema: z.ZodObject<{
|
|
|
968
965
|
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
969
966
|
code_challenge?: string | undefined;
|
|
970
967
|
};
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
user_id?: string | undefined;
|
|
974
|
-
used_at?: string | undefined;
|
|
968
|
+
deleted_at: string;
|
|
969
|
+
auth0Client?: string | undefined;
|
|
975
970
|
ip?: string | undefined;
|
|
976
971
|
}, {
|
|
977
|
-
code: string;
|
|
978
972
|
created_at: string;
|
|
979
|
-
|
|
980
|
-
|
|
973
|
+
updated_at: string;
|
|
974
|
+
login_id: string;
|
|
975
|
+
expires_at: string;
|
|
981
976
|
authParams: {
|
|
982
977
|
client_id: string;
|
|
983
978
|
username?: string | undefined;
|
|
@@ -992,39 +987,191 @@ declare const otpSchema: z.ZodObject<{
|
|
|
992
987
|
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
993
988
|
code_challenge?: string | undefined;
|
|
994
989
|
};
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
user_id?: string | undefined;
|
|
998
|
-
used_at?: string | undefined;
|
|
990
|
+
deleted_at: string;
|
|
991
|
+
auth0Client?: string | undefined;
|
|
999
992
|
ip?: string | undefined;
|
|
1000
993
|
}>;
|
|
1001
|
-
export type
|
|
1002
|
-
declare const
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
994
|
+
export type Login = z.infer<typeof loginSchema>;
|
|
995
|
+
declare const LogType: z.ZodEnum<[
|
|
996
|
+
"sapi",
|
|
997
|
+
"ssa",
|
|
998
|
+
"fsa",
|
|
999
|
+
"ss",
|
|
1000
|
+
"ssa",
|
|
1001
|
+
"fs",
|
|
1002
|
+
"s",
|
|
1003
|
+
"f",
|
|
1004
|
+
"fp",
|
|
1005
|
+
"slo",
|
|
1006
|
+
"scoa",
|
|
1007
|
+
"fcoa",
|
|
1008
|
+
"seccft",
|
|
1009
|
+
"cls",
|
|
1010
|
+
"seacft",
|
|
1011
|
+
"serft"
|
|
1012
|
+
]>;
|
|
1013
|
+
export type LogType$1 = z.infer<typeof LogType>;
|
|
1014
|
+
declare const logSchema: z.ZodObject<{
|
|
1015
|
+
type: z.ZodEnum<[
|
|
1016
|
+
"sapi",
|
|
1017
|
+
"ssa",
|
|
1018
|
+
"fsa",
|
|
1019
|
+
"ss",
|
|
1020
|
+
"ssa",
|
|
1021
|
+
"fs",
|
|
1022
|
+
"s",
|
|
1023
|
+
"f",
|
|
1024
|
+
"fp",
|
|
1025
|
+
"slo",
|
|
1026
|
+
"scoa",
|
|
1027
|
+
"fcoa",
|
|
1028
|
+
"seccft",
|
|
1029
|
+
"cls",
|
|
1030
|
+
"seacft",
|
|
1031
|
+
"serft"
|
|
1032
|
+
]>;
|
|
1033
|
+
date: z.ZodString;
|
|
1034
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1035
|
+
log_id: z.ZodOptional<z.ZodString>;
|
|
1036
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
1037
|
+
ip: z.ZodString;
|
|
1038
|
+
user_agent: z.ZodString;
|
|
1039
|
+
details: z.ZodOptional<z.ZodAny>;
|
|
1040
|
+
isMobile: z.ZodBoolean;
|
|
1041
|
+
user_id: z.ZodOptional<z.ZodString>;
|
|
1042
|
+
user_name: z.ZodOptional<z.ZodString>;
|
|
1043
|
+
connection: z.ZodOptional<z.ZodString>;
|
|
1044
|
+
connection_id: z.ZodOptional<z.ZodString>;
|
|
1045
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
1046
|
+
client_name: z.ZodOptional<z.ZodString>;
|
|
1047
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
1048
|
+
scope: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1049
|
+
strategy: z.ZodOptional<z.ZodString>;
|
|
1050
|
+
strategy_type: z.ZodOptional<z.ZodString>;
|
|
1051
|
+
hostname: z.ZodOptional<z.ZodString>;
|
|
1052
|
+
auth0_client: z.ZodOptional<z.ZodObject<{
|
|
1053
|
+
name: z.ZodString;
|
|
1054
|
+
version: z.ZodString;
|
|
1055
|
+
env: z.ZodOptional<z.ZodObject<{
|
|
1056
|
+
node: z.ZodOptional<z.ZodString>;
|
|
1057
|
+
}, "strip", z.ZodTypeAny, {
|
|
1058
|
+
node?: string | undefined;
|
|
1059
|
+
}, {
|
|
1060
|
+
node?: string | undefined;
|
|
1061
|
+
}>>;
|
|
1062
|
+
}, "strip", z.ZodTypeAny, {
|
|
1063
|
+
name: string;
|
|
1064
|
+
version: string;
|
|
1065
|
+
env?: {
|
|
1066
|
+
node?: string | undefined;
|
|
1067
|
+
} | undefined;
|
|
1068
|
+
}, {
|
|
1069
|
+
name: string;
|
|
1070
|
+
version: string;
|
|
1071
|
+
env?: {
|
|
1072
|
+
node?: string | undefined;
|
|
1073
|
+
} | undefined;
|
|
1074
|
+
}>>;
|
|
1018
1075
|
}, "strip", z.ZodTypeAny, {
|
|
1019
|
-
|
|
1076
|
+
type: "sapi" | "ssa" | "fsa" | "ss" | "fs" | "s" | "f" | "fp" | "slo" | "scoa" | "fcoa" | "seacft" | "serft" | "cls" | "seccft";
|
|
1077
|
+
date: string;
|
|
1078
|
+
ip: string;
|
|
1079
|
+
user_agent: string;
|
|
1080
|
+
isMobile: boolean;
|
|
1081
|
+
description?: string | undefined;
|
|
1082
|
+
connection?: string | undefined;
|
|
1083
|
+
user_id?: string | undefined;
|
|
1084
|
+
client_id?: string | undefined;
|
|
1085
|
+
audience?: string | undefined;
|
|
1086
|
+
scope?: string[] | undefined;
|
|
1087
|
+
log_id?: string | undefined;
|
|
1088
|
+
_id?: string | undefined;
|
|
1089
|
+
details?: any;
|
|
1090
|
+
user_name?: string | undefined;
|
|
1091
|
+
connection_id?: string | undefined;
|
|
1092
|
+
client_name?: string | undefined;
|
|
1093
|
+
strategy?: string | undefined;
|
|
1094
|
+
strategy_type?: string | undefined;
|
|
1095
|
+
hostname?: string | undefined;
|
|
1096
|
+
auth0_client?: {
|
|
1097
|
+
name: string;
|
|
1098
|
+
version: string;
|
|
1099
|
+
env?: {
|
|
1100
|
+
node?: string | undefined;
|
|
1101
|
+
} | undefined;
|
|
1102
|
+
} | undefined;
|
|
1103
|
+
}, {
|
|
1104
|
+
type: "sapi" | "ssa" | "fsa" | "ss" | "fs" | "s" | "f" | "fp" | "slo" | "scoa" | "fcoa" | "seacft" | "serft" | "cls" | "seccft";
|
|
1105
|
+
date: string;
|
|
1106
|
+
ip: string;
|
|
1107
|
+
user_agent: string;
|
|
1108
|
+
isMobile: boolean;
|
|
1109
|
+
description?: string | undefined;
|
|
1110
|
+
connection?: string | undefined;
|
|
1111
|
+
user_id?: string | undefined;
|
|
1112
|
+
client_id?: string | undefined;
|
|
1113
|
+
audience?: string | undefined;
|
|
1114
|
+
scope?: string[] | undefined;
|
|
1115
|
+
log_id?: string | undefined;
|
|
1116
|
+
_id?: string | undefined;
|
|
1117
|
+
details?: any;
|
|
1118
|
+
user_name?: string | undefined;
|
|
1119
|
+
connection_id?: string | undefined;
|
|
1120
|
+
client_name?: string | undefined;
|
|
1121
|
+
strategy?: string | undefined;
|
|
1122
|
+
strategy_type?: string | undefined;
|
|
1123
|
+
hostname?: string | undefined;
|
|
1124
|
+
auth0_client?: {
|
|
1125
|
+
name: string;
|
|
1126
|
+
version: string;
|
|
1127
|
+
env?: {
|
|
1128
|
+
node?: string | undefined;
|
|
1129
|
+
} | undefined;
|
|
1130
|
+
} | undefined;
|
|
1131
|
+
}>;
|
|
1132
|
+
export type Log = z.infer<typeof logSchema>;
|
|
1133
|
+
export type LogsResponse = Log & {
|
|
1134
|
+
log_id: string;
|
|
1135
|
+
_id: string;
|
|
1136
|
+
};
|
|
1137
|
+
declare const passwordInsertSchema: z.ZodObject<{
|
|
1138
|
+
user_id: z.ZodString;
|
|
1139
|
+
password: z.ZodString;
|
|
1140
|
+
algorithm: z.ZodDefault<z.ZodEnum<[
|
|
1141
|
+
"bcrypt",
|
|
1142
|
+
"argon2id"
|
|
1143
|
+
]>>;
|
|
1144
|
+
}, "strip", z.ZodTypeAny, {
|
|
1145
|
+
password: string;
|
|
1146
|
+
user_id: string;
|
|
1147
|
+
algorithm: "bcrypt" | "argon2id";
|
|
1148
|
+
}, {
|
|
1149
|
+
password: string;
|
|
1150
|
+
user_id: string;
|
|
1151
|
+
algorithm?: "bcrypt" | "argon2id" | undefined;
|
|
1152
|
+
}>;
|
|
1153
|
+
export type PasswordInsert = z.infer<typeof passwordInsertSchema>;
|
|
1154
|
+
declare const passwordSchema: z.ZodObject<{
|
|
1155
|
+
created_at: z.ZodString;
|
|
1156
|
+
updated_at: z.ZodString;
|
|
1157
|
+
user_id: z.ZodString;
|
|
1158
|
+
password: z.ZodString;
|
|
1159
|
+
algorithm: z.ZodDefault<z.ZodEnum<[
|
|
1160
|
+
"bcrypt",
|
|
1161
|
+
"argon2id"
|
|
1162
|
+
]>>;
|
|
1163
|
+
}, "strip", z.ZodTypeAny, {
|
|
1164
|
+
password: string;
|
|
1020
1165
|
created_at: string;
|
|
1021
1166
|
updated_at: string;
|
|
1022
1167
|
user_id: string;
|
|
1168
|
+
algorithm: "bcrypt" | "argon2id";
|
|
1023
1169
|
}, {
|
|
1024
1170
|
password: string;
|
|
1025
1171
|
created_at: string;
|
|
1026
1172
|
updated_at: string;
|
|
1027
1173
|
user_id: string;
|
|
1174
|
+
algorithm?: "bcrypt" | "argon2id" | undefined;
|
|
1028
1175
|
}>;
|
|
1029
1176
|
export type Password = z.infer<typeof passwordSchema>;
|
|
1030
1177
|
declare const sessionInsertSchema: z.ZodObject<{
|
|
@@ -1097,251 +1244,64 @@ export interface Tenant {
|
|
|
1097
1244
|
created_at: string;
|
|
1098
1245
|
updated_at: string;
|
|
1099
1246
|
}
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
used_at?: Date;
|
|
1116
|
-
}
|
|
1117
|
-
declare const universalLoginSessionInsertSchema: z.ZodObject<{
|
|
1118
|
-
id: z.ZodString;
|
|
1119
|
-
expires_at: z.ZodString;
|
|
1120
|
-
auth0Client: z.ZodOptional<z.ZodString>;
|
|
1121
|
-
authParams: z.ZodObject<{
|
|
1122
|
-
client_id: z.ZodString;
|
|
1123
|
-
vendor_id: z.ZodOptional<z.ZodString>;
|
|
1124
|
-
response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
|
|
1125
|
-
response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
|
|
1126
|
-
redirect_uri: z.ZodOptional<z.ZodString>;
|
|
1127
|
-
audience: z.ZodOptional<z.ZodString>;
|
|
1128
|
-
state: z.ZodOptional<z.ZodString>;
|
|
1129
|
-
nonce: z.ZodOptional<z.ZodString>;
|
|
1130
|
-
scope: z.ZodOptional<z.ZodString>;
|
|
1131
|
-
code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
|
|
1132
|
-
code_challenge: z.ZodOptional<z.ZodString>;
|
|
1133
|
-
username: z.ZodOptional<z.ZodString>;
|
|
1247
|
+
declare const themeInsertSchema: z.ZodObject<{
|
|
1248
|
+
borders: z.ZodObject<{
|
|
1249
|
+
button_border_radius: z.ZodNumber;
|
|
1250
|
+
button_border_weight: z.ZodNumber;
|
|
1251
|
+
buttons_style: z.ZodEnum<[
|
|
1252
|
+
"pill"
|
|
1253
|
+
]>;
|
|
1254
|
+
input_border_radius: z.ZodNumber;
|
|
1255
|
+
input_border_weight: z.ZodNumber;
|
|
1256
|
+
inputs_style: z.ZodEnum<[
|
|
1257
|
+
"pill"
|
|
1258
|
+
]>;
|
|
1259
|
+
show_widget_shadow: z.ZodBoolean;
|
|
1260
|
+
widget_border_weight: z.ZodNumber;
|
|
1261
|
+
widget_corner_radius: z.ZodNumber;
|
|
1134
1262
|
}, "strip", z.ZodTypeAny, {
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
scope?: string | undefined;
|
|
1145
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
1146
|
-
code_challenge?: string | undefined;
|
|
1263
|
+
button_border_radius: number;
|
|
1264
|
+
button_border_weight: number;
|
|
1265
|
+
buttons_style: "pill";
|
|
1266
|
+
input_border_radius: number;
|
|
1267
|
+
input_border_weight: number;
|
|
1268
|
+
inputs_style: "pill";
|
|
1269
|
+
show_widget_shadow: boolean;
|
|
1270
|
+
widget_border_weight: number;
|
|
1271
|
+
widget_corner_radius: number;
|
|
1147
1272
|
}, {
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
scope?: string | undefined;
|
|
1158
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
1159
|
-
code_challenge?: string | undefined;
|
|
1273
|
+
button_border_radius: number;
|
|
1274
|
+
button_border_weight: number;
|
|
1275
|
+
buttons_style: "pill";
|
|
1276
|
+
input_border_radius: number;
|
|
1277
|
+
input_border_weight: number;
|
|
1278
|
+
inputs_style: "pill";
|
|
1279
|
+
show_widget_shadow: boolean;
|
|
1280
|
+
widget_border_weight: number;
|
|
1281
|
+
widget_corner_radius: number;
|
|
1160
1282
|
}>;
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
username?: string | undefined;
|
|
1184
|
-
vendor_id?: string | undefined;
|
|
1185
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
1186
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
1187
|
-
redirect_uri?: string | undefined;
|
|
1188
|
-
audience?: string | undefined;
|
|
1189
|
-
state?: string | undefined;
|
|
1190
|
-
nonce?: string | undefined;
|
|
1191
|
-
scope?: string | undefined;
|
|
1192
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
1193
|
-
code_challenge?: string | undefined;
|
|
1194
|
-
};
|
|
1195
|
-
expires_at: string;
|
|
1196
|
-
auth0Client?: string | undefined;
|
|
1197
|
-
}>;
|
|
1198
|
-
export type UniversalLoginSessionInsert = z.infer<typeof universalLoginSessionInsertSchema>;
|
|
1199
|
-
declare const universalLoginSessionSchema: z.ZodObject<{
|
|
1200
|
-
created_at: z.ZodString;
|
|
1201
|
-
updated_at: z.ZodString;
|
|
1202
|
-
id: z.ZodString;
|
|
1203
|
-
expires_at: z.ZodString;
|
|
1204
|
-
auth0Client: z.ZodOptional<z.ZodString>;
|
|
1205
|
-
authParams: z.ZodObject<{
|
|
1206
|
-
client_id: z.ZodString;
|
|
1207
|
-
vendor_id: z.ZodOptional<z.ZodString>;
|
|
1208
|
-
response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
|
|
1209
|
-
response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
|
|
1210
|
-
redirect_uri: z.ZodOptional<z.ZodString>;
|
|
1211
|
-
audience: z.ZodOptional<z.ZodString>;
|
|
1212
|
-
state: z.ZodOptional<z.ZodString>;
|
|
1213
|
-
nonce: z.ZodOptional<z.ZodString>;
|
|
1214
|
-
scope: z.ZodOptional<z.ZodString>;
|
|
1215
|
-
code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
|
|
1216
|
-
code_challenge: z.ZodOptional<z.ZodString>;
|
|
1217
|
-
username: z.ZodOptional<z.ZodString>;
|
|
1218
|
-
}, "strip", z.ZodTypeAny, {
|
|
1219
|
-
client_id: string;
|
|
1220
|
-
username?: string | undefined;
|
|
1221
|
-
vendor_id?: string | undefined;
|
|
1222
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
1223
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
1224
|
-
redirect_uri?: string | undefined;
|
|
1225
|
-
audience?: string | undefined;
|
|
1226
|
-
state?: string | undefined;
|
|
1227
|
-
nonce?: string | undefined;
|
|
1228
|
-
scope?: string | undefined;
|
|
1229
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
1230
|
-
code_challenge?: string | undefined;
|
|
1231
|
-
}, {
|
|
1232
|
-
client_id: string;
|
|
1233
|
-
username?: string | undefined;
|
|
1234
|
-
vendor_id?: string | undefined;
|
|
1235
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
1236
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
1237
|
-
redirect_uri?: string | undefined;
|
|
1238
|
-
audience?: string | undefined;
|
|
1239
|
-
state?: string | undefined;
|
|
1240
|
-
nonce?: string | undefined;
|
|
1241
|
-
scope?: string | undefined;
|
|
1242
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
1243
|
-
code_challenge?: string | undefined;
|
|
1244
|
-
}>;
|
|
1245
|
-
}, "strip", z.ZodTypeAny, {
|
|
1246
|
-
created_at: string;
|
|
1247
|
-
updated_at: string;
|
|
1248
|
-
id: string;
|
|
1249
|
-
authParams: {
|
|
1250
|
-
client_id: string;
|
|
1251
|
-
username?: string | undefined;
|
|
1252
|
-
vendor_id?: string | undefined;
|
|
1253
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
1254
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
1255
|
-
redirect_uri?: string | undefined;
|
|
1256
|
-
audience?: string | undefined;
|
|
1257
|
-
state?: string | undefined;
|
|
1258
|
-
nonce?: string | undefined;
|
|
1259
|
-
scope?: string | undefined;
|
|
1260
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
1261
|
-
code_challenge?: string | undefined;
|
|
1262
|
-
};
|
|
1263
|
-
expires_at: string;
|
|
1264
|
-
auth0Client?: string | undefined;
|
|
1265
|
-
}, {
|
|
1266
|
-
created_at: string;
|
|
1267
|
-
updated_at: string;
|
|
1268
|
-
id: string;
|
|
1269
|
-
authParams: {
|
|
1270
|
-
client_id: string;
|
|
1271
|
-
username?: string | undefined;
|
|
1272
|
-
vendor_id?: string | undefined;
|
|
1273
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
1274
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
1275
|
-
redirect_uri?: string | undefined;
|
|
1276
|
-
audience?: string | undefined;
|
|
1277
|
-
state?: string | undefined;
|
|
1278
|
-
nonce?: string | undefined;
|
|
1279
|
-
scope?: string | undefined;
|
|
1280
|
-
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
1281
|
-
code_challenge?: string | undefined;
|
|
1282
|
-
};
|
|
1283
|
-
expires_at: string;
|
|
1284
|
-
auth0Client?: string | undefined;
|
|
1285
|
-
}>;
|
|
1286
|
-
export type UniversalLoginSession = z.infer<typeof universalLoginSessionSchema>;
|
|
1287
|
-
declare const themeInsertSchema: z.ZodObject<{
|
|
1288
|
-
borders: z.ZodObject<{
|
|
1289
|
-
button_border_radius: z.ZodNumber;
|
|
1290
|
-
button_border_weight: z.ZodNumber;
|
|
1291
|
-
buttons_style: z.ZodEnum<[
|
|
1292
|
-
"pill"
|
|
1293
|
-
]>;
|
|
1294
|
-
input_border_radius: z.ZodNumber;
|
|
1295
|
-
input_border_weight: z.ZodNumber;
|
|
1296
|
-
inputs_style: z.ZodEnum<[
|
|
1297
|
-
"pill"
|
|
1298
|
-
]>;
|
|
1299
|
-
show_widget_shadow: z.ZodBoolean;
|
|
1300
|
-
widget_border_weight: z.ZodNumber;
|
|
1301
|
-
widget_corner_radius: z.ZodNumber;
|
|
1302
|
-
}, "strip", z.ZodTypeAny, {
|
|
1303
|
-
button_border_radius: number;
|
|
1304
|
-
button_border_weight: number;
|
|
1305
|
-
buttons_style: "pill";
|
|
1306
|
-
input_border_radius: number;
|
|
1307
|
-
input_border_weight: number;
|
|
1308
|
-
inputs_style: "pill";
|
|
1309
|
-
show_widget_shadow: boolean;
|
|
1310
|
-
widget_border_weight: number;
|
|
1311
|
-
widget_corner_radius: number;
|
|
1312
|
-
}, {
|
|
1313
|
-
button_border_radius: number;
|
|
1314
|
-
button_border_weight: number;
|
|
1315
|
-
buttons_style: "pill";
|
|
1316
|
-
input_border_radius: number;
|
|
1317
|
-
input_border_weight: number;
|
|
1318
|
-
inputs_style: "pill";
|
|
1319
|
-
show_widget_shadow: boolean;
|
|
1320
|
-
widget_border_weight: number;
|
|
1321
|
-
widget_corner_radius: number;
|
|
1322
|
-
}>;
|
|
1323
|
-
colors: z.ZodObject<{
|
|
1324
|
-
base_focus_color: z.ZodString;
|
|
1325
|
-
base_hover_color: z.ZodString;
|
|
1326
|
-
body_text: z.ZodString;
|
|
1327
|
-
captcha_widget_theme: z.ZodEnum<[
|
|
1328
|
-
"auto"
|
|
1329
|
-
]>;
|
|
1330
|
-
error: z.ZodString;
|
|
1331
|
-
header: z.ZodString;
|
|
1332
|
-
icons: z.ZodString;
|
|
1333
|
-
input_background: z.ZodString;
|
|
1334
|
-
input_border: z.ZodString;
|
|
1335
|
-
input_filled_text: z.ZodString;
|
|
1336
|
-
input_labels_placeholders: z.ZodString;
|
|
1337
|
-
links_focused_components: z.ZodString;
|
|
1338
|
-
primary_button: z.ZodString;
|
|
1339
|
-
primary_button_label: z.ZodString;
|
|
1340
|
-
secondary_button_border: z.ZodString;
|
|
1341
|
-
secondary_button_label: z.ZodString;
|
|
1342
|
-
success: z.ZodString;
|
|
1343
|
-
widget_background: z.ZodString;
|
|
1344
|
-
widget_border: z.ZodString;
|
|
1283
|
+
colors: z.ZodObject<{
|
|
1284
|
+
base_focus_color: z.ZodString;
|
|
1285
|
+
base_hover_color: z.ZodString;
|
|
1286
|
+
body_text: z.ZodString;
|
|
1287
|
+
captcha_widget_theme: z.ZodEnum<[
|
|
1288
|
+
"auto"
|
|
1289
|
+
]>;
|
|
1290
|
+
error: z.ZodString;
|
|
1291
|
+
header: z.ZodString;
|
|
1292
|
+
icons: z.ZodString;
|
|
1293
|
+
input_background: z.ZodString;
|
|
1294
|
+
input_border: z.ZodString;
|
|
1295
|
+
input_filled_text: z.ZodString;
|
|
1296
|
+
input_labels_placeholders: z.ZodString;
|
|
1297
|
+
links_focused_components: z.ZodString;
|
|
1298
|
+
primary_button: z.ZodString;
|
|
1299
|
+
primary_button_label: z.ZodString;
|
|
1300
|
+
secondary_button_border: z.ZodString;
|
|
1301
|
+
secondary_button_label: z.ZodString;
|
|
1302
|
+
success: z.ZodString;
|
|
1303
|
+
widget_background: z.ZodString;
|
|
1304
|
+
widget_border: z.ZodString;
|
|
1345
1305
|
}, "strip", z.ZodTypeAny, {
|
|
1346
1306
|
base_focus_color: string;
|
|
1347
1307
|
base_hover_color: string;
|
|
@@ -2039,88 +1999,581 @@ declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2039
1999
|
logo_position: "center";
|
|
2040
2000
|
social_buttons_layout: "bottom";
|
|
2041
2001
|
};
|
|
2042
|
-
themeId: string;
|
|
2002
|
+
themeId: string;
|
|
2003
|
+
}, {
|
|
2004
|
+
page_background: {
|
|
2005
|
+
background_color: string;
|
|
2006
|
+
background_image_url: string;
|
|
2007
|
+
page_layout: "center";
|
|
2008
|
+
};
|
|
2009
|
+
colors: {
|
|
2010
|
+
base_focus_color: string;
|
|
2011
|
+
base_hover_color: string;
|
|
2012
|
+
body_text: string;
|
|
2013
|
+
captcha_widget_theme: "auto";
|
|
2014
|
+
error: string;
|
|
2015
|
+
header: string;
|
|
2016
|
+
icons: string;
|
|
2017
|
+
input_background: string;
|
|
2018
|
+
input_border: string;
|
|
2019
|
+
input_filled_text: string;
|
|
2020
|
+
input_labels_placeholders: string;
|
|
2021
|
+
links_focused_components: string;
|
|
2022
|
+
primary_button: string;
|
|
2023
|
+
primary_button_label: string;
|
|
2024
|
+
secondary_button_border: string;
|
|
2025
|
+
secondary_button_label: string;
|
|
2026
|
+
success: string;
|
|
2027
|
+
widget_background: string;
|
|
2028
|
+
widget_border: string;
|
|
2029
|
+
};
|
|
2030
|
+
borders: {
|
|
2031
|
+
button_border_radius: number;
|
|
2032
|
+
button_border_weight: number;
|
|
2033
|
+
buttons_style: "pill";
|
|
2034
|
+
input_border_radius: number;
|
|
2035
|
+
input_border_weight: number;
|
|
2036
|
+
inputs_style: "pill";
|
|
2037
|
+
show_widget_shadow: boolean;
|
|
2038
|
+
widget_border_weight: number;
|
|
2039
|
+
widget_corner_radius: number;
|
|
2040
|
+
};
|
|
2041
|
+
displayName: string;
|
|
2042
|
+
fonts: {
|
|
2043
|
+
title: {
|
|
2044
|
+
bold: boolean;
|
|
2045
|
+
size: number;
|
|
2046
|
+
};
|
|
2047
|
+
body_text: {
|
|
2048
|
+
bold: boolean;
|
|
2049
|
+
size: number;
|
|
2050
|
+
};
|
|
2051
|
+
buttons_text: {
|
|
2052
|
+
bold: boolean;
|
|
2053
|
+
size: number;
|
|
2054
|
+
};
|
|
2055
|
+
font_url: string;
|
|
2056
|
+
input_labels: {
|
|
2057
|
+
bold: boolean;
|
|
2058
|
+
size: number;
|
|
2059
|
+
};
|
|
2060
|
+
links: {
|
|
2061
|
+
bold: boolean;
|
|
2062
|
+
size: number;
|
|
2063
|
+
};
|
|
2064
|
+
links_style: "normal";
|
|
2065
|
+
reference_text_size: number;
|
|
2066
|
+
subtitle: {
|
|
2067
|
+
bold: boolean;
|
|
2068
|
+
size: number;
|
|
2069
|
+
};
|
|
2070
|
+
};
|
|
2071
|
+
widget: {
|
|
2072
|
+
logo_url: string;
|
|
2073
|
+
header_text_alignment: "center";
|
|
2074
|
+
logo_height: number;
|
|
2075
|
+
logo_position: "center";
|
|
2076
|
+
social_buttons_layout: "bottom";
|
|
2077
|
+
};
|
|
2078
|
+
themeId: string;
|
|
2079
|
+
}>;
|
|
2080
|
+
export type Theme = z.infer<typeof themeSchema>;
|
|
2081
|
+
export interface Ticket {
|
|
2082
|
+
id: string;
|
|
2083
|
+
tenant_id: string;
|
|
2084
|
+
client_id: string;
|
|
2085
|
+
email: string;
|
|
2086
|
+
authParams?: {
|
|
2087
|
+
nonce?: string;
|
|
2088
|
+
state?: string;
|
|
2089
|
+
scope?: string;
|
|
2090
|
+
response_type?: AuthorizationResponseType;
|
|
2091
|
+
response_mode?: AuthorizationResponseMode;
|
|
2092
|
+
redirect_uri?: string;
|
|
2093
|
+
};
|
|
2094
|
+
created_at: Date;
|
|
2095
|
+
expires_at: Date;
|
|
2096
|
+
used_at?: Date;
|
|
2097
|
+
}
|
|
2098
|
+
declare const universalLoginSessionInsertSchema: z.ZodObject<{
|
|
2099
|
+
id: z.ZodString;
|
|
2100
|
+
expires_at: z.ZodString;
|
|
2101
|
+
auth0Client: z.ZodOptional<z.ZodString>;
|
|
2102
|
+
authParams: z.ZodObject<{
|
|
2103
|
+
client_id: z.ZodString;
|
|
2104
|
+
vendor_id: z.ZodOptional<z.ZodString>;
|
|
2105
|
+
response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
|
|
2106
|
+
response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
|
|
2107
|
+
redirect_uri: z.ZodOptional<z.ZodString>;
|
|
2108
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
2109
|
+
state: z.ZodOptional<z.ZodString>;
|
|
2110
|
+
nonce: z.ZodOptional<z.ZodString>;
|
|
2111
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
2112
|
+
code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
|
|
2113
|
+
code_challenge: z.ZodOptional<z.ZodString>;
|
|
2114
|
+
username: z.ZodOptional<z.ZodString>;
|
|
2115
|
+
}, "strip", z.ZodTypeAny, {
|
|
2116
|
+
client_id: string;
|
|
2117
|
+
username?: string | undefined;
|
|
2118
|
+
vendor_id?: string | undefined;
|
|
2119
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
2120
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
2121
|
+
redirect_uri?: string | undefined;
|
|
2122
|
+
audience?: string | undefined;
|
|
2123
|
+
state?: string | undefined;
|
|
2124
|
+
nonce?: string | undefined;
|
|
2125
|
+
scope?: string | undefined;
|
|
2126
|
+
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
2127
|
+
code_challenge?: string | undefined;
|
|
2128
|
+
}, {
|
|
2129
|
+
client_id: string;
|
|
2130
|
+
username?: string | undefined;
|
|
2131
|
+
vendor_id?: string | undefined;
|
|
2132
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
2133
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
2134
|
+
redirect_uri?: string | undefined;
|
|
2135
|
+
audience?: string | undefined;
|
|
2136
|
+
state?: string | undefined;
|
|
2137
|
+
nonce?: string | undefined;
|
|
2138
|
+
scope?: string | undefined;
|
|
2139
|
+
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
2140
|
+
code_challenge?: string | undefined;
|
|
2141
|
+
}>;
|
|
2142
|
+
}, "strip", z.ZodTypeAny, {
|
|
2143
|
+
id: string;
|
|
2144
|
+
expires_at: string;
|
|
2145
|
+
authParams: {
|
|
2146
|
+
client_id: string;
|
|
2147
|
+
username?: string | undefined;
|
|
2148
|
+
vendor_id?: string | undefined;
|
|
2149
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
2150
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
2151
|
+
redirect_uri?: string | undefined;
|
|
2152
|
+
audience?: string | undefined;
|
|
2153
|
+
state?: string | undefined;
|
|
2154
|
+
nonce?: string | undefined;
|
|
2155
|
+
scope?: string | undefined;
|
|
2156
|
+
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
2157
|
+
code_challenge?: string | undefined;
|
|
2158
|
+
};
|
|
2159
|
+
auth0Client?: string | undefined;
|
|
2160
|
+
}, {
|
|
2161
|
+
id: string;
|
|
2162
|
+
expires_at: string;
|
|
2163
|
+
authParams: {
|
|
2164
|
+
client_id: string;
|
|
2165
|
+
username?: string | undefined;
|
|
2166
|
+
vendor_id?: string | undefined;
|
|
2167
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
2168
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
2169
|
+
redirect_uri?: string | undefined;
|
|
2170
|
+
audience?: string | undefined;
|
|
2171
|
+
state?: string | undefined;
|
|
2172
|
+
nonce?: string | undefined;
|
|
2173
|
+
scope?: string | undefined;
|
|
2174
|
+
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
2175
|
+
code_challenge?: string | undefined;
|
|
2176
|
+
};
|
|
2177
|
+
auth0Client?: string | undefined;
|
|
2178
|
+
}>;
|
|
2179
|
+
export type UniversalLoginSessionInsert = z.infer<typeof universalLoginSessionInsertSchema>;
|
|
2180
|
+
declare const universalLoginSessionSchema: z.ZodObject<{
|
|
2181
|
+
created_at: z.ZodString;
|
|
2182
|
+
updated_at: z.ZodString;
|
|
2183
|
+
id: z.ZodString;
|
|
2184
|
+
expires_at: z.ZodString;
|
|
2185
|
+
auth0Client: z.ZodOptional<z.ZodString>;
|
|
2186
|
+
authParams: z.ZodObject<{
|
|
2187
|
+
client_id: z.ZodString;
|
|
2188
|
+
vendor_id: z.ZodOptional<z.ZodString>;
|
|
2189
|
+
response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
|
|
2190
|
+
response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
|
|
2191
|
+
redirect_uri: z.ZodOptional<z.ZodString>;
|
|
2192
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
2193
|
+
state: z.ZodOptional<z.ZodString>;
|
|
2194
|
+
nonce: z.ZodOptional<z.ZodString>;
|
|
2195
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
2196
|
+
code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
|
|
2197
|
+
code_challenge: z.ZodOptional<z.ZodString>;
|
|
2198
|
+
username: z.ZodOptional<z.ZodString>;
|
|
2199
|
+
}, "strip", z.ZodTypeAny, {
|
|
2200
|
+
client_id: string;
|
|
2201
|
+
username?: string | undefined;
|
|
2202
|
+
vendor_id?: string | undefined;
|
|
2203
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
2204
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
2205
|
+
redirect_uri?: string | undefined;
|
|
2206
|
+
audience?: string | undefined;
|
|
2207
|
+
state?: string | undefined;
|
|
2208
|
+
nonce?: string | undefined;
|
|
2209
|
+
scope?: string | undefined;
|
|
2210
|
+
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
2211
|
+
code_challenge?: string | undefined;
|
|
2212
|
+
}, {
|
|
2213
|
+
client_id: string;
|
|
2214
|
+
username?: string | undefined;
|
|
2215
|
+
vendor_id?: string | undefined;
|
|
2216
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
2217
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
2218
|
+
redirect_uri?: string | undefined;
|
|
2219
|
+
audience?: string | undefined;
|
|
2220
|
+
state?: string | undefined;
|
|
2221
|
+
nonce?: string | undefined;
|
|
2222
|
+
scope?: string | undefined;
|
|
2223
|
+
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
2224
|
+
code_challenge?: string | undefined;
|
|
2225
|
+
}>;
|
|
2226
|
+
}, "strip", z.ZodTypeAny, {
|
|
2227
|
+
created_at: string;
|
|
2228
|
+
updated_at: string;
|
|
2229
|
+
id: string;
|
|
2230
|
+
expires_at: string;
|
|
2231
|
+
authParams: {
|
|
2232
|
+
client_id: string;
|
|
2233
|
+
username?: string | undefined;
|
|
2234
|
+
vendor_id?: string | undefined;
|
|
2235
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
2236
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
2237
|
+
redirect_uri?: string | undefined;
|
|
2238
|
+
audience?: string | undefined;
|
|
2239
|
+
state?: string | undefined;
|
|
2240
|
+
nonce?: string | undefined;
|
|
2241
|
+
scope?: string | undefined;
|
|
2242
|
+
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
2243
|
+
code_challenge?: string | undefined;
|
|
2244
|
+
};
|
|
2245
|
+
auth0Client?: string | undefined;
|
|
2246
|
+
}, {
|
|
2247
|
+
created_at: string;
|
|
2248
|
+
updated_at: string;
|
|
2249
|
+
id: string;
|
|
2250
|
+
expires_at: string;
|
|
2251
|
+
authParams: {
|
|
2252
|
+
client_id: string;
|
|
2253
|
+
username?: string | undefined;
|
|
2254
|
+
vendor_id?: string | undefined;
|
|
2255
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
2256
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
2257
|
+
redirect_uri?: string | undefined;
|
|
2258
|
+
audience?: string | undefined;
|
|
2259
|
+
state?: string | undefined;
|
|
2260
|
+
nonce?: string | undefined;
|
|
2261
|
+
scope?: string | undefined;
|
|
2262
|
+
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
2263
|
+
code_challenge?: string | undefined;
|
|
2264
|
+
};
|
|
2265
|
+
auth0Client?: string | undefined;
|
|
2266
|
+
}>;
|
|
2267
|
+
export type UniversalLoginSession = z.infer<typeof universalLoginSessionSchema>;
|
|
2268
|
+
declare const otpInsertSchema: z.ZodObject<{
|
|
2269
|
+
id: z.ZodString;
|
|
2270
|
+
email: z.ZodString;
|
|
2271
|
+
code: z.ZodString;
|
|
2272
|
+
ip: z.ZodOptional<z.ZodString>;
|
|
2273
|
+
send: z.ZodEnum<[
|
|
2274
|
+
"code",
|
|
2275
|
+
"link"
|
|
2276
|
+
]>;
|
|
2277
|
+
authParams: z.ZodObject<{
|
|
2278
|
+
client_id: z.ZodString;
|
|
2279
|
+
vendor_id: z.ZodOptional<z.ZodString>;
|
|
2280
|
+
response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
|
|
2281
|
+
response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
|
|
2282
|
+
redirect_uri: z.ZodOptional<z.ZodString>;
|
|
2283
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
2284
|
+
state: z.ZodOptional<z.ZodString>;
|
|
2285
|
+
nonce: z.ZodOptional<z.ZodString>;
|
|
2286
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
2287
|
+
code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
|
|
2288
|
+
code_challenge: z.ZodOptional<z.ZodString>;
|
|
2289
|
+
username: z.ZodOptional<z.ZodString>;
|
|
2290
|
+
}, "strip", z.ZodTypeAny, {
|
|
2291
|
+
client_id: string;
|
|
2292
|
+
username?: string | undefined;
|
|
2293
|
+
vendor_id?: string | undefined;
|
|
2294
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
2295
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
2296
|
+
redirect_uri?: string | undefined;
|
|
2297
|
+
audience?: string | undefined;
|
|
2298
|
+
state?: string | undefined;
|
|
2299
|
+
nonce?: string | undefined;
|
|
2300
|
+
scope?: string | undefined;
|
|
2301
|
+
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
2302
|
+
code_challenge?: string | undefined;
|
|
2303
|
+
}, {
|
|
2304
|
+
client_id: string;
|
|
2305
|
+
username?: string | undefined;
|
|
2306
|
+
vendor_id?: string | undefined;
|
|
2307
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
2308
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
2309
|
+
redirect_uri?: string | undefined;
|
|
2310
|
+
audience?: string | undefined;
|
|
2311
|
+
state?: string | undefined;
|
|
2312
|
+
nonce?: string | undefined;
|
|
2313
|
+
scope?: string | undefined;
|
|
2314
|
+
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
2315
|
+
code_challenge?: string | undefined;
|
|
2316
|
+
}>;
|
|
2317
|
+
expires_at: z.ZodString;
|
|
2318
|
+
used_at: z.ZodOptional<z.ZodString>;
|
|
2319
|
+
user_id: z.ZodOptional<z.ZodString>;
|
|
2320
|
+
}, "strip", z.ZodTypeAny, {
|
|
2321
|
+
code: string;
|
|
2322
|
+
email: string;
|
|
2323
|
+
id: string;
|
|
2324
|
+
expires_at: string;
|
|
2325
|
+
authParams: {
|
|
2326
|
+
client_id: string;
|
|
2327
|
+
username?: string | undefined;
|
|
2328
|
+
vendor_id?: string | undefined;
|
|
2329
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
2330
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
2331
|
+
redirect_uri?: string | undefined;
|
|
2332
|
+
audience?: string | undefined;
|
|
2333
|
+
state?: string | undefined;
|
|
2334
|
+
nonce?: string | undefined;
|
|
2335
|
+
scope?: string | undefined;
|
|
2336
|
+
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
2337
|
+
code_challenge?: string | undefined;
|
|
2338
|
+
};
|
|
2339
|
+
send: "code" | "link";
|
|
2340
|
+
user_id?: string | undefined;
|
|
2341
|
+
used_at?: string | undefined;
|
|
2342
|
+
ip?: string | undefined;
|
|
2343
|
+
}, {
|
|
2344
|
+
code: string;
|
|
2345
|
+
email: string;
|
|
2346
|
+
id: string;
|
|
2347
|
+
expires_at: string;
|
|
2348
|
+
authParams: {
|
|
2349
|
+
client_id: string;
|
|
2350
|
+
username?: string | undefined;
|
|
2351
|
+
vendor_id?: string | undefined;
|
|
2352
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
2353
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
2354
|
+
redirect_uri?: string | undefined;
|
|
2355
|
+
audience?: string | undefined;
|
|
2356
|
+
state?: string | undefined;
|
|
2357
|
+
nonce?: string | undefined;
|
|
2358
|
+
scope?: string | undefined;
|
|
2359
|
+
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
2360
|
+
code_challenge?: string | undefined;
|
|
2361
|
+
};
|
|
2362
|
+
send: "code" | "link";
|
|
2363
|
+
user_id?: string | undefined;
|
|
2364
|
+
used_at?: string | undefined;
|
|
2365
|
+
ip?: string | undefined;
|
|
2366
|
+
}>;
|
|
2367
|
+
export type OTPInsert = z.infer<typeof otpInsertSchema>;
|
|
2368
|
+
declare const otpSchema: z.ZodObject<{
|
|
2369
|
+
id: z.ZodString;
|
|
2370
|
+
email: z.ZodString;
|
|
2371
|
+
code: z.ZodString;
|
|
2372
|
+
ip: z.ZodOptional<z.ZodString>;
|
|
2373
|
+
send: z.ZodEnum<[
|
|
2374
|
+
"code",
|
|
2375
|
+
"link"
|
|
2376
|
+
]>;
|
|
2377
|
+
authParams: z.ZodObject<{
|
|
2378
|
+
client_id: z.ZodString;
|
|
2379
|
+
vendor_id: z.ZodOptional<z.ZodString>;
|
|
2380
|
+
response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
|
|
2381
|
+
response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
|
|
2382
|
+
redirect_uri: z.ZodOptional<z.ZodString>;
|
|
2383
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
2384
|
+
state: z.ZodOptional<z.ZodString>;
|
|
2385
|
+
nonce: z.ZodOptional<z.ZodString>;
|
|
2386
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
2387
|
+
code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
|
|
2388
|
+
code_challenge: z.ZodOptional<z.ZodString>;
|
|
2389
|
+
username: z.ZodOptional<z.ZodString>;
|
|
2390
|
+
}, "strip", z.ZodTypeAny, {
|
|
2391
|
+
client_id: string;
|
|
2392
|
+
username?: string | undefined;
|
|
2393
|
+
vendor_id?: string | undefined;
|
|
2394
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
2395
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
2396
|
+
redirect_uri?: string | undefined;
|
|
2397
|
+
audience?: string | undefined;
|
|
2398
|
+
state?: string | undefined;
|
|
2399
|
+
nonce?: string | undefined;
|
|
2400
|
+
scope?: string | undefined;
|
|
2401
|
+
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
2402
|
+
code_challenge?: string | undefined;
|
|
2403
|
+
}, {
|
|
2404
|
+
client_id: string;
|
|
2405
|
+
username?: string | undefined;
|
|
2406
|
+
vendor_id?: string | undefined;
|
|
2407
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
2408
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
2409
|
+
redirect_uri?: string | undefined;
|
|
2410
|
+
audience?: string | undefined;
|
|
2411
|
+
state?: string | undefined;
|
|
2412
|
+
nonce?: string | undefined;
|
|
2413
|
+
scope?: string | undefined;
|
|
2414
|
+
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
2415
|
+
code_challenge?: string | undefined;
|
|
2416
|
+
}>;
|
|
2417
|
+
expires_at: z.ZodString;
|
|
2418
|
+
used_at: z.ZodOptional<z.ZodString>;
|
|
2419
|
+
user_id: z.ZodOptional<z.ZodString>;
|
|
2420
|
+
created_at: z.ZodString;
|
|
2421
|
+
}, "strip", z.ZodTypeAny, {
|
|
2422
|
+
code: string;
|
|
2423
|
+
created_at: string;
|
|
2424
|
+
email: string;
|
|
2425
|
+
id: string;
|
|
2426
|
+
expires_at: string;
|
|
2427
|
+
authParams: {
|
|
2428
|
+
client_id: string;
|
|
2429
|
+
username?: string | undefined;
|
|
2430
|
+
vendor_id?: string | undefined;
|
|
2431
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
2432
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
2433
|
+
redirect_uri?: string | undefined;
|
|
2434
|
+
audience?: string | undefined;
|
|
2435
|
+
state?: string | undefined;
|
|
2436
|
+
nonce?: string | undefined;
|
|
2437
|
+
scope?: string | undefined;
|
|
2438
|
+
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
2439
|
+
code_challenge?: string | undefined;
|
|
2440
|
+
};
|
|
2441
|
+
send: "code" | "link";
|
|
2442
|
+
user_id?: string | undefined;
|
|
2443
|
+
used_at?: string | undefined;
|
|
2444
|
+
ip?: string | undefined;
|
|
2043
2445
|
}, {
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
primary_button: string;
|
|
2063
|
-
primary_button_label: string;
|
|
2064
|
-
secondary_button_border: string;
|
|
2065
|
-
secondary_button_label: string;
|
|
2066
|
-
success: string;
|
|
2067
|
-
widget_background: string;
|
|
2068
|
-
widget_border: string;
|
|
2069
|
-
};
|
|
2070
|
-
borders: {
|
|
2071
|
-
button_border_radius: number;
|
|
2072
|
-
button_border_weight: number;
|
|
2073
|
-
buttons_style: "pill";
|
|
2074
|
-
input_border_radius: number;
|
|
2075
|
-
input_border_weight: number;
|
|
2076
|
-
inputs_style: "pill";
|
|
2077
|
-
show_widget_shadow: boolean;
|
|
2078
|
-
widget_border_weight: number;
|
|
2079
|
-
widget_corner_radius: number;
|
|
2446
|
+
code: string;
|
|
2447
|
+
created_at: string;
|
|
2448
|
+
email: string;
|
|
2449
|
+
id: string;
|
|
2450
|
+
expires_at: string;
|
|
2451
|
+
authParams: {
|
|
2452
|
+
client_id: string;
|
|
2453
|
+
username?: string | undefined;
|
|
2454
|
+
vendor_id?: string | undefined;
|
|
2455
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
2456
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
2457
|
+
redirect_uri?: string | undefined;
|
|
2458
|
+
audience?: string | undefined;
|
|
2459
|
+
state?: string | undefined;
|
|
2460
|
+
nonce?: string | undefined;
|
|
2461
|
+
scope?: string | undefined;
|
|
2462
|
+
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
2463
|
+
code_challenge?: string | undefined;
|
|
2080
2464
|
};
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2465
|
+
send: "code" | "link";
|
|
2466
|
+
user_id?: string | undefined;
|
|
2467
|
+
used_at?: string | undefined;
|
|
2468
|
+
ip?: string | undefined;
|
|
2469
|
+
}>;
|
|
2470
|
+
export type OTP = z.infer<typeof otpSchema>;
|
|
2471
|
+
declare const authenticationCodeSchema: z.ZodObject<{
|
|
2472
|
+
created_at: z.ZodString;
|
|
2473
|
+
authParams: z.ZodObject<{
|
|
2474
|
+
client_id: z.ZodString;
|
|
2475
|
+
vendor_id: z.ZodOptional<z.ZodString>;
|
|
2476
|
+
response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
|
|
2477
|
+
response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
|
|
2478
|
+
redirect_uri: z.ZodOptional<z.ZodString>;
|
|
2479
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
2480
|
+
state: z.ZodOptional<z.ZodString>;
|
|
2481
|
+
nonce: z.ZodOptional<z.ZodString>;
|
|
2482
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
2483
|
+
code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
|
|
2484
|
+
code_challenge: z.ZodOptional<z.ZodString>;
|
|
2485
|
+
username: z.ZodOptional<z.ZodString>;
|
|
2486
|
+
}, "strip", z.ZodTypeAny, {
|
|
2487
|
+
client_id: string;
|
|
2488
|
+
username?: string | undefined;
|
|
2489
|
+
vendor_id?: string | undefined;
|
|
2490
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
2491
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
2492
|
+
redirect_uri?: string | undefined;
|
|
2493
|
+
audience?: string | undefined;
|
|
2494
|
+
state?: string | undefined;
|
|
2495
|
+
nonce?: string | undefined;
|
|
2496
|
+
scope?: string | undefined;
|
|
2497
|
+
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
2498
|
+
code_challenge?: string | undefined;
|
|
2499
|
+
}, {
|
|
2500
|
+
client_id: string;
|
|
2501
|
+
username?: string | undefined;
|
|
2502
|
+
vendor_id?: string | undefined;
|
|
2503
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
2504
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
2505
|
+
redirect_uri?: string | undefined;
|
|
2506
|
+
audience?: string | undefined;
|
|
2507
|
+
state?: string | undefined;
|
|
2508
|
+
nonce?: string | undefined;
|
|
2509
|
+
scope?: string | undefined;
|
|
2510
|
+
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
2511
|
+
code_challenge?: string | undefined;
|
|
2512
|
+
}>;
|
|
2513
|
+
code: z.ZodString;
|
|
2514
|
+
user_id: z.ZodString;
|
|
2515
|
+
expires_at: z.ZodString;
|
|
2516
|
+
used_at: z.ZodOptional<z.ZodString>;
|
|
2517
|
+
}, "strip", z.ZodTypeAny, {
|
|
2518
|
+
code: string;
|
|
2519
|
+
created_at: string;
|
|
2520
|
+
user_id: string;
|
|
2521
|
+
expires_at: string;
|
|
2522
|
+
authParams: {
|
|
2523
|
+
client_id: string;
|
|
2524
|
+
username?: string | undefined;
|
|
2525
|
+
vendor_id?: string | undefined;
|
|
2526
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
2527
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
2528
|
+
redirect_uri?: string | undefined;
|
|
2529
|
+
audience?: string | undefined;
|
|
2530
|
+
state?: string | undefined;
|
|
2531
|
+
nonce?: string | undefined;
|
|
2532
|
+
scope?: string | undefined;
|
|
2533
|
+
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
2534
|
+
code_challenge?: string | undefined;
|
|
2110
2535
|
};
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2536
|
+
used_at?: string | undefined;
|
|
2537
|
+
}, {
|
|
2538
|
+
code: string;
|
|
2539
|
+
created_at: string;
|
|
2540
|
+
user_id: string;
|
|
2541
|
+
expires_at: string;
|
|
2542
|
+
authParams: {
|
|
2543
|
+
client_id: string;
|
|
2544
|
+
username?: string | undefined;
|
|
2545
|
+
vendor_id?: string | undefined;
|
|
2546
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
2547
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
2548
|
+
redirect_uri?: string | undefined;
|
|
2549
|
+
audience?: string | undefined;
|
|
2550
|
+
state?: string | undefined;
|
|
2551
|
+
nonce?: string | undefined;
|
|
2552
|
+
scope?: string | undefined;
|
|
2553
|
+
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
2554
|
+
code_challenge?: string | undefined;
|
|
2117
2555
|
};
|
|
2118
|
-
|
|
2556
|
+
used_at?: string | undefined;
|
|
2119
2557
|
}>;
|
|
2120
|
-
export type
|
|
2558
|
+
export type AuthenticationCode = z.infer<typeof authenticationCodeSchema>;
|
|
2559
|
+
export interface ListParams {
|
|
2560
|
+
page: number;
|
|
2561
|
+
per_page: number;
|
|
2562
|
+
include_totals: boolean;
|
|
2563
|
+
q?: string;
|
|
2564
|
+
sort?: {
|
|
2565
|
+
sort_by: string;
|
|
2566
|
+
sort_order: "asc" | "desc";
|
|
2567
|
+
};
|
|
2568
|
+
}
|
|
2569
|
+
export interface ListCodesResponse extends Totals {
|
|
2570
|
+
codes: Code[];
|
|
2571
|
+
}
|
|
2121
2572
|
export interface CodesAdapter {
|
|
2122
|
-
create: (tenant_id: string, authCode: Code) => Promise<
|
|
2123
|
-
|
|
2573
|
+
create: (tenant_id: string, authCode: Code) => Promise<Code>;
|
|
2574
|
+
get: (tenant_id: string, code_id: string, type: CodeType) => Promise<Code | null>;
|
|
2575
|
+
list: (tenant_id: string, params: ListParams) => Promise<ListCodesResponse>;
|
|
2576
|
+
remove: (tenant_id: string, code: string) => Promise<boolean>;
|
|
2124
2577
|
}
|
|
2125
2578
|
export interface OTPAdapter {
|
|
2126
2579
|
create: (tenant_id: string, authCode: OTPInsert) => Promise<void>;
|
|
@@ -2132,16 +2585,6 @@ export interface PasswordsAdapter {
|
|
|
2132
2585
|
update: (tenant_id: string, params: PasswordInsert) => Promise<boolean>;
|
|
2133
2586
|
get: (tenant_id: string, user_id: string) => Promise<Password>;
|
|
2134
2587
|
}
|
|
2135
|
-
export interface ListParams {
|
|
2136
|
-
page: number;
|
|
2137
|
-
per_page: number;
|
|
2138
|
-
include_totals: boolean;
|
|
2139
|
-
q?: string;
|
|
2140
|
-
sort?: {
|
|
2141
|
-
sort_by: string;
|
|
2142
|
-
sort_order: "asc" | "desc";
|
|
2143
|
-
};
|
|
2144
|
-
}
|
|
2145
2588
|
export interface ListSesssionsResponse extends Totals {
|
|
2146
2589
|
sessions: Session[];
|
|
2147
2590
|
}
|
|
@@ -2260,12 +2703,42 @@ export interface HooksAdapter {
|
|
|
2260
2703
|
update: (tenant_id: string, hook_id: string, hook: Partial<HookInsert>) => Promise<boolean>;
|
|
2261
2704
|
list: (tenant_id: string, params: ListParams) => Promise<ListHooksResponse>;
|
|
2262
2705
|
}
|
|
2706
|
+
export interface ClientsAdapter {
|
|
2707
|
+
get: (id: string) => Promise<PartialClient | null>;
|
|
2708
|
+
}
|
|
2263
2709
|
export interface ThemesAdapter {
|
|
2264
2710
|
create: (tenant_id: string, theme: ThemeInsert) => Promise<Theme>;
|
|
2265
2711
|
remove: (tenant_id: string, themeId: string) => Promise<boolean>;
|
|
2266
2712
|
get: (tenant_id: string, themeId: string) => Promise<Theme | null>;
|
|
2267
2713
|
update: (tenant_id: string, themeId: any, theme: Partial<ThemeInsert>) => Promise<boolean>;
|
|
2268
2714
|
}
|
|
2715
|
+
export interface LoginsAdapter {
|
|
2716
|
+
create: (tenant_id: string, session: LoginInsert) => Promise<Login>;
|
|
2717
|
+
update: (tenant_id: string, login_id: string, session: Partial<Login>) => Promise<boolean>;
|
|
2718
|
+
get: (tenant_id: string, login_id: string) => Promise<Login | null>;
|
|
2719
|
+
remove: (tenant_id: string, login_id: string) => Promise<boolean>;
|
|
2720
|
+
}
|
|
2721
|
+
export interface DataAdapters {
|
|
2722
|
+
applications: ApplicationsAdapter;
|
|
2723
|
+
authenticationCodes: AuthenticationCodesAdapter;
|
|
2724
|
+
branding: BrandingAdapter;
|
|
2725
|
+
clients: ClientsAdapter;
|
|
2726
|
+
codes: CodesAdapter;
|
|
2727
|
+
connections: ConnectionsAdapter;
|
|
2728
|
+
domains: DomainsAdapter;
|
|
2729
|
+
hooks: HooksAdapter;
|
|
2730
|
+
keys: KeysAdapter;
|
|
2731
|
+
login: LoginsAdapter;
|
|
2732
|
+
logs: LogsDataAdapter;
|
|
2733
|
+
OTP: OTPAdapter;
|
|
2734
|
+
passwords: PasswordsAdapter;
|
|
2735
|
+
sessions: SessionsAdapter;
|
|
2736
|
+
tenants: TenantsDataAdapter;
|
|
2737
|
+
themes: ThemesAdapter;
|
|
2738
|
+
tickets: TicketsAdapter;
|
|
2739
|
+
universalLoginSessions: UniversalLoginSessionsAdapter;
|
|
2740
|
+
users: UserDataAdapter;
|
|
2741
|
+
}
|
|
2269
2742
|
export interface SqlAuthenticationCode {
|
|
2270
2743
|
code: string;
|
|
2271
2744
|
tenant_id: string;
|
|
@@ -2380,6 +2853,16 @@ declare const sqlThemeSchema: z.ZodObject<z.objectUtil.extendShape<any, {
|
|
|
2380
2853
|
tenant_id?: unknown;
|
|
2381
2854
|
}>;
|
|
2382
2855
|
export type SqlTheme = z.infer<typeof sqlThemeSchema>;
|
|
2856
|
+
declare const sqlLoginSchema: z.ZodObject<z.objectUtil.extendShape<any, {
|
|
2857
|
+
tenant_id: z.ZodString;
|
|
2858
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2859
|
+
[x: string]: any;
|
|
2860
|
+
tenant_id?: unknown;
|
|
2861
|
+
}, {
|
|
2862
|
+
[x: string]: any;
|
|
2863
|
+
tenant_id?: unknown;
|
|
2864
|
+
}>;
|
|
2865
|
+
export type SqlLogin = z.infer<typeof sqlLoginSchema>;
|
|
2383
2866
|
export interface Database {
|
|
2384
2867
|
applications: Application & {
|
|
2385
2868
|
tenant_id: string;
|
|
@@ -2399,6 +2882,7 @@ export interface Database {
|
|
|
2399
2882
|
tenant_id: string;
|
|
2400
2883
|
};
|
|
2401
2884
|
keys: Certificate;
|
|
2885
|
+
logins: SqlLogin;
|
|
2402
2886
|
logs: SqlLog;
|
|
2403
2887
|
otps: SqlOTP;
|
|
2404
2888
|
passwords: Password & {
|
|
@@ -2413,74 +2897,7 @@ export interface Database {
|
|
|
2413
2897
|
tickets: SqlTicket;
|
|
2414
2898
|
universal_login_sessions: SqlUniversalLoginSession;
|
|
2415
2899
|
}
|
|
2416
|
-
declare function createAdapters(db: Kysely<Database>):
|
|
2417
|
-
applications: ApplicationsAdapter;
|
|
2418
|
-
authenticationCodes: AuthenticationCodesAdapter;
|
|
2419
|
-
branding: BrandingAdapter;
|
|
2420
|
-
clients: {
|
|
2421
|
-
get: (applicationId: string) => Promise<{
|
|
2422
|
-
name: string;
|
|
2423
|
-
id: string;
|
|
2424
|
-
allowed_web_origins: string[];
|
|
2425
|
-
allowed_callback_urls: string[];
|
|
2426
|
-
allowed_logout_urls: string[];
|
|
2427
|
-
email_validation: "enabled" | "disabled" | "enforced";
|
|
2428
|
-
client_secret: string;
|
|
2429
|
-
disable_sign_ups: boolean;
|
|
2430
|
-
domains: {
|
|
2431
|
-
domain: string;
|
|
2432
|
-
dkim_private_key?: string | undefined;
|
|
2433
|
-
dkim_public_key?: string | undefined;
|
|
2434
|
-
email_api_key?: string | undefined;
|
|
2435
|
-
email_service?: "mailgun" | "mailchannels" | undefined;
|
|
2436
|
-
}[];
|
|
2437
|
-
tenant_id: string;
|
|
2438
|
-
tenant: {
|
|
2439
|
-
name: string;
|
|
2440
|
-
sender_email: string;
|
|
2441
|
-
sender_name: string;
|
|
2442
|
-
audience?: string | undefined;
|
|
2443
|
-
logo?: string | undefined;
|
|
2444
|
-
primary_color?: string | undefined;
|
|
2445
|
-
secondary_color?: string | undefined;
|
|
2446
|
-
support_url?: string | undefined;
|
|
2447
|
-
language?: string | undefined;
|
|
2448
|
-
};
|
|
2449
|
-
connections: {
|
|
2450
|
-
created_at?: string | undefined;
|
|
2451
|
-
updated_at?: string | undefined;
|
|
2452
|
-
name?: string | undefined;
|
|
2453
|
-
id?: string | undefined;
|
|
2454
|
-
client_secret?: string | undefined;
|
|
2455
|
-
client_id?: string | undefined;
|
|
2456
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
2457
|
-
response_mode?: AuthorizationResponseMode | undefined;
|
|
2458
|
-
scope?: string | undefined;
|
|
2459
|
-
authorization_endpoint?: string | undefined;
|
|
2460
|
-
private_key?: string | undefined;
|
|
2461
|
-
kid?: string | undefined;
|
|
2462
|
-
team_id?: string | undefined;
|
|
2463
|
-
token_endpoint?: string | undefined;
|
|
2464
|
-
token_exchange_basic_auth?: boolean | undefined;
|
|
2465
|
-
userinfo_endpoint?: string | undefined;
|
|
2466
|
-
}[];
|
|
2467
|
-
} | null>;
|
|
2468
|
-
};
|
|
2469
|
-
codes: CodesAdapter;
|
|
2470
|
-
connections: ConnectionsAdapter;
|
|
2471
|
-
domains: DomainsAdapter;
|
|
2472
|
-
hooks: HooksAdapter;
|
|
2473
|
-
keys: KeysAdapter;
|
|
2474
|
-
logs: LogsDataAdapter;
|
|
2475
|
-
OTP: OTPAdapter;
|
|
2476
|
-
passwords: PasswordsAdapter;
|
|
2477
|
-
users: UserDataAdapter;
|
|
2478
|
-
sessions: SessionsAdapter;
|
|
2479
|
-
tenants: TenantsDataAdapter;
|
|
2480
|
-
themes: ThemesAdapter;
|
|
2481
|
-
tickets: TicketsAdapter;
|
|
2482
|
-
universalLoginSessions: UniversalLoginSessionsAdapter;
|
|
2483
|
-
};
|
|
2900
|
+
declare function createAdapters(db: Kysely<Database>): DataAdapters;
|
|
2484
2901
|
|
|
2485
2902
|
export {
|
|
2486
2903
|
createAdapters as default,
|