wcz-test 6.7.6 → 6.8.0

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