@korajs/core 1.0.0-beta.10 → 1.0.0-beta.12

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/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
- import { R as RandomSource, B as BlobRef, C as CollectionDefinition, A as AtomicOpType, a as AtomicOp, F as FieldBuilder, b as CustomResolver, M as MigrationDefinition, S as SchemaDefinition, c as RelationDefinition, O as OperationType, E as EnumFieldBuilder, J as JsonFieldBuilder, d as ArrayFieldBuilder, e as FieldKind, f as Operation, V as VersionVector, g as MigrationStep, h as StateMachineConstraint, T as TransitionMap, i as TransitionValidationResult } from './events-3z0Tema3.cjs';
2
- export { j as CONNECTION_QUALITIES, k as ConnectionQuality, l as Constraint, m as FieldDescriptor, n as FieldMergeStrategy, H as HLCTimestamp, K as KoraEvent, o as KoraEventByType, p as KoraEventEmitter, q as KoraEventListener, r as KoraEventType, s as MERGE_STRATEGIES, t as MergeStrategy, u as MergeTrace, v as MigrationBuilder, w as OnDeleteAction, x as OperationInput, y as RelationType, z as RollbackBuilder, D as SecretMode, G as SequenceConfig, I as StateMachineDefinition, L as SyncDiagnosticsSnapshot, N as SyncRuleDefinition, P as TimeSource, Q as migrate, U as t } from './events-3z0Tema3.cjs';
3
- export { H as HybridLogicalClock, M as MAX_LOGICAL, c as createOperation, i as isValidOperation, v as verifyOperationIntegrity } from './operation-BvBgl-4c.cjs';
4
- export { S as ScopeMap, b as buildScopeMap } from './build-scope-map-B8dpCt6P.cjs';
1
+ import { R as RandomSource, B as BlobRef, C as CollectionDefinition, A as AtomicOpType, a as AtomicOp, F as FieldBuilder, b as CustomResolver, M as MigrationDefinition, S as SchemaDefinition, c as RelationDefinition, O as OperationType, E as EnumFieldBuilder, J as JsonFieldBuilder, d as ArrayFieldBuilder, e as FieldKind, f as Operation, V as VersionVector, g as MigrationStep, h as StateMachineConstraint, T as TransitionMap, i as TransitionValidationResult } from './events-D7JCtQSD.cjs';
2
+ export { j as CONNECTION_QUALITIES, k as ConnectionQuality, l as Constraint, m as FieldDescriptor, n as FieldMergeStrategy, H as HLCTimestamp, K as KoraEvent, o as KoraEventByType, p as KoraEventEmitter, q as KoraEventListener, r as KoraEventType, s as MERGE_STRATEGIES, t as MergeStrategy, u as MergeTrace, v as MigrationBuilder, w as OnDeleteAction, x as OperationInput, y as RelationType, z as RollbackBuilder, D as SecretMode, G as SequenceConfig, I as StateMachineDefinition, L as SyncDiagnosticsSnapshot, N as SyncRuleDefinition, P as TimeSource, Q as migrate, U as t } from './events-D7JCtQSD.cjs';
3
+ export { H as HybridLogicalClock, M as MAX_LOGICAL, c as createOperation, i as isValidOperation, v as verifyOperationIntegrity } from './operation-BXvJ6RiA.cjs';
4
+ export { S as ScopeMap, b as buildScopeMap } from './build-scope-map-CItP1gsz.cjs';
5
5
 
