@better-auth/infra 0.2.13 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -6,8 +6,8 @@ import z$1 from "zod";
6
6
  import * as better_call0 from "better-call";
7
7
  import { APIError, Endpoint, EndpointOptions } from "better-call";
8
8
  import { DBFieldAttribute } from "better-auth/db";
9
- import * as zod_v4_core0 from "zod/v4/core";
10
9
  import { Invitation, Member, Organization, Team, TeamMember } from "better-auth/plugins";
10
+ import * as zod_v4_core0 from "zod/v4/core";
11
11
  export type * from "better-call";
12
12
 
13
13
  //#region src/identification.d.ts
@@ -285,6 +285,7 @@ declare const sentinel: (options?: SentinelOptions) => {
285
285
  getSignedCookie: (key: string, secret: string, prefix?: import("better-call").CookiePrefixOptions) => Promise<string | null | false>;
286
286
  setCookie: (key: string, value: string, options?: import("better-call").CookieOptions) => string;
287
287
  setSignedCookie: (key: string, value: string, secret: string, options?: import("better-call").CookieOptions) => Promise<string>;
288
+ responseHeaders: Headers;
288
289
  json: (<R extends Record<string, any> | null>(json: R, routerResponse?: {
289
290
  status?: number;
290
291
  headers?: Record<string, string>;
@@ -674,6 +675,10 @@ interface SendSMSOptions {
674
675
  * The SMS template to use (optional - defaults to generic verification message)
675
676
  */
676
677
  template?: SMSTemplateId;
678
+ /**
679
+ * End-user IP for abuse limits when calling from Better Auth server-to-server.
680
+ */
681
+ clientIp?: string;
677
682
  }
678
683
  /**
679
684
  * Create an SMS sender instance
@@ -775,7 +780,7 @@ interface DashIdRow {
775
780
  id: string;
776
781
  }
777
782
  //#endregion
778
- //#region ../../node_modules/.bun/@better-auth+scim@1.6.14+790dbc3a881c5018/node_modules/@better-auth/scim/dist/index.d.mts
783
+ //#region ../../node_modules/.bun/@better-auth+scim@1.7.0-beta.8+e68feb61976e8634/node_modules/@better-auth/scim/dist/index.d.mts
779
784
  //#region src/types.d.ts
780
785
  interface SCIMProvider {
781
786
  id: string;
@@ -784,14 +789,36 @@ interface SCIMProvider {
784
789
  organizationId?: string;
785
790
  userId?: string;
786
791
  }
787
- type SCIMOptions = {
788
- /**
789
- * SCIM provider ownership configuration. When enabled, each provider
790
- * connection is linked to the user who generated its token.
791
- */
792
- providerOwnership?: {
793
- enabled: boolean;
792
+ type SCIMGroupMemberInput = {
793
+ value?: string;
794
+ $ref?: string;
795
+ display?: string;
796
+ type?: string;
797
+ };
798
+ type SCIMGroupInput = {
799
+ externalId?: string;
800
+ displayName: string;
801
+ members?: SCIMGroupMemberInput[];
802
+ };
803
+ type MapGroupToRolesInput = {
804
+ group: SCIMGroupInput;
805
+ provider: {
806
+ providerId: string;
807
+ organizationId: string;
794
808
  };
809
+ };
810
+ type SCIMGroupMemberReference = {
811
+ value: string;
812
+ $ref: string;
813
+ display: string;
814
+ type: "User";
815
+ };
816
+ type SCIMUserGroupReference = {
817
+ value: string;
818
+ $ref: string;
819
+ display: string;
820
+ };
821
+ type SCIMOptions = {
795
822
  /**
796
823
  * Minimum organization role(s) required for SCIM management operations
797
824
  * (generate-token, list/get/delete provider connections).
@@ -804,6 +831,50 @@ type SCIMOptions = {
804
831
  * These will take precedence over the database when present.
805
832
  */
806
833
  defaultSCIM?: Omit<SCIMProvider, "id">[];
834
+ /**
835
+ * Maps an incoming SCIM Group resource to Better Auth organization role(s).
836
+ *
837
+ * Defaults to using the group's displayName as the role name.
838
+ */
839
+ mapGroupToRoles?: (input: MapGroupToRolesInput) => string | string[] | Promise<string | string[]>;
840
+ /**
841
+ * Controls whether SCIM provisioning may link to a *pre-existing* Better
842
+ * Auth user whose email matches the incoming SCIM resource.
843
+ *
844
+ * Disabled by default: when a user with the same email already exists,
845
+ * `createSCIMUser` returns `409` (uniqueness) instead of silently creating a
846
+ * SCIM account link for that user. Linking by email alone would give a SCIM
847
+ * token access to an account it never provisioned.
848
+ *
849
+ * - `true` restores the legacy behavior of linking any existing user that
850
+ * matches by email. Only use this with a fully trusted token-issuance flow.
851
+ * - An object enables linking only when *every* provided constraint passes.
852
+ */
853
+ linkExistingUsers?: boolean | {
854
+ /**
855
+ * Only link when the email's domain is in this allow-list
856
+ * (case-insensitive). An empty/absent list is not a match.
857
+ */
858
+ trustedDomains?: string[];
859
+ /**
860
+ * For organization-scoped tokens, only link a user who is already
861
+ * a member of the token's organization (never auto-add them). Has
862
+ * no effect for non-org (personal) tokens, which then never match
863
+ * on this constraint.
864
+ */
865
+ requireExistingOrgMembership?: boolean;
866
+ /**
867
+ * Full control: return `true` to allow linking the matched user.
868
+ */
869
+ shouldLinkUser?: (payload: {
870
+ user: User;
871
+ email: string;
872
+ provider: {
873
+ providerId: string;
874
+ organizationId?: string;
875
+ };
876
+ }) => boolean | Promise<boolean>;
877
+ };
807
878
  /**
808
879
  * A callback that runs before a new SCIM token is generated.
809
880
  * Runs after the built-in role check, so it can add additional
@@ -823,6 +894,22 @@ type SCIMOptions = {
823
894
  scimToken: string;
824
895
  scimProvider: SCIMProvider;
825
896
  }) => Promise<void>;
897
+ /**
898
+ * Authorize who may generate a SCIM token. Runs after the built-in checks
899
+ * (org-scoped tokens still require org membership + the required role), so it
900
+ * can add restrictions but cannot loosen them.
901
+ *
902
+ * Use this to lock down *personal* (non-org-scoped) token creation, which is
903
+ * otherwise available to any authenticated user. SCIM tokens can provision
904
+ * and manage users, so return `false` to deny. `member` is `null` for
905
+ * personal tokens.
906
+ */
907
+ canGenerateToken?: (payload: {
908
+ user: User;
909
+ providerId: string;
910
+ organizationId?: string;
911
+ member: Member | null;
912
+ }) => boolean | Promise<boolean>;
826
913
  /**
827
914
  * How to store the SCIM token in the database.
828
915
  *
@@ -1361,6 +1448,8 @@ declare const scim: (options?: SCIMOptions) => {
1361
1448
  scimProvider: Omit<SCIMProvider, "id">;
1362
1449
  }>)[];
1363
1450
  }, {
1451
+ schemas: string[];
1452
+ groups?: SCIMUserGroupReference[] | undefined;
1364
1453
  id: string;
1365
1454
  externalId: string | undefined;
1366
1455
  meta: {
@@ -1379,7 +1468,6 @@ declare const scim: (options?: SCIMOptions) => {
1379
1468
  primary: boolean;
1380
1469
  value: string;
1381
1470
  }[];
1382
- schemas: string[];
1383
1471
  }>;
1384
1472
  createSCIMUser: better_call0.StrictEndpoint<"/scim/v2/Users", {
1385
1473
  method: "POST";
@@ -1650,6 +1738,8 @@ declare const scim: (options?: SCIMOptions) => {
1650
1738
  scimProvider: Omit<SCIMProvider, "id">;
1651
1739
  }>)[];
1652
1740
  }, {
1741
+ schemas: string[];
1742
+ groups?: SCIMUserGroupReference[] | undefined;
1653
1743
  id: string;
1654
1744
  externalId: string | undefined;
1655
1745
  meta: {
@@ -1668,7 +1758,6 @@ declare const scim: (options?: SCIMOptions) => {
1668
1758
  primary: boolean;
1669
1759
  value: string;
1670
1760
  }[];
1671
- schemas: string[];
1672
1761
  }>;
1673
1762
  patchSCIMUser: better_call0.StrictEndpoint<"/scim/v2/Users/:userId", {
1674
1763
  method: "PATCH";
@@ -2278,10 +2367,1545 @@ declare const scim: (options?: SCIMOptions) => {
2278
2367
  readonly displayName: {
2279
2368
  readonly type: "string";
2280
2369
  };
2281
- readonly active: {
2282
- readonly type: "boolean";
2283
- };
2284
- readonly emails: {
2370
+ readonly active: {
2371
+ readonly type: "boolean";
2372
+ };
2373
+ readonly emails: {
2374
+ readonly type: "array";
2375
+ readonly items: {
2376
+ readonly type: "object";
2377
+ readonly properties: {
2378
+ readonly value: {
2379
+ readonly type: "string";
2380
+ };
2381
+ readonly primary: {
2382
+ readonly type: "boolean";
2383
+ };
2384
+ };
2385
+ };
2386
+ };
2387
+ readonly schemas: {
2388
+ readonly type: "array";
2389
+ readonly items: {
2390
+ readonly type: "string";
2391
+ };
2392
+ };
2393
+ };
2394
+ };
2395
+ };
2396
+ };
2397
+ };
2398
+ };
2399
+ };
2400
+ scope: "server";
2401
+ };
2402
+ use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
2403
+ authSCIMToken: string;
2404
+ scimProvider: Omit<SCIMProvider, "id">;
2405
+ }>)[];
2406
+ }, {
2407
+ schemas: string[];
2408
+ groups?: SCIMUserGroupReference[] | undefined;
2409
+ id: string;
2410
+ externalId: string | undefined;
2411
+ meta: {
2412
+ resourceType: string;
2413
+ created: Date;
2414
+ lastModified: Date;
2415
+ location: string;
2416
+ };
2417
+ userName: string;
2418
+ name: {
2419
+ formatted: string;
2420
+ };
2421
+ displayName: string;
2422
+ active: boolean;
2423
+ emails: {
2424
+ primary: boolean;
2425
+ value: string;
2426
+ }[];
2427
+ }>;
2428
+ listSCIMUsers: better_call0.StrictEndpoint<"/scim/v2/Users", {
2429
+ method: "GET";
2430
+ query: zod.ZodOptional<zod.ZodObject<{
2431
+ filter: zod.ZodOptional<zod.ZodString>;
2432
+ }, zod_v4_core0.$strip>>;
2433
+ metadata: {
2434
+ allowedMediaTypes: string[];
2435
+ openapi: {
2436
+ summary: string;
2437
+ description: string;
2438
+ responses: {
2439
+ "400": {
2440
+ description: string;
2441
+ content: {
2442
+ "application/json": {
2443
+ schema: {
2444
+ readonly type: "object";
2445
+ readonly properties: {
2446
+ readonly schemas: {
2447
+ readonly type: "array";
2448
+ readonly items: {
2449
+ readonly type: "string";
2450
+ };
2451
+ };
2452
+ readonly status: {
2453
+ readonly type: "string";
2454
+ };
2455
+ readonly detail: {
2456
+ readonly type: "string";
2457
+ };
2458
+ readonly scimType: {
2459
+ readonly type: "string";
2460
+ };
2461
+ };
2462
+ };
2463
+ };
2464
+ };
2465
+ };
2466
+ "401": {
2467
+ description: string;
2468
+ content: {
2469
+ "application/json": {
2470
+ schema: {
2471
+ readonly type: "object";
2472
+ readonly properties: {
2473
+ readonly schemas: {
2474
+ readonly type: "array";
2475
+ readonly items: {
2476
+ readonly type: "string";
2477
+ };
2478
+ };
2479
+ readonly status: {
2480
+ readonly type: "string";
2481
+ };
2482
+ readonly detail: {
2483
+ readonly type: "string";
2484
+ };
2485
+ readonly scimType: {
2486
+ readonly type: "string";
2487
+ };
2488
+ };
2489
+ };
2490
+ };
2491
+ };
2492
+ };
2493
+ "403": {
2494
+ description: string;
2495
+ content: {
2496
+ "application/json": {
2497
+ schema: {
2498
+ readonly type: "object";
2499
+ readonly properties: {
2500
+ readonly schemas: {
2501
+ readonly type: "array";
2502
+ readonly items: {
2503
+ readonly type: "string";
2504
+ };
2505
+ };
2506
+ readonly status: {
2507
+ readonly type: "string";
2508
+ };
2509
+ readonly detail: {
2510
+ readonly type: "string";
2511
+ };
2512
+ readonly scimType: {
2513
+ readonly type: "string";
2514
+ };
2515
+ };
2516
+ };
2517
+ };
2518
+ };
2519
+ };
2520
+ "404": {
2521
+ description: string;
2522
+ content: {
2523
+ "application/json": {
2524
+ schema: {
2525
+ readonly type: "object";
2526
+ readonly properties: {
2527
+ readonly schemas: {
2528
+ readonly type: "array";
2529
+ readonly items: {
2530
+ readonly type: "string";
2531
+ };
2532
+ };
2533
+ readonly status: {
2534
+ readonly type: "string";
2535
+ };
2536
+ readonly detail: {
2537
+ readonly type: "string";
2538
+ };
2539
+ readonly scimType: {
2540
+ readonly type: "string";
2541
+ };
2542
+ };
2543
+ };
2544
+ };
2545
+ };
2546
+ };
2547
+ "429": {
2548
+ description: string;
2549
+ content: {
2550
+ "application/json": {
2551
+ schema: {
2552
+ readonly type: "object";
2553
+ readonly properties: {
2554
+ readonly schemas: {
2555
+ readonly type: "array";
2556
+ readonly items: {
2557
+ readonly type: "string";
2558
+ };
2559
+ };
2560
+ readonly status: {
2561
+ readonly type: "string";
2562
+ };
2563
+ readonly detail: {
2564
+ readonly type: "string";
2565
+ };
2566
+ readonly scimType: {
2567
+ readonly type: "string";
2568
+ };
2569
+ };
2570
+ };
2571
+ };
2572
+ };
2573
+ };
2574
+ "500": {
2575
+ description: string;
2576
+ content: {
2577
+ "application/json": {
2578
+ schema: {
2579
+ readonly type: "object";
2580
+ readonly properties: {
2581
+ readonly schemas: {
2582
+ readonly type: "array";
2583
+ readonly items: {
2584
+ readonly type: "string";
2585
+ };
2586
+ };
2587
+ readonly status: {
2588
+ readonly type: "string";
2589
+ };
2590
+ readonly detail: {
2591
+ readonly type: "string";
2592
+ };
2593
+ readonly scimType: {
2594
+ readonly type: "string";
2595
+ };
2596
+ };
2597
+ };
2598
+ };
2599
+ };
2600
+ };
2601
+ "200": {
2602
+ description: string;
2603
+ content: {
2604
+ "application/json": {
2605
+ schema: {
2606
+ type: "object";
2607
+ properties: {
2608
+ totalResults: {
2609
+ type: string;
2610
+ };
2611
+ itemsPerPage: {
2612
+ type: string;
2613
+ };
2614
+ startIndex: {
2615
+ type: string;
2616
+ };
2617
+ Resources: {
2618
+ type: string;
2619
+ items: {
2620
+ readonly type: "object";
2621
+ readonly properties: {
2622
+ readonly id: {
2623
+ readonly type: "string";
2624
+ };
2625
+ readonly meta: {
2626
+ readonly type: "object";
2627
+ readonly properties: {
2628
+ readonly resourceType: {
2629
+ readonly type: "string";
2630
+ };
2631
+ readonly created: {
2632
+ readonly type: "string";
2633
+ readonly format: "date-time";
2634
+ };
2635
+ readonly lastModified: {
2636
+ readonly type: "string";
2637
+ readonly format: "date-time";
2638
+ };
2639
+ readonly location: {
2640
+ readonly type: "string";
2641
+ };
2642
+ };
2643
+ };
2644
+ readonly userName: {
2645
+ readonly type: "string";
2646
+ };
2647
+ readonly name: {
2648
+ readonly type: "object";
2649
+ readonly properties: {
2650
+ readonly formatted: {
2651
+ readonly type: "string";
2652
+ };
2653
+ readonly givenName: {
2654
+ readonly type: "string";
2655
+ };
2656
+ readonly familyName: {
2657
+ readonly type: "string";
2658
+ };
2659
+ };
2660
+ };
2661
+ readonly displayName: {
2662
+ readonly type: "string";
2663
+ };
2664
+ readonly active: {
2665
+ readonly type: "boolean";
2666
+ };
2667
+ readonly emails: {
2668
+ readonly type: "array";
2669
+ readonly items: {
2670
+ readonly type: "object";
2671
+ readonly properties: {
2672
+ readonly value: {
2673
+ readonly type: "string";
2674
+ };
2675
+ readonly primary: {
2676
+ readonly type: "boolean";
2677
+ };
2678
+ };
2679
+ };
2680
+ };
2681
+ readonly schemas: {
2682
+ readonly type: "array";
2683
+ readonly items: {
2684
+ readonly type: "string";
2685
+ };
2686
+ };
2687
+ };
2688
+ };
2689
+ };
2690
+ };
2691
+ };
2692
+ };
2693
+ };
2694
+ };
2695
+ };
2696
+ };
2697
+ scope: "server";
2698
+ };
2699
+ use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
2700
+ authSCIMToken: string;
2701
+ scimProvider: Omit<SCIMProvider, "id">;
2702
+ }>)[];
2703
+ }, {
2704
+ readonly schemas: readonly ["urn:ietf:params:scim:api:messages:2.0:ListResponse"];
2705
+ readonly totalResults: 0;
2706
+ readonly startIndex: 1;
2707
+ readonly itemsPerPage: 0;
2708
+ readonly Resources: readonly [];
2709
+ } | {
2710
+ schemas: string[];
2711
+ totalResults: number;
2712
+ startIndex: number;
2713
+ itemsPerPage: number;
2714
+ Resources: {
2715
+ schemas: string[];
2716
+ groups?: SCIMUserGroupReference[] | undefined;
2717
+ id: string;
2718
+ externalId: string | undefined;
2719
+ meta: {
2720
+ resourceType: string;
2721
+ created: Date;
2722
+ lastModified: Date;
2723
+ location: string;
2724
+ };
2725
+ userName: string;
2726
+ name: {
2727
+ formatted: string;
2728
+ };
2729
+ displayName: string;
2730
+ active: boolean;
2731
+ emails: {
2732
+ primary: boolean;
2733
+ value: string;
2734
+ }[];
2735
+ }[];
2736
+ }>;
2737
+ getSCIMGroup: better_call0.StrictEndpoint<"/scim/v2/Groups/:groupId", {
2738
+ method: "GET";
2739
+ metadata: {
2740
+ allowedMediaTypes: string[];
2741
+ openapi: {
2742
+ summary: string;
2743
+ description: string;
2744
+ responses: {
2745
+ "400": {
2746
+ description: string;
2747
+ content: {
2748
+ "application/json": {
2749
+ schema: {
2750
+ readonly type: "object";
2751
+ readonly properties: {
2752
+ readonly schemas: {
2753
+ readonly type: "array";
2754
+ readonly items: {
2755
+ readonly type: "string";
2756
+ };
2757
+ };
2758
+ readonly status: {
2759
+ readonly type: "string";
2760
+ };
2761
+ readonly detail: {
2762
+ readonly type: "string";
2763
+ };
2764
+ readonly scimType: {
2765
+ readonly type: "string";
2766
+ };
2767
+ };
2768
+ };
2769
+ };
2770
+ };
2771
+ };
2772
+ "401": {
2773
+ description: string;
2774
+ content: {
2775
+ "application/json": {
2776
+ schema: {
2777
+ readonly type: "object";
2778
+ readonly properties: {
2779
+ readonly schemas: {
2780
+ readonly type: "array";
2781
+ readonly items: {
2782
+ readonly type: "string";
2783
+ };
2784
+ };
2785
+ readonly status: {
2786
+ readonly type: "string";
2787
+ };
2788
+ readonly detail: {
2789
+ readonly type: "string";
2790
+ };
2791
+ readonly scimType: {
2792
+ readonly type: "string";
2793
+ };
2794
+ };
2795
+ };
2796
+ };
2797
+ };
2798
+ };
2799
+ "403": {
2800
+ description: string;
2801
+ content: {
2802
+ "application/json": {
2803
+ schema: {
2804
+ readonly type: "object";
2805
+ readonly properties: {
2806
+ readonly schemas: {
2807
+ readonly type: "array";
2808
+ readonly items: {
2809
+ readonly type: "string";
2810
+ };
2811
+ };
2812
+ readonly status: {
2813
+ readonly type: "string";
2814
+ };
2815
+ readonly detail: {
2816
+ readonly type: "string";
2817
+ };
2818
+ readonly scimType: {
2819
+ readonly type: "string";
2820
+ };
2821
+ };
2822
+ };
2823
+ };
2824
+ };
2825
+ };
2826
+ "404": {
2827
+ description: string;
2828
+ content: {
2829
+ "application/json": {
2830
+ schema: {
2831
+ readonly type: "object";
2832
+ readonly properties: {
2833
+ readonly schemas: {
2834
+ readonly type: "array";
2835
+ readonly items: {
2836
+ readonly type: "string";
2837
+ };
2838
+ };
2839
+ readonly status: {
2840
+ readonly type: "string";
2841
+ };
2842
+ readonly detail: {
2843
+ readonly type: "string";
2844
+ };
2845
+ readonly scimType: {
2846
+ readonly type: "string";
2847
+ };
2848
+ };
2849
+ };
2850
+ };
2851
+ };
2852
+ };
2853
+ "429": {
2854
+ description: string;
2855
+ content: {
2856
+ "application/json": {
2857
+ schema: {
2858
+ readonly type: "object";
2859
+ readonly properties: {
2860
+ readonly schemas: {
2861
+ readonly type: "array";
2862
+ readonly items: {
2863
+ readonly type: "string";
2864
+ };
2865
+ };
2866
+ readonly status: {
2867
+ readonly type: "string";
2868
+ };
2869
+ readonly detail: {
2870
+ readonly type: "string";
2871
+ };
2872
+ readonly scimType: {
2873
+ readonly type: "string";
2874
+ };
2875
+ };
2876
+ };
2877
+ };
2878
+ };
2879
+ };
2880
+ "500": {
2881
+ description: string;
2882
+ content: {
2883
+ "application/json": {
2884
+ schema: {
2885
+ readonly type: "object";
2886
+ readonly properties: {
2887
+ readonly schemas: {
2888
+ readonly type: "array";
2889
+ readonly items: {
2890
+ readonly type: "string";
2891
+ };
2892
+ };
2893
+ readonly status: {
2894
+ readonly type: "string";
2895
+ };
2896
+ readonly detail: {
2897
+ readonly type: "string";
2898
+ };
2899
+ readonly scimType: {
2900
+ readonly type: "string";
2901
+ };
2902
+ };
2903
+ };
2904
+ };
2905
+ };
2906
+ };
2907
+ "200": {
2908
+ description: string;
2909
+ content: {
2910
+ "application/json": {
2911
+ schema: {
2912
+ readonly type: "object";
2913
+ readonly properties: {
2914
+ readonly id: {
2915
+ readonly type: "string";
2916
+ };
2917
+ readonly externalId: {
2918
+ readonly type: "string";
2919
+ };
2920
+ readonly displayName: {
2921
+ readonly type: "string";
2922
+ };
2923
+ readonly members: {
2924
+ readonly type: "array";
2925
+ readonly items: {
2926
+ readonly type: "object";
2927
+ readonly properties: {
2928
+ readonly value: {
2929
+ readonly type: "string";
2930
+ };
2931
+ readonly $ref: {
2932
+ readonly type: "string";
2933
+ };
2934
+ readonly display: {
2935
+ readonly type: "string";
2936
+ };
2937
+ readonly type: {
2938
+ readonly type: "string";
2939
+ };
2940
+ };
2941
+ };
2942
+ };
2943
+ readonly meta: {
2944
+ readonly type: "object";
2945
+ readonly properties: {
2946
+ readonly resourceType: {
2947
+ readonly type: "string";
2948
+ };
2949
+ readonly created: {
2950
+ readonly type: "string";
2951
+ readonly format: "date-time";
2952
+ };
2953
+ readonly lastModified: {
2954
+ readonly type: "string";
2955
+ readonly format: "date-time";
2956
+ };
2957
+ readonly location: {
2958
+ readonly type: "string";
2959
+ };
2960
+ };
2961
+ };
2962
+ readonly schemas: {
2963
+ readonly type: "array";
2964
+ readonly items: {
2965
+ readonly type: "string";
2966
+ };
2967
+ };
2968
+ };
2969
+ };
2970
+ };
2971
+ };
2972
+ };
2973
+ };
2974
+ };
2975
+ scope: "server";
2976
+ };
2977
+ use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
2978
+ authSCIMToken: string;
2979
+ scimProvider: Omit<SCIMProvider, "id">;
2980
+ }>)[];
2981
+ }, {
2982
+ displayName: string;
2983
+ members: SCIMGroupMemberReference[];
2984
+ meta: {
2985
+ resourceType: string;
2986
+ created: Date;
2987
+ lastModified: Date;
2988
+ location: string;
2989
+ };
2990
+ schemas: string[];
2991
+ externalId?: string | undefined;
2992
+ id: string;
2993
+ }>;
2994
+ createSCIMGroup: better_call0.StrictEndpoint<"/scim/v2/Groups", {
2995
+ method: "POST";
2996
+ body: zod.ZodObject<{
2997
+ externalId: zod.ZodOptional<zod.ZodString>;
2998
+ displayName: zod.ZodString;
2999
+ members: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
3000
+ value: zod.ZodOptional<zod.ZodString>;
3001
+ $ref: zod.ZodOptional<zod.ZodString>;
3002
+ display: zod.ZodOptional<zod.ZodString>;
3003
+ type: zod.ZodOptional<zod.ZodString>;
3004
+ }, zod_v4_core0.$strip>>>;
3005
+ }, zod_v4_core0.$strip>;
3006
+ metadata: {
3007
+ allowedMediaTypes: string[];
3008
+ openapi: {
3009
+ summary: string;
3010
+ description: string;
3011
+ responses: {
3012
+ "400": {
3013
+ description: string;
3014
+ content: {
3015
+ "application/json": {
3016
+ schema: {
3017
+ readonly type: "object";
3018
+ readonly properties: {
3019
+ readonly schemas: {
3020
+ readonly type: "array";
3021
+ readonly items: {
3022
+ readonly type: "string";
3023
+ };
3024
+ };
3025
+ readonly status: {
3026
+ readonly type: "string";
3027
+ };
3028
+ readonly detail: {
3029
+ readonly type: "string";
3030
+ };
3031
+ readonly scimType: {
3032
+ readonly type: "string";
3033
+ };
3034
+ };
3035
+ };
3036
+ };
3037
+ };
3038
+ };
3039
+ "401": {
3040
+ description: string;
3041
+ content: {
3042
+ "application/json": {
3043
+ schema: {
3044
+ readonly type: "object";
3045
+ readonly properties: {
3046
+ readonly schemas: {
3047
+ readonly type: "array";
3048
+ readonly items: {
3049
+ readonly type: "string";
3050
+ };
3051
+ };
3052
+ readonly status: {
3053
+ readonly type: "string";
3054
+ };
3055
+ readonly detail: {
3056
+ readonly type: "string";
3057
+ };
3058
+ readonly scimType: {
3059
+ readonly type: "string";
3060
+ };
3061
+ };
3062
+ };
3063
+ };
3064
+ };
3065
+ };
3066
+ "403": {
3067
+ description: string;
3068
+ content: {
3069
+ "application/json": {
3070
+ schema: {
3071
+ readonly type: "object";
3072
+ readonly properties: {
3073
+ readonly schemas: {
3074
+ readonly type: "array";
3075
+ readonly items: {
3076
+ readonly type: "string";
3077
+ };
3078
+ };
3079
+ readonly status: {
3080
+ readonly type: "string";
3081
+ };
3082
+ readonly detail: {
3083
+ readonly type: "string";
3084
+ };
3085
+ readonly scimType: {
3086
+ readonly type: "string";
3087
+ };
3088
+ };
3089
+ };
3090
+ };
3091
+ };
3092
+ };
3093
+ "404": {
3094
+ description: string;
3095
+ content: {
3096
+ "application/json": {
3097
+ schema: {
3098
+ readonly type: "object";
3099
+ readonly properties: {
3100
+ readonly schemas: {
3101
+ readonly type: "array";
3102
+ readonly items: {
3103
+ readonly type: "string";
3104
+ };
3105
+ };
3106
+ readonly status: {
3107
+ readonly type: "string";
3108
+ };
3109
+ readonly detail: {
3110
+ readonly type: "string";
3111
+ };
3112
+ readonly scimType: {
3113
+ readonly type: "string";
3114
+ };
3115
+ };
3116
+ };
3117
+ };
3118
+ };
3119
+ };
3120
+ "429": {
3121
+ description: string;
3122
+ content: {
3123
+ "application/json": {
3124
+ schema: {
3125
+ readonly type: "object";
3126
+ readonly properties: {
3127
+ readonly schemas: {
3128
+ readonly type: "array";
3129
+ readonly items: {
3130
+ readonly type: "string";
3131
+ };
3132
+ };
3133
+ readonly status: {
3134
+ readonly type: "string";
3135
+ };
3136
+ readonly detail: {
3137
+ readonly type: "string";
3138
+ };
3139
+ readonly scimType: {
3140
+ readonly type: "string";
3141
+ };
3142
+ };
3143
+ };
3144
+ };
3145
+ };
3146
+ };
3147
+ "500": {
3148
+ description: string;
3149
+ content: {
3150
+ "application/json": {
3151
+ schema: {
3152
+ readonly type: "object";
3153
+ readonly properties: {
3154
+ readonly schemas: {
3155
+ readonly type: "array";
3156
+ readonly items: {
3157
+ readonly type: "string";
3158
+ };
3159
+ };
3160
+ readonly status: {
3161
+ readonly type: "string";
3162
+ };
3163
+ readonly detail: {
3164
+ readonly type: "string";
3165
+ };
3166
+ readonly scimType: {
3167
+ readonly type: "string";
3168
+ };
3169
+ };
3170
+ };
3171
+ };
3172
+ };
3173
+ };
3174
+ "201": {
3175
+ description: string;
3176
+ content: {
3177
+ "application/json": {
3178
+ schema: {
3179
+ readonly type: "object";
3180
+ readonly properties: {
3181
+ readonly id: {
3182
+ readonly type: "string";
3183
+ };
3184
+ readonly externalId: {
3185
+ readonly type: "string";
3186
+ };
3187
+ readonly displayName: {
3188
+ readonly type: "string";
3189
+ };
3190
+ readonly members: {
3191
+ readonly type: "array";
3192
+ readonly items: {
3193
+ readonly type: "object";
3194
+ readonly properties: {
3195
+ readonly value: {
3196
+ readonly type: "string";
3197
+ };
3198
+ readonly $ref: {
3199
+ readonly type: "string";
3200
+ };
3201
+ readonly display: {
3202
+ readonly type: "string";
3203
+ };
3204
+ readonly type: {
3205
+ readonly type: "string";
3206
+ };
3207
+ };
3208
+ };
3209
+ };
3210
+ readonly meta: {
3211
+ readonly type: "object";
3212
+ readonly properties: {
3213
+ readonly resourceType: {
3214
+ readonly type: "string";
3215
+ };
3216
+ readonly created: {
3217
+ readonly type: "string";
3218
+ readonly format: "date-time";
3219
+ };
3220
+ readonly lastModified: {
3221
+ readonly type: "string";
3222
+ readonly format: "date-time";
3223
+ };
3224
+ readonly location: {
3225
+ readonly type: "string";
3226
+ };
3227
+ };
3228
+ };
3229
+ readonly schemas: {
3230
+ readonly type: "array";
3231
+ readonly items: {
3232
+ readonly type: "string";
3233
+ };
3234
+ };
3235
+ };
3236
+ };
3237
+ };
3238
+ };
3239
+ };
3240
+ };
3241
+ };
3242
+ scope: "server";
3243
+ };
3244
+ use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
3245
+ authSCIMToken: string;
3246
+ scimProvider: Omit<SCIMProvider, "id">;
3247
+ }>)[];
3248
+ }, {
3249
+ displayName: string;
3250
+ members: SCIMGroupMemberReference[];
3251
+ meta: {
3252
+ resourceType: string;
3253
+ created: Date;
3254
+ lastModified: Date;
3255
+ location: string;
3256
+ };
3257
+ schemas: string[];
3258
+ externalId?: string | undefined;
3259
+ id: string;
3260
+ }>;
3261
+ patchSCIMGroup: better_call0.StrictEndpoint<"/scim/v2/Groups/:groupId", {
3262
+ method: "PATCH";
3263
+ body: zod.ZodObject<{
3264
+ schemas: zod.ZodArray<zod.ZodString>;
3265
+ Operations: zod.ZodArray<zod.ZodObject<{
3266
+ op: zod.ZodPipe<zod.ZodDefault<zod.ZodString>, zod.ZodEnum<{
3267
+ replace: "replace";
3268
+ add: "add";
3269
+ remove: "remove";
3270
+ }>>;
3271
+ path: zod.ZodOptional<zod.ZodString>;
3272
+ value: zod.ZodOptional<zod.ZodUnknown>;
3273
+ }, zod_v4_core0.$strip>>;
3274
+ }, zod_v4_core0.$strip>;
3275
+ metadata: {
3276
+ allowedMediaTypes: string[];
3277
+ openapi: {
3278
+ summary: string;
3279
+ description: string;
3280
+ responses: {
3281
+ "400": {
3282
+ description: string;
3283
+ content: {
3284
+ "application/json": {
3285
+ schema: {
3286
+ readonly type: "object";
3287
+ readonly properties: {
3288
+ readonly schemas: {
3289
+ readonly type: "array";
3290
+ readonly items: {
3291
+ readonly type: "string";
3292
+ };
3293
+ };
3294
+ readonly status: {
3295
+ readonly type: "string";
3296
+ };
3297
+ readonly detail: {
3298
+ readonly type: "string";
3299
+ };
3300
+ readonly scimType: {
3301
+ readonly type: "string";
3302
+ };
3303
+ };
3304
+ };
3305
+ };
3306
+ };
3307
+ };
3308
+ "401": {
3309
+ description: string;
3310
+ content: {
3311
+ "application/json": {
3312
+ schema: {
3313
+ readonly type: "object";
3314
+ readonly properties: {
3315
+ readonly schemas: {
3316
+ readonly type: "array";
3317
+ readonly items: {
3318
+ readonly type: "string";
3319
+ };
3320
+ };
3321
+ readonly status: {
3322
+ readonly type: "string";
3323
+ };
3324
+ readonly detail: {
3325
+ readonly type: "string";
3326
+ };
3327
+ readonly scimType: {
3328
+ readonly type: "string";
3329
+ };
3330
+ };
3331
+ };
3332
+ };
3333
+ };
3334
+ };
3335
+ "403": {
3336
+ description: string;
3337
+ content: {
3338
+ "application/json": {
3339
+ schema: {
3340
+ readonly type: "object";
3341
+ readonly properties: {
3342
+ readonly schemas: {
3343
+ readonly type: "array";
3344
+ readonly items: {
3345
+ readonly type: "string";
3346
+ };
3347
+ };
3348
+ readonly status: {
3349
+ readonly type: "string";
3350
+ };
3351
+ readonly detail: {
3352
+ readonly type: "string";
3353
+ };
3354
+ readonly scimType: {
3355
+ readonly type: "string";
3356
+ };
3357
+ };
3358
+ };
3359
+ };
3360
+ };
3361
+ };
3362
+ "404": {
3363
+ description: string;
3364
+ content: {
3365
+ "application/json": {
3366
+ schema: {
3367
+ readonly type: "object";
3368
+ readonly properties: {
3369
+ readonly schemas: {
3370
+ readonly type: "array";
3371
+ readonly items: {
3372
+ readonly type: "string";
3373
+ };
3374
+ };
3375
+ readonly status: {
3376
+ readonly type: "string";
3377
+ };
3378
+ readonly detail: {
3379
+ readonly type: "string";
3380
+ };
3381
+ readonly scimType: {
3382
+ readonly type: "string";
3383
+ };
3384
+ };
3385
+ };
3386
+ };
3387
+ };
3388
+ };
3389
+ "429": {
3390
+ description: string;
3391
+ content: {
3392
+ "application/json": {
3393
+ schema: {
3394
+ readonly type: "object";
3395
+ readonly properties: {
3396
+ readonly schemas: {
3397
+ readonly type: "array";
3398
+ readonly items: {
3399
+ readonly type: "string";
3400
+ };
3401
+ };
3402
+ readonly status: {
3403
+ readonly type: "string";
3404
+ };
3405
+ readonly detail: {
3406
+ readonly type: "string";
3407
+ };
3408
+ readonly scimType: {
3409
+ readonly type: "string";
3410
+ };
3411
+ };
3412
+ };
3413
+ };
3414
+ };
3415
+ };
3416
+ "500": {
3417
+ description: string;
3418
+ content: {
3419
+ "application/json": {
3420
+ schema: {
3421
+ readonly type: "object";
3422
+ readonly properties: {
3423
+ readonly schemas: {
3424
+ readonly type: "array";
3425
+ readonly items: {
3426
+ readonly type: "string";
3427
+ };
3428
+ };
3429
+ readonly status: {
3430
+ readonly type: "string";
3431
+ };
3432
+ readonly detail: {
3433
+ readonly type: "string";
3434
+ };
3435
+ readonly scimType: {
3436
+ readonly type: "string";
3437
+ };
3438
+ };
3439
+ };
3440
+ };
3441
+ };
3442
+ };
3443
+ "200": {
3444
+ description: string;
3445
+ content: {
3446
+ "application/json": {
3447
+ schema: {
3448
+ readonly type: "object";
3449
+ readonly properties: {
3450
+ readonly id: {
3451
+ readonly type: "string";
3452
+ };
3453
+ readonly externalId: {
3454
+ readonly type: "string";
3455
+ };
3456
+ readonly displayName: {
3457
+ readonly type: "string";
3458
+ };
3459
+ readonly members: {
3460
+ readonly type: "array";
3461
+ readonly items: {
3462
+ readonly type: "object";
3463
+ readonly properties: {
3464
+ readonly value: {
3465
+ readonly type: "string";
3466
+ };
3467
+ readonly $ref: {
3468
+ readonly type: "string";
3469
+ };
3470
+ readonly display: {
3471
+ readonly type: "string";
3472
+ };
3473
+ readonly type: {
3474
+ readonly type: "string";
3475
+ };
3476
+ };
3477
+ };
3478
+ };
3479
+ readonly meta: {
3480
+ readonly type: "object";
3481
+ readonly properties: {
3482
+ readonly resourceType: {
3483
+ readonly type: "string";
3484
+ };
3485
+ readonly created: {
3486
+ readonly type: "string";
3487
+ readonly format: "date-time";
3488
+ };
3489
+ readonly lastModified: {
3490
+ readonly type: "string";
3491
+ readonly format: "date-time";
3492
+ };
3493
+ readonly location: {
3494
+ readonly type: "string";
3495
+ };
3496
+ };
3497
+ };
3498
+ readonly schemas: {
3499
+ readonly type: "array";
3500
+ readonly items: {
3501
+ readonly type: "string";
3502
+ };
3503
+ };
3504
+ };
3505
+ };
3506
+ };
3507
+ };
3508
+ };
3509
+ };
3510
+ };
3511
+ scope: "server";
3512
+ };
3513
+ use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
3514
+ authSCIMToken: string;
3515
+ scimProvider: Omit<SCIMProvider, "id">;
3516
+ }>)[];
3517
+ }, {
3518
+ displayName: string;
3519
+ members: SCIMGroupMemberReference[];
3520
+ meta: {
3521
+ resourceType: string;
3522
+ created: Date;
3523
+ lastModified: Date;
3524
+ location: string;
3525
+ };
3526
+ schemas: string[];
3527
+ externalId?: string | undefined;
3528
+ id: string;
3529
+ }>;
3530
+ deleteSCIMGroup: better_call0.StrictEndpoint<"/scim/v2/Groups/:groupId", {
3531
+ method: "DELETE";
3532
+ metadata: {
3533
+ allowedMediaTypes: string[];
3534
+ openapi: {
3535
+ summary: string;
3536
+ description: string;
3537
+ responses: {
3538
+ "400": {
3539
+ description: string;
3540
+ content: {
3541
+ "application/json": {
3542
+ schema: {
3543
+ readonly type: "object";
3544
+ readonly properties: {
3545
+ readonly schemas: {
3546
+ readonly type: "array";
3547
+ readonly items: {
3548
+ readonly type: "string";
3549
+ };
3550
+ };
3551
+ readonly status: {
3552
+ readonly type: "string";
3553
+ };
3554
+ readonly detail: {
3555
+ readonly type: "string";
3556
+ };
3557
+ readonly scimType: {
3558
+ readonly type: "string";
3559
+ };
3560
+ };
3561
+ };
3562
+ };
3563
+ };
3564
+ };
3565
+ "401": {
3566
+ description: string;
3567
+ content: {
3568
+ "application/json": {
3569
+ schema: {
3570
+ readonly type: "object";
3571
+ readonly properties: {
3572
+ readonly schemas: {
3573
+ readonly type: "array";
3574
+ readonly items: {
3575
+ readonly type: "string";
3576
+ };
3577
+ };
3578
+ readonly status: {
3579
+ readonly type: "string";
3580
+ };
3581
+ readonly detail: {
3582
+ readonly type: "string";
3583
+ };
3584
+ readonly scimType: {
3585
+ readonly type: "string";
3586
+ };
3587
+ };
3588
+ };
3589
+ };
3590
+ };
3591
+ };
3592
+ "403": {
3593
+ description: string;
3594
+ content: {
3595
+ "application/json": {
3596
+ schema: {
3597
+ readonly type: "object";
3598
+ readonly properties: {
3599
+ readonly schemas: {
3600
+ readonly type: "array";
3601
+ readonly items: {
3602
+ readonly type: "string";
3603
+ };
3604
+ };
3605
+ readonly status: {
3606
+ readonly type: "string";
3607
+ };
3608
+ readonly detail: {
3609
+ readonly type: "string";
3610
+ };
3611
+ readonly scimType: {
3612
+ readonly type: "string";
3613
+ };
3614
+ };
3615
+ };
3616
+ };
3617
+ };
3618
+ };
3619
+ "404": {
3620
+ description: string;
3621
+ content: {
3622
+ "application/json": {
3623
+ schema: {
3624
+ readonly type: "object";
3625
+ readonly properties: {
3626
+ readonly schemas: {
3627
+ readonly type: "array";
3628
+ readonly items: {
3629
+ readonly type: "string";
3630
+ };
3631
+ };
3632
+ readonly status: {
3633
+ readonly type: "string";
3634
+ };
3635
+ readonly detail: {
3636
+ readonly type: "string";
3637
+ };
3638
+ readonly scimType: {
3639
+ readonly type: "string";
3640
+ };
3641
+ };
3642
+ };
3643
+ };
3644
+ };
3645
+ };
3646
+ "429": {
3647
+ description: string;
3648
+ content: {
3649
+ "application/json": {
3650
+ schema: {
3651
+ readonly type: "object";
3652
+ readonly properties: {
3653
+ readonly schemas: {
3654
+ readonly type: "array";
3655
+ readonly items: {
3656
+ readonly type: "string";
3657
+ };
3658
+ };
3659
+ readonly status: {
3660
+ readonly type: "string";
3661
+ };
3662
+ readonly detail: {
3663
+ readonly type: "string";
3664
+ };
3665
+ readonly scimType: {
3666
+ readonly type: "string";
3667
+ };
3668
+ };
3669
+ };
3670
+ };
3671
+ };
3672
+ };
3673
+ "500": {
3674
+ description: string;
3675
+ content: {
3676
+ "application/json": {
3677
+ schema: {
3678
+ readonly type: "object";
3679
+ readonly properties: {
3680
+ readonly schemas: {
3681
+ readonly type: "array";
3682
+ readonly items: {
3683
+ readonly type: "string";
3684
+ };
3685
+ };
3686
+ readonly status: {
3687
+ readonly type: "string";
3688
+ };
3689
+ readonly detail: {
3690
+ readonly type: "string";
3691
+ };
3692
+ readonly scimType: {
3693
+ readonly type: "string";
3694
+ };
3695
+ };
3696
+ };
3697
+ };
3698
+ };
3699
+ };
3700
+ "204": {
3701
+ description: string;
3702
+ };
3703
+ };
3704
+ };
3705
+ scope: "server";
3706
+ };
3707
+ use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
3708
+ authSCIMToken: string;
3709
+ scimProvider: Omit<SCIMProvider, "id">;
3710
+ }>)[];
3711
+ }, void>;
3712
+ updateSCIMGroup: better_call0.StrictEndpoint<"/scim/v2/Groups/:groupId", {
3713
+ method: "PUT";
3714
+ body: zod.ZodObject<{
3715
+ externalId: zod.ZodOptional<zod.ZodString>;
3716
+ displayName: zod.ZodString;
3717
+ members: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
3718
+ value: zod.ZodOptional<zod.ZodString>;
3719
+ $ref: zod.ZodOptional<zod.ZodString>;
3720
+ display: zod.ZodOptional<zod.ZodString>;
3721
+ type: zod.ZodOptional<zod.ZodString>;
3722
+ }, zod_v4_core0.$strip>>>;
3723
+ }, zod_v4_core0.$strip>;
3724
+ metadata: {
3725
+ allowedMediaTypes: string[];
3726
+ openapi: {
3727
+ summary: string;
3728
+ description: string;
3729
+ responses: {
3730
+ "400": {
3731
+ description: string;
3732
+ content: {
3733
+ "application/json": {
3734
+ schema: {
3735
+ readonly type: "object";
3736
+ readonly properties: {
3737
+ readonly schemas: {
3738
+ readonly type: "array";
3739
+ readonly items: {
3740
+ readonly type: "string";
3741
+ };
3742
+ };
3743
+ readonly status: {
3744
+ readonly type: "string";
3745
+ };
3746
+ readonly detail: {
3747
+ readonly type: "string";
3748
+ };
3749
+ readonly scimType: {
3750
+ readonly type: "string";
3751
+ };
3752
+ };
3753
+ };
3754
+ };
3755
+ };
3756
+ };
3757
+ "401": {
3758
+ description: string;
3759
+ content: {
3760
+ "application/json": {
3761
+ schema: {
3762
+ readonly type: "object";
3763
+ readonly properties: {
3764
+ readonly schemas: {
3765
+ readonly type: "array";
3766
+ readonly items: {
3767
+ readonly type: "string";
3768
+ };
3769
+ };
3770
+ readonly status: {
3771
+ readonly type: "string";
3772
+ };
3773
+ readonly detail: {
3774
+ readonly type: "string";
3775
+ };
3776
+ readonly scimType: {
3777
+ readonly type: "string";
3778
+ };
3779
+ };
3780
+ };
3781
+ };
3782
+ };
3783
+ };
3784
+ "403": {
3785
+ description: string;
3786
+ content: {
3787
+ "application/json": {
3788
+ schema: {
3789
+ readonly type: "object";
3790
+ readonly properties: {
3791
+ readonly schemas: {
3792
+ readonly type: "array";
3793
+ readonly items: {
3794
+ readonly type: "string";
3795
+ };
3796
+ };
3797
+ readonly status: {
3798
+ readonly type: "string";
3799
+ };
3800
+ readonly detail: {
3801
+ readonly type: "string";
3802
+ };
3803
+ readonly scimType: {
3804
+ readonly type: "string";
3805
+ };
3806
+ };
3807
+ };
3808
+ };
3809
+ };
3810
+ };
3811
+ "404": {
3812
+ description: string;
3813
+ content: {
3814
+ "application/json": {
3815
+ schema: {
3816
+ readonly type: "object";
3817
+ readonly properties: {
3818
+ readonly schemas: {
3819
+ readonly type: "array";
3820
+ readonly items: {
3821
+ readonly type: "string";
3822
+ };
3823
+ };
3824
+ readonly status: {
3825
+ readonly type: "string";
3826
+ };
3827
+ readonly detail: {
3828
+ readonly type: "string";
3829
+ };
3830
+ readonly scimType: {
3831
+ readonly type: "string";
3832
+ };
3833
+ };
3834
+ };
3835
+ };
3836
+ };
3837
+ };
3838
+ "429": {
3839
+ description: string;
3840
+ content: {
3841
+ "application/json": {
3842
+ schema: {
3843
+ readonly type: "object";
3844
+ readonly properties: {
3845
+ readonly schemas: {
3846
+ readonly type: "array";
3847
+ readonly items: {
3848
+ readonly type: "string";
3849
+ };
3850
+ };
3851
+ readonly status: {
3852
+ readonly type: "string";
3853
+ };
3854
+ readonly detail: {
3855
+ readonly type: "string";
3856
+ };
3857
+ readonly scimType: {
3858
+ readonly type: "string";
3859
+ };
3860
+ };
3861
+ };
3862
+ };
3863
+ };
3864
+ };
3865
+ "500": {
3866
+ description: string;
3867
+ content: {
3868
+ "application/json": {
3869
+ schema: {
3870
+ readonly type: "object";
3871
+ readonly properties: {
3872
+ readonly schemas: {
3873
+ readonly type: "array";
3874
+ readonly items: {
3875
+ readonly type: "string";
3876
+ };
3877
+ };
3878
+ readonly status: {
3879
+ readonly type: "string";
3880
+ };
3881
+ readonly detail: {
3882
+ readonly type: "string";
3883
+ };
3884
+ readonly scimType: {
3885
+ readonly type: "string";
3886
+ };
3887
+ };
3888
+ };
3889
+ };
3890
+ };
3891
+ };
3892
+ "200": {
3893
+ description: string;
3894
+ content: {
3895
+ "application/json": {
3896
+ schema: {
3897
+ readonly type: "object";
3898
+ readonly properties: {
3899
+ readonly id: {
3900
+ readonly type: "string";
3901
+ };
3902
+ readonly externalId: {
3903
+ readonly type: "string";
3904
+ };
3905
+ readonly displayName: {
3906
+ readonly type: "string";
3907
+ };
3908
+ readonly members: {
2285
3909
  readonly type: "array";
2286
3910
  readonly items: {
2287
3911
  readonly type: "object";
@@ -2289,12 +3913,37 @@ declare const scim: (options?: SCIMOptions) => {
2289
3913
  readonly value: {
2290
3914
  readonly type: "string";
2291
3915
  };
2292
- readonly primary: {
2293
- readonly type: "boolean";
3916
+ readonly $ref: {
3917
+ readonly type: "string";
3918
+ };
3919
+ readonly display: {
3920
+ readonly type: "string";
3921
+ };
3922
+ readonly type: {
3923
+ readonly type: "string";
2294
3924
  };
2295
3925
  };
2296
3926
  };
2297
3927
  };
3928
+ readonly meta: {
3929
+ readonly type: "object";
3930
+ readonly properties: {
3931
+ readonly resourceType: {
3932
+ readonly type: "string";
3933
+ };
3934
+ readonly created: {
3935
+ readonly type: "string";
3936
+ readonly format: "date-time";
3937
+ };
3938
+ readonly lastModified: {
3939
+ readonly type: "string";
3940
+ readonly format: "date-time";
3941
+ };
3942
+ readonly location: {
3943
+ readonly type: "string";
3944
+ };
3945
+ };
3946
+ };
2298
3947
  readonly schemas: {
2299
3948
  readonly type: "array";
2300
3949
  readonly items: {
@@ -2315,30 +3964,24 @@ declare const scim: (options?: SCIMOptions) => {
2315
3964
  scimProvider: Omit<SCIMProvider, "id">;
2316
3965
  }>)[];
2317
3966
  }, {
2318
- id: string;
2319
- externalId: string | undefined;
3967
+ displayName: string;
3968
+ members: SCIMGroupMemberReference[];
2320
3969
  meta: {
2321
3970
  resourceType: string;
2322
3971
  created: Date;
2323
3972
  lastModified: Date;
2324
3973
  location: string;
2325
3974
  };
2326
- userName: string;
2327
- name: {
2328
- formatted: string;
2329
- };
2330
- displayName: string;
2331
- active: boolean;
2332
- emails: {
2333
- primary: boolean;
2334
- value: string;
2335
- }[];
2336
3975
  schemas: string[];
3976
+ externalId?: string | undefined;
3977
+ id: string;
2337
3978
  }>;
2338
- listSCIMUsers: better_call0.StrictEndpoint<"/scim/v2/Users", {
3979
+ listSCIMGroups: better_call0.StrictEndpoint<"/scim/v2/Groups", {
2339
3980
  method: "GET";
2340
3981
  query: zod.ZodOptional<zod.ZodObject<{
2341
3982
  filter: zod.ZodOptional<zod.ZodString>;
3983
+ startIndex: zod.ZodOptional<zod.ZodCoercedNumber<unknown>>;
3984
+ count: zod.ZodOptional<zod.ZodCoercedNumber<unknown>>;
2342
3985
  }, zod_v4_core0.$strip>>;
2343
3986
  metadata: {
2344
3987
  allowedMediaTypes: string[];
@@ -2532,6 +4175,32 @@ declare const scim: (options?: SCIMOptions) => {
2532
4175
  readonly id: {
2533
4176
  readonly type: "string";
2534
4177
  };
4178
+ readonly externalId: {
4179
+ readonly type: "string";
4180
+ };
4181
+ readonly displayName: {
4182
+ readonly type: "string";
4183
+ };
4184
+ readonly members: {
4185
+ readonly type: "array";
4186
+ readonly items: {
4187
+ readonly type: "object";
4188
+ readonly properties: {
4189
+ readonly value: {
4190
+ readonly type: "string";
4191
+ };
4192
+ readonly $ref: {
4193
+ readonly type: "string";
4194
+ };
4195
+ readonly display: {
4196
+ readonly type: "string";
4197
+ };
4198
+ readonly type: {
4199
+ readonly type: "string";
4200
+ };
4201
+ };
4202
+ };
4203
+ };
2535
4204
  readonly meta: {
2536
4205
  readonly type: "object";
2537
4206
  readonly properties: {
@@ -2551,43 +4220,6 @@ declare const scim: (options?: SCIMOptions) => {
2551
4220
  };
2552
4221
  };
2553
4222
  };
2554
- readonly userName: {
2555
- readonly type: "string";
2556
- };
2557
- readonly name: {
2558
- readonly type: "object";
2559
- readonly properties: {
2560
- readonly formatted: {
2561
- readonly type: "string";
2562
- };
2563
- readonly givenName: {
2564
- readonly type: "string";
2565
- };
2566
- readonly familyName: {
2567
- readonly type: "string";
2568
- };
2569
- };
2570
- };
2571
- readonly displayName: {
2572
- readonly type: "string";
2573
- };
2574
- readonly active: {
2575
- readonly type: "boolean";
2576
- };
2577
- readonly emails: {
2578
- readonly type: "array";
2579
- readonly items: {
2580
- readonly type: "object";
2581
- readonly properties: {
2582
- readonly value: {
2583
- readonly type: "string";
2584
- };
2585
- readonly primary: {
2586
- readonly type: "boolean";
2587
- };
2588
- };
2589
- };
2590
- };
2591
4223
  readonly schemas: {
2592
4224
  readonly type: "array";
2593
4225
  readonly items: {
@@ -2611,37 +4243,23 @@ declare const scim: (options?: SCIMOptions) => {
2611
4243
  scimProvider: Omit<SCIMProvider, "id">;
2612
4244
  }>)[];
2613
4245
  }, {
2614
- readonly schemas: readonly ["urn:ietf:params:scim:api:messages:2.0:ListResponse"];
2615
- readonly totalResults: 0;
2616
- readonly startIndex: 1;
2617
- readonly itemsPerPage: 0;
2618
- readonly Resources: readonly [];
2619
- } | {
2620
- schemas: string[];
2621
- totalResults: number;
2622
- startIndex: number;
2623
- itemsPerPage: number;
2624
4246
  Resources: {
2625
- id: string;
2626
- externalId: string | undefined;
4247
+ displayName: string;
4248
+ members: SCIMGroupMemberReference[];
2627
4249
  meta: {
2628
4250
  resourceType: string;
2629
4251
  created: Date;
2630
4252
  lastModified: Date;
2631
4253
  location: string;
2632
4254
  };
2633
- userName: string;
2634
- name: {
2635
- formatted: string;
2636
- };
2637
- displayName: string;
2638
- active: boolean;
2639
- emails: {
2640
- primary: boolean;
2641
- value: string;
2642
- }[];
2643
4255
  schemas: string[];
4256
+ externalId?: string | undefined;
4257
+ id: string;
2644
4258
  }[];
4259
+ schemas: string[];
4260
+ totalResults: number;
4261
+ startIndex: number;
4262
+ itemsPerPage: number;
2645
4263
  }>;
2646
4264
  getSCIMServiceProviderConfig: better_call0.StrictEndpoint<"/scim/v2/ServiceProviderConfig", {
2647
4265
  method: "GET";
@@ -4177,10 +5795,6 @@ declare const scim: (options?: SCIMOptions) => {
4177
5795
  schema: {
4178
5796
  scimProvider: {
4179
5797
  fields: {
4180
- userId?: {
4181
- type: "string";
4182
- required: false;
4183
- } | undefined;
4184
5798
  providerId: {
4185
5799
  type: "string";
4186
5800
  required: true;
@@ -4195,6 +5809,159 @@ declare const scim: (options?: SCIMOptions) => {
4195
5809
  type: "string";
4196
5810
  required: false;
4197
5811
  };
5812
+ userId: {
5813
+ type: "string";
5814
+ required: false;
5815
+ };
5816
+ };
5817
+ };
5818
+ scimGroup: {
5819
+ fields: {
5820
+ providerId: {
5821
+ type: "string";
5822
+ required: true;
5823
+ };
5824
+ organizationId: {
5825
+ type: "string";
5826
+ required: true;
5827
+ };
5828
+ scimGroupId: {
5829
+ type: "string";
5830
+ required: true;
5831
+ unique: true;
5832
+ };
5833
+ externalId: {
5834
+ type: "string";
5835
+ required: false;
5836
+ };
5837
+ externalIdKey: {
5838
+ type: "string";
5839
+ required: false;
5840
+ unique: true;
5841
+ returned: false;
5842
+ };
5843
+ displayName: {
5844
+ type: "string";
5845
+ required: true;
5846
+ };
5847
+ createdAt: {
5848
+ type: "date";
5849
+ required: true;
5850
+ };
5851
+ updatedAt: {
5852
+ type: "date";
5853
+ required: false;
5854
+ };
5855
+ };
5856
+ };
5857
+ scimGroupMember: {
5858
+ fields: {
5859
+ groupId: {
5860
+ type: "string";
5861
+ required: true;
5862
+ references: {
5863
+ model: string;
5864
+ field: string;
5865
+ };
5866
+ };
5867
+ providerId: {
5868
+ type: "string";
5869
+ required: true;
5870
+ };
5871
+ organizationId: {
5872
+ type: "string";
5873
+ required: true;
5874
+ };
5875
+ userId: {
5876
+ type: "string";
5877
+ required: true;
5878
+ references: {
5879
+ model: string;
5880
+ field: string;
5881
+ };
5882
+ };
5883
+ membershipKey: {
5884
+ type: "string";
5885
+ required: true;
5886
+ unique: true;
5887
+ returned: false;
5888
+ };
5889
+ createdAt: {
5890
+ type: "date";
5891
+ required: true;
5892
+ };
5893
+ };
5894
+ };
5895
+ scimGroupRole: {
5896
+ fields: {
5897
+ groupId: {
5898
+ type: "string";
5899
+ required: true;
5900
+ references: {
5901
+ model: string;
5902
+ field: string;
5903
+ };
5904
+ };
5905
+ role: {
5906
+ type: "string";
5907
+ required: true;
5908
+ };
5909
+ roleKey: {
5910
+ type: "string";
5911
+ required: true;
5912
+ unique: true;
5913
+ returned: false;
5914
+ };
5915
+ createdAt: {
5916
+ type: "date";
5917
+ required: true;
5918
+ };
5919
+ };
5920
+ };
5921
+ scimGroupRoleGrant: {
5922
+ fields: {
5923
+ groupId: {
5924
+ type: "string";
5925
+ required: true;
5926
+ references: {
5927
+ model: string;
5928
+ field: string;
5929
+ };
5930
+ };
5931
+ providerId: {
5932
+ type: "string";
5933
+ required: true;
5934
+ };
5935
+ organizationId: {
5936
+ type: "string";
5937
+ required: true;
5938
+ };
5939
+ userId: {
5940
+ type: "string";
5941
+ required: true;
5942
+ references: {
5943
+ model: string;
5944
+ field: string;
5945
+ };
5946
+ };
5947
+ role: {
5948
+ type: "string";
5949
+ required: true;
5950
+ };
5951
+ roleGrantKey: {
5952
+ type: "string";
5953
+ required: true;
5954
+ unique: true;
5955
+ returned: false;
5956
+ };
5957
+ isRoleProjected: {
5958
+ type: "boolean";
5959
+ required: true;
5960
+ };
5961
+ createdAt: {
5962
+ type: "date";
5963
+ required: true;
5964
+ };
4198
5965
  };
4199
5966
  };
4200
5967
  };
@@ -4532,6 +6299,7 @@ interface DashTwoFactorTotpViewResponse {
4532
6299
  interface DashTwoFactorBackupCodesResponse {
4533
6300
  backupCodes: string[];
4534
6301
  }
6302
+ type DashTwoFactorStatus = "disabled" | "pending" | "enabled";
4535
6303
  //#endregion
4536
6304
  //#region src/routes/users/types.d.ts
4537
6305
  type DashUser = User & {
@@ -4549,11 +6317,12 @@ interface DashUserListResponse {
4549
6317
  }
4550
6318
  type DashUserDetailsResponse = DashUser & {
4551
6319
  account?: Account[];
4552
- session?: Session[];
6320
+ session?: Omit<Session, "token">[];
4553
6321
  lastActiveAt?: string | Date | null;
4554
6322
  city?: string | null;
4555
6323
  country?: string | null;
4556
6324
  countryCode?: string | null;
6325
+ twoFactorStatus?: DashTwoFactorStatus;
4557
6326
  };
4558
6327
  type DashUserOrganization = Pick<Organization, "id" | "name" | "slug" | "logo" | "createdAt"> & {
4559
6328
  role: string;
@@ -4887,7 +6656,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
4887
6656
  sendOrganizationInvite: import("zod").ZodOptional<import("zod").ZodBoolean>;
4888
6657
  organizationRole: import("zod").ZodOptional<import("zod").ZodString>;
4889
6658
  organizationId: import("zod").ZodOptional<import("zod").ZodString>;
4890
- }, import("zod/v4/core").$loose>;
6659
+ }, import("zod/v4/core").$catchall<import("zod").ZodUnknown>>;
4891
6660
  }, {
4892
6661
  id: string;
4893
6662
  createdAt: Date;
@@ -5033,6 +6802,15 @@ declare const dash: <O extends DashOptions>(options?: O) => {
5033
6802
  clientSecret: import("zod").ZodOptional<import("zod").ZodString>;
5034
6803
  discoveryUrl: import("zod").ZodOptional<import("zod").ZodString>;
5035
6804
  issuer: import("zod").ZodOptional<import("zod").ZodString>;
6805
+ discoveryEndpoint: import("zod").ZodOptional<import("zod").ZodString>;
6806
+ authorizationEndpoint: import("zod").ZodOptional<import("zod").ZodString>;
6807
+ tokenEndpoint: import("zod").ZodOptional<import("zod").ZodString>;
6808
+ jwksEndpoint: import("zod").ZodOptional<import("zod").ZodString>;
6809
+ userInfoEndpoint: import("zod").ZodOptional<import("zod").ZodString>;
6810
+ tokenEndpointAuthentication: import("zod").ZodOptional<import("zod").ZodEnum<{
6811
+ client_secret_post: "client_secret_post";
6812
+ client_secret_basic: "client_secret_basic";
6813
+ }>>;
5036
6814
  mapping: import("zod").ZodOptional<import("zod").ZodObject<{
5037
6815
  id: import("zod").ZodOptional<import("zod").ZodString>;
5038
6816
  email: import("zod").ZodOptional<import("zod").ZodString>;
@@ -5081,6 +6859,15 @@ declare const dash: <O extends DashOptions>(options?: O) => {
5081
6859
  clientSecret: import("zod").ZodOptional<import("zod").ZodString>;
5082
6860
  discoveryUrl: import("zod").ZodOptional<import("zod").ZodString>;
5083
6861
  issuer: import("zod").ZodOptional<import("zod").ZodString>;
6862
+ discoveryEndpoint: import("zod").ZodOptional<import("zod").ZodString>;
6863
+ authorizationEndpoint: import("zod").ZodOptional<import("zod").ZodString>;
6864
+ tokenEndpoint: import("zod").ZodOptional<import("zod").ZodString>;
6865
+ jwksEndpoint: import("zod").ZodOptional<import("zod").ZodString>;
6866
+ userInfoEndpoint: import("zod").ZodOptional<import("zod").ZodString>;
6867
+ tokenEndpointAuthentication: import("zod").ZodOptional<import("zod").ZodEnum<{
6868
+ client_secret_post: "client_secret_post";
6869
+ client_secret_basic: "client_secret_basic";
6870
+ }>>;
5084
6871
  mapping: import("zod").ZodOptional<import("zod").ZodObject<{
5085
6872
  id: import("zod").ZodOptional<import("zod").ZodString>;
5086
6873
  email: import("zod").ZodOptional<import("zod").ZodString>;
@@ -5210,11 +6997,11 @@ declare const dash: <O extends DashOptions>(options?: O) => {
5210
6997
  };
5211
6998
  }>)[];
5212
6999
  body: import("zod").ZodObject<{
5213
- name: import("zod").ZodOptional<import("zod").ZodString>;
7000
+ name: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
5214
7001
  email: import("zod").ZodOptional<import("zod").ZodEmail>;
5215
- image: import("zod").ZodOptional<import("zod").ZodString>;
7002
+ image: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
5216
7003
  emailVerified: import("zod").ZodOptional<import("zod").ZodBoolean>;
5217
- }, import("zod/v4/core").$loose>;
7004
+ }, import("zod/v4/core").$catchall<import("zod").ZodUnknown>>;
5218
7005
  }, {
5219
7006
  id: string;
5220
7007
  createdAt: Date;
@@ -5298,7 +7085,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
5298
7085
  };
5299
7086
  }>)[];
5300
7087
  body: import("zod").ZodObject<{
5301
- logo: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodURL, import("zod").ZodLiteral<"">]>>;
7088
+ logo: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodURL>, import("zod").ZodTransform<string, string>>, import("zod").ZodLiteral<"">]>>;
5302
7089
  name: import("zod").ZodOptional<import("zod").ZodString>;
5303
7090
  slug: import("zod").ZodOptional<import("zod").ZodString>;
5304
7091
  metadata: import("zod").ZodOptional<import("zod").ZodString>;
@@ -5528,6 +7315,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
5528
7315
  body: import("zod").ZodObject<{
5529
7316
  banReason: import("zod").ZodOptional<import("zod").ZodString>;
5530
7317
  banExpires: import("zod").ZodOptional<import("zod").ZodNumber>;
7318
+ deleteAllSessions: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
5531
7319
  }, import("zod/v4/core").$strip>;
5532
7320
  }, DashSuccessResponse>;
5533
7321
  dashBanManyUsers: import("better-call").StrictEndpoint<"/dash/ban-many-users", {
@@ -5540,6 +7328,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
5540
7328
  body: import("zod").ZodObject<{
5541
7329
  banReason: import("zod").ZodOptional<import("zod").ZodString>;
5542
7330
  banExpires: import("zod").ZodOptional<import("zod").ZodNumber>;
7331
+ deleteAllSessions: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
5543
7332
  }, import("zod/v4/core").$strip>;
5544
7333
  }, DashBanManyResponse>;
5545
7334
  dashUnbanUser: import("better-call").StrictEndpoint<"/dash/unban-user", {
@@ -5558,7 +7347,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
5558
7347
  };
5559
7348
  }>)[];
5560
7349
  body: import("zod").ZodObject<{
5561
- callbackUrl: import("zod").ZodURL;
7350
+ callbackUrl: import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodURL>, import("zod").ZodTransform<string, string>>;
5562
7351
  }, import("zod/v4/core").$strip>;
5563
7352
  }, DashSuccessResponse>;
5564
7353
  dashSendManyVerificationEmails: import("better-call").StrictEndpoint<"/dash/send-many-verification-emails", {
@@ -5569,7 +7358,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
5569
7358
  };
5570
7359
  }>)[];
5571
7360
  body: import("zod").ZodObject<{
5572
- callbackUrl: import("zod").ZodURL;
7361
+ callbackUrl: import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodURL>, import("zod").ZodTransform<string, string>>;
5573
7362
  }, import("zod/v4/core").$strip>;
5574
7363
  }, DashSendManyVerificationEmailsResponse>;
5575
7364
  dashSendResetPasswordEmail: import("better-call").StrictEndpoint<"/dash/send-reset-password-email", {
@@ -5580,7 +7369,7 @@ declare const dash: <O extends DashOptions>(options?: O) => {
5580
7369
  };
5581
7370
  }>)[];
5582
7371
  body: import("zod").ZodObject<{
5583
- callbackUrl: import("zod").ZodURL;
7372
+ callbackUrl: import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodURL>, import("zod").ZodTransform<string, string>>;
5584
7373
  }, import("zod/v4/core").$strip>;
5585
7374
  }, never>;
5586
7375
  dashEnableTwoFactor: import("better-call").StrictEndpoint<"/dash/enable-two-factor", {
@@ -5591,6 +7380,14 @@ declare const dash: <O extends DashOptions>(options?: O) => {
5591
7380
  };
5592
7381
  }>)[];
5593
7382
  }, DashTwoFactorEnableResponse>;
7383
+ dashCompleteTwoFactorSetup: import("better-call").StrictEndpoint<"/dash/complete-two-factor-setup", {
7384
+ method: "POST";
7385
+ use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
7386
+ payload: {
7387
+ userId: string;
7388
+ };
7389
+ }>)[];
7390
+ }, DashSuccessResponse>;
5594
7391
  dashViewTwoFactorTotpUri: import("better-call").StrictEndpoint<"/dash/view-two-factor-totp-uri", {
5595
7392
  method: "POST";
5596
7393
  metadata: {
@@ -6001,4 +7798,4 @@ declare const dash: <O extends DashOptions>(options?: O) => {
6001
7798
  } : {};
6002
7799
  };
6003
7800
  //#endregion
6004
- export { type APIError, CHALLENGE_TTL, type CompromisedPasswordResult, type CredentialStuffingResult, type DBField, DEFAULT_DIFFICULTY, type DashAddTeamMemberResponse, type DashBanManyResponse, type DashCheckUserByEmailResponse, type DashCheckUserExistsResponse, type DashCompleteInvitationResponse, type DashConfigResponse, type DashCreateOrganizationBody, type DashCreateOrganizationResponse, type DashCreateTeamResponse, type DashCreateUserResponse, type DashDeleteManyUsersResponse, type DashDirectoryCreateResponse, type DashDirectoryDeleteResponse, type DashDirectoryItem, type DashDirectoryRegenerateTokenResponse, type DashExecuteAdapterCountResponse, type DashExecuteAdapterFindManyResponse, type DashExecuteAdapterFindOneResponse, type DashExecuteAdapterMutationResponse, type DashExecuteAdapterResponse, type DashExportOrganizationsResponse, type DashIdRow, type DashInviteMemberResponse, type DashMaybeSuccessResponse, type DashOptions, type DashOptionsInternal, type DashOptionsResolved, type DashOrganizationAddMemberResponse, type DashOrganizationDeleteManyResponse, type DashOrganizationDetailResponse, type DashOrganizationInvitationItem, type DashOrganizationInvitationListResponse, type DashOrganizationInvitationStatusItem, type DashOrganizationListResponse, type DashOrganizationMember, type DashOrganizationMemberListItem, type DashOrganizationMemberListResponse, type DashOrganizationMemberUser, type DashOrganizationOptionsResponse, type DashOrganizationTeamItem, type DashOrganizationTeamListResponse, type DashOrganizationUpdateMemberRoleResponse, type DashOrganizationUpdateResponse, type DashSendManyVerificationEmailsResponse, type DashSessionRevokeManyResponse, type DashSsoCreateProviderResponse, type DashSsoDeleteResponse, type DashSsoMarkDomainVerifiedResponse, type DashSsoProviderItem, type DashSsoProviderSummary, type DashSsoUpdateProviderResponse, type DashSsoVerificationTokenResponse, type DashSsoVerifyDomainResponse, type DashSuccessResponse, type DashTeam, type DashTeamMember, type DashTeamMemberListResponse, type DashTwoFactorBackupCodesResponse, type DashTwoFactorEnableResponse, type DashTwoFactorTotpViewResponse, type DashUpdateTeamResponse, type DashUpdateUserResponse, type DashUserDetailsResponse, type DashUserGraphDataResponse, type DashUserListResponse, type DashUserOrganizationsResponse, type DashUserRetentionDataResponse, type DashUserStatsActivePeriod, type DashUserStatsResponse, type DashUserStatsSignUpPeriod, type DashValidateResponse, type DirectorySyncConnection, EMAIL_TEMPLATES, type EmailConfig, type EmailTemplateId, type EmailTemplateVariables, type Endpoint, type EndpointOptions, type EventLocation, type EventTypesResponse, type ImpossibleTravelResult, type InfraEndpointContext, type InfraPluginConnectionOptions, type InfraPluginConnectionOptionsInternal, type LocationData, type LocationDataContext, type PoWChallenge, type PoWSolution, type SCIMPlugin, type SMSConfig, type SMSTemplateId, type SMSTemplateVariables, SMS_TEMPLATES, type SecurityEvent, type SecurityEventType, type SecurityOptions, type SecurityVerdict, type SendBulkEmailsOptions, type SendBulkEmailsResult, type SendEmailOptions, type SendEmailResult, type SendSMSOptions, type SendSMSResult, type SentinelOptions, type SentinelOptionsInternal, type StaleUserResult, type ThresholdConfig, USER_EVENT_TYPES, type UserEvent, type UserEventType, type UserEventsResponse, createEmailSender, createSMSSender, dash, decodePoWChallenge, encodePoWSolution, normalizeEmail, sendBulkEmails, sendEmail, sendSMS, sentinel, solvePoWChallenge, verifyPoWSolution };
7801
+ export { type APIError, CHALLENGE_TTL, type CompromisedPasswordResult, type CredentialStuffingResult, type DBField, DEFAULT_DIFFICULTY, type DashAddTeamMemberResponse, type DashBanManyResponse, type DashCheckUserByEmailResponse, type DashCheckUserExistsResponse, type DashCompleteInvitationResponse, type DashConfigResponse, type DashCreateOrganizationBody, type DashCreateOrganizationResponse, type DashCreateTeamResponse, type DashCreateUserResponse, type DashDeleteManyUsersResponse, type DashDirectoryCreateResponse, type DashDirectoryDeleteResponse, type DashDirectoryItem, type DashDirectoryRegenerateTokenResponse, type DashExecuteAdapterCountResponse, type DashExecuteAdapterFindManyResponse, type DashExecuteAdapterFindOneResponse, type DashExecuteAdapterMutationResponse, type DashExecuteAdapterResponse, type DashExportOrganizationsResponse, type DashIdRow, type DashInviteMemberResponse, type DashMaybeSuccessResponse, type DashOptions, type DashOptionsInternal, type DashOptionsResolved, type DashOrganizationAddMemberResponse, type DashOrganizationDeleteManyResponse, type DashOrganizationDetailResponse, type DashOrganizationInvitationItem, type DashOrganizationInvitationListResponse, type DashOrganizationInvitationStatusItem, type DashOrganizationListResponse, type DashOrganizationMember, type DashOrganizationMemberListItem, type DashOrganizationMemberListResponse, type DashOrganizationMemberUser, type DashOrganizationOptionsResponse, type DashOrganizationTeamItem, type DashOrganizationTeamListResponse, type DashOrganizationUpdateMemberRoleResponse, type DashOrganizationUpdateResponse, type DashSendManyVerificationEmailsResponse, type DashSessionRevokeManyResponse, type DashSsoCreateProviderResponse, type DashSsoDeleteResponse, type DashSsoMarkDomainVerifiedResponse, type DashSsoProviderItem, type DashSsoProviderSummary, type DashSsoUpdateProviderResponse, type DashSsoVerificationTokenResponse, type DashSsoVerifyDomainResponse, type DashSuccessResponse, type DashTeam, type DashTeamMember, type DashTeamMemberListResponse, type DashTwoFactorBackupCodesResponse, type DashTwoFactorEnableResponse, type DashTwoFactorStatus, type DashTwoFactorTotpViewResponse, type DashUpdateTeamResponse, type DashUpdateUserResponse, type DashUserDetailsResponse, type DashUserGraphDataResponse, type DashUserListResponse, type DashUserOrganizationsResponse, type DashUserRetentionDataResponse, type DashUserStatsActivePeriod, type DashUserStatsResponse, type DashUserStatsSignUpPeriod, type DashValidateResponse, type DirectorySyncConnection, EMAIL_TEMPLATES, type EmailConfig, type EmailTemplateId, type EmailTemplateVariables, type Endpoint, type EndpointOptions, type EventLocation, type EventTypesResponse, type ImpossibleTravelResult, type InfraEndpointContext, type InfraPluginConnectionOptions, type InfraPluginConnectionOptionsInternal, type LocationData, type LocationDataContext, type PoWChallenge, type PoWSolution, type SCIMPlugin, type SMSConfig, type SMSTemplateId, type SMSTemplateVariables, SMS_TEMPLATES, type SecurityEvent, type SecurityEventType, type SecurityOptions, type SecurityVerdict, type SendBulkEmailsOptions, type SendBulkEmailsResult, type SendEmailOptions, type SendEmailResult, type SendSMSOptions, type SendSMSResult, type SentinelOptions, type SentinelOptionsInternal, type StaleUserResult, type ThresholdConfig, USER_EVENT_TYPES, type UserEvent, type UserEventType, type UserEventsResponse, createEmailSender, createSMSSender, dash, decodePoWChallenge, encodePoWSolution, normalizeEmail, sendBulkEmails, sendEmail, sendSMS, sentinel, solvePoWChallenge, verifyPoWSolution };