@rdlabo/ionic-angular-kit 21.5.38 → 21.5.39

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rdlabo/ionic-angular-kit",
3
- "version": "21.5.38",
3
+ "version": "21.5.39",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/rdlabo-team/ionic-angular-library.git"
@@ -331,7 +331,7 @@ declare function commandIdentityMatchesReplicaRow(schema: OfflineReplicaEntitySc
331
331
  declare function offlineReplicaRemoteIdentity(schema: OfflineReplicaEntitySchema<Record<string, unknown>>, identity: OfflineReplicaIdentity): OfflineReplicaRemoteIdentity | null;
332
332
 
333
333
  /** Current durable storage schema used by both web and native repositories. */
334
- declare const OFFLINE_SCHEMA_VERSION = 1;
334
+ declare const OFFLINE_SCHEMA_VERSION = 2;
335
335
  /** User and partition scope of all local offline data. */
336
336
  interface OfflineScope {
337
337
  userId: OfflinePrincipalId;
@@ -342,7 +342,7 @@ type OfflineReplicaSyncState = 'confirmed' | 'pending' | 'blocked_auth' | 'rejec
342
342
  type OfflineReplicaVisibility = 'present' | 'pending_delete';
343
343
  type OfflineReplicaMutation = 'upsert' | 'delete';
344
344
  /** Durable processing state of an outbox command. */
345
- type OfflineCommandState = 'pending' | 'sending' | 'retry_wait' | 'blocked_auth' | 'rejected' | 'conflict';
345
+ type OfflineCommandState = 'pending' | 'sending' | 'retry_wait' | 'awaiting_pull' | 'blocked_auth' | 'rejected' | 'conflict';
346
346
  interface OfflineCommandBase<T> extends OfflineScope {
347
347
  commandId: string;
348
348
  aggregateType: string;
@@ -352,10 +352,11 @@ interface OfflineCommandBase<T> extends OfflineScope {
352
352
  identity: OfflineCommandIdentity;
353
353
  operation: string;
354
354
  payload: T;
355
- /** Full optimistic entity value displayed while this command is pending. */
356
- optimisticValue: unknown;
357
- /** Product-owned companion rows changed atomically with this command. */
358
- optimisticCompanions?: readonly OfflineOptimisticReplicaCompanion[];
355
+ /**
356
+ * Declared localOnly projection rows this intent may create, update, or remove.
357
+ * Kit persists keys only; before/after images are not durable truth.
358
+ */
359
+ localOnlyFootprint?: readonly OfflineReplicaRowKey[];
359
360
  /** Durable intent used to preserve a hidden tombstone across restart and replay. */
360
361
  replicaMutation?: OfflineReplicaMutation;
361
362
  payloadHash: string;
@@ -367,12 +368,8 @@ interface OfflineCommandBase<T> extends OfflineScope {
367
368
  lastErrorCode: string | null;
368
369
  /** True when transport started but the client cannot prove whether the server committed. */
369
370
  serverCommitUnknown?: boolean;
370
- }
371
- /** Durable before/after image used to reconcile product-owned derived rows. */
372
- interface OfflineOptimisticReplicaCompanion {
373
- key: OfflineReplicaRowKey;
374
- before: OfflineReplicaRow | null;
375
- after: OfflineReplicaRow | null;
371
+ /** Remote identity captured after transport for journal-independent authoritative reconciliation. */
372
+ reconciliationIdentity?: OfflineReplicaRemoteIdentity;
376
373
  }
377
374
  type OfflineCommand<T = unknown> = OfflineCommandBase<T>;
378
375
  /** Product replica row materialized from a versioned schema entity. */
@@ -540,12 +537,94 @@ declare class IonicOfflineRepository implements OfflineRepository {
540
537
  static ɵprov: i0.ɵɵInjectableDeclaration<IonicOfflineRepository>;
541
538
  }
542
539
 
540
+ /**
541
+ * Authoritative inputs for rematerializing one aggregate from its remaining
542
+ * ordered Outbox chain.
543
+ *
544
+ * `baseRow` is the current replica row for the aggregate, including its latest
545
+ * `confirmedValues`. `localOnlyRows` are the current localOnly projection rows
546
+ * owned by that aggregate. `commands` is the complete remaining FIFO chain
547
+ * after the triggering mutation.
548
+ */
549
+ interface OfflineAggregateIntentProjectInput {
550
+ /** Current aggregate base replica row, or `null` when the row is absent. */
551
+ readonly baseRow: OfflineReplicaRow | null;
552
+ /** Current authoritative localOnly projection rows for this aggregate. */
553
+ readonly localOnlyRows: readonly OfflineReplicaRow[];
554
+ /** Complete remaining ordered pending command chain for this aggregate. */
555
+ readonly commands: readonly OfflineCommand[];
556
+ /** Boundary that requested rematerialization. Only pull may return a conflict outcome. */
557
+ readonly trigger?: 'local' | 'pull';
558
+ /** Incoming authoritative revision when `trigger` is `pull`. */
559
+ readonly incomingRevision?: string | number;
560
+ }
561
+ /**
562
+ * Fully rematerialized aggregate projection.
563
+ *
564
+ * Kit writes `baseRow` as the sole base mutation (`null` removes the row) and
565
+ * applies only the localOnly put/remove lists. Domain folding belongs here;
566
+ * Kit never interprets command payloads.
567
+ */
568
+ interface OfflineAggregateIntentProjection {
569
+ /** Rematerialized base replica row, or `null` to remove the aggregate row. */
570
+ readonly baseRow: OfflineReplicaRow | null;
571
+ /** LocalOnly projection rows to upsert for this aggregate. */
572
+ readonly putLocalOnlyRows?: readonly OfflineReplicaRow[];
573
+ /** LocalOnly projection rows to remove for this aggregate. */
574
+ readonly removeLocalOnlyRows?: readonly OfflineReplicaRowKey[];
575
+ }
576
+ /** Product decision that pending intents cannot be replayed onto an incoming authoritative revision. */
577
+ interface OfflineAggregateIntentConflict {
578
+ readonly kind: 'conflict';
579
+ readonly reason: string;
580
+ }
581
+ /** Result of product-owned aggregate rematerialization. */
582
+ type OfflineAggregateIntentProjectResult = OfflineAggregateIntentProjection | OfflineAggregateIntentConflict;
583
+ /**
584
+ * Product-owned pure rematerialization of one aggregate.
585
+ *
586
+ * Given the authoritative base row, current localOnly projection rows, and the
587
+ * remaining ordered {@link OfflineCommand} chain, return one fully materialized
588
+ * base row plus localOnly put/remove mutations. The adapter must derive only
589
+ * from confirmed base/localOnly values plus complete FIFO pending intents. It
590
+ * must not perform I/O; Kit supplies already-read replica state and validates
591
+ * scope, schema, identity, and footprints before writing.
592
+ */
593
+ interface OfflineAggregateIntentProjector {
594
+ /** Rematerializes one aggregate from authoritative replica state and remaining intents. */
595
+ project(input: OfflineAggregateIntentProjectInput): OfflineAggregateIntentProjectResult;
596
+ }
597
+ /** Returns whether the projector rejected replay onto an authoritative pull revision. */
598
+ declare function isOfflineAggregateIntentConflict(result: OfflineAggregateIntentProjectResult): result is OfflineAggregateIntentConflict;
599
+ /** Required product adapter for aggregate rematerialization from remaining Outbox intents. */
600
+ declare const OFFLINE_AGGREGATE_INTENT_PROJECTOR: InjectionToken<OfflineAggregateIntentProjector>;
601
+ /**
602
+ * Converts a validated aggregate projection into replica put/remove mutations.
603
+ *
604
+ * @param projection - Rematerialized aggregate returned by the product projector.
605
+ * @param baseRow - Current aggregate base row, used when the projection removes it.
606
+ */
607
+ declare function offlineAggregateIntentMutations(projection: OfflineAggregateIntentProjection, baseRow: OfflineReplicaRow | null): Pick<OfflineReplicaTransaction, 'putRows' | 'removeRows'>;
608
+
543
609
  /** Server pull request for one user or partition-scoped replica. */
544
610
  interface OfflineReplicaPullRequest {
545
611
  scope: OfflineScope;
546
612
  cursor: string;
547
613
  schemaVersion: number;
548
614
  schemaHash: string;
615
+ /**
616
+ * Successfully transported commands that still require an authoritative row acknowledgement.
617
+ * The server must hydrate and authorize each target from primary state and acknowledge it only
618
+ * on the returned reconciliation change; it must never trust this client identity as proof.
619
+ */
620
+ reconciliationTargets: readonly OfflineReplicaReconciliationTarget[];
621
+ }
622
+ /** One awaiting-pull command whose canonical state must be hydrated independently of journal retention. */
623
+ interface OfflineReplicaReconciliationTarget {
624
+ readonly commandId: string;
625
+ readonly operation: string;
626
+ readonly sourceKey: string;
627
+ readonly identity: OfflineReplicaRemoteIdentity;
549
628
  }
550
629
  /** One server-side replica mutation returned by an explicit pull page. */
551
630
  interface OfflineReplicaChangeBase {
@@ -653,30 +732,44 @@ declare class OfflineReplicaPullService {
653
732
  * Serializes only local replica read/derive/write critical sections. Network
654
733
  * transport must stay outside this coordinator so synchronization never holds
655
734
  * the local mutation lane while waiting on I/O.
735
+ *
736
+ * This coordinator is the sole caller and validator of aggregate rematerialization.
737
+ * Invoke {@link projectAggregateIntent} only from inside {@link run}; this
738
+ * method does not acquire the lane itself.
656
739
  */
657
740
  declare class OfflineReplicaMutationCoordinator {
658
741
  #private;
742
+ /** Enqueues one local replica critical section behind any in-flight mutation. */
659
743
  run<T>(operation: () => Promise<T>): Promise<T>;
744
+ /** Resolves after every currently queued replica mutation has settled. */
660
745
  drain(): Promise<void>;
746
+ /**
747
+ * Calls the product aggregate-intent projector and validates scope, schema,
748
+ * identity, and footprints. Throws before returning when the projector is
749
+ * missing or the projection is unsafe to write.
750
+ *
751
+ * @param input - Authoritative base row, current localOnly rows, and remaining commands.
752
+ */
753
+ projectAggregateIntent(input: OfflineAggregateIntentProjectInput): OfflineAggregateIntentProjectResult;
661
754
  static ɵfac: i0.ɵɵFactoryDeclaration<OfflineReplicaMutationCoordinator, never>;
662
755
  static ɵprov: i0.ɵɵInjectableDeclaration<OfflineReplicaMutationCoordinator>;
663
756
  }
757
+ /** Declared localOnly keys persisted on one Outbox command. */
758
+ declare function commandFootprintKeys(command: Pick<OfflineCommand, 'localOnlyFootprint'>): readonly OfflineReplicaRowKey[];
664
759
 
665
760
  /** Server acknowledgement used to reconcile one optimistic local mutation. */
666
761
  interface OfflineCommandResult {
667
762
  /** Remote id returned by a successful generated-identity mutation. */
668
763
  remoteId?: OfflineGeneratedRemoteId;
669
764
  serverRevision?: string | number;
670
- /** Full server-confirmed domain values after applying the mutation. */
671
- confirmedValues?: unknown;
672
765
  /**
673
- * Server-confirmed local-only projection changes owned by this command.
766
+ * Full server-confirmed domain values after applying the mutation.
674
767
  *
675
- * Kit validates that every row belongs to the command's declared optimistic
676
- * companion footprint, then commits these changes atomically with the base
677
- * row acknowledgement, command removal, and reconciliation marker.
768
+ * Kit does not treat this as the durable confirmed baseline while the
769
+ * command remains in the Outbox. Authoritative confirmed values come from
770
+ * pull acknowledgement of `commandId`.
678
771
  */
679
- confirmedCompanions?: readonly OfflineConfirmedReplicaCompanion[];
772
+ confirmedValues?: unknown;
680
773
  /** Removes the local replica row after a confirmed server delete. */
681
774
  removeReplica?: boolean;
682
775
  /**
@@ -686,16 +779,6 @@ interface OfflineCommandResult {
686
779
  clearRemoteId?: boolean;
687
780
  response?: unknown;
688
781
  }
689
- /** Local-only projection changes confirmed by one server acknowledgement. */
690
- interface OfflineConfirmedReplicaCompanion {
691
- /** Exact optimistic companion footprint entry owned by this command. */
692
- readonly key: OfflineReplicaRowKey;
693
- /**
694
- * Applies the acknowledged domain effect to the latest confirmed projection read inside Kit's
695
- * ACK lane. Return `null` to remove the confirmed projection.
696
- */
697
- readonly reduce: (latestConfirmedValues: unknown) => unknown | null;
698
- }
699
782
  /** Target identity resolved from the local replica immediately before transport. */
700
783
  type OfflineCommandTarget = {
701
784
  readonly kind: 'generated';
@@ -705,20 +788,11 @@ type OfflineCommandTarget = {
705
788
  readonly kind: 'natural';
706
789
  readonly naturalKey: OfflineNaturalKey;
707
790
  };
708
- /** 不透明なoperationを製品APIへ送信し、local replicaへ投影するadapter。 */
709
791
  /** Product adapter that sends commands and projects acknowledgements into entities. */
710
792
  interface OfflineCommandExecutor {
711
793
  /** Sends the command using `command.commandId` as its durable server-side idempotency key. */
712
794
  execute(command: OfflineCommand, target: OfflineCommandTarget): Promise<OfflineCommandResult>;
713
795
  withServerRevision(command: OfflineCommand, revision: string | number): OfflineCommand;
714
- /**
715
- * Reapplies a complete aggregate's pending intents to a newer confirmed
716
- * value. Return null when any intent is revision-sensitive. The returned
717
- * values correspond to the original FIFO command order. Kit alone updates
718
- * command metadata; payload and idempotency identity remain immutable.
719
- * Without this hook, revision changes conflict by default.
720
- */
721
- rebasePendingCommands?(commands: readonly OfflineCommand[], confirmedValues: unknown, revision: string | number, companionRows: readonly OfflineReplicaRow[]): OfflinePendingRebase | null | Promise<OfflinePendingRebase | null>;
722
796
  /**
723
797
  * Whether this transport error authoritatively proves that this idempotency
724
798
  * key did not commit. Returning true may clear an ambiguity retained from an
@@ -731,18 +805,6 @@ interface OfflineCommandExecutor {
731
805
  */
732
806
  withoutServerRevision?(command: OfflineCommand): OfflineCommand;
733
807
  }
734
- /** Product projection result after safely replaying pending intents onto a newer confirmed revision. */
735
- interface OfflinePendingRebase {
736
- /** Recomputed projections in the original durable FIFO order. */
737
- steps: readonly OfflinePendingRebaseStep[];
738
- }
739
- /** Projection state produced for one immutable durable command in FIFO order. */
740
- interface OfflinePendingRebaseStep {
741
- /** Recomputed full aggregate value after this command's intent is applied. */
742
- optimisticValue: unknown;
743
- /** Same footprint as the original command, rematerialized from the new confirmed value. */
744
- optimisticCompanions?: readonly OfflineOptimisticReplicaCompanion[];
745
- }
746
808
  /** DI token for the product-specific command transport adapter. */
747
809
  declare const OFFLINE_COMMAND_EXECUTOR: InjectionToken<OfflineCommandExecutor>;
748
810
  /** Authenticated user and partition scopes currently eligible for synchronization. */
@@ -1305,6 +1367,15 @@ interface ProvideSynchronizedOfflineOptions extends ProvideOfflineOptionsBase {
1305
1367
  commandExecutor: Type<OfflineCommandExecutor>;
1306
1368
  /** Product transport for explicit cursor-based server delta pulls. */
1307
1369
  replicaPuller: Type<OfflineReplicaPuller>;
1370
+ /**
1371
+ * Required pure adapter that rematerializes one aggregate from its
1372
+ * authoritative confirmed base/localOnly values and remaining Outbox intents.
1373
+ *
1374
+ * Kit calls it inside {@link OfflineReplicaMutationCoordinator} after enqueue,
1375
+ * replacement, discard, transport success, and pull acknowledgement. Do not
1376
+ * call the projector from product code.
1377
+ */
1378
+ aggregateIntentProjector: Type<OfflineAggregateIntentProjector>;
1308
1379
  }
1309
1380
  /** Server- or external-source read cache with no mutation transport or Outbox. */
1310
1381
  interface ProvideReadCacheOfflineOptions extends ProvideOfflineOptionsBase {
@@ -1333,30 +1404,29 @@ declare function assertSupportedOfflineMode(platform: string, mode: 'synchronize
1333
1404
 
1334
1405
  /** Aggregate synchronization state exposed to application UI. */
1335
1406
  type OfflineSyncState = 'idle' | 'pending' | 'syncing' | 'attention';
1336
- /** Mutation and optimistic entity materialization appended atomically to the outbox. */
1407
+ /** Mutation appended atomically to the outbox; Kit rematerializes optimistic replica state. */
1337
1408
  interface EnqueueOfflineCommand<T = unknown> {
1338
1409
  scopeId: string;
1339
1410
  aggregateType: string;
1340
1411
  identity: EnqueueOfflineCommandIdentity;
1341
1412
  operation: string;
1342
1413
  payload: T;
1343
- /** Full local entity value committed to the replica before the command is exposed to the UI. */
1344
- optimisticValue: unknown;
1345
1414
  /**
1346
1415
  * Optimistically hides an existing DB row while retaining its identity and
1347
1416
  * confirmed baseline for durable replay, conflict handling, and discard.
1348
1417
  */
1349
1418
  replicaMutation?: 'upsert' | 'delete';
1350
1419
  baseRevision?: string | number | null;
1420
+ /** Declared localOnly projection rows this intent may create, update, or remove. */
1421
+ localOnlyFootprint?: readonly OfflineReplicaRowKey[];
1351
1422
  }
1352
1423
  /**
1353
1424
  * A command prepared from replica reads while enqueue/ACK projection is
1354
- * serialized. Only product-owned row changes are accepted here; the sync
1355
- * service owns Outbox and cursor changes.
1425
+ * serialized. Kit rematerializes the aggregate; the prepare callback must not
1426
+ * supply replica row images as independent truth.
1356
1427
  */
1357
1428
  interface PreparedOfflineCommand<T = unknown> {
1358
1429
  request: EnqueueOfflineCommand<T>;
1359
- replicaTransaction?: Pick<OfflineReplicaTransaction, 'putRows' | 'removeRows'>;
1360
1430
  }
1361
1431
  interface PreparedOfflineBatchOptions {
1362
1432
  flush?: boolean;
@@ -1414,8 +1484,8 @@ declare class OfflineSyncService {
1414
1484
  flush?: boolean;
1415
1485
  }): Promise<string>;
1416
1486
  /**
1417
- * Reads, derives, and commits the base optimistic row, product companion
1418
- * rows, and Outbox command as one serialized replica transaction.
1487
+ * Reads, derives, and commits one Outbox command, then rematerializes its
1488
+ * aggregate from confirmed replica values plus remaining FIFO intents.
1419
1489
  */
1420
1490
  enqueuePrepared<T>(prepare: (repository: OfflineRepository) => Promise<PreparedOfflineCommand<T>>, options?: {
1421
1491
  flush?: boolean;
@@ -1480,5 +1550,5 @@ declare class OfflineRequestFallbackService {
1480
1550
  static ɵprov: i0.ɵɵInjectableDeclaration<OfflineRequestFallbackService>;
1481
1551
  }
1482
1552
 
1483
- export { COMMUNITY_SQLITE, DEFAULT_OFFLINE_COMMAND_HOOKS, IonicOfflineRepository, OFFLINE_BYPASS, OFFLINE_COMMAND_EXECUTOR, OFFLINE_COMMAND_HOOKS, OFFLINE_KIT_OPTIONS, OFFLINE_MUTATION_REQUEST_POLICIES, OFFLINE_REPLICA_PROJECTOR, OFFLINE_REPLICA_PULLER, OFFLINE_REPOSITORY, OFFLINE_REQUEST_POLICIES, OFFLINE_RESPONSE_HEADER, OFFLINE_RETRY_RANDOM, OFFLINE_SCHEMA_VERSION, OFFLINE_SYNC_CONTEXT, OfflineCommandInFlightError, OfflineCoordinatorService, OfflineMutationPolicyConflictError, OfflineMutationProtocolError, OfflineMutationRequestPolicyRegistry, OfflineNetworkService, OfflineOutboxCapacityError, OfflinePayloadValidationError, OfflineReplicaMutationCoordinator, OfflineReplicaPullService, OfflineReplicaSchemaMismatchError, OfflineRequestFallbackService, OfflineRequestPolicyRegistry, OfflineSessionService, OfflineStorageUnavailableError, OfflineSyncService, SqliteOfflineRepository, assertOfflineLocalId, assertOfflineReplicaGeneratedRemoteId, assertOfflineReplicaNaturalKeyBaseline, assertSupportedOfflineMode, booleanColumn, canonicalOfflineCommandIdentity, canonicalOfflinePrincipalId, canonicalOfflineRemoteIdentity, canonicalOfflineReplicaIdentity, canonicalOfflineReplicaRowKey, commandIdentityFromReplicaIdentity, commandIdentityMatchesReplicaRow, createCommunitySqliteDriver, createOfflineAuthBridge, createRandomOfflineEncryptionKey, datetime, decodeOfflineReplicaValues, defineOfflineReplicaSchema, defineReplicaEntity, encodeOfflineReplicaValues, generatedId, ignored, integer, isOfflineFallbackError, isOfflineStorageUnavailableError, json, localOnly, naturalKey, normalizeOfflineNaturalKey, normalizeOfflineReplicaPullPage, nullable, offlineCommandLookupIdentity, offlineCommandTargetFromReplicaRow, offlineGeneratedReplicaIdentity, offlineInterceptor, offlineNaturalKeyFromValues, offlineNaturalReplicaIdentity, offlineReplicaRemoteIdentity, offlineRetryDelayMs, offlineSessionManifestAllows, parseOfflineCommandIdentity, parseOfflineMutationEnvelope, parseOfflinePrincipalId, projectOfflineReplicaValues, provideOffline, provideOfflineMutationRequestPolicy, provideOfflineRequestPolicy, real, replicaAddressFromIdentity, requirePositiveOfflineInteger, selectOfflineRepository, serializeOfflineCommandIdentity, sha256OfflineReplicaSchema, supportsSynchronizedOfflineRepository, text };
1484
- export type { CommunitySqliteConnection, CommunitySqliteDatabase, CommunitySqliteDriver, CreateOfflineAuthBridgeOptions, EnqueueOfflineCommand, EnqueueOfflineCommandIdentity, EnqueueOfflineGeneratedIdentity, EnqueueOfflineNaturalIdentity, OfflineAuthBridgeConfig, OfflineAuthExchangeContext, OfflineAuthExchangePhase, OfflineAuthResumeContext, OfflineCommand, OfflineCommandExecutor, OfflineCommandHooks, OfflineCommandIdentity, OfflineCommandResult, OfflineCommandState, OfflineCommandTarget, OfflineConfirmedReplicaCompanion, OfflineGeneratedRemoteId, OfflineKitOptions, OfflineLogoutAction, OfflineMutationEnvelope, OfflineMutationEnvelopeIdPolicy, OfflineMutationEnvelopeOptions, OfflineMutationEnvelopeValuesPolicy, OfflineMutationRequestPlan, OfflineMutationRequestPolicy, OfflineNaturalKey, OfflineNaturalKeyValue, OfflineNetworkState, OfflineOptimisticReplicaCompanion, OfflineOutboxLimits, OfflinePendingRebase, OfflinePendingRebaseStep, OfflinePrincipalId, OfflinePullAttention, OfflinePullAttentionReason, OfflineReadRequestPlan, OfflineReadResponseSource, OfflineReadStrategy, OfflineRemoteIdentity, OfflineReplicaAddress, OfflineReplicaChange, OfflineReplicaChangeBase, OfflineReplicaColumnDef, OfflineReplicaCursor, OfflineReplicaEntityDefinition, OfflineReplicaEntitySchema, OfflineReplicaEntityScope, OfflineReplicaFieldDescriptor, OfflineReplicaFieldPolicy, OfflineReplicaIdentity, OfflineReplicaIdentityDescriptor, OfflineReplicaIgnoredDef, OfflineReplicaLocalOnlyDef, OfflineReplicaMigration, OfflineReplicaMutation, OfflineReplicaNaturalKeyDef, OfflineReplicaProjector, OfflineReplicaPullPage, OfflineReplicaPullProjection, OfflineReplicaPullRequest, OfflineReplicaPuller, OfflineReplicaRemoteIdDef, OfflineReplicaRemoteIdRelease, OfflineReplicaRemoteIdentity, OfflineReplicaRow, OfflineReplicaRowKey, OfflineReplicaSchemaBundle, OfflineReplicaSchemaDefinition, OfflineReplicaSqliteAffinity, OfflineReplicaStorageKind, OfflineReplicaSyncState, OfflineReplicaTransaction, OfflineReplicaVisibility, OfflineReplicaWebMigrationCallback, OfflineReplicaWebMigrationResult, OfflineReplicaWebMigrationRow, OfflineReplicaWireChange, OfflineReplicaWireIdentity, OfflineReplicaWirePullPage, OfflineRepository, OfflineRepositoryReader, OfflineRequestPlan, OfflineRequestPolicy, OfflineResponseSource, OfflineResumeRemoteSessionOptions, OfflineScope, OfflineSessionManifest, OfflineSessionTransitionLease, OfflineStorageState, OfflineStorageUnavailableReason, OfflineSyncContext, OfflineSyncSession, OfflineSyncState, OfflineWireProtocolFingerprint, PreparedOfflineBatchOptions, PreparedOfflineCommand, ProvideOfflineOptions, ProvideReadCacheOfflineOptions, ProvideSynchronizedOfflineOptions };
1553
+ export { COMMUNITY_SQLITE, DEFAULT_OFFLINE_COMMAND_HOOKS, IonicOfflineRepository, OFFLINE_AGGREGATE_INTENT_PROJECTOR, OFFLINE_BYPASS, OFFLINE_COMMAND_EXECUTOR, OFFLINE_COMMAND_HOOKS, OFFLINE_KIT_OPTIONS, OFFLINE_MUTATION_REQUEST_POLICIES, OFFLINE_REPLICA_PROJECTOR, OFFLINE_REPLICA_PULLER, OFFLINE_REPOSITORY, OFFLINE_REQUEST_POLICIES, OFFLINE_RESPONSE_HEADER, OFFLINE_RETRY_RANDOM, OFFLINE_SCHEMA_VERSION, OFFLINE_SYNC_CONTEXT, OfflineCommandInFlightError, OfflineCoordinatorService, OfflineMutationPolicyConflictError, OfflineMutationProtocolError, OfflineMutationRequestPolicyRegistry, OfflineNetworkService, OfflineOutboxCapacityError, OfflinePayloadValidationError, OfflineReplicaMutationCoordinator, OfflineReplicaPullService, OfflineReplicaSchemaMismatchError, OfflineRequestFallbackService, OfflineRequestPolicyRegistry, OfflineSessionService, OfflineStorageUnavailableError, OfflineSyncService, SqliteOfflineRepository, assertOfflineLocalId, assertOfflineReplicaGeneratedRemoteId, assertOfflineReplicaNaturalKeyBaseline, assertSupportedOfflineMode, booleanColumn, canonicalOfflineCommandIdentity, canonicalOfflinePrincipalId, canonicalOfflineRemoteIdentity, canonicalOfflineReplicaIdentity, canonicalOfflineReplicaRowKey, commandFootprintKeys, commandIdentityFromReplicaIdentity, commandIdentityMatchesReplicaRow, createCommunitySqliteDriver, createOfflineAuthBridge, createRandomOfflineEncryptionKey, datetime, decodeOfflineReplicaValues, defineOfflineReplicaSchema, defineReplicaEntity, encodeOfflineReplicaValues, generatedId, ignored, integer, isOfflineAggregateIntentConflict, isOfflineFallbackError, isOfflineStorageUnavailableError, json, localOnly, naturalKey, normalizeOfflineNaturalKey, normalizeOfflineReplicaPullPage, nullable, offlineAggregateIntentMutations, offlineCommandLookupIdentity, offlineCommandTargetFromReplicaRow, offlineGeneratedReplicaIdentity, offlineInterceptor, offlineNaturalKeyFromValues, offlineNaturalReplicaIdentity, offlineReplicaRemoteIdentity, offlineRetryDelayMs, offlineSessionManifestAllows, parseOfflineCommandIdentity, parseOfflineMutationEnvelope, parseOfflinePrincipalId, projectOfflineReplicaValues, provideOffline, provideOfflineMutationRequestPolicy, provideOfflineRequestPolicy, real, replicaAddressFromIdentity, requirePositiveOfflineInteger, selectOfflineRepository, serializeOfflineCommandIdentity, sha256OfflineReplicaSchema, supportsSynchronizedOfflineRepository, text };
1554
+ export type { CommunitySqliteConnection, CommunitySqliteDatabase, CommunitySqliteDriver, CreateOfflineAuthBridgeOptions, EnqueueOfflineCommand, EnqueueOfflineCommandIdentity, EnqueueOfflineGeneratedIdentity, EnqueueOfflineNaturalIdentity, OfflineAggregateIntentConflict, OfflineAggregateIntentProjectInput, OfflineAggregateIntentProjectResult, OfflineAggregateIntentProjection, OfflineAggregateIntentProjector, OfflineAuthBridgeConfig, OfflineAuthExchangeContext, OfflineAuthExchangePhase, OfflineAuthResumeContext, OfflineCommand, OfflineCommandExecutor, OfflineCommandHooks, OfflineCommandIdentity, OfflineCommandResult, OfflineCommandState, OfflineCommandTarget, OfflineGeneratedRemoteId, OfflineKitOptions, OfflineLogoutAction, OfflineMutationEnvelope, OfflineMutationEnvelopeIdPolicy, OfflineMutationEnvelopeOptions, OfflineMutationEnvelopeValuesPolicy, OfflineMutationRequestPlan, OfflineMutationRequestPolicy, OfflineNaturalKey, OfflineNaturalKeyValue, OfflineNetworkState, OfflineOutboxLimits, OfflinePrincipalId, OfflinePullAttention, OfflinePullAttentionReason, OfflineReadRequestPlan, OfflineReadResponseSource, OfflineReadStrategy, OfflineRemoteIdentity, OfflineReplicaAddress, OfflineReplicaChange, OfflineReplicaChangeBase, OfflineReplicaColumnDef, OfflineReplicaCursor, OfflineReplicaEntityDefinition, OfflineReplicaEntitySchema, OfflineReplicaEntityScope, OfflineReplicaFieldDescriptor, OfflineReplicaFieldPolicy, OfflineReplicaIdentity, OfflineReplicaIdentityDescriptor, OfflineReplicaIgnoredDef, OfflineReplicaLocalOnlyDef, OfflineReplicaMigration, OfflineReplicaMutation, OfflineReplicaNaturalKeyDef, OfflineReplicaProjector, OfflineReplicaPullPage, OfflineReplicaPullProjection, OfflineReplicaPullRequest, OfflineReplicaPuller, OfflineReplicaReconciliationTarget, OfflineReplicaRemoteIdDef, OfflineReplicaRemoteIdRelease, OfflineReplicaRemoteIdentity, OfflineReplicaRow, OfflineReplicaRowKey, OfflineReplicaSchemaBundle, OfflineReplicaSchemaDefinition, OfflineReplicaSqliteAffinity, OfflineReplicaStorageKind, OfflineReplicaSyncState, OfflineReplicaTransaction, OfflineReplicaVisibility, OfflineReplicaWebMigrationCallback, OfflineReplicaWebMigrationResult, OfflineReplicaWebMigrationRow, OfflineReplicaWireChange, OfflineReplicaWireIdentity, OfflineReplicaWirePullPage, OfflineRepository, OfflineRepositoryReader, OfflineRequestPlan, OfflineRequestPolicy, OfflineResponseSource, OfflineResumeRemoteSessionOptions, OfflineScope, OfflineSessionManifest, OfflineSessionTransitionLease, OfflineStorageState, OfflineStorageUnavailableReason, OfflineSyncContext, OfflineSyncSession, OfflineSyncState, OfflineWireProtocolFingerprint, PreparedOfflineBatchOptions, PreparedOfflineCommand, ProvideOfflineOptions, ProvideReadCacheOfflineOptions, ProvideSynchronizedOfflineOptions };