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

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 (81) hide show
  1. package/dist/adapters/index.d.mts +1 -1
  2. package/dist/api/index.d.mts +1 -1
  3. package/dist/{audit-log-DgqHJ-uv.mjs → audit-log-DhRRCMrv.mjs} +21 -6
  4. package/dist/client/index.d.mts +1 -1
  5. package/dist/client/plugins/index.d.mts +24 -24
  6. package/dist/client/react/index.d.mts +15 -15
  7. package/dist/{client-DO9MgP_0.d.mts → client-CDaFOX7A.d.mts} +4 -4
  8. package/dist/{client-ukvqpcbI.d.mts → client-D8XKNpua.d.mts} +1 -1
  9. package/dist/cookies/index.d.mts +2 -2
  10. package/dist/db/index.d.mts +1 -1
  11. package/dist/{index-DlS-HqZR.d.mts → index-382PsmkK.d.mts} +2 -2
  12. package/dist/{index-DngQlUSI.d.mts → index-3lfPQHhX.d.mts} +113 -113
  13. package/dist/{index-CRiKKdkb.d.mts → index-B4aWSJEd.d.mts} +6 -6
  14. package/dist/{index-hP8gvyp-.d.mts → index-B5r4oL5q.d.mts} +5 -5
  15. package/dist/{index-AiKdOFSd.d.mts → index-B7iZf_Dl.d.mts} +387 -49
  16. package/dist/{index-CTSeVJJB.d.mts → index-BhYE1_9j.d.mts} +1 -1
  17. package/dist/{index-D3uQsW8T.d.mts → index-Blq8KrTy.d.mts} +30 -30
  18. package/dist/{index-Dkm27DLN.d.mts → index-C-z4TCHD.d.mts} +10 -10
  19. package/dist/{index-Do8AV4PF.d.mts → index-C8F7PsET.d.mts} +13 -13
  20. package/dist/{index-DSoiUc1C.d.mts → index-CExSHSFz.d.mts} +166 -166
  21. package/dist/{index-CxhQu1HM.d.mts → index-CIxFDcfQ.d.mts} +2 -2
  22. package/dist/{index-eOfQxlQV.d.mts → index-COFPq-mg.d.mts} +13 -13
  23. package/dist/{index-B4hJVVRn.d.mts → index-CWwQ1Q7t.d.mts} +19 -19
  24. package/dist/{index-BzzhaGLe.d.mts → index-CWxKeTtE.d.mts} +6 -6
  25. package/dist/{index-Dl0bD1_6.d.mts → index-D0SgItjY.d.mts} +6 -6
  26. package/dist/{index-BC0aAKsT.d.mts → index-DCliG2n6.d.mts} +3 -3
  27. package/dist/{index-D-rjuF7p.d.mts → index-DPVukjga.d.mts} +9 -9
  28. package/dist/{index-SYRh5FW7.d.mts → index-DUu0ieh6.d.mts} +8 -8
  29. package/dist/{index-pdl9MzQu.d.mts → index-De2a2OyC.d.mts} +9 -9
  30. package/dist/{index-BfLofiXO.d.mts → index-Dg6Ftb6f.d.mts} +9 -9
  31. package/dist/{index-CRNh-5Tc.d.mts → index-Dgyj1fTk.d.mts} +7 -7
  32. package/dist/{index-DKirx_GW.d.mts → index-DxIqV3rU.d.mts} +4 -4
  33. package/dist/{index-CBGNX7W1.d.mts → index-DxRAXHrZ.d.mts} +6 -6
  34. package/dist/index.d.mts +1 -1
  35. package/dist/integrations/next-js.d.mts +4 -4
  36. package/dist/integrations/node.d.mts +1 -1
  37. package/dist/integrations/react-start.d.mts +4 -4
  38. package/dist/oauth2/index.d.mts +1 -1
  39. package/dist/plugins/admin/index.d.mts +2 -2
  40. package/dist/plugins/anonymous/index.d.mts +2 -2
  41. package/dist/plugins/audit-log/client.d.mts +23 -23
  42. package/dist/plugins/audit-log/index.d.mts +22 -22
  43. package/dist/plugins/audit-log/index.mjs +2 -2
  44. package/dist/plugins/bearer/index.d.mts +1 -1
  45. package/dist/plugins/captcha/index.d.mts +1 -1
  46. package/dist/plugins/custom-session/index.d.mts +2 -2
  47. package/dist/plugins/device-authorization/index.d.mts +1 -1
  48. package/dist/plugins/email-otp/index.d.mts +1 -1
  49. package/dist/plugins/generic-oauth/index.d.mts +2 -2
  50. package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
  51. package/dist/plugins/index.d.mts +22 -22
  52. package/dist/plugins/index.mjs +3 -3
  53. package/dist/plugins/jwt/index.d.mts +2 -2
  54. package/dist/plugins/magic-link/index.d.mts +1 -1
  55. package/dist/plugins/multi-session/index.d.mts +1 -1
  56. package/dist/plugins/oauth-proxy/index.d.mts +1 -1
  57. package/dist/plugins/one-tap/index.d.mts +1 -1
  58. package/dist/plugins/one-time-token/index.d.mts +2 -2
  59. package/dist/plugins/one-time-token/index.mjs +3 -3
  60. package/dist/plugins/organization/index.d.mts +2 -2
  61. package/dist/plugins/passkey/index.d.mts +2 -2
  62. package/dist/plugins/phone-number/index.d.mts +2 -2
  63. package/dist/plugins/sentinel/client.d.mts +23 -23
  64. package/dist/plugins/sentinel/index.d.mts +22 -22
  65. package/dist/plugins/sentinel/index.mjs +2 -2
  66. package/dist/plugins/two-factor/index.d.mts +2 -2
  67. package/dist/plugins/username/index.d.mts +1 -1
  68. package/dist/{registry-CqG_3Qnx.mjs → registry-GztLf62p.mjs} +14 -2
  69. package/dist/{sentinel-B-2jmmZh.mjs → sentinel-CYtaI3eO.mjs} +234 -3
  70. package/dist/src/plugins/audit-log/events.d.ts +1 -0
  71. package/dist/src/plugins/audit-log/index.d.ts +45 -0
  72. package/dist/src/plugins/sentinel/actions.d.ts +2 -0
  73. package/dist/src/plugins/sentinel/index.d.ts +247 -0
  74. package/dist/src/plugins/sentinel/schema.d.ts +37 -0
  75. package/dist/src/plugins/sentinel/store.d.ts +34 -0
  76. package/dist/src/plugins/sentinel/types.d.ts +7 -0
  77. package/dist/src/utils/has-role.d.ts +5 -0
  78. package/dist/test-utils/index.d.mts +273 -273
  79. package/dist/test-utils/index.mjs +3 -3
  80. package/dist/types/index.d.mts +1 -1
  81. package/package.json +3 -3
