@tearleads/client-sdk 0.1.42 → 0.1.44

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 (224) hide show
  1. package/client/containerDocumentDiscovery.js +71 -29
  2. package/client/containerDocumentDiscovery.js.map +1 -1
  3. package/client/deviceFirst.js +4 -5
  4. package/client/deviceFirst.js.map +1 -1
  5. package/data/blobs/transferPool.js +35 -8
  6. package/data/blobs/transferPool.js.map +1 -1
  7. package/data/containers/shared/projection.js +12 -0
  8. package/data/containers/shared/projection.js.map +1 -1
  9. package/data/documents/blob/shared/types.d.ts +2 -3
  10. package/data/documents/blob/shared/types.js.map +1 -1
  11. package/data/documents/shared/events.js +0 -1
  12. package/data/documents/shared/events.js.map +1 -1
  13. package/data/persistence/container-contents/containerContentsPersistence.js +6 -22
  14. package/data/persistence/container-contents/containerContentsPersistence.js.map +1 -1
  15. package/data/persistence/container-contents/containerMetadataMutationPersistence.js +5 -15
  16. package/data/persistence/container-contents/containerMetadataMutationPersistence.js.map +1 -1
  17. package/data/persistence/container-contents/containerPendingUpdatePersistence.js +6 -15
  18. package/data/persistence/container-contents/containerPendingUpdatePersistence.js.map +1 -1
  19. package/data/persistence/container-contents/containerRecoveryPersistence.js +3 -4
  20. package/data/persistence/container-contents/containerRecoveryPersistence.js.map +1 -1
  21. package/data/persistence/container-contents/containerRemovalWork.js +3 -5
  22. package/data/persistence/container-contents/containerRemovalWork.js.map +1 -1
  23. package/data/persistence/container-contents/dormantContainerMetadata.js +1 -5
  24. package/data/persistence/container-contents/dormantContainerMetadata.js.map +1 -1
  25. package/data/persistence/containers/containerSyncWatermarkPersistence.d.ts +11 -3
  26. package/data/persistence/containers/containerSyncWatermarkPersistence.js +46 -58
  27. package/data/persistence/containers/containerSyncWatermarkPersistence.js.map +1 -1
  28. package/data/persistence/documents/documentsPersistence.js +4 -9
  29. package/data/persistence/documents/documentsPersistence.js.map +1 -1
  30. package/data/persistence/documents/internal/discardDocument.js +1 -2
  31. package/data/persistence/documents/internal/discardDocument.js.map +1 -1
  32. package/data/persistence/documents/internal/documentDeletionPersistence.js +1 -2
  33. package/data/persistence/documents/internal/documentDeletionPersistence.js.map +1 -1
  34. package/data/persistence/documents/internal/documentMutationPersistence.js +17 -25
  35. package/data/persistence/documents/internal/documentMutationPersistence.js.map +1 -1
  36. package/data/persistence/documents/internal/orphanSideRows.js +2 -14
  37. package/data/persistence/documents/internal/orphanSideRows.js.map +1 -1
  38. package/data/persistence/documents/internal/syncQueuePersistence.js +3 -3
  39. package/data/persistence/documents/internal/syncQueuePersistence.js.map +1 -1
  40. package/data/sqlite/documentHistoryPersistence.d.ts +9 -3
  41. package/data/sqlite/documentHistoryPersistence.js +31 -8
  42. package/data/sqlite/documentHistoryPersistence.js.map +1 -1
  43. package/data/sqlite/documentPendingUpdatePersistence.d.ts +58 -11
  44. package/data/sqlite/documentPendingUpdatePersistence.js +137 -63
  45. package/data/sqlite/documentPendingUpdatePersistence.js.map +1 -1
  46. package/data/sqlite/documentPersistence.d.ts +1 -1
  47. package/data/sqlite/documentPersistence.js +1 -1
  48. package/data/sqlite/documentPersistence.js.map +1 -1
  49. package/data/sqlite/documentPersistenceTypes.d.ts +2 -2
  50. package/data/sqlite/documentPersistenceTypes.js.map +1 -1
  51. package/data/sqlite/documentRecordPersistence.js +5 -4
  52. package/data/sqlite/documentRecordPersistence.js.map +1 -1
  53. package/data/sqlite/schema.d.ts +167 -517
  54. package/data/sqlite/schema.js +68 -82
  55. package/data/sqlite/schema.js.map +1 -1
  56. package/internal/api-client/ApiClient.d.ts +18 -41
  57. package/internal/api-client/ApiClient.js +9 -14
  58. package/internal/api-client/ApiClient.js.map +1 -1
  59. package/internal/api-client/apiRequestRuntime.d.ts +2 -0
  60. package/internal/api-client/apiRequestRuntime.js +4 -0
  61. package/internal/api-client/apiRequestRuntime.js.map +1 -1
  62. package/internal/api-client/binaryRequestOperationTransport.d.ts +18 -0
  63. package/internal/api-client/index.d.ts +1 -0
  64. package/internal/api-client/index.js +1 -0
  65. package/internal/api-client/index.js.map +1 -1
  66. package/internal/api-client/operationTransportFactory.d.ts +6 -0
  67. package/internal/api-client/requestInternals.js +7 -7
  68. package/internal/api-client/requestInternals.js.map +1 -1
  69. package/internal/api-client/routes/blobs/get.d.ts +7 -0
  70. package/internal/api-client/routes/blobs/get.js.map +1 -1
  71. package/internal/api-client/routes/blobs/multipart.js +1 -11
  72. package/internal/api-client/routes/blobs/multipart.js.map +1 -1
  73. package/internal/api-client/routes/blobs/multipartUpload.d.ts +14 -0
  74. package/internal/api-client/routes/blobs/multipartUpload.js +94 -43
  75. package/internal/api-client/routes/blobs/multipartUpload.js.map +1 -1
  76. package/internal/api-client/routes/containers/reads.d.ts +13 -7
  77. package/internal/api-client/routes/containers/reads.js +36 -15
  78. package/internal/api-client/routes/containers/reads.js.map +1 -1
  79. package/internal/api-client/types.d.ts +1 -5
  80. package/internal/api-client/types.js.map +1 -1
  81. package/internal/validators/containerReadRefinements.js +15 -5
  82. package/internal/validators/containerReadRefinements.js.map +1 -1
  83. package/internal/validators/containerReadSchemas.d.ts +36 -0
  84. package/internal/validators/containerReadSchemas.js +64 -1
  85. package/internal/validators/containerReadSchemas.js.map +1 -1
  86. package/internal/validators/operation/attachments.d.ts +80 -160
  87. package/internal/validators/operation/auth.d.ts +760 -1664
  88. package/internal/validators/operation/blobDownloads.js +1 -1
  89. package/internal/validators/operation/blobDownloads.js.map +1 -1
  90. package/internal/validators/operation/containerMutations.d.ts +416 -856
  91. package/internal/validators/operation/containerReads.d.ts +118 -182
  92. package/internal/validators/operation/containerReads.js +20 -54
  93. package/internal/validators/operation/containerReads.js.map +1 -1
  94. package/internal/validators/operation/documentMutations.d.ts +120 -264
  95. package/internal/validators/operation/documentSync.d.ts +40 -80
  96. package/internal/validators/operation/index.d.ts +2 -2
  97. package/internal/validators/operation/index.js +2 -2
  98. package/internal/validators/operation/index.js.map +1 -1
  99. package/internal/validators/operation/multipartBlobs.d.ts +70 -190
  100. package/internal/validators/operation/multipartBlobs.js +2 -24
  101. package/internal/validators/operation/multipartBlobs.js.map +1 -1
  102. package/internal/validators/operation/multipartPartUploads.d.ts +5 -5
  103. package/internal/validators/operation/multipartPartUploads.js +6 -20
  104. package/internal/validators/operation/multipartPartUploads.js.map +1 -1
  105. package/internal/validators/operation/organizations.d.ts +882 -1906
  106. package/internal/validators/operation/principals.d.ts +120 -240
  107. package/internal/validators/operation/registry.d.ts +3 -4
  108. package/internal/validators/operation/registry.js +3 -4
  109. package/internal/validators/operation/registry.js.map +1 -1
  110. package/internal/validators/request/blob.d.ts +100 -201
  111. package/internal/validators/request/blob.js +6 -13
  112. package/internal/validators/request/blob.js.map +1 -1
  113. package/internal/validators/request/container.d.ts +136 -272
  114. package/internal/validators/request/container.js +16 -10
  115. package/internal/validators/request/container.js.map +1 -1
  116. package/internal/validators/request/containerDocumentLanes.d.ts +23 -0
  117. package/internal/validators/request/containerDocumentLanes.js +23 -0
  118. package/internal/validators/request/containerDocumentLanes.js.map +1 -0
  119. package/internal/validators/request/containerManifestRef.d.ts +54 -0
  120. package/internal/validators/request/containerManifestRef.js +28 -0
  121. package/internal/validators/request/containerManifestRef.js.map +1 -0
  122. package/internal/validators/request/containerMetadata.d.ts +160 -368
  123. package/internal/validators/request/containerParentLanes.js +5 -35
  124. package/internal/validators/request/containerParentLanes.js.map +1 -1
  125. package/internal/validators/request/document.d.ts +100 -245
  126. package/internal/validators/request/document.js +1 -2
  127. package/internal/validators/request/document.js.map +1 -1
  128. package/internal/validators/request/documentSyncSchema.d.ts +42 -109
  129. package/internal/validators/request/documentSyncSchema.js +8 -25
  130. package/internal/validators/request/documentSyncSchema.js.map +1 -1
  131. package/internal/validators/request/index.d.ts +2 -1
  132. package/internal/validators/request/index.js +2 -1
  133. package/internal/validators/request/index.js.map +1 -1
  134. package/internal/validators/request/organization.d.ts +160 -320
  135. package/internal/validators/request/organizationProvisioning.d.ts +2424 -5312
  136. package/internal/validators/request/principal.d.ts +160 -320
  137. package/internal/validators/request/registration.d.ts +760 -1664
  138. package/internal/validators/response/blob.d.ts +48 -27
  139. package/internal/validators/response/blob.js +3 -10
  140. package/internal/validators/response/blob.js.map +1 -1
  141. package/internal/validators/response/containerDocumentLanes.d.ts +82 -0
  142. package/internal/validators/response/containerDocumentLanes.js +35 -0
  143. package/internal/validators/response/containerDocumentLanes.js.map +1 -0
  144. package/internal/validators/response/containerParentLanes.js +3 -15
  145. package/internal/validators/response/containerParentLanes.js.map +1 -1
  146. package/internal/validators/response/index.d.ts +3 -2
  147. package/internal/validators/response/index.js +2 -2
  148. package/internal/validators/response/index.js.map +1 -1
  149. package/internal/validators/util/blob.d.ts +7 -0
  150. package/internal/validators/util/blob.js +7 -0
  151. package/internal/validators/util/blob.js.map +1 -1
  152. package/internal/validators/util/blobTransferSchemas.d.ts +41 -0
  153. package/internal/validators/util/blobTransferSchemas.js +39 -0
  154. package/internal/validators/util/blobTransferSchemas.js.map +1 -0
  155. package/internal/validators/util/containerLimits.d.ts +7 -0
  156. package/internal/validators/util/containerLimits.js +7 -0
  157. package/internal/validators/util/containerLimits.js.map +1 -1
  158. package/internal/validators/util/index.d.ts +2 -1
  159. package/internal/validators/util/index.js +2 -1
  160. package/internal/validators/util/index.js.map +1 -1
  161. package/package.json +1 -1
  162. package/sync/reconciliation/knownContainerSweep.js +57 -54
  163. package/sync/reconciliation/knownContainerSweep.js.map +1 -1
  164. package/sync/reconciliation/reconcileContainer.js +49 -17
  165. package/sync/reconciliation/reconcileContainer.js.map +1 -1
  166. package/sync/reconciliation/service.js +44 -16
  167. package/sync/reconciliation/service.js.map +1 -1
  168. package/sync/reconciliation/serviceTypes.d.ts +23 -2
  169. package/sync/reconciliation/serviceTypes.js.map +1 -1
  170. package/workflows/blobs/multipartFirstParts.js +82 -0
  171. package/workflows/blobs/multipartFirstParts.js.map +1 -0
  172. package/workflows/blobs/multipartStageResolution.js +83 -0
  173. package/workflows/blobs/multipartStageResolution.js.map +1 -0
  174. package/workflows/blobs/multipartUpload.js +45 -89
  175. package/workflows/blobs/multipartUpload.js.map +1 -1
  176. package/workflows/container-contents/containerDocumentListing.js +92 -38
  177. package/workflows/container-contents/containerDocumentListing.js.map +1 -1
  178. package/workflows/container-contents/containerPersistence.d.ts +8 -2
  179. package/workflows/container-contents/containerPersistence.js +6 -7
  180. package/workflows/container-contents/containerPersistence.js.map +1 -1
  181. package/workflows/container-contents/documentDiscovery.d.ts +3 -3
  182. package/workflows/container-contents/documentDiscovery.js +24 -96
  183. package/workflows/container-contents/documentDiscovery.js.map +1 -1
  184. package/workflows/container-contents/documentDiscoveryApply.js +65 -0
  185. package/workflows/container-contents/documentDiscoveryApply.js.map +1 -0
  186. package/workflows/container-contents/documentDiscoveryLanes.js +53 -0
  187. package/workflows/container-contents/documentDiscoveryLanes.js.map +1 -0
  188. package/workflows/container-contents/documentDiscoveryTypes.d.ts +25 -19
  189. package/workflows/container-contents/documentDiscoveryTypes.js.map +1 -1
  190. package/workflows/container-contents/documentPriming.js +2 -1
  191. package/workflows/container-contents/documentPriming.js.map +1 -1
  192. package/workflows/container-contents/documentQueries/sql.js +4 -4
  193. package/workflows/container-contents/documentQueries/sql.js.map +1 -1
  194. package/workflows/container-contents/pendingWrites/deferredTails.js +6 -3
  195. package/workflows/container-contents/pendingWrites/deferredTails.js.map +1 -1
  196. package/workflows/container-contents/pendingWrites/sources.js +2 -1
  197. package/workflows/container-contents/pendingWrites/sources.js.map +1 -1
  198. package/workflows/container-contents/pendingWrites.js +2 -1
  199. package/workflows/container-contents/pendingWrites.js.map +1 -1
  200. package/workflows/container-contents/remoteHydration/laneFetchMarkers.js +11 -17
  201. package/workflows/container-contents/remoteHydration/laneFetchMarkers.js.map +1 -1
  202. package/workflows/containers/child/create.js +3 -3
  203. package/workflows/containers/child/create.js.map +1 -1
  204. package/workflows/containers/child/move.js +2 -2
  205. package/workflows/containers/child/move.js.map +1 -1
  206. package/workflows/containers/child/mutationRequestCore.js +5 -4
  207. package/workflows/containers/child/mutationRequestCore.js.map +1 -1
  208. package/workflows/containers/child/recitePlan.js +3 -2
  209. package/workflows/containers/child/recitePlan.js.map +1 -1
  210. package/workflows/containers/child/sharePlanCore.js +2 -2
  211. package/workflows/containers/child/sharePlanCore.js.map +1 -1
  212. package/workflows/containers/root/create.js +2 -2
  213. package/workflows/containers/root/create.js.map +1 -1
  214. package/workflows/registration/provisioningBootstrapBuilders.d.ts +20 -46
  215. package/workflows/sync/remoteReset.js +9 -9
  216. package/workflows/sync/remoteReset.js.map +1 -1
  217. package/workflows/sync/remoteResetCursorScope.js +10 -18
  218. package/workflows/sync/remoteResetCursorScope.js.map +1 -1
  219. package/workflows/sync/remoteResetPlans.js +6 -3
  220. package/workflows/sync/remoteResetPlans.js.map +1 -1
  221. package/workflows/sync/remoteResetScope.js +4 -11
  222. package/workflows/sync/remoteResetScope.js.map +1 -1
  223. package/internal/validators/operation/blobTransferSchemas.js +0 -11
  224. package/internal/validators/operation/blobTransferSchemas.js.map +0 -1
