@kyro-cms/core 0.5.4 → 0.6.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 (151) hide show
  1. package/dist/WebhookService-118ZTFis.d.ts +112 -0
  2. package/dist/WebhookService-AefJfqX0.d.cts +112 -0
  3. package/dist/adapter-BSvBudTG.d.cts +65 -0
  4. package/dist/adapter-CXGB2Elb.d.ts +65 -0
  5. package/dist/api-handler.cjs +26 -8
  6. package/dist/api-handler.cjs.map +1 -1
  7. package/dist/api-handler.d.cts +9 -0
  8. package/dist/api-handler.d.ts +9 -0
  9. package/dist/api-handler.js +25 -7
  10. package/dist/api-handler.js.map +1 -1
  11. package/dist/base-DvvNqnM-.d.cts +73 -0
  12. package/dist/base-eVegJ_Pr.d.ts +73 -0
  13. package/dist/bootstrap-4MH44YKG.js +6 -0
  14. package/dist/{bootstrap-PBMMLBQC.js.map → bootstrap-4MH44YKG.js.map} +1 -1
  15. package/dist/bootstrap-EE6BJZWL.cjs +31 -0
  16. package/dist/{bootstrap-QN77EVI3.cjs.map → bootstrap-EE6BJZWL.cjs.map} +1 -1
  17. package/dist/chunk-3YELQL7Z.cjs +4 -0
  18. package/dist/chunk-3YELQL7Z.cjs.map +1 -0
  19. package/dist/{chunk-AGAIUDAV.cjs → chunk-55BNRTLW.cjs} +7 -7
  20. package/dist/chunk-55BNRTLW.cjs.map +1 -0
  21. package/dist/{chunk-XJ2VYR47.cjs → chunk-5HA5OMFH.cjs} +10 -7
  22. package/dist/chunk-5HA5OMFH.cjs.map +1 -0
  23. package/dist/{chunk-C4JJEE42.js → chunk-6WXQRYTW.js} +262 -43
  24. package/dist/chunk-6WXQRYTW.js.map +1 -0
  25. package/dist/{chunk-SO25EHOE.js → chunk-AM4JKIPP.js} +180 -77
  26. package/dist/chunk-AM4JKIPP.js.map +1 -0
  27. package/dist/{chunk-VSTRLXMQ.cjs → chunk-CKVOU6MX.cjs} +4 -2
  28. package/dist/chunk-CKVOU6MX.cjs.map +1 -0
  29. package/dist/chunk-GTGRLD4Y.js +3 -0
  30. package/dist/chunk-GTGRLD4Y.js.map +1 -0
  31. package/dist/chunk-MTIRYI7F.cjs +4 -0
  32. package/dist/chunk-MTIRYI7F.cjs.map +1 -0
  33. package/dist/{chunk-342BJNBI.js → chunk-QKVA2SOG.js} +300 -6
  34. package/dist/chunk-QKVA2SOG.js.map +1 -0
  35. package/dist/chunk-QU2RFFH4.js +3 -0
  36. package/dist/chunk-QU2RFFH4.js.map +1 -0
  37. package/dist/{chunk-ATVNYGRQ.js → chunk-QYZKIPSD.js} +7 -18
  38. package/dist/chunk-QYZKIPSD.js.map +1 -0
  39. package/dist/{chunk-SYRDCLH7.cjs → chunk-R2YHJN6W.cjs} +184 -81
  40. package/dist/chunk-R2YHJN6W.cjs.map +1 -0
  41. package/dist/{chunk-IX3ABYKZ.cjs → chunk-RALQO47U.cjs} +170 -2
  42. package/dist/chunk-RALQO47U.cjs.map +1 -0
  43. package/dist/{chunk-EVEJC22G.cjs → chunk-RDRJVCL5.cjs} +37 -5
  44. package/dist/chunk-RDRJVCL5.cjs.map +1 -0
  45. package/dist/{chunk-6COM32WF.js → chunk-RP7VZUEL.js} +5 -3
  46. package/dist/chunk-RP7VZUEL.js.map +1 -0
  47. package/dist/{chunk-XR5EJS3C.js → chunk-S3FG2NY7.js} +7 -4
  48. package/dist/chunk-S3FG2NY7.js.map +1 -0
  49. package/dist/{chunk-WH4Y5MT6.js → chunk-TP5YQFIX.js} +36 -4
  50. package/dist/chunk-TP5YQFIX.js.map +1 -0
  51. package/dist/{chunk-DBUYB32X.js → chunk-TVVYZ2TH.js} +171 -3
  52. package/dist/chunk-TVVYZ2TH.js.map +1 -0
  53. package/dist/{chunk-GBH6DN5C.cjs → chunk-WBCIEYHC.cjs} +8 -18
  54. package/dist/chunk-WBCIEYHC.cjs.map +1 -0
  55. package/dist/{chunk-3ZZPZYCM.cjs → chunk-WVPOPOEQ.cjs} +269 -41
  56. package/dist/chunk-WVPOPOEQ.cjs.map +1 -0
  57. package/dist/{chunk-W3KPQX7V.cjs → chunk-XAEBVZTI.cjs} +304 -4
  58. package/dist/chunk-XAEBVZTI.cjs.map +1 -0
  59. package/dist/{chunk-Q4DNT7FO.js → chunk-XU7AFF6V.js} +6 -6
  60. package/dist/chunk-XU7AFF6V.js.map +1 -0
  61. package/dist/cli/index.cjs +6 -4
  62. package/dist/cli/index.cjs.map +1 -1
  63. package/dist/cli/index.d.cts +1 -0
  64. package/dist/cli/index.d.ts +1 -0
  65. package/dist/cli/index.js +6 -4
  66. package/dist/cli/index.js.map +1 -1
  67. package/dist/client.d.cts +12 -0
  68. package/dist/client.d.ts +12 -0
  69. package/dist/drizzle/index.cjs +18 -18
  70. package/dist/drizzle/index.d.cts +152 -0
  71. package/dist/drizzle/index.d.ts +152 -0
  72. package/dist/drizzle/index.js +3 -3
  73. package/dist/fields/index.d.cts +27 -0
  74. package/dist/fields/index.d.ts +27 -0
  75. package/dist/graphql/index.d.cts +22 -0
  76. package/dist/graphql/index.d.ts +22 -0
  77. package/dist/index-Bz9JqRGI.d.cts +86 -0
  78. package/dist/index-Bz9JqRGI.d.ts +86 -0
  79. package/dist/index-CLp-DRKA.d.ts +64 -0
  80. package/dist/index-DfO7G4kN.d.cts +64 -0
  81. package/dist/index.cjs +118 -86
  82. package/dist/index.cjs.map +1 -1
  83. package/dist/index.d.cts +1368 -0
  84. package/dist/index.d.ts +1368 -0
  85. package/dist/index.js +48 -14
  86. package/dist/index.js.map +1 -1
  87. package/dist/integration.cjs +2 -2
  88. package/dist/integration.d.cts +27 -0
  89. package/dist/integration.d.ts +27 -0
  90. package/dist/integration.js +1 -1
  91. package/dist/media-GPPTZ43E.js +4 -0
  92. package/dist/{media-HOT3O7RW.js.map → media-GPPTZ43E.js.map} +1 -1
  93. package/dist/media-XNTUFJZR.cjs +17 -0
  94. package/dist/{media-WKP5AOX2.cjs.map → media-XNTUFJZR.cjs.map} +1 -1
  95. package/dist/mongodb/index.cjs +12 -3
  96. package/dist/mongodb/index.d.cts +59 -0
  97. package/dist/mongodb/index.d.ts +59 -0
  98. package/dist/mongodb/index.js +2 -1
  99. package/dist/postgres-auth-adapter-6742WDCF.cjs +14 -0
  100. package/dist/{postgres-auth-adapter-Z463NYJZ.cjs.map → postgres-auth-adapter-6742WDCF.cjs.map} +1 -1
  101. package/dist/postgres-auth-adapter-B65BULNS.js +5 -0
  102. package/dist/{postgres-auth-adapter-7F3ECO7I.js.map → postgres-auth-adapter-B65BULNS.js.map} +1 -1
  103. package/dist/rest/index.cjs +9 -5
  104. package/dist/rest/index.d.cts +57 -0
  105. package/dist/rest/index.d.ts +57 -0
  106. package/dist/rest/index.js +7 -3
  107. package/dist/{schema-TIYTCIKX.cjs → schema-37SE2F4B.cjs} +5 -5
  108. package/dist/{schema-TIYTCIKX.cjs.map → schema-37SE2F4B.cjs.map} +1 -1
  109. package/dist/{schema-6Q4W6AE6.js → schema-5PHL5IVB.js} +3 -3
  110. package/dist/{schema-6Q4W6AE6.js.map → schema-5PHL5IVB.js.map} +1 -1
  111. package/dist/templates/index.d.cts +59 -0
  112. package/dist/templates/index.d.ts +59 -0
  113. package/dist/trpc/index.d.cts +136 -0
  114. package/dist/trpc/index.d.ts +136 -0
  115. package/dist/types-Bs1up4yP.d.ts +461 -0
  116. package/dist/types-DqN4ckOC.d.cts +130 -0
  117. package/dist/types-DqN4ckOC.d.ts +130 -0
  118. package/dist/types-J3R9nVsZ.d.cts +461 -0
  119. package/dist/types-VtjUxIMp.d.cts +246 -0
  120. package/dist/types-VtjUxIMp.d.ts +246 -0
  121. package/dist/ws/index.d.cts +88 -0
  122. package/dist/ws/index.d.ts +88 -0
  123. package/package.json +3 -2
  124. package/dist/bootstrap-PBMMLBQC.js +0 -6
  125. package/dist/bootstrap-QN77EVI3.cjs +0 -31
  126. package/dist/chunk-342BJNBI.js.map +0 -1
  127. package/dist/chunk-3ZZPZYCM.cjs.map +0 -1
  128. package/dist/chunk-6COM32WF.js.map +0 -1
  129. package/dist/chunk-7SXPHG3M.cjs +0 -67
  130. package/dist/chunk-7SXPHG3M.cjs.map +0 -1
  131. package/dist/chunk-AGAIUDAV.cjs.map +0 -1
  132. package/dist/chunk-ATVNYGRQ.js.map +0 -1
  133. package/dist/chunk-C4JJEE42.js.map +0 -1
  134. package/dist/chunk-DBUYB32X.js.map +0 -1
  135. package/dist/chunk-EVEJC22G.cjs.map +0 -1
  136. package/dist/chunk-GBH6DN5C.cjs.map +0 -1
  137. package/dist/chunk-IX3ABYKZ.cjs.map +0 -1
  138. package/dist/chunk-L4E76X2K.js +0 -57
  139. package/dist/chunk-L4E76X2K.js.map +0 -1
  140. package/dist/chunk-Q4DNT7FO.js.map +0 -1
  141. package/dist/chunk-SO25EHOE.js.map +0 -1
  142. package/dist/chunk-SYRDCLH7.cjs.map +0 -1
  143. package/dist/chunk-VSTRLXMQ.cjs.map +0 -1
  144. package/dist/chunk-W3KPQX7V.cjs.map +0 -1
  145. package/dist/chunk-WH4Y5MT6.js.map +0 -1
  146. package/dist/chunk-XJ2VYR47.cjs.map +0 -1
  147. package/dist/chunk-XR5EJS3C.js.map +0 -1
  148. package/dist/media-HOT3O7RW.js +0 -4
  149. package/dist/media-WKP5AOX2.cjs +0 -17
  150. package/dist/postgres-auth-adapter-7F3ECO7I.js +0 -5
  151. package/dist/postgres-auth-adapter-Z463NYJZ.cjs +0 -14
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkGBH6DN5C_cjs = require('./chunk-GBH6DN5C.cjs');
3
+ var chunkWBCIEYHC_cjs = require('./chunk-WBCIEYHC.cjs');
4
4
  require('./chunk-G7VZBCD6.cjs');
