@cosmicdrift/kumiko-bundled-features 0.379.0 → 0.381.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.
@@ -1,3 +1,3 @@
1
1
  import { type EntityTableMeta } from "@cosmicdrift/kumiko-framework/db";
2
- export declare const capReservationsTable: import("@cosmicdrift/kumiko-types/schema-table-types").SchemaTable;
2
+ export declare const capReservationsTable: import("@cosmicdrift/kumiko-types/executor-brand").WritableSchemaTable;
3
3
  export declare const capReservationsTableMeta: EntityTableMeta;
@@ -1,3 +1,3 @@
1
1
  import { type EntityTableMeta } from "@cosmicdrift/kumiko-framework/db";
2
- export declare const inAppMessagesTable: import("@cosmicdrift/kumiko-types/schema-table-types").SchemaTable;
2
+ export declare const inAppMessagesTable: import("@cosmicdrift/kumiko-types/executor-brand").WritableSchemaTable;
3
3
  export declare const inAppMessagesTableMeta: EntityTableMeta;
@@ -1,5 +1,5 @@
1
1
  import { type EntityTableMeta } from "@cosmicdrift/kumiko-framework/db";
2
- export declare const deliveryAttemptsTable: import("@cosmicdrift/kumiko-types/schema-table-types").SchemaTable;
2
+ export declare const deliveryAttemptsTable: import("@cosmicdrift/kumiko-types/executor-brand").WritableSchemaTable;
3
3
  export declare const deliveryAttemptsTableMeta: EntityTableMeta;
4
4
  export declare const notificationPreferenceEntity: import("@cosmicdrift/kumiko-types/fields").EntityDefinition<{
5
5
  readonly userId: {
@@ -76,7 +76,7 @@ export declare const notificationPreferenceEntity: import("@cosmicdrift/kumiko-t
76
76
  default: boolean;
77
77
  };
78
78
  }, "tenant">;
79
- export declare const notificationPreferencesTable: import("@cosmicdrift/kumiko-types/schema-table-types").SchemaTable;
79
+ export declare const notificationPreferencesTable: import("@cosmicdrift/kumiko-types/executor-brand").WritableSchemaTable;
80
80
  export declare const notificationAddressOptOutEntity: import("@cosmicdrift/kumiko-types/fields").EntityDefinition<{
81
81
  readonly addressHash: {
82
82
  readonly type: "text";
@@ -148,4 +148,4 @@ export declare const notificationAddressOptOutEntity: import("@cosmicdrift/kumik
148
148
  required: true;
149
149
  };
150
150
  }, "tenant">;
151
- export declare const notificationAddressOptOutsTable: import("@cosmicdrift/kumiko-types/schema-table-types").SchemaTable;
151
+ export declare const notificationAddressOptOutsTable: import("@cosmicdrift/kumiko-types/executor-brand").WritableSchemaTable;
@@ -1,4 +1,4 @@
1
- import { type EntityTableMeta, type SchemaTable } from "@cosmicdrift/kumiko-framework/db";
1
+ import { type EntityTableMeta, type WritableSchemaTable } from "@cosmicdrift/kumiko-framework/db";
2
2
  import type { TenancyBrand } from "@cosmicdrift/kumiko-types/tenancy-brand";
3
- export declare const globalFeatureStateTable: SchemaTable & TenancyBrand<"global">;
3
+ export declare const globalFeatureStateTable: WritableSchemaTable & TenancyBrand<"global">;
4
4
  export declare const globalFeatureStateTableMeta: EntityTableMeta;
@@ -695,5 +695,5 @@ export declare const seenMessageEntity: import("@cosmicdrift/kumiko-types/fields
695
695
  required: true;
696
696
  };
697
697
  }, "tenant">;
698
- export declare const syncCursorTable: import("@cosmicdrift/kumiko-types/entity-table-meta-types").EntityTableMeta;
699
- export declare const seenMessageTable: import("@cosmicdrift/kumiko-types/entity-table-meta-types").EntityTableMeta;
698
+ export declare const syncCursorTable: import("@cosmicdrift/kumiko-types/entity-table-meta-types").EntityTableMeta & import("@cosmicdrift/kumiko-types/executor-brand").Writable;
699
+ export declare const seenMessageTable: import("@cosmicdrift/kumiko-types/entity-table-meta-types").EntityTableMeta & import("@cosmicdrift/kumiko-types/executor-brand").Writable;
@@ -1,4 +1,4 @@
1
- import { type EntityTableMeta } from "@cosmicdrift/kumiko-framework/db";
1
+ import { type EntityTableMeta, type WritableTable } from "@cosmicdrift/kumiko-framework/db";
2
2
  export type JobRunStatus = "queued" | "running" | "completed" | "failed";
3
3
  export type JobLogLevel = "info" | "warn" | "error";
4
4
  export declare const jobRunEntity: import("@cosmicdrift/kumiko-types/fields").EntityDefinition<{
@@ -209,7 +209,7 @@ export declare const jobRunEntity: import("@cosmicdrift/kumiko-types/fields").En
209
209
  required: false;
210
210
  };
211
211
  }, "tenant">;