6
6
  /**
7
7
  * Base error class for all Kora errors.
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { R as RandomSource, B as BlobRef, C as CollectionDefinition, A as AtomicOpType, a as AtomicOp, F as FieldBuilder, b as CustomResolver, M as MigrationDefinition, S as SchemaDefinition, c as RelationDefinition, O as OperationType, E as EnumFieldBuilder, J as JsonFieldBuilder, d as ArrayFieldBuilder, e as FieldKind, f as Operation, V as VersionVector, g as MigrationStep, h as StateMachineConstraint, T as TransitionMap, i as TransitionValidationResult } from './events-3z0Tema3.js';
2
- export { j as CONNECTION_QUALITIES, k as ConnectionQuality, l as Constraint, m as FieldDescriptor, n as FieldMergeStrategy, H as HLCTimestamp, K as KoraEvent, o as KoraEventByType, p as KoraEventEmitter, q as KoraEventListener, r as KoraEventType, s as MERGE_STRATEGIES, t as MergeStrategy, u as MergeTrace, v as MigrationBuilder, w as OnDeleteAction, x as OperationInput, y as RelationType, z as RollbackBuilder, D as SecretMode, G as SequenceConfig, I as StateMachineDefinition, L as SyncDiagnosticsSnapshot, N as SyncRuleDefinition, P as TimeSource, Q as migrate, U as t } from './events-3z0Tema3.js';
3
- export { H as HybridLogicalClock, M as MAX_LOGICAL, c as createOperation, i as isValidOperation, v as verifyOperationIntegrity } from './operation-ClhEbhoV.js';
4
- export { S as ScopeMap, b as buildScopeMap } from './build-scope-map-CDpIGOsf.js';
1
+ import { R as RandomSource, B as BlobRef, C as CollectionDefinition, A as AtomicOpType, a as AtomicOp, F as FieldBuilder, b as CustomResolver, M as MigrationDefinition, S as SchemaDefinition, c as RelationDefinition, O as OperationType, E as EnumFieldBuilder, J as JsonFieldBuilder, d as ArrayFieldBuilder, e as FieldKind, f as Operation, V as VersionVector, g as MigrationStep, h as StateMachineConstraint, T as TransitionMap, i as TransitionValidationResult } from './events-D7JCtQSD.js';
2
+ export { j as CONNECTION_QUALITIES, k as ConnectionQuality, l as Constraint, m as FieldDescriptor, n as FieldMergeStrategy, H as HLCTimestamp, K as KoraEvent, o as KoraEventByType, p as KoraEventEmitter, q as KoraEventListener, r as KoraEventType, s as MERGE_STRATEGIES, t as MergeStrategy, u as MergeTrace, v as MigrationBuilder, w as OnDeleteAction, x as OperationInput, y as RelationType, z as RollbackBuilder, D as SecretMode, G as SequenceConfig, I as StateMachineDefinition, L as SyncDiagnosticsSnapshot, N as SyncRuleDefinition, P as TimeSource, Q as migrate, U as t } from './events-D7JCtQSD.js';
3
+ export { H as HybridLogicalClock, M as MAX_LOGICAL, c as createOperation, i as isValidOperation, v as verifyOperationIntegrity } from './operation-BX4ok7U4.js';
4
+ export { S as ScopeMap, b as buildScopeMap } from './build-scope-map-Cv5HfCQP.js';
5
5
 
6
6
  /**
7
7
  * Base error class for all Kora errors.
package/dist/index.js CHANGED
@@ -2471,15 +2471,20 @@ var KORA_OPERATION_MESSAGE = `message KoraOperation {
2471
2471
  var OPERATION_BATCH_MESSAGE = `message OperationBatch {
2472
2472
  repeated KoraOperation operations = 1;
2473
2473
  bool is_final = 2;
2474
+ bytes retractions_json = 3;
2474
2475
  }`;
2475
2476
  var HANDSHAKE_MESSAGE = `message HandshakeMessage {
2476
2477
  map<string, int64> version_vector = 1;
2477
2478
  int32 schema_version = 2;
2478
2479
  string node_id = 3;
2480
+ string scope_exit_policy = 4;
2479
2481
  }`;
2480
2482
  var HANDSHAKE_RESPONSE_MESSAGE = `message HandshakeResponse {
2481
2483
  map<string, int64> version_vector = 1;
2482
2484
  int32 schema_version = 2;
2485
+ bytes accepted_scope_json = 3;
2486
+ bytes accepted_downlink_scopes_json = 4;
2487
+ bytes accepted_uplink_scopes_json = 5;
2483
2488
  }`;
2484
2489
  var ACKNOWLEDGMENT_MESSAGE = `message Acknowledgment {
2485
2490
  int64 sequence_number = 1;
@@ -2545,20 +2550,25 @@ function buildJsonDescriptor(schema) {
2545
2550
  nested.OperationBatch = {
2546
2551
  fields: {
2547
2552
  operations: { type: "KoraOperation", id: 1, rule: "repeated" },
2548
- is_final: { type: "bool", id: 2 }
2553
+ is_final: { type: "bool", id: 2 },
2554
+ retractions_json: { type: "bytes", id: 3 }
2549
2555
  }
2550
2556
  };
2551
2557
  nested.HandshakeMessage = {
2552
2558
  fields: {
2553
2559
  version_vector: { keyType: "string", type: "int64", id: 1 },
2554
2560
  schema_version: { type: "int32", id: 2 },
2555
- node_id: { type: "string", id: 3 }
2561
+ node_id: { type: "string", id: 3 },
2562
+ scope_exit_policy: { type: "string", id: 4 }
2556
2563
  }
2557
2564
  };
2558
2565
  nested.HandshakeResponse = {
2559
2566
  fields: {
2560
2567
  version_vector: { keyType: "string", type: "int64", id: 1 },
2561
- schema_version: { type: "int32", id: 2 }
2568
+ schema_version: { type: "int32", id: 2 },
2569
+ accepted_scope_json: { type: "bytes", id: 3 },
2570
+ accepted_downlink_scopes_json: { type: "bytes", id: 4 },
2571
+ accepted_uplink_scopes_json: { type: "bytes", id: 5 }
2562
2572
  }
2563
2573
  };
2564
2574
  nested.Acknowledgment = {