5
5
 
6
6
 
7
7
 
8
- module.exports = chunkGBH6DN5C_cjs.kyro;
8
+ module.exports = chunkWBCIEYHC_cjs.kyro;
9
9
  //# sourceMappingURL=integration.cjs.map
10
10
  //# sourceMappingURL=integration.cjs.map
@@ -0,0 +1,27 @@
1
+ import { AstroIntegration } from 'astro';
2
+
3
+ interface KyroIntegrationOptions {
4
+ /**
5
+ * Path to the kyro configuration file relative to the project root.
6
+ * Default: './kyro.config.ts'
7
+ */
8
+ configPath?: string;
9
+ /**
10
+ * Base path where the API should be mounted.
11
+ * Default: '/api/kyro'
12
+ */
13
+ apiPath?: string;
14
+ /**
15
+ * Base path where the admin UI should be mounted.
16
+ * Default: '/admin'
17
+ */
18
+ adminPath?: string;
19
+ /**
20
+ * Whether to mount the admin UI.
21
+ * Default: true
22
+ */
23
+ admin?: boolean;
24
+ }
25
+ declare function kyro(options?: KyroIntegrationOptions): AstroIntegration;
26
+
27
+ export { type KyroIntegrationOptions, kyro as default };
@@ -0,0 +1,27 @@
1
+ import { AstroIntegration } from 'astro';
2
+
3
+ interface KyroIntegrationOptions {
4
+ /**
5
+ * Path to the kyro configuration file relative to the project root.
6
+ * Default: './kyro.config.ts'
7
+ */
8
+ configPath?: string;
9
+ /**
10
+ * Base path where the API should be mounted.
11
+ * Default: '/api/kyro'
12
+ */
13
+ apiPath?: string;
14
+ /**
15
+ * Base path where the admin UI should be mounted.
16
+ * Default: '/admin'
17
+ */
18
+ adminPath?: string;
19
+ /**
20
+ * Whether to mount the admin UI.
21
+ * Default: true
22
+ */
23
+ admin?: boolean;
24
+ }
25
+ declare function kyro(options?: KyroIntegrationOptions): AstroIntegration;
26
+
27
+ export { type KyroIntegrationOptions, kyro as default };
@@ -1,4 +1,4 @@
1
- export { kyro as default } from './chunk-ATVNYGRQ.js';
1
+ export { kyro as default } from './chunk-QYZKIPSD.js';
2
2
  import './chunk-Z6ZWNWWR.js';
