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

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 (148) hide show
  1. package/dist/adapters/drizzle-adapter/index.mjs +11 -2
  2. package/dist/adapters/index.d.mts +2 -2
  3. package/dist/adapters/kysely-adapter/index.mjs +1 -1
  4. package/dist/adapters/memory-adapter/index.d.mts +1 -1
  5. package/dist/adapters/memory-adapter/index.mjs +2 -2
  6. package/dist/adapters/prisma-adapter/index.mjs +1 -1
  7. package/dist/{admin-BzUJL6tr.mjs → admin-rd-xHhnP.mjs} +1 -1
  8. package/dist/{anonymous-BjlTk4gl.mjs → anonymous-qSasVeIe.mjs} +1 -1
  9. package/dist/api/index.d.mts +2 -2
  10. package/dist/api/index.mjs +2 -2
  11. package/dist/{api-Dk8Yj_J5.mjs → api-BV65Y-Rk.mjs} +5 -0
  12. package/dist/{audit-log-DKsUWR8O.mjs → audit-log-DgqHJ-uv.mjs} +132 -63
  13. package/dist/{auth-vfCyIIeV.mjs → auth-DtOjarwu.mjs} +15 -2
  14. package/dist/client/index.d.mts +2 -2
  15. package/dist/client/plugins/index.d.mts +28 -28
  16. package/dist/client/plugins/index.mjs +2 -2
  17. package/dist/client/react/index.d.mts +2 -2
  18. package/dist/{client-4QEb0rUr.mjs → client-CMsC6-rl.mjs} +1 -1
  19. package/dist/{client-C_qmyez2.d.mts → client-DO9MgP_0.d.mts} +1 -1
  20. package/dist/{client-F67q-Lbi.d.mts → client-ukvqpcbI.d.mts} +1 -1
  21. package/dist/cookies/index.d.mts +3 -3
  22. package/dist/db/index.d.mts +2 -2
  23. package/dist/db/index.mjs +1 -1
  24. package/dist/{db-7vHnL1XA.mjs → db-CV59HpEF.mjs} +2 -2
  25. package/dist/{email-otp-Dw0DypjQ.mjs → email-otp-BmgAht1S.mjs} +1 -1
  26. package/dist/{generic-oauth-DFj27JY8.mjs → generic-oauth-C5_AXj2z.mjs} +1 -1
  27. package/dist/{haveibeenpwned-CzNda7Tn.mjs → haveibeenpwned-_3a5amT-.mjs} +1 -1
  28. package/dist/{index-D57DuhZR.d.mts → index-AiKdOFSd.d.mts} +116 -64
  29. package/dist/{index-Bml-PCqP.d.mts → index-B4hJVVRn.d.mts} +19 -19
  30. package/dist/{index-DwPAddfE.d.mts → index-BC0aAKsT.d.mts} +3 -3
  31. package/dist/{index-Df0KhQRf-BEa5tdwJ.d.mts → index-BL_t8cRp-C4QYBsac.d.mts} +56 -17
  32. package/dist/{index-DyXi7S2M.d.mts → index-BfLofiXO.d.mts} +10 -10
  33. package/dist/{index-CP8x1TFq.d.mts → index-BzzhaGLe.d.mts} +6 -6
  34. package/dist/{index-DFSRYWFI.d.mts → index-CBGNX7W1.d.mts} +6 -6
  35. package/dist/{index-CofuaNMl.d.mts → index-CRNh-5Tc.d.mts} +7 -7
  36. package/dist/{index-CNd5jqLl.d.mts → index-CRiKKdkb.d.mts} +6 -6
  37. package/dist/{index-CsxtcAO0.d.mts → index-CTSeVJJB.d.mts} +1 -1
  38. package/dist/{index-sb-UFLuo.d.mts → index-CxhQu1HM.d.mts} +2 -2
  39. package/dist/{index-Dnd8S4S4.d.mts → index-D-rjuF7p.d.mts} +9 -9
  40. package/dist/{index-XfE0WjTN.d.mts → index-D3uQsW8T.d.mts} +34 -34
  41. package/dist/{index-4I1YhYhk.d.mts → index-DKirx_GW.d.mts} +4 -4
  42. package/dist/{index-KhbNmMmG.d.mts → index-DSoiUc1C.d.mts} +167 -167
  43. package/dist/{index-DTkcY7xH.d.mts → index-Dkm27DLN.d.mts} +10 -10
  44. package/dist/{index-BsSKcKgO.d.mts → index-Dl0bD1_6.d.mts} +6 -6
  45. package/dist/{index-DGeoJ4gu.d.mts → index-DlS-HqZR.d.mts} +2 -2
  46. package/dist/{index-BNhJglHC.d.mts → index-DngQlUSI.d.mts} +114 -114
  47. package/dist/{index-CC920PPp.d.mts → index-Do8AV4PF.d.mts} +14 -14
  48. package/dist/{index-CBiGsvDd.d.mts → index-SYRh5FW7.d.mts} +8 -8
  49. package/dist/{index-BX7rl07Z.d.mts → index-eOfQxlQV.d.mts} +13 -13
  50. package/dist/{index-D6ku0rUC.d.mts → index-hP8gvyp-.d.mts} +5 -5
  51. package/dist/{index-CzpdkTdv.d.mts → index-pdl9MzQu.d.mts} +9 -9
  52. package/dist/index.d.mts +2 -2
  53. package/dist/index.mjs +4 -4
  54. package/dist/integrations/next-js.d.mts +4 -4
  55. package/dist/integrations/node.d.mts +2 -2
  56. package/dist/integrations/react-start.d.mts +4 -4
  57. package/dist/{jwt-DBN2mu0r.mjs → jwt-Czv-v097.mjs} +1 -1
  58. package/dist/{kysely-adapter-Bkm1liPW.mjs → kysely-adapter-BidlNTiV.mjs} +4 -2
  59. package/dist/{magic-link-D9Em1aOR.mjs → magic-link-CJgE0Ngn.mjs} +1 -1
  60. package/dist/{multi-session-Dno_8DxC.mjs → multi-session-bveCXtQW.mjs} +1 -1
  61. package/dist/{oauth-proxy-DW-zt8wv.mjs → oauth-proxy-69n1xA8L.mjs} +1 -1
  62. package/dist/oauth2/index.d.mts +2 -2
  63. package/dist/oauth2/index.mjs +2 -2
  64. package/dist/{one-tap-CodeyQb8.mjs → one-tap-Cm1eHuqi.mjs} +1 -1
  65. package/dist/{organization-CkTKs7bx.mjs → organization-BK3ks97y.mjs} +2 -2
  66. package/dist/plugins/admin/index.d.mts +3 -3
  67. package/dist/plugins/admin/index.mjs +3 -3
  68. package/dist/plugins/anonymous/index.d.mts +3 -3
  69. package/dist/plugins/anonymous/index.mjs +3 -3
  70. package/dist/plugins/audit-log/client.d.mts +24 -24
  71. package/dist/plugins/audit-log/index.d.mts +23 -23
  72. package/dist/plugins/audit-log/index.mjs +3 -3
  73. package/dist/plugins/bearer/index.d.mts +1 -1
  74. package/dist/plugins/captcha/index.d.mts +1 -1
  75. package/dist/plugins/custom-session/index.d.mts +3 -3
  76. package/dist/plugins/custom-session/index.mjs +2 -2
  77. package/dist/plugins/device-authorization/index.d.mts +1 -1
  78. package/dist/plugins/device-authorization/index.mjs +1 -1
  79. package/dist/plugins/email-otp/index.d.mts +2 -2
  80. package/dist/plugins/email-otp/index.mjs +3 -3
  81. package/dist/plugins/generic-oauth/index.d.mts +3 -3
  82. package/dist/plugins/generic-oauth/index.mjs +3 -3
  83. package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
  84. package/dist/plugins/haveibeenpwned/index.mjs +3 -3
  85. package/dist/plugins/index.d.mts +23 -23
  86. package/dist/plugins/index.mjs +18 -18
  87. package/dist/plugins/jwt/index.d.mts +3 -3
  88. package/dist/plugins/jwt/index.mjs +3 -3
  89. package/dist/plugins/magic-link/index.d.mts +1 -1
  90. package/dist/plugins/magic-link/index.mjs +3 -3
  91. package/dist/plugins/multi-session/index.d.mts +2 -2
  92. package/dist/plugins/multi-session/index.mjs +3 -3
  93. package/dist/plugins/oauth-proxy/index.d.mts +1 -1
  94. package/dist/plugins/oauth-proxy/index.mjs +3 -3
  95. package/dist/plugins/one-tap/index.d.mts +1 -1
  96. package/dist/plugins/one-tap/index.mjs +3 -3
  97. package/dist/plugins/one-time-token/index.d.mts +3 -3
  98. package/dist/plugins/one-time-token/index.mjs +18 -18
  99. package/dist/plugins/organization/index.d.mts +3 -3
  100. package/dist/plugins/organization/index.mjs +3 -3
  101. package/dist/plugins/passkey/index.d.mts +3 -3
  102. package/dist/plugins/passkey/index.mjs +2 -2
  103. package/dist/plugins/phone-number/index.d.mts +3 -3
  104. package/dist/plugins/phone-number/index.mjs +2 -2
  105. package/dist/plugins/sentinel/client.d.mts +24 -24
  106. package/dist/plugins/sentinel/client.mjs +2 -2
  107. package/dist/plugins/sentinel/index.d.mts +23 -23
  108. package/dist/plugins/sentinel/index.mjs +5 -5
  109. package/dist/plugins/two-factor/index.d.mts +3 -3
  110. package/dist/plugins/two-factor/index.mjs +2 -2
  111. package/dist/plugins/username/index.d.mts +1 -1
  112. package/dist/plugins/username/index.mjs +3 -3
  113. package/dist/{plugins-yF8CFUDR.mjs → plugins-RSPSU3ro.mjs} +1 -1
  114. package/dist/{pow-OK01yPG3.mjs → pow-DvkUopsK.mjs} +17 -1
  115. package/dist/{sentinel-DiPqydKG.mjs → sentinel-B-2jmmZh.mjs} +325 -98
  116. package/dist/src/adapters/memory-adapter/memory-adapter.d.ts +1 -1
  117. package/dist/src/adapters/prisma-adapter/test/auth.d.ts +1 -1
  118. package/dist/src/adapters/tests/auth-flow.d.ts +3 -3
  119. package/dist/src/adapters/tests/normal.d.ts +10 -2
  120. package/dist/src/adapters/tests/number-id.d.ts +4 -4
  121. package/dist/src/adapters/tests/performance.d.ts +3 -3
  122. package/dist/src/adapters/tests/transactions.d.ts +3 -3
  123. package/dist/src/api/index.d.ts +8 -8
  124. package/dist/src/plugins/admin/admin.d.ts +2 -2
  125. package/dist/src/plugins/api-key/index.d.ts +2 -2
  126. package/dist/src/plugins/audit-log/index.d.ts +5 -14
  127. package/dist/src/plugins/audit-log/remote.d.ts +4 -4
  128. package/dist/src/plugins/audit-log/types.d.ts +22 -0
  129. package/dist/src/plugins/email-otp/index.d.ts +1 -1
  130. package/dist/src/plugins/multi-session/index.d.ts +8 -8
  131. package/dist/src/plugins/organization/routes/crud-access-control.d.ts +8 -8
  132. package/dist/src/plugins/organization/routes/crud-invites.d.ts +46 -46
  133. package/dist/src/plugins/organization/routes/crud-members.d.ts +40 -40
  134. package/dist/src/plugins/organization/routes/crud-org.d.ts +36 -36
  135. package/dist/src/plugins/organization/routes/crud-team.d.ts +50 -50
  136. package/dist/src/plugins/sentinel/geo.d.ts +11 -0
  137. package/dist/src/plugins/sentinel/index.d.ts +7 -0
  138. package/dist/src/plugins/sentinel/intel.d.ts +8 -1
  139. package/dist/src/plugins/sentinel/memory-cache.d.ts +12 -0
  140. package/dist/src/plugins/sentinel/schema.d.ts +4 -0
  141. package/dist/src/plugins/sentinel/store.d.ts +7 -0
  142. package/dist/src/plugins/sentinel/types.d.ts +29 -1
  143. package/dist/src/test-utils/test-instance.d.ts +25 -25
  144. package/dist/test-utils/index.d.mts +277 -277
  145. package/dist/test-utils/index.mjs +20 -20
  146. package/dist/types/index.d.mts +2 -2
  147. package/dist/{username-BHNvcvsY.mjs → username-DCp6yugu.mjs} +1 -1
  148. package/package.json +3 -3
