@terreno/rtk 0.6.0 → 0.7.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.
@@ -28,7 +28,7 @@ export type { BetterAuthClientConfig, BetterAuthOAuthProvider, BetterAuthSession
28
28
  export declare const createBetterAuthClient: (config: BetterAuthClientConfig) => {
29
29
  signIn: {
30
30
  social: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
31
- provider: "google" | "github" | "apple" | (string & {}) | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
31
+ provider: "google" | "github" | "apple" | (string & {}) | "linear" | "huggingface" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel";
32
32
  callbackURL?: string | undefined;
33
33
  newUserCallbackURL?: string | undefined;
34
34
  errorCallbackURL?: string | undefined;
@@ -39,13 +39,20 @@ export declare const createBetterAuthClient: (config: BetterAuthClientConfig) =>
39
39
  accessToken?: string | undefined;
40
40
  refreshToken?: string | undefined;
41
41
  expiresAt?: number | undefined;
42
+ user?: {
43
+ name?: {
44
+ firstName?: string | undefined;
45
+ lastName?: string | undefined;
46
+ } | undefined;
47
+ email?: string | undefined;
48
+ } | undefined;
42
49
  } | undefined;
43
50
  scopes?: string[] | undefined;
44
51
  requestSignUp?: boolean | undefined;
45
52
  loginHint?: string | undefined;
46
53
  additionalData?: Record<string, any> | undefined;
47
54
  }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
48
- provider: "google" | "github" | "apple" | (string & {}) | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
55
+ provider: "google" | "github" | "apple" | (string & {}) | "linear" | "huggingface" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel";
49
56
  callbackURL?: string | undefined;
50
57
  newUserCallbackURL?: string | undefined;
51
58
  errorCallbackURL?: string | undefined;
@@ -56,6 +63,13 @@ export declare const createBetterAuthClient: (config: BetterAuthClientConfig) =>
56
63
  accessToken?: string | undefined;
57
64
  refreshToken?: string | undefined;
58
65
  expiresAt?: number | undefined;
66
+ user?: {
67
+ name?: {
68
+ firstName?: string | undefined;
69
+ lastName?: string | undefined;
70
+ } | undefined;
71
+ email?: string | undefined;
72
+ } | undefined;
59
73
  } | undefined;
60
74
  scopes?: string[] | undefined;
61
75
  requestSignUp?: boolean | undefined;
@@ -63,10 +77,10 @@ export declare const createBetterAuthClient: (config: BetterAuthClientConfig) =>
63
77
  additionalData?: Record<string, any> | undefined;
64
78
  } & {
65
79
  fetchOptions?: FetchOptions | undefined;
66
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<NonNullable<{
80
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
67
81
  redirect: boolean;
68
82
  url: string;
69
- } | {
83
+ } | (Omit<{
70
84
  redirect: boolean;
71
85
  token: string;
72
86
  url: undefined;
@@ -79,7 +93,17 @@ export declare const createBetterAuthClient: (config: BetterAuthClientConfig) =>
79
93
  name: string;
80
94
  image?: string | null | undefined | undefined;
81
95
  };
82
- }>, {
96
+ }, "user"> & {
97
+ user: import("better-auth").StripEmptyObjects<{
98
+ id: string;
99
+ createdAt: Date;
100
+ updatedAt: Date;
101
+ email: string;
102
+ emailVerified: boolean;
103
+ name: string;
104
+ image?: string | null | undefined;
105
+ }>;
106
+ }), {
83
107
  code?: string | undefined;
84
108
  message?: string | undefined;
85
109
  }, FetchOptions["throw"] extends true ? true : false>>;
@@ -110,7 +134,7 @@ export declare const createBetterAuthClient: (config: BetterAuthClientConfig) =>
110
134
  image?: string | undefined;
111
135
  callbackURL?: string | undefined;
112
136
  fetchOptions?: FetchOptions | undefined;
