@authhero/kysely-adapter 0.9.1 → 0.9.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.
@@ -245,12 +245,12 @@ export type User = z.infer<typeof userSchema>;
245
245
  declare const applicationInsertSchema: z.ZodObject<{
246
246
  id: z.ZodString;
247
247
  name: z.ZodString;
248
- callbacks: z.ZodArray<z.ZodString, "many">;
249
- allowed_origins: z.ZodArray<z.ZodString, "many">;
250
- web_origins: z.ZodArray<z.ZodString, "many">;
251
- allowed_logout_urls: z.ZodArray<z.ZodString, "many">;
252
- allowed_clients: z.ZodArray<z.ZodString, "many">;
253
- addons: z.ZodOptional<z.ZodObject<{
248
+ callbacks: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
249
+ allowed_origins: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
250
+ web_origins: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
251
+ allowed_logout_urls: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
252
+ allowed_clients: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
253
+ addons: z.ZodDefault<z.ZodOptional<z.ZodObject<{
254
254
  samlp: z.ZodOptional<z.ZodObject<{
255
255
  audience: z.ZodOptional<z.ZodString>;
256
256
  recipient: z.ZodOptional<z.ZodString>;
@@ -341,14 +341,14 @@ declare const applicationInsertSchema: z.ZodObject<{
341
341
  authnContextClassRef?: string | undefined;
342
342
  mappings?: Record<string, string> | undefined;
343
343
  } | undefined;
344
- }>>;
345
- email_validation: z.ZodDefault<z.ZodEnum<[
344
+ }>>>;
345
+ email_validation: z.ZodDefault<z.ZodOptional<z.ZodEnum<[
346
346
  "enabled",
347
347
  "disabled",
348
348
  "enforced"
349
- ]>>;
350
- client_secret: z.ZodDefault<z.ZodString>;
351
- disable_sign_ups: z.ZodDefault<z.ZodBoolean>;
349
+ ]>>>;
350
+ client_secret: z.ZodDefault<z.ZodOptional<z.ZodString>>;
351
+ disable_sign_ups: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
352
352
  }, "strip", z.ZodTypeAny, {
353
353
  name: string;
354
354
  id: string;
@@ -357,10 +357,7 @@ declare const applicationInsertSchema: z.ZodObject<{
357
357
  web_origins: string[];
358
358
  allowed_logout_urls: string[];
359
359
  allowed_clients: string[];
360
- email_validation: "enabled" | "disabled" | "enforced";
361
- client_secret: string;
362
- disable_sign_ups: boolean;
363
- addons?: {
360
+ addons: {
364
361
  samlp?: {
365
362
  audience?: string | undefined;
366
363
  recipient?: string | undefined;
@@ -379,15 +376,18 @@ declare const applicationInsertSchema: z.ZodObject<{
379
376
  authnContextClassRef?: string | undefined;
380
377
  mappings?: Record<string, string> | undefined;
381
378
  } | undefined;
382
- } | undefined;
379
+ };
380
+ email_validation: "enabled" | "disabled" | "enforced";
381
+ client_secret: string;
382
+ disable_sign_ups: boolean;
383
383
  }, {
384
384
  name: string;
385
385
  id: string;
386
- callbacks: string[];
387
- allowed_origins: string[];
388
- web_origins: string[];
389
- allowed_logout_urls: string[];
390
- allowed_clients: string[];
386
+ callbacks?: string[] | undefined;
387
+ allowed_origins?: string[] | undefined;
388
+ web_origins?: string[] | undefined;
389
+ allowed_logout_urls?: string[] | undefined;
390
+ allowed_clients?: string[] | undefined;
391
391
  addons?: {
392
392
  samlp?: {
393
393
  audience?: string | undefined;
@@ -416,12 +416,12 @@ export type ApplicationInsert = z.infer<typeof applicationInsertSchema>;
416
416
  declare const applicationSchema: z.ZodObject<{
417
417
  id: z.ZodString;
418
418
  name: z.ZodString;
419
- callbacks: z.ZodArray<z.ZodString, "many">;
420
- allowed_origins: z.ZodArray<z.ZodString, "many">;
421
- web_origins: z.ZodArray<z.ZodString, "many">;
422
- allowed_logout_urls: z.ZodArray<z.ZodString, "many">;
423
- allowed_clients: z.ZodArray<z.ZodString, "many">;
424
- addons: z.ZodOptional<z.ZodObject<{
419
+ callbacks: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
420
+ allowed_origins: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
421
+ web_origins: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
422
+ allowed_logout_urls: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
423
+ allowed_clients: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
424
+ addons: z.ZodDefault<z.ZodOptional<z.ZodObject<{
425
425
  samlp: z.ZodOptional<z.ZodObject<{
426
426
  audience: z.ZodOptional<z.ZodString>;
427
427
  recipient: z.ZodOptional<z.ZodString>;
@@ -512,14 +512,14 @@ declare const applicationSchema: z.ZodObject<{
512
512
  authnContextClassRef?: string | undefined;
513
513
  mappings?: Record<string, string> | undefined;
514
514
  } | undefined;
515
- }>>;
516
- email_validation: z.ZodDefault<z.ZodEnum<[
515
+ }>>>;
516
+ email_validation: z.ZodDefault<z.ZodOptional<z.ZodEnum<[
517
517
  "enabled",
518
518
  "disabled",
519
519
  "enforced"
520
- ]>>;
521
- client_secret: z.ZodDefault<z.ZodString>;
522
- disable_sign_ups: z.ZodDefault<z.ZodBoolean>;
520
+ ]>>>;
521
+ client_secret: z.ZodDefault<z.ZodOptional<z.ZodString>>;
522
+ disable_sign_ups: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
523
523
  created_at: z.ZodEffects<z.ZodString, string, string>;
524
524
  updated_at: z.ZodEffects<z.ZodString, string, string>;
525
525
  }, "strip", z.ZodTypeAny, {
@@ -532,10 +532,7 @@ declare const applicationSchema: z.ZodObject<{
532
532
  web_origins: string[];
533
533
  allowed_logout_urls: string[];
534
534
  allowed_clients: string[];
535
- email_validation: "enabled" | "disabled" | "enforced";
536
- client_secret: string;
537
- disable_sign_ups: boolean;
538
- addons?: {
535
+ addons: {
539
536
  samlp?: {
540
537
  audience?: string | undefined;
541
538
  recipient?: string | undefined;
@@ -554,17 +551,20 @@ declare const applicationSchema: z.ZodObject<{
554
551
  authnContextClassRef?: string | undefined;
555
552
  mappings?: Record<string, string> | undefined;
556
553
  } | undefined;
557
- } | undefined;
554
+ };
555
+ email_validation: "enabled" | "disabled" | "enforced";
556
+ client_secret: string;
557
+ disable_sign_ups: boolean;
558
558
  }, {
559
559
  created_at: string;
560
560
  updated_at: string;
561
561
  name: string;
562
562
  id: string;
563
- callbacks: string[];
564
- allowed_origins: string[];
565
- web_origins: string[];
566
- allowed_logout_urls: string[];
567
- allowed_clients: string[];
563
+ callbacks?: string[] | undefined;
564
+ allowed_origins?: string[] | undefined;
565
+ web_origins?: string[] | undefined;
566
+ allowed_logout_urls?: string[] | undefined;
567
+ allowed_clients?: string[] | undefined;
568
568
  addons?: {
569
569
  samlp?: {
570
570
  audience?: string | undefined;
@@ -764,7 +764,7 @@ declare const ClientSchema: z.ZodObject<{
764
764
  "oauth2",
765
765
  "custom"
766
766
  ]>>;
767
- options: z.ZodOptional<z.ZodObject<{
767
+ options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
768
768
  kid: z.ZodOptional<z.ZodString>;
769
769
  team_id: z.ZodOptional<z.ZodString>;
770
770
  realms: z.ZodOptional<z.ZodString>;
@@ -788,9 +788,9 @@ declare const ClientSchema: z.ZodObject<{
788
788
  team_id?: string | undefined;
789
789
  realms?: string | undefined;
790
790
  app_secret?: string | undefined;
791
- }>>;
792
- enabled_clients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
793
- authorization_endpoint: z.ZodOptional<z.ZodString>;
791
+ }>>>;
792
+ enabled_clients: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
793
+ authorization_endpoint: z.ZodDefault<z.ZodOptional<z.ZodString>>;
794
794
  response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
795
795
  response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
796
796
  client_id: z.ZodOptional<z.ZodString>;
@@ -803,10 +803,7 @@ declare const ClientSchema: z.ZodObject<{
803
803
  userinfo_endpoint: z.ZodOptional<z.ZodString>;
804
804
  scope: z.ZodOptional<z.ZodString>;
805
805
  }>, "strip", z.ZodTypeAny, {
806
- created_at: string;
807
- updated_at: string;
808
- name: string;
809
- options?: {
806
+ options: {
810
807
  client_secret?: string | undefined;
811
808
  client_id?: string | undefined;
812
809
  scope?: string | undefined;
@@ -814,7 +811,12 @@ declare const ClientSchema: z.ZodObject<{
814
811
  team_id?: string | undefined;
815
812
  realms?: string | undefined;
816
813
  app_secret?: string | undefined;
817
- } | undefined;
814
+ };
815
+ created_at: string;
816
+ updated_at: string;
817
+ name: string;
818
+ enabled_clients: string[];
819
+ authorization_endpoint: string;
818
820
  id?: string | undefined;
819
821
  client_secret?: string | undefined;
820
822
  client_id?: string | undefined;
@@ -824,8 +826,6 @@ declare const ClientSchema: z.ZodObject<{
824
826
  strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
825
827
  kid?: string | undefined;
826
828
  team_id?: string | undefined;
827
- enabled_clients?: string[] | undefined;
828
- authorization_endpoint?: string | undefined;
829
829
  private_key?: string | undefined;
830
830
  token_endpoint?: string | undefined;
831
831
  token_exchange_basic_auth?: boolean | undefined;
@@ -861,12 +861,12 @@ declare const ClientSchema: z.ZodObject<{
861
861
  }>, "many">;
862
862
  id: z.ZodString;
863
863
  name: z.ZodString;
864
- callbacks: z.ZodArray<z.ZodString, "many">;
865
- allowed_origins: z.ZodArray<z.ZodString, "many">;
866
- web_origins: z.ZodArray<z.ZodString, "many">;
867
- allowed_logout_urls: z.ZodArray<z.ZodString, "many">;
868
- allowed_clients: z.ZodArray<z.ZodString, "many">;
869
- addons: z.ZodOptional<z.ZodObject<{
864
+ callbacks: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
865
+ allowed_origins: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
866
+ web_origins: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
867
+ allowed_logout_urls: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
868
+ allowed_clients: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
869
+ addons: z.ZodDefault<z.ZodOptional<z.ZodObject<{
870
870
  samlp: z.ZodOptional<z.ZodObject<{
871
871
  audience: z.ZodOptional<z.ZodString>;
872
872
  recipient: z.ZodOptional<z.ZodString>;
@@ -957,14 +957,14 @@ declare const ClientSchema: z.ZodObject<{
957
957
  authnContextClassRef?: string | undefined;
958
958
  mappings?: Record<string, string> | undefined;
959
959
  } | undefined;
960
- }>>;
961
- email_validation: z.ZodDefault<z.ZodEnum<[
960
+ }>>>;
961
+ email_validation: z.ZodDefault<z.ZodOptional<z.ZodEnum<[
962
962
  "enabled",
963
963
  "disabled",
964
964
  "enforced"
965
- ]>>;
966
- client_secret: z.ZodDefault<z.ZodString>;
967
- disable_sign_ups: z.ZodDefault<z.ZodBoolean>;
965
+ ]>>>;
966
+ client_secret: z.ZodDefault<z.ZodOptional<z.ZodString>>;
967
+ disable_sign_ups: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
968
968
  created_at: z.ZodEffects<z.ZodString, string, string>;
969
969
  updated_at: z.ZodEffects<z.ZodString, string, string>;
970
970
  }, "strip", z.ZodTypeAny, {
@@ -977,6 +977,26 @@ declare const ClientSchema: z.ZodObject<{
977
977
  web_origins: string[];
978
978
  allowed_logout_urls: string[];
979
979
  allowed_clients: string[];
980
+ addons: {
981
+ samlp?: {
982
+ audience?: string | undefined;
983
+ recipient?: string | undefined;
984
+ createUpnClaim?: boolean | undefined;
985
+ mapUnknownClaimsAsIs?: boolean | undefined;
986
+ passthroughClaimsWithNoMapping?: boolean | undefined;
987
+ mapIdentities?: boolean | undefined;
988
+ signatureAlgorithm?: string | undefined;
989
+ digestAlgorithm?: string | undefined;
990
+ issuer?: string | undefined;
991
+ destination?: string | undefined;
992
+ lifetimeInSeconds?: number | undefined;
993
+ signResponse?: boolean | undefined;
994
+ nameIdentifierFormat?: string | undefined;
995
+ nameIdentifierProbes?: string[] | undefined;
996
+ authnContextClassRef?: string | undefined;
997
+ mappings?: Record<string, string> | undefined;
998
+ } | undefined;
999
+ };
980
1000
  email_validation: "enabled" | "disabled" | "enforced";
981
1001
  client_secret: string;
982
1002
  disable_sign_ups: boolean;
@@ -1002,10 +1022,7 @@ declare const ClientSchema: z.ZodObject<{
1002
1022
  language?: string | undefined;
1003
1023
  };
1004
1024
  connections: {
1005
- created_at: string;
1006
- updated_at: string;
1007
- name: string;
1008
- options?: {
1025
+ options: {
1009
1026
  client_secret?: string | undefined;
1010
1027
  client_id?: string | undefined;
1011
1028
  scope?: string | undefined;
@@ -1013,7 +1030,12 @@ declare const ClientSchema: z.ZodObject<{
1013
1030
  team_id?: string | undefined;
1014
1031
  realms?: string | undefined;
1015
1032
  app_secret?: string | undefined;
1016
- } | undefined;
1033
+ };
1034
+ created_at: string;
1035
+ updated_at: string;
1036
+ name: string;
1037
+ enabled_clients: string[];
1038
+ authorization_endpoint: string;
1017
1039
  id?: string | undefined;
1018
1040
  client_secret?: string | undefined;
1019
1041
  client_id?: string | undefined;
@@ -1023,43 +1045,16 @@ declare const ClientSchema: z.ZodObject<{
1023
1045
  strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1024
1046
  kid?: string | undefined;
1025
1047
  team_id?: string | undefined;
1026
- enabled_clients?: string[] | undefined;
1027
- authorization_endpoint?: string | undefined;
1028
1048
  private_key?: string | undefined;
1029
1049
  token_endpoint?: string | undefined;
1030
1050
  token_exchange_basic_auth?: boolean | undefined;
1031
1051
  userinfo_endpoint?: string | undefined;
1032
1052
  }[];
1033
- addons?: {
1034
- samlp?: {
1035
- audience?: string | undefined;
1036
- recipient?: string | undefined;
1037
- createUpnClaim?: boolean | undefined;
1038
- mapUnknownClaimsAsIs?: boolean | undefined;
1039
- passthroughClaimsWithNoMapping?: boolean | undefined;
1040
- mapIdentities?: boolean | undefined;
1041
- signatureAlgorithm?: string | undefined;
1042
- digestAlgorithm?: string | undefined;
1043
- issuer?: string | undefined;
1044
- destination?: string | undefined;
1045
- lifetimeInSeconds?: number | undefined;
1046
- signResponse?: boolean | undefined;
1047
- nameIdentifierFormat?: string | undefined;
1048
- nameIdentifierProbes?: string[] | undefined;
1049
- authnContextClassRef?: string | undefined;
1050
- mappings?: Record<string, string> | undefined;
1051
- } | undefined;
1052
- } | undefined;
1053
1053
  }, {
1054
1054
  created_at: string;
1055
1055
  updated_at: string;
1056
1056
  name: string;
1057
1057
  id: string;
1058
- callbacks: string[];
1059
- allowed_origins: string[];
1060
- web_origins: string[];
1061
- allowed_logout_urls: string[];
1062
- allowed_clients: string[];
1063
1058
  domains: {
1064
1059
  domain: string;
1065
1060
  dkim_private_key?: string | undefined;
@@ -1110,6 +1105,11 @@ declare const ClientSchema: z.ZodObject<{
1110
1105
  token_exchange_basic_auth?: boolean | undefined;
1111
1106
  userinfo_endpoint?: string | undefined;
1112
1107
  }[];
1108
+ callbacks?: string[] | undefined;
1109
+ allowed_origins?: string[] | undefined;
1110
+ web_origins?: string[] | undefined;
1111
+ allowed_logout_urls?: string[] | undefined;
1112
+ allowed_clients?: string[] | undefined;
1113
1113
  addons?: {
1114
1114
  samlp?: {
1115
1115
  audience?: string | undefined;
@@ -1227,7 +1227,7 @@ declare const connectionInsertSchema: z.ZodObject<{
1227
1227
  "oauth2",
1228
1228
  "custom"
1229
1229
  ]>>;
1230
- options: z.ZodOptional<z.ZodObject<{
1230
+ options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
1231
1231
  kid: z.ZodOptional<z.ZodString>;
1232
1232
  team_id: z.ZodOptional<z.ZodString>;
1233
1233
  realms: z.ZodOptional<z.ZodString>;
@@ -1251,9 +1251,9 @@ declare const connectionInsertSchema: z.ZodObject<{
1251
1251
  team_id?: string | undefined;
1252
1252
  realms?: string | undefined;
1253
1253
  app_secret?: string | undefined;
1254
- }>>;
1255
- enabled_clients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1256
- authorization_endpoint: z.ZodOptional<z.ZodString>;
1254
+ }>>>;
1255
+ enabled_clients: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1256
+ authorization_endpoint: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1257
1257
  response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
1258
1258
  response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
1259
1259
  client_id: z.ZodOptional<z.ZodString>;
@@ -1266,8 +1266,7 @@ declare const connectionInsertSchema: z.ZodObject<{
1266
1266
  userinfo_endpoint: z.ZodOptional<z.ZodString>;
1267
1267
  scope: z.ZodOptional<z.ZodString>;
1268
1268
  }, "strip", z.ZodTypeAny, {
1269
- name: string;
1270
- options?: {
1269
+ options: {
1271
1270
  client_secret?: string | undefined;
1272
1271
  client_id?: string | undefined;
1273
1272
  scope?: string | undefined;
@@ -1275,7 +1274,10 @@ declare const connectionInsertSchema: z.ZodObject<{
1275
1274
  team_id?: string | undefined;
1276
1275
  realms?: string | undefined;
1277
1276
  app_secret?: string | undefined;
1278
- } | undefined;
1277
+ };
1278
+ name: string;
1279
+ enabled_clients: string[];
1280
+ authorization_endpoint: string;
1279
1281
  id?: string | undefined;
1280
1282
  client_secret?: string | undefined;
1281
1283
  client_id?: string | undefined;
@@ -1285,8 +1287,6 @@ declare const connectionInsertSchema: z.ZodObject<{
1285
1287
  strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1286
1288
  kid?: string | undefined;
1287
1289
  team_id?: string | undefined;
1288
- enabled_clients?: string[] | undefined;
1289
- authorization_endpoint?: string | undefined;
1290
1290
  private_key?: string | undefined;
1291
1291
  token_endpoint?: string | undefined;
1292
1292
  token_exchange_basic_auth?: boolean | undefined;
@@ -1337,7 +1337,7 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1337
1337
  "oauth2",
1338
1338
  "custom"
1339
1339
  ]>>;
1340
- options: z.ZodOptional<z.ZodObject<{
1340
+ options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
1341
1341
  kid: z.ZodOptional<z.ZodString>;
1342
1342
  team_id: z.ZodOptional<z.ZodString>;
1343
1343
  realms: z.ZodOptional<z.ZodString>;
@@ -1361,9 +1361,9 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1361
1361
  team_id?: string | undefined;
1362
1362
  realms?: string | undefined;
1363
1363
  app_secret?: string | undefined;
1364
- }>>;
1365
- enabled_clients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1366
- authorization_endpoint: z.ZodOptional<z.ZodString>;
1364
+ }>>>;
1365
+ enabled_clients: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1366
+ authorization_endpoint: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1367
1367
  response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
1368
1368
  response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
1369
1369
  client_id: z.ZodOptional<z.ZodString>;
@@ -1376,10 +1376,7 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1376
1376
  userinfo_endpoint: z.ZodOptional<z.ZodString>;
1377
1377
  scope: z.ZodOptional<z.ZodString>;
1378
1378
  }>, "strip", z.ZodTypeAny, {
1379
- created_at: string;
1380
- updated_at: string;
1381
- name: string;
1382
- options?: {
1379
+ options: {
1383
1380
  client_secret?: string | undefined;
1384
1381
  client_id?: string | undefined;
1385
1382
  scope?: string | undefined;
@@ -1387,7 +1384,12 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1387
1384
  team_id?: string | undefined;
1388
1385
  realms?: string | undefined;
1389
1386
  app_secret?: string | undefined;
1390
- } | undefined;
1387
+ };
1388
+ created_at: string;
1389
+ updated_at: string;
1390
+ name: string;
1391
+ enabled_clients: string[];
1392
+ authorization_endpoint: string;
1391
1393
  id?: string | undefined;
1392
1394
  client_secret?: string | undefined;
1393
1395
  client_id?: string | undefined;
@@ -1397,8 +1399,6 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1397
1399
  strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1398
1400
  kid?: string | undefined;
1399
1401
  team_id?: string | undefined;
1400
- enabled_clients?: string[] | undefined;
1401
- authorization_endpoint?: string | undefined;
1402
1402
  private_key?: string | undefined;
1403
1403
  token_endpoint?: string | undefined;
1404
1404
  token_exchange_basic_auth?: boolean | undefined;
@@ -3133,13 +3133,13 @@ declare const sqlApplicationSchema: z.ZodObject<{
3133
3133
  allowed_logout_urls: z.ZodString;
3134
3134
  id: z.ZodString;
3135
3135
  name: z.ZodString;
3136
- allowed_clients: z.ZodArray<z.ZodString, "many">;
3137
- email_validation: z.ZodDefault<z.ZodEnum<[
3136
+ allowed_clients: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
3137
+ email_validation: z.ZodDefault<z.ZodOptional<z.ZodEnum<[
3138
3138
  "enabled",
3139
3139
  "disabled",
3140
3140
  "enforced"
3141
- ]>>;
3142
- client_secret: z.ZodDefault<z.ZodString>;
3141
+ ]>>>;
3142
+ client_secret: z.ZodDefault<z.ZodOptional<z.ZodString>>;
3143
3143
  created_at: z.ZodEffects<z.ZodString, string, string>;
3144
3144
  updated_at: z.ZodEffects<z.ZodString, string, string>;
3145
3145
  }, "strip", z.ZodTypeAny, {
@@ -3167,9 +3167,9 @@ declare const sqlApplicationSchema: z.ZodObject<{
3167
3167
  allowed_logout_urls: string;
3168
3168
  id: string;
3169
3169
  name: string;
3170
- allowed_clients: string[];
3171
3170
  created_at: string;
3172
3171
  updated_at: string;
3172
+ allowed_clients?: string[] | undefined;
3173
3173
  email_validation?: "enabled" | "disabled" | "enforced" | undefined;
3174
3174
  client_secret?: string | undefined;
3175
3175
  }>;