@gatwech/auth 1.0.0-beta.19 → 1.0.0-beta.20

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 (61) hide show
  1. package/dist/client/index.d.mts +16 -16
  2. package/dist/client/plugins/index.d.mts +45 -45
  3. package/dist/client/react/index.d.mts +14 -14
  4. package/dist/{client-DZHNfxuR.d.mts → client-C_qmyez2.d.mts} +4 -4
  5. package/dist/{client-CSOs1YN7.d.mts → client-F67q-Lbi.d.mts} +1 -1
  6. package/dist/{index-Blmhq6eA.d.mts → index-4I1YhYhk.d.mts} +4 -4
  7. package/dist/{index-mxEUX2Gs.d.mts → index-BX7rl07Z.d.mts} +13 -13
  8. package/dist/{index-xoYsoOiR.d.mts → index-Bml-PCqP.d.mts} +20 -20
  9. package/dist/{index-DG-X1PK5.d.mts → index-BsSKcKgO.d.mts} +5 -5
  10. package/dist/{index-CP3FNbOZ.d.mts → index-CBiGsvDd.d.mts} +7 -7
  11. package/dist/{index-CUknVRZp.d.mts → index-CC920PPp.d.mts} +13 -13
  12. package/dist/{index-zBdYQGaS.d.mts → index-CNd5jqLl.d.mts} +5 -5
  13. package/dist/{index-DS-R7st3.d.mts → index-CP8x1TFq.d.mts} +6 -6
  14. package/dist/{index-CaqpCfE5.d.mts → index-CofuaNMl.d.mts} +6 -6
  15. package/dist/{index-Cv9iMevV.d.mts → index-CzpdkTdv.d.mts} +9 -9
  16. package/dist/{index-DRM35ir1.d.mts → index-D57DuhZR.d.mts} +110 -110
  17. package/dist/{index-DXVU0HGr.d.mts → index-D6ku0rUC.d.mts} +4 -4
  18. package/dist/{index-BAVzFqII.d.mts → index-DFSRYWFI.d.mts} +6 -6
  19. package/dist/{index-CgeC2eGC.d.mts → index-DGeoJ4gu.d.mts} +2 -2
  20. package/dist/{index-DyH_CgmX.d.mts → index-DTkcY7xH.d.mts} +10 -10
  21. package/dist/{index-COGe8UJx.d.mts → index-Dnd8S4S4.d.mts} +8 -8
  22. package/dist/{index-Df4SvZaE.d.mts → index-DwPAddfE.d.mts} +3 -3
  23. package/dist/{index-Db8jqUq2.d.mts → index-DyXi7S2M.d.mts} +9 -9
  24. package/dist/{index-CKnPAS5n.d.mts → index-KhbNmMmG.d.mts} +165 -165
  25. package/dist/{index-EABwA_BH.d.mts → index-XfE0WjTN.d.mts} +32 -32
  26. package/dist/{index-BNDRYfTF.d.mts → index-sb-UFLuo.d.mts} +2 -2
  27. package/dist/integrations/next-js.d.mts +4 -4
  28. package/dist/integrations/react-start.d.mts +4 -4
  29. package/dist/plugins/admin/index.d.mts +1 -1
  30. package/dist/plugins/anonymous/index.d.mts +1 -1
  31. package/dist/plugins/audit-log/client.d.mts +22 -22
  32. package/dist/plugins/audit-log/index.d.mts +21 -21
  33. package/dist/plugins/bearer/index.d.mts +1 -1
  34. package/dist/plugins/captcha/index.d.mts +1 -1
  35. package/dist/plugins/custom-session/index.d.mts +1 -1
  36. package/dist/plugins/device-authorization/index.d.mts +1 -1
  37. package/dist/plugins/email-otp/index.d.mts +1 -1
  38. package/dist/plugins/generic-oauth/index.d.mts +1 -1
  39. package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
  40. package/dist/plugins/index.d.mts +21 -21
  41. package/dist/plugins/index.mjs +1 -1
  42. package/dist/plugins/jwt/index.d.mts +1 -1
  43. package/dist/plugins/magic-link/index.d.mts +1 -1
  44. package/dist/plugins/multi-session/index.d.mts +1 -1
  45. package/dist/plugins/oauth-proxy/index.d.mts +1 -1
  46. package/dist/plugins/one-tap/index.d.mts +1 -1
  47. package/dist/plugins/one-time-token/index.d.mts +1 -1
  48. package/dist/plugins/one-time-token/index.mjs +1 -1
  49. package/dist/plugins/organization/index.d.mts +1 -1
  50. package/dist/plugins/passkey/index.d.mts +1 -1
  51. package/dist/plugins/phone-number/index.d.mts +1 -1
  52. package/dist/plugins/sentinel/client.d.mts +22 -22
  53. package/dist/plugins/sentinel/index.d.mts +21 -21
  54. package/dist/plugins/sentinel/index.mjs +1 -1
  55. package/dist/plugins/two-factor/index.d.mts +1 -1
  56. package/dist/plugins/username/index.d.mts +1 -1
  57. package/dist/{sentinel-C-D1IHJo.mjs → sentinel-DiPqydKG.mjs} +39 -8
  58. package/dist/src/plugins/sentinel/email.d.ts +9 -3
  59. package/dist/test-utils/index.d.mts +1042 -1042
  60. package/dist/test-utils/index.mjs +1 -1
  61. package/package.json +3 -3