113
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<NonNullable<{
137
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<(Omit<{
114
138
  token: null;
115
139
  user: {
116
140
  id: string;
@@ -121,7 +145,17 @@ export declare const createBetterAuthClient: (config: BetterAuthClientConfig) =>
121
145
  name: string;
122
146
  image?: string | null | undefined | undefined;
123
147
  };
124
- } | {
148
+ }, "user"> & {
149
+ user: import("better-auth").StripEmptyObjects<{
150
+ id: string;
151
+ createdAt: Date;
152
+ updatedAt: Date;
153
+ email: string;
154
+ emailVerified: boolean;
155
+ name: string;
156
+ image?: string | null | undefined;
157
+ }>;
158
+ }) | (Omit<{
125
159
  token: string;
126
160
  user: {
127
161
  id: string;
@@ -132,7 +166,17 @@ export declare const createBetterAuthClient: (config: BetterAuthClientConfig) =>
132
166
  name: string;
133
167
  image?: string | null | undefined | undefined;
134
168
  };
135
- }>, {
169
+ }, "user"> & {
170
+ user: import("better-auth").StripEmptyObjects<{
171
+ id: string;
172
+ createdAt: Date;
173
+ updatedAt: Date;
174
+ email: string;
175
+ emailVerified: boolean;
176
+ name: string;
177
+ image?: string | null | undefined;
178
+ }>;
179
+ }), {
136
180
  code?: string | undefined;
137
181
  message?: string | undefined;
138
182
  }, FetchOptions["throw"] extends true ? true : false>>;
@@ -151,7 +195,7 @@ export declare const createBetterAuthClient: (config: BetterAuthClientConfig) =>
151
195
  rememberMe?: boolean | undefined;
152
196
  } & {
153
197
  fetchOptions?: FetchOptions | undefined;
154
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
198
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<Omit<{
155
199
  redirect: boolean;
156
200
  token: string;
157
201
  url?: string | undefined;
@@ -164,6 +208,16 @@ export declare const createBetterAuthClient: (config: BetterAuthClientConfig) =>
164
208
  name: string;
165
209
  image?: string | null | undefined | undefined;
166
210
  };
211
+ }, "user"> & {
212
+ user: import("better-auth").StripEmptyObjects<{
213
+ id: string;
214
+ createdAt: Date;
215
+ updatedAt: Date;
216
+ email: string;
217
+ emailVerified: boolean;
218
+ name: string;
219
+ image?: string | null | undefined;
220
+ }>;
167
221
  }, {
168
222
  code?: string | undefined;
169
223
  message?: string | undefined;
@@ -243,7 +297,7 @@ export declare const createBetterAuthClient: (config: BetterAuthClientConfig) =>
243
297
  revokeOtherSessions?: boolean | undefined;
244
298
  } & {
245
299
  fetchOptions?: FetchOptions | undefined;
246
- }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
300
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<Omit<{
247
301
  token: string | null;
248
302
  user: {
249
303
  id: string;
@@ -253,7 +307,43 @@ export declare const createBetterAuthClient: (config: BetterAuthClientConfig) =>
253
307
  emailVerified: boolean;
254
308
  name: string;
255
309
  image?: string | null | undefined;
256
- } & Record<string, any>;
310
+ } & Record<string, any> & {
311
+ id: string;
312
+ createdAt: Date;
313
+ updatedAt: Date;
314
+ email: string;
315
+ emailVerified: boolean;
316
+ name: string;
317
+ image?: string | null | undefined;
318
+ };
319
+ }, "user"> & {
320
+ user: import("better-auth").StripEmptyObjects<{
321
+ id: string;
322
+ createdAt: Date;
323
+ updatedAt: Date;
324
+ email: string;
325
+ emailVerified: boolean;
326
+ name: string;
327
+ image?: string | null | undefined;
328
+ }>;
329
+ }, {
330
+ code?: string | undefined;
331
+ message?: string | undefined;
332
+ }, FetchOptions["throw"] extends true ? true : false>>;
333
+ } & {
334
+ updateSession: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<Partial<{}>> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<Partial<{}> & {
335
+ fetchOptions?: FetchOptions | undefined;
336
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
337
+ session: {
338
+ id: string;
339
+ createdAt: Date;
340
+ updatedAt: Date;
341
+ userId: string;
342
+ expiresAt: Date;
343
+ token: string;
344
+ ipAddress?: string | null | undefined;
345
+ userAgent?: string | null | undefined;
346
+ };
257
347
  }, {
258
348
  code?: string | undefined;
259
349
  message?: string | undefined;
@@ -262,11 +352,79 @@ export declare const createBetterAuthClient: (config: BetterAuthClientConfig) =>
262
352
  updateUser: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<Partial<{}> & {
263
353
  name?: string | undefined;
264
354
  image?: string | undefined | null;
265
- }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
266
- image?: (string | null) | undefined;
267
- name?: string | undefined;
268
- fetchOptions?: FetchOptions | undefined;
269
- } & Partial<{}>> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
355
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<import("better-auth/client").InferUserUpdateCtx<{
356
+ baseURL: string;
357
+ plugins: {
358
+ id: "expo";
359
+ getActions(_: import("better-auth/client").BetterFetch, $store: import("better-auth").ClientStore): {
360
+ getCookie: () => string;
361
+ };
362
+ fetchPlugins: {
363
+ id: string;
364
+ name: string;
365
+ hooks: {
366
+ onSuccess(context: import("better-auth/client").SuccessContext<any>): Promise<void>;
367
+ };
368
+ init(url: string, options: ({
369
+ priority?: RequestPriority | undefined;
370
+ method?: string | undefined;
371
+ headers?: (HeadersInit & (HeadersInit | {
372
+ accept: "application/json" | "text/plain" | "application/octet-stream";
373
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
374
+ authorization: "Bearer" | "Basic";
375
+ })) | undefined;
376
+ redirect?: RequestRedirect | undefined;
377
+ window?: null | undefined;
378
+ cache?: RequestCache | undefined;
379
+ credentials?: RequestCredentials | undefined;
380
+ integrity?: string | undefined;
381
+ keepalive?: boolean | undefined;
382
+ mode?: RequestMode | undefined;
383
+ referrer?: string | undefined;
384
+ referrerPolicy?: ReferrerPolicy | undefined;
385
+ signal?: (AbortSignal | null) | undefined;
386
+ onRequest?: (<T extends Record<string, any>>(context: import("better-auth/client").RequestContext<T>) => Promise<import("better-auth/client").RequestContext | void> | import("better-auth/client").RequestContext | void) | undefined;
387
+ onResponse?: ((context: import("better-auth/client").ResponseContext) => Promise<Response | void | import("better-auth/client").ResponseContext> | Response | import("better-auth/client").ResponseContext | void) | undefined;
388
+ onSuccess?: ((context: import("better-auth/client").SuccessContext<any>) => Promise<void> | void) | undefined;
389
+ onError?: ((context: import("better-auth/client").ErrorContext) => Promise<void> | void) | undefined;
390
+ onRetry?: ((response: import("better-auth/client").ResponseContext) => Promise<void> | void) | undefined;
391
+ hookOptions?: {
392
+ cloneResponse?: boolean;
393
+ } | undefined;
394
+ timeout?: number | undefined;
395
+ customFetchImpl?: import("better-auth/client").FetchEsque | undefined;
396
+ plugins?: import("better-auth/client").BetterFetchPlugin[] | undefined;
397
+ baseURL?: string | undefined;
398
+ throw?: boolean | undefined;
399
+ auth?: ({
400
+ type: "Bearer";
401
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
402
+ } | {
403
+ type: "Basic";
404
+ username: string | (() => string | undefined) | undefined;
405
+ password: string | (() => string | undefined) | undefined;
406
+ } | {
407
+ type: "Custom";
408
+ prefix: string | (() => string | undefined) | undefined;
409
+ value: string | (() => string | undefined) | undefined;
410
+ }) | undefined;
411
+ body?: any;
412
+ query?: any;
413
+ params?: any;
414
+ duplex?: "full" | "half" | undefined;
415
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
416
+ retry?: import("better-auth/client").RetryOptions | undefined;
417
+ retryAttempt?: number | undefined;
418
+ output?: (import("better-auth/client").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
419
+ errorSchema?: import("better-auth/client").StandardSchemaV1 | undefined;
420
+ disableValidation?: boolean | undefined;
421
+ } & Record<string, any>) | undefined): Promise<{
422
+ url: string;
423
+ options: import("better-auth").ClientFetchOption;
424
+ }>;
425
+ }[];
426
+ }[];
427
+ }, FetchOptions>> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
270
428
  status: boolean;
271
429
  }, {
272
430
  code?: string | undefined;
@@ -475,9 +633,9 @@ export declare const createBetterAuthClient: (config: BetterAuthClientConfig) =>
475
633
  fetchOptions?: FetchOptions | undefined;
476
634
  }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
477
635
  accessToken: string | undefined;
478
- refreshToken: string | undefined;
636
+ refreshToken: string;
479
637
  accessTokenExpiresAt: Date | undefined;
480
- refreshTokenExpiresAt: Date | undefined;
638
+ refreshTokenExpiresAt: Date | null | undefined;
481
639
  scope: string | null | undefined;
482
640
  idToken: string | null | undefined;
483
641
  providerId: string;
@@ -532,7 +690,7 @@ export declare const createBetterAuthClient: (config: BetterAuthClientConfig) =>
532
690
  } | undefined;
