@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.
- package/README.md +25 -2
- package/dist/WebhookService-CXJ5oz6L.d.ts +112 -0
- package/dist/WebhookService-Dqx9Is7m.d.cts +112 -0
- package/dist/{base-CQkFzqQl.d.ts → base-CciYzoDF.d.ts} +1 -1
- package/dist/{base-DlhVlwnN.d.cts → base-Cfek4fp3.d.cts} +1 -1
- package/dist/bootstrap-BMWVB2T6.cjs +31 -0
- package/dist/{bootstrap-WMWQ4DBX.cjs.map → bootstrap-BMWVB2T6.cjs.map} +1 -1
- package/dist/bootstrap-LL6O7PWO.js +6 -0
- package/dist/{bootstrap-WOVGAKZP.js.map → bootstrap-LL6O7PWO.js.map} +1 -1
- package/dist/{chunk-3VZCX4DF.cjs → chunk-42JPONZU.cjs} +77 -14
- package/dist/chunk-42JPONZU.cjs.map +1 -0
- package/dist/{chunk-3EVLFWH2.cjs → chunk-4M5PHMUE.cjs} +60 -346
- package/dist/chunk-4M5PHMUE.cjs.map +1 -0
- package/dist/chunk-4PWRCMTQ.cjs +15 -0
- package/dist/chunk-4PWRCMTQ.cjs.map +1 -0
- package/dist/chunk-6COM32WF.js +47 -0
- package/dist/chunk-6COM32WF.js.map +1 -0
- package/dist/chunk-6MSSF46R.js +941 -0
- package/dist/chunk-6MSSF46R.js.map +1 -0
- package/dist/{chunk-TZFJMPCH.cjs → chunk-7YITG2US.cjs} +9 -18
- package/dist/chunk-7YITG2US.cjs.map +1 -0
- package/dist/{chunk-A3RQWHKD.cjs → chunk-BLMFBDBG.cjs} +56 -6
- package/dist/chunk-BLMFBDBG.cjs.map +1 -0
- package/dist/{chunk-EINVJPFM.js → chunk-BTOE3VUK.js} +65 -3
- package/dist/chunk-BTOE3VUK.js.map +1 -0
- package/dist/chunk-E5X75WNB.js +497 -0
- package/dist/chunk-E5X75WNB.js.map +1 -0
- package/dist/chunk-E63IF3MD.cjs +951 -0
- package/dist/chunk-E63IF3MD.cjs.map +1 -0
- package/dist/chunk-EWP5AT6A.cjs +268 -0
- package/dist/chunk-EWP5AT6A.cjs.map +1 -0
- package/dist/{chunk-K7QF2QCM.cjs → chunk-FTSSDDZQ.cjs} +7 -3
- package/dist/chunk-FTSSDDZQ.cjs.map +1 -0
- package/dist/chunk-G7VZBCD6.cjs +35 -0
- package/dist/{chunk-5BLDMQED.cjs.map → chunk-G7VZBCD6.cjs.map} +1 -1
- package/dist/{chunk-VMSRTAH7.js → chunk-GLCPGZPM.js} +56 -6
- package/dist/chunk-GLCPGZPM.js.map +1 -0
- package/dist/{chunk-V3B25QOK.cjs → chunk-GVFB5C6O.cjs} +74 -2
- package/dist/chunk-GVFB5C6O.cjs.map +1 -0
- package/dist/chunk-HVSQDZZJ.cjs +765 -0
- package/dist/chunk-HVSQDZZJ.cjs.map +1 -0
- package/dist/chunk-HYC4GNHX.js +758 -0
- package/dist/chunk-HYC4GNHX.js.map +1 -0
- package/dist/chunk-KDVDIZ4Y.cjs +3479 -0
- package/dist/chunk-KDVDIZ4Y.cjs.map +1 -0
- package/dist/{chunk-OG3KX56O.js → chunk-KWGNR4HM.js} +7 -3
- package/dist/chunk-KWGNR4HM.js.map +1 -0
- package/dist/chunk-LIJVWQKU.cjs +256 -0
- package/dist/chunk-LIJVWQKU.cjs.map +1 -0
- package/dist/{chunk-XTZSUDSI.js → chunk-LTRCYJAG.js} +3 -18
- package/dist/chunk-LTRCYJAG.js.map +1 -0
- package/dist/{chunk-UEYC46RL.js → chunk-OUGKLCYF.js} +71 -8
- package/dist/chunk-OUGKLCYF.js.map +1 -0
- package/dist/chunk-QKOFKITP.js +258 -0
- package/dist/chunk-QKOFKITP.js.map +1 -0
- package/dist/chunk-RONAX6UU.js +3456 -0
- package/dist/chunk-RONAX6UU.js.map +1 -0
- package/dist/{chunk-5Y7QGIHD.js → chunk-RRYXQMZG.js} +60 -344
- package/dist/chunk-RRYXQMZG.js.map +1 -0
- package/dist/{chunk-QUJ4OLSC.js → chunk-U74F3YZU.js} +87 -7
- package/dist/chunk-U74F3YZU.js.map +1 -0
- package/dist/chunk-VIONYQ2K.cjs +517 -0
- package/dist/chunk-VIONYQ2K.cjs.map +1 -0
- package/dist/chunk-VSTRLXMQ.cjs +50 -0
- package/dist/chunk-VSTRLXMQ.cjs.map +1 -0
- package/dist/chunk-YT7HXXVN.js +13 -0
- package/dist/chunk-YT7HXXVN.js.map +1 -0
- package/dist/chunk-Z6ZWNWWR.js +30 -0
- package/dist/{chunk-NSBPE2FW.js.map → chunk-Z6ZWNWWR.js.map} +1 -1
- package/dist/cli/index.cjs +11 -7
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +11 -7
- package/dist/cli/index.js.map +1 -1
- package/dist/client.cjs +45 -0
- package/dist/client.cjs.map +1 -0
- package/dist/client.d.cts +11 -0
- package/dist/client.d.ts +11 -0
- package/dist/client.js +4 -0
- package/dist/client.js.map +1 -0
- package/dist/drizzle/index.cjs +20 -17
- package/dist/drizzle/index.d.cts +115 -5
- package/dist/drizzle/index.d.ts +115 -5
- package/dist/drizzle/index.js +4 -5
- package/dist/graphql/index.cjs +4 -4
- package/dist/graphql/index.d.cts +3 -2
- package/dist/graphql/index.d.ts +3 -2
- package/dist/graphql/index.js +2 -2
- package/dist/{index-4fJKLFK2.d.ts → index-BvZ1iWm2.d.ts} +1 -1
- package/dist/{index-DI0DRPNv.d.cts → index-CTLPjpMH.d.cts} +1 -1
- package/dist/index.cjs +3391 -649
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +368 -309
- package/dist/index.d.ts +368 -309
- package/dist/index.js +3253 -599
- package/dist/index.js.map +1 -1
- package/dist/media-HOT3O7RW.js +4 -0
- package/dist/media-HOT3O7RW.js.map +1 -0
- package/dist/media-WKP5AOX2.cjs +17 -0
- package/dist/media-WKP5AOX2.cjs.map +1 -0
- package/dist/mongodb/index.cjs +1 -1
- package/dist/mongodb/index.d.cts +2 -2
- package/dist/mongodb/index.d.ts +2 -2
- package/dist/mongodb/index.js +1 -1
- package/dist/mysql-media-AI6YK767.cjs +48 -0
- package/dist/mysql-media-AI6YK767.cjs.map +1 -0
- package/dist/mysql-media-CDZUS7YX.js +45 -0
- package/dist/mysql-media-CDZUS7YX.js.map +1 -0
- package/dist/postgres-auth-adapter-EVRPO7BQ.cjs +14 -0
- package/dist/{postgres-auth-adapter-VK6GY7LX.cjs.map → postgres-auth-adapter-EVRPO7BQ.cjs.map} +1 -1
- package/dist/postgres-auth-adapter-OTRWSTT5.js +5 -0
- package/dist/{postgres-auth-adapter-REJFUMP7.js.map → postgres-auth-adapter-OTRWSTT5.js.map} +1 -1
- package/dist/rate-limit-BvUAVCzw.d.cts +223 -0
- package/dist/rate-limit-CJnqG1mG.d.ts +223 -0
- package/dist/redis-adapter-2N6VA7BI.cjs +13 -0
- package/dist/{redis-adapter-LBLNKGNS.cjs.map → redis-adapter-2N6VA7BI.cjs.map} +1 -1
- package/dist/redis-adapter-RA24FNCX.js +4 -0
- package/dist/{redis-adapter-4YDY4LWE.js.map → redis-adapter-RA24FNCX.js.map} +1 -1
- package/dist/rest/index.cjs +7 -5
- package/dist/rest/index.d.cts +29 -3
- package/dist/rest/index.d.ts +29 -3
- package/dist/rest/index.js +5 -3
- package/dist/schema-CNB2DDTX.js +6 -0
- package/dist/schema-CNB2DDTX.js.map +1 -0
- package/dist/schema-Y777CQQS.cjs +67 -0
- package/dist/schema-Y777CQQS.cjs.map +1 -0
- package/dist/templates/index.cjs +24 -28
- package/dist/templates/index.d.cts +2 -4
- package/dist/templates/index.d.ts +2 -4
- package/dist/templates/index.js +2 -2
- package/dist/trpc/index.cjs +12 -12
- package/dist/trpc/index.d.cts +19 -14
- package/dist/trpc/index.d.ts +19 -14
- package/dist/trpc/index.js +3 -3
- package/dist/types-BSR91JFN.d.cts +159 -0
- package/dist/types-BSR91JFN.d.ts +159 -0
- package/dist/{types-BGM5MV_K.d.ts → types-Bt1OEk0S.d.cts} +78 -38
- package/dist/{types-BGM5MV_K.d.cts → types-Bt1OEk0S.d.ts} +78 -38
- package/dist/ws/index.cjs +1 -1
- package/dist/ws/index.js +1 -1
- package/package.json +19 -2
- package/dist/bootstrap-WMWQ4DBX.cjs +0 -29
- package/dist/bootstrap-WOVGAKZP.js +0 -4
- package/dist/chunk-3EVLFWH2.cjs.map +0 -1
- package/dist/chunk-3QX6KG2S.js +0 -2125
- package/dist/chunk-3QX6KG2S.js.map +0 -1
- package/dist/chunk-3VZCX4DF.cjs.map +0 -1
- package/dist/chunk-5BLDMQED.cjs +0 -18
- package/dist/chunk-5Y7QGIHD.js.map +0 -1
- package/dist/chunk-7G6EVYCU.cjs +0 -94
- package/dist/chunk-7G6EVYCU.cjs.map +0 -1
- package/dist/chunk-A3RQWHKD.cjs.map +0 -1
- package/dist/chunk-EINVJPFM.js.map +0 -1
- package/dist/chunk-F5B64H5S.cjs +0 -2149
- package/dist/chunk-F5B64H5S.cjs.map +0 -1
- package/dist/chunk-K7QF2QCM.cjs.map +0 -1
- package/dist/chunk-LRTZJJPD.js +0 -86
- package/dist/chunk-LRTZJJPD.js.map +0 -1
- package/dist/chunk-NSBPE2FW.js +0 -15
- package/dist/chunk-OG3KX56O.js.map +0 -1
- package/dist/chunk-QUJ4OLSC.js.map +0 -1
- package/dist/chunk-R3XIBBAW.cjs +0 -34
- package/dist/chunk-R3XIBBAW.cjs.map +0 -1
- package/dist/chunk-SDMNUYVU.js +0 -30
- package/dist/chunk-SDMNUYVU.js.map +0 -1
- package/dist/chunk-TZFJMPCH.cjs.map +0 -1
- package/dist/chunk-UEG7KMKC.cjs +0 -228
- package/dist/chunk-UEG7KMKC.cjs.map +0 -1
- package/dist/chunk-UEYC46RL.js.map +0 -1
- package/dist/chunk-V3B25QOK.cjs.map +0 -1
- package/dist/chunk-VMSRTAH7.js.map +0 -1
- package/dist/chunk-XTZSUDSI.js.map +0 -1
- package/dist/chunk-YD7Y25W7.cjs +0 -176
- package/dist/chunk-YD7Y25W7.cjs.map +0 -1
- package/dist/chunk-YPAFJ7EV.js +0 -225
- package/dist/chunk-YPAFJ7EV.js.map +0 -1
- package/dist/database-7CJOXEZR.js +0 -5
- package/dist/database-7CJOXEZR.js.map +0 -1
- package/dist/database-QOIV44GT.cjs +0 -22
- package/dist/database-QOIV44GT.cjs.map +0 -1
- package/dist/index-BMySjW6o.d.cts +0 -198
- package/dist/index-CMUNCIWQ.d.ts +0 -198
- package/dist/postgres-auth-adapter-REJFUMP7.js +0 -5
- package/dist/postgres-auth-adapter-VK6GY7LX.cjs +0 -14
- package/dist/redis-adapter-4YDY4LWE.js +0 -4
- package/dist/redis-adapter-LBLNKGNS.cjs +0 -13
package/dist/client.cjs
ADDED
|
@@ -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 };
|
package/dist/client.d.ts
ADDED
|
@@ -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"}
|
package/dist/drizzle/index.cjs
CHANGED
|
@@ -1,45 +1,48 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
|
|
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-
|
|
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
|
|
13
|
+
get: function () { return chunkGVFB5C6O_cjs.DrizzleAdapter; }
|
|
15
14
|
});
|
|
16
15
|
Object.defineProperty(exports, "collectionToDrizzleSchema", {
|
|
17
16
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkGVFB5C6O_cjs.collectionToDrizzleSchema; }
|
|
19
18
|
});
|
|
20
|
-
Object.defineProperty(exports, "
|
|
19
|
+
Object.defineProperty(exports, "createDatabase", {
|
|
21
20
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkGVFB5C6O_cjs.createDatabase; }
|
|
23
22
|
});
|
|
24
|
-
Object.defineProperty(exports, "
|
|
23
|
+
Object.defineProperty(exports, "createDrizzleAdapter", {
|
|
25
24
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkGVFB5C6O_cjs.createDrizzleAdapter; }
|
|
27
26
|
});
|
|
28
|
-
Object.defineProperty(exports, "
|
|
27
|
+
Object.defineProperty(exports, "fieldToDrizzleType", {
|
|
29
28
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkGVFB5C6O_cjs.fieldToDrizzleType; }
|
|
31
30
|
});
|
|
32
|
-
Object.defineProperty(exports, "
|
|
31
|
+
Object.defineProperty(exports, "genId", {
|
|
33
32
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkGVFB5C6O_cjs.genId; }
|
|
35
34
|
});
|
|
36
35
|
Object.defineProperty(exports, "runMigrations", {
|
|
37
36
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkGVFB5C6O_cjs.runMigrations; }
|
|
39
38
|
});
|
|
40
39
|
Object.defineProperty(exports, "seedDefaultRoles", {
|
|
41
40
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
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
|
package/dist/drizzle/index.d.cts
CHANGED
|
@@ -1,5 +1,115 @@
|
|
|
1
|
-
|
|
2
|
-
import '../
|
|
3
|
-
import '
|
|
4
|
-
import '
|
|
5
|
-
import '
|
|
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 };
|
package/dist/drizzle/index.d.ts
CHANGED
|
@@ -1,5 +1,115 @@
|
|
|
1
|
-
|
|
2
|
-
import '../
|
|
3
|
-
import '
|
|
4
|
-
import '
|
|
5
|
-
import '
|
|
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 };
|
package/dist/drizzle/index.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
export { DrizzleAdapter, collectionToDrizzleSchema, createDrizzleAdapter, fieldToDrizzleType } from '../chunk-
|
|
2
|
-
export { PostgresAuthAdapter } from '../chunk-
|
|
3
|
-
|
|
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-
|
|
5
|
+
import '../chunk-Z6ZWNWWR.js';
|
|
7
6
|
//# sourceMappingURL=index.js.map
|
|
8
7
|
//# sourceMappingURL=index.js.map
|
package/dist/graphql/index.cjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
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
|
|
10
|
+
get: function () { return chunkFTSSDDZQ_cjs.buildGraphQLSchema; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "createGraphQLSchema", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkFTSSDDZQ_cjs.createGraphQLSchema; }
|
|
15
15
|
});
|
|
16
16
|
//# sourceMappingURL=index.cjs.map
|
|
17
17
|
//# sourceMappingURL=index.cjs.map
|
package/dist/graphql/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GraphQLSchema } from 'graphql';
|
|
2
|
-
import {
|
|
3
|
-
import { R as Registry } from '../index-
|
|
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?: {
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GraphQLSchema } from 'graphql';
|
|
2
|
-
import {
|
|
3
|
-
import { R as Registry } from '../index-
|
|
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?: {
|
package/dist/graphql/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { buildGraphQLSchema, createGraphQLSchema } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
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 {
|
|
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 {
|
|
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 {
|