@authhero/kysely-adapter 10.40.0 → 10.42.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.
@@ -619,6 +619,386 @@ declare const applicationSchema: z.ZodObject<{
619
619
  client_metadata?: Record<string, string> | undefined;
620
620
  }>;
621
621
  export type Application = z.infer<typeof applicationSchema>;
622
+ declare const clientInsertSchema: z.ZodObject<{
623
+ client_id: z.ZodString;
624
+ name: z.ZodString;
625
+ description: z.ZodOptional<z.ZodString>;
626
+ global: z.ZodDefault<z.ZodBoolean>;
627
+ client_secret: z.ZodOptional<z.ZodDefault<z.ZodString>>;
628
+ app_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
629
+ "native",
630
+ "spa",
631
+ "regular_web",
632
+ "non_interactive",
633
+ "resource_server",
634
+ "express_configuration",
635
+ "rms",
636
+ "box",
637
+ "cloudbees",
638
+ "concur",
639
+ "dropbox",
640
+ "mscrm",
641
+ "echosign",
642
+ "egnyte",
643
+ "newrelic",
644
+ "office365",
645
+ "salesforce",
646
+ "sentry",
647
+ "sharepoint",
648
+ "slack",
649
+ "springcm",
650
+ "zendesk",
651
+ "zoom",
652
+ "sso_integration",
653
+ "oag"
654
+ ]>>>;
655
+ logo_uri: z.ZodOptional<z.ZodString>;
656
+ is_first_party: z.ZodDefault<z.ZodBoolean>;
657
+ oidc_conformant: z.ZodDefault<z.ZodBoolean>;
658
+ callbacks: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
659
+ allowed_origins: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
660
+ web_origins: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
661
+ client_aliases: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
662
+ allowed_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
663
+ allowed_logout_urls: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
664
+ session_transfer: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
665
+ oidc_logout: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
666
+ grant_types: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
667
+ jwt_configuration: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
668
+ signing_keys: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">>>;
669
+ encryption_key: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
670
+ sso: z.ZodDefault<z.ZodBoolean>;
671
+ sso_disabled: z.ZodDefault<z.ZodBoolean>;
672
+ cross_origin_authentication: z.ZodDefault<z.ZodBoolean>;
673
+ cross_origin_loc: z.ZodOptional<z.ZodString>;
674
+ custom_login_page_on: z.ZodDefault<z.ZodBoolean>;
675
+ custom_login_page: z.ZodOptional<z.ZodString>;
676
+ custom_login_page_preview: z.ZodOptional<z.ZodString>;
677
+ form_template: z.ZodOptional<z.ZodString>;
678
+ addons: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
679
+ token_endpoint_auth_method: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
680
+ "none",
681
+ "client_secret_post",
682
+ "client_secret_basic"
683
+ ]>>>;
684
+ client_metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>>;
685
+ mobile: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
686
+ initiate_login_uri: z.ZodOptional<z.ZodString>;
687
+ native_social_login: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
688
+ refresh_token: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
689
+ default_organization: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
690
+ organization_usage: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
691
+ "deny",
692
+ "allow",
693
+ "require"
694
+ ]>>>;
695
+ organization_require_behavior: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
696
+ "no_prompt",
697
+ "pre_login_prompt",
698
+ "post_login_prompt"
699
+ ]>>>;
700
+ client_authentication_methods: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
701
+ require_pushed_authorization_requests: z.ZodDefault<z.ZodBoolean>;
702
+ require_proof_of_possession: z.ZodDefault<z.ZodBoolean>;
703
+ signed_request_object: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
704
+ compliance_level: z.ZodOptional<z.ZodEnum<[
705
+ "none",
706
+ "fapi1_adv_pkj_par",
707
+ "fapi1_adv_mtls_par",
708
+ "fapi2_sp_pkj_mtls",
709
+ "fapi2_sp_mtls_mtls"
710
+ ]>>;
711
+ par_request_expiry: z.ZodOptional<z.ZodNumber>;
712
+ token_quota: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
713
+ }, "strip", z.ZodTypeAny, {
714
+ name: string;
715
+ client_id: string;
716
+ global: boolean;
717
+ is_first_party: boolean;
718
+ oidc_conformant: boolean;
719
+ sso: boolean;
720
+ sso_disabled: boolean;
721
+ cross_origin_authentication: boolean;
722
+ custom_login_page_on: boolean;
723
+ require_pushed_authorization_requests: boolean;
724
+ require_proof_of_possession: boolean;
725
+ description?: string | undefined;
726
+ refresh_token?: Record<string, any> | undefined;
727
+ callbacks?: string[] | undefined;
728
+ allowed_origins?: string[] | undefined;
729
+ web_origins?: string[] | undefined;
730
+ allowed_logout_urls?: string[] | undefined;
731
+ allowed_clients?: string[] | undefined;
732
+ addons?: Record<string, any> | undefined;
733
+ client_secret?: string | undefined;
734
+ client_metadata?: Record<string, string> | undefined;
735
+ app_type?: "native" | "spa" | "regular_web" | "non_interactive" | "resource_server" | "express_configuration" | "rms" | "box" | "cloudbees" | "concur" | "dropbox" | "mscrm" | "echosign" | "egnyte" | "newrelic" | "office365" | "salesforce" | "sentry" | "sharepoint" | "slack" | "springcm" | "zendesk" | "zoom" | "sso_integration" | "oag" | undefined;
736
+ logo_uri?: string | undefined;
737
+ client_aliases?: string[] | undefined;
738
+ session_transfer?: Record<string, any> | undefined;
739
+ oidc_logout?: Record<string, any> | undefined;
740
+ grant_types?: string[] | undefined;
741
+ jwt_configuration?: Record<string, any> | undefined;
742
+ signing_keys?: Record<string, any>[] | undefined;
743
+ encryption_key?: Record<string, any> | undefined;
744
+ cross_origin_loc?: string | undefined;
745
+ custom_login_page?: string | undefined;
746
+ custom_login_page_preview?: string | undefined;
747
+ form_template?: string | undefined;
748
+ token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | undefined;
749
+ mobile?: Record<string, any> | undefined;
750
+ initiate_login_uri?: string | undefined;
751
+ native_social_login?: Record<string, any> | undefined;
752
+ default_organization?: Record<string, any> | undefined;
753
+ organization_usage?: "deny" | "allow" | "require" | undefined;
754
+ organization_require_behavior?: "no_prompt" | "pre_login_prompt" | "post_login_prompt" | undefined;
755
+ client_authentication_methods?: Record<string, any> | undefined;
756
+ signed_request_object?: Record<string, any> | undefined;
757
+ compliance_level?: "none" | "fapi1_adv_pkj_par" | "fapi1_adv_mtls_par" | "fapi2_sp_pkj_mtls" | "fapi2_sp_mtls_mtls" | undefined;
758
+ par_request_expiry?: number | undefined;
759
+ token_quota?: Record<string, any> | undefined;
760
+ }, {
761
+ name: string;
762
+ client_id: string;
763
+ description?: string | undefined;
764
+ refresh_token?: Record<string, any> | undefined;
765
+ callbacks?: string[] | undefined;
766
+ allowed_origins?: string[] | undefined;
767
+ web_origins?: string[] | undefined;
768
+ allowed_logout_urls?: string[] | undefined;
769
+ allowed_clients?: string[] | undefined;
770
+ addons?: Record<string, any> | undefined;
771
+ client_secret?: string | undefined;
772
+ client_metadata?: Record<string, string> | undefined;
773
+ global?: boolean | undefined;
774
+ app_type?: "native" | "spa" | "regular_web" | "non_interactive" | "resource_server" | "express_configuration" | "rms" | "box" | "cloudbees" | "concur" | "dropbox" | "mscrm" | "echosign" | "egnyte" | "newrelic" | "office365" | "salesforce" | "sentry" | "sharepoint" | "slack" | "springcm" | "zendesk" | "zoom" | "sso_integration" | "oag" | undefined;
775
+ logo_uri?: string | undefined;
776
+ is_first_party?: boolean | undefined;
777
+ oidc_conformant?: boolean | undefined;
778
+ client_aliases?: string[] | undefined;
779
+ session_transfer?: Record<string, any> | undefined;
780
+ oidc_logout?: Record<string, any> | undefined;
781
+ grant_types?: string[] | undefined;
782
+ jwt_configuration?: Record<string, any> | undefined;
783
+ signing_keys?: Record<string, any>[] | undefined;
784
+ encryption_key?: Record<string, any> | undefined;
785
+ sso?: boolean | undefined;
786
+ sso_disabled?: boolean | undefined;
787
+ cross_origin_authentication?: boolean | undefined;
788
+ cross_origin_loc?: string | undefined;
789
+ custom_login_page_on?: boolean | undefined;
790
+ custom_login_page?: string | undefined;
791
+ custom_login_page_preview?: string | undefined;
792
+ form_template?: string | undefined;
793
+ token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | undefined;
794
+ mobile?: Record<string, any> | undefined;
795
+ initiate_login_uri?: string | undefined;
796
+ native_social_login?: Record<string, any> | undefined;
797
+ default_organization?: Record<string, any> | undefined;
798
+ organization_usage?: "deny" | "allow" | "require" | undefined;
799
+ organization_require_behavior?: "no_prompt" | "pre_login_prompt" | "post_login_prompt" | undefined;
800
+ client_authentication_methods?: Record<string, any> | undefined;
801
+ require_pushed_authorization_requests?: boolean | undefined;
802
+ require_proof_of_possession?: boolean | undefined;
803
+ signed_request_object?: Record<string, any> | undefined;
804
+ compliance_level?: "none" | "fapi1_adv_pkj_par" | "fapi1_adv_mtls_par" | "fapi2_sp_pkj_mtls" | "fapi2_sp_mtls_mtls" | undefined;
805
+ par_request_expiry?: number | undefined;
806
+ token_quota?: Record<string, any> | undefined;
807
+ }>;
808
+ export type ClientInsert = z.input<typeof clientInsertSchema>;
809
+ declare const clientSchema: z.ZodObject<{
810
+ client_id: z.ZodString;
811
+ name: z.ZodString;
812
+ description: z.ZodOptional<z.ZodString>;
813
+ global: z.ZodDefault<z.ZodBoolean>;
814
+ client_secret: z.ZodOptional<z.ZodDefault<z.ZodString>>;
815
+ app_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
816
+ "native",
817
+ "spa",
818
+ "regular_web",
819
+ "non_interactive",
820
+ "resource_server",
821
+ "express_configuration",
822
+ "rms",
823
+ "box",
824
+ "cloudbees",
825
+ "concur",
826
+ "dropbox",
827
+ "mscrm",
828
+ "echosign",
829
+ "egnyte",
830
+ "newrelic",
831
+ "office365",
832
+ "salesforce",
833
+ "sentry",
834
+ "sharepoint",
835
+ "slack",
836
+ "springcm",
837
+ "zendesk",
838
+ "zoom",
839
+ "sso_integration",
840
+ "oag"
841
+ ]>>>;
842
+ logo_uri: z.ZodOptional<z.ZodString>;
843
+ is_first_party: z.ZodDefault<z.ZodBoolean>;
844
+ oidc_conformant: z.ZodDefault<z.ZodBoolean>;
845
+ callbacks: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
846
+ allowed_origins: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
847
+ web_origins: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
848
+ client_aliases: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
849
+ allowed_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
850
+ allowed_logout_urls: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
851
+ session_transfer: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
852
+ oidc_logout: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
853
+ grant_types: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
854
+ jwt_configuration: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
855
+ signing_keys: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">>>;
856
+ encryption_key: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
857
+ sso: z.ZodDefault<z.ZodBoolean>;
858
+ sso_disabled: z.ZodDefault<z.ZodBoolean>;
859
+ cross_origin_authentication: z.ZodDefault<z.ZodBoolean>;
860
+ cross_origin_loc: z.ZodOptional<z.ZodString>;
861
+ custom_login_page_on: z.ZodDefault<z.ZodBoolean>;
862
+ custom_login_page: z.ZodOptional<z.ZodString>;
863
+ custom_login_page_preview: z.ZodOptional<z.ZodString>;
864
+ form_template: z.ZodOptional<z.ZodString>;
865
+ addons: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
866
+ token_endpoint_auth_method: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
867
+ "none",
868
+ "client_secret_post",
869
+ "client_secret_basic"
870
+ ]>>>;
871
+ client_metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>>;
872
+ mobile: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
873
+ initiate_login_uri: z.ZodOptional<z.ZodString>;
874
+ native_social_login: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
875
+ refresh_token: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
876
+ default_organization: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
877
+ organization_usage: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
878
+ "deny",
879
+ "allow",
880
+ "require"
881
+ ]>>>;
882
+ organization_require_behavior: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
883
+ "no_prompt",
884
+ "pre_login_prompt",
885
+ "post_login_prompt"
886
+ ]>>>;
887
+ client_authentication_methods: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
888
+ require_pushed_authorization_requests: z.ZodDefault<z.ZodBoolean>;
889
+ require_proof_of_possession: z.ZodDefault<z.ZodBoolean>;
890
+ signed_request_object: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
891
+ compliance_level: z.ZodOptional<z.ZodEnum<[
892
+ "none",
893
+ "fapi1_adv_pkj_par",
894
+ "fapi1_adv_mtls_par",
895
+ "fapi2_sp_pkj_mtls",
896
+ "fapi2_sp_mtls_mtls"
897
+ ]>>;
898
+ par_request_expiry: z.ZodOptional<z.ZodNumber>;
899
+ token_quota: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
900
+ created_at: z.ZodString;
901
+ updated_at: z.ZodString;
902
+ }, "strip", z.ZodTypeAny, {
903
+ created_at: string;
904
+ updated_at: string;
905
+ name: string;
906
+ client_id: string;
907
+ global: boolean;
908
+ is_first_party: boolean;
909
+ oidc_conformant: boolean;
910
+ sso: boolean;
911
+ sso_disabled: boolean;
912
+ cross_origin_authentication: boolean;
913
+ custom_login_page_on: boolean;
914
+ require_pushed_authorization_requests: boolean;
915
+ require_proof_of_possession: boolean;
916
+ description?: string | undefined;
917
+ refresh_token?: Record<string, any> | undefined;
918
+ callbacks?: string[] | undefined;
919
+ allowed_origins?: string[] | undefined;
920
+ web_origins?: string[] | undefined;
921
+ allowed_logout_urls?: string[] | undefined;
922
+ allowed_clients?: string[] | undefined;
923
+ addons?: Record<string, any> | undefined;
924
+ client_secret?: string | undefined;
925
+ client_metadata?: Record<string, string> | undefined;
926
+ app_type?: "native" | "spa" | "regular_web" | "non_interactive" | "resource_server" | "express_configuration" | "rms" | "box" | "cloudbees" | "concur" | "dropbox" | "mscrm" | "echosign" | "egnyte" | "newrelic" | "office365" | "salesforce" | "sentry" | "sharepoint" | "slack" | "springcm" | "zendesk" | "zoom" | "sso_integration" | "oag" | undefined;
927
+ logo_uri?: string | undefined;
928
+ client_aliases?: string[] | undefined;
929
+ session_transfer?: Record<string, any> | undefined;
930
+ oidc_logout?: Record<string, any> | undefined;
931
+ grant_types?: string[] | undefined;
932
+ jwt_configuration?: Record<string, any> | undefined;
933
+ signing_keys?: Record<string, any>[] | undefined;
934
+ encryption_key?: Record<string, any> | undefined;
935
+ cross_origin_loc?: string | undefined;
936
+ custom_login_page?: string | undefined;
937
+ custom_login_page_preview?: string | undefined;
938
+ form_template?: string | undefined;
939
+ token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | undefined;
940
+ mobile?: Record<string, any> | undefined;
941
+ initiate_login_uri?: string | undefined;
942
+ native_social_login?: Record<string, any> | undefined;
943
+ default_organization?: Record<string, any> | undefined;
944
+ organization_usage?: "deny" | "allow" | "require" | undefined;
945
+ organization_require_behavior?: "no_prompt" | "pre_login_prompt" | "post_login_prompt" | undefined;
946
+ client_authentication_methods?: Record<string, any> | undefined;
947
+ signed_request_object?: Record<string, any> | undefined;
948
+ compliance_level?: "none" | "fapi1_adv_pkj_par" | "fapi1_adv_mtls_par" | "fapi2_sp_pkj_mtls" | "fapi2_sp_mtls_mtls" | undefined;
949
+ par_request_expiry?: number | undefined;
950
+ token_quota?: Record<string, any> | undefined;
951
+ }, {
952
+ created_at: string;
953
+ updated_at: string;
954
+ name: string;
955
+ client_id: string;
956
+ description?: string | undefined;
957
+ refresh_token?: Record<string, any> | undefined;
958
+ callbacks?: string[] | undefined;
959
+ allowed_origins?: string[] | undefined;
960
+ web_origins?: string[] | undefined;
961
+ allowed_logout_urls?: string[] | undefined;
962
+ allowed_clients?: string[] | undefined;
963
+ addons?: Record<string, any> | undefined;
964
+ client_secret?: string | undefined;
965
+ client_metadata?: Record<string, string> | undefined;
966
+ global?: boolean | undefined;
967
+ app_type?: "native" | "spa" | "regular_web" | "non_interactive" | "resource_server" | "express_configuration" | "rms" | "box" | "cloudbees" | "concur" | "dropbox" | "mscrm" | "echosign" | "egnyte" | "newrelic" | "office365" | "salesforce" | "sentry" | "sharepoint" | "slack" | "springcm" | "zendesk" | "zoom" | "sso_integration" | "oag" | undefined;
968
+ logo_uri?: string | undefined;
969
+ is_first_party?: boolean | undefined;
970
+ oidc_conformant?: boolean | undefined;
971
+ client_aliases?: string[] | undefined;
972
+ session_transfer?: Record<string, any> | undefined;
973
+ oidc_logout?: Record<string, any> | undefined;
974
+ grant_types?: string[] | undefined;
975
+ jwt_configuration?: Record<string, any> | undefined;
976
+ signing_keys?: Record<string, any>[] | undefined;
977
+ encryption_key?: Record<string, any> | undefined;
978
+ sso?: boolean | undefined;
979
+ sso_disabled?: boolean | undefined;
980
+ cross_origin_authentication?: boolean | undefined;
981
+ cross_origin_loc?: string | undefined;
982
+ custom_login_page_on?: boolean | undefined;
983
+ custom_login_page?: string | undefined;
984
+ custom_login_page_preview?: string | undefined;
985
+ form_template?: string | undefined;
986
+ token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | undefined;
987
+ mobile?: Record<string, any> | undefined;
988
+ initiate_login_uri?: string | undefined;
989
+ native_social_login?: Record<string, any> | undefined;
990
+ default_organization?: Record<string, any> | undefined;
991
+ organization_usage?: "deny" | "allow" | "require" | undefined;
992
+ organization_require_behavior?: "no_prompt" | "pre_login_prompt" | "post_login_prompt" | undefined;
993
+ client_authentication_methods?: Record<string, any> | undefined;
994
+ require_pushed_authorization_requests?: boolean | undefined;
995
+ require_proof_of_possession?: boolean | undefined;
996
+ signed_request_object?: Record<string, any> | undefined;
997
+ compliance_level?: "none" | "fapi1_adv_pkj_par" | "fapi1_adv_mtls_par" | "fapi2_sp_pkj_mtls" | "fapi2_sp_mtls_mtls" | undefined;
998
+ par_request_expiry?: number | undefined;
999
+ token_quota?: Record<string, any> | undefined;
1000
+ }>;
1001
+ export type Client = z.infer<typeof clientSchema>;
622
1002
  declare enum AuthorizationResponseType {
623
1003
  TOKEN = "token",
624
1004
  TOKEN_ID_TOKEN = "token id_token",
@@ -712,7 +1092,7 @@ declare const brandingSchema: z.ZodObject<{
712
1092
  } | undefined;
713
1093
  }>;