533
691
  fetchOptions?: FetchOptions | undefined;
534
692
  }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/client").BetterFetchResponse<{
535
- user: {
693
+ user: import("better-auth").StripEmptyObjects<{
536
694
  id: string;
537
695
  createdAt: Date;
538
696
  updatedAt: Date;
@@ -540,8 +698,8 @@ export declare const createBetterAuthClient: (config: BetterAuthClientConfig) =>
540
698
  emailVerified: boolean;
541
699
  name: string;
542
700
  image?: string | null | undefined;
543
- };
544
- session: {
701
+ }>;
702
+ session: import("better-auth").StripEmptyObjects<{
545
703
  id: string;
546
704
  createdAt: Date;
547
705
  updatedAt: Date;
@@ -550,7 +708,7 @@ export declare const createBetterAuthClient: (config: BetterAuthClientConfig) =>
550
708
  token: string;
551
709
  ipAddress?: string | null | undefined;
552
710
  userAgent?: string | null | undefined;
553
- };
711
+ }>;
554
712
  } | null, {
555
713
  code?: string | undefined;
556
714
  message?: string | undefined;
@@ -560,7 +718,7 @@ export declare const createBetterAuthClient: (config: BetterAuthClientConfig) =>
560
718
  } & {
561
719
  useSession: () => {
562
720
  data: {
563
- user: {
721
+ user: import("better-auth").StripEmptyObjects<{
564
722
  id: string;
565
723
  createdAt: Date;
566
724
  updatedAt: Date;
@@ -568,8 +726,8 @@ export declare const createBetterAuthClient: (config: BetterAuthClientConfig) =>
568
726
  emailVerified: boolean;
569
727
  name: string;
570
728
  image?: string | null | undefined;
571
- };
572
- session: {
729
+ }>;
730
+ session: import("better-auth").StripEmptyObjects<{
573
731
  id: string;
574
732
  createdAt: Date;
575
733
  updatedAt: Date;
@@ -578,7 +736,7 @@ export declare const createBetterAuthClient: (config: BetterAuthClientConfig) =>
578
736
  token: string;
579
737
  ipAddress?: string | null | undefined;
580
738
  userAgent?: string | null | undefined;
581
- };
739
+ }>;
582
740
  } | null;
583
741
  isPending: boolean;
584
742
  isRefetching: boolean;
@@ -589,7 +747,7 @@ export declare const createBetterAuthClient: (config: BetterAuthClientConfig) =>
589
747
  };
590
748
  $Infer: {
591
749
  Session: {
592
- user: {
750
+ user: import("better-auth").StripEmptyObjects<{
593
751
  id: string;
594
752
  createdAt: Date;
595
753
  updatedAt: Date;
@@ -597,8 +755,8 @@ export declare const createBetterAuthClient: (config: BetterAuthClientConfig) =>
597
755
  emailVerified: boolean;
598
756
  name: string;
599
757
  image?: string | null | undefined;
600
- };
601
- session: {
758
+ }>;
759
+ session: import("better-auth").StripEmptyObjects<{
602
760
  id: string;
603
761
  createdAt: Date;
604
762
  updatedAt: Date;
@@ -607,7 +765,7 @@ export declare const createBetterAuthClient: (config: BetterAuthClientConfig) =>
607
765
  token: string;
608
766
  ipAddress?: string | null | undefined;
609
767
  userAgent?: string | null | undefined;
610
- };
768
+ }>;
611
769
  };
612
770
  };
613
771
  $fetch: import("better-auth/client").BetterFetch<{
@@ -628,22 +786,22 @@ export declare const createBetterAuthClient: (config: BetterAuthClientConfig) =>
628
786
  };
629
787
  })[];
