@delta-base/core 1.2.5 → 1.2.6

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.ts CHANGED
@@ -272,22 +272,22 @@ declare namespace EventStoreAPI {
272
272
  createdAt: z.ZodString;
273
273
  }, "strip", z.ZodTypeAny, {
274
274
  type: string;
275
+ streamId: string;
275
276
  data: Record<string, unknown>;
276
277
  createdAt: string;
277
278
  globalPosition: number;
278
279
  streamPosition: number;
279
- streamId: string;
280
280
  schemaVersion: string;
281
281
  transactionId: string;
282
282
  eventId: string;
283
283
  metadata?: Record<string, unknown> | undefined;
284
284
  }, {
285
285
  type: string;
286
+ streamId: string;
286
287
  data: Record<string, unknown>;
287
288
  createdAt: string;
288
289
  globalPosition: number;
289
290
  streamPosition: number;
290
- streamId: string;
291
291
  schemaVersion: string;
292
292
  transactionId: string;
293
293
  eventId: string;
@@ -353,14 +353,14 @@ declare namespace EventStoreAPI {
353
353
  expectedVersion: z.ZodNumber;
354
354
  }, "strip", z.ZodTypeAny, {
355
355
  error: "Version conflict";
356
- details: string;
357
356
  currentVersion: number;
358
357
  expectedVersion: number;
358
+ details: string;
359
359
  }, {
360
360
  error: "Version conflict";
361
- details: string;
362
361
  currentVersion: number;
363
362
  expectedVersion: number;
363
+ details: string;
364
364
  }>;
365
365
  export const ValidationErrorSchema: z.ZodObject<{
366
366
  error: z.ZodLiteral<"Invalid request body">;
@@ -399,14 +399,14 @@ declare namespace EventStoreAPI {
399
399
  expectedVersion: z.ZodNumber;
400
400
  }, "strip", z.ZodTypeAny, {
401
401
  error: "Version conflict";
402
- details: string;
403
402
  currentVersion: number;
404
403
  expectedVersion: number;
404
+ details: string;
405
405
  }, {
406
406
  error: "Version conflict";
407
- details: string;
408
407
  currentVersion: number;
409
408
  expectedVersion: number;
409
+ details: string;
410
410
  }>, z.ZodObject<{
411
411
  error: z.ZodLiteral<"Invalid request body">;
412
412
  details: z.ZodArray<z.ZodObject<{
@@ -458,22 +458,22 @@ declare namespace EventStoreAPI {
458
458
  createdAt: z.ZodString;
459
459
  }, "strip", z.ZodTypeAny, {
460
460
  type: string;
461
+ streamId: string;
461
462
  data: Record<string, unknown>;
462
463
  createdAt: string;
463
464
  globalPosition: number;
464
465
  streamPosition: number;
465
- streamId: string;
466
466
  schemaVersion: string;
467
467
  transactionId: string;
468
468
  eventId: string;
469
469
  metadata?: Record<string, unknown> | undefined;
470
470
  }, {
471
471
  type: string;
472
+ streamId: string;
472
473
  data: Record<string, unknown>;
473
474
  createdAt: string;
474
475
  globalPosition: number;
475
476
  streamPosition: number;
476
- streamId: string;
477
477
  schemaVersion: string;
478
478
  transactionId: string;
479
479
  eventId: string;
@@ -483,11 +483,11 @@ declare namespace EventStoreAPI {
483
483
  }, "strip", z.ZodTypeAny, {
484
484
  events: {
485
485
  type: string;
486
+ streamId: string;
486
487
  data: Record<string, unknown>;
487
488
  createdAt: string;
488
489
  globalPosition: number;
489
490
  streamPosition: number;
490
- streamId: string;
491
491
  schemaVersion: string;
492
492
  transactionId: string;
493
493
  eventId: string;
@@ -497,11 +497,11 @@ declare namespace EventStoreAPI {
497
497
  }, {
498
498
  events: {
499
499
  type: string;
500
+ streamId: string;
500
501
  data: Record<string, unknown>;
501
502
  createdAt: string;
502
503
  globalPosition: number;
503
504
  streamPosition: number;
504
- streamId: string;
505
505
  schemaVersion: string;
506
506
  transactionId: string;
507
507
  eventId: string;
@@ -527,9 +527,9 @@ declare namespace EventStoreAPI {
527
527
  includeCount: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, boolean, string>, z.ZodBoolean>>;
528
528
  }, "strip", z.ZodTypeAny, {
529
529
  type?: string | string[] | undefined;
530
+ streamId?: string | undefined;
530
531
  limit?: number | undefined;
531
532
  offset?: number | undefined;
532
- streamId?: string | undefined;
533
533
  transactionId?: string | undefined;
534
534
  phase?: number | undefined;
535
535
  eventId?: string | undefined;
@@ -543,9 +543,9 @@ declare namespace EventStoreAPI {
543
543
  includeCount?: boolean | undefined;
544
544
  }, {
545
545
  type?: string | string[] | undefined;
546
+ streamId?: string | undefined;
546
547
  limit?: string | undefined;
547
548
  offset?: string | undefined;
548
- streamId?: string | undefined;
549
549
  transactionId?: string | undefined;
550
550
  phase?: string | undefined;
551
551
  eventId?: string | undefined;
@@ -574,13 +574,13 @@ declare namespace EventStoreAPI {
574
574
  sortDirection: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
575
575
  includeCount: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, boolean, string>, z.ZodBoolean>>;
576
576
  }, "strip", z.ZodTypeAny, {
577
+ streamId?: string | undefined;
577
578
  limit?: number | undefined;
578
579
  offset?: number | undefined;
579
- streamId?: string | undefined;
580
580
  fromDate?: string | undefined;
581
581
  toDate?: string | undefined;
582
582
  includeArchived?: boolean | undefined;
583
- sortBy?: "createdAt" | "updatedAt" | "streamPosition" | "streamId" | undefined;
583
+ sortBy?: "streamId" | "createdAt" | "updatedAt" | "streamPosition" | undefined;
584
584
  sortDirection?: "asc" | "desc" | undefined;
585
585
  includeCount?: boolean | undefined;
586
586
  streamType?: string | string[] | undefined;
@@ -589,13 +589,13 @@ declare namespace EventStoreAPI {
589
589
  maxPosition?: number | undefined;
590
590
  includeMetadata?: boolean | undefined;
591
591
  }, {
592
+ streamId?: string | undefined;
592
593
  limit?: string | undefined;
593
594
  offset?: string | undefined;
594
- streamId?: string | undefined;
595
595
  fromDate?: string | undefined;
596
596
  toDate?: string | undefined;
597
597
  includeArchived?: string | undefined;
598
- sortBy?: "createdAt" | "updatedAt" | "streamPosition" | "streamId" | undefined;
598
+ sortBy?: "streamId" | "createdAt" | "updatedAt" | "streamPosition" | undefined;
599
599
  sortDirection?: "asc" | "desc" | undefined;
600
600
  includeCount?: string | undefined;
601
601
  streamType?: string | string[] | undefined;
@@ -634,22 +634,22 @@ declare namespace EventStoreAPI {
634
634
  createdAt: z.ZodString;
635
635
  }, "strip", z.ZodTypeAny, {
636
636
  type: string;
637
+ streamId: string;
637
638
  data: Record<string, unknown>;
638
639
  createdAt: string;
639
640
  globalPosition: number;
640
641
  streamPosition: number;
641
- streamId: string;
642
642
  schemaVersion: string;
643
643
  transactionId: string;
644
644
  eventId: string;
645
645
  metadata?: Record<string, unknown> | undefined;
646
646
  }, {
647
647
  type: string;
648
+ streamId: string;
648
649
  data: Record<string, unknown>;
649
650
  createdAt: string;
650
651
  globalPosition: number;
651
652
  streamPosition: number;
652
- streamId: string;
653
653
  schemaVersion: string;
654
654
  transactionId: string;
655
655
  eventId: string;
@@ -674,11 +674,11 @@ declare namespace EventStoreAPI {
674
674
  }, "strip", z.ZodTypeAny, {
675
675
  events: {
676
676
  type: string;
677
+ streamId: string;
677
678
  data: Record<string, unknown>;
678
679
  createdAt: string;
679
680
  globalPosition: number;
680
681
  streamPosition: number;
681
- streamId: string;
682
682
  schemaVersion: string;
683
683
  transactionId: string;
684
684
  eventId: string;
@@ -693,11 +693,11 @@ declare namespace EventStoreAPI {
693
693
  }, {
694
694
  events: {
695
695
  type: string;
696
+ streamId: string;
696
697
  data: Record<string, unknown>;
697
698
  createdAt: string;
698
699
  globalPosition: number;
699
700
  streamPosition: number;
700
- streamId: string;
701
701
  schemaVersion: string;
702
702
  transactionId: string;
703
703
  eventId: string;
@@ -720,19 +720,19 @@ declare namespace EventStoreAPI {
720
720
  createdAt: z.ZodString;
721
721
  updatedAt: z.ZodString;
722
722
  }, "strip", z.ZodTypeAny, {
723
+ streamId: string;
723
724
  createdAt: string;
724
725
  updatedAt: string;
725
726
  streamPosition: number;
726
- streamId: string;
727
727
  streamType: string;
728
728
  isArchived: boolean;
729
729
  lastArchivedPosition: number;
730
730
  streamMetadata?: Record<string, unknown> | undefined;
731
731
  }, {
732
+ streamId: string;
732
733
  createdAt: string;
733
734
  updatedAt: string;
734
735
  streamPosition: number;
735
- streamId: string;
736
736
  streamType: string;
737
737
  isArchived: boolean;
738
738
  lastArchivedPosition: number;
@@ -749,19 +749,19 @@ declare namespace EventStoreAPI {
749
749
  createdAt: z.ZodString;
750
750
  updatedAt: z.ZodString;
751
751
  }, "strip", z.ZodTypeAny, {
752
+ streamId: string;
752
753
  createdAt: string;
753
754
  updatedAt: string;
754
755
  streamPosition: number;
755
- streamId: string;
756
756
  streamType: string;
757
757
  isArchived: boolean;
758
758
  lastArchivedPosition: number;
759
759
  streamMetadata?: Record<string, unknown> | undefined;
760
760
  }, {
761
+ streamId: string;
761
762
  createdAt: string;
762
763
  updatedAt: string;
763
764
  streamPosition: number;
764
- streamId: string;
765
765
  streamType: string;
766
766
  isArchived: boolean;
767
767
  lastArchivedPosition: number;
@@ -791,10 +791,10 @@ declare namespace EventStoreAPI {
791
791
  total?: number | undefined;
792
792
  };
793
793
  streams: {
794
+ streamId: string;
794
795
  createdAt: string;
795
796
  updatedAt: string;
796
797
  streamPosition: number;
797
- streamId: string;
798
798
  streamType: string;
799
799
  isArchived: boolean;
800
800
  lastArchivedPosition: number;
@@ -808,10 +808,10 @@ declare namespace EventStoreAPI {
808
808
  total?: number | undefined;
809
809
  };
810
810
  streams: {
811
+ streamId: string;
811
812
  createdAt: string;
812
813
  updatedAt: string;
813
814
  streamPosition: number;
814
- streamId: string;
815
815
  streamType: string;
816
816
  isArchived: boolean;
817
817
  lastArchivedPosition: number;
@@ -913,41 +913,41 @@ declare namespace EventBusAPI {
913
913
  }, "strip", z.ZodTypeAny, {
914
914
  url: string;
915
915
  headers?: Record<string, string> | undefined;
916
+ timeoutMs?: number | undefined;
916
917
  retryPolicy?: {
917
918
  maxAttempts: number;
918
919
  backoffMinutes: number;
919
920
  } | undefined;
920
- timeoutMs?: number | undefined;
921
921
  }, {
922
922
  url: string;
923
923
  headers?: Record<string, string> | undefined;
924
+ timeoutMs?: number | undefined;
924
925
  retryPolicy?: {
925
926
  maxAttempts: number;
926
927
  backoffMinutes: number;
927
928
  } | undefined;
928
- timeoutMs?: number | undefined;
929
929
  }>;
930
930
  }, "strip", z.ZodTypeAny, {
931
931
  type: "webhook";
932
932
  config: {
933
933
  url: string;
934
934
  headers?: Record<string, string> | undefined;
935
+ timeoutMs?: number | undefined;
935
936
  retryPolicy?: {
936
937
  maxAttempts: number;
937
938
  backoffMinutes: number;
938
939
  } | undefined;
939
- timeoutMs?: number | undefined;
940
940
  };
941
941
  }, {
942
942
  type: "webhook";
943
943
  config: {
944
944
  url: string;
945
945
  headers?: Record<string, string> | undefined;
946
+ timeoutMs?: number | undefined;
946
947
  retryPolicy?: {
947
948
  maxAttempts: number;
948
949
  backoffMinutes: number;
949
950
  } | undefined;
950
- timeoutMs?: number | undefined;
951
951
  };
952
952
  }>, z.ZodObject<{
953
953
  type: z.ZodLiteral<"queue">;
@@ -1116,11 +1116,11 @@ declare namespace EventBusAPI {
1116
1116
  config: {
1117
1117
  url: string;
1118
1118
  headers?: Record<string, string> | undefined;
1119
+ timeoutMs?: number | undefined;
1119
1120
  retryPolicy?: {
1120
1121
  maxAttempts: number;
1121
1122
  backoffMinutes: number;
1122
1123
  } | undefined;
1123
- timeoutMs?: number | undefined;
1124
1124
  };
1125
1125
  } | {
1126
1126
  type: "queue";
@@ -1171,11 +1171,11 @@ declare namespace EventBusAPI {
1171
1171
  config: {
1172
1172
  url: string;
1173
1173
  headers?: Record<string, string> | undefined;
1174
+ timeoutMs?: number | undefined;
1174
1175
  retryPolicy?: {
1175
1176
  maxAttempts: number;
1176
1177
  backoffMinutes: number;
1177
1178
  } | undefined;
1178
- timeoutMs?: number | undefined;
1179
1179
  };
1180
1180
  } | {
1181
1181
  type: "queue";
@@ -1239,12 +1239,12 @@ declare namespace EventBusAPI {
1239
1239
  }, "strip", z.ZodTypeAny, {
1240
1240
  status: "ACTIVE" | "SUSPENDED" | "ERROR" | "INITIALIZING" | "DELETED";
1241
1241
  eventStoreId: string;
1242
+ subscriptionId: string;
1242
1243
  subscriberType: "websocket" | "durable_object" | "webhook" | "queue" | "cloudflare_workflow";
1243
1244
  eventFilter: string;
1244
1245
  subscriberId: string;
1245
1246
  createdAt: string;
1246
1247
  updatedAt: string;
1247
- subscriptionId: string;
1248
1248
  statusDetails?: {
1249
1249
  lastError?: string | undefined;
1250
1250
  retryCount?: number | undefined;
@@ -1255,12 +1255,12 @@ declare namespace EventBusAPI {
1255
1255
  }, {
1256
1256
  status: "ACTIVE" | "SUSPENDED" | "ERROR" | "INITIALIZING" | "DELETED";
1257
1257
  eventStoreId: string;
1258
+ subscriptionId: string;
1258
1259
  subscriberType: "websocket" | "durable_object" | "webhook" | "queue" | "cloudflare_workflow";
1259
1260
  eventFilter: string;
1260
1261
  subscriberId: string;
1261
1262
  createdAt: string;
1262
1263
  updatedAt: string;
1263
- subscriptionId: string;
1264
1264
  statusDetails?: {
1265
1265
  lastError?: string | undefined;
1266
1266
  retryCount?: number | undefined;
@@ -1299,12 +1299,12 @@ declare namespace EventBusAPI {
1299
1299
  }, "strip", z.ZodTypeAny, {
1300
1300
  status: "ACTIVE" | "SUSPENDED" | "ERROR" | "INITIALIZING" | "DELETED";
1301
1301
  eventStoreId: string;
1302
+ subscriptionId: string;
1302
1303
  subscriberType: "websocket" | "durable_object" | "webhook" | "queue" | "cloudflare_workflow";
1303
1304
  eventFilter: string;
1304
1305
  subscriberId: string;
1305
1306
  createdAt: string;
1306
1307
  updatedAt: string;
1307
- subscriptionId: string;
1308
1308
  statusDetails?: {
1309
1309
  lastError?: string | undefined;
1310
1310
  retryCount?: number | undefined;
@@ -1315,12 +1315,12 @@ declare namespace EventBusAPI {
1315
1315
  }, {
1316
1316
  status: "ACTIVE" | "SUSPENDED" | "ERROR" | "INITIALIZING" | "DELETED";
1317
1317
  eventStoreId: string;
1318
+ subscriptionId: string;
1318
1319
  subscriberType: "websocket" | "durable_object" | "webhook" | "queue" | "cloudflare_workflow";
1319
1320
  eventFilter: string;
1320
1321
  subscriberId: string;
1321
1322
  createdAt: string;
1322
1323
  updatedAt: string;
1323
- subscriptionId: string;
1324
1324
  statusDetails?: {
1325
1325
  lastError?: string | undefined;
1326
1326
  retryCount?: number | undefined;
@@ -1335,12 +1335,12 @@ declare namespace EventBusAPI {
1335
1335
  subscriptions: {
1336
1336
  status: "ACTIVE" | "SUSPENDED" | "ERROR" | "INITIALIZING" | "DELETED";
1337
1337
  eventStoreId: string;
1338
+ subscriptionId: string;
1338
1339
  subscriberType: "websocket" | "durable_object" | "webhook" | "queue" | "cloudflare_workflow";
1339
1340
  eventFilter: string;
1340
1341
  subscriberId: string;
1341
1342
  createdAt: string;
1342
1343
  updatedAt: string;
1343
- subscriptionId: string;
1344
1344
  statusDetails?: {
1345
1345
  lastError?: string | undefined;
1346
1346
  retryCount?: number | undefined;
@@ -1354,12 +1354,12 @@ declare namespace EventBusAPI {
1354
1354
  subscriptions: {
1355
1355
  status: "ACTIVE" | "SUSPENDED" | "ERROR" | "INITIALIZING" | "DELETED";
1356
1356
  eventStoreId: string;
1357
+ subscriptionId: string;
1357
1358
  subscriberType: "websocket" | "durable_object" | "webhook" | "queue" | "cloudflare_workflow";
1358
1359
  eventFilter: string;
1359
1360
  subscriberId: string;
1360
1361
  createdAt: string;
1361
1362
  updatedAt: string;
1362
- subscriptionId: string;
1363
1363
  statusDetails?: {
1364
1364
  lastError?: string | undefined;
1365
1365
  retryCount?: number | undefined;
@@ -1433,6 +1433,7 @@ declare namespace WebSocketsAPI {
1433
1433
  totalCount: z.ZodNumber;
1434
1434
  eventStoreId: z.ZodString;
1435
1435
  }, "strip", z.ZodTypeAny, {
1436
+ eventStoreId: string;
1436
1437
  connections: {
1437
1438
  clientId: string;
1438
1439
  connectionId: string;
@@ -1442,8 +1443,8 @@ declare namespace WebSocketsAPI {
1442
1443
  userAgent?: string | undefined;
1443
1444
  }[];
1444
1445
  totalCount: number;
1445
- eventStoreId: string;
1446
1446
  }, {
1447
+ eventStoreId: string;
1447
1448
  connections: {
1448
1449
  clientId: string;
1449
1450
  connectionId: string;
@@ -1453,7 +1454,6 @@ declare namespace WebSocketsAPI {
1453
1454
  userAgent?: string | undefined;
1454
1455
  }[];
1455
1456
  totalCount: number;
1456
- eventStoreId: string;
1457
1457
  }>;
1458
1458
  const ErrorResponseSchema: z.ZodObject<{
1459
1459
  error: z.ZodString;