@cosmicdrift/kumiko-bundled-features 0.293.0 → 0.294.1

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 (122) hide show
  1. package/package.json +9 -9
  2. package/src/__tests__/access-invalidation-consumer.integration.test.ts +1 -2
  3. package/src/__tests__/access-invalidation-stream.integration.test.ts +1 -2
  4. package/src/__tests__/account-security-composition.integration.test.ts +0 -2
  5. package/src/__tests__/boot-seed-contract.integration.test.ts +1 -2
  6. package/src/__tests__/env-schemas.test.ts +1 -0
  7. package/src/__tests__/es-ops-e2e.integration.test.ts +0 -2
  8. package/src/agent-tools/__tests__/tool-dispatch.integration.test.ts +0 -2
  9. package/src/auth-email-password/__tests__/identity-v3-login.integration.test.ts +0 -2
  10. package/src/auth-email-password/__tests__/seed-admin-guarded.integration.test.ts +1 -2
  11. package/src/auth-email-password/__tests__/seed-admin.integration.test.ts +1 -2
  12. package/src/billing-foundation/__tests__/billing-foundation.integration.test.ts +1 -6
  13. package/src/billing-foundation/__tests__/subscription-tier-sync.integration.test.ts +0 -2
  14. package/src/cap-counter/__tests__/cap-counter.integration.test.ts +1 -2
  15. package/src/cap-counter/__tests__/stock-cap-guard.integration.test.ts +1 -3
  16. package/src/cap-counter/__tests__/with-cap-enforcement.integration.test.ts +1 -2
  17. package/src/cap-overview/__tests__/cap-overview-security.integration.test.ts +0 -2
  18. package/src/cap-overview/__tests__/caps-usage-escape-hatch.integration.test.ts +0 -2
  19. package/src/compliance-profiles/__tests__/compliance-profiles.integration.test.ts +0 -3
  20. package/src/compliance-profiles/__tests__/seeding.integration.test.ts +1 -2
  21. package/src/compliance-profiles-ops/__tests__/ops.integration.test.ts +0 -2
  22. package/src/config/__tests__/backing-secrets.integration.test.ts +0 -3
  23. package/src/crypto-shredding/__tests__/forget-subject-record.integration.test.ts +1 -4
  24. package/src/crypto-shredding/__tests__/forget-subject.integration.test.ts +1 -6
  25. package/src/custom-fields/__tests__/audit-integration.integration.test.ts +0 -2
  26. package/src/custom-fields/__tests__/cross-tenant-field-delete.integration.test.ts +0 -2
  27. package/src/custom-fields/__tests__/cross-tenant-set-write.integration.test.ts +0 -2
  28. package/src/custom-fields/__tests__/custom-fields.integration.test.ts +0 -2
  29. package/src/custom-fields/__tests__/field-access.integration.test.ts +0 -2
  30. package/src/custom-fields/__tests__/field-definition-role-config.integration.test.ts +0 -2
  31. package/src/custom-fields/__tests__/quota.integration.test.ts +0 -2
  32. package/src/custom-fields/__tests__/retention.integration.test.ts +0 -2
  33. package/src/custom-fields/__tests__/user-data-rights.integration.test.ts +0 -2
  34. package/src/file-foundation/__tests__/file-foundation.integration.test.ts +0 -2
  35. package/src/files-tenant-data/__tests__/hooks.integration.test.ts +1 -6
  36. package/src/files-tenant-data/__tests__/sweep-orphaned-derivatives.job.integration.test.ts +0 -2
  37. package/src/folders/__tests__/folders-parent-visibility.integration.test.ts +0 -2
  38. package/src/folders/__tests__/folders-read-gate.integration.test.ts +0 -2
  39. package/src/folders/__tests__/folders.integration.test.ts +0 -3
  40. package/src/folders-user-data/__tests__/hooks.integration.test.ts +0 -2
  41. package/src/form-draft/__tests__/cleanup.integration.test.ts +0 -2
  42. package/src/form-draft/__tests__/discard-file-refs.integration.test.ts +0 -2
  43. package/src/form-draft/__tests__/feature-optional-config.integration.test.ts +0 -2
  44. package/src/form-draft/__tests__/form-draft.integration.test.ts +0 -2
  45. package/src/form-draft/__tests__/limits.integration.test.ts +0 -2
  46. package/src/form-draft-user-data/__tests__/hooks-delete-failure.integration.test.ts +0 -2
  47. package/src/form-draft-user-data/__tests__/hooks.integration.test.ts +0 -2
  48. package/src/inbound-mail-foundation/__tests__/connect-routes.integration.test.ts +0 -2
  49. package/src/inbound-mail-foundation/__tests__/inbound-mail-foundation.integration.test.ts +0 -2
  50. package/src/inbound-mail-foundation/__tests__/retention.integration.test.ts +1 -2
  51. package/src/inbound-mail-foundation/__tests__/watch-supervisor.integration.test.ts +0 -2
  52. package/src/inbound-provider-imap/__tests__/imap-foundation.integration.test.ts +0 -2
  53. package/src/jobs/__tests__/job-system-user.integration.test.ts +1 -5
  54. package/src/jobs/__tests__/jobs-events.integration.test.ts +1 -2
  55. package/src/jobs/__tests__/jobs-feature.integration.test.ts +0 -2
  56. package/src/jobs/__tests__/jobs-pii-kms.integration.test.ts +1 -2
  57. package/src/jobs/__tests__/projection-rebuild-job.integration.test.ts +0 -2
  58. package/src/jobs/__tests__/reindex-entity-job.integration.test.ts +0 -2
  59. package/src/jobs/__tests__/tenant-job-failures.integration.test.ts +0 -2
  60. package/src/ledger/__tests__/ledger-reports-tenant-isolation.integration.test.ts +0 -2
  61. package/src/ledger/__tests__/ledger.integration.test.ts +0 -2
  62. package/src/legal-pages/__tests__/legal-pages.integration.test.ts +0 -5
  63. package/src/mail-foundation/__tests__/mail-foundation.integration.test.ts +0 -2
  64. package/src/managed-pages/__tests__/managed-pages.integration.test.ts +0 -4
  65. package/src/notes-history/__tests__/notes-history-ownership.integration.test.ts +0 -4
  66. package/src/notes-history/__tests__/notes-history-parent-visibility.integration.test.ts +0 -3
  67. package/src/notes-history/__tests__/notes-history.integration.test.ts +0 -2
  68. package/src/notes-history/__tests__/notes-read-gate.integration.test.ts +0 -3
  69. package/src/notes-history-user-data/__tests__/hooks.integration.test.ts +0 -2
  70. package/src/notes-history-user-data/__tests__/mention-forget.integration.test.ts +0 -2
  71. package/src/readiness/__tests__/readiness.integration.test.ts +1 -2
  72. package/src/secrets/__tests__/access-options.integration.test.ts +0 -2
  73. package/src/secrets/__tests__/secrets-events.integration.test.ts +1 -2
  74. package/src/secrets/__tests__/secrets.integration.test.ts +0 -2
  75. package/src/secrets/feature.ts +3 -1
  76. package/src/seo/__tests__/seo.integration.test.ts +0 -3
  77. package/src/sessions/__tests__/rebuild-survival.integration.test.ts +0 -2
  78. package/src/sessions/__tests__/sessions.integration.test.ts +1 -2
  79. package/src/subscription-mollie/__tests__/mollie-foundation.integration.test.ts +1 -2
  80. package/src/subscription-stripe/__tests__/stripe-foundation.integration.test.ts +1 -3
  81. package/src/tags/__tests__/tags-parent-visibility.integration.test.ts +0 -2
  82. package/src/tags/__tests__/tags-read-gate.integration.test.ts +0 -3
  83. package/src/tags/__tests__/tags.integration.test.ts +0 -4
  84. package/src/template-resolver/__tests__/collection-kinds.integration.test.ts +0 -2
  85. package/src/template-resolver/__tests__/collection-ownership.integration.test.ts +0 -2
  86. package/src/template-resolver/__tests__/handlers.integration.test.ts +0 -2
  87. package/src/template-resolver/__tests__/seed-legal-content.integration.test.ts +1 -2
  88. package/src/template-resolver/__tests__/text-blocks.integration.test.ts +1 -2
  89. package/src/tenant/__tests__/multi-tenant.integration.test.ts +0 -2
  90. package/src/tenant/__tests__/seed-testing.integration.test.ts +1 -2
  91. package/src/tenant/__tests__/tenant-security.integration.test.ts +1 -2
  92. package/src/tenant/__tests__/tenant.integration.test.ts +0 -2
  93. package/src/tenant/__tests__/update-cross-tenant.integration.test.ts +0 -2
  94. package/src/tenant-handover/__tests__/claim.integration.test.ts +1 -2
  95. package/src/tenant-lifecycle/__tests__/tenant-lifecycle.integration.test.ts +1 -10
  96. package/src/tenant-settings/__tests__/tenant-settings.integration.test.ts +0 -2
  97. package/src/tier-engine/__tests__/tier-engine.integration.test.ts +0 -2
  98. package/src/user/__tests__/email-unique-blind-index.integration.test.ts +0 -2
  99. package/src/user/__tests__/email-unique-plaintext-soft-delete.integration.test.ts +0 -2
  100. package/src/user/__tests__/seed-testing.integration.test.ts +1 -2
  101. package/src/user/__tests__/stream-tenant-backfill.integration.test.ts +1 -2
  102. package/src/user-data-rights/__tests__/anonymous-deletion-kms.integration.test.ts +1 -2
  103. package/src/user-data-rights/__tests__/anonymous-deletion.integration.test.ts +1 -3
  104. package/src/user-data-rights/__tests__/audit-log.integration.test.ts +1 -2
  105. package/src/user-data-rights/__tests__/download-by-token-resolver-trust.integration.test.ts +0 -2
  106. package/src/user-data-rights/__tests__/download.integration.test.ts +1 -2
  107. package/src/user-data-rights/__tests__/escape-hatch-audit.integration.test.ts +0 -2
  108. package/src/user-data-rights/__tests__/escape-hatch-declaration.integration.test.ts +0 -2
  109. package/src/user-data-rights/__tests__/export-job-list-cross-tenant.integration.test.ts +1 -2
  110. package/src/user-data-rights/__tests__/file-storage-unification.integration.test.ts +0 -2
  111. package/src/user-data-rights/__tests__/forget-cleanup-hook-ordering.integration.test.ts +0 -2
  112. package/src/user-data-rights/__tests__/forget-cleanup-search-purge-ordering.integration.test.ts +0 -2
  113. package/src/user-data-rights/__tests__/forget-hook-registry.integration.test.ts +0 -2
  114. package/src/user-data-rights/__tests__/read-users-rebuild-survives-lifecycle.integration.test.ts +1 -6
  115. package/src/user-data-rights/__tests__/request-cancel-deletion.integration.test.ts +1 -2
  116. package/src/user-data-rights/__tests__/request-deletion-callback.integration.test.ts +1 -2
  117. package/src/user-data-rights/__tests__/request-export.integration.test.ts +1 -2
  118. package/src/user-data-rights/__tests__/restriction-flow.integration.test.ts +1 -2
  119. package/src/user-data-rights/__tests__/run-export-jobs-cron-context.integration.test.ts +0 -2
  120. package/src/user-data-rights/__tests__/run-export-jobs.integration.test.ts +1 -3
  121. package/src/user-data-rights/__tests__/tenant-model-erasure.integration.test.ts +0 -2
  122. package/src/user-profile/__tests__/change-email.integration.test.ts +1 -2
