better-auth 0.0.4 → 0.0.5

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.
@@ -1,6 +1,6 @@
1
- import { M as Member, I as Invitation, O as OrganizationOptions } from '../client-CaF9eUcv.js';
2
- export { g as getPasskeyActions, p as passkeyClient, t as twoFactorClient } from '../client-CaF9eUcv.js';
3
- import { b as AuthProxySignal, u as useAuthStore, a as useAuthStore$1 } from '../type-tYx_kmry.js';
1
+ import { M as Member, I as Invitation, O as OrganizationOptions } from '../client-A2Mt04KQ.js';
2
+ export { g as getPasskeyActions, p as passkeyClient, t as twoFactorClient } from '../client-A2Mt04KQ.js';
3
+ import { b as AuthProxySignal, u as useAuthStore, a as useAuthStore$1 } from '../type-DbMyI3b5.js';
4
4
  import { g as defaultRoles, R as Role, A as AccessControl, S as StatementsPrimitive } from '../statement-COylZd3J.js';
5
5
  import { S as Session, U as User } from '../schema-BOszzrbQ.js';
6
6
  import * as better_call from 'better-call';
@@ -11,7 +11,7 @@ import * as _nanostores_vue from '@nanostores/vue';
11
11
  import * as _nanostores_react from '@nanostores/react';
12
12
  import * as _better_fetch_fetch from '@better-fetch/fetch';
13
13
  import { useAuthStore as useAuthStore$2 } from '../preact.js';
14
- import '../index-CGeV0d2g.js';
14
+ import '../index-W5nXvJ-p.js';
15
15
  import '../helper-B5_2Vzba.js';
16
16
  import 'kysely';
17
17
  import '@simplewebauthn/types';