@@ -5,9 +5,9 @@ import "../index-Df0KhQRf-BEa5tdwJ.mjs";
5
5
  import "../plugins-Dy_FrD4Y.mjs";
6
6
  import { PayvoAuthClientOptions as PayvoAuthClientOptions$1, PayvoAuthClientPlugin as PayvoAuthClientPlugin$1, PayvoAuthOptions, PayvoAuthPlugin } from "@gatwech/core";
7
7
  import { BASE_ERROR_CODES } from "@gatwech/core/error";
8
- import * as _better_fetch_fetch36 from "@better-fetch/fetch";
8
+ import * as _better_fetch_fetch20 from "@better-fetch/fetch";
9
9
  import { BetterFetch, BetterFetchError, BetterFetchOption } from "@better-fetch/fetch";
10
- import * as nanostores2 from "nanostores";
10
+ import * as nanostores0 from "nanostores";
11
11
  import { Atom, PreinitializedWritableAtom, WritableAtom } from "nanostores";
12
12
  export * from "@better-fetch/fetch";
13
13
  export * from "nanostores";
@@ -79,27 +79,27 @@ declare function createAuthClient<Option extends PayvoAuthClientOptions$1>(optio
79
79
  error: BetterFetchError | null;
80
80
  isPending: boolean;
81
81
  }>;
82
- $fetch: _better_fetch_fetch36.BetterFetch<{
83
- plugins: (_better_fetch_fetch36.BetterFetchPlugin | {
82
+ $fetch: _better_fetch_fetch20.BetterFetch<{
83
+ plugins: (_better_fetch_fetch20.BetterFetchPlugin | {
84
84
  id: string;
85
85
  name: string;
86
86
  hooks: {
87
- onSuccess(context: _better_fetch_fetch36.SuccessContext<any>): void;
87
+ onSuccess(context: _better_fetch_fetch20.SuccessContext<any>): void;
88
88
  };
89
89
  } | {
90
90
  id: string;
91
91
  name: string;
92
92
  hooks: {
93
- onRequest<T extends Record<string, any>>(context: _better_fetch_fetch36.RequestContext<T>): void;
93
+ onRequest<T extends Record<string, any>>(context: _better_fetch_fetch20.RequestContext<T>): void;
94
94
  };
95
95
  } | {
96
96
  id: string;
97
97
  name: string;
98
98
  hooks: {
99
- onSuccess: ((context: _better_fetch_fetch36.SuccessContext<any>) => Promise<void> | void) | undefined;
100
- onError: ((context: _better_fetch_fetch36.ErrorContext) => Promise<void> | void) | undefined;
101
- onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch36.RequestContext<T>) => Promise<_better_fetch_fetch36.RequestContext | void> | _better_fetch_fetch36.RequestContext | void) | undefined;
102
- onResponse: ((context: _better_fetch_fetch36.ResponseContext) => Promise<Response | void | _better_fetch_fetch36.ResponseContext> | Response | _better_fetch_fetch36.ResponseContext | void) | undefined;
99
+ onSuccess: ((context: _better_fetch_fetch20.SuccessContext<any>) => Promise<void> | void) | undefined;
100
+ onError: ((context: _better_fetch_fetch20.ErrorContext) => Promise<void> | void) | undefined;
101
+ onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch20.RequestContext<T>) => Promise<_better_fetch_fetch20.RequestContext | void> | _better_fetch_fetch20.RequestContext | void) | undefined;
102
+ onResponse: ((context: _better_fetch_fetch20.ResponseContext) => Promise<Response | void | _better_fetch_fetch20.ResponseContext> | Response | _better_fetch_fetch20.ResponseContext | void) | undefined;
103
103
  };
104
104
  })[];
105
105
  method: string;
