@camstack/types 1.2.360 → 1.2.362

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.
@@ -220,12 +220,7 @@ export interface ISettingsBackend {
220
220
  * without typed-table support should implement this as a no-op so
221
221
  * the cap contract stays uniform.
222
222
  */
223
- declareCollection(input: {
224
- namespace?: string;
225
- collection: string;
226
- columns: readonly import('../capabilities/settings-store.cap.js').CollectionColumn[];
227
- indexes?: readonly import('../capabilities/settings-store.cap.js').CollectionIndex[];
228
- }): Promise<void>;
223
+ declareCollection(input: import('../capabilities/settings-store.cap.js').DeclareCollectionInput): Promise<void>;
229
224
  }
230
225
  export interface SettingsRecord<T extends object = Record<string, unknown>> {
231
226
  readonly id: string;
@@ -307,6 +302,13 @@ export interface TableColumnSchema {
307
302
  export interface TableSchema {
308
303
  readonly columns: readonly TableColumnSchema[];
309
304
  readonly indexes?: readonly TableIndexSchema[];
305
+ /**
306
+ * COMPOSITE primary key, as column names (two or more). Emitted as a table
307
+ * constraint; a column carries no `primaryKey` flag when this is set.
308
+ */
309
+ readonly primaryKey?: readonly string[];
310
+ /** Emit `WITHOUT ROWID` (requires a primary key). */
311
+ readonly withoutRowid?: boolean;
310
312
  }
311
313
  /** Index definition for structured tables */
312
314
  export interface TableIndexSchema {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/types",
3
- "version": "1.2.360",
3
+ "version": "1.2.362",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",