@better-auth/scim 1.4.0-beta.27

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