630
788
  cache?: RequestCache | undefined;
631
- method: string;
632
- window?: null | undefined;
789
+ priority?: RequestPriority | undefined;
790
+ credentials?: RequestCredentials;
633
791
  headers?: (HeadersInit & (HeadersInit | {
634
792
  accept: "application/json" | "text/plain" | "application/octet-stream";
635
793
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
636
794
  authorization: "Bearer" | "Basic";
637
795
  })) | undefined;
638
- redirect?: RequestRedirect | undefined;
639
- credentials?: RequestCredentials;
640
796
  integrity?: string | undefined;
641
797
  keepalive?: boolean | undefined;
798
+ method: string;
642
799
  mode?: RequestMode | undefined;
643
- priority?: RequestPriority | undefined;
800
+ redirect?: RequestRedirect | undefined;
644
801
  referrer?: string | undefined;
645
802
  referrerPolicy?: ReferrerPolicy | undefined;
646
803
  signal?: (AbortSignal | null) | undefined;
804
+ window?: null | undefined;
647
805
  onRetry?: ((response: import("better-auth/client").ResponseContext) => Promise<void> | void) | undefined;
648
806
  hookOptions?: {
649
807
  cloneResponse?: boolean;
@@ -682,49 +840,54 @@ export declare const createBetterAuthClient: (config: BetterAuthClientConfig) =>
682
840
  atoms: Record<string, import("better-auth/client").WritableAtom<any>>;
683
841
  };