3
3
  //# sourceMappingURL=integration.js.map
4
4
  //# sourceMappingURL=integration.js.map
@@ -0,0 +1,4 @@
1
+ export { media, mediaFolders } from './chunk-RP7VZUEL.js';
2
+ import './chunk-Z6ZWNWWR.js';
3
+ //# sourceMappingURL=media-GPPTZ43E.js.map
4
+ //# sourceMappingURL=media-GPPTZ43E.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"media-HOT3O7RW.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"media-GPPTZ43E.js"}
@@ -0,0 +1,17 @@
1
+ 'use strict';
2
+
3
+ var chunkCKVOU6MX_cjs = require('./chunk-CKVOU6MX.cjs');
4
+ require('./chunk-G7VZBCD6.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "media", {
9
+ enumerable: true,
10
+ get: function () { return chunkCKVOU6MX_cjs.media; }
11
+ });
12
+ Object.defineProperty(exports, "mediaFolders", {
13
+ enumerable: true,
14
+ get: function () { return chunkCKVOU6MX_cjs.mediaFolders; }
15
+ });
16
+ //# sourceMappingURL=media-XNTUFJZR.cjs.map
17
+ //# sourceMappingURL=media-XNTUFJZR.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"media-WKP5AOX2.cjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"media-XNTUFJZR.cjs"}
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkW3KPQX7V_cjs = require('../chunk-W3KPQX7V.cjs');
3
+ require('../chunk-MTIRYI7F.cjs');
4
+ var chunkXAEBVZTI_cjs = require('../chunk-XAEBVZTI.cjs');
4
5
  require('../chunk-KOCTZKPV.cjs');