714
1094
  export type Branding = z.infer<typeof brandingSchema>;
715
- declare const ClientSchema: z.ZodObject<{
1095
+ declare const LegacyClientSchema: z.ZodObject<{
716
1096
  tenant: z.ZodObject<{
717
1097
  id: z.ZodString;
718
1098
  name: z.ZodString;
@@ -1146,7 +1526,7 @@ declare const ClientSchema: z.ZodObject<{
1146
1526
  disable_sign_ups?: boolean | undefined;
1147
1527
  client_metadata?: Record<string, string> | undefined;
1148
1528
  }>;
1149
- export type Client = z.infer<typeof ClientSchema>;
1529
+ export type LegacyClient = z.infer<typeof LegacyClientSchema>;
1150
1530
  declare const codeTypeSchema: z.ZodEnum<[
1151
1531
  "password_reset",
1152
1532
  "email_verification",
@@ -4608,13 +4988,13 @@ declare const themeInsertSchema: z.ZodObject<{
4608
4988
  logo_url: string;
4609
4989
  header_text_alignment: "center" | "left" | "right";
4610
4990
  logo_height: number;
4611
- logo_position: "center" | "left" | "right" | "none";
4991
+ logo_position: "none" | "center" | "left" | "right";
4612
4992
  social_buttons_layout: "bottom" | "top";
4613
4993
  }, {
4614
4994
  logo_url: string;
4615
4995
  header_text_alignment: "center" | "left" | "right";
4616
4996
  logo_height: number;
4617
- logo_position: "center" | "left" | "right" | "none";
4997
+ logo_position: "none" | "center" | "left" | "right";
4618
4998
  social_buttons_layout: "bottom" | "top";
4619
4999
  }>;
4620
5000
  }, "strip", z.ZodTypeAny, {
@@ -4689,7 +5069,7 @@ declare const themeInsertSchema: z.ZodObject<{
4689
5069
  logo_url: string;
4690
5070
  header_text_alignment: "center" | "left" | "right";
4691
5071
  logo_height: number;
4692
- logo_position: "center" | "left" | "right" | "none";
5072
+ logo_position: "none" | "center" | "left" | "right";
4693
5073
  social_buttons_layout: "bottom" | "top";
4694
5074
  };
4695
5075
  }, {
@@ -4764,7 +5144,7 @@ declare const themeInsertSchema: z.ZodObject<{
4764
5144
  logo_url: string;
4765
5145
  header_text_alignment: "center" | "left" | "right";
4766
5146
  logo_height: number;
4767
- logo_position: "center" | "left" | "right" | "none";
5147
+ logo_position: "none" | "center" | "left" | "right";
4768
5148
  social_buttons_layout: "bottom" | "top";
4769
5149
  };
4770
5150
  }>;
@@ -5038,13 +5418,13 @@ declare const themeSchema: z.ZodObject<{
5038
5418
  logo_url: string;
5039
5419
  header_text_alignment: "center" | "left" | "right";
5040
5420
  logo_height: number;
5041
- logo_position: "center" | "left" | "right" | "none";
5421
+ logo_position: "none" | "center" | "left" | "right";
5042
5422
  social_buttons_layout: "bottom" | "top";
5043
5423
  }, {
5044
5424
  logo_url: string;
5045
5425
  header_text_alignment: "center" | "left" | "right";
5046
5426
  logo_height: number;
5047
- logo_position: "center" | "left" | "right" | "none";
5427
+ logo_position: "none" | "center" | "left" | "right";
5048
5428
  social_buttons_layout: "bottom" | "top";
5049
5429
  }>;
5050
5430
  } & {
@@ -5121,7 +5501,7 @@ declare const themeSchema: z.ZodObject<{
5121
5501
  logo_url: string;
5122
5502
  header_text_alignment: "center" | "left" | "right";
5123
5503
  logo_height: number;
5124
- logo_position: "center" | "left" | "right" | "none";
5504
+ logo_position: "none" | "center" | "left" | "right";
5125
5505
  social_buttons_layout: "bottom" | "top";
5126
5506
  };
5127
5507
  themeId: string;
@@ -5197,7 +5577,7 @@ declare const themeSchema: z.ZodObject<{
5197
5577
  logo_url: string;
5198
5578
  header_text_alignment: "center" | "left" | "right";
5199
5579
  logo_height: number;
5200
- logo_position: "center" | "left" | "right" | "none";
5580
+ logo_position: "none" | "center" | "left" | "right";
5201
5581
  social_buttons_layout: "bottom" | "top";
5202
5582
  };
5203
5583
  themeId: string;
@@ -5928,6 +6308,13 @@ declare const organizationInsertSchema: z.ZodObject<{
5928
6308
  }, "strip", z.ZodTypeAny, {
5929
6309
  name: string;
5930
6310
  id?: string | undefined;
6311
+ token_quota?: {
6312
+ client_credentials?: {
6313
+ enforce: boolean;
6314
+ per_day: number;
6315
+ per_hour: number;
6316
+ } | undefined;
6317
+ } | undefined;
5931
6318
  display_name?: string | undefined;
5932
6319
  branding?: {
5933
6320
  colors?: {
@@ -5943,16 +6330,16 @@ declare const organizationInsertSchema: z.ZodObject<{
5943
6330
  show_as_button: boolean;
5944
6331
  is_signup_enabled: boolean;
5945
6332
  }[] | undefined;
6333
+ }, {
6334
+ name: string;
6335
+ id?: string | undefined;
5946
6336
  token_quota?: {
5947
6337
  client_credentials?: {
5948
- enforce: boolean;
5949
- per_day: number;
5950
- per_hour: number;
6338
+ enforce?: boolean | undefined;
6339
+ per_day?: number | undefined;
6340
+ per_hour?: number | undefined;
5951
6341
  } | undefined;
5952
6342
  } | undefined;
5953
- }, {
5954
- name: string;
5955
- id?: string | undefined;
5956
6343
  display_name?: string | undefined;
5957
6344
  branding?: {
5958
6345
  colors?: {
@@ -5968,13 +6355,6 @@ declare const organizationInsertSchema: z.ZodObject<{
5968
6355
  show_as_button?: boolean | undefined;
5969
6356
  is_signup_enabled?: boolean | undefined;
5970
6357
  }[] | undefined;
5971
- token_quota?: {
5972
- client_credentials?: {
5973
- enforce?: boolean | undefined;
5974
- per_day?: number | undefined;
5975
- per_hour?: number | undefined;
5976
- } | undefined;
5977
- } | undefined;
5978
6358
  }>;
5979
6359
  export type OrganizationInsert = z.infer<typeof organizationInsertSchema>;
5980
6360
  declare const organizationSchema: z.ZodObject<{
@@ -6057,6 +6437,13 @@ declare const organizationSchema: z.ZodObject<{
6057
6437
  updated_at: string;
6058
6438
  name: string;
6059
6439
  id: string;
6440
+ token_quota?: {
6441
+ client_credentials?: {
6442
+ enforce: boolean;
6443
+ per_day: number;
6444
+ per_hour: number;
6445
+ } | undefined;
6446
+ } | undefined;
6060
6447
  display_name?: string | undefined;
6061
6448
  branding?: {
6062
6449
  colors?: {
@@ -6072,18 +6459,18 @@ declare const organizationSchema: z.ZodObject<{
6072
6459
  show_as_button: boolean;
6073
6460
  is_signup_enabled: boolean;
6074
6461
  }[] | undefined;
6075
- token_quota?: {
6076
- client_credentials?: {
6077
- enforce: boolean;
6078
- per_day: number;
6079
- per_hour: number;
6080
- } | undefined;
6081
- } | undefined;
6082
6462
  }, {
6083
6463
  created_at: string;
6084
6464
  updated_at: string;
6085
6465
  name: string;
6086
6466
  id: string;
6467
+ token_quota?: {
6468
+ client_credentials?: {
6469
+ enforce?: boolean | undefined;
6470
+ per_day?: number | undefined;
6471
+ per_hour?: number | undefined;
6472
+ } | undefined;
6473
+ } | undefined;
6087
6474
  display_name?: string | undefined;
6088
6475
  branding?: {
6089
6476
  colors?: {
@@ -6099,13 +6486,6 @@ declare const organizationSchema: z.ZodObject<{
6099
6486
  show_as_button?: boolean | undefined;
6100
6487
  is_signup_enabled?: boolean | undefined;
6101
6488
  }[] | undefined;
6102
- token_quota?: {
6103
- client_credentials?: {
6104
- enforce?: boolean | undefined;
6105
- per_day?: number | undefined;
6106
- per_hour?: number | undefined;
6107
- } | undefined;
6108
- } | undefined;
6109
6489
  }>;
6110
6490
  export type Organization = z.infer<typeof organizationSchema>;
6111
6491
  declare const userOrganizationInsertSchema: z.ZodObject<{
@@ -6164,6 +6544,16 @@ export interface CacheAdapter {
6164
6544
  */
6165
6545
  clear(): Promise<void>;
6166
6546
  }
6547
+ export interface ClientsAdapter {
6548
+ create(tenant_id: string, params: ClientInsert): Promise<Client>;
6549
+ get(tenant_id: string, client_id: string): Promise<Client | null>;
6550
+ remove(tenant_id: string, client_id: string): Promise<boolean>;
6551
+ list(tenant_id: string, params?: ListParams): Promise<{
6552
+ clients: Client[];
6553
+ totals?: Totals;
6554
+ }>;
6555
+ update(tenant_id: string, client_id: string, client: Partial<Client>): Promise<boolean>;
6556
+ }
6167
6557
  export interface ListCodesResponse extends Totals {
6168
6558
  codes: Code[];
6169
6559
  }
@@ -6275,8 +6665,8 @@ export interface HooksAdapter {
6275
6665
  update: (tenant_id: string, hook_id: string, hook: Partial<HookInsert>) => Promise<boolean>;
6276
6666
  list: (tenant_id: string, params?: ListParams) => Promise<ListHooksResponse>;
6277
6667
  }
6278
- export interface ClientsAdapter {
6279
- get: (id: string) => Promise<Client | null>;
6668
+ export interface LegacyClientsAdapter {
6669
+ get: (id: string) => Promise<LegacyClient | null>;
6280
6670
  }
6281
6671
  export interface ThemesAdapter {
6282
6672
  create: (tenant_id: string, theme: ThemeInsert) => Promise<Theme>;
@@ -6392,6 +6782,7 @@ export interface DataAdapters {
6392
6782
  branding: BrandingAdapter;
6393
6783
  cache?: CacheAdapter;
6394
6784
  clients: ClientsAdapter;
6785
+ legacyClients: LegacyClientsAdapter;
6395
6786
  codes: CodesAdapter;
6396
6787
  connections: ConnectionsAdapter;
6397
6788
  customDomains: CustomDomainsAdapter;
@@ -7268,9 +7659,205 @@ declare const sqlUserOrganizationSchema: z.ZodObject<{
7268
7659
  user_id: string;
7269
7660
  organization_id: string;
7270
7661
  }>;
7662
+ declare const sqlClientSchema: z.ZodObject<{
7663
+ tenant_id: z.ZodString;
7664
+ global: z.ZodNumber;
7665
+ is_first_party: z.ZodNumber;
7666
+ oidc_conformant: z.ZodNumber;
7667
+ sso: z.ZodNumber;
7668
+ sso_disabled: z.ZodNumber;
7669
+ cross_origin_authentication: z.ZodNumber;
7670
+ custom_login_page_on: z.ZodNumber;
7671
+ require_pushed_authorization_requests: z.ZodNumber;
7672
+ require_proof_of_possession: z.ZodNumber;
7673
+ callbacks: z.ZodString;
7674
+ allowed_origins: z.ZodString;
7675
+ web_origins: z.ZodString;
7676
+ client_aliases: z.ZodString;
7677
+ allowed_clients: z.ZodString;
7678
+ allowed_logout_urls: z.ZodString;
7679
+ session_transfer: z.ZodString;
7680
+ oidc_logout: z.ZodString;
7681
+ grant_types: z.ZodString;
7682
+ jwt_configuration: z.ZodString;
7683
+ signing_keys: z.ZodString;
7684
+ encryption_key: z.ZodString;
7685
+ addons: z.ZodString;
7686
+ client_metadata: z.ZodString;
7687
+ mobile: z.ZodString;
7688
+ native_social_login: z.ZodString;
7689
+ refresh_token: z.ZodString;
7690
+ default_organization: z.ZodString;
7691
+ client_authentication_methods: z.ZodString;
7692
+ signed_request_object: z.ZodString;
7693
+ token_quota: z.ZodString;
7694
+ client_id: z.ZodString;
7695
+ name: z.ZodString;
7696
+ description: z.ZodOptional<z.ZodString>;
7697
+ client_secret: z.ZodOptional<z.ZodDefault<z.ZodString>>;
7698
+ app_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
7699
+ "native",
7700
+ "spa",
7701
+ "regular_web",
7702
+ "non_interactive",
7703
+ "resource_server",
7704
+ "express_configuration",
7705
+ "rms",
7706
+ "box",
7707
+ "cloudbees",
7708
+ "concur",
7709
+ "dropbox",
7710
+ "mscrm",
7711
+ "echosign",
7712
+ "egnyte",
7713
+ "newrelic",
7714
+ "office365",
7715
+ "salesforce",
7716
+ "sentry",
7717
+ "sharepoint",
7718
+ "slack",
7719
+ "springcm",
7720
+ "zendesk",
7721
+ "zoom",
7722
+ "sso_integration",
7723
+ "oag"
7724
+ ]>>>;
7725
+ logo_uri: z.ZodOptional<z.ZodString>;
7726
+ cross_origin_loc: z.ZodOptional<z.ZodString>;
7727
+ custom_login_page: z.ZodOptional<z.ZodString>;
7728
+ custom_login_page_preview: z.ZodOptional<z.ZodString>;
7729
+ form_template: z.ZodOptional<z.ZodString>;
7730
+ token_endpoint_auth_method: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
7731
+ "none",
7732
+ "client_secret_post",
7733
+ "client_secret_basic"
7734
+ ]>>>;
7735
+ initiate_login_uri: z.ZodOptional<z.ZodString>;
7736
+ organization_usage: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
7737
+ "deny",
7738
+ "allow",
7739
+ "require"
7740
+ ]>>>;
7741
+ organization_require_behavior: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
7742
+ "no_prompt",
7743
+ "pre_login_prompt",
7744
+ "post_login_prompt"
7745
+ ]>>>;
7746
+ compliance_level: z.ZodOptional<z.ZodEnum<[
7747
+ "none",
7748
+ "fapi1_adv_pkj_par",
7749
+ "fapi1_adv_mtls_par",
7750
+ "fapi2_sp_pkj_mtls",
7751
+ "fapi2_sp_mtls_mtls"
7752
+ ]>>;
7753
+ par_request_expiry: z.ZodOptional<z.ZodNumber>;
7754
+ created_at: z.ZodString;
7755
+ updated_at: z.ZodString;
7756
+ }, "strip", z.ZodTypeAny, {
7757
+ tenant_id: string;
7758
+ addons: string;
7759
+ callbacks: string;
7760
+ allowed_origins: string;
7761
+ web_origins: string;
7762
+ allowed_logout_urls: string;
7763
+ allowed_clients: string;
7764
+ name: string;
7765
+ client_metadata: string;
7766
+ created_at: string;
7767
+ updated_at: string;
7768
+ client_id: string;
7769
+ token_quota: string;
7770
+ global: number;
7771
+ is_first_party: number;
7772
+ oidc_conformant: number;
7773
+ sso: number;
7774
+ sso_disabled: number;
7775
+ cross_origin_authentication: number;
7776
+ custom_login_page_on: number;
7777
+ require_pushed_authorization_requests: number;
7778
+ require_proof_of_possession: number;
7779
+ client_aliases: string;
7780
+ session_transfer: string;
7781
+ oidc_logout: string;
7782
+ grant_types: string;
7783
+ jwt_configuration: string;
7784
+ signing_keys: string;
7785
+ encryption_key: string;
7786
+ mobile: string;
7787
+ native_social_login: string;
7788
+ refresh_token: string;
7789
+ default_organization: string;
7790
+ client_authentication_methods: string;
7791
+ signed_request_object: string;
7792
+ description?: string | undefined;
7793
+ client_secret?: string | undefined;
7794
+ app_type?: "native" | "spa" | "regular_web" | "non_interactive" | "resource_server" | "express_configuration" | "rms" | "box" | "cloudbees" | "concur" | "dropbox" | "mscrm" | "echosign" | "egnyte" | "newrelic" | "office365" | "salesforce" | "sentry" | "sharepoint" | "slack" | "springcm" | "zendesk" | "zoom" | "sso_integration" | "oag" | undefined;
7795
+ logo_uri?: string | undefined;
7796
+ cross_origin_loc?: string | undefined;
7797
+ custom_login_page?: string | undefined;
7798
+ custom_login_page_preview?: string | undefined;
7799
+ form_template?: string | undefined;
7800
+ token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | undefined;
7801
+ initiate_login_uri?: string | undefined;
7802
+ organization_usage?: "deny" | "allow" | "require" | undefined;
7803
+ organization_require_behavior?: "no_prompt" | "pre_login_prompt" | "post_login_prompt" | undefined;
7804
+ compliance_level?: "none" | "fapi1_adv_pkj_par" | "fapi1_adv_mtls_par" | "fapi2_sp_pkj_mtls" | "fapi2_sp_mtls_mtls" | undefined;
7805
+ par_request_expiry?: number | undefined;
7806
+ }, {
7807
+ tenant_id: string;
7808
+ addons: string;
7809
+ callbacks: string;
7810
+ allowed_origins: string;
7811
+ web_origins: string;
7812
+ allowed_logout_urls: string;
7813
+ allowed_clients: string;
7814
+ name: string;
7815
+ client_metadata: string;
7816
+ created_at: string;
7817
+ updated_at: string;
7818
+ client_id: string;
7819
+ token_quota: string;
7820
+ global: number;
7821
+ is_first_party: number;
7822
+ oidc_conformant: number;
7823
+ sso: number;
7824
+ sso_disabled: number;
7825
+ cross_origin_authentication: number;
7826
+ custom_login_page_on: number;
7827
+ require_pushed_authorization_requests: number;
7828
+ require_proof_of_possession: number;
7829
+ client_aliases: string;
7830
+ session_transfer: string;
7831
+ oidc_logout: string;
7832
+ grant_types: string;
7833
+ jwt_configuration: string;
7834
+ signing_keys: string;
7835
+ encryption_key: string;
7836
+ mobile: string;
7837
+ native_social_login: string;
7838
+ refresh_token: string;
7839
+ default_organization: string;
7840
+ client_authentication_methods: string;
7841
+ signed_request_object: string;
7842
+ description?: string | undefined;
7843
+ client_secret?: string | undefined;
7844
+ app_type?: "native" | "spa" | "regular_web" | "non_interactive" | "resource_server" | "express_configuration" | "rms" | "box" | "cloudbees" | "concur" | "dropbox" | "mscrm" | "echosign" | "egnyte" | "newrelic" | "office365" | "salesforce" | "sentry" | "sharepoint" | "slack" | "springcm" | "zendesk" | "zoom" | "sso_integration" | "oag" | undefined;
7845
+ logo_uri?: string | undefined;
7846
+ cross_origin_loc?: string | undefined;
7847
+ custom_login_page?: string | undefined;
7848
+ custom_login_page_preview?: string | undefined;
7849
+ form_template?: string | undefined;
7850
+ token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | undefined;
7851
+ initiate_login_uri?: string | undefined;
7852
+ organization_usage?: "deny" | "allow" | "require" | undefined;
7853
+ organization_require_behavior?: "no_prompt" | "pre_login_prompt" | "post_login_prompt" | undefined;
7854
+ compliance_level?: "none" | "fapi1_adv_pkj_par" | "fapi1_adv_mtls_par" | "fapi2_sp_pkj_mtls" | "fapi2_sp_mtls_mtls" | undefined;
7855
+ par_request_expiry?: number | undefined;
7856
+ }>;
7271
7857
  export interface Database {
7272
7858
  applications: z.infer<typeof sqlApplicationSchema>;
7273
7859
  branding: z.infer<typeof sqlBrandingSchema>;
7860
+ clients: z.infer<typeof sqlClientSchema>;
7274
7861
  codes: Code & {
7275
7862
  tenant_id: string;
7276
7863
  };