@@ -56,10 +56,10 @@ declare const organizationClient: <O extends OrganizationClientOptions>(options?
56
56
  data: null;
57
57
  } | {
58
58
  data: {
59
- status: "pending" | "accepted" | "rejected" | "canceled";
60
59
  id: string;
61
- email: string;
62
60
  expiresAt: Date;
61
+ status: "pending" | "accepted" | "rejected" | "canceled";
62
+ email: string;
63
63
  organizationId: string;
64
64
  role: "admin" | "member" | "owner";
65
65
  inviterId: string;
@@ -79,17 +79,17 @@ declare const organizationClient: <O extends OrganizationClientOptions>(options?
79
79
  readonly slug: string;
80
80
  readonly members: readonly {
81
81
  readonly id: string;
82
+ readonly userId: string;
82
83
  readonly name: string;
83
84
  readonly email: string;
84
- readonly userId: string;
85
85
  readonly organizationId: string;
86
86
  readonly role: "admin" | "member" | "owner";
87
87
  }[];
88
88
  readonly invitations: readonly {
89
- readonly status: "pending" | "accepted" | "rejected" | "canceled";
90
89
  readonly id: string;
91
- readonly email: string;
92
90
  readonly expiresAt: Date;
91
+ readonly status: "pending" | "accepted" | "rejected" | "canceled";
92
+ readonly email: string;
93
93
  readonly organizationId: string;
94
94
  readonly role: "admin" | "member" | "owner";
95
95
  readonly inviterId: string;
@@ -116,10 +116,10 @@ declare const organizationClient: <O extends OrganizationClientOptions>(options?
116
116
  readonly data: null;
117
117
  } | {
118
118
  readonly data: {
119
- readonly status: "pending" | "accepted" | "rejected" | "canceled";
120
119
  readonly id: string;
121
- readonly email: string;
122
120
  readonly expiresAt: Date;
121
+ readonly status: "pending" | "accepted" | "rejected" | "canceled";
122
+ readonly email: string;
123
123
  readonly organizationId: string;
124
124
  readonly role: "admin" | "member" | "owner";
125
125
  readonly inviterId: string;
@@ -160,10 +160,10 @@ declare const organizationClient: <O extends OrganizationClientOptions>(options?
160
160
  data: null;
161
161
  } | {
162
162
  data: {
163
- status: "pending" | "accepted" | "rejected" | "canceled";
164
163
  id: string;
165
- email: string;
166
164
  expiresAt: Date;
165
+ status: "pending" | "accepted" | "rejected" | "canceled";
166
+ email: string;
167
167
  organizationId: string;
168
168
  role: "admin" | "member" | "owner";
169
169
  inviterId: string;
@@ -204,10 +204,10 @@ declare const organizationClient: <O extends OrganizationClientOptions>(options?
204
204
  data: null;
205
205
  } | {
206
206
  data: {
207
- status: "pending" | "accepted" | "rejected" | "canceled";
208
207
  id: string;
209
- email: string;
210
208
  expiresAt: Date;
209
+ status: "pending" | "accepted" | "rejected" | "canceled";
210
+ email: string;
211
211
  organizationId: string;
212
212
  role: "admin" | "member" | "owner";
213
213
  inviterId: string;
@@ -229,28 +229,28 @@ declare const organizationClient: <O extends OrganizationClientOptions>(options?
229
229
  requireHeaders: true;
230
230
  body: zod.ZodObject<{
231
231
  permission: zod.ZodObject<{
232
- readonly organization: zod.ZodOptional<zod.ZodArray<zod.ZodLiteral<"delete" | "update">, "many">>;
233
- readonly member: zod.ZodOptional<zod.ZodArray<zod.ZodLiteral<"delete" | "update" | "create">, "many">>;
232
+ readonly organization: zod.ZodOptional<zod.ZodArray<zod.ZodLiteral<"update" | "delete">, "many">>;
233
+ readonly member: zod.ZodOptional<zod.ZodArray<zod.ZodLiteral<"update" | "delete" | "create">, "many">>;
234
234
  readonly invitation: zod.ZodOptional<zod.ZodArray<zod.ZodLiteral<"create" | "cancel">, "many">>;
235
235
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
236
- member?: ("delete" | "update" | "create")[] | undefined;
237
- organization?: ("delete" | "update")[] | undefined;
236
+ member?: ("update" | "delete" | "create")[] | undefined;
237
+ organization?: ("update" | "delete")[] | undefined;
238
238
  invitation?: ("create" | "cancel")[] | undefined;
239
239
  }, {
240
- member?: ("delete" | "update" | "create")[] | undefined;
241
- organization?: ("delete" | "update")[] | undefined;
240
+ member?: ("update" | "delete" | "create")[] | undefined;
241
+ organization?: ("update" | "delete")[] | undefined;
242
242
  invitation?: ("create" | "cancel")[] | undefined;
243
243
  }>;
244
244
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
245
245
  permission: {
246
- member?: ("delete" | "update" | "create")[] | undefined;
247
- organization?: ("delete" | "update")[] | undefined;
246
+ member?: ("update" | "delete" | "create")[] | undefined;
247
+ organization?: ("update" | "delete")[] | undefined;
248
248
  invitation?: ("create" | "cancel")[] | undefined;
249
249
  };
250
250
  }, {
251
251
  permission: {
252
- member?: ("delete" | "update" | "create")[] | undefined;
253
- organization?: ("delete" | "update")[] | undefined;
252
+ member?: ("update" | "delete" | "create")[] | undefined;
253
+ organization?: ("update" | "delete")[] | undefined;
254
254
  invitation?: ("create" | "cancel")[] | undefined;
255
255
  };
256
256
  }>;
@@ -321,28 +321,28 @@ declare const organizationClient: <O extends OrganizationClientOptions>(options?
321
321
  requireHeaders: true;
322
322
  body: zod.ZodObject<{
323
323
  permission: zod.ZodObject<{
324
- readonly organization: zod.ZodOptional<zod.ZodArray<zod.ZodLiteral<"delete" | "update">, "many">>;
325
- readonly member: zod.ZodOptional<zod.ZodArray<zod.ZodLiteral<"delete" | "update" | "create">, "many">>;
324
+ readonly organization: zod.ZodOptional<zod.ZodArray<zod.ZodLiteral<"update" | "delete">, "many">>;
325
+ readonly member: zod.ZodOptional<zod.ZodArray<zod.ZodLiteral<"update" | "delete" | "create">, "many">>;
326
326
  readonly invitation: zod.ZodOptional<zod.ZodArray<zod.ZodLiteral<"create" | "cancel">, "many">>;
327
327
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
328
- member?: ("delete" | "update" | "create")[] | undefined;
329
- organization?: ("delete" | "update")[] | undefined;
328
+ member?: ("update" | "delete" | "create")[] | undefined;
329
+ organization?: ("update" | "delete")[] | undefined;
330
330
  invitation?: ("create" | "cancel")[] | undefined;
331
331
  }, {
332
- member?: ("delete" | "update" | "create")[] | undefined;
333
- organization?: ("delete" | "update")[] | undefined;
332
+ member?: ("update" | "delete" | "create")[] | undefined;
333
+ organization?: ("update" | "delete")[] | undefined;
334
334
  invitation?: ("create" | "cancel")[] | undefined;
335
335
  }>;
336
336
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
337
337
  permission: {
338
- member?: ("delete" | "update" | "create")[] | undefined;
339
- organization?: ("delete" | "update")[] | undefined;
338
+ member?: ("update" | "delete" | "create")[] | undefined;
339
+ organization?: ("update" | "delete")[] | undefined;
340
340
  invitation?: ("create" | "cancel")[] | undefined;
341
341
  };
342
342
  }, {
343
343
  permission: {
344
- member?: ("delete" | "update" | "create")[] | undefined;
345
- organization?: ("delete" | "update")[] | undefined;
344
+ member?: ("update" | "delete" | "create")[] | undefined;
345
+ organization?: ("update" | "delete")[] | undefined;
346
346
  invitation?: ("create" | "cancel")[] | undefined;
347
347
  };
348
348
  }>;
@@ -488,9 +488,9 @@ declare const organizationClient: <O extends OrganizationClientOptions>(options?
488
488
  }>): Promise<{
489
489
  members: {
490
490
  id: string;
491
+ userId: string;
491
492
  name: string;
492
493
  email: string;
493
- userId: string;
494
494
  organizationId: string;
495
495
  role: "admin" | "member" | "owner";
496
496
  }[];
@@ -694,17 +694,17 @@ declare const organizationClient: <O extends OrganizationClientOptions>(options?
694
694
  }>): Promise<{
695
695
  members: {
696
696
  id: string;
697
+ userId: string;
697
698
  name: string;
698
699
  email: string;
699
- userId: string;
700
700
  organizationId: string;
701
701
  role: "admin" | "member" | "owner";
702
702
  }[];
703
703
  invitations: {
704
- status: "pending" | "accepted" | "rejected" | "canceled";
705
704
  id: string;
706
- email: string;
707
705
  expiresAt: Date;
706
+ status: "pending" | "accepted" | "rejected" | "canceled";
707
+ email: string;
708
708
  organizationId: string;
709
709
  role: "admin" | "member" | "owner";
710
710
  inviterId: string;
@@ -837,17 +837,17 @@ declare const organizationClient: <O extends OrganizationClientOptions>(options?
837
837
  }>): Promise<{
838
838
  members: {
839
839
  id: string;
840
+ userId: string;
840
841
  name: string;
841
842
  email: string;
842
- userId: string;
843
843
  organizationId: string;
844
844
  role: "admin" | "member" | "owner";
845
845
  }[];
846
846
  invitations: {
847
- status: "pending" | "accepted" | "rejected" | "canceled";
848
847
  id: string;
849
- email: string;
850
848
  expiresAt: Date;
849
+ status: "pending" | "accepted" | "rejected" | "canceled";
850
+ email: string;
851
851
  organizationId: string;
852
852
  role: "admin" | "member" | "owner";
853
853
  inviterId: string;
@@ -1166,10 +1166,10 @@ declare const organizationClient: <O extends OrganizationClientOptions>(options?
1166
1166
  resend?: boolean | undefined;
1167
1167
  }>;
1168
1168
  }>): Promise<{
1169
- status: "pending" | "accepted" | "rejected" | "canceled";
1170
1169
  id: string;
1171
- email: string;
1172
1170
  expiresAt: Date;
1171
+ status: "pending" | "accepted" | "rejected" | "canceled";
1172
+ email: string;
1173
1173
  organizationId: string;
1174
1174
  role: "admin" | "member" | "owner";
1175
1175
  inviterId: string;
@@ -1338,10 +1338,10 @@ declare const organizationClient: <O extends OrganizationClientOptions>(options?
1338
1338
  method: "*";
1339
1339
  }>)[];
1340
1340
  }>): Promise<{
1341
- status: "pending" | "accepted" | "rejected" | "canceled";
1342
1341
  id: string;
1343
- email: string;
1344
1342
  expiresAt: Date;
1343
+ status: "pending" | "accepted" | "rejected" | "canceled";
1344
+ email: string;
1345
1345
  organizationId: string;
1346
1346
  role: "admin" | "member" | "owner";
1347
1347
  inviterId: string;
@@ -1502,19 +1502,19 @@ declare const organizationClient: <O extends OrganizationClientOptions>(options?
1502
1502
  }>)[];
1503
1503
  }>): Promise<{
1504
1504
  invitation: {
1505
- status: "pending" | "accepted" | "rejected" | "canceled";
1506
1505
  id: string;
1507
- email: string;
1508
1506
  expiresAt: Date;
1507
+ status: "pending" | "accepted" | "rejected" | "canceled";
1508
+ email: string;
1509
1509
  organizationId: string;
1510
1510
  role: "admin" | "member" | "owner";
1511
1511
  inviterId: string;
1512
1512
  };
1513
1513
  member: {
1514
1514
  id: string;
1515
+ userId: string;
1515
1516
  name: string;
1516
1517
  email: string;
1517
- userId: string;
1518
1518
  organizationId: string;
1519
1519
  role: "admin" | "member" | "owner";
1520
1520
  };
@@ -1625,10 +1625,10 @@ declare const organizationClient: <O extends OrganizationClientOptions>(options?
1625
1625
  organizationSlug: string;
1626
1626
  inviterEmail: string;
1627
1627
  inviterName: string;
1628
- status: "pending" | "accepted" | "rejected" | "canceled";
1629
1628
  id: string;
1630
- email: string;
1631
1629
  expiresAt: Date;
1630
+ status: "pending" | "accepted" | "rejected" | "canceled";
1631
+ email: string;
1632
1632
  organizationId: string;
1633
1633
  role: "admin" | "member" | "owner";
1634
1634
  inviterId: string;
@@ -1736,10 +1736,10 @@ declare const organizationClient: <O extends OrganizationClientOptions>(options?
1736
1736
  }>)[];
1737
1737
  }>): Promise<{
1738
1738
  invitation: {
1739
- status: "pending" | "accepted" | "rejected" | "canceled";
1740
1739
  id: string;
1741
- email: string;
1742
1740
  expiresAt: Date;
1741
+ status: "pending" | "accepted" | "rejected" | "canceled";
1742
+ email: string;
1743
1743
  organizationId: string;
1744
1744
  role: "admin" | "member" | "owner";
1745
1745
  inviterId: string;
@@ -2060,9 +2060,9 @@ declare const organizationClient: <O extends OrganizationClientOptions>(options?
2060
2060
  }>)[];
2061
2061
  }>): Promise<{
2062
2062
  id: string;
2063
+ userId: string;
2063
2064
  name: string;
2064
2065
  email: string;
2065
- userId: string;
2066
2066
  organizationId: string;
2067
2067
  role: "admin" | "member" | "owner";
2068
2068
  } | null>;
@@ -2349,19 +2349,19 @@ declare const usernameClient: ($fetch: _better_fetch_fetch.BetterFetch) => {
2349
2349
  image: zod.ZodOptional<zod.ZodString>;
2350
2350
  callbackURL: zod.ZodOptional<zod.ZodString>;
2351
2351
  }, "strip", zod.ZodTypeAny, {
2352
+ password: string;
2352
2353
  name: string;
2353
2354
  email: string;
2354
- password: string;
2355
2355
  username: string;
2356
- callbackURL?: string | undefined;
2357
2356
  image?: string | undefined;
2357
+ callbackURL?: string | undefined;
2358
2358
  }, {
2359
+ password: string;
2359
2360
  name: string;
2360
2361
  email: string;
2361
- password: string;
2362
2362
  username: string;
2363
- callbackURL?: string | undefined;
2364
2363
  image?: string | undefined;
2364
+ callbackURL?: string | undefined;
2365
2365
  }>;
2366
2366
  }>): Promise<{
2367
2367
  user: {
@@ -2392,19 +2392,19 @@ declare const usernameClient: ($fetch: _better_fetch_fetch.BetterFetch) => {
2392
2392
  image: zod.ZodOptional<zod.ZodString>;
2393
2393
  callbackURL: zod.ZodOptional<zod.ZodString>;
2394
2394
  }, "strip", zod.ZodTypeAny, {
2395
+ password: string;
2395
2396
  name: string;
2396
2397
  email: string;
2397
- password: string;
2398
2398
  username: string;
2399
- callbackURL?: string | undefined;
2400
2399
  image?: string | undefined;
2400
+ callbackURL?: string | undefined;
2401
2401
  }, {
2402
+ password: string;
2402
2403
  name: string;
2403
2404
  email: string;
2404
- password: string;
2405
2405
  username: string;
2406
- callbackURL?: string | undefined;
2407
2406
  image?: string | undefined;
2407
+ callbackURL?: string | undefined;
2408
2408
  }>;
2409
2409
  };
2410
2410
  method: better_call.Method | better_call.Method[];
@@ -1,6 +1,6 @@
1
1
  import * as nanostores from 'nanostores';
2
- import { u as useAuthStore, a as useAuthStore$1, b as AuthProxySignal } from './type-tYx_kmry.js';
3
- import { G as GenericEndpointContext } from './index-CGeV0d2g.js';
2
+ import { u as useAuthStore, a as useAuthStore$1, b as AuthProxySignal } from './type-DbMyI3b5.js';
3
+ import { G as GenericEndpointContext } from './index-W5nXvJ-p.js';
4
4
  import { U as User, S as Session } from './schema-BOszzrbQ.js';
5
5
  import * as zod from 'zod';
6
6
  import { z, ZodObject, ZodOptional, ZodArray, ZodLiteral } from 'zod';
@@ -825,16 +825,16 @@ declare const memberSchema: z.ZodObject<{
825
825
  role: z.ZodEnum<["admin", "member", "owner"]>;
826
826
  }, "strip", z.ZodTypeAny, {
827
827
  id: string;
828
+ userId: string;
828
829
  name: string;
829
830
  email: string;
830
- userId: string;
831
831
  organizationId: string;
832
832
  role: "admin" | "member" | "owner";
833
833
  }, {
834
834
  id: string;
835
+ userId: string;
835
836
  name: string;
836
837
  email: string;
837
- userId: string;
838
838
  organizationId: string;
839
839
  role: "admin" | "member" | "owner";
840
840
  }>;
@@ -850,17 +850,17 @@ declare const invitationSchema: z.ZodObject<{
850
850
  inviterId: z.ZodString;
851
851
  expiresAt: z.ZodDate;
852
852
  }, "strip", z.ZodTypeAny, {
853
- status: "pending" | "accepted" | "rejected" | "canceled";
854
853
  id: string;
855
- email: string;
856
854
  expiresAt: Date;
855
+ status: "pending" | "accepted" | "rejected" | "canceled";
856
+ email: string;
857
857
  organizationId: string;
858
858
  role: "admin" | "member" | "owner";
859
859
  inviterId: string;
860
860
  }, {
861
861
  id: string;
862
- email: string;
863
862
  expiresAt: Date;
863
+ email: string;
864
864
  organizationId: string;
865
865
  role: "admin" | "member" | "owner";
866
866
  inviterId: string;
@@ -1199,9 +1199,9 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
1199
1199
  }>): Promise<{
1200
1200
  members: {
1201
1201
  id: string;
1202
+ userId: string;
1202
1203
  name: string;
1203
1204
  email: string;
1204
- userId: string;
1205
1205
  organizationId: string;
1206
1206
  role: "admin" | "member" | "owner";
1207
1207
  }[];
@@ -1405,17 +1405,17 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
1405
1405
  }>): Promise<{
1406
1406
  members: {
1407
1407
  id: string;
1408
+ userId: string;
1408
1409
  name: string;
1409
1410
  email: string;
1410
- userId: string;
1411
1411
  organizationId: string;
1412
1412
  role: "admin" | "member" | "owner";
1413
1413
  }[];
1414
1414
  invitations: {
1415
- status: "pending" | "accepted" | "rejected" | "canceled";
1416
1415
  id: string;
1417
- email: string;
1418
1416
  expiresAt: Date;
1417
+ status: "pending" | "accepted" | "rejected" | "canceled";
1418
+ email: string;
1419
1419
  organizationId: string;
1420
1420
  role: "admin" | "member" | "owner";
1421
1421
  inviterId: string;
@@ -1548,17 +1548,17 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
1548
1548
  }>): Promise<{
1549
1549
  members: {
1550
1550
  id: string;
1551
+ userId: string;
1551
1552
  name: string;
1552
1553
  email: string;
1553
- userId: string;
1554
1554
  organizationId: string;
1555
1555
  role: "admin" | "member" | "owner";
1556
1556
  }[];
1557
1557
  invitations: {
1558
- status: "pending" | "accepted" | "rejected" | "canceled";
1559
1558
  id: string;
1560
- email: string;
1561
1559
  expiresAt: Date;
1560
+ status: "pending" | "accepted" | "rejected" | "canceled";
1561
+ email: string;
1562
1562
  organizationId: string;
1563
1563
  role: "admin" | "member" | "owner";
1564
1564
  inviterId: string;
@@ -1877,10 +1877,10 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
1877
1877
  resend?: boolean | undefined;
1878
1878
  }>;
1879
1879
  }>): Promise<{
1880
- status: "pending" | "accepted" | "rejected" | "canceled";
1881
1880
  id: string;
1882
- email: string;
1883
1881
  expiresAt: Date;
1882
+ status: "pending" | "accepted" | "rejected" | "canceled";
1883
+ email: string;
1884
1884
  organizationId: string;
1885
1885
  role: "admin" | "member" | "owner";
1886
1886
  inviterId: string;
@@ -2049,10 +2049,10 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
2049
2049
  method: "*";
2050
2050
  }>)[];
2051
2051
  }>): Promise<{
2052
- status: "pending" | "accepted" | "rejected" | "canceled";
2053
2052
  id: string;
2054
- email: string;
2055
2053
  expiresAt: Date;
2054
+ status: "pending" | "accepted" | "rejected" | "canceled";
2055
+ email: string;
2056
2056
  organizationId: string;
2057
2057
  role: "admin" | "member" | "owner";
2058
2058
  inviterId: string;
@@ -2213,19 +2213,19 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
2213
2213
  }>)[];