5
6
  require('../chunk-G7VZBCD6.cjs');
6
7
 
@@ -8,11 +9,19 @@ require('../chunk-G7VZBCD6.cjs');
8
9
 
9
10
  Object.defineProperty(exports, "MongoDBAdapter", {
10
11
  enumerable: true,
11
- get: function () { return chunkW3KPQX7V_cjs.MongoDBAdapter; }
12
+ get: function () { return chunkXAEBVZTI_cjs.MongoDBAdapter; }
13
+ });
14
+ Object.defineProperty(exports, "MongoDBAuthAdapter", {
15
+ enumerable: true,
16
+ get: function () { return chunkXAEBVZTI_cjs.MongoDBAuthAdapter; }
12
17
  });
13
18
  Object.defineProperty(exports, "createMongoDBAdapter", {
14
19
  enumerable: true,
15
- get: function () { return chunkW3KPQX7V_cjs.createMongoDBAdapter; }
20
+ get: function () { return chunkXAEBVZTI_cjs.createMongoDBAdapter; }
21
+ });
22
+ Object.defineProperty(exports, "createMongoDBAuthAdapter", {
23
+ enumerable: true,
24
+ get: function () { return chunkXAEBVZTI_cjs.createMongoDBAuthAdapter; }
16
25
  });
17
26
  //# sourceMappingURL=index.cjs.map
18
27
  //# sourceMappingURL=index.cjs.map
@@ -0,0 +1,59 @@
1
+ export { M as MongoDBAdapter, c as createMongoDBAdapter } from '../adapter-BSvBudTG.cjs';
2
+ import { A as AuthAdapter, U as UserRole, c as AuthUser, S as Session, d as AuditLogFilter, e as AuditLog } from '../types-DqN4ckOC.cjs';
3
+ import '../base-DvvNqnM-.cjs';
4
+ import '../types-J3R9nVsZ.cjs';
5
+ import '../types-VtjUxIMp.cjs';
6
+
7
+ interface MongoDBAuthAdapterOptions {
8
+ db: any;
9
+ collectionPrefix?: string;
10
+ sessionTTL?: number;
11
+ refreshTokenTTL?: number;
12
+ }
13
+ declare class MongoDBAuthAdapter implements AuthAdapter {
14
+ private db;
15
+ private prefix;
16
+ private sessionTTL;
17
+ private refreshTokenTTL;
18
+ private indexesEnsured;
19
+ constructor(options: MongoDBAuthAdapterOptions);
20
+ private col;
21
+ connect(): Promise<void>;
22
+ disconnect(): Promise<void>;
23
+ private ensureIndexes;
24
+ createUser(data: {
25
+ email: string;
26
+ password: string;
27
+ name?: string;
28
+ role?: UserRole;
29
+ tenantId?: string;
30
+ }): Promise<AuthUser>;
31
+ findUserByEmail(email: string): Promise<AuthUser | null>;
32
+ findUserById(id: string): Promise<AuthUser | null>;
33
+ updateUser(id: string, data: Partial<AuthUser>): Promise<AuthUser | null>;
34
+ deleteUser(id: string): Promise<boolean>;
35
+ verifyPassword(email: string, password: string): Promise<AuthUser | null>;
36
+ hashPassword(password: string): Promise<string>;
37
+ createSession(userId: string, data?: {
38
+ ipAddress?: string;
39
+ userAgent?: string;
40
+ }): Promise<Session>;
41
+ findSessionByToken(token: string): Promise<Session | null>;
42
+ findSessionByRefreshToken(refreshToken: string): Promise<Session | null>;
43
+ deleteSession(sessionId: string): Promise<boolean>;
44
+ deleteUserSessions(userId: string): Promise<number>;
45
+ hasAnyUsers(): Promise<boolean>;
46
+ addPasswordToHistory(userId: string, passwordHash: string): Promise<void>;
47
+ getPasswordHistory(userId: string, count?: number): Promise<string[]>;
48
+ isPasswordInHistory(password: string, userId: string, historyCount?: number): Promise<boolean>;
49
+ findAuditLogs(filter: AuditLogFilter): Promise<{
50
+ logs: AuditLog[];
51
+ total: number;
52
+ }>;
53
+ createAuditLog(data: Omit<AuditLog, "id" | "timestamp">): Promise<AuditLog>;
54
+ private docToAuthUser;
55
+ private docToSession;
56
+ }
57
+ declare function createMongoDBAuthAdapter(options: MongoDBAuthAdapterOptions): MongoDBAuthAdapter;
58
+
59
+ export { MongoDBAuthAdapter, createMongoDBAuthAdapter };
@@ -0,0 +1,59 @@
1
+ export { M as MongoDBAdapter, c as createMongoDBAdapter } from '../adapter-CXGB2Elb.js';
2
+ import { A as AuthAdapter, U as UserRole, c as AuthUser, S as Session, d as AuditLogFilter, e as AuditLog } from '../types-DqN4ckOC.js';
3
+ import '../base-eVegJ_Pr.js';
4
+ import '../types-Bs1up4yP.js';
5
+ import '../types-VtjUxIMp.js';
6
+
7
+ interface MongoDBAuthAdapterOptions {
8
+ db: any;
9
+ collectionPrefix?: string;
10
+ sessionTTL?: number;
11
+ refreshTokenTTL?: number;
12
+ }
13
+ declare class MongoDBAuthAdapter implements AuthAdapter {
14
+ private db;
15
+ private prefix;
16
+ private sessionTTL;
17
+ private refreshTokenTTL;
18
+ private indexesEnsured;
19
+ constructor(options: MongoDBAuthAdapterOptions);
20
+ private col;
21
+ connect(): Promise<void>;
22
+ disconnect(): Promise<void>;
23
+ private ensureIndexes;
24
+ createUser(data: {
25
+ email: string;
26
+ password: string;
27
+ name?: string;
28
+ role?: UserRole;
29
+ tenantId?: string;
30
+ }): Promise<AuthUser>;
31
+ findUserByEmail(email: string): Promise<AuthUser | null>;
32
+ findUserById(id: string): Promise<AuthUser | null>;
33
+ updateUser(id: string, data: Partial<AuthUser>): Promise<AuthUser | null>;
34
+ deleteUser(id: string): Promise<boolean>;
35
+ verifyPassword(email: string, password: string): Promise<AuthUser | null>;
36
+ hashPassword(password: string): Promise<string>;
37
+ createSession(userId: string, data?: {
38
+ ipAddress?: string;
39
+ userAgent?: string;
40
+ }): Promise<Session>;
41
+ findSessionByToken(token: string): Promise<Session | null>;
42
+ findSessionByRefreshToken(refreshToken: string): Promise<Session | null>;
43
+ deleteSession(sessionId: string): Promise<boolean>;
44
+ deleteUserSessions(userId: string): Promise<number>;
45
+ hasAnyUsers(): Promise<boolean>;
46
+ addPasswordToHistory(userId: string, passwordHash: string): Promise<void>;
47
+ getPasswordHistory(userId: string, count?: number): Promise<string[]>;
48
+ isPasswordInHistory(password: string, userId: string, historyCount?: number): Promise<boolean>;
49
+ findAuditLogs(filter: AuditLogFilter): Promise<{
50
+ logs: AuditLog[];
51
+ total: number;
52
+ }>;
53
+ createAuditLog(data: Omit<AuditLog, "id" | "timestamp">): Promise<AuditLog>;
54
+ private docToAuthUser;
55
+ private docToSession;
56
+ }
57
+ declare function createMongoDBAuthAdapter(options: MongoDBAuthAdapterOptions): MongoDBAuthAdapter;
58
+
59
+ export { MongoDBAuthAdapter, createMongoDBAuthAdapter };
@@ -1,4 +1,5 @@
1
- export { MongoDBAdapter, createMongoDBAdapter } from '../chunk-342BJNBI.js';
1
+ import '../chunk-GTGRLD4Y.js';
2
+ export { MongoDBAdapter, MongoDBAuthAdapter, createMongoDBAdapter, createMongoDBAuthAdapter } from '../chunk-QKVA2SOG.js';
2
3
  import '../chunk-A4USRVTQ.js';