212
- export declare const jobRunsTable: EntityTableMeta;
213
- export declare const jobRunsTableMeta: EntityTableMeta;
214
- export declare const jobRunLogsTable: import("@cosmicdrift/kumiko-types/schema-table-types").SchemaTable;
212
+ export declare const jobRunsTable: WritableTable;
213
+ export declare const jobRunsTableMeta: WritableTable;
214
+ export declare const jobRunLogsTable: import("@cosmicdrift/kumiko-types/executor-brand").WritableSchemaTable;
215
215
  export declare const jobRunLogsTableMeta: EntityTableMeta;
@@ -49,8 +49,8 @@ export const jobRunEntity = createEntity({
49
49
  },
50
50
  indexes: [{ columns: ["startedAt"] }],
51
51
  });
52
- // Plain EntityTableMeta, NOT a branded EntityTable (buildEntityTable would
53
- // mark it executor-only): job-run is an unmanaged direct-write store, so
52
+ // Unmanaged meta, NOT buildEntityTable (its table is not Writable and only the
53
+ // executor may write it): job-run is an unmanaged direct-write store, so
54
54
  // onJobStart/-Complete/-Failed need to write via ctx.db/insertOne directly
55
55
  // (same pattern as sessions/schema/user-session.ts).
56
56
  export const jobRunsTable = deriveEntityTableMeta("job-run", jobRunEntity, {
@@ -1,3 +1,3 @@
1
1
  import { type EntityTableMeta } from "@cosmicdrift/kumiko-framework/db";
2
- export declare const tenantJobFailuresTable: import("@cosmicdrift/kumiko-types/schema-table-types").SchemaTable;
2
+ export declare const tenantJobFailuresTable: import("@cosmicdrift/kumiko-types/executor-brand").WritableSchemaTable;
3
3
  export declare const tenantJobFailuresTableMeta: EntityTableMeta;
@@ -1,4 +1,4 @@
1
1
  import { type EntityTableMeta } from "@cosmicdrift/kumiko-framework/db";
2
2
  export type TenantJobRunStatus = "queued" | "running" | "completed" | "failed";
3
- export declare const tenantJobRunsTable: import("@cosmicdrift/kumiko-types/schema-table-types").SchemaTable;
3
+ export declare const tenantJobRunsTable: import("@cosmicdrift/kumiko-types/executor-brand").WritableSchemaTable;
4
4
  export declare const tenantJobRunsTableMeta: EntityTableMeta;
@@ -183,4 +183,4 @@ export declare const apiTokenEntity: import("@cosmicdrift/kumiko-types/fields").
183
183
  required: false;
184
184
  };
185
185
  }, "tenant">;
186
- export declare const apiTokenTable: import("@cosmicdrift/kumiko-types/entity-table-meta-types").EntityTableMeta;
186
+ export declare const apiTokenTable: import("@cosmicdrift/kumiko-types/entity-table-meta-types").EntityTableMeta & import("@cosmicdrift/kumiko-types/executor-brand").Writable;
@@ -79,8 +79,8 @@ export const apiTokenEntity = createEntity({
79
79
  indexes: [{ unique: true, columns: ["tokenHash"], name: "store_api_tokens_hash_unique" }],
80
80
  });
81
81
  // deriveEntityTableMeta (not buildEntityTable): this is a direct-write store, so
82
- // the table must be a WritableTable (post ES-write-brand #742) — same as
83
- // sessions' userSessionTable. buildEntityTable is branded executor-only.
82
+ // the table must be Writable, which only source: "unmanaged" yields — same as
83
+ // sessions' userSessionTable.
84
84
  export const apiTokenTable = deriveEntityTableMeta(API_TOKEN_ENTITY_NAME, apiTokenEntity, {
85
85
  source: "unmanaged",
86
86
  });
@@ -47,4 +47,4 @@ export declare const tenantSecretEntity: import("@cosmicdrift/kumiko-types/field
47
47
  required: true;
48
48
  };
49
49
  }, "tenant">;
50
- export declare const tenantSecretsTable: import("@cosmicdrift/kumiko-types/schema-table-types").SchemaTable;
50
+ export declare const tenantSecretsTable: import("@cosmicdrift/kumiko-types/executor-brand").WritableSchemaTable;
@@ -152,4 +152,4 @@ export declare const userSessionEntity: import("@cosmicdrift/kumiko-types/fields
152
152
  required: false;
153
153
  };
154
154
  }, "tenant">;
155
- export declare const userSessionTable: import("@cosmicdrift/kumiko-types/entity-table-meta-types").EntityTableMeta;
155
+ export declare const userSessionTable: import("@cosmicdrift/kumiko-types/entity-table-meta-types").EntityTableMeta & import("@cosmicdrift/kumiko-types/executor-brand").Writable;
@@ -74,10 +74,9 @@ export const userSessionEntity = createEntity({
74
74
  },
75
75
  indexes: [{ columns: ["tenantId", "lastSeenAt"] }],
76
76
  });