684
842
  $ERROR_CODES: {
685
- readonly USER_NOT_FOUND: "User not found";
686
- readonly FAILED_TO_CREATE_USER: "Failed to create user";
687
- readonly FAILED_TO_CREATE_SESSION: "Failed to create session";
688
- readonly FAILED_TO_UPDATE_USER: "Failed to update user";
689
- readonly FAILED_TO_GET_SESSION: "Failed to get session";
690
- readonly INVALID_PASSWORD: "Invalid password";
691
- readonly INVALID_EMAIL: "Invalid email";
692
- readonly INVALID_EMAIL_OR_PASSWORD: "Invalid email or password";
693
- readonly SOCIAL_ACCOUNT_ALREADY_LINKED: "Social account already linked";
694
- readonly PROVIDER_NOT_FOUND: "Provider not found";
695
- readonly INVALID_TOKEN: "Invalid token";
696
- readonly ID_TOKEN_NOT_SUPPORTED: "id_token not supported";
697
- readonly FAILED_TO_GET_USER_INFO: "Failed to get user info";
698
- readonly USER_EMAIL_NOT_FOUND: "User email not found";
699
- readonly EMAIL_NOT_VERIFIED: "Email not verified";
700
- readonly PASSWORD_TOO_SHORT: "Password too short";
701
- readonly PASSWORD_TOO_LONG: "Password too long";
702
- readonly USER_ALREADY_EXISTS: "User already exists.";
703
- readonly USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: "User already exists. Use another email.";
704
- readonly EMAIL_CAN_NOT_BE_UPDATED: "Email can not be updated";
705
- readonly CREDENTIAL_ACCOUNT_NOT_FOUND: "Credential account not found";
706
- readonly SESSION_EXPIRED: "Session expired. Re-authenticate to perform this action.";
707
- readonly FAILED_TO_UNLINK_LAST_ACCOUNT: "You can't unlink your last account";
708
- readonly ACCOUNT_NOT_FOUND: "Account not found";
709
- readonly USER_ALREADY_HAS_PASSWORD: "User already has a password. Provide that to delete the account.";
710
- readonly CROSS_SITE_NAVIGATION_LOGIN_BLOCKED: "Cross-site navigation login blocked. This request appears to be a CSRF attack.";
711
- readonly VERIFICATION_EMAIL_NOT_ENABLED: "Verification email isn't enabled";
712
- readonly EMAIL_ALREADY_VERIFIED: "Email is already verified";
713
- readonly EMAIL_MISMATCH: "Email mismatch";
714
- readonly SESSION_NOT_FRESH: "Session is not fresh";
715
- readonly LINKED_ACCOUNT_ALREADY_EXISTS: "Linked account already exists";
716
- readonly INVALID_ORIGIN: "Invalid origin";
717
- readonly INVALID_CALLBACK_URL: "Invalid callbackURL";
718
- readonly INVALID_REDIRECT_URL: "Invalid redirectURL";
719
- readonly INVALID_ERROR_CALLBACK_URL: "Invalid errorCallbackURL";
720
- readonly INVALID_NEW_USER_CALLBACK_URL: "Invalid newUserCallbackURL";
721
- readonly MISSING_OR_NULL_ORIGIN: "Missing or null Origin";
722
- readonly CALLBACK_URL_REQUIRED: "callbackURL is required";
723
- readonly FAILED_TO_CREATE_VERIFICATION: "Unable to create verification";
724
- readonly FIELD_NOT_ALLOWED: "Field not allowed to be set";
725
- readonly ASYNC_VALIDATION_NOT_SUPPORTED: "Async validation is not supported";
726
- readonly VALIDATION_ERROR: "Validation Error";
727
- readonly MISSING_FIELD: "Field is required";
843
+ USER_NOT_FOUND: import("better-auth").RawError<"USER_NOT_FOUND">;
844
+ FAILED_TO_CREATE_USER: import("better-auth").RawError<"FAILED_TO_CREATE_USER">;
845
+ FAILED_TO_CREATE_SESSION: import("better-auth").RawError<"FAILED_TO_CREATE_SESSION">;
846
+ FAILED_TO_UPDATE_USER: import("better-auth").RawError<"FAILED_TO_UPDATE_USER">;
847
+ FAILED_TO_GET_SESSION: import("better-auth").RawError<"FAILED_TO_GET_SESSION">;
848
+ INVALID_PASSWORD: import("better-auth").RawError<"INVALID_PASSWORD">;
849
+ INVALID_EMAIL: import("better-auth").RawError<"INVALID_EMAIL">;
850
+ INVALID_EMAIL_OR_PASSWORD: import("better-auth").RawError<"INVALID_EMAIL_OR_PASSWORD">;
851
+ INVALID_USER: import("better-auth").RawError<"INVALID_USER">;
852
+ SOCIAL_ACCOUNT_ALREADY_LINKED: import("better-auth").RawError<"SOCIAL_ACCOUNT_ALREADY_LINKED">;
853
+ PROVIDER_NOT_FOUND: import("better-auth").RawError<"PROVIDER_NOT_FOUND">;
854
+ INVALID_TOKEN: import("better-auth").RawError<"INVALID_TOKEN">;
855
+ TOKEN_EXPIRED: import("better-auth").RawError<"TOKEN_EXPIRED">;
856
+ ID_TOKEN_NOT_SUPPORTED: import("better-auth").RawError<"ID_TOKEN_NOT_SUPPORTED">;
857
+ FAILED_TO_GET_USER_INFO: import("better-auth").RawError<"FAILED_TO_GET_USER_INFO">;
858
+ USER_EMAIL_NOT_FOUND: import("better-auth").RawError<"USER_EMAIL_NOT_FOUND">;
859
+ EMAIL_NOT_VERIFIED: import("better-auth").RawError<"EMAIL_NOT_VERIFIED">;
860
+ PASSWORD_TOO_SHORT: import("better-auth").RawError<"PASSWORD_TOO_SHORT">;
861
+ PASSWORD_TOO_LONG: import("better-auth").RawError<"PASSWORD_TOO_LONG">;
862
+ USER_ALREADY_EXISTS: import("better-auth").RawError<"USER_ALREADY_EXISTS">;
863
+ USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: import("better-auth").RawError<"USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL">;
864
+ EMAIL_CAN_NOT_BE_UPDATED: import("better-auth").RawError<"EMAIL_CAN_NOT_BE_UPDATED">;
865
+ CREDENTIAL_ACCOUNT_NOT_FOUND: import("better-auth").RawError<"CREDENTIAL_ACCOUNT_NOT_FOUND">;
866
+ ACCOUNT_NOT_FOUND: import("better-auth").RawError<"ACCOUNT_NOT_FOUND">;
867
+ SESSION_EXPIRED: import("better-auth").RawError<"SESSION_EXPIRED">;
868
+ FAILED_TO_UNLINK_LAST_ACCOUNT: import("better-auth").RawError<"FAILED_TO_UNLINK_LAST_ACCOUNT">;
869
+ USER_ALREADY_HAS_PASSWORD: import("better-auth").RawError<"USER_ALREADY_HAS_PASSWORD">;
870
+ CROSS_SITE_NAVIGATION_LOGIN_BLOCKED: import("better-auth").RawError<"CROSS_SITE_NAVIGATION_LOGIN_BLOCKED">;
871
+ VERIFICATION_EMAIL_NOT_ENABLED: import("better-auth").RawError<"VERIFICATION_EMAIL_NOT_ENABLED">;
872
+ EMAIL_ALREADY_VERIFIED: import("better-auth").RawError<"EMAIL_ALREADY_VERIFIED">;
873
+ EMAIL_MISMATCH: import("better-auth").RawError<"EMAIL_MISMATCH">;
874
+ SESSION_NOT_FRESH: import("better-auth").RawError<"SESSION_NOT_FRESH">;
875
+ LINKED_ACCOUNT_ALREADY_EXISTS: import("better-auth").RawError<"LINKED_ACCOUNT_ALREADY_EXISTS">;
876
+ INVALID_ORIGIN: import("better-auth").RawError<"INVALID_ORIGIN">;
877
+ INVALID_CALLBACK_URL: import("better-auth").RawError<"INVALID_CALLBACK_URL">;
878
+ INVALID_REDIRECT_URL: import("better-auth").RawError<"INVALID_REDIRECT_URL">;
879
+ INVALID_ERROR_CALLBACK_URL: import("better-auth").RawError<"INVALID_ERROR_CALLBACK_URL">;
880
+ INVALID_NEW_USER_CALLBACK_URL: import("better-auth").RawError<"INVALID_NEW_USER_CALLBACK_URL">;
881
+ MISSING_OR_NULL_ORIGIN: import("better-auth").RawError<"MISSING_OR_NULL_ORIGIN">;
882
+ CALLBACK_URL_REQUIRED: import("better-auth").RawError<"CALLBACK_URL_REQUIRED">;
883
+ FAILED_TO_CREATE_VERIFICATION: import("better-auth").RawError<"FAILED_TO_CREATE_VERIFICATION">;
884
+ FIELD_NOT_ALLOWED: import("better-auth").RawError<"FIELD_NOT_ALLOWED">;
885
+ ASYNC_VALIDATION_NOT_SUPPORTED: import("better-auth").RawError<"ASYNC_VALIDATION_NOT_SUPPORTED">;
886
+ VALIDATION_ERROR: import("better-auth").RawError<"VALIDATION_ERROR">;
887
+ MISSING_FIELD: import("better-auth").RawError<"MISSING_FIELD">;
888
+ METHOD_NOT_ALLOWED_DEFER_SESSION_REQUIRED: import("better-auth").RawError<"METHOD_NOT_ALLOWED_DEFER_SESSION_REQUIRED">;
889
+ BODY_MUST_BE_AN_OBJECT: import("better-auth").RawError<"BODY_MUST_BE_AN_OBJECT">;
890
+ PASSWORD_ALREADY_SET: import("better-auth").RawError<"PASSWORD_ALREADY_SET">;
728
891
  };
