@kyro-cms/core 0.1.6 → 0.1.8

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 (185) hide show
  1. package/README.md +25 -2
  2. package/dist/WebhookService-CXJ5oz6L.d.ts +112 -0
  3. package/dist/WebhookService-Dqx9Is7m.d.cts +112 -0
  4. package/dist/{base-CQkFzqQl.d.ts → base-CciYzoDF.d.ts} +1 -1
  5. package/dist/{base-DlhVlwnN.d.cts → base-Cfek4fp3.d.cts} +1 -1
  6. package/dist/bootstrap-BMWVB2T6.cjs +31 -0
  7. package/dist/{bootstrap-WMWQ4DBX.cjs.map → bootstrap-BMWVB2T6.cjs.map} +1 -1
  8. package/dist/bootstrap-LL6O7PWO.js +6 -0
  9. package/dist/{bootstrap-WOVGAKZP.js.map → bootstrap-LL6O7PWO.js.map} +1 -1
  10. package/dist/{chunk-3VZCX4DF.cjs → chunk-42JPONZU.cjs} +77 -14
  11. package/dist/chunk-42JPONZU.cjs.map +1 -0
  12. package/dist/{chunk-3EVLFWH2.cjs → chunk-4M5PHMUE.cjs} +60 -346
  13. package/dist/chunk-4M5PHMUE.cjs.map +1 -0
  14. package/dist/chunk-4PWRCMTQ.cjs +15 -0
  15. package/dist/chunk-4PWRCMTQ.cjs.map +1 -0
  16. package/dist/chunk-6COM32WF.js +47 -0
  17. package/dist/chunk-6COM32WF.js.map +1 -0
  18. package/dist/chunk-6MSSF46R.js +941 -0
  19. package/dist/chunk-6MSSF46R.js.map +1 -0
  20. package/dist/{chunk-TZFJMPCH.cjs → chunk-7YITG2US.cjs} +9 -18
  21. package/dist/chunk-7YITG2US.cjs.map +1 -0
  22. package/dist/{chunk-A3RQWHKD.cjs → chunk-BLMFBDBG.cjs} +56 -6
  23. package/dist/chunk-BLMFBDBG.cjs.map +1 -0
  24. package/dist/{chunk-EINVJPFM.js → chunk-BTOE3VUK.js} +65 -3
  25. package/dist/chunk-BTOE3VUK.js.map +1 -0
  26. package/dist/chunk-E5X75WNB.js +497 -0
  27. package/dist/chunk-E5X75WNB.js.map +1 -0
  28. package/dist/chunk-E63IF3MD.cjs +951 -0
  29. package/dist/chunk-E63IF3MD.cjs.map +1 -0
  30. package/dist/chunk-EWP5AT6A.cjs +268 -0
  31. package/dist/chunk-EWP5AT6A.cjs.map +1 -0
  32. package/dist/{chunk-K7QF2QCM.cjs → chunk-FTSSDDZQ.cjs} +7 -3
  33. package/dist/chunk-FTSSDDZQ.cjs.map +1 -0
  34. package/dist/chunk-G7VZBCD6.cjs +35 -0
  35. package/dist/{chunk-5BLDMQED.cjs.map → chunk-G7VZBCD6.cjs.map} +1 -1
  36. package/dist/{chunk-VMSRTAH7.js → chunk-GLCPGZPM.js} +56 -6
  37. package/dist/chunk-GLCPGZPM.js.map +1 -0
  38. package/dist/{chunk-V3B25QOK.cjs → chunk-GVFB5C6O.cjs} +74 -2
  39. package/dist/chunk-GVFB5C6O.cjs.map +1 -0
  40. package/dist/chunk-HVSQDZZJ.cjs +765 -0
  41. package/dist/chunk-HVSQDZZJ.cjs.map +1 -0
  42. package/dist/chunk-HYC4GNHX.js +758 -0
  43. package/dist/chunk-HYC4GNHX.js.map +1 -0
  44. package/dist/chunk-KDVDIZ4Y.cjs +3479 -0
  45. package/dist/chunk-KDVDIZ4Y.cjs.map +1 -0
  46. package/dist/{chunk-OG3KX56O.js → chunk-KWGNR4HM.js} +7 -3
  47. package/dist/chunk-KWGNR4HM.js.map +1 -0
  48. package/dist/chunk-LIJVWQKU.cjs +256 -0
  49. package/dist/chunk-LIJVWQKU.cjs.map +1 -0
  50. package/dist/{chunk-XTZSUDSI.js → chunk-LTRCYJAG.js} +3 -18
  51. package/dist/chunk-LTRCYJAG.js.map +1 -0
  52. package/dist/{chunk-UEYC46RL.js → chunk-OUGKLCYF.js} +71 -8
  53. package/dist/chunk-OUGKLCYF.js.map +1 -0
  54. package/dist/chunk-QKOFKITP.js +258 -0
  55. package/dist/chunk-QKOFKITP.js.map +1 -0
  56. package/dist/chunk-RONAX6UU.js +3456 -0
  57. package/dist/chunk-RONAX6UU.js.map +1 -0
  58. package/dist/{chunk-5Y7QGIHD.js → chunk-RRYXQMZG.js} +60 -344
  59. package/dist/chunk-RRYXQMZG.js.map +1 -0
  60. package/dist/{chunk-QUJ4OLSC.js → chunk-U74F3YZU.js} +87 -7
  61. package/dist/chunk-U74F3YZU.js.map +1 -0
  62. package/dist/chunk-VIONYQ2K.cjs +517 -0
  63. package/dist/chunk-VIONYQ2K.cjs.map +1 -0
  64. package/dist/chunk-VSTRLXMQ.cjs +50 -0
  65. package/dist/chunk-VSTRLXMQ.cjs.map +1 -0
  66. package/dist/chunk-YT7HXXVN.js +13 -0
  67. package/dist/chunk-YT7HXXVN.js.map +1 -0
  68. package/dist/chunk-Z6ZWNWWR.js +30 -0
  69. package/dist/{chunk-NSBPE2FW.js.map → chunk-Z6ZWNWWR.js.map} +1 -1
  70. package/dist/cli/index.cjs +11 -7
  71. package/dist/cli/index.cjs.map +1 -1
  72. package/dist/cli/index.js +11 -7
  73. package/dist/cli/index.js.map +1 -1
  74. package/dist/client.cjs +45 -0
  75. package/dist/client.cjs.map +1 -0
  76. package/dist/client.d.cts +11 -0
  77. package/dist/client.d.ts +11 -0
  78. package/dist/client.js +4 -0
  79. package/dist/client.js.map +1 -0
  80. package/dist/drizzle/index.cjs +20 -17
  81. package/dist/drizzle/index.d.cts +115 -5
  82. package/dist/drizzle/index.d.ts +115 -5
  83. package/dist/drizzle/index.js +4 -5
  84. package/dist/graphql/index.cjs +4 -4
  85. package/dist/graphql/index.d.cts +3 -2
  86. package/dist/graphql/index.d.ts +3 -2
  87. package/dist/graphql/index.js +2 -2
  88. package/dist/{index-4fJKLFK2.d.ts → index-BvZ1iWm2.d.ts} +1 -1
  89. package/dist/{index-DI0DRPNv.d.cts → index-CTLPjpMH.d.cts} +1 -1
  90. package/dist/index.cjs +3391 -649
  91. package/dist/index.cjs.map +1 -1
  92. package/dist/index.d.cts +368 -309
  93. package/dist/index.d.ts +368 -309
  94. package/dist/index.js +3253 -599
  95. package/dist/index.js.map +1 -1
  96. package/dist/media-HOT3O7RW.js +4 -0
  97. package/dist/media-HOT3O7RW.js.map +1 -0
  98. package/dist/media-WKP5AOX2.cjs +17 -0
  99. package/dist/media-WKP5AOX2.cjs.map +1 -0
  100. package/dist/mongodb/index.cjs +1 -1
  101. package/dist/mongodb/index.d.cts +2 -2
  102. package/dist/mongodb/index.d.ts +2 -2
  103. package/dist/mongodb/index.js +1 -1
  104. package/dist/mysql-media-AI6YK767.cjs +48 -0
  105. package/dist/mysql-media-AI6YK767.cjs.map +1 -0
  106. package/dist/mysql-media-CDZUS7YX.js +45 -0
  107. package/dist/mysql-media-CDZUS7YX.js.map +1 -0
  108. package/dist/postgres-auth-adapter-EVRPO7BQ.cjs +14 -0
  109. package/dist/{postgres-auth-adapter-VK6GY7LX.cjs.map → postgres-auth-adapter-EVRPO7BQ.cjs.map} +1 -1
  110. package/dist/postgres-auth-adapter-OTRWSTT5.js +5 -0
  111. package/dist/{postgres-auth-adapter-REJFUMP7.js.map → postgres-auth-adapter-OTRWSTT5.js.map} +1 -1
  112. package/dist/rate-limit-BvUAVCzw.d.cts +223 -0
  113. package/dist/rate-limit-CJnqG1mG.d.ts +223 -0
  114. package/dist/redis-adapter-2N6VA7BI.cjs +13 -0
  115. package/dist/{redis-adapter-LBLNKGNS.cjs.map → redis-adapter-2N6VA7BI.cjs.map} +1 -1
  116. package/dist/redis-adapter-RA24FNCX.js +4 -0
  117. package/dist/{redis-adapter-4YDY4LWE.js.map → redis-adapter-RA24FNCX.js.map} +1 -1
  118. package/dist/rest/index.cjs +7 -5
  119. package/dist/rest/index.d.cts +29 -3
  120. package/dist/rest/index.d.ts +29 -3
  121. package/dist/rest/index.js +5 -3
  122. package/dist/schema-CNB2DDTX.js +6 -0
  123. package/dist/schema-CNB2DDTX.js.map +1 -0
  124. package/dist/schema-Y777CQQS.cjs +67 -0
  125. package/dist/schema-Y777CQQS.cjs.map +1 -0
  126. package/dist/templates/index.cjs +24 -28
  127. package/dist/templates/index.d.cts +2 -4
  128. package/dist/templates/index.d.ts +2 -4
  129. package/dist/templates/index.js +2 -2
  130. package/dist/trpc/index.cjs +12 -12
  131. package/dist/trpc/index.d.cts +19 -14
  132. package/dist/trpc/index.d.ts +19 -14
  133. package/dist/trpc/index.js +3 -3
  134. package/dist/types-BSR91JFN.d.cts +159 -0
  135. package/dist/types-BSR91JFN.d.ts +159 -0
  136. package/dist/{types-BGM5MV_K.d.ts → types-Bt1OEk0S.d.cts} +78 -38
  137. package/dist/{types-BGM5MV_K.d.cts → types-Bt1OEk0S.d.ts} +78 -38
  138. package/dist/ws/index.cjs +1 -1
  139. package/dist/ws/index.js +1 -1
  140. package/package.json +19 -2
  141. package/dist/bootstrap-WMWQ4DBX.cjs +0 -29
  142. package/dist/bootstrap-WOVGAKZP.js +0 -4
  143. package/dist/chunk-3EVLFWH2.cjs.map +0 -1
  144. package/dist/chunk-3QX6KG2S.js +0 -2125
  145. package/dist/chunk-3QX6KG2S.js.map +0 -1
  146. package/dist/chunk-3VZCX4DF.cjs.map +0 -1
  147. package/dist/chunk-5BLDMQED.cjs +0 -18
  148. package/dist/chunk-5Y7QGIHD.js.map +0 -1
  149. package/dist/chunk-7G6EVYCU.cjs +0 -94
  150. package/dist/chunk-7G6EVYCU.cjs.map +0 -1
  151. package/dist/chunk-A3RQWHKD.cjs.map +0 -1
  152. package/dist/chunk-EINVJPFM.js.map +0 -1
  153. package/dist/chunk-F5B64H5S.cjs +0 -2149
  154. package/dist/chunk-F5B64H5S.cjs.map +0 -1
  155. package/dist/chunk-K7QF2QCM.cjs.map +0 -1
  156. package/dist/chunk-LRTZJJPD.js +0 -86
  157. package/dist/chunk-LRTZJJPD.js.map +0 -1
  158. package/dist/chunk-NSBPE2FW.js +0 -15
  159. package/dist/chunk-OG3KX56O.js.map +0 -1
  160. package/dist/chunk-QUJ4OLSC.js.map +0 -1
  161. package/dist/chunk-R3XIBBAW.cjs +0 -34
  162. package/dist/chunk-R3XIBBAW.cjs.map +0 -1
  163. package/dist/chunk-SDMNUYVU.js +0 -30
  164. package/dist/chunk-SDMNUYVU.js.map +0 -1
  165. package/dist/chunk-TZFJMPCH.cjs.map +0 -1
  166. package/dist/chunk-UEG7KMKC.cjs +0 -228
  167. package/dist/chunk-UEG7KMKC.cjs.map +0 -1
  168. package/dist/chunk-UEYC46RL.js.map +0 -1
  169. package/dist/chunk-V3B25QOK.cjs.map +0 -1
  170. package/dist/chunk-VMSRTAH7.js.map +0 -1
  171. package/dist/chunk-XTZSUDSI.js.map +0 -1
  172. package/dist/chunk-YD7Y25W7.cjs +0 -176
  173. package/dist/chunk-YD7Y25W7.cjs.map +0 -1
  174. package/dist/chunk-YPAFJ7EV.js +0 -225
  175. package/dist/chunk-YPAFJ7EV.js.map +0 -1
  176. package/dist/database-7CJOXEZR.js +0 -5
  177. package/dist/database-7CJOXEZR.js.map +0 -1
  178. package/dist/database-QOIV44GT.cjs +0 -22
  179. package/dist/database-QOIV44GT.cjs.map +0 -1
  180. package/dist/index-BMySjW6o.d.cts +0 -198
  181. package/dist/index-CMUNCIWQ.d.ts +0 -198
  182. package/dist/postgres-auth-adapter-REJFUMP7.js +0 -5
  183. package/dist/postgres-auth-adapter-VK6GY7LX.cjs +0 -14
  184. package/dist/redis-adapter-4YDY4LWE.js +0 -4
  185. package/dist/redis-adapter-LBLNKGNS.cjs +0 -13