@@ -358,210 +358,11 @@ export declare const documents: import("drizzle-orm/sqlite-core").SQLiteTableWit
358
358
  };
359
359
  dialect: "sqlite";
360
360
  }>;
361
- /**
362
- * Outbound Loro updates waiting to be accepted by sync.
363
- *
364
- * Each row stores one locally produced update for a document scope. The queue is
365
- * replayed in creation order and acknowledged rows are deleted after sync
366
- * writes the corresponding server commit or persisted document state.
367
- *
368
- * Columns:
369
- * - `id`: Client-generated queue id used for acknowledgement deletes.
370
- * - `appKind`: Local document namespace matching `documents.appKind`.
371
- * - `localId`: Local document id matching `documents.localId`.
372
- * - `updateData`: Serialized Loro update payload.
373
- * - `partialStartVersionVector`: Version vector before this partial update.
374
- * - `partialEndVersionVector`: Version vector after this partial update.
375
- * - `sourceVersionVector`: Optional source vector used to avoid re-enqueuing
376
- * updates that came from sync.
377
- * - `createdAt`: Queue insertion timestamp used for deterministic replay.
378
- *
379
- * Indexes:
380
- * - `id` is the primary key for targeted deletes.
381
- * - `(appKind, localId, createdAt)` supports ordered pending-update scans for a
382
- * document scope.
383
- */
384
- export declare const documentPendingUpdates: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
385
- name: "document_pending_updates";
386
- schema: undefined;
387
- columns: {
388
- id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
389
- name: "id";
390
- tableName: "document_pending_updates";
391
- dataType: "string";
392
- columnType: "SQLiteText";
393
- data: string;
394
- driverParam: string;
395
- notNull: false;
396
- hasDefault: false;
397
- isPrimaryKey: false;
398
- isAutoincrement: false;
399
- hasRuntimeDefault: false;
400
- enumValues: [string, ...string[]];
401
- baseColumn: never;
402
- identity: undefined;
403
- generated: undefined;
404
- }, {}, {
405
- length: number | undefined;
406
- }>;
407
- appKind: import("drizzle-orm/sqlite-core").SQLiteColumn<{
408
- name: "app_kind";
409
- tableName: "document_pending_updates";
410
- dataType: "string";
411
- columnType: "SQLiteText";
412
- data: string;
413
- driverParam: string;
414
- notNull: true;
415
- hasDefault: false;
416
- isPrimaryKey: false;
417
- isAutoincrement: false;
418
- hasRuntimeDefault: false;
419
- enumValues: [string, ...string[]];
420
- baseColumn: never;
421
- identity: undefined;
422
- generated: undefined;
423
- }, {}, {
424
- length: number | undefined;
425
- }>;
426
- localId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
427
- name: "local_id";
428
- tableName: "document_pending_updates";
429
- dataType: "string";
430
- columnType: "SQLiteText";
431
- data: string;
432
- driverParam: string;
433
- notNull: true;
434
- hasDefault: false;
435
- isPrimaryKey: false;
436
- isAutoincrement: false;
437
- hasRuntimeDefault: false;
438
- enumValues: [string, ...string[]];
439
- baseColumn: never;
440
- identity: undefined;
441
- generated: undefined;
442
- }, {}, {
443
- length: number | undefined;
444
- }>;
445
- updateData: import("drizzle-orm/sqlite-core").SQLiteColumn<{
446
- name: "update_data";
447
- tableName: "document_pending_updates";
448
- dataType: "string";
449
- columnType: "SQLiteText";
450
- data: string;
451
- driverParam: string;
452
- notNull: true;
453
- hasDefault: false;
454
- isPrimaryKey: false;
455
- isAutoincrement: false;
456
- hasRuntimeDefault: false;
457
- enumValues: [string, ...string[]];
458
- baseColumn: never;
459
- identity: undefined;
460
- generated: undefined;
461
- }, {}, {
462
- length: number | undefined;
463
- }>;
464
- partialStartVersionVector: import("drizzle-orm/sqlite-core").SQLiteColumn<{
465
- name: "partial_start_version_vector";
466
- tableName: "document_pending_updates";
467
- dataType: "string";
468
- columnType: "SQLiteText";
469
- data: string;
470
- driverParam: string;
471
- notNull: true;
472
- hasDefault: false;
473
- isPrimaryKey: false;
474
- isAutoincrement: false;
475
- hasRuntimeDefault: false;
476
- enumValues: [string, ...string[]];
477
- baseColumn: never;
478
- identity: undefined;
479
- generated: undefined;
480
- }, {}, {
481
- length: number | undefined;
482
- }>;
483
- partialEndVersionVector: import("drizzle-orm/sqlite-core").SQLiteColumn<{
484
- name: "partial_end_version_vector";
485
- tableName: "document_pending_updates";
486
- dataType: "string";
487
- columnType: "SQLiteText";
488
- data: string;
489
- driverParam: string;
490
- notNull: true;
491
- hasDefault: false;
492
- isPrimaryKey: false;
493
- isAutoincrement: false;
494
- hasRuntimeDefault: false;
495
- enumValues: [string, ...string[]];
496
- baseColumn: never;
497
- identity: undefined;
498
- generated: undefined;
499
- }, {}, {
500
- length: number | undefined;
501
- }>;
502
- sourceVersionVector: import("drizzle-orm/sqlite-core").SQLiteColumn<{
503
- name: "source_version_vector";
504
- tableName: "document_pending_updates";
505
- dataType: "string";
506
- columnType: "SQLiteText";
507
- data: string;
508
- driverParam: string;
509
- notNull: false;
510
- hasDefault: false;
511
- isPrimaryKey: false;
512
- isAutoincrement: false;
513
- hasRuntimeDefault: false;
514
- enumValues: [string, ...string[]];
515
- baseColumn: never;
516
- identity: undefined;
517
- generated: undefined;
518
- }, {}, {
519
- length: number | undefined;
520
- }>;
521
- createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
522
- name: "created_at";
523
- tableName: "document_pending_updates";
524
- dataType: "string";
525
- columnType: "SQLiteText";
526
- data: string;
527
- driverParam: string;
528
- notNull: true;
529
- hasDefault: false;
530
- isPrimaryKey: false;
531
- isAutoincrement: false;
532
- hasRuntimeDefault: false;
533
- enumValues: [string, ...string[]];
534
- baseColumn: never;
535
- identity: undefined;
536
- generated: undefined;
537
- }, {}, {
538
- length: number | undefined;
539
- }>;
540
- rekeyCount: import("drizzle-orm/sqlite-core").SQLiteColumn<{
541
- name: "rekey_count";
542
- tableName: "document_pending_updates";
543
- dataType: "number";
544
- columnType: "SQLiteInteger";
545
- data: number;
546
- driverParam: number;
547
- notNull: true;
548
- hasDefault: true;
549
- isPrimaryKey: false;
550
- isAutoincrement: false;
551
- hasRuntimeDefault: false;
552
- enumValues: undefined;
553
- baseColumn: never;
554
- identity: undefined;
555
- generated: undefined;
556
- }, {}, {}>;
557
- };
558
- dialect: "sqlite";
559
- }>;
560
361
  /**
561
362
  * Last terminal sync failure or quarantined incoming update per document scope.
562
363
  *
563
- * The durable write queue (`documentPendingUpdates`) has no status columns — a
564
- * row is either pending or settled-and-deleted. Terminal submissions and
364
+ * The durable write queue (queued rows of `documentHistoryUpdates`) has no
365
+ * status columns — a row is either queued or settled. Terminal submissions and
565
366
  * incoming updates that cannot be decrypted or imported are recorded here so
566
367
  * the write-queue view and footer can surface why the document is blocked.
567
368
  * Rows are upserted per scope and deleted only after a later fully validated
@@ -809,6 +610,38 @@ export declare const documentHistoryCheckpoints: import("drizzle-orm/sqlite-core
809
610
  };
810
611
  dialect: "sqlite";
811
612
  }>;
613
+ /**
614
+ * The local update log: one row per Loro update, serving as both the history
615
+ * tail (restore = checkpoint + tail) and the outbound write queue.
616
+ *
617
+ * Every locally authored update is stored once. While it waits for sync it
618
+ * carries an `updateId` (the id submitted to the server) and the version-vector
619
+ * metadata the submission needs; settlement clears them, leaving the row as
620
+ * ordinary tail history until compaction folds it into a checkpoint.
621
+ *
622
+ * Columns:
623
+ * - `id`: Row id; tail compaction deletes by it.
624
+ * - `appKind`, `localId`: Document scope matching `documents`.
625
+ * - `updateData`: Serialized Loro update payload.
626
+ * - `origin`: "local" (authored on this device) or "remote" (decrypted
627
+ * pulled update) for tail rows. Restores use it to advance the
628
+ * outgoing-delta marker across remote rows — their ops are already
629
+ * server-side — while a local row left behind by a crash stays below the
630
+ * marker so the next edit re-derives and sends it. "outbox" marks a queued
631
+ * update with no tail role (container metadata, whose content is its
632
+ * checkpoint, and full-state re-uploads after a remote reset); restores and
633
+ * compaction never see it and settlement deletes it.
634
+ * - `createdAt`: Insertion timestamp; with `rowid`, deterministic replay order.
635
+ * - `updateId`: Present exactly while the row is queued for sync; rekeyed
636
+ * after a lost acknowledgement poisons the submitted id.
637
+ * - `partialStartVersionVector` / `partialEndVersionVector`: Version vectors
638
+ * around a queued partial update.
639
+ * - `sourceVersionVector`: Present on a queued rotation baseline checkpoint.
640
+ * - `rekeyCount`: Durable bound on rekeys of a queued row.
641
+ *
642
+ * Invariant: compaction never deletes a queued row, so a checkpoint can cover
643
+ * a queued update's operations without removing it from the queue.
644
+ */
812
645
  export declare const documentHistoryUpdates: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
