effect-durable-agent 0.1.0 → 0.2.0

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 (110) hide show
  1. package/dist/{compaction-63iEDHHl.js → compaction-D7WJa899.js} +3 -3
  2. package/dist/{compaction-63iEDHHl.js.map → compaction-D7WJa899.js.map} +1 -1
  3. package/dist/{delivery-D3MxW4wg.d.ts → delivery-B_LDTuIB.d.ts} +153 -10
  4. package/dist/{delivery-2ZILvoRD.js → delivery-BoF-NZbZ.js} +3 -3
  5. package/dist/{delivery-2ZILvoRD.js.map → delivery-BoF-NZbZ.js.map} +1 -1
  6. package/dist/domain/command-queues.d.ts +1 -1
  7. package/dist/domain/message-transcript.d.ts +1 -1
  8. package/dist/domain/model-usage.d.ts +1 -1
  9. package/dist/domain/model-usage.js +1 -1
  10. package/dist/domain/reduced-state-schema.d.ts +2 -2
  11. package/dist/domain/reduced-state-schema.js +2 -2
  12. package/dist/domain/reduced-state.d.ts +2 -2
  13. package/dist/domain/reduced-state.js +3 -2
  14. package/dist/domain/reduced-state.js.map +1 -1
  15. package/dist/domain/run-scheduling.d.ts +1 -1
  16. package/dist/{durable-168Womqp.d.ts → durable-BXqwM70o.d.ts} +510 -3
  17. package/dist/{durable-D13w1Qr3.js → durable-Da57Rcml.js} +17 -3
  18. package/dist/durable-Da57Rcml.js.map +1 -0
  19. package/dist/{envelope-BCzKUq_z.js → envelope-BSI_Xh-f.js} +21 -5
  20. package/dist/envelope-BSI_Xh-f.js.map +1 -0
  21. package/dist/{envelope-Che6KatU.d.ts → envelope-CJnPfbjC.d.ts} +53 -6
  22. package/dist/{event-factory-_vF1bIJ7.js → event-factory-BUoBwqAy.js} +3 -3
  23. package/dist/{event-factory-_vF1bIJ7.js.map → event-factory-BUoBwqAy.js.map} +1 -1
  24. package/dist/{events-DwTARLMv.d.ts → events-AIIwZ6dS.d.ts} +3 -3
  25. package/dist/{in-memory-CeODnZhE.js → in-memory-E497WhtS.js} +3 -3
  26. package/dist/{in-memory-CeODnZhE.js.map → in-memory-E497WhtS.js.map} +1 -1
  27. package/dist/index.d.ts +5 -5
  28. package/dist/index.js +3 -3
  29. package/dist/{interpreter-DKGJ1sSx.js → interpreter-BwYN2PCC.js} +5 -4
  30. package/dist/interpreter-BwYN2PCC.js.map +1 -0
  31. package/dist/{model-resolver-DeBDK8XO.d.ts → model-resolver-O8Kn27GH.d.ts} +3 -3
  32. package/dist/{model-usage-0GeHwaaU.d.ts → model-usage-mttrPN0j.d.ts} +2 -2
  33. package/dist/{records--54mZEBx.js → records-D0ZIAOzd.js} +3 -3
  34. package/dist/{records--54mZEBx.js.map → records-D0ZIAOzd.js.map} +1 -1
  35. package/dist/{reduced-state-B1cvy8N_.d.ts → reduced-state-YbjpihEf.d.ts} +50549 -48726
  36. package/dist/{reduced-state-schema-B98exWxQ.d.ts → reduced-state-schema-B9TYxkP9.d.ts} +2 -2
  37. package/dist/{reducer-registry-DhGVzHBV.d.ts → reducer-registry-Bqn5B4JO.d.ts} +5 -5
  38. package/dist/{run-scheduling-wakeup-Mjic4tb_.d.ts → run-scheduling-wakeup-DX2zRAxd.d.ts} +2 -2
  39. package/dist/services/compaction.d.ts +1 -1
  40. package/dist/services/compaction.js +1 -1
  41. package/dist/services/decider.d.ts +2 -0
  42. package/dist/services/decider.js +97 -0
  43. package/dist/services/decider.js.map +1 -0
  44. package/dist/services/model-call.d.ts +1 -1
  45. package/dist/services/model-resolver.d.ts +1 -1
  46. package/dist/services/prompt-projector.d.ts +1 -1
  47. package/dist/services/reducer-registry.d.ts +1 -1
  48. package/dist/services/run-scheduler.d.ts +1 -1
  49. package/dist/services/run-scheduling-wakeup.d.ts +1 -1
  50. package/dist/services/runtime-layer.d.ts +13 -9
  51. package/dist/services/runtime-layer.js +10 -7
  52. package/dist/services/runtime-layer.js.map +1 -1
  53. package/dist/services/runtime.d.ts +1 -1
  54. package/dist/services/runtime.js +4 -3
  55. package/dist/services/runtime.js.map +1 -1
  56. package/dist/services/session-event-observer.d.ts +1 -1
  57. package/dist/services/session-query.d.ts +1 -1
  58. package/dist/services/session-query.js +3 -3
  59. package/dist/services/session-state.d.ts +2 -2
  60. package/dist/services/session-state.js +2 -1
  61. package/dist/services/session-store.d.ts +2 -2
  62. package/dist/services/session-store.js +32 -17
  63. package/dist/services/session-store.js.map +1 -1
  64. package/dist/services/sink-checkpoint-store.d.ts +1 -1
  65. package/dist/services/sink-registry.d.ts +1 -1
  66. package/dist/services/sink-registry.js +1 -1
  67. package/dist/services/span-names.d.ts +1 -1
  68. package/dist/services/span-names.js +1 -0
  69. package/dist/services/span-names.js.map +1 -1
  70. package/dist/services/tool-registry.d.ts +1 -1
  71. package/dist/services/tool-registry.js.map +1 -1
  72. package/dist/services/tracing.d.ts +2 -2
  73. package/dist/session-admission-WE8J_0z9.js +138 -0
  74. package/dist/session-admission-WE8J_0z9.js.map +1 -0
  75. package/dist/{session-event-observer-DlP9ITB2.d.ts → session-event-observer-BWQUJTcN.d.ts} +3 -3
  76. package/dist/{session-state-BehvUVyq.js → session-state-D02LCVcC.js} +167 -17
  77. package/dist/session-state-D02LCVcC.js.map +1 -0
  78. package/dist/{session-store-BL6sfrnn.d.ts → session-store-DaSHeg8Q.d.ts} +25 -8
  79. package/dist/{sink-checkpoint-store-DvuHwvx_.d.ts → sink-checkpoint-store-CUvIVvlZ.d.ts} +2 -2
  80. package/dist/{sink-registry-DskRcyOS.js → sink-registry-AOjX5_A1.js} +34 -10
  81. package/dist/sink-registry-AOjX5_A1.js.map +1 -0
  82. package/dist/{subscription-DZNWFDTV.d.ts → subscription-BhwUmsl4.d.ts} +2 -2
  83. package/dist/{subscription-DmO3BcdT.js → subscription-D7U4Tziv.js} +3 -3
  84. package/dist/{subscription-DmO3BcdT.js.map → subscription-D7U4Tziv.js.map} +1 -1
  85. package/dist/testkit/layers.d.ts +13 -10
  86. package/dist/testkit/layers.js +16 -9
  87. package/dist/testkit/layers.js.map +1 -1
  88. package/dist/testkit/transcript.d.ts +10 -4
  89. package/dist/testkit/transcript.js +58 -7
  90. package/dist/testkit/transcript.js.map +1 -1
  91. package/dist/transcript.d.ts +5 -5
  92. package/dist/transcript.js +5 -5
  93. package/dist/types/events/durable.d.ts +2 -2
  94. package/dist/types/events/durable.js +2 -2
  95. package/dist/types/events.d.ts +4 -4
  96. package/dist/types/events.js +3 -3
  97. package/dist/websocket/events.d.ts +1 -1
  98. package/dist/websocket/events.js +1 -1
  99. package/dist/websocket.d.ts +3 -3
  100. package/dist/websocket.js +3 -3
  101. package/dist/{window-read-Brov9VdQ.d.ts → window-read-BELSkO-r.d.ts} +2 -2
  102. package/dist/{window-read-DPFAA1hM.js → window-read-FJTCDaSq.js} +3 -3
  103. package/dist/{window-read-DPFAA1hM.js.map → window-read-FJTCDaSq.js.map} +1 -1
  104. package/package.json +5 -1
  105. package/dist/durable-D13w1Qr3.js.map +0 -1
  106. package/dist/envelope-BCzKUq_z.js.map +0 -1
  107. package/dist/interpreter-DKGJ1sSx.js.map +0 -1
  108. package/dist/session-state-BehvUVyq.js.map +0 -1
  109. package/dist/sink-registry-DskRcyOS.js.map +0 -1
  110. package/dist/tool-registry-CHHUU9BN.d.ts +0 -87