2214
2214
  }>): Promise<{
2215
2215
  invitation: {
2216
- status: "pending" | "accepted" | "rejected" | "canceled";
2217
2216
  id: string;
2218
- email: string;
2219
2217
  expiresAt: Date;
2218
+ status: "pending" | "accepted" | "rejected" | "canceled";
2219
+ email: string;
2220
2220
  organizationId: string;
2221
2221
  role: "admin" | "member" | "owner";
2222
2222
  inviterId: string;
2223
2223
  };
2224
2224
  member: {
2225
2225
  id: string;
2226
+ userId: string;
2226
2227
  name: string;
2227
2228
  email: string;
2228
- userId: string;
2229
2229
  organizationId: string;
2230
2230
  role: "admin" | "member" | "owner";
2231
2231
  };
@@ -2336,10 +2336,10 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
2336
2336
  organizationSlug: string;
2337
2337
  inviterEmail: string;
2338
2338
  inviterName: string;
2339
- status: "pending" | "accepted" | "rejected" | "canceled";
2340
2339
  id: string;
2341
- email: string;
2342
2340
  expiresAt: Date;
2341
+ status: "pending" | "accepted" | "rejected" | "canceled";
2342
+ email: string;
2343
2343
  organizationId: string;
2344
2344
  role: "admin" | "member" | "owner";
2345
2345
  inviterId: string;
@@ -2447,10 +2447,10 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
2447
2447
  }>)[];