@@ -0,0 +1,45 @@
1
+ 'use strict';
2
+
3
+ var chunkEWP5AT6A_cjs = require('./chunk-EWP5AT6A.cjs');
4
+ require('./chunk-G7VZBCD6.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "CSSGenerator", {
9
+ enumerable: true,
10
+ get: function () { return chunkEWP5AT6A_cjs.CSSGenerator; }
11
+ });
12
+ Object.defineProperty(exports, "createAdminStyling", {
13
+ enumerable: true,
14
+ get: function () { return chunkEWP5AT6A_cjs.createAdminStyling; }
15
+ });
16
+ Object.defineProperty(exports, "createAuditContext", {
17
+ enumerable: true,
18
+ get: function () { return chunkEWP5AT6A_cjs.createAuditContext; }
19
+ });
20
+ Object.defineProperty(exports, "defaultDarkTheme", {
21
+ enumerable: true,
22
+ get: function () { return chunkEWP5AT6A_cjs.defaultDarkTheme; }
23
+ });
24
+ Object.defineProperty(exports, "defaultFieldStyling", {
25
+ enumerable: true,
26
+ get: function () { return chunkEWP5AT6A_cjs.defaultFieldStyling; }
27
+ });
28
+ Object.defineProperty(exports, "defaultLightTheme", {
29
+ enumerable: true,
30
+ get: function () { return chunkEWP5AT6A_cjs.defaultLightTheme; }
31
+ });
32
+ Object.defineProperty(exports, "ecommerce2026Theme", {
33
+ enumerable: true,
34
+ get: function () { return chunkEWP5AT6A_cjs.ecommerce2026Theme; }
35
+ });
36
+ Object.defineProperty(exports, "generateCSSVariables", {
37
+ enumerable: true,
38
+ get: function () { return chunkEWP5AT6A_cjs.generateCSSVariables; }
39
+ });
40
+ Object.defineProperty(exports, "generateTailwindConfig", {
41
+ enumerable: true,
42
+ get: function () { return chunkEWP5AT6A_cjs.generateTailwindConfig; }
43
+ });
44
+ //# sourceMappingURL=client.cjs.map
45
+ //# sourceMappingURL=client.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"client.cjs"}
@@ -0,0 +1,11 @@
1
+ export { A as AdminConfig, a as ArrayField, b as AuthConfig, B as BaseField, c as Block, d as BlockAdmin, e as BlockImage, f as BlocksField, C as CheckboxField, g as CodeField, h as CollapsibleField, i as CollectionConfig, j as ColorField, D as DateField, E as EmailField, F as Field, k as FieldAdmin, l as FieldType, G as GlobalConfig, m as GroupField, I as ImageField, n as ImageSize, J as JSONField, K as KyroConfig, M as MarkdownField, N as NumberField, P as PasswordField, R as RadioField, o as RelationshipField, p as RichTextBlock, q as RichTextField, r as RowField, S as SelectField, T as TabsField, s as TextField, t as TextareaField, U as UploadConfig, u as UploadField, V as VersionConfig } from './types-Bt1OEk0S.cjs';
2
+ export { A as AuditAction, a as AuditLog, b as AuditLogFilter, c as AuthAdapter, d as AuthResult, S as AuthSession, e as AuthTokenConfig, f as AuthUser, J as JWTPayload, L as LoginCredentials, R as RegisterData, S as Session, U as UserRole } from './types-BSR91JFN.cjs';
3
+ export { A as AdminStylingConfig, C as CSSGenerator, F as FieldStyling, L as LockoutConfig, a as LockoutStatus, R as RateLimitConfig, b as RateLimitResult, c as RedisAuthAdapterOptions, S as StylingConfig, d as StylingMode, T as ThemeBorderRadius, e as ThemeColors, f as ThemeConfig, g as ThemeFonts, h as ThemeShadows, i as ThemeSpacing, j as createAdminStyling, k as defaultDarkTheme, l as defaultFieldStyling, m as defaultLightTheme, n as ecommerce2026Theme, o as generateCSSVariables, p as generateTailwindConfig } from './rate-limit-BvUAVCzw.cjs';
4
+ import 'ioredis';
5
+
6
+ declare function createAuditContext(req: Request): {
7
+ ipAddress: string;
8
+ userAgent: string;
9
+ };
10
+
11
+ export { createAuditContext };
@@ -0,0 +1,11 @@
1
+ export { A as AdminConfig, a as ArrayField, b as AuthConfig, B as BaseField, c as Block, d as BlockAdmin, e as BlockImage, f as BlocksField, C as CheckboxField, g as CodeField, h as CollapsibleField, i as CollectionConfig, j as ColorField, D as DateField, E as EmailField, F as Field, k as FieldAdmin, l as FieldType, G as GlobalConfig, m as GroupField, I as ImageField, n as ImageSize, J as JSONField, K as KyroConfig, M as MarkdownField, N as NumberField, P as PasswordField, R as RadioField, o as RelationshipField, p as RichTextBlock, q as RichTextField, r as RowField, S as SelectField, T as TabsField, s as TextField, t as TextareaField, U as UploadConfig, u as UploadField, V as VersionConfig } from './types-Bt1OEk0S.js';
2
+ export { A as AuditAction, a as AuditLog, b as AuditLogFilter, c as AuthAdapter, d as AuthResult, S as AuthSession, e as AuthTokenConfig, f as AuthUser, J as JWTPayload, L as LoginCredentials, R as RegisterData, S as Session, U as UserRole } from './types-BSR91JFN.js';
3
+ export { A as AdminStylingConfig, C as CSSGenerator, F as FieldStyling, L as LockoutConfig, a as LockoutStatus, R as RateLimitConfig, b as RateLimitResult, c as RedisAuthAdapterOptions, S as StylingConfig, d as StylingMode, T as ThemeBorderRadius, e as ThemeColors, f as ThemeConfig, g as ThemeFonts, h as ThemeShadows, i as ThemeSpacing, j as createAdminStyling, k as defaultDarkTheme, l as defaultFieldStyling, m as defaultLightTheme, n as ecommerce2026Theme, o as generateCSSVariables, p as generateTailwindConfig } from './rate-limit-CJnqG1mG.js';
4
+ import 'ioredis';
5
+
6
+ declare function createAuditContext(req: Request): {
7
+ ipAddress: string;
8
+ userAgent: string;
9
+ };
10
+
11
+ export { createAuditContext };
package/dist/client.js ADDED
@@ -0,0 +1,4 @@
1
+ export { CSSGenerator, createAdminStyling, createAuditContext, defaultDarkTheme, defaultFieldStyling, defaultLightTheme, ecommerce2026Theme, generateCSSVariables, generateTailwindConfig } from './chunk-QKOFKITP.js';
2
+ import './chunk-Z6ZWNWWR.js';
3
+ //# sourceMappingURL=client.js.map
4
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"client.js"}
@@ -1,45 +1,48 @@
1
1
  'use strict';
