@better-auth/scim 1.5.0-beta.8 → 1.5.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
@@ -1,2 +1,3443 @@
1
- import { t as scim } from "./index-C1g0YSP7.mjs";
2
- export { scim };
1
+ import * as better_auth0 from "better-auth";
2
+ import { User } from "better-auth";
3
+ import * as better_call0 from "better-call";
4
+ import * as zod from "zod";
5
+ import { Member } from "better-auth/plugins";
6
+
7
+ //#region src/types.d.ts
8
+ interface SCIMProvider {
9
+ id: string;
10
+ providerId: string;
11
+ scimToken: string;
12
+ organizationId?: string;
13
+ userId?: string;
14
+ }
15
+ type SCIMName = {
16
+ formatted?: string;
17
+ givenName?: string;
18
+ familyName?: string;
19
+ };
20
+ type SCIMEmail = {
21
+ value?: string;
22
+ primary?: boolean;
23
+ };
24
+ type SCIMOptions = {
25
+ /**
26
+ * SCIM provider ownership configuration. When enabled, each provider
27
+ * connection is linked to the user who generated its token
28
+ */
29
+ providerOwnership?: {
30
+ enabled: boolean;
31
+ };
32
+ /**
33
+ * Default list of SCIM providers for testing
34
+ * These will take precedence over the database when present
35
+ */
36
+ defaultSCIM?: Omit<SCIMProvider, "id">[];
37
+ /**
38
+ * A callback that runs before a new SCIM token is generated.
39
+ * @returns
40
+ */
41
+ beforeSCIMTokenGenerated?: ({
42
+ user,
43
+ member,
44
+ scimToken
45
+ }: {
46
+ user: User;
47
+ member?: Member | null;
48
+ scimToken: string;
49
+ }) => Promise<void>;
50
+ /**
51
+ * A callback that runs before a new SCIM token is generated
52
+ * @returns
53
+ */
54
+ afterSCIMTokenGenerated?: ({
55
+ user,
56
+ member,
57
+ scimProvider
58
+ }: {
59
+ user: User;
60
+ member?: Member | null;
61
+ scimToken: string;
62
+ scimProvider: SCIMProvider;
63
+ }) => Promise<void>;
64
+ /**
65
+ * Store the SCIM token in your database in a secure way
66
+ *
67
+ * @default "plain"
68
+ */
69
+ storeSCIMToken?: ("hashed" | "plain" | "encrypted" | {
70
+ hash: (scimToken: string) => Promise<string>;
71
+ } | {
72
+ encrypt: (scimToken: string) => Promise<string>;
73
+ decrypt: (scimToken: string) => Promise<string>;
74
+ }) | undefined;
75
+ };
76
+ //#endregion
77
+ //#region src/index.d.ts
78
+ declare module "@better-auth/core" {
79
+ interface BetterAuthPluginRegistry<AuthOptions, Options> {
80
+ scim: {
81
+ creator: typeof scim;
82
+ };
83
+ }
84
+ }
85
+ declare const scim: (options?: SCIMOptions) => {
86
+ id: "scim";
87
+ endpoints: {
88
+ generateSCIMToken: better_call0.StrictEndpoint<"/scim/generate-token", {
89
+ method: "POST";
90
+ body: zod.ZodObject<{
91
+ providerId: zod.ZodString;
92
+ organizationId: zod.ZodOptional<zod.ZodString>;
93
+ }, better_auth0.$strip>;
94
+ metadata: {
95
+ openapi: {
96
+ summary: string;
97
+ description: string;
98
+ responses: {
99
+ "201": {
100
+ description: string;
101
+ content: {
102
+ "application/json": {
103
+ schema: {
104
+ type: "object";
105
+ properties: {
106
+ scimToken: {
107
+ description: string;
108
+ type: string;
109
+ };
110
+ };
111
+ };
112
+ };
113
+ };
114
+ };
115
+ };
116
+ };
117
+ };
118
+ use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
119
+ session: {
120
+ session: Record<string, any> & {
121
+ id: string;
122
+ createdAt: Date;
123
+ updatedAt: Date;
124
+ userId: string;
125
+ expiresAt: Date;
126
+ token: string;
127
+ ipAddress?: string | null | undefined;
128
+ userAgent?: string | null | undefined;
129
+ };
130
+ user: Record<string, any> & {
131
+ id: string;
132
+ createdAt: Date;
133
+ updatedAt: Date;
134
+ email: string;
135
+ emailVerified: boolean;
136
+ name: string;
137
+ image?: string | null | undefined;
138
+ };
139
+ };
140
+ }>)[];
141
+ }, {
142
+ scimToken: string;
143
+ }>;
144
+ listSCIMProviderConnections: better_call0.StrictEndpoint<"/scim/list-provider-connections", {
145
+ method: "GET";
146
+ use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
147
+ session: {
148
+ session: Record<string, any> & {
149
+ id: string;
150
+ createdAt: Date;
151
+ updatedAt: Date;
152
+ userId: string;
153
+ expiresAt: Date;
154
+ token: string;
155
+ ipAddress?: string | null | undefined;
156
+ userAgent?: string | null | undefined;
157
+ };
158
+ user: Record<string, any> & {
159
+ id: string;
160
+ createdAt: Date;
161
+ updatedAt: Date;
162
+ email: string;
163
+ emailVerified: boolean;
164
+ name: string;
165
+ image?: string | null | undefined;
166
+ };
167
+ };
168
+ }>)[];
169
+ metadata: {
170
+ openapi: {
171
+ operationId: string;
172
+ summary: string;
173
+ description: string;
174
+ responses: {
175
+ "200": {
176
+ description: string;
177
+ content: {
178
+ "application/json": {
179
+ schema: {
180
+ type: "object";
181
+ properties: {
182
+ providers: {
183
+ type: string;
184
+ items: {
185
+ type: string;
186
+ properties: {
187
+ id: {
188
+ type: string;
189
+ };
190
+ providerId: {
191
+ type: string;
192
+ };
193
+ organizationId: {
194
+ type: string;
195
+ nullable: boolean;
196
+ };
197
+ };
198
+ };
199
+ };
200
+ };
201
+ };
202
+ };
203
+ };
204
+ };
205
+ };
206
+ };
207
+ };
208
+ }, {
209
+ providers: {
210
+ id: string;
211
+ providerId: string;
212
+ organizationId: string | null;
213
+ }[];
214
+ }>;
215
+ getSCIMProviderConnection: better_call0.StrictEndpoint<"/scim/get-provider-connection", {
216
+ method: "GET";
217
+ use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
218
+ session: {
219
+ session: Record<string, any> & {
220
+ id: string;
221
+ createdAt: Date;
222
+ updatedAt: Date;
223
+ userId: string;
224
+ expiresAt: Date;
225
+ token: string;
226
+ ipAddress?: string | null | undefined;
227
+ userAgent?: string | null | undefined;
228
+ };
229
+ user: Record<string, any> & {
230
+ id: string;
231
+ createdAt: Date;
232
+ updatedAt: Date;
233
+ email: string;
234
+ emailVerified: boolean;
235
+ name: string;
236
+ image?: string | null | undefined;
237
+ };
238
+ };
239
+ }>)[];
240
+ query: zod.ZodObject<{
241
+ providerId: zod.ZodString;
242
+ }, better_auth0.$strip>;
243
+ metadata: {
244
+ openapi: {
245
+ operationId: string;
246
+ summary: string;
247
+ description: string;
248
+ responses: {
249
+ "200": {
250
+ description: string;
251
+ content: {
252
+ "application/json": {
253
+ schema: {
254
+ type: "object";
255
+ properties: {
256
+ id: {
257
+ type: string;
258
+ };
259
+ providerId: {
260
+ type: string;
261
+ };
262
+ organizationId: {
263
+ type: string;
264
+ nullable: boolean;
265
+ };
266
+ };
267
+ };
268
+ };
269
+ };
270
+ };
271
+ "404": {
272
+ description: string;
273
+ };
274
+ "403": {
275
+ description: string;
276
+ };
277
+ };
278
+ };
279
+ };
280
+ }, {
281
+ id: string;
282
+ providerId: string;
283
+ organizationId: string | null;
284
+ }>;
285
+ deleteSCIMProviderConnection: better_call0.StrictEndpoint<"/scim/delete-provider-connection", {
286
+ method: "POST";
287
+ use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
288
+ session: {
289
+ session: Record<string, any> & {
290
+ id: string;
291
+ createdAt: Date;
292
+ updatedAt: Date;
293
+ userId: string;
294
+ expiresAt: Date;
295
+ token: string;
296
+ ipAddress?: string | null | undefined;
297
+ userAgent?: string | null | undefined;
298
+ };
299
+ user: Record<string, any> & {
300
+ id: string;
301
+ createdAt: Date;
302
+ updatedAt: Date;
303
+ email: string;
304
+ emailVerified: boolean;
305
+ name: string;
306
+ image?: string | null | undefined;
307
+ };
308
+ };
309
+ }>)[];
310
+ body: zod.ZodObject<{
311
+ providerId: zod.ZodString;
312
+ }, better_auth0.$strip>;
313
+ metadata: {
314
+ openapi: {
315
+ operationId: string;
316
+ summary: string;
317
+ description: string;
318
+ responses: {
319
+ "200": {
320
+ description: string;
321
+ content: {
322
+ "application/json": {
323
+ schema: {
324
+ type: "object";
325
+ properties: {
326
+ success: {
327
+ type: string;
328
+ };
329
+ };
330
+ };
331
+ };
332
+ };
333
+ };
334
+ "404": {
335
+ description: string;
336
+ };
337
+ "403": {
338
+ description: string;
339
+ };
340
+ };
341
+ };
342
+ };
343
+ }, {
344
+ success: boolean;
345
+ }>;
346
+ getSCIMUser: better_call0.StrictEndpoint<"/scim/v2/Users/:userId", {
347
+ method: "GET";
348
+ metadata: {
349
+ allowedMediaTypes: string[];
350
+ openapi: {
351
+ summary: string;
352
+ description: string;
353
+ responses: {
354
+ "400": {
355
+ description: string;
356
+ content: {
357
+ "application/json": {
358
+ schema: {
359
+ readonly type: "object";
360
+ readonly properties: {
361
+ readonly schemas: {
362
+ readonly type: "array";
363
+ readonly items: {
364
+ readonly type: "string";
365
+ };
366
+ };
367
+ readonly status: {
368
+ readonly type: "string";
369
+ };
370
+ readonly detail: {
371
+ readonly type: "string";
372
+ };
373
+ readonly scimType: {
374
+ readonly type: "string";
375
+ };
376
+ };
377
+ };
378
+ };
379
+ };
380
+ };
381
+ "401": {
382
+ description: string;
383
+ content: {
384
+ "application/json": {
385
+ schema: {
386
+ readonly type: "object";
387
+ readonly properties: {
388
+ readonly schemas: {
389
+ readonly type: "array";
390
+ readonly items: {
391
+ readonly type: "string";
392
+ };
393
+ };
394
+ readonly status: {
395
+ readonly type: "string";
396
+ };
397
+ readonly detail: {
398
+ readonly type: "string";
399
+ };
400
+ readonly scimType: {
401
+ readonly type: "string";
402
+ };
403
+ };
404
+ };
405
+ };
406
+ };
407
+ };
408
+ "403": {
409
+ description: string;
410
+ content: {
411
+ "application/json": {
412
+ schema: {
413
+ readonly type: "object";
414
+ readonly properties: {
415
+ readonly schemas: {
416
+ readonly type: "array";
417
+ readonly items: {
418
+ readonly type: "string";
419
+ };
420
+ };
421
+ readonly status: {
422
+ readonly type: "string";
423
+ };
424
+ readonly detail: {
425
+ readonly type: "string";
426
+ };
427
+ readonly scimType: {
428
+ readonly type: "string";
429
+ };
430
+ };
431
+ };
432
+ };
433
+ };
434
+ };
435
+ "404": {
436
+ description: string;
437
+ content: {
438
+ "application/json": {
439
+ schema: {
440
+ readonly type: "object";
441
+ readonly properties: {
442
+ readonly schemas: {
443
+ readonly type: "array";
444
+ readonly items: {
445
+ readonly type: "string";
446
+ };
447
+ };
448
+ readonly status: {
449
+ readonly type: "string";
450
+ };
451
+ readonly detail: {
452
+ readonly type: "string";
453
+ };
454
+ readonly scimType: {
455
+ readonly type: "string";
456
+ };
457
+ };
458
+ };
459
+ };
460
+ };
461
+ };
462
+ "429": {
463
+ description: string;
464
+ content: {
465
+ "application/json": {
466
+ schema: {
467
+ readonly type: "object";
468
+ readonly properties: {
469
+ readonly schemas: {
470
+ readonly type: "array";
471
+ readonly items: {
472
+ readonly type: "string";
473
+ };
474
+ };
475
+ readonly status: {
476
+ readonly type: "string";
477
+ };
478
+ readonly detail: {
479
+ readonly type: "string";
480
+ };
481
+ readonly scimType: {
482
+ readonly type: "string";
483
+ };
484
+ };
485
+ };
486
+ };
487
+ };
488
+ };
489
+ "500": {
490
+ description: string;
491
+ content: {
492
+ "application/json": {
493
+ schema: {
494
+ readonly type: "object";
495
+ readonly properties: {
496
+ readonly schemas: {
497
+ readonly type: "array";
498
+ readonly items: {
499
+ readonly type: "string";
500
+ };
501
+ };
502
+ readonly status: {
503
+ readonly type: "string";
504
+ };
505
+ readonly detail: {
506
+ readonly type: "string";
507
+ };
508
+ readonly scimType: {
509
+ readonly type: "string";
510
+ };
511
+ };
512
+ };
513
+ };
514
+ };
515
+ };
516
+ "200": {
517
+ description: string;
518
+ content: {
519
+ "application/json": {
520
+ schema: {
521
+ readonly type: "object";
522
+ readonly properties: {
523
+ readonly id: {
524
+ readonly type: "string";
525
+ };
526
+ readonly meta: {
527
+ readonly type: "object";
528
+ readonly properties: {
529
+ readonly resourceType: {
530
+ readonly type: "string";
531
+ };
532
+ readonly created: {
533
+ readonly type: "string";
534
+ readonly format: "date-time";
535
+ };
536
+ readonly lastModified: {
537
+ readonly type: "string";
538
+ readonly format: "date-time";
539
+ };
540
+ readonly location: {
541
+ readonly type: "string";
542
+ };
543
+ };
544
+ };
545
+ readonly userName: {
546
+ readonly type: "string";
547
+ };
548
+ readonly name: {
549
+ readonly type: "object";
550
+ readonly properties: {
551
+ readonly formatted: {
552
+ readonly type: "string";
553
+ };
554
+ readonly givenName: {
555
+ readonly type: "string";
556
+ };
557
+ readonly familyName: {
558
+ readonly type: "string";
559
+ };
560
+ };
561
+ };
562
+ readonly displayName: {
563
+ readonly type: "string";
564
+ };
565
+ readonly active: {
566
+ readonly type: "boolean";
567
+ };
568
+ readonly emails: {
569
+ readonly type: "array";
570
+ readonly items: {
571
+ readonly type: "object";
572
+ readonly properties: {
573
+ readonly value: {
574
+ readonly type: "string";
575
+ };
576
+ readonly primary: {
577
+ readonly type: "boolean";
578
+ };
579
+ };
580
+ };
581
+ };
582
+ readonly schemas: {
583
+ readonly type: "array";
584
+ readonly items: {
585
+ readonly type: "string";
586
+ };
587
+ };
588
+ };
589
+ };
590
+ };
591
+ };
592
+ };
593
+ };
594
+ };
595
+ scope: "server";
596
+ };
597
+ use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
598
+ authSCIMToken: string;
599
+ scimProvider: Omit<SCIMProvider, "id">;
600
+ }>)[];
601
+ }, {
602
+ id: string;
603
+ externalId: string | undefined;
604
+ meta: {
605
+ resourceType: string;
606
+ created: Date;
607
+ lastModified: Date;
608
+ location: string;
609
+ };
610
+ userName: string;
611
+ name: {
612
+ formatted: string;
613
+ };
614
+ displayName: string;
615
+ active: boolean;
616
+ emails: {
617
+ primary: boolean;
618
+ value: string;
619
+ }[];
620
+ schemas: string[];
621
+ }>;
622
+ createSCIMUser: better_call0.StrictEndpoint<"/scim/v2/Users", {
623
+ method: "POST";
624
+ body: zod.ZodObject<{
625
+ userName: zod.ZodString;
626
+ externalId: zod.ZodOptional<zod.ZodString>;
627
+ name: zod.ZodOptional<zod.ZodObject<{
628
+ formatted: zod.ZodOptional<zod.ZodString>;
629
+ givenName: zod.ZodOptional<zod.ZodString>;
630
+ familyName: zod.ZodOptional<zod.ZodString>;
631
+ }, better_auth0.$strip>>;
632
+ emails: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
633
+ value: zod.ZodEmail;
634
+ primary: zod.ZodOptional<zod.ZodBoolean>;
635
+ }, better_auth0.$strip>>>;
636
+ }, better_auth0.$strip>;
637
+ metadata: {
638
+ allowedMediaTypes: string[];
639
+ openapi: {
640
+ summary: string;
641
+ description: string;
642
+ responses: {
643
+ "400": {
644
+ description: string;
645
+ content: {
646
+ "application/json": {
647
+ schema: {
648
+ readonly type: "object";
649
+ readonly properties: {
650
+ readonly schemas: {
651
+ readonly type: "array";
652
+ readonly items: {
653
+ readonly type: "string";
654
+ };
655
+ };
656
+ readonly status: {
657
+ readonly type: "string";
658
+ };
659
+ readonly detail: {
660
+ readonly type: "string";
661
+ };
662
+ readonly scimType: {
663
+ readonly type: "string";
664
+ };
665
+ };
666
+ };
667
+ };
668
+ };
669
+ };
670
+ "401": {
671
+ description: string;
672
+ content: {
673
+ "application/json": {
674
+ schema: {
675
+ readonly type: "object";
676
+ readonly properties: {
677
+ readonly schemas: {
678
+ readonly type: "array";
679
+ readonly items: {
680
+ readonly type: "string";
681
+ };
682
+ };
683
+ readonly status: {
684
+ readonly type: "string";
685
+ };
686
+ readonly detail: {
687
+ readonly type: "string";
688
+ };
689
+ readonly scimType: {
690
+ readonly type: "string";
691
+ };
692
+ };
693
+ };
694
+ };
695
+ };
696
+ };
697
+ "403": {
698
+ description: string;
699
+ content: {
700
+ "application/json": {
701
+ schema: {
702
+ readonly type: "object";
703
+ readonly properties: {
704
+ readonly schemas: {
705
+ readonly type: "array";
706
+ readonly items: {
707
+ readonly type: "string";
708
+ };
709
+ };
710
+ readonly status: {
711
+ readonly type: "string";
712
+ };
713
+ readonly detail: {
714
+ readonly type: "string";
715
+ };
716
+ readonly scimType: {
717
+ readonly type: "string";
718
+ };
719
+ };
720
+ };
721
+ };
722
+ };
723
+ };
724
+ "404": {
725
+ description: string;
726
+ content: {
727
+ "application/json": {
728
+ schema: {
729
+ readonly type: "object";
730
+ readonly properties: {
731
+ readonly schemas: {
732
+ readonly type: "array";
733
+ readonly items: {
734
+ readonly type: "string";
735
+ };
736
+ };
737
+ readonly status: {
738
+ readonly type: "string";
739
+ };
740
+ readonly detail: {
741
+ readonly type: "string";
742
+ };
743
+ readonly scimType: {
744
+ readonly type: "string";
745
+ };
746
+ };
747
+ };
748
+ };
749
+ };
750
+ };
751
+ "429": {
752
+ description: string;
753
+ content: {
754
+ "application/json": {
755
+ schema: {
756
+ readonly type: "object";
757
+ readonly properties: {
758
+ readonly schemas: {
759
+ readonly type: "array";
760
+ readonly items: {
761
+ readonly type: "string";
762
+ };
763
+ };
764
+ readonly status: {
765
+ readonly type: "string";
766
+ };
767
+ readonly detail: {
768
+ readonly type: "string";
769
+ };
770
+ readonly scimType: {
771
+ readonly type: "string";
772
+ };
773
+ };
774
+ };
775
+ };
776
+ };
777
+ };
778
+ "500": {
779
+ description: string;
780
+ content: {
781
+ "application/json": {
782
+ schema: {
783
+ readonly type: "object";
784
+ readonly properties: {
785
+ readonly schemas: {
786
+ readonly type: "array";
787
+ readonly items: {
788
+ readonly type: "string";
789
+ };
790
+ };
791
+ readonly status: {
792
+ readonly type: "string";
793
+ };
794
+ readonly detail: {
795
+ readonly type: "string";
796
+ };
797
+ readonly scimType: {
798
+ readonly type: "string";
799
+ };
800
+ };
801
+ };
802
+ };
803
+ };
804
+ };
805
+ "201": {
806
+ description: string;
807
+ content: {
808
+ "application/json": {
809
+ schema: {
810
+ readonly type: "object";
811
+ readonly properties: {
812
+ readonly id: {
813
+ readonly type: "string";
814
+ };
815
+ readonly meta: {
816
+ readonly type: "object";
817
+ readonly properties: {
818
+ readonly resourceType: {
819
+ readonly type: "string";
820
+ };
821
+ readonly created: {
822
+ readonly type: "string";
823
+ readonly format: "date-time";
824
+ };
825
+ readonly lastModified: {
826
+ readonly type: "string";
827
+ readonly format: "date-time";
828
+ };
829
+ readonly location: {
830
+ readonly type: "string";
831
+ };
832
+ };
833
+ };
834
+ readonly userName: {
835
+ readonly type: "string";
836
+ };
837
+ readonly name: {
838
+ readonly type: "object";
839
+ readonly properties: {
840
+ readonly formatted: {
841
+ readonly type: "string";
842
+ };
843
+ readonly givenName: {
844
+ readonly type: "string";
845
+ };
846
+ readonly familyName: {
847
+ readonly type: "string";
848
+ };
849
+ };
850
+ };
851
+ readonly displayName: {
852
+ readonly type: "string";
853
+ };
854
+ readonly active: {
855
+ readonly type: "boolean";
856
+ };
857
+ readonly emails: {
858
+ readonly type: "array";
859
+ readonly items: {
860
+ readonly type: "object";
861
+ readonly properties: {
862
+ readonly value: {
863
+ readonly type: "string";
864
+ };
865
+ readonly primary: {
866
+ readonly type: "boolean";
867
+ };
868
+ };
869
+ };
870
+ };
871
+ readonly schemas: {
872
+ readonly type: "array";
873
+ readonly items: {
874
+ readonly type: "string";
875
+ };
876
+ };
877
+ };
878
+ };
879
+ };
880
+ };
881
+ };
882
+ };
883
+ };
884
+ scope: "server";
885
+ };
886
+ use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
887
+ authSCIMToken: string;
888
+ scimProvider: Omit<SCIMProvider, "id">;
889
+ }>)[];
890
+ }, {
891
+ id: string;
892
+ externalId: string | undefined;
893
+ meta: {
894
+ resourceType: string;
895
+ created: Date;
896
+ lastModified: Date;
897
+ location: string;
898
+ };
899
+ userName: string;
900
+ name: {
901
+ formatted: string;
902
+ };
903
+ displayName: string;
904
+ active: boolean;
905
+ emails: {
906
+ primary: boolean;
907
+ value: string;
908
+ }[];
909
+ schemas: string[];
910
+ }>;
911
+ patchSCIMUser: better_call0.StrictEndpoint<"/scim/v2/Users/:userId", {
912
+ method: "PATCH";
913
+ body: zod.ZodObject<{
914
+ schemas: zod.ZodArray<zod.ZodString>;
915
+ Operations: zod.ZodArray<zod.ZodObject<{
916
+ op: zod.ZodPipe<zod.ZodDefault<zod.ZodString>, zod.ZodEnum<{
917
+ replace: "replace";
918
+ add: "add";
919
+ remove: "remove";
920
+ }>>;
921
+ path: zod.ZodOptional<zod.ZodString>;
922
+ value: zod.ZodAny;
923
+ }, better_auth0.$strip>>;
924
+ }, better_auth0.$strip>;
925
+ metadata: {
926
+ allowedMediaTypes: string[];
927
+ openapi: {
928
+ summary: string;
929
+ description: string;
930
+ responses: {
931
+ "400": {
932
+ description: string;
933
+ content: {
934
+ "application/json": {
935
+ schema: {
936
+ readonly type: "object";
937
+ readonly properties: {
938
+ readonly schemas: {
939
+ readonly type: "array";
940
+ readonly items: {
941
+ readonly type: "string";
942
+ };
943
+ };
944
+ readonly status: {
945
+ readonly type: "string";
946
+ };
947
+ readonly detail: {
948
+ readonly type: "string";
949
+ };
950
+ readonly scimType: {
951
+ readonly type: "string";
952
+ };
953
+ };
954
+ };
955
+ };
956
+ };
957
+ };
958
+ "401": {
959
+ description: string;
960
+ content: {
961
+ "application/json": {
962
+ schema: {
963
+ readonly type: "object";
964
+ readonly properties: {
965
+ readonly schemas: {
966
+ readonly type: "array";
967
+ readonly items: {
968
+ readonly type: "string";
969
+ };
970
+ };
971
+ readonly status: {
972
+ readonly type: "string";
973
+ };
974
+ readonly detail: {
975
+ readonly type: "string";
976
+ };
977
+ readonly scimType: {
978
+ readonly type: "string";
979
+ };
980
+ };
981
+ };
982
+ };
983
+ };
984
+ };
985
+ "403": {
986
+ description: string;
987
+ content: {
988
+ "application/json": {
989
+ schema: {
990
+ readonly type: "object";
991
+ readonly properties: {
992
+ readonly schemas: {
993
+ readonly type: "array";
994
+ readonly items: {
995
+ readonly type: "string";
996
+ };
997
+ };
998
+ readonly status: {
999
+ readonly type: "string";
1000
+ };
1001
+ readonly detail: {
1002
+ readonly type: "string";
1003
+ };
1004
+ readonly scimType: {
1005
+ readonly type: "string";
1006
+ };
1007
+ };
1008
+ };
1009
+ };
1010
+ };
1011
+ };
1012
+ "404": {
1013
+ description: string;
1014
+ content: {
1015
+ "application/json": {
1016
+ schema: {
1017
+ readonly type: "object";
1018
+ readonly properties: {
1019
+ readonly schemas: {
1020
+ readonly type: "array";
1021
+ readonly items: {
1022
+ readonly type: "string";
1023
+ };
1024
+ };
1025
+ readonly status: {
1026
+ readonly type: "string";
1027
+ };
1028
+ readonly detail: {
1029
+ readonly type: "string";
1030
+ };
1031
+ readonly scimType: {
1032
+ readonly type: "string";
1033
+ };
1034
+ };
1035
+ };
1036
+ };
1037
+ };
1038
+ };
1039
+ "429": {
1040
+ description: string;
1041
+ content: {
1042
+ "application/json": {
1043
+ schema: {
1044
+ readonly type: "object";
1045
+ readonly properties: {
1046
+ readonly schemas: {
1047
+ readonly type: "array";
1048
+ readonly items: {
1049
+ readonly type: "string";
1050
+ };
1051
+ };
1052
+ readonly status: {
1053
+ readonly type: "string";
1054
+ };
1055
+ readonly detail: {
1056
+ readonly type: "string";
1057
+ };
1058
+ readonly scimType: {
1059
+ readonly type: "string";
1060
+ };
1061
+ };
1062
+ };
1063
+ };
1064
+ };
1065
+ };
1066
+ "500": {
1067
+ description: string;
1068
+ content: {
1069
+ "application/json": {
1070
+ schema: {
1071
+ readonly type: "object";
1072
+ readonly properties: {
1073
+ readonly schemas: {
1074
+ readonly type: "array";
1075
+ readonly items: {
1076
+ readonly type: "string";
1077
+ };
1078
+ };
1079
+ readonly status: {
1080
+ readonly type: "string";
1081
+ };
1082
+ readonly detail: {
1083
+ readonly type: "string";
1084
+ };
1085
+ readonly scimType: {
1086
+ readonly type: "string";
1087
+ };
1088
+ };
1089
+ };
1090
+ };
1091
+ };
1092
+ };
1093
+ "204": {
1094
+ description: string;
1095
+ };
1096
+ };
1097
+ };
1098
+ scope: "server";
1099
+ };
1100
+ use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
1101
+ authSCIMToken: string;
1102
+ scimProvider: Omit<SCIMProvider, "id">;
1103
+ }>)[];
1104
+ }, void>;
1105
+ deleteSCIMUser: better_call0.StrictEndpoint<"/scim/v2/Users/:userId", {
1106
+ method: "DELETE";
1107
+ metadata: {
1108
+ allowedMediaTypes: string[];
1109
+ openapi: {
1110
+ summary: string;
1111
+ description: string;
1112
+ responses: {
1113
+ "400": {
1114
+ description: string;
1115
+ content: {
1116
+ "application/json": {
1117
+ schema: {
1118
+ readonly type: "object";
1119
+ readonly properties: {
1120
+ readonly schemas: {
1121
+ readonly type: "array";
1122
+ readonly items: {
1123
+ readonly type: "string";
1124
+ };
1125
+ };
1126
+ readonly status: {
1127
+ readonly type: "string";
1128
+ };
1129
+ readonly detail: {
1130
+ readonly type: "string";
1131
+ };
1132
+ readonly scimType: {
1133
+ readonly type: "string";
1134
+ };
1135
+ };
1136
+ };
1137
+ };
1138
+ };
1139
+ };
1140
+ "401": {
1141
+ description: string;
1142
+ content: {
1143
+ "application/json": {
1144
+ schema: {
1145
+ readonly type: "object";
1146
+ readonly properties: {
1147
+ readonly schemas: {
1148
+ readonly type: "array";
1149
+ readonly items: {
1150
+ readonly type: "string";
1151
+ };
1152
+ };
1153
+ readonly status: {
1154
+ readonly type: "string";
1155
+ };
1156
+ readonly detail: {
1157
+ readonly type: "string";
1158
+ };
1159
+ readonly scimType: {
1160
+ readonly type: "string";
1161
+ };
1162
+ };
1163
+ };
1164
+ };
1165
+ };
1166
+ };
1167
+ "403": {
1168
+ description: string;
1169
+ content: {
1170
+ "application/json": {
1171
+ schema: {
1172
+ readonly type: "object";
1173
+ readonly properties: {
1174
+ readonly schemas: {
1175
+ readonly type: "array";
1176
+ readonly items: {
1177
+ readonly type: "string";
1178
+ };
1179
+ };
1180
+ readonly status: {
1181
+ readonly type: "string";
1182
+ };
1183
+ readonly detail: {
1184
+ readonly type: "string";
1185
+ };
1186
+ readonly scimType: {
1187
+ readonly type: "string";
1188
+ };
1189
+ };
1190
+ };
1191
+ };
1192
+ };
1193
+ };
1194
+ "404": {
1195
+ description: string;
1196
+ content: {
1197
+ "application/json": {
1198
+ schema: {
1199
+ readonly type: "object";
1200
+ readonly properties: {
1201
+ readonly schemas: {
1202
+ readonly type: "array";
1203
+ readonly items: {
1204
+ readonly type: "string";
1205
+ };
1206
+ };
1207
+ readonly status: {
1208
+ readonly type: "string";
1209
+ };
1210
+ readonly detail: {
1211
+ readonly type: "string";
1212
+ };
1213
+ readonly scimType: {
1214
+ readonly type: "string";
1215
+ };
1216
+ };
1217
+ };
1218
+ };
1219
+ };
1220
+ };
1221
+ "429": {
1222
+ description: string;
1223
+ content: {
1224
+ "application/json": {
1225
+ schema: {
1226
+ readonly type: "object";
1227
+ readonly properties: {
1228
+ readonly schemas: {
1229
+ readonly type: "array";
1230
+ readonly items: {
1231
+ readonly type: "string";
1232
+ };
1233
+ };
1234
+ readonly status: {
1235
+ readonly type: "string";
1236
+ };
1237
+ readonly detail: {
1238
+ readonly type: "string";
1239
+ };
1240
+ readonly scimType: {
1241
+ readonly type: "string";
1242
+ };
1243
+ };
1244
+ };
1245
+ };
1246
+ };
1247
+ };
1248
+ "500": {
1249
+ description: string;
1250
+ content: {
1251
+ "application/json": {
1252
+ schema: {
1253
+ readonly type: "object";
1254
+ readonly properties: {
1255
+ readonly schemas: {
1256
+ readonly type: "array";
1257
+ readonly items: {
1258
+ readonly type: "string";
1259
+ };
1260
+ };
1261
+ readonly status: {
1262
+ readonly type: "string";
1263
+ };
1264
+ readonly detail: {
1265
+ readonly type: "string";
1266
+ };
1267
+ readonly scimType: {
1268
+ readonly type: "string";
1269
+ };
1270
+ };
1271
+ };
1272
+ };
1273
+ };
1274
+ };
1275
+ "204": {
1276
+ description: string;
1277
+ };
1278
+ };
1279
+ };
1280
+ scope: "server";
1281
+ };
1282
+ use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
1283
+ authSCIMToken: string;
1284
+ scimProvider: Omit<SCIMProvider, "id">;
1285
+ }>)[];
1286
+ }, void>;
1287
+ updateSCIMUser: better_call0.StrictEndpoint<"/scim/v2/Users/:userId", {
1288
+ method: "PUT";
1289
+ body: zod.ZodObject<{
1290
+ userName: zod.ZodString;
1291
+ externalId: zod.ZodOptional<zod.ZodString>;
1292
+ name: zod.ZodOptional<zod.ZodObject<{
1293
+ formatted: zod.ZodOptional<zod.ZodString>;
1294
+ givenName: zod.ZodOptional<zod.ZodString>;
1295
+ familyName: zod.ZodOptional<zod.ZodString>;
1296
+ }, better_auth0.$strip>>;
1297
+ emails: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
1298
+ value: zod.ZodEmail;
1299
+ primary: zod.ZodOptional<zod.ZodBoolean>;
1300
+ }, better_auth0.$strip>>>;
1301
+ }, better_auth0.$strip>;
1302
+ metadata: {
1303
+ allowedMediaTypes: string[];
1304
+ openapi: {
1305
+ summary: string;
1306
+ description: string;
1307
+ responses: {
1308
+ "400": {
1309
+ description: string;
1310
+ content: {
1311
+ "application/json": {
1312
+ schema: {
1313
+ readonly type: "object";
1314
+ readonly properties: {
1315
+ readonly schemas: {
1316
+ readonly type: "array";
1317
+ readonly items: {
1318
+ readonly type: "string";
1319
+ };
1320
+ };
1321
+ readonly status: {
1322
+ readonly type: "string";
1323
+ };
1324
+ readonly detail: {
1325
+ readonly type: "string";
1326
+ };
1327
+ readonly scimType: {
1328
+ readonly type: "string";
1329
+ };
1330
+ };
1331
+ };
1332
+ };
1333
+ };
1334
+ };
1335
+ "401": {
1336
+ description: string;
1337
+ content: {
1338
+ "application/json": {
1339
+ schema: {
1340
+ readonly type: "object";
1341
+ readonly properties: {
1342
+ readonly schemas: {
1343
+ readonly type: "array";
1344
+ readonly items: {
1345
+ readonly type: "string";
1346
+ };
1347
+ };
1348
+ readonly status: {
1349
+ readonly type: "string";
1350
+ };
1351
+ readonly detail: {
1352
+ readonly type: "string";
1353
+ };
1354
+ readonly scimType: {
1355
+ readonly type: "string";
1356
+ };
1357
+ };
1358
+ };
1359
+ };
1360
+ };
1361
+ };
1362
+ "403": {
1363
+ description: string;
1364
+ content: {
1365
+ "application/json": {
1366
+ schema: {
1367
+ readonly type: "object";
1368
+ readonly properties: {
1369
+ readonly schemas: {
1370
+ readonly type: "array";
1371
+ readonly items: {
1372
+ readonly type: "string";
1373
+ };
1374
+ };
1375
+ readonly status: {
1376
+ readonly type: "string";
1377
+ };
1378
+ readonly detail: {
1379
+ readonly type: "string";
1380
+ };
1381
+ readonly scimType: {
1382
+ readonly type: "string";
1383
+ };
1384
+ };
1385
+ };
1386
+ };
1387
+ };
1388
+ };
1389
+ "404": {
1390
+ description: string;
1391
+ content: {
1392
+ "application/json": {
1393
+ schema: {
1394
+ readonly type: "object";
1395
+ readonly properties: {
1396
+ readonly schemas: {
1397
+ readonly type: "array";
1398
+ readonly items: {
1399
+ readonly type: "string";
1400
+ };
1401
+ };
1402
+ readonly status: {
1403
+ readonly type: "string";
1404
+ };
1405
+ readonly detail: {
1406
+ readonly type: "string";
1407
+ };
1408
+ readonly scimType: {
1409
+ readonly type: "string";
1410
+ };
1411
+ };
1412
+ };
1413
+ };
1414
+ };
1415
+ };
1416
+ "429": {
1417
+ description: string;
1418
+ content: {
1419
+ "application/json": {
1420
+ schema: {
1421
+ readonly type: "object";
1422
+ readonly properties: {
1423
+ readonly schemas: {
1424
+ readonly type: "array";
1425
+ readonly items: {
1426
+ readonly type: "string";
1427
+ };
1428
+ };
1429
+ readonly status: {
1430
+ readonly type: "string";
1431
+ };
1432
+ readonly detail: {
1433
+ readonly type: "string";
1434
+ };
1435
+ readonly scimType: {
1436
+ readonly type: "string";
1437
+ };
1438
+ };
1439
+ };
1440
+ };
1441
+ };
1442
+ };
1443
+ "500": {
1444
+ description: string;
1445
+ content: {
1446
+ "application/json": {
1447
+ schema: {
1448
+ readonly type: "object";
1449
+ readonly properties: {
1450
+ readonly schemas: {
1451
+ readonly type: "array";
1452
+ readonly items: {
1453
+ readonly type: "string";
1454
+ };
1455
+ };
1456
+ readonly status: {
1457
+ readonly type: "string";
1458
+ };
1459
+ readonly detail: {
1460
+ readonly type: "string";
1461
+ };
1462
+ readonly scimType: {
1463
+ readonly type: "string";
1464
+ };
1465
+ };
1466
+ };
1467
+ };
1468
+ };
1469
+ };
1470
+ "200": {
1471
+ description: string;
1472
+ content: {
1473
+ "application/json": {
1474
+ schema: {
1475
+ readonly type: "object";
1476
+ readonly properties: {
1477
+ readonly id: {
1478
+ readonly type: "string";
1479
+ };
1480
+ readonly meta: {
1481
+ readonly type: "object";
1482
+ readonly properties: {
1483
+ readonly resourceType: {
1484
+ readonly type: "string";
1485
+ };
1486
+ readonly created: {
1487
+ readonly type: "string";
1488
+ readonly format: "date-time";
1489
+ };
1490
+ readonly lastModified: {
1491
+ readonly type: "string";
1492
+ readonly format: "date-time";
1493
+ };
1494
+ readonly location: {
1495
+ readonly type: "string";
1496
+ };
1497
+ };
1498
+ };
1499
+ readonly userName: {
1500
+ readonly type: "string";
1501
+ };
1502
+ readonly name: {
1503
+ readonly type: "object";
1504
+ readonly properties: {
1505
+ readonly formatted: {
1506
+ readonly type: "string";
1507
+ };
1508
+ readonly givenName: {
1509
+ readonly type: "string";
1510
+ };
1511
+ readonly familyName: {
1512
+ readonly type: "string";
1513
+ };
1514
+ };
1515
+ };
1516
+ readonly displayName: {
1517
+ readonly type: "string";
1518
+ };
1519
+ readonly active: {
1520
+ readonly type: "boolean";
1521
+ };
1522
+ readonly emails: {
1523
+ readonly type: "array";
1524
+ readonly items: {
1525
+ readonly type: "object";
1526
+ readonly properties: {
1527
+ readonly value: {
1528
+ readonly type: "string";
1529
+ };
1530
+ readonly primary: {
1531
+ readonly type: "boolean";
1532
+ };
1533
+ };
1534
+ };
1535
+ };
1536
+ readonly schemas: {
1537
+ readonly type: "array";
1538
+ readonly items: {
1539
+ readonly type: "string";
1540
+ };
1541
+ };
1542
+ };
1543
+ };
1544
+ };
1545
+ };
1546
+ };
1547
+ };
1548
+ };
1549
+ scope: "server";
1550
+ };
1551
+ use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
1552
+ authSCIMToken: string;
1553
+ scimProvider: Omit<SCIMProvider, "id">;
1554
+ }>)[];
1555
+ }, {
1556
+ id: string;
1557
+ externalId: string | undefined;
1558
+ meta: {
1559
+ resourceType: string;
1560
+ created: Date;
1561
+ lastModified: Date;
1562
+ location: string;
1563
+ };
1564
+ userName: string;
1565
+ name: {
1566
+ formatted: string;
1567
+ };
1568
+ displayName: string;
1569
+ active: boolean;
1570
+ emails: {
1571
+ primary: boolean;
1572
+ value: string;
1573
+ }[];
1574
+ schemas: string[];
1575
+ }>;
1576
+ listSCIMUsers: better_call0.StrictEndpoint<"/scim/v2/Users", {
1577
+ method: "GET";
1578
+ query: zod.ZodOptional<zod.ZodObject<{
1579
+ filter: zod.ZodOptional<zod.ZodString>;
1580
+ }, better_auth0.$strip>>;
1581
+ metadata: {
1582
+ allowedMediaTypes: string[];
1583
+ openapi: {
1584
+ summary: string;
1585
+ description: string;
1586
+ responses: {
1587
+ "400": {
1588
+ description: string;
1589
+ content: {
1590
+ "application/json": {
1591
+ schema: {
1592
+ readonly type: "object";
1593
+ readonly properties: {
1594
+ readonly schemas: {
1595
+ readonly type: "array";
1596
+ readonly items: {
1597
+ readonly type: "string";
1598
+ };
1599
+ };
1600
+ readonly status: {
1601
+ readonly type: "string";
1602
+ };
1603
+ readonly detail: {
1604
+ readonly type: "string";
1605
+ };
1606
+ readonly scimType: {
1607
+ readonly type: "string";
1608
+ };
1609
+ };
1610
+ };
1611
+ };
1612
+ };
1613
+ };
1614
+ "401": {
1615
+ description: string;
1616
+ content: {
1617
+ "application/json": {
1618
+ schema: {
1619
+ readonly type: "object";
1620
+ readonly properties: {
1621
+ readonly schemas: {
1622
+ readonly type: "array";
1623
+ readonly items: {
1624
+ readonly type: "string";
1625
+ };
1626
+ };
1627
+ readonly status: {
1628
+ readonly type: "string";
1629
+ };
1630
+ readonly detail: {
1631
+ readonly type: "string";
1632
+ };
1633
+ readonly scimType: {
1634
+ readonly type: "string";
1635
+ };
1636
+ };
1637
+ };
1638
+ };
1639
+ };
1640
+ };
1641
+ "403": {
1642
+ description: string;
1643
+ content: {
1644
+ "application/json": {
1645
+ schema: {
1646
+ readonly type: "object";
1647
+ readonly properties: {
1648
+ readonly schemas: {
1649
+ readonly type: "array";
1650
+ readonly items: {
1651
+ readonly type: "string";
1652
+ };
1653
+ };
1654
+ readonly status: {
1655
+ readonly type: "string";
1656
+ };
1657
+ readonly detail: {
1658
+ readonly type: "string";
1659
+ };
1660
+ readonly scimType: {
1661
+ readonly type: "string";
1662
+ };
1663
+ };
1664
+ };
1665
+ };
1666
+ };
1667
+ };
1668
+ "404": {
1669
+ description: string;
1670
+ content: {
1671
+ "application/json": {
1672
+ schema: {
1673
+ readonly type: "object";
1674
+ readonly properties: {
1675
+ readonly schemas: {
1676
+ readonly type: "array";
1677
+ readonly items: {
1678
+ readonly type: "string";
1679
+ };
1680
+ };
1681
+ readonly status: {
1682
+ readonly type: "string";
1683
+ };
1684
+ readonly detail: {
1685
+ readonly type: "string";
1686
+ };
1687
+ readonly scimType: {
1688
+ readonly type: "string";
1689
+ };
1690
+ };
1691
+ };
1692
+ };
1693
+ };
1694
+ };
1695
+ "429": {
1696
+ description: string;
1697
+ content: {
1698
+ "application/json": {
1699
+ schema: {
1700
+ readonly type: "object";
1701
+ readonly properties: {
1702
+ readonly schemas: {
1703
+ readonly type: "array";
1704
+ readonly items: {
1705
+ readonly type: "string";
1706
+ };
1707
+ };
1708
+ readonly status: {
1709
+ readonly type: "string";
1710
+ };
1711
+ readonly detail: {
1712
+ readonly type: "string";
1713
+ };
1714
+ readonly scimType: {
1715
+ readonly type: "string";
1716
+ };
1717
+ };
1718
+ };
1719
+ };
1720
+ };
1721
+ };
1722
+ "500": {
1723
+ description: string;
1724
+ content: {
1725
+ "application/json": {
1726
+ schema: {
1727
+ readonly type: "object";
1728
+ readonly properties: {
1729
+ readonly schemas: {
1730
+ readonly type: "array";
1731
+ readonly items: {
1732
+ readonly type: "string";
1733
+ };
1734
+ };
1735
+ readonly status: {
1736
+ readonly type: "string";
1737
+ };
1738
+ readonly detail: {
1739
+ readonly type: "string";
1740
+ };
1741
+ readonly scimType: {
1742
+ readonly type: "string";
1743
+ };
1744
+ };
1745
+ };
1746
+ };
1747
+ };
1748
+ };
1749
+ "200": {
1750
+ description: string;
1751
+ content: {
1752
+ "application/json": {
1753
+ schema: {
1754
+ type: "object";
1755
+ properties: {
1756
+ totalResults: {
1757
+ type: string;
1758
+ };
1759
+ itemsPerPage: {
1760
+ type: string;
1761
+ };
1762
+ startIndex: {
1763
+ type: string;
1764
+ };
1765
+ Resources: {
1766
+ type: string;
1767
+ items: {
1768
+ readonly type: "object";
1769
+ readonly properties: {
1770
+ readonly id: {
1771
+ readonly type: "string";
1772
+ };
1773
+ readonly meta: {
1774
+ readonly type: "object";
1775
+ readonly properties: {
1776
+ readonly resourceType: {
1777
+ readonly type: "string";
1778
+ };
1779
+ readonly created: {
1780
+ readonly type: "string";
1781
+ readonly format: "date-time";
1782
+ };
1783
+ readonly lastModified: {
1784
+ readonly type: "string";
1785
+ readonly format: "date-time";
1786
+ };
1787
+ readonly location: {
1788
+ readonly type: "string";
1789
+ };
1790
+ };
1791
+ };
1792
+ readonly userName: {
1793
+ readonly type: "string";
1794
+ };
1795
+ readonly name: {
1796
+ readonly type: "object";
1797
+ readonly properties: {
1798
+ readonly formatted: {
1799
+ readonly type: "string";
1800
+ };
1801
+ readonly givenName: {
1802
+ readonly type: "string";
1803
+ };
1804
+ readonly familyName: {
1805
+ readonly type: "string";
1806
+ };
1807
+ };
1808
+ };
1809
+ readonly displayName: {
1810
+ readonly type: "string";
1811
+ };
1812
+ readonly active: {
1813
+ readonly type: "boolean";
1814
+ };
1815
+ readonly emails: {
1816
+ readonly type: "array";
1817
+ readonly items: {
1818
+ readonly type: "object";
1819
+ readonly properties: {
1820
+ readonly value: {
1821
+ readonly type: "string";
1822
+ };
1823
+ readonly primary: {
1824
+ readonly type: "boolean";
1825
+ };
1826
+ };
1827
+ };
1828
+ };
1829
+ readonly schemas: {
1830
+ readonly type: "array";
1831
+ readonly items: {
1832
+ readonly type: "string";
1833
+ };
1834
+ };
1835
+ };
1836
+ };
1837
+ };
1838
+ };
1839
+ };
1840
+ };
1841
+ };
1842
+ };
1843
+ };
1844
+ };
1845
+ scope: "server";
1846
+ };
1847
+ use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
1848
+ authSCIMToken: string;
1849
+ scimProvider: Omit<SCIMProvider, "id">;
1850
+ }>)[];
1851
+ }, {
1852
+ readonly schemas: readonly ["urn:ietf:params:scim:api:messages:2.0:ListResponse"];
1853
+ readonly totalResults: 0;
1854
+ readonly startIndex: 1;
1855
+ readonly itemsPerPage: 0;
1856
+ readonly Resources: readonly [];
1857
+ } | {
1858
+ schemas: string[];
1859
+ totalResults: number;
1860
+ startIndex: number;
1861
+ itemsPerPage: number;
1862
+ Resources: {
1863
+ id: string;
1864
+ externalId: string | undefined;
1865
+ meta: {
1866
+ resourceType: string;
1867
+ created: Date;
1868
+ lastModified: Date;
1869
+ location: string;
1870
+ };
1871
+ userName: string;
1872
+ name: {
1873
+ formatted: string;
1874
+ };
1875
+ displayName: string;
1876
+ active: boolean;
1877
+ emails: {
1878
+ primary: boolean;
1879
+ value: string;
1880
+ }[];
1881
+ schemas: string[];
1882
+ }[];
1883
+ }>;
1884
+ getSCIMServiceProviderConfig: better_call0.StrictEndpoint<"/scim/v2/ServiceProviderConfig", {
1885
+ method: "GET";
1886
+ metadata: {
1887
+ allowedMediaTypes: string[];
1888
+ openapi: {
1889
+ summary: string;
1890
+ description: string;
1891
+ responses: {
1892
+ "400": {
1893
+ description: string;
1894
+ content: {
1895
+ "application/json": {
1896
+ schema: {
1897
+ readonly type: "object";
1898
+ readonly properties: {
1899
+ readonly schemas: {
1900
+ readonly type: "array";
1901
+ readonly items: {
1902
+ readonly type: "string";
1903
+ };
1904
+ };
1905
+ readonly status: {
1906
+ readonly type: "string";
1907
+ };
1908
+ readonly detail: {
1909
+ readonly type: "string";
1910
+ };
1911
+ readonly scimType: {
1912
+ readonly type: "string";
1913
+ };
1914
+ };
1915
+ };
1916
+ };
1917
+ };
1918
+ };
1919
+ "401": {
1920
+ description: string;
1921
+ content: {
1922
+ "application/json": {
1923
+ schema: {
1924
+ readonly type: "object";
1925
+ readonly properties: {
1926
+ readonly schemas: {
1927
+ readonly type: "array";
1928
+ readonly items: {
1929
+ readonly type: "string";
1930
+ };
1931
+ };
1932
+ readonly status: {
1933
+ readonly type: "string";
1934
+ };
1935
+ readonly detail: {
1936
+ readonly type: "string";
1937
+ };
1938
+ readonly scimType: {
1939
+ readonly type: "string";
1940
+ };
1941
+ };
1942
+ };
1943
+ };
1944
+ };
1945
+ };
1946
+ "403": {
1947
+ description: string;
1948
+ content: {
1949
+ "application/json": {
1950
+ schema: {
1951
+ readonly type: "object";
1952
+ readonly properties: {
1953
+ readonly schemas: {
1954
+ readonly type: "array";
1955
+ readonly items: {
1956
+ readonly type: "string";
1957
+ };
1958
+ };
1959
+ readonly status: {
1960
+ readonly type: "string";
1961
+ };
1962
+ readonly detail: {
1963
+ readonly type: "string";
1964
+ };
1965
+ readonly scimType: {
1966
+ readonly type: "string";
1967
+ };
1968
+ };
1969
+ };
1970
+ };
1971
+ };
1972
+ };
1973
+ "404": {
1974
+ description: string;
1975
+ content: {
1976
+ "application/json": {
1977
+ schema: {
1978
+ readonly type: "object";
1979
+ readonly properties: {
1980
+ readonly schemas: {
1981
+ readonly type: "array";
1982
+ readonly items: {
1983
+ readonly type: "string";
1984
+ };
1985
+ };
1986
+ readonly status: {
1987
+ readonly type: "string";
1988
+ };
1989
+ readonly detail: {
1990
+ readonly type: "string";
1991
+ };
1992
+ readonly scimType: {
1993
+ readonly type: "string";
1994
+ };
1995
+ };
1996
+ };
1997
+ };
1998
+ };
1999
+ };
2000
+ "429": {
2001
+ description: string;
2002
+ content: {
2003
+ "application/json": {
2004
+ schema: {
2005
+ readonly type: "object";
2006
+ readonly properties: {
2007
+ readonly schemas: {
2008
+ readonly type: "array";
2009
+ readonly items: {
2010
+ readonly type: "string";
2011
+ };
2012
+ };
2013
+ readonly status: {
2014
+ readonly type: "string";
2015
+ };
2016
+ readonly detail: {
2017
+ readonly type: "string";
2018
+ };
2019
+ readonly scimType: {
2020
+ readonly type: "string";
2021
+ };
2022
+ };
2023
+ };
2024
+ };
2025
+ };
2026
+ };
2027
+ "500": {
2028
+ description: string;
2029
+ content: {
2030
+ "application/json": {
2031
+ schema: {
2032
+ readonly type: "object";
2033
+ readonly properties: {
2034
+ readonly schemas: {
2035
+ readonly type: "array";
2036
+ readonly items: {
2037
+ readonly type: "string";
2038
+ };
2039
+ };
2040
+ readonly status: {
2041
+ readonly type: "string";
2042
+ };
2043
+ readonly detail: {
2044
+ readonly type: "string";
2045
+ };
2046
+ readonly scimType: {
2047
+ readonly type: "string";
2048
+ };
2049
+ };
2050
+ };
2051
+ };
2052
+ };
2053
+ };
2054
+ "200": {
2055
+ description: string;
2056
+ content: {
2057
+ "application/json": {
2058
+ schema: {
2059
+ readonly type: "object";
2060
+ readonly properties: {
2061
+ readonly patch: {
2062
+ type: string;
2063
+ properties: {
2064
+ supported: {
2065
+ type: string;
2066
+ };
2067
+ };
2068
+ };
2069
+ readonly bulk: {
2070
+ type: string;
2071
+ properties: {
2072
+ supported: {
2073
+ type: string;
2074
+ };
2075
+ };
2076
+ };
2077
+ readonly filter: {
2078
+ type: string;
2079
+ properties: {
2080
+ supported: {
2081
+ type: string;
2082
+ };
2083
+ };
2084
+ };
2085
+ readonly changePassword: {
2086
+ type: string;
2087
+ properties: {
2088
+ supported: {
2089
+ type: string;
2090
+ };
2091
+ };
2092
+ };
2093
+ readonly sort: {
2094
+ type: string;
2095
+ properties: {
2096
+ supported: {
2097
+ type: string;
2098
+ };
2099
+ };
2100
+ };
2101
+ readonly etag: {
2102
+ type: string;
2103
+ properties: {
2104
+ supported: {
2105
+ type: string;
2106
+ };
2107
+ };
2108
+ };
2109
+ readonly authenticationSchemes: {
2110
+ readonly type: "array";
2111
+ readonly items: {
2112
+ readonly type: "object";
2113
+ readonly properties: {
2114
+ readonly name: {
2115
+ readonly type: "string";
2116
+ };
2117
+ readonly description: {
2118
+ readonly type: "string";
2119
+ };
2120
+ readonly specUri: {
2121
+ readonly type: "string";
2122
+ };
2123
+ readonly type: {
2124
+ readonly type: "string";
2125
+ };
2126
+ readonly primary: {
2127
+ readonly type: "boolean";
2128
+ };
2129
+ };
2130
+ };
2131
+ };
2132
+ readonly schemas: {
2133
+ readonly type: "array";
2134
+ readonly items: {
2135
+ readonly type: "string";
2136
+ };
2137
+ };
2138
+ readonly meta: {
2139
+ readonly type: "object";
2140
+ readonly properties: {
2141
+ readonly resourceType: {
2142
+ readonly type: "string";
2143
+ };
2144
+ };
2145
+ };
2146
+ };
2147
+ };
2148
+ };
2149
+ };
2150
+ };
2151
+ };
2152
+ };
2153
+ scope: "server";
2154
+ };
2155
+ }, {
2156
+ patch: {
2157
+ supported: boolean;
2158
+ };
2159
+ bulk: {
2160
+ supported: boolean;
2161
+ };
2162
+ filter: {
2163
+ supported: boolean;
2164
+ };
2165
+ changePassword: {
2166
+ supported: boolean;
2167
+ };
2168
+ sort: {
2169
+ supported: boolean;
2170
+ };
2171
+ etag: {
2172
+ supported: boolean;
2173
+ };
2174
+ authenticationSchemes: {
2175
+ name: string;
2176
+ description: string;
2177
+ specUri: string;
2178
+ type: string;
2179
+ primary: boolean;
2180
+ }[];
2181
+ schemas: string[];
2182
+ meta: {
2183
+ resourceType: string;
2184
+ };
2185
+ }>;
2186
+ getSCIMSchemas: better_call0.StrictEndpoint<"/scim/v2/Schemas", {
2187
+ method: "GET";
2188
+ metadata: {
2189
+ allowedMediaTypes: string[];
2190
+ openapi: {
2191
+ summary: string;
2192
+ description: string;
2193
+ responses: {
2194
+ "400": {
2195
+ description: string;
2196
+ content: {
2197
+ "application/json": {
2198
+ schema: {
2199
+ readonly type: "object";
2200
+ readonly properties: {
2201
+ readonly schemas: {
2202
+ readonly type: "array";
2203
+ readonly items: {
2204
+ readonly type: "string";
2205
+ };
2206
+ };
2207
+ readonly status: {
2208
+ readonly type: "string";
2209
+ };
2210
+ readonly detail: {
2211
+ readonly type: "string";
2212
+ };
2213
+ readonly scimType: {
2214
+ readonly type: "string";
2215
+ };
2216
+ };
2217
+ };
2218
+ };
2219
+ };
2220
+ };
2221
+ "401": {
2222
+ description: string;
2223
+ content: {
2224
+ "application/json": {
2225
+ schema: {
2226
+ readonly type: "object";
2227
+ readonly properties: {
2228
+ readonly schemas: {
2229
+ readonly type: "array";
2230
+ readonly items: {
2231
+ readonly type: "string";
2232
+ };
2233
+ };
2234
+ readonly status: {
2235
+ readonly type: "string";
2236
+ };
2237
+ readonly detail: {
2238
+ readonly type: "string";
2239
+ };
2240
+ readonly scimType: {
2241
+ readonly type: "string";
2242
+ };
2243
+ };
2244
+ };
2245
+ };
2246
+ };
2247
+ };
2248
+ "403": {
2249
+ description: string;
2250
+ content: {
2251
+ "application/json": {
2252
+ schema: {
2253
+ readonly type: "object";
2254
+ readonly properties: {
2255
+ readonly schemas: {
2256
+ readonly type: "array";
2257
+ readonly items: {
2258
+ readonly type: "string";
2259
+ };
2260
+ };
2261
+ readonly status: {
2262
+ readonly type: "string";
2263
+ };
2264
+ readonly detail: {
2265
+ readonly type: "string";
2266
+ };
2267
+ readonly scimType: {
2268
+ readonly type: "string";
2269
+ };
2270
+ };
2271
+ };
2272
+ };
2273
+ };
2274
+ };
2275
+ "404": {
2276
+ description: string;
2277
+ content: {
2278
+ "application/json": {
2279
+ schema: {
2280
+ readonly type: "object";
2281
+ readonly properties: {
2282
+ readonly schemas: {
2283
+ readonly type: "array";
2284
+ readonly items: {
2285
+ readonly type: "string";
2286
+ };
2287
+ };
2288
+ readonly status: {
2289
+ readonly type: "string";
2290
+ };
2291
+ readonly detail: {
2292
+ readonly type: "string";
2293
+ };
2294
+ readonly scimType: {
2295
+ readonly type: "string";
2296
+ };
2297
+ };
2298
+ };
2299
+ };
2300
+ };
2301
+ };
2302
+ "429": {
2303
+ description: string;
2304
+ content: {
2305
+ "application/json": {
2306
+ schema: {
2307
+ readonly type: "object";
2308
+ readonly properties: {
2309
+ readonly schemas: {
2310
+ readonly type: "array";
2311
+ readonly items: {
2312
+ readonly type: "string";
2313
+ };
2314
+ };
2315
+ readonly status: {
2316
+ readonly type: "string";
2317
+ };
2318
+ readonly detail: {
2319
+ readonly type: "string";
2320
+ };
2321
+ readonly scimType: {
2322
+ readonly type: "string";
2323
+ };
2324
+ };
2325
+ };
2326
+ };
2327
+ };
2328
+ };
2329
+ "500": {
2330
+ description: string;
2331
+ content: {
2332
+ "application/json": {
2333
+ schema: {
2334
+ readonly type: "object";
2335
+ readonly properties: {
2336
+ readonly schemas: {
2337
+ readonly type: "array";
2338
+ readonly items: {
2339
+ readonly type: "string";
2340
+ };
2341
+ };
2342
+ readonly status: {
2343
+ readonly type: "string";
2344
+ };
2345
+ readonly detail: {
2346
+ readonly type: "string";
2347
+ };
2348
+ readonly scimType: {
2349
+ readonly type: "string";
2350
+ };
2351
+ };
2352
+ };
2353
+ };
2354
+ };
2355
+ };
2356
+ "200": {
2357
+ description: string;
2358
+ content: {
2359
+ "application/json": {
2360
+ schema: {
2361
+ type: "array";
2362
+ items: {
2363
+ readonly type: "object";
2364
+ readonly properties: {
2365
+ readonly id: {
2366
+ readonly type: "string";
2367
+ };
2368
+ readonly schemas: {
2369
+ readonly type: "array";
2370
+ readonly items: {
2371
+ readonly type: "string";
2372
+ };
2373
+ };
2374
+ readonly name: {
2375
+ readonly type: "string";
2376
+ };
2377
+ readonly description: {
2378
+ readonly type: "string";
2379
+ };
2380
+ readonly attributes: {
2381
+ readonly type: "array";
2382
+ readonly items: {
2383
+ readonly properties: {
2384
+ readonly subAttributes: {
2385
+ readonly type: "array";
2386
+ readonly items: {
2387
+ readonly type: "object";
2388
+ readonly properties: {
2389
+ readonly name: {
2390
+ readonly type: "string";
2391
+ };
2392
+ readonly type: {
2393
+ readonly type: "string";
2394
+ };
2395
+ readonly multiValued: {
2396
+ readonly type: "boolean";
2397
+ };
2398
+ readonly description: {
2399
+ readonly type: "string";
2400
+ };
2401
+ readonly required: {
2402
+ readonly type: "boolean";
2403
+ };
2404
+ readonly caseExact: {
2405
+ readonly type: "boolean";
2406
+ };
2407
+ readonly mutability: {
2408
+ readonly type: "string";
2409
+ };
2410
+ readonly returned: {
2411
+ readonly type: "string";
2412
+ };
2413
+ readonly uniqueness: {
2414
+ readonly type: "string";
2415
+ };
2416
+ };
2417
+ };
2418
+ };
2419
+ readonly name: {
2420
+ readonly type: "string";
2421
+ };
2422
+ readonly type: {
2423
+ readonly type: "string";
2424
+ };
2425
+ readonly multiValued: {
2426
+ readonly type: "boolean";
2427
+ };
2428
+ readonly description: {
2429
+ readonly type: "string";
2430
+ };
2431
+ readonly required: {
2432
+ readonly type: "boolean";
2433
+ };
2434
+ readonly caseExact: {
2435
+ readonly type: "boolean";
2436
+ };
2437
+ readonly mutability: {
2438
+ readonly type: "string";
2439
+ };
2440
+ readonly returned: {
2441
+ readonly type: "string";
2442
+ };
2443
+ readonly uniqueness: {
2444
+ readonly type: "string";
2445
+ };
2446
+ };
2447
+ readonly type: "object";
2448
+ };
2449
+ };
2450
+ readonly meta: {
2451
+ readonly type: "object";
2452
+ readonly properties: {
2453
+ readonly resourceType: {
2454
+ readonly type: "string";
2455
+ };
2456
+ readonly location: {
2457
+ readonly type: "string";
2458
+ };
2459
+ };
2460
+ readonly required: readonly ["resourceType", "location"];
2461
+ };
2462
+ };
2463
+ };
2464
+ };
2465
+ };
2466
+ };
2467
+ };
2468
+ };
2469
+ };
2470
+ scope: "server";
2471
+ };
2472
+ }, {
2473
+ totalResults: number;
2474
+ itemsPerPage: number;
2475
+ startIndex: number;
2476
+ schemas: string[];
2477
+ Resources: {
2478
+ meta: {
2479
+ location: string;
2480
+ resourceType: string;
2481
+ };
2482
+ id: string;
2483
+ schemas: string[];
2484
+ name: string;
2485
+ description: string;
2486
+ attributes: ({
2487
+ name: string;
2488
+ type: string;
2489
+ multiValued: boolean;
2490
+ description: string;
2491
+ required: boolean;
2492
+ caseExact: boolean;
2493
+ mutability: string;
2494
+ returned: string;
2495
+ uniqueness: string;
2496
+ subAttributes?: undefined;
2497
+ } | {
2498
+ name: string;
2499
+ type: string;
2500
+ multiValued: boolean;
2501
+ description: string;
2502
+ required: boolean;
2503
+ mutability: string;
2504
+ returned: string;
2505
+ caseExact?: undefined;
2506
+ uniqueness?: undefined;
2507
+ subAttributes?: undefined;
2508
+ } | {
2509
+ name: string;
2510
+ type: string;
2511
+ multiValued: boolean;
2512
+ description: string;
2513
+ required: boolean;
2514
+ subAttributes: {
2515
+ name: string;
2516
+ type: string;
2517
+ multiValued: boolean;
2518
+ description: string;
2519
+ required: boolean;
2520
+ caseExact: boolean;
2521
+ mutability: string;
2522
+ returned: string;
2523
+ uniqueness: string;
2524
+ }[];
2525
+ caseExact?: undefined;
2526
+ mutability?: undefined;
2527
+ returned?: undefined;
2528
+ uniqueness?: undefined;
2529
+ } | {
2530
+ name: string;
2531
+ type: string;
2532
+ multiValued: boolean;
2533
+ description: string;
2534
+ required: boolean;
2535
+ subAttributes: ({
2536
+ name: string;
2537
+ type: string;
2538
+ multiValued: boolean;
2539
+ description: string;
2540
+ required: boolean;
2541
+ caseExact: boolean;
2542
+ mutability: string;
2543
+ returned: string;
2544
+ uniqueness: string;
2545
+ } | {
2546
+ name: string;
2547
+ type: string;
2548
+ multiValued: boolean;
2549
+ description: string;
2550
+ required: boolean;
2551
+ mutability: string;
2552
+ returned: string;
2553
+ caseExact?: undefined;
2554
+ uniqueness?: undefined;
2555
+ })[];
2556
+ mutability: string;
2557
+ returned: string;
2558
+ uniqueness: string;
2559
+ caseExact?: undefined;
2560
+ })[];
2561
+ }[];
2562
+ }>;
2563
+ getSCIMSchema: better_call0.StrictEndpoint<"/scim/v2/Schemas/:schemaId", {
2564
+ method: "GET";
2565
+ metadata: {
2566
+ allowedMediaTypes: string[];
2567
+ openapi: {
2568
+ summary: string;
2569
+ description: string;
2570
+ responses: {
2571
+ "400": {
2572
+ description: string;
2573
+ content: {
2574
+ "application/json": {
2575
+ schema: {
2576
+ readonly type: "object";
2577
+ readonly properties: {
2578
+ readonly schemas: {
2579
+ readonly type: "array";
2580
+ readonly items: {
2581
+ readonly type: "string";
2582
+ };
2583
+ };
2584
+ readonly status: {
2585
+ readonly type: "string";
2586
+ };
2587
+ readonly detail: {
2588
+ readonly type: "string";
2589
+ };
2590
+ readonly scimType: {
2591
+ readonly type: "string";
2592
+ };
2593
+ };
2594
+ };
2595
+ };
2596
+ };
2597
+ };
2598
+ "401": {
2599
+ description: string;
2600
+ content: {
2601
+ "application/json": {
2602
+ schema: {
2603
+ readonly type: "object";
2604
+ readonly properties: {
2605
+ readonly schemas: {
2606
+ readonly type: "array";
2607
+ readonly items: {
2608
+ readonly type: "string";
2609
+ };
2610
+ };
2611
+ readonly status: {
2612
+ readonly type: "string";
2613
+ };
2614
+ readonly detail: {
2615
+ readonly type: "string";
2616
+ };
2617
+ readonly scimType: {
2618
+ readonly type: "string";
2619
+ };
2620
+ };
2621
+ };
2622
+ };
2623
+ };
2624
+ };
2625
+ "403": {
2626
+ description: string;
2627
+ content: {
2628
+ "application/json": {
2629
+ schema: {
2630
+ readonly type: "object";
2631
+ readonly properties: {
2632
+ readonly schemas: {
2633
+ readonly type: "array";
2634
+ readonly items: {
2635
+ readonly type: "string";
2636
+ };
2637
+ };
2638
+ readonly status: {
2639
+ readonly type: "string";
2640
+ };
2641
+ readonly detail: {
2642
+ readonly type: "string";
2643
+ };
2644
+ readonly scimType: {
2645
+ readonly type: "string";
2646
+ };
2647
+ };
2648
+ };
2649
+ };
2650
+ };
2651
+ };
2652
+ "404": {
2653
+ description: string;
2654
+ content: {
2655
+ "application/json": {
2656
+ schema: {
2657
+ readonly type: "object";
2658
+ readonly properties: {
2659
+ readonly schemas: {
2660
+ readonly type: "array";
2661
+ readonly items: {
2662
+ readonly type: "string";
2663
+ };
2664
+ };
2665
+ readonly status: {
2666
+ readonly type: "string";
2667
+ };
2668
+ readonly detail: {
2669
+ readonly type: "string";
2670
+ };
2671
+ readonly scimType: {
2672
+ readonly type: "string";
2673
+ };
2674
+ };
2675
+ };
2676
+ };
2677
+ };
2678
+ };
2679
+ "429": {
2680
+ description: string;
2681
+ content: {
2682
+ "application/json": {
2683
+ schema: {
2684
+ readonly type: "object";
2685
+ readonly properties: {
2686
+ readonly schemas: {
2687
+ readonly type: "array";
2688
+ readonly items: {
2689
+ readonly type: "string";
2690
+ };
2691
+ };
2692
+ readonly status: {
2693
+ readonly type: "string";
2694
+ };
2695
+ readonly detail: {
2696
+ readonly type: "string";
2697
+ };
2698
+ readonly scimType: {
2699
+ readonly type: "string";
2700
+ };
2701
+ };
2702
+ };
2703
+ };
2704
+ };
2705
+ };
2706
+ "500": {
2707
+ description: string;
2708
+ content: {
2709
+ "application/json": {
2710
+ schema: {
2711
+ readonly type: "object";
2712
+ readonly properties: {
2713
+ readonly schemas: {
2714
+ readonly type: "array";
2715
+ readonly items: {
2716
+ readonly type: "string";
2717
+ };
2718
+ };
2719
+ readonly status: {
2720
+ readonly type: "string";
2721
+ };
2722
+ readonly detail: {
2723
+ readonly type: "string";
2724
+ };
2725
+ readonly scimType: {
2726
+ readonly type: "string";
2727
+ };
2728
+ };
2729
+ };
2730
+ };
2731
+ };
2732
+ };
2733
+ "200": {
2734
+ description: string;
2735
+ content: {
2736
+ "application/json": {
2737
+ schema: {
2738
+ readonly type: "object";
2739
+ readonly properties: {
2740
+ readonly id: {
2741
+ readonly type: "string";
2742
+ };
2743
+ readonly schemas: {
2744
+ readonly type: "array";
2745
+ readonly items: {
2746
+ readonly type: "string";
2747
+ };
2748
+ };
2749
+ readonly name: {
2750
+ readonly type: "string";
2751
+ };
2752
+ readonly description: {
2753
+ readonly type: "string";
2754
+ };
2755
+ readonly attributes: {
2756
+ readonly type: "array";
2757
+ readonly items: {
2758
+ readonly properties: {
2759
+ readonly subAttributes: {
2760
+ readonly type: "array";
2761
+ readonly items: {
2762
+ readonly type: "object";
2763
+ readonly properties: {
2764
+ readonly name: {
2765
+ readonly type: "string";
2766
+ };
2767
+ readonly type: {
2768
+ readonly type: "string";
2769
+ };
2770
+ readonly multiValued: {
2771
+ readonly type: "boolean";
2772
+ };
2773
+ readonly description: {
2774
+ readonly type: "string";
2775
+ };
2776
+ readonly required: {
2777
+ readonly type: "boolean";
2778
+ };
2779
+ readonly caseExact: {
2780
+ readonly type: "boolean";
2781
+ };
2782
+ readonly mutability: {
2783
+ readonly type: "string";
2784
+ };
2785
+ readonly returned: {
2786
+ readonly type: "string";
2787
+ };
2788
+ readonly uniqueness: {
2789
+ readonly type: "string";
2790
+ };
2791
+ };
2792
+ };
2793
+ };
2794
+ readonly name: {
2795
+ readonly type: "string";
2796
+ };
2797
+ readonly type: {
2798
+ readonly type: "string";
2799
+ };
2800
+ readonly multiValued: {
2801
+ readonly type: "boolean";
2802
+ };
2803
+ readonly description: {
2804
+ readonly type: "string";
2805
+ };
2806
+ readonly required: {
2807
+ readonly type: "boolean";
2808
+ };
2809
+ readonly caseExact: {
2810
+ readonly type: "boolean";
2811
+ };
2812
+ readonly mutability: {
2813
+ readonly type: "string";
2814
+ };
2815
+ readonly returned: {
2816
+ readonly type: "string";
2817
+ };
2818
+ readonly uniqueness: {
2819
+ readonly type: "string";
2820
+ };
2821
+ };
2822
+ readonly type: "object";
2823
+ };
2824
+ };
2825
+ readonly meta: {
2826
+ readonly type: "object";
2827
+ readonly properties: {
2828
+ readonly resourceType: {
2829
+ readonly type: "string";
2830
+ };
2831
+ readonly location: {
2832
+ readonly type: "string";
2833
+ };
2834
+ };
2835
+ readonly required: readonly ["resourceType", "location"];
2836
+ };
2837
+ };
2838
+ };
2839
+ };
2840
+ };
2841
+ };
2842
+ };
2843
+ };
2844
+ scope: "server";
2845
+ };
2846
+ }, {
2847
+ meta: {
2848
+ location: string;
2849
+ resourceType: string;
2850
+ };
2851
+ id: string;
2852
+ schemas: string[];
2853
+ name: string;
2854
+ description: string;
2855
+ attributes: ({
2856
+ name: string;
2857
+ type: string;
2858
+ multiValued: boolean;
2859
+ description: string;
2860
+ required: boolean;
2861
+ caseExact: boolean;
2862
+ mutability: string;
2863
+ returned: string;
2864
+ uniqueness: string;
2865
+ subAttributes?: undefined;
2866
+ } | {
2867
+ name: string;
2868
+ type: string;
2869
+ multiValued: boolean;
2870
+ description: string;
2871
+ required: boolean;
2872
+ mutability: string;
2873
+ returned: string;
2874
+ caseExact?: undefined;
2875
+ uniqueness?: undefined;
2876
+ subAttributes?: undefined;
2877
+ } | {
2878
+ name: string;
2879
+ type: string;
2880
+ multiValued: boolean;
2881
+ description: string;
2882
+ required: boolean;
2883
+ subAttributes: {
2884
+ name: string;
2885
+ type: string;
2886
+ multiValued: boolean;
2887
+ description: string;
2888
+ required: boolean;
2889
+ caseExact: boolean;
2890
+ mutability: string;
2891
+ returned: string;
2892
+ uniqueness: string;
2893
+ }[];
2894
+ caseExact?: undefined;
2895
+ mutability?: undefined;
2896
+ returned?: undefined;
2897
+ uniqueness?: undefined;
2898
+ } | {
2899
+ name: string;
2900
+ type: string;
2901
+ multiValued: boolean;
2902
+ description: string;
2903
+ required: boolean;
2904
+ subAttributes: ({
2905
+ name: string;
2906
+ type: string;
2907
+ multiValued: boolean;
2908
+ description: string;
2909
+ required: boolean;
2910
+ caseExact: boolean;
2911
+ mutability: string;
2912
+ returned: string;
2913
+ uniqueness: string;
2914
+ } | {
2915
+ name: string;
2916
+ type: string;
2917
+ multiValued: boolean;
2918
+ description: string;
2919
+ required: boolean;
2920
+ mutability: string;
2921
+ returned: string;
2922
+ caseExact?: undefined;
2923
+ uniqueness?: undefined;
2924
+ })[];
2925
+ mutability: string;
2926
+ returned: string;
2927
+ uniqueness: string;
2928
+ caseExact?: undefined;
2929
+ })[];
2930
+ }>;
2931
+ getSCIMResourceTypes: better_call0.StrictEndpoint<"/scim/v2/ResourceTypes", {
2932
+ method: "GET";
2933
+ metadata: {
2934
+ allowedMediaTypes: string[];
2935
+ openapi: {
2936
+ summary: string;
2937
+ description: string;
2938
+ responses: {
2939
+ "400": {
2940
+ description: string;
2941
+ content: {
2942
+ "application/json": {
2943
+ schema: {
2944
+ readonly type: "object";
2945
+ readonly properties: {
2946
+ readonly schemas: {
2947
+ readonly type: "array";
2948
+ readonly items: {
2949
+ readonly type: "string";
2950
+ };
2951
+ };
2952
+ readonly status: {
2953
+ readonly type: "string";
2954
+ };
2955
+ readonly detail: {
2956
+ readonly type: "string";
2957
+ };
2958
+ readonly scimType: {
2959
+ readonly type: "string";
2960
+ };
2961
+ };
2962
+ };
2963
+ };
2964
+ };
2965
+ };
2966
+ "401": {
2967
+ description: string;
2968
+ content: {
2969
+ "application/json": {
2970
+ schema: {
2971
+ readonly type: "object";
2972
+ readonly properties: {
2973
+ readonly schemas: {
2974
+ readonly type: "array";
2975
+ readonly items: {
2976
+ readonly type: "string";
2977
+ };
2978
+ };
2979
+ readonly status: {
2980
+ readonly type: "string";
2981
+ };
2982
+ readonly detail: {
2983
+ readonly type: "string";
2984
+ };
2985
+ readonly scimType: {
2986
+ readonly type: "string";
2987
+ };
2988
+ };
2989
+ };
2990
+ };
2991
+ };
2992
+ };
2993
+ "403": {
2994
+ description: string;
2995
+ content: {
2996
+ "application/json": {
2997
+ schema: {
2998
+ readonly type: "object";
2999
+ readonly properties: {
3000
+ readonly schemas: {
3001
+ readonly type: "array";
3002
+ readonly items: {
3003
+ readonly type: "string";
3004
+ };
3005
+ };
3006
+ readonly status: {
3007
+ readonly type: "string";
3008
+ };
3009
+ readonly detail: {
3010
+ readonly type: "string";
3011
+ };
3012
+ readonly scimType: {
3013
+ readonly type: "string";
3014
+ };
3015
+ };
3016
+ };
3017
+ };
3018
+ };
3019
+ };
3020
+ "404": {
3021
+ description: string;
3022
+ content: {
3023
+ "application/json": {
3024
+ schema: {
3025
+ readonly type: "object";
3026
+ readonly properties: {
3027
+ readonly schemas: {
3028
+ readonly type: "array";
3029
+ readonly items: {
3030
+ readonly type: "string";
3031
+ };
3032
+ };
3033
+ readonly status: {
3034
+ readonly type: "string";
3035
+ };
3036
+ readonly detail: {
3037
+ readonly type: "string";
3038
+ };
3039
+ readonly scimType: {
3040
+ readonly type: "string";
3041
+ };
3042
+ };
3043
+ };
3044
+ };
3045
+ };
3046
+ };
3047
+ "429": {
3048
+ description: string;
3049
+ content: {
3050
+ "application/json": {
3051
+ schema: {
3052
+ readonly type: "object";
3053
+ readonly properties: {
3054
+ readonly schemas: {
3055
+ readonly type: "array";
3056
+ readonly items: {
3057
+ readonly type: "string";
3058
+ };
3059
+ };
3060
+ readonly status: {
3061
+ readonly type: "string";
3062
+ };
3063
+ readonly detail: {
3064
+ readonly type: "string";
3065
+ };
3066
+ readonly scimType: {
3067
+ readonly type: "string";
3068
+ };
3069
+ };
3070
+ };
3071
+ };
3072
+ };
3073
+ };
3074
+ "500": {
3075
+ description: string;
3076
+ content: {
3077
+ "application/json": {
3078
+ schema: {
3079
+ readonly type: "object";
3080
+ readonly properties: {
3081
+ readonly schemas: {
3082
+ readonly type: "array";
3083
+ readonly items: {
3084
+ readonly type: "string";
3085
+ };
3086
+ };
3087
+ readonly status: {
3088
+ readonly type: "string";
3089
+ };
3090
+ readonly detail: {
3091
+ readonly type: "string";
3092
+ };
3093
+ readonly scimType: {
3094
+ readonly type: "string";
3095
+ };
3096
+ };
3097
+ };
3098
+ };
3099
+ };
3100
+ };
3101
+ "200": {
3102
+ description: string;
3103
+ content: {
3104
+ "application/json": {
3105
+ schema: {
3106
+ type: "object";
3107
+ properties: {
3108
+ totalResults: {
3109
+ type: string;
3110
+ };
3111
+ itemsPerPage: {
3112
+ type: string;
3113
+ };
3114
+ startIndex: {
3115
+ type: string;
3116
+ };
3117
+ Resources: {
3118
+ type: string;
3119
+ items: {
3120
+ readonly type: "object";
3121
+ readonly properties: {
3122
+ readonly schemas: {
3123
+ readonly type: "array";
3124
+ readonly items: {
3125
+ readonly type: "string";
3126
+ };
3127
+ };
3128
+ readonly id: {
3129
+ readonly type: "string";
3130
+ };
3131
+ readonly name: {
3132
+ readonly type: "string";
3133
+ };
3134
+ readonly endpoint: {
3135
+ readonly type: "string";
3136
+ };
3137
+ readonly description: {
3138
+ readonly type: "string";
3139
+ };
3140
+ readonly schema: {
3141
+ readonly type: "string";
3142
+ };
3143
+ readonly meta: {
3144
+ readonly type: "object";
3145
+ readonly properties: {
3146
+ readonly resourceType: {
3147
+ readonly type: "string";
3148
+ };
3149
+ readonly location: {
3150
+ readonly type: "string";
3151
+ };
3152
+ };
3153
+ };
3154
+ };
3155
+ };
3156
+ };
3157
+ };
3158
+ };
3159
+ };
3160
+ };
3161
+ };
3162
+ };
3163
+ };
3164
+ scope: "server";
3165
+ };
3166
+ }, {
3167
+ totalResults: number;
3168
+ itemsPerPage: number;
3169
+ startIndex: number;
3170
+ schemas: string[];
3171
+ Resources: {
3172
+ meta: {
3173
+ location: string;
3174
+ resourceType: string;
3175
+ };
3176
+ schemas: string[];
3177
+ id: string;
3178
+ name: string;
3179
+ endpoint: string;
3180
+ description: string;
3181
+ schema: string;
3182
+ }[];
3183
+ }>;
3184
+ getSCIMResourceType: better_call0.StrictEndpoint<"/scim/v2/ResourceTypes/:resourceTypeId", {
3185
+ method: "GET";
3186
+ metadata: {
3187
+ allowedMediaTypes: string[];
3188
+ openapi: {
3189
+ summary: string;
3190
+ description: string;
3191
+ responses: {
3192
+ "400": {
3193
+ description: string;
3194
+ content: {
3195
+ "application/json": {
3196
+ schema: {
3197
+ readonly type: "object";
3198
+ readonly properties: {
3199
+ readonly schemas: {
3200
+ readonly type: "array";
3201
+ readonly items: {
3202
+ readonly type: "string";
3203
+ };
3204
+ };
3205
+ readonly status: {
3206
+ readonly type: "string";
3207
+ };
3208
+ readonly detail: {
3209
+ readonly type: "string";
3210
+ };
3211
+ readonly scimType: {
3212
+ readonly type: "string";
3213
+ };
3214
+ };
3215
+ };
3216
+ };
3217
+ };
3218
+ };
3219
+ "401": {
3220
+ description: string;
3221
+ content: {
3222
+ "application/json": {
3223
+ schema: {
3224
+ readonly type: "object";
3225
+ readonly properties: {
3226
+ readonly schemas: {
3227
+ readonly type: "array";
3228
+ readonly items: {
3229
+ readonly type: "string";
3230
+ };
3231
+ };
3232
+ readonly status: {
3233
+ readonly type: "string";
3234
+ };
3235
+ readonly detail: {
3236
+ readonly type: "string";
3237
+ };
3238
+ readonly scimType: {
3239
+ readonly type: "string";
3240
+ };
3241
+ };
3242
+ };
3243
+ };
3244
+ };
3245
+ };
3246
+ "403": {
3247
+ description: string;
3248
+ content: {
3249
+ "application/json": {
3250
+ schema: {
3251
+ readonly type: "object";
3252
+ readonly properties: {
3253
+ readonly schemas: {
3254
+ readonly type: "array";
3255
+ readonly items: {
3256
+ readonly type: "string";
3257
+ };
3258
+ };
3259
+ readonly status: {
3260
+ readonly type: "string";
3261
+ };
3262
+ readonly detail: {
3263
+ readonly type: "string";
3264
+ };
3265
+ readonly scimType: {
3266
+ readonly type: "string";
3267
+ };
3268
+ };
3269
+ };
3270
+ };
3271
+ };
3272
+ };
3273
+ "404": {
3274
+ description: string;
3275
+ content: {
3276
+ "application/json": {
3277
+ schema: {
3278
+ readonly type: "object";
3279
+ readonly properties: {
3280
+ readonly schemas: {
3281
+ readonly type: "array";
3282
+ readonly items: {
3283
+ readonly type: "string";
3284
+ };
3285
+ };
3286
+ readonly status: {
3287
+ readonly type: "string";
3288
+ };
3289
+ readonly detail: {
3290
+ readonly type: "string";
3291
+ };
3292
+ readonly scimType: {
3293
+ readonly type: "string";
3294
+ };
3295
+ };
3296
+ };
3297
+ };
3298
+ };
3299
+ };
3300
+ "429": {
3301
+ description: string;
3302
+ content: {
3303
+ "application/json": {
3304
+ schema: {
3305
+ readonly type: "object";
3306
+ readonly properties: {
3307
+ readonly schemas: {
3308
+ readonly type: "array";
3309
+ readonly items: {
3310
+ readonly type: "string";
3311
+ };
3312
+ };
3313
+ readonly status: {
3314
+ readonly type: "string";
3315
+ };
3316
+ readonly detail: {
3317
+ readonly type: "string";
3318
+ };
3319
+ readonly scimType: {
3320
+ readonly type: "string";
3321
+ };
3322
+ };
3323
+ };
3324
+ };
3325
+ };
3326
+ };
3327
+ "500": {
3328
+ description: string;
3329
+ content: {
3330
+ "application/json": {
3331
+ schema: {
3332
+ readonly type: "object";
3333
+ readonly properties: {
3334
+ readonly schemas: {
3335
+ readonly type: "array";
3336
+ readonly items: {
3337
+ readonly type: "string";
3338
+ };
3339
+ };
3340
+ readonly status: {
3341
+ readonly type: "string";
3342
+ };
3343
+ readonly detail: {
3344
+ readonly type: "string";
3345
+ };
3346
+ readonly scimType: {
3347
+ readonly type: "string";
3348
+ };
3349
+ };
3350
+ };
3351
+ };
3352
+ };
3353
+ };
3354
+ "200": {
3355
+ description: string;
3356
+ content: {
3357
+ "application/json": {
3358
+ schema: {
3359
+ readonly type: "object";
3360
+ readonly properties: {
3361
+ readonly schemas: {
3362
+ readonly type: "array";
3363
+ readonly items: {
3364
+ readonly type: "string";
3365
+ };
3366
+ };
3367
+ readonly id: {
3368
+ readonly type: "string";
3369
+ };
3370
+ readonly name: {
3371
+ readonly type: "string";
3372
+ };
3373
+ readonly endpoint: {
3374
+ readonly type: "string";
3375
+ };
3376
+ readonly description: {
3377
+ readonly type: "string";
3378
+ };
3379
+ readonly schema: {
3380
+ readonly type: "string";
3381
+ };
3382
+ readonly meta: {
3383
+ readonly type: "object";
3384
+ readonly properties: {
3385
+ readonly resourceType: {
3386
+ readonly type: "string";
3387
+ };
3388
+ readonly location: {
3389
+ readonly type: "string";
3390
+ };
3391
+ };
3392
+ };
3393
+ };
3394
+ };
3395
+ };
3396
+ };
3397
+ };
3398
+ };
3399
+ };
3400
+ scope: "server";
3401
+ };
3402
+ }, {
3403
+ meta: {
3404
+ location: string;
3405
+ resourceType: string;
3406
+ };
3407
+ schemas: string[];
3408
+ id: string;
3409
+ name: string;
3410
+ endpoint: string;
3411
+ description: string;
3412
+ schema: string;
3413
+ }>;
3414
+ };
3415
+ schema: {
3416
+ scimProvider: {
3417
+ fields: {
3418
+ userId?: {
3419
+ type: "string";
3420
+ required: false;
3421
+ } | undefined;
3422
+ providerId: {
3423
+ type: "string";
3424
+ required: true;
3425
+ unique: true;
3426
+ };
3427
+ scimToken: {
3428
+ type: "string";
3429
+ required: true;
3430
+ unique: true;
3431
+ };
3432
+ organizationId: {
3433
+ type: "string";
3434
+ required: false;
3435
+ };
3436
+ };
3437
+ };
3438
+ };
3439
+ options: SCIMOptions | undefined;
3440
+ };
3441
+ //#endregion
3442
+ export { SCIMEmail, SCIMName, SCIMOptions, SCIMProvider, scim };
3443
+ //# sourceMappingURL=index.d.mts.map