2448
2448
  }>): Promise<{
2449
2449
  invitation: {
2450
- status: "pending" | "accepted" | "rejected" | "canceled";
2451
2450
  id: string;
2452
- email: string;
2453
2451
  expiresAt: Date;
2452
+ status: "pending" | "accepted" | "rejected" | "canceled";
2453
+ email: string;
2454
2454
  organizationId: string;
2455
2455
  role: "admin" | "member" | "owner";
2456
2456
  inviterId: string;
@@ -2771,9 +2771,9 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
2771
2771
  }>)[];
2772
2772
  }>): Promise<{
2773
2773
  id: string;
2774
+ userId: string;
2774
2775
  name: string;
2775
2776
  email: string;
2776
- userId: string;
2777
2777
  organizationId: string;
2778
2778
  role: "admin" | "member" | "owner";
2779
2779
  } | null>;
@@ -3051,11 +3051,11 @@ declare const passkey: (options: PasskeyOptions) => {
3051
3051
  email: z.ZodOptional<z.ZodString>;
3052
3052
  callbackURL: z.ZodOptional<z.ZodString>;
3053
3053
  }, "strip", z.ZodTypeAny, {
3054
- callbackURL?: string | undefined;
3055
3054
  email?: string | undefined;
3056
- }, {
3057
3055
  callbackURL?: string | undefined;
3056
+ }, {
3058
3057
  email?: string | undefined;
3058
+ callbackURL?: string | undefined;
3059
3059
  }>>;
