rivetkit 2.3.4 → 2.3.5-rc.1

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 (161) hide show
  1. package/dist/browser/client.d.ts +157 -9
  2. package/dist/browser/client.js +518 -542
  3. package/dist/browser/client.js.map +1 -1
  4. package/dist/browser/inspector/client.d.ts +101 -2
  5. package/dist/browser/inspector/client.js +1245 -227
  6. package/dist/browser/inspector/client.js.map +1 -1
  7. package/dist/tsup/agent-os/index.cjs +103 -36
  8. package/dist/tsup/agent-os/index.cjs.map +1 -1
  9. package/dist/tsup/agent-os/index.d.cts +159 -11
  10. package/dist/tsup/agent-os/index.d.ts +159 -11
  11. package/dist/tsup/agent-os/index.js +103 -36
  12. package/dist/tsup/agent-os/index.js.map +1 -1
  13. package/dist/tsup/{chunk-7X4M7ZRA.cjs → chunk-4XKED5P5.cjs} +146 -177
  14. package/dist/tsup/chunk-4XKED5P5.cjs.map +1 -0
  15. package/dist/tsup/{chunk-Q7NBMTF3.cjs → chunk-6HQCLWAW.cjs} +384 -4
  16. package/dist/tsup/chunk-6HQCLWAW.cjs.map +1 -0
  17. package/dist/tsup/{chunk-JZ7TWV65.js → chunk-7AFZMFPQ.js} +15 -1
  18. package/dist/tsup/chunk-7AFZMFPQ.js.map +1 -0
  19. package/dist/tsup/{chunk-M7DCRMOZ.js → chunk-B4IZU537.js} +382 -2
  20. package/dist/tsup/chunk-B4IZU537.js.map +1 -0
  21. package/dist/tsup/{chunk-3MHDOUD7.cjs → chunk-G3CCRCTK.cjs} +14 -9
  22. package/dist/tsup/chunk-G3CCRCTK.cjs.map +1 -0
  23. package/dist/tsup/{chunk-CMPFZ724.js → chunk-GAV4PKFT.js} +16 -47
  24. package/dist/tsup/{chunk-CMPFZ724.js.map → chunk-GAV4PKFT.js.map} +1 -1
  25. package/dist/tsup/{chunk-HXUEHHJF.js → chunk-JI6GZ2C2.js} +2 -11
  26. package/dist/tsup/{chunk-HXUEHHJF.js.map → chunk-JI6GZ2C2.js.map} +1 -1
  27. package/dist/tsup/{chunk-3SNFA373.cjs → chunk-M3FCXL3Q.cjs} +3 -3
  28. package/dist/tsup/{chunk-3SNFA373.cjs.map → chunk-M3FCXL3Q.cjs.map} +1 -1
  29. package/dist/tsup/{chunk-GXW3VFJQ.js → chunk-MGTSVSUC.js} +2 -2
  30. package/dist/tsup/{chunk-VE2X4KMG.cjs → chunk-MYWZCDML.cjs} +2 -11
  31. package/dist/tsup/chunk-MYWZCDML.cjs.map +1 -0
  32. package/dist/tsup/{chunk-M5TAM4JV.js → chunk-NIC3QLKL.js} +3 -3
  33. package/dist/tsup/{chunk-H4XOUVGP.js → chunk-P4OGQ4JL.js} +5 -7
  34. package/dist/tsup/{chunk-H4XOUVGP.js.map → chunk-P4OGQ4JL.js.map} +1 -1
  35. package/dist/tsup/{chunk-EOSGY3DC.js → chunk-PAG6G46L.js} +2 -2
  36. package/dist/tsup/{chunk-XIX5DOZN.js → chunk-SHBE77IT.js} +14 -9
  37. package/dist/tsup/chunk-SHBE77IT.js.map +1 -0
  38. package/dist/tsup/{chunk-SRT2DPN3.cjs → chunk-TNIWIUNV.cjs} +9 -11
  39. package/dist/tsup/chunk-TNIWIUNV.cjs.map +1 -0
  40. package/dist/tsup/{chunk-UPOCJPEQ.cjs → chunk-TR5NLR5V.cjs} +4 -4
  41. package/dist/tsup/{chunk-UPOCJPEQ.cjs.map → chunk-TR5NLR5V.cjs.map} +1 -1
  42. package/dist/tsup/{chunk-ZA7FLHKH.cjs → chunk-UEULFXUI.cjs} +16 -2
  43. package/dist/tsup/chunk-UEULFXUI.cjs.map +1 -0
  44. package/dist/tsup/{chunk-T4MURX4P.cjs → chunk-UJ2FQY63.cjs} +7 -7
  45. package/dist/tsup/{chunk-T4MURX4P.cjs.map → chunk-UJ2FQY63.cjs.map} +1 -1
  46. package/dist/tsup/client/mod.cjs +7 -8
  47. package/dist/tsup/client/mod.cjs.map +1 -1
  48. package/dist/tsup/client/mod.d.cts +5 -4
  49. package/dist/tsup/client/mod.d.ts +5 -4
  50. package/dist/tsup/client/mod.js +6 -7
  51. package/dist/tsup/common/log.cjs +2 -2
  52. package/dist/tsup/common/log.js +1 -1
  53. package/dist/tsup/common/websocket.cjs +3 -3
  54. package/dist/tsup/common/websocket.js +2 -2
  55. package/dist/tsup/{config-D49x8NpL.d.cts → config-BxOimoGX.d.cts} +16 -0
  56. package/dist/tsup/{config-D49x8NpL.d.ts → config-BxOimoGX.d.ts} +16 -0
  57. package/dist/tsup/{config-ZkIsRFsN.d.ts → config-BzdqbLAP.d.ts} +164 -27
  58. package/dist/tsup/{config-BfBhjEbk.d.cts → config-CPPEwn_e.d.cts} +164 -27
  59. package/dist/tsup/{context-sZ9GlaBK.d.cts → context-DSA9gFXB.d.cts} +2 -2
  60. package/dist/tsup/{context-B7-84u9K.d.ts → context-wWv-K2K_.d.ts} +2 -2
  61. package/dist/tsup/db/drizzle.cjs +120 -68
  62. package/dist/tsup/db/drizzle.cjs.map +1 -1
  63. package/dist/tsup/db/drizzle.d.cts +8 -3
  64. package/dist/tsup/db/drizzle.d.ts +8 -3
  65. package/dist/tsup/db/drizzle.js +120 -68
  66. package/dist/tsup/db/drizzle.js.map +1 -1
  67. package/dist/tsup/db/mod.cjs +74 -22
  68. package/dist/tsup/db/mod.cjs.map +1 -1
  69. package/dist/tsup/db/mod.d.cts +4 -3
  70. package/dist/tsup/db/mod.d.ts +4 -3
  71. package/dist/tsup/db/mod.js +74 -22
  72. package/dist/tsup/db/mod.js.map +1 -1
  73. package/dist/tsup/dynamic/mod.cjs +2 -2
  74. package/dist/tsup/dynamic/mod.d.cts +3 -3
  75. package/dist/tsup/dynamic/mod.d.ts +3 -3
  76. package/dist/tsup/dynamic/mod.js +1 -1
  77. package/dist/tsup/inspector/mod.cjs +4 -5
  78. package/dist/tsup/inspector/mod.cjs.map +1 -1
  79. package/dist/tsup/inspector/mod.js +3 -4
  80. package/dist/tsup/inspector/mod.js.map +1 -1
  81. package/dist/tsup/inspector-tab/mod.cjs +2 -2
  82. package/dist/tsup/inspector-tab/mod.cjs.map +1 -1
  83. package/dist/tsup/inspector-tab/mod.d.cts +5 -5
  84. package/dist/tsup/inspector-tab/mod.d.ts +5 -5
  85. package/dist/tsup/inspector-tab/mod.js +1 -1
  86. package/dist/tsup/inspector-tab/mod.js.map +1 -1
  87. package/dist/tsup/mod.cjs +605 -158
  88. package/dist/tsup/mod.cjs.map +1 -1
  89. package/dist/tsup/mod.d.cts +5 -5
  90. package/dist/tsup/mod.d.ts +5 -5
  91. package/dist/tsup/mod.js +528 -81
  92. package/dist/tsup/mod.js.map +1 -1
  93. package/dist/tsup/test/mod.cjs +10 -11
  94. package/dist/tsup/test/mod.cjs.map +1 -1
  95. package/dist/tsup/test/mod.d.cts +3 -3
  96. package/dist/tsup/test/mod.d.ts +3 -3
  97. package/dist/tsup/test/mod.js +6 -7
  98. package/dist/tsup/test/mod.js.map +1 -1
  99. package/dist/tsup/utils-CV0akuDD.d.ts +162 -0
  100. package/dist/tsup/utils-DQDCphrl.d.cts +162 -0
  101. package/dist/tsup/utils.cjs +6 -2
  102. package/dist/tsup/utils.cjs.map +1 -1
  103. package/dist/tsup/utils.d.cts +3 -146
  104. package/dist/tsup/utils.d.ts +3 -146
  105. package/dist/tsup/utils.js +5 -1
  106. package/dist/tsup/workflow/mod.cjs +198 -151
  107. package/dist/tsup/workflow/mod.cjs.map +1 -1
  108. package/dist/tsup/workflow/mod.d.cts +5 -5
  109. package/dist/tsup/workflow/mod.d.ts +5 -5
  110. package/dist/tsup/workflow/mod.js +187 -140
  111. package/dist/tsup/workflow/mod.js.map +1 -1
  112. package/package.json +8 -8
  113. package/src/actor/config.test.ts +14 -0
  114. package/src/actor/config.ts +104 -16
  115. package/src/actor/definition.ts +18 -7
  116. package/src/agent-os/actor/index.ts +2 -2
  117. package/src/common/bare/generated/actor-runtime-socket-protocol/v1.ts +848 -0
  118. package/src/common/bare/generated/inspector/v6.ts +1367 -0
  119. package/src/common/database/config.ts +24 -0
  120. package/src/common/database/mod.test.ts +148 -59
  121. package/src/common/database/mod.ts +93 -23
  122. package/src/common/database/native-database.test.ts +9 -0
  123. package/src/common/database/native-database.ts +151 -0
  124. package/src/common/database/shared.ts +15 -0
  125. package/src/common/encoding.ts +28 -21
  126. package/src/db/drizzle.test.ts +157 -0
  127. package/src/db/drizzle.ts +170 -79
  128. package/src/dynamic/isolate-runtime.ts +0 -2
  129. package/src/engine-client/driver.ts +0 -15
  130. package/src/engine-client/mod.ts +0 -41
  131. package/src/inspector/client.browser.ts +69 -8
  132. package/src/inspector-tab/mod.ts +1 -0
  133. package/src/registry/config/index.ts +1 -35
  134. package/src/registry/napi-runtime.ts +204 -16
  135. package/src/registry/native.ts +200 -30
  136. package/src/registry/runtime.ts +146 -3
  137. package/src/registry/wasm-runtime.ts +217 -6
  138. package/src/utils.ts +3 -0
  139. package/src/workflow/context.ts +5 -27
  140. package/src/workflow/driver.test.ts +62 -0
  141. package/src/workflow/driver.ts +231 -113
  142. package/src/workflow/mod.ts +3 -3
  143. package/dist/tsup/chunk-3MHDOUD7.cjs.map +0 -1
  144. package/dist/tsup/chunk-7X4M7ZRA.cjs.map +0 -1
  145. package/dist/tsup/chunk-JZ7TWV65.js.map +0 -1
  146. package/dist/tsup/chunk-M7DCRMOZ.js.map +0 -1
  147. package/dist/tsup/chunk-Q7NBMTF3.cjs.map +0 -1
  148. package/dist/tsup/chunk-SRT2DPN3.cjs.map +0 -1
  149. package/dist/tsup/chunk-VE2X4KMG.cjs.map +0 -1
  150. package/dist/tsup/chunk-W6WPKZ6I.js +0 -382
  151. package/dist/tsup/chunk-W6WPKZ6I.js.map +0 -1
  152. package/dist/tsup/chunk-XIX5DOZN.js.map +0 -1
  153. package/dist/tsup/chunk-Z7PSQWMC.cjs +0 -382
  154. package/dist/tsup/chunk-Z7PSQWMC.cjs.map +0 -1
  155. package/dist/tsup/chunk-ZA7FLHKH.cjs.map +0 -1
  156. package/src/actor/driver.ts +0 -141
  157. package/src/actor/instance/mod.ts +0 -2484
  158. package/src/drivers/engine/actor-driver.ts +0 -2473
  159. /package/dist/tsup/{chunk-GXW3VFJQ.js.map → chunk-MGTSVSUC.js.map} +0 -0
  160. /package/dist/tsup/{chunk-M5TAM4JV.js.map → chunk-NIC3QLKL.js.map} +0 -0
  161. /package/dist/tsup/{chunk-EOSGY3DC.js.map → chunk-PAG6G46L.js.map} +0 -0
@@ -1,12 +1,12 @@
1
1
  import { z } from 'zod/v4';
2
- import { A as AnyDatabaseProvider, d as SqliteNativeMetrics, I as InferDatabaseClient } from './config-D49x8NpL.js';
2
+ import { A as AnyDatabaseProvider, d as SqliteNativeMetrics, I as InferDatabaseClient } from './config-BxOimoGX.js';
3
3
  import * as _rivetkit_rivetkit_wasm from '@rivetkit/rivetkit-wasm';
4
4
  import { z as z$1 } from 'zod';
5
5
  import { Logger } from 'pino';
6
6
  import { UniversalWebSocket } from '@rivetkit/virtual-websocket';
7
7
  import { StandardSchemaV1 } from '@standard-schema/spec';
8
+ import { E as Encoding, G as GetUpgradeWebSocket } from './utils-CV0akuDD.js';
8
9
  import { Context, Hono } from 'hono';
9
- import { GetUpgradeWebSocket } from './utils.js';
10
10
  import { R as RivetError } from './utils-CqDnC_PS.js';
11
11
 
12
12
  declare const ActorKeySchema: z.ZodArray<z.ZodString>;
@@ -60,16 +60,6 @@ type ActorQuery = z.infer<typeof ActorQuerySchema>;
60
60
  */
61
61
  type CreateRequest = z.infer<typeof CreateRequestSchema>;
62
62
 
63
- declare const EncodingSchema: z.ZodEnum<{
64
- json: "json";
65
- cbor: "cbor";
66
- bare: "bare";
67
- }>;
68
- /**
69
- * Encoding used to communicate between the client & actor.
70
- */
71
- type Encoding = z.infer<typeof EncodingSchema>;
72
-
73
63
  declare const ActorsSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodCustom<AnyActorDefinition, AnyActorDefinition>>;
74
64
  type RegistryActors = z$1.infer<typeof ActorsSchema>;
75
65
  declare const RuntimeKindSchema: z$1.ZodEnum<{
@@ -512,11 +502,6 @@ interface EngineControlClient {
512
502
  * Test-only helper that simulates an abrupt actor crash.
513
503
  */
514
504
  hardCrashActor?(actorId: string): Promise<void>;
515
- kvGet(actorId: string, key: Uint8Array): Promise<string | null>;
516
- kvBatchGet(actorId: string, keys: Uint8Array[]): Promise<(Uint8Array | null)[]>;
517
- kvBatchPut(actorId: string, entries: [Uint8Array, Uint8Array][]): Promise<void>;
518
- kvBatchDelete(actorId: string, keys: Uint8Array[]): Promise<void>;
519
- kvDeleteRange(actorId: string, start: Uint8Array, end: Uint8Array): Promise<void>;
520
505
  }
521
506
  interface RuntimeDisplayInformation {
522
507
  properties: Record<string, string>;
@@ -575,6 +560,7 @@ type ActorContextHandle = OpaqueHandle<"actorContext">;
575
560
  type ConnHandle = OpaqueHandle<"conn">;
576
561
  type WebSocketHandle = OpaqueHandle<"webSocket">;
577
562
  type CancellationTokenHandle = OpaqueHandle<"cancellationToken">;
563
+ type SqliteTransactionHandle = OpaqueHandle<"sqliteTransaction">;
578
564
  type RuntimeBytes = Uint8Array;
579
565
  interface RuntimeActorKeySegment {
580
566
  kind: string;
@@ -595,6 +581,10 @@ interface RuntimeStateDeltaPayload {
595
581
  }>;
596
582
  connHibernationRemoved: string[];
597
583
  }
584
+ interface RuntimeWorkflowKvWrite {
585
+ key: RuntimeBytes;
586
+ value: RuntimeBytes;
587
+ }
598
588
  interface RuntimeRequestSaveOpts {
599
589
  immediate?: boolean;
600
590
  maxWaitMs?: number;
@@ -620,6 +610,38 @@ interface RuntimeQueueInspectMessage {
620
610
  name: string;
621
611
  createdAtMs: number;
622
612
  }
613
+ interface RuntimeScheduledEventInfo {
614
+ id: string;
615
+ action: string;
616
+ args: RuntimeBytes;
617
+ runAt: number;
618
+ }
619
+ interface RuntimeCronJobInfo {
620
+ name: string;
621
+ kind: "cron" | "every";
622
+ action: string;
623
+ args: RuntimeBytes;
624
+ nextRunAt: number;
625
+ lastRunAt?: number;
626
+ expression?: string;
627
+ timezone?: string;
628
+ intervalMs?: number;
629
+ maxHistory: number;
630
+ }
631
+ interface RuntimeScheduleErrorInfo {
632
+ group: string;
633
+ code: string;
634
+ message: string;
635
+ metadata?: unknown;
636
+ }
637
+ interface RuntimeCronFire {
638
+ action: string;
639
+ scheduledAt: number;
640
+ firedAt: number;
641
+ finishedAt?: number;
642
+ result: "running" | "ok" | "error" | "skipped";
643
+ error?: RuntimeScheduleErrorInfo;
644
+ }
623
645
  interface RuntimeQueueNextBatchOptions {
624
646
  names?: string[];
625
647
  count?: number;
@@ -680,6 +702,9 @@ type RuntimeSqlBindParam = ({
680
702
  blobValue: RuntimeBytes;
681
703
  };
682
704
  type RuntimeSqlBindParams = RuntimeSqlBindParam[] | null;
705
+ interface RuntimeActorRuntimeSocketEndpointInfo {
706
+ path: string;
707
+ }
683
708
  interface RuntimeSqlQueryResult {
684
709
  columns: string[];
685
710
  rows: unknown[][];
@@ -689,6 +714,10 @@ interface RuntimeSqlExecuteResult extends RuntimeSqlQueryResult {
689
714
  changes: number;
690
715
  lastInsertRowId?: number | null;
691
716
  }
717
+ interface RuntimeSqlBatchStatement {
718
+ sql: string;
719
+ params?: RuntimeSqlBindParams;
720
+ }
692
721
  interface RuntimeSqlRunResult {
693
722
  changes: number;
694
723
  }
@@ -697,6 +726,7 @@ interface RuntimeActorConfig {
697
726
  icon?: string;
698
727
  hasDatabase?: boolean;
699
728
  remoteSqlite?: boolean;
729
+ enableActorRuntimeSocket?: boolean;
700
730
  hasState?: boolean;
701
731
  canHibernateWebsocket?: boolean;
702
732
  stateSaveIntervalMs?: number;
@@ -717,6 +747,7 @@ interface RuntimeActorConfig {
717
747
  connectionLivenessTimeoutMs?: number;
718
748
  connectionLivenessIntervalMs?: number;
719
749
  maxQueueSize?: number;
750
+ maxSchedules?: number;
720
751
  maxQueueMessageSize?: number;
721
752
  maxIncomingMessageSize?: number;
722
753
  maxOutgoingMessageSize?: number;
@@ -834,6 +865,7 @@ interface CoreRuntime {
834
865
  actorTakePendingHibernationChanges(ctx: ActorContextHandle): string[];
835
866
  actorDirtyHibernatableConns(ctx: ActorContextHandle): ConnHandle[];
836
867
  actorSaveState(ctx: ActorContextHandle, payload: RuntimeStateDeltaPayload): Promise<void>;
868
+ actorSaveStateAndWorkflowBatch(ctx: ActorContextHandle, writes: RuntimeWorkflowKvWrite[]): Promise<void>;
837
869
  actorId(ctx: ActorContextHandle): string;
838
870
  actorName(ctx: ActorContextHandle): string;
839
871
  actorKey(ctx: ActorContextHandle): RuntimeActorKeySegment[];
@@ -867,11 +899,18 @@ interface CoreRuntime {
867
899
  actorKvBatchDelete(ctx: ActorContextHandle, keys: RuntimeBytes[]): Promise<void>;
868
900
  actorSqlExec(ctx: ActorContextHandle, sql: string): Promise<RuntimeSqlExecResult>;
869
901
  actorSqlExecute(ctx: ActorContextHandle, sql: string, params?: RuntimeSqlBindParams): Promise<RuntimeSqlExecuteResult>;
902
+ actorSqlExecuteBatch(ctx: ActorContextHandle, statements: RuntimeSqlBatchStatement[]): Promise<RuntimeSqlExecuteResult[]>;
903
+ actorSqlBeginTransaction(ctx: ActorContextHandle, timeoutMs?: number): Promise<SqliteTransactionHandle>;
904
+ actorSqlTransactionExec(transaction: SqliteTransactionHandle, sql: string): Promise<RuntimeSqlExecResult>;
905
+ actorSqlTransactionExecute(transaction: SqliteTransactionHandle, sql: string, params?: RuntimeSqlBindParams): Promise<RuntimeSqlExecuteResult>;
906
+ actorSqlTransactionCommit(transaction: SqliteTransactionHandle): Promise<void>;
907
+ actorSqlTransactionRollback(transaction: SqliteTransactionHandle): Promise<void>;
870
908
  actorSqlQuery(ctx: ActorContextHandle, sql: string, params?: RuntimeSqlBindParams): Promise<RuntimeSqlQueryResult>;
871
909
  actorSqlRun(ctx: ActorContextHandle, sql: string, params?: RuntimeSqlBindParams): Promise<RuntimeSqlRunResult>;
872
910
  actorSqlMetrics(ctx: ActorContextHandle): SqliteNativeMetrics | null;
873
911
  actorSqlTakeLastKvError(ctx: ActorContextHandle): string | null;
874
912
  actorSqlClose(ctx: ActorContextHandle): Promise<void>;
913
+ actorRuntimeSocketProvision(ctx: ActorContextHandle): Promise<RuntimeActorRuntimeSocketEndpointInfo>;
875
914
  actorQueueSend(ctx: ActorContextHandle, name: string, body: RuntimeBytes): Promise<RuntimeQueueMessage>;
876
915
  actorQueueNextBatch(ctx: ActorContextHandle, options?: RuntimeQueueNextBatchOptions | undefined | null, signal?: CancellationTokenHandle | undefined | null): Promise<RuntimeQueueMessage[]>;
877
916
  actorQueueWaitForNames(ctx: ActorContextHandle, names: string[], options?: RuntimeQueueWaitOptions | undefined | null, signal?: CancellationTokenHandle | undefined | null): Promise<RuntimeQueueMessage>;
@@ -881,8 +920,17 @@ interface CoreRuntime {
881
920
  actorQueueMaxSize(ctx: ActorContextHandle): number;
882
921
  actorQueueInspectMessages(ctx: ActorContextHandle): Promise<RuntimeQueueInspectMessage[]>;
883
922
  actorQueueReset(ctx: ActorContextHandle): Promise<void>;
884
- actorScheduleAfter(ctx: ActorContextHandle, durationMs: number, actionName: string, args: RuntimeBytes): void;
885
- actorScheduleAt(ctx: ActorContextHandle, timestampMs: number, actionName: string, args: RuntimeBytes): void;
923
+ actorScheduleAfter(ctx: ActorContextHandle, durationMs: number, actionName: string, args: RuntimeBytes): Promise<string>;
924
+ actorScheduleAt(ctx: ActorContextHandle, timestampMs: number, actionName: string, args: RuntimeBytes): Promise<string>;
925
+ actorScheduleCancel(ctx: ActorContextHandle, id: string): Promise<boolean>;
926
+ actorScheduleGet(ctx: ActorContextHandle, id: string): Promise<RuntimeScheduledEventInfo | undefined>;
927
+ actorScheduleList(ctx: ActorContextHandle): Promise<RuntimeScheduledEventInfo[]>;
928
+ actorCronSet(ctx: ActorContextHandle, name: string, expression: string, timezone: string | undefined, actionName: string, args: RuntimeBytes, maxHistory: number | undefined): Promise<void>;
929
+ actorCronEvery(ctx: ActorContextHandle, name: string, intervalMs: number, actionName: string, args: RuntimeBytes, maxHistory: number | undefined): Promise<void>;
930
+ actorCronGet(ctx: ActorContextHandle, name: string): Promise<RuntimeCronJobInfo | undefined>;
931
+ actorCronList(ctx: ActorContextHandle): Promise<RuntimeCronJobInfo[]>;
932
+ actorCronDelete(ctx: ActorContextHandle, name: string): Promise<boolean>;
933
+ actorCronHistory(ctx: ActorContextHandle, name: string, limit: number | undefined): Promise<RuntimeCronFire[]>;
886
934
  connId(conn: ConnHandle): string;
887
935
  connParams(conn: ConnHandle): RuntimeBytes;
888
936
  connState(conn: ConnHandle): RuntimeBytes;
@@ -1594,10 +1642,83 @@ interface ActorKv {
1594
1642
  [key: string]: any;
1595
1643
  }
1596
1644
  interface ActorSchedule {
1597
- after(duration: number, action: string, ...args: unknown[]): Promise<void>;
1598
- at(timestamp: number, action: string, ...args: unknown[]): Promise<void>;
1645
+ after(duration: number, action: string, ...args: unknown[]): Promise<string>;
1646
+ at(timestamp: number, action: string, ...args: unknown[]): Promise<string>;
1647
+ cancel(id: string): Promise<boolean>;
1648
+ get(id: string): Promise<ScheduledEventInfo | undefined>;
1649
+ list(): Promise<ScheduledEventInfo[]>;
1650
+ [key: string]: any;
1651
+ }
1652
+ interface ActorCronSetOptions {
1653
+ name: string;
1654
+ expression: string;
1655
+ action: string;
1656
+ args?: unknown[];
1657
+ timezone?: string;
1658
+ /** Defaults to 100. Set to 0 to disable and clear history. Maximum 1,000. */
1659
+ maxHistory?: number;
1660
+ }
1661
+ interface ActorCronEveryOptions {
1662
+ name: string;
1663
+ /** Fixed interval in milliseconds. Minimum 5,000. */
1664
+ interval: number;
1665
+ action: string;
1666
+ args?: unknown[];
1667
+ /** Defaults to 100. Set to 0 to disable and clear history. Maximum 1,000. */
1668
+ maxHistory?: number;
1669
+ }
1670
+ interface ActorCron {
1671
+ set(options: ActorCronSetOptions): Promise<void>;
1672
+ every(options: ActorCronEveryOptions): Promise<void>;
1673
+ get(name: string): Promise<CronJobInfo | undefined>;
1674
+ list(): Promise<CronJobInfo[]>;
1675
+ delete(name: string): Promise<boolean>;
1676
+ history(name: string, options?: {
1677
+ limit?: number;
1678
+ }): Promise<CronFire[]>;
1599
1679
  [key: string]: any;
1600
1680
  }
1681
+ interface ScheduledEventInfo {
1682
+ id: string;
1683
+ action: string;
1684
+ args: unknown[];
1685
+ runAt: number;
1686
+ }
1687
+ type CronJobInfo = {
1688
+ name: string;
1689
+ action: string;
1690
+ args: unknown[];
1691
+ nextRunAt: number;
1692
+ lastRunAt?: number;
1693
+ maxHistory: number;
1694
+ } & ({
1695
+ kind: "cron";
1696
+ expression: string;
1697
+ timezone: string;
1698
+ } | {
1699
+ kind: "every";
1700
+ interval: number;
1701
+ });
1702
+ interface ScheduledFireInfo {
1703
+ kind: "at" | "cron" | "every";
1704
+ id: string;
1705
+ name?: string;
1706
+ scheduledAt: number;
1707
+ firedAt: number;
1708
+ }
1709
+ interface CronFire {
1710
+ action: string;
1711
+ scheduledAt: number;
1712
+ firedAt: number;
1713
+ finishedAt?: number;
1714
+ result: "running" | "ok" | "error" | "skipped";
1715
+ error?: {
1716
+ group: string;
1717
+ code: string;
1718
+ message: string;
1719
+ metadata?: unknown;
1720
+ };
1721
+ }
1601
1722
  type QueueMessageOf<Name extends string, Body> = {
1602
1723
  id: number | bigint;
1603
1724
  name: Name;
@@ -1685,11 +1806,16 @@ interface ActorContext<TState, TConnParams, TConnState, TVars, TInput, TDatabase
1685
1806
  readonly kv: ActorKv;
1686
1807
  readonly db: InferDatabaseClient<TDatabase>;
1687
1808
  readonly schedule: ActorSchedule;
1809
+ readonly cron: ActorCron;
1688
1810
  readonly queue: ActorQueue<TQueues>;
1689
1811
  readonly actorId: string;
1690
1812
  readonly name: string;
1691
1813
  readonly key: string[];
1692
1814
  readonly region: string;
1815
+ /** Provisions the experimental Actor Runtime Socket for this actor generation. */
1816
+ actorRuntimeSocket(): Promise<{
1817
+ path: string;
1818
+ }>;
1693
1819
  readonly conns: Map<string, Conn<TState, TConnParams, TConnState, TVars, TInput, TDatabase, TEvents, TQueues>>;
1694
1820
  readonly log: ActorLogger;
1695
1821
  readonly abortSignal: AbortSignal;
@@ -1752,12 +1878,13 @@ interface RunInspectorConfig<THistory = unknown> {
1752
1878
  * `hidden: true` entries and reject custom-tab ids that collide with
1753
1879
  * a built-in.
1754
1880
  */
1755
- declare const BUILTIN_INSPECTOR_TAB_IDS: readonly ["workflow", "database", "state", "queue", "connections", "console"];
1881
+ declare const BUILTIN_INSPECTOR_TAB_IDS: readonly ["workflow", "database", "state", "queue", "schedules", "connections", "console"];
1756
1882
  declare const BuiltinInspectorTabIdSchema: z.ZodEnum<{
1757
1883
  workflow: "workflow";
1758
1884
  state: "state";
1759
1885
  database: "database";
1760
1886
  queue: "queue";
1887
+ schedules: "schedules";
1761
1888
  connections: "connections";
1762
1889
  console: "console";
1763
1890
  }>;
@@ -1774,6 +1901,7 @@ declare const HideInspectorTabEntrySchema: z.ZodObject<{
1774
1901
  state: "state";
1775
1902
  database: "database";
1776
1903
  queue: "queue";
1904
+ schedules: "schedules";
1777
1905
  connections: "connections";
1778
1906
  console: "console";
1779
1907
  }>;
@@ -1791,6 +1919,7 @@ declare const InspectorTabEntrySchema: z.ZodUnion<readonly [z.ZodObject<{
1791
1919
  state: "state";
1792
1920
  database: "database";
1793
1921
  queue: "queue";
1922
+ schedules: "schedules";
1794
1923
  connections: "connections";
1795
1924
  console: "console";
1796
1925
  }>;
@@ -1809,6 +1938,7 @@ declare const ActorInspectorConfigSchema: z.ZodObject<{
1809
1938
  state: "state";
1810
1939
  database: "database";
1811
1940
  queue: "queue";
1941
+ schedules: "schedules";
1812
1942
  connections: "connections";
1813
1943
  console: "console";
1814
1944
  }>;
@@ -1848,6 +1978,7 @@ declare function disposeRunInspector(run: ((...args: any[]) => any) | AnyRunConf
1848
1978
  declare const GlobalActorOptionsSchema: z.ZodPrefault<z.ZodObject<{
1849
1979
  name: z.ZodOptional<z.ZodString>;
1850
1980
  icon: z.ZodOptional<z.ZodString>;
1981
+ enableActorRuntimeSocket: z.ZodDefault<z.ZodBoolean>;
1851
1982
  canHibernateWebSocket: z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCustom<(request: Request) => boolean, (request: Request) => boolean>]>>;
1852
1983
  }, z.core.$strict>>;
1853
1984
  type GlobalActorOptions = z.infer<typeof GlobalActorOptionsSchema>;
@@ -1868,6 +1999,7 @@ declare const InstanceActorOptionsSchema: z.ZodPrefault<z.ZodObject<{
1868
1999
  noSleep: z.ZodDefault<z.ZodBoolean>;
1869
2000
  sleepTimeout: z.ZodDefault<z.ZodNumber>;
1870
2001
  maxQueueSize: z.ZodDefault<z.ZodNumber>;
2002
+ maxSchedules: z.ZodDefault<z.ZodNumber>;
1871
2003
  maxQueueMessageSize: z.ZodDefault<z.ZodNumber>;
1872
2004
  preloadMaxWorkflowBytes: z.ZodOptional<z.ZodNumber>;
1873
2005
  preloadMaxConnectionsBytes: z.ZodOptional<z.ZodNumber>;
@@ -1877,6 +2009,7 @@ type InstanceActorOptionsInput = z.input<typeof InstanceActorOptionsSchema>;
1877
2009
  declare const ActorOptionsSchema: z.ZodPrefault<z.ZodObject<{
1878
2010
  name: z.ZodOptional<z.ZodString>;
1879
2011
  icon: z.ZodOptional<z.ZodString>;
2012
+ enableActorRuntimeSocket: z.ZodDefault<z.ZodBoolean>;
1880
2013
  canHibernateWebSocket: z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCustom<(request: Request) => boolean, (request: Request) => boolean>]>>;
1881
2014
  createVarsTimeout: z.ZodDefault<z.ZodNumber>;
1882
2015
  createConnStateTimeout: z.ZodDefault<z.ZodNumber>;
@@ -1893,6 +2026,7 @@ declare const ActorOptionsSchema: z.ZodPrefault<z.ZodObject<{
1893
2026
  noSleep: z.ZodDefault<z.ZodBoolean>;
1894
2027
  sleepTimeout: z.ZodDefault<z.ZodNumber>;
1895
2028
  maxQueueSize: z.ZodDefault<z.ZodNumber>;
2029
+ maxSchedules: z.ZodDefault<z.ZodNumber>;
1896
2030
  maxQueueMessageSize: z.ZodDefault<z.ZodNumber>;
1897
2031
  preloadMaxWorkflowBytes: z.ZodOptional<z.ZodNumber>;
1898
2032
  preloadMaxConnectionsBytes: z.ZodOptional<z.ZodNumber>;
@@ -1939,6 +2073,7 @@ declare const ActorConfigSchema: z.ZodObject<{
1939
2073
  options: z.ZodPrefault<z.ZodObject<{
1940
2074
  name: z.ZodOptional<z.ZodString>;
1941
2075
  icon: z.ZodOptional<z.ZodString>;
2076
+ enableActorRuntimeSocket: z.ZodDefault<z.ZodBoolean>;
1942
2077
  canHibernateWebSocket: z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCustom<(request: Request) => boolean, (request: Request) => boolean>]>>;
1943
2078
  createVarsTimeout: z.ZodDefault<z.ZodNumber>;
1944
2079
  createConnStateTimeout: z.ZodDefault<z.ZodNumber>;
@@ -1955,6 +2090,7 @@ declare const ActorConfigSchema: z.ZodObject<{
1955
2090
  noSleep: z.ZodDefault<z.ZodBoolean>;
1956
2091
  sleepTimeout: z.ZodDefault<z.ZodNumber>;
1957
2092
  maxQueueSize: z.ZodDefault<z.ZodNumber>;
2093
+ maxSchedules: z.ZodDefault<z.ZodNumber>;
1958
2094
  maxQueueMessageSize: z.ZodDefault<z.ZodNumber>;
1959
2095
  preloadMaxWorkflowBytes: z.ZodOptional<z.ZodNumber>;
1960
2096
  preloadMaxConnectionsBytes: z.ZodOptional<z.ZodNumber>;
@@ -1972,6 +2108,7 @@ declare const ActorConfigSchema: z.ZodObject<{
1972
2108
  state: "state";
1973
2109
  database: "database";
1974
2110
  queue: "queue";
2111
+ schedules: "schedules";
1975
2112
  connections: "connections";
1976
2113
  console: "console";
1977
2114
  }>;
@@ -2190,6 +2327,7 @@ declare function test<TState, TConnParams, TConnState, TVars, TInput, TDatabase
2190
2327
  declare const DocActorOptionsSchema: z.ZodObject<{
2191
2328
  name: z.ZodOptional<z.ZodString>;
2192
2329
  icon: z.ZodOptional<z.ZodString>;
2330
+ enableActorRuntimeSocket: z.ZodOptional<z.ZodBoolean>;
2193
2331
  createVarsTimeout: z.ZodOptional<z.ZodNumber>;
2194
2332
  createConnStateTimeout: z.ZodOptional<z.ZodNumber>;
2195
2333
  onMigrateTimeout: z.ZodOptional<z.ZodNumber>;
@@ -2205,10 +2343,9 @@ declare const DocActorOptionsSchema: z.ZodObject<{
2205
2343
  noSleep: z.ZodOptional<z.ZodBoolean>;
2206
2344
  sleepTimeout: z.ZodOptional<z.ZodNumber>;
2207
2345
  maxQueueSize: z.ZodOptional<z.ZodNumber>;
2346
+ maxSchedules: z.ZodOptional<z.ZodNumber>;
2208
2347
  maxQueueMessageSize: z.ZodOptional<z.ZodNumber>;
2209
2348
  canHibernateWebSocket: z.ZodOptional<z.ZodBoolean>;
2210
- preloadMaxWorkflowBytes: z.ZodOptional<z.ZodNumber>;
2211
- preloadMaxConnectionsBytes: z.ZodOptional<z.ZodNumber>;
2212
2349
  }, z.core.$strip>;
2213
2350
  declare const DocActorConfigSchema: z.ZodObject<{
2214
2351
  state: z.ZodOptional<z.ZodUnknown>;
@@ -2239,6 +2376,7 @@ declare const DocActorConfigSchema: z.ZodObject<{
2239
2376
  options: z.ZodOptional<z.ZodObject<{
2240
2377
  name: z.ZodOptional<z.ZodString>;
2241
2378
  icon: z.ZodOptional<z.ZodString>;
2379
+ enableActorRuntimeSocket: z.ZodOptional<z.ZodBoolean>;
2242
2380
  createVarsTimeout: z.ZodOptional<z.ZodNumber>;
2243
2381
  createConnStateTimeout: z.ZodOptional<z.ZodNumber>;
2244
2382
  onMigrateTimeout: z.ZodOptional<z.ZodNumber>;
@@ -2254,11 +2392,10 @@ declare const DocActorConfigSchema: z.ZodObject<{
2254
2392
  noSleep: z.ZodOptional<z.ZodBoolean>;
2255
2393
  sleepTimeout: z.ZodOptional<z.ZodNumber>;
2256
2394
  maxQueueSize: z.ZodOptional<z.ZodNumber>;
2395
+ maxSchedules: z.ZodOptional<z.ZodNumber>;
2257
2396
  maxQueueMessageSize: z.ZodOptional<z.ZodNumber>;
2258
2397
  canHibernateWebSocket: z.ZodOptional<z.ZodBoolean>;
2259
- preloadMaxWorkflowBytes: z.ZodOptional<z.ZodNumber>;
2260
- preloadMaxConnectionsBytes: z.ZodOptional<z.ZodNumber>;
2261
2398
  }, z.core.$strip>>;
2262
2399
  }, z.core.$strip>;
2263
2400
 
2264
- export { type Conn as $, type AnyActorDefinition as A, type BaseActorDefinition as B, type ConnectContext as C, type DestroyContext as D, type EventSchemaConfig as E, type ActorQuery as F, type ActorQueue as G, type ActorSchedule as H, type ActorTypes as I, ActorsSchema as J, type AnyActorInstance as K, type AnyClient as L, type MigrateContext as M, type AnyConn as N, type AnyStaticActorDefinition as O, type AnyStaticActorInstance as P, type QueueSchemaConfig as Q, type RequestContext as R, type SleepContext as S, type AuthIntent as T, BUILTIN_INSPECTOR_TAB_IDS as U, type BaseActorInstance as V, type WakeContext as W, BuiltinInspectorTabIdSchema as X, CONN_DRIVER_SYMBOL as Y, CONN_STATE_MANAGER_SYMBOL as Z, type Client as _, type ActionContext as a, getRunFunction as a$, CustomInspectorTabEntrySchema as a0, DEFAULT_SLEEP_GRACE_PERIOD as a1, DocActorConfigSchema as a2, DocActorOptionsSchema as a3, DocConfigurePoolSchema as a4, DocEnvoyConfigSchema as a5, DocRegistryConfigSchema as a6, DocServerlessConfigSchema as a7, DocSqliteConfigSchema as a8, type Encoding as a9, type RegistryConfigInput as aA, RegistryConfigSchema as aB, type RegistryDeps as aC, type RegistryRoutes as aD, type RunConfig as aE, RunConfigSchema as aF, type RunInspectorConfig as aG, type RuntimeKind as aH, RuntimeKindSchema as aI, type ServerlessHandler as aJ, type SqliteBackend as aK, SqliteBackendSchema as aL, type SqliteConfig as aM, SqliteConfigSchema as aN, type TestConfig as aO, TestConfigSchema as aP, type Type as aQ, type WasmRuntimeBindings as aR, type WasmRuntimeConfig as aS, WasmRuntimeConfigSchema as aT, type WasmRuntimeInitInput as aU, type WorkflowInspectorConfig as aV, actor as aW, buildActorNames as aX, createClientWithDriver as aY, disposeRunInspector as aZ, event as a_, type FetchHandler as aa, type GlobalActorOptions as ab, type GlobalActorOptionsInput as ac, GlobalActorOptionsSchema as ad, HideInspectorTabEntrySchema as ae, InspectorTabEntrySchema as af, type InspectorUnsubscribe as ag, type InstanceActorOptions as ah, type InstanceActorOptionsInput as ai, InstanceActorOptionsSchema as aj, type QueueEnqueueAndWaitOptions as ak, type QueueFilterName as al, type QueueIterOptions as am, type QueueMessageOf as an, type QueueName as ao, type QueueNextBatchOptions as ap, type QueueNextOptions as aq, type QueueResultMessageForName as ar, type QueueTryNextBatchOptions as as, type QueueTryNextOptions as at, type QueueWaitOptions as au, RAW_STATE_SYMBOL as av, RUN_FUNCTION_CONFIG_SYMBOL as aw, Registry as ax, type RegistryActors as ay, type RegistryConfig as az, type BeforeActionResponseContext as b, getRunInspectorConfig as b0, getRunMetadata as b1, isStaticActorDefinition as b2, isStaticActorInstance as b3, lookupInRegistry as b4, queue as b5, setup as b6, test as b7, type ActorAccessor as b8, type ActorActionFunction as b9, type ActorActionOptions as ba, type ActorConn as bb, ActorConnRaw as bc, type ActorConnStatus as bd, type ActorConnectOptions as be, type ActorGatewayOptions as bf, type ActorHandle as bg, ActorHandleRaw as bh, ClientRaw as bi, type ConnectionStateCallback as bj, type CreateOptions as bk, type CreateRequest as bl, type EventUnsubscribe as bm, type ExtractActorsFromRegistry as bn, type ExtractRegistryFromClient as bo, type GetOptions as bp, type GetWithIdOptions as bq, type QueryOptions as br, type Region as bs, type StatusChangeCallback as bt, type InferEventArgs as bu, type InferSchemaMap as bv, type BeforeConnectContext as c, type CreateConnStateContext as d, type CreateContext as e, type CreateVarsContext as f, type DisconnectContext as g, type RunContext as h, type StateChangeContext as i, type WebSocketContext as j, ACTOR_CONTEXT_INTERNAL_SYMBOL as k, type Actions as l, type ActorConfig as m, type ActorConfigInput as n, ActorConfigSchema as o, type ActorContext as p, type ActorContextOf as q, ActorDefinition as r, type ActorInspectorConfig as s, ActorInspectorConfigSchema as t, type ActorKey as u, type ActorKv as v, type ActorLogger as w, type ActorOptions as x, type ActorOptionsInput as y, ActorOptionsSchema as z };
2401
+ export { CONN_DRIVER_SYMBOL as $, type AnyActorDefinition as A, type BaseActorDefinition as B, type ConnectContext as C, type DestroyContext as D, type EventSchemaConfig as E, type ActorOptions as F, type ActorOptionsInput as G, ActorOptionsSchema as H, type ActorQuery as I, type ActorQueue as J, type ActorSchedule as K, type ActorTypes as L, type MigrateContext as M, ActorsSchema as N, type AnyActorInstance as O, type AnyClient as P, type QueueSchemaConfig as Q, type RequestContext as R, type SleepContext as S, type AnyConn as T, type AnyStaticActorDefinition as U, type AnyStaticActorInstance as V, type WakeContext as W, type AuthIntent as X, BUILTIN_INSPECTOR_TAB_IDS as Y, type BaseActorInstance as Z, BuiltinInspectorTabIdSchema as _, type ActionContext as a, type WorkflowInspectorConfig as a$, CONN_STATE_MANAGER_SYMBOL as a0, type Client as a1, type Conn as a2, type CronFire as a3, type CronJobInfo as a4, CustomInspectorTabEntrySchema as a5, DEFAULT_SLEEP_GRACE_PERIOD as a6, DocActorConfigSchema as a7, DocActorOptionsSchema as a8, DocConfigurePoolSchema as a9, RUN_FUNCTION_CONFIG_SYMBOL as aA, Registry as aB, type RegistryActors as aC, type RegistryConfig as aD, type RegistryConfigInput as aE, RegistryConfigSchema as aF, type RegistryDeps as aG, type RegistryRoutes as aH, type RunConfig as aI, RunConfigSchema as aJ, type RunInspectorConfig as aK, type RuntimeKind as aL, RuntimeKindSchema as aM, type ScheduledEventInfo as aN, type ScheduledFireInfo as aO, type ServerlessHandler as aP, type SqliteBackend as aQ, SqliteBackendSchema as aR, type SqliteConfig as aS, SqliteConfigSchema as aT, type TestConfig as aU, TestConfigSchema as aV, type Type as aW, type WasmRuntimeBindings as aX, type WasmRuntimeConfig as aY, WasmRuntimeConfigSchema as aZ, type WasmRuntimeInitInput as a_, DocEnvoyConfigSchema as aa, DocRegistryConfigSchema as ab, DocServerlessConfigSchema as ac, DocSqliteConfigSchema as ad, type FetchHandler as ae, type GlobalActorOptions as af, type GlobalActorOptionsInput as ag, GlobalActorOptionsSchema as ah, HideInspectorTabEntrySchema as ai, InspectorTabEntrySchema as aj, type InspectorUnsubscribe as ak, type InstanceActorOptions as al, type InstanceActorOptionsInput as am, InstanceActorOptionsSchema as an, type QueueEnqueueAndWaitOptions as ao, type QueueFilterName as ap, type QueueIterOptions as aq, type QueueMessageOf as ar, type QueueName as as, type QueueNextBatchOptions as at, type QueueNextOptions as au, type QueueResultMessageForName as av, type QueueTryNextBatchOptions as aw, type QueueTryNextOptions as ax, type QueueWaitOptions as ay, RAW_STATE_SYMBOL as az, type BeforeActionResponseContext as b, actor as b0, buildActorNames as b1, createClientWithDriver as b2, disposeRunInspector as b3, event as b4, getRunFunction as b5, getRunInspectorConfig as b6, getRunMetadata as b7, isStaticActorDefinition as b8, isStaticActorInstance as b9, type InferEventArgs as bA, type InferSchemaMap as bB, lookupInRegistry as ba, queue as bb, setup as bc, test as bd, type ActorAccessor as be, type ActorActionFunction as bf, type ActorActionOptions as bg, type ActorConn as bh, ActorConnRaw as bi, type ActorConnStatus as bj, type ActorConnectOptions as bk, type ActorGatewayOptions as bl, type ActorHandle as bm, ActorHandleRaw as bn, ClientRaw as bo, type ConnectionStateCallback as bp, type CreateOptions as bq, type CreateRequest as br, type EventUnsubscribe as bs, type ExtractActorsFromRegistry as bt, type ExtractRegistryFromClient as bu, type GetOptions as bv, type GetWithIdOptions as bw, type QueryOptions as bx, type Region as by, type StatusChangeCallback as bz, type BeforeConnectContext as c, type CreateConnStateContext as d, type CreateContext as e, type CreateVarsContext as f, type DisconnectContext as g, type RunContext as h, type StateChangeContext as i, type WebSocketContext as j, ACTOR_CONTEXT_INTERNAL_SYMBOL as k, type Actions as l, type ActorConfig as m, type ActorConfigInput as n, ActorConfigSchema as o, type ActorContext as p, type ActorContextOf as q, type ActorCron as r, type ActorCronEveryOptions as s, type ActorCronSetOptions as t, ActorDefinition as u, type ActorInspectorConfig as v, ActorInspectorConfigSchema as w, type ActorKey as x, type ActorKv as y, type ActorLogger as z };