better-auth 1.6.26 → 1.6.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.
- package/dist/api/index.d.mts +74 -73
- package/dist/api/middlewares/authorization.d.mts +4 -4
- package/dist/api/middlewares/origin-check.d.mts +3 -3
- package/dist/api/routes/account.d.mts +6 -6
- package/dist/api/routes/email-verification.d.mts +1 -1
- package/dist/api/routes/password.d.mts +4 -4
- package/dist/api/routes/session.d.mts +16 -16
- package/dist/api/routes/session.mjs +2 -3
- package/dist/api/routes/sign-in.d.mts +1 -1
- package/dist/api/routes/sign-up.d.mts +1 -1
- package/dist/api/routes/update-session.d.mts +2 -2
- package/dist/api/routes/update-user.d.mts +11 -11
- package/dist/client/session-atom.mjs +33 -44
- package/dist/integrations/next-js.d.mts +2 -2
- package/dist/integrations/svelte-kit.d.mts +1 -1
- package/dist/integrations/tanstack-start-solid.d.mts +1 -1
- package/dist/integrations/tanstack-start.d.mts +1 -1
- package/dist/package.mjs +1 -1
- package/dist/plugins/admin/admin.d.mts +25 -25
- package/dist/plugins/anonymous/index.d.mts +3 -3
- package/dist/plugins/bearer/index.d.mts +3 -3
- package/dist/plugins/custom-session/index.d.mts +1 -1
- package/dist/plugins/email-otp/index.d.mts +6 -6
- package/dist/plugins/generic-oauth/index.d.mts +2 -2
- package/dist/plugins/jwt/index.d.mts +3 -3
- package/dist/plugins/last-login-method/index.d.mts +2 -2
- package/dist/plugins/magic-link/index.d.mts +2 -2
- package/dist/plugins/mcp/index.d.mts +3 -3
- package/dist/plugins/multi-session/index.d.mts +3 -3
- package/dist/plugins/oauth-popup/index.d.mts +1 -1
- package/dist/plugins/oauth-proxy/index.d.mts +3 -3
- package/dist/plugins/oidc-provider/index.d.mts +6 -6
- package/dist/plugins/one-time-token/index.d.mts +3 -3
- package/dist/plugins/organization/organization.d.mts +28 -4
- package/dist/plugins/organization/routes/crud-access-control.d.mts +140 -20
- package/dist/plugins/organization/routes/crud-invites.d.mts +149 -29
- package/dist/plugins/organization/routes/crud-members.d.mts +150 -30
- package/dist/plugins/organization/routes/crud-org.d.mts +96 -24
- package/dist/plugins/organization/routes/crud-team.d.mts +207 -39
- package/dist/plugins/phone-number/index.d.mts +1 -1
- package/dist/plugins/two-factor/backup-codes/index.d.mts +2 -2
- package/dist/plugins/two-factor/index.d.mts +10 -10
- package/dist/plugins/two-factor/totp/index.d.mts +2 -2
- package/dist/plugins/username/index.d.mts +1 -1
- package/package.json +10 -9
|
@@ -16,7 +16,7 @@ declare const addMember: <O extends OrganizationOptions>(option: O) => import("b
|
|
|
16
16
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
17
17
|
teamId: z.ZodOptional<z.ZodString>;
|
|
18
18
|
}, z.core.$strip>;
|
|
19
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
19
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
20
20
|
orgOptions: OrganizationOptions;
|
|
21
21
|
roles: typeof defaultRoles & {
|
|
22
22
|
[key: string]: Role<{}>;
|
|
@@ -45,7 +45,7 @@ declare const addMember: <O extends OrganizationOptions>(option: O) => import("b
|
|
|
45
45
|
image?: string | null | undefined;
|
|
46
46
|
};
|
|
47
47
|
}>;
|
|
48
|
-
}
|
|
48
|
+
}>>[];
|
|
49
49
|
metadata: {
|
|
50
50
|
$Infer: {
|
|
51
51
|
body: {
|
|
@@ -79,7 +79,7 @@ declare const removeMember: <O extends OrganizationOptions>(options: O) => impor
|
|
|
79
79
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
80
80
|
}, z.core.$strip>;
|
|
81
81
|
requireHeaders: true;
|
|
82
|
-
use: (((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
82
|
+
use: (import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
83
83
|
orgOptions: OrganizationOptions;
|
|
84
84
|
roles: typeof defaultRoles & {
|
|
85
85
|
[key: string]: Role<{}>;
|
|
@@ -108,8 +108,8 @@ declare const removeMember: <O extends OrganizationOptions>(options: O) => impor
|
|
|
108
108
|
image?: string | null | undefined;
|
|
109
109
|
};
|
|
110
110
|
}>;
|
|
111
|
-
}
|
|
112
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
111
|
+
}>> | import("better-call").Middleware<{
|
|
112
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
113
113
|
session: {
|
|
114
114
|
session: Record<string, any> & {
|
|
115
115
|
id: string;
|
|
@@ -131,7 +131,31 @@ declare const removeMember: <O extends OrganizationOptions>(options: O) => impor
|
|
|
131
131
|
image?: string | null | undefined;
|
|
132
132
|
};
|
|
133
133
|
};
|
|
134
|
-
}
|
|
134
|
+
}>>[];
|
|
135
|
+
}, (inputContext: import("better-call").MiddlewareInputContext<{
|
|
136
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
137
|
+
session: {
|
|
138
|
+
session: Record<string, any> & {
|
|
139
|
+
id: string;
|
|
140
|
+
createdAt: Date;
|
|
141
|
+
updatedAt: Date;
|
|
142
|
+
userId: string;
|
|
143
|
+
expiresAt: Date;
|
|
144
|
+
token: string;
|
|
145
|
+
ipAddress?: string | null | undefined;
|
|
146
|
+
userAgent?: string | null | undefined;
|
|
147
|
+
};
|
|
148
|
+
user: Record<string, any> & {
|
|
149
|
+
id: string;
|
|
150
|
+
createdAt: Date;
|
|
151
|
+
updatedAt: Date;
|
|
152
|
+
email: string;
|
|
153
|
+
emailVerified: boolean;
|
|
154
|
+
name: string;
|
|
155
|
+
image?: string | null | undefined;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
}>>[];
|
|
135
159
|
}>) => Promise<{
|
|
136
160
|
session: {
|
|
137
161
|
session: {
|
|
@@ -157,7 +181,7 @@ declare const removeMember: <O extends OrganizationOptions>(options: O) => impor
|
|
|
157
181
|
image?: string | null | undefined;
|
|
158
182
|
};
|
|
159
183
|
};
|
|
160
|
-
}
|
|
184
|
+
}>>)[];
|
|
161
185
|
metadata: {
|
|
162
186
|
openapi: {
|
|
163
187
|
description: string;
|
|
@@ -237,7 +261,7 @@ declare const updateMemberRole: <O extends OrganizationOptions>(option: O) => im
|
|
|
237
261
|
memberId: z.ZodString;
|
|
238
262
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
239
263
|
}, z.core.$strip>;
|
|
240
|
-
use: (((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
264
|
+
use: (import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
241
265
|
orgOptions: OrganizationOptions;
|
|
242
266
|
roles: typeof defaultRoles & {
|
|
243
267
|
[key: string]: Role<{}>;
|
|
@@ -266,8 +290,8 @@ declare const updateMemberRole: <O extends OrganizationOptions>(option: O) => im
|
|
|
266
290
|
image?: string | null | undefined;
|
|
267
291
|
};
|
|
268
292
|
}>;
|
|
269
|
-
}
|
|
270
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
293
|
+
}>> | import("better-call").Middleware<{
|
|
294
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
271
295
|
session: {
|
|
272
296
|
session: Record<string, any> & {
|
|
273
297
|
id: string;
|
|
@@ -289,7 +313,31 @@ declare const updateMemberRole: <O extends OrganizationOptions>(option: O) => im
|
|
|
289
313
|
image?: string | null | undefined;
|
|
290
314
|
};
|
|
291
315
|
};
|
|
292
|
-
}
|
|
316
|
+
}>>[];
|
|
317
|
+
}, (inputContext: import("better-call").MiddlewareInputContext<{
|
|
318
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
319
|
+
session: {
|
|
320
|
+
session: Record<string, any> & {
|
|
321
|
+
id: string;
|
|
322
|
+
createdAt: Date;
|
|
323
|
+
updatedAt: Date;
|
|
324
|
+
userId: string;
|
|
325
|
+
expiresAt: Date;
|
|
326
|
+
token: string;
|
|
327
|
+
ipAddress?: string | null | undefined;
|
|
328
|
+
userAgent?: string | null | undefined;
|
|
329
|
+
};
|
|
330
|
+
user: Record<string, any> & {
|
|
331
|
+
id: string;
|
|
332
|
+
createdAt: Date;
|
|
333
|
+
updatedAt: Date;
|
|
334
|
+
email: string;
|
|
335
|
+
emailVerified: boolean;
|
|
336
|
+
name: string;
|
|
337
|
+
image?: string | null | undefined;
|
|
338
|
+
};
|
|
339
|
+
};
|
|
340
|
+
}>>[];
|
|
293
341
|
}>) => Promise<{
|
|
294
342
|
session: {
|
|
295
343
|
session: {
|
|
@@ -315,7 +363,7 @@ declare const updateMemberRole: <O extends OrganizationOptions>(option: O) => im
|
|
|
315
363
|
image?: string | null | undefined;
|
|
316
364
|
};
|
|
317
365
|
};
|
|
318
|
-
}
|
|
366
|
+
}>>)[];
|
|
319
367
|
requireHeaders: true;
|
|
320
368
|
metadata: {
|
|
321
369
|
$Infer: {
|
|
@@ -381,7 +429,7 @@ declare const updateMemberRole: <O extends OrganizationOptions>(option: O) => im
|
|
|
381
429
|
}>;
|
|
382
430
|
declare const getActiveMember: <O extends OrganizationOptions>(options: O) => import("better-call").StrictEndpoint<"/organization/get-active-member", {
|
|
383
431
|
method: "GET";
|
|
384
|
-
use: (((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
432
|
+
use: (import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
385
433
|
orgOptions: OrganizationOptions;
|
|
386
434
|
roles: typeof defaultRoles & {
|
|
387
435
|
[key: string]: Role<{}>;
|
|
@@ -410,8 +458,8 @@ declare const getActiveMember: <O extends OrganizationOptions>(options: O) => im
|
|
|
410
458
|
image?: string | null | undefined;
|
|
411
459
|
};
|
|
412
460
|
}>;
|
|
413
|
-
}
|
|
414
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
461
|
+
}>> | import("better-call").Middleware<{
|
|
462
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
415
463
|
session: {
|
|
416
464
|
session: Record<string, any> & {
|
|
417
465
|
id: string;
|
|
@@ -433,7 +481,31 @@ declare const getActiveMember: <O extends OrganizationOptions>(options: O) => im
|
|
|
433
481
|
image?: string | null | undefined;
|
|
434
482
|
};
|
|
435
483
|
};
|
|
436
|
-
}
|
|
484
|
+
}>>[];
|
|
485
|
+
}, (inputContext: import("better-call").MiddlewareInputContext<{
|
|
486
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
487
|
+
session: {
|
|
488
|
+
session: Record<string, any> & {
|
|
489
|
+
id: string;
|
|
490
|
+
createdAt: Date;
|
|
491
|
+
updatedAt: Date;
|
|
492
|
+
userId: string;
|
|
493
|
+
expiresAt: Date;
|
|
494
|
+
token: string;
|
|
495
|
+
ipAddress?: string | null | undefined;
|
|
496
|
+
userAgent?: string | null | undefined;
|
|
497
|
+
};
|
|
498
|
+
user: Record<string, any> & {
|
|
499
|
+
id: string;
|
|
500
|
+
createdAt: Date;
|
|
501
|
+
updatedAt: Date;
|
|
502
|
+
email: string;
|
|
503
|
+
emailVerified: boolean;
|
|
504
|
+
name: string;
|
|
505
|
+
image?: string | null | undefined;
|
|
506
|
+
};
|
|
507
|
+
};
|
|
508
|
+
}>>[];
|
|
437
509
|
}>) => Promise<{
|
|
438
510
|
session: {
|
|
439
511
|
session: {
|
|
@@ -459,7 +531,7 @@ declare const getActiveMember: <O extends OrganizationOptions>(options: O) => im
|
|
|
459
531
|
image?: string | null | undefined;
|
|
460
532
|
};
|
|
461
533
|
};
|
|
462
|
-
}
|
|
534
|
+
}>>)[];
|
|
463
535
|
requireHeaders: true;
|
|
464
536
|
metadata: {
|
|
465
537
|
openapi: {
|
|
@@ -548,7 +620,7 @@ declare const leaveOrganization: <O extends OrganizationOptions>(options: O) =>
|
|
|
548
620
|
organizationId: z.ZodString;
|
|
549
621
|
}, z.core.$strip>;
|
|
550
622
|
requireHeaders: true;
|
|
551
|
-
use: (((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
623
|
+
use: (import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
552
624
|
session: {
|
|
553
625
|
session: Record<string, any> & {
|
|
554
626
|
id: string;
|
|
@@ -570,7 +642,7 @@ declare const leaveOrganization: <O extends OrganizationOptions>(options: O) =>
|
|
|
570
642
|
image?: string | null | undefined;
|
|
571
643
|
};
|
|
572
644
|
};
|
|
573
|
-
}
|
|
645
|
+
}>> | import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
574
646
|
orgOptions: OrganizationOptions;
|
|
575
647
|
roles: typeof defaultRoles & {
|
|
576
648
|
[key: string]: Role<{}>;
|
|
@@ -599,7 +671,7 @@ declare const leaveOrganization: <O extends OrganizationOptions>(options: O) =>
|
|
|
599
671
|
image?: string | null | undefined;
|
|
600
672
|
};
|
|
601
673
|
}>;
|
|
602
|
-
}
|
|
674
|
+
}>>)[];
|
|
603
675
|
}, Omit<((O["teams"] extends {
|
|
604
676
|
enabled: true;
|
|
605
677
|
} ? {
|
|
@@ -678,7 +750,7 @@ declare const listMembers: <O extends OrganizationOptions>(options: O) => import
|
|
|
678
750
|
organizationSlug: z.ZodOptional<z.ZodString>;
|
|
679
751
|
}, z.core.$strip>>;
|
|
680
752
|
requireHeaders: true;
|
|
681
|
-
use: (((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
753
|
+
use: (import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
682
754
|
orgOptions: OrganizationOptions;
|
|
683
755
|
roles: typeof defaultRoles & {
|
|
684
756
|
[key: string]: Role<{}>;
|
|
@@ -707,8 +779,32 @@ declare const listMembers: <O extends OrganizationOptions>(options: O) => import
|
|
|
707
779
|
image?: string | null | undefined;
|
|
708
780
|
};
|
|
709
781
|
}>;
|
|
710
|
-
}
|
|
711
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
782
|
+
}>> | import("better-call").Middleware<{
|
|
783
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
784
|
+
session: {
|
|
785
|
+
session: Record<string, any> & {
|
|
786
|
+
id: string;
|
|
787
|
+
createdAt: Date;
|
|
788
|
+
updatedAt: Date;
|
|
789
|
+
userId: string;
|
|
790
|
+
expiresAt: Date;
|
|
791
|
+
token: string;
|
|
792
|
+
ipAddress?: string | null | undefined;
|
|
793
|
+
userAgent?: string | null | undefined;
|
|
794
|
+
};
|
|
795
|
+
user: Record<string, any> & {
|
|
796
|
+
id: string;
|
|
797
|
+
createdAt: Date;
|
|
798
|
+
updatedAt: Date;
|
|
799
|
+
email: string;
|
|
800
|
+
emailVerified: boolean;
|
|
801
|
+
name: string;
|
|
802
|
+
image?: string | null | undefined;
|
|
803
|
+
};
|
|
804
|
+
};
|
|
805
|
+
}>>[];
|
|
806
|
+
}, (inputContext: import("better-call").MiddlewareInputContext<{
|
|
807
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
712
808
|
session: {
|
|
713
809
|
session: Record<string, any> & {
|
|
714
810
|
id: string;
|
|
@@ -730,7 +826,7 @@ declare const listMembers: <O extends OrganizationOptions>(options: O) => import
|
|
|
730
826
|
image?: string | null | undefined;
|
|
731
827
|
};
|
|
732
828
|
};
|
|
733
|
-
}
|
|
829
|
+
}>>[];
|
|
734
830
|
}>) => Promise<{
|
|
735
831
|
session: {
|
|
736
832
|
session: {
|
|
@@ -756,7 +852,7 @@ declare const listMembers: <O extends OrganizationOptions>(options: O) => import
|
|
|
756
852
|
image?: string | null | undefined;
|
|
757
853
|
};
|
|
758
854
|
};
|
|
759
|
-
}
|
|
855
|
+
}>>)[];
|
|
760
856
|
}, {
|
|
761
857
|
members: (((O["teams"] extends {
|
|
762
858
|
enabled: true;
|
|
@@ -807,7 +903,7 @@ declare const getActiveMemberRole: <O extends OrganizationOptions>(options: O) =
|
|
|
807
903
|
organizationSlug: z.ZodOptional<z.ZodString>;
|
|
808
904
|
}, z.core.$strip>>;
|
|
809
905
|
requireHeaders: true;
|
|
810
|
-
use: (((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
906
|
+
use: (import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
811
907
|
orgOptions: OrganizationOptions;
|
|
812
908
|
roles: typeof defaultRoles & {
|
|
813
909
|
[key: string]: Role<{}>;
|
|
@@ -836,8 +932,32 @@ declare const getActiveMemberRole: <O extends OrganizationOptions>(options: O) =
|
|
|
836
932
|
image?: string | null | undefined;
|
|
837
933
|
};
|
|
838
934
|
}>;
|
|
839
|
-
}
|
|
840
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
935
|
+
}>> | import("better-call").Middleware<{
|
|
936
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
937
|
+
session: {
|
|
938
|
+
session: Record<string, any> & {
|
|
939
|
+
id: string;
|
|
940
|
+
createdAt: Date;
|
|
941
|
+
updatedAt: Date;
|
|
942
|
+
userId: string;
|
|
943
|
+
expiresAt: Date;
|
|
944
|
+
token: string;
|
|
945
|
+
ipAddress?: string | null | undefined;
|
|
946
|
+
userAgent?: string | null | undefined;
|
|
947
|
+
};
|
|
948
|
+
user: Record<string, any> & {
|
|
949
|
+
id: string;
|
|
950
|
+
createdAt: Date;
|
|
951
|
+
updatedAt: Date;
|
|
952
|
+
email: string;
|
|
953
|
+
emailVerified: boolean;
|
|
954
|
+
name: string;
|
|
955
|
+
image?: string | null | undefined;
|
|
956
|
+
};
|
|
957
|
+
};
|
|
958
|
+
}>>[];
|
|
959
|
+
}, (inputContext: import("better-call").MiddlewareInputContext<{
|
|
960
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
841
961
|
session: {
|
|
842
962
|
session: Record<string, any> & {
|
|
843
963
|
id: string;
|
|
@@ -859,7 +979,7 @@ declare const getActiveMemberRole: <O extends OrganizationOptions>(options: O) =
|
|
|
859
979
|
image?: string | null | undefined;
|
|
860
980
|
};
|
|
861
981
|
};
|
|
862
|
-
}
|
|
982
|
+
}>>[];
|
|
863
983
|
}>) => Promise<{
|
|
864
984
|
session: {
|
|
865
985
|
session: {
|
|
@@ -885,7 +1005,7 @@ declare const getActiveMemberRole: <O extends OrganizationOptions>(options: O) =
|
|
|
885
1005
|
image?: string | null | undefined;
|
|
886
1006
|
};
|
|
887
1007
|
};
|
|
888
|
-
}
|
|
1008
|
+
}>>)[];
|
|
889
1009
|
}, {
|
|
890
1010
|
role: (((O["teams"] extends {
|
|
891
1011
|
enabled: true;
|
|
@@ -18,7 +18,7 @@ declare const createOrganization: <O extends OrganizationOptions>(options?: O |
|
|
|
18
18
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
19
19
|
keepCurrentActiveOrganization: z.ZodOptional<z.ZodBoolean>;
|
|
20
20
|
}, z.core.$strip>;
|
|
21
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
21
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
22
22
|
orgOptions: OrganizationOptions;
|
|
23
23
|
roles: typeof defaultRoles & {
|
|
24
24
|
[key: string]: Role<{}>;
|
|
@@ -47,7 +47,7 @@ declare const createOrganization: <O extends OrganizationOptions>(options?: O |
|
|
|
47
47
|
image?: string | null | undefined;
|
|
48
48
|
};
|
|
49
49
|
}>;
|
|
50
|
-
}
|
|
50
|
+
}>>[];
|
|
51
51
|
metadata: {
|
|
52
52
|
$Infer: {
|
|
53
53
|
body: InferAdditionalFieldsFromPluginOptions<"organization", O> & {
|
|
@@ -103,7 +103,7 @@ declare const checkOrganizationSlug: <O extends OrganizationOptions>(options: O)
|
|
|
103
103
|
body: z.ZodObject<{
|
|
104
104
|
slug: z.ZodString;
|
|
105
105
|
}, z.core.$strip>;
|
|
106
|
-
use: (((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
106
|
+
use: (import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
107
107
|
session: {
|
|
108
108
|
session: Record<string, any> & {
|
|
109
109
|
id: string;
|
|
@@ -125,7 +125,7 @@ declare const checkOrganizationSlug: <O extends OrganizationOptions>(options: O)
|
|
|
125
125
|
image?: string | null | undefined;
|
|
126
126
|
};
|
|
127
127
|
} | null;
|
|
128
|
-
}
|
|
128
|
+
}>> | import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
129
129
|
orgOptions: OrganizationOptions;
|
|
130
130
|
roles: typeof defaultRoles & {
|
|
131
131
|
[key: string]: Role<{}>;
|
|
@@ -154,7 +154,7 @@ declare const checkOrganizationSlug: <O extends OrganizationOptions>(options: O)
|
|
|
154
154
|
image?: string | null | undefined;
|
|
155
155
|
};
|
|
156
156
|
}>;
|
|
157
|
-
}
|
|
157
|
+
}>>)[];
|
|
158
158
|
}, {
|
|
159
159
|
status: boolean;
|
|
160
160
|
}>;
|
|
@@ -170,7 +170,7 @@ declare const updateOrganization: <O extends OrganizationOptions>(options?: O |
|
|
|
170
170
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
171
171
|
}, z.core.$strip>;
|
|
172
172
|
requireHeaders: true;
|
|
173
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
173
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
174
174
|
orgOptions: OrganizationOptions;
|
|
175
175
|
roles: typeof defaultRoles & {
|
|
176
176
|
[key: string]: Role<{}>;
|
|
@@ -199,7 +199,7 @@ declare const updateOrganization: <O extends OrganizationOptions>(options?: O |
|
|
|
199
199
|
image?: string | null | undefined;
|
|
200
200
|
};
|
|
201
201
|
}>;
|
|
202
|
-
}
|
|
202
|
+
}>>[];
|
|
203
203
|
metadata: {
|
|
204
204
|
$Infer: {
|
|
205
205
|
body: {
|
|
@@ -248,7 +248,7 @@ declare const deleteOrganization: <O extends OrganizationOptions>(options: O) =>
|
|
|
248
248
|
organizationId: z.ZodString;
|
|
249
249
|
}, z.core.$strip>;
|
|
250
250
|
requireHeaders: true;
|
|
251
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
251
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
252
252
|
orgOptions: OrganizationOptions;
|
|
253
253
|
roles: typeof defaultRoles & {
|
|
254
254
|
[key: string]: Role<{}>;
|
|
@@ -277,7 +277,7 @@ declare const deleteOrganization: <O extends OrganizationOptions>(options: O) =>
|
|
|
277
277
|
image?: string | null | undefined;
|
|
278
278
|
};
|
|
279
279
|
}>;
|
|
280
|
-
}
|
|
280
|
+
}>>[];
|
|
281
281
|
metadata: {
|
|
282
282
|
openapi: {
|
|
283
283
|
description: string;
|
|
@@ -316,7 +316,7 @@ declare const getFullOrganization: <O extends OrganizationOptions>(options: O) =
|
|
|
316
316
|
membersLimit: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
317
317
|
}, z.core.$strip>>;
|
|
318
318
|
requireHeaders: true;
|
|
319
|
-
use: (((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
319
|
+
use: (import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
320
320
|
orgOptions: OrganizationOptions;
|
|
321
321
|
roles: typeof defaultRoles & {
|
|
322
322
|
[key: string]: Role<{}>;
|
|
@@ -345,8 +345,8 @@ declare const getFullOrganization: <O extends OrganizationOptions>(options: O) =
|
|
|
345
345
|
image?: string | null | undefined;
|
|
346
346
|
};
|
|
347
347
|
}>;
|
|
348
|
-
}
|
|
349
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
348
|
+
}>> | import("better-call").Middleware<{
|
|
349
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
350
350
|
session: {
|
|
351
351
|
session: Record<string, any> & {
|
|
352
352
|
id: string;
|
|
@@ -368,7 +368,31 @@ declare const getFullOrganization: <O extends OrganizationOptions>(options: O) =
|
|
|
368
368
|
image?: string | null | undefined;
|
|
369
369
|
};
|
|
370
370
|
};
|
|
371
|
-
}
|
|
371
|
+
}>>[];
|
|
372
|
+
}, (inputContext: import("better-call").MiddlewareInputContext<{
|
|
373
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
374
|
+
session: {
|
|
375
|
+
session: Record<string, any> & {
|
|
376
|
+
id: string;
|
|
377
|
+
createdAt: Date;
|
|
378
|
+
updatedAt: Date;
|
|
379
|
+
userId: string;
|
|
380
|
+
expiresAt: Date;
|
|
381
|
+
token: string;
|
|
382
|
+
ipAddress?: string | null | undefined;
|
|
383
|
+
userAgent?: string | null | undefined;
|
|
384
|
+
};
|
|
385
|
+
user: Record<string, any> & {
|
|
386
|
+
id: string;
|
|
387
|
+
createdAt: Date;
|
|
388
|
+
updatedAt: Date;
|
|
389
|
+
email: string;
|
|
390
|
+
emailVerified: boolean;
|
|
391
|
+
name: string;
|
|
392
|
+
image?: string | null | undefined;
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
}>>[];
|
|
372
396
|
}>) => Promise<{
|
|
373
397
|
session: {
|
|
374
398
|
session: {
|
|
@@ -394,7 +418,7 @@ declare const getFullOrganization: <O extends OrganizationOptions>(options: O) =
|
|
|
394
418
|
image?: string | null | undefined;
|
|
395
419
|
};
|
|
396
420
|
};
|
|
397
|
-
}
|
|
421
|
+
}>>)[];
|
|
398
422
|
metadata: {
|
|
399
423
|
openapi: {
|
|
400
424
|
operationId: string;
|
|
@@ -453,7 +477,7 @@ declare const setActiveOrganization: <O extends OrganizationOptions>(options: O)
|
|
|
453
477
|
organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
454
478
|
organizationSlug: z.ZodOptional<z.ZodString>;
|
|
455
479
|
}, z.core.$strip>;
|
|
456
|
-
use: (((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
480
|
+
use: (import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
457
481
|
orgOptions: OrganizationOptions;
|
|
458
482
|
roles: typeof defaultRoles & {
|
|
459
483
|
[key: string]: Role<{}>;
|
|
@@ -482,8 +506,8 @@ declare const setActiveOrganization: <O extends OrganizationOptions>(options: O)
|
|
|
482
506
|
image?: string | null | undefined;
|
|
483
507
|
};
|
|
484
508
|
}>;
|
|
485
|
-
}
|
|
486
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
509
|
+
}>> | import("better-call").Middleware<{
|
|
510
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
487
511
|
session: {
|
|
488
512
|
session: Record<string, any> & {
|
|
489
513
|
id: string;
|
|
@@ -505,7 +529,31 @@ declare const setActiveOrganization: <O extends OrganizationOptions>(options: O)
|
|
|
505
529
|
image?: string | null | undefined;
|
|
506
530
|
};
|
|
507
531
|
};
|
|
508
|
-
}
|
|
532
|
+
}>>[];
|
|
533
|
+
}, (inputContext: import("better-call").MiddlewareInputContext<{
|
|
534
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
535
|
+
session: {
|
|
536
|
+
session: Record<string, any> & {
|
|
537
|
+
id: string;
|
|
538
|
+
createdAt: Date;
|
|
539
|
+
updatedAt: Date;
|
|
540
|
+
userId: string;
|
|
541
|
+
expiresAt: Date;
|
|
542
|
+
token: string;
|
|
543
|
+
ipAddress?: string | null | undefined;
|
|
544
|
+
userAgent?: string | null | undefined;
|
|
545
|
+
};
|
|
546
|
+
user: Record<string, any> & {
|
|
547
|
+
id: string;
|
|
548
|
+
createdAt: Date;
|
|
549
|
+
updatedAt: Date;
|
|
550
|
+
email: string;
|
|
551
|
+
emailVerified: boolean;
|
|
552
|
+
name: string;
|
|
553
|
+
image?: string | null | undefined;
|
|
554
|
+
};
|
|
555
|
+
};
|
|
556
|
+
}>>[];
|
|
509
557
|
}>) => Promise<{
|
|
510
558
|
session: {
|
|
511
559
|
session: {
|
|
@@ -531,7 +579,7 @@ declare const setActiveOrganization: <O extends OrganizationOptions>(options: O)
|
|
|
531
579
|
image?: string | null | undefined;
|
|
532
580
|
};
|
|
533
581
|
};
|
|
534
|
-
}
|
|
582
|
+
}>>)[];
|
|
535
583
|
requireHeaders: true;
|
|
536
584
|
metadata: {
|
|
537
585
|
openapi: {
|
|
@@ -587,7 +635,7 @@ declare const setActiveOrganization: <O extends OrganizationOptions>(options: O)
|
|
|
587
635
|
} ? FieldAttributeToObject<RemoveFieldsWithReturnedFalse<Field>> : {}) extends (infer T_1) ? { [K in keyof T_1]: T_1[K]; } : never)) | null>;
|
|
588
636
|
declare const listOrganizations: <O extends OrganizationOptions>(options: O) => import("better-call").StrictEndpoint<"/organization/list", {
|
|
589
637
|
method: "GET";
|
|
590
|
-
use: (((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
638
|
+
use: (import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
591
639
|
orgOptions: OrganizationOptions;
|
|
592
640
|
roles: typeof defaultRoles & {
|
|
593
641
|
[key: string]: Role<{}>;
|
|
@@ -616,8 +664,32 @@ declare const listOrganizations: <O extends OrganizationOptions>(options: O) =>
|
|
|
616
664
|
image?: string | null | undefined;
|
|
617
665
|
};
|
|
618
666
|
}>;
|
|
619
|
-
}
|
|
620
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
667
|
+
}>> | import("better-call").Middleware<{
|
|
668
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
669
|
+
session: {
|
|
670
|
+
session: Record<string, any> & {
|
|
671
|
+
id: string;
|
|
672
|
+
createdAt: Date;
|
|
673
|
+
updatedAt: Date;
|
|
674
|
+
userId: string;
|
|
675
|
+
expiresAt: Date;
|
|
676
|
+
token: string;
|
|
677
|
+
ipAddress?: string | null | undefined;
|
|
678
|
+
userAgent?: string | null | undefined;
|
|
679
|
+
};
|
|
680
|
+
user: Record<string, any> & {
|
|
681
|
+
id: string;
|
|
682
|
+
createdAt: Date;
|
|
683
|
+
updatedAt: Date;
|
|
684
|
+
email: string;
|
|
685
|
+
emailVerified: boolean;
|
|
686
|
+
name: string;
|
|
687
|
+
image?: string | null | undefined;
|
|
688
|
+
};
|
|
689
|
+
};
|
|
690
|
+
}>>[];
|
|
691
|
+
}, (inputContext: import("better-call").MiddlewareInputContext<{
|
|
692
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
621
693
|
session: {
|
|
622
694
|
session: Record<string, any> & {
|
|
623
695
|
id: string;
|
|
@@ -639,7 +711,7 @@ declare const listOrganizations: <O extends OrganizationOptions>(options: O) =>
|
|
|
639
711
|
image?: string | null | undefined;
|
|
640
712
|
};
|
|
641
713
|
};
|
|
642
|
-
}
|
|
714
|
+
}>>[];
|
|
643
715
|
}>) => Promise<{
|
|
644
716
|
session: {
|
|
645
717
|
session: {
|
|
@@ -665,7 +737,7 @@ declare const listOrganizations: <O extends OrganizationOptions>(options: O) =>
|
|
|
665
737
|
image?: string | null | undefined;
|
|
666
738
|
};
|
|
667
739
|
};
|
|
668
|
-
}
|
|
740
|
+
}>>)[];
|
|
669
741
|
requireHeaders: true;
|
|
670
742
|
metadata: {
|
|
671
743
|
openapi: {
|