@getstrata/bootstrap 0.1.1 → 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.
Files changed (95) hide show
  1. package/dist/bootstrap/context.d.ts +6 -0
  2. package/dist/bootstrap/createWebRoutes.d.ts +4 -0
  3. package/dist/bootstrap/discoverListeners.d.ts +5 -0
  4. package/dist/bootstrap/discoverModules.d.ts +4 -0
  5. package/dist/bootstrap/env.d.ts +9 -0
  6. package/dist/bootstrap/httpKernel.d.ts +2 -0
  7. package/dist/bootstrap/listeners/invalidateCacheOnModelWrite.d.ts +3 -0
  8. package/dist/bootstrap/modules.d.ts +1 -0
  9. package/dist/bootstrap/providers/auth.d.ts +3 -0
  10. package/dist/bootstrap/providers/cache.d.ts +3 -0
  11. package/dist/bootstrap/providers/config.d.ts +5 -0
  12. package/dist/bootstrap/providers/events.d.ts +5 -0
  13. package/dist/bootstrap/providers/index.d.ts +3 -0
  14. package/dist/bootstrap/providers/listeners.d.ts +3 -0
  15. package/dist/bootstrap/providers/policy.d.ts +3 -0
  16. package/dist/bootstrap/providers/queue.d.ts +3 -0
  17. package/dist/bootstrap/providers/view.d.ts +5 -0
  18. package/dist/bootstrap/public-api.d.ts +7 -1
  19. package/dist/bootstrap/routeRegistry.d.ts +14 -0
  20. package/dist/bootstrap/schedule.d.ts +1 -0
  21. package/dist/bootstrap/secretsGuard.d.ts +2 -0
  22. package/dist/cli/commands/scheduleRun.d.ts +3 -0
  23. package/dist/config/auth.d.ts +7 -0
  24. package/dist/config/queue.d.ts +8 -0
  25. package/dist/config/rateLimit.d.ts +2 -1
  26. package/dist/core/audit/exportAuditLogs.d.ts +8 -0
  27. package/dist/core/audit/siemFormatter.d.ts +30 -0
  28. package/dist/core/auth/sessionCookie.d.ts +6 -0
  29. package/dist/core/auth/sessionGuard.d.ts +9 -0
  30. package/dist/core/cache/createCacheStore.d.ts +11 -0
  31. package/dist/core/cache/modelCacheTags.d.ts +3 -0
  32. package/dist/core/cache/redisCacheStore.d.ts +23 -0
  33. package/dist/core/cache/repository.d.ts +17 -0
  34. package/dist/core/cache/simpleCache.d.ts +23 -0
  35. package/dist/core/cache/simpleCacheStore.d.ts +16 -0
  36. package/dist/core/cache/store.d.ts +12 -0
  37. package/dist/core/cache/taggedCache.d.ts +9 -0
  38. package/dist/core/config/envSchema.d.ts +12 -0
  39. package/dist/core/database/baseRepository.d.ts +16 -4
  40. package/dist/core/database/index.d.ts +10 -4
  41. package/dist/core/database/migrations/types.d.ts +15 -0
  42. package/dist/core/database/model.d.ts +57 -0
  43. package/dist/core/database/query.d.ts +25 -14
  44. package/dist/core/database/relationships.d.ts +32 -2
  45. package/dist/core/database/repositoryQuery.d.ts +16 -1
  46. package/dist/core/database/schema/blueprint.d.ts +47 -0
  47. package/dist/core/database/schema/columnDefinition.d.ts +36 -0
  48. package/dist/core/database/schema/driver.d.ts +8 -0
  49. package/dist/core/database/schema/errors.d.ts +4 -0
  50. package/dist/core/database/schema/grammars/compileStatements.d.ts +8 -0
  51. package/dist/core/database/schema/grammars/createGrammar.d.ts +4 -0
  52. package/dist/core/database/schema/grammars/grammar.d.ts +10 -0
  53. package/dist/core/database/schema/grammars/index.d.ts +7 -0
  54. package/dist/core/database/schema/grammars/mysqlGrammar.d.ts +2 -0
  55. package/dist/core/database/schema/grammars/postgresGrammar.d.ts +2 -0
  56. package/dist/core/database/schema/grammars/sqliteGrammar.d.ts +2 -0
  57. package/dist/core/database/schema/index.d.ts +12 -0
  58. package/dist/core/database/schema/schema.d.ts +21 -0
  59. package/dist/core/database/types.d.ts +39 -2
  60. package/dist/core/database/whereBuilder.d.ts +17 -0
  61. package/dist/core/jobs/dispatchWebhookJob.d.ts +14 -0
  62. package/dist/core/jobs/invalidateCacheTagsJob.d.ts +12 -0
  63. package/dist/core/pagination/index.d.ts +11 -1
  64. package/dist/core/queue/createAppQueue.d.ts +6 -0
  65. package/dist/core/queue/failedJobRepository.d.ts +6 -0
  66. package/dist/core/queue/failedJobService.d.ts +15 -0
  67. package/dist/core/queue/failedJobTable.d.ts +3 -0
  68. package/dist/core/queue/jobRegistry.d.ts +14 -0
  69. package/dist/core/queue/jobRunner.d.ts +9 -0
  70. package/dist/core/queue/publicQueue.d.ts +15 -0
  71. package/dist/core/queue/redisQueue.d.ts +29 -0
  72. package/dist/core/queue/resilientQueue.d.ts +9 -0
  73. package/dist/core/queue/types.d.ts +8 -0
  74. package/dist/core/scheduler/schedule.d.ts +15 -0
  75. package/dist/core/security/safeFetch.d.ts +8 -0
  76. package/dist/core/security/safeUrl.d.ts +5 -0
  77. package/dist/core/view/etaViewEngine.d.ts +15 -0
  78. package/dist/core/view/htmlResponse.d.ts +6 -0
  79. package/dist/core/view/index.d.ts +5 -0
  80. package/dist/core/view/viewEngine.d.ts +6 -0
  81. package/dist/core/view/webLayoutData.d.ts +17 -0
  82. package/dist/domain/scim.d.ts +9 -0
  83. package/dist/index.js +4175 -458
  84. package/dist/modules/user/apiTokenRepository.d.ts +1 -1
  85. package/dist/modules/user/apiTokenTable.d.ts +1 -1
  86. package/dist/modules/user/authService.d.ts +1 -1
  87. package/dist/modules/user/notificationRepository.d.ts +1 -1
  88. package/dist/modules/user/notificationService.d.ts +1 -1
  89. package/dist/modules/user/notificationTable.d.ts +1 -1
  90. package/dist/modules/user/oauthIdentityRepository.d.ts +2 -2
  91. package/dist/modules/user/provider.d.ts +1 -1
  92. package/dist/modules/user/repository.d.ts +1 -1
  93. package/dist/modules/user/table.d.ts +1 -1
  94. package/dist/modules/user/tokenService.d.ts +1 -1
  95. package/package.json +44 -3