@@ -1,8 +1,8 @@
1
1
  import { c as StopTurnCommand, l as SubmitMessageCommand, o as PromotePendingMessageCommand, s as ResumePendingMessagesCommand, t as CancelPendingMessageCommand } from "./commands-BUquEZVP.js";
2
2
  import { h as SequenceNumber } from "./core-BcimKMIv.js";
3
- import { f as PositionedEvent, i as EventEnvelope } from "./envelope-Che6KatU.js";
4
- import "./events-DwTARLMv.js";
5
- import "./reduced-state-B1cvy8N_.js";
3
+ import { a as EventEnvelope, p as PositionedEvent } from "./envelope-CJnPfbjC.js";
4
+ import "./events-AIIwZ6dS.js";
5
+ import "./reduced-state-YbjpihEf.js";
6
6
  import * as Effect from "effect/Effect";
7
7
  import * as Schema from "effect/Schema";
8
8
  //#region src/websocket/protocol.d.ts
@@ -126,6 +126,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
126
126
  }>>;
127
127
  }>>;
128
128
  readonly durability: Schema.Literal<"durable">;
129
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
129
130
  readonly namespace: Schema.Literal<"effect-durable-agent">;
130
131
  readonly type: Schema.Literal<"TurnAttemptStarted">;
131
132
  readonly schemaVersion: Schema.Literal<number>;
@@ -157,6 +158,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
157
158
  }>>;
158
159
  }>>;
159
160
  readonly durability: Schema.Literal<"durable">;
161
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
160
162
  readonly namespace: Schema.Literal<"effect-durable-agent">;
161
163
  readonly type: Schema.Literal<"TurnAttemptCompleted">;
162
164
  readonly schemaVersion: Schema.Literal<number>;
@@ -199,6 +201,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
199
201
  }>>;
200
202
  }>>;
201
203
  readonly durability: Schema.Literal<"durable">;
204
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
202
205
  readonly namespace: Schema.Literal<"effect-durable-agent">;
203
206
  readonly type: Schema.Literal<"AssistantMessageCommitted">;
204
207
  readonly schemaVersion: Schema.Literal<number>;
@@ -277,6 +280,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
277
280
  }>>;
278
281
  }>>;
279
282
  readonly durability: Schema.Literal<"durable">;
283
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
280
284
  readonly namespace: Schema.Literal<"effect-durable-agent">;
281
285
  readonly type: Schema.Literal<"ToolCallCreated">;
