wcz-test 6.7.7 → 6.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ApprovalStatus-C9HPyMiS.js +24 -0
- package/dist/ApprovalStatus-C9HPyMiS.js.map +1 -0
- package/dist/{chunk-4UULRYGW.js → DialogsHooks-BlUsVlfv.js} +7 -14
- package/dist/DialogsHooks-BlUsVlfv.js.map +1 -0
- package/dist/{chunk-MIVD2XWB.js → FileHooks-hWKTwLCr.js} +36 -46
- package/dist/FileHooks-hWKTwLCr.js.map +1 -0
- package/dist/{chunk-TME53DAF.js → FileMeta-G1oT3mYK.js} +3 -5
- package/dist/FileMeta-G1oT3mYK.js.map +1 -0
- package/dist/{chunk-ZMWQQXZT.js → RouterListItemButton-Cx7rXEfm.js} +6 -8
- package/dist/RouterListItemButton-Cx7rXEfm.js.map +1 -0
- package/dist/android-chrome-192x192.png +0 -0
- package/dist/android-chrome-512x512.png +0 -0
- package/dist/apple-touch-icon.png +0 -0
- package/dist/auth-client-D9snEe6B.js +79 -0
- package/dist/auth-client-D9snEe6B.js.map +1 -0
- package/dist/client-utils.d.ts +3 -702
- package/dist/client-utils.js +7 -17
- package/dist/client-utils.js.map +1 -1
- package/dist/components/core/AppTitle.d.ts +2 -0
- package/dist/components/core/Fullscreen.d.ts +3 -0
- package/dist/components/core/Layout.d.ts +8 -0
- package/dist/components/core/ToolbarAccount.d.ts +2 -0
- package/dist/components/core/TypographyWithIcon.d.ts +7 -0
- package/dist/components/core/navigation/NavigationList.d.ts +22 -0
- package/dist/components/core/navigation/NavigationListItem.d.ts +16 -0
- package/dist/components/core/navigation/NavigationRail.d.ts +12 -0
- package/dist/components/data-grid/ChipInputCell.d.ts +9 -0
- package/dist/components/data-grid/EditableColumnHeader.d.ts +2 -0
- package/dist/components/file/Dropzone.d.ts +8 -0
- package/dist/components/file/FileViewer.d.ts +20 -0
- package/dist/components/file/fileViewer/FileViewerGrid.d.ts +17 -0
- package/dist/components/file/fileViewer/FileViewerList.d.ts +12 -0
- package/dist/components/file/fileViewer/ImageViewer.d.ts +6 -0
- package/dist/components/file/fileViewer/common/ActionsMenu.d.ts +15 -0
- package/dist/components/form/FormAutocomplete.d.ts +7 -0
- package/dist/components/form/FormCheckbox.d.ts +7 -0
- package/dist/components/form/FormDatePicker.d.ts +8 -0
- package/dist/components/form/FormDateRangePicker.d.ts +8 -0
- package/dist/components/form/FormDateTimePicker.d.ts +8 -0
- package/dist/components/form/FormDateTimeRangePicker.d.ts +8 -0
- package/dist/components/form/FormNumberField.d.ts +9 -0
- package/dist/components/form/FormRadioGroup.d.ts +13 -0
- package/dist/components/form/FormSlider.d.ts +7 -0
- package/dist/components/form/FormSubmitButton.d.ts +4 -0
- package/dist/components/form/FormSwitch.d.ts +7 -0
- package/dist/components/form/FormTextField.d.ts +7 -0
- package/dist/components/form/FormTimePicker.d.ts +8 -0
- package/dist/components/form/FormTimeRangePicker.d.ts +8 -0
- package/dist/components/router/RouterButton.d.ts +6 -0
- package/dist/components/router/RouterError.d.ts +7 -0
- package/dist/components/router/RouterGridActionsCellItem.d.ts +6 -0
- package/dist/components/router/RouterIconButton.d.ts +6 -0
- package/dist/components/router/RouterLink.d.ts +6 -0
- package/dist/components/router/RouterListItemButton.d.ts +6 -0
- package/dist/components/router/RouterNotFound.d.ts +1 -0
- package/dist/components/router/RouterTab.d.ts +6 -0
- package/dist/components.d.ts +14 -89
- package/dist/components.js +124 -227
- package/dist/components.js.map +1 -1
- package/dist/contexts/DialogsContext.d.ts +6 -0
- package/dist/contexts/FileContext.d.ts +13 -0
- package/dist/env-CoxTjaDr.js +27 -0
- package/dist/env-CoxTjaDr.js.map +1 -0
- package/dist/env.d.ts +10 -0
- package/dist/favicon-16x16.png +0 -0
- package/dist/favicon-32x32.png +0 -0
- package/dist/favicon.ico +0 -0
- package/dist/favicon.png +0 -0
- package/dist/hooks/DialogsHooks.d.ts +42 -0
- package/dist/hooks/FormHooks.d.ts +52 -0
- package/dist/hooks/ThemeHook.d.ts +4 -0
- package/dist/hooks.d.ts +3 -159
- package/dist/hooks.js +56 -121
- package/dist/hooks.js.map +1 -1
- package/dist/index.d.ts +3 -36
- package/dist/index.js +173 -1882
- package/dist/index.js.map +1 -1
- package/dist/{client-utils.d.cts → lib/auth/auth-client.d.ts} +110 -126
- package/dist/lib/auth/auth.d.ts +24 -0
- package/dist/lib/db/index.d.ts +4 -0
- package/dist/lib/db/schemas/auth.d.ts +606 -0
- package/dist/{utils-ChipkRJ9.d.ts → lib/utils.d.ts} +11 -10
- package/dist/lib/vite-plugin.d.ts +2 -0
- package/dist/manifest.webmanifest +18 -0
- package/dist/models/Navigation.d.ts +18 -0
- package/dist/models/User.d.ts +8 -0
- package/dist/models/approval/Approval.d.ts +177 -0
- package/dist/models/approval/ApprovalEmployee.d.ts +7 -0
- package/dist/models/approval/ApprovalFlow.d.ts +49 -0
- package/dist/models/approval/ApprovalFlowStep.d.ts +29 -0
- package/dist/models/approval/ApprovalRequestType.d.ts +5 -0
- package/dist/models/approval/ApprovalStatus.d.ts +9 -0
- package/dist/models/approval/ApprovalStepResult.d.ts +11 -0
- package/dist/models/approval/StepApprovalOrder.d.ts +6 -0
- package/dist/models/email/Email.d.ts +13 -0
- package/dist/models/email/EmailAttachment.d.ts +6 -0
- package/dist/models/file/FileActions.d.ts +6 -0
- package/dist/{FileMeta-CC014fnB.d.cts → models/file/FileMeta.d.ts} +3 -6
- package/dist/models/peoplesoft/Department.d.ts +58 -0
- package/dist/models/peoplesoft/Employee.d.ts +46 -0
- package/dist/models/peoplesoft/EmployeeCategoryGroup.d.ts +6 -0
- package/dist/models/peoplesoft/EmployeeStatus.d.ts +6 -0
- package/dist/models.d.ts +25 -161
- package/dist/models.js +109 -160
- package/dist/models.js.map +1 -1
- package/dist/providers/DialogsProvider.d.ts +6 -0
- package/dist/providers/LayoutProvider.d.ts +11 -0
- package/dist/queries/Approval.d.ts +585 -0
- package/dist/queries/ApprovalHooks.d.ts +315 -0
- package/dist/queries/FileHooks.d.ts +151 -0
- package/dist/queries/PeopleSoftHooks.d.ts +537 -0
- package/dist/queries.d.ts +4 -1585
- package/dist/queries.js +59 -86
- package/dist/queries.js.map +1 -1
- package/dist/robots.txt +3 -0
- package/dist/server-utils.d.ts +2 -35
- package/dist/server-utils.js +13 -26
- package/dist/server-utils.js.map +1 -1
- package/dist/{chunk-2ROTNT7W.js → utils-DKyKGba7.js} +13 -18
- package/dist/utils-DKyKGba7.js.map +1 -0
- package/dist/utils.d.ts +1 -2
- package/dist/utils.js +3 -9
- package/dist/utils.js.map +1 -1
- package/dist/vite.d.ts +1 -5
- package/dist/vite.js +3 -6
- package/dist/vite.js.map +1 -1
- package/package.json +15 -23
- package/dist/Approval-CWQn-kah.d.cts +0 -284
- package/dist/Approval-CWQn-kah.d.ts +0 -284
- package/dist/FileMeta-CC014fnB.d.ts +0 -18
- package/dist/chunk-2ROTNT7W.js.map +0 -1
- package/dist/chunk-4FRZRIAO.js +0 -29
- package/dist/chunk-4FRZRIAO.js.map +0 -1
- package/dist/chunk-4UULRYGW.js.map +0 -1
- package/dist/chunk-5WRI5ZAA.js +0 -31
- package/dist/chunk-5WRI5ZAA.js.map +0 -1
- package/dist/chunk-CNDRHYQK.js +0 -883
- package/dist/chunk-CNDRHYQK.js.map +0 -1
- package/dist/chunk-DXXZZHAK.js +0 -28
- package/dist/chunk-DXXZZHAK.js.map +0 -1
- package/dist/chunk-MIVD2XWB.js.map +0 -1
- package/dist/chunk-TME53DAF.js.map +0 -1
- package/dist/chunk-ZMWQQXZT.js.map +0 -1
- package/dist/client-utils.cjs +0 -118
- package/dist/client-utils.cjs.map +0 -1
- package/dist/components.cjs +0 -802
- package/dist/components.cjs.map +0 -1
- package/dist/components.d.cts +0 -89
- package/dist/hooks.cjs +0 -534
- package/dist/hooks.cjs.map +0 -1
- package/dist/hooks.d.cts +0 -160
- package/dist/index.cjs +0 -3373
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -36
- package/dist/models.cjs +0 -330
- package/dist/models.cjs.map +0 -1
- package/dist/models.d.cts +0 -161
- package/dist/queries.cjs +0 -706
- package/dist/queries.cjs.map +0 -1
- package/dist/queries.d.cts +0 -1585
- package/dist/server-utils.cjs +0 -145
- package/dist/server-utils.cjs.map +0 -1
- package/dist/server-utils.d.cts +0 -36
- package/dist/utils-ChipkRJ9.d.cts +0 -49
- package/dist/utils.cjs +0 -81
- package/dist/utils.cjs.map +0 -1
- package/dist/utils.d.cts +0 -4
- package/dist/vite.cjs +0 -94
- package/dist/vite.cjs.map +0 -1
- package/dist/vite.d.cts +0 -5
|
@@ -1,21 +1,7 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { t } from 'i18next';
|
|
3
|
-
export { useTranslation } from 'react-i18next';
|
|
4
|
-
import * as nanostores from 'nanostores';
|
|
5
|
-
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
6
|
-
import * as better_auth_react from 'better-auth/react';
|
|
7
|
-
import * as better_auth from 'better-auth';
|
|
8
|
-
import 'axios';
|
|
9
|
-
import 'uuidv7';
|
|
10
|
-
import '@t3-oss/env-core';
|
|
11
|
-
|
|
12
|
-
declare const WISTRON_PRIMARY_COLOR = "#00506E";
|
|
13
|
-
declare const WISTRON_SECONDARY_COLOR = "#64DC00";
|
|
14
|
-
|
|
15
|
-
declare const authClient: {
|
|
1
|
+
export declare const authClient: {
|
|
16
2
|
signIn: {
|
|
17
|
-
social: <FetchOptions extends
|
|
18
|
-
provider:
|
|
3
|
+
social: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
4
|
+
provider: unknown;
|
|
19
5
|
callbackURL?: string | undefined;
|
|
20
6
|
newUserCallbackURL?: string | undefined;
|
|
21
7
|
errorCallbackURL?: string | undefined;
|
|
@@ -31,8 +17,8 @@ declare const authClient: {
|
|
|
31
17
|
requestSignUp?: boolean | undefined;
|
|
32
18
|
loginHint?: string | undefined;
|
|
33
19
|
additionalData?: Record<string, any> | undefined;
|
|
34
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
35
|
-
provider:
|
|
20
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('node_modules/better-auth/dist/helper-DU33OcfW.d.mts').u<{
|
|
21
|
+
provider: unknown;
|
|
36
22
|
callbackURL?: string | undefined;
|
|
37
23
|
newUserCallbackURL?: string | undefined;
|
|
38
24
|
errorCallbackURL?: string | undefined;
|
|
@@ -50,32 +36,32 @@ declare const authClient: {
|
|
|
50
36
|
additionalData?: Record<string, any> | undefined;
|
|
51
37
|
} & {
|
|
52
38
|
fetchOptions?: FetchOptions | undefined;
|
|
53
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
54
|
-
redirect: boolean;
|
|
55
|
-
url: string;
|
|
56
|
-
} | {
|
|
39
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('@better-fetch/fetch').BetterFetchResponse<NonNullable<{
|
|
57
40
|
redirect: boolean;
|
|
58
41
|
token: string;
|
|
59
42
|
url: undefined;
|
|
60
43
|
user: {
|
|
61
44
|
id: string;
|
|
62
|
-
createdAt: Date;
|
|
63
|
-
updatedAt: Date;
|
|
64
45
|
email: string;
|
|
65
|
-
emailVerified: boolean;
|
|
66
46
|
name: string;
|
|
67
|
-
image
|
|
47
|
+
image: string | null | undefined;
|
|
48
|
+
emailVerified: boolean;
|
|
49
|
+
createdAt: Date;
|
|
50
|
+
updatedAt: Date;
|
|
68
51
|
};
|
|
52
|
+
} | {
|
|
53
|
+
url: string;
|
|
54
|
+
redirect: boolean;
|
|
69
55
|
}>, {
|
|
70
56
|
code?: string | undefined;
|
|
71
57
|
message?: string | undefined;
|
|
72
58
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
73
59
|
};
|
|
74
60
|
} & {
|
|
75
|
-
signOut: <FetchOptions extends
|
|
61
|
+
signOut: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('node_modules/better-auth/dist/helper-DU33OcfW.d.mts').u<{
|
|
76
62
|
query?: Record<string, any> | undefined;
|
|
77
63
|
fetchOptions?: FetchOptions | undefined;
|
|
78
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
64
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import('@better-fetch/fetch').BetterFetchResponse<{
|
|
79
65
|
success: boolean;
|
|
80
66
|
}, {
|
|
81
67
|
code?: string | undefined;
|
|
@@ -83,41 +69,41 @@ declare const authClient: {
|
|
|
83
69
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
84
70
|
} & {
|
|
85
71
|
signUp: {
|
|
86
|
-
email: <FetchOptions extends
|
|
72
|
+
email: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
87
73
|
name: string;
|
|
88
74
|
email: string;
|
|
89
75
|
password: string;
|
|
90
76
|
image?: string | undefined;
|
|
91
77
|
callbackURL?: string | undefined;
|
|
92
78
|
rememberMe?: boolean | undefined;
|
|
93
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
79
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('node_modules/better-auth/dist/helper-DU33OcfW.d.mts').u<{
|
|
94
80
|
email: string;
|
|
95
81
|
name: string;
|
|
96
82
|
password: string;
|
|
97
83
|
image?: string | undefined;
|
|
98
84
|
callbackURL?: string | undefined;
|
|
99
85
|
fetchOptions?: FetchOptions | undefined;
|
|
100
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
86
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('@better-fetch/fetch').BetterFetchResponse<NonNullable<{
|
|
101
87
|
token: null;
|
|
102
88
|
user: {
|
|
103
89
|
id: string;
|
|
104
|
-
createdAt: Date;
|
|
105
|
-
updatedAt: Date;
|
|
106
90
|
email: string;
|
|
107
|
-
emailVerified: boolean;
|
|
108
91
|
name: string;
|
|
109
|
-
image
|
|
92
|
+
image: string | null | undefined;
|
|
93
|
+
emailVerified: boolean;
|
|
94
|
+
createdAt: Date;
|
|
95
|
+
updatedAt: Date;
|
|
110
96
|
};
|
|
111
97
|
} | {
|
|
112
98
|
token: string;
|
|
113
99
|
user: {
|
|
114
100
|
id: string;
|
|
115
|
-
createdAt: Date;
|
|
116
|
-
updatedAt: Date;
|
|
117
101
|
email: string;
|
|
118
|
-
emailVerified: boolean;
|
|
119
102
|
name: string;
|
|
120
|
-
image
|
|
103
|
+
image: string | null | undefined;
|
|
104
|
+
emailVerified: boolean;
|
|
105
|
+
createdAt: Date;
|
|
106
|
+
updatedAt: Date;
|
|
121
107
|
};
|
|
122
108
|
}>, {
|
|
123
109
|
code?: string | undefined;
|
|
@@ -126,30 +112,30 @@ declare const authClient: {
|
|
|
126
112
|
};
|
|
127
113
|
} & {
|
|
128
114
|
signIn: {
|
|
129
|
-
email: <FetchOptions extends
|
|
115
|
+
email: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
130
116
|
email: string;
|
|
131
117
|
password: string;
|
|
132
118
|
callbackURL?: string | undefined;
|
|
133
119
|
rememberMe?: boolean | undefined;
|
|
134
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
120
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('node_modules/better-auth/dist/helper-DU33OcfW.d.mts').u<{
|
|
135
121
|
email: string;
|
|
136
122
|
password: string;
|
|
137
123
|
callbackURL?: string | undefined;
|
|
138
124
|
rememberMe?: boolean | undefined;
|
|
139
125
|
} & {
|
|
140
126
|
fetchOptions?: FetchOptions | undefined;
|
|
141
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
127
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('@better-fetch/fetch').BetterFetchResponse<{
|
|
142
128
|
redirect: boolean;
|
|
143
129
|
token: string;
|
|
144
|
-
url
|
|
130
|
+
url: string | undefined;
|
|
145
131
|
user: {
|
|
146
132
|
id: string;
|
|
147
|
-
createdAt: Date;
|
|
148
|
-
updatedAt: Date;
|
|
149
133
|
email: string;
|
|
150
|
-
emailVerified: boolean;
|
|
151
134
|
name: string;
|
|
152
|
-
image
|
|
135
|
+
image: string | null | undefined;
|
|
136
|
+
emailVerified: boolean;
|
|
137
|
+
createdAt: Date;
|
|
138
|
+
updatedAt: Date;
|
|
153
139
|
};
|
|
154
140
|
}, {
|
|
155
141
|
code?: string | undefined;
|
|
@@ -157,80 +143,80 @@ declare const authClient: {
|
|
|
157
143
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
158
144
|
};
|
|
159
145
|
} & {
|
|
160
|
-
resetPassword: <FetchOptions extends
|
|
146
|
+
resetPassword: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
161
147
|
newPassword: string;
|
|
162
148
|
token?: string | undefined;
|
|
163
149
|
}> & Record<string, any>, Partial<{
|
|
164
150
|
token?: string | undefined;
|
|
165
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
151
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('node_modules/better-auth/dist/helper-DU33OcfW.d.mts').u<{
|
|
166
152
|
newPassword: string;
|
|
167
153
|
token?: string | undefined;
|
|
168
154
|
} & {
|
|
169
155
|
fetchOptions?: FetchOptions | undefined;
|
|
170
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
156
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('@better-fetch/fetch').BetterFetchResponse<{
|
|
171
157
|
status: boolean;
|
|
172
158
|
}, {
|
|
173
159
|
code?: string | undefined;
|
|
174
160
|
message?: string | undefined;
|
|
175
161
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
176
162
|
} & {
|
|
177
|
-
verifyEmail: <FetchOptions extends
|
|
163
|
+
verifyEmail: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<{
|
|
178
164
|
token: string;
|
|
179
165
|
callbackURL?: string | undefined;
|
|
180
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
166
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('node_modules/better-auth/dist/helper-DU33OcfW.d.mts').u<{
|
|
181
167
|
query: {
|
|
182
168
|
token: string;
|
|
183
169
|
callbackURL?: string | undefined;
|
|
184
170
|
};
|
|
185
171
|
fetchOptions?: FetchOptions | undefined;
|
|
186
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
172
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('@better-fetch/fetch').BetterFetchResponse<NonNullable<void | {
|
|
187
173
|
status: boolean;
|
|
188
174
|
}>, {
|
|
189
175
|
code?: string | undefined;
|
|
190
176
|
message?: string | undefined;
|
|
191
177
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
192
178
|
} & {
|
|
193
|
-
sendVerificationEmail: <FetchOptions extends
|
|
179
|
+
sendVerificationEmail: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
194
180
|
email: string;
|
|
195
181
|
callbackURL?: string | undefined;
|
|
196
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
182
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('node_modules/better-auth/dist/helper-DU33OcfW.d.mts').u<{
|
|
197
183
|
email: string;
|
|
198
184
|
callbackURL?: string | undefined;
|
|
199
185
|
} & {
|
|
200
186
|
fetchOptions?: FetchOptions | undefined;
|
|
201
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
187
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('@better-fetch/fetch').BetterFetchResponse<{
|
|
202
188
|
status: boolean;
|
|
203
189
|
}, {
|
|
204
190
|
code?: string | undefined;
|
|
205
191
|
message?: string | undefined;
|
|
206
192
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
207
193
|
} & {
|
|
208
|
-
changeEmail: <FetchOptions extends
|
|
194
|
+
changeEmail: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
209
195
|
newEmail: string;
|
|
210
196
|
callbackURL?: string | undefined;
|
|
211
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
197
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('node_modules/better-auth/dist/helper-DU33OcfW.d.mts').u<{
|
|
212
198
|
newEmail: string;
|
|
213
199
|
callbackURL?: string | undefined;
|
|
214
200
|
} & {
|
|
215
201
|
fetchOptions?: FetchOptions | undefined;
|
|
216
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
202
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('@better-fetch/fetch').BetterFetchResponse<{
|
|
217
203
|
status: boolean;
|
|
218
204
|
}, {
|
|
219
205
|
code?: string | undefined;
|
|
220
206
|
message?: string | undefined;
|
|
221
207
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
222
208
|
} & {
|
|
223
|
-
changePassword: <FetchOptions extends
|
|
209
|
+
changePassword: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
224
210
|
newPassword: string;
|
|
225
211
|
currentPassword: string;
|
|
226
212
|
revokeOtherSessions?: boolean | undefined;
|
|
227
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
213
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('node_modules/better-auth/dist/helper-DU33OcfW.d.mts').u<{
|
|
228
214
|
newPassword: string;
|
|
229
215
|
currentPassword: string;
|
|
230
216
|
revokeOtherSessions?: boolean | undefined;
|
|
231
217
|
} & {
|
|
232
218
|
fetchOptions?: FetchOptions | undefined;
|
|
233
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
219
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('@better-fetch/fetch').BetterFetchResponse<{
|
|
234
220
|
token: string | null;
|
|
235
221
|
user: {
|
|
236
222
|
id: string;
|
|
@@ -246,31 +232,31 @@ declare const authClient: {
|
|
|
246
232
|
message?: string | undefined;
|
|
247
233
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
248
234
|
} & {
|
|
249
|
-
updateUser: <FetchOptions extends
|
|
235
|
+
updateUser: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<Partial<{}> & {
|
|
250
236
|
name?: string | undefined;
|
|
251
237
|
image?: string | undefined;
|
|
252
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
238
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('node_modules/better-auth/dist/helper-DU33OcfW.d.mts').u<{
|
|
253
239
|
image?: (string | null) | undefined;
|
|
254
240
|
name?: string | undefined;
|
|
255
241
|
fetchOptions?: FetchOptions | undefined;
|
|
256
|
-
} & Partial<{}>> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
242
|
+
} & Partial<{}>> | undefined, data_1?: FetchOptions | undefined) => Promise<import('@better-fetch/fetch').BetterFetchResponse<{
|
|
257
243
|
status: boolean;
|
|
258
244
|
}, {
|
|
259
245
|
code?: string | undefined;
|
|
260
246
|
message?: string | undefined;
|
|
261
247
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
262
248
|
} & {
|
|
263
|
-
deleteUser: <FetchOptions extends
|
|
249
|
+
deleteUser: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
264
250
|
callbackURL?: string | undefined;
|
|
265
251
|
password?: string | undefined;
|
|
266
252
|
token?: string | undefined;
|
|
267
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
253
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('node_modules/better-auth/dist/helper-DU33OcfW.d.mts').u<{
|
|
268
254
|
callbackURL?: string | undefined;
|
|
269
255
|
password?: string | undefined;
|
|
270
256
|
token?: string | undefined;
|
|
271
257
|
} & {
|
|
272
258
|
fetchOptions?: FetchOptions | undefined;
|
|
273
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
259
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import('@better-fetch/fetch').BetterFetchResponse<{
|
|
274
260
|
success: boolean;
|
|
275
261
|
message: string;
|
|
276
262
|
}, {
|
|
@@ -278,15 +264,15 @@ declare const authClient: {
|
|
|
278
264
|
message?: string | undefined;
|
|
279
265
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
280
266
|
} & {
|
|
281
|
-
requestPasswordReset: <FetchOptions extends
|
|
267
|
+
requestPasswordReset: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
282
268
|
email: string;
|
|
283
269
|
redirectTo?: string | undefined;
|
|
284
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
270
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('node_modules/better-auth/dist/helper-DU33OcfW.d.mts').u<{
|
|
285
271
|
email: string;
|
|
286
272
|
redirectTo?: string | undefined;
|
|
287
273
|
} & {
|
|
288
274
|
fetchOptions?: FetchOptions | undefined;
|
|
289
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
275
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('@better-fetch/fetch').BetterFetchResponse<{
|
|
290
276
|
status: boolean;
|
|
291
277
|
message: string;
|
|
292
278
|
}, {
|
|
@@ -295,25 +281,25 @@ declare const authClient: {
|
|
|
295
281
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
296
282
|
} & {
|
|
297
283
|
resetPassword: {
|
|
298
|
-
":token": <FetchOptions extends
|
|
284
|
+
":token": <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<{
|
|
299
285
|
callbackURL: string;
|
|
300
286
|
}> & Record<string, any>, {
|
|
301
287
|
token: string;
|
|
302
|
-
}>>(data_0:
|
|
288
|
+
}>>(data_0: import('node_modules/better-auth/dist/helper-DU33OcfW.d.mts').u<{
|
|
303
289
|
query: {
|
|
304
290
|
callbackURL: string;
|
|
305
291
|
};
|
|
306
292
|
fetchOptions?: FetchOptions | undefined;
|
|
307
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
293
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('@better-fetch/fetch').BetterFetchResponse<never, {
|
|
308
294
|
code?: string | undefined;
|
|
309
295
|
message?: string | undefined;
|
|
310
296
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
311
297
|
};
|
|
312
298
|
} & {
|
|
313
|
-
listSessions: <FetchOptions extends
|
|
299
|
+
listSessions: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('node_modules/better-auth/dist/helper-DU33OcfW.d.mts').u<{
|
|
314
300
|
query?: Record<string, any> | undefined;
|
|
315
301
|
fetchOptions?: FetchOptions | undefined;
|
|
316
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
302
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import('@better-fetch/fetch').BetterFetchResponse<import('node_modules/better-auth/dist/helper-DU33OcfW.d.mts').u<{
|
|
317
303
|
id: string;
|
|
318
304
|
createdAt: Date;
|
|
319
305
|
updatedAt: Date;
|
|
@@ -327,40 +313,40 @@ declare const authClient: {
|
|
|
327
313
|
message?: string | undefined;
|
|
328
314
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
329
315
|
} & {
|
|
330
|
-
revokeSession: <FetchOptions extends
|
|
316
|
+
revokeSession: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
331
317
|
token: string;
|
|
332
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
318
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('node_modules/better-auth/dist/helper-DU33OcfW.d.mts').u<{
|
|
333
319
|
token: string;
|
|
334
320
|
} & {
|
|
335
321
|
fetchOptions?: FetchOptions | undefined;
|
|
336
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
322
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('@better-fetch/fetch').BetterFetchResponse<{
|
|
337
323
|
status: boolean;
|
|
338
324
|
}, {
|
|
339
325
|
code?: string | undefined;
|
|
340
326
|
message?: string | undefined;
|
|
341
327
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
342
328
|
} & {
|
|
343
|
-
revokeSessions: <FetchOptions extends
|
|
329
|
+
revokeSessions: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('node_modules/better-auth/dist/helper-DU33OcfW.d.mts').u<{
|
|
344
330
|
query?: Record<string, any> | undefined;
|
|
345
331
|
fetchOptions?: FetchOptions | undefined;
|
|
346
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
332
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import('@better-fetch/fetch').BetterFetchResponse<{
|
|
347
333
|
status: boolean;
|
|
348
334
|
}, {
|
|
349
335
|
code?: string | undefined;
|
|
350
336
|
message?: string | undefined;
|
|
351
337
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
352
338
|
} & {
|
|
353
|
-
revokeOtherSessions: <FetchOptions extends
|
|
339
|
+
revokeOtherSessions: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('node_modules/better-auth/dist/helper-DU33OcfW.d.mts').u<{
|
|
354
340
|
query?: Record<string, any> | undefined;
|
|
355
341
|
fetchOptions?: FetchOptions | undefined;
|
|
356
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
342
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import('@better-fetch/fetch').BetterFetchResponse<{
|
|
357
343
|
status: boolean;
|
|
358
344
|
}, {
|
|
359
345
|
code?: string | undefined;
|
|
360
346
|
message?: string | undefined;
|
|
361
347
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
362
348
|
} & {
|
|
363
|
-
linkSocial: <FetchOptions extends
|
|
349
|
+
linkSocial: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
364
350
|
provider: unknown;
|
|
365
351
|
callbackURL?: string | undefined;
|
|
366
352
|
idToken?: {
|
|
@@ -375,7 +361,7 @@ declare const authClient: {
|
|
|
375
361
|
errorCallbackURL?: string | undefined;
|
|
376
362
|
disableRedirect?: boolean | undefined;
|
|
377
363
|
additionalData?: Record<string, any> | undefined;
|
|
378
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
364
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('node_modules/better-auth/dist/helper-DU33OcfW.d.mts').u<{
|
|
379
365
|
provider: unknown;
|
|
380
366
|
callbackURL?: string | undefined;
|
|
381
367
|
idToken?: {
|
|
@@ -392,7 +378,7 @@ declare const authClient: {
|
|
|
392
378
|
additionalData?: Record<string, any> | undefined;
|
|
393
379
|
} & {
|
|
394
380
|
fetchOptions?: FetchOptions | undefined;
|
|
395
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
381
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('@better-fetch/fetch').BetterFetchResponse<{
|
|
396
382
|
url: string;
|
|
397
383
|
redirect: boolean;
|
|
398
384
|
}, {
|
|
@@ -400,10 +386,10 @@ declare const authClient: {
|
|
|
400
386
|
message?: string | undefined;
|
|
401
387
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
402
388
|
} & {
|
|
403
|
-
listAccounts: <FetchOptions extends
|
|
389
|
+
listAccounts: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('node_modules/better-auth/dist/helper-DU33OcfW.d.mts').u<{
|
|
404
390
|
query?: Record<string, any> | undefined;
|
|
405
391
|
fetchOptions?: FetchOptions | undefined;
|
|
406
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
392
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import('@better-fetch/fetch').BetterFetchResponse<{
|
|
407
393
|
id: string;
|
|
408
394
|
providerId: string;
|
|
409
395
|
createdAt: Date;
|
|
@@ -417,16 +403,16 @@ declare const authClient: {
|
|
|
417
403
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
418
404
|
} & {
|
|
419
405
|
deleteUser: {
|
|
420
|
-
callback: <FetchOptions extends
|
|
406
|
+
callback: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<{
|
|
421
407
|
token: string;
|
|
422
408
|
callbackURL?: string | undefined;
|
|
423
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
409
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('node_modules/better-auth/dist/helper-DU33OcfW.d.mts').u<{
|
|
424
410
|
query: {
|
|
425
411
|
token: string;
|
|
426
412
|
callbackURL?: string | undefined;
|
|
427
413
|
};
|
|
428
414
|
fetchOptions?: FetchOptions | undefined;
|
|
429
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
415
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('@better-fetch/fetch').BetterFetchResponse<{
|
|
430
416
|
success: boolean;
|
|
431
417
|
message: string;
|
|
432
418
|
}, {
|
|
@@ -435,32 +421,32 @@ declare const authClient: {
|
|
|
435
421
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
436
422
|
};
|
|
437
423
|
} & {
|
|
438
|
-
unlinkAccount: <FetchOptions extends
|
|
424
|
+
unlinkAccount: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
439
425
|
providerId: string;
|
|
440
426
|
accountId?: string | undefined;
|
|
441
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
427
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('node_modules/better-auth/dist/helper-DU33OcfW.d.mts').u<{
|
|
442
428
|
providerId: string;
|
|
443
429
|
accountId?: string | undefined;
|
|
444
430
|
} & {
|
|
445
431
|
fetchOptions?: FetchOptions | undefined;
|
|
446
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
432
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('@better-fetch/fetch').BetterFetchResponse<{
|
|
447
433
|
status: boolean;
|
|
448
434
|
}, {
|
|
449
435
|
code?: string | undefined;
|
|
450
436
|
message?: string | undefined;
|
|
451
437
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
452
438
|
} & {
|
|
453
|
-
refreshToken: <FetchOptions extends
|
|
439
|
+
refreshToken: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
454
440
|
providerId: string;
|
|
455
441
|
accountId?: string | undefined;
|
|
456
442
|
userId?: string | undefined;
|
|
457
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
443
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('node_modules/better-auth/dist/helper-DU33OcfW.d.mts').u<{
|
|
458
444
|
providerId: string;
|
|
459
445
|
accountId?: string | undefined;
|
|
460
446
|
userId?: string | undefined;
|
|
461
447
|
} & {
|
|
462
448
|
fetchOptions?: FetchOptions | undefined;
|
|
463
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
449
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('@better-fetch/fetch').BetterFetchResponse<{
|
|
464
450
|
accessToken: string | undefined;
|
|
465
451
|
refreshToken: string | undefined;
|
|
466
452
|
accessTokenExpiresAt: Date | undefined;
|
|
@@ -474,17 +460,17 @@ declare const authClient: {
|
|
|
474
460
|
message?: string | undefined;
|
|
475
461
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
476
462
|
} & {
|
|
477
|
-
getAccessToken: <FetchOptions extends
|
|
463
|
+
getAccessToken: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
478
464
|
providerId: string;
|
|
479
465
|
accountId?: string | undefined;
|
|
480
466
|
userId?: string | undefined;
|
|
481
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
467
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('node_modules/better-auth/dist/helper-DU33OcfW.d.mts').u<{
|
|
482
468
|
providerId: string;
|
|
483
469
|
accountId?: string | undefined;
|
|
484
470
|
userId?: string | undefined;
|
|
485
471
|
} & {
|
|
486
472
|
fetchOptions?: FetchOptions | undefined;
|
|
487
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
473
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('@better-fetch/fetch').BetterFetchResponse<{
|
|
488
474
|
accessToken: string;
|
|
489
475
|
accessTokenExpiresAt: Date | undefined;
|
|
490
476
|
scopes: string[];
|
|
@@ -494,31 +480,31 @@ declare const authClient: {
|
|
|
494
480
|
message?: string | undefined;
|
|
495
481
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
496
482
|
} & {
|
|
497
|
-
accountInfo: <FetchOptions extends
|
|
483
|
+
accountInfo: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<{
|
|
498
484
|
accountId?: string | undefined;
|
|
499
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
485
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('node_modules/better-auth/dist/helper-DU33OcfW.d.mts').u<{
|
|
500
486
|
query?: {
|
|
501
487
|
accountId?: string | undefined;
|
|
502
488
|
} | undefined;
|
|
503
489
|
fetchOptions?: FetchOptions | undefined;
|
|
504
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
505
|
-
user:
|
|
490
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import('@better-fetch/fetch').BetterFetchResponse<{
|
|
491
|
+
user: import('better-auth').OAuth2UserInfo;
|
|
506
492
|
data: Record<string, any>;
|
|
507
493
|
}, {
|
|
508
494
|
code?: string | undefined;
|
|
509
495
|
message?: string | undefined;
|
|
510
496
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
511
497
|
} & {
|
|
512
|
-
getSession: <FetchOptions extends
|
|
498
|
+
getSession: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<{
|
|
513
499
|
disableCookieCache?: unknown;
|
|
514
500
|
disableRefresh?: unknown;
|
|
515
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
501
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('node_modules/better-auth/dist/helper-DU33OcfW.d.mts').u<{
|
|
516
502
|
query?: {
|
|
517
503
|
disableCookieCache?: unknown;
|
|
518
504
|
disableRefresh?: unknown;
|
|
519
505
|
} | undefined;
|
|
520
506
|
fetchOptions?: FetchOptions | undefined;
|
|
521
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
507
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import('@better-fetch/fetch').BetterFetchResponse<{
|
|
522
508
|
user: {
|
|
523
509
|
id: string;
|
|
524
510
|
createdAt: Date;
|
|
@@ -567,9 +553,9 @@ declare const authClient: {
|
|
|
567
553
|
} | null;
|
|
568
554
|
isPending: boolean;
|
|
569
555
|
isRefetching: boolean;
|
|
570
|
-
error:
|
|
556
|
+
error: import('@better-fetch/fetch').BetterFetchError | null;
|
|
571
557
|
refetch: (queryParams?: {
|
|
572
|
-
query?:
|
|
558
|
+
query?: import('better-auth').SessionQueryParams;
|
|
573
559
|
} | undefined) => Promise<void>;
|
|
574
560
|
};
|
|
575
561
|
$Infer: {
|
|
@@ -595,27 +581,27 @@ declare const authClient: {
|
|
|
595
581
|
};
|
|
596
582
|
};
|
|
597
583
|
};
|
|
598
|
-
$fetch:
|
|
599
|
-
plugins: (
|
|
584
|
+
$fetch: import('@better-fetch/fetch').BetterFetch<{
|
|
585
|
+
plugins: (import('@better-fetch/fetch').BetterFetchPlugin | {
|
|
600
586
|
id: string;
|
|
601
587
|
name: string;
|
|
602
588
|
hooks: {
|
|
603
|
-
onSuccess(context:
|
|
589
|
+
onSuccess(context: import('@better-fetch/fetch').SuccessContext<any>): void;
|
|
604
590
|
};
|
|
605
591
|
} | {
|
|
606
592
|
id: string;
|
|
607
593
|
name: string;
|
|
608
594
|
hooks: {
|
|
609
|
-
onRequest<T extends Record<string, any>>(context:
|
|
595
|
+
onRequest<T extends Record<string, any>>(context: import('@better-fetch/fetch').RequestContext<T>): void;
|
|
610
596
|
};
|
|
611
597
|
} | {
|
|
612
598
|
id: string;
|
|
613
599
|
name: string;
|
|
614
600
|
hooks: {
|
|
615
|
-
onSuccess: ((context:
|
|
616
|
-
onError: ((context:
|
|
617
|
-
onRequest: (<T extends Record<string, any>>(context:
|
|
618
|
-
onResponse: ((context:
|
|
601
|
+
onSuccess: ((context: import('@better-fetch/fetch').SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
602
|
+
onError: ((context: import('@better-fetch/fetch').ErrorContext) => Promise<void> | void) | undefined;
|
|
603
|
+
onRequest: (<T extends Record<string, any>>(context: import('@better-fetch/fetch').RequestContext<T>) => Promise<import('@better-fetch/fetch').RequestContext | void> | import('@better-fetch/fetch').RequestContext | void) | undefined;
|
|
604
|
+
onResponse: ((context: import('@better-fetch/fetch').ResponseContext) => Promise<Response | void | import('@better-fetch/fetch').ResponseContext> | Response | import('@better-fetch/fetch').ResponseContext | void) | undefined;
|
|
619
605
|
};
|
|
620
606
|
})[];
|
|
621
607
|
cache?: RequestCache | undefined;
|
|
@@ -635,12 +621,12 @@ declare const authClient: {
|
|
|
635
621
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
636
622
|
signal?: (AbortSignal | null) | undefined;
|
|
637
623
|
window?: null | undefined;
|
|
638
|
-
onRetry?: ((response:
|
|
624
|
+
onRetry?: ((response: import('@better-fetch/fetch').ResponseContext) => Promise<void> | void) | undefined;
|
|
639
625
|
hookOptions?: {
|
|
640
626
|
cloneResponse?: boolean;
|
|
641
627
|
} | undefined;
|
|
642
628
|
timeout?: number | undefined;
|
|
643
|
-
customFetchImpl:
|
|
629
|
+
customFetchImpl: import('@better-fetch/fetch').FetchEsque;
|
|
644
630
|
baseURL: string;
|
|
645
631
|
throw?: boolean | undefined;
|
|
646
632
|
auth?: ({
|
|
@@ -660,17 +646,17 @@ declare const authClient: {
|
|
|
660
646
|
params?: any;
|
|
661
647
|
duplex?: "full" | "half" | undefined;
|
|
662
648
|
jsonParser: (text: string) => Promise<any> | any;
|
|
663
|
-
retry?:
|
|
649
|
+
retry?: import('@better-fetch/fetch').RetryOptions | undefined;
|
|
664
650
|
retryAttempt?: number | undefined;
|
|
665
|
-
output?: (
|
|
666
|
-
errorSchema?:
|
|
651
|
+
output?: (import('@better-fetch/fetch').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
652
|
+
errorSchema?: import('@better-fetch/fetch').StandardSchemaV1 | undefined;
|
|
667
653
|
disableValidation?: boolean | undefined;
|
|
668
654
|
disableSignal?: boolean | undefined;
|
|
669
655
|
}, unknown, unknown, {}>;
|
|
670
656
|
$store: {
|
|
671
657
|
notify: (signal?: (Omit<string, "$sessionSignal"> | "$sessionSignal") | undefined) => void;
|
|
672
658
|
listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
|
|
673
|
-
atoms: Record<string, nanostores.WritableAtom<any>>;
|
|
659
|
+
atoms: Record<string, import('nanostores').WritableAtom<any>>;
|
|
674
660
|
};
|
|
675
661
|
$ERROR_CODES: {
|
|
676
662
|
readonly USER_NOT_FOUND: "User not found";
|
|
@@ -700,5 +686,3 @@ declare const authClient: {
|
|
|
700
686
|
readonly USER_ALREADY_HAS_PASSWORD: "User already has a password. Provide that to delete the account.";
|
|
701
687
|
};
|
|
702
688
|
};
|
|
703
|
-
|
|
704
|
-
export { WISTRON_PRIMARY_COLOR, WISTRON_SECONDARY_COLOR, authClient };
|