@shophost/react 0.1.3

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 (233) hide show
  1. package/admin-client.cjs +2 -0
  2. package/admin-client.js +21796 -0
  3. package/components/admin/forms/manufacturer-form.d.ts +7 -0
  4. package/components/admin/forms/organization-configuration-form.d.ts +10 -0
  5. package/components/admin/forms/organization-form.d.ts +8 -0
  6. package/components/admin/forms/organization-schedule-form.d.ts +10 -0
  7. package/components/admin/forms/product-category.form.d.ts +7 -0
  8. package/components/admin/forms/product-form/basic-info-section.d.ts +8 -0
  9. package/components/admin/forms/product-form/index.d.ts +7 -0
  10. package/components/admin/forms/product-form/metadata-section.d.ts +8 -0
  11. package/components/admin/forms/product-form/modifier-group-dialog.d.ts +9 -0
  12. package/components/admin/forms/product-form/modifiers-list.d.ts +7 -0
  13. package/components/admin/forms/product-form/modifiers-section.d.ts +8 -0
  14. package/components/admin/forms/product-form/price-section.d.ts +9 -0
  15. package/components/admin/forms/shipping-method-form.d.ts +7 -0
  16. package/components/admin/forms/sign-in-form.d.ts +2 -0
  17. package/components/admin/forms/sign-up-form.d.ts +2 -0
  18. package/components/admin/partials/manufacturers-list/columns.d.ts +3 -0
  19. package/components/admin/partials/manufacturers-list/index.d.ts +2 -0
  20. package/components/admin/partials/orders-list/actions-cell.d.ts +10 -0
  21. package/components/admin/partials/orders-list/columns.d.ts +3 -0
  22. package/components/admin/partials/orders-list/index.d.ts +2 -0
  23. package/components/admin/partials/orders-list/order-details-modal.d.ts +9 -0
  24. package/components/admin/partials/organization-list/index.d.ts +2 -0
  25. package/components/admin/partials/product-categories-list/columns.d.ts +14 -0
  26. package/components/admin/partials/product-categories-list/index.d.ts +2 -0
  27. package/components/admin/partials/products-list/columns.d.ts +14 -0
  28. package/components/admin/partials/products-list/index.d.ts +2 -0
  29. package/components/admin/partials/reservations-list/actions-cell.d.ts +10 -0
  30. package/components/admin/partials/reservations-list/columns.d.ts +3 -0
  31. package/components/admin/partials/reservations-list/index.d.ts +2 -0
  32. package/components/admin/partials/reservations-list/reservation-details-modal.d.ts +8 -0
  33. package/components/admin/partials/shipping-methods-list/columns.d.ts +3 -0
  34. package/components/admin/partials/shipping-methods-list/index.d.ts +2 -0
  35. package/components/ui/badge.d.ts +31 -0
  36. package/components/ui/button.d.ts +35 -0
  37. package/components/ui/calendar.d.ts +21 -0
  38. package/components/ui/card.d.ts +6 -0
  39. package/components/ui/checkbox.d.ts +4 -0
  40. package/components/ui/command-bar.d.ts +24 -0
  41. package/components/ui/command.d.ts +80 -0
  42. package/components/ui/data-table/DataTable.d.ts +13 -0
  43. package/components/ui/data-table/DataTableBulkEditor.d.ts +7 -0
  44. package/components/ui/data-table/DataTableColumnHeader.d.ts +7 -0
  45. package/components/ui/data-table/DataTableFilter.d.ts +18 -0
  46. package/components/ui/data-table/DataTablePagination.d.ts +8 -0
  47. package/components/ui/data-table/DataTableViewOptions.d.ts +6 -0
  48. package/components/ui/data-table/tanstack-table.d.ts +7 -0
  49. package/components/ui/date-picker.d.ts +72 -0
  50. package/components/ui/dialog.d.ts +20 -0
  51. package/components/ui/divider.d.ts +5 -0
  52. package/components/ui/drawer.d.ts +18 -0
  53. package/components/ui/dropdown.d.ts +30 -0
  54. package/components/ui/form-generator.d.ts +29 -0
  55. package/components/ui/header.d.ts +2 -0
  56. package/components/ui/icons/ArrowAnimated.d.ts +1 -0
  57. package/components/ui/icons/spinner-icon.d.ts +5 -0
  58. package/components/ui/input/country-input.d.ts +7 -0
  59. package/components/ui/input/email-input.d.ts +7 -0
  60. package/components/ui/input/image-upload-input.d.ts +19 -0
  61. package/components/ui/input/phone-number-input.d.ts +8 -0
  62. package/components/ui/input/select-input.d.ts +14 -0
  63. package/components/ui/input/text-input.d.ts +87 -0
  64. package/components/ui/input-array-group.d.ts +10 -0
  65. package/components/ui/input-group.d.ts +19 -0
  66. package/components/ui/input-object-group.d.ts +8 -0
  67. package/components/ui/input.d.ts +13 -0
  68. package/components/ui/label.d.ts +7 -0
  69. package/components/ui/line-chart.d.ts +35 -0
  70. package/components/ui/logo.d.ts +5 -0
  71. package/components/ui/multiple-select.d.ts +73 -0
  72. package/components/ui/navigation/DropdownUserProfile.d.ts +6 -0
  73. package/components/ui/navigation/MobileSidebar.d.ts +1 -0
  74. package/components/ui/navigation/Sidebar.d.ts +1 -0
  75. package/components/ui/navigation/SidebarWorkspacesDropdown.d.ts +2 -0
  76. package/components/ui/navigation/UserProfile.d.ts +2 -0
  77. package/components/ui/overview/DashboardCategoryBarCard.d.ts +13 -0
  78. package/components/ui/overview/DashboardChartCard.d.ts +12 -0
  79. package/components/ui/overview/DashboardFilterbar.d.ts +16 -0
  80. package/components/ui/overview/DashboardProgressBarCard.d.ts +12 -0
  81. package/components/ui/overview/dashboard-types.d.ts +12 -0
  82. package/components/ui/popover.d.ts +13 -0
  83. package/components/ui/progress-bar.d.ts +89 -0
  84. package/components/ui/progress-circle.d.ts +91 -0
  85. package/components/ui/radio-card.d.ts +6 -0
  86. package/components/ui/search-bar.d.ts +29 -0
  87. package/components/ui/select.d.ts +17 -0
  88. package/components/ui/settings/ModalAddUser.d.ts +4 -0
  89. package/components/ui/switch.d.ts +50 -0
  90. package/components/ui/tab-navigation.d.ts +7 -0
  91. package/components/ui/table.d.ts +11 -0
  92. package/components/ui/tooltip.d.ts +11 -0
  93. package/config/countries.d.ts +8 -0
  94. package/data/data.d.ts +31 -0
  95. package/data/overview-data.d.ts +2 -0
  96. package/data/schema.d.ts +19 -0
  97. package/index.cjs +1 -0
  98. package/index.d.ts +7 -0
  99. package/index.mjs +14 -0
  100. package/index.react-server.cjs +1 -0
  101. package/index.react-server.d.ts +8 -0
  102. package/index.react-server.mjs +37 -0
  103. package/lib/auth-redirect.d.ts +4 -0
  104. package/lib/auth.d.ts +23 -0
  105. package/lib/chartUtils.d.ts +63 -0
  106. package/lib/query-client.d.ts +2 -0
  107. package/lib/useOnWindowResize.d.ts +3 -0
  108. package/lib/utils.d.ts +11 -0
  109. package/next/server.cjs +1 -0
  110. package/next/server.d.ts +43 -0
  111. package/next/server.mjs +21 -0
  112. package/next/views.cjs +2 -0
  113. package/next/views.d.ts +7 -0
  114. package/next/views.mjs +5 -0
  115. package/package.json +119 -0
  116. package/providers/admin-provider.d.ts +13 -0
  117. package/providers/flyout-provider.d.ts +10 -0
  118. package/providers/organization-provider.d.ts +22 -0
  119. package/react.css +1 -0
  120. package/router/AdminRouter.d.ts +5 -0
  121. package/router/resolve.d.ts +67 -0
  122. package/router/routes.d.ts +25 -0
  123. package/storefront/components/cart/cart-items.d.ts +20 -0
  124. package/storefront/components/cart-summary/index.d.ts +13 -0
  125. package/storefront/components/cart-summary/schimmer.d.ts +3 -0
  126. package/storefront/components/header/index.d.ts +11 -0
  127. package/storefront/components/header/shimmer.d.ts +2 -0
  128. package/storefront/components/header/user-profile.d.ts +1 -0
  129. package/storefront/components/index.d.ts +1 -0
  130. package/storefront/components/modifiers/index.d.ts +5 -0
  131. package/storefront/components/modifiers/modifier-dialog-container.d.ts +21 -0
  132. package/storefront/components/modifiers/modifiers-group.d.ts +37 -0
  133. package/storefront/components/modifiers/modifiers-modal.d.ts +12 -0
  134. package/storefront/components/modifiers/modifiers-option.d.ts +37 -0
  135. package/storefront/components/modifiers/quantity-control.d.ts +29 -0
  136. package/storefront/components/pages/account-pages/index.d.ts +2 -0
  137. package/storefront/components/pages/account-pages/layouts.d.ts +10 -0
  138. package/storefront/components/pages/account-pages/order-details-page/index.d.ts +5 -0
  139. package/storefront/components/pages/account-pages/order-details-page/shimmer.d.ts +2 -0
  140. package/storefront/components/pages/account-pages/order-details-page/tracking-icons.d.ts +13 -0
  141. package/storefront/components/pages/account-pages/order-details-page/tracking-step.d.ts +10 -0
  142. package/storefront/components/pages/account-pages/orders-list-page/index.d.ts +2 -0
  143. package/storefront/components/pages/account-pages/sign-in-page/index.d.ts +1 -0
  144. package/storefront/components/pages/account-pages/sign-in-page/sign-in-form.d.ts +2 -0
  145. package/storefront/components/pages/account-pages/sign-up-page/index.d.ts +1 -0
  146. package/storefront/components/pages/account-pages/sign-up-page/sign-up-form.d.ts +2 -0
  147. package/storefront/components/pages/checkout-pages/customer-details-page/customer-details-form.d.ts +9 -0
  148. package/storefront/components/pages/checkout-pages/customer-details-page/index.d.ts +6 -0
  149. package/storefront/components/pages/checkout-pages/customer-details-page/shimmer.d.ts +2 -0
  150. package/storefront/components/pages/checkout-pages/index.d.ts +2 -0
  151. package/storefront/components/pages/checkout-pages/reservation-page/index.d.ts +2 -0
  152. package/storefront/components/pages/checkout-pages/reservation-page/reservation-form.d.ts +10 -0
  153. package/storefront/components/pages/checkout-pages/shipping-and-payment-page/index.d.ts +6 -0
  154. package/storefront/components/pages/checkout-pages/shipping-and-payment-page/shimmer.d.ts +2 -0
  155. package/storefront/components/pages/checkout-pages/shipping-and-payment-page/shipping-and-payment-form.d.ts +9 -0
  156. package/storefront/components/ui/badge.d.ts +31 -0
  157. package/storefront/components/ui/button.d.ts +35 -0
  158. package/storefront/components/ui/command-bar.d.ts +24 -0
  159. package/storefront/components/ui/command.d.ts +80 -0
  160. package/storefront/components/ui/datefield-rac.d.ts +12 -0
  161. package/storefront/components/ui/dialog.d.ts +20 -0
  162. package/storefront/components/ui/divider.d.ts +5 -0
  163. package/storefront/components/ui/index.d.ts +12 -0
  164. package/storefront/components/ui/input/country-input.d.ts +8 -0
  165. package/storefront/components/ui/input/email-input.d.ts +7 -0
  166. package/storefront/components/ui/input/image-upload-input.d.ts +19 -0
  167. package/storefront/components/ui/input/index.d.ts +22 -0
  168. package/storefront/components/ui/input/location-input.d.ts +9 -0
  169. package/storefront/components/ui/input/phone-number-input.d.ts +8 -0
  170. package/storefront/components/ui/input/select-input.d.ts +14 -0
  171. package/storefront/components/ui/input/switch.d.ts +50 -0
  172. package/storefront/components/ui/input/text-input.d.ts +87 -0
  173. package/storefront/components/ui/input/time-input.d.ts +4 -0
  174. package/storefront/components/ui/input/week-time-input.d.ts +8 -0
  175. package/storefront/components/ui/input-group.d.ts +20 -0
  176. package/storefront/components/ui/label.d.ts +7 -0
  177. package/storefront/components/ui/popover.d.ts +13 -0
  178. package/storefront/components/ui/radio-card.d.ts +6 -0
  179. package/storefront/components/ui/slideover.d.ts +8 -0
  180. package/storefront/components/ui/text-input.d.ts +3 -0
  181. package/storefront/config/countries.d.ts +8 -0
  182. package/storefront/constants/cart.constants.d.ts +3 -0
  183. package/storefront/exports.d.ts +21 -0
  184. package/storefront/hooks/useLocalization.d.ts +12 -0
  185. package/storefront/hooks/useModifierSelection.d.ts +21 -0
  186. package/storefront/hooks/useProductDetails.d.ts +11 -0
  187. package/storefront/index.d.ts +1 -0
  188. package/storefront/lib/better-auth.d.ts +2642 -0
  189. package/storefront/lib/react-query.lib.d.ts +2 -0
  190. package/storefront/lib/utils.d.ts +11 -0
  191. package/storefront/mock/products.d.ts +48 -0
  192. package/storefront/providers/api-provider.d.ts +11 -0
  193. package/storefront/providers/auth-provider.d.ts +9 -0
  194. package/storefront/providers/cart-provider.d.ts +39 -0
  195. package/storefront/providers/modifiers-provider.d.ts +27 -0
  196. package/storefront/providers/organization-provider.d.ts +15 -0
  197. package/storefront/providers/shophost-provider.d.ts +29 -0
  198. package/storefront/providers/translation-provider.d.ts +16 -0
  199. package/storefront/reducers/cart.reducer.d.ts +13 -0
  200. package/storefront/schemas/cart.schema.d.ts +13 -0
  201. package/storefront/translations/en.d.ts +150 -0
  202. package/storefront/translations/index.d.ts +4 -0
  203. package/storefront/translations/pl.d.ts +150 -0
  204. package/storefront/types/cart.types.d.ts +109 -0
  205. package/storefront/utils/cart-item.util.d.ts +3 -0
  206. package/storefront/utils/cart.util.d.ts +53 -0
  207. package/storefront.cjs +2 -0
  208. package/storefront.mjs +81 -0
  209. package/utils/object.util.d.ts +11 -0
  210. package/views/AdminShell.d.ts +4 -0
  211. package/views/DashboardView.d.ts +3 -0
  212. package/views/ErrorView.d.ts +3 -0
  213. package/views/OrdersView.d.ts +1 -0
  214. package/views/OrganizationsView.d.ts +1 -0
  215. package/views/ReservationsView.d.ts +1 -0
  216. package/views/auth/SignInView.d.ts +1 -0
  217. package/views/auth/SignUpView.d.ts +1 -0
  218. package/views/auth/auth-layout.d.ts +4 -0
  219. package/views/manufacturers/ManufacturerCreateView.d.ts +1 -0
  220. package/views/manufacturers/ManufacturerEditView.d.ts +1 -0
  221. package/views/manufacturers/ManufacturersListView.d.ts +1 -0
  222. package/views/product-categories/ProductCategoriesListView.d.ts +1 -0
  223. package/views/product-categories/ProductCategoryCreateView.d.ts +1 -0
  224. package/views/product-categories/ProductCategoryEditView.d.ts +1 -0
  225. package/views/products/ProductCreateView.d.ts +1 -0
  226. package/views/products/ProductEditView.d.ts +1 -0
  227. package/views/products/ProductsListView.d.ts +1 -0
  228. package/views/settings/OpeningTimesView.d.ts +1 -0
  229. package/views/settings/SettingsLayout.d.ts +4 -0
  230. package/views/settings/SettingsView.d.ts +1 -0
  231. package/views/settings/shipping-methods/ShippingMethodCreateView.d.ts +1 -0
  232. package/views/settings/shipping-methods/ShippingMethodEditView.d.ts +1 -0
  233. package/views/settings/shipping-methods/ShippingMethodsListView.d.ts +1 -0