282
286
  readonly schemaVersion: Schema.Literal<number>;
@@ -318,6 +322,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
318
322
  }>>;
319
323
  }>>;
320
324
  readonly durability: Schema.Literal<"durable">;
325
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
321
326
  readonly namespace: Schema.Literal<"effect-durable-agent">;
322
327
  readonly type: Schema.Literal<"SessionConfigured">;
323
328
  readonly schemaVersion: Schema.Literal<number>;
@@ -328,6 +333,38 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
328
333
  readonly settings: Schema.optionalKey<Schema.Unknown>;
329
334
  }>;
330
335
  }>;
336
+ }>, Schema.Struct<{
337
+ readonly eventId: Schema.brand<Schema.String, "EventId">;
338
+ readonly sessionId: Schema.brand<Schema.String, "SessionId">;
339
+ readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
340
+ readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
341
+ readonly trace: Schema.withConstructorDefault<Schema.Struct<{
342
+ readonly span: Schema.Struct<{
343
+ readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
344
+ readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
345
+ readonly sampled: Schema.Boolean;
346
+ readonly tracestate: Schema.NullOr<Schema.String>;
347
+ }>;
348
+ readonly links: Schema.$Array<Schema.Struct<{
349
+ readonly context: Schema.Struct<{
350
+ readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
351
+ readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
352
+ readonly sampled: Schema.Boolean;
353
+ readonly tracestate: Schema.NullOr<Schema.String>;
354
+ }>;
355
+ readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
356
+ }>>;
357
+ }>>;
358
+ readonly durability: Schema.Literal<"durable">;
359
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
360
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
361
+ readonly type: Schema.Literal<"DeciderAccepted">;
362
+ readonly schemaVersion: Schema.Literal<number>;
363
+ readonly payload: Schema.Struct<{
364
+ readonly decider: Schema.NonEmptyString;
365
+ readonly idempotencyKey: Schema.NonEmptyString;
366
+ readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
367
+ }>;
331
368
  }>, Schema.Union<readonly [Schema.Struct<{
332
369
  readonly eventId: Schema.brand<Schema.String, "EventId">;
333
370
  readonly sessionId: Schema.brand<Schema.String, "SessionId">;
@@ -351,6 +388,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
351
388
  }>>;
352
389
  }>>;
353
390
  readonly durability: Schema.Literal<"durable">;
391
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
354
392
  readonly namespace: Schema.Literal<"effect-durable-agent">;
355
393
  readonly type: Schema.Literal<"RunSchedulingRequested">;
356
394
  readonly schemaVersion: Schema.Literal<number>;
@@ -387,6 +425,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
387
425
  }>>;
388
426
  }>>;
389
427
  readonly durability: Schema.Literal<"durable">;
428
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
390
429
  readonly namespace: Schema.Literal<"effect-durable-agent">;
391
430
  readonly type: Schema.Literal<"RunSchedulingDelivered">;
392
431
  readonly schemaVersion: Schema.Literal<number>;
@@ -416,6 +455,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
416
455
  }>>;
417
456
  }>>;
418
457
  readonly durability: Schema.Literal<"durable">;
458
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
419
459
  readonly namespace: Schema.Literal<"effect-durable-agent">;
420
460
  readonly type: Schema.Literal<"RunSchedulingInvalidated">;
421
461
  readonly schemaVersion: Schema.Literal<number>;
@@ -446,6 +486,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
446
486
  }>>;
447
487
  }>>;
448
488
  readonly durability: Schema.Literal<"durable">;
489
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
449
490
  readonly namespace: Schema.Literal<"effect-durable-agent">;
450
491
  readonly type: Schema.Literal<"RunSchedulingGranted">;
451
492
  readonly schemaVersion: Schema.Literal<number>;
@@ -476,6 +517,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
476
517
  }>>;
477
518
  }>>;
478
519
  readonly durability: Schema.Literal<"durable">;
520
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
479
521
  readonly namespace: Schema.Literal<"effect-durable-agent">;
480
522
  readonly type: Schema.Literal<"CommandAdmitted">;
481
523
  readonly schemaVersion: Schema.Literal<number>;
@@ -505,6 +547,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
505
547
  }>>;
506
548
  }>>;
507
549
  readonly durability: Schema.Literal<"durable">;
550
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
508
551
  readonly namespace: Schema.Literal<"effect-durable-agent">;
509
552
  readonly type: Schema.Literal<"CommandStarted">;
510
553
  readonly schemaVersion: Schema.Literal<number>;
@@ -534,6 +577,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
534
577
  }>>;
535
578
  }>>;
536
579
  readonly durability: Schema.Literal<"durable">;
580
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
537
581
  readonly namespace: Schema.Literal<"effect-durable-agent">;
538
582
  readonly type: Schema.Literal<"CommandCompleted">;
539
583
  readonly schemaVersion: Schema.Literal<number>;
@@ -563,6 +607,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
563
607
  }>>;
564
608
  }>>;
565
609
  readonly durability: Schema.Literal<"durable">;
610
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
566
611
  readonly namespace: Schema.Literal<"effect-durable-agent">;
567
612
  readonly type: Schema.Literal<"CommandFailed">;
568
613
  readonly schemaVersion: Schema.Literal<number>;
@@ -597,6 +642,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
597
642
  }>>;
598
643
  }>>;
599
644
  readonly durability: Schema.Literal<"durable">;
645
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
600
646
  readonly namespace: Schema.Literal<"effect-durable-agent">;
601
647
  readonly type: Schema.Literal<"CommandCancelled">;
602
648
  readonly schemaVersion: Schema.Literal<number>;
@@ -627,6 +673,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
627
673
  }>>;
628
674
  }>>;