77
- // Plain EntityTableMeta, NOT a branded EntityTable: user-session is an
78
- // unmanaged direct-write store (r.storeTable in feature.ts, no event stream —
77
+ // Unmanaged direct-write store (r.storeTable in feature.ts, no event stream —
79
78
  // revocation is a column write, not an aggregate). Handlers write via ctx.db;
80
- // the meta carries no executor-only brand so those writes stay legal. See
79
+ // source: "unmanaged" makes the meta Writable so those writes compile. See
81
80
  // feature.ts for the rebuild-exclusion rationale (#494/#498).
82
81
  export const userSessionTable = deriveEntityTableMeta(USER_SESSION_ENTITY_NAME, userSessionEntity, {
83
82
  source: "unmanaged",
@@ -23,7 +23,7 @@ export type LegacyWaitlistMigrateReport = {
23
23
  type LegacyRow = Readonly<Record<string, unknown>>;
24
24
  export declare function mapOfflotRow(row: LegacyRow): Promise<WaitlistImportEntry | undefined>;
25
25
  export declare function mapPublicstatusRow(row: LegacyRow, defaultLocale: string): WaitlistImportEntry | undefined;
26
- export declare function publicstatusLegacyTable(sourceTable: string): import("@cosmicdrift/kumiko-types/schema-table-types").SchemaTable;
27
- export declare function offlotLegacyTable(sourceTable: string): import("@cosmicdrift/kumiko-types/schema-table-types").SchemaTable;
26
+ export declare function publicstatusLegacyTable(sourceTable: string): import("@cosmicdrift/kumiko-types/executor-brand").WritableSchemaTable;
27
+ export declare function offlotLegacyTable(sourceTable: string): import("@cosmicdrift/kumiko-types/executor-brand").WritableSchemaTable;
28
28
  export declare function migrateLegacyWaitlist(db: DbConnection, options: LegacyWaitlistMigrateOptions): Promise<LegacyWaitlistMigrateReport>;
29
29
  export {};
@@ -1,3 +1,3 @@
1
1
  import { type EntityTableMeta } from "@cosmicdrift/kumiko-framework/db";
2
- export declare const workflowRunPendingTable: import("@cosmicdrift/kumiko-types/schema-table-types").SchemaTable;
2
+ export declare const workflowRunPendingTable: import("@cosmicdrift/kumiko-types/executor-brand").WritableSchemaTable;
3
3
  export declare const workflowRunPendingTableMeta: EntityTableMeta;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-bundled-features",
3
- "version": "0.379.0",
3
+ "version": "0.381.0",
4
4
  "description": "Built-in features — tenant, user, auth, delivery. The stuff you'd rewrite anyway, already typed.",
5
5
  "license": "BUSL-1.1",
6
6
  "author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
@@ -540,9 +540,9 @@
540
540
  }
541
541
  },
542
542
  "dependencies": {
543
- "@cosmicdrift/kumiko-framework": "0.379.0",
544
- "@cosmicdrift/kumiko-renderer": "0.379.0",
545
- "@cosmicdrift/kumiko-types": "0.379.0",
543
+ "@cosmicdrift/kumiko-framework": "0.381.0",
544
+ "@cosmicdrift/kumiko-renderer": "0.381.0",
545
+ "@cosmicdrift/kumiko-types": "0.381.0",
546
546
  "@mollie/api-client": "^4.5.0",
547
547
  "@node-rs/argon2": "^2.0.2",
548
548
  "@tiptap/core": "3.31.3",
@@ -1108,15 +1108,15 @@
1108
1108
  ],
1109
1109
  "devDependencies": {
1110
1110
  "@testing-library/user-event": "^14.6.1",
1111
- "@cosmicdrift/kumiko-locale-de": "0.379.0",
1112
- "@cosmicdrift/kumiko-locale-es": "0.379.0",
1113
- "@cosmicdrift/kumiko-renderer-mail-html": "0.379.0",
1111
+ "@cosmicdrift/kumiko-locale-de": "0.381.0",
1112
+ "@cosmicdrift/kumiko-locale-es": "0.381.0",
1113
+ "@cosmicdrift/kumiko-renderer-mail-html": "0.381.0",
1114
1114
  "jsqr": "^1.4.0",
1115
1115
  "unpdf": "^1.8.1",
1116
- "@cosmicdrift/kumiko-testing": "0.379.0"
1116
+ "@cosmicdrift/kumiko-testing": "0.381.0"
1117
1117
  },
1118
1118
  "peerDependencies": {
1119
- "@cosmicdrift/kumiko-testing": "0.379.0"
1119
+ "@cosmicdrift/kumiko-testing": "0.381.0"
1120
1120
  },
1121
1121
  "peerDependenciesMeta": {
1122
1122
  "@cosmicdrift/kumiko-testing": {