includio-cms 0.27.0 → 0.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/API.md +58 -14
  2. package/CHANGELOG.md +59 -0
  3. package/DOCS.md +1 -1
  4. package/ROADMAP.md +1 -0
  5. package/dist/admin/api/handler.js +4 -0
  6. package/dist/admin/api/integrations.d.ts +13 -0
  7. package/dist/admin/api/integrations.js +61 -0
  8. package/dist/admin/api/test-email.d.ts +9 -0
  9. package/dist/admin/api/test-email.js +39 -0
  10. package/dist/admin/auth-client.d.ts +543 -543
  11. package/dist/admin/client/index.d.ts +10 -0
  12. package/dist/admin/client/index.js +12 -0
  13. package/dist/admin/client/maintenance/maintenance-page.svelte +210 -0
  14. package/dist/admin/client/shop/coupon-schema.d.ts +1 -1
  15. package/dist/admin/client/shop/restore-order-cell.svelte +29 -0
  16. package/dist/admin/client/shop/restore-order-cell.svelte.d.ts +8 -0
  17. package/dist/admin/client/shop/shop-order-detail-page.svelte +156 -1
  18. package/dist/admin/client/shop/shop-orders-list-page.svelte +113 -53
  19. package/dist/admin/components/layout/app-sidebar.svelte +2 -0
  20. package/dist/admin/components/layout/nav-custom.svelte +26 -0
  21. package/dist/admin/components/layout/nav-custom.svelte.d.ts +3 -0
  22. package/dist/admin/components/layout/page-header.svelte +13 -3
  23. package/dist/admin/components/layout/page-header.svelte.d.ts +13 -3
  24. package/dist/admin/remote/admin.remote.d.ts +7 -0
  25. package/dist/admin/remote/admin.remote.js +10 -0
  26. package/dist/admin/remote/entry.remote.d.ts +2 -2
  27. package/dist/admin/remote/index.d.ts +1 -0
  28. package/dist/admin/remote/index.js +1 -0
  29. package/dist/admin/remote/invite.d.ts +1 -1
  30. package/dist/admin/remote/shop.remote.d.ts +125 -40
  31. package/dist/admin/remote/shop.remote.js +59 -10
  32. package/dist/admin/types.d.ts +15 -0
  33. package/dist/admin/utils/csv-export.d.ts +45 -0
  34. package/dist/admin/utils/csv-export.js +61 -0
  35. package/dist/cli/scaffold/admin.js +1 -1
  36. package/dist/components/ui/input/input.svelte.d.ts +1 -1
  37. package/dist/components/ui/input-group/input-group-input.svelte.d.ts +1 -1
  38. package/dist/components/ui/sidebar/sidebar-input.svelte.d.ts +1 -1
  39. package/dist/core/cms.d.ts +44 -2
  40. package/dist/core/cms.js +64 -0
  41. package/dist/core/index.d.ts +2 -4
  42. package/dist/core/index.js +1 -4
  43. package/dist/core/server/index.d.ts +4 -1
  44. package/dist/core/server/index.js +4 -1
  45. package/dist/db-postgres/schema/shop/index.d.ts +1 -0
  46. package/dist/db-postgres/schema/shop/index.js +1 -0
  47. package/dist/db-postgres/schema/shop/invoice.d.ts +254 -0
  48. package/dist/db-postgres/schema/shop/invoice.js +27 -0
  49. package/dist/db-postgres/schema/shop/order.d.ts +104 -0
  50. package/dist/db-postgres/schema/shop/order.js +8 -0
  51. package/dist/shop/adapters/fakturownia/client.d.ts +33 -0
  52. package/dist/shop/adapters/fakturownia/client.js +87 -0
  53. package/dist/shop/adapters/fakturownia/index.d.ts +27 -0
  54. package/dist/shop/adapters/fakturownia/index.js +47 -0
  55. package/dist/shop/adapters/fakturownia/payload.d.ts +35 -0
  56. package/dist/shop/adapters/fakturownia/payload.js +45 -0
  57. package/dist/shop/adapters/payu/index.js +11 -0
  58. package/dist/shop/client/index.d.ts +7 -0
  59. package/dist/shop/http/checkout-handler.js +11 -0
  60. package/dist/shop/index.d.ts +4 -1
  61. package/dist/shop/index.js +3 -0
  62. package/dist/shop/nip.d.ts +12 -0
  63. package/dist/shop/nip.js +23 -0
  64. package/dist/shop/server/coupons.d.ts +10 -0
  65. package/dist/shop/server/coupons.js +19 -0
  66. package/dist/shop/server/email.d.ts +7 -3
  67. package/dist/shop/server/email.js +86 -112
  68. package/dist/shop/server/emailTemplateRegistry.d.ts +47 -0
  69. package/dist/shop/server/emailTemplateRegistry.js +288 -0
  70. package/dist/shop/server/invoices.d.ts +64 -0
  71. package/dist/shop/server/invoices.js +237 -0
  72. package/dist/shop/server/orders.d.ts +64 -1
  73. package/dist/shop/server/orders.js +155 -15
  74. package/dist/shop/templates/_partials/footer.en.html +4 -0
  75. package/dist/shop/templates/_partials/footer.pl.html +4 -0
  76. package/dist/shop/templates/_partials/header.en.html +4 -0
  77. package/dist/shop/templates/_partials/header.pl.html +4 -0
  78. package/dist/shop/templates/_partials/items.en.html +14 -0
  79. package/dist/shop/templates/_partials/items.pl.html +14 -0
  80. package/dist/shop/templates/_partials/tracking.en.html +7 -0
  81. package/dist/shop/templates/_partials/tracking.pl.html +7 -0
  82. package/dist/shop/templates/awaiting-payment.en.html +6 -0
  83. package/dist/shop/templates/awaiting-payment.pl.html +6 -0
  84. package/dist/shop/templates/cancelled.en.html +6 -0
  85. package/dist/shop/templates/cancelled.pl.html +6 -0
  86. package/dist/shop/templates/low-stock.en.html +14 -0
  87. package/dist/shop/templates/low-stock.pl.html +14 -0
  88. package/dist/shop/templates/order-completed.en.html +6 -0
  89. package/dist/shop/templates/order-completed.pl.html +6 -0
  90. package/dist/shop/templates/order-received.en.html +7 -0
  91. package/dist/shop/templates/order-received.pl.html +7 -0
  92. package/dist/shop/templates/payment-received.en.html +7 -0
  93. package/dist/shop/templates/payment-received.pl.html +7 -0
  94. package/dist/shop/templates/payment-rejected.en.html +6 -0
  95. package/dist/shop/templates/payment-rejected.pl.html +6 -0
  96. package/dist/shop/templates/preparing.en.html +7 -0
  97. package/dist/shop/templates/preparing.pl.html +7 -0
  98. package/dist/shop/templates/refunded.en.html +6 -0
  99. package/dist/shop/templates/refunded.pl.html +6 -0
  100. package/dist/shop/templates/shipped.en.html +7 -0
  101. package/dist/shop/templates/shipped.pl.html +7 -0
  102. package/dist/shop/types.d.ts +130 -1
  103. package/dist/sveltekit/index.d.ts +0 -1
  104. package/dist/sveltekit/index.js +0 -1
  105. package/dist/sveltekit/server/index.d.ts +1 -0
  106. package/dist/sveltekit/server/index.js +1 -0
  107. package/dist/types/adapters/email.d.ts +13 -0
  108. package/dist/types/cms.d.ts +30 -0
  109. package/dist/types/index.d.ts +1 -1
  110. package/dist/updates/0.28.0/index.d.ts +2 -0
  111. package/dist/updates/0.28.0/index.js +38 -0
  112. package/dist/updates/0.34.0/index.d.ts +2 -0
  113. package/dist/updates/0.34.0/index.js +17 -0
  114. package/dist/updates/index.js +5 -1
  115. package/package.json +7 -2
