wcz-test 6.7.4 → 6.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client-utils.d.ts +30 -28
- package/package.json +2 -2
package/dist/client-utils.d.ts
CHANGED
|
@@ -2,9 +2,11 @@ export { P as Platform } from './utils-ChipkRJ9.js';
|
|
|
2
2
|
export { t } from 'i18next';
|
|
3
3
|
export { useTranslation } from 'react-i18next';
|
|
4
4
|
import * as nanostores from 'nanostores';
|
|
5
|
+
import * as node_modules_better_auth_dist_index__CrC0_x3_d_mts from 'node_modules/better-auth/dist/index--CrC0_x3.d.mts';
|
|
6
|
+
import * as _better_auth_core_oauth2 from '@better-auth/core/oauth2';
|
|
5
7
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
6
8
|
import * as better_auth_react from 'better-auth/react';
|
|
7
|
-
import * as
|
|
9
|
+
import * as _better_auth_core from '@better-auth/core';
|
|
8
10
|
import 'axios';
|
|
9
11
|
import 'uuidv7';
|
|
10
12
|
import '@t3-oss/env-core';
|
|
@@ -14,7 +16,7 @@ declare const WISTRON_SECONDARY_COLOR = "#64DC00";
|
|
|
14
16
|
|
|
15
17
|
declare const authClient: {
|
|
16
18
|
signIn: {
|
|
17
|
-
social: <FetchOptions extends
|
|
19
|
+
social: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
|
|
18
20
|
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
21
|
callbackURL?: string | undefined;
|
|
20
22
|
newUserCallbackURL?: string | undefined;
|
|
@@ -72,7 +74,7 @@ declare const authClient: {
|
|
|
72
74
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
73
75
|
};
|
|
74
76
|
} & {
|
|
75
|
-
signOut: <FetchOptions extends
|
|
77
|
+
signOut: <FetchOptions extends _better_auth_core.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_react.Prettify<{
|
|
76
78
|
query?: Record<string, any> | undefined;
|
|
77
79
|
fetchOptions?: FetchOptions | undefined;
|
|
78
80
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
@@ -83,7 +85,7 @@ declare const authClient: {
|
|
|
83
85
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
84
86
|
} & {
|
|
85
87
|
signUp: {
|
|
86
|
-
email: <FetchOptions extends
|
|
88
|
+
email: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
|
|
87
89
|
name: string;
|
|
88
90
|
email: string;
|
|
89
91
|
password: string;
|
|
@@ -126,7 +128,7 @@ declare const authClient: {
|
|
|
126
128
|
};
|
|
127
129
|
} & {
|
|
128
130
|
signIn: {
|
|
129
|
-
email: <FetchOptions extends
|
|
131
|
+
email: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
|
|
130
132
|
email: string;
|
|
131
133
|
password: string;
|
|
132
134
|
callbackURL?: string | undefined;
|
|
@@ -157,7 +159,7 @@ declare const authClient: {
|
|
|
157
159
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
158
160
|
};
|
|
159
161
|
} & {
|
|
160
|
-
resetPassword: <FetchOptions extends
|
|
162
|
+
resetPassword: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
|
|
161
163
|
newPassword: string;
|
|
162
164
|
token?: string | undefined;
|
|
163
165
|
}> & Record<string, any>, Partial<{
|
|
@@ -174,7 +176,7 @@ declare const authClient: {
|
|
|
174
176
|
message?: string | undefined;
|
|
175
177
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
176
178
|
} & {
|
|
177
|
-
verifyEmail: <FetchOptions extends
|
|
179
|
+
verifyEmail: <FetchOptions extends _better_auth_core.ClientFetchOption<never, Partial<{
|
|
178
180
|
token: string;
|
|
179
181
|
callbackURL?: string | undefined;
|
|
180
182
|
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
@@ -190,7 +192,7 @@ declare const authClient: {
|
|
|
190
192
|
message?: string | undefined;
|
|
191
193
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
192
194
|
} & {
|
|
193
|
-
sendVerificationEmail: <FetchOptions extends
|
|
195
|
+
sendVerificationEmail: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
|
|
194
196
|
email: string;
|
|
195
197
|
callbackURL?: string | undefined;
|
|
196
198
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
@@ -205,7 +207,7 @@ declare const authClient: {
|
|
|
205
207
|
message?: string | undefined;
|
|
206
208
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
207
209
|
} & {
|
|
208
|
-
changeEmail: <FetchOptions extends
|
|
210
|
+
changeEmail: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
|
|
209
211
|
newEmail: string;
|
|
210
212
|
callbackURL?: string | undefined;
|
|
211
213
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
@@ -220,7 +222,7 @@ declare const authClient: {
|
|
|
220
222
|
message?: string | undefined;
|
|
221
223
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
222
224
|
} & {
|
|
223
|
-
changePassword: <FetchOptions extends
|
|
225
|
+
changePassword: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
|
|
224
226
|
newPassword: string;
|
|
225
227
|
currentPassword: string;
|
|
226
228
|
revokeOtherSessions?: boolean | undefined;
|
|
@@ -246,7 +248,7 @@ declare const authClient: {
|
|
|
246
248
|
message?: string | undefined;
|
|
247
249
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
248
250
|
} & {
|
|
249
|
-
updateUser: <FetchOptions extends
|
|
251
|
+
updateUser: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<Partial<{}> & {
|
|
250
252
|
name?: string | undefined;
|
|
251
253
|
image?: string | undefined;
|
|
252
254
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_react.Prettify<{
|
|
@@ -260,7 +262,7 @@ declare const authClient: {
|
|
|
260
262
|
message?: string | undefined;
|
|
261
263
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
262
264
|
} & {
|
|
263
|
-
deleteUser: <FetchOptions extends
|
|
265
|
+
deleteUser: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
|
|
264
266
|
callbackURL?: string | undefined;
|
|
265
267
|
password?: string | undefined;
|
|
266
268
|
token?: string | undefined;
|
|
@@ -278,7 +280,7 @@ declare const authClient: {
|
|
|
278
280
|
message?: string | undefined;
|
|
279
281
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
280
282
|
} & {
|
|
281
|
-
requestPasswordReset: <FetchOptions extends
|
|
283
|
+
requestPasswordReset: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
|
|
282
284
|
email: string;
|
|
283
285
|
redirectTo?: string | undefined;
|
|
284
286
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
@@ -295,7 +297,7 @@ declare const authClient: {
|
|
|
295
297
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
296
298
|
} & {
|
|
297
299
|
resetPassword: {
|
|
298
|
-
":token": <FetchOptions extends
|
|
300
|
+
":token": <FetchOptions extends _better_auth_core.ClientFetchOption<never, Partial<{
|
|
299
301
|
callbackURL: string;
|
|
300
302
|
}> & Record<string, any>, {
|
|
301
303
|
token: string;
|
|
@@ -310,7 +312,7 @@ declare const authClient: {
|
|
|
310
312
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
311
313
|
};
|
|
312
314
|
} & {
|
|
313
|
-
listSessions: <FetchOptions extends
|
|
315
|
+
listSessions: <FetchOptions extends _better_auth_core.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_react.Prettify<{
|
|
314
316
|
query?: Record<string, any> | undefined;
|
|
315
317
|
fetchOptions?: FetchOptions | undefined;
|
|
316
318
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<better_auth_react.Prettify<{
|
|
@@ -327,7 +329,7 @@ declare const authClient: {
|
|
|
327
329
|
message?: string | undefined;
|
|
328
330
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
329
331
|
} & {
|
|
330
|
-
revokeSession: <FetchOptions extends
|
|
332
|
+
revokeSession: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
|
|
331
333
|
token: string;
|
|
332
334
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
333
335
|
token: string;
|
|
@@ -340,7 +342,7 @@ declare const authClient: {
|
|
|
340
342
|
message?: string | undefined;
|
|
341
343
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
342
344
|
} & {
|
|
343
|
-
revokeSessions: <FetchOptions extends
|
|
345
|
+
revokeSessions: <FetchOptions extends _better_auth_core.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_react.Prettify<{
|
|
344
346
|
query?: Record<string, any> | undefined;
|
|
345
347
|
fetchOptions?: FetchOptions | undefined;
|
|
346
348
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
@@ -350,7 +352,7 @@ declare const authClient: {
|
|
|
350
352
|
message?: string | undefined;
|
|
351
353
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
352
354
|
} & {
|
|
353
|
-
revokeOtherSessions: <FetchOptions extends
|
|
355
|
+
revokeOtherSessions: <FetchOptions extends _better_auth_core.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_react.Prettify<{
|
|
354
356
|
query?: Record<string, any> | undefined;
|
|
355
357
|
fetchOptions?: FetchOptions | undefined;
|
|
356
358
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
@@ -360,7 +362,7 @@ declare const authClient: {
|
|
|
360
362
|
message?: string | undefined;
|
|
361
363
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
362
364
|
} & {
|
|
363
|
-
linkSocial: <FetchOptions extends
|
|
365
|
+
linkSocial: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
|
|
364
366
|
provider: unknown;
|
|
365
367
|
callbackURL?: string | undefined;
|
|
366
368
|
idToken?: {
|
|
@@ -400,7 +402,7 @@ declare const authClient: {
|
|
|
400
402
|
message?: string | undefined;
|
|
401
403
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
402
404
|
} & {
|
|
403
|
-
listAccounts: <FetchOptions extends
|
|
405
|
+
listAccounts: <FetchOptions extends _better_auth_core.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_react.Prettify<{
|
|
404
406
|
query?: Record<string, any> | undefined;
|
|
405
407
|
fetchOptions?: FetchOptions | undefined;
|
|
406
408
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
@@ -417,7 +419,7 @@ declare const authClient: {
|
|
|
417
419
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
418
420
|
} & {
|
|
419
421
|
deleteUser: {
|
|
420
|
-
callback: <FetchOptions extends
|
|
422
|
+
callback: <FetchOptions extends _better_auth_core.ClientFetchOption<never, Partial<{
|
|
421
423
|
token: string;
|
|
422
424
|
callbackURL?: string | undefined;
|
|
423
425
|
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
@@ -435,7 +437,7 @@ declare const authClient: {
|
|
|
435
437
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
436
438
|
};
|
|
437
439
|
} & {
|
|
438
|
-
unlinkAccount: <FetchOptions extends
|
|
440
|
+
unlinkAccount: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
|
|
439
441
|
providerId: string;
|
|
440
442
|
accountId?: string | undefined;
|
|
441
443
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth_react.Prettify<{
|
|
@@ -450,7 +452,7 @@ declare const authClient: {
|
|
|
450
452
|
message?: string | undefined;
|
|
451
453
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
452
454
|
} & {
|
|
453
|
-
refreshToken: <FetchOptions extends
|
|
455
|
+
refreshToken: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
|
|
454
456
|
providerId: string;
|
|
455
457
|
accountId?: string | undefined;
|
|
456
458
|
userId?: string | undefined;
|
|
@@ -474,7 +476,7 @@ declare const authClient: {
|
|
|
474
476
|
message?: string | undefined;
|
|
475
477
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
476
478
|
} & {
|
|
477
|
-
getAccessToken: <FetchOptions extends
|
|
479
|
+
getAccessToken: <FetchOptions extends _better_auth_core.ClientFetchOption<Partial<{
|
|
478
480
|
providerId: string;
|
|
479
481
|
accountId?: string | undefined;
|
|
480
482
|
userId?: string | undefined;
|
|
@@ -494,7 +496,7 @@ declare const authClient: {
|
|
|
494
496
|
message?: string | undefined;
|
|
495
497
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
496
498
|
} & {
|
|
497
|
-
accountInfo: <FetchOptions extends
|
|
499
|
+
accountInfo: <FetchOptions extends _better_auth_core.ClientFetchOption<never, Partial<{
|
|
498
500
|
accountId?: string | undefined;
|
|
499
501
|
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_react.Prettify<{
|
|
500
502
|
query?: {
|
|
@@ -502,14 +504,14 @@ declare const authClient: {
|
|
|
502
504
|
} | undefined;
|
|
503
505
|
fetchOptions?: FetchOptions | undefined;
|
|
504
506
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
505
|
-
user:
|
|
507
|
+
user: _better_auth_core_oauth2.OAuth2UserInfo;
|
|
506
508
|
data: Record<string, any>;
|
|
507
509
|
}, {
|
|
508
510
|
code?: string | undefined;
|
|
509
511
|
message?: string | undefined;
|
|
510
512
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
511
513
|
} & {
|
|
512
|
-
getSession: <FetchOptions extends
|
|
514
|
+
getSession: <FetchOptions extends _better_auth_core.ClientFetchOption<never, Partial<{
|
|
513
515
|
disableCookieCache?: unknown;
|
|
514
516
|
disableRefresh?: unknown;
|
|
515
517
|
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth_react.Prettify<{
|
|
@@ -569,7 +571,7 @@ declare const authClient: {
|
|
|
569
571
|
isRefetching: boolean;
|
|
570
572
|
error: _better_fetch_fetch.BetterFetchError | null;
|
|
571
573
|
refetch: (queryParams?: {
|
|
572
|
-
query?:
|
|
574
|
+
query?: node_modules_better_auth_dist_index__CrC0_x3_d_mts.bn;
|
|
573
575
|
} | undefined) => Promise<void>;
|
|
574
576
|
};
|
|
575
577
|
$Infer: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wcz-test",
|
|
3
|
-
"version": "6.7.
|
|
3
|
+
"version": "6.7.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@t3-oss/env-core": "^0.13.8",
|
|
65
65
|
"@types/pg": "^8.15.6",
|
|
66
66
|
"axios": "^1.13.2",
|
|
67
|
-
"better-auth": "^1.3
|
|
67
|
+
"better-auth": "^1.4.3",
|
|
68
68
|
"file-saver": "^2.0.5",
|
|
69
69
|
"i18next": "^25.6.2",
|
|
70
70
|
"i18next-browser-languagedetector": "^8.2.0",
|