629
675
  readonly durability: Schema.Literal<"durable">;
676
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
630
677
  readonly namespace: Schema.Literal<"effect-durable-agent">;
631
678
  readonly type: Schema.Literal<"SystemMessageCommitted">;
632
679
  readonly schemaVersion: Schema.Literal<number>;
@@ -657,6 +704,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
657
704
  }>>;
658
705
  }>>;
659
706
  readonly durability: Schema.Literal<"durable">;
707
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
660
708
  readonly namespace: Schema.Literal<"effect-durable-agent">;
661
709
  readonly type: Schema.Literal<"UserMessageCommitted">;
662
710
  readonly schemaVersion: Schema.Literal<number>;
@@ -709,6 +757,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
709
757
  }>>;
710
758
  }>>;
711
759
  readonly durability: Schema.Literal<"durable">;
760
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
712
761
  readonly namespace: Schema.Literal<"effect-durable-agent">;
713
762
  readonly type: Schema.Literal<"SteeringMessageQueued">;
714
763
  readonly schemaVersion: Schema.Literal<number>;
@@ -762,6 +811,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
762
811
  }>>;
763
812
  }>>;
764
813
  readonly durability: Schema.Literal<"durable">;
814
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
765
815
  readonly namespace: Schema.Literal<"effect-durable-agent">;
766
816
  readonly type: Schema.Literal<"SteeringMessageCancelled">;
767
817
  readonly schemaVersion: Schema.Literal<number>;
@@ -793,6 +843,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
793
843
  }>>;
794
844
  }>>;
795
845
  readonly durability: Schema.Literal<"durable">;
846
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
796
847
  readonly namespace: Schema.Literal<"effect-durable-agent">;
797
848
  readonly type: Schema.Literal<"UserMessageSubmitted">;
798
849
  readonly schemaVersion: Schema.Literal<number>;
@@ -846,6 +897,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
846
897
  }>>;
847
898
  }>>;
848
899
  readonly durability: Schema.Literal<"durable">;
900
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
849
901
  readonly namespace: Schema.Literal<"effect-durable-agent">;
850
902
  readonly type: Schema.Literal<"UserMessagePromoted">;
851
903
  readonly schemaVersion: Schema.Literal<number>;
@@ -878,6 +930,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
878
930
  }>>;
879
931
  }>>;
880
932
  readonly durability: Schema.Literal<"durable">;
933
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
881
934
  readonly namespace: Schema.Literal<"effect-durable-agent">;
882
935
  readonly type: Schema.Literal<"UserMessageCancelled">;
883
936
  readonly schemaVersion: Schema.Literal<number>;
@@ -909,6 +962,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
909
962
  }>>;
910
963
  }>>;
911
964
  readonly durability: Schema.Literal<"durable">;
965
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
912
966
  readonly namespace: Schema.Literal<"effect-durable-agent">;
913
967
  readonly type: Schema.Literal<"MessageQueuePaused">;
914
968
  readonly schemaVersion: Schema.Literal<number>;
@@ -941,6 +995,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
941
995
  }>>;
942
996
  }>>;
943
997
  readonly durability: Schema.Literal<"durable">;
998
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
944
999
  readonly namespace: Schema.Literal<"effect-durable-agent">;
945
1000
  readonly type: Schema.Literal<"PendingMessagesPaused">;
946
1001
  readonly schemaVersion: Schema.Literal<number>;
@@ -978,6 +1033,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
978
1033
  }>>;
979
1034
  }>>;
980
1035
  readonly durability: Schema.Literal<"durable">;
1036
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
981
1037
  readonly namespace: Schema.Literal<"effect-durable-agent">;
982
1038
  readonly type: Schema.Literal<"AssistantMessageCommitted">;
983
1039
  readonly schemaVersion: Schema.Literal<number>;
@@ -1056,6 +1112,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1056
1112
  }>>;
1057
1113
  }>>;
1058
1114
  readonly durability: Schema.Literal<"durable">;
1115
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
1059
1116
  readonly namespace: Schema.Literal<"effect-durable-agent">;
1060
1117
  readonly type: Schema.Literal<"AssistantMessageImported">;
1061
1118
  readonly schemaVersion: Schema.Literal<number>;
@@ -1134,6 +1191,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1134
1191
  }>>;
1135
1192
  }>>;
1136
1193
  readonly durability: Schema.Literal<"durable">;
1194
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
1137
1195
  readonly namespace: Schema.Literal<"effect-durable-agent">;
1138
1196
  readonly type: Schema.Literal<"AssistantPartialCommitted">;
1139
1197
  readonly schemaVersion: Schema.Literal<number>;
@@ -1213,6 +1271,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1213
1271
  }>>;
1214
1272
  }>>;
1215
1273
  readonly durability: Schema.Literal<"durable">;
1274
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
1216
1275
  readonly namespace: Schema.Literal<"effect-durable-agent">;
1217
1276
  readonly type: Schema.Literal<"RunStarted">;
1218
1277
  readonly schemaVersion: Schema.Literal<number>;
@@ -1265,6 +1324,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1265
1324
  }>>;
1266
1325
  }>>;
1267
1326
  readonly durability: Schema.Literal<"durable">;
1327
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
1268
1328
  readonly namespace: Schema.Literal<"effect-durable-agent">;
1269
1329
  readonly type: Schema.Literal<"RunCompleted">;
1270
1330
  readonly schemaVersion: Schema.Literal<number>;
@@ -1294,6 +1354,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1294
1354
  }>>;
1295
1355
  }>>;
1296
1356
  readonly durability: Schema.Literal<"durable">;
1357
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
1297
1358
  readonly namespace: Schema.Literal<"effect-durable-agent">;
1298
1359
  readonly type: Schema.Literal<"RunFailed">;