3
4
  import '../chunk-Z6ZWNWWR.js';
4
5
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ var chunkRALQO47U_cjs = require('./chunk-RALQO47U.cjs');
4
+ require('./chunk-WQBRWOQT.cjs');
5
+ require('./chunk-G7VZBCD6.cjs');
6
+
7
+
8
+
9
+ Object.defineProperty(exports, "PostgresAuthAdapter", {
10
+ enumerable: true,
11
+ get: function () { return chunkRALQO47U_cjs.PostgresAuthAdapter; }
12
+ });
13
+ //# sourceMappingURL=postgres-auth-adapter-6742WDCF.cjs.map
14
+ //# sourceMappingURL=postgres-auth-adapter-6742WDCF.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"postgres-auth-adapter-Z463NYJZ.cjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"postgres-auth-adapter-6742WDCF.cjs"}
@@ -0,0 +1,5 @@
1
+ export { PostgresAuthAdapter } from './chunk-TVVYZ2TH.js';
2
+ import './chunk-WOWUL7ZY.js';
3
+ import './chunk-Z6ZWNWWR.js';
4
+ //# sourceMappingURL=postgres-auth-adapter-B65BULNS.js.map
5
+ //# sourceMappingURL=postgres-auth-adapter-B65BULNS.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"postgres-auth-adapter-7F3ECO7I.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"postgres-auth-adapter-B65BULNS.js"}
@@ -1,24 +1,28 @@
1
1
  'use strict';
2
2
 
3
- var chunkSYRDCLH7_cjs = require('../chunk-SYRDCLH7.cjs');
4
- require('../chunk-EVEJC22G.cjs');
3
+ var chunkR2YHJN6W_cjs = require('../chunk-R2YHJN6W.cjs');
4
+ require('../chunk-RDRJVCL5.cjs');
5
5
  require('../chunk-4PWRCMTQ.cjs');
6
6
  require('../chunk-ADLJSJSN.cjs');
7
7
  require('../chunk-IBG6V56E.cjs');
8
8
  require('../chunk-VJT6P4N6.cjs');
9
9
  require('../chunk-R3XIBBAW.cjs');
10
- require('../chunk-7SXPHG3M.cjs');
10
+ require('../chunk-WVPOPOEQ.cjs');
11
+ require('../chunk-RALQO47U.cjs');
12
+ require('../chunk-WQBRWOQT.cjs');
13
+ require('../chunk-XAEBVZTI.cjs');
14
+ require('../chunk-KOCTZKPV.cjs');
11
15
  require('../chunk-G7VZBCD6.cjs');
