@kyro-cms/core 0.1.4 → 0.1.5
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/dist/bootstrap-BDTTUGY2.js +4 -0
- package/dist/{bootstrap-Q2TWUQF3.js.map → bootstrap-BDTTUGY2.js.map} +1 -1
- package/dist/bootstrap-X6TP3NKX.cjs +29 -0
- package/dist/{bootstrap-2WJK6PG7.cjs.map → bootstrap-X6TP3NKX.cjs.map} +1 -1
- package/dist/chunk-5BLDMQED.cjs +18 -0
- package/dist/{chunk-Q7SFCCGT.cjs.map → chunk-5BLDMQED.cjs.map} +1 -1
- package/dist/{chunk-U4CHJTWX.cjs → chunk-7G6EVYCU.cjs} +5 -5
- package/dist/{chunk-U4CHJTWX.cjs.map → chunk-7G6EVYCU.cjs.map} +1 -1
- package/dist/chunk-A3RQWHKD.cjs +263 -0
- package/dist/chunk-A3RQWHKD.cjs.map +1 -0
- package/dist/{chunk-V67YXRBT.js → chunk-C74MQIRL.js} +517 -203
- package/dist/chunk-C74MQIRL.js.map +1 -0
- package/dist/{chunk-XLMVCGXA.js → chunk-LRTZJJPD.js} +3 -3
- package/dist/{chunk-XLMVCGXA.js.map → chunk-LRTZJJPD.js.map} +1 -1
- package/dist/{chunk-I4BORBXT.cjs → chunk-MHS6CPO5.cjs} +517 -204
- package/dist/chunk-MHS6CPO5.cjs.map +1 -0
- package/dist/chunk-NSBPE2FW.js +15 -0
- package/dist/{chunk-PZ5AY32C.js.map → chunk-NSBPE2FW.js.map} +1 -1
- package/dist/{chunk-M4JFHQ5J.js → chunk-QUJ4OLSC.js} +3 -3
- package/dist/{chunk-M4JFHQ5J.js.map → chunk-QUJ4OLSC.js.map} +1 -1
- package/dist/{chunk-5AOILNGY.cjs → chunk-TZFJMPCH.cjs} +4 -4
- package/dist/{chunk-5AOILNGY.cjs.map → chunk-TZFJMPCH.cjs.map} +1 -1
- package/dist/chunk-VMSRTAH7.js +256 -0
- package/dist/chunk-VMSRTAH7.js.map +1 -0
- package/dist/{chunk-KA3UOIFC.js → chunk-XTZSUDSI.js} +3 -3
- package/dist/{chunk-KA3UOIFC.js.map → chunk-XTZSUDSI.js.map} +1 -1
- package/dist/{chunk-KWTKEBHM.cjs → chunk-YD7Y25W7.cjs} +19 -19
- package/dist/{chunk-KWTKEBHM.cjs.map → chunk-YD7Y25W7.cjs.map} +1 -1
- package/dist/cli/index.cjs +5 -5
- package/dist/cli/index.js +5 -5
- package/dist/database-7CJOXEZR.js +5 -0
- package/dist/{database-37KXWUER.js.map → database-7CJOXEZR.js.map} +1 -1
- package/dist/database-QOIV44GT.cjs +22 -0
- package/dist/{database-LJKD3HE4.cjs.map → database-QOIV44GT.cjs.map} +1 -1
- package/dist/drizzle/index.cjs +8 -8
- package/dist/drizzle/index.d.cts +1 -1
- package/dist/drizzle/index.d.ts +1 -1
- package/dist/drizzle/index.js +4 -4
- package/dist/graphql/index.cjs +1 -1
- package/dist/graphql/index.js +1 -1
- package/dist/{index-CzkEHKqu.d.cts → index-BMySjW6o.d.cts} +6 -0
- package/dist/{index-BVFlb7uU.d.ts → index-CMUNCIWQ.d.ts} +6 -0
- package/dist/index.cjs +727 -346
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +229 -62
- package/dist/index.d.ts +229 -62
- package/dist/index.js +706 -331
- package/dist/index.js.map +1 -1
- package/dist/mongodb/index.cjs +1 -1
- package/dist/mongodb/index.js +1 -1
- package/dist/postgres-auth-adapter-REJFUMP7.js +5 -0
- package/dist/{postgres-auth-adapter-LTDUGBMB.js.map → postgres-auth-adapter-REJFUMP7.js.map} +1 -1
- package/dist/postgres-auth-adapter-VK6GY7LX.cjs +14 -0
- package/dist/{postgres-auth-adapter-CYZAVPPP.cjs.map → postgres-auth-adapter-VK6GY7LX.cjs.map} +1 -1
- package/dist/redis-adapter-4YDY4LWE.js +4 -0
- package/dist/redis-adapter-4YDY4LWE.js.map +1 -0
- package/dist/redis-adapter-LBLNKGNS.cjs +13 -0
- package/dist/redis-adapter-LBLNKGNS.cjs.map +1 -0
- package/dist/rest/index.cjs +1 -1
- package/dist/rest/index.js +1 -1
- package/dist/templates/index.cjs +1 -1
- package/dist/templates/index.js +1 -1
- package/dist/trpc/index.cjs +1 -1
- package/dist/trpc/index.js +1 -1
- package/dist/ws/index.cjs +1 -1
- package/dist/ws/index.js +1 -1
- package/package.json +2 -2
- package/dist/bootstrap-2WJK6PG7.cjs +0 -29
- package/dist/bootstrap-Q2TWUQF3.js +0 -4
- package/dist/chunk-I4BORBXT.cjs.map +0 -1
- package/dist/chunk-PZ5AY32C.js +0 -9
- package/dist/chunk-Q7SFCCGT.cjs +0 -11
- package/dist/chunk-V67YXRBT.js.map +0 -1
- package/dist/database-37KXWUER.js +0 -5
- package/dist/database-LJKD3HE4.cjs +0 -22
- package/dist/postgres-auth-adapter-CYZAVPPP.cjs +0 -14
- package/dist/postgres-auth-adapter-LTDUGBMB.js +0 -5
package/dist/cli/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import '../chunk-
|
|
2
|
+
import '../chunk-NSBPE2FW.js';
|
|
3
3
|
import { Command } from 'commander';
|
|
4
4
|
import { readFileSync, existsSync, mkdirSync, writeFileSync } from 'fs';
|
|
5
5
|
import { dirname, join, resolve } from 'path';
|
|
@@ -351,9 +351,9 @@ authCommand.command("bootstrap").description("Create initial admin user").option
|
|
|
351
351
|
console.log(` Email: ${options.email}`);
|
|
352
352
|
console.log(` Role: ${options.role}`);
|
|
353
353
|
try {
|
|
354
|
-
const { bootstrapAdmin } = await import('../bootstrap-
|
|
355
|
-
const { PostgresAuthAdapter } = await import('../postgres-auth-adapter-
|
|
356
|
-
const { createDatabase } = await import('../database-
|
|
354
|
+
const { bootstrapAdmin } = await import('../bootstrap-BDTTUGY2.js');
|
|
355
|
+
const { PostgresAuthAdapter } = await import('../postgres-auth-adapter-REJFUMP7.js');
|
|
356
|
+
const { createDatabase } = await import('../database-7CJOXEZR.js');
|
|
357
357
|
const { client, db } = await createDatabase();
|
|
358
358
|
const adapter = new PostgresAuthAdapter({ db });
|
|
359
359
|
const result = await bootstrapAdmin({
|
|
@@ -377,7 +377,7 @@ authCommand.command("bootstrap").description("Create initial admin user").option
|
|
|
377
377
|
program.command("health").description("Check system health").action(async () => {
|
|
378
378
|
console.log("\u{1F3E5} System Health Check");
|
|
379
379
|
try {
|
|
380
|
-
const { createDatabase } = await import('../database-
|
|
380
|
+
const { createDatabase } = await import('../database-7CJOXEZR.js');
|
|
381
381
|
const { client } = await createDatabase();
|
|
382
382
|
await client.unsafe("SELECT 1");
|
|
383
383
|
console.log(" \u2705 Database: Connected");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"database-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"database-7CJOXEZR.js"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk7G6EVYCU_cjs = require('./chunk-7G6EVYCU.cjs');
|
|
4
|
+
require('./chunk-TZFJMPCH.cjs');
|
|
5
|
+
require('./chunk-5BLDMQED.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "createDatabase", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunk7G6EVYCU_cjs.createDatabase; }
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "runMigrations", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunk7G6EVYCU_cjs.runMigrations; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "seedDefaultRoles", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return chunk7G6EVYCU_cjs.seedDefaultRoles; }
|
|
20
|
+
});
|
|
21
|
+
//# sourceMappingURL=database-QOIV44GT.cjs.map
|
|
22
|
+
//# sourceMappingURL=database-QOIV44GT.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"database-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"database-QOIV44GT.cjs"}
|
package/dist/drizzle/index.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkV3B25QOK_cjs = require('../chunk-V3B25QOK.cjs');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
require('../chunk-
|
|
4
|
+
var chunkYD7Y25W7_cjs = require('../chunk-YD7Y25W7.cjs');
|
|
5
|
+
var chunk7G6EVYCU_cjs = require('../chunk-7G6EVYCU.cjs');
|
|
6
|
+
require('../chunk-TZFJMPCH.cjs');
|
|
7
7
|
require('../chunk-RLTG4YZM.cjs');
|
|
8
|
-
require('../chunk-
|
|
8
|
+
require('../chunk-5BLDMQED.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -27,19 +27,19 @@ Object.defineProperty(exports, "fieldToDrizzleType", {
|
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "PostgresAuthAdapter", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkYD7Y25W7_cjs.PostgresAuthAdapter; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "createDatabase", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunk7G6EVYCU_cjs.createDatabase; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "runMigrations", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunk7G6EVYCU_cjs.runMigrations; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "seedDefaultRoles", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunk7G6EVYCU_cjs.seedDefaultRoles; }
|
|
43
43
|
});
|
|
44
44
|
//# sourceMappingURL=index.cjs.map
|
|
45
45
|
//# sourceMappingURL=index.cjs.map
|
package/dist/drizzle/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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
2
|
import '../base-DlhVlwnN.cjs';
|
|
3
3
|
import '../types-BGM5MV_K.cjs';
|
|
4
4
|
import 'drizzle-orm/postgres-js';
|
package/dist/drizzle/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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
2
|
import '../base-CQkFzqQl.js';
|
|
3
3
|
import '../types-BGM5MV_K.js';
|
|
4
4
|
import 'drizzle-orm/postgres-js';
|
package/dist/drizzle/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { DrizzleAdapter, collectionToDrizzleSchema, createDrizzleAdapter, fieldToDrizzleType } from '../chunk-EINVJPFM.js';
|
|
2
|
-
export { PostgresAuthAdapter } from '../chunk-
|
|
3
|
-
export { createDatabase, runMigrations, seedDefaultRoles } from '../chunk-
|
|
4
|
-
import '../chunk-
|
|
2
|
+
export { PostgresAuthAdapter } from '../chunk-QUJ4OLSC.js';
|
|
3
|
+
export { createDatabase, runMigrations, seedDefaultRoles } from '../chunk-LRTZJJPD.js';
|
|
4
|
+
import '../chunk-XTZSUDSI.js';
|
|
5
5
|
import '../chunk-BXMWDUED.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-NSBPE2FW.js';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
package/dist/graphql/index.cjs
CHANGED
package/dist/graphql/index.js
CHANGED
|
@@ -126,6 +126,12 @@ interface AuthAdapter {
|
|
|
126
126
|
findSessionByToken(token: string): Promise<Session | null>;
|
|
127
127
|
deleteSession(sessionId: string): Promise<boolean>;
|
|
128
128
|
deleteUserSessions(userId: string): Promise<number>;
|
|
129
|
+
hasAnyUsers?(): Promise<boolean>;
|
|
130
|
+
connect?(): Promise<void>;
|
|
131
|
+
disconnect?(): Promise<void>;
|
|
132
|
+
addPasswordToHistory?(userId: string, passwordHash: string): Promise<void>;
|
|
133
|
+
getPasswordHistory?(userId: string, count?: number): Promise<string[]>;
|
|
134
|
+
isPasswordInHistory?(password: string, userId: string, historyCount?: number): Promise<boolean>;
|
|
129
135
|
}
|
|
130
136
|
|
|
131
137
|
interface PostgresAuthAdapterOptions {
|
|
@@ -126,6 +126,12 @@ interface AuthAdapter {
|
|
|
126
126
|
findSessionByToken(token: string): Promise<Session | null>;
|
|
127
127
|
deleteSession(sessionId: string): Promise<boolean>;
|
|
128
128
|
deleteUserSessions(userId: string): Promise<number>;
|
|
129
|
+
hasAnyUsers?(): Promise<boolean>;
|
|
130
|
+
connect?(): Promise<void>;
|
|
131
|
+
disconnect?(): Promise<void>;
|
|
132
|
+
addPasswordToHistory?(userId: string, passwordHash: string): Promise<void>;
|
|
133
|
+
getPasswordHistory?(userId: string, count?: number): Promise<string[]>;
|
|
134
|
+
isPasswordInHistory?(password: string, userId: string, historyCount?: number): Promise<boolean>;
|
|
129
135
|
}
|
|
130
136
|
|
|
131
137
|
interface PostgresAuthAdapterOptions {
|