@vobase/core 0.6.2 → 0.8.0

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 (105) hide show
  1. package/dist/app.d.ts +11 -93
  2. package/dist/app.d.ts.map +1 -1
  3. package/dist/contracts/auth.d.ts +33 -0
  4. package/dist/contracts/auth.d.ts.map +1 -0
  5. package/dist/contracts/module.d.ts +17 -0
  6. package/dist/contracts/module.d.ts.map +1 -0
  7. package/dist/contracts/notify.d.ts +46 -0
  8. package/dist/contracts/notify.d.ts.map +1 -0
  9. package/dist/contracts/storage.d.ts +54 -0
  10. package/dist/contracts/storage.d.ts.map +1 -0
  11. package/dist/ctx.d.ts +8 -4
  12. package/dist/ctx.d.ts.map +1 -1
  13. package/dist/db/index.d.ts +0 -3
  14. package/dist/db/index.d.ts.map +1 -1
  15. package/dist/index.d.ts +31 -11
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +83798 -83170
  18. package/dist/mcp.d.ts +1 -1
  19. package/dist/mcp.d.ts.map +1 -1
  20. package/dist/module.d.ts +9 -0
  21. package/dist/module.d.ts.map +1 -1
  22. package/dist/modules/audit/index.d.ts +5 -0
  23. package/dist/modules/audit/index.d.ts.map +1 -0
  24. package/dist/modules/audit/middleware.d.ts +3 -0
  25. package/dist/modules/audit/middleware.d.ts.map +1 -0
  26. package/dist/{db/system-schema.d.ts → modules/audit/schema.d.ts} +1 -76
  27. package/dist/modules/audit/schema.d.ts.map +1 -0
  28. package/dist/{audit.d.ts → modules/audit/track-changes.d.ts} +2 -2
  29. package/dist/modules/audit/track-changes.d.ts.map +1 -0
  30. package/dist/modules/auth/audit-hooks.d.ts +6 -0
  31. package/dist/modules/auth/audit-hooks.d.ts.map +1 -0
  32. package/dist/modules/auth/index.d.ts +17 -0
  33. package/dist/modules/auth/index.d.ts.map +1 -0
  34. package/dist/modules/auth/middleware.d.ts +14 -0
  35. package/dist/modules/auth/middleware.d.ts.map +1 -0
  36. package/dist/{db/auth-schema.d.ts → modules/auth/schema.d.ts} +1 -1
  37. package/dist/{db/auth-schema.d.ts.map → modules/auth/schema.d.ts.map} +1 -1
  38. package/dist/{credentials.d.ts → modules/credentials/encrypt.d.ts} +2 -8
  39. package/dist/modules/credentials/encrypt.d.ts.map +1 -0
  40. package/dist/modules/credentials/index.d.ts +4 -0
  41. package/dist/modules/credentials/index.d.ts.map +1 -0
  42. package/dist/{db/credentials-schema.d.ts → modules/credentials/schema.d.ts} +1 -5
  43. package/dist/modules/credentials/schema.d.ts.map +1 -0
  44. package/dist/modules/notify/index.d.ts +36 -0
  45. package/dist/modules/notify/index.d.ts.map +1 -0
  46. package/dist/modules/notify/providers/resend.d.ts +7 -0
  47. package/dist/modules/notify/providers/resend.d.ts.map +1 -0
  48. package/dist/modules/notify/providers/smtp.d.ts +18 -0
  49. package/dist/modules/notify/providers/smtp.d.ts.map +1 -0
  50. package/dist/modules/notify/providers/waba.d.ts +12 -0
  51. package/dist/modules/notify/providers/waba.d.ts.map +1 -0
  52. package/dist/modules/notify/schema.d.ts +337 -0
  53. package/dist/modules/notify/schema.d.ts.map +1 -0
  54. package/dist/modules/notify/service.d.ts +22 -0
  55. package/dist/modules/notify/service.d.ts.map +1 -0
  56. package/dist/modules/sequences/index.d.ts +4 -0
  57. package/dist/modules/sequences/index.d.ts.map +1 -0
  58. package/dist/{sequence.d.ts → modules/sequences/next-sequence.d.ts} +2 -2
  59. package/dist/modules/sequences/next-sequence.d.ts.map +1 -0
  60. package/dist/modules/sequences/schema.d.ts +72 -0
  61. package/dist/modules/sequences/schema.d.ts.map +1 -0
  62. package/dist/modules/storage/index.d.ts +24 -0
  63. package/dist/modules/storage/index.d.ts.map +1 -0
  64. package/dist/modules/storage/providers/local.d.ts +3 -0
  65. package/dist/modules/storage/providers/local.d.ts.map +1 -0
  66. package/dist/modules/storage/providers/s3.d.ts +3 -0
  67. package/dist/modules/storage/providers/s3.d.ts.map +1 -0
  68. package/dist/modules/storage/routes.d.ts +4 -0
  69. package/dist/modules/storage/routes.d.ts.map +1 -0
  70. package/dist/modules/storage/schema.d.ts +273 -0
  71. package/dist/modules/storage/schema.d.ts.map +1 -0
  72. package/dist/modules/storage/service.d.ts +35 -0
  73. package/dist/modules/storage/service.d.ts.map +1 -0
  74. package/dist/schemas.d.ts +17 -0
  75. package/dist/schemas.d.ts.map +1 -0
  76. package/dist/throw-proxy.d.ts +7 -0
  77. package/dist/throw-proxy.d.ts.map +1 -0
  78. package/dist/webhooks-schema.d.ts +60 -0
  79. package/dist/webhooks-schema.d.ts.map +1 -0
  80. package/dist/webhooks.d.ts +5 -12
  81. package/dist/webhooks.d.ts.map +1 -1
  82. package/package.json +1 -1
  83. package/dist/audit.d.ts.map +0 -1
  84. package/dist/auth.d.ts +0 -30
  85. package/dist/auth.d.ts.map +0 -1
  86. package/dist/credentials.d.ts.map +0 -1
  87. package/dist/db/credentials-schema.d.ts.map +0 -1
  88. package/dist/db/ensure-core-tables.d.ts +0 -12
  89. package/dist/db/ensure-core-tables.d.ts.map +0 -1
  90. package/dist/db/migrator.d.ts +0 -3
  91. package/dist/db/migrator.d.ts.map +0 -1
  92. package/dist/db/system-schema.d.ts.map +0 -1
  93. package/dist/middleware/audit.d.ts +0 -6
  94. package/dist/middleware/audit.d.ts.map +0 -1
  95. package/dist/middleware/session.d.ts +0 -14
  96. package/dist/middleware/session.d.ts.map +0 -1
  97. package/dist/sequence.d.ts.map +0 -1
  98. package/dist/storage.d.ts +0 -8
  99. package/dist/storage.d.ts.map +0 -1
  100. package/dist/system/handlers.d.ts +0 -90
  101. package/dist/system/handlers.d.ts.map +0 -1
  102. package/dist/system/index.d.ts +0 -8
  103. package/dist/system/index.d.ts.map +0 -1
  104. package/dist/system/schema.d.ts +0 -2
  105. package/dist/system/schema.d.ts.map +0 -1