@@ -0,0 +1,2642 @@
1
+ export declare const useSession: () => {
2
+ data: {
3
+ user: {
4
+ id: string;
5
+ name: string;
6
+ email: string;
7
+ emailVerified: boolean;
8
+ createdAt: Date;
9
+ updatedAt: Date;
10
+ image?: string | null | undefined | undefined;
11
+ firstname: string;
12
+ lastname: string;
13
+ };
14
+ session: {
15
+ id: string;
16
+ createdAt: Date;
17
+ updatedAt: Date;
18
+ userId: string;
19
+ expiresAt: Date;
20
+ token: string;
21
+ ipAddress?: string | null | undefined | undefined;
22
+ userAgent?: string | null | undefined | undefined;
23
+ activeOrganizationId?: string | null | undefined;
24
+ };
25
+ } | null;
26
+ isPending: boolean;
27
+ error: import('better-auth/react').BetterFetchError | null;
28
+ refetch: () => void;
29
+ }, signIn: {
30
+ social: <FetchOptions extends {
31
+ headers?: (HeadersInit & (HeadersInit | {
32
+ accept: "application/json" | "text/plain" | "application/octet-stream";
33
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
34
+ authorization: "Bearer" | "Basic";
35
+ })) | undefined;
36
+ method?: string | undefined;
37
+ cache?: RequestCache | undefined;
38
+ credentials?: RequestCredentials | undefined;
39
+ integrity?: string | undefined;
40
+ keepalive?: boolean | undefined;
41
+ mode?: RequestMode | undefined;
42
+ priority?: RequestPriority | undefined;
43
+ redirect?: RequestRedirect | undefined;
44
+ referrer?: string | undefined;
45
+ referrerPolicy?: ReferrerPolicy | undefined;
46
+ signal?: (AbortSignal | null) | undefined;
47
+ window?: null | undefined;
48
+ next?: NextFetchRequestConfig | undefined;
49
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
50
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
51
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
52
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
53
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
54
+ hookOptions?: {
55
+ cloneResponse?: boolean;
56
+ } | undefined;
57
+ timeout?: number | undefined;
58
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
59
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
60
+ baseURL?: string | undefined;
61
+ throw?: boolean | undefined;
62
+ auth?: ({
63
+ type: "Bearer";
64
+ token: string | (() => string | undefined) | undefined;
65
+ } | {
66
+ type: "Basic";
67
+ username: string | (() => string | undefined) | undefined;
68
+ password: string | (() => string | undefined) | undefined;
69
+ } | {
70
+ type: "Custom";
71
+ prefix: string | (() => string | undefined) | undefined;
72
+ value: string | (() => string | undefined) | undefined;
73
+ }) | undefined;
74
+ body?: (Partial<{
75
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk";
76
+ scopes?: string[] | undefined;
77
+ idToken?: {
78
+ token: string;
79
+ accessToken?: string | undefined;
80
+ refreshToken?: string | undefined;
81
+ expiresAt?: number | undefined;
82
+ nonce?: string | undefined;
83
+ } | undefined;
84
+ callbackURL?: string | undefined;
85
+ requestSignUp?: boolean | undefined;
86
+ errorCallbackURL?: string | undefined;
87
+ newUserCallbackURL?: string | undefined;
88
+ disableRedirect?: boolean | undefined;
89
+ }> & Record<string, any>) | undefined;
90
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
91
+ params?: Record<string, any> | undefined;
92
+ duplex?: "full" | "half" | undefined;
93
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
94
+ retry?: import('better-auth/react').RetryOptions | undefined;
95
+ retryAttempt?: number | undefined;
96
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
97
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
98
+ disableValidation?: boolean | undefined;
99
+ }>(data_0: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
100
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk";
101
+ scopes?: string[] | undefined;
102
+ idToken?: {
103
+ token: string;
104
+ accessToken?: string | undefined;
105
+ refreshToken?: string | undefined;
106
+ expiresAt?: number | undefined;
107
+ nonce?: string | undefined;
108
+ } | undefined;
109
+ callbackURL?: string | undefined;
110
+ requestSignUp?: boolean | undefined;
111
+ errorCallbackURL?: string | undefined;
112
+ newUserCallbackURL?: string | undefined;
113
+ disableRedirect?: boolean | undefined;
114
+ } & {
115
+ fetchOptions?: {
116
+ headers?: (HeadersInit & (HeadersInit | {
117
+ accept: "application/json" | "text/plain" | "application/octet-stream";
118
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
119
+ authorization: "Bearer" | "Basic";
120
+ })) | undefined;
121
+ method?: string | undefined;
122
+ cache?: RequestCache | undefined;
123
+ credentials?: RequestCredentials | undefined;
124
+ integrity?: string | undefined;
125
+ keepalive?: boolean | undefined;
126
+ mode?: RequestMode | undefined;
127
+ priority?: RequestPriority | undefined;
128
+ redirect?: RequestRedirect | undefined;
129
+ referrer?: string | undefined;
130
+ referrerPolicy?: ReferrerPolicy | undefined;
131
+ signal?: (AbortSignal | null) | undefined;
132
+ window?: null | undefined;
133
+ next?: NextFetchRequestConfig | undefined;
134
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
135
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
136
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
137
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
138
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
139
+ hookOptions?: {
140
+ cloneResponse?: boolean;
141
+ } | undefined;
142
+ timeout?: number | undefined;
143
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
144
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
145
+ baseURL?: string | undefined;
146
+ throw?: boolean | undefined;
147
+ auth?: ({
148
+ type: "Bearer";
149
+ token: string | (() => string | undefined) | undefined;
150
+ } | {
151
+ type: "Basic";
152
+ username: string | (() => string | undefined) | undefined;
153
+ password: string | (() => string | undefined) | undefined;
154
+ } | {
155
+ type: "Custom";
156
+ prefix: string | (() => string | undefined) | undefined;
157
+ value: string | (() => string | undefined) | undefined;
158
+ }) | undefined;
159
+ body?: undefined;
160
+ query?: Record<string, any> | undefined;
161
+ params?: Record<string, any> | undefined;
162
+ duplex?: "full" | "half" | undefined;
163
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
164
+ retry?: import('better-auth/react').RetryOptions | undefined;
165
+ retryAttempt?: number | undefined;
166
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
167
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
168
+ disableValidation?: boolean | undefined;
169
+ } | undefined;
170
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<NonNullable<{
171
+ redirect: boolean;
172
+ token: string;
173
+ url: undefined;
174
+ user: {
175
+ id: string;
176
+ email: string;
177
+ name: string;
178
+ image: string | null | undefined;
179
+ emailVerified: boolean;
180
+ createdAt: Date;
181
+ updatedAt: Date;
182
+ };
183
+ } | {
184
+ url: string;
185
+ redirect: boolean;
186
+ }>, {
187
+ code?: string;
188
+ message?: string;
189
+ }, FetchOptions["throw"] extends true ? true : false>>;
190
+ } & {
191
+ email: <FetchOptions extends {
192
+ headers?: (HeadersInit & (HeadersInit | {
193
+ accept: "application/json" | "text/plain" | "application/octet-stream";
194
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
195
+ authorization: "Bearer" | "Basic";
196
+ })) | undefined;
197
+ method?: string | undefined;
198
+ cache?: RequestCache | undefined;
199
+ credentials?: RequestCredentials | undefined;
200
+ integrity?: string | undefined;
201
+ keepalive?: boolean | undefined;
202
+ mode?: RequestMode | undefined;
203
+ priority?: RequestPriority | undefined;
204
+ redirect?: RequestRedirect | undefined;
205
+ referrer?: string | undefined;
206
+ referrerPolicy?: ReferrerPolicy | undefined;
207
+ signal?: (AbortSignal | null) | undefined;
208
+ window?: null | undefined;
209
+ next?: NextFetchRequestConfig | undefined;
210
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
211
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
212
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
213
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
214
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
215
+ hookOptions?: {
216
+ cloneResponse?: boolean;
217
+ } | undefined;
218
+ timeout?: number | undefined;
219
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
220
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
221
+ baseURL?: string | undefined;
222
+ throw?: boolean | undefined;
223
+ auth?: ({
224
+ type: "Bearer";
225
+ token: string | (() => string | undefined) | undefined;
226
+ } | {
227
+ type: "Basic";
228
+ username: string | (() => string | undefined) | undefined;
229
+ password: string | (() => string | undefined) | undefined;
230
+ } | {
231
+ type: "Custom";
232
+ prefix: string | (() => string | undefined) | undefined;
233
+ value: string | (() => string | undefined) | undefined;
234
+ }) | undefined;
235
+ body?: (Partial<{
236
+ password: string;
237
+ email: string;
238
+ callbackURL?: string | undefined;
239
+ rememberMe?: boolean | undefined;
240
+ }> & Record<string, any>) | undefined;
241
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
242
+ params?: Record<string, any> | undefined;
243
+ duplex?: "full" | "half" | undefined;
244
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
245
+ retry?: import('better-auth/react').RetryOptions | undefined;
246
+ retryAttempt?: number | undefined;
247
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
248
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
249
+ disableValidation?: boolean | undefined;
250
+ }>(data_0: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
251
+ password: string;
252
+ email: string;
253
+ callbackURL?: string | undefined;
254
+ rememberMe?: boolean | undefined;
255
+ } & {
256
+ fetchOptions?: {
257
+ headers?: (HeadersInit & (HeadersInit | {
258
+ accept: "application/json" | "text/plain" | "application/octet-stream";
259
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
260
+ authorization: "Bearer" | "Basic";
261
+ })) | undefined;
262
+ method?: string | undefined;
263
+ cache?: RequestCache | undefined;
264
+ credentials?: RequestCredentials | undefined;
265
+ integrity?: string | undefined;
266
+ keepalive?: boolean | undefined;
267
+ mode?: RequestMode | undefined;
268
+ priority?: RequestPriority | undefined;
269
+ redirect?: RequestRedirect | undefined;
270
+ referrer?: string | undefined;
271
+ referrerPolicy?: ReferrerPolicy | undefined;
272
+ signal?: (AbortSignal | null) | undefined;
273
+ window?: null | undefined;
274
+ next?: NextFetchRequestConfig | undefined;
275
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
276
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
277
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
278
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
279
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
280
+ hookOptions?: {
281
+ cloneResponse?: boolean;
282
+ } | undefined;
283
+ timeout?: number | undefined;
284
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
285
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
286
+ baseURL?: string | undefined;
287
+ throw?: boolean | undefined;
288
+ auth?: ({
289
+ type: "Bearer";
290
+ token: string | (() => string | undefined) | undefined;
291
+ } | {
292
+ type: "Basic";
293
+ username: string | (() => string | undefined) | undefined;
294
+ password: string | (() => string | undefined) | undefined;
295
+ } | {
296
+ type: "Custom";
297
+ prefix: string | (() => string | undefined) | undefined;
298
+ value: string | (() => string | undefined) | undefined;
299
+ }) | undefined;
300
+ body?: undefined;
301
+ query?: Record<string, any> | undefined;
302
+ params?: Record<string, any> | undefined;
303
+ duplex?: "full" | "half" | undefined;
304
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
305
+ retry?: import('better-auth/react').RetryOptions | undefined;
306
+ retryAttempt?: number | undefined;
307
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
308
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
309
+ disableValidation?: boolean | undefined;
310
+ } | undefined;
311
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
312
+ redirect: boolean;
313
+ token: string;
314
+ url: string | undefined;
315
+ user: {
316
+ id: string;
317
+ email: string;
318
+ name: string;
319
+ image: string | null | undefined;
320
+ emailVerified: boolean;
321
+ createdAt: Date;
322
+ updatedAt: Date;
323
+ };
324
+ }, {
325
+ code?: string;
326
+ message?: string;
327
+ }, FetchOptions["throw"] extends true ? true : false>>;
328
+ }, signUp: {
329
+ email: <FetchOptions extends {
330
+ headers?: (HeadersInit & (HeadersInit | {
331
+ accept: "application/json" | "text/plain" | "application/octet-stream";
332
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
333
+ authorization: "Bearer" | "Basic";
334
+ })) | undefined;
335
+ method?: string | undefined;
336
+ cache?: RequestCache | undefined;
337
+ credentials?: RequestCredentials | undefined;
338
+ integrity?: string | undefined;
339
+ keepalive?: boolean | undefined;
340
+ mode?: RequestMode | undefined;
341
+ priority?: RequestPriority | undefined;
342
+ redirect?: RequestRedirect | undefined;
343
+ referrer?: string | undefined;
344
+ referrerPolicy?: ReferrerPolicy | undefined;
345
+ signal?: (AbortSignal | null) | undefined;
346
+ window?: null | undefined;
347
+ next?: NextFetchRequestConfig | undefined;
348
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
349
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
350
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
351
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
352
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
353
+ hookOptions?: {
354
+ cloneResponse?: boolean;
355
+ } | undefined;
356
+ timeout?: number | undefined;
357
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
358
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
359
+ baseURL?: string | undefined;
360
+ throw?: boolean | undefined;
361
+ auth?: ({
362
+ type: "Bearer";
363
+ token: string | (() => string | undefined) | undefined;
364
+ } | {
365
+ type: "Basic";
366
+ username: string | (() => string | undefined) | undefined;
367
+ password: string | (() => string | undefined) | undefined;
368
+ } | {
369
+ type: "Custom";
370
+ prefix: string | (() => string | undefined) | undefined;
371
+ value: string | (() => string | undefined) | undefined;
372
+ }) | undefined;
373
+ body?: (Partial<{
374
+ name: string;
375
+ email: string;
376
+ password: string;
377
+ }> & Record<string, any>) | undefined;
378
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
379
+ params?: Record<string, any> | undefined;
380
+ duplex?: "full" | "half" | undefined;
381
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
382
+ retry?: import('better-auth/react').RetryOptions | undefined;
383
+ retryAttempt?: number | undefined;
384
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
385
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
386
+ disableValidation?: boolean | undefined;
387
+ }>(data_0: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
388
+ email: string;
389
+ name: string;
390
+ password: string;
391
+ image?: string;
392
+ callbackURL?: string;
393
+ fetchOptions?: FetchOptions | undefined;
394
+ } & {
395
+ firstname: string;
396
+ lastname: string;
397
+ } & {}>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<NonNullable<{
398
+ token: null;
399
+ user: {
400
+ id: string;
401
+ email: string;
402
+ name: string;
403
+ image: string | null | undefined;
404
+ emailVerified: boolean;
405
+ createdAt: Date;
406
+ updatedAt: Date;
407
+ };
408
+ } | {
409
+ token: string;
410
+ user: {
411
+ id: string;
412
+ email: string;
413
+ name: string;
414
+ image: string | null | undefined;
415
+ emailVerified: boolean;
416
+ createdAt: Date;
417
+ updatedAt: Date;
418
+ };
419
+ }>, {
420
+ code?: string;
421
+ message?: string;
422
+ }, FetchOptions["throw"] extends true ? true : false>>;
423
+ }, signOut: <FetchOptions extends {
424
+ headers?: (HeadersInit & (HeadersInit | {
425
+ accept: "application/json" | "text/plain" | "application/octet-stream";
426
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
427
+ authorization: "Bearer" | "Basic";
428
+ })) | undefined;
429
+ method?: string | undefined;
430
+ cache?: RequestCache | undefined;
431
+ credentials?: RequestCredentials | undefined;
432
+ integrity?: string | undefined;
433
+ keepalive?: boolean | undefined;
434
+ mode?: RequestMode | undefined;
435
+ priority?: RequestPriority | undefined;
436
+ redirect?: RequestRedirect | undefined;
437
+ referrer?: string | undefined;
438
+ referrerPolicy?: ReferrerPolicy | undefined;
439
+ signal?: (AbortSignal | null) | undefined;
440
+ window?: null | undefined;
441
+ next?: NextFetchRequestConfig | undefined;
442
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
443
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
444
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
445
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
446
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
447
+ hookOptions?: {
448
+ cloneResponse?: boolean;
449
+ } | undefined;
450
+ timeout?: number | undefined;
451
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
452
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
453
+ baseURL?: string | undefined;
454
+ throw?: boolean | undefined;
455
+ auth?: ({
456
+ type: "Bearer";
457
+ token: string | (() => string | undefined) | undefined;
458
+ } | {
459
+ type: "Basic";
460
+ username: string | (() => string | undefined) | undefined;
461
+ password: string | (() => string | undefined) | undefined;
462
+ } | {
463
+ type: "Custom";
464
+ prefix: string | (() => string | undefined) | undefined;
465
+ value: string | (() => string | undefined) | undefined;
466
+ }) | undefined;
467
+ body?: undefined;
468
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
469
+ params?: Record<string, any> | undefined;
470
+ duplex?: "full" | "half" | undefined;
471
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
472
+ retry?: import('better-auth/react').RetryOptions | undefined;
473
+ retryAttempt?: number | undefined;
474
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
475
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
476
+ disableValidation?: boolean | undefined;
477
+ }>(data_0?: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
478
+ query?: Record<string, any> | undefined;
479
+ fetchOptions?: FetchOptions | undefined;
480
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
481
+ success: boolean;
482
+ }, {
483
+ code?: string;
484
+ message?: string;
485
+ }, FetchOptions["throw"] extends true ? true : false>>, organization: {
486
+ create: <FetchOptions extends {
487
+ headers?: (HeadersInit & (HeadersInit | {
488
+ accept: "application/json" | "text/plain" | "application/octet-stream";
489
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
490
+ authorization: "Bearer" | "Basic";
491
+ })) | undefined;
492
+ method?: string | undefined;
493
+ cache?: RequestCache | undefined;
494
+ credentials?: RequestCredentials | undefined;
495
+ integrity?: string | undefined;
496
+ keepalive?: boolean | undefined;
497
+ mode?: RequestMode | undefined;
498
+ priority?: RequestPriority | undefined;
499
+ redirect?: RequestRedirect | undefined;
500
+ referrer?: string | undefined;
501
+ referrerPolicy?: ReferrerPolicy | undefined;
502
+ signal?: (AbortSignal | null) | undefined;
503
+ window?: null | undefined;
504
+ next?: NextFetchRequestConfig | undefined;
505
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
506
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
507
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
508
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
509
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
510
+ hookOptions?: {
511
+ cloneResponse?: boolean;
512
+ } | undefined;
513
+ timeout?: number | undefined;
514
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
515
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
516
+ baseURL?: string | undefined;
517
+ throw?: boolean | undefined;
518
+ auth?: ({
519
+ type: "Bearer";
520
+ token: string | (() => string | undefined) | undefined;
521
+ } | {
522
+ type: "Basic";
523
+ username: string | (() => string | undefined) | undefined;
524
+ password: string | (() => string | undefined) | undefined;
525
+ } | {
526
+ type: "Custom";
527
+ prefix: string | (() => string | undefined) | undefined;
528
+ value: string | (() => string | undefined) | undefined;
529
+ }) | undefined;
530
+ body?: (Partial<{
531
+ name: string;
532
+ slug: string;
533
+ metadata?: Record<string, any> | undefined;
534
+ userId?: string | undefined;
535
+ logo?: string | undefined;
536
+ keepCurrentActiveOrganization?: boolean | undefined;
537
+ }> & Record<string, any>) | undefined;
538
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
539
+ params?: Record<string, any> | undefined;
540
+ duplex?: "full" | "half" | undefined;
541
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
542
+ retry?: import('better-auth/react').RetryOptions | undefined;
543
+ retryAttempt?: number | undefined;
544
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
545
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
546
+ disableValidation?: boolean | undefined;
547
+ }>(data_0: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
548
+ name: string;
549
+ slug: string;
550
+ metadata?: Record<string, any> | undefined;
551
+ userId?: string | undefined;
552
+ logo?: string | undefined;
553
+ keepCurrentActiveOrganization?: boolean | undefined;
554
+ } & {
555
+ fetchOptions?: {
556
+ headers?: (HeadersInit & (HeadersInit | {
557
+ accept: "application/json" | "text/plain" | "application/octet-stream";
558
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
559
+ authorization: "Bearer" | "Basic";
560
+ })) | undefined;
561
+ method?: string | undefined;
562
+ cache?: RequestCache | undefined;
563
+ credentials?: RequestCredentials | undefined;
564
+ integrity?: string | undefined;
565
+ keepalive?: boolean | undefined;
566
+ mode?: RequestMode | undefined;
567
+ priority?: RequestPriority | undefined;
568
+ redirect?: RequestRedirect | undefined;
569
+ referrer?: string | undefined;
570
+ referrerPolicy?: ReferrerPolicy | undefined;
571
+ signal?: (AbortSignal | null) | undefined;
572
+ window?: null | undefined;
573
+ next?: NextFetchRequestConfig | undefined;
574
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
575
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
576
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
577
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
578
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
579
+ hookOptions?: {
580
+ cloneResponse?: boolean;
581
+ } | undefined;
582
+ timeout?: number | undefined;
583
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
584
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
585
+ baseURL?: string | undefined;
586
+ throw?: boolean | undefined;
587
+ auth?: ({
588
+ type: "Bearer";
589
+ token: string | (() => string | undefined) | undefined;
590
+ } | {
591
+ type: "Basic";
592
+ username: string | (() => string | undefined) | undefined;
593
+ password: string | (() => string | undefined) | undefined;
594
+ } | {
595
+ type: "Custom";
596
+ prefix: string | (() => string | undefined) | undefined;
597
+ value: string | (() => string | undefined) | undefined;
598
+ }) | undefined;
599
+ body?: undefined;
600
+ query?: Record<string, any> | undefined;
601
+ params?: Record<string, any> | undefined;
602
+ duplex?: "full" | "half" | undefined;
603
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
604
+ retry?: import('better-auth/react').RetryOptions | undefined;
605
+ retryAttempt?: number | undefined;
606
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
607
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
608
+ disableValidation?: boolean | undefined;
609
+ } | undefined;
610
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
611
+ metadata: Record<string, any> | undefined;
612
+ members: {
613
+ id: string;
614
+ createdAt: Date;
615
+ userId: string;
616
+ organizationId: string;
617
+ role: string;
618
+ teamId?: string | undefined;
619
+ }[];
620
+ id: string;
621
+ name: string;
622
+ createdAt: Date;
623
+ slug: string;
624
+ logo?: string | null | undefined;
625
+ }, {
626
+ code?: string;
627
+ message?: string;
628
+ }, FetchOptions["throw"] extends true ? true : false>>;
629
+ } & {
630
+ update: <FetchOptions extends {
631
+ headers?: (HeadersInit & (HeadersInit | {
632
+ accept: "application/json" | "text/plain" | "application/octet-stream";
633
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
634
+ authorization: "Bearer" | "Basic";
635
+ })) | undefined;
636
+ method?: string | undefined;
637
+ cache?: RequestCache | undefined;
638
+ credentials?: RequestCredentials | undefined;
639
+ integrity?: string | undefined;
640
+ keepalive?: boolean | undefined;
641
+ mode?: RequestMode | undefined;
642
+ priority?: RequestPriority | undefined;
643
+ redirect?: RequestRedirect | undefined;
644
+ referrer?: string | undefined;
645
+ referrerPolicy?: ReferrerPolicy | undefined;
646
+ signal?: (AbortSignal | null) | undefined;
647
+ window?: null | undefined;
648
+ next?: NextFetchRequestConfig | undefined;
649
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
650
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
651
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
652
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
653
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
654
+ hookOptions?: {
655
+ cloneResponse?: boolean;
656
+ } | undefined;
657
+ timeout?: number | undefined;
658
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
659
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
660
+ baseURL?: string | undefined;
661
+ throw?: boolean | undefined;
662
+ auth?: ({
663
+ type: "Bearer";
664
+ token: string | (() => string | undefined) | undefined;
665
+ } | {
666
+ type: "Basic";
667
+ username: string | (() => string | undefined) | undefined;
668
+ password: string | (() => string | undefined) | undefined;
669
+ } | {
670
+ type: "Custom";
671
+ prefix: string | (() => string | undefined) | undefined;
672
+ value: string | (() => string | undefined) | undefined;
673
+ }) | undefined;
674
+ body?: (Partial<{
675
+ data: {
676
+ metadata?: Record<string, any> | undefined;
677
+ name?: string | undefined;
678
+ slug?: string | undefined;
679
+ logo?: string | undefined;
680
+ };
681
+ organizationId?: string | undefined;
682
+ }> & Record<string, any>) | undefined;
683
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
684
+ params?: Record<string, any> | undefined;
685
+ duplex?: "full" | "half" | undefined;
686
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
687
+ retry?: import('better-auth/react').RetryOptions | undefined;
688
+ retryAttempt?: number | undefined;
689
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
690
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
691
+ disableValidation?: boolean | undefined;
692
+ }>(data_0: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
693
+ data: {
694
+ metadata?: Record<string, any> | undefined;
695
+ name?: string | undefined;
696
+ slug?: string | undefined;
697
+ logo?: string | undefined;
698
+ };
699
+ organizationId?: string | undefined;
700
+ } & {
701
+ fetchOptions?: {
702
+ headers?: (HeadersInit & (HeadersInit | {
703
+ accept: "application/json" | "text/plain" | "application/octet-stream";
704
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
705
+ authorization: "Bearer" | "Basic";
706
+ })) | undefined;
707
+ method?: string | undefined;
708
+ cache?: RequestCache | undefined;
709
+ credentials?: RequestCredentials | undefined;
710
+ integrity?: string | undefined;
711
+ keepalive?: boolean | undefined;
712
+ mode?: RequestMode | undefined;
713
+ priority?: RequestPriority | undefined;
714
+ redirect?: RequestRedirect | undefined;
715
+ referrer?: string | undefined;
716
+ referrerPolicy?: ReferrerPolicy | undefined;
717
+ signal?: (AbortSignal | null) | undefined;
718
+ window?: null | undefined;
719
+ next?: NextFetchRequestConfig | undefined;
720
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
721
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
722
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
723
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
724
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
725
+ hookOptions?: {
726
+ cloneResponse?: boolean;
727
+ } | undefined;
728
+ timeout?: number | undefined;
729
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
730
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
731
+ baseURL?: string | undefined;
732
+ throw?: boolean | undefined;
733
+ auth?: ({
734
+ type: "Bearer";
735
+ token: string | (() => string | undefined) | undefined;
736
+ } | {
737
+ type: "Basic";
738
+ username: string | (() => string | undefined) | undefined;
739
+ password: string | (() => string | undefined) | undefined;
740
+ } | {
741
+ type: "Custom";
742
+ prefix: string | (() => string | undefined) | undefined;
743
+ value: string | (() => string | undefined) | undefined;
744
+ }) | undefined;
745
+ body?: undefined;
746
+ query?: Record<string, any> | undefined;
747
+ params?: Record<string, any> | undefined;
748
+ duplex?: "full" | "half" | undefined;
749
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
750
+ retry?: import('better-auth/react').RetryOptions | undefined;
751
+ retryAttempt?: number | undefined;
752
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
753
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
754
+ disableValidation?: boolean | undefined;
755
+ } | undefined;
756
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
757
+ metadata: Record<string, any> | undefined;
758
+ id: string;
759
+ name: string;
760
+ createdAt: Date;
761
+ slug: string;
762
+ logo?: string | null | undefined;
763
+ }, {
764
+ code?: string;
765
+ message?: string;
766
+ }, FetchOptions["throw"] extends true ? true : false>>;
767
+ } & {
768
+ delete: <FetchOptions extends {
769
+ headers?: (HeadersInit & (HeadersInit | {
770
+ accept: "application/json" | "text/plain" | "application/octet-stream";
771
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
772
+ authorization: "Bearer" | "Basic";
773
+ })) | undefined;
774
+ method?: string | undefined;
775
+ cache?: RequestCache | undefined;
776
+ credentials?: RequestCredentials | undefined;
777
+ integrity?: string | undefined;
778
+ keepalive?: boolean | undefined;
779
+ mode?: RequestMode | undefined;
780
+ priority?: RequestPriority | undefined;
781
+ redirect?: RequestRedirect | undefined;
782
+ referrer?: string | undefined;
783
+ referrerPolicy?: ReferrerPolicy | undefined;
784
+ signal?: (AbortSignal | null) | undefined;
785
+ window?: null | undefined;
786
+ next?: NextFetchRequestConfig | undefined;
787
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
788
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
789
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
790
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
791
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
792
+ hookOptions?: {
793
+ cloneResponse?: boolean;
794
+ } | undefined;
795
+ timeout?: number | undefined;
796
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
797
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
798
+ baseURL?: string | undefined;
799
+ throw?: boolean | undefined;
800
+ auth?: ({
801
+ type: "Bearer";
802
+ token: string | (() => string | undefined) | undefined;
803
+ } | {
804
+ type: "Basic";
805
+ username: string | (() => string | undefined) | undefined;
806
+ password: string | (() => string | undefined) | undefined;
807
+ } | {
808
+ type: "Custom";
809
+ prefix: string | (() => string | undefined) | undefined;
810
+ value: string | (() => string | undefined) | undefined;
811
+ }) | undefined;
812
+ body?: (Partial<{
813
+ organizationId: string;
814
+ }> & Record<string, any>) | undefined;
815
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
816
+ params?: Record<string, any> | undefined;
817
+ duplex?: "full" | "half" | undefined;
818
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
819
+ retry?: import('better-auth/react').RetryOptions | undefined;
820
+ retryAttempt?: number | undefined;
821
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
822
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
823
+ disableValidation?: boolean | undefined;
824
+ }>(data_0: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
825
+ organizationId: string;
826
+ } & {
827
+ fetchOptions?: {
828
+ headers?: (HeadersInit & (HeadersInit | {
829
+ accept: "application/json" | "text/plain" | "application/octet-stream";
830
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
831
+ authorization: "Bearer" | "Basic";
832
+ })) | undefined;
833
+ method?: string | undefined;
834
+ cache?: RequestCache | undefined;
835
+ credentials?: RequestCredentials | undefined;
836
+ integrity?: string | undefined;
837
+ keepalive?: boolean | undefined;
838
+ mode?: RequestMode | undefined;
839
+ priority?: RequestPriority | undefined;
840
+ redirect?: RequestRedirect | undefined;
841
+ referrer?: string | undefined;
842
+ referrerPolicy?: ReferrerPolicy | undefined;
843
+ signal?: (AbortSignal | null) | undefined;
844
+ window?: null | undefined;
845
+ next?: NextFetchRequestConfig | undefined;
846
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
847
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
848
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
849
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
850
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
851
+ hookOptions?: {
852
+ cloneResponse?: boolean;
853
+ } | undefined;
854
+ timeout?: number | undefined;
855
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
856
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
857
+ baseURL?: string | undefined;
858
+ throw?: boolean | undefined;
859
+ auth?: ({
860
+ type: "Bearer";
861
+ token: string | (() => string | undefined) | undefined;
862
+ } | {
863
+ type: "Basic";
864
+ username: string | (() => string | undefined) | undefined;
865
+ password: string | (() => string | undefined) | undefined;
866
+ } | {
867
+ type: "Custom";
868
+ prefix: string | (() => string | undefined) | undefined;
869
+ value: string | (() => string | undefined) | undefined;
870
+ }) | undefined;
871
+ body?: undefined;
872
+ query?: Record<string, any> | undefined;
873
+ params?: Record<string, any> | undefined;
874
+ duplex?: "full" | "half" | undefined;
875
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
876
+ retry?: import('better-auth/react').RetryOptions | undefined;
877
+ retryAttempt?: number | undefined;
878
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
879
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
880
+ disableValidation?: boolean | undefined;
881
+ } | undefined;
882
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
883
+ id: string;
884
+ name: string;
885
+ createdAt: Date;
886
+ slug: string;
887
+ metadata?: any;
888
+ logo?: string | null | undefined;
889
+ } & Record<string, any>, {
890
+ code?: string;
891
+ message?: string;
892
+ }, FetchOptions["throw"] extends true ? true : false>>;
893
+ } & {
894
+ setActive: <FetchOptions extends {
895
+ headers?: (HeadersInit & (HeadersInit | {
896
+ accept: "application/json" | "text/plain" | "application/octet-stream";
897
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
898
+ authorization: "Bearer" | "Basic";
899
+ })) | undefined;
900
+ method?: string | undefined;
901
+ cache?: RequestCache | undefined;
902
+ credentials?: RequestCredentials | undefined;
903
+ integrity?: string | undefined;
904
+ keepalive?: boolean | undefined;
905
+ mode?: RequestMode | undefined;
906
+ priority?: RequestPriority | undefined;
907
+ redirect?: RequestRedirect | undefined;
908
+ referrer?: string | undefined;
909
+ referrerPolicy?: ReferrerPolicy | undefined;
910
+ signal?: (AbortSignal | null) | undefined;
911
+ window?: null | undefined;
912
+ next?: NextFetchRequestConfig | undefined;
913
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
914
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
915
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
916
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
917
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
918
+ hookOptions?: {
919
+ cloneResponse?: boolean;
920
+ } | undefined;
921
+ timeout?: number | undefined;
922
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
923
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
924
+ baseURL?: string | undefined;
925
+ throw?: boolean | undefined;
926
+ auth?: ({
927
+ type: "Bearer";
928
+ token: string | (() => string | undefined) | undefined;
929
+ } | {
930
+ type: "Basic";
931
+ username: string | (() => string | undefined) | undefined;
932
+ password: string | (() => string | undefined) | undefined;
933
+ } | {
934
+ type: "Custom";
935
+ prefix: string | (() => string | undefined) | undefined;
936
+ value: string | (() => string | undefined) | undefined;
937
+ }) | undefined;
938
+ body?: (Partial<{
939
+ organizationId?: string | null | undefined;
940
+ organizationSlug?: string | undefined;
941
+ }> & Record<string, any>) | undefined;
942
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
943
+ params?: Record<string, any> | undefined;
944
+ duplex?: "full" | "half" | undefined;
945
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
946
+ retry?: import('better-auth/react').RetryOptions | undefined;
947
+ retryAttempt?: number | undefined;
948
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
949
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
950
+ disableValidation?: boolean | undefined;
951
+ }>(data_0?: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
952
+ organizationId?: string | null | undefined;
953
+ organizationSlug?: string | undefined;
954
+ } & {
955
+ fetchOptions?: {
956
+ headers?: (HeadersInit & (HeadersInit | {
957
+ accept: "application/json" | "text/plain" | "application/octet-stream";
958
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
959
+ authorization: "Bearer" | "Basic";
960
+ })) | undefined;
961
+ method?: string | undefined;
962
+ cache?: RequestCache | undefined;
963
+ credentials?: RequestCredentials | undefined;
964
+ integrity?: string | undefined;
965
+ keepalive?: boolean | undefined;
966
+ mode?: RequestMode | undefined;
967
+ priority?: RequestPriority | undefined;
968
+ redirect?: RequestRedirect | undefined;
969
+ referrer?: string | undefined;
970
+ referrerPolicy?: ReferrerPolicy | undefined;
971
+ signal?: (AbortSignal | null) | undefined;
972
+ window?: null | undefined;
973
+ next?: NextFetchRequestConfig | undefined;
974
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
975
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
976
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
977
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
978
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
979
+ hookOptions?: {
980
+ cloneResponse?: boolean;
981
+ } | undefined;
982
+ timeout?: number | undefined;
983
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
984
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
985
+ baseURL?: string | undefined;
986
+ throw?: boolean | undefined;
987
+ auth?: ({
988
+ type: "Bearer";
989
+ token: string | (() => string | undefined) | undefined;
990
+ } | {
991
+ type: "Basic";
992
+ username: string | (() => string | undefined) | undefined;
993
+ password: string | (() => string | undefined) | undefined;
994
+ } | {
995
+ type: "Custom";
996
+ prefix: string | (() => string | undefined) | undefined;
997
+ value: string | (() => string | undefined) | undefined;
998
+ }) | undefined;
999
+ body?: undefined;
1000
+ query?: Record<string, any> | undefined;
1001
+ params?: Record<string, any> | undefined;
1002
+ duplex?: "full" | "half" | undefined;
1003
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1004
+ retry?: import('better-auth/react').RetryOptions | undefined;
1005
+ retryAttempt?: number | undefined;
1006
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1007
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
1008
+ disableValidation?: boolean | undefined;
1009
+ } | undefined;
1010
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
1011
+ members: {
1012
+ id: string;
1013
+ organizationId: string;
1014
+ createdAt: Date;
1015
+ role: "member" | "admin" | "owner";
1016
+ teamId?: string;
1017
+ userId: string;
1018
+ user: {
1019
+ email: string;
1020
+ name: string;
1021
+ image?: string;
1022
+ };
1023
+ }[];
1024
+ invitations: {
1025
+ id: string;
1026
+ organizationId: string;
1027
+ email: string;
1028
+ role: "member" | "admin" | "owner";
1029
+ status: "pending" | "accepted" | "canceled" | "rejected";
1030
+ inviterId: string;
1031
+ expiresAt: Date;
1032
+ teamId?: string;
1033
+ }[];
1034
+ } & {
1035
+ id: string;
1036
+ name: string;
1037
+ createdAt: Date;
1038
+ slug: string;
1039
+ metadata?: any;
1040
+ logo?: string | null | undefined;
1041
+ } & Record<string, any>, {
1042
+ code?: string;
1043
+ message?: string;
1044
+ }, FetchOptions["throw"] extends true ? true : false>>;
1045
+ } & {
1046
+ getFullOrganization: <FetchOptions extends {
1047
+ headers?: (HeadersInit & (HeadersInit | {
1048
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1049
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1050
+ authorization: "Bearer" | "Basic";
1051
+ })) | undefined;
1052
+ method?: string | undefined;
1053
+ cache?: RequestCache | undefined;
1054
+ credentials?: RequestCredentials | undefined;
1055
+ integrity?: string | undefined;
1056
+ keepalive?: boolean | undefined;
1057
+ mode?: RequestMode | undefined;
1058
+ priority?: RequestPriority | undefined;
1059
+ redirect?: RequestRedirect | undefined;
1060
+ referrer?: string | undefined;
1061
+ referrerPolicy?: ReferrerPolicy | undefined;
1062
+ signal?: (AbortSignal | null) | undefined;
1063
+ window?: null | undefined;
1064
+ next?: NextFetchRequestConfig | undefined;
1065
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
1066
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
1067
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
1068
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
1069
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
1070
+ hookOptions?: {
1071
+ cloneResponse?: boolean;
1072
+ } | undefined;
1073
+ timeout?: number | undefined;
1074
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
1075
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
1076
+ baseURL?: string | undefined;
1077
+ throw?: boolean | undefined;
1078
+ auth?: ({
1079
+ type: "Bearer";
1080
+ token: string | (() => string | undefined) | undefined;
1081
+ } | {
1082
+ type: "Basic";
1083
+ username: string | (() => string | undefined) | undefined;
1084
+ password: string | (() => string | undefined) | undefined;
1085
+ } | {
1086
+ type: "Custom";
1087
+ prefix: string | (() => string | undefined) | undefined;
1088
+ value: string | (() => string | undefined) | undefined;
1089
+ }) | undefined;
1090
+ body?: undefined;
1091
+ query?: (Partial<{
1092
+ organizationId?: string | undefined;
1093
+ organizationSlug?: string | undefined;
1094
+ }> & Record<string, any>) | undefined;
1095
+ params?: Record<string, any> | undefined;
1096
+ duplex?: "full" | "half" | undefined;
1097
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1098
+ retry?: import('better-auth/react').RetryOptions | undefined;
1099
+ retryAttempt?: number | undefined;
1100
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1101
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
1102
+ disableValidation?: boolean | undefined;
1103
+ }>(data_0?: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
1104
+ query?: {
1105
+ organizationId?: string | undefined;
1106
+ organizationSlug?: string | undefined;
1107
+ } | undefined;
1108
+ fetchOptions?: FetchOptions | undefined;
1109
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
1110
+ members: {
1111
+ id: string;
1112
+ organizationId: string;
1113
+ createdAt: Date;
1114
+ role: "member" | "admin" | "owner";
1115
+ teamId?: string;
1116
+ userId: string;
1117
+ user: {
1118
+ email: string;
1119
+ name: string;
1120
+ image?: string;
1121
+ };
1122
+ }[];
1123
+ invitations: {
1124
+ id: string;
1125
+ organizationId: string;
1126
+ email: string;
1127
+ role: "member" | "admin" | "owner";
1128
+ status: "pending" | "accepted" | "canceled" | "rejected";
1129
+ inviterId: string;
1130
+ expiresAt: Date;
1131
+ teamId?: string;
1132
+ }[];
1133
+ } & {
1134
+ id: string;
1135
+ name: string;
1136
+ createdAt: Date;
1137
+ slug: string;
1138
+ metadata?: any;
1139
+ logo?: string | null | undefined;
1140
+ } & Record<string, any>, {
1141
+ code?: string;
1142
+ message?: string;
1143
+ }, FetchOptions["throw"] extends true ? true : false>>;
1144
+ } & {
1145
+ list: <FetchOptions extends {
1146
+ headers?: (HeadersInit & (HeadersInit | {
1147
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1148
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1149
+ authorization: "Bearer" | "Basic";
1150
+ })) | undefined;
1151
+ method?: string | undefined;
1152
+ cache?: RequestCache | undefined;
1153
+ credentials?: RequestCredentials | undefined;
1154
+ integrity?: string | undefined;
1155
+ keepalive?: boolean | undefined;
1156
+ mode?: RequestMode | undefined;
1157
+ priority?: RequestPriority | undefined;
1158
+ redirect?: RequestRedirect | undefined;
1159
+ referrer?: string | undefined;
1160
+ referrerPolicy?: ReferrerPolicy | undefined;
1161
+ signal?: (AbortSignal | null) | undefined;
1162
+ window?: null | undefined;
1163
+ next?: NextFetchRequestConfig | undefined;
1164
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
1165
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
1166
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
1167
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
1168
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
1169
+ hookOptions?: {
1170
+ cloneResponse?: boolean;
1171
+ } | undefined;
1172
+ timeout?: number | undefined;
1173
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
1174
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
1175
+ baseURL?: string | undefined;
1176
+ throw?: boolean | undefined;
1177
+ auth?: ({
1178
+ type: "Bearer";
1179
+ token: string | (() => string | undefined) | undefined;
1180
+ } | {
1181
+ type: "Basic";
1182
+ username: string | (() => string | undefined) | undefined;
1183
+ password: string | (() => string | undefined) | undefined;
1184
+ } | {
1185
+ type: "Custom";
1186
+ prefix: string | (() => string | undefined) | undefined;
1187
+ value: string | (() => string | undefined) | undefined;
1188
+ }) | undefined;
1189
+ body?: undefined;
1190
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1191
+ params?: Record<string, any> | undefined;
1192
+ duplex?: "full" | "half" | undefined;
1193
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1194
+ retry?: import('better-auth/react').RetryOptions | undefined;
1195
+ retryAttempt?: number | undefined;
1196
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1197
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
1198
+ disableValidation?: boolean | undefined;
1199
+ }>(data_0?: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
1200
+ query?: Record<string, any> | undefined;
1201
+ fetchOptions?: FetchOptions | undefined;
1202
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<import('better-auth/dist/shared/better-auth.Dxn5Xplu').b[], {
1203
+ code?: string;
1204
+ message?: string;
1205
+ }, FetchOptions["throw"] extends true ? true : false>>;
1206
+ } & {
1207
+ inviteMember: <FetchOptions extends {
1208
+ headers?: (HeadersInit & (HeadersInit | {
1209
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1210
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1211
+ authorization: "Bearer" | "Basic";
1212
+ })) | undefined;
1213
+ method?: string | undefined;
1214
+ cache?: RequestCache | undefined;
1215
+ credentials?: RequestCredentials | undefined;
1216
+ integrity?: string | undefined;
1217
+ keepalive?: boolean | undefined;
1218
+ mode?: RequestMode | undefined;
1219
+ priority?: RequestPriority | undefined;
1220
+ redirect?: RequestRedirect | undefined;
1221
+ referrer?: string | undefined;
1222
+ referrerPolicy?: ReferrerPolicy | undefined;
1223
+ signal?: (AbortSignal | null) | undefined;
1224
+ window?: null | undefined;
1225
+ next?: NextFetchRequestConfig | undefined;
1226
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
1227
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
1228
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
1229
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
1230
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
1231
+ hookOptions?: {
1232
+ cloneResponse?: boolean;
1233
+ } | undefined;
1234
+ timeout?: number | undefined;
1235
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
1236
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
1237
+ baseURL?: string | undefined;
1238
+ throw?: boolean | undefined;
1239
+ auth?: ({
1240
+ type: "Bearer";
1241
+ token: string | (() => string | undefined) | undefined;
1242
+ } | {
1243
+ type: "Basic";
1244
+ username: string | (() => string | undefined) | undefined;
1245
+ password: string | (() => string | undefined) | undefined;
1246
+ } | {
1247
+ type: "Custom";
1248
+ prefix: string | (() => string | undefined) | undefined;
1249
+ value: string | (() => string | undefined) | undefined;
1250
+ }) | undefined;
1251
+ body?: (Partial<{
1252
+ email: string;
1253
+ role: "member" | "admin" | "owner";
1254
+ organizationId?: string;
1255
+ resend?: boolean;
1256
+ }> & Record<string, any>) | undefined;
1257
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1258
+ params?: Record<string, any> | undefined;
1259
+ duplex?: "full" | "half" | undefined;
1260
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1261
+ retry?: import('better-auth/react').RetryOptions | undefined;
1262
+ retryAttempt?: number | undefined;
1263
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1264
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
1265
+ disableValidation?: boolean | undefined;
1266
+ }>(data_0: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
1267
+ email: string;
1268
+ role: "member" | "admin" | "owner";
1269
+ organizationId?: string;
1270
+ resend?: boolean;
1271
+ } & {
1272
+ fetchOptions?: {
1273
+ headers?: (HeadersInit & (HeadersInit | {
1274
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1275
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1276
+ authorization: "Bearer" | "Basic";
1277
+ })) | undefined;
1278
+ method?: string | undefined;
1279
+ cache?: RequestCache | undefined;
1280
+ credentials?: RequestCredentials | undefined;
1281
+ integrity?: string | undefined;
1282
+ keepalive?: boolean | undefined;
1283
+ mode?: RequestMode | undefined;
1284
+ priority?: RequestPriority | undefined;
1285
+ redirect?: RequestRedirect | undefined;
1286
+ referrer?: string | undefined;
1287
+ referrerPolicy?: ReferrerPolicy | undefined;
1288
+ signal?: (AbortSignal | null) | undefined;
1289
+ window?: null | undefined;
1290
+ next?: NextFetchRequestConfig | undefined;
1291
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
1292
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
1293
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
1294
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
1295
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
1296
+ hookOptions?: {
1297
+ cloneResponse?: boolean;
1298
+ } | undefined;
1299
+ timeout?: number | undefined;
1300
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
1301
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
1302
+ baseURL?: string | undefined;
1303
+ throw?: boolean | undefined;
1304
+ auth?: ({
1305
+ type: "Bearer";
1306
+ token: string | (() => string | undefined) | undefined;
1307
+ } | {
1308
+ type: "Basic";
1309
+ username: string | (() => string | undefined) | undefined;
1310
+ password: string | (() => string | undefined) | undefined;
1311
+ } | {
1312
+ type: "Custom";
1313
+ prefix: string | (() => string | undefined) | undefined;
1314
+ value: string | (() => string | undefined) | undefined;
1315
+ }) | undefined;
1316
+ body?: undefined;
1317
+ query?: Record<string, any> | undefined;
1318
+ params?: Record<string, any> | undefined;
1319
+ duplex?: "full" | "half" | undefined;
1320
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1321
+ retry?: import('better-auth/react').RetryOptions | undefined;
1322
+ retryAttempt?: number | undefined;
1323
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1324
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
1325
+ disableValidation?: boolean | undefined;
1326
+ } | undefined;
1327
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
1328
+ id: string;
1329
+ email: string;
1330
+ status: "pending" | "accepted" | "rejected" | "canceled";
1331
+ expiresAt: Date;
1332
+ organizationId: string;
1333
+ role: string;
1334
+ inviterId: string;
1335
+ teamId?: string | undefined;
1336
+ }, {
1337
+ code?: string;
1338
+ message?: string;
1339
+ }, FetchOptions["throw"] extends true ? true : false>>;
1340
+ } & {
1341
+ cancelInvitation: <FetchOptions extends {
1342
+ headers?: (HeadersInit & (HeadersInit | {
1343
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1344
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1345
+ authorization: "Bearer" | "Basic";
1346
+ })) | undefined;
1347
+ method?: string | undefined;
1348
+ cache?: RequestCache | undefined;
1349
+ credentials?: RequestCredentials | undefined;
1350
+ integrity?: string | undefined;
1351
+ keepalive?: boolean | undefined;
1352
+ mode?: RequestMode | undefined;
1353
+ priority?: RequestPriority | undefined;
1354
+ redirect?: RequestRedirect | undefined;
1355
+ referrer?: string | undefined;
1356
+ referrerPolicy?: ReferrerPolicy | undefined;
1357
+ signal?: (AbortSignal | null) | undefined;
1358
+ window?: null | undefined;
1359
+ next?: NextFetchRequestConfig | undefined;
1360
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
1361
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
1362
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
1363
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
1364
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
1365
+ hookOptions?: {
1366
+ cloneResponse?: boolean;
1367
+ } | undefined;
1368
+ timeout?: number | undefined;
1369
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
1370
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
1371
+ baseURL?: string | undefined;
1372
+ throw?: boolean | undefined;
1373
+ auth?: ({
1374
+ type: "Bearer";
1375
+ token: string | (() => string | undefined) | undefined;
1376
+ } | {
1377
+ type: "Basic";
1378
+ username: string | (() => string | undefined) | undefined;
1379
+ password: string | (() => string | undefined) | undefined;
1380
+ } | {
1381
+ type: "Custom";
1382
+ prefix: string | (() => string | undefined) | undefined;
1383
+ value: string | (() => string | undefined) | undefined;
1384
+ }) | undefined;
1385
+ body?: (Partial<{
1386
+ invitationId: string;
1387
+ }> & Record<string, any>) | undefined;
1388
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1389
+ params?: Record<string, any> | undefined;
1390
+ duplex?: "full" | "half" | undefined;
1391
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1392
+ retry?: import('better-auth/react').RetryOptions | undefined;
1393
+ retryAttempt?: number | undefined;
1394
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1395
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
1396
+ disableValidation?: boolean | undefined;
1397
+ }>(data_0: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
1398
+ invitationId: string;
1399
+ } & {
1400
+ fetchOptions?: {
1401
+ headers?: (HeadersInit & (HeadersInit | {
1402
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1403
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1404
+ authorization: "Bearer" | "Basic";
1405
+ })) | undefined;
1406
+ method?: string | undefined;
1407
+ cache?: RequestCache | undefined;
1408
+ credentials?: RequestCredentials | undefined;
1409
+ integrity?: string | undefined;
1410
+ keepalive?: boolean | undefined;
1411
+ mode?: RequestMode | undefined;
1412
+ priority?: RequestPriority | undefined;
1413
+ redirect?: RequestRedirect | undefined;
1414
+ referrer?: string | undefined;
1415
+ referrerPolicy?: ReferrerPolicy | undefined;
1416
+ signal?: (AbortSignal | null) | undefined;
1417
+ window?: null | undefined;
1418
+ next?: NextFetchRequestConfig | undefined;
1419
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
1420
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
1421
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
1422
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
1423
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
1424
+ hookOptions?: {
1425
+ cloneResponse?: boolean;
1426
+ } | undefined;
1427
+ timeout?: number | undefined;
1428
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
1429
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
1430
+ baseURL?: string | undefined;
1431
+ throw?: boolean | undefined;
1432
+ auth?: ({
1433
+ type: "Bearer";
1434
+ token: string | (() => string | undefined) | undefined;
1435
+ } | {
1436
+ type: "Basic";
1437
+ username: string | (() => string | undefined) | undefined;
1438
+ password: string | (() => string | undefined) | undefined;
1439
+ } | {
1440
+ type: "Custom";
1441
+ prefix: string | (() => string | undefined) | undefined;
1442
+ value: string | (() => string | undefined) | undefined;
1443
+ }) | undefined;
1444
+ body?: undefined;
1445
+ query?: Record<string, any> | undefined;
1446
+ params?: Record<string, any> | undefined;
1447
+ duplex?: "full" | "half" | undefined;
1448
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1449
+ retry?: import('better-auth/react').RetryOptions | undefined;
1450
+ retryAttempt?: number | undefined;
1451
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1452
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
1453
+ disableValidation?: boolean | undefined;
1454
+ } | undefined;
1455
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
1456
+ id: string;
1457
+ email: string;
1458
+ status: "pending" | "accepted" | "rejected" | "canceled";
1459
+ expiresAt: Date;
1460
+ organizationId: string;
1461
+ role: string;
1462
+ inviterId: string;
1463
+ teamId?: string | undefined;
1464
+ }, {
1465
+ code?: string;
1466
+ message?: string;
1467
+ }, FetchOptions["throw"] extends true ? true : false>>;
1468
+ } & {
1469
+ acceptInvitation: <FetchOptions extends {
1470
+ headers?: (HeadersInit & (HeadersInit | {
1471
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1472
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1473
+ authorization: "Bearer" | "Basic";
1474
+ })) | undefined;
1475
+ method?: string | undefined;
1476
+ cache?: RequestCache | undefined;
1477
+ credentials?: RequestCredentials | undefined;
1478
+ integrity?: string | undefined;
1479
+ keepalive?: boolean | undefined;
1480
+ mode?: RequestMode | undefined;
1481
+ priority?: RequestPriority | undefined;
1482
+ redirect?: RequestRedirect | undefined;
1483
+ referrer?: string | undefined;
1484
+ referrerPolicy?: ReferrerPolicy | undefined;
1485
+ signal?: (AbortSignal | null) | undefined;
1486
+ window?: null | undefined;
1487
+ next?: NextFetchRequestConfig | undefined;
1488
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
1489
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
1490
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
1491
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
1492
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
1493
+ hookOptions?: {
1494
+ cloneResponse?: boolean;
1495
+ } | undefined;
1496
+ timeout?: number | undefined;
1497
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
1498
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
1499
+ baseURL?: string | undefined;
1500
+ throw?: boolean | undefined;
1501
+ auth?: ({
1502
+ type: "Bearer";
1503
+ token: string | (() => string | undefined) | undefined;
1504
+ } | {
1505
+ type: "Basic";
1506
+ username: string | (() => string | undefined) | undefined;
1507
+ password: string | (() => string | undefined) | undefined;
1508
+ } | {
1509
+ type: "Custom";
1510
+ prefix: string | (() => string | undefined) | undefined;
1511
+ value: string | (() => string | undefined) | undefined;
1512
+ }) | undefined;
1513
+ body?: (Partial<{
1514
+ invitationId: string;
1515
+ }> & Record<string, any>) | undefined;
1516
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1517
+ params?: Record<string, any> | undefined;
1518
+ duplex?: "full" | "half" | undefined;
1519
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1520
+ retry?: import('better-auth/react').RetryOptions | undefined;
1521
+ retryAttempt?: number | undefined;
1522
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1523
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
1524
+ disableValidation?: boolean | undefined;
1525
+ }>(data_0: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
1526
+ invitationId: string;
1527
+ } & {
1528
+ fetchOptions?: {
1529
+ headers?: (HeadersInit & (HeadersInit | {
1530
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1531
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1532
+ authorization: "Bearer" | "Basic";
1533
+ })) | undefined;
1534
+ method?: string | undefined;
1535
+ cache?: RequestCache | undefined;
1536
+ credentials?: RequestCredentials | undefined;
1537
+ integrity?: string | undefined;
1538
+ keepalive?: boolean | undefined;
1539
+ mode?: RequestMode | undefined;
1540
+ priority?: RequestPriority | undefined;
1541
+ redirect?: RequestRedirect | undefined;
1542
+ referrer?: string | undefined;
1543
+ referrerPolicy?: ReferrerPolicy | undefined;
1544
+ signal?: (AbortSignal | null) | undefined;
1545
+ window?: null | undefined;
1546
+ next?: NextFetchRequestConfig | undefined;
1547
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
1548
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
1549
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
1550
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
1551
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
1552
+ hookOptions?: {
1553
+ cloneResponse?: boolean;
1554
+ } | undefined;
1555
+ timeout?: number | undefined;
1556
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
1557
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
1558
+ baseURL?: string | undefined;
1559
+ throw?: boolean | undefined;
1560
+ auth?: ({
1561
+ type: "Bearer";
1562
+ token: string | (() => string | undefined) | undefined;
1563
+ } | {
1564
+ type: "Basic";
1565
+ username: string | (() => string | undefined) | undefined;
1566
+ password: string | (() => string | undefined) | undefined;
1567
+ } | {
1568
+ type: "Custom";
1569
+ prefix: string | (() => string | undefined) | undefined;
1570
+ value: string | (() => string | undefined) | undefined;
1571
+ }) | undefined;
1572
+ body?: undefined;
1573
+ query?: Record<string, any> | undefined;
1574
+ params?: Record<string, any> | undefined;
1575
+ duplex?: "full" | "half" | undefined;
1576
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1577
+ retry?: import('better-auth/react').RetryOptions | undefined;
1578
+ retryAttempt?: number | undefined;
1579
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1580
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
1581
+ disableValidation?: boolean | undefined;
1582
+ } | undefined;
1583
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
1584
+ invitation: {
1585
+ id: string;
1586
+ email: string;
1587
+ status: "pending" | "accepted" | "rejected" | "canceled";
1588
+ expiresAt: Date;
1589
+ organizationId: string;
1590
+ role: string;
1591
+ inviterId: string;
1592
+ teamId?: string | undefined;
1593
+ };
1594
+ member: {
1595
+ id: string;
1596
+ createdAt: Date;
1597
+ userId: string;
1598
+ organizationId: string;
1599
+ role: string;
1600
+ teamId?: string | undefined;
1601
+ };
1602
+ }, {
1603
+ code?: string;
1604
+ message?: string;
1605
+ }, FetchOptions["throw"] extends true ? true : false>>;
1606
+ } & {
1607
+ getInvitation: <FetchOptions extends {
1608
+ headers?: (HeadersInit & (HeadersInit | {
1609
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1610
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1611
+ authorization: "Bearer" | "Basic";
1612
+ })) | undefined;
1613
+ method?: string | undefined;
1614
+ cache?: RequestCache | undefined;
1615
+ credentials?: RequestCredentials | undefined;
1616
+ integrity?: string | undefined;
1617
+ keepalive?: boolean | undefined;
1618
+ mode?: RequestMode | undefined;
1619
+ priority?: RequestPriority | undefined;
1620
+ redirect?: RequestRedirect | undefined;
1621
+ referrer?: string | undefined;
1622
+ referrerPolicy?: ReferrerPolicy | undefined;
1623
+ signal?: (AbortSignal | null) | undefined;
1624
+ window?: null | undefined;
1625
+ next?: NextFetchRequestConfig | undefined;
1626
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
1627
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
1628
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
1629
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
1630
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
1631
+ hookOptions?: {
1632
+ cloneResponse?: boolean;
1633
+ } | undefined;
1634
+ timeout?: number | undefined;
1635
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
1636
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
1637
+ baseURL?: string | undefined;
1638
+ throw?: boolean | undefined;
1639
+ auth?: ({
1640
+ type: "Bearer";
1641
+ token: string | (() => string | undefined) | undefined;
1642
+ } | {
1643
+ type: "Basic";
1644
+ username: string | (() => string | undefined) | undefined;
1645
+ password: string | (() => string | undefined) | undefined;
1646
+ } | {
1647
+ type: "Custom";
1648
+ prefix: string | (() => string | undefined) | undefined;
1649
+ value: string | (() => string | undefined) | undefined;
1650
+ }) | undefined;
1651
+ body?: undefined;
1652
+ query?: (Partial<{
1653
+ id: string;
1654
+ }> & Record<string, any>) | undefined;
1655
+ params?: Record<string, any> | undefined;
1656
+ duplex?: "full" | "half" | undefined;
1657
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1658
+ retry?: import('better-auth/react').RetryOptions | undefined;
1659
+ retryAttempt?: number | undefined;
1660
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1661
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
1662
+ disableValidation?: boolean | undefined;
1663
+ }>(data_0: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
1664
+ query: {
1665
+ id: string;
1666
+ };
1667
+ fetchOptions?: FetchOptions | undefined;
1668
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
1669
+ organizationName: string;
1670
+ organizationSlug: string;
1671
+ inviterEmail: string;
1672
+ id: string;
1673
+ email: string;
1674
+ status: "pending" | "accepted" | "rejected" | "canceled";
1675
+ expiresAt: Date;
1676
+ organizationId: string;
1677
+ role: string;
1678
+ inviterId: string;
1679
+ teamId?: string | undefined;
1680
+ }, {
1681
+ code?: string;
1682
+ message?: string;
1683
+ }, FetchOptions["throw"] extends true ? true : false>>;
1684
+ } & {
1685
+ rejectInvitation: <FetchOptions extends {
1686
+ headers?: (HeadersInit & (HeadersInit | {
1687
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1688
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1689
+ authorization: "Bearer" | "Basic";
1690
+ })) | undefined;
1691
+ method?: string | undefined;
1692
+ cache?: RequestCache | undefined;
1693
+ credentials?: RequestCredentials | undefined;
1694
+ integrity?: string | undefined;
1695
+ keepalive?: boolean | undefined;
1696
+ mode?: RequestMode | undefined;
1697
+ priority?: RequestPriority | undefined;
1698
+ redirect?: RequestRedirect | undefined;
1699
+ referrer?: string | undefined;
1700
+ referrerPolicy?: ReferrerPolicy | undefined;
1701
+ signal?: (AbortSignal | null) | undefined;
1702
+ window?: null | undefined;
1703
+ next?: NextFetchRequestConfig | undefined;
1704
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
1705
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
1706
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
1707
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
1708
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
1709
+ hookOptions?: {
1710
+ cloneResponse?: boolean;
1711
+ } | undefined;
1712
+ timeout?: number | undefined;
1713
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
1714
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
1715
+ baseURL?: string | undefined;
1716
+ throw?: boolean | undefined;
1717
+ auth?: ({
1718
+ type: "Bearer";
1719
+ token: string | (() => string | undefined) | undefined;
1720
+ } | {
1721
+ type: "Basic";
1722
+ username: string | (() => string | undefined) | undefined;
1723
+ password: string | (() => string | undefined) | undefined;
1724
+ } | {
1725
+ type: "Custom";
1726
+ prefix: string | (() => string | undefined) | undefined;
1727
+ value: string | (() => string | undefined) | undefined;
1728
+ }) | undefined;
1729
+ body?: (Partial<{
1730
+ invitationId: string;
1731
+ }> & Record<string, any>) | undefined;
1732
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1733
+ params?: Record<string, any> | undefined;
1734
+ duplex?: "full" | "half" | undefined;
1735
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1736
+ retry?: import('better-auth/react').RetryOptions | undefined;
1737
+ retryAttempt?: number | undefined;
1738
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1739
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
1740
+ disableValidation?: boolean | undefined;
1741
+ }>(data_0: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
1742
+ invitationId: string;
1743
+ } & {
1744
+ fetchOptions?: {
1745
+ headers?: (HeadersInit & (HeadersInit | {
1746
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1747
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1748
+ authorization: "Bearer" | "Basic";
1749
+ })) | undefined;
1750
+ method?: string | undefined;
1751
+ cache?: RequestCache | undefined;
1752
+ credentials?: RequestCredentials | undefined;
1753
+ integrity?: string | undefined;
1754
+ keepalive?: boolean | undefined;
1755
+ mode?: RequestMode | undefined;
1756
+ priority?: RequestPriority | undefined;
1757
+ redirect?: RequestRedirect | undefined;
1758
+ referrer?: string | undefined;
1759
+ referrerPolicy?: ReferrerPolicy | undefined;
1760
+ signal?: (AbortSignal | null) | undefined;
1761
+ window?: null | undefined;
1762
+ next?: NextFetchRequestConfig | undefined;
1763
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
1764
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
1765
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
1766
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
1767
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
1768
+ hookOptions?: {
1769
+ cloneResponse?: boolean;
1770
+ } | undefined;
1771
+ timeout?: number | undefined;
1772
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
1773
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
1774
+ baseURL?: string | undefined;
1775
+ throw?: boolean | undefined;
1776
+ auth?: ({
1777
+ type: "Bearer";
1778
+ token: string | (() => string | undefined) | undefined;
1779
+ } | {
1780
+ type: "Basic";
1781
+ username: string | (() => string | undefined) | undefined;
1782
+ password: string | (() => string | undefined) | undefined;
1783
+ } | {
1784
+ type: "Custom";
1785
+ prefix: string | (() => string | undefined) | undefined;
1786
+ value: string | (() => string | undefined) | undefined;
1787
+ }) | undefined;
1788
+ body?: undefined;
1789
+ query?: Record<string, any> | undefined;
1790
+ params?: Record<string, any> | undefined;
1791
+ duplex?: "full" | "half" | undefined;
1792
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1793
+ retry?: import('better-auth/react').RetryOptions | undefined;
1794
+ retryAttempt?: number | undefined;
1795
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1796
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
1797
+ disableValidation?: boolean | undefined;
1798
+ } | undefined;
1799
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
1800
+ invitation: {
1801
+ id: string;
1802
+ email: string;
1803
+ status: "pending" | "accepted" | "rejected" | "canceled";
1804
+ expiresAt: Date;
1805
+ organizationId: string;
1806
+ role: string;
1807
+ inviterId: string;
1808
+ teamId?: string | undefined;
1809
+ } | null;
1810
+ member: null;
1811
+ }, {
1812
+ code?: string;
1813
+ message?: string;
1814
+ }, FetchOptions["throw"] extends true ? true : false>>;
1815
+ } & {
1816
+ checkSlug: <FetchOptions extends {
1817
+ headers?: (HeadersInit & (HeadersInit | {
1818
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1819
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1820
+ authorization: "Bearer" | "Basic";
1821
+ })) | undefined;
1822
+ method?: string | undefined;
1823
+ cache?: RequestCache | undefined;
1824
+ credentials?: RequestCredentials | undefined;
1825
+ integrity?: string | undefined;
1826
+ keepalive?: boolean | undefined;
1827
+ mode?: RequestMode | undefined;
1828
+ priority?: RequestPriority | undefined;
1829
+ redirect?: RequestRedirect | undefined;
1830
+ referrer?: string | undefined;
1831
+ referrerPolicy?: ReferrerPolicy | undefined;
1832
+ signal?: (AbortSignal | null) | undefined;
1833
+ window?: null | undefined;
1834
+ next?: NextFetchRequestConfig | undefined;
1835
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
1836
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
1837
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
1838
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
1839
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
1840
+ hookOptions?: {
1841
+ cloneResponse?: boolean;
1842
+ } | undefined;
1843
+ timeout?: number | undefined;
1844
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
1845
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
1846
+ baseURL?: string | undefined;
1847
+ throw?: boolean | undefined;
1848
+ auth?: ({
1849
+ type: "Bearer";
1850
+ token: string | (() => string | undefined) | undefined;
1851
+ } | {
1852
+ type: "Basic";
1853
+ username: string | (() => string | undefined) | undefined;
1854
+ password: string | (() => string | undefined) | undefined;
1855
+ } | {
1856
+ type: "Custom";
1857
+ prefix: string | (() => string | undefined) | undefined;
1858
+ value: string | (() => string | undefined) | undefined;
1859
+ }) | undefined;
1860
+ body?: (Partial<{
1861
+ slug: string;
1862
+ }> & Record<string, any>) | undefined;
1863
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1864
+ params?: Record<string, any> | undefined;
1865
+ duplex?: "full" | "half" | undefined;
1866
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1867
+ retry?: import('better-auth/react').RetryOptions | undefined;
1868
+ retryAttempt?: number | undefined;
1869
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1870
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
1871
+ disableValidation?: boolean | undefined;
1872
+ }>(data_0: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
1873
+ slug: string;
1874
+ } & {
1875
+ fetchOptions?: {
1876
+ headers?: (HeadersInit & (HeadersInit | {
1877
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1878
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1879
+ authorization: "Bearer" | "Basic";
1880
+ })) | undefined;
1881
+ method?: string | undefined;
1882
+ cache?: RequestCache | undefined;
1883
+ credentials?: RequestCredentials | undefined;
1884
+ integrity?: string | undefined;
1885
+ keepalive?: boolean | undefined;
1886
+ mode?: RequestMode | undefined;
1887
+ priority?: RequestPriority | undefined;
1888
+ redirect?: RequestRedirect | undefined;
1889
+ referrer?: string | undefined;
1890
+ referrerPolicy?: ReferrerPolicy | undefined;
1891
+ signal?: (AbortSignal | null) | undefined;
1892
+ window?: null | undefined;
1893
+ next?: NextFetchRequestConfig | undefined;
1894
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
1895
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
1896
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
1897
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
1898
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
1899
+ hookOptions?: {
1900
+ cloneResponse?: boolean;
1901
+ } | undefined;
1902
+ timeout?: number | undefined;
1903
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
1904
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
1905
+ baseURL?: string | undefined;
1906
+ throw?: boolean | undefined;
1907
+ auth?: ({
1908
+ type: "Bearer";
1909
+ token: string | (() => string | undefined) | undefined;
1910
+ } | {
1911
+ type: "Basic";
1912
+ username: string | (() => string | undefined) | undefined;
1913
+ password: string | (() => string | undefined) | undefined;
1914
+ } | {
1915
+ type: "Custom";
1916
+ prefix: string | (() => string | undefined) | undefined;
1917
+ value: string | (() => string | undefined) | undefined;
1918
+ }) | undefined;
1919
+ body?: undefined;
1920
+ query?: Record<string, any> | undefined;
1921
+ params?: Record<string, any> | undefined;
1922
+ duplex?: "full" | "half" | undefined;
1923
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1924
+ retry?: import('better-auth/react').RetryOptions | undefined;
1925
+ retryAttempt?: number | undefined;
1926
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1927
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
1928
+ disableValidation?: boolean | undefined;
1929
+ } | undefined;
1930
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
1931
+ status: boolean;
1932
+ }, {
1933
+ code?: string;
1934
+ message?: string;
1935
+ }, FetchOptions["throw"] extends true ? true : false>>;
1936
+ } & {
1937
+ removeMember: <FetchOptions extends {
1938
+ headers?: (HeadersInit & (HeadersInit | {
1939
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1940
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1941
+ authorization: "Bearer" | "Basic";
1942
+ })) | undefined;
1943
+ method?: string | undefined;
1944
+ cache?: RequestCache | undefined;
1945
+ credentials?: RequestCredentials | undefined;
1946
+ integrity?: string | undefined;
1947
+ keepalive?: boolean | undefined;
1948
+ mode?: RequestMode | undefined;
1949
+ priority?: RequestPriority | undefined;
1950
+ redirect?: RequestRedirect | undefined;
1951
+ referrer?: string | undefined;
1952
+ referrerPolicy?: ReferrerPolicy | undefined;
1953
+ signal?: (AbortSignal | null) | undefined;
1954
+ window?: null | undefined;
1955
+ next?: NextFetchRequestConfig | undefined;
1956
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
1957
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
1958
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
1959
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
1960
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
1961
+ hookOptions?: {
1962
+ cloneResponse?: boolean;
1963
+ } | undefined;
1964
+ timeout?: number | undefined;
1965
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
1966
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
1967
+ baseURL?: string | undefined;
1968
+ throw?: boolean | undefined;
1969
+ auth?: ({
1970
+ type: "Bearer";
1971
+ token: string | (() => string | undefined) | undefined;
1972
+ } | {
1973
+ type: "Basic";
1974
+ username: string | (() => string | undefined) | undefined;
1975
+ password: string | (() => string | undefined) | undefined;
1976
+ } | {
1977
+ type: "Custom";
1978
+ prefix: string | (() => string | undefined) | undefined;
1979
+ value: string | (() => string | undefined) | undefined;
1980
+ }) | undefined;
1981
+ body?: (Partial<{
1982
+ memberIdOrEmail: string;
1983
+ organizationId?: string | undefined;
1984
+ }> & Record<string, any>) | undefined;
1985
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1986
+ params?: Record<string, any> | undefined;
1987
+ duplex?: "full" | "half" | undefined;
1988
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1989
+ retry?: import('better-auth/react').RetryOptions | undefined;
1990
+ retryAttempt?: number | undefined;
1991
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1992
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
1993
+ disableValidation?: boolean | undefined;
1994
+ }>(data_0: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
1995
+ memberIdOrEmail: string;
1996
+ organizationId?: string | undefined;
1997
+ } & {
1998
+ fetchOptions?: {
1999
+ headers?: (HeadersInit & (HeadersInit | {
2000
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2001
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2002
+ authorization: "Bearer" | "Basic";
2003
+ })) | undefined;
2004
+ method?: string | undefined;
2005
+ cache?: RequestCache | undefined;
2006
+ credentials?: RequestCredentials | undefined;
2007
+ integrity?: string | undefined;
2008
+ keepalive?: boolean | undefined;
2009
+ mode?: RequestMode | undefined;
2010
+ priority?: RequestPriority | undefined;
2011
+ redirect?: RequestRedirect | undefined;
2012
+ referrer?: string | undefined;
2013
+ referrerPolicy?: ReferrerPolicy | undefined;
2014
+ signal?: (AbortSignal | null) | undefined;
2015
+ window?: null | undefined;
2016
+ next?: NextFetchRequestConfig | undefined;
2017
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
2018
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
2019
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
2020
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
2021
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
2022
+ hookOptions?: {
2023
+ cloneResponse?: boolean;
2024
+ } | undefined;
2025
+ timeout?: number | undefined;
2026
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
2027
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
2028
+ baseURL?: string | undefined;
2029
+ throw?: boolean | undefined;
2030
+ auth?: ({
2031
+ type: "Bearer";
2032
+ token: string | (() => string | undefined) | undefined;
2033
+ } | {
2034
+ type: "Basic";
2035
+ username: string | (() => string | undefined) | undefined;
2036
+ password: string | (() => string | undefined) | undefined;
2037
+ } | {
2038
+ type: "Custom";
2039
+ prefix: string | (() => string | undefined) | undefined;
2040
+ value: string | (() => string | undefined) | undefined;
2041
+ }) | undefined;
2042
+ body?: undefined;
2043
+ query?: Record<string, any> | undefined;
2044
+ params?: Record<string, any> | undefined;
2045
+ duplex?: "full" | "half" | undefined;
2046
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2047
+ retry?: import('better-auth/react').RetryOptions | undefined;
2048
+ retryAttempt?: number | undefined;
2049
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2050
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
2051
+ disableValidation?: boolean | undefined;
2052
+ } | undefined;
2053
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
2054
+ member: {
2055
+ id: string;
2056
+ createdAt: Date;
2057
+ userId: string;
2058
+ organizationId: string;
2059
+ role: string;
2060
+ teamId?: string | undefined;
2061
+ };
2062
+ }, {
2063
+ code?: string;
2064
+ message?: string;
2065
+ }, FetchOptions["throw"] extends true ? true : false>>;
2066
+ } & {
2067
+ updateMemberRole: <FetchOptions extends {
2068
+ headers?: (HeadersInit & (HeadersInit | {
2069
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2070
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2071
+ authorization: "Bearer" | "Basic";
2072
+ })) | undefined;
2073
+ method?: string | undefined;
2074
+ cache?: RequestCache | undefined;
2075
+ credentials?: RequestCredentials | undefined;
2076
+ integrity?: string | undefined;
2077
+ keepalive?: boolean | undefined;
2078
+ mode?: RequestMode | undefined;
2079
+ priority?: RequestPriority | undefined;
2080
+ redirect?: RequestRedirect | undefined;
2081
+ referrer?: string | undefined;
2082
+ referrerPolicy?: ReferrerPolicy | undefined;
2083
+ signal?: (AbortSignal | null) | undefined;
2084
+ window?: null | undefined;
2085
+ next?: NextFetchRequestConfig | undefined;
2086
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
2087
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
2088
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
2089
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
2090
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
2091
+ hookOptions?: {
2092
+ cloneResponse?: boolean;
2093
+ } | undefined;
2094
+ timeout?: number | undefined;
2095
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
2096
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
2097
+ baseURL?: string | undefined;
2098
+ throw?: boolean | undefined;
2099
+ auth?: ({
2100
+ type: "Bearer";
2101
+ token: string | (() => string | undefined) | undefined;
2102
+ } | {
2103
+ type: "Basic";
2104
+ username: string | (() => string | undefined) | undefined;
2105
+ password: string | (() => string | undefined) | undefined;
2106
+ } | {
2107
+ type: "Custom";
2108
+ prefix: string | (() => string | undefined) | undefined;
2109
+ value: string | (() => string | undefined) | undefined;
2110
+ }) | undefined;
2111
+ body?: (Partial<{
2112
+ role: "member" | "admin" | "owner" | ("member" | "admin" | "owner")[];
2113
+ memberId: string;
2114
+ organizationId?: string;
2115
+ }> & Record<string, any>) | undefined;
2116
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2117
+ params?: Record<string, any> | undefined;
2118
+ duplex?: "full" | "half" | undefined;
2119
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2120
+ retry?: import('better-auth/react').RetryOptions | undefined;
2121
+ retryAttempt?: number | undefined;
2122
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2123
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
2124
+ disableValidation?: boolean | undefined;
2125
+ }>(data_0: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
2126
+ role: "member" | "admin" | "owner" | ("member" | "admin" | "owner")[];
2127
+ memberId: string;
2128
+ organizationId?: string;
2129
+ } & {
2130
+ fetchOptions?: {
2131
+ headers?: (HeadersInit & (HeadersInit | {
2132
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2133
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2134
+ authorization: "Bearer" | "Basic";
2135
+ })) | undefined;
2136
+ method?: string | undefined;
2137
+ cache?: RequestCache | undefined;
2138
+ credentials?: RequestCredentials | undefined;
2139
+ integrity?: string | undefined;
2140
+ keepalive?: boolean | undefined;
2141
+ mode?: RequestMode | undefined;
2142
+ priority?: RequestPriority | undefined;
2143
+ redirect?: RequestRedirect | undefined;
2144
+ referrer?: string | undefined;
2145
+ referrerPolicy?: ReferrerPolicy | undefined;
2146
+ signal?: (AbortSignal | null) | undefined;
2147
+ window?: null | undefined;
2148
+ next?: NextFetchRequestConfig | undefined;
2149
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
2150
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
2151
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
2152
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
2153
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
2154
+ hookOptions?: {
2155
+ cloneResponse?: boolean;
2156
+ } | undefined;
2157
+ timeout?: number | undefined;
2158
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
2159
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
2160
+ baseURL?: string | undefined;
2161
+ throw?: boolean | undefined;
2162
+ auth?: ({
2163
+ type: "Bearer";
2164
+ token: string | (() => string | undefined) | undefined;
2165
+ } | {
2166
+ type: "Basic";
2167
+ username: string | (() => string | undefined) | undefined;
2168
+ password: string | (() => string | undefined) | undefined;
2169
+ } | {
2170
+ type: "Custom";
2171
+ prefix: string | (() => string | undefined) | undefined;
2172
+ value: string | (() => string | undefined) | undefined;
2173
+ }) | undefined;
2174
+ body?: undefined;
2175
+ query?: Record<string, any> | undefined;
2176
+ params?: Record<string, any> | undefined;
2177
+ duplex?: "full" | "half" | undefined;
2178
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2179
+ retry?: import('better-auth/react').RetryOptions | undefined;
2180
+ retryAttempt?: number | undefined;
2181
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2182
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
2183
+ disableValidation?: boolean | undefined;
2184
+ } | undefined;
2185
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
2186
+ id: string;
2187
+ createdAt: Date;
2188
+ userId: string;
2189
+ organizationId: string;
2190
+ role: string;
2191
+ teamId?: string | undefined;
2192
+ }, {
2193
+ code?: string;
2194
+ message?: string;
2195
+ }, FetchOptions["throw"] extends true ? true : false>>;
2196
+ } & {
2197
+ getActiveMember: <FetchOptions extends {
2198
+ headers?: (HeadersInit & (HeadersInit | {
2199
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2200
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2201
+ authorization: "Bearer" | "Basic";
2202
+ })) | undefined;
2203
+ method?: string | undefined;
2204
+ cache?: RequestCache | undefined;
2205
+ credentials?: RequestCredentials | undefined;
2206
+ integrity?: string | undefined;
2207
+ keepalive?: boolean | undefined;
2208
+ mode?: RequestMode | undefined;
2209
+ priority?: RequestPriority | undefined;
2210
+ redirect?: RequestRedirect | undefined;
2211
+ referrer?: string | undefined;
2212
+ referrerPolicy?: ReferrerPolicy | undefined;
2213
+ signal?: (AbortSignal | null) | undefined;
2214
+ window?: null | undefined;
2215
+ next?: NextFetchRequestConfig | undefined;
2216
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
2217
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
2218
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
2219
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
2220
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
2221
+ hookOptions?: {
2222
+ cloneResponse?: boolean;
2223
+ } | undefined;
2224
+ timeout?: number | undefined;
2225
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
2226
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
2227
+ baseURL?: string | undefined;
2228
+ throw?: boolean | undefined;
2229
+ auth?: ({
2230
+ type: "Bearer";
2231
+ token: string | (() => string | undefined) | undefined;
2232
+ } | {
2233
+ type: "Basic";
2234
+ username: string | (() => string | undefined) | undefined;
2235
+ password: string | (() => string | undefined) | undefined;
2236
+ } | {
2237
+ type: "Custom";
2238
+ prefix: string | (() => string | undefined) | undefined;
2239
+ value: string | (() => string | undefined) | undefined;
2240
+ }) | undefined;
2241
+ body?: undefined;
2242
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2243
+ params?: Record<string, any> | undefined;
2244
+ duplex?: "full" | "half" | undefined;
2245
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2246
+ retry?: import('better-auth/react').RetryOptions | undefined;
2247
+ retryAttempt?: number | undefined;
2248
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2249
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
2250
+ disableValidation?: boolean | undefined;
2251
+ }>(data_0?: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
2252
+ query?: Record<string, any> | undefined;
2253
+ fetchOptions?: FetchOptions | undefined;
2254
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
2255
+ user: {
2256
+ id: string;
2257
+ name: string;
2258
+ email: string;
2259
+ image: string | null | undefined;
2260
+ };
2261
+ id: string;
2262
+ createdAt: Date;
2263
+ userId: string;
2264
+ organizationId: string;
2265
+ role: string;
2266
+ teamId?: string | undefined;
2267
+ }, {
2268
+ code?: string;
2269
+ message?: string;
2270
+ }, FetchOptions["throw"] extends true ? true : false>>;
2271
+ } & {
2272
+ leave: <FetchOptions extends {
2273
+ headers?: (HeadersInit & (HeadersInit | {
2274
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2275
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2276
+ authorization: "Bearer" | "Basic";
2277
+ })) | undefined;
2278
+ method?: string | undefined;
2279
+ cache?: RequestCache | undefined;
2280
+ credentials?: RequestCredentials | undefined;
2281
+ integrity?: string | undefined;
2282
+ keepalive?: boolean | undefined;
2283
+ mode?: RequestMode | undefined;
2284
+ priority?: RequestPriority | undefined;
2285
+ redirect?: RequestRedirect | undefined;
2286
+ referrer?: string | undefined;
2287
+ referrerPolicy?: ReferrerPolicy | undefined;
2288
+ signal?: (AbortSignal | null) | undefined;
2289
+ window?: null | undefined;
2290
+ next?: NextFetchRequestConfig | undefined;
2291
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
2292
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
2293
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
2294
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
2295
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
2296
+ hookOptions?: {
2297
+ cloneResponse?: boolean;
2298
+ } | undefined;
2299
+ timeout?: number | undefined;
2300
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
2301
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
2302
+ baseURL?: string | undefined;
2303
+ throw?: boolean | undefined;
2304
+ auth?: ({
2305
+ type: "Bearer";
2306
+ token: string | (() => string | undefined) | undefined;
2307
+ } | {
2308
+ type: "Basic";
2309
+ username: string | (() => string | undefined) | undefined;
2310
+ password: string | (() => string | undefined) | undefined;
2311
+ } | {
2312
+ type: "Custom";
2313
+ prefix: string | (() => string | undefined) | undefined;
2314
+ value: string | (() => string | undefined) | undefined;
2315
+ }) | undefined;
2316
+ body?: (Partial<{
2317
+ organizationId: string;
2318
+ }> & Record<string, any>) | undefined;
2319
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2320
+ params?: Record<string, any> | undefined;
2321
+ duplex?: "full" | "half" | undefined;
2322
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2323
+ retry?: import('better-auth/react').RetryOptions | undefined;
2324
+ retryAttempt?: number | undefined;
2325
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2326
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
2327
+ disableValidation?: boolean | undefined;
2328
+ }>(data_0: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
2329
+ organizationId: string;
2330
+ } & {
2331
+ fetchOptions?: {
2332
+ headers?: (HeadersInit & (HeadersInit | {
2333
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2334
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2335
+ authorization: "Bearer" | "Basic";
2336
+ })) | undefined;
2337
+ method?: string | undefined;
2338
+ cache?: RequestCache | undefined;
2339
+ credentials?: RequestCredentials | undefined;
2340
+ integrity?: string | undefined;
2341
+ keepalive?: boolean | undefined;
2342
+ mode?: RequestMode | undefined;
2343
+ priority?: RequestPriority | undefined;
2344
+ redirect?: RequestRedirect | undefined;
2345
+ referrer?: string | undefined;
2346
+ referrerPolicy?: ReferrerPolicy | undefined;
2347
+ signal?: (AbortSignal | null) | undefined;
2348
+ window?: null | undefined;
2349
+ next?: NextFetchRequestConfig | undefined;
2350
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
2351
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
2352
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
2353
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
2354
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
2355
+ hookOptions?: {
2356
+ cloneResponse?: boolean;
2357
+ } | undefined;
2358
+ timeout?: number | undefined;
2359
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
2360
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
2361
+ baseURL?: string | undefined;
2362
+ throw?: boolean | undefined;
2363
+ auth?: ({
2364
+ type: "Bearer";
2365
+ token: string | (() => string | undefined) | undefined;
2366
+ } | {
2367
+ type: "Basic";
2368
+ username: string | (() => string | undefined) | undefined;
2369
+ password: string | (() => string | undefined) | undefined;
2370
+ } | {
2371
+ type: "Custom";
2372
+ prefix: string | (() => string | undefined) | undefined;
2373
+ value: string | (() => string | undefined) | undefined;
2374
+ }) | undefined;
2375
+ body?: undefined;
2376
+ query?: Record<string, any> | undefined;
2377
+ params?: Record<string, any> | undefined;
2378
+ duplex?: "full" | "half" | undefined;
2379
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2380
+ retry?: import('better-auth/react').RetryOptions | undefined;
2381
+ retryAttempt?: number | undefined;
2382
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2383
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
2384
+ disableValidation?: boolean | undefined;
2385
+ } | undefined;
2386
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
2387
+ user: {
2388
+ id: string;
2389
+ name: string;
2390
+ email: string;
2391
+ image: string | null | undefined;
2392
+ };
2393
+ id: string;
2394
+ createdAt: Date;
2395
+ userId: string;
2396
+ organizationId: string;
2397
+ role: string;
2398
+ teamId?: string | undefined;
2399
+ }, {
2400
+ code?: string;
2401
+ message?: string;
2402
+ }, FetchOptions["throw"] extends true ? true : false>>;
2403
+ } & {
2404
+ hasPermission: <FetchOptions extends {
2405
+ headers?: (HeadersInit & (HeadersInit | {
2406
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2407
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2408
+ authorization: "Bearer" | "Basic";
2409
+ })) | undefined;
2410
+ method?: string | undefined;
2411
+ cache?: RequestCache | undefined;
2412
+ credentials?: RequestCredentials | undefined;
2413
+ integrity?: string | undefined;
2414
+ keepalive?: boolean | undefined;
2415
+ mode?: RequestMode | undefined;
2416
+ priority?: RequestPriority | undefined;
2417
+ redirect?: RequestRedirect | undefined;
2418
+ referrer?: string | undefined;
2419
+ referrerPolicy?: ReferrerPolicy | undefined;
2420
+ signal?: (AbortSignal | null) | undefined;
2421
+ window?: null | undefined;
2422
+ next?: NextFetchRequestConfig | undefined;
2423
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
2424
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
2425
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
2426
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
2427
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
2428
+ hookOptions?: {
2429
+ cloneResponse?: boolean;
2430
+ } | undefined;
2431
+ timeout?: number | undefined;
2432
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
2433
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
2434
+ baseURL?: string | undefined;
2435
+ throw?: boolean | undefined;
2436
+ auth?: ({
2437
+ type: "Bearer";
2438
+ token: string | (() => string | undefined) | undefined;
2439
+ } | {
2440
+ type: "Basic";
2441
+ username: string | (() => string | undefined) | undefined;
2442
+ password: string | (() => string | undefined) | undefined;
2443
+ } | {
2444
+ type: "Custom";
2445
+ prefix: string | (() => string | undefined) | undefined;
2446
+ value: string | (() => string | undefined) | undefined;
2447
+ }) | undefined;
2448
+ body?: (Partial<{
2449
+ permission: {
2450
+ readonly organization?: ("delete" | "update")[] | undefined;
2451
+ readonly member?: ("delete" | "update" | "create")[] | undefined;
2452
+ readonly invitation?: ("cancel" | "create")[] | undefined;
2453
+ readonly team?: ("delete" | "update" | "create")[] | undefined;
2454
+ };
2455
+ organizationId?: string;
2456
+ }> & Record<string, any>) | undefined;
2457
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2458
+ params?: Record<string, any> | undefined;
2459
+ duplex?: "full" | "half" | undefined;
2460
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2461
+ retry?: import('better-auth/react').RetryOptions | undefined;
2462
+ retryAttempt?: number | undefined;
2463
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2464
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
2465
+ disableValidation?: boolean | undefined;
2466
+ }>(data_0: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
2467
+ permission: {
2468
+ readonly organization?: ("delete" | "update")[] | undefined;
2469
+ readonly member?: ("delete" | "update" | "create")[] | undefined;
2470
+ readonly invitation?: ("cancel" | "create")[] | undefined;
2471
+ readonly team?: ("delete" | "update" | "create")[] | undefined;
2472
+ };
2473
+ organizationId?: string;
2474
+ } & {
2475
+ fetchOptions?: {
2476
+ headers?: (HeadersInit & (HeadersInit | {
2477
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2478
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2479
+ authorization: "Bearer" | "Basic";
2480
+ })) | undefined;
2481
+ method?: string | undefined;
2482
+ cache?: RequestCache | undefined;
2483
+ credentials?: RequestCredentials | undefined;
2484
+ integrity?: string | undefined;
2485
+ keepalive?: boolean | undefined;
2486
+ mode?: RequestMode | undefined;
2487
+ priority?: RequestPriority | undefined;
2488
+ redirect?: RequestRedirect | undefined;
2489
+ referrer?: string | undefined;
2490
+ referrerPolicy?: ReferrerPolicy | undefined;
2491
+ signal?: (AbortSignal | null) | undefined;
2492
+ window?: null | undefined;
2493
+ next?: NextFetchRequestConfig | undefined;
2494
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
2495
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
2496
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
2497
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
2498
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
2499
+ hookOptions?: {
2500
+ cloneResponse?: boolean;
2501
+ } | undefined;
2502
+ timeout?: number | undefined;
2503
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
2504
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
2505
+ baseURL?: string | undefined;
2506
+ throw?: boolean | undefined;
2507
+ auth?: ({
2508
+ type: "Bearer";
2509
+ token: string | (() => string | undefined) | undefined;
2510
+ } | {
2511
+ type: "Basic";
2512
+ username: string | (() => string | undefined) | undefined;
2513
+ password: string | (() => string | undefined) | undefined;
2514
+ } | {
2515
+ type: "Custom";
2516
+ prefix: string | (() => string | undefined) | undefined;
2517
+ value: string | (() => string | undefined) | undefined;
2518
+ }) | undefined;
2519
+ body?: undefined;
2520
+ query?: Record<string, any> | undefined;
2521
+ params?: Record<string, any> | undefined;
2522
+ duplex?: "full" | "half" | undefined;
2523
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2524
+ retry?: import('better-auth/react').RetryOptions | undefined;
2525
+ retryAttempt?: number | undefined;
2526
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2527
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
2528
+ disableValidation?: boolean | undefined;
2529
+ } | undefined;
2530
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
2531
+ error: null;
2532
+ success: boolean;
2533
+ }, {
2534
+ code?: string;
2535
+ message?: string;
2536
+ }, FetchOptions["throw"] extends true ? true : false>>;
2537
+ } & {
2538
+ checkRolePermission: <R extends "member" | "admin" | "owner">(data: {
2539
+ role: R;
2540
+ permission: {
2541
+ readonly organization?: ("delete" | "update")[] | undefined;
2542
+ readonly member?: ("delete" | "update" | "create")[] | undefined;
2543
+ readonly invitation?: ("cancel" | "create")[] | undefined;
2544
+ readonly team?: ("delete" | "update" | "create")[] | undefined;
2545
+ };
2546
+ }) => boolean;
2547
+ }, getSession: <FetchOptions extends {
2548
+ headers?: (HeadersInit & (HeadersInit | {
2549
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2550
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2551
+ authorization: "Bearer" | "Basic";
2552
+ })) | undefined;
2553
+ method?: string | undefined;
2554
+ cache?: RequestCache | undefined;
2555
+ credentials?: RequestCredentials | undefined;
2556
+ integrity?: string | undefined;
2557
+ keepalive?: boolean | undefined;
2558
+ mode?: RequestMode | undefined;
2559
+ priority?: RequestPriority | undefined;
2560
+ redirect?: RequestRedirect | undefined;
2561
+ referrer?: string | undefined;
2562
+ referrerPolicy?: ReferrerPolicy | undefined;
2563
+ signal?: (AbortSignal | null) | undefined;
2564
+ window?: null | undefined;
2565
+ next?: NextFetchRequestConfig | undefined;
2566
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/react').RequestContext<T>) => Promise<import('better-auth/react').RequestContext | void> | import('better-auth/react').RequestContext | void) | undefined;
2567
+ onResponse?: ((context: import('better-auth/react').ResponseContext) => Promise<Response | void | import('better-auth/react').ResponseContext> | Response | import('better-auth/react').ResponseContext | void) | undefined;
2568
+ onSuccess?: ((context: import('better-auth/react').SuccessContext<any>) => Promise<void> | void) | undefined;
2569
+ onError?: ((context: import('better-auth/react').ErrorContext) => Promise<void> | void) | undefined;
2570
+ onRetry?: ((response: import('better-auth/react').ResponseContext) => Promise<void> | void) | undefined;
2571
+ hookOptions?: {
2572
+ cloneResponse?: boolean;
2573
+ } | undefined;
2574
+ timeout?: number | undefined;
2575
+ customFetchImpl?: import('better-auth/react').FetchEsque | undefined;
2576
+ plugins?: import('better-auth/react').BetterFetchPlugin[] | undefined;
2577
+ baseURL?: string | undefined;
2578
+ throw?: boolean | undefined;
2579
+ auth?: ({
2580
+ type: "Bearer";
2581
+ token: string | (() => string | undefined) | undefined;
2582
+ } | {
2583
+ type: "Basic";
2584
+ username: string | (() => string | undefined) | undefined;
2585
+ password: string | (() => string | undefined) | undefined;
2586
+ } | {
2587
+ type: "Custom";
2588
+ prefix: string | (() => string | undefined) | undefined;
2589
+ value: string | (() => string | undefined) | undefined;
2590
+ }) | undefined;
2591
+ body?: undefined;
2592
+ query?: (Partial<{
2593
+ disableCookieCache?: string | boolean | undefined;
2594
+ disableRefresh?: string | boolean | undefined;
2595
+ }> & Record<string, any>) | undefined;
2596
+ params?: Record<string, any> | undefined;
2597
+ duplex?: "full" | "half" | undefined;
2598
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2599
+ retry?: import('better-auth/react').RetryOptions | undefined;
2600
+ retryAttempt?: number | undefined;
2601
+ output?: (import('better-auth/react').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2602
+ errorSchema?: import('better-auth/react').StandardSchemaV1 | undefined;
2603
+ disableValidation?: boolean | undefined;
2604
+ }>(data_0?: import('better-auth/dist/shared/better-auth.Bi8FQwDD').b<{
2605
+ query?: {
2606
+ disableCookieCache?: string | boolean | undefined;
2607
+ disableRefresh?: string | boolean | undefined;
2608
+ } | undefined;
2609
+ fetchOptions?: FetchOptions | undefined;
2610
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/react').BetterFetchResponse<{
2611
+ user: {
2612
+ id: string;
2613
+ name: string;
2614
+ email: string;
2615
+ emailVerified: boolean;
2616
+ createdAt: Date;
2617
+ updatedAt: Date;
2618
+ image?: string | null | undefined | undefined;
2619
+ firstname: string;
2620
+ lastname: string;
2621
+ };
2622
+ session: {
2623
+ id: string;
2624
+ createdAt: Date;
2625
+ updatedAt: Date;
2626
+ userId: string;
2627
+ expiresAt: Date;
2628
+ token: string;
2629
+ ipAddress?: string | null | undefined | undefined;
2630
+ userAgent?: string | null | undefined | undefined;
2631
+ activeOrganizationId?: string | null | undefined;
2632
+ };
2633
+ }, {
2634
+ code?: string;
2635
+ message?: string;
2636
+ }, FetchOptions["throw"] extends true ? true : false>>, useListOrganizations: () => {
2637
+ data: import('better-auth/dist/shared/better-auth.Dxn5Xplu').b[] | null;
2638
+ error: null | import('better-auth/react').BetterFetchError;
2639
+ isPending: boolean;
2640
+ isRefetching: boolean;
2641
+ refetch: () => void;
2642
+ };