2
2
 
3
- var chunkV3B25QOK_cjs = require('../chunk-V3B25QOK.cjs');
4
- var chunkYD7Y25W7_cjs = require('../chunk-YD7Y25W7.cjs');
5
- var chunk7G6EVYCU_cjs = require('../chunk-7G6EVYCU.cjs');
6
- require('../chunk-TZFJMPCH.cjs');
3
+ var chunkGVFB5C6O_cjs = require('../chunk-GVFB5C6O.cjs');
4
+ var chunkLIJVWQKU_cjs = require('../chunk-LIJVWQKU.cjs');
5
+ require('../chunk-7YITG2US.cjs');
7
6
  require('../chunk-RLTG4YZM.cjs');
8
- require('../chunk-5BLDMQED.cjs');
7
+ require('../chunk-G7VZBCD6.cjs');
9
8
 
10
9
 
11
10
 
12
11
  Object.defineProperty(exports, "DrizzleAdapter", {
13
12
  enumerable: true,
14
- get: function () { return chunkV3B25QOK_cjs.DrizzleAdapter; }
13
+ get: function () { return chunkGVFB5C6O_cjs.DrizzleAdapter; }
15
14
  });
16
15
  Object.defineProperty(exports, "collectionToDrizzleSchema", {
17
16
  enumerable: true,
18
- get: function () { return chunkV3B25QOK_cjs.collectionToDrizzleSchema; }
17
+ get: function () { return chunkGVFB5C6O_cjs.collectionToDrizzleSchema; }
19
18
  });