@@ -1,4 +1,4 @@
1
- import { BaseRepository } from "../../core/database";
1
+ import { BaseRepository } from "@getstrata/core/database";
2
2
  import type { ApiTokenRecord } from "./types";
3
3
  declare class ApiTokenRepository extends BaseRepository<ApiTokenRecord, "id"> {
4
4
  constructor();
@@ -1,3 +1,3 @@
1
1
  import type { ApiTokenRecord } from "./types";
2
- declare const apiTokenTable: import("../../core/database").TableDefinition<ApiTokenRecord, "id">;
2
+ declare const apiTokenTable: import("@getstrata/core/database").TableDefinition<ApiTokenRecord, "id">;
3
3
  export { apiTokenTable };
@@ -1,4 +1,4 @@
1
- import type { OAuthProvider } from "../../core/auth/oauth/types";
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 "../../core/database";
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 "../../core/pagination";
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("../../core/database").TableDefinition<NotificationRecord, "id">;
2
+ declare const notificationTable: import("@getstrata/core/database").TableDefinition<NotificationRecord, "id">;
3
3
  export { notificationTable };
@@ -1,6 +1,6 @@
1
- import { BaseRepository } from "../../core/database";
1
+ import { BaseRepository } from "@getstrata/core/database";
2
2
  import type { OAuthIdentityRecord } from "./types";
3
- declare const oauthIdentityTable: import("../../core/database").TableDefinition<OAuthIdentityRecord, "id">;
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 "../../bootstrap/contracts";
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 { BaseRepository } from "../../core/database";
1
+ import { BaseRepository } from "@getstrata/core/database";
2
2
  import type { UserRecord } from "./types";
3
3
  declare class UserRepository extends BaseRepository<UserRecord, "id"> {
4
4
  constructor();
@@ -1,3 +1,3 @@
1
1
  import type { UserRecord } from "./types";
2
- declare const userTable: import("../../core/database").TableDefinition<UserRecord, "id">;
2
+ declare const userTable: import("@getstrata/core/database").TableDefinition<UserRecord, "id">;
3
3
  export { userTable };
@@ -1,4 +1,4 @@
1
- import type { AuthUser } from "../../core/auth/authContext";
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.1.1",
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.4.0",
76
+ "@getstrata/core": "^0.5.0",
36
77
  "typescript": "^5.9.0"
37
78
  }
38
79
  }