3060
3060
  }> | undefined): Promise<_simplewebauthn_types.PublicKeyCredentialRequestOptionsJSON>;
3061
3061
  path: "/passkey/generate-authenticate-options";
@@ -3065,11 +3065,11 @@ declare const passkey: (options: PasskeyOptions) => {
3065
3065
  email: z.ZodOptional<z.ZodString>;
3066
3066
  callbackURL: z.ZodOptional<z.ZodString>;
3067
3067
  }, "strip", z.ZodTypeAny, {
3068
- callbackURL?: string | undefined;
3069
3068
  email?: string | undefined;
3070
- }, {
3071
3069
  callbackURL?: string | undefined;
3070
+ }, {
3072
3071
  email?: string | undefined;
3072
+ callbackURL?: string | undefined;
3073
3073
  }>>;
3074
3074
  };
3075
3075
  method: better_call.Method | better_call.Method[];
@@ -3309,11 +3309,11 @@ declare const passkeyClient: ($fetch: BetterFetch) => {
3309
3309
  email: zod.ZodOptional<zod.ZodString>;
3310
3310
  callbackURL: zod.ZodOptional<zod.ZodString>;
3311
3311
  }, "strip", zod.ZodTypeAny, {
3312
- callbackURL?: string | undefined;
3313
3312
  email?: string | undefined;
3314
- }, {
3315
3313
  callbackURL?: string | undefined;
3314
+ }, {
3316
3315
  email?: string | undefined;
3316
+ callbackURL?: string | undefined;
3317
3317
  }>>;
3318
3318
  }> | undefined): Promise<PublicKeyCredentialRequestOptionsJSON>;
3319
3319
  path: "/passkey/generate-authenticate-options";
@@ -3323,11 +3323,11 @@ declare const passkeyClient: ($fetch: BetterFetch) => {
3323
3323
  email: zod.ZodOptional<zod.ZodString>;
3324
3324
  callbackURL: zod.ZodOptional<zod.ZodString>;
3325
3325
  }, "strip", zod.ZodTypeAny, {
3326
- callbackURL?: string | undefined;
3327
3326
  email?: string | undefined;
3328
- }, {
3329
3327
  callbackURL?: string | undefined;
3328
+ }, {
3330
3329
  email?: string | undefined;
3330
+ callbackURL?: string | undefined;
3331
3331
  }>>;
3332
3332
  };
3333
3333
  method: better_call.Method | better_call.Method[];