20
- Object.defineProperty(exports, "createDrizzleAdapter", {
19
+ Object.defineProperty(exports, "createDatabase", {
21
20
  enumerable: true,
22
- get: function () { return chunkV3B25QOK_cjs.createDrizzleAdapter; }
21
+ get: function () { return chunkGVFB5C6O_cjs.createDatabase; }
23
22
  });
24
- Object.defineProperty(exports, "fieldToDrizzleType", {
23
+ Object.defineProperty(exports, "createDrizzleAdapter", {
25
24
  enumerable: true,
26
- get: function () { return chunkV3B25QOK_cjs.fieldToDrizzleType; }
25
+ get: function () { return chunkGVFB5C6O_cjs.createDrizzleAdapter; }
27
26
  });
28
- Object.defineProperty(exports, "PostgresAuthAdapter", {
27
+ Object.defineProperty(exports, "fieldToDrizzleType", {
29
28
  enumerable: true,
30
- get: function () { return chunkYD7Y25W7_cjs.PostgresAuthAdapter; }
29
+ get: function () { return chunkGVFB5C6O_cjs.fieldToDrizzleType; }
31
30
  });
32
- Object.defineProperty(exports, "createDatabase", {
31
+ Object.defineProperty(exports, "genId", {
33
32
  enumerable: true,
34
- get: function () { return chunk7G6EVYCU_cjs.createDatabase; }
33
+ get: function () { return chunkGVFB5C6O_cjs.genId; }
35
34
  });
36
35
  Object.defineProperty(exports, "runMigrations", {
37
36
  enumerable: true,
38
- get: function () { return chunk7G6EVYCU_cjs.runMigrations; }
37
+ get: function () { return chunkGVFB5C6O_cjs.runMigrations; }
39
38
  });
40
39
  Object.defineProperty(exports, "seedDefaultRoles", {
41
40
  enumerable: true,
42
- get: function () { return chunk7G6EVYCU_cjs.seedDefaultRoles; }
41
+ get: function () { return chunkGVFB5C6O_cjs.seedDefaultRoles; }
42
+ });
43
+ Object.defineProperty(exports, "PostgresAuthAdapter", {
44
+ enumerable: true,
45
+ get: function () { return chunkLIJVWQKU_cjs.PostgresAuthAdapter; }
43
46
  });
44
47
  //# sourceMappingURL=index.cjs.map
45
48
  //# sourceMappingURL=index.cjs.map
@@ -1,5 +1,115 @@
1
- export { D as DrizzleAdapter, P as PostgresAuthAdapter, d as collectionToDrizzleSchema, e as createDatabase, f as createDrizzleAdapter, g as fieldToDrizzleType, r as runMigrations, s as seedDefaultRoles } from '../index-BMySjW6o.cjs';
2
- import '../base-DlhVlwnN.cjs';
3
- import '../types-BGM5MV_K.cjs';
4
- import 'drizzle-orm/postgres-js';
5
- import 'postgres';
1
+ import { A as AbstractBaseAdapter } from '../base-Cfek4fp3.cjs';
2
+ import { x as FindArgs, y as FindResult, z as FindByIDArgs, H as CreateArgs, L as UpdateArgs, O as DeleteArgs, i as CollectionConfig, F as Field } from '../types-Bt1OEk0S.cjs';
3
+ import { PostgresJsDatabase } from 'drizzle-orm/postgres-js';
4
+ import { c as AuthAdapter, U as UserRole, f as AuthUser, S as Session, b as AuditLogFilter, a as AuditLog } from '../types-BSR91JFN.cjs';
5
+ import 'ioredis';
6
+
7
+ declare function fieldToDrizzleType(field: Field, dialect?: 'postgres' | 'mysql' | 'sqlite'): string;
8
+ declare function collectionToDrizzleSchema(collection: CollectionConfig, dialect?: 'postgres' | 'mysql' | 'sqlite'): string;
9
+ declare class DrizzleAdapter extends AbstractBaseAdapter {
10
+ private client;
11
+ private schema;
12
+ private dialect;
13
+ constructor(options: {
14
+ type: 'postgres' | 'mysql' | 'sqlite';
15
+ client: any;
16
+ schema?: any;
17
+ });
18
+ connect(): Promise<void>;
19
+ disconnect(): Promise<void>;
20
+ find<T>(args: FindArgs): Promise<FindResult<T>>;
21
+ findByID<T>(args: FindByIDArgs): Promise<T | null>;
22
+ create<T>(args: CreateArgs): Promise<T>;
23
+ update<T>(args: UpdateArgs): Promise<T>;
24
+ delete<T>(args: DeleteArgs): Promise<T>;
25
+ count(args: {
26
+ collection: string;
27
+ where?: Record<string, any>;
28
+ tenantID?: string;
29
+ }): Promise<number>;
30
+ findOne(args: {
31
+ collection: string;
32
+ where: Record<string, any>;
33
+ tenantID?: string;
34
+ }): Promise<any>;
35
+ findVersions(args: FindArgs): Promise<FindResult<any>>;
36
+ findVersionByID(args: FindByIDArgs): Promise<any>;
37
+ createVersion(args: CreateArgs): Promise<any>;
38
+ deleteVersions(args: {
39
+ collection: string;
40
+ where: Record<string, any>;
41
+ }): Promise<void>;
42
+ private getTable;
43
+ private buildWhereClause;
44
+ private processResult;
45
+ }
46
+ declare function createDrizzleAdapter(options: {
47
+ type: 'postgres' | 'mysql' | 'sqlite';
48
+ client: any;
49
+ schema?: any;
50
+ }): DrizzleAdapter;
51
+
52
+ interface PostgresAuthAdapterOptions {
53
+ db: PostgresJsDatabase;
54
+ prefix?: string;
55
+ sessionTTL?: number;
56
+ refreshTokenTTL?: number;
57
+ }
58
+ declare class PostgresAuthAdapter implements AuthAdapter {
59
+ private db;
60
+ private prefix;
61
+ private sessionTTL;
62
+ private refreshTokenTTL;
63
+ constructor(options: PostgresAuthAdapterOptions);
64
+ createUser(data: {
65
+ email: string;
66
+ password: string;
67
+ role?: UserRole;
68
+ tenantId?: string;
69
+ }): Promise<AuthUser>;
70
+ findUserByEmail(email: string): Promise<AuthUser | null>;
71
+ findUserById(id: string): Promise<AuthUser | null>;
72
+ updateUser(id: string, data: Partial<AuthUser>): Promise<AuthUser | null>;
73
+ deleteUser(id: string): Promise<boolean>;
74
+ verifyPassword(email: string, password: string): Promise<AuthUser | null>;
75
+ hashPassword(password: string): Promise<string>;
76
+ createSession(userId: string, data?: {
77
+ ipAddress?: string;
78
+ userAgent?: string;
79
+ }): Promise<Session>;
80
+ findSessionByToken(token: string): Promise<Session | null>;
81
+ deleteSession(sessionId: string): Promise<boolean>;
82
+ deleteUserSessions(userId: string): Promise<number>;
83
+ addPasswordToHistory(userId: string, passwordHash: string): Promise<void>;
84
+ getPasswordHistory(userId: string, count?: number): Promise<string[]>;
85
+ isPasswordInHistory(password: string, userId: string, historyCount?: number): Promise<boolean>;
86
+ isLocked(userId: string): Promise<boolean>;
87
+ getLockout(userId: string): Promise<{
88
+ lockedUntil: Date;
89
+ } | null>;
90
+ recordFailedAttempt(userId: string, ipAddress?: string): Promise<{
91
+ attempts: number;
92
+ locked: boolean;
93
+ }>;
94
+ resetAttempts(userId: string): Promise<void>;
95
+ findAuditLogs(filter: AuditLogFilter): Promise<{
96
+ logs: AuditLog[];
97
+ total: number;
98
+ }>;
99
+ createAuditLog(data: Omit<AuditLog, "id" | "timestamp">): Promise<AuditLog>;
100
+ private userToAuthUser;
101
+ private sessionToSession;
102
+ }
103
+
104
+ type Dialect = "sqlite" | "postgres" | "mysql";
105
+ declare function genId(): string;
106
+ interface DatabaseResult {
107
+ db: any;
108
+ dialect: Dialect;
109
+ genId: () => string;
110
+ }
111
+ declare function createDatabase(): Promise<DatabaseResult>;
112
+ declare function runMigrations(_db: any, _dialect?: Dialect): Promise<void>;
113
+ declare function seedDefaultRoles(db: any): Promise<void>;
114
+
115
+ export { type Dialect, DrizzleAdapter, PostgresAuthAdapter, collectionToDrizzleSchema, createDatabase, createDrizzleAdapter, fieldToDrizzleType, genId, runMigrations, seedDefaultRoles };
@@ -1,5 +1,115 @@
1
- export { D as DrizzleAdapter, P as PostgresAuthAdapter, d as collectionToDrizzleSchema, e as createDatabase, f as createDrizzleAdapter, g as fieldToDrizzleType, r as runMigrations, s as seedDefaultRoles } from '../index-CMUNCIWQ.js';
2
- import '../base-CQkFzqQl.js';
3
- import '../types-BGM5MV_K.js';
4
- import 'drizzle-orm/postgres-js';
5
- import 'postgres';
1
+ import { A as AbstractBaseAdapter } from '../base-CciYzoDF.js';
2
+ import { x as FindArgs, y as FindResult, z as FindByIDArgs, H as CreateArgs, L as UpdateArgs, O as DeleteArgs, i as CollectionConfig, F as Field } from '../types-Bt1OEk0S.js';
3
+ import { PostgresJsDatabase } from 'drizzle-orm/postgres-js';
4
+ import { c as AuthAdapter, U as UserRole, f as AuthUser, S as Session, b as AuditLogFilter, a as AuditLog } from '../types-BSR91JFN.js';
5
+ import 'ioredis';
6
+
7
+ declare function fieldToDrizzleType(field: Field, dialect?: 'postgres' | 'mysql' | 'sqlite'): string;
8
+ declare function collectionToDrizzleSchema(collection: CollectionConfig, dialect?: 'postgres' | 'mysql' | 'sqlite'): string;
9
+ declare class DrizzleAdapter extends AbstractBaseAdapter {
10
+ private client;
11
+ private schema;
12
+ private dialect;
13
+ constructor(options: {
14
+ type: 'postgres' | 'mysql' | 'sqlite';
15
+ client: any;
16
+ schema?: any;
17
+ });
18
+ connect(): Promise<void>;
19
+ disconnect(): Promise<void>;
20
+ find<T>(args: FindArgs): Promise<FindResult<T>>;
21
+ findByID<T>(args: FindByIDArgs): Promise<T | null>;
22
+ create<T>(args: CreateArgs): Promise<T>;
23
+ update<T>(args: UpdateArgs): Promise<T>;
24
+ delete<T>(args: DeleteArgs): Promise<T>;
25
+ count(args: {
26
+ collection: string;
27
+ where?: Record<string, any>;
28
+ tenantID?: string;
29
+ }): Promise<number>;
30
+ findOne(args: {
31
+ collection: string;
32
+ where: Record<string, any>;
33
+ tenantID?: string;
34
+ }): Promise<any>;
35
+ findVersions(args: FindArgs): Promise<FindResult<any>>;
36
+ findVersionByID(args: FindByIDArgs): Promise<any>;
37
+ createVersion(args: CreateArgs): Promise<any>;
38
+ deleteVersions(args: {
39
+ collection: string;
40
+ where: Record<string, any>;
41
+ }): Promise<void>;
42
+ private getTable;
43
+ private buildWhereClause;
44
+ private processResult;
45
+ }
46
+ declare function createDrizzleAdapter(options: {
47
+ type: 'postgres' | 'mysql' | 'sqlite';
48
+ client: any;
49
+ schema?: any;
50
+ }): DrizzleAdapter;
51
+
52
+ interface PostgresAuthAdapterOptions {
53
+ db: PostgresJsDatabase;
54
+ prefix?: string;
55
+ sessionTTL?: number;
56
+ refreshTokenTTL?: number;
57
+ }
58
+ declare class PostgresAuthAdapter implements AuthAdapter {
59
+ private db;
60
+ private prefix;
61
+ private sessionTTL;
62
+ private refreshTokenTTL;
63
+ constructor(options: PostgresAuthAdapterOptions);
64
+ createUser(data: {
65
+ email: string;
66
+ password: string;
67
+ role?: UserRole;
68
+ tenantId?: string;
69
+ }): Promise<AuthUser>;
70
+ findUserByEmail(email: string): Promise<AuthUser | null>;
71
+ findUserById(id: string): Promise<AuthUser | null>;
72
+ updateUser(id: string, data: Partial<AuthUser>): Promise<AuthUser | null>;
73
+ deleteUser(id: string): Promise<boolean>;
74
+ verifyPassword(email: string, password: string): Promise<AuthUser | null>;
75
+ hashPassword(password: string): Promise<string>;
76
+ createSession(userId: string, data?: {
77
+ ipAddress?: string;
78
+ userAgent?: string;
79
+ }): Promise<Session>;
80
+ findSessionByToken(token: string): Promise<Session | null>;
81
+ deleteSession(sessionId: string): Promise<boolean>;
82
+ deleteUserSessions(userId: string): Promise<number>;
83
+ addPasswordToHistory(userId: string, passwordHash: string): Promise<void>;
84
+ getPasswordHistory(userId: string, count?: number): Promise<string[]>;
85
+ isPasswordInHistory(password: string, userId: string, historyCount?: number): Promise<boolean>;
86
+ isLocked(userId: string): Promise<boolean>;
87
+ getLockout(userId: string): Promise<{
88
+ lockedUntil: Date;
89
+ } | null>;
90
+ recordFailedAttempt(userId: string, ipAddress?: string): Promise<{
91
+ attempts: number;
92
+ locked: boolean;
93
+ }>;
94
+ resetAttempts(userId: string): Promise<void>;
95
+ findAuditLogs(filter: AuditLogFilter): Promise<{
96
+ logs: AuditLog[];
97
+ total: number;
98
+ }>;
99
+ createAuditLog(data: Omit<AuditLog, "id" | "timestamp">): Promise<AuditLog>;
100
+ private userToAuthUser;
101
+ private sessionToSession;
102
+ }
103
+
104
+ type Dialect = "sqlite" | "postgres" | "mysql";
105
+ declare function genId(): string;
106
+ interface DatabaseResult {
107
+ db: any;
108
+ dialect: Dialect;
109
+ genId: () => string;
110
+ }
111
+ declare function createDatabase(): Promise<DatabaseResult>;
112
+ declare function runMigrations(_db: any, _dialect?: Dialect): Promise<void>;
113
+ declare function seedDefaultRoles(db: any): Promise<void>;
114
+
115
+ export { type Dialect, DrizzleAdapter, PostgresAuthAdapter, collectionToDrizzleSchema, createDatabase, createDrizzleAdapter, fieldToDrizzleType, genId, runMigrations, seedDefaultRoles };
@@ -1,8 +1,7 @@
1
- export { DrizzleAdapter, collectionToDrizzleSchema, createDrizzleAdapter, fieldToDrizzleType } from '../chunk-EINVJPFM.js';
2
- export { PostgresAuthAdapter } from '../chunk-QUJ4OLSC.js';
3
- export { createDatabase, runMigrations, seedDefaultRoles } from '../chunk-LRTZJJPD.js';
4
- import '../chunk-XTZSUDSI.js';
1
+ export { DrizzleAdapter, collectionToDrizzleSchema, createDatabase, createDrizzleAdapter, fieldToDrizzleType, genId, runMigrations, seedDefaultRoles } from '../chunk-BTOE3VUK.js';
2
+ export { PostgresAuthAdapter } from '../chunk-U74F3YZU.js';
3
+ import '../chunk-LTRCYJAG.js';
5
4
  import '../chunk-BXMWDUED.js';
6
- import '../chunk-NSBPE2FW.js';
5
+ import '../chunk-Z6ZWNWWR.js';
7
6
  //# sourceMappingURL=index.js.map
8
7
  //# sourceMappingURL=index.js.map
@@ -1,17 +1,17 @@
1
1
  'use strict';
2
2
 
3
- var chunkK7QF2QCM_cjs = require('../chunk-K7QF2QCM.cjs');
4
- require('../chunk-5BLDMQED.cjs');
3
+ var chunkFTSSDDZQ_cjs = require('../chunk-FTSSDDZQ.cjs');
4
+ require('../chunk-G7VZBCD6.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "buildGraphQLSchema", {
9
9
  enumerable: true,
10
- get: function () { return chunkK7QF2QCM_cjs.buildGraphQLSchema; }
10
+ get: function () { return chunkFTSSDDZQ_cjs.buildGraphQLSchema; }
11
11
  });
12
12
  Object.defineProperty(exports, "createGraphQLSchema", {
13
13
  enumerable: true,
14
- get: function () { return chunkK7QF2QCM_cjs.createGraphQLSchema; }
14
+ get: function () { return chunkFTSSDDZQ_cjs.createGraphQLSchema; }
15
15
  });
16
16
  //# sourceMappingURL=index.cjs.map
17
17
  //# sourceMappingURL=index.cjs.map
@@ -1,6 +1,6 @@
1
1
  import { GraphQLSchema } from 'graphql';
2
- import { B as BaseAdapter, f as User, g as Request } from '../types-BGM5MV_K.cjs';
3
- import { R as Registry } from '../index-DI0DRPNv.cjs';
2
+ import { w as BaseAdapter, Q as User, W as Request } from '../types-Bt1OEk0S.cjs';
3
+ import { R as Registry } from '../index-CTLPjpMH.cjs';
4
4
  import 'zod';
5
5
 
6
6
  interface GraphQLSchemaOptions {
@@ -9,6 +9,7 @@ interface GraphQLSchemaOptions {
9
9
  user?: User;
10
10
  req?: Request;
11
11
  tenantID?: string;
12
+ settings?: Record<string, any>;
12
13
  }
13
14
  declare function buildGraphQLSchema(options: GraphQLSchemaOptions): GraphQLSchema;
14
15
  declare function createGraphQLSchema(registry: Registry, db: BaseAdapter, options?: {
@@ -1,6 +1,6 @@
1
1
  import { GraphQLSchema } from 'graphql';
2
- import { B as BaseAdapter, f as User, g as Request } from '../types-BGM5MV_K.js';
3
- import { R as Registry } from '../index-4fJKLFK2.js';
2
+ import { w as BaseAdapter, Q as User, W as Request } from '../types-Bt1OEk0S.js';
3
+ import { R as Registry } from '../index-BvZ1iWm2.js';
4
4
  import 'zod';
5
5
 
6
6
  interface GraphQLSchemaOptions {
@@ -9,6 +9,7 @@ interface GraphQLSchemaOptions {
9
9
  user?: User;
10
10
  req?: Request;
11
11
  tenantID?: string;
12
+ settings?: Record<string, any>;
12
13
  }
13
14
  declare function buildGraphQLSchema(options: GraphQLSchemaOptions): GraphQLSchema;
14
15
  declare function createGraphQLSchema(registry: Registry, db: BaseAdapter, options?: {
@@ -1,4 +1,4 @@
1
- export { buildGraphQLSchema, createGraphQLSchema } from '../chunk-OG3KX56O.js';
2
- import '../chunk-NSBPE2FW.js';
1
+ export { buildGraphQLSchema, createGraphQLSchema } from '../chunk-KWGNR4HM.js';
2
+ import '../chunk-Z6ZWNWWR.js';
3
3
  //# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { C as CollectionConfig, G as GlobalConfig, P as PluginConfig, F as Field } from './types-BGM5MV_K.js';
1
+ import { i as CollectionConfig, G as GlobalConfig, v as PluginConfig, F as Field } from './types-Bt1OEk0S.js';
2
2
  import { ZodTypeAny } from 'zod';
3
3
 
4
4
  declare class Registry {
@@ -1,4 +1,4 @@
1
- import { C as CollectionConfig, G as GlobalConfig, P as PluginConfig, F as Field } from './types-BGM5MV_K.cjs';
1
+ import { i as CollectionConfig, G as GlobalConfig, v as PluginConfig, F as Field } from './types-Bt1OEk0S.cjs';
2
2
  import { ZodTypeAny } from 'zod';
3
3
 
4
4
  declare class Registry {