813
646
  name: "document_history_updates";
814
647
  schema: undefined;
@@ -927,6 +760,99 @@ export declare const documentHistoryUpdates: import("drizzle-orm/sqlite-core").S
927
760
  }, {}, {
928
761
  length: number | undefined;
929
762
  }>;
763
+ updateId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
764
+ name: "update_id";
765
+ tableName: "document_history_updates";
766
+ dataType: "string";
767
+ columnType: "SQLiteText";
768
+ data: string;
769
+ driverParam: string;
770
+ notNull: false;
771
+ hasDefault: false;
772
+ isPrimaryKey: false;
773
+ isAutoincrement: false;
774
+ hasRuntimeDefault: false;
775
+ enumValues: [string, ...string[]];
776
+ baseColumn: never;
777
+ identity: undefined;
778
+ generated: undefined;
779
+ }, {}, {
780
+ length: number | undefined;
781
+ }>;
782
+ partialStartVersionVector: import("drizzle-orm/sqlite-core").SQLiteColumn<{
783
+ name: "partial_start_version_vector";
784
+ tableName: "document_history_updates";
785
+ dataType: "string";
786
+ columnType: "SQLiteText";
787
+ data: string;
788
+ driverParam: string;
789
+ notNull: false;
790
+ hasDefault: false;
791
+ isPrimaryKey: false;
792
+ isAutoincrement: false;
793
+ hasRuntimeDefault: false;
794
+ enumValues: [string, ...string[]];
795
+ baseColumn: never;
796
+ identity: undefined;
797
+ generated: undefined;
798
+ }, {}, {
799
+ length: number | undefined;
800
+ }>;
801
+ partialEndVersionVector: import("drizzle-orm/sqlite-core").SQLiteColumn<{
802
+ name: "partial_end_version_vector";
803
+ tableName: "document_history_updates";
804
+ dataType: "string";
805
+ columnType: "SQLiteText";
806
+ data: string;
807
+ driverParam: string;
808
+ notNull: false;
809
+ hasDefault: false;
810
+ isPrimaryKey: false;
811
+ isAutoincrement: false;
812
+ hasRuntimeDefault: false;
813
+ enumValues: [string, ...string[]];
814
+ baseColumn: never;
815
+ identity: undefined;
816
+ generated: undefined;
817
+ }, {}, {
818
+ length: number | undefined;
819
+ }>;
820
+ sourceVersionVector: import("drizzle-orm/sqlite-core").SQLiteColumn<{
821
+ name: "source_version_vector";
822
+ tableName: "document_history_updates";
823
+ dataType: "string";
824
+ columnType: "SQLiteText";
825
+ data: string;
826
+ driverParam: string;
827
+ notNull: false;
828
+ hasDefault: false;
829
+ isPrimaryKey: false;
830
+ isAutoincrement: false;
831
+ hasRuntimeDefault: false;
832
+ enumValues: [string, ...string[]];
833
+ baseColumn: never;
834
+ identity: undefined;
835
+ generated: undefined;
836
+ }, {}, {
837
+ length: number | undefined;
838
+ }>;
839
+ rekeyCount: import("drizzle-orm/sqlite-core").SQLiteColumn<{
840
+ name: "rekey_count";
841
+ tableName: "document_history_updates";
842
+ dataType: "number";
843
+ columnType: "SQLiteInteger";
844
+ data: number;
845
+ driverParam: number;
846
+ notNull: true;
847
+ hasDefault: true;
848
+ isPrimaryKey: false;
849
+ isAutoincrement: false;
850
+ hasRuntimeDefault: false;
851
+ enumValues: undefined;
852
+ baseColumn: never;
853
+ identity: undefined;
854
+ generated: undefined;
855
+ }, {}, {}>;
930
856
  };