12
16
 
13
17
 
14
18
 
15
19
  Object.defineProperty(exports, "createHonoApp", {
16
20
  enumerable: true,
17
- get: function () { return chunkSYRDCLH7_cjs.createHonoApp; }
21
+ get: function () { return chunkR2YHJN6W_cjs.createHonoApp; }
18
22
  });
19
23
  Object.defineProperty(exports, "createRESTAPI", {
20
24
  enumerable: true,
21
- get: function () { return chunkSYRDCLH7_cjs.createRESTAPI; }
25
+ get: function () { return chunkR2YHJN6W_cjs.createRESTAPI; }
22
26
  });
23
27
  //# sourceMappingURL=index.cjs.map
24
28
  //# sourceMappingURL=index.cjs.map
@@ -0,0 +1,57 @@
1
+ import { Hono } from 'hono';
2
+ import { B as BaseAdapter, m as User } from '../types-J3R9nVsZ.cjs';
3
+ import { R as Registry } from '../index-DfO7G4kN.cjs';
4
+ import { i as createWebhookService } from '../WebhookService-AefJfqX0.cjs';
5
+ import '../types-VtjUxIMp.cjs';
6
+ import 'zod';
7
+
8
+ interface HonoAppOptions {
9
+ registry: Registry;
10
+ db: BaseAdapter;
11
+ authSecret?: string;
12
+ authAdapter?: any;
13
+ checkSession?: boolean;
14
+ user?: User;
15
+ req?: any;
16
+ tenantID?: string;
17
+ cors?: {
18
+ origins?: string[];
19
+ credentials?: boolean;
20
+ };
21
+ webhookService?: ReturnType<typeof createWebhookService>;
22
+ settings?: {
23
+ access?: {
24
+ enablePublicAccess?: boolean;
25
+ defaultCollectionAccess?: string;
26
+ apiAccess?: {
27
+ restEnabled?: boolean;
28
+ graphqlEnabled?: boolean;
29
+ trpcEnabled?: boolean;
30
+ websocketEnabled?: boolean;
31
+ requireAuth?: boolean;
32
+ cors?: {
33
+ allowedOrigins?: string[] | string;
34
+ };
35
+ };
36
+ rateLimiting?: {
37
+ enabled?: boolean;
38
+ maxRequests?: number;
39
+ windowMs?: number;
40
+ };
41
+ };
42
+ };
43
+ }
44
+ declare function createHonoApp(options: HonoAppOptions): Hono;
45
+ declare function createRESTAPI(registry: Registry, db: BaseAdapter, options?: {
46
+ authSecret?: string;
47
+ user?: User;
48
+ req?: Request;
49
+ tenantID?: string;
50
+ cors?: {
51
+ origins?: string[];
52
+ credentials?: boolean;
53
+ };
54
+ webhookService?: ReturnType<typeof createWebhookService>;
55
+ }): Hono;
56
+
57
+ export { type HonoAppOptions, createHonoApp, createRESTAPI };
@@ -0,0 +1,57 @@
1
+ import { Hono } from 'hono';
2
+ import { B as BaseAdapter, m as User } from '../types-Bs1up4yP.js';
3
+ import { R as Registry } from '../index-CLp-DRKA.js';
4
+ import { i as createWebhookService } from '../WebhookService-118ZTFis.js';
5
+ import '../types-VtjUxIMp.js';
6
+ import 'zod';
7
+
8
+ interface HonoAppOptions {
9
+ registry: Registry;
10
+ db: BaseAdapter;
11
+ authSecret?: string;
12
+ authAdapter?: any;
13
+ checkSession?: boolean;
14
+ user?: User;
15
+ req?: any;
16
+ tenantID?: string;
17
+ cors?: {
18
+ origins?: string[];
19
+ credentials?: boolean;
20
+ };
21
+ webhookService?: ReturnType<typeof createWebhookService>;
22
+ settings?: {
23
+ access?: {
24
+ enablePublicAccess?: boolean;
25
+ defaultCollectionAccess?: string;
26
+ apiAccess?: {
27
+ restEnabled?: boolean;
28
+ graphqlEnabled?: boolean;
29
+ trpcEnabled?: boolean;
30
+ websocketEnabled?: boolean;
31
+ requireAuth?: boolean;
32
+ cors?: {
33
+ allowedOrigins?: string[] | string;
34
+ };
35
+ };
36
+ rateLimiting?: {
37
+ enabled?: boolean;
38
+ maxRequests?: number;
39
+ windowMs?: number;
40
+ };
41
+ };
42
+ };
43
+ }
44
+ declare function createHonoApp(options: HonoAppOptions): Hono;
45
+ declare function createRESTAPI(registry: Registry, db: BaseAdapter, options?: {
46
+ authSecret?: string;
47
+ user?: User;
48
+ req?: Request;
49
+ tenantID?: string;
50
+ cors?: {
51
+ origins?: string[];
52
+ credentials?: boolean;
53
+ };
54
+ webhookService?: ReturnType<typeof createWebhookService>;
55
+ }): Hono;
56
+
57
+ export { type HonoAppOptions, createHonoApp, createRESTAPI };
@@ -1,11 +1,15 @@
1
- export { createHonoApp, createRESTAPI } from '../chunk-SO25EHOE.js';
2
- import '../chunk-WH4Y5MT6.js';
1
+ export { createHonoApp, createRESTAPI } from '../chunk-AM4JKIPP.js';
2
+ import '../chunk-TP5YQFIX.js';
3
3
  import '../chunk-YT7HXXVN.js';
