rivetkit 2.0.2 → 2.0.3
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/schemas/actor-persist/v1.ts +228 -0
- package/dist/schemas/client-protocol/v1.ts +429 -0
- package/dist/schemas/file-system-driver/v1.ts +102 -0
- package/dist/tsup/actor/errors.cjs +69 -0
- package/dist/tsup/actor/errors.cjs.map +1 -0
- package/dist/tsup/actor/errors.d.cts +143 -0
- package/dist/tsup/actor/errors.d.ts +143 -0
- package/dist/tsup/actor/errors.js +69 -0
- package/dist/tsup/actor/errors.js.map +1 -0
- package/dist/tsup/chunk-2CRLFV6Z.cjs +202 -0
- package/dist/tsup/chunk-2CRLFV6Z.cjs.map +1 -0
- package/dist/tsup/chunk-3H7O2A7I.js +525 -0
- package/dist/tsup/chunk-3H7O2A7I.js.map +1 -0
- package/dist/tsup/chunk-42I3OZ3Q.js +15 -0
- package/dist/tsup/chunk-42I3OZ3Q.js.map +1 -0
- package/dist/tsup/chunk-4NSUQZ2H.js +1790 -0
- package/dist/tsup/chunk-4NSUQZ2H.js.map +1 -0
- package/dist/tsup/chunk-6PDXBYI5.js +132 -0
- package/dist/tsup/chunk-6PDXBYI5.js.map +1 -0
- package/dist/tsup/chunk-6WKQDDUD.cjs +1790 -0
- package/dist/tsup/chunk-6WKQDDUD.cjs.map +1 -0
- package/dist/tsup/chunk-CTBOSFUH.cjs +116 -0
- package/dist/tsup/chunk-CTBOSFUH.cjs.map +1 -0
- package/dist/tsup/chunk-EGVZZFE2.js +2857 -0
- package/dist/tsup/chunk-EGVZZFE2.js.map +1 -0
- package/dist/tsup/chunk-FCCPJNMA.cjs +132 -0
- package/dist/tsup/chunk-FCCPJNMA.cjs.map +1 -0
- package/dist/tsup/chunk-FLMTTN27.js +244 -0
- package/dist/tsup/chunk-FLMTTN27.js.map +1 -0
- package/dist/tsup/chunk-GIR3AFFI.cjs +315 -0
- package/dist/tsup/chunk-GIR3AFFI.cjs.map +1 -0
- package/dist/tsup/chunk-INGJP237.js +315 -0
- package/dist/tsup/chunk-INGJP237.js.map +1 -0
- package/dist/tsup/chunk-KJCJLKRM.js +116 -0
- package/dist/tsup/chunk-KJCJLKRM.js.map +1 -0
- package/dist/tsup/chunk-KUPQZYUQ.cjs +15 -0
- package/dist/tsup/chunk-KUPQZYUQ.cjs.map +1 -0
- package/dist/tsup/chunk-O2MBYIXO.cjs +2857 -0
- package/dist/tsup/chunk-O2MBYIXO.cjs.map +1 -0
- package/dist/tsup/chunk-OGAPU3UG.cjs +525 -0
- package/dist/tsup/chunk-OGAPU3UG.cjs.map +1 -0
- package/dist/tsup/chunk-OV6AYD4S.js +4406 -0
- package/dist/tsup/chunk-OV6AYD4S.js.map +1 -0
- package/dist/tsup/chunk-PO4VLDWA.js +47 -0
- package/dist/tsup/chunk-PO4VLDWA.js.map +1 -0
- package/dist/tsup/chunk-R2OPSKIV.cjs +244 -0
- package/dist/tsup/chunk-R2OPSKIV.cjs.map +1 -0
- package/dist/tsup/chunk-TZJKSBUQ.cjs +47 -0
- package/dist/tsup/chunk-TZJKSBUQ.cjs.map +1 -0
- package/dist/tsup/chunk-UBUC5C3G.cjs +189 -0
- package/dist/tsup/chunk-UBUC5C3G.cjs.map +1 -0
- package/dist/tsup/chunk-UIM22YJL.cjs +4406 -0
- package/dist/tsup/chunk-UIM22YJL.cjs.map +1 -0
- package/dist/tsup/chunk-URVFQMYI.cjs +230 -0
- package/dist/tsup/chunk-URVFQMYI.cjs.map +1 -0
- package/dist/tsup/chunk-UVUPOS46.js +230 -0
- package/dist/tsup/chunk-UVUPOS46.js.map +1 -0
- package/dist/tsup/chunk-VRRHBNJC.js +189 -0
- package/dist/tsup/chunk-VRRHBNJC.js.map +1 -0
- package/dist/tsup/chunk-XFSS33EQ.js +202 -0
- package/dist/tsup/chunk-XFSS33EQ.js.map +1 -0
- package/dist/tsup/client/mod.cjs +32 -0
- package/dist/tsup/client/mod.cjs.map +1 -0
- package/dist/tsup/client/mod.d.cts +26 -0
- package/dist/tsup/client/mod.d.ts +26 -0
- package/dist/tsup/client/mod.js +32 -0
- package/dist/tsup/client/mod.js.map +1 -0
- package/dist/tsup/common/log.cjs +13 -0
- package/dist/tsup/common/log.cjs.map +1 -0
- package/dist/tsup/common/log.d.cts +20 -0
- package/dist/tsup/common/log.d.ts +20 -0
- package/dist/tsup/common/log.js +13 -0
- package/dist/tsup/common/log.js.map +1 -0
- package/dist/tsup/common/websocket.cjs +10 -0
- package/dist/tsup/common/websocket.cjs.map +1 -0
- package/dist/tsup/common/websocket.d.cts +3 -0
- package/dist/tsup/common/websocket.d.ts +3 -0
- package/dist/tsup/common/websocket.js +10 -0
- package/dist/tsup/common/websocket.js.map +1 -0
- package/dist/tsup/common-CpqORuCq.d.cts +218 -0
- package/dist/tsup/common-CpqORuCq.d.ts +218 -0
- package/dist/tsup/connection-BR_Ve4ku.d.cts +2117 -0
- package/dist/tsup/connection-BwUMoe6n.d.ts +2117 -0
- package/dist/tsup/driver-helpers/mod.cjs +33 -0
- package/dist/tsup/driver-helpers/mod.cjs.map +1 -0
- package/dist/tsup/driver-helpers/mod.d.cts +18 -0
- package/dist/tsup/driver-helpers/mod.d.ts +18 -0
- package/dist/tsup/driver-helpers/mod.js +33 -0
- package/dist/tsup/driver-helpers/mod.js.map +1 -0
- package/dist/tsup/driver-test-suite/mod.cjs +4619 -0
- package/dist/tsup/driver-test-suite/mod.cjs.map +1 -0
- package/dist/tsup/driver-test-suite/mod.d.cts +57 -0
- package/dist/tsup/driver-test-suite/mod.d.ts +57 -0
- package/dist/tsup/driver-test-suite/mod.js +4619 -0
- package/dist/tsup/driver-test-suite/mod.js.map +1 -0
- package/dist/tsup/inspector/mod.cjs +53 -0
- package/dist/tsup/inspector/mod.cjs.map +1 -0
- package/dist/tsup/inspector/mod.d.cts +408 -0
- package/dist/tsup/inspector/mod.d.ts +408 -0
- package/dist/tsup/inspector/mod.js +53 -0
- package/dist/tsup/inspector/mod.js.map +1 -0
- package/dist/tsup/mod.cjs +73 -0
- package/dist/tsup/mod.cjs.map +1 -0
- package/dist/tsup/mod.d.cts +100 -0
- package/dist/tsup/mod.d.ts +100 -0
- package/dist/tsup/mod.js +73 -0
- package/dist/tsup/mod.js.map +1 -0
- package/dist/tsup/router-endpoints-AYkXG8Tl.d.cts +66 -0
- package/dist/tsup/router-endpoints-DAbqVFx2.d.ts +66 -0
- package/dist/tsup/test/mod.cjs +21 -0
- package/dist/tsup/test/mod.cjs.map +1 -0
- package/dist/tsup/test/mod.d.cts +27 -0
- package/dist/tsup/test/mod.d.ts +27 -0
- package/dist/tsup/test/mod.js +21 -0
- package/dist/tsup/test/mod.js.map +1 -0
- package/dist/tsup/utils-CT0cv4jd.d.cts +17 -0
- package/dist/tsup/utils-CT0cv4jd.d.ts +17 -0
- package/dist/tsup/utils.cjs +26 -0
- package/dist/tsup/utils.cjs.map +1 -0
- package/dist/tsup/utils.d.cts +36 -0
- package/dist/tsup/utils.d.ts +36 -0
- package/dist/tsup/utils.js +26 -0
- package/dist/tsup/utils.js.map +1 -0
- package/package.json +208 -5
- package/src/actor/action.ts +182 -0
- package/src/actor/config.ts +765 -0
- package/src/actor/connection.ts +260 -0
- package/src/actor/context.ts +171 -0
- package/src/actor/database.ts +23 -0
- package/src/actor/definition.ts +86 -0
- package/src/actor/driver.ts +84 -0
- package/src/actor/errors.ts +360 -0
- package/src/actor/generic-conn-driver.ts +234 -0
- package/src/actor/instance.ts +1800 -0
- package/src/actor/log.ts +15 -0
- package/src/actor/mod.ts +113 -0
- package/src/actor/persisted.ts +42 -0
- package/src/actor/protocol/old.ts +281 -0
- package/src/actor/protocol/serde.ts +131 -0
- package/src/actor/router-endpoints.ts +685 -0
- package/src/actor/router.ts +263 -0
- package/src/actor/schedule.ts +17 -0
- package/src/actor/unstable-react.ts +110 -0
- package/src/actor/utils.ts +98 -0
- package/src/client/actor-common.ts +30 -0
- package/src/client/actor-conn.ts +804 -0
- package/src/client/actor-handle.ts +208 -0
- package/src/client/client.ts +623 -0
- package/src/client/errors.ts +41 -0
- package/src/client/http-client-driver.ts +326 -0
- package/src/client/log.ts +7 -0
- package/src/client/mod.ts +56 -0
- package/src/client/raw-utils.ts +92 -0
- package/src/client/test.ts +44 -0
- package/src/client/utils.ts +150 -0
- package/src/common/eventsource-interface.ts +47 -0
- package/src/common/eventsource.ts +80 -0
- package/src/common/fake-event-source.ts +266 -0
- package/src/common/inline-websocket-adapter2.ts +445 -0
- package/src/common/log-levels.ts +27 -0
- package/src/common/log.ts +139 -0
- package/src/common/logfmt.ts +228 -0
- package/src/common/network.ts +2 -0
- package/src/common/router.ts +87 -0
- package/src/common/utils.ts +322 -0
- package/src/common/versioned-data.ts +95 -0
- package/src/common/websocket-interface.ts +49 -0
- package/src/common/websocket.ts +43 -0
- package/src/driver-helpers/mod.ts +22 -0
- package/src/driver-helpers/utils.ts +17 -0
- package/src/driver-test-suite/log.ts +7 -0
- package/src/driver-test-suite/mod.ts +213 -0
- package/src/driver-test-suite/test-inline-client-driver.ts +402 -0
- package/src/driver-test-suite/tests/action-features.ts +136 -0
- package/src/driver-test-suite/tests/actor-auth.ts +591 -0
- package/src/driver-test-suite/tests/actor-conn-state.ts +249 -0
- package/src/driver-test-suite/tests/actor-conn.ts +349 -0
- package/src/driver-test-suite/tests/actor-driver.ts +25 -0
- package/src/driver-test-suite/tests/actor-error-handling.ts +158 -0
- package/src/driver-test-suite/tests/actor-handle.ts +259 -0
- package/src/driver-test-suite/tests/actor-inline-client.ts +152 -0
- package/src/driver-test-suite/tests/actor-inspector.ts +570 -0
- package/src/driver-test-suite/tests/actor-metadata.ts +116 -0
- package/src/driver-test-suite/tests/actor-onstatechange.ts +95 -0
- package/src/driver-test-suite/tests/actor-schedule.ts +108 -0
- package/src/driver-test-suite/tests/actor-sleep.ts +413 -0
- package/src/driver-test-suite/tests/actor-state.ts +54 -0
- package/src/driver-test-suite/tests/actor-vars.ts +93 -0
- package/src/driver-test-suite/tests/manager-driver.ts +365 -0
- package/src/driver-test-suite/tests/raw-http-direct-registry.ts +226 -0
- package/src/driver-test-suite/tests/raw-http-request-properties.ts +414 -0
- package/src/driver-test-suite/tests/raw-http.ts +347 -0
- package/src/driver-test-suite/tests/raw-websocket-direct-registry.ts +392 -0
- package/src/driver-test-suite/tests/raw-websocket.ts +484 -0
- package/src/driver-test-suite/tests/request-access.ts +244 -0
- package/src/driver-test-suite/utils.ts +68 -0
- package/src/drivers/default.ts +31 -0
- package/src/drivers/engine/actor-driver.ts +360 -0
- package/src/drivers/engine/api-endpoints.ts +128 -0
- package/src/drivers/engine/api-utils.ts +70 -0
- package/src/drivers/engine/config.ts +39 -0
- package/src/drivers/engine/keys.test.ts +266 -0
- package/src/drivers/engine/keys.ts +89 -0
- package/src/drivers/engine/kv.ts +3 -0
- package/src/drivers/engine/log.ts +7 -0
- package/src/drivers/engine/manager-driver.ts +391 -0
- package/src/drivers/engine/mod.ts +36 -0
- package/src/drivers/engine/ws-proxy.ts +170 -0
- package/src/drivers/file-system/actor.ts +91 -0
- package/src/drivers/file-system/global-state.ts +673 -0
- package/src/drivers/file-system/log.ts +7 -0
- package/src/drivers/file-system/manager.ts +306 -0
- package/src/drivers/file-system/mod.ts +48 -0
- package/src/drivers/file-system/utils.ts +109 -0
- package/src/globals.d.ts +6 -0
- package/src/inline-client-driver/log.ts +7 -0
- package/src/inline-client-driver/mod.ts +385 -0
- package/src/inspector/actor.ts +298 -0
- package/src/inspector/config.ts +83 -0
- package/src/inspector/log.ts +5 -0
- package/src/inspector/manager.ts +86 -0
- package/src/inspector/mod.ts +2 -0
- package/src/inspector/protocol/actor.ts +10 -0
- package/src/inspector/protocol/common.ts +196 -0
- package/src/inspector/protocol/manager.ts +10 -0
- package/src/inspector/protocol/mod.ts +2 -0
- package/src/inspector/utils.ts +76 -0
- package/src/manager/auth.ts +121 -0
- package/src/manager/driver.ts +80 -0
- package/src/manager/hono-websocket-adapter.ts +333 -0
- package/src/manager/log.ts +7 -0
- package/src/manager/mod.ts +2 -0
- package/src/manager/protocol/mod.ts +24 -0
- package/src/manager/protocol/query.ts +89 -0
- package/src/manager/router.ts +1792 -0
- package/src/mod.ts +20 -0
- package/src/registry/config.ts +32 -0
- package/src/registry/log.ts +7 -0
- package/src/registry/mod.ts +124 -0
- package/src/registry/run-config.ts +54 -0
- package/src/registry/serve.ts +53 -0
- package/src/schemas/actor-persist/mod.ts +1 -0
- package/src/schemas/actor-persist/versioned.ts +25 -0
- package/src/schemas/client-protocol/mod.ts +1 -0
- package/src/schemas/client-protocol/versioned.ts +63 -0
- package/src/schemas/file-system-driver/mod.ts +1 -0
- package/src/schemas/file-system-driver/versioned.ts +28 -0
- package/src/serde.ts +84 -0
- package/src/test/config.ts +16 -0
- package/src/test/log.ts +7 -0
- package/src/test/mod.ts +153 -0
- package/src/utils.ts +172 -0
- package/README.md +0 -13
|
@@ -0,0 +1,408 @@
|
|
|
1
|
+
import { A as ActorFeature } from '../common-CpqORuCq.js';
|
|
2
|
+
export { d as Actor, a as ActorId, b as ActorLogEntry, c as ActorSchema, v as Build, B as BuildSchema, x as Builds, w as BuildsSchema, p as Column, o as ColumnSchema, r as Columns, q as ColumnsSchema, g as Connection, C as ConnectionSchema, z as CreateActor, y as CreateActorSchema, k as DatabaseQuery, D as DatabaseQuerySchema, s as ForeignKey, F as ForeignKeySchema, u as ForeignKeys, t as ForeignKeysSchema, e as Operation, O as OperationSchema, f as Patch, P as PatchSchema, h as RealtimeEvent, R as RealtimeEventSchema, j as RecordedRealtimeEvent, i as RecordedRealtimeEventSchema, l as Table, T as TableSchema, n as Tables, m as TablesSchema } from '../common-CpqORuCq.js';
|
|
3
|
+
import * as hono_utils_http_status from 'hono/utils/http-status';
|
|
4
|
+
import * as hono_client from 'hono/client';
|
|
5
|
+
import { hc } from 'hono/client';
|
|
6
|
+
import * as z from 'zod/v4';
|
|
7
|
+
|
|
8
|
+
declare const client$1: {
|
|
9
|
+
ping: hono_client.ClientRequest<{
|
|
10
|
+
$get: {
|
|
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;
|
|
260
|
+
|
|
261
|
+
declare const client: {
|
|
262
|
+
ping: hono_client.ClientRequest<{
|
|
263
|
+
$get: {
|
|
264
|
+
input: {};
|
|
265
|
+
output: {
|
|
266
|
+
message: string;
|
|
267
|
+
};
|
|
268
|
+
outputFormat: "json";
|
|
269
|
+
status: 200;
|
|
270
|
+
};
|
|
271
|
+
}>;
|
|
272
|
+
} & {
|
|
273
|
+
actors: hono_client.ClientRequest<{
|
|
274
|
+
$get: {
|
|
275
|
+
input: {};
|
|
276
|
+
output: "Invalid limit";
|
|
277
|
+
outputFormat: "json";
|
|
278
|
+
status: 400;
|
|
279
|
+
} | {
|
|
280
|
+
input: {};
|
|
281
|
+
output: {
|
|
282
|
+
id: string & z.$brand<"ActorId">;
|
|
283
|
+
name: string;
|
|
284
|
+
key: string[];
|
|
285
|
+
tags?: {
|
|
286
|
+
[x: string]: string;
|
|
287
|
+
} | undefined;
|
|
288
|
+
region?: string | undefined;
|
|
289
|
+
createdAt?: string | undefined;
|
|
290
|
+
startedAt?: string | undefined;
|
|
291
|
+
destroyedAt?: string | undefined;
|
|
292
|
+
features?: ActorFeature[] | undefined;
|
|
293
|
+
}[];
|
|
294
|
+
outputFormat: "json";
|
|
295
|
+
status: 200;
|
|
296
|
+
} | {
|
|
297
|
+
input: {};
|
|
298
|
+
output: "Failed to fetch actors";
|
|
299
|
+
outputFormat: "json";
|
|
300
|
+
status: 500;
|
|
301
|
+
};
|
|
302
|
+
} & {
|
|
303
|
+
$post: {
|
|
304
|
+
input: {
|
|
305
|
+
json: {
|
|
306
|
+
name: string;
|
|
307
|
+
key: string[];
|
|
308
|
+
input: any;
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
output: {
|
|
312
|
+
id: string & z.$brand<"ActorId">;
|
|
313
|
+
name: string;
|
|
314
|
+
key: string[];
|
|
315
|
+
tags?: {
|
|
316
|
+
[x: string]: string;
|
|
317
|
+
} | undefined;
|
|
318
|
+
region?: string | undefined;
|
|
319
|
+
createdAt?: string | undefined;
|
|
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
|
+
}>;
|
|
404
|
+
};
|
|
405
|
+
type ManagerInspectorClient = typeof client;
|
|
406
|
+
declare const createManagerInspectorClient: (...args: Parameters<typeof hc>) => ManagerInspectorClient;
|
|
407
|
+
|
|
408
|
+
export { ActorFeature, type ActorInspectorClient, type ManagerInspectorClient, createActorInspectorClient, createManagerInspectorClient };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createActorInspectorClient,
|
|
3
|
+
createManagerInspectorClient
|
|
4
|
+
} from "../chunk-42I3OZ3Q.js";
|
|
5
|
+
import {
|
|
6
|
+
ActorFeature,
|
|
7
|
+
ActorId,
|
|
8
|
+
ActorLogEntry,
|
|
9
|
+
ActorSchema,
|
|
10
|
+
BuildSchema,
|
|
11
|
+
BuildsSchema,
|
|
12
|
+
ColumnSchema,
|
|
13
|
+
ColumnsSchema,
|
|
14
|
+
ConnectionSchema,
|
|
15
|
+
CreateActorSchema,
|
|
16
|
+
DatabaseQuerySchema,
|
|
17
|
+
ForeignKeySchema,
|
|
18
|
+
ForeignKeysSchema,
|
|
19
|
+
OperationSchema,
|
|
20
|
+
PatchSchema,
|
|
21
|
+
RealtimeEventSchema,
|
|
22
|
+
RecordedRealtimeEventSchema,
|
|
23
|
+
TableSchema,
|
|
24
|
+
TablesSchema
|
|
25
|
+
} from "../chunk-FLMTTN27.js";
|
|
26
|
+
import "../chunk-4NSUQZ2H.js";
|
|
27
|
+
import "../chunk-XFSS33EQ.js";
|
|
28
|
+
import "../chunk-3H7O2A7I.js";
|
|
29
|
+
import "../chunk-INGJP237.js";
|
|
30
|
+
export {
|
|
31
|
+
ActorFeature,
|
|
32
|
+
ActorId,
|
|
33
|
+
ActorLogEntry,
|
|
34
|
+
ActorSchema,
|
|
35
|
+
BuildSchema,
|
|
36
|
+
BuildsSchema,
|
|
37
|
+
ColumnSchema,
|
|
38
|
+
ColumnsSchema,
|
|
39
|
+
ConnectionSchema,
|
|
40
|
+
CreateActorSchema,
|
|
41
|
+
DatabaseQuerySchema,
|
|
42
|
+
ForeignKeySchema,
|
|
43
|
+
ForeignKeysSchema,
|
|
44
|
+
OperationSchema,
|
|
45
|
+
PatchSchema,
|
|
46
|
+
RealtimeEventSchema,
|
|
47
|
+
RecordedRealtimeEventSchema,
|
|
48
|
+
TableSchema,
|
|
49
|
+
TablesSchema,
|
|
50
|
+
createActorInspectorClient,
|
|
51
|
+
createManagerInspectorClient
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=mod.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
var _chunkUIM22YJLcjs = require('./chunk-UIM22YJL.cjs');
|
|
17
|
+
require('./chunk-KUPQZYUQ.cjs');
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
var _chunkO2MBYIXOcjs = require('./chunk-O2MBYIXO.cjs');
|
|
22
|
+
require('./chunk-R2OPSKIV.cjs');
|
|
23
|
+
require('./chunk-TZJKSBUQ.cjs');
|
|
24
|
+
require('./chunk-CTBOSFUH.cjs');
|
|
25
|
+
require('./chunk-UBUC5C3G.cjs');
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
var _chunk6WKQDDUDcjs = require('./chunk-6WKQDDUD.cjs');
|
|
36
|
+
require('./chunk-2CRLFV6Z.cjs');
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
var _chunkOGAPU3UGcjs = require('./chunk-OGAPU3UG.cjs');
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
var _chunkGIR3AFFIcjs = require('./chunk-GIR3AFFI.cjs');
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
exports.ALLOWED_PUBLIC_HEADERS = _chunk6WKQDDUDcjs.ALLOWED_PUBLIC_HEADERS; exports.CONNECTION_DRIVER_HTTP = _chunk6WKQDDUDcjs.CONNECTION_DRIVER_HTTP; exports.CONNECTION_DRIVER_SSE = _chunk6WKQDDUDcjs.CONNECTION_DRIVER_SSE; exports.CONNECTION_DRIVER_WEBSOCKET = _chunk6WKQDDUDcjs.CONNECTION_DRIVER_WEBSOCKET; exports.GenericConnGlobalState = _chunkUIM22YJLcjs.GenericConnGlobalState; exports.InlineWebSocketAdapter2 = _chunkUIM22YJLcjs.InlineWebSocketAdapter2; exports.PATH_CONNECT_WEBSOCKET = _chunkUIM22YJLcjs.PATH_CONNECT_WEBSOCKET; exports.PATH_RAW_WEBSOCKET_PREFIX = _chunkUIM22YJLcjs.PATH_RAW_WEBSOCKET_PREFIX; exports.Registry = _chunkUIM22YJLcjs.Registry; exports.RegistryConfigSchema = _chunkUIM22YJLcjs.RegistryConfigSchema; exports.UserError = _chunkGIR3AFFIcjs.UserError; exports.actor = _chunkUIM22YJLcjs.actor; exports.createActorRouter = _chunkUIM22YJLcjs.createActorRouter; exports.createClientWithDriver = _chunkO2MBYIXOcjs.createClientWithDriver; exports.createEngineDriver = _chunkUIM22YJLcjs.createEngineDriver; exports.createFileSystemDriver = _chunkUIM22YJLcjs.createFileSystemDriver; exports.createGenericConnDrivers = _chunkUIM22YJLcjs.createGenericConnDrivers; exports.createInlineClientDriver = _chunkUIM22YJLcjs.createInlineClientDriver; exports.createMemoryDriver = _chunkUIM22YJLcjs.createMemoryDriver; exports.generateConnId = _chunk6WKQDDUDcjs.generateConnId; exports.generateConnToken = _chunk6WKQDDUDcjs.generateConnToken; exports.handleRawWebSocketHandler = _chunk6WKQDDUDcjs.handleRawWebSocketHandler; exports.handleWebSocketConnect = _chunk6WKQDDUDcjs.handleWebSocketConnect; exports.lookupInRegistry = _chunkO2MBYIXOcjs.lookupInRegistry; exports.noopNext = _chunkOGAPU3UGcjs.noopNext; exports.setup = _chunkUIM22YJLcjs.setup; exports.toUint8Array = _chunkOGAPU3UGcjs.toUint8Array;
|
|
73
|
+
//# sourceMappingURL=mod.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/Users/nathan/rivetkit/packages/rivetkit/dist/tsup/mod.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wxDAAC","file":"/Users/nathan/rivetkit/packages/rivetkit/dist/tsup/mod.cjs"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { R as RunConfig, A as ActorDriver, a as AnyDatabaseProvider, b as Actions, c as ActorConfigInput, d as ActorDefinition, D as DriverConfig, M as ManagerDriver, C as ClientDriver } from './connection-BR_Ve4ku.cjs';
|
|
2
|
+
export { s as ActionContext, B as ActionContextOf, T as ActorConfig, O as ActorConfigSchema, z as ActorContext, F as ActorContextOf, r as ActorKey, j as ActorQuery, N as ActorTypes, G as AnyActorDefinition, K as AnyActorInstance, f as AnyClient, Q as AuthIntent, w as CONNECTION_DRIVER_HTTP, x as CONNECTION_DRIVER_SSE, y as CONNECTION_DRIVER_WEBSOCKET, h as Client, t as Conn, u as ConnectionDriver, v as ConnectionStatus, E as Encoding, J as GenericConnGlobalState, L as InitContext, S as OnAuthOptions, P as OnConnectOptions, Z as Registry, X as RegistryActors, W as RegistryConfig, Y as RegistryConfigSchema, n as RivetCloseEvent, o as RivetEvent, p as RivetMessageEvent, U as UniversalErrorEvent, k as UniversalEvent, l as UniversalEventSource, m as UniversalMessageEvent, q as UniversalWebSocket, i as createClientWithDriver, I as createGenericConnDrivers, g as generateConnId, e as generateConnToken, H as lookupInRegistry, _ as setup, V as test } from './connection-BR_Ve4ku.cjs';
|
|
3
|
+
export { A as ALLOWED_PUBLIC_HEADERS, I as InlineWebSocketAdapter2, U as UpgradeWebSocketArgs, h as handleRawWebSocketHandler, a as handleWebSocketConnect } from './router-endpoints-AYkXG8Tl.cjs';
|
|
4
|
+
export { n as noopNext } from './utils-CT0cv4jd.cjs';
|
|
5
|
+
import * as hono_types from 'hono/types';
|
|
6
|
+
import { Hono } from 'hono';
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
export { toUint8Array } from './utils.cjs';
|
|
9
|
+
export { UserError, UserErrorOptions } from './actor/errors.cjs';
|
|
10
|
+
import 'ws';
|
|
11
|
+
import './common/log.cjs';
|
|
12
|
+
import 'nanoevents';
|
|
13
|
+
import './common-CpqORuCq.cjs';
|
|
14
|
+
import 'zod/v4';
|
|
15
|
+
import 'hono/streaming';
|
|
16
|
+
import 'hono/ws';
|
|
17
|
+
import 'hono/utils/http-status';
|
|
18
|
+
|
|
19
|
+
declare const PATH_CONNECT_WEBSOCKET = "/connect/websocket";
|
|
20
|
+
declare const PATH_RAW_WEBSOCKET_PREFIX = "/raw/websocket/";
|
|
21
|
+
|
|
22
|
+
interface ActorRouterBindings {
|
|
23
|
+
actorId: string;
|
|
24
|
+
}
|
|
25
|
+
type ActorRouter = Hono<{
|
|
26
|
+
Bindings: ActorRouterBindings;
|
|
27
|
+
}>;
|
|
28
|
+
/**
|
|
29
|
+
* Creates a router that runs on the partitioned instance.
|
|
30
|
+
*/
|
|
31
|
+
declare function createActorRouter(runConfig: RunConfig, actorDriver: ActorDriver): ActorRouter;
|
|
32
|
+
|
|
33
|
+
declare function actor<TState, TConnParams, TConnState, TVars, TInput, TAuthData, TDatabase extends AnyDatabaseProvider, TActions extends Actions<TState, TConnParams, TConnState, TVars, TInput, TAuthData, TDatabase>>(input: ActorConfigInput<TState, TConnParams, TConnState, TVars, TInput, TAuthData, TDatabase, TActions>): ActorDefinition<TState, TConnParams, TConnState, TVars, TInput, TAuthData, TDatabase, TActions>;
|
|
34
|
+
|
|
35
|
+
declare const ConfigSchema: z.ZodDefault<z.ZodObject<{
|
|
36
|
+
app: z.ZodOptional<z.ZodType<Hono<hono_types.BlankEnv, hono_types.BlankSchema, "/">, z.ZodTypeDef, Hono<hono_types.BlankEnv, hono_types.BlankSchema, "/">>>;
|
|
37
|
+
endpoint: z.ZodDefault<z.ZodString>;
|
|
38
|
+
pegboardEndpoint: z.ZodOptional<z.ZodString>;
|
|
39
|
+
namespace: z.ZodDefault<z.ZodString>;
|
|
40
|
+
runnerName: z.ZodDefault<z.ZodString>;
|
|
41
|
+
runnerKey: z.ZodDefault<z.ZodString>;
|
|
42
|
+
totalSlots: z.ZodDefault<z.ZodNumber>;
|
|
43
|
+
addresses: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
44
|
+
host: z.ZodString;
|
|
45
|
+
port: z.ZodNumber;
|
|
46
|
+
}, "strip", z.ZodTypeAny, {
|
|
47
|
+
host: string;
|
|
48
|
+
port: number;
|
|
49
|
+
}, {
|
|
50
|
+
host: string;
|
|
51
|
+
port: number;
|
|
52
|
+
}>>>;
|
|
53
|
+
}, "strip", z.ZodTypeAny, {
|
|
54
|
+
endpoint: string;
|
|
55
|
+
namespace: string;
|
|
56
|
+
runnerName: string;
|
|
57
|
+
runnerKey: string;
|
|
58
|
+
totalSlots: number;
|
|
59
|
+
addresses: Record<string, {
|
|
60
|
+
host: string;
|
|
61
|
+
port: number;
|
|
62
|
+
}>;
|
|
63
|
+
app?: Hono<hono_types.BlankEnv, hono_types.BlankSchema, "/"> | undefined;
|
|
64
|
+
pegboardEndpoint?: string | undefined;
|
|
65
|
+
}, {
|
|
66
|
+
app?: Hono<hono_types.BlankEnv, hono_types.BlankSchema, "/"> | undefined;
|
|
67
|
+
endpoint?: string | undefined;
|
|
68
|
+
pegboardEndpoint?: string | undefined;
|
|
69
|
+
namespace?: string | undefined;
|
|
70
|
+
runnerName?: string | undefined;
|
|
71
|
+
runnerKey?: string | undefined;
|
|
72
|
+
totalSlots?: number | undefined;
|
|
73
|
+
addresses?: Record<string, {
|
|
74
|
+
host: string;
|
|
75
|
+
port: number;
|
|
76
|
+
}> | undefined;
|
|
77
|
+
}>>;
|
|
78
|
+
type InputConfig = z.input<typeof ConfigSchema>;
|
|
79
|
+
|
|
80
|
+
declare function createEngineDriver(inputConfig?: InputConfig): DriverConfig;
|
|
81
|
+
|
|
82
|
+
declare function createFileSystemDriver(opts?: {
|
|
83
|
+
path?: string;
|
|
84
|
+
}): DriverConfig;
|
|
85
|
+
declare function createMemoryDriver(): DriverConfig;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Client driver that calls the manager driver inline.
|
|
89
|
+
*
|
|
90
|
+
* This is only applicable to standalone & coordinated topologies.
|
|
91
|
+
*
|
|
92
|
+
* This driver can access private resources.
|
|
93
|
+
*
|
|
94
|
+
* This driver serves a double purpose as:
|
|
95
|
+
* - Providing the client for the internal requests
|
|
96
|
+
* - Provide the driver for the manager HTTP router (see manager/router.ts)
|
|
97
|
+
*/
|
|
98
|
+
declare function createInlineClientDriver(managerDriver: ManagerDriver): ClientDriver;
|
|
99
|
+
|
|
100
|
+
export { Actions, ActorConfigInput, ActorDefinition, type ActorRouter, ClientDriver, DriverConfig, PATH_CONNECT_WEBSOCKET, PATH_RAW_WEBSOCKET_PREFIX, RunConfig, actor, createActorRouter, createEngineDriver, createFileSystemDriver, createInlineClientDriver, createMemoryDriver };
|