@@ -1,8 +1,8 @@
1
- import { g as User, h as Session } from "./index-DngQlUSI.mjs";
1
+ import { g as User, h as Session } from "./index-3lfPQHhX.mjs";
2
2
  import { t as InferOptionSchema } from "./plugins-Dy_FrD4Y.mjs";
3
- import * as _gatwech_core37 from "@gatwech/core";
3
+ import * as _gatwech_core38 from "@gatwech/core";
4
4
  import { AuthContext, GenericEndpointContext } from "@gatwech/core";
5
- import * as better_call163 from "better-call";
5
+ import * as better_call189 from "better-call";
6
6
  import { EndpointContext } from "better-call";
7
7
 
8
8
  //#region src/plugins/anonymous/index.d.ts
@@ -77,7 +77,7 @@ declare const anonymous: (options?: AnonymousOptions | undefined) => {
77
77
  } & {
78
78
  asResponse?: boolean;
79
79
  returnHeaders?: boolean;
80
- use?: better_call163.Middleware[];
80
+ use?: better_call189.Middleware[];
81
81
  path?: string;
82
82
  } & {
83
83
  asResponse?: AsResponse | undefined;
@@ -141,8 +141,8 @@ declare const anonymous: (options?: AnonymousOptions | undefined) => {
141
141
  };
142
142
  hooks: {
143
143
  after: {
144
- matcher(ctx: _gatwech_core37.HookEndpointContext): boolean;
145
- handler: (inputContext: better_call163.MiddlewareInputContext<better_call163.MiddlewareOptions>) => Promise<void>;
144
+ matcher(ctx: _gatwech_core38.HookEndpointContext): boolean;
145
+ handler: (inputContext: better_call189.MiddlewareInputContext<better_call189.MiddlewareOptions>) => Promise<void>;
146
146
  }[];
147
147
  };
148
148
  schema: {
@@ -1,6 +1,6 @@
1
- import { g as User, h as Session } from "./index-DngQlUSI.mjs";
1
+ import { g as User, h as Session } from "./index-3lfPQHhX.mjs";
2
2
  import { GenericEndpointContext } from "@gatwech/core";
3
- import * as better_call150 from "better-call";
3
+ import * as better_call154 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_call150.Middleware[];
70
+ use?: better_call154.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_call150.MiddlewareInputContext<better_call150.MiddlewareOptions>) => Promise<{
85
+ use: ((inputContext: better_call154.MiddlewareInputContext<better_call154.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_call150.Middleware[];
146
+ use?: better_call154.Middleware[];
147
147
  path?: string;
148
148
  } & {
149
149
  asResponse?: AsResponse | undefined;