729
892
  };
730
893
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"betterAuthClient.d.ts","sourceRoot":"","sources":["../src/betterAuthClient.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EAAC,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AAI9D,YAAY,EACV,sBAAsB,EACtB,uBAAuB,EACvB,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,GACf,MAAM,mBAAmB,CAAC;AA+C3B;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,sBAAsB,GAAI,QAAQ,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoB012F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BA9C552F,CAAC;iBACI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aA6CwK,CAAC;;cAA0D,CAAC;eAA+B,CAA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AAC;;YAAmD,CAAC;gBAAuC,CAAC;gBAA2C,CAAC;sBAAwC,CAAC;cAAwC,CAAC;cAA8C,CAAC;eAA+B,CAAC;mBAAyG,CAAC;yBAAuB,CAAC;;eAAyC,CAAC;;;aAA0G,CAAC;YAA+B,CAAC;;;;;;;;;;;;YAA+e,CAAC;aAAgB,CAAC;cAAiB,CAAC;cAAiB,CAAC;;aAA8F,CAAC;oBAAiE,CAAC;cAAgC,CAAC;mBAAkG,CAAC;yBAA0E,CAAC;qBAAwC,CAAC;;;uBAAkF,CAAC;+GAAuL,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CANj3E,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "@better-auth/expo": "^1.2.8",
4
4
  "@react-native-async-storage/async-storage": "2.2.0",
5
5
  "@reduxjs/toolkit": "^2.11.1",
6
- "@terreno/ui": "0.6.0",
6
+ "@terreno/ui": "0.7.1",
7
7
  "async-mutex": "^0.5.0",
8
8
  "axios": "^1.13.2",
9
9
  "axios-retry": "^4.5.0",
@@ -50,5 +50,5 @@
50
50
  "test:ci": "echo 'No tests'"
51
51
  },
52
52
  "types": "dist/index.d.ts",
53
- "version": "0.6.0"
53
+ "version": "0.7.1"
54
54
  }