@vitnode/core 1.2.0-canary.55 → 1.2.0-canary.57

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 (82) hide show
  1. package/dist/scripts/scripts.js +3 -3
  2. package/dist/src/api/lib/route.d.ts +9 -16
  3. package/dist/src/api/lib/route.d.ts.map +1 -1
  4. package/dist/src/api/lib/route.js +1 -1
  5. package/dist/src/api/modules/admin/admin.module.d.ts +217 -393
  6. package/dist/src/api/modules/admin/admin.module.d.ts.map +1 -1
  7. package/dist/src/api/modules/admin/advanced/advanced.admin.module.d.ts +86 -150
  8. package/dist/src/api/modules/admin/advanced/advanced.admin.module.d.ts.map +1 -1
  9. package/dist/src/api/modules/admin/advanced/cron/cron.admin.module.d.ts +86 -150
  10. package/dist/src/api/modules/admin/advanced/cron/cron.admin.module.d.ts.map +1 -1
  11. package/dist/src/api/modules/admin/advanced/cron/routes/get.route.d.ts +48 -91
  12. package/dist/src/api/modules/admin/advanced/cron/routes/get.route.d.ts.map +1 -1
  13. package/dist/src/api/modules/admin/advanced/cron/routes/run.route.d.ts +39 -60
  14. package/dist/src/api/modules/admin/advanced/cron/routes/run.route.d.ts.map +1 -1
  15. package/dist/src/api/modules/admin/debug/debug.admin.module.d.ts +56 -105
  16. package/dist/src/api/modules/admin/debug/debug.admin.module.d.ts.map +1 -1
  17. package/dist/src/api/modules/admin/debug/routes/logs.route.d.ts +56 -105
  18. package/dist/src/api/modules/admin/debug/routes/logs.route.d.ts.map +1 -1
  19. package/dist/src/api/modules/admin/routes/session.route.d.ts +29 -47
  20. package/dist/src/api/modules/admin/routes/session.route.d.ts.map +1 -1
  21. package/dist/src/api/modules/admin/users/routes/list.route.d.ts +49 -94
  22. package/dist/src/api/modules/admin/users/routes/list.route.d.ts.map +1 -1
  23. package/dist/src/api/modules/admin/users/routes/users.route.d.ts +54 -99
  24. package/dist/src/api/modules/admin/users/routes/users.route.d.ts.map +1 -1
  25. package/dist/src/api/modules/admin/users/users.admin.module.d.ts +49 -94
  26. package/dist/src/api/modules/admin/users/users.admin.module.d.ts.map +1 -1
  27. package/dist/src/api/modules/cron/cron.module.d.ts +17 -21
  28. package/dist/src/api/modules/cron/cron.module.d.ts.map +1 -1
  29. package/dist/src/api/modules/cron/helpers/process-cron-jobs.d.ts +3 -3
  30. package/dist/src/api/modules/cron/helpers/process-cron-jobs.d.ts.map +1 -1
  31. package/dist/src/api/modules/cron/routes/cron.route.d.ts +17 -21
  32. package/dist/src/api/modules/cron/routes/cron.route.d.ts.map +1 -1
  33. package/dist/src/api/modules/middleware/middleware.module.d.ts +26 -40
  34. package/dist/src/api/modules/middleware/middleware.module.d.ts.map +1 -1
  35. package/dist/src/api/modules/middleware/route.d.ts +26 -40
  36. package/dist/src/api/modules/middleware/route.d.ts.map +1 -1
  37. package/dist/src/api/modules/users/routes/change-password.route.d.ts +21 -40
  38. package/dist/src/api/modules/users/routes/change-password.route.d.ts.map +1 -1
  39. package/dist/src/api/modules/users/routes/reset-passowrd.route.d.ts +20 -35
  40. package/dist/src/api/modules/users/routes/reset-passowrd.route.d.ts.map +1 -1
  41. package/dist/src/api/modules/users/routes/session.route.d.ts +27 -45
  42. package/dist/src/api/modules/users/routes/session.route.d.ts.map +1 -1
  43. package/dist/src/api/modules/users/routes/sign-in.route.d.ts +30 -52
  44. package/dist/src/api/modules/users/routes/sign-in.route.d.ts.map +1 -1
  45. package/dist/src/api/modules/users/routes/sign-out.route.d.ts +21 -36
  46. package/dist/src/api/modules/users/routes/sign-out.route.d.ts.map +1 -1
  47. package/dist/src/api/modules/users/routes/sign-up.route.d.ts +36 -61
  48. package/dist/src/api/modules/users/routes/sign-up.route.d.ts.map +1 -1
  49. package/dist/src/api/modules/users/routes/test.route.d.ts +19 -23
  50. package/dist/src/api/modules/users/routes/test.route.d.ts.map +1 -1
  51. package/dist/src/api/modules/users/sso/routes/callback.route.d.ts +28 -59
  52. package/dist/src/api/modules/users/sso/routes/callback.route.d.ts.map +1 -1
  53. package/dist/src/api/modules/users/sso/routes/create-url.route.d.ts +20 -37
  54. package/dist/src/api/modules/users/sso/routes/create-url.route.d.ts.map +1 -1
  55. package/dist/src/api/modules/users/sso/sso.module.d.ts +47 -95
  56. package/dist/src/api/modules/users/sso/sso.module.d.ts.map +1 -1
  57. package/dist/src/api/modules/users/users.module.d.ts +212 -378
  58. package/dist/src/api/modules/users/users.module.d.ts.map +1 -1
  59. package/dist/src/components/ui/button.js +1 -1
  60. package/dist/src/components/ui/command.js +1 -1
  61. package/dist/src/components/ui/context-menu.js +4 -4
  62. package/dist/src/components/ui/dialog.js +1 -1
  63. package/dist/src/components/ui/dropdown-menu.js +3 -3
  64. package/dist/src/components/ui/menubar.js +3 -3
  65. package/dist/src/components/ui/navigation-menu.js +1 -1
  66. package/dist/src/components/ui/select.js +2 -2
  67. package/dist/src/components/ui/sidebar.d.ts.map +1 -1
  68. package/dist/src/components/ui/sidebar.js +1 -0
  69. package/dist/src/components/ui/tabs.js +1 -1
  70. package/dist/src/components/ui/toggle.js +1 -1
  71. package/dist/src/hooks/use-captcha.d.ts.map +1 -1
  72. package/dist/src/hooks/use-captcha.js +3 -0
  73. package/dist/src/views/auth/sign-up/form/use-form.js +2 -2
  74. package/dist/src/views/auth/sign-up/wrapper.d.ts +1 -1
  75. package/dist/src/views/auth/sign-up/wrapper.d.ts.map +1 -1
  76. package/dist/src/views/auth/sign-up/wrapper.js +4 -4
  77. package/dist/src/views/layouts/provider.d.ts.map +1 -1
  78. package/dist/src/views/layouts/provider.js +1 -0
  79. package/dist/src/vitnode.config.d.ts +2 -2
  80. package/dist/src/vitnode.config.d.ts.map +1 -1
  81. package/dist/tsconfig.tsbuildinfo +1 -1
  82. package/package.json +38 -38