1299
1360
  readonly schemaVersion: Schema.Literal<number>;
@@ -1328,6 +1389,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1328
1389
  }>>;
1329
1390
  }>>;
1330
1391
  readonly durability: Schema.Literal<"durable">;
1392
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
1331
1393
  readonly namespace: Schema.Literal<"effect-durable-agent">;
1332
1394
  readonly type: Schema.Literal<"RunInterrupted">;
1333
1395
  readonly schemaVersion: Schema.Literal<number>;
@@ -1358,6 +1420,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1358
1420
  }>>;
1359
1421
  }>>;
1360
1422
  readonly durability: Schema.Literal<"durable">;
1423
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
1361
1424
  readonly namespace: Schema.Literal<"effect-durable-agent">;
1362
1425
  readonly type: Schema.Literal<"RecoveryCompleted">;
1363
1426
  readonly schemaVersion: Schema.Literal<number>;
@@ -1392,6 +1455,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1392
1455
  }>>;
1393
1456
  }>>;
1394
1457
  readonly durability: Schema.Literal<"durable">;
1458
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
1395
1459
  readonly namespace: Schema.Literal<"effect-durable-agent">;
1396
1460
  readonly type: Schema.Literal<"TurnStarted">;
1397
1461
  readonly schemaVersion: Schema.Literal<number>;
@@ -1423,6 +1487,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1423
1487
  }>>;
1424
1488
  }>>;
1425
1489
  readonly durability: Schema.Literal<"durable">;
1490
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
1426
1491
  readonly namespace: Schema.Literal<"effect-durable-agent">;
1427
1492
  readonly type: Schema.Literal<"TurnCompleted">;
1428
1493
  readonly schemaVersion: Schema.Literal<number>;
@@ -1461,6 +1526,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1461
1526
  }>>;
1462
1527
  }>>;
1463
1528
  readonly durability: Schema.Literal<"durable">;
1529
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
1464
1530
  readonly namespace: Schema.Literal<"effect-durable-agent">;
1465
1531
  readonly type: Schema.Literal<"TurnFailed">;
1466
1532
  readonly schemaVersion: Schema.Literal<number>;
@@ -1496,6 +1562,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1496
1562
  }>>;
1497
1563
  }>>;
1498
1564
  readonly durability: Schema.Literal<"durable">;
1565
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
1499
1566
  readonly namespace: Schema.Literal<"effect-durable-agent">;
1500
1567
  readonly type: Schema.Literal<"TurnStopped">;
1501
1568
  readonly schemaVersion: Schema.Literal<number>;
@@ -1527,6 +1594,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1527
1594
  }>>;
1528
1595
  }>>;
1529
1596
  readonly durability: Schema.Literal<"durable">;
1597
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
1530
1598
  readonly namespace: Schema.Literal<"effect-durable-agent">;
1531
1599
  readonly type: Schema.Literal<"InferenceStarted">;
1532
1600
  readonly schemaVersion: Schema.Literal<number>;
@@ -1558,6 +1626,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1558
1626
  }>>;
1559
1627
  }>>;
1560
1628
  readonly durability: Schema.Literal<"durable">;
1629
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
1561
1630
  readonly namespace: Schema.Literal<"effect-durable-agent">;
1562
1631
  readonly type: Schema.Literal<"InferenceCompleted">;
1563
1632
  readonly schemaVersion: Schema.Literal<number>;
@@ -1600,6 +1669,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1600
1669
  }>>;
1601
1670
  }>>;
1602
1671
  readonly durability: Schema.Literal<"durable">;
1672
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
1603
1673
  readonly namespace: Schema.Literal<"effect-durable-agent">;
1604
1674
  readonly type: Schema.Literal<"InferenceFailed">;
1605
1675
  readonly schemaVersion: Schema.Literal<number>;
@@ -1636,6 +1706,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1636
1706
  }>>;
1637
1707
  }>>;
1638
1708
  readonly durability: Schema.Literal<"durable">;
1709
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
1639
1710
  readonly namespace: Schema.Literal<"effect-durable-agent">;
1640
1711
  readonly type: Schema.Literal<"ToolCallCreated">;
1641
1712
  readonly schemaVersion: Schema.Literal<number>;
@@ -1677,6 +1748,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1677
1748
  }>>;
1678
1749
  }>>;
1679
1750
  readonly durability: Schema.Literal<"durable">;
1751
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
1680
1752
  readonly namespace: Schema.Literal<"effect-durable-agent">;
1681
1753
  readonly type: Schema.Literal<"ToolCallRejected">;
1682
1754
  readonly schemaVersion: Schema.Literal<number>;
@@ -1724,6 +1796,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1724
1796
  }>>;
1725
1797
  }>>;
1726
1798
  readonly durability: Schema.Literal<"durable">;
1799
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
1727
1800
  readonly namespace: Schema.Literal<"effect-durable-agent">;
1728
1801
  readonly type: Schema.Literal<"ToolCallStarted">;
1729
1802
  readonly schemaVersion: Schema.Literal<number>;
@@ -1754,6 +1827,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1754
1827
  }>>;
1755
1828
  }>>;
1756
1829
  readonly durability: Schema.Literal<"durable">;
1830
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
1757
1831
  readonly namespace: Schema.Literal<"effect-durable-agent">;
1758
1832
  readonly type: Schema.Literal<"ToolCallCompleted">;
1759
1833
  readonly schemaVersion: Schema.Literal<number>;
@@ -1794,6 +1868,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1794
1868
  }>>;
1795
1869
  }>>;
1796
1870
  readonly durability: Schema.Literal<"durable">;
1871
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
1797
1872
  readonly namespace: Schema.Literal<"effect-durable-agent">;
