@authhero/kysely-adapter 10.43.0 → 10.45.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.
@@ -265,360 +265,6 @@ declare const userSchema: z.ZodObject<{
265
265
  }[] | undefined;
266
266
  }>;
267
267
  export type User = z.infer<typeof userSchema>;
268
- declare const applicationInsertSchema: z.ZodObject<{
269
- id: z.ZodString;
270
- name: z.ZodString;
271
- callbacks: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
272
- allowed_origins: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
273
- web_origins: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
274
- allowed_logout_urls: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
275
- allowed_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
276
- addons: z.ZodOptional<z.ZodDefault<z.ZodObject<{
277
- samlp: z.ZodOptional<z.ZodObject<{
278
- audience: z.ZodOptional<z.ZodString>;
279
- recipient: z.ZodOptional<z.ZodString>;
280
- createUpnClaim: z.ZodOptional<z.ZodBoolean>;
281
- mapUnknownClaimsAsIs: z.ZodOptional<z.ZodBoolean>;
282
- passthroughClaimsWithNoMapping: z.ZodOptional<z.ZodBoolean>;
283
- mapIdentities: z.ZodOptional<z.ZodBoolean>;
284
- signatureAlgorithm: z.ZodOptional<z.ZodString>;
285
- digestAlgorithm: z.ZodOptional<z.ZodString>;
286
- issuer: z.ZodOptional<z.ZodString>;
287
- destination: z.ZodOptional<z.ZodString>;
288
- lifetimeInSeconds: z.ZodOptional<z.ZodNumber>;
289
- signResponse: z.ZodOptional<z.ZodBoolean>;
290
- nameIdentifierFormat: z.ZodOptional<z.ZodString>;
291
- nameIdentifierProbes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
292
- authnContextClassRef: z.ZodOptional<z.ZodString>;
293
- mappings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
294
- }, "strip", z.ZodTypeAny, {
295
- audience?: string | undefined;
296
- recipient?: string | undefined;
297
- createUpnClaim?: boolean | undefined;
298
- mapUnknownClaimsAsIs?: boolean | undefined;
299
- passthroughClaimsWithNoMapping?: boolean | undefined;
300
- mapIdentities?: boolean | undefined;
301
- signatureAlgorithm?: string | undefined;
302
- digestAlgorithm?: string | undefined;
303
- issuer?: string | undefined;
304
- destination?: string | undefined;
305
- lifetimeInSeconds?: number | undefined;
306
- signResponse?: boolean | undefined;
307
- nameIdentifierFormat?: string | undefined;
308
- nameIdentifierProbes?: string[] | undefined;
309
- authnContextClassRef?: string | undefined;
310
- mappings?: Record<string, string> | undefined;
311
- }, {
312
- audience?: string | undefined;
313
- recipient?: string | undefined;
314
- createUpnClaim?: boolean | undefined;
315
- mapUnknownClaimsAsIs?: boolean | undefined;
316
- passthroughClaimsWithNoMapping?: boolean | undefined;
317
- mapIdentities?: boolean | undefined;
318
- signatureAlgorithm?: string | undefined;
319
- digestAlgorithm?: string | undefined;
320
- issuer?: string | undefined;
321
- destination?: string | undefined;
322
- lifetimeInSeconds?: number | undefined;
323
- signResponse?: boolean | undefined;
324
- nameIdentifierFormat?: string | undefined;
325
- nameIdentifierProbes?: string[] | undefined;
326
- authnContextClassRef?: string | undefined;
327
- mappings?: Record<string, string> | undefined;
328
- }>>;
329
- }, "strip", z.ZodTypeAny, {
330
- samlp?: {
331
- audience?: string | undefined;
332
- recipient?: string | undefined;
333
- createUpnClaim?: boolean | undefined;
334
- mapUnknownClaimsAsIs?: boolean | undefined;
335
- passthroughClaimsWithNoMapping?: boolean | undefined;
336
- mapIdentities?: boolean | undefined;
337
- signatureAlgorithm?: string | undefined;
338
- digestAlgorithm?: string | undefined;
339
- issuer?: string | undefined;
340
- destination?: string | undefined;
341
- lifetimeInSeconds?: number | undefined;
342
- signResponse?: boolean | undefined;
343
- nameIdentifierFormat?: string | undefined;
344
- nameIdentifierProbes?: string[] | undefined;
345
- authnContextClassRef?: string | undefined;
346
- mappings?: Record<string, string> | undefined;
347
- } | undefined;
348
- }, {
349
- samlp?: {
350
- audience?: string | undefined;
351
- recipient?: string | undefined;
352
- createUpnClaim?: boolean | undefined;
353
- mapUnknownClaimsAsIs?: boolean | undefined;
354
- passthroughClaimsWithNoMapping?: boolean | undefined;
355
- mapIdentities?: boolean | undefined;
356
- signatureAlgorithm?: string | undefined;
357
- digestAlgorithm?: string | undefined;
358
- issuer?: string | undefined;
359
- destination?: string | undefined;
360
- lifetimeInSeconds?: number | undefined;
361
- signResponse?: boolean | undefined;
362
- nameIdentifierFormat?: string | undefined;
363
- nameIdentifierProbes?: string[] | undefined;
364
- authnContextClassRef?: string | undefined;
365
- mappings?: Record<string, string> | undefined;
366
- } | undefined;
367
- }>>>;
368
- email_validation: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
369
- "enabled",
370
- "disabled",
371
- "enforced"
372
- ]>>>;
373
- client_secret: z.ZodOptional<z.ZodDefault<z.ZodString>>;
374
- disable_sign_ups: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
375
- client_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
376
- }, "strip", z.ZodTypeAny, {
377
- name: string;
378
- id: string;
379
- disable_sign_ups: boolean;
380
- callbacks?: string[] | undefined;
381
- allowed_origins?: string[] | undefined;
382
- web_origins?: string[] | undefined;
383
- allowed_logout_urls?: string[] | undefined;
384
- allowed_clients?: string[] | undefined;
385
- addons?: {
386
- samlp?: {
387
- audience?: string | undefined;
388
- recipient?: string | undefined;
389
- createUpnClaim?: boolean | undefined;
390
- mapUnknownClaimsAsIs?: boolean | undefined;
391
- passthroughClaimsWithNoMapping?: boolean | undefined;
392
- mapIdentities?: boolean | undefined;
393
- signatureAlgorithm?: string | undefined;
394
- digestAlgorithm?: string | undefined;
395
- issuer?: string | undefined;
396
- destination?: string | undefined;
397
- lifetimeInSeconds?: number | undefined;
398
- signResponse?: boolean | undefined;
399
- nameIdentifierFormat?: string | undefined;
400
- nameIdentifierProbes?: string[] | undefined;
401
- authnContextClassRef?: string | undefined;
402
- mappings?: Record<string, string> | undefined;
403
- } | undefined;
404
- } | undefined;
405
- email_validation?: "enabled" | "disabled" | "enforced" | undefined;
406
- client_secret?: string | undefined;
407
- client_metadata?: Record<string, string> | undefined;
408
- }, {
409
- name: string;
410
- id: string;
411
- callbacks?: string[] | undefined;
412
- allowed_origins?: string[] | undefined;
413
- web_origins?: string[] | undefined;
414
- allowed_logout_urls?: string[] | undefined;
415
- allowed_clients?: string[] | undefined;
416
- addons?: {
417
- samlp?: {
418
- audience?: string | undefined;
419
- recipient?: string | undefined;
420
- createUpnClaim?: boolean | undefined;
421
- mapUnknownClaimsAsIs?: boolean | undefined;
422
- passthroughClaimsWithNoMapping?: boolean | undefined;
423
- mapIdentities?: boolean | undefined;
424
- signatureAlgorithm?: string | undefined;
425
- digestAlgorithm?: string | undefined;
426
- issuer?: string | undefined;
427
- destination?: string | undefined;
428
- lifetimeInSeconds?: number | undefined;
429
- signResponse?: boolean | undefined;
430
- nameIdentifierFormat?: string | undefined;
431
- nameIdentifierProbes?: string[] | undefined;
432
- authnContextClassRef?: string | undefined;
433
- mappings?: Record<string, string> | undefined;
434
- } | undefined;
435
- } | undefined;
436
- email_validation?: "enabled" | "disabled" | "enforced" | undefined;
437
- client_secret?: string | undefined;
438
- disable_sign_ups?: boolean | undefined;
439
- client_metadata?: Record<string, string> | undefined;
440
- }>;
441
- export type ApplicationInsert = z.input<typeof applicationInsertSchema>;
442
- declare const applicationSchema: z.ZodObject<{
443
- id: z.ZodString;
444
- name: z.ZodString;
445
- callbacks: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
446
- allowed_origins: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
447
- web_origins: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
448
- allowed_logout_urls: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
449
- allowed_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
450
- addons: z.ZodOptional<z.ZodDefault<z.ZodObject<{
451
- samlp: z.ZodOptional<z.ZodObject<{
452
- audience: z.ZodOptional<z.ZodString>;
453
- recipient: z.ZodOptional<z.ZodString>;
454
- createUpnClaim: z.ZodOptional<z.ZodBoolean>;
455
- mapUnknownClaimsAsIs: z.ZodOptional<z.ZodBoolean>;
456
- passthroughClaimsWithNoMapping: z.ZodOptional<z.ZodBoolean>;
457
- mapIdentities: z.ZodOptional<z.ZodBoolean>;
458
- signatureAlgorithm: z.ZodOptional<z.ZodString>;
459
- digestAlgorithm: z.ZodOptional<z.ZodString>;
460
- issuer: z.ZodOptional<z.ZodString>;
461
- destination: z.ZodOptional<z.ZodString>;
462
- lifetimeInSeconds: z.ZodOptional<z.ZodNumber>;
463
- signResponse: z.ZodOptional<z.ZodBoolean>;
464
- nameIdentifierFormat: z.ZodOptional<z.ZodString>;
465
- nameIdentifierProbes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
466
- authnContextClassRef: z.ZodOptional<z.ZodString>;
467
- mappings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
468
- }, "strip", z.ZodTypeAny, {
469
- audience?: string | undefined;
470
- recipient?: string | undefined;
471
- createUpnClaim?: boolean | undefined;
472
- mapUnknownClaimsAsIs?: boolean | undefined;
473
- passthroughClaimsWithNoMapping?: boolean | undefined;
474
- mapIdentities?: boolean | undefined;
475
- signatureAlgorithm?: string | undefined;
476
- digestAlgorithm?: string | undefined;
477
- issuer?: string | undefined;
478
- destination?: string | undefined;
479
- lifetimeInSeconds?: number | undefined;
480
- signResponse?: boolean | undefined;
481
- nameIdentifierFormat?: string | undefined;
482
- nameIdentifierProbes?: string[] | undefined;
483
- authnContextClassRef?: string | undefined;
484
- mappings?: Record<string, string> | undefined;
485
- }, {
486
- audience?: string | undefined;
487
- recipient?: string | undefined;
488
- createUpnClaim?: boolean | undefined;
489
- mapUnknownClaimsAsIs?: boolean | undefined;
490
- passthroughClaimsWithNoMapping?: boolean | undefined;
491
- mapIdentities?: boolean | undefined;
492
- signatureAlgorithm?: string | undefined;
493
- digestAlgorithm?: string | undefined;
494
- issuer?: string | undefined;
495
- destination?: string | undefined;
496
- lifetimeInSeconds?: number | undefined;
497
- signResponse?: boolean | undefined;
498
- nameIdentifierFormat?: string | undefined;
499
- nameIdentifierProbes?: string[] | undefined;
500
- authnContextClassRef?: string | undefined;
501
- mappings?: Record<string, string> | undefined;
502
- }>>;
503
- }, "strip", z.ZodTypeAny, {
504
- samlp?: {
505
- audience?: string | undefined;
506
- recipient?: string | undefined;
507
- createUpnClaim?: boolean | undefined;
508
- mapUnknownClaimsAsIs?: boolean | undefined;
509
- passthroughClaimsWithNoMapping?: boolean | undefined;
510
- mapIdentities?: boolean | undefined;
511
- signatureAlgorithm?: string | undefined;
512
- digestAlgorithm?: string | undefined;
513
- issuer?: string | undefined;
514
- destination?: string | undefined;
515
- lifetimeInSeconds?: number | undefined;
516
- signResponse?: boolean | undefined;
517
- nameIdentifierFormat?: string | undefined;
518
- nameIdentifierProbes?: string[] | undefined;
519
- authnContextClassRef?: string | undefined;
520
- mappings?: Record<string, string> | undefined;
521
- } | undefined;
522
- }, {
523
- samlp?: {
524
- audience?: string | undefined;
525
- recipient?: string | undefined;
526
- createUpnClaim?: boolean | undefined;
527
- mapUnknownClaimsAsIs?: boolean | undefined;
528
- passthroughClaimsWithNoMapping?: boolean | undefined;
529
- mapIdentities?: boolean | undefined;
530
- signatureAlgorithm?: string | undefined;
531
- digestAlgorithm?: string | undefined;
532
- issuer?: string | undefined;
533
- destination?: string | undefined;
534
- lifetimeInSeconds?: number | undefined;
535
- signResponse?: boolean | undefined;
536
- nameIdentifierFormat?: string | undefined;
537
- nameIdentifierProbes?: string[] | undefined;
538
- authnContextClassRef?: string | undefined;
539
- mappings?: Record<string, string> | undefined;
540
- } | undefined;
541
- }>>>;
542
- email_validation: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
543
- "enabled",
544
- "disabled",
545
- "enforced"
546
- ]>>>;
547
- client_secret: z.ZodOptional<z.ZodDefault<z.ZodString>>;
548
- disable_sign_ups: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
549
- client_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
550
- created_at: z.ZodEffects<z.ZodString, string, string>;
551
- updated_at: z.ZodEffects<z.ZodString, string, string>;
552
- }, "strip", z.ZodTypeAny, {
553
- created_at: string;
554
- updated_at: string;
555
- name: string;
556
- id: string;
557
- disable_sign_ups: boolean;
558
- callbacks?: string[] | undefined;
559
- allowed_origins?: string[] | undefined;
560
- web_origins?: string[] | undefined;
561
- allowed_logout_urls?: string[] | undefined;
562
- allowed_clients?: string[] | undefined;
563
- addons?: {
564
- samlp?: {
565
- audience?: string | undefined;
566
- recipient?: string | undefined;
567
- createUpnClaim?: boolean | undefined;
568
- mapUnknownClaimsAsIs?: boolean | undefined;
569
- passthroughClaimsWithNoMapping?: boolean | undefined;
570
- mapIdentities?: boolean | undefined;
571
- signatureAlgorithm?: string | undefined;
572
- digestAlgorithm?: string | undefined;
573
- issuer?: string | undefined;
574
- destination?: string | undefined;
575
- lifetimeInSeconds?: number | undefined;
576
- signResponse?: boolean | undefined;
577
- nameIdentifierFormat?: string | undefined;
578
- nameIdentifierProbes?: string[] | undefined;
579
- authnContextClassRef?: string | undefined;
580
- mappings?: Record<string, string> | undefined;
581
- } | undefined;
582
- } | undefined;
583
- email_validation?: "enabled" | "disabled" | "enforced" | undefined;
584
- client_secret?: string | undefined;
585
- client_metadata?: Record<string, string> | undefined;
586
- }, {
587
- created_at: string;
588
- updated_at: string;
589
- name: string;
590
- id: string;
591
- callbacks?: string[] | undefined;
592
- allowed_origins?: string[] | undefined;
593
- web_origins?: string[] | undefined;
594
- allowed_logout_urls?: string[] | undefined;
595
- allowed_clients?: string[] | undefined;
596
- addons?: {
597
- samlp?: {
598
- audience?: string | undefined;
599
- recipient?: string | undefined;
600
- createUpnClaim?: boolean | undefined;
601
- mapUnknownClaimsAsIs?: boolean | undefined;
602
- passthroughClaimsWithNoMapping?: boolean | undefined;
603
- mapIdentities?: boolean | undefined;
604
- signatureAlgorithm?: string | undefined;
605
- digestAlgorithm?: string | undefined;
606
- issuer?: string | undefined;
607
- destination?: string | undefined;
608
- lifetimeInSeconds?: number | undefined;
609
- signResponse?: boolean | undefined;
610
- nameIdentifierFormat?: string | undefined;
611
- nameIdentifierProbes?: string[] | undefined;
612
- authnContextClassRef?: string | undefined;
613
- mappings?: Record<string, string> | undefined;
614
- } | undefined;
615
- } | undefined;
616
- email_validation?: "enabled" | "disabled" | "enforced" | undefined;
617
- client_secret?: string | undefined;
618
- disable_sign_ups?: boolean | undefined;
619
- client_metadata?: Record<string, string> | undefined;
620
- }>;
621
- export type Application = z.infer<typeof applicationSchema>;
622
268
  declare const clientInsertSchema: z.ZodObject<{
623
269
  client_id: z.ZodString;
624
270
  name: z.ZodString;
@@ -724,17 +370,15 @@ declare const clientInsertSchema: z.ZodObject<{
724
370
  require_proof_of_possession: boolean;
725
371
  description?: string | undefined;
726
372
  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
373
  client_secret?: string | undefined;
734
- client_metadata?: Record<string, string> | undefined;
735
374
  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
375
  logo_uri?: string | undefined;
376
+ callbacks?: string[] | undefined;
377
+ allowed_origins?: string[] | undefined;
378
+ web_origins?: string[] | undefined;
737
379
  client_aliases?: string[] | undefined;
380
+ allowed_clients?: string[] | undefined;
381
+ allowed_logout_urls?: string[] | undefined;
738
382
  session_transfer?: Record<string, any> | undefined;
739
383
  oidc_logout?: Record<string, any> | undefined;
740
384
  grant_types?: string[] | undefined;
@@ -745,7 +389,9 @@ declare const clientInsertSchema: z.ZodObject<{
745
389
  custom_login_page?: string | undefined;
746
390
  custom_login_page_preview?: string | undefined;
747
391
  form_template?: string | undefined;
392
+ addons?: Record<string, any> | undefined;
748
393
  token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | undefined;
394
+ client_metadata?: Record<string, string> | undefined;
749
395
  mobile?: Record<string, any> | undefined;
750
396
  initiate_login_uri?: string | undefined;
751
397
  native_social_login?: Record<string, any> | undefined;
@@ -762,20 +408,18 @@ declare const clientInsertSchema: z.ZodObject<{
762
408
  client_id: string;
763
409
  description?: string | undefined;
764
410
  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
411
  global?: boolean | undefined;
412
+ client_secret?: string | undefined;
774
413
  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
414
  logo_uri?: string | undefined;
776
415
  is_first_party?: boolean | undefined;
777
416
  oidc_conformant?: boolean | undefined;
417
+ callbacks?: string[] | undefined;
418
+ allowed_origins?: string[] | undefined;
419
+ web_origins?: string[] | undefined;
778
420
  client_aliases?: string[] | undefined;
421
+ allowed_clients?: string[] | undefined;
422
+ allowed_logout_urls?: string[] | undefined;
779
423
  session_transfer?: Record<string, any> | undefined;
780
424
  oidc_logout?: Record<string, any> | undefined;
781
425
  grant_types?: string[] | undefined;
@@ -790,7 +434,9 @@ declare const clientInsertSchema: z.ZodObject<{
790
434
  custom_login_page?: string | undefined;
791
435
  custom_login_page_preview?: string | undefined;
792
436
  form_template?: string | undefined;
437
+ addons?: Record<string, any> | undefined;
793
438
  token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | undefined;
439
+ client_metadata?: Record<string, string> | undefined;
794
440
  mobile?: Record<string, any> | undefined;
795
441
  initiate_login_uri?: string | undefined;
796
442
  native_social_login?: Record<string, any> | undefined;
@@ -915,17 +561,15 @@ declare const clientSchema: z.ZodObject<{
915
561
  require_proof_of_possession: boolean;
916
562
  description?: string | undefined;
917
563
  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
564
  client_secret?: string | undefined;
925
- client_metadata?: Record<string, string> | undefined;
926
565
  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
566
  logo_uri?: string | undefined;
567
+ callbacks?: string[] | undefined;
568
+ allowed_origins?: string[] | undefined;
569
+ web_origins?: string[] | undefined;
928
570
  client_aliases?: string[] | undefined;
571
+ allowed_clients?: string[] | undefined;
572
+ allowed_logout_urls?: string[] | undefined;
929
573
  session_transfer?: Record<string, any> | undefined;
930
574
  oidc_logout?: Record<string, any> | undefined;
931
575
  grant_types?: string[] | undefined;
@@ -936,7 +580,9 @@ declare const clientSchema: z.ZodObject<{
936
580
  custom_login_page?: string | undefined;
937
581
  custom_login_page_preview?: string | undefined;
938
582
  form_template?: string | undefined;
583
+ addons?: Record<string, any> | undefined;
939
584
  token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | undefined;
585
+ client_metadata?: Record<string, string> | undefined;
940
586
  mobile?: Record<string, any> | undefined;
941
587
  initiate_login_uri?: string | undefined;
942
588
  native_social_login?: Record<string, any> | undefined;
@@ -955,20 +601,18 @@ declare const clientSchema: z.ZodObject<{
955
601
  client_id: string;
956
602
  description?: string | undefined;
957
603
  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
604
  global?: boolean | undefined;
605
+ client_secret?: string | undefined;
967
606
  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
607
  logo_uri?: string | undefined;
969
608
  is_first_party?: boolean | undefined;
970
609
  oidc_conformant?: boolean | undefined;
610
+ callbacks?: string[] | undefined;
611
+ allowed_origins?: string[] | undefined;
612
+ web_origins?: string[] | undefined;
971
613
  client_aliases?: string[] | undefined;
614
+ allowed_clients?: string[] | undefined;
615
+ allowed_logout_urls?: string[] | undefined;
972
616
  session_transfer?: Record<string, any> | undefined;
973
617
  oidc_logout?: Record<string, any> | undefined;
974
618
  grant_types?: string[] | undefined;
@@ -983,7 +627,9 @@ declare const clientSchema: z.ZodObject<{
983
627
  custom_login_page?: string | undefined;
984
628
  custom_login_page_preview?: string | undefined;
985
629
  form_template?: string | undefined;
630
+ addons?: Record<string, any> | undefined;
986
631
  token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | undefined;
632
+ client_metadata?: Record<string, string> | undefined;
987
633
  mobile?: Record<string, any> | undefined;
988
634
  initiate_login_uri?: string | undefined;
989
635
  native_social_login?: Record<string, any> | undefined;
@@ -999,6 +645,87 @@ declare const clientSchema: z.ZodObject<{
999
645
  token_quota?: Record<string, any> | undefined;
1000
646
  }>;
1001
647
  export type Client = z.infer<typeof clientSchema>;
648
+ declare const clientGrantInsertSchema: z.ZodObject<{
649
+ client_id: z.ZodString;
650
+ audience: z.ZodString;
651
+ scope: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
652
+ organization_usage: z.ZodOptional<z.ZodEnum<[
653
+ "deny",
654
+ "allow",
655
+ "require"
656
+ ]>>;
657
+ allow_any_organization: z.ZodOptional<z.ZodBoolean>;
658
+ is_system: z.ZodOptional<z.ZodBoolean>;
659
+ subject_type: z.ZodOptional<z.ZodEnum<[
660
+ "client",
661
+ "user"
662
+ ]>>;
663
+ authorization_details_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
664
+ }, "strip", z.ZodTypeAny, {
665
+ client_id: string;
666
+ audience: string;
667
+ organization_usage?: "deny" | "allow" | "require" | undefined;
668
+ scope?: string[] | undefined;
669
+ allow_any_organization?: boolean | undefined;
670
+ is_system?: boolean | undefined;
671
+ subject_type?: "client" | "user" | undefined;
672
+ authorization_details_types?: string[] | undefined;
673
+ }, {
674
+ client_id: string;
675
+ audience: string;
676
+ organization_usage?: "deny" | "allow" | "require" | undefined;
677
+ scope?: string[] | undefined;
678
+ allow_any_organization?: boolean | undefined;
679
+ is_system?: boolean | undefined;
680
+ subject_type?: "client" | "user" | undefined;
681
+ authorization_details_types?: string[] | undefined;
682
+ }>;
683
+ export type ClientGrantInsert = z.input<typeof clientGrantInsertSchema>;
684
+ declare const clientGrantSchema: z.ZodObject<{
685
+ created_at: z.ZodOptional<z.ZodString>;
686
+ updated_at: z.ZodOptional<z.ZodString>;
687
+ client_id: z.ZodString;
688
+ audience: z.ZodString;
689
+ scope: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
690
+ organization_usage: z.ZodOptional<z.ZodEnum<[
691
+ "deny",
692
+ "allow",
693
+ "require"
694
+ ]>>;
695
+ allow_any_organization: z.ZodOptional<z.ZodBoolean>;
696
+ is_system: z.ZodOptional<z.ZodBoolean>;
697
+ subject_type: z.ZodOptional<z.ZodEnum<[
698
+ "client",
699
+ "user"
700
+ ]>>;
701
+ authorization_details_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
702
+ id: z.ZodString;
703
+ }, "strip", z.ZodTypeAny, {
704
+ client_id: string;
705
+ audience: string;
706
+ id: string;
707
+ created_at?: string | undefined;
708
+ updated_at?: string | undefined;
709
+ organization_usage?: "deny" | "allow" | "require" | undefined;
710
+ scope?: string[] | undefined;
711
+ allow_any_organization?: boolean | undefined;
712
+ is_system?: boolean | undefined;
713
+ subject_type?: "client" | "user" | undefined;
714
+ authorization_details_types?: string[] | undefined;
715
+ }, {
716
+ client_id: string;
717
+ audience: string;
718
+ id: string;
719
+ created_at?: string | undefined;
720
+ updated_at?: string | undefined;
721
+ organization_usage?: "deny" | "allow" | "require" | undefined;
722
+ scope?: string[] | undefined;
723
+ allow_any_organization?: boolean | undefined;
724
+ is_system?: boolean | undefined;
725
+ subject_type?: "client" | "user" | undefined;
726
+ authorization_details_types?: string[] | undefined;
727
+ }>;
728
+ export type ClientGrant = z.infer<typeof clientGrantSchema>;
1002
729
  declare enum AuthorizationResponseType {
1003
730
  TOKEN = "token",
1004
731
  TOKEN_ID_TOKEN = "token id_token",
@@ -1161,9 +888,8 @@ declare const LegacyClientSchema: z.ZodObject<{
1161
888
  twilio_token: z.ZodOptional<z.ZodString>;
1162
889
  }, "strip", z.ZodTypeAny, {
1163
890
  provider?: string | undefined;
1164
- issuer?: string | undefined;
1165
- client_secret?: string | undefined;
1166
891
  client_id?: string | undefined;
892
+ client_secret?: string | undefined;
1167
893
  scope?: string | undefined;
1168
894
  kid?: string | undefined;
1169
895
  team_id?: string | undefined;
@@ -1175,14 +901,14 @@ declare const LegacyClientSchema: z.ZodObject<{
1175
901
  userinfo_endpoint?: string | undefined;
1176
902
  jwks_uri?: string | undefined;
1177
903
  discovery_url?: string | undefined;
904
+ issuer?: string | undefined;
1178
905
  from?: string | undefined;
1179
906
  twilio_sid?: string | undefined;
1180
907
  twilio_token?: string | undefined;
1181
908
  }, {
1182
909
  provider?: string | undefined;
1183
- issuer?: string | undefined;
1184
- client_secret?: string | undefined;
1185
910
  client_id?: string | undefined;
911
+ client_secret?: string | undefined;
1186
912
  scope?: string | undefined;
1187
913
  kid?: string | undefined;
1188
914
  team_id?: string | undefined;
@@ -1194,6 +920,7 @@ declare const LegacyClientSchema: z.ZodObject<{
1194
920
  userinfo_endpoint?: string | undefined;
1195
921
  jwks_uri?: string | undefined;
1196
922
  discovery_url?: string | undefined;
923
+ issuer?: string | undefined;
1197
924
  from?: string | undefined;
1198
925
  twilio_sid?: string | undefined;
1199
926
  twilio_token?: string | undefined;
@@ -1204,9 +931,8 @@ declare const LegacyClientSchema: z.ZodObject<{
1204
931
  }, "strip", z.ZodTypeAny, {
1205
932
  options: {
1206
933
  provider?: string | undefined;
1207
- issuer?: string | undefined;
1208
- client_secret?: string | undefined;
1209
934
  client_id?: string | undefined;
935
+ client_secret?: string | undefined;
1210
936
  scope?: string | undefined;
1211
937
  kid?: string | undefined;
1212
938
  team_id?: string | undefined;
@@ -1218,6 +944,7 @@ declare const LegacyClientSchema: z.ZodObject<{
1218
944
  userinfo_endpoint?: string | undefined;
1219
945
  jwks_uri?: string | undefined;
1220
946
  discovery_url?: string | undefined;
947
+ issuer?: string | undefined;
1221
948
  from?: string | undefined;
1222
949
  twilio_sid?: string | undefined;
1223
950
  twilio_token?: string | undefined;
@@ -1237,9 +964,8 @@ declare const LegacyClientSchema: z.ZodObject<{
1237
964
  strategy: string;
1238
965
  options?: {
1239
966
  provider?: string | undefined;
1240
- issuer?: string | undefined;
1241
- client_secret?: string | undefined;
1242
967
  client_id?: string | undefined;
968
+ client_secret?: string | undefined;
1243
969
  scope?: string | undefined;
1244
970
  kid?: string | undefined;
1245
971
  team_id?: string | undefined;
@@ -1251,6 +977,7 @@ declare const LegacyClientSchema: z.ZodObject<{
1251
977
  userinfo_endpoint?: string | undefined;
1252
978
  jwks_uri?: string | undefined;
1253
979
  discovery_url?: string | undefined;
980
+ issuer?: string | undefined;
1254
981
  from?: string | undefined;
1255
982
  twilio_sid?: string | undefined;
1256
983
  twilio_token?: string | undefined;
@@ -1358,8 +1085,6 @@ declare const LegacyClientSchema: z.ZodObject<{
1358
1085
  created_at: string;
1359
1086
  updated_at: string;
1360
1087
  name: string;
1361
- email_validation: string;
1362
- disable_sign_ups: boolean;
1363
1088
  client_id: string;
1364
1089
  global: boolean;
1365
1090
  is_first_party: boolean;
@@ -1387,9 +1112,8 @@ declare const LegacyClientSchema: z.ZodObject<{
1387
1112
  connections: {
1388
1113
  options: {
1389
1114
  provider?: string | undefined;
1390
- issuer?: string | undefined;
1391
- client_secret?: string | undefined;
1392
1115
  client_id?: string | undefined;
1116
+ client_secret?: string | undefined;
1393
1117
  scope?: string | undefined;
1394
1118
  kid?: string | undefined;
1395
1119
  team_id?: string | undefined;
@@ -1401,6 +1125,7 @@ declare const LegacyClientSchema: z.ZodObject<{
1401
1125
  userinfo_endpoint?: string | undefined;
1402
1126
  jwks_uri?: string | undefined;
1403
1127
  discovery_url?: string | undefined;
1128
+ issuer?: string | undefined;
1404
1129
  from?: string | undefined;
1405
1130
  twilio_sid?: string | undefined;
1406
1131
  twilio_token?: string | undefined;
@@ -1414,19 +1139,19 @@ declare const LegacyClientSchema: z.ZodObject<{
1414
1139
  response_mode?: AuthorizationResponseMode | undefined;
1415
1140
  enabled_clients?: string[] | undefined;
1416
1141
  }[];
1142
+ disable_sign_ups: boolean;
1143
+ email_validation: string;
1417
1144
  description?: string | undefined;
1418
1145
  refresh_token?: Record<string, any> | undefined;
1419
- callbacks?: string[] | undefined;
1420
- allowed_origins?: string[] | undefined;
1421
- web_origins?: string[] | undefined;
1422
- allowed_logout_urls?: string[] | undefined;
1423
- allowed_clients?: string[] | undefined;
1424
- addons?: Record<string, any> | undefined;
1425
1146
  client_secret?: string | undefined;
1426
- client_metadata?: Record<string, string> | undefined;
1427
1147
  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;
1428
1148
  logo_uri?: string | undefined;
1149
+ callbacks?: string[] | undefined;
1150
+ allowed_origins?: string[] | undefined;
1151
+ web_origins?: string[] | undefined;
1429
1152
  client_aliases?: string[] | undefined;
1153
+ allowed_clients?: string[] | undefined;
1154
+ allowed_logout_urls?: string[] | undefined;
1430
1155
  session_transfer?: Record<string, any> | undefined;
1431
1156
  oidc_logout?: Record<string, any> | undefined;
1432
1157
  grant_types?: string[] | undefined;
@@ -1437,7 +1162,9 @@ declare const LegacyClientSchema: z.ZodObject<{
1437
1162
  custom_login_page?: string | undefined;
1438
1163
  custom_login_page_preview?: string | undefined;
1439
1164
  form_template?: string | undefined;
1165
+ addons?: Record<string, any> | undefined;
1440
1166
  token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | undefined;
1167
+ client_metadata?: Record<string, string> | undefined;
1441
1168
  mobile?: Record<string, any> | undefined;
1442
1169
  initiate_login_uri?: string | undefined;
1443
1170
  native_social_login?: Record<string, any> | undefined;
@@ -1453,8 +1180,6 @@ declare const LegacyClientSchema: z.ZodObject<{
1453
1180
  created_at: string;
1454
1181
  updated_at: string;
1455
1182
  name: string;
1456
- email_validation: string;
1457
- disable_sign_ups: boolean;
1458
1183
  client_id: string;
1459
1184
  tenant: {
1460
1185
  created_at: string;
@@ -1477,9 +1202,8 @@ declare const LegacyClientSchema: z.ZodObject<{
1477
1202
  strategy: string;
1478
1203
  options?: {
1479
1204
  provider?: string | undefined;
1480
- issuer?: string | undefined;
1481
- client_secret?: string | undefined;
1482
1205
  client_id?: string | undefined;
1206
+ client_secret?: string | undefined;
1483
1207
  scope?: string | undefined;
1484
1208
  kid?: string | undefined;
1485
1209
  team_id?: string | undefined;
@@ -1491,6 +1215,7 @@ declare const LegacyClientSchema: z.ZodObject<{
1491
1215
  userinfo_endpoint?: string | undefined;
1492
1216
  jwks_uri?: string | undefined;
1493
1217
  discovery_url?: string | undefined;
1218
+ issuer?: string | undefined;
1494
1219
  from?: string | undefined;
1495
1220
  twilio_sid?: string | undefined;
1496
1221
  twilio_token?: string | undefined;
@@ -1500,22 +1225,22 @@ declare const LegacyClientSchema: z.ZodObject<{
1500
1225
  response_mode?: AuthorizationResponseMode | undefined;
1501
1226
  enabled_clients?: string[] | undefined;
1502
1227
  }[];
1228
+ disable_sign_ups: boolean;
1229
+ email_validation: string;
1503
1230
  description?: string | undefined;
1504
1231
  refresh_token?: Record<string, any> | undefined;
1505
- callbacks?: string[] | undefined;
1506
- allowed_origins?: string[] | undefined;
1507
- web_origins?: string[] | undefined;
1508
- allowed_logout_urls?: string[] | undefined;
1509
- allowed_clients?: string[] | undefined;
1510
- addons?: Record<string, any> | undefined;
1511
- client_secret?: string | undefined;
1512
- client_metadata?: Record<string, string> | undefined;
1513
1232
  global?: boolean | undefined;
1233
+ client_secret?: string | undefined;
1514
1234
  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;
1515
1235
  logo_uri?: string | undefined;
1516
1236
  is_first_party?: boolean | undefined;
1517
1237
  oidc_conformant?: boolean | undefined;
1238
+ callbacks?: string[] | undefined;
1239
+ allowed_origins?: string[] | undefined;
1240
+ web_origins?: string[] | undefined;
1518
1241
  client_aliases?: string[] | undefined;
1242
+ allowed_clients?: string[] | undefined;
1243
+ allowed_logout_urls?: string[] | undefined;
1519
1244
  session_transfer?: Record<string, any> | undefined;
1520
1245
  oidc_logout?: Record<string, any> | undefined;
1521
1246
  grant_types?: string[] | undefined;
@@ -1530,7 +1255,9 @@ declare const LegacyClientSchema: z.ZodObject<{
1530
1255
  custom_login_page?: string | undefined;
1531
1256
  custom_login_page_preview?: string | undefined;
1532
1257
  form_template?: string | undefined;
1258
+ addons?: Record<string, any> | undefined;
1533
1259
  token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | undefined;
1260
+ client_metadata?: Record<string, string> | undefined;
1534
1261
  mobile?: Record<string, any> | undefined;
1535
1262
  initiate_login_uri?: string | undefined;
1536
1263
  native_social_login?: Record<string, any> | undefined;
@@ -1691,9 +1418,8 @@ declare const connectionInsertSchema: z.ZodObject<{
1691
1418
  twilio_token: z.ZodOptional<z.ZodString>;
1692
1419
  }, "strip", z.ZodTypeAny, {
1693
1420
  provider?: string | undefined;
1694
- issuer?: string | undefined;
1695
- client_secret?: string | undefined;
1696
1421
  client_id?: string | undefined;
1422
+ client_secret?: string | undefined;
1697
1423
  scope?: string | undefined;
1698
1424
  kid?: string | undefined;
1699
1425
  team_id?: string | undefined;
@@ -1705,14 +1431,14 @@ declare const connectionInsertSchema: z.ZodObject<{
1705
1431
  userinfo_endpoint?: string | undefined;
1706
1432
  jwks_uri?: string | undefined;
1707
1433
  discovery_url?: string | undefined;
1434
+ issuer?: string | undefined;
1708
1435
  from?: string | undefined;
1709
1436
  twilio_sid?: string | undefined;
1710
1437
  twilio_token?: string | undefined;
1711
1438
  }, {
1712
1439
  provider?: string | undefined;
1713
- issuer?: string | undefined;
1714
- client_secret?: string | undefined;
1715
1440
  client_id?: string | undefined;
1441
+ client_secret?: string | undefined;
1716
1442
  scope?: string | undefined;
1717
1443
  kid?: string | undefined;
1718
1444
  team_id?: string | undefined;
@@ -1724,6 +1450,7 @@ declare const connectionInsertSchema: z.ZodObject<{
1724
1450
  userinfo_endpoint?: string | undefined;
1725
1451
  jwks_uri?: string | undefined;
1726
1452
  discovery_url?: string | undefined;
1453
+ issuer?: string | undefined;
1727
1454
  from?: string | undefined;
1728
1455
  twilio_sid?: string | undefined;
1729
1456
  twilio_token?: string | undefined;
@@ -1734,9 +1461,8 @@ declare const connectionInsertSchema: z.ZodObject<{
1734
1461
  }, "strip", z.ZodTypeAny, {
1735
1462
  options: {
1736
1463
  provider?: string | undefined;
1737
- issuer?: string | undefined;
1738
- client_secret?: string | undefined;
1739
1464
  client_id?: string | undefined;
1465
+ client_secret?: string | undefined;
1740
1466
  scope?: string | undefined;
1741
1467
  kid?: string | undefined;
1742
1468
  team_id?: string | undefined;
@@ -1748,6 +1474,7 @@ declare const connectionInsertSchema: z.ZodObject<{
1748
1474
  userinfo_endpoint?: string | undefined;
1749
1475
  jwks_uri?: string | undefined;
1750
1476
  discovery_url?: string | undefined;
1477
+ issuer?: string | undefined;
1751
1478
  from?: string | undefined;
1752
1479
  twilio_sid?: string | undefined;
1753
1480
  twilio_token?: string | undefined;
@@ -1763,9 +1490,8 @@ declare const connectionInsertSchema: z.ZodObject<{
1763
1490
  strategy: string;
1764
1491
  options?: {
1765
1492
  provider?: string | undefined;
1766
- issuer?: string | undefined;
1767
- client_secret?: string | undefined;
1768
1493
  client_id?: string | undefined;
1494
+ client_secret?: string | undefined;
1769
1495
  scope?: string | undefined;
1770
1496
  kid?: string | undefined;
1771
1497
  team_id?: string | undefined;
@@ -1777,6 +1503,7 @@ declare const connectionInsertSchema: z.ZodObject<{
1777
1503
  userinfo_endpoint?: string | undefined;
1778
1504
  jwks_uri?: string | undefined;
1779
1505
  discovery_url?: string | undefined;
1506
+ issuer?: string | undefined;
1780
1507
  from?: string | undefined;
1781
1508
  twilio_sid?: string | undefined;
1782
1509
  twilio_token?: string | undefined;
@@ -1815,9 +1542,8 @@ declare const connectionSchema: z.ZodObject<{
1815
1542
  twilio_token: z.ZodOptional<z.ZodString>;
1816
1543
  }, "strip", z.ZodTypeAny, {
1817
1544
  provider?: string | undefined;
1818
- issuer?: string | undefined;
1819
- client_secret?: string | undefined;
1820
1545
  client_id?: string | undefined;
1546
+ client_secret?: string | undefined;
1821
1547
  scope?: string | undefined;
1822
1548
  kid?: string | undefined;
1823
1549
  team_id?: string | undefined;
@@ -1829,14 +1555,14 @@ declare const connectionSchema: z.ZodObject<{
1829
1555
  userinfo_endpoint?: string | undefined;
1830
1556
  jwks_uri?: string | undefined;
1831
1557
  discovery_url?: string | undefined;
1558
+ issuer?: string | undefined;
1832
1559
  from?: string | undefined;
1833
1560
  twilio_sid?: string | undefined;
1834
1561
  twilio_token?: string | undefined;
1835
1562
  }, {
1836
1563
  provider?: string | undefined;
1837
- issuer?: string | undefined;
1838
- client_secret?: string | undefined;
1839
1564
  client_id?: string | undefined;
1565
+ client_secret?: string | undefined;
1840
1566
  scope?: string | undefined;
1841
1567
  kid?: string | undefined;
1842
1568
  team_id?: string | undefined;
@@ -1848,6 +1574,7 @@ declare const connectionSchema: z.ZodObject<{
1848
1574
  userinfo_endpoint?: string | undefined;
1849
1575
  jwks_uri?: string | undefined;
1850
1576
  discovery_url?: string | undefined;
1577
+ issuer?: string | undefined;
1851
1578
  from?: string | undefined;
1852
1579
  twilio_sid?: string | undefined;
1853
1580
  twilio_token?: string | undefined;
@@ -1858,9 +1585,8 @@ declare const connectionSchema: z.ZodObject<{
1858
1585
  }, "strip", z.ZodTypeAny, {
1859
1586
  options: {
1860
1587
  provider?: string | undefined;
1861
- issuer?: string | undefined;
1862
- client_secret?: string | undefined;
1863
1588
  client_id?: string | undefined;
1589
+ client_secret?: string | undefined;
1864
1590
  scope?: string | undefined;
1865
1591
  kid?: string | undefined;
1866
1592
  team_id?: string | undefined;
@@ -1872,6 +1598,7 @@ declare const connectionSchema: z.ZodObject<{
1872
1598
  userinfo_endpoint?: string | undefined;
1873
1599
  jwks_uri?: string | undefined;
1874
1600
  discovery_url?: string | undefined;
1601
+ issuer?: string | undefined;
1875
1602
  from?: string | undefined;
1876
1603
  twilio_sid?: string | undefined;
1877
1604
  twilio_token?: string | undefined;
@@ -1891,9 +1618,8 @@ declare const connectionSchema: z.ZodObject<{
1891
1618
  strategy: string;
1892
1619
  options?: {
1893
1620
  provider?: string | undefined;
1894
- issuer?: string | undefined;
1895
- client_secret?: string | undefined;
1896
1621
  client_id?: string | undefined;
1622
+ client_secret?: string | undefined;
1897
1623
  scope?: string | undefined;
1898
1624
  kid?: string | undefined;
1899
1625
  team_id?: string | undefined;
@@ -1905,6 +1631,7 @@ declare const connectionSchema: z.ZodObject<{
1905
1631
  userinfo_endpoint?: string | undefined;
1906
1632
  jwks_uri?: string | undefined;
1907
1633
  discovery_url?: string | undefined;
1634
+ issuer?: string | undefined;
1908
1635
  from?: string | undefined;
1909
1636
  twilio_sid?: string | undefined;
1910
1637
  twilio_token?: string | undefined;
@@ -3834,9 +3561,9 @@ declare const hookInsertSchema: z.ZodUnion<[
3834
3561
  priority: z.ZodOptional<z.ZodNumber>;
3835
3562
  hook_id: z.ZodOptional<z.ZodString>;
3836
3563
  }, "strip", z.ZodTypeAny, {
3837
- enabled: boolean;
3838
3564
  url: string;
3839
3565
  trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
3566
+ enabled: boolean;
3840
3567
  synchronous: boolean;
3841
3568
  priority?: number | undefined;
3842
3569
  hook_id?: string | undefined;
@@ -3860,8 +3587,8 @@ declare const hookInsertSchema: z.ZodUnion<[
3860
3587
  priority: z.ZodOptional<z.ZodNumber>;
3861
3588
  hook_id: z.ZodOptional<z.ZodString>;
3862
3589
  }, "strip", z.ZodTypeAny, {
3863
- enabled: boolean;
3864
3590
  trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
3591
+ enabled: boolean;
3865
3592
  synchronous: boolean;
3866
3593
  form_id: string;
3867
3594
  priority?: number | undefined;
@@ -3893,9 +3620,9 @@ declare const hookSchema: z.ZodUnion<[
3893
3620
  }, "strip", z.ZodTypeAny, {
3894
3621
  created_at: string;
3895
3622
  updated_at: string;
3896
- enabled: boolean;
3897
3623
  url: string;
3898
3624
  trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
3625
+ enabled: boolean;
3899
3626
  synchronous: boolean;
3900
3627
  hook_id: string;
3901
3628
  priority?: number | undefined;
@@ -3925,8 +3652,8 @@ declare const hookSchema: z.ZodUnion<[
3925
3652
  }, "strip", z.ZodTypeAny, {
3926
3653
  created_at: string;
3927
3654
  updated_at: string;
3928
- enabled: boolean;
3929
3655
  trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
3656
+ enabled: boolean;
3930
3657
  synchronous: boolean;
3931
3658
  hook_id: string;
3932
3659
  form_id: string;
@@ -3977,6 +3704,7 @@ declare const loginSessionInsertSchema: z.ZodObject<{
3977
3704
  client_id: string;
3978
3705
  username?: string | undefined;
3979
3706
  audience?: string | undefined;
3707
+ scope?: string | undefined;
3980
3708
  act_as?: string | undefined;
3981
3709
  response_type?: AuthorizationResponseType | undefined;
3982
3710
  response_mode?: AuthorizationResponseMode | undefined;
@@ -3984,7 +3712,6 @@ declare const loginSessionInsertSchema: z.ZodObject<{
3984
3712
  organization?: string | undefined;
3985
3713
  state?: string | undefined;
3986
3714
  nonce?: string | undefined;
3987
- scope?: string | undefined;
3988
3715
  prompt?: string | undefined;
3989
3716
  code_challenge_method?: CodeChallengeMethod | undefined;
3990
3717
  code_challenge?: string | undefined;
@@ -3994,6 +3721,7 @@ declare const loginSessionInsertSchema: z.ZodObject<{
3994
3721
  client_id: string;
3995
3722
  username?: string | undefined;
3996
3723
  audience?: string | undefined;
3724
+ scope?: string | undefined;
3997
3725
  act_as?: string | undefined;
3998
3726
  response_type?: AuthorizationResponseType | undefined;
3999
3727
  response_mode?: AuthorizationResponseMode | undefined;
@@ -4001,7 +3729,6 @@ declare const loginSessionInsertSchema: z.ZodObject<{
4001
3729
  organization?: string | undefined;
4002
3730
  state?: string | undefined;
4003
3731
  nonce?: string | undefined;
4004
- scope?: string | undefined;
4005
3732
  prompt?: string | undefined;
4006
3733
  code_challenge_method?: CodeChallengeMethod | undefined;
4007
3734
  code_challenge?: string | undefined;
@@ -4022,6 +3749,7 @@ declare const loginSessionInsertSchema: z.ZodObject<{
4022
3749
  client_id: string;
4023
3750
  username?: string | undefined;
4024
3751
  audience?: string | undefined;
3752
+ scope?: string | undefined;
4025
3753
  act_as?: string | undefined;
4026
3754
  response_type?: AuthorizationResponseType | undefined;
4027
3755
  response_mode?: AuthorizationResponseMode | undefined;
@@ -4029,7 +3757,6 @@ declare const loginSessionInsertSchema: z.ZodObject<{
4029
3757
  organization?: string | undefined;
4030
3758
  state?: string | undefined;
4031
3759
  nonce?: string | undefined;
4032
- scope?: string | undefined;
4033
3760
  prompt?: string | undefined;
4034
3761
  code_challenge_method?: CodeChallengeMethod | undefined;
4035
3762
  code_challenge?: string | undefined;
@@ -4050,6 +3777,7 @@ declare const loginSessionInsertSchema: z.ZodObject<{
4050
3777
  client_id: string;
4051
3778
  username?: string | undefined;
4052
3779
  audience?: string | undefined;
3780
+ scope?: string | undefined;
4053
3781
  act_as?: string | undefined;
4054
3782
  response_type?: AuthorizationResponseType | undefined;
4055
3783
  response_mode?: AuthorizationResponseMode | undefined;
@@ -4057,7 +3785,6 @@ declare const loginSessionInsertSchema: z.ZodObject<{
4057
3785
  organization?: string | undefined;
4058
3786
  state?: string | undefined;
4059
3787
  nonce?: string | undefined;
4060
- scope?: string | undefined;
4061
3788
  prompt?: string | undefined;
4062
3789
  code_challenge_method?: CodeChallengeMethod | undefined;
4063
3790
  code_challenge?: string | undefined;
@@ -4100,6 +3827,7 @@ declare const loginSessionSchema: z.ZodObject<{
4100
3827
  client_id: string;
4101
3828
  username?: string | undefined;
4102
3829
  audience?: string | undefined;
3830
+ scope?: string | undefined;
4103
3831
  act_as?: string | undefined;
4104
3832
  response_type?: AuthorizationResponseType | undefined;
4105
3833
  response_mode?: AuthorizationResponseMode | undefined;
@@ -4107,7 +3835,6 @@ declare const loginSessionSchema: z.ZodObject<{
4107
3835
  organization?: string | undefined;
4108
3836
  state?: string | undefined;
4109
3837
  nonce?: string | undefined;
4110
- scope?: string | undefined;
4111
3838
  prompt?: string | undefined;
4112
3839
  code_challenge_method?: CodeChallengeMethod | undefined;
4113
3840
  code_challenge?: string | undefined;
@@ -4117,6 +3844,7 @@ declare const loginSessionSchema: z.ZodObject<{
4117
3844
  client_id: string;
4118
3845
  username?: string | undefined;
4119
3846
  audience?: string | undefined;
3847
+ scope?: string | undefined;
4120
3848
  act_as?: string | undefined;
4121
3849
  response_type?: AuthorizationResponseType | undefined;
4122
3850
  response_mode?: AuthorizationResponseMode | undefined;
@@ -4124,7 +3852,6 @@ declare const loginSessionSchema: z.ZodObject<{
4124
3852
  organization?: string | undefined;
4125
3853
  state?: string | undefined;
4126
3854
  nonce?: string | undefined;
4127
- scope?: string | undefined;
4128
3855
  prompt?: string | undefined;
4129
3856
  code_challenge_method?: CodeChallengeMethod | undefined;
4130
3857
  code_challenge?: string | undefined;
@@ -4148,6 +3875,7 @@ declare const loginSessionSchema: z.ZodObject<{
4148
3875
  client_id: string;
4149
3876
  username?: string | undefined;
4150
3877
  audience?: string | undefined;
3878
+ scope?: string | undefined;
4151
3879
  act_as?: string | undefined;
4152
3880
  response_type?: AuthorizationResponseType | undefined;
4153
3881
  response_mode?: AuthorizationResponseMode | undefined;
@@ -4155,7 +3883,6 @@ declare const loginSessionSchema: z.ZodObject<{
4155
3883
  organization?: string | undefined;
4156
3884
  state?: string | undefined;
4157
3885
  nonce?: string | undefined;
4158
- scope?: string | undefined;
4159
3886
  prompt?: string | undefined;
4160
3887
  code_challenge_method?: CodeChallengeMethod | undefined;
4161
3888
  code_challenge?: string | undefined;
@@ -4179,6 +3906,7 @@ declare const loginSessionSchema: z.ZodObject<{
4179
3906
  client_id: string;
4180
3907
  username?: string | undefined;
4181
3908
  audience?: string | undefined;
3909
+ scope?: string | undefined;
4182
3910
  act_as?: string | undefined;
4183
3911
  response_type?: AuthorizationResponseType | undefined;
4184
3912
  response_mode?: AuthorizationResponseMode | undefined;
@@ -4186,7 +3914,6 @@ declare const loginSessionSchema: z.ZodObject<{
4186
3914
  organization?: string | undefined;
4187
3915
  state?: string | undefined;
4188
3916
  nonce?: string | undefined;
4189
- scope?: string | undefined;
4190
3917
  prompt?: string | undefined;
4191
3918
  code_challenge_method?: CodeChallengeMethod | undefined;
4192
3919
  code_challenge?: string | undefined;
@@ -4408,8 +4135,8 @@ declare const logSchema: z.ZodObject<{
4408
4135
  description?: string | undefined;
4409
4136
  connection?: string | undefined;
4410
4137
  user_id?: string | undefined;
4411
- audience?: string | undefined;
4412
4138
  client_id?: string | undefined;
4139
+ audience?: string | undefined;
4413
4140
  scope?: string[] | undefined;
4414
4141
  strategy?: string | undefined;
4415
4142
  connection_id?: string | undefined;
@@ -4436,8 +4163,8 @@ declare const logSchema: z.ZodObject<{
4436
4163
  description?: string | undefined;
4437
4164
  connection?: string | undefined;
4438
4165
  user_id?: string | undefined;
4439
- audience?: string | undefined;
4440
4166
  client_id?: string | undefined;
4167
+ audience?: string | undefined;
4441
4168
  scope?: string[] | undefined;
4442
4169
  strategy?: string | undefined;
4443
4170
  connection_id?: string | undefined;
@@ -5781,8 +5508,8 @@ declare const refreshTokenInsertSchema: z.ZodObject<{
5781
5508
  rotating: z.ZodBoolean;
5782
5509
  }, "strip", z.ZodTypeAny, {
5783
5510
  user_id: string;
5784
- id: string;
5785
5511
  client_id: string;
5512
+ id: string;
5786
5513
  session_id: string;
5787
5514
  device: {
5788
5515
  last_ip: string;
@@ -5802,8 +5529,8 @@ declare const refreshTokenInsertSchema: z.ZodObject<{
5802
5529
  last_exchanged_at?: string | undefined;
5803
5530
  }, {
5804
5531
  user_id: string;
5805
- id: string;
5806
5532
  client_id: string;
5533
+ id: string;
5807
5534
  session_id: string;
5808
5535
  device: {
5809
5536
  last_ip: string;
@@ -5868,8 +5595,8 @@ declare const refreshTokenSchema: z.ZodObject<{
5868
5595
  }, "strip", z.ZodTypeAny, {
5869
5596
  created_at: string;
5870
5597
  user_id: string;
5871
- id: string;
5872
5598
  client_id: string;
5599
+ id: string;
5873
5600
  session_id: string;
5874
5601
  device: {
5875
5602
  last_ip: string;
@@ -5890,8 +5617,8 @@ declare const refreshTokenSchema: z.ZodObject<{
5890
5617
  }, {
5891
5618
  created_at: string;
5892
5619
  user_id: string;
5893
- id: string;
5894
5620
  client_id: string;
5621
+ id: string;
5895
5622
  session_id: string;
5896
5623
  device: {
5897
5624
  last_ip: string;
@@ -6326,7 +6053,6 @@ declare const organizationInsertSchema: z.ZodObject<{
6326
6053
  }>>;
6327
6054
  }, "strip", z.ZodTypeAny, {
6328
6055
  name: string;
6329
- id?: string | undefined;
6330
6056
  token_quota?: {
6331
6057
  client_credentials?: {
6332
6058
  enforce: boolean;
@@ -6334,6 +6060,7 @@ declare const organizationInsertSchema: z.ZodObject<{
6334
6060
  per_hour: number;
6335
6061
  } | undefined;
6336
6062
  } | undefined;
6063
+ id?: string | undefined;
6337
6064
  display_name?: string | undefined;
6338
6065
  branding?: {
6339
6066
  colors?: {
@@ -6351,7 +6078,6 @@ declare const organizationInsertSchema: z.ZodObject<{
6351
6078
  }[] | undefined;
6352
6079
  }, {
6353
6080
  name: string;
6354
- id?: string | undefined;
6355
6081
  token_quota?: {
6356
6082
  client_credentials?: {
6357
6083
  enforce?: boolean | undefined;
@@ -6359,6 +6085,7 @@ declare const organizationInsertSchema: z.ZodObject<{
6359
6085
  per_hour?: number | undefined;
6360
6086
  } | undefined;
6361
6087
  } | undefined;
6088
+ id?: string | undefined;
6362
6089
  display_name?: string | undefined;
6363
6090
  branding?: {
6364
6091
  colors?: {
@@ -6573,6 +6300,16 @@ export interface ClientsAdapter {
6573
6300
  }>;
6574
6301
  update(tenant_id: string, client_id: string, client: Partial<Client>): Promise<boolean>;
6575
6302
  }
6303
+ export interface ListClientGrantsResponse extends Totals {
6304
+ client_grants: ClientGrant[];
6305
+ }
6306
+ export interface ClientGrantsAdapter {
6307
+ create(tenant_id: string, params: ClientGrantInsert): Promise<ClientGrant>;
6308
+ get(tenant_id: string, id: string): Promise<ClientGrant | null>;
6309
+ list(tenant_id: string, params?: ListParams): Promise<ListClientGrantsResponse>;
6310
+ update(tenant_id: string, id: string, clientGrant: Partial<ClientGrantInsert>): Promise<boolean>;
6311
+ remove(tenant_id: string, id: string): Promise<boolean>;
6312
+ }
6576
6313
  export interface ListCodesResponse extends Totals {
6577
6314
  codes: Code[];
6578
6315
  }
@@ -6634,16 +6371,6 @@ export interface LogsDataAdapter {
6634
6371
  list(tenantId: string, params?: ListParams): Promise<ListLogsResponse>;
6635
6372
  get(tenantId: string, logId: string): Promise<LogsResponse | null>;
6636
6373
  }
6637
- export interface ApplicationsAdapter {
6638
- create(tenant_id: string, params: ApplicationInsert): Promise<Application>;
6639
- get(tenant_id: string, id: string): Promise<Application | null>;
6640
- remove(tenant_id: string, id: string): Promise<boolean>;
6641
- list(tenant_id: string, params?: ListParams): Promise<{
6642
- applications: Application[];
6643
- totals?: Totals;
6644
- }>;
6645
- update(tenant_id: string, id: string, application: Partial<Application>): Promise<boolean>;
6646
- }
6647
6374
  export interface ListConnectionsResponse extends Totals {
6648
6375
  connections: Connection[];
6649
6376
  }
@@ -6797,10 +6524,10 @@ export interface UserOrganizationsAdapter {
6797
6524
  update(tenantId: string, id: string, params: Partial<UserOrganizationInsert>): Promise<boolean>;
6798
6525
  }
6799
6526
  export interface DataAdapters {
6800
- applications: ApplicationsAdapter;
6801
6527
  branding: BrandingAdapter;
6802
6528
  cache?: CacheAdapter;
6803
6529
  clients: ClientsAdapter;
6530
+ clientGrants: ClientGrantsAdapter;
6804
6531
  legacyClients: LegacyClientsAdapter;
6805
6532
  codes: CodesAdapter;
6806
6533
  connections: ConnectionsAdapter;
@@ -6897,59 +6624,6 @@ declare const sqlBrandingSchema: z.ZodObject<{
6897
6624
  [x: string]: any;
6898
6625
  tenant_id?: unknown;
6899
6626
  }>;
6900
- declare const sqlApplicationSchema: z.ZodObject<{
6901
- tenant_id: z.ZodString;
6902
- addons: z.ZodString;
6903
- disable_sign_ups: z.ZodNumber;
6904
- callbacks: z.ZodString;
6905
- allowed_origins: z.ZodString;
6906
- web_origins: z.ZodString;
6907
- allowed_logout_urls: z.ZodString;
6908
- allowed_clients: z.ZodString;
6909
- id: z.ZodString;
6910
- name: z.ZodString;
6911
- email_validation: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
6912
- "enabled",
6913
- "disabled",
6914
- "enforced"
6915
- ]>>>;
6916
- client_secret: z.ZodOptional<z.ZodDefault<z.ZodString>>;
6917
- client_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
6918
- created_at: z.ZodEffects<z.ZodString, string, string>;
6919
- updated_at: z.ZodEffects<z.ZodString, string, string>;
6920
- }, "strip", z.ZodTypeAny, {
6921
- tenant_id: string;
6922
- addons: string;
6923
- disable_sign_ups: number;
6924
- callbacks: string;
6925
- allowed_origins: string;
6926
- web_origins: string;
6927
- allowed_logout_urls: string;
6928
- allowed_clients: string;
6929
- id: string;
6930
- name: string;
6931
- created_at: string;
6932
- updated_at: string;
6933
- email_validation?: "enabled" | "disabled" | "enforced" | undefined;
6934
- client_secret?: string | undefined;
6935
- client_metadata?: Record<string, string> | undefined;
6936
- }, {
6937
- tenant_id: string;
6938
- addons: string;
6939
- disable_sign_ups: number;
6940
- callbacks: string;
6941
- allowed_origins: string;
6942
- web_origins: string;
6943
- allowed_logout_urls: string;
6944
- allowed_clients: string;
6945
- id: string;
6946
- name: string;
6947
- created_at: string;
6948
- updated_at: string;
6949
- email_validation?: "enabled" | "disabled" | "enforced" | undefined;
6950
- client_secret?: string | undefined;
6951
- client_metadata?: Record<string, string> | undefined;
6952
- }>;
6953
6627
  declare const sqlPromptSettingSchema: z.ZodObject<{
6954
6628
  identifier_first: z.ZodNumber;
6955
6629
  password_first: z.ZodNumber;
@@ -7073,17 +6747,16 @@ declare const sqlUserSchema: z.ZodObject<{
7073
6747
  connection: z.ZodDefault<z.ZodString>;
7074
6748
  }, "strip", z.ZodTypeAny, {
7075
6749
  tenant_id: string;
7076
- created_at: string;
7077
- updated_at: string;
7078
6750
  email_verified: number;
7079
6751
  is_social: number;
7080
6752
  app_metadata: string;
7081
6753
  user_metadata: string;
7082
6754
  user_id: string;
7083
6755
  login_count: number;
6756
+ created_at: string;
6757
+ updated_at: string;
7084
6758
  provider: string;
7085
6759
  connection: string;
7086
- name?: string | undefined;
7087
6760
  email?: string | undefined;
7088
6761
  identities?: {
7089
6762
  connection: string;
@@ -7109,6 +6782,7 @@ declare const sqlUserSchema: z.ZodObject<{
7109
6782
  given_name?: string | undefined;
7110
6783
  family_name?: string | undefined;
7111
6784
  nickname?: string | undefined;
6785
+ name?: string | undefined;
7112
6786
  picture?: string | undefined;
7113
6787
  locale?: string | undefined;
7114
6788
  linked_to?: string | undefined;
@@ -7118,14 +6792,13 @@ declare const sqlUserSchema: z.ZodObject<{
7118
6792
  last_login?: string | undefined;
7119
6793
  }, {
7120
6794
  tenant_id: string;
7121
- created_at: string;
7122
- updated_at: string;
7123
6795
  email_verified: number;
7124
6796
  is_social: number;
7125
6797
  app_metadata: string;
7126
6798
  user_metadata: string;
7127
6799
  user_id: string;
7128
- name?: string | undefined;
6800
+ created_at: string;
6801
+ updated_at: string;
7129
6802
  email?: string | undefined;
7130
6803
  login_count?: number | undefined;
7131
6804
  identities?: {
@@ -7152,6 +6825,7 @@ declare const sqlUserSchema: z.ZodObject<{
7152
6825
  given_name?: string | undefined;
7153
6826
  family_name?: string | undefined;
7154
6827
  nickname?: string | undefined;
6828
+ name?: string | undefined;
7155
6829
  picture?: string | undefined;
7156
6830
  locale?: string | undefined;
7157
6831
  linked_to?: string | undefined;
@@ -7175,22 +6849,22 @@ declare const sqlHookSchema: z.ZodObject<{
7175
6849
  form_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
7176
6850
  }, "strip", z.ZodTypeAny, {
7177
6851
  tenant_id: string;
7178
- enabled: number;
7179
6852
  created_at: string;
7180
6853
  updated_at: string;
7181
6854
  hook_id: string;
7182
6855
  trigger_id: string;
6856
+ enabled: number;
7183
6857
  synchronous: number;
7184
6858
  priority?: number | null | undefined;
7185
6859
  url?: string | null | undefined;
7186
6860
  form_id?: string | null | undefined;
7187
6861
  }, {
7188
6862
  tenant_id: string;
7189
- enabled: number;
7190
6863
  created_at: string;
7191
6864
  updated_at: string;
7192
6865
  hook_id: string;
7193
6866
  trigger_id: string;
6867
+ enabled: number;
7194
6868
  synchronous: number;
7195
6869
  priority?: number | null | undefined;
7196
6870
  url?: string | null | undefined;
@@ -7207,19 +6881,19 @@ declare const sqlEmailProvidersSchema: z.ZodObject<{
7207
6881
  default_from_address: z.ZodOptional<z.ZodString>;
7208
6882
  }, "strip", z.ZodTypeAny, {
7209
6883
  tenant_id: string;
7210
- enabled: number;
7211
- name: string;
7212
6884
  created_at: string;
7213
6885
  updated_at: string;
6886
+ name: string;
6887
+ enabled: number;
7214
6888
  credentials: string;
7215
6889
  settings: string;
7216
6890
  default_from_address?: string | undefined;
7217
6891
  }, {
7218
6892
  tenant_id: string;
7219
- enabled: number;
7220
- name: string;
7221
6893
  created_at: string;
7222
6894
  updated_at: string;
6895
+ name: string;
6896
+ enabled: number;
7223
6897
  credentials: string;
7224
6898
  settings: string;
7225
6899
  default_from_address?: string | undefined;
@@ -7241,12 +6915,12 @@ declare const sqlSessionSchema: z.ZodObject<{
7241
6915
  last_interaction_at: z.ZodString;
7242
6916
  }, "strip", z.ZodTypeAny, {
7243
6917
  tenant_id: string;
7244
- id: string;
6918
+ user_id: string;
7245
6919
  created_at: string;
7246
6920
  updated_at: string;
7247
- user_id: string;
7248
6921
  device: string;
7249
6922
  clients: string;
6923
+ id: string;
7250
6924
  login_session_id: string;
7251
6925
  authenticated_at: string;
7252
6926
  last_interaction_at: string;
@@ -7256,12 +6930,12 @@ declare const sqlSessionSchema: z.ZodObject<{
7256
6930
  idle_expires_at?: string | undefined;
7257
6931
  }, {
7258
6932
  tenant_id: string;
7259
- id: string;
6933
+ user_id: string;
7260
6934
  created_at: string;
7261
6935
  updated_at: string;
7262
- user_id: string;
7263
6936
  device: string;
7264
6937
  clients: string;
6938
+ id: string;
7265
6939
  login_session_id: string;
7266
6940
  authenticated_at: string;
7267
6941
  last_interaction_at: string;
@@ -7285,10 +6959,10 @@ declare const sqlRefreshTokensSchema: z.ZodObject<{
7285
6959
  created_at: z.ZodString;
7286
6960
  }, "strip", z.ZodTypeAny, {
7287
6961
  tenant_id: string;
7288
- id: string;
7289
- created_at: string;
7290
6962
  user_id: string;
6963
+ created_at: string;
7291
6964
  device: string;
6965
+ id: string;
7292
6966
  resource_servers: string;
7293
6967
  rotating: number;
7294
6968
  session_id: string;
@@ -7298,10 +6972,10 @@ declare const sqlRefreshTokensSchema: z.ZodObject<{
7298
6972
  last_exchanged_at?: string | undefined;
7299
6973
  }, {
7300
6974
  tenant_id: string;
7301
- id: string;
7302
- created_at: string;
7303
6975
  user_id: string;
6976
+ created_at: string;
7304
6977
  device: string;
6978
+ id: string;
7305
6979
  resource_servers: string;
7306
6980
  rotating: number;
7307
6981
  session_id: string;
@@ -7449,10 +7123,10 @@ declare const sqlFormSchema: z.ZodObject<{
7449
7123
  updated_at: z.ZodString;
7450
7124
  }, "strip", z.ZodTypeAny, {
7451
7125
  tenant_id: string;
7452
- id: string;
7453
- name: string;
7454
7126
  created_at: string;
7455
7127
  updated_at: string;
7128
+ name: string;
7129
+ id: string;
7456
7130
  nodes: string;
7457
7131
  start: string;
7458
7132
  ending: string;
@@ -7470,10 +7144,10 @@ declare const sqlFormSchema: z.ZodObject<{
7470
7144
  } | undefined;
7471
7145
  }, {
7472
7146
  tenant_id: string;
7473
- id: string;
7474
- name: string;
7475
7147
  created_at: string;
7476
7148
  updated_at: string;
7149
+ name: string;
7150
+ id: string;
7477
7151
  nodes?: string | undefined;
7478
7152
  start?: string | undefined;
7479
7153
  ending?: string | undefined;
@@ -7510,9 +7184,9 @@ declare const sqlResourceServerSchema: z.ZodObject<Omit<{
7510
7184
  }, "verificationKey">, "strip", z.ZodTypeAny, {
7511
7185
  options: string;
7512
7186
  tenant_id: string;
7513
- name: string;
7514
7187
  created_at: string;
7515
7188
  updated_at: string;
7189
+ name: string;
7516
7190
  scopes: string;
7517
7191
  identifier: string;
7518
7192
  id?: string | undefined;
@@ -7525,9 +7199,9 @@ declare const sqlResourceServerSchema: z.ZodObject<Omit<{
7525
7199
  token_lifetime_for_web?: number | undefined;
7526
7200
  }, {
7527
7201
  tenant_id: string;
7528
- name: string;
7529
7202
  created_at: string;
7530
7203
  updated_at: string;
7204
+ name: string;
7531
7205
  identifier: string;
7532
7206
  options?: string | undefined;
7533
7207
  id?: string | undefined;
@@ -7549,19 +7223,59 @@ declare const sqlRoleSchema: z.ZodObject<{
7549
7223
  id: z.ZodString;
7550
7224
  }, "strip", z.ZodTypeAny, {
7551
7225
  tenant_id: string;
7552
- id: string;
7553
- name: string;
7554
7226
  created_at: string;
7555
7227
  updated_at: string;
7228
+ name: string;
7229
+ id: string;
7556
7230
  description?: string | undefined;
7557
7231
  }, {
7558
7232
  tenant_id: string;
7559
- id: string;
7560
- name: string;
7561
7233
  created_at: string;
7562
7234
  updated_at: string;
7235
+ name: string;
7236
+ id: string;
7563
7237
  description?: string | undefined;
7564
7238
  }>;
7239
+ declare const sqlClientGrantSchema: z.ZodObject<{
7240
+ id: z.ZodString;
7241
+ tenant_id: z.ZodString;
7242
+ client_id: z.ZodString;
7243
+ audience: z.ZodString;
7244
+ scope: z.ZodDefault<z.ZodOptional<z.ZodString>>;
7245
+ organization_usage: z.ZodOptional<z.ZodString>;
7246
+ allow_any_organization: z.ZodOptional<z.ZodNumber>;
7247
+ is_system: z.ZodOptional<z.ZodNumber>;
7248
+ subject_type: z.ZodOptional<z.ZodString>;
7249
+ authorization_details_types: z.ZodDefault<z.ZodOptional<z.ZodString>>;
7250
+ created_at: z.ZodString;
7251
+ updated_at: z.ZodString;
7252
+ }, "strip", z.ZodTypeAny, {
7253
+ tenant_id: string;
7254
+ created_at: string;
7255
+ updated_at: string;
7256
+ id: string;
7257
+ client_id: string;
7258
+ audience: string;
7259
+ scope: string;
7260
+ authorization_details_types: string;
7261
+ organization_usage?: string | undefined;
7262
+ allow_any_organization?: number | undefined;
7263
+ is_system?: number | undefined;
7264
+ subject_type?: string | undefined;
7265
+ }, {
7266
+ tenant_id: string;
7267
+ created_at: string;
7268
+ updated_at: string;
7269
+ id: string;
7270
+ client_id: string;
7271
+ audience: string;
7272
+ scope?: string | undefined;
7273
+ organization_usage?: string | undefined;
7274
+ allow_any_organization?: number | undefined;
7275
+ is_system?: number | undefined;
7276
+ subject_type?: string | undefined;
7277
+ authorization_details_types?: string | undefined;
7278
+ }>;
7565
7279
  declare const sqlRolePermissionSchema: z.ZodObject<{
7566
7280
  tenant_id: z.ZodString;
7567
7281
  role_id: z.ZodString;
@@ -7590,15 +7304,15 @@ declare const sqlUserPermissionSchema: z.ZodObject<{
7590
7304
  created_at: z.ZodString;
7591
7305
  }, "strip", z.ZodTypeAny, {
7592
7306
  tenant_id: string;
7593
- created_at: string;
7594
7307
  user_id: string;
7308
+ created_at: string;
7595
7309
  resource_server_identifier: string;
7596
7310
  permission_name: string;
7597
7311
  organization_id: string;
7598
7312
  }, {
7599
7313
  tenant_id: string;
7600
- created_at: string;
7601
7314
  user_id: string;
7315
+ created_at: string;
7602
7316
  resource_server_identifier: string;
7603
7317
  permission_name: string;
7604
7318
  organization_id: string;
@@ -7611,14 +7325,14 @@ declare const sqlUserRoleSchema: z.ZodObject<{
7611
7325
  created_at: z.ZodString;
7612
7326
  }, "strip", z.ZodTypeAny, {
7613
7327
  tenant_id: string;
7614
- created_at: string;
7615
7328
  user_id: string;
7329
+ created_at: string;
7616
7330
  role_id: string;
7617
7331
  organization_id: string;
7618
7332
  }, {
7619
7333
  tenant_id: string;
7620
- created_at: string;
7621
7334
  user_id: string;
7335
+ created_at: string;
7622
7336
  role_id: string;
7623
7337
  organization_id: string;
7624
7338
  }>;
@@ -7635,10 +7349,10 @@ declare const sqlOrganizationSchema: z.ZodObject<{
7635
7349
  display_name: z.ZodOptional<z.ZodString>;
7636
7350
  }, "strip", z.ZodTypeAny, {
7637
7351
  tenant_id: string;
7638
- id: string;
7639
- name: string;
7640
7352
  created_at: string;
7641
7353
  updated_at: string;
7354
+ name: string;
7355
+ id: string;
7642
7356
  branding: string;
7643
7357
  metadata: string;
7644
7358
  enabled_connections: string;
@@ -7646,10 +7360,10 @@ declare const sqlOrganizationSchema: z.ZodObject<{
7646
7360
  display_name?: string | undefined;
7647
7361
  }, {
7648
7362
  tenant_id: string;
7649
- id: string;
7650
- name: string;
7651
7363
  created_at: string;
7652
7364
  updated_at: string;
7365
+ name: string;
7366
+ id: string;
7653
7367
  branding?: string | undefined;
7654
7368
  metadata?: string | undefined;
7655
7369
  enabled_connections?: string | undefined;
@@ -7665,17 +7379,17 @@ declare const sqlUserOrganizationSchema: z.ZodObject<{
7665
7379
  updated_at: z.ZodString;
7666
7380
  }, "strip", z.ZodTypeAny, {
7667
7381
  tenant_id: string;
7668
- id: string;
7382
+ user_id: string;
7669
7383
  created_at: string;
7670
7384
  updated_at: string;
7671
- user_id: string;
7385
+ id: string;
7672
7386
  organization_id: string;
7673
7387
  }, {
7674
7388
  tenant_id: string;
7675
- id: string;
7389
+ user_id: string;
7676
7390
  created_at: string;
7677
7391
  updated_at: string;
7678
- user_id: string;
7392
+ id: string;
7679
7393
  organization_id: string;
7680
7394
  }>;
7681
7395
  declare const sqlClientSchema: z.ZodObject<{
@@ -7774,16 +7488,9 @@ declare const sqlClientSchema: z.ZodObject<{
7774
7488
  updated_at: z.ZodString;
7775
7489
  }, "strip", z.ZodTypeAny, {
7776
7490
  tenant_id: string;
7777
- addons: string;
7778
- callbacks: string;
7779
- allowed_origins: string;
7780
- web_origins: string;
7781
- allowed_logout_urls: string;
7782
- allowed_clients: string;
7783
- name: string;
7784
- client_metadata: string;
7785
7491
  created_at: string;
7786
7492
  updated_at: string;
7493
+ name: string;
7787
7494
  client_id: string;
7788
7495
  token_quota: string;
7789
7496
  global: number;
@@ -7795,13 +7502,20 @@ declare const sqlClientSchema: z.ZodObject<{
7795
7502
  custom_login_page_on: number;
7796
7503
  require_pushed_authorization_requests: number;
7797
7504
  require_proof_of_possession: number;
7505
+ callbacks: string;
7506
+ allowed_origins: string;
7507
+ web_origins: string;
7798
7508
  client_aliases: string;
7509
+ allowed_clients: string;
7510
+ allowed_logout_urls: string;
7799
7511
  session_transfer: string;
7800
7512
  oidc_logout: string;
7801
7513
  grant_types: string;
7802
7514
  jwt_configuration: string;
7803
7515
  signing_keys: string;
7804
7516
  encryption_key: string;
7517
+ addons: string;
7518
+ client_metadata: string;
7805
7519
  mobile: string;
7806
7520
  native_social_login: string;
7807
7521
  refresh_token: string;
@@ -7809,6 +7523,7 @@ declare const sqlClientSchema: z.ZodObject<{
7809
7523
  client_authentication_methods: string;
7810
7524
  signed_request_object: string;
7811
7525
  description?: string | undefined;
7526
+ organization_usage?: "deny" | "allow" | "require" | undefined;
7812
7527
  client_secret?: string | undefined;
7813
7528
  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;
7814
7529
  logo_uri?: string | undefined;
@@ -7818,22 +7533,14 @@ declare const sqlClientSchema: z.ZodObject<{
7818
7533
  form_template?: string | undefined;
7819
7534
  token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | undefined;
7820
7535
  initiate_login_uri?: string | undefined;
7821
- organization_usage?: "deny" | "allow" | "require" | undefined;
7822
7536
  organization_require_behavior?: "no_prompt" | "pre_login_prompt" | "post_login_prompt" | undefined;
7823
7537
  compliance_level?: "none" | "fapi1_adv_pkj_par" | "fapi1_adv_mtls_par" | "fapi2_sp_pkj_mtls" | "fapi2_sp_mtls_mtls" | undefined;
7824
7538
  par_request_expiry?: number | undefined;
7825
7539
  }, {
7826
7540
  tenant_id: string;
7827
- addons: string;
7828
- callbacks: string;
7829
- allowed_origins: string;
7830
- web_origins: string;
7831
- allowed_logout_urls: string;
7832
- allowed_clients: string;
7833
- name: string;
7834
- client_metadata: string;
7835
7541
  created_at: string;
7836
7542
  updated_at: string;
7543
+ name: string;
7837
7544
  client_id: string;
7838
7545
  token_quota: string;
7839
7546
  global: number;
@@ -7845,13 +7552,20 @@ declare const sqlClientSchema: z.ZodObject<{
7845
7552
  custom_login_page_on: number;
7846
7553
  require_pushed_authorization_requests: number;
7847
7554
  require_proof_of_possession: number;
7555
+ callbacks: string;
7556
+ allowed_origins: string;
7557
+ web_origins: string;
7848
7558
  client_aliases: string;
7559
+ allowed_clients: string;
7560
+ allowed_logout_urls: string;
7849
7561
  session_transfer: string;
7850
7562
  oidc_logout: string;
7851
7563
  grant_types: string;
7852
7564
  jwt_configuration: string;
7853
7565
  signing_keys: string;
7854
7566
  encryption_key: string;
7567
+ addons: string;
7568
+ client_metadata: string;
7855
7569
  mobile: string;
7856
7570
  native_social_login: string;
7857
7571
  refresh_token: string;
@@ -7859,6 +7573,7 @@ declare const sqlClientSchema: z.ZodObject<{
7859
7573
  client_authentication_methods: string;
7860
7574
  signed_request_object: string;
7861
7575
  description?: string | undefined;
7576
+ organization_usage?: "deny" | "allow" | "require" | undefined;
7862
7577
  client_secret?: string | undefined;
7863
7578
  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;
7864
7579
  logo_uri?: string | undefined;
@@ -7868,15 +7583,14 @@ declare const sqlClientSchema: z.ZodObject<{
7868
7583
  form_template?: string | undefined;
7869
7584
  token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | undefined;
7870
7585
  initiate_login_uri?: string | undefined;
7871
- organization_usage?: "deny" | "allow" | "require" | undefined;
7872
7586
  organization_require_behavior?: "no_prompt" | "pre_login_prompt" | "post_login_prompt" | undefined;
7873
7587
  compliance_level?: "none" | "fapi1_adv_pkj_par" | "fapi1_adv_mtls_par" | "fapi2_sp_pkj_mtls" | "fapi2_sp_mtls_mtls" | undefined;
7874
7588
  par_request_expiry?: number | undefined;
7875
7589
  }>;
7876
7590
  export interface Database {
7877
- applications: z.infer<typeof sqlApplicationSchema>;
7878
7591
  branding: z.infer<typeof sqlBrandingSchema>;
7879
7592
  clients: z.infer<typeof sqlClientSchema>;
7593
+ client_grants: z.infer<typeof sqlClientGrantSchema>;
7880
7594
  codes: Code & {
7881
7595
  tenant_id: string;
7882
7596
  };