@@ -119,12 +119,12 @@ declare function createAuthClient<Option extends PayvoAuthClientOptions$1>(optio
119
119
  referrerPolicy?: ReferrerPolicy | undefined;
120
120
  signal?: (AbortSignal | null) | undefined;
121
121
  window?: null | undefined;
122
- onRetry?: ((response: _better_fetch_fetch36.ResponseContext) => Promise<void> | void) | undefined;
122
+ onRetry?: ((response: _better_fetch_fetch20.ResponseContext) => Promise<void> | void) | undefined;
123
123
  hookOptions?: {
124
124
  cloneResponse?: boolean;
125
125
  } | undefined;
126
126
  timeout?: number | undefined;
127
- customFetchImpl: _better_fetch_fetch36.FetchEsque;
127
+ customFetchImpl: _better_fetch_fetch20.FetchEsque;
128
128
  baseURL: string;
129
129
  throw?: boolean | undefined;
130
130
  auth?: ({
@@ -144,16 +144,16 @@ declare function createAuthClient<Option extends PayvoAuthClientOptions$1>(optio
144
144
  params?: any;
145
145
  duplex?: "full" | "half" | undefined;
146
146
  jsonParser: (text: string) => Promise<any> | any;
147
- retry?: _better_fetch_fetch36.RetryOptions | undefined;
147
+ retry?: _better_fetch_fetch20.RetryOptions | undefined;
148
148
  retryAttempt?: number | undefined;
149
- output?: (_better_fetch_fetch36.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
150
- errorSchema?: _better_fetch_fetch36.StandardSchemaV1 | undefined;
149
+ output?: (_better_fetch_fetch20.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
150
+ errorSchema?: _better_fetch_fetch20.StandardSchemaV1 | undefined;
151
151
  disableValidation?: boolean | undefined;
152
152
  }, unknown, unknown, {}>;
153
153
  $store: {
154
154
  notify: (signal?: (Omit<string, "$sessionSignal"> | "$sessionSignal") | undefined) => void;
155
155
  listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
156
- atoms: Record<string, nanostores2.WritableAtom<any>>;
156
+ atoms: Record<string, nanostores0.WritableAtom<any>>;
157
157
  };
158
158
  $Infer: {
159
159
  Session: NonNullable<InferClientAPI<Option> extends {
@@ -4,36 +4,36 @@ import "../../types-DNQ9XQrB.mjs";
4
4
  import "../../index-Df0KhQRf-BEa5tdwJ.mjs";
5
5
  import "../../plugins-Dy_FrD4Y.mjs";
6
6
  import { a as Role, i as AccessControl, o as Statements } from "../../index-CxlWnL9c.mjs";
7
- import { t as admin } from "../../index-EABwA_BH.mjs";
8
- import { r as anonymous } from "../../index-zBdYQGaS.mjs";
9
- import { L as apiKey } from "../../index-DRM35ir1.mjs";
10
- import "../../index-DS-R7st3.mjs";
11
- import "../../index-CgeC2eGC.mjs";
12
- import "../../index-DG-X1PK5.mjs";
13
- import { i as deviceAuthorizationClient } from "../../index-BAVzFqII.mjs";
14
- import { n as emailOTP } from "../../index-CUknVRZp.mjs";
15
- import { n as genericOAuth } from "../../index-CP3FNbOZ.mjs";
16
- import "../../index-Df4SvZaE.mjs";
17
- import { t as jwt } from "../../index-COGe8UJx.mjs";
18
- import { t as magicLink } from "../../index-Blmhq6eA.mjs";
19
- import { t as multiSession } from "../../index-Db8jqUq2.mjs";
20
- import "../../index-DyH_CgmX.mjs";
21
- import "../../index-BNDRYfTF.mjs";
22
- import { t as oneTimeToken } from "../../index-DXVU0HGr.mjs";
7
+ import { t as admin } from "../../index-XfE0WjTN.mjs";
8
+ import { r as anonymous } from "../../index-CNd5jqLl.mjs";
9
+ import { L as apiKey } from "../../index-D57DuhZR.mjs";
10
+ import "../../index-CP8x1TFq.mjs";
11
+ import "../../index-DGeoJ4gu.mjs";
12
+ import "../../index-BsSKcKgO.mjs";
13
+ import { i as deviceAuthorizationClient } from "../../index-DFSRYWFI.mjs";
14
+ import { n as emailOTP } from "../../index-CC920PPp.mjs";
15
+ import { n as genericOAuth } from "../../index-CBiGsvDd.mjs";
16
+ import "../../index-DwPAddfE.mjs";
17
+ import { t as jwt } from "../../index-Dnd8S4S4.mjs";
18
+ import { t as magicLink } from "../../index-4I1YhYhk.mjs";
19
+ import { t as multiSession } from "../../index-DyXi7S2M.mjs";
20
+ import "../../index-DTkcY7xH.mjs";
21
+ import "../../index-sb-UFLuo.mjs";
22
+ import { t as oneTimeToken } from "../../index-D6ku0rUC.mjs";
23
23
  import "../../index-QmocqGM-.mjs";
24
- import { F as OrganizationOptions, S as Team, b as OrganizationRole, c as InferMember, f as InferTeam, g as Member, l as InferOrganization, p as Invitation, r as OrganizationPlugin, s as InferInvitation, v as Organization, w as TeamMember } from "../../index-CKnPAS5n.mjs";
25
- import { r as phoneNumber } from "../../index-CaqpCfE5.mjs";
26
- import { n as twoFactorClient } from "../../index-xoYsoOiR.mjs";
27
- import { n as Passkey, t as passkey } from "../../index-mxEUX2Gs.mjs";
28
- import { n as username } from "../../index-Cv9iMevV.mjs";
29
- import { t as auditLogClient } from "../../client-CSOs1YN7.mjs";
30
- import { t as sentinelClient } from "../../client-DZHNfxuR.mjs";
31
- import * as _gatwech_core58 from "@gatwech/core";
24
+ import { F as OrganizationOptions, S as Team, b as OrganizationRole, c as InferMember, f as InferTeam, g as Member, l as InferOrganization, p as Invitation, r as OrganizationPlugin, s as InferInvitation, v as Organization, w as TeamMember } from "../../index-KhbNmMmG.mjs";
25
+ import { r as phoneNumber } from "../../index-CofuaNMl.mjs";
26
+ import { n as twoFactorClient } from "../../index-Bml-PCqP.mjs";
27
+ import { n as Passkey, t as passkey } from "../../index-BX7rl07Z.mjs";
28
+ import { n as username } from "../../index-CzpdkTdv.mjs";
29
+ import { t as auditLogClient } from "../../client-F67q-Lbi.mjs";
30
+ import { t as sentinelClient } from "../../client-C_qmyez2.mjs";
31
+ import * as _gatwech_core63 from "@gatwech/core";
32
32
  import { ClientStore, PayvoAuthOptions } from "@gatwech/core";
33
33
  import { DBFieldAttribute } from "@gatwech/core/db";
34
- import * as _better_fetch_fetch53 from "@better-fetch/fetch";
34
+ import * as _better_fetch_fetch37 from "@better-fetch/fetch";
35
35
  import { BetterFetch, BetterFetchOption } from "@better-fetch/fetch";
36
- import * as nanostores3 from "nanostores";
36
+ import * as nanostores1 from "nanostores";
37
37
  import { atom } from "nanostores";
38
38
 
39
39
  //#region src/plugins/additional-fields/client.d.ts
@@ -369,10 +369,10 @@ interface GoogleOneTapActionOptions extends Omit<GoogleOneTapOptions, "clientId"
369
369
  }
370
370
  declare const oneTapClient: (options: GoogleOneTapOptions) => {
371
371
  id: "one-tap";
372
- getActions: ($fetch: _better_fetch_fetch53.BetterFetch, _: _gatwech_core58.ClientStore) => {
372
+ getActions: ($fetch: _better_fetch_fetch37.BetterFetch, _: _gatwech_core63.ClientStore) => {
373
373
  oneTap: (opts?: GoogleOneTapActionOptions | undefined, fetchOptions?: BetterFetchOption | undefined) => Promise<void>;
374
374
  };
375
- getAtoms($fetch: _better_fetch_fetch53.BetterFetch): {};
375
+ getAtoms($fetch: _better_fetch_fetch37.BetterFetch): {};
376
376
  };
377
377
  //#endregion
378
378
  //#region src/plugins/one-time-token/client.d.ts
@@ -471,7 +471,7 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
471
471
  } ? true : false;
472
472
  };
473
473
  }>;
474
- getActions: ($fetch: _better_fetch_fetch53.BetterFetch, _$store: _gatwech_core58.ClientStore, co: _gatwech_core58.PayvoAuthClientOptions | undefined) => {
474
+ getActions: ($fetch: _better_fetch_fetch37.BetterFetch, _$store: _gatwech_core63.ClientStore, co: _gatwech_core63.PayvoAuthClientOptions | undefined) => {
475
475
  $Infer: {
476
476
  ActiveOrganization: CO["teams"] extends {
477
477
  enabled: true;
@@ -555,12 +555,12 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
555
555
  }) => boolean;
556
556
  };
557
557
  };
558
- getAtoms: ($fetch: _better_fetch_fetch53.BetterFetch) => {
559
- $listOrg: nanostores3.PreinitializedWritableAtom<boolean> & object;
560
- $activeOrgSignal: nanostores3.PreinitializedWritableAtom<boolean> & object;
561
- $activeMemberSignal: nanostores3.PreinitializedWritableAtom<boolean> & object;
562
- $activeMemberRoleSignal: nanostores3.PreinitializedWritableAtom<boolean> & object;
563
- activeOrganization: nanostores3.PreinitializedWritableAtom<{
558
+ getAtoms: ($fetch: _better_fetch_fetch37.BetterFetch) => {
559
+ $listOrg: nanostores1.PreinitializedWritableAtom<boolean> & object;
560
+ $activeOrgSignal: nanostores1.PreinitializedWritableAtom<boolean> & object;
561
+ $activeMemberSignal: nanostores1.PreinitializedWritableAtom<boolean> & object;
562
+ $activeMemberRoleSignal: nanostores1.PreinitializedWritableAtom<boolean> & object;
563
+ activeOrganization: nanostores1.PreinitializedWritableAtom<{
564
564
  data: Prettify<({
565
565
  id: string;
566
566
  name: string;
@@ -572,14 +572,14 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
572
572
  members: InferMember<CO, false>[];
573
573
  invitations: InferInvitation<CO, false>[];
574
574
  }> | null;
575
- error: null | _better_fetch_fetch53.BetterFetchError;
575
+ error: null | _better_fetch_fetch37.BetterFetchError;
576
576
  isPending: boolean;
577
577
  isRefetching: boolean;
578
578
  refetch: (queryParams?: {
579
579
  query?: SessionQueryParams;
580
580
  } | undefined) => void;
581
581
  }> & object;
582
- listOrganizations: nanostores3.PreinitializedWritableAtom<{
582
+ listOrganizations: nanostores1.PreinitializedWritableAtom<{
583
583
  data: ({
584
584
  id: string;
585
585
  name: string;
@@ -588,14 +588,14 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
588
588
  logo?: string | null | undefined;
589
589
  metadata?: any;
590
590
  } & InferAdditionalFieldsFromPluginOptions<"organization", CO, false> extends infer T_1 ? { [K in keyof T_1]: T_1[K] } : never)[] | null;
591
- error: null | _better_fetch_fetch53.BetterFetchError;
591
+ error: null | _better_fetch_fetch37.BetterFetchError;
592
592
  isPending: boolean;
593
593
  isRefetching: boolean;
594
594
  refetch: (queryParams?: {
595
595
  query?: SessionQueryParams;
596
596
  } | undefined) => void;
597
597
  }> & object;
598
- activeMember: nanostores3.PreinitializedWritableAtom<{
598
+ activeMember: nanostores1.PreinitializedWritableAtom<{
599
599
  data: {
600
600
  id: string;
601
601
  organizationId: string;
@@ -603,18 +603,18 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
603
603
  role: string;
604
604
  createdAt: Date;
605
605
  } | null;
606
- error: null | _better_fetch_fetch53.BetterFetchError;
606
+ error: null | _better_fetch_fetch37.BetterFetchError;
607
607
  isPending: boolean;
608
608
  isRefetching: boolean;
609
609
  refetch: (queryParams?: {
610
610
  query?: SessionQueryParams;
611
611
  } | undefined) => void;
612
612
  }> & object;
613
- activeMemberRole: nanostores3.PreinitializedWritableAtom<{
613
+ activeMemberRole: nanostores1.PreinitializedWritableAtom<{
614
614
  data: {
615
615
  role: string;
616
616
  } | null;
617
- error: null | _better_fetch_fetch53.BetterFetchError;
617
+ error: null | _better_fetch_fetch37.BetterFetchError;
618
618
  isPending: boolean;
619
619
  isRefetching: boolean;
620
620
  refetch: (queryParams?: {
@@ -912,16 +912,16 @@ declare const passkeyClient: () => {
912
912
  };
913
913
  };
914
914
  getAtoms($fetch: BetterFetch): {
915
- listPasskeys: nanostores3.PreinitializedWritableAtom<{
915
+ listPasskeys: nanostores1.PreinitializedWritableAtom<{
916
916
  data: Passkey[] | null;
917
- error: null | _better_fetch_fetch53.BetterFetchError;
917
+ error: null | _better_fetch_fetch37.BetterFetchError;
918
918
  isPending: boolean;
919
919
  isRefetching: boolean;
920
920
  refetch: (queryParams?: {
921
921
  query?: SessionQueryParams;
922
922
  } | undefined) => void;
923
923
  }> & object;
924
- $listPasskeys: nanostores3.PreinitializedWritableAtom<any> & object;
924
+ $listPasskeys: nanostores1.PreinitializedWritableAtom<any> & object;
925
925
  };
926
926
  pathMethods: {
927
927
  "/passkey/register": "POST";
@@ -5,7 +5,7 @@ import "../../index-Df0KhQRf-BEa5tdwJ.mjs";
5
5
  import "../../plugins-Dy_FrD4Y.mjs";
6
6
  import { PayvoAuthClientOptions, PayvoAuthClientPlugin } from "@gatwech/core";
7
7
  import { BASE_ERROR_CODES } from "@gatwech/core/error";
8
- import * as _better_fetch_fetch2 from "@better-fetch/fetch";
8
+ import * as _better_fetch_fetch0 from "@better-fetch/fetch";
9
9
  import { BetterFetchError } from "@better-fetch/fetch";
10
10
  import * as nanostores0 from "nanostores";
11
11
  import { Store, StoreValue } from "nanostores";
@@ -97,27 +97,27 @@ declare function createAuthClient<Option extends PayvoAuthClientOptions>(options
97
97
  error: null;
98
98
  } ? S : Res : never>;
99
99
  };
100
- $fetch: _better_fetch_fetch2.BetterFetch<{
101
- plugins: (_better_fetch_fetch2.BetterFetchPlugin | {
100
+ $fetch: _better_fetch_fetch0.BetterFetch<{
101
+ plugins: (_better_fetch_fetch0.BetterFetchPlugin | {
102
102
  id: string;
103
103
  name: string;
104
104
  hooks: {
105
- onSuccess(context: _better_fetch_fetch2.SuccessContext<any>): void;
105
+ onSuccess(context: _better_fetch_fetch0.SuccessContext<any>): void;
106
106
  };
107
107
  } | {
108
108
  id: string;
109
109
  name: string;
110
110
  hooks: {
111
- onRequest<T extends Record<string, any>>(context: _better_fetch_fetch2.RequestContext<T>): void;
111
+ onRequest<T extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T>): void;
112
112
  };
113
113
  } | {
114
114
  id: string;
115
115
  name: string;
116
116
  hooks: {
117
- onSuccess: ((context: _better_fetch_fetch2.SuccessContext<any>) => Promise<void> | void) | undefined;
118
- onError: ((context: _better_fetch_fetch2.ErrorContext) => Promise<void> | void) | undefined;
119
- onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch2.RequestContext<T>) => Promise<_better_fetch_fetch2.RequestContext | void> | _better_fetch_fetch2.RequestContext | void) | undefined;
120
- onResponse: ((context: _better_fetch_fetch2.ResponseContext) => Promise<Response | void | _better_fetch_fetch2.ResponseContext> | Response | _better_fetch_fetch2.ResponseContext | void) | undefined;
117
+ onSuccess: ((context: _better_fetch_fetch0.SuccessContext<any>) => Promise<void> | void) | undefined;
118
+ onError: ((context: _better_fetch_fetch0.ErrorContext) => Promise<void> | void) | undefined;
119
+ onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T>) => Promise<_better_fetch_fetch0.RequestContext | void> | _better_fetch_fetch0.RequestContext | void) | undefined;
120
+ onResponse: ((context: _better_fetch_fetch0.ResponseContext) => Promise<Response | void | _better_fetch_fetch0.ResponseContext> | Response | _better_fetch_fetch0.ResponseContext | void) | undefined;
121
121
  };
122
122
  })[];
123
123
  method: string;
@@ -137,12 +137,12 @@ declare function createAuthClient<Option extends PayvoAuthClientOptions>(options
137
137
  referrerPolicy?: ReferrerPolicy | undefined;
138
138
  signal?: (AbortSignal | null) | undefined;
139
139
  window?: null | undefined;
140
- onRetry?: ((response: _better_fetch_fetch2.ResponseContext) => Promise<void> | void) | undefined;
140
+ onRetry?: ((response: _better_fetch_fetch0.ResponseContext) => Promise<void> | void) | undefined;
141
141
  hookOptions?: {
142
142
  cloneResponse?: boolean;
143
143
  } | undefined;
144
144
  timeout?: number | undefined;
145
- customFetchImpl: _better_fetch_fetch2.FetchEsque;
145
+ customFetchImpl: _better_fetch_fetch0.FetchEsque;
146
146
  baseURL: string;
147
147
  throw?: boolean | undefined;
148
148
  auth?: ({
@@ -162,10 +162,10 @@ declare function createAuthClient<Option extends PayvoAuthClientOptions>(options
162
162
  params?: any;
163
163
  duplex?: "full" | "half" | undefined;
164
164
  jsonParser: (text: string) => Promise<any> | any;
165
- retry?: _better_fetch_fetch2.RetryOptions | undefined;
165
+ retry?: _better_fetch_fetch0.RetryOptions | undefined;
166
166
  retryAttempt?: number | undefined;
167
- output?: (_better_fetch_fetch2.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
168
- errorSchema?: _better_fetch_fetch2.StandardSchemaV1 | undefined;
167
+ output?: (_better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
168
+ errorSchema?: _better_fetch_fetch0.StandardSchemaV1 | undefined;
169
169
  disableValidation?: boolean | undefined;
170
170
  }, unknown, unknown, {}>;
171
171
  $store: {
@@ -1,5 +1,5 @@
1
- import { c as sentinel } from "./index-DRM35ir1.mjs";
2
- import * as _better_fetch_fetch0 from "@better-fetch/fetch";
1
+ import { c as sentinel } from "./index-D57DuhZR.mjs";
2
+ import * as _better_fetch_fetch16 from "@better-fetch/fetch";
3
3
 
4
4
  //#region src/plugins/sentinel/client.d.ts
5
5
  declare const sentinelClient: (options?: {
@@ -63,11 +63,11 @@ declare const sentinelClient: (options?: {
63
63
  id: string;
64
64
  name: string;
65
65
  hooks: {
66
- onRequest<T extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T>): Promise<_better_fetch_fetch0.RequestContext<T>>;
66
+ onRequest<T extends Record<string, any>>(context: _better_fetch_fetch16.RequestContext<T>): Promise<_better_fetch_fetch16.RequestContext<T>>;
67
67
  onResponse({
68
68
  response,
69
69
  request
70
- }: _better_fetch_fetch0.ResponseContext): Promise<Response | undefined>;
70
+ }: _better_fetch_fetch16.ResponseContext): Promise<Response | undefined>;
71
71
  };
72
72
  }[];
73
73
  };
@@ -1,4 +1,4 @@
1
- import { n as auditLog } from "./index-DRM35ir1.mjs";
1
+ import { n as auditLog } from "./index-D57DuhZR.mjs";
2
2
 
3
3
  //#region src/plugins/audit-log/client.d.ts
4
4
  declare const auditLogClient: () => {
@@ -1,4 +1,4 @@
1
- import * as better_call160 from "better-call";
1
+ import * as better_call131 from "better-call";
2
2
  import * as z$1 from "zod";
3
3
 
4
4
  //#region src/plugins/magic-link/index.d.ts
@@ -89,7 +89,7 @@ declare const magicLink: (options: MagicLinkopts) => {
89
89
  } & {
90
90
  asResponse?: boolean;
91
91
  returnHeaders?: boolean;
92
- use?: better_call160.Middleware[];
92
+ use?: better_call131.Middleware[];
93
93
  path?: string;
94
94
  } & {
95
95
  asResponse?: AsResponse | undefined;
@@ -175,7 +175,7 @@ declare const magicLink: (options: MagicLinkopts) => {
175
175
  } & {
176
176
  asResponse?: boolean;
177
177
  returnHeaders?: boolean;
178
- use?: better_call160.Middleware[];
178
+ use?: better_call131.Middleware[];
179
179
  path?: string;
180
180
  } & {
181
181
  asResponse?: AsResponse | undefined;
@@ -214,7 +214,7 @@ declare const magicLink: (options: MagicLinkopts) => {
214
214
  errorCallbackURL: z$1.ZodOptional<z$1.ZodString>;
215
215
  newUserCallbackURL: z$1.ZodOptional<z$1.ZodString>;
216
216
  }, z$1.core.$strip>;
217
- use: ((inputContext: better_call160.MiddlewareInputContext<better_call160.MiddlewareOptions>) => Promise<void>)[];
217
+ use: ((inputContext: better_call131.MiddlewareInputContext<better_call131.MiddlewareOptions>) => Promise<void>)[];
218
218
  requireHeaders: true;
219
219
  metadata: {
220
220
  openapi: {
@@ -1,5 +1,5 @@
1
1
  import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
2
- import * as better_call114 from "better-call";
2
+ import * as better_call43 from "better-call";
3
3
  import * as z$1 from "zod";
4
4
  import * as _simplewebauthn_server0 from "@simplewebauthn/server";
5
5
  import { AuthenticationResponseJSON, CredentialDeviceType, PublicKeyCredentialCreationOptionsJSON } from "@simplewebauthn/server";
@@ -139,7 +139,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
139
139
  } & {
140
140
  asResponse?: boolean;
141
141
  returnHeaders?: boolean;
142
- use?: better_call114.Middleware[];
142
+ use?: better_call43.Middleware[];
143
143
  path?: string;
144
144
  } & {
145
145
  asResponse?: AsResponse | undefined;
@@ -150,7 +150,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
150
150
  } : PublicKeyCredentialCreationOptionsJSON>;
151
151
  options: {
152
152
  method: "GET";
153
- use: ((inputContext: better_call114.MiddlewareInputContext<better_call114.MiddlewareOptions>) => Promise<{
153
+ use: ((inputContext: better_call43.MiddlewareInputContext<better_call43.MiddlewareOptions>) => Promise<{
154
154
  session: {
155
155
  session: Record<string, any> & {
156
156
  id: string;
@@ -318,7 +318,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
318
318
  } & {
319
319
  asResponse?: boolean;
320
320
  returnHeaders?: boolean;
321
- use?: better_call114.Middleware[];
321
+ use?: better_call43.Middleware[];
322
322
  path?: string;
323
323
  } & {
324
324
  asResponse?: AsResponse | undefined;
@@ -443,7 +443,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
443
443
  } & {
444
444
  asResponse?: boolean;
445
445
  returnHeaders?: boolean;
446
- use?: better_call114.Middleware[];
446
+ use?: better_call43.Middleware[];
447
447
  path?: string;
448
448
  } & {
449
449
  asResponse?: AsResponse | undefined;
@@ -458,7 +458,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
458
458
  response: z$1.ZodAny;
459
459
  name: z$1.ZodOptional<z$1.ZodString>;
460
460
  }, z$1.core.$strip>;
461
- use: ((inputContext: better_call114.MiddlewareInputContext<better_call114.MiddlewareOptions>) => Promise<{
461
+ use: ((inputContext: better_call43.MiddlewareInputContext<better_call43.MiddlewareOptions>) => Promise<{
462
462
  session: {
463
463
  session: Record<string, any> & {
464
464
  id: string;
@@ -524,7 +524,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
524
524
  } & {
525
525
  asResponse?: boolean;
526
526
  returnHeaders?: boolean;
527
- use?: better_call114.Middleware[];
527
+ use?: better_call43.Middleware[];
528
528
  path?: string;
529
529
  } & {
530
530
  asResponse?: AsResponse | undefined;
@@ -626,7 +626,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
626
626
  } & {
627
627
  asResponse?: boolean;
628
628
  returnHeaders?: boolean;
629
- use?: better_call114.Middleware[];
629
+ use?: better_call43.Middleware[];
630
630
  path?: string;
631
631
  } & {
632
632
  asResponse?: AsResponse | undefined;
@@ -637,7 +637,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
637
637
  } : Passkey[]>;
638
638
  options: {
639
639
  method: "GET";
640
- use: ((inputContext: better_call114.MiddlewareInputContext<better_call114.MiddlewareOptions>) => Promise<{
640
+ use: ((inputContext: better_call43.MiddlewareInputContext<better_call43.MiddlewareOptions>) => Promise<{
641
641
  session: {
642
642
  session: Record<string, any> & {
643
643
  id: string;
@@ -720,7 +720,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
720
720
  } & {
721
721
  asResponse?: boolean;
722
722
  returnHeaders?: boolean;
723
- use?: better_call114.Middleware[];
723
+ use?: better_call43.Middleware[];
724
724
  path?: string;
725
725
  } & {
726
726
  asResponse?: AsResponse | undefined;
@@ -734,7 +734,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
734
734
  body: z$1.ZodObject<{
735
735
  id: z$1.ZodString;
736
736
  }, z$1.core.$strip>;
737
- use: ((inputContext: better_call114.MiddlewareInputContext<better_call114.MiddlewareOptions>) => Promise<{
737
+ use: ((inputContext: better_call43.MiddlewareInputContext<better_call43.MiddlewareOptions>) => Promise<{
738
738
  session: {
739
739
  session: Record<string, any> & {
740
740
  id: string;
@@ -820,7 +820,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
820
820
  } & {
821
821
  asResponse?: boolean;
822
822
  returnHeaders?: boolean;
823
- use?: better_call114.Middleware[];
823
+ use?: better_call43.Middleware[];
824
824
  path?: string;
825
825
  } & {
826
826
  asResponse?: AsResponse | undefined;
@@ -839,7 +839,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
839
839
  id: z$1.ZodString;
840
840
  name: z$1.ZodString;
841
841
  }, z$1.core.$strip>;
842
- use: ((inputContext: better_call114.MiddlewareInputContext<better_call114.MiddlewareOptions>) => Promise<{
842
+ use: ((inputContext: better_call43.MiddlewareInputContext<better_call43.MiddlewareOptions>) => Promise<{
843
843
  session: {
844
844
  session: Record<string, any> & {
845
845
  id: string;