@@ -1,4 +1,4 @@
1
- import type { PostgresJsDatabase } from "drizzle-orm/postgres-js";
1
+ import type { drizzle } from "drizzle-orm/postgres-js";
2
2
  import type { CronJobConfig } from "../../../../api/lib/cron";
3
3
  interface CronJobFromDb {
4
4
  createdAt: Date;
@@ -11,7 +11,7 @@ interface CronJobFromDb {
11
11
  pluginId: string;
12
12
  schedule: string;
13
13
  }
14
- export declare function cleanupOutdatedCronJobs(db: PostgresJsDatabase, cronFromDb: CronJobFromDb[], currentCronJobs: CronJobConfig[]): Promise<void>;
14
+ export declare function cleanupOutdatedCronJobs(db: ReturnType<typeof drizzle>, cronFromDb: CronJobFromDb[], currentCronJobs: CronJobConfig[]): Promise<void>;
15
15
  export declare function processCronJobs(cronJobs: CronJobConfig[], cronFromDb: CronJobFromDb[]): {
16
16
  newJobs: CronJobConfig[];
17
17
  jobsToExecute: CronJobConfig[];
@@ -24,7 +24,7 @@ export declare function processCronJobs(cronJobs: CronJobConfig[], cronFromDb: C
24
24
  job: CronJobConfig;
25
25
  }[];
26
26
  };
27
- export declare function updateCronJobs(db: PostgresJsDatabase, jobsToUpdate: {
27
+ export declare function updateCronJobs(db: ReturnType<typeof drizzle>, jobsToUpdate: {
28
28
  changes: {
29
29
  description?: boolean;
30
30
  schedule?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"process-cron-jobs.d.ts","sourceRoot":"","sources":["../../../../../../src/api/modules/cron/helpers/process-cron-jobs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAKlE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAKpD,UAAU,aAAa;IACrB,SAAS,EAAE,IAAI,CAAC;IAChB,WAAW,EAAE,IAAI,GAAG,MAAM,CAAC;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AA6BD,wBAAsB,uBAAuB,CAC3C,EAAE,EAAE,kBAAkB,EACtB,UAAU,EAAE,aAAa,EAAE,EAC3B,eAAe,EAAE,aAAa,EAAE,iBAoBjC;AAED,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,aAAa,EAAE,EACzB,UAAU,EAAE,aAAa,EAAE;;;;iBAKhB;YAAE,WAAW,CAAC,EAAE,OAAO,CAAC;YAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;SAAE;qBACzC,aAAa;aACrB,aAAa;;EA6BrB;AAED,wBAAsB,cAAc,CAClC,EAAE,EAAE,kBAAkB,EACtB,YAAY,EAAE;IACZ,OAAO,EAAE;QAAE,WAAW,CAAC,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IACvD,WAAW,EAAE,aAAa,CAAC;IAC3B,GAAG,EAAE,aAAa,CAAC;CACpB,EAAE,iBAyBJ"}
1
+ {"version":3,"file":"process-cron-jobs.d.ts","sourceRoot":"","sources":["../../../../../../src/api/modules/cron/helpers/process-cron-jobs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAsB,MAAM,yBAAyB,CAAC;AAK3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAKpD,UAAU,aAAa;IACrB,SAAS,EAAE,IAAI,CAAC;IAChB,WAAW,EAAE,IAAI,GAAG,MAAM,CAAC;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AA6BD,wBAAsB,uBAAuB,CAC3C,EAAE,EAAE,UAAU,CAAC,OAAO,OAAO,CAAC,EAC9B,UAAU,EAAE,aAAa,EAAE,EAC3B,eAAe,EAAE,aAAa,EAAE,iBAoBjC;AAED,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,aAAa,EAAE,EACzB,UAAU,EAAE,aAAa,EAAE;;;;iBAKhB;YAAE,WAAW,CAAC,EAAE,OAAO,CAAC;YAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;SAAE;qBACzC,aAAa;aACrB,aAAa;;EA6BrB;AAED,wBAAsB,cAAc,CAClC,EAAE,EAAE,UAAU,CAAC,OAAO,OAAO,CAAC,EAC9B,YAAY,EAAE;IACZ,OAAO,EAAE;QAAE,WAAW,CAAC,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IACvD,WAAW,EAAE,aAAa,CAAC;IAC3B,GAAG,EAAE,aAAa,CAAC;CACpB,EAAE,iBAyBJ"}
@@ -1,27 +1,23 @@
1
1
  import { z } from "zod";
2
- export declare const runCronRoute: {
3
- handler: (c: import("hono").Context<import("../../../middlewares/global.middleware").EnvVitNode, "/", {}>) => Promise<(Response & import("hono").TypedResponse<`Cron jobs processed. Executed ${number} jobs.`, 200, "text">) | (Response & import("hono").TypedResponse<"Error processing cron jobs", 500, "text">)>;
4
- pluginId: "@vitnode/core";
5
- route: {
6
- method: "post";
7
- description: string;
8
- path: "/";
9
- middleware: ((c: import("hono").Context, next: import("hono").Next) => Promise<void>)[];
10
- responses: {
11
- 200: {
12
- content: {
13
- "text/plain": {
14
- schema: z.ZodString;
15
- };
2
+ export declare const runCronRoute: import("../../../../api/lib/route").Route<"@vitnode/core", {
3
+ method: "post";
4
+ description: string;
5
+ path: "/";
6
+ middleware: ((c: import("hono").Context, next: import("hono").Next) => Promise<void>)[];
7
+ responses: {
8
+ 200: {
9
+ content: {
10
+ "text/plain": {
11
+ schema: z.ZodString;
16
12
  };
17
- description: string;
18
- };
19
- 403: {
20
- description: string;
21
13
  };
14
+ description: string;
15
+ };
16
+ 403: {
17
+ description: string;
22
18
  };
23
- } & {
24
- getRoutingPath: () => "/";
25
19
  };
26
- };
20
+ } & {
21
+ path: string;
22
+ }>;
27
23
  //# sourceMappingURL=cron.route.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cron.route.d.ts","sourceRoot":"","sources":["../../../../../../src/api/modules/cron/routes/cron.route.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;CA4GvB,CAAC"}
1
+ {"version":3,"file":"cron.route.d.ts","sourceRoot":"","sources":["../../../../../../src/api/modules/cron/routes/cron.route.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;EA4GvB,CAAC"}
@@ -1,45 +1,31 @@
1
- export declare const middlewareModule: import("../../../api/lib/module").BuildModuleReturn<"@vitnode/core", "middleware", [{
2
- handler: (c: import("hono").Context<import("../../middlewares/global.middleware").EnvVitNode, "/", {}>) => Response & import("hono").TypedResponse<{
3
- isEmail: boolean;
4
- sso: {
5
- id: string;
6
- name: string;
7
- }[];
8
- captcha: {
9
- siteKey: string;
10
- type: "cloudflare_turnstile" | "recaptcha_v3";
11
- } | undefined;
12
- }, 200, "json">;
13
- pluginId: "@vitnode/core";
14
- route: {
15
- path: "/";
16
- method: "get";
17
- description: string;
18
- responses: {
19
- 200: {
20
- content: {
21
- "application/json": {
22
- schema: import("zod").ZodObject<{
23
- sso: import("zod").ZodArray<import("zod").ZodObject<{
24
- id: import("zod").ZodString;
25
- name: import("zod").ZodString;
26
- }, import("zod/v4/core").$strip>>;
27
- isEmail: import("zod").ZodBoolean;
28
- captcha: import("zod").ZodOptional<import("zod").ZodObject<{
29
- siteKey: import("zod").ZodString;
30
- type: import("zod").ZodEnum<{
31
- cloudflare_turnstile: "cloudflare_turnstile";
32
- recaptcha_v3: "recaptcha_v3";
33
- }>;
34
- }, import("zod/v4/core").$strip>>;
35
- }, import("zod/v4/core").$strip>;
36
- };
1
+ export declare const middlewareModule: import("../../../api/lib/module").BuildModuleReturn<"@vitnode/core", "middleware", [import("../../lib/route").Route<"@vitnode/core", {
2
+ path: "/";
3
+ method: "get";
4
+ description: string;
5
+ responses: {
6
+ 200: {
7
+ content: {
8
+ "application/json": {
9
+ schema: import("zod").ZodObject<{
10
+ sso: import("zod").ZodArray<import("zod").ZodObject<{
11
+ id: import("zod").ZodString;
12
+ name: import("zod").ZodString;
13
+ }, import("zod/v4/core").$strip>>;
14
+ isEmail: import("zod").ZodBoolean;
15
+ captcha: import("zod").ZodOptional<import("zod").ZodObject<{
16
+ siteKey: import("zod").ZodString;
17
+ type: import("zod").ZodEnum<{
18
+ cloudflare_turnstile: "cloudflare_turnstile";
19
+ recaptcha_v3: "recaptcha_v3";
20
+ }>;
21
+ }, import("zod/v4/core").$strip>>;
22
+ }, import("zod/v4/core").$strip>;
37
23
  };
38
- description: string;
39
24
  };
25
+ description: string;
40
26
  };
41
- } & {
42
- getRoutingPath: () => "/";
43
27
  };
44
- }], import("../../../api/lib/module").BaseBuildModuleReturn<"@vitnode/core", string, import("../../lib/route").Route<"@vitnode/core", import("@hono/zod-openapi").RouteConfig, import("@hono/zod-openapi").RouteHandler<import("@hono/zod-openapi").RouteConfig>>[]>[]>;
28
+ } & {
29
+ path: string;
30
+ }>], import("../../../api/lib/module").BaseBuildModuleReturn<"@vitnode/core", string, import("../../lib/route").Route<"@vitnode/core", import("@hono/zod-openapi").RouteConfig>[]>[]>;
45
31
  //# sourceMappingURL=middleware.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"middleware.module.d.ts","sourceRoot":"","sources":["../../../../../src/api/modules/middleware/middleware.module.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gQAI3B,CAAC"}
1
+ {"version":3,"file":"middleware.module.d.ts","sourceRoot":"","sources":["../../../../../src/api/modules/middleware/middleware.module.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8KAI3B,CAAC"}
@@ -13,48 +13,34 @@ export declare const routeMiddlewareSchema: z.ZodObject<{
13
13
  }>;
14
14
  }, z.core.$strip>>;
15
15
  }, z.core.$strip>;
16
- export declare const routeMiddleware: {
17
- handler: (c: import("hono").Context<import("../../middlewares/global.middleware").EnvVitNode, "/", {}>) => Response & import("hono").TypedResponse<{
18
- isEmail: boolean;
19
- sso: {
20
- id: string;
21
- name: string;
22
- }[];
23
- captcha: {
24
- siteKey: string;
25
- type: "cloudflare_turnstile" | "recaptcha_v3";
26
- } | undefined;
27
- }, 200, "json">;
28
- pluginId: "@vitnode/core";
29
- route: {
30
- path: "/";
31
- method: "get";
32
- description: string;
33
- responses: {
34
- 200: {
35
- content: {
36
- "application/json": {
37
- schema: z.ZodObject<{
38
- sso: z.ZodArray<z.ZodObject<{
39
- id: z.ZodString;
40
- name: z.ZodString;
41
- }, z.core.$strip>>;
42
- isEmail: z.ZodBoolean;
43
- captcha: z.ZodOptional<z.ZodObject<{
44
- siteKey: z.ZodString;
45
- type: z.ZodEnum<{
46
- cloudflare_turnstile: "cloudflare_turnstile";
47
- recaptcha_v3: "recaptcha_v3";
48
- }>;
49
- }, z.core.$strip>>;
50
- }, z.core.$strip>;
51
- };
16
+ export declare const routeMiddleware: import("../../../api/lib/route").Route<"@vitnode/core", {
17
+ path: "/";
18
+ method: "get";
19
+ description: string;
20
+ responses: {
21
+ 200: {
22
+ content: {
23
+ "application/json": {
24
+ schema: z.ZodObject<{
25
+ sso: z.ZodArray<z.ZodObject<{
26
+ id: z.ZodString;
27
+ name: z.ZodString;
28
+ }, z.core.$strip>>;
29
+ isEmail: z.ZodBoolean;
30
+ captcha: z.ZodOptional<z.ZodObject<{
31
+ siteKey: z.ZodString;
32
+ type: z.ZodEnum<{
33
+ cloudflare_turnstile: "cloudflare_turnstile";
34
+ recaptcha_v3: "recaptcha_v3";
35
+ }>;
36
+ }, z.core.$strip>>;
37
+ }, z.core.$strip>;
52
38
  };
53
- description: string;
54
39
  };
40
+ description: string;
55
41
  };
56
- } & {
57
- getRoutingPath: () => "/";
58
42
  };
59
- };
43
+ } & {
44
+ path: string;
45
+ }>;
60
46
  //# sourceMappingURL=route.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../src/api/modules/middleware/route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;iBAShC,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkC1B,CAAC"}
1
+ {"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../src/api/modules/middleware/route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;iBAShC,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkC1B,CAAC"}
@@ -4,49 +4,30 @@ export declare const zodChangePasswordSchema: z.ZodObject<{
4
4
  userId: z.ZodNumber;
5
5
  token: z.ZodString;
6
6
  }, z.core.$strip>;
7
- export declare const changePasswordRoute: {
8
- handler: (c: import("hono").Context<import("../../../middlewares/global.middleware").EnvVitNode, "/change-password", {
9
- in: {
10
- json: {
11
- password: string;
12
- userId: number;
13
- token: string;
14
- };
15
- };
16
- out: {
17
- json: {
18
- password: string;
19
- userId: number;
20
- token: string;
21
- };
22
- };
23
- }>) => Promise<Response & import("hono").TypedResponse<"Password changed", 201, "text">>;
24
- pluginId: "@vitnode/core";
25
- route: {
26
- method: "post";
27
- description: string;
28
- path: "/change-password";
29
- request: {
30
- body: {
31
- required: true;
32
- content: {
33
- "application/json": {
34
- schema: z.ZodObject<{
35
- password: z.ZodString;
36
- userId: z.ZodNumber;
37
- token: z.ZodString;
38
- }, z.core.$strip>;
39
- };
7
+ export declare const changePasswordRoute: import("../../../../api/lib/route").Route<"@vitnode/core", {
8
+ method: "post";
9
+ description: string;
10
+ path: "/change-password";
11
+ request: {
12
+ body: {
13
+ required: true;
14
+ content: {
15
+ "application/json": {
16
+ schema: z.ZodObject<{
17
+ password: z.ZodString;
18
+ userId: z.ZodNumber;
19
+ token: z.ZodString;
20
+ }, z.core.$strip>;
40
21
  };
41
22
  };
42
23
  };
43
- responses: {
44
- 201: {
45
- description: string;
46
- };
24
+ };
25
+ responses: {
26
+ 201: {
27
+ description: string;
47
28
  };
48
- } & {
49
- getRoutingPath: () => "/change-password";
50
29
  };
51
- };
30
+ } & {
31
+ path: string;
32
+ }>;
52
33
  //# sourceMappingURL=change-password.route.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"change-password.route.d.ts","sourceRoot":"","sources":["../../../../../../src/api/modules/users/routes/change-password.route.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,uBAAuB;;;;iBAMlC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyD9B,CAAC"}
1
+ {"version":3,"file":"change-password.route.d.ts","sourceRoot":"","sources":["../../../../../../src/api/modules/users/routes/change-password.route.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,uBAAuB;;;;iBAMlC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;EAyD9B,CAAC"}
@@ -1,42 +1,27 @@
1
1
  import { z } from "zod";
2
- export declare const resetPasswordRoute: {
3
- handler: (c: import("hono").Context<import("../../../middlewares/global.middleware").EnvVitNode, "/reset-password", {
4
- in: {
5
- json: {
6
- email: string;
7
- };
8
- };
9
- out: {
10
- json: {
11
- email: string;
12
- };
13
- };
14
- }>) => Promise<Response & import("hono").TypedResponse<"Email sent", 201, "text">>;
15
- pluginId: "@vitnode/core";
16
- route: {
17
- method: "post";
18
- description: string;
19
- path: "/reset-password";
20
- withCaptcha: true;
21
- request: {
22
- body: {
23
- required: true;
24
- content: {
25
- "application/json": {
26
- schema: z.ZodObject<{
27
- email: z.ZodEmail;
28
- }, z.core.$strip>;
29
- };
2
+ export declare const resetPasswordRoute: import("../../../../api/lib/route").Route<"@vitnode/core", {
3
+ method: "post";
4
+ description: string;
5
+ path: "/reset-password";
6
+ withCaptcha: true;
7
+ request: {
8
+ body: {
9
+ required: true;
10
+ content: {
11
+ "application/json": {
12
+ schema: z.ZodObject<{
13
+ email: z.ZodEmail;
14
+ }, z.core.$strip>;
30
15
  };
31
16
  };
32
17
  };
33
- responses: {
34
- 201: {
35
- description: string;
36
- };
18
+ };
19
+ responses: {
20
+ 201: {
21
+ description: string;
37
22
  };
38
- } & {
39
- getRoutingPath: () => "/reset-password";
40
23
  };
41
- };
24
+ } & {
25
+ path: string;
26
+ }>;
42
27
  //# sourceMappingURL=reset-passowrd.route.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reset-passowrd.route.d.ts","sourceRoot":"","sources":["../../../../../../src/api/modules/users/routes/reset-passowrd.route.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgH7B,CAAC"}
1
+ {"version":3,"file":"reset-passowrd.route.d.ts","sourceRoot":"","sources":["../../../../../../src/api/modules/users/routes/reset-passowrd.route.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;EAgH7B,CAAC"}
@@ -1,51 +1,33 @@
1
1
  import { z } from "zod";
2
- export declare const sessionRoute: {
3
- handler: (c: import("hono").Context<import("../../../middlewares/global.middleware").EnvVitNode, "/session", {}>) => Promise<Response & import("hono").TypedResponse<{
4
- user: {
5
- isAdmin: boolean;
6
- avatarColor: string;
7
- birthday: string | null;
8
- createdAt: string;
9
- email: string;
10
- emailVerified: boolean;
11
- id: number;
12
- name: string;
13
- nameCode: string;
14
- newsletter: boolean;
15
- roleId: number;
16
- } | null;
17
- }, 200, "json">>;
18
- pluginId: "@vitnode/core";
19
- route: {
20
- method: "get";
21
- description: string;
22
- path: "/session";
23
- responses: {
24
- 200: {
25
- content: {
26
- "application/json": {
27
- schema: z.ZodObject<{
28
- user: z.ZodNullable<z.ZodObject<{
29
- id: z.ZodNumber;
30
- email: z.ZodString;
31
- name: z.ZodString;
32
- nameCode: z.ZodString;
33
- createdAt: z.ZodDate;
34
- newsletter: z.ZodBoolean;
35
- avatarColor: z.ZodString;
36
- emailVerified: z.ZodBoolean;
37
- roleId: z.ZodNumber;
38
- birthday: z.ZodNullable<z.ZodDate>;
39
- isAdmin: z.ZodBoolean;
40
- }, z.core.$strip>>;
41
- }, z.core.$strip>;
42
- };
2
+ export declare const sessionRoute: import("../../../../api/lib/route").Route<"@vitnode/core", {
3
+ method: "get";
4
+ description: string;
5
+ path: "/session";
6
+ responses: {
7
+ 200: {
8
+ content: {
9
+ "application/json": {
10
+ schema: z.ZodObject<{
11
+ user: z.ZodNullable<z.ZodObject<{
12
+ id: z.ZodNumber;
13
+ email: z.ZodString;
14
+ name: z.ZodString;
15
+ nameCode: z.ZodString;
16
+ createdAt: z.ZodDate;
17
+ newsletter: z.ZodBoolean;
18
+ avatarColor: z.ZodString;
19
+ emailVerified: z.ZodBoolean;
20
+ roleId: z.ZodNumber;
21
+ birthday: z.ZodNullable<z.ZodDate>;
22
+ isAdmin: z.ZodBoolean;
23
+ }, z.core.$strip>>;
24
+ }, z.core.$strip>;
43
25
  };
44
- description: string;
45
26
  };
27
+ description: string;
46
28
  };
47
- } & {
48
- getRoutingPath: () => "/session";
49
29
  };
50
- };
30
+ } & {
31
+ path: string;
32
+ }>;
51
33
  //# sourceMappingURL=session.route.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"session.route.d.ts","sourceRoot":"","sources":["../../../../../../src/api/modules/users/routes/session.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8CvB,CAAC"}
1
+ {"version":3,"file":"session.route.d.ts","sourceRoot":"","sources":["../../../../../../src/api/modules/users/routes/session.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8CvB,CAAC"}
@@ -4,63 +4,41 @@ export declare const zodSignInSchema: z.ZodObject<{
4
4
  password: z.ZodString;
5
5
  isAdmin: z.ZodOptional<z.ZodBoolean>;
6
6
  }, z.core.$strip>;
7
- export declare const signInRoute: {
8
- handler: (c: import("hono").Context<import("../../../middlewares/global.middleware").EnvVitNode, "/sign_in", {
9
- in: {
10
- json: {
11
- email: string;
12
- password: string;
13
- isAdmin?: boolean | undefined;
14
- };
15
- };
16
- out: {
17
- json: {
18
- email: string;
19
- password: string;
20
- isAdmin?: boolean | undefined;
21
- };
22
- };
23
- }>) => Promise<Response & import("hono").TypedResponse<{
24
- id: number;
25
- token: string;
26
- }, 201, "json">>;
27
- pluginId: "@vitnode/core";
28
- route: {
29
- method: "post";
30
- description: string;
31
- path: "/sign_in";
32
- request: {
33
- body: {
34
- required: true;
35
- content: {
36
- "application/json": {
37
- schema: z.ZodObject<{
38
- email: z.ZodEmail;
39
- password: z.ZodString;
40
- isAdmin: z.ZodOptional<z.ZodBoolean>;
41
- }, z.core.$strip>;
42
- };
7
+ export declare const signInRoute: import("../../../../api/lib/route").Route<"@vitnode/core", {
8
+ method: "post";
9
+ description: string;
10
+ path: "/sign_in";
11
+ request: {
12
+ body: {
13
+ required: true;
14
+ content: {
15
+ "application/json": {
16
+ schema: z.ZodObject<{
17
+ email: z.ZodEmail;
18
+ password: z.ZodString;
19
+ isAdmin: z.ZodOptional<z.ZodBoolean>;
20
+ }, z.core.$strip>;
43
21
  };
44
22
  };
45
23
  };
46
- responses: {
47
- 403: {
48
- description: string;
49
- };
50
- 201: {
51
- content: {
52
- "application/json": {
53
- schema: z.ZodObject<{
54
- id: z.ZodNumber;
55
- token: z.ZodString;
56
- }, z.core.$strip>;
57
- };
24
+ };
25
+ responses: {
26
+ 403: {
27
+ description: string;
28
+ };
29
+ 201: {
30
+ content: {
31
+ "application/json": {
32
+ schema: z.ZodObject<{
33
+ id: z.ZodNumber;
34
+ token: z.ZodString;
35
+ }, z.core.$strip>;
58
36
  };
59
- description: string;
60
37
  };
38
+ description: string;
61
39
  };
62
- } & {
63
- getRoutingPath: () => "/sign_in";
64
40
  };
65
- };
41
+ } & {
42
+ path: string;
43
+ }>;
66
44
  //# sourceMappingURL=sign-in.route.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sign-in.route.d.ts","sourceRoot":"","sources":["../../../../../../src/api/modules/users/routes/sign-in.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,eAAe;;;;iBAU1B,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDtB,CAAC"}
1
+ {"version":3,"file":"sign-in.route.d.ts","sourceRoot":"","sources":["../../../../../../src/api/modules/users/routes/sign-in.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,eAAe;;;;iBAU1B,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoDtB,CAAC"}
@@ -1,43 +1,28 @@
1
1
  import { z } from "@hono/zod-openapi";
2
- export declare const signOutRoute: {
3
- handler: (c: import("hono").Context<import("../../../middlewares/global.middleware").EnvVitNode, "/sign_out", {
4
- in: {
5
- json: {
6
- isAdmin?: boolean | undefined;
7
- };
8
- };
9
- out: {
10
- json: {
11
- isAdmin?: boolean | undefined;
12
- };
13
- };
14
- }>) => Promise<Response & import("hono").TypedResponse<{}, 200 | 403, "json">>;
15
- pluginId: "@vitnode/core";
16
- route: {
17
- method: "delete";
18
- description: string;
19
- path: "/sign_out";
20
- request: {
21
- body: {
22
- content: {
23
- "application/json": {
24
- schema: z.ZodObject<{
25
- isAdmin: z.ZodOptional<z.ZodBoolean>;
26
- }, z.core.$strip>;
27
- };
2
+ export declare const signOutRoute: import("../../../../api/lib/route").Route<"@vitnode/core", {
3
+ method: "delete";
4
+ description: string;
5
+ path: "/sign_out";
6
+ request: {
7
+ body: {
8
+ content: {
9
+ "application/json": {
10
+ schema: z.ZodObject<{
11
+ isAdmin: z.ZodOptional<z.ZodBoolean>;
12
+ }, z.core.$strip>;
28
13
  };
29
14
  };
30
15
  };
31
- responses: {
32
- 200: {
33
- description: string;
34
- };
35
- 403: {
36
- description: string;
37
- };
16
+ };
17
+ responses: {
18
+ 200: {
19
+ description: string;
20
+ };
21
+ 403: {
22
+ description: string;
38
23
  };
39
- } & {
40
- getRoutingPath: () => "/sign_out";
41
24
  };
42
- };
25
+ } & {
26
+ path: string;
27
+ }>;
43
28
  //# sourceMappingURL=sign-out.route.d.ts.map