4
4
  import '../chunk-P2YW545G.js';
5
5
  import '../chunk-QXIQWPAP.js';
6
6
  import '../chunk-REK7AYOC.js';
7
7
  import '../chunk-SDMNUYVU.js';
8
- import '../chunk-L4E76X2K.js';
8
+ import '../chunk-6WXQRYTW.js';
9
+ import '../chunk-TVVYZ2TH.js';
10
+ import '../chunk-WOWUL7ZY.js';
11
+ import '../chunk-QKVA2SOG.js';
12
+ import '../chunk-A4USRVTQ.js';
9
13
  import '../chunk-Z6ZWNWWR.js';
10
14
  //# sourceMappingURL=index.js.map
11
15
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkVSTRLXMQ_cjs = require('./chunk-VSTRLXMQ.cjs');
3
+ var chunkCKVOU6MX_cjs = require('./chunk-CKVOU6MX.cjs');
4
4
  var chunk4PWRCMTQ_cjs = require('./chunk-4PWRCMTQ.cjs');
5
5
  var chunkWQBRWOQT_cjs = require('./chunk-WQBRWOQT.cjs');
6
6
  require('./chunk-G7VZBCD6.cjs');
@@ -9,11 +9,11 @@ require('./chunk-G7VZBCD6.cjs');
9
9
 
10
10
  Object.defineProperty(exports, "media", {
11
11
  enumerable: true,
12
- get: function () { return chunkVSTRLXMQ_cjs.media; }
12
+ get: function () { return chunkCKVOU6MX_cjs.media; }
13
13
  });
14
14
  Object.defineProperty(exports, "mediaFolders", {
15
15
  enumerable: true,
16
- get: function () { return chunkVSTRLXMQ_cjs.mediaFolders; }
16
+ get: function () { return chunkCKVOU6MX_cjs.mediaFolders; }
17
17
  });
