rivetkit 0.0.0-skip-ready-wait-flatten-client-options.1cae221 → 0.0.0-sql-metrics.eac581d

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 (274) hide show
  1. package/dist/browser/client.d.ts +778 -98
  2. package/dist/browser/client.js +1415 -757
  3. package/dist/browser/client.js.map +1 -1
  4. package/dist/browser/inspector/client.d.ts +126 -3
  5. package/dist/browser/inspector/client.js +2067 -233
  6. package/dist/browser/inspector/client.js.map +1 -1
  7. package/dist/tsup/actor/errors.cjs +6 -2
  8. package/dist/tsup/actor/errors.cjs.map +1 -1
  9. package/dist/tsup/actor/errors.d.cts +1 -74
  10. package/dist/tsup/actor/errors.d.ts +1 -74
  11. package/dist/tsup/actor/errors.js +5 -1
  12. package/dist/tsup/agent-os/index.cjs +2371 -2093
  13. package/dist/tsup/agent-os/index.cjs.map +1 -1
  14. package/dist/tsup/agent-os/index.d.cts +772 -94
  15. package/dist/tsup/agent-os/index.d.ts +772 -94
  16. package/dist/tsup/agent-os/index.js +2375 -2097
  17. package/dist/tsup/agent-os/index.js.map +1 -1
  18. package/dist/tsup/{chunk-OIKOPSXQ.js → chunk-3Q3KETKF.js} +13 -7
  19. package/dist/tsup/chunk-3Q3KETKF.js.map +1 -0
  20. package/dist/tsup/{chunk-V3QNBJ7N.cjs → chunk-4FC7TVS6.cjs} +35 -10
  21. package/dist/tsup/chunk-4FC7TVS6.cjs.map +1 -0
  22. package/dist/tsup/{chunk-XNZR7UD2.cjs → chunk-6ADBGIKV.cjs} +484 -66
  23. package/dist/tsup/chunk-6ADBGIKV.cjs.map +1 -0
  24. package/dist/tsup/{chunk-4ZIWB4CQ.js → chunk-DZ7KAOCW.js} +2 -2
  25. package/dist/tsup/{chunk-22XU3BVY.cjs → chunk-EI3JQYAW.cjs} +1083 -480
  26. package/dist/tsup/chunk-EI3JQYAW.cjs.map +1 -0
  27. package/dist/tsup/{chunk-LNMB25HW.js → chunk-FMMENOAT.js} +952 -349
  28. package/dist/tsup/chunk-FMMENOAT.js.map +1 -0
  29. package/dist/tsup/{chunk-AK57AL7S.cjs → chunk-HNHLBM3Y.cjs} +198 -19
  30. package/dist/tsup/chunk-HNHLBM3Y.cjs.map +1 -0
  31. package/dist/tsup/{chunk-D2TLG75Y.cjs → chunk-IW3TD3AZ.cjs} +10 -10
  32. package/dist/tsup/chunk-IW3TD3AZ.cjs.map +1 -0
  33. package/dist/tsup/{chunk-3BFYSYRU.js → chunk-JI6GZ2C2.js} +4 -12
  34. package/dist/tsup/chunk-JI6GZ2C2.js.map +1 -0
  35. package/dist/tsup/{chunk-PCBNKI2J.js → chunk-JTHHCZCZ.js} +24 -1
  36. package/dist/tsup/chunk-JTHHCZCZ.js.map +1 -0
  37. package/dist/tsup/{chunk-POTPHU3P.cjs → chunk-KTH2ZCJ7.cjs} +3 -3
  38. package/dist/tsup/chunk-KTH2ZCJ7.cjs.map +1 -0
  39. package/dist/tsup/{chunk-2NDZ7JCR.cjs → chunk-KVFIONKQ.cjs} +25 -2
  40. package/dist/tsup/chunk-KVFIONKQ.cjs.map +1 -0
  41. package/dist/tsup/{chunk-IOYKCB6Y.cjs → chunk-MCRNU6ZS.cjs} +46 -9
  42. package/dist/tsup/chunk-MCRNU6ZS.cjs.map +1 -0
  43. package/dist/tsup/{chunk-LLD2D5LO.cjs → chunk-MYWZCDML.cjs} +4 -12
  44. package/dist/tsup/chunk-MYWZCDML.cjs.map +1 -0
  45. package/dist/tsup/{chunk-7MRGNVSR.js → chunk-QWLJCP3X.js} +196 -17
  46. package/dist/tsup/chunk-QWLJCP3X.js.map +1 -0
  47. package/dist/tsup/{chunk-D4TSTM6C.js → chunk-VHZ2ICIB.js} +476 -58
  48. package/dist/tsup/chunk-VHZ2ICIB.js.map +1 -0
  49. package/dist/tsup/{chunk-NFC5VU36.cjs → chunk-XFAJRV5B.cjs} +17 -11
  50. package/dist/tsup/chunk-XFAJRV5B.cjs.map +1 -0
  51. package/dist/tsup/{chunk-RZEJJJKU.js → chunk-XUBFECDW.js} +45 -8
  52. package/dist/tsup/chunk-XUBFECDW.js.map +1 -0
  53. package/dist/tsup/{chunk-KSG2COSQ.js → chunk-ZKM6KFU7.js} +6 -6
  54. package/dist/tsup/chunk-ZKM6KFU7.js.map +1 -0
  55. package/dist/tsup/{chunk-K34B3OVG.js → chunk-ZZ3WBRPD.js} +34 -9
  56. package/dist/tsup/chunk-ZZ3WBRPD.js.map +1 -0
  57. package/dist/tsup/client/mod.cjs +8 -9
  58. package/dist/tsup/client/mod.cjs.map +1 -1
  59. package/dist/tsup/client/mod.d.cts +10 -10
  60. package/dist/tsup/client/mod.d.ts +10 -10
  61. package/dist/tsup/client/mod.js +7 -8
  62. package/dist/tsup/common/log.cjs +5 -3
  63. package/dist/tsup/common/log.cjs.map +1 -1
  64. package/dist/tsup/common/log.d.cts +5 -1
  65. package/dist/tsup/common/log.d.ts +5 -1
  66. package/dist/tsup/common/log.js +6 -4
  67. package/dist/tsup/common/websocket.cjs +4 -4
  68. package/dist/tsup/common/websocket.cjs.map +1 -1
  69. package/dist/tsup/common/websocket.js +3 -3
  70. package/dist/tsup/{config-kxXbtrJU.d.ts → config-BiFJvUlm.d.cts} +48 -4
  71. package/dist/tsup/{config-kxXbtrJU.d.cts → config-BiFJvUlm.d.ts} +48 -4
  72. package/dist/tsup/{config-CRdGwwbr.d.cts → config-Dc-M9yZ2.d.cts} +772 -62
  73. package/dist/tsup/{config-DIpBWm5C.d.ts → config-gT4c5si9.d.ts} +772 -62
  74. package/dist/tsup/context-DIes1x7n.d.cts +129 -0
  75. package/dist/tsup/context-DKoLp07T.d.ts +129 -0
  76. package/dist/tsup/db/drizzle.cjs +146 -72
  77. package/dist/tsup/db/drizzle.cjs.map +1 -1
  78. package/dist/tsup/db/drizzle.d.cts +8 -4
  79. package/dist/tsup/db/drizzle.d.ts +8 -4
  80. package/dist/tsup/db/drizzle.js +146 -72
  81. package/dist/tsup/db/drizzle.js.map +1 -1
  82. package/dist/tsup/db/mod.cjs +83 -18
  83. package/dist/tsup/db/mod.cjs.map +1 -1
  84. package/dist/tsup/db/mod.d.cts +12 -4
  85. package/dist/tsup/db/mod.d.ts +12 -4
  86. package/dist/tsup/db/mod.js +83 -18
  87. package/dist/tsup/db/mod.js.map +1 -1
  88. package/dist/tsup/dynamic/mod.cjs +24 -0
  89. package/dist/tsup/dynamic/mod.cjs.map +1 -0
  90. package/dist/tsup/dynamic/mod.d.cts +37 -0
  91. package/dist/tsup/dynamic/mod.d.ts +37 -0
  92. package/dist/tsup/dynamic/mod.js +24 -0
  93. package/dist/tsup/dynamic/mod.js.map +1 -0
  94. package/dist/tsup/inspector/mod.cjs +46 -12
  95. package/dist/tsup/inspector/mod.cjs.map +1 -1
  96. package/dist/tsup/inspector/mod.d.cts +30 -6
  97. package/dist/tsup/inspector/mod.d.ts +30 -6
  98. package/dist/tsup/inspector/mod.js +45 -11
  99. package/dist/tsup/inspector/mod.js.map +1 -1
  100. package/dist/tsup/inspector-tab/mod.cjs +162 -0
  101. package/dist/tsup/inspector-tab/mod.cjs.map +1 -0
  102. package/dist/tsup/inspector-tab/mod.d.cts +240 -0
  103. package/dist/tsup/inspector-tab/mod.d.ts +240 -0
  104. package/dist/tsup/inspector-tab/mod.js +162 -0
  105. package/dist/tsup/inspector-tab/mod.js.map +1 -0
  106. package/dist/tsup/mod.cjs +1848 -538
  107. package/dist/tsup/mod.cjs.map +1 -1
  108. package/dist/tsup/mod.d.cts +6 -7
  109. package/dist/tsup/mod.d.ts +6 -7
  110. package/dist/tsup/mod.js +1778 -468
  111. package/dist/tsup/mod.js.map +1 -1
  112. package/dist/tsup/test/mod.cjs +26 -21
  113. package/dist/tsup/test/mod.cjs.map +1 -1
  114. package/dist/tsup/test/mod.d.cts +5 -6
  115. package/dist/tsup/test/mod.d.ts +5 -6
  116. package/dist/tsup/test/mod.js +25 -20
  117. package/dist/tsup/test/mod.js.map +1 -1
  118. package/dist/tsup/unstable/migrations.cjs +101 -0
  119. package/dist/tsup/unstable/migrations.cjs.map +1 -0
  120. package/dist/tsup/unstable/migrations.d.cts +29 -0
  121. package/dist/tsup/unstable/migrations.d.ts +29 -0
  122. package/dist/tsup/unstable/migrations.js +101 -0
  123. package/dist/tsup/unstable/migrations.js.map +1 -0
  124. package/dist/tsup/utils-CV0akuDD.d.ts +162 -0
  125. package/dist/tsup/utils-CqDnC_PS.d.cts +104 -0
  126. package/dist/tsup/utils-CqDnC_PS.d.ts +104 -0
  127. package/dist/tsup/utils-DQDCphrl.d.cts +162 -0
  128. package/dist/tsup/utils.cjs +7 -3
  129. package/dist/tsup/utils.cjs.map +1 -1
  130. package/dist/tsup/utils.d.cts +4 -147
  131. package/dist/tsup/utils.d.ts +4 -147
  132. package/dist/tsup/utils.js +6 -2
  133. package/dist/tsup/workflow/mod.cjs +486 -375
  134. package/dist/tsup/workflow/mod.cjs.map +1 -1
  135. package/dist/tsup/workflow/mod.d.cts +9 -10
  136. package/dist/tsup/workflow/mod.d.ts +9 -10
  137. package/dist/tsup/workflow/mod.js +478 -367
  138. package/dist/tsup/workflow/mod.js.map +1 -1
  139. package/package.json +51 -15
  140. package/src/actor/actions.ts +119 -0
  141. package/src/actor/config.test.ts +14 -0
  142. package/src/actor/config.ts +351 -93
  143. package/src/actor/contexts/index.ts +7 -2
  144. package/src/actor/definition.ts +38 -26
  145. package/src/actor/errors.ts +70 -7
  146. package/src/actor/keys.ts +2 -1
  147. package/src/actor/mod.ts +22 -20
  148. package/src/actor/schema.ts +2 -2
  149. package/src/agent-os/actor/index.ts +39 -19
  150. package/src/agent-os/actor/preview.ts +1 -2
  151. package/src/agent-os/actor/session.ts +2 -2
  152. package/src/agent-os/config.ts +1 -1
  153. package/src/agent-os/fs/database-vfs.ts +1 -1
  154. package/src/agent-os/index.ts +16 -15
  155. package/src/client/actor-common.ts +90 -62
  156. package/src/client/actor-conn.ts +59 -64
  157. package/src/client/actor-handle.ts +125 -71
  158. package/src/client/actor-query.ts +5 -5
  159. package/src/client/client.ts +35 -11
  160. package/src/client/config.ts +3 -3
  161. package/src/client/errors.ts +2 -1
  162. package/src/client/lifecycle-errors.ts +2 -4
  163. package/src/client/query.ts +3 -1
  164. package/src/client/queue.ts +8 -3
  165. package/src/client/raw-utils.ts +13 -12
  166. package/src/client/resolve-gateway-target.ts +3 -1
  167. package/src/client/utils.ts +34 -10
  168. package/src/common/actor-router-consts.ts +7 -4
  169. package/src/common/actor-websocket.ts +3 -1
  170. package/src/common/bare/actor-persist/v1.ts +205 -163
  171. package/src/common/bare/actor-persist/v2.ts +265 -213
  172. package/src/common/bare/actor-persist/v3.ts +176 -172
  173. package/src/common/bare/actor-persist/v4.ts +254 -253
  174. package/src/common/bare/generated/actor-runtime-socket-protocol/v1.ts +848 -0
  175. package/src/common/bare/generated/client-protocol/v4.ts +599 -0
  176. package/src/common/bare/generated/inspector/v5.ts +1016 -0
  177. package/src/common/bare/generated/inspector/v6.ts +1367 -0
  178. package/src/common/bare/transport/v1.ts +694 -542
  179. package/src/common/client-protocol-versioned.ts +176 -67
  180. package/src/common/client-protocol-zod.ts +7 -0
  181. package/src/common/client-protocol.ts +1 -1
  182. package/src/common/database/config.ts +63 -9
  183. package/src/common/database/mod.test.ts +201 -40
  184. package/src/common/database/mod.ts +111 -30
  185. package/src/common/database/native-database.test.ts +44 -22
  186. package/src/common/database/native-database.ts +162 -6
  187. package/src/common/database/shared.ts +25 -0
  188. package/src/common/encoding.ts +278 -34
  189. package/src/common/engine.ts +28 -1
  190. package/src/common/eventsource.ts +1 -1
  191. package/src/common/fetch-like.ts +49 -0
  192. package/src/common/inline-websocket-adapter.ts +14 -13
  193. package/src/common/inspector-transport.ts +12 -2
  194. package/src/common/log.ts +15 -8
  195. package/src/common/router.ts +49 -23
  196. package/src/common/utils.ts +10 -202
  197. package/src/common/websocket-interface.ts +1 -1
  198. package/src/db/drizzle.test.ts +164 -0
  199. package/src/db/drizzle.ts +187 -89
  200. package/src/db/mod.ts +3 -1
  201. package/src/devtools-loader/index.ts +4 -7
  202. package/src/devtools-loader/serve-devtools.ts +26 -0
  203. package/src/dynamic/instance.ts +32 -0
  204. package/src/dynamic/internal.ts +50 -0
  205. package/src/dynamic/isolate-runtime.ts +64 -0
  206. package/src/dynamic/mod.ts +32 -0
  207. package/src/engine-client/actor-http-client.ts +6 -9
  208. package/src/engine-client/actor-websocket-client.ts +14 -13
  209. package/src/engine-client/api-endpoints.ts +51 -2
  210. package/src/engine-client/api-utils.ts +2 -2
  211. package/src/engine-client/driver.ts +7 -19
  212. package/src/engine-client/mod.ts +30 -55
  213. package/src/engine-client/ws-proxy.ts +9 -4
  214. package/src/inspector/client.browser.ts +127 -15
  215. package/src/inspector/mod.ts +2 -4
  216. package/src/inspector-tab/mod.ts +301 -0
  217. package/src/registry/config/envoy.ts +1 -2
  218. package/src/registry/config/index.ts +41 -54
  219. package/src/registry/index.ts +554 -91
  220. package/src/registry/napi-runtime.ts +340 -23
  221. package/src/registry/native-validation.ts +10 -12
  222. package/src/registry/native.ts +849 -393
  223. package/src/registry/process-metrics.ts +250 -0
  224. package/src/registry/runtime.ts +243 -9
  225. package/src/registry/wasm-runtime.ts +290 -9
  226. package/src/registry/write-through-proxy.ts +141 -0
  227. package/src/serde.ts +2 -2
  228. package/src/serverless/configure.ts +19 -8
  229. package/src/test/mod.ts +2 -17
  230. package/src/test/ready.ts +22 -0
  231. package/src/unstable/migrations.test.ts +170 -0
  232. package/src/unstable/migrations.ts +141 -0
  233. package/src/utils/crypto.ts +14 -0
  234. package/src/utils/endpoint-parser.ts +1 -1
  235. package/src/utils/env-vars.ts +37 -0
  236. package/src/utils/router.ts +1 -1
  237. package/src/utils.ts +4 -2
  238. package/src/workflow/context.ts +683 -242
  239. package/src/workflow/driver.test.ts +62 -0
  240. package/src/workflow/driver.ts +248 -119
  241. package/src/workflow/inspector.ts +21 -16
  242. package/src/workflow/mod.ts +39 -25
  243. package/dist/tsup/chunk-22XU3BVY.cjs.map +0 -1
  244. package/dist/tsup/chunk-2NDZ7JCR.cjs.map +0 -1
  245. package/dist/tsup/chunk-3BFYSYRU.js.map +0 -1
  246. package/dist/tsup/chunk-7MRGNVSR.js.map +0 -1
  247. package/dist/tsup/chunk-AK57AL7S.cjs.map +0 -1
  248. package/dist/tsup/chunk-D2TLG75Y.cjs.map +0 -1
  249. package/dist/tsup/chunk-D4TSTM6C.js.map +0 -1
  250. package/dist/tsup/chunk-IOYKCB6Y.cjs.map +0 -1
  251. package/dist/tsup/chunk-K34B3OVG.js.map +0 -1
  252. package/dist/tsup/chunk-KSG2COSQ.js.map +0 -1
  253. package/dist/tsup/chunk-LLD2D5LO.cjs.map +0 -1
  254. package/dist/tsup/chunk-LNMB25HW.js.map +0 -1
  255. package/dist/tsup/chunk-NFC5VU36.cjs.map +0 -1
  256. package/dist/tsup/chunk-OIKOPSXQ.js.map +0 -1
  257. package/dist/tsup/chunk-PCBNKI2J.js.map +0 -1
  258. package/dist/tsup/chunk-POTPHU3P.cjs.map +0 -1
  259. package/dist/tsup/chunk-RZEJJJKU.js.map +0 -1
  260. package/dist/tsup/chunk-TPBHXFB2.cjs +0 -268
  261. package/dist/tsup/chunk-TPBHXFB2.cjs.map +0 -1
  262. package/dist/tsup/chunk-V3QNBJ7N.cjs.map +0 -1
  263. package/dist/tsup/chunk-W54QCENI.js +0 -268
  264. package/dist/tsup/chunk-W54QCENI.js.map +0 -1
  265. package/dist/tsup/chunk-XNZR7UD2.cjs.map +0 -1
  266. package/dist/tsup/context-B7G6sk7x.d.ts +0 -92
  267. package/dist/tsup/context-DzMRHkjC.d.cts +0 -92
  268. package/dist/tsup/utils-fwx3o3K9.d.cts +0 -18
  269. package/dist/tsup/utils-fwx3o3K9.d.ts +0 -18
  270. package/src/actor/driver.ts +0 -141
  271. package/src/actor/instance/mod.ts +0 -2501
  272. package/src/drivers/engine/actor-driver.ts +0 -2470
  273. package/src/utils/serve.ts +0 -217
  274. /package/dist/tsup/{chunk-4ZIWB4CQ.js.map → chunk-DZ7KAOCW.js.map} +0 -0
@@ -73,6 +73,25 @@ type DatabaseTableRowsRequest = {
73
73
  };
74
74
  declare function readDatabaseTableRowsRequest(bc: bare.ByteCursor): DatabaseTableRowsRequest;
75
75
  declare function writeDatabaseTableRowsRequest(bc: bare.ByteCursor, x: DatabaseTableRowsRequest): void;
76
+ type SchedulesRequest = {
77
+ readonly id: uint;
78
+ };
79
+ declare function readSchedulesRequest(bc: bare.ByteCursor): SchedulesRequest;
80
+ declare function writeSchedulesRequest(bc: bare.ByteCursor, x: SchedulesRequest): void;
81
+ type ScheduleHistoryRequest = {
82
+ readonly id: uint;
83
+ readonly scheduleId: string;
84
+ readonly limit: uint;
85
+ };
86
+ declare function readScheduleHistoryRequest(bc: bare.ByteCursor): ScheduleHistoryRequest;
87
+ declare function writeScheduleHistoryRequest(bc: bare.ByteCursor, x: ScheduleHistoryRequest): void;
88
+ type ScheduleDeleteRequest = {
89
+ readonly id: uint;
90
+ readonly scheduleId: string;
91
+ readonly kind: string;
92
+ };
93
+ declare function readScheduleDeleteRequest(bc: bare.ByteCursor): ScheduleDeleteRequest;
94
+ declare function writeScheduleDeleteRequest(bc: bare.ByteCursor, x: ScheduleDeleteRequest): void;
76
95
  type ToServerBody = {
77
96
  readonly tag: "PatchStateRequest";
78
97
  readonly val: PatchStateRequest;
@@ -106,6 +125,15 @@ type ToServerBody = {
106
125
  } | {
107
126
  readonly tag: "DatabaseTableRowsRequest";
108
127
  readonly val: DatabaseTableRowsRequest;
128
+ } | {
129
+ readonly tag: "SchedulesRequest";
130
+ readonly val: SchedulesRequest;
131
+ } | {
132
+ readonly tag: "ScheduleHistoryRequest";
133
+ readonly val: ScheduleHistoryRequest;
134
+ } | {
135
+ readonly tag: "ScheduleDeleteRequest";
136
+ readonly val: ScheduleDeleteRequest;
109
137
  };
110
138
  declare function readToServerBody(bc: bare.ByteCursor): ToServerBody;
111
139
  declare function writeToServerBody(bc: bare.ByteCursor, x: ToServerBody): void;
@@ -122,6 +150,51 @@ type Connection = {
122
150
  };
123
151
  declare function readConnection(bc: bare.ByteCursor): Connection;
124
152
  declare function writeConnection(bc: bare.ByteCursor, x: Connection): void;
153
+ /**
154
+ * Inspector tab descriptor. `label`/`icon` are set for author-declared custom
155
+ * tabs; a hidden built-in only carries `id` with `hidden` set.
156
+ */
157
+ type TabConfigEntry = {
158
+ readonly id: string;
159
+ readonly label: string | null;
160
+ readonly icon: string | null;
161
+ readonly hidden: boolean;
162
+ };
163
+ declare function readTabConfigEntry(bc: bare.ByteCursor): TabConfigEntry;
164
+ declare function writeTabConfigEntry(bc: bare.ByteCursor, x: TabConfigEntry): void;
165
+ type Schedule = {
166
+ readonly id: string;
167
+ readonly name: string | null;
168
+ readonly kind: string;
169
+ readonly action: string;
170
+ readonly args: ArrayBuffer;
171
+ readonly nextRunAt: uint;
172
+ readonly lastRunAt: uint | null;
173
+ readonly expression: string | null;
174
+ readonly timezone: string | null;
175
+ readonly intervalMs: uint | null;
176
+ readonly maxHistory: uint | null;
177
+ };
178
+ declare function readSchedule(bc: bare.ByteCursor): Schedule;
179
+ declare function writeSchedule(bc: bare.ByteCursor, x: Schedule): void;
180
+ type ScheduleError = {
181
+ readonly group: string;
182
+ readonly code: string;
183
+ readonly message: string;
184
+ readonly metadata: ArrayBuffer | null;
185
+ };
186
+ declare function readScheduleError(bc: bare.ByteCursor): ScheduleError;
187
+ declare function writeScheduleError(bc: bare.ByteCursor, x: ScheduleError): void;
188
+ type ScheduleFire = {
189
+ readonly action: string;
190
+ readonly scheduledAt: uint;
191
+ readonly firedAt: uint;
192
+ readonly finishedAt: uint | null;
193
+ readonly result: string;
194
+ readonly error: ScheduleError | null;
195
+ };
196
+ declare function readScheduleFire(bc: bare.ByteCursor): ScheduleFire;
197
+ declare function writeScheduleFire(bc: bare.ByteCursor, x: ScheduleFire): void;
125
198
  type Init = {
126
199
  readonly connections: readonly Connection[];
127
200
  readonly state: State | null;
@@ -131,6 +204,8 @@ type Init = {
131
204
  readonly queueSize: uint;
132
205
  readonly workflowHistory: WorkflowHistory$1 | null;
133
206
  readonly isWorkflowEnabled: boolean;
207
+ readonly tabConfig: readonly TabConfigEntry[];
208
+ readonly schedules: readonly Schedule[];
134
209
  };
135
210
  declare function readInit(bc: bare.ByteCursor): Init;
136
211
  declare function writeInit(bc: bare.ByteCursor, x: Init): void;
@@ -206,6 +281,26 @@ type DatabaseTableRowsResponse = {
206
281
  };
207
282
  declare function readDatabaseTableRowsResponse(bc: bare.ByteCursor): DatabaseTableRowsResponse;
208
283
  declare function writeDatabaseTableRowsResponse(bc: bare.ByteCursor, x: DatabaseTableRowsResponse): void;
284
+ type SchedulesResponse = {
285
+ readonly rid: uint;
286
+ readonly schedules: readonly Schedule[];
287
+ };
288
+ declare function readSchedulesResponse(bc: bare.ByteCursor): SchedulesResponse;
289
+ declare function writeSchedulesResponse(bc: bare.ByteCursor, x: SchedulesResponse): void;
290
+ type ScheduleHistoryResponse = {
291
+ readonly rid: uint;
292
+ readonly scheduleId: string;
293
+ readonly history: readonly ScheduleFire[];
294
+ };
295
+ declare function readScheduleHistoryResponse(bc: bare.ByteCursor): ScheduleHistoryResponse;
296
+ declare function writeScheduleHistoryResponse(bc: bare.ByteCursor, x: ScheduleHistoryResponse): void;
297
+ type ScheduleDeleteResponse = {
298
+ readonly rid: uint;
299
+ readonly scheduleId: string;
300
+ readonly deleted: boolean;
301
+ };
302
+ declare function readScheduleDeleteResponse(bc: bare.ByteCursor): ScheduleDeleteResponse;
303
+ declare function writeScheduleDeleteResponse(bc: bare.ByteCursor, x: ScheduleDeleteResponse): void;
209
304
  type StateUpdated = {
210
305
  readonly state: State;
211
306
  };
@@ -221,6 +316,11 @@ type WorkflowHistoryUpdated = {
221
316
  };
222
317
  declare function readWorkflowHistoryUpdated(bc: bare.ByteCursor): WorkflowHistoryUpdated;
223
318
  declare function writeWorkflowHistoryUpdated(bc: bare.ByteCursor, x: WorkflowHistoryUpdated): void;
319
+ type SchedulesUpdated = {
320
+ readonly schedules: readonly Schedule[];
321
+ };
322
+ declare function readSchedulesUpdated(bc: bare.ByteCursor): SchedulesUpdated;
323
+ declare function writeSchedulesUpdated(bc: bare.ByteCursor, x: SchedulesUpdated): void;
224
324
  type RpcsListResponse = {
225
325
  readonly rid: uint;
226
326
  readonly rpcs: readonly string[];
@@ -258,6 +358,9 @@ type ToClientBody = {
258
358
  } | {
259
359
  readonly tag: "WorkflowHistoryUpdated";
260
360
  readonly val: WorkflowHistoryUpdated;
361
+ } | {
362
+ readonly tag: "SchedulesUpdated";
363
+ readonly val: SchedulesUpdated;
261
364
  } | {
262
365
  readonly tag: "RpcsListResponse";
263
366
  readonly val: RpcsListResponse;
@@ -273,6 +376,15 @@ type ToClientBody = {
273
376
  } | {
274
377
  readonly tag: "WorkflowReplayResponse";
275
378
  readonly val: WorkflowReplayResponse;
379
+ } | {
380
+ readonly tag: "SchedulesResponse";
381
+ readonly val: SchedulesResponse;
382
+ } | {
383
+ readonly tag: "ScheduleHistoryResponse";
384
+ readonly val: ScheduleHistoryResponse;
385
+ } | {
386
+ readonly tag: "ScheduleDeleteResponse";
387
+ readonly val: ScheduleDeleteResponse;
276
388
  } | {
277
389
  readonly tag: "Error";
278
390
  readonly val: Error;
@@ -367,6 +479,10 @@ type WorkflowRemovedEntry = {
367
479
  readonly originalType: string;
368
480
  readonly originalName: string | null;
369
481
  };
482
+ type WorkflowVersionCheckEntry = {
483
+ readonly resolved: u32;
484
+ readonly latest: u32;
485
+ };
370
486
  type WorkflowEntryKind = {
371
487
  readonly tag: "WorkflowStepEntry";
372
488
  readonly val: WorkflowStepEntry;
@@ -391,6 +507,9 @@ type WorkflowEntryKind = {
391
507
  } | {
392
508
  readonly tag: "WorkflowRemovedEntry";
393
509
  readonly val: WorkflowRemovedEntry;
510
+ } | {
511
+ readonly tag: "WorkflowVersionCheckEntry";
512
+ readonly val: WorkflowVersionCheckEntry;
394
513
  };
395
514
  type WorkflowEntry = {
396
515
  readonly id: string;
@@ -413,11 +532,15 @@ type WorkflowHistory = {
413
532
  readonly entryMetadata: ReadonlyMap<string, WorkflowEntryMetadata>;
414
533
  };
415
534
 
416
- declare function encodeWorkflowHistoryTransport(history: WorkflowHistory): ArrayBuffer;
535
+ declare const workflowHistoryBare: unique symbol;
536
+ type WorkflowHistoryBytes = ArrayBuffer & {
537
+ readonly [workflowHistoryBare]: true;
538
+ };
539
+ declare function encodeWorkflowHistoryTransport(history: WorkflowHistory): WorkflowHistoryBytes;
417
540
  declare function decodeWorkflowHistoryTransport(data: ArrayBuffer | ArrayBufferView): WorkflowHistory;
418
541
 
419
- declare const CURRENT_VERSION = 4;
542
+ declare const CURRENT_VERSION = 6;
420
543
  declare const TO_SERVER_VERSIONED: vbare.VersionedDataHandler<ToServer>;
421
544
  declare const TO_CLIENT_VERSIONED: vbare.VersionedDataHandler<ToClient>;
422
545
 
423
- export { type ActionRequest, type ActionResponse, CURRENT_VERSION, type Connection, type ConnectionsRequest, type ConnectionsResponse, type ConnectionsUpdated, type DatabaseSchemaRequest, type DatabaseSchemaResponse, type DatabaseTableRowsRequest, type DatabaseTableRowsResponse, type Error, type Init, type PatchStateRequest, type QueueMessageSummary, type QueueRequest, type QueueResponse, type QueueStatus, type QueueUpdated, type RpcsListRequest, type RpcsListResponse, type State, type StateRequest, type StateResponse, type StateUpdated, TO_CLIENT_VERSIONED, TO_SERVER_VERSIONED, type ToClient, type ToClientBody, type ToServer, type ToServerBody, type TraceQueryRequest, type TraceQueryResponse, type WorkflowHistory as TransportWorkflowHistory, type WorkflowHistory$1 as WorkflowHistory, type WorkflowHistoryRequest, type WorkflowHistoryResponse, type WorkflowHistoryUpdated, type WorkflowReplayRequest, type WorkflowReplayResponse, decodeToClient, decodeToServer, decodeWorkflowHistoryTransport, encodeToClient, encodeToServer, encodeWorkflowHistoryTransport, readActionRequest, readActionResponse, readConnection, readConnectionsRequest, readConnectionsResponse, readConnectionsUpdated, readDatabaseSchemaRequest, readDatabaseSchemaResponse, readDatabaseTableRowsRequest, readDatabaseTableRowsResponse, readError, readInit, readPatchStateRequest, readQueueMessageSummary, readQueueRequest, readQueueResponse, readQueueStatus, readQueueUpdated, readRpcsListRequest, readRpcsListResponse, readState, readStateRequest, readStateResponse, readStateUpdated, readToClient, readToClientBody, readToServer, readToServerBody, readTraceQueryRequest, readTraceQueryResponse, readWorkflowHistory, readWorkflowHistoryRequest, readWorkflowHistoryResponse, readWorkflowHistoryUpdated, readWorkflowReplayRequest, readWorkflowReplayResponse, type uint, writeActionRequest, writeActionResponse, writeConnection, writeConnectionsRequest, writeConnectionsResponse, writeConnectionsUpdated, writeDatabaseSchemaRequest, writeDatabaseSchemaResponse, writeDatabaseTableRowsRequest, writeDatabaseTableRowsResponse, writeError, writeInit, writePatchStateRequest, writeQueueMessageSummary, writeQueueRequest, writeQueueResponse, writeQueueStatus, writeQueueUpdated, writeRpcsListRequest, writeRpcsListResponse, writeState, writeStateRequest, writeStateResponse, writeStateUpdated, writeToClient, writeToClientBody, writeToServer, writeToServerBody, writeTraceQueryRequest, writeTraceQueryResponse, writeWorkflowHistory, writeWorkflowHistoryRequest, writeWorkflowHistoryResponse, writeWorkflowHistoryUpdated, writeWorkflowReplayRequest, writeWorkflowReplayResponse };
546
+ export { type ActionRequest, type ActionResponse, CURRENT_VERSION, type Connection, type ConnectionsRequest, type ConnectionsResponse, type ConnectionsUpdated, type DatabaseSchemaRequest, type DatabaseSchemaResponse, type DatabaseTableRowsRequest, type DatabaseTableRowsResponse, type Error, type Init, type PatchStateRequest, type QueueMessageSummary, type QueueRequest, type QueueResponse, type QueueStatus, type QueueUpdated, type RpcsListRequest, type RpcsListResponse, type Schedule, type ScheduleDeleteRequest, type ScheduleDeleteResponse, type ScheduleError, type ScheduleFire, type ScheduleHistoryRequest, type ScheduleHistoryResponse, type SchedulesRequest, type SchedulesResponse, type SchedulesUpdated, type State, type StateRequest, type StateResponse, type StateUpdated, TO_CLIENT_VERSIONED, TO_SERVER_VERSIONED, type TabConfigEntry, type ToClient, type ToClientBody, type ToServer, type ToServerBody, type TraceQueryRequest, type TraceQueryResponse, type WorkflowHistory as TransportWorkflowHistory, type WorkflowHistory$1 as WorkflowHistory, type WorkflowHistoryRequest, type WorkflowHistoryResponse, type WorkflowHistoryUpdated, type WorkflowReplayRequest, type WorkflowReplayResponse, decodeToClient, decodeToServer, decodeWorkflowHistoryTransport, encodeToClient, encodeToServer, encodeWorkflowHistoryTransport, readActionRequest, readActionResponse, readConnection, readConnectionsRequest, readConnectionsResponse, readConnectionsUpdated, readDatabaseSchemaRequest, readDatabaseSchemaResponse, readDatabaseTableRowsRequest, readDatabaseTableRowsResponse, readError, readInit, readPatchStateRequest, readQueueMessageSummary, readQueueRequest, readQueueResponse, readQueueStatus, readQueueUpdated, readRpcsListRequest, readRpcsListResponse, readSchedule, readScheduleDeleteRequest, readScheduleDeleteResponse, readScheduleError, readScheduleFire, readScheduleHistoryRequest, readScheduleHistoryResponse, readSchedulesRequest, readSchedulesResponse, readSchedulesUpdated, readState, readStateRequest, readStateResponse, readStateUpdated, readTabConfigEntry, readToClient, readToClientBody, readToServer, readToServerBody, readTraceQueryRequest, readTraceQueryResponse, readWorkflowHistory, readWorkflowHistoryRequest, readWorkflowHistoryResponse, readWorkflowHistoryUpdated, readWorkflowReplayRequest, readWorkflowReplayResponse, type uint, writeActionRequest, writeActionResponse, writeConnection, writeConnectionsRequest, writeConnectionsResponse, writeConnectionsUpdated, writeDatabaseSchemaRequest, writeDatabaseSchemaResponse, writeDatabaseTableRowsRequest, writeDatabaseTableRowsResponse, writeError, writeInit, writePatchStateRequest, writeQueueMessageSummary, writeQueueRequest, writeQueueResponse, writeQueueStatus, writeQueueUpdated, writeRpcsListRequest, writeRpcsListResponse, writeSchedule, writeScheduleDeleteRequest, writeScheduleDeleteResponse, writeScheduleError, writeScheduleFire, writeScheduleHistoryRequest, writeScheduleHistoryResponse, writeSchedulesRequest, writeSchedulesResponse, writeSchedulesUpdated, writeState, writeStateRequest, writeStateResponse, writeStateUpdated, writeTabConfigEntry, writeToClient, writeToClientBody, writeToServer, writeToServerBody, writeTraceQueryRequest, writeTraceQueryResponse, writeWorkflowHistory, writeWorkflowHistoryRequest, writeWorkflowHistoryResponse, writeWorkflowHistoryUpdated, writeWorkflowReplayRequest, writeWorkflowReplayResponse };