1798
1873
  readonly type: Schema.Literal<"ToolCallFailed">;
1799
1874
  readonly schemaVersion: Schema.Literal<number>;
@@ -1843,6 +1918,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1843
1918
  }>>;
1844
1919
  }>>;
1845
1920
  readonly durability: Schema.Literal<"durable">;
1921
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
1846
1922
  readonly namespace: Schema.Literal<"effect-durable-agent">;
1847
1923
  readonly type: Schema.Literal<"StopTurnRequested">;
1848
1924
  readonly schemaVersion: Schema.Literal<number>;
@@ -1874,6 +1950,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1874
1950
  }>>;
1875
1951
  }>>;
1876
1952
  readonly durability: Schema.Literal<"durable">;
1953
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
1877
1954
  readonly namespace: Schema.Literal<"effect-durable-agent">;
1878
1955
  readonly type: Schema.Literal<"StopTurnApplied">;
1879
1956
  readonly schemaVersion: Schema.Literal<number>;
@@ -1906,6 +1983,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1906
1983
  }>>;
1907
1984
  }>>;
1908
1985
  readonly durability: Schema.Literal<"durable">;
1986
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
1909
1987
  readonly namespace: Schema.Literal<"effect-durable-agent">;
1910
1988
  readonly type: Schema.Literal<"ContextProjected">;
1911
1989
  readonly schemaVersion: Schema.Literal<number>;
@@ -1936,6 +2014,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1936
2014
  }>>;
1937
2015
  }>>;
1938
2016
  readonly durability: Schema.Literal<"durable">;
2017
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
1939
2018
  readonly namespace: Schema.Literal<"effect-durable-agent">;
1940
2019
  readonly type: Schema.Literal<"CompactionRequested">;
1941
2020
  readonly schemaVersion: Schema.Literal<number>;
@@ -1967,6 +2046,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1967
2046
  }>>;
1968
2047
  }>>;
1969
2048
  readonly durability: Schema.Literal<"durable">;
2049
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
1970
2050
  readonly namespace: Schema.Literal<"effect-durable-agent">;
1971
2051
  readonly type: Schema.Literal<"CompactionStarted">;
1972
2052
  readonly schemaVersion: Schema.Literal<number>;
@@ -1996,6 +2076,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1996
2076
  }>>;
1997
2077
  }>>;
1998
2078
  readonly durability: Schema.Literal<"durable">;
2079
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
1999
2080
  readonly namespace: Schema.Literal<"effect-durable-agent">;
2000
2081
  readonly type: Schema.Literal<"SummaryCreated">;
2001
2082
  readonly schemaVersion: Schema.Literal<number>;
@@ -2029,6 +2110,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
2029
2110
  }>>;
2030
2111
  }>>;
2031
2112
  readonly durability: Schema.Literal<"durable">;
2113
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
2032
2114
  readonly namespace: Schema.Literal<"effect-durable-agent">;
2033
2115
  readonly type: Schema.Literal<"CompactionCompleted">;
2034
2116
  readonly schemaVersion: Schema.Literal<number>;
@@ -2071,6 +2153,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
2071
2153
  }>>;
2072
2154
  }>>;
2073
2155
  readonly durability: Schema.Literal<"durable">;
2156
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
2074
2157
  readonly namespace: Schema.Literal<"effect-durable-agent">;
2075
2158
  readonly type: Schema.Literal<"ContextRebased">;
2076
2159
  readonly schemaVersion: Schema.Literal<number>;
@@ -2103,6 +2186,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
2103
2186
  }>>;
2104
2187
  }>>;
2105
2188
  readonly durability: Schema.Literal<"durable">;
2189
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
2106
2190
  readonly namespace: Schema.Literal<"effect-durable-agent">;
2107
2191
  readonly type: Schema.Literal<"CompactionFailed">;
2108
2192
  readonly schemaVersion: Schema.Literal<number>;
@@ -2150,6 +2234,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
2150
2234
  }>>;
2151
2235
  }>>;
2152
2236
  readonly durability: Schema.Literal<"durable">;
2237
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
2153
2238
  readonly namespace: Schema.Literal<"effect-durable-agent">;
2154
2239
  readonly type: Schema.Literal<"BaseStateRequested">;
2155
2240
  readonly schemaVersion: Schema.Literal<number>;
@@ -2180,6 +2265,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
2180
2265
  }>>;
2181
2266
  }>>;
2182
2267
  readonly durability: Schema.Literal<"durable">;
2268
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
2183
2269
  readonly namespace: Schema.Literal<"effect-durable-agent">;
2184
2270
  readonly type: Schema.Literal<"BaseStateCreated">;
2185
2271
  readonly schemaVersion: Schema.Literal<number>;
@@ -2210,6 +2296,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
2210
2296
  }>>;
2211
2297
  }>>;
2212
2298
  readonly durability: Schema.Literal<"durable">;
2299
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
2213
2300
  readonly namespace: Schema.Literal<"effect-durable-agent">;
2214
2301
  readonly type: Schema.Literal<"BaseStateFailed">;
2215
2302
  readonly schemaVersion: Schema.Literal<number>;
@@ -2767,11 +2854,10 @@ declare const EDAWebSocketEventsFrame: Schema.Struct<{
2767
2854
  readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
2768
2855
  readonly subSeq: Schema.brand<Schema.Int, "SubSequenceNumber">;
2769
2856
  }>;
