rivetkit 2.0.3 → 2.0.4-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.
- package/README.md +11 -0
- package/dist/browser/client.d.ts +2485 -0
- package/dist/browser/client.js +5182 -0
- package/dist/browser/client.js.map +1 -0
- package/dist/browser/inspector/client.d.ts +130 -0
- package/dist/browser/inspector/client.js +2854 -0
- package/dist/browser/inspector/client.js.map +1 -0
- package/dist/browser/v3-DnYObHH3.d.ts +279 -0
- package/dist/inspector.tar.gz +0 -0
- package/dist/schemas/actor-inspector/v1.ts +784 -0
- package/dist/schemas/actor-inspector/v2.ts +796 -0
- package/dist/schemas/actor-inspector/v3.ts +899 -0
- package/dist/schemas/actor-persist/v1.ts +28 -31
- package/dist/schemas/actor-persist/v2.ts +268 -0
- package/dist/schemas/actor-persist/v3.ts +280 -0
- package/dist/schemas/actor-persist/v4.ts +406 -0
- package/dist/schemas/client-protocol/v1.ts +13 -1
- package/dist/schemas/client-protocol/v2.ts +438 -0
- package/dist/schemas/client-protocol/v3.ts +554 -0
- package/dist/schemas/file-system-driver/v1.ts +7 -1
- package/dist/schemas/file-system-driver/v2.ts +142 -0
- package/dist/schemas/file-system-driver/v3.ts +167 -0
- package/dist/schemas/persist/v1.ts +781 -0
- package/dist/schemas/transport/v1.ts +697 -0
- package/dist/tsup/actor/errors.cjs +39 -2
- package/dist/tsup/actor/errors.cjs.map +1 -1
- package/dist/tsup/actor/errors.d.cts +73 -28
- package/dist/tsup/actor/errors.d.ts +73 -28
- package/dist/tsup/actor/errors.js +54 -17
- package/dist/tsup/actor-router-consts-D29T1Z-K.d.cts +24 -0
- package/dist/tsup/actor-router-consts-D29T1Z-K.d.ts +24 -0
- package/dist/tsup/chunk-325TLXJT.js +1060 -0
- package/dist/tsup/chunk-325TLXJT.js.map +1 -0
- package/dist/tsup/chunk-424PT5DM.js +23 -0
- package/dist/tsup/chunk-424PT5DM.js.map +1 -0
- package/dist/tsup/chunk-4JVIG3SS.cjs +6289 -0
- package/dist/tsup/chunk-4JVIG3SS.cjs.map +1 -0
- package/dist/tsup/chunk-6LJAZ5R4.cjs +96 -0
- package/dist/tsup/chunk-6LJAZ5R4.cjs.map +1 -0
- package/dist/tsup/chunk-6XU3FMCB.cjs +534 -0
- package/dist/tsup/chunk-6XU3FMCB.cjs.map +1 -0
- package/dist/tsup/chunk-7HTNH26M.js +509 -0
- package/dist/tsup/chunk-7HTNH26M.js.map +1 -0
- package/dist/tsup/chunk-AUVH72RE.cjs +5977 -0
- package/dist/tsup/chunk-AUVH72RE.cjs.map +1 -0
- package/dist/tsup/chunk-D4BYUPNQ.js +645 -0
- package/dist/tsup/chunk-D4BYUPNQ.js.map +1 -0
- package/dist/tsup/chunk-HDQ2JUQT.cjs +23 -0
- package/dist/tsup/chunk-HDQ2JUQT.cjs.map +1 -0
- package/dist/tsup/chunk-HHXX2VRM.js +6289 -0
- package/dist/tsup/chunk-HHXX2VRM.js.map +1 -0
- package/dist/tsup/{chunk-PO4VLDWA.js → chunk-JEAEA2PB.js} +8 -6
- package/dist/tsup/chunk-JEAEA2PB.js.map +1 -0
- package/dist/tsup/chunk-JYSEG3VF.cjs +642 -0
- package/dist/tsup/chunk-JYSEG3VF.cjs.map +1 -0
- package/dist/tsup/chunk-K6DGYILQ.js +2657 -0
- package/dist/tsup/chunk-K6DGYILQ.js.map +1 -0
- package/dist/tsup/chunk-KJSYAUOM.js +96 -0
- package/dist/tsup/chunk-KJSYAUOM.js.map +1 -0
- package/dist/tsup/chunk-L47L3ZWJ.cjs +509 -0
- package/dist/tsup/chunk-L47L3ZWJ.cjs.map +1 -0
- package/dist/tsup/chunk-LXUQ667X.js +2006 -0
- package/dist/tsup/chunk-LXUQ667X.js.map +1 -0
- package/dist/tsup/chunk-MXNPAB5W.js +5977 -0
- package/dist/tsup/chunk-MXNPAB5W.js.map +1 -0
- package/dist/tsup/chunk-N4KRDJ56.js +72 -0
- package/dist/tsup/chunk-N4KRDJ56.js.map +1 -0
- package/dist/tsup/chunk-NIYZDWMW.cjs +2006 -0
- package/dist/tsup/chunk-NIYZDWMW.cjs.map +1 -0
- package/dist/tsup/chunk-PQZHDKRW.cjs +1060 -0
- package/dist/tsup/chunk-PQZHDKRW.cjs.map +1 -0
- package/dist/tsup/chunk-PVOE6BU7.cjs +1050 -0
- package/dist/tsup/chunk-PVOE6BU7.cjs.map +1 -0
- package/dist/tsup/chunk-Q4UD2GA4.cjs +1810 -0
- package/dist/tsup/chunk-Q4UD2GA4.cjs.map +1 -0
- package/dist/tsup/chunk-QUD664YZ.js +1810 -0
- package/dist/tsup/chunk-QUD664YZ.js.map +1 -0
- package/dist/tsup/chunk-RTOCTWME.js +1050 -0
- package/dist/tsup/chunk-RTOCTWME.js.map +1 -0
- package/dist/tsup/chunk-SAZZ4SB2.cjs +2657 -0
- package/dist/tsup/chunk-SAZZ4SB2.cjs.map +1 -0
- package/dist/tsup/chunk-SR3KQE7Q.cjs +72 -0
- package/dist/tsup/chunk-SR3KQE7Q.cjs.map +1 -0
- package/dist/tsup/{chunk-TZJKSBUQ.cjs → chunk-V2GHLYC6.cjs} +8 -6
- package/dist/tsup/chunk-V2GHLYC6.cjs.map +1 -0
- package/dist/tsup/chunk-V3WG7XTW.cjs +645 -0
- package/dist/tsup/chunk-V3WG7XTW.cjs.map +1 -0
- package/dist/tsup/chunk-VKVNIQRQ.js +257 -0
- package/dist/tsup/chunk-VKVNIQRQ.js.map +1 -0
- package/dist/tsup/chunk-WMPW7JYC.js +642 -0
- package/dist/tsup/chunk-WMPW7JYC.js.map +1 -0
- package/dist/tsup/chunk-Z7HNQ2WF.js +534 -0
- package/dist/tsup/chunk-Z7HNQ2WF.js.map +1 -0
- package/dist/tsup/chunk-ZFY5J2EP.cjs +257 -0
- package/dist/tsup/chunk-ZFY5J2EP.cjs.map +1 -0
- package/dist/tsup/client/mod.cjs +11 -10
- package/dist/tsup/client/mod.cjs.map +1 -1
- package/dist/tsup/client/mod.d.cts +57 -19
- package/dist/tsup/client/mod.d.ts +57 -19
- package/dist/tsup/client/mod.js +15 -14
- package/dist/tsup/common/log.cjs +12 -4
- package/dist/tsup/common/log.cjs.map +1 -1
- package/dist/tsup/common/log.d.cts +31 -17
- package/dist/tsup/common/log.d.ts +31 -17
- package/dist/tsup/common/log.js +15 -7
- package/dist/tsup/common/websocket.cjs +5 -5
- package/dist/tsup/common/websocket.cjs.map +1 -1
- package/dist/tsup/common/websocket.js +4 -4
- package/dist/tsup/config-BiNoIHRs.d.cts +80 -0
- package/dist/tsup/config-BiNoIHRs.d.ts +80 -0
- package/dist/tsup/config-P3XujgRr.d.ts +2594 -0
- package/dist/tsup/config-_gfywqqI.d.cts +2594 -0
- package/dist/tsup/context-Bxd8Cx4H.d.cts +75 -0
- package/dist/tsup/context-uNA4TRn3.d.ts +75 -0
- package/dist/tsup/db/drizzle/mod.cjs +49 -0
- package/dist/tsup/db/drizzle/mod.cjs.map +1 -0
- package/dist/tsup/db/drizzle/mod.d.cts +17 -0
- package/dist/tsup/db/drizzle/mod.d.ts +17 -0
- package/dist/tsup/db/drizzle/mod.js +49 -0
- package/dist/tsup/db/drizzle/mod.js.map +1 -0
- package/dist/tsup/db/mod.cjs +9 -0
- package/dist/tsup/db/mod.cjs.map +1 -0
- package/dist/tsup/db/mod.d.cts +9 -0
- package/dist/tsup/db/mod.d.ts +9 -0
- package/dist/tsup/db/mod.js +9 -0
- package/dist/tsup/db/mod.js.map +1 -0
- package/dist/tsup/driver-BcLvZcKl.d.cts +13 -0
- package/dist/tsup/driver-CPGHKXyh.d.ts +13 -0
- package/dist/tsup/driver-helpers/mod.cjs +27 -7
- package/dist/tsup/driver-helpers/mod.cjs.map +1 -1
- package/dist/tsup/driver-helpers/mod.d.cts +43 -14
- package/dist/tsup/driver-helpers/mod.d.ts +43 -14
- package/dist/tsup/driver-helpers/mod.js +41 -21
- package/dist/tsup/driver-test-suite/mod.cjs +2749 -2394
- package/dist/tsup/driver-test-suite/mod.cjs.map +1 -1
- package/dist/tsup/driver-test-suite/mod.d.cts +28 -12
- package/dist/tsup/driver-test-suite/mod.d.ts +28 -12
- package/dist/tsup/driver-test-suite/mod.js +3319 -2964
- package/dist/tsup/driver-test-suite/mod.js.map +1 -1
- package/dist/tsup/inspector/mod.cjs +118 -7
- package/dist/tsup/inspector/mod.cjs.map +1 -1
- package/dist/tsup/inspector/mod.d.cts +126 -404
- package/dist/tsup/inspector/mod.d.ts +126 -404
- package/dist/tsup/inspector/mod.js +159 -48
- package/dist/tsup/keys-CydblqMh.d.cts +13 -0
- package/dist/tsup/keys-CydblqMh.d.ts +13 -0
- package/dist/tsup/mod.cjs +21 -12
- package/dist/tsup/mod.cjs.map +1 -1
- package/dist/tsup/mod.d.cts +102 -76
- package/dist/tsup/mod.d.ts +102 -76
- package/dist/tsup/mod.js +51 -42
- package/dist/tsup/serve-test-suite/mod.cjs +2601 -0
- package/dist/tsup/serve-test-suite/mod.cjs.map +1 -0
- package/dist/tsup/serve-test-suite/mod.d.cts +9 -0
- package/dist/tsup/serve-test-suite/mod.d.ts +9 -0
- package/dist/tsup/serve-test-suite/mod.js +2601 -0
- package/dist/tsup/serve-test-suite/mod.js.map +1 -0
- package/dist/tsup/test/mod.cjs +84 -15
- package/dist/tsup/test/mod.cjs.map +1 -1
- package/dist/tsup/test/mod.d.cts +15 -16
- package/dist/tsup/test/mod.d.ts +15 -16
- package/dist/tsup/test/mod.js +85 -16
- package/dist/tsup/test/mod.js.map +1 -1
- package/dist/tsup/{utils-CT0cv4jd.d.ts → utils-fwx3o3K9.d.cts} +1 -0
- package/dist/tsup/{utils-CT0cv4jd.d.cts → utils-fwx3o3K9.d.ts} +1 -0
- package/dist/tsup/utils.cjs +20 -3
- package/dist/tsup/utils.cjs.map +1 -1
- package/dist/tsup/utils.d.cts +114 -2
- package/dist/tsup/utils.d.ts +114 -2
- package/dist/tsup/utils.js +19 -2
- package/dist/tsup/v3-DnYObHH3.d.cts +279 -0
- package/dist/tsup/v3-DnYObHH3.d.ts +279 -0
- package/dist/tsup/workflow/mod.cjs +16 -0
- package/dist/tsup/workflow/mod.cjs.map +1 -0
- package/dist/tsup/workflow/mod.d.cts +25 -0
- package/dist/tsup/workflow/mod.d.ts +25 -0
- package/dist/tsup/workflow/mod.js +16 -0
- package/dist/tsup/workflow/mod.js.map +1 -0
- package/package.json +101 -16
- package/src/actor/config.ts +674 -218
- package/src/actor/conn/driver.ts +61 -0
- package/src/actor/conn/drivers/http.ts +17 -0
- package/src/actor/conn/drivers/raw-request.ts +24 -0
- package/src/actor/conn/drivers/raw-websocket.ts +65 -0
- package/src/actor/conn/drivers/websocket.ts +144 -0
- package/src/actor/conn/mod.ts +288 -0
- package/src/actor/conn/persisted.ts +81 -0
- package/src/actor/conn/state-manager.ts +196 -0
- package/src/actor/contexts/action.ts +47 -0
- package/src/actor/contexts/base/actor.ts +347 -0
- package/src/actor/contexts/base/conn-init.ts +68 -0
- package/src/actor/contexts/base/conn.ts +73 -0
- package/src/actor/contexts/before-action-response.ts +42 -0
- package/src/actor/contexts/before-connect.ts +31 -0
- package/src/actor/contexts/connect.ts +42 -0
- package/src/actor/contexts/create-conn-state.ts +32 -0
- package/src/actor/contexts/create-vars.ts +39 -0
- package/src/actor/contexts/create.ts +39 -0
- package/src/actor/contexts/destroy.ts +42 -0
- package/src/actor/contexts/disconnect.ts +43 -0
- package/src/actor/contexts/index.ts +33 -0
- package/src/actor/contexts/request.ts +80 -0
- package/src/actor/contexts/run.ts +47 -0
- package/src/actor/contexts/sleep.ts +42 -0
- package/src/actor/contexts/state-change.ts +42 -0
- package/src/actor/contexts/wake.ts +42 -0
- package/src/actor/contexts/websocket.ts +80 -0
- package/src/actor/database.ts +8 -18
- package/src/actor/definition.ts +23 -45
- package/src/actor/driver.ts +78 -48
- package/src/actor/errors.ts +281 -85
- package/src/actor/instance/connection-manager.ts +574 -0
- package/src/actor/instance/event-manager.ts +314 -0
- package/src/actor/instance/keys.ts +146 -0
- package/src/actor/instance/kv.ts +241 -0
- package/src/actor/instance/mod.ts +1658 -0
- package/src/actor/instance/persisted.ts +67 -0
- package/src/actor/instance/queue-manager.ts +603 -0
- package/src/actor/instance/queue.ts +345 -0
- package/src/actor/instance/schedule-manager.ts +392 -0
- package/src/actor/instance/state-manager.ts +542 -0
- package/src/actor/instance/traces-driver.ts +128 -0
- package/src/{drivers/engine → actor}/keys.test.ts +13 -4
- package/src/actor/log.ts +4 -13
- package/src/actor/mod.ts +37 -40
- package/src/actor/protocol/old.ts +205 -70
- package/src/actor/protocol/serde.ts +100 -9
- package/src/actor/router-endpoints.ts +249 -534
- package/src/actor/router-websocket-endpoints.test.ts +54 -0
- package/src/actor/router-websocket-endpoints.ts +405 -0
- package/src/actor/router.ts +305 -188
- package/src/actor/schedule.ts +1 -1
- package/src/actor/schema.ts +291 -0
- package/src/actor/utils.test.ts +48 -0
- package/src/actor/utils.ts +71 -11
- package/src/client/actor-common.ts +4 -2
- package/src/client/actor-conn.ts +758 -300
- package/src/client/actor-handle.ts +198 -62
- package/src/client/actor-query.ts +112 -0
- package/src/client/client.ts +59 -124
- package/src/client/config.ts +151 -0
- package/src/client/errors.ts +37 -2
- package/src/client/log.ts +2 -4
- package/src/client/mod.browser.ts +2 -0
- package/src/client/mod.ts +33 -19
- package/src/client/queue.ts +146 -0
- package/src/client/raw-utils.ts +84 -27
- package/src/client/utils.ts +141 -39
- package/src/common/actor-router-consts.ts +59 -0
- package/src/common/cors.ts +57 -0
- package/src/common/eventsource.ts +7 -43
- package/src/common/inline-websocket-adapter.ts +154 -0
- package/src/common/log.ts +191 -101
- package/src/common/logfmt.ts +23 -30
- package/src/common/router.ts +114 -27
- package/src/common/utils.ts +35 -18
- package/src/common/websocket-interface.ts +7 -49
- package/src/common/websocket.ts +2 -2
- package/src/db/config.ts +100 -0
- package/src/db/drizzle/mod.ts +226 -0
- package/src/db/drizzle/sqlite-core.ts +22 -0
- package/src/db/mod.ts +125 -0
- package/src/db/shared.ts +92 -0
- package/src/db/sqlite-vfs.ts +12 -0
- package/src/devtools-loader/index.ts +33 -0
- package/src/devtools-loader/log.ts +5 -0
- package/src/driver-helpers/mod.ts +19 -8
- package/src/driver-helpers/utils.ts +46 -9
- package/src/driver-test-suite/log.ts +1 -3
- package/src/driver-test-suite/mod.ts +188 -108
- package/src/driver-test-suite/test-inline-client-driver.ts +179 -274
- package/src/driver-test-suite/tests/access-control.ts +218 -0
- package/src/driver-test-suite/tests/action-features.ts +69 -2
- package/src/driver-test-suite/tests/actor-conn-hibernation.ts +152 -0
- package/src/driver-test-suite/tests/actor-conn-state.ts +73 -22
- package/src/driver-test-suite/tests/actor-conn.ts +375 -128
- package/src/driver-test-suite/tests/actor-db-raw.ts +73 -0
- package/src/driver-test-suite/tests/actor-db.ts +477 -0
- package/src/driver-test-suite/tests/actor-destroy.ts +294 -0
- package/src/driver-test-suite/tests/actor-driver.ts +0 -7
- package/src/driver-test-suite/tests/actor-error-handling.ts +4 -12
- package/src/driver-test-suite/tests/actor-handle.ts +78 -25
- package/src/driver-test-suite/tests/actor-inline-client.ts +34 -23
- package/src/driver-test-suite/tests/actor-inspector.ts +216 -522
- package/src/driver-test-suite/tests/actor-kv.ts +65 -0
- package/src/driver-test-suite/tests/actor-metadata.ts +1 -1
- package/src/driver-test-suite/tests/actor-queue.ts +325 -0
- package/src/driver-test-suite/tests/actor-run.ts +181 -0
- package/src/driver-test-suite/tests/actor-schedule.ts +31 -42
- package/src/driver-test-suite/tests/actor-sleep.ts +27 -25
- package/src/driver-test-suite/tests/actor-stateless.ts +70 -0
- package/src/driver-test-suite/tests/actor-vars.ts +6 -2
- package/src/driver-test-suite/tests/actor-workflow.ts +118 -0
- package/src/driver-test-suite/tests/manager-driver.ts +32 -9
- package/src/driver-test-suite/tests/raw-http-direct-registry.ts +227 -226
- package/src/driver-test-suite/tests/raw-http-request-properties.ts +71 -31
- package/src/driver-test-suite/tests/raw-http.ts +22 -10
- package/src/driver-test-suite/tests/raw-websocket-direct-registry.ts +393 -392
- package/src/driver-test-suite/tests/raw-websocket.ts +86 -57
- package/src/driver-test-suite/tests/request-access.ts +130 -134
- package/src/driver-test-suite/utils.ts +28 -16
- package/src/drivers/default.ts +22 -15
- package/src/drivers/engine/actor-driver.ts +864 -197
- package/src/drivers/engine/config.ts +41 -37
- package/src/drivers/engine/log.ts +1 -3
- package/src/drivers/engine/mod.ts +16 -16
- package/src/drivers/file-system/actor.ts +46 -35
- package/src/drivers/file-system/global-state.ts +903 -131
- package/src/drivers/file-system/kv-limits.ts +70 -0
- package/src/drivers/file-system/log.ts +1 -3
- package/src/drivers/file-system/manager.ts +171 -177
- package/src/drivers/file-system/mod.ts +47 -17
- package/src/drivers/file-system/sqlite-runtime.ts +210 -0
- package/src/drivers/file-system/utils.ts +26 -10
- package/src/engine-process/constants.ts +2 -0
- package/src/engine-process/log.ts +5 -0
- package/src/engine-process/mod.ts +464 -0
- package/src/globals.d.ts +29 -0
- package/src/inspector/actor-inspector.ts +352 -0
- package/src/inspector/config.ts +11 -45
- package/src/inspector/handler.ts +273 -0
- package/src/inspector/log.ts +1 -1
- package/src/inspector/mod.browser.ts +8 -0
- package/src/inspector/mod.ts +4 -2
- package/src/inspector/serve-ui.ts +40 -0
- package/src/inspector/transport.ts +18 -0
- package/src/inspector/utils.ts +13 -57
- package/src/manager/driver.ts +40 -14
- package/src/manager/gateway.ts +668 -0
- package/src/manager/log.ts +2 -4
- package/src/manager/mod.ts +2 -2
- package/src/manager/protocol/mod.ts +1 -3
- package/src/manager/protocol/query.ts +2 -6
- package/src/manager/router-schema.ts +22 -0
- package/src/manager/router.ts +555 -1687
- package/src/manager-api/actors.ts +83 -0
- package/src/manager-api/common.ts +4 -0
- package/src/mod.ts +10 -6
- package/src/registry/config/driver.ts +21 -0
- package/src/registry/config/index.ts +510 -0
- package/src/registry/config/legacy-runner.ts +157 -0
- package/src/registry/config/runner.ts +21 -0
- package/src/registry/config/serverless.ts +94 -0
- package/src/registry/index.ts +194 -0
- package/src/registry/log.ts +2 -4
- package/src/remote-manager-driver/actor-http-client.ts +84 -0
- package/src/remote-manager-driver/actor-websocket-client.ts +81 -0
- package/src/remote-manager-driver/api-endpoints.ts +159 -0
- package/src/remote-manager-driver/api-utils.ts +69 -0
- package/src/remote-manager-driver/log.ts +5 -0
- package/src/remote-manager-driver/metadata.ts +64 -0
- package/src/remote-manager-driver/mod.ts +414 -0
- package/src/{drivers/engine → remote-manager-driver}/ws-proxy.ts +46 -27
- package/src/schemas/actor-inspector/mod.ts +1 -0
- package/src/schemas/actor-inspector/versioned.ts +233 -0
- package/src/schemas/actor-persist/mod.ts +1 -1
- package/src/schemas/actor-persist/versioned.ts +211 -19
- package/src/schemas/client-protocol/mod.ts +1 -1
- package/src/schemas/client-protocol/versioned.ts +310 -43
- package/src/schemas/client-protocol-zod/mod.ts +118 -0
- package/src/schemas/file-system-driver/mod.ts +1 -1
- package/src/schemas/file-system-driver/versioned.ts +128 -21
- package/src/schemas/persist/mod.ts +1 -0
- package/src/schemas/transport/mod.ts +1 -0
- package/src/serde.ts +67 -13
- package/src/serve-test-suite/mod.ts +148 -0
- package/src/serverless/configure.ts +82 -0
- package/src/serverless/log.ts +5 -0
- package/src/serverless/router.test.ts +299 -0
- package/src/serverless/router.ts +215 -0
- package/src/test/log.ts +1 -3
- package/src/test/mod.ts +70 -124
- package/src/utils/crypto.ts +24 -0
- package/src/utils/endpoint-parser.test.ts +202 -0
- package/src/utils/endpoint-parser.ts +124 -0
- package/src/utils/env-vars.ts +78 -0
- package/src/utils/node.ts +178 -0
- package/src/utils/router.ts +83 -0
- package/src/utils/serve.ts +212 -0
- package/src/utils.test.ts +34 -0
- package/src/utils.ts +278 -13
- package/src/workflow/constants.ts +2 -0
- package/src/workflow/context.ts +597 -0
- package/src/workflow/driver.ts +194 -0
- package/src/workflow/inspector.ts +268 -0
- package/src/workflow/mod.ts +128 -0
- package/dist/tsup/chunk-2CRLFV6Z.cjs +0 -202
- package/dist/tsup/chunk-2CRLFV6Z.cjs.map +0 -1
- package/dist/tsup/chunk-3H7O2A7I.js +0 -525
- package/dist/tsup/chunk-3H7O2A7I.js.map +0 -1
- package/dist/tsup/chunk-42I3OZ3Q.js +0 -15
- package/dist/tsup/chunk-42I3OZ3Q.js.map +0 -1
- package/dist/tsup/chunk-4NSUQZ2H.js +0 -1790
- package/dist/tsup/chunk-4NSUQZ2H.js.map +0 -1
- package/dist/tsup/chunk-6PDXBYI5.js +0 -132
- package/dist/tsup/chunk-6PDXBYI5.js.map +0 -1
- package/dist/tsup/chunk-6WKQDDUD.cjs +0 -1790
- package/dist/tsup/chunk-6WKQDDUD.cjs.map +0 -1
- package/dist/tsup/chunk-CTBOSFUH.cjs +0 -116
- package/dist/tsup/chunk-CTBOSFUH.cjs.map +0 -1
- package/dist/tsup/chunk-EGVZZFE2.js +0 -2857
- package/dist/tsup/chunk-EGVZZFE2.js.map +0 -1
- package/dist/tsup/chunk-FCCPJNMA.cjs +0 -132
- package/dist/tsup/chunk-FCCPJNMA.cjs.map +0 -1
- package/dist/tsup/chunk-FLMTTN27.js +0 -244
- package/dist/tsup/chunk-FLMTTN27.js.map +0 -1
- package/dist/tsup/chunk-GIR3AFFI.cjs +0 -315
- package/dist/tsup/chunk-GIR3AFFI.cjs.map +0 -1
- package/dist/tsup/chunk-INGJP237.js +0 -315
- package/dist/tsup/chunk-INGJP237.js.map +0 -1
- package/dist/tsup/chunk-KJCJLKRM.js +0 -116
- package/dist/tsup/chunk-KJCJLKRM.js.map +0 -1
- package/dist/tsup/chunk-KUPQZYUQ.cjs +0 -15
- package/dist/tsup/chunk-KUPQZYUQ.cjs.map +0 -1
- package/dist/tsup/chunk-O2MBYIXO.cjs +0 -2857
- package/dist/tsup/chunk-O2MBYIXO.cjs.map +0 -1
- package/dist/tsup/chunk-OGAPU3UG.cjs +0 -525
- package/dist/tsup/chunk-OGAPU3UG.cjs.map +0 -1
- package/dist/tsup/chunk-OV6AYD4S.js +0 -4406
- package/dist/tsup/chunk-OV6AYD4S.js.map +0 -1
- package/dist/tsup/chunk-PO4VLDWA.js.map +0 -1
- package/dist/tsup/chunk-R2OPSKIV.cjs +0 -244
- package/dist/tsup/chunk-R2OPSKIV.cjs.map +0 -1
- package/dist/tsup/chunk-TZJKSBUQ.cjs.map +0 -1
- package/dist/tsup/chunk-UBUC5C3G.cjs +0 -189
- package/dist/tsup/chunk-UBUC5C3G.cjs.map +0 -1
- package/dist/tsup/chunk-UIM22YJL.cjs +0 -4406
- package/dist/tsup/chunk-UIM22YJL.cjs.map +0 -1
- package/dist/tsup/chunk-URVFQMYI.cjs +0 -230
- package/dist/tsup/chunk-URVFQMYI.cjs.map +0 -1
- package/dist/tsup/chunk-UVUPOS46.js +0 -230
- package/dist/tsup/chunk-UVUPOS46.js.map +0 -1
- package/dist/tsup/chunk-VRRHBNJC.js +0 -189
- package/dist/tsup/chunk-VRRHBNJC.js.map +0 -1
- package/dist/tsup/chunk-XFSS33EQ.js +0 -202
- package/dist/tsup/chunk-XFSS33EQ.js.map +0 -1
- package/dist/tsup/common-CpqORuCq.d.cts +0 -218
- package/dist/tsup/common-CpqORuCq.d.ts +0 -218
- package/dist/tsup/connection-BR_Ve4ku.d.cts +0 -2117
- package/dist/tsup/connection-BwUMoe6n.d.ts +0 -2117
- package/dist/tsup/router-endpoints-AYkXG8Tl.d.cts +0 -66
- package/dist/tsup/router-endpoints-DAbqVFx2.d.ts +0 -66
- package/src/actor/action.ts +0 -182
- package/src/actor/connection.ts +0 -260
- package/src/actor/context.ts +0 -171
- package/src/actor/generic-conn-driver.ts +0 -234
- package/src/actor/instance.ts +0 -1800
- package/src/actor/persisted.ts +0 -42
- package/src/actor/unstable-react.ts +0 -110
- package/src/client/http-client-driver.ts +0 -326
- package/src/common/fake-event-source.ts +0 -266
- package/src/common/inline-websocket-adapter2.ts +0 -445
- package/src/common/versioned-data.ts +0 -95
- package/src/driver-test-suite/tests/actor-auth.ts +0 -591
- package/src/drivers/engine/api-endpoints.ts +0 -128
- package/src/drivers/engine/api-utils.ts +0 -70
- package/src/drivers/engine/kv.ts +0 -3
- package/src/drivers/engine/manager-driver.ts +0 -391
- package/src/inline-client-driver/log.ts +0 -7
- package/src/inline-client-driver/mod.ts +0 -385
- package/src/inspector/actor.ts +0 -298
- package/src/inspector/manager.ts +0 -86
- package/src/inspector/protocol/actor.ts +0 -10
- package/src/inspector/protocol/common.ts +0 -196
- package/src/inspector/protocol/manager.ts +0 -10
- package/src/inspector/protocol/mod.ts +0 -2
- package/src/manager/auth.ts +0 -121
- package/src/manager/hono-websocket-adapter.ts +0 -333
- package/src/registry/config.ts +0 -32
- package/src/registry/mod.ts +0 -124
- package/src/registry/run-config.ts +0 -54
- package/src/registry/serve.ts +0 -53
- package/src/test/config.ts +0 -16
- /package/src/{drivers/engine → actor}/keys.ts +0 -0
|
@@ -1,408 +1,130 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
5
|
-
import { hc } from 'hono/client';
|
|
6
|
-
import * as z from 'zod/v4';
|
|
1
|
+
import { T as ToClient, a as ToServer } from '../v3-DnYObHH3.js';
|
|
2
|
+
export { A as ActionRequest, b as ActionResponse, C as Connection, c as ConnectionsRequest, d as ConnectionsResponse, e as ConnectionsUpdated, D as DatabaseSchemaRequest, f as DatabaseSchemaResponse, g as DatabaseTableRowsRequest, h as DatabaseTableRowsResponse, E as Error, I as Init, P as PatchStateRequest, Q as QueueMessageSummary, i as QueueRequest, j as QueueResponse, k as QueueStatus, l as QueueUpdated, R as RpcsListRequest, m as RpcsListResponse, S as State, n as StateRequest, o as StateResponse, p as StateUpdated, q as ToClientBody, r as ToServerBody, s as TraceQueryRequest, t as TraceQueryResponse, W as WorkflowHistory, u as WorkflowHistoryRequest, v as WorkflowHistoryResponse, w as WorkflowHistoryUpdated, x as decodeToClient, y as decodeToServer, z as encodeToClient, B as encodeToServer, F as readActionRequest, G as readActionResponse, H as readConnection, J as readConnectionsRequest, K as readConnectionsResponse, L as readConnectionsUpdated, M as readDatabaseSchemaRequest, N as readDatabaseSchemaResponse, O as readDatabaseTableRowsRequest, U as readDatabaseTableRowsResponse, V as readError, X as readInit, Y as readPatchStateRequest, Z as readQueueMessageSummary, _ as readQueueRequest, $ as readQueueResponse, a0 as readQueueStatus, a1 as readQueueUpdated, a2 as readRpcsListRequest, a3 as readRpcsListResponse, a4 as readState, a5 as readStateRequest, a6 as readStateResponse, a7 as readStateUpdated, a8 as readToClient, a9 as readToClientBody, aa as readToServer, ab as readToServerBody, ac as readTraceQueryRequest, ad as readTraceQueryResponse, ae as readWorkflowHistory, af as readWorkflowHistoryRequest, ag as readWorkflowHistoryResponse, ah as readWorkflowHistoryUpdated, ai as uint, aj as writeActionRequest, ak as writeActionResponse, al as writeConnection, am as writeConnectionsRequest, an as writeConnectionsResponse, ao as writeConnectionsUpdated, ap as writeDatabaseSchemaRequest, aq as writeDatabaseSchemaResponse, ar as writeDatabaseTableRowsRequest, as as writeDatabaseTableRowsResponse, at as writeError, au as writeInit, av as writePatchStateRequest, aw as writeQueueMessageSummary, ax as writeQueueRequest, ay as writeQueueResponse, az as writeQueueStatus, aA as writeQueueUpdated, aB as writeRpcsListRequest, aC as writeRpcsListResponse, aD as writeState, aE as writeStateRequest, aF as writeStateResponse, aG as writeStateUpdated, aH as writeToClient, aI as writeToClientBody, aJ as writeToServer, aK as writeToServerBody, aL as writeTraceQueryRequest, aM as writeTraceQueryResponse, aN as writeWorkflowHistory, aO as writeWorkflowHistoryRequest, aP as writeWorkflowHistoryResponse, aQ as writeWorkflowHistoryUpdated } from '../v3-DnYObHH3.js';
|
|
3
|
+
import * as vbare from 'vbare';
|
|
4
|
+
import '@rivetkit/bare-ts';
|
|
7
5
|
|
|
8
|
-
declare const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
input: {};
|
|
12
|
-
output: {
|
|
13
|
-
message: string;
|
|
14
|
-
};
|
|
15
|
-
outputFormat: "json";
|
|
16
|
-
status: 200;
|
|
17
|
-
};
|
|
18
|
-
}>;
|
|
19
|
-
} & {
|
|
20
|
-
state: hono_client.ClientRequest<{
|
|
21
|
-
$get: {
|
|
22
|
-
input: {};
|
|
23
|
-
output: {
|
|
24
|
-
enabled: boolean;
|
|
25
|
-
state: null;
|
|
26
|
-
};
|
|
27
|
-
outputFormat: "json";
|
|
28
|
-
status: 200;
|
|
29
|
-
};
|
|
30
|
-
} & {
|
|
31
|
-
$patch: {
|
|
32
|
-
input: {
|
|
33
|
-
json: {
|
|
34
|
-
patch: ({
|
|
35
|
-
op: "remove";
|
|
36
|
-
path: string;
|
|
37
|
-
} | {
|
|
38
|
-
op: "add";
|
|
39
|
-
path: string;
|
|
40
|
-
value: unknown;
|
|
41
|
-
} | {
|
|
42
|
-
op: "replace";
|
|
43
|
-
path: string;
|
|
44
|
-
value: unknown;
|
|
45
|
-
} | {
|
|
46
|
-
op: "move";
|
|
47
|
-
path: string;
|
|
48
|
-
from: string;
|
|
49
|
-
} | {
|
|
50
|
-
op: "copy";
|
|
51
|
-
path: string;
|
|
52
|
-
from: string;
|
|
53
|
-
} | {
|
|
54
|
-
op: "test";
|
|
55
|
-
path: string;
|
|
56
|
-
value: unknown;
|
|
57
|
-
})[];
|
|
58
|
-
} | {
|
|
59
|
-
replace: any;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
output: {
|
|
63
|
-
enabled: boolean;
|
|
64
|
-
};
|
|
65
|
-
outputFormat: "json";
|
|
66
|
-
status: 200;
|
|
67
|
-
};
|
|
68
|
-
}>;
|
|
69
|
-
} & {
|
|
70
|
-
state: {
|
|
71
|
-
stream: hono_client.ClientRequest<{
|
|
72
|
-
$get: {
|
|
73
|
-
input: {};
|
|
74
|
-
output: {};
|
|
75
|
-
outputFormat: string;
|
|
76
|
-
status: hono_utils_http_status.StatusCode;
|
|
77
|
-
};
|
|
78
|
-
}>;
|
|
79
|
-
};
|
|
80
|
-
} & {
|
|
81
|
-
connections: hono_client.ClientRequest<{
|
|
82
|
-
$get: {
|
|
83
|
-
input: {};
|
|
84
|
-
output: {
|
|
85
|
-
connections: {
|
|
86
|
-
id: string;
|
|
87
|
-
params?: {
|
|
88
|
-
[x: string]: any;
|
|
89
|
-
} | undefined;
|
|
90
|
-
stateEnabled?: boolean | undefined;
|
|
91
|
-
state?: any;
|
|
92
|
-
auth?: {
|
|
93
|
-
[x: string]: any;
|
|
94
|
-
} | undefined;
|
|
95
|
-
}[];
|
|
96
|
-
};
|
|
97
|
-
outputFormat: "json";
|
|
98
|
-
status: 200;
|
|
99
|
-
};
|
|
100
|
-
}>;
|
|
101
|
-
} & {
|
|
102
|
-
connections: {
|
|
103
|
-
stream: hono_client.ClientRequest<{
|
|
104
|
-
$get: {
|
|
105
|
-
input: {};
|
|
106
|
-
output: {};
|
|
107
|
-
outputFormat: string;
|
|
108
|
-
status: hono_utils_http_status.StatusCode;
|
|
109
|
-
};
|
|
110
|
-
}>;
|
|
111
|
-
};
|
|
112
|
-
} & {
|
|
113
|
-
events: hono_client.ClientRequest<{
|
|
114
|
-
$get: {
|
|
115
|
-
input: {};
|
|
116
|
-
output: {
|
|
117
|
-
events: ({
|
|
118
|
-
type: "action";
|
|
119
|
-
name: string;
|
|
120
|
-
args: any[];
|
|
121
|
-
connId: string;
|
|
122
|
-
id: string;
|
|
123
|
-
timestamp: number;
|
|
124
|
-
} | {
|
|
125
|
-
type: "broadcast";
|
|
126
|
-
eventName: string;
|
|
127
|
-
args: any[];
|
|
128
|
-
id: string;
|
|
129
|
-
timestamp: number;
|
|
130
|
-
} | {
|
|
131
|
-
type: "subscribe";
|
|
132
|
-
eventName: string;
|
|
133
|
-
connId: string;
|
|
134
|
-
id: string;
|
|
135
|
-
timestamp: number;
|
|
136
|
-
} | {
|
|
137
|
-
type: "unsubscribe";
|
|
138
|
-
eventName: string;
|
|
139
|
-
connId: string;
|
|
140
|
-
id: string;
|
|
141
|
-
timestamp: number;
|
|
142
|
-
} | {
|
|
143
|
-
type: "event";
|
|
144
|
-
eventName: string;
|
|
145
|
-
args: any[];
|
|
146
|
-
connId: string;
|
|
147
|
-
id: string;
|
|
148
|
-
timestamp: number;
|
|
149
|
-
})[];
|
|
150
|
-
};
|
|
151
|
-
outputFormat: "json";
|
|
152
|
-
status: 200;
|
|
153
|
-
};
|
|
154
|
-
}>;
|
|
155
|
-
} & {
|
|
156
|
-
events: {
|
|
157
|
-
clear: hono_client.ClientRequest<{
|
|
158
|
-
$post: {
|
|
159
|
-
input: {};
|
|
160
|
-
output: {
|
|
161
|
-
message: string;
|
|
162
|
-
};
|
|
163
|
-
outputFormat: "json";
|
|
164
|
-
status: 200;
|
|
165
|
-
};
|
|
166
|
-
}>;
|
|
167
|
-
};
|
|
168
|
-
} & {
|
|
169
|
-
events: {
|
|
170
|
-
stream: hono_client.ClientRequest<{
|
|
171
|
-
$get: {
|
|
172
|
-
input: {};
|
|
173
|
-
output: {};
|
|
174
|
-
outputFormat: string;
|
|
175
|
-
status: hono_utils_http_status.StatusCode;
|
|
176
|
-
};
|
|
177
|
-
}>;
|
|
178
|
-
};
|
|
179
|
-
} & {
|
|
180
|
-
rpcs: hono_client.ClientRequest<{
|
|
181
|
-
$get: {
|
|
182
|
-
input: {};
|
|
183
|
-
output: {
|
|
184
|
-
rpcs: string[];
|
|
185
|
-
};
|
|
186
|
-
outputFormat: "json";
|
|
187
|
-
status: 200;
|
|
188
|
-
};
|
|
189
|
-
}>;
|
|
190
|
-
} & {
|
|
191
|
-
db: hono_client.ClientRequest<{
|
|
192
|
-
$get: {
|
|
193
|
-
input: {};
|
|
194
|
-
output: {
|
|
195
|
-
enabled: boolean;
|
|
196
|
-
db: null;
|
|
197
|
-
};
|
|
198
|
-
outputFormat: "json";
|
|
199
|
-
status: 200;
|
|
200
|
-
} | {
|
|
201
|
-
input: {};
|
|
202
|
-
output: {
|
|
203
|
-
enabled: boolean;
|
|
204
|
-
db: {
|
|
205
|
-
table: {
|
|
206
|
-
schema: string;
|
|
207
|
-
name: string;
|
|
208
|
-
type: "table" | "view";
|
|
209
|
-
};
|
|
210
|
-
columns: {
|
|
211
|
-
cid: number;
|
|
212
|
-
name: string;
|
|
213
|
-
type: "blob" | "integer" | "text" | "real" | "numeric" | "serial";
|
|
214
|
-
notnull: boolean;
|
|
215
|
-
dflt_value: string | null;
|
|
216
|
-
pk: boolean | null;
|
|
217
|
-
}[];
|
|
218
|
-
foreignKeys: {
|
|
219
|
-
id: number;
|
|
220
|
-
table: string;
|
|
221
|
-
from: string;
|
|
222
|
-
to: string;
|
|
223
|
-
}[];
|
|
224
|
-
records: any;
|
|
225
|
-
}[];
|
|
226
|
-
};
|
|
227
|
-
outputFormat: "json";
|
|
228
|
-
status: 200;
|
|
229
|
-
};
|
|
230
|
-
} & {
|
|
231
|
-
$post: {
|
|
232
|
-
input: {
|
|
233
|
-
json: {
|
|
234
|
-
query: string;
|
|
235
|
-
params?: any[] | undefined;
|
|
236
|
-
};
|
|
237
|
-
};
|
|
238
|
-
output: {
|
|
239
|
-
enabled: boolean;
|
|
240
|
-
};
|
|
241
|
-
outputFormat: "json";
|
|
242
|
-
status: 200;
|
|
243
|
-
} | {
|
|
244
|
-
input: {
|
|
245
|
-
json: {
|
|
246
|
-
query: string;
|
|
247
|
-
params?: any[] | undefined;
|
|
248
|
-
};
|
|
249
|
-
};
|
|
250
|
-
output: {
|
|
251
|
-
error: string;
|
|
252
|
-
};
|
|
253
|
-
outputFormat: "json";
|
|
254
|
-
status: 500;
|
|
255
|
-
};
|
|
256
|
-
}>;
|
|
257
|
-
};
|
|
258
|
-
type ActorInspectorClient = typeof client$1;
|
|
259
|
-
declare const createActorInspectorClient: (...args: Parameters<typeof hc>) => ActorInspectorClient;
|
|
6
|
+
declare const CURRENT_VERSION = 3;
|
|
7
|
+
declare const TO_SERVER_VERSIONED: vbare.VersionedDataHandler<ToServer>;
|
|
8
|
+
declare const TO_CLIENT_VERSIONED: vbare.VersionedDataHandler<ToClient>;
|
|
260
9
|
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
startedAt?: string | undefined;
|
|
321
|
-
destroyedAt?: string | undefined;
|
|
322
|
-
features?: ActorFeature[] | undefined;
|
|
323
|
-
} | null;
|
|
324
|
-
outputFormat: "json";
|
|
325
|
-
status: 201;
|
|
326
|
-
};
|
|
327
|
-
}>;
|
|
328
|
-
} & {
|
|
329
|
-
builds: hono_client.ClientRequest<{
|
|
330
|
-
$get: {
|
|
331
|
-
input: {};
|
|
332
|
-
output: {
|
|
333
|
-
name: string;
|
|
334
|
-
createdAt?: string | undefined;
|
|
335
|
-
tags?: {
|
|
336
|
-
[x: string]: string;
|
|
337
|
-
} | undefined;
|
|
338
|
-
}[];
|
|
339
|
-
outputFormat: "json";
|
|
340
|
-
status: 200;
|
|
341
|
-
};
|
|
342
|
-
}>;
|
|
343
|
-
} & {
|
|
344
|
-
actor: {
|
|
345
|
-
":id": hono_client.ClientRequest<{
|
|
346
|
-
$get: {
|
|
347
|
-
input: {
|
|
348
|
-
param: {
|
|
349
|
-
id: string;
|
|
350
|
-
};
|
|
351
|
-
};
|
|
352
|
-
output: {
|
|
353
|
-
error: string;
|
|
354
|
-
};
|
|
355
|
-
outputFormat: "json";
|
|
356
|
-
status: 404;
|
|
357
|
-
} | {
|
|
358
|
-
input: {
|
|
359
|
-
param: {
|
|
360
|
-
id: string;
|
|
361
|
-
};
|
|
362
|
-
};
|
|
363
|
-
output: {
|
|
364
|
-
id: string & z.$brand<"ActorId">;
|
|
365
|
-
name: string;
|
|
366
|
-
key: string[];
|
|
367
|
-
tags?: {
|
|
368
|
-
[x: string]: string;
|
|
369
|
-
} | undefined;
|
|
370
|
-
region?: string | undefined;
|
|
371
|
-
createdAt?: string | undefined;
|
|
372
|
-
startedAt?: string | undefined;
|
|
373
|
-
destroyedAt?: string | undefined;
|
|
374
|
-
features?: ActorFeature[] | undefined;
|
|
375
|
-
};
|
|
376
|
-
outputFormat: "json";
|
|
377
|
-
status: 200;
|
|
378
|
-
};
|
|
379
|
-
}>;
|
|
380
|
-
};
|
|
381
|
-
} & {
|
|
382
|
-
bootstrap: hono_client.ClientRequest<{
|
|
383
|
-
$get: {
|
|
384
|
-
input: {};
|
|
385
|
-
output: {
|
|
386
|
-
actors: {
|
|
387
|
-
id: string & z.$brand<"ActorId">;
|
|
388
|
-
name: string;
|
|
389
|
-
key: string[];
|
|
390
|
-
tags?: {
|
|
391
|
-
[x: string]: string;
|
|
392
|
-
} | undefined;
|
|
393
|
-
region?: string | undefined;
|
|
394
|
-
createdAt?: string | undefined;
|
|
395
|
-
startedAt?: string | undefined;
|
|
396
|
-
destroyedAt?: string | undefined;
|
|
397
|
-
features?: ActorFeature[] | undefined;
|
|
398
|
-
}[];
|
|
399
|
-
};
|
|
400
|
-
outputFormat: "json";
|
|
401
|
-
status: 200;
|
|
402
|
-
};
|
|
403
|
-
}>;
|
|
10
|
+
type u32 = number;
|
|
11
|
+
type u64 = bigint;
|
|
12
|
+
type WorkflowCbor = ArrayBuffer;
|
|
13
|
+
type WorkflowNameIndex = u32;
|
|
14
|
+
type WorkflowLoopIterationMarker = {
|
|
15
|
+
readonly loop: WorkflowNameIndex;
|
|
16
|
+
readonly iteration: u32;
|
|
17
|
+
};
|
|
18
|
+
type WorkflowPathSegment = {
|
|
19
|
+
readonly tag: "WorkflowNameIndex";
|
|
20
|
+
readonly val: WorkflowNameIndex;
|
|
21
|
+
} | {
|
|
22
|
+
readonly tag: "WorkflowLoopIterationMarker";
|
|
23
|
+
readonly val: WorkflowLoopIterationMarker;
|
|
24
|
+
};
|
|
25
|
+
type WorkflowLocation = readonly WorkflowPathSegment[];
|
|
26
|
+
declare enum WorkflowEntryStatus {
|
|
27
|
+
PENDING = "PENDING",
|
|
28
|
+
RUNNING = "RUNNING",
|
|
29
|
+
COMPLETED = "COMPLETED",
|
|
30
|
+
FAILED = "FAILED",
|
|
31
|
+
EXHAUSTED = "EXHAUSTED"
|
|
32
|
+
}
|
|
33
|
+
declare enum WorkflowSleepState {
|
|
34
|
+
PENDING = "PENDING",
|
|
35
|
+
COMPLETED = "COMPLETED",
|
|
36
|
+
INTERRUPTED = "INTERRUPTED"
|
|
37
|
+
}
|
|
38
|
+
declare enum WorkflowBranchStatusType {
|
|
39
|
+
PENDING = "PENDING",
|
|
40
|
+
RUNNING = "RUNNING",
|
|
41
|
+
COMPLETED = "COMPLETED",
|
|
42
|
+
FAILED = "FAILED",
|
|
43
|
+
CANCELLED = "CANCELLED"
|
|
44
|
+
}
|
|
45
|
+
type WorkflowStepEntry = {
|
|
46
|
+
readonly output: WorkflowCbor | null;
|
|
47
|
+
readonly error: string | null;
|
|
48
|
+
};
|
|
49
|
+
type WorkflowLoopEntry = {
|
|
50
|
+
readonly state: WorkflowCbor;
|
|
51
|
+
readonly iteration: u32;
|
|
52
|
+
readonly output: WorkflowCbor | null;
|
|
53
|
+
};
|
|
54
|
+
type WorkflowSleepEntry = {
|
|
55
|
+
readonly deadline: u64;
|
|
56
|
+
readonly state: WorkflowSleepState;
|
|
57
|
+
};
|
|
58
|
+
type WorkflowMessageEntry = {
|
|
59
|
+
readonly name: string;
|
|
60
|
+
readonly messageData: WorkflowCbor;
|
|
61
|
+
};
|
|
62
|
+
type WorkflowRollbackCheckpointEntry = {
|
|
63
|
+
readonly name: string;
|
|
64
|
+
};
|
|
65
|
+
type WorkflowBranchStatus = {
|
|
66
|
+
readonly status: WorkflowBranchStatusType;
|
|
67
|
+
readonly output: WorkflowCbor | null;
|
|
68
|
+
readonly error: string | null;
|
|
404
69
|
};
|
|
405
|
-
type
|
|
406
|
-
|
|
70
|
+
type WorkflowJoinEntry = {
|
|
71
|
+
readonly branches: ReadonlyMap<string, WorkflowBranchStatus>;
|
|
72
|
+
};
|
|
73
|
+
type WorkflowRaceEntry = {
|
|
74
|
+
readonly winner: string | null;
|
|
75
|
+
readonly branches: ReadonlyMap<string, WorkflowBranchStatus>;
|
|
76
|
+
};
|
|
77
|
+
type WorkflowRemovedEntry = {
|
|
78
|
+
readonly originalType: string;
|
|
79
|
+
readonly originalName: string | null;
|
|
80
|
+
};
|
|
81
|
+
type WorkflowEntryKind = {
|
|
82
|
+
readonly tag: "WorkflowStepEntry";
|
|
83
|
+
readonly val: WorkflowStepEntry;
|
|
84
|
+
} | {
|
|
85
|
+
readonly tag: "WorkflowLoopEntry";
|
|
86
|
+
readonly val: WorkflowLoopEntry;
|
|
87
|
+
} | {
|
|
88
|
+
readonly tag: "WorkflowSleepEntry";
|
|
89
|
+
readonly val: WorkflowSleepEntry;
|
|
90
|
+
} | {
|
|
91
|
+
readonly tag: "WorkflowMessageEntry";
|
|
92
|
+
readonly val: WorkflowMessageEntry;
|
|
93
|
+
} | {
|
|
94
|
+
readonly tag: "WorkflowRollbackCheckpointEntry";
|
|
95
|
+
readonly val: WorkflowRollbackCheckpointEntry;
|
|
96
|
+
} | {
|
|
97
|
+
readonly tag: "WorkflowJoinEntry";
|
|
98
|
+
readonly val: WorkflowJoinEntry;
|
|
99
|
+
} | {
|
|
100
|
+
readonly tag: "WorkflowRaceEntry";
|
|
101
|
+
readonly val: WorkflowRaceEntry;
|
|
102
|
+
} | {
|
|
103
|
+
readonly tag: "WorkflowRemovedEntry";
|
|
104
|
+
readonly val: WorkflowRemovedEntry;
|
|
105
|
+
};
|
|
106
|
+
type WorkflowEntry = {
|
|
107
|
+
readonly id: string;
|
|
108
|
+
readonly location: WorkflowLocation;
|
|
109
|
+
readonly kind: WorkflowEntryKind;
|
|
110
|
+
};
|
|
111
|
+
type WorkflowEntryMetadata = {
|
|
112
|
+
readonly status: WorkflowEntryStatus;
|
|
113
|
+
readonly error: string | null;
|
|
114
|
+
readonly attempts: u32;
|
|
115
|
+
readonly lastAttemptAt: u64;
|
|
116
|
+
readonly createdAt: u64;
|
|
117
|
+
readonly completedAt: u64 | null;
|
|
118
|
+
readonly rollbackCompletedAt: u64 | null;
|
|
119
|
+
readonly rollbackError: string | null;
|
|
120
|
+
};
|
|
121
|
+
type WorkflowHistory = {
|
|
122
|
+
readonly nameRegistry: readonly string[];
|
|
123
|
+
readonly entries: readonly WorkflowEntry[];
|
|
124
|
+
readonly entryMetadata: ReadonlyMap<string, WorkflowEntryMetadata>;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
declare function encodeWorkflowHistoryTransport(history: WorkflowHistory): ArrayBuffer;
|
|
128
|
+
declare function decodeWorkflowHistoryTransport(data: ArrayBuffer | ArrayBufferView): WorkflowHistory;
|
|
407
129
|
|
|
408
|
-
export {
|
|
130
|
+
export { CURRENT_VERSION, TO_CLIENT_VERSIONED, TO_SERVER_VERSIONED, ToClient, ToServer, type WorkflowHistory as TransportWorkflowHistory, decodeWorkflowHistoryTransport, encodeWorkflowHistoryTransport };
|