@@ -1,9 +1,9 @@
1
1
  export declare const authClient: {
2
2
  signIn: {
3
3
  social: <FetchOptions extends {
4
+ mode?: RequestMode | undefined;
4
5
  redirect?: RequestRedirect | undefined;
5
6
  method?: string | undefined;
6
- mode?: RequestMode | undefined;
7
7
  headers?: (HeadersInit & (HeadersInit | {
8
8
  accept: "application/json" | "text/plain" | "application/octet-stream";
9
9
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -110,9 +110,9 @@ export declare const authClient: {
110
110
  };
111
111
  } & {
112
112
  signOut: <FetchOptions extends {
113
+ mode?: RequestMode | undefined;
113
114
  redirect?: RequestRedirect | undefined;
114
115
  method?: string | undefined;
115
- mode?: RequestMode | undefined;
116
116
  headers?: (HeadersInit & (HeadersInit | {
117
117
  accept: "application/json" | "text/plain" | "application/octet-stream";
118
118
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -174,9 +174,9 @@ export declare const authClient: {
174
174
  } & {
175
175
  signIn: {
176
176
  email: <FetchOptions extends {
177
+ mode?: RequestMode | undefined;
177
178
  redirect?: RequestRedirect | undefined;
178
179
  method?: string | undefined;
179
- mode?: RequestMode | undefined;
180
180
  headers?: (HeadersInit & (HeadersInit | {
181
181
  accept: "application/json" | "text/plain" | "application/octet-stream";
182
182
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -258,9 +258,9 @@ export declare const authClient: {
258
258
  };
259
259
  } & {
260
260
  forgetPassword: <FetchOptions extends {
261
+ mode?: RequestMode | undefined;
261
262
  redirect?: RequestRedirect | undefined;
262
263
  method?: string | undefined;
263
- mode?: RequestMode | undefined;
264
264
  headers?: (HeadersInit & (HeadersInit | {
265
265
  accept: "application/json" | "text/plain" | "application/octet-stream";
266
266
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -326,9 +326,9 @@ export declare const authClient: {
326
326
  }, FetchOptions["throw"] extends true ? true : false>>;
327
327
  } & {
328
328
  resetPassword: <FetchOptions extends {
329
+ mode?: RequestMode | undefined;
329
330
  redirect?: RequestRedirect | undefined;
330
331
  method?: string | undefined;
331
- mode?: RequestMode | undefined;
332
332
  headers?: (HeadersInit & (HeadersInit | {
333
333
  accept: "application/json" | "text/plain" | "application/octet-stream";
334
334
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -396,9 +396,9 @@ export declare const authClient: {
396
396
  }, FetchOptions["throw"] extends true ? true : false>>;
397
397
  } & {
398
398
  verifyEmail: <FetchOptions extends {
399
+ mode?: RequestMode | undefined;
399
400
  redirect?: RequestRedirect | undefined;
400
401
  method?: string | undefined;
401
- mode?: RequestMode | undefined;
402
402
  headers?: (HeadersInit & (HeadersInit | {
403
403
  accept: "application/json" | "text/plain" | "application/octet-stream";
404
404
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -477,9 +477,9 @@ export declare const authClient: {
477
477
  }, FetchOptions["throw"] extends true ? true : false>>;
478
478
  } & {
479
479
  sendVerificationEmail: <FetchOptions extends {
480
+ mode?: RequestMode | undefined;
480
481
  redirect?: RequestRedirect | undefined;
481
482
  method?: string | undefined;
482
- mode?: RequestMode | undefined;
483
483
  headers?: (HeadersInit & (HeadersInit | {
484
484
  accept: "application/json" | "text/plain" | "application/octet-stream";
485
485
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -545,9 +545,9 @@ export declare const authClient: {
545
545
  }, FetchOptions["throw"] extends true ? true : false>>;
546
546
  } & {
547
547
  changeEmail: <FetchOptions extends {
548
+ mode?: RequestMode | undefined;
548
549
  redirect?: RequestRedirect | undefined;
549
550
  method?: string | undefined;
550
- mode?: RequestMode | undefined;
551
551
  headers?: (HeadersInit & (HeadersInit | {
552
552
  accept: "application/json" | "text/plain" | "application/octet-stream";
553
553
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -613,9 +613,9 @@ export declare const authClient: {
613
613
  }, FetchOptions["throw"] extends true ? true : false>>;
614
614
  } & {
615
615
  changePassword: <FetchOptions extends {
616
+ mode?: RequestMode | undefined;
616
617
  redirect?: RequestRedirect | undefined;
617
618
  method?: string | undefined;
618
- mode?: RequestMode | undefined;
619
619
  headers?: (HeadersInit & (HeadersInit | {
620
620
  accept: "application/json" | "text/plain" | "application/octet-stream";
621
621
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -692,9 +692,9 @@ export declare const authClient: {
692
692
  }, FetchOptions["throw"] extends true ? true : false>>;
693
693
  } & {
694
694
  deleteUser: <FetchOptions extends {
695
+ mode?: RequestMode | undefined;
695
696
  redirect?: RequestRedirect | undefined;
696
697
  method?: string | undefined;
697
- mode?: RequestMode | undefined;
698
698
  headers?: (HeadersInit & (HeadersInit | {
699
699
  accept: "application/json" | "text/plain" | "application/octet-stream";
700
700
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -764,9 +764,9 @@ export declare const authClient: {
764
764
  } & {
765
765
  resetPassword: {
766
766
  ":token": <FetchOptions extends {
767
+ mode?: RequestMode | undefined;
767
768
  redirect?: RequestRedirect | undefined;
768
769
  method?: string | undefined;
769
- mode?: RequestMode | undefined;
770
770
  headers?: (HeadersInit & (HeadersInit | {
771
771
  accept: "application/json" | "text/plain" | "application/octet-stream";
772
772
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -832,9 +832,9 @@ export declare const authClient: {
832
832
  };
833
833
  } & {
834
834
  requestPasswordReset: <FetchOptions extends {
835
+ mode?: RequestMode | undefined;
835
836
  redirect?: RequestRedirect | undefined;
836
837
  method?: string | undefined;
837
- mode?: RequestMode | undefined;
838
838
  headers?: (HeadersInit & (HeadersInit | {
839
839
  accept: "application/json" | "text/plain" | "application/octet-stream";
840
840
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -902,9 +902,9 @@ export declare const authClient: {
902
902
  } & {
903
903
  resetPassword: {
904
904
  ":token": <FetchOptions extends {
905
+ mode?: RequestMode | undefined;
905
906
  redirect?: RequestRedirect | undefined;
906
907
  method?: string | undefined;
907
- mode?: RequestMode | undefined;
908
908
  headers?: (HeadersInit & (HeadersInit | {
909
909
  accept: "application/json" | "text/plain" | "application/octet-stream";
910
910
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -970,9 +970,9 @@ export declare const authClient: {
970
970
  };
971
971
  } & {
972
972
  revokeSession: <FetchOptions extends {
973
+ mode?: RequestMode | undefined;
973
974
  redirect?: RequestRedirect | undefined;
974
975
  method?: string | undefined;
975
- mode?: RequestMode | undefined;
976
976
  headers?: (HeadersInit & (HeadersInit | {
977
977
  accept: "application/json" | "text/plain" | "application/octet-stream";
978
978
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -1036,9 +1036,9 @@ export declare const authClient: {
1036
1036
  }, FetchOptions["throw"] extends true ? true : false>>;
1037
1037
  } & {
1038
1038
  revokeSessions: <FetchOptions extends {
1039
+ mode?: RequestMode | undefined;
1039
1040
  redirect?: RequestRedirect | undefined;
1040
1041
  method?: string | undefined;
1041
- mode?: RequestMode | undefined;
1042
1042
  headers?: (HeadersInit & (HeadersInit | {
1043
1043
  accept: "application/json" | "text/plain" | "application/octet-stream";
1044
1044
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -1099,9 +1099,9 @@ export declare const authClient: {
1099
1099
  }, FetchOptions["throw"] extends true ? true : false>>;
1100
1100
  } & {
1101
1101
  revokeOtherSessions: <FetchOptions extends {
1102
+ mode?: RequestMode | undefined;
1102
1103
  redirect?: RequestRedirect | undefined;
1103
1104
  method?: string | undefined;
1104
- mode?: RequestMode | undefined;
1105
1105
  headers?: (HeadersInit & (HeadersInit | {
1106
1106
  accept: "application/json" | "text/plain" | "application/octet-stream";
1107
1107
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -1162,9 +1162,9 @@ export declare const authClient: {
1162
1162
  }, FetchOptions["throw"] extends true ? true : false>>;
1163
1163
  } & {
1164
1164
  linkSocial: <FetchOptions extends {
1165
+ mode?: RequestMode | undefined;
1165
1166
  redirect?: RequestRedirect | undefined;
1166
1167
  method?: string | undefined;
1167
- mode?: RequestMode | undefined;
1168
1168
  headers?: (HeadersInit & (HeadersInit | {
1169
1169
  accept: "application/json" | "text/plain" | "application/octet-stream";
1170
1170
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -1253,9 +1253,9 @@ export declare const authClient: {
1253
1253
  }, FetchOptions["throw"] extends true ? true : false>>;
1254
1254
  } & {
1255
1255
  listAccounts: <FetchOptions extends {
1256
+ mode?: RequestMode | undefined;
1256
1257
  redirect?: RequestRedirect | undefined;
1257
1258
  method?: string | undefined;
1258
- mode?: RequestMode | undefined;
1259
1259
  headers?: (HeadersInit & (HeadersInit | {
1260
1260
  accept: "application/json" | "text/plain" | "application/octet-stream";
1261
1261
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -1322,9 +1322,9 @@ export declare const authClient: {
1322
1322
  } & {
1323
1323
  deleteUser: {
1324
1324
  callback: <FetchOptions extends {
1325
+ mode?: RequestMode | undefined;
1325
1326
  redirect?: RequestRedirect | undefined;
1326
1327
  method?: string | undefined;
1327
- mode?: RequestMode | undefined;
1328
1328
  headers?: (HeadersInit & (HeadersInit | {
1329
1329
  accept: "application/json" | "text/plain" | "application/octet-stream";
1330
1330
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -1393,9 +1393,9 @@ export declare const authClient: {
1393
1393
  };
1394
1394
  } & {
1395
1395
  unlinkAccount: <FetchOptions extends {
1396
+ mode?: RequestMode | undefined;
1396
1397
  redirect?: RequestRedirect | undefined;
1397
1398
  method?: string | undefined;
1398
- mode?: RequestMode | undefined;
1399
1399
  headers?: (HeadersInit & (HeadersInit | {
1400
1400
  accept: "application/json" | "text/plain" | "application/octet-stream";
1401
1401
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -1461,9 +1461,9 @@ export declare const authClient: {
1461
1461
  }, FetchOptions["throw"] extends true ? true : false>>;
1462
1462
  } & {
1463
1463
  refreshToken: <FetchOptions extends {
1464
+ mode?: RequestMode | undefined;
1464
1465
  redirect?: RequestRedirect | undefined;
1465
1466
  method?: string | undefined;
1466
- mode?: RequestMode | undefined;
1467
1467
  headers?: (HeadersInit & (HeadersInit | {
1468
1468
  accept: "application/json" | "text/plain" | "application/octet-stream";
1469
1469
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -1529,9 +1529,9 @@ export declare const authClient: {
1529
1529
  }, FetchOptions["throw"] extends true ? true : false>>;
1530
1530
  } & {
1531
1531
  getAccessToken: <FetchOptions extends {
1532
+ mode?: RequestMode | undefined;
1532
1533
  redirect?: RequestRedirect | undefined;
1533
1534
  method?: string | undefined;
1534
- mode?: RequestMode | undefined;
1535
1535
  headers?: (HeadersInit & (HeadersInit | {
1536
1536
  accept: "application/json" | "text/plain" | "application/octet-stream";
1537
1537
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -1602,9 +1602,9 @@ export declare const authClient: {
1602
1602
  }, FetchOptions["throw"] extends true ? true : false>>;
1603
1603
  } & {
1604
1604
  accountInfo: <FetchOptions extends {
1605
+ mode?: RequestMode | undefined;
1605
1606
  redirect?: RequestRedirect | undefined;
1606
1607
  method?: string | undefined;
1607
- mode?: RequestMode | undefined;
1608
1608
  headers?: (HeadersInit & (HeadersInit | {
1609
1609
  accept: "application/json" | "text/plain" | "application/octet-stream";
1610
1610
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -1668,86 +1668,11 @@ export declare const authClient: {
1668
1668
  message?: string;
1669
1669
  }, FetchOptions["throw"] extends true ? true : false>>;
1670
1670
  } & {
1671
- admin: {
1672
- getUser: <FetchOptions extends {
1673
- redirect?: RequestRedirect | undefined;
1674
- method?: string | undefined;
1671
+ signUp: {
1672
+ email: <FetchOptions extends {
1675
1673
  mode?: RequestMode | undefined;
1676
- headers?: (HeadersInit & (HeadersInit | {
1677
- accept: "application/json" | "text/plain" | "application/octet-stream";
1678
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1679
- authorization: "Bearer" | "Basic";
1680
- })) | undefined;
1681
- cache?: RequestCache | undefined;
1682
- credentials?: RequestCredentials | undefined;
1683
- integrity?: string | undefined;
1684
- keepalive?: boolean | undefined;
1685
- priority?: RequestPriority | undefined;
1686
- referrer?: string | undefined;
1687
- referrerPolicy?: ReferrerPolicy | undefined;
1688
- signal?: (AbortSignal | null) | undefined;
1689
- window?: null | undefined;
1690
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext<T>) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void> | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void) | undefined;
1691
- onResponse?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<Response | void | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext> | Response | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext | void) | undefined;
1692
- onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
1693
- onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
1694
- onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
1695
- hookOptions?: {
1696
- cloneResponse?: boolean;
1697
- } | undefined;
1698
- timeout?: number | undefined;
1699
- customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
1700
- plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
1701
- baseURL?: string | undefined;
1702
- throw?: boolean | undefined;
1703
- auth?: ({
1704
- type: "Bearer";
1705
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1706
- } | {
1707
- type: "Basic";
1708
- username: string | (() => string | undefined) | undefined;
1709
- password: string | (() => string | undefined) | undefined;
1710
- } | {
1711
- type: "Custom";
1712
- prefix: string | (() => string | undefined) | undefined;
1713
- value: string | (() => string | undefined) | undefined;
1714
- }) | undefined;
1715
- body?: undefined;
1716
- query?: (Partial<{
1717
- id: string;
1718
- }> & Record<string, any>) | undefined;
1719
- params?: Record<string, any> | undefined;
1720
- duplex?: "full" | "half" | undefined;
1721
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1722
- retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
1723
- retryAttempt?: number | undefined;
1724
- output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1725
- errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
1726
- disableValidation?: boolean | undefined;
1727
- }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
1728
- query: {
1729
- id: string;
1730
- };
1731
- fetchOptions?: FetchOptions | undefined;
1732
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
1733
- id: string;
1734
- createdAt: Date;
1735
- updatedAt: Date;
1736
- email: string;
1737
- emailVerified: boolean;
1738
- name: string;
1739
- image?: string | null | undefined;
1740
- }, {
1741
- code?: string;
1742
- message?: string;
1743
- }, FetchOptions["throw"] extends true ? true : false>>;
1744
- };
1745
- } & {
1746
- admin: {
1747
- updateUser: <FetchOptions extends {
1748
1674
  redirect?: RequestRedirect | undefined;
1749
1675
  method?: string | undefined;
1750
- mode?: RequestMode | undefined;
1751
1676
  headers?: (HeadersInit & (HeadersInit | {
1752
1677
  accept: "application/json" | "text/plain" | "application/octet-stream";
1753
1678
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -1788,8 +1713,12 @@ export declare const authClient: {
1788
1713
  value: string | (() => string | undefined) | undefined;
1789
1714
  }) | undefined;
1790
1715
  body?: (Partial<{
1791
- userId: unknown;
1792
- data: Record<any, any>;
1716
+ name: string;
1717
+ email: string;
1718
+ password: string;
1719
+ image?: string;
1720
+ callbackURL?: string;
1721
+ rememberMe?: boolean;
1793
1722
  }> & Record<string, any>) | undefined;
1794
1723
  query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1795
1724
  params?: Record<string, any> | undefined;
@@ -1801,114 +1730,274 @@ export declare const authClient: {
1801
1730
  errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
1802
1731
  disableValidation?: boolean | undefined;
1803
1732
  }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
1804
- userId: unknown;
1805
- data: Record<any, any>;
1806
- } & {
1733
+ email: string;
1734
+ name: string;
1735
+ password: string;
1736
+ image?: string;
1737
+ callbackURL?: string;
1807
1738
  fetchOptions?: FetchOptions | undefined;
1808
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<import("better-auth/plugins", { with: { "resolution-mode": "require" } }).UserWithRole, {
1809
- code?: string;
1810
- message?: string;
1811
- }, FetchOptions["throw"] extends true ? true : false>>;
1812
- };
1813
- } & {
1814
- admin: {
1815
- listUsers: <FetchOptions extends {
1816
- redirect?: RequestRedirect | undefined;
1817
- method?: string | undefined;
1818
- mode?: RequestMode | undefined;
1819
- headers?: (HeadersInit & (HeadersInit | {
1820
- accept: "application/json" | "text/plain" | "application/octet-stream";
1821
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1822
- authorization: "Bearer" | "Basic";
1823
- })) | undefined;
1824
- cache?: RequestCache | undefined;
1825
- credentials?: RequestCredentials | undefined;
1826
- integrity?: string | undefined;
1827
- keepalive?: boolean | undefined;
1828
- priority?: RequestPriority | undefined;
1829
- referrer?: string | undefined;
1830
- referrerPolicy?: ReferrerPolicy | undefined;
1831
- signal?: (AbortSignal | null) | undefined;
1832
- window?: null | undefined;
1833
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext<T>) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void> | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void) | undefined;
1834
- onResponse?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<Response | void | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext> | Response | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext | void) | undefined;
1835
- onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
1836
- onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
1837
- onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
1838
- hookOptions?: {
1839
- cloneResponse?: boolean;
1840
- } | undefined;
1841
- timeout?: number | undefined;
1842
- customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
1843
- plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
1844
- baseURL?: string | undefined;
1845
- throw?: boolean | undefined;
1846
- auth?: ({
1847
- type: "Bearer";
1848
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1849
- } | {
1850
- type: "Basic";
1851
- username: string | (() => string | undefined) | undefined;
1852
- password: string | (() => string | undefined) | undefined;
1853
- } | {
1854
- type: "Custom";
1855
- prefix: string | (() => string | undefined) | undefined;
1856
- value: string | (() => string | undefined) | undefined;
1857
- }) | undefined;
1858
- body?: undefined;
1859
- query?: (Partial<{
1860
- searchValue?: string | undefined;
1861
- searchField?: "email" | "name" | undefined;
1862
- searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
1863
- limit?: string | number | undefined;
1864
- offset?: string | number | undefined;
1865
- sortBy?: string | undefined;
1866
- sortDirection?: "asc" | "desc" | undefined;
1867
- filterField?: string | undefined;
1868
- filterValue?: string | number | boolean | undefined;
1869
- filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
1870
- }> & Record<string, any>) | undefined;
1871
- params?: Record<string, any> | undefined;
1872
- duplex?: "full" | "half" | undefined;
1873
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1874
- retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
1875
- retryAttempt?: number | undefined;
1876
- output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1877
- errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
1878
- disableValidation?: boolean | undefined;
1879
- }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
1880
- query: {
1881
- searchValue?: string | undefined;
1882
- searchField?: "email" | "name" | undefined;
1883
- searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
1884
- limit?: string | number | undefined;
1885
- offset?: string | number | undefined;
1886
- sortBy?: string | undefined;
1887
- sortDirection?: "asc" | "desc" | undefined;
1888
- filterField?: string | undefined;
1889
- filterValue?: string | number | boolean | undefined;
1890
- filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
1739
+ } & {} & {}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<NonNullable<{
1740
+ token: null;
1741
+ user: {
1742
+ id: string;
1743
+ email: string;
1744
+ name: string;
1745
+ image: string | null | undefined;
1746
+ emailVerified: boolean;
1747
+ createdAt: Date;
1748
+ updatedAt: Date;
1891
1749
  };
1892
- fetchOptions?: FetchOptions | undefined;
1893
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<NonNullable<{
1894
- users: import("better-auth/plugins", { with: { "resolution-mode": "require" } }).UserWithRole[];
1895
- total: number;
1896
- limit: number | undefined;
1897
- offset: number | undefined;
1898
1750
  } | {
1899
- users: never[];
1900
- total: number;
1751
+ token: string;
1752
+ user: {
1753
+ id: string;
1754
+ email: string;
1755
+ name: string;
1756
+ image: string | null | undefined;
1757
+ emailVerified: boolean;
1758
+ createdAt: Date;
1759
+ updatedAt: Date;
1760
+ };
1901
1761
  }>, {
1902
1762
  code?: string;
1903
1763
  message?: string;
1904
1764
  }, FetchOptions["throw"] extends true ? true : false>>;
1905
1765
  };
1906
1766
  } & {
1907
- admin: {
1908
- listUserSessions: <FetchOptions extends {
1909
- redirect?: RequestRedirect | undefined;
1910
- method?: string | undefined;
1767
+ updateUser: <FetchOptions extends {
1768
+ mode?: RequestMode | undefined;
1769
+ redirect?: RequestRedirect | undefined;
1770
+ method?: string | undefined;
1771
+ headers?: (HeadersInit & (HeadersInit | {
1772
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1773
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1774
+ authorization: "Bearer" | "Basic";
1775
+ })) | undefined;
1776
+ cache?: RequestCache | undefined;
1777
+ credentials?: RequestCredentials | undefined;
1778
+ integrity?: string | undefined;
1779
+ keepalive?: boolean | undefined;
1780
+ priority?: RequestPriority | undefined;
1781
+ referrer?: string | undefined;
1782
+ referrerPolicy?: ReferrerPolicy | undefined;
1783
+ signal?: (AbortSignal | null) | undefined;
1784
+ window?: null | undefined;
1785
+ onRequest?: (<T extends Record<string, any>>(context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext<T>) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void> | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void) | undefined;
1786
+ onResponse?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<Response | void | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext> | Response | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext | void) | undefined;
1787
+ onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
1788
+ onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
1789
+ onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
1790
+ hookOptions?: {
1791
+ cloneResponse?: boolean;
1792
+ } | undefined;
1793
+ timeout?: number | undefined;
1794
+ customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
1795
+ plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
1796
+ baseURL?: string | undefined;
1797
+ throw?: boolean | undefined;
1798
+ auth?: ({
1799
+ type: "Bearer";
1800
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1801
+ } | {
1802
+ type: "Basic";
1803
+ username: string | (() => string | undefined) | undefined;
1804
+ password: string | (() => string | undefined) | undefined;
1805
+ } | {
1806
+ type: "Custom";
1807
+ prefix: string | (() => string | undefined) | undefined;
1808
+ value: string | (() => string | undefined) | undefined;
1809
+ }) | undefined;
1810
+ body?: (Partial<Partial<{}> & {
1811
+ name?: string;
1812
+ image?: string;
1813
+ }> & Record<string, any>) | undefined;
1814
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1815
+ params?: Record<string, any> | undefined;
1816
+ duplex?: "full" | "half" | undefined;
1817
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1818
+ retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
1819
+ retryAttempt?: number | undefined;
1820
+ output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1821
+ errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
1822
+ disableValidation?: boolean | undefined;
1823
+ }>(data_0?: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
1824
+ image?: string | null;
1825
+ name?: string;
1826
+ fetchOptions?: FetchOptions | undefined;
1827
+ } & Partial<{} & {}>> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
1828
+ status: boolean;
1829
+ }, {
1830
+ code?: string;
1831
+ message?: string;
1832
+ }, FetchOptions["throw"] extends true ? true : false>>;
1833
+ } & {
1834
+ listSessions: <FetchOptions extends {
1835
+ mode?: RequestMode | undefined;
1836
+ redirect?: RequestRedirect | undefined;
1837
+ method?: string | undefined;
1838
+ headers?: (HeadersInit & (HeadersInit | {
1839
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1840
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1841
+ authorization: "Bearer" | "Basic";
1842
+ })) | undefined;
1843
+ cache?: RequestCache | undefined;
1844
+ credentials?: RequestCredentials | undefined;
1845
+ integrity?: string | undefined;
1846
+ keepalive?: boolean | undefined;
1847
+ priority?: RequestPriority | undefined;
1848
+ referrer?: string | undefined;
1849
+ referrerPolicy?: ReferrerPolicy | undefined;
1850
+ signal?: (AbortSignal | null) | undefined;
1851
+ window?: null | undefined;
1852
+ onRequest?: (<T extends Record<string, any>>(context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext<T>) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void> | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void) | undefined;
1853
+ onResponse?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<Response | void | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext> | Response | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext | void) | undefined;
1854
+ onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
1855
+ onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
1856
+ onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
1857
+ hookOptions?: {
1858
+ cloneResponse?: boolean;
1859
+ } | undefined;
1860
+ timeout?: number | undefined;
1861
+ customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
1862
+ plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
1863
+ baseURL?: string | undefined;
1864
+ throw?: boolean | undefined;
1865
+ auth?: ({
1866
+ type: "Bearer";
1867
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1868
+ } | {
1869
+ type: "Basic";
1870
+ username: string | (() => string | undefined) | undefined;
1871
+ password: string | (() => string | undefined) | undefined;
1872
+ } | {
1873
+ type: "Custom";
1874
+ prefix: string | (() => string | undefined) | undefined;
1875
+ value: string | (() => string | undefined) | undefined;
1876
+ }) | undefined;
1877
+ body?: undefined;
1878
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1879
+ params?: Record<string, any> | undefined;
1880
+ duplex?: "full" | "half" | undefined;
1881
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1882
+ retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
1883
+ retryAttempt?: number | undefined;
1884
+ output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1885
+ errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
1886
+ disableValidation?: boolean | undefined;
1887
+ }>(data_0?: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
1888
+ query?: Record<string, any> | undefined;
1889
+ fetchOptions?: FetchOptions | undefined;
1890
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
1891
+ id: string;
1892
+ createdAt: Date;
1893
+ updatedAt: Date;
1894
+ userId: string;
1895
+ expiresAt: Date;
1896
+ token: string;
1897
+ ipAddress?: string | null | undefined | undefined;
1898
+ userAgent?: string | null | undefined | undefined;
1899
+ }>[], {
1900
+ code?: string;
1901
+ message?: string;
1902
+ }, FetchOptions["throw"] extends true ? true : false>>;
1903
+ } & {
1904
+ getSession: <FetchOptions extends {
1905
+ mode?: RequestMode | undefined;
1906
+ redirect?: RequestRedirect | undefined;
1907
+ method?: string | undefined;
1908
+ headers?: (HeadersInit & (HeadersInit | {
1909
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1910
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1911
+ authorization: "Bearer" | "Basic";
1912
+ })) | undefined;
1913
+ cache?: RequestCache | undefined;
1914
+ credentials?: RequestCredentials | undefined;
1915
+ integrity?: string | undefined;
1916
+ keepalive?: boolean | undefined;
1917
+ priority?: RequestPriority | undefined;
1918
+ referrer?: string | undefined;
1919
+ referrerPolicy?: ReferrerPolicy | undefined;
1920
+ signal?: (AbortSignal | null) | undefined;
1921
+ window?: null | undefined;
1922
+ onRequest?: (<T extends Record<string, any>>(context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext<T>) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void> | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void) | undefined;
1923
+ onResponse?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<Response | void | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext> | Response | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext | void) | undefined;
1924
+ onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
1925
+ onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
1926
+ onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
1927
+ hookOptions?: {
1928
+ cloneResponse?: boolean;
1929
+ } | undefined;
1930
+ timeout?: number | undefined;
1931
+ customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
1932
+ plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
1933
+ baseURL?: string | undefined;
1934
+ throw?: boolean | undefined;
1935
+ auth?: ({
1936
+ type: "Bearer";
1937
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1938
+ } | {
1939
+ type: "Basic";
1940
+ username: string | (() => string | undefined) | undefined;
1941
+ password: string | (() => string | undefined) | undefined;
1942
+ } | {
1943
+ type: "Custom";
1944
+ prefix: string | (() => string | undefined) | undefined;
1945
+ value: string | (() => string | undefined) | undefined;
1946
+ }) | undefined;
1947
+ body?: undefined;
1948
+ query?: (Partial<{
1949
+ disableCookieCache?: unknown;
1950
+ disableRefresh?: unknown;
1951
+ }> & Record<string, any>) | undefined;
1952
+ params?: Record<string, any> | undefined;
1953
+ duplex?: "full" | "half" | undefined;
1954
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1955
+ retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
1956
+ retryAttempt?: number | undefined;
1957
+ output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1958
+ errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
1959
+ disableValidation?: boolean | undefined;
1960
+ }>(data_0?: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
1961
+ query?: {
1962
+ disableCookieCache?: unknown;
1963
+ disableRefresh?: unknown;
1964
+ } | undefined;
1965
+ fetchOptions?: FetchOptions | undefined;
1966
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
1967
+ user: {
1968
+ id: string;
1969
+ createdAt: Date;
1970
+ updatedAt: Date;
1971
+ email: string;
1972
+ emailVerified: boolean;
1973
+ name: string;
1974
+ image?: string | null | undefined;
1975
+ banned: boolean | null | undefined;
1976
+ role?: string | null | undefined;
1977
+ banReason?: string | null | undefined;
1978
+ banExpires?: Date | null | undefined;
1979
+ };
1980
+ session: {
1981
+ id: string;
1982
+ createdAt: Date;
1983
+ updatedAt: Date;
1984
+ userId: string;
1985
+ expiresAt: Date;
1986
+ token: string;
1987
+ ipAddress?: string | null | undefined;
1988
+ userAgent?: string | null | undefined;
1989
+ impersonatedBy?: string | null | undefined;
1990
+ };
1991
+ } | null, {
1992
+ code?: string;
1993
+ message?: string;
1994
+ }, FetchOptions["throw"] extends true ? true : false>>;
1995
+ } & {
1996
+ admin: {
1997
+ getUser: <FetchOptions extends {
1911
1998
  mode?: RequestMode | undefined;
1999
+ redirect?: RequestRedirect | undefined;
2000
+ method?: string | undefined;
1912
2001
  headers?: (HeadersInit & (HeadersInit | {
1913
2002
  accept: "application/json" | "text/plain" | "application/octet-stream";
1914
2003
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -1948,10 +2037,10 @@ export declare const authClient: {
1948
2037
  prefix: string | (() => string | undefined) | undefined;
1949
2038
  value: string | (() => string | undefined) | undefined;
1950
2039
  }) | undefined;
1951
- body?: (Partial<{
1952
- userId: unknown;
2040
+ body?: undefined;
2041
+ query?: (Partial<{
2042
+ id: string;
1953
2043
  }> & Record<string, any>) | undefined;
1954
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1955
2044
  params?: Record<string, any> | undefined;
1956
2045
  duplex?: "full" | "half" | undefined;
1957
2046
  jsonParser?: ((text: string) => Promise<any> | any) | undefined;
@@ -1961,11 +2050,18 @@ export declare const authClient: {
1961
2050
  errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
1962
2051
  disableValidation?: boolean | undefined;
1963
2052
  }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
1964
- userId: unknown;
1965
- } & {
2053
+ query: {
2054
+ id: string;
2055
+ };
1966
2056
  fetchOptions?: FetchOptions | undefined;
1967
2057
  }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
1968
- sessions: import("better-auth/plugins", { with: { "resolution-mode": "require" } }).SessionWithImpersonatedBy[];
2058
+ id: string;
2059
+ createdAt: Date;
2060
+ updatedAt: Date;
2061
+ email: string;
2062
+ emailVerified: boolean;
2063
+ name: string;
2064
+ image?: string | null | undefined;
1969
2065
  }, {
1970
2066
  code?: string;
1971
2067
  message?: string;
@@ -1973,10 +2069,239 @@ export declare const authClient: {
1973
2069
  };
1974
2070
  } & {
1975
2071
  admin: {
1976
- unbanUser: <FetchOptions extends {
2072
+ updateUser: <FetchOptions extends {
2073
+ mode?: RequestMode | undefined;
2074
+ redirect?: RequestRedirect | undefined;
2075
+ method?: string | undefined;
2076
+ headers?: (HeadersInit & (HeadersInit | {
2077
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2078
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2079
+ authorization: "Bearer" | "Basic";
2080
+ })) | undefined;
2081
+ cache?: RequestCache | undefined;
2082
+ credentials?: RequestCredentials | undefined;
2083
+ integrity?: string | undefined;
2084
+ keepalive?: boolean | undefined;
2085
+ priority?: RequestPriority | undefined;
2086
+ referrer?: string | undefined;
2087
+ referrerPolicy?: ReferrerPolicy | undefined;
2088
+ signal?: (AbortSignal | null) | undefined;
2089
+ window?: null | undefined;
2090
+ onRequest?: (<T extends Record<string, any>>(context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext<T>) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void> | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void) | undefined;
2091
+ onResponse?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<Response | void | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext> | Response | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext | void) | undefined;
2092
+ onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
2093
+ onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
2094
+ onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
2095
+ hookOptions?: {
2096
+ cloneResponse?: boolean;
2097
+ } | undefined;
2098
+ timeout?: number | undefined;
2099
+ customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
2100
+ plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
2101
+ baseURL?: string | undefined;
2102
+ throw?: boolean | undefined;
2103
+ auth?: ({
2104
+ type: "Bearer";
2105
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2106
+ } | {
2107
+ type: "Basic";
2108
+ username: string | (() => string | undefined) | undefined;
2109
+ password: string | (() => string | undefined) | undefined;
2110
+ } | {
2111
+ type: "Custom";
2112
+ prefix: string | (() => string | undefined) | undefined;
2113
+ value: string | (() => string | undefined) | undefined;
2114
+ }) | undefined;
2115
+ body?: (Partial<{
2116
+ userId: unknown;
2117
+ data: Record<any, any>;
2118
+ }> & Record<string, any>) | undefined;
2119
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2120
+ params?: Record<string, any> | undefined;
2121
+ duplex?: "full" | "half" | undefined;
2122
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2123
+ retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
2124
+ retryAttempt?: number | undefined;
2125
+ output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2126
+ errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
2127
+ disableValidation?: boolean | undefined;
2128
+ }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
2129
+ userId: unknown;
2130
+ data: Record<any, any>;
2131
+ } & {
2132
+ fetchOptions?: FetchOptions | undefined;
2133
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<import("better-auth/plugins", { with: { "resolution-mode": "require" } }).UserWithRole, {
2134
+ code?: string;
2135
+ message?: string;
2136
+ }, FetchOptions["throw"] extends true ? true : false>>;
2137
+ };
2138
+ } & {
2139
+ admin: {
2140
+ listUsers: <FetchOptions extends {
2141
+ mode?: RequestMode | undefined;
2142
+ redirect?: RequestRedirect | undefined;
2143
+ method?: string | undefined;
2144
+ headers?: (HeadersInit & (HeadersInit | {
2145
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2146
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2147
+ authorization: "Bearer" | "Basic";
2148
+ })) | undefined;
2149
+ cache?: RequestCache | undefined;
2150
+ credentials?: RequestCredentials | undefined;
2151
+ integrity?: string | undefined;
2152
+ keepalive?: boolean | undefined;
2153
+ priority?: RequestPriority | undefined;
2154
+ referrer?: string | undefined;
2155
+ referrerPolicy?: ReferrerPolicy | undefined;
2156
+ signal?: (AbortSignal | null) | undefined;
2157
+ window?: null | undefined;
2158
+ onRequest?: (<T extends Record<string, any>>(context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext<T>) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void> | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void) | undefined;
2159
+ onResponse?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<Response | void | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext> | Response | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext | void) | undefined;
2160
+ onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
2161
+ onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
2162
+ onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
2163
+ hookOptions?: {
2164
+ cloneResponse?: boolean;
2165
+ } | undefined;
2166
+ timeout?: number | undefined;
2167
+ customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
2168
+ plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
2169
+ baseURL?: string | undefined;
2170
+ throw?: boolean | undefined;
2171
+ auth?: ({
2172
+ type: "Bearer";
2173
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2174
+ } | {
2175
+ type: "Basic";
2176
+ username: string | (() => string | undefined) | undefined;
2177
+ password: string | (() => string | undefined) | undefined;
2178
+ } | {
2179
+ type: "Custom";
2180
+ prefix: string | (() => string | undefined) | undefined;
2181
+ value: string | (() => string | undefined) | undefined;
2182
+ }) | undefined;
2183
+ body?: undefined;
2184
+ query?: (Partial<{
2185
+ searchValue?: string | undefined;
2186
+ searchField?: "email" | "name" | undefined;
2187
+ searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
2188
+ limit?: string | number | undefined;
2189
+ offset?: string | number | undefined;
2190
+ sortBy?: string | undefined;
2191
+ sortDirection?: "asc" | "desc" | undefined;
2192
+ filterField?: string | undefined;
2193
+ filterValue?: string | number | boolean | undefined;
2194
+ filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
2195
+ }> & Record<string, any>) | undefined;
2196
+ params?: Record<string, any> | undefined;
2197
+ duplex?: "full" | "half" | undefined;
2198
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2199
+ retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
2200
+ retryAttempt?: number | undefined;
2201
+ output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2202
+ errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
2203
+ disableValidation?: boolean | undefined;
2204
+ }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
2205
+ query: {
2206
+ searchValue?: string | undefined;
2207
+ searchField?: "email" | "name" | undefined;
2208
+ searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
2209
+ limit?: string | number | undefined;
2210
+ offset?: string | number | undefined;
2211
+ sortBy?: string | undefined;
2212
+ sortDirection?: "asc" | "desc" | undefined;
2213
+ filterField?: string | undefined;
2214
+ filterValue?: string | number | boolean | undefined;
2215
+ filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
2216
+ };
2217
+ fetchOptions?: FetchOptions | undefined;
2218
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<NonNullable<{
2219
+ users: import("better-auth/plugins", { with: { "resolution-mode": "require" } }).UserWithRole[];
2220
+ total: number;
2221
+ limit: number | undefined;
2222
+ offset: number | undefined;
2223
+ } | {
2224
+ users: never[];
2225
+ total: number;
2226
+ }>, {
2227
+ code?: string;
2228
+ message?: string;
2229
+ }, FetchOptions["throw"] extends true ? true : false>>;
2230
+ };
2231
+ } & {
2232
+ admin: {
2233
+ listUserSessions: <FetchOptions extends {
2234
+ mode?: RequestMode | undefined;
2235
+ redirect?: RequestRedirect | undefined;
2236
+ method?: string | undefined;
2237
+ headers?: (HeadersInit & (HeadersInit | {
2238
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2239
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2240
+ authorization: "Bearer" | "Basic";
2241
+ })) | undefined;
2242
+ cache?: RequestCache | undefined;
2243
+ credentials?: RequestCredentials | undefined;
2244
+ integrity?: string | undefined;
2245
+ keepalive?: boolean | undefined;
2246
+ priority?: RequestPriority | undefined;
2247
+ referrer?: string | undefined;
2248
+ referrerPolicy?: ReferrerPolicy | undefined;
2249
+ signal?: (AbortSignal | null) | undefined;
2250
+ window?: null | undefined;
2251
+ onRequest?: (<T extends Record<string, any>>(context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext<T>) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void> | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void) | undefined;
2252
+ onResponse?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<Response | void | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext> | Response | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext | void) | undefined;
2253
+ onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
2254
+ onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
2255
+ onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
2256
+ hookOptions?: {
2257
+ cloneResponse?: boolean;
2258
+ } | undefined;
2259
+ timeout?: number | undefined;
2260
+ customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
2261
+ plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
2262
+ baseURL?: string | undefined;
2263
+ throw?: boolean | undefined;
2264
+ auth?: ({
2265
+ type: "Bearer";
2266
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2267
+ } | {
2268
+ type: "Basic";
2269
+ username: string | (() => string | undefined) | undefined;
2270
+ password: string | (() => string | undefined) | undefined;
2271
+ } | {
2272
+ type: "Custom";
2273
+ prefix: string | (() => string | undefined) | undefined;
2274
+ value: string | (() => string | undefined) | undefined;
2275
+ }) | undefined;
2276
+ body?: (Partial<{
2277
+ userId: unknown;
2278
+ }> & Record<string, any>) | undefined;
2279
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2280
+ params?: Record<string, any> | undefined;
2281
+ duplex?: "full" | "half" | undefined;
2282
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2283
+ retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
2284
+ retryAttempt?: number | undefined;
2285
+ output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2286
+ errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
2287
+ disableValidation?: boolean | undefined;
2288
+ }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
2289
+ userId: unknown;
2290
+ } & {
2291
+ fetchOptions?: FetchOptions | undefined;
2292
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
2293
+ sessions: import("better-auth/plugins", { with: { "resolution-mode": "require" } }).SessionWithImpersonatedBy[];
2294
+ }, {
2295
+ code?: string;
2296
+ message?: string;
2297
+ }, FetchOptions["throw"] extends true ? true : false>>;
2298
+ };
2299
+ } & {
2300
+ admin: {
2301
+ unbanUser: <FetchOptions extends {
2302
+ mode?: RequestMode | undefined;
1977
2303
  redirect?: RequestRedirect | undefined;
1978
2304
  method?: string | undefined;
1979
- mode?: RequestMode | undefined;
1980
2305
  headers?: (HeadersInit & (HeadersInit | {
1981
2306
  accept: "application/json" | "text/plain" | "application/octet-stream";
1982
2307
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -2042,9 +2367,9 @@ export declare const authClient: {
2042
2367
  } & {
2043
2368
  admin: {
2044
2369
  banUser: <FetchOptions extends {
2370
+ mode?: RequestMode | undefined;
2045
2371
  redirect?: RequestRedirect | undefined;
2046
2372
  method?: string | undefined;
2047
- mode?: RequestMode | undefined;
2048
2373
  headers?: (HeadersInit & (HeadersInit | {
2049
2374
  accept: "application/json" | "text/plain" | "application/octet-stream";
2050
2375
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -2114,9 +2439,9 @@ export declare const authClient: {
2114
2439
  } & {
2115
2440
  admin: {
2116
2441
  impersonateUser: <FetchOptions extends {
2442
+ mode?: RequestMode | undefined;
2117
2443
  redirect?: RequestRedirect | undefined;
2118
2444
  method?: string | undefined;
2119
- mode?: RequestMode | undefined;
2120
2445
  headers?: (HeadersInit & (HeadersInit | {
2121
2446
  accept: "application/json" | "text/plain" | "application/octet-stream";
2122
2447
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -2200,9 +2525,9 @@ export declare const authClient: {
2200
2525
  } & {
2201
2526
  admin: {
2202
2527
  stopImpersonating: <FetchOptions extends {
2528
+ mode?: RequestMode | undefined;
2203
2529
  redirect?: RequestRedirect | undefined;
2204
2530
  method?: string | undefined;
2205
- mode?: RequestMode | undefined;
2206
2531
  headers?: (HeadersInit & (HeadersInit | {
2207
2532
  accept: "application/json" | "text/plain" | "application/octet-stream";
2208
2533
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -2266,9 +2591,9 @@ export declare const authClient: {
2266
2591
  } & {
2267
2592
  admin: {
2268
2593
  revokeUserSession: <FetchOptions extends {
2594
+ mode?: RequestMode | undefined;
2269
2595
  redirect?: RequestRedirect | undefined;
2270
2596
  method?: string | undefined;
2271
- mode?: RequestMode | undefined;
2272
2597
  headers?: (HeadersInit & (HeadersInit | {
2273
2598
  accept: "application/json" | "text/plain" | "application/octet-stream";
2274
2599
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -2334,9 +2659,9 @@ export declare const authClient: {
2334
2659
  } & {
2335
2660
  admin: {
2336
2661
  revokeUserSessions: <FetchOptions extends {
2662
+ mode?: RequestMode | undefined;
2337
2663
  redirect?: RequestRedirect | undefined;
2338
2664
  method?: string | undefined;
2339
- mode?: RequestMode | undefined;
2340
2665
  headers?: (HeadersInit & (HeadersInit | {
2341
2666
  accept: "application/json" | "text/plain" | "application/octet-stream";
2342
2667
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -2402,9 +2727,9 @@ export declare const authClient: {
2402
2727
  } & {
2403
2728
  admin: {
2404
2729
  removeUser: <FetchOptions extends {
2730
+ mode?: RequestMode | undefined;
2405
2731
  redirect?: RequestRedirect | undefined;
2406
2732
  method?: string | undefined;
2407
- mode?: RequestMode | undefined;
2408
2733
  headers?: (HeadersInit & (HeadersInit | {
2409
2734
  accept: "application/json" | "text/plain" | "application/octet-stream";
2410
2735
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -2470,9 +2795,9 @@ export declare const authClient: {
2470
2795
  } & {
2471
2796
  admin: {
2472
2797
  setUserPassword: <FetchOptions extends {
2798
+ mode?: RequestMode | undefined;
2473
2799
  redirect?: RequestRedirect | undefined;
2474
2800
  method?: string | undefined;
2475
- mode?: RequestMode | undefined;
2476
2801
  headers?: (HeadersInit & (HeadersInit | {
2477
2802
  accept: "application/json" | "text/plain" | "application/octet-stream";
2478
2803
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -2540,9 +2865,9 @@ export declare const authClient: {
2540
2865
  } & {
2541
2866
  admin: {
2542
2867
  setRole: <FetchOptions extends {
2868
+ mode?: RequestMode | undefined;
2543
2869
  redirect?: RequestRedirect | undefined;
2544
2870
  method?: string | undefined;
2545
- mode?: RequestMode | undefined;
2546
2871
  headers?: (HeadersInit & (HeadersInit | {
2547
2872
  accept: "application/json" | "text/plain" | "application/octet-stream";
2548
2873
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -2610,9 +2935,9 @@ export declare const authClient: {
2610
2935
  } & {
2611
2936
  admin: {
2612
2937
  createUser: <FetchOptions extends {
2938
+ mode?: RequestMode | undefined;
2613
2939
  redirect?: RequestRedirect | undefined;
2614
2940
  method?: string | undefined;
2615
- mode?: RequestMode | undefined;
2616
2941
  headers?: (HeadersInit & (HeadersInit | {
2617
2942
  accept: "application/json" | "text/plain" | "application/octet-stream";
2618
2943
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -2686,9 +3011,9 @@ export declare const authClient: {
2686
3011
  } & {
2687
3012
  admin: {
2688
3013
  hasPermission: <FetchOptions extends {
3014
+ mode?: RequestMode | undefined;
2689
3015
  redirect?: RequestRedirect | undefined;
2690
3016
  method?: string | undefined;
2691
- mode?: RequestMode | undefined;
2692
3017
  headers?: (HeadersInit & (HeadersInit | {
2693
3018
  accept: "application/json" | "text/plain" | "application/octet-stream";
2694
3019
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
@@ -2778,331 +3103,6 @@ export declare const authClient: {
2778
3103
  message?: string;
2779
3104
  }, FetchOptions["throw"] extends true ? true : false>>;
2780
3105
  };
2781
- } & {
2782
- signUp: {
2783
- email: <FetchOptions extends {
2784
- redirect?: RequestRedirect | undefined;
2785
- method?: string | undefined;
2786
- mode?: RequestMode | undefined;
2787
- headers?: (HeadersInit & (HeadersInit | {
2788
- accept: "application/json" | "text/plain" | "application/octet-stream";
2789
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2790
- authorization: "Bearer" | "Basic";
2791
- })) | undefined;
2792
- cache?: RequestCache | undefined;
2793
- credentials?: RequestCredentials | undefined;
2794
- integrity?: string | undefined;
2795
- keepalive?: boolean | undefined;
2796
- priority?: RequestPriority | undefined;
2797
- referrer?: string | undefined;
2798
- referrerPolicy?: ReferrerPolicy | undefined;
2799
- signal?: (AbortSignal | null) | undefined;
2800
- window?: null | undefined;
2801
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext<T>) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void> | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void) | undefined;
2802
- onResponse?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<Response | void | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext> | Response | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext | void) | undefined;
2803
- onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
2804
- onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
2805
- onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
2806
- hookOptions?: {
2807
- cloneResponse?: boolean;
2808
- } | undefined;
2809
- timeout?: number | undefined;
2810
- customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
2811
- plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
2812
- baseURL?: string | undefined;
2813
- throw?: boolean | undefined;
2814
- auth?: ({
2815
- type: "Bearer";
2816
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2817
- } | {
2818
- type: "Basic";
2819
- username: string | (() => string | undefined) | undefined;
2820
- password: string | (() => string | undefined) | undefined;
2821
- } | {
2822
- type: "Custom";
2823
- prefix: string | (() => string | undefined) | undefined;
2824
- value: string | (() => string | undefined) | undefined;
2825
- }) | undefined;
2826
- body?: (Partial<{
2827
- name: string;
2828
- email: string;
2829
- password: string;
2830
- image?: string;
2831
- callbackURL?: string;
2832
- rememberMe?: boolean;
2833
- }> & Record<string, any>) | undefined;
2834
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2835
- params?: Record<string, any> | undefined;
2836
- duplex?: "full" | "half" | undefined;
2837
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2838
- retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
2839
- retryAttempt?: number | undefined;
2840
- output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2841
- errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
2842
- disableValidation?: boolean | undefined;
2843
- }>(data_0: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
2844
- email: string;
2845
- name: string;
2846
- password: string;
2847
- image?: string;
2848
- callbackURL?: string;
2849
- fetchOptions?: FetchOptions | undefined;
2850
- } & {} & {}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<NonNullable<{
2851
- token: null;
2852
- user: {
2853
- id: string;
2854
- email: string;
2855
- name: string;
2856
- image: string | null | undefined;
2857
- emailVerified: boolean;
2858
- createdAt: Date;
2859
- updatedAt: Date;
2860
- };
2861
- } | {
2862
- token: string;
2863
- user: {
2864
- id: string;
2865
- email: string;
2866
- name: string;
2867
- image: string | null | undefined;
2868
- emailVerified: boolean;
2869
- createdAt: Date;
2870
- updatedAt: Date;
2871
- };
2872
- }>, {
2873
- code?: string;
2874
- message?: string;
2875
- }, FetchOptions["throw"] extends true ? true : false>>;
2876
- };
2877
- } & {
2878
- updateUser: <FetchOptions extends {
2879
- redirect?: RequestRedirect | undefined;
2880
- method?: string | undefined;
2881
- mode?: RequestMode | undefined;
2882
- headers?: (HeadersInit & (HeadersInit | {
2883
- accept: "application/json" | "text/plain" | "application/octet-stream";
2884
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2885
- authorization: "Bearer" | "Basic";
2886
- })) | undefined;
2887
- cache?: RequestCache | undefined;
2888
- credentials?: RequestCredentials | undefined;
2889
- integrity?: string | undefined;
2890
- keepalive?: boolean | undefined;
2891
- priority?: RequestPriority | undefined;
2892
- referrer?: string | undefined;
2893
- referrerPolicy?: ReferrerPolicy | undefined;
2894
- signal?: (AbortSignal | null) | undefined;
2895
- window?: null | undefined;
2896
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext<T>) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void> | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void) | undefined;
2897
- onResponse?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<Response | void | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext> | Response | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext | void) | undefined;
2898
- onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
2899
- onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
2900
- onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
2901
- hookOptions?: {
2902
- cloneResponse?: boolean;
2903
- } | undefined;
2904
- timeout?: number | undefined;
2905
- customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
2906
- plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
2907
- baseURL?: string | undefined;
2908
- throw?: boolean | undefined;
2909
- auth?: ({
2910
- type: "Bearer";
2911
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2912
- } | {
2913
- type: "Basic";
2914
- username: string | (() => string | undefined) | undefined;
2915
- password: string | (() => string | undefined) | undefined;
2916
- } | {
2917
- type: "Custom";
2918
- prefix: string | (() => string | undefined) | undefined;
2919
- value: string | (() => string | undefined) | undefined;
2920
- }) | undefined;
2921
- body?: (Partial<Partial<{}> & {
2922
- name?: string;
2923
- image?: string;
2924
- }> & Record<string, any>) | undefined;
2925
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2926
- params?: Record<string, any> | undefined;
2927
- duplex?: "full" | "half" | undefined;
2928
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2929
- retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
2930
- retryAttempt?: number | undefined;
2931
- output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2932
- errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
2933
- disableValidation?: boolean | undefined;
2934
- }>(data_0?: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
2935
- image?: string | null;
2936
- name?: string;
2937
- fetchOptions?: FetchOptions | undefined;
2938
- } & Partial<{} & {}>> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
2939
- status: boolean;
2940
- }, {
2941
- code?: string;
2942
- message?: string;
2943
- }, FetchOptions["throw"] extends true ? true : false>>;
2944
- } & {
2945
- listSessions: <FetchOptions extends {
2946
- redirect?: RequestRedirect | undefined;
2947
- method?: string | undefined;
2948
- mode?: RequestMode | undefined;
2949
- headers?: (HeadersInit & (HeadersInit | {
2950
- accept: "application/json" | "text/plain" | "application/octet-stream";
2951
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2952
- authorization: "Bearer" | "Basic";
2953
- })) | undefined;
2954
- cache?: RequestCache | undefined;
2955
- credentials?: RequestCredentials | undefined;
2956
- integrity?: string | undefined;
2957
- keepalive?: boolean | undefined;
2958
- priority?: RequestPriority | undefined;
2959
- referrer?: string | undefined;
2960
- referrerPolicy?: ReferrerPolicy | undefined;
2961
- signal?: (AbortSignal | null) | undefined;
2962
- window?: null | undefined;
2963
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext<T>) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void> | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void) | undefined;
2964
- onResponse?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<Response | void | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext> | Response | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext | void) | undefined;
2965
- onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
2966
- onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
2967
- onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
2968
- hookOptions?: {
2969
- cloneResponse?: boolean;
2970
- } | undefined;
2971
- timeout?: number | undefined;
2972
- customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
2973
- plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
2974
- baseURL?: string | undefined;
2975
- throw?: boolean | undefined;
2976
- auth?: ({
2977
- type: "Bearer";
2978
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2979
- } | {
2980
- type: "Basic";
2981
- username: string | (() => string | undefined) | undefined;
2982
- password: string | (() => string | undefined) | undefined;
2983
- } | {
2984
- type: "Custom";
2985
- prefix: string | (() => string | undefined) | undefined;
2986
- value: string | (() => string | undefined) | undefined;
2987
- }) | undefined;
2988
- body?: undefined;
2989
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2990
- params?: Record<string, any> | undefined;
2991
- duplex?: "full" | "half" | undefined;
2992
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2993
- retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
2994
- retryAttempt?: number | undefined;
2995
- output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2996
- errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
2997
- disableValidation?: boolean | undefined;
2998
- }>(data_0?: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
2999
- query?: Record<string, any> | undefined;
3000
- fetchOptions?: FetchOptions | undefined;
3001
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
3002
- id: string;
3003
- createdAt: Date;
3004
- updatedAt: Date;
3005
- userId: string;
3006
- expiresAt: Date;
3007
- token: string;
3008
- ipAddress?: string | null | undefined | undefined;
3009
- userAgent?: string | null | undefined | undefined;
3010
- }>[], {
3011
- code?: string;
3012
- message?: string;
3013
- }, FetchOptions["throw"] extends true ? true : false>>;
3014
- } & {
3015
- getSession: <FetchOptions extends {
3016
- redirect?: RequestRedirect | undefined;
3017
- method?: string | undefined;
3018
- mode?: RequestMode | undefined;
3019
- headers?: (HeadersInit & (HeadersInit | {
3020
- accept: "application/json" | "text/plain" | "application/octet-stream";
3021
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
3022
- authorization: "Bearer" | "Basic";
3023
- })) | undefined;
3024
- cache?: RequestCache | undefined;
3025
- credentials?: RequestCredentials | undefined;
3026
- integrity?: string | undefined;
3027
- keepalive?: boolean | undefined;
3028
- priority?: RequestPriority | undefined;
3029
- referrer?: string | undefined;
3030
- referrerPolicy?: ReferrerPolicy | undefined;
3031
- signal?: (AbortSignal | null) | undefined;
3032
- window?: null | undefined;
3033
- onRequest?: (<T extends Record<string, any>>(context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext<T>) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void> | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RequestContext | void) | undefined;
3034
- onResponse?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<Response | void | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext> | Response | import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext | void) | undefined;
3035
- onSuccess?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).SuccessContext<any>) => Promise<void> | void) | undefined;
3036
- onError?: ((context: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ErrorContext) => Promise<void> | void) | undefined;
3037
- onRetry?: ((response: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).ResponseContext) => Promise<void> | void) | undefined;
3038
- hookOptions?: {
3039
- cloneResponse?: boolean;
3040
- } | undefined;
3041
- timeout?: number | undefined;
3042
- customFetchImpl?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).FetchEsque | undefined;
3043
- plugins?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchPlugin[] | undefined;
3044
- baseURL?: string | undefined;
3045
- throw?: boolean | undefined;
3046
- auth?: ({
3047
- type: "Bearer";
3048
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
3049
- } | {
3050
- type: "Basic";
3051
- username: string | (() => string | undefined) | undefined;
3052
- password: string | (() => string | undefined) | undefined;
3053
- } | {
3054
- type: "Custom";
3055
- prefix: string | (() => string | undefined) | undefined;
3056
- value: string | (() => string | undefined) | undefined;
3057
- }) | undefined;
3058
- body?: undefined;
3059
- query?: (Partial<{
3060
- disableCookieCache?: unknown;
3061
- disableRefresh?: unknown;
3062
- }> & Record<string, any>) | undefined;
3063
- params?: Record<string, any> | undefined;
3064
- duplex?: "full" | "half" | undefined;
3065
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
3066
- retry?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).RetryOptions | undefined;
3067
- retryAttempt?: number | undefined;
3068
- output?: (import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | typeof Blob | typeof File) | undefined;
3069
- errorSchema?: import("better-auth/svelte", { with: { "resolution-mode": "require" } }).StandardSchemaV1 | undefined;
3070
- disableValidation?: boolean | undefined;
3071
- }>(data_0?: import("better-auth", { with: { "resolution-mode": "require" } }).Prettify<{
3072
- query?: {
3073
- disableCookieCache?: unknown;
3074
- disableRefresh?: unknown;
3075
- } | undefined;
3076
- fetchOptions?: FetchOptions | undefined;
3077
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/svelte", { with: { "resolution-mode": "require" } }).BetterFetchResponse<{
3078
- user: {
3079
- id: string;
3080
- createdAt: Date;
3081
- updatedAt: Date;
3082
- email: string;
3083
- emailVerified: boolean;
3084
- name: string;
3085
- image?: string | null | undefined;
3086
- banned: boolean | null | undefined;
3087
- role?: string | null | undefined;
3088
- banReason?: string | null | undefined;
3089
- banExpires?: Date | null | undefined;
3090
- };
3091
- session: {
3092
- id: string;
3093
- createdAt: Date;
3094
- updatedAt: Date;
3095
- userId: string;
3096
- expiresAt: Date;
3097
- token: string;
3098
- ipAddress?: string | null | undefined;
3099
- userAgent?: string | null | undefined;
3100
- impersonatedBy?: string | null | undefined;
3101
- };
3102
- } | null, {
3103
- code?: string;
3104
- message?: string;
3105
- }, FetchOptions["throw"] extends true ? true : false>>;
3106
3106
  } & {
3107
3107
  admin: {
3108
3108
  checkRolePermission: <R extends "user" | "admin">(data: ({