2770
- readonly event: Schema.Struct<{
2857
+ readonly event: Schema.Union<readonly [Schema.Struct<{
2771
2858
  readonly namespace: Schema.NonEmptyString;
2772
2859
  readonly type: Schema.NonEmptyString;
2773
2860
  readonly schemaVersion: Schema.Int;
2774
- readonly durability: Schema.Literals<readonly ["durable", "ephemeral"]>;
2775
2861
  readonly eventId: Schema.brand<Schema.String, "EventId">;
2776
2862
  readonly sessionId: Schema.brand<Schema.String, "SessionId">;
2777
2863
  readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
@@ -2794,7 +2880,36 @@ declare const EDAWebSocketEventsFrame: Schema.Struct<{
2794
2880
  }>>;
2795
2881
  }>>;
2796
2882
  readonly payload: Schema.Unknown;
2797
- }>;
2883
+ readonly durability: Schema.Literal<"durable">;
2884
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
2885
+ }>, Schema.Struct<{
2886
+ readonly namespace: Schema.NonEmptyString;
2887
+ readonly type: Schema.NonEmptyString;
2888
+ readonly schemaVersion: Schema.Int;
2889
+ readonly eventId: Schema.brand<Schema.String, "EventId">;
2890
+ readonly sessionId: Schema.brand<Schema.String, "SessionId">;
2891
+ readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
2892
+ readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
2893
+ readonly trace: Schema.withConstructorDefault<Schema.Struct<{
2894
+ readonly span: Schema.Struct<{
2895
+ readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
2896
+ readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
2897
+ readonly sampled: Schema.Boolean;
2898
+ readonly tracestate: Schema.NullOr<Schema.String>;
2899
+ }>;
2900
+ readonly links: Schema.$Array<Schema.Struct<{
2901
+ readonly context: Schema.Struct<{
2902
+ readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
2903
+ readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
2904
+ readonly sampled: Schema.Boolean;
2905
+ readonly tracestate: Schema.NullOr<Schema.String>;
2906
+ }>;
2907
+ readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
2908
+ }>>;
2909
+ }>>;
2910
+ readonly payload: Schema.Unknown;
2911
+ readonly durability: Schema.Literal<"ephemeral">;
2912
+ }>]>;
2798
2913
  }>>;
2799
2914
  readonly durableThroughSeq: Schema.brand<Schema.Int, "SequenceNumber">;
2800
2915
  }>;
@@ -2858,11 +2973,10 @@ declare const EDAWebSocketServerFrame: Schema.Union<readonly [Schema.Struct<{
2858
2973
  readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
2859
2974
  readonly subSeq: Schema.brand<Schema.Int, "SubSequenceNumber">;
2860
2975
  }>;
2861
- readonly event: Schema.Struct<{
2976
+ readonly event: Schema.Union<readonly [Schema.Struct<{
2862
2977
  readonly namespace: Schema.NonEmptyString;
2863
2978
  readonly type: Schema.NonEmptyString;
2864
2979
  readonly schemaVersion: Schema.Int;
2865
- readonly durability: Schema.Literals<readonly ["durable", "ephemeral"]>;
2866
2980
  readonly eventId: Schema.brand<Schema.String, "EventId">;
2867
2981
  readonly sessionId: Schema.brand<Schema.String, "SessionId">;
2868
2982
  readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
@@ -2885,7 +2999,36 @@ declare const EDAWebSocketServerFrame: Schema.Union<readonly [Schema.Struct<{
2885
2999
  }>>;
2886
3000
  }>>;
2887
3001
  readonly payload: Schema.Unknown;
2888
- }>;
3002
+ readonly durability: Schema.Literal<"durable">;
3003
+ readonly dedupeKey: Schema.optionalKey<Schema.brand<Schema.String, "EventDedupeKey">>;
3004
+ }>, Schema.Struct<{
3005
+ readonly namespace: Schema.NonEmptyString;
3006
+ readonly type: Schema.NonEmptyString;
3007
+ readonly schemaVersion: Schema.Int;
3008
+ readonly eventId: Schema.brand<Schema.String, "EventId">;
3009
+ readonly sessionId: Schema.brand<Schema.String, "SessionId">;
3010
+ readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
3011
+ readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
3012
+ readonly trace: Schema.withConstructorDefault<Schema.Struct<{
3013
+ readonly span: Schema.Struct<{
3014
+ readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
3015
+ readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
3016
+ readonly sampled: Schema.Boolean;
3017
+ readonly tracestate: Schema.NullOr<Schema.String>;
3018
+ }>;
3019
+ readonly links: Schema.$Array<Schema.Struct<{
3020
+ readonly context: Schema.Struct<{
3021
+ readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
3022
+ readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
3023
+ readonly sampled: Schema.Boolean;
3024
+ readonly tracestate: Schema.NullOr<Schema.String>;
3025
+ }>;
3026
+ readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
3027
+ }>>;
3028
+ }>>;
3029
+ readonly payload: Schema.Unknown;
3030
+ readonly durability: Schema.Literal<"ephemeral">;
3031
+ }>]>;
2889
3032
  }>>;
2890
3033
  readonly durableThroughSeq: Schema.brand<Schema.Int, "SequenceNumber">;
2891
3034
  }>, Schema.Struct<{
@@ -3023,4 +3166,4 @@ declare const onClientAck: (state: EDAWebSocketDeliveryState, ack: EDAWebSocketA
3023
3166
  declare const onHostSuppressedFrame: (state: EDAWebSocketDeliveryState, frame: Pick<EDAWebSocketEventsFrame, "durableThroughSeq" | "frameId">, nowMs: number) => EDAWebSocketDeliveryResult;
3024
3167
  //#endregion
3025
3168
  export { EDAWebSocketWireProtocol as $, EDA_WS_CLOSE_LAGGED as A, EDAFrameworkWebSocketEvent as B, EDAWebSocketHelloFrame as C, EDAWebSocketServerFrame as D, EDAWebSocketPongFrame as E, SubscriberId as F, EDAWebSocketWireClientFrame as G, EDAWebSocketServerFrameEncoder as H, decodeEDAWebSocketClientMessage as I, EDAWebSocketWireHeartbeatFrame as J, EDAWebSocketWireErrorFrame as K, defaultEDAWebSocketFlowControl as L, EDA_WS_CLOSE_SEND_FAILED as M, EDA_WS_CLOSE_UNSUPPORTED_DATA as N, EDA_WEB_SOCKET_PROTOCOL_VERSION as O, FrameId as P, EDAWebSocketWirePongFrame as Q, encodeEDAWebSocketServerFrame as R, EDAWebSocketHeartbeatFrame as S, EDAWebSocketPingFrame as T, EDAWebSocketServerFrameInput as U, EDAWebSocketEventConsumerPolicy as V, EDAWebSocketWireAckFrame as W, EDAWebSocketWireLaggedFrame as X, EDAWebSocketWireHelloFrame as Y, EDAWebSocketWirePingFrame as Z, EDAWebSocketAckFrame as _, EDAWebSocketInFlightFrame as a, EDAWebSocketEventsFrame as b, SubscriberLagReason as c, makeWebSocketDeliveryState as d, EDA_WEB_SOCKET_PING_MESSAGE as et, onClientAck as f, restoreWebSocketDeliveryState as g, onHostSuppressedFrame as h, EDAWebSocketDeliveryState as i, makeEDAWebSocketWireProtocol as it, EDA_WS_CLOSE_PROTOCOL_ERROR as j, EDA_WS_CLOSE_GOING_AWAY as k, checkpointWebSocketDeliveryState as l, onEphemeralEvent as m, EDAWebSocketDeliveryCheckpoint as n, EDA_WEB_SOCKET_WIRE_PROTOCOL_VERSION as nt, EDAWebSocketSuppressedRange as o, onDurableEvents as p, EDAWebSocketWireFlowControl as q, EDAWebSocketDeliveryResult as r, edaFrameworkWebSocketWireProtocol as rt, MakeDeliveryStateInput as s, EDAWebSocketDeliveryAction as t, EDA_WEB_SOCKET_PONG_MESSAGE as tt, deliveryHelloFrame as u, EDAWebSocketClientFrame as v, EDAWebSocketLaggedFrame as w, EDAWebSocketFlowControl as x, EDAWebSocketErrorFrame as y, laggedCloseReason as z };
3026
- //# sourceMappingURL=delivery-D3MxW4wg.d.ts.map
3169
+ //# sourceMappingURL=delivery-B_LDTuIB.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { Position, SequenceNumber } from "./types/core.js";
2
- import { d as PositionedEvent, g as UnixEpochMillis, i as EventEnvelope } from "./envelope-BCzKUq_z.js";
3
- import { U as EDADurableEvent } from "./durable-D13w1Qr3.js";
2
+ import { _ as UnixEpochMillis, a as EventEnvelope, f as PositionedEvent } from "./envelope-BSI_Xh-f.js";
3
+ import { G as EDADurableEvent } from "./durable-Da57Rcml.js";
4
4
  import { EDAEphemeralEvent } from "./types/events.js";
5
5
  import * as Effect from "effect/Effect";
6
6
  import * as Schema from "effect/Schema";
@@ -504,4 +504,4 @@ const protocolClose = (state, message) => ({
504
504
  //#endregion
505
505
  export { FrameId as A, EDAWebSocketWireFlowControl as B, EDAWebSocketServerFrame as C, EDA_WS_CLOSE_PROTOCOL_ERROR as D, EDA_WS_CLOSE_LAGGED as E, laggedCloseReason as F, EDAWebSocketWirePongFrame as G, EDAWebSocketWireHelloFrame as H, EDAFrameworkWebSocketEvent as I, EDA_WEB_SOCKET_WIRE_PROTOCOL_VERSION as J, EDA_WEB_SOCKET_PING_MESSAGE as K, EDAWebSocketWireAckFrame as L, decodeEDAWebSocketClientMessage as M, defaultEDAWebSocketFlowControl as N, EDA_WS_CLOSE_SEND_FAILED as O, encodeEDAWebSocketServerFrame as P, EDAWebSocketWireClientFrame as R, EDAWebSocketPongFrame as S, EDA_WS_CLOSE_GOING_AWAY as T, EDAWebSocketWireLaggedFrame as U, EDAWebSocketWireHeartbeatFrame as V, EDAWebSocketWirePingFrame as W, makeEDAWebSocketWireProtocol as X, edaFrameworkWebSocketWireProtocol as Y, EDAWebSocketFlowControl as _, checkpointWebSocketDeliveryState as a, EDAWebSocketLaggedFrame as b, onClientAck as c, onHostSuppressedFrame as d, restoreWebSocketDeliveryState as f, EDAWebSocketEventsFrame as g, EDAWebSocketErrorFrame as h, SubscriberLagReason as i, SubscriberId as j, EDA_WS_CLOSE_UNSUPPORTED_DATA as k, onDurableEvents as l, EDAWebSocketClientFrame as m, EDAWebSocketInFlightFrame as n, deliveryHelloFrame as o, EDAWebSocketAckFrame as p, EDA_WEB_SOCKET_PONG_MESSAGE as q, EDAWebSocketSuppressedRange as r, makeWebSocketDeliveryState as s, EDAWebSocketDeliveryCheckpoint as t, onEphemeralEvent as u, EDAWebSocketHeartbeatFrame as v, EDA_WEB_SOCKET_PROTOCOL_VERSION as w, EDAWebSocketPingFrame as x, EDAWebSocketHelloFrame as y, EDAWebSocketWireErrorFrame as z };
506
506
 
507
- //# sourceMappingURL=delivery-2ZILvoRD.js.map
507
+ //# sourceMappingURL=delivery-BoF-NZbZ.js.map