931
857
  dialect: "sqlite";
932
858
  }>;
@@ -2191,24 +2117,31 @@ export declare const containerMoveIntents: import("drizzle-orm/sqlite-core").SQL
2191
2117
  dialect: "sqlite";
2192
2118
  }>;
2193
2119
  /**
2194
- * Per-lane sync cursors for container data.
2120
+ * Per-lane sync state for container data: the server cursor and the local
2121
+ * freshness marker share one row per lane.
2195
2122
  *
2196
2123
  * Container sync is split into lanes, such as a parent-container child lane or
2197
- * a container-document membership lane. This table stores the last accepted
2198
- * server watermark for each lane so the next sync request can resume without
2199
- * replaying the entire tree.
2124
+ * a container-document membership lane. The cursor lets the next request
2125
+ * resume without replaying the entire tree. The freshness marker records the
2126
+ * last fully drained check independently of the cursor: empty server
2127
+ * responses do not always carry a new watermark, but startup still needs to
2128
+ * know that it recently checked the lane before polling again.
2200
2129
  *
2201
2130
  * Columns:
2202
2131
  * - `laneKind`: Sync lane category, such as `container_parent` or
2203
2132
  * `container_documents`.
2204
2133
  * - `laneId`: Lane identity. Root parent sync uses `root`, child sync uses a
2205
2134
  * parent-prefixed container id, and document lanes use the container id.
2206
- * - `watermarkUpdatedAt`: Server `updatedAt` value for the stored watermark.
2207
- * - `watermarkId`: Server id tie-breaker for the stored watermark.
2135
+ * - `watermarkUpdatedAt`: Server `updatedAt` value for the stored watermark;
2136
+ * null until a watermark is saved.
2137
+ * - `watermarkId`: Server id tie-breaker for the stored watermark; null
2138
+ * exactly when `watermarkUpdatedAt` is.
2208
2139
  * - `updatedAt`: Local timestamp for when the cursor was saved.
2140
+ * - `checkedAt`: Local timestamp for the most recent fully drained lane check;
2141
+ * null until one completes.
2209
2142
  *
2210
2143
  * Indexes:
2211
- * - `(laneKind, laneId)` is the primary key and stores one cursor per lane.
2144
+ * - `(laneKind, laneId)` is the primary key and stores one row per lane.
2212
2145
  */
