@getstrata/bootstrap 0.1.0 → 0.2.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.
- package/dist/bootstrap/context.d.ts +6 -0
- package/dist/bootstrap/createWebRoutes.d.ts +4 -0
- package/dist/bootstrap/discoverListeners.d.ts +5 -0
- package/dist/bootstrap/discoverModules.d.ts +4 -0
- package/dist/bootstrap/env.d.ts +9 -0
- package/dist/bootstrap/httpKernel.d.ts +2 -0
- package/dist/bootstrap/listeners/invalidateCacheOnModelWrite.d.ts +3 -0
- package/dist/bootstrap/modules.d.ts +1 -0
- package/dist/bootstrap/providers/auth.d.ts +3 -0
- package/dist/bootstrap/providers/cache.d.ts +3 -0
- package/dist/bootstrap/providers/config.d.ts +5 -0
- package/dist/bootstrap/providers/events.d.ts +5 -0
- package/dist/bootstrap/providers/index.d.ts +3 -0
- package/dist/bootstrap/providers/listeners.d.ts +3 -0
- package/dist/bootstrap/providers/policy.d.ts +3 -0
- package/dist/bootstrap/providers/queue.d.ts +3 -0
- package/dist/bootstrap/providers/view.d.ts +5 -0
- package/dist/bootstrap/public-api.d.ts +7 -1
- package/dist/bootstrap/routeRegistry.d.ts +14 -0
- package/dist/bootstrap/schedule.d.ts +1 -0
- package/dist/bootstrap/secretsGuard.d.ts +2 -0
- package/dist/bootstrap/web/session.d.ts +2 -0
- package/dist/cli/commands/scheduleRun.d.ts +3 -0
- package/dist/config/auth.d.ts +7 -0
- package/dist/config/queue.d.ts +8 -0
- package/dist/config/rateLimit.d.ts +2 -1
- package/dist/core/audit/exportAuditLogs.d.ts +8 -0
- package/dist/core/audit/siemFormatter.d.ts +30 -0
- package/dist/core/auth/abilityChecker.d.ts +6 -0
- package/dist/core/auth/policy.d.ts +2 -2
- package/dist/core/auth/sessionCookie.d.ts +6 -0
- package/dist/core/auth/sessionGuard.d.ts +9 -0
- package/dist/core/cache/createCacheStore.d.ts +11 -0
- package/dist/core/cache/modelCacheTags.d.ts +3 -0
- package/dist/core/cache/redisCacheStore.d.ts +23 -0
- package/dist/core/cache/repository.d.ts +17 -0
- package/dist/core/cache/simpleCache.d.ts +23 -0
- package/dist/core/cache/simpleCacheStore.d.ts +16 -0
- package/dist/core/cache/store.d.ts +12 -0
- package/dist/core/cache/taggedCache.d.ts +9 -0
- package/dist/core/config/envSchema.d.ts +12 -0
- package/dist/core/database/baseRepository.d.ts +22 -7
- package/dist/core/database/boundConnection.d.ts +5 -0
- package/dist/core/database/index.d.ts +11 -4
- package/dist/core/database/migrations/types.d.ts +15 -0
- package/dist/core/database/model.d.ts +57 -0
- package/dist/core/database/query.d.ts +26 -14
- package/dist/core/database/relationships.d.ts +32 -2
- package/dist/core/database/repositoryConnection.d.ts +4 -0
- package/dist/core/database/repositoryQuery.d.ts +35 -0
- package/dist/core/database/schema/blueprint.d.ts +47 -0
- package/dist/core/database/schema/columnDefinition.d.ts +36 -0
- package/dist/core/database/schema/driver.d.ts +8 -0
- package/dist/core/database/schema/errors.d.ts +4 -0
- package/dist/core/database/schema/grammars/compileStatements.d.ts +8 -0
- package/dist/core/database/schema/grammars/createGrammar.d.ts +4 -0
- package/dist/core/database/schema/grammars/grammar.d.ts +10 -0
- package/dist/core/database/schema/grammars/index.d.ts +7 -0
- package/dist/core/database/schema/grammars/mysqlGrammar.d.ts +2 -0
- package/dist/core/database/schema/grammars/postgresGrammar.d.ts +2 -0
- package/dist/core/database/schema/grammars/sqliteGrammar.d.ts +2 -0
- package/dist/core/database/schema/index.d.ts +12 -0
- package/dist/core/database/schema/schema.d.ts +21 -0
- package/dist/core/database/types.d.ts +39 -2
- package/dist/core/database/whereBuilder.d.ts +17 -0
- package/dist/core/http/requireAbilityMiddleware.d.ts +2 -2
- package/dist/core/jobs/dispatchWebhookJob.d.ts +14 -0
- package/dist/core/jobs/invalidateCacheTagsJob.d.ts +12 -0
- package/dist/core/pagination/index.d.ts +11 -1
- package/dist/core/queue/createAppQueue.d.ts +6 -0
- package/dist/core/queue/failedJobRepository.d.ts +6 -0
- package/dist/core/queue/failedJobService.d.ts +15 -0
- package/dist/core/queue/failedJobTable.d.ts +3 -0
- package/dist/core/queue/jobRegistry.d.ts +14 -0
- package/dist/core/queue/jobRunner.d.ts +9 -0
- package/dist/core/queue/publicQueue.d.ts +15 -0
- package/dist/core/queue/redisQueue.d.ts +29 -0
- package/dist/core/queue/resilientQueue.d.ts +9 -0
- package/dist/core/queue/types.d.ts +8 -0
- package/dist/core/scheduler/schedule.d.ts +15 -0
- package/dist/core/security/safeFetch.d.ts +8 -0
- package/dist/core/security/safeUrl.d.ts +5 -0
- package/dist/core/view/etaViewEngine.d.ts +15 -0
- package/dist/core/view/htmlResponse.d.ts +6 -0
- package/dist/core/view/index.d.ts +5 -0
- package/dist/core/view/viewEngine.d.ts +6 -0
- package/dist/core/view/webLayoutData.d.ts +17 -0
- package/dist/domain/scim.d.ts +9 -0
- package/dist/index.js +4194 -466
- package/dist/modules/user/apiTokenRepository.d.ts +1 -1
- package/dist/modules/user/apiTokenTable.d.ts +1 -1
- package/dist/modules/user/authService.d.ts +1 -1
- package/dist/modules/user/notificationRepository.d.ts +1 -1
- package/dist/modules/user/notificationService.d.ts +1 -1
- package/dist/modules/user/notificationTable.d.ts +1 -1
- package/dist/modules/user/oauthIdentityRepository.d.ts +2 -2
- package/dist/modules/user/provider.d.ts +1 -1
- package/dist/modules/user/repository.d.ts +1 -1
- package/dist/modules/user/table.d.ts +1 -1
- package/dist/modules/user/tokenService.d.ts +1 -1
- package/package.json +44 -3
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ApiTokenRecord } from "./types";
|
|
2
|
-
declare const apiTokenTable: import("
|
|
2
|
+
declare const apiTokenTable: import("@getstrata/core/database").TableDefinition<ApiTokenRecord, "id">;
|
|
3
3
|
export { apiTokenTable };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { OAuthProvider } from "
|
|
1
|
+
import type { OAuthProvider } from "@getstrata/core/auth/oauth/types";
|
|
2
2
|
import type OAuthIdentityRepository from "./oauthIdentityRepository";
|
|
3
3
|
import type UserRepository from "./repository";
|
|
4
4
|
import type TokenService from "./tokenService";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseRepository } from "
|
|
1
|
+
import { BaseRepository } from "@getstrata/core/database";
|
|
2
2
|
import type { NotificationRecord } from "./notificationTypes";
|
|
3
3
|
declare class NotificationRepository extends BaseRepository<NotificationRecord, "id"> {
|
|
4
4
|
constructor();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PaginatedResult } from "
|
|
1
|
+
import type { PaginatedResult } from "@getstrata/core/pagination";
|
|
2
2
|
import type NotificationRepository from "./notificationRepository";
|
|
3
3
|
import type { NotificationRecord } from "./notificationTypes";
|
|
4
4
|
interface CreateNotificationInput {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { NotificationRecord } from "./notificationTypes";
|
|
2
|
-
declare const notificationTable: import("
|
|
2
|
+
declare const notificationTable: import("@getstrata/core/database").TableDefinition<NotificationRecord, "id">;
|
|
3
3
|
export { notificationTable };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BaseRepository } from "
|
|
1
|
+
import { BaseRepository } from "@getstrata/core/database";
|
|
2
2
|
import type { OAuthIdentityRecord } from "./types";
|
|
3
|
-
declare const oauthIdentityTable: import("
|
|
3
|
+
declare const oauthIdentityTable: import("@getstrata/core/database").TableDefinition<OAuthIdentityRecord, "id">;
|
|
4
4
|
declare class OAuthIdentityRepository extends BaseRepository<OAuthIdentityRecord, "id"> {
|
|
5
5
|
constructor();
|
|
6
6
|
findByProviderUser(provider: string, providerUserId: string): Promise<OAuthIdentityRecord | null>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ServiceProvider } from "
|
|
1
|
+
import type { ServiceProvider } from "@getstrata/bootstrap/contracts";
|
|
2
2
|
declare const userRepositoryToken = "user.repository";
|
|
3
3
|
declare const apiTokenRepositoryToken = "user.apiTokenRepository";
|
|
4
4
|
declare const tokenServiceToken = "core.tokenService";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AuthUser } from "
|
|
1
|
+
import type { AuthUser } from "@getstrata/core/auth/authContext";
|
|
2
2
|
import type ApiTokenRepository from "./apiTokenRepository";
|
|
3
3
|
import type UserRepository from "./repository";
|
|
4
4
|
import type { ApiTokenRecord, ApiTokenResource, CreatedApiToken, UserRecord } from "./types";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getstrata/bootstrap",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Strata application bootstrap — HttpKernel, DI, web session helpers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,6 +14,46 @@
|
|
|
14
14
|
"types": "./dist/bootstrap/public-api.d.ts",
|
|
15
15
|
"import": "./dist/index.js",
|
|
16
16
|
"default": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./applicationRegistry": {
|
|
19
|
+
"types": "./dist/entries/applicationRegistry.d.ts",
|
|
20
|
+
"import": "./dist/entries/applicationRegistry.js",
|
|
21
|
+
"default": "./dist/entries/applicationRegistry.js"
|
|
22
|
+
},
|
|
23
|
+
"./config": {
|
|
24
|
+
"types": "./dist/entries/config.d.ts",
|
|
25
|
+
"import": "./dist/entries/config.js",
|
|
26
|
+
"default": "./dist/entries/config.js"
|
|
27
|
+
},
|
|
28
|
+
"./context": {
|
|
29
|
+
"types": "./dist/entries/context.d.ts",
|
|
30
|
+
"import": "./dist/entries/context.js",
|
|
31
|
+
"default": "./dist/entries/context.js"
|
|
32
|
+
},
|
|
33
|
+
"./contracts": {
|
|
34
|
+
"types": "./dist/entries/contracts.d.ts",
|
|
35
|
+
"import": "./dist/entries/contracts.js",
|
|
36
|
+
"default": "./dist/entries/contracts.js"
|
|
37
|
+
},
|
|
38
|
+
"./createWebRoutes": {
|
|
39
|
+
"types": "./dist/entries/createWebRoutes.d.ts",
|
|
40
|
+
"import": "./dist/entries/createWebRoutes.js",
|
|
41
|
+
"default": "./dist/entries/createWebRoutes.js"
|
|
42
|
+
},
|
|
43
|
+
"./httpKernel": {
|
|
44
|
+
"types": "./dist/entries/httpKernel.d.ts",
|
|
45
|
+
"import": "./dist/entries/httpKernel.js",
|
|
46
|
+
"default": "./dist/entries/httpKernel.js"
|
|
47
|
+
},
|
|
48
|
+
"./providers": {
|
|
49
|
+
"types": "./dist/entries/providers.d.ts",
|
|
50
|
+
"import": "./dist/entries/providers.js",
|
|
51
|
+
"default": "./dist/entries/providers.js"
|
|
52
|
+
},
|
|
53
|
+
"./providers/view": {
|
|
54
|
+
"types": "./dist/entries/providers/view.d.ts",
|
|
55
|
+
"import": "./dist/entries/providers/view.js",
|
|
56
|
+
"default": "./dist/entries/providers/view.js"
|
|
17
57
|
}
|
|
18
58
|
},
|
|
19
59
|
"main": "./dist/index.js",
|
|
@@ -26,13 +66,14 @@
|
|
|
26
66
|
"build": "bun run build:bundle && bun run build:types",
|
|
27
67
|
"build:bundle": "bun build index.ts --outdir dist --target bun --external bun --external eta --external @getstrata/core",
|
|
28
68
|
"build:types": "tsc -p tsconfig.types.json",
|
|
29
|
-
"prepublishOnly": "bun run build"
|
|
69
|
+
"prepublishOnly": "bun run build",
|
|
70
|
+
"build:subpaths": "bun build index.ts entries/applicationRegistry.ts entries/config.ts entries/context.ts entries/contracts.ts entries/createWebRoutes.ts entries/httpKernel.ts entries/providers.ts entries/providers/view.ts --outdir dist --root . --target bun --external bun --external eta --external @getstrata/core"
|
|
30
71
|
},
|
|
31
72
|
"publishConfig": {
|
|
32
73
|
"access": "public"
|
|
33
74
|
},
|
|
34
75
|
"peerDependencies": {
|
|
35
|
-
"@getstrata/core": "^0.
|
|
76
|
+
"@getstrata/core": "^0.5.0",
|
|
36
77
|
"typescript": "^5.9.0"
|
|
37
78
|
}
|
|
38
79
|
}
|