@@ -1,6 +1,6 @@
1
- import { s as User } from "./index-Df0KhQRf-BEa5tdwJ.mjs";
2
- import * as _gatwech_core49 from "@gatwech/core";
3
- import * as better_call121 from "better-call";
1
+ import { s as User } from "./index-BL_t8cRp-C4QYBsac.mjs";
2
+ import * as _gatwech_core7 from "@gatwech/core";
3
+ import * as better_call106 from "better-call";
4
4
  import * as z$1 from "zod";
5
5
 
6
6
  //#region src/plugins/email-otp/index.d.ts
@@ -71,7 +71,7 @@ interface EmailOTPOptions {
71
71
  }
72
72
  declare const emailOTP: (options: EmailOTPOptions) => {
73
73
  id: "email-otp";
74
- init(ctx: _gatwech_core49.AuthContext<_gatwech_core49.PayvoAuthOptions>): {
74
+ init(ctx: _gatwech_core7.AuthContext<_gatwech_core7.PayvoAuthOptions>): {
75
75
  options: {
76
76
  emailVerification: {
77
77
  sendVerificationEmail(data: {
@@ -102,7 +102,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
102
102
  } & {
103
103
  asResponse?: boolean;
104
104
  returnHeaders?: boolean;
105
- use?: better_call121.Middleware[];
105
+ use?: better_call106.Middleware[];
106
106
  path?: string;
107
107
  } & {
108
108
  asResponse?: AsResponse | undefined;
@@ -175,7 +175,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
175
175
  } & {
176
176
  asResponse?: boolean;
177
177
  returnHeaders?: boolean;
178
- use?: better_call121.Middleware[];
178
+ use?: better_call106.Middleware[];
179
179
  path?: string;
180
180
  } & {
181
181
  asResponse?: AsResponse | undefined;
@@ -265,7 +265,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
265
265
  } & {
266
266
  asResponse?: boolean;
267
267
  returnHeaders?: boolean;
268
- use?: better_call121.Middleware[];
268
+ use?: better_call106.Middleware[];
269
269
  path?: string;
270
270
  } & {
271
271
  asResponse?: AsResponse | undefined;
@@ -350,7 +350,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
350
350
  } & {
351
351
  asResponse?: boolean;
352
352
  returnHeaders?: boolean;
353
- use?: better_call121.Middleware[];
353
+ use?: better_call106.Middleware[];
354
354
  path?: string;
355
355
  } & {
356
356
  asResponse?: AsResponse | undefined;
@@ -485,7 +485,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
485
485
  } & {
486
486
  asResponse?: boolean;
487
487
  returnHeaders?: boolean;
488
- use?: better_call121.Middleware[];
488
+ use?: better_call106.Middleware[];
489
489
  path?: string;
490
490
  } & {
491
491
  asResponse?: AsResponse | undefined;
@@ -587,7 +587,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
587
587
  } & {
588
588
  asResponse?: boolean;
589
589
  returnHeaders?: boolean;
590
- use?: better_call121.Middleware[];
590
+ use?: better_call106.Middleware[];
591
591
  path?: string;
592
592
  } & {
593
593
  asResponse?: AsResponse | undefined;
@@ -668,7 +668,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
668
668
  } & {
669
669
  asResponse?: boolean;
670
670
  returnHeaders?: boolean;
671
- use?: better_call121.Middleware[];
671
+ use?: better_call106.Middleware[];
672
672
  path?: string;
673
673
  } & {
674
674
  asResponse?: AsResponse | undefined;
@@ -749,7 +749,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
749
749
  } & {
750
750
  asResponse?: boolean;
751
751
  returnHeaders?: boolean;
752
- use?: better_call121.Middleware[];
752
+ use?: better_call106.Middleware[];
753
753
  path?: string;
754
754
  } & {
755
755
  asResponse?: AsResponse | undefined;
@@ -802,8 +802,8 @@ declare const emailOTP: (options: EmailOTPOptions) => {
802
802
  };
803
803
  hooks: {
804
804
  after: {
805
- matcher(context: _gatwech_core49.HookEndpointContext): boolean;
806
- handler: (inputContext: better_call121.MiddlewareInputContext<better_call121.MiddlewareOptions>) => Promise<void>;
805
+ matcher(context: _gatwech_core7.HookEndpointContext): boolean;
806
+ handler: (inputContext: better_call106.MiddlewareInputContext<better_call106.MiddlewareOptions>) => Promise<void>;
807
807
  }[];
808
808
  };
809
809
  $ERROR_CODES: {
@@ -1,9 +1,9 @@
1
- import { g as User } from "./index-BNhJglHC.mjs";
2
- import * as _gatwech_core27 from "@gatwech/core";
1
+ import { g as User } from "./index-DngQlUSI.mjs";
2
+ import * as _gatwech_core1 from "@gatwech/core";
3
3
  import { GenericEndpointContext } from "@gatwech/core";
4
4
  import * as _gatwech_core_oauth20 from "@gatwech/core/oauth2";
5
5
  import { OAuth2Tokens, OAuth2UserInfo, OAuthProvider } from "@gatwech/core/oauth2";
6
- import * as better_call71 from "better-call";
6
+ import * as better_call101 from "better-call";
7
7
  import * as z$1 from "zod";
8
8
 
9
9
  //#region src/plugins/generic-oauth/index.d.ts
@@ -136,7 +136,7 @@ interface GenericOAuthOptions {
136
136
  */
137
137
  declare const genericOAuth: (options: GenericOAuthOptions) => {
138
138
  id: "generic-oauth";
139
- init: (ctx: _gatwech_core27.AuthContext<_gatwech_core27.PayvoAuthOptions>) => {
139
+ init: (ctx: _gatwech_core1.AuthContext<_gatwech_core1.PayvoAuthOptions>) => {
140
140
  context: {
141
141
  socialProviders: OAuthProvider<Record<string, any>, Partial<_gatwech_core_oauth20.ProviderOptions<any>>>[];
142
142
  };
@@ -182,7 +182,7 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
182
182
  } & {
183
183
  asResponse?: boolean;
184
184
  returnHeaders?: boolean;
185
- use?: better_call71.Middleware[];
185
+ use?: better_call101.Middleware[];
186
186
  path?: string;
187
187
  } & {
188
188
  asResponse?: AsResponse | undefined;
@@ -262,7 +262,7 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
262
262
  } & {
263
263
  asResponse?: boolean;
264
264
  returnHeaders?: boolean;
265
- use?: better_call71.Middleware[];
265
+ use?: better_call101.Middleware[];
266
266
  path?: string;
267
267
  } & {
268
268
  asResponse?: AsResponse | undefined;
@@ -343,7 +343,7 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
343
343
  } & {
344
344
  asResponse?: boolean;
345
345
  returnHeaders?: boolean;
346
- use?: better_call71.Middleware[];
346
+ use?: better_call101.Middleware[];
347
347
  path?: string;
348
348
  } & {
349
349
  asResponse?: AsResponse | undefined;
@@ -366,7 +366,7 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
366
366
  scopes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
367
367
  errorCallbackURL: z$1.ZodOptional<z$1.ZodString>;
368
368
  }, z$1.core.$strip>;
369
- use: ((inputContext: better_call71.MiddlewareInputContext<better_call71.MiddlewareOptions>) => Promise<{
369
+ use: ((inputContext: better_call101.MiddlewareInputContext<better_call101.MiddlewareOptions>) => Promise<{
370
370
  session: {
371
371
  session: Record<string, any> & {
372
372
  id: string;
@@ -1,5 +1,5 @@
1
1
  import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
2
- import * as better_call43 from "better-call";
2
+ import * as better_call212 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_call43.Middleware[];
142
+ use?: better_call212.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_call43.MiddlewareInputContext<better_call43.MiddlewareOptions>) => Promise<{
153
+ use: ((inputContext: better_call212.MiddlewareInputContext<better_call212.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_call43.Middleware[];
321
+ use?: better_call212.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_call43.Middleware[];
446
+ use?: better_call212.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_call43.MiddlewareInputContext<better_call43.MiddlewareOptions>) => Promise<{
461
+ use: ((inputContext: better_call212.MiddlewareInputContext<better_call212.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_call43.Middleware[];
527
+ use?: better_call212.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_call43.Middleware[];
629
+ use?: better_call212.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_call43.MiddlewareInputContext<better_call43.MiddlewareOptions>) => Promise<{
640
+ use: ((inputContext: better_call212.MiddlewareInputContext<better_call212.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_call43.Middleware[];
723
+ use?: better_call212.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_call43.MiddlewareInputContext<better_call43.MiddlewareOptions>) => Promise<{
737
+ use: ((inputContext: better_call212.MiddlewareInputContext<better_call212.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_call43.Middleware[];
823
+ use?: better_call212.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_call43.MiddlewareInputContext<better_call43.MiddlewareOptions>) => Promise<{
842
+ use: ((inputContext: better_call212.MiddlewareInputContext<better_call212.MiddlewareOptions>) => Promise<{
843
843
  session: {
844
844
  session: Record<string, any> & {
845
845
  id: string;
@@ -1,6 +1,6 @@
1
- import { g as User, h as Session } from "./index-BNhJglHC.mjs";
1
+ import { g as User, h as Session } from "./index-DngQlUSI.mjs";
2
2
  import { GenericEndpointContext } from "@gatwech/core";
3
- import * as better_call109 from "better-call";
3
+ import * as better_call150 from "better-call";
4
4
  import * as z$1 from "zod";
5
5
 
6
6
  //#region src/plugins/one-time-token/index.d.ts
@@ -67,7 +67,7 @@ declare const oneTimeToken: (options?: OneTimeTokenOptions | undefined) => {
67
67
  } & {
68
68
  asResponse?: boolean;
69
69
  returnHeaders?: boolean;
70
- use?: better_call109.Middleware[];
70
+ use?: better_call150.Middleware[];
71
71
  path?: string;
72
72
  } & {
73
73
  asResponse?: AsResponse | undefined;
@@ -82,7 +82,7 @@ declare const oneTimeToken: (options?: OneTimeTokenOptions | undefined) => {
82
82
  }>;
83
83
  options: {
84
84
  method: "GET";
85
- use: ((inputContext: better_call109.MiddlewareInputContext<better_call109.MiddlewareOptions>) => Promise<{
85
+ use: ((inputContext: better_call150.MiddlewareInputContext<better_call150.MiddlewareOptions>) => Promise<{
86
86
  session: {
87
87
  session: Record<string, any> & {
88
88
  id: string;
@@ -143,7 +143,7 @@ declare const oneTimeToken: (options?: OneTimeTokenOptions | undefined) => {
143
143
  } & {
144
144
  asResponse?: boolean;
145
145
  returnHeaders?: boolean;
146
- use?: better_call109.Middleware[];
146
+ use?: better_call150.Middleware[];
147
147
  path?: string;
148
148
  } & {
149
149
  asResponse?: AsResponse | undefined;
@@ -1,6 +1,6 @@
1
1
  import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
2
- import * as _gatwech_core2 from "@gatwech/core";
3
- import * as better_call25 from "better-call";
2
+ import * as _gatwech_core44 from "@gatwech/core";
3
+ import * as better_call208 from "better-call";
4
4
  import * as z$1 from "zod";
5
5
  import * as _gatwech_core_db1 from "@gatwech/core/db";
6
6
 
@@ -106,7 +106,7 @@ type UsernameOptions = {
106
106
  };
107
107
  declare const username: (options?: UsernameOptions | undefined) => {
108
108
  id: "username";
109
- init(ctx: _gatwech_core2.AuthContext<_gatwech_core2.PayvoAuthOptions>): {
109
+ init(ctx: _gatwech_core44.AuthContext<_gatwech_core44.PayvoAuthOptions>): {
110
110
  options: {
111
111
  databaseHooks: {
112
112
  user: {
@@ -119,7 +119,7 @@ declare const username: (options?: UsernameOptions | undefined) => {
119
119
  emailVerified: boolean;
120
120
  name: string;
121
121
  image?: string | null | undefined;
122
- } & Record<string, unknown>, context: _gatwech_core2.GenericEndpointContext<_gatwech_core2.PayvoAuthOptions> | undefined): Promise<{
122
+ } & Record<string, unknown>, context: _gatwech_core44.GenericEndpointContext<_gatwech_core44.PayvoAuthOptions> | undefined): Promise<{
123
123
  data: {
124
124
  displayUsername?: string | undefined;
125
125
  username?: string | undefined;
@@ -142,7 +142,7 @@ declare const username: (options?: UsernameOptions | undefined) => {
142
142
  emailVerified: boolean;
143
143
  name: string;
144
144
  image?: string | null | undefined;
145
- }> & Record<string, unknown>, context: _gatwech_core2.GenericEndpointContext<_gatwech_core2.PayvoAuthOptions> | undefined): Promise<{
145
+ }> & Record<string, unknown>, context: _gatwech_core44.GenericEndpointContext<_gatwech_core44.PayvoAuthOptions> | undefined): Promise<{
146
146
  data: {
147
147
  displayUsername?: string | undefined;
148
148
  username?: string | undefined;
@@ -182,7 +182,7 @@ declare const username: (options?: UsernameOptions | undefined) => {
182
182
  } & {
183
183
  asResponse?: boolean;
184
184
  returnHeaders?: boolean;
185
- use?: better_call25.Middleware[];
185
+ use?: better_call208.Middleware[];
186
186
  path?: string;
187
187
  } & {
188
188
  asResponse?: AsResponse | undefined;
@@ -291,7 +291,7 @@ declare const username: (options?: UsernameOptions | undefined) => {
291
291
  } & {
292
292
  asResponse?: boolean;
293
293
  returnHeaders?: boolean;
294
- use?: better_call25.Middleware[];
294
+ use?: better_call208.Middleware[];
295
295
  path?: string;
296
296
  } & {
297
297
  asResponse?: AsResponse | undefined;
@@ -340,8 +340,8 @@ declare const username: (options?: UsernameOptions | undefined) => {
340
340
  };
341
341
  hooks: {
342
342
  before: {
343
- matcher(context: _gatwech_core2.HookEndpointContext): boolean;
344
- handler: (inputContext: better_call25.MiddlewareInputContext<better_call25.MiddlewareOptions>) => Promise<void>;
343
+ matcher(context: _gatwech_core44.HookEndpointContext): boolean;
344
+ handler: (inputContext: better_call208.MiddlewareInputContext<better_call208.MiddlewareOptions>) => Promise<void>;
345
345
  }[];
346
346
  };
347
347
  $ERROR_CODES: {
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { h as UnionToIntersection, u as Prettify } from "./helper-BgOIGHsu.mjs";
2
- import { A as Where, An as generateId, B as InferPluginsFromClient, C as AdapterInstance, Cn as StandardSchemaV1, D as DBAdapterSchemaCreation, Dn as getTelemetryAuthConfig, E as DBAdapterInstance, En as getCurrentAdapter, F as ClientStore, G as PayvoAuthClientPlugin, H as InferUserFromClient, I as InferActions, K as SessionQueryParams, L as InferAdditionalFromClient, M as AtomListener, Mn as generateState, N as ClientAtomListener, Nn as parseState, O as DBTransactionAdapter, P as ClientOptions, Q as APIError, R as InferClientAPI, S as Adapter, T as DBAdapter, Tn as createTelemetry, U as IsSignal, V as InferSessionFromClient, W as PayvoAuthClientOptions, X as WithJsDoc, Y as Auth, Z as payvoAuth, _ as Verification, a as PayvoAuthRateLimitOptions, b as InferAPI, c as AdditionalSessionFieldsOutput, d as InferPluginTypes, f as InferSession, g as User, h as Session, i as PayvoAuthPlugin, j as init, jn as HIDE_METADATA, k as TransactionAdapter, kn as capitalizeFirstLetter, l as AdditionalUserFieldsInput, m as RateLimit, n as PayvoAuthCookies, o as Account, p as InferUser, q as Store, r as PayvoAuthOptions, s as AdditionalSessionFieldsInput, t as PayvoAuthAdvancedOptions, u as AdditionalUserFieldsOutput, v as FilterActions, w as AdapterSchemaCreation, wn as TelemetryEvent, x as InferSessionAPI, y as FilteredAPI, z as InferErrorCodes } from "./index-BNhJglHC.mjs";
2
+ import { A as Where, An as generateId, B as InferPluginsFromClient, C as AdapterInstance, Cn as StandardSchemaV1, D as DBAdapterSchemaCreation, Dn as getTelemetryAuthConfig, E as DBAdapterInstance, En as getCurrentAdapter, F as ClientStore, G as PayvoAuthClientPlugin, H as InferUserFromClient, I as InferActions, K as SessionQueryParams, L as InferAdditionalFromClient, M as AtomListener, Mn as generateState, N as ClientAtomListener, Nn as parseState, O as DBTransactionAdapter, P as ClientOptions, Q as APIError, R as InferClientAPI, S as Adapter, T as DBAdapter, Tn as createTelemetry, U as IsSignal, V as InferSessionFromClient, W as PayvoAuthClientOptions, X as WithJsDoc, Y as Auth, Z as payvoAuth, _ as Verification, a as PayvoAuthRateLimitOptions, b as InferAPI, c as AdditionalSessionFieldsOutput, d as InferPluginTypes, f as InferSession, g as User, h as Session, i as PayvoAuthPlugin, j as init, jn as HIDE_METADATA, k as TransactionAdapter, kn as capitalizeFirstLetter, l as AdditionalUserFieldsInput, m as RateLimit, n as PayvoAuthCookies, o as Account, p as InferUser, q as Store, r as PayvoAuthOptions, s as AdditionalSessionFieldsInput, t as PayvoAuthAdvancedOptions, u as AdditionalUserFieldsOutput, v as FilterActions, w as AdapterSchemaCreation, wn as TelemetryEvent, x as InferSessionAPI, y as FilteredAPI, z as InferErrorCodes } from "./index-DngQlUSI.mjs";
3
3
  import "./types-DNQ9XQrB.mjs";
4
- import "./index-Df0KhQRf-BEa5tdwJ.mjs";
4
+ import "./index-BL_t8cRp-C4QYBsac.mjs";
5
5
  import { n as InferPluginErrorCodes, t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
6
6
  export * from "@gatwech/core";
7
7
  export * from "@gatwech/core/env";
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { i as parseState, n as HIDE_METADATA, r as generateState, t as generateId } from "./utils-B03WRaGi.mjs";
2
2
  import "./url-VB2gAbTI.mjs";
3
- import { t as APIError } from "./api-Dk8Yj_J5.mjs";
3
+ import { t as APIError } from "./api-BV65Y-Rk.mjs";
4
4
  import "./get-request-ip-DSjrEpGo.mjs";
5
5
  import "./json-D0TBLy4q.mjs";
6
6
  import "./crypto-CCyta8xj.mjs";
@@ -8,15 +8,15 @@ import "./jwt-CmxZAGe2.mjs";
8
8
  import "./random-32E3cU5o.mjs";
9
9
  import "./cookies-BuvlgcA-.mjs";
10
10
  import "./date-CMr04reD.mjs";
11
- import "./db-7vHnL1XA.mjs";
11
+ import "./db-CV59HpEF.mjs";
12
12
  import "./dialect-HsWUfpYY.mjs";
13
13
  import "./get-tables-CKvSyDST.mjs";
14
14
  import "./types-DCPpFKUB.mjs";
15
15
  import { t as capitalizeFirstLetter } from "./misc-fKH4d5XQ.mjs";
16
16
  import "./session-BB3oqApE.mjs";
17
17
  import "./adapter-factory-xbLUJt85.mjs";
18
- import "./kysely-adapter-Bkm1liPW.mjs";
19
- import { t as payvoAuth } from "./auth-vfCyIIeV.mjs";
18
+ import "./kysely-adapter-BidlNTiV.mjs";
19
+ import { t as payvoAuth } from "./auth-DtOjarwu.mjs";
20
20
  import "./password-5CdcAVaH.mjs";
21
21
  import { getCurrentAdapter } from "@gatwech/core/context";
22
22
  import { createTelemetry, getTelemetryAuthConfig } from "@gatwech/telemetry";
@@ -1,5 +1,5 @@
1
- import * as _gatwech_core29 from "@gatwech/core";
2
- import * as better_call81 from "better-call";
1
+ import * as _gatwech_core43 from "@gatwech/core";
2
+ import * as better_call206 from "better-call";
3
3
 
4
4
  //#region src/integrations/next-js.d.ts
5
5
  declare function toNextJsHandler(auth: {
@@ -12,8 +12,8 @@ declare const nextCookies: () => {
12
12
  id: "next-cookies";
13
13
  hooks: {
14
14
  after: {
15
- matcher(ctx: _gatwech_core29.HookEndpointContext): true;
16
- handler: (inputContext: better_call81.MiddlewareInputContext<better_call81.MiddlewareOptions>) => Promise<void>;
15
+ matcher(ctx: _gatwech_core43.HookEndpointContext): true;
16
+ handler: (inputContext: better_call206.MiddlewareInputContext<better_call206.MiddlewareOptions>) => Promise<void>;
17
17
  }[];
18
18
  };
19
19
  };
@@ -1,7 +1,7 @@
1
1
  import "../helper-BgOIGHsu.mjs";
2
- import { Y as Auth } from "../index-BNhJglHC.mjs";
2
+ import { Y as Auth } from "../index-DngQlUSI.mjs";
3
3
  import "../types-DNQ9XQrB.mjs";
4
- import "../index-Df0KhQRf-BEa5tdwJ.mjs";
4
+ import "../index-BL_t8cRp-C4QYBsac.mjs";
5
5
  import "../plugins-Dy_FrD4Y.mjs";
6
6
  import * as http0 from "http";
7
7
  import { IncomingHttpHeaders } from "http";
@@ -1,13 +1,13 @@
1
- import * as _gatwech_core52 from "@gatwech/core";
2
- import * as better_call135 from "better-call";
1
+ import * as _gatwech_core12 from "@gatwech/core";
2
+ import * as better_call132 from "better-call";
3
3
 
4
4
  //#region src/integrations/react-start.d.ts
5
5
  declare const reactStartCookies: () => {
6
6
  id: "react-start-cookies";
7
7
  hooks: {
8
8
  after: {
9
- matcher(ctx: _gatwech_core52.HookEndpointContext): true;
10
- handler: (inputContext: better_call135.MiddlewareInputContext<better_call135.MiddlewareOptions>) => Promise<void>;
9
+ matcher(ctx: _gatwech_core12.HookEndpointContext): true;
10
+ handler: (inputContext: better_call132.MiddlewareInputContext<better_call132.MiddlewareOptions>) => Promise<void>;
11
11
  }[];
12
12
  };
13
13
  };
@@ -1,4 +1,4 @@
1
- import { t as APIError } from "./api-Dk8Yj_J5.mjs";
1
+ import { t as APIError } from "./api-BV65Y-Rk.mjs";
2
2
  import { n as symmetricEncrypt, t as symmetricDecrypt } from "./crypto-CCyta8xj.mjs";
3
3
  import { n as mergeSchema } from "./date-CMr04reD.mjs";
4
4
  import { u as sessionMiddleware } from "./session-BB3oqApE.mjs";
@@ -121,7 +121,8 @@ const kyselyAdapter = (db, config) => {
121
121
  let query = db$1.updateTable(model).set(values);
122
122
  if (and) query = query.where((eb) => eb.and(and.map((expr) => expr(eb))));
123
123
  if (or) query = query.where((eb) => eb.or(or.map((expr) => expr(eb))));
124
- return (await query.execute()).length;
124
+ const res = await query.executeTakeFirst();
125
+ return Number(res.numUpdatedRows);
125
126
  },
126
127
  async count({ model, where }) {
127
128
  const { and, or } = convertWhereClause(model, where);
@@ -145,7 +146,8 @@ const kyselyAdapter = (db, config) => {
145
146
  let query = db$1.deleteFrom(model);
146
147
  if (and) query = query.where((eb) => eb.and(and.map((expr) => expr(eb))));
147
148
  if (or) query = query.where((eb) => eb.or(or.map((expr) => expr(eb))));
148
- return (await query.execute()).length;
149
+ const res = await query.executeTakeFirst();
150
+ return Number(res.numDeletedRows);
149
151
  },
150
152
  options: config
151
153
  };
@@ -1,4 +1,4 @@
1
- import { R as originCheck } from "./api-Dk8Yj_J5.mjs";
1
+ import { R as originCheck } from "./api-BV65Y-Rk.mjs";
2
2
  import { t as generateRandomString } from "./random-32E3cU5o.mjs";
3
3
  import { c as setSessionCookie } from "./cookies-BuvlgcA-.mjs";
4
4
  import { BASE_ERROR_CODES } from "@gatwech/core/error";
@@ -1,4 +1,4 @@
1
- import { t as APIError } from "./api-Dk8Yj_J5.mjs";
1
+ import { t as APIError } from "./api-BV65Y-Rk.mjs";
2
2
  import { c as setSessionCookie, l as parseSetCookieHeader, n as deleteSessionCookie, o as parseCookies } from "./cookies-BuvlgcA-.mjs";
3
3
  import { u as sessionMiddleware } from "./session-BB3oqApE.mjs";
4
4
  import { defineErrorCodes } from "@gatwech/core/utils";
@@ -1,5 +1,5 @@
1
1
  import { r as getOrigin } from "./url-VB2gAbTI.mjs";
2
- import { R as originCheck } from "./api-Dk8Yj_J5.mjs";
2
+ import { R as originCheck } from "./api-BV65Y-Rk.mjs";
3
3
  import { n as symmetricEncrypt, t as symmetricDecrypt } from "./crypto-CCyta8xj.mjs";
4
4
  import { env } from "@gatwech/core/env";
5
5
  import { createAuthEndpoint, createAuthMiddleware } from "@gatwech/core/api";
@@ -1,7 +1,7 @@
1
1
  import "../helper-BgOIGHsu.mjs";
2
- import { Mn as generateState, Nn as parseState, g as User, o as Account } from "../index-BNhJglHC.mjs";
2
+ import { Mn as generateState, Nn as parseState, g as User, o as Account } from "../index-DngQlUSI.mjs";
3
3
  import "../types-DNQ9XQrB.mjs";
4
- import "../index-Df0KhQRf-BEa5tdwJ.mjs";
4
+ import "../index-BL_t8cRp-C4QYBsac.mjs";
5
5
  import "../plugins-Dy_FrD4Y.mjs";
6
6
  import { AuthContext, GenericEndpointContext } from "@gatwech/core";
7
7
  export * from "@gatwech/core/oauth2";
@@ -1,6 +1,6 @@
1
1
  import { i as parseState, r as generateState } from "../utils-B03WRaGi.mjs";
2
2
  import "../url-VB2gAbTI.mjs";
3
- import { F as decryptOAuthToken, I as setTokenUtil, O as handleOAuthUserInfo } from "../api-Dk8Yj_J5.mjs";
3
+ import { F as decryptOAuthToken, I as setTokenUtil, O as handleOAuthUserInfo } from "../api-BV65Y-Rk.mjs";
4
4
  import "../get-request-ip-DSjrEpGo.mjs";
5
5
  import "../json-D0TBLy4q.mjs";
6
6
  import "../crypto-CCyta8xj.mjs";
@@ -8,7 +8,7 @@ import "../jwt-CmxZAGe2.mjs";
8
8
  import "../random-32E3cU5o.mjs";
9
9
  import "../cookies-BuvlgcA-.mjs";
10
10
  import "../date-CMr04reD.mjs";
11
- import "../db-7vHnL1XA.mjs";
11
+ import "../db-CV59HpEF.mjs";
12
12
  import "../dialect-HsWUfpYY.mjs";
13
13
  import "../get-tables-CKvSyDST.mjs";
14
14
  import "../types-DCPpFKUB.mjs";
@@ -1,4 +1,4 @@
1
- import { t as APIError } from "./api-Dk8Yj_J5.mjs";
1
+ import { t as APIError } from "./api-BV65Y-Rk.mjs";
2
2
  import { c as setSessionCookie } from "./cookies-BuvlgcA-.mjs";
3
3
  import { createAuthEndpoint } from "@gatwech/core/api";
4
4
  import * as z$1 from "zod";
@@ -1,8 +1,8 @@
1
1
  import { t as generateId } from "./utils-B03WRaGi.mjs";
2
- import { t as APIError$1 } from "./api-Dk8Yj_J5.mjs";
2
+ import { t as APIError$1 } from "./api-BV65Y-Rk.mjs";
3
3
  import { c as setSessionCookie } from "./cookies-BuvlgcA-.mjs";
4
4
  import { t as getDate } from "./date-CMr04reD.mjs";
5
- import { i as toZodSchema } from "./db-7vHnL1XA.mjs";
5
+ import { i as toZodSchema } from "./db-CV59HpEF.mjs";
6
6
  import { a as requestOnlySessionMiddleware, r as getSessionFromCtx, u as sessionMiddleware } from "./session-BB3oqApE.mjs";
7
7
  import { n as parser_default } from "./parser-D7EkhAjZ.mjs";
8
8
  import { r as defaultRoles } from "./access-CrwEFPHE.mjs";
@@ -1,8 +1,8 @@
1
1
  import "../../helper-BgOIGHsu.mjs";
2
- import "../../index-BNhJglHC.mjs";
2
+ import "../../index-DngQlUSI.mjs";
3
3
  import "../../types-DNQ9XQrB.mjs";
4
- import "../../index-Df0KhQRf-BEa5tdwJ.mjs";
4
+ import "../../index-BL_t8cRp-C4QYBsac.mjs";
5
5
  import "../../plugins-Dy_FrD4Y.mjs";
6
6
  import "../../index-CxlWnL9c.mjs";
7
- import { a as UserWithRole, i as SessionWithImpersonatedBy, n as AdminOptions, r as InferAdminRolesFromOption, t as admin } from "../../index-XfE0WjTN.mjs";
7
+ import { a as UserWithRole, i as SessionWithImpersonatedBy, n as AdminOptions, r as InferAdminRolesFromOption, t as admin } from "../../index-D3uQsW8T.mjs";
8
8
  export { AdminOptions, InferAdminRolesFromOption, SessionWithImpersonatedBy, UserWithRole, admin };
@@ -1,6 +1,6 @@
1
1
  import "../../utils-B03WRaGi.mjs";
2
2
  import "../../url-VB2gAbTI.mjs";
3
- import "../../api-Dk8Yj_J5.mjs";
3
+ import "../../api-BV65Y-Rk.mjs";
4
4
  import "../../get-request-ip-DSjrEpGo.mjs";
5
5
  import "../../json-D0TBLy4q.mjs";
6
6
  import "../../crypto-CCyta8xj.mjs";
@@ -8,7 +8,7 @@ import "../../jwt-CmxZAGe2.mjs";
8
8
  import "../../random-32E3cU5o.mjs";
9
9
  import "../../cookies-BuvlgcA-.mjs";
10
10
  import "../../date-CMr04reD.mjs";
11
- import "../../db-7vHnL1XA.mjs";
11
+ import "../../db-CV59HpEF.mjs";
12
12
  import "../../dialect-HsWUfpYY.mjs";
13
13
  import "../../get-tables-CKvSyDST.mjs";
14
14
  import "../../types-DCPpFKUB.mjs";
@@ -17,7 +17,7 @@ import "../../session-BB3oqApE.mjs";
17
17
  import "../../plugin-helper-RJJBTOba.mjs";
18
18
  import "../../access-BM6jSA5j.mjs";
19
19
  import "../../access-bhklJd7m.mjs";
20
- import { t as admin } from "../../admin-BzUJL6tr.mjs";
20
+ import { t as admin } from "../../admin-rd-xHhnP.mjs";
21
21
  import "../../has-permission-Bvg8de8g.mjs";
22
22
 
23
23
  export { admin };
@@ -1,7 +1,7 @@
1
1
  import "../../helper-BgOIGHsu.mjs";
2
- import "../../index-BNhJglHC.mjs";
2
+ import "../../index-DngQlUSI.mjs";
3
3
  import "../../types-DNQ9XQrB.mjs";
4
- import "../../index-Df0KhQRf-BEa5tdwJ.mjs";
4
+ import "../../index-BL_t8cRp-C4QYBsac.mjs";
5
5
  import "../../plugins-Dy_FrD4Y.mjs";
6
- import { n as UserWithAnonymous, r as anonymous, t as AnonymousOptions } from "../../index-CNd5jqLl.mjs";
6
+ import { n as UserWithAnonymous, r as anonymous, t as AnonymousOptions } from "../../index-CRiKKdkb.mjs";
7
7
  export { AnonymousOptions, UserWithAnonymous, anonymous };
@@ -1,6 +1,6 @@
1
1
  import "../../utils-B03WRaGi.mjs";
2
2
  import "../../url-VB2gAbTI.mjs";
3
- import "../../api-Dk8Yj_J5.mjs";
3
+ import "../../api-BV65Y-Rk.mjs";
4
4
  import "../../get-request-ip-DSjrEpGo.mjs";
5
5
  import "../../json-D0TBLy4q.mjs";
6
6
  import "../../crypto-CCyta8xj.mjs";
@@ -8,12 +8,12 @@ import "../../jwt-CmxZAGe2.mjs";
8
8
  import "../../random-32E3cU5o.mjs";
9
9
  import "../../cookies-BuvlgcA-.mjs";
10
10
  import "../../date-CMr04reD.mjs";
11
- import "../../db-7vHnL1XA.mjs";
11
+ import "../../db-CV59HpEF.mjs";
12
12
  import "../../dialect-HsWUfpYY.mjs";
13
13
  import "../../get-tables-CKvSyDST.mjs";
14
14
  import "../../types-DCPpFKUB.mjs";
15
15
  import "../../misc-fKH4d5XQ.mjs";
16
16
  import "../../session-BB3oqApE.mjs";
17
- import { t as anonymous } from "../../anonymous-BjlTk4gl.mjs";
17
+ import { t as anonymous } from "../../anonymous-qSasVeIe.mjs";
18
18
 
19
19
  export { anonymous };