18
18
  Object.defineProperty(exports, "settings", {
19
19
  enumerable: true,
@@ -63,5 +63,5 @@ Object.defineProperty(exports, "users", {
63
63
  enumerable: true,
64
64
  get: function () { return chunkWQBRWOQT_cjs.users; }
65
65
  });
66
- //# sourceMappingURL=schema-TIYTCIKX.cjs.map
67
- //# sourceMappingURL=schema-TIYTCIKX.cjs.map
66
+ //# sourceMappingURL=schema-37SE2F4B.cjs.map
67
+ //# sourceMappingURL=schema-37SE2F4B.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"schema-TIYTCIKX.cjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"schema-37SE2F4B.cjs"}
@@ -1,6 +1,6 @@
1
- export { media, mediaFolders } from './chunk-6COM32WF.js';
1
+ export { media, mediaFolders } from './chunk-RP7VZUEL.js';
2
2
  export { settings } from './chunk-YT7HXXVN.js';
3
3
  export { apiKeys, auditLogs, emailVerifications, lockouts, passwordHistory, passwordResets, permissions, roles, sessions, tenants, users } from './chunk-WOWUL7ZY.js';
4
4
  import './chunk-Z6ZWNWWR.js';
5
- //# sourceMappingURL=schema-6Q4W6AE6.js.map
6
- //# sourceMappingURL=schema-6Q4W6AE6.js.map
5
+ //# sourceMappingURL=schema-5PHL5IVB.js.map
6
+ //# sourceMappingURL=schema-5PHL5IVB.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"schema-6Q4W6AE6.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"schema-5PHL5IVB.js"}
@@ -0,0 +1,59 @@
1
+ import { C as CollectionConfig, G as GlobalConfig } from '../types-J3R9nVsZ.cjs';
2
+ import '../types-VtjUxIMp.cjs';
3
+
4
+ declare const minimalCollections: Record<string, CollectionConfig>;
5
+
6
+ declare const blogCollections: Record<string, CollectionConfig>;
7
+ declare const blogGlobals: GlobalConfig[];
8
+
9
+ declare const ecommerceCollections: Record<string, CollectionConfig>;
10
+ declare const ecommerceGlobals: GlobalConfig[];
11
+
12
+ declare const kitchenSinkCollections: Record<string, CollectionConfig>;
13
+
14
+ declare const authCollections: {
15
+ users: CollectionConfig;
16
+ audit_logs: CollectionConfig;
17
+ };
18
+
19
+ declare const mediaCollection: CollectionConfig;
20
+ declare const mediaCollections: CollectionConfig[];
21
+
22
+ declare const siteSettingsGlobal: GlobalConfig;
23
+
24
+ declare const seoSettingsGlobal: GlobalConfig;
25
+
26
+ declare const socialSettingsGlobal: GlobalConfig;
27
+
28
+ declare const emailSettingsGlobal: GlobalConfig;
29
+
30
+ declare const storageSettingsGlobal: GlobalConfig;
31
+
32
+ declare const accessSettingsGlobal: GlobalConfig;
33
+
34
+ declare const storeSettingsGlobal: GlobalConfig;
35
+
36
+ declare const paymentSettingsGlobal: GlobalConfig;
37
+
38
+ declare const allSettingsGlobals: GlobalConfig[];
39
+ declare const coreSettingsGlobals: GlobalConfig[];
40
+ declare const ecommerceSettingsGlobals: GlobalConfig[];
41
+ declare const settingsBySlug: Record<string, GlobalConfig>;
42
+ declare function getSettingsForTemplate(template: "minimal" | "blog" | "ecommerce" | "kitchen-sink"): GlobalConfig[];
43
+
44
+ interface TemplateConfig {
45
+ collections?: CollectionConfig[];
46
+ globals?: GlobalConfig[];
47
+ }
48
+ type TemplateType = "minimal" | "blog" | "ecommerce" | "kitchen-sink";
49
+ interface CreateTemplateConfigOptions extends TemplateConfig {
50
+ template?: TemplateType;
51
+ collections?: CollectionConfig[];
52
+ globals?: GlobalConfig[];
53
+ includeMedia?: boolean;
54
+ includeSettings?: "all" | "core" | "ecommerce" | "site" | "seo" | "social" | "email" | "storage" | "access" | "store" | "payments" | string[];
55
+ excludeSettings?: string[];
56
+ }
57
+ declare function createTemplateConfig(options: CreateTemplateConfigOptions): TemplateConfig;
58
+
59
+ export { type CreateTemplateConfigOptions, type TemplateConfig, type TemplateType, accessSettingsGlobal, allSettingsGlobals, authCollections, blogCollections, blogGlobals, coreSettingsGlobals, createTemplateConfig, ecommerceCollections, ecommerceGlobals, ecommerceSettingsGlobals, emailSettingsGlobal, getSettingsForTemplate, kitchenSinkCollections, mediaCollection, mediaCollections, minimalCollections, paymentSettingsGlobal, seoSettingsGlobal, settingsBySlug, siteSettingsGlobal, socialSettingsGlobal, storageSettingsGlobal, storeSettingsGlobal };
@@ -0,0 +1,59 @@
1
+ import { C as CollectionConfig, G as GlobalConfig } from '../types-Bs1up4yP.js';
2
+ import '../types-VtjUxIMp.js';
3
+
4
+ declare const minimalCollections: Record<string, CollectionConfig>;
5
+
6
+ declare const blogCollections: Record<string, CollectionConfig>;
7
+ declare const blogGlobals: GlobalConfig[];
8
+
9
+ declare const ecommerceCollections: Record<string, CollectionConfig>;
10
+ declare const ecommerceGlobals: GlobalConfig[];
11
+
12
+ declare const kitchenSinkCollections: Record<string, CollectionConfig>;
13
+
14
+ declare const authCollections: {
15
+ users: CollectionConfig;
16
+ audit_logs: CollectionConfig;
17
+ };
18
+
19
+ declare const mediaCollection: CollectionConfig;
20
+ declare const mediaCollections: CollectionConfig[];
21
+
22
+ declare const siteSettingsGlobal: GlobalConfig;
23
+
24
+ declare const seoSettingsGlobal: GlobalConfig;
25
+
26
+ declare const socialSettingsGlobal: GlobalConfig;
27
+
28
+ declare const emailSettingsGlobal: GlobalConfig;
29
+
30
+ declare const storageSettingsGlobal: GlobalConfig;
31
+
32
+ declare const accessSettingsGlobal: GlobalConfig;
33
+
34
+ declare const storeSettingsGlobal: GlobalConfig;
35
+
36
+ declare const paymentSettingsGlobal: GlobalConfig;
37
+
38
+ declare const allSettingsGlobals: GlobalConfig[];
39
+ declare const coreSettingsGlobals: GlobalConfig[];
40
+ declare const ecommerceSettingsGlobals: GlobalConfig[];
41
+ declare const settingsBySlug: Record<string, GlobalConfig>;
42
+ declare function getSettingsForTemplate(template: "minimal" | "blog" | "ecommerce" | "kitchen-sink"): GlobalConfig[];
43
+
44
+ interface TemplateConfig {
45
+ collections?: CollectionConfig[];
46
+ globals?: GlobalConfig[];
47
+ }
48
+ type TemplateType = "minimal" | "blog" | "ecommerce" | "kitchen-sink";
49
+ interface CreateTemplateConfigOptions extends TemplateConfig {
50
+ template?: TemplateType;
51
+ collections?: CollectionConfig[];
52
+ globals?: GlobalConfig[];
53
+ includeMedia?: boolean;
54
+ includeSettings?: "all" | "core" | "ecommerce" | "site" | "seo" | "social" | "email" | "storage" | "access" | "store" | "payments" | string[];
55
+ excludeSettings?: string[];
56
+ }
57
+ declare function createTemplateConfig(options: CreateTemplateConfigOptions): TemplateConfig;
58
+
59
+ export { type CreateTemplateConfigOptions, type TemplateConfig, type TemplateType, accessSettingsGlobal, allSettingsGlobals, authCollections, blogCollections, blogGlobals, coreSettingsGlobals, createTemplateConfig, ecommerceCollections, ecommerceGlobals, ecommerceSettingsGlobals, emailSettingsGlobal, getSettingsForTemplate, kitchenSinkCollections, mediaCollection, mediaCollections, minimalCollections, paymentSettingsGlobal, seoSettingsGlobal, settingsBySlug, siteSettingsGlobal, socialSettingsGlobal, storageSettingsGlobal, storeSettingsGlobal };