@@ -1,90 +0,0 @@
1
- import type { Auth } from '../auth';
2
- export declare function createSystemRoutes(auth: Auth): import("hono/hono-base").HonoBase<{}, {
3
- "/": {
4
- $get: {
5
- input: {};
6
- output: {
7
- version: string;
8
- uptime: number;
9
- modules: string[];
10
- };
11
- outputFormat: "json";
12
- status: import("hono/utils/http-status").ContentfulStatusCode;
13
- };
14
- };
15
- } & {
16
- "/health": {
17
- $get: {
18
- input: {};
19
- output: {
20
- status: string;
21
- db: string;
22
- uptime: number;
23
- };
24
- outputFormat: "json";
25
- status: import("hono/utils/http-status").ContentfulStatusCode;
26
- };
27
- };
28
- } & {
29
- "/audit-log": {
30
- $get: {
31
- input: {};
32
- output: {
33
- entries: {
34
- id: string;
35
- event: string;
36
- actorId: string | null;
37
- actorEmail: string | null;
38
- ip: string | null;
39
- details: string | null;
40
- createdAt: string;
41
- }[];
42
- nextCursor: string | null;
43
- };
44
- outputFormat: "json";
45
- status: import("hono/utils/http-status").ContentfulStatusCode;
46
- };
47
- };
48
- } & {
49
- "/sequences": {
50
- $get: {
51
- input: {};
52
- output: {
53
- sequences: {
54
- id: string;
55
- prefix: string;
56
- currentValue: number;
57
- updatedAt: string;
58
- }[];
59
- };
60
- outputFormat: "json";
61
- status: import("hono/utils/http-status").ContentfulStatusCode;
62
- };
63
- };
64
- } & {
65
- "/record-audits/:table/:id": {
66
- $get: {
67
- input: {
68
- param: {
69
- table: string;
70
- } & {
71
- id: string;
72
- };
73
- };
74
- output: {
75
- entries: {
76
- id: string;
77
- tableName: string;
78
- recordId: string;
79
- oldData: string | null;
80
- newData: string | null;
81
- changedBy: string | null;
82
- createdAt: string;
83
- }[];
84
- };
85
- outputFormat: "json";
86
- status: import("hono/utils/http-status").ContentfulStatusCode;
87
- };
88
- };
89
- }, "/", "/record-audits/:table/:id">;
90
- //# sourceMappingURL=handlers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../src/system/handlers.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAgCpC,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAuE5C"}
@@ -1,8 +0,0 @@
1
- import type { Auth } from '../auth';
2
- import { type VobaseModule } from '../module';
3
- import { createSystemRoutes } from './handlers';
4
- export * from './schema';
5
- export { createSystemRoutes } from './handlers';
6
- export type SystemRoutes = ReturnType<typeof createSystemRoutes>;
7
- export declare function createSystemModule(auth: Auth): VobaseModule;
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/system/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAgB,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAGhD,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEjE,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,GAAG,YAAY,CAM3D"}
@@ -1,2 +0,0 @@
1
- export * from '../db/system-schema';
2
- //# sourceMappingURL=schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/system/schema.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}