@@ -12,7 +12,7 @@ import {
12
12
  InMemoryKmsAdapter,
13
13
  isPiiCiphertext,
14
14
  } from "@cosmicdrift/kumiko-framework/crypto";
15
- import { createEventsTable, eventsTable } from "@cosmicdrift/kumiko-framework/event-store";
15
+ import { eventsTable } from "@cosmicdrift/kumiko-framework/event-store";
16
16
  import {
17
17
  setupTestStack,
18
18
  type TestStack,
@@ -73,7 +73,6 @@ beforeAll(async () => {
73
73
  });
74
74
  await unsafeCreateEntityTable(stack.db, userEntity);
75
75
  await unsafeCreateEntityTable(stack.db, tenantComplianceProfileEntity);
76
- await createEventsTable(stack.db);
77
76
  });
78
77
 
79
78
  afterAll(async () => {
@@ -8,7 +8,7 @@
8
8
  import { afterAll, beforeAll, beforeEach, describe, expect, test } from "bun:test";
9
9
  import { authFoundationFeature } from "@cosmicdrift/kumiko-bundled-features/auth-foundation";
10
10
  import { selectMany } from "@cosmicdrift/kumiko-framework/bun-db";
11
- import { createEventsTable, eventsTable } from "@cosmicdrift/kumiko-framework/event-store";
11
+ import { eventsTable } from "@cosmicdrift/kumiko-framework/event-store";
12
12
  import {
13
13
  createTestUser,
14
14
  setupTestStack,
@@ -66,7 +66,6 @@ beforeAll(async () => {
66
66
  });
67
67
  await unsafeCreateEntityTable(stack.db, userEntity);
68
68
  await unsafeCreateEntityTable(stack.db, tenantComplianceProfileEntity);
69
- await createEventsTable(stack.db);
70
69
  });
71
70
 
72
71
  afterAll(async () => {
@@ -380,7 +379,6 @@ describe("anonymous deletion flow — not configured (kein Secret)", () => {
380
379
  });
381
380
  await unsafeCreateEntityTable(bareStack.db, userEntity);
382
381
  await unsafeCreateEntityTable(bareStack.db, tenantComplianceProfileEntity);
383
- await createEventsTable(bareStack.db);
384
382
  await seedRow(bareStack.db, userTable, {
385
383
  id: aliceUser.id,
386
384
  tenantId: tenantA,
@@ -3,7 +3,7 @@
3
3
  import { afterAll, beforeAll, beforeEach, describe, expect, test } from "bun:test";
4
4
  import { authFoundationFeature } from "@cosmicdrift/kumiko-bundled-features/auth-foundation";
5
5
  import { asRawClient } from "@cosmicdrift/kumiko-framework/bun-db";
6
- import { createEventsTable, eventsTable } from "@cosmicdrift/kumiko-framework/event-store";
6
+ import { eventsTable } from "@cosmicdrift/kumiko-framework/event-store";
7
7
  import {
8
8
  createTestUser,
9
9
  setupTestStack,
@@ -50,7 +50,6 @@ beforeAll(async () => {
50
50
  await unsafeCreateEntityTable(stack.db, userEntity);
51
51
  await unsafeCreateEntityTable(stack.db, tenantComplianceProfileEntity);
52
52
  await unsafeCreateEntityTable(stack.db, downloadAttemptEntity);
53
- await createEventsTable(stack.db);
54
53
  });
55
54
 
56
55
  afterAll(async () => {
@@ -14,7 +14,6 @@ import { afterAll, beforeAll, describe, expect, test } from "bun:test";
14
14
  import { randomBytes } from "node:crypto";
15
15
  import { authFoundationFeature } from "@cosmicdrift/kumiko-bundled-features/auth-foundation";
16
16
  import { asRawClient } from "@cosmicdrift/kumiko-framework/bun-db";
17
- import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
18
17
  import {
19
18
  createInMemoryFileProvider,
20
19
  type FileStorageProvider,
@@ -99,7 +98,6 @@ beforeAll(async () => {
99
98
  await unsafeCreateEntityTable(stack.db, exportDownloadTokenEntity);
100
99
  await unsafeCreateEntityTable(stack.db, tenantComplianceProfileEntity);
101
100
  await unsafePushTables(stack.db, { configValuesTable });
102
- await createEventsTable(stack.db);
103
101
  await asRawClient(stack.db).unsafe(`
104
102
  CREATE TABLE IF NOT EXISTS read_tenant_memberships (
105
103
  id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
@@ -12,7 +12,7 @@ import { randomBytes } from "node:crypto";
12
12
  import { authFoundationFeature } from "@cosmicdrift/kumiko-bundled-features/auth-foundation";
13
13
  import { asRawClient, selectMany } from "@cosmicdrift/kumiko-framework/bun-db";
14
14
  import { defineFeature } from "@cosmicdrift/kumiko-framework/engine";
15
- import { createEventsTable, eventsTable } from "@cosmicdrift/kumiko-framework/event-store";
15
+ import { eventsTable } from "@cosmicdrift/kumiko-framework/event-store";
16
16
  import {
17
17
  createInMemoryFileProvider,
18
18
  type FileStorageProvider,
@@ -136,7 +136,6 @@ beforeAll(async () => {
136
136
  await unsafeCreateEntityTable(stack.db, exportDownloadTokenEntity);
137
137
  await unsafeCreateEntityTable(stack.db, tenantComplianceProfileEntity);
138
138
  await unsafePushTables(stack.db, { configValuesTable });
139
- await createEventsTable(stack.db);
140
139
  await asRawClient(stack.db).unsafe(`
141
140
  CREATE TABLE IF NOT EXISTS read_tenant_memberships (
142
141
  id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
@@ -19,7 +19,6 @@ import {
19
19
  type JobContext,
20
20
  type UserDataDeleteHook,
21
21
  } from "@cosmicdrift/kumiko-framework/engine";
22
- import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
23
22
  import {
24
23
  setupTestStack,
25
24
  type TestStack,
@@ -74,7 +73,6 @@ describe("escape-hatch audit :: real run-forget-cleanup job forwards _escapeHatc
74
73
  });
75
74
  await unsafeCreateEntityTable(stack.db, userEntity);
76
75
  await unsafeCreateEntityTable(stack.db, tenantRetentionOverrideEntity);
77
- await createEventsTable(stack.db);
78
76
  await asRawClient(stack.db).unsafe(READ_TENANT_MEMBERSHIPS_DDL);
79
77
  await asRawClient(stack.db).unsafe(`
80
78
  CREATE TABLE IF NOT EXISTS test_audited_entity (
@@ -23,7 +23,6 @@ import {
23
23
  EXT_USER_DATA,
24
24
  type UserDataDeleteHook,
25
25
  } from "@cosmicdrift/kumiko-framework/engine";
26
- import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
27
26
  import {
28
27
  setupTestStack,
29
28
  type TestStack,
@@ -63,7 +62,6 @@ function baseFeatures(): NonNullable<Parameters<typeof setupTestStack>[0]["featu
63
62
  async function bootBaseTables(stack: TestStack): Promise<void> {
64
63
  await unsafeCreateEntityTable(stack.db, userEntity);
65
64
  await unsafeCreateEntityTable(stack.db, tenantRetentionOverrideEntity);
66
- await createEventsTable(stack.db);
67
65
  await asRawClient(stack.db).unsafe(READ_TENANT_MEMBERSHIPS_DDL);
68
66
  }
69
67
 
@@ -7,7 +7,7 @@
7
7
 
8
8
  import { afterAll, beforeAll, beforeEach, describe, expect, test } from "bun:test";
9
9
  import { authFoundationFeature } from "@cosmicdrift/kumiko-bundled-features/auth-foundation";
10
- import { createEventsTable, eventsTable } from "@cosmicdrift/kumiko-framework/event-store";
10
+ import { eventsTable } from "@cosmicdrift/kumiko-framework/event-store";
11
11
  import {
12
12
  createTestUser,
13
13
  setupTestStack,
@@ -47,7 +47,6 @@ beforeAll(async () => {
47
47
  ],
48
48
  });
49
49
  await unsafeCreateEntityTable(stack.db, exportJobEntity);
50
- await createEventsTable(stack.db);
51
50
  });
52
51
 
53
52
  afterAll(async () => {
@@ -15,7 +15,6 @@ import { authFoundationFeature } from "@cosmicdrift/kumiko-bundled-features/auth
15
15
  import { asRawClient } from "@cosmicdrift/kumiko-framework/bun-db";
16
16
  import type { DbConnection } from "@cosmicdrift/kumiko-framework/db";
17
17
  import { type SessionUser, SYSTEM_USER_ID } from "@cosmicdrift/kumiko-framework/engine";
18
- import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
19
18
  import {
20
19
  createInMemoryFileProvider,
21
20
  type FileStorageProvider,
@@ -122,7 +121,6 @@ beforeAll(async () => {
122
121
  await unsafeCreateEntityTable(db, userSessionEntity);
123
122
  await unsafeCreateEntityTable(db, tenantRetentionOverrideEntity);
124
123
  await unsafePushTables(db, { fileRefsTable, configValuesTable });
125
- await createEventsTable(db);
126
124
  await asRawClient(db).unsafe(READ_TENANT_MEMBERSHIPS_DDL);
127
125
  });
128
126
 
@@ -24,7 +24,6 @@ import {
24
24
  EXT_USER_DATA_ORDER,
25
25
  type UserDataDeleteHook,
26
26
  } from "@cosmicdrift/kumiko-framework/engine";
27
- import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
28
27
  import {
29
28
  resetEventStore,
30
29
  setupTestStack,
@@ -174,7 +173,6 @@ beforeAll(async () => {
174
173
  await unsafeCreateEntityTable(stack.db, tenantRetentionOverrideEntity);
175
174
  await unsafeCreateEntityTable(stack.db, cfFirstEntity);
176
175
  await unsafeCreateEntityTable(stack.db, hostFirstEntity);
177
- await createEventsTable(stack.db);
178
176
  await asRawClient(stack.db).unsafe(READ_TENANT_MEMBERSHIPS_DDL);
179
177
  });
180
178
 
@@ -18,7 +18,6 @@ import {
18
18
  SYSTEM_TENANT_ID,
19
19
  type UserDataDeleteHook,
20
20
  } from "@cosmicdrift/kumiko-framework/engine";
21
- import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
22
21
  import {
23
22
  setupTestStack,
24
23
  type TestStack,
@@ -107,7 +106,6 @@ beforeAll(async () => {
107
106
  updated_at TIMESTAMPTZ NOT NULL DEFAULT now()
108
107
  )
109
108
  `);
110
- await createEventsTable(stack.db);
111
109
  });
112
110
 
113
111
  afterAll(async () => {
@@ -18,7 +18,6 @@ import {
18
18
  type Registry,
19
19
  type UserDataDeleteHook,
20
20
  } from "@cosmicdrift/kumiko-framework/engine";
21
- import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
22
21
  import {
23
22
  setupTestStack,
24
23
  type TestStack,
@@ -80,7 +79,6 @@ beforeAll(async () => {
80
79
  await unsafeCreateEntityTable(stack.db, userEntity);
81
80
  await unsafeCreateEntityTable(stack.db, tenantRetentionOverrideEntity);
82
81
  await unsafeCreateEntityTable(stack.db, probeEntity);
83
- await createEventsTable(stack.db);
84
82
  await asRawClient(stack.db).unsafe(READ_TENANT_MEMBERSHIPS_DDL);
85
83
  });
86
84
 
@@ -21,11 +21,7 @@ import {
21
21
  SYSTEM_TENANT_ID,
22
22
  type TenantId,
23
23
  } from "@cosmicdrift/kumiko-framework/engine";
24
- import {
25
- archiveStream,
26
- createEventsTable,
27
- eventsTable,
28
- } from "@cosmicdrift/kumiko-framework/event-store";
24
+ import { archiveStream, eventsTable } from "@cosmicdrift/kumiko-framework/event-store";
29
25
  import {
30
26
  createProjectionStateTable,
31
27
  rebuildProjection,
@@ -120,7 +116,6 @@ beforeAll(async () => {
120
116
  await unsafeCreateEntityTable(stack.db, tenantEntity);
121
117
  await unsafeCreateEntityTable(stack.db, userSessionEntity);
122
118
  await unsafeCreateEntityTable(stack.db, tenantComplianceProfileEntity);
123
- await createEventsTable(stack.db);
124
119
  await createProjectionStateTable(stack.db);
125
120
  await unsafePushTables(stack.db, { configValuesTable, tenantMembershipsTable });
126
121
  });
@@ -12,7 +12,7 @@
12
12
  import { afterAll, beforeAll, beforeEach, describe, expect, test } from "bun:test";
13
13
  import { authFoundationFeature } from "@cosmicdrift/kumiko-bundled-features/auth-foundation";
14
14
  import { selectMany } from "@cosmicdrift/kumiko-framework/bun-db";
15
- import { createEventsTable, eventsTable } from "@cosmicdrift/kumiko-framework/event-store";
15
+ import { eventsTable } from "@cosmicdrift/kumiko-framework/event-store";
16
16
  import {
17
17
  createTestUser,
18
18
  setupTestStack,
@@ -67,7 +67,6 @@ beforeAll(async () => {
67
67
  stack = await setupTestStack({ features });
68
68
  await unsafeCreateEntityTable(stack.db, userEntity);
69
69
  await unsafeCreateEntityTable(stack.db, tenantComplianceProfileEntity);
70
- await createEventsTable(stack.db);
71
70
  });
72
71
 
73
72
  afterAll(async () => {
@@ -10,7 +10,7 @@
10
10
  import { afterAll, beforeAll, beforeEach, describe, expect, test } from "bun:test";
11
11
  import { authFoundationFeature } from "@cosmicdrift/kumiko-bundled-features/auth-foundation";
12
12
  import { selectMany } from "@cosmicdrift/kumiko-framework/bun-db";
13
- import { createEventsTable, eventsTable } from "@cosmicdrift/kumiko-framework/event-store";
13
+ import { eventsTable } from "@cosmicdrift/kumiko-framework/event-store";
14
14
  import {
15
15
  createTestUser,
16
16
  setupTestStack,
@@ -73,7 +73,6 @@ beforeAll(async () => {
73
73
  await unsafeCreateEntityTable(stack.db, userEntity);
74
74
  await unsafeCreateEntityTable(stack.db, userSessionEntity);
75
75
  await unsafeCreateEntityTable(stack.db, tenantComplianceProfileEntity);
76
- await createEventsTable(stack.db);
77
76
  });
78
77
 
79
78
  afterAll(async () => {
@@ -20,7 +20,7 @@
20
20
  import { afterAll, beforeAll, beforeEach, describe, expect, test } from "bun:test";
21
21
  import { authFoundationFeature } from "@cosmicdrift/kumiko-bundled-features/auth-foundation";
22
22
  import { asRawClient, selectMany } from "@cosmicdrift/kumiko-framework/bun-db";
23
- import { createEventsTable, eventsTable } from "@cosmicdrift/kumiko-framework/event-store";
23
+ import { eventsTable } from "@cosmicdrift/kumiko-framework/event-store";
24
24
  import {
25
25
  createTestUser,
26
26
  setupTestStack,
@@ -60,7 +60,6 @@ beforeAll(async () => {
60
60
  ],
61
61
  });
62
62
  await unsafeCreateEntityTable(stack.db, exportJobEntity);
63
- await createEventsTable(stack.db);
64
63
  });
65
64
 
66
65
  afterAll(async () => {
@@ -15,7 +15,7 @@ import { randomBytes } from "node:crypto";
15
15
  import { authFoundationFeature } from "@cosmicdrift/kumiko-bundled-features/auth-foundation";
16
16
  import { selectMany } from "@cosmicdrift/kumiko-framework/bun-db";
17
17
  import type { TenantId } from "@cosmicdrift/kumiko-framework/engine";
18
- import { createEventsTable, eventsTable } from "@cosmicdrift/kumiko-framework/event-store";
18
+ import { eventsTable } from "@cosmicdrift/kumiko-framework/event-store";
19
19
  import {
20
20
  setupTestStack,
21
21
  type TestStack,
@@ -99,7 +99,6 @@ beforeAll(async () => {
99
99
  await unsafeCreateEntityTable(stack.db, tenantEntity);
100
100
  await unsafeCreateEntityTable(stack.db, userSessionEntity);
101
101
  await unsafeCreateEntityTable(stack.db, tenantComplianceProfileEntity);
102
- await createEventsTable(stack.db);
103
102
  await unsafePushTables(stack.db, { configValuesTable, tenantMembershipsTable });
104
103
  });
105
104
 
@@ -18,7 +18,6 @@ import {
18
18
  type JobContext,
19
19
  SYSTEM_USER_ID,
20
20
  } from "@cosmicdrift/kumiko-framework/engine";
21
- import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
22
21
  import { registerMailTranslations } from "@cosmicdrift/kumiko-framework/i18n";
23
22
  import {
24
23
  setupTestStack,
@@ -80,7 +79,6 @@ beforeAll(async () => {
80
79
  createUserDataRightsFeature({ appExportDownloadUrl: EXPORT_DOWNLOAD_URL }),
81
80
  ],
82
81
  });
83
- await createEventsTable(stack.db);
84
82
  await unsafePushTables(stack.db, { configValuesTable });
85
83
  await unsafeCreateEntityTable(stack.db, exportJobEntity);
86
84
  await unsafeCreateEntityTable(stack.db, exportDownloadTokenEntity);
@@ -19,7 +19,7 @@ import { tmpdir } from "node:os";
19
19
  import { join } from "node:path";
20
20
  import { authFoundationFeature } from "@cosmicdrift/kumiko-bundled-features/auth-foundation";
21
21
  import { asRawClient, selectMany } from "@cosmicdrift/kumiko-framework/bun-db";
22
- import { createEventsTable, eventsTable } from "@cosmicdrift/kumiko-framework/event-store";
22
+ import { eventsTable } from "@cosmicdrift/kumiko-framework/event-store";
23
23
  import {
24
24
  createInMemoryFileProvider,
25
25
  type FileStorageProvider,
@@ -71,7 +71,6 @@ beforeAll(async () => {
71
71
  await unsafeCreateEntityTable(stack.db, tenantComplianceProfileEntity);
72
72
  await unsafeCreateEntityTable(stack.db, userEntity);
73
73
  await unsafeCreateEntityTable(stack.db, userSessionEntity);
74
- await createEventsTable(stack.db);
75
74
  // tenant-membership-table fuer runUserExport's Cross-Tenant-Iteration.
76
75
  // Pattern matched user-data-rights-defaults integration-test.
77
76
  await asRawClient(stack.db).unsafe(`
@@ -1064,7 +1063,6 @@ describe("runExportJobs :: Atom 3c file-binaries", () => {
1064
1063
  await unsafeCreateEntityTable(localStack.db, exportJobEntity);
1065
1064
  await unsafeCreateEntityTable(localStack.db, exportDownloadTokenEntity);
1066
1065
  await unsafeCreateEntityTable(localStack.db, tenantComplianceProfileEntity);
1067
- await createEventsTable(localStack.db);
1068
1066
  await asRawClient(localStack.db).unsafe(`
1069
1067
  CREATE TABLE IF NOT EXISTS read_tenant_memberships (
1070
1068
  id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
@@ -31,7 +31,6 @@ import {
31
31
  type TenantId,
32
32
  type UserDataDeleteHook,
33
33
  } from "@cosmicdrift/kumiko-framework/engine";
34
- import { createEventsTable } from "@cosmicdrift/kumiko-framework/event-store";
35
34
  import {
36
35
  resetEventStore,
37
36
  setupTestStack,
@@ -125,7 +124,6 @@ beforeAll(async () => {
125
124
  await unsafeCreateEntityTable(stack.db, tenantRetentionOverrideEntity);
126
125
  await unsafeCreateEntityTable(stack.db, configValueEntity);
127
126
  await unsafeCreateEntityTable(stack.db, scopedEntity);
128
- await createEventsTable(stack.db);
129
127
  await asRawClient(stack.db).unsafe(READ_TENANT_MEMBERSHIPS_DDL);
130
128
  });
131
129
 
@@ -7,7 +7,7 @@ import { afterAll, beforeAll, beforeEach, describe, expect, test } from "bun:tes
7
7
  import { authFoundationFeature } from "@cosmicdrift/kumiko-bundled-features/auth-foundation";
8
8
  import { fetchOne } from "@cosmicdrift/kumiko-framework/bun-db";
9
9
  import type { TenantId } from "@cosmicdrift/kumiko-framework/engine";
10
- import { createEventsTable, eventsTable } from "@cosmicdrift/kumiko-framework/event-store";
10
+ import { eventsTable } from "@cosmicdrift/kumiko-framework/event-store";
11
11
  import {
12
12
  createTestUser,
13
13
  setupTestStack,
@@ -80,7 +80,6 @@ beforeAll(async () => {
80
80
  await unsafeCreateEntityTable(stack.db, userEntity);
81
81
  await unsafeCreateEntityTable(stack.db, tenantEntity);
82
82
  await unsafeCreateEntityTable(stack.db, tenantComplianceProfileEntity);
83
- await createEventsTable(stack.db);
84
83
  await unsafePushTables(stack.db, { configValuesTable, tenantMembershipsTable });
85
84
  });
86
85