2213
2146
  export declare const containerSyncWatermarks: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
2214
2147
  name: "container_sync_watermarks";
@@ -2259,45 +2192,7 @@ export declare const containerSyncWatermarks: import("drizzle-orm/sqlite-core").
2259
2192
  columnType: "SQLiteText";
2260
2193
  data: string;
2261
2194
  driverParam: string;
2262
- notNull: true;
2263
- hasDefault: false;
2264
- isPrimaryKey: false;
2265
- isAutoincrement: false;
2266
- hasRuntimeDefault: false;
2267
- enumValues: [string, ...string[]];
2268
- baseColumn: never;
2269
- identity: undefined;
2270
- generated: undefined;
2271
- }, {}, {
2272
- length: number | undefined;
2273
- }>;
2274
- watermarkId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2275
- name: "watermark_id";
2276
- tableName: "container_sync_watermarks";
2277
- dataType: "string";
2278
- columnType: "SQLiteText";
2279
- data: string;
2280
- driverParam: string;
2281
- notNull: true;
2282
- hasDefault: false;
2283
- isPrimaryKey: false;
2284
- isAutoincrement: false;
2285
- hasRuntimeDefault: false;
2286
- enumValues: [string, ...string[]];
2287
- baseColumn: never;
2288
- identity: undefined;
2289
- generated: undefined;
2290
- }, {}, {
2291
- length: number | undefined;
2292
- }>;
2293
- updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2294
- name: "updated_at";
2295
- tableName: "container_sync_watermarks";
2296
- dataType: "string";
2297
- columnType: "SQLiteText";
2298
- data: string;
2299
- driverParam: string;
2300
- notNull: true;
2195
+ notNull: false;
2301
2196
  hasDefault: false;
2302
2197
  isPrimaryKey: false;
2303
2198
  isAutoincrement: false;
@@ -2309,38 +2204,14 @@ export declare const containerSyncWatermarks: import("drizzle-orm/sqlite-core").
2309
2204
  }, {}, {
2310
2205
  length: number | undefined;
2311
2206
  }>;
2312
- };
2313
- dialect: "sqlite";
2314
- }>;
2315
- /**
2316
- * Local freshness markers for container sync lanes.
2317
- *
2318
- * These rows track the last successful API check for a lane independently from
2319
- * server watermarks. Empty server responses do not always include a new
2320
- * watermark, but the client still needs to remember that it recently checked
2321
- * the lane so startup can use cached container state without polling every
2322
- * time a container tree opens.
2323
- *
2324
- * Columns:
2325
- * - `laneKind`: Sync lane category matching `containerSyncWatermarks`.
2326
- * - `laneId`: Lane identity matching `containerSyncWatermarks`.
2327
- * - `checkedAt`: Local timestamp for the most recent successful lane check.
2328
- *
2329
- * Indexes:
2330
- * - `(laneKind, laneId)` is the primary key and stores one marker per lane.
2331
- */
2332
- export declare const containerSyncLaneChecks: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
2333
- name: "container_sync_lane_checks";
2334
- schema: undefined;
2335
- columns: {
2336
- laneKind: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2337
- name: "lane_kind";
2338
- tableName: "container_sync_lane_checks";
2207
+ watermarkId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2208
+ name: "watermark_id";
2209
+ tableName: "container_sync_watermarks";
2339
2210
  dataType: "string";
2340
2211
  columnType: "SQLiteText";
2341
2212
  data: string;
2342
2213
  driverParam: string;
2343
- notNull: true;
2214
+ notNull: false;
2344
2215
  hasDefault: false;
2345
2216
  isPrimaryKey: false;
2346
2217
  isAutoincrement: false;
@@ -2352,14 +2223,14 @@ export declare const containerSyncLaneChecks: import("drizzle-orm/sqlite-core").
2352
2223
  }, {}, {
2353
2224
  length: number | undefined;
2354
2225
  }>;
2355
- laneId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2356
- name: "lane_id";
2357
- tableName: "container_sync_lane_checks";
2226
+ updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2227
+ name: "updated_at";
2228
+ tableName: "container_sync_watermarks";
2358
2229
  dataType: "string";
2359
2230
  columnType: "SQLiteText";
2360
2231
  data: string;
2361
2232
  driverParam: string;
2362
- notNull: true;
2233
+ notNull: false;
2363
2234
  hasDefault: false;
2364
2235
  isPrimaryKey: false;
2365
2236
  isAutoincrement: false;
@@ -2373,12 +2244,12 @@ export declare const containerSyncLaneChecks: import("drizzle-orm/sqlite-core").
2373
2244
  }>;
2374
2245
  checkedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2375
2246
  name: "checked_at";
2376
- tableName: "container_sync_lane_checks";
2247
+ tableName: "container_sync_watermarks";
2377
2248
  dataType: "string";
2378
2249
  columnType: "SQLiteText";
2379
2250
  data: string;
2380
2251
  driverParam: string;
2381
- notNull: true;
2252
+ notNull: false;
2382
2253
  hasDefault: false;
2383
2254
  isPrimaryKey: false;
2384
2255
  isAutoincrement: false;
@@ -5574,13 +5445,13 @@ export declare const clientSQLiteSchema: {
5574
5445
  };
5575
5446
  dialect: "sqlite";
5576
5447
  }>;
5577
- containerSyncLaneChecks: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
5578
- name: "container_sync_lane_checks";
5448
+ containerSyncWatermarks: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
5449
+ name: "container_sync_watermarks";
5579
5450
  schema: undefined;
5580
5451
  columns: {
5581
5452
  laneKind: import("drizzle-orm/sqlite-core").SQLiteColumn<{
5582
5453
  name: "lane_kind";
5583
- tableName: "container_sync_lane_checks";
5454
+ tableName: "container_sync_watermarks";
5584
5455
  dataType: "string";
5585
5456
  columnType: "SQLiteText";
5586
5457
  data: string;
@@ -5599,51 +5470,6 @@ export declare const clientSQLiteSchema: {
5599
5470
  }>;
5600
5471
  laneId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
5601
5472
  name: "lane_id";
5602
- tableName: "container_sync_lane_checks";
5603
- dataType: "string";
5604
- columnType: "SQLiteText";
5605
- data: string;
5606
- driverParam: string;
5607
- notNull: true;
5608
- hasDefault: false;
5609
- isPrimaryKey: false;
5610
- isAutoincrement: false;
5611
- hasRuntimeDefault: false;
5612
- enumValues: [string, ...string[]];
5613
- baseColumn: never;
5614
- identity: undefined;
5615
- generated: undefined;
5616
- }, {}, {
5617
- length: number | undefined;
5618
- }>;
5619
- checkedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
5620
- name: "checked_at";
5621
- tableName: "container_sync_lane_checks";
5622
- dataType: "string";
5623
- columnType: "SQLiteText";
5624
- data: string;
5625
- driverParam: string;
5626
- notNull: true;
5627
- hasDefault: false;
5628
- isPrimaryKey: false;
5629
- isAutoincrement: false;
5630
- hasRuntimeDefault: false;
5631
- enumValues: [string, ...string[]];
5632
- baseColumn: never;
5633
- identity: undefined;
5634
- generated: undefined;
5635
- }, {}, {
5636
- length: number | undefined;
5637
- }>;
5638
- };
5639
- dialect: "sqlite";
5640
- }>;
5641
- containerSyncWatermarks: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
5642
- name: "container_sync_watermarks";
5643
- schema: undefined;
5644
- columns: {
5645
- laneKind: import("drizzle-orm/sqlite-core").SQLiteColumn<{
5646
- name: "lane_kind";
5647
5473
  tableName: "container_sync_watermarks";
5648
5474
  dataType: "string";
5649
5475
  columnType: "SQLiteText";
@@ -5661,14 +5487,14 @@ export declare const clientSQLiteSchema: {
5661
5487
  }, {}, {
5662
5488
  length: number | undefined;
5663
5489
  }>;
5664
- laneId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
5665
- name: "lane_id";
5490
+ watermarkUpdatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
5491
+ name: "watermark_updated_at";
5666
5492
  tableName: "container_sync_watermarks";
5667
5493
  dataType: "string";
5668
5494
  columnType: "SQLiteText";
5669
5495
  data: string;
5670
5496
  driverParam: string;
5671
- notNull: true;
5497
+ notNull: false;
5672
5498
  hasDefault: false;
5673
5499
  isPrimaryKey: false;
5674
5500
  isAutoincrement: false;
@@ -5680,14 +5506,14 @@ export declare const clientSQLiteSchema: {
5680
5506
  }, {}, {
5681
5507
  length: number | undefined;
5682
5508
  }>;
5683
- watermarkUpdatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
5684
- name: "watermark_updated_at";
5509
+ watermarkId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
5510
+ name: "watermark_id";
5685
5511
  tableName: "container_sync_watermarks";
5686
5512
  dataType: "string";
5687
5513
  columnType: "SQLiteText";
5688
5514
  data: string;
5689
5515
  driverParam: string;
5690
- notNull: true;
5516
+ notNull: false;
5691
5517
  hasDefault: false;
5692
5518
  isPrimaryKey: false;
5693
5519
  isAutoincrement: false;
@@ -5699,14 +5525,14 @@ export declare const clientSQLiteSchema: {
5699
5525
  }, {}, {
5700
5526
  length: number | undefined;
5701
5527
  }>;
5702
- watermarkId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
5703
- name: "watermark_id";
5528
+ updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
5529
+ name: "updated_at";
5704
5530
  tableName: "container_sync_watermarks";
5705
5531
  dataType: "string";
5706
5532
  columnType: "SQLiteText";
5707
5533
  data: string;
5708
5534
  driverParam: string;
5709
- notNull: true;
5535
+ notNull: false;
5710
5536
  hasDefault: false;
5711
5537
  isPrimaryKey: false;
5712
5538
  isAutoincrement: false;
@@ -5718,14 +5544,14 @@ export declare const clientSQLiteSchema: {
5718
5544
  }, {}, {
5719
5545
  length: number | undefined;
5720
5546
  }>;
5721
- updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
5722
- name: "updated_at";
5547
+ checkedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
5548
+ name: "checked_at";
5723
5549
  tableName: "container_sync_watermarks";
5724
5550
  dataType: "string";
5725
5551
  columnType: "SQLiteText";
5726
5552
  data: string;
5727
5553
  driverParam: string;
5728
- notNull: true;
5554
+ notNull: false;
5729
5555
  hasDefault: false;
5730
5556
  isPrimaryKey: false;
5731
5557
  isAutoincrement: false;
@@ -7793,182 +7619,6 @@ export declare const clientSQLiteSchema: {
7793
7619
  };
7794
7620
  dialect: "sqlite";
7795
7621
  }>;
7796
- documentPendingUpdates: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
7797
- name: "document_pending_updates";
7798
- schema: undefined;
7799
- columns: {
7800
- id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
7801
- name: "id";
7802
- tableName: "document_pending_updates";
7803
- dataType: "string";
7804
- columnType: "SQLiteText";
7805
- data: string;
7806
- driverParam: string;
7807
- notNull: false;
7808
- hasDefault: false;
7809
- isPrimaryKey: false;
7810
- isAutoincrement: false;
7811
- hasRuntimeDefault: false;
7812
- enumValues: [string, ...string[]];
7813
- baseColumn: never;
7814
- identity: undefined;
7815
- generated: undefined;
7816
- }, {}, {
7817
- length: number | undefined;
7818
- }>;
7819
- appKind: import("drizzle-orm/sqlite-core").SQLiteColumn<{
7820
- name: "app_kind";
7821
- tableName: "document_pending_updates";
7822
- dataType: "string";
7823
- columnType: "SQLiteText";
7824
- data: string;
7825
- driverParam: string;
7826
- notNull: true;
7827
- hasDefault: false;
7828
- isPrimaryKey: false;
7829
- isAutoincrement: false;
7830
- hasRuntimeDefault: false;
7831
- enumValues: [string, ...string[]];
7832
- baseColumn: never;
7833
- identity: undefined;
7834
- generated: undefined;
7835
- }, {}, {
7836
- length: number | undefined;
7837
- }>;
7838
- localId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
7839
- name: "local_id";
7840
- tableName: "document_pending_updates";
7841
- dataType: "string";
7842
- columnType: "SQLiteText";
7843
- data: string;
7844
- driverParam: string;
7845
- notNull: true;
7846
- hasDefault: false;
7847
- isPrimaryKey: false;
7848
- isAutoincrement: false;
7849
- hasRuntimeDefault: false;
7850
- enumValues: [string, ...string[]];
7851
- baseColumn: never;
7852
- identity: undefined;
7853
- generated: undefined;
7854
- }, {}, {
7855
- length: number | undefined;
7856
- }>;
7857
- updateData: import("drizzle-orm/sqlite-core").SQLiteColumn<{
7858
- name: "update_data";
7859
- tableName: "document_pending_updates";
7860
- dataType: "string";
7861
- columnType: "SQLiteText";
7862
- data: string;
7863
- driverParam: string;
7864
- notNull: true;
7865
- hasDefault: false;
7866
- isPrimaryKey: false;
7867
- isAutoincrement: false;
7868
- hasRuntimeDefault: false;
7869
- enumValues: [string, ...string[]];
7870
- baseColumn: never;
7871
- identity: undefined;
7872
- generated: undefined;
7873
- }, {}, {
7874
- length: number | undefined;
7875
- }>;
7876
- partialStartVersionVector: import("drizzle-orm/sqlite-core").SQLiteColumn<{
7877
- name: "partial_start_version_vector";
7878
- tableName: "document_pending_updates";
7879
- dataType: "string";
7880
- columnType: "SQLiteText";
7881
- data: string;
7882
- driverParam: string;
7883
- notNull: true;
7884
- hasDefault: false;
7885
- isPrimaryKey: false;
7886
- isAutoincrement: false;
7887
- hasRuntimeDefault: false;
7888
- enumValues: [string, ...string[]];
7889
- baseColumn: never;
7890
- identity: undefined;
7891
- generated: undefined;
7892
- }, {}, {
7893
- length: number | undefined;
7894
- }>;
7895
- partialEndVersionVector: import("drizzle-orm/sqlite-core").SQLiteColumn<{
7896
- name: "partial_end_version_vector";
7897
- tableName: "document_pending_updates";
7898
- dataType: "string";
7899
- columnType: "SQLiteText";
7900
- data: string;
7901
- driverParam: string;
7902
- notNull: true;
7903
- hasDefault: false;
7904
- isPrimaryKey: false;
7905
- isAutoincrement: false;
7906
- hasRuntimeDefault: false;
7907
- enumValues: [string, ...string[]];
7908
- baseColumn: never;
7909
- identity: undefined;
7910
- generated: undefined;
7911
- }, {}, {
7912
- length: number | undefined;
7913
- }>;
7914
- sourceVersionVector: import("drizzle-orm/sqlite-core").SQLiteColumn<{
7915
- name: "source_version_vector";
7916
- tableName: "document_pending_updates";
7917
- dataType: "string";
7918
- columnType: "SQLiteText";
7919
- data: string;
7920
- driverParam: string;
7921
- notNull: false;
7922
- hasDefault: false;
7923
- isPrimaryKey: false;
7924
- isAutoincrement: false;
7925
- hasRuntimeDefault: false;
7926
- enumValues: [string, ...string[]];
7927
- baseColumn: never;
7928
- identity: undefined;
7929
- generated: undefined;
7930
- }, {}, {
7931
- length: number | undefined;
7932
- }>;
7933
- createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
7934
- name: "created_at";
7935
- tableName: "document_pending_updates";
7936
- dataType: "string";
7937
- columnType: "SQLiteText";
7938
- data: string;
7939
- driverParam: string;
7940
- notNull: true;
7941
- hasDefault: false;
7942
- isPrimaryKey: false;
7943
- isAutoincrement: false;
7944
- hasRuntimeDefault: false;
7945
- enumValues: [string, ...string[]];
7946
- baseColumn: never;
7947
- identity: undefined;
7948
- generated: undefined;
7949
- }, {}, {
7950
- length: number | undefined;
7951
- }>;
7952
- rekeyCount: import("drizzle-orm/sqlite-core").SQLiteColumn<{
7953
- name: "rekey_count";
7954
- tableName: "document_pending_updates";
7955
- dataType: "number";
7956
- columnType: "SQLiteInteger";
7957
- data: number;
7958
- driverParam: number;
7959
- notNull: true;
7960
- hasDefault: true;
7961
- isPrimaryKey: false;
7962
- isAutoincrement: false;
7963
- hasRuntimeDefault: false;
7964
- enumValues: undefined;
7965
- baseColumn: never;
7966
- identity: undefined;
7967
- generated: undefined;
7968
- }, {}, {}>;
7969
- };
7970
- dialect: "sqlite";
7971
- }>;
7972
7622
  documentSyncFailures: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
7973
7623
  name: "document_sync_failures";
7974
7624
  schema: undefined;