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.
- package/dist/browser/client.d.ts +778 -98
- package/dist/browser/client.js +1415 -757
- package/dist/browser/client.js.map +1 -1
- package/dist/browser/inspector/client.d.ts +126 -3
- package/dist/browser/inspector/client.js +2067 -233
- package/dist/browser/inspector/client.js.map +1 -1
- package/dist/tsup/actor/errors.cjs +6 -2
- package/dist/tsup/actor/errors.cjs.map +1 -1
- package/dist/tsup/actor/errors.d.cts +1 -74
- package/dist/tsup/actor/errors.d.ts +1 -74
- package/dist/tsup/actor/errors.js +5 -1
- package/dist/tsup/agent-os/index.cjs +2371 -2093
- package/dist/tsup/agent-os/index.cjs.map +1 -1
- package/dist/tsup/agent-os/index.d.cts +772 -94
- package/dist/tsup/agent-os/index.d.ts +772 -94
- package/dist/tsup/agent-os/index.js +2375 -2097
- package/dist/tsup/agent-os/index.js.map +1 -1
- package/dist/tsup/{chunk-OIKOPSXQ.js → chunk-3Q3KETKF.js} +13 -7
- package/dist/tsup/chunk-3Q3KETKF.js.map +1 -0
- package/dist/tsup/{chunk-V3QNBJ7N.cjs → chunk-4FC7TVS6.cjs} +35 -10
- package/dist/tsup/chunk-4FC7TVS6.cjs.map +1 -0
- package/dist/tsup/{chunk-XNZR7UD2.cjs → chunk-6ADBGIKV.cjs} +484 -66
- package/dist/tsup/chunk-6ADBGIKV.cjs.map +1 -0
- package/dist/tsup/{chunk-4ZIWB4CQ.js → chunk-DZ7KAOCW.js} +2 -2
- package/dist/tsup/{chunk-22XU3BVY.cjs → chunk-EI3JQYAW.cjs} +1083 -480
- package/dist/tsup/chunk-EI3JQYAW.cjs.map +1 -0
- package/dist/tsup/{chunk-LNMB25HW.js → chunk-FMMENOAT.js} +952 -349
- package/dist/tsup/chunk-FMMENOAT.js.map +1 -0
- package/dist/tsup/{chunk-AK57AL7S.cjs → chunk-HNHLBM3Y.cjs} +198 -19
- package/dist/tsup/chunk-HNHLBM3Y.cjs.map +1 -0
- package/dist/tsup/{chunk-D2TLG75Y.cjs → chunk-IW3TD3AZ.cjs} +10 -10
- package/dist/tsup/chunk-IW3TD3AZ.cjs.map +1 -0
- package/dist/tsup/{chunk-3BFYSYRU.js → chunk-JI6GZ2C2.js} +4 -12
- package/dist/tsup/chunk-JI6GZ2C2.js.map +1 -0
- package/dist/tsup/{chunk-PCBNKI2J.js → chunk-JTHHCZCZ.js} +24 -1
- package/dist/tsup/chunk-JTHHCZCZ.js.map +1 -0
- package/dist/tsup/{chunk-POTPHU3P.cjs → chunk-KTH2ZCJ7.cjs} +3 -3
- package/dist/tsup/chunk-KTH2ZCJ7.cjs.map +1 -0
- package/dist/tsup/{chunk-2NDZ7JCR.cjs → chunk-KVFIONKQ.cjs} +25 -2
- package/dist/tsup/chunk-KVFIONKQ.cjs.map +1 -0
- package/dist/tsup/{chunk-IOYKCB6Y.cjs → chunk-MCRNU6ZS.cjs} +46 -9
- package/dist/tsup/chunk-MCRNU6ZS.cjs.map +1 -0
- package/dist/tsup/{chunk-LLD2D5LO.cjs → chunk-MYWZCDML.cjs} +4 -12
- package/dist/tsup/chunk-MYWZCDML.cjs.map +1 -0
- package/dist/tsup/{chunk-7MRGNVSR.js → chunk-QWLJCP3X.js} +196 -17
- package/dist/tsup/chunk-QWLJCP3X.js.map +1 -0
- package/dist/tsup/{chunk-D4TSTM6C.js → chunk-VHZ2ICIB.js} +476 -58
- package/dist/tsup/chunk-VHZ2ICIB.js.map +1 -0
- package/dist/tsup/{chunk-NFC5VU36.cjs → chunk-XFAJRV5B.cjs} +17 -11
- package/dist/tsup/chunk-XFAJRV5B.cjs.map +1 -0
- package/dist/tsup/{chunk-RZEJJJKU.js → chunk-XUBFECDW.js} +45 -8
- package/dist/tsup/chunk-XUBFECDW.js.map +1 -0
- package/dist/tsup/{chunk-KSG2COSQ.js → chunk-ZKM6KFU7.js} +6 -6
- package/dist/tsup/chunk-ZKM6KFU7.js.map +1 -0
- package/dist/tsup/{chunk-K34B3OVG.js → chunk-ZZ3WBRPD.js} +34 -9
- package/dist/tsup/chunk-ZZ3WBRPD.js.map +1 -0
- package/dist/tsup/client/mod.cjs +8 -9
- package/dist/tsup/client/mod.cjs.map +1 -1
- package/dist/tsup/client/mod.d.cts +10 -10
- package/dist/tsup/client/mod.d.ts +10 -10
- package/dist/tsup/client/mod.js +7 -8
- package/dist/tsup/common/log.cjs +5 -3
- package/dist/tsup/common/log.cjs.map +1 -1
- package/dist/tsup/common/log.d.cts +5 -1
- package/dist/tsup/common/log.d.ts +5 -1
- package/dist/tsup/common/log.js +6 -4
- package/dist/tsup/common/websocket.cjs +4 -4
- package/dist/tsup/common/websocket.cjs.map +1 -1
- package/dist/tsup/common/websocket.js +3 -3
- package/dist/tsup/{config-kxXbtrJU.d.ts → config-BiFJvUlm.d.cts} +48 -4
- package/dist/tsup/{config-kxXbtrJU.d.cts → config-BiFJvUlm.d.ts} +48 -4
- package/dist/tsup/{config-CRdGwwbr.d.cts → config-Dc-M9yZ2.d.cts} +772 -62
- package/dist/tsup/{config-DIpBWm5C.d.ts → config-gT4c5si9.d.ts} +772 -62
- package/dist/tsup/context-DIes1x7n.d.cts +129 -0
- package/dist/tsup/context-DKoLp07T.d.ts +129 -0
- package/dist/tsup/db/drizzle.cjs +146 -72
- package/dist/tsup/db/drizzle.cjs.map +1 -1
- package/dist/tsup/db/drizzle.d.cts +8 -4
- package/dist/tsup/db/drizzle.d.ts +8 -4
- package/dist/tsup/db/drizzle.js +146 -72
- package/dist/tsup/db/drizzle.js.map +1 -1
- package/dist/tsup/db/mod.cjs +83 -18
- package/dist/tsup/db/mod.cjs.map +1 -1
- package/dist/tsup/db/mod.d.cts +12 -4
- package/dist/tsup/db/mod.d.ts +12 -4
- package/dist/tsup/db/mod.js +83 -18
- package/dist/tsup/db/mod.js.map +1 -1
- package/dist/tsup/dynamic/mod.cjs +24 -0
- package/dist/tsup/dynamic/mod.cjs.map +1 -0
- package/dist/tsup/dynamic/mod.d.cts +37 -0
- package/dist/tsup/dynamic/mod.d.ts +37 -0
- package/dist/tsup/dynamic/mod.js +24 -0
- package/dist/tsup/dynamic/mod.js.map +1 -0
- package/dist/tsup/inspector/mod.cjs +46 -12
- package/dist/tsup/inspector/mod.cjs.map +1 -1
- package/dist/tsup/inspector/mod.d.cts +30 -6
- package/dist/tsup/inspector/mod.d.ts +30 -6
- package/dist/tsup/inspector/mod.js +45 -11
- package/dist/tsup/inspector/mod.js.map +1 -1
- package/dist/tsup/inspector-tab/mod.cjs +162 -0
- package/dist/tsup/inspector-tab/mod.cjs.map +1 -0
- package/dist/tsup/inspector-tab/mod.d.cts +240 -0
- package/dist/tsup/inspector-tab/mod.d.ts +240 -0
- package/dist/tsup/inspector-tab/mod.js +162 -0
- package/dist/tsup/inspector-tab/mod.js.map +1 -0
- package/dist/tsup/mod.cjs +1848 -538
- package/dist/tsup/mod.cjs.map +1 -1
- package/dist/tsup/mod.d.cts +6 -7
- package/dist/tsup/mod.d.ts +6 -7
- package/dist/tsup/mod.js +1778 -468
- package/dist/tsup/mod.js.map +1 -1
- package/dist/tsup/test/mod.cjs +26 -21
- package/dist/tsup/test/mod.cjs.map +1 -1
- package/dist/tsup/test/mod.d.cts +5 -6
- package/dist/tsup/test/mod.d.ts +5 -6
- package/dist/tsup/test/mod.js +25 -20
- package/dist/tsup/test/mod.js.map +1 -1
- package/dist/tsup/unstable/migrations.cjs +101 -0
- package/dist/tsup/unstable/migrations.cjs.map +1 -0
- package/dist/tsup/unstable/migrations.d.cts +29 -0
- package/dist/tsup/unstable/migrations.d.ts +29 -0
- package/dist/tsup/unstable/migrations.js +101 -0
- package/dist/tsup/unstable/migrations.js.map +1 -0
- package/dist/tsup/utils-CV0akuDD.d.ts +162 -0
- package/dist/tsup/utils-CqDnC_PS.d.cts +104 -0
- package/dist/tsup/utils-CqDnC_PS.d.ts +104 -0
- package/dist/tsup/utils-DQDCphrl.d.cts +162 -0
- package/dist/tsup/utils.cjs +7 -3
- package/dist/tsup/utils.cjs.map +1 -1
- package/dist/tsup/utils.d.cts +4 -147
- package/dist/tsup/utils.d.ts +4 -147
- package/dist/tsup/utils.js +6 -2
- package/dist/tsup/workflow/mod.cjs +486 -375
- package/dist/tsup/workflow/mod.cjs.map +1 -1
- package/dist/tsup/workflow/mod.d.cts +9 -10
- package/dist/tsup/workflow/mod.d.ts +9 -10
- package/dist/tsup/workflow/mod.js +478 -367
- package/dist/tsup/workflow/mod.js.map +1 -1
- package/package.json +51 -15
- package/src/actor/actions.ts +119 -0
- package/src/actor/config.test.ts +14 -0
- package/src/actor/config.ts +351 -93
- package/src/actor/contexts/index.ts +7 -2
- package/src/actor/definition.ts +38 -26
- package/src/actor/errors.ts +70 -7
- package/src/actor/keys.ts +2 -1
- package/src/actor/mod.ts +22 -20
- package/src/actor/schema.ts +2 -2
- package/src/agent-os/actor/index.ts +39 -19
- package/src/agent-os/actor/preview.ts +1 -2
- package/src/agent-os/actor/session.ts +2 -2
- package/src/agent-os/config.ts +1 -1
- package/src/agent-os/fs/database-vfs.ts +1 -1
- package/src/agent-os/index.ts +16 -15
- package/src/client/actor-common.ts +90 -62
- package/src/client/actor-conn.ts +59 -64
- package/src/client/actor-handle.ts +125 -71
- package/src/client/actor-query.ts +5 -5
- package/src/client/client.ts +35 -11
- package/src/client/config.ts +3 -3
- package/src/client/errors.ts +2 -1
- package/src/client/lifecycle-errors.ts +2 -4
- package/src/client/query.ts +3 -1
- package/src/client/queue.ts +8 -3
- package/src/client/raw-utils.ts +13 -12
- package/src/client/resolve-gateway-target.ts +3 -1
- package/src/client/utils.ts +34 -10
- package/src/common/actor-router-consts.ts +7 -4
- package/src/common/actor-websocket.ts +3 -1
- package/src/common/bare/actor-persist/v1.ts +205 -163
- package/src/common/bare/actor-persist/v2.ts +265 -213
- package/src/common/bare/actor-persist/v3.ts +176 -172
- package/src/common/bare/actor-persist/v4.ts +254 -253
- package/src/common/bare/generated/actor-runtime-socket-protocol/v1.ts +848 -0
- package/src/common/bare/generated/client-protocol/v4.ts +599 -0
- package/src/common/bare/generated/inspector/v5.ts +1016 -0
- package/src/common/bare/generated/inspector/v6.ts +1367 -0
- package/src/common/bare/transport/v1.ts +694 -542
- package/src/common/client-protocol-versioned.ts +176 -67
- package/src/common/client-protocol-zod.ts +7 -0
- package/src/common/client-protocol.ts +1 -1
- package/src/common/database/config.ts +63 -9
- package/src/common/database/mod.test.ts +201 -40
- package/src/common/database/mod.ts +111 -30
- package/src/common/database/native-database.test.ts +44 -22
- package/src/common/database/native-database.ts +162 -6
- package/src/common/database/shared.ts +25 -0
- package/src/common/encoding.ts +278 -34
- package/src/common/engine.ts +28 -1
- package/src/common/eventsource.ts +1 -1
- package/src/common/fetch-like.ts +49 -0
- package/src/common/inline-websocket-adapter.ts +14 -13
- package/src/common/inspector-transport.ts +12 -2
- package/src/common/log.ts +15 -8
- package/src/common/router.ts +49 -23
- package/src/common/utils.ts +10 -202
- package/src/common/websocket-interface.ts +1 -1
- package/src/db/drizzle.test.ts +164 -0
- package/src/db/drizzle.ts +187 -89
- package/src/db/mod.ts +3 -1
- package/src/devtools-loader/index.ts +4 -7
- package/src/devtools-loader/serve-devtools.ts +26 -0
- package/src/dynamic/instance.ts +32 -0
- package/src/dynamic/internal.ts +50 -0
- package/src/dynamic/isolate-runtime.ts +64 -0
- package/src/dynamic/mod.ts +32 -0
- package/src/engine-client/actor-http-client.ts +6 -9
- package/src/engine-client/actor-websocket-client.ts +14 -13
- package/src/engine-client/api-endpoints.ts +51 -2
- package/src/engine-client/api-utils.ts +2 -2
- package/src/engine-client/driver.ts +7 -19
- package/src/engine-client/mod.ts +30 -55
- package/src/engine-client/ws-proxy.ts +9 -4
- package/src/inspector/client.browser.ts +127 -15
- package/src/inspector/mod.ts +2 -4
- package/src/inspector-tab/mod.ts +301 -0
- package/src/registry/config/envoy.ts +1 -2
- package/src/registry/config/index.ts +41 -54
- package/src/registry/index.ts +554 -91
- package/src/registry/napi-runtime.ts +340 -23
- package/src/registry/native-validation.ts +10 -12
- package/src/registry/native.ts +849 -393
- package/src/registry/process-metrics.ts +250 -0
- package/src/registry/runtime.ts +243 -9
- package/src/registry/wasm-runtime.ts +290 -9
- package/src/registry/write-through-proxy.ts +141 -0
- package/src/serde.ts +2 -2
- package/src/serverless/configure.ts +19 -8
- package/src/test/mod.ts +2 -17
- package/src/test/ready.ts +22 -0
- package/src/unstable/migrations.test.ts +170 -0
- package/src/unstable/migrations.ts +141 -0
- package/src/utils/crypto.ts +14 -0
- package/src/utils/endpoint-parser.ts +1 -1
- package/src/utils/env-vars.ts +37 -0
- package/src/utils/router.ts +1 -1
- package/src/utils.ts +4 -2
- package/src/workflow/context.ts +683 -242
- package/src/workflow/driver.test.ts +62 -0
- package/src/workflow/driver.ts +248 -119
- package/src/workflow/inspector.ts +21 -16
- package/src/workflow/mod.ts +39 -25
- package/dist/tsup/chunk-22XU3BVY.cjs.map +0 -1
- package/dist/tsup/chunk-2NDZ7JCR.cjs.map +0 -1
- package/dist/tsup/chunk-3BFYSYRU.js.map +0 -1
- package/dist/tsup/chunk-7MRGNVSR.js.map +0 -1
- package/dist/tsup/chunk-AK57AL7S.cjs.map +0 -1
- package/dist/tsup/chunk-D2TLG75Y.cjs.map +0 -1
- package/dist/tsup/chunk-D4TSTM6C.js.map +0 -1
- package/dist/tsup/chunk-IOYKCB6Y.cjs.map +0 -1
- package/dist/tsup/chunk-K34B3OVG.js.map +0 -1
- package/dist/tsup/chunk-KSG2COSQ.js.map +0 -1
- package/dist/tsup/chunk-LLD2D5LO.cjs.map +0 -1
- package/dist/tsup/chunk-LNMB25HW.js.map +0 -1
- package/dist/tsup/chunk-NFC5VU36.cjs.map +0 -1
- package/dist/tsup/chunk-OIKOPSXQ.js.map +0 -1
- package/dist/tsup/chunk-PCBNKI2J.js.map +0 -1
- package/dist/tsup/chunk-POTPHU3P.cjs.map +0 -1
- package/dist/tsup/chunk-RZEJJJKU.js.map +0 -1
- package/dist/tsup/chunk-TPBHXFB2.cjs +0 -268
- package/dist/tsup/chunk-TPBHXFB2.cjs.map +0 -1
- package/dist/tsup/chunk-V3QNBJ7N.cjs.map +0 -1
- package/dist/tsup/chunk-W54QCENI.js +0 -268
- package/dist/tsup/chunk-W54QCENI.js.map +0 -1
- package/dist/tsup/chunk-XNZR7UD2.cjs.map +0 -1
- package/dist/tsup/context-B7G6sk7x.d.ts +0 -92
- package/dist/tsup/context-DzMRHkjC.d.cts +0 -92
- package/dist/tsup/utils-fwx3o3K9.d.cts +0 -18
- package/dist/tsup/utils-fwx3o3K9.d.ts +0 -18
- package/src/actor/driver.ts +0 -141
- package/src/actor/instance/mod.ts +0 -2501
- package/src/drivers/engine/actor-driver.ts +0 -2470
- package/src/utils/serve.ts +0 -